From 9900c7eea26c0c179de966363a653040f84d2166 Mon Sep 17 00:00:00 2001 From: Scott Hart Date: Mon, 17 Jun 2024 15:42:49 -0400 Subject: [PATCH 01/11] impl(generator): add Start and Await overloads to connections --- .typos.toml | 5 +- generator/internal/connection_generator.cc | 51 +++++- .../internal/connection_impl_generator.cc | 89 ++++++++++- .../connection_impl_rest_generator.cc | 145 ++++++++++++++++-- .../internal/mock_connection_generator.cc | 18 ++- .../internal/tracing_connection_generator.cc | 50 +++++- google/cloud/await_tag.h | 32 ++++ google/cloud/google_cloud_cpp_common.bzl | 1 + google/cloud/google_cloud_cpp_common.cmake | 1 + 9 files changed, 367 insertions(+), 25 deletions(-) create mode 100644 google/cloud/await_tag.h diff --git a/.typos.toml b/.typos.toml index 5380fc8dadd52..72cf4d6609796 100644 --- a/.typos.toml +++ b/.typos.toml @@ -61,5 +61,8 @@ extend-ignore-identifiers-re = [ # This pattern can be found in long hex strings. "[0-9]caf[0-9]", # This is a GCS dual-region name. - "NAM4" + "NAM4", + # Metadata is mispelled in this proto message name found in + # google/cloud/aiplatform/v1/vizier_service.proto + "CheckTrialEarlyStoppingStateMetatdata" ] diff --git a/generator/internal/connection_generator.cc b/generator/internal/connection_generator.cc index fbfebb767ee28..c7ee4cb21089e 100644 --- a/generator/internal/connection_generator.cc +++ b/generator/internal/connection_generator.cc @@ -52,7 +52,9 @@ Status ConnectionGenerator::GenerateHeader() { HeaderPrint("\n"); HeaderLocalIncludes( {vars("idempotency_policy_header_path"), vars("retry_traits_header_path"), - "google/cloud/backoff_policy.h", + "google/cloud/await_tag.h", + // TODO(#14344): Remove experimental tag. + "google/cloud/experimental_tag.h", "google/cloud/backoff_policy.h", HasLongrunningMethod() || HasAsyncMethod() ? "google/cloud/future.h" : "", "google/cloud/internal/retry_policy_impl.h", "google/cloud/options.h", @@ -251,7 +253,24 @@ class $connection_class_name$ { // clang-format off "\n virtual future\n", "\n virtual future>\n"}, - {" $method_name$($request_type$ const& request);\n"} + {" $method_name$($request_type$ const& request);\n\n"}, + // clang-format on + {IsResponseTypeEmpty, + // clang-format off + " virtual Status\n", + " virtual StatusOr<$longrunning_operation_type$>\n"}, + // clang-format on + // TODO(#14344): Remove experimental tag. + {" $method_name$(google::cloud::ExperimentalTag, " + "google::cloud::NoAwaitTag," + " $request_type$ const& request);\n\n"}, + {IsResponseTypeEmpty, + // clang-format off + " virtual future\n", + " virtual future>\n"}, + // TODO(#14344): Remove experimental tag. + {" $method_name$(google::cloud::ExperimentalTag," + " $longrunning_operation_type$ const& operation);\n"} // clang-format on }, All(IsNonStreaming, IsLongrunningOperation, Not(IsPaginated))), @@ -385,6 +404,34 @@ std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< "}\n" }, // clang-format on + {"\n"}, + {IsResponseTypeEmpty, + // clang-format off + " Status\n", + " StatusOr<$longrunning_operation_type$>\n"}, + // TODO(#14344): Remove experimental tag. + {"$connection_class_name$::$method_name$(\n" + " google::cloud::ExperimentalTag, google::cloud::NoAwaitTag,\n" + " $request_type$ const&) {\n" + " return StatusOr<$longrunning_operation_type$>(\n" + " Status(StatusCode::kUnimplemented, \"not implemented\"));\n" + "}\n" + }, + // clang-format on + {"\n"}, + {IsResponseTypeEmpty, + // clang-format off + " future\n", + " future>\n"}, + // TODO(#14344): Remove experimental tag. + {"$connection_class_name$::$method_name$(\n" + " google::cloud::ExperimentalTag, $longrunning_operation_type$ const&) {\n" + " return google::cloud::make_ready_future<\n" + " StatusOr<$longrunning_deduced_response_type$>>(\n" + " Status(StatusCode::kUnimplemented, \"not implemented\"));\n" + "}\n" + } + // clang-format on }, All(IsNonStreaming, IsLongrunningOperation, Not(IsPaginated))), MethodPattern( diff --git a/generator/internal/connection_impl_generator.cc b/generator/internal/connection_impl_generator.cc index 16ff6d197e203..bdeb783c3118c 100644 --- a/generator/internal/connection_impl_generator.cc +++ b/generator/internal/connection_impl_generator.cc @@ -278,14 +278,32 @@ std::string ConnectionImplGenerator::MethodDeclaration( if (IsLongrunningOperation(method)) { if (IsResponseTypeEmpty(method)) { + // TODO(#14344): Remove experimental tag. return R"""( future $method_name$($request_type$ const& request) override; + + StatusOr<$longrunning_operation_type$> + $method_name$(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + $request_type$ const& request) override; + + future + $method_name$(google::cloud::ExperimentalTag, + $longrunning_operation_type$ const& operation) override; )"""; } + // TODO(#14344): Remove experimental tag. return R"""( future> $method_name$($request_type$ const& request) override; + + StatusOr<$longrunning_operation_type$> + $method_name$(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + $request_type$ const& request) override; + + future> + $method_name$(google::cloud::ExperimentalTag, + $longrunning_operation_type$ const& operation) override; )"""; } @@ -430,12 +448,11 @@ StreamRange<$range_output_type$> // The body of the function is basically a call to // `google::cloud::internal::AsyncLongRunningOperation`. - return absl::StrCat("\n", return_fragment, - R"""( + std::string combined_function = absl::StrCat("\n", return_fragment, R"""( $connection_class_name$Impl::$method_name$($request_type$ const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); auto request_copy = request;)""", - request_id_fragment, R"""( + request_id_fragment, R"""( auto const idempotent = idempotency_policy(*current)->$method_name$(request_copy); return google::cloud::internal::AsyncLongRunningOperation<$longrunning_deduced_response_type$>( @@ -462,14 +479,72 @@ StreamRange<$range_output_type$> cq, std::move(context), std::move(options), request); }, )""", - extract_value_fragment, - R"""( + extract_value_fragment, R"""( retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__))""", - elide_protobuf_empty_fragment, - R"""(; + elide_protobuf_empty_fragment, + R"""(; } )"""); + + // TODO(#14344): Remove experimental tag. + std::string start_function = + absl::StrCat("\n", "StatusOr<$longrunning_operation_type$>", R"""( +$connection_class_name$Impl::$method_name$(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, $request_type$ const& request) { + auto current = google::cloud::internal::SaveCurrentOptions();)""", + R"""( + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->$method_name$(request), + [this]( + grpc::ClientContext& context, Options const& options, + $request_type$ const& request) { + return stub_->$method_name$(context, options, request); + }, + *current, request, __func__); +} +)"""); + + // TODO(#14344): Remove experimental tag. + std::string await_function = + absl::StrCat("\n", return_fragment, R"""( +$connection_class_name$Impl::$method_name$(google::cloud::ExperimentalTag, + $longrunning_operation_type$ const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions();)""", + R"""( + if (!operation.metadata().Is()) { + return make_ready_)""", + return_fragment, R"""(( + internal::InvalidArgumentError("operation does not correspond to $method_name$", + GCP_ERROR_INFO().WithMetadata("operation", operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation<$longrunning_deduced_response_type$>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation( + cq, std::move(context), std::move(options), request); + }, + )""", + extract_value_fragment, R"""( + polling_policy(*current), __func__))""", + elide_protobuf_empty_fragment, R"""(; +} +)"""); + + return absl::StrCat(combined_function, "\n", start_function, "\n", + await_function); } auto const* return_fragment = IsResponseTypeEmpty(method) diff --git a/generator/internal/connection_impl_rest_generator.cc b/generator/internal/connection_impl_rest_generator.cc index 00a1c21d6563f..6fd50aad2e076 100644 --- a/generator/internal/connection_impl_rest_generator.cc +++ b/generator/internal/connection_impl_rest_generator.cc @@ -143,6 +143,7 @@ Status ConnectionImplRestGenerator::GenerateCc() { auto const needs_async_retry_loop = !async_methods().empty(); std::string lro_extract_include; std::string lro_op_include; + std::string lro_rest_helper_include; if (HasLongrunningMethod()) { lro_extract_include = "google/cloud/internal/extract_long_running_result.h"; if (HasGRPCLongrunningOperation()) { @@ -151,6 +152,7 @@ Status ConnectionImplRestGenerator::GenerateCc() { } else { lro_op_include = "google/cloud/internal/async_rest_long_running_operation_custom.h"; + lro_rest_helper_include = "google/cloud/internal/rest_lro_helpers.h"; } } CcLocalIncludes( @@ -159,6 +161,7 @@ Status ConnectionImplRestGenerator::GenerateCc() { "google/cloud/credentials.h", "google/cloud/rest_options.h", HasPaginatedMethod() ? "google/cloud/internal/pagination_range.h" : "", std::move(lro_extract_include), std::move(lro_op_include), + std::move(lro_rest_helper_include), needs_async_retry_loop ? "google/cloud/internal/async_rest_retry_loop.h" : "", "google/cloud/internal/rest_retry_loop.h"}); @@ -205,15 +208,32 @@ std::string ConnectionImplRestGenerator::MethodDeclaration( if (IsLongrunningOperation(method)) { if (IsResponseTypeEmpty(method)) { - return R"""( + return absl::StrCat(R"""( future $method_name$($request_type$ const& request) override; -)"""; + + StatusOr<$longrunning_operation_type$> + $method_name$(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + $request_type$ const& request) override; + + future + $method_name$(google::cloud::ExperimentalTag, + $longrunning_operation_type$ const& operation) override; + +)"""); } - return R"""( + return absl::StrCat(R"""( future> $method_name$($request_type$ const& request) override; -)"""; + + StatusOr<$longrunning_operation_type$> + $method_name$(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + $request_type$ const& request) override; + + future> + $method_name$(google::cloud::ExperimentalTag, + $longrunning_operation_type$ const& operation) override; +)"""); } if (IsResponseTypeEmpty(method)) { @@ -334,16 +354,34 @@ StreamRange<$range_output_type$> })"""; }; + auto await_get_request_set_operation = [&] { + if (IsGRPCLongrunningOperation(method)) return ""; + return R"""( + [operation](std::string const&, $longrunning_get_operation_request_type$& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo(operation.self_link()); + $longrunning_await_set_operation_fields$ + },)"""; + }; + + auto await_cancel_request_set_operation = [&] { + if (IsGRPCLongrunningOperation(method)) return ""; + return R"""( + [operation](std::string const&, $longrunning_cancel_operation_request_type$& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo(operation.self_link()); + $longrunning_await_set_operation_fields$ + })"""; + }; + if (IsLongrunningOperation(method)) { - return absl::StrCat( - // The return type may be a simple `Status` or the - // computed type of the long-running operation - IsResponseTypeEmpty(method) ? - R"""( -future)""" - : - R"""( -future>)""", + // The return type may be a simple `Status` or the computed type of the + // long-running operation. + auto const* return_fragment = + IsResponseTypeEmpty(method) + ? R"""(future)""" + : R"""(future>)"""; + + std::string combined_function = absl::StrCat( + "\n", return_fragment, // The body of the function is basically a call to // internal::AsyncRestLongRunningOperation, a helper template function // in `google::cloud::internal`. @@ -393,6 +431,87 @@ future>)""", R"""( } )"""); + + // TODO(#14344): Remove experimental tag. + std::string start_function = + absl::StrCat("\n", "StatusOr<$longrunning_operation_type$>", + R"""( +$connection_impl_rest_class_name$::$method_name$(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, $request_type$ const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->$method_name$(request), + [this](rest_internal::RestContext& rest_context, + Options const& options, $request_type$ const& request) { + return stub_->$method_name$(rest_context, options, request); + }, + *current, request, __func__); +} +)"""); + + // Checking for gRPC LRO mismatch is a type check that comes from the proto + // definition of the rpc. Checking for a Compute LRO mismatch would require + // knowledge of the runtime values of the `operation_type` and `target_link` + // fields, at a minimum. As the domain of these values are not defined in + // the Discovery Document, attempting to check them could introduce false + // positives as the service evolves. + auto operation_check_fragment = IsGRPCLongrunningOperation(method) + ? absl::StrCat(R"""( + if (!operation.metadata().Is()) { + return make_ready_)""", + return_fragment, R"""(( + internal::InvalidArgumentError("operation does not correspond to $method_name$", + GCP_ERROR_INFO().WithMetadata("operation", operation.metadata().DebugString()))); + })""") + : ""; + + // TODO(#14344): Remove experimental tag. + std::string await_function = absl::StrCat( + "\n", return_fragment, + R"""( +$connection_impl_rest_class_name$::$method_name$(google::cloud::ExperimentalTag, + $longrunning_operation_type$ const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions();)""", + operation_check_fragment, + R"""( + return rest_internal::AsyncRestAwaitLongRunningOperation<)""", + lro_template_types(), R"""(>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + $longrunning_get_operation_request_type$ const& request) { + return stub->AsyncGetOperation( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + $longrunning_cancel_operation_request_type$ const& request) { + return stub->AsyncCancelOperation( + cq, std::move(context), std::move(options), request); + },)""", + extractor(), + R"""( + polling_policy(*current), __func__)""", + is_operation_done(), await_get_request_set_operation(), + await_cancel_request_set_operation(), R"""())""", + // Finally, the internal::AsyncRestLongRunningOperation helper may + // return `future>`, in this case we + // add a bit of code to drop the `protobuf::Empty`: + IsResponseTypeEmpty(method) ? R"""( + .then([](future> f) { + return f.get().status(); + }); +)""" + : R"""(; +)""", + R"""( +} +)"""); + + return absl::StrCat(combined_function, "\n", start_function, "\n", + await_function); } return absl::StrCat(IsResponseTypeEmpty(method) ? R"""( diff --git a/generator/internal/mock_connection_generator.cc b/generator/internal/mock_connection_generator.cc index 05522a056785f..e69dfafeb4a06 100644 --- a/generator/internal/mock_connection_generator.cc +++ b/generator/internal/mock_connection_generator.cc @@ -108,7 +108,23 @@ class $mock_connection_class_name$ : public $product_namespace$::$connection_cla "\n MOCK_METHOD(future,\n", "\n MOCK_METHOD(future>,\n"}, {" $method_name$,\n" - " ($request_type$ const& request), (override));\n",} + " ($request_type$ const& request), (override));\n\n",}, + // clang-format on + {IsResponseTypeEmpty, + // clang-format off + " MOCK_METHOD(Status,\n", + " MOCK_METHOD(StatusOr<$longrunning_operation_type$>,\n"}, + // TODO(#14344): Remove experimental tag. + {" $method_name$, (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag,\n" + " $request_type$ const& request), (override));\n\n"}, + // clang-format on + {IsResponseTypeEmpty, + // clang-format off + " MOCK_METHOD(future,\n", + " MOCK_METHOD(future>,\n"}, + // TODO(#14344): Remove experimental tag. + {" $method_name$, (google::cloud::ExperimentalTag,\n" + " $longrunning_operation_type$ const& operation), (override));\n"} // clang-format on }, All(IsNonStreaming, IsLongrunningOperation, Not(IsPaginated))), diff --git a/generator/internal/tracing_connection_generator.cc b/generator/internal/tracing_connection_generator.cc index 716ce71e93126..380755f9a0533 100644 --- a/generator/internal/tracing_connection_generator.cc +++ b/generator/internal/tracing_connection_generator.cc @@ -198,14 +198,32 @@ std::string TracingConnectionGenerator::MethodDeclaration( if (IsLongrunningOperation(method)) { if (IsResponseTypeEmpty(method)) { + // TODO(#14344): Remove experimental tag. return R"""( future $method_name$($request_type$ const& request) override; + + StatusOr<$longrunning_operation_type$> + $method_name$(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + $request_type$ const& request) override; + + future + $method_name$(google::cloud::ExperimentalTag, + $longrunning_operation_type$ const& operation) override; )"""; } + // TODO(#14344): Remove experimental tag. return R"""( future> $method_name$($request_type$ const& request) override; + + StatusOr<$longrunning_operation_type$> + $method_name$(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + $request_type$ const& request) override; + + future> + $method_name$(google::cloud::ExperimentalTag, + $longrunning_operation_type$ const& operation) override; )"""; } @@ -297,7 +315,37 @@ future>)""", internal::OTelScope scope(span); return internal::EndSpan(std::move(span), child_->$method_name$(request)); } -)"""); +)""", + R"""( +StatusOr<$longrunning_operation_type$>)""", + // TODO(#14344): Remove experimental tag. + R"""( +$tracing_connection_class_name$::$method_name$(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, $request_type$ const& request) { + auto span = internal::MakeSpan( + "$product_namespace$::$connection_class_name$::$method_name$"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->$method_name$( + google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); +} +)""", + IsResponseTypeEmpty(method) ? + R"""( +future)""" + : + R"""( +future>)""", + // TODO(#14344): Remove experimental tag. + R"""( +$tracing_connection_class_name$::$method_name$(google::cloud::ExperimentalTag, + $longrunning_operation_type$ const& operation) { + auto span = internal::MakeSpan( + "$product_namespace$::$connection_class_name$::$method_name$"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->$method_name$(google::cloud::ExperimentalTag{}, operation)); +} + )"""); } return absl::StrCat(IsResponseTypeEmpty(method) ? R"""( diff --git a/google/cloud/await_tag.h b/google/cloud/await_tag.h new file mode 100644 index 0000000000000..9b224e45de0a5 --- /dev/null +++ b/google/cloud/await_tag.h @@ -0,0 +1,32 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_AWAIT_TAG_H +#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_AWAIT_TAG_H + +#include "google/cloud/version.h" + +namespace google { +namespace cloud { +GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN + +// Used in the overload set for RPCs that perform long-running operations (LRO) +// to signal the operation should only be started and not polled for completion. +struct NoAwaitTag {}; + +GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END +} // namespace cloud +} // namespace google + +#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_AWAIT_TAG_H diff --git a/google/cloud/google_cloud_cpp_common.bzl b/google/cloud/google_cloud_cpp_common.bzl index f2e08a8bceffa..881a0607ed7e0 100644 --- a/google/cloud/google_cloud_cpp_common.bzl +++ b/google/cloud/google_cloud_cpp_common.bzl @@ -18,6 +18,7 @@ google_cloud_cpp_common_hdrs = [ "access_token.h", + "await_tag.h", "backoff_policy.h", "common_options.h", "credentials.h", diff --git a/google/cloud/google_cloud_cpp_common.cmake b/google/cloud/google_cloud_cpp_common.cmake index a2d628bcdbd20..e2170894b1892 100644 --- a/google/cloud/google_cloud_cpp_common.cmake +++ b/google/cloud/google_cloud_cpp_common.cmake @@ -33,6 +33,7 @@ add_library( ${CMAKE_CURRENT_BINARY_DIR}/internal/build_info.cc access_token.cc access_token.h + await_tag.h backoff_policy.h common_options.h credentials.cc From ba9e0e758f24a4aaf6a839af5b705d3a71c581eb Mon Sep 17 00:00:00 2001 From: Scott Hart Date: Mon, 17 Jun 2024 15:44:50 -0400 Subject: [PATCH 02/11] disambiguate mock calls in bigtable tests --- google/cloud/bigtable/instance_admin_test.cc | 11 ++++++----- google/cloud/bigtable/table_admin_test.cc | 5 +++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/google/cloud/bigtable/instance_admin_test.cc b/google/cloud/bigtable/instance_admin_test.cc index 4b4c15e27ff43..0ccc713815799 100644 --- a/google/cloud/bigtable/instance_admin_test.cc +++ b/google/cloud/bigtable/instance_admin_test.cc @@ -53,6 +53,7 @@ using ::google::cloud::bigtable::testing::MockPollingPolicy; using ::google::cloud::bigtable::testing::MockRetryPolicy; using ::google::cloud::bigtable_internal::InstanceAdminTester; using ::google::cloud::testing_util::StatusIs; +using ::testing::_; using ::testing::An; using ::testing::Contains; using ::testing::ElementsAreArray; @@ -300,7 +301,7 @@ TEST_F(InstanceAdminTest, CreateInstance) { {"c1", ClusterConfig("l1", 3, btadmin::HDD)}}; auto config = InstanceConfig(kInstanceId, kDisplayName, cluster_map); - EXPECT_CALL(*connection_, CreateInstance) + EXPECT_CALL(*connection_, CreateInstance(_)) .WillOnce([&](btadmin::CreateInstanceRequest const& request) { CheckOptions(google::cloud::internal::CurrentOptions()); EXPECT_EQ(kInstanceId, request.instance_id()); @@ -324,7 +325,7 @@ TEST_F(InstanceAdminTest, CreateCluster) { auto const location_name = LocationName("the-location"); auto config = ClusterConfig("the-location", 3, btadmin::HDD); - EXPECT_CALL(*connection_, CreateCluster) + EXPECT_CALL(*connection_, CreateCluster(_)) .WillOnce([&](btadmin::CreateClusterRequest const& request) { CheckOptions(google::cloud::internal::CurrentOptions()); EXPECT_EQ(kClusterId, request.cluster_id()); @@ -345,7 +346,7 @@ TEST_F(InstanceAdminTest, UpdateInstance) { InstanceUpdateConfig config({}); config.set_display_name(kDisplayName); - EXPECT_CALL(*connection_, PartialUpdateInstance) + EXPECT_CALL(*connection_, PartialUpdateInstance(_)) .WillOnce([&](btadmin::PartialUpdateInstanceRequest const& request) { CheckOptions(google::cloud::internal::CurrentOptions()); EXPECT_EQ(kDisplayName, request.instance().display_name()); @@ -458,7 +459,7 @@ TEST_F(InstanceAdminTest, UpdateCluster) { c.set_default_storage_type(btadmin::HDD); auto config = ClusterConfig(std::move(c)); - EXPECT_CALL(*connection_, UpdateCluster) + EXPECT_CALL(*connection_, UpdateCluster(_)) .WillOnce([&](btadmin::Cluster const& cluster) { CheckOptions(google::cloud::internal::CurrentOptions()); EXPECT_EQ(kClusterName, cluster.name()); @@ -520,7 +521,7 @@ TEST_F(InstanceAdminTest, UpdateAppProfile) { auto constexpr kDescription = "description"; auto config = AppProfileUpdateConfig().set_description(kDescription); - EXPECT_CALL(*connection_, UpdateAppProfile) + EXPECT_CALL(*connection_, UpdateAppProfile(_)) .WillOnce([&](btadmin::UpdateAppProfileRequest const& request) { CheckOptions(google::cloud::internal::CurrentOptions()); EXPECT_EQ(kProfileName, request.app_profile().name()); diff --git a/google/cloud/bigtable/table_admin_test.cc b/google/cloud/bigtable/table_admin_test.cc index 2462b9f0cc500..9dbb22392d881 100644 --- a/google/cloud/bigtable/table_admin_test.cc +++ b/google/cloud/bigtable/table_admin_test.cc @@ -79,6 +79,7 @@ using ::google::cloud::internal::ToChronoTimePoint; using ::google::cloud::testing_util::IsProtoEqual; using ::google::cloud::testing_util::StatusIs; using std::chrono::hours; +using ::testing::_; using ::testing::An; using ::testing::ElementsAre; using ::testing::ElementsAreArray; @@ -426,7 +427,7 @@ TEST_F(TableAdminTest, CreateBackup) { auto const expire_time = std::chrono::system_clock::now() + hours(24); auto admin = DefaultTableAdmin(); - EXPECT_CALL(*connection_, CreateBackup) + EXPECT_CALL(*connection_, CreateBackup(_)) .WillOnce([expire_time](btadmin::CreateBackupRequest const& request) { CheckOptions(google::cloud::internal::CurrentOptions()); EXPECT_EQ(kClusterName, request.parent()); @@ -584,7 +585,7 @@ TEST_F(TableAdminTest, RestoreTableParams) { TEST_F(TableAdminTest, RestoreTable) { auto admin = DefaultTableAdmin(); - EXPECT_CALL(*connection_, RestoreTable) + EXPECT_CALL(*connection_, RestoreTable(_)) .Times(2) .WillRepeatedly([](btadmin::RestoreTableRequest const& request) { CheckOptions(google::cloud::internal::CurrentOptions()); From bf7209183870b1555f89098c0e647d52e2a081ea Mon Sep 17 00:00:00 2001 From: Scott Hart Date: Tue, 18 Jun 2024 12:43:45 -0400 Subject: [PATCH 03/11] add generator golden tests --- .../tests/golden_thing_admin_client_test.cc | 9 +- .../golden_thing_admin_connection_test.cc | 167 ++++++++++++++++++ ...golden_thing_admin_rest_connection_test.cc | 166 +++++++++++++++++ ...den_thing_admin_tracing_connection_test.cc | 66 ++++++- 4 files changed, 399 insertions(+), 9 deletions(-) diff --git a/generator/integration_tests/tests/golden_thing_admin_client_test.cc b/generator/integration_tests/tests/golden_thing_admin_client_test.cc index 1220639d6d490..776f875148671 100644 --- a/generator/integration_tests/tests/golden_thing_admin_client_test.cc +++ b/generator/integration_tests/tests/golden_thing_admin_client_test.cc @@ -36,6 +36,7 @@ namespace { using ::google::cloud::testing_util::IsOk; using ::google::cloud::testing_util::IsProtoEqual; using ::google::cloud::testing_util::StatusIs; +using ::testing::_; using ::testing::Contains; using ::testing::ElementsAre; using ::testing::HasSubstr; @@ -151,7 +152,7 @@ TEST(GoldenThingAdminClientTest, CreateDatabase) { .set("override-me") .set({"override-me"}); }); - EXPECT_CALL(*mock, CreateDatabase) + EXPECT_CALL(*mock, CreateDatabase(_)) .Times(2) .WillRepeatedly( [expected_instance]( @@ -257,7 +258,7 @@ TEST(GoldenThingAdminClientTest, UpdateDatabase) { EXPECT_CALL(*mock, options).WillRepeatedly([] { return golden_v1_internal::GoldenThingAdminDefaultOptions(Options{}); }); - EXPECT_CALL(*mock, UpdateDatabaseDdl) + EXPECT_CALL(*mock, UpdateDatabaseDdl(_)) .Times(2) .WillRepeatedly([expected_database]( ::google::test::admin::database::v1:: @@ -669,7 +670,7 @@ TEST(GoldenThingAdminClientTest, CreateBackup) { EXPECT_CALL(*mock, options).WillRepeatedly([] { return golden_v1_internal::GoldenThingAdminDefaultOptions(Options{}); }); - EXPECT_CALL(*mock, CreateBackup) + EXPECT_CALL(*mock, CreateBackup(_)) .Times(2) .WillRepeatedly( [expected_database, expire_time, backup_id, expected_backup_name]( @@ -875,7 +876,7 @@ TEST(GoldenThingAdminClientTest, RestoreDatabase) { EXPECT_CALL(*mock, options).WillRepeatedly([] { return golden_v1_internal::GoldenThingAdminDefaultOptions(Options{}); }); - EXPECT_CALL(*mock, RestoreDatabase) + EXPECT_CALL(*mock, RestoreDatabase(_)) .Times(2) .WillRepeatedly([expected_backup_name, expected_database, expected_instance](::google::test::admin::database::v1:: diff --git a/generator/integration_tests/tests/golden_thing_admin_connection_test.cc b/generator/integration_tests/tests/golden_thing_admin_connection_test.cc index 280d3444a52f9..5ddcec8bd6911 100644 --- a/generator/integration_tests/tests/golden_thing_admin_connection_test.cc +++ b/generator/integration_tests/tests/golden_thing_admin_connection_test.cc @@ -48,6 +48,7 @@ using ::testing::AtLeast; using ::testing::Contains; using ::testing::ContainsRegex; using ::testing::ElementsAre; +using ::testing::Eq; using ::testing::HasSubstr; using ::testing::Pair; using ::testing::Return; @@ -242,6 +243,44 @@ TEST(GoldenThingAdminConnectionTest, CreateDatabaseCancel) { EXPECT_THAT(db, StatusIs(StatusCode::kCancelled)); } +TEST(GoldenThingAdminConnectionTest, CreateDatabaseStartAwait) { + auto mock = std::make_shared(); + google::longrunning::Operation expected_operation; + expected_operation.set_name("test-operation-name"); + google::test::admin::database::v1::CreateDatabaseMetadata metadata; + expected_operation.mutable_metadata()->PackFrom(metadata); + + EXPECT_CALL(*mock, CreateDatabase(_, _, _)).WillOnce([&] { + return make_status_or(expected_operation); + }); + EXPECT_CALL(*mock, AsyncGetOperation) + .WillOnce([expected_operation]( + CompletionQueue&, auto, auto, + google::longrunning::GetOperationRequest const& r) { + EXPECT_EQ(expected_operation.name(), r.name()); + google::longrunning::Operation op; + op.set_name(r.name()); + op.set_done(true); + ::google::test::admin::database::v1::Database database; + database.set_name("test-database"); + op.mutable_response()->PackFrom(database); + return make_ready_future(make_status_or(op)); + }); + + auto conn = CreateTestingConnection(std::move(mock)); + ::google::test::admin::database::v1::CreateDatabaseRequest dbase; + google::cloud::internal::OptionsSpan span( + google::cloud::internal::MergeOptions(Options{}, conn->options())); + // TODO(#14344): Remove experimental tag. + auto operation = conn->CreateDatabase(ExperimentalTag{}, NoAwaitTag{}, dbase); + ASSERT_STATUS_OK(operation); + EXPECT_THAT(operation->name(), Eq(expected_operation.name())); + + auto database = conn->CreateDatabase(ExperimentalTag{}, *operation).get(); + ASSERT_STATUS_OK(database); + EXPECT_EQ("test-database", database->name()); +} + /// @test Verify that the successful case works. TEST(GoldenThingAdminConnectionTest, GetDatabaseSuccess) { auto mock = std::make_shared(); @@ -378,6 +417,49 @@ TEST(GoldenThingAdminConnectionTest, UpdateDatabaseDdlCancel) { EXPECT_THAT(db, StatusIs(StatusCode::kCancelled)); } +TEST(GoldenThingAdminConnectionTest, UpdateDatabaseDdlStartAwait) { + auto mock = std::make_shared(); + google::longrunning::Operation expected_operation; + expected_operation.set_name("test-operation-name"); + google::test::admin::database::v1::UpdateDatabaseDdlMetadata metadata; + expected_operation.mutable_metadata()->PackFrom(metadata); + + EXPECT_CALL(*mock, UpdateDatabaseDdl(_, _, _)).WillOnce([&] { + return make_status_or(expected_operation); + }); + EXPECT_CALL(*mock, AsyncGetOperation) + .WillOnce([expected_operation]( + CompletionQueue&, auto, auto, + google::longrunning::GetOperationRequest const& r) { + EXPECT_EQ(expected_operation.name(), r.name()); + google::longrunning::Operation op; + op.set_name(r.name()); + op.set_done(true); + ::google::test::admin::database::v1::UpdateDatabaseDdlMetadata metadata; + metadata.set_database("test-database"); + op.mutable_metadata()->PackFrom(metadata); + return make_ready_future(make_status_or(op)); + }); + + auto conn = CreateTestingConnection(std::move(mock)); + ::google::test::admin::database::v1::UpdateDatabaseDdlRequest request; + request.set_database( + "projects/test-project/instances/test-instance/databases/test-database"); + *request.add_statements() = + "ALTER TABLE Albums ADD COLUMN MarketingBudget INT64"; + google::cloud::internal::OptionsSpan span( + google::cloud::internal::MergeOptions(Options{}, conn->options())); + // TODO(#14344): Remove experimental tag. + auto operation = + conn->UpdateDatabaseDdl(ExperimentalTag{}, NoAwaitTag{}, request); + ASSERT_STATUS_OK(operation); + EXPECT_THAT(operation->name(), Eq(expected_operation.name())); + + auto update = conn->UpdateDatabaseDdl(ExperimentalTag{}, *operation).get(); + ASSERT_STATUS_OK(update); + EXPECT_EQ("test-database", update->database()); +} + /// @test Verify that the successful case works. TEST(GoldenThingAdminConnectionTest, DropDatabaseSuccess) { auto mock = std::make_shared(); @@ -759,6 +841,47 @@ TEST(GoldenThingAdminConnectionTest, CreateBackupCancel) { EXPECT_THAT(db, StatusIs(StatusCode::kCancelled)); } +TEST(GoldenThingAdminConnectionTest, CreateBackupStartAwait) { + auto mock = std::make_shared(); + google::longrunning::Operation expected_operation; + expected_operation.set_name("test-operation-name"); + google::test::admin::database::v1::CreateBackupMetadata metadata; + expected_operation.mutable_metadata()->PackFrom(metadata); + + EXPECT_CALL(*mock, CreateBackup(_, _, _)).WillOnce([&] { + return make_status_or(expected_operation); + }); + EXPECT_CALL(*mock, AsyncGetOperation) + .WillOnce([expected_operation]( + CompletionQueue&, auto, auto, + google::longrunning::GetOperationRequest const& r) { + EXPECT_EQ(expected_operation.name(), r.name()); + google::longrunning::Operation op; + op.set_name(r.name()); + op.set_done(true); + ::google::test::admin::database::v1::Backup backup; + backup.set_name("test-backup"); + op.mutable_response()->PackFrom(backup); + return make_ready_future(make_status_or(op)); + }); + + auto conn = CreateTestingConnection(std::move(mock)); + ::google::test::admin::database::v1::CreateBackupRequest request; + request.set_parent("projects/test-project/instances/test-instance"); + request.set_backup_id("test-backup"); + request.mutable_backup()->set_name("test-backup"); + google::cloud::internal::OptionsSpan span( + google::cloud::internal::MergeOptions(Options{}, conn->options())); + // TODO(#14344): Remove experimental tag. + auto operation = conn->CreateBackup(ExperimentalTag{}, NoAwaitTag{}, request); + ASSERT_STATUS_OK(operation); + EXPECT_THAT(operation->name(), Eq(expected_operation.name())); + + auto backup = conn->CreateBackup(ExperimentalTag{}, *operation).get(); + ASSERT_STATUS_OK(backup); + EXPECT_EQ("test-backup", backup->name()); +} + /// @test Verify that the successful case works. TEST(GoldenThingAdminConnectionTest, GetBackupSuccess) { auto mock = std::make_shared(); @@ -1089,6 +1212,50 @@ TEST(GoldenThingAdminConnectionTest, RestoreBackupCancel) { EXPECT_THAT(db, StatusIs(StatusCode::kCancelled)); } +TEST(GoldenThingAdminConnectionTest, RestoreDatabaseStartAwait) { + auto mock = std::make_shared(); + google::longrunning::Operation expected_operation; + expected_operation.set_name("test-operation-name"); + google::test::admin::database::v1::RestoreDatabaseMetadata metadata; + expected_operation.mutable_metadata()->PackFrom(metadata); + + EXPECT_CALL(*mock, RestoreDatabase(_, _, _)).WillOnce([&] { + return make_status_or(expected_operation); + }); + EXPECT_CALL(*mock, AsyncGetOperation) + .WillOnce([expected_operation]( + CompletionQueue&, auto, auto, + google::longrunning::GetOperationRequest const& r) { + EXPECT_EQ(expected_operation.name(), r.name()); + google::longrunning::Operation op; + op.set_name(r.name()); + op.set_done(true); + ::google::test::admin::database::v1::Database database; + database.set_name("test-database"); + op.mutable_response()->PackFrom(database); + return make_ready_future(make_status_or(op)); + }); + + auto conn = CreateTestingConnection(std::move(mock)); + ::google::test::admin::database::v1::RestoreDatabaseRequest request; + request.set_parent("projects/test-project/instances/test-instance"); + request.set_database_id( + "projects/test-project/instances/test-instance/databases/test-database"); + request.set_backup( + "projects/test-project/instances/test-instance/backups/test-backup"); + google::cloud::internal::OptionsSpan span( + google::cloud::internal::MergeOptions(Options{}, conn->options())); + // TODO(#14344): Remove experimental tag. + auto operation = + conn->RestoreDatabase(ExperimentalTag{}, NoAwaitTag{}, request); + ASSERT_STATUS_OK(operation); + EXPECT_THAT(operation->name(), Eq(expected_operation.name())); + + auto database = conn->RestoreDatabase(ExperimentalTag{}, *operation).get(); + ASSERT_STATUS_OK(database); + EXPECT_EQ("test-database", database->name()); +} + /// @test Verify that we can list database operations in multiple pages. TEST(GoldenThingAdminConnectionTest, ListDatabaseOperations) { auto mock = std::make_shared(); diff --git a/generator/integration_tests/tests/golden_thing_admin_rest_connection_test.cc b/generator/integration_tests/tests/golden_thing_admin_rest_connection_test.cc index b93e915a78498..b7bc016df8356 100644 --- a/generator/integration_tests/tests/golden_thing_admin_rest_connection_test.cc +++ b/generator/integration_tests/tests/golden_thing_admin_rest_connection_test.cc @@ -255,6 +255,44 @@ TEST(GoldenThingAdminConnectionTest, CreateDatabaseCancel) { EXPECT_THAT(db, StatusIs(StatusCode::kCancelled)); } +TEST(GoldenThingAdminConnectionTest, CreateDatabaseStartAwait) { + auto mock = std::make_shared(); + google::longrunning::Operation expected_operation; + expected_operation.set_name("test-operation-name"); + google::test::admin::database::v1::CreateDatabaseMetadata metadata; + expected_operation.mutable_metadata()->PackFrom(metadata); + + EXPECT_CALL(*mock, CreateDatabase(_, _, _)).WillOnce([&] { + return make_status_or(expected_operation); + }); + EXPECT_CALL(*mock, AsyncGetOperation) + .WillOnce([expected_operation]( + CompletionQueue&, auto, auto, + google::longrunning::GetOperationRequest const& r) { + EXPECT_EQ(expected_operation.name(), r.name()); + google::longrunning::Operation op; + op.set_name(r.name()); + op.set_done(true); + ::google::test::admin::database::v1::Database database; + database.set_name("test-database"); + op.mutable_response()->PackFrom(database); + return make_ready_future(make_status_or(op)); + }); + + auto conn = CreateTestingConnection(std::move(mock)); + ::google::test::admin::database::v1::CreateDatabaseRequest dbase; + google::cloud::internal::OptionsSpan span( + google::cloud::internal::MergeOptions(Options{}, conn->options())); + // TODO(#14344): Remove experimental tag. + auto operation = conn->CreateDatabase(ExperimentalTag{}, NoAwaitTag{}, dbase); + ASSERT_STATUS_OK(operation); + EXPECT_THAT(operation->name(), Eq(expected_operation.name())); + + auto database = conn->CreateDatabase(ExperimentalTag{}, *operation).get(); + ASSERT_STATUS_OK(database); + EXPECT_EQ("test-database", database->name()); +} + /// @test Verify that the successful case works. TEST(GoldenThingAdminConnectionTest, GetDatabaseSuccess) { auto mock = std::make_shared(); @@ -402,6 +440,49 @@ TEST(GoldenThingAdminConnectionTest, UpdateDatabaseDdlCancel) { EXPECT_THAT(db, StatusIs(StatusCode::kCancelled)); } +TEST(GoldenThingAdminRestConnectionTest, UpdateDatabaseDdlStartAwait) { + auto mock = std::make_shared(); + google::longrunning::Operation expected_operation; + expected_operation.set_name("test-operation-name"); + google::test::admin::database::v1::UpdateDatabaseDdlMetadata metadata; + expected_operation.mutable_metadata()->PackFrom(metadata); + + EXPECT_CALL(*mock, UpdateDatabaseDdl(_, _, _)).WillOnce([&] { + return make_status_or(expected_operation); + }); + EXPECT_CALL(*mock, AsyncGetOperation) + .WillOnce([expected_operation]( + CompletionQueue&, auto, auto, + google::longrunning::GetOperationRequest const& r) { + EXPECT_EQ(expected_operation.name(), r.name()); + google::longrunning::Operation op; + op.set_name(r.name()); + op.set_done(true); + ::google::test::admin::database::v1::UpdateDatabaseDdlMetadata metadata; + metadata.set_database("test-database"); + op.mutable_metadata()->PackFrom(metadata); + return make_ready_future(make_status_or(op)); + }); + + auto conn = CreateTestingConnection(std::move(mock)); + ::google::test::admin::database::v1::UpdateDatabaseDdlRequest request; + request.set_database( + "projects/test-project/instances/test-instance/databases/test-database"); + *request.add_statements() = + "ALTER TABLE Albums ADD COLUMN MarketingBudget INT64"; + google::cloud::internal::OptionsSpan span( + google::cloud::internal::MergeOptions(Options{}, conn->options())); + // TODO(#14344): Remove experimental tag. + auto operation = + conn->UpdateDatabaseDdl(ExperimentalTag{}, NoAwaitTag{}, request); + ASSERT_STATUS_OK(operation); + EXPECT_THAT(operation->name(), Eq(expected_operation.name())); + + auto update = conn->UpdateDatabaseDdl(ExperimentalTag{}, *operation).get(); + ASSERT_STATUS_OK(update); + EXPECT_EQ("test-database", update->database()); +} + /// @test Verify that the successful case works. TEST(GoldenThingAdminConnectionTest, DropDatabaseSuccess) { auto mock = std::make_shared(); @@ -794,6 +875,47 @@ TEST(GoldenThingAdminConnectionTest, CreateBackupCancel) { EXPECT_THAT(db, StatusIs(StatusCode::kCancelled)); } +TEST(GoldenThingAdminConnectionTest, CreateBackupStartAwait) { + auto mock = std::make_shared(); + google::longrunning::Operation expected_operation; + expected_operation.set_name("test-operation-name"); + google::test::admin::database::v1::CreateBackupMetadata metadata; + expected_operation.mutable_metadata()->PackFrom(metadata); + + EXPECT_CALL(*mock, CreateBackup(_, _, _)).WillOnce([&] { + return make_status_or(expected_operation); + }); + EXPECT_CALL(*mock, AsyncGetOperation) + .WillOnce([expected_operation]( + CompletionQueue&, auto, auto, + google::longrunning::GetOperationRequest const& r) { + EXPECT_EQ(expected_operation.name(), r.name()); + google::longrunning::Operation op; + op.set_name(r.name()); + op.set_done(true); + ::google::test::admin::database::v1::Backup backup; + backup.set_name("test-backup"); + op.mutable_response()->PackFrom(backup); + return make_ready_future(make_status_or(op)); + }); + + auto conn = CreateTestingConnection(std::move(mock)); + ::google::test::admin::database::v1::CreateBackupRequest request; + request.set_parent("projects/test-project/instances/test-instance"); + request.set_backup_id("test-backup"); + request.mutable_backup()->set_name("test-backup"); + google::cloud::internal::OptionsSpan span( + google::cloud::internal::MergeOptions(Options{}, conn->options())); + // TODO(#14344): Remove experimental tag. + auto operation = conn->CreateBackup(ExperimentalTag{}, NoAwaitTag{}, request); + ASSERT_STATUS_OK(operation); + EXPECT_THAT(operation->name(), Eq(expected_operation.name())); + + auto backup = conn->CreateBackup(ExperimentalTag{}, *operation).get(); + ASSERT_STATUS_OK(backup); + EXPECT_EQ("test-backup", backup->name()); +} + /// @test Verify that the successful case works. TEST(GoldenThingAdminConnectionTest, GetBackupSuccess) { auto mock = std::make_shared(); @@ -1131,6 +1253,50 @@ TEST(GoldenThingAdminConnectionTest, RestoreBackupCancel) { EXPECT_THAT(db, StatusIs(StatusCode::kCancelled)); } +TEST(GoldenThingAdminConnectionTest, RestoreDatabaseStartAwait) { + auto mock = std::make_shared(); + google::longrunning::Operation expected_operation; + expected_operation.set_name("test-operation-name"); + google::test::admin::database::v1::RestoreDatabaseMetadata metadata; + expected_operation.mutable_metadata()->PackFrom(metadata); + + EXPECT_CALL(*mock, RestoreDatabase(_, _, _)).WillOnce([&] { + return make_status_or(expected_operation); + }); + EXPECT_CALL(*mock, AsyncGetOperation) + .WillOnce([expected_operation]( + CompletionQueue&, auto, auto, + google::longrunning::GetOperationRequest const& r) { + EXPECT_EQ(expected_operation.name(), r.name()); + google::longrunning::Operation op; + op.set_name(r.name()); + op.set_done(true); + ::google::test::admin::database::v1::Database database; + database.set_name("test-database"); + op.mutable_response()->PackFrom(database); + return make_ready_future(make_status_or(op)); + }); + + auto conn = CreateTestingConnection(std::move(mock)); + ::google::test::admin::database::v1::RestoreDatabaseRequest request; + request.set_parent("projects/test-project/instances/test-instance"); + request.set_database_id( + "projects/test-project/instances/test-instance/databases/test-database"); + request.set_backup( + "projects/test-project/instances/test-instance/backups/test-backup"); + google::cloud::internal::OptionsSpan span( + google::cloud::internal::MergeOptions(Options{}, conn->options())); + // TODO(#14344): Remove experimental tag. + auto operation = + conn->RestoreDatabase(ExperimentalTag{}, NoAwaitTag{}, request); + ASSERT_STATUS_OK(operation); + EXPECT_THAT(operation->name(), Eq(expected_operation.name())); + + auto database = conn->RestoreDatabase(ExperimentalTag{}, *operation).get(); + ASSERT_STATUS_OK(database); + EXPECT_EQ("test-database", database->name()); +} + /// @test Verify that we can list database operations in multiple pages. TEST(GoldenThingAdminConnectionTest, ListDatabaseOperations) { auto mock = std::make_shared(); diff --git a/generator/integration_tests/tests/golden_thing_admin_tracing_connection_test.cc b/generator/integration_tests/tests/golden_thing_admin_tracing_connection_test.cc index 82c341d29c735..fc8645e1d396b 100644 --- a/generator/integration_tests/tests/golden_thing_admin_tracing_connection_test.cc +++ b/generator/integration_tests/tests/golden_thing_admin_tracing_connection_test.cc @@ -46,6 +46,7 @@ using ::google::cloud::testing_util::SpanWithStatus; using ::google::cloud::testing_util::ThereIsAnActiveSpan; using ::google::test::admin::database::v1::Backup; using ::google::test::admin::database::v1::Database; +using ::testing::_; using ::testing::AllOf; using ::testing::ElementsAre; using ::testing::IsEmpty; @@ -98,7 +99,7 @@ TEST(GoldenThingAdminTracingConnectionTest, CreateDatabase) { auto span_catcher = InstallSpanCatcher(); auto mock = std::make_shared(); - EXPECT_CALL(*mock, CreateDatabase).WillOnce([] { + EXPECT_CALL(*mock, CreateDatabase(_)).WillOnce([] { EXPECT_TRUE(ThereIsAnActiveSpan()); EXPECT_TRUE(OTelContextCaptured()); return make_ready_future>( @@ -121,6 +122,61 @@ TEST(GoldenThingAdminTracingConnectionTest, CreateDatabase) { OTelAttribute("gl-cpp.status_code", kErrorCode))))); } +TEST(GoldenThingAdminTracingConnectionTest, CreateDatabaseStart) { + auto span_catcher = InstallSpanCatcher(); + + auto mock = std::make_shared(); + EXPECT_CALL(*mock, CreateDatabase(_, _, _)).WillOnce([] { + EXPECT_TRUE(ThereIsAnActiveSpan()); + EXPECT_TRUE(OTelContextCaptured()); + return StatusOr( + internal::AbortedError("fail")); + }); + + auto under_test = GoldenThingAdminTracingConnection(mock); + google::test::admin::database::v1::CreateDatabaseRequest request; + auto result = + under_test.CreateDatabase(ExperimentalTag{}, NoAwaitTag{}, request); + EXPECT_THAT(result, StatusIs(StatusCode::kAborted)); + + auto spans = span_catcher->GetSpans(); + EXPECT_THAT( + spans, + ElementsAre(AllOf( + SpanHasInstrumentationScope(), SpanKindIsClient(), + SpanNamed("golden_v1::GoldenThingAdminConnection::CreateDatabase"), + SpanWithStatus(opentelemetry::trace::StatusCode::kError, "fail"), + SpanHasAttributes( + OTelAttribute("gl-cpp.status_code", kErrorCode))))); +} + +TEST(GoldenThingAdminTracingConnectionTest, CreateDatabaseAwait) { + auto span_catcher = InstallSpanCatcher(); + + auto mock = std::make_shared(); + EXPECT_CALL(*mock, CreateDatabase(_, _)).WillOnce([] { + EXPECT_TRUE(ThereIsAnActiveSpan()); + EXPECT_TRUE(OTelContextCaptured()); + return make_ready_future>( + internal::AbortedError("fail")); + }); + + auto under_test = GoldenThingAdminTracingConnection(mock); + google::longrunning::Operation operation; + auto result = under_test.CreateDatabase(ExperimentalTag{}, operation).get(); + EXPECT_THAT(result, StatusIs(StatusCode::kAborted)); + + auto spans = span_catcher->GetSpans(); + EXPECT_THAT( + spans, + ElementsAre(AllOf( + SpanHasInstrumentationScope(), SpanKindIsClient(), + SpanNamed("golden_v1::GoldenThingAdminConnection::CreateDatabase"), + SpanWithStatus(opentelemetry::trace::StatusCode::kError, "fail"), + SpanHasAttributes( + OTelAttribute("gl-cpp.status_code", kErrorCode))))); +} + TEST(GoldenThingAdminTracingConnectionTest, GetDatabase) { auto span_catcher = InstallSpanCatcher(); @@ -151,7 +207,7 @@ TEST(GoldenThingAdminTracingConnectionTest, UpdateDatabaseDdl) { auto mock = std::make_shared(); using ::google::test::admin::database::v1::UpdateDatabaseDdlMetadata; - EXPECT_CALL(*mock, UpdateDatabaseDdl).WillOnce([] { + EXPECT_CALL(*mock, UpdateDatabaseDdl(_)).WillOnce([] { EXPECT_TRUE(ThereIsAnActiveSpan()); EXPECT_TRUE(OTelContextCaptured()); return make_ready_future>( @@ -304,7 +360,7 @@ TEST(GoldenThingAdminTracingConnectionTest, CreateBackup) { auto span_catcher = InstallSpanCatcher(); auto mock = std::make_shared(); - EXPECT_CALL(*mock, CreateBackup).WillOnce([] { + EXPECT_CALL(*mock, CreateBackup(_)).WillOnce([] { EXPECT_TRUE(ThereIsAnActiveSpan()); EXPECT_TRUE(OTelContextCaptured()); return make_ready_future>(internal::AbortedError("fail")); @@ -433,7 +489,7 @@ TEST(GoldenThingAdminTracingConnectionTest, RestoreDatabase) { auto span_catcher = InstallSpanCatcher(); auto mock = std::make_shared(); - EXPECT_CALL(*mock, RestoreDatabase).WillOnce([] { + EXPECT_CALL(*mock, RestoreDatabase(_)).WillOnce([] { EXPECT_TRUE(ThereIsAnActiveSpan()); EXPECT_TRUE(OTelContextCaptured()); return make_ready_future>( @@ -520,7 +576,7 @@ TEST(GoldenThingAdminTracingConnectionTest, LongRunningWithoutRouting) { auto span_catcher = InstallSpanCatcher(); auto mock = std::make_shared(); - EXPECT_CALL(*mock, LongRunningWithoutRouting).WillOnce([] { + EXPECT_CALL(*mock, LongRunningWithoutRouting(_)).WillOnce([] { EXPECT_TRUE(ThereIsAnActiveSpan()); EXPECT_TRUE(OTelContextCaptured()); return make_ready_future>( From 16766be3bcd018471bce50eed0b7f055742a7d6c Mon Sep 17 00:00:00 2001 From: Scott Hart Date: Mon, 24 Jun 2024 10:47:41 -0400 Subject: [PATCH 04/11] generated golden files --- .../v1/golden_kitchen_sink_connection.h | 2 + .../golden/v1/golden_rest_only_connection.h | 2 + .../v1/golden_thing_admin_connection.cc | 80 ++++++ .../golden/v1/golden_thing_admin_connection.h | 32 +++ .../golden_thing_admin_connection_impl.cc | 235 ++++++++++++++++++ .../golden_thing_admin_connection_impl.h | 40 +++ ...golden_thing_admin_rest_connection_impl.cc | 180 ++++++++++++++ .../golden_thing_admin_rest_connection_impl.h | 32 +++ .../golden_thing_admin_tracing_connection.cc | 100 ++++++++ .../golden_thing_admin_tracing_connection.h | 40 +++ .../v1/internal/request_id_connection_impl.cc | 47 ++++ .../v1/internal/request_id_connection_impl.h | 8 + .../internal/request_id_tracing_connection.cc | 20 ++ .../internal/request_id_tracing_connection.h | 8 + .../mock_golden_thing_admin_connection.h | 40 +++ .../v1/mocks/mock_request_id_connection.h | 8 + .../golden/v1/request_id_connection.cc | 16 ++ .../golden/v1/request_id_connection.h | 8 + 18 files changed, 898 insertions(+) diff --git a/generator/integration_tests/golden/v1/golden_kitchen_sink_connection.h b/generator/integration_tests/golden/v1/golden_kitchen_sink_connection.h index c0c4d98ef7c48..a194b47ae3a57 100644 --- a/generator/integration_tests/golden/v1/golden_kitchen_sink_connection.h +++ b/generator/integration_tests/golden/v1/golden_kitchen_sink_connection.h @@ -21,7 +21,9 @@ #include "generator/integration_tests/golden/v1/golden_kitchen_sink_connection_idempotency_policy.h" #include "generator/integration_tests/golden/v1/internal/golden_kitchen_sink_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/async_read_write_stream_impl.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/generator/integration_tests/golden/v1/golden_rest_only_connection.h b/generator/integration_tests/golden/v1/golden_rest_only_connection.h index 49b0a925e4378..7f9f326986050 100644 --- a/generator/integration_tests/golden/v1/golden_rest_only_connection.h +++ b/generator/integration_tests/golden/v1/golden_rest_only_connection.h @@ -21,7 +21,9 @@ #include "generator/integration_tests/golden/v1/golden_rest_only_connection_idempotency_policy.h" #include "generator/integration_tests/golden/v1/internal/golden_rest_only_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/generator/integration_tests/golden/v1/golden_thing_admin_connection.cc b/generator/integration_tests/golden/v1/golden_thing_admin_connection.cc index 6c13dcc67ee28..08121d3dbaad3 100644 --- a/generator/integration_tests/golden/v1/golden_thing_admin_connection.cc +++ b/generator/integration_tests/golden/v1/golden_thing_admin_connection.cc @@ -52,6 +52,22 @@ GoldenThingAdminConnection::CreateDatabase( Status(StatusCode::kUnimplemented, "not implemented")); } + StatusOr +GoldenThingAdminConnection::CreateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::CreateDatabaseRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + + future> +GoldenThingAdminConnection::CreateDatabase( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr GoldenThingAdminConnection::GetDatabase( google::test::admin::database::v1::GetDatabaseRequest const&) { @@ -66,6 +82,22 @@ GoldenThingAdminConnection::UpdateDatabaseDdl( Status(StatusCode::kUnimplemented, "not implemented")); } + StatusOr +GoldenThingAdminConnection::UpdateDatabaseDdl( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::UpdateDatabaseDdlRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + + future> +GoldenThingAdminConnection::UpdateDatabaseDdl( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status GoldenThingAdminConnection::DropDatabase( google::test::admin::database::v1::DropDatabaseRequest const&) { @@ -104,6 +136,22 @@ GoldenThingAdminConnection::CreateBackup( Status(StatusCode::kUnimplemented, "not implemented")); } + StatusOr +GoldenThingAdminConnection::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::CreateBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + + future> +GoldenThingAdminConnection::CreateBackup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr GoldenThingAdminConnection::GetBackup( google::test::admin::database::v1::GetBackupRequest const&) { @@ -136,6 +184,22 @@ GoldenThingAdminConnection::RestoreDatabase( Status(StatusCode::kUnimplemented, "not implemented")); } + StatusOr +GoldenThingAdminConnection::RestoreDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::RestoreDatabaseRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + + future> +GoldenThingAdminConnection::RestoreDatabase( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange GoldenThingAdminConnection::ListDatabaseOperations( google::test::admin::database::v1::ListDatabaseOperationsRequest) { // NOLINT(performance-unnecessary-value-param) return google::cloud::internal::MakeUnimplementedPaginationRange< @@ -156,6 +220,22 @@ GoldenThingAdminConnection::LongRunningWithoutRouting( Status(StatusCode::kUnimplemented, "not implemented")); } + StatusOr +GoldenThingAdminConnection::LongRunningWithoutRouting( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::RestoreDatabaseRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + + future> +GoldenThingAdminConnection::LongRunningWithoutRouting( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> GoldenThingAdminConnection::AsyncGetDatabase( google::test::admin::database::v1::GetDatabaseRequest const&) { diff --git a/generator/integration_tests/golden/v1/golden_thing_admin_connection.h b/generator/integration_tests/golden/v1/golden_thing_admin_connection.h index b34ba3376a802..e5acd7a0a6494 100644 --- a/generator/integration_tests/golden/v1/golden_thing_admin_connection.h +++ b/generator/integration_tests/golden/v1/golden_thing_admin_connection.h @@ -21,7 +21,9 @@ #include "generator/integration_tests/golden/v1/golden_thing_admin_connection_idempotency_policy.h" #include "generator/integration_tests/golden/v1/internal/golden_thing_admin_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -187,12 +189,24 @@ class GoldenThingAdminConnection { virtual future> CreateDatabase(google::test::admin::database::v1::CreateDatabaseRequest const& request); + virtual StatusOr + CreateDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request); + + virtual future> + CreateDatabase(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation); + virtual StatusOr GetDatabase(google::test::admin::database::v1::GetDatabaseRequest const& request); virtual future> UpdateDatabaseDdl(google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request); + virtual StatusOr + UpdateDatabaseDdl(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request); + + virtual future> + UpdateDatabaseDdl(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation); + virtual Status DropDatabase(google::test::admin::database::v1::DropDatabaseRequest const& request); @@ -211,6 +225,12 @@ class GoldenThingAdminConnection { virtual future> CreateBackup(google::test::admin::database::v1::CreateBackupRequest const& request); + virtual StatusOr + CreateBackup(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request); + + virtual future> + CreateBackup(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation); + virtual StatusOr GetBackup(google::test::admin::database::v1::GetBackupRequest const& request); @@ -226,6 +246,12 @@ class GoldenThingAdminConnection { virtual future> RestoreDatabase(google::test::admin::database::v1::RestoreDatabaseRequest const& request); + virtual StatusOr + RestoreDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request); + + virtual future> + RestoreDatabase(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation); + virtual StreamRange ListDatabaseOperations(google::test::admin::database::v1::ListDatabaseOperationsRequest request); @@ -235,6 +261,12 @@ class GoldenThingAdminConnection { virtual future> LongRunningWithoutRouting(google::test::admin::database::v1::RestoreDatabaseRequest const& request); + virtual StatusOr + LongRunningWithoutRouting(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request); + + virtual future> + LongRunningWithoutRouting(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation); + virtual future> AsyncGetDatabase(google::test::admin::database::v1::GetDatabaseRequest const& request); diff --git a/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.cc b/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.cc index a97810a4b4a86..fd08d62927630 100644 --- a/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.cc +++ b/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.cc @@ -126,6 +126,53 @@ GoldenThingAdminConnectionImpl::CreateDatabase(google::test::admin::database::v1 polling_policy(*current), __func__); } + +StatusOr +GoldenThingAdminConnectionImpl::CreateDatabase(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDatabase(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::test::admin::database::v1::CreateDatabaseRequest const& request) { + return stub_->CreateDatabase(context, options, request); + }, + *current, request, __func__); +} + + +future> +GoldenThingAdminConnectionImpl::CreateDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError("operation does not correspond to CreateDatabase", + GCP_ERROR_INFO().WithMetadata("operation", operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation( + cq, std::move(context), std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse, + polling_policy(*current), __func__); +} + StatusOr GoldenThingAdminConnectionImpl::GetDatabase(google::test::admin::database::v1::GetDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -173,6 +220,53 @@ GoldenThingAdminConnectionImpl::UpdateDatabaseDdl(google::test::admin::database: polling_policy(*current), __func__); } + +StatusOr +GoldenThingAdminConnectionImpl::UpdateDatabaseDdl(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDatabaseDdl(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) { + return stub_->UpdateDatabaseDdl(context, options, request); + }, + *current, request, __func__); +} + + +future> +GoldenThingAdminConnectionImpl::UpdateDatabaseDdl(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError("operation does not correspond to UpdateDatabaseDdl", + GCP_ERROR_INFO().WithMetadata("operation", operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation( + cq, std::move(context), std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata, + polling_policy(*current), __func__); +} + Status GoldenThingAdminConnectionImpl::DropDatabase(google::test::admin::database::v1::DropDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -272,6 +366,53 @@ GoldenThingAdminConnectionImpl::CreateBackup(google::test::admin::database::v1:: polling_policy(*current), __func__); } + +StatusOr +GoldenThingAdminConnectionImpl::CreateBackup(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateBackup(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::test::admin::database::v1::CreateBackupRequest const& request) { + return stub_->CreateBackup(context, options, request); + }, + *current, request, __func__); +} + + +future> +GoldenThingAdminConnectionImpl::CreateBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError("operation does not correspond to CreateBackup", + GCP_ERROR_INFO().WithMetadata("operation", operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation( + cq, std::move(context), std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse, + polling_policy(*current), __func__); +} + StatusOr GoldenThingAdminConnectionImpl::GetBackup(google::test::admin::database::v1::GetBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -373,6 +514,53 @@ GoldenThingAdminConnectionImpl::RestoreDatabase(google::test::admin::database::v polling_policy(*current), __func__); } + +StatusOr +GoldenThingAdminConnectionImpl::RestoreDatabase(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RestoreDatabase(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::test::admin::database::v1::RestoreDatabaseRequest const& request) { + return stub_->RestoreDatabase(context, options, request); + }, + *current, request, __func__); +} + + +future> +GoldenThingAdminConnectionImpl::RestoreDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError("operation does not correspond to RestoreDatabase", + GCP_ERROR_INFO().WithMetadata("operation", operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation( + cq, std::move(context), std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse, + polling_policy(*current), __func__); +} + StreamRange GoldenThingAdminConnectionImpl::ListDatabaseOperations(google::test::admin::database::v1::ListDatabaseOperationsRequest request) { request.clear_page_token(); @@ -463,6 +651,53 @@ GoldenThingAdminConnectionImpl::LongRunningWithoutRouting(google::test::admin::d polling_policy(*current), __func__); } + +StatusOr +GoldenThingAdminConnectionImpl::LongRunningWithoutRouting(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->LongRunningWithoutRouting(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::test::admin::database::v1::RestoreDatabaseRequest const& request) { + return stub_->LongRunningWithoutRouting(context, options, request); + }, + *current, request, __func__); +} + + +future> +GoldenThingAdminConnectionImpl::LongRunningWithoutRouting(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError("operation does not correspond to LongRunningWithoutRouting", + GCP_ERROR_INFO().WithMetadata("operation", operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation( + cq, std::move(context), std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse, + polling_policy(*current), __func__); +} + future> GoldenThingAdminConnectionImpl::AsyncGetDatabase(google::test::admin::database::v1::GetDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.h b/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.h index d2f423a6dc0d2..07692e967a73d 100644 --- a/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.h +++ b/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.h @@ -58,12 +58,28 @@ class GoldenThingAdminConnectionImpl future> CreateDatabase(google::test::admin::database::v1::CreateDatabaseRequest const& request) override; + StatusOr + CreateDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::CreateDatabaseRequest const& request) override; + + future> + CreateDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDatabase(google::test::admin::database::v1::GetDatabaseRequest const& request) override; future> UpdateDatabaseDdl(google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; + StatusOr + UpdateDatabaseDdl(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; + + future> + UpdateDatabaseDdl(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DropDatabase(google::test::admin::database::v1::DropDatabaseRequest const& request) override; @@ -82,6 +98,14 @@ class GoldenThingAdminConnectionImpl future> CreateBackup(google::test::admin::database::v1::CreateBackupRequest const& request) override; + StatusOr + CreateBackup(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::CreateBackupRequest const& request) override; + + future> + CreateBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBackup(google::test::admin::database::v1::GetBackupRequest const& request) override; @@ -97,6 +121,14 @@ class GoldenThingAdminConnectionImpl future> RestoreDatabase(google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; + StatusOr + RestoreDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; + + future> + RestoreDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDatabaseOperations(google::test::admin::database::v1::ListDatabaseOperationsRequest request) override; @@ -106,6 +138,14 @@ class GoldenThingAdminConnectionImpl future> LongRunningWithoutRouting(google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; + StatusOr + LongRunningWithoutRouting(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; + + future> + LongRunningWithoutRouting(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AsyncGetDatabase(google::test::admin::database::v1::GetDatabaseRequest const& request) override; diff --git a/generator/integration_tests/golden/v1/internal/golden_thing_admin_rest_connection_impl.cc b/generator/integration_tests/golden/v1/internal/golden_thing_admin_rest_connection_impl.cc index 47db4d0af2cd2..82590fff27aa3 100644 --- a/generator/integration_tests/golden/v1/internal/golden_thing_admin_rest_connection_impl.cc +++ b/generator/integration_tests/golden/v1/internal/golden_thing_admin_rest_connection_impl.cc @@ -104,6 +104,51 @@ GoldenThingAdminRestConnectionImpl::CreateDatabase(google::test::admin::database } + +StatusOr +GoldenThingAdminRestConnectionImpl::CreateDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDatabase(request), + [this](rest_internal::RestContext& rest_context, + Options const& options, google::test::admin::database::v1::CreateDatabaseRequest const& request) { + return stub_->CreateDatabase(rest_context, options, request); + }, + *current, request, __func__); +} + + +future> +GoldenThingAdminRestConnectionImpl::CreateDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError("operation does not correspond to CreateDatabase", + GCP_ERROR_INFO().WithMetadata("operation", operation.metadata().DebugString()))); + } + return rest_internal::AsyncRestAwaitLongRunningOperation( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation( + cq, std::move(context), std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse, + polling_policy(*current), __func__); + +} + StatusOr GoldenThingAdminRestConnectionImpl::GetDatabase(google::test::admin::database::v1::GetDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -149,6 +194,51 @@ GoldenThingAdminRestConnectionImpl::UpdateDatabaseDdl(google::test::admin::datab } + +StatusOr +GoldenThingAdminRestConnectionImpl::UpdateDatabaseDdl(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDatabaseDdl(request), + [this](rest_internal::RestContext& rest_context, + Options const& options, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) { + return stub_->UpdateDatabaseDdl(rest_context, options, request); + }, + *current, request, __func__); +} + + +future> +GoldenThingAdminRestConnectionImpl::UpdateDatabaseDdl(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError("operation does not correspond to UpdateDatabaseDdl", + GCP_ERROR_INFO().WithMetadata("operation", operation.metadata().DebugString()))); + } + return rest_internal::AsyncRestAwaitLongRunningOperation( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation( + cq, std::move(context), std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata, + polling_policy(*current), __func__); + +} + Status GoldenThingAdminRestConnectionImpl::DropDatabase(google::test::admin::database::v1::DropDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -246,6 +336,51 @@ GoldenThingAdminRestConnectionImpl::CreateBackup(google::test::admin::database:: } + +StatusOr +GoldenThingAdminRestConnectionImpl::CreateBackup(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateBackup(request), + [this](rest_internal::RestContext& rest_context, + Options const& options, google::test::admin::database::v1::CreateBackupRequest const& request) { + return stub_->CreateBackup(rest_context, options, request); + }, + *current, request, __func__); +} + + +future> +GoldenThingAdminRestConnectionImpl::CreateBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError("operation does not correspond to CreateBackup", + GCP_ERROR_INFO().WithMetadata("operation", operation.metadata().DebugString()))); + } + return rest_internal::AsyncRestAwaitLongRunningOperation( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation( + cq, std::move(context), std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse, + polling_policy(*current), __func__); + +} + StatusOr GoldenThingAdminRestConnectionImpl::GetBackup(google::test::admin::database::v1::GetBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -346,6 +481,51 @@ GoldenThingAdminRestConnectionImpl::RestoreDatabase(google::test::admin::databas } + +StatusOr +GoldenThingAdminRestConnectionImpl::RestoreDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RestoreDatabase(request), + [this](rest_internal::RestContext& rest_context, + Options const& options, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { + return stub_->RestoreDatabase(rest_context, options, request); + }, + *current, request, __func__); +} + + +future> +GoldenThingAdminRestConnectionImpl::RestoreDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError("operation does not correspond to RestoreDatabase", + GCP_ERROR_INFO().WithMetadata("operation", operation.metadata().DebugString()))); + } + return rest_internal::AsyncRestAwaitLongRunningOperation( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation( + cq, std::move(context), std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse, + polling_policy(*current), __func__); + +} + StreamRange GoldenThingAdminRestConnectionImpl::ListDatabaseOperations(google::test::admin::database::v1::ListDatabaseOperationsRequest request) { request.clear_page_token(); diff --git a/generator/integration_tests/golden/v1/internal/golden_thing_admin_rest_connection_impl.h b/generator/integration_tests/golden/v1/internal/golden_thing_admin_rest_connection_impl.h index c9fd416397207..0bcfde534009c 100644 --- a/generator/integration_tests/golden/v1/internal/golden_thing_admin_rest_connection_impl.h +++ b/generator/integration_tests/golden/v1/internal/golden_thing_admin_rest_connection_impl.h @@ -56,12 +56,28 @@ class GoldenThingAdminRestConnectionImpl future> CreateDatabase(google::test::admin::database::v1::CreateDatabaseRequest const& request) override; + StatusOr + CreateDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::CreateDatabaseRequest const& request) override; + + future> + CreateDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDatabase(google::test::admin::database::v1::GetDatabaseRequest const& request) override; future> UpdateDatabaseDdl(google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; + StatusOr + UpdateDatabaseDdl(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; + + future> + UpdateDatabaseDdl(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DropDatabase(google::test::admin::database::v1::DropDatabaseRequest const& request) override; @@ -80,6 +96,14 @@ class GoldenThingAdminRestConnectionImpl future> CreateBackup(google::test::admin::database::v1::CreateBackupRequest const& request) override; + StatusOr + CreateBackup(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::CreateBackupRequest const& request) override; + + future> + CreateBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBackup(google::test::admin::database::v1::GetBackupRequest const& request) override; @@ -95,6 +119,14 @@ class GoldenThingAdminRestConnectionImpl future> RestoreDatabase(google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; + StatusOr + RestoreDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; + + future> + RestoreDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDatabaseOperations(google::test::admin::database::v1::ListDatabaseOperationsRequest request) override; diff --git a/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.cc b/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.cc index 9c1e71be804d8..c52b82feecb6b 100644 --- a/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.cc +++ b/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.cc @@ -50,6 +50,26 @@ GoldenThingAdminTracingConnection::CreateDatabase(google::test::admin::database: return internal::EndSpan(std::move(span), child_->CreateDatabase(request)); } +StatusOr +GoldenThingAdminTracingConnection::CreateDatabase(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) { + auto span = internal::MakeSpan( + "golden_v1::GoldenThingAdminConnection::CreateDatabase"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateDatabase( + google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); +} + +future> +GoldenThingAdminTracingConnection::CreateDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "golden_v1::GoldenThingAdminConnection::CreateDatabase"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateDatabase(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr GoldenThingAdminTracingConnection::GetDatabase(google::test::admin::database::v1::GetDatabaseRequest const& request) { auto span = internal::MakeSpan("golden_v1::GoldenThingAdminConnection::GetDatabase"); @@ -65,6 +85,26 @@ GoldenThingAdminTracingConnection::UpdateDatabaseDdl(google::test::admin::databa return internal::EndSpan(std::move(span), child_->UpdateDatabaseDdl(request)); } +StatusOr +GoldenThingAdminTracingConnection::UpdateDatabaseDdl(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) { + auto span = internal::MakeSpan( + "golden_v1::GoldenThingAdminConnection::UpdateDatabaseDdl"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateDatabaseDdl( + google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); +} + +future> +GoldenThingAdminTracingConnection::UpdateDatabaseDdl(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "golden_v1::GoldenThingAdminConnection::UpdateDatabaseDdl"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateDatabaseDdl(google::cloud::ExperimentalTag{}, operation)); +} + Status GoldenThingAdminTracingConnection::DropDatabase(google::test::admin::database::v1::DropDatabaseRequest const& request) { auto span = internal::MakeSpan("golden_v1::GoldenThingAdminConnection::DropDatabase"); @@ -108,6 +148,26 @@ GoldenThingAdminTracingConnection::CreateBackup(google::test::admin::database::v return internal::EndSpan(std::move(span), child_->CreateBackup(request)); } +StatusOr +GoldenThingAdminTracingConnection::CreateBackup(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request) { + auto span = internal::MakeSpan( + "golden_v1::GoldenThingAdminConnection::CreateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateBackup( + google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); +} + +future> +GoldenThingAdminTracingConnection::CreateBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "golden_v1::GoldenThingAdminConnection::CreateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateBackup(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr GoldenThingAdminTracingConnection::GetBackup(google::test::admin::database::v1::GetBackupRequest const& request) { auto span = internal::MakeSpan("golden_v1::GoldenThingAdminConnection::GetBackup"); @@ -146,6 +206,26 @@ GoldenThingAdminTracingConnection::RestoreDatabase(google::test::admin::database return internal::EndSpan(std::move(span), child_->RestoreDatabase(request)); } +StatusOr +GoldenThingAdminTracingConnection::RestoreDatabase(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { + auto span = internal::MakeSpan( + "golden_v1::GoldenThingAdminConnection::RestoreDatabase"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RestoreDatabase( + google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); +} + +future> +GoldenThingAdminTracingConnection::RestoreDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "golden_v1::GoldenThingAdminConnection::RestoreDatabase"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RestoreDatabase(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange GoldenThingAdminTracingConnection::ListDatabaseOperations(google::test::admin::database::v1::ListDatabaseOperationsRequest request) { auto span = internal::MakeSpan("golden_v1::GoldenThingAdminConnection::ListDatabaseOperations"); @@ -172,6 +252,26 @@ GoldenThingAdminTracingConnection::LongRunningWithoutRouting(google::test::admin return internal::EndSpan(std::move(span), child_->LongRunningWithoutRouting(request)); } +StatusOr +GoldenThingAdminTracingConnection::LongRunningWithoutRouting(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { + auto span = internal::MakeSpan( + "golden_v1::GoldenThingAdminConnection::LongRunningWithoutRouting"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->LongRunningWithoutRouting( + google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); +} + +future> +GoldenThingAdminTracingConnection::LongRunningWithoutRouting(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "golden_v1::GoldenThingAdminConnection::LongRunningWithoutRouting"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->LongRunningWithoutRouting(google::cloud::ExperimentalTag{}, operation)); +} + future> GoldenThingAdminTracingConnection::AsyncGetDatabase(google::test::admin::database::v1::GetDatabaseRequest const& request) { auto span = internal::MakeSpan( diff --git a/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.h b/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.h index c67fbfcb73022..5716f1e7b2055 100644 --- a/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.h +++ b/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.h @@ -46,12 +46,28 @@ class GoldenThingAdminTracingConnection future> CreateDatabase(google::test::admin::database::v1::CreateDatabaseRequest const& request) override; + StatusOr + CreateDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::CreateDatabaseRequest const& request) override; + + future> + CreateDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDatabase(google::test::admin::database::v1::GetDatabaseRequest const& request) override; future> UpdateDatabaseDdl(google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; + StatusOr + UpdateDatabaseDdl(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; + + future> + UpdateDatabaseDdl(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DropDatabase(google::test::admin::database::v1::DropDatabaseRequest const& request) override; @@ -70,6 +86,14 @@ class GoldenThingAdminTracingConnection future> CreateBackup(google::test::admin::database::v1::CreateBackupRequest const& request) override; + StatusOr + CreateBackup(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::CreateBackupRequest const& request) override; + + future> + CreateBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBackup(google::test::admin::database::v1::GetBackupRequest const& request) override; @@ -85,6 +109,14 @@ class GoldenThingAdminTracingConnection future> RestoreDatabase(google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; + StatusOr + RestoreDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; + + future> + RestoreDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDatabaseOperations(google::test::admin::database::v1::ListDatabaseOperationsRequest request) override; @@ -94,6 +126,14 @@ class GoldenThingAdminTracingConnection future> LongRunningWithoutRouting(google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; + StatusOr + LongRunningWithoutRouting(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; + + future> + LongRunningWithoutRouting(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AsyncGetDatabase(google::test::admin::database::v1::GetDatabaseRequest const& request) override; diff --git a/generator/integration_tests/golden/v1/internal/request_id_connection_impl.cc b/generator/integration_tests/golden/v1/internal/request_id_connection_impl.cc index 76f3adb4c8ad0..2885d3576e6b6 100644 --- a/generator/integration_tests/golden/v1/internal/request_id_connection_impl.cc +++ b/generator/integration_tests/golden/v1/internal/request_id_connection_impl.cc @@ -118,6 +118,53 @@ RequestIdServiceConnectionImpl::RenameFoo(google::test::requestid::v1::RenameFoo polling_policy(*current), __func__); } + +StatusOr +RequestIdServiceConnectionImpl::RenameFoo(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, google::test::requestid::v1::RenameFooRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RenameFoo(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::test::requestid::v1::RenameFooRequest const& request) { + return stub_->RenameFoo(context, options, request); + }, + *current, request, __func__); +} + + +future> +RequestIdServiceConnectionImpl::RenameFoo(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError("operation does not correspond to RenameFoo", + GCP_ERROR_INFO().WithMetadata("operation", operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation( + cq, std::move(context), std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse, + polling_policy(*current), __func__); +} + StreamRange RequestIdServiceConnectionImpl::ListFoos(google::test::requestid::v1::ListFoosRequest request) { request.clear_page_token(); diff --git a/generator/integration_tests/golden/v1/internal/request_id_connection_impl.h b/generator/integration_tests/golden/v1/internal/request_id_connection_impl.h index 44b0f333da6b5..90febda5bd513 100644 --- a/generator/integration_tests/golden/v1/internal/request_id_connection_impl.h +++ b/generator/integration_tests/golden/v1/internal/request_id_connection_impl.h @@ -59,6 +59,14 @@ class RequestIdServiceConnectionImpl future> RenameFoo(google::test::requestid::v1::RenameFooRequest const& request) override; + StatusOr + RenameFoo(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::requestid::v1::RenameFooRequest const& request) override; + + future> + RenameFoo(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListFoos(google::test::requestid::v1::ListFoosRequest request) override; diff --git a/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.cc b/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.cc index 9762d682490c1..6d0158cdccdae 100644 --- a/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.cc +++ b/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.cc @@ -48,6 +48,26 @@ RequestIdServiceTracingConnection::RenameFoo(google::test::requestid::v1::Rename return internal::EndSpan(std::move(span), child_->RenameFoo(request)); } +StatusOr +RequestIdServiceTracingConnection::RenameFoo(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, google::test::requestid::v1::RenameFooRequest const& request) { + auto span = internal::MakeSpan( + "golden_v1::RequestIdServiceConnection::RenameFoo"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RenameFoo( + google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); +} + +future> +RequestIdServiceTracingConnection::RenameFoo(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "golden_v1::RequestIdServiceConnection::RenameFoo"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RenameFoo(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RequestIdServiceTracingConnection::ListFoos(google::test::requestid::v1::ListFoosRequest request) { auto span = internal::MakeSpan("golden_v1::RequestIdServiceConnection::ListFoos"); diff --git a/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.h b/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.h index ad897834d18a1..32a5a167d922c 100644 --- a/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.h +++ b/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.h @@ -46,6 +46,14 @@ class RequestIdServiceTracingConnection future> RenameFoo(google::test::requestid::v1::RenameFooRequest const& request) override; + StatusOr + RenameFoo(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::requestid::v1::RenameFooRequest const& request) override; + + future> + RenameFoo(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListFoos(google::test::requestid::v1::ListFoosRequest request) override; diff --git a/generator/integration_tests/golden/v1/mocks/mock_golden_thing_admin_connection.h b/generator/integration_tests/golden/v1/mocks/mock_golden_thing_admin_connection.h index ec3f19a6e9302..237e3d6ab0d43 100644 --- a/generator/integration_tests/golden/v1/mocks/mock_golden_thing_admin_connection.h +++ b/generator/integration_tests/golden/v1/mocks/mock_golden_thing_admin_connection.h @@ -54,6 +54,14 @@ class MockGoldenThingAdminConnection : public golden_v1::GoldenThingAdminConnect CreateDatabase, (google::test::admin::database::v1::CreateDatabaseRequest const& request), (override)); + MOCK_METHOD(StatusOr, + CreateDatabase, (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::CreateDatabaseRequest const& request), (override)); + + MOCK_METHOD(future>, + CreateDatabase, (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), (override)); + MOCK_METHOD(StatusOr, GetDatabase, (google::test::admin::database::v1::GetDatabaseRequest const& request), (override)); @@ -62,6 +70,14 @@ class MockGoldenThingAdminConnection : public golden_v1::GoldenThingAdminConnect UpdateDatabaseDdl, (google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request), (override)); + MOCK_METHOD(StatusOr, + UpdateDatabaseDdl, (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request), (override)); + + MOCK_METHOD(future>, + UpdateDatabaseDdl, (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), (override)); + MOCK_METHOD(Status, DropDatabase, (google::test::admin::database::v1::DropDatabaseRequest const& request), (override)); @@ -86,6 +102,14 @@ class MockGoldenThingAdminConnection : public golden_v1::GoldenThingAdminConnect CreateBackup, (google::test::admin::database::v1::CreateBackupRequest const& request), (override)); + MOCK_METHOD(StatusOr, + CreateBackup, (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::CreateBackupRequest const& request), (override)); + + MOCK_METHOD(future>, + CreateBackup, (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), (override)); + MOCK_METHOD(StatusOr, GetBackup, (google::test::admin::database::v1::GetBackupRequest const& request), (override)); @@ -106,6 +130,14 @@ class MockGoldenThingAdminConnection : public golden_v1::GoldenThingAdminConnect RestoreDatabase, (google::test::admin::database::v1::RestoreDatabaseRequest const& request), (override)); + MOCK_METHOD(StatusOr, + RestoreDatabase, (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::RestoreDatabaseRequest const& request), (override)); + + MOCK_METHOD(future>, + RestoreDatabase, (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), (override)); + MOCK_METHOD((StreamRange), ListDatabaseOperations, (google::test::admin::database::v1::ListDatabaseOperationsRequest request), (override)); @@ -118,6 +150,14 @@ class MockGoldenThingAdminConnection : public golden_v1::GoldenThingAdminConnect LongRunningWithoutRouting, (google::test::admin::database::v1::RestoreDatabaseRequest const& request), (override)); + MOCK_METHOD(StatusOr, + LongRunningWithoutRouting, (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::admin::database::v1::RestoreDatabaseRequest const& request), (override)); + + MOCK_METHOD(future>, + LongRunningWithoutRouting, (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), (override)); + MOCK_METHOD(future>, AsyncGetDatabase, (google::test::admin::database::v1::GetDatabaseRequest const& request), (override)); diff --git a/generator/integration_tests/golden/v1/mocks/mock_request_id_connection.h b/generator/integration_tests/golden/v1/mocks/mock_request_id_connection.h index 28a47468ab47b..5b9d765fe95fa 100644 --- a/generator/integration_tests/golden/v1/mocks/mock_request_id_connection.h +++ b/generator/integration_tests/golden/v1/mocks/mock_request_id_connection.h @@ -54,6 +54,14 @@ class MockRequestIdServiceConnection : public golden_v1::RequestIdServiceConnect RenameFoo, (google::test::requestid::v1::RenameFooRequest const& request), (override)); + MOCK_METHOD(StatusOr, + RenameFoo, (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::requestid::v1::RenameFooRequest const& request), (override)); + + MOCK_METHOD(future>, + RenameFoo, (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), (override)); + MOCK_METHOD((StreamRange), ListFoos, (google::test::requestid::v1::ListFoosRequest request), (override)); diff --git a/generator/integration_tests/golden/v1/request_id_connection.cc b/generator/integration_tests/golden/v1/request_id_connection.cc index 522ae7cc34ed9..906ce6d751c65 100644 --- a/generator/integration_tests/golden/v1/request_id_connection.cc +++ b/generator/integration_tests/golden/v1/request_id_connection.cc @@ -52,6 +52,22 @@ RequestIdServiceConnection::RenameFoo( Status(StatusCode::kUnimplemented, "not implemented")); } + StatusOr +RequestIdServiceConnection::RenameFoo( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::test::requestid::v1::RenameFooRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + + future> +RequestIdServiceConnection::RenameFoo( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RequestIdServiceConnection::ListFoos( google::test::requestid::v1::ListFoosRequest) { // NOLINT(performance-unnecessary-value-param) return google::cloud::internal::MakeUnimplementedPaginationRange< diff --git a/generator/integration_tests/golden/v1/request_id_connection.h b/generator/integration_tests/golden/v1/request_id_connection.h index 74e6131796d58..a8aaa9126827f 100644 --- a/generator/integration_tests/golden/v1/request_id_connection.h +++ b/generator/integration_tests/golden/v1/request_id_connection.h @@ -21,7 +21,9 @@ #include "generator/integration_tests/golden/v1/internal/request_id_retry_traits.h" #include "generator/integration_tests/golden/v1/request_id_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -184,6 +186,12 @@ class RequestIdServiceConnection { virtual future> RenameFoo(google::test::requestid::v1::RenameFooRequest const& request); + virtual StatusOr + RenameFoo(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::requestid::v1::RenameFooRequest const& request); + + virtual future> + RenameFoo(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation); + virtual StreamRange ListFoos(google::test::requestid::v1::ListFoosRequest request); From d8fcdc11f64206d877fa947c08a0d1ad56950d74 Mon Sep 17 00:00:00 2001 From: Scott Hart Date: Mon, 24 Jun 2024 10:48:00 -0400 Subject: [PATCH 05/11] generated service code --- .../v1/access_approval_connection.h | 2 + .../v1/access_context_manager_connection.cc | 269 ++ .../v1/access_context_manager_connection.h | 151 + .../access_context_manager_connection_impl.cc | 918 +++- .../access_context_manager_connection_impl.h | 152 + ...cess_context_manager_tracing_connection.cc | 413 ++ ...ccess_context_manager_tracing_connection.h | 152 + .../mock_access_context_manager_connection.h | 205 + .../v1/advisory_notifications_connection.h | 2 + .../cloud/aiplatform/v1/dataset_connection.cc | 126 + .../cloud/aiplatform/v1/dataset_connection.h | 72 + .../v1/deployment_resource_pool_connection.cc | 32 + .../v1/deployment_resource_pool_connection.h | 22 + .../aiplatform/v1/endpoint_connection.cc | 79 + .../cloud/aiplatform/v1/endpoint_connection.h | 44 + .../feature_online_store_admin_connection.cc | 96 + .../feature_online_store_admin_connection.h | 55 + .../v1/feature_online_store_connection.h | 2 + .../v1/feature_registry_connection.cc | 96 + .../v1/feature_registry_connection.h | 52 + .../aiplatform/v1/featurestore_connection.cc | 192 + .../aiplatform/v1/featurestore_connection.h | 107 + .../featurestore_online_serving_connection.h | 2 + .../aiplatform/v1/gen_ai_tuning_connection.h | 2 + .../cloud/aiplatform/v1/index_connection.cc | 45 + google/cloud/aiplatform/v1/index_connection.h | 27 + .../v1/index_endpoint_connection.cc | 80 + .../aiplatform/v1/index_endpoint_connection.h | 44 + .../v1/internal/dataset_connection_impl.cc | 438 ++ .../v1/internal/dataset_connection_impl.h | 73 + .../v1/internal/dataset_tracing_connection.cc | 193 + .../v1/internal/dataset_tracing_connection.h | 73 + ...eployment_resource_pool_connection_impl.cc | 112 + ...deployment_resource_pool_connection_impl.h | 20 + ...oyment_resource_pool_tracing_connection.cc | 54 + ...loyment_resource_pool_tracing_connection.h | 20 + .../v1/internal/endpoint_connection_impl.cc | 273 ++ .../v1/internal/endpoint_connection_impl.h | 45 + .../internal/endpoint_tracing_connection.cc | 120 + .../v1/internal/endpoint_tracing_connection.h | 45 + ...ture_online_store_admin_connection_impl.cc | 336 ++ ...ature_online_store_admin_connection_impl.h | 57 + ...e_online_store_admin_tracing_connection.cc | 159 + ...re_online_store_admin_tracing_connection.h | 57 + .../feature_registry_connection_impl.cc | 328 ++ .../feature_registry_connection_impl.h | 54 + .../feature_registry_tracing_connection.cc | 144 + .../feature_registry_tracing_connection.h | 54 + .../internal/featurestore_connection_impl.cc | 660 +++ .../internal/featurestore_connection_impl.h | 110 + .../featurestore_tracing_connection.cc | 289 ++ .../featurestore_tracing_connection.h | 110 + .../v1/internal/index_connection_impl.cc | 160 + .../v1/internal/index_connection_impl.h | 27 + .../index_endpoint_connection_impl.cc | 274 ++ .../internal/index_endpoint_connection_impl.h | 45 + .../index_endpoint_tracing_connection.cc | 120 + .../index_endpoint_tracing_connection.h | 45 + .../v1/internal/index_tracing_connection.cc | 72 + .../v1/internal/index_tracing_connection.h | 27 + .../v1/internal/job_connection_impl.cc | 394 ++ .../v1/internal/job_connection_impl.h | 68 + .../v1/internal/job_tracing_connection.cc | 177 + .../v1/internal/job_tracing_connection.h | 68 + .../v1/internal/metadata_connection_impl.cc | 441 ++ .../v1/internal/metadata_connection_impl.h | 73 + .../internal/metadata_tracing_connection.cc | 193 + .../v1/internal/metadata_tracing_connection.h | 73 + .../v1/internal/migration_connection_impl.cc | 56 + .../v1/internal/migration_connection_impl.h | 10 + .../internal/migration_tracing_connection.cc | 25 + .../internal/migration_tracing_connection.h | 10 + .../v1/internal/model_connection_impl.cc | 328 ++ .../v1/internal/model_connection_impl.h | 55 + .../v1/internal/model_tracing_connection.cc | 146 + .../v1/internal/model_tracing_connection.h | 55 + .../v1/internal/notebook_connection_impl.cc | 335 ++ .../v1/internal/notebook_connection_impl.h | 61 + .../internal/notebook_tracing_connection.cc | 153 + .../v1/internal/notebook_tracing_connection.h | 61 + .../persistent_resource_connection_impl.cc | 228 + .../persistent_resource_connection_impl.h | 40 + .../persistent_resource_tracing_connection.cc | 108 + .../persistent_resource_tracing_connection.h | 40 + .../v1/internal/pipeline_connection_impl.cc | 225 + .../v1/internal/pipeline_connection_impl.h | 41 + .../internal/pipeline_tracing_connection.cc | 99 + .../v1/internal/pipeline_tracing_connection.h | 41 + .../v1/internal/schedule_connection_impl.cc | 55 + .../v1/internal/schedule_connection_impl.h | 9 + .../internal/schedule_tracing_connection.cc | 24 + .../v1/internal/schedule_tracing_connection.h | 9 + .../specialist_pool_connection_impl.cc | 165 + .../specialist_pool_connection_impl.h | 30 + .../specialist_pool_tracing_connection.cc | 72 + .../specialist_pool_tracing_connection.h | 30 + .../internal/tensorboard_connection_impl.cc | 332 ++ .../v1/internal/tensorboard_connection_impl.h | 57 + .../tensorboard_tracing_connection.cc | 150 + .../internal/tensorboard_tracing_connection.h | 57 + .../v1/internal/vizier_connection_impl.cc | 112 + .../v1/internal/vizier_connection_impl.h | 20 + .../v1/internal/vizier_tracing_connection.cc | 50 + .../v1/internal/vizier_tracing_connection.h | 20 + google/cloud/aiplatform/v1/job_connection.cc | 113 + google/cloud/aiplatform/v1/job_connection.h | 76 + .../aiplatform/v1/llm_utility_connection.h | 2 + google/cloud/aiplatform/v1/match_connection.h | 2 + .../aiplatform/v1/metadata_connection.cc | 129 + .../cloud/aiplatform/v1/metadata_connection.h | 72 + .../aiplatform/v1/migration_connection.cc | 16 + .../aiplatform/v1/migration_connection.h | 12 + .../v1/mocks/mock_dataset_connection.h | 100 + ...mock_deployment_resource_pool_connection.h | 28 + .../v1/mocks/mock_endpoint_connection.h | 65 + ...ck_feature_online_store_admin_connection.h | 79 + .../mocks/mock_feature_registry_connection.h | 74 + .../v1/mocks/mock_featurestore_connection.h | 158 + .../v1/mocks/mock_index_connection.h | 37 + .../v1/mocks/mock_index_endpoint_connection.h | 65 + .../aiplatform/v1/mocks/mock_job_connection.h | 96 + .../v1/mocks/mock_metadata_connection.h | 104 + .../v1/mocks/mock_migration_connection.h | 15 + .../v1/mocks/mock_model_connection.h | 79 + .../v1/mocks/mock_notebook_connection.h | 83 + .../mock_persistent_resource_connection.h | 56 + .../v1/mocks/mock_pipeline_connection.h | 57 + .../v1/mocks/mock_schedule_connection.h | 13 + .../mocks/mock_specialist_pool_connection.h | 37 + .../v1/mocks/mock_tensorboard_connection.h | 78 + .../v1/mocks/mock_vizier_connection.h | 28 + .../cloud/aiplatform/v1/model_connection.cc | 93 + google/cloud/aiplatform/v1/model_connection.h | 54 + .../aiplatform/v1/model_garden_connection.h | 2 + .../aiplatform/v1/notebook_connection.cc | 98 + .../cloud/aiplatform/v1/notebook_connection.h | 65 + .../v1/persistent_resource_connection.cc | 64 + .../v1/persistent_resource_connection.h | 39 + .../aiplatform/v1/pipeline_connection.cc | 64 + .../cloud/aiplatform/v1/pipeline_connection.h | 41 + .../aiplatform/v1/prediction_connection.h | 2 + .../aiplatform/v1/schedule_connection.cc | 16 + .../cloud/aiplatform/v1/schedule_connection.h | 11 + .../v1/specialist_pool_connection.cc | 48 + .../v1/specialist_pool_connection.h | 30 + .../aiplatform/v1/tensorboard_connection.cc | 96 + .../aiplatform/v1/tensorboard_connection.h | 57 + .../cloud/aiplatform/v1/vizier_connection.cc | 32 + .../cloud/aiplatform/v1/vizier_connection.h | 20 + .../alloydb/v1/alloy_db_admin_connection.cc | 260 ++ .../alloydb/v1/alloy_db_admin_connection.h | 140 + .../alloy_db_admin_connection_impl.cc | 1043 ++++- .../internal/alloy_db_admin_connection_impl.h | 148 + .../alloy_db_admin_tracing_connection.cc | 408 ++ .../alloy_db_admin_tracing_connection.h | 148 + .../v1/mocks/mock_alloy_db_admin_connection.h | 199 + .../apigateway/v1/api_gateway_connection.cc | 141 + .../apigateway/v1/api_gateway_connection.h | 74 + .../internal/api_gateway_connection_impl.cc | 479 ++ .../v1/internal/api_gateway_connection_impl.h | 78 + .../api_gateway_tracing_connection.cc | 216 + .../internal/api_gateway_tracing_connection.h | 78 + .../v1/mocks/mock_api_gateway_connection.h | 106 + .../apigeeconnect/v1/connection_connection.h | 2 + .../cloud/apikeys/v2/api_keys_connection.cc | 56 + google/cloud/apikeys/v2/api_keys_connection.h | 34 + .../v2/internal/api_keys_connection_impl.cc | 200 + .../v2/internal/api_keys_connection_impl.h | 32 + .../internal/api_keys_tracing_connection.cc | 84 + .../v2/internal/api_keys_tracing_connection.h | 32 + .../v2/mocks/mock_api_keys_connection.h | 40 + .../appengine/v1/applications_connection.cc | 48 + .../appengine/v1/applications_connection.h | 26 + .../v1/authorized_certificates_connection.h | 2 + .../v1/authorized_domains_connection.h | 2 + .../v1/domain_mappings_connection.cc | 48 + .../appengine/v1/domain_mappings_connection.h | 26 + .../cloud/appengine/v1/firewall_connection.h | 2 + .../appengine/v1/instances_connection.cc | 30 + .../cloud/appengine/v1/instances_connection.h | 18 + .../internal/applications_connection_impl.cc | 156 + .../internal/applications_connection_impl.h | 24 + .../applications_tracing_connection.cc | 72 + .../applications_tracing_connection.h | 24 + .../domain_mappings_connection_impl.cc | 157 + .../domain_mappings_connection_impl.h | 27 + .../domain_mappings_tracing_connection.cc | 72 + .../domain_mappings_tracing_connection.h | 27 + .../v1/internal/instances_connection_impl.cc | 104 + .../v1/internal/instances_connection_impl.h | 16 + .../internal/instances_tracing_connection.cc | 48 + .../internal/instances_tracing_connection.h | 16 + .../v1/internal/services_connection_impl.cc | 103 + .../v1/internal/services_connection_impl.h | 16 + .../internal/services_tracing_connection.cc | 48 + .../v1/internal/services_tracing_connection.h | 16 + .../v1/internal/versions_connection_impl.cc | 154 + .../v1/internal/versions_connection_impl.h | 24 + .../internal/versions_tracing_connection.cc | 72 + .../v1/internal/versions_tracing_connection.h | 24 + .../v1/mocks/mock_applications_connection.h | 33 + .../mocks/mock_domain_mappings_connection.h | 36 + .../v1/mocks/mock_instances_connection.h | 21 + .../v1/mocks/mock_services_connection.h | 21 + .../v1/mocks/mock_versions_connection.h | 31 + .../cloud/appengine/v1/services_connection.cc | 30 + .../cloud/appengine/v1/services_connection.h | 18 + .../cloud/appengine/v1/versions_connection.cc | 45 + .../cloud/appengine/v1/versions_connection.h | 26 + google/cloud/apphub/v1/app_hub_connection.cc | 167 + google/cloud/apphub/v1/app_hub_connection.h | 96 + .../v1/internal/app_hub_connection_impl.cc | 578 +++ .../v1/internal/app_hub_connection_impl.h | 95 + .../v1/internal/app_hub_tracing_connection.cc | 251 ++ .../v1/internal/app_hub_tracing_connection.h | 95 + .../apphub/v1/mocks/mock_app_hub_connection.h | 129 + .../v1/artifact_registry_connection.cc | 115 + .../v1/artifact_registry_connection.h | 71 + .../artifact_registry_connection_impl.cc | 397 ++ .../artifact_registry_connection_impl.h | 66 + .../artifact_registry_tracing_connection.cc | 178 + .../artifact_registry_tracing_connection.h | 66 + .../mocks/mock_artifact_registry_connection.h | 104 + google/cloud/asset/v1/asset_connection.cc | 31 + google/cloud/asset/v1/asset_connection.h | 20 + .../v1/internal/asset_connection_impl.cc | 109 + .../asset/v1/internal/asset_connection_impl.h | 19 + .../v1/internal/asset_tracing_connection.cc | 49 + .../v1/internal/asset_tracing_connection.h | 19 + .../asset/v1/mocks/mock_asset_connection.h | 26 + .../v1/assured_workloads_connection.cc | 16 + .../v1/assured_workloads_connection.h | 11 + .../assured_workloads_connection_impl.cc | 55 + .../assured_workloads_connection_impl.h | 9 + .../assured_workloads_tracing_connection.cc | 24 + .../assured_workloads_tracing_connection.h | 9 + .../mocks/mock_assured_workloads_connection.h | 12 + google/cloud/automl/v1/auto_ml_connection.cc | 135 + google/cloud/automl/v1/auto_ml_connection.h | 74 + .../v1/internal/auto_ml_connection_impl.cc | 466 ++ .../v1/internal/auto_ml_connection_impl.h | 72 + .../v1/internal/auto_ml_tracing_connection.cc | 189 + .../v1/internal/auto_ml_tracing_connection.h | 72 + .../v1/internal/prediction_connection_impl.cc | 53 + .../v1/internal/prediction_connection_impl.h | 8 + .../internal/prediction_tracing_connection.cc | 24 + .../internal/prediction_tracing_connection.h | 8 + .../automl/v1/mocks/mock_auto_ml_connection.h | 98 + .../v1/mocks/mock_prediction_connection.h | 11 + .../cloud/automl/v1/prediction_connection.cc | 16 + .../cloud/automl/v1/prediction_connection.h | 10 + .../cloud/backupdr/v1/backup_dr_connection.cc | 32 + .../cloud/backupdr/v1/backup_dr_connection.h | 20 + .../v1/internal/backup_dr_connection_impl.cc | 108 + .../v1/internal/backup_dr_connection_impl.h | 20 + .../internal/backup_dr_tracing_connection.cc | 48 + .../internal/backup_dr_tracing_connection.h | 20 + .../v1/mocks/mock_backup_dr_connection.h | 24 + .../v2/bare_metal_solution_connection.cc | 260 ++ .../v2/bare_metal_solution_connection.h | 152 + .../bare_metal_solution_connection_impl.cc | 936 +++- .../bare_metal_solution_connection_impl.h | 149 + .../bare_metal_solution_tracing_connection.cc | 399 ++ .../bare_metal_solution_tracing_connection.h | 149 + .../mock_bare_metal_solution_connection.h | 209 + google/cloud/batch/v1/batch_connection.cc | 15 + google/cloud/batch/v1/batch_connection.h | 10 + .../v1/internal/batch_connection_impl.cc | 52 + .../batch/v1/internal/batch_connection_impl.h | 8 + .../v1/internal/batch_tracing_connection.cc | 22 + .../v1/internal/batch_tracing_connection.h | 8 + .../batch/v1/mocks/mock_batch_connection.h | 11 + .../v1/app_connections_connection.cc | 53 + .../v1/app_connections_connection.h | 32 + .../app_connections_connection_impl.cc | 172 + .../app_connections_connection_impl.h | 28 + .../app_connections_tracing_connection.cc | 82 + .../app_connections_tracing_connection.h | 28 + .../mocks/mock_app_connections_connection.h | 41 + .../v1/app_connectors_connection.cc | 69 + .../v1/app_connectors_connection.h | 42 + .../app_connectors_connection_impl.cc | 227 + .../internal/app_connectors_connection_impl.h | 37 + .../app_connectors_tracing_connection.cc | 109 + .../app_connectors_tracing_connection.h | 37 + .../v1/mocks/mock_app_connectors_connection.h | 56 + .../appgateways/v1/app_gateways_connection.cc | 35 + .../appgateways/v1/app_gateways_connection.h | 22 + .../internal/app_gateways_connection_impl.cc | 114 + .../internal/app_gateways_connection_impl.h | 19 + .../app_gateways_tracing_connection.cc | 55 + .../app_gateways_tracing_connection.h | 19 + .../v1/mocks/mock_app_gateways_connection.h | 26 + .../v1/analytics_hub_connection.cc | 54 + .../v1/analytics_hub_connection.h | 32 + .../internal/analytics_hub_connection_impl.cc | 172 + .../internal/analytics_hub_connection_impl.h | 30 + .../analytics_hub_tracing_connection.cc | 83 + .../analytics_hub_tracing_connection.h | 30 + .../v1/mocks/mock_analytics_hub_connection.h | 40 + .../biglake/v1/metastore_connection.h | 2 + .../connection/v1/connection_connection.h | 2 + .../datapolicies/v1/data_policy_connection.h | 2 + .../v1/data_transfer_connection.h | 2 + .../migration/v2/migration_connection.h | 2 + .../reservation/v1/reservation_connection.h | 2 + .../storage/v1/bigquery_read_connection.h | 2 + .../storage/v1/bigquery_write_connection.h | 2 + .../bigtable_instance_admin_connection.cc | 96 + .../bigtable_instance_admin_connection.h | 50 + .../admin/bigtable_table_admin_connection.cc | 112 + .../admin/bigtable_table_admin_connection.h | 58 + ...bigtable_instance_admin_connection_impl.cc | 320 ++ .../bigtable_instance_admin_connection_impl.h | 53 + ...table_instance_admin_tracing_connection.cc | 144 + ...gtable_instance_admin_tracing_connection.h | 53 + .../bigtable_table_admin_connection_impl.cc | 370 ++ .../bigtable_table_admin_connection_impl.h | 61 + ...bigtable_table_admin_tracing_connection.cc | 168 + .../bigtable_table_admin_tracing_connection.h | 61 + .../mock_bigtable_instance_admin_connection.h | 71 + .../mock_bigtable_table_admin_connection.h | 78 + .../billing/budgets/v1/budget_connection.h | 2 + .../billing/v1/cloud_billing_connection.h | 2 + .../billing/v1/cloud_catalog_connection.h | 2 + ...inauthz_management_service_v1_connection.h | 2 + .../v1/system_policy_v1_connection.h | 2 + .../v1/validation_helper_v1_connection.h | 2 + .../v1/certificate_manager_connection.cc | 281 ++ .../v1/certificate_manager_connection.h | 172 + .../certificate_manager_connection_impl.cc | 991 ++++- .../certificate_manager_connection_impl.h | 165 + .../certificate_manager_tracing_connection.cc | 448 ++ .../certificate_manager_tracing_connection.h | 165 + .../mock_certificate_manager_connection.h | 244 ++ .../channel/v1/cloud_channel_connection.cc | 176 + .../channel/v1/cloud_channel_connection.h | 92 + .../v1/cloud_channel_reports_connection.cc | 16 + .../v1/cloud_channel_reports_connection.h | 10 + .../internal/cloud_channel_connection_impl.cc | 587 +++ .../internal/cloud_channel_connection_impl.h | 101 + .../cloud_channel_reports_connection_impl.cc | 53 + .../cloud_channel_reports_connection_impl.h | 8 + ...loud_channel_reports_tracing_connection.cc | 24 + ...cloud_channel_reports_tracing_connection.h | 8 + .../cloud_channel_tracing_connection.cc | 267 ++ .../cloud_channel_tracing_connection.h | 101 + .../v1/mocks/mock_cloud_channel_connection.h | 134 + .../mock_cloud_channel_reports_connection.h | 12 + .../cloudbuild/v1/cloud_build_connection.cc | 106 + .../cloudbuild/v1/cloud_build_connection.h | 59 + .../internal/cloud_build_connection_impl.cc | 379 ++ .../v1/internal/cloud_build_connection_impl.h | 64 + .../cloud_build_tracing_connection.cc | 169 + .../internal/cloud_build_tracing_connection.h | 64 + .../v1/mocks/mock_cloud_build_connection.h | 86 + .../repository_manager_connection_impl.cc | 332 ++ .../repository_manager_connection_impl.h | 56 + .../repository_manager_tracing_connection.cc | 146 + .../repository_manager_tracing_connection.h | 56 + .../mock_repository_manager_connection.h | 77 + .../v2/repository_manager_connection.cc | 97 + .../v2/repository_manager_connection.h | 52 + .../cloud_controls_partner_core_connection.h | 2 + ...d_controls_partner_monitoring_connection.h | 2 + .../cloudquotas/v1/cloud_quotas_connection.h | 2 + .../v1/consumer_procurement_connection.cc | 17 + .../v1/consumer_procurement_connection.h | 12 + .../consumer_procurement_connection_impl.cc | 56 + .../consumer_procurement_connection_impl.h | 9 + ...consumer_procurement_tracing_connection.cc | 27 + .../consumer_procurement_tracing_connection.h | 9 + .../mock_consumer_procurement_connection.h | 14 + .../composer/v1/environments_connection.cc | 109 + .../composer/v1/environments_connection.h | 62 + .../composer/v1/image_versions_connection.h | 2 + .../internal/environments_connection_impl.cc | 348 ++ .../internal/environments_connection_impl.h | 60 + .../environments_tracing_connection.cc | 156 + .../environments_tracing_connection.h | 60 + .../v1/mocks/mock_environments_connection.h | 80 + .../v1/accelerator_types_connection.h | 2 + .../addresses/v1/addresses_connection.cc | 66 + .../addresses/v1/addresses_connection.h | 37 + .../addresses_rest_connection_impl.cc | 292 ++ .../internal/addresses_rest_connection_impl.h | 36 + .../internal/addresses_tracing_connection.cc | 99 + .../internal/addresses_tracing_connection.h | 36 + .../v1/mocks/mock_addresses_connection.h | 51 + .../autoscalers/v1/autoscalers_connection.cc | 72 + .../autoscalers/v1/autoscalers_connection.h | 38 + .../autoscalers_rest_connection_impl.cc | 293 ++ .../autoscalers_rest_connection_impl.h | 36 + .../autoscalers_tracing_connection.cc | 100 + .../internal/autoscalers_tracing_connection.h | 36 + .../v1/mocks/mock_autoscalers_connection.h | 52 + .../v1/backend_buckets_connection.cc | 126 + .../v1/backend_buckets_connection.h | 72 + .../backend_buckets_rest_connection_impl.cc | 498 +++ .../backend_buckets_rest_connection_impl.h | 69 + .../backend_buckets_tracing_connection.cc | 187 + .../backend_buckets_tracing_connection.h | 69 + .../mocks/mock_backend_buckets_connection.h | 91 + .../v1/backend_services_connection.cc | 144 + .../v1/backend_services_connection.h | 85 + .../backend_services_rest_connection_impl.cc | 569 +++ .../backend_services_rest_connection_impl.h | 79 + .../backend_services_tracing_connection.cc | 216 + .../backend_services_tracing_connection.h | 79 + .../mocks/mock_backend_services_connection.h | 104 + .../disk_types/v1/disk_types_connection.h | 2 + .../compute/disks/v1/disks_connection.cc | 200 + .../cloud/compute/disks/v1/disks_connection.h | 114 + .../v1/internal/disks_rest_connection_impl.cc | 894 +++- .../v1/internal/disks_rest_connection_impl.h | 114 + .../v1/internal/disks_tracing_connection.cc | 292 ++ .../v1/internal/disks_tracing_connection.h | 114 + .../disks/v1/mocks/mock_disks_connection.h | 150 + .../v1/external_vpn_gateways_connection.cc | 54 + .../v1/external_vpn_gateways_connection.h | 33 + ...ernal_vpn_gateways_rest_connection_impl.cc | 214 + ...ternal_vpn_gateways_rest_connection_impl.h | 29 + ...xternal_vpn_gateways_tracing_connection.cc | 81 + ...external_vpn_gateways_tracing_connection.h | 29 + .../mock_external_vpn_gateways_connection.h | 38 + .../v1/firewall_policies_connection.cc | 178 + .../v1/firewall_policies_connection.h | 98 + .../firewall_policies_rest_connection_impl.cc | 812 +++- .../firewall_policies_rest_connection_impl.h | 94 + .../firewall_policies_tracing_connection.cc | 260 ++ .../firewall_policies_tracing_connection.h | 94 + .../mocks/mock_firewall_policies_connection.h | 127 + .../firewalls/v1/firewalls_connection.cc | 68 + .../firewalls/v1/firewalls_connection.h | 38 + .../firewalls_rest_connection_impl.cc | 285 ++ .../internal/firewalls_rest_connection_impl.h | 36 + .../internal/firewalls_tracing_connection.cc | 100 + .../internal/firewalls_tracing_connection.h | 36 + .../v1/mocks/mock_firewalls_connection.h | 52 + .../v1/forwarding_rules_connection.cc | 90 + .../v1/forwarding_rules_connection.h | 52 + .../forwarding_rules_rest_connection_impl.cc | 366 ++ .../forwarding_rules_rest_connection_impl.h | 48 + .../forwarding_rules_tracing_connection.cc | 131 + .../forwarding_rules_tracing_connection.h | 48 + .../mocks/mock_forwarding_rules_connection.h | 63 + .../v1/global_addresses_connection.cc | 71 + .../v1/global_addresses_connection.h | 38 + .../global_addresses_rest_connection_impl.cc | 284 ++ .../global_addresses_rest_connection_impl.h | 36 + .../global_addresses_tracing_connection.cc | 100 + .../global_addresses_tracing_connection.h | 36 + .../mocks/mock_global_addresses_connection.h | 51 + .../v1/global_forwarding_rules_connection.cc | 90 + .../v1/global_forwarding_rules_connection.h | 52 + ...l_forwarding_rules_rest_connection_impl.cc | 356 ++ ...al_forwarding_rules_rest_connection_impl.h | 48 + ...bal_forwarding_rules_tracing_connection.cc | 135 + ...obal_forwarding_rules_tracing_connection.h | 48 + .../mock_global_forwarding_rules_connection.h | 63 + ...obal_network_endpoint_groups_connection.cc | 72 + ...lobal_network_endpoint_groups_connection.h | 46 + ...rk_endpoint_groups_rest_connection_impl.cc | 287 ++ ...ork_endpoint_groups_rest_connection_impl.h | 42 + ...work_endpoint_groups_tracing_connection.cc | 108 + ...twork_endpoint_groups_tracing_connection.h | 42 + ...lobal_network_endpoint_groups_connection.h | 52 + .../v1/global_operations_connection.h | 2 + ...lobal_organization_operations_connection.h | 2 + ...al_public_delegated_prefixes_connection.cc | 54 + ...bal_public_delegated_prefixes_connection.h | 35 + ...delegated_prefixes_rest_connection_impl.cc | 217 + ..._delegated_prefixes_rest_connection_impl.h | 33 + ...c_delegated_prefixes_tracing_connection.cc | 81 + ...ic_delegated_prefixes_tracing_connection.h | 33 + ...bal_public_delegated_prefixes_connection.h | 39 + .../v1/health_checks_connection.cc | 72 + .../v1/health_checks_connection.h | 41 + .../health_checks_rest_connection_impl.cc | 285 ++ .../health_checks_rest_connection_impl.h | 39 + .../health_checks_tracing_connection.cc | 100 + .../health_checks_tracing_connection.h | 39 + .../v1/mocks/mock_health_checks_connection.h | 52 + .../v1/http_health_checks_connection.cc | 72 + .../v1/http_health_checks_connection.h | 46 + ...http_health_checks_rest_connection_impl.cc | 285 ++ .../http_health_checks_rest_connection_impl.h | 40 + .../http_health_checks_tracing_connection.cc | 108 + .../http_health_checks_tracing_connection.h | 40 + .../mock_http_health_checks_connection.h | 52 + .../v1/https_health_checks_connection.cc | 72 + .../v1/https_health_checks_connection.h | 46 + ...ttps_health_checks_rest_connection_impl.cc | 285 ++ ...https_health_checks_rest_connection_impl.h | 40 + .../https_health_checks_tracing_connection.cc | 108 + .../https_health_checks_tracing_connection.h | 40 + .../mock_https_health_checks_connection.h | 52 + .../v1/image_family_views_connection.h | 2 + .../compute/images/v1/images_connection.cc | 83 + .../compute/images/v1/images_connection.h | 45 + .../internal/images_rest_connection_impl.cc | 353 ++ .../v1/internal/images_rest_connection_impl.h | 45 + .../v1/internal/images_tracing_connection.cc | 122 + .../v1/internal/images_tracing_connection.h | 45 + .../images/v1/mocks/mock_images_connection.h | 62 + ...roup_manager_resize_requests_connection.cc | 58 + ...group_manager_resize_requests_connection.h | 33 + ...er_resize_requests_rest_connection_impl.cc | 233 + ...ger_resize_requests_rest_connection_impl.h | 33 + ...ager_resize_requests_tracing_connection.cc | 91 + ...nager_resize_requests_tracing_connection.h | 33 + ...group_manager_resize_requests_connection.h | 41 + .../v1/instance_group_managers_connection.cc | 252 ++ .../v1/instance_group_managers_connection.h | 144 + ...nce_group_managers_rest_connection_impl.cc | 1313 +++++- ...ance_group_managers_rest_connection_impl.h | 138 + ...tance_group_managers_tracing_connection.cc | 378 ++ ...stance_group_managers_tracing_connection.h | 138 + .../mock_instance_group_managers_connection.h | 181 + .../v1/instance_groups_connection.cc | 90 + .../v1/instance_groups_connection.h | 49 + .../instance_groups_rest_connection_impl.cc | 366 ++ .../instance_groups_rest_connection_impl.h | 47 + .../instance_groups_tracing_connection.cc | 129 + .../instance_groups_tracing_connection.h | 47 + .../mocks/mock_instance_groups_connection.h | 65 + .../v1/instance_settings_connection.cc | 18 + .../v1/instance_settings_connection.h | 13 + .../instance_settings_rest_connection_impl.cc | 74 + .../instance_settings_rest_connection_impl.h | 10 + .../instance_settings_tracing_connection.cc | 27 + .../instance_settings_tracing_connection.h | 10 + .../mocks/mock_instance_settings_connection.h | 13 + .../v1/instance_templates_connection.cc | 36 + .../v1/instance_templates_connection.h | 24 + ...instance_templates_rest_connection_impl.cc | 143 + .../instance_templates_rest_connection_impl.h | 20 + .../instance_templates_tracing_connection.cc | 54 + .../instance_templates_tracing_connection.h | 20 + .../mock_instance_templates_connection.h | 26 + .../instances/v1/instances_connection.cc | 605 +++ .../instances/v1/instances_connection.h | 337 ++ .../instances_rest_connection_impl.cc | 3893 ++++++++++++++--- .../internal/instances_rest_connection_impl.h | 334 ++ .../internal/instances_tracing_connection.cc | 894 +++- .../internal/instances_tracing_connection.h | 334 ++ .../v1/mocks/mock_instances_connection.h | 448 ++ .../v1/interconnect_attachments_connection.cc | 72 + .../v1/interconnect_attachments_connection.h | 44 + ...onnect_attachments_rest_connection_impl.cc | 296 ++ ...connect_attachments_rest_connection_impl.h | 42 + ...rconnect_attachments_tracing_connection.cc | 108 + ...erconnect_attachments_tracing_connection.h | 42 + ...mock_interconnect_attachments_connection.h | 51 + .../v1/interconnect_locations_connection.h | 2 + ...interconnect_remote_locations_connection.h | 2 + .../v1/interconnects_connection.cc | 71 + .../v1/interconnects_connection.h | 41 + .../interconnects_rest_connection_impl.cc | 285 ++ .../interconnects_rest_connection_impl.h | 39 + .../interconnects_tracing_connection.cc | 100 + .../interconnects_tracing_connection.h | 39 + .../v1/mocks/mock_interconnects_connection.h | 52 + .../v1/license_codes_connection.h | 2 + .../internal/licenses_rest_connection_impl.cc | 145 + .../internal/licenses_rest_connection_impl.h | 18 + .../internal/licenses_tracing_connection.cc | 50 + .../v1/internal/licenses_tracing_connection.h | 18 + .../licenses/v1/licenses_connection.cc | 34 + .../compute/licenses/v1/licenses_connection.h | 20 + .../v1/mocks/mock_licenses_connection.h | 26 + .../machine_images_rest_connection_impl.cc | 143 + .../machine_images_rest_connection_impl.h | 20 + .../machine_images_tracing_connection.cc | 50 + .../machine_images_tracing_connection.h | 20 + .../v1/machine_images_connection.cc | 36 + .../v1/machine_images_connection.h | 22 + .../v1/mocks/mock_machine_images_connection.h | 26 + .../v1/machine_types_connection.h | 2 + ...etwork_attachments_rest_connection_impl.cc | 220 + ...network_attachments_rest_connection_impl.h | 30 + .../network_attachments_tracing_connection.cc | 81 + .../network_attachments_tracing_connection.h | 30 + .../mock_network_attachments_connection.h | 39 + .../v1/network_attachments_connection.cc | 54 + .../v1/network_attachments_connection.h | 35 + ..._security_services_rest_connection_impl.cc | 223 + ...e_security_services_rest_connection_impl.h | 33 + ...ge_security_services_tracing_connection.cc | 85 + ...dge_security_services_tracing_connection.h | 33 + ...etwork_edge_security_services_connection.h | 39 + ...twork_edge_security_services_connection.cc | 54 + ...etwork_edge_security_services_connection.h | 35 + ...rk_endpoint_groups_rest_connection_impl.cc | 295 ++ ...ork_endpoint_groups_rest_connection_impl.h | 42 + ...work_endpoint_groups_tracing_connection.cc | 108 + ...twork_endpoint_groups_tracing_connection.h | 42 + .../mock_network_endpoint_groups_connection.h | 52 + .../v1/network_endpoint_groups_connection.cc | 72 + .../v1/network_endpoint_groups_connection.h | 46 + ..._firewall_policies_rest_connection_impl.cc | 640 +++ ...k_firewall_policies_rest_connection_impl.h | 85 + ...rk_firewall_policies_tracing_connection.cc | 243 + ...ork_firewall_policies_tracing_connection.h | 85 + ...ock_network_firewall_policies_connection.h | 113 + .../network_firewall_policies_connection.cc | 162 + .../v1/network_firewall_policies_connection.h | 89 + .../internal/networks_rest_connection_impl.cc | 503 +++ .../internal/networks_rest_connection_impl.h | 64 + .../internal/networks_tracing_connection.cc | 175 + .../v1/internal/networks_tracing_connection.h | 64 + .../v1/mocks/mock_networks_connection.h | 91 + .../networks/v1/networks_connection.cc | 120 + .../compute/networks/v1/networks_connection.h | 66 + .../node_groups_rest_connection_impl.cc | 586 +++ .../node_groups_rest_connection_impl.h | 74 + .../node_groups_tracing_connection.cc | 200 + .../internal/node_groups_tracing_connection.h | 74 + .../v1/mocks/mock_node_groups_connection.h | 104 + .../node_groups/v1/node_groups_connection.cc | 142 + .../node_groups/v1/node_groups_connection.h | 77 + .../node_templates_rest_connection_impl.cc | 147 + .../node_templates_rest_connection_impl.h | 20 + .../node_templates_tracing_connection.cc | 50 + .../node_templates_tracing_connection.h | 20 + .../v1/mocks/mock_node_templates_connection.h | 26 + .../v1/node_templates_connection.cc | 36 + .../v1/node_templates_connection.h | 22 + .../node_types/v1/node_types_connection.h | 2 + .../packet_mirrorings_rest_connection_impl.cc | 220 + .../packet_mirrorings_rest_connection_impl.h | 30 + .../packet_mirrorings_tracing_connection.cc | 81 + .../packet_mirrorings_tracing_connection.h | 30 + .../mocks/mock_packet_mirrorings_connection.h | 39 + .../v1/packet_mirrorings_connection.cc | 54 + .../v1/packet_mirrorings_connection.h | 35 + .../internal/projects_rest_connection_impl.cc | 712 +++ .../internal/projects_rest_connection_impl.h | 97 + .../internal/projects_tracing_connection.cc | 249 ++ .../v1/internal/projects_tracing_connection.h | 97 + .../v1/mocks/mock_projects_connection.h | 129 + .../projects/v1/projects_connection.cc | 176 + .../compute/projects/v1/projects_connection.h | 103 + ...dvertised_prefixes_rest_connection_impl.cc | 359 ++ ...advertised_prefixes_rest_connection_impl.h | 51 + ..._advertised_prefixes_tracing_connection.cc | 135 + ...c_advertised_prefixes_tracing_connection.h | 51 + ...ck_public_advertised_prefixes_connection.h | 63 + .../public_advertised_prefixes_connection.cc | 90 + .../public_advertised_prefixes_connection.h | 53 + ...delegated_prefixes_rest_connection_impl.cc | 369 ++ ..._delegated_prefixes_rest_connection_impl.h | 51 + ...c_delegated_prefixes_tracing_connection.cc | 135 + ...ic_delegated_prefixes_tracing_connection.h | 51 + ...ock_public_delegated_prefixes_connection.h | 63 + .../public_delegated_prefixes_connection.cc | 90 + .../v1/public_delegated_prefixes_connection.h | 53 + ...region_autoscalers_rest_connection_impl.cc | 293 ++ .../region_autoscalers_rest_connection_impl.h | 36 + .../region_autoscalers_tracing_connection.cc | 108 + .../region_autoscalers_tracing_connection.h | 36 + .../mock_region_autoscalers_connection.h | 52 + .../v1/region_autoscalers_connection.cc | 72 + .../v1/region_autoscalers_connection.h | 38 + ...n_backend_services_rest_connection_impl.cc | 366 ++ ...on_backend_services_rest_connection_impl.h | 50 + ...ion_backend_services_tracing_connection.cc | 135 + ...gion_backend_services_tracing_connection.h | 50 + .../mock_region_backend_services_connection.h | 65 + .../v1/region_backend_services_connection.cc | 90 + .../v1/region_backend_services_connection.h | 55 + ...region_commitments_rest_connection_impl.cc | 147 + .../region_commitments_rest_connection_impl.h | 18 + .../region_commitments_tracing_connection.cc | 54 + .../region_commitments_tracing_connection.h | 18 + .../mock_region_commitments_connection.h | 26 + .../v1/region_commitments_connection.cc | 36 + .../v1/region_commitments_connection.h | 20 + .../v1/region_disk_types_connection.h | 2 + .../region_disks_rest_connection_impl.cc | 904 +++- .../region_disks_rest_connection_impl.h | 114 + .../region_disks_tracing_connection.cc | 302 ++ .../region_disks_tracing_connection.h | 114 + .../v1/mocks/mock_region_disks_connection.h | 156 + .../v1/region_disks_connection.cc | 210 + .../region_disks/v1/region_disks_connection.h | 119 + ...lth_check_services_rest_connection_impl.cc | 220 + ...alth_check_services_rest_connection_impl.h | 30 + ...ealth_check_services_tracing_connection.cc | 81 + ...health_check_services_tracing_connection.h | 30 + ..._region_health_check_services_connection.h | 39 + ...region_health_check_services_connection.cc | 54 + .../region_health_check_services_connection.h | 35 + ...gion_health_checks_rest_connection_impl.cc | 293 ++ ...egion_health_checks_rest_connection_impl.h | 39 + ...region_health_checks_tracing_connection.cc | 108 + .../region_health_checks_tracing_connection.h | 39 + .../mock_region_health_checks_connection.h | 52 + .../v1/region_health_checks_connection.cc | 72 + .../v1/region_health_checks_connection.h | 41 + ...nce_group_managers_rest_connection_impl.cc | 1187 ++++- ...ance_group_managers_rest_connection_impl.h | 138 + ...tance_group_managers_tracing_connection.cc | 378 ++ ...stance_group_managers_tracing_connection.h | 138 + ...egion_instance_group_managers_connection.h | 181 + ...gion_instance_group_managers_connection.cc | 252 ++ ...egion_instance_group_managers_connection.h | 146 + ...on_instance_groups_rest_connection_impl.cc | 74 + ...ion_instance_groups_rest_connection_impl.h | 9 + ...gion_instance_groups_tracing_connection.cc | 27 + ...egion_instance_groups_tracing_connection.h | 9 + .../mock_region_instance_groups_connection.h | 13 + .../v1/region_instance_groups_connection.cc | 18 + .../v1/region_instance_groups_connection.h | 11 + ...instance_templates_rest_connection_impl.cc | 147 + ..._instance_templates_rest_connection_impl.h | 20 + ...n_instance_templates_tracing_connection.cc | 54 + ...on_instance_templates_tracing_connection.h | 20 + ...ock_region_instance_templates_connection.h | 26 + .../region_instance_templates_connection.cc | 36 + .../v1/region_instance_templates_connection.h | 24 + .../region_instances_rest_connection_impl.cc | 74 + .../region_instances_rest_connection_impl.h | 9 + .../region_instances_tracing_connection.cc | 25 + .../region_instances_tracing_connection.h | 9 + .../mocks/mock_region_instances_connection.h | 12 + .../v1/region_instances_connection.cc | 18 + .../v1/region_instances_connection.h | 11 + ...rk_endpoint_groups_rest_connection_impl.cc | 295 ++ ...ork_endpoint_groups_rest_connection_impl.h | 42 + ...work_endpoint_groups_tracing_connection.cc | 108 + ...twork_endpoint_groups_tracing_connection.h | 42 + ...egion_network_endpoint_groups_connection.h | 52 + ...gion_network_endpoint_groups_connection.cc | 72 + ...egion_network_endpoint_groups_connection.h | 46 + ..._firewall_policies_rest_connection_impl.cc | 658 +++ ...k_firewall_policies_rest_connection_impl.h | 85 + ...rk_firewall_policies_tracing_connection.cc | 243 + ...ork_firewall_policies_tracing_connection.h | 85 + ...ion_network_firewall_policies_connection.h | 113 + ...on_network_firewall_policies_connection.cc | 162 + ...ion_network_firewall_policies_connection.h | 91 + ...fication_endpoints_rest_connection_impl.cc | 149 + ...ification_endpoints_rest_connection_impl.h | 22 + ...tification_endpoints_tracing_connection.cc | 54 + ...otification_endpoints_tracing_connection.h | 22 + ...region_notification_endpoints_connection.h | 26 + ...egion_notification_endpoints_connection.cc | 36 + ...region_notification_endpoints_connection.h | 24 + .../v1/region_operations_connection.h | 2 + ..._security_policies_rest_connection_impl.cc | 439 ++ ...n_security_policies_rest_connection_impl.h | 57 + ...on_security_policies_tracing_connection.cc | 162 + ...ion_security_policies_tracing_connection.h | 57 + ...mock_region_security_policies_connection.h | 75 + .../v1/region_security_policies_connection.cc | 108 + .../v1/region_security_policies_connection.h | 61 + ...n_ssl_certificates_rest_connection_impl.cc | 147 + ...on_ssl_certificates_rest_connection_impl.h | 20 + ...ion_ssl_certificates_tracing_connection.cc | 54 + ...gion_ssl_certificates_tracing_connection.h | 20 + .../mock_region_ssl_certificates_connection.h | 26 + .../v1/region_ssl_certificates_connection.cc | 36 + .../v1/region_ssl_certificates_connection.h | 24 + ...egion_ssl_policies_rest_connection_impl.cc | 220 + ...region_ssl_policies_rest_connection_impl.h | 27 + .../region_ssl_policies_tracing_connection.cc | 81 + .../region_ssl_policies_tracing_connection.h | 27 + .../mock_region_ssl_policies_connection.h | 39 + .../v1/region_ssl_policies_connection.cc | 54 + .../v1/region_ssl_policies_connection.h | 29 + ...arget_http_proxies_rest_connection_impl.cc | 220 + ...target_http_proxies_rest_connection_impl.h | 29 + ..._target_http_proxies_tracing_connection.cc | 81 + ...n_target_http_proxies_tracing_connection.h | 29 + ...ck_region_target_http_proxies_connection.h | 38 + .../region_target_http_proxies_connection.cc | 54 + .../region_target_http_proxies_connection.h | 33 + ...rget_https_proxies_rest_connection_impl.cc | 366 ++ ...arget_https_proxies_rest_connection_impl.h | 49 + ...target_https_proxies_tracing_connection.cc | 135 + ..._target_https_proxies_tracing_connection.h | 49 + ...k_region_target_https_proxies_connection.h | 64 + .../region_target_https_proxies_connection.cc | 90 + .../region_target_https_proxies_connection.h | 54 + ...target_tcp_proxies_rest_connection_impl.cc | 147 + ..._target_tcp_proxies_rest_connection_impl.h | 20 + ...n_target_tcp_proxies_tracing_connection.cc | 54 + ...on_target_tcp_proxies_tracing_connection.h | 20 + ...ock_region_target_tcp_proxies_connection.h | 26 + .../region_target_tcp_proxies_connection.cc | 36 + .../v1/region_target_tcp_proxies_connection.h | 24 + .../region_url_maps_rest_connection_impl.cc | 293 ++ .../region_url_maps_rest_connection_impl.h | 36 + .../region_url_maps_tracing_connection.cc | 100 + .../region_url_maps_tracing_connection.h | 36 + .../mocks/mock_region_url_maps_connection.h | 51 + .../v1/region_url_maps_connection.cc | 72 + .../v1/region_url_maps_connection.h | 38 + .../region_zones/v1/region_zones_connection.h | 2 + .../compute/regions/v1/regions_connection.h | 2 + .../reservations_rest_connection_impl.cc | 293 ++ .../reservations_rest_connection_impl.h | 39 + .../reservations_tracing_connection.cc | 100 + .../reservations_tracing_connection.h | 39 + .../v1/mocks/mock_reservations_connection.h | 52 + .../v1/reservations_connection.cc | 71 + .../reservations/v1/reservations_connection.h | 41 + .../resource_policies_rest_connection_impl.cc | 220 + .../resource_policies_rest_connection_impl.h | 30 + .../resource_policies_tracing_connection.cc | 81 + .../resource_policies_tracing_connection.h | 30 + .../mocks/mock_resource_policies_connection.h | 39 + .../v1/resource_policies_connection.cc | 54 + .../v1/resource_policies_connection.h | 34 + .../internal/routers_rest_connection_impl.cc | 296 ++ .../internal/routers_rest_connection_impl.h | 36 + .../v1/internal/routers_tracing_connection.cc | 100 + .../v1/internal/routers_tracing_connection.h | 36 + .../v1/mocks/mock_routers_connection.h | 52 + .../compute/routers/v1/routers_connection.cc | 68 + .../compute/routers/v1/routers_connection.h | 38 + .../internal/routes_rest_connection_impl.cc | 143 + .../v1/internal/routes_rest_connection_impl.h | 18 + .../v1/internal/routes_tracing_connection.cc | 50 + .../v1/internal/routes_tracing_connection.h | 18 + .../routes/v1/mocks/mock_routes_connection.h | 26 + .../compute/routes/v1/routes_connection.cc | 34 + .../compute/routes/v1/routes_connection.h | 20 + .../security_policies_rest_connection_impl.cc | 498 +++ .../security_policies_rest_connection_impl.h | 66 + .../security_policies_tracing_connection.cc | 181 + .../security_policies_tracing_connection.h | 66 + .../mocks/mock_security_policies_connection.h | 88 + .../v1/security_policies_connection.cc | 125 + .../v1/security_policies_connection.h | 70 + ...ervice_attachments_rest_connection_impl.cc | 220 + ...service_attachments_rest_connection_impl.h | 30 + .../service_attachments_tracing_connection.cc | 81 + .../service_attachments_tracing_connection.h | 30 + .../mock_service_attachments_connection.h | 39 + .../v1/service_attachments_connection.cc | 54 + .../v1/service_attachments_connection.h | 35 + .../snapshot_settings_rest_connection_impl.cc | 72 + .../snapshot_settings_rest_connection_impl.h | 10 + .../snapshot_settings_tracing_connection.cc | 27 + .../snapshot_settings_tracing_connection.h | 10 + .../mocks/mock_snapshot_settings_connection.h | 13 + .../v1/snapshot_settings_connection.cc | 18 + .../v1/snapshot_settings_connection.h | 13 + .../snapshots_rest_connection_impl.cc | 214 + .../internal/snapshots_rest_connection_impl.h | 27 + .../internal/snapshots_tracing_connection.cc | 75 + .../internal/snapshots_tracing_connection.h | 27 + .../v1/mocks/mock_snapshots_connection.h | 39 + .../snapshots/v1/snapshots_connection.cc | 51 + .../snapshots/v1/snapshots_connection.h | 29 + .../ssl_certificates_rest_connection_impl.cc | 143 + .../ssl_certificates_rest_connection_impl.h | 20 + .../ssl_certificates_tracing_connection.cc | 54 + .../ssl_certificates_tracing_connection.h | 20 + .../mocks/mock_ssl_certificates_connection.h | 26 + .../v1/ssl_certificates_connection.cc | 36 + .../v1/ssl_certificates_connection.h | 24 + .../ssl_policies_rest_connection_impl.cc | 214 + .../ssl_policies_rest_connection_impl.h | 27 + .../ssl_policies_tracing_connection.cc | 75 + .../ssl_policies_tracing_connection.h | 27 + .../v1/mocks/mock_ssl_policies_connection.h | 39 + .../v1/ssl_policies_connection.cc | 54 + .../ssl_policies/v1/ssl_policies_connection.h | 29 + .../v1/storage_pool_types_connection.h | 2 + .../storage_pools_rest_connection_impl.cc | 220 + .../storage_pools_rest_connection_impl.h | 30 + .../storage_pools_tracing_connection.cc | 75 + .../storage_pools_tracing_connection.h | 30 + .../v1/mocks/mock_storage_pools_connection.h | 39 + .../v1/storage_pools_connection.cc | 54 + .../v1/storage_pools_connection.h | 32 + .../subnetworks_rest_connection_impl.cc | 366 ++ .../subnetworks_rest_connection_impl.h | 47 + .../subnetworks_tracing_connection.cc | 127 + .../internal/subnetworks_tracing_connection.h | 47 + .../v1/mocks/mock_subnetworks_connection.h | 65 + .../subnetworks/v1/subnetworks_connection.cc | 90 + .../subnetworks/v1/subnetworks_connection.h | 50 + ...arget_grpc_proxies_rest_connection_impl.cc | 214 + ...target_grpc_proxies_rest_connection_impl.h | 30 + .../target_grpc_proxies_tracing_connection.cc | 81 + .../target_grpc_proxies_tracing_connection.h | 30 + .../mock_target_grpc_proxies_connection.h | 39 + .../v1/target_grpc_proxies_connection.cc | 54 + .../v1/target_grpc_proxies_connection.h | 35 + ...arget_http_proxies_rest_connection_impl.cc | 285 ++ ...target_http_proxies_rest_connection_impl.h | 39 + .../target_http_proxies_tracing_connection.cc | 106 + .../target_http_proxies_tracing_connection.h | 39 + .../mock_target_http_proxies_connection.h | 51 + .../v1/target_http_proxies_connection.cc | 72 + .../v1/target_http_proxies_connection.h | 44 + ...rget_https_proxies_rest_connection_impl.cc | 569 +++ ...arget_https_proxies_rest_connection_impl.h | 77 + ...target_https_proxies_tracing_connection.cc | 216 + .../target_https_proxies_tracing_connection.h | 77 + .../mock_target_https_proxies_connection.h | 103 + .../v1/target_https_proxies_connection.cc | 144 + .../v1/target_https_proxies_connection.h | 82 + .../target_instances_rest_connection_impl.cc | 220 + .../target_instances_rest_connection_impl.h | 30 + .../target_instances_tracing_connection.cc | 81 + .../target_instances_tracing_connection.h | 30 + .../mocks/mock_target_instances_connection.h | 39 + .../v1/target_instances_connection.cc | 54 + .../v1/target_instances_connection.h | 34 + .../target_pools_rest_connection_impl.cc | 586 +++ .../target_pools_rest_connection_impl.h | 74 + .../target_pools_tracing_connection.cc | 200 + .../target_pools_tracing_connection.h | 74 + .../v1/mocks/mock_target_pools_connection.h | 104 + .../v1/target_pools_connection.cc | 142 + .../target_pools/v1/target_pools_connection.h | 76 + ...target_ssl_proxies_rest_connection_impl.cc | 498 +++ .../target_ssl_proxies_rest_connection_impl.h | 68 + .../target_ssl_proxies_tracing_connection.cc | 189 + .../target_ssl_proxies_tracing_connection.h | 68 + .../mock_target_ssl_proxies_connection.h | 91 + .../v1/target_ssl_proxies_connection.cc | 126 + .../v1/target_ssl_proxies_connection.h | 72 + ...target_tcp_proxies_rest_connection_impl.cc | 285 ++ .../target_tcp_proxies_rest_connection_impl.h | 39 + .../target_tcp_proxies_tracing_connection.cc | 108 + .../target_tcp_proxies_tracing_connection.h | 39 + .../mock_target_tcp_proxies_connection.h | 52 + .../v1/target_tcp_proxies_connection.cc | 72 + .../v1/target_tcp_proxies_connection.h | 43 + ...arget_vpn_gateways_rest_connection_impl.cc | 220 + ...target_vpn_gateways_rest_connection_impl.h | 29 + .../target_vpn_gateways_tracing_connection.cc | 79 + .../target_vpn_gateways_tracing_connection.h | 29 + .../mock_target_vpn_gateways_connection.h | 38 + .../v1/target_vpn_gateways_connection.cc | 54 + .../v1/target_vpn_gateways_connection.h | 33 + .../internal/url_maps_rest_connection_impl.cc | 360 ++ .../internal/url_maps_rest_connection_impl.h | 45 + .../internal/url_maps_tracing_connection.cc | 125 + .../v1/internal/url_maps_tracing_connection.h | 45 + .../v1/mocks/mock_url_maps_connection.h | 65 + .../url_maps/v1/url_maps_connection.cc | 85 + .../compute/url_maps/v1/url_maps_connection.h | 47 + .../vpn_gateways_rest_connection_impl.cc | 221 + .../vpn_gateways_rest_connection_impl.h | 27 + .../vpn_gateways_tracing_connection.cc | 75 + .../vpn_gateways_tracing_connection.h | 27 + .../v1/mocks/mock_vpn_gateways_connection.h | 39 + .../v1/vpn_gateways_connection.cc | 53 + .../vpn_gateways/v1/vpn_gateways_connection.h | 29 + .../vpn_tunnels_rest_connection_impl.cc | 221 + .../vpn_tunnels_rest_connection_impl.h | 27 + .../vpn_tunnels_tracing_connection.cc | 75 + .../internal/vpn_tunnels_tracing_connection.h | 27 + .../v1/mocks/mock_vpn_tunnels_connection.h | 39 + .../vpn_tunnels/v1/vpn_tunnels_connection.cc | 53 + .../vpn_tunnels/v1/vpn_tunnels_connection.h | 29 + .../v1/zone_operations_connection.h | 2 + .../cloud/compute/zones/v1/zones_connection.h | 2 + .../v1/confidential_computing_connection.h | 2 + google/cloud/config/v1/config_connection.cc | 105 + google/cloud/config/v1/config_connection.h | 58 + .../v1/internal/config_connection_impl.cc | 361 ++ .../v1/internal/config_connection_impl.h | 60 + .../v1/internal/config_tracing_connection.cc | 160 + .../v1/internal/config_tracing_connection.h | 60 + .../config/v1/mocks/mock_config_connection.h | 81 + .../connectors/v1/connectors_connection.cc | 62 + .../connectors/v1/connectors_connection.h | 38 + .../v1/internal/connectors_connection_impl.cc | 218 + .../v1/internal/connectors_connection_impl.h | 37 + .../internal/connectors_tracing_connection.cc | 97 + .../internal/connectors_tracing_connection.h | 37 + .../v1/mocks/mock_connectors_connection.h | 51 + .../v1/contact_center_insights_connection.cc | 175 + .../v1/contact_center_insights_connection.h | 100 + ...contact_center_insights_connection_impl.cc | 573 +++ .../contact_center_insights_connection_impl.h | 99 + ...tact_center_insights_tracing_connection.cc | 277 ++ ...ntact_center_insights_tracing_connection.h | 99 + .../mock_contact_center_insights_connection.h | 137 + .../container/v1/cluster_manager_connection.h | 2 + .../v1/container_analysis_connection.h | 2 + .../containeranalysis/v1/grafeas_connection.h | 2 + .../contentwarehouse/v1/document_connection.h | 2 + .../v1/document_link_connection.h | 2 + .../v1/document_schema_connection.h | 2 + .../v1/internal/pipeline_connection_impl.cc | 55 + .../v1/internal/pipeline_connection_impl.h | 9 + .../internal/pipeline_tracing_connection.cc | 24 + .../v1/internal/pipeline_tracing_connection.h | 9 + .../v1/mocks/mock_pipeline_connection.h | 14 + .../v1/pipeline_connection.cc | 15 + .../contentwarehouse/v1/pipeline_connection.h | 11 + .../contentwarehouse/v1/rule_set_connection.h | 2 + .../v1/synonym_set_connection.h | 2 + .../v1/internal/lineage_connection_impl.cc | 110 + .../v1/internal/lineage_connection_impl.h | 18 + .../v1/internal/lineage_tracing_connection.cc | 48 + .../v1/internal/lineage_tracing_connection.h | 18 + .../lineage/v1/lineage_connection.cc | 30 + .../lineage/v1/lineage_connection.h | 21 + .../v1/mocks/mock_lineage_connection.h | 29 + .../datacatalog/v1/data_catalog_connection.cc | 30 + .../datacatalog/v1/data_catalog_connection.h | 20 + .../internal/data_catalog_connection_impl.cc | 110 + .../internal/data_catalog_connection_impl.h | 18 + .../data_catalog_tracing_connection.cc | 48 + .../data_catalog_tracing_connection.h | 18 + .../v1/mocks/mock_data_catalog_connection.h | 26 + .../v1/policy_tag_manager_connection.h | 2 + ...icy_tag_manager_serialization_connection.h | 2 + .../datafusion/v1/data_fusion_connection.cc | 60 + .../datafusion/v1/data_fusion_connection.h | 34 + .../internal/data_fusion_connection_impl.cc | 213 + .../v1/internal/data_fusion_connection_impl.h | 36 + .../data_fusion_tracing_connection.cc | 96 + .../internal/data_fusion_tracing_connection.h | 36 + .../v1/mocks/mock_data_fusion_connection.h | 49 + .../v1/data_migration_connection.cc | 368 ++ .../v1/data_migration_connection.h | 199 + .../data_migration_connection_impl.cc | 1321 +++++- .../internal/data_migration_connection_impl.h | 220 + .../data_migration_tracing_connection.cc | 591 +++ .../data_migration_tracing_connection.h | 220 + .../v1/mocks/mock_data_migration_connection.h | 297 ++ .../cloud/dataplex/v1/catalog_connection.cc | 144 + google/cloud/dataplex/v1/catalog_connection.h | 74 + google/cloud/dataplex/v1/content_connection.h | 2 + .../cloud/dataplex/v1/data_scan_connection.cc | 48 + .../cloud/dataplex/v1/data_scan_connection.h | 26 + .../dataplex/v1/data_taxonomy_connection.cc | 144 + .../dataplex/v1/data_taxonomy_connection.h | 77 + .../cloud/dataplex/v1/dataplex_connection.cc | 228 + .../cloud/dataplex/v1/dataplex_connection.h | 122 + .../v1/internal/catalog_connection_impl.cc | 480 ++ .../v1/internal/catalog_connection_impl.h | 81 + .../v1/internal/catalog_tracing_connection.cc | 216 + .../v1/internal/catalog_tracing_connection.h | 81 + .../v1/internal/data_scan_connection_impl.cc | 160 + .../v1/internal/data_scan_connection_impl.h | 27 + .../internal/data_scan_tracing_connection.cc | 72 + .../internal/data_scan_tracing_connection.h | 27 + .../internal/data_taxonomy_connection_impl.cc | 492 +++ .../internal/data_taxonomy_connection_impl.h | 84 + .../data_taxonomy_tracing_connection.cc | 219 + .../data_taxonomy_tracing_connection.h | 84 + .../v1/internal/dataplex_connection_impl.cc | 840 +++- .../v1/internal/dataplex_connection_impl.h | 123 + .../internal/dataplex_tracing_connection.cc | 360 ++ .../v1/internal/dataplex_tracing_connection.h | 123 + .../cloud/dataplex/v1/metadata_connection.h | 2 + .../v1/mocks/mock_catalog_connection.h | 108 + .../v1/mocks/mock_data_scan_connection.h | 36 + .../v1/mocks/mock_data_taxonomy_connection.h | 113 + .../v1/mocks/mock_dataplex_connection.h | 160 + .../v1/autoscaling_policy_connection.h | 2 + .../v1/batch_controller_connection.cc | 15 + .../dataproc/v1/batch_controller_connection.h | 10 + .../v1/cluster_controller_connection.cc | 96 + .../v1/cluster_controller_connection.h | 51 + .../batch_controller_connection_impl.cc | 53 + .../batch_controller_connection_impl.h | 8 + .../batch_controller_tracing_connection.cc | 24 + .../batch_controller_tracing_connection.h | 8 + .../cluster_controller_connection_impl.cc | 321 ++ .../cluster_controller_connection_impl.h | 52 + .../cluster_controller_tracing_connection.cc | 144 + .../cluster_controller_tracing_connection.h | 52 + .../job_controller_connection_impl.cc | 52 + .../internal/job_controller_connection_impl.h | 8 + .../job_controller_tracing_connection.cc | 24 + .../job_controller_tracing_connection.h | 8 + .../node_group_controller_connection_impl.cc | 108 + .../node_group_controller_connection_impl.h | 18 + ...ode_group_controller_tracing_connection.cc | 48 + ...node_group_controller_tracing_connection.h | 18 + .../session_controller_connection_impl.cc | 160 + .../session_controller_connection_impl.h | 27 + .../session_controller_tracing_connection.cc | 72 + .../session_controller_tracing_connection.h | 27 + .../workflow_template_connection_impl.cc | 113 + .../workflow_template_connection_impl.h | 20 + .../workflow_template_tracing_connection.cc | 54 + .../workflow_template_tracing_connection.h | 20 + .../dataproc/v1/job_controller_connection.cc | 16 + .../dataproc/v1/job_controller_connection.h | 10 + .../mocks/mock_batch_controller_connection.h | 10 + .../mock_cluster_controller_connection.h | 72 + .../v1/mocks/mock_job_controller_connection.h | 11 + .../mock_node_group_controller_connection.h | 24 + .../mock_session_controller_connection.h | 36 + .../mocks/mock_workflow_template_connection.h | 26 + .../v1/node_group_controller_connection.cc | 32 + .../v1/node_group_controller_connection.h | 18 + .../v1/session_controller_connection.cc | 48 + .../v1/session_controller_connection.h | 26 + .../session_template_controller_connection.h | 2 + .../v1/workflow_template_connection.cc | 33 + .../v1/workflow_template_connection.h | 22 + .../admin/v1/datastore_admin_connection.cc | 62 + .../admin/v1/datastore_admin_connection.h | 34 + .../datastore_admin_connection_impl.cc | 216 + .../datastore_admin_connection_impl.h | 34 + .../datastore_admin_tracing_connection.cc | 96 + .../datastore_admin_tracing_connection.h | 34 + .../mocks/mock_datastore_admin_connection.h | 48 + .../cloud/datastore/v1/datastore_connection.h | 2 + .../datastream/v1/datastream_connection.cc | 155 + .../datastream/v1/datastream_connection.h | 87 + .../v1/internal/datastream_connection_impl.cc | 540 +++ .../v1/internal/datastream_connection_impl.h | 95 + .../internal/datastream_tracing_connection.cc | 245 ++ .../internal/datastream_tracing_connection.h | 95 + .../v1/mocks/mock_datastream_connection.h | 132 + .../deploy/v1/cloud_deploy_connection.cc | 219 + .../cloud/deploy/v1/cloud_deploy_connection.h | 114 + .../internal/cloud_deploy_connection_impl.cc | 745 ++++ .../internal/cloud_deploy_connection_impl.h | 127 + .../cloud_deploy_tracing_connection.cc | 336 ++ .../cloud_deploy_tracing_connection.h | 127 + .../v1/mocks/mock_cloud_deploy_connection.h | 161 + .../cloud/dialogflow_cx/agents_connection.cc | 28 + .../cloud/dialogflow_cx/agents_connection.h | 19 + .../dialogflow_cx/changelogs_connection.h | 2 + .../dialogflow_cx/deployments_connection.h | 2 + .../dialogflow_cx/entity_types_connection.cc | 32 + .../dialogflow_cx/entity_types_connection.h | 22 + .../dialogflow_cx/environments_connection.cc | 63 + .../dialogflow_cx/environments_connection.h | 39 + .../dialogflow_cx/experiments_connection.h | 2 + .../cloud/dialogflow_cx/flows_connection.cc | 43 + google/cloud/dialogflow_cx/flows_connection.h | 28 + .../dialogflow_cx/generators_connection.h | 2 + .../cloud/dialogflow_cx/intents_connection.cc | 30 + .../cloud/dialogflow_cx/intents_connection.h | 20 + .../internal/agents_connection_impl.cc | 102 + .../internal/agents_connection_impl.h | 18 + .../internal/agents_tracing_connection.cc | 46 + .../internal/agents_tracing_connection.h | 18 + .../internal/entity_types_connection_impl.cc | 112 + .../internal/entity_types_connection_impl.h | 18 + .../entity_types_tracing_connection.cc | 50 + .../entity_types_tracing_connection.h | 18 + .../internal/environments_connection_impl.cc | 218 + .../internal/environments_connection_impl.h | 36 + .../environments_tracing_connection.cc | 99 + .../environments_tracing_connection.h | 36 + .../internal/flows_connection_impl.cc | 154 + .../internal/flows_connection_impl.h | 27 + .../internal/flows_tracing_connection.cc | 62 + .../internal/flows_tracing_connection.h | 27 + .../internal/intents_connection_impl.cc | 108 + .../internal/intents_connection_impl.h | 18 + .../internal/intents_tracing_connection.cc | 48 + .../internal/intents_tracing_connection.h | 18 + .../internal/test_cases_connection_impl.cc | 220 + .../internal/test_cases_connection_impl.h | 36 + .../internal/test_cases_tracing_connection.cc | 97 + .../internal/test_cases_tracing_connection.h | 36 + .../internal/versions_connection_impl.cc | 104 + .../internal/versions_connection_impl.h | 18 + .../internal/versions_tracing_connection.cc | 47 + .../internal/versions_tracing_connection.h | 18 + .../mocks/mock_agents_connection.h | 24 + .../mocks/mock_entity_types_connection.h | 30 + .../mocks/mock_environments_connection.h | 54 + .../mocks/mock_flows_connection.h | 37 + .../mocks/mock_intents_connection.h | 28 + .../mocks/mock_test_cases_connection.h | 56 + .../mocks/mock_versions_connection.h | 23 + google/cloud/dialogflow_cx/pages_connection.h | 2 + .../security_settings_connection.h | 2 + .../session_entity_types_connection.h | 2 + .../cloud/dialogflow_cx/sessions_connection.h | 2 + .../dialogflow_cx/test_cases_connection.cc | 60 + .../dialogflow_cx/test_cases_connection.h | 39 + .../transition_route_groups_connection.h | 2 + .../dialogflow_cx/versions_connection.cc | 28 + .../cloud/dialogflow_cx/versions_connection.h | 18 + .../cloud/dialogflow_cx/webhooks_connection.h | 2 + .../cloud/dialogflow_es/agents_connection.cc | 54 + .../cloud/dialogflow_es/agents_connection.h | 34 + .../dialogflow_es/answer_records_connection.h | 2 + .../cloud/dialogflow_es/contexts_connection.h | 2 + .../conversation_datasets_connection.cc | 51 + .../conversation_datasets_connection.h | 31 + .../conversation_models_connection.cc | 85 + .../conversation_models_connection.h | 53 + .../conversation_profiles_connection.cc | 32 + .../conversation_profiles_connection.h | 20 + .../dialogflow_es/conversations_connection.h | 2 + .../dialogflow_es/documents_connection.cc | 90 + .../dialogflow_es/documents_connection.h | 52 + .../dialogflow_es/entity_types_connection.cc | 76 + .../dialogflow_es/entity_types_connection.h | 45 + .../dialogflow_es/environments_connection.h | 2 + .../dialogflow_es/fulfillments_connection.h | 2 + .../cloud/dialogflow_es/intents_connection.cc | 29 + .../cloud/dialogflow_es/intents_connection.h | 19 + .../internal/agents_connection_impl.cc | 199 + .../internal/agents_connection_impl.h | 35 + .../internal/agents_tracing_connection.cc | 88 + .../internal/agents_tracing_connection.h | 35 + .../conversation_datasets_connection_impl.cc | 177 + .../conversation_datasets_connection_impl.h | 32 + ...onversation_datasets_tracing_connection.cc | 81 + ...conversation_datasets_tracing_connection.h | 32 + .../conversation_models_connection_impl.cc | 296 ++ .../conversation_models_connection_impl.h | 53 + .../conversation_models_tracing_connection.cc | 130 + .../conversation_models_tracing_connection.h | 53 + .../conversation_profiles_connection_impl.cc | 112 + .../conversation_profiles_connection_impl.h | 20 + ...onversation_profiles_tracing_connection.cc | 54 + ...conversation_profiles_tracing_connection.h | 20 + .../internal/documents_connection_impl.cc | 326 ++ .../internal/documents_connection_impl.h | 54 + .../internal/documents_tracing_connection.cc | 144 + .../internal/documents_tracing_connection.h | 54 + .../internal/entity_types_connection_impl.cc | 263 ++ .../internal/entity_types_connection_impl.h | 47 + .../entity_types_tracing_connection.cc | 122 + .../entity_types_tracing_connection.h | 47 + .../internal/intents_connection_impl.cc | 105 + .../internal/intents_connection_impl.h | 18 + .../internal/intents_tracing_connection.cc | 48 + .../internal/intents_tracing_connection.h | 18 + .../knowledge_bases_connection.h | 2 + .../mocks/mock_agents_connection.h | 45 + .../mock_conversation_datasets_connection.h | 42 + .../mock_conversation_models_connection.h | 71 + .../mock_conversation_profiles_connection.h | 28 + .../mocks/mock_documents_connection.h | 75 + .../mocks/mock_entity_types_connection.h | 61 + .../mocks/mock_intents_connection.h | 25 + .../dialogflow_es/participants_connection.h | 2 + .../session_entity_types_connection.h | 2 + .../cloud/dialogflow_es/sessions_connection.h | 2 + .../cloud/dialogflow_es/versions_connection.h | 2 + .../v1/completion_connection.cc | 38 + .../v1/completion_connection.h | 26 + .../discoveryengine/v1/control_connection.h | 2 + .../v1/conversational_search_connection.h | 2 + .../v1/data_store_connection.cc | 32 + .../v1/data_store_connection.h | 21 + .../discoveryengine/v1/document_connection.cc | 32 + .../discoveryengine/v1/document_connection.h | 21 + .../discoveryengine/v1/engine_connection.cc | 30 + .../discoveryengine/v1/engine_connection.h | 19 + .../v1/grounded_generation_connection.h | 2 + .../v1/internal/completion_connection_impl.cc | 121 + .../v1/internal/completion_connection_impl.h | 22 + .../internal/completion_tracing_connection.cc | 56 + .../internal/completion_tracing_connection.h | 22 + .../v1/internal/data_store_connection_impl.cc | 110 + .../v1/internal/data_store_connection_impl.h | 18 + .../internal/data_store_tracing_connection.cc | 48 + .../internal/data_store_tracing_connection.h | 18 + .../v1/internal/document_connection_impl.cc | 110 + .../v1/internal/document_connection_impl.h | 18 + .../internal/document_tracing_connection.cc | 48 + .../v1/internal/document_tracing_connection.h | 18 + .../v1/internal/engine_connection_impl.cc | 110 + .../v1/internal/engine_connection_impl.h | 18 + .../v1/internal/engine_tracing_connection.cc | 48 + .../v1/internal/engine_tracing_connection.h | 18 + .../v1/internal/project_connection_impl.cc | 56 + .../v1/internal/project_connection_impl.h | 9 + .../v1/internal/project_tracing_connection.cc | 25 + .../v1/internal/project_tracing_connection.h | 9 + .../v1/internal/schema_connection_impl.cc | 165 + .../v1/internal/schema_connection_impl.h | 27 + .../v1/internal/schema_tracing_connection.cc | 72 + .../v1/internal/schema_tracing_connection.h | 27 + .../site_search_engine_connection_impl.cc | 452 ++ .../site_search_engine_connection_impl.h | 80 + .../site_search_engine_tracing_connection.cc | 217 + .../site_search_engine_tracing_connection.h | 80 + .../v1/internal/user_event_connection_impl.cc | 56 + .../v1/internal/user_event_connection_impl.h | 9 + .../internal/user_event_tracing_connection.cc | 25 + .../internal/user_event_tracing_connection.h | 9 + .../v1/mocks/mock_completion_connection.h | 28 + .../v1/mocks/mock_data_store_connection.h | 25 + .../v1/mocks/mock_document_connection.h | 27 + .../v1/mocks/mock_engine_connection.h | 26 + .../v1/mocks/mock_project_connection.h | 13 + .../v1/mocks/mock_schema_connection.h | 38 + .../mock_site_search_engine_connection.h | 112 + .../v1/mocks/mock_user_event_connection.h | 15 + .../discoveryengine/v1/project_connection.cc | 16 + .../discoveryengine/v1/project_connection.h | 11 + .../discoveryengine/v1/rank_connection.h | 2 + .../v1/recommendation_connection.h | 2 + .../discoveryengine/v1/schema_connection.cc | 45 + .../discoveryengine/v1/schema_connection.h | 27 + .../discoveryengine/v1/search_connection.h | 2 + .../v1/site_search_engine_connection.cc | 134 + .../v1/site_search_engine_connection.h | 79 + .../v1/user_event_connection.cc | 16 + .../v1/user_event_connection.h | 12 + google/cloud/dlp/v2/dlp_connection.h | 2 + .../v1/document_processor_connection.cc | 179 + .../v1/document_processor_connection.h | 106 + .../document_processor_connection_impl.cc | 616 +++ .../document_processor_connection_impl.h | 111 + .../document_processor_tracing_connection.cc | 287 ++ .../document_processor_tracing_connection.h | 111 + .../mock_document_processor_connection.h | 155 + google/cloud/domains/v1/domains_connection.cc | 123 + google/cloud/domains/v1/domains_connection.h | 68 + .../v1/internal/domains_connection_impl.cc | 431 ++ .../v1/internal/domains_connection_impl.h | 75 + .../v1/internal/domains_tracing_connection.cc | 194 + .../v1/internal/domains_tracing_connection.h | 75 + .../v1/mocks/mock_domains_connection.h | 98 + .../v1/edge_container_connection.cc | 141 + .../v1/edge_container_connection.h | 76 + .../edge_container_connection_impl.cc | 497 +++ .../internal/edge_container_connection_impl.h | 81 + .../edge_container_tracing_connection.cc | 218 + .../edge_container_tracing_connection.h | 81 + .../v1/mocks/mock_edge_container_connection.h | 113 + .../edgenetwork/v1/edge_network_connection.cc | 154 + .../edgenetwork/v1/edge_network_connection.h | 85 + .../internal/edge_network_connection_impl.cc | 537 +++ .../internal/edge_network_connection_impl.h | 92 + .../edge_network_tracing_connection.cc | 242 + .../edge_network_tracing_connection.h | 92 + .../v1/mocks/mock_edge_network_connection.h | 127 + .../v1/essential_contacts_connection.h | 2 + .../publishing/v1/publisher_connection.h | 2 + .../cloud/eventarc/v1/eventarc_connection.cc | 122 + .../cloud/eventarc/v1/eventarc_connection.h | 68 + .../v1/internal/eventarc_connection_impl.cc | 416 ++ .../v1/internal/eventarc_connection_impl.h | 74 + .../internal/eventarc_tracing_connection.cc | 194 + .../v1/internal/eventarc_tracing_connection.h | 74 + .../v1/mocks/mock_eventarc_connection.h | 98 + .../v1/cloud_filestore_manager_connection.cc | 176 + .../v1/cloud_filestore_manager_connection.h | 90 + ...cloud_filestore_manager_connection_impl.cc | 583 +++ .../cloud_filestore_manager_connection_impl.h | 99 + ...ud_filestore_manager_tracing_connection.cc | 264 ++ ...oud_filestore_manager_tracing_connection.h | 99 + .../mock_cloud_filestore_manager_connection.h | 132 + .../v1/cloud_functions_connection.cc | 48 + .../functions/v1/cloud_functions_connection.h | 26 + .../cloud_functions_connection_impl.cc | 162 + .../cloud_functions_connection_impl.h | 27 + .../cloud_functions_tracing_connection.cc | 72 + .../cloud_functions_tracing_connection.h | 27 + .../mocks/mock_cloud_functions_connection.h | 37 + .../cloud/functions/v2/function_connection.cc | 48 + .../cloud/functions/v2/function_connection.h | 26 + .../v2/internal/function_connection_impl.cc | 160 + .../v2/internal/function_connection_impl.h | 27 + .../internal/function_tracing_connection.cc | 72 + .../v2/internal/function_tracing_connection.h | 27 + .../v2/mocks/mock_function_connection.h | 36 + .../gkebackup/v1/backup_for_gke_connection.cc | 186 + .../gkebackup/v1/backup_for_gke_connection.h | 98 + .../backup_for_gke_connection_impl.cc | 641 +++ .../internal/backup_for_gke_connection_impl.h | 108 + .../backup_for_gke_tracing_connection.cc | 288 ++ .../backup_for_gke_tracing_connection.h | 108 + .../v1/mocks/mock_backup_for_gke_connection.h | 144 + google/cloud/gkehub/v1/gke_hub_connection.cc | 90 + google/cloud/gkehub/v1/gke_hub_connection.h | 50 + .../v1/internal/gke_hub_connection_impl.cc | 311 ++ .../v1/internal/gke_hub_connection_impl.h | 51 + .../v1/internal/gke_hub_tracing_connection.cc | 135 + .../v1/internal/gke_hub_tracing_connection.h | 51 + .../gkehub/v1/mocks/mock_gke_hub_connection.h | 69 + .../v1/attached_clusters_connection.cc | 64 + .../v1/attached_clusters_connection.h | 38 + .../v1/aws_clusters_connection.cc | 112 + .../v1/aws_clusters_connection.h | 62 + .../v1/azure_clusters_connection.cc | 128 + .../v1/azure_clusters_connection.h | 74 + .../attached_clusters_connection_impl.cc | 228 + .../attached_clusters_connection_impl.h | 40 + .../attached_clusters_tracing_connection.cc | 100 + .../attached_clusters_tracing_connection.h | 40 + .../internal/aws_clusters_connection_impl.cc | 386 ++ .../internal/aws_clusters_connection_impl.h | 64 + .../aws_clusters_tracing_connection.cc | 169 + .../aws_clusters_tracing_connection.h | 64 + .../azure_clusters_connection_impl.cc | 446 ++ .../internal/azure_clusters_connection_impl.h | 72 + .../azure_clusters_tracing_connection.cc | 198 + .../azure_clusters_tracing_connection.h | 72 + .../mocks/mock_attached_clusters_connection.h | 56 + .../v1/mocks/mock_aws_clusters_connection.h | 87 + .../v1/mocks/mock_azure_clusters_connection.h | 105 + google/cloud/iam/admin/v1/iam_connection.h | 2 + .../v1/iam_credentials_connection.h | 2 + google/cloud/iam/v1/iam_policy_connection.h | 2 + .../v2/internal/policies_connection_impl.cc | 150 + .../v2/internal/policies_connection_impl.h | 24 + .../internal/policies_tracing_connection.cc | 66 + .../v2/internal/policies_tracing_connection.h | 24 + .../iam/v2/mocks/mock_policies_connection.h | 30 + google/cloud/iam/v2/policies_connection.cc | 39 + google/cloud/iam/v2/policies_connection.h | 26 + .../identity_aware_proxy_admin_connection.h | 2 + .../identity_aware_proxy_o_auth_connection.h | 2 + google/cloud/ids/v1/ids_connection.cc | 30 + google/cloud/ids/v1/ids_connection.h | 18 + .../ids/v1/internal/ids_connection_impl.cc | 103 + .../ids/v1/internal/ids_connection_impl.h | 16 + .../ids/v1/internal/ids_tracing_connection.cc | 42 + .../ids/v1/internal/ids_tracing_connection.h | 16 + .../cloud/ids/v1/mocks/mock_ids_connection.h | 22 + .../inventory/v1/key_dashboard_connection.h | 2 + .../inventory/v1/key_tracking_connection.h | 2 + .../cloud/kms/v1/autokey_admin_connection.h | 2 + google/cloud/kms/v1/autokey_connection.cc | 15 + google/cloud/kms/v1/autokey_connection.h | 10 + google/cloud/kms/v1/ekm_connection.h | 2 + .../v1/internal/autokey_connection_impl.cc | 51 + .../kms/v1/internal/autokey_connection_impl.h | 8 + .../v1/internal/autokey_tracing_connection.cc | 22 + .../v1/internal/autokey_tracing_connection.h | 8 + .../cloud/kms/v1/key_management_connection.h | 2 + .../kms/v1/mocks/mock_autokey_connection.h | 11 + .../cloud/language/v1/language_connection.h | 2 + .../cloud/language/v2/language_connection.h | 2 + .../v2/config_service_v2_connection.cc | 77 + .../logging/v2/config_service_v2_connection.h | 42 + .../config_service_v2_connection_impl.cc | 259 ++ .../config_service_v2_connection_impl.h | 40 + .../config_service_v2_tracing_connection.cc | 120 + .../config_service_v2_tracing_connection.h | 40 + .../v2/logging_service_v2_connection.h | 2 + .../v2/metrics_service_v2_connection.h | 2 + .../mocks/mock_config_service_v2_connection.h | 53 + .../managed_identities_connection_impl.cc | 381 ++ .../managed_identities_connection_impl.h | 64 + .../managed_identities_tracing_connection.cc | 176 + .../managed_identities_tracing_connection.h | 64 + .../v1/managed_identities_connection.cc | 113 + .../v1/managed_identities_connection.h | 61 + .../mock_managed_identities_connection.h | 86 + .../internal/managed_kafka_connection_impl.cc | 162 + .../internal/managed_kafka_connection_impl.h | 27 + .../managed_kafka_tracing_connection.cc | 72 + .../managed_kafka_tracing_connection.h | 27 + .../v1/managed_kafka_connection.cc | 45 + .../v1/managed_kafka_connection.h | 26 + .../v1/mocks/mock_managed_kafka_connection.h | 37 + .../memcache/v1/cloud_memcache_connection.cc | 96 + .../memcache/v1/cloud_memcache_connection.h | 50 + .../cloud_memcache_connection_impl.cc | 319 ++ .../internal/cloud_memcache_connection_impl.h | 54 + .../cloud_memcache_tracing_connection.cc | 144 + .../cloud_memcache_tracing_connection.h | 54 + .../v1/mocks/mock_cloud_memcache_connection.h | 72 + .../v1/dataproc_metastore_connection.cc | 193 + .../v1/dataproc_metastore_connection.h | 103 + ...ataproc_metastore_federation_connection.cc | 48 + ...dataproc_metastore_federation_connection.h | 26 + .../dataproc_metastore_connection_impl.cc | 644 +++ .../dataproc_metastore_connection_impl.h | 112 + ...oc_metastore_federation_connection_impl.cc | 162 + ...roc_metastore_federation_connection_impl.h | 27 + ...metastore_federation_tracing_connection.cc | 72 + ..._metastore_federation_tracing_connection.h | 27 + .../dataproc_metastore_tracing_connection.cc | 292 ++ .../dataproc_metastore_tracing_connection.h | 112 + .../mock_dataproc_metastore_connection.h | 150 + ...dataproc_metastore_federation_connection.h | 36 + .../migration_center_connection_impl.cc | 1350 +++++- .../migration_center_connection_impl.h | 210 + .../migration_center_tracing_connection.cc | 562 +++ .../migration_center_tracing_connection.h | 210 + .../v1/migration_center_connection.cc | 365 ++ .../v1/migration_center_connection.h | 208 + .../mocks/mock_migration_center_connection.h | 299 ++ .../dashboard/v1/dashboards_connection.h | 2 + .../metrics_scopes_connection_impl.cc | 112 + .../internal/metrics_scopes_connection_impl.h | 20 + .../metrics_scopes_tracing_connection.cc | 54 + .../metrics_scopes_tracing_connection.h | 20 + .../v1/metrics_scopes_connection.cc | 34 + .../v1/metrics_scopes_connection.h | 22 + .../v1/mocks/mock_metrics_scopes_connection.h | 26 + .../monitoring/v3/alert_policy_connection.h | 2 + google/cloud/monitoring/v3/group_connection.h | 2 + .../cloud/monitoring/v3/metric_connection.h | 2 + .../v3/notification_channel_connection.h | 2 + google/cloud/monitoring/v3/query_connection.h | 2 + .../v3/service_monitoring_connection.h | 2 + .../cloud/monitoring/v3/snooze_connection.h | 2 + .../monitoring/v3/uptime_check_connection.h | 2 + .../v1/internal/net_app_connection_impl.cc | 1711 +++++++- .../v1/internal/net_app_connection_impl.h | 281 ++ .../v1/internal/net_app_tracing_connection.cc | 740 ++++ .../v1/internal/net_app_tracing_connection.h | 281 ++ .../netapp/v1/mocks/mock_net_app_connection.h | 369 ++ google/cloud/netapp/v1/net_app_connection.cc | 484 ++ google/cloud/netapp/v1/net_app_connection.h | 259 ++ .../networkconnectivity/v1/hub_connection.cc | 120 + .../networkconnectivity/v1/hub_connection.h | 75 + .../v1/internal/hub_connection_impl.cc | 438 ++ .../v1/internal/hub_connection_impl.h | 74 + .../v1/internal/hub_tracing_connection.cc | 191 + .../v1/internal/hub_tracing_connection.h | 74 + .../policy_based_routing_connection_impl.cc | 112 + .../policy_based_routing_connection_impl.h | 20 + ...policy_based_routing_tracing_connection.cc | 54 + .../policy_based_routing_tracing_connection.h | 20 + .../v1/mocks/mock_hub_connection.h | 106 + .../mock_policy_based_routing_connection.h | 28 + .../v1/policy_based_routing_connection.cc | 34 + .../v1/policy_based_routing_connection.h | 22 + .../internal/reachability_connection_impl.cc | 224 + .../internal/reachability_connection_impl.h | 40 + .../reachability_tracing_connection.cc | 108 + .../reachability_tracing_connection.h | 40 + .../v1/mocks/mock_reachability_connection.h | 53 + .../v1/reachability_connection.cc | 67 + .../v1/reachability_connection.h | 42 + .../network_security_connection_impl.cc | 504 +++ .../network_security_connection_impl.h | 90 + .../network_security_tracing_connection.cc | 231 + .../network_security_tracing_connection.h | 90 + .../mocks/mock_network_security_connection.h | 126 + .../v1/network_security_connection.cc | 147 + .../v1/network_security_connection.h | 88 + .../networkservices/v1/dep_connection.cc | 99 + .../cloud/networkservices/v1/dep_connection.h | 60 + .../v1/internal/dep_connection_impl.cc | 336 ++ .../v1/internal/dep_connection_impl.h | 60 + .../v1/internal/dep_tracing_connection.cc | 150 + .../v1/internal/dep_tracing_connection.h | 60 + .../network_services_connection_impl.cc | 1349 +++++- .../network_services_connection_impl.h | 212 + .../network_services_tracing_connection.cc | 557 +++ .../network_services_tracing_connection.h | 212 + .../v1/mocks/mock_dep_connection.h | 84 + .../mocks/mock_network_services_connection.h | 292 ++ .../v1/network_services_connection.cc | 365 ++ .../v1/network_services_connection.h | 205 + .../managed_notebook_connection_impl.cc | 528 +++ .../managed_notebook_connection_impl.h | 89 + .../managed_notebook_tracing_connection.cc | 240 + .../managed_notebook_tracing_connection.h | 89 + .../v1/internal/notebook_connection_impl.cc | 1351 +++++- .../v1/internal/notebook_connection_impl.h | 211 + .../internal/notebook_tracing_connection.cc | 556 +++ .../v1/internal/notebook_tracing_connection.h | 211 + .../v1/managed_notebook_connection.cc | 160 + .../v1/managed_notebook_connection.h | 82 + .../mocks/mock_managed_notebook_connection.h | 119 + .../v1/mocks/mock_notebook_connection.h | 280 ++ .../cloud/notebooks/v1/notebook_connection.cc | 368 ++ .../cloud/notebooks/v1/notebook_connection.h | 190 + .../v2/internal/notebook_connection_impl.cc | 477 ++ .../v2/internal/notebook_connection_impl.h | 81 + .../internal/notebook_tracing_connection.cc | 216 + .../v2/internal/notebook_tracing_connection.h | 81 + .../v2/mocks/mock_notebook_connection.h | 108 + .../cloud/notebooks/v2/notebook_connection.cc | 144 + .../cloud/notebooks/v2/notebook_connection.h | 74 + .../v1/fleet_routing_connection.cc | 16 + .../v1/fleet_routing_connection.h | 12 + .../internal/fleet_routing_connection_impl.cc | 55 + .../internal/fleet_routing_connection_impl.h | 9 + .../fleet_routing_tracing_connection.cc | 24 + .../fleet_routing_tracing_connection.h | 9 + .../v1/mocks/mock_fleet_routing_connection.h | 13 + .../orgpolicy/v2/org_policy_connection.h | 2 + .../v1/agent_endpoint_connection.h | 2 + .../os_config_zonal_connection_impl.cc | 169 + .../os_config_zonal_connection_impl.h | 31 + .../os_config_zonal_tracing_connection.cc | 76 + .../os_config_zonal_tracing_connection.h | 31 + .../mocks/mock_os_config_zonal_connection.h | 41 + .../cloud/osconfig/v1/os_config_connection.h | 2 + .../osconfig/v1/os_config_zonal_connection.cc | 49 + .../osconfig/v1/os_config_zonal_connection.h | 30 + google/cloud/oslogin/v1/os_login_connection.h | 2 + .../v1/internal/simulator_connection_impl.cc | 54 + .../v1/internal/simulator_connection_impl.h | 9 + .../internal/simulator_tracing_connection.cc | 24 + .../internal/simulator_tracing_connection.h | 9 + .../v1/mocks/mock_simulator_connection.h | 12 + .../v1/simulator_connection.cc | 15 + .../policysimulator/v1/simulator_connection.h | 10 + .../iam/v3/policy_troubleshooter_connection.h | 2 + .../v1/iam_checker_connection.h | 2 + .../v1/certificate_authority_connection.cc | 236 + .../v1/certificate_authority_connection.h | 142 + .../certificate_authority_connection_impl.cc | 820 +++- .../certificate_authority_connection_impl.h | 138 + ...ertificate_authority_tracing_connection.cc | 373 ++ ...certificate_authority_tracing_connection.h | 138 + .../mock_certificate_authority_connection.h | 204 + google/cloud/profiler/v2/export_connection.h | 2 + .../cloud/profiler/v2/profiler_connection.h | 2 + .../public_certificate_authority_connection.h | 2 + .../admin/subscription_admin_connection.h | 2 + .../pubsub/admin/topic_admin_connection.h | 2 + google/cloud/pubsub/schema_connection.h | 2 + google/cloud/pubsublite/admin_connection.cc | 16 + google/cloud/pubsublite/admin_connection.h | 11 + .../internal/admin_connection_impl.cc | 54 + .../internal/admin_connection_impl.h | 9 + .../internal/admin_tracing_connection.cc | 24 + .../internal/admin_tracing_connection.h | 9 + .../pubsublite/mocks/mock_admin_connection.h | 13 + .../cloud/pubsublite/topic_stats_connection.h | 2 + ...id_migration_assessment_connection_impl.cc | 392 ++ ...pid_migration_assessment_connection_impl.h | 63 + ...migration_assessment_tracing_connection.cc | 189 + ..._migration_assessment_tracing_connection.h | 63 + ...ck_rapid_migration_assessment_connection.h | 92 + .../rapid_migration_assessment_connection.cc | 118 + .../rapid_migration_assessment_connection.h | 72 + .../v1/recaptcha_enterprise_connection.h | 2 + .../recommender/v1/recommender_connection.h | 2 + .../v1/cloud_redis_cluster_connection.cc | 47 + .../v1/cloud_redis_cluster_connection.h | 26 + .../cloud_redis_cluster_connection_impl.cc | 158 + .../cloud_redis_cluster_connection_impl.h | 27 + .../cloud_redis_cluster_tracing_connection.cc | 72 + .../cloud_redis_cluster_tracing_connection.h | 27 + .../mock_cloud_redis_cluster_connection.h | 35 + .../cloud/redis/v1/cloud_redis_connection.cc | 121 + .../cloud/redis/v1/cloud_redis_connection.h | 66 + .../internal/cloud_redis_connection_impl.cc | 418 ++ .../v1/internal/cloud_redis_connection_impl.h | 66 + .../cloud_redis_tracing_connection.cc | 192 + .../internal/cloud_redis_tracing_connection.h | 66 + .../v1/mocks/mock_cloud_redis_connection.h | 90 + .../resourcemanager/v3/folders_connection.cc | 75 + .../resourcemanager/v3/folders_connection.h | 42 + .../v3/internal/folders_connection_impl.cc | 270 ++ .../v3/internal/folders_connection_impl.h | 45 + .../v3/internal/folders_tracing_connection.cc | 116 + .../v3/internal/folders_tracing_connection.h | 45 + .../v3/internal/projects_connection_impl.cc | 271 ++ .../v3/internal/projects_connection_impl.h | 45 + .../internal/projects_tracing_connection.cc | 119 + .../v3/internal/projects_tracing_connection.h | 45 + .../internal/tag_bindings_connection_impl.cc | 112 + .../internal/tag_bindings_connection_impl.h | 18 + .../tag_bindings_tracing_connection.cc | 50 + .../tag_bindings_tracing_connection.h | 18 + .../v3/internal/tag_holds_connection_impl.cc | 108 + .../v3/internal/tag_holds_connection_impl.h | 18 + .../internal/tag_holds_tracing_connection.cc | 48 + .../internal/tag_holds_tracing_connection.h | 18 + .../v3/internal/tag_keys_connection_impl.cc | 162 + .../v3/internal/tag_keys_connection_impl.h | 27 + .../internal/tag_keys_tracing_connection.cc | 69 + .../v3/internal/tag_keys_tracing_connection.h | 27 + .../v3/internal/tag_values_connection_impl.cc | 165 + .../v3/internal/tag_values_connection_impl.h | 27 + .../internal/tag_values_tracing_connection.cc | 72 + .../internal/tag_values_tracing_connection.h | 27 + .../v3/mocks/mock_folders_connection.h | 60 + .../v3/mocks/mock_projects_connection.h | 60 + .../v3/mocks/mock_tag_bindings_connection.h | 28 + .../v3/mocks/mock_tag_holds_connection.h | 26 + .../v3/mocks/mock_tag_keys_connection.h | 36 + .../v3/mocks/mock_tag_values_connection.h | 36 + .../v3/organizations_connection.h | 2 + .../resourcemanager/v3/projects_connection.cc | 75 + .../resourcemanager/v3/projects_connection.h | 43 + .../v3/tag_bindings_connection.cc | 32 + .../v3/tag_bindings_connection.h | 21 + .../v3/tag_holds_connection.cc | 30 + .../resourcemanager/v3/tag_holds_connection.h | 19 + .../resourcemanager/v3/tag_keys_connection.cc | 45 + .../resourcemanager/v3/tag_keys_connection.h | 26 + .../v3/tag_values_connection.cc | 45 + .../v3/tag_values_connection.h | 26 + .../v1/resource_settings_connection.h | 2 + .../cloud/retail/v2/analytics_connection.cc | 16 + google/cloud/retail/v2/analytics_connection.h | 11 + google/cloud/retail/v2/catalog_connection.h | 2 + .../cloud/retail/v2/completion_connection.cc | 16 + .../cloud/retail/v2/completion_connection.h | 11 + google/cloud/retail/v2/control_connection.h | 2 + .../v2/internal/analytics_connection_impl.cc | 54 + .../v2/internal/analytics_connection_impl.h | 10 + .../internal/analytics_tracing_connection.cc | 24 + .../internal/analytics_tracing_connection.h | 10 + .../v2/internal/completion_connection_impl.cc | 54 + .../v2/internal/completion_connection_impl.h | 10 + .../internal/completion_tracing_connection.cc | 24 + .../internal/completion_tracing_connection.h | 10 + .../v2/internal/model_connection_impl.cc | 104 + .../v2/internal/model_connection_impl.h | 16 + .../v2/internal/model_tracing_connection.cc | 48 + .../v2/internal/model_tracing_connection.h | 16 + .../v2/internal/product_connection_impl.cc | 379 ++ .../v2/internal/product_connection_impl.h | 63 + .../v2/internal/product_tracing_connection.cc | 168 + .../v2/internal/product_tracing_connection.h | 63 + .../v2/internal/user_event_connection_impl.cc | 162 + .../v2/internal/user_event_connection_impl.h | 27 + .../internal/user_event_tracing_connection.cc | 72 + .../internal/user_event_tracing_connection.h | 27 + .../v2/mocks/mock_analytics_connection.h | 14 + .../v2/mocks/mock_completion_connection.h | 13 + .../retail/v2/mocks/mock_model_connection.h | 21 + .../retail/v2/mocks/mock_product_connection.h | 89 + .../v2/mocks/mock_user_event_connection.h | 39 + google/cloud/retail/v2/model_connection.cc | 30 + google/cloud/retail/v2/model_connection.h | 18 + .../cloud/retail/v2/prediction_connection.h | 2 + google/cloud/retail/v2/product_connection.cc | 111 + google/cloud/retail/v2/product_connection.h | 62 + google/cloud/retail/v2/search_connection.h | 2 + .../retail/v2/serving_config_connection.h | 2 + .../cloud/retail/v2/user_event_connection.cc | 48 + .../cloud/retail/v2/user_event_connection.h | 26 + google/cloud/run/v2/executions_connection.cc | 30 + google/cloud/run/v2/executions_connection.h | 18 + .../v2/internal/executions_connection_impl.cc | 102 + .../v2/internal/executions_connection_impl.h | 16 + .../internal/executions_tracing_connection.cc | 48 + .../internal/executions_tracing_connection.h | 16 + .../run/v2/internal/jobs_connection_impl.cc | 196 + .../run/v2/internal/jobs_connection_impl.h | 32 + .../v2/internal/jobs_tracing_connection.cc | 80 + .../run/v2/internal/jobs_tracing_connection.h | 32 + .../v2/internal/revisions_connection_impl.cc | 51 + .../v2/internal/revisions_connection_impl.h | 8 + .../internal/revisions_tracing_connection.cc | 22 + .../internal/revisions_tracing_connection.h | 8 + .../v2/internal/services_connection_impl.cc | 150 + .../v2/internal/services_connection_impl.h | 24 + .../internal/services_tracing_connection.cc | 66 + .../v2/internal/services_tracing_connection.h | 24 + google/cloud/run/v2/jobs_connection.cc | 56 + google/cloud/run/v2/jobs_connection.h | 34 + .../run/v2/mocks/mock_executions_connection.h | 22 + .../cloud/run/v2/mocks/mock_jobs_connection.h | 40 + .../run/v2/mocks/mock_revisions_connection.h | 11 + .../run/v2/mocks/mock_services_connection.h | 30 + google/cloud/run/v2/revisions_connection.cc | 15 + google/cloud/run/v2/revisions_connection.h | 10 + google/cloud/run/v2/services_connection.cc | 45 + google/cloud/run/v2/services_connection.h | 26 + google/cloud/run/v2/tasks_connection.h | 2 + .../scheduler/v1/cloud_scheduler_connection.h | 2 + .../v1/secret_manager_connection.h | 2 + .../secure_source_manager_connection_impl.cc | 228 + .../secure_source_manager_connection_impl.h | 36 + ...ecure_source_manager_tracing_connection.cc | 104 + ...secure_source_manager_tracing_connection.h | 36 + .../mock_secure_source_manager_connection.h | 58 + .../v1/secure_source_manager_connection.cc | 64 + .../v1/secure_source_manager_connection.h | 40 + .../security_center_connection_impl.cc | 107 + .../security_center_connection_impl.h | 18 + .../security_center_tracing_connection.cc | 49 + .../security_center_tracing_connection.h | 18 + .../mocks/mock_security_center_connection.h | 28 + .../v1/security_center_connection.cc | 32 + .../v1/security_center_connection.h | 22 + .../security_center_connection_impl.cc | 53 + .../security_center_connection_impl.h | 9 + .../security_center_tracing_connection.cc | 24 + .../security_center_tracing_connection.h | 9 + .../mocks/mock_security_center_connection.h | 13 + .../v2/security_center_connection.cc | 16 + .../v2/security_center_connection.h | 12 + .../security_center_management_connection.h | 2 + .../v1/quota_controller_connection.h | 2 + .../v1/service_controller_connection.h | 2 + .../v2/service_controller_connection.h | 2 + .../servicedirectory/v1/lookup_connection.h | 2 + .../v1/registration_connection.h | 2 + .../v1/service_health_connection.h | 2 + .../service_manager_connection_impl.cc | 279 ++ .../service_manager_connection_impl.h | 47 + .../service_manager_tracing_connection.cc | 122 + .../service_manager_tracing_connection.h | 47 + .../mocks/mock_service_manager_connection.h | 67 + .../v1/service_manager_connection.cc | 80 + .../v1/service_manager_connection.h | 48 + .../internal/service_usage_connection_impl.cc | 162 + .../internal/service_usage_connection_impl.h | 27 + .../service_usage_tracing_connection.cc | 72 + .../service_usage_tracing_connection.h | 27 + .../v1/mocks/mock_service_usage_connection.h | 40 + .../v1/service_usage_connection.cc | 46 + .../v1/service_usage_connection.h | 28 + .../cloud/shell/v1/cloud_shell_connection.cc | 64 + .../cloud/shell/v1/cloud_shell_connection.h | 35 + .../internal/cloud_shell_connection_impl.cc | 214 + .../v1/internal/cloud_shell_connection_impl.h | 35 + .../cloud_shell_tracing_connection.cc | 96 + .../internal/cloud_shell_tracing_connection.h | 35 + .../v1/mocks/mock_cloud_shell_connection.h | 49 + .../admin/database_admin_connection.cc | 95 + .../spanner/admin/database_admin_connection.h | 55 + .../admin/instance_admin_connection.cc | 98 + .../spanner/admin/instance_admin_connection.h | 58 + .../database_admin_connection_impl.cc | 336 ++ .../internal/database_admin_connection_impl.h | 55 + .../database_admin_rest_connection_impl.cc | 330 ++ .../database_admin_rest_connection_impl.h | 55 + .../database_admin_tracing_connection.cc | 149 + .../database_admin_tracing_connection.h | 55 + .../instance_admin_connection_impl.cc | 336 ++ .../internal/instance_admin_connection_impl.h | 58 + .../instance_admin_rest_connection_impl.cc | 330 ++ .../instance_admin_rest_connection_impl.h | 58 + .../instance_admin_tracing_connection.cc | 150 + .../instance_admin_tracing_connection.h | 58 + .../mocks/mock_database_admin_connection.h | 78 + .../mocks/mock_instance_admin_connection.h | 80 + .../cloud/speech/v1/adaptation_connection.h | 2 + .../v1/internal/speech_connection_impl.cc | 55 + .../v1/internal/speech_connection_impl.h | 10 + .../v1/internal/speech_tracing_connection.cc | 24 + .../v1/internal/speech_tracing_connection.h | 10 + .../speech/v1/mocks/mock_speech_connection.h | 13 + google/cloud/speech/v1/speech_connection.cc | 15 + google/cloud/speech/v1/speech_connection.h | 11 + .../v2/internal/speech_connection_impl.cc | 679 +++ .../v2/internal/speech_connection_impl.h | 116 + .../v2/internal/speech_tracing_connection.cc | 310 ++ .../v2/internal/speech_tracing_connection.h | 116 + .../speech/v2/mocks/mock_speech_connection.h | 156 + google/cloud/speech/v2/speech_connection.cc | 195 + google/cloud/speech/v2/speech_connection.h | 106 + ...l_available_database_versions_connection.h | 2 + .../cloud/sql/v1/sql_backup_runs_connection.h | 2 + google/cloud/sql/v1/sql_connect_connection.h | 2 + .../cloud/sql/v1/sql_databases_connection.h | 2 + google/cloud/sql/v1/sql_events_connection.h | 2 + google/cloud/sql/v1/sql_flags_connection.h | 2 + .../sql/v1/sql_iam_policies_connection.h | 2 + .../sql/v1/sql_instance_names_connection.h | 2 + .../cloud/sql/v1/sql_instances_connection.h | 2 + .../cloud/sql/v1/sql_operations_connection.h | 2 + google/cloud/sql/v1/sql_regions_connection.h | 2 + .../cloud/sql/v1/sql_ssl_certs_connection.h | 2 + google/cloud/sql/v1/sql_tiers_connection.h | 2 + google/cloud/sql/v1/sql_users_connection.h | 2 + .../storage_control_connection_impl.cc | 52 + .../storage_control_connection_impl.h | 9 + .../storage_control_tracing_connection.cc | 24 + .../storage_control_tracing_connection.h | 9 + .../mocks/mock_storage_control_connection.h | 12 + .../v2/storage_control_connection.cc | 15 + .../v2/storage_control_connection.h | 10 + .../v1/storage_insights_connection.h | 2 + .../storage_transfer_connection_impl.cc | 54 + .../storage_transfer_connection_impl.h | 9 + .../storage_transfer_tracing_connection.cc | 24 + .../storage_transfer_tracing_connection.h | 9 + .../mocks/mock_storage_transfer_connection.h | 12 + .../v1/storage_transfer_connection.cc | 16 + .../v1/storage_transfer_connection.h | 10 + .../support/v2/case_attachment_connection.h | 2 + google/cloud/support/v2/case_connection.h | 2 + google/cloud/support/v2/comment_connection.h | 2 + google/cloud/talent/v4/company_connection.h | 2 + .../cloud/talent/v4/completion_connection.h | 2 + google/cloud/talent/v4/event_connection.h | 2 + .../talent/v4/internal/job_connection_impl.cc | 159 + .../talent/v4/internal/job_connection_impl.h | 27 + .../v4/internal/job_tracing_connection.cc | 72 + .../v4/internal/job_tracing_connection.h | 27 + google/cloud/talent/v4/job_connection.cc | 45 + google/cloud/talent/v4/job_connection.h | 26 + .../talent/v4/mocks/mock_job_connection.h | 39 + google/cloud/talent/v4/tenant_connection.h | 2 + .../cloud/tasks/v2/cloud_tasks_connection.h | 2 + .../telco_automation_connection_impl.cc | 222 + .../telco_automation_connection_impl.h | 38 + .../telco_automation_tracing_connection.cc | 102 + .../telco_automation_tracing_connection.h | 38 + .../mocks/mock_telco_automation_connection.h | 54 + .../v1/telco_automation_connection.cc | 66 + .../v1/telco_automation_connection.h | 39 + .../v1/text_to_speech_connection.h | 2 + ...imeseries_insights_controller_connection.h | 2 + .../tpu/v1/internal/tpu_connection_impl.cc | 250 ++ .../tpu/v1/internal/tpu_connection_impl.h | 40 + .../tpu/v1/internal/tpu_tracing_connection.cc | 101 + .../tpu/v1/internal/tpu_tracing_connection.h | 40 + .../cloud/tpu/v1/mocks/mock_tpu_connection.h | 50 + google/cloud/tpu/v1/tpu_connection.cc | 70 + google/cloud/tpu/v1/tpu_connection.h | 42 + .../tpu/v2/internal/tpu_connection_impl.cc | 251 ++ .../tpu/v2/internal/tpu_connection_impl.h | 40 + .../tpu/v2/internal/tpu_tracing_connection.cc | 101 + .../tpu/v2/internal/tpu_tracing_connection.h | 40 + .../cloud/tpu/v2/mocks/mock_tpu_connection.h | 51 + google/cloud/tpu/v2/tpu_connection.cc | 71 + google/cloud/tpu/v2/tpu_connection.h | 42 + google/cloud/trace/v1/trace_connection.h | 2 + google/cloud/trace/v2/trace_connection.h | 2 + .../internal/translation_connection_impl.cc | 222 + .../v3/internal/translation_connection_impl.h | 38 + .../translation_tracing_connection.cc | 97 + .../internal/translation_tracing_connection.h | 38 + .../v3/mocks/mock_translation_connection.h | 53 + .../translate/v3/translation_connection.cc | 64 + .../translate/v3/translation_connection.h | 38 + .../v1/internal/livestream_connection_impl.cc | 605 +++ .../v1/internal/livestream_connection_impl.h | 101 + .../internal/livestream_tracing_connection.cc | 264 ++ .../internal/livestream_tracing_connection.h | 101 + .../livestream/v1/livestream_connection.cc | 176 + .../livestream/v1/livestream_connection.h | 98 + .../v1/mocks/mock_livestream_connection.h | 139 + .../video_stitcher_connection_impl.cc | 663 +++ .../internal/video_stitcher_connection_impl.h | 108 + .../video_stitcher_tracing_connection.cc | 291 ++ .../video_stitcher_tracing_connection.h | 108 + .../v1/mocks/mock_video_stitcher_connection.h | 151 + .../stitcher/v1/video_stitcher_connection.cc | 192 + .../stitcher/v1/video_stitcher_connection.h | 108 + .../transcoder/v1/transcoder_connection.h | 2 + .../video_intelligence_connection_impl.cc | 55 + .../video_intelligence_connection_impl.h | 9 + .../video_intelligence_tracing_connection.cc | 26 + .../video_intelligence_tracing_connection.h | 9 + .../mock_video_intelligence_connection.h | 13 + .../v1/video_intelligence_connection.cc | 16 + .../v1/video_intelligence_connection.h | 12 + .../vision/v1/image_annotator_connection.cc | 32 + .../vision/v1/image_annotator_connection.h | 21 + .../image_annotator_connection_impl.cc | 108 + .../image_annotator_connection_impl.h | 20 + .../image_annotator_tracing_connection.cc | 48 + .../image_annotator_tracing_connection.h | 20 + .../product_search_connection_impl.cc | 107 + .../internal/product_search_connection_impl.h | 17 + .../product_search_tracing_connection.cc | 48 + .../product_search_tracing_connection.h | 17 + .../mocks/mock_image_annotator_connection.h | 28 + .../v1/mocks/mock_product_search_connection.h | 25 + .../vision/v1/product_search_connection.cc | 31 + .../vision/v1/product_search_connection.h | 18 + .../internal/vm_migration_connection_impl.cc | 1534 ++++++- .../internal/vm_migration_connection_impl.h | 248 ++ .../vm_migration_tracing_connection.cc | 653 +++ .../vm_migration_tracing_connection.h | 248 ++ .../v1/mocks/mock_vm_migration_connection.h | 351 ++ .../vmmigration/v1/vm_migration_connection.cc | 421 ++ .../vmmigration/v1/vm_migration_connection.h | 235 + .../internal/vmware_engine_connection_impl.cc | 2367 +++++++++- .../internal/vmware_engine_connection_impl.h | 375 ++ .../vmware_engine_tracing_connection.cc | 978 ++++- .../vmware_engine_tracing_connection.h | 375 ++ .../v1/mocks/mock_vmware_engine_connection.h | 526 +++ .../v1/vmware_engine_connection.cc | 624 +++ .../v1/vmware_engine_connection.h | 360 ++ .../v1/internal/vpc_access_connection_impl.cc | 107 + .../v1/internal/vpc_access_connection_impl.h | 18 + .../internal/vpc_access_tracing_connection.cc | 48 + .../internal/vpc_access_tracing_connection.h | 18 + .../v1/mocks/mock_vpc_access_connection.h | 24 + .../vpcaccess/v1/vpc_access_connection.cc | 32 + .../vpcaccess/v1/vpc_access_connection.h | 18 + .../v1/internal/web_risk_connection_impl.cc | 52 + .../v1/internal/web_risk_connection_impl.h | 8 + .../internal/web_risk_tracing_connection.cc | 24 + .../v1/internal/web_risk_tracing_connection.h | 8 + .../v1/mocks/mock_web_risk_connection.h | 11 + .../cloud/webrisk/v1/web_risk_connection.cc | 15 + google/cloud/webrisk/v1/web_risk_connection.h | 10 + .../v1/web_security_scanner_connection.h | 2 + .../executions/v1/executions_connection.h | 2 + .../v1/internal/workflows_connection_impl.cc | 160 + .../v1/internal/workflows_connection_impl.h | 27 + .../internal/workflows_tracing_connection.cc | 72 + .../internal/workflows_tracing_connection.h | 27 + .../v1/mocks/mock_workflows_connection.h | 36 + .../workflows/v1/workflows_connection.cc | 45 + .../cloud/workflows/v1/workflows_connection.h | 26 + .../internal/workstations_connection_impl.cc | 603 +++ .../internal/workstations_connection_impl.h | 105 + .../workstations_tracing_connection.cc | 270 ++ .../workstations_tracing_connection.h | 105 + .../v1/mocks/mock_workstations_connection.h | 144 + .../v1/workstations_connection.cc | 176 + .../workstations/v1/workstations_connection.h | 96 + 1996 files changed, 204821 insertions(+), 1481 deletions(-) diff --git a/google/cloud/accessapproval/v1/access_approval_connection.h b/google/cloud/accessapproval/v1/access_approval_connection.h index 613727bf693d7..e09c865523060 100644 --- a/google/cloud/accessapproval/v1/access_approval_connection.h +++ b/google/cloud/accessapproval/v1/access_approval_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/accessapproval/v1/access_approval_connection_idempotency_policy.h" #include "google/cloud/accessapproval/v1/internal/access_approval_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/accesscontextmanager/v1/access_context_manager_connection.cc b/google/cloud/accesscontextmanager/v1/access_context_manager_connection.cc index ea3ca9bf9d832..f0bbd9dbd7931 100644 --- a/google/cloud/accesscontextmanager/v1/access_context_manager_connection.cc +++ b/google/cloud/accesscontextmanager/v1/access_context_manager_connection.cc @@ -60,6 +60,22 @@ AccessContextManagerConnection::CreateAccessPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AccessContextManagerConnection::CreateAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::AccessPolicy const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AccessContextManagerConnection::CreateAccessPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AccessContextManagerConnection::UpdateAccessPolicy( google::identity::accesscontextmanager::v1:: @@ -69,6 +85,23 @@ AccessContextManagerConnection::UpdateAccessPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AccessContextManagerConnection::UpdateAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateAccessPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AccessContextManagerConnection::UpdateAccessPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AccessContextManagerConnection::DeleteAccessPolicy( @@ -80,6 +113,25 @@ AccessContextManagerConnection::DeleteAccessPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AccessContextManagerConnection::DeleteAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteAccessPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AccessContextManagerConnection::DeleteAccessPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange AccessContextManagerConnection::ListAccessLevels( google::identity::accesscontextmanager::v1:: @@ -103,6 +155,23 @@ AccessContextManagerConnection::CreateAccessLevel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AccessContextManagerConnection::CreateAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateAccessLevelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AccessContextManagerConnection::CreateAccessLevel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AccessContextManagerConnection::UpdateAccessLevel( google::identity::accesscontextmanager::v1:: @@ -112,6 +181,23 @@ AccessContextManagerConnection::UpdateAccessLevel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AccessContextManagerConnection::UpdateAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateAccessLevelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AccessContextManagerConnection::UpdateAccessLevel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AccessContextManagerConnection::DeleteAccessLevel( @@ -123,6 +209,25 @@ AccessContextManagerConnection::DeleteAccessLevel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AccessContextManagerConnection::DeleteAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteAccessLevelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AccessContextManagerConnection::DeleteAccessLevel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AccessContextManagerConnection::ReplaceAccessLevels( @@ -133,6 +238,24 @@ AccessContextManagerConnection::ReplaceAccessLevels( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AccessContextManagerConnection::ReplaceAccessLevels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + ReplaceAccessLevelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AccessContextManagerConnection::ReplaceAccessLevels( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange AccessContextManagerConnection::ListServicePerimeters( google::identity::accesscontextmanager::v1:: @@ -157,6 +280,23 @@ AccessContextManagerConnection::CreateServicePerimeter( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AccessContextManagerConnection::CreateServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateServicePerimeterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AccessContextManagerConnection::CreateServicePerimeter( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AccessContextManagerConnection::UpdateServicePerimeter( google::identity::accesscontextmanager::v1:: @@ -166,6 +306,23 @@ AccessContextManagerConnection::UpdateServicePerimeter( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AccessContextManagerConnection::UpdateServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateServicePerimeterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AccessContextManagerConnection::UpdateServicePerimeter( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AccessContextManagerConnection::DeleteServicePerimeter( @@ -177,6 +334,25 @@ AccessContextManagerConnection::DeleteServicePerimeter( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AccessContextManagerConnection::DeleteServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteServicePerimeterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AccessContextManagerConnection::DeleteServicePerimeter( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AccessContextManagerConnection::ReplaceServicePerimeters( @@ -188,6 +364,25 @@ AccessContextManagerConnection::ReplaceServicePerimeters( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AccessContextManagerConnection::ReplaceServicePerimeters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + ReplaceServicePerimetersRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AccessContextManagerConnection::ReplaceServicePerimeters( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AccessContextManagerConnection::CommitServicePerimeters( @@ -199,6 +394,25 @@ AccessContextManagerConnection::CommitServicePerimeters( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AccessContextManagerConnection::CommitServicePerimeters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CommitServicePerimetersRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AccessContextManagerConnection::CommitServicePerimeters( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange AccessContextManagerConnection::ListGcpUserAccessBindings( google::identity::accesscontextmanager::v1:: @@ -224,6 +438,24 @@ AccessContextManagerConnection::CreateGcpUserAccessBinding( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AccessContextManagerConnection::CreateGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateGcpUserAccessBindingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future< + StatusOr> +AccessContextManagerConnection::CreateGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future< StatusOr> AccessContextManagerConnection::UpdateGcpUserAccessBinding( @@ -234,6 +466,24 @@ AccessContextManagerConnection::UpdateGcpUserAccessBinding( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AccessContextManagerConnection::UpdateGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateGcpUserAccessBindingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future< + StatusOr> +AccessContextManagerConnection::UpdateGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AccessContextManagerConnection::DeleteGcpUserAccessBinding( @@ -245,6 +495,25 @@ AccessContextManagerConnection::DeleteGcpUserAccessBinding( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AccessContextManagerConnection::DeleteGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteGcpUserAccessBindingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AccessContextManagerConnection::DeleteGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AccessContextManagerConnection::SetIamPolicy( google::iam::v1::SetIamPolicyRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); diff --git a/google/cloud/accesscontextmanager/v1/access_context_manager_connection.h b/google/cloud/accesscontextmanager/v1/access_context_manager_connection.h index 972f61f090595..834440b1c342c 100644 --- a/google/cloud/accesscontextmanager/v1/access_context_manager_connection.h +++ b/google/cloud/accesscontextmanager/v1/access_context_manager_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/accesscontextmanager/v1/access_context_manager_connection_idempotency_policy.h" #include "google/cloud/accesscontextmanager/v1/internal/access_context_manager_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -205,16 +207,45 @@ class AccessContextManagerConnection { CreateAccessPolicy( google::identity::accesscontextmanager::v1::AccessPolicy const& request); + virtual StatusOr CreateAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::AccessPolicy const& request); + + virtual future< + StatusOr> + CreateAccessPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UpdateAccessPolicy(google::identity::accesscontextmanager::v1:: UpdateAccessPolicyRequest const& request); + virtual StatusOr UpdateAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateAccessPolicyRequest const& request); + + virtual future< + StatusOr> + UpdateAccessPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteAccessPolicy(google::identity::accesscontextmanager::v1:: DeleteAccessPolicyRequest const& request); + virtual StatusOr DeleteAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteAccessPolicyRequest const& request); + + virtual future> + DeleteAccessPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListAccessLevels( google::identity::accesscontextmanager::v1::ListAccessLevelsRequest @@ -230,21 +261,61 @@ class AccessContextManagerConnection { CreateAccessLevel(google::identity::accesscontextmanager::v1:: CreateAccessLevelRequest const& request); + virtual StatusOr CreateAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateAccessLevelRequest const& request); + + virtual future< + StatusOr> + CreateAccessLevel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UpdateAccessLevel(google::identity::accesscontextmanager::v1:: UpdateAccessLevelRequest const& request); + virtual StatusOr UpdateAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateAccessLevelRequest const& request); + + virtual future< + StatusOr> + UpdateAccessLevel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteAccessLevel(google::identity::accesscontextmanager::v1:: DeleteAccessLevelRequest const& request); + virtual StatusOr DeleteAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteAccessLevelRequest const& request); + + virtual future> + DeleteAccessLevel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ReplaceAccessLevels(google::identity::accesscontextmanager::v1:: ReplaceAccessLevelsRequest const& request); + virtual StatusOr ReplaceAccessLevels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + ReplaceAccessLevelsRequest const& request); + + virtual future> + ReplaceAccessLevels(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange< google::identity::accesscontextmanager::v1::ServicePerimeter> ListServicePerimeters( @@ -260,26 +331,76 @@ class AccessContextManagerConnection { CreateServicePerimeter(google::identity::accesscontextmanager::v1:: CreateServicePerimeterRequest const& request); + virtual StatusOr CreateServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateServicePerimeterRequest const& request); + + virtual future< + StatusOr> + CreateServicePerimeter(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UpdateServicePerimeter(google::identity::accesscontextmanager::v1:: UpdateServicePerimeterRequest const& request); + virtual StatusOr UpdateServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateServicePerimeterRequest const& request); + + virtual future< + StatusOr> + UpdateServicePerimeter(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteServicePerimeter(google::identity::accesscontextmanager::v1:: DeleteServicePerimeterRequest const& request); + virtual StatusOr DeleteServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteServicePerimeterRequest const& request); + + virtual future> + DeleteServicePerimeter(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ReplaceServicePerimeters(google::identity::accesscontextmanager::v1:: ReplaceServicePerimetersRequest const& request); + virtual StatusOr ReplaceServicePerimeters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + ReplaceServicePerimetersRequest const& request); + + virtual future> + ReplaceServicePerimeters(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CommitServicePerimeters(google::identity::accesscontextmanager::v1:: CommitServicePerimetersRequest const& request); + virtual StatusOr CommitServicePerimeters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CommitServicePerimetersRequest const& request); + + virtual future> + CommitServicePerimeters(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange< google::identity::accesscontextmanager::v1::GcpUserAccessBinding> ListGcpUserAccessBindings(google::identity::accesscontextmanager::v1:: @@ -296,18 +417,48 @@ class AccessContextManagerConnection { google::identity::accesscontextmanager::v1:: CreateGcpUserAccessBindingRequest const& request); + virtual StatusOr CreateGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateGcpUserAccessBindingRequest const& request); + + virtual future> + CreateGcpUserAccessBinding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateGcpUserAccessBinding( google::identity::accesscontextmanager::v1:: UpdateGcpUserAccessBindingRequest const& request); + virtual StatusOr UpdateGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateGcpUserAccessBindingRequest const& request); + + virtual future> + UpdateGcpUserAccessBinding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteGcpUserAccessBinding( google::identity::accesscontextmanager::v1:: DeleteGcpUserAccessBindingRequest const& request); + virtual StatusOr DeleteGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteGcpUserAccessBindingRequest const& request); + + virtual future> + DeleteGcpUserAccessBinding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr SetIamPolicy( google::iam::v1::SetIamPolicyRequest const& request); diff --git a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.cc b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.cc index 4b3157baf112c..9300246eca74e 100644 --- a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.cc +++ b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.cc @@ -166,6 +166,61 @@ AccessContextManagerConnectionImpl::CreateAccessPolicy( polling_policy(*current), __func__); } +StatusOr +AccessContextManagerConnectionImpl::CreateAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::AccessPolicy const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAccessPolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::identity::accesscontextmanager::v1::AccessPolicy const& + request) { + return stub_->CreateAccessPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +AccessContextManagerConnectionImpl::CreateAccessPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAccessPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::identity::accesscontextmanager::v1::AccessPolicy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::identity::accesscontextmanager::v1::AccessPolicy>, + polling_policy(*current), __func__); +} + future> AccessContextManagerConnectionImpl::UpdateAccessPolicy( google::identity::accesscontextmanager::v1::UpdateAccessPolicyRequest const& @@ -206,6 +261,62 @@ AccessContextManagerConnectionImpl::UpdateAccessPolicy( polling_policy(*current), __func__); } +StatusOr +AccessContextManagerConnectionImpl::UpdateAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::UpdateAccessPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAccessPolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::identity::accesscontextmanager::v1:: + UpdateAccessPolicyRequest const& request) { + return stub_->UpdateAccessPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +AccessContextManagerConnectionImpl::UpdateAccessPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateAccessPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::identity::accesscontextmanager::v1::AccessPolicy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::identity::accesscontextmanager::v1::AccessPolicy>, + polling_policy(*current), __func__); +} + future> AccessContextManagerConnectionImpl::DeleteAccessPolicy( @@ -249,6 +360,66 @@ AccessContextManagerConnectionImpl::DeleteAccessPolicy( polling_policy(*current), __func__); } +StatusOr +AccessContextManagerConnectionImpl::DeleteAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::DeleteAccessPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAccessPolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::identity::accesscontextmanager::v1:: + DeleteAccessPolicyRequest const& request) { + return stub_->DeleteAccessPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +AccessContextManagerConnectionImpl::DeleteAccessPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteAccessPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::identity::accesscontextmanager::v1:: + AccessContextManagerOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::identity::accesscontextmanager::v1:: + AccessContextManagerOperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange AccessContextManagerConnectionImpl::ListAccessLevels( google::identity::accesscontextmanager::v1::ListAccessLevelsRequest @@ -342,6 +513,62 @@ AccessContextManagerConnectionImpl::CreateAccessLevel( polling_policy(*current), __func__); } +StatusOr +AccessContextManagerConnectionImpl::CreateAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::CreateAccessLevelRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAccessLevel(request), + [this](grpc::ClientContext& context, Options const& options, + google::identity::accesscontextmanager::v1:: + CreateAccessLevelRequest const& request) { + return stub_->CreateAccessLevel(context, options, request); + }, + *current, request, __func__); +} + +future> +AccessContextManagerConnectionImpl::CreateAccessLevel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAccessLevel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::identity::accesscontextmanager::v1::AccessLevel>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::identity::accesscontextmanager::v1::AccessLevel>, + polling_policy(*current), __func__); +} + future> AccessContextManagerConnectionImpl::UpdateAccessLevel( google::identity::accesscontextmanager::v1::UpdateAccessLevelRequest const& @@ -382,6 +609,62 @@ AccessContextManagerConnectionImpl::UpdateAccessLevel( polling_policy(*current), __func__); } +StatusOr +AccessContextManagerConnectionImpl::UpdateAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::UpdateAccessLevelRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAccessLevel(request), + [this](grpc::ClientContext& context, Options const& options, + google::identity::accesscontextmanager::v1:: + UpdateAccessLevelRequest const& request) { + return stub_->UpdateAccessLevel(context, options, request); + }, + *current, request, __func__); +} + +future> +AccessContextManagerConnectionImpl::UpdateAccessLevel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateAccessLevel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::identity::accesscontextmanager::v1::AccessLevel>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::identity::accesscontextmanager::v1::AccessLevel>, + polling_policy(*current), __func__); +} + future> AccessContextManagerConnectionImpl::DeleteAccessLevel( @@ -425,6 +708,66 @@ AccessContextManagerConnectionImpl::DeleteAccessLevel( polling_policy(*current), __func__); } +StatusOr +AccessContextManagerConnectionImpl::DeleteAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::DeleteAccessLevelRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAccessLevel(request), + [this](grpc::ClientContext& context, Options const& options, + google::identity::accesscontextmanager::v1:: + DeleteAccessLevelRequest const& request) { + return stub_->DeleteAccessLevel(context, options, request); + }, + *current, request, __func__); +} + +future> +AccessContextManagerConnectionImpl::DeleteAccessLevel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteAccessLevel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::identity::accesscontextmanager::v1:: + AccessContextManagerOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::identity::accesscontextmanager::v1:: + AccessContextManagerOperationMetadata>, + polling_policy(*current), __func__); +} + future> AccessContextManagerConnectionImpl::ReplaceAccessLevels( @@ -467,6 +810,64 @@ AccessContextManagerConnectionImpl::ReplaceAccessLevels( polling_policy(*current), __func__); } +StatusOr +AccessContextManagerConnectionImpl::ReplaceAccessLevels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + ReplaceAccessLevelsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ReplaceAccessLevels(request), + [this](grpc::ClientContext& context, Options const& options, + google::identity::accesscontextmanager::v1:: + ReplaceAccessLevelsRequest const& request) { + return stub_->ReplaceAccessLevels(context, options, request); + }, + *current, request, __func__); +} + +future> +AccessContextManagerConnectionImpl::ReplaceAccessLevels( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ReplaceAccessLevels", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::identity::accesscontextmanager::v1::ReplaceAccessLevelsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::identity::accesscontextmanager::v1:: + ReplaceAccessLevelsResponse>, + polling_policy(*current), __func__); +} + StreamRange AccessContextManagerConnectionImpl::ListServicePerimeters( google::identity::accesscontextmanager::v1::ListServicePerimetersRequest @@ -558,27 +959,181 @@ AccessContextManagerConnectionImpl::CreateServicePerimeter( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::identity::accesscontextmanager::v1::ServicePerimeter>, - retry_policy(*current), backoff_policy(*current), idempotent, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +AccessContextManagerConnectionImpl::CreateServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateServicePerimeterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateServicePerimeter(request), + [this](grpc::ClientContext& context, Options const& options, + google::identity::accesscontextmanager::v1:: + CreateServicePerimeterRequest const& request) { + return stub_->CreateServicePerimeter(context, options, request); + }, + *current, request, __func__); +} + +future> +AccessContextManagerConnectionImpl::CreateServicePerimeter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateServicePerimeter", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::identity::accesscontextmanager::v1::ServicePerimeter>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::identity::accesscontextmanager::v1::ServicePerimeter>, + polling_policy(*current), __func__); +} + +future> +AccessContextManagerConnectionImpl::UpdateServicePerimeter( + google::identity::accesscontextmanager::v1:: + UpdateServicePerimeterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->UpdateServicePerimeter(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::identity::accesscontextmanager::v1::ServicePerimeter>( + background_->cq(), current, std::move(request_copy), + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::identity::accesscontextmanager::v1:: + UpdateServicePerimeterRequest const& request) { + return stub->AsyncUpdateServicePerimeter(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::identity::accesscontextmanager::v1::ServicePerimeter>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +AccessContextManagerConnectionImpl::UpdateServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateServicePerimeterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateServicePerimeter(request), + [this](grpc::ClientContext& context, Options const& options, + google::identity::accesscontextmanager::v1:: + UpdateServicePerimeterRequest const& request) { + return stub_->UpdateServicePerimeter(context, options, request); + }, + *current, request, __func__); +} + +future> +AccessContextManagerConnectionImpl::UpdateServicePerimeter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateServicePerimeter", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::identity::accesscontextmanager::v1::ServicePerimeter>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::identity::accesscontextmanager::v1::ServicePerimeter>, polling_policy(*current), __func__); } -future> -AccessContextManagerConnectionImpl::UpdateServicePerimeter( +future> +AccessContextManagerConnectionImpl::DeleteServicePerimeter( google::identity::accesscontextmanager::v1:: - UpdateServicePerimeterRequest const& request) { + DeleteServicePerimeterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); auto request_copy = request; auto const idempotent = - idempotency_policy(*current)->UpdateServicePerimeter(request_copy); + idempotency_policy(*current)->DeleteServicePerimeter(request_copy); return google::cloud::internal::AsyncLongRunningOperation< - google::identity::accesscontextmanager::v1::ServicePerimeter>( + google::identity::accesscontextmanager::v1:: + AccessContextManagerOperationMetadata>( background_->cq(), current, std::move(request_copy), [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, google::identity::accesscontextmanager::v1:: - UpdateServicePerimeterRequest const& request) { - return stub->AsyncUpdateServicePerimeter(cq, std::move(context), + DeleteServicePerimeterRequest const& request) { + return stub->AsyncDeleteServicePerimeter(cq, std::move(context), std::move(options), request); }, [stub = stub_](google::cloud::CompletionQueue& cq, @@ -596,33 +1151,52 @@ AccessContextManagerConnectionImpl::UpdateServicePerimeter( return stub->AsyncCancelOperation(cq, std::move(context), std::move(options), request); }, - &google::cloud::internal::ExtractLongRunningResultResponse< - google::identity::accesscontextmanager::v1::ServicePerimeter>, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::identity::accesscontextmanager::v1:: + AccessContextManagerOperationMetadata>, retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } -future> +StatusOr AccessContextManagerConnectionImpl::DeleteServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteServicePerimeterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->DeleteServicePerimeter(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteServicePerimeter(request), + [this](grpc::ClientContext& context, Options const& options, + google::identity::accesscontextmanager::v1:: + DeleteServicePerimeterRequest const& request) { + return stub_->DeleteServicePerimeter(context, options, request); + }, + *current, request, __func__); +} + +future> +AccessContextManagerConnectionImpl::DeleteServicePerimeter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteServicePerimeter", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< google::identity::accesscontextmanager::v1:: AccessContextManagerOperationMetadata>( - background_->cq(), current, std::move(request_copy), - [stub = stub_](google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::identity::accesscontextmanager::v1:: - DeleteServicePerimeterRequest const& request) { - return stub->AsyncDeleteServicePerimeter(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -641,7 +1215,6 @@ AccessContextManagerConnectionImpl::DeleteServicePerimeter( &google::cloud::internal::ExtractLongRunningResultMetadata< google::identity::accesscontextmanager::v1:: AccessContextManagerOperationMetadata>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } @@ -688,6 +1261,66 @@ AccessContextManagerConnectionImpl::ReplaceServicePerimeters( polling_policy(*current), __func__); } +StatusOr +AccessContextManagerConnectionImpl::ReplaceServicePerimeters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + ReplaceServicePerimetersRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ReplaceServicePerimeters(request), + [this](grpc::ClientContext& context, Options const& options, + google::identity::accesscontextmanager::v1:: + ReplaceServicePerimetersRequest const& request) { + return stub_->ReplaceServicePerimeters(context, options, request); + }, + *current, request, __func__); +} + +future> +AccessContextManagerConnectionImpl::ReplaceServicePerimeters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ReplaceServicePerimeters", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::identity::accesscontextmanager::v1:: + ReplaceServicePerimetersResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::identity::accesscontextmanager::v1:: + ReplaceServicePerimetersResponse>, + polling_policy(*current), __func__); +} + future> AccessContextManagerConnectionImpl::CommitServicePerimeters( @@ -731,6 +1364,65 @@ AccessContextManagerConnectionImpl::CommitServicePerimeters( polling_policy(*current), __func__); } +StatusOr +AccessContextManagerConnectionImpl::CommitServicePerimeters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CommitServicePerimetersRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CommitServicePerimeters(request), + [this](grpc::ClientContext& context, Options const& options, + google::identity::accesscontextmanager::v1:: + CommitServicePerimetersRequest const& request) { + return stub_->CommitServicePerimeters(context, options, request); + }, + *current, request, __func__); +} + +future> +AccessContextManagerConnectionImpl::CommitServicePerimeters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CommitServicePerimeters", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::identity::accesscontextmanager::v1:: + CommitServicePerimetersResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::identity::accesscontextmanager::v1:: + CommitServicePerimetersResponse>, + polling_policy(*current), __func__); +} + StreamRange AccessContextManagerConnectionImpl::ListGcpUserAccessBindings( google::identity::accesscontextmanager::v1::ListGcpUserAccessBindingsRequest @@ -828,6 +1520,63 @@ AccessContextManagerConnectionImpl::CreateGcpUserAccessBinding( polling_policy(*current), __func__); } +StatusOr +AccessContextManagerConnectionImpl::CreateGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateGcpUserAccessBindingRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateGcpUserAccessBinding(request), + [this](grpc::ClientContext& context, Options const& options, + google::identity::accesscontextmanager::v1:: + CreateGcpUserAccessBindingRequest const& request) { + return stub_->CreateGcpUserAccessBinding(context, options, request); + }, + *current, request, __func__); +} + +future< + StatusOr> +AccessContextManagerConnectionImpl::CreateGcpUserAccessBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateGcpUserAccessBinding", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::identity::accesscontextmanager::v1::GcpUserAccessBinding>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::identity::accesscontextmanager::v1::GcpUserAccessBinding>, + polling_policy(*current), __func__); +} + future< StatusOr> AccessContextManagerConnectionImpl::UpdateGcpUserAccessBinding( @@ -869,6 +1618,63 @@ AccessContextManagerConnectionImpl::UpdateGcpUserAccessBinding( polling_policy(*current), __func__); } +StatusOr +AccessContextManagerConnectionImpl::UpdateGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateGcpUserAccessBindingRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateGcpUserAccessBinding(request), + [this](grpc::ClientContext& context, Options const& options, + google::identity::accesscontextmanager::v1:: + UpdateGcpUserAccessBindingRequest const& request) { + return stub_->UpdateGcpUserAccessBinding(context, options, request); + }, + *current, request, __func__); +} + +future< + StatusOr> +AccessContextManagerConnectionImpl::UpdateGcpUserAccessBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateGcpUserAccessBinding", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::identity::accesscontextmanager::v1::GcpUserAccessBinding>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::identity::accesscontextmanager::v1::GcpUserAccessBinding>, + polling_policy(*current), __func__); +} + future> AccessContextManagerConnectionImpl::DeleteGcpUserAccessBinding( @@ -912,6 +1718,66 @@ AccessContextManagerConnectionImpl::DeleteGcpUserAccessBinding( polling_policy(*current), __func__); } +StatusOr +AccessContextManagerConnectionImpl::DeleteGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteGcpUserAccessBindingRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteGcpUserAccessBinding(request), + [this](grpc::ClientContext& context, Options const& options, + google::identity::accesscontextmanager::v1:: + DeleteGcpUserAccessBindingRequest const& request) { + return stub_->DeleteGcpUserAccessBinding(context, options, request); + }, + *current, request, __func__); +} + +future> +AccessContextManagerConnectionImpl::DeleteGcpUserAccessBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteGcpUserAccessBinding", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::identity::accesscontextmanager::v1:: + GcpUserAccessBindingOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::identity::accesscontextmanager::v1:: + GcpUserAccessBindingOperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr AccessContextManagerConnectionImpl::SetIamPolicy( google::iam::v1::SetIamPolicyRequest const& request) { diff --git a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.h b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.h index 43a8768a60698..0b7cbae2b12ac 100644 --- a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.h +++ b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.h @@ -69,15 +69,43 @@ class AccessContextManagerConnectionImpl google::identity::accesscontextmanager::v1::AccessPolicy const& request) override; + StatusOr CreateAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::AccessPolicy const& request) + override; + + future> + CreateAccessPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAccessPolicy(google::identity::accesscontextmanager::v1:: UpdateAccessPolicyRequest const& request) override; + StatusOr UpdateAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateAccessPolicyRequest const& request) override; + + future> + UpdateAccessPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAccessPolicy(google::identity::accesscontextmanager::v1:: DeleteAccessPolicyRequest const& request) override; + StatusOr DeleteAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteAccessPolicyRequest const& request) override; + + future> + DeleteAccessPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListAccessLevels( google::identity::accesscontextmanager::v1::ListAccessLevelsRequest @@ -92,20 +120,58 @@ class AccessContextManagerConnectionImpl CreateAccessLevel(google::identity::accesscontextmanager::v1:: CreateAccessLevelRequest const& request) override; + StatusOr CreateAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateAccessLevelRequest const& request) override; + + future> + CreateAccessLevel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAccessLevel(google::identity::accesscontextmanager::v1:: UpdateAccessLevelRequest const& request) override; + StatusOr UpdateAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateAccessLevelRequest const& request) override; + + future> + UpdateAccessLevel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAccessLevel(google::identity::accesscontextmanager::v1:: DeleteAccessLevelRequest const& request) override; + StatusOr DeleteAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteAccessLevelRequest const& request) override; + + future> + DeleteAccessLevel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReplaceAccessLevels(google::identity::accesscontextmanager::v1:: ReplaceAccessLevelsRequest const& request) override; + StatusOr ReplaceAccessLevels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + ReplaceAccessLevelsRequest const& request) override; + + future> + ReplaceAccessLevels(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListServicePerimeters( google::identity::accesscontextmanager::v1::ListServicePerimetersRequest @@ -120,29 +186,82 @@ class AccessContextManagerConnectionImpl google::identity::accesscontextmanager::v1:: CreateServicePerimeterRequest const& request) override; + StatusOr CreateServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateServicePerimeterRequest const& request) override; + + future> + CreateServicePerimeter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateServicePerimeter( google::identity::accesscontextmanager::v1:: UpdateServicePerimeterRequest const& request) override; + StatusOr UpdateServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateServicePerimeterRequest const& request) override; + + future> + UpdateServicePerimeter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteServicePerimeter( google::identity::accesscontextmanager::v1:: DeleteServicePerimeterRequest const& request) override; + StatusOr DeleteServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteServicePerimeterRequest const& request) override; + + future> + DeleteServicePerimeter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReplaceServicePerimeters( google::identity::accesscontextmanager::v1:: ReplaceServicePerimetersRequest const& request) override; + StatusOr ReplaceServicePerimeters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + ReplaceServicePerimetersRequest const& request) override; + + future> + ReplaceServicePerimeters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CommitServicePerimeters( google::identity::accesscontextmanager::v1:: CommitServicePerimetersRequest const& request) override; + StatusOr CommitServicePerimeters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CommitServicePerimetersRequest const& request) override; + + future> + CommitServicePerimeters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListGcpUserAccessBindings( google::identity::accesscontextmanager::v1:: @@ -159,18 +278,51 @@ class AccessContextManagerConnectionImpl google::identity::accesscontextmanager::v1:: CreateGcpUserAccessBindingRequest const& request) override; + StatusOr CreateGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateGcpUserAccessBindingRequest const& request) override; + + future> + CreateGcpUserAccessBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateGcpUserAccessBinding( google::identity::accesscontextmanager::v1:: UpdateGcpUserAccessBindingRequest const& request) override; + StatusOr UpdateGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateGcpUserAccessBindingRequest const& request) override; + + future> + UpdateGcpUserAccessBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteGcpUserAccessBinding( google::identity::accesscontextmanager::v1:: DeleteGcpUserAccessBindingRequest const& request) override; + StatusOr DeleteGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteGcpUserAccessBindingRequest const& request) override; + + future> + DeleteGcpUserAccessBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr SetIamPolicy( google::iam::v1::SetIamPolicyRequest const& request) override; diff --git a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.cc b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.cc index d26c2322b76aa..07392ff3247f9 100644 --- a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.cc +++ b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.cc @@ -70,6 +70,32 @@ AccessContextManagerTracingConnection::CreateAccessPolicy( child_->CreateAccessPolicy(request)); } +StatusOr +AccessContextManagerTracingConnection::CreateAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::AccessPolicy const& request) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "CreateAccessPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateAccessPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AccessContextManagerTracingConnection::CreateAccessPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "CreateAccessPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateAccessPolicy(google::cloud::ExperimentalTag{}, operation)); +} + future> AccessContextManagerTracingConnection::UpdateAccessPolicy( google::identity::accesscontextmanager::v1::UpdateAccessPolicyRequest const& @@ -82,6 +108,33 @@ AccessContextManagerTracingConnection::UpdateAccessPolicy( child_->UpdateAccessPolicy(request)); } +StatusOr +AccessContextManagerTracingConnection::UpdateAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::UpdateAccessPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "UpdateAccessPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateAccessPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AccessContextManagerTracingConnection::UpdateAccessPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "UpdateAccessPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateAccessPolicy(google::cloud::ExperimentalTag{}, operation)); +} + future> AccessContextManagerTracingConnection::DeleteAccessPolicy( @@ -95,6 +148,34 @@ AccessContextManagerTracingConnection::DeleteAccessPolicy( child_->DeleteAccessPolicy(request)); } +StatusOr +AccessContextManagerTracingConnection::DeleteAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::DeleteAccessPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "DeleteAccessPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAccessPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AccessContextManagerTracingConnection::DeleteAccessPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "DeleteAccessPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAccessPolicy(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange AccessContextManagerTracingConnection::ListAccessLevels( google::identity::accesscontextmanager::v1::ListAccessLevelsRequest @@ -131,6 +212,33 @@ AccessContextManagerTracingConnection::CreateAccessLevel( return internal::EndSpan(std::move(span), child_->CreateAccessLevel(request)); } +StatusOr +AccessContextManagerTracingConnection::CreateAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::CreateAccessLevelRequest const& + request) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "CreateAccessLevel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateAccessLevel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AccessContextManagerTracingConnection::CreateAccessLevel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "CreateAccessLevel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateAccessLevel(google::cloud::ExperimentalTag{}, operation)); +} + future> AccessContextManagerTracingConnection::UpdateAccessLevel( google::identity::accesscontextmanager::v1::UpdateAccessLevelRequest const& @@ -142,6 +250,33 @@ AccessContextManagerTracingConnection::UpdateAccessLevel( return internal::EndSpan(std::move(span), child_->UpdateAccessLevel(request)); } +StatusOr +AccessContextManagerTracingConnection::UpdateAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::UpdateAccessLevelRequest const& + request) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "UpdateAccessLevel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateAccessLevel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AccessContextManagerTracingConnection::UpdateAccessLevel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "UpdateAccessLevel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateAccessLevel(google::cloud::ExperimentalTag{}, operation)); +} + future> AccessContextManagerTracingConnection::DeleteAccessLevel( @@ -154,6 +289,34 @@ AccessContextManagerTracingConnection::DeleteAccessLevel( return internal::EndSpan(std::move(span), child_->DeleteAccessLevel(request)); } +StatusOr +AccessContextManagerTracingConnection::DeleteAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::DeleteAccessLevelRequest const& + request) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "DeleteAccessLevel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAccessLevel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AccessContextManagerTracingConnection::DeleteAccessLevel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "DeleteAccessLevel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAccessLevel(google::cloud::ExperimentalTag{}, operation)); +} + future> AccessContextManagerTracingConnection::ReplaceAccessLevels( @@ -167,6 +330,34 @@ AccessContextManagerTracingConnection::ReplaceAccessLevels( child_->ReplaceAccessLevels(request)); } +StatusOr +AccessContextManagerTracingConnection::ReplaceAccessLevels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + ReplaceAccessLevelsRequest const& request) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "ReplaceAccessLevels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ReplaceAccessLevels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AccessContextManagerTracingConnection::ReplaceAccessLevels( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "ReplaceAccessLevels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ReplaceAccessLevels(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange AccessContextManagerTracingConnection::ListServicePerimeters( google::identity::accesscontextmanager::v1::ListServicePerimetersRequest @@ -204,6 +395,33 @@ AccessContextManagerTracingConnection::CreateServicePerimeter( child_->CreateServicePerimeter(request)); } +StatusOr +AccessContextManagerTracingConnection::CreateServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateServicePerimeterRequest const& request) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "CreateServicePerimeter"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateServicePerimeter( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AccessContextManagerTracingConnection::CreateServicePerimeter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "CreateServicePerimeter"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateServicePerimeter( + google::cloud::ExperimentalTag{}, operation)); +} + future> AccessContextManagerTracingConnection::UpdateServicePerimeter( google::identity::accesscontextmanager::v1:: @@ -216,6 +434,33 @@ AccessContextManagerTracingConnection::UpdateServicePerimeter( child_->UpdateServicePerimeter(request)); } +StatusOr +AccessContextManagerTracingConnection::UpdateServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateServicePerimeterRequest const& request) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "UpdateServicePerimeter"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateServicePerimeter( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AccessContextManagerTracingConnection::UpdateServicePerimeter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "UpdateServicePerimeter"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateServicePerimeter( + google::cloud::ExperimentalTag{}, operation)); +} + future> AccessContextManagerTracingConnection::DeleteServicePerimeter( @@ -229,6 +474,34 @@ AccessContextManagerTracingConnection::DeleteServicePerimeter( child_->DeleteServicePerimeter(request)); } +StatusOr +AccessContextManagerTracingConnection::DeleteServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteServicePerimeterRequest const& request) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "DeleteServicePerimeter"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteServicePerimeter( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AccessContextManagerTracingConnection::DeleteServicePerimeter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "DeleteServicePerimeter"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteServicePerimeter( + google::cloud::ExperimentalTag{}, operation)); +} + future> AccessContextManagerTracingConnection::ReplaceServicePerimeters( @@ -242,6 +515,34 @@ AccessContextManagerTracingConnection::ReplaceServicePerimeters( child_->ReplaceServicePerimeters(request)); } +StatusOr +AccessContextManagerTracingConnection::ReplaceServicePerimeters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + ReplaceServicePerimetersRequest const& request) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "ReplaceServicePerimeters"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ReplaceServicePerimeters( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AccessContextManagerTracingConnection::ReplaceServicePerimeters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "ReplaceServicePerimeters"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ReplaceServicePerimeters( + google::cloud::ExperimentalTag{}, operation)); +} + future> AccessContextManagerTracingConnection::CommitServicePerimeters( @@ -255,6 +556,34 @@ AccessContextManagerTracingConnection::CommitServicePerimeters( child_->CommitServicePerimeters(request)); } +StatusOr +AccessContextManagerTracingConnection::CommitServicePerimeters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CommitServicePerimetersRequest const& request) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "CommitServicePerimeters"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CommitServicePerimeters( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AccessContextManagerTracingConnection::CommitServicePerimeters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "CommitServicePerimeters"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CommitServicePerimeters( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange AccessContextManagerTracingConnection::ListGcpUserAccessBindings( google::identity::accesscontextmanager::v1::ListGcpUserAccessBindingsRequest @@ -293,6 +622,34 @@ AccessContextManagerTracingConnection::CreateGcpUserAccessBinding( child_->CreateGcpUserAccessBinding(request)); } +StatusOr +AccessContextManagerTracingConnection::CreateGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateGcpUserAccessBindingRequest const& request) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "CreateGcpUserAccessBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateGcpUserAccessBinding( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future< + StatusOr> +AccessContextManagerTracingConnection::CreateGcpUserAccessBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "CreateGcpUserAccessBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateGcpUserAccessBinding( + google::cloud::ExperimentalTag{}, operation)); +} + future< StatusOr> AccessContextManagerTracingConnection::UpdateGcpUserAccessBinding( @@ -306,6 +663,34 @@ AccessContextManagerTracingConnection::UpdateGcpUserAccessBinding( child_->UpdateGcpUserAccessBinding(request)); } +StatusOr +AccessContextManagerTracingConnection::UpdateGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateGcpUserAccessBindingRequest const& request) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "UpdateGcpUserAccessBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateGcpUserAccessBinding( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future< + StatusOr> +AccessContextManagerTracingConnection::UpdateGcpUserAccessBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "UpdateGcpUserAccessBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateGcpUserAccessBinding( + google::cloud::ExperimentalTag{}, operation)); +} + future> AccessContextManagerTracingConnection::DeleteGcpUserAccessBinding( @@ -319,6 +704,34 @@ AccessContextManagerTracingConnection::DeleteGcpUserAccessBinding( child_->DeleteGcpUserAccessBinding(request)); } +StatusOr +AccessContextManagerTracingConnection::DeleteGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteGcpUserAccessBindingRequest const& request) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "DeleteGcpUserAccessBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteGcpUserAccessBinding( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AccessContextManagerTracingConnection::DeleteGcpUserAccessBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "accesscontextmanager_v1::AccessContextManagerConnection::" + "DeleteGcpUserAccessBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteGcpUserAccessBinding( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AccessContextManagerTracingConnection::SetIamPolicy( google::iam::v1::SetIamPolicyRequest const& request) { diff --git a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.h b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.h index fdddc5d1acf76..92543a74292c1 100644 --- a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.h +++ b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.h @@ -56,15 +56,43 @@ class AccessContextManagerTracingConnection google::identity::accesscontextmanager::v1::AccessPolicy const& request) override; + StatusOr CreateAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::AccessPolicy const& request) + override; + + future> + CreateAccessPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAccessPolicy(google::identity::accesscontextmanager::v1:: UpdateAccessPolicyRequest const& request) override; + StatusOr UpdateAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateAccessPolicyRequest const& request) override; + + future> + UpdateAccessPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAccessPolicy(google::identity::accesscontextmanager::v1:: DeleteAccessPolicyRequest const& request) override; + StatusOr DeleteAccessPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteAccessPolicyRequest const& request) override; + + future> + DeleteAccessPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListAccessLevels( google::identity::accesscontextmanager::v1::ListAccessLevelsRequest @@ -79,20 +107,58 @@ class AccessContextManagerTracingConnection CreateAccessLevel(google::identity::accesscontextmanager::v1:: CreateAccessLevelRequest const& request) override; + StatusOr CreateAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateAccessLevelRequest const& request) override; + + future> + CreateAccessLevel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAccessLevel(google::identity::accesscontextmanager::v1:: UpdateAccessLevelRequest const& request) override; + StatusOr UpdateAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateAccessLevelRequest const& request) override; + + future> + UpdateAccessLevel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAccessLevel(google::identity::accesscontextmanager::v1:: DeleteAccessLevelRequest const& request) override; + StatusOr DeleteAccessLevel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteAccessLevelRequest const& request) override; + + future> + DeleteAccessLevel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReplaceAccessLevels(google::identity::accesscontextmanager::v1:: ReplaceAccessLevelsRequest const& request) override; + StatusOr ReplaceAccessLevels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + ReplaceAccessLevelsRequest const& request) override; + + future> + ReplaceAccessLevels(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListServicePerimeters( google::identity::accesscontextmanager::v1::ListServicePerimetersRequest @@ -107,29 +173,82 @@ class AccessContextManagerTracingConnection google::identity::accesscontextmanager::v1:: CreateServicePerimeterRequest const& request) override; + StatusOr CreateServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateServicePerimeterRequest const& request) override; + + future> + CreateServicePerimeter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateServicePerimeter( google::identity::accesscontextmanager::v1:: UpdateServicePerimeterRequest const& request) override; + StatusOr UpdateServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateServicePerimeterRequest const& request) override; + + future> + UpdateServicePerimeter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteServicePerimeter( google::identity::accesscontextmanager::v1:: DeleteServicePerimeterRequest const& request) override; + StatusOr DeleteServicePerimeter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteServicePerimeterRequest const& request) override; + + future> + DeleteServicePerimeter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReplaceServicePerimeters( google::identity::accesscontextmanager::v1:: ReplaceServicePerimetersRequest const& request) override; + StatusOr ReplaceServicePerimeters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + ReplaceServicePerimetersRequest const& request) override; + + future> + ReplaceServicePerimeters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CommitServicePerimeters( google::identity::accesscontextmanager::v1:: CommitServicePerimetersRequest const& request) override; + StatusOr CommitServicePerimeters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CommitServicePerimetersRequest const& request) override; + + future> + CommitServicePerimeters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListGcpUserAccessBindings( google::identity::accesscontextmanager::v1:: @@ -146,18 +265,51 @@ class AccessContextManagerTracingConnection google::identity::accesscontextmanager::v1:: CreateGcpUserAccessBindingRequest const& request) override; + StatusOr CreateGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateGcpUserAccessBindingRequest const& request) override; + + future> + CreateGcpUserAccessBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateGcpUserAccessBinding( google::identity::accesscontextmanager::v1:: UpdateGcpUserAccessBindingRequest const& request) override; + StatusOr UpdateGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateGcpUserAccessBindingRequest const& request) override; + + future> + UpdateGcpUserAccessBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteGcpUserAccessBinding( google::identity::accesscontextmanager::v1:: DeleteGcpUserAccessBindingRequest const& request) override; + StatusOr DeleteGcpUserAccessBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteGcpUserAccessBindingRequest const& request) override; + + future> + DeleteGcpUserAccessBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr SetIamPolicy( google::iam::v1::SetIamPolicyRequest const& request) override; diff --git a/google/cloud/accesscontextmanager/v1/mocks/mock_access_context_manager_connection.h b/google/cloud/accesscontextmanager/v1/mocks/mock_access_context_manager_connection.h index 2efc6eea4ce3b..10b64840fc8ae 100644 --- a/google/cloud/accesscontextmanager/v1/mocks/mock_access_context_manager_connection.h +++ b/google/cloud/accesscontextmanager/v1/mocks/mock_access_context_manager_connection.h @@ -68,6 +68,20 @@ class MockAccessContextManagerConnection (google::identity::accesscontextmanager::v1::AccessPolicy const& request), (override)); + MOCK_METHOD( + StatusOr, CreateAccessPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1::AccessPolicy const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + CreateAccessPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -76,6 +90,20 @@ class MockAccessContextManagerConnection UpdateAccessPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateAccessPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateAccessPolicyRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + UpdateAccessPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteAccessPolicy, @@ -83,6 +111,19 @@ class MockAccessContextManagerConnection DeleteAccessPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteAccessPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteAccessPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteAccessPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListAccessLevels, @@ -104,6 +145,19 @@ class MockAccessContextManagerConnection CreateAccessLevelRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateAccessLevel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateAccessLevelRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateAccessLevel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateAccessLevel, @@ -111,6 +165,19 @@ class MockAccessContextManagerConnection UpdateAccessLevelRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateAccessLevel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateAccessLevelRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UpdateAccessLevel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteAccessLevel, @@ -118,6 +185,19 @@ class MockAccessContextManagerConnection DeleteAccessLevelRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteAccessLevel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteAccessLevelRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteAccessLevel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, ReplaceAccessLevels, @@ -125,6 +205,19 @@ class MockAccessContextManagerConnection ReplaceAccessLevelsRequest const& request), (override)); + MOCK_METHOD(StatusOr, ReplaceAccessLevels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + ReplaceAccessLevelsRequest const& request), + (override)); + + MOCK_METHOD(future>, + ReplaceAccessLevels, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange< google::identity::accesscontextmanager::v1::ServicePerimeter>), @@ -148,6 +241,20 @@ class MockAccessContextManagerConnection CreateServicePerimeterRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateServicePerimeter, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateServicePerimeterRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateServicePerimeter, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -156,6 +263,20 @@ class MockAccessContextManagerConnection UpdateServicePerimeterRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateServicePerimeter, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateServicePerimeterRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UpdateServicePerimeter, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteServicePerimeter, @@ -163,6 +284,19 @@ class MockAccessContextManagerConnection DeleteServicePerimeterRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteServicePerimeter, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteServicePerimeterRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteServicePerimeter, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, ReplaceServicePerimeters, @@ -170,6 +304,20 @@ class MockAccessContextManagerConnection ReplaceServicePerimetersRequest const& request), (override)); + MOCK_METHOD(StatusOr, + ReplaceServicePerimeters, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + ReplaceServicePerimetersRequest const& request), + (override)); + + MOCK_METHOD(future>, + ReplaceServicePerimeters, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, CommitServicePerimeters, @@ -177,6 +325,19 @@ class MockAccessContextManagerConnection CommitServicePerimetersRequest const& request), (override)); + MOCK_METHOD(StatusOr, CommitServicePerimeters, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CommitServicePerimetersRequest const& request), + (override)); + + MOCK_METHOD(future>, + CommitServicePerimeters, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange< google::identity::accesscontextmanager::v1::GcpUserAccessBinding>), @@ -201,6 +362,21 @@ class MockAccessContextManagerConnection CreateGcpUserAccessBindingRequest const& request), (override)); + MOCK_METHOD(StatusOr, + CreateGcpUserAccessBinding, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + CreateGcpUserAccessBindingRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateGcpUserAccessBinding, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -209,6 +385,21 @@ class MockAccessContextManagerConnection UpdateGcpUserAccessBindingRequest const& request), (override)); + MOCK_METHOD(StatusOr, + UpdateGcpUserAccessBinding, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + UpdateGcpUserAccessBindingRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UpdateGcpUserAccessBinding, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteGcpUserAccessBinding, @@ -216,6 +407,20 @@ class MockAccessContextManagerConnection DeleteGcpUserAccessBindingRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteGcpUserAccessBinding, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::identity::accesscontextmanager::v1:: + DeleteGcpUserAccessBindingRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteGcpUserAccessBinding, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, SetIamPolicy, (google::iam::v1::SetIamPolicyRequest const& request), (override)); diff --git a/google/cloud/advisorynotifications/v1/advisory_notifications_connection.h b/google/cloud/advisorynotifications/v1/advisory_notifications_connection.h index cfb32f9b0ddc7..bdeb193ffdf7e 100644 --- a/google/cloud/advisorynotifications/v1/advisory_notifications_connection.h +++ b/google/cloud/advisorynotifications/v1/advisory_notifications_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/advisorynotifications/v1/advisory_notifications_connection_idempotency_policy.h" #include "google/cloud/advisorynotifications/v1/internal/advisory_notifications_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/aiplatform/v1/dataset_connection.cc b/google/cloud/aiplatform/v1/dataset_connection.cc index 2f83da7f14199..7010d265101c5 100644 --- a/google/cloud/aiplatform/v1/dataset_connection.cc +++ b/google/cloud/aiplatform/v1/dataset_connection.cc @@ -46,6 +46,22 @@ DatasetServiceConnection::CreateDataset( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatasetServiceConnection::CreateDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDatasetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatasetServiceConnection::CreateDataset(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DatasetServiceConnection::GetDataset( google::cloud::aiplatform::v1::GetDatasetRequest const&) { @@ -74,6 +90,22 @@ DatasetServiceConnection::DeleteDataset( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatasetServiceConnection::DeleteDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDatasetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatasetServiceConnection::DeleteDataset(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DatasetServiceConnection::ImportData( google::cloud::aiplatform::v1::ImportDataRequest const&) { @@ -82,6 +114,21 @@ DatasetServiceConnection::ImportData( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DatasetServiceConnection::ImportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ImportDataRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatasetServiceConnection::ImportData(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DatasetServiceConnection::ExportData( google::cloud::aiplatform::v1::ExportDataRequest const&) { @@ -90,6 +137,21 @@ DatasetServiceConnection::ExportData( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DatasetServiceConnection::ExportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportDataRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatasetServiceConnection::ExportData(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DatasetServiceConnection::CreateDatasetVersion( google::cloud::aiplatform::v1::CreateDatasetVersionRequest const&) { @@ -98,6 +160,22 @@ DatasetServiceConnection::CreateDatasetVersion( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatasetServiceConnection::CreateDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDatasetVersionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatasetServiceConnection::CreateDatasetVersion( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DatasetServiceConnection::UpdateDatasetVersion( google::cloud::aiplatform::v1::UpdateDatasetVersionRequest const&) { @@ -112,6 +190,22 @@ DatasetServiceConnection::DeleteDatasetVersion( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatasetServiceConnection::DeleteDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatasetServiceConnection::DeleteDatasetVersion( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DatasetServiceConnection::GetDatasetVersion( google::cloud::aiplatform::v1::GetDatasetVersionRequest const&) { @@ -134,6 +228,22 @@ DatasetServiceConnection::RestoreDatasetVersion( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatasetServiceConnection::RestoreDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatasetServiceConnection::RestoreDatasetVersion( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange DatasetServiceConnection::ListDataItems( google::cloud::aiplatform::v1:: @@ -166,6 +276,22 @@ DatasetServiceConnection::DeleteSavedQuery( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatasetServiceConnection::DeleteSavedQuery( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteSavedQueryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatasetServiceConnection::DeleteSavedQuery( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DatasetServiceConnection::GetAnnotationSpec( google::cloud::aiplatform::v1::GetAnnotationSpecRequest const&) { diff --git a/google/cloud/aiplatform/v1/dataset_connection.h b/google/cloud/aiplatform/v1/dataset_connection.h index 00bd4e1d013a5..cc3eb72069b45 100644 --- a/google/cloud/aiplatform/v1/dataset_connection.h +++ b/google/cloud/aiplatform/v1/dataset_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/dataset_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/dataset_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -190,6 +192,14 @@ class DatasetServiceConnection { CreateDataset( google::cloud::aiplatform::v1::CreateDatasetRequest const& request); + virtual StatusOr CreateDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDatasetRequest const& request); + + virtual future> + CreateDataset(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetDataset( google::cloud::aiplatform::v1::GetDatasetRequest const& request); @@ -204,17 +214,51 @@ class DatasetServiceConnection { DeleteDataset( google::cloud::aiplatform::v1::DeleteDatasetRequest const& request); + virtual StatusOr DeleteDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDatasetRequest const& request); + + virtual future< + StatusOr> + DeleteDataset(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ImportData(google::cloud::aiplatform::v1::ImportDataRequest const& request); + virtual StatusOr ImportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ImportDataRequest const& request); + + virtual future> + ImportData(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ExportData(google::cloud::aiplatform::v1::ExportDataRequest const& request); + virtual StatusOr ExportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportDataRequest const& request); + + virtual future> + ExportData(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateDatasetVersion( google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request); + virtual StatusOr CreateDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& + request); + + virtual future> + CreateDatasetVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr UpdateDatasetVersion( google::cloud::aiplatform::v1::UpdateDatasetVersionRequest const& @@ -226,6 +270,16 @@ class DatasetServiceConnection { google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& request); + virtual StatusOr DeleteDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& + request); + + virtual future< + StatusOr> + DeleteDatasetVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetDatasetVersion( google::cloud::aiplatform::v1::GetDatasetVersionRequest const& request); @@ -239,6 +293,15 @@ class DatasetServiceConnection { google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& request); + virtual StatusOr RestoreDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& + request); + + virtual future> + RestoreDatasetVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListDataItems( google::cloud::aiplatform::v1::ListDataItemsRequest request); @@ -255,6 +318,15 @@ class DatasetServiceConnection { DeleteSavedQuery( google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request); + virtual StatusOr DeleteSavedQuery( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request); + + virtual future< + StatusOr> + DeleteSavedQuery(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetAnnotationSpec( google::cloud::aiplatform::v1::GetAnnotationSpecRequest const& request); diff --git a/google/cloud/aiplatform/v1/deployment_resource_pool_connection.cc b/google/cloud/aiplatform/v1/deployment_resource_pool_connection.cc index 35bbb94d15332..2229553c3be41 100644 --- a/google/cloud/aiplatform/v1/deployment_resource_pool_connection.cc +++ b/google/cloud/aiplatform/v1/deployment_resource_pool_connection.cc @@ -47,6 +47,22 @@ DeploymentResourcePoolServiceConnection::CreateDeploymentResourcePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DeploymentResourcePoolServiceConnection::CreateDeploymentResourcePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DeploymentResourcePoolServiceConnection::CreateDeploymentResourcePool( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DeploymentResourcePoolServiceConnection::GetDeploymentResourcePool( google::cloud::aiplatform::v1::GetDeploymentResourcePoolRequest const&) { @@ -69,6 +85,22 @@ DeploymentResourcePoolServiceConnection::DeleteDeploymentResourcePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DeploymentResourcePoolServiceConnection::DeleteDeploymentResourcePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DeploymentResourcePoolServiceConnection::DeleteDeploymentResourcePool( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeDeploymentResourcePoolServiceConnection(std::string const& location, Options options) { diff --git a/google/cloud/aiplatform/v1/deployment_resource_pool_connection.h b/google/cloud/aiplatform/v1/deployment_resource_pool_connection.h index 3fd093e2bbc33..aea1ed7ff680d 100644 --- a/google/cloud/aiplatform/v1/deployment_resource_pool_connection.h +++ b/google/cloud/aiplatform/v1/deployment_resource_pool_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/deployment_resource_pool_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/deployment_resource_pool_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -210,6 +212,16 @@ class DeploymentResourcePoolServiceConnection { google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& request); + virtual StatusOr CreateDeploymentResourcePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& + request); + + virtual future< + StatusOr> + CreateDeploymentResourcePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetDeploymentResourcePool( google::cloud::aiplatform::v1::GetDeploymentResourcePoolRequest const& @@ -225,6 +237,16 @@ class DeploymentResourcePoolServiceConnection { DeleteDeploymentResourcePool( google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& request); + + virtual StatusOr DeleteDeploymentResourcePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& + request); + + virtual future< + StatusOr> + DeleteDeploymentResourcePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/aiplatform/v1/endpoint_connection.cc b/google/cloud/aiplatform/v1/endpoint_connection.cc index 5f9c6200ce84a..40501ddfbf729 100644 --- a/google/cloud/aiplatform/v1/endpoint_connection.cc +++ b/google/cloud/aiplatform/v1/endpoint_connection.cc @@ -46,6 +46,22 @@ EndpointServiceConnection::CreateEndpoint( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EndpointServiceConnection::CreateEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateEndpointRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EndpointServiceConnection::CreateEndpoint( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr EndpointServiceConnection::GetEndpoint( google::cloud::aiplatform::v1::GetEndpointRequest const&) { @@ -74,6 +90,22 @@ EndpointServiceConnection::DeleteEndpoint( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EndpointServiceConnection::DeleteEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteEndpointRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EndpointServiceConnection::DeleteEndpoint( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EndpointServiceConnection::DeployModel( google::cloud::aiplatform::v1::DeployModelRequest const&) { @@ -82,6 +114,21 @@ EndpointServiceConnection::DeployModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EndpointServiceConnection::DeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeployModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EndpointServiceConnection::DeployModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EndpointServiceConnection::UndeployModel( google::cloud::aiplatform::v1::UndeployModelRequest const&) { @@ -90,6 +137,22 @@ EndpointServiceConnection::UndeployModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EndpointServiceConnection::UndeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UndeployModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EndpointServiceConnection::UndeployModel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EndpointServiceConnection::MutateDeployedModel( google::cloud::aiplatform::v1::MutateDeployedModelRequest const&) { @@ -98,6 +161,22 @@ EndpointServiceConnection::MutateDeployedModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EndpointServiceConnection::MutateDeployedModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::MutateDeployedModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EndpointServiceConnection::MutateDeployedModel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeEndpointServiceConnection( std::string const& location, Options options) { internal::CheckExpectedOptions CreateEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateEndpointRequest const& request); + + virtual future> + CreateEndpoint(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetEndpoint( google::cloud::aiplatform::v1::GetEndpointRequest const& request); @@ -205,17 +215,51 @@ class EndpointServiceConnection { DeleteEndpoint( google::cloud::aiplatform::v1::DeleteEndpointRequest const& request); + virtual StatusOr DeleteEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteEndpointRequest const& request); + + virtual future< + StatusOr> + DeleteEndpoint(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeployModel(google::cloud::aiplatform::v1::DeployModelRequest const& request); + virtual StatusOr DeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeployModelRequest const& request); + + virtual future> + DeployModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UndeployModel( google::cloud::aiplatform::v1::UndeployModelRequest const& request); + virtual StatusOr UndeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UndeployModelRequest const& request); + + virtual future> + UndeployModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> MutateDeployedModel( google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request); + + virtual StatusOr MutateDeployedModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request); + + virtual future< + StatusOr> + MutateDeployedModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/aiplatform/v1/feature_online_store_admin_connection.cc b/google/cloud/aiplatform/v1/feature_online_store_admin_connection.cc index 720c29109c9e8..350cb51c1500d 100644 --- a/google/cloud/aiplatform/v1/feature_online_store_admin_connection.cc +++ b/google/cloud/aiplatform/v1/feature_online_store_admin_connection.cc @@ -47,6 +47,22 @@ FeatureOnlineStoreAdminServiceConnection::CreateFeatureOnlineStore( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeatureOnlineStoreAdminServiceConnection::CreateFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeatureOnlineStoreAdminServiceConnection::CreateFeatureOnlineStore( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr FeatureOnlineStoreAdminServiceConnection::GetFeatureOnlineStore( google::cloud::aiplatform::v1::GetFeatureOnlineStoreRequest const&) { @@ -69,6 +85,22 @@ FeatureOnlineStoreAdminServiceConnection::UpdateFeatureOnlineStore( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeatureOnlineStoreAdminServiceConnection::UpdateFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeatureOnlineStoreAdminServiceConnection::UpdateFeatureOnlineStore( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FeatureOnlineStoreAdminServiceConnection::DeleteFeatureOnlineStore( google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const&) { @@ -77,6 +109,22 @@ FeatureOnlineStoreAdminServiceConnection::DeleteFeatureOnlineStore( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeatureOnlineStoreAdminServiceConnection::DeleteFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeatureOnlineStoreAdminServiceConnection::DeleteFeatureOnlineStore( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FeatureOnlineStoreAdminServiceConnection::CreateFeatureView( google::cloud::aiplatform::v1::CreateFeatureViewRequest const&) { @@ -85,6 +133,22 @@ FeatureOnlineStoreAdminServiceConnection::CreateFeatureView( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeatureOnlineStoreAdminServiceConnection::CreateFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureViewRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeatureOnlineStoreAdminServiceConnection::CreateFeatureView( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr FeatureOnlineStoreAdminServiceConnection::GetFeatureView( google::cloud::aiplatform::v1::GetFeatureViewRequest const&) { @@ -107,6 +171,22 @@ FeatureOnlineStoreAdminServiceConnection::UpdateFeatureView( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeatureOnlineStoreAdminServiceConnection::UpdateFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureViewRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeatureOnlineStoreAdminServiceConnection::UpdateFeatureView( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FeatureOnlineStoreAdminServiceConnection::DeleteFeatureView( google::cloud::aiplatform::v1::DeleteFeatureViewRequest const&) { @@ -115,6 +195,22 @@ FeatureOnlineStoreAdminServiceConnection::DeleteFeatureView( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeatureOnlineStoreAdminServiceConnection::DeleteFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureViewRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeatureOnlineStoreAdminServiceConnection::DeleteFeatureView( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr FeatureOnlineStoreAdminServiceConnection::SyncFeatureView( google::cloud::aiplatform::v1::SyncFeatureViewRequest const&) { diff --git a/google/cloud/aiplatform/v1/feature_online_store_admin_connection.h b/google/cloud/aiplatform/v1/feature_online_store_admin_connection.h index 83e5928cb98ea..be15a5bd30198 100644 --- a/google/cloud/aiplatform/v1/feature_online_store_admin_connection.h +++ b/google/cloud/aiplatform/v1/feature_online_store_admin_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/feature_online_store_admin_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/feature_online_store_admin_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -209,6 +211,15 @@ class FeatureOnlineStoreAdminServiceConnection { google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& request); + virtual StatusOr CreateFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& + request); + + virtual future> + CreateFeatureOnlineStore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetFeatureOnlineStore( google::cloud::aiplatform::v1::GetFeatureOnlineStoreRequest const& @@ -223,16 +234,43 @@ class FeatureOnlineStoreAdminServiceConnection { google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& request); + virtual StatusOr UpdateFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& + request); + + virtual future> + UpdateFeatureOnlineStore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteFeatureOnlineStore( google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& request); + virtual StatusOr DeleteFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& + request); + + virtual future< + StatusOr> + DeleteFeatureOnlineStore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateFeatureView( google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request); + virtual StatusOr CreateFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request); + + virtual future> + CreateFeatureView(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetFeatureView( google::cloud::aiplatform::v1::GetFeatureViewRequest const& request); @@ -244,11 +282,28 @@ class FeatureOnlineStoreAdminServiceConnection { UpdateFeatureView( google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request); + virtual StatusOr UpdateFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request); + + virtual future> + UpdateFeatureView(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteFeatureView( google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request); + virtual StatusOr DeleteFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request); + + virtual future< + StatusOr> + DeleteFeatureView(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr SyncFeatureView( google::cloud::aiplatform::v1::SyncFeatureViewRequest const& request); diff --git a/google/cloud/aiplatform/v1/feature_online_store_connection.h b/google/cloud/aiplatform/v1/feature_online_store_connection.h index 7c88e5ccbdf87..4476b163ef6ab 100644 --- a/google/cloud/aiplatform/v1/feature_online_store_connection.h +++ b/google/cloud/aiplatform/v1/feature_online_store_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/feature_online_store_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/feature_online_store_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/aiplatform/v1/feature_registry_connection.cc b/google/cloud/aiplatform/v1/feature_registry_connection.cc index d4fb20dc01e9e..10496f02e1c39 100644 --- a/google/cloud/aiplatform/v1/feature_registry_connection.cc +++ b/google/cloud/aiplatform/v1/feature_registry_connection.cc @@ -46,6 +46,22 @@ FeatureRegistryServiceConnection::CreateFeatureGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeatureRegistryServiceConnection::CreateFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeatureRegistryServiceConnection::CreateFeatureGroup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr FeatureRegistryServiceConnection::GetFeatureGroup( google::cloud::aiplatform::v1::GetFeatureGroupRequest const&) { @@ -68,6 +84,22 @@ FeatureRegistryServiceConnection::UpdateFeatureGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeatureRegistryServiceConnection::UpdateFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeatureRegistryServiceConnection::UpdateFeatureGroup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FeatureRegistryServiceConnection::DeleteFeatureGroup( google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const&) { @@ -76,6 +108,22 @@ FeatureRegistryServiceConnection::DeleteFeatureGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeatureRegistryServiceConnection::DeleteFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeatureRegistryServiceConnection::DeleteFeatureGroup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FeatureRegistryServiceConnection::CreateFeature( google::cloud::aiplatform::v1::CreateFeatureRequest const&) { @@ -84,6 +132,22 @@ FeatureRegistryServiceConnection::CreateFeature( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeatureRegistryServiceConnection::CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeatureRegistryServiceConnection::CreateFeature( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr FeatureRegistryServiceConnection::GetFeature( google::cloud::aiplatform::v1::GetFeatureRequest const&) { @@ -106,6 +170,22 @@ FeatureRegistryServiceConnection::UpdateFeature( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeatureRegistryServiceConnection::UpdateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeatureRegistryServiceConnection::UpdateFeature( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FeatureRegistryServiceConnection::DeleteFeature( google::cloud::aiplatform::v1::DeleteFeatureRequest const&) { @@ -114,6 +194,22 @@ FeatureRegistryServiceConnection::DeleteFeature( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeatureRegistryServiceConnection::DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeatureRegistryServiceConnection::DeleteFeature( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeFeatureRegistryServiceConnection(std::string const& location, Options options) { diff --git a/google/cloud/aiplatform/v1/feature_registry_connection.h b/google/cloud/aiplatform/v1/feature_registry_connection.h index 50f82da4c10c8..11704f22fa337 100644 --- a/google/cloud/aiplatform/v1/feature_registry_connection.h +++ b/google/cloud/aiplatform/v1/feature_registry_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/feature_registry_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/feature_registry_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -196,6 +198,14 @@ class FeatureRegistryServiceConnection { CreateFeatureGroup( google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request); + virtual StatusOr CreateFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request); + + virtual future> + CreateFeatureGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetFeatureGroup( google::cloud::aiplatform::v1::GetFeatureGroupRequest const& request); @@ -207,15 +217,40 @@ class FeatureRegistryServiceConnection { UpdateFeatureGroup( google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request); + virtual StatusOr UpdateFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request); + + virtual future> + UpdateFeatureGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteFeatureGroup( google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request); + virtual StatusOr DeleteFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request); + + virtual future< + StatusOr> + DeleteFeatureGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateFeature( google::cloud::aiplatform::v1::CreateFeatureRequest const& request); + virtual StatusOr CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureRequest const& request); + + virtual future> + CreateFeature(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetFeature( google::cloud::aiplatform::v1::GetFeatureRequest const& request); @@ -226,10 +261,27 @@ class FeatureRegistryServiceConnection { UpdateFeature( google::cloud::aiplatform::v1::UpdateFeatureRequest const& request); + virtual StatusOr UpdateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureRequest const& request); + + virtual future> + UpdateFeature(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteFeature( google::cloud::aiplatform::v1::DeleteFeatureRequest const& request); + + virtual StatusOr DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureRequest const& request); + + virtual future< + StatusOr> + DeleteFeature(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/aiplatform/v1/featurestore_connection.cc b/google/cloud/aiplatform/v1/featurestore_connection.cc index f9a474f37dd07..87e7358ab3c0b 100644 --- a/google/cloud/aiplatform/v1/featurestore_connection.cc +++ b/google/cloud/aiplatform/v1/featurestore_connection.cc @@ -46,6 +46,22 @@ FeaturestoreServiceConnection::CreateFeaturestore( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeaturestoreServiceConnection::CreateFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeaturestoreRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeaturestoreServiceConnection::CreateFeaturestore( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr FeaturestoreServiceConnection::GetFeaturestore( google::cloud::aiplatform::v1::GetFeaturestoreRequest const&) { @@ -68,6 +84,22 @@ FeaturestoreServiceConnection::UpdateFeaturestore( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeaturestoreServiceConnection::UpdateFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeaturestoreServiceConnection::UpdateFeaturestore( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FeaturestoreServiceConnection::DeleteFeaturestore( google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const&) { @@ -76,6 +108,22 @@ FeaturestoreServiceConnection::DeleteFeaturestore( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeaturestoreServiceConnection::DeleteFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeaturestoreServiceConnection::DeleteFeaturestore( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FeaturestoreServiceConnection::CreateEntityType( google::cloud::aiplatform::v1::CreateEntityTypeRequest const&) { @@ -84,6 +132,22 @@ FeaturestoreServiceConnection::CreateEntityType( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeaturestoreServiceConnection::CreateEntityType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateEntityTypeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeaturestoreServiceConnection::CreateEntityType( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr FeaturestoreServiceConnection::GetEntityType( google::cloud::aiplatform::v1::GetEntityTypeRequest const&) { @@ -112,6 +176,22 @@ FeaturestoreServiceConnection::DeleteEntityType( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeaturestoreServiceConnection::DeleteEntityType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteEntityTypeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeaturestoreServiceConnection::DeleteEntityType( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FeaturestoreServiceConnection::CreateFeature( google::cloud::aiplatform::v1::CreateFeatureRequest const&) { @@ -120,6 +200,22 @@ FeaturestoreServiceConnection::CreateFeature( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeaturestoreServiceConnection::CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeaturestoreServiceConnection::CreateFeature( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FeaturestoreServiceConnection::BatchCreateFeatures( google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const&) { @@ -128,6 +224,22 @@ FeaturestoreServiceConnection::BatchCreateFeatures( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeaturestoreServiceConnection::BatchCreateFeatures( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeaturestoreServiceConnection::BatchCreateFeatures( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr FeaturestoreServiceConnection::GetFeature( google::cloud::aiplatform::v1::GetFeatureRequest const&) { @@ -156,6 +268,22 @@ FeaturestoreServiceConnection::DeleteFeature( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeaturestoreServiceConnection::DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeaturestoreServiceConnection::DeleteFeature( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FeaturestoreServiceConnection::ImportFeatureValues( google::cloud::aiplatform::v1::ImportFeatureValuesRequest const&) { @@ -164,6 +292,22 @@ FeaturestoreServiceConnection::ImportFeatureValues( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeaturestoreServiceConnection::ImportFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ImportFeatureValuesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeaturestoreServiceConnection::ImportFeatureValues( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FeaturestoreServiceConnection::BatchReadFeatureValues( google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const&) { @@ -172,6 +316,22 @@ FeaturestoreServiceConnection::BatchReadFeatureValues( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeaturestoreServiceConnection::BatchReadFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeaturestoreServiceConnection::BatchReadFeatureValues( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FeaturestoreServiceConnection::ExportFeatureValues( google::cloud::aiplatform::v1::ExportFeatureValuesRequest const&) { @@ -180,6 +340,22 @@ FeaturestoreServiceConnection::ExportFeatureValues( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeaturestoreServiceConnection::ExportFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportFeatureValuesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeaturestoreServiceConnection::ExportFeatureValues( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FeaturestoreServiceConnection::DeleteFeatureValues( google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const&) { @@ -188,6 +364,22 @@ FeaturestoreServiceConnection::DeleteFeatureValues( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FeaturestoreServiceConnection::DeleteFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FeaturestoreServiceConnection::DeleteFeatureValues( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange FeaturestoreServiceConnection::SearchFeatures( google::cloud::aiplatform::v1:: diff --git a/google/cloud/aiplatform/v1/featurestore_connection.h b/google/cloud/aiplatform/v1/featurestore_connection.h index aba807f30157a..eaf8ba8d5f83c 100644 --- a/google/cloud/aiplatform/v1/featurestore_connection.h +++ b/google/cloud/aiplatform/v1/featurestore_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/featurestore_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/featurestore_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -193,6 +195,14 @@ class FeaturestoreServiceConnection { CreateFeaturestore( google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request); + virtual StatusOr CreateFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request); + + virtual future> + CreateFeaturestore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetFeaturestore( google::cloud::aiplatform::v1::GetFeaturestoreRequest const& request); @@ -204,15 +214,40 @@ class FeaturestoreServiceConnection { UpdateFeaturestore( google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request); + virtual StatusOr UpdateFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request); + + virtual future> + UpdateFeaturestore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteFeaturestore( google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request); + virtual StatusOr DeleteFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request); + + virtual future< + StatusOr> + DeleteFeaturestore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateEntityType( google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request); + virtual StatusOr CreateEntityType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request); + + virtual future> + CreateEntityType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetEntityType( google::cloud::aiplatform::v1::GetEntityTypeRequest const& request); @@ -228,15 +263,41 @@ class FeaturestoreServiceConnection { DeleteEntityType( google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request); + virtual StatusOr DeleteEntityType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request); + + virtual future< + StatusOr> + DeleteEntityType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateFeature( google::cloud::aiplatform::v1::CreateFeatureRequest const& request); + virtual StatusOr CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureRequest const& request); + + virtual future> + CreateFeature(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> BatchCreateFeatures( google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request); + virtual StatusOr BatchCreateFeatures( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request); + + virtual future< + StatusOr> + BatchCreateFeatures(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetFeature( google::cloud::aiplatform::v1::GetFeatureRequest const& request); @@ -251,27 +312,73 @@ class FeaturestoreServiceConnection { DeleteFeature( google::cloud::aiplatform::v1::DeleteFeatureRequest const& request); + virtual StatusOr DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureRequest const& request); + + virtual future< + StatusOr> + DeleteFeature(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> ImportFeatureValues( google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request); + virtual StatusOr ImportFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request); + + virtual future< + StatusOr> + ImportFeatureValues(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> BatchReadFeatureValues( google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& request); + virtual StatusOr BatchReadFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& + request); + + virtual future< + StatusOr> + BatchReadFeatureValues(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> ExportFeatureValues( google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request); + virtual StatusOr ExportFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request); + + virtual future< + StatusOr> + ExportFeatureValues(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteFeatureValues( google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request); + virtual StatusOr DeleteFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request); + + virtual future< + StatusOr> + DeleteFeatureValues(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange SearchFeatures( google::cloud::aiplatform::v1::SearchFeaturesRequest request); }; diff --git a/google/cloud/aiplatform/v1/featurestore_online_serving_connection.h b/google/cloud/aiplatform/v1/featurestore_online_serving_connection.h index 4df76e75a827b..9ff4be4509d24 100644 --- a/google/cloud/aiplatform/v1/featurestore_online_serving_connection.h +++ b/google/cloud/aiplatform/v1/featurestore_online_serving_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/featurestore_online_serving_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/featurestore_online_serving_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/aiplatform/v1/gen_ai_tuning_connection.h b/google/cloud/aiplatform/v1/gen_ai_tuning_connection.h index df1c85513eff3..f0f9f1c942678 100644 --- a/google/cloud/aiplatform/v1/gen_ai_tuning_connection.h +++ b/google/cloud/aiplatform/v1/gen_ai_tuning_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/gen_ai_tuning_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/gen_ai_tuning_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/aiplatform/v1/index_connection.cc b/google/cloud/aiplatform/v1/index_connection.cc index 5fcbfb5df5f38..7b0f877a658b9 100644 --- a/google/cloud/aiplatform/v1/index_connection.cc +++ b/google/cloud/aiplatform/v1/index_connection.cc @@ -46,6 +46,21 @@ IndexServiceConnection::CreateIndex( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr IndexServiceConnection::CreateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateIndexRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +IndexServiceConnection::CreateIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr IndexServiceConnection::GetIndex( google::cloud::aiplatform::v1::GetIndexRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -67,6 +82,21 @@ IndexServiceConnection::UpdateIndex( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr IndexServiceConnection::UpdateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateIndexRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +IndexServiceConnection::UpdateIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> IndexServiceConnection::DeleteIndex( google::cloud::aiplatform::v1::DeleteIndexRequest const&) { @@ -75,6 +105,21 @@ IndexServiceConnection::DeleteIndex( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr IndexServiceConnection::DeleteIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteIndexRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +IndexServiceConnection::DeleteIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr IndexServiceConnection::UpsertDatapoints( google::cloud::aiplatform::v1::UpsertDatapointsRequest const&) { diff --git a/google/cloud/aiplatform/v1/index_connection.h b/google/cloud/aiplatform/v1/index_connection.h index f58844a189316..6b921111c0ae0 100644 --- a/google/cloud/aiplatform/v1/index_connection.h +++ b/google/cloud/aiplatform/v1/index_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/index_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/index_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -189,6 +191,14 @@ class IndexServiceConnection { virtual future> CreateIndex( google::cloud::aiplatform::v1::CreateIndexRequest const& request); + virtual StatusOr CreateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateIndexRequest const& request); + + virtual future> CreateIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetIndex( google::cloud::aiplatform::v1::GetIndexRequest const& request); @@ -198,10 +208,27 @@ class IndexServiceConnection { virtual future> UpdateIndex( google::cloud::aiplatform::v1::UpdateIndexRequest const& request); + virtual StatusOr UpdateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateIndexRequest const& request); + + virtual future> UpdateIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteIndex(google::cloud::aiplatform::v1::DeleteIndexRequest const& request); + virtual StatusOr DeleteIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteIndexRequest const& request); + + virtual future< + StatusOr> + DeleteIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr UpsertDatapoints( google::cloud::aiplatform::v1::UpsertDatapointsRequest const& request); diff --git a/google/cloud/aiplatform/v1/index_endpoint_connection.cc b/google/cloud/aiplatform/v1/index_endpoint_connection.cc index 704dc8c94bf0c..23891326f4187 100644 --- a/google/cloud/aiplatform/v1/index_endpoint_connection.cc +++ b/google/cloud/aiplatform/v1/index_endpoint_connection.cc @@ -46,6 +46,22 @@ IndexEndpointServiceConnection::CreateIndexEndpoint( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +IndexEndpointServiceConnection::CreateIndexEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateIndexEndpointRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +IndexEndpointServiceConnection::CreateIndexEndpoint( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr IndexEndpointServiceConnection::GetIndexEndpoint( google::cloud::aiplatform::v1::GetIndexEndpointRequest const&) { @@ -74,6 +90,22 @@ IndexEndpointServiceConnection::DeleteIndexEndpoint( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +IndexEndpointServiceConnection::DeleteIndexEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +IndexEndpointServiceConnection::DeleteIndexEndpoint( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> IndexEndpointServiceConnection::DeployIndex( google::cloud::aiplatform::v1::DeployIndexRequest const&) { @@ -82,6 +114,22 @@ IndexEndpointServiceConnection::DeployIndex( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +IndexEndpointServiceConnection::DeployIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeployIndexRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +IndexEndpointServiceConnection::DeployIndex( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> IndexEndpointServiceConnection::UndeployIndex( google::cloud::aiplatform::v1::UndeployIndexRequest const&) { @@ -90,6 +138,22 @@ IndexEndpointServiceConnection::UndeployIndex( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +IndexEndpointServiceConnection::UndeployIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UndeployIndexRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +IndexEndpointServiceConnection::UndeployIndex( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> IndexEndpointServiceConnection::MutateDeployedIndex( google::cloud::aiplatform::v1::MutateDeployedIndexRequest const&) { @@ -98,6 +162,22 @@ IndexEndpointServiceConnection::MutateDeployedIndex( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +IndexEndpointServiceConnection::MutateDeployedIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::MutateDeployedIndexRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +IndexEndpointServiceConnection::MutateDeployedIndex( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeIndexEndpointServiceConnection(std::string const& location, Options options) { diff --git a/google/cloud/aiplatform/v1/index_endpoint_connection.h b/google/cloud/aiplatform/v1/index_endpoint_connection.h index 1e5592a6c1425..bdbc54ad3a3e5 100644 --- a/google/cloud/aiplatform/v1/index_endpoint_connection.h +++ b/google/cloud/aiplatform/v1/index_endpoint_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/index_endpoint_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/index_endpoint_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -194,6 +196,14 @@ class IndexEndpointServiceConnection { CreateIndexEndpoint( google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request); + virtual StatusOr CreateIndexEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request); + + virtual future> + CreateIndexEndpoint(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetIndexEndpoint( google::cloud::aiplatform::v1::GetIndexEndpointRequest const& request); @@ -211,17 +221,51 @@ class IndexEndpointServiceConnection { DeleteIndexEndpoint( google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request); + virtual StatusOr DeleteIndexEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request); + + virtual future< + StatusOr> + DeleteIndexEndpoint(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeployIndex(google::cloud::aiplatform::v1::DeployIndexRequest const& request); + virtual StatusOr DeployIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeployIndexRequest const& request); + + virtual future> + DeployIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UndeployIndex( google::cloud::aiplatform::v1::UndeployIndexRequest const& request); + virtual StatusOr UndeployIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UndeployIndexRequest const& request); + + virtual future> + UndeployIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> MutateDeployedIndex( google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request); + + virtual StatusOr MutateDeployedIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request); + + virtual future< + StatusOr> + MutateDeployedIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/aiplatform/v1/internal/dataset_connection_impl.cc b/google/cloud/aiplatform/v1/internal/dataset_connection_impl.cc index e4eb4dd8df8db..2deb42b93781b 100644 --- a/google/cloud/aiplatform/v1/internal/dataset_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/dataset_connection_impl.cc @@ -105,6 +105,60 @@ DatasetServiceConnectionImpl::CreateDataset( polling_policy(*current), __func__); } +StatusOr +DatasetServiceConnectionImpl::CreateDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDatasetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDataset(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CreateDatasetRequest const& request) { + return stub_->CreateDataset(context, options, request); + }, + *current, request, __func__); +} + +future> +DatasetServiceConnectionImpl::CreateDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDataset", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::Dataset>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::Dataset>, + polling_policy(*current), __func__); +} + StatusOr DatasetServiceConnectionImpl::GetDataset( google::cloud::aiplatform::v1::GetDatasetRequest const& request) { @@ -207,6 +261,61 @@ DatasetServiceConnectionImpl::DeleteDataset( polling_policy(*current), __func__); } +StatusOr +DatasetServiceConnectionImpl::DeleteDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDatasetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDataset(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteDatasetRequest const& request) { + return stub_->DeleteDataset(context, options, request); + }, + *current, request, __func__); +} + +future> +DatasetServiceConnectionImpl::DeleteDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDataset", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + future> DatasetServiceConnectionImpl::ImportData( google::cloud::aiplatform::v1::ImportDataRequest const& request) { @@ -246,6 +355,60 @@ DatasetServiceConnectionImpl::ImportData( polling_policy(*current), __func__); } +StatusOr +DatasetServiceConnectionImpl::ImportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ImportDataRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportData(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::ImportDataRequest const& request) { + return stub_->ImportData(context, options, request); + }, + *current, request, __func__); +} + +future> +DatasetServiceConnectionImpl::ImportData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportData", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::ImportDataResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::ImportDataResponse>, + polling_policy(*current), __func__); +} + future> DatasetServiceConnectionImpl::ExportData( google::cloud::aiplatform::v1::ExportDataRequest const& request) { @@ -285,6 +448,60 @@ DatasetServiceConnectionImpl::ExportData( polling_policy(*current), __func__); } +StatusOr +DatasetServiceConnectionImpl::ExportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportDataRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportData(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::ExportDataRequest const& request) { + return stub_->ExportData(context, options, request); + }, + *current, request, __func__); +} + +future> +DatasetServiceConnectionImpl::ExportData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ExportData", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::ExportDataResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::ExportDataResponse>, + polling_policy(*current), __func__); +} + future> DatasetServiceConnectionImpl::CreateDatasetVersion( google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request) { @@ -325,6 +542,61 @@ DatasetServiceConnectionImpl::CreateDatasetVersion( polling_policy(*current), __func__); } +StatusOr +DatasetServiceConnectionImpl::CreateDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDatasetVersion(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& + request) { + return stub_->CreateDatasetVersion(context, options, request); + }, + *current, request, __func__); +} + +future> +DatasetServiceConnectionImpl::CreateDatasetVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDatasetVersion", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DatasetVersion>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::DatasetVersion>, + polling_policy(*current), __func__); +} + StatusOr DatasetServiceConnectionImpl::UpdateDatasetVersion( google::cloud::aiplatform::v1::UpdateDatasetVersionRequest const& request) { @@ -380,6 +652,61 @@ DatasetServiceConnectionImpl::DeleteDatasetVersion( polling_policy(*current), __func__); } +StatusOr +DatasetServiceConnectionImpl::DeleteDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDatasetVersion(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& + request) { + return stub_->DeleteDatasetVersion(context, options, request); + }, + *current, request, __func__); +} + +future> +DatasetServiceConnectionImpl::DeleteDatasetVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDatasetVersion", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr DatasetServiceConnectionImpl::GetDatasetVersion( google::cloud::aiplatform::v1::GetDatasetVersionRequest const& request) { @@ -471,6 +798,62 @@ DatasetServiceConnectionImpl::RestoreDatasetVersion( polling_policy(*current), __func__); } +StatusOr +DatasetServiceConnectionImpl::RestoreDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RestoreDatasetVersion(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& + request) { + return stub_->RestoreDatasetVersion(context, options, request); + }, + *current, request, __func__); +} + +future> +DatasetServiceConnectionImpl::RestoreDatasetVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RestoreDatasetVersion", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DatasetVersion>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::DatasetVersion>, + polling_policy(*current), __func__); +} + StreamRange DatasetServiceConnectionImpl::ListDataItems( google::cloud::aiplatform::v1::ListDataItemsRequest request) { @@ -613,6 +996,61 @@ DatasetServiceConnectionImpl::DeleteSavedQuery( polling_policy(*current), __func__); } +StatusOr +DatasetServiceConnectionImpl::DeleteSavedQuery( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSavedQuery(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& + request) { + return stub_->DeleteSavedQuery(context, options, request); + }, + *current, request, __func__); +} + +future> +DatasetServiceConnectionImpl::DeleteSavedQuery( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteSavedQuery", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr DatasetServiceConnectionImpl::GetAnnotationSpec( google::cloud::aiplatform::v1::GetAnnotationSpecRequest const& request) { diff --git a/google/cloud/aiplatform/v1/internal/dataset_connection_impl.h b/google/cloud/aiplatform/v1/internal/dataset_connection_impl.h index 1041dac0293d5..ed9cbad1617a6 100644 --- a/google/cloud/aiplatform/v1/internal/dataset_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/dataset_connection_impl.h @@ -56,6 +56,15 @@ class DatasetServiceConnectionImpl google::cloud::aiplatform::v1::CreateDatasetRequest const& request) override; + StatusOr CreateDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDatasetRequest const& request) + override; + + future> CreateDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDataset( google::cloud::aiplatform::v1::GetDatasetRequest const& request) override; @@ -70,19 +79,54 @@ class DatasetServiceConnectionImpl DeleteDataset(google::cloud::aiplatform::v1::DeleteDatasetRequest const& request) override; + StatusOr DeleteDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDatasetRequest const& request) + override; + + future> + DeleteDataset(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportData( google::cloud::aiplatform::v1::ImportDataRequest const& request) override; + StatusOr ImportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ImportDataRequest const& request) override; + + future> + ImportData(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportData( google::cloud::aiplatform::v1::ExportDataRequest const& request) override; + StatusOr ExportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportDataRequest const& request) override; + + future> + ExportData(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateDatasetVersion( google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request) override; + StatusOr CreateDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request) + override; + + future> + CreateDatasetVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateDatasetVersion( google::cloud::aiplatform::v1::UpdateDatasetVersionRequest const& request) override; @@ -92,6 +136,16 @@ class DatasetServiceConnectionImpl google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& request) override; + StatusOr DeleteDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& request) + override; + + future> + DeleteDatasetVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDatasetVersion( google::cloud::aiplatform::v1::GetDatasetVersionRequest const& request) override; @@ -105,6 +159,16 @@ class DatasetServiceConnectionImpl google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& request) override; + StatusOr RestoreDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& + request) override; + + future> + RestoreDatasetVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDataItems( google::cloud::aiplatform::v1::ListDataItemsRequest request) override; @@ -118,6 +182,15 @@ class DatasetServiceConnectionImpl DeleteSavedQuery(google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request) override; + StatusOr DeleteSavedQuery( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request) + override; + + future> + DeleteSavedQuery(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAnnotationSpec( google::cloud::aiplatform::v1::GetAnnotationSpecRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.cc index 27d7fe2de23a8..47dd408d432f0 100644 --- a/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.cc @@ -42,6 +42,30 @@ DatasetServiceTracingConnection::CreateDataset( return internal::EndSpan(std::move(span), child_->CreateDataset(request)); } +StatusOr +DatasetServiceTracingConnection::CreateDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDatasetRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::DatasetServiceConnection::CreateDataset"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateDataset(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatasetServiceTracingConnection::CreateDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::DatasetServiceConnection::CreateDataset"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateDataset(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DatasetServiceTracingConnection::GetDataset( google::cloud::aiplatform::v1::GetDatasetRequest const& request) { @@ -80,6 +104,30 @@ DatasetServiceTracingConnection::DeleteDataset( return internal::EndSpan(std::move(span), child_->DeleteDataset(request)); } +StatusOr +DatasetServiceTracingConnection::DeleteDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDatasetRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::DatasetServiceConnection::DeleteDataset"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteDataset(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatasetServiceTracingConnection::DeleteDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::DatasetServiceConnection::DeleteDataset"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteDataset(google::cloud::ExperimentalTag{}, operation)); +} + future> DatasetServiceTracingConnection::ImportData( google::cloud::aiplatform::v1::ImportDataRequest const& request) { @@ -89,6 +137,30 @@ DatasetServiceTracingConnection::ImportData( return internal::EndSpan(std::move(span), child_->ImportData(request)); } +StatusOr +DatasetServiceTracingConnection::ImportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ImportDataRequest const& request) { + auto span = + internal::MakeSpan("aiplatform_v1::DatasetServiceConnection::ImportData"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportData(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatasetServiceTracingConnection::ImportData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("aiplatform_v1::DatasetServiceConnection::ImportData"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportData(google::cloud::ExperimentalTag{}, operation)); +} + future> DatasetServiceTracingConnection::ExportData( google::cloud::aiplatform::v1::ExportDataRequest const& request) { @@ -98,6 +170,30 @@ DatasetServiceTracingConnection::ExportData( return internal::EndSpan(std::move(span), child_->ExportData(request)); } +StatusOr +DatasetServiceTracingConnection::ExportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportDataRequest const& request) { + auto span = + internal::MakeSpan("aiplatform_v1::DatasetServiceConnection::ExportData"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportData(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatasetServiceTracingConnection::ExportData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("aiplatform_v1::DatasetServiceConnection::ExportData"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportData(google::cloud::ExperimentalTag{}, operation)); +} + future> DatasetServiceTracingConnection::CreateDatasetVersion( google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request) { @@ -108,6 +204,30 @@ DatasetServiceTracingConnection::CreateDatasetVersion( child_->CreateDatasetVersion(request)); } +StatusOr +DatasetServiceTracingConnection::CreateDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::DatasetServiceConnection::CreateDatasetVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateDatasetVersion( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatasetServiceTracingConnection::CreateDatasetVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::DatasetServiceConnection::CreateDatasetVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateDatasetVersion( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DatasetServiceTracingConnection::UpdateDatasetVersion( google::cloud::aiplatform::v1::UpdateDatasetVersionRequest const& request) { @@ -127,6 +247,30 @@ DatasetServiceTracingConnection::DeleteDatasetVersion( child_->DeleteDatasetVersion(request)); } +StatusOr +DatasetServiceTracingConnection::DeleteDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::DatasetServiceConnection::DeleteDatasetVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteDatasetVersion( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatasetServiceTracingConnection::DeleteDatasetVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::DatasetServiceConnection::DeleteDatasetVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteDatasetVersion( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DatasetServiceTracingConnection::GetDatasetVersion( google::cloud::aiplatform::v1::GetDatasetVersionRequest const& request) { @@ -159,6 +303,31 @@ DatasetServiceTracingConnection::RestoreDatasetVersion( child_->RestoreDatasetVersion(request)); } +StatusOr +DatasetServiceTracingConnection::RestoreDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::DatasetServiceConnection::RestoreDatasetVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RestoreDatasetVersion( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatasetServiceTracingConnection::RestoreDatasetVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::DatasetServiceConnection::RestoreDatasetVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RestoreDatasetVersion( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange DatasetServiceTracingConnection::ListDataItems( google::cloud::aiplatform::v1::ListDataItemsRequest request) { @@ -203,6 +372,30 @@ DatasetServiceTracingConnection::DeleteSavedQuery( return internal::EndSpan(std::move(span), child_->DeleteSavedQuery(request)); } +StatusOr +DatasetServiceTracingConnection::DeleteSavedQuery( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::DatasetServiceConnection::DeleteSavedQuery"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSavedQuery(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatasetServiceTracingConnection::DeleteSavedQuery( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::DatasetServiceConnection::DeleteSavedQuery"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSavedQuery(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DatasetServiceTracingConnection::GetAnnotationSpec( google::cloud::aiplatform::v1::GetAnnotationSpecRequest const& request) { diff --git a/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.h b/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.h index 251c011a39246..f065c230c26ac 100644 --- a/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.h @@ -44,6 +44,15 @@ class DatasetServiceTracingConnection google::cloud::aiplatform::v1::CreateDatasetRequest const& request) override; + StatusOr CreateDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDatasetRequest const& request) + override; + + future> CreateDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDataset( google::cloud::aiplatform::v1::GetDatasetRequest const& request) override; @@ -58,19 +67,54 @@ class DatasetServiceTracingConnection DeleteDataset(google::cloud::aiplatform::v1::DeleteDatasetRequest const& request) override; + StatusOr DeleteDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDatasetRequest const& request) + override; + + future> + DeleteDataset(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportData( google::cloud::aiplatform::v1::ImportDataRequest const& request) override; + StatusOr ImportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ImportDataRequest const& request) override; + + future> + ImportData(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportData( google::cloud::aiplatform::v1::ExportDataRequest const& request) override; + StatusOr ExportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportDataRequest const& request) override; + + future> + ExportData(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateDatasetVersion( google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request) override; + StatusOr CreateDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request) + override; + + future> + CreateDatasetVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateDatasetVersion( google::cloud::aiplatform::v1::UpdateDatasetVersionRequest const& request) override; @@ -80,6 +124,16 @@ class DatasetServiceTracingConnection google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& request) override; + StatusOr DeleteDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& request) + override; + + future> + DeleteDatasetVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDatasetVersion( google::cloud::aiplatform::v1::GetDatasetVersionRequest const& request) override; @@ -93,6 +147,16 @@ class DatasetServiceTracingConnection google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& request) override; + StatusOr RestoreDatasetVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& + request) override; + + future> + RestoreDatasetVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDataItems( google::cloud::aiplatform::v1::ListDataItemsRequest request) override; @@ -106,6 +170,15 @@ class DatasetServiceTracingConnection DeleteSavedQuery(google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request) override; + StatusOr DeleteSavedQuery( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request) + override; + + future> + DeleteSavedQuery(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAnnotationSpec( google::cloud::aiplatform::v1::GetAnnotationSpecRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.cc b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.cc index 1f8eb577eda6d..e56bac0101628 100644 --- a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.cc @@ -116,6 +116,62 @@ DeploymentResourcePoolServiceConnectionImpl::CreateDeploymentResourcePool( polling_policy(*current), __func__); } +StatusOr +DeploymentResourcePoolServiceConnectionImpl::CreateDeploymentResourcePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDeploymentResourcePool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1:: + CreateDeploymentResourcePoolRequest const& request) { + return stub_->CreateDeploymentResourcePool(context, options, request); + }, + *current, request, __func__); +} + +future> +DeploymentResourcePoolServiceConnectionImpl::CreateDeploymentResourcePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDeploymentResourcePool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeploymentResourcePool>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::DeploymentResourcePool>, + polling_policy(*current), __func__); +} + StatusOr DeploymentResourcePoolServiceConnectionImpl::GetDeploymentResourcePool( google::cloud::aiplatform::v1::GetDeploymentResourcePoolRequest const& @@ -211,6 +267,62 @@ DeploymentResourcePoolServiceConnectionImpl::DeleteDeploymentResourcePool( polling_policy(*current), __func__); } +StatusOr +DeploymentResourcePoolServiceConnectionImpl::DeleteDeploymentResourcePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDeploymentResourcePool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1:: + DeleteDeploymentResourcePoolRequest const& request) { + return stub_->DeleteDeploymentResourcePool(context, options, request); + }, + *current, request, __func__); +} + +future> +DeploymentResourcePoolServiceConnectionImpl::DeleteDeploymentResourcePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDeploymentResourcePool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace aiplatform_v1_internal } // namespace cloud diff --git a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.h b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.h index c15a58a11c9d6..18c1cae1e0880 100644 --- a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.h @@ -58,6 +58,16 @@ class DeploymentResourcePoolServiceConnectionImpl google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& request) override; + StatusOr CreateDeploymentResourcePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& + request) override; + + future> + CreateDeploymentResourcePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDeploymentResourcePool( google::cloud::aiplatform::v1::GetDeploymentResourcePoolRequest const& @@ -73,6 +83,16 @@ class DeploymentResourcePoolServiceConnectionImpl google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& request) override; + StatusOr DeleteDeploymentResourcePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& + request) override; + + future> + DeleteDeploymentResourcePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr diff --git a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.cc index 11ad692e4f0fb..3cfbc913a2dbe 100644 --- a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.cc @@ -47,6 +47,33 @@ DeploymentResourcePoolServiceTracingConnection::CreateDeploymentResourcePool( child_->CreateDeploymentResourcePool(request)); } +StatusOr +DeploymentResourcePoolServiceTracingConnection::CreateDeploymentResourcePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::DeploymentResourcePoolServiceConnection::" + "CreateDeploymentResourcePool"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateDeploymentResourcePool( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DeploymentResourcePoolServiceTracingConnection::CreateDeploymentResourcePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::DeploymentResourcePoolServiceConnection::" + "CreateDeploymentResourcePool"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateDeploymentResourcePool( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DeploymentResourcePoolServiceTracingConnection::GetDeploymentResourcePool( google::cloud::aiplatform::v1::GetDeploymentResourcePoolRequest const& @@ -83,6 +110,33 @@ DeploymentResourcePoolServiceTracingConnection::DeleteDeploymentResourcePool( child_->DeleteDeploymentResourcePool(request)); } +StatusOr +DeploymentResourcePoolServiceTracingConnection::DeleteDeploymentResourcePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::DeploymentResourcePoolServiceConnection::" + "DeleteDeploymentResourcePool"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteDeploymentResourcePool( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DeploymentResourcePoolServiceTracingConnection::DeleteDeploymentResourcePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::DeploymentResourcePoolServiceConnection::" + "DeleteDeploymentResourcePool"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteDeploymentResourcePool( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.h b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.h index fe0843931043d..b90f049d520c1 100644 --- a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.h @@ -46,6 +46,16 @@ class DeploymentResourcePoolServiceTracingConnection google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& request) override; + StatusOr CreateDeploymentResourcePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& + request) override; + + future> + CreateDeploymentResourcePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDeploymentResourcePool( google::cloud::aiplatform::v1::GetDeploymentResourcePoolRequest const& @@ -61,6 +71,16 @@ class DeploymentResourcePoolServiceTracingConnection google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& request) override; + StatusOr DeleteDeploymentResourcePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& + request) override; + + future> + DeleteDeploymentResourcePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.cc b/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.cc index 38ba45e87f982..efef88d741d81 100644 --- a/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.cc @@ -106,6 +106,60 @@ EndpointServiceConnectionImpl::CreateEndpoint( polling_policy(*current), __func__); } +StatusOr +EndpointServiceConnectionImpl::CreateEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateEndpointRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateEndpoint(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CreateEndpointRequest const& request) { + return stub_->CreateEndpoint(context, options, request); + }, + *current, request, __func__); +} + +future> +EndpointServiceConnectionImpl::CreateEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateEndpoint", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::Endpoint>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::Endpoint>, + polling_policy(*current), __func__); +} + StatusOr EndpointServiceConnectionImpl::GetEndpoint( google::cloud::aiplatform::v1::GetEndpointRequest const& request) { @@ -208,6 +262,61 @@ EndpointServiceConnectionImpl::DeleteEndpoint( polling_policy(*current), __func__); } +StatusOr +EndpointServiceConnectionImpl::DeleteEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteEndpointRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteEndpoint(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteEndpointRequest const& request) { + return stub_->DeleteEndpoint(context, options, request); + }, + *current, request, __func__); +} + +future> +EndpointServiceConnectionImpl::DeleteEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteEndpoint", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + future> EndpointServiceConnectionImpl::DeployModel( google::cloud::aiplatform::v1::DeployModelRequest const& request) { @@ -247,6 +356,60 @@ EndpointServiceConnectionImpl::DeployModel( polling_policy(*current), __func__); } +StatusOr +EndpointServiceConnectionImpl::DeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeployModelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeployModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeployModelRequest const& request) { + return stub_->DeployModel(context, options, request); + }, + *current, request, __func__); +} + +future> +EndpointServiceConnectionImpl::DeployModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeployModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeployModelResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::DeployModelResponse>, + polling_policy(*current), __func__); +} + future> EndpointServiceConnectionImpl::UndeployModel( google::cloud::aiplatform::v1::UndeployModelRequest const& request) { @@ -286,6 +449,61 @@ EndpointServiceConnectionImpl::UndeployModel( polling_policy(*current), __func__); } +StatusOr +EndpointServiceConnectionImpl::UndeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UndeployModelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UndeployModel(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::UndeployModelRequest const& request) { + return stub_->UndeployModel(context, options, request); + }, + *current, request, __func__); +} + +future> +EndpointServiceConnectionImpl::UndeployModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UndeployModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::UndeployModelResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::UndeployModelResponse>, + polling_policy(*current), __func__); +} + future> EndpointServiceConnectionImpl::MutateDeployedModel( google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request) { @@ -326,6 +544,61 @@ EndpointServiceConnectionImpl::MutateDeployedModel( polling_policy(*current), __func__); } +StatusOr +EndpointServiceConnectionImpl::MutateDeployedModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->MutateDeployedModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::MutateDeployedModelRequest const& + request) { + return stub_->MutateDeployedModel(context, options, request); + }, + *current, request, __func__); +} + +future> +EndpointServiceConnectionImpl::MutateDeployedModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to MutateDeployedModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::MutateDeployedModelResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::MutateDeployedModelResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace aiplatform_v1_internal } // namespace cloud diff --git a/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.h b/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.h index d51c58121eff2..a9a55335592bb 100644 --- a/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.h @@ -56,6 +56,15 @@ class EndpointServiceConnectionImpl google::cloud::aiplatform::v1::CreateEndpointRequest const& request) override; + StatusOr CreateEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateEndpointRequest const& request) + override; + + future> CreateEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetEndpoint( google::cloud::aiplatform::v1::GetEndpointRequest const& request) override; @@ -71,19 +80,55 @@ class EndpointServiceConnectionImpl DeleteEndpoint(google::cloud::aiplatform::v1::DeleteEndpointRequest const& request) override; + StatusOr DeleteEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteEndpointRequest const& request) + override; + + future> + DeleteEndpoint(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeployModel(google::cloud::aiplatform::v1::DeployModelRequest const& request) override; + StatusOr DeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeployModelRequest const& request) + override; + + future> + DeployModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeployModel(google::cloud::aiplatform::v1::UndeployModelRequest const& request) override; + StatusOr UndeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UndeployModelRequest const& request) + override; + + future> + UndeployModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> MutateDeployedModel( google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request) override; + StatusOr MutateDeployedModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request) + override; + + future> + MutateDeployedModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.cc index 2ace50213610a..c596c896e422e 100644 --- a/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.cc @@ -42,6 +42,30 @@ EndpointServiceTracingConnection::CreateEndpoint( return internal::EndSpan(std::move(span), child_->CreateEndpoint(request)); } +StatusOr +EndpointServiceTracingConnection::CreateEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateEndpointRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::EndpointServiceConnection::CreateEndpoint"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateEndpoint(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EndpointServiceTracingConnection::CreateEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::EndpointServiceConnection::CreateEndpoint"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateEndpoint(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr EndpointServiceTracingConnection::GetEndpoint( google::cloud::aiplatform::v1::GetEndpointRequest const& request) { @@ -80,6 +104,30 @@ EndpointServiceTracingConnection::DeleteEndpoint( return internal::EndSpan(std::move(span), child_->DeleteEndpoint(request)); } +StatusOr +EndpointServiceTracingConnection::DeleteEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteEndpointRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::EndpointServiceConnection::DeleteEndpoint"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteEndpoint(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EndpointServiceTracingConnection::DeleteEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::EndpointServiceConnection::DeleteEndpoint"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteEndpoint(google::cloud::ExperimentalTag{}, operation)); +} + future> EndpointServiceTracingConnection::DeployModel( google::cloud::aiplatform::v1::DeployModelRequest const& request) { @@ -89,6 +137,30 @@ EndpointServiceTracingConnection::DeployModel( return internal::EndSpan(std::move(span), child_->DeployModel(request)); } +StatusOr +EndpointServiceTracingConnection::DeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeployModelRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::EndpointServiceConnection::DeployModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeployModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EndpointServiceTracingConnection::DeployModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::EndpointServiceConnection::DeployModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeployModel(google::cloud::ExperimentalTag{}, operation)); +} + future> EndpointServiceTracingConnection::UndeployModel( google::cloud::aiplatform::v1::UndeployModelRequest const& request) { @@ -98,6 +170,30 @@ EndpointServiceTracingConnection::UndeployModel( return internal::EndSpan(std::move(span), child_->UndeployModel(request)); } +StatusOr +EndpointServiceTracingConnection::UndeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UndeployModelRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::EndpointServiceConnection::UndeployModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UndeployModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EndpointServiceTracingConnection::UndeployModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::EndpointServiceConnection::UndeployModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UndeployModel(google::cloud::ExperimentalTag{}, operation)); +} + future> EndpointServiceTracingConnection::MutateDeployedModel( google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request) { @@ -108,6 +204,30 @@ EndpointServiceTracingConnection::MutateDeployedModel( child_->MutateDeployedModel(request)); } +StatusOr +EndpointServiceTracingConnection::MutateDeployedModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::EndpointServiceConnection::MutateDeployedModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->MutateDeployedModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EndpointServiceTracingConnection::MutateDeployedModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::EndpointServiceConnection::MutateDeployedModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->MutateDeployedModel(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.h b/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.h index ef1d478730eea..4c904d0dce4c1 100644 --- a/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.h @@ -44,6 +44,15 @@ class EndpointServiceTracingConnection google::cloud::aiplatform::v1::CreateEndpointRequest const& request) override; + StatusOr CreateEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateEndpointRequest const& request) + override; + + future> CreateEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetEndpoint( google::cloud::aiplatform::v1::GetEndpointRequest const& request) override; @@ -59,19 +68,55 @@ class EndpointServiceTracingConnection DeleteEndpoint(google::cloud::aiplatform::v1::DeleteEndpointRequest const& request) override; + StatusOr DeleteEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteEndpointRequest const& request) + override; + + future> + DeleteEndpoint(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeployModel(google::cloud::aiplatform::v1::DeployModelRequest const& request) override; + StatusOr DeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeployModelRequest const& request) + override; + + future> + DeployModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeployModel(google::cloud::aiplatform::v1::UndeployModelRequest const& request) override; + StatusOr UndeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UndeployModelRequest const& request) + override; + + future> + UndeployModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> MutateDeployedModel( google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request) override; + StatusOr MutateDeployedModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request) + override; + + future> + MutateDeployedModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.cc b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.cc index 3583458861401..efbc4d78ebd5f 100644 --- a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.cc @@ -118,6 +118,63 @@ FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureOnlineStore( polling_policy(*current), __func__); } +StatusOr +FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateFeatureOnlineStore(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& + request) { + return stub_->CreateFeatureOnlineStore(context, options, request); + }, + *current, request, __func__); +} + +future> +FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureOnlineStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateFeatureOnlineStore", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::FeatureOnlineStore>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::FeatureOnlineStore>, + polling_policy(*current), __func__); +} + StatusOr FeatureOnlineStoreAdminServiceConnectionImpl::GetFeatureOnlineStore( google::cloud::aiplatform::v1::GetFeatureOnlineStoreRequest const& @@ -212,6 +269,63 @@ FeatureOnlineStoreAdminServiceConnectionImpl::UpdateFeatureOnlineStore( polling_policy(*current), __func__); } +StatusOr +FeatureOnlineStoreAdminServiceConnectionImpl::UpdateFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateFeatureOnlineStore(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& + request) { + return stub_->UpdateFeatureOnlineStore(context, options, request); + }, + *current, request, __func__); +} + +future> +FeatureOnlineStoreAdminServiceConnectionImpl::UpdateFeatureOnlineStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateFeatureOnlineStore", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::FeatureOnlineStore>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::FeatureOnlineStore>, + polling_policy(*current), __func__); +} + future> FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureOnlineStore( google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& @@ -253,6 +367,63 @@ FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureOnlineStore( polling_policy(*current), __func__); } +StatusOr +FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteFeatureOnlineStore(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& + request) { + return stub_->DeleteFeatureOnlineStore(context, options, request); + }, + *current, request, __func__); +} + +future> +FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureOnlineStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteFeatureOnlineStore", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + future> FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureView( google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request) { @@ -293,6 +464,61 @@ FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureView( polling_policy(*current), __func__); } +StatusOr +FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateFeatureView(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CreateFeatureViewRequest const& + request) { + return stub_->CreateFeatureView(context, options, request); + }, + *current, request, __func__); +} + +future> +FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureView( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateFeatureView", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::FeatureView>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::FeatureView>, + polling_policy(*current), __func__); +} + StatusOr FeatureOnlineStoreAdminServiceConnectionImpl::GetFeatureView( google::cloud::aiplatform::v1::GetFeatureViewRequest const& request) { @@ -383,6 +609,61 @@ FeatureOnlineStoreAdminServiceConnectionImpl::UpdateFeatureView( polling_policy(*current), __func__); } +StatusOr +FeatureOnlineStoreAdminServiceConnectionImpl::UpdateFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateFeatureView(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& + request) { + return stub_->UpdateFeatureView(context, options, request); + }, + *current, request, __func__); +} + +future> +FeatureOnlineStoreAdminServiceConnectionImpl::UpdateFeatureView( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateFeatureView", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::FeatureView>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::FeatureView>, + polling_policy(*current), __func__); +} + future> FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureView( google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request) { @@ -423,6 +704,61 @@ FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureView( polling_policy(*current), __func__); } +StatusOr +FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteFeatureView(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& + request) { + return stub_->DeleteFeatureView(context, options, request); + }, + *current, request, __func__); +} + +future> +FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureView( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteFeatureView", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr FeatureOnlineStoreAdminServiceConnectionImpl::SyncFeatureView( google::cloud::aiplatform::v1::SyncFeatureViewRequest const& request) { diff --git a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.h b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.h index 17cedeb557057..9f689da125705 100644 --- a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.h @@ -59,6 +59,16 @@ class FeatureOnlineStoreAdminServiceConnectionImpl google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& request) override; + StatusOr CreateFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& + request) override; + + future> + CreateFeatureOnlineStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetFeatureOnlineStore( google::cloud::aiplatform::v1::GetFeatureOnlineStoreRequest const& @@ -74,16 +84,45 @@ class FeatureOnlineStoreAdminServiceConnectionImpl google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& request) override; + StatusOr UpdateFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& + request) override; + + future> + UpdateFeatureOnlineStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFeatureOnlineStore( google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& request) override; + StatusOr DeleteFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& + request) override; + + future> + DeleteFeatureOnlineStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateFeatureView( google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request) override; + StatusOr CreateFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request) + override; + + future> + CreateFeatureView(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetFeatureView( google::cloud::aiplatform::v1::GetFeatureViewRequest const& request) override; @@ -96,11 +135,29 @@ class FeatureOnlineStoreAdminServiceConnectionImpl google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request) override; + StatusOr UpdateFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request) + override; + + future> + UpdateFeatureView(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFeatureView( google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request) override; + StatusOr DeleteFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request) + override; + + future> + DeleteFeatureView(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr SyncFeatureView(google::cloud::aiplatform::v1::SyncFeatureViewRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.cc index a4816c3c8b4b6..a96fc8f1cdf5e 100644 --- a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.cc @@ -47,6 +47,33 @@ FeatureOnlineStoreAdminServiceTracingConnection::CreateFeatureOnlineStore( child_->CreateFeatureOnlineStore(request)); } +StatusOr +FeatureOnlineStoreAdminServiceTracingConnection::CreateFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" + "CreateFeatureOnlineStore"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateFeatureOnlineStore( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeatureOnlineStoreAdminServiceTracingConnection::CreateFeatureOnlineStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" + "CreateFeatureOnlineStore"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateFeatureOnlineStore( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr FeatureOnlineStoreAdminServiceTracingConnection::GetFeatureOnlineStore( google::cloud::aiplatform::v1::GetFeatureOnlineStoreRequest const& @@ -83,6 +110,33 @@ FeatureOnlineStoreAdminServiceTracingConnection::UpdateFeatureOnlineStore( child_->UpdateFeatureOnlineStore(request)); } +StatusOr +FeatureOnlineStoreAdminServiceTracingConnection::UpdateFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" + "UpdateFeatureOnlineStore"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateFeatureOnlineStore( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeatureOnlineStoreAdminServiceTracingConnection::UpdateFeatureOnlineStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" + "UpdateFeatureOnlineStore"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateFeatureOnlineStore( + google::cloud::ExperimentalTag{}, operation)); +} + future> FeatureOnlineStoreAdminServiceTracingConnection::DeleteFeatureOnlineStore( google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& @@ -95,6 +149,33 @@ FeatureOnlineStoreAdminServiceTracingConnection::DeleteFeatureOnlineStore( child_->DeleteFeatureOnlineStore(request)); } +StatusOr +FeatureOnlineStoreAdminServiceTracingConnection::DeleteFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" + "DeleteFeatureOnlineStore"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteFeatureOnlineStore( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeatureOnlineStoreAdminServiceTracingConnection::DeleteFeatureOnlineStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" + "DeleteFeatureOnlineStore"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteFeatureOnlineStore( + google::cloud::ExperimentalTag{}, operation)); +} + future> FeatureOnlineStoreAdminServiceTracingConnection::CreateFeatureView( google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request) { @@ -105,6 +186,32 @@ FeatureOnlineStoreAdminServiceTracingConnection::CreateFeatureView( return internal::EndSpan(std::move(span), child_->CreateFeatureView(request)); } +StatusOr +FeatureOnlineStoreAdminServiceTracingConnection::CreateFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" + "CreateFeatureView"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateFeatureView(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeatureOnlineStoreAdminServiceTracingConnection::CreateFeatureView( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" + "CreateFeatureView"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateFeatureView(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr FeatureOnlineStoreAdminServiceTracingConnection::GetFeatureView( google::cloud::aiplatform::v1::GetFeatureViewRequest const& request) { @@ -138,6 +245,32 @@ FeatureOnlineStoreAdminServiceTracingConnection::UpdateFeatureView( return internal::EndSpan(std::move(span), child_->UpdateFeatureView(request)); } +StatusOr +FeatureOnlineStoreAdminServiceTracingConnection::UpdateFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" + "UpdateFeatureView"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateFeatureView(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeatureOnlineStoreAdminServiceTracingConnection::UpdateFeatureView( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" + "UpdateFeatureView"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateFeatureView(google::cloud::ExperimentalTag{}, operation)); +} + future> FeatureOnlineStoreAdminServiceTracingConnection::DeleteFeatureView( google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request) { @@ -148,6 +281,32 @@ FeatureOnlineStoreAdminServiceTracingConnection::DeleteFeatureView( return internal::EndSpan(std::move(span), child_->DeleteFeatureView(request)); } +StatusOr +FeatureOnlineStoreAdminServiceTracingConnection::DeleteFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" + "DeleteFeatureView"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteFeatureView(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeatureOnlineStoreAdminServiceTracingConnection::DeleteFeatureView( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" + "DeleteFeatureView"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteFeatureView(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr FeatureOnlineStoreAdminServiceTracingConnection::SyncFeatureView( google::cloud::aiplatform::v1::SyncFeatureViewRequest const& request) { diff --git a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.h b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.h index 733a10366afcc..35b3141236cfd 100644 --- a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.h @@ -46,6 +46,16 @@ class FeatureOnlineStoreAdminServiceTracingConnection google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& request) override; + StatusOr CreateFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& + request) override; + + future> + CreateFeatureOnlineStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetFeatureOnlineStore( google::cloud::aiplatform::v1::GetFeatureOnlineStoreRequest const& @@ -61,16 +71,45 @@ class FeatureOnlineStoreAdminServiceTracingConnection google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& request) override; + StatusOr UpdateFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& + request) override; + + future> + UpdateFeatureOnlineStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFeatureOnlineStore( google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& request) override; + StatusOr DeleteFeatureOnlineStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& + request) override; + + future> + DeleteFeatureOnlineStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateFeatureView( google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request) override; + StatusOr CreateFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request) + override; + + future> + CreateFeatureView(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetFeatureView( google::cloud::aiplatform::v1::GetFeatureViewRequest const& request) override; @@ -83,11 +122,29 @@ class FeatureOnlineStoreAdminServiceTracingConnection google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request) override; + StatusOr UpdateFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request) + override; + + future> + UpdateFeatureView(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFeatureView( google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request) override; + StatusOr DeleteFeatureView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request) + override; + + future> + DeleteFeatureView(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr SyncFeatureView(google::cloud::aiplatform::v1::SyncFeatureViewRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.cc b/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.cc index f574caa6bafec..aed657218644b 100644 --- a/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.cc @@ -111,6 +111,61 @@ FeatureRegistryServiceConnectionImpl::CreateFeatureGroup( polling_policy(*current), __func__); } +StatusOr +FeatureRegistryServiceConnectionImpl::CreateFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateFeatureGroup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& + request) { + return stub_->CreateFeatureGroup(context, options, request); + }, + *current, request, __func__); +} + +future> +FeatureRegistryServiceConnectionImpl::CreateFeatureGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateFeatureGroup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::FeatureGroup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::FeatureGroup>, + polling_policy(*current), __func__); +} + StatusOr FeatureRegistryServiceConnectionImpl::GetFeatureGroup( google::cloud::aiplatform::v1::GetFeatureGroupRequest const& request) { @@ -202,6 +257,61 @@ FeatureRegistryServiceConnectionImpl::UpdateFeatureGroup( polling_policy(*current), __func__); } +StatusOr +FeatureRegistryServiceConnectionImpl::UpdateFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateFeatureGroup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& + request) { + return stub_->UpdateFeatureGroup(context, options, request); + }, + *current, request, __func__); +} + +future> +FeatureRegistryServiceConnectionImpl::UpdateFeatureGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateFeatureGroup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::FeatureGroup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::FeatureGroup>, + polling_policy(*current), __func__); +} + future> FeatureRegistryServiceConnectionImpl::DeleteFeatureGroup( google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request) { @@ -242,6 +352,61 @@ FeatureRegistryServiceConnectionImpl::DeleteFeatureGroup( polling_policy(*current), __func__); } +StatusOr +FeatureRegistryServiceConnectionImpl::DeleteFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteFeatureGroup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& + request) { + return stub_->DeleteFeatureGroup(context, options, request); + }, + *current, request, __func__); +} + +future> +FeatureRegistryServiceConnectionImpl::DeleteFeatureGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteFeatureGroup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + future> FeatureRegistryServiceConnectionImpl::CreateFeature( google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { @@ -281,6 +446,60 @@ FeatureRegistryServiceConnectionImpl::CreateFeature( polling_policy(*current), __func__); } +StatusOr +FeatureRegistryServiceConnectionImpl::CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateFeature(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { + return stub_->CreateFeature(context, options, request); + }, + *current, request, __func__); +} + +future> +FeatureRegistryServiceConnectionImpl::CreateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateFeature", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::Feature>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::Feature>, + polling_policy(*current), __func__); +} + StatusOr FeatureRegistryServiceConnectionImpl::GetFeature( google::cloud::aiplatform::v1::GetFeatureRequest const& request) { @@ -369,6 +588,60 @@ FeatureRegistryServiceConnectionImpl::UpdateFeature( polling_policy(*current), __func__); } +StatusOr +FeatureRegistryServiceConnectionImpl::UpdateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateFeature(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::UpdateFeatureRequest const& request) { + return stub_->UpdateFeature(context, options, request); + }, + *current, request, __func__); +} + +future> +FeatureRegistryServiceConnectionImpl::UpdateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateFeature", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::Feature>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::Feature>, + polling_policy(*current), __func__); +} + future> FeatureRegistryServiceConnectionImpl::DeleteFeature( google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) { @@ -408,6 +681,61 @@ FeatureRegistryServiceConnectionImpl::DeleteFeature( polling_policy(*current), __func__); } +StatusOr +FeatureRegistryServiceConnectionImpl::DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteFeature(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) { + return stub_->DeleteFeature(context, options, request); + }, + *current, request, __func__); +} + +future> +FeatureRegistryServiceConnectionImpl::DeleteFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteFeature", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace aiplatform_v1_internal } // namespace cloud diff --git a/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.h b/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.h index 5d12569e6ec05..1223b041c0578 100644 --- a/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.h @@ -57,6 +57,15 @@ class FeatureRegistryServiceConnectionImpl google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request) override; + StatusOr CreateFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request) + override; + + future> + CreateFeatureGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetFeatureGroup( google::cloud::aiplatform::v1::GetFeatureGroupRequest const& request) override; @@ -69,15 +78,42 @@ class FeatureRegistryServiceConnectionImpl google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request) override; + StatusOr UpdateFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request) + override; + + future> + UpdateFeatureGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFeatureGroup( google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request) override; + StatusOr DeleteFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request) + override; + + future> + DeleteFeatureGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateFeature( google::cloud::aiplatform::v1::CreateFeatureRequest const& request) override; + StatusOr CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureRequest const& request) + override; + + future> CreateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetFeature( google::cloud::aiplatform::v1::GetFeatureRequest const& request) override; @@ -88,10 +124,28 @@ class FeatureRegistryServiceConnectionImpl google::cloud::aiplatform::v1::UpdateFeatureRequest const& request) override; + StatusOr UpdateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureRequest const& request) + override; + + future> UpdateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFeature(google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) override; + StatusOr DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) + override; + + future> + DeleteFeature(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.cc index e6bb8eba148f7..303f83a5374c8 100644 --- a/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.cc @@ -44,6 +44,30 @@ FeatureRegistryServiceTracingConnection::CreateFeatureGroup( child_->CreateFeatureGroup(request)); } +StatusOr +FeatureRegistryServiceTracingConnection::CreateFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureRegistryServiceConnection::CreateFeatureGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateFeatureGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeatureRegistryServiceTracingConnection::CreateFeatureGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureRegistryServiceConnection::CreateFeatureGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateFeatureGroup(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr FeatureRegistryServiceTracingConnection::GetFeatureGroup( google::cloud::aiplatform::v1::GetFeatureGroupRequest const& request) { @@ -75,6 +99,30 @@ FeatureRegistryServiceTracingConnection::UpdateFeatureGroup( child_->UpdateFeatureGroup(request)); } +StatusOr +FeatureRegistryServiceTracingConnection::UpdateFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureRegistryServiceConnection::UpdateFeatureGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateFeatureGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeatureRegistryServiceTracingConnection::UpdateFeatureGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureRegistryServiceConnection::UpdateFeatureGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateFeatureGroup(google::cloud::ExperimentalTag{}, operation)); +} + future> FeatureRegistryServiceTracingConnection::DeleteFeatureGroup( google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request) { @@ -85,6 +133,30 @@ FeatureRegistryServiceTracingConnection::DeleteFeatureGroup( child_->DeleteFeatureGroup(request)); } +StatusOr +FeatureRegistryServiceTracingConnection::DeleteFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureRegistryServiceConnection::DeleteFeatureGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteFeatureGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeatureRegistryServiceTracingConnection::DeleteFeatureGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureRegistryServiceConnection::DeleteFeatureGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteFeatureGroup(google::cloud::ExperimentalTag{}, operation)); +} + future> FeatureRegistryServiceTracingConnection::CreateFeature( google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { @@ -94,6 +166,30 @@ FeatureRegistryServiceTracingConnection::CreateFeature( return internal::EndSpan(std::move(span), child_->CreateFeature(request)); } +StatusOr +FeatureRegistryServiceTracingConnection::CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureRegistryServiceConnection::CreateFeature"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateFeature(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeatureRegistryServiceTracingConnection::CreateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureRegistryServiceConnection::CreateFeature"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateFeature(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr FeatureRegistryServiceTracingConnection::GetFeature( google::cloud::aiplatform::v1::GetFeatureRequest const& request) { @@ -123,6 +219,30 @@ FeatureRegistryServiceTracingConnection::UpdateFeature( return internal::EndSpan(std::move(span), child_->UpdateFeature(request)); } +StatusOr +FeatureRegistryServiceTracingConnection::UpdateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureRegistryServiceConnection::UpdateFeature"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateFeature(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeatureRegistryServiceTracingConnection::UpdateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureRegistryServiceConnection::UpdateFeature"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateFeature(google::cloud::ExperimentalTag{}, operation)); +} + future> FeatureRegistryServiceTracingConnection::DeleteFeature( google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) { @@ -132,6 +252,30 @@ FeatureRegistryServiceTracingConnection::DeleteFeature( return internal::EndSpan(std::move(span), child_->DeleteFeature(request)); } +StatusOr +FeatureRegistryServiceTracingConnection::DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureRegistryServiceConnection::DeleteFeature"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteFeature(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeatureRegistryServiceTracingConnection::DeleteFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeatureRegistryServiceConnection::DeleteFeature"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteFeature(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.h b/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.h index 2e9c112df15c1..e2dad1679d9f7 100644 --- a/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.h @@ -45,6 +45,15 @@ class FeatureRegistryServiceTracingConnection google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request) override; + StatusOr CreateFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request) + override; + + future> + CreateFeatureGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetFeatureGroup( google::cloud::aiplatform::v1::GetFeatureGroupRequest const& request) override; @@ -57,15 +66,42 @@ class FeatureRegistryServiceTracingConnection google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request) override; + StatusOr UpdateFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request) + override; + + future> + UpdateFeatureGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFeatureGroup( google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request) override; + StatusOr DeleteFeatureGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request) + override; + + future> + DeleteFeatureGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateFeature( google::cloud::aiplatform::v1::CreateFeatureRequest const& request) override; + StatusOr CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureRequest const& request) + override; + + future> CreateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetFeature( google::cloud::aiplatform::v1::GetFeatureRequest const& request) override; @@ -76,10 +112,28 @@ class FeatureRegistryServiceTracingConnection google::cloud::aiplatform::v1::UpdateFeatureRequest const& request) override; + StatusOr UpdateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureRequest const& request) + override; + + future> UpdateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFeature(google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) override; + StatusOr DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) + override; + + future> + DeleteFeature(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.cc b/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.cc index b92e57f3f7683..0a30efaf6d4b2 100644 --- a/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.cc @@ -108,6 +108,61 @@ FeaturestoreServiceConnectionImpl::CreateFeaturestore( polling_policy(*current), __func__); } +StatusOr +FeaturestoreServiceConnectionImpl::CreateFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateFeaturestore(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& + request) { + return stub_->CreateFeaturestore(context, options, request); + }, + *current, request, __func__); +} + +future> +FeaturestoreServiceConnectionImpl::CreateFeaturestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateFeaturestore", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::Featurestore>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::Featurestore>, + polling_policy(*current), __func__); +} + StatusOr FeaturestoreServiceConnectionImpl::GetFeaturestore( google::cloud::aiplatform::v1::GetFeaturestoreRequest const& request) { @@ -198,6 +253,61 @@ FeaturestoreServiceConnectionImpl::UpdateFeaturestore( polling_policy(*current), __func__); } +StatusOr +FeaturestoreServiceConnectionImpl::UpdateFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateFeaturestore(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& + request) { + return stub_->UpdateFeaturestore(context, options, request); + }, + *current, request, __func__); +} + +future> +FeaturestoreServiceConnectionImpl::UpdateFeaturestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateFeaturestore", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::Featurestore>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::Featurestore>, + polling_policy(*current), __func__); +} + future> FeaturestoreServiceConnectionImpl::DeleteFeaturestore( google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request) { @@ -238,6 +348,61 @@ FeaturestoreServiceConnectionImpl::DeleteFeaturestore( polling_policy(*current), __func__); } +StatusOr +FeaturestoreServiceConnectionImpl::DeleteFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteFeaturestore(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& + request) { + return stub_->DeleteFeaturestore(context, options, request); + }, + *current, request, __func__); +} + +future> +FeaturestoreServiceConnectionImpl::DeleteFeaturestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteFeaturestore", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + future> FeaturestoreServiceConnectionImpl::CreateEntityType( google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request) { @@ -278,6 +443,61 @@ FeaturestoreServiceConnectionImpl::CreateEntityType( polling_policy(*current), __func__); } +StatusOr +FeaturestoreServiceConnectionImpl::CreateEntityType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateEntityType(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CreateEntityTypeRequest const& + request) { + return stub_->CreateEntityType(context, options, request); + }, + *current, request, __func__); +} + +future> +FeaturestoreServiceConnectionImpl::CreateEntityType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateEntityType", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::EntityType>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::EntityType>, + polling_policy(*current), __func__); +} + StatusOr FeaturestoreServiceConnectionImpl::GetEntityType( google::cloud::aiplatform::v1::GetEntityTypeRequest const& request) { @@ -382,6 +602,61 @@ FeaturestoreServiceConnectionImpl::DeleteEntityType( polling_policy(*current), __func__); } +StatusOr +FeaturestoreServiceConnectionImpl::DeleteEntityType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteEntityType(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& + request) { + return stub_->DeleteEntityType(context, options, request); + }, + *current, request, __func__); +} + +future> +FeaturestoreServiceConnectionImpl::DeleteEntityType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteEntityType", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + future> FeaturestoreServiceConnectionImpl::CreateFeature( google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { @@ -421,6 +696,60 @@ FeaturestoreServiceConnectionImpl::CreateFeature( polling_policy(*current), __func__); } +StatusOr +FeaturestoreServiceConnectionImpl::CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateFeature(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { + return stub_->CreateFeature(context, options, request); + }, + *current, request, __func__); +} + +future> +FeaturestoreServiceConnectionImpl::CreateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateFeature", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::Feature>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::Feature>, + polling_policy(*current), __func__); +} + future> FeaturestoreServiceConnectionImpl::BatchCreateFeatures( google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request) { @@ -461,6 +790,61 @@ FeaturestoreServiceConnectionImpl::BatchCreateFeatures( polling_policy(*current), __func__); } +StatusOr +FeaturestoreServiceConnectionImpl::BatchCreateFeatures( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchCreateFeatures(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& + request) { + return stub_->BatchCreateFeatures(context, options, request); + }, + *current, request, __func__); +} + +future> +FeaturestoreServiceConnectionImpl::BatchCreateFeatures( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to BatchCreateFeatures", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::BatchCreateFeaturesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::BatchCreateFeaturesResponse>, + polling_policy(*current), __func__); +} + StatusOr FeaturestoreServiceConnectionImpl::GetFeature( google::cloud::aiplatform::v1::GetFeatureRequest const& request) { @@ -563,6 +947,61 @@ FeaturestoreServiceConnectionImpl::DeleteFeature( polling_policy(*current), __func__); } +StatusOr +FeaturestoreServiceConnectionImpl::DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteFeature(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) { + return stub_->DeleteFeature(context, options, request); + }, + *current, request, __func__); +} + +future> +FeaturestoreServiceConnectionImpl::DeleteFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteFeature", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + future> FeaturestoreServiceConnectionImpl::ImportFeatureValues( google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request) { @@ -603,6 +1042,61 @@ FeaturestoreServiceConnectionImpl::ImportFeatureValues( polling_policy(*current), __func__); } +StatusOr +FeaturestoreServiceConnectionImpl::ImportFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportFeatureValues(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& + request) { + return stub_->ImportFeatureValues(context, options, request); + }, + *current, request, __func__); +} + +future> +FeaturestoreServiceConnectionImpl::ImportFeatureValues( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportFeatureValues", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::ImportFeatureValuesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::ImportFeatureValuesResponse>, + polling_policy(*current), __func__); +} + future> FeaturestoreServiceConnectionImpl::BatchReadFeatureValues( google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& @@ -644,6 +1138,62 @@ FeaturestoreServiceConnectionImpl::BatchReadFeatureValues( polling_policy(*current), __func__); } +StatusOr +FeaturestoreServiceConnectionImpl::BatchReadFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchReadFeatureValues(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& + request) { + return stub_->BatchReadFeatureValues(context, options, request); + }, + *current, request, __func__); +} + +future> +FeaturestoreServiceConnectionImpl::BatchReadFeatureValues( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to BatchReadFeatureValues", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::BatchReadFeatureValuesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::BatchReadFeatureValuesResponse>, + polling_policy(*current), __func__); +} + future> FeaturestoreServiceConnectionImpl::ExportFeatureValues( google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request) { @@ -684,6 +1234,61 @@ FeaturestoreServiceConnectionImpl::ExportFeatureValues( polling_policy(*current), __func__); } +StatusOr +FeaturestoreServiceConnectionImpl::ExportFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportFeatureValues(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& + request) { + return stub_->ExportFeatureValues(context, options, request); + }, + *current, request, __func__); +} + +future> +FeaturestoreServiceConnectionImpl::ExportFeatureValues( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ExportFeatureValues", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::ExportFeatureValuesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::ExportFeatureValuesResponse>, + polling_policy(*current), __func__); +} + future> FeaturestoreServiceConnectionImpl::DeleteFeatureValues( google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request) { @@ -724,6 +1329,61 @@ FeaturestoreServiceConnectionImpl::DeleteFeatureValues( polling_policy(*current), __func__); } +StatusOr +FeaturestoreServiceConnectionImpl::DeleteFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteFeatureValues(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& + request) { + return stub_->DeleteFeatureValues(context, options, request); + }, + *current, request, __func__); +} + +future> +FeaturestoreServiceConnectionImpl::DeleteFeatureValues( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteFeatureValues", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteFeatureValuesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::DeleteFeatureValuesResponse>, + polling_policy(*current), __func__); +} + StreamRange FeaturestoreServiceConnectionImpl::SearchFeatures( google::cloud::aiplatform::v1::SearchFeaturesRequest request) { diff --git a/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.h b/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.h index 86be4aeaaa0b0..7294bdf9aaac7 100644 --- a/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.h @@ -57,6 +57,15 @@ class FeaturestoreServiceConnectionImpl google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request) override; + StatusOr CreateFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request) + override; + + future> + CreateFeaturestore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetFeaturestore( google::cloud::aiplatform::v1::GetFeaturestoreRequest const& request) override; @@ -69,15 +78,42 @@ class FeaturestoreServiceConnectionImpl google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request) override; + StatusOr UpdateFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request) + override; + + future> + UpdateFeaturestore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFeaturestore( google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request) override; + StatusOr DeleteFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request) + override; + + future> + DeleteFeaturestore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateEntityType( google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request) override; + StatusOr CreateEntityType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request) + override; + + future> CreateEntityType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetEntityType( google::cloud::aiplatform::v1::GetEntityTypeRequest const& request) override; @@ -93,15 +129,42 @@ class FeaturestoreServiceConnectionImpl DeleteEntityType(google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request) override; + StatusOr DeleteEntityType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request) + override; + + future> + DeleteEntityType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateFeature( google::cloud::aiplatform::v1::CreateFeatureRequest const& request) override; + StatusOr CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureRequest const& request) + override; + + future> CreateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchCreateFeatures( google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request) override; + StatusOr BatchCreateFeatures( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request) + override; + + future> + BatchCreateFeatures(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetFeature( google::cloud::aiplatform::v1::GetFeatureRequest const& request) override; @@ -116,27 +179,74 @@ class FeaturestoreServiceConnectionImpl DeleteFeature(google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) override; + StatusOr DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) + override; + + future> + DeleteFeature(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportFeatureValues( google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request) override; + StatusOr ImportFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request) + override; + + future> + ImportFeatureValues(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> BatchReadFeatureValues( google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& request) override; + StatusOr BatchReadFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& + request) override; + + future< + StatusOr> + BatchReadFeatureValues( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportFeatureValues( google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request) override; + StatusOr ExportFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request) + override; + + future> + ExportFeatureValues(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFeatureValues( google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request) override; + StatusOr DeleteFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request) + override; + + future> + DeleteFeatureValues(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange SearchFeatures( google::cloud::aiplatform::v1::SearchFeaturesRequest request) override; diff --git a/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.cc index 12a974d6b5a88..c2557becc4e45 100644 --- a/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.cc @@ -43,6 +43,30 @@ FeaturestoreServiceTracingConnection::CreateFeaturestore( child_->CreateFeaturestore(request)); } +StatusOr +FeaturestoreServiceTracingConnection::CreateFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::CreateFeaturestore"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateFeaturestore(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeaturestoreServiceTracingConnection::CreateFeaturestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::CreateFeaturestore"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateFeaturestore(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr FeaturestoreServiceTracingConnection::GetFeaturestore( google::cloud::aiplatform::v1::GetFeaturestoreRequest const& request) { @@ -74,6 +98,30 @@ FeaturestoreServiceTracingConnection::UpdateFeaturestore( child_->UpdateFeaturestore(request)); } +StatusOr +FeaturestoreServiceTracingConnection::UpdateFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::UpdateFeaturestore"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateFeaturestore(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeaturestoreServiceTracingConnection::UpdateFeaturestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::UpdateFeaturestore"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateFeaturestore(google::cloud::ExperimentalTag{}, operation)); +} + future> FeaturestoreServiceTracingConnection::DeleteFeaturestore( google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request) { @@ -84,6 +132,30 @@ FeaturestoreServiceTracingConnection::DeleteFeaturestore( child_->DeleteFeaturestore(request)); } +StatusOr +FeaturestoreServiceTracingConnection::DeleteFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::DeleteFeaturestore"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteFeaturestore(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeaturestoreServiceTracingConnection::DeleteFeaturestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::DeleteFeaturestore"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteFeaturestore(google::cloud::ExperimentalTag{}, operation)); +} + future> FeaturestoreServiceTracingConnection::CreateEntityType( google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request) { @@ -93,6 +165,30 @@ FeaturestoreServiceTracingConnection::CreateEntityType( return internal::EndSpan(std::move(span), child_->CreateEntityType(request)); } +StatusOr +FeaturestoreServiceTracingConnection::CreateEntityType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::CreateEntityType"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateEntityType(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeaturestoreServiceTracingConnection::CreateEntityType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::CreateEntityType"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateEntityType(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr FeaturestoreServiceTracingConnection::GetEntityType( google::cloud::aiplatform::v1::GetEntityTypeRequest const& request) { @@ -132,6 +228,30 @@ FeaturestoreServiceTracingConnection::DeleteEntityType( return internal::EndSpan(std::move(span), child_->DeleteEntityType(request)); } +StatusOr +FeaturestoreServiceTracingConnection::DeleteEntityType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::DeleteEntityType"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteEntityType(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeaturestoreServiceTracingConnection::DeleteEntityType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::DeleteEntityType"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteEntityType(google::cloud::ExperimentalTag{}, operation)); +} + future> FeaturestoreServiceTracingConnection::CreateFeature( google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { @@ -141,6 +261,30 @@ FeaturestoreServiceTracingConnection::CreateFeature( return internal::EndSpan(std::move(span), child_->CreateFeature(request)); } +StatusOr +FeaturestoreServiceTracingConnection::CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::CreateFeature"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateFeature(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeaturestoreServiceTracingConnection::CreateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::CreateFeature"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateFeature(google::cloud::ExperimentalTag{}, operation)); +} + future> FeaturestoreServiceTracingConnection::BatchCreateFeatures( google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request) { @@ -151,6 +295,30 @@ FeaturestoreServiceTracingConnection::BatchCreateFeatures( child_->BatchCreateFeatures(request)); } +StatusOr +FeaturestoreServiceTracingConnection::BatchCreateFeatures( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::BatchCreateFeatures"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BatchCreateFeatures(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeaturestoreServiceTracingConnection::BatchCreateFeatures( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::BatchCreateFeatures"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BatchCreateFeatures(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr FeaturestoreServiceTracingConnection::GetFeature( google::cloud::aiplatform::v1::GetFeatureRequest const& request) { @@ -189,6 +357,30 @@ FeaturestoreServiceTracingConnection::DeleteFeature( return internal::EndSpan(std::move(span), child_->DeleteFeature(request)); } +StatusOr +FeaturestoreServiceTracingConnection::DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::DeleteFeature"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteFeature(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeaturestoreServiceTracingConnection::DeleteFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::DeleteFeature"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteFeature(google::cloud::ExperimentalTag{}, operation)); +} + future> FeaturestoreServiceTracingConnection::ImportFeatureValues( google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request) { @@ -199,6 +391,30 @@ FeaturestoreServiceTracingConnection::ImportFeatureValues( child_->ImportFeatureValues(request)); } +StatusOr +FeaturestoreServiceTracingConnection::ImportFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::ImportFeatureValues"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportFeatureValues(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeaturestoreServiceTracingConnection::ImportFeatureValues( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::ImportFeatureValues"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportFeatureValues(google::cloud::ExperimentalTag{}, operation)); +} + future> FeaturestoreServiceTracingConnection::BatchReadFeatureValues( google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& @@ -210,6 +426,31 @@ FeaturestoreServiceTracingConnection::BatchReadFeatureValues( child_->BatchReadFeatureValues(request)); } +StatusOr +FeaturestoreServiceTracingConnection::BatchReadFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::BatchReadFeatureValues"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->BatchReadFeatureValues( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeaturestoreServiceTracingConnection::BatchReadFeatureValues( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::BatchReadFeatureValues"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->BatchReadFeatureValues( + google::cloud::ExperimentalTag{}, operation)); +} + future> FeaturestoreServiceTracingConnection::ExportFeatureValues( google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request) { @@ -220,6 +461,30 @@ FeaturestoreServiceTracingConnection::ExportFeatureValues( child_->ExportFeatureValues(request)); } +StatusOr +FeaturestoreServiceTracingConnection::ExportFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::ExportFeatureValues"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportFeatureValues(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeaturestoreServiceTracingConnection::ExportFeatureValues( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::ExportFeatureValues"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportFeatureValues(google::cloud::ExperimentalTag{}, operation)); +} + future> FeaturestoreServiceTracingConnection::DeleteFeatureValues( google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request) { @@ -230,6 +495,30 @@ FeaturestoreServiceTracingConnection::DeleteFeatureValues( child_->DeleteFeatureValues(request)); } +StatusOr +FeaturestoreServiceTracingConnection::DeleteFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::DeleteFeatureValues"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteFeatureValues(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FeaturestoreServiceTracingConnection::DeleteFeatureValues( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::FeaturestoreServiceConnection::DeleteFeatureValues"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteFeatureValues(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange FeaturestoreServiceTracingConnection::SearchFeatures( google::cloud::aiplatform::v1::SearchFeaturesRequest request) { diff --git a/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.h b/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.h index 1f785a76a5058..86739d56b868f 100644 --- a/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.h @@ -45,6 +45,15 @@ class FeaturestoreServiceTracingConnection google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request) override; + StatusOr CreateFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request) + override; + + future> + CreateFeaturestore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetFeaturestore( google::cloud::aiplatform::v1::GetFeaturestoreRequest const& request) override; @@ -57,15 +66,42 @@ class FeaturestoreServiceTracingConnection google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request) override; + StatusOr UpdateFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request) + override; + + future> + UpdateFeaturestore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFeaturestore( google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request) override; + StatusOr DeleteFeaturestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request) + override; + + future> + DeleteFeaturestore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateEntityType( google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request) override; + StatusOr CreateEntityType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request) + override; + + future> CreateEntityType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetEntityType( google::cloud::aiplatform::v1::GetEntityTypeRequest const& request) override; @@ -81,15 +117,42 @@ class FeaturestoreServiceTracingConnection DeleteEntityType(google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request) override; + StatusOr DeleteEntityType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request) + override; + + future> + DeleteEntityType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateFeature( google::cloud::aiplatform::v1::CreateFeatureRequest const& request) override; + StatusOr CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureRequest const& request) + override; + + future> CreateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchCreateFeatures( google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request) override; + StatusOr BatchCreateFeatures( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request) + override; + + future> + BatchCreateFeatures(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetFeature( google::cloud::aiplatform::v1::GetFeatureRequest const& request) override; @@ -104,27 +167,74 @@ class FeaturestoreServiceTracingConnection DeleteFeature(google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) override; + StatusOr DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) + override; + + future> + DeleteFeature(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportFeatureValues( google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request) override; + StatusOr ImportFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request) + override; + + future> + ImportFeatureValues(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> BatchReadFeatureValues( google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& request) override; + StatusOr BatchReadFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& + request) override; + + future< + StatusOr> + BatchReadFeatureValues( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportFeatureValues( google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request) override; + StatusOr ExportFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request) + override; + + future> + ExportFeatureValues(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFeatureValues( google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request) override; + StatusOr DeleteFeatureValues( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request) + override; + + future> + DeleteFeatureValues(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange SearchFeatures( google::cloud::aiplatform::v1::SearchFeaturesRequest request) override; diff --git a/google/cloud/aiplatform/v1/internal/index_connection_impl.cc b/google/cloud/aiplatform/v1/internal/index_connection_impl.cc index 9c9be78cec0c7..d46a6800e9b26 100644 --- a/google/cloud/aiplatform/v1/internal/index_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/index_connection_impl.cc @@ -103,6 +103,59 @@ IndexServiceConnectionImpl::CreateIndex( polling_policy(*current), __func__); } +StatusOr +IndexServiceConnectionImpl::CreateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateIndexRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateIndex(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CreateIndexRequest const& request) { + return stub_->CreateIndex(context, options, request); + }, + *current, request, __func__); +} + +future> +IndexServiceConnectionImpl::CreateIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateIndex", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::Index>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::Index>, + polling_policy(*current), __func__); +} + StatusOr IndexServiceConnectionImpl::GetIndex( google::cloud::aiplatform::v1::GetIndexRequest const& request) { @@ -190,6 +243,59 @@ IndexServiceConnectionImpl::UpdateIndex( polling_policy(*current), __func__); } +StatusOr +IndexServiceConnectionImpl::UpdateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateIndexRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateIndex(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::UpdateIndexRequest const& request) { + return stub_->UpdateIndex(context, options, request); + }, + *current, request, __func__); +} + +future> +IndexServiceConnectionImpl::UpdateIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateIndex", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::Index>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::Index>, + polling_policy(*current), __func__); +} + future> IndexServiceConnectionImpl::DeleteIndex( google::cloud::aiplatform::v1::DeleteIndexRequest const& request) { @@ -229,6 +335,60 @@ IndexServiceConnectionImpl::DeleteIndex( polling_policy(*current), __func__); } +StatusOr +IndexServiceConnectionImpl::DeleteIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteIndexRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteIndex(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteIndexRequest const& request) { + return stub_->DeleteIndex(context, options, request); + }, + *current, request, __func__); +} + +future> +IndexServiceConnectionImpl::DeleteIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteIndex", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr IndexServiceConnectionImpl::UpsertDatapoints( google::cloud::aiplatform::v1::UpsertDatapointsRequest const& request) { diff --git a/google/cloud/aiplatform/v1/internal/index_connection_impl.h b/google/cloud/aiplatform/v1/internal/index_connection_impl.h index 31405da52f042..5fef546b51cd1 100644 --- a/google/cloud/aiplatform/v1/internal/index_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/index_connection_impl.h @@ -56,6 +56,15 @@ class IndexServiceConnectionImpl google::cloud::aiplatform::v1::CreateIndexRequest const& request) override; + StatusOr CreateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateIndexRequest const& request) + override; + + future> CreateIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIndex( google::cloud::aiplatform::v1::GetIndexRequest const& request) override; @@ -66,10 +75,28 @@ class IndexServiceConnectionImpl google::cloud::aiplatform::v1::UpdateIndexRequest const& request) override; + StatusOr UpdateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateIndexRequest const& request) + override; + + future> UpdateIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteIndex(google::cloud::aiplatform::v1::DeleteIndexRequest const& request) override; + StatusOr DeleteIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteIndexRequest const& request) + override; + + future> + DeleteIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpsertDatapoints(google::cloud::aiplatform::v1::UpsertDatapointsRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.cc b/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.cc index ec28588984e3a..a95c56767e236 100644 --- a/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.cc @@ -108,6 +108,61 @@ IndexEndpointServiceConnectionImpl::CreateIndexEndpoint( polling_policy(*current), __func__); } +StatusOr +IndexEndpointServiceConnectionImpl::CreateIndexEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateIndexEndpoint(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& + request) { + return stub_->CreateIndexEndpoint(context, options, request); + }, + *current, request, __func__); +} + +future> +IndexEndpointServiceConnectionImpl::CreateIndexEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateIndexEndpoint", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::IndexEndpoint>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::IndexEndpoint>, + polling_policy(*current), __func__); +} + StatusOr IndexEndpointServiceConnectionImpl::GetIndexEndpoint( google::cloud::aiplatform::v1::GetIndexEndpointRequest const& request) { @@ -213,6 +268,61 @@ IndexEndpointServiceConnectionImpl::DeleteIndexEndpoint( polling_policy(*current), __func__); } +StatusOr +IndexEndpointServiceConnectionImpl::DeleteIndexEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteIndexEndpoint(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& + request) { + return stub_->DeleteIndexEndpoint(context, options, request); + }, + *current, request, __func__); +} + +future> +IndexEndpointServiceConnectionImpl::DeleteIndexEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteIndexEndpoint", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + future> IndexEndpointServiceConnectionImpl::DeployIndex( google::cloud::aiplatform::v1::DeployIndexRequest const& request) { @@ -252,6 +362,60 @@ IndexEndpointServiceConnectionImpl::DeployIndex( polling_policy(*current), __func__); } +StatusOr +IndexEndpointServiceConnectionImpl::DeployIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeployIndexRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeployIndex(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeployIndexRequest const& request) { + return stub_->DeployIndex(context, options, request); + }, + *current, request, __func__); +} + +future> +IndexEndpointServiceConnectionImpl::DeployIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeployIndex", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeployIndexResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::DeployIndexResponse>, + polling_policy(*current), __func__); +} + future> IndexEndpointServiceConnectionImpl::UndeployIndex( google::cloud::aiplatform::v1::UndeployIndexRequest const& request) { @@ -291,6 +455,61 @@ IndexEndpointServiceConnectionImpl::UndeployIndex( polling_policy(*current), __func__); } +StatusOr +IndexEndpointServiceConnectionImpl::UndeployIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UndeployIndexRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UndeployIndex(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::UndeployIndexRequest const& request) { + return stub_->UndeployIndex(context, options, request); + }, + *current, request, __func__); +} + +future> +IndexEndpointServiceConnectionImpl::UndeployIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UndeployIndex", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::UndeployIndexResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::UndeployIndexResponse>, + polling_policy(*current), __func__); +} + future> IndexEndpointServiceConnectionImpl::MutateDeployedIndex( google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request) { @@ -331,6 +550,61 @@ IndexEndpointServiceConnectionImpl::MutateDeployedIndex( polling_policy(*current), __func__); } +StatusOr +IndexEndpointServiceConnectionImpl::MutateDeployedIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->MutateDeployedIndex(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& + request) { + return stub_->MutateDeployedIndex(context, options, request); + }, + *current, request, __func__); +} + +future> +IndexEndpointServiceConnectionImpl::MutateDeployedIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to MutateDeployedIndex", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::MutateDeployedIndexResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::MutateDeployedIndexResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace aiplatform_v1_internal } // namespace cloud diff --git a/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.h b/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.h index 2886e73e63de4..2310971f84ad2 100644 --- a/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.h @@ -57,6 +57,15 @@ class IndexEndpointServiceConnectionImpl google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request) override; + StatusOr CreateIndexEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request) + override; + + future> + CreateIndexEndpoint(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIndexEndpoint( google::cloud::aiplatform::v1::GetIndexEndpointRequest const& request) override; @@ -74,19 +83,55 @@ class IndexEndpointServiceConnectionImpl google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request) override; + StatusOr DeleteIndexEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request) + override; + + future> + DeleteIndexEndpoint(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeployIndex(google::cloud::aiplatform::v1::DeployIndexRequest const& request) override; + StatusOr DeployIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeployIndexRequest const& request) + override; + + future> + DeployIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeployIndex(google::cloud::aiplatform::v1::UndeployIndexRequest const& request) override; + StatusOr UndeployIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UndeployIndexRequest const& request) + override; + + future> + UndeployIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> MutateDeployedIndex( google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request) override; + StatusOr MutateDeployedIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request) + override; + + future> + MutateDeployedIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.cc index e9a06f9f81a14..63161713efba5 100644 --- a/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.cc @@ -43,6 +43,30 @@ IndexEndpointServiceTracingConnection::CreateIndexEndpoint( child_->CreateIndexEndpoint(request)); } +StatusOr +IndexEndpointServiceTracingConnection::CreateIndexEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::IndexEndpointServiceConnection::CreateIndexEndpoint"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateIndexEndpoint(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +IndexEndpointServiceTracingConnection::CreateIndexEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::IndexEndpointServiceConnection::CreateIndexEndpoint"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateIndexEndpoint(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr IndexEndpointServiceTracingConnection::GetIndexEndpoint( google::cloud::aiplatform::v1::GetIndexEndpointRequest const& request) { @@ -83,6 +107,30 @@ IndexEndpointServiceTracingConnection::DeleteIndexEndpoint( child_->DeleteIndexEndpoint(request)); } +StatusOr +IndexEndpointServiceTracingConnection::DeleteIndexEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::IndexEndpointServiceConnection::DeleteIndexEndpoint"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteIndexEndpoint(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +IndexEndpointServiceTracingConnection::DeleteIndexEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::IndexEndpointServiceConnection::DeleteIndexEndpoint"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteIndexEndpoint(google::cloud::ExperimentalTag{}, operation)); +} + future> IndexEndpointServiceTracingConnection::DeployIndex( google::cloud::aiplatform::v1::DeployIndexRequest const& request) { @@ -92,6 +140,30 @@ IndexEndpointServiceTracingConnection::DeployIndex( return internal::EndSpan(std::move(span), child_->DeployIndex(request)); } +StatusOr +IndexEndpointServiceTracingConnection::DeployIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeployIndexRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::IndexEndpointServiceConnection::DeployIndex"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeployIndex(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +IndexEndpointServiceTracingConnection::DeployIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::IndexEndpointServiceConnection::DeployIndex"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeployIndex(google::cloud::ExperimentalTag{}, operation)); +} + future> IndexEndpointServiceTracingConnection::UndeployIndex( google::cloud::aiplatform::v1::UndeployIndexRequest const& request) { @@ -101,6 +173,30 @@ IndexEndpointServiceTracingConnection::UndeployIndex( return internal::EndSpan(std::move(span), child_->UndeployIndex(request)); } +StatusOr +IndexEndpointServiceTracingConnection::UndeployIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UndeployIndexRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::IndexEndpointServiceConnection::UndeployIndex"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UndeployIndex(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +IndexEndpointServiceTracingConnection::UndeployIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::IndexEndpointServiceConnection::UndeployIndex"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UndeployIndex(google::cloud::ExperimentalTag{}, operation)); +} + future> IndexEndpointServiceTracingConnection::MutateDeployedIndex( google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request) { @@ -111,6 +207,30 @@ IndexEndpointServiceTracingConnection::MutateDeployedIndex( child_->MutateDeployedIndex(request)); } +StatusOr +IndexEndpointServiceTracingConnection::MutateDeployedIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::IndexEndpointServiceConnection::MutateDeployedIndex"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->MutateDeployedIndex(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +IndexEndpointServiceTracingConnection::MutateDeployedIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::IndexEndpointServiceConnection::MutateDeployedIndex"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->MutateDeployedIndex(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.h b/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.h index 72116db46ae99..fb176f93e30b2 100644 --- a/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.h @@ -45,6 +45,15 @@ class IndexEndpointServiceTracingConnection google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request) override; + StatusOr CreateIndexEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request) + override; + + future> + CreateIndexEndpoint(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIndexEndpoint( google::cloud::aiplatform::v1::GetIndexEndpointRequest const& request) override; @@ -62,19 +71,55 @@ class IndexEndpointServiceTracingConnection google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request) override; + StatusOr DeleteIndexEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request) + override; + + future> + DeleteIndexEndpoint(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeployIndex(google::cloud::aiplatform::v1::DeployIndexRequest const& request) override; + StatusOr DeployIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeployIndexRequest const& request) + override; + + future> + DeployIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeployIndex(google::cloud::aiplatform::v1::UndeployIndexRequest const& request) override; + StatusOr UndeployIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UndeployIndexRequest const& request) + override; + + future> + UndeployIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> MutateDeployedIndex( google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request) override; + StatusOr MutateDeployedIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request) + override; + + future> + MutateDeployedIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/aiplatform/v1/internal/index_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/index_tracing_connection.cc index 4162add2660ce..68f9a0a5e686c 100644 --- a/google/cloud/aiplatform/v1/internal/index_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/index_tracing_connection.cc @@ -42,6 +42,30 @@ IndexServiceTracingConnection::CreateIndex( return internal::EndSpan(std::move(span), child_->CreateIndex(request)); } +StatusOr +IndexServiceTracingConnection::CreateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateIndexRequest const& request) { + auto span = + internal::MakeSpan("aiplatform_v1::IndexServiceConnection::CreateIndex"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateIndex(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +IndexServiceTracingConnection::CreateIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("aiplatform_v1::IndexServiceConnection::CreateIndex"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateIndex(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr IndexServiceTracingConnection::GetIndex( google::cloud::aiplatform::v1::GetIndexRequest const& request) { @@ -71,6 +95,30 @@ IndexServiceTracingConnection::UpdateIndex( return internal::EndSpan(std::move(span), child_->UpdateIndex(request)); } +StatusOr +IndexServiceTracingConnection::UpdateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateIndexRequest const& request) { + auto span = + internal::MakeSpan("aiplatform_v1::IndexServiceConnection::UpdateIndex"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateIndex(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +IndexServiceTracingConnection::UpdateIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("aiplatform_v1::IndexServiceConnection::UpdateIndex"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateIndex(google::cloud::ExperimentalTag{}, operation)); +} + future> IndexServiceTracingConnection::DeleteIndex( google::cloud::aiplatform::v1::DeleteIndexRequest const& request) { @@ -80,6 +128,30 @@ IndexServiceTracingConnection::DeleteIndex( return internal::EndSpan(std::move(span), child_->DeleteIndex(request)); } +StatusOr +IndexServiceTracingConnection::DeleteIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteIndexRequest const& request) { + auto span = + internal::MakeSpan("aiplatform_v1::IndexServiceConnection::DeleteIndex"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteIndex(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +IndexServiceTracingConnection::DeleteIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("aiplatform_v1::IndexServiceConnection::DeleteIndex"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteIndex(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr IndexServiceTracingConnection::UpsertDatapoints( google::cloud::aiplatform::v1::UpsertDatapointsRequest const& request) { diff --git a/google/cloud/aiplatform/v1/internal/index_tracing_connection.h b/google/cloud/aiplatform/v1/internal/index_tracing_connection.h index c4256b842b538..057288579a6ee 100644 --- a/google/cloud/aiplatform/v1/internal/index_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/index_tracing_connection.h @@ -44,6 +44,15 @@ class IndexServiceTracingConnection google::cloud::aiplatform::v1::CreateIndexRequest const& request) override; + StatusOr CreateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateIndexRequest const& request) + override; + + future> CreateIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIndex( google::cloud::aiplatform::v1::GetIndexRequest const& request) override; @@ -54,10 +63,28 @@ class IndexServiceTracingConnection google::cloud::aiplatform::v1::UpdateIndexRequest const& request) override; + StatusOr UpdateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateIndexRequest const& request) + override; + + future> UpdateIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteIndex(google::cloud::aiplatform::v1::DeleteIndexRequest const& request) override; + StatusOr DeleteIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteIndexRequest const& request) + override; + + future> + DeleteIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpsertDatapoints(google::cloud::aiplatform::v1::UpsertDatapointsRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/job_connection_impl.cc b/google/cloud/aiplatform/v1/internal/job_connection_impl.cc index 7e1e279d0ec07..d3f99a30087d0 100644 --- a/google/cloud/aiplatform/v1/internal/job_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/job_connection_impl.cc @@ -168,6 +168,61 @@ JobServiceConnectionImpl::DeleteCustomJob( polling_policy(*current), __func__); } +StatusOr +JobServiceConnectionImpl::DeleteCustomJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCustomJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteCustomJobRequest const& + request) { + return stub_->DeleteCustomJob(context, options, request); + }, + *current, request, __func__); +} + +future> +JobServiceConnectionImpl::DeleteCustomJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCustomJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + Status JobServiceConnectionImpl::CancelCustomJob( google::cloud::aiplatform::v1::CancelCustomJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -289,6 +344,62 @@ JobServiceConnectionImpl::DeleteDataLabelingJob( polling_policy(*current), __func__); } +StatusOr +JobServiceConnectionImpl::DeleteDataLabelingJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDataLabelingJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& + request) { + return stub_->DeleteDataLabelingJob(context, options, request); + }, + *current, request, __func__); +} + +future> +JobServiceConnectionImpl::DeleteDataLabelingJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDataLabelingJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + Status JobServiceConnectionImpl::CancelDataLabelingJob( google::cloud::aiplatform::v1::CancelDataLabelingJobRequest const& request) { @@ -415,6 +526,62 @@ JobServiceConnectionImpl::DeleteHyperparameterTuningJob( polling_policy(*current), __func__); } +StatusOr +JobServiceConnectionImpl::DeleteHyperparameterTuningJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteHyperparameterTuningJobRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteHyperparameterTuningJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1:: + DeleteHyperparameterTuningJobRequest const& request) { + return stub_->DeleteHyperparameterTuningJob(context, options, request); + }, + *current, request, __func__); +} + +future> +JobServiceConnectionImpl::DeleteHyperparameterTuningJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteHyperparameterTuningJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + Status JobServiceConnectionImpl::CancelHyperparameterTuningJob( google::cloud::aiplatform::v1::CancelHyperparameterTuningJobRequest const& request) { @@ -532,6 +699,60 @@ JobServiceConnectionImpl::DeleteNasJob( polling_policy(*current), __func__); } +StatusOr JobServiceConnectionImpl::DeleteNasJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNasJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNasJob(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteNasJobRequest const& request) { + return stub_->DeleteNasJob(context, options, request); + }, + *current, request, __func__); +} + +future> +JobServiceConnectionImpl::DeleteNasJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteNasJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + Status JobServiceConnectionImpl::CancelNasJob( google::cloud::aiplatform::v1::CancelNasJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -706,6 +927,63 @@ JobServiceConnectionImpl::DeleteBatchPredictionJob( polling_policy(*current), __func__); } +StatusOr +JobServiceConnectionImpl::DeleteBatchPredictionJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteBatchPredictionJob(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& + request) { + return stub_->DeleteBatchPredictionJob(context, options, request); + }, + *current, request, __func__); +} + +future> +JobServiceConnectionImpl::DeleteBatchPredictionJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteBatchPredictionJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + Status JobServiceConnectionImpl::CancelBatchPredictionJob( google::cloud::aiplatform::v1::CancelBatchPredictionJobRequest const& request) { @@ -881,6 +1159,64 @@ JobServiceConnectionImpl::UpdateModelDeploymentMonitoringJob( polling_policy(*current), __func__); } +StatusOr +JobServiceConnectionImpl::UpdateModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + UpdateModelDeploymentMonitoringJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateModelDeploymentMonitoringJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1:: + UpdateModelDeploymentMonitoringJobRequest const& request) { + return stub_->UpdateModelDeploymentMonitoringJob(context, options, + request); + }, + *current, request, __func__); +} + +future> +JobServiceConnectionImpl::UpdateModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to " + "UpdateModelDeploymentMonitoringJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::ModelDeploymentMonitoringJob>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::ModelDeploymentMonitoringJob>, + polling_policy(*current), __func__); +} + future> JobServiceConnectionImpl::DeleteModelDeploymentMonitoringJob( google::cloud::aiplatform::v1:: @@ -923,6 +1259,64 @@ JobServiceConnectionImpl::DeleteModelDeploymentMonitoringJob( polling_policy(*current), __func__); } +StatusOr +JobServiceConnectionImpl::DeleteModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + DeleteModelDeploymentMonitoringJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteModelDeploymentMonitoringJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1:: + DeleteModelDeploymentMonitoringJobRequest const& request) { + return stub_->DeleteModelDeploymentMonitoringJob(context, options, + request); + }, + *current, request, __func__); +} + +future> +JobServiceConnectionImpl::DeleteModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to " + "DeleteModelDeploymentMonitoringJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + Status JobServiceConnectionImpl::PauseModelDeploymentMonitoringJob( google::cloud::aiplatform::v1:: PauseModelDeploymentMonitoringJobRequest const& request) { diff --git a/google/cloud/aiplatform/v1/internal/job_connection_impl.h b/google/cloud/aiplatform/v1/internal/job_connection_impl.h index 2ec60f7e600d3..c60d5990a5fad 100644 --- a/google/cloud/aiplatform/v1/internal/job_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/job_connection_impl.h @@ -66,6 +66,15 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { DeleteCustomJob(google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request) override; + StatusOr DeleteCustomJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request) + override; + + future> + DeleteCustomJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status CancelCustomJob( google::cloud::aiplatform::v1::CancelCustomJobRequest const& request) override; @@ -89,6 +98,16 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& request) override; + StatusOr DeleteDataLabelingJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& + request) override; + + future> + DeleteDataLabelingJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status CancelDataLabelingJob( google::cloud::aiplatform::v1::CancelDataLabelingJobRequest const& request) override; @@ -113,6 +132,16 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { google::cloud::aiplatform::v1::DeleteHyperparameterTuningJobRequest const& request) override; + StatusOr DeleteHyperparameterTuningJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteHyperparameterTuningJobRequest const& + request) override; + + future> + DeleteHyperparameterTuningJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status CancelHyperparameterTuningJob( google::cloud::aiplatform::v1::CancelHyperparameterTuningJobRequest const& request) override; @@ -131,6 +160,15 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { DeleteNasJob(google::cloud::aiplatform::v1::DeleteNasJobRequest const& request) override; + StatusOr DeleteNasJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNasJobRequest const& request) + override; + + future> + DeleteNasJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status CancelNasJob(google::cloud::aiplatform::v1::CancelNasJobRequest const& request) override; @@ -162,6 +200,16 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& request) override; + StatusOr DeleteBatchPredictionJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& + request) override; + + future> + DeleteBatchPredictionJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status CancelBatchPredictionJob( google::cloud::aiplatform::v1::CancelBatchPredictionJobRequest const& request) override; @@ -192,11 +240,31 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { google::cloud::aiplatform::v1:: UpdateModelDeploymentMonitoringJobRequest const& request) override; + StatusOr UpdateModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + UpdateModelDeploymentMonitoringJobRequest const& request) override; + + future> + UpdateModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteModelDeploymentMonitoringJob( google::cloud::aiplatform::v1:: DeleteModelDeploymentMonitoringJobRequest const& request) override; + StatusOr DeleteModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + DeleteModelDeploymentMonitoringJobRequest const& request) override; + + future> + DeleteModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status PauseModelDeploymentMonitoringJob( google::cloud::aiplatform::v1:: PauseModelDeploymentMonitoringJobRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/job_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/job_tracing_connection.cc index 9c8bec1630b36..79d0db7ce9cb8 100644 --- a/google/cloud/aiplatform/v1/internal/job_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/job_tracing_connection.cc @@ -71,6 +71,30 @@ JobServiceTracingConnection::DeleteCustomJob( return internal::EndSpan(std::move(span), child_->DeleteCustomJob(request)); } +StatusOr +JobServiceTracingConnection::DeleteCustomJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::JobServiceConnection::DeleteCustomJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteCustomJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +JobServiceTracingConnection::DeleteCustomJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::JobServiceConnection::DeleteCustomJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteCustomJob(google::cloud::ExperimentalTag{}, operation)); +} + Status JobServiceTracingConnection::CancelCustomJob( google::cloud::aiplatform::v1::CancelCustomJobRequest const& request) { auto span = internal::MakeSpan( @@ -121,6 +145,31 @@ JobServiceTracingConnection::DeleteDataLabelingJob( child_->DeleteDataLabelingJob(request)); } +StatusOr +JobServiceTracingConnection::DeleteDataLabelingJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::JobServiceConnection::DeleteDataLabelingJob"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteDataLabelingJob( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +JobServiceTracingConnection::DeleteDataLabelingJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::JobServiceConnection::DeleteDataLabelingJob"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteDataLabelingJob( + google::cloud::ExperimentalTag{}, operation)); +} + Status JobServiceTracingConnection::CancelDataLabelingJob( google::cloud::aiplatform::v1::CancelDataLabelingJobRequest const& request) { @@ -175,6 +224,31 @@ JobServiceTracingConnection::DeleteHyperparameterTuningJob( child_->DeleteHyperparameterTuningJob(request)); } +StatusOr +JobServiceTracingConnection::DeleteHyperparameterTuningJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteHyperparameterTuningJobRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::JobServiceConnection::DeleteHyperparameterTuningJob"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteHyperparameterTuningJob( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +JobServiceTracingConnection::DeleteHyperparameterTuningJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::JobServiceConnection::DeleteHyperparameterTuningJob"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteHyperparameterTuningJob( + google::cloud::ExperimentalTag{}, operation)); +} + Status JobServiceTracingConnection::CancelHyperparameterTuningJob( google::cloud::aiplatform::v1::CancelHyperparameterTuningJobRequest const& request) { @@ -223,6 +297,30 @@ JobServiceTracingConnection::DeleteNasJob( return internal::EndSpan(std::move(span), child_->DeleteNasJob(request)); } +StatusOr +JobServiceTracingConnection::DeleteNasJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNasJobRequest const& request) { + auto span = + internal::MakeSpan("aiplatform_v1::JobServiceConnection::DeleteNasJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteNasJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +JobServiceTracingConnection::DeleteNasJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("aiplatform_v1::JobServiceConnection::DeleteNasJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteNasJob(google::cloud::ExperimentalTag{}, operation)); +} + Status JobServiceTracingConnection::CancelNasJob( google::cloud::aiplatform::v1::CancelNasJobRequest const& request) { auto span = @@ -295,6 +393,31 @@ JobServiceTracingConnection::DeleteBatchPredictionJob( child_->DeleteBatchPredictionJob(request)); } +StatusOr +JobServiceTracingConnection::DeleteBatchPredictionJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::JobServiceConnection::DeleteBatchPredictionJob"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteBatchPredictionJob( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +JobServiceTracingConnection::DeleteBatchPredictionJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::JobServiceConnection::DeleteBatchPredictionJob"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteBatchPredictionJob( + google::cloud::ExperimentalTag{}, operation)); +} + Status JobServiceTracingConnection::CancelBatchPredictionJob( google::cloud::aiplatform::v1::CancelBatchPredictionJobRequest const& request) { @@ -367,6 +490,33 @@ JobServiceTracingConnection::UpdateModelDeploymentMonitoringJob( child_->UpdateModelDeploymentMonitoringJob(request)); } +StatusOr +JobServiceTracingConnection::UpdateModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + UpdateModelDeploymentMonitoringJobRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::JobServiceConnection::" + "UpdateModelDeploymentMonitoringJob"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +JobServiceTracingConnection::UpdateModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::JobServiceConnection::" + "UpdateModelDeploymentMonitoringJob"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag{}, operation)); +} + future> JobServiceTracingConnection::DeleteModelDeploymentMonitoringJob( google::cloud::aiplatform::v1:: @@ -379,6 +529,33 @@ JobServiceTracingConnection::DeleteModelDeploymentMonitoringJob( child_->DeleteModelDeploymentMonitoringJob(request)); } +StatusOr +JobServiceTracingConnection::DeleteModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + DeleteModelDeploymentMonitoringJobRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::JobServiceConnection::" + "DeleteModelDeploymentMonitoringJob"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +JobServiceTracingConnection::DeleteModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::JobServiceConnection::" + "DeleteModelDeploymentMonitoringJob"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag{}, operation)); +} + Status JobServiceTracingConnection::PauseModelDeploymentMonitoringJob( google::cloud::aiplatform::v1:: PauseModelDeploymentMonitoringJobRequest const& request) { diff --git a/google/cloud/aiplatform/v1/internal/job_tracing_connection.h b/google/cloud/aiplatform/v1/internal/job_tracing_connection.h index 6254cd90ad6ab..d23be77942f9a 100644 --- a/google/cloud/aiplatform/v1/internal/job_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/job_tracing_connection.h @@ -54,6 +54,15 @@ class JobServiceTracingConnection : public aiplatform_v1::JobServiceConnection { DeleteCustomJob(google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request) override; + StatusOr DeleteCustomJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request) + override; + + future> + DeleteCustomJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status CancelCustomJob( google::cloud::aiplatform::v1::CancelCustomJobRequest const& request) override; @@ -77,6 +86,16 @@ class JobServiceTracingConnection : public aiplatform_v1::JobServiceConnection { google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& request) override; + StatusOr DeleteDataLabelingJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& + request) override; + + future> + DeleteDataLabelingJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status CancelDataLabelingJob( google::cloud::aiplatform::v1::CancelDataLabelingJobRequest const& request) override; @@ -101,6 +120,16 @@ class JobServiceTracingConnection : public aiplatform_v1::JobServiceConnection { google::cloud::aiplatform::v1::DeleteHyperparameterTuningJobRequest const& request) override; + StatusOr DeleteHyperparameterTuningJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteHyperparameterTuningJobRequest const& + request) override; + + future> + DeleteHyperparameterTuningJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status CancelHyperparameterTuningJob( google::cloud::aiplatform::v1::CancelHyperparameterTuningJobRequest const& request) override; @@ -119,6 +148,15 @@ class JobServiceTracingConnection : public aiplatform_v1::JobServiceConnection { DeleteNasJob(google::cloud::aiplatform::v1::DeleteNasJobRequest const& request) override; + StatusOr DeleteNasJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNasJobRequest const& request) + override; + + future> + DeleteNasJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status CancelNasJob(google::cloud::aiplatform::v1::CancelNasJobRequest const& request) override; @@ -150,6 +188,16 @@ class JobServiceTracingConnection : public aiplatform_v1::JobServiceConnection { google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& request) override; + StatusOr DeleteBatchPredictionJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& + request) override; + + future> + DeleteBatchPredictionJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status CancelBatchPredictionJob( google::cloud::aiplatform::v1::CancelBatchPredictionJobRequest const& request) override; @@ -180,11 +228,31 @@ class JobServiceTracingConnection : public aiplatform_v1::JobServiceConnection { google::cloud::aiplatform::v1:: UpdateModelDeploymentMonitoringJobRequest const& request) override; + StatusOr UpdateModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + UpdateModelDeploymentMonitoringJobRequest const& request) override; + + future> + UpdateModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteModelDeploymentMonitoringJob( google::cloud::aiplatform::v1:: DeleteModelDeploymentMonitoringJobRequest const& request) override; + StatusOr DeleteModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + DeleteModelDeploymentMonitoringJobRequest const& request) override; + + future> + DeleteModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status PauseModelDeploymentMonitoringJob( google::cloud::aiplatform::v1:: PauseModelDeploymentMonitoringJobRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/metadata_connection_impl.cc b/google/cloud/aiplatform/v1/internal/metadata_connection_impl.cc index 0835074a23b82..395d5d63c4c21 100644 --- a/google/cloud/aiplatform/v1/internal/metadata_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/metadata_connection_impl.cc @@ -107,6 +107,61 @@ MetadataServiceConnectionImpl::CreateMetadataStore( polling_policy(*current), __func__); } +StatusOr +MetadataServiceConnectionImpl::CreateMetadataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateMetadataStore(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& + request) { + return stub_->CreateMetadataStore(context, options, request); + }, + *current, request, __func__); +} + +future> +MetadataServiceConnectionImpl::CreateMetadataStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateMetadataStore", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::MetadataStore>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::MetadataStore>, + polling_policy(*current), __func__); +} + StatusOr MetadataServiceConnectionImpl::GetMetadataStore( google::cloud::aiplatform::v1::GetMetadataStoreRequest const& request) { @@ -198,6 +253,62 @@ MetadataServiceConnectionImpl::DeleteMetadataStore( polling_policy(*current), __func__); } +StatusOr +MetadataServiceConnectionImpl::DeleteMetadataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteMetadataStore(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& + request) { + return stub_->DeleteMetadataStore(context, options, request); + }, + *current, request, __func__); +} + +future> +MetadataServiceConnectionImpl::DeleteMetadataStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteMetadataStore", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteMetadataStoreOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteMetadataStoreOperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr MetadataServiceConnectionImpl::CreateArtifact( google::cloud::aiplatform::v1::CreateArtifactRequest const& request) { @@ -315,6 +426,61 @@ MetadataServiceConnectionImpl::DeleteArtifact( polling_policy(*current), __func__); } +StatusOr +MetadataServiceConnectionImpl::DeleteArtifact( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteArtifactRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteArtifact(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteArtifactRequest const& request) { + return stub_->DeleteArtifact(context, options, request); + }, + *current, request, __func__); +} + +future> +MetadataServiceConnectionImpl::DeleteArtifact( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteArtifact", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + future> MetadataServiceConnectionImpl::PurgeArtifacts( google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request) { @@ -354,6 +520,61 @@ MetadataServiceConnectionImpl::PurgeArtifacts( polling_policy(*current), __func__); } +StatusOr +MetadataServiceConnectionImpl::PurgeArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PurgeArtifacts(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request) { + return stub_->PurgeArtifacts(context, options, request); + }, + *current, request, __func__); +} + +future> +MetadataServiceConnectionImpl::PurgeArtifacts( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to PurgeArtifacts", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::PurgeArtifactsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::PurgeArtifactsResponse>, + polling_policy(*current), __func__); +} + StatusOr MetadataServiceConnectionImpl::CreateContext( google::cloud::aiplatform::v1::CreateContextRequest const& request) { @@ -471,6 +692,61 @@ MetadataServiceConnectionImpl::DeleteContext( polling_policy(*current), __func__); } +StatusOr +MetadataServiceConnectionImpl::DeleteContext( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteContextRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteContext(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteContextRequest const& request) { + return stub_->DeleteContext(context, options, request); + }, + *current, request, __func__); +} + +future> +MetadataServiceConnectionImpl::DeleteContext( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteContext", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + future> MetadataServiceConnectionImpl::PurgeContexts( google::cloud::aiplatform::v1::PurgeContextsRequest const& request) { @@ -510,6 +786,61 @@ MetadataServiceConnectionImpl::PurgeContexts( polling_policy(*current), __func__); } +StatusOr +MetadataServiceConnectionImpl::PurgeContexts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeContextsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PurgeContexts(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::PurgeContextsRequest const& request) { + return stub_->PurgeContexts(context, options, request); + }, + *current, request, __func__); +} + +future> +MetadataServiceConnectionImpl::PurgeContexts( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to PurgeContexts", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::PurgeContextsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::PurgeContextsResponse>, + polling_policy(*current), __func__); +} + StatusOr< google::cloud::aiplatform::v1::AddContextArtifactsAndExecutionsResponse> MetadataServiceConnectionImpl::AddContextArtifactsAndExecutions( @@ -694,6 +1025,61 @@ MetadataServiceConnectionImpl::DeleteExecution( polling_policy(*current), __func__); } +StatusOr +MetadataServiceConnectionImpl::DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteExecutionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteExecution(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteExecutionRequest const& + request) { + return stub_->DeleteExecution(context, options, request); + }, + *current, request, __func__); +} + +future> +MetadataServiceConnectionImpl::DeleteExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteExecution", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + future> MetadataServiceConnectionImpl::PurgeExecutions( google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request) { @@ -734,6 +1120,61 @@ MetadataServiceConnectionImpl::PurgeExecutions( polling_policy(*current), __func__); } +StatusOr +MetadataServiceConnectionImpl::PurgeExecutions( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PurgeExecutions(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::PurgeExecutionsRequest const& + request) { + return stub_->PurgeExecutions(context, options, request); + }, + *current, request, __func__); +} + +future> +MetadataServiceConnectionImpl::PurgeExecutions( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to PurgeExecutions", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::PurgeExecutionsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::PurgeExecutionsResponse>, + polling_policy(*current), __func__); +} + StatusOr MetadataServiceConnectionImpl::AddExecutionEvents( google::cloud::aiplatform::v1::AddExecutionEventsRequest const& request) { diff --git a/google/cloud/aiplatform/v1/internal/metadata_connection_impl.h b/google/cloud/aiplatform/v1/internal/metadata_connection_impl.h index 9b21bfd762e88..a623f83cfee15 100644 --- a/google/cloud/aiplatform/v1/internal/metadata_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/metadata_connection_impl.h @@ -57,6 +57,15 @@ class MetadataServiceConnectionImpl google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request) override; + StatusOr CreateMetadataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request) + override; + + future> + CreateMetadataStore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetMetadataStore( google::cloud::aiplatform::v1::GetMetadataStoreRequest const& request) override; @@ -71,6 +80,16 @@ class MetadataServiceConnectionImpl google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request) override; + StatusOr DeleteMetadataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request) + override; + + future> + DeleteMetadataStore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateArtifact( google::cloud::aiplatform::v1::CreateArtifactRequest const& request) override; @@ -90,10 +109,28 @@ class MetadataServiceConnectionImpl DeleteArtifact(google::cloud::aiplatform::v1::DeleteArtifactRequest const& request) override; + StatusOr DeleteArtifact( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteArtifactRequest const& request) + override; + + future> + DeleteArtifact(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PurgeArtifacts(google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request) override; + StatusOr PurgeArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request) + override; + + future> + PurgeArtifacts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateContext( google::cloud::aiplatform::v1::CreateContextRequest const& request) override; @@ -112,10 +149,28 @@ class MetadataServiceConnectionImpl DeleteContext(google::cloud::aiplatform::v1::DeleteContextRequest const& request) override; + StatusOr DeleteContext( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteContextRequest const& request) + override; + + future> + DeleteContext(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PurgeContexts(google::cloud::aiplatform::v1::PurgeContextsRequest const& request) override; + StatusOr PurgeContexts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeContextsRequest const& request) + override; + + future> + PurgeContexts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr< google::cloud::aiplatform::v1::AddContextArtifactsAndExecutionsResponse> AddContextArtifactsAndExecutions( @@ -156,10 +211,28 @@ class MetadataServiceConnectionImpl DeleteExecution(google::cloud::aiplatform::v1::DeleteExecutionRequest const& request) override; + StatusOr DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteExecutionRequest const& request) + override; + + future> + DeleteExecution(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PurgeExecutions(google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request) override; + StatusOr PurgeExecutions( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request) + override; + + future> + PurgeExecutions(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr AddExecutionEvents( google::cloud::aiplatform::v1::AddExecutionEventsRequest const& request) diff --git a/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.cc index b6c44a7500ced..9a1fd68968a75 100644 --- a/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.cc @@ -43,6 +43,30 @@ MetadataServiceTracingConnection::CreateMetadataStore( child_->CreateMetadataStore(request)); } +StatusOr +MetadataServiceTracingConnection::CreateMetadataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::MetadataServiceConnection::CreateMetadataStore"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateMetadataStore(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MetadataServiceTracingConnection::CreateMetadataStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::MetadataServiceConnection::CreateMetadataStore"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateMetadataStore(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr MetadataServiceTracingConnection::GetMetadataStore( google::cloud::aiplatform::v1::GetMetadataStoreRequest const& request) { @@ -75,6 +99,31 @@ MetadataServiceTracingConnection::DeleteMetadataStore( child_->DeleteMetadataStore(request)); } +StatusOr +MetadataServiceTracingConnection::DeleteMetadataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::MetadataServiceConnection::DeleteMetadataStore"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteMetadataStore(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MetadataServiceTracingConnection::DeleteMetadataStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::MetadataServiceConnection::DeleteMetadataStore"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteMetadataStore(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr MetadataServiceTracingConnection::CreateArtifact( google::cloud::aiplatform::v1::CreateArtifactRequest const& request) { @@ -122,6 +171,30 @@ MetadataServiceTracingConnection::DeleteArtifact( return internal::EndSpan(std::move(span), child_->DeleteArtifact(request)); } +StatusOr +MetadataServiceTracingConnection::DeleteArtifact( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteArtifactRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::MetadataServiceConnection::DeleteArtifact"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteArtifact(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MetadataServiceTracingConnection::DeleteArtifact( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::MetadataServiceConnection::DeleteArtifact"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteArtifact(google::cloud::ExperimentalTag{}, operation)); +} + future> MetadataServiceTracingConnection::PurgeArtifacts( google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request) { @@ -131,6 +204,30 @@ MetadataServiceTracingConnection::PurgeArtifacts( return internal::EndSpan(std::move(span), child_->PurgeArtifacts(request)); } +StatusOr +MetadataServiceTracingConnection::PurgeArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::MetadataServiceConnection::PurgeArtifacts"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PurgeArtifacts(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MetadataServiceTracingConnection::PurgeArtifacts( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::MetadataServiceConnection::PurgeArtifacts"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PurgeArtifacts(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr MetadataServiceTracingConnection::CreateContext( google::cloud::aiplatform::v1::CreateContextRequest const& request) { @@ -178,6 +275,30 @@ MetadataServiceTracingConnection::DeleteContext( return internal::EndSpan(std::move(span), child_->DeleteContext(request)); } +StatusOr +MetadataServiceTracingConnection::DeleteContext( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteContextRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::MetadataServiceConnection::DeleteContext"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteContext(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MetadataServiceTracingConnection::DeleteContext( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::MetadataServiceConnection::DeleteContext"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteContext(google::cloud::ExperimentalTag{}, operation)); +} + future> MetadataServiceTracingConnection::PurgeContexts( google::cloud::aiplatform::v1::PurgeContextsRequest const& request) { @@ -187,6 +308,30 @@ MetadataServiceTracingConnection::PurgeContexts( return internal::EndSpan(std::move(span), child_->PurgeContexts(request)); } +StatusOr +MetadataServiceTracingConnection::PurgeContexts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeContextsRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::MetadataServiceConnection::PurgeContexts"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PurgeContexts(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MetadataServiceTracingConnection::PurgeContexts( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::MetadataServiceConnection::PurgeContexts"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PurgeContexts(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr< google::cloud::aiplatform::v1::AddContextArtifactsAndExecutionsResponse> MetadataServiceTracingConnection::AddContextArtifactsAndExecutions( @@ -276,6 +421,30 @@ MetadataServiceTracingConnection::DeleteExecution( return internal::EndSpan(std::move(span), child_->DeleteExecution(request)); } +StatusOr +MetadataServiceTracingConnection::DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteExecutionRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::MetadataServiceConnection::DeleteExecution"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteExecution(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MetadataServiceTracingConnection::DeleteExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::MetadataServiceConnection::DeleteExecution"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteExecution(google::cloud::ExperimentalTag{}, operation)); +} + future> MetadataServiceTracingConnection::PurgeExecutions( google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request) { @@ -285,6 +454,30 @@ MetadataServiceTracingConnection::PurgeExecutions( return internal::EndSpan(std::move(span), child_->PurgeExecutions(request)); } +StatusOr +MetadataServiceTracingConnection::PurgeExecutions( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::MetadataServiceConnection::PurgeExecutions"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PurgeExecutions(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MetadataServiceTracingConnection::PurgeExecutions( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::MetadataServiceConnection::PurgeExecutions"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PurgeExecutions(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr MetadataServiceTracingConnection::AddExecutionEvents( google::cloud::aiplatform::v1::AddExecutionEventsRequest const& request) { diff --git a/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.h b/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.h index 01f0ea19d8e0e..0bebd69f6f483 100644 --- a/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.h @@ -45,6 +45,15 @@ class MetadataServiceTracingConnection google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request) override; + StatusOr CreateMetadataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request) + override; + + future> + CreateMetadataStore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetMetadataStore( google::cloud::aiplatform::v1::GetMetadataStoreRequest const& request) override; @@ -59,6 +68,16 @@ class MetadataServiceTracingConnection google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request) override; + StatusOr DeleteMetadataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request) + override; + + future> + DeleteMetadataStore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateArtifact( google::cloud::aiplatform::v1::CreateArtifactRequest const& request) override; @@ -78,10 +97,28 @@ class MetadataServiceTracingConnection DeleteArtifact(google::cloud::aiplatform::v1::DeleteArtifactRequest const& request) override; + StatusOr DeleteArtifact( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteArtifactRequest const& request) + override; + + future> + DeleteArtifact(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PurgeArtifacts(google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request) override; + StatusOr PurgeArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request) + override; + + future> + PurgeArtifacts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateContext( google::cloud::aiplatform::v1::CreateContextRequest const& request) override; @@ -100,10 +137,28 @@ class MetadataServiceTracingConnection DeleteContext(google::cloud::aiplatform::v1::DeleteContextRequest const& request) override; + StatusOr DeleteContext( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteContextRequest const& request) + override; + + future> + DeleteContext(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PurgeContexts(google::cloud::aiplatform::v1::PurgeContextsRequest const& request) override; + StatusOr PurgeContexts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeContextsRequest const& request) + override; + + future> + PurgeContexts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr< google::cloud::aiplatform::v1::AddContextArtifactsAndExecutionsResponse> AddContextArtifactsAndExecutions( @@ -144,10 +199,28 @@ class MetadataServiceTracingConnection DeleteExecution(google::cloud::aiplatform::v1::DeleteExecutionRequest const& request) override; + StatusOr DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteExecutionRequest const& request) + override; + + future> + DeleteExecution(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PurgeExecutions(google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request) override; + StatusOr PurgeExecutions( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request) + override; + + future> + PurgeExecutions(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr AddExecutionEvents( google::cloud::aiplatform::v1::AddExecutionEventsRequest const& request) diff --git a/google/cloud/aiplatform/v1/internal/migration_connection_impl.cc b/google/cloud/aiplatform/v1/internal/migration_connection_impl.cc index 887d8aff10579..33488c26be94e 100644 --- a/google/cloud/aiplatform/v1/internal/migration_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/migration_connection_impl.cc @@ -144,6 +144,62 @@ MigrationServiceConnectionImpl::BatchMigrateResources( polling_policy(*current), __func__); } +StatusOr +MigrationServiceConnectionImpl::BatchMigrateResources( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchMigrateResources(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& + request) { + return stub_->BatchMigrateResources(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationServiceConnectionImpl::BatchMigrateResources( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to BatchMigrateResources", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::BatchMigrateResourcesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::BatchMigrateResourcesResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace aiplatform_v1_internal } // namespace cloud diff --git a/google/cloud/aiplatform/v1/internal/migration_connection_impl.h b/google/cloud/aiplatform/v1/internal/migration_connection_impl.h index 592e4083776c6..27d0f3bc62197 100644 --- a/google/cloud/aiplatform/v1/internal/migration_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/migration_connection_impl.h @@ -62,6 +62,16 @@ class MigrationServiceConnectionImpl google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& request) override; + StatusOr BatchMigrateResources( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& + request) override; + + future> + BatchMigrateResources( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/aiplatform/v1/internal/migration_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/migration_tracing_connection.cc index 57166656598bb..dc3dea1d80072 100644 --- a/google/cloud/aiplatform/v1/internal/migration_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/migration_tracing_connection.cc @@ -56,6 +56,31 @@ MigrationServiceTracingConnection::BatchMigrateResources( child_->BatchMigrateResources(request)); } +StatusOr +MigrationServiceTracingConnection::BatchMigrateResources( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::MigrationServiceConnection::BatchMigrateResources"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->BatchMigrateResources( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationServiceTracingConnection::BatchMigrateResources( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::MigrationServiceConnection::BatchMigrateResources"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->BatchMigrateResources( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/aiplatform/v1/internal/migration_tracing_connection.h b/google/cloud/aiplatform/v1/internal/migration_tracing_connection.h index c04c7be5c00da..e657971bd6386 100644 --- a/google/cloud/aiplatform/v1/internal/migration_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/migration_tracing_connection.h @@ -50,6 +50,16 @@ class MigrationServiceTracingConnection google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& request) override; + StatusOr BatchMigrateResources( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& + request) override; + + future> + BatchMigrateResources( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/aiplatform/v1/internal/model_connection_impl.cc b/google/cloud/aiplatform/v1/internal/model_connection_impl.cc index e85af23092561..8b848e5ddbf33 100644 --- a/google/cloud/aiplatform/v1/internal/model_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/model_connection_impl.cc @@ -103,6 +103,60 @@ ModelServiceConnectionImpl::UploadModel( polling_policy(*current), __func__); } +StatusOr +ModelServiceConnectionImpl::UploadModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UploadModelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UploadModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::UploadModelRequest const& request) { + return stub_->UploadModel(context, options, request); + }, + *current, request, __func__); +} + +future> +ModelServiceConnectionImpl::UploadModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UploadModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::UploadModelResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::UploadModelResponse>, + polling_policy(*current), __func__); +} + StatusOr ModelServiceConnectionImpl::GetModel( google::cloud::aiplatform::v1::GetModelRequest const& request) { @@ -242,6 +296,64 @@ ModelServiceConnectionImpl::UpdateExplanationDataset( polling_policy(*current), __func__); } +StatusOr +ModelServiceConnectionImpl::UpdateExplanationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateExplanationDataset(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& + request) { + return stub_->UpdateExplanationDataset(context, options, request); + }, + *current, request, __func__); +} + +future< + StatusOr> +ModelServiceConnectionImpl::UpdateExplanationDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateExplanationDataset", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::UpdateExplanationDatasetResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::UpdateExplanationDatasetResponse>, + polling_policy(*current), __func__); +} + future> ModelServiceConnectionImpl::DeleteModel( google::cloud::aiplatform::v1::DeleteModelRequest const& request) { @@ -281,6 +393,60 @@ ModelServiceConnectionImpl::DeleteModel( polling_policy(*current), __func__); } +StatusOr +ModelServiceConnectionImpl::DeleteModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteModelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteModelRequest const& request) { + return stub_->DeleteModel(context, options, request); + }, + *current, request, __func__); +} + +future> +ModelServiceConnectionImpl::DeleteModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + future> ModelServiceConnectionImpl::DeleteModelVersion( google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request) { @@ -321,6 +487,61 @@ ModelServiceConnectionImpl::DeleteModelVersion( polling_policy(*current), __func__); } +StatusOr +ModelServiceConnectionImpl::DeleteModelVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteModelVersion(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteModelVersionRequest const& + request) { + return stub_->DeleteModelVersion(context, options, request); + }, + *current, request, __func__); +} + +future> +ModelServiceConnectionImpl::DeleteModelVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteModelVersion", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr ModelServiceConnectionImpl::MergeVersionAliases( google::cloud::aiplatform::v1::MergeVersionAliasesRequest const& request) { @@ -375,6 +596,60 @@ ModelServiceConnectionImpl::ExportModel( polling_policy(*current), __func__); } +StatusOr +ModelServiceConnectionImpl::ExportModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportModelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::ExportModelRequest const& request) { + return stub_->ExportModel(context, options, request); + }, + *current, request, __func__); +} + +future> +ModelServiceConnectionImpl::ExportModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ExportModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::ExportModelResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::ExportModelResponse>, + polling_policy(*current), __func__); +} + future> ModelServiceConnectionImpl::CopyModel( google::cloud::aiplatform::v1::CopyModelRequest const& request) { @@ -413,6 +688,59 @@ ModelServiceConnectionImpl::CopyModel( polling_policy(*current), __func__); } +StatusOr ModelServiceConnectionImpl::CopyModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CopyModelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CopyModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CopyModelRequest const& request) { + return stub_->CopyModel(context, options, request); + }, + *current, request, __func__); +} + +future> +ModelServiceConnectionImpl::CopyModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CopyModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::CopyModelResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::CopyModelResponse>, + polling_policy(*current), __func__); +} + StatusOr ModelServiceConnectionImpl::ImportModelEvaluation( google::cloud::aiplatform::v1::ImportModelEvaluationRequest const& diff --git a/google/cloud/aiplatform/v1/internal/model_connection_impl.h b/google/cloud/aiplatform/v1/internal/model_connection_impl.h index 6f9cf46b611fd..00f4b47e6ec9c 100644 --- a/google/cloud/aiplatform/v1/internal/model_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/model_connection_impl.h @@ -56,6 +56,15 @@ class ModelServiceConnectionImpl UploadModel(google::cloud::aiplatform::v1::UploadModelRequest const& request) override; + StatusOr UploadModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UploadModelRequest const& request) + override; + + future> + UploadModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetModel( google::cloud::aiplatform::v1::GetModelRequest const& request) override; @@ -75,15 +84,44 @@ class ModelServiceConnectionImpl google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& request) override; + StatusOr UpdateExplanationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& + request) override; + + future< + StatusOr> + UpdateExplanationDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteModel(google::cloud::aiplatform::v1::DeleteModelRequest const& request) override; + StatusOr DeleteModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteModelRequest const& request) + override; + + future> + DeleteModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteModelVersion( google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request) override; + StatusOr DeleteModelVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request) + override; + + future> + DeleteModelVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr MergeVersionAliases( google::cloud::aiplatform::v1::MergeVersionAliasesRequest const& request) override; @@ -92,9 +130,26 @@ class ModelServiceConnectionImpl ExportModel(google::cloud::aiplatform::v1::ExportModelRequest const& request) override; + StatusOr ExportModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportModelRequest const& request) + override; + + future> + ExportModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CopyModel( google::cloud::aiplatform::v1::CopyModelRequest const& request) override; + StatusOr CopyModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CopyModelRequest const& request) override; + + future> CopyModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ImportModelEvaluation( google::cloud::aiplatform::v1::ImportModelEvaluationRequest const& diff --git a/google/cloud/aiplatform/v1/internal/model_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/model_tracing_connection.cc index b69474ed1707e..ca499c3230c1b 100644 --- a/google/cloud/aiplatform/v1/internal/model_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/model_tracing_connection.cc @@ -42,6 +42,30 @@ ModelServiceTracingConnection::UploadModel( return internal::EndSpan(std::move(span), child_->UploadModel(request)); } +StatusOr +ModelServiceTracingConnection::UploadModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UploadModelRequest const& request) { + auto span = + internal::MakeSpan("aiplatform_v1::ModelServiceConnection::UploadModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UploadModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ModelServiceTracingConnection::UploadModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("aiplatform_v1::ModelServiceConnection::UploadModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UploadModel(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ModelServiceTracingConnection::GetModel( google::cloud::aiplatform::v1::GetModelRequest const& request) { @@ -94,6 +118,32 @@ ModelServiceTracingConnection::UpdateExplanationDataset( child_->UpdateExplanationDataset(request)); } +StatusOr +ModelServiceTracingConnection::UpdateExplanationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::ModelServiceConnection::UpdateExplanationDataset"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateExplanationDataset( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future< + StatusOr> +ModelServiceTracingConnection::UpdateExplanationDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::ModelServiceConnection::UpdateExplanationDataset"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateExplanationDataset( + google::cloud::ExperimentalTag{}, operation)); +} + future> ModelServiceTracingConnection::DeleteModel( google::cloud::aiplatform::v1::DeleteModelRequest const& request) { @@ -103,6 +153,30 @@ ModelServiceTracingConnection::DeleteModel( return internal::EndSpan(std::move(span), child_->DeleteModel(request)); } +StatusOr +ModelServiceTracingConnection::DeleteModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteModelRequest const& request) { + auto span = + internal::MakeSpan("aiplatform_v1::ModelServiceConnection::DeleteModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ModelServiceTracingConnection::DeleteModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("aiplatform_v1::ModelServiceConnection::DeleteModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteModel(google::cloud::ExperimentalTag{}, operation)); +} + future> ModelServiceTracingConnection::DeleteModelVersion( google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request) { @@ -113,6 +187,30 @@ ModelServiceTracingConnection::DeleteModelVersion( child_->DeleteModelVersion(request)); } +StatusOr +ModelServiceTracingConnection::DeleteModelVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::ModelServiceConnection::DeleteModelVersion"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteModelVersion(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ModelServiceTracingConnection::DeleteModelVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::ModelServiceConnection::DeleteModelVersion"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteModelVersion(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ModelServiceTracingConnection::MergeVersionAliases( google::cloud::aiplatform::v1::MergeVersionAliasesRequest const& request) { @@ -131,6 +229,30 @@ ModelServiceTracingConnection::ExportModel( return internal::EndSpan(std::move(span), child_->ExportModel(request)); } +StatusOr +ModelServiceTracingConnection::ExportModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportModelRequest const& request) { + auto span = + internal::MakeSpan("aiplatform_v1::ModelServiceConnection::ExportModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ModelServiceTracingConnection::ExportModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("aiplatform_v1::ModelServiceConnection::ExportModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportModel(google::cloud::ExperimentalTag{}, operation)); +} + future> ModelServiceTracingConnection::CopyModel( google::cloud::aiplatform::v1::CopyModelRequest const& request) { @@ -140,6 +262,30 @@ ModelServiceTracingConnection::CopyModel( return internal::EndSpan(std::move(span), child_->CopyModel(request)); } +StatusOr +ModelServiceTracingConnection::CopyModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CopyModelRequest const& request) { + auto span = + internal::MakeSpan("aiplatform_v1::ModelServiceConnection::CopyModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CopyModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ModelServiceTracingConnection::CopyModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("aiplatform_v1::ModelServiceConnection::CopyModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CopyModel(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ModelServiceTracingConnection::ImportModelEvaluation( google::cloud::aiplatform::v1::ImportModelEvaluationRequest const& diff --git a/google/cloud/aiplatform/v1/internal/model_tracing_connection.h b/google/cloud/aiplatform/v1/internal/model_tracing_connection.h index aa555ad578aaf..1155165aa1357 100644 --- a/google/cloud/aiplatform/v1/internal/model_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/model_tracing_connection.h @@ -44,6 +44,15 @@ class ModelServiceTracingConnection UploadModel(google::cloud::aiplatform::v1::UploadModelRequest const& request) override; + StatusOr UploadModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UploadModelRequest const& request) + override; + + future> + UploadModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetModel( google::cloud::aiplatform::v1::GetModelRequest const& request) override; @@ -63,15 +72,44 @@ class ModelServiceTracingConnection google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& request) override; + StatusOr UpdateExplanationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& + request) override; + + future< + StatusOr> + UpdateExplanationDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteModel(google::cloud::aiplatform::v1::DeleteModelRequest const& request) override; + StatusOr DeleteModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteModelRequest const& request) + override; + + future> + DeleteModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteModelVersion( google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request) override; + StatusOr DeleteModelVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request) + override; + + future> + DeleteModelVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr MergeVersionAliases( google::cloud::aiplatform::v1::MergeVersionAliasesRequest const& request) override; @@ -80,9 +118,26 @@ class ModelServiceTracingConnection ExportModel(google::cloud::aiplatform::v1::ExportModelRequest const& request) override; + StatusOr ExportModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportModelRequest const& request) + override; + + future> + ExportModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CopyModel( google::cloud::aiplatform::v1::CopyModelRequest const& request) override; + StatusOr CopyModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CopyModelRequest const& request) override; + + future> CopyModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ImportModelEvaluation( google::cloud::aiplatform::v1::ImportModelEvaluationRequest const& diff --git a/google/cloud/aiplatform/v1/internal/notebook_connection_impl.cc b/google/cloud/aiplatform/v1/internal/notebook_connection_impl.cc index 8a02731fb18cb..cb872ec6071dd 100644 --- a/google/cloud/aiplatform/v1/internal/notebook_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/notebook_connection_impl.cc @@ -107,6 +107,62 @@ NotebookServiceConnectionImpl::CreateNotebookRuntimeTemplate( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::CreateNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateNotebookRuntimeTemplateRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateNotebookRuntimeTemplate(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1:: + CreateNotebookRuntimeTemplateRequest const& request) { + return stub_->CreateNotebookRuntimeTemplate(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::CreateNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateNotebookRuntimeTemplate", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::NotebookRuntimeTemplate>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::NotebookRuntimeTemplate>, + polling_policy(*current), __func__); +} + StatusOr NotebookServiceConnectionImpl::GetNotebookRuntimeTemplate( google::cloud::aiplatform::v1::GetNotebookRuntimeTemplateRequest const& @@ -202,6 +258,62 @@ NotebookServiceConnectionImpl::DeleteNotebookRuntimeTemplate( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::DeleteNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNotebookRuntimeTemplateRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNotebookRuntimeTemplate(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1:: + DeleteNotebookRuntimeTemplateRequest const& request) { + return stub_->DeleteNotebookRuntimeTemplate(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::DeleteNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteNotebookRuntimeTemplate", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr NotebookServiceConnectionImpl::UpdateNotebookRuntimeTemplate( google::cloud::aiplatform::v1::UpdateNotebookRuntimeTemplateRequest const& @@ -259,6 +371,62 @@ NotebookServiceConnectionImpl::AssignNotebookRuntime( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::AssignNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AssignNotebookRuntime(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& + request) { + return stub_->AssignNotebookRuntime(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::AssignNotebookRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to AssignNotebookRuntime", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::NotebookRuntime>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::NotebookRuntime>, + polling_policy(*current), __func__); +} + StatusOr NotebookServiceConnectionImpl::GetNotebookRuntime( google::cloud::aiplatform::v1::GetNotebookRuntimeRequest const& request) { @@ -350,6 +518,62 @@ NotebookServiceConnectionImpl::DeleteNotebookRuntime( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::DeleteNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNotebookRuntime(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& + request) { + return stub_->DeleteNotebookRuntime(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::DeleteNotebookRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteNotebookRuntime", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::UpgradeNotebookRuntime( google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& @@ -391,6 +615,62 @@ NotebookServiceConnectionImpl::UpgradeNotebookRuntime( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::UpgradeNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpgradeNotebookRuntime(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& + request) { + return stub_->UpgradeNotebookRuntime(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::UpgradeNotebookRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpgradeNotebookRuntime", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::UpgradeNotebookRuntimeResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::UpgradeNotebookRuntimeResponse>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::StartNotebookRuntime( google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request) { @@ -431,6 +711,61 @@ NotebookServiceConnectionImpl::StartNotebookRuntime( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::StartNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartNotebookRuntime(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& + request) { + return stub_->StartNotebookRuntime(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::StartNotebookRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to StartNotebookRuntime", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::StartNotebookRuntimeResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::StartNotebookRuntimeResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace aiplatform_v1_internal } // namespace cloud diff --git a/google/cloud/aiplatform/v1/internal/notebook_connection_impl.h b/google/cloud/aiplatform/v1/internal/notebook_connection_impl.h index 869f239ae48e4..7c552491c14c3 100644 --- a/google/cloud/aiplatform/v1/internal/notebook_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/notebook_connection_impl.h @@ -57,6 +57,16 @@ class NotebookServiceConnectionImpl google::cloud::aiplatform::v1::CreateNotebookRuntimeTemplateRequest const& request) override; + StatusOr CreateNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateNotebookRuntimeTemplateRequest const& + request) override; + + future> + CreateNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetNotebookRuntimeTemplate( google::cloud::aiplatform::v1::GetNotebookRuntimeTemplateRequest const& @@ -72,6 +82,16 @@ class NotebookServiceConnectionImpl google::cloud::aiplatform::v1::DeleteNotebookRuntimeTemplateRequest const& request) override; + StatusOr DeleteNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNotebookRuntimeTemplateRequest const& + request) override; + + future> + DeleteNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateNotebookRuntimeTemplate( google::cloud::aiplatform::v1::UpdateNotebookRuntimeTemplateRequest const& @@ -82,6 +102,16 @@ class NotebookServiceConnectionImpl google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& request) override; + StatusOr AssignNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& + request) override; + + future> + AssignNotebookRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetNotebookRuntime( google::cloud::aiplatform::v1::GetNotebookRuntimeRequest const& request) override; @@ -96,17 +126,48 @@ class NotebookServiceConnectionImpl google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& request) override; + StatusOr DeleteNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& + request) override; + + future> + DeleteNotebookRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> UpgradeNotebookRuntime( google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& request) override; + StatusOr UpgradeNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& + request) override; + + future< + StatusOr> + UpgradeNotebookRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartNotebookRuntime( google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request) override; + StatusOr StartNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request) + override; + + future> + StartNotebookRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.cc index 57449757b2984..4f5e91e0f5ea5 100644 --- a/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.cc @@ -45,6 +45,33 @@ NotebookServiceTracingConnection::CreateNotebookRuntimeTemplate( child_->CreateNotebookRuntimeTemplate(request)); } +StatusOr +NotebookServiceTracingConnection::CreateNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateNotebookRuntimeTemplateRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::NotebookServiceConnection::" + "CreateNotebookRuntimeTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateNotebookRuntimeTemplate( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::CreateNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::NotebookServiceConnection::" + "CreateNotebookRuntimeTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateNotebookRuntimeTemplate( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NotebookServiceTracingConnection::GetNotebookRuntimeTemplate( google::cloud::aiplatform::v1::GetNotebookRuntimeTemplateRequest const& @@ -80,6 +107,33 @@ NotebookServiceTracingConnection::DeleteNotebookRuntimeTemplate( child_->DeleteNotebookRuntimeTemplate(request)); } +StatusOr +NotebookServiceTracingConnection::DeleteNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNotebookRuntimeTemplateRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::NotebookServiceConnection::" + "DeleteNotebookRuntimeTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteNotebookRuntimeTemplate( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::DeleteNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::NotebookServiceConnection::" + "DeleteNotebookRuntimeTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteNotebookRuntimeTemplate( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NotebookServiceTracingConnection::UpdateNotebookRuntimeTemplate( google::cloud::aiplatform::v1::UpdateNotebookRuntimeTemplateRequest const& @@ -103,6 +157,31 @@ NotebookServiceTracingConnection::AssignNotebookRuntime( child_->AssignNotebookRuntime(request)); } +StatusOr +NotebookServiceTracingConnection::AssignNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::NotebookServiceConnection::AssignNotebookRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->AssignNotebookRuntime( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::AssignNotebookRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::NotebookServiceConnection::AssignNotebookRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->AssignNotebookRuntime( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NotebookServiceTracingConnection::GetNotebookRuntime( google::cloud::aiplatform::v1::GetNotebookRuntimeRequest const& request) { @@ -135,6 +214,31 @@ NotebookServiceTracingConnection::DeleteNotebookRuntime( child_->DeleteNotebookRuntime(request)); } +StatusOr +NotebookServiceTracingConnection::DeleteNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::NotebookServiceConnection::DeleteNotebookRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteNotebookRuntime( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::DeleteNotebookRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::NotebookServiceConnection::DeleteNotebookRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteNotebookRuntime( + google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::UpgradeNotebookRuntime( google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& @@ -146,6 +250,31 @@ NotebookServiceTracingConnection::UpgradeNotebookRuntime( child_->UpgradeNotebookRuntime(request)); } +StatusOr +NotebookServiceTracingConnection::UpgradeNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::NotebookServiceConnection::UpgradeNotebookRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpgradeNotebookRuntime( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::UpgradeNotebookRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::NotebookServiceConnection::UpgradeNotebookRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpgradeNotebookRuntime( + google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::StartNotebookRuntime( google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request) { @@ -156,6 +285,30 @@ NotebookServiceTracingConnection::StartNotebookRuntime( child_->StartNotebookRuntime(request)); } +StatusOr +NotebookServiceTracingConnection::StartNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::NotebookServiceConnection::StartNotebookRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->StartNotebookRuntime( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::StartNotebookRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::NotebookServiceConnection::StartNotebookRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->StartNotebookRuntime( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.h b/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.h index ea06bfdb96022..5ca881ceb2fe2 100644 --- a/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.h @@ -45,6 +45,16 @@ class NotebookServiceTracingConnection google::cloud::aiplatform::v1::CreateNotebookRuntimeTemplateRequest const& request) override; + StatusOr CreateNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateNotebookRuntimeTemplateRequest const& + request) override; + + future> + CreateNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetNotebookRuntimeTemplate( google::cloud::aiplatform::v1::GetNotebookRuntimeTemplateRequest const& @@ -60,6 +70,16 @@ class NotebookServiceTracingConnection google::cloud::aiplatform::v1::DeleteNotebookRuntimeTemplateRequest const& request) override; + StatusOr DeleteNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNotebookRuntimeTemplateRequest const& + request) override; + + future> + DeleteNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateNotebookRuntimeTemplate( google::cloud::aiplatform::v1::UpdateNotebookRuntimeTemplateRequest const& @@ -70,6 +90,16 @@ class NotebookServiceTracingConnection google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& request) override; + StatusOr AssignNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& + request) override; + + future> + AssignNotebookRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetNotebookRuntime( google::cloud::aiplatform::v1::GetNotebookRuntimeRequest const& request) override; @@ -84,17 +114,48 @@ class NotebookServiceTracingConnection google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& request) override; + StatusOr DeleteNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& + request) override; + + future> + DeleteNotebookRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> UpgradeNotebookRuntime( google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& request) override; + StatusOr UpgradeNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& + request) override; + + future< + StatusOr> + UpgradeNotebookRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartNotebookRuntime( google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request) override; + StatusOr StartNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request) + override; + + future> + StartNotebookRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.cc b/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.cc index 85529bba5d075..77ce2d3cb1c1a 100644 --- a/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.cc @@ -116,6 +116,63 @@ PersistentResourceServiceConnectionImpl::CreatePersistentResource( polling_policy(*current), __func__); } +StatusOr +PersistentResourceServiceConnectionImpl::CreatePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreatePersistentResource(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& + request) { + return stub_->CreatePersistentResource(context, options, request); + }, + *current, request, __func__); +} + +future> +PersistentResourceServiceConnectionImpl::CreatePersistentResource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreatePersistentResource", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::PersistentResource>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::PersistentResource>, + polling_policy(*current), __func__); +} + StatusOr PersistentResourceServiceConnectionImpl::GetPersistentResource( google::cloud::aiplatform::v1::GetPersistentResourceRequest const& @@ -210,6 +267,63 @@ PersistentResourceServiceConnectionImpl::DeletePersistentResource( polling_policy(*current), __func__); } +StatusOr +PersistentResourceServiceConnectionImpl::DeletePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePersistentResource(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& + request) { + return stub_->DeletePersistentResource(context, options, request); + }, + *current, request, __func__); +} + +future> +PersistentResourceServiceConnectionImpl::DeletePersistentResource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeletePersistentResource", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + future> PersistentResourceServiceConnectionImpl::UpdatePersistentResource( google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& @@ -251,6 +365,63 @@ PersistentResourceServiceConnectionImpl::UpdatePersistentResource( polling_policy(*current), __func__); } +StatusOr +PersistentResourceServiceConnectionImpl::UpdatePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdatePersistentResource(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& + request) { + return stub_->UpdatePersistentResource(context, options, request); + }, + *current, request, __func__); +} + +future> +PersistentResourceServiceConnectionImpl::UpdatePersistentResource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdatePersistentResource", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::PersistentResource>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::PersistentResource>, + polling_policy(*current), __func__); +} + future> PersistentResourceServiceConnectionImpl::RebootPersistentResource( google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& @@ -292,6 +463,63 @@ PersistentResourceServiceConnectionImpl::RebootPersistentResource( polling_policy(*current), __func__); } +StatusOr +PersistentResourceServiceConnectionImpl::RebootPersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RebootPersistentResource(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& + request) { + return stub_->RebootPersistentResource(context, options, request); + }, + *current, request, __func__); +} + +future> +PersistentResourceServiceConnectionImpl::RebootPersistentResource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RebootPersistentResource", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::PersistentResource>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::PersistentResource>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace aiplatform_v1_internal } // namespace cloud diff --git a/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.h b/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.h index f56d56ab2de0b..03a0c3d6c62bc 100644 --- a/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.h @@ -58,6 +58,16 @@ class PersistentResourceServiceConnectionImpl google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& request) override; + StatusOr CreatePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& + request) override; + + future> + CreatePersistentResource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetPersistentResource( google::cloud::aiplatform::v1::GetPersistentResourceRequest const& @@ -73,16 +83,46 @@ class PersistentResourceServiceConnectionImpl google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& request) override; + StatusOr DeletePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& + request) override; + + future> + DeletePersistentResource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdatePersistentResource( google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& request) override; + StatusOr UpdatePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& + request) override; + + future> + UpdatePersistentResource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RebootPersistentResource( google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& request) override; + StatusOr RebootPersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& + request) override; + + future> + RebootPersistentResource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.cc index 49c86fd419221..7675913e2617c 100644 --- a/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.cc @@ -47,6 +47,33 @@ PersistentResourceServiceTracingConnection::CreatePersistentResource( child_->CreatePersistentResource(request)); } +StatusOr +PersistentResourceServiceTracingConnection::CreatePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::PersistentResourceServiceConnection::" + "CreatePersistentResource"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreatePersistentResource( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PersistentResourceServiceTracingConnection::CreatePersistentResource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::PersistentResourceServiceConnection::" + "CreatePersistentResource"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreatePersistentResource( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr PersistentResourceServiceTracingConnection::GetPersistentResource( google::cloud::aiplatform::v1::GetPersistentResourceRequest const& @@ -83,6 +110,33 @@ PersistentResourceServiceTracingConnection::DeletePersistentResource( child_->DeletePersistentResource(request)); } +StatusOr +PersistentResourceServiceTracingConnection::DeletePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::PersistentResourceServiceConnection::" + "DeletePersistentResource"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeletePersistentResource( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PersistentResourceServiceTracingConnection::DeletePersistentResource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::PersistentResourceServiceConnection::" + "DeletePersistentResource"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeletePersistentResource( + google::cloud::ExperimentalTag{}, operation)); +} + future> PersistentResourceServiceTracingConnection::UpdatePersistentResource( google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& @@ -95,6 +149,33 @@ PersistentResourceServiceTracingConnection::UpdatePersistentResource( child_->UpdatePersistentResource(request)); } +StatusOr +PersistentResourceServiceTracingConnection::UpdatePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::PersistentResourceServiceConnection::" + "UpdatePersistentResource"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdatePersistentResource( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PersistentResourceServiceTracingConnection::UpdatePersistentResource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::PersistentResourceServiceConnection::" + "UpdatePersistentResource"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdatePersistentResource( + google::cloud::ExperimentalTag{}, operation)); +} + future> PersistentResourceServiceTracingConnection::RebootPersistentResource( google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& @@ -107,6 +188,33 @@ PersistentResourceServiceTracingConnection::RebootPersistentResource( child_->RebootPersistentResource(request)); } +StatusOr +PersistentResourceServiceTracingConnection::RebootPersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::PersistentResourceServiceConnection::" + "RebootPersistentResource"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RebootPersistentResource( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PersistentResourceServiceTracingConnection::RebootPersistentResource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::PersistentResourceServiceConnection::" + "RebootPersistentResource"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RebootPersistentResource( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.h b/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.h index a5fef5788ca45..d215275982f6d 100644 --- a/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.h @@ -46,6 +46,16 @@ class PersistentResourceServiceTracingConnection google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& request) override; + StatusOr CreatePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& + request) override; + + future> + CreatePersistentResource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetPersistentResource( google::cloud::aiplatform::v1::GetPersistentResourceRequest const& @@ -61,16 +71,46 @@ class PersistentResourceServiceTracingConnection google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& request) override; + StatusOr DeletePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& + request) override; + + future> + DeletePersistentResource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdatePersistentResource( google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& request) override; + StatusOr UpdatePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& + request) override; + + future> + UpdatePersistentResource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RebootPersistentResource( google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& request) override; + StatusOr RebootPersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& + request) override; + + future> + RebootPersistentResource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.cc b/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.cc index 4cc8105e97275..34f47a79b5a14 100644 --- a/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.cc @@ -175,6 +175,62 @@ PipelineServiceConnectionImpl::DeleteTrainingPipeline( polling_policy(*current), __func__); } +StatusOr +PipelineServiceConnectionImpl::DeleteTrainingPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTrainingPipeline(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& + request) { + return stub_->DeleteTrainingPipeline(context, options, request); + }, + *current, request, __func__); +} + +future> +PipelineServiceConnectionImpl::DeleteTrainingPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTrainingPipeline", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + Status PipelineServiceConnectionImpl::CancelTrainingPipeline( google::cloud::aiplatform::v1::CancelTrainingPipelineRequest const& request) { @@ -294,6 +350,61 @@ PipelineServiceConnectionImpl::DeletePipelineJob( polling_policy(*current), __func__); } +StatusOr +PipelineServiceConnectionImpl::DeletePipelineJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePipelineJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeletePipelineJobRequest const& + request) { + return stub_->DeletePipelineJob(context, options, request); + }, + *current, request, __func__); +} + +future> +PipelineServiceConnectionImpl::DeletePipelineJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeletePipelineJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + future> PipelineServiceConnectionImpl::BatchDeletePipelineJobs( google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& @@ -335,6 +446,63 @@ PipelineServiceConnectionImpl::BatchDeletePipelineJobs( polling_policy(*current), __func__); } +StatusOr +PipelineServiceConnectionImpl::BatchDeletePipelineJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchDeletePipelineJobs(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& + request) { + return stub_->BatchDeletePipelineJobs(context, options, request); + }, + *current, request, __func__); +} + +future> +PipelineServiceConnectionImpl::BatchDeletePipelineJobs( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to BatchDeletePipelineJobs", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::BatchDeletePipelineJobsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::BatchDeletePipelineJobsResponse>, + polling_policy(*current), __func__); +} + Status PipelineServiceConnectionImpl::CancelPipelineJob( google::cloud::aiplatform::v1::CancelPipelineJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -390,6 +558,63 @@ PipelineServiceConnectionImpl::BatchCancelPipelineJobs( polling_policy(*current), __func__); } +StatusOr +PipelineServiceConnectionImpl::BatchCancelPipelineJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchCancelPipelineJobs(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& + request) { + return stub_->BatchCancelPipelineJobs(context, options, request); + }, + *current, request, __func__); +} + +future> +PipelineServiceConnectionImpl::BatchCancelPipelineJobs( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to BatchCancelPipelineJobs", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::BatchCancelPipelineJobsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::BatchCancelPipelineJobsResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace aiplatform_v1_internal } // namespace cloud diff --git a/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.h b/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.h index 83641f1bde87f..28913015ff1ff 100644 --- a/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.h @@ -71,6 +71,16 @@ class PipelineServiceConnectionImpl google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& request) override; + StatusOr DeleteTrainingPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& + request) override; + + future> + DeleteTrainingPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status CancelTrainingPipeline( google::cloud::aiplatform::v1::CancelTrainingPipelineRequest const& request) override; @@ -91,12 +101,32 @@ class PipelineServiceConnectionImpl google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request) override; + StatusOr DeletePipelineJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request) + override; + + future> + DeletePipelineJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> BatchDeletePipelineJobs( google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& request) override; + StatusOr BatchDeletePipelineJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& + request) override; + + future< + StatusOr> + BatchDeletePipelineJobs( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status CancelPipelineJob( google::cloud::aiplatform::v1::CancelPipelineJobRequest const& request) override; @@ -107,6 +137,17 @@ class PipelineServiceConnectionImpl google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& request) override; + StatusOr BatchCancelPipelineJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& + request) override; + + future< + StatusOr> + BatchCancelPipelineJobs( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.cc index 37c232d2ca470..e816b29e1ac97 100644 --- a/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.cc @@ -75,6 +75,31 @@ PipelineServiceTracingConnection::DeleteTrainingPipeline( child_->DeleteTrainingPipeline(request)); } +StatusOr +PipelineServiceTracingConnection::DeleteTrainingPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::PipelineServiceConnection::DeleteTrainingPipeline"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteTrainingPipeline( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PipelineServiceTracingConnection::DeleteTrainingPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::PipelineServiceConnection::DeleteTrainingPipeline"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteTrainingPipeline( + google::cloud::ExperimentalTag{}, operation)); +} + Status PipelineServiceTracingConnection::CancelTrainingPipeline( google::cloud::aiplatform::v1::CancelTrainingPipelineRequest const& request) { @@ -123,6 +148,30 @@ PipelineServiceTracingConnection::DeletePipelineJob( return internal::EndSpan(std::move(span), child_->DeletePipelineJob(request)); } +StatusOr +PipelineServiceTracingConnection::DeletePipelineJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::PipelineServiceConnection::DeletePipelineJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeletePipelineJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PipelineServiceTracingConnection::DeletePipelineJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::PipelineServiceConnection::DeletePipelineJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeletePipelineJob(google::cloud::ExperimentalTag{}, operation)); +} + future> PipelineServiceTracingConnection::BatchDeletePipelineJobs( google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& @@ -134,6 +183,31 @@ PipelineServiceTracingConnection::BatchDeletePipelineJobs( child_->BatchDeletePipelineJobs(request)); } +StatusOr +PipelineServiceTracingConnection::BatchDeletePipelineJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::PipelineServiceConnection::BatchDeletePipelineJobs"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->BatchDeletePipelineJobs( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PipelineServiceTracingConnection::BatchDeletePipelineJobs( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::PipelineServiceConnection::BatchDeletePipelineJobs"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->BatchDeletePipelineJobs( + google::cloud::ExperimentalTag{}, operation)); +} + Status PipelineServiceTracingConnection::CancelPipelineJob( google::cloud::aiplatform::v1::CancelPipelineJobRequest const& request) { auto span = internal::MakeSpan( @@ -153,6 +227,31 @@ PipelineServiceTracingConnection::BatchCancelPipelineJobs( child_->BatchCancelPipelineJobs(request)); } +StatusOr +PipelineServiceTracingConnection::BatchCancelPipelineJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::PipelineServiceConnection::BatchCancelPipelineJobs"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->BatchCancelPipelineJobs( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PipelineServiceTracingConnection::BatchCancelPipelineJobs( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::PipelineServiceConnection::BatchCancelPipelineJobs"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->BatchCancelPipelineJobs( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.h b/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.h index e26eab7356eb3..672d43822d5cd 100644 --- a/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.h @@ -59,6 +59,16 @@ class PipelineServiceTracingConnection google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& request) override; + StatusOr DeleteTrainingPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& + request) override; + + future> + DeleteTrainingPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status CancelTrainingPipeline( google::cloud::aiplatform::v1::CancelTrainingPipelineRequest const& request) override; @@ -79,12 +89,32 @@ class PipelineServiceTracingConnection google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request) override; + StatusOr DeletePipelineJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request) + override; + + future> + DeletePipelineJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> BatchDeletePipelineJobs( google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& request) override; + StatusOr BatchDeletePipelineJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& + request) override; + + future< + StatusOr> + BatchDeletePipelineJobs( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status CancelPipelineJob( google::cloud::aiplatform::v1::CancelPipelineJobRequest const& request) override; @@ -95,6 +125,17 @@ class PipelineServiceTracingConnection google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& request) override; + StatusOr BatchCancelPipelineJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& + request) override; + + future< + StatusOr> + BatchCancelPipelineJobs( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/aiplatform/v1/internal/schedule_connection_impl.cc b/google/cloud/aiplatform/v1/internal/schedule_connection_impl.cc index 4697b0d2fc078..23d136abce495 100644 --- a/google/cloud/aiplatform/v1/internal/schedule_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/schedule_connection_impl.cc @@ -121,6 +121,61 @@ ScheduleServiceConnectionImpl::DeleteSchedule( polling_policy(*current), __func__); } +StatusOr +ScheduleServiceConnectionImpl::DeleteSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteScheduleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSchedule(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteScheduleRequest const& request) { + return stub_->DeleteSchedule(context, options, request); + }, + *current, request, __func__); +} + +future> +ScheduleServiceConnectionImpl::DeleteSchedule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteSchedule", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr ScheduleServiceConnectionImpl::GetSchedule( google::cloud::aiplatform::v1::GetScheduleRequest const& request) { diff --git a/google/cloud/aiplatform/v1/internal/schedule_connection_impl.h b/google/cloud/aiplatform/v1/internal/schedule_connection_impl.h index 01b5c0fbc4f1a..ca75e3772b28c 100644 --- a/google/cloud/aiplatform/v1/internal/schedule_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/schedule_connection_impl.h @@ -60,6 +60,15 @@ class ScheduleServiceConnectionImpl DeleteSchedule(google::cloud::aiplatform::v1::DeleteScheduleRequest const& request) override; + StatusOr DeleteSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteScheduleRequest const& request) + override; + + future> + DeleteSchedule(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetSchedule( google::cloud::aiplatform::v1::GetScheduleRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.cc index 636bb550d6db5..66fcea89fc3c5 100644 --- a/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.cc @@ -51,6 +51,30 @@ ScheduleServiceTracingConnection::DeleteSchedule( return internal::EndSpan(std::move(span), child_->DeleteSchedule(request)); } +StatusOr +ScheduleServiceTracingConnection::DeleteSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteScheduleRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::ScheduleServiceConnection::DeleteSchedule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSchedule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ScheduleServiceTracingConnection::DeleteSchedule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::ScheduleServiceConnection::DeleteSchedule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSchedule(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ScheduleServiceTracingConnection::GetSchedule( google::cloud::aiplatform::v1::GetScheduleRequest const& request) { diff --git a/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.h b/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.h index 701afb770c8b2..9882711627821 100644 --- a/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.h @@ -48,6 +48,15 @@ class ScheduleServiceTracingConnection DeleteSchedule(google::cloud::aiplatform::v1::DeleteScheduleRequest const& request) override; + StatusOr DeleteSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteScheduleRequest const& request) + override; + + future> + DeleteSchedule(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetSchedule( google::cloud::aiplatform::v1::GetScheduleRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.cc b/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.cc index b436ba6741b6c..dc7999c2216ba 100644 --- a/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.cc @@ -108,6 +108,61 @@ SpecialistPoolServiceConnectionImpl::CreateSpecialistPool( polling_policy(*current), __func__); } +StatusOr +SpecialistPoolServiceConnectionImpl::CreateSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateSpecialistPool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& + request) { + return stub_->CreateSpecialistPool(context, options, request); + }, + *current, request, __func__); +} + +future> +SpecialistPoolServiceConnectionImpl::CreateSpecialistPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateSpecialistPool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::SpecialistPool>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::SpecialistPool>, + polling_policy(*current), __func__); +} + StatusOr SpecialistPoolServiceConnectionImpl::GetSpecialistPool( google::cloud::aiplatform::v1::GetSpecialistPoolRequest const& request) { @@ -198,6 +253,61 @@ SpecialistPoolServiceConnectionImpl::DeleteSpecialistPool( polling_policy(*current), __func__); } +StatusOr +SpecialistPoolServiceConnectionImpl::DeleteSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSpecialistPool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& + request) { + return stub_->DeleteSpecialistPool(context, options, request); + }, + *current, request, __func__); +} + +future> +SpecialistPoolServiceConnectionImpl::DeleteSpecialistPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteSpecialistPool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + future> SpecialistPoolServiceConnectionImpl::UpdateSpecialistPool( google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request) { @@ -238,6 +348,61 @@ SpecialistPoolServiceConnectionImpl::UpdateSpecialistPool( polling_policy(*current), __func__); } +StatusOr +SpecialistPoolServiceConnectionImpl::UpdateSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateSpecialistPool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& + request) { + return stub_->UpdateSpecialistPool(context, options, request); + }, + *current, request, __func__); +} + +future> +SpecialistPoolServiceConnectionImpl::UpdateSpecialistPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateSpecialistPool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::SpecialistPool>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::SpecialistPool>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace aiplatform_v1_internal } // namespace cloud diff --git a/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.h b/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.h index 281e990b9220e..0a7cd22b14632 100644 --- a/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.h @@ -57,6 +57,16 @@ class SpecialistPoolServiceConnectionImpl google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& request) override; + StatusOr CreateSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& request) + override; + + future> + CreateSpecialistPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetSpecialistPool( google::cloud::aiplatform::v1::GetSpecialistPoolRequest const& request) override; @@ -70,11 +80,31 @@ class SpecialistPoolServiceConnectionImpl google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& request) override; + StatusOr DeleteSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& request) + override; + + future> + DeleteSpecialistPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateSpecialistPool( google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request) override; + StatusOr UpdateSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request) + override; + + future> + UpdateSpecialistPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.cc index 9c54a79952ae4..f3678e134a206 100644 --- a/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.cc @@ -43,6 +43,30 @@ SpecialistPoolServiceTracingConnection::CreateSpecialistPool( child_->CreateSpecialistPool(request)); } +StatusOr +SpecialistPoolServiceTracingConnection::CreateSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::SpecialistPoolServiceConnection::CreateSpecialistPool"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateSpecialistPool( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpecialistPoolServiceTracingConnection::CreateSpecialistPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::SpecialistPoolServiceConnection::CreateSpecialistPool"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateSpecialistPool( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SpecialistPoolServiceTracingConnection::GetSpecialistPool( google::cloud::aiplatform::v1::GetSpecialistPoolRequest const& request) { @@ -74,6 +98,30 @@ SpecialistPoolServiceTracingConnection::DeleteSpecialistPool( child_->DeleteSpecialistPool(request)); } +StatusOr +SpecialistPoolServiceTracingConnection::DeleteSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::SpecialistPoolServiceConnection::DeleteSpecialistPool"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteSpecialistPool( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpecialistPoolServiceTracingConnection::DeleteSpecialistPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::SpecialistPoolServiceConnection::DeleteSpecialistPool"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteSpecialistPool( + google::cloud::ExperimentalTag{}, operation)); +} + future> SpecialistPoolServiceTracingConnection::UpdateSpecialistPool( google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request) { @@ -84,6 +132,30 @@ SpecialistPoolServiceTracingConnection::UpdateSpecialistPool( child_->UpdateSpecialistPool(request)); } +StatusOr +SpecialistPoolServiceTracingConnection::UpdateSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::SpecialistPoolServiceConnection::UpdateSpecialistPool"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateSpecialistPool( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpecialistPoolServiceTracingConnection::UpdateSpecialistPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::SpecialistPoolServiceConnection::UpdateSpecialistPool"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateSpecialistPool( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.h b/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.h index e00dbe7763090..6a04309d39080 100644 --- a/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.h @@ -45,6 +45,16 @@ class SpecialistPoolServiceTracingConnection google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& request) override; + StatusOr CreateSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& request) + override; + + future> + CreateSpecialistPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetSpecialistPool( google::cloud::aiplatform::v1::GetSpecialistPoolRequest const& request) override; @@ -58,11 +68,31 @@ class SpecialistPoolServiceTracingConnection google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& request) override; + StatusOr DeleteSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& request) + override; + + future> + DeleteSpecialistPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateSpecialistPool( google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request) override; + StatusOr UpdateSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request) + override; + + future> + UpdateSpecialistPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.cc b/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.cc index 2236c8166fb72..ad0e674e35a94 100644 --- a/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.cc @@ -113,6 +113,61 @@ TensorboardServiceConnectionImpl::CreateTensorboard( polling_policy(*current), __func__); } +StatusOr +TensorboardServiceConnectionImpl::CreateTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateTensorboardRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateTensorboard(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::CreateTensorboardRequest const& + request) { + return stub_->CreateTensorboard(context, options, request); + }, + *current, request, __func__); +} + +future> +TensorboardServiceConnectionImpl::CreateTensorboard( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateTensorboard", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::Tensorboard>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::Tensorboard>, + polling_policy(*current), __func__); +} + StatusOr TensorboardServiceConnectionImpl::GetTensorboard( google::cloud::aiplatform::v1::GetTensorboardRequest const& request) { @@ -168,6 +223,61 @@ TensorboardServiceConnectionImpl::UpdateTensorboard( polling_policy(*current), __func__); } +StatusOr +TensorboardServiceConnectionImpl::UpdateTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateTensorboard(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::UpdateTensorboardRequest const& + request) { + return stub_->UpdateTensorboard(context, options, request); + }, + *current, request, __func__); +} + +future> +TensorboardServiceConnectionImpl::UpdateTensorboard( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateTensorboard", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::Tensorboard>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::Tensorboard>, + polling_policy(*current), __func__); +} + StreamRange TensorboardServiceConnectionImpl::ListTensorboards( google::cloud::aiplatform::v1::ListTensorboardsRequest request) { @@ -242,6 +352,61 @@ TensorboardServiceConnectionImpl::DeleteTensorboard( polling_policy(*current), __func__); } +StatusOr +TensorboardServiceConnectionImpl::DeleteTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTensorboard(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteTensorboardRequest const& + request) { + return stub_->DeleteTensorboard(context, options, request); + }, + *current, request, __func__); +} + +future> +TensorboardServiceConnectionImpl::DeleteTensorboard( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTensorboard", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr TensorboardServiceConnectionImpl::ReadTensorboardUsage( google::cloud::aiplatform::v1::ReadTensorboardUsageRequest const& request) { @@ -398,6 +563,62 @@ TensorboardServiceConnectionImpl::DeleteTensorboardExperiment( polling_policy(*current), __func__); } +StatusOr +TensorboardServiceConnectionImpl::DeleteTensorboardExperiment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTensorboardExperiment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1:: + DeleteTensorboardExperimentRequest const& request) { + return stub_->DeleteTensorboardExperiment(context, options, request); + }, + *current, request, __func__); +} + +future> +TensorboardServiceConnectionImpl::DeleteTensorboardExperiment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTensorboardExperiment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr TensorboardServiceConnectionImpl::CreateTensorboardRun( google::cloud::aiplatform::v1::CreateTensorboardRunRequest const& request) { @@ -534,6 +755,61 @@ TensorboardServiceConnectionImpl::DeleteTensorboardRun( polling_policy(*current), __func__); } +StatusOr +TensorboardServiceConnectionImpl::DeleteTensorboardRun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTensorboardRun(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& + request) { + return stub_->DeleteTensorboardRun(context, options, request); + }, + *current, request, __func__); +} + +future> +TensorboardServiceConnectionImpl::DeleteTensorboardRun( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTensorboardRun", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr< google::cloud::aiplatform::v1::BatchCreateTensorboardTimeSeriesResponse> TensorboardServiceConnectionImpl::BatchCreateTensorboardTimeSeries( @@ -677,6 +953,62 @@ TensorboardServiceConnectionImpl::DeleteTensorboardTimeSeries( polling_policy(*current), __func__); } +StatusOr +TensorboardServiceConnectionImpl::DeleteTensorboardTimeSeries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTensorboardTimeSeries(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1:: + DeleteTensorboardTimeSeriesRequest const& request) { + return stub_->DeleteTensorboardTimeSeries(context, options, request); + }, + *current, request, __func__); +} + +future> +TensorboardServiceConnectionImpl::DeleteTensorboardTimeSeries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTensorboardTimeSeries", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::DeleteOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::aiplatform::v1::DeleteOperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr< google::cloud::aiplatform::v1::BatchReadTensorboardTimeSeriesDataResponse> TensorboardServiceConnectionImpl::BatchReadTensorboardTimeSeriesData( diff --git a/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.h b/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.h index 9291d79e64d8c..684fce4b767a3 100644 --- a/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.h @@ -62,6 +62,15 @@ class TensorboardServiceConnectionImpl google::cloud::aiplatform::v1::CreateTensorboardRequest const& request) override; + StatusOr CreateTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateTensorboardRequest const& request) + override; + + future> + CreateTensorboard(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetTensorboard( google::cloud::aiplatform::v1::GetTensorboardRequest const& request) override; @@ -71,6 +80,15 @@ class TensorboardServiceConnectionImpl google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request) override; + StatusOr UpdateTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request) + override; + + future> + UpdateTensorboard(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTensorboards( google::cloud::aiplatform::v1::ListTensorboardsRequest request) override; @@ -79,6 +97,15 @@ class TensorboardServiceConnectionImpl google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request) override; + StatusOr DeleteTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request) + override; + + future> + DeleteTensorboard(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ReadTensorboardUsage( google::cloud::aiplatform::v1::ReadTensorboardUsageRequest const& request) @@ -114,6 +141,16 @@ class TensorboardServiceConnectionImpl google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& request) override; + StatusOr DeleteTensorboardExperiment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& + request) override; + + future> + DeleteTensorboardExperiment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateTensorboardRun( google::cloud::aiplatform::v1::CreateTensorboardRunRequest const& request) override; @@ -140,6 +177,16 @@ class TensorboardServiceConnectionImpl google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& request) override; + StatusOr DeleteTensorboardRun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& request) + override; + + future> + DeleteTensorboardRun( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr< google::cloud::aiplatform::v1::BatchCreateTensorboardTimeSeriesResponse> BatchCreateTensorboardTimeSeries( @@ -171,6 +218,16 @@ class TensorboardServiceConnectionImpl google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& request) override; + StatusOr DeleteTensorboardTimeSeries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& + request) override; + + future> + DeleteTensorboardTimeSeries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr< google::cloud::aiplatform::v1::BatchReadTensorboardTimeSeriesDataResponse> BatchReadTensorboardTimeSeriesData( diff --git a/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.cc index d280a3ccfadbd..795c5965d004e 100644 --- a/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.cc @@ -42,6 +42,30 @@ TensorboardServiceTracingConnection::CreateTensorboard( return internal::EndSpan(std::move(span), child_->CreateTensorboard(request)); } +StatusOr +TensorboardServiceTracingConnection::CreateTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateTensorboardRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::TensorboardServiceConnection::CreateTensorboard"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateTensorboard(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TensorboardServiceTracingConnection::CreateTensorboard( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::TensorboardServiceConnection::CreateTensorboard"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateTensorboard(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TensorboardServiceTracingConnection::GetTensorboard( google::cloud::aiplatform::v1::GetTensorboardRequest const& request) { @@ -60,6 +84,30 @@ TensorboardServiceTracingConnection::UpdateTensorboard( return internal::EndSpan(std::move(span), child_->UpdateTensorboard(request)); } +StatusOr +TensorboardServiceTracingConnection::UpdateTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::TensorboardServiceConnection::UpdateTensorboard"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateTensorboard(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TensorboardServiceTracingConnection::UpdateTensorboard( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::TensorboardServiceConnection::UpdateTensorboard"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateTensorboard(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange TensorboardServiceTracingConnection::ListTensorboards( google::cloud::aiplatform::v1::ListTensorboardsRequest request) { @@ -81,6 +129,30 @@ TensorboardServiceTracingConnection::DeleteTensorboard( return internal::EndSpan(std::move(span), child_->DeleteTensorboard(request)); } +StatusOr +TensorboardServiceTracingConnection::DeleteTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::TensorboardServiceConnection::DeleteTensorboard"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteTensorboard(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TensorboardServiceTracingConnection::DeleteTensorboard( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::TensorboardServiceConnection::DeleteTensorboard"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteTensorboard(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TensorboardServiceTracingConnection::ReadTensorboardUsage( google::cloud::aiplatform::v1::ReadTensorboardUsageRequest const& request) { @@ -156,6 +228,33 @@ TensorboardServiceTracingConnection::DeleteTensorboardExperiment( child_->DeleteTensorboardExperiment(request)); } +StatusOr +TensorboardServiceTracingConnection::DeleteTensorboardExperiment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::TensorboardServiceConnection::" + "DeleteTensorboardExperiment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteTensorboardExperiment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TensorboardServiceTracingConnection::DeleteTensorboardExperiment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::TensorboardServiceConnection::" + "DeleteTensorboardExperiment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteTensorboardExperiment( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TensorboardServiceTracingConnection::CreateTensorboardRun( google::cloud::aiplatform::v1::CreateTensorboardRunRequest const& request) { @@ -216,6 +315,30 @@ TensorboardServiceTracingConnection::DeleteTensorboardRun( child_->DeleteTensorboardRun(request)); } +StatusOr +TensorboardServiceTracingConnection::DeleteTensorboardRun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::TensorboardServiceConnection::DeleteTensorboardRun"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteTensorboardRun( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TensorboardServiceTracingConnection::DeleteTensorboardRun( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::TensorboardServiceConnection::DeleteTensorboardRun"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteTensorboardRun( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr< google::cloud::aiplatform::v1::BatchCreateTensorboardTimeSeriesResponse> TensorboardServiceTracingConnection::BatchCreateTensorboardTimeSeries( @@ -285,6 +408,33 @@ TensorboardServiceTracingConnection::DeleteTensorboardTimeSeries( child_->DeleteTensorboardTimeSeries(request)); } +StatusOr +TensorboardServiceTracingConnection::DeleteTensorboardTimeSeries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::TensorboardServiceConnection::" + "DeleteTensorboardTimeSeries"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteTensorboardTimeSeries( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TensorboardServiceTracingConnection::DeleteTensorboardTimeSeries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::TensorboardServiceConnection::" + "DeleteTensorboardTimeSeries"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteTensorboardTimeSeries( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr< google::cloud::aiplatform::v1::BatchReadTensorboardTimeSeriesDataResponse> TensorboardServiceTracingConnection::BatchReadTensorboardTimeSeriesData( diff --git a/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.h b/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.h index 5b3547a34b0e8..b5a9fbe0fe205 100644 --- a/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.h @@ -45,6 +45,15 @@ class TensorboardServiceTracingConnection google::cloud::aiplatform::v1::CreateTensorboardRequest const& request) override; + StatusOr CreateTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateTensorboardRequest const& request) + override; + + future> + CreateTensorboard(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetTensorboard( google::cloud::aiplatform::v1::GetTensorboardRequest const& request) override; @@ -54,6 +63,15 @@ class TensorboardServiceTracingConnection google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request) override; + StatusOr UpdateTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request) + override; + + future> + UpdateTensorboard(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTensorboards( google::cloud::aiplatform::v1::ListTensorboardsRequest request) override; @@ -62,6 +80,15 @@ class TensorboardServiceTracingConnection google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request) override; + StatusOr DeleteTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request) + override; + + future> + DeleteTensorboard(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ReadTensorboardUsage( google::cloud::aiplatform::v1::ReadTensorboardUsageRequest const& request) @@ -97,6 +124,16 @@ class TensorboardServiceTracingConnection google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& request) override; + StatusOr DeleteTensorboardExperiment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& + request) override; + + future> + DeleteTensorboardExperiment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateTensorboardRun( google::cloud::aiplatform::v1::CreateTensorboardRunRequest const& request) override; @@ -123,6 +160,16 @@ class TensorboardServiceTracingConnection google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& request) override; + StatusOr DeleteTensorboardRun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& request) + override; + + future> + DeleteTensorboardRun( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr< google::cloud::aiplatform::v1::BatchCreateTensorboardTimeSeriesResponse> BatchCreateTensorboardTimeSeries( @@ -154,6 +201,16 @@ class TensorboardServiceTracingConnection google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& request) override; + StatusOr DeleteTensorboardTimeSeries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& + request) override; + + future> + DeleteTensorboardTimeSeries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr< google::cloud::aiplatform::v1::BatchReadTensorboardTimeSeriesDataResponse> BatchReadTensorboardTimeSeriesData( diff --git a/google/cloud/aiplatform/v1/internal/vizier_connection_impl.cc b/google/cloud/aiplatform/v1/internal/vizier_connection_impl.cc index 4c2f33ccdefec..4a2c3f88bac67 100644 --- a/google/cloud/aiplatform/v1/internal/vizier_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/vizier_connection_impl.cc @@ -194,6 +194,61 @@ VizierServiceConnectionImpl::SuggestTrials( polling_policy(*current), __func__); } +StatusOr +VizierServiceConnectionImpl::SuggestTrials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::SuggestTrialsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SuggestTrials(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1::SuggestTrialsRequest const& request) { + return stub_->SuggestTrials(context, options, request); + }, + *current, request, __func__); +} + +future> +VizierServiceConnectionImpl::SuggestTrials( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to SuggestTrials", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::SuggestTrialsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::SuggestTrialsResponse>, + polling_policy(*current), __func__); +} + StatusOr VizierServiceConnectionImpl::CreateTrial( google::cloud::aiplatform::v1::CreateTrialRequest const& request) { @@ -340,6 +395,63 @@ VizierServiceConnectionImpl::CheckTrialEarlyStoppingState( polling_policy(*current), __func__); } +StatusOr +VizierServiceConnectionImpl::CheckTrialEarlyStoppingState( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CheckTrialEarlyStoppingState(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::aiplatform::v1:: + CheckTrialEarlyStoppingStateRequest const& request) { + return stub_->CheckTrialEarlyStoppingState(context, options, request); + }, + *current, request, __func__); +} + +future> +VizierServiceConnectionImpl::CheckTrialEarlyStoppingState( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CheckTrialEarlyStoppingState", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateResponse>, + polling_policy(*current), __func__); +} + StatusOr VizierServiceConnectionImpl::StopTrial( google::cloud::aiplatform::v1::StopTrialRequest const& request) { diff --git a/google/cloud/aiplatform/v1/internal/vizier_connection_impl.h b/google/cloud/aiplatform/v1/internal/vizier_connection_impl.h index 9cf74ac44234e..fe905c58b2da7 100644 --- a/google/cloud/aiplatform/v1/internal/vizier_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/vizier_connection_impl.h @@ -73,6 +73,15 @@ class VizierServiceConnectionImpl SuggestTrials(google::cloud::aiplatform::v1::SuggestTrialsRequest const& request) override; + StatusOr SuggestTrials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::SuggestTrialsRequest const& request) + override; + + future> + SuggestTrials(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateTrial( google::cloud::aiplatform::v1::CreateTrialRequest const& request) override; @@ -100,6 +109,17 @@ class VizierServiceConnectionImpl google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& request) override; + StatusOr CheckTrialEarlyStoppingState( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& + request) override; + + future> + CheckTrialEarlyStoppingState( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr StopTrial( google::cloud::aiplatform::v1::StopTrialRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.cc index e096183f62ef5..9d3fb5c3fd9c2 100644 --- a/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.cc @@ -88,6 +88,30 @@ VizierServiceTracingConnection::SuggestTrials( return internal::EndSpan(std::move(span), child_->SuggestTrials(request)); } +StatusOr +VizierServiceTracingConnection::SuggestTrials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::SuggestTrialsRequest const& request) { + auto span = internal::MakeSpan( + "aiplatform_v1::VizierServiceConnection::SuggestTrials"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SuggestTrials(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VizierServiceTracingConnection::SuggestTrials( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::VizierServiceConnection::SuggestTrials"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SuggestTrials(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr VizierServiceTracingConnection::CreateTrial( google::cloud::aiplatform::v1::CreateTrialRequest const& request) { @@ -155,6 +179,32 @@ VizierServiceTracingConnection::CheckTrialEarlyStoppingState( child_->CheckTrialEarlyStoppingState(request)); } +StatusOr +VizierServiceTracingConnection::CheckTrialEarlyStoppingState( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& + request) { + auto span = internal::MakeSpan( + "aiplatform_v1::VizierServiceConnection::CheckTrialEarlyStoppingState"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CheckTrialEarlyStoppingState( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VizierServiceTracingConnection::CheckTrialEarlyStoppingState( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "aiplatform_v1::VizierServiceConnection::CheckTrialEarlyStoppingState"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CheckTrialEarlyStoppingState( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr VizierServiceTracingConnection::StopTrial( google::cloud::aiplatform::v1::StopTrialRequest const& request) { diff --git a/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.h b/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.h index 0ac454c1b0874..55b93be3afc3a 100644 --- a/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.h @@ -61,6 +61,15 @@ class VizierServiceTracingConnection SuggestTrials(google::cloud::aiplatform::v1::SuggestTrialsRequest const& request) override; + StatusOr SuggestTrials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::SuggestTrialsRequest const& request) + override; + + future> + SuggestTrials(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateTrial( google::cloud::aiplatform::v1::CreateTrialRequest const& request) override; @@ -88,6 +97,17 @@ class VizierServiceTracingConnection google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& request) override; + StatusOr CheckTrialEarlyStoppingState( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& + request) override; + + future> + CheckTrialEarlyStoppingState( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr StopTrial( google::cloud::aiplatform::v1::StopTrialRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/job_connection.cc b/google/cloud/aiplatform/v1/job_connection.cc index b2f613bd9a498..8cbec861f9a37 100644 --- a/google/cloud/aiplatform/v1/job_connection.cc +++ b/google/cloud/aiplatform/v1/job_connection.cc @@ -66,6 +66,21 @@ JobServiceConnection::DeleteCustomJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr JobServiceConnection::DeleteCustomJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteCustomJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +JobServiceConnection::DeleteCustomJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status JobServiceConnection::CancelCustomJob( google::cloud::aiplatform::v1::CancelCustomJobRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -99,6 +114,22 @@ JobServiceConnection::DeleteDataLabelingJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +JobServiceConnection::DeleteDataLabelingJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +JobServiceConnection::DeleteDataLabelingJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status JobServiceConnection::CancelDataLabelingJob( google::cloud::aiplatform::v1::CancelDataLabelingJobRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -134,6 +165,23 @@ JobServiceConnection::DeleteHyperparameterTuningJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +JobServiceConnection::DeleteHyperparameterTuningJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + DeleteHyperparameterTuningJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +JobServiceConnection::DeleteHyperparameterTuningJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status JobServiceConnection::CancelHyperparameterTuningJob( google::cloud::aiplatform::v1:: CancelHyperparameterTuningJobRequest const&) { @@ -167,6 +215,21 @@ JobServiceConnection::DeleteNasJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr JobServiceConnection::DeleteNasJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNasJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +JobServiceConnection::DeleteNasJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status JobServiceConnection::CancelNasJob( google::cloud::aiplatform::v1::CancelNasJobRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -214,6 +277,22 @@ JobServiceConnection::DeleteBatchPredictionJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +JobServiceConnection::DeleteBatchPredictionJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +JobServiceConnection::DeleteBatchPredictionJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status JobServiceConnection::CancelBatchPredictionJob( google::cloud::aiplatform::v1::CancelBatchPredictionJobRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -258,6 +337,23 @@ JobServiceConnection::UpdateModelDeploymentMonitoringJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +JobServiceConnection::UpdateModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + UpdateModelDeploymentMonitoringJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +JobServiceConnection::UpdateModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> JobServiceConnection::DeleteModelDeploymentMonitoringJob( google::cloud::aiplatform::v1:: @@ -267,6 +363,23 @@ JobServiceConnection::DeleteModelDeploymentMonitoringJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +JobServiceConnection::DeleteModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + DeleteModelDeploymentMonitoringJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +JobServiceConnection::DeleteModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status JobServiceConnection::PauseModelDeploymentMonitoringJob( google::cloud::aiplatform::v1:: PauseModelDeploymentMonitoringJobRequest const&) { diff --git a/google/cloud/aiplatform/v1/job_connection.h b/google/cloud/aiplatform/v1/job_connection.h index 823d6e04c683d..1da4afb59d3cc 100644 --- a/google/cloud/aiplatform/v1/job_connection.h +++ b/google/cloud/aiplatform/v1/job_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/internal/job_retry_traits.h" #include "google/cloud/aiplatform/v1/job_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -199,6 +201,15 @@ class JobServiceConnection { DeleteCustomJob( google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request); + virtual StatusOr DeleteCustomJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request); + + virtual future< + StatusOr> + DeleteCustomJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status CancelCustomJob( google::cloud::aiplatform::v1::CancelCustomJobRequest const& request); @@ -221,6 +232,16 @@ class JobServiceConnection { google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& request); + virtual StatusOr DeleteDataLabelingJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& + request); + + virtual future< + StatusOr> + DeleteDataLabelingJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status CancelDataLabelingJob( google::cloud::aiplatform::v1::CancelDataLabelingJobRequest const& request); @@ -246,6 +267,18 @@ class JobServiceConnection { google::cloud::aiplatform::v1::DeleteHyperparameterTuningJobRequest const& request); + virtual StatusOr + DeleteHyperparameterTuningJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteHyperparameterTuningJobRequest const& + request); + + virtual future< + StatusOr> + DeleteHyperparameterTuningJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status CancelHyperparameterTuningJob( google::cloud::aiplatform::v1::CancelHyperparameterTuningJobRequest const& request); @@ -264,6 +297,15 @@ class JobServiceConnection { DeleteNasJob( google::cloud::aiplatform::v1::DeleteNasJobRequest const& request); + virtual StatusOr DeleteNasJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNasJobRequest const& request); + + virtual future< + StatusOr> + DeleteNasJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status CancelNasJob( google::cloud::aiplatform::v1::CancelNasJobRequest const& request); @@ -295,6 +337,16 @@ class JobServiceConnection { google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& request); + virtual StatusOr DeleteBatchPredictionJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& + request); + + virtual future< + StatusOr> + DeleteBatchPredictionJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status CancelBatchPredictionJob( google::cloud::aiplatform::v1::CancelBatchPredictionJobRequest const& request); @@ -327,12 +379,36 @@ class JobServiceConnection { google::cloud::aiplatform::v1:: UpdateModelDeploymentMonitoringJobRequest const& request); + virtual StatusOr + UpdateModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + UpdateModelDeploymentMonitoringJobRequest const& request); + + virtual future< + StatusOr> + UpdateModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteModelDeploymentMonitoringJob( google::cloud::aiplatform::v1:: DeleteModelDeploymentMonitoringJobRequest const& request); + virtual StatusOr + DeleteModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + DeleteModelDeploymentMonitoringJobRequest const& request); + + virtual future< + StatusOr> + DeleteModelDeploymentMonitoringJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status PauseModelDeploymentMonitoringJob( google::cloud::aiplatform::v1:: PauseModelDeploymentMonitoringJobRequest const& request); diff --git a/google/cloud/aiplatform/v1/llm_utility_connection.h b/google/cloud/aiplatform/v1/llm_utility_connection.h index b6c1a354b8640..031dc2ea785fb 100644 --- a/google/cloud/aiplatform/v1/llm_utility_connection.h +++ b/google/cloud/aiplatform/v1/llm_utility_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/internal/llm_utility_retry_traits.h" #include "google/cloud/aiplatform/v1/llm_utility_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/aiplatform/v1/match_connection.h b/google/cloud/aiplatform/v1/match_connection.h index fea18a7b0e3a0..5d202d2a2e1b2 100644 --- a/google/cloud/aiplatform/v1/match_connection.h +++ b/google/cloud/aiplatform/v1/match_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/internal/match_retry_traits.h" #include "google/cloud/aiplatform/v1/match_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/aiplatform/v1/metadata_connection.cc b/google/cloud/aiplatform/v1/metadata_connection.cc index 6b29786413dba..51b0c54d5e79d 100644 --- a/google/cloud/aiplatform/v1/metadata_connection.cc +++ b/google/cloud/aiplatform/v1/metadata_connection.cc @@ -46,6 +46,22 @@ MetadataServiceConnection::CreateMetadataStore( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MetadataServiceConnection::CreateMetadataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateMetadataStoreRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MetadataServiceConnection::CreateMetadataStore( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr MetadataServiceConnection::GetMetadataStore( google::cloud::aiplatform::v1::GetMetadataStoreRequest const&) { @@ -69,6 +85,23 @@ MetadataServiceConnection::DeleteMetadataStore( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MetadataServiceConnection::DeleteMetadataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MetadataServiceConnection::DeleteMetadataStore( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr MetadataServiceConnection::CreateArtifact( google::cloud::aiplatform::v1::CreateArtifactRequest const&) { @@ -103,6 +136,22 @@ MetadataServiceConnection::DeleteArtifact( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MetadataServiceConnection::DeleteArtifact( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteArtifactRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MetadataServiceConnection::DeleteArtifact( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MetadataServiceConnection::PurgeArtifacts( google::cloud::aiplatform::v1::PurgeArtifactsRequest const&) { @@ -111,6 +160,22 @@ MetadataServiceConnection::PurgeArtifacts( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MetadataServiceConnection::PurgeArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeArtifactsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MetadataServiceConnection::PurgeArtifacts( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr MetadataServiceConnection::CreateContext( google::cloud::aiplatform::v1::CreateContextRequest const&) { @@ -145,6 +210,22 @@ MetadataServiceConnection::DeleteContext( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MetadataServiceConnection::DeleteContext( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteContextRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MetadataServiceConnection::DeleteContext( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MetadataServiceConnection::PurgeContexts( google::cloud::aiplatform::v1::PurgeContextsRequest const&) { @@ -153,6 +234,22 @@ MetadataServiceConnection::PurgeContexts( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MetadataServiceConnection::PurgeContexts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeContextsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MetadataServiceConnection::PurgeContexts( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr< google::cloud::aiplatform::v1::AddContextArtifactsAndExecutionsResponse> MetadataServiceConnection::AddContextArtifactsAndExecutions( @@ -213,6 +310,22 @@ MetadataServiceConnection::DeleteExecution( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MetadataServiceConnection::DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteExecutionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MetadataServiceConnection::DeleteExecution( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MetadataServiceConnection::PurgeExecutions( google::cloud::aiplatform::v1::PurgeExecutionsRequest const&) { @@ -221,6 +334,22 @@ MetadataServiceConnection::PurgeExecutions( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MetadataServiceConnection::PurgeExecutions( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeExecutionsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MetadataServiceConnection::PurgeExecutions( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr MetadataServiceConnection::AddExecutionEvents( google::cloud::aiplatform::v1::AddExecutionEventsRequest const&) { diff --git a/google/cloud/aiplatform/v1/metadata_connection.h b/google/cloud/aiplatform/v1/metadata_connection.h index b361f4c8c31cb..3ebfd0937a137 100644 --- a/google/cloud/aiplatform/v1/metadata_connection.h +++ b/google/cloud/aiplatform/v1/metadata_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/internal/metadata_retry_traits.h" #include "google/cloud/aiplatform/v1/metadata_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -191,6 +193,14 @@ class MetadataServiceConnection { CreateMetadataStore( google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request); + virtual StatusOr CreateMetadataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request); + + virtual future> + CreateMetadataStore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetMetadataStore( google::cloud::aiplatform::v1::GetMetadataStoreRequest const& request); @@ -204,6 +214,15 @@ class MetadataServiceConnection { DeleteMetadataStore( google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request); + virtual StatusOr DeleteMetadataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request); + + virtual future> + DeleteMetadataStore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateArtifact( google::cloud::aiplatform::v1::CreateArtifactRequest const& request); @@ -221,11 +240,29 @@ class MetadataServiceConnection { DeleteArtifact( google::cloud::aiplatform::v1::DeleteArtifactRequest const& request); + virtual StatusOr DeleteArtifact( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteArtifactRequest const& request); + + virtual future< + StatusOr> + DeleteArtifact(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> PurgeArtifacts( google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request); + virtual StatusOr PurgeArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request); + + virtual future< + StatusOr> + PurgeArtifacts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateContext( google::cloud::aiplatform::v1::CreateContextRequest const& request); @@ -243,10 +280,27 @@ class MetadataServiceConnection { DeleteContext( google::cloud::aiplatform::v1::DeleteContextRequest const& request); + virtual StatusOr DeleteContext( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteContextRequest const& request); + + virtual future< + StatusOr> + DeleteContext(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> PurgeContexts( google::cloud::aiplatform::v1::PurgeContextsRequest const& request); + virtual StatusOr PurgeContexts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeContextsRequest const& request); + + virtual future> + PurgeContexts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::cloud::aiplatform::v1::AddContextArtifactsAndExecutionsResponse> AddContextArtifactsAndExecutions( @@ -284,11 +338,29 @@ class MetadataServiceConnection { DeleteExecution( google::cloud::aiplatform::v1::DeleteExecutionRequest const& request); + virtual StatusOr DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteExecutionRequest const& request); + + virtual future< + StatusOr> + DeleteExecution(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> PurgeExecutions( google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request); + virtual StatusOr PurgeExecutions( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request); + + virtual future< + StatusOr> + PurgeExecutions(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr AddExecutionEvents( google::cloud::aiplatform::v1::AddExecutionEventsRequest const& request); diff --git a/google/cloud/aiplatform/v1/migration_connection.cc b/google/cloud/aiplatform/v1/migration_connection.cc index 4a743a4075629..b6e2528e7d617 100644 --- a/google/cloud/aiplatform/v1/migration_connection.cc +++ b/google/cloud/aiplatform/v1/migration_connection.cc @@ -54,6 +54,22 @@ MigrationServiceConnection::BatchMigrateResources( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationServiceConnection::BatchMigrateResources( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationServiceConnection::BatchMigrateResources( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeMigrationServiceConnection( std::string const& location, Options options) { internal::CheckExpectedOptions BatchMigrateResources( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& + request); + + virtual future< + StatusOr> + BatchMigrateResources(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/aiplatform/v1/mocks/mock_dataset_connection.h b/google/cloud/aiplatform/v1/mocks/mock_dataset_connection.h index 331692f5c1a75..f7c776b904e2c 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_dataset_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_dataset_connection.h @@ -52,6 +52,18 @@ class MockDatasetServiceConnection (google::cloud::aiplatform::v1::CreateDatasetRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateDataset, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDatasetRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateDataset, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetDataset, (google::cloud::aiplatform::v1::GetDatasetRequest const& request), (override)); @@ -72,24 +84,73 @@ class MockDatasetServiceConnection (google::cloud::aiplatform::v1::DeleteDatasetRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteDataset, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDatasetRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteDataset, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ImportData, (google::cloud::aiplatform::v1::ImportDataRequest const& request), (override)); + MOCK_METHOD(StatusOr, ImportData, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ImportDataRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ImportData, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ExportData, (google::cloud::aiplatform::v1::ExportDataRequest const& request), (override)); + MOCK_METHOD(StatusOr, ExportData, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportDataRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ExportData, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, CreateDatasetVersion, (google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateDatasetVersion, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateDatasetVersion, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, UpdateDatasetVersion, (google::cloud::aiplatform::v1::UpdateDatasetVersionRequest const& @@ -103,6 +164,19 @@ class MockDatasetServiceConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteDatasetVersion, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteDatasetVersion, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetDatasetVersion, @@ -122,6 +196,19 @@ class MockDatasetServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, RestoreDatasetVersion, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& + request), + (override)); + + MOCK_METHOD(future>, + RestoreDatasetVersion, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListDataItems, (google::cloud::aiplatform::v1::ListDataItemsRequest request), @@ -143,6 +230,19 @@ class MockDatasetServiceConnection (google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteSavedQuery, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteSavedQuery, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetAnnotationSpec, diff --git a/google/cloud/aiplatform/v1/mocks/mock_deployment_resource_pool_connection.h b/google/cloud/aiplatform/v1/mocks/mock_deployment_resource_pool_connection.h index 44e89c1b4a830..ebdb439a8564c 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_deployment_resource_pool_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_deployment_resource_pool_connection.h @@ -54,6 +54,20 @@ class MockDeploymentResourcePoolServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateDeploymentResourcePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateDeploymentResourcePool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetDeploymentResourcePool, @@ -74,6 +88,20 @@ class MockDeploymentResourcePoolServiceConnection (google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteDeploymentResourcePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteDeploymentResourcePool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/aiplatform/v1/mocks/mock_endpoint_connection.h b/google/cloud/aiplatform/v1/mocks/mock_endpoint_connection.h index 752892423586b..40a78bcc85f0f 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_endpoint_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_endpoint_connection.h @@ -52,6 +52,18 @@ class MockEndpointServiceConnection (google::cloud::aiplatform::v1::CreateEndpointRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateEndpoint, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateEndpointRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateEndpoint, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetEndpoint, (google::cloud::aiplatform::v1::GetEndpointRequest const& request), @@ -73,18 +85,57 @@ class MockEndpointServiceConnection (google::cloud::aiplatform::v1::DeleteEndpointRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteEndpoint, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteEndpointRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteEndpoint, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeployModel, (google::cloud::aiplatform::v1::DeployModelRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeployModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeployModelRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeployModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UndeployModel, (google::cloud::aiplatform::v1::UndeployModelRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UndeployModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UndeployModelRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UndeployModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -92,6 +143,20 @@ class MockEndpointServiceConnection (google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request), (override)); + + MOCK_METHOD(StatusOr, MutateDeployedModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::MutateDeployedModelRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + MutateDeployedModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/aiplatform/v1/mocks/mock_feature_online_store_admin_connection.h b/google/cloud/aiplatform/v1/mocks/mock_feature_online_store_admin_connection.h index c2eac09fae4f1..cb707bddb6830 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_feature_online_store_admin_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_feature_online_store_admin_connection.h @@ -54,6 +54,20 @@ class MockFeatureOnlineStoreAdminServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateFeatureOnlineStore, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateFeatureOnlineStore, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetFeatureOnlineStore, @@ -74,6 +88,20 @@ class MockFeatureOnlineStoreAdminServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateFeatureOnlineStore, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateFeatureOnlineStore, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteFeatureOnlineStore, @@ -81,12 +109,38 @@ class MockFeatureOnlineStoreAdminServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteFeatureOnlineStore, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteFeatureOnlineStore, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateFeatureView, (google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateFeatureView, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateFeatureView, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetFeatureView, (google::cloud::aiplatform::v1::GetFeatureViewRequest const& request), @@ -103,12 +157,37 @@ class MockFeatureOnlineStoreAdminServiceConnection (google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateFeatureView, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateFeatureView, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteFeatureView, (google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteFeatureView, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteFeatureView, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, SyncFeatureView, diff --git a/google/cloud/aiplatform/v1/mocks/mock_feature_registry_connection.h b/google/cloud/aiplatform/v1/mocks/mock_feature_registry_connection.h index f49639d335bb0..bf4e4f4a263c9 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_feature_registry_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_feature_registry_connection.h @@ -53,6 +53,18 @@ class MockFeatureRegistryServiceConnection (google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateFeatureGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateFeatureGroup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetFeatureGroup, (google::cloud::aiplatform::v1::GetFeatureGroupRequest const& request), @@ -69,17 +81,54 @@ class MockFeatureRegistryServiceConnection (google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateFeatureGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateFeatureGroup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteFeatureGroup, (google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteFeatureGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteFeatureGroup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateFeature, (google::cloud::aiplatform::v1::CreateFeatureRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateFeature, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateFeature, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetFeature, (google::cloud::aiplatform::v1::GetFeatureRequest const& request), (override)); @@ -94,11 +143,36 @@ class MockFeatureRegistryServiceConnection (google::cloud::aiplatform::v1::UpdateFeatureRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateFeature, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeatureRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateFeature, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteFeature, (google::cloud::aiplatform::v1::DeleteFeatureRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteFeature, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteFeature, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/aiplatform/v1/mocks/mock_featurestore_connection.h b/google/cloud/aiplatform/v1/mocks/mock_featurestore_connection.h index e12b9bc83afe4..4d8386ac20464 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_featurestore_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_featurestore_connection.h @@ -53,6 +53,18 @@ class MockFeaturestoreServiceConnection (google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateFeaturestore, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateFeaturestore, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetFeaturestore, (google::cloud::aiplatform::v1::GetFeaturestoreRequest const& request), @@ -69,18 +81,55 @@ class MockFeaturestoreServiceConnection (google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateFeaturestore, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateFeaturestore, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteFeaturestore, (google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteFeaturestore, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteFeaturestore, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateEntityType, (google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateEntityType, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateEntityType, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetEntityType, (google::cloud::aiplatform::v1::GetEntityTypeRequest const& request), @@ -102,11 +151,36 @@ class MockFeaturestoreServiceConnection (google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteEntityType, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteEntityType, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateFeature, (google::cloud::aiplatform::v1::CreateFeatureRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateFeature, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateFeatureRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateFeature, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -115,6 +189,20 @@ class MockFeaturestoreServiceConnection request), (override)); + MOCK_METHOD(StatusOr, BatchCreateFeatures, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + BatchCreateFeatures, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetFeature, (google::cloud::aiplatform::v1::GetFeatureRequest const& request), (override)); @@ -135,6 +223,19 @@ class MockFeaturestoreServiceConnection (google::cloud::aiplatform::v1::DeleteFeatureRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteFeature, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteFeature, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -143,6 +244,20 @@ class MockFeaturestoreServiceConnection request), (override)); + MOCK_METHOD(StatusOr, ImportFeatureValues, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + ImportFeatureValues, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -151,6 +266,21 @@ class MockFeaturestoreServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, BatchReadFeatureValues, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + BatchReadFeatureValues, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -159,6 +289,20 @@ class MockFeaturestoreServiceConnection request), (override)); + MOCK_METHOD(StatusOr, ExportFeatureValues, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + ExportFeatureValues, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -167,6 +311,20 @@ class MockFeaturestoreServiceConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteFeatureValues, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteFeatureValues, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), SearchFeatures, (google::cloud::aiplatform::v1::SearchFeaturesRequest request), diff --git a/google/cloud/aiplatform/v1/mocks/mock_index_connection.h b/google/cloud/aiplatform/v1/mocks/mock_index_connection.h index 1826c7fc0de72..b676447fa6eca 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_index_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_index_connection.h @@ -52,6 +52,18 @@ class MockIndexServiceConnection (google::cloud::aiplatform::v1::CreateIndexRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateIndex, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateIndexRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateIndex, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetIndex, (google::cloud::aiplatform::v1::GetIndexRequest const& request), (override)); @@ -65,12 +77,37 @@ class MockIndexServiceConnection (google::cloud::aiplatform::v1::UpdateIndexRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateIndex, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateIndexRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateIndex, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteIndex, (google::cloud::aiplatform::v1::DeleteIndexRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteIndex, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteIndexRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteIndex, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, UpsertDatapoints, diff --git a/google/cloud/aiplatform/v1/mocks/mock_index_endpoint_connection.h b/google/cloud/aiplatform/v1/mocks/mock_index_endpoint_connection.h index d17154a764af7..e84563294c3fe 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_index_endpoint_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_index_endpoint_connection.h @@ -53,6 +53,18 @@ class MockIndexEndpointServiceConnection request), (override)); + MOCK_METHOD(StatusOr, CreateIndexEndpoint, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateIndexEndpoint, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetIndexEndpoint, (google::cloud::aiplatform::v1::GetIndexEndpointRequest const& request), @@ -77,18 +89,57 @@ class MockIndexEndpointServiceConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteIndexEndpoint, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteIndexEndpoint, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeployIndex, (google::cloud::aiplatform::v1::DeployIndexRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeployIndex, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeployIndexRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeployIndex, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UndeployIndex, (google::cloud::aiplatform::v1::UndeployIndexRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UndeployIndex, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UndeployIndexRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UndeployIndex, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -96,6 +147,20 @@ class MockIndexEndpointServiceConnection (google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request), (override)); + + MOCK_METHOD(StatusOr, MutateDeployedIndex, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + MutateDeployedIndex, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/aiplatform/v1/mocks/mock_job_connection.h b/google/cloud/aiplatform/v1/mocks/mock_job_connection.h index 16dd3e51ac0af..25f8b97ef290f 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_job_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_job_connection.h @@ -67,6 +67,19 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { (google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteCustomJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteCustomJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( Status, CancelCustomJob, (google::cloud::aiplatform::v1::CancelCustomJobRequest const& request), @@ -98,6 +111,20 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { request), (override)); + MOCK_METHOD( + StatusOr, DeleteDataLabelingJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteDataLabelingJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( Status, CancelDataLabelingJob, (google::cloud::aiplatform::v1::CancelDataLabelingJobRequest const& @@ -131,6 +158,20 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { DeleteHyperparameterTuningJobRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteHyperparameterTuningJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + DeleteHyperparameterTuningJobRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteHyperparameterTuningJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(Status, CancelHyperparameterTuningJob, (google::cloud::aiplatform::v1:: CancelHyperparameterTuningJobRequest const& request), @@ -155,6 +196,19 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { (google::cloud::aiplatform::v1::DeleteNasJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteNasJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNasJobRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteNasJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( Status, CancelNasJob, (google::cloud::aiplatform::v1::CancelNasJobRequest const& request), @@ -199,6 +253,20 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { request), (override)); + MOCK_METHOD( + StatusOr, DeleteBatchPredictionJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteBatchPredictionJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( Status, CancelBatchPredictionJob, (google::cloud::aiplatform::v1::CancelBatchPredictionJobRequest const& @@ -242,6 +310,20 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { UpdateModelDeploymentMonitoringJobRequest const& request), (override)); + MOCK_METHOD(StatusOr, + UpdateModelDeploymentMonitoringJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + UpdateModelDeploymentMonitoringJobRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateModelDeploymentMonitoringJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteModelDeploymentMonitoringJob, @@ -249,6 +331,20 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { DeleteModelDeploymentMonitoringJobRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteModelDeploymentMonitoringJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + DeleteModelDeploymentMonitoringJobRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteModelDeploymentMonitoringJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(Status, PauseModelDeploymentMonitoringJob, (google::cloud::aiplatform::v1:: PauseModelDeploymentMonitoringJobRequest const& request), diff --git a/google/cloud/aiplatform/v1/mocks/mock_metadata_connection.h b/google/cloud/aiplatform/v1/mocks/mock_metadata_connection.h index a03f611a26916..36d66a06bb72a 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_metadata_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_metadata_connection.h @@ -53,6 +53,18 @@ class MockMetadataServiceConnection request), (override)); + MOCK_METHOD(StatusOr, CreateMetadataStore, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateMetadataStore, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetMetadataStore, (google::cloud::aiplatform::v1::GetMetadataStoreRequest const& request), @@ -72,6 +84,20 @@ class MockMetadataServiceConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteMetadataStore, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteMetadataStore, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CreateArtifact, (google::cloud::aiplatform::v1::CreateArtifactRequest const& request), @@ -98,12 +124,38 @@ class MockMetadataServiceConnection (google::cloud::aiplatform::v1::DeleteArtifactRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteArtifact, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteArtifactRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteArtifact, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, PurgeArtifacts, (google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, PurgeArtifacts, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request), + (override)); + + MOCK_METHOD( + future>, + PurgeArtifacts, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CreateContext, (google::cloud::aiplatform::v1::CreateContextRequest const& request), @@ -129,12 +181,38 @@ class MockMetadataServiceConnection (google::cloud::aiplatform::v1::DeleteContextRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteContext, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteContextRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteContext, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, PurgeContexts, (google::cloud::aiplatform::v1::PurgeContextsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, PurgeContexts, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeContextsRequest const& request), + (override)); + + MOCK_METHOD( + future>, + PurgeContexts, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, AddContextArtifactsAndExecutions, @@ -188,12 +266,38 @@ class MockMetadataServiceConnection (google::cloud::aiplatform::v1::DeleteExecutionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteExecution, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteExecutionRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteExecution, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, PurgeExecutions, (google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, PurgeExecutions, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request), + (override)); + + MOCK_METHOD( + future>, + PurgeExecutions, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, AddExecutionEvents, diff --git a/google/cloud/aiplatform/v1/mocks/mock_migration_connection.h b/google/cloud/aiplatform/v1/mocks/mock_migration_connection.h index f8bbb6a93435e..093d37e70b250 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_migration_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_migration_connection.h @@ -60,6 +60,21 @@ class MockMigrationServiceConnection (google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, BatchMigrateResources, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + BatchMigrateResources, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/aiplatform/v1/mocks/mock_model_connection.h b/google/cloud/aiplatform/v1/mocks/mock_model_connection.h index 6af03bd1f0ef6..7aeba23518c85 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_model_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_model_connection.h @@ -53,6 +53,19 @@ class MockModelServiceConnection (google::cloud::aiplatform::v1::UploadModelRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UploadModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UploadModelRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UploadModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetModel, (google::cloud::aiplatform::v1::GetModelRequest const& request), (override)); @@ -79,18 +92,59 @@ class MockModelServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateExplanationDataset, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateExplanationDataset, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteModel, (google::cloud::aiplatform::v1::DeleteModelRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteModelRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteModelVersion, (google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteModelVersion, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteModelVersion, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, MergeVersionAliases, (google::cloud::aiplatform::v1::MergeVersionAliasesRequest const& @@ -103,12 +157,37 @@ class MockModelServiceConnection (google::cloud::aiplatform::v1::ExportModelRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ExportModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportModelRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ExportModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CopyModel, (google::cloud::aiplatform::v1::CopyModelRequest const& request), (override)); + MOCK_METHOD(StatusOr, CopyModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CopyModelRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CopyModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, ImportModelEvaluation, diff --git a/google/cloud/aiplatform/v1/mocks/mock_notebook_connection.h b/google/cloud/aiplatform/v1/mocks/mock_notebook_connection.h index 311c0c5fcdf21..c34bcc955fa33 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_notebook_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_notebook_connection.h @@ -54,6 +54,20 @@ class MockNotebookServiceConnection CreateNotebookRuntimeTemplateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + CreateNotebookRuntimeTemplate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + CreateNotebookRuntimeTemplateRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateNotebookRuntimeTemplate, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetNotebookRuntimeTemplate, @@ -75,6 +89,20 @@ class MockNotebookServiceConnection DeleteNotebookRuntimeTemplateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteNotebookRuntimeTemplate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + DeleteNotebookRuntimeTemplateRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteNotebookRuntimeTemplate, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, UpdateNotebookRuntimeTemplate, (google::cloud::aiplatform::v1:: @@ -88,6 +116,19 @@ class MockNotebookServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, AssignNotebookRuntime, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& + request), + (override)); + + MOCK_METHOD(future>, + AssignNotebookRuntime, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetNotebookRuntime, @@ -107,6 +148,20 @@ class MockNotebookServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteNotebookRuntime, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteNotebookRuntime, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -115,12 +170,40 @@ class MockNotebookServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, UpgradeNotebookRuntime, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpgradeNotebookRuntime, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, StartNotebookRuntime, (google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request), (override)); + + MOCK_METHOD(StatusOr, StartNotebookRuntime, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& + request), + (override)); + + MOCK_METHOD(future>, + StartNotebookRuntime, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/aiplatform/v1/mocks/mock_persistent_resource_connection.h b/google/cloud/aiplatform/v1/mocks/mock_persistent_resource_connection.h index 76e3b538f5b70..c7cb477699830 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_persistent_resource_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_persistent_resource_connection.h @@ -54,6 +54,20 @@ class MockPersistentResourceServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, CreatePersistentResource, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreatePersistentResource, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetPersistentResource, @@ -74,6 +88,20 @@ class MockPersistentResourceServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, DeletePersistentResource, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeletePersistentResource, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdatePersistentResource, @@ -81,12 +109,40 @@ class MockPersistentResourceServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdatePersistentResource, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdatePersistentResource, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RebootPersistentResource, (google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, RebootPersistentResource, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + RebootPersistentResource, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/aiplatform/v1/mocks/mock_pipeline_connection.h b/google/cloud/aiplatform/v1/mocks/mock_pipeline_connection.h index 1d3ede02e9f31..694489cd3b0a7 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_pipeline_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_pipeline_connection.h @@ -73,6 +73,20 @@ class MockPipelineServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteTrainingPipeline, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteTrainingPipeline, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( Status, CancelTrainingPipeline, (google::cloud::aiplatform::v1::CancelTrainingPipelineRequest const& @@ -100,6 +114,19 @@ class MockPipelineServiceConnection (google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeletePipelineJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeletePipelineJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -108,6 +135,21 @@ class MockPipelineServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, BatchDeletePipelineJobs, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + BatchDeletePipelineJobs, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( Status, CancelPipelineJob, (google::cloud::aiplatform::v1::CancelPipelineJobRequest const& request), @@ -120,6 +162,21 @@ class MockPipelineServiceConnection (google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, BatchCancelPipelineJobs, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + BatchCancelPipelineJobs, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/aiplatform/v1/mocks/mock_schedule_connection.h b/google/cloud/aiplatform/v1/mocks/mock_schedule_connection.h index 445b16ba829b3..0815cdf0b21f6 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_schedule_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_schedule_connection.h @@ -58,6 +58,19 @@ class MockScheduleServiceConnection (google::cloud::aiplatform::v1::DeleteScheduleRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteSchedule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteScheduleRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteSchedule, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetSchedule, (google::cloud::aiplatform::v1::GetScheduleRequest const& request), diff --git a/google/cloud/aiplatform/v1/mocks/mock_specialist_pool_connection.h b/google/cloud/aiplatform/v1/mocks/mock_specialist_pool_connection.h index d8837dd78e106..6f651624bfddd 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_specialist_pool_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_specialist_pool_connection.h @@ -53,6 +53,18 @@ class MockSpecialistPoolServiceConnection request), (override)); + MOCK_METHOD(StatusOr, CreateSpecialistPool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateSpecialistPool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetSpecialistPool, @@ -72,11 +84,36 @@ class MockSpecialistPoolServiceConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteSpecialistPool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteSpecialistPool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateSpecialistPool, (google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request), (override)); + + MOCK_METHOD(StatusOr, UpdateSpecialistPool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateSpecialistPool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/aiplatform/v1/mocks/mock_tensorboard_connection.h b/google/cloud/aiplatform/v1/mocks/mock_tensorboard_connection.h index 5c80916e5b243..8bc2626acb841 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_tensorboard_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_tensorboard_connection.h @@ -53,6 +53,18 @@ class MockTensorboardServiceConnection (google::cloud::aiplatform::v1::CreateTensorboardRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateTensorboard, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateTensorboardRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateTensorboard, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetTensorboard, (google::cloud::aiplatform::v1::GetTensorboardRequest const& request), @@ -64,6 +76,18 @@ class MockTensorboardServiceConnection (google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateTensorboard, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateTensorboard, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListTensorboards, (google::cloud::aiplatform::v1::ListTensorboardsRequest request), @@ -75,6 +99,19 @@ class MockTensorboardServiceConnection (google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteTensorboard, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteTensorboard, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, ReadTensorboardUsage, @@ -124,6 +161,20 @@ class MockTensorboardServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteTensorboardExperiment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteTensorboardExperiment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, CreateTensorboardRun, (google::cloud::aiplatform::v1::CreateTensorboardRunRequest const& @@ -163,6 +214,19 @@ class MockTensorboardServiceConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteTensorboardRun, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteTensorboardRun, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, BatchCreateTensorboardTimeSeries, @@ -204,6 +268,20 @@ class MockTensorboardServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteTensorboardTimeSeries, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteTensorboardTimeSeries, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, BatchReadTensorboardTimeSeriesData, diff --git a/google/cloud/aiplatform/v1/mocks/mock_vizier_connection.h b/google/cloud/aiplatform/v1/mocks/mock_vizier_connection.h index 2f8e5d488f773..506b4d9285ea3 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_vizier_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_vizier_connection.h @@ -76,6 +76,19 @@ class MockVizierServiceConnection (google::cloud::aiplatform::v1::SuggestTrialsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, SuggestTrials, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::SuggestTrialsRequest const& request), + (override)); + + MOCK_METHOD( + future>, + SuggestTrials, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CreateTrial, (google::cloud::aiplatform::v1::CreateTrialRequest const& request), @@ -113,6 +126,21 @@ class MockVizierServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, CheckTrialEarlyStoppingState, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CheckTrialEarlyStoppingState, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, StopTrial, (google::cloud::aiplatform::v1::StopTrialRequest const& request), (override)); diff --git a/google/cloud/aiplatform/v1/model_connection.cc b/google/cloud/aiplatform/v1/model_connection.cc index 030f4c3770cf6..b3c64791462df 100644 --- a/google/cloud/aiplatform/v1/model_connection.cc +++ b/google/cloud/aiplatform/v1/model_connection.cc @@ -46,6 +46,21 @@ ModelServiceConnection::UploadModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ModelServiceConnection::UploadModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UploadModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ModelServiceConnection::UploadModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ModelServiceConnection::GetModel( google::cloud::aiplatform::v1::GetModelRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -82,6 +97,23 @@ ModelServiceConnection::UpdateExplanationDataset( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ModelServiceConnection::UpdateExplanationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future< + StatusOr> +ModelServiceConnection::UpdateExplanationDataset( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ModelServiceConnection::DeleteModel( google::cloud::aiplatform::v1::DeleteModelRequest const&) { @@ -90,6 +122,21 @@ ModelServiceConnection::DeleteModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ModelServiceConnection::DeleteModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ModelServiceConnection::DeleteModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ModelServiceConnection::DeleteModelVersion( google::cloud::aiplatform::v1::DeleteModelVersionRequest const&) { @@ -98,6 +145,22 @@ ModelServiceConnection::DeleteModelVersion( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ModelServiceConnection::DeleteModelVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteModelVersionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ModelServiceConnection::DeleteModelVersion( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ModelServiceConnection::MergeVersionAliases( google::cloud::aiplatform::v1::MergeVersionAliasesRequest const&) { @@ -112,6 +175,21 @@ ModelServiceConnection::ExportModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ModelServiceConnection::ExportModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ModelServiceConnection::ExportModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ModelServiceConnection::CopyModel( google::cloud::aiplatform::v1::CopyModelRequest const&) { @@ -120,6 +198,21 @@ ModelServiceConnection::CopyModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ModelServiceConnection::CopyModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CopyModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ModelServiceConnection::CopyModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ModelServiceConnection::ImportModelEvaluation( google::cloud::aiplatform::v1::ImportModelEvaluationRequest const&) { diff --git a/google/cloud/aiplatform/v1/model_connection.h b/google/cloud/aiplatform/v1/model_connection.h index 509cad1eed6f4..12caec070730e 100644 --- a/google/cloud/aiplatform/v1/model_connection.h +++ b/google/cloud/aiplatform/v1/model_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/internal/model_retry_traits.h" #include "google/cloud/aiplatform/v1/model_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -189,6 +191,14 @@ class ModelServiceConnection { virtual future> UploadModel(google::cloud::aiplatform::v1::UploadModelRequest const& request); + virtual StatusOr UploadModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UploadModelRequest const& request); + + virtual future> + UploadModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetModel( google::cloud::aiplatform::v1::GetModelRequest const& request); @@ -207,24 +217,68 @@ class ModelServiceConnection { google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& request); + virtual StatusOr UpdateExplanationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& + request); + + virtual future< + StatusOr> + UpdateExplanationDataset(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteModel(google::cloud::aiplatform::v1::DeleteModelRequest const& request); + virtual StatusOr DeleteModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteModelRequest const& request); + + virtual future< + StatusOr> + DeleteModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteModelVersion( google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request); + virtual StatusOr DeleteModelVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request); + + virtual future< + StatusOr> + DeleteModelVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr MergeVersionAliases( google::cloud::aiplatform::v1::MergeVersionAliasesRequest const& request); virtual future> ExportModel(google::cloud::aiplatform::v1::ExportModelRequest const& request); + virtual StatusOr ExportModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::ExportModelRequest const& request); + + virtual future> + ExportModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CopyModel(google::cloud::aiplatform::v1::CopyModelRequest const& request); + virtual StatusOr CopyModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CopyModelRequest const& request); + + virtual future> + CopyModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr ImportModelEvaluation( google::cloud::aiplatform::v1::ImportModelEvaluationRequest const& diff --git a/google/cloud/aiplatform/v1/model_garden_connection.h b/google/cloud/aiplatform/v1/model_garden_connection.h index 9129604b2ec9c..6501888d6c77e 100644 --- a/google/cloud/aiplatform/v1/model_garden_connection.h +++ b/google/cloud/aiplatform/v1/model_garden_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/internal/model_garden_retry_traits.h" #include "google/cloud/aiplatform/v1/model_garden_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/aiplatform/v1/notebook_connection.cc b/google/cloud/aiplatform/v1/notebook_connection.cc index 7d21ab6cf8b92..c97aaaceeee12 100644 --- a/google/cloud/aiplatform/v1/notebook_connection.cc +++ b/google/cloud/aiplatform/v1/notebook_connection.cc @@ -47,6 +47,23 @@ NotebookServiceConnection::CreateNotebookRuntimeTemplate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::CreateNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + CreateNotebookRuntimeTemplateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::CreateNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NotebookServiceConnection::GetNotebookRuntimeTemplate( google::cloud::aiplatform::v1::GetNotebookRuntimeTemplateRequest const&) { @@ -70,6 +87,23 @@ NotebookServiceConnection::DeleteNotebookRuntimeTemplate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::DeleteNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1:: + DeleteNotebookRuntimeTemplateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::DeleteNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NotebookServiceConnection::UpdateNotebookRuntimeTemplate( google::cloud::aiplatform::v1:: @@ -85,6 +119,22 @@ NotebookServiceConnection::AssignNotebookRuntime( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::AssignNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::AssignNotebookRuntime( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NotebookServiceConnection::GetNotebookRuntime( google::cloud::aiplatform::v1::GetNotebookRuntimeRequest const&) { @@ -107,6 +157,22 @@ NotebookServiceConnection::DeleteNotebookRuntime( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::DeleteNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::DeleteNotebookRuntime( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::UpgradeNotebookRuntime( google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const&) { @@ -115,6 +181,22 @@ NotebookServiceConnection::UpgradeNotebookRuntime( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::UpgradeNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::UpgradeNotebookRuntime( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::StartNotebookRuntime( google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const&) { @@ -123,6 +205,22 @@ NotebookServiceConnection::StartNotebookRuntime( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::StartNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::StartNotebookRuntime( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeNotebookServiceConnection( std::string const& location, Options options) { internal::CheckExpectedOptions + CreateNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateNotebookRuntimeTemplateRequest const& + request); + + virtual future< + StatusOr> + CreateNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetNotebookRuntimeTemplate( google::cloud::aiplatform::v1::GetNotebookRuntimeTemplateRequest const& @@ -209,6 +223,18 @@ class NotebookServiceConnection { google::cloud::aiplatform::v1::DeleteNotebookRuntimeTemplateRequest const& request); + virtual StatusOr + DeleteNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNotebookRuntimeTemplateRequest const& + request); + + virtual future< + StatusOr> + DeleteNotebookRuntimeTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr UpdateNotebookRuntimeTemplate( google::cloud::aiplatform::v1::UpdateNotebookRuntimeTemplateRequest const& @@ -219,6 +245,15 @@ class NotebookServiceConnection { google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& request); + virtual StatusOr AssignNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& + request); + + virtual future> + AssignNotebookRuntime(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetNotebookRuntime( google::cloud::aiplatform::v1::GetNotebookRuntimeRequest const& request); @@ -233,17 +268,47 @@ class NotebookServiceConnection { google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& request); + virtual StatusOr DeleteNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& + request); + + virtual future< + StatusOr> + DeleteNotebookRuntime(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UpgradeNotebookRuntime( google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& request); + virtual StatusOr UpgradeNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& + request); + + virtual future< + StatusOr> + UpgradeNotebookRuntime(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> StartNotebookRuntime( google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request); + + virtual StatusOr StartNotebookRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& + request); + + virtual future< + StatusOr> + StartNotebookRuntime(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/aiplatform/v1/persistent_resource_connection.cc b/google/cloud/aiplatform/v1/persistent_resource_connection.cc index 72508792d901f..73d8a7cc89099 100644 --- a/google/cloud/aiplatform/v1/persistent_resource_connection.cc +++ b/google/cloud/aiplatform/v1/persistent_resource_connection.cc @@ -47,6 +47,22 @@ PersistentResourceServiceConnection::CreatePersistentResource( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PersistentResourceServiceConnection::CreatePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreatePersistentResourceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PersistentResourceServiceConnection::CreatePersistentResource( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr PersistentResourceServiceConnection::GetPersistentResource( google::cloud::aiplatform::v1::GetPersistentResourceRequest const&) { @@ -69,6 +85,22 @@ PersistentResourceServiceConnection::DeletePersistentResource( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PersistentResourceServiceConnection::DeletePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeletePersistentResourceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PersistentResourceServiceConnection::DeletePersistentResource( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> PersistentResourceServiceConnection::UpdatePersistentResource( google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const&) { @@ -77,6 +109,22 @@ PersistentResourceServiceConnection::UpdatePersistentResource( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PersistentResourceServiceConnection::UpdatePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PersistentResourceServiceConnection::UpdatePersistentResource( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> PersistentResourceServiceConnection::RebootPersistentResource( google::cloud::aiplatform::v1::RebootPersistentResourceRequest const&) { @@ -85,6 +133,22 @@ PersistentResourceServiceConnection::RebootPersistentResource( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PersistentResourceServiceConnection::RebootPersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::RebootPersistentResourceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PersistentResourceServiceConnection::RebootPersistentResource( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakePersistentResourceServiceConnection(std::string const& location, Options options) { diff --git a/google/cloud/aiplatform/v1/persistent_resource_connection.h b/google/cloud/aiplatform/v1/persistent_resource_connection.h index 51d4fe5705428..2e2caf81661fb 100644 --- a/google/cloud/aiplatform/v1/persistent_resource_connection.h +++ b/google/cloud/aiplatform/v1/persistent_resource_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/internal/persistent_resource_retry_traits.h" #include "google/cloud/aiplatform/v1/persistent_resource_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -205,6 +207,15 @@ class PersistentResourceServiceConnection { google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& request); + virtual StatusOr CreatePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& + request); + + virtual future> + CreatePersistentResource(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetPersistentResource( google::cloud::aiplatform::v1::GetPersistentResourceRequest const& @@ -220,15 +231,43 @@ class PersistentResourceServiceConnection { google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& request); + virtual StatusOr DeletePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& + request); + + virtual future< + StatusOr> + DeletePersistentResource(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdatePersistentResource( google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& request); + virtual StatusOr UpdatePersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& + request); + + virtual future> + UpdatePersistentResource(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RebootPersistentResource( google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& request); + + virtual StatusOr RebootPersistentResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& + request); + + virtual future> + RebootPersistentResource(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/aiplatform/v1/pipeline_connection.cc b/google/cloud/aiplatform/v1/pipeline_connection.cc index 5253beb59144c..6682977a9cb67 100644 --- a/google/cloud/aiplatform/v1/pipeline_connection.cc +++ b/google/cloud/aiplatform/v1/pipeline_connection.cc @@ -66,6 +66,22 @@ PipelineServiceConnection::DeleteTrainingPipeline( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PipelineServiceConnection::DeleteTrainingPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PipelineServiceConnection::DeleteTrainingPipeline( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status PipelineServiceConnection::CancelTrainingPipeline( google::cloud::aiplatform::v1::CancelTrainingPipelineRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -99,6 +115,22 @@ PipelineServiceConnection::DeletePipelineJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PipelineServiceConnection::DeletePipelineJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeletePipelineJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PipelineServiceConnection::DeletePipelineJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> PipelineServiceConnection::BatchDeletePipelineJobs( google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const&) { @@ -107,6 +139,22 @@ PipelineServiceConnection::BatchDeletePipelineJobs( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PipelineServiceConnection::BatchDeletePipelineJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PipelineServiceConnection::BatchDeletePipelineJobs( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status PipelineServiceConnection::CancelPipelineJob( google::cloud::aiplatform::v1::CancelPipelineJobRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -120,6 +168,22 @@ PipelineServiceConnection::BatchCancelPipelineJobs( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PipelineServiceConnection::BatchCancelPipelineJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PipelineServiceConnection::BatchCancelPipelineJobs( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakePipelineServiceConnection( std::string const& location, Options options) { internal::CheckExpectedOptions DeleteTrainingPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& + request); + + virtual future< + StatusOr> + DeleteTrainingPipeline(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status CancelTrainingPipeline( google::cloud::aiplatform::v1::CancelTrainingPipelineRequest const& request); @@ -226,12 +238,31 @@ class PipelineServiceConnection { DeletePipelineJob( google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request); + virtual StatusOr DeletePipelineJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request); + + virtual future< + StatusOr> + DeletePipelineJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> BatchDeletePipelineJobs( google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& request); + virtual StatusOr BatchDeletePipelineJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& + request); + + virtual future< + StatusOr> + BatchDeletePipelineJobs(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status CancelPipelineJob( google::cloud::aiplatform::v1::CancelPipelineJobRequest const& request); @@ -240,6 +271,16 @@ class PipelineServiceConnection { BatchCancelPipelineJobs( google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& request); + + virtual StatusOr BatchCancelPipelineJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& + request); + + virtual future< + StatusOr> + BatchCancelPipelineJobs(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/aiplatform/v1/prediction_connection.h b/google/cloud/aiplatform/v1/prediction_connection.h index 5678bac6e544e..4cf96e20121e6 100644 --- a/google/cloud/aiplatform/v1/prediction_connection.h +++ b/google/cloud/aiplatform/v1/prediction_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/internal/prediction_retry_traits.h" #include "google/cloud/aiplatform/v1/prediction_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/async_read_write_stream_impl.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" diff --git a/google/cloud/aiplatform/v1/schedule_connection.cc b/google/cloud/aiplatform/v1/schedule_connection.cc index 12c0b8828ef9c..589702f3611c4 100644 --- a/google/cloud/aiplatform/v1/schedule_connection.cc +++ b/google/cloud/aiplatform/v1/schedule_connection.cc @@ -52,6 +52,22 @@ ScheduleServiceConnection::DeleteSchedule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ScheduleServiceConnection::DeleteSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteScheduleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ScheduleServiceConnection::DeleteSchedule( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ScheduleServiceConnection::GetSchedule( google::cloud::aiplatform::v1::GetScheduleRequest const&) { diff --git a/google/cloud/aiplatform/v1/schedule_connection.h b/google/cloud/aiplatform/v1/schedule_connection.h index c455a9017e04e..cb9d2584b0af3 100644 --- a/google/cloud/aiplatform/v1/schedule_connection.h +++ b/google/cloud/aiplatform/v1/schedule_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/internal/schedule_retry_traits.h" #include "google/cloud/aiplatform/v1/schedule_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -195,6 +197,15 @@ class ScheduleServiceConnection { DeleteSchedule( google::cloud::aiplatform::v1::DeleteScheduleRequest const& request); + virtual StatusOr DeleteSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteScheduleRequest const& request); + + virtual future< + StatusOr> + DeleteSchedule(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetSchedule( google::cloud::aiplatform::v1::GetScheduleRequest const& request); diff --git a/google/cloud/aiplatform/v1/specialist_pool_connection.cc b/google/cloud/aiplatform/v1/specialist_pool_connection.cc index 020d91936c7b8..03a10de5cc64b 100644 --- a/google/cloud/aiplatform/v1/specialist_pool_connection.cc +++ b/google/cloud/aiplatform/v1/specialist_pool_connection.cc @@ -46,6 +46,22 @@ SpecialistPoolServiceConnection::CreateSpecialistPool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SpecialistPoolServiceConnection::CreateSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpecialistPoolServiceConnection::CreateSpecialistPool( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SpecialistPoolServiceConnection::GetSpecialistPool( google::cloud::aiplatform::v1::GetSpecialistPoolRequest const&) { @@ -68,6 +84,22 @@ SpecialistPoolServiceConnection::DeleteSpecialistPool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SpecialistPoolServiceConnection::DeleteSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpecialistPoolServiceConnection::DeleteSpecialistPool( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SpecialistPoolServiceConnection::UpdateSpecialistPool( google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const&) { @@ -76,6 +108,22 @@ SpecialistPoolServiceConnection::UpdateSpecialistPool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SpecialistPoolServiceConnection::UpdateSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpecialistPoolServiceConnection::UpdateSpecialistPool( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeSpecialistPoolServiceConnection(std::string const& location, Options options) { diff --git a/google/cloud/aiplatform/v1/specialist_pool_connection.h b/google/cloud/aiplatform/v1/specialist_pool_connection.h index 348d1d6fc5274..d0f11239c507c 100644 --- a/google/cloud/aiplatform/v1/specialist_pool_connection.h +++ b/google/cloud/aiplatform/v1/specialist_pool_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/internal/specialist_pool_retry_traits.h" #include "google/cloud/aiplatform/v1/specialist_pool_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -197,6 +199,15 @@ class SpecialistPoolServiceConnection { google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& request); + virtual StatusOr CreateSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& + request); + + virtual future> + CreateSpecialistPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetSpecialistPool( google::cloud::aiplatform::v1::GetSpecialistPoolRequest const& request); @@ -211,10 +222,29 @@ class SpecialistPoolServiceConnection { google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& request); + virtual StatusOr DeleteSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& + request); + + virtual future< + StatusOr> + DeleteSpecialistPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateSpecialistPool( google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request); + + virtual StatusOr UpdateSpecialistPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& + request); + + virtual future> + UpdateSpecialistPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/aiplatform/v1/tensorboard_connection.cc b/google/cloud/aiplatform/v1/tensorboard_connection.cc index 0050ffdaefc45..7e801e1970f54 100644 --- a/google/cloud/aiplatform/v1/tensorboard_connection.cc +++ b/google/cloud/aiplatform/v1/tensorboard_connection.cc @@ -46,6 +46,22 @@ TensorboardServiceConnection::CreateTensorboard( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TensorboardServiceConnection::CreateTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateTensorboardRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TensorboardServiceConnection::CreateTensorboard( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TensorboardServiceConnection::GetTensorboard( google::cloud::aiplatform::v1::GetTensorboardRequest const&) { @@ -60,6 +76,22 @@ TensorboardServiceConnection::UpdateTensorboard( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TensorboardServiceConnection::UpdateTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateTensorboardRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TensorboardServiceConnection::UpdateTensorboard( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange TensorboardServiceConnection::ListTensorboards( google::cloud::aiplatform::v1:: @@ -76,6 +108,22 @@ TensorboardServiceConnection::DeleteTensorboard( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TensorboardServiceConnection::DeleteTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TensorboardServiceConnection::DeleteTensorboard( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TensorboardServiceConnection::ReadTensorboardUsage( google::cloud::aiplatform::v1::ReadTensorboardUsageRequest const&) { @@ -122,6 +170,22 @@ TensorboardServiceConnection::DeleteTensorboardExperiment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TensorboardServiceConnection::DeleteTensorboardExperiment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TensorboardServiceConnection::DeleteTensorboardExperiment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TensorboardServiceConnection::CreateTensorboardRun( google::cloud::aiplatform::v1::CreateTensorboardRunRequest const&) { @@ -162,6 +226,22 @@ TensorboardServiceConnection::DeleteTensorboardRun( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TensorboardServiceConnection::DeleteTensorboardRun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TensorboardServiceConnection::DeleteTensorboardRun( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr< google::cloud::aiplatform::v1::BatchCreateTensorboardTimeSeriesResponse> TensorboardServiceConnection::BatchCreateTensorboardTimeSeries( @@ -204,6 +284,22 @@ TensorboardServiceConnection::DeleteTensorboardTimeSeries( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TensorboardServiceConnection::DeleteTensorboardTimeSeries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TensorboardServiceConnection::DeleteTensorboardTimeSeries( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr< google::cloud::aiplatform::v1::BatchReadTensorboardTimeSeriesDataResponse> TensorboardServiceConnection::BatchReadTensorboardTimeSeriesData( diff --git a/google/cloud/aiplatform/v1/tensorboard_connection.h b/google/cloud/aiplatform/v1/tensorboard_connection.h index af4a06803d4cf..587b805da8f69 100644 --- a/google/cloud/aiplatform/v1/tensorboard_connection.h +++ b/google/cloud/aiplatform/v1/tensorboard_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/internal/tensorboard_retry_traits.h" #include "google/cloud/aiplatform/v1/tensorboard_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -193,6 +195,14 @@ class TensorboardServiceConnection { CreateTensorboard( google::cloud::aiplatform::v1::CreateTensorboardRequest const& request); + virtual StatusOr CreateTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CreateTensorboardRequest const& request); + + virtual future> + CreateTensorboard(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetTensorboard( google::cloud::aiplatform::v1::GetTensorboardRequest const& request); @@ -200,6 +210,14 @@ class TensorboardServiceConnection { UpdateTensorboard( google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request); + virtual StatusOr UpdateTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request); + + virtual future> + UpdateTensorboard(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListTensorboards( google::cloud::aiplatform::v1::ListTensorboardsRequest request); @@ -209,6 +227,15 @@ class TensorboardServiceConnection { DeleteTensorboard( google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request); + virtual StatusOr DeleteTensorboard( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request); + + virtual future< + StatusOr> + DeleteTensorboard(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr ReadTensorboardUsage( google::cloud::aiplatform::v1::ReadTensorboardUsageRequest const& @@ -243,6 +270,16 @@ class TensorboardServiceConnection { google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& request); + virtual StatusOr DeleteTensorboardExperiment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& + request); + + virtual future< + StatusOr> + DeleteTensorboardExperiment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateTensorboardRun( google::cloud::aiplatform::v1::CreateTensorboardRunRequest const& @@ -273,6 +310,16 @@ class TensorboardServiceConnection { google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& request); + virtual StatusOr DeleteTensorboardRun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& + request); + + virtual future< + StatusOr> + DeleteTensorboardRun(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::cloud::aiplatform::v1::BatchCreateTensorboardTimeSeriesResponse> BatchCreateTensorboardTimeSeries( @@ -304,6 +351,16 @@ class TensorboardServiceConnection { google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& request); + virtual StatusOr DeleteTensorboardTimeSeries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& + request); + + virtual future< + StatusOr> + DeleteTensorboardTimeSeries(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::cloud::aiplatform::v1::BatchReadTensorboardTimeSeriesDataResponse> BatchReadTensorboardTimeSeriesData( diff --git a/google/cloud/aiplatform/v1/vizier_connection.cc b/google/cloud/aiplatform/v1/vizier_connection.cc index 1a226fa30b93f..2ed73393879d2 100644 --- a/google/cloud/aiplatform/v1/vizier_connection.cc +++ b/google/cloud/aiplatform/v1/vizier_connection.cc @@ -77,6 +77,21 @@ VizierServiceConnection::SuggestTrials( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VizierServiceConnection::SuggestTrials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::SuggestTrialsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VizierServiceConnection::SuggestTrials(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr VizierServiceConnection::CreateTrial( google::cloud::aiplatform::v1::CreateTrialRequest const&) { @@ -123,6 +138,23 @@ VizierServiceConnection::CheckTrialEarlyStoppingState( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VizierServiceConnection::CheckTrialEarlyStoppingState( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VizierServiceConnection::CheckTrialEarlyStoppingState( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr VizierServiceConnection::StopTrial( google::cloud::aiplatform::v1::StopTrialRequest const&) { diff --git a/google/cloud/aiplatform/v1/vizier_connection.h b/google/cloud/aiplatform/v1/vizier_connection.h index 7d82ed6ea9c42..ccbb9e1fe9129 100644 --- a/google/cloud/aiplatform/v1/vizier_connection.h +++ b/google/cloud/aiplatform/v1/vizier_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/aiplatform/v1/internal/vizier_retry_traits.h" #include "google/cloud/aiplatform/v1/vizier_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -205,6 +207,14 @@ class VizierServiceConnection { SuggestTrials( google::cloud::aiplatform::v1::SuggestTrialsRequest const& request); + virtual StatusOr SuggestTrials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::SuggestTrialsRequest const& request); + + virtual future> + SuggestTrials(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateTrial( google::cloud::aiplatform::v1::CreateTrialRequest const& request); @@ -229,6 +239,16 @@ class VizierServiceConnection { google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& request); + virtual StatusOr CheckTrialEarlyStoppingState( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& + request); + + virtual future> + CheckTrialEarlyStoppingState(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr StopTrial( google::cloud::aiplatform::v1::StopTrialRequest const& request); diff --git a/google/cloud/alloydb/v1/alloy_db_admin_connection.cc b/google/cloud/alloydb/v1/alloy_db_admin_connection.cc index 1229ff86c9ea7..17b84e4607dfb 100644 --- a/google/cloud/alloydb/v1/alloy_db_admin_connection.cc +++ b/google/cloud/alloydb/v1/alloy_db_admin_connection.cc @@ -60,6 +60,21 @@ AlloyDBAdminConnection::CreateCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AlloyDBAdminConnection::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::CreateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AlloyDBAdminConnection::UpdateCluster( google::cloud::alloydb::v1::UpdateClusterRequest const&) { @@ -68,6 +83,21 @@ AlloyDBAdminConnection::UpdateCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AlloyDBAdminConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::UpdateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AlloyDBAdminConnection::DeleteCluster( google::cloud::alloydb::v1::DeleteClusterRequest const&) { @@ -76,6 +106,21 @@ AlloyDBAdminConnection::DeleteCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AlloyDBAdminConnection::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AlloyDBAdminConnection::PromoteCluster( google::cloud::alloydb::v1::PromoteClusterRequest const&) { @@ -84,6 +129,21 @@ AlloyDBAdminConnection::PromoteCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AlloyDBAdminConnection::PromoteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::PromoteClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::PromoteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AlloyDBAdminConnection::RestoreCluster( google::cloud::alloydb::v1::RestoreClusterRequest const&) { @@ -92,6 +152,21 @@ AlloyDBAdminConnection::RestoreCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AlloyDBAdminConnection::RestoreCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::RestoreClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::RestoreCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AlloyDBAdminConnection::CreateSecondaryCluster( google::cloud::alloydb::v1::CreateSecondaryClusterRequest const&) { @@ -100,6 +175,22 @@ AlloyDBAdminConnection::CreateSecondaryCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AlloyDBAdminConnection::CreateSecondaryCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateSecondaryClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::CreateSecondaryCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange AlloyDBAdminConnection::ListInstances( google::cloud::alloydb::v1:: @@ -122,9 +213,40 @@ AlloyDBAdminConnection::CreateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AlloyDBAdminConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +AlloyDBAdminConnection::CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::CreateSecondaryInstance( + google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr AlloyDBAdminConnection::CreateSecondaryInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::CreateSecondaryInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -138,6 +260,22 @@ AlloyDBAdminConnection::BatchCreateInstances( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AlloyDBAdminConnection::BatchCreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::BatchCreateInstancesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::BatchCreateInstances( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AlloyDBAdminConnection::UpdateInstance( google::cloud::alloydb::v1::UpdateInstanceRequest const&) { @@ -146,6 +284,21 @@ AlloyDBAdminConnection::UpdateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AlloyDBAdminConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::UpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AlloyDBAdminConnection::DeleteInstance( google::cloud::alloydb::v1::DeleteInstanceRequest const&) { @@ -154,6 +307,21 @@ AlloyDBAdminConnection::DeleteInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AlloyDBAdminConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AlloyDBAdminConnection::FailoverInstance( google::cloud::alloydb::v1::FailoverInstanceRequest const&) { @@ -162,6 +330,22 @@ AlloyDBAdminConnection::FailoverInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AlloyDBAdminConnection::FailoverInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::FailoverInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::FailoverInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AlloyDBAdminConnection::InjectFault( google::cloud::alloydb::v1::InjectFaultRequest const&) { @@ -170,6 +354,21 @@ AlloyDBAdminConnection::InjectFault( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AlloyDBAdminConnection::InjectFault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::InjectFaultRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::InjectFault(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AlloyDBAdminConnection::RestartInstance( google::cloud::alloydb::v1::RestartInstanceRequest const&) { @@ -178,6 +377,22 @@ AlloyDBAdminConnection::RestartInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AlloyDBAdminConnection::RestartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::RestartInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::RestartInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange AlloyDBAdminConnection::ListBackups( google::cloud::alloydb::v1:: @@ -199,6 +414,21 @@ AlloyDBAdminConnection::CreateBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AlloyDBAdminConnection::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::CreateBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AlloyDBAdminConnection::UpdateBackup( google::cloud::alloydb::v1::UpdateBackupRequest const&) { @@ -207,6 +437,21 @@ AlloyDBAdminConnection::UpdateBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AlloyDBAdminConnection::UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::UpdateBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AlloyDBAdminConnection::DeleteBackup( google::cloud::alloydb::v1::DeleteBackupRequest const&) { @@ -215,6 +460,21 @@ AlloyDBAdminConnection::DeleteBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AlloyDBAdminConnection::DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AlloyDBAdminConnection::DeleteBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange AlloyDBAdminConnection::ListSupportedDatabaseFlags( google::cloud::alloydb::v1:: diff --git a/google/cloud/alloydb/v1/alloy_db_admin_connection.h b/google/cloud/alloydb/v1/alloy_db_admin_connection.h index d584e8dd19518..942023ee88761 100644 --- a/google/cloud/alloydb/v1/alloy_db_admin_connection.h +++ b/google/cloud/alloydb/v1/alloy_db_admin_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/alloydb/v1/alloy_db_admin_connection_idempotency_policy.h" #include "google/cloud/alloydb/v1/internal/alloy_db_admin_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -194,23 +196,71 @@ class AlloyDBAdminConnection { virtual future> CreateCluster( google::cloud::alloydb::v1::CreateClusterRequest const& request); + virtual StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateClusterRequest const& request); + + virtual future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateCluster( google::cloud::alloydb::v1::UpdateClusterRequest const& request); + virtual StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateClusterRequest const& request); + + virtual future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteCluster( google::cloud::alloydb::v1::DeleteClusterRequest const& request); + virtual StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteClusterRequest const& request); + + virtual future> + DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> PromoteCluster( google::cloud::alloydb::v1::PromoteClusterRequest const& request); + virtual StatusOr PromoteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::PromoteClusterRequest const& request); + + virtual future> PromoteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RestoreCluster( google::cloud::alloydb::v1::RestoreClusterRequest const& request); + virtual StatusOr RestoreCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::RestoreClusterRequest const& request); + + virtual future> RestoreCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateSecondaryCluster( google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request); + virtual StatusOr CreateSecondaryCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request); + + virtual future> + CreateSecondaryCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListInstances( google::cloud::alloydb::v1::ListInstancesRequest request); @@ -220,34 +270,100 @@ class AlloyDBAdminConnection { virtual future> CreateInstance( google::cloud::alloydb::v1::CreateInstanceRequest const& request); + virtual StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateInstanceRequest const& request); + + virtual future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateSecondaryInstance( google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request); + virtual StatusOr CreateSecondaryInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& + request); + + virtual future> + CreateSecondaryInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> BatchCreateInstances( google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request); + virtual StatusOr BatchCreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request); + + virtual future< + StatusOr> + BatchCreateInstances(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateInstance( google::cloud::alloydb::v1::UpdateInstanceRequest const& request); + virtual StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateInstanceRequest const& request); + + virtual future> UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteInstance( google::cloud::alloydb::v1::DeleteInstanceRequest const& request); + virtual StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteInstanceRequest const& request); + + virtual future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> FailoverInstance( google::cloud::alloydb::v1::FailoverInstanceRequest const& request); + virtual StatusOr FailoverInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::FailoverInstanceRequest const& request); + + virtual future> + FailoverInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> InjectFault( google::cloud::alloydb::v1::InjectFaultRequest const& request); + virtual StatusOr InjectFault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::InjectFaultRequest const& request); + + virtual future> InjectFault( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RestartInstance( google::cloud::alloydb::v1::RestartInstanceRequest const& request); + virtual StatusOr RestartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::RestartInstanceRequest const& request); + + virtual future> + RestartInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListBackups( google::cloud::alloydb::v1::ListBackupsRequest request); @@ -257,12 +373,36 @@ class AlloyDBAdminConnection { virtual future> CreateBackup( google::cloud::alloydb::v1::CreateBackupRequest const& request); + virtual StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateBackupRequest const& request); + + virtual future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateBackup( google::cloud::alloydb::v1::UpdateBackupRequest const& request); + virtual StatusOr UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateBackupRequest const& request); + + virtual future> UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteBackup(google::cloud::alloydb::v1::DeleteBackupRequest const& request); + virtual StatusOr DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteBackupRequest const& request); + + virtual future> + DeleteBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListSupportedDatabaseFlags( google::cloud::alloydb::v1::ListSupportedDatabaseFlagsRequest request); diff --git a/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.cc b/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.cc index abe68a87d913e..61d4a02b39b8b 100644 --- a/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.cc +++ b/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.cc @@ -151,6 +151,58 @@ AlloyDBAdminConnectionImpl::CreateCluster( polling_policy(*current), __func__); } +StatusOr +AlloyDBAdminConnectionImpl::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::alloydb::v1::CreateClusterRequest const& request) { + return stub_->CreateCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +AlloyDBAdminConnectionImpl::CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::alloydb::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::alloydb::v1::Cluster>, + polling_policy(*current), __func__); +} + future> AlloyDBAdminConnectionImpl::UpdateCluster( google::cloud::alloydb::v1::UpdateClusterRequest const& request) { @@ -190,6 +242,58 @@ AlloyDBAdminConnectionImpl::UpdateCluster( polling_policy(*current), __func__); } +StatusOr +AlloyDBAdminConnectionImpl::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::alloydb::v1::UpdateClusterRequest const& request) { + return stub_->UpdateCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +AlloyDBAdminConnectionImpl::UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::alloydb::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::alloydb::v1::Cluster>, + polling_policy(*current), __func__); +} + future> AlloyDBAdminConnectionImpl::DeleteCluster( google::cloud::alloydb::v1::DeleteClusterRequest const& request) { @@ -229,6 +333,59 @@ AlloyDBAdminConnectionImpl::DeleteCluster( polling_policy(*current), __func__); } +StatusOr +AlloyDBAdminConnectionImpl::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::alloydb::v1::DeleteClusterRequest const& request) { + return stub_->DeleteCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +AlloyDBAdminConnectionImpl::DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::alloydb::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::alloydb::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> AlloyDBAdminConnectionImpl::PromoteCluster( google::cloud::alloydb::v1::PromoteClusterRequest const& request) { @@ -268,6 +425,58 @@ AlloyDBAdminConnectionImpl::PromoteCluster( polling_policy(*current), __func__); } +StatusOr +AlloyDBAdminConnectionImpl::PromoteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::PromoteClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PromoteCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::alloydb::v1::PromoteClusterRequest const& request) { + return stub_->PromoteCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +AlloyDBAdminConnectionImpl::PromoteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to PromoteCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::alloydb::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::alloydb::v1::Cluster>, + polling_policy(*current), __func__); +} + future> AlloyDBAdminConnectionImpl::RestoreCluster( google::cloud::alloydb::v1::RestoreClusterRequest const& request) { @@ -307,6 +516,58 @@ AlloyDBAdminConnectionImpl::RestoreCluster( polling_policy(*current), __func__); } +StatusOr +AlloyDBAdminConnectionImpl::RestoreCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::RestoreClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RestoreCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::alloydb::v1::RestoreClusterRequest const& request) { + return stub_->RestoreCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +AlloyDBAdminConnectionImpl::RestoreCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RestoreCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::alloydb::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::alloydb::v1::Cluster>, + polling_policy(*current), __func__); +} + future> AlloyDBAdminConnectionImpl::CreateSecondaryCluster( google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request) { @@ -347,6 +608,59 @@ AlloyDBAdminConnectionImpl::CreateSecondaryCluster( polling_policy(*current), __func__); } +StatusOr +AlloyDBAdminConnectionImpl::CreateSecondaryCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateSecondaryCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& + request) { + return stub_->CreateSecondaryCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +AlloyDBAdminConnectionImpl::CreateSecondaryCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateSecondaryCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::alloydb::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::alloydb::v1::Cluster>, + polling_policy(*current), __func__); +} + StreamRange AlloyDBAdminConnectionImpl::ListInstances( google::cloud::alloydb::v1::ListInstancesRequest request) { @@ -434,6 +748,58 @@ AlloyDBAdminConnectionImpl::CreateInstance( polling_policy(*current), __func__); } +StatusOr +AlloyDBAdminConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::alloydb::v1::CreateInstanceRequest const& request) { + return stub_->CreateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +AlloyDBAdminConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::alloydb::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::alloydb::v1::Instance>, + polling_policy(*current), __func__); +} + future> AlloyDBAdminConnectionImpl::CreateSecondaryInstance( google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request) { @@ -468,30 +834,359 @@ AlloyDBAdminConnectionImpl::CreateSecondaryInstance( return stub->AsyncCancelOperation(cq, std::move(context), std::move(options), request); }, - &google::cloud::internal::ExtractLongRunningResultResponse< - google::cloud::alloydb::v1::Instance>, - retry_policy(*current), backoff_policy(*current), idempotent, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::alloydb::v1::Instance>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +AlloyDBAdminConnectionImpl::CreateSecondaryInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateSecondaryInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& + request) { + return stub_->CreateSecondaryInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +AlloyDBAdminConnectionImpl::CreateSecondaryInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateSecondaryInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::alloydb::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::alloydb::v1::Instance>, + polling_policy(*current), __func__); +} + +future> +AlloyDBAdminConnectionImpl::BatchCreateInstances( + google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->BatchCreateInstances(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::alloydb::v1::BatchCreateInstancesResponse>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::alloydb::v1::BatchCreateInstancesRequest const& + request) { + return stub->AsyncBatchCreateInstances(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::alloydb::v1::BatchCreateInstancesResponse>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +AlloyDBAdminConnectionImpl::BatchCreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchCreateInstances(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::alloydb::v1::BatchCreateInstancesRequest const& + request) { + return stub_->BatchCreateInstances(context, options, request); + }, + *current, request, __func__); +} + +future> +AlloyDBAdminConnectionImpl::BatchCreateInstances( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to BatchCreateInstances", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::alloydb::v1::BatchCreateInstancesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::alloydb::v1::BatchCreateInstancesResponse>, + polling_policy(*current), __func__); +} + +future> +AlloyDBAdminConnectionImpl::UpdateInstance( + google::cloud::alloydb::v1::UpdateInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->UpdateInstance(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::alloydb::v1::Instance>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::alloydb::v1::UpdateInstanceRequest const& request) { + return stub->AsyncUpdateInstance(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::alloydb::v1::Instance>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +AlloyDBAdminConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::alloydb::v1::UpdateInstanceRequest const& request) { + return stub_->UpdateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +AlloyDBAdminConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::alloydb::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::alloydb::v1::Instance>, + polling_policy(*current), __func__); +} + +future> +AlloyDBAdminConnectionImpl::DeleteInstance( + google::cloud::alloydb::v1::DeleteInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->DeleteInstance(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::alloydb::v1::OperationMetadata>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::alloydb::v1::DeleteInstanceRequest const& request) { + return stub->AsyncDeleteInstance(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::alloydb::v1::OperationMetadata>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +AlloyDBAdminConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::alloydb::v1::DeleteInstanceRequest const& request) { + return stub_->DeleteInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +AlloyDBAdminConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::alloydb::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::alloydb::v1::OperationMetadata>, polling_policy(*current), __func__); } -future> -AlloyDBAdminConnectionImpl::BatchCreateInstances( - google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request) { +future> +AlloyDBAdminConnectionImpl::FailoverInstance( + google::cloud::alloydb::v1::FailoverInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); auto request_copy = request; auto const idempotent = - idempotency_policy(*current)->BatchCreateInstances(request_copy); + idempotency_policy(*current)->FailoverInstance(request_copy); return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::alloydb::v1::BatchCreateInstancesResponse>( + google::cloud::alloydb::v1::Instance>( background_->cq(), current, std::move(request_copy), [stub = stub_]( google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, - google::cloud::alloydb::v1::BatchCreateInstancesRequest const& - request) { - return stub->AsyncBatchCreateInstances(cq, std::move(context), - std::move(options), request); + google::cloud::alloydb::v1::FailoverInstanceRequest const& request) { + return stub->AsyncFailoverInstance(cq, std::move(context), + std::move(options), request); }, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, @@ -509,29 +1204,44 @@ AlloyDBAdminConnectionImpl::BatchCreateInstances( std::move(options), request); }, &google::cloud::internal::ExtractLongRunningResultResponse< - google::cloud::alloydb::v1::BatchCreateInstancesResponse>, + google::cloud::alloydb::v1::Instance>, retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } +StatusOr +AlloyDBAdminConnectionImpl::FailoverInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::FailoverInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->FailoverInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::alloydb::v1::FailoverInstanceRequest const& request) { + return stub_->FailoverInstance(context, options, request); + }, + *current, request, __func__); +} + future> -AlloyDBAdminConnectionImpl::UpdateInstance( - google::cloud::alloydb::v1::UpdateInstanceRequest const& request) { +AlloyDBAdminConnectionImpl::FailoverInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->UpdateInstance(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to FailoverInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< google::cloud::alloydb::v1::Instance>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::alloydb::v1::UpdateInstanceRequest const& request) { - return stub->AsyncUpdateInstance(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -549,27 +1259,26 @@ AlloyDBAdminConnectionImpl::UpdateInstance( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::alloydb::v1::Instance>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } -future> -AlloyDBAdminConnectionImpl::DeleteInstance( - google::cloud::alloydb::v1::DeleteInstanceRequest const& request) { +future> +AlloyDBAdminConnectionImpl::InjectFault( + google::cloud::alloydb::v1::InjectFaultRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); auto request_copy = request; auto const idempotent = - idempotency_policy(*current)->DeleteInstance(request_copy); + idempotency_policy(*current)->InjectFault(request_copy); return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::alloydb::v1::OperationMetadata>( + google::cloud::alloydb::v1::Instance>( background_->cq(), current, std::move(request_copy), [stub = stub_]( google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, - google::cloud::alloydb::v1::DeleteInstanceRequest const& request) { - return stub->AsyncDeleteInstance(cq, std::move(context), - std::move(options), request); + google::cloud::alloydb::v1::InjectFaultRequest const& request) { + return stub->AsyncInjectFault(cq, std::move(context), + std::move(options), request); }, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, @@ -586,30 +1295,44 @@ AlloyDBAdminConnectionImpl::DeleteInstance( return stub->AsyncCancelOperation(cq, std::move(context), std::move(options), request); }, - &google::cloud::internal::ExtractLongRunningResultMetadata< - google::cloud::alloydb::v1::OperationMetadata>, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::alloydb::v1::Instance>, retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } +StatusOr +AlloyDBAdminConnectionImpl::InjectFault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::InjectFaultRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InjectFault(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::alloydb::v1::InjectFaultRequest const& request) { + return stub_->InjectFault(context, options, request); + }, + *current, request, __func__); +} + future> -AlloyDBAdminConnectionImpl::FailoverInstance( - google::cloud::alloydb::v1::FailoverInstanceRequest const& request) { +AlloyDBAdminConnectionImpl::InjectFault( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->FailoverInstance(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to InjectFault", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< google::cloud::alloydb::v1::Instance>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::alloydb::v1::FailoverInstanceRequest const& request) { - return stub->AsyncFailoverInstance(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -627,17 +1350,16 @@ AlloyDBAdminConnectionImpl::FailoverInstance( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::alloydb::v1::Instance>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } future> -AlloyDBAdminConnectionImpl::InjectFault( - google::cloud::alloydb::v1::InjectFaultRequest const& request) { +AlloyDBAdminConnectionImpl::RestartInstance( + google::cloud::alloydb::v1::RestartInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); auto request_copy = request; auto const idempotent = - idempotency_policy(*current)->InjectFault(request_copy); + idempotency_policy(*current)->RestartInstance(request_copy); return google::cloud::internal::AsyncLongRunningOperation< google::cloud::alloydb::v1::Instance>( background_->cq(), current, std::move(request_copy), @@ -645,9 +1367,9 @@ AlloyDBAdminConnectionImpl::InjectFault( google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, - google::cloud::alloydb::v1::InjectFaultRequest const& request) { - return stub->AsyncInjectFault(cq, std::move(context), - std::move(options), request); + google::cloud::alloydb::v1::RestartInstanceRequest const& request) { + return stub->AsyncRestartInstance(cq, std::move(context), + std::move(options), request); }, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, @@ -670,24 +1392,39 @@ AlloyDBAdminConnectionImpl::InjectFault( polling_policy(*current), __func__); } -future> +StatusOr AlloyDBAdminConnectionImpl::RestartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::alloydb::v1::RestartInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->RestartInstance(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::alloydb::v1::Instance>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RestartInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, google::cloud::alloydb::v1::RestartInstanceRequest const& request) { - return stub->AsyncRestartInstance(cq, std::move(context), - std::move(options), request); + return stub_->RestartInstance(context, options, request); }, + *current, request, __func__); +} + +future> +AlloyDBAdminConnectionImpl::RestartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RestartInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::alloydb::v1::Instance>( + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -705,7 +1442,6 @@ AlloyDBAdminConnectionImpl::RestartInstance( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::alloydb::v1::Instance>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } @@ -796,6 +1532,58 @@ AlloyDBAdminConnectionImpl::CreateBackup( polling_policy(*current), __func__); } +StatusOr +AlloyDBAdminConnectionImpl::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::alloydb::v1::CreateBackupRequest const& request) { + return stub_->CreateBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +AlloyDBAdminConnectionImpl::CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::alloydb::v1::Backup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::alloydb::v1::Backup>, + polling_policy(*current), __func__); +} + future> AlloyDBAdminConnectionImpl::UpdateBackup( google::cloud::alloydb::v1::UpdateBackupRequest const& request) { @@ -835,6 +1623,58 @@ AlloyDBAdminConnectionImpl::UpdateBackup( polling_policy(*current), __func__); } +StatusOr +AlloyDBAdminConnectionImpl::UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::alloydb::v1::UpdateBackupRequest const& request) { + return stub_->UpdateBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +AlloyDBAdminConnectionImpl::UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::alloydb::v1::Backup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::alloydb::v1::Backup>, + polling_policy(*current), __func__); +} + future> AlloyDBAdminConnectionImpl::DeleteBackup( google::cloud::alloydb::v1::DeleteBackupRequest const& request) { @@ -874,6 +1714,59 @@ AlloyDBAdminConnectionImpl::DeleteBackup( polling_policy(*current), __func__); } +StatusOr +AlloyDBAdminConnectionImpl::DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::alloydb::v1::DeleteBackupRequest const& request) { + return stub_->DeleteBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +AlloyDBAdminConnectionImpl::DeleteBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::alloydb::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::alloydb::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange AlloyDBAdminConnectionImpl::ListSupportedDatabaseFlags( google::cloud::alloydb::v1::ListSupportedDatabaseFlagsRequest request) { diff --git a/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.h b/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.h index 206d94329ba1e..3841a5759b645 100644 --- a/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.h +++ b/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.h @@ -60,24 +60,75 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { future> CreateCluster( google::cloud::alloydb::v1::CreateClusterRequest const& request) override; + StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateClusterRequest const& request) override; + + future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCluster( google::cloud::alloydb::v1::UpdateClusterRequest const& request) override; + StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateClusterRequest const& request) override; + + future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCluster( google::cloud::alloydb::v1::DeleteClusterRequest const& request) override; + StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteClusterRequest const& request) override; + + future> DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PromoteCluster( google::cloud::alloydb::v1::PromoteClusterRequest const& request) override; + StatusOr PromoteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::PromoteClusterRequest const& request) + override; + + future> PromoteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RestoreCluster( google::cloud::alloydb::v1::RestoreClusterRequest const& request) override; + StatusOr RestoreCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::RestoreClusterRequest const& request) + override; + + future> RestoreCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateSecondaryCluster( google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request) override; + StatusOr CreateSecondaryCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request) + override; + + future> CreateSecondaryCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListInstances( google::cloud::alloydb::v1::ListInstancesRequest request) override; @@ -88,35 +139,108 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { google::cloud::alloydb::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateInstanceRequest const& request) + override; + + future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateSecondaryInstance( google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request) override; + StatusOr CreateSecondaryInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request) + override; + + future> + CreateSecondaryInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchCreateInstances( google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request) override; + StatusOr BatchCreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request) + override; + + future> + BatchCreateInstances( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstance( google::cloud::alloydb::v1::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateInstanceRequest const& request) + override; + + future> UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteInstance(google::cloud::alloydb::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteInstanceRequest const& request) + override; + + future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> FailoverInstance( google::cloud::alloydb::v1::FailoverInstanceRequest const& request) override; + StatusOr FailoverInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::FailoverInstanceRequest const& request) + override; + + future> FailoverInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> InjectFault( google::cloud::alloydb::v1::InjectFaultRequest const& request) override; + StatusOr InjectFault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::InjectFaultRequest const& request) override; + + future> InjectFault( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RestartInstance( google::cloud::alloydb::v1::RestartInstanceRequest const& request) override; + StatusOr RestartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::RestartInstanceRequest const& request) + override; + + future> RestartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListBackups( google::cloud::alloydb::v1::ListBackupsRequest request) override; @@ -126,12 +250,36 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { future> CreateBackup( google::cloud::alloydb::v1::CreateBackupRequest const& request) override; + StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateBackupRequest const& request) override; + + future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateBackup( google::cloud::alloydb::v1::UpdateBackupRequest const& request) override; + StatusOr UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateBackupRequest const& request) override; + + future> UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteBackup( google::cloud::alloydb::v1::DeleteBackupRequest const& request) override; + StatusOr DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteBackupRequest const& request) override; + + future> DeleteBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListSupportedDatabaseFlags( google::cloud::alloydb::v1::ListSupportedDatabaseFlagsRequest request) diff --git a/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.cc b/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.cc index bbe8597ac5eaf..23219a24b4575 100644 --- a/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.cc +++ b/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.cc @@ -62,6 +62,30 @@ AlloyDBAdminTracingConnection::CreateCluster( return internal::EndSpan(std::move(span), child_->CreateCluster(request)); } +StatusOr +AlloyDBAdminTracingConnection::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateClusterRequest const& request) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::CreateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::CreateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> AlloyDBAdminTracingConnection::UpdateCluster( google::cloud::alloydb::v1::UpdateClusterRequest const& request) { @@ -71,6 +95,30 @@ AlloyDBAdminTracingConnection::UpdateCluster( return internal::EndSpan(std::move(span), child_->UpdateCluster(request)); } +StatusOr +AlloyDBAdminTracingConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateClusterRequest const& request) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::UpdateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::UpdateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> AlloyDBAdminTracingConnection::DeleteCluster( google::cloud::alloydb::v1::DeleteClusterRequest const& request) { @@ -80,6 +128,30 @@ AlloyDBAdminTracingConnection::DeleteCluster( return internal::EndSpan(std::move(span), child_->DeleteCluster(request)); } +StatusOr +AlloyDBAdminTracingConnection::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteClusterRequest const& request) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::DeleteCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::DeleteCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> AlloyDBAdminTracingConnection::PromoteCluster( google::cloud::alloydb::v1::PromoteClusterRequest const& request) { @@ -89,6 +161,30 @@ AlloyDBAdminTracingConnection::PromoteCluster( return internal::EndSpan(std::move(span), child_->PromoteCluster(request)); } +StatusOr +AlloyDBAdminTracingConnection::PromoteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::PromoteClusterRequest const& request) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::PromoteCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PromoteCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::PromoteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::PromoteCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PromoteCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> AlloyDBAdminTracingConnection::RestoreCluster( google::cloud::alloydb::v1::RestoreClusterRequest const& request) { @@ -98,6 +194,30 @@ AlloyDBAdminTracingConnection::RestoreCluster( return internal::EndSpan(std::move(span), child_->RestoreCluster(request)); } +StatusOr +AlloyDBAdminTracingConnection::RestoreCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::RestoreClusterRequest const& request) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::RestoreCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RestoreCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::RestoreCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::RestoreCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RestoreCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> AlloyDBAdminTracingConnection::CreateSecondaryCluster( google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request) { @@ -108,6 +228,30 @@ AlloyDBAdminTracingConnection::CreateSecondaryCluster( child_->CreateSecondaryCluster(request)); } +StatusOr +AlloyDBAdminTracingConnection::CreateSecondaryCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request) { + auto span = internal::MakeSpan( + "alloydb_v1::AlloyDBAdminConnection::CreateSecondaryCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateSecondaryCluster( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::CreateSecondaryCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "alloydb_v1::AlloyDBAdminConnection::CreateSecondaryCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateSecondaryCluster( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange AlloyDBAdminTracingConnection::ListInstances( google::cloud::alloydb::v1::ListInstancesRequest request) { @@ -137,6 +281,30 @@ AlloyDBAdminTracingConnection::CreateInstance( return internal::EndSpan(std::move(span), child_->CreateInstance(request)); } +StatusOr +AlloyDBAdminTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateInstanceRequest const& request) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> AlloyDBAdminTracingConnection::CreateSecondaryInstance( google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request) { @@ -147,6 +315,30 @@ AlloyDBAdminTracingConnection::CreateSecondaryInstance( child_->CreateSecondaryInstance(request)); } +StatusOr +AlloyDBAdminTracingConnection::CreateSecondaryInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request) { + auto span = internal::MakeSpan( + "alloydb_v1::AlloyDBAdminConnection::CreateSecondaryInstance"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateSecondaryInstance( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::CreateSecondaryInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "alloydb_v1::AlloyDBAdminConnection::CreateSecondaryInstance"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateSecondaryInstance( + google::cloud::ExperimentalTag{}, operation)); +} + future> AlloyDBAdminTracingConnection::BatchCreateInstances( google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request) { @@ -157,6 +349,30 @@ AlloyDBAdminTracingConnection::BatchCreateInstances( child_->BatchCreateInstances(request)); } +StatusOr +AlloyDBAdminTracingConnection::BatchCreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request) { + auto span = internal::MakeSpan( + "alloydb_v1::AlloyDBAdminConnection::BatchCreateInstances"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->BatchCreateInstances( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::BatchCreateInstances( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "alloydb_v1::AlloyDBAdminConnection::BatchCreateInstances"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->BatchCreateInstances( + google::cloud::ExperimentalTag{}, operation)); +} + future> AlloyDBAdminTracingConnection::UpdateInstance( google::cloud::alloydb::v1::UpdateInstanceRequest const& request) { @@ -166,6 +382,30 @@ AlloyDBAdminTracingConnection::UpdateInstance( return internal::EndSpan(std::move(span), child_->UpdateInstance(request)); } +StatusOr +AlloyDBAdminTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateInstanceRequest const& request) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> AlloyDBAdminTracingConnection::DeleteInstance( google::cloud::alloydb::v1::DeleteInstanceRequest const& request) { @@ -175,6 +415,30 @@ AlloyDBAdminTracingConnection::DeleteInstance( return internal::EndSpan(std::move(span), child_->DeleteInstance(request)); } +StatusOr +AlloyDBAdminTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteInstanceRequest const& request) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> AlloyDBAdminTracingConnection::FailoverInstance( google::cloud::alloydb::v1::FailoverInstanceRequest const& request) { @@ -184,6 +448,30 @@ AlloyDBAdminTracingConnection::FailoverInstance( return internal::EndSpan(std::move(span), child_->FailoverInstance(request)); } +StatusOr +AlloyDBAdminTracingConnection::FailoverInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::FailoverInstanceRequest const& request) { + auto span = internal::MakeSpan( + "alloydb_v1::AlloyDBAdminConnection::FailoverInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->FailoverInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::FailoverInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "alloydb_v1::AlloyDBAdminConnection::FailoverInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->FailoverInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> AlloyDBAdminTracingConnection::InjectFault( google::cloud::alloydb::v1::InjectFaultRequest const& request) { @@ -193,6 +481,30 @@ AlloyDBAdminTracingConnection::InjectFault( return internal::EndSpan(std::move(span), child_->InjectFault(request)); } +StatusOr +AlloyDBAdminTracingConnection::InjectFault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::InjectFaultRequest const& request) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::InjectFault"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InjectFault(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::InjectFault( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::InjectFault"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InjectFault(google::cloud::ExperimentalTag{}, operation)); +} + future> AlloyDBAdminTracingConnection::RestartInstance( google::cloud::alloydb::v1::RestartInstanceRequest const& request) { @@ -202,6 +514,30 @@ AlloyDBAdminTracingConnection::RestartInstance( return internal::EndSpan(std::move(span), child_->RestartInstance(request)); } +StatusOr +AlloyDBAdminTracingConnection::RestartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::RestartInstanceRequest const& request) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::RestartInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RestartInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::RestartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::RestartInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RestartInstance(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange AlloyDBAdminTracingConnection::ListBackups( google::cloud::alloydb::v1::ListBackupsRequest request) { @@ -231,6 +567,30 @@ AlloyDBAdminTracingConnection::CreateBackup( return internal::EndSpan(std::move(span), child_->CreateBackup(request)); } +StatusOr +AlloyDBAdminTracingConnection::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateBackupRequest const& request) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::CreateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::CreateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateBackup(google::cloud::ExperimentalTag{}, operation)); +} + future> AlloyDBAdminTracingConnection::UpdateBackup( google::cloud::alloydb::v1::UpdateBackupRequest const& request) { @@ -240,6 +600,30 @@ AlloyDBAdminTracingConnection::UpdateBackup( return internal::EndSpan(std::move(span), child_->UpdateBackup(request)); } +StatusOr +AlloyDBAdminTracingConnection::UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateBackupRequest const& request) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::UpdateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::UpdateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateBackup(google::cloud::ExperimentalTag{}, operation)); +} + future> AlloyDBAdminTracingConnection::DeleteBackup( google::cloud::alloydb::v1::DeleteBackupRequest const& request) { @@ -249,6 +633,30 @@ AlloyDBAdminTracingConnection::DeleteBackup( return internal::EndSpan(std::move(span), child_->DeleteBackup(request)); } +StatusOr +AlloyDBAdminTracingConnection::DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteBackupRequest const& request) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::DeleteBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AlloyDBAdminTracingConnection::DeleteBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::DeleteBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteBackup(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange AlloyDBAdminTracingConnection::ListSupportedDatabaseFlags( google::cloud::alloydb::v1::ListSupportedDatabaseFlagsRequest request) { diff --git a/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.h b/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.h index 6f8c9103c41bb..1ab875348ebf8 100644 --- a/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.h +++ b/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.h @@ -49,24 +49,75 @@ class AlloyDBAdminTracingConnection future> CreateCluster( google::cloud::alloydb::v1::CreateClusterRequest const& request) override; + StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateClusterRequest const& request) override; + + future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCluster( google::cloud::alloydb::v1::UpdateClusterRequest const& request) override; + StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateClusterRequest const& request) override; + + future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCluster( google::cloud::alloydb::v1::DeleteClusterRequest const& request) override; + StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteClusterRequest const& request) override; + + future> DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PromoteCluster( google::cloud::alloydb::v1::PromoteClusterRequest const& request) override; + StatusOr PromoteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::PromoteClusterRequest const& request) + override; + + future> PromoteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RestoreCluster( google::cloud::alloydb::v1::RestoreClusterRequest const& request) override; + StatusOr RestoreCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::RestoreClusterRequest const& request) + override; + + future> RestoreCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateSecondaryCluster( google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request) override; + StatusOr CreateSecondaryCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request) + override; + + future> CreateSecondaryCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListInstances( google::cloud::alloydb::v1::ListInstancesRequest request) override; @@ -77,35 +128,108 @@ class AlloyDBAdminTracingConnection google::cloud::alloydb::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateInstanceRequest const& request) + override; + + future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateSecondaryInstance( google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request) override; + StatusOr CreateSecondaryInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request) + override; + + future> + CreateSecondaryInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchCreateInstances( google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request) override; + StatusOr BatchCreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request) + override; + + future> + BatchCreateInstances( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstance( google::cloud::alloydb::v1::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateInstanceRequest const& request) + override; + + future> UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteInstance(google::cloud::alloydb::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteInstanceRequest const& request) + override; + + future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> FailoverInstance( google::cloud::alloydb::v1::FailoverInstanceRequest const& request) override; + StatusOr FailoverInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::FailoverInstanceRequest const& request) + override; + + future> FailoverInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> InjectFault( google::cloud::alloydb::v1::InjectFaultRequest const& request) override; + StatusOr InjectFault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::InjectFaultRequest const& request) override; + + future> InjectFault( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RestartInstance( google::cloud::alloydb::v1::RestartInstanceRequest const& request) override; + StatusOr RestartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::RestartInstanceRequest const& request) + override; + + future> RestartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListBackups( google::cloud::alloydb::v1::ListBackupsRequest request) override; @@ -115,12 +239,36 @@ class AlloyDBAdminTracingConnection future> CreateBackup( google::cloud::alloydb::v1::CreateBackupRequest const& request) override; + StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateBackupRequest const& request) override; + + future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateBackup( google::cloud::alloydb::v1::UpdateBackupRequest const& request) override; + StatusOr UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateBackupRequest const& request) override; + + future> UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteBackup( google::cloud::alloydb::v1::DeleteBackupRequest const& request) override; + StatusOr DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteBackupRequest const& request) override; + + future> DeleteBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListSupportedDatabaseFlags( google::cloud::alloydb::v1::ListSupportedDatabaseFlagsRequest request) diff --git a/google/cloud/alloydb/v1/mocks/mock_alloy_db_admin_connection.h b/google/cloud/alloydb/v1/mocks/mock_alloy_db_admin_connection.h index 2e1b94336fd99..f531cd485d41b 100644 --- a/google/cloud/alloydb/v1/mocks/mock_alloy_db_admin_connection.h +++ b/google/cloud/alloydb/v1/mocks/mock_alloy_db_admin_connection.h @@ -59,32 +59,101 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { (google::cloud::alloydb::v1::CreateClusterRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateCluster, (google::cloud::alloydb::v1::UpdateClusterRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteCluster, (google::cloud::alloydb::v1::DeleteClusterRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, PromoteCluster, (google::cloud::alloydb::v1::PromoteClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, PromoteCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::PromoteClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + PromoteCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RestoreCluster, (google::cloud::alloydb::v1::RestoreClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RestoreCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::RestoreClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + RestoreCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, CreateSecondaryCluster, (google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateSecondaryCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateSecondaryCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListInstances, (google::cloud::alloydb::v1::ListInstancesRequest request), @@ -99,12 +168,36 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { (google::cloud::alloydb::v1::CreateInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, CreateSecondaryInstance, (google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateSecondaryInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateSecondaryInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -112,32 +205,105 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { (google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request), (override)); + MOCK_METHOD( + StatusOr, BatchCreateInstances, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + BatchCreateInstances, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateInstance, (google::cloud::alloydb::v1::UpdateInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteInstance, (google::cloud::alloydb::v1::DeleteInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, FailoverInstance, (google::cloud::alloydb::v1::FailoverInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, FailoverInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::FailoverInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + FailoverInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, InjectFault, (google::cloud::alloydb::v1::InjectFaultRequest const& request), (override)); + MOCK_METHOD(StatusOr, InjectFault, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::InjectFaultRequest const& request), + (override)); + + MOCK_METHOD(future>, + InjectFault, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RestartInstance, (google::cloud::alloydb::v1::RestartInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RestartInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::RestartInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + RestartInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListBackups, (google::cloud::alloydb::v1::ListBackupsRequest request), (override)); @@ -151,16 +317,49 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { (google::cloud::alloydb::v1::CreateBackupRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::CreateBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateBackup, (google::cloud::alloydb::v1::UpdateBackupRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::UpdateBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteBackup, (google::cloud::alloydb::v1::DeleteBackupRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::alloydb::v1::DeleteBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListSupportedDatabaseFlags, diff --git a/google/cloud/apigateway/v1/api_gateway_connection.cc b/google/cloud/apigateway/v1/api_gateway_connection.cc index 0bce052f1bf22..90792f8d70f1b 100644 --- a/google/cloud/apigateway/v1/api_gateway_connection.cc +++ b/google/cloud/apigateway/v1/api_gateway_connection.cc @@ -60,9 +60,41 @@ ApiGatewayServiceConnection::CreateGateway( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ApiGatewayServiceConnection::CreateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateGatewayRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +ApiGatewayServiceConnection::CreateGateway( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ApiGatewayServiceConnection::UpdateGateway( + google::cloud::apigateway::v1::UpdateGatewayRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr ApiGatewayServiceConnection::UpdateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::apigateway::v1::UpdateGatewayRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ApiGatewayServiceConnection::UpdateGateway( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -76,6 +108,22 @@ ApiGatewayServiceConnection::DeleteGateway( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ApiGatewayServiceConnection::DeleteGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteGatewayRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ApiGatewayServiceConnection::DeleteGateway( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ApiGatewayServiceConnection::ListApis( google::cloud::apigateway::v1:: @@ -98,6 +146,21 @@ ApiGatewayServiceConnection::CreateApi( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ApiGatewayServiceConnection::CreateApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateApiRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ApiGatewayServiceConnection::CreateApi(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ApiGatewayServiceConnection::UpdateApi( google::cloud::apigateway::v1::UpdateApiRequest const&) { @@ -106,6 +169,21 @@ ApiGatewayServiceConnection::UpdateApi( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ApiGatewayServiceConnection::UpdateApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateApiRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ApiGatewayServiceConnection::UpdateApi(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ApiGatewayServiceConnection::DeleteApi( google::cloud::apigateway::v1::DeleteApiRequest const&) { @@ -114,6 +192,21 @@ ApiGatewayServiceConnection::DeleteApi( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ApiGatewayServiceConnection::DeleteApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteApiRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ApiGatewayServiceConnection::DeleteApi(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ApiGatewayServiceConnection::ListApiConfigs( google::cloud::apigateway::v1:: @@ -136,6 +229,22 @@ ApiGatewayServiceConnection::CreateApiConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ApiGatewayServiceConnection::CreateApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateApiConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ApiGatewayServiceConnection::CreateApiConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ApiGatewayServiceConnection::UpdateApiConfig( google::cloud::apigateway::v1::UpdateApiConfigRequest const&) { @@ -144,6 +253,22 @@ ApiGatewayServiceConnection::UpdateApiConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ApiGatewayServiceConnection::UpdateApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateApiConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ApiGatewayServiceConnection::UpdateApiConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ApiGatewayServiceConnection::DeleteApiConfig( google::cloud::apigateway::v1::DeleteApiConfigRequest const&) { @@ -152,6 +277,22 @@ ApiGatewayServiceConnection::DeleteApiConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ApiGatewayServiceConnection::DeleteApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteApiConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ApiGatewayServiceConnection::DeleteApiConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeApiGatewayServiceConnection( Options options) { internal::CheckExpectedOptions CreateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateGatewayRequest const& request); + + virtual future> + CreateGateway(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateGateway( google::cloud::apigateway::v1::UpdateGatewayRequest const& request); + virtual StatusOr UpdateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateGatewayRequest const& request); + + virtual future> + UpdateGateway(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteGateway( google::cloud::apigateway::v1::DeleteGatewayRequest const& request); + virtual StatusOr DeleteGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteGatewayRequest const& request); + + virtual future> + DeleteGateway(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListApis( google::cloud::apigateway::v1::ListApisRequest request); @@ -215,12 +241,36 @@ class ApiGatewayServiceConnection { virtual future> CreateApi( google::cloud::apigateway::v1::CreateApiRequest const& request); + virtual StatusOr CreateApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateApiRequest const& request); + + virtual future> CreateApi( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateApi( google::cloud::apigateway::v1::UpdateApiRequest const& request); + virtual StatusOr UpdateApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateApiRequest const& request); + + virtual future> UpdateApi( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteApi(google::cloud::apigateway::v1::DeleteApiRequest const& request); + virtual StatusOr DeleteApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteApiRequest const& request); + + virtual future> + DeleteApi(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListApiConfigs( google::cloud::apigateway::v1::ListApiConfigsRequest request); @@ -231,13 +281,37 @@ class ApiGatewayServiceConnection { CreateApiConfig( google::cloud::apigateway::v1::CreateApiConfigRequest const& request); + virtual StatusOr CreateApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateApiConfigRequest const& request); + + virtual future> + CreateApiConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateApiConfig( google::cloud::apigateway::v1::UpdateApiConfigRequest const& request); + virtual StatusOr UpdateApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateApiConfigRequest const& request); + + virtual future> + UpdateApiConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteApiConfig( google::cloud::apigateway::v1::DeleteApiConfigRequest const& request); + + virtual StatusOr DeleteApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteApiConfigRequest const& request); + + virtual future> + DeleteApiConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.cc b/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.cc index dbafaccb0c8ff..29b7f6e18a915 100644 --- a/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.cc +++ b/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.cc @@ -154,6 +154,59 @@ ApiGatewayServiceConnectionImpl::CreateGateway( polling_policy(*current), __func__); } +StatusOr +ApiGatewayServiceConnectionImpl::CreateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateGatewayRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateGateway(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::apigateway::v1::CreateGatewayRequest const& request) { + return stub_->CreateGateway(context, options, request); + }, + *current, request, __func__); +} + +future> +ApiGatewayServiceConnectionImpl::CreateGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateGateway", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apigateway::v1::Gateway>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::apigateway::v1::Gateway>, + polling_policy(*current), __func__); +} + future> ApiGatewayServiceConnectionImpl::UpdateGateway( google::cloud::apigateway::v1::UpdateGatewayRequest const& request) { @@ -193,6 +246,59 @@ ApiGatewayServiceConnectionImpl::UpdateGateway( polling_policy(*current), __func__); } +StatusOr +ApiGatewayServiceConnectionImpl::UpdateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateGatewayRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateGateway(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::apigateway::v1::UpdateGatewayRequest const& request) { + return stub_->UpdateGateway(context, options, request); + }, + *current, request, __func__); +} + +future> +ApiGatewayServiceConnectionImpl::UpdateGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateGateway", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apigateway::v1::Gateway>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::apigateway::v1::Gateway>, + polling_policy(*current), __func__); +} + future> ApiGatewayServiceConnectionImpl::DeleteGateway( google::cloud::apigateway::v1::DeleteGatewayRequest const& request) { @@ -232,6 +338,60 @@ ApiGatewayServiceConnectionImpl::DeleteGateway( polling_policy(*current), __func__); } +StatusOr +ApiGatewayServiceConnectionImpl::DeleteGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteGatewayRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteGateway(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::apigateway::v1::DeleteGatewayRequest const& request) { + return stub_->DeleteGateway(context, options, request); + }, + *current, request, __func__); +} + +future> +ApiGatewayServiceConnectionImpl::DeleteGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteGateway", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apigateway::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::apigateway::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange ApiGatewayServiceConnectionImpl::ListApis( google::cloud::apigateway::v1::ListApisRequest request) { @@ -317,6 +477,58 @@ ApiGatewayServiceConnectionImpl::CreateApi( polling_policy(*current), __func__); } +StatusOr +ApiGatewayServiceConnectionImpl::CreateApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateApiRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateApi(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::apigateway::v1::CreateApiRequest const& request) { + return stub_->CreateApi(context, options, request); + }, + *current, request, __func__); +} + +future> +ApiGatewayServiceConnectionImpl::CreateApi( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateApi", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apigateway::v1::Api>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::apigateway::v1::Api>, + polling_policy(*current), __func__); +} + future> ApiGatewayServiceConnectionImpl::UpdateApi( google::cloud::apigateway::v1::UpdateApiRequest const& request) { @@ -355,6 +567,58 @@ ApiGatewayServiceConnectionImpl::UpdateApi( polling_policy(*current), __func__); } +StatusOr +ApiGatewayServiceConnectionImpl::UpdateApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateApiRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateApi(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::apigateway::v1::UpdateApiRequest const& request) { + return stub_->UpdateApi(context, options, request); + }, + *current, request, __func__); +} + +future> +ApiGatewayServiceConnectionImpl::UpdateApi( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateApi", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apigateway::v1::Api>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::apigateway::v1::Api>, + polling_policy(*current), __func__); +} + future> ApiGatewayServiceConnectionImpl::DeleteApi( google::cloud::apigateway::v1::DeleteApiRequest const& request) { @@ -393,6 +657,59 @@ ApiGatewayServiceConnectionImpl::DeleteApi( polling_policy(*current), __func__); } +StatusOr +ApiGatewayServiceConnectionImpl::DeleteApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteApiRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteApi(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::apigateway::v1::DeleteApiRequest const& request) { + return stub_->DeleteApi(context, options, request); + }, + *current, request, __func__); +} + +future> +ApiGatewayServiceConnectionImpl::DeleteApi( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteApi", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apigateway::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::apigateway::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange ApiGatewayServiceConnectionImpl::ListApiConfigs( google::cloud::apigateway::v1::ListApiConfigsRequest request) { @@ -482,6 +799,60 @@ ApiGatewayServiceConnectionImpl::CreateApiConfig( polling_policy(*current), __func__); } +StatusOr +ApiGatewayServiceConnectionImpl::CreateApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateApiConfigRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateApiConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::apigateway::v1::CreateApiConfigRequest const& + request) { + return stub_->CreateApiConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +ApiGatewayServiceConnectionImpl::CreateApiConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateApiConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apigateway::v1::ApiConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::apigateway::v1::ApiConfig>, + polling_policy(*current), __func__); +} + future> ApiGatewayServiceConnectionImpl::UpdateApiConfig( google::cloud::apigateway::v1::UpdateApiConfigRequest const& request) { @@ -522,6 +893,60 @@ ApiGatewayServiceConnectionImpl::UpdateApiConfig( polling_policy(*current), __func__); } +StatusOr +ApiGatewayServiceConnectionImpl::UpdateApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateApiConfigRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateApiConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::apigateway::v1::UpdateApiConfigRequest const& + request) { + return stub_->UpdateApiConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +ApiGatewayServiceConnectionImpl::UpdateApiConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateApiConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apigateway::v1::ApiConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::apigateway::v1::ApiConfig>, + polling_policy(*current), __func__); +} + future> ApiGatewayServiceConnectionImpl::DeleteApiConfig( google::cloud::apigateway::v1::DeleteApiConfigRequest const& request) { @@ -562,6 +987,60 @@ ApiGatewayServiceConnectionImpl::DeleteApiConfig( polling_policy(*current), __func__); } +StatusOr +ApiGatewayServiceConnectionImpl::DeleteApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteApiConfigRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteApiConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::apigateway::v1::DeleteApiConfigRequest const& + request) { + return stub_->DeleteApiConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +ApiGatewayServiceConnectionImpl::DeleteApiConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteApiConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apigateway::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::apigateway::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace apigateway_v1_internal } // namespace cloud diff --git a/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.h b/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.h index 240069abf5522..7844eedd33ee3 100644 --- a/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.h +++ b/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.h @@ -62,14 +62,41 @@ class ApiGatewayServiceConnectionImpl google::cloud::apigateway::v1::CreateGatewayRequest const& request) override; + StatusOr CreateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateGatewayRequest const& request) + override; + + future> CreateGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateGateway( google::cloud::apigateway::v1::UpdateGatewayRequest const& request) override; + StatusOr UpdateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateGatewayRequest const& request) + override; + + future> UpdateGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteGateway(google::cloud::apigateway::v1::DeleteGatewayRequest const& request) override; + StatusOr DeleteGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteGatewayRequest const& request) + override; + + future> + DeleteGateway(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListApis( google::cloud::apigateway::v1::ListApisRequest request) override; @@ -79,12 +106,36 @@ class ApiGatewayServiceConnectionImpl future> CreateApi( google::cloud::apigateway::v1::CreateApiRequest const& request) override; + StatusOr CreateApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateApiRequest const& request) override; + + future> CreateApi( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateApi( google::cloud::apigateway::v1::UpdateApiRequest const& request) override; + StatusOr UpdateApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateApiRequest const& request) override; + + future> UpdateApi( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteApi( google::cloud::apigateway::v1::DeleteApiRequest const& request) override; + StatusOr DeleteApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteApiRequest const& request) override; + + future> DeleteApi( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListApiConfigs( google::cloud::apigateway::v1::ListApiConfigsRequest request) override; @@ -96,14 +147,41 @@ class ApiGatewayServiceConnectionImpl google::cloud::apigateway::v1::CreateApiConfigRequest const& request) override; + StatusOr CreateApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateApiConfigRequest const& request) + override; + + future> CreateApiConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateApiConfig( google::cloud::apigateway::v1::UpdateApiConfigRequest const& request) override; + StatusOr UpdateApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateApiConfigRequest const& request) + override; + + future> UpdateApiConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteApiConfig(google::cloud::apigateway::v1::DeleteApiConfigRequest const& request) override; + StatusOr DeleteApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteApiConfigRequest const& request) + override; + + future> + DeleteApiConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.cc b/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.cc index b3b3007ef47e5..53daab7d4df4f 100644 --- a/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.cc +++ b/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.cc @@ -62,6 +62,30 @@ ApiGatewayServiceTracingConnection::CreateGateway( return internal::EndSpan(std::move(span), child_->CreateGateway(request)); } +StatusOr +ApiGatewayServiceTracingConnection::CreateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateGatewayRequest const& request) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::CreateGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateGateway(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ApiGatewayServiceTracingConnection::CreateGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::CreateGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateGateway(google::cloud::ExperimentalTag{}, operation)); +} + future> ApiGatewayServiceTracingConnection::UpdateGateway( google::cloud::apigateway::v1::UpdateGatewayRequest const& request) { @@ -71,6 +95,30 @@ ApiGatewayServiceTracingConnection::UpdateGateway( return internal::EndSpan(std::move(span), child_->UpdateGateway(request)); } +StatusOr +ApiGatewayServiceTracingConnection::UpdateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateGatewayRequest const& request) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::UpdateGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateGateway(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ApiGatewayServiceTracingConnection::UpdateGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::UpdateGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateGateway(google::cloud::ExperimentalTag{}, operation)); +} + future> ApiGatewayServiceTracingConnection::DeleteGateway( google::cloud::apigateway::v1::DeleteGatewayRequest const& request) { @@ -80,6 +128,30 @@ ApiGatewayServiceTracingConnection::DeleteGateway( return internal::EndSpan(std::move(span), child_->DeleteGateway(request)); } +StatusOr +ApiGatewayServiceTracingConnection::DeleteGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteGatewayRequest const& request) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::DeleteGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteGateway(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ApiGatewayServiceTracingConnection::DeleteGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::DeleteGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteGateway(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ApiGatewayServiceTracingConnection::ListApis( google::cloud::apigateway::v1::ListApisRequest request) { @@ -109,6 +181,30 @@ ApiGatewayServiceTracingConnection::CreateApi( return internal::EndSpan(std::move(span), child_->CreateApi(request)); } +StatusOr +ApiGatewayServiceTracingConnection::CreateApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateApiRequest const& request) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::CreateApi"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateApi(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ApiGatewayServiceTracingConnection::CreateApi( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::CreateApi"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateApi(google::cloud::ExperimentalTag{}, operation)); +} + future> ApiGatewayServiceTracingConnection::UpdateApi( google::cloud::apigateway::v1::UpdateApiRequest const& request) { @@ -118,6 +214,30 @@ ApiGatewayServiceTracingConnection::UpdateApi( return internal::EndSpan(std::move(span), child_->UpdateApi(request)); } +StatusOr +ApiGatewayServiceTracingConnection::UpdateApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateApiRequest const& request) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::UpdateApi"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateApi(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ApiGatewayServiceTracingConnection::UpdateApi( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::UpdateApi"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateApi(google::cloud::ExperimentalTag{}, operation)); +} + future> ApiGatewayServiceTracingConnection::DeleteApi( google::cloud::apigateway::v1::DeleteApiRequest const& request) { @@ -127,6 +247,30 @@ ApiGatewayServiceTracingConnection::DeleteApi( return internal::EndSpan(std::move(span), child_->DeleteApi(request)); } +StatusOr +ApiGatewayServiceTracingConnection::DeleteApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteApiRequest const& request) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::DeleteApi"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteApi(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ApiGatewayServiceTracingConnection::DeleteApi( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::DeleteApi"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteApi(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ApiGatewayServiceTracingConnection::ListApiConfigs( google::cloud::apigateway::v1::ListApiConfigsRequest request) { @@ -156,6 +300,30 @@ ApiGatewayServiceTracingConnection::CreateApiConfig( return internal::EndSpan(std::move(span), child_->CreateApiConfig(request)); } +StatusOr +ApiGatewayServiceTracingConnection::CreateApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateApiConfigRequest const& request) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::CreateApiConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateApiConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ApiGatewayServiceTracingConnection::CreateApiConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::CreateApiConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateApiConfig(google::cloud::ExperimentalTag{}, operation)); +} + future> ApiGatewayServiceTracingConnection::UpdateApiConfig( google::cloud::apigateway::v1::UpdateApiConfigRequest const& request) { @@ -165,6 +333,30 @@ ApiGatewayServiceTracingConnection::UpdateApiConfig( return internal::EndSpan(std::move(span), child_->UpdateApiConfig(request)); } +StatusOr +ApiGatewayServiceTracingConnection::UpdateApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateApiConfigRequest const& request) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::UpdateApiConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateApiConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ApiGatewayServiceTracingConnection::UpdateApiConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::UpdateApiConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateApiConfig(google::cloud::ExperimentalTag{}, operation)); +} + future> ApiGatewayServiceTracingConnection::DeleteApiConfig( google::cloud::apigateway::v1::DeleteApiConfigRequest const& request) { @@ -174,6 +366,30 @@ ApiGatewayServiceTracingConnection::DeleteApiConfig( return internal::EndSpan(std::move(span), child_->DeleteApiConfig(request)); } +StatusOr +ApiGatewayServiceTracingConnection::DeleteApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteApiConfigRequest const& request) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::DeleteApiConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteApiConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ApiGatewayServiceTracingConnection::DeleteApiConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "apigateway_v1::ApiGatewayServiceConnection::DeleteApiConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteApiConfig(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.h b/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.h index e03bdcf8dfbc0..712635da6db9d 100644 --- a/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.h +++ b/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.h @@ -50,14 +50,41 @@ class ApiGatewayServiceTracingConnection google::cloud::apigateway::v1::CreateGatewayRequest const& request) override; + StatusOr CreateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateGatewayRequest const& request) + override; + + future> CreateGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateGateway( google::cloud::apigateway::v1::UpdateGatewayRequest const& request) override; + StatusOr UpdateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateGatewayRequest const& request) + override; + + future> UpdateGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteGateway(google::cloud::apigateway::v1::DeleteGatewayRequest const& request) override; + StatusOr DeleteGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteGatewayRequest const& request) + override; + + future> + DeleteGateway(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListApis( google::cloud::apigateway::v1::ListApisRequest request) override; @@ -67,12 +94,36 @@ class ApiGatewayServiceTracingConnection future> CreateApi( google::cloud::apigateway::v1::CreateApiRequest const& request) override; + StatusOr CreateApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateApiRequest const& request) override; + + future> CreateApi( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateApi( google::cloud::apigateway::v1::UpdateApiRequest const& request) override; + StatusOr UpdateApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateApiRequest const& request) override; + + future> UpdateApi( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteApi( google::cloud::apigateway::v1::DeleteApiRequest const& request) override; + StatusOr DeleteApi( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteApiRequest const& request) override; + + future> DeleteApi( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListApiConfigs( google::cloud::apigateway::v1::ListApiConfigsRequest request) override; @@ -84,14 +135,41 @@ class ApiGatewayServiceTracingConnection google::cloud::apigateway::v1::CreateApiConfigRequest const& request) override; + StatusOr CreateApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateApiConfigRequest const& request) + override; + + future> CreateApiConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateApiConfig( google::cloud::apigateway::v1::UpdateApiConfigRequest const& request) override; + StatusOr UpdateApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateApiConfigRequest const& request) + override; + + future> UpdateApiConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteApiConfig(google::cloud::apigateway::v1::DeleteApiConfigRequest const& request) override; + StatusOr DeleteApiConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteApiConfigRequest const& request) + override; + + future> + DeleteApiConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/apigateway/v1/mocks/mock_api_gateway_connection.h b/google/cloud/apigateway/v1/mocks/mock_api_gateway_connection.h index 47c210116fee2..361dd15e1fcf2 100644 --- a/google/cloud/apigateway/v1/mocks/mock_api_gateway_connection.h +++ b/google/cloud/apigateway/v1/mocks/mock_api_gateway_connection.h @@ -61,17 +61,54 @@ class MockApiGatewayServiceConnection (google::cloud::apigateway::v1::CreateGatewayRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateGateway, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateGatewayRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateGateway, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateGateway, (google::cloud::apigateway::v1::UpdateGatewayRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateGateway, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateGatewayRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateGateway, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteGateway, (google::cloud::apigateway::v1::DeleteGatewayRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteGateway, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteGatewayRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteGateway, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListApis, (google::cloud::apigateway::v1::ListApisRequest request), (override)); @@ -84,16 +121,48 @@ class MockApiGatewayServiceConnection (google::cloud::apigateway::v1::CreateApiRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateApi, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateApiRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateApi, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateApi, (google::cloud::apigateway::v1::UpdateApiRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateApi, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateApiRequest const& request), + (override)); + + MOCK_METHOD(future>, UpdateApi, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteApi, (google::cloud::apigateway::v1::DeleteApiRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteApi, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteApiRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteApi, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListApiConfigs, (google::cloud::apigateway::v1::ListApiConfigsRequest request), @@ -110,17 +179,54 @@ class MockApiGatewayServiceConnection (google::cloud::apigateway::v1::CreateApiConfigRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateApiConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::CreateApiConfigRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateApiConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateApiConfig, (google::cloud::apigateway::v1::UpdateApiConfigRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateApiConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::UpdateApiConfigRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateApiConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteApiConfig, (google::cloud::apigateway::v1::DeleteApiConfigRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteApiConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apigateway::v1::DeleteApiConfigRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteApiConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/apigeeconnect/v1/connection_connection.h b/google/cloud/apigeeconnect/v1/connection_connection.h index 506e345332ec4..e789480268da0 100644 --- a/google/cloud/apigeeconnect/v1/connection_connection.h +++ b/google/cloud/apigeeconnect/v1/connection_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/apigeeconnect/v1/connection_connection_idempotency_policy.h" #include "google/cloud/apigeeconnect/v1/internal/connection_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/apikeys/v2/api_keys_connection.cc b/google/cloud/apikeys/v2/api_keys_connection.cc index 46595c72767fb..dfbd225e03425 100644 --- a/google/cloud/apikeys/v2/api_keys_connection.cc +++ b/google/cloud/apikeys/v2/api_keys_connection.cc @@ -45,6 +45,20 @@ future> ApiKeysConnection::CreateKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ApiKeysConnection::CreateKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::CreateKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> ApiKeysConnection::CreateKey( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ApiKeysConnection::ListKeys( google::api::apikeys::v2:: ListKeysRequest) { // NOLINT(performance-unnecessary-value-param) @@ -70,6 +84,20 @@ future> ApiKeysConnection::UpdateKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ApiKeysConnection::UpdateKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::UpdateKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> ApiKeysConnection::UpdateKey( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ApiKeysConnection::DeleteKey( google::api::apikeys::v2::DeleteKeyRequest const&) { return google::cloud::make_ready_future< @@ -77,6 +105,20 @@ future> ApiKeysConnection::DeleteKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ApiKeysConnection::DeleteKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::DeleteKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> ApiKeysConnection::DeleteKey( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ApiKeysConnection::UndeleteKey( google::api::apikeys::v2::UndeleteKeyRequest const&) { return google::cloud::make_ready_future< @@ -84,6 +126,20 @@ future> ApiKeysConnection::UndeleteKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ApiKeysConnection::UndeleteKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::UndeleteKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> ApiKeysConnection::UndeleteKey( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ApiKeysConnection::LookupKey( google::api::apikeys::v2::LookupKeyRequest const&) { diff --git a/google/cloud/apikeys/v2/api_keys_connection.h b/google/cloud/apikeys/v2/api_keys_connection.h index 54ef31369b267..d0d0e293d4cd6 100644 --- a/google/cloud/apikeys/v2/api_keys_connection.h +++ b/google/cloud/apikeys/v2/api_keys_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/apikeys/v2/api_keys_connection_idempotency_policy.h" #include "google/cloud/apikeys/v2/internal/api_keys_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -185,6 +187,14 @@ class ApiKeysConnection { virtual future> CreateKey( google::api::apikeys::v2::CreateKeyRequest const& request); + virtual StatusOr CreateKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::CreateKeyRequest const& request); + + virtual future> CreateKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListKeys( google::api::apikeys::v2::ListKeysRequest request); @@ -197,12 +207,36 @@ class ApiKeysConnection { virtual future> UpdateKey( google::api::apikeys::v2::UpdateKeyRequest const& request); + virtual StatusOr UpdateKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::UpdateKeyRequest const& request); + + virtual future> UpdateKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteKey( google::api::apikeys::v2::DeleteKeyRequest const& request); + virtual StatusOr DeleteKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::DeleteKeyRequest const& request); + + virtual future> DeleteKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UndeleteKey( google::api::apikeys::v2::UndeleteKeyRequest const& request); + virtual StatusOr UndeleteKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::UndeleteKeyRequest const& request); + + virtual future> UndeleteKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr LookupKey( google::api::apikeys::v2::LookupKeyRequest const& request); }; diff --git a/google/cloud/apikeys/v2/internal/api_keys_connection_impl.cc b/google/cloud/apikeys/v2/internal/api_keys_connection_impl.cc index 888f092ab9d05..a50c8cea90d9f 100644 --- a/google/cloud/apikeys/v2/internal/api_keys_connection_impl.cc +++ b/google/cloud/apikeys/v2/internal/api_keys_connection_impl.cc @@ -100,6 +100,56 @@ ApiKeysConnectionImpl::CreateKey( polling_policy(*current), __func__); } +StatusOr ApiKeysConnectionImpl::CreateKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::CreateKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateKey(request), + [this](grpc::ClientContext& context, Options const& options, + google::api::apikeys::v2::CreateKeyRequest const& request) { + return stub_->CreateKey(context, options, request); + }, + *current, request, __func__); +} + +future> +ApiKeysConnectionImpl::CreateKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateKey", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::api::apikeys::v2::Key>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::api::apikeys::v2::Key>, + polling_policy(*current), __func__); +} + StreamRange ApiKeysConnectionImpl::ListKeys( google::api::apikeys::v2::ListKeysRequest request) { request.clear_page_token(); @@ -196,6 +246,56 @@ ApiKeysConnectionImpl::UpdateKey( polling_policy(*current), __func__); } +StatusOr ApiKeysConnectionImpl::UpdateKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::UpdateKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateKey(request), + [this](grpc::ClientContext& context, Options const& options, + google::api::apikeys::v2::UpdateKeyRequest const& request) { + return stub_->UpdateKey(context, options, request); + }, + *current, request, __func__); +} + +future> +ApiKeysConnectionImpl::UpdateKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateKey", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::api::apikeys::v2::Key>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::api::apikeys::v2::Key>, + polling_policy(*current), __func__); +} + future> ApiKeysConnectionImpl::DeleteKey( google::api::apikeys::v2::DeleteKeyRequest const& request) { @@ -234,6 +334,56 @@ ApiKeysConnectionImpl::DeleteKey( polling_policy(*current), __func__); } +StatusOr ApiKeysConnectionImpl::DeleteKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::DeleteKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteKey(request), + [this](grpc::ClientContext& context, Options const& options, + google::api::apikeys::v2::DeleteKeyRequest const& request) { + return stub_->DeleteKey(context, options, request); + }, + *current, request, __func__); +} + +future> +ApiKeysConnectionImpl::DeleteKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteKey", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::api::apikeys::v2::Key>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::api::apikeys::v2::Key>, + polling_policy(*current), __func__); +} + future> ApiKeysConnectionImpl::UndeleteKey( google::api::apikeys::v2::UndeleteKeyRequest const& request) { @@ -273,6 +423,56 @@ ApiKeysConnectionImpl::UndeleteKey( polling_policy(*current), __func__); } +StatusOr ApiKeysConnectionImpl::UndeleteKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::UndeleteKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UndeleteKey(request), + [this](grpc::ClientContext& context, Options const& options, + google::api::apikeys::v2::UndeleteKeyRequest const& request) { + return stub_->UndeleteKey(context, options, request); + }, + *current, request, __func__); +} + +future> +ApiKeysConnectionImpl::UndeleteKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UndeleteKey", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::api::apikeys::v2::Key>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::api::apikeys::v2::Key>, + polling_policy(*current), __func__); +} + StatusOr ApiKeysConnectionImpl::LookupKey( google::api::apikeys::v2::LookupKeyRequest const& request) { diff --git a/google/cloud/apikeys/v2/internal/api_keys_connection_impl.h b/google/cloud/apikeys/v2/internal/api_keys_connection_impl.h index 10642f83582bb..d58e3546c85c5 100644 --- a/google/cloud/apikeys/v2/internal/api_keys_connection_impl.h +++ b/google/cloud/apikeys/v2/internal/api_keys_connection_impl.h @@ -53,6 +53,14 @@ class ApiKeysConnectionImpl : public apikeys_v2::ApiKeysConnection { future> CreateKey( google::api::apikeys::v2::CreateKeyRequest const& request) override; + StatusOr CreateKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::CreateKeyRequest const& request) override; + + future> CreateKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListKeys( google::api::apikeys::v2::ListKeysRequest request) override; @@ -65,12 +73,36 @@ class ApiKeysConnectionImpl : public apikeys_v2::ApiKeysConnection { future> UpdateKey( google::api::apikeys::v2::UpdateKeyRequest const& request) override; + StatusOr UpdateKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::UpdateKeyRequest const& request) override; + + future> UpdateKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteKey( google::api::apikeys::v2::DeleteKeyRequest const& request) override; + StatusOr DeleteKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::DeleteKeyRequest const& request) override; + + future> DeleteKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeleteKey( google::api::apikeys::v2::UndeleteKeyRequest const& request) override; + StatusOr UndeleteKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::UndeleteKeyRequest const& request) override; + + future> UndeleteKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr LookupKey( google::api::apikeys::v2::LookupKeyRequest const& request) override; diff --git a/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.cc b/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.cc index 0d20ce22664d5..90b92c03ccf48 100644 --- a/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.cc +++ b/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.cc @@ -41,6 +41,27 @@ ApiKeysTracingConnection::CreateKey( return internal::EndSpan(std::move(span), child_->CreateKey(request)); } +StatusOr ApiKeysTracingConnection::CreateKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::CreateKeyRequest const& request) { + auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::CreateKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateKey(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ApiKeysTracingConnection::CreateKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::CreateKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateKey(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ApiKeysTracingConnection::ListKeys( google::api::apikeys::v2::ListKeysRequest request) { auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::ListKeys"); @@ -73,6 +94,27 @@ ApiKeysTracingConnection::UpdateKey( return internal::EndSpan(std::move(span), child_->UpdateKey(request)); } +StatusOr ApiKeysTracingConnection::UpdateKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::UpdateKeyRequest const& request) { + auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::UpdateKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateKey(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ApiKeysTracingConnection::UpdateKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::UpdateKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateKey(google::cloud::ExperimentalTag{}, operation)); +} + future> ApiKeysTracingConnection::DeleteKey( google::api::apikeys::v2::DeleteKeyRequest const& request) { @@ -81,6 +123,27 @@ ApiKeysTracingConnection::DeleteKey( return internal::EndSpan(std::move(span), child_->DeleteKey(request)); } +StatusOr ApiKeysTracingConnection::DeleteKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::DeleteKeyRequest const& request) { + auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::DeleteKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteKey(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ApiKeysTracingConnection::DeleteKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::DeleteKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteKey(google::cloud::ExperimentalTag{}, operation)); +} + future> ApiKeysTracingConnection::UndeleteKey( google::api::apikeys::v2::UndeleteKeyRequest const& request) { @@ -89,6 +152,27 @@ ApiKeysTracingConnection::UndeleteKey( return internal::EndSpan(std::move(span), child_->UndeleteKey(request)); } +StatusOr ApiKeysTracingConnection::UndeleteKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::UndeleteKeyRequest const& request) { + auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::UndeleteKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UndeleteKey(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ApiKeysTracingConnection::UndeleteKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::UndeleteKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UndeleteKey(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ApiKeysTracingConnection::LookupKey( google::api::apikeys::v2::LookupKeyRequest const& request) { diff --git a/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.h b/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.h index 196015aa54fb1..7c18ff4c74e98 100644 --- a/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.h +++ b/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.h @@ -42,6 +42,14 @@ class ApiKeysTracingConnection : public apikeys_v2::ApiKeysConnection { future> CreateKey( google::api::apikeys::v2::CreateKeyRequest const& request) override; + StatusOr CreateKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::CreateKeyRequest const& request) override; + + future> CreateKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListKeys( google::api::apikeys::v2::ListKeysRequest request) override; @@ -54,12 +62,36 @@ class ApiKeysTracingConnection : public apikeys_v2::ApiKeysConnection { future> UpdateKey( google::api::apikeys::v2::UpdateKeyRequest const& request) override; + StatusOr UpdateKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::UpdateKeyRequest const& request) override; + + future> UpdateKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteKey( google::api::apikeys::v2::DeleteKeyRequest const& request) override; + StatusOr DeleteKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::DeleteKeyRequest const& request) override; + + future> DeleteKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeleteKey( google::api::apikeys::v2::UndeleteKeyRequest const& request) override; + StatusOr UndeleteKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::UndeleteKeyRequest const& request) override; + + future> UndeleteKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr LookupKey( google::api::apikeys::v2::LookupKeyRequest const& request) override; diff --git a/google/cloud/apikeys/v2/mocks/mock_api_keys_connection.h b/google/cloud/apikeys/v2/mocks/mock_api_keys_connection.h index 1968535dcdbc2..ed5e449665477 100644 --- a/google/cloud/apikeys/v2/mocks/mock_api_keys_connection.h +++ b/google/cloud/apikeys/v2/mocks/mock_api_keys_connection.h @@ -50,6 +50,16 @@ class MockApiKeysConnection : public apikeys_v2::ApiKeysConnection { (google::api::apikeys::v2::CreateKeyRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::CreateKeyRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateKey, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListKeys, (google::api::apikeys::v2::ListKeysRequest request), (override)); @@ -66,14 +76,44 @@ class MockApiKeysConnection : public apikeys_v2::ApiKeysConnection { (google::api::apikeys::v2::UpdateKeyRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::UpdateKeyRequest const& request), + (override)); + + MOCK_METHOD(future>, UpdateKey, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteKey, (google::api::apikeys::v2::DeleteKeyRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::DeleteKeyRequest const& request), + (override)); + + MOCK_METHOD(future>, DeleteKey, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UndeleteKey, (google::api::apikeys::v2::UndeleteKeyRequest const& request), (override)); + MOCK_METHOD(StatusOr, UndeleteKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::apikeys::v2::UndeleteKeyRequest const& request), + (override)); + + MOCK_METHOD(future>, UndeleteKey, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, LookupKey, (google::api::apikeys::v2::LookupKeyRequest const& request), (override)); diff --git a/google/cloud/appengine/v1/applications_connection.cc b/google/cloud/appengine/v1/applications_connection.cc index 033a157ddaea4..928105c517a34 100644 --- a/google/cloud/appengine/v1/applications_connection.cc +++ b/google/cloud/appengine/v1/applications_connection.cc @@ -51,6 +51,22 @@ ApplicationsConnection::CreateApplication( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ApplicationsConnection::CreateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateApplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ApplicationsConnection::CreateApplication( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ApplicationsConnection::UpdateApplication( google::appengine::v1::UpdateApplicationRequest const&) { @@ -59,6 +75,22 @@ ApplicationsConnection::UpdateApplication( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ApplicationsConnection::UpdateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateApplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ApplicationsConnection::UpdateApplication( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ApplicationsConnection::RepairApplication( google::appengine::v1::RepairApplicationRequest const&) { @@ -67,6 +99,22 @@ ApplicationsConnection::RepairApplication( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ApplicationsConnection::RepairApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::RepairApplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ApplicationsConnection::RepairApplication( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeApplicationsConnection( Options options) { internal::CheckExpectedOptions CreateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateApplicationRequest const& request); + + virtual future> + CreateApplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateApplication( google::appengine::v1::UpdateApplicationRequest const& request); + virtual StatusOr UpdateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateApplicationRequest const& request); + + virtual future> + UpdateApplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RepairApplication( google::appengine::v1::RepairApplicationRequest const& request); + + virtual StatusOr RepairApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::RepairApplicationRequest const& request); + + virtual future> + RepairApplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/appengine/v1/authorized_certificates_connection.h b/google/cloud/appengine/v1/authorized_certificates_connection.h index bd2cbfdd1f457..8f570e64cbea9 100644 --- a/google/cloud/appengine/v1/authorized_certificates_connection.h +++ b/google/cloud/appengine/v1/authorized_certificates_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/appengine/v1/authorized_certificates_connection_idempotency_policy.h" #include "google/cloud/appengine/v1/internal/authorized_certificates_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/appengine/v1/authorized_domains_connection.h b/google/cloud/appengine/v1/authorized_domains_connection.h index 396a0235da93f..43fa743b6b47e 100644 --- a/google/cloud/appengine/v1/authorized_domains_connection.h +++ b/google/cloud/appengine/v1/authorized_domains_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/appengine/v1/authorized_domains_connection_idempotency_policy.h" #include "google/cloud/appengine/v1/internal/authorized_domains_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/appengine/v1/domain_mappings_connection.cc b/google/cloud/appengine/v1/domain_mappings_connection.cc index 4dbed3204bd20..1c57ae3789970 100644 --- a/google/cloud/appengine/v1/domain_mappings_connection.cc +++ b/google/cloud/appengine/v1/domain_mappings_connection.cc @@ -60,6 +60,22 @@ DomainMappingsConnection::CreateDomainMapping( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DomainMappingsConnection::CreateDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateDomainMappingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DomainMappingsConnection::CreateDomainMapping( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DomainMappingsConnection::UpdateDomainMapping( google::appengine::v1::UpdateDomainMappingRequest const&) { @@ -68,6 +84,22 @@ DomainMappingsConnection::UpdateDomainMapping( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DomainMappingsConnection::UpdateDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateDomainMappingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DomainMappingsConnection::UpdateDomainMapping( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DomainMappingsConnection::DeleteDomainMapping( google::appengine::v1::DeleteDomainMappingRequest const&) { @@ -76,6 +108,22 @@ DomainMappingsConnection::DeleteDomainMapping( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DomainMappingsConnection::DeleteDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteDomainMappingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DomainMappingsConnection::DeleteDomainMapping( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeDomainMappingsConnection( Options options) { internal::CheckExpectedOptions CreateDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateDomainMappingRequest const& request); + + virtual future> + CreateDomainMapping(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateDomainMapping( google::appengine::v1::UpdateDomainMappingRequest const& request); + virtual StatusOr UpdateDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateDomainMappingRequest const& request); + + virtual future> + UpdateDomainMapping(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteDomainMapping( google::appengine::v1::DeleteDomainMappingRequest const& request); + + virtual StatusOr DeleteDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteDomainMappingRequest const& request); + + virtual future> + DeleteDomainMapping(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/appengine/v1/firewall_connection.h b/google/cloud/appengine/v1/firewall_connection.h index 63d558a56d152..bc66f9adef24a 100644 --- a/google/cloud/appengine/v1/firewall_connection.h +++ b/google/cloud/appengine/v1/firewall_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/appengine/v1/firewall_connection_idempotency_policy.h" #include "google/cloud/appengine/v1/internal/firewall_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/appengine/v1/instances_connection.cc b/google/cloud/appengine/v1/instances_connection.cc index 7bb69cde4ba7d..eb93b56562ec7 100644 --- a/google/cloud/appengine/v1/instances_connection.cc +++ b/google/cloud/appengine/v1/instances_connection.cc @@ -58,6 +58,21 @@ InstancesConnection::DeleteInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr InstancesConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::DebugInstance( google::appengine::v1::DebugInstanceRequest const&) { @@ -66,6 +81,21 @@ InstancesConnection::DebugInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr InstancesConnection::DebugInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DebugInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::DebugInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeInstancesConnection(Options options) { internal::CheckExpectedOptions> DeleteInstance(google::appengine::v1::DeleteInstanceRequest const& request); + virtual StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteInstanceRequest const& request); + + virtual future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DebugInstance( google::appengine::v1::DebugInstanceRequest const& request); + + virtual StatusOr DebugInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DebugInstanceRequest const& request); + + virtual future> DebugInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/appengine/v1/internal/applications_connection_impl.cc b/google/cloud/appengine/v1/internal/applications_connection_impl.cc index 062d3621d18d4..43cb344a4720c 100644 --- a/google/cloud/appengine/v1/internal/applications_connection_impl.cc +++ b/google/cloud/appengine/v1/internal/applications_connection_impl.cc @@ -116,6 +116,58 @@ ApplicationsConnectionImpl::CreateApplication( polling_policy(*current), __func__); } +StatusOr +ApplicationsConnectionImpl::CreateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateApplicationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateApplication(request), + [this](grpc::ClientContext& context, Options const& options, + google::appengine::v1::CreateApplicationRequest const& request) { + return stub_->CreateApplication(context, options, request); + }, + *current, request, __func__); +} + +future> +ApplicationsConnectionImpl::CreateApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateApplication", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::appengine::v1::Application>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::appengine::v1::Application>, + polling_policy(*current), __func__); +} + future> ApplicationsConnectionImpl::UpdateApplication( google::appengine::v1::UpdateApplicationRequest const& request) { @@ -155,6 +207,58 @@ ApplicationsConnectionImpl::UpdateApplication( polling_policy(*current), __func__); } +StatusOr +ApplicationsConnectionImpl::UpdateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateApplicationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateApplication(request), + [this](grpc::ClientContext& context, Options const& options, + google::appengine::v1::UpdateApplicationRequest const& request) { + return stub_->UpdateApplication(context, options, request); + }, + *current, request, __func__); +} + +future> +ApplicationsConnectionImpl::UpdateApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateApplication", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::appengine::v1::Application>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::appengine::v1::Application>, + polling_policy(*current), __func__); +} + future> ApplicationsConnectionImpl::RepairApplication( google::appengine::v1::RepairApplicationRequest const& request) { @@ -194,6 +298,58 @@ ApplicationsConnectionImpl::RepairApplication( polling_policy(*current), __func__); } +StatusOr +ApplicationsConnectionImpl::RepairApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::RepairApplicationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RepairApplication(request), + [this](grpc::ClientContext& context, Options const& options, + google::appengine::v1::RepairApplicationRequest const& request) { + return stub_->RepairApplication(context, options, request); + }, + *current, request, __func__); +} + +future> +ApplicationsConnectionImpl::RepairApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RepairApplication", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::appengine::v1::Application>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::appengine::v1::Application>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace appengine_v1_internal } // namespace cloud diff --git a/google/cloud/appengine/v1/internal/applications_connection_impl.h b/google/cloud/appengine/v1/internal/applications_connection_impl.h index b5b8832095e71..d1f5b92b84082 100644 --- a/google/cloud/appengine/v1/internal/applications_connection_impl.h +++ b/google/cloud/appengine/v1/internal/applications_connection_impl.h @@ -56,12 +56,36 @@ class ApplicationsConnectionImpl : public appengine_v1::ApplicationsConnection { future> CreateApplication( google::appengine::v1::CreateApplicationRequest const& request) override; + StatusOr CreateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateApplicationRequest const& request) override; + + future> CreateApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateApplication( google::appengine::v1::UpdateApplicationRequest const& request) override; + StatusOr UpdateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateApplicationRequest const& request) override; + + future> UpdateApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RepairApplication( google::appengine::v1::RepairApplicationRequest const& request) override; + StatusOr RepairApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::RepairApplicationRequest const& request) override; + + future> RepairApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/appengine/v1/internal/applications_tracing_connection.cc b/google/cloud/appengine/v1/internal/applications_tracing_connection.cc index de4a0b550f290..55e5a887aa642 100644 --- a/google/cloud/appengine/v1/internal/applications_tracing_connection.cc +++ b/google/cloud/appengine/v1/internal/applications_tracing_connection.cc @@ -50,6 +50,30 @@ ApplicationsTracingConnection::CreateApplication( return internal::EndSpan(std::move(span), child_->CreateApplication(request)); } +StatusOr +ApplicationsTracingConnection::CreateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateApplicationRequest const& request) { + auto span = internal::MakeSpan( + "appengine_v1::ApplicationsConnection::CreateApplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateApplication(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ApplicationsTracingConnection::CreateApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "appengine_v1::ApplicationsConnection::CreateApplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateApplication(google::cloud::ExperimentalTag{}, operation)); +} + future> ApplicationsTracingConnection::UpdateApplication( google::appengine::v1::UpdateApplicationRequest const& request) { @@ -59,6 +83,30 @@ ApplicationsTracingConnection::UpdateApplication( return internal::EndSpan(std::move(span), child_->UpdateApplication(request)); } +StatusOr +ApplicationsTracingConnection::UpdateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateApplicationRequest const& request) { + auto span = internal::MakeSpan( + "appengine_v1::ApplicationsConnection::UpdateApplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateApplication(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ApplicationsTracingConnection::UpdateApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "appengine_v1::ApplicationsConnection::UpdateApplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateApplication(google::cloud::ExperimentalTag{}, operation)); +} + future> ApplicationsTracingConnection::RepairApplication( google::appengine::v1::RepairApplicationRequest const& request) { @@ -68,6 +116,30 @@ ApplicationsTracingConnection::RepairApplication( return internal::EndSpan(std::move(span), child_->RepairApplication(request)); } +StatusOr +ApplicationsTracingConnection::RepairApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::RepairApplicationRequest const& request) { + auto span = internal::MakeSpan( + "appengine_v1::ApplicationsConnection::RepairApplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RepairApplication(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ApplicationsTracingConnection::RepairApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "appengine_v1::ApplicationsConnection::RepairApplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RepairApplication(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/appengine/v1/internal/applications_tracing_connection.h b/google/cloud/appengine/v1/internal/applications_tracing_connection.h index c44b687b42dcb..b7876488de269 100644 --- a/google/cloud/appengine/v1/internal/applications_tracing_connection.h +++ b/google/cloud/appengine/v1/internal/applications_tracing_connection.h @@ -46,12 +46,36 @@ class ApplicationsTracingConnection future> CreateApplication( google::appengine::v1::CreateApplicationRequest const& request) override; + StatusOr CreateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateApplicationRequest const& request) override; + + future> CreateApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateApplication( google::appengine::v1::UpdateApplicationRequest const& request) override; + StatusOr UpdateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateApplicationRequest const& request) override; + + future> UpdateApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RepairApplication( google::appengine::v1::RepairApplicationRequest const& request) override; + StatusOr RepairApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::RepairApplicationRequest const& request) override; + + future> RepairApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.cc b/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.cc index ff85020ff62d8..5a7326ebab960 100644 --- a/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.cc +++ b/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.cc @@ -153,6 +153,58 @@ DomainMappingsConnectionImpl::CreateDomainMapping( polling_policy(*current), __func__); } +StatusOr +DomainMappingsConnectionImpl::CreateDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateDomainMappingRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDomainMapping(request), + [this](grpc::ClientContext& context, Options const& options, + google::appengine::v1::CreateDomainMappingRequest const& request) { + return stub_->CreateDomainMapping(context, options, request); + }, + *current, request, __func__); +} + +future> +DomainMappingsConnectionImpl::CreateDomainMapping( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDomainMapping", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::appengine::v1::DomainMapping>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::appengine::v1::DomainMapping>, + polling_policy(*current), __func__); +} + future> DomainMappingsConnectionImpl::UpdateDomainMapping( google::appengine::v1::UpdateDomainMappingRequest const& request) { @@ -192,6 +244,58 @@ DomainMappingsConnectionImpl::UpdateDomainMapping( polling_policy(*current), __func__); } +StatusOr +DomainMappingsConnectionImpl::UpdateDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateDomainMappingRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDomainMapping(request), + [this](grpc::ClientContext& context, Options const& options, + google::appengine::v1::UpdateDomainMappingRequest const& request) { + return stub_->UpdateDomainMapping(context, options, request); + }, + *current, request, __func__); +} + +future> +DomainMappingsConnectionImpl::UpdateDomainMapping( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateDomainMapping", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::appengine::v1::DomainMapping>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::appengine::v1::DomainMapping>, + polling_policy(*current), __func__); +} + future> DomainMappingsConnectionImpl::DeleteDomainMapping( google::appengine::v1::DeleteDomainMappingRequest const& request) { @@ -231,6 +335,59 @@ DomainMappingsConnectionImpl::DeleteDomainMapping( polling_policy(*current), __func__); } +StatusOr +DomainMappingsConnectionImpl::DeleteDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteDomainMappingRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDomainMapping(request), + [this](grpc::ClientContext& context, Options const& options, + google::appengine::v1::DeleteDomainMappingRequest const& request) { + return stub_->DeleteDomainMapping(context, options, request); + }, + *current, request, __func__); +} + +future> +DomainMappingsConnectionImpl::DeleteDomainMapping( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDomainMapping", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::appengine::v1::OperationMetadataV1>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::appengine::v1::OperationMetadataV1>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace appengine_v1_internal } // namespace cloud diff --git a/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.h b/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.h index 213d6f9e52022..69709821434e6 100644 --- a/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.h +++ b/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.h @@ -62,14 +62,41 @@ class DomainMappingsConnectionImpl google::appengine::v1::CreateDomainMappingRequest const& request) override; + StatusOr CreateDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateDomainMappingRequest const& request) + override; + + future> CreateDomainMapping( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDomainMapping( google::appengine::v1::UpdateDomainMappingRequest const& request) override; + StatusOr UpdateDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateDomainMappingRequest const& request) + override; + + future> UpdateDomainMapping( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDomainMapping(google::appengine::v1::DeleteDomainMappingRequest const& request) override; + StatusOr DeleteDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteDomainMappingRequest const& request) + override; + + future> + DeleteDomainMapping(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.cc b/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.cc index 5a000f0594713..c26a672544ec9 100644 --- a/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.cc +++ b/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.cc @@ -63,6 +63,30 @@ DomainMappingsTracingConnection::CreateDomainMapping( child_->CreateDomainMapping(request)); } +StatusOr +DomainMappingsTracingConnection::CreateDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateDomainMappingRequest const& request) { + auto span = internal::MakeSpan( + "appengine_v1::DomainMappingsConnection::CreateDomainMapping"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateDomainMapping(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DomainMappingsTracingConnection::CreateDomainMapping( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "appengine_v1::DomainMappingsConnection::CreateDomainMapping"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateDomainMapping(google::cloud::ExperimentalTag{}, operation)); +} + future> DomainMappingsTracingConnection::UpdateDomainMapping( google::appengine::v1::UpdateDomainMappingRequest const& request) { @@ -73,6 +97,30 @@ DomainMappingsTracingConnection::UpdateDomainMapping( child_->UpdateDomainMapping(request)); } +StatusOr +DomainMappingsTracingConnection::UpdateDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateDomainMappingRequest const& request) { + auto span = internal::MakeSpan( + "appengine_v1::DomainMappingsConnection::UpdateDomainMapping"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateDomainMapping(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DomainMappingsTracingConnection::UpdateDomainMapping( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "appengine_v1::DomainMappingsConnection::UpdateDomainMapping"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateDomainMapping(google::cloud::ExperimentalTag{}, operation)); +} + future> DomainMappingsTracingConnection::DeleteDomainMapping( google::appengine::v1::DeleteDomainMappingRequest const& request) { @@ -83,6 +131,30 @@ DomainMappingsTracingConnection::DeleteDomainMapping( child_->DeleteDomainMapping(request)); } +StatusOr +DomainMappingsTracingConnection::DeleteDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteDomainMappingRequest const& request) { + auto span = internal::MakeSpan( + "appengine_v1::DomainMappingsConnection::DeleteDomainMapping"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteDomainMapping(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DomainMappingsTracingConnection::DeleteDomainMapping( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "appengine_v1::DomainMappingsConnection::DeleteDomainMapping"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteDomainMapping(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.h b/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.h index a67d4820588e9..c96a7d949379d 100644 --- a/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.h +++ b/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.h @@ -50,14 +50,41 @@ class DomainMappingsTracingConnection google::appengine::v1::CreateDomainMappingRequest const& request) override; + StatusOr CreateDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateDomainMappingRequest const& request) + override; + + future> CreateDomainMapping( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDomainMapping( google::appengine::v1::UpdateDomainMappingRequest const& request) override; + StatusOr UpdateDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateDomainMappingRequest const& request) + override; + + future> UpdateDomainMapping( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDomainMapping(google::appengine::v1::DeleteDomainMappingRequest const& request) override; + StatusOr DeleteDomainMapping( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteDomainMappingRequest const& request) + override; + + future> + DeleteDomainMapping(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/appengine/v1/internal/instances_connection_impl.cc b/google/cloud/appengine/v1/internal/instances_connection_impl.cc index 16b8ff51464a5..5ded17966a0a1 100644 --- a/google/cloud/appengine/v1/internal/instances_connection_impl.cc +++ b/google/cloud/appengine/v1/internal/instances_connection_impl.cc @@ -148,6 +148,59 @@ InstancesConnectionImpl::DeleteInstance( polling_policy(*current), __func__); } +StatusOr +InstancesConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::appengine::v1::DeleteInstanceRequest const& request) { + return stub_->DeleteInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::appengine::v1::OperationMetadataV1>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::appengine::v1::OperationMetadataV1>, + polling_policy(*current), __func__); +} + future> InstancesConnectionImpl::DebugInstance( google::appengine::v1::DebugInstanceRequest const& request) { @@ -187,6 +240,57 @@ InstancesConnectionImpl::DebugInstance( polling_policy(*current), __func__); } +StatusOr InstancesConnectionImpl::DebugInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DebugInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DebugInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::appengine::v1::DebugInstanceRequest const& request) { + return stub_->DebugInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesConnectionImpl::DebugInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DebugInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::appengine::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::appengine::v1::Instance>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace appengine_v1_internal } // namespace cloud diff --git a/google/cloud/appengine/v1/internal/instances_connection_impl.h b/google/cloud/appengine/v1/internal/instances_connection_impl.h index 1162eeb799ac9..36159a256745e 100644 --- a/google/cloud/appengine/v1/internal/instances_connection_impl.h +++ b/google/cloud/appengine/v1/internal/instances_connection_impl.h @@ -60,9 +60,25 @@ class InstancesConnectionImpl : public appengine_v1::InstancesConnection { future> DeleteInstance( google::appengine::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteInstanceRequest const& request) override; + + future> DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DebugInstance( google::appengine::v1::DebugInstanceRequest const& request) override; + StatusOr DebugInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DebugInstanceRequest const& request) override; + + future> DebugInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/appengine/v1/internal/instances_tracing_connection.cc b/google/cloud/appengine/v1/internal/instances_tracing_connection.cc index a6290564abe31..c247a67345849 100644 --- a/google/cloud/appengine/v1/internal/instances_tracing_connection.cc +++ b/google/cloud/appengine/v1/internal/instances_tracing_connection.cc @@ -62,6 +62,30 @@ InstancesTracingConnection::DeleteInstance( return internal::EndSpan(std::move(span), child_->DeleteInstance(request)); } +StatusOr +InstancesTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteInstanceRequest const& request) { + auto span = + internal::MakeSpan("appengine_v1::InstancesConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("appengine_v1::InstancesConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::DebugInstance( google::appengine::v1::DebugInstanceRequest const& request) { @@ -71,6 +95,30 @@ InstancesTracingConnection::DebugInstance( return internal::EndSpan(std::move(span), child_->DebugInstance(request)); } +StatusOr +InstancesTracingConnection::DebugInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DebugInstanceRequest const& request) { + auto span = + internal::MakeSpan("appengine_v1::InstancesConnection::DebugInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DebugInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::DebugInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("appengine_v1::InstancesConnection::DebugInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DebugInstance(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/appengine/v1/internal/instances_tracing_connection.h b/google/cloud/appengine/v1/internal/instances_tracing_connection.h index c715de3f733af..9d9251e9c12e3 100644 --- a/google/cloud/appengine/v1/internal/instances_tracing_connection.h +++ b/google/cloud/appengine/v1/internal/instances_tracing_connection.h @@ -48,9 +48,25 @@ class InstancesTracingConnection : public appengine_v1::InstancesConnection { future> DeleteInstance( google::appengine::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteInstanceRequest const& request) override; + + future> DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DebugInstance( google::appengine::v1::DebugInstanceRequest const& request) override; + StatusOr DebugInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DebugInstanceRequest const& request) override; + + future> DebugInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/appengine/v1/internal/services_connection_impl.cc b/google/cloud/appengine/v1/internal/services_connection_impl.cc index e0ed4655b6019..23d0f48d33455 100644 --- a/google/cloud/appengine/v1/internal/services_connection_impl.cc +++ b/google/cloud/appengine/v1/internal/services_connection_impl.cc @@ -146,6 +146,57 @@ ServicesConnectionImpl::UpdateService( polling_policy(*current), __func__); } +StatusOr ServicesConnectionImpl::UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateService(request), + [this](grpc::ClientContext& context, Options const& options, + google::appengine::v1::UpdateServiceRequest const& request) { + return stub_->UpdateService(context, options, request); + }, + *current, request, __func__); +} + +future> +ServicesConnectionImpl::UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::appengine::v1::Service>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::appengine::v1::Service>, + polling_policy(*current), __func__); +} + future> ServicesConnectionImpl::DeleteService( google::appengine::v1::DeleteServiceRequest const& request) { @@ -185,6 +236,58 @@ ServicesConnectionImpl::DeleteService( polling_policy(*current), __func__); } +StatusOr ServicesConnectionImpl::DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteService(request), + [this](grpc::ClientContext& context, Options const& options, + google::appengine::v1::DeleteServiceRequest const& request) { + return stub_->DeleteService(context, options, request); + }, + *current, request, __func__); +} + +future> +ServicesConnectionImpl::DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::appengine::v1::OperationMetadataV1>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::appengine::v1::OperationMetadataV1>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace appengine_v1_internal } // namespace cloud diff --git a/google/cloud/appengine/v1/internal/services_connection_impl.h b/google/cloud/appengine/v1/internal/services_connection_impl.h index 05a235598857f..fc19ee6bc5782 100644 --- a/google/cloud/appengine/v1/internal/services_connection_impl.h +++ b/google/cloud/appengine/v1/internal/services_connection_impl.h @@ -60,9 +60,25 @@ class ServicesConnectionImpl : public appengine_v1::ServicesConnection { future> UpdateService( google::appengine::v1::UpdateServiceRequest const& request) override; + StatusOr UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateServiceRequest const& request) override; + + future> UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteService( google::appengine::v1::DeleteServiceRequest const& request) override; + StatusOr DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteServiceRequest const& request) override; + + future> DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/appengine/v1/internal/services_tracing_connection.cc b/google/cloud/appengine/v1/internal/services_tracing_connection.cc index 99f9b46310715..6cf8babd233ce 100644 --- a/google/cloud/appengine/v1/internal/services_tracing_connection.cc +++ b/google/cloud/appengine/v1/internal/services_tracing_connection.cc @@ -61,6 +61,30 @@ ServicesTracingConnection::UpdateService( return internal::EndSpan(std::move(span), child_->UpdateService(request)); } +StatusOr +ServicesTracingConnection::UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateServiceRequest const& request) { + auto span = + internal::MakeSpan("appengine_v1::ServicesConnection::UpdateService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ServicesTracingConnection::UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("appengine_v1::ServicesConnection::UpdateService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateService(google::cloud::ExperimentalTag{}, operation)); +} + future> ServicesTracingConnection::DeleteService( google::appengine::v1::DeleteServiceRequest const& request) { @@ -70,6 +94,30 @@ ServicesTracingConnection::DeleteService( return internal::EndSpan(std::move(span), child_->DeleteService(request)); } +StatusOr +ServicesTracingConnection::DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteServiceRequest const& request) { + auto span = + internal::MakeSpan("appengine_v1::ServicesConnection::DeleteService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ServicesTracingConnection::DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("appengine_v1::ServicesConnection::DeleteService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteService(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr MakeServicesTracingConnection( diff --git a/google/cloud/appengine/v1/internal/services_tracing_connection.h b/google/cloud/appengine/v1/internal/services_tracing_connection.h index 69395f57f288d..e2f027332b299 100644 --- a/google/cloud/appengine/v1/internal/services_tracing_connection.h +++ b/google/cloud/appengine/v1/internal/services_tracing_connection.h @@ -48,9 +48,25 @@ class ServicesTracingConnection : public appengine_v1::ServicesConnection { future> UpdateService( google::appengine::v1::UpdateServiceRequest const& request) override; + StatusOr UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateServiceRequest const& request) override; + + future> UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteService( google::appengine::v1::DeleteServiceRequest const& request) override; + StatusOr DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteServiceRequest const& request) override; + + future> DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/appengine/v1/internal/versions_connection_impl.cc b/google/cloud/appengine/v1/internal/versions_connection_impl.cc index 7464fc84e9e4b..38e4d918e9812 100644 --- a/google/cloud/appengine/v1/internal/versions_connection_impl.cc +++ b/google/cloud/appengine/v1/internal/versions_connection_impl.cc @@ -146,6 +146,57 @@ VersionsConnectionImpl::CreateVersion( polling_policy(*current), __func__); } +StatusOr VersionsConnectionImpl::CreateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateVersionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateVersion(request), + [this](grpc::ClientContext& context, Options const& options, + google::appengine::v1::CreateVersionRequest const& request) { + return stub_->CreateVersion(context, options, request); + }, + *current, request, __func__); +} + +future> +VersionsConnectionImpl::CreateVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateVersion", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::appengine::v1::Version>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::appengine::v1::Version>, + polling_policy(*current), __func__); +} + future> VersionsConnectionImpl::UpdateVersion( google::appengine::v1::UpdateVersionRequest const& request) { @@ -185,6 +236,57 @@ VersionsConnectionImpl::UpdateVersion( polling_policy(*current), __func__); } +StatusOr VersionsConnectionImpl::UpdateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateVersionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateVersion(request), + [this](grpc::ClientContext& context, Options const& options, + google::appengine::v1::UpdateVersionRequest const& request) { + return stub_->UpdateVersion(context, options, request); + }, + *current, request, __func__); +} + +future> +VersionsConnectionImpl::UpdateVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateVersion", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::appengine::v1::Version>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::appengine::v1::Version>, + polling_policy(*current), __func__); +} + future> VersionsConnectionImpl::DeleteVersion( google::appengine::v1::DeleteVersionRequest const& request) { @@ -224,6 +326,58 @@ VersionsConnectionImpl::DeleteVersion( polling_policy(*current), __func__); } +StatusOr VersionsConnectionImpl::DeleteVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteVersionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteVersion(request), + [this](grpc::ClientContext& context, Options const& options, + google::appengine::v1::DeleteVersionRequest const& request) { + return stub_->DeleteVersion(context, options, request); + }, + *current, request, __func__); +} + +future> +VersionsConnectionImpl::DeleteVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteVersion", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::appengine::v1::OperationMetadataV1>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::appengine::v1::OperationMetadataV1>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace appengine_v1_internal } // namespace cloud diff --git a/google/cloud/appengine/v1/internal/versions_connection_impl.h b/google/cloud/appengine/v1/internal/versions_connection_impl.h index feb28b702bb14..14bfdfb39eb52 100644 --- a/google/cloud/appengine/v1/internal/versions_connection_impl.h +++ b/google/cloud/appengine/v1/internal/versions_connection_impl.h @@ -60,12 +60,36 @@ class VersionsConnectionImpl : public appengine_v1::VersionsConnection { future> CreateVersion( google::appengine::v1::CreateVersionRequest const& request) override; + StatusOr CreateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateVersionRequest const& request) override; + + future> CreateVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateVersion( google::appengine::v1::UpdateVersionRequest const& request) override; + StatusOr UpdateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateVersionRequest const& request) override; + + future> UpdateVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteVersion( google::appengine::v1::DeleteVersionRequest const& request) override; + StatusOr DeleteVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteVersionRequest const& request) override; + + future> DeleteVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/appengine/v1/internal/versions_tracing_connection.cc b/google/cloud/appengine/v1/internal/versions_tracing_connection.cc index cfa4dc31a563b..644e88acafb72 100644 --- a/google/cloud/appengine/v1/internal/versions_tracing_connection.cc +++ b/google/cloud/appengine/v1/internal/versions_tracing_connection.cc @@ -61,6 +61,30 @@ VersionsTracingConnection::CreateVersion( return internal::EndSpan(std::move(span), child_->CreateVersion(request)); } +StatusOr +VersionsTracingConnection::CreateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateVersionRequest const& request) { + auto span = + internal::MakeSpan("appengine_v1::VersionsConnection::CreateVersion"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateVersion(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VersionsTracingConnection::CreateVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("appengine_v1::VersionsConnection::CreateVersion"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateVersion(google::cloud::ExperimentalTag{}, operation)); +} + future> VersionsTracingConnection::UpdateVersion( google::appengine::v1::UpdateVersionRequest const& request) { @@ -70,6 +94,30 @@ VersionsTracingConnection::UpdateVersion( return internal::EndSpan(std::move(span), child_->UpdateVersion(request)); } +StatusOr +VersionsTracingConnection::UpdateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateVersionRequest const& request) { + auto span = + internal::MakeSpan("appengine_v1::VersionsConnection::UpdateVersion"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateVersion(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VersionsTracingConnection::UpdateVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("appengine_v1::VersionsConnection::UpdateVersion"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateVersion(google::cloud::ExperimentalTag{}, operation)); +} + future> VersionsTracingConnection::DeleteVersion( google::appengine::v1::DeleteVersionRequest const& request) { @@ -79,6 +127,30 @@ VersionsTracingConnection::DeleteVersion( return internal::EndSpan(std::move(span), child_->DeleteVersion(request)); } +StatusOr +VersionsTracingConnection::DeleteVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteVersionRequest const& request) { + auto span = + internal::MakeSpan("appengine_v1::VersionsConnection::DeleteVersion"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteVersion(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VersionsTracingConnection::DeleteVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("appengine_v1::VersionsConnection::DeleteVersion"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteVersion(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr MakeVersionsTracingConnection( diff --git a/google/cloud/appengine/v1/internal/versions_tracing_connection.h b/google/cloud/appengine/v1/internal/versions_tracing_connection.h index 7b44c4215fbce..a7a270eef4c59 100644 --- a/google/cloud/appengine/v1/internal/versions_tracing_connection.h +++ b/google/cloud/appengine/v1/internal/versions_tracing_connection.h @@ -48,12 +48,36 @@ class VersionsTracingConnection : public appengine_v1::VersionsConnection { future> CreateVersion( google::appengine::v1::CreateVersionRequest const& request) override; + StatusOr CreateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateVersionRequest const& request) override; + + future> CreateVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateVersion( google::appengine::v1::UpdateVersionRequest const& request) override; + StatusOr UpdateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateVersionRequest const& request) override; + + future> UpdateVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteVersion( google::appengine::v1::DeleteVersionRequest const& request) override; + StatusOr DeleteVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteVersionRequest const& request) override; + + future> DeleteVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/appengine/v1/mocks/mock_applications_connection.h b/google/cloud/appengine/v1/mocks/mock_applications_connection.h index b32ef728e74b7..b136fe4ee2700 100644 --- a/google/cloud/appengine/v1/mocks/mock_applications_connection.h +++ b/google/cloud/appengine/v1/mocks/mock_applications_connection.h @@ -55,15 +55,48 @@ class MockApplicationsConnection : public appengine_v1::ApplicationsConnection { (google::appengine::v1::CreateApplicationRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateApplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateApplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateApplication, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateApplication, (google::appengine::v1::UpdateApplicationRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateApplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateApplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateApplication, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, RepairApplication, (google::appengine::v1::RepairApplicationRequest const& request), (override)); + + MOCK_METHOD(StatusOr, RepairApplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::RepairApplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + RepairApplication, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/appengine/v1/mocks/mock_domain_mappings_connection.h b/google/cloud/appengine/v1/mocks/mock_domain_mappings_connection.h index af36c0b14c2cd..4cea5f92656a1 100644 --- a/google/cloud/appengine/v1/mocks/mock_domain_mappings_connection.h +++ b/google/cloud/appengine/v1/mocks/mock_domain_mappings_connection.h @@ -62,17 +62,53 @@ class MockDomainMappingsConnection (google::appengine::v1::CreateDomainMappingRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateDomainMapping, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateDomainMappingRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateDomainMapping, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateDomainMapping, (google::appengine::v1::UpdateDomainMappingRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateDomainMapping, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateDomainMappingRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateDomainMapping, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteDomainMapping, (google::appengine::v1::DeleteDomainMappingRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteDomainMapping, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteDomainMappingRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteDomainMapping, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/appengine/v1/mocks/mock_instances_connection.h b/google/cloud/appengine/v1/mocks/mock_instances_connection.h index 178c8e75d734a..f0b4e62426a7e 100644 --- a/google/cloud/appengine/v1/mocks/mock_instances_connection.h +++ b/google/cloud/appengine/v1/mocks/mock_instances_connection.h @@ -59,9 +59,30 @@ class MockInstancesConnection : public appengine_v1::InstancesConnection { (google::appengine::v1::DeleteInstanceRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DebugInstance, (google::appengine::v1::DebugInstanceRequest const& request), (override)); + + MOCK_METHOD(StatusOr, DebugInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DebugInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, DebugInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/appengine/v1/mocks/mock_services_connection.h b/google/cloud/appengine/v1/mocks/mock_services_connection.h index d5f9bdb59e681..6c778ac40510d 100644 --- a/google/cloud/appengine/v1/mocks/mock_services_connection.h +++ b/google/cloud/appengine/v1/mocks/mock_services_connection.h @@ -57,10 +57,31 @@ class MockServicesConnection : public appengine_v1::ServicesConnection { (google::appengine::v1::UpdateServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, UpdateService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteService, (google::appengine::v1::DeleteServiceRequest const& request), (override)); + + MOCK_METHOD(StatusOr, DeleteService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/appengine/v1/mocks/mock_versions_connection.h b/google/cloud/appengine/v1/mocks/mock_versions_connection.h index e2f5f61e4b34b..0354af854e0d2 100644 --- a/google/cloud/appengine/v1/mocks/mock_versions_connection.h +++ b/google/cloud/appengine/v1/mocks/mock_versions_connection.h @@ -57,14 +57,45 @@ class MockVersionsConnection : public appengine_v1::VersionsConnection { (google::appengine::v1::CreateVersionRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateVersion, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateVersionRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateVersion, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateVersion, (google::appengine::v1::UpdateVersionRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateVersion, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateVersionRequest const& request), + (override)); + + MOCK_METHOD(future>, UpdateVersion, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteVersion, (google::appengine::v1::DeleteVersionRequest const& request), (override)); + + MOCK_METHOD(StatusOr, DeleteVersion, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteVersionRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteVersion, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/appengine/v1/services_connection.cc b/google/cloud/appengine/v1/services_connection.cc index cdd35e9f7be78..d6a3147aba3ef 100644 --- a/google/cloud/appengine/v1/services_connection.cc +++ b/google/cloud/appengine/v1/services_connection.cc @@ -58,6 +58,21 @@ ServicesConnection::UpdateService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ServicesConnection::UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ServicesConnection::UpdateService(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ServicesConnection::DeleteService( google::appengine::v1::DeleteServiceRequest const&) { @@ -66,6 +81,21 @@ ServicesConnection::DeleteService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ServicesConnection::DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ServicesConnection::DeleteService(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeServicesConnection(Options options) { internal::CheckExpectedOptions> UpdateService( google::appengine::v1::UpdateServiceRequest const& request); + virtual StatusOr UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateServiceRequest const& request); + + virtual future> UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteService(google::appengine::v1::DeleteServiceRequest const& request); + + virtual StatusOr DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteServiceRequest const& request); + + virtual future> + DeleteService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/appengine/v1/versions_connection.cc b/google/cloud/appengine/v1/versions_connection.cc index 115c2dd5522e3..6c5cf5cf7298e 100644 --- a/google/cloud/appengine/v1/versions_connection.cc +++ b/google/cloud/appengine/v1/versions_connection.cc @@ -58,6 +58,21 @@ VersionsConnection::CreateVersion( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VersionsConnection::CreateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateVersionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VersionsConnection::CreateVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VersionsConnection::UpdateVersion( google::appengine::v1::UpdateVersionRequest const&) { @@ -66,6 +81,21 @@ VersionsConnection::UpdateVersion( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VersionsConnection::UpdateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateVersionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VersionsConnection::UpdateVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VersionsConnection::DeleteVersion( google::appengine::v1::DeleteVersionRequest const&) { @@ -74,6 +104,21 @@ VersionsConnection::DeleteVersion( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VersionsConnection::DeleteVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteVersionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VersionsConnection::DeleteVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeVersionsConnection(Options options) { internal::CheckExpectedOptions> CreateVersion( google::appengine::v1::CreateVersionRequest const& request); + virtual StatusOr CreateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::CreateVersionRequest const& request); + + virtual future> CreateVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateVersion( google::appengine::v1::UpdateVersionRequest const& request); + virtual StatusOr UpdateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::UpdateVersionRequest const& request); + + virtual future> UpdateVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteVersion(google::appengine::v1::DeleteVersionRequest const& request); + + virtual StatusOr DeleteVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::appengine::v1::DeleteVersionRequest const& request); + + virtual future> + DeleteVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/apphub/v1/app_hub_connection.cc b/google/cloud/apphub/v1/app_hub_connection.cc index 9178ead1882f4..1313f0df267a3 100644 --- a/google/cloud/apphub/v1/app_hub_connection.cc +++ b/google/cloud/apphub/v1/app_hub_connection.cc @@ -60,6 +60,22 @@ AppHubConnection::CreateServiceProjectAttachment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AppHubConnection::CreateServiceProjectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppHubConnection::CreateServiceProjectAttachment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AppHubConnection::GetServiceProjectAttachment( google::cloud::apphub::v1::GetServiceProjectAttachmentRequest const&) { @@ -74,6 +90,22 @@ AppHubConnection::DeleteServiceProjectAttachment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AppHubConnection::DeleteServiceProjectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppHubConnection::DeleteServiceProjectAttachment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AppHubConnection::DetachServiceProjectAttachment( google::cloud::apphub::v1::DetachServiceProjectAttachmentRequest const&) { @@ -115,6 +147,21 @@ AppHubConnection::CreateService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AppHubConnection::CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppHubConnection::CreateService(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AppHubConnection::GetService( google::cloud::apphub::v1::GetServiceRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -128,6 +175,21 @@ AppHubConnection::UpdateService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AppHubConnection::UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppHubConnection::UpdateService(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AppHubConnection::DeleteService( google::cloud::apphub::v1::DeleteServiceRequest const&) { @@ -136,6 +198,21 @@ AppHubConnection::DeleteService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AppHubConnection::DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppHubConnection::DeleteService(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange AppHubConnection::ListDiscoveredWorkloads( google::cloud::apphub::v1:: @@ -172,6 +249,21 @@ AppHubConnection::CreateWorkload( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AppHubConnection::CreateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateWorkloadRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppHubConnection::CreateWorkload(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AppHubConnection::GetWorkload( google::cloud::apphub::v1::GetWorkloadRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -185,6 +277,21 @@ AppHubConnection::UpdateWorkload( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AppHubConnection::UpdateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateWorkloadRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppHubConnection::UpdateWorkload(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AppHubConnection::DeleteWorkload( google::cloud::apphub::v1::DeleteWorkloadRequest const&) { @@ -193,6 +300,21 @@ AppHubConnection::DeleteWorkload( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AppHubConnection::DeleteWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteWorkloadRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppHubConnection::DeleteWorkload(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange AppHubConnection::ListApplications( google::cloud::apphub::v1:: @@ -209,6 +331,21 @@ AppHubConnection::CreateApplication( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AppHubConnection::CreateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateApplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppHubConnection::CreateApplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AppHubConnection::GetApplication( google::cloud::apphub::v1::GetApplicationRequest const&) { @@ -223,6 +360,21 @@ AppHubConnection::UpdateApplication( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AppHubConnection::UpdateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateApplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppHubConnection::UpdateApplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AppHubConnection::DeleteApplication( google::cloud::apphub::v1::DeleteApplicationRequest const&) { @@ -231,6 +383,21 @@ AppHubConnection::DeleteApplication( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AppHubConnection::DeleteApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteApplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppHubConnection::DeleteApplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeAppHubConnection(Options options) { internal::CheckExpectedOptions + CreateServiceProjectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const& + request); + + virtual future> + CreateServiceProjectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetServiceProjectAttachment( google::cloud::apphub::v1::GetServiceProjectAttachmentRequest const& @@ -206,6 +219,17 @@ class AppHubConnection { google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& request); + virtual StatusOr + DeleteServiceProjectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& + request); + + virtual future> + DeleteServiceProjectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::cloud::apphub::v1::DetachServiceProjectAttachmentResponse> DetachServiceProjectAttachment( @@ -230,15 +254,39 @@ class AppHubConnection { virtual future> CreateService( google::cloud::apphub::v1::CreateServiceRequest const& request); + virtual StatusOr CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateServiceRequest const& request); + + virtual future> CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetService( google::cloud::apphub::v1::GetServiceRequest const& request); virtual future> UpdateService( google::cloud::apphub::v1::UpdateServiceRequest const& request); + virtual StatusOr UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateServiceRequest const& request); + + virtual future> UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteService(google::cloud::apphub::v1::DeleteServiceRequest const& request); + virtual StatusOr DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteServiceRequest const& request); + + virtual future> + DeleteService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListDiscoveredWorkloads( google::cloud::apphub::v1::ListDiscoveredWorkloadsRequest request); @@ -258,16 +306,40 @@ class AppHubConnection { virtual future> CreateWorkload( google::cloud::apphub::v1::CreateWorkloadRequest const& request); + virtual StatusOr CreateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateWorkloadRequest const& request); + + virtual future> CreateWorkload( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetWorkload( google::cloud::apphub::v1::GetWorkloadRequest const& request); virtual future> UpdateWorkload( google::cloud::apphub::v1::UpdateWorkloadRequest const& request); + virtual StatusOr UpdateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateWorkloadRequest const& request); + + virtual future> UpdateWorkload( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteWorkload( google::cloud::apphub::v1::DeleteWorkloadRequest const& request); + virtual StatusOr DeleteWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteWorkloadRequest const& request); + + virtual future> + DeleteWorkload(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListApplications( google::cloud::apphub::v1::ListApplicationsRequest request); @@ -275,6 +347,14 @@ class AppHubConnection { CreateApplication( google::cloud::apphub::v1::CreateApplicationRequest const& request); + virtual StatusOr CreateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateApplicationRequest const& request); + + virtual future> + CreateApplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetApplication( google::cloud::apphub::v1::GetApplicationRequest const& request); @@ -282,9 +362,25 @@ class AppHubConnection { UpdateApplication( google::cloud::apphub::v1::UpdateApplicationRequest const& request); + virtual StatusOr UpdateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateApplicationRequest const& request); + + virtual future> + UpdateApplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteApplication( google::cloud::apphub::v1::DeleteApplicationRequest const& request); + + virtual StatusOr DeleteApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteApplicationRequest const& request); + + virtual future> + DeleteApplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/apphub/v1/internal/app_hub_connection_impl.cc b/google/cloud/apphub/v1/internal/app_hub_connection_impl.cc index bf63a8e62c274..39a213cdd909a 100644 --- a/google/cloud/apphub/v1/internal/app_hub_connection_impl.cc +++ b/google/cloud/apphub/v1/internal/app_hub_connection_impl.cc @@ -156,6 +156,61 @@ AppHubConnectionImpl::CreateServiceProjectAttachment( polling_policy(*current), __func__); } +StatusOr +AppHubConnectionImpl::CreateServiceProjectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateServiceProjectAttachment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::apphub::v1:: + CreateServiceProjectAttachmentRequest const& request) { + return stub_->CreateServiceProjectAttachment(context, options, request); + }, + *current, request, __func__); +} + +future> +AppHubConnectionImpl::CreateServiceProjectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateServiceProjectAttachment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apphub::v1::ServiceProjectAttachment>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::apphub::v1::ServiceProjectAttachment>, + polling_policy(*current), __func__); +} + StatusOr AppHubConnectionImpl::GetServiceProjectAttachment( google::cloud::apphub::v1::GetServiceProjectAttachmentRequest const& @@ -214,6 +269,61 @@ AppHubConnectionImpl::DeleteServiceProjectAttachment( polling_policy(*current), __func__); } +StatusOr +AppHubConnectionImpl::DeleteServiceProjectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteServiceProjectAttachment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::apphub::v1:: + DeleteServiceProjectAttachmentRequest const& request) { + return stub_->DeleteServiceProjectAttachment(context, options, request); + }, + *current, request, __func__); +} + +future> +AppHubConnectionImpl::DeleteServiceProjectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteServiceProjectAttachment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apphub::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::apphub::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr AppHubConnectionImpl::DetachServiceProjectAttachment( google::cloud::apphub::v1::DetachServiceProjectAttachmentRequest const& @@ -369,6 +479,57 @@ AppHubConnectionImpl::CreateService( polling_policy(*current), __func__); } +StatusOr AppHubConnectionImpl::CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateService(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::apphub::v1::CreateServiceRequest const& request) { + return stub_->CreateService(context, options, request); + }, + *current, request, __func__); +} + +future> +AppHubConnectionImpl::CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apphub::v1::Service>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::apphub::v1::Service>, + polling_policy(*current), __func__); +} + StatusOr AppHubConnectionImpl::GetService( google::cloud::apphub::v1::GetServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -421,6 +582,57 @@ AppHubConnectionImpl::UpdateService( polling_policy(*current), __func__); } +StatusOr AppHubConnectionImpl::UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateService(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::apphub::v1::UpdateServiceRequest const& request) { + return stub_->UpdateService(context, options, request); + }, + *current, request, __func__); +} + +future> +AppHubConnectionImpl::UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apphub::v1::Service>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::apphub::v1::Service>, + polling_policy(*current), __func__); +} + future> AppHubConnectionImpl::DeleteService( google::cloud::apphub::v1::DeleteServiceRequest const& request) { @@ -460,6 +672,58 @@ AppHubConnectionImpl::DeleteService( polling_policy(*current), __func__); } +StatusOr AppHubConnectionImpl::DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteService(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::apphub::v1::DeleteServiceRequest const& request) { + return stub_->DeleteService(context, options, request); + }, + *current, request, __func__); +} + +future> +AppHubConnectionImpl::DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apphub::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::apphub::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange AppHubConnectionImpl::ListDiscoveredWorkloads( google::cloud::apphub::v1::ListDiscoveredWorkloadsRequest request) { @@ -599,6 +863,57 @@ AppHubConnectionImpl::CreateWorkload( polling_policy(*current), __func__); } +StatusOr AppHubConnectionImpl::CreateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateWorkloadRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateWorkload(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::apphub::v1::CreateWorkloadRequest const& request) { + return stub_->CreateWorkload(context, options, request); + }, + *current, request, __func__); +} + +future> +AppHubConnectionImpl::CreateWorkload( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateWorkload", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apphub::v1::Workload>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::apphub::v1::Workload>, + polling_policy(*current), __func__); +} + StatusOr AppHubConnectionImpl::GetWorkload( google::cloud::apphub::v1::GetWorkloadRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -651,6 +966,57 @@ AppHubConnectionImpl::UpdateWorkload( polling_policy(*current), __func__); } +StatusOr AppHubConnectionImpl::UpdateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateWorkloadRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateWorkload(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::apphub::v1::UpdateWorkloadRequest const& request) { + return stub_->UpdateWorkload(context, options, request); + }, + *current, request, __func__); +} + +future> +AppHubConnectionImpl::UpdateWorkload( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateWorkload", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apphub::v1::Workload>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::apphub::v1::Workload>, + polling_policy(*current), __func__); +} + future> AppHubConnectionImpl::DeleteWorkload( google::cloud::apphub::v1::DeleteWorkloadRequest const& request) { @@ -690,6 +1056,58 @@ AppHubConnectionImpl::DeleteWorkload( polling_policy(*current), __func__); } +StatusOr AppHubConnectionImpl::DeleteWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteWorkloadRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteWorkload(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::apphub::v1::DeleteWorkloadRequest const& request) { + return stub_->DeleteWorkload(context, options, request); + }, + *current, request, __func__); +} + +future> +AppHubConnectionImpl::DeleteWorkload( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteWorkload", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apphub::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::apphub::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange AppHubConnectionImpl::ListApplications( google::cloud::apphub::v1::ListApplicationsRequest request) { @@ -763,6 +1181,59 @@ AppHubConnectionImpl::CreateApplication( polling_policy(*current), __func__); } +StatusOr +AppHubConnectionImpl::CreateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateApplicationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateApplication(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::apphub::v1::CreateApplicationRequest const& request) { + return stub_->CreateApplication(context, options, request); + }, + *current, request, __func__); +} + +future> +AppHubConnectionImpl::CreateApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateApplication", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apphub::v1::Application>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::apphub::v1::Application>, + polling_policy(*current), __func__); +} + StatusOr AppHubConnectionImpl::GetApplication( google::cloud::apphub::v1::GetApplicationRequest const& request) { @@ -816,6 +1287,59 @@ AppHubConnectionImpl::UpdateApplication( polling_policy(*current), __func__); } +StatusOr +AppHubConnectionImpl::UpdateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateApplicationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateApplication(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::apphub::v1::UpdateApplicationRequest const& request) { + return stub_->UpdateApplication(context, options, request); + }, + *current, request, __func__); +} + +future> +AppHubConnectionImpl::UpdateApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateApplication", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apphub::v1::Application>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::apphub::v1::Application>, + polling_policy(*current), __func__); +} + future> AppHubConnectionImpl::DeleteApplication( google::cloud::apphub::v1::DeleteApplicationRequest const& request) { @@ -855,6 +1379,60 @@ AppHubConnectionImpl::DeleteApplication( polling_policy(*current), __func__); } +StatusOr +AppHubConnectionImpl::DeleteApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteApplicationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteApplication(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::apphub::v1::DeleteApplicationRequest const& request) { + return stub_->DeleteApplication(context, options, request); + }, + *current, request, __func__); +} + +future> +AppHubConnectionImpl::DeleteApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteApplication", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::apphub::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::apphub::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace apphub_v1_internal } // namespace cloud diff --git a/google/cloud/apphub/v1/internal/app_hub_connection_impl.h b/google/cloud/apphub/v1/internal/app_hub_connection_impl.h index d0131796553c3..983c5e867fb77 100644 --- a/google/cloud/apphub/v1/internal/app_hub_connection_impl.h +++ b/google/cloud/apphub/v1/internal/app_hub_connection_impl.h @@ -65,6 +65,16 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const& request) override; + StatusOr CreateServiceProjectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const& + request) override; + + future> + CreateServiceProjectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetServiceProjectAttachment( google::cloud::apphub::v1::GetServiceProjectAttachmentRequest const& @@ -75,6 +85,16 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& request) override; + StatusOr DeleteServiceProjectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& + request) override; + + future> + DeleteServiceProjectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr DetachServiceProjectAttachment( google::cloud::apphub::v1::DetachServiceProjectAttachmentRequest const& @@ -100,15 +120,39 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { future> CreateService( google::cloud::apphub::v1::CreateServiceRequest const& request) override; + StatusOr CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateServiceRequest const& request) override; + + future> CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetService( google::cloud::apphub::v1::GetServiceRequest const& request) override; future> UpdateService( google::cloud::apphub::v1::UpdateServiceRequest const& request) override; + StatusOr UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateServiceRequest const& request) override; + + future> UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteService( google::cloud::apphub::v1::DeleteServiceRequest const& request) override; + StatusOr DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteServiceRequest const& request) override; + + future> DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDiscoveredWorkloads( google::cloud::apphub::v1::ListDiscoveredWorkloadsRequest request) @@ -129,15 +173,39 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { future> CreateWorkload( google::cloud::apphub::v1::CreateWorkloadRequest const& request) override; + StatusOr CreateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateWorkloadRequest const& request) override; + + future> CreateWorkload( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetWorkload( google::cloud::apphub::v1::GetWorkloadRequest const& request) override; future> UpdateWorkload( google::cloud::apphub::v1::UpdateWorkloadRequest const& request) override; + StatusOr UpdateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateWorkloadRequest const& request) override; + + future> UpdateWorkload( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteWorkload( google::cloud::apphub::v1::DeleteWorkloadRequest const& request) override; + StatusOr DeleteWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteWorkloadRequest const& request) override; + + future> DeleteWorkload( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListApplications( google::cloud::apphub::v1::ListApplicationsRequest request) override; @@ -145,6 +213,15 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::CreateApplicationRequest const& request) override; + StatusOr CreateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateApplicationRequest const& request) + override; + + future> CreateApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetApplication( google::cloud::apphub::v1::GetApplicationRequest const& request) override; @@ -152,10 +229,28 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::UpdateApplicationRequest const& request) override; + StatusOr UpdateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateApplicationRequest const& request) + override; + + future> UpdateApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteApplication(google::cloud::apphub::v1::DeleteApplicationRequest const& request) override; + StatusOr DeleteApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteApplicationRequest const& request) + override; + + future> + DeleteApplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/apphub/v1/internal/app_hub_tracing_connection.cc b/google/cloud/apphub/v1/internal/app_hub_tracing_connection.cc index 9a2b24266b589..e8fe2243b419a 100644 --- a/google/cloud/apphub/v1/internal/app_hub_tracing_connection.cc +++ b/google/cloud/apphub/v1/internal/app_hub_tracing_connection.cc @@ -67,6 +67,31 @@ AppHubTracingConnection::CreateServiceProjectAttachment( child_->CreateServiceProjectAttachment(request)); } +StatusOr +AppHubTracingConnection::CreateServiceProjectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const& + request) { + auto span = internal::MakeSpan( + "apphub_v1::AppHubConnection::CreateServiceProjectAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateServiceProjectAttachment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppHubTracingConnection::CreateServiceProjectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "apphub_v1::AppHubConnection::CreateServiceProjectAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateServiceProjectAttachment( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AppHubTracingConnection::GetServiceProjectAttachment( google::cloud::apphub::v1::GetServiceProjectAttachmentRequest const& @@ -88,6 +113,31 @@ AppHubTracingConnection::DeleteServiceProjectAttachment( child_->DeleteServiceProjectAttachment(request)); } +StatusOr +AppHubTracingConnection::DeleteServiceProjectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& + request) { + auto span = internal::MakeSpan( + "apphub_v1::AppHubConnection::DeleteServiceProjectAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteServiceProjectAttachment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppHubTracingConnection::DeleteServiceProjectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "apphub_v1::AppHubConnection::DeleteServiceProjectAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteServiceProjectAttachment( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AppHubTracingConnection::DetachServiceProjectAttachment( google::cloud::apphub::v1::DetachServiceProjectAttachmentRequest const& @@ -147,6 +197,27 @@ AppHubTracingConnection::CreateService( return internal::EndSpan(std::move(span), child_->CreateService(request)); } +StatusOr AppHubTracingConnection::CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateServiceRequest const& request) { + auto span = internal::MakeSpan("apphub_v1::AppHubConnection::CreateService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppHubTracingConnection::CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("apphub_v1::AppHubConnection::CreateService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateService(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AppHubTracingConnection::GetService( google::cloud::apphub::v1::GetServiceRequest const& request) { @@ -163,6 +234,27 @@ AppHubTracingConnection::UpdateService( return internal::EndSpan(std::move(span), child_->UpdateService(request)); } +StatusOr AppHubTracingConnection::UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateServiceRequest const& request) { + auto span = internal::MakeSpan("apphub_v1::AppHubConnection::UpdateService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppHubTracingConnection::UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("apphub_v1::AppHubConnection::UpdateService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateService(google::cloud::ExperimentalTag{}, operation)); +} + future> AppHubTracingConnection::DeleteService( google::cloud::apphub::v1::DeleteServiceRequest const& request) { @@ -171,6 +263,27 @@ AppHubTracingConnection::DeleteService( return internal::EndSpan(std::move(span), child_->DeleteService(request)); } +StatusOr AppHubTracingConnection::DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteServiceRequest const& request) { + auto span = internal::MakeSpan("apphub_v1::AppHubConnection::DeleteService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppHubTracingConnection::DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("apphub_v1::AppHubConnection::DeleteService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteService(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange AppHubTracingConnection::ListDiscoveredWorkloads( google::cloud::apphub::v1::ListDiscoveredWorkloadsRequest request) { @@ -219,6 +332,28 @@ AppHubTracingConnection::CreateWorkload( return internal::EndSpan(std::move(span), child_->CreateWorkload(request)); } +StatusOr +AppHubTracingConnection::CreateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateWorkloadRequest const& request) { + auto span = internal::MakeSpan("apphub_v1::AppHubConnection::CreateWorkload"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateWorkload(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppHubTracingConnection::CreateWorkload( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("apphub_v1::AppHubConnection::CreateWorkload"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateWorkload(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AppHubTracingConnection::GetWorkload( google::cloud::apphub::v1::GetWorkloadRequest const& request) { @@ -235,6 +370,28 @@ AppHubTracingConnection::UpdateWorkload( return internal::EndSpan(std::move(span), child_->UpdateWorkload(request)); } +StatusOr +AppHubTracingConnection::UpdateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateWorkloadRequest const& request) { + auto span = internal::MakeSpan("apphub_v1::AppHubConnection::UpdateWorkload"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateWorkload(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppHubTracingConnection::UpdateWorkload( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("apphub_v1::AppHubConnection::UpdateWorkload"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateWorkload(google::cloud::ExperimentalTag{}, operation)); +} + future> AppHubTracingConnection::DeleteWorkload( google::cloud::apphub::v1::DeleteWorkloadRequest const& request) { @@ -243,6 +400,28 @@ AppHubTracingConnection::DeleteWorkload( return internal::EndSpan(std::move(span), child_->DeleteWorkload(request)); } +StatusOr +AppHubTracingConnection::DeleteWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteWorkloadRequest const& request) { + auto span = internal::MakeSpan("apphub_v1::AppHubConnection::DeleteWorkload"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteWorkload(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppHubTracingConnection::DeleteWorkload( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("apphub_v1::AppHubConnection::DeleteWorkload"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteWorkload(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange AppHubTracingConnection::ListApplications( google::cloud::apphub::v1::ListApplicationsRequest request) { @@ -263,6 +442,30 @@ AppHubTracingConnection::CreateApplication( return internal::EndSpan(std::move(span), child_->CreateApplication(request)); } +StatusOr +AppHubTracingConnection::CreateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateApplicationRequest const& request) { + auto span = + internal::MakeSpan("apphub_v1::AppHubConnection::CreateApplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateApplication(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppHubTracingConnection::CreateApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("apphub_v1::AppHubConnection::CreateApplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateApplication(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AppHubTracingConnection::GetApplication( google::cloud::apphub::v1::GetApplicationRequest const& request) { @@ -280,6 +483,30 @@ AppHubTracingConnection::UpdateApplication( return internal::EndSpan(std::move(span), child_->UpdateApplication(request)); } +StatusOr +AppHubTracingConnection::UpdateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateApplicationRequest const& request) { + auto span = + internal::MakeSpan("apphub_v1::AppHubConnection::UpdateApplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateApplication(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppHubTracingConnection::UpdateApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("apphub_v1::AppHubConnection::UpdateApplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateApplication(google::cloud::ExperimentalTag{}, operation)); +} + future> AppHubTracingConnection::DeleteApplication( google::cloud::apphub::v1::DeleteApplicationRequest const& request) { @@ -289,6 +516,30 @@ AppHubTracingConnection::DeleteApplication( return internal::EndSpan(std::move(span), child_->DeleteApplication(request)); } +StatusOr +AppHubTracingConnection::DeleteApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteApplicationRequest const& request) { + auto span = + internal::MakeSpan("apphub_v1::AppHubConnection::DeleteApplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteApplication(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppHubTracingConnection::DeleteApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("apphub_v1::AppHubConnection::DeleteApplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteApplication(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr MakeAppHubTracingConnection( diff --git a/google/cloud/apphub/v1/internal/app_hub_tracing_connection.h b/google/cloud/apphub/v1/internal/app_hub_tracing_connection.h index e10e735b3f90c..0ba54a1b4105e 100644 --- a/google/cloud/apphub/v1/internal/app_hub_tracing_connection.h +++ b/google/cloud/apphub/v1/internal/app_hub_tracing_connection.h @@ -54,6 +54,16 @@ class AppHubTracingConnection : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const& request) override; + StatusOr CreateServiceProjectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const& + request) override; + + future> + CreateServiceProjectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetServiceProjectAttachment( google::cloud::apphub::v1::GetServiceProjectAttachmentRequest const& @@ -64,6 +74,16 @@ class AppHubTracingConnection : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& request) override; + StatusOr DeleteServiceProjectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& + request) override; + + future> + DeleteServiceProjectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr DetachServiceProjectAttachment( google::cloud::apphub::v1::DetachServiceProjectAttachmentRequest const& @@ -89,15 +109,39 @@ class AppHubTracingConnection : public apphub_v1::AppHubConnection { future> CreateService( google::cloud::apphub::v1::CreateServiceRequest const& request) override; + StatusOr CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateServiceRequest const& request) override; + + future> CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetService( google::cloud::apphub::v1::GetServiceRequest const& request) override; future> UpdateService( google::cloud::apphub::v1::UpdateServiceRequest const& request) override; + StatusOr UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateServiceRequest const& request) override; + + future> UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteService( google::cloud::apphub::v1::DeleteServiceRequest const& request) override; + StatusOr DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteServiceRequest const& request) override; + + future> DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDiscoveredWorkloads( google::cloud::apphub::v1::ListDiscoveredWorkloadsRequest request) @@ -118,15 +162,39 @@ class AppHubTracingConnection : public apphub_v1::AppHubConnection { future> CreateWorkload( google::cloud::apphub::v1::CreateWorkloadRequest const& request) override; + StatusOr CreateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateWorkloadRequest const& request) override; + + future> CreateWorkload( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetWorkload( google::cloud::apphub::v1::GetWorkloadRequest const& request) override; future> UpdateWorkload( google::cloud::apphub::v1::UpdateWorkloadRequest const& request) override; + StatusOr UpdateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateWorkloadRequest const& request) override; + + future> UpdateWorkload( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteWorkload( google::cloud::apphub::v1::DeleteWorkloadRequest const& request) override; + StatusOr DeleteWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteWorkloadRequest const& request) override; + + future> DeleteWorkload( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListApplications( google::cloud::apphub::v1::ListApplicationsRequest request) override; @@ -134,6 +202,15 @@ class AppHubTracingConnection : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::CreateApplicationRequest const& request) override; + StatusOr CreateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateApplicationRequest const& request) + override; + + future> CreateApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetApplication( google::cloud::apphub::v1::GetApplicationRequest const& request) override; @@ -141,10 +218,28 @@ class AppHubTracingConnection : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::UpdateApplicationRequest const& request) override; + StatusOr UpdateApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateApplicationRequest const& request) + override; + + future> UpdateApplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteApplication(google::cloud::apphub::v1::DeleteApplicationRequest const& request) override; + StatusOr DeleteApplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteApplicationRequest const& request) + override; + + future> + DeleteApplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/apphub/v1/mocks/mock_app_hub_connection.h b/google/cloud/apphub/v1/mocks/mock_app_hub_connection.h index 20f9e032ca0fc..4723e95620178 100644 --- a/google/cloud/apphub/v1/mocks/mock_app_hub_connection.h +++ b/google/cloud/apphub/v1/mocks/mock_app_hub_connection.h @@ -67,6 +67,20 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { request), (override)); + MOCK_METHOD( + StatusOr, CreateServiceProjectAttachment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateServiceProjectAttachment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetServiceProjectAttachment, @@ -81,6 +95,19 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { request), (override)); + MOCK_METHOD( + StatusOr, DeleteServiceProjectAttachment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteServiceProjectAttachment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr< google::cloud::apphub::v1::DetachServiceProjectAttachmentResponse>, @@ -117,6 +144,17 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { (google::cloud::apphub::v1::CreateServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetService, (google::cloud::apphub::v1::GetServiceRequest const& request), (override)); @@ -126,11 +164,33 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { (google::cloud::apphub::v1::UpdateServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteService, (google::cloud::apphub::v1::DeleteServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListDiscoveredWorkloads, @@ -159,6 +219,17 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { (google::cloud::apphub::v1::CreateWorkloadRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateWorkload, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateWorkloadRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateWorkload, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetWorkload, (google::cloud::apphub::v1::GetWorkloadRequest const& request), (override)); @@ -168,11 +239,33 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { (google::cloud::apphub::v1::UpdateWorkloadRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateWorkload, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateWorkloadRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateWorkload, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteWorkload, (google::cloud::apphub::v1::DeleteWorkloadRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteWorkload, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteWorkloadRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteWorkload, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListApplications, (google::cloud::apphub::v1::ListApplicationsRequest request), @@ -184,6 +277,18 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { (google::cloud::apphub::v1::CreateApplicationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateApplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::CreateApplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateApplication, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetApplication, (google::cloud::apphub::v1::GetApplicationRequest const& request), (override)); @@ -194,11 +299,35 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { (google::cloud::apphub::v1::UpdateApplicationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateApplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::UpdateApplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateApplication, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteApplication, (google::cloud::apphub::v1::DeleteApplicationRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteApplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::apphub::v1::DeleteApplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteApplication, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/artifactregistry/v1/artifact_registry_connection.cc b/google/cloud/artifactregistry/v1/artifact_registry_connection.cc index c142222314101..9ef7ba683c383 100644 --- a/google/cloud/artifactregistry/v1/artifact_registry_connection.cc +++ b/google/cloud/artifactregistry/v1/artifact_registry_connection.cc @@ -103,6 +103,23 @@ ArtifactRegistryConnection::ImportAptArtifacts( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ArtifactRegistryConnection::ImportAptArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ArtifactRegistryConnection::ImportAptArtifacts( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ArtifactRegistryConnection::ImportYumArtifacts( @@ -112,6 +129,23 @@ ArtifactRegistryConnection::ImportYumArtifacts( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ArtifactRegistryConnection::ImportYumArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ArtifactRegistryConnection::ImportYumArtifacts( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ArtifactRegistryConnection::ListRepositories( google::devtools::artifactregistry::v1:: @@ -134,6 +168,22 @@ ArtifactRegistryConnection::CreateRepository( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ArtifactRegistryConnection::CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::CreateRepositoryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ArtifactRegistryConnection::CreateRepository( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ArtifactRegistryConnection::UpdateRepository( google::devtools::artifactregistry::v1::UpdateRepositoryRequest const&) { @@ -148,6 +198,22 @@ ArtifactRegistryConnection::DeleteRepository( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ArtifactRegistryConnection::DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeleteRepositoryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ArtifactRegistryConnection::DeleteRepository( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ArtifactRegistryConnection::ListPackages( google::devtools::artifactregistry::v1:: @@ -170,6 +236,22 @@ ArtifactRegistryConnection::DeletePackage( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ArtifactRegistryConnection::DeletePackage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeletePackageRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ArtifactRegistryConnection::DeletePackage( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ArtifactRegistryConnection::ListVersions( google::devtools::artifactregistry::v1:: @@ -192,6 +274,22 @@ ArtifactRegistryConnection::DeleteVersion( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ArtifactRegistryConnection::DeleteVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeleteVersionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ArtifactRegistryConnection::DeleteVersion( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ArtifactRegistryConnection::BatchDeleteVersions( @@ -201,6 +299,23 @@ ArtifactRegistryConnection::BatchDeleteVersions( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ArtifactRegistryConnection::BatchDeleteVersions( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ArtifactRegistryConnection::BatchDeleteVersions( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ArtifactRegistryConnection::ListFiles( google::devtools::artifactregistry::v1:: diff --git a/google/cloud/artifactregistry/v1/artifact_registry_connection.h b/google/cloud/artifactregistry/v1/artifact_registry_connection.h index 54b3895c1280c..1a226f08a6ede 100644 --- a/google/cloud/artifactregistry/v1/artifact_registry_connection.h +++ b/google/cloud/artifactregistry/v1/artifact_registry_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/artifactregistry/v1/artifact_registry_connection_idempotency_policy.h" #include "google/cloud/artifactregistry/v1/internal/artifact_registry_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -230,12 +232,32 @@ class ArtifactRegistryConnection { google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& request); + virtual StatusOr ImportAptArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& + request); + + virtual future> + ImportAptArtifacts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ImportYumArtifacts( google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& request); + virtual StatusOr ImportYumArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& + request); + + virtual future> + ImportYumArtifacts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListRepositories( google::devtools::artifactregistry::v1::ListRepositoriesRequest request); @@ -250,6 +272,15 @@ class ArtifactRegistryConnection { google::devtools::artifactregistry::v1::CreateRepositoryRequest const& request); + virtual StatusOr CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::CreateRepositoryRequest const& + request); + + virtual future> + CreateRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr UpdateRepository( google::devtools::artifactregistry::v1::UpdateRepositoryRequest const& @@ -261,6 +292,16 @@ class ArtifactRegistryConnection { google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& request); + virtual StatusOr DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& + request); + + virtual future< + StatusOr> + DeleteRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListPackages( google::devtools::artifactregistry::v1::ListPackagesRequest request); @@ -274,6 +315,16 @@ class ArtifactRegistryConnection { google::devtools::artifactregistry::v1::DeletePackageRequest const& request); + virtual StatusOr DeletePackage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeletePackageRequest const& + request); + + virtual future< + StatusOr> + DeletePackage(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListVersions( google::devtools::artifactregistry::v1::ListVersionsRequest request); @@ -287,12 +338,32 @@ class ArtifactRegistryConnection { google::devtools::artifactregistry::v1::DeleteVersionRequest const& request); + virtual StatusOr DeleteVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeleteVersionRequest const& + request); + + virtual future< + StatusOr> + DeleteVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> BatchDeleteVersions( google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& request); + virtual StatusOr BatchDeleteVersions( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& + request); + + virtual future> + BatchDeleteVersions(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListFiles( google::devtools::artifactregistry::v1::ListFilesRequest request); diff --git a/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.cc b/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.cc index e23c24bc36e8e..c2652fd35fe1e 100644 --- a/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.cc +++ b/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.cc @@ -321,6 +321,63 @@ ArtifactRegistryConnectionImpl::ImportAptArtifacts( polling_policy(*current), __func__); } +StatusOr +ArtifactRegistryConnectionImpl::ImportAptArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportAptArtifacts(request), + [this](grpc::ClientContext& context, Options const& options, + google::devtools::artifactregistry::v1:: + ImportAptArtifactsRequest const& request) { + return stub_->ImportAptArtifacts(context, options, request); + }, + *current, request, __func__); +} + +future> +ArtifactRegistryConnectionImpl::ImportAptArtifacts( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ImportAptArtifacts", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::artifactregistry::v1::ImportAptArtifactsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::devtools::artifactregistry::v1::ImportAptArtifactsResponse>, + polling_policy(*current), __func__); +} + future> ArtifactRegistryConnectionImpl::ImportYumArtifacts( @@ -362,6 +419,63 @@ ArtifactRegistryConnectionImpl::ImportYumArtifacts( polling_policy(*current), __func__); } +StatusOr +ArtifactRegistryConnectionImpl::ImportYumArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportYumArtifacts(request), + [this](grpc::ClientContext& context, Options const& options, + google::devtools::artifactregistry::v1:: + ImportYumArtifactsRequest const& request) { + return stub_->ImportYumArtifacts(context, options, request); + }, + *current, request, __func__); +} + +future> +ArtifactRegistryConnectionImpl::ImportYumArtifacts( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ImportYumArtifacts", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::artifactregistry::v1::ImportYumArtifactsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::devtools::artifactregistry::v1::ImportYumArtifactsResponse>, + polling_policy(*current), __func__); +} + StreamRange ArtifactRegistryConnectionImpl::ListRepositories( google::devtools::artifactregistry::v1::ListRepositoriesRequest request) { @@ -455,6 +569,63 @@ ArtifactRegistryConnectionImpl::CreateRepository( polling_policy(*current), __func__); } +StatusOr +ArtifactRegistryConnectionImpl::CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::CreateRepositoryRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateRepository(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::devtools::artifactregistry::v1::CreateRepositoryRequest const& + request) { + return stub_->CreateRepository(context, options, request); + }, + *current, request, __func__); +} + +future> +ArtifactRegistryConnectionImpl::CreateRepository( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateRepository", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::artifactregistry::v1::Repository>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::devtools::artifactregistry::v1::Repository>, + polling_policy(*current), __func__); +} + StatusOr ArtifactRegistryConnectionImpl::UpdateRepository( google::devtools::artifactregistry::v1::UpdateRepositoryRequest const& @@ -513,6 +684,63 @@ ArtifactRegistryConnectionImpl::DeleteRepository( polling_policy(*current), __func__); } +StatusOr +ArtifactRegistryConnectionImpl::DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteRepository(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& + request) { + return stub_->DeleteRepository(context, options, request); + }, + *current, request, __func__); +} + +future> +ArtifactRegistryConnectionImpl::DeleteRepository( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteRepository", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::artifactregistry::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::devtools::artifactregistry::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange ArtifactRegistryConnectionImpl::ListPackages( google::devtools::artifactregistry::v1::ListPackagesRequest request) { @@ -605,6 +833,62 @@ ArtifactRegistryConnectionImpl::DeletePackage( polling_policy(*current), __func__); } +StatusOr +ArtifactRegistryConnectionImpl::DeletePackage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeletePackageRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePackage(request), + [this](grpc::ClientContext& context, Options const& options, + google::devtools::artifactregistry::v1::DeletePackageRequest const& + request) { + return stub_->DeletePackage(context, options, request); + }, + *current, request, __func__); +} + +future> +ArtifactRegistryConnectionImpl::DeletePackage( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeletePackage", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::artifactregistry::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::devtools::artifactregistry::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange ArtifactRegistryConnectionImpl::ListVersions( google::devtools::artifactregistry::v1::ListVersionsRequest request) { @@ -697,6 +981,62 @@ ArtifactRegistryConnectionImpl::DeleteVersion( polling_policy(*current), __func__); } +StatusOr +ArtifactRegistryConnectionImpl::DeleteVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeleteVersionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteVersion(request), + [this](grpc::ClientContext& context, Options const& options, + google::devtools::artifactregistry::v1::DeleteVersionRequest const& + request) { + return stub_->DeleteVersion(context, options, request); + }, + *current, request, __func__); +} + +future> +ArtifactRegistryConnectionImpl::DeleteVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteVersion", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::artifactregistry::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::devtools::artifactregistry::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> ArtifactRegistryConnectionImpl::BatchDeleteVersions( @@ -738,6 +1078,63 @@ ArtifactRegistryConnectionImpl::BatchDeleteVersions( polling_policy(*current), __func__); } +StatusOr +ArtifactRegistryConnectionImpl::BatchDeleteVersions( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchDeleteVersions(request), + [this](grpc::ClientContext& context, Options const& options, + google::devtools::artifactregistry::v1:: + BatchDeleteVersionsRequest const& request) { + return stub_->BatchDeleteVersions(context, options, request); + }, + *current, request, __func__); +} + +future> +ArtifactRegistryConnectionImpl::BatchDeleteVersions( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to BatchDeleteVersions", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::artifactregistry::v1::BatchDeleteVersionsMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::devtools::artifactregistry::v1::BatchDeleteVersionsMetadata>, + polling_policy(*current), __func__); +} + StreamRange ArtifactRegistryConnectionImpl::ListFiles( google::devtools::artifactregistry::v1::ListFilesRequest request) { diff --git a/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.h b/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.h index a1b89b03437d0..4cf7b3b5b1a14 100644 --- a/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.h +++ b/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.h @@ -95,12 +95,32 @@ class ArtifactRegistryConnectionImpl google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& request) override; + StatusOr ImportAptArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& + request) override; + + future> + ImportAptArtifacts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportYumArtifacts( google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& request) override; + StatusOr ImportYumArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& + request) override; + + future> + ImportYumArtifacts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRepositories( google::devtools::artifactregistry::v1::ListRepositoriesRequest request) @@ -115,6 +135,15 @@ class ArtifactRegistryConnectionImpl google::devtools::artifactregistry::v1::CreateRepositoryRequest const& request) override; + StatusOr CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::CreateRepositoryRequest const& + request) override; + + future> + CreateRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateRepository( google::devtools::artifactregistry::v1::UpdateRepositoryRequest const& request) override; @@ -124,6 +153,15 @@ class ArtifactRegistryConnectionImpl google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& request) override; + StatusOr DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& + request) override; + + future> + DeleteRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListPackages( google::devtools::artifactregistry::v1::ListPackagesRequest request) override; @@ -137,6 +175,15 @@ class ArtifactRegistryConnectionImpl google::devtools::artifactregistry::v1::DeletePackageRequest const& request) override; + StatusOr DeletePackage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeletePackageRequest const& + request) override; + + future> + DeletePackage(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListVersions( google::devtools::artifactregistry::v1::ListVersionsRequest request) override; @@ -150,12 +197,31 @@ class ArtifactRegistryConnectionImpl google::devtools::artifactregistry::v1::DeleteVersionRequest const& request) override; + StatusOr DeleteVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeleteVersionRequest const& + request) override; + + future> + DeleteVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchDeleteVersions( google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& request) override; + StatusOr BatchDeleteVersions( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& + request) override; + + future> + BatchDeleteVersions(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListFiles( google::devtools::artifactregistry::v1::ListFilesRequest request) override; diff --git a/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.cc b/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.cc index 6f0baa13a72b7..26d9b41606d81 100644 --- a/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.cc +++ b/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.cc @@ -133,6 +133,32 @@ ArtifactRegistryTracingConnection::ImportAptArtifacts( child_->ImportAptArtifacts(request)); } +StatusOr +ArtifactRegistryTracingConnection::ImportAptArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& + request) { + auto span = internal::MakeSpan( + "artifactregistry_v1::ArtifactRegistryConnection::ImportAptArtifacts"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportAptArtifacts(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ArtifactRegistryTracingConnection::ImportAptArtifacts( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "artifactregistry_v1::ArtifactRegistryConnection::ImportAptArtifacts"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportAptArtifacts(google::cloud::ExperimentalTag{}, operation)); +} + future> ArtifactRegistryTracingConnection::ImportYumArtifacts( @@ -145,6 +171,32 @@ ArtifactRegistryTracingConnection::ImportYumArtifacts( child_->ImportYumArtifacts(request)); } +StatusOr +ArtifactRegistryTracingConnection::ImportYumArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& + request) { + auto span = internal::MakeSpan( + "artifactregistry_v1::ArtifactRegistryConnection::ImportYumArtifacts"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportYumArtifacts(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ArtifactRegistryTracingConnection::ImportYumArtifacts( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "artifactregistry_v1::ArtifactRegistryConnection::ImportYumArtifacts"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportYumArtifacts(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ArtifactRegistryTracingConnection::ListRepositories( google::devtools::artifactregistry::v1::ListRepositoriesRequest request) { @@ -177,6 +229,31 @@ ArtifactRegistryTracingConnection::CreateRepository( return internal::EndSpan(std::move(span), child_->CreateRepository(request)); } +StatusOr +ArtifactRegistryTracingConnection::CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::CreateRepositoryRequest const& + request) { + auto span = internal::MakeSpan( + "artifactregistry_v1::ArtifactRegistryConnection::CreateRepository"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateRepository(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ArtifactRegistryTracingConnection::CreateRepository( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "artifactregistry_v1::ArtifactRegistryConnection::CreateRepository"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateRepository(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ArtifactRegistryTracingConnection::UpdateRepository( google::devtools::artifactregistry::v1::UpdateRepositoryRequest const& @@ -197,6 +274,31 @@ ArtifactRegistryTracingConnection::DeleteRepository( return internal::EndSpan(std::move(span), child_->DeleteRepository(request)); } +StatusOr +ArtifactRegistryTracingConnection::DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& + request) { + auto span = internal::MakeSpan( + "artifactregistry_v1::ArtifactRegistryConnection::DeleteRepository"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteRepository(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ArtifactRegistryTracingConnection::DeleteRepository( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "artifactregistry_v1::ArtifactRegistryConnection::DeleteRepository"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteRepository(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ArtifactRegistryTracingConnection::ListPackages( google::devtools::artifactregistry::v1::ListPackagesRequest request) { @@ -228,6 +330,31 @@ ArtifactRegistryTracingConnection::DeletePackage( return internal::EndSpan(std::move(span), child_->DeletePackage(request)); } +StatusOr +ArtifactRegistryTracingConnection::DeletePackage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeletePackageRequest const& + request) { + auto span = internal::MakeSpan( + "artifactregistry_v1::ArtifactRegistryConnection::DeletePackage"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeletePackage(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ArtifactRegistryTracingConnection::DeletePackage( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "artifactregistry_v1::ArtifactRegistryConnection::DeletePackage"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeletePackage(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ArtifactRegistryTracingConnection::ListVersions( google::devtools::artifactregistry::v1::ListVersionsRequest request) { @@ -259,6 +386,31 @@ ArtifactRegistryTracingConnection::DeleteVersion( return internal::EndSpan(std::move(span), child_->DeleteVersion(request)); } +StatusOr +ArtifactRegistryTracingConnection::DeleteVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeleteVersionRequest const& + request) { + auto span = internal::MakeSpan( + "artifactregistry_v1::ArtifactRegistryConnection::DeleteVersion"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteVersion(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ArtifactRegistryTracingConnection::DeleteVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "artifactregistry_v1::ArtifactRegistryConnection::DeleteVersion"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteVersion(google::cloud::ExperimentalTag{}, operation)); +} + future> ArtifactRegistryTracingConnection::BatchDeleteVersions( @@ -271,6 +423,32 @@ ArtifactRegistryTracingConnection::BatchDeleteVersions( child_->BatchDeleteVersions(request)); } +StatusOr +ArtifactRegistryTracingConnection::BatchDeleteVersions( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& + request) { + auto span = internal::MakeSpan( + "artifactregistry_v1::ArtifactRegistryConnection::BatchDeleteVersions"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BatchDeleteVersions(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ArtifactRegistryTracingConnection::BatchDeleteVersions( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "artifactregistry_v1::ArtifactRegistryConnection::BatchDeleteVersions"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BatchDeleteVersions(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ArtifactRegistryTracingConnection::ListFiles( google::devtools::artifactregistry::v1::ListFilesRequest request) { diff --git a/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.h b/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.h index e72f924c3f346..838da540df6d0 100644 --- a/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.h +++ b/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.h @@ -83,12 +83,32 @@ class ArtifactRegistryTracingConnection google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& request) override; + StatusOr ImportAptArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& + request) override; + + future> + ImportAptArtifacts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportYumArtifacts( google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& request) override; + StatusOr ImportYumArtifacts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& + request) override; + + future> + ImportYumArtifacts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRepositories( google::devtools::artifactregistry::v1::ListRepositoriesRequest request) @@ -103,6 +123,15 @@ class ArtifactRegistryTracingConnection google::devtools::artifactregistry::v1::CreateRepositoryRequest const& request) override; + StatusOr CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::CreateRepositoryRequest const& + request) override; + + future> + CreateRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateRepository( google::devtools::artifactregistry::v1::UpdateRepositoryRequest const& request) override; @@ -112,6 +141,15 @@ class ArtifactRegistryTracingConnection google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& request) override; + StatusOr DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& + request) override; + + future> + DeleteRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListPackages( google::devtools::artifactregistry::v1::ListPackagesRequest request) override; @@ -125,6 +163,15 @@ class ArtifactRegistryTracingConnection google::devtools::artifactregistry::v1::DeletePackageRequest const& request) override; + StatusOr DeletePackage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeletePackageRequest const& + request) override; + + future> + DeletePackage(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListVersions( google::devtools::artifactregistry::v1::ListVersionsRequest request) override; @@ -138,12 +185,31 @@ class ArtifactRegistryTracingConnection google::devtools::artifactregistry::v1::DeleteVersionRequest const& request) override; + StatusOr DeleteVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeleteVersionRequest const& + request) override; + + future> + DeleteVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchDeleteVersions( google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& request) override; + StatusOr BatchDeleteVersions( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& + request) override; + + future> + BatchDeleteVersions(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListFiles( google::devtools::artifactregistry::v1::ListFilesRequest request) override; diff --git a/google/cloud/artifactregistry/v1/mocks/mock_artifact_registry_connection.h b/google/cloud/artifactregistry/v1/mocks/mock_artifact_registry_connection.h index d0fa809101a81..c7689a7648310 100644 --- a/google/cloud/artifactregistry/v1/mocks/mock_artifact_registry_connection.h +++ b/google/cloud/artifactregistry/v1/mocks/mock_artifact_registry_connection.h @@ -109,6 +109,21 @@ class MockArtifactRegistryConnection request), (override)); + MOCK_METHOD( + StatusOr, ImportAptArtifacts, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + ImportAptArtifacts, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -117,6 +132,21 @@ class MockArtifactRegistryConnection request), (override)); + MOCK_METHOD( + StatusOr, ImportYumArtifacts, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + ImportYumArtifacts, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListRepositories, @@ -137,6 +167,20 @@ class MockArtifactRegistryConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateRepository, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::CreateRepositoryRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateRepository, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, UpdateRepository, @@ -152,6 +196,21 @@ class MockArtifactRegistryConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteRepository, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteRepository, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListPackages, @@ -172,6 +231,21 @@ class MockArtifactRegistryConnection request), (override)); + MOCK_METHOD( + StatusOr, DeletePackage, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeletePackageRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeletePackage, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListVersions, @@ -192,6 +266,21 @@ class MockArtifactRegistryConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteVersion, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::DeleteVersionRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteVersion, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -200,6 +289,21 @@ class MockArtifactRegistryConnection request), (override)); + MOCK_METHOD( + StatusOr, BatchDeleteVersions, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + BatchDeleteVersions, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListFiles, (google::devtools::artifactregistry::v1::ListFilesRequest request), diff --git a/google/cloud/asset/v1/asset_connection.cc b/google/cloud/asset/v1/asset_connection.cc index 0d4197eb2fece..2b93e108857c4 100644 --- a/google/cloud/asset/v1/asset_connection.cc +++ b/google/cloud/asset/v1/asset_connection.cc @@ -46,6 +46,21 @@ AssetServiceConnection::ExportAssets( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AssetServiceConnection::ExportAssets( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::asset::v1::ExportAssetsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AssetServiceConnection::ExportAssets(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange AssetServiceConnection::ListAssets( google::cloud::asset::v1:: ListAssetsRequest) { // NOLINT(performance-unnecessary-value-param) @@ -115,6 +130,22 @@ AssetServiceConnection::AnalyzeIamPolicyLongrunning( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AssetServiceConnection::AnalyzeIamPolicyLongrunning( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AssetServiceConnection::AnalyzeIamPolicyLongrunning( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AssetServiceConnection::AnalyzeMove( google::cloud::asset::v1::AnalyzeMoveRequest const&) { diff --git a/google/cloud/asset/v1/asset_connection.h b/google/cloud/asset/v1/asset_connection.h index db744bb8366f9..9dde9e0194163 100644 --- a/google/cloud/asset/v1/asset_connection.h +++ b/google/cloud/asset/v1/asset_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/asset/v1/asset_connection_idempotency_policy.h" #include "google/cloud/asset/v1/internal/asset_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -188,6 +190,14 @@ class AssetServiceConnection { virtual future> ExportAssets(google::cloud::asset::v1::ExportAssetsRequest const& request); + virtual StatusOr ExportAssets( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::asset::v1::ExportAssetsRequest const& request); + + virtual future> + ExportAssets(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListAssets( google::cloud::asset::v1::ListAssetsRequest request); @@ -228,6 +238,16 @@ class AssetServiceConnection { google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& request); + virtual StatusOr AnalyzeIamPolicyLongrunning( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& + request); + + virtual future< + StatusOr> + AnalyzeIamPolicyLongrunning(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr AnalyzeMove( google::cloud::asset::v1::AnalyzeMoveRequest const& request); diff --git a/google/cloud/asset/v1/internal/asset_connection_impl.cc b/google/cloud/asset/v1/internal/asset_connection_impl.cc index 73b2ec3a4835d..5acfb7b2df06d 100644 --- a/google/cloud/asset/v1/internal/asset_connection_impl.cc +++ b/google/cloud/asset/v1/internal/asset_connection_impl.cc @@ -101,6 +101,59 @@ AssetServiceConnectionImpl::ExportAssets( polling_policy(*current), __func__); } +StatusOr +AssetServiceConnectionImpl::ExportAssets( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::asset::v1::ExportAssetsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportAssets(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::asset::v1::ExportAssetsRequest const& request) { + return stub_->ExportAssets(context, options, request); + }, + *current, request, __func__); +} + +future> +AssetServiceConnectionImpl::ExportAssets( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ExportAssets", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::asset::v1::ExportAssetsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::asset::v1::ExportAssetsResponse>, + polling_policy(*current), __func__); +} + StreamRange AssetServiceConnectionImpl::ListAssets( google::cloud::asset::v1::ListAssetsRequest request) { @@ -338,6 +391,62 @@ AssetServiceConnectionImpl::AnalyzeIamPolicyLongrunning( polling_policy(*current), __func__); } +StatusOr +AssetServiceConnectionImpl::AnalyzeIamPolicyLongrunning( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AnalyzeIamPolicyLongrunning(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& + request) { + return stub_->AnalyzeIamPolicyLongrunning(context, options, request); + }, + *current, request, __func__); +} + +future> +AssetServiceConnectionImpl::AnalyzeIamPolicyLongrunning( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to AnalyzeIamPolicyLongrunning", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::asset::v1::AnalyzeIamPolicyLongrunningResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::asset::v1::AnalyzeIamPolicyLongrunningResponse>, + polling_policy(*current), __func__); +} + StatusOr AssetServiceConnectionImpl::AnalyzeMove( google::cloud::asset::v1::AnalyzeMoveRequest const& request) { diff --git a/google/cloud/asset/v1/internal/asset_connection_impl.h b/google/cloud/asset/v1/internal/asset_connection_impl.h index 12e985030abd2..adbe47ce71fec 100644 --- a/google/cloud/asset/v1/internal/asset_connection_impl.h +++ b/google/cloud/asset/v1/internal/asset_connection_impl.h @@ -54,6 +54,14 @@ class AssetServiceConnectionImpl : public asset_v1::AssetServiceConnection { future> ExportAssets( google::cloud::asset::v1::ExportAssetsRequest const& request) override; + StatusOr ExportAssets( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::asset::v1::ExportAssetsRequest const& request) override; + + future> ExportAssets( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListAssets( google::cloud::asset::v1::ListAssetsRequest request) override; @@ -95,6 +103,17 @@ class AssetServiceConnectionImpl : public asset_v1::AssetServiceConnection { google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& request) override; + StatusOr AnalyzeIamPolicyLongrunning( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& + request) override; + + future< + StatusOr> + AnalyzeIamPolicyLongrunning( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr AnalyzeMove( google::cloud::asset::v1::AnalyzeMoveRequest const& request) override; diff --git a/google/cloud/asset/v1/internal/asset_tracing_connection.cc b/google/cloud/asset/v1/internal/asset_tracing_connection.cc index 9eb9f26db270a..ffa3c729dadce 100644 --- a/google/cloud/asset/v1/internal/asset_tracing_connection.cc +++ b/google/cloud/asset/v1/internal/asset_tracing_connection.cc @@ -42,6 +42,30 @@ AssetServiceTracingConnection::ExportAssets( return internal::EndSpan(std::move(span), child_->ExportAssets(request)); } +StatusOr +AssetServiceTracingConnection::ExportAssets( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::asset::v1::ExportAssetsRequest const& request) { + auto span = + internal::MakeSpan("asset_v1::AssetServiceConnection::ExportAssets"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportAssets(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AssetServiceTracingConnection::ExportAssets( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("asset_v1::AssetServiceConnection::ExportAssets"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportAssets(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange AssetServiceTracingConnection::ListAssets( google::cloud::asset::v1::ListAssetsRequest request) { @@ -147,6 +171,31 @@ AssetServiceTracingConnection::AnalyzeIamPolicyLongrunning( child_->AnalyzeIamPolicyLongrunning(request)); } +StatusOr +AssetServiceTracingConnection::AnalyzeIamPolicyLongrunning( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& + request) { + auto span = internal::MakeSpan( + "asset_v1::AssetServiceConnection::AnalyzeIamPolicyLongrunning"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->AnalyzeIamPolicyLongrunning( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AssetServiceTracingConnection::AnalyzeIamPolicyLongrunning( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "asset_v1::AssetServiceConnection::AnalyzeIamPolicyLongrunning"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->AnalyzeIamPolicyLongrunning( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AssetServiceTracingConnection::AnalyzeMove( google::cloud::asset::v1::AnalyzeMoveRequest const& request) { diff --git a/google/cloud/asset/v1/internal/asset_tracing_connection.h b/google/cloud/asset/v1/internal/asset_tracing_connection.h index 0ca8a4dc6a6c7..dca13627d5647 100644 --- a/google/cloud/asset/v1/internal/asset_tracing_connection.h +++ b/google/cloud/asset/v1/internal/asset_tracing_connection.h @@ -42,6 +42,14 @@ class AssetServiceTracingConnection : public asset_v1::AssetServiceConnection { future> ExportAssets( google::cloud::asset::v1::ExportAssetsRequest const& request) override; + StatusOr ExportAssets( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::asset::v1::ExportAssetsRequest const& request) override; + + future> ExportAssets( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListAssets( google::cloud::asset::v1::ListAssetsRequest request) override; @@ -83,6 +91,17 @@ class AssetServiceTracingConnection : public asset_v1::AssetServiceConnection { google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& request) override; + StatusOr AnalyzeIamPolicyLongrunning( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& + request) override; + + future< + StatusOr> + AnalyzeIamPolicyLongrunning( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr AnalyzeMove( google::cloud::asset::v1::AnalyzeMoveRequest const& request) override; diff --git a/google/cloud/asset/v1/mocks/mock_asset_connection.h b/google/cloud/asset/v1/mocks/mock_asset_connection.h index c76c52e675a97..c883869877a5c 100644 --- a/google/cloud/asset/v1/mocks/mock_asset_connection.h +++ b/google/cloud/asset/v1/mocks/mock_asset_connection.h @@ -51,6 +51,17 @@ class MockAssetServiceConnection : public asset_v1::AssetServiceConnection { (google::cloud::asset::v1::ExportAssetsRequest const& request), (override)); + MOCK_METHOD(StatusOr, ExportAssets, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::asset::v1::ExportAssetsRequest const& request), + (override)); + + MOCK_METHOD(future>, + ExportAssets, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListAssets, (google::cloud::asset::v1::ListAssetsRequest request), (override)); @@ -105,6 +116,21 @@ class MockAssetServiceConnection : public asset_v1::AssetServiceConnection { request), (override)); + MOCK_METHOD( + StatusOr, AnalyzeIamPolicyLongrunning, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + AnalyzeIamPolicyLongrunning, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, AnalyzeMove, (google::cloud::asset::v1::AnalyzeMoveRequest const& request), diff --git a/google/cloud/assuredworkloads/v1/assured_workloads_connection.cc b/google/cloud/assuredworkloads/v1/assured_workloads_connection.cc index dbcd1ce65d750..b39430da7e461 100644 --- a/google/cloud/assuredworkloads/v1/assured_workloads_connection.cc +++ b/google/cloud/assuredworkloads/v1/assured_workloads_connection.cc @@ -47,6 +47,22 @@ AssuredWorkloadsServiceConnection::CreateWorkload( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AssuredWorkloadsServiceConnection::CreateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::assuredworkloads::v1::CreateWorkloadRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AssuredWorkloadsServiceConnection::CreateWorkload( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AssuredWorkloadsServiceConnection::UpdateWorkload( google::cloud::assuredworkloads::v1::UpdateWorkloadRequest const&) { diff --git a/google/cloud/assuredworkloads/v1/assured_workloads_connection.h b/google/cloud/assuredworkloads/v1/assured_workloads_connection.h index ad1d24d43d24d..70cfe63e22100 100644 --- a/google/cloud/assuredworkloads/v1/assured_workloads_connection.h +++ b/google/cloud/assuredworkloads/v1/assured_workloads_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/assuredworkloads/v1/assured_workloads_connection_idempotency_policy.h" #include "google/cloud/assuredworkloads/v1/internal/assured_workloads_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -198,6 +200,15 @@ class AssuredWorkloadsServiceConnection { google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& request); + virtual StatusOr CreateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& + request); + + virtual future> + CreateWorkload(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr UpdateWorkload( google::cloud::assuredworkloads::v1::UpdateWorkloadRequest const& diff --git a/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.cc b/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.cc index e5438aa2fce50..8c87b963ad2e6 100644 --- a/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.cc +++ b/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.cc @@ -113,6 +113,61 @@ AssuredWorkloadsServiceConnectionImpl::CreateWorkload( polling_policy(*current), __func__); } +StatusOr +AssuredWorkloadsServiceConnectionImpl::CreateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateWorkload(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& + request) { + return stub_->CreateWorkload(context, options, request); + }, + *current, request, __func__); +} + +future> +AssuredWorkloadsServiceConnectionImpl::CreateWorkload( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateWorkload", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::assuredworkloads::v1::Workload>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::assuredworkloads::v1::Workload>, + polling_policy(*current), __func__); +} + StatusOr AssuredWorkloadsServiceConnectionImpl::UpdateWorkload( google::cloud::assuredworkloads::v1::UpdateWorkloadRequest const& request) { diff --git a/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.h b/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.h index ba78fda0b7b2c..e9715fcb37dcc 100644 --- a/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.h +++ b/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.h @@ -58,6 +58,15 @@ class AssuredWorkloadsServiceConnectionImpl google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& request) override; + StatusOr CreateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& request) + override; + + future> + CreateWorkload(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateWorkload( google::cloud::assuredworkloads::v1::UpdateWorkloadRequest const& request) override; diff --git a/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.cc b/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.cc index 685669b5820db..5eedadcedf097 100644 --- a/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.cc +++ b/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.cc @@ -44,6 +44,30 @@ AssuredWorkloadsServiceTracingConnection::CreateWorkload( return internal::EndSpan(std::move(span), child_->CreateWorkload(request)); } +StatusOr +AssuredWorkloadsServiceTracingConnection::CreateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& request) { + auto span = internal::MakeSpan( + "assuredworkloads_v1::AssuredWorkloadsServiceConnection::CreateWorkload"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateWorkload(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AssuredWorkloadsServiceTracingConnection::CreateWorkload( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "assuredworkloads_v1::AssuredWorkloadsServiceConnection::CreateWorkload"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateWorkload(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AssuredWorkloadsServiceTracingConnection::UpdateWorkload( google::cloud::assuredworkloads::v1::UpdateWorkloadRequest const& request) { diff --git a/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.h b/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.h index 932409bd24b47..59a1a72560a74 100644 --- a/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.h +++ b/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.h @@ -46,6 +46,15 @@ class AssuredWorkloadsServiceTracingConnection google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& request) override; + StatusOr CreateWorkload( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& request) + override; + + future> + CreateWorkload(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateWorkload( google::cloud::assuredworkloads::v1::UpdateWorkloadRequest const& request) override; diff --git a/google/cloud/assuredworkloads/v1/mocks/mock_assured_workloads_connection.h b/google/cloud/assuredworkloads/v1/mocks/mock_assured_workloads_connection.h index 61cc2d4b414b2..a7d51e5cffcd9 100644 --- a/google/cloud/assuredworkloads/v1/mocks/mock_assured_workloads_connection.h +++ b/google/cloud/assuredworkloads/v1/mocks/mock_assured_workloads_connection.h @@ -53,6 +53,18 @@ class MockAssuredWorkloadsServiceConnection request), (override)); + MOCK_METHOD(StatusOr, CreateWorkload, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateWorkload, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, UpdateWorkload, (google::cloud::assuredworkloads::v1::UpdateWorkloadRequest const& diff --git a/google/cloud/automl/v1/auto_ml_connection.cc b/google/cloud/automl/v1/auto_ml_connection.cc index 375ac72e52ce2..7ab40899d1063 100644 --- a/google/cloud/automl/v1/auto_ml_connection.cc +++ b/google/cloud/automl/v1/auto_ml_connection.cc @@ -46,6 +46,21 @@ AutoMlConnection::CreateDataset( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AutoMlConnection::CreateDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::CreateDatasetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AutoMlConnection::CreateDataset(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AutoMlConnection::GetDataset( google::cloud::automl::v1::GetDatasetRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -71,6 +86,21 @@ AutoMlConnection::DeleteDataset( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AutoMlConnection::DeleteDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeleteDatasetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AutoMlConnection::DeleteDataset(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AutoMlConnection::ImportData( google::cloud::automl::v1::ImportDataRequest const&) { @@ -79,6 +109,21 @@ AutoMlConnection::ImportData( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AutoMlConnection::ImportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ImportDataRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AutoMlConnection::ImportData(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AutoMlConnection::ExportData( google::cloud::automl::v1::ExportDataRequest const&) { @@ -87,6 +132,21 @@ AutoMlConnection::ExportData( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AutoMlConnection::ExportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ExportDataRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AutoMlConnection::ExportData(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AutoMlConnection::GetAnnotationSpec( google::cloud::automl::v1::GetAnnotationSpecRequest const&) { @@ -101,6 +161,21 @@ AutoMlConnection::CreateModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AutoMlConnection::CreateModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::CreateModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AutoMlConnection::CreateModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AutoMlConnection::GetModel( google::cloud::automl::v1::GetModelRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -121,6 +196,21 @@ AutoMlConnection::DeleteModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AutoMlConnection::DeleteModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeleteModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AutoMlConnection::DeleteModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AutoMlConnection::UpdateModel( google::cloud::automl::v1::UpdateModelRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -134,6 +224,21 @@ AutoMlConnection::DeployModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AutoMlConnection::DeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeployModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AutoMlConnection::DeployModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AutoMlConnection::UndeployModel( google::cloud::automl::v1::UndeployModelRequest const&) { @@ -142,6 +247,21 @@ AutoMlConnection::UndeployModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AutoMlConnection::UndeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::UndeployModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AutoMlConnection::UndeployModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AutoMlConnection::ExportModel( google::cloud::automl::v1::ExportModelRequest const&) { @@ -150,6 +270,21 @@ AutoMlConnection::ExportModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AutoMlConnection::ExportModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ExportModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AutoMlConnection::ExportModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AutoMlConnection::GetModelEvaluation( google::cloud::automl::v1::GetModelEvaluationRequest const&) { diff --git a/google/cloud/automl/v1/auto_ml_connection.h b/google/cloud/automl/v1/auto_ml_connection.h index 3926e82eb20cc..a684e3538d2c9 100644 --- a/google/cloud/automl/v1/auto_ml_connection.h +++ b/google/cloud/automl/v1/auto_ml_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/automl/v1/auto_ml_connection_idempotency_policy.h" #include "google/cloud/automl/v1/internal/auto_ml_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -185,6 +187,14 @@ class AutoMlConnection { virtual future> CreateDataset( google::cloud::automl::v1::CreateDatasetRequest const& request); + virtual StatusOr CreateDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::CreateDatasetRequest const& request); + + virtual future> CreateDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetDataset( google::cloud::automl::v1::GetDatasetRequest const& request); @@ -197,18 +207,50 @@ class AutoMlConnection { virtual future> DeleteDataset(google::cloud::automl::v1::DeleteDatasetRequest const& request); + virtual StatusOr DeleteDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeleteDatasetRequest const& request); + + virtual future> + DeleteDataset(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ImportData(google::cloud::automl::v1::ImportDataRequest const& request); + virtual StatusOr ImportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ImportDataRequest const& request); + + virtual future> + ImportData(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ExportData(google::cloud::automl::v1::ExportDataRequest const& request); + virtual StatusOr ExportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ExportDataRequest const& request); + + virtual future> + ExportData(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetAnnotationSpec( google::cloud::automl::v1::GetAnnotationSpecRequest const& request); virtual future> CreateModel( google::cloud::automl::v1::CreateModelRequest const& request); + virtual StatusOr CreateModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::CreateModelRequest const& request); + + virtual future> CreateModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetModel( google::cloud::automl::v1::GetModelRequest const& request); @@ -218,18 +260,50 @@ class AutoMlConnection { virtual future> DeleteModel(google::cloud::automl::v1::DeleteModelRequest const& request); + virtual StatusOr DeleteModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeleteModelRequest const& request); + + virtual future> + DeleteModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr UpdateModel( google::cloud::automl::v1::UpdateModelRequest const& request); virtual future> DeployModel(google::cloud::automl::v1::DeployModelRequest const& request); + virtual StatusOr DeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeployModelRequest const& request); + + virtual future> + DeployModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UndeployModel(google::cloud::automl::v1::UndeployModelRequest const& request); + virtual StatusOr UndeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::UndeployModelRequest const& request); + + virtual future> + UndeployModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ExportModel(google::cloud::automl::v1::ExportModelRequest const& request); + virtual StatusOr ExportModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ExportModelRequest const& request); + + virtual future> + ExportModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetModelEvaluation( google::cloud::automl::v1::GetModelEvaluationRequest const& request); diff --git a/google/cloud/automl/v1/internal/auto_ml_connection_impl.cc b/google/cloud/automl/v1/internal/auto_ml_connection_impl.cc index d158eac43daf5..a0a8338b95605 100644 --- a/google/cloud/automl/v1/internal/auto_ml_connection_impl.cc +++ b/google/cloud/automl/v1/internal/auto_ml_connection_impl.cc @@ -101,6 +101,57 @@ AutoMlConnectionImpl::CreateDataset( polling_policy(*current), __func__); } +StatusOr AutoMlConnectionImpl::CreateDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::CreateDatasetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDataset(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::automl::v1::CreateDatasetRequest const& request) { + return stub_->CreateDataset(context, options, request); + }, + *current, request, __func__); +} + +future> +AutoMlConnectionImpl::CreateDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDataset", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::automl::v1::Dataset>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::automl::v1::Dataset>, + polling_policy(*current), __func__); +} + StatusOr AutoMlConnectionImpl::GetDataset( google::cloud::automl::v1::GetDatasetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -201,6 +252,58 @@ AutoMlConnectionImpl::DeleteDataset( polling_policy(*current), __func__); } +StatusOr AutoMlConnectionImpl::DeleteDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeleteDatasetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDataset(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::automl::v1::DeleteDatasetRequest const& request) { + return stub_->DeleteDataset(context, options, request); + }, + *current, request, __func__); +} + +future> +AutoMlConnectionImpl::DeleteDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDataset", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::automl::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::automl::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> AutoMlConnectionImpl::ImportData( google::cloud::automl::v1::ImportDataRequest const& request) { @@ -240,6 +343,58 @@ AutoMlConnectionImpl::ImportData( polling_policy(*current), __func__); } +StatusOr AutoMlConnectionImpl::ImportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ImportDataRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportData(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::automl::v1::ImportDataRequest const& request) { + return stub_->ImportData(context, options, request); + }, + *current, request, __func__); +} + +future> +AutoMlConnectionImpl::ImportData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportData", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::automl::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::automl::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> AutoMlConnectionImpl::ExportData( google::cloud::automl::v1::ExportDataRequest const& request) { @@ -279,6 +434,58 @@ AutoMlConnectionImpl::ExportData( polling_policy(*current), __func__); } +StatusOr AutoMlConnectionImpl::ExportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ExportDataRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportData(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::automl::v1::ExportDataRequest const& request) { + return stub_->ExportData(context, options, request); + }, + *current, request, __func__); +} + +future> +AutoMlConnectionImpl::ExportData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ExportData", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::automl::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::automl::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr AutoMlConnectionImpl::GetAnnotationSpec( google::cloud::automl::v1::GetAnnotationSpecRequest const& request) { @@ -333,6 +540,57 @@ AutoMlConnectionImpl::CreateModel( polling_policy(*current), __func__); } +StatusOr AutoMlConnectionImpl::CreateModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::CreateModelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::automl::v1::CreateModelRequest const& request) { + return stub_->CreateModel(context, options, request); + }, + *current, request, __func__); +} + +future> +AutoMlConnectionImpl::CreateModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::automl::v1::Model>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::automl::v1::Model>, + polling_policy(*current), __func__); +} + StatusOr AutoMlConnectionImpl::GetModel( google::cloud::automl::v1::GetModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -417,6 +675,58 @@ AutoMlConnectionImpl::DeleteModel( polling_policy(*current), __func__); } +StatusOr AutoMlConnectionImpl::DeleteModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeleteModelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::automl::v1::DeleteModelRequest const& request) { + return stub_->DeleteModel(context, options, request); + }, + *current, request, __func__); +} + +future> +AutoMlConnectionImpl::DeleteModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::automl::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::automl::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr AutoMlConnectionImpl::UpdateModel( google::cloud::automl::v1::UpdateModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -469,6 +779,58 @@ AutoMlConnectionImpl::DeployModel( polling_policy(*current), __func__); } +StatusOr AutoMlConnectionImpl::DeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeployModelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeployModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::automl::v1::DeployModelRequest const& request) { + return stub_->DeployModel(context, options, request); + }, + *current, request, __func__); +} + +future> +AutoMlConnectionImpl::DeployModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeployModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::automl::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::automl::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> AutoMlConnectionImpl::UndeployModel( google::cloud::automl::v1::UndeployModelRequest const& request) { @@ -508,6 +870,58 @@ AutoMlConnectionImpl::UndeployModel( polling_policy(*current), __func__); } +StatusOr AutoMlConnectionImpl::UndeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::UndeployModelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UndeployModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::automl::v1::UndeployModelRequest const& request) { + return stub_->UndeployModel(context, options, request); + }, + *current, request, __func__); +} + +future> +AutoMlConnectionImpl::UndeployModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UndeployModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::automl::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::automl::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> AutoMlConnectionImpl::ExportModel( google::cloud::automl::v1::ExportModelRequest const& request) { @@ -547,6 +961,58 @@ AutoMlConnectionImpl::ExportModel( polling_policy(*current), __func__); } +StatusOr AutoMlConnectionImpl::ExportModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ExportModelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::automl::v1::ExportModelRequest const& request) { + return stub_->ExportModel(context, options, request); + }, + *current, request, __func__); +} + +future> +AutoMlConnectionImpl::ExportModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ExportModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::automl::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::automl::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr AutoMlConnectionImpl::GetModelEvaluation( google::cloud::automl::v1::GetModelEvaluationRequest const& request) { diff --git a/google/cloud/automl/v1/internal/auto_ml_connection_impl.h b/google/cloud/automl/v1/internal/auto_ml_connection_impl.h index a21303cf2f4d4..14ff7a470bacb 100644 --- a/google/cloud/automl/v1/internal/auto_ml_connection_impl.h +++ b/google/cloud/automl/v1/internal/auto_ml_connection_impl.h @@ -53,6 +53,14 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { future> CreateDataset( google::cloud::automl::v1::CreateDatasetRequest const& request) override; + StatusOr CreateDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::CreateDatasetRequest const& request) override; + + future> CreateDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDataset( google::cloud::automl::v1::GetDatasetRequest const& request) override; @@ -65,12 +73,36 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { future> DeleteDataset( google::cloud::automl::v1::DeleteDatasetRequest const& request) override; + StatusOr DeleteDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeleteDatasetRequest const& request) override; + + future> DeleteDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportData( google::cloud::automl::v1::ImportDataRequest const& request) override; + StatusOr ImportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ImportDataRequest const& request) override; + + future> ImportData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportData( google::cloud::automl::v1::ExportDataRequest const& request) override; + StatusOr ExportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ExportDataRequest const& request) override; + + future> ExportData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAnnotationSpec( google::cloud::automl::v1::GetAnnotationSpecRequest const& request) override; @@ -78,6 +110,14 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { future> CreateModel( google::cloud::automl::v1::CreateModelRequest const& request) override; + StatusOr CreateModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::CreateModelRequest const& request) override; + + future> CreateModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetModel( google::cloud::automl::v1::GetModelRequest const& request) override; @@ -87,18 +127,50 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { future> DeleteModel( google::cloud::automl::v1::DeleteModelRequest const& request) override; + StatusOr DeleteModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeleteModelRequest const& request) override; + + future> DeleteModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateModel( google::cloud::automl::v1::UpdateModelRequest const& request) override; future> DeployModel( google::cloud::automl::v1::DeployModelRequest const& request) override; + StatusOr DeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeployModelRequest const& request) override; + + future> DeployModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeployModel( google::cloud::automl::v1::UndeployModelRequest const& request) override; + StatusOr UndeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::UndeployModelRequest const& request) override; + + future> UndeployModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportModel( google::cloud::automl::v1::ExportModelRequest const& request) override; + StatusOr ExportModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ExportModelRequest const& request) override; + + future> ExportModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetModelEvaluation( google::cloud::automl::v1::GetModelEvaluationRequest const& request) override; diff --git a/google/cloud/automl/v1/internal/auto_ml_tracing_connection.cc b/google/cloud/automl/v1/internal/auto_ml_tracing_connection.cc index 6c59fbde98de9..3c984e234a6cd 100644 --- a/google/cloud/automl/v1/internal/auto_ml_tracing_connection.cc +++ b/google/cloud/automl/v1/internal/auto_ml_tracing_connection.cc @@ -41,6 +41,27 @@ AutoMlTracingConnection::CreateDataset( return internal::EndSpan(std::move(span), child_->CreateDataset(request)); } +StatusOr AutoMlTracingConnection::CreateDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::CreateDatasetRequest const& request) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::CreateDataset"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateDataset(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AutoMlTracingConnection::CreateDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::CreateDataset"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateDataset(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AutoMlTracingConnection::GetDataset( google::cloud::automl::v1::GetDatasetRequest const& request) { @@ -75,6 +96,27 @@ AutoMlTracingConnection::DeleteDataset( return internal::EndSpan(std::move(span), child_->DeleteDataset(request)); } +StatusOr AutoMlTracingConnection::DeleteDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeleteDatasetRequest const& request) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::DeleteDataset"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteDataset(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AutoMlTracingConnection::DeleteDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::DeleteDataset"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteDataset(google::cloud::ExperimentalTag{}, operation)); +} + future> AutoMlTracingConnection::ImportData( google::cloud::automl::v1::ImportDataRequest const& request) { @@ -83,6 +125,27 @@ AutoMlTracingConnection::ImportData( return internal::EndSpan(std::move(span), child_->ImportData(request)); } +StatusOr AutoMlTracingConnection::ImportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ImportDataRequest const& request) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::ImportData"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportData(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AutoMlTracingConnection::ImportData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::ImportData"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportData(google::cloud::ExperimentalTag{}, operation)); +} + future> AutoMlTracingConnection::ExportData( google::cloud::automl::v1::ExportDataRequest const& request) { @@ -91,6 +154,27 @@ AutoMlTracingConnection::ExportData( return internal::EndSpan(std::move(span), child_->ExportData(request)); } +StatusOr AutoMlTracingConnection::ExportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ExportDataRequest const& request) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::ExportData"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportData(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AutoMlTracingConnection::ExportData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::ExportData"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportData(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AutoMlTracingConnection::GetAnnotationSpec( google::cloud::automl::v1::GetAnnotationSpecRequest const& request) { @@ -108,6 +192,27 @@ AutoMlTracingConnection::CreateModel( return internal::EndSpan(std::move(span), child_->CreateModel(request)); } +StatusOr AutoMlTracingConnection::CreateModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::CreateModelRequest const& request) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::CreateModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AutoMlTracingConnection::CreateModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::CreateModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateModel(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AutoMlTracingConnection::GetModel( google::cloud::automl::v1::GetModelRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::GetModel"); @@ -133,6 +238,27 @@ AutoMlTracingConnection::DeleteModel( return internal::EndSpan(std::move(span), child_->DeleteModel(request)); } +StatusOr AutoMlTracingConnection::DeleteModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeleteModelRequest const& request) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::DeleteModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AutoMlTracingConnection::DeleteModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::DeleteModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteModel(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AutoMlTracingConnection::UpdateModel( google::cloud::automl::v1::UpdateModelRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::UpdateModel"); @@ -148,6 +274,27 @@ AutoMlTracingConnection::DeployModel( return internal::EndSpan(std::move(span), child_->DeployModel(request)); } +StatusOr AutoMlTracingConnection::DeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeployModelRequest const& request) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::DeployModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeployModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AutoMlTracingConnection::DeployModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::DeployModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeployModel(google::cloud::ExperimentalTag{}, operation)); +} + future> AutoMlTracingConnection::UndeployModel( google::cloud::automl::v1::UndeployModelRequest const& request) { @@ -156,6 +303,27 @@ AutoMlTracingConnection::UndeployModel( return internal::EndSpan(std::move(span), child_->UndeployModel(request)); } +StatusOr AutoMlTracingConnection::UndeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::UndeployModelRequest const& request) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::UndeployModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UndeployModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AutoMlTracingConnection::UndeployModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::UndeployModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UndeployModel(google::cloud::ExperimentalTag{}, operation)); +} + future> AutoMlTracingConnection::ExportModel( google::cloud::automl::v1::ExportModelRequest const& request) { @@ -164,6 +332,27 @@ AutoMlTracingConnection::ExportModel( return internal::EndSpan(std::move(span), child_->ExportModel(request)); } +StatusOr AutoMlTracingConnection::ExportModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ExportModelRequest const& request) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::ExportModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AutoMlTracingConnection::ExportModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("automl_v1::AutoMlConnection::ExportModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportModel(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AutoMlTracingConnection::GetModelEvaluation( google::cloud::automl::v1::GetModelEvaluationRequest const& request) { diff --git a/google/cloud/automl/v1/internal/auto_ml_tracing_connection.h b/google/cloud/automl/v1/internal/auto_ml_tracing_connection.h index f33bef8718b43..195a38909e3e2 100644 --- a/google/cloud/automl/v1/internal/auto_ml_tracing_connection.h +++ b/google/cloud/automl/v1/internal/auto_ml_tracing_connection.h @@ -42,6 +42,14 @@ class AutoMlTracingConnection : public automl_v1::AutoMlConnection { future> CreateDataset( google::cloud::automl::v1::CreateDatasetRequest const& request) override; + StatusOr CreateDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::CreateDatasetRequest const& request) override; + + future> CreateDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDataset( google::cloud::automl::v1::GetDatasetRequest const& request) override; @@ -54,12 +62,36 @@ class AutoMlTracingConnection : public automl_v1::AutoMlConnection { future> DeleteDataset( google::cloud::automl::v1::DeleteDatasetRequest const& request) override; + StatusOr DeleteDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeleteDatasetRequest const& request) override; + + future> DeleteDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportData( google::cloud::automl::v1::ImportDataRequest const& request) override; + StatusOr ImportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ImportDataRequest const& request) override; + + future> ImportData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportData( google::cloud::automl::v1::ExportDataRequest const& request) override; + StatusOr ExportData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ExportDataRequest const& request) override; + + future> ExportData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAnnotationSpec( google::cloud::automl::v1::GetAnnotationSpecRequest const& request) override; @@ -67,6 +99,14 @@ class AutoMlTracingConnection : public automl_v1::AutoMlConnection { future> CreateModel( google::cloud::automl::v1::CreateModelRequest const& request) override; + StatusOr CreateModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::CreateModelRequest const& request) override; + + future> CreateModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetModel( google::cloud::automl::v1::GetModelRequest const& request) override; @@ -76,18 +116,50 @@ class AutoMlTracingConnection : public automl_v1::AutoMlConnection { future> DeleteModel( google::cloud::automl::v1::DeleteModelRequest const& request) override; + StatusOr DeleteModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeleteModelRequest const& request) override; + + future> DeleteModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateModel( google::cloud::automl::v1::UpdateModelRequest const& request) override; future> DeployModel( google::cloud::automl::v1::DeployModelRequest const& request) override; + StatusOr DeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeployModelRequest const& request) override; + + future> DeployModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeployModel( google::cloud::automl::v1::UndeployModelRequest const& request) override; + StatusOr UndeployModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::UndeployModelRequest const& request) override; + + future> UndeployModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportModel( google::cloud::automl::v1::ExportModelRequest const& request) override; + StatusOr ExportModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ExportModelRequest const& request) override; + + future> ExportModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetModelEvaluation( google::cloud::automl::v1::GetModelEvaluationRequest const& request) override; diff --git a/google/cloud/automl/v1/internal/prediction_connection_impl.cc b/google/cloud/automl/v1/internal/prediction_connection_impl.cc index 8c998aa7dc75d..ae91c26577a49 100644 --- a/google/cloud/automl/v1/internal/prediction_connection_impl.cc +++ b/google/cloud/automl/v1/internal/prediction_connection_impl.cc @@ -118,6 +118,59 @@ PredictionServiceConnectionImpl::BatchPredict( polling_policy(*current), __func__); } +StatusOr +PredictionServiceConnectionImpl::BatchPredict( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::BatchPredictRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchPredict(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::automl::v1::BatchPredictRequest const& request) { + return stub_->BatchPredict(context, options, request); + }, + *current, request, __func__); +} + +future> +PredictionServiceConnectionImpl::BatchPredict( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to BatchPredict", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::automl::v1::BatchPredictResult>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::automl::v1::BatchPredictResult>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace automl_v1_internal } // namespace cloud diff --git a/google/cloud/automl/v1/internal/prediction_connection_impl.h b/google/cloud/automl/v1/internal/prediction_connection_impl.h index feec3310f573b..202af096c98b5 100644 --- a/google/cloud/automl/v1/internal/prediction_connection_impl.h +++ b/google/cloud/automl/v1/internal/prediction_connection_impl.h @@ -57,6 +57,14 @@ class PredictionServiceConnectionImpl future> BatchPredict( google::cloud::automl::v1::BatchPredictRequest const& request) override; + StatusOr BatchPredict( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::BatchPredictRequest const& request) override; + + future> BatchPredict( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/automl/v1/internal/prediction_tracing_connection.cc b/google/cloud/automl/v1/internal/prediction_tracing_connection.cc index 5c4371a694927..6e6b355ccf285 100644 --- a/google/cloud/automl/v1/internal/prediction_tracing_connection.cc +++ b/google/cloud/automl/v1/internal/prediction_tracing_connection.cc @@ -50,6 +50,30 @@ PredictionServiceTracingConnection::BatchPredict( return internal::EndSpan(std::move(span), child_->BatchPredict(request)); } +StatusOr +PredictionServiceTracingConnection::BatchPredict( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::BatchPredictRequest const& request) { + auto span = internal::MakeSpan( + "automl_v1::PredictionServiceConnection::BatchPredict"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BatchPredict(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PredictionServiceTracingConnection::BatchPredict( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "automl_v1::PredictionServiceConnection::BatchPredict"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BatchPredict(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/automl/v1/internal/prediction_tracing_connection.h b/google/cloud/automl/v1/internal/prediction_tracing_connection.h index fe8c29e8bd335..08798b281d149 100644 --- a/google/cloud/automl/v1/internal/prediction_tracing_connection.h +++ b/google/cloud/automl/v1/internal/prediction_tracing_connection.h @@ -46,6 +46,14 @@ class PredictionServiceTracingConnection future> BatchPredict( google::cloud::automl::v1::BatchPredictRequest const& request) override; + StatusOr BatchPredict( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::BatchPredictRequest const& request) override; + + future> BatchPredict( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/automl/v1/mocks/mock_auto_ml_connection.h b/google/cloud/automl/v1/mocks/mock_auto_ml_connection.h index ef1e4a81e3e0b..994eae0b8f65d 100644 --- a/google/cloud/automl/v1/mocks/mock_auto_ml_connection.h +++ b/google/cloud/automl/v1/mocks/mock_auto_ml_connection.h @@ -51,6 +51,17 @@ class MockAutoMlConnection : public automl_v1::AutoMlConnection { (google::cloud::automl::v1::CreateDatasetRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateDataset, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::CreateDatasetRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateDataset, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetDataset, (google::cloud::automl::v1::GetDatasetRequest const& request), (override)); @@ -68,16 +79,49 @@ class MockAutoMlConnection : public automl_v1::AutoMlConnection { (google::cloud::automl::v1::DeleteDatasetRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteDataset, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeleteDatasetRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteDataset, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, ImportData, (google::cloud::automl::v1::ImportDataRequest const& request), (override)); + MOCK_METHOD(StatusOr, ImportData, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ImportDataRequest const& request), + (override)); + + MOCK_METHOD(future>, + ImportData, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, ExportData, (google::cloud::automl::v1::ExportDataRequest const& request), (override)); + MOCK_METHOD(StatusOr, ExportData, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ExportDataRequest const& request), + (override)); + + MOCK_METHOD(future>, + ExportData, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetAnnotationSpec, (google::cloud::automl::v1::GetAnnotationSpecRequest const& request), @@ -87,6 +131,16 @@ class MockAutoMlConnection : public automl_v1::AutoMlConnection { (google::cloud::automl::v1::CreateModelRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::CreateModelRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetModel, (google::cloud::automl::v1::GetModelRequest const& request), (override)); @@ -100,6 +154,17 @@ class MockAutoMlConnection : public automl_v1::AutoMlConnection { (google::cloud::automl::v1::DeleteModelRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeleteModelRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, UpdateModel, (google::cloud::automl::v1::UpdateModelRequest const& request), (override)); @@ -109,16 +174,49 @@ class MockAutoMlConnection : public automl_v1::AutoMlConnection { (google::cloud::automl::v1::DeployModelRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeployModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::DeployModelRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeployModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UndeployModel, (google::cloud::automl::v1::UndeployModelRequest const& request), (override)); + MOCK_METHOD(StatusOr, UndeployModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::UndeployModelRequest const& request), + (override)); + + MOCK_METHOD(future>, + UndeployModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, ExportModel, (google::cloud::automl::v1::ExportModelRequest const& request), (override)); + MOCK_METHOD(StatusOr, ExportModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::ExportModelRequest const& request), + (override)); + + MOCK_METHOD(future>, + ExportModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetModelEvaluation, (google::cloud::automl::v1::GetModelEvaluationRequest const& request), diff --git a/google/cloud/automl/v1/mocks/mock_prediction_connection.h b/google/cloud/automl/v1/mocks/mock_prediction_connection.h index f0efcb84c07ab..5e4671d451060 100644 --- a/google/cloud/automl/v1/mocks/mock_prediction_connection.h +++ b/google/cloud/automl/v1/mocks/mock_prediction_connection.h @@ -55,6 +55,17 @@ class MockPredictionServiceConnection BatchPredict, (google::cloud::automl::v1::BatchPredictRequest const& request), (override)); + + MOCK_METHOD(StatusOr, BatchPredict, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::BatchPredictRequest const& request), + (override)); + + MOCK_METHOD(future>, + BatchPredict, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/automl/v1/prediction_connection.cc b/google/cloud/automl/v1/prediction_connection.cc index 92e17f371ce0a..1c9cba8bb944a 100644 --- a/google/cloud/automl/v1/prediction_connection.cc +++ b/google/cloud/automl/v1/prediction_connection.cc @@ -51,6 +51,22 @@ PredictionServiceConnection::BatchPredict( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PredictionServiceConnection::BatchPredict( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::BatchPredictRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PredictionServiceConnection::BatchPredict( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakePredictionServiceConnection( Options options) { internal::CheckExpectedOptions> BatchPredict(google::cloud::automl::v1::BatchPredictRequest const& request); + + virtual StatusOr BatchPredict( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::automl::v1::BatchPredictRequest const& request); + + virtual future> + BatchPredict(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/backupdr/v1/backup_dr_connection.cc b/google/cloud/backupdr/v1/backup_dr_connection.cc index 84a764720e81f..93e8f78668228 100644 --- a/google/cloud/backupdr/v1/backup_dr_connection.cc +++ b/google/cloud/backupdr/v1/backup_dr_connection.cc @@ -60,6 +60,22 @@ BackupDRConnection::CreateManagementServer( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackupDRConnection::CreateManagementServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::backupdr::v1::CreateManagementServerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackupDRConnection::CreateManagementServer( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BackupDRConnection::DeleteManagementServer( google::cloud::backupdr::v1::DeleteManagementServerRequest const&) { @@ -68,6 +84,22 @@ BackupDRConnection::DeleteManagementServer( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackupDRConnection::DeleteManagementServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::backupdr::v1::DeleteManagementServerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackupDRConnection::DeleteManagementServer( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeBackupDRConnection(Options options) { internal::CheckExpectedOptions CreateManagementServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::backupdr::v1::CreateManagementServerRequest const& + request); + + virtual future> + CreateManagementServer(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteManagementServer( google::cloud::backupdr::v1::DeleteManagementServerRequest const& request); + + virtual StatusOr DeleteManagementServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::backupdr::v1::DeleteManagementServerRequest const& + request); + + virtual future> + DeleteManagementServer(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.cc b/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.cc index 6f86da5c1c992..e72060bf400ba 100644 --- a/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.cc +++ b/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.cc @@ -153,6 +153,60 @@ BackupDRConnectionImpl::CreateManagementServer( polling_policy(*current), __func__); } +StatusOr +BackupDRConnectionImpl::CreateManagementServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::backupdr::v1::CreateManagementServerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateManagementServer(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::backupdr::v1::CreateManagementServerRequest const& + request) { + return stub_->CreateManagementServer(context, options, request); + }, + *current, request, __func__); +} + +future> +BackupDRConnectionImpl::CreateManagementServer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateManagementServer", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::backupdr::v1::ManagementServer>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::backupdr::v1::ManagementServer>, + polling_policy(*current), __func__); +} + future> BackupDRConnectionImpl::DeleteManagementServer( google::cloud::backupdr::v1::DeleteManagementServerRequest const& request) { @@ -193,6 +247,60 @@ BackupDRConnectionImpl::DeleteManagementServer( polling_policy(*current), __func__); } +StatusOr +BackupDRConnectionImpl::DeleteManagementServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::backupdr::v1::DeleteManagementServerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteManagementServer(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::backupdr::v1::DeleteManagementServerRequest const& + request) { + return stub_->DeleteManagementServer(context, options, request); + }, + *current, request, __func__); +} + +future> +BackupDRConnectionImpl::DeleteManagementServer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteManagementServer", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::backupdr::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::backupdr::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace backupdr_v1_internal } // namespace cloud diff --git a/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.h b/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.h index 28232b6be2a56..49db26bdddd4e 100644 --- a/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.h +++ b/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.h @@ -65,11 +65,31 @@ class BackupDRConnectionImpl : public backupdr_v1::BackupDRConnection { google::cloud::backupdr::v1::CreateManagementServerRequest const& request) override; + StatusOr CreateManagementServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::backupdr::v1::CreateManagementServerRequest const& request) + override; + + future> + CreateManagementServer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteManagementServer( google::cloud::backupdr::v1::DeleteManagementServerRequest const& request) override; + StatusOr DeleteManagementServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::backupdr::v1::DeleteManagementServerRequest const& request) + override; + + future> + DeleteManagementServer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.cc b/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.cc index 54d05a8bee8e5..ce06b3678b33d 100644 --- a/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.cc +++ b/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.cc @@ -64,6 +64,30 @@ BackupDRTracingConnection::CreateManagementServer( child_->CreateManagementServer(request)); } +StatusOr +BackupDRTracingConnection::CreateManagementServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::backupdr::v1::CreateManagementServerRequest const& request) { + auto span = internal::MakeSpan( + "backupdr_v1::BackupDRConnection::CreateManagementServer"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateManagementServer( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackupDRTracingConnection::CreateManagementServer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "backupdr_v1::BackupDRConnection::CreateManagementServer"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateManagementServer( + google::cloud::ExperimentalTag{}, operation)); +} + future> BackupDRTracingConnection::DeleteManagementServer( google::cloud::backupdr::v1::DeleteManagementServerRequest const& request) { @@ -74,6 +98,30 @@ BackupDRTracingConnection::DeleteManagementServer( child_->DeleteManagementServer(request)); } +StatusOr +BackupDRTracingConnection::DeleteManagementServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::backupdr::v1::DeleteManagementServerRequest const& request) { + auto span = internal::MakeSpan( + "backupdr_v1::BackupDRConnection::DeleteManagementServer"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteManagementServer( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackupDRTracingConnection::DeleteManagementServer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "backupdr_v1::BackupDRConnection::DeleteManagementServer"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteManagementServer( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr MakeBackupDRTracingConnection( diff --git a/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.h b/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.h index e1335316a46e3..83c61ae177a42 100644 --- a/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.h +++ b/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.h @@ -53,11 +53,31 @@ class BackupDRTracingConnection : public backupdr_v1::BackupDRConnection { google::cloud::backupdr::v1::CreateManagementServerRequest const& request) override; + StatusOr CreateManagementServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::backupdr::v1::CreateManagementServerRequest const& request) + override; + + future> + CreateManagementServer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteManagementServer( google::cloud::backupdr::v1::DeleteManagementServerRequest const& request) override; + StatusOr DeleteManagementServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::backupdr::v1::DeleteManagementServerRequest const& request) + override; + + future> + DeleteManagementServer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/backupdr/v1/mocks/mock_backup_dr_connection.h b/google/cloud/backupdr/v1/mocks/mock_backup_dr_connection.h index 4f3865558491b..bdca5ee9f9d02 100644 --- a/google/cloud/backupdr/v1/mocks/mock_backup_dr_connection.h +++ b/google/cloud/backupdr/v1/mocks/mock_backup_dr_connection.h @@ -64,11 +64,35 @@ class MockBackupDRConnection : public backupdr_v1::BackupDRConnection { request), (override)); + MOCK_METHOD(StatusOr, CreateManagementServer, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::backupdr::v1::CreateManagementServerRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateManagementServer, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteManagementServer, (google::cloud::backupdr::v1::DeleteManagementServerRequest const& request), (override)); + + MOCK_METHOD(StatusOr, DeleteManagementServer, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::backupdr::v1::DeleteManagementServerRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteManagementServer, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/baremetalsolution/v2/bare_metal_solution_connection.cc b/google/cloud/baremetalsolution/v2/bare_metal_solution_connection.cc index 2e3f5aedbb38f..df646dcef39f9 100644 --- a/google/cloud/baremetalsolution/v2/bare_metal_solution_connection.cc +++ b/google/cloud/baremetalsolution/v2/bare_metal_solution_connection.cc @@ -60,6 +60,22 @@ BareMetalSolutionConnection::UpdateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BareMetalSolutionConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BareMetalSolutionConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr BareMetalSolutionConnection::RenameInstance( google::cloud::baremetalsolution::v2::RenameInstanceRequest const&) { @@ -74,6 +90,22 @@ BareMetalSolutionConnection::ResetInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BareMetalSolutionConnection::ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::ResetInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BareMetalSolutionConnection::ResetInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BareMetalSolutionConnection::StartInstance( google::cloud::baremetalsolution::v2::StartInstanceRequest const&) { @@ -82,6 +114,22 @@ BareMetalSolutionConnection::StartInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BareMetalSolutionConnection::StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::StartInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BareMetalSolutionConnection::StartInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BareMetalSolutionConnection::StopInstance( google::cloud::baremetalsolution::v2::StopInstanceRequest const&) { @@ -90,6 +138,22 @@ BareMetalSolutionConnection::StopInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BareMetalSolutionConnection::StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::StopInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BareMetalSolutionConnection::StopInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BareMetalSolutionConnection::EnableInteractiveSerialConsole( @@ -101,6 +165,25 @@ BareMetalSolutionConnection::EnableInteractiveSerialConsole( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BareMetalSolutionConnection::EnableInteractiveSerialConsole( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2:: + EnableInteractiveSerialConsoleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BareMetalSolutionConnection::EnableInteractiveSerialConsole( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BareMetalSolutionConnection::DisableInteractiveSerialConsole( @@ -112,6 +195,25 @@ BareMetalSolutionConnection::DisableInteractiveSerialConsole( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BareMetalSolutionConnection::DisableInteractiveSerialConsole( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2:: + DisableInteractiveSerialConsoleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BareMetalSolutionConnection::DisableInteractiveSerialConsole( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BareMetalSolutionConnection::DetachLun( google::cloud::baremetalsolution::v2::DetachLunRequest const&) { @@ -120,6 +222,21 @@ BareMetalSolutionConnection::DetachLun( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr BareMetalSolutionConnection::DetachLun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::DetachLunRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BareMetalSolutionConnection::DetachLun(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange BareMetalSolutionConnection::ListSSHKeys( google::cloud::baremetalsolution::v2:: @@ -161,6 +278,22 @@ BareMetalSolutionConnection::UpdateVolume( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BareMetalSolutionConnection::UpdateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateVolumeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BareMetalSolutionConnection::UpdateVolume( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr BareMetalSolutionConnection::RenameVolume( google::cloud::baremetalsolution::v2::RenameVolumeRequest const&) { @@ -175,6 +308,22 @@ BareMetalSolutionConnection::EvictVolume( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BareMetalSolutionConnection::EvictVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::EvictVolumeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BareMetalSolutionConnection::EvictVolume( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BareMetalSolutionConnection::ResizeVolume( google::cloud::baremetalsolution::v2::ResizeVolumeRequest const&) { @@ -183,6 +332,22 @@ BareMetalSolutionConnection::ResizeVolume( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BareMetalSolutionConnection::ResizeVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::ResizeVolumeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BareMetalSolutionConnection::ResizeVolume( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange BareMetalSolutionConnection::ListNetworks( google::cloud::baremetalsolution::v2:: @@ -211,6 +376,22 @@ BareMetalSolutionConnection::UpdateNetwork( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BareMetalSolutionConnection::UpdateNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateNetworkRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BareMetalSolutionConnection::UpdateNetwork( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr BareMetalSolutionConnection::CreateVolumeSnapshot( google::cloud::baremetalsolution::v2::CreateVolumeSnapshotRequest const&) { @@ -225,6 +406,22 @@ BareMetalSolutionConnection::RestoreVolumeSnapshot( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BareMetalSolutionConnection::RestoreVolumeSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BareMetalSolutionConnection::RestoreVolumeSnapshot( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status BareMetalSolutionConnection::DeleteVolumeSnapshot( google::cloud::baremetalsolution::v2::DeleteVolumeSnapshotRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -266,6 +463,21 @@ BareMetalSolutionConnection::EvictLun( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr BareMetalSolutionConnection::EvictLun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::EvictLunRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BareMetalSolutionConnection::EvictLun(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr BareMetalSolutionConnection::GetNfsShare( google::cloud::baremetalsolution::v2::GetNfsShareRequest const&) { @@ -288,6 +500,22 @@ BareMetalSolutionConnection::UpdateNfsShare( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BareMetalSolutionConnection::UpdateNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BareMetalSolutionConnection::UpdateNfsShare( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BareMetalSolutionConnection::CreateNfsShare( google::cloud::baremetalsolution::v2::CreateNfsShareRequest const&) { @@ -296,6 +524,22 @@ BareMetalSolutionConnection::CreateNfsShare( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BareMetalSolutionConnection::CreateNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::CreateNfsShareRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BareMetalSolutionConnection::CreateNfsShare( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr BareMetalSolutionConnection::RenameNfsShare( google::cloud::baremetalsolution::v2::RenameNfsShareRequest const&) { @@ -310,6 +554,22 @@ BareMetalSolutionConnection::DeleteNfsShare( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BareMetalSolutionConnection::DeleteNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BareMetalSolutionConnection::DeleteNfsShare( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange BareMetalSolutionConnection::ListProvisioningQuotas( google::cloud::baremetalsolution::v2:: diff --git a/google/cloud/baremetalsolution/v2/bare_metal_solution_connection.h b/google/cloud/baremetalsolution/v2/bare_metal_solution_connection.h index 454b62a7181b4..9d7aec9144180 100644 --- a/google/cloud/baremetalsolution/v2/bare_metal_solution_connection.h +++ b/google/cloud/baremetalsolution/v2/bare_metal_solution_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/baremetalsolution/v2/bare_metal_solution_connection_idempotency_policy.h" #include "google/cloud/baremetalsolution/v2/internal/bare_metal_solution_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -199,6 +201,15 @@ class BareMetalSolutionConnection { google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& request); + virtual StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& + request); + + virtual future> + UpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr RenameInstance( google::cloud::baremetalsolution::v2::RenameInstanceRequest const& @@ -210,33 +221,94 @@ class BareMetalSolutionConnection { google::cloud::baremetalsolution::v2::ResetInstanceRequest const& request); + virtual StatusOr ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::ResetInstanceRequest const& + request); + + virtual future< + StatusOr> + ResetInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> StartInstance( google::cloud::baremetalsolution::v2::StartInstanceRequest const& request); + virtual StatusOr StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::StartInstanceRequest const& + request); + + virtual future< + StatusOr> + StartInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> StopInstance( google::cloud::baremetalsolution::v2::StopInstanceRequest const& request); + virtual StatusOr StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::StopInstanceRequest const& request); + + virtual future< + StatusOr> + StopInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> EnableInteractiveSerialConsole( google::cloud::baremetalsolution::v2:: EnableInteractiveSerialConsoleRequest const& request); + virtual StatusOr + EnableInteractiveSerialConsole( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2:: + EnableInteractiveSerialConsoleRequest const& request); + + virtual future> + EnableInteractiveSerialConsole( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DisableInteractiveSerialConsole( google::cloud::baremetalsolution::v2:: DisableInteractiveSerialConsoleRequest const& request); + virtual StatusOr + DisableInteractiveSerialConsole( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2:: + DisableInteractiveSerialConsoleRequest const& request); + + virtual future> + DisableInteractiveSerialConsole( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DetachLun( google::cloud::baremetalsolution::v2::DetachLunRequest const& request); + virtual StatusOr DetachLun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::DetachLunRequest const& request); + + virtual future> + DetachLun(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListSSHKeys( google::cloud::baremetalsolution::v2::ListSSHKeysRequest request); @@ -256,6 +328,14 @@ class BareMetalSolutionConnection { UpdateVolume( google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request); + virtual StatusOr UpdateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request); + + virtual future> + UpdateVolume(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr RenameVolume( google::cloud::baremetalsolution::v2::RenameVolumeRequest const& request); @@ -264,10 +344,27 @@ class BareMetalSolutionConnection { EvictVolume( google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request); + virtual StatusOr EvictVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request); + + virtual future< + StatusOr> + EvictVolume(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ResizeVolume( google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request); + virtual StatusOr ResizeVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request); + + virtual future> + ResizeVolume(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListNetworks( google::cloud::baremetalsolution::v2::ListNetworksRequest request); @@ -286,6 +383,15 @@ class BareMetalSolutionConnection { google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& request); + virtual StatusOr UpdateNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& + request); + + virtual future> + UpdateNetwork(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateVolumeSnapshot( google::cloud::baremetalsolution::v2::CreateVolumeSnapshotRequest const& @@ -296,6 +402,15 @@ class BareMetalSolutionConnection { google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& request); + virtual StatusOr RestoreVolumeSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& + request); + + virtual future> + RestoreVolumeSnapshot(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status DeleteVolumeSnapshot( google::cloud::baremetalsolution::v2::DeleteVolumeSnapshotRequest const& request); @@ -320,6 +435,15 @@ class BareMetalSolutionConnection { EvictLun( google::cloud::baremetalsolution::v2::EvictLunRequest const& request); + virtual StatusOr EvictLun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::EvictLunRequest const& request); + + virtual future< + StatusOr> + EvictLun(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetNfsShare( google::cloud::baremetalsolution::v2::GetNfsShareRequest const& request); @@ -332,11 +456,29 @@ class BareMetalSolutionConnection { google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& request); + virtual StatusOr UpdateNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& + request); + + virtual future> + UpdateNfsShare(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateNfsShare( google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& request); + virtual StatusOr CreateNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& + request); + + virtual future> + CreateNfsShare(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr RenameNfsShare( google::cloud::baremetalsolution::v2::RenameNfsShareRequest const& @@ -348,6 +490,16 @@ class BareMetalSolutionConnection { google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& request); + virtual StatusOr DeleteNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& + request); + + virtual future< + StatusOr> + DeleteNfsShare(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListProvisioningQuotas( google::cloud::baremetalsolution::v2::ListProvisioningQuotasRequest diff --git a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.cc b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.cc index 041f64832f353..c12e95c4662b9 100644 --- a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.cc +++ b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.cc @@ -163,6 +163,62 @@ BareMetalSolutionConnectionImpl::UpdateInstance( polling_policy(*current), __func__); } +StatusOr +BareMetalSolutionConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& + request) { + return stub_->UpdateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +BareMetalSolutionConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::baremetalsolution::v2::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::baremetalsolution::v2::Instance>, + polling_policy(*current), __func__); +} + StatusOr BareMetalSolutionConnectionImpl::RenameInstance( google::cloud::baremetalsolution::v2::RenameInstanceRequest const& @@ -219,6 +275,61 @@ BareMetalSolutionConnectionImpl::ResetInstance( polling_policy(*current), __func__); } +StatusOr +BareMetalSolutionConnectionImpl::ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::ResetInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ResetInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::baremetalsolution::v2::ResetInstanceRequest const& + request) { + return stub_->ResetInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +BareMetalSolutionConnectionImpl::ResetInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ResetInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::baremetalsolution::v2::ResetInstanceResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::baremetalsolution::v2::ResetInstanceResponse>, + polling_policy(*current), __func__); +} + future> BareMetalSolutionConnectionImpl::StartInstance( google::cloud::baremetalsolution::v2::StartInstanceRequest const& request) { @@ -259,6 +370,61 @@ BareMetalSolutionConnectionImpl::StartInstance( polling_policy(*current), __func__); } +StatusOr +BareMetalSolutionConnectionImpl::StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::StartInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::baremetalsolution::v2::StartInstanceRequest const& + request) { + return stub_->StartInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +BareMetalSolutionConnectionImpl::StartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to StartInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::baremetalsolution::v2::StartInstanceResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::baremetalsolution::v2::StartInstanceResponse>, + polling_policy(*current), __func__); +} + future> BareMetalSolutionConnectionImpl::StopInstance( google::cloud::baremetalsolution::v2::StopInstanceRequest const& request) { @@ -299,6 +465,61 @@ BareMetalSolutionConnectionImpl::StopInstance( polling_policy(*current), __func__); } +StatusOr +BareMetalSolutionConnectionImpl::StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::StopInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StopInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::baremetalsolution::v2::StopInstanceRequest const& + request) { + return stub_->StopInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +BareMetalSolutionConnectionImpl::StopInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to StopInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::baremetalsolution::v2::StopInstanceResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::baremetalsolution::v2::StopInstanceResponse>, + polling_policy(*current), __func__); +} + future> BareMetalSolutionConnectionImpl::EnableInteractiveSerialConsole( @@ -343,6 +564,66 @@ BareMetalSolutionConnectionImpl::EnableInteractiveSerialConsole( polling_policy(*current), __func__); } +StatusOr +BareMetalSolutionConnectionImpl::EnableInteractiveSerialConsole( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2:: + EnableInteractiveSerialConsoleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->EnableInteractiveSerialConsole(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::baremetalsolution::v2:: + EnableInteractiveSerialConsoleRequest const& request) { + return stub_->EnableInteractiveSerialConsole(context, options, request); + }, + *current, request, __func__); +} + +future> +BareMetalSolutionConnectionImpl::EnableInteractiveSerialConsole( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to EnableInteractiveSerialConsole", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::baremetalsolution::v2:: + EnableInteractiveSerialConsoleResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::baremetalsolution::v2:: + EnableInteractiveSerialConsoleResponse>, + polling_policy(*current), __func__); +} + future> BareMetalSolutionConnectionImpl::DisableInteractiveSerialConsole( @@ -388,6 +669,67 @@ BareMetalSolutionConnectionImpl::DisableInteractiveSerialConsole( polling_policy(*current), __func__); } +StatusOr +BareMetalSolutionConnectionImpl::DisableInteractiveSerialConsole( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2:: + DisableInteractiveSerialConsoleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DisableInteractiveSerialConsole(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::baremetalsolution::v2:: + DisableInteractiveSerialConsoleRequest const& request) { + return stub_->DisableInteractiveSerialConsole(context, options, + request); + }, + *current, request, __func__); +} + +future> +BareMetalSolutionConnectionImpl::DisableInteractiveSerialConsole( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DisableInteractiveSerialConsole", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::baremetalsolution::v2:: + DisableInteractiveSerialConsoleResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::baremetalsolution::v2:: + DisableInteractiveSerialConsoleResponse>, + polling_policy(*current), __func__); +} + future> BareMetalSolutionConnectionImpl::DetachLun( google::cloud::baremetalsolution::v2::DetachLunRequest const& request) { @@ -427,6 +769,61 @@ BareMetalSolutionConnectionImpl::DetachLun( polling_policy(*current), __func__); } +StatusOr +BareMetalSolutionConnectionImpl::DetachLun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::DetachLunRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DetachLun(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::baremetalsolution::v2::DetachLunRequest const& + request) { + return stub_->DetachLun(context, options, request); + }, + *current, request, __func__); +} + +future> +BareMetalSolutionConnectionImpl::DetachLun( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DetachLun", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::baremetalsolution::v2::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::baremetalsolution::v2::Instance>, + polling_policy(*current), __func__); +} + StreamRange BareMetalSolutionConnectionImpl::ListSSHKeys( google::cloud::baremetalsolution::v2::ListSSHKeysRequest request) { @@ -583,6 +980,61 @@ BareMetalSolutionConnectionImpl::UpdateVolume( polling_policy(*current), __func__); } +StatusOr +BareMetalSolutionConnectionImpl::UpdateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateVolume(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& + request) { + return stub_->UpdateVolume(context, options, request); + }, + *current, request, __func__); +} + +future> +BareMetalSolutionConnectionImpl::UpdateVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateVolume", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::baremetalsolution::v2::Volume>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::baremetalsolution::v2::Volume>, + polling_policy(*current), __func__); +} + StatusOr BareMetalSolutionConnectionImpl::RenameVolume( google::cloud::baremetalsolution::v2::RenameVolumeRequest const& request) { @@ -614,8 +1066,103 @@ BareMetalSolutionConnectionImpl::EvictVolume( google::cloud::internal::ImmutableOptions options, google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request) { - return stub->AsyncEvictVolume(cq, std::move(context), - std::move(options), request); + return stub->AsyncEvictVolume(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::baremetalsolution::v2::OperationMetadata>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +BareMetalSolutionConnectionImpl::EvictVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->EvictVolume(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::baremetalsolution::v2::EvictVolumeRequest const& + request) { + return stub_->EvictVolume(context, options, request); + }, + *current, request, __func__); +} + +future> +BareMetalSolutionConnectionImpl::EvictVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to EvictVolume", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::baremetalsolution::v2::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::baremetalsolution::v2::OperationMetadata>, + polling_policy(*current), __func__); +} + +future> +BareMetalSolutionConnectionImpl::ResizeVolume( + google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->ResizeVolume(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::baremetalsolution::v2::Volume>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& + request) { + return stub->AsyncResizeVolume(cq, std::move(context), + std::move(options), request); }, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, @@ -632,31 +1179,47 @@ BareMetalSolutionConnectionImpl::EvictVolume( return stub->AsyncCancelOperation(cq, std::move(context), std::move(options), request); }, - &google::cloud::internal::ExtractLongRunningResultMetadata< - google::cloud::baremetalsolution::v2::OperationMetadata>, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::baremetalsolution::v2::Volume>, retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } -future> +StatusOr BareMetalSolutionConnectionImpl::ResizeVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->ResizeVolume(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::baremetalsolution::v2::Volume>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& - request) { - return stub->AsyncResizeVolume(cq, std::move(context), - std::move(options), request); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ResizeVolume(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& + request) { + return stub_->ResizeVolume(context, options, request); }, + *current, request, __func__); +} + +future> +BareMetalSolutionConnectionImpl::ResizeVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ResizeVolume", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::baremetalsolution::v2::Volume>( + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -674,7 +1237,6 @@ BareMetalSolutionConnectionImpl::ResizeVolume( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::baremetalsolution::v2::Volume>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } @@ -786,6 +1348,61 @@ BareMetalSolutionConnectionImpl::UpdateNetwork( polling_policy(*current), __func__); } +StatusOr +BareMetalSolutionConnectionImpl::UpdateNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateNetwork(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& + request) { + return stub_->UpdateNetwork(context, options, request); + }, + *current, request, __func__); +} + +future> +BareMetalSolutionConnectionImpl::UpdateNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateNetwork", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::baremetalsolution::v2::Network>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::baremetalsolution::v2::Network>, + polling_policy(*current), __func__); +} + StatusOr BareMetalSolutionConnectionImpl::CreateVolumeSnapshot( google::cloud::baremetalsolution::v2::CreateVolumeSnapshotRequest const& @@ -842,6 +1459,62 @@ BareMetalSolutionConnectionImpl::RestoreVolumeSnapshot( polling_policy(*current), __func__); } +StatusOr +BareMetalSolutionConnectionImpl::RestoreVolumeSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RestoreVolumeSnapshot(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::baremetalsolution::v2:: + RestoreVolumeSnapshotRequest const& request) { + return stub_->RestoreVolumeSnapshot(context, options, request); + }, + *current, request, __func__); +} + +future> +BareMetalSolutionConnectionImpl::RestoreVolumeSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RestoreVolumeSnapshot", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::baremetalsolution::v2::VolumeSnapshot>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::baremetalsolution::v2::VolumeSnapshot>, + polling_policy(*current), __func__); +} + Status BareMetalSolutionConnectionImpl::DeleteVolumeSnapshot( google::cloud::baremetalsolution::v2::DeleteVolumeSnapshotRequest const& request) { @@ -998,6 +1671,61 @@ BareMetalSolutionConnectionImpl::EvictLun( polling_policy(*current), __func__); } +StatusOr +BareMetalSolutionConnectionImpl::EvictLun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::EvictLunRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->EvictLun(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::baremetalsolution::v2::EvictLunRequest const& + request) { + return stub_->EvictLun(context, options, request); + }, + *current, request, __func__); +} + +future> +BareMetalSolutionConnectionImpl::EvictLun( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to EvictLun", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::baremetalsolution::v2::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::baremetalsolution::v2::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr BareMetalSolutionConnectionImpl::GetNfsShare( google::cloud::baremetalsolution::v2::GetNfsShareRequest const& request) { @@ -1089,6 +1817,62 @@ BareMetalSolutionConnectionImpl::UpdateNfsShare( polling_policy(*current), __func__); } +StatusOr +BareMetalSolutionConnectionImpl::UpdateNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateNfsShare(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& + request) { + return stub_->UpdateNfsShare(context, options, request); + }, + *current, request, __func__); +} + +future> +BareMetalSolutionConnectionImpl::UpdateNfsShare( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateNfsShare", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::baremetalsolution::v2::NfsShare>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::baremetalsolution::v2::NfsShare>, + polling_policy(*current), __func__); +} + future> BareMetalSolutionConnectionImpl::CreateNfsShare( google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& @@ -1130,6 +1914,62 @@ BareMetalSolutionConnectionImpl::CreateNfsShare( polling_policy(*current), __func__); } +StatusOr +BareMetalSolutionConnectionImpl::CreateNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateNfsShare(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& + request) { + return stub_->CreateNfsShare(context, options, request); + }, + *current, request, __func__); +} + +future> +BareMetalSolutionConnectionImpl::CreateNfsShare( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateNfsShare", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::baremetalsolution::v2::NfsShare>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::baremetalsolution::v2::NfsShare>, + polling_policy(*current), __func__); +} + StatusOr BareMetalSolutionConnectionImpl::RenameNfsShare( google::cloud::baremetalsolution::v2::RenameNfsShareRequest const& @@ -1187,6 +2027,62 @@ BareMetalSolutionConnectionImpl::DeleteNfsShare( polling_policy(*current), __func__); } +StatusOr +BareMetalSolutionConnectionImpl::DeleteNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNfsShare(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& + request) { + return stub_->DeleteNfsShare(context, options, request); + }, + *current, request, __func__); +} + +future> +BareMetalSolutionConnectionImpl::DeleteNfsShare( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteNfsShare", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::baremetalsolution::v2::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::baremetalsolution::v2::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange BareMetalSolutionConnectionImpl::ListProvisioningQuotas( google::cloud::baremetalsolution::v2::ListProvisioningQuotasRequest diff --git a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.h b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.h index 2695c2c2852bd..e5f316621ce3e 100644 --- a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.h +++ b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.h @@ -66,6 +66,15 @@ class BareMetalSolutionConnectionImpl google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& + request) override; + + future> + UpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr RenameInstance( google::cloud::baremetalsolution::v2::RenameInstanceRequest const& request) override; @@ -75,31 +84,89 @@ class BareMetalSolutionConnectionImpl google::cloud::baremetalsolution::v2::ResetInstanceRequest const& request) override; + StatusOr ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::ResetInstanceRequest const& request) + override; + + future> + ResetInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartInstance( google::cloud::baremetalsolution::v2::StartInstanceRequest const& request) override; + StatusOr StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::StartInstanceRequest const& request) + override; + + future> + StartInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopInstance(google::cloud::baremetalsolution::v2::StopInstanceRequest const& request) override; + StatusOr StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::StopInstanceRequest const& request) + override; + + future> + StopInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> EnableInteractiveSerialConsole( google::cloud::baremetalsolution::v2:: EnableInteractiveSerialConsoleRequest const& request) override; + StatusOr EnableInteractiveSerialConsole( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2:: + EnableInteractiveSerialConsoleRequest const& request) override; + + future> + EnableInteractiveSerialConsole( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DisableInteractiveSerialConsole( google::cloud::baremetalsolution::v2:: DisableInteractiveSerialConsoleRequest const& request) override; + StatusOr DisableInteractiveSerialConsole( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2:: + DisableInteractiveSerialConsoleRequest const& request) override; + + future> + DisableInteractiveSerialConsole( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DetachLun( google::cloud::baremetalsolution::v2::DetachLunRequest const& request) override; + StatusOr DetachLun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::DetachLunRequest const& request) + override; + + future> DetachLun( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListSSHKeys( google::cloud::baremetalsolution::v2::ListSSHKeysRequest request) override; @@ -124,6 +191,15 @@ class BareMetalSolutionConnectionImpl google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request) override; + StatusOr UpdateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request) + override; + + future> UpdateVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr RenameVolume( google::cloud::baremetalsolution::v2::RenameVolumeRequest const& request) override; @@ -132,10 +208,28 @@ class BareMetalSolutionConnectionImpl EvictVolume(google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request) override; + StatusOr EvictVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request) + override; + + future> + EvictVolume(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResizeVolume( google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request) override; + StatusOr ResizeVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request) + override; + + future> ResizeVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListNetworks( google::cloud::baremetalsolution::v2::ListNetworksRequest request) override; @@ -153,6 +247,15 @@ class BareMetalSolutionConnectionImpl google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& request) override; + StatusOr UpdateNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& request) + override; + + future> UpdateNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateVolumeSnapshot( google::cloud::baremetalsolution::v2::CreateVolumeSnapshotRequest const& @@ -163,6 +266,16 @@ class BareMetalSolutionConnectionImpl google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& request) override; + StatusOr RestoreVolumeSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& + request) override; + + future> + RestoreVolumeSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteVolumeSnapshot( google::cloud::baremetalsolution::v2::DeleteVolumeSnapshotRequest const& request) override; @@ -188,6 +301,15 @@ class BareMetalSolutionConnectionImpl EvictLun(google::cloud::baremetalsolution::v2::EvictLunRequest const& request) override; + StatusOr EvictLun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::EvictLunRequest const& request) + override; + + future> + EvictLun(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetNfsShare( google::cloud::baremetalsolution::v2::GetNfsShareRequest const& request) override; @@ -201,11 +323,29 @@ class BareMetalSolutionConnectionImpl google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& request) override; + StatusOr UpdateNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& + request) override; + + future> + UpdateNfsShare(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateNfsShare( google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& request) override; + StatusOr CreateNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& + request) override; + + future> + CreateNfsShare(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr RenameNfsShare( google::cloud::baremetalsolution::v2::RenameNfsShareRequest const& request) override; @@ -215,6 +355,15 @@ class BareMetalSolutionConnectionImpl google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& request) override; + StatusOr DeleteNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& + request) override; + + future> + DeleteNfsShare(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListProvisioningQuotas( google::cloud::baremetalsolution::v2::ListProvisioningQuotasRequest diff --git a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.cc b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.cc index 8f80fa8ad6006..5e62b459048c6 100644 --- a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.cc +++ b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.cc @@ -64,6 +64,31 @@ BareMetalSolutionTracingConnection::UpdateInstance( return internal::EndSpan(std::move(span), child_->UpdateInstance(request)); } +StatusOr +BareMetalSolutionTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& + request) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BareMetalSolutionTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr BareMetalSolutionTracingConnection::RenameInstance( google::cloud::baremetalsolution::v2::RenameInstanceRequest const& @@ -83,6 +108,30 @@ BareMetalSolutionTracingConnection::ResetInstance( return internal::EndSpan(std::move(span), child_->ResetInstance(request)); } +StatusOr +BareMetalSolutionTracingConnection::ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::ResetInstanceRequest const& request) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::ResetInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ResetInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BareMetalSolutionTracingConnection::ResetInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::ResetInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ResetInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> BareMetalSolutionTracingConnection::StartInstance( google::cloud::baremetalsolution::v2::StartInstanceRequest const& request) { @@ -92,6 +141,30 @@ BareMetalSolutionTracingConnection::StartInstance( return internal::EndSpan(std::move(span), child_->StartInstance(request)); } +StatusOr +BareMetalSolutionTracingConnection::StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::StartInstanceRequest const& request) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::StartInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StartInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BareMetalSolutionTracingConnection::StartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::StartInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StartInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> BareMetalSolutionTracingConnection::StopInstance( google::cloud::baremetalsolution::v2::StopInstanceRequest const& request) { @@ -101,6 +174,30 @@ BareMetalSolutionTracingConnection::StopInstance( return internal::EndSpan(std::move(span), child_->StopInstance(request)); } +StatusOr +BareMetalSolutionTracingConnection::StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::StopInstanceRequest const& request) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::StopInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StopInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BareMetalSolutionTracingConnection::StopInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::StopInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StopInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> BareMetalSolutionTracingConnection::EnableInteractiveSerialConsole( @@ -114,6 +211,34 @@ BareMetalSolutionTracingConnection::EnableInteractiveSerialConsole( child_->EnableInteractiveSerialConsole(request)); } +StatusOr +BareMetalSolutionTracingConnection::EnableInteractiveSerialConsole( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2:: + EnableInteractiveSerialConsoleRequest const& request) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::" + "EnableInteractiveSerialConsole"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->EnableInteractiveSerialConsole( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BareMetalSolutionTracingConnection::EnableInteractiveSerialConsole( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::" + "EnableInteractiveSerialConsole"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->EnableInteractiveSerialConsole( + google::cloud::ExperimentalTag{}, operation)); +} + future> BareMetalSolutionTracingConnection::DisableInteractiveSerialConsole( @@ -127,6 +252,34 @@ BareMetalSolutionTracingConnection::DisableInteractiveSerialConsole( child_->DisableInteractiveSerialConsole(request)); } +StatusOr +BareMetalSolutionTracingConnection::DisableInteractiveSerialConsole( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2:: + DisableInteractiveSerialConsoleRequest const& request) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::" + "DisableInteractiveSerialConsole"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DisableInteractiveSerialConsole( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BareMetalSolutionTracingConnection::DisableInteractiveSerialConsole( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::" + "DisableInteractiveSerialConsole"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DisableInteractiveSerialConsole( + google::cloud::ExperimentalTag{}, operation)); +} + future> BareMetalSolutionTracingConnection::DetachLun( google::cloud::baremetalsolution::v2::DetachLunRequest const& request) { @@ -136,6 +289,30 @@ BareMetalSolutionTracingConnection::DetachLun( return internal::EndSpan(std::move(span), child_->DetachLun(request)); } +StatusOr +BareMetalSolutionTracingConnection::DetachLun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::DetachLunRequest const& request) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::DetachLun"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DetachLun(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BareMetalSolutionTracingConnection::DetachLun( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::DetachLun"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DetachLun(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange BareMetalSolutionTracingConnection::ListSSHKeys( google::cloud::baremetalsolution::v2::ListSSHKeysRequest request) { @@ -195,6 +372,30 @@ BareMetalSolutionTracingConnection::UpdateVolume( return internal::EndSpan(std::move(span), child_->UpdateVolume(request)); } +StatusOr +BareMetalSolutionTracingConnection::UpdateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::UpdateVolume"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateVolume(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BareMetalSolutionTracingConnection::UpdateVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::UpdateVolume"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateVolume(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr BareMetalSolutionTracingConnection::RenameVolume( google::cloud::baremetalsolution::v2::RenameVolumeRequest const& request) { @@ -213,6 +414,30 @@ BareMetalSolutionTracingConnection::EvictVolume( return internal::EndSpan(std::move(span), child_->EvictVolume(request)); } +StatusOr +BareMetalSolutionTracingConnection::EvictVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::EvictVolume"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->EvictVolume(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BareMetalSolutionTracingConnection::EvictVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::EvictVolume"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->EvictVolume(google::cloud::ExperimentalTag{}, operation)); +} + future> BareMetalSolutionTracingConnection::ResizeVolume( google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request) { @@ -222,6 +447,30 @@ BareMetalSolutionTracingConnection::ResizeVolume( return internal::EndSpan(std::move(span), child_->ResizeVolume(request)); } +StatusOr +BareMetalSolutionTracingConnection::ResizeVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::ResizeVolume"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ResizeVolume(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BareMetalSolutionTracingConnection::ResizeVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::ResizeVolume"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ResizeVolume(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange BareMetalSolutionTracingConnection::ListNetworks( google::cloud::baremetalsolution::v2::ListNetworksRequest request) { @@ -262,6 +511,30 @@ BareMetalSolutionTracingConnection::UpdateNetwork( return internal::EndSpan(std::move(span), child_->UpdateNetwork(request)); } +StatusOr +BareMetalSolutionTracingConnection::UpdateNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& request) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::UpdateNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateNetwork(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BareMetalSolutionTracingConnection::UpdateNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::UpdateNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateNetwork(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr BareMetalSolutionTracingConnection::CreateVolumeSnapshot( google::cloud::baremetalsolution::v2::CreateVolumeSnapshotRequest const& @@ -285,6 +558,33 @@ BareMetalSolutionTracingConnection::RestoreVolumeSnapshot( child_->RestoreVolumeSnapshot(request)); } +StatusOr +BareMetalSolutionTracingConnection::RestoreVolumeSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& + request) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::" + "RestoreVolumeSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RestoreVolumeSnapshot( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BareMetalSolutionTracingConnection::RestoreVolumeSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::" + "RestoreVolumeSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RestoreVolumeSnapshot( + google::cloud::ExperimentalTag{}, operation)); +} + Status BareMetalSolutionTracingConnection::DeleteVolumeSnapshot( google::cloud::baremetalsolution::v2::DeleteVolumeSnapshotRequest const& request) { @@ -347,6 +647,30 @@ BareMetalSolutionTracingConnection::EvictLun( return internal::EndSpan(std::move(span), child_->EvictLun(request)); } +StatusOr +BareMetalSolutionTracingConnection::EvictLun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::EvictLunRequest const& request) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::EvictLun"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->EvictLun(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BareMetalSolutionTracingConnection::EvictLun( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::EvictLun"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->EvictLun(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr BareMetalSolutionTracingConnection::GetNfsShare( google::cloud::baremetalsolution::v2::GetNfsShareRequest const& request) { @@ -378,6 +702,31 @@ BareMetalSolutionTracingConnection::UpdateNfsShare( return internal::EndSpan(std::move(span), child_->UpdateNfsShare(request)); } +StatusOr +BareMetalSolutionTracingConnection::UpdateNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& + request) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::UpdateNfsShare"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateNfsShare(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BareMetalSolutionTracingConnection::UpdateNfsShare( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::UpdateNfsShare"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateNfsShare(google::cloud::ExperimentalTag{}, operation)); +} + future> BareMetalSolutionTracingConnection::CreateNfsShare( google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& @@ -388,6 +737,31 @@ BareMetalSolutionTracingConnection::CreateNfsShare( return internal::EndSpan(std::move(span), child_->CreateNfsShare(request)); } +StatusOr +BareMetalSolutionTracingConnection::CreateNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& + request) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::CreateNfsShare"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateNfsShare(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BareMetalSolutionTracingConnection::CreateNfsShare( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::CreateNfsShare"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateNfsShare(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr BareMetalSolutionTracingConnection::RenameNfsShare( google::cloud::baremetalsolution::v2::RenameNfsShareRequest const& @@ -408,6 +782,31 @@ BareMetalSolutionTracingConnection::DeleteNfsShare( return internal::EndSpan(std::move(span), child_->DeleteNfsShare(request)); } +StatusOr +BareMetalSolutionTracingConnection::DeleteNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& + request) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::DeleteNfsShare"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteNfsShare(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BareMetalSolutionTracingConnection::DeleteNfsShare( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "baremetalsolution_v2::BareMetalSolutionConnection::DeleteNfsShare"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteNfsShare(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange BareMetalSolutionTracingConnection::ListProvisioningQuotas( google::cloud::baremetalsolution::v2::ListProvisioningQuotasRequest diff --git a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.h b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.h index 5529297a41230..510c9018eb997 100644 --- a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.h +++ b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.h @@ -53,6 +53,15 @@ class BareMetalSolutionTracingConnection google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& + request) override; + + future> + UpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr RenameInstance( google::cloud::baremetalsolution::v2::RenameInstanceRequest const& request) override; @@ -62,31 +71,89 @@ class BareMetalSolutionTracingConnection google::cloud::baremetalsolution::v2::ResetInstanceRequest const& request) override; + StatusOr ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::ResetInstanceRequest const& request) + override; + + future> + ResetInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartInstance( google::cloud::baremetalsolution::v2::StartInstanceRequest const& request) override; + StatusOr StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::StartInstanceRequest const& request) + override; + + future> + StartInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopInstance(google::cloud::baremetalsolution::v2::StopInstanceRequest const& request) override; + StatusOr StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::StopInstanceRequest const& request) + override; + + future> + StopInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> EnableInteractiveSerialConsole( google::cloud::baremetalsolution::v2:: EnableInteractiveSerialConsoleRequest const& request) override; + StatusOr EnableInteractiveSerialConsole( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2:: + EnableInteractiveSerialConsoleRequest const& request) override; + + future> + EnableInteractiveSerialConsole( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DisableInteractiveSerialConsole( google::cloud::baremetalsolution::v2:: DisableInteractiveSerialConsoleRequest const& request) override; + StatusOr DisableInteractiveSerialConsole( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2:: + DisableInteractiveSerialConsoleRequest const& request) override; + + future> + DisableInteractiveSerialConsole( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DetachLun( google::cloud::baremetalsolution::v2::DetachLunRequest const& request) override; + StatusOr DetachLun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::DetachLunRequest const& request) + override; + + future> DetachLun( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListSSHKeys( google::cloud::baremetalsolution::v2::ListSSHKeysRequest request) override; @@ -111,6 +178,15 @@ class BareMetalSolutionTracingConnection google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request) override; + StatusOr UpdateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request) + override; + + future> UpdateVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr RenameVolume( google::cloud::baremetalsolution::v2::RenameVolumeRequest const& request) override; @@ -119,10 +195,28 @@ class BareMetalSolutionTracingConnection EvictVolume(google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request) override; + StatusOr EvictVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request) + override; + + future> + EvictVolume(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResizeVolume( google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request) override; + StatusOr ResizeVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request) + override; + + future> ResizeVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListNetworks( google::cloud::baremetalsolution::v2::ListNetworksRequest request) override; @@ -140,6 +234,15 @@ class BareMetalSolutionTracingConnection google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& request) override; + StatusOr UpdateNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& request) + override; + + future> UpdateNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateVolumeSnapshot( google::cloud::baremetalsolution::v2::CreateVolumeSnapshotRequest const& @@ -150,6 +253,16 @@ class BareMetalSolutionTracingConnection google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& request) override; + StatusOr RestoreVolumeSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& + request) override; + + future> + RestoreVolumeSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteVolumeSnapshot( google::cloud::baremetalsolution::v2::DeleteVolumeSnapshotRequest const& request) override; @@ -175,6 +288,15 @@ class BareMetalSolutionTracingConnection EvictLun(google::cloud::baremetalsolution::v2::EvictLunRequest const& request) override; + StatusOr EvictLun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::EvictLunRequest const& request) + override; + + future> + EvictLun(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetNfsShare( google::cloud::baremetalsolution::v2::GetNfsShareRequest const& request) override; @@ -188,11 +310,29 @@ class BareMetalSolutionTracingConnection google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& request) override; + StatusOr UpdateNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& + request) override; + + future> + UpdateNfsShare(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateNfsShare( google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& request) override; + StatusOr CreateNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& + request) override; + + future> + CreateNfsShare(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr RenameNfsShare( google::cloud::baremetalsolution::v2::RenameNfsShareRequest const& request) override; @@ -202,6 +342,15 @@ class BareMetalSolutionTracingConnection google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& request) override; + StatusOr DeleteNfsShare( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& + request) override; + + future> + DeleteNfsShare(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListProvisioningQuotas( google::cloud::baremetalsolution::v2::ListProvisioningQuotasRequest diff --git a/google/cloud/baremetalsolution/v2/mocks/mock_bare_metal_solution_connection.h b/google/cloud/baremetalsolution/v2/mocks/mock_bare_metal_solution_connection.h index 0f62e722d712a..03ec100ef4de9 100644 --- a/google/cloud/baremetalsolution/v2/mocks/mock_bare_metal_solution_connection.h +++ b/google/cloud/baremetalsolution/v2/mocks/mock_bare_metal_solution_connection.h @@ -65,6 +65,19 @@ class MockBareMetalSolutionConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, RenameInstance, (google::cloud::baremetalsolution::v2::RenameInstanceRequest const& @@ -78,6 +91,19 @@ class MockBareMetalSolutionConnection request), (override)); + MOCK_METHOD(StatusOr, ResetInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::ResetInstanceRequest const& + request), + (override)); + + MOCK_METHOD(future>, + ResetInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, StartInstance, @@ -85,6 +111,19 @@ class MockBareMetalSolutionConnection request), (override)); + MOCK_METHOD(StatusOr, StartInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::StartInstanceRequest const& + request), + (override)); + + MOCK_METHOD(future>, + StartInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -93,6 +132,20 @@ class MockBareMetalSolutionConnection request), (override)); + MOCK_METHOD(StatusOr, StopInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::StopInstanceRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + StopInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, EnableInteractiveSerialConsole, @@ -100,6 +153,20 @@ class MockBareMetalSolutionConnection EnableInteractiveSerialConsoleRequest const& request), (override)); + MOCK_METHOD(StatusOr, + EnableInteractiveSerialConsole, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2:: + EnableInteractiveSerialConsoleRequest const& request), + (override)); + + MOCK_METHOD(future>, + EnableInteractiveSerialConsole, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DisableInteractiveSerialConsole, @@ -107,12 +174,38 @@ class MockBareMetalSolutionConnection DisableInteractiveSerialConsoleRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DisableInteractiveSerialConsole, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2:: + DisableInteractiveSerialConsoleRequest const& request), + (override)); + + MOCK_METHOD(future>, + DisableInteractiveSerialConsole, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DetachLun, (google::cloud::baremetalsolution::v2::DetachLunRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DetachLun, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::DetachLunRequest const& request), + (override)); + + MOCK_METHOD(future>, + DetachLun, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListSSHKeys, (google::cloud::baremetalsolution::v2::ListSSHKeysRequest request), @@ -145,6 +238,18 @@ class MockBareMetalSolutionConnection request), (override)); + MOCK_METHOD(StatusOr, UpdateVolume, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateVolume, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, RenameVolume, (google::cloud::baremetalsolution::v2::RenameVolumeRequest const& @@ -157,12 +262,37 @@ class MockBareMetalSolutionConnection (google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, EvictVolume, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request), + (override)); + + MOCK_METHOD( + future>, + EvictVolume, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, ResizeVolume, (google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request), (override)); + MOCK_METHOD(StatusOr, ResizeVolume, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& + request), + (override)); + + MOCK_METHOD(future>, + ResizeVolume, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListNetworks, @@ -187,6 +317,18 @@ class MockBareMetalSolutionConnection request), (override)); + MOCK_METHOD(StatusOr, UpdateNetwork, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateNetwork, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CreateVolumeSnapshot, @@ -201,6 +343,20 @@ class MockBareMetalSolutionConnection request), (override)); + MOCK_METHOD( + StatusOr, RestoreVolumeSnapshot, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + RestoreVolumeSnapshot, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( Status, DeleteVolumeSnapshot, (google::cloud::baremetalsolution::v2::DeleteVolumeSnapshotRequest const& @@ -237,6 +393,19 @@ class MockBareMetalSolutionConnection (google::cloud::baremetalsolution::v2::EvictLunRequest const& request), (override)); + MOCK_METHOD( + StatusOr, EvictLun, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::EvictLunRequest const& request), + (override)); + + MOCK_METHOD( + future>, + EvictLun, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetNfsShare, (google::cloud::baremetalsolution::v2::GetNfsShareRequest const& request), @@ -255,6 +424,19 @@ class MockBareMetalSolutionConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateNfsShare, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateNfsShare, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateNfsShare, @@ -262,6 +444,19 @@ class MockBareMetalSolutionConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateNfsShare, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateNfsShare, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, RenameNfsShare, (google::cloud::baremetalsolution::v2::RenameNfsShareRequest const& @@ -275,6 +470,20 @@ class MockBareMetalSolutionConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteNfsShare, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteNfsShare, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListProvisioningQuotas, diff --git a/google/cloud/batch/v1/batch_connection.cc b/google/cloud/batch/v1/batch_connection.cc index d70841cc8558f..0438e58f5cbf3 100644 --- a/google/cloud/batch/v1/batch_connection.cc +++ b/google/cloud/batch/v1/batch_connection.cc @@ -56,6 +56,21 @@ BatchServiceConnection::DeleteJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr BatchServiceConnection::DeleteJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::batch::v1::DeleteJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BatchServiceConnection::DeleteJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange BatchServiceConnection::ListJobs( google::cloud::batch::v1:: ListJobsRequest) { // NOLINT(performance-unnecessary-value-param) diff --git a/google/cloud/batch/v1/batch_connection.h b/google/cloud/batch/v1/batch_connection.h index e68337dba3fd8..0cfdba15f4b4b 100644 --- a/google/cloud/batch/v1/batch_connection.h +++ b/google/cloud/batch/v1/batch_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/batch/v1/batch_connection_idempotency_policy.h" #include "google/cloud/batch/v1/internal/batch_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -194,6 +196,14 @@ class BatchServiceConnection { virtual future> DeleteJob(google::cloud::batch::v1::DeleteJobRequest const& request); + virtual StatusOr DeleteJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::batch::v1::DeleteJobRequest const& request); + + virtual future> + DeleteJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListJobs( google::cloud::batch::v1::ListJobsRequest request); diff --git a/google/cloud/batch/v1/internal/batch_connection_impl.cc b/google/cloud/batch/v1/internal/batch_connection_impl.cc index 507166975acd4..cf7a517bfafc0 100644 --- a/google/cloud/batch/v1/internal/batch_connection_impl.cc +++ b/google/cloud/batch/v1/internal/batch_connection_impl.cc @@ -126,6 +126,58 @@ BatchServiceConnectionImpl::DeleteJob( polling_policy(*current), __func__); } +StatusOr BatchServiceConnectionImpl::DeleteJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::batch::v1::DeleteJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::batch::v1::DeleteJobRequest const& request) { + return stub_->DeleteJob(context, options, request); + }, + *current, request, __func__); +} + +future> +BatchServiceConnectionImpl::DeleteJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::batch::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::batch::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange BatchServiceConnectionImpl::ListJobs( google::cloud::batch::v1::ListJobsRequest request) { request.clear_page_token(); diff --git a/google/cloud/batch/v1/internal/batch_connection_impl.h b/google/cloud/batch/v1/internal/batch_connection_impl.h index 8a9336508406f..43463bdfe8484 100644 --- a/google/cloud/batch/v1/internal/batch_connection_impl.h +++ b/google/cloud/batch/v1/internal/batch_connection_impl.h @@ -60,6 +60,14 @@ class BatchServiceConnectionImpl : public batch_v1::BatchServiceConnection { future> DeleteJob( google::cloud::batch::v1::DeleteJobRequest const& request) override; + StatusOr DeleteJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::batch::v1::DeleteJobRequest const& request) override; + + future> DeleteJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListJobs( google::cloud::batch::v1::ListJobsRequest request) override; diff --git a/google/cloud/batch/v1/internal/batch_tracing_connection.cc b/google/cloud/batch/v1/internal/batch_tracing_connection.cc index b59c778051c8d..76a07f35599db 100644 --- a/google/cloud/batch/v1/internal/batch_tracing_connection.cc +++ b/google/cloud/batch/v1/internal/batch_tracing_connection.cc @@ -56,6 +56,28 @@ BatchServiceTracingConnection::DeleteJob( return internal::EndSpan(std::move(span), child_->DeleteJob(request)); } +StatusOr +BatchServiceTracingConnection::DeleteJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::batch::v1::DeleteJobRequest const& request) { + auto span = internal::MakeSpan("batch_v1::BatchServiceConnection::DeleteJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BatchServiceTracingConnection::DeleteJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("batch_v1::BatchServiceConnection::DeleteJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteJob(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange BatchServiceTracingConnection::ListJobs( google::cloud::batch::v1::ListJobsRequest request) { diff --git a/google/cloud/batch/v1/internal/batch_tracing_connection.h b/google/cloud/batch/v1/internal/batch_tracing_connection.h index d3c0dc61b3eff..19c77c4ca515a 100644 --- a/google/cloud/batch/v1/internal/batch_tracing_connection.h +++ b/google/cloud/batch/v1/internal/batch_tracing_connection.h @@ -48,6 +48,14 @@ class BatchServiceTracingConnection : public batch_v1::BatchServiceConnection { future> DeleteJob( google::cloud::batch::v1::DeleteJobRequest const& request) override; + StatusOr DeleteJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::batch::v1::DeleteJobRequest const& request) override; + + future> DeleteJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListJobs( google::cloud::batch::v1::ListJobsRequest request) override; diff --git a/google/cloud/batch/v1/mocks/mock_batch_connection.h b/google/cloud/batch/v1/mocks/mock_batch_connection.h index 67d92665857d9..a1a5e7c279944 100644 --- a/google/cloud/batch/v1/mocks/mock_batch_connection.h +++ b/google/cloud/batch/v1/mocks/mock_batch_connection.h @@ -59,6 +59,17 @@ class MockBatchServiceConnection : public batch_v1::BatchServiceConnection { (google::cloud::batch::v1::DeleteJobRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::batch::v1::DeleteJobRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListJobs, (google::cloud::batch::v1::ListJobsRequest request), (override)); diff --git a/google/cloud/beyondcorp/appconnections/v1/app_connections_connection.cc b/google/cloud/beyondcorp/appconnections/v1/app_connections_connection.cc index 055472b1acf28..fa94f4e7242d2 100644 --- a/google/cloud/beyondcorp/appconnections/v1/app_connections_connection.cc +++ b/google/cloud/beyondcorp/appconnections/v1/app_connections_connection.cc @@ -63,6 +63,23 @@ AppConnectionsServiceConnection::CreateAppConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AppConnectionsServiceConnection::CreateAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + CreateAppConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppConnectionsServiceConnection::CreateAppConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AppConnectionsServiceConnection::UpdateAppConnection( google::cloud::beyondcorp::appconnections::v1:: @@ -72,6 +89,23 @@ AppConnectionsServiceConnection::UpdateAppConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AppConnectionsServiceConnection::UpdateAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + UpdateAppConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppConnectionsServiceConnection::UpdateAppConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AppConnectionsServiceConnection::DeleteAppConnection( @@ -83,6 +117,25 @@ AppConnectionsServiceConnection::DeleteAppConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AppConnectionsServiceConnection::DeleteAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + DeleteAppConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppConnectionsServiceConnection::DeleteAppConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange AppConnectionsServiceConnection::ResolveAppConnections( diff --git a/google/cloud/beyondcorp/appconnections/v1/app_connections_connection.h b/google/cloud/beyondcorp/appconnections/v1/app_connections_connection.h index 9cecebeefd262..32a12f4181c41 100644 --- a/google/cloud/beyondcorp/appconnections/v1/app_connections_connection.h +++ b/google/cloud/beyondcorp/appconnections/v1/app_connections_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/beyondcorp/appconnections/v1/app_connections_connection_idempotency_policy.h" #include "google/cloud/beyondcorp/appconnections/v1/internal/app_connections_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -208,16 +210,46 @@ class AppConnectionsServiceConnection { CreateAppConnection(google::cloud::beyondcorp::appconnections::v1:: CreateAppConnectionRequest const& request); + virtual StatusOr CreateAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + CreateAppConnectionRequest const& request); + + virtual future< + StatusOr> + CreateAppConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UpdateAppConnection(google::cloud::beyondcorp::appconnections::v1:: UpdateAppConnectionRequest const& request); + virtual StatusOr UpdateAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + UpdateAppConnectionRequest const& request); + + virtual future< + StatusOr> + UpdateAppConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteAppConnection(google::cloud::beyondcorp::appconnections::v1:: DeleteAppConnectionRequest const& request); + virtual StatusOr DeleteAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + DeleteAppConnectionRequest const& request); + + virtual future> + DeleteAppConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ResolveAppConnections(google::cloud::beyondcorp::appconnections::v1:: diff --git a/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.cc b/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.cc index fd3a50efc0486..020393917b73b 100644 --- a/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.cc +++ b/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.cc @@ -172,6 +172,62 @@ AppConnectionsServiceConnectionImpl::CreateAppConnection( polling_policy(*current), __func__); } +StatusOr +AppConnectionsServiceConnectionImpl::CreateAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + CreateAppConnectionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAppConnection(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::beyondcorp::appconnections::v1:: + CreateAppConnectionRequest const& request) { + return stub_->CreateAppConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +AppConnectionsServiceConnectionImpl::CreateAppConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAppConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::beyondcorp::appconnections::v1::AppConnection>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::beyondcorp::appconnections::v1::AppConnection>, + polling_policy(*current), __func__); +} + future> AppConnectionsServiceConnectionImpl::UpdateAppConnection( google::cloud::beyondcorp::appconnections::v1:: @@ -212,6 +268,62 @@ AppConnectionsServiceConnectionImpl::UpdateAppConnection( polling_policy(*current), __func__); } +StatusOr +AppConnectionsServiceConnectionImpl::UpdateAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + UpdateAppConnectionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAppConnection(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::beyondcorp::appconnections::v1:: + UpdateAppConnectionRequest const& request) { + return stub_->UpdateAppConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +AppConnectionsServiceConnectionImpl::UpdateAppConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateAppConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::beyondcorp::appconnections::v1::AppConnection>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::beyondcorp::appconnections::v1::AppConnection>, + polling_policy(*current), __func__); +} + future> AppConnectionsServiceConnectionImpl::DeleteAppConnection( @@ -255,6 +367,66 @@ AppConnectionsServiceConnectionImpl::DeleteAppConnection( polling_policy(*current), __func__); } +StatusOr +AppConnectionsServiceConnectionImpl::DeleteAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + DeleteAppConnectionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAppConnection(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::beyondcorp::appconnections::v1:: + DeleteAppConnectionRequest const& request) { + return stub_->DeleteAppConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +AppConnectionsServiceConnectionImpl::DeleteAppConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteAppConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::beyondcorp::appconnections::v1:: + AppConnectionOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::beyondcorp::appconnections::v1:: + AppConnectionOperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange AppConnectionsServiceConnectionImpl::ResolveAppConnections( diff --git a/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.h b/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.h index ad9a03301cfac..fad6a9163409d 100644 --- a/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.h +++ b/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.h @@ -68,15 +68,43 @@ class AppConnectionsServiceConnectionImpl CreateAppConnection(google::cloud::beyondcorp::appconnections::v1:: CreateAppConnectionRequest const& request) override; + StatusOr CreateAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + CreateAppConnectionRequest const& request) override; + + future> + CreateAppConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAppConnection(google::cloud::beyondcorp::appconnections::v1:: UpdateAppConnectionRequest const& request) override; + StatusOr UpdateAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + UpdateAppConnectionRequest const& request) override; + + future> + UpdateAppConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAppConnection(google::cloud::beyondcorp::appconnections::v1:: DeleteAppConnectionRequest const& request) override; + StatusOr DeleteAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + DeleteAppConnectionRequest const& request) override; + + future> + DeleteAppConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ResolveAppConnections(google::cloud::beyondcorp::appconnections::v1:: diff --git a/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_tracing_connection.cc b/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_tracing_connection.cc index 3a04a17374de2..1a85b7f6fd409 100644 --- a/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_tracing_connection.cc +++ b/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_tracing_connection.cc @@ -73,6 +73,33 @@ AppConnectionsServiceTracingConnection::CreateAppConnection( child_->CreateAppConnection(request)); } +StatusOr +AppConnectionsServiceTracingConnection::CreateAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + CreateAppConnectionRequest const& request) { + auto span = internal::MakeSpan( + "beyondcorp_appconnections_v1::AppConnectionsServiceConnection::" + "CreateAppConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateAppConnection(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppConnectionsServiceTracingConnection::CreateAppConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "beyondcorp_appconnections_v1::AppConnectionsServiceConnection::" + "CreateAppConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateAppConnection(google::cloud::ExperimentalTag{}, operation)); +} + future> AppConnectionsServiceTracingConnection::UpdateAppConnection( google::cloud::beyondcorp::appconnections::v1:: @@ -85,6 +112,33 @@ AppConnectionsServiceTracingConnection::UpdateAppConnection( child_->UpdateAppConnection(request)); } +StatusOr +AppConnectionsServiceTracingConnection::UpdateAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + UpdateAppConnectionRequest const& request) { + auto span = internal::MakeSpan( + "beyondcorp_appconnections_v1::AppConnectionsServiceConnection::" + "UpdateAppConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateAppConnection(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppConnectionsServiceTracingConnection::UpdateAppConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "beyondcorp_appconnections_v1::AppConnectionsServiceConnection::" + "UpdateAppConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateAppConnection(google::cloud::ExperimentalTag{}, operation)); +} + future> AppConnectionsServiceTracingConnection::DeleteAppConnection( @@ -98,6 +152,34 @@ AppConnectionsServiceTracingConnection::DeleteAppConnection( child_->DeleteAppConnection(request)); } +StatusOr +AppConnectionsServiceTracingConnection::DeleteAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + DeleteAppConnectionRequest const& request) { + auto span = internal::MakeSpan( + "beyondcorp_appconnections_v1::AppConnectionsServiceConnection::" + "DeleteAppConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAppConnection(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppConnectionsServiceTracingConnection::DeleteAppConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "beyondcorp_appconnections_v1::AppConnectionsServiceConnection::" + "DeleteAppConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAppConnection(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange AppConnectionsServiceTracingConnection::ResolveAppConnections( diff --git a/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_tracing_connection.h b/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_tracing_connection.h index ef0a321ff880f..d232558943d32 100644 --- a/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_tracing_connection.h +++ b/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_tracing_connection.h @@ -56,15 +56,43 @@ class AppConnectionsServiceTracingConnection CreateAppConnection(google::cloud::beyondcorp::appconnections::v1:: CreateAppConnectionRequest const& request) override; + StatusOr CreateAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + CreateAppConnectionRequest const& request) override; + + future> + CreateAppConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAppConnection(google::cloud::beyondcorp::appconnections::v1:: UpdateAppConnectionRequest const& request) override; + StatusOr UpdateAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + UpdateAppConnectionRequest const& request) override; + + future> + UpdateAppConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAppConnection(google::cloud::beyondcorp::appconnections::v1:: DeleteAppConnectionRequest const& request) override; + StatusOr DeleteAppConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + DeleteAppConnectionRequest const& request) override; + + future> + DeleteAppConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ResolveAppConnections(google::cloud::beyondcorp::appconnections::v1:: diff --git a/google/cloud/beyondcorp/appconnections/v1/mocks/mock_app_connections_connection.h b/google/cloud/beyondcorp/appconnections/v1/mocks/mock_app_connections_connection.h index 40417d3d40020..cd1bbf6a4b1b6 100644 --- a/google/cloud/beyondcorp/appconnections/v1/mocks/mock_app_connections_connection.h +++ b/google/cloud/beyondcorp/appconnections/v1/mocks/mock_app_connections_connection.h @@ -71,6 +71,20 @@ class MockAppConnectionsServiceConnection CreateAppConnectionRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateAppConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + CreateAppConnectionRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateAppConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -79,6 +93,20 @@ class MockAppConnectionsServiceConnection UpdateAppConnectionRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateAppConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + UpdateAppConnectionRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UpdateAppConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteAppConnection, @@ -86,6 +114,19 @@ class MockAppConnectionsServiceConnection DeleteAppConnectionRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteAppConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnections::v1:: + DeleteAppConnectionRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteAppConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), diff --git a/google/cloud/beyondcorp/appconnectors/v1/app_connectors_connection.cc b/google/cloud/beyondcorp/appconnectors/v1/app_connectors_connection.cc index 1250acadb43ef..8c1d46f7be5b7 100644 --- a/google/cloud/beyondcorp/appconnectors/v1/app_connectors_connection.cc +++ b/google/cloud/beyondcorp/appconnectors/v1/app_connectors_connection.cc @@ -62,6 +62,23 @@ AppConnectorsServiceConnection::CreateAppConnector( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AppConnectorsServiceConnection::CreateAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + CreateAppConnectorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppConnectorsServiceConnection::CreateAppConnector( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AppConnectorsServiceConnection::UpdateAppConnector( google::cloud::beyondcorp::appconnectors::v1:: @@ -71,6 +88,23 @@ AppConnectorsServiceConnection::UpdateAppConnector( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AppConnectorsServiceConnection::UpdateAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + UpdateAppConnectorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppConnectorsServiceConnection::UpdateAppConnector( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AppConnectorsServiceConnection::DeleteAppConnector( @@ -82,6 +116,25 @@ AppConnectorsServiceConnection::DeleteAppConnector( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AppConnectorsServiceConnection::DeleteAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + DeleteAppConnectorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppConnectorsServiceConnection::DeleteAppConnector( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AppConnectorsServiceConnection::ReportStatus( google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const&) { @@ -90,6 +143,22 @@ AppConnectorsServiceConnection::ReportStatus( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AppConnectorsServiceConnection::ReportStatus( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppConnectorsServiceConnection::ReportStatus( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeAppConnectorsServiceConnection(Options options) { internal::CheckExpectedOptions CreateAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + CreateAppConnectorRequest const& request); + + virtual future< + StatusOr> + CreateAppConnector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UpdateAppConnector(google::cloud::beyondcorp::appconnectors::v1:: UpdateAppConnectorRequest const& request); + virtual StatusOr UpdateAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + UpdateAppConnectorRequest const& request); + + virtual future< + StatusOr> + UpdateAppConnector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteAppConnector(google::cloud::beyondcorp::appconnectors::v1:: DeleteAppConnectorRequest const& request); + virtual StatusOr DeleteAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + DeleteAppConnectorRequest const& request); + + virtual future> + DeleteAppConnector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> ReportStatus( google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& request); + + virtual StatusOr ReportStatus( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& + request); + + virtual future< + StatusOr> + ReportStatus(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.cc b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.cc index d490168b23110..9184efb7712bb 100644 --- a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.cc +++ b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.cc @@ -169,6 +169,62 @@ AppConnectorsServiceConnectionImpl::CreateAppConnector( polling_policy(*current), __func__); } +StatusOr +AppConnectorsServiceConnectionImpl::CreateAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + CreateAppConnectorRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAppConnector(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::beyondcorp::appconnectors::v1:: + CreateAppConnectorRequest const& request) { + return stub_->CreateAppConnector(context, options, request); + }, + *current, request, __func__); +} + +future> +AppConnectorsServiceConnectionImpl::CreateAppConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAppConnector", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::beyondcorp::appconnectors::v1::AppConnector>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::beyondcorp::appconnectors::v1::AppConnector>, + polling_policy(*current), __func__); +} + future> AppConnectorsServiceConnectionImpl::UpdateAppConnector( google::cloud::beyondcorp::appconnectors::v1:: @@ -209,6 +265,62 @@ AppConnectorsServiceConnectionImpl::UpdateAppConnector( polling_policy(*current), __func__); } +StatusOr +AppConnectorsServiceConnectionImpl::UpdateAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + UpdateAppConnectorRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAppConnector(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::beyondcorp::appconnectors::v1:: + UpdateAppConnectorRequest const& request) { + return stub_->UpdateAppConnector(context, options, request); + }, + *current, request, __func__); +} + +future> +AppConnectorsServiceConnectionImpl::UpdateAppConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateAppConnector", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::beyondcorp::appconnectors::v1::AppConnector>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::beyondcorp::appconnectors::v1::AppConnector>, + polling_policy(*current), __func__); +} + future> AppConnectorsServiceConnectionImpl::DeleteAppConnector( @@ -252,6 +364,65 @@ AppConnectorsServiceConnectionImpl::DeleteAppConnector( polling_policy(*current), __func__); } +StatusOr +AppConnectorsServiceConnectionImpl::DeleteAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + DeleteAppConnectorRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAppConnector(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::beyondcorp::appconnectors::v1:: + DeleteAppConnectorRequest const& request) { + return stub_->DeleteAppConnector(context, options, request); + }, + *current, request, __func__); +} + +future> +AppConnectorsServiceConnectionImpl::DeleteAppConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteAppConnector", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::beyondcorp::appconnectors::v1:: + AppConnectorOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::beyondcorp::appconnectors::v1:: + AppConnectorOperationMetadata>, + polling_policy(*current), __func__); +} + future> AppConnectorsServiceConnectionImpl::ReportStatus( google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& @@ -292,6 +463,62 @@ AppConnectorsServiceConnectionImpl::ReportStatus( polling_policy(*current), __func__); } +StatusOr +AppConnectorsServiceConnectionImpl::ReportStatus( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ReportStatus(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::beyondcorp::appconnectors::v1:: + ReportStatusRequest const& request) { + return stub_->ReportStatus(context, options, request); + }, + *current, request, __func__); +} + +future> +AppConnectorsServiceConnectionImpl::ReportStatus( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ReportStatus", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::beyondcorp::appconnectors::v1::AppConnector>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::beyondcorp::appconnectors::v1::AppConnector>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace beyondcorp_appconnectors_v1_internal } // namespace cloud diff --git a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.h b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.h index 60586a225dd05..7eb9b8e6bd02f 100644 --- a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.h +++ b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.h @@ -67,20 +67,57 @@ class AppConnectorsServiceConnectionImpl CreateAppConnector(google::cloud::beyondcorp::appconnectors::v1:: CreateAppConnectorRequest const& request) override; + StatusOr CreateAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + CreateAppConnectorRequest const& request) override; + + future> + CreateAppConnector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAppConnector(google::cloud::beyondcorp::appconnectors::v1:: UpdateAppConnectorRequest const& request) override; + StatusOr UpdateAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + UpdateAppConnectorRequest const& request) override; + + future> + UpdateAppConnector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAppConnector(google::cloud::beyondcorp::appconnectors::v1:: DeleteAppConnectorRequest const& request) override; + StatusOr DeleteAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + DeleteAppConnectorRequest const& request) override; + + future> + DeleteAppConnector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReportStatus( google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& request) override; + StatusOr ReportStatus( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& + request) override; + + future> + ReportStatus(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr< diff --git a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.cc b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.cc index 6f1eaf7d84783..f21cd357fb7b3 100644 --- a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.cc +++ b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.cc @@ -71,6 +71,33 @@ AppConnectorsServiceTracingConnection::CreateAppConnector( child_->CreateAppConnector(request)); } +StatusOr +AppConnectorsServiceTracingConnection::CreateAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + CreateAppConnectorRequest const& request) { + auto span = internal::MakeSpan( + "beyondcorp_appconnectors_v1::AppConnectorsServiceConnection::" + "CreateAppConnector"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateAppConnector(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppConnectorsServiceTracingConnection::CreateAppConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "beyondcorp_appconnectors_v1::AppConnectorsServiceConnection::" + "CreateAppConnector"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateAppConnector(google::cloud::ExperimentalTag{}, operation)); +} + future> AppConnectorsServiceTracingConnection::UpdateAppConnector( google::cloud::beyondcorp::appconnectors::v1:: @@ -83,6 +110,33 @@ AppConnectorsServiceTracingConnection::UpdateAppConnector( child_->UpdateAppConnector(request)); } +StatusOr +AppConnectorsServiceTracingConnection::UpdateAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + UpdateAppConnectorRequest const& request) { + auto span = internal::MakeSpan( + "beyondcorp_appconnectors_v1::AppConnectorsServiceConnection::" + "UpdateAppConnector"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateAppConnector(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppConnectorsServiceTracingConnection::UpdateAppConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "beyondcorp_appconnectors_v1::AppConnectorsServiceConnection::" + "UpdateAppConnector"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateAppConnector(google::cloud::ExperimentalTag{}, operation)); +} + future> AppConnectorsServiceTracingConnection::DeleteAppConnector( @@ -96,6 +150,34 @@ AppConnectorsServiceTracingConnection::DeleteAppConnector( child_->DeleteAppConnector(request)); } +StatusOr +AppConnectorsServiceTracingConnection::DeleteAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + DeleteAppConnectorRequest const& request) { + auto span = internal::MakeSpan( + "beyondcorp_appconnectors_v1::AppConnectorsServiceConnection::" + "DeleteAppConnector"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAppConnector(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppConnectorsServiceTracingConnection::DeleteAppConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "beyondcorp_appconnectors_v1::AppConnectorsServiceConnection::" + "DeleteAppConnector"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAppConnector(google::cloud::ExperimentalTag{}, operation)); +} + future> AppConnectorsServiceTracingConnection::ReportStatus( google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& @@ -107,6 +189,33 @@ AppConnectorsServiceTracingConnection::ReportStatus( return internal::EndSpan(std::move(span), child_->ReportStatus(request)); } +StatusOr +AppConnectorsServiceTracingConnection::ReportStatus( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& + request) { + auto span = internal::MakeSpan( + "beyondcorp_appconnectors_v1::AppConnectorsServiceConnection::" + "ReportStatus"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ReportStatus(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppConnectorsServiceTracingConnection::ReportStatus( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "beyondcorp_appconnectors_v1::AppConnectorsServiceConnection::" + "ReportStatus"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ReportStatus(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.h b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.h index 2fdad8f2f9616..0b011bfc52210 100644 --- a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.h +++ b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.h @@ -55,20 +55,57 @@ class AppConnectorsServiceTracingConnection CreateAppConnector(google::cloud::beyondcorp::appconnectors::v1:: CreateAppConnectorRequest const& request) override; + StatusOr CreateAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + CreateAppConnectorRequest const& request) override; + + future> + CreateAppConnector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAppConnector(google::cloud::beyondcorp::appconnectors::v1:: UpdateAppConnectorRequest const& request) override; + StatusOr UpdateAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + UpdateAppConnectorRequest const& request) override; + + future> + UpdateAppConnector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAppConnector(google::cloud::beyondcorp::appconnectors::v1:: DeleteAppConnectorRequest const& request) override; + StatusOr DeleteAppConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + DeleteAppConnectorRequest const& request) override; + + future> + DeleteAppConnector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReportStatus( google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& request) override; + StatusOr ReportStatus( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& + request) override; + + future> + ReportStatus(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/beyondcorp/appconnectors/v1/mocks/mock_app_connectors_connection.h b/google/cloud/beyondcorp/appconnectors/v1/mocks/mock_app_connectors_connection.h index 2ec3040f1c7c4..45b33fdb87f68 100644 --- a/google/cloud/beyondcorp/appconnectors/v1/mocks/mock_app_connectors_connection.h +++ b/google/cloud/beyondcorp/appconnectors/v1/mocks/mock_app_connectors_connection.h @@ -69,6 +69,20 @@ class MockAppConnectorsServiceConnection CreateAppConnectorRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateAppConnector, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + CreateAppConnectorRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + CreateAppConnector, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -77,6 +91,20 @@ class MockAppConnectorsServiceConnection UpdateAppConnectorRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateAppConnector, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + UpdateAppConnectorRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + UpdateAppConnector, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteAppConnector, @@ -84,6 +112,19 @@ class MockAppConnectorsServiceConnection DeleteAppConnectorRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteAppConnector, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1:: + DeleteAppConnectorRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteAppConnector, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -91,6 +132,21 @@ class MockAppConnectorsServiceConnection (google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, ReportStatus, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + ReportStatus, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/beyondcorp/appgateways/v1/app_gateways_connection.cc b/google/cloud/beyondcorp/appgateways/v1/app_gateways_connection.cc index bbb272cdf10b1..1dd4143d80e56 100644 --- a/google/cloud/beyondcorp/appgateways/v1/app_gateways_connection.cc +++ b/google/cloud/beyondcorp/appgateways/v1/app_gateways_connection.cc @@ -61,6 +61,23 @@ AppGatewaysServiceConnection::CreateAppGateway( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AppGatewaysServiceConnection::CreateAppGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appgateways::v1:: + CreateAppGatewayRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppGatewaysServiceConnection::CreateAppGateway( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AppGatewaysServiceConnection::DeleteAppGateway( @@ -71,6 +88,24 @@ AppGatewaysServiceConnection::DeleteAppGateway( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AppGatewaysServiceConnection::DeleteAppGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appgateways::v1:: + DeleteAppGatewayRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AppGatewaysServiceConnection::DeleteAppGateway( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeAppGatewaysServiceConnection( Options options) { internal::CheckExpectedOptions CreateAppGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appgateways::v1::CreateAppGatewayRequest const& + request); + + virtual future< + StatusOr> + CreateAppGateway(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteAppGateway( google::cloud::beyondcorp::appgateways::v1::DeleteAppGatewayRequest const& request); + + virtual StatusOr DeleteAppGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appgateways::v1::DeleteAppGatewayRequest const& + request); + + virtual future> + DeleteAppGateway(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.cc b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.cc index 639511f107bb1..86f257830dca8 100644 --- a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.cc +++ b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.cc @@ -166,6 +166,62 @@ AppGatewaysServiceConnectionImpl::CreateAppGateway( polling_policy(*current), __func__); } +StatusOr +AppGatewaysServiceConnectionImpl::CreateAppGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appgateways::v1::CreateAppGatewayRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAppGateway(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::beyondcorp::appgateways::v1:: + CreateAppGatewayRequest const& request) { + return stub_->CreateAppGateway(context, options, request); + }, + *current, request, __func__); +} + +future> +AppGatewaysServiceConnectionImpl::CreateAppGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAppGateway", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::beyondcorp::appgateways::v1::AppGateway>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::beyondcorp::appgateways::v1::AppGateway>, + polling_policy(*current), __func__); +} + future> AppGatewaysServiceConnectionImpl::DeleteAppGateway( @@ -208,6 +264,64 @@ AppGatewaysServiceConnectionImpl::DeleteAppGateway( polling_policy(*current), __func__); } +StatusOr +AppGatewaysServiceConnectionImpl::DeleteAppGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appgateways::v1::DeleteAppGatewayRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAppGateway(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::beyondcorp::appgateways::v1:: + DeleteAppGatewayRequest const& request) { + return stub_->DeleteAppGateway(context, options, request); + }, + *current, request, __func__); +} + +future> +AppGatewaysServiceConnectionImpl::DeleteAppGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteAppGateway", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::beyondcorp::appgateways::v1::AppGatewayOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::beyondcorp::appgateways::v1:: + AppGatewayOperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace beyondcorp_appgateways_v1_internal } // namespace cloud diff --git a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.h b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.h index 2a2f55e462793..b94e835cdb502 100644 --- a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.h +++ b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.h @@ -69,12 +69,31 @@ class AppGatewaysServiceConnectionImpl google::cloud::beyondcorp::appgateways::v1::CreateAppGatewayRequest const& request) override; + StatusOr CreateAppGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appgateways::v1::CreateAppGatewayRequest const& + request) override; + + future> + CreateAppGateway(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAppGateway( google::cloud::beyondcorp::appgateways::v1::DeleteAppGatewayRequest const& request) override; + StatusOr DeleteAppGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appgateways::v1::DeleteAppGatewayRequest const& + request) override; + + future> + DeleteAppGateway(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr diff --git a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.cc b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.cc index 6eb7798c658e5..c43c502f48c36 100644 --- a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.cc +++ b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.cc @@ -69,6 +69,33 @@ AppGatewaysServiceTracingConnection::CreateAppGateway( return internal::EndSpan(std::move(span), child_->CreateAppGateway(request)); } +StatusOr +AppGatewaysServiceTracingConnection::CreateAppGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appgateways::v1::CreateAppGatewayRequest const& + request) { + auto span = internal::MakeSpan( + "beyondcorp_appgateways_v1::AppGatewaysServiceConnection::" + "CreateAppGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateAppGateway(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppGatewaysServiceTracingConnection::CreateAppGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "beyondcorp_appgateways_v1::AppGatewaysServiceConnection::" + "CreateAppGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateAppGateway(google::cloud::ExperimentalTag{}, operation)); +} + future> AppGatewaysServiceTracingConnection::DeleteAppGateway( @@ -81,6 +108,34 @@ AppGatewaysServiceTracingConnection::DeleteAppGateway( return internal::EndSpan(std::move(span), child_->DeleteAppGateway(request)); } +StatusOr +AppGatewaysServiceTracingConnection::DeleteAppGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appgateways::v1::DeleteAppGatewayRequest const& + request) { + auto span = internal::MakeSpan( + "beyondcorp_appgateways_v1::AppGatewaysServiceConnection::" + "DeleteAppGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAppGateway(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AppGatewaysServiceTracingConnection::DeleteAppGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "beyondcorp_appgateways_v1::AppGatewaysServiceConnection::" + "DeleteAppGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAppGateway(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.h b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.h index 781a384d958d7..ecf904cab344e 100644 --- a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.h +++ b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.h @@ -56,12 +56,31 @@ class AppGatewaysServiceTracingConnection google::cloud::beyondcorp::appgateways::v1::CreateAppGatewayRequest const& request) override; + StatusOr CreateAppGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appgateways::v1::CreateAppGatewayRequest const& + request) override; + + future> + CreateAppGateway(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAppGateway( google::cloud::beyondcorp::appgateways::v1::DeleteAppGatewayRequest const& request) override; + StatusOr DeleteAppGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appgateways::v1::DeleteAppGatewayRequest const& + request) override; + + future> + DeleteAppGateway(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/beyondcorp/appgateways/v1/mocks/mock_app_gateways_connection.h b/google/cloud/beyondcorp/appgateways/v1/mocks/mock_app_gateways_connection.h index 2b226f74c1b48..0ea4768a742bd 100644 --- a/google/cloud/beyondcorp/appgateways/v1/mocks/mock_app_gateways_connection.h +++ b/google/cloud/beyondcorp/appgateways/v1/mocks/mock_app_gateways_connection.h @@ -68,12 +68,38 @@ class MockAppGatewaysServiceConnection CreateAppGatewayRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateAppGateway, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appgateways::v1:: + CreateAppGatewayRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateAppGateway, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteAppGateway, (google::cloud::beyondcorp::appgateways::v1:: DeleteAppGatewayRequest const& request), (override)); + + MOCK_METHOD(StatusOr, DeleteAppGateway, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::beyondcorp::appgateways::v1:: + DeleteAppGatewayRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteAppGateway, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/bigquery/analyticshub/v1/analytics_hub_connection.cc b/google/cloud/bigquery/analyticshub/v1/analytics_hub_connection.cc index bc868e2d9e95c..09feb7ba538fa 100644 --- a/google/cloud/bigquery/analyticshub/v1/analytics_hub_connection.cc +++ b/google/cloud/bigquery/analyticshub/v1/analytics_hub_connection.cc @@ -128,6 +128,25 @@ AnalyticsHubServiceConnection::SubscribeDataExchange( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AnalyticsHubServiceConnection::SubscribeDataExchange( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + SubscribeDataExchangeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AnalyticsHubServiceConnection::SubscribeDataExchange( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AnalyticsHubServiceConnection::RefreshSubscription( @@ -138,6 +157,24 @@ AnalyticsHubServiceConnection::RefreshSubscription( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AnalyticsHubServiceConnection::RefreshSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + RefreshSubscriptionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AnalyticsHubServiceConnection::RefreshSubscription( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AnalyticsHubServiceConnection::GetSubscription( google::cloud::bigquery::analyticshub::v1::GetSubscriptionRequest const&) { @@ -176,6 +213,23 @@ AnalyticsHubServiceConnection::DeleteSubscription( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AnalyticsHubServiceConnection::DeleteSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + DeleteSubscriptionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AnalyticsHubServiceConnection::DeleteSubscription( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AnalyticsHubServiceConnection::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); diff --git a/google/cloud/bigquery/analyticshub/v1/analytics_hub_connection.h b/google/cloud/bigquery/analyticshub/v1/analytics_hub_connection.h index 9dcb81658900f..27d5def21e20c 100644 --- a/google/cloud/bigquery/analyticshub/v1/analytics_hub_connection.h +++ b/google/cloud/bigquery/analyticshub/v1/analytics_hub_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/bigquery/analyticshub/v1/analytics_hub_connection_idempotency_policy.h" #include "google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -249,11 +251,31 @@ class AnalyticsHubServiceConnection { SubscribeDataExchange(google::cloud::bigquery::analyticshub::v1:: SubscribeDataExchangeRequest const& request); + virtual StatusOr SubscribeDataExchange( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + SubscribeDataExchangeRequest const& request); + + virtual future> + SubscribeDataExchange(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RefreshSubscription(google::cloud::bigquery::analyticshub::v1:: RefreshSubscriptionRequest const& request); + virtual StatusOr RefreshSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + RefreshSubscriptionRequest const& request); + + virtual future> + RefreshSubscription(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetSubscription( google::cloud::bigquery::analyticshub::v1::GetSubscriptionRequest const& @@ -279,6 +301,16 @@ class AnalyticsHubServiceConnection { DeleteSubscription(google::cloud::bigquery::analyticshub::v1:: DeleteSubscriptionRequest const& request); + virtual StatusOr DeleteSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + DeleteSubscriptionRequest const& request); + + virtual future< + StatusOr> + DeleteSubscription(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request); diff --git a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.cc b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.cc index a3fc48153b1cd..cccfd56f1c0f3 100644 --- a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.cc +++ b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.cc @@ -371,6 +371,64 @@ AnalyticsHubServiceConnectionImpl::SubscribeDataExchange( polling_policy(*current), __func__); } +StatusOr +AnalyticsHubServiceConnectionImpl::SubscribeDataExchange( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + SubscribeDataExchangeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SubscribeDataExchange(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::bigquery::analyticshub::v1:: + SubscribeDataExchangeRequest const& request) { + return stub_->SubscribeDataExchange(context, options, request); + }, + *current, request, __func__); +} + +future> +AnalyticsHubServiceConnectionImpl::SubscribeDataExchange( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to SubscribeDataExchange", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::bigquery::analyticshub::v1::SubscribeDataExchangeResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::bigquery::analyticshub::v1:: + SubscribeDataExchangeResponse>, + polling_policy(*current), __func__); +} + future> AnalyticsHubServiceConnectionImpl::RefreshSubscription( @@ -413,6 +471,64 @@ AnalyticsHubServiceConnectionImpl::RefreshSubscription( polling_policy(*current), __func__); } +StatusOr +AnalyticsHubServiceConnectionImpl::RefreshSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1::RefreshSubscriptionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RefreshSubscription(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::bigquery::analyticshub::v1:: + RefreshSubscriptionRequest const& request) { + return stub_->RefreshSubscription(context, options, request); + }, + *current, request, __func__); +} + +future> +AnalyticsHubServiceConnectionImpl::RefreshSubscription( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RefreshSubscription", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::bigquery::analyticshub::v1::RefreshSubscriptionResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::bigquery::analyticshub::v1:: + RefreshSubscriptionResponse>, + polling_policy(*current), __func__); +} + StatusOr AnalyticsHubServiceConnectionImpl::GetSubscription( google::cloud::bigquery::analyticshub::v1::GetSubscriptionRequest const& @@ -562,6 +678,62 @@ AnalyticsHubServiceConnectionImpl::DeleteSubscription( polling_policy(*current), __func__); } +StatusOr +AnalyticsHubServiceConnectionImpl::DeleteSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1::DeleteSubscriptionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSubscription(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::bigquery::analyticshub::v1:: + DeleteSubscriptionRequest const& request) { + return stub_->DeleteSubscription(context, options, request); + }, + *current, request, __func__); +} + +future> +AnalyticsHubServiceConnectionImpl::DeleteSubscription( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteSubscription", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::bigquery::analyticshub::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::bigquery::analyticshub::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr AnalyticsHubServiceConnectionImpl::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) { diff --git a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.h b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.h index b852299f0fa83..ce62783294d78 100644 --- a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.h +++ b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.h @@ -112,11 +112,32 @@ class AnalyticsHubServiceConnectionImpl google::cloud::bigquery::analyticshub::v1:: SubscribeDataExchangeRequest const& request) override; + StatusOr SubscribeDataExchange( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + SubscribeDataExchangeRequest const& request) override; + + future> + SubscribeDataExchange( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RefreshSubscription(google::cloud::bigquery::analyticshub::v1:: RefreshSubscriptionRequest const& request) override; + StatusOr RefreshSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + RefreshSubscriptionRequest const& request) override; + + future> + RefreshSubscription(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetSubscription( google::cloud::bigquery::analyticshub::v1::GetSubscriptionRequest const& @@ -141,6 +162,15 @@ class AnalyticsHubServiceConnectionImpl DeleteSubscription(google::cloud::bigquery::analyticshub::v1:: DeleteSubscriptionRequest const& request) override; + StatusOr DeleteSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + DeleteSubscriptionRequest const& request) override; + + future> + DeleteSubscription(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.cc b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.cc index 3beab90182f52..72198961da6d9 100644 --- a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.cc +++ b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.cc @@ -180,6 +180,34 @@ AnalyticsHubServiceTracingConnection::SubscribeDataExchange( child_->SubscribeDataExchange(request)); } +StatusOr +AnalyticsHubServiceTracingConnection::SubscribeDataExchange( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + SubscribeDataExchangeRequest const& request) { + auto span = internal::MakeSpan( + "bigquery_analyticshub_v1::AnalyticsHubServiceConnection::" + "SubscribeDataExchange"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SubscribeDataExchange( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AnalyticsHubServiceTracingConnection::SubscribeDataExchange( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "bigquery_analyticshub_v1::AnalyticsHubServiceConnection::" + "SubscribeDataExchange"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SubscribeDataExchange( + google::cloud::ExperimentalTag{}, operation)); +} + future> AnalyticsHubServiceTracingConnection::RefreshSubscription( @@ -193,6 +221,34 @@ AnalyticsHubServiceTracingConnection::RefreshSubscription( child_->RefreshSubscription(request)); } +StatusOr +AnalyticsHubServiceTracingConnection::RefreshSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1::RefreshSubscriptionRequest const& + request) { + auto span = internal::MakeSpan( + "bigquery_analyticshub_v1::AnalyticsHubServiceConnection::" + "RefreshSubscription"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RefreshSubscription(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AnalyticsHubServiceTracingConnection::RefreshSubscription( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "bigquery_analyticshub_v1::AnalyticsHubServiceConnection::" + "RefreshSubscription"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RefreshSubscription(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AnalyticsHubServiceTracingConnection::GetSubscription( google::cloud::bigquery::analyticshub::v1::GetSubscriptionRequest const& @@ -255,6 +311,33 @@ AnalyticsHubServiceTracingConnection::DeleteSubscription( child_->DeleteSubscription(request)); } +StatusOr +AnalyticsHubServiceTracingConnection::DeleteSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1::DeleteSubscriptionRequest const& + request) { + auto span = internal::MakeSpan( + "bigquery_analyticshub_v1::AnalyticsHubServiceConnection::" + "DeleteSubscription"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSubscription(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AnalyticsHubServiceTracingConnection::DeleteSubscription( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "bigquery_analyticshub_v1::AnalyticsHubServiceConnection::" + "DeleteSubscription"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSubscription(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AnalyticsHubServiceTracingConnection::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) { diff --git a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.h b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.h index 0a49714839718..91ce60e5c86ca 100644 --- a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.h +++ b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.h @@ -99,11 +99,32 @@ class AnalyticsHubServiceTracingConnection google::cloud::bigquery::analyticshub::v1:: SubscribeDataExchangeRequest const& request) override; + StatusOr SubscribeDataExchange( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + SubscribeDataExchangeRequest const& request) override; + + future> + SubscribeDataExchange( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RefreshSubscription(google::cloud::bigquery::analyticshub::v1:: RefreshSubscriptionRequest const& request) override; + StatusOr RefreshSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + RefreshSubscriptionRequest const& request) override; + + future> + RefreshSubscription(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetSubscription( google::cloud::bigquery::analyticshub::v1::GetSubscriptionRequest const& @@ -128,6 +149,15 @@ class AnalyticsHubServiceTracingConnection DeleteSubscription(google::cloud::bigquery::analyticshub::v1:: DeleteSubscriptionRequest const& request) override; + StatusOr DeleteSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + DeleteSubscriptionRequest const& request) override; + + future> + DeleteSubscription(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/bigquery/analyticshub/v1/mocks/mock_analytics_hub_connection.h b/google/cloud/bigquery/analyticshub/v1/mocks/mock_analytics_hub_connection.h index 67fa7a006e600..50c94dd1de199 100644 --- a/google/cloud/bigquery/analyticshub/v1/mocks/mock_analytics_hub_connection.h +++ b/google/cloud/bigquery/analyticshub/v1/mocks/mock_analytics_hub_connection.h @@ -132,6 +132,19 @@ class MockAnalyticsHubServiceConnection SubscribeDataExchangeRequest const& request), (override)); + MOCK_METHOD(StatusOr, SubscribeDataExchange, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + SubscribeDataExchangeRequest const& request), + (override)); + + MOCK_METHOD(future>, + SubscribeDataExchange, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, RefreshSubscription, @@ -139,6 +152,19 @@ class MockAnalyticsHubServiceConnection RefreshSubscriptionRequest const& request), (override)); + MOCK_METHOD(StatusOr, RefreshSubscription, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + RefreshSubscriptionRequest const& request), + (override)); + + MOCK_METHOD(future>, + RefreshSubscription, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetSubscription, @@ -175,6 +201,20 @@ class MockAnalyticsHubServiceConnection DeleteSubscriptionRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteSubscription, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::bigquery::analyticshub::v1:: + DeleteSubscriptionRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteSubscription, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetIamPolicy, (google::iam::v1::GetIamPolicyRequest const& request), (override)); diff --git a/google/cloud/bigquery/biglake/v1/metastore_connection.h b/google/cloud/bigquery/biglake/v1/metastore_connection.h index acf97201beea7..298615fdf76bc 100644 --- a/google/cloud/bigquery/biglake/v1/metastore_connection.h +++ b/google/cloud/bigquery/biglake/v1/metastore_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/bigquery/biglake/v1/internal/metastore_retry_traits.h" #include "google/cloud/bigquery/biglake/v1/metastore_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/bigquery/connection/v1/connection_connection.h b/google/cloud/bigquery/connection/v1/connection_connection.h index cacdee9d8391c..00d444ea409ad 100644 --- a/google/cloud/bigquery/connection/v1/connection_connection.h +++ b/google/cloud/bigquery/connection/v1/connection_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/bigquery/connection/v1/connection_connection_idempotency_policy.h" #include "google/cloud/bigquery/connection/v1/internal/connection_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/bigquery/datapolicies/v1/data_policy_connection.h b/google/cloud/bigquery/datapolicies/v1/data_policy_connection.h index 8adcf71c164fc..927c9af0a8a8d 100644 --- a/google/cloud/bigquery/datapolicies/v1/data_policy_connection.h +++ b/google/cloud/bigquery/datapolicies/v1/data_policy_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/bigquery/datapolicies/v1/data_policy_connection_idempotency_policy.h" #include "google/cloud/bigquery/datapolicies/v1/internal/data_policy_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/bigquery/datatransfer/v1/data_transfer_connection.h b/google/cloud/bigquery/datatransfer/v1/data_transfer_connection.h index c2574ffcff385..6a9bb2f195a4f 100644 --- a/google/cloud/bigquery/datatransfer/v1/data_transfer_connection.h +++ b/google/cloud/bigquery/datatransfer/v1/data_transfer_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/bigquery/datatransfer/v1/data_transfer_connection_idempotency_policy.h" #include "google/cloud/bigquery/datatransfer/v1/internal/data_transfer_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/bigquery/migration/v2/migration_connection.h b/google/cloud/bigquery/migration/v2/migration_connection.h index 773edbb66cbef..3ef56f2522a51 100644 --- a/google/cloud/bigquery/migration/v2/migration_connection.h +++ b/google/cloud/bigquery/migration/v2/migration_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/bigquery/migration/v2/internal/migration_retry_traits.h" #include "google/cloud/bigquery/migration/v2/migration_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/bigquery/reservation/v1/reservation_connection.h b/google/cloud/bigquery/reservation/v1/reservation_connection.h index e0eebb61a4c52..762d2024a529c 100644 --- a/google/cloud/bigquery/reservation/v1/reservation_connection.h +++ b/google/cloud/bigquery/reservation/v1/reservation_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/bigquery/reservation/v1/internal/reservation_retry_traits.h" #include "google/cloud/bigquery/reservation/v1/reservation_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/bigquery/storage/v1/bigquery_read_connection.h b/google/cloud/bigquery/storage/v1/bigquery_read_connection.h index 63a7245212169..231d12b45ad1b 100644 --- a/google/cloud/bigquery/storage/v1/bigquery_read_connection.h +++ b/google/cloud/bigquery/storage/v1/bigquery_read_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/bigquery/storage/v1/bigquery_read_connection_idempotency_policy.h" #include "google/cloud/bigquery/storage/v1/internal/bigquery_read_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/bigquery/storage/v1/bigquery_write_connection.h b/google/cloud/bigquery/storage/v1/bigquery_write_connection.h index a2dd1c8ee5550..6335cf876d35a 100644 --- a/google/cloud/bigquery/storage/v1/bigquery_write_connection.h +++ b/google/cloud/bigquery/storage/v1/bigquery_write_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/bigquery/storage/v1/bigquery_write_connection_idempotency_policy.h" #include "google/cloud/bigquery/storage/v1/internal/bigquery_write_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/async_read_write_stream_impl.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" diff --git a/google/cloud/bigtable/admin/bigtable_instance_admin_connection.cc b/google/cloud/bigtable/admin/bigtable_instance_admin_connection.cc index 3eb941949a22b..d8aaf500ca8d1 100644 --- a/google/cloud/bigtable/admin/bigtable_instance_admin_connection.cc +++ b/google/cloud/bigtable/admin/bigtable_instance_admin_connection.cc @@ -46,6 +46,22 @@ BigtableInstanceAdminConnection::CreateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BigtableInstanceAdminConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BigtableInstanceAdminConnection::CreateInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr BigtableInstanceAdminConnection::GetInstance( google::bigtable::admin::v2::GetInstanceRequest const&) { @@ -72,6 +88,22 @@ BigtableInstanceAdminConnection::PartialUpdateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BigtableInstanceAdminConnection::PartialUpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::PartialUpdateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BigtableInstanceAdminConnection::PartialUpdateInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status BigtableInstanceAdminConnection::DeleteInstance( google::bigtable::admin::v2::DeleteInstanceRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -85,6 +117,22 @@ BigtableInstanceAdminConnection::CreateCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BigtableInstanceAdminConnection::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BigtableInstanceAdminConnection::CreateCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr BigtableInstanceAdminConnection::GetCluster( google::bigtable::admin::v2::GetClusterRequest const&) { @@ -105,6 +153,22 @@ BigtableInstanceAdminConnection::UpdateCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BigtableInstanceAdminConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::Cluster const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BigtableInstanceAdminConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BigtableInstanceAdminConnection::PartialUpdateCluster( google::bigtable::admin::v2::PartialUpdateClusterRequest const&) { @@ -113,6 +177,22 @@ BigtableInstanceAdminConnection::PartialUpdateCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BigtableInstanceAdminConnection::PartialUpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::PartialUpdateClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BigtableInstanceAdminConnection::PartialUpdateCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status BigtableInstanceAdminConnection::DeleteCluster( google::bigtable::admin::v2::DeleteClusterRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -146,6 +226,22 @@ BigtableInstanceAdminConnection::UpdateAppProfile( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BigtableInstanceAdminConnection::UpdateAppProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateAppProfileRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BigtableInstanceAdminConnection::UpdateAppProfile( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status BigtableInstanceAdminConnection::DeleteAppProfile( google::bigtable::admin::v2::DeleteAppProfileRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); diff --git a/google/cloud/bigtable/admin/bigtable_instance_admin_connection.h b/google/cloud/bigtable/admin/bigtable_instance_admin_connection.h index 45b723ab38d46..930f962375d6f 100644 --- a/google/cloud/bigtable/admin/bigtable_instance_admin_connection.h +++ b/google/cloud/bigtable/admin/bigtable_instance_admin_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/bigtable/admin/bigtable_instance_admin_connection_idempotency_policy.h" #include "google/cloud/bigtable/admin/internal/bigtable_instance_admin_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -197,6 +199,14 @@ class BigtableInstanceAdminConnection { CreateInstance( google::bigtable::admin::v2::CreateInstanceRequest const& request); + virtual StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateInstanceRequest const& request); + + virtual future> + CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetInstance( google::bigtable::admin::v2::GetInstanceRequest const& request); @@ -211,12 +221,28 @@ class BigtableInstanceAdminConnection { PartialUpdateInstance( google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request); + virtual StatusOr PartialUpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request); + + virtual future> + PartialUpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status DeleteInstance( google::bigtable::admin::v2::DeleteInstanceRequest const& request); virtual future> CreateCluster( google::bigtable::admin::v2::CreateClusterRequest const& request); + virtual StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateClusterRequest const& request); + + virtual future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetCluster( google::bigtable::admin::v2::GetClusterRequest const& request); @@ -226,10 +252,26 @@ class BigtableInstanceAdminConnection { virtual future> UpdateCluster( google::bigtable::admin::v2::Cluster const& request); + virtual StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::Cluster const& request); + + virtual future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> PartialUpdateCluster( google::bigtable::admin::v2::PartialUpdateClusterRequest const& request); + virtual StatusOr PartialUpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::PartialUpdateClusterRequest const& request); + + virtual future> + PartialUpdateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status DeleteCluster( google::bigtable::admin::v2::DeleteClusterRequest const& request); @@ -246,6 +288,14 @@ class BigtableInstanceAdminConnection { UpdateAppProfile( google::bigtable::admin::v2::UpdateAppProfileRequest const& request); + virtual StatusOr UpdateAppProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateAppProfileRequest const& request); + + virtual future> + UpdateAppProfile(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status DeleteAppProfile( google::bigtable::admin::v2::DeleteAppProfileRequest const& request); diff --git a/google/cloud/bigtable/admin/bigtable_table_admin_connection.cc b/google/cloud/bigtable/admin/bigtable_table_admin_connection.cc index fbfc9c041fef3..0a7c4ee289302 100644 --- a/google/cloud/bigtable/admin/bigtable_table_admin_connection.cc +++ b/google/cloud/bigtable/admin/bigtable_table_admin_connection.cc @@ -66,6 +66,22 @@ BigtableTableAdminConnection::UpdateTable( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BigtableTableAdminConnection::UpdateTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateTableRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BigtableTableAdminConnection::UpdateTable( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status BigtableTableAdminConnection::DeleteTable( google::bigtable::admin::v2::DeleteTableRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -79,6 +95,22 @@ BigtableTableAdminConnection::UndeleteTable( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BigtableTableAdminConnection::UndeleteTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UndeleteTableRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BigtableTableAdminConnection::UndeleteTable( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BigtableTableAdminConnection::CreateAuthorizedView( google::bigtable::admin::v2::CreateAuthorizedViewRequest const&) { @@ -87,6 +119,22 @@ BigtableTableAdminConnection::CreateAuthorizedView( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BigtableTableAdminConnection::CreateAuthorizedView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateAuthorizedViewRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BigtableTableAdminConnection::CreateAuthorizedView( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange BigtableTableAdminConnection::ListAuthorizedViews( google::bigtable::admin::v2:: @@ -109,6 +157,22 @@ BigtableTableAdminConnection::UpdateAuthorizedView( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BigtableTableAdminConnection::UpdateAuthorizedView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateAuthorizedViewRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BigtableTableAdminConnection::UpdateAuthorizedView( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status BigtableTableAdminConnection::DeleteAuthorizedView( google::bigtable::admin::v2::DeleteAuthorizedViewRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -145,6 +209,22 @@ BigtableTableAdminConnection::CreateBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BigtableTableAdminConnection::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BigtableTableAdminConnection::CreateBackup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr BigtableTableAdminConnection::GetBackup( google::bigtable::admin::v2::GetBackupRequest const&) { @@ -178,6 +258,22 @@ BigtableTableAdminConnection::RestoreTable( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BigtableTableAdminConnection::RestoreTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::RestoreTableRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BigtableTableAdminConnection::RestoreTable( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BigtableTableAdminConnection::CopyBackup( google::bigtable::admin::v2::CopyBackupRequest const&) { @@ -186,6 +282,22 @@ BigtableTableAdminConnection::CopyBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BigtableTableAdminConnection::CopyBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CopyBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BigtableTableAdminConnection::CopyBackup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr BigtableTableAdminConnection::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); diff --git a/google/cloud/bigtable/admin/bigtable_table_admin_connection.h b/google/cloud/bigtable/admin/bigtable_table_admin_connection.h index 7a1958a10884b..4c76fed4b2090 100644 --- a/google/cloud/bigtable/admin/bigtable_table_admin_connection.h +++ b/google/cloud/bigtable/admin/bigtable_table_admin_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/bigtable/admin/bigtable_table_admin_connection_idempotency_policy.h" #include "google/cloud/bigtable/admin/internal/bigtable_table_admin_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -202,16 +204,40 @@ class BigtableTableAdminConnection { virtual future> UpdateTable( google::bigtable::admin::v2::UpdateTableRequest const& request); + virtual StatusOr UpdateTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateTableRequest const& request); + + virtual future> UpdateTable( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status DeleteTable( google::bigtable::admin::v2::DeleteTableRequest const& request); virtual future> UndeleteTable( google::bigtable::admin::v2::UndeleteTableRequest const& request); + virtual StatusOr UndeleteTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UndeleteTableRequest const& request); + + virtual future> UndeleteTable( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateAuthorizedView( google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request); + virtual StatusOr CreateAuthorizedView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request); + + virtual future> + CreateAuthorizedView(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListAuthorizedViews( google::bigtable::admin::v2::ListAuthorizedViewsRequest request); @@ -224,6 +250,14 @@ class BigtableTableAdminConnection { UpdateAuthorizedView( google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request); + virtual StatusOr UpdateAuthorizedView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request); + + virtual future> + UpdateAuthorizedView(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status DeleteAuthorizedView( google::bigtable::admin::v2::DeleteAuthorizedViewRequest const& request); @@ -246,6 +280,14 @@ class BigtableTableAdminConnection { virtual future> CreateBackup( google::bigtable::admin::v2::CreateBackupRequest const& request); + virtual StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateBackupRequest const& request); + + virtual future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetBackup( google::bigtable::admin::v2::GetBackupRequest const& request); @@ -261,9 +303,25 @@ class BigtableTableAdminConnection { virtual future> RestoreTable( google::bigtable::admin::v2::RestoreTableRequest const& request); + virtual StatusOr RestoreTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::RestoreTableRequest const& request); + + virtual future> RestoreTable( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CopyBackup( google::bigtable::admin::v2::CopyBackupRequest const& request); + virtual StatusOr CopyBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CopyBackupRequest const& request); + + virtual future> CopyBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request); diff --git a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.cc b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.cc index 9bcc8f3eeb5cc..bb7f83c16df5b 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.cc +++ b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.cc @@ -110,6 +110,60 @@ BigtableInstanceAdminConnectionImpl::CreateInstance( polling_policy(*current), __func__); } +StatusOr +BigtableInstanceAdminConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::bigtable::admin::v2::CreateInstanceRequest const& request) { + return stub_->CreateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +BigtableInstanceAdminConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::bigtable::admin::v2::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::bigtable::admin::v2::Instance>, + polling_policy(*current), __func__); +} + StatusOr BigtableInstanceAdminConnectionImpl::GetInstance( google::bigtable::admin::v2::GetInstanceRequest const& request) { @@ -192,6 +246,60 @@ BigtableInstanceAdminConnectionImpl::PartialUpdateInstance( polling_policy(*current), __func__); } +StatusOr +BigtableInstanceAdminConnectionImpl::PartialUpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PartialUpdateInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::bigtable::admin::v2::PartialUpdateInstanceRequest const& + request) { + return stub_->PartialUpdateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +BigtableInstanceAdminConnectionImpl::PartialUpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to PartialUpdateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::bigtable::admin::v2::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::bigtable::admin::v2::Instance>, + polling_policy(*current), __func__); +} + Status BigtableInstanceAdminConnectionImpl::DeleteInstance( google::bigtable::admin::v2::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -245,6 +353,58 @@ BigtableInstanceAdminConnectionImpl::CreateCluster( polling_policy(*current), __func__); } +StatusOr +BigtableInstanceAdminConnectionImpl::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::bigtable::admin::v2::CreateClusterRequest const& request) { + return stub_->CreateCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +BigtableInstanceAdminConnectionImpl::CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::bigtable::admin::v2::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::bigtable::admin::v2::Cluster>, + polling_policy(*current), __func__); +} + StatusOr BigtableInstanceAdminConnectionImpl::GetCluster( google::bigtable::admin::v2::GetClusterRequest const& request) { @@ -311,6 +471,58 @@ BigtableInstanceAdminConnectionImpl::UpdateCluster( polling_policy(*current), __func__); } +StatusOr +BigtableInstanceAdminConnectionImpl::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::Cluster const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::bigtable::admin::v2::Cluster const& request) { + return stub_->UpdateCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +BigtableInstanceAdminConnectionImpl::UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::bigtable::admin::v2::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::bigtable::admin::v2::Cluster>, + polling_policy(*current), __func__); +} + future> BigtableInstanceAdminConnectionImpl::PartialUpdateCluster( google::bigtable::admin::v2::PartialUpdateClusterRequest const& request) { @@ -351,6 +563,60 @@ BigtableInstanceAdminConnectionImpl::PartialUpdateCluster( polling_policy(*current), __func__); } +StatusOr +BigtableInstanceAdminConnectionImpl::PartialUpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::PartialUpdateClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PartialUpdateCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::bigtable::admin::v2::PartialUpdateClusterRequest const& + request) { + return stub_->PartialUpdateCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +BigtableInstanceAdminConnectionImpl::PartialUpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to PartialUpdateCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::bigtable::admin::v2::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::bigtable::admin::v2::Cluster>, + polling_policy(*current), __func__); +} + Status BigtableInstanceAdminConnectionImpl::DeleteCluster( google::bigtable::admin::v2::DeleteClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -467,6 +733,60 @@ BigtableInstanceAdminConnectionImpl::UpdateAppProfile( polling_policy(*current), __func__); } +StatusOr +BigtableInstanceAdminConnectionImpl::UpdateAppProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateAppProfileRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAppProfile(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::bigtable::admin::v2::UpdateAppProfileRequest const& request) { + return stub_->UpdateAppProfile(context, options, request); + }, + *current, request, __func__); +} + +future> +BigtableInstanceAdminConnectionImpl::UpdateAppProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateAppProfile", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::bigtable::admin::v2::AppProfile>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::bigtable::admin::v2::AppProfile>, + polling_policy(*current), __func__); +} + Status BigtableInstanceAdminConnectionImpl::DeleteAppProfile( google::bigtable::admin::v2::DeleteAppProfileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.h b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.h index 111dcd0c8c940..5700ce29483ae 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.h +++ b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.h @@ -56,6 +56,15 @@ class BigtableInstanceAdminConnectionImpl google::bigtable::admin::v2::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateInstanceRequest const& request) + override; + + future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetInstance( google::bigtable::admin::v2::GetInstanceRequest const& request) override; @@ -70,6 +79,15 @@ class BigtableInstanceAdminConnectionImpl google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request) override; + StatusOr PartialUpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request) + override; + + future> PartialUpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteInstance( google::bigtable::admin::v2::DeleteInstanceRequest const& request) override; @@ -78,6 +96,15 @@ class BigtableInstanceAdminConnectionImpl google::bigtable::admin::v2::CreateClusterRequest const& request) override; + StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateClusterRequest const& request) + override; + + future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetCluster( google::bigtable::admin::v2::GetClusterRequest const& request) override; @@ -87,10 +114,27 @@ class BigtableInstanceAdminConnectionImpl future> UpdateCluster( google::bigtable::admin::v2::Cluster const& request) override; + StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::Cluster const& request) override; + + future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PartialUpdateCluster( google::bigtable::admin::v2::PartialUpdateClusterRequest const& request) override; + StatusOr PartialUpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::PartialUpdateClusterRequest const& request) + override; + + future> PartialUpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteCluster(google::bigtable::admin::v2::DeleteClusterRequest const& request) override; @@ -109,6 +153,15 @@ class BigtableInstanceAdminConnectionImpl google::bigtable::admin::v2::UpdateAppProfileRequest const& request) override; + StatusOr UpdateAppProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateAppProfileRequest const& request) + override; + + future> UpdateAppProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteAppProfile( google::bigtable::admin::v2::DeleteAppProfileRequest const& request) override; diff --git a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.cc b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.cc index bebd5da81bdeb..dafb753ba261e 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.cc +++ b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.cc @@ -42,6 +42,30 @@ BigtableInstanceAdminTracingConnection::CreateInstance( return internal::EndSpan(std::move(span), child_->CreateInstance(request)); } +StatusOr +BigtableInstanceAdminTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateInstanceRequest const& request) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableInstanceAdminConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BigtableInstanceAdminTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableInstanceAdminConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr BigtableInstanceAdminTracingConnection::GetInstance( google::bigtable::admin::v2::GetInstanceRequest const& request) { @@ -79,6 +103,30 @@ BigtableInstanceAdminTracingConnection::PartialUpdateInstance( child_->PartialUpdateInstance(request)); } +StatusOr +BigtableInstanceAdminTracingConnection::PartialUpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableInstanceAdminConnection::PartialUpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PartialUpdateInstance( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BigtableInstanceAdminTracingConnection::PartialUpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableInstanceAdminConnection::PartialUpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PartialUpdateInstance( + google::cloud::ExperimentalTag{}, operation)); +} + Status BigtableInstanceAdminTracingConnection::DeleteInstance( google::bigtable::admin::v2::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan( @@ -96,6 +144,30 @@ BigtableInstanceAdminTracingConnection::CreateCluster( return internal::EndSpan(std::move(span), child_->CreateCluster(request)); } +StatusOr +BigtableInstanceAdminTracingConnection::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateClusterRequest const& request) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableInstanceAdminConnection::CreateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BigtableInstanceAdminTracingConnection::CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableInstanceAdminConnection::CreateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateCluster(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr BigtableInstanceAdminTracingConnection::GetCluster( google::bigtable::admin::v2::GetClusterRequest const& request) { @@ -123,6 +195,30 @@ BigtableInstanceAdminTracingConnection::UpdateCluster( return internal::EndSpan(std::move(span), child_->UpdateCluster(request)); } +StatusOr +BigtableInstanceAdminTracingConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::Cluster const& request) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableInstanceAdminConnection::UpdateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BigtableInstanceAdminTracingConnection::UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableInstanceAdminConnection::UpdateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> BigtableInstanceAdminTracingConnection::PartialUpdateCluster( google::bigtable::admin::v2::PartialUpdateClusterRequest const& request) { @@ -133,6 +229,30 @@ BigtableInstanceAdminTracingConnection::PartialUpdateCluster( child_->PartialUpdateCluster(request)); } +StatusOr +BigtableInstanceAdminTracingConnection::PartialUpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::PartialUpdateClusterRequest const& request) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableInstanceAdminConnection::PartialUpdateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PartialUpdateCluster( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BigtableInstanceAdminTracingConnection::PartialUpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableInstanceAdminConnection::PartialUpdateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PartialUpdateCluster( + google::cloud::ExperimentalTag{}, operation)); +} + Status BigtableInstanceAdminTracingConnection::DeleteCluster( google::bigtable::admin::v2::DeleteClusterRequest const& request) { auto span = internal::MakeSpan( @@ -179,6 +299,30 @@ BigtableInstanceAdminTracingConnection::UpdateAppProfile( return internal::EndSpan(std::move(span), child_->UpdateAppProfile(request)); } +StatusOr +BigtableInstanceAdminTracingConnection::UpdateAppProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateAppProfileRequest const& request) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableInstanceAdminConnection::UpdateAppProfile"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateAppProfile(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BigtableInstanceAdminTracingConnection::UpdateAppProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableInstanceAdminConnection::UpdateAppProfile"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateAppProfile(google::cloud::ExperimentalTag{}, operation)); +} + Status BigtableInstanceAdminTracingConnection::DeleteAppProfile( google::bigtable::admin::v2::DeleteAppProfileRequest const& request) { auto span = internal::MakeSpan( diff --git a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.h b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.h index aaa14e3a3bcc2..958cfc6de6c40 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.h +++ b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.h @@ -44,6 +44,15 @@ class BigtableInstanceAdminTracingConnection google::bigtable::admin::v2::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateInstanceRequest const& request) + override; + + future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetInstance( google::bigtable::admin::v2::GetInstanceRequest const& request) override; @@ -58,6 +67,15 @@ class BigtableInstanceAdminTracingConnection google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request) override; + StatusOr PartialUpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request) + override; + + future> PartialUpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteInstance( google::bigtable::admin::v2::DeleteInstanceRequest const& request) override; @@ -66,6 +84,15 @@ class BigtableInstanceAdminTracingConnection google::bigtable::admin::v2::CreateClusterRequest const& request) override; + StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateClusterRequest const& request) + override; + + future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetCluster( google::bigtable::admin::v2::GetClusterRequest const& request) override; @@ -75,10 +102,27 @@ class BigtableInstanceAdminTracingConnection future> UpdateCluster( google::bigtable::admin::v2::Cluster const& request) override; + StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::Cluster const& request) override; + + future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PartialUpdateCluster( google::bigtable::admin::v2::PartialUpdateClusterRequest const& request) override; + StatusOr PartialUpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::PartialUpdateClusterRequest const& request) + override; + + future> PartialUpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteCluster(google::bigtable::admin::v2::DeleteClusterRequest const& request) override; @@ -97,6 +141,15 @@ class BigtableInstanceAdminTracingConnection google::bigtable::admin::v2::UpdateAppProfileRequest const& request) override; + StatusOr UpdateAppProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateAppProfileRequest const& request) + override; + + future> UpdateAppProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteAppProfile( google::bigtable::admin::v2::DeleteAppProfileRequest const& request) override; diff --git a/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.cc b/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.cc index b61f965601cca..cd53f4ffa6ffb 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.cc +++ b/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.cc @@ -170,6 +170,58 @@ BigtableTableAdminConnectionImpl::UpdateTable( polling_policy(*current), __func__); } +StatusOr +BigtableTableAdminConnectionImpl::UpdateTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateTableRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateTable(request), + [this](grpc::ClientContext& context, Options const& options, + google::bigtable::admin::v2::UpdateTableRequest const& request) { + return stub_->UpdateTable(context, options, request); + }, + *current, request, __func__); +} + +future> +BigtableTableAdminConnectionImpl::UpdateTable( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateTable", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::bigtable::admin::v2::Table>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::bigtable::admin::v2::Table>, + polling_policy(*current), __func__); +} + Status BigtableTableAdminConnectionImpl::DeleteTable( google::bigtable::admin::v2::DeleteTableRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -222,6 +274,58 @@ BigtableTableAdminConnectionImpl::UndeleteTable( polling_policy(*current), __func__); } +StatusOr +BigtableTableAdminConnectionImpl::UndeleteTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UndeleteTableRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UndeleteTable(request), + [this](grpc::ClientContext& context, Options const& options, + google::bigtable::admin::v2::UndeleteTableRequest const& request) { + return stub_->UndeleteTable(context, options, request); + }, + *current, request, __func__); +} + +future> +BigtableTableAdminConnectionImpl::UndeleteTable( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UndeleteTable", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::bigtable::admin::v2::Table>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::bigtable::admin::v2::Table>, + polling_policy(*current), __func__); +} + future> BigtableTableAdminConnectionImpl::CreateAuthorizedView( google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request) { @@ -262,6 +366,61 @@ BigtableTableAdminConnectionImpl::CreateAuthorizedView( polling_policy(*current), __func__); } +StatusOr +BigtableTableAdminConnectionImpl::CreateAuthorizedView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAuthorizedView(request), + [this](grpc::ClientContext& context, Options const& options, + google::bigtable::admin::v2::CreateAuthorizedViewRequest const& + request) { + return stub_->CreateAuthorizedView(context, options, request); + }, + *current, request, __func__); +} + +future> +BigtableTableAdminConnectionImpl::CreateAuthorizedView( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAuthorizedView", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::bigtable::admin::v2::AuthorizedView>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::bigtable::admin::v2::AuthorizedView>, + polling_policy(*current), __func__); +} + StreamRange BigtableTableAdminConnectionImpl::ListAuthorizedViews( google::bigtable::admin::v2::ListAuthorizedViewsRequest request) { @@ -352,6 +511,61 @@ BigtableTableAdminConnectionImpl::UpdateAuthorizedView( polling_policy(*current), __func__); } +StatusOr +BigtableTableAdminConnectionImpl::UpdateAuthorizedView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAuthorizedView(request), + [this](grpc::ClientContext& context, Options const& options, + google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& + request) { + return stub_->UpdateAuthorizedView(context, options, request); + }, + *current, request, __func__); +} + +future> +BigtableTableAdminConnectionImpl::UpdateAuthorizedView( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateAuthorizedView", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::bigtable::admin::v2::AuthorizedView>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::bigtable::admin::v2::AuthorizedView>, + polling_policy(*current), __func__); +} + Status BigtableTableAdminConnectionImpl::DeleteAuthorizedView( google::bigtable::admin::v2::DeleteAuthorizedViewRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -464,6 +678,58 @@ BigtableTableAdminConnectionImpl::CreateBackup( polling_policy(*current), __func__); } +StatusOr +BigtableTableAdminConnectionImpl::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::bigtable::admin::v2::CreateBackupRequest const& request) { + return stub_->CreateBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +BigtableTableAdminConnectionImpl::CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::bigtable::admin::v2::Backup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::bigtable::admin::v2::Backup>, + polling_policy(*current), __func__); +} + StatusOr BigtableTableAdminConnectionImpl::GetBackup( google::bigtable::admin::v2::GetBackupRequest const& request) { @@ -578,6 +844,58 @@ BigtableTableAdminConnectionImpl::RestoreTable( polling_policy(*current), __func__); } +StatusOr +BigtableTableAdminConnectionImpl::RestoreTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::RestoreTableRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RestoreTable(request), + [this](grpc::ClientContext& context, Options const& options, + google::bigtable::admin::v2::RestoreTableRequest const& request) { + return stub_->RestoreTable(context, options, request); + }, + *current, request, __func__); +} + +future> +BigtableTableAdminConnectionImpl::RestoreTable( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RestoreTable", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::bigtable::admin::v2::Table>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::bigtable::admin::v2::Table>, + polling_policy(*current), __func__); +} + future> BigtableTableAdminConnectionImpl::CopyBackup( google::bigtable::admin::v2::CopyBackupRequest const& request) { @@ -617,6 +935,58 @@ BigtableTableAdminConnectionImpl::CopyBackup( polling_policy(*current), __func__); } +StatusOr +BigtableTableAdminConnectionImpl::CopyBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CopyBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CopyBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::bigtable::admin::v2::CopyBackupRequest const& request) { + return stub_->CopyBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +BigtableTableAdminConnectionImpl::CopyBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CopyBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::bigtable::admin::v2::Backup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::bigtable::admin::v2::Backup>, + polling_policy(*current), __func__); +} + StatusOr BigtableTableAdminConnectionImpl::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) { diff --git a/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.h b/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.h index 1890ef2a2194c..a3d3c3164348b 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.h +++ b/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.h @@ -64,6 +64,14 @@ class BigtableTableAdminConnectionImpl future> UpdateTable( google::bigtable::admin::v2::UpdateTableRequest const& request) override; + StatusOr UpdateTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateTableRequest const& request) override; + + future> UpdateTable( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteTable( google::bigtable::admin::v2::DeleteTableRequest const& request) override; @@ -71,11 +79,30 @@ class BigtableTableAdminConnectionImpl google::bigtable::admin::v2::UndeleteTableRequest const& request) override; + StatusOr UndeleteTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UndeleteTableRequest const& request) + override; + + future> UndeleteTable( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateAuthorizedView( google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request) override; + StatusOr CreateAuthorizedView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request) + override; + + future> + CreateAuthorizedView( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListAuthorizedViews( google::bigtable::admin::v2::ListAuthorizedViewsRequest request) override; @@ -88,6 +115,16 @@ class BigtableTableAdminConnectionImpl google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request) override; + StatusOr UpdateAuthorizedView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request) + override; + + future> + UpdateAuthorizedView( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteAuthorizedView( google::bigtable::admin::v2::DeleteAuthorizedViewRequest const& request) override; @@ -111,6 +148,14 @@ class BigtableTableAdminConnectionImpl future> CreateBackup( google::bigtable::admin::v2::CreateBackupRequest const& request) override; + StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateBackupRequest const& request) override; + + future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBackup( google::bigtable::admin::v2::GetBackupRequest const& request) override; @@ -126,9 +171,25 @@ class BigtableTableAdminConnectionImpl future> RestoreTable( google::bigtable::admin::v2::RestoreTableRequest const& request) override; + StatusOr RestoreTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::RestoreTableRequest const& request) override; + + future> RestoreTable( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CopyBackup( google::bigtable::admin::v2::CopyBackupRequest const& request) override; + StatusOr CopyBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CopyBackupRequest const& request) override; + + future> CopyBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.cc b/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.cc index e8ebf108863e3..5f6a271076c89 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.cc +++ b/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.cc @@ -71,6 +71,30 @@ BigtableTableAdminTracingConnection::UpdateTable( return internal::EndSpan(std::move(span), child_->UpdateTable(request)); } +StatusOr +BigtableTableAdminTracingConnection::UpdateTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateTableRequest const& request) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableTableAdminConnection::UpdateTable"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateTable(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BigtableTableAdminTracingConnection::UpdateTable( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableTableAdminConnection::UpdateTable"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateTable(google::cloud::ExperimentalTag{}, operation)); +} + Status BigtableTableAdminTracingConnection::DeleteTable( google::bigtable::admin::v2::DeleteTableRequest const& request) { auto span = internal::MakeSpan( @@ -88,6 +112,30 @@ BigtableTableAdminTracingConnection::UndeleteTable( return internal::EndSpan(std::move(span), child_->UndeleteTable(request)); } +StatusOr +BigtableTableAdminTracingConnection::UndeleteTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UndeleteTableRequest const& request) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableTableAdminConnection::UndeleteTable"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UndeleteTable(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BigtableTableAdminTracingConnection::UndeleteTable( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableTableAdminConnection::UndeleteTable"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UndeleteTable(google::cloud::ExperimentalTag{}, operation)); +} + future> BigtableTableAdminTracingConnection::CreateAuthorizedView( google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request) { @@ -98,6 +146,30 @@ BigtableTableAdminTracingConnection::CreateAuthorizedView( child_->CreateAuthorizedView(request)); } +StatusOr +BigtableTableAdminTracingConnection::CreateAuthorizedView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableTableAdminConnection::CreateAuthorizedView"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateAuthorizedView( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BigtableTableAdminTracingConnection::CreateAuthorizedView( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableTableAdminConnection::CreateAuthorizedView"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateAuthorizedView( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange BigtableTableAdminTracingConnection::ListAuthorizedViews( google::bigtable::admin::v2::ListAuthorizedViewsRequest request) { @@ -129,6 +201,30 @@ BigtableTableAdminTracingConnection::UpdateAuthorizedView( child_->UpdateAuthorizedView(request)); } +StatusOr +BigtableTableAdminTracingConnection::UpdateAuthorizedView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableTableAdminConnection::UpdateAuthorizedView"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateAuthorizedView( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BigtableTableAdminTracingConnection::UpdateAuthorizedView( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableTableAdminConnection::UpdateAuthorizedView"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateAuthorizedView( + google::cloud::ExperimentalTag{}, operation)); +} + Status BigtableTableAdminTracingConnection::DeleteAuthorizedView( google::bigtable::admin::v2::DeleteAuthorizedViewRequest const& request) { auto span = internal::MakeSpan( @@ -182,6 +278,30 @@ BigtableTableAdminTracingConnection::CreateBackup( return internal::EndSpan(std::move(span), child_->CreateBackup(request)); } +StatusOr +BigtableTableAdminTracingConnection::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateBackupRequest const& request) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableTableAdminConnection::CreateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BigtableTableAdminTracingConnection::CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableTableAdminConnection::CreateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateBackup(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr BigtableTableAdminTracingConnection::GetBackup( google::bigtable::admin::v2::GetBackupRequest const& request) { @@ -228,6 +348,30 @@ BigtableTableAdminTracingConnection::RestoreTable( return internal::EndSpan(std::move(span), child_->RestoreTable(request)); } +StatusOr +BigtableTableAdminTracingConnection::RestoreTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::RestoreTableRequest const& request) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableTableAdminConnection::RestoreTable"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RestoreTable(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BigtableTableAdminTracingConnection::RestoreTable( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableTableAdminConnection::RestoreTable"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RestoreTable(google::cloud::ExperimentalTag{}, operation)); +} + future> BigtableTableAdminTracingConnection::CopyBackup( google::bigtable::admin::v2::CopyBackupRequest const& request) { @@ -237,6 +381,30 @@ BigtableTableAdminTracingConnection::CopyBackup( return internal::EndSpan(std::move(span), child_->CopyBackup(request)); } +StatusOr +BigtableTableAdminTracingConnection::CopyBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CopyBackupRequest const& request) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableTableAdminConnection::CopyBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CopyBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BigtableTableAdminTracingConnection::CopyBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "bigtable_admin::BigtableTableAdminConnection::CopyBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CopyBackup(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr BigtableTableAdminTracingConnection::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) { diff --git a/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.h b/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.h index 03cc4d6ea9d2a..d1a355e98a856 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.h +++ b/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.h @@ -52,6 +52,14 @@ class BigtableTableAdminTracingConnection future> UpdateTable( google::bigtable::admin::v2::UpdateTableRequest const& request) override; + StatusOr UpdateTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateTableRequest const& request) override; + + future> UpdateTable( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteTable( google::bigtable::admin::v2::DeleteTableRequest const& request) override; @@ -59,11 +67,30 @@ class BigtableTableAdminTracingConnection google::bigtable::admin::v2::UndeleteTableRequest const& request) override; + StatusOr UndeleteTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UndeleteTableRequest const& request) + override; + + future> UndeleteTable( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateAuthorizedView( google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request) override; + StatusOr CreateAuthorizedView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request) + override; + + future> + CreateAuthorizedView( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListAuthorizedViews( google::bigtable::admin::v2::ListAuthorizedViewsRequest request) override; @@ -76,6 +103,16 @@ class BigtableTableAdminTracingConnection google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request) override; + StatusOr UpdateAuthorizedView( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request) + override; + + future> + UpdateAuthorizedView( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteAuthorizedView( google::bigtable::admin::v2::DeleteAuthorizedViewRequest const& request) override; @@ -99,6 +136,14 @@ class BigtableTableAdminTracingConnection future> CreateBackup( google::bigtable::admin::v2::CreateBackupRequest const& request) override; + StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateBackupRequest const& request) override; + + future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBackup( google::bigtable::admin::v2::GetBackupRequest const& request) override; @@ -114,9 +159,25 @@ class BigtableTableAdminTracingConnection future> RestoreTable( google::bigtable::admin::v2::RestoreTableRequest const& request) override; + StatusOr RestoreTable( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::RestoreTableRequest const& request) override; + + future> RestoreTable( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CopyBackup( google::bigtable::admin::v2::CopyBackupRequest const& request) override; + StatusOr CopyBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CopyBackupRequest const& request) override; + + future> CopyBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/bigtable/admin/mocks/mock_bigtable_instance_admin_connection.h b/google/cloud/bigtable/admin/mocks/mock_bigtable_instance_admin_connection.h index eb704b782375f..102dafa63b0f0 100644 --- a/google/cloud/bigtable/admin/mocks/mock_bigtable_instance_admin_connection.h +++ b/google/cloud/bigtable/admin/mocks/mock_bigtable_instance_admin_connection.h @@ -52,6 +52,18 @@ class MockBigtableInstanceAdminConnection (google::bigtable::admin::v2::CreateInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetInstance, (google::bigtable::admin::v2::GetInstanceRequest const& request), (override)); @@ -72,6 +84,18 @@ class MockBigtableInstanceAdminConnection request), (override)); + MOCK_METHOD(StatusOr, PartialUpdateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::PartialUpdateInstanceRequest const& + request), + (override)); + + MOCK_METHOD(future>, + PartialUpdateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( Status, DeleteInstance, (google::bigtable::admin::v2::DeleteInstanceRequest const& request), @@ -82,6 +106,18 @@ class MockBigtableInstanceAdminConnection (google::bigtable::admin::v2::CreateClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetCluster, (google::bigtable::admin::v2::GetClusterRequest const& request), (override)); @@ -96,12 +132,35 @@ class MockBigtableInstanceAdminConnection (google::bigtable::admin::v2::Cluster const& request), (override)); + MOCK_METHOD(StatusOr, UpdateCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::Cluster const& request), + (override)); + + MOCK_METHOD(future>, + UpdateCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, PartialUpdateCluster, (google::bigtable::admin::v2::PartialUpdateClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, PartialUpdateCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::PartialUpdateClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + PartialUpdateCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( Status, DeleteCluster, (google::bigtable::admin::v2::DeleteClusterRequest const& request), @@ -128,6 +187,18 @@ class MockBigtableInstanceAdminConnection (google::bigtable::admin::v2::UpdateAppProfileRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateAppProfile, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateAppProfileRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateAppProfile, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( Status, DeleteAppProfile, (google::bigtable::admin::v2::DeleteAppProfileRequest const& request), diff --git a/google/cloud/bigtable/admin/mocks/mock_bigtable_table_admin_connection.h b/google/cloud/bigtable/admin/mocks/mock_bigtable_table_admin_connection.h index 6bbd522b0d37f..9cfee483623a1 100644 --- a/google/cloud/bigtable/admin/mocks/mock_bigtable_table_admin_connection.h +++ b/google/cloud/bigtable/admin/mocks/mock_bigtable_table_admin_connection.h @@ -63,6 +63,16 @@ class MockBigtableTableAdminConnection (google::bigtable::admin::v2::UpdateTableRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateTable, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateTableRequest const& request), + (override)); + + MOCK_METHOD(future>, UpdateTable, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(Status, DeleteTable, (google::bigtable::admin::v2::DeleteTableRequest const& request), (override)); @@ -72,12 +82,36 @@ class MockBigtableTableAdminConnection (google::bigtable::admin::v2::UndeleteTableRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UndeleteTable, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UndeleteTableRequest const& request), + (override)); + + MOCK_METHOD(future>, + UndeleteTable, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateAuthorizedView, (google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateAuthorizedView, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateAuthorizedView, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListAuthorizedViews, (google::bigtable::admin::v2::ListAuthorizedViewsRequest request), @@ -94,6 +128,18 @@ class MockBigtableTableAdminConnection (google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateAuthorizedView, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateAuthorizedView, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( Status, DeleteAuthorizedView, (google::bigtable::admin::v2::DeleteAuthorizedViewRequest const& request), @@ -126,6 +172,17 @@ class MockBigtableTableAdminConnection (google::bigtable::admin::v2::CreateBackupRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CreateBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetBackup, (google::bigtable::admin::v2::GetBackupRequest const& request), (override)); @@ -147,10 +204,31 @@ class MockBigtableTableAdminConnection (google::bigtable::admin::v2::RestoreTableRequest const& request), (override)); + MOCK_METHOD(StatusOr, RestoreTable, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::RestoreTableRequest const& request), + (override)); + + MOCK_METHOD(future>, + RestoreTable, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, CopyBackup, (google::bigtable::admin::v2::CopyBackupRequest const& request), (override)); + MOCK_METHOD(StatusOr, CopyBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::bigtable::admin::v2::CopyBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, CopyBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetIamPolicy, (google::iam::v1::GetIamPolicyRequest const& request), (override)); diff --git a/google/cloud/billing/budgets/v1/budget_connection.h b/google/cloud/billing/budgets/v1/budget_connection.h index 043e149ecd36b..e0f7ef417033d 100644 --- a/google/cloud/billing/budgets/v1/budget_connection.h +++ b/google/cloud/billing/budgets/v1/budget_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/billing/budgets/v1/budget_connection_idempotency_policy.h" #include "google/cloud/billing/budgets/v1/internal/budget_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/billing/v1/cloud_billing_connection.h b/google/cloud/billing/v1/cloud_billing_connection.h index 99cbf66c45ac7..ce98064bd78f5 100644 --- a/google/cloud/billing/v1/cloud_billing_connection.h +++ b/google/cloud/billing/v1/cloud_billing_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/billing/v1/cloud_billing_connection_idempotency_policy.h" #include "google/cloud/billing/v1/internal/cloud_billing_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/billing/v1/cloud_catalog_connection.h b/google/cloud/billing/v1/cloud_catalog_connection.h index 3f7af5098a5b4..1b4253296012e 100644 --- a/google/cloud/billing/v1/cloud_catalog_connection.h +++ b/google/cloud/billing/v1/cloud_catalog_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/billing/v1/cloud_catalog_connection_idempotency_policy.h" #include "google/cloud/billing/v1/internal/cloud_catalog_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/binaryauthorization/v1/binauthz_management_service_v1_connection.h b/google/cloud/binaryauthorization/v1/binauthz_management_service_v1_connection.h index db4fffc36869d..d65ab305696bb 100644 --- a/google/cloud/binaryauthorization/v1/binauthz_management_service_v1_connection.h +++ b/google/cloud/binaryauthorization/v1/binauthz_management_service_v1_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/binaryauthorization/v1/binauthz_management_service_v1_connection_idempotency_policy.h" #include "google/cloud/binaryauthorization/v1/internal/binauthz_management_service_v1_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/binaryauthorization/v1/system_policy_v1_connection.h b/google/cloud/binaryauthorization/v1/system_policy_v1_connection.h index e290a300a0200..9edf29f51c564 100644 --- a/google/cloud/binaryauthorization/v1/system_policy_v1_connection.h +++ b/google/cloud/binaryauthorization/v1/system_policy_v1_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/binaryauthorization/v1/internal/system_policy_v1_retry_traits.h" #include "google/cloud/binaryauthorization/v1/system_policy_v1_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/binaryauthorization/v1/validation_helper_v1_connection.h b/google/cloud/binaryauthorization/v1/validation_helper_v1_connection.h index 2813a6ff98716..99c2518f7a646 100644 --- a/google/cloud/binaryauthorization/v1/validation_helper_v1_connection.h +++ b/google/cloud/binaryauthorization/v1/validation_helper_v1_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/binaryauthorization/v1/internal/validation_helper_v1_retry_traits.h" #include "google/cloud/binaryauthorization/v1/validation_helper_v1_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/certificatemanager/v1/certificate_manager_connection.cc b/google/cloud/certificatemanager/v1/certificate_manager_connection.cc index a19db0917a156..30b4d49bfb3bc 100644 --- a/google/cloud/certificatemanager/v1/certificate_manager_connection.cc +++ b/google/cloud/certificatemanager/v1/certificate_manager_connection.cc @@ -60,6 +60,22 @@ CertificateManagerConnection::CreateCertificate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::CreateCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateCertificateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateManagerConnection::CreateCertificate( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CertificateManagerConnection::UpdateCertificate( google::cloud::certificatemanager::v1::UpdateCertificateRequest const&) { @@ -68,6 +84,22 @@ CertificateManagerConnection::UpdateCertificate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::UpdateCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateCertificateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateManagerConnection::UpdateCertificate( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CertificateManagerConnection::DeleteCertificate( google::cloud::certificatemanager::v1::DeleteCertificateRequest const&) { @@ -76,6 +108,22 @@ CertificateManagerConnection::DeleteCertificate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::DeleteCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteCertificateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateManagerConnection::DeleteCertificate( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CertificateManagerConnection::ListCertificateMaps( google::cloud::certificatemanager::v1:: @@ -98,6 +146,22 @@ CertificateManagerConnection::CreateCertificateMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::CreateCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateCertificateMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateManagerConnection::CreateCertificateMap( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CertificateManagerConnection::UpdateCertificateMap( google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const&) { @@ -106,6 +170,22 @@ CertificateManagerConnection::UpdateCertificateMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::UpdateCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateManagerConnection::UpdateCertificateMap( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CertificateManagerConnection::DeleteCertificateMap( google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const&) { @@ -114,6 +194,22 @@ CertificateManagerConnection::DeleteCertificateMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::DeleteCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateManagerConnection::DeleteCertificateMap( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CertificateManagerConnection::ListCertificateMapEntries( google::cloud::certificatemanager::v1:: @@ -138,6 +234,23 @@ CertificateManagerConnection::CreateCertificateMapEntry( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::CreateCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateCertificateMapEntryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateManagerConnection::CreateCertificateMapEntry( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CertificateManagerConnection::UpdateCertificateMapEntry( google::cloud::certificatemanager::v1:: @@ -147,6 +260,23 @@ CertificateManagerConnection::UpdateCertificateMapEntry( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::UpdateCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + UpdateCertificateMapEntryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateManagerConnection::UpdateCertificateMapEntry( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CertificateManagerConnection::DeleteCertificateMapEntry( google::cloud::certificatemanager::v1:: @@ -156,6 +286,23 @@ CertificateManagerConnection::DeleteCertificateMapEntry( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::DeleteCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteCertificateMapEntryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateManagerConnection::DeleteCertificateMapEntry( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CertificateManagerConnection::ListDnsAuthorizations( google::cloud::certificatemanager::v1:: @@ -179,6 +326,23 @@ CertificateManagerConnection::CreateDnsAuthorization( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::CreateDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateDnsAuthorizationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateManagerConnection::CreateDnsAuthorization( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CertificateManagerConnection::UpdateDnsAuthorization( google::cloud::certificatemanager::v1:: @@ -188,6 +352,23 @@ CertificateManagerConnection::UpdateDnsAuthorization( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::UpdateDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + UpdateDnsAuthorizationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateManagerConnection::UpdateDnsAuthorization( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CertificateManagerConnection::DeleteDnsAuthorization( google::cloud::certificatemanager::v1:: @@ -197,6 +378,23 @@ CertificateManagerConnection::DeleteDnsAuthorization( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::DeleteDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteDnsAuthorizationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateManagerConnection::DeleteDnsAuthorization( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CertificateManagerConnection::ListCertificateIssuanceConfigs( google::cloud::certificatemanager::v1:: @@ -222,6 +420,24 @@ CertificateManagerConnection::CreateCertificateIssuanceConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::CreateCertificateIssuanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateCertificateIssuanceConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future< + StatusOr> +CertificateManagerConnection::CreateCertificateIssuanceConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CertificateManagerConnection::DeleteCertificateIssuanceConfig( google::cloud::certificatemanager::v1:: @@ -231,6 +447,23 @@ CertificateManagerConnection::DeleteCertificateIssuanceConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::DeleteCertificateIssuanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteCertificateIssuanceConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateManagerConnection::DeleteCertificateIssuanceConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CertificateManagerConnection::ListTrustConfigs( google::cloud::certificatemanager::v1:: @@ -253,6 +486,22 @@ CertificateManagerConnection::CreateTrustConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::CreateTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateTrustConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateManagerConnection::CreateTrustConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CertificateManagerConnection::UpdateTrustConfig( google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const&) { @@ -261,6 +510,22 @@ CertificateManagerConnection::UpdateTrustConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::UpdateTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateManagerConnection::UpdateTrustConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CertificateManagerConnection::DeleteTrustConfig( google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const&) { @@ -269,6 +534,22 @@ CertificateManagerConnection::DeleteTrustConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateManagerConnection::DeleteTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateManagerConnection::DeleteTrustConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeCertificateManagerConnection( Options options) { internal::CheckExpectedOptions CreateCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateCertificateRequest const& + request); + + virtual future> + CreateCertificate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateCertificate( google::cloud::certificatemanager::v1::UpdateCertificateRequest const& request); + virtual StatusOr UpdateCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateCertificateRequest const& + request); + + virtual future> + UpdateCertificate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteCertificate( google::cloud::certificatemanager::v1::DeleteCertificateRequest const& request); + virtual StatusOr DeleteCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteCertificateRequest const& + request); + + virtual future< + StatusOr> + DeleteCertificate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListCertificateMaps( google::cloud::certificatemanager::v1::ListCertificateMapsRequest @@ -230,18 +260,48 @@ class CertificateManagerConnection { google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& request); + virtual StatusOr CreateCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& + request); + + virtual future< + StatusOr> + CreateCertificateMap(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UpdateCertificateMap( google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& request); + virtual StatusOr UpdateCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& + request); + + virtual future< + StatusOr> + UpdateCertificateMap(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteCertificateMap( google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& request); + virtual StatusOr DeleteCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& + request); + + virtual future< + StatusOr> + DeleteCertificateMap(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange< google::cloud::certificatemanager::v1::CertificateMapEntry> ListCertificateMapEntries( @@ -258,18 +318,48 @@ class CertificateManagerConnection { google::cloud::certificatemanager::v1:: CreateCertificateMapEntryRequest const& request); + virtual StatusOr CreateCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateCertificateMapEntryRequest const& request); + + virtual future< + StatusOr> + CreateCertificateMapEntry(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UpdateCertificateMapEntry( google::cloud::certificatemanager::v1:: UpdateCertificateMapEntryRequest const& request); + virtual StatusOr UpdateCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + UpdateCertificateMapEntryRequest const& request); + + virtual future< + StatusOr> + UpdateCertificateMapEntry(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteCertificateMapEntry( google::cloud::certificatemanager::v1:: DeleteCertificateMapEntryRequest const& request); + virtual StatusOr DeleteCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteCertificateMapEntryRequest const& request); + + virtual future< + StatusOr> + DeleteCertificateMapEntry(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListDnsAuthorizations( google::cloud::certificatemanager::v1::ListDnsAuthorizationsRequest @@ -285,16 +375,46 @@ class CertificateManagerConnection { CreateDnsAuthorization(google::cloud::certificatemanager::v1:: CreateDnsAuthorizationRequest const& request); + virtual StatusOr CreateDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateDnsAuthorizationRequest const& request); + + virtual future< + StatusOr> + CreateDnsAuthorization(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UpdateDnsAuthorization(google::cloud::certificatemanager::v1:: UpdateDnsAuthorizationRequest const& request); + virtual StatusOr UpdateDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + UpdateDnsAuthorizationRequest const& request); + + virtual future< + StatusOr> + UpdateDnsAuthorization(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteDnsAuthorization(google::cloud::certificatemanager::v1:: DeleteDnsAuthorizationRequest const& request); + virtual StatusOr DeleteDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteDnsAuthorizationRequest const& request); + + virtual future< + StatusOr> + DeleteDnsAuthorization(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange< google::cloud::certificatemanager::v1::CertificateIssuanceConfig> ListCertificateIssuanceConfigs( @@ -313,12 +433,36 @@ class CertificateManagerConnection { google::cloud::certificatemanager::v1:: CreateCertificateIssuanceConfigRequest const& request); + virtual StatusOr + CreateCertificateIssuanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateCertificateIssuanceConfigRequest const& request); + + virtual future> + CreateCertificateIssuanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteCertificateIssuanceConfig( google::cloud::certificatemanager::v1:: DeleteCertificateIssuanceConfigRequest const& request); + virtual StatusOr + DeleteCertificateIssuanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteCertificateIssuanceConfigRequest const& request); + + virtual future< + StatusOr> + DeleteCertificateIssuanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListTrustConfigs( google::cloud::certificatemanager::v1::ListTrustConfigsRequest request); @@ -333,16 +477,44 @@ class CertificateManagerConnection { google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& request); + virtual StatusOr CreateTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& + request); + + virtual future> + CreateTrustConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateTrustConfig( google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& request); + virtual StatusOr UpdateTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& + request); + + virtual future> + UpdateTrustConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteTrustConfig( google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& request); + + virtual StatusOr DeleteTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& + request); + + virtual future< + StatusOr> + DeleteTrustConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.cc b/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.cc index d183191310e11..749a756f884f1 100644 --- a/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.cc +++ b/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.cc @@ -166,6 +166,63 @@ CertificateManagerConnectionImpl::CreateCertificate( polling_policy(*current), __func__); } +StatusOr +CertificateManagerConnectionImpl::CreateCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateCertificateRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCertificate(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1::CreateCertificateRequest const& + request) { + return stub_->CreateCertificate(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateManagerConnectionImpl::CreateCertificate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCertificate", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::Certificate>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::certificatemanager::v1::Certificate>, + polling_policy(*current), __func__); +} + future> CertificateManagerConnectionImpl::UpdateCertificate( google::cloud::certificatemanager::v1::UpdateCertificateRequest const& @@ -207,6 +264,63 @@ CertificateManagerConnectionImpl::UpdateCertificate( polling_policy(*current), __func__); } +StatusOr +CertificateManagerConnectionImpl::UpdateCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateCertificateRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCertificate(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1::UpdateCertificateRequest const& + request) { + return stub_->UpdateCertificate(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateManagerConnectionImpl::UpdateCertificate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCertificate", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::Certificate>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::certificatemanager::v1::Certificate>, + polling_policy(*current), __func__); +} + future> CertificateManagerConnectionImpl::DeleteCertificate( google::cloud::certificatemanager::v1::DeleteCertificateRequest const& @@ -248,6 +362,63 @@ CertificateManagerConnectionImpl::DeleteCertificate( polling_policy(*current), __func__); } +StatusOr +CertificateManagerConnectionImpl::DeleteCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteCertificateRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCertificate(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1::DeleteCertificateRequest const& + request) { + return stub_->DeleteCertificate(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateManagerConnectionImpl::DeleteCertificate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCertificate", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::certificatemanager::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange CertificateManagerConnectionImpl::ListCertificateMaps( google::cloud::certificatemanager::v1::ListCertificateMapsRequest request) { @@ -340,6 +511,62 @@ CertificateManagerConnectionImpl::CreateCertificateMap( polling_policy(*current), __func__); } +StatusOr +CertificateManagerConnectionImpl::CreateCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCertificateMap(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1:: + CreateCertificateMapRequest const& request) { + return stub_->CreateCertificateMap(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateManagerConnectionImpl::CreateCertificateMap( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCertificateMap", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::CertificateMap>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::certificatemanager::v1::CertificateMap>, + polling_policy(*current), __func__); +} + future> CertificateManagerConnectionImpl::UpdateCertificateMap( google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& @@ -380,6 +607,62 @@ CertificateManagerConnectionImpl::UpdateCertificateMap( polling_policy(*current), __func__); } +StatusOr +CertificateManagerConnectionImpl::UpdateCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCertificateMap(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1:: + UpdateCertificateMapRequest const& request) { + return stub_->UpdateCertificateMap(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateManagerConnectionImpl::UpdateCertificateMap( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCertificateMap", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::CertificateMap>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::certificatemanager::v1::CertificateMap>, + polling_policy(*current), __func__); +} + future> CertificateManagerConnectionImpl::DeleteCertificateMap( google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& @@ -420,6 +703,62 @@ CertificateManagerConnectionImpl::DeleteCertificateMap( polling_policy(*current), __func__); } +StatusOr +CertificateManagerConnectionImpl::DeleteCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCertificateMap(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1:: + DeleteCertificateMapRequest const& request) { + return stub_->DeleteCertificateMap(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateManagerConnectionImpl::DeleteCertificateMap( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCertificateMap", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::certificatemanager::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange CertificateManagerConnectionImpl::ListCertificateMapEntries( google::cloud::certificatemanager::v1::ListCertificateMapEntriesRequest @@ -515,6 +854,62 @@ CertificateManagerConnectionImpl::CreateCertificateMapEntry( polling_policy(*current), __func__); } +StatusOr +CertificateManagerConnectionImpl::CreateCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateCertificateMapEntryRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCertificateMapEntry(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1:: + CreateCertificateMapEntryRequest const& request) { + return stub_->CreateCertificateMapEntry(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateManagerConnectionImpl::CreateCertificateMapEntry( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCertificateMapEntry", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::CertificateMapEntry>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::certificatemanager::v1::CertificateMapEntry>, + polling_policy(*current), __func__); +} + future> CertificateManagerConnectionImpl::UpdateCertificateMapEntry( google::cloud::certificatemanager::v1:: @@ -555,6 +950,62 @@ CertificateManagerConnectionImpl::UpdateCertificateMapEntry( polling_policy(*current), __func__); } +StatusOr +CertificateManagerConnectionImpl::UpdateCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + UpdateCertificateMapEntryRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCertificateMapEntry(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1:: + UpdateCertificateMapEntryRequest const& request) { + return stub_->UpdateCertificateMapEntry(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateManagerConnectionImpl::UpdateCertificateMapEntry( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCertificateMapEntry", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::CertificateMapEntry>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::certificatemanager::v1::CertificateMapEntry>, + polling_policy(*current), __func__); +} + future> CertificateManagerConnectionImpl::DeleteCertificateMapEntry( google::cloud::certificatemanager::v1:: @@ -595,6 +1046,62 @@ CertificateManagerConnectionImpl::DeleteCertificateMapEntry( polling_policy(*current), __func__); } +StatusOr +CertificateManagerConnectionImpl::DeleteCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteCertificateMapEntryRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCertificateMapEntry(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1:: + DeleteCertificateMapEntryRequest const& request) { + return stub_->DeleteCertificateMapEntry(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateManagerConnectionImpl::DeleteCertificateMapEntry( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCertificateMapEntry", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::certificatemanager::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange CertificateManagerConnectionImpl::ListDnsAuthorizations( google::cloud::certificatemanager::v1::ListDnsAuthorizationsRequest @@ -689,25 +1196,138 @@ CertificateManagerConnectionImpl::CreateDnsAuthorization( polling_policy(*current), __func__); } -future> +StatusOr +CertificateManagerConnectionImpl::CreateDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateDnsAuthorizationRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDnsAuthorization(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1:: + CreateDnsAuthorizationRequest const& request) { + return stub_->CreateDnsAuthorization(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateManagerConnectionImpl::CreateDnsAuthorization( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDnsAuthorization", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::DnsAuthorization>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::certificatemanager::v1::DnsAuthorization>, + polling_policy(*current), __func__); +} + +future> +CertificateManagerConnectionImpl::UpdateDnsAuthorization( + google::cloud::certificatemanager::v1::UpdateDnsAuthorizationRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->UpdateDnsAuthorization(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::certificatemanager::v1::DnsAuthorization>( + background_->cq(), current, std::move(request_copy), + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::certificatemanager::v1:: + UpdateDnsAuthorizationRequest const& request) { + return stub->AsyncUpdateDnsAuthorization(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::certificatemanager::v1::DnsAuthorization>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr CertificateManagerConnectionImpl::UpdateDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::certificatemanager::v1::UpdateDnsAuthorizationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->UpdateDnsAuthorization(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::certificatemanager::v1::DnsAuthorization>( - background_->cq(), current, std::move(request_copy), - [stub = stub_](google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::certificatemanager::v1:: - UpdateDnsAuthorizationRequest const& request) { - return stub->AsyncUpdateDnsAuthorization(cq, std::move(context), - std::move(options), request); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDnsAuthorization(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1:: + UpdateDnsAuthorizationRequest const& request) { + return stub_->UpdateDnsAuthorization(context, options, request); }, + *current, request, __func__); +} + +future> +CertificateManagerConnectionImpl::UpdateDnsAuthorization( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateDnsAuthorization", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::DnsAuthorization>( + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -725,7 +1345,6 @@ CertificateManagerConnectionImpl::UpdateDnsAuthorization( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::certificatemanager::v1::DnsAuthorization>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } @@ -769,6 +1388,62 @@ CertificateManagerConnectionImpl::DeleteDnsAuthorization( polling_policy(*current), __func__); } +StatusOr +CertificateManagerConnectionImpl::DeleteDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteDnsAuthorizationRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDnsAuthorization(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1:: + DeleteDnsAuthorizationRequest const& request) { + return stub_->DeleteDnsAuthorization(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateManagerConnectionImpl::DeleteDnsAuthorization( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDnsAuthorization", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::certificatemanager::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange CertificateManagerConnectionImpl::ListCertificateIssuanceConfigs( google::cloud::certificatemanager::v1::ListCertificateIssuanceConfigsRequest @@ -869,6 +1544,64 @@ CertificateManagerConnectionImpl::CreateCertificateIssuanceConfig( polling_policy(*current), __func__); } +StatusOr +CertificateManagerConnectionImpl::CreateCertificateIssuanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateCertificateIssuanceConfigRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCertificateIssuanceConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1:: + CreateCertificateIssuanceConfigRequest const& request) { + return stub_->CreateCertificateIssuanceConfig(context, options, + request); + }, + *current, request, __func__); +} + +future< + StatusOr> +CertificateManagerConnectionImpl::CreateCertificateIssuanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCertificateIssuanceConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::CertificateIssuanceConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::certificatemanager::v1::CertificateIssuanceConfig>, + polling_policy(*current), __func__); +} + future> CertificateManagerConnectionImpl::DeleteCertificateIssuanceConfig( google::cloud::certificatemanager::v1:: @@ -911,6 +1644,63 @@ CertificateManagerConnectionImpl::DeleteCertificateIssuanceConfig( polling_policy(*current), __func__); } +StatusOr +CertificateManagerConnectionImpl::DeleteCertificateIssuanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteCertificateIssuanceConfigRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCertificateIssuanceConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1:: + DeleteCertificateIssuanceConfigRequest const& request) { + return stub_->DeleteCertificateIssuanceConfig(context, options, + request); + }, + *current, request, __func__); +} + +future> +CertificateManagerConnectionImpl::DeleteCertificateIssuanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCertificateIssuanceConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::certificatemanager::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange CertificateManagerConnectionImpl::ListTrustConfigs( google::cloud::certificatemanager::v1::ListTrustConfigsRequest request) { @@ -1004,6 +1794,63 @@ CertificateManagerConnectionImpl::CreateTrustConfig( polling_policy(*current), __func__); } +StatusOr +CertificateManagerConnectionImpl::CreateTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateTrustConfig(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& + request) { + return stub_->CreateTrustConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateManagerConnectionImpl::CreateTrustConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateTrustConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::TrustConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::certificatemanager::v1::TrustConfig>, + polling_policy(*current), __func__); +} + future> CertificateManagerConnectionImpl::UpdateTrustConfig( google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& @@ -1045,6 +1892,63 @@ CertificateManagerConnectionImpl::UpdateTrustConfig( polling_policy(*current), __func__); } +StatusOr +CertificateManagerConnectionImpl::UpdateTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateTrustConfig(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& + request) { + return stub_->UpdateTrustConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateManagerConnectionImpl::UpdateTrustConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateTrustConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::TrustConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::certificatemanager::v1::TrustConfig>, + polling_policy(*current), __func__); +} + future> CertificateManagerConnectionImpl::DeleteTrustConfig( google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& @@ -1086,6 +1990,63 @@ CertificateManagerConnectionImpl::DeleteTrustConfig( polling_policy(*current), __func__); } +StatusOr +CertificateManagerConnectionImpl::DeleteTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTrustConfig(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& + request) { + return stub_->DeleteTrustConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateManagerConnectionImpl::DeleteTrustConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTrustConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::certificatemanager::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::certificatemanager::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace certificatemanager_v1_internal } // namespace cloud diff --git a/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.h b/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.h index 6b9a732b22c45..c3cbe08689d94 100644 --- a/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.h +++ b/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.h @@ -67,16 +67,43 @@ class CertificateManagerConnectionImpl google::cloud::certificatemanager::v1::CreateCertificateRequest const& request) override; + StatusOr CreateCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateCertificateRequest const& + request) override; + + future> + CreateCertificate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCertificate( google::cloud::certificatemanager::v1::UpdateCertificateRequest const& request) override; + StatusOr UpdateCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateCertificateRequest const& + request) override; + + future> + UpdateCertificate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCertificate( google::cloud::certificatemanager::v1::DeleteCertificateRequest const& request) override; + StatusOr DeleteCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteCertificateRequest const& + request) override; + + future> + DeleteCertificate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListCertificateMaps( google::cloud::certificatemanager::v1::ListCertificateMapsRequest request) @@ -92,16 +119,46 @@ class CertificateManagerConnectionImpl google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& request) override; + StatusOr CreateCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& + request) override; + + future> + CreateCertificateMap( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCertificateMap( google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& request) override; + StatusOr UpdateCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& + request) override; + + future> + UpdateCertificateMap( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCertificateMap( google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& request) override; + StatusOr DeleteCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& + request) override; + + future> + DeleteCertificateMap( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListCertificateMapEntries( google::cloud::certificatemanager::v1::ListCertificateMapEntriesRequest @@ -117,16 +174,46 @@ class CertificateManagerConnectionImpl google::cloud::certificatemanager::v1:: CreateCertificateMapEntryRequest const& request) override; + StatusOr CreateCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateCertificateMapEntryRequest const& request) override; + + future> + CreateCertificateMapEntry( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCertificateMapEntry( google::cloud::certificatemanager::v1:: UpdateCertificateMapEntryRequest const& request) override; + StatusOr UpdateCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + UpdateCertificateMapEntryRequest const& request) override; + + future> + UpdateCertificateMapEntry( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCertificateMapEntry( google::cloud::certificatemanager::v1:: DeleteCertificateMapEntryRequest const& request) override; + StatusOr DeleteCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteCertificateMapEntryRequest const& request) override; + + future> + DeleteCertificateMapEntry( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDnsAuthorizations( google::cloud::certificatemanager::v1::ListDnsAuthorizationsRequest @@ -142,16 +229,46 @@ class CertificateManagerConnectionImpl google::cloud::certificatemanager::v1:: CreateDnsAuthorizationRequest const& request) override; + StatusOr CreateDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateDnsAuthorizationRequest const& request) override; + + future> + CreateDnsAuthorization( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDnsAuthorization( google::cloud::certificatemanager::v1:: UpdateDnsAuthorizationRequest const& request) override; + StatusOr UpdateDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + UpdateDnsAuthorizationRequest const& request) override; + + future> + UpdateDnsAuthorization( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDnsAuthorization( google::cloud::certificatemanager::v1:: DeleteDnsAuthorizationRequest const& request) override; + StatusOr DeleteDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteDnsAuthorizationRequest const& request) override; + + future> + DeleteDnsAuthorization( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListCertificateIssuanceConfigs( google::cloud::certificatemanager::v1:: @@ -168,11 +285,32 @@ class CertificateManagerConnectionImpl google::cloud::certificatemanager::v1:: CreateCertificateIssuanceConfigRequest const& request) override; + StatusOr CreateCertificateIssuanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateCertificateIssuanceConfigRequest const& request) override; + + future> + CreateCertificateIssuanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCertificateIssuanceConfig( google::cloud::certificatemanager::v1:: DeleteCertificateIssuanceConfigRequest const& request) override; + StatusOr DeleteCertificateIssuanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteCertificateIssuanceConfigRequest const& request) override; + + future> + DeleteCertificateIssuanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTrustConfigs( google::cloud::certificatemanager::v1::ListTrustConfigsRequest request) @@ -187,16 +325,43 @@ class CertificateManagerConnectionImpl google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& request) override; + StatusOr CreateTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& + request) override; + + future> + CreateTrustConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTrustConfig( google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& request) override; + StatusOr UpdateTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& + request) override; + + future> + UpdateTrustConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTrustConfig( google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& request) override; + StatusOr DeleteTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& + request) override; + + future> + DeleteTrustConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.cc b/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.cc index bc954b6662715..ce5ee152176a9 100644 --- a/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.cc +++ b/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.cc @@ -65,6 +65,31 @@ CertificateManagerTracingConnection::CreateCertificate( return internal::EndSpan(std::move(span), child_->CreateCertificate(request)); } +StatusOr +CertificateManagerTracingConnection::CreateCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateCertificateRequest const& + request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::CreateCertificate"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateCertificate(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateManagerTracingConnection::CreateCertificate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::CreateCertificate"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateCertificate(google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateManagerTracingConnection::UpdateCertificate( google::cloud::certificatemanager::v1::UpdateCertificateRequest const& @@ -75,6 +100,31 @@ CertificateManagerTracingConnection::UpdateCertificate( return internal::EndSpan(std::move(span), child_->UpdateCertificate(request)); } +StatusOr +CertificateManagerTracingConnection::UpdateCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateCertificateRequest const& + request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::UpdateCertificate"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateCertificate(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateManagerTracingConnection::UpdateCertificate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::UpdateCertificate"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateCertificate(google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateManagerTracingConnection::DeleteCertificate( google::cloud::certificatemanager::v1::DeleteCertificateRequest const& @@ -85,6 +135,31 @@ CertificateManagerTracingConnection::DeleteCertificate( return internal::EndSpan(std::move(span), child_->DeleteCertificate(request)); } +StatusOr +CertificateManagerTracingConnection::DeleteCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteCertificateRequest const& + request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::DeleteCertificate"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteCertificate(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateManagerTracingConnection::DeleteCertificate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::DeleteCertificate"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteCertificate(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CertificateManagerTracingConnection::ListCertificateMaps( google::cloud::certificatemanager::v1::ListCertificateMapsRequest request) { @@ -120,6 +195,33 @@ CertificateManagerTracingConnection::CreateCertificateMap( child_->CreateCertificateMap(request)); } +StatusOr +CertificateManagerTracingConnection::CreateCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& + request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "CreateCertificateMap"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateCertificateMap( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateManagerTracingConnection::CreateCertificateMap( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "CreateCertificateMap"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateCertificateMap( + google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateManagerTracingConnection::UpdateCertificateMap( google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& @@ -132,6 +234,33 @@ CertificateManagerTracingConnection::UpdateCertificateMap( child_->UpdateCertificateMap(request)); } +StatusOr +CertificateManagerTracingConnection::UpdateCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& + request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "UpdateCertificateMap"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateCertificateMap( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateManagerTracingConnection::UpdateCertificateMap( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "UpdateCertificateMap"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateCertificateMap( + google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateManagerTracingConnection::DeleteCertificateMap( google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& @@ -144,6 +273,33 @@ CertificateManagerTracingConnection::DeleteCertificateMap( child_->DeleteCertificateMap(request)); } +StatusOr +CertificateManagerTracingConnection::DeleteCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& + request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "DeleteCertificateMap"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteCertificateMap( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateManagerTracingConnection::DeleteCertificateMap( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "DeleteCertificateMap"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteCertificateMap( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CertificateManagerTracingConnection::ListCertificateMapEntries( google::cloud::certificatemanager::v1::ListCertificateMapEntriesRequest @@ -181,6 +337,33 @@ CertificateManagerTracingConnection::CreateCertificateMapEntry( child_->CreateCertificateMapEntry(request)); } +StatusOr +CertificateManagerTracingConnection::CreateCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateCertificateMapEntryRequest const& request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "CreateCertificateMapEntry"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateCertificateMapEntry( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateManagerTracingConnection::CreateCertificateMapEntry( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "CreateCertificateMapEntry"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateCertificateMapEntry( + google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateManagerTracingConnection::UpdateCertificateMapEntry( google::cloud::certificatemanager::v1:: @@ -193,6 +376,33 @@ CertificateManagerTracingConnection::UpdateCertificateMapEntry( child_->UpdateCertificateMapEntry(request)); } +StatusOr +CertificateManagerTracingConnection::UpdateCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + UpdateCertificateMapEntryRequest const& request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "UpdateCertificateMapEntry"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateCertificateMapEntry( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateManagerTracingConnection::UpdateCertificateMapEntry( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "UpdateCertificateMapEntry"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateCertificateMapEntry( + google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateManagerTracingConnection::DeleteCertificateMapEntry( google::cloud::certificatemanager::v1:: @@ -205,6 +415,33 @@ CertificateManagerTracingConnection::DeleteCertificateMapEntry( child_->DeleteCertificateMapEntry(request)); } +StatusOr +CertificateManagerTracingConnection::DeleteCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteCertificateMapEntryRequest const& request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "DeleteCertificateMapEntry"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteCertificateMapEntry( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateManagerTracingConnection::DeleteCertificateMapEntry( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "DeleteCertificateMapEntry"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteCertificateMapEntry( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CertificateManagerTracingConnection::ListDnsAuthorizations( google::cloud::certificatemanager::v1::ListDnsAuthorizationsRequest @@ -242,6 +479,33 @@ CertificateManagerTracingConnection::CreateDnsAuthorization( child_->CreateDnsAuthorization(request)); } +StatusOr +CertificateManagerTracingConnection::CreateDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateDnsAuthorizationRequest const& + request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "CreateDnsAuthorization"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateDnsAuthorization( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateManagerTracingConnection::CreateDnsAuthorization( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "CreateDnsAuthorization"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateDnsAuthorization( + google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateManagerTracingConnection::UpdateDnsAuthorization( google::cloud::certificatemanager::v1::UpdateDnsAuthorizationRequest const& @@ -254,6 +518,33 @@ CertificateManagerTracingConnection::UpdateDnsAuthorization( child_->UpdateDnsAuthorization(request)); } +StatusOr +CertificateManagerTracingConnection::UpdateDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateDnsAuthorizationRequest const& + request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "UpdateDnsAuthorization"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateDnsAuthorization( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateManagerTracingConnection::UpdateDnsAuthorization( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "UpdateDnsAuthorization"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateDnsAuthorization( + google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateManagerTracingConnection::DeleteDnsAuthorization( google::cloud::certificatemanager::v1::DeleteDnsAuthorizationRequest const& @@ -266,6 +557,33 @@ CertificateManagerTracingConnection::DeleteDnsAuthorization( child_->DeleteDnsAuthorization(request)); } +StatusOr +CertificateManagerTracingConnection::DeleteDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteDnsAuthorizationRequest const& + request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "DeleteDnsAuthorization"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteDnsAuthorization( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateManagerTracingConnection::DeleteDnsAuthorization( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "DeleteDnsAuthorization"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteDnsAuthorization( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CertificateManagerTracingConnection::ListCertificateIssuanceConfigs( google::cloud::certificatemanager::v1::ListCertificateIssuanceConfigsRequest @@ -305,6 +623,34 @@ CertificateManagerTracingConnection::CreateCertificateIssuanceConfig( child_->CreateCertificateIssuanceConfig(request)); } +StatusOr +CertificateManagerTracingConnection::CreateCertificateIssuanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateCertificateIssuanceConfigRequest const& request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "CreateCertificateIssuanceConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateCertificateIssuanceConfig( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future< + StatusOr> +CertificateManagerTracingConnection::CreateCertificateIssuanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "CreateCertificateIssuanceConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateCertificateIssuanceConfig( + google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateManagerTracingConnection::DeleteCertificateIssuanceConfig( google::cloud::certificatemanager::v1:: @@ -317,6 +663,33 @@ CertificateManagerTracingConnection::DeleteCertificateIssuanceConfig( child_->DeleteCertificateIssuanceConfig(request)); } +StatusOr +CertificateManagerTracingConnection::DeleteCertificateIssuanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteCertificateIssuanceConfigRequest const& request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "DeleteCertificateIssuanceConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteCertificateIssuanceConfig( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateManagerTracingConnection::DeleteCertificateIssuanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::" + "DeleteCertificateIssuanceConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteCertificateIssuanceConfig( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CertificateManagerTracingConnection::ListTrustConfigs( google::cloud::certificatemanager::v1::ListTrustConfigsRequest request) { @@ -349,6 +722,31 @@ CertificateManagerTracingConnection::CreateTrustConfig( return internal::EndSpan(std::move(span), child_->CreateTrustConfig(request)); } +StatusOr +CertificateManagerTracingConnection::CreateTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& + request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::CreateTrustConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateTrustConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateManagerTracingConnection::CreateTrustConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::CreateTrustConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateTrustConfig(google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateManagerTracingConnection::UpdateTrustConfig( google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& @@ -359,6 +757,31 @@ CertificateManagerTracingConnection::UpdateTrustConfig( return internal::EndSpan(std::move(span), child_->UpdateTrustConfig(request)); } +StatusOr +CertificateManagerTracingConnection::UpdateTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& + request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::UpdateTrustConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateTrustConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateManagerTracingConnection::UpdateTrustConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::UpdateTrustConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateTrustConfig(google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateManagerTracingConnection::DeleteTrustConfig( google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& @@ -369,6 +792,31 @@ CertificateManagerTracingConnection::DeleteTrustConfig( return internal::EndSpan(std::move(span), child_->DeleteTrustConfig(request)); } +StatusOr +CertificateManagerTracingConnection::DeleteTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& + request) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::DeleteTrustConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteTrustConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateManagerTracingConnection::DeleteTrustConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "certificatemanager_v1::CertificateManagerConnection::DeleteTrustConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteTrustConfig(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.h b/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.h index 46895aa7c5d04..c10ad3b7c68f5 100644 --- a/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.h +++ b/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.h @@ -55,16 +55,43 @@ class CertificateManagerTracingConnection google::cloud::certificatemanager::v1::CreateCertificateRequest const& request) override; + StatusOr CreateCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateCertificateRequest const& + request) override; + + future> + CreateCertificate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCertificate( google::cloud::certificatemanager::v1::UpdateCertificateRequest const& request) override; + StatusOr UpdateCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateCertificateRequest const& + request) override; + + future> + UpdateCertificate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCertificate( google::cloud::certificatemanager::v1::DeleteCertificateRequest const& request) override; + StatusOr DeleteCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteCertificateRequest const& + request) override; + + future> + DeleteCertificate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListCertificateMaps( google::cloud::certificatemanager::v1::ListCertificateMapsRequest request) @@ -80,16 +107,46 @@ class CertificateManagerTracingConnection google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& request) override; + StatusOr CreateCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& + request) override; + + future> + CreateCertificateMap( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCertificateMap( google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& request) override; + StatusOr UpdateCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& + request) override; + + future> + UpdateCertificateMap( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCertificateMap( google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& request) override; + StatusOr DeleteCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& + request) override; + + future> + DeleteCertificateMap( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListCertificateMapEntries( google::cloud::certificatemanager::v1::ListCertificateMapEntriesRequest @@ -105,16 +162,46 @@ class CertificateManagerTracingConnection google::cloud::certificatemanager::v1:: CreateCertificateMapEntryRequest const& request) override; + StatusOr CreateCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateCertificateMapEntryRequest const& request) override; + + future> + CreateCertificateMapEntry( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCertificateMapEntry( google::cloud::certificatemanager::v1:: UpdateCertificateMapEntryRequest const& request) override; + StatusOr UpdateCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + UpdateCertificateMapEntryRequest const& request) override; + + future> + UpdateCertificateMapEntry( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCertificateMapEntry( google::cloud::certificatemanager::v1:: DeleteCertificateMapEntryRequest const& request) override; + StatusOr DeleteCertificateMapEntry( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteCertificateMapEntryRequest const& request) override; + + future> + DeleteCertificateMapEntry( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDnsAuthorizations( google::cloud::certificatemanager::v1::ListDnsAuthorizationsRequest @@ -130,16 +217,46 @@ class CertificateManagerTracingConnection google::cloud::certificatemanager::v1:: CreateDnsAuthorizationRequest const& request) override; + StatusOr CreateDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateDnsAuthorizationRequest const& request) override; + + future> + CreateDnsAuthorization( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDnsAuthorization( google::cloud::certificatemanager::v1:: UpdateDnsAuthorizationRequest const& request) override; + StatusOr UpdateDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + UpdateDnsAuthorizationRequest const& request) override; + + future> + UpdateDnsAuthorization( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDnsAuthorization( google::cloud::certificatemanager::v1:: DeleteDnsAuthorizationRequest const& request) override; + StatusOr DeleteDnsAuthorization( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteDnsAuthorizationRequest const& request) override; + + future> + DeleteDnsAuthorization( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListCertificateIssuanceConfigs( google::cloud::certificatemanager::v1:: @@ -156,11 +273,32 @@ class CertificateManagerTracingConnection google::cloud::certificatemanager::v1:: CreateCertificateIssuanceConfigRequest const& request) override; + StatusOr CreateCertificateIssuanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateCertificateIssuanceConfigRequest const& request) override; + + future> + CreateCertificateIssuanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCertificateIssuanceConfig( google::cloud::certificatemanager::v1:: DeleteCertificateIssuanceConfigRequest const& request) override; + StatusOr DeleteCertificateIssuanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteCertificateIssuanceConfigRequest const& request) override; + + future> + DeleteCertificateIssuanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTrustConfigs( google::cloud::certificatemanager::v1::ListTrustConfigsRequest request) @@ -175,16 +313,43 @@ class CertificateManagerTracingConnection google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& request) override; + StatusOr CreateTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& + request) override; + + future> + CreateTrustConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTrustConfig( google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& request) override; + StatusOr UpdateTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& + request) override; + + future> + UpdateTrustConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTrustConfig( google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& request) override; + StatusOr DeleteTrustConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& + request) override; + + future> + DeleteTrustConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/certificatemanager/v1/mocks/mock_certificate_manager_connection.h b/google/cloud/certificatemanager/v1/mocks/mock_certificate_manager_connection.h index 827b6b7709cb7..41c301d645391 100644 --- a/google/cloud/certificatemanager/v1/mocks/mock_certificate_manager_connection.h +++ b/google/cloud/certificatemanager/v1/mocks/mock_certificate_manager_connection.h @@ -67,6 +67,20 @@ class MockCertificateManagerConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateCertificate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateCertificateRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateCertificate, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateCertificate, @@ -74,6 +88,20 @@ class MockCertificateManagerConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateCertificate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateCertificateRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateCertificate, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -82,6 +110,21 @@ class MockCertificateManagerConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteCertificate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteCertificateRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteCertificate, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListCertificateMaps, @@ -103,6 +146,20 @@ class MockCertificateManagerConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateCertificateMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateCertificateMap, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateCertificateMap, @@ -110,6 +167,20 @@ class MockCertificateManagerConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateCertificateMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateCertificateMap, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -118,6 +189,21 @@ class MockCertificateManagerConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteCertificateMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteCertificateMap, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListCertificateMapEntries, @@ -140,6 +226,21 @@ class MockCertificateManagerConnection CreateCertificateMapEntryRequest const& request), (override)); + MOCK_METHOD(StatusOr, + CreateCertificateMapEntry, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateCertificateMapEntryRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + CreateCertificateMapEntry, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -148,6 +249,21 @@ class MockCertificateManagerConnection UpdateCertificateMapEntryRequest const& request), (override)); + MOCK_METHOD(StatusOr, + UpdateCertificateMapEntry, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + UpdateCertificateMapEntryRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + UpdateCertificateMapEntry, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -156,6 +272,21 @@ class MockCertificateManagerConnection DeleteCertificateMapEntryRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteCertificateMapEntry, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteCertificateMapEntryRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteCertificateMapEntry, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListDnsAuthorizations, @@ -177,6 +308,19 @@ class MockCertificateManagerConnection CreateDnsAuthorizationRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateDnsAuthorization, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateDnsAuthorizationRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateDnsAuthorization, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateDnsAuthorization, @@ -184,6 +328,19 @@ class MockCertificateManagerConnection UpdateDnsAuthorizationRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateDnsAuthorization, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + UpdateDnsAuthorizationRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UpdateDnsAuthorization, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -192,6 +349,20 @@ class MockCertificateManagerConnection DeleteDnsAuthorizationRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteDnsAuthorization, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteDnsAuthorizationRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteDnsAuthorization, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange< google::cloud::certificatemanager::v1::CertificateIssuanceConfig>), @@ -216,6 +387,21 @@ class MockCertificateManagerConnection CreateCertificateIssuanceConfigRequest const& request), (override)); + MOCK_METHOD(StatusOr, + CreateCertificateIssuanceConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + CreateCertificateIssuanceConfigRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateCertificateIssuanceConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -224,6 +410,21 @@ class MockCertificateManagerConnection DeleteCertificateIssuanceConfigRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteCertificateIssuanceConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1:: + DeleteCertificateIssuanceConfigRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteCertificateIssuanceConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListTrustConfigs, @@ -244,6 +445,20 @@ class MockCertificateManagerConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateTrustConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateTrustConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateTrustConfig, @@ -251,6 +466,20 @@ class MockCertificateManagerConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateTrustConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateTrustConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -258,6 +487,21 @@ class MockCertificateManagerConnection (google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteTrustConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteTrustConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/channel/v1/cloud_channel_connection.cc b/google/cloud/channel/v1/cloud_channel_connection.cc index e6ad359d1443e..097aaef9adf0f 100644 --- a/google/cloud/channel/v1/cloud_channel_connection.cc +++ b/google/cloud/channel/v1/cloud_channel_connection.cc @@ -89,6 +89,22 @@ CloudChannelServiceConnection::ProvisionCloudIdentity( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudChannelServiceConnection::ProvisionCloudIdentity( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ProvisionCloudIdentityRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudChannelServiceConnection::ProvisionCloudIdentity( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CloudChannelServiceConnection::ListEntitlements( google::cloud::channel::v1:: @@ -127,9 +143,41 @@ CloudChannelServiceConnection::CreateEntitlement( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudChannelServiceConnection::CreateEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::CreateEntitlementRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +CloudChannelServiceConnection::CreateEntitlement( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudChannelServiceConnection::ChangeParameters( + google::cloud::channel::v1::ChangeParametersRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr CloudChannelServiceConnection::ChangeParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::channel::v1::ChangeParametersRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudChannelServiceConnection::ChangeParameters( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -143,6 +191,22 @@ CloudChannelServiceConnection::ChangeRenewalSettings( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudChannelServiceConnection::ChangeRenewalSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeRenewalSettingsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudChannelServiceConnection::ChangeRenewalSettings( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudChannelServiceConnection::ChangeOffer( google::cloud::channel::v1::ChangeOfferRequest const&) { @@ -151,6 +215,22 @@ CloudChannelServiceConnection::ChangeOffer( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudChannelServiceConnection::ChangeOffer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeOfferRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudChannelServiceConnection::ChangeOffer( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudChannelServiceConnection::StartPaidService( google::cloud::channel::v1::StartPaidServiceRequest const&) { @@ -159,6 +239,22 @@ CloudChannelServiceConnection::StartPaidService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudChannelServiceConnection::StartPaidService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::StartPaidServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudChannelServiceConnection::StartPaidService( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudChannelServiceConnection::SuspendEntitlement( google::cloud::channel::v1::SuspendEntitlementRequest const&) { @@ -167,6 +263,22 @@ CloudChannelServiceConnection::SuspendEntitlement( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudChannelServiceConnection::SuspendEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::SuspendEntitlementRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudChannelServiceConnection::SuspendEntitlement( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudChannelServiceConnection::CancelEntitlement( google::cloud::channel::v1::CancelEntitlementRequest const&) { @@ -175,6 +287,22 @@ CloudChannelServiceConnection::CancelEntitlement( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudChannelServiceConnection::CancelEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::CancelEntitlementRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudChannelServiceConnection::CancelEntitlement( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudChannelServiceConnection::ActivateEntitlement( google::cloud::channel::v1::ActivateEntitlementRequest const&) { @@ -183,6 +311,22 @@ CloudChannelServiceConnection::ActivateEntitlement( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudChannelServiceConnection::ActivateEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ActivateEntitlementRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudChannelServiceConnection::ActivateEntitlement( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudChannelServiceConnection::TransferEntitlements( google::cloud::channel::v1::TransferEntitlementsRequest const&) { @@ -191,6 +335,22 @@ CloudChannelServiceConnection::TransferEntitlements( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudChannelServiceConnection::TransferEntitlements( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::TransferEntitlementsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudChannelServiceConnection::TransferEntitlements( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudChannelServiceConnection::TransferEntitlementsToGoogle( google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const&) { @@ -199,6 +359,22 @@ CloudChannelServiceConnection::TransferEntitlementsToGoogle( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudChannelServiceConnection::TransferEntitlementsToGoogle( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudChannelServiceConnection::TransferEntitlementsToGoogle( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CloudChannelServiceConnection::ListChannelPartnerLinks( google::cloud::channel::v1:: diff --git a/google/cloud/channel/v1/cloud_channel_connection.h b/google/cloud/channel/v1/cloud_channel_connection.h index 420d9ddf47bfb..d01296a9d4233 100644 --- a/google/cloud/channel/v1/cloud_channel_connection.h +++ b/google/cloud/channel/v1/cloud_channel_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/channel/v1/cloud_channel_connection_idempotency_policy.h" #include "google/cloud/channel/v1/internal/cloud_channel_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -217,6 +219,14 @@ class CloudChannelServiceConnection { ProvisionCloudIdentity( google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request); + virtual StatusOr ProvisionCloudIdentity( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request); + + virtual future> + ProvisionCloudIdentity(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListEntitlements( google::cloud::channel::v1::ListEntitlementsRequest request); @@ -235,43 +245,125 @@ class CloudChannelServiceConnection { CreateEntitlement( google::cloud::channel::v1::CreateEntitlementRequest const& request); + virtual StatusOr CreateEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::CreateEntitlementRequest const& request); + + virtual future> + CreateEntitlement(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ChangeParameters( google::cloud::channel::v1::ChangeParametersRequest const& request); + virtual StatusOr ChangeParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeParametersRequest const& request); + + virtual future> + ChangeParameters(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ChangeRenewalSettings( google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request); + virtual StatusOr ChangeRenewalSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request); + + virtual future> + ChangeRenewalSettings(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ChangeOffer( google::cloud::channel::v1::ChangeOfferRequest const& request); + virtual StatusOr ChangeOffer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeOfferRequest const& request); + + virtual future> ChangeOffer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StartPaidService( google::cloud::channel::v1::StartPaidServiceRequest const& request); + virtual StatusOr StartPaidService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::StartPaidServiceRequest const& request); + + virtual future> + StartPaidService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> SuspendEntitlement( google::cloud::channel::v1::SuspendEntitlementRequest const& request); + virtual StatusOr SuspendEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::SuspendEntitlementRequest const& request); + + virtual future> + SuspendEntitlement(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CancelEntitlement( google::cloud::channel::v1::CancelEntitlementRequest const& request); + virtual StatusOr CancelEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::CancelEntitlementRequest const& request); + + virtual future> + CancelEntitlement(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ActivateEntitlement( google::cloud::channel::v1::ActivateEntitlementRequest const& request); + virtual StatusOr ActivateEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ActivateEntitlementRequest const& request); + + virtual future> + ActivateEntitlement(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> TransferEntitlements( google::cloud::channel::v1::TransferEntitlementsRequest const& request); + virtual StatusOr TransferEntitlements( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::TransferEntitlementsRequest const& request); + + virtual future< + StatusOr> + TransferEntitlements(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> TransferEntitlementsToGoogle( google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& request); + virtual StatusOr TransferEntitlementsToGoogle( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& + request); + + virtual future> + TransferEntitlementsToGoogle(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListChannelPartnerLinks( google::cloud::channel::v1::ListChannelPartnerLinksRequest request); diff --git a/google/cloud/channel/v1/cloud_channel_reports_connection.cc b/google/cloud/channel/v1/cloud_channel_reports_connection.cc index 29943ca84ffdf..d00dd6cdc2f66 100644 --- a/google/cloud/channel/v1/cloud_channel_reports_connection.cc +++ b/google/cloud/channel/v1/cloud_channel_reports_connection.cc @@ -47,6 +47,22 @@ CloudChannelReportsServiceConnection::RunReportJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudChannelReportsServiceConnection::RunReportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::RunReportJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudChannelReportsServiceConnection::RunReportJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CloudChannelReportsServiceConnection::FetchReportResults( google::cloud::channel::v1:: diff --git a/google/cloud/channel/v1/cloud_channel_reports_connection.h b/google/cloud/channel/v1/cloud_channel_reports_connection.h index 1710571ee0aef..411af2736a065 100644 --- a/google/cloud/channel/v1/cloud_channel_reports_connection.h +++ b/google/cloud/channel/v1/cloud_channel_reports_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/channel/v1/cloud_channel_reports_connection_idempotency_policy.h" #include "google/cloud/channel/v1/internal/cloud_channel_reports_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -206,6 +208,14 @@ class CloudChannelReportsServiceConnection { virtual future> RunReportJob(google::cloud::channel::v1::RunReportJobRequest const& request); + virtual StatusOr RunReportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::RunReportJobRequest const& request); + + virtual future> + RunReportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange FetchReportResults( google::cloud::channel::v1::FetchReportResultsRequest request); diff --git a/google/cloud/channel/v1/internal/cloud_channel_connection_impl.cc b/google/cloud/channel/v1/internal/cloud_channel_connection_impl.cc index e41dec68153e6..3d06bb2958044 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_connection_impl.cc +++ b/google/cloud/channel/v1/internal/cloud_channel_connection_impl.cc @@ -227,6 +227,59 @@ CloudChannelServiceConnectionImpl::ProvisionCloudIdentity( polling_policy(*current), __func__); } +StatusOr +CloudChannelServiceConnectionImpl::ProvisionCloudIdentity( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ProvisionCloudIdentity(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::channel::v1::ProvisionCloudIdentityRequest const& + request) { + return stub_->ProvisionCloudIdentity(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudChannelServiceConnectionImpl::ProvisionCloudIdentity( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ProvisionCloudIdentity", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::channel::v1::Customer>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::channel::v1::Customer>, + polling_policy(*current), __func__); +} + StreamRange CloudChannelServiceConnectionImpl::ListEntitlements( google::cloud::channel::v1::ListEntitlementsRequest request) { @@ -386,6 +439,59 @@ CloudChannelServiceConnectionImpl::CreateEntitlement( polling_policy(*current), __func__); } +StatusOr +CloudChannelServiceConnectionImpl::CreateEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::CreateEntitlementRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateEntitlement(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::channel::v1::CreateEntitlementRequest const& request) { + return stub_->CreateEntitlement(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudChannelServiceConnectionImpl::CreateEntitlement( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateEntitlement", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::channel::v1::Entitlement>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::channel::v1::Entitlement>, + polling_policy(*current), __func__); +} + future> CloudChannelServiceConnectionImpl::ChangeParameters( google::cloud::channel::v1::ChangeParametersRequest const& request) { @@ -425,6 +531,59 @@ CloudChannelServiceConnectionImpl::ChangeParameters( polling_policy(*current), __func__); } +StatusOr +CloudChannelServiceConnectionImpl::ChangeParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeParametersRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ChangeParameters(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::channel::v1::ChangeParametersRequest const& request) { + return stub_->ChangeParameters(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudChannelServiceConnectionImpl::ChangeParameters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ChangeParameters", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::channel::v1::Entitlement>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::channel::v1::Entitlement>, + polling_policy(*current), __func__); +} + future> CloudChannelServiceConnectionImpl::ChangeRenewalSettings( google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request) { @@ -465,6 +624,59 @@ CloudChannelServiceConnectionImpl::ChangeRenewalSettings( polling_policy(*current), __func__); } +StatusOr +CloudChannelServiceConnectionImpl::ChangeRenewalSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ChangeRenewalSettings(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::channel::v1::ChangeRenewalSettingsRequest const& + request) { + return stub_->ChangeRenewalSettings(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudChannelServiceConnectionImpl::ChangeRenewalSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ChangeRenewalSettings", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::channel::v1::Entitlement>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::channel::v1::Entitlement>, + polling_policy(*current), __func__); +} + future> CloudChannelServiceConnectionImpl::ChangeOffer( google::cloud::channel::v1::ChangeOfferRequest const& request) { @@ -504,6 +716,58 @@ CloudChannelServiceConnectionImpl::ChangeOffer( polling_policy(*current), __func__); } +StatusOr +CloudChannelServiceConnectionImpl::ChangeOffer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeOfferRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ChangeOffer(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::channel::v1::ChangeOfferRequest const& request) { + return stub_->ChangeOffer(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudChannelServiceConnectionImpl::ChangeOffer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ChangeOffer", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::channel::v1::Entitlement>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::channel::v1::Entitlement>, + polling_policy(*current), __func__); +} + future> CloudChannelServiceConnectionImpl::StartPaidService( google::cloud::channel::v1::StartPaidServiceRequest const& request) { @@ -543,6 +807,59 @@ CloudChannelServiceConnectionImpl::StartPaidService( polling_policy(*current), __func__); } +StatusOr +CloudChannelServiceConnectionImpl::StartPaidService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::StartPaidServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartPaidService(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::channel::v1::StartPaidServiceRequest const& request) { + return stub_->StartPaidService(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudChannelServiceConnectionImpl::StartPaidService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to StartPaidService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::channel::v1::Entitlement>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::channel::v1::Entitlement>, + polling_policy(*current), __func__); +} + future> CloudChannelServiceConnectionImpl::SuspendEntitlement( google::cloud::channel::v1::SuspendEntitlementRequest const& request) { @@ -583,6 +900,59 @@ CloudChannelServiceConnectionImpl::SuspendEntitlement( polling_policy(*current), __func__); } +StatusOr +CloudChannelServiceConnectionImpl::SuspendEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::SuspendEntitlementRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SuspendEntitlement(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::channel::v1::SuspendEntitlementRequest const& + request) { + return stub_->SuspendEntitlement(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudChannelServiceConnectionImpl::SuspendEntitlement( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to SuspendEntitlement", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::channel::v1::Entitlement>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::channel::v1::Entitlement>, + polling_policy(*current), __func__); +} + future> CloudChannelServiceConnectionImpl::CancelEntitlement( google::cloud::channel::v1::CancelEntitlementRequest const& request) { @@ -622,6 +992,60 @@ CloudChannelServiceConnectionImpl::CancelEntitlement( polling_policy(*current), __func__); } +StatusOr +CloudChannelServiceConnectionImpl::CancelEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::CancelEntitlementRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CancelEntitlement(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::channel::v1::CancelEntitlementRequest const& request) { + return stub_->CancelEntitlement(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudChannelServiceConnectionImpl::CancelEntitlement( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CancelEntitlement", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::channel::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::channel::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> CloudChannelServiceConnectionImpl::ActivateEntitlement( google::cloud::channel::v1::ActivateEntitlementRequest const& request) { @@ -662,6 +1086,59 @@ CloudChannelServiceConnectionImpl::ActivateEntitlement( polling_policy(*current), __func__); } +StatusOr +CloudChannelServiceConnectionImpl::ActivateEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ActivateEntitlementRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ActivateEntitlement(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::channel::v1::ActivateEntitlementRequest const& + request) { + return stub_->ActivateEntitlement(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudChannelServiceConnectionImpl::ActivateEntitlement( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ActivateEntitlement", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::channel::v1::Entitlement>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::channel::v1::Entitlement>, + polling_policy(*current), __func__); +} + future> CloudChannelServiceConnectionImpl::TransferEntitlements( google::cloud::channel::v1::TransferEntitlementsRequest const& request) { @@ -702,6 +1179,60 @@ CloudChannelServiceConnectionImpl::TransferEntitlements( polling_policy(*current), __func__); } +StatusOr +CloudChannelServiceConnectionImpl::TransferEntitlements( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::TransferEntitlementsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->TransferEntitlements(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::channel::v1::TransferEntitlementsRequest const& + request) { + return stub_->TransferEntitlements(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudChannelServiceConnectionImpl::TransferEntitlements( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to TransferEntitlements", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::channel::v1::TransferEntitlementsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::channel::v1::TransferEntitlementsResponse>, + polling_policy(*current), __func__); +} + future> CloudChannelServiceConnectionImpl::TransferEntitlementsToGoogle( google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& @@ -743,6 +1274,62 @@ CloudChannelServiceConnectionImpl::TransferEntitlementsToGoogle( polling_policy(*current), __func__); } +StatusOr +CloudChannelServiceConnectionImpl::TransferEntitlementsToGoogle( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->TransferEntitlementsToGoogle(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& + request) { + return stub_->TransferEntitlementsToGoogle(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudChannelServiceConnectionImpl::TransferEntitlementsToGoogle( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to TransferEntitlementsToGoogle", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::channel::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::channel::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange CloudChannelServiceConnectionImpl::ListChannelPartnerLinks( google::cloud::channel::v1::ListChannelPartnerLinksRequest request) { diff --git a/google/cloud/channel/v1/internal/cloud_channel_connection_impl.h b/google/cloud/channel/v1/internal/cloud_channel_connection_impl.h index da91ce078983a..3127c6eb04456 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_connection_impl.h +++ b/google/cloud/channel/v1/internal/cloud_channel_connection_impl.h @@ -82,6 +82,15 @@ class CloudChannelServiceConnectionImpl google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request) override; + StatusOr ProvisionCloudIdentity( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request) + override; + + future> ProvisionCloudIdentity( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListEntitlements( google::cloud::channel::v1::ListEntitlementsRequest request) override; @@ -101,44 +110,136 @@ class CloudChannelServiceConnectionImpl google::cloud::channel::v1::CreateEntitlementRequest const& request) override; + StatusOr CreateEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::CreateEntitlementRequest const& request) + override; + + future> CreateEntitlement( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ChangeParameters( google::cloud::channel::v1::ChangeParametersRequest const& request) override; + StatusOr ChangeParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeParametersRequest const& request) + override; + + future> ChangeParameters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ChangeRenewalSettings( google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request) override; + StatusOr ChangeRenewalSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request) + override; + + future> + ChangeRenewalSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ChangeOffer( google::cloud::channel::v1::ChangeOfferRequest const& request) override; + StatusOr ChangeOffer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeOfferRequest const& request) override; + + future> ChangeOffer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartPaidService( google::cloud::channel::v1::StartPaidServiceRequest const& request) override; + StatusOr StartPaidService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::StartPaidServiceRequest const& request) + override; + + future> StartPaidService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> SuspendEntitlement( google::cloud::channel::v1::SuspendEntitlementRequest const& request) override; + StatusOr SuspendEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::SuspendEntitlementRequest const& request) + override; + + future> SuspendEntitlement( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CancelEntitlement(google::cloud::channel::v1::CancelEntitlementRequest const& request) override; + StatusOr CancelEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::CancelEntitlementRequest const& request) + override; + + future> + CancelEntitlement(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ActivateEntitlement( google::cloud::channel::v1::ActivateEntitlementRequest const& request) override; + StatusOr ActivateEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ActivateEntitlementRequest const& request) + override; + + future> ActivateEntitlement( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> TransferEntitlements( google::cloud::channel::v1::TransferEntitlementsRequest const& request) override; + StatusOr TransferEntitlements( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::TransferEntitlementsRequest const& request) + override; + + future> + TransferEntitlements( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> TransferEntitlementsToGoogle( google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& request) override; + StatusOr TransferEntitlementsToGoogle( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& + request) override; + + future> + TransferEntitlementsToGoogle( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListChannelPartnerLinks( google::cloud::channel::v1::ListChannelPartnerLinksRequest request) diff --git a/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.cc b/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.cc index 6f9495b42b6fb..41ce404862076 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.cc +++ b/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.cc @@ -113,6 +113,59 @@ CloudChannelReportsServiceConnectionImpl::RunReportJob( polling_policy(*current), __func__); } +StatusOr +CloudChannelReportsServiceConnectionImpl::RunReportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::RunReportJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RunReportJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::channel::v1::RunReportJobRequest const& request) { + return stub_->RunReportJob(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudChannelReportsServiceConnectionImpl::RunReportJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RunReportJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::channel::v1::RunReportJobResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::channel::v1::RunReportJobResponse>, + polling_policy(*current), __func__); +} + StreamRange CloudChannelReportsServiceConnectionImpl::FetchReportResults( google::cloud::channel::v1::FetchReportResultsRequest request) { diff --git a/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.h b/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.h index 37acd0959c22c..b8a2356888947 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.h +++ b/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.h @@ -56,6 +56,14 @@ class CloudChannelReportsServiceConnectionImpl RunReportJob( google::cloud::channel::v1::RunReportJobRequest const& request) override; + StatusOr RunReportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::RunReportJobRequest const& request) override; + + future> + RunReportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange FetchReportResults( google::cloud::channel::v1::FetchReportResultsRequest request) override; diff --git a/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.cc b/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.cc index a08137795ca8c..c778ca4800dd6 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.cc +++ b/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.cc @@ -43,6 +43,30 @@ CloudChannelReportsServiceTracingConnection::RunReportJob( return internal::EndSpan(std::move(span), child_->RunReportJob(request)); } +StatusOr +CloudChannelReportsServiceTracingConnection::RunReportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::RunReportJobRequest const& request) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelReportsServiceConnection::RunReportJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RunReportJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudChannelReportsServiceTracingConnection::RunReportJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelReportsServiceConnection::RunReportJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RunReportJob(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CloudChannelReportsServiceTracingConnection::FetchReportResults( google::cloud::channel::v1::FetchReportResultsRequest request) { diff --git a/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.h b/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.h index abb60a0eb944c..1f625df7f13bb 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.h +++ b/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.h @@ -44,6 +44,14 @@ class CloudChannelReportsServiceTracingConnection RunReportJob( google::cloud::channel::v1::RunReportJobRequest const& request) override; + StatusOr RunReportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::RunReportJobRequest const& request) override; + + future> + RunReportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange FetchReportResults( google::cloud::channel::v1::FetchReportResultsRequest request) override; diff --git a/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.cc b/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.cc index 614d0e7ce75f4..a40fcde026d8d 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.cc +++ b/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.cc @@ -110,6 +110,30 @@ CloudChannelServiceTracingConnection::ProvisionCloudIdentity( child_->ProvisionCloudIdentity(request)); } +StatusOr +CloudChannelServiceTracingConnection::ProvisionCloudIdentity( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::ProvisionCloudIdentity"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ProvisionCloudIdentity( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudChannelServiceTracingConnection::ProvisionCloudIdentity( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::ProvisionCloudIdentity"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ProvisionCloudIdentity( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CloudChannelServiceTracingConnection::ListEntitlements( google::cloud::channel::v1::ListEntitlementsRequest request) { @@ -163,6 +187,30 @@ CloudChannelServiceTracingConnection::CreateEntitlement( return internal::EndSpan(std::move(span), child_->CreateEntitlement(request)); } +StatusOr +CloudChannelServiceTracingConnection::CreateEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::CreateEntitlementRequest const& request) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::CreateEntitlement"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateEntitlement(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudChannelServiceTracingConnection::CreateEntitlement( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::CreateEntitlement"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateEntitlement(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudChannelServiceTracingConnection::ChangeParameters( google::cloud::channel::v1::ChangeParametersRequest const& request) { @@ -172,6 +220,30 @@ CloudChannelServiceTracingConnection::ChangeParameters( return internal::EndSpan(std::move(span), child_->ChangeParameters(request)); } +StatusOr +CloudChannelServiceTracingConnection::ChangeParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeParametersRequest const& request) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::ChangeParameters"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ChangeParameters(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudChannelServiceTracingConnection::ChangeParameters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::ChangeParameters"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ChangeParameters(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudChannelServiceTracingConnection::ChangeRenewalSettings( google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request) { @@ -182,6 +254,30 @@ CloudChannelServiceTracingConnection::ChangeRenewalSettings( child_->ChangeRenewalSettings(request)); } +StatusOr +CloudChannelServiceTracingConnection::ChangeRenewalSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::ChangeRenewalSettings"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ChangeRenewalSettings( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudChannelServiceTracingConnection::ChangeRenewalSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::ChangeRenewalSettings"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ChangeRenewalSettings( + google::cloud::ExperimentalTag{}, operation)); +} + future> CloudChannelServiceTracingConnection::ChangeOffer( google::cloud::channel::v1::ChangeOfferRequest const& request) { @@ -191,6 +287,30 @@ CloudChannelServiceTracingConnection::ChangeOffer( return internal::EndSpan(std::move(span), child_->ChangeOffer(request)); } +StatusOr +CloudChannelServiceTracingConnection::ChangeOffer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeOfferRequest const& request) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::ChangeOffer"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ChangeOffer(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudChannelServiceTracingConnection::ChangeOffer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::ChangeOffer"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ChangeOffer(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudChannelServiceTracingConnection::StartPaidService( google::cloud::channel::v1::StartPaidServiceRequest const& request) { @@ -200,6 +320,30 @@ CloudChannelServiceTracingConnection::StartPaidService( return internal::EndSpan(std::move(span), child_->StartPaidService(request)); } +StatusOr +CloudChannelServiceTracingConnection::StartPaidService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::StartPaidServiceRequest const& request) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::StartPaidService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StartPaidService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudChannelServiceTracingConnection::StartPaidService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::StartPaidService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StartPaidService(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudChannelServiceTracingConnection::SuspendEntitlement( google::cloud::channel::v1::SuspendEntitlementRequest const& request) { @@ -210,6 +354,30 @@ CloudChannelServiceTracingConnection::SuspendEntitlement( child_->SuspendEntitlement(request)); } +StatusOr +CloudChannelServiceTracingConnection::SuspendEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::SuspendEntitlementRequest const& request) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::SuspendEntitlement"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SuspendEntitlement(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudChannelServiceTracingConnection::SuspendEntitlement( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::SuspendEntitlement"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SuspendEntitlement(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudChannelServiceTracingConnection::CancelEntitlement( google::cloud::channel::v1::CancelEntitlementRequest const& request) { @@ -219,6 +387,30 @@ CloudChannelServiceTracingConnection::CancelEntitlement( return internal::EndSpan(std::move(span), child_->CancelEntitlement(request)); } +StatusOr +CloudChannelServiceTracingConnection::CancelEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::CancelEntitlementRequest const& request) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::CancelEntitlement"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CancelEntitlement(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudChannelServiceTracingConnection::CancelEntitlement( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::CancelEntitlement"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CancelEntitlement(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudChannelServiceTracingConnection::ActivateEntitlement( google::cloud::channel::v1::ActivateEntitlementRequest const& request) { @@ -229,6 +421,30 @@ CloudChannelServiceTracingConnection::ActivateEntitlement( child_->ActivateEntitlement(request)); } +StatusOr +CloudChannelServiceTracingConnection::ActivateEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ActivateEntitlementRequest const& request) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::ActivateEntitlement"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ActivateEntitlement(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudChannelServiceTracingConnection::ActivateEntitlement( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::ActivateEntitlement"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ActivateEntitlement(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudChannelServiceTracingConnection::TransferEntitlements( google::cloud::channel::v1::TransferEntitlementsRequest const& request) { @@ -239,6 +455,30 @@ CloudChannelServiceTracingConnection::TransferEntitlements( child_->TransferEntitlements(request)); } +StatusOr +CloudChannelServiceTracingConnection::TransferEntitlements( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::TransferEntitlementsRequest const& request) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::TransferEntitlements"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->TransferEntitlements( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudChannelServiceTracingConnection::TransferEntitlements( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::TransferEntitlements"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->TransferEntitlements( + google::cloud::ExperimentalTag{}, operation)); +} + future> CloudChannelServiceTracingConnection::TransferEntitlementsToGoogle( google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& @@ -251,6 +491,33 @@ CloudChannelServiceTracingConnection::TransferEntitlementsToGoogle( child_->TransferEntitlementsToGoogle(request)); } +StatusOr +CloudChannelServiceTracingConnection::TransferEntitlementsToGoogle( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& + request) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::" + "TransferEntitlementsToGoogle"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->TransferEntitlementsToGoogle( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudChannelServiceTracingConnection::TransferEntitlementsToGoogle( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "channel_v1::CloudChannelServiceConnection::" + "TransferEntitlementsToGoogle"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->TransferEntitlementsToGoogle( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CloudChannelServiceTracingConnection::ListChannelPartnerLinks( google::cloud::channel::v1::ListChannelPartnerLinksRequest request) { diff --git a/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.h b/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.h index 3b0d10440ab9f..ca7ed64779e54 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.h +++ b/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.h @@ -70,6 +70,15 @@ class CloudChannelServiceTracingConnection google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request) override; + StatusOr ProvisionCloudIdentity( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request) + override; + + future> ProvisionCloudIdentity( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListEntitlements( google::cloud::channel::v1::ListEntitlementsRequest request) override; @@ -89,44 +98,136 @@ class CloudChannelServiceTracingConnection google::cloud::channel::v1::CreateEntitlementRequest const& request) override; + StatusOr CreateEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::CreateEntitlementRequest const& request) + override; + + future> CreateEntitlement( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ChangeParameters( google::cloud::channel::v1::ChangeParametersRequest const& request) override; + StatusOr ChangeParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeParametersRequest const& request) + override; + + future> ChangeParameters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ChangeRenewalSettings( google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request) override; + StatusOr ChangeRenewalSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request) + override; + + future> + ChangeRenewalSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ChangeOffer( google::cloud::channel::v1::ChangeOfferRequest const& request) override; + StatusOr ChangeOffer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeOfferRequest const& request) override; + + future> ChangeOffer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartPaidService( google::cloud::channel::v1::StartPaidServiceRequest const& request) override; + StatusOr StartPaidService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::StartPaidServiceRequest const& request) + override; + + future> StartPaidService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> SuspendEntitlement( google::cloud::channel::v1::SuspendEntitlementRequest const& request) override; + StatusOr SuspendEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::SuspendEntitlementRequest const& request) + override; + + future> SuspendEntitlement( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CancelEntitlement(google::cloud::channel::v1::CancelEntitlementRequest const& request) override; + StatusOr CancelEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::CancelEntitlementRequest const& request) + override; + + future> + CancelEntitlement(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ActivateEntitlement( google::cloud::channel::v1::ActivateEntitlementRequest const& request) override; + StatusOr ActivateEntitlement( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ActivateEntitlementRequest const& request) + override; + + future> ActivateEntitlement( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> TransferEntitlements( google::cloud::channel::v1::TransferEntitlementsRequest const& request) override; + StatusOr TransferEntitlements( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::TransferEntitlementsRequest const& request) + override; + + future> + TransferEntitlements( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> TransferEntitlementsToGoogle( google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& request) override; + StatusOr TransferEntitlementsToGoogle( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& + request) override; + + future> + TransferEntitlementsToGoogle( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListChannelPartnerLinks( google::cloud::channel::v1::ListChannelPartnerLinksRequest request) diff --git a/google/cloud/channel/v1/mocks/mock_cloud_channel_connection.h b/google/cloud/channel/v1/mocks/mock_cloud_channel_connection.h index b7ffdcbeaf7db..42a57f90d02e8 100644 --- a/google/cloud/channel/v1/mocks/mock_cloud_channel_connection.h +++ b/google/cloud/channel/v1/mocks/mock_cloud_channel_connection.h @@ -90,6 +90,18 @@ class MockCloudChannelServiceConnection request), (override)); + MOCK_METHOD(StatusOr, ProvisionCloudIdentity, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ProvisionCloudIdentityRequest const& + request), + (override)); + + MOCK_METHOD(future>, + ProvisionCloudIdentity, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListEntitlements, (google::cloud::channel::v1::ListEntitlementsRequest request), @@ -117,47 +129,142 @@ class MockCloudChannelServiceConnection (google::cloud::channel::v1::CreateEntitlementRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateEntitlement, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::CreateEntitlementRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateEntitlement, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ChangeParameters, (google::cloud::channel::v1::ChangeParametersRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ChangeParameters, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeParametersRequest const& request), + (override)); + + MOCK_METHOD(future>, + ChangeParameters, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ChangeRenewalSettings, (google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ChangeRenewalSettings, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request), + (override)); + + MOCK_METHOD(future>, + ChangeRenewalSettings, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, ChangeOffer, (google::cloud::channel::v1::ChangeOfferRequest const& request), (override)); + MOCK_METHOD(StatusOr, ChangeOffer, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ChangeOfferRequest const& request), + (override)); + + MOCK_METHOD(future>, + ChangeOffer, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, StartPaidService, (google::cloud::channel::v1::StartPaidServiceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, StartPaidService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::StartPaidServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + StartPaidService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, SuspendEntitlement, (google::cloud::channel::v1::SuspendEntitlementRequest const& request), (override)); + MOCK_METHOD( + StatusOr, SuspendEntitlement, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::SuspendEntitlementRequest const& request), + (override)); + + MOCK_METHOD(future>, + SuspendEntitlement, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CancelEntitlement, (google::cloud::channel::v1::CancelEntitlementRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CancelEntitlement, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::CancelEntitlementRequest const& request), + (override)); + + MOCK_METHOD(future>, + CancelEntitlement, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ActivateEntitlement, (google::cloud::channel::v1::ActivateEntitlementRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ActivateEntitlement, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::ActivateEntitlementRequest const& request), + (override)); + + MOCK_METHOD(future>, + ActivateEntitlement, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -165,6 +272,20 @@ class MockCloudChannelServiceConnection (google::cloud::channel::v1::TransferEntitlementsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, TransferEntitlements, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::TransferEntitlementsRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + TransferEntitlements, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, TransferEntitlementsToGoogle, @@ -172,6 +293,19 @@ class MockCloudChannelServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, TransferEntitlementsToGoogle, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& + request), + (override)); + + MOCK_METHOD(future>, + TransferEntitlementsToGoogle, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListChannelPartnerLinks, diff --git a/google/cloud/channel/v1/mocks/mock_cloud_channel_reports_connection.h b/google/cloud/channel/v1/mocks/mock_cloud_channel_reports_connection.h index 0ec8569863549..21305499bb603 100644 --- a/google/cloud/channel/v1/mocks/mock_cloud_channel_reports_connection.h +++ b/google/cloud/channel/v1/mocks/mock_cloud_channel_reports_connection.h @@ -53,6 +53,18 @@ class MockCloudChannelReportsServiceConnection (google::cloud::channel::v1::RunReportJobRequest const& request), (override)); + MOCK_METHOD(StatusOr, RunReportJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::channel::v1::RunReportJobRequest const& request), + (override)); + + MOCK_METHOD( + future>, + RunReportJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), FetchReportResults, (google::cloud::channel::v1::FetchReportResultsRequest request), diff --git a/google/cloud/cloudbuild/v1/cloud_build_connection.cc b/google/cloud/cloudbuild/v1/cloud_build_connection.cc index 8ff5192670455..41492a5708580 100644 --- a/google/cloud/cloudbuild/v1/cloud_build_connection.cc +++ b/google/cloud/cloudbuild/v1/cloud_build_connection.cc @@ -46,6 +46,21 @@ CloudBuildConnection::CreateBuild( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudBuildConnection::CreateBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::CreateBuildRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudBuildConnection::CreateBuild(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr CloudBuildConnection::GetBuild( google::devtools::cloudbuild::v1::GetBuildRequest const&) { @@ -74,6 +89,21 @@ CloudBuildConnection::RetryBuild( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudBuildConnection::RetryBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::RetryBuildRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudBuildConnection::RetryBuild(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudBuildConnection::ApproveBuild( google::devtools::cloudbuild::v1::ApproveBuildRequest const&) { @@ -82,6 +112,21 @@ CloudBuildConnection::ApproveBuild( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudBuildConnection::ApproveBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::ApproveBuildRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudBuildConnection::ApproveBuild(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr CloudBuildConnection::CreateBuildTrigger( google::devtools::cloudbuild::v1::CreateBuildTriggerRequest const&) { @@ -121,6 +166,21 @@ CloudBuildConnection::RunBuildTrigger( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudBuildConnection::RunBuildTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::RunBuildTriggerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudBuildConnection::RunBuildTrigger(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr CloudBuildConnection::ReceiveTriggerWebhook( google::devtools::cloudbuild::v1::ReceiveTriggerWebhookRequest const&) { @@ -135,6 +195,21 @@ CloudBuildConnection::CreateWorkerPool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudBuildConnection::CreateWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudBuildConnection::CreateWorkerPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr CloudBuildConnection::GetWorkerPool( google::devtools::cloudbuild::v1::GetWorkerPoolRequest const&) { @@ -150,6 +225,22 @@ CloudBuildConnection::DeleteWorkerPool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudBuildConnection::DeleteWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudBuildConnection::DeleteWorkerPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudBuildConnection::UpdateWorkerPool( google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const&) { @@ -158,6 +249,21 @@ CloudBuildConnection::UpdateWorkerPool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudBuildConnection::UpdateWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudBuildConnection::UpdateWorkerPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CloudBuildConnection::ListWorkerPools( google::devtools::cloudbuild::v1:: diff --git a/google/cloud/cloudbuild/v1/cloud_build_connection.h b/google/cloud/cloudbuild/v1/cloud_build_connection.h index 1ea0c833f672b..475fad8705570 100644 --- a/google/cloud/cloudbuild/v1/cloud_build_connection.h +++ b/google/cloud/cloudbuild/v1/cloud_build_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/cloudbuild/v1/cloud_build_connection_idempotency_policy.h" #include "google/cloud/cloudbuild/v1/internal/cloud_build_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -187,6 +189,14 @@ class CloudBuildConnection { virtual future> CreateBuild( google::devtools::cloudbuild::v1::CreateBuildRequest const& request); + virtual StatusOr CreateBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::CreateBuildRequest const& request); + + virtual future> CreateBuild( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetBuild( google::devtools::cloudbuild::v1::GetBuildRequest const& request); @@ -199,10 +209,26 @@ class CloudBuildConnection { virtual future> RetryBuild( google::devtools::cloudbuild::v1::RetryBuildRequest const& request); + virtual StatusOr RetryBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::RetryBuildRequest const& request); + + virtual future> RetryBuild( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ApproveBuild( google::devtools::cloudbuild::v1::ApproveBuildRequest const& request); + virtual StatusOr ApproveBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::ApproveBuildRequest const& request); + + virtual future> + ApproveBuild(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateBuildTrigger( google::devtools::cloudbuild::v1::CreateBuildTriggerRequest const& @@ -229,6 +255,14 @@ class CloudBuildConnection { RunBuildTrigger( google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request); + virtual StatusOr RunBuildTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request); + + virtual future> + RunBuildTrigger(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::devtools::cloudbuild::v1::ReceiveTriggerWebhookResponse> ReceiveTriggerWebhook( @@ -239,6 +273,14 @@ class CloudBuildConnection { CreateWorkerPool( google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request); + virtual StatusOr CreateWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request); + + virtual future> + CreateWorkerPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetWorkerPool( google::devtools::cloudbuild::v1::GetWorkerPoolRequest const& request); @@ -247,10 +289,27 @@ class CloudBuildConnection { DeleteWorkerPool( google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request); + virtual StatusOr DeleteWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request); + + virtual future> + DeleteWorkerPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateWorkerPool( google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request); + virtual StatusOr UpdateWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request); + + virtual future> + UpdateWorkerPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListWorkerPools( google::devtools::cloudbuild::v1::ListWorkerPoolsRequest request); diff --git a/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.cc b/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.cc index 3e738d5f3a426..da594f7b79143 100644 --- a/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.cc +++ b/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.cc @@ -103,6 +103,59 @@ CloudBuildConnectionImpl::CreateBuild( polling_policy(*current), __func__); } +StatusOr CloudBuildConnectionImpl::CreateBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::CreateBuildRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateBuild(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::devtools::cloudbuild::v1::CreateBuildRequest const& request) { + return stub_->CreateBuild(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudBuildConnectionImpl::CreateBuild( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateBuild", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::cloudbuild::v1::Build>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::devtools::cloudbuild::v1::Build>, + polling_policy(*current), __func__); +} + StatusOr CloudBuildConnectionImpl::GetBuild( google::devtools::cloudbuild::v1::GetBuildRequest const& request) { @@ -205,6 +258,59 @@ CloudBuildConnectionImpl::RetryBuild( polling_policy(*current), __func__); } +StatusOr CloudBuildConnectionImpl::RetryBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::RetryBuildRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RetryBuild(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::devtools::cloudbuild::v1::RetryBuildRequest const& request) { + return stub_->RetryBuild(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudBuildConnectionImpl::RetryBuild( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RetryBuild", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::cloudbuild::v1::Build>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::devtools::cloudbuild::v1::Build>, + polling_policy(*current), __func__); +} + future> CloudBuildConnectionImpl::ApproveBuild( google::devtools::cloudbuild::v1::ApproveBuildRequest const& request) { @@ -245,6 +351,59 @@ CloudBuildConnectionImpl::ApproveBuild( polling_policy(*current), __func__); } +StatusOr CloudBuildConnectionImpl::ApproveBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::ApproveBuildRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ApproveBuild(request), + [this](grpc::ClientContext& context, Options const& options, + google::devtools::cloudbuild::v1::ApproveBuildRequest const& + request) { + return stub_->ApproveBuild(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudBuildConnectionImpl::ApproveBuild( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ApproveBuild", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::cloudbuild::v1::Build>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::devtools::cloudbuild::v1::Build>, + polling_policy(*current), __func__); +} + StatusOr CloudBuildConnectionImpl::CreateBuildTrigger( google::devtools::cloudbuild::v1::CreateBuildTriggerRequest const& @@ -381,6 +540,60 @@ CloudBuildConnectionImpl::RunBuildTrigger( polling_policy(*current), __func__); } +StatusOr +CloudBuildConnectionImpl::RunBuildTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RunBuildTrigger(request), + [this](grpc::ClientContext& context, Options const& options, + google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& + request) { + return stub_->RunBuildTrigger(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudBuildConnectionImpl::RunBuildTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RunBuildTrigger", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::cloudbuild::v1::Build>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::devtools::cloudbuild::v1::Build>, + polling_policy(*current), __func__); +} + StatusOr CloudBuildConnectionImpl::ReceiveTriggerWebhook( google::devtools::cloudbuild::v1::ReceiveTriggerWebhookRequest const& @@ -438,6 +651,61 @@ CloudBuildConnectionImpl::CreateWorkerPool( polling_policy(*current), __func__); } +StatusOr +CloudBuildConnectionImpl::CreateWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateWorkerPool(request), + [this](grpc::ClientContext& context, Options const& options, + google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& + request) { + return stub_->CreateWorkerPool(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudBuildConnectionImpl::CreateWorkerPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateWorkerPool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::cloudbuild::v1::WorkerPool>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::devtools::cloudbuild::v1::WorkerPool>, + polling_policy(*current), __func__); +} + StatusOr CloudBuildConnectionImpl::GetWorkerPool( google::devtools::cloudbuild::v1::GetWorkerPoolRequest const& request) { @@ -494,6 +762,62 @@ CloudBuildConnectionImpl::DeleteWorkerPool( polling_policy(*current), __func__); } +StatusOr +CloudBuildConnectionImpl::DeleteWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteWorkerPool(request), + [this](grpc::ClientContext& context, Options const& options, + google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& + request) { + return stub_->DeleteWorkerPool(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudBuildConnectionImpl::DeleteWorkerPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteWorkerPool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::cloudbuild::v1::DeleteWorkerPoolOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::devtools::cloudbuild::v1::DeleteWorkerPoolOperationMetadata>, + polling_policy(*current), __func__); +} + future> CloudBuildConnectionImpl::UpdateWorkerPool( google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request) { @@ -534,6 +858,61 @@ CloudBuildConnectionImpl::UpdateWorkerPool( polling_policy(*current), __func__); } +StatusOr +CloudBuildConnectionImpl::UpdateWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateWorkerPool(request), + [this](grpc::ClientContext& context, Options const& options, + google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& + request) { + return stub_->UpdateWorkerPool(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudBuildConnectionImpl::UpdateWorkerPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateWorkerPool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::cloudbuild::v1::WorkerPool>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::devtools::cloudbuild::v1::WorkerPool>, + polling_policy(*current), __func__); +} + StreamRange CloudBuildConnectionImpl::ListWorkerPools( google::devtools::cloudbuild::v1::ListWorkerPoolsRequest request) { diff --git a/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.h b/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.h index da330b4041f62..bf3134454a52c 100644 --- a/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.h +++ b/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.h @@ -55,6 +55,15 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { google::devtools::cloudbuild::v1::CreateBuildRequest const& request) override; + StatusOr CreateBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::CreateBuildRequest const& request) + override; + + future> CreateBuild( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBuild( google::devtools::cloudbuild::v1::GetBuildRequest const& request) override; @@ -70,10 +79,28 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { google::devtools::cloudbuild::v1::RetryBuildRequest const& request) override; + StatusOr RetryBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::RetryBuildRequest const& request) + override; + + future> RetryBuild( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ApproveBuild( google::devtools::cloudbuild::v1::ApproveBuildRequest const& request) override; + StatusOr ApproveBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::ApproveBuildRequest const& request) + override; + + future> ApproveBuild( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateBuildTrigger( google::devtools::cloudbuild::v1::CreateBuildTriggerRequest const& request) override; @@ -98,6 +125,15 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request) override; + StatusOr RunBuildTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request) + override; + + future> RunBuildTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ReceiveTriggerWebhook( google::devtools::cloudbuild::v1::ReceiveTriggerWebhookRequest const& @@ -108,6 +144,15 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request) override; + StatusOr CreateWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request) + override; + + future> + CreateWorkerPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetWorkerPool( google::devtools::cloudbuild::v1::GetWorkerPoolRequest const& request) override; @@ -118,11 +163,30 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request) override; + StatusOr DeleteWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request) + override; + + future> + DeleteWorkerPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateWorkerPool( google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request) override; + StatusOr UpdateWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request) + override; + + future> + UpdateWorkerPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListWorkerPools( google::devtools::cloudbuild::v1::ListWorkerPoolsRequest request) override; diff --git a/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.cc b/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.cc index 4ddbe56d43b59..c6129859b2efa 100644 --- a/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.cc +++ b/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.cc @@ -42,6 +42,30 @@ CloudBuildTracingConnection::CreateBuild( return internal::EndSpan(std::move(span), child_->CreateBuild(request)); } +StatusOr +CloudBuildTracingConnection::CreateBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::CreateBuildRequest const& request) { + auto span = + internal::MakeSpan("cloudbuild_v1::CloudBuildConnection::CreateBuild"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateBuild(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudBuildTracingConnection::CreateBuild( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("cloudbuild_v1::CloudBuildConnection::CreateBuild"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateBuild(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr CloudBuildTracingConnection::GetBuild( google::devtools::cloudbuild::v1::GetBuildRequest const& request) { @@ -80,6 +104,30 @@ CloudBuildTracingConnection::RetryBuild( return internal::EndSpan(std::move(span), child_->RetryBuild(request)); } +StatusOr +CloudBuildTracingConnection::RetryBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::RetryBuildRequest const& request) { + auto span = + internal::MakeSpan("cloudbuild_v1::CloudBuildConnection::RetryBuild"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RetryBuild(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudBuildTracingConnection::RetryBuild( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("cloudbuild_v1::CloudBuildConnection::RetryBuild"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RetryBuild(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudBuildTracingConnection::ApproveBuild( google::devtools::cloudbuild::v1::ApproveBuildRequest const& request) { @@ -89,6 +137,30 @@ CloudBuildTracingConnection::ApproveBuild( return internal::EndSpan(std::move(span), child_->ApproveBuild(request)); } +StatusOr +CloudBuildTracingConnection::ApproveBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::ApproveBuildRequest const& request) { + auto span = + internal::MakeSpan("cloudbuild_v1::CloudBuildConnection::ApproveBuild"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ApproveBuild(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudBuildTracingConnection::ApproveBuild( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("cloudbuild_v1::CloudBuildConnection::ApproveBuild"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ApproveBuild(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr CloudBuildTracingConnection::CreateBuildTrigger( google::devtools::cloudbuild::v1::CreateBuildTriggerRequest const& @@ -148,6 +220,30 @@ CloudBuildTracingConnection::RunBuildTrigger( return internal::EndSpan(std::move(span), child_->RunBuildTrigger(request)); } +StatusOr +CloudBuildTracingConnection::RunBuildTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request) { + auto span = internal::MakeSpan( + "cloudbuild_v1::CloudBuildConnection::RunBuildTrigger"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RunBuildTrigger(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudBuildTracingConnection::RunBuildTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "cloudbuild_v1::CloudBuildConnection::RunBuildTrigger"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RunBuildTrigger(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr CloudBuildTracingConnection::ReceiveTriggerWebhook( google::devtools::cloudbuild::v1::ReceiveTriggerWebhookRequest const& @@ -167,6 +263,30 @@ CloudBuildTracingConnection::CreateWorkerPool( return internal::EndSpan(std::move(span), child_->CreateWorkerPool(request)); } +StatusOr +CloudBuildTracingConnection::CreateWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request) { + auto span = internal::MakeSpan( + "cloudbuild_v1::CloudBuildConnection::CreateWorkerPool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateWorkerPool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudBuildTracingConnection::CreateWorkerPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "cloudbuild_v1::CloudBuildConnection::CreateWorkerPool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateWorkerPool(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr CloudBuildTracingConnection::GetWorkerPool( google::devtools::cloudbuild::v1::GetWorkerPoolRequest const& request) { @@ -186,6 +306,31 @@ CloudBuildTracingConnection::DeleteWorkerPool( return internal::EndSpan(std::move(span), child_->DeleteWorkerPool(request)); } +StatusOr +CloudBuildTracingConnection::DeleteWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request) { + auto span = internal::MakeSpan( + "cloudbuild_v1::CloudBuildConnection::DeleteWorkerPool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteWorkerPool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudBuildTracingConnection::DeleteWorkerPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "cloudbuild_v1::CloudBuildConnection::DeleteWorkerPool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteWorkerPool(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudBuildTracingConnection::UpdateWorkerPool( google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request) { @@ -195,6 +340,30 @@ CloudBuildTracingConnection::UpdateWorkerPool( return internal::EndSpan(std::move(span), child_->UpdateWorkerPool(request)); } +StatusOr +CloudBuildTracingConnection::UpdateWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request) { + auto span = internal::MakeSpan( + "cloudbuild_v1::CloudBuildConnection::UpdateWorkerPool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateWorkerPool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudBuildTracingConnection::UpdateWorkerPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "cloudbuild_v1::CloudBuildConnection::UpdateWorkerPool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateWorkerPool(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CloudBuildTracingConnection::ListWorkerPools( google::devtools::cloudbuild::v1::ListWorkerPoolsRequest request) { diff --git a/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.h b/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.h index 2cc1fc13c76bd..82a8d721528ac 100644 --- a/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.h +++ b/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.h @@ -43,6 +43,15 @@ class CloudBuildTracingConnection : public cloudbuild_v1::CloudBuildConnection { google::devtools::cloudbuild::v1::CreateBuildRequest const& request) override; + StatusOr CreateBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::CreateBuildRequest const& request) + override; + + future> CreateBuild( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBuild( google::devtools::cloudbuild::v1::GetBuildRequest const& request) override; @@ -58,10 +67,28 @@ class CloudBuildTracingConnection : public cloudbuild_v1::CloudBuildConnection { google::devtools::cloudbuild::v1::RetryBuildRequest const& request) override; + StatusOr RetryBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::RetryBuildRequest const& request) + override; + + future> RetryBuild( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ApproveBuild( google::devtools::cloudbuild::v1::ApproveBuildRequest const& request) override; + StatusOr ApproveBuild( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::ApproveBuildRequest const& request) + override; + + future> ApproveBuild( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateBuildTrigger( google::devtools::cloudbuild::v1::CreateBuildTriggerRequest const& request) override; @@ -86,6 +113,15 @@ class CloudBuildTracingConnection : public cloudbuild_v1::CloudBuildConnection { google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request) override; + StatusOr RunBuildTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request) + override; + + future> RunBuildTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ReceiveTriggerWebhook( google::devtools::cloudbuild::v1::ReceiveTriggerWebhookRequest const& @@ -96,6 +132,15 @@ class CloudBuildTracingConnection : public cloudbuild_v1::CloudBuildConnection { google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request) override; + StatusOr CreateWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request) + override; + + future> + CreateWorkerPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetWorkerPool( google::devtools::cloudbuild::v1::GetWorkerPoolRequest const& request) override; @@ -106,11 +151,30 @@ class CloudBuildTracingConnection : public cloudbuild_v1::CloudBuildConnection { google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request) override; + StatusOr DeleteWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request) + override; + + future> + DeleteWorkerPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateWorkerPool( google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request) override; + StatusOr UpdateWorkerPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request) + override; + + future> + UpdateWorkerPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListWorkerPools( google::devtools::cloudbuild::v1::ListWorkerPoolsRequest request) override; diff --git a/google/cloud/cloudbuild/v1/mocks/mock_cloud_build_connection.h b/google/cloud/cloudbuild/v1/mocks/mock_cloud_build_connection.h index 2ed4b302e8516..8fbab190a83d9 100644 --- a/google/cloud/cloudbuild/v1/mocks/mock_cloud_build_connection.h +++ b/google/cloud/cloudbuild/v1/mocks/mock_cloud_build_connection.h @@ -51,6 +51,18 @@ class MockCloudBuildConnection : public cloudbuild_v1::CloudBuildConnection { (google::devtools::cloudbuild::v1::CreateBuildRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateBuild, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::CreateBuildRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateBuild, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetBuild, (google::devtools::cloudbuild::v1::GetBuildRequest const& request), @@ -71,11 +83,35 @@ class MockCloudBuildConnection : public cloudbuild_v1::CloudBuildConnection { (google::devtools::cloudbuild::v1::RetryBuildRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RetryBuild, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::RetryBuildRequest const& request), + (override)); + + MOCK_METHOD(future>, + RetryBuild, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ApproveBuild, (google::devtools::cloudbuild::v1::ApproveBuildRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ApproveBuild, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::ApproveBuildRequest const& request), + (override)); + + MOCK_METHOD(future>, + ApproveBuild, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CreateBuildTrigger, @@ -113,6 +149,18 @@ class MockCloudBuildConnection : public cloudbuild_v1::CloudBuildConnection { (google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RunBuildTrigger, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request), + (override)); + + MOCK_METHOD(future>, + RunBuildTrigger, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, ReceiveTriggerWebhook, @@ -126,6 +174,18 @@ class MockCloudBuildConnection : public cloudbuild_v1::CloudBuildConnection { request), (override)); + MOCK_METHOD(StatusOr, CreateWorkerPool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateWorkerPool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetWorkerPool, (google::devtools::cloudbuild::v1::GetWorkerPoolRequest const& request), @@ -139,12 +199,38 @@ class MockCloudBuildConnection : public cloudbuild_v1::CloudBuildConnection { request), (override)); + MOCK_METHOD(StatusOr, DeleteWorkerPool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteWorkerPool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateWorkerPool, (google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateWorkerPool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateWorkerPool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListWorkerPools, diff --git a/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.cc b/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.cc index 87b49b78cef67..2f18a74c16ac5 100644 --- a/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.cc +++ b/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.cc @@ -107,6 +107,61 @@ RepositoryManagerConnectionImpl::CreateConnection( polling_policy(*current), __func__); } +StatusOr +RepositoryManagerConnectionImpl::CreateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::CreateConnectionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateConnection(request), + [this](grpc::ClientContext& context, Options const& options, + google::devtools::cloudbuild::v2::CreateConnectionRequest const& + request) { + return stub_->CreateConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +RepositoryManagerConnectionImpl::CreateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::cloudbuild::v2::Connection>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::devtools::cloudbuild::v2::Connection>, + polling_policy(*current), __func__); +} + StatusOr RepositoryManagerConnectionImpl::GetConnection( google::devtools::cloudbuild::v2::GetConnectionRequest const& request) { @@ -197,6 +252,61 @@ RepositoryManagerConnectionImpl::UpdateConnection( polling_policy(*current), __func__); } +StatusOr +RepositoryManagerConnectionImpl::UpdateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateConnection(request), + [this](grpc::ClientContext& context, Options const& options, + google::devtools::cloudbuild::v2::UpdateConnectionRequest const& + request) { + return stub_->UpdateConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +RepositoryManagerConnectionImpl::UpdateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::cloudbuild::v2::Connection>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::devtools::cloudbuild::v2::Connection>, + polling_policy(*current), __func__); +} + future> RepositoryManagerConnectionImpl::DeleteConnection( google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request) { @@ -237,6 +347,61 @@ RepositoryManagerConnectionImpl::DeleteConnection( polling_policy(*current), __func__); } +StatusOr +RepositoryManagerConnectionImpl::DeleteConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteConnection(request), + [this](grpc::ClientContext& context, Options const& options, + google::devtools::cloudbuild::v2::DeleteConnectionRequest const& + request) { + return stub_->DeleteConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +RepositoryManagerConnectionImpl::DeleteConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::cloudbuild::v2::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::devtools::cloudbuild::v2::OperationMetadata>, + polling_policy(*current), __func__); +} + future> RepositoryManagerConnectionImpl::CreateRepository( google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request) { @@ -277,6 +442,61 @@ RepositoryManagerConnectionImpl::CreateRepository( polling_policy(*current), __func__); } +StatusOr +RepositoryManagerConnectionImpl::CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateRepository(request), + [this](grpc::ClientContext& context, Options const& options, + google::devtools::cloudbuild::v2::CreateRepositoryRequest const& + request) { + return stub_->CreateRepository(context, options, request); + }, + *current, request, __func__); +} + +future> +RepositoryManagerConnectionImpl::CreateRepository( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateRepository", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::cloudbuild::v2::Repository>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::devtools::cloudbuild::v2::Repository>, + polling_policy(*current), __func__); +} + future< StatusOr> RepositoryManagerConnectionImpl::BatchCreateRepositories( @@ -318,6 +538,63 @@ RepositoryManagerConnectionImpl::BatchCreateRepositories( polling_policy(*current), __func__); } +StatusOr +RepositoryManagerConnectionImpl::BatchCreateRepositories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchCreateRepositories(request), + [this](grpc::ClientContext& context, Options const& options, + google::devtools::cloudbuild::v2:: + BatchCreateRepositoriesRequest const& request) { + return stub_->BatchCreateRepositories(context, options, request); + }, + *current, request, __func__); +} + +future< + StatusOr> +RepositoryManagerConnectionImpl::BatchCreateRepositories( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to BatchCreateRepositories", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::cloudbuild::v2::BatchCreateRepositoriesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::devtools::cloudbuild::v2::BatchCreateRepositoriesResponse>, + polling_policy(*current), __func__); +} + StatusOr RepositoryManagerConnectionImpl::GetRepository( google::devtools::cloudbuild::v2::GetRepositoryRequest const& request) { @@ -408,6 +685,61 @@ RepositoryManagerConnectionImpl::DeleteRepository( polling_policy(*current), __func__); } +StatusOr +RepositoryManagerConnectionImpl::DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteRepository(request), + [this](grpc::ClientContext& context, Options const& options, + google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& + request) { + return stub_->DeleteRepository(context, options, request); + }, + *current, request, __func__); +} + +future> +RepositoryManagerConnectionImpl::DeleteRepository( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteRepository", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::devtools::cloudbuild::v2::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::devtools::cloudbuild::v2::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr RepositoryManagerConnectionImpl::FetchReadWriteToken( google::devtools::cloudbuild::v2::FetchReadWriteTokenRequest const& diff --git a/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.h b/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.h index 2e052b47652b6..616e16ebfaf6d 100644 --- a/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.h +++ b/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.h @@ -57,6 +57,15 @@ class RepositoryManagerConnectionImpl google::devtools::cloudbuild::v2::CreateConnectionRequest const& request) override; + StatusOr CreateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::CreateConnectionRequest const& request) + override; + + future> + CreateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetConnection( google::devtools::cloudbuild::v2::GetConnectionRequest const& request) override; @@ -70,22 +79,60 @@ class RepositoryManagerConnectionImpl google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request) override; + StatusOr UpdateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request) + override; + + future> + UpdateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteConnection( google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request) override; + StatusOr DeleteConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request) + override; + + future> + DeleteConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateRepository( google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request) override; + StatusOr CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request) + override; + + future> + CreateRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchCreateRepositories( google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& request) override; + StatusOr BatchCreateRepositories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& + request) override; + + future> + BatchCreateRepositories( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetRepository( google::devtools::cloudbuild::v2::GetRepositoryRequest const& request) override; @@ -99,6 +146,15 @@ class RepositoryManagerConnectionImpl google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request) override; + StatusOr DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request) + override; + + future> + DeleteRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr FetchReadWriteToken( google::devtools::cloudbuild::v2::FetchReadWriteTokenRequest const& diff --git a/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.cc b/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.cc index 5409f1f0782cf..85061e1e8fefb 100644 --- a/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.cc +++ b/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.cc @@ -42,6 +42,30 @@ RepositoryManagerTracingConnection::CreateConnection( return internal::EndSpan(std::move(span), child_->CreateConnection(request)); } +StatusOr +RepositoryManagerTracingConnection::CreateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::CreateConnectionRequest const& request) { + auto span = internal::MakeSpan( + "cloudbuild_v2::RepositoryManagerConnection::CreateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateConnection(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RepositoryManagerTracingConnection::CreateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "cloudbuild_v2::RepositoryManagerConnection::CreateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateConnection(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RepositoryManagerTracingConnection::GetConnection( google::devtools::cloudbuild::v2::GetConnectionRequest const& request) { @@ -72,6 +96,30 @@ RepositoryManagerTracingConnection::UpdateConnection( return internal::EndSpan(std::move(span), child_->UpdateConnection(request)); } +StatusOr +RepositoryManagerTracingConnection::UpdateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request) { + auto span = internal::MakeSpan( + "cloudbuild_v2::RepositoryManagerConnection::UpdateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateConnection(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RepositoryManagerTracingConnection::UpdateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "cloudbuild_v2::RepositoryManagerConnection::UpdateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateConnection(google::cloud::ExperimentalTag{}, operation)); +} + future> RepositoryManagerTracingConnection::DeleteConnection( google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request) { @@ -81,6 +129,30 @@ RepositoryManagerTracingConnection::DeleteConnection( return internal::EndSpan(std::move(span), child_->DeleteConnection(request)); } +StatusOr +RepositoryManagerTracingConnection::DeleteConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request) { + auto span = internal::MakeSpan( + "cloudbuild_v2::RepositoryManagerConnection::DeleteConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteConnection(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RepositoryManagerTracingConnection::DeleteConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "cloudbuild_v2::RepositoryManagerConnection::DeleteConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteConnection(google::cloud::ExperimentalTag{}, operation)); +} + future> RepositoryManagerTracingConnection::CreateRepository( google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request) { @@ -90,6 +162,30 @@ RepositoryManagerTracingConnection::CreateRepository( return internal::EndSpan(std::move(span), child_->CreateRepository(request)); } +StatusOr +RepositoryManagerTracingConnection::CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request) { + auto span = internal::MakeSpan( + "cloudbuild_v2::RepositoryManagerConnection::CreateRepository"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateRepository(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RepositoryManagerTracingConnection::CreateRepository( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "cloudbuild_v2::RepositoryManagerConnection::CreateRepository"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateRepository(google::cloud::ExperimentalTag{}, operation)); +} + future< StatusOr> RepositoryManagerTracingConnection::BatchCreateRepositories( @@ -102,6 +198,32 @@ RepositoryManagerTracingConnection::BatchCreateRepositories( child_->BatchCreateRepositories(request)); } +StatusOr +RepositoryManagerTracingConnection::BatchCreateRepositories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& + request) { + auto span = internal::MakeSpan( + "cloudbuild_v2::RepositoryManagerConnection::BatchCreateRepositories"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->BatchCreateRepositories( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future< + StatusOr> +RepositoryManagerTracingConnection::BatchCreateRepositories( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "cloudbuild_v2::RepositoryManagerConnection::BatchCreateRepositories"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->BatchCreateRepositories( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RepositoryManagerTracingConnection::GetRepository( google::devtools::cloudbuild::v2::GetRepositoryRequest const& request) { @@ -132,6 +254,30 @@ RepositoryManagerTracingConnection::DeleteRepository( return internal::EndSpan(std::move(span), child_->DeleteRepository(request)); } +StatusOr +RepositoryManagerTracingConnection::DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request) { + auto span = internal::MakeSpan( + "cloudbuild_v2::RepositoryManagerConnection::DeleteRepository"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteRepository(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RepositoryManagerTracingConnection::DeleteRepository( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "cloudbuild_v2::RepositoryManagerConnection::DeleteRepository"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteRepository(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RepositoryManagerTracingConnection::FetchReadWriteToken( google::devtools::cloudbuild::v2::FetchReadWriteTokenRequest const& diff --git a/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.h b/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.h index e26a23953c05b..4e777a34392be 100644 --- a/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.h +++ b/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.h @@ -45,6 +45,15 @@ class RepositoryManagerTracingConnection google::devtools::cloudbuild::v2::CreateConnectionRequest const& request) override; + StatusOr CreateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::CreateConnectionRequest const& request) + override; + + future> + CreateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetConnection( google::devtools::cloudbuild::v2::GetConnectionRequest const& request) override; @@ -58,22 +67,60 @@ class RepositoryManagerTracingConnection google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request) override; + StatusOr UpdateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request) + override; + + future> + UpdateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteConnection( google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request) override; + StatusOr DeleteConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request) + override; + + future> + DeleteConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateRepository( google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request) override; + StatusOr CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request) + override; + + future> + CreateRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchCreateRepositories( google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& request) override; + StatusOr BatchCreateRepositories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& + request) override; + + future> + BatchCreateRepositories( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetRepository( google::devtools::cloudbuild::v2::GetRepositoryRequest const& request) override; @@ -87,6 +134,15 @@ class RepositoryManagerTracingConnection google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request) override; + StatusOr DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request) + override; + + future> + DeleteRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr FetchReadWriteToken( google::devtools::cloudbuild::v2::FetchReadWriteTokenRequest const& diff --git a/google/cloud/cloudbuild/v2/mocks/mock_repository_manager_connection.h b/google/cloud/cloudbuild/v2/mocks/mock_repository_manager_connection.h index 8d26deb075471..9e2584c2b1a61 100644 --- a/google/cloud/cloudbuild/v2/mocks/mock_repository_manager_connection.h +++ b/google/cloud/cloudbuild/v2/mocks/mock_repository_manager_connection.h @@ -53,6 +53,18 @@ class MockRepositoryManagerConnection request), (override)); + MOCK_METHOD(StatusOr, CreateConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::CreateConnectionRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetConnection, (google::devtools::cloudbuild::v2::GetConnectionRequest const& request), @@ -70,6 +82,18 @@ class MockRepositoryManagerConnection request), (override)); + MOCK_METHOD(StatusOr, UpdateConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::UpdateConnectionRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteConnection, @@ -77,12 +101,37 @@ class MockRepositoryManagerConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::DeleteConnectionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, CreateRepository, (google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateRepository, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::CreateRepositoryRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateRepository, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -91,6 +140,21 @@ class MockRepositoryManagerConnection request), (override)); + MOCK_METHOD( + StatusOr, BatchCreateRepositories, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + BatchCreateRepositories, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetRepository, (google::devtools::cloudbuild::v2::GetRepositoryRequest const& request), @@ -109,6 +173,19 @@ class MockRepositoryManagerConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteRepository, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteRepository, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, FetchReadWriteToken, diff --git a/google/cloud/cloudbuild/v2/repository_manager_connection.cc b/google/cloud/cloudbuild/v2/repository_manager_connection.cc index 096fd451f4ecc..c5f59da1b35d3 100644 --- a/google/cloud/cloudbuild/v2/repository_manager_connection.cc +++ b/google/cloud/cloudbuild/v2/repository_manager_connection.cc @@ -46,6 +46,22 @@ RepositoryManagerConnection::CreateConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RepositoryManagerConnection::CreateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::CreateConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RepositoryManagerConnection::CreateConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RepositoryManagerConnection::GetConnection( google::devtools::cloudbuild::v2::GetConnectionRequest const&) { @@ -68,6 +84,22 @@ RepositoryManagerConnection::UpdateConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RepositoryManagerConnection::UpdateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::UpdateConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RepositoryManagerConnection::UpdateConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RepositoryManagerConnection::DeleteConnection( google::devtools::cloudbuild::v2::DeleteConnectionRequest const&) { @@ -76,6 +108,22 @@ RepositoryManagerConnection::DeleteConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RepositoryManagerConnection::DeleteConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::DeleteConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RepositoryManagerConnection::DeleteConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RepositoryManagerConnection::CreateRepository( google::devtools::cloudbuild::v2::CreateRepositoryRequest const&) { @@ -84,6 +132,22 @@ RepositoryManagerConnection::CreateRepository( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RepositoryManagerConnection::CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::CreateRepositoryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RepositoryManagerConnection::CreateRepository( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future< StatusOr> RepositoryManagerConnection::BatchCreateRepositories( @@ -93,6 +157,23 @@ RepositoryManagerConnection::BatchCreateRepositories( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RepositoryManagerConnection::BatchCreateRepositories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future< + StatusOr> +RepositoryManagerConnection::BatchCreateRepositories( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RepositoryManagerConnection::GetRepository( google::devtools::cloudbuild::v2::GetRepositoryRequest const&) { @@ -115,6 +196,22 @@ RepositoryManagerConnection::DeleteRepository( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RepositoryManagerConnection::DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::DeleteRepositoryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RepositoryManagerConnection::DeleteRepository( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RepositoryManagerConnection::FetchReadWriteToken( google::devtools::cloudbuild::v2::FetchReadWriteTokenRequest const&) { diff --git a/google/cloud/cloudbuild/v2/repository_manager_connection.h b/google/cloud/cloudbuild/v2/repository_manager_connection.h index 06373e556dec3..50152e8928708 100644 --- a/google/cloud/cloudbuild/v2/repository_manager_connection.h +++ b/google/cloud/cloudbuild/v2/repository_manager_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/cloudbuild/v2/internal/repository_manager_retry_traits.h" #include "google/cloud/cloudbuild/v2/repository_manager_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -191,6 +193,14 @@ class RepositoryManagerConnection { CreateConnection( google::devtools::cloudbuild::v2::CreateConnectionRequest const& request); + virtual StatusOr CreateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::CreateConnectionRequest const& request); + + virtual future> + CreateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetConnection( google::devtools::cloudbuild::v2::GetConnectionRequest const& request); @@ -202,20 +212,54 @@ class RepositoryManagerConnection { UpdateConnection( google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request); + virtual StatusOr UpdateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request); + + virtual future> + UpdateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteConnection( google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request); + virtual StatusOr DeleteConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request); + + virtual future> + DeleteConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateRepository( google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request); + virtual StatusOr CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request); + + virtual future> + CreateRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> BatchCreateRepositories( google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& request); + virtual StatusOr BatchCreateRepositories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& + request); + + virtual future> + BatchCreateRepositories(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetRepository( google::devtools::cloudbuild::v2::GetRepositoryRequest const& request); @@ -227,6 +271,14 @@ class RepositoryManagerConnection { DeleteRepository( google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request); + virtual StatusOr DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request); + + virtual future> + DeleteRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::devtools::cloudbuild::v2::FetchReadWriteTokenResponse> FetchReadWriteToken( diff --git a/google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_core_connection.h b/google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_core_connection.h index 239dbe023d8f5..fca30ff226d94 100644 --- a/google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_core_connection.h +++ b/google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_core_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_core_connection_idempotency_policy.h" #include "google/cloud/cloudcontrolspartner/v1/internal/cloud_controls_partner_core_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_monitoring_connection.h b/google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_monitoring_connection.h index 1189f591d077c..3ff4911475a21 100644 --- a/google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_monitoring_connection.h +++ b/google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_monitoring_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_monitoring_connection_idempotency_policy.h" #include "google/cloud/cloudcontrolspartner/v1/internal/cloud_controls_partner_monitoring_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/cloudquotas/v1/cloud_quotas_connection.h b/google/cloud/cloudquotas/v1/cloud_quotas_connection.h index 917d43bd1c271..c3cbfe7d9f1f1 100644 --- a/google/cloud/cloudquotas/v1/cloud_quotas_connection.h +++ b/google/cloud/cloudquotas/v1/cloud_quotas_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/cloudquotas/v1/cloud_quotas_connection_idempotency_policy.h" #include "google/cloud/cloudquotas/v1/internal/cloud_quotas_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection.cc b/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection.cc index 08b162fa645a2..ed9569f4f3223 100644 --- a/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection.cc +++ b/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection.cc @@ -49,6 +49,23 @@ ConsumerProcurementServiceConnection::PlaceOrder( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ConsumerProcurementServiceConnection::PlaceOrder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::commerce::consumer::procurement::v1:: + PlaceOrderRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConsumerProcurementServiceConnection::PlaceOrder( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ConsumerProcurementServiceConnection::GetOrder( google::cloud::commerce::consumer::procurement::v1:: diff --git a/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection.h b/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection.h index 4c4f1259243aa..bbd5de2757779 100644 --- a/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection.h +++ b/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection_idempotency_policy.h" #include "google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -210,6 +212,16 @@ class ConsumerProcurementServiceConnection { PlaceOrder(google::cloud::commerce::consumer::procurement::v1:: PlaceOrderRequest const& request); + virtual StatusOr PlaceOrder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::commerce::consumer::procurement::v1:: + PlaceOrderRequest const& request); + + virtual future< + StatusOr> + PlaceOrder(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetOrder( google::cloud::commerce::consumer::procurement::v1::GetOrderRequest const& diff --git a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.cc b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.cc index b6be3fa6a5d30..8d41e3c0bd1c1 100644 --- a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.cc +++ b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.cc @@ -121,6 +121,62 @@ ConsumerProcurementServiceConnectionImpl::PlaceOrder( polling_policy(*current), __func__); } +StatusOr +ConsumerProcurementServiceConnectionImpl::PlaceOrder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::commerce::consumer::procurement::v1::PlaceOrderRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PlaceOrder(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::commerce::consumer::procurement::v1:: + PlaceOrderRequest const& request) { + return stub_->PlaceOrder(context, options, request); + }, + *current, request, __func__); +} + +future> +ConsumerProcurementServiceConnectionImpl::PlaceOrder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to PlaceOrder", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::commerce::consumer::procurement::v1::Order>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::commerce::consumer::procurement::v1::Order>, + polling_policy(*current), __func__); +} + StatusOr ConsumerProcurementServiceConnectionImpl::GetOrder( google::cloud::commerce::consumer::procurement::v1::GetOrderRequest const& diff --git a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.h b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.h index 6d92b1aacb143..b90b24b3e6bf4 100644 --- a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.h +++ b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.h @@ -60,6 +60,15 @@ class ConsumerProcurementServiceConnectionImpl PlaceOrder(google::cloud::commerce::consumer::procurement::v1:: PlaceOrderRequest const& request) override; + StatusOr PlaceOrder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::commerce::consumer::procurement::v1:: + PlaceOrderRequest const& request) override; + + future> + PlaceOrder(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetOrder( google::cloud::commerce::consumer::procurement::v1::GetOrderRequest const& request) override; diff --git a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.cc b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.cc index 6c1c2a8d6edc8..2458a641faa48 100644 --- a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.cc +++ b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.cc @@ -48,6 +48,33 @@ ConsumerProcurementServiceTracingConnection::PlaceOrder( return internal::EndSpan(std::move(span), child_->PlaceOrder(request)); } +StatusOr +ConsumerProcurementServiceTracingConnection::PlaceOrder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::commerce::consumer::procurement::v1::PlaceOrderRequest const& + request) { + auto span = internal::MakeSpan( + "commerce_consumer_procurement_v1::ConsumerProcurementServiceConnection::" + "PlaceOrder"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PlaceOrder(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConsumerProcurementServiceTracingConnection::PlaceOrder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "commerce_consumer_procurement_v1::ConsumerProcurementServiceConnection::" + "PlaceOrder"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PlaceOrder(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ConsumerProcurementServiceTracingConnection::GetOrder( google::cloud::commerce::consumer::procurement::v1::GetOrderRequest const& diff --git a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.h b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.h index b63bad51942a9..7e362d76a9889 100644 --- a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.h +++ b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.h @@ -48,6 +48,15 @@ class ConsumerProcurementServiceTracingConnection PlaceOrder(google::cloud::commerce::consumer::procurement::v1:: PlaceOrderRequest const& request) override; + StatusOr PlaceOrder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::commerce::consumer::procurement::v1:: + PlaceOrderRequest const& request) override; + + future> + PlaceOrder(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetOrder( google::cloud::commerce::consumer::procurement::v1::GetOrderRequest const& request) override; diff --git a/google/cloud/commerce/consumer/procurement/v1/mocks/mock_consumer_procurement_connection.h b/google/cloud/commerce/consumer/procurement/v1/mocks/mock_consumer_procurement_connection.h index 20c6f5693640a..581ca00cb6bcf 100644 --- a/google/cloud/commerce/consumer/procurement/v1/mocks/mock_consumer_procurement_connection.h +++ b/google/cloud/commerce/consumer/procurement/v1/mocks/mock_consumer_procurement_connection.h @@ -57,6 +57,20 @@ class MockConsumerProcurementServiceConnection PlaceOrderRequest const& request), (override)); + MOCK_METHOD(StatusOr, PlaceOrder, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::commerce::consumer::procurement::v1:: + PlaceOrderRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + PlaceOrder, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetOrder, diff --git a/google/cloud/composer/v1/environments_connection.cc b/google/cloud/composer/v1/environments_connection.cc index 9bed78b16d20c..df51545c8066c 100644 --- a/google/cloud/composer/v1/environments_connection.cc +++ b/google/cloud/composer/v1/environments_connection.cc @@ -48,6 +48,24 @@ EnvironmentsConnection::CreateEnvironment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EnvironmentsConnection::CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + CreateEnvironmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future< + StatusOr> +EnvironmentsConnection::CreateEnvironment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr EnvironmentsConnection::GetEnvironment( google::cloud::orchestration::airflow::service::v1:: @@ -73,6 +91,24 @@ EnvironmentsConnection::UpdateEnvironment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EnvironmentsConnection::UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + UpdateEnvironmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future< + StatusOr> +EnvironmentsConnection::UpdateEnvironment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EnvironmentsConnection::DeleteEnvironment( @@ -83,6 +119,24 @@ EnvironmentsConnection::DeleteEnvironment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EnvironmentsConnection::DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + DeleteEnvironmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EnvironmentsConnection::DeleteEnvironment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr EnvironmentsConnection::ExecuteAirflowCommand( @@ -208,6 +262,24 @@ EnvironmentsConnection::SaveSnapshot( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EnvironmentsConnection::SaveSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + SaveSnapshotRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EnvironmentsConnection::SaveSnapshot(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EnvironmentsConnection::LoadSnapshot( @@ -219,6 +291,24 @@ EnvironmentsConnection::LoadSnapshot( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EnvironmentsConnection::LoadSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + LoadSnapshotRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EnvironmentsConnection::LoadSnapshot(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EnvironmentsConnection::DatabaseFailover( @@ -230,6 +320,25 @@ EnvironmentsConnection::DatabaseFailover( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EnvironmentsConnection::DatabaseFailover( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + DatabaseFailoverRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EnvironmentsConnection::DatabaseFailover( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr EnvironmentsConnection::FetchDatabaseProperties( diff --git a/google/cloud/composer/v1/environments_connection.h b/google/cloud/composer/v1/environments_connection.h index 59c5aaf5b5e66..1d177fb9fec32 100644 --- a/google/cloud/composer/v1/environments_connection.h +++ b/google/cloud/composer/v1/environments_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/composer/v1/environments_connection_idempotency_policy.h" #include "google/cloud/composer/v1/internal/environments_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -191,6 +193,16 @@ class EnvironmentsConnection { CreateEnvironment(google::cloud::orchestration::airflow::service::v1:: CreateEnvironmentRequest const& request); + virtual StatusOr CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + CreateEnvironmentRequest const& request); + + virtual future< + StatusOr> + CreateEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::cloud::orchestration::airflow::service::v1::Environment> GetEnvironment(google::cloud::orchestration::airflow::service::v1:: @@ -206,11 +218,31 @@ class EnvironmentsConnection { UpdateEnvironment(google::cloud::orchestration::airflow::service::v1:: UpdateEnvironmentRequest const& request); + virtual StatusOr UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + UpdateEnvironmentRequest const& request); + + virtual future< + StatusOr> + UpdateEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteEnvironment(google::cloud::orchestration::airflow::service::v1:: DeleteEnvironmentRequest const& request); + virtual StatusOr DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + DeleteEnvironmentRequest const& request); + + virtual future> + DeleteEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr ExecuteAirflowCommand(google::cloud::orchestration::airflow::service::v1:: @@ -291,16 +323,46 @@ class EnvironmentsConnection { SaveSnapshot(google::cloud::orchestration::airflow::service::v1:: SaveSnapshotRequest const& request); + virtual StatusOr SaveSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + SaveSnapshotRequest const& request); + + virtual future> + SaveSnapshot(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> LoadSnapshot(google::cloud::orchestration::airflow::service::v1:: LoadSnapshotRequest const& request); + virtual StatusOr LoadSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + LoadSnapshotRequest const& request); + + virtual future> + LoadSnapshot(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DatabaseFailover(google::cloud::orchestration::airflow::service::v1:: DatabaseFailoverRequest const& request); + virtual StatusOr DatabaseFailover( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + DatabaseFailoverRequest const& request); + + virtual future> + DatabaseFailover(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr FetchDatabaseProperties(google::cloud::orchestration::airflow::service::v1:: diff --git a/google/cloud/composer/v1/image_versions_connection.h b/google/cloud/composer/v1/image_versions_connection.h index cd883f8230410..1b492f02ab0a0 100644 --- a/google/cloud/composer/v1/image_versions_connection.h +++ b/google/cloud/composer/v1/image_versions_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/composer/v1/image_versions_connection_idempotency_policy.h" #include "google/cloud/composer/v1/internal/image_versions_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/composer/v1/internal/environments_connection_impl.cc b/google/cloud/composer/v1/internal/environments_connection_impl.cc index dd8f1b86e0993..c912e897ae3a1 100644 --- a/google/cloud/composer/v1/internal/environments_connection_impl.cc +++ b/google/cloud/composer/v1/internal/environments_connection_impl.cc @@ -105,6 +105,63 @@ EnvironmentsConnectionImpl::CreateEnvironment( polling_policy(*current), __func__); } +StatusOr +EnvironmentsConnectionImpl::CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + CreateEnvironmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateEnvironment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::orchestration::airflow::service::v1:: + CreateEnvironmentRequest const& request) { + return stub_->CreateEnvironment(context, options, request); + }, + *current, request, __func__); +} + +future< + StatusOr> +EnvironmentsConnectionImpl::CreateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateEnvironment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::orchestration::airflow::service::v1::Environment>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::orchestration::airflow::service::v1::Environment>, + polling_policy(*current), __func__); +} + StatusOr EnvironmentsConnectionImpl::GetEnvironment( google::cloud::orchestration::airflow::service::v1:: @@ -200,6 +257,63 @@ EnvironmentsConnectionImpl::UpdateEnvironment( polling_policy(*current), __func__); } +StatusOr +EnvironmentsConnectionImpl::UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + UpdateEnvironmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateEnvironment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::orchestration::airflow::service::v1:: + UpdateEnvironmentRequest const& request) { + return stub_->UpdateEnvironment(context, options, request); + }, + *current, request, __func__); +} + +future< + StatusOr> +EnvironmentsConnectionImpl::UpdateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateEnvironment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::orchestration::airflow::service::v1::Environment>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::orchestration::airflow::service::v1::Environment>, + polling_policy(*current), __func__); +} + future> EnvironmentsConnectionImpl::DeleteEnvironment( @@ -242,6 +356,64 @@ EnvironmentsConnectionImpl::DeleteEnvironment( polling_policy(*current), __func__); } +StatusOr +EnvironmentsConnectionImpl::DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + DeleteEnvironmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteEnvironment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::orchestration::airflow::service::v1:: + DeleteEnvironmentRequest const& request) { + return stub_->DeleteEnvironment(context, options, request); + }, + *current, request, __func__); +} + +future> +EnvironmentsConnectionImpl::DeleteEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteEnvironment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::orchestration::airflow::service::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::orchestration::airflow::service::v1:: + OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr EnvironmentsConnectionImpl::ExecuteAirflowCommand( @@ -589,6 +761,64 @@ EnvironmentsConnectionImpl::SaveSnapshot( polling_policy(*current), __func__); } +StatusOr +EnvironmentsConnectionImpl::SaveSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + SaveSnapshotRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SaveSnapshot(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::orchestration::airflow::service::v1:: + SaveSnapshotRequest const& request) { + return stub_->SaveSnapshot(context, options, request); + }, + *current, request, __func__); +} + +future> +EnvironmentsConnectionImpl::SaveSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to SaveSnapshot", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::orchestration::airflow::service::v1::SaveSnapshotResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::orchestration::airflow::service::v1:: + SaveSnapshotResponse>, + polling_policy(*current), __func__); +} + future> EnvironmentsConnectionImpl::LoadSnapshot( @@ -631,6 +861,64 @@ EnvironmentsConnectionImpl::LoadSnapshot( polling_policy(*current), __func__); } +StatusOr +EnvironmentsConnectionImpl::LoadSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + LoadSnapshotRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->LoadSnapshot(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::orchestration::airflow::service::v1:: + LoadSnapshotRequest const& request) { + return stub_->LoadSnapshot(context, options, request); + }, + *current, request, __func__); +} + +future> +EnvironmentsConnectionImpl::LoadSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to LoadSnapshot", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::orchestration::airflow::service::v1::LoadSnapshotResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::orchestration::airflow::service::v1:: + LoadSnapshotResponse>, + polling_policy(*current), __func__); +} + future> EnvironmentsConnectionImpl::DatabaseFailover( @@ -674,6 +962,66 @@ EnvironmentsConnectionImpl::DatabaseFailover( polling_policy(*current), __func__); } +StatusOr +EnvironmentsConnectionImpl::DatabaseFailover( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + DatabaseFailoverRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DatabaseFailover(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::orchestration::airflow::service::v1:: + DatabaseFailoverRequest const& request) { + return stub_->DatabaseFailover(context, options, request); + }, + *current, request, __func__); +} + +future> +EnvironmentsConnectionImpl::DatabaseFailover( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DatabaseFailover", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::orchestration::airflow::service::v1:: + DatabaseFailoverResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::orchestration::airflow::service::v1:: + DatabaseFailoverResponse>, + polling_policy(*current), __func__); +} + StatusOr EnvironmentsConnectionImpl::FetchDatabaseProperties( diff --git a/google/cloud/composer/v1/internal/environments_connection_impl.h b/google/cloud/composer/v1/internal/environments_connection_impl.h index 9b3abacf51081..0a9e48ac00928 100644 --- a/google/cloud/composer/v1/internal/environments_connection_impl.h +++ b/google/cloud/composer/v1/internal/environments_connection_impl.h @@ -56,6 +56,16 @@ class EnvironmentsConnectionImpl : public composer_v1::EnvironmentsConnection { CreateEnvironment(google::cloud::orchestration::airflow::service::v1:: CreateEnvironmentRequest const& request) override; + StatusOr CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + CreateEnvironmentRequest const& request) override; + + future< + StatusOr> + CreateEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetEnvironment(google::cloud::orchestration::airflow::service::v1:: GetEnvironmentRequest const& request) override; @@ -69,11 +79,31 @@ class EnvironmentsConnectionImpl : public composer_v1::EnvironmentsConnection { UpdateEnvironment(google::cloud::orchestration::airflow::service::v1:: UpdateEnvironmentRequest const& request) override; + StatusOr UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + UpdateEnvironmentRequest const& request) override; + + future< + StatusOr> + UpdateEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEnvironment(google::cloud::orchestration::airflow::service::v1:: DeleteEnvironmentRequest const& request) override; + StatusOr DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + DeleteEnvironmentRequest const& request) override; + + future> + DeleteEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ExecuteAirflowCommand( @@ -157,16 +187,46 @@ class EnvironmentsConnectionImpl : public composer_v1::EnvironmentsConnection { SaveSnapshot(google::cloud::orchestration::airflow::service::v1:: SaveSnapshotRequest const& request) override; + StatusOr SaveSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + SaveSnapshotRequest const& request) override; + + future> + SaveSnapshot(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> LoadSnapshot(google::cloud::orchestration::airflow::service::v1:: LoadSnapshotRequest const& request) override; + StatusOr LoadSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + LoadSnapshotRequest const& request) override; + + future> + LoadSnapshot(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DatabaseFailover(google::cloud::orchestration::airflow::service::v1:: DatabaseFailoverRequest const& request) override; + StatusOr DatabaseFailover( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + DatabaseFailoverRequest const& request) override; + + future> + DatabaseFailover(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr FetchDatabaseProperties( diff --git a/google/cloud/composer/v1/internal/environments_tracing_connection.cc b/google/cloud/composer/v1/internal/environments_tracing_connection.cc index d17b7b8d9e42d..561d4bb339f74 100644 --- a/google/cloud/composer/v1/internal/environments_tracing_connection.cc +++ b/google/cloud/composer/v1/internal/environments_tracing_connection.cc @@ -44,6 +44,32 @@ EnvironmentsTracingConnection::CreateEnvironment( return internal::EndSpan(std::move(span), child_->CreateEnvironment(request)); } +StatusOr +EnvironmentsTracingConnection::CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + CreateEnvironmentRequest const& request) { + auto span = internal::MakeSpan( + "composer_v1::EnvironmentsConnection::CreateEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateEnvironment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future< + StatusOr> +EnvironmentsTracingConnection::CreateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "composer_v1::EnvironmentsConnection::CreateEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateEnvironment(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr EnvironmentsTracingConnection::GetEnvironment( google::cloud::orchestration::airflow::service::v1:: @@ -78,6 +104,32 @@ EnvironmentsTracingConnection::UpdateEnvironment( return internal::EndSpan(std::move(span), child_->UpdateEnvironment(request)); } +StatusOr +EnvironmentsTracingConnection::UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + UpdateEnvironmentRequest const& request) { + auto span = internal::MakeSpan( + "composer_v1::EnvironmentsConnection::UpdateEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateEnvironment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future< + StatusOr> +EnvironmentsTracingConnection::UpdateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "composer_v1::EnvironmentsConnection::UpdateEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateEnvironment(google::cloud::ExperimentalTag{}, operation)); +} + future> EnvironmentsTracingConnection::DeleteEnvironment( @@ -89,6 +141,32 @@ EnvironmentsTracingConnection::DeleteEnvironment( return internal::EndSpan(std::move(span), child_->DeleteEnvironment(request)); } +StatusOr +EnvironmentsTracingConnection::DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + DeleteEnvironmentRequest const& request) { + auto span = internal::MakeSpan( + "composer_v1::EnvironmentsConnection::DeleteEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteEnvironment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EnvironmentsTracingConnection::DeleteEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "composer_v1::EnvironmentsConnection::DeleteEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteEnvironment(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr EnvironmentsTracingConnection::ExecuteAirflowCommand( @@ -263,6 +341,32 @@ EnvironmentsTracingConnection::SaveSnapshot( return internal::EndSpan(std::move(span), child_->SaveSnapshot(request)); } +StatusOr +EnvironmentsTracingConnection::SaveSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + SaveSnapshotRequest const& request) { + auto span = + internal::MakeSpan("composer_v1::EnvironmentsConnection::SaveSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SaveSnapshot(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EnvironmentsTracingConnection::SaveSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("composer_v1::EnvironmentsConnection::SaveSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SaveSnapshot(google::cloud::ExperimentalTag{}, operation)); +} + future> EnvironmentsTracingConnection::LoadSnapshot( @@ -274,6 +378,32 @@ EnvironmentsTracingConnection::LoadSnapshot( return internal::EndSpan(std::move(span), child_->LoadSnapshot(request)); } +StatusOr +EnvironmentsTracingConnection::LoadSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + LoadSnapshotRequest const& request) { + auto span = + internal::MakeSpan("composer_v1::EnvironmentsConnection::LoadSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->LoadSnapshot(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EnvironmentsTracingConnection::LoadSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("composer_v1::EnvironmentsConnection::LoadSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->LoadSnapshot(google::cloud::ExperimentalTag{}, operation)); +} + future> EnvironmentsTracingConnection::DatabaseFailover( @@ -285,6 +415,32 @@ EnvironmentsTracingConnection::DatabaseFailover( return internal::EndSpan(std::move(span), child_->DatabaseFailover(request)); } +StatusOr +EnvironmentsTracingConnection::DatabaseFailover( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + DatabaseFailoverRequest const& request) { + auto span = internal::MakeSpan( + "composer_v1::EnvironmentsConnection::DatabaseFailover"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DatabaseFailover(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EnvironmentsTracingConnection::DatabaseFailover( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "composer_v1::EnvironmentsConnection::DatabaseFailover"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DatabaseFailover(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr EnvironmentsTracingConnection::FetchDatabaseProperties( diff --git a/google/cloud/composer/v1/internal/environments_tracing_connection.h b/google/cloud/composer/v1/internal/environments_tracing_connection.h index db1384284abd5..9ea1e4c8e9160 100644 --- a/google/cloud/composer/v1/internal/environments_tracing_connection.h +++ b/google/cloud/composer/v1/internal/environments_tracing_connection.h @@ -45,6 +45,16 @@ class EnvironmentsTracingConnection CreateEnvironment(google::cloud::orchestration::airflow::service::v1:: CreateEnvironmentRequest const& request) override; + StatusOr CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + CreateEnvironmentRequest const& request) override; + + future< + StatusOr> + CreateEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetEnvironment(google::cloud::orchestration::airflow::service::v1:: GetEnvironmentRequest const& request) override; @@ -58,11 +68,31 @@ class EnvironmentsTracingConnection UpdateEnvironment(google::cloud::orchestration::airflow::service::v1:: UpdateEnvironmentRequest const& request) override; + StatusOr UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + UpdateEnvironmentRequest const& request) override; + + future< + StatusOr> + UpdateEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEnvironment(google::cloud::orchestration::airflow::service::v1:: DeleteEnvironmentRequest const& request) override; + StatusOr DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + DeleteEnvironmentRequest const& request) override; + + future> + DeleteEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ExecuteAirflowCommand( @@ -146,16 +176,46 @@ class EnvironmentsTracingConnection SaveSnapshot(google::cloud::orchestration::airflow::service::v1:: SaveSnapshotRequest const& request) override; + StatusOr SaveSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + SaveSnapshotRequest const& request) override; + + future> + SaveSnapshot(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> LoadSnapshot(google::cloud::orchestration::airflow::service::v1:: LoadSnapshotRequest const& request) override; + StatusOr LoadSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + LoadSnapshotRequest const& request) override; + + future> + LoadSnapshot(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DatabaseFailover(google::cloud::orchestration::airflow::service::v1:: DatabaseFailoverRequest const& request) override; + StatusOr DatabaseFailover( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + DatabaseFailoverRequest const& request) override; + + future> + DatabaseFailover(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr FetchDatabaseProperties( diff --git a/google/cloud/composer/v1/mocks/mock_environments_connection.h b/google/cloud/composer/v1/mocks/mock_environments_connection.h index 9ca7cc9cbb366..82cf7044a99e8 100644 --- a/google/cloud/composer/v1/mocks/mock_environments_connection.h +++ b/google/cloud/composer/v1/mocks/mock_environments_connection.h @@ -54,6 +54,20 @@ class MockEnvironmentsConnection : public composer_v1::EnvironmentsConnection { CreateEnvironmentRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateEnvironment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + CreateEnvironmentRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateEnvironment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetEnvironment, @@ -77,6 +91,20 @@ class MockEnvironmentsConnection : public composer_v1::EnvironmentsConnection { UpdateEnvironmentRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateEnvironment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + UpdateEnvironmentRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UpdateEnvironment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteEnvironment, @@ -84,6 +112,19 @@ class MockEnvironmentsConnection : public composer_v1::EnvironmentsConnection { DeleteEnvironmentRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteEnvironment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + DeleteEnvironmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteEnvironment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, ExecuteAirflowCommand, @@ -186,6 +227,19 @@ class MockEnvironmentsConnection : public composer_v1::EnvironmentsConnection { SaveSnapshotRequest const& request), (override)); + MOCK_METHOD(StatusOr, SaveSnapshot, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + SaveSnapshotRequest const& request), + (override)); + + MOCK_METHOD(future>, + SaveSnapshot, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, LoadSnapshot, @@ -193,6 +247,19 @@ class MockEnvironmentsConnection : public composer_v1::EnvironmentsConnection { LoadSnapshotRequest const& request), (override)); + MOCK_METHOD(StatusOr, LoadSnapshot, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + LoadSnapshotRequest const& request), + (override)); + + MOCK_METHOD(future>, + LoadSnapshot, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DatabaseFailover, @@ -200,6 +267,19 @@ class MockEnvironmentsConnection : public composer_v1::EnvironmentsConnection { DatabaseFailoverRequest const& request), (override)); + MOCK_METHOD(StatusOr, DatabaseFailover, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::orchestration::airflow::service::v1:: + DatabaseFailoverRequest const& request), + (override)); + + MOCK_METHOD(future>, + DatabaseFailover, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, FetchDatabaseProperties, diff --git a/google/cloud/compute/accelerator_types/v1/accelerator_types_connection.h b/google/cloud/compute/accelerator_types/v1/accelerator_types_connection.h index a02435242f742..71049b441db85 100644 --- a/google/cloud/compute/accelerator_types/v1/accelerator_types_connection.h +++ b/google/cloud/compute/accelerator_types/v1/accelerator_types_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/accelerator_types/v1/accelerator_types_connection_idempotency_policy.h" #include "google/cloud/compute/accelerator_types/v1/internal/accelerator_types_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/compute/addresses/v1/addresses_connection.cc b/google/cloud/compute/addresses/v1/addresses_connection.cc index 7c35f19a18309..79475037b4aef 100644 --- a/google/cloud/compute/addresses/v1/addresses_connection.cc +++ b/google/cloud/compute/addresses/v1/addresses_connection.cc @@ -54,6 +54,23 @@ AddressesConnection::DeleteAddress( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AddressesConnection::DeleteAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AddressesConnection::DeleteAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AddressesConnection::GetAddress( google::cloud::cpp::compute::addresses::v1::GetAddressRequest const&) { @@ -68,6 +85,23 @@ AddressesConnection::InsertAddress( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AddressesConnection::InsertAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AddressesConnection::InsertAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange AddressesConnection::ListAddresses( google::cloud::cpp::compute::addresses::v1:: @@ -84,6 +118,21 @@ AddressesConnection::Move( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AddressesConnection::Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::MoveRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AddressesConnection::Move(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AddressesConnection::SetLabels( google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const&) { @@ -92,6 +141,23 @@ AddressesConnection::SetLabels( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AddressesConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AddressesConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_addresses_v1 } // namespace cloud diff --git a/google/cloud/compute/addresses/v1/addresses_connection.h b/google/cloud/compute/addresses/v1/addresses_connection.h index 89cbb4bfe1e62..241fae024be2d 100644 --- a/google/cloud/compute/addresses/v1/addresses_connection.h +++ b/google/cloud/compute/addresses/v1/addresses_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/addresses/v1/addresses_connection_idempotency_policy.h" #include "google/cloud/compute/addresses/v1/internal/addresses_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -194,6 +196,15 @@ class AddressesConnection { google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const& request); + virtual StatusOr DeleteAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const& + request); + + virtual future> + DeleteAddress(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetAddress( google::cloud::cpp::compute::addresses::v1::GetAddressRequest const& request); @@ -203,15 +214,41 @@ class AddressesConnection { google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const& request); + virtual StatusOr InsertAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const& + request); + + virtual future> + InsertAddress(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListAddresses( google::cloud::cpp::compute::addresses::v1::ListAddressesRequest request); virtual future> Move( google::cloud::cpp::compute::addresses::v1::MoveRequest const& request); + virtual StatusOr Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::MoveRequest const& request); + + virtual future> Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetLabels(google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& request); + + virtual StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& + request); + + virtual future> + SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/addresses/v1/internal/addresses_rest_connection_impl.cc b/google/cloud/compute/addresses/v1/internal/addresses_rest_connection_impl.cc index 373d1c3f5adb4..ed38bd7db81ef 100644 --- a/google/cloud/compute/addresses/v1/internal/addresses_rest_connection_impl.cc +++ b/google/cloud/compute/addresses/v1/internal/addresses_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -142,6 +143,79 @@ AddressesRestConnectionImpl::DeleteAddress( }); } +StatusOr +AddressesRestConnectionImpl::DeleteAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAddress(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::addresses::v1:: + DeleteAddressRequest const& request) { + return stub_->DeleteAddress(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +AddressesRestConnectionImpl::DeleteAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr AddressesRestConnectionImpl::GetAddress( google::cloud::cpp::compute::addresses::v1::GetAddressRequest const& @@ -219,6 +293,79 @@ AddressesRestConnectionImpl::InsertAddress( }); } +StatusOr +AddressesRestConnectionImpl::InsertAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertAddress(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::addresses::v1:: + InsertAddressRequest const& request) { + return stub_->InsertAddress(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +AddressesRestConnectionImpl::InsertAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange AddressesRestConnectionImpl::ListAddresses( google::cloud::cpp::compute::addresses::v1::ListAddressesRequest request) { @@ -314,6 +461,78 @@ AddressesRestConnectionImpl::Move( }); } +StatusOr +AddressesRestConnectionImpl::Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::MoveRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Move(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::addresses::v1::MoveRequest const& + request) { + return stub_->Move(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +AddressesRestConnectionImpl::Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> AddressesRestConnectionImpl::SetLabels( google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& @@ -375,6 +594,79 @@ AddressesRestConnectionImpl::SetLabels( }); } +StatusOr +AddressesRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& + request) { + return stub_->SetLabels(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +AddressesRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_addresses_v1_internal } // namespace cloud diff --git a/google/cloud/compute/addresses/v1/internal/addresses_rest_connection_impl.h b/google/cloud/compute/addresses/v1/internal/addresses_rest_connection_impl.h index 3d1ba3058404e..d7b1512e99f12 100644 --- a/google/cloud/compute/addresses/v1/internal/addresses_rest_connection_impl.h +++ b/google/cloud/compute/addresses/v1/internal/addresses_rest_connection_impl.h @@ -60,6 +60,15 @@ class AddressesRestConnectionImpl google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const& request) override; + StatusOr DeleteAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const& + request) override; + + future> DeleteAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetAddress( google::cloud::cpp::compute::addresses::v1::GetAddressRequest const& request) override; @@ -68,6 +77,15 @@ class AddressesRestConnectionImpl google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const& request) override; + StatusOr InsertAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const& + request) override; + + future> InsertAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListAddresses( google::cloud::cpp::compute::addresses::v1::ListAddressesRequest request) override; @@ -76,10 +94,28 @@ class AddressesRestConnectionImpl google::cloud::cpp::compute::addresses::v1::MoveRequest const& request) override; + StatusOr Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::MoveRequest const& request) + override; + + future> Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetLabels( google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy(Options const& options) { diff --git a/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.cc b/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.cc index 193e7e09bcd36..3666a07ee8e39 100644 --- a/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.cc +++ b/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.cc @@ -57,6 +57,31 @@ AddressesTracingConnection::DeleteAddress( return internal::EndSpan(std::move(span), child_->DeleteAddress(request)); } +StatusOr +AddressesTracingConnection::DeleteAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const& + request) { + auto span = internal::MakeSpan( + "compute_addresses_v1::AddressesConnection::DeleteAddress"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAddress(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AddressesTracingConnection::DeleteAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_addresses_v1::AddressesConnection::DeleteAddress"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAddress(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AddressesTracingConnection::GetAddress( google::cloud::cpp::compute::addresses::v1::GetAddressRequest const& @@ -77,6 +102,31 @@ AddressesTracingConnection::InsertAddress( return internal::EndSpan(std::move(span), child_->InsertAddress(request)); } +StatusOr +AddressesTracingConnection::InsertAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const& + request) { + auto span = internal::MakeSpan( + "compute_addresses_v1::AddressesConnection::InsertAddress"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertAddress(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AddressesTracingConnection::InsertAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_addresses_v1::AddressesConnection::InsertAddress"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertAddress(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange AddressesTracingConnection::ListAddresses( google::cloud::cpp::compute::addresses::v1::ListAddressesRequest request) { @@ -97,6 +147,30 @@ AddressesTracingConnection::Move( return internal::EndSpan(std::move(span), child_->Move(request)); } +StatusOr +AddressesTracingConnection::Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::MoveRequest const& request) { + auto span = + internal::MakeSpan("compute_addresses_v1::AddressesConnection::Move"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, + child_->Move(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AddressesTracingConnection::Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_addresses_v1::AddressesConnection::Move"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Move(google::cloud::ExperimentalTag{}, operation)); +} + future> AddressesTracingConnection::SetLabels( google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& @@ -107,6 +181,31 @@ AddressesTracingConnection::SetLabels( return internal::EndSpan(std::move(span), child_->SetLabels(request)); } +StatusOr +AddressesTracingConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& + request) { + auto span = internal::MakeSpan( + "compute_addresses_v1::AddressesConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AddressesTracingConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_addresses_v1::AddressesConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.h b/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.h index bb6c2dca744fa..e310f8ca98b65 100644 --- a/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.h +++ b/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.h @@ -50,6 +50,15 @@ class AddressesTracingConnection google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const& request) override; + StatusOr DeleteAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const& + request) override; + + future> DeleteAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetAddress( google::cloud::cpp::compute::addresses::v1::GetAddressRequest const& request) override; @@ -58,6 +67,15 @@ class AddressesTracingConnection google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const& request) override; + StatusOr InsertAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const& + request) override; + + future> InsertAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListAddresses( google::cloud::cpp::compute::addresses::v1::ListAddressesRequest request) override; @@ -66,10 +84,28 @@ class AddressesTracingConnection google::cloud::cpp::compute::addresses::v1::MoveRequest const& request) override; + StatusOr Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::MoveRequest const& request) + override; + + future> Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetLabels( google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/addresses/v1/mocks/mock_addresses_connection.h b/google/cloud/compute/addresses/v1/mocks/mock_addresses_connection.h index 6095924888dad..3b6e75b686020 100644 --- a/google/cloud/compute/addresses/v1/mocks/mock_addresses_connection.h +++ b/google/cloud/compute/addresses/v1/mocks/mock_addresses_connection.h @@ -62,6 +62,19 @@ class MockAddressesConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteAddress, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteAddress, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetAddress, (google::cloud::cpp::compute::addresses::v1::GetAddressRequest const& @@ -75,6 +88,19 @@ class MockAddressesConnection request), (override)); + MOCK_METHOD( + StatusOr, InsertAddress, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const& + request), + (override)); + + MOCK_METHOD(future>, + InsertAddress, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListAddresses, (google::cloud::cpp::compute::addresses::v1::ListAddressesRequest @@ -86,11 +112,36 @@ class MockAddressesConnection (google::cloud::cpp::compute::addresses::v1::MoveRequest const& request), (override)); + MOCK_METHOD( + StatusOr, Move, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::MoveRequest const& request), + (override)); + + MOCK_METHOD(future>, + Move, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, SetLabels, (google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, SetLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + SetLabels, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/autoscalers/v1/autoscalers_connection.cc b/google/cloud/compute/autoscalers/v1/autoscalers_connection.cc index a182926f4099f..27f70a70f2d23 100644 --- a/google/cloud/compute/autoscalers/v1/autoscalers_connection.cc +++ b/google/cloud/compute/autoscalers/v1/autoscalers_connection.cc @@ -55,6 +55,24 @@ AutoscalersConnection::DeleteAutoscaler( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AutoscalersConnection::DeleteAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + DeleteAutoscalerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AutoscalersConnection::DeleteAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AutoscalersConnection::GetAutoscaler( google::cloud::cpp::compute::autoscalers::v1::GetAutoscalerRequest const&) { @@ -70,6 +88,24 @@ AutoscalersConnection::InsertAutoscaler( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AutoscalersConnection::InsertAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + InsertAutoscalerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AutoscalersConnection::InsertAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange AutoscalersConnection::ListAutoscalers( google::cloud::cpp::compute::autoscalers::v1:: @@ -87,6 +123,24 @@ AutoscalersConnection::PatchAutoscaler( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AutoscalersConnection::PatchAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + PatchAutoscalerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AutoscalersConnection::PatchAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AutoscalersConnection::UpdateAutoscaler( google::cloud::cpp::compute::autoscalers::v1:: @@ -96,6 +150,24 @@ AutoscalersConnection::UpdateAutoscaler( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AutoscalersConnection::UpdateAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + UpdateAutoscalerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AutoscalersConnection::UpdateAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_autoscalers_v1 } // namespace cloud diff --git a/google/cloud/compute/autoscalers/v1/autoscalers_connection.h b/google/cloud/compute/autoscalers/v1/autoscalers_connection.h index b1f83ae423853..2bcb23e827eb3 100644 --- a/google/cloud/compute/autoscalers/v1/autoscalers_connection.h +++ b/google/cloud/compute/autoscalers/v1/autoscalers_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/autoscalers/v1/autoscalers_connection_idempotency_policy.h" #include "google/cloud/compute/autoscalers/v1/internal/autoscalers_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -192,6 +194,15 @@ class AutoscalersConnection { DeleteAutoscaler(google::cloud::cpp::compute::autoscalers::v1:: DeleteAutoscalerRequest const& request); + virtual StatusOr DeleteAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + DeleteAutoscalerRequest const& request); + + virtual future> + DeleteAutoscaler(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetAutoscaler( google::cloud::cpp::compute::autoscalers::v1::GetAutoscalerRequest const& request); @@ -200,6 +211,15 @@ class AutoscalersConnection { InsertAutoscaler(google::cloud::cpp::compute::autoscalers::v1:: InsertAutoscalerRequest const& request); + virtual StatusOr InsertAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + InsertAutoscalerRequest const& request); + + virtual future> + InsertAutoscaler(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListAutoscalers( google::cloud::cpp::compute::autoscalers::v1::ListAutoscalersRequest @@ -209,9 +229,27 @@ class AutoscalersConnection { PatchAutoscaler(google::cloud::cpp::compute::autoscalers::v1:: PatchAutoscalerRequest const& request); + virtual StatusOr PatchAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + PatchAutoscalerRequest const& request); + + virtual future> + PatchAutoscaler(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> UpdateAutoscaler(google::cloud::cpp::compute::autoscalers::v1:: UpdateAutoscalerRequest const& request); + + virtual StatusOr UpdateAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + UpdateAutoscalerRequest const& request); + + virtual future> + UpdateAutoscaler(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/autoscalers/v1/internal/autoscalers_rest_connection_impl.cc b/google/cloud/compute/autoscalers/v1/internal/autoscalers_rest_connection_impl.cc index cb49f4ea26da1..06f5f88b3349c 100644 --- a/google/cloud/compute/autoscalers/v1/internal/autoscalers_rest_connection_impl.cc +++ b/google/cloud/compute/autoscalers/v1/internal/autoscalers_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -144,6 +145,79 @@ AutoscalersRestConnectionImpl::DeleteAutoscaler( }); } +StatusOr +AutoscalersRestConnectionImpl::DeleteAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1::DeleteAutoscalerRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAutoscaler(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::autoscalers::v1:: + DeleteAutoscalerRequest const& request) { + return stub_->DeleteAutoscaler(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +AutoscalersRestConnectionImpl::DeleteAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StatusOr AutoscalersRestConnectionImpl::GetAutoscaler( google::cloud::cpp::compute::autoscalers::v1::GetAutoscalerRequest const& @@ -220,6 +294,79 @@ AutoscalersRestConnectionImpl::InsertAutoscaler( }); } +StatusOr +AutoscalersRestConnectionImpl::InsertAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1::InsertAutoscalerRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertAutoscaler(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::autoscalers::v1:: + InsertAutoscalerRequest const& request) { + return stub_->InsertAutoscaler(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +AutoscalersRestConnectionImpl::InsertAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StreamRange AutoscalersRestConnectionImpl::ListAutoscalers( google::cloud::cpp::compute::autoscalers::v1::ListAutoscalersRequest @@ -316,6 +463,79 @@ AutoscalersRestConnectionImpl::PatchAutoscaler( }); } +StatusOr +AutoscalersRestConnectionImpl::PatchAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1::PatchAutoscalerRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchAutoscaler(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::autoscalers::v1:: + PatchAutoscalerRequest const& request) { + return stub_->PatchAutoscaler(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +AutoscalersRestConnectionImpl::PatchAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> AutoscalersRestConnectionImpl::UpdateAutoscaler( google::cloud::cpp::compute::autoscalers::v1::UpdateAutoscalerRequest const& @@ -376,6 +596,79 @@ AutoscalersRestConnectionImpl::UpdateAutoscaler( }); } +StatusOr +AutoscalersRestConnectionImpl::UpdateAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1::UpdateAutoscalerRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAutoscaler(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::autoscalers::v1:: + UpdateAutoscalerRequest const& request) { + return stub_->UpdateAutoscaler(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +AutoscalersRestConnectionImpl::UpdateAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_autoscalers_v1_internal } // namespace cloud diff --git a/google/cloud/compute/autoscalers/v1/internal/autoscalers_rest_connection_impl.h b/google/cloud/compute/autoscalers/v1/internal/autoscalers_rest_connection_impl.h index 479b95489a6da..45b4b0a1cb11a 100644 --- a/google/cloud/compute/autoscalers/v1/internal/autoscalers_rest_connection_impl.h +++ b/google/cloud/compute/autoscalers/v1/internal/autoscalers_rest_connection_impl.h @@ -61,6 +61,15 @@ class AutoscalersRestConnectionImpl google::cloud::cpp::compute::autoscalers::v1:: DeleteAutoscalerRequest const& request) override; + StatusOr DeleteAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + DeleteAutoscalerRequest const& request) override; + + future> DeleteAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetAutoscaler( google::cloud::cpp::compute::autoscalers::v1::GetAutoscalerRequest const& request) override; @@ -69,6 +78,15 @@ class AutoscalersRestConnectionImpl google::cloud::cpp::compute::autoscalers::v1:: InsertAutoscalerRequest const& request) override; + StatusOr InsertAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + InsertAutoscalerRequest const& request) override; + + future> InsertAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListAutoscalers( google::cloud::cpp::compute::autoscalers::v1::ListAutoscalersRequest request) override; @@ -77,10 +95,28 @@ class AutoscalersRestConnectionImpl google::cloud::cpp::compute::autoscalers::v1:: PatchAutoscalerRequest const& request) override; + StatusOr PatchAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + PatchAutoscalerRequest const& request) override; + + future> PatchAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateAutoscaler( google::cloud::cpp::compute::autoscalers::v1:: UpdateAutoscalerRequest const& request) override; + StatusOr UpdateAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + UpdateAutoscalerRequest const& request) override; + + future> UpdateAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy(Options const& options) { diff --git a/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.cc b/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.cc index 824361aef58fc..e81e242a31fd0 100644 --- a/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.cc +++ b/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.cc @@ -58,6 +58,31 @@ AutoscalersTracingConnection::DeleteAutoscaler( return internal::EndSpan(std::move(span), child_->DeleteAutoscaler(request)); } +StatusOr +AutoscalersTracingConnection::DeleteAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1::DeleteAutoscalerRequest const& + request) { + auto span = internal::MakeSpan( + "compute_autoscalers_v1::AutoscalersConnection::DeleteAutoscaler"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAutoscaler(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AutoscalersTracingConnection::DeleteAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_autoscalers_v1::AutoscalersConnection::DeleteAutoscaler"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAutoscaler(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AutoscalersTracingConnection::GetAutoscaler( google::cloud::cpp::compute::autoscalers::v1::GetAutoscalerRequest const& @@ -78,6 +103,31 @@ AutoscalersTracingConnection::InsertAutoscaler( return internal::EndSpan(std::move(span), child_->InsertAutoscaler(request)); } +StatusOr +AutoscalersTracingConnection::InsertAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1::InsertAutoscalerRequest const& + request) { + auto span = internal::MakeSpan( + "compute_autoscalers_v1::AutoscalersConnection::InsertAutoscaler"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertAutoscaler(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AutoscalersTracingConnection::InsertAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_autoscalers_v1::AutoscalersConnection::InsertAutoscaler"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertAutoscaler(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange AutoscalersTracingConnection::ListAutoscalers( google::cloud::cpp::compute::autoscalers::v1::ListAutoscalersRequest @@ -101,6 +151,31 @@ AutoscalersTracingConnection::PatchAutoscaler( return internal::EndSpan(std::move(span), child_->PatchAutoscaler(request)); } +StatusOr +AutoscalersTracingConnection::PatchAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1::PatchAutoscalerRequest const& + request) { + auto span = internal::MakeSpan( + "compute_autoscalers_v1::AutoscalersConnection::PatchAutoscaler"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchAutoscaler(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AutoscalersTracingConnection::PatchAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_autoscalers_v1::AutoscalersConnection::PatchAutoscaler"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchAutoscaler(google::cloud::ExperimentalTag{}, operation)); +} + future> AutoscalersTracingConnection::UpdateAutoscaler( google::cloud::cpp::compute::autoscalers::v1::UpdateAutoscalerRequest const& @@ -111,6 +186,31 @@ AutoscalersTracingConnection::UpdateAutoscaler( return internal::EndSpan(std::move(span), child_->UpdateAutoscaler(request)); } +StatusOr +AutoscalersTracingConnection::UpdateAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1::UpdateAutoscalerRequest const& + request) { + auto span = internal::MakeSpan( + "compute_autoscalers_v1::AutoscalersConnection::UpdateAutoscaler"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateAutoscaler(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AutoscalersTracingConnection::UpdateAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_autoscalers_v1::AutoscalersConnection::UpdateAutoscaler"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateAutoscaler(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.h b/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.h index 36378ce2febbc..22c9d3133f6f9 100644 --- a/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.h +++ b/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.h @@ -50,6 +50,15 @@ class AutoscalersTracingConnection google::cloud::cpp::compute::autoscalers::v1:: DeleteAutoscalerRequest const& request) override; + StatusOr DeleteAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + DeleteAutoscalerRequest const& request) override; + + future> DeleteAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetAutoscaler( google::cloud::cpp::compute::autoscalers::v1::GetAutoscalerRequest const& request) override; @@ -58,6 +67,15 @@ class AutoscalersTracingConnection google::cloud::cpp::compute::autoscalers::v1:: InsertAutoscalerRequest const& request) override; + StatusOr InsertAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + InsertAutoscalerRequest const& request) override; + + future> InsertAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListAutoscalers( google::cloud::cpp::compute::autoscalers::v1::ListAutoscalersRequest request) override; @@ -66,10 +84,28 @@ class AutoscalersTracingConnection google::cloud::cpp::compute::autoscalers::v1:: PatchAutoscalerRequest const& request) override; + StatusOr PatchAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + PatchAutoscalerRequest const& request) override; + + future> PatchAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateAutoscaler( google::cloud::cpp::compute::autoscalers::v1:: UpdateAutoscalerRequest const& request) override; + StatusOr UpdateAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + UpdateAutoscalerRequest const& request) override; + + future> UpdateAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/autoscalers/v1/mocks/mock_autoscalers_connection.h b/google/cloud/compute/autoscalers/v1/mocks/mock_autoscalers_connection.h index 588ae8d4badb6..eb236958cbd07 100644 --- a/google/cloud/compute/autoscalers/v1/mocks/mock_autoscalers_connection.h +++ b/google/cloud/compute/autoscalers/v1/mocks/mock_autoscalers_connection.h @@ -62,6 +62,19 @@ class MockAutoscalersConnection DeleteAutoscalerRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteAutoscaler, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + DeleteAutoscalerRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteAutoscaler, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetAutoscaler, (google::cloud::cpp::compute::autoscalers::v1::GetAutoscalerRequest const& @@ -74,6 +87,19 @@ class MockAutoscalersConnection InsertAutoscalerRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertAutoscaler, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + InsertAutoscalerRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertAutoscaler, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListAutoscalers, @@ -87,11 +113,37 @@ class MockAutoscalersConnection PatchAutoscalerRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchAutoscaler, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + PatchAutoscalerRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchAutoscaler, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateAutoscaler, (google::cloud::cpp::compute::autoscalers::v1:: UpdateAutoscalerRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + UpdateAutoscaler, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::autoscalers::v1:: + UpdateAutoscalerRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateAutoscaler, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/backend_buckets/v1/backend_buckets_connection.cc b/google/cloud/compute/backend_buckets/v1/backend_buckets_connection.cc index 4b6b0255b54fd..47b6bd1b04006 100644 --- a/google/cloud/compute/backend_buckets/v1/backend_buckets_connection.cc +++ b/google/cloud/compute/backend_buckets/v1/backend_buckets_connection.cc @@ -45,6 +45,24 @@ BackendBucketsConnection::AddSignedUrlKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackendBucketsConnection::AddSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + AddSignedUrlKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackendBucketsConnection::AddSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BackendBucketsConnection::DeleteBackendBucket( google::cloud::cpp::compute::backend_buckets::v1:: @@ -54,6 +72,24 @@ BackendBucketsConnection::DeleteBackendBucket( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackendBucketsConnection::DeleteBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + DeleteBackendBucketRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackendBucketsConnection::DeleteBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BackendBucketsConnection::DeleteSignedUrlKey( google::cloud::cpp::compute::backend_buckets::v1:: @@ -63,6 +99,24 @@ BackendBucketsConnection::DeleteSignedUrlKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackendBucketsConnection::DeleteSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + DeleteSignedUrlKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackendBucketsConnection::DeleteSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr BackendBucketsConnection::GetBackendBucket( google::cloud::cpp::compute::backend_buckets::v1:: @@ -86,6 +140,24 @@ BackendBucketsConnection::InsertBackendBucket( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackendBucketsConnection::InsertBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + InsertBackendBucketRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackendBucketsConnection::InsertBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange BackendBucketsConnection::ListBackendBuckets( google::cloud::cpp::compute::backend_buckets::v1:: @@ -103,6 +175,24 @@ BackendBucketsConnection::PatchBackendBucket( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackendBucketsConnection::PatchBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + PatchBackendBucketRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackendBucketsConnection::PatchBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BackendBucketsConnection::SetEdgeSecurityPolicy( google::cloud::cpp::compute::backend_buckets::v1:: @@ -112,6 +202,24 @@ BackendBucketsConnection::SetEdgeSecurityPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackendBucketsConnection::SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + SetEdgeSecurityPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackendBucketsConnection::SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr BackendBucketsConnection::SetIamPolicy( google::cloud::cpp::compute::backend_buckets::v1:: @@ -135,6 +243,24 @@ BackendBucketsConnection::UpdateBackendBucket( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackendBucketsConnection::UpdateBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + UpdateBackendBucketRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackendBucketsConnection::UpdateBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_backend_buckets_v1 } // namespace cloud diff --git a/google/cloud/compute/backend_buckets/v1/backend_buckets_connection.h b/google/cloud/compute/backend_buckets/v1/backend_buckets_connection.h index 6f406d9d49762..291ed633bf021 100644 --- a/google/cloud/compute/backend_buckets/v1/backend_buckets_connection.h +++ b/google/cloud/compute/backend_buckets/v1/backend_buckets_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/backend_buckets/v1/backend_buckets_connection_idempotency_policy.h" #include "google/cloud/compute/backend_buckets/v1/internal/backend_buckets_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -189,14 +191,43 @@ class BackendBucketsConnection { AddSignedUrlKey(google::cloud::cpp::compute::backend_buckets::v1:: AddSignedUrlKeyRequest const& request); + virtual StatusOr AddSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + AddSignedUrlKeyRequest const& request); + + virtual future> + AddSignedUrlKey(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteBackendBucket(google::cloud::cpp::compute::backend_buckets::v1:: DeleteBackendBucketRequest const& request); + virtual StatusOr + DeleteBackendBucket(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + DeleteBackendBucketRequest const& request); + + virtual future> + DeleteBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteSignedUrlKey(google::cloud::cpp::compute::backend_buckets::v1:: DeleteSignedUrlKeyRequest const& request); + virtual StatusOr + DeleteSignedUrlKey(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + DeleteSignedUrlKeyRequest const& request); + + virtual future> + DeleteSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetBackendBucket(google::cloud::cpp::compute::backend_buckets::v1:: GetBackendBucketRequest const& request); @@ -209,6 +240,16 @@ class BackendBucketsConnection { InsertBackendBucket(google::cloud::cpp::compute::backend_buckets::v1:: InsertBackendBucketRequest const& request); + virtual StatusOr + InsertBackendBucket(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + InsertBackendBucketRequest const& request); + + virtual future> + InsertBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListBackendBuckets(google::cloud::cpp::compute::backend_buckets::v1:: ListBackendBucketsRequest request); @@ -217,10 +258,31 @@ class BackendBucketsConnection { PatchBackendBucket(google::cloud::cpp::compute::backend_buckets::v1:: PatchBackendBucketRequest const& request); + virtual StatusOr + PatchBackendBucket(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + PatchBackendBucketRequest const& request); + + virtual future> + PatchBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetEdgeSecurityPolicy(google::cloud::cpp::compute::backend_buckets::v1:: SetEdgeSecurityPolicyRequest const& request); + virtual StatusOr + SetEdgeSecurityPolicy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + SetEdgeSecurityPolicyRequest const& request); + + virtual future> + SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr SetIamPolicy( google::cloud::cpp::compute::backend_buckets::v1:: SetIamPolicyRequest const& request); @@ -232,6 +294,16 @@ class BackendBucketsConnection { virtual future> UpdateBackendBucket(google::cloud::cpp::compute::backend_buckets::v1:: UpdateBackendBucketRequest const& request); + + virtual StatusOr + UpdateBackendBucket(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + UpdateBackendBucketRequest const& request); + + virtual future> + UpdateBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_rest_connection_impl.cc b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_rest_connection_impl.cc index 51594b5038780..aecb19672f3ea 100644 --- a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_rest_connection_impl.cc +++ b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -101,6 +102,77 @@ BackendBucketsRestConnectionImpl::AddSignedUrlKey( }); } +StatusOr +BackendBucketsRestConnectionImpl::AddSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + AddSignedUrlKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddSignedUrlKey(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::backend_buckets::v1:: + AddSignedUrlKeyRequest const& request) { + return stub_->AddSignedUrlKey(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +BackendBucketsRestConnectionImpl::AddSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> BackendBucketsRestConnectionImpl::DeleteBackendBucket( google::cloud::cpp::compute::backend_buckets::v1:: @@ -159,6 +231,77 @@ BackendBucketsRestConnectionImpl::DeleteBackendBucket( }); } +StatusOr +BackendBucketsRestConnectionImpl::DeleteBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + DeleteBackendBucketRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteBackendBucket(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::backend_buckets::v1:: + DeleteBackendBucketRequest const& request) { + return stub_->DeleteBackendBucket(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +BackendBucketsRestConnectionImpl::DeleteBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> BackendBucketsRestConnectionImpl::DeleteSignedUrlKey( google::cloud::cpp::compute::backend_buckets::v1:: @@ -217,6 +360,77 @@ BackendBucketsRestConnectionImpl::DeleteSignedUrlKey( }); } +StatusOr +BackendBucketsRestConnectionImpl::DeleteSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + DeleteSignedUrlKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSignedUrlKey(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::backend_buckets::v1:: + DeleteSignedUrlKeyRequest const& request) { + return stub_->DeleteSignedUrlKey(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +BackendBucketsRestConnectionImpl::DeleteSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr BackendBucketsRestConnectionImpl::GetBackendBucket( google::cloud::cpp::compute::backend_buckets::v1:: @@ -307,6 +521,77 @@ BackendBucketsRestConnectionImpl::InsertBackendBucket( }); } +StatusOr +BackendBucketsRestConnectionImpl::InsertBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + InsertBackendBucketRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertBackendBucket(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::backend_buckets::v1:: + InsertBackendBucketRequest const& request) { + return stub_->InsertBackendBucket(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +BackendBucketsRestConnectionImpl::InsertBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange BackendBucketsRestConnectionImpl::ListBackendBuckets( google::cloud::cpp::compute::backend_buckets::v1::ListBackendBucketsRequest @@ -402,6 +687,77 @@ BackendBucketsRestConnectionImpl::PatchBackendBucket( }); } +StatusOr +BackendBucketsRestConnectionImpl::PatchBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + PatchBackendBucketRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchBackendBucket(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::backend_buckets::v1:: + PatchBackendBucketRequest const& request) { + return stub_->PatchBackendBucket(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +BackendBucketsRestConnectionImpl::PatchBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> BackendBucketsRestConnectionImpl::SetEdgeSecurityPolicy( google::cloud::cpp::compute::backend_buckets::v1:: @@ -460,6 +816,77 @@ BackendBucketsRestConnectionImpl::SetEdgeSecurityPolicy( }); } +StatusOr +BackendBucketsRestConnectionImpl::SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + SetEdgeSecurityPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetEdgeSecurityPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::backend_buckets::v1:: + SetEdgeSecurityPolicyRequest const& request) { + return stub_->SetEdgeSecurityPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +BackendBucketsRestConnectionImpl::SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr BackendBucketsRestConnectionImpl::SetIamPolicy( google::cloud::cpp::compute::backend_buckets::v1::SetIamPolicyRequest const& @@ -550,6 +977,77 @@ BackendBucketsRestConnectionImpl::UpdateBackendBucket( }); } +StatusOr +BackendBucketsRestConnectionImpl::UpdateBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + UpdateBackendBucketRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateBackendBucket(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::backend_buckets::v1:: + UpdateBackendBucketRequest const& request) { + return stub_->UpdateBackendBucket(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +BackendBucketsRestConnectionImpl::UpdateBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_backend_buckets_v1_internal } // namespace cloud diff --git a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_rest_connection_impl.h b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_rest_connection_impl.h index ab05f5bf4af53..965cc39ffa61e 100644 --- a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_rest_connection_impl.h +++ b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_rest_connection_impl.h @@ -56,14 +56,43 @@ class BackendBucketsRestConnectionImpl google::cloud::cpp::compute::backend_buckets::v1:: AddSignedUrlKeyRequest const& request) override; + StatusOr AddSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + AddSignedUrlKeyRequest const& request) override; + + future> AddSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteBackendBucket(google::cloud::cpp::compute::backend_buckets::v1:: DeleteBackendBucketRequest const& request) override; + StatusOr DeleteBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + DeleteBackendBucketRequest const& request) override; + + future> + DeleteBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteSignedUrlKey(google::cloud::cpp::compute::backend_buckets::v1:: DeleteSignedUrlKeyRequest const& request) override; + StatusOr DeleteSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + DeleteSignedUrlKeyRequest const& request) override; + + future> + DeleteSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetBackendBucket( google::cloud::cpp::compute::backend_buckets::v1:: GetBackendBucketRequest const& request) override; @@ -76,6 +105,16 @@ class BackendBucketsRestConnectionImpl InsertBackendBucket(google::cloud::cpp::compute::backend_buckets::v1:: InsertBackendBucketRequest const& request) override; + StatusOr InsertBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + InsertBackendBucketRequest const& request) override; + + future> + InsertBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListBackendBuckets(google::cloud::cpp::compute::backend_buckets::v1:: ListBackendBucketsRequest request) override; @@ -84,11 +123,31 @@ class BackendBucketsRestConnectionImpl PatchBackendBucket(google::cloud::cpp::compute::backend_buckets::v1:: PatchBackendBucketRequest const& request) override; + StatusOr PatchBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + PatchBackendBucketRequest const& request) override; + + future> + PatchBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetEdgeSecurityPolicy( google::cloud::cpp::compute::backend_buckets::v1:: SetEdgeSecurityPolicyRequest const& request) override; + StatusOr SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + SetEdgeSecurityPolicyRequest const& request) override; + + future> + SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::backend_buckets::v1:: SetIamPolicyRequest const& request) override; @@ -101,6 +160,16 @@ class BackendBucketsRestConnectionImpl UpdateBackendBucket(google::cloud::cpp::compute::backend_buckets::v1:: UpdateBackendBucketRequest const& request) override; + StatusOr UpdateBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + UpdateBackendBucketRequest const& request) override; + + future> + UpdateBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy(Options const& options) { diff --git a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.cc b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.cc index 86fd3230c3f9b..d1bbef52e67fe 100644 --- a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.cc +++ b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.cc @@ -43,6 +43,31 @@ BackendBucketsTracingConnection::AddSignedUrlKey( return internal::EndSpan(std::move(span), child_->AddSignedUrlKey(request)); } +StatusOr +BackendBucketsTracingConnection::AddSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + AddSignedUrlKeyRequest const& request) { + auto span = internal::MakeSpan( + "compute_backend_buckets_v1::BackendBucketsConnection::AddSignedUrlKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddSignedUrlKey(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackendBucketsTracingConnection::AddSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_backend_buckets_v1::BackendBucketsConnection::AddSignedUrlKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddSignedUrlKey(google::cloud::ExperimentalTag{}, operation)); +} + future> BackendBucketsTracingConnection::DeleteBackendBucket( google::cloud::cpp::compute::backend_buckets::v1:: @@ -55,6 +80,33 @@ BackendBucketsTracingConnection::DeleteBackendBucket( child_->DeleteBackendBucket(request)); } +StatusOr +BackendBucketsTracingConnection::DeleteBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + DeleteBackendBucketRequest const& request) { + auto span = internal::MakeSpan( + "compute_backend_buckets_v1::BackendBucketsConnection::" + "DeleteBackendBucket"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteBackendBucket(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackendBucketsTracingConnection::DeleteBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_backend_buckets_v1::BackendBucketsConnection::" + "DeleteBackendBucket"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteBackendBucket(google::cloud::ExperimentalTag{}, operation)); +} + future> BackendBucketsTracingConnection::DeleteSignedUrlKey( google::cloud::cpp::compute::backend_buckets::v1:: @@ -67,6 +119,33 @@ BackendBucketsTracingConnection::DeleteSignedUrlKey( child_->DeleteSignedUrlKey(request)); } +StatusOr +BackendBucketsTracingConnection::DeleteSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + DeleteSignedUrlKeyRequest const& request) { + auto span = internal::MakeSpan( + "compute_backend_buckets_v1::BackendBucketsConnection::" + "DeleteSignedUrlKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSignedUrlKey(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackendBucketsTracingConnection::DeleteSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_backend_buckets_v1::BackendBucketsConnection::" + "DeleteSignedUrlKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSignedUrlKey(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr BackendBucketsTracingConnection::GetBackendBucket( google::cloud::cpp::compute::backend_buckets::v1:: @@ -99,6 +178,33 @@ BackendBucketsTracingConnection::InsertBackendBucket( child_->InsertBackendBucket(request)); } +StatusOr +BackendBucketsTracingConnection::InsertBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + InsertBackendBucketRequest const& request) { + auto span = internal::MakeSpan( + "compute_backend_buckets_v1::BackendBucketsConnection::" + "InsertBackendBucket"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertBackendBucket(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackendBucketsTracingConnection::InsertBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_backend_buckets_v1::BackendBucketsConnection::" + "InsertBackendBucket"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertBackendBucket(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange BackendBucketsTracingConnection::ListBackendBuckets( google::cloud::cpp::compute::backend_buckets::v1::ListBackendBucketsRequest @@ -125,6 +231,33 @@ BackendBucketsTracingConnection::PatchBackendBucket( child_->PatchBackendBucket(request)); } +StatusOr +BackendBucketsTracingConnection::PatchBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + PatchBackendBucketRequest const& request) { + auto span = internal::MakeSpan( + "compute_backend_buckets_v1::BackendBucketsConnection::" + "PatchBackendBucket"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchBackendBucket(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackendBucketsTracingConnection::PatchBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_backend_buckets_v1::BackendBucketsConnection::" + "PatchBackendBucket"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchBackendBucket(google::cloud::ExperimentalTag{}, operation)); +} + future> BackendBucketsTracingConnection::SetEdgeSecurityPolicy( google::cloud::cpp::compute::backend_buckets::v1:: @@ -137,6 +270,33 @@ BackendBucketsTracingConnection::SetEdgeSecurityPolicy( child_->SetEdgeSecurityPolicy(request)); } +StatusOr +BackendBucketsTracingConnection::SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + SetEdgeSecurityPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_backend_buckets_v1::BackendBucketsConnection::" + "SetEdgeSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackendBucketsTracingConnection::SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_backend_buckets_v1::BackendBucketsConnection::" + "SetEdgeSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr BackendBucketsTracingConnection::SetIamPolicy( google::cloud::cpp::compute::backend_buckets::v1::SetIamPolicyRequest const& @@ -170,6 +330,33 @@ BackendBucketsTracingConnection::UpdateBackendBucket( child_->UpdateBackendBucket(request)); } +StatusOr +BackendBucketsTracingConnection::UpdateBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + UpdateBackendBucketRequest const& request) { + auto span = internal::MakeSpan( + "compute_backend_buckets_v1::BackendBucketsConnection::" + "UpdateBackendBucket"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateBackendBucket(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackendBucketsTracingConnection::UpdateBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_backend_buckets_v1::BackendBucketsConnection::" + "UpdateBackendBucket"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateBackendBucket(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.h b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.h index e1e5c8e7f9aee..ae709620b524a 100644 --- a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.h +++ b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.h @@ -45,14 +45,43 @@ class BackendBucketsTracingConnection google::cloud::cpp::compute::backend_buckets::v1:: AddSignedUrlKeyRequest const& request) override; + StatusOr AddSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + AddSignedUrlKeyRequest const& request) override; + + future> AddSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteBackendBucket(google::cloud::cpp::compute::backend_buckets::v1:: DeleteBackendBucketRequest const& request) override; + StatusOr DeleteBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + DeleteBackendBucketRequest const& request) override; + + future> + DeleteBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteSignedUrlKey(google::cloud::cpp::compute::backend_buckets::v1:: DeleteSignedUrlKeyRequest const& request) override; + StatusOr DeleteSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + DeleteSignedUrlKeyRequest const& request) override; + + future> + DeleteSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetBackendBucket( google::cloud::cpp::compute::backend_buckets::v1:: GetBackendBucketRequest const& request) override; @@ -65,6 +94,16 @@ class BackendBucketsTracingConnection InsertBackendBucket(google::cloud::cpp::compute::backend_buckets::v1:: InsertBackendBucketRequest const& request) override; + StatusOr InsertBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + InsertBackendBucketRequest const& request) override; + + future> + InsertBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListBackendBuckets(google::cloud::cpp::compute::backend_buckets::v1:: ListBackendBucketsRequest request) override; @@ -73,11 +112,31 @@ class BackendBucketsTracingConnection PatchBackendBucket(google::cloud::cpp::compute::backend_buckets::v1:: PatchBackendBucketRequest const& request) override; + StatusOr PatchBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + PatchBackendBucketRequest const& request) override; + + future> + PatchBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetEdgeSecurityPolicy( google::cloud::cpp::compute::backend_buckets::v1:: SetEdgeSecurityPolicyRequest const& request) override; + StatusOr SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + SetEdgeSecurityPolicyRequest const& request) override; + + future> + SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::backend_buckets::v1:: SetIamPolicyRequest const& request) override; @@ -90,6 +149,16 @@ class BackendBucketsTracingConnection UpdateBackendBucket(google::cloud::cpp::compute::backend_buckets::v1:: UpdateBackendBucketRequest const& request) override; + StatusOr UpdateBackendBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + UpdateBackendBucketRequest const& request) override; + + future> + UpdateBackendBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/backend_buckets/v1/mocks/mock_backend_buckets_connection.h b/google/cloud/compute/backend_buckets/v1/mocks/mock_backend_buckets_connection.h index 72ea62f6b5065..19a5140ee58bc 100644 --- a/google/cloud/compute/backend_buckets/v1/mocks/mock_backend_buckets_connection.h +++ b/google/cloud/compute/backend_buckets/v1/mocks/mock_backend_buckets_connection.h @@ -53,18 +53,57 @@ class MockBackendBucketsConnection AddSignedUrlKeyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + AddSignedUrlKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + AddSignedUrlKeyRequest const& request), + (override)); + + MOCK_METHOD(future>, + AddSignedUrlKey, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteBackendBucket, (google::cloud::cpp::compute::backend_buckets::v1:: DeleteBackendBucketRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteBackendBucket, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + DeleteBackendBucketRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteBackendBucket, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteSignedUrlKey, (google::cloud::cpp::compute::backend_buckets::v1:: DeleteSignedUrlKeyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteSignedUrlKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + DeleteSignedUrlKeyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteSignedUrlKey, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetBackendBucket, (google::cloud::cpp::compute::backend_buckets::v1:: @@ -82,6 +121,19 @@ class MockBackendBucketsConnection InsertBackendBucketRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertBackendBucket, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + InsertBackendBucketRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertBackendBucket, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListBackendBuckets, (google::cloud::cpp::compute::backend_buckets::v1:: @@ -94,12 +146,38 @@ class MockBackendBucketsConnection PatchBackendBucketRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchBackendBucket, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + PatchBackendBucketRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchBackendBucket, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetEdgeSecurityPolicy, (google::cloud::cpp::compute::backend_buckets::v1:: SetEdgeSecurityPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetEdgeSecurityPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + SetEdgeSecurityPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetEdgeSecurityPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, SetIamPolicy, (google::cloud::cpp::compute::backend_buckets::v1:: SetIamPolicyRequest const& request), @@ -117,6 +195,19 @@ class MockBackendBucketsConnection (google::cloud::cpp::compute::backend_buckets::v1:: UpdateBackendBucketRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + UpdateBackendBucket, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_buckets::v1:: + UpdateBackendBucketRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateBackendBucket, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/backend_services/v1/backend_services_connection.cc b/google/cloud/compute/backend_services/v1/backend_services_connection.cc index 75b2ae11aa7a2..b356707d8fca0 100644 --- a/google/cloud/compute/backend_services/v1/backend_services_connection.cc +++ b/google/cloud/compute/backend_services/v1/backend_services_connection.cc @@ -45,6 +45,24 @@ BackendServicesConnection::AddSignedUrlKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackendServicesConnection::AddSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + AddSignedUrlKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackendServicesConnection::AddSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange> BackendServicesConnection::AggregatedListBackendServices( @@ -64,6 +82,24 @@ BackendServicesConnection::DeleteBackendService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackendServicesConnection::DeleteBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + DeleteBackendServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackendServicesConnection::DeleteBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BackendServicesConnection::DeleteSignedUrlKey( google::cloud::cpp::compute::backend_services::v1:: @@ -73,6 +109,24 @@ BackendServicesConnection::DeleteSignedUrlKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackendServicesConnection::DeleteSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + DeleteSignedUrlKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackendServicesConnection::DeleteSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr BackendServicesConnection::GetBackendService( google::cloud::cpp::compute::backend_services::v1:: @@ -103,6 +157,24 @@ BackendServicesConnection::InsertBackendService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackendServicesConnection::InsertBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + InsertBackendServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackendServicesConnection::InsertBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange BackendServicesConnection::ListBackendServices( google::cloud::cpp::compute::backend_services::v1:: @@ -128,6 +200,24 @@ BackendServicesConnection::PatchBackendService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackendServicesConnection::PatchBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + PatchBackendServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackendServicesConnection::PatchBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BackendServicesConnection::SetEdgeSecurityPolicy( google::cloud::cpp::compute::backend_services::v1:: @@ -137,6 +227,24 @@ BackendServicesConnection::SetEdgeSecurityPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackendServicesConnection::SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + SetEdgeSecurityPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackendServicesConnection::SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr BackendServicesConnection::SetIamPolicy( google::cloud::cpp::compute::backend_services::v1:: @@ -153,6 +261,24 @@ BackendServicesConnection::SetSecurityPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackendServicesConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + SetSecurityPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackendServicesConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr BackendServicesConnection::TestIamPermissions( google::cloud::cpp::compute::backend_services::v1:: @@ -169,6 +295,24 @@ BackendServicesConnection::UpdateBackendService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackendServicesConnection::UpdateBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + UpdateBackendServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackendServicesConnection::UpdateBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_backend_services_v1 } // namespace cloud diff --git a/google/cloud/compute/backend_services/v1/backend_services_connection.h b/google/cloud/compute/backend_services/v1/backend_services_connection.h index 2987d49a31683..6cf61ba05a318 100644 --- a/google/cloud/compute/backend_services/v1/backend_services_connection.h +++ b/google/cloud/compute/backend_services/v1/backend_services_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/backend_services/v1/backend_services_connection_idempotency_policy.h" #include "google/cloud/compute/backend_services/v1/internal/backend_services_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -190,6 +192,15 @@ class BackendServicesConnection { AddSignedUrlKey(google::cloud::cpp::compute::backend_services::v1:: AddSignedUrlKeyRequest const& request); + virtual StatusOr AddSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + AddSignedUrlKeyRequest const& request); + + virtual future> + AddSignedUrlKey(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange> AggregatedListBackendServices( @@ -200,10 +211,31 @@ class BackendServicesConnection { DeleteBackendService(google::cloud::cpp::compute::backend_services::v1:: DeleteBackendServiceRequest const& request); + virtual StatusOr + DeleteBackendService(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + DeleteBackendServiceRequest const& request); + + virtual future> + DeleteBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteSignedUrlKey(google::cloud::cpp::compute::backend_services::v1:: DeleteSignedUrlKeyRequest const& request); + virtual StatusOr + DeleteSignedUrlKey(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + DeleteSignedUrlKeyRequest const& request); + + virtual future> + DeleteSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetBackendService(google::cloud::cpp::compute::backend_services::v1:: GetBackendServiceRequest const& request); @@ -221,6 +253,17 @@ class BackendServicesConnection { InsertBackendService(google::cloud::cpp::compute::backend_services::v1:: InsertBackendServiceRequest const& request); + virtual StatusOr + InsertBackendService(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + InsertBackendServiceRequest const& request); + + virtual future> + InsertBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListBackendServices(google::cloud::cpp::compute::backend_services::v1:: ListBackendServicesRequest request); @@ -234,10 +277,31 @@ class BackendServicesConnection { PatchBackendService(google::cloud::cpp::compute::backend_services::v1:: PatchBackendServiceRequest const& request); + virtual StatusOr + PatchBackendService(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + PatchBackendServiceRequest const& request); + + virtual future> + PatchBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetEdgeSecurityPolicy(google::cloud::cpp::compute::backend_services::v1:: SetEdgeSecurityPolicyRequest const& request); + virtual StatusOr + SetEdgeSecurityPolicy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + SetEdgeSecurityPolicyRequest const& request); + + virtual future> + SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr SetIamPolicy( google::cloud::cpp::compute::backend_services::v1:: SetIamPolicyRequest const& request); @@ -246,6 +310,16 @@ class BackendServicesConnection { SetSecurityPolicy(google::cloud::cpp::compute::backend_services::v1:: SetSecurityPolicyRequest const& request); + virtual StatusOr + SetSecurityPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + SetSecurityPolicyRequest const& request); + + virtual future> + SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr TestIamPermissions(google::cloud::cpp::compute::backend_services::v1:: TestIamPermissionsRequest const& request); @@ -253,6 +327,17 @@ class BackendServicesConnection { virtual future> UpdateBackendService(google::cloud::cpp::compute::backend_services::v1:: UpdateBackendServiceRequest const& request); + + virtual StatusOr + UpdateBackendService(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + UpdateBackendServiceRequest const& request); + + virtual future> + UpdateBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/backend_services/v1/internal/backend_services_rest_connection_impl.cc b/google/cloud/compute/backend_services/v1/internal/backend_services_rest_connection_impl.cc index 18cff0bca67f6..c8ef3847b7bde 100644 --- a/google/cloud/compute/backend_services/v1/internal/backend_services_rest_connection_impl.cc +++ b/google/cloud/compute/backend_services/v1/internal/backend_services_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -102,6 +103,77 @@ BackendServicesRestConnectionImpl::AddSignedUrlKey( }); } +StatusOr +BackendServicesRestConnectionImpl::AddSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + AddSignedUrlKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddSignedUrlKey(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::backend_services::v1:: + AddSignedUrlKeyRequest const& request) { + return stub_->AddSignedUrlKey(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +BackendServicesRestConnectionImpl::AddSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange> BackendServicesRestConnectionImpl::AggregatedListBackendServices( @@ -203,6 +275,77 @@ BackendServicesRestConnectionImpl::DeleteBackendService( }); } +StatusOr +BackendServicesRestConnectionImpl::DeleteBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + DeleteBackendServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteBackendService(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::backend_services::v1:: + DeleteBackendServiceRequest const& request) { + return stub_->DeleteBackendService(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +BackendServicesRestConnectionImpl::DeleteBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> BackendServicesRestConnectionImpl::DeleteSignedUrlKey( google::cloud::cpp::compute::backend_services::v1:: @@ -261,6 +404,77 @@ BackendServicesRestConnectionImpl::DeleteSignedUrlKey( }); } +StatusOr +BackendServicesRestConnectionImpl::DeleteSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + DeleteSignedUrlKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSignedUrlKey(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::backend_services::v1:: + DeleteSignedUrlKeyRequest const& request) { + return stub_->DeleteSignedUrlKey(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +BackendServicesRestConnectionImpl::DeleteSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr BackendServicesRestConnectionImpl::GetBackendService( google::cloud::cpp::compute::backend_services::v1:: @@ -367,6 +581,77 @@ BackendServicesRestConnectionImpl::InsertBackendService( }); } +StatusOr +BackendServicesRestConnectionImpl::InsertBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + InsertBackendServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertBackendService(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::backend_services::v1:: + InsertBackendServiceRequest const& request) { + return stub_->InsertBackendService(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +BackendServicesRestConnectionImpl::InsertBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange BackendServicesRestConnectionImpl::ListBackendServices( google::cloud::cpp::compute::backend_services::v1:: @@ -501,6 +786,77 @@ BackendServicesRestConnectionImpl::PatchBackendService( }); } +StatusOr +BackendServicesRestConnectionImpl::PatchBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + PatchBackendServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchBackendService(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::backend_services::v1:: + PatchBackendServiceRequest const& request) { + return stub_->PatchBackendService(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +BackendServicesRestConnectionImpl::PatchBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> BackendServicesRestConnectionImpl::SetEdgeSecurityPolicy( google::cloud::cpp::compute::backend_services::v1:: @@ -559,6 +915,77 @@ BackendServicesRestConnectionImpl::SetEdgeSecurityPolicy( }); } +StatusOr +BackendServicesRestConnectionImpl::SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + SetEdgeSecurityPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetEdgeSecurityPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::backend_services::v1:: + SetEdgeSecurityPolicyRequest const& request) { + return stub_->SetEdgeSecurityPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +BackendServicesRestConnectionImpl::SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr BackendServicesRestConnectionImpl::SetIamPolicy( google::cloud::cpp::compute::backend_services::v1:: @@ -633,6 +1060,77 @@ BackendServicesRestConnectionImpl::SetSecurityPolicy( }); } +StatusOr +BackendServicesRestConnectionImpl::SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + SetSecurityPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetSecurityPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::backend_services::v1:: + SetSecurityPolicyRequest const& request) { + return stub_->SetSecurityPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +BackendServicesRestConnectionImpl::SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr BackendServicesRestConnectionImpl::TestIamPermissions( google::cloud::cpp::compute::backend_services::v1:: @@ -707,6 +1205,77 @@ BackendServicesRestConnectionImpl::UpdateBackendService( }); } +StatusOr +BackendServicesRestConnectionImpl::UpdateBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + UpdateBackendServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateBackendService(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::backend_services::v1:: + UpdateBackendServiceRequest const& request) { + return stub_->UpdateBackendService(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +BackendServicesRestConnectionImpl::UpdateBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_backend_services_v1_internal } // namespace cloud diff --git a/google/cloud/compute/backend_services/v1/internal/backend_services_rest_connection_impl.h b/google/cloud/compute/backend_services/v1/internal/backend_services_rest_connection_impl.h index 620704582fd80..0dc51707922be 100644 --- a/google/cloud/compute/backend_services/v1/internal/backend_services_rest_connection_impl.h +++ b/google/cloud/compute/backend_services/v1/internal/backend_services_rest_connection_impl.h @@ -56,6 +56,15 @@ class BackendServicesRestConnectionImpl google::cloud::cpp::compute::backend_services::v1:: AddSignedUrlKeyRequest const& request) override; + StatusOr AddSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + AddSignedUrlKeyRequest const& request) override; + + future> AddSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange> AggregatedListBackendServices( @@ -66,10 +75,30 @@ class BackendServicesRestConnectionImpl DeleteBackendService(google::cloud::cpp::compute::backend_services::v1:: DeleteBackendServiceRequest const& request) override; + StatusOr DeleteBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + DeleteBackendServiceRequest const& request) override; + + future> + DeleteBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteSignedUrlKey(google::cloud::cpp::compute::backend_services::v1:: DeleteSignedUrlKeyRequest const& request) override; + StatusOr DeleteSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + DeleteSignedUrlKeyRequest const& request) override; + + future> + DeleteSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetBackendService( google::cloud::cpp::compute::backend_services::v1:: GetBackendServiceRequest const& request) override; @@ -87,6 +116,16 @@ class BackendServicesRestConnectionImpl InsertBackendService(google::cloud::cpp::compute::backend_services::v1:: InsertBackendServiceRequest const& request) override; + StatusOr InsertBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + InsertBackendServiceRequest const& request) override; + + future> + InsertBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListBackendServices(google::cloud::cpp::compute::backend_services::v1:: ListBackendServicesRequest request) override; @@ -99,11 +138,31 @@ class BackendServicesRestConnectionImpl PatchBackendService(google::cloud::cpp::compute::backend_services::v1:: PatchBackendServiceRequest const& request) override; + StatusOr PatchBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + PatchBackendServiceRequest const& request) override; + + future> + PatchBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetEdgeSecurityPolicy( google::cloud::cpp::compute::backend_services::v1:: SetEdgeSecurityPolicyRequest const& request) override; + StatusOr SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + SetEdgeSecurityPolicyRequest const& request) override; + + future> + SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::backend_services::v1:: SetIamPolicyRequest const& request) override; @@ -112,6 +171,16 @@ class BackendServicesRestConnectionImpl SetSecurityPolicy(google::cloud::cpp::compute::backend_services::v1:: SetSecurityPolicyRequest const& request) override; + StatusOr SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + SetSecurityPolicyRequest const& request) override; + + future> + SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::backend_services::v1:: TestIamPermissionsRequest const& request) override; @@ -120,6 +189,16 @@ class BackendServicesRestConnectionImpl UpdateBackendService(google::cloud::cpp::compute::backend_services::v1:: UpdateBackendServiceRequest const& request) override; + StatusOr UpdateBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + UpdateBackendServiceRequest const& request) override; + + future> + UpdateBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_backend_services_v1::BackendServicesRetryPolicy> diff --git a/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.cc b/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.cc index 0311728c24f4b..ff295a6706548 100644 --- a/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.cc +++ b/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.cc @@ -45,6 +45,33 @@ BackendServicesTracingConnection::AddSignedUrlKey( return internal::EndSpan(std::move(span), child_->AddSignedUrlKey(request)); } +StatusOr +BackendServicesTracingConnection::AddSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + AddSignedUrlKeyRequest const& request) { + auto span = internal::MakeSpan( + "compute_backend_services_v1::BackendServicesConnection::" + "AddSignedUrlKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddSignedUrlKey(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackendServicesTracingConnection::AddSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_backend_services_v1::BackendServicesConnection::" + "AddSignedUrlKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddSignedUrlKey(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange> BackendServicesTracingConnection::AggregatedListBackendServices( @@ -72,6 +99,33 @@ BackendServicesTracingConnection::DeleteBackendService( child_->DeleteBackendService(request)); } +StatusOr +BackendServicesTracingConnection::DeleteBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + DeleteBackendServiceRequest const& request) { + auto span = internal::MakeSpan( + "compute_backend_services_v1::BackendServicesConnection::" + "DeleteBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteBackendService( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackendServicesTracingConnection::DeleteBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_backend_services_v1::BackendServicesConnection::" + "DeleteBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteBackendService( + google::cloud::ExperimentalTag{}, operation)); +} + future> BackendServicesTracingConnection::DeleteSignedUrlKey( google::cloud::cpp::compute::backend_services::v1:: @@ -84,6 +138,33 @@ BackendServicesTracingConnection::DeleteSignedUrlKey( child_->DeleteSignedUrlKey(request)); } +StatusOr +BackendServicesTracingConnection::DeleteSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + DeleteSignedUrlKeyRequest const& request) { + auto span = internal::MakeSpan( + "compute_backend_services_v1::BackendServicesConnection::" + "DeleteSignedUrlKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSignedUrlKey(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackendServicesTracingConnection::DeleteSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_backend_services_v1::BackendServicesConnection::" + "DeleteSignedUrlKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSignedUrlKey(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr BackendServicesTracingConnection::GetBackendService( google::cloud::cpp::compute::backend_services::v1:: @@ -127,6 +208,33 @@ BackendServicesTracingConnection::InsertBackendService( child_->InsertBackendService(request)); } +StatusOr +BackendServicesTracingConnection::InsertBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + InsertBackendServiceRequest const& request) { + auto span = internal::MakeSpan( + "compute_backend_services_v1::BackendServicesConnection::" + "InsertBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertBackendService( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackendServicesTracingConnection::InsertBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_backend_services_v1::BackendServicesConnection::" + "InsertBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertBackendService( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange BackendServicesTracingConnection::ListBackendServices( google::cloud::cpp::compute::backend_services::v1:: @@ -166,6 +274,33 @@ BackendServicesTracingConnection::PatchBackendService( child_->PatchBackendService(request)); } +StatusOr +BackendServicesTracingConnection::PatchBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + PatchBackendServiceRequest const& request) { + auto span = internal::MakeSpan( + "compute_backend_services_v1::BackendServicesConnection::" + "PatchBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchBackendService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackendServicesTracingConnection::PatchBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_backend_services_v1::BackendServicesConnection::" + "PatchBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchBackendService(google::cloud::ExperimentalTag{}, operation)); +} + future> BackendServicesTracingConnection::SetEdgeSecurityPolicy( google::cloud::cpp::compute::backend_services::v1:: @@ -178,6 +313,33 @@ BackendServicesTracingConnection::SetEdgeSecurityPolicy( child_->SetEdgeSecurityPolicy(request)); } +StatusOr +BackendServicesTracingConnection::SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + SetEdgeSecurityPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_backend_services_v1::BackendServicesConnection::" + "SetEdgeSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackendServicesTracingConnection::SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_backend_services_v1::BackendServicesConnection::" + "SetEdgeSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr BackendServicesTracingConnection::SetIamPolicy( google::cloud::cpp::compute::backend_services::v1:: @@ -199,6 +361,33 @@ BackendServicesTracingConnection::SetSecurityPolicy( return internal::EndSpan(std::move(span), child_->SetSecurityPolicy(request)); } +StatusOr +BackendServicesTracingConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + SetSecurityPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_backend_services_v1::BackendServicesConnection::" + "SetSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackendServicesTracingConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_backend_services_v1::BackendServicesConnection::" + "SetSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr BackendServicesTracingConnection::TestIamPermissions( google::cloud::cpp::compute::backend_services::v1:: @@ -222,6 +411,33 @@ BackendServicesTracingConnection::UpdateBackendService( child_->UpdateBackendService(request)); } +StatusOr +BackendServicesTracingConnection::UpdateBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + UpdateBackendServiceRequest const& request) { + auto span = internal::MakeSpan( + "compute_backend_services_v1::BackendServicesConnection::" + "UpdateBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateBackendService( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackendServicesTracingConnection::UpdateBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_backend_services_v1::BackendServicesConnection::" + "UpdateBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateBackendService( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.h b/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.h index fa805bad68f56..a79618afede28 100644 --- a/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.h +++ b/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.h @@ -45,6 +45,15 @@ class BackendServicesTracingConnection google::cloud::cpp::compute::backend_services::v1:: AddSignedUrlKeyRequest const& request) override; + StatusOr AddSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + AddSignedUrlKeyRequest const& request) override; + + future> AddSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange> AggregatedListBackendServices( @@ -55,10 +64,30 @@ class BackendServicesTracingConnection DeleteBackendService(google::cloud::cpp::compute::backend_services::v1:: DeleteBackendServiceRequest const& request) override; + StatusOr DeleteBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + DeleteBackendServiceRequest const& request) override; + + future> + DeleteBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteSignedUrlKey(google::cloud::cpp::compute::backend_services::v1:: DeleteSignedUrlKeyRequest const& request) override; + StatusOr DeleteSignedUrlKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + DeleteSignedUrlKeyRequest const& request) override; + + future> + DeleteSignedUrlKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetBackendService( google::cloud::cpp::compute::backend_services::v1:: GetBackendServiceRequest const& request) override; @@ -76,6 +105,16 @@ class BackendServicesTracingConnection InsertBackendService(google::cloud::cpp::compute::backend_services::v1:: InsertBackendServiceRequest const& request) override; + StatusOr InsertBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + InsertBackendServiceRequest const& request) override; + + future> + InsertBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListBackendServices(google::cloud::cpp::compute::backend_services::v1:: ListBackendServicesRequest request) override; @@ -88,11 +127,31 @@ class BackendServicesTracingConnection PatchBackendService(google::cloud::cpp::compute::backend_services::v1:: PatchBackendServiceRequest const& request) override; + StatusOr PatchBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + PatchBackendServiceRequest const& request) override; + + future> + PatchBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetEdgeSecurityPolicy( google::cloud::cpp::compute::backend_services::v1:: SetEdgeSecurityPolicyRequest const& request) override; + StatusOr SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + SetEdgeSecurityPolicyRequest const& request) override; + + future> + SetEdgeSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::backend_services::v1:: SetIamPolicyRequest const& request) override; @@ -101,6 +160,16 @@ class BackendServicesTracingConnection SetSecurityPolicy(google::cloud::cpp::compute::backend_services::v1:: SetSecurityPolicyRequest const& request) override; + StatusOr SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + SetSecurityPolicyRequest const& request) override; + + future> + SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::backend_services::v1:: TestIamPermissionsRequest const& request) override; @@ -109,6 +178,16 @@ class BackendServicesTracingConnection UpdateBackendService(google::cloud::cpp::compute::backend_services::v1:: UpdateBackendServiceRequest const& request) override; + StatusOr UpdateBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + UpdateBackendServiceRequest const& request) override; + + future> + UpdateBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/backend_services/v1/mocks/mock_backend_services_connection.h b/google/cloud/compute/backend_services/v1/mocks/mock_backend_services_connection.h index 77612565c3b51..47023f0b4615c 100644 --- a/google/cloud/compute/backend_services/v1/mocks/mock_backend_services_connection.h +++ b/google/cloud/compute/backend_services/v1/mocks/mock_backend_services_connection.h @@ -53,6 +53,19 @@ class MockBackendServicesConnection AddSignedUrlKeyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + AddSignedUrlKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + AddSignedUrlKeyRequest const& request), + (override)); + + MOCK_METHOD(future>, + AddSignedUrlKey, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange>), @@ -67,12 +80,38 @@ class MockBackendServicesConnection DeleteBackendServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteBackendService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + DeleteBackendServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteBackendService, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteSignedUrlKey, (google::cloud::cpp::compute::backend_services::v1:: DeleteSignedUrlKeyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteSignedUrlKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + DeleteSignedUrlKeyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteSignedUrlKey, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetBackendService, (google::cloud::cpp::compute::backend_services::v1:: @@ -97,6 +136,19 @@ class MockBackendServicesConnection InsertBackendServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertBackendService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + InsertBackendServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertBackendService, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListBackendServices, (google::cloud::cpp::compute::backend_services::v1:: @@ -116,12 +168,38 @@ class MockBackendServicesConnection PatchBackendServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchBackendService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + PatchBackendServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchBackendService, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetEdgeSecurityPolicy, (google::cloud::cpp::compute::backend_services::v1:: SetEdgeSecurityPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetEdgeSecurityPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + SetEdgeSecurityPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetEdgeSecurityPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, SetIamPolicy, (google::cloud::cpp::compute::backend_services::v1:: SetIamPolicyRequest const& request), @@ -133,6 +211,19 @@ class MockBackendServicesConnection SetSecurityPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetSecurityPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + SetSecurityPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetSecurityPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, TestIamPermissions, @@ -145,6 +236,19 @@ class MockBackendServicesConnection (google::cloud::cpp::compute::backend_services::v1:: UpdateBackendServiceRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + UpdateBackendService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::backend_services::v1:: + UpdateBackendServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateBackendService, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/disk_types/v1/disk_types_connection.h b/google/cloud/compute/disk_types/v1/disk_types_connection.h index 0b29ddc91dafd..faea77ddcc9d3 100644 --- a/google/cloud/compute/disk_types/v1/disk_types_connection.h +++ b/google/cloud/compute/disk_types/v1/disk_types_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/disk_types/v1/disk_types_connection_idempotency_policy.h" #include "google/cloud/compute/disk_types/v1/internal/disk_types_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/compute/disks/v1/disks_connection.cc b/google/cloud/compute/disks/v1/disks_connection.cc index 3f8ffcef37fc9..c117ddbed8371 100644 --- a/google/cloud/compute/disks/v1/disks_connection.cc +++ b/google/cloud/compute/disks/v1/disks_connection.cc @@ -44,6 +44,23 @@ DisksConnection::AddResourcePolicies( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DisksConnection::AddResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DisksConnection::AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange< std::pair> DisksConnection::AggregatedListDisks( @@ -62,6 +79,22 @@ DisksConnection::BulkInsert( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DisksConnection::BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::BulkInsertRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DisksConnection::BulkInsert(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DisksConnection::CreateSnapshot( google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const&) { @@ -70,6 +103,23 @@ DisksConnection::CreateSnapshot( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DisksConnection::CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DisksConnection::CreateSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DisksConnection::DeleteDisk( google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const&) { @@ -78,6 +128,22 @@ DisksConnection::DeleteDisk( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DisksConnection::DeleteDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DisksConnection::DeleteDisk(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DisksConnection::GetDisk( google::cloud::cpp::compute::disks::v1::GetDiskRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -96,6 +162,22 @@ DisksConnection::InsertDisk( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DisksConnection::InsertDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::InsertDiskRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DisksConnection::InsertDisk(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange DisksConnection::ListDisks( google::cloud::cpp::compute::disks::v1:: ListDisksRequest) { // NOLINT(performance-unnecessary-value-param) @@ -112,6 +194,24 @@ DisksConnection::RemoveResourcePolicies( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DisksConnection::RemoveResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + RemoveResourcePoliciesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DisksConnection::RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DisksConnection::Resize( google::cloud::cpp::compute::disks::v1::ResizeRequest const&) { @@ -120,6 +220,21 @@ DisksConnection::Resize( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DisksConnection::Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::ResizeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DisksConnection::Resize(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DisksConnection::SetIamPolicy( google::cloud::cpp::compute::disks::v1::SetIamPolicyRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -133,6 +248,21 @@ DisksConnection::SetLabels( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DisksConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::SetLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DisksConnection::SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DisksConnection::StartAsyncReplication( google::cloud::cpp::compute::disks::v1:: @@ -142,6 +272,24 @@ DisksConnection::StartAsyncReplication( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DisksConnection::StartAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + StartAsyncReplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DisksConnection::StartAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DisksConnection::StopAsyncReplication(google::cloud::cpp::compute::disks::v1:: StopAsyncReplicationRequest const&) { @@ -150,10 +298,46 @@ DisksConnection::StopAsyncReplication(google::cloud::cpp::compute::disks::v1:: Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DisksConnection::StopAsyncReplication(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + StopAsyncReplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +DisksConnection::StopAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DisksConnection::StopGroupAsyncReplication( + google::cloud::cpp::compute::disks::v1:: + StopGroupAsyncReplicationRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr DisksConnection::StopGroupAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::disks::v1:: StopGroupAsyncReplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DisksConnection::StopGroupAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -173,6 +357,22 @@ DisksConnection::UpdateDisk( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DisksConnection::UpdateDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DisksConnection::UpdateDisk(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_disks_v1 } // namespace cloud diff --git a/google/cloud/compute/disks/v1/disks_connection.h b/google/cloud/compute/disks/v1/disks_connection.h index 8235a2a64168f..b659efcc53e20 100644 --- a/google/cloud/compute/disks/v1/disks_connection.h +++ b/google/cloud/compute/disks/v1/disks_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/disks/v1/disks_connection_idempotency_policy.h" #include "google/cloud/compute/disks/v1/internal/disks_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -185,6 +187,17 @@ class DisksConnection { google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const& request); + virtual StatusOr + AddResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const& + request); + + virtual future> + AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange< std::pair> AggregatedListDisks( @@ -195,15 +208,40 @@ class DisksConnection { BulkInsert( google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& request); + virtual StatusOr BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& request); + + virtual future> + BulkInsert(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> CreateSnapshot( google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& request); + virtual StatusOr CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& + request); + + virtual future> + CreateSnapshot(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteDisk( google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request); + virtual StatusOr DeleteDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request); + + virtual future> + DeleteDisk(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetDisk( google::cloud::cpp::compute::disks::v1::GetDiskRequest const& request); @@ -215,6 +253,14 @@ class DisksConnection { InsertDisk( google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& request); + virtual StatusOr InsertDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& request); + + virtual future> + InsertDisk(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListDisks( google::cloud::cpp::compute::disks::v1::ListDisksRequest request); @@ -222,9 +268,28 @@ class DisksConnection { RemoveResourcePolicies(google::cloud::cpp::compute::disks::v1:: RemoveResourcePoliciesRequest const& request); + virtual StatusOr + RemoveResourcePolicies(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + RemoveResourcePoliciesRequest const& request); + + virtual future> + RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> Resize( google::cloud::cpp::compute::disks::v1::ResizeRequest const& request); + virtual StatusOr Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::ResizeRequest const& request); + + virtual future> Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr SetIamPolicy( google::cloud::cpp::compute::disks::v1::SetIamPolicyRequest const& request); @@ -233,20 +298,61 @@ class DisksConnection { SetLabels( google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request); + virtual StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request); + + virtual future> + SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> StartAsyncReplication(google::cloud::cpp::compute::disks::v1:: StartAsyncReplicationRequest const& request); + virtual StatusOr + StartAsyncReplication(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + StartAsyncReplicationRequest const& request); + + virtual future> + StartAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> StopAsyncReplication( google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const& request); + virtual StatusOr + StopAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const& + request); + virtual future> + StopAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + + virtual future> + StopGroupAsyncReplication( + google::cloud::cpp::compute::disks::v1:: + StopGroupAsyncReplicationRequest const& request); + + virtual StatusOr StopGroupAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::disks::v1:: StopGroupAsyncReplicationRequest const& request); + virtual future> + StopGroupAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr TestIamPermissions( google::cloud::cpp::compute::disks::v1::TestIamPermissionsRequest const& @@ -255,6 +361,14 @@ class DisksConnection { virtual future> UpdateDisk( google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request); + + virtual StatusOr UpdateDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request); + + virtual future> + UpdateDisk(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/disks/v1/internal/disks_rest_connection_impl.cc b/google/cloud/compute/disks/v1/internal/disks_rest_connection_impl.cc index 47bf2c148619b..e06278c4c3c99 100644 --- a/google/cloud/compute/disks/v1/internal/disks_rest_connection_impl.cc +++ b/google/cloud/compute/disks/v1/internal/disks_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -102,6 +103,79 @@ DisksRestConnectionImpl::AddResourcePolicies( }); } +StatusOr +DisksRestConnectionImpl::AddResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddResourcePolicies(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::disks::v1:: + AddResourcePoliciesRequest const& request) { + return stub_->AddResourcePolicies(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DisksRestConnectionImpl::AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StreamRange< std::pair> DisksRestConnectionImpl::AggregatedListDisks( @@ -200,6 +274,78 @@ DisksRestConnectionImpl::BulkInsert( }); } +StatusOr +DisksRestConnectionImpl::BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BulkInsert(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& + request) { + return stub_->BulkInsert(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DisksRestConnectionImpl::BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> DisksRestConnectionImpl::CreateSnapshot( google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& @@ -261,6 +407,80 @@ DisksRestConnectionImpl::CreateSnapshot( }); } +StatusOr +DisksRestConnectionImpl::CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateSnapshot(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& + request) { + return stub_->CreateSnapshot(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DisksRestConnectionImpl::CreateSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> DisksRestConnectionImpl::DeleteDisk( google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request) { @@ -321,6 +541,78 @@ DisksRestConnectionImpl::DeleteDisk( }); } +StatusOr +DisksRestConnectionImpl::DeleteDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDisk(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& + request) { + return stub_->DeleteDisk(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DisksRestConnectionImpl::DeleteDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StatusOr DisksRestConnectionImpl::GetDisk( google::cloud::cpp::compute::disks::v1::GetDiskRequest const& request) { @@ -412,6 +704,78 @@ DisksRestConnectionImpl::InsertDisk( }); } +StatusOr +DisksRestConnectionImpl::InsertDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertDisk(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& + request) { + return stub_->InsertDisk(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DisksRestConnectionImpl::InsertDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StreamRange DisksRestConnectionImpl::ListDisks( google::cloud::cpp::compute::disks::v1::ListDisksRequest request) { @@ -508,18 +872,91 @@ DisksRestConnectionImpl::RemoveResourcePolicies( }); } -future> -DisksRestConnectionImpl::Resize( - google::cloud::cpp::compute::disks::v1::ResizeRequest const& request) { +StatusOr +DisksRestConnectionImpl::RemoveResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::RemoveResourcePoliciesRequest const& + request) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< - google::cloud::cpp::compute::v1::Operation, - google::cloud::cpp::compute::v1::Operation, - google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, - google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_]( - CompletionQueue& cq, + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveResourcePolicies(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::disks::v1:: + RemoveResourcePoliciesRequest const& request) { + return stub_->RemoveResourcePolicies(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DisksRestConnectionImpl::RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +future> +DisksRestConnectionImpl::Resize( + google::cloud::cpp::compute::disks::v1::ResizeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_]( + CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::cpp::compute::disks::v1::ResizeRequest const& @@ -568,6 +1005,78 @@ DisksRestConnectionImpl::Resize( }); } +StatusOr +DisksRestConnectionImpl::Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::ResizeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Resize(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::disks::v1::ResizeRequest const& + request) { + return stub_->Resize(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DisksRestConnectionImpl::Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StatusOr DisksRestConnectionImpl::SetIamPolicy( google::cloud::cpp::compute::disks::v1::SetIamPolicyRequest const& @@ -644,6 +1153,78 @@ DisksRestConnectionImpl::SetLabels( }); } +StatusOr +DisksRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& + request) { + return stub_->SetLabels(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DisksRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> DisksRestConnectionImpl::StartAsyncReplication( google::cloud::cpp::compute::disks::v1::StartAsyncReplicationRequest const& @@ -704,6 +1285,79 @@ DisksRestConnectionImpl::StartAsyncReplication( }); } +StatusOr +DisksRestConnectionImpl::StartAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::StartAsyncReplicationRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartAsyncReplication(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::disks::v1:: + StartAsyncReplicationRequest const& request) { + return stub_->StartAsyncReplication(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DisksRestConnectionImpl::StartAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> DisksRestConnectionImpl::StopAsyncReplication( google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const& @@ -764,6 +1418,79 @@ DisksRestConnectionImpl::StopAsyncReplication( }); } +StatusOr +DisksRestConnectionImpl::StopAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StopAsyncReplication(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::disks::v1:: + StopAsyncReplicationRequest const& request) { + return stub_->StopAsyncReplication(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DisksRestConnectionImpl::StopAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> DisksRestConnectionImpl::StopGroupAsyncReplication( google::cloud::cpp::compute::disks::v1:: @@ -824,6 +1551,79 @@ DisksRestConnectionImpl::StopGroupAsyncReplication( }); } +StatusOr +DisksRestConnectionImpl::StopGroupAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + StopGroupAsyncReplicationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StopGroupAsyncReplication(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::disks::v1:: + StopGroupAsyncReplicationRequest const& request) { + return stub_->StopGroupAsyncReplication(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DisksRestConnectionImpl::StopGroupAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StatusOr DisksRestConnectionImpl::TestIamPermissions( google::cloud::cpp::compute::disks::v1::TestIamPermissionsRequest const& @@ -900,6 +1700,78 @@ DisksRestConnectionImpl::UpdateDisk( }); } +StatusOr +DisksRestConnectionImpl::UpdateDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDisk(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& + request) { + return stub_->UpdateDisk(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DisksRestConnectionImpl::UpdateDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_disks_v1_internal } // namespace cloud diff --git a/google/cloud/compute/disks/v1/internal/disks_rest_connection_impl.h b/google/cloud/compute/disks/v1/internal/disks_rest_connection_impl.h index ea1c939095d7d..c23b0e0c18045 100644 --- a/google/cloud/compute/disks/v1/internal/disks_rest_connection_impl.h +++ b/google/cloud/compute/disks/v1/internal/disks_rest_connection_impl.h @@ -54,6 +54,16 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const& request) override; + StatusOr AddResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const& + request) override; + + future> + AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange< std::pair> AggregatedListDisks( @@ -64,14 +74,41 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& request) override; + StatusOr BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& request) + override; + + future> BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> CreateSnapshot( google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& request) override; + StatusOr CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& + request) override; + + future> CreateSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteDisk( google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request) override; + StatusOr DeleteDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request) + override; + + future> DeleteDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetDisk( google::cloud::cpp::compute::disks::v1::GetDiskRequest const& request) override; @@ -84,6 +121,15 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& request) override; + StatusOr InsertDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& request) + override; + + future> InsertDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListDisks( google::cloud::cpp::compute::disks::v1::ListDisksRequest request) override; @@ -93,10 +139,29 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { google::cloud::cpp::compute::disks::v1:: RemoveResourcePoliciesRequest const& request) override; + StatusOr RemoveResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + RemoveResourcePoliciesRequest const& request) override; + + future> + RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Resize( google::cloud::cpp::compute::disks::v1::ResizeRequest const& request) override; + StatusOr Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::ResizeRequest const& request) + override; + + future> Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::disks::v1::SetIamPolicyRequest const& request) override; @@ -105,21 +170,61 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request) + override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> StartAsyncReplication( google::cloud::cpp::compute::disks::v1:: StartAsyncReplicationRequest const& request) override; + StatusOr StartAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + StartAsyncReplicationRequest const& request) override; + + future> + StartAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> StopAsyncReplication( google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const& request) override; + StatusOr StopAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const& + request) override; + + future> + StopAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> StopGroupAsyncReplication( google::cloud::cpp::compute::disks::v1:: StopGroupAsyncReplicationRequest const& request) override; + StatusOr + StopGroupAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + StopGroupAsyncReplicationRequest const& request) override; + + future> + StopGroupAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions( google::cloud::cpp::compute::disks::v1::TestIamPermissionsRequest const& @@ -129,6 +234,15 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request) override; + StatusOr UpdateDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request) + override; + + future> UpdateDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy( Options const& options) { diff --git a/google/cloud/compute/disks/v1/internal/disks_tracing_connection.cc b/google/cloud/compute/disks/v1/internal/disks_tracing_connection.cc index eaa936957a046..adb7d224dd0c9 100644 --- a/google/cloud/compute/disks/v1/internal/disks_tracing_connection.cc +++ b/google/cloud/compute/disks/v1/internal/disks_tracing_connection.cc @@ -44,6 +44,31 @@ DisksTracingConnection::AddResourcePolicies( child_->AddResourcePolicies(request)); } +StatusOr +DisksTracingConnection::AddResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const& + request) { + auto span = internal::MakeSpan( + "compute_disks_v1::DisksConnection::AddResourcePolicies"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddResourcePolicies(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DisksTracingConnection::AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_disks_v1::DisksConnection::AddResourcePolicies"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddResourcePolicies(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange< std::pair> DisksTracingConnection::AggregatedListDisks( @@ -67,6 +92,30 @@ DisksTracingConnection::BulkInsert( return internal::EndSpan(std::move(span), child_->BulkInsert(request)); } +StatusOr +DisksTracingConnection::BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& request) { + auto span = + internal::MakeSpan("compute_disks_v1::DisksConnection::BulkInsert"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BulkInsert(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DisksTracingConnection::BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_disks_v1::DisksConnection::BulkInsert"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BulkInsert(google::cloud::ExperimentalTag{}, operation)); +} + future> DisksTracingConnection::CreateSnapshot( google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& @@ -77,6 +126,31 @@ DisksTracingConnection::CreateSnapshot( return internal::EndSpan(std::move(span), child_->CreateSnapshot(request)); } +StatusOr +DisksTracingConnection::CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& + request) { + auto span = + internal::MakeSpan("compute_disks_v1::DisksConnection::CreateSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateSnapshot(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DisksTracingConnection::CreateSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_disks_v1::DisksConnection::CreateSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateSnapshot(google::cloud::ExperimentalTag{}, operation)); +} + future> DisksTracingConnection::DeleteDisk( google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request) { @@ -86,6 +160,30 @@ DisksTracingConnection::DeleteDisk( return internal::EndSpan(std::move(span), child_->DeleteDisk(request)); } +StatusOr +DisksTracingConnection::DeleteDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request) { + auto span = + internal::MakeSpan("compute_disks_v1::DisksConnection::DeleteDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteDisk(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DisksTracingConnection::DeleteDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_disks_v1::DisksConnection::DeleteDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteDisk(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DisksTracingConnection::GetDisk( google::cloud::cpp::compute::disks::v1::GetDiskRequest const& request) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::GetDisk"); @@ -112,6 +210,30 @@ DisksTracingConnection::InsertDisk( return internal::EndSpan(std::move(span), child_->InsertDisk(request)); } +StatusOr +DisksTracingConnection::InsertDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& request) { + auto span = + internal::MakeSpan("compute_disks_v1::DisksConnection::InsertDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertDisk(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DisksTracingConnection::InsertDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_disks_v1::DisksConnection::InsertDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertDisk(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange DisksTracingConnection::ListDisks( google::cloud::cpp::compute::disks::v1::ListDisksRequest request) { @@ -134,6 +256,31 @@ DisksTracingConnection::RemoveResourcePolicies( child_->RemoveResourcePolicies(request)); } +StatusOr +DisksTracingConnection::RemoveResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::RemoveResourcePoliciesRequest const& + request) { + auto span = internal::MakeSpan( + "compute_disks_v1::DisksConnection::RemoveResourcePolicies"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RemoveResourcePolicies( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DisksTracingConnection::RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_disks_v1::DisksConnection::RemoveResourcePolicies"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RemoveResourcePolicies( + google::cloud::ExperimentalTag{}, operation)); +} + future> DisksTracingConnection::Resize( google::cloud::cpp::compute::disks::v1::ResizeRequest const& request) { @@ -142,6 +289,28 @@ DisksTracingConnection::Resize( return internal::EndSpan(std::move(span), child_->Resize(request)); } +StatusOr +DisksTracingConnection::Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::ResizeRequest const& request) { + auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::Resize"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->Resize(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DisksTracingConnection::Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::Resize"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Resize(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DisksTracingConnection::SetIamPolicy( google::cloud::cpp::compute::disks::v1::SetIamPolicyRequest const& @@ -161,6 +330,30 @@ DisksTracingConnection::SetLabels( return internal::EndSpan(std::move(span), child_->SetLabels(request)); } +StatusOr +DisksTracingConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request) { + auto span = + internal::MakeSpan("compute_disks_v1::DisksConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DisksTracingConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_disks_v1::DisksConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); +} + future> DisksTracingConnection::StartAsyncReplication( google::cloud::cpp::compute::disks::v1::StartAsyncReplicationRequest const& @@ -172,6 +365,31 @@ DisksTracingConnection::StartAsyncReplication( child_->StartAsyncReplication(request)); } +StatusOr +DisksTracingConnection::StartAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::StartAsyncReplicationRequest const& + request) { + auto span = internal::MakeSpan( + "compute_disks_v1::DisksConnection::StartAsyncReplication"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->StartAsyncReplication( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DisksTracingConnection::StartAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_disks_v1::DisksConnection::StartAsyncReplication"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->StartAsyncReplication( + google::cloud::ExperimentalTag{}, operation)); +} + future> DisksTracingConnection::StopAsyncReplication( google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const& @@ -183,6 +401,31 @@ DisksTracingConnection::StopAsyncReplication( child_->StopAsyncReplication(request)); } +StatusOr +DisksTracingConnection::StopAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const& + request) { + auto span = internal::MakeSpan( + "compute_disks_v1::DisksConnection::StopAsyncReplication"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->StopAsyncReplication( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DisksTracingConnection::StopAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_disks_v1::DisksConnection::StopAsyncReplication"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->StopAsyncReplication( + google::cloud::ExperimentalTag{}, operation)); +} + future> DisksTracingConnection::StopGroupAsyncReplication( google::cloud::cpp::compute::disks::v1:: @@ -194,6 +437,31 @@ DisksTracingConnection::StopGroupAsyncReplication( child_->StopGroupAsyncReplication(request)); } +StatusOr +DisksTracingConnection::StopGroupAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + StopGroupAsyncReplicationRequest const& request) { + auto span = internal::MakeSpan( + "compute_disks_v1::DisksConnection::StopGroupAsyncReplication"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->StopGroupAsyncReplication( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DisksTracingConnection::StopGroupAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_disks_v1::DisksConnection::StopGroupAsyncReplication"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->StopGroupAsyncReplication( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DisksTracingConnection::TestIamPermissions( google::cloud::cpp::compute::disks::v1::TestIamPermissionsRequest const& @@ -213,6 +481,30 @@ DisksTracingConnection::UpdateDisk( return internal::EndSpan(std::move(span), child_->UpdateDisk(request)); } +StatusOr +DisksTracingConnection::UpdateDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request) { + auto span = + internal::MakeSpan("compute_disks_v1::DisksConnection::UpdateDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateDisk(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DisksTracingConnection::UpdateDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_disks_v1::DisksConnection::UpdateDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateDisk(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr MakeDisksTracingConnection( diff --git a/google/cloud/compute/disks/v1/internal/disks_tracing_connection.h b/google/cloud/compute/disks/v1/internal/disks_tracing_connection.h index 84446cdbcfea5..777ad2880918d 100644 --- a/google/cloud/compute/disks/v1/internal/disks_tracing_connection.h +++ b/google/cloud/compute/disks/v1/internal/disks_tracing_connection.h @@ -44,6 +44,16 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const& request) override; + StatusOr AddResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const& + request) override; + + future> + AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange< std::pair> AggregatedListDisks( @@ -54,14 +64,41 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& request) override; + StatusOr BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& request) + override; + + future> BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> CreateSnapshot( google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& request) override; + StatusOr CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& + request) override; + + future> CreateSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteDisk( google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request) override; + StatusOr DeleteDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request) + override; + + future> DeleteDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetDisk( google::cloud::cpp::compute::disks::v1::GetDiskRequest const& request) override; @@ -74,6 +111,15 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& request) override; + StatusOr InsertDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& request) + override; + + future> InsertDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListDisks( google::cloud::cpp::compute::disks::v1::ListDisksRequest request) override; @@ -83,10 +129,29 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { google::cloud::cpp::compute::disks::v1:: RemoveResourcePoliciesRequest const& request) override; + StatusOr RemoveResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + RemoveResourcePoliciesRequest const& request) override; + + future> + RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Resize( google::cloud::cpp::compute::disks::v1::ResizeRequest const& request) override; + StatusOr Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::ResizeRequest const& request) + override; + + future> Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::disks::v1::SetIamPolicyRequest const& request) override; @@ -95,21 +160,61 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request) + override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> StartAsyncReplication( google::cloud::cpp::compute::disks::v1:: StartAsyncReplicationRequest const& request) override; + StatusOr StartAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + StartAsyncReplicationRequest const& request) override; + + future> + StartAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> StopAsyncReplication( google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const& request) override; + StatusOr StopAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const& + request) override; + + future> + StopAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> StopGroupAsyncReplication( google::cloud::cpp::compute::disks::v1:: StopGroupAsyncReplicationRequest const& request) override; + StatusOr + StopGroupAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + StopGroupAsyncReplicationRequest const& request) override; + + future> + StopGroupAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions( google::cloud::cpp::compute::disks::v1::TestIamPermissionsRequest const& @@ -119,6 +224,15 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request) override; + StatusOr UpdateDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request) + override; + + future> UpdateDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/disks/v1/mocks/mock_disks_connection.h b/google/cloud/compute/disks/v1/mocks/mock_disks_connection.h index aecdfb49c66ad..e30019297a2dc 100644 --- a/google/cloud/compute/disks/v1/mocks/mock_disks_connection.h +++ b/google/cloud/compute/disks/v1/mocks/mock_disks_connection.h @@ -53,6 +53,19 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { request), (override)); + MOCK_METHOD( + StatusOr, AddResourcePolicies, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const& + request), + (override)); + + MOCK_METHOD(future>, + AddResourcePolicies, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange>), @@ -67,6 +80,18 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { request), (override)); + MOCK_METHOD(StatusOr, BulkInsert, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& + request), + (override)); + + MOCK_METHOD(future>, + BulkInsert, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateSnapshot, @@ -74,12 +99,37 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { request), (override)); + MOCK_METHOD( + StatusOr, CreateSnapshot, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateSnapshot, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteDisk, (google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteDisk, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteDisk, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetDisk, (google::cloud::cpp::compute::disks::v1::GetDiskRequest const& request), @@ -97,6 +147,18 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { request), (override)); + MOCK_METHOD(StatusOr, InsertDisk, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& + request), + (override)); + + MOCK_METHOD(future>, + InsertDisk, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListDisks, (google::cloud::cpp::compute::disks::v1::ListDisksRequest request), @@ -108,11 +170,36 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { RemoveResourcePoliciesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + RemoveResourcePolicies, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + RemoveResourcePoliciesRequest const& request), + (override)); + + MOCK_METHOD(future>, + RemoveResourcePolicies, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, Resize, (google::cloud::cpp::compute::disks::v1::ResizeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, Resize, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::ResizeRequest const& request), + (override)); + + MOCK_METHOD(future>, + Resize, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, SetIamPolicy, (google::cloud::cpp::compute::disks::v1::SetIamPolicyRequest const& @@ -124,24 +211,75 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { (google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, SetLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetLabels, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, StartAsyncReplication, (google::cloud::cpp::compute::disks::v1:: StartAsyncReplicationRequest const& request), (override)); + MOCK_METHOD(StatusOr, + StartAsyncReplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + StartAsyncReplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + StartAsyncReplication, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, StopAsyncReplication, (google::cloud::cpp::compute::disks::v1:: StopAsyncReplicationRequest const& request), (override)); + MOCK_METHOD(StatusOr, + StopAsyncReplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + StopAsyncReplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + StopAsyncReplication, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, StopGroupAsyncReplication, (google::cloud::cpp::compute::disks::v1:: StopGroupAsyncReplicationRequest const& request), (override)); + MOCK_METHOD(StatusOr, + StopGroupAsyncReplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1:: + StopGroupAsyncReplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + StopGroupAsyncReplication, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, TestIamPermissions, @@ -154,6 +292,18 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { (google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request), (override)); + + MOCK_METHOD(StatusOr, UpdateDisk, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateDisk, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection.cc b/google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection.cc index cff00c7ebb84b..9d4bccece8c82 100644 --- a/google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection.cc +++ b/google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection.cc @@ -46,6 +46,24 @@ ExternalVpnGatewaysConnection::DeleteExternalVpnGateway( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ExternalVpnGatewaysConnection::DeleteExternalVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + DeleteExternalVpnGatewayRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ExternalVpnGatewaysConnection::DeleteExternalVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ExternalVpnGatewaysConnection::GetExternalVpnGateway( google::cloud::cpp::compute::external_vpn_gateways::v1:: @@ -62,6 +80,24 @@ ExternalVpnGatewaysConnection::InsertExternalVpnGateway( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ExternalVpnGatewaysConnection::InsertExternalVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + InsertExternalVpnGatewayRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ExternalVpnGatewaysConnection::InsertExternalVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ExternalVpnGatewaysConnection::ListExternalVpnGateways( google::cloud::cpp::compute::external_vpn_gateways::v1:: @@ -79,6 +115,24 @@ ExternalVpnGatewaysConnection::SetLabels( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ExternalVpnGatewaysConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + SetLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ExternalVpnGatewaysConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ExternalVpnGatewaysConnection::TestIamPermissions( google::cloud::cpp::compute::external_vpn_gateways::v1:: diff --git a/google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection.h b/google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection.h index 4d16fa1362d65..269d96c5ebd07 100644 --- a/google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection.h +++ b/google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection_idempotency_policy.h" #include "google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -194,6 +196,17 @@ class ExternalVpnGatewaysConnection { google::cloud::cpp::compute::external_vpn_gateways::v1:: DeleteExternalVpnGatewayRequest const& request); + virtual StatusOr + DeleteExternalVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + DeleteExternalVpnGatewayRequest const& request); + + virtual future> + DeleteExternalVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetExternalVpnGateway(google::cloud::cpp::compute::external_vpn_gateways::v1:: GetExternalVpnGatewayRequest const& request); @@ -203,6 +216,17 @@ class ExternalVpnGatewaysConnection { google::cloud::cpp::compute::external_vpn_gateways::v1:: InsertExternalVpnGatewayRequest const& request); + virtual StatusOr + InsertExternalVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + InsertExternalVpnGatewayRequest const& request); + + virtual future> + InsertExternalVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListExternalVpnGateways(google::cloud::cpp::compute::external_vpn_gateways:: v1::ListExternalVpnGatewaysRequest request); @@ -211,6 +235,15 @@ class ExternalVpnGatewaysConnection { SetLabels(google::cloud::cpp::compute::external_vpn_gateways::v1:: SetLabelsRequest const& request); + virtual StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + SetLabelsRequest const& request); + + virtual future> + SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr TestIamPermissions(google::cloud::cpp::compute::external_vpn_gateways::v1:: TestIamPermissionsRequest const& request); diff --git a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_rest_connection_impl.cc b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_rest_connection_impl.cc index ac315b1b6d1cd..a022f8e0a1684 100644 --- a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_rest_connection_impl.cc +++ b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -103,6 +104,77 @@ ExternalVpnGatewaysRestConnectionImpl::DeleteExternalVpnGateway( }); } +StatusOr +ExternalVpnGatewaysRestConnectionImpl::DeleteExternalVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + DeleteExternalVpnGatewayRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteExternalVpnGateway(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + DeleteExternalVpnGatewayRequest const& request) { + return stub_->DeleteExternalVpnGateway(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ExternalVpnGatewaysRestConnectionImpl::DeleteExternalVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr ExternalVpnGatewaysRestConnectionImpl::GetExternalVpnGateway( google::cloud::cpp::compute::external_vpn_gateways::v1:: @@ -177,6 +249,77 @@ ExternalVpnGatewaysRestConnectionImpl::InsertExternalVpnGateway( }); } +StatusOr +ExternalVpnGatewaysRestConnectionImpl::InsertExternalVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + InsertExternalVpnGatewayRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertExternalVpnGateway(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + InsertExternalVpnGatewayRequest const& request) { + return stub_->InsertExternalVpnGateway(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ExternalVpnGatewaysRestConnectionImpl::InsertExternalVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange ExternalVpnGatewaysRestConnectionImpl::ListExternalVpnGateways( google::cloud::cpp::compute::external_vpn_gateways::v1:: @@ -275,6 +418,77 @@ ExternalVpnGatewaysRestConnectionImpl::SetLabels( }); } +StatusOr +ExternalVpnGatewaysRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + SetLabelsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + SetLabelsRequest const& request) { + return stub_->SetLabels(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ExternalVpnGatewaysRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr ExternalVpnGatewaysRestConnectionImpl::TestIamPermissions( google::cloud::cpp::compute::external_vpn_gateways::v1:: diff --git a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_rest_connection_impl.h b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_rest_connection_impl.h index 46b0d8dfba0a9..deeb3bcdb3d8a 100644 --- a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_rest_connection_impl.h +++ b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_rest_connection_impl.h @@ -58,6 +58,16 @@ class ExternalVpnGatewaysRestConnectionImpl google::cloud::cpp::compute::external_vpn_gateways::v1:: DeleteExternalVpnGatewayRequest const& request) override; + StatusOr DeleteExternalVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + DeleteExternalVpnGatewayRequest const& request) override; + + future> + DeleteExternalVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetExternalVpnGateway( google::cloud::cpp::compute::external_vpn_gateways::v1:: @@ -68,6 +78,16 @@ class ExternalVpnGatewaysRestConnectionImpl google::cloud::cpp::compute::external_vpn_gateways::v1:: InsertExternalVpnGatewayRequest const& request) override; + StatusOr InsertExternalVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + InsertExternalVpnGatewayRequest const& request) override; + + future> + InsertExternalVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListExternalVpnGateways( google::cloud::cpp::compute::external_vpn_gateways::v1:: @@ -77,6 +97,15 @@ class ExternalVpnGatewaysRestConnectionImpl google::cloud::cpp::compute::external_vpn_gateways::v1:: SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + SetLabelsRequest const& request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::external_vpn_gateways::v1:: TestIamPermissionsRequest const& request) override; diff --git a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.cc b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.cc index d7f4c420630ca..96db505e650c7 100644 --- a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.cc +++ b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.cc @@ -48,6 +48,33 @@ ExternalVpnGatewaysTracingConnection::DeleteExternalVpnGateway( child_->DeleteExternalVpnGateway(request)); } +StatusOr +ExternalVpnGatewaysTracingConnection::DeleteExternalVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + DeleteExternalVpnGatewayRequest const& request) { + auto span = internal::MakeSpan( + "compute_external_vpn_gateways_v1::ExternalVpnGatewaysConnection::" + "DeleteExternalVpnGateway"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteExternalVpnGateway( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ExternalVpnGatewaysTracingConnection::DeleteExternalVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_external_vpn_gateways_v1::ExternalVpnGatewaysConnection::" + "DeleteExternalVpnGateway"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteExternalVpnGateway( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ExternalVpnGatewaysTracingConnection::GetExternalVpnGateway( google::cloud::cpp::compute::external_vpn_gateways::v1:: @@ -71,6 +98,33 @@ ExternalVpnGatewaysTracingConnection::InsertExternalVpnGateway( child_->InsertExternalVpnGateway(request)); } +StatusOr +ExternalVpnGatewaysTracingConnection::InsertExternalVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + InsertExternalVpnGatewayRequest const& request) { + auto span = internal::MakeSpan( + "compute_external_vpn_gateways_v1::ExternalVpnGatewaysConnection::" + "InsertExternalVpnGateway"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertExternalVpnGateway( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ExternalVpnGatewaysTracingConnection::InsertExternalVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_external_vpn_gateways_v1::ExternalVpnGatewaysConnection::" + "InsertExternalVpnGateway"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertExternalVpnGateway( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ExternalVpnGatewaysTracingConnection::ListExternalVpnGateways( google::cloud::cpp::compute::external_vpn_gateways::v1:: @@ -96,6 +150,33 @@ ExternalVpnGatewaysTracingConnection::SetLabels( return internal::EndSpan(std::move(span), child_->SetLabels(request)); } +StatusOr +ExternalVpnGatewaysTracingConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + SetLabelsRequest const& request) { + auto span = internal::MakeSpan( + "compute_external_vpn_gateways_v1::ExternalVpnGatewaysConnection::" + "SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ExternalVpnGatewaysTracingConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_external_vpn_gateways_v1::ExternalVpnGatewaysConnection::" + "SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ExternalVpnGatewaysTracingConnection::TestIamPermissions( google::cloud::cpp::compute::external_vpn_gateways::v1:: diff --git a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.h b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.h index 7a2ed6db04078..59a34762c1731 100644 --- a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.h +++ b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.h @@ -48,6 +48,16 @@ class ExternalVpnGatewaysTracingConnection google::cloud::cpp::compute::external_vpn_gateways::v1:: DeleteExternalVpnGatewayRequest const& request) override; + StatusOr DeleteExternalVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + DeleteExternalVpnGatewayRequest const& request) override; + + future> + DeleteExternalVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetExternalVpnGateway( google::cloud::cpp::compute::external_vpn_gateways::v1:: @@ -58,6 +68,16 @@ class ExternalVpnGatewaysTracingConnection google::cloud::cpp::compute::external_vpn_gateways::v1:: InsertExternalVpnGatewayRequest const& request) override; + StatusOr InsertExternalVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + InsertExternalVpnGatewayRequest const& request) override; + + future> + InsertExternalVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListExternalVpnGateways( google::cloud::cpp::compute::external_vpn_gateways::v1:: @@ -67,6 +87,15 @@ class ExternalVpnGatewaysTracingConnection google::cloud::cpp::compute::external_vpn_gateways::v1:: SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + SetLabelsRequest const& request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::external_vpn_gateways::v1:: TestIamPermissionsRequest const& request) override; diff --git a/google/cloud/compute/external_vpn_gateways/v1/mocks/mock_external_vpn_gateways_connection.h b/google/cloud/compute/external_vpn_gateways/v1/mocks/mock_external_vpn_gateways_connection.h index b87411f3dbc78..9cebb1513d1f1 100644 --- a/google/cloud/compute/external_vpn_gateways/v1/mocks/mock_external_vpn_gateways_connection.h +++ b/google/cloud/compute/external_vpn_gateways/v1/mocks/mock_external_vpn_gateways_connection.h @@ -54,6 +54,19 @@ class MockExternalVpnGatewaysConnection DeleteExternalVpnGatewayRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteExternalVpnGateway, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + DeleteExternalVpnGatewayRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteExternalVpnGateway, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetExternalVpnGateway, (google::cloud::cpp::compute::external_vpn_gateways::v1:: @@ -66,6 +79,19 @@ class MockExternalVpnGatewaysConnection InsertExternalVpnGatewayRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertExternalVpnGateway, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + InsertExternalVpnGatewayRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertExternalVpnGateway, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListExternalVpnGateways, @@ -79,6 +105,18 @@ class MockExternalVpnGatewaysConnection SetLabelsRequest const& request), (override)); + MOCK_METHOD(StatusOr, SetLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::external_vpn_gateways::v1:: + SetLabelsRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetLabels, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, TestIamPermissions, diff --git a/google/cloud/compute/firewall_policies/v1/firewall_policies_connection.cc b/google/cloud/compute/firewall_policies/v1/firewall_policies_connection.cc index dd4756c601704..68a675d0d017c 100644 --- a/google/cloud/compute/firewall_policies/v1/firewall_policies_connection.cc +++ b/google/cloud/compute/firewall_policies/v1/firewall_policies_connection.cc @@ -45,6 +45,24 @@ FirewallPoliciesConnection::AddAssociation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FirewallPoliciesConnection::AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + AddAssociationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FirewallPoliciesConnection::AddAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FirewallPoliciesConnection::AddRule( google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const&) { @@ -53,6 +71,23 @@ FirewallPoliciesConnection::AddRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FirewallPoliciesConnection::AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FirewallPoliciesConnection::AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FirewallPoliciesConnection::CloneRules( google::cloud::cpp::compute::firewall_policies::v1:: @@ -62,6 +97,24 @@ FirewallPoliciesConnection::CloneRules( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FirewallPoliciesConnection::CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + CloneRulesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FirewallPoliciesConnection::CloneRules( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FirewallPoliciesConnection::DeleteFirewallPolicy( google::cloud::cpp::compute::firewall_policies::v1:: @@ -71,6 +124,24 @@ FirewallPoliciesConnection::DeleteFirewallPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FirewallPoliciesConnection::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + DeleteFirewallPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FirewallPoliciesConnection::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr FirewallPoliciesConnection::GetFirewallPolicy( google::cloud::cpp::compute::firewall_policies::v1:: @@ -107,6 +178,24 @@ FirewallPoliciesConnection::InsertFirewallPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FirewallPoliciesConnection::InsertFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + InsertFirewallPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FirewallPoliciesConnection::InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange FirewallPoliciesConnection::ListFirewallPolicies( google::cloud::cpp::compute::firewall_policies::v1:: @@ -131,6 +220,23 @@ FirewallPoliciesConnection::Move( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FirewallPoliciesConnection::Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FirewallPoliciesConnection::Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FirewallPoliciesConnection::PatchFirewallPolicy( google::cloud::cpp::compute::firewall_policies::v1:: @@ -140,6 +246,24 @@ FirewallPoliciesConnection::PatchFirewallPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FirewallPoliciesConnection::PatchFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + PatchFirewallPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FirewallPoliciesConnection::PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FirewallPoliciesConnection::PatchRule( google::cloud::cpp::compute::firewall_policies::v1:: @@ -149,6 +273,24 @@ FirewallPoliciesConnection::PatchRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FirewallPoliciesConnection::PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + PatchRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FirewallPoliciesConnection::PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FirewallPoliciesConnection::RemoveAssociation( google::cloud::cpp::compute::firewall_policies::v1:: @@ -158,6 +300,24 @@ FirewallPoliciesConnection::RemoveAssociation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FirewallPoliciesConnection::RemoveAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + RemoveAssociationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FirewallPoliciesConnection::RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FirewallPoliciesConnection::RemoveRule( google::cloud::cpp::compute::firewall_policies::v1:: @@ -167,6 +327,24 @@ FirewallPoliciesConnection::RemoveRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FirewallPoliciesConnection::RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + RemoveRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FirewallPoliciesConnection::RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr FirewallPoliciesConnection::SetIamPolicy( google::cloud::cpp::compute::firewall_policies::v1:: diff --git a/google/cloud/compute/firewall_policies/v1/firewall_policies_connection.h b/google/cloud/compute/firewall_policies/v1/firewall_policies_connection.h index 3c95e92dfa593..fc0929b1c22c4 100644 --- a/google/cloud/compute/firewall_policies/v1/firewall_policies_connection.h +++ b/google/cloud/compute/firewall_policies/v1/firewall_policies_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/firewall_policies/v1/firewall_policies_connection_idempotency_policy.h" #include "google/cloud/compute/firewall_policies/v1/internal/firewall_policies_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -190,18 +192,56 @@ class FirewallPoliciesConnection { AddAssociation(google::cloud::cpp::compute::firewall_policies::v1:: AddAssociationRequest const& request); + virtual StatusOr AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + AddAssociationRequest const& request); + + virtual future> + AddAssociation(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> AddRule( google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& request); + virtual StatusOr AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& + request); + + virtual future> AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> CloneRules(google::cloud::cpp::compute::firewall_policies::v1:: CloneRulesRequest const& request); + virtual StatusOr CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + CloneRulesRequest const& request); + + virtual future> + CloneRules(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteFirewallPolicy(google::cloud::cpp::compute::firewall_policies::v1:: DeleteFirewallPolicyRequest const& request); + virtual StatusOr + DeleteFirewallPolicy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request); + + virtual future> + DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetFirewallPolicy(google::cloud::cpp::compute::firewall_policies::v1:: GetFirewallPolicyRequest const& request); @@ -222,6 +262,17 @@ class FirewallPoliciesConnection { InsertFirewallPolicy(google::cloud::cpp::compute::firewall_policies::v1:: InsertFirewallPolicyRequest const& request); + virtual StatusOr + InsertFirewallPolicy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + InsertFirewallPolicyRequest const& request); + + virtual future> + InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListFirewallPolicies(google::cloud::cpp::compute::firewall_policies::v1:: ListFirewallPoliciesRequest request); @@ -235,22 +286,69 @@ class FirewallPoliciesConnection { google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const& request); + virtual StatusOr Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const& + request); + + virtual future> Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> PatchFirewallPolicy(google::cloud::cpp::compute::firewall_policies::v1:: PatchFirewallPolicyRequest const& request); + virtual StatusOr + PatchFirewallPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + PatchFirewallPolicyRequest const& request); + + virtual future> + PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> PatchRule(google::cloud::cpp::compute::firewall_policies::v1:: PatchRuleRequest const& request); + virtual StatusOr PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + PatchRuleRequest const& request); + + virtual future> + PatchRule(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> RemoveAssociation(google::cloud::cpp::compute::firewall_policies::v1:: RemoveAssociationRequest const& request); + virtual StatusOr + RemoveAssociation(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + RemoveAssociationRequest const& request); + + virtual future> + RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> RemoveRule(google::cloud::cpp::compute::firewall_policies::v1:: RemoveRuleRequest const& request); + virtual StatusOr RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + RemoveRuleRequest const& request); + + virtual future> + RemoveRule(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr SetIamPolicy( google::cloud::cpp::compute::firewall_policies::v1:: SetIamPolicyRequest const& request); diff --git a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.cc b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.cc index 43d0aeb988ed2..8f486f5ae26a2 100644 --- a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.cc +++ b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -99,6 +100,78 @@ FirewallPoliciesRestConnectionImpl::AddAssociation( v1::DeleteOperationRequest& r) { r.set_operation(op); }); } +StatusOr +FirewallPoliciesRestConnectionImpl::AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + AddAssociationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddAssociation(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::firewall_policies::v1:: + AddAssociationRequest const& request) { + return stub_->AddAssociation(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +FirewallPoliciesRestConnectionImpl::AddAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }); +} + future> FirewallPoliciesRestConnectionImpl::AddRule( google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& @@ -154,6 +227,78 @@ FirewallPoliciesRestConnectionImpl::AddRule( v1::DeleteOperationRequest& r) { r.set_operation(op); }); } +StatusOr +FirewallPoliciesRestConnectionImpl::AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::firewall_policies::v1:: + AddRuleRequest const& request) { + return stub_->AddRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +FirewallPoliciesRestConnectionImpl::AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }); +} + future> FirewallPoliciesRestConnectionImpl::CloneRules( google::cloud::cpp::compute::firewall_policies::v1::CloneRulesRequest const& @@ -209,6 +354,78 @@ FirewallPoliciesRestConnectionImpl::CloneRules( v1::DeleteOperationRequest& r) { r.set_operation(op); }); } +StatusOr +FirewallPoliciesRestConnectionImpl::CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::CloneRulesRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CloneRules(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::firewall_policies::v1:: + CloneRulesRequest const& request) { + return stub_->CloneRules(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +FirewallPoliciesRestConnectionImpl::CloneRules( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }); +} + future> FirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( google::cloud::cpp::compute::firewall_policies::v1:: @@ -264,6 +481,78 @@ FirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( v1::DeleteOperationRequest& r) { r.set_operation(op); }); } +StatusOr +FirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteFirewallPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request) { + return stub_->DeleteFirewallPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +FirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }); +} + StatusOr FirewallPoliciesRestConnectionImpl::GetFirewallPolicy( google::cloud::cpp::compute::firewall_policies::v1:: @@ -383,58 +672,130 @@ FirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( v1::DeleteOperationRequest& r) { r.set_operation(op); }); } -StreamRange -FirewallPoliciesRestConnectionImpl::ListFirewallPolicies( - google::cloud::cpp::compute::firewall_policies::v1:: - ListFirewallPoliciesRequest request) { - request.clear_page_token(); - auto current = google::cloud::internal::SaveCurrentOptions(); - auto idempotency = - idempotency_policy(*current)->ListFirewallPolicies(request); - char const* function_name = __func__; - return google::cloud::internal::MakePaginationRange< - StreamRange>( - current, std::move(request), - [idempotency, function_name, stub = stub_, - retry = std::shared_ptr< - compute_firewall_policies_v1::FirewallPoliciesRetryPolicy>( - retry_policy(*current)), - backoff = std::shared_ptr(backoff_policy(*current))]( - Options const& options, - google::cloud::cpp::compute::firewall_policies::v1:: - ListFirewallPoliciesRequest const& r) { - return google::cloud::rest_internal::RestRetryLoop( - retry->clone(), backoff->clone(), idempotency, - [stub](rest_internal::RestContext& rest_context, - Options const& options, - google::cloud::cpp::compute::firewall_policies::v1:: - ListFirewallPoliciesRequest const& request) { - return stub->ListFirewallPolicies(rest_context, options, request); - }, - options, r, function_name); - }, - [](google::cloud::cpp::compute::v1::FirewallPolicyList r) { - std::vector result( - r.items().size()); - auto& messages = *r.mutable_items(); - std::move(messages.begin(), messages.end(), result.begin()); - return result; - }); -} - -StatusOr< - google::cloud::cpp::compute::v1::FirewallPoliciesListAssociationsResponse> -FirewallPoliciesRestConnectionImpl::ListAssociations( +StatusOr +FirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: - ListAssociationsRequest const& request) { + InsertFirewallPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->ListAssociations(request), + idempotency_policy(*current)->InsertFirewallPolicy(request), [this](rest_internal::RestContext& rest_context, Options const& options, google::cloud::cpp::compute::firewall_policies::v1:: - ListAssociationsRequest const& request) { - return stub_->ListAssociations(rest_context, options, request); + InsertFirewallPolicyRequest const& request) { + return stub_->InsertFirewallPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +FirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }); +} + +StreamRange +FirewallPoliciesRestConnectionImpl::ListFirewallPolicies( + google::cloud::cpp::compute::firewall_policies::v1:: + ListFirewallPoliciesRequest request) { + request.clear_page_token(); + auto current = google::cloud::internal::SaveCurrentOptions(); + auto idempotency = + idempotency_policy(*current)->ListFirewallPolicies(request); + char const* function_name = __func__; + return google::cloud::internal::MakePaginationRange< + StreamRange>( + current, std::move(request), + [idempotency, function_name, stub = stub_, + retry = std::shared_ptr< + compute_firewall_policies_v1::FirewallPoliciesRetryPolicy>( + retry_policy(*current)), + backoff = std::shared_ptr(backoff_policy(*current))]( + Options const& options, + google::cloud::cpp::compute::firewall_policies::v1:: + ListFirewallPoliciesRequest const& r) { + return google::cloud::rest_internal::RestRetryLoop( + retry->clone(), backoff->clone(), idempotency, + [stub](rest_internal::RestContext& rest_context, + Options const& options, + google::cloud::cpp::compute::firewall_policies::v1:: + ListFirewallPoliciesRequest const& request) { + return stub->ListFirewallPolicies(rest_context, options, request); + }, + options, r, function_name); + }, + [](google::cloud::cpp::compute::v1::FirewallPolicyList r) { + std::vector result( + r.items().size()); + auto& messages = *r.mutable_items(); + std::move(messages.begin(), messages.end(), result.begin()); + return result; + }); +} + +StatusOr< + google::cloud::cpp::compute::v1::FirewallPoliciesListAssociationsResponse> +FirewallPoliciesRestConnectionImpl::ListAssociations( + google::cloud::cpp::compute::firewall_policies::v1:: + ListAssociationsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ListAssociations(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::firewall_policies::v1:: + ListAssociationsRequest const& request) { + return stub_->ListAssociations(rest_context, options, request); }, *current, request, __func__); } @@ -495,6 +856,77 @@ FirewallPoliciesRestConnectionImpl::Move( v1::DeleteOperationRequest& r) { r.set_operation(op); }); } +StatusOr +FirewallPoliciesRestConnectionImpl::Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Move(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const& + request) { return stub_->Move(rest_context, options, request); }, + *current, request, __func__); +} + +future> +FirewallPoliciesRestConnectionImpl::Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }); +} + future> FirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( google::cloud::cpp::compute::firewall_policies::v1:: @@ -550,6 +982,78 @@ FirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( v1::DeleteOperationRequest& r) { r.set_operation(op); }); } +StatusOr +FirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + PatchFirewallPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchFirewallPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::firewall_policies::v1:: + PatchFirewallPolicyRequest const& request) { + return stub_->PatchFirewallPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +FirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }); +} + future> FirewallPoliciesRestConnectionImpl::PatchRule( google::cloud::cpp::compute::firewall_policies::v1::PatchRuleRequest const& @@ -605,6 +1109,78 @@ FirewallPoliciesRestConnectionImpl::PatchRule( v1::DeleteOperationRequest& r) { r.set_operation(op); }); } +StatusOr +FirewallPoliciesRestConnectionImpl::PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::PatchRuleRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::firewall_policies::v1:: + PatchRuleRequest const& request) { + return stub_->PatchRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +FirewallPoliciesRestConnectionImpl::PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }); +} + future> FirewallPoliciesRestConnectionImpl::RemoveAssociation( google::cloud::cpp::compute::firewall_policies::v1:: @@ -660,6 +1236,78 @@ FirewallPoliciesRestConnectionImpl::RemoveAssociation( v1::DeleteOperationRequest& r) { r.set_operation(op); }); } +StatusOr +FirewallPoliciesRestConnectionImpl::RemoveAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + RemoveAssociationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveAssociation(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::firewall_policies::v1:: + RemoveAssociationRequest const& request) { + return stub_->RemoveAssociation(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +FirewallPoliciesRestConnectionImpl::RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }); +} + future> FirewallPoliciesRestConnectionImpl::RemoveRule( google::cloud::cpp::compute::firewall_policies::v1::RemoveRuleRequest const& @@ -715,6 +1363,78 @@ FirewallPoliciesRestConnectionImpl::RemoveRule( v1::DeleteOperationRequest& r) { r.set_operation(op); }); } +StatusOr +FirewallPoliciesRestConnectionImpl::RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::RemoveRuleRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::firewall_policies::v1:: + RemoveRuleRequest const& request) { + return stub_->RemoveRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +FirewallPoliciesRestConnectionImpl::RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_organization_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_organization_operations:: + v1::DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_operation(info.operation); + }); +} + StatusOr FirewallPoliciesRestConnectionImpl::SetIamPolicy( google::cloud::cpp::compute::firewall_policies::v1:: diff --git a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.h b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.h index e45646654952e..7350c03233ab1 100644 --- a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.h +++ b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.h @@ -56,18 +56,55 @@ class FirewallPoliciesRestConnectionImpl google::cloud::cpp::compute::firewall_policies::v1:: AddAssociationRequest const& request) override; + StatusOr AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + AddAssociationRequest const& request) override; + + future> AddAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> AddRule( google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& request) override; + StatusOr AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& + request) override; + + future> AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> CloneRules( google::cloud::cpp::compute::firewall_policies::v1:: CloneRulesRequest const& request) override; + StatusOr CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + CloneRulesRequest const& request) override; + + future> CloneRules( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteFirewallPolicy(google::cloud::cpp::compute::firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) override; + StatusOr DeleteFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request) override; + + future> + DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetFirewallPolicy( google::cloud::cpp::compute::firewall_policies::v1:: GetFirewallPolicyRequest const& request) override; @@ -88,6 +125,16 @@ class FirewallPoliciesRestConnectionImpl InsertFirewallPolicy(google::cloud::cpp::compute::firewall_policies::v1:: InsertFirewallPolicyRequest const& request) override; + StatusOr InsertFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + InsertFirewallPolicyRequest const& request) override; + + future> + InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListFirewallPolicies(google::cloud::cpp::compute::firewall_policies::v1:: ListFirewallPoliciesRequest request) override; @@ -101,22 +148,69 @@ class FirewallPoliciesRestConnectionImpl google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const& request) override; + StatusOr Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const& + request) override; + + future> Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PatchFirewallPolicy(google::cloud::cpp::compute::firewall_policies::v1:: PatchFirewallPolicyRequest const& request) override; + StatusOr PatchFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + PatchFirewallPolicyRequest const& request) override; + + future> + PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PatchRule( google::cloud::cpp::compute::firewall_policies::v1:: PatchRuleRequest const& request) override; + StatusOr PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + PatchRuleRequest const& request) override; + + future> PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveAssociation(google::cloud::cpp::compute::firewall_policies::v1:: RemoveAssociationRequest const& request) override; + StatusOr RemoveAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + RemoveAssociationRequest const& request) override; + + future> + RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveRule( google::cloud::cpp::compute::firewall_policies::v1:: RemoveRuleRequest const& request) override; + StatusOr RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + RemoveRuleRequest const& request) override; + + future> RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::firewall_policies::v1:: SetIamPolicyRequest const& request) override; diff --git a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.cc b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.cc index 383905ae90505..7743bee7844fa 100644 --- a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.cc +++ b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.cc @@ -45,6 +45,33 @@ FirewallPoliciesTracingConnection::AddAssociation( return internal::EndSpan(std::move(span), child_->AddAssociation(request)); } +StatusOr +FirewallPoliciesTracingConnection::AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + AddAssociationRequest const& request) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::" + "AddAssociation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddAssociation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FirewallPoliciesTracingConnection::AddAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::" + "AddAssociation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddAssociation(google::cloud::ExperimentalTag{}, operation)); +} + future> FirewallPoliciesTracingConnection::AddRule( google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& @@ -55,6 +82,31 @@ FirewallPoliciesTracingConnection::AddRule( return internal::EndSpan(std::move(span), child_->AddRule(request)); } +StatusOr +FirewallPoliciesTracingConnection::AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& + request) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::AddRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FirewallPoliciesTracingConnection::AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::AddRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddRule(google::cloud::ExperimentalTag{}, operation)); +} + future> FirewallPoliciesTracingConnection::CloneRules( google::cloud::cpp::compute::firewall_policies::v1::CloneRulesRequest const& @@ -65,6 +117,31 @@ FirewallPoliciesTracingConnection::CloneRules( return internal::EndSpan(std::move(span), child_->CloneRules(request)); } +StatusOr +FirewallPoliciesTracingConnection::CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::CloneRulesRequest const& + request) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::CloneRules"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CloneRules(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FirewallPoliciesTracingConnection::CloneRules( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::CloneRules"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CloneRules(google::cloud::ExperimentalTag{}, operation)); +} + future> FirewallPoliciesTracingConnection::DeleteFirewallPolicy( google::cloud::cpp::compute::firewall_policies::v1:: @@ -77,6 +154,33 @@ FirewallPoliciesTracingConnection::DeleteFirewallPolicy( child_->DeleteFirewallPolicy(request)); } +StatusOr +FirewallPoliciesTracingConnection::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::" + "DeleteFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteFirewallPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FirewallPoliciesTracingConnection::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::" + "DeleteFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteFirewallPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr FirewallPoliciesTracingConnection::GetFirewallPolicy( google::cloud::cpp::compute::firewall_policies::v1:: @@ -131,6 +235,33 @@ FirewallPoliciesTracingConnection::InsertFirewallPolicy( child_->InsertFirewallPolicy(request)); } +StatusOr +FirewallPoliciesTracingConnection::InsertFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + InsertFirewallPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::" + "InsertFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertFirewallPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FirewallPoliciesTracingConnection::InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::" + "InsertFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertFirewallPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange FirewallPoliciesTracingConnection::ListFirewallPolicies( google::cloud::cpp::compute::firewall_policies::v1:: @@ -167,6 +298,31 @@ FirewallPoliciesTracingConnection::Move( return internal::EndSpan(std::move(span), child_->Move(request)); } +StatusOr +FirewallPoliciesTracingConnection::Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const& + request) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::Move"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, + child_->Move(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FirewallPoliciesTracingConnection::Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::Move"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Move(google::cloud::ExperimentalTag{}, operation)); +} + future> FirewallPoliciesTracingConnection::PatchFirewallPolicy( google::cloud::cpp::compute::firewall_policies::v1:: @@ -179,6 +335,33 @@ FirewallPoliciesTracingConnection::PatchFirewallPolicy( child_->PatchFirewallPolicy(request)); } +StatusOr +FirewallPoliciesTracingConnection::PatchFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + PatchFirewallPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::" + "PatchFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchFirewallPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FirewallPoliciesTracingConnection::PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::" + "PatchFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchFirewallPolicy(google::cloud::ExperimentalTag{}, operation)); +} + future> FirewallPoliciesTracingConnection::PatchRule( google::cloud::cpp::compute::firewall_policies::v1::PatchRuleRequest const& @@ -189,6 +372,31 @@ FirewallPoliciesTracingConnection::PatchRule( return internal::EndSpan(std::move(span), child_->PatchRule(request)); } +StatusOr +FirewallPoliciesTracingConnection::PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::PatchRuleRequest const& + request) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::PatchRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FirewallPoliciesTracingConnection::PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::PatchRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchRule(google::cloud::ExperimentalTag{}, operation)); +} + future> FirewallPoliciesTracingConnection::RemoveAssociation( google::cloud::cpp::compute::firewall_policies::v1:: @@ -200,6 +408,33 @@ FirewallPoliciesTracingConnection::RemoveAssociation( return internal::EndSpan(std::move(span), child_->RemoveAssociation(request)); } +StatusOr +FirewallPoliciesTracingConnection::RemoveAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + RemoveAssociationRequest const& request) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::" + "RemoveAssociation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RemoveAssociation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FirewallPoliciesTracingConnection::RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::" + "RemoveAssociation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RemoveAssociation(google::cloud::ExperimentalTag{}, operation)); +} + future> FirewallPoliciesTracingConnection::RemoveRule( google::cloud::cpp::compute::firewall_policies::v1::RemoveRuleRequest const& @@ -210,6 +445,31 @@ FirewallPoliciesTracingConnection::RemoveRule( return internal::EndSpan(std::move(span), child_->RemoveRule(request)); } +StatusOr +FirewallPoliciesTracingConnection::RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::RemoveRuleRequest const& + request) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::RemoveRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RemoveRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FirewallPoliciesTracingConnection::RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_firewall_policies_v1::FirewallPoliciesConnection::RemoveRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RemoveRule(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr FirewallPoliciesTracingConnection::SetIamPolicy( google::cloud::cpp::compute::firewall_policies::v1:: diff --git a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.h b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.h index af296075d61b0..ea7583e8be6b0 100644 --- a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.h +++ b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.h @@ -45,18 +45,55 @@ class FirewallPoliciesTracingConnection google::cloud::cpp::compute::firewall_policies::v1:: AddAssociationRequest const& request) override; + StatusOr AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + AddAssociationRequest const& request) override; + + future> AddAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> AddRule( google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& request) override; + StatusOr AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& + request) override; + + future> AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> CloneRules( google::cloud::cpp::compute::firewall_policies::v1:: CloneRulesRequest const& request) override; + StatusOr CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + CloneRulesRequest const& request) override; + + future> CloneRules( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteFirewallPolicy(google::cloud::cpp::compute::firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) override; + StatusOr DeleteFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request) override; + + future> + DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetFirewallPolicy( google::cloud::cpp::compute::firewall_policies::v1:: GetFirewallPolicyRequest const& request) override; @@ -77,6 +114,16 @@ class FirewallPoliciesTracingConnection InsertFirewallPolicy(google::cloud::cpp::compute::firewall_policies::v1:: InsertFirewallPolicyRequest const& request) override; + StatusOr InsertFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + InsertFirewallPolicyRequest const& request) override; + + future> + InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListFirewallPolicies(google::cloud::cpp::compute::firewall_policies::v1:: ListFirewallPoliciesRequest request) override; @@ -90,22 +137,69 @@ class FirewallPoliciesTracingConnection google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const& request) override; + StatusOr Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const& + request) override; + + future> Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PatchFirewallPolicy(google::cloud::cpp::compute::firewall_policies::v1:: PatchFirewallPolicyRequest const& request) override; + StatusOr PatchFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + PatchFirewallPolicyRequest const& request) override; + + future> + PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PatchRule( google::cloud::cpp::compute::firewall_policies::v1:: PatchRuleRequest const& request) override; + StatusOr PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + PatchRuleRequest const& request) override; + + future> PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveAssociation(google::cloud::cpp::compute::firewall_policies::v1:: RemoveAssociationRequest const& request) override; + StatusOr RemoveAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + RemoveAssociationRequest const& request) override; + + future> + RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveRule( google::cloud::cpp::compute::firewall_policies::v1:: RemoveRuleRequest const& request) override; + StatusOr RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + RemoveRuleRequest const& request) override; + + future> RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::firewall_policies::v1:: SetIamPolicyRequest const& request) override; diff --git a/google/cloud/compute/firewall_policies/v1/mocks/mock_firewall_policies_connection.h b/google/cloud/compute/firewall_policies/v1/mocks/mock_firewall_policies_connection.h index c8b576ef4c893..e8fe3d0b7277c 100644 --- a/google/cloud/compute/firewall_policies/v1/mocks/mock_firewall_policies_connection.h +++ b/google/cloud/compute/firewall_policies/v1/mocks/mock_firewall_policies_connection.h @@ -53,24 +53,75 @@ class MockFirewallPoliciesConnection AddAssociationRequest const& request), (override)); + MOCK_METHOD(StatusOr, + AddAssociation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + AddAssociationRequest const& request), + (override)); + + MOCK_METHOD(future>, + AddAssociation, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, AddRule, (google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& request), (override)); + MOCK_METHOD( + StatusOr, AddRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& + request), + (override)); + + MOCK_METHOD(future>, + AddRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, CloneRules, (google::cloud::cpp::compute::firewall_policies::v1:: CloneRulesRequest const& request), (override)); + MOCK_METHOD(StatusOr, CloneRules, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + CloneRulesRequest const& request), + (override)); + + MOCK_METHOD(future>, + CloneRules, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteFirewallPolicy, (google::cloud::cpp::compute::firewall_policies::v1:: DeleteFirewallPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteFirewallPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteFirewallPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetFirewallPolicy, (google::cloud::cpp::compute::firewall_policies::v1:: @@ -101,6 +152,19 @@ class MockFirewallPoliciesConnection InsertFirewallPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertFirewallPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + InsertFirewallPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertFirewallPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListFirewallPolicies, (google::cloud::cpp::compute::firewall_policies::v1:: @@ -120,30 +184,93 @@ class MockFirewallPoliciesConnection request), (override)); + MOCK_METHOD( + StatusOr, Move, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const& + request), + (override)); + + MOCK_METHOD(future>, + Move, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, PatchFirewallPolicy, (google::cloud::cpp::compute::firewall_policies::v1:: PatchFirewallPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchFirewallPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + PatchFirewallPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchFirewallPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, PatchRule, (google::cloud::cpp::compute::firewall_policies::v1:: PatchRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, PatchRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + PatchRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, RemoveAssociation, (google::cloud::cpp::compute::firewall_policies::v1:: RemoveAssociationRequest const& request), (override)); + MOCK_METHOD(StatusOr, + RemoveAssociation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + RemoveAssociationRequest const& request), + (override)); + + MOCK_METHOD(future>, + RemoveAssociation, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, RemoveRule, (google::cloud::cpp::compute::firewall_policies::v1:: RemoveRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, RemoveRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewall_policies::v1:: + RemoveRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + RemoveRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, SetIamPolicy, (google::cloud::cpp::compute::firewall_policies::v1:: SetIamPolicyRequest const& request), diff --git a/google/cloud/compute/firewalls/v1/firewalls_connection.cc b/google/cloud/compute/firewalls/v1/firewalls_connection.cc index 0cb43e25f8734..afe220023cdb1 100644 --- a/google/cloud/compute/firewalls/v1/firewalls_connection.cc +++ b/google/cloud/compute/firewalls/v1/firewalls_connection.cc @@ -44,6 +44,23 @@ FirewallsConnection::DeleteFirewall( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FirewallsConnection::DeleteFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FirewallsConnection::DeleteFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr FirewallsConnection::GetFirewall( google::cloud::cpp::compute::firewalls::v1::GetFirewallRequest const&) { @@ -58,6 +75,23 @@ FirewallsConnection::InsertFirewall( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FirewallsConnection::InsertFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FirewallsConnection::InsertFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange FirewallsConnection::ListFirewalls( google::cloud::cpp::compute::firewalls::v1:: @@ -74,6 +108,23 @@ FirewallsConnection::PatchFirewall( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FirewallsConnection::PatchFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FirewallsConnection::PatchFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FirewallsConnection::UpdateFirewall( google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const&) { @@ -82,6 +133,23 @@ FirewallsConnection::UpdateFirewall( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FirewallsConnection::UpdateFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FirewallsConnection::UpdateFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_firewalls_v1 } // namespace cloud diff --git a/google/cloud/compute/firewalls/v1/firewalls_connection.h b/google/cloud/compute/firewalls/v1/firewalls_connection.h index 60f4649a0d5a1..2024e139efcd9 100644 --- a/google/cloud/compute/firewalls/v1/firewalls_connection.h +++ b/google/cloud/compute/firewalls/v1/firewalls_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/firewalls/v1/firewalls_connection_idempotency_policy.h" #include "google/cloud/compute/firewalls/v1/internal/firewalls_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -188,6 +190,15 @@ class FirewallsConnection { google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const& request); + virtual StatusOr DeleteFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const& + request); + + virtual future> + DeleteFirewall(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetFirewall( google::cloud::cpp::compute::firewalls::v1::GetFirewallRequest const& request); @@ -197,6 +208,15 @@ class FirewallsConnection { google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const& request); + virtual StatusOr InsertFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const& + request); + + virtual future> + InsertFirewall(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListFirewalls( google::cloud::cpp::compute::firewalls::v1::ListFirewallsRequest request); @@ -205,10 +225,28 @@ class FirewallsConnection { google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const& request); + virtual StatusOr PatchFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const& + request); + + virtual future> + PatchFirewall(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> UpdateFirewall( google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& request); + + virtual StatusOr UpdateFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& + request); + + virtual future> + UpdateFirewall(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/firewalls/v1/internal/firewalls_rest_connection_impl.cc b/google/cloud/compute/firewalls/v1/internal/firewalls_rest_connection_impl.cc index c5990039a67c6..c79710b8e6623 100644 --- a/google/cloud/compute/firewalls/v1/internal/firewalls_rest_connection_impl.cc +++ b/google/cloud/compute/firewalls/v1/internal/firewalls_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -100,6 +101,77 @@ FirewallsRestConnectionImpl::DeleteFirewall( }); } +StatusOr +FirewallsRestConnectionImpl::DeleteFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteFirewall(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::firewalls::v1:: + DeleteFirewallRequest const& request) { + return stub_->DeleteFirewall(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +FirewallsRestConnectionImpl::DeleteFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr FirewallsRestConnectionImpl::GetFirewall( google::cloud::cpp::compute::firewalls::v1::GetFirewallRequest const& @@ -175,6 +247,77 @@ FirewallsRestConnectionImpl::InsertFirewall( }); } +StatusOr +FirewallsRestConnectionImpl::InsertFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertFirewall(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::firewalls::v1:: + InsertFirewallRequest const& request) { + return stub_->InsertFirewall(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +FirewallsRestConnectionImpl::InsertFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange FirewallsRestConnectionImpl::ListFirewalls( google::cloud::cpp::compute::firewalls::v1::ListFirewallsRequest request) { @@ -268,6 +411,77 @@ FirewallsRestConnectionImpl::PatchFirewall( }); } +StatusOr +FirewallsRestConnectionImpl::PatchFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchFirewall(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::firewalls::v1:: + PatchFirewallRequest const& request) { + return stub_->PatchFirewall(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +FirewallsRestConnectionImpl::PatchFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> FirewallsRestConnectionImpl::UpdateFirewall( google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& @@ -326,6 +540,77 @@ FirewallsRestConnectionImpl::UpdateFirewall( }); } +StatusOr +FirewallsRestConnectionImpl::UpdateFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateFirewall(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::firewalls::v1:: + UpdateFirewallRequest const& request) { + return stub_->UpdateFirewall(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +FirewallsRestConnectionImpl::UpdateFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_firewalls_v1_internal } // namespace cloud diff --git a/google/cloud/compute/firewalls/v1/internal/firewalls_rest_connection_impl.h b/google/cloud/compute/firewalls/v1/internal/firewalls_rest_connection_impl.h index c41a6a392d1fb..680b03b971ba0 100644 --- a/google/cloud/compute/firewalls/v1/internal/firewalls_rest_connection_impl.h +++ b/google/cloud/compute/firewalls/v1/internal/firewalls_rest_connection_impl.h @@ -54,6 +54,15 @@ class FirewallsRestConnectionImpl google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const& request) override; + StatusOr DeleteFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const& + request) override; + + future> DeleteFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetFirewall( google::cloud::cpp::compute::firewalls::v1::GetFirewallRequest const& request) override; @@ -62,6 +71,15 @@ class FirewallsRestConnectionImpl google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const& request) override; + StatusOr InsertFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const& + request) override; + + future> InsertFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListFirewalls( google::cloud::cpp::compute::firewalls::v1::ListFirewallsRequest request) override; @@ -70,10 +88,28 @@ class FirewallsRestConnectionImpl google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const& request) override; + StatusOr PatchFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const& + request) override; + + future> PatchFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateFirewall( google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& request) override; + StatusOr UpdateFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& + request) override; + + future> UpdateFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy(Options const& options) { diff --git a/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.cc b/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.cc index 5a06934358901..fb1f8a0a187f2 100644 --- a/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.cc +++ b/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.cc @@ -43,6 +43,31 @@ FirewallsTracingConnection::DeleteFirewall( return internal::EndSpan(std::move(span), child_->DeleteFirewall(request)); } +StatusOr +FirewallsTracingConnection::DeleteFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const& + request) { + auto span = internal::MakeSpan( + "compute_firewalls_v1::FirewallsConnection::DeleteFirewall"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteFirewall(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FirewallsTracingConnection::DeleteFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_firewalls_v1::FirewallsConnection::DeleteFirewall"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteFirewall(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr FirewallsTracingConnection::GetFirewall( google::cloud::cpp::compute::firewalls::v1::GetFirewallRequest const& @@ -63,6 +88,31 @@ FirewallsTracingConnection::InsertFirewall( return internal::EndSpan(std::move(span), child_->InsertFirewall(request)); } +StatusOr +FirewallsTracingConnection::InsertFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const& + request) { + auto span = internal::MakeSpan( + "compute_firewalls_v1::FirewallsConnection::InsertFirewall"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertFirewall(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FirewallsTracingConnection::InsertFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_firewalls_v1::FirewallsConnection::InsertFirewall"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertFirewall(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange FirewallsTracingConnection::ListFirewalls( google::cloud::cpp::compute::firewalls::v1::ListFirewallsRequest request) { @@ -85,6 +135,31 @@ FirewallsTracingConnection::PatchFirewall( return internal::EndSpan(std::move(span), child_->PatchFirewall(request)); } +StatusOr +FirewallsTracingConnection::PatchFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const& + request) { + auto span = internal::MakeSpan( + "compute_firewalls_v1::FirewallsConnection::PatchFirewall"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchFirewall(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FirewallsTracingConnection::PatchFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_firewalls_v1::FirewallsConnection::PatchFirewall"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchFirewall(google::cloud::ExperimentalTag{}, operation)); +} + future> FirewallsTracingConnection::UpdateFirewall( google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& @@ -95,6 +170,31 @@ FirewallsTracingConnection::UpdateFirewall( return internal::EndSpan(std::move(span), child_->UpdateFirewall(request)); } +StatusOr +FirewallsTracingConnection::UpdateFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& + request) { + auto span = internal::MakeSpan( + "compute_firewalls_v1::FirewallsConnection::UpdateFirewall"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateFirewall(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FirewallsTracingConnection::UpdateFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_firewalls_v1::FirewallsConnection::UpdateFirewall"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateFirewall(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.h b/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.h index eab606fc895c8..0ea3124ed9860 100644 --- a/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.h +++ b/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.h @@ -44,6 +44,15 @@ class FirewallsTracingConnection google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const& request) override; + StatusOr DeleteFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const& + request) override; + + future> DeleteFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetFirewall( google::cloud::cpp::compute::firewalls::v1::GetFirewallRequest const& request) override; @@ -52,6 +61,15 @@ class FirewallsTracingConnection google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const& request) override; + StatusOr InsertFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const& + request) override; + + future> InsertFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListFirewalls( google::cloud::cpp::compute::firewalls::v1::ListFirewallsRequest request) override; @@ -60,10 +78,28 @@ class FirewallsTracingConnection google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const& request) override; + StatusOr PatchFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const& + request) override; + + future> PatchFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateFirewall( google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& request) override; + StatusOr UpdateFirewall( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& + request) override; + + future> UpdateFirewall( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/firewalls/v1/mocks/mock_firewalls_connection.h b/google/cloud/compute/firewalls/v1/mocks/mock_firewalls_connection.h index b52c8597c7ed9..5e5585fb0a89e 100644 --- a/google/cloud/compute/firewalls/v1/mocks/mock_firewalls_connection.h +++ b/google/cloud/compute/firewalls/v1/mocks/mock_firewalls_connection.h @@ -54,6 +54,19 @@ class MockFirewallsConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteFirewall, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteFirewall, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetFirewall, (google::cloud::cpp::compute::firewalls::v1::GetFirewallRequest const& @@ -67,6 +80,19 @@ class MockFirewallsConnection request), (override)); + MOCK_METHOD( + StatusOr, InsertFirewall, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const& + request), + (override)); + + MOCK_METHOD(future>, + InsertFirewall, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListFirewalls, (google::cloud::cpp::compute::firewalls::v1::ListFirewallsRequest @@ -80,12 +106,38 @@ class MockFirewallsConnection request), (override)); + MOCK_METHOD( + StatusOr, PatchFirewall, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const& + request), + (override)); + + MOCK_METHOD(future>, + PatchFirewall, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateFirewall, (google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, UpdateFirewall, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateFirewall, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection.cc b/google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection.cc index c3df72f1c2a73..4c3f9674c1137 100644 --- a/google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection.cc +++ b/google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection.cc @@ -55,6 +55,24 @@ ForwardingRulesConnection::DeleteForwardingRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ForwardingRulesConnection::DeleteForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + DeleteForwardingRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ForwardingRulesConnection::DeleteForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ForwardingRulesConnection::GetForwardingRule( google::cloud::cpp::compute::forwarding_rules::v1:: @@ -71,6 +89,24 @@ ForwardingRulesConnection::InsertForwardingRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ForwardingRulesConnection::InsertForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + InsertForwardingRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ForwardingRulesConnection::InsertForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ForwardingRulesConnection::ListForwardingRules( google::cloud::cpp::compute::forwarding_rules::v1:: @@ -88,10 +124,46 @@ ForwardingRulesConnection::PatchForwardingRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ForwardingRulesConnection::PatchForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + PatchForwardingRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +ForwardingRulesConnection::PatchForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ForwardingRulesConnection::SetLabels( + google::cloud::cpp::compute::forwarding_rules::v1:: + SetLabelsRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr ForwardingRulesConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: SetLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ForwardingRulesConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -106,6 +178,24 @@ ForwardingRulesConnection::SetTarget( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ForwardingRulesConnection::SetTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + SetTargetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ForwardingRulesConnection::SetTarget( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_forwarding_rules_v1 } // namespace cloud diff --git a/google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection.h b/google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection.h index 2ee746aa8566f..bb47c106dc4ca 100644 --- a/google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection.h +++ b/google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection_idempotency_policy.h" #include "google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -196,6 +198,17 @@ class ForwardingRulesConnection { DeleteForwardingRule(google::cloud::cpp::compute::forwarding_rules::v1:: DeleteForwardingRuleRequest const& request); + virtual StatusOr + DeleteForwardingRule(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + DeleteForwardingRuleRequest const& request); + + virtual future> + DeleteForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetForwardingRule(google::cloud::cpp::compute::forwarding_rules::v1:: GetForwardingRuleRequest const& request); @@ -204,6 +217,17 @@ class ForwardingRulesConnection { InsertForwardingRule(google::cloud::cpp::compute::forwarding_rules::v1:: InsertForwardingRuleRequest const& request); + virtual StatusOr + InsertForwardingRule(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + InsertForwardingRuleRequest const& request); + + virtual future> + InsertForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListForwardingRules(google::cloud::cpp::compute::forwarding_rules::v1:: ListForwardingRulesRequest request); @@ -212,15 +236,43 @@ class ForwardingRulesConnection { PatchForwardingRule(google::cloud::cpp::compute::forwarding_rules::v1:: PatchForwardingRuleRequest const& request); + virtual StatusOr + PatchForwardingRule(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + PatchForwardingRuleRequest const& request); + + virtual future> + PatchForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetLabels( google::cloud::cpp::compute::forwarding_rules::v1::SetLabelsRequest const& request); + virtual StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1::SetLabelsRequest const& + request); + + virtual future> + SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetTarget( google::cloud::cpp::compute::forwarding_rules::v1::SetTargetRequest const& request); + + virtual StatusOr SetTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1::SetTargetRequest const& + request); + + virtual future> + SetTarget(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_rest_connection_impl.cc b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_rest_connection_impl.cc index 20c1fe9f488b1..52e58f9b96195 100644 --- a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_rest_connection_impl.cc +++ b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -147,6 +148,79 @@ ForwardingRulesRestConnectionImpl::DeleteForwardingRule( }); } +StatusOr +ForwardingRulesRestConnectionImpl::DeleteForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + DeleteForwardingRuleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteForwardingRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::forwarding_rules::v1:: + DeleteForwardingRuleRequest const& request) { + return stub_->DeleteForwardingRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ForwardingRulesRestConnectionImpl::DeleteForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr ForwardingRulesRestConnectionImpl::GetForwardingRule( google::cloud::cpp::compute::forwarding_rules::v1:: @@ -223,6 +297,79 @@ ForwardingRulesRestConnectionImpl::InsertForwardingRule( }); } +StatusOr +ForwardingRulesRestConnectionImpl::InsertForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + InsertForwardingRuleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertForwardingRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::forwarding_rules::v1:: + InsertForwardingRuleRequest const& request) { + return stub_->InsertForwardingRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ForwardingRulesRestConnectionImpl::InsertForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange ForwardingRulesRestConnectionImpl::ListForwardingRules( google::cloud::cpp::compute::forwarding_rules::v1:: @@ -321,6 +468,79 @@ ForwardingRulesRestConnectionImpl::PatchForwardingRule( }); } +StatusOr +ForwardingRulesRestConnectionImpl::PatchForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + PatchForwardingRuleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchForwardingRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::forwarding_rules::v1:: + PatchForwardingRuleRequest const& request) { + return stub_->PatchForwardingRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ForwardingRulesRestConnectionImpl::PatchForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> ForwardingRulesRestConnectionImpl::SetLabels( google::cloud::cpp::compute::forwarding_rules::v1::SetLabelsRequest const& @@ -381,6 +601,79 @@ ForwardingRulesRestConnectionImpl::SetLabels( }); } +StatusOr +ForwardingRulesRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1::SetLabelsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::forwarding_rules::v1:: + SetLabelsRequest const& request) { + return stub_->SetLabels(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ForwardingRulesRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> ForwardingRulesRestConnectionImpl::SetTarget( google::cloud::cpp::compute::forwarding_rules::v1::SetTargetRequest const& @@ -441,6 +734,79 @@ ForwardingRulesRestConnectionImpl::SetTarget( }); } +StatusOr +ForwardingRulesRestConnectionImpl::SetTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1::SetTargetRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetTarget(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::forwarding_rules::v1:: + SetTargetRequest const& request) { + return stub_->SetTarget(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ForwardingRulesRestConnectionImpl::SetTarget( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_forwarding_rules_v1_internal } // namespace cloud diff --git a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_rest_connection_impl.h b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_rest_connection_impl.h index f00fef7183d0b..9dd5c06b0e752 100644 --- a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_rest_connection_impl.h +++ b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_rest_connection_impl.h @@ -62,6 +62,16 @@ class ForwardingRulesRestConnectionImpl DeleteForwardingRule(google::cloud::cpp::compute::forwarding_rules::v1:: DeleteForwardingRuleRequest const& request) override; + StatusOr DeleteForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + DeleteForwardingRuleRequest const& request) override; + + future> + DeleteForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetForwardingRule( google::cloud::cpp::compute::forwarding_rules::v1:: GetForwardingRuleRequest const& request) override; @@ -70,6 +80,16 @@ class ForwardingRulesRestConnectionImpl InsertForwardingRule(google::cloud::cpp::compute::forwarding_rules::v1:: InsertForwardingRuleRequest const& request) override; + StatusOr InsertForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + InsertForwardingRuleRequest const& request) override; + + future> + InsertForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListForwardingRules(google::cloud::cpp::compute::forwarding_rules::v1:: ListForwardingRulesRequest request) override; @@ -78,14 +98,42 @@ class ForwardingRulesRestConnectionImpl PatchForwardingRule(google::cloud::cpp::compute::forwarding_rules::v1:: PatchForwardingRuleRequest const& request) override; + StatusOr PatchForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + PatchForwardingRuleRequest const& request) override; + + future> + PatchForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetLabels( google::cloud::cpp::compute::forwarding_rules::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetTarget( google::cloud::cpp::compute::forwarding_rules::v1::SetTargetRequest const& request) override; + StatusOr SetTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1::SetTargetRequest const& + request) override; + + future> SetTarget( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_forwarding_rules_v1::ForwardingRulesRetryPolicy> diff --git a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.cc b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.cc index af3ce7c7c8299..738c490a89078 100644 --- a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.cc +++ b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.cc @@ -61,6 +61,33 @@ ForwardingRulesTracingConnection::DeleteForwardingRule( child_->DeleteForwardingRule(request)); } +StatusOr +ForwardingRulesTracingConnection::DeleteForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + DeleteForwardingRuleRequest const& request) { + auto span = internal::MakeSpan( + "compute_forwarding_rules_v1::ForwardingRulesConnection::" + "DeleteForwardingRule"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteForwardingRule( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ForwardingRulesTracingConnection::DeleteForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_forwarding_rules_v1::ForwardingRulesConnection::" + "DeleteForwardingRule"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteForwardingRule( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ForwardingRulesTracingConnection::GetForwardingRule( google::cloud::cpp::compute::forwarding_rules::v1:: @@ -84,6 +111,33 @@ ForwardingRulesTracingConnection::InsertForwardingRule( child_->InsertForwardingRule(request)); } +StatusOr +ForwardingRulesTracingConnection::InsertForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + InsertForwardingRuleRequest const& request) { + auto span = internal::MakeSpan( + "compute_forwarding_rules_v1::ForwardingRulesConnection::" + "InsertForwardingRule"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertForwardingRule( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ForwardingRulesTracingConnection::InsertForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_forwarding_rules_v1::ForwardingRulesConnection::" + "InsertForwardingRule"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertForwardingRule( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ForwardingRulesTracingConnection::ListForwardingRules( google::cloud::cpp::compute::forwarding_rules::v1:: @@ -110,6 +164,33 @@ ForwardingRulesTracingConnection::PatchForwardingRule( child_->PatchForwardingRule(request)); } +StatusOr +ForwardingRulesTracingConnection::PatchForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + PatchForwardingRuleRequest const& request) { + auto span = internal::MakeSpan( + "compute_forwarding_rules_v1::ForwardingRulesConnection::" + "PatchForwardingRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchForwardingRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ForwardingRulesTracingConnection::PatchForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_forwarding_rules_v1::ForwardingRulesConnection::" + "PatchForwardingRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchForwardingRule(google::cloud::ExperimentalTag{}, operation)); +} + future> ForwardingRulesTracingConnection::SetLabels( google::cloud::cpp::compute::forwarding_rules::v1::SetLabelsRequest const& @@ -120,6 +201,31 @@ ForwardingRulesTracingConnection::SetLabels( return internal::EndSpan(std::move(span), child_->SetLabels(request)); } +StatusOr +ForwardingRulesTracingConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1::SetLabelsRequest const& + request) { + auto span = internal::MakeSpan( + "compute_forwarding_rules_v1::ForwardingRulesConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ForwardingRulesTracingConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_forwarding_rules_v1::ForwardingRulesConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); +} + future> ForwardingRulesTracingConnection::SetTarget( google::cloud::cpp::compute::forwarding_rules::v1::SetTargetRequest const& @@ -130,6 +236,31 @@ ForwardingRulesTracingConnection::SetTarget( return internal::EndSpan(std::move(span), child_->SetTarget(request)); } +StatusOr +ForwardingRulesTracingConnection::SetTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1::SetTargetRequest const& + request) { + auto span = internal::MakeSpan( + "compute_forwarding_rules_v1::ForwardingRulesConnection::SetTarget"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetTarget(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ForwardingRulesTracingConnection::SetTarget( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_forwarding_rules_v1::ForwardingRulesConnection::SetTarget"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetTarget(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.h b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.h index eb4caa93cf5cd..65ea93318d6cc 100644 --- a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.h +++ b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.h @@ -51,6 +51,16 @@ class ForwardingRulesTracingConnection DeleteForwardingRule(google::cloud::cpp::compute::forwarding_rules::v1:: DeleteForwardingRuleRequest const& request) override; + StatusOr DeleteForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + DeleteForwardingRuleRequest const& request) override; + + future> + DeleteForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetForwardingRule( google::cloud::cpp::compute::forwarding_rules::v1:: GetForwardingRuleRequest const& request) override; @@ -59,6 +69,16 @@ class ForwardingRulesTracingConnection InsertForwardingRule(google::cloud::cpp::compute::forwarding_rules::v1:: InsertForwardingRuleRequest const& request) override; + StatusOr InsertForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + InsertForwardingRuleRequest const& request) override; + + future> + InsertForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListForwardingRules(google::cloud::cpp::compute::forwarding_rules::v1:: ListForwardingRulesRequest request) override; @@ -67,14 +87,42 @@ class ForwardingRulesTracingConnection PatchForwardingRule(google::cloud::cpp::compute::forwarding_rules::v1:: PatchForwardingRuleRequest const& request) override; + StatusOr PatchForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + PatchForwardingRuleRequest const& request) override; + + future> + PatchForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetLabels( google::cloud::cpp::compute::forwarding_rules::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetTarget( google::cloud::cpp::compute::forwarding_rules::v1::SetTargetRequest const& request) override; + StatusOr SetTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1::SetTargetRequest const& + request) override; + + future> SetTarget( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/forwarding_rules/v1/mocks/mock_forwarding_rules_connection.h b/google/cloud/compute/forwarding_rules/v1/mocks/mock_forwarding_rules_connection.h index 1933ea0cca817..8ec03ba5638b4 100644 --- a/google/cloud/compute/forwarding_rules/v1/mocks/mock_forwarding_rules_connection.h +++ b/google/cloud/compute/forwarding_rules/v1/mocks/mock_forwarding_rules_connection.h @@ -61,6 +61,19 @@ class MockForwardingRulesConnection DeleteForwardingRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteForwardingRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + DeleteForwardingRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteForwardingRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetForwardingRule, (google::cloud::cpp::compute::forwarding_rules::v1:: @@ -73,6 +86,19 @@ class MockForwardingRulesConnection InsertForwardingRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertForwardingRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + InsertForwardingRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertForwardingRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListForwardingRules, (google::cloud::cpp::compute::forwarding_rules::v1:: @@ -85,17 +111,54 @@ class MockForwardingRulesConnection PatchForwardingRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchForwardingRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + PatchForwardingRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchForwardingRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetLabels, (google::cloud::cpp::compute::forwarding_rules::v1:: SetLabelsRequest const& request), (override)); + MOCK_METHOD(StatusOr, SetLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + SetLabelsRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetLabels, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetTarget, (google::cloud::cpp::compute::forwarding_rules::v1:: SetTargetRequest const& request), (override)); + + MOCK_METHOD(StatusOr, SetTarget, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::forwarding_rules::v1:: + SetTargetRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetTarget, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/global_addresses/v1/global_addresses_connection.cc b/google/cloud/compute/global_addresses/v1/global_addresses_connection.cc index 09416050f7fa5..ac9b229db64a1 100644 --- a/google/cloud/compute/global_addresses/v1/global_addresses_connection.cc +++ b/google/cloud/compute/global_addresses/v1/global_addresses_connection.cc @@ -45,6 +45,24 @@ GlobalAddressesConnection::DeleteAddress( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +GlobalAddressesConnection::DeleteAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1:: + DeleteAddressRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GlobalAddressesConnection::DeleteAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr GlobalAddressesConnection::GetAddress( google::cloud::cpp::compute::global_addresses::v1:: @@ -61,6 +79,24 @@ GlobalAddressesConnection::InsertAddress( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +GlobalAddressesConnection::InsertAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1:: + InsertAddressRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GlobalAddressesConnection::InsertAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange GlobalAddressesConnection::ListGlobalAddresses( google::cloud::cpp::compute::global_addresses::v1:: @@ -77,6 +113,23 @@ GlobalAddressesConnection::Move( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +GlobalAddressesConnection::Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1::MoveRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GlobalAddressesConnection::Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> GlobalAddressesConnection::SetLabels( google::cloud::cpp::compute::global_addresses::v1:: @@ -86,6 +139,24 @@ GlobalAddressesConnection::SetLabels( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +GlobalAddressesConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1:: + SetLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GlobalAddressesConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_global_addresses_v1 } // namespace cloud diff --git a/google/cloud/compute/global_addresses/v1/global_addresses_connection.h b/google/cloud/compute/global_addresses/v1/global_addresses_connection.h index 9baa98c40649d..1f5f9a53f6220 100644 --- a/google/cloud/compute/global_addresses/v1/global_addresses_connection.h +++ b/google/cloud/compute/global_addresses/v1/global_addresses_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/global_addresses/v1/global_addresses_connection_idempotency_policy.h" #include "google/cloud/compute/global_addresses/v1/internal/global_addresses_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -190,6 +192,15 @@ class GlobalAddressesConnection { DeleteAddress(google::cloud::cpp::compute::global_addresses::v1:: DeleteAddressRequest const& request); + virtual StatusOr DeleteAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1:: + DeleteAddressRequest const& request); + + virtual future> + DeleteAddress(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetAddress( google::cloud::cpp::compute::global_addresses::v1:: GetAddressRequest const& request); @@ -198,6 +209,15 @@ class GlobalAddressesConnection { InsertAddress(google::cloud::cpp::compute::global_addresses::v1:: InsertAddressRequest const& request); + virtual StatusOr InsertAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1:: + InsertAddressRequest const& request); + + virtual future> + InsertAddress(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListGlobalAddresses(google::cloud::cpp::compute::global_addresses::v1:: ListGlobalAddressesRequest request); @@ -206,10 +226,28 @@ class GlobalAddressesConnection { google::cloud::cpp::compute::global_addresses::v1::MoveRequest const& request); + virtual StatusOr Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1::MoveRequest const& + request); + + virtual future> Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetLabels( google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const& request); + + virtual StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const& + request); + + virtual future> + SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/global_addresses/v1/internal/global_addresses_rest_connection_impl.cc b/google/cloud/compute/global_addresses/v1/internal/global_addresses_rest_connection_impl.cc index f35e2f34cd928..e767d1003056a 100644 --- a/google/cloud/compute/global_addresses/v1/internal/global_addresses_rest_connection_impl.cc +++ b/google/cloud/compute/global_addresses/v1/internal/global_addresses_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -102,6 +103,77 @@ GlobalAddressesRestConnectionImpl::DeleteAddress( }); } +StatusOr +GlobalAddressesRestConnectionImpl::DeleteAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1:: + DeleteAddressRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAddress(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::global_addresses::v1:: + DeleteAddressRequest const& request) { + return stub_->DeleteAddress(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +GlobalAddressesRestConnectionImpl::DeleteAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr GlobalAddressesRestConnectionImpl::GetAddress( google::cloud::cpp::compute::global_addresses::v1::GetAddressRequest const& @@ -176,6 +248,77 @@ GlobalAddressesRestConnectionImpl::InsertAddress( }); } +StatusOr +GlobalAddressesRestConnectionImpl::InsertAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1:: + InsertAddressRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertAddress(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::global_addresses::v1:: + InsertAddressRequest const& request) { + return stub_->InsertAddress(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +GlobalAddressesRestConnectionImpl::InsertAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange GlobalAddressesRestConnectionImpl::ListGlobalAddresses( google::cloud::cpp::compute::global_addresses::v1:: @@ -273,6 +416,76 @@ GlobalAddressesRestConnectionImpl::Move( }); } +StatusOr +GlobalAddressesRestConnectionImpl::Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1::MoveRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Move(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::global_addresses::v1::MoveRequest const& + request) { return stub_->Move(rest_context, options, request); }, + *current, request, __func__); +} + +future> +GlobalAddressesRestConnectionImpl::Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> GlobalAddressesRestConnectionImpl::SetLabels( google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const& @@ -331,6 +544,77 @@ GlobalAddressesRestConnectionImpl::SetLabels( }); } +StatusOr +GlobalAddressesRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::global_addresses::v1:: + SetLabelsRequest const& request) { + return stub_->SetLabels(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +GlobalAddressesRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_global_addresses_v1_internal } // namespace cloud diff --git a/google/cloud/compute/global_addresses/v1/internal/global_addresses_rest_connection_impl.h b/google/cloud/compute/global_addresses/v1/internal/global_addresses_rest_connection_impl.h index b3824d80a4227..e95e3106961c2 100644 --- a/google/cloud/compute/global_addresses/v1/internal/global_addresses_rest_connection_impl.h +++ b/google/cloud/compute/global_addresses/v1/internal/global_addresses_rest_connection_impl.h @@ -56,6 +56,15 @@ class GlobalAddressesRestConnectionImpl google::cloud::cpp::compute::global_addresses::v1:: DeleteAddressRequest const& request) override; + StatusOr DeleteAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1:: + DeleteAddressRequest const& request) override; + + future> DeleteAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetAddress( google::cloud::cpp::compute::global_addresses::v1:: GetAddressRequest const& request) override; @@ -64,6 +73,15 @@ class GlobalAddressesRestConnectionImpl google::cloud::cpp::compute::global_addresses::v1:: InsertAddressRequest const& request) override; + StatusOr InsertAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1:: + InsertAddressRequest const& request) override; + + future> InsertAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListGlobalAddresses( google::cloud::cpp::compute::global_addresses::v1:: ListGlobalAddressesRequest request) override; @@ -72,10 +90,28 @@ class GlobalAddressesRestConnectionImpl google::cloud::cpp::compute::global_addresses::v1::MoveRequest const& request) override; + StatusOr Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1::MoveRequest const& + request) override; + + future> Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetLabels( google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_global_addresses_v1::GlobalAddressesRetryPolicy> diff --git a/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.cc b/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.cc index 0a30ee8854962..2759adde3cd44 100644 --- a/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.cc +++ b/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.cc @@ -44,6 +44,31 @@ GlobalAddressesTracingConnection::DeleteAddress( return internal::EndSpan(std::move(span), child_->DeleteAddress(request)); } +StatusOr +GlobalAddressesTracingConnection::DeleteAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1:: + DeleteAddressRequest const& request) { + auto span = internal::MakeSpan( + "compute_global_addresses_v1::GlobalAddressesConnection::DeleteAddress"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAddress(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GlobalAddressesTracingConnection::DeleteAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_global_addresses_v1::GlobalAddressesConnection::DeleteAddress"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAddress(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr GlobalAddressesTracingConnection::GetAddress( google::cloud::cpp::compute::global_addresses::v1::GetAddressRequest const& @@ -64,6 +89,31 @@ GlobalAddressesTracingConnection::InsertAddress( return internal::EndSpan(std::move(span), child_->InsertAddress(request)); } +StatusOr +GlobalAddressesTracingConnection::InsertAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1:: + InsertAddressRequest const& request) { + auto span = internal::MakeSpan( + "compute_global_addresses_v1::GlobalAddressesConnection::InsertAddress"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertAddress(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GlobalAddressesTracingConnection::InsertAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_global_addresses_v1::GlobalAddressesConnection::InsertAddress"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertAddress(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange GlobalAddressesTracingConnection::ListGlobalAddresses( google::cloud::cpp::compute::global_addresses::v1:: @@ -87,6 +137,31 @@ GlobalAddressesTracingConnection::Move( return internal::EndSpan(std::move(span), child_->Move(request)); } +StatusOr +GlobalAddressesTracingConnection::Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1::MoveRequest const& + request) { + auto span = internal::MakeSpan( + "compute_global_addresses_v1::GlobalAddressesConnection::Move"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, + child_->Move(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GlobalAddressesTracingConnection::Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_global_addresses_v1::GlobalAddressesConnection::Move"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Move(google::cloud::ExperimentalTag{}, operation)); +} + future> GlobalAddressesTracingConnection::SetLabels( google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const& @@ -97,6 +172,31 @@ GlobalAddressesTracingConnection::SetLabels( return internal::EndSpan(std::move(span), child_->SetLabels(request)); } +StatusOr +GlobalAddressesTracingConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const& + request) { + auto span = internal::MakeSpan( + "compute_global_addresses_v1::GlobalAddressesConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GlobalAddressesTracingConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_global_addresses_v1::GlobalAddressesConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.h b/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.h index 317a01c5fcb7f..47d942ba940e0 100644 --- a/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.h +++ b/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.h @@ -45,6 +45,15 @@ class GlobalAddressesTracingConnection google::cloud::cpp::compute::global_addresses::v1:: DeleteAddressRequest const& request) override; + StatusOr DeleteAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1:: + DeleteAddressRequest const& request) override; + + future> DeleteAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetAddress( google::cloud::cpp::compute::global_addresses::v1:: GetAddressRequest const& request) override; @@ -53,6 +62,15 @@ class GlobalAddressesTracingConnection google::cloud::cpp::compute::global_addresses::v1:: InsertAddressRequest const& request) override; + StatusOr InsertAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1:: + InsertAddressRequest const& request) override; + + future> InsertAddress( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListGlobalAddresses( google::cloud::cpp::compute::global_addresses::v1:: ListGlobalAddressesRequest request) override; @@ -61,10 +79,28 @@ class GlobalAddressesTracingConnection google::cloud::cpp::compute::global_addresses::v1::MoveRequest const& request) override; + StatusOr Move( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1::MoveRequest const& + request) override; + + future> Move( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetLabels( google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/global_addresses/v1/mocks/mock_global_addresses_connection.h b/google/cloud/compute/global_addresses/v1/mocks/mock_global_addresses_connection.h index 0a14f3087881d..edfb2ecdd18a4 100644 --- a/google/cloud/compute/global_addresses/v1/mocks/mock_global_addresses_connection.h +++ b/google/cloud/compute/global_addresses/v1/mocks/mock_global_addresses_connection.h @@ -53,6 +53,19 @@ class MockGlobalAddressesConnection DeleteAddressRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteAddress, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1:: + DeleteAddressRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteAddress, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetAddress, (google::cloud::cpp::compute::global_addresses::v1:: GetAddressRequest const& request), @@ -64,6 +77,19 @@ class MockGlobalAddressesConnection InsertAddressRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertAddress, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1:: + InsertAddressRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertAddress, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListGlobalAddresses, (google::cloud::cpp::compute::global_addresses::v1:: @@ -76,11 +102,36 @@ class MockGlobalAddressesConnection request), (override)); + MOCK_METHOD( + StatusOr, Move, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1::MoveRequest const& + request), + (override)); + + MOCK_METHOD(future>, + Move, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetLabels, (google::cloud::cpp::compute::global_addresses::v1:: SetLabelsRequest const& request), (override)); + + MOCK_METHOD(StatusOr, SetLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_addresses::v1:: + SetLabelsRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetLabels, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection.cc b/google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection.cc index 00af67687f095..31ea46d293f9b 100644 --- a/google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection.cc +++ b/google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection.cc @@ -46,6 +46,24 @@ GlobalForwardingRulesConnection::DeleteForwardingRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +GlobalForwardingRulesConnection::DeleteForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + DeleteForwardingRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GlobalForwardingRulesConnection::DeleteForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr GlobalForwardingRulesConnection::GetForwardingRule( google::cloud::cpp::compute::global_forwarding_rules::v1:: @@ -62,6 +80,24 @@ GlobalForwardingRulesConnection::InsertForwardingRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +GlobalForwardingRulesConnection::InsertForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + InsertForwardingRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GlobalForwardingRulesConnection::InsertForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange GlobalForwardingRulesConnection::ListGlobalForwardingRules( google::cloud::cpp::compute::global_forwarding_rules::v1:: @@ -79,10 +115,46 @@ GlobalForwardingRulesConnection::PatchForwardingRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +GlobalForwardingRulesConnection::PatchForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + PatchForwardingRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +GlobalForwardingRulesConnection::PatchForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GlobalForwardingRulesConnection::SetLabels( + google::cloud::cpp::compute::global_forwarding_rules::v1:: + SetLabelsRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr GlobalForwardingRulesConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: SetLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GlobalForwardingRulesConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -97,6 +169,24 @@ GlobalForwardingRulesConnection::SetTarget( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +GlobalForwardingRulesConnection::SetTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + SetTargetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GlobalForwardingRulesConnection::SetTarget( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_global_forwarding_rules_v1 } // namespace cloud diff --git a/google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection.h b/google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection.h index d836fdb93d345..54b362a640156 100644 --- a/google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection.h +++ b/google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection_idempotency_policy.h" #include "google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -198,6 +200,17 @@ class GlobalForwardingRulesConnection { DeleteForwardingRule(google::cloud::cpp::compute::global_forwarding_rules:: v1::DeleteForwardingRuleRequest const& request); + virtual StatusOr + DeleteForwardingRule(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules:: + v1::DeleteForwardingRuleRequest const& request); + + virtual future> + DeleteForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetForwardingRule(google::cloud::cpp::compute::global_forwarding_rules::v1:: GetForwardingRuleRequest const& request); @@ -206,6 +219,17 @@ class GlobalForwardingRulesConnection { InsertForwardingRule(google::cloud::cpp::compute::global_forwarding_rules:: v1::InsertForwardingRuleRequest const& request); + virtual StatusOr + InsertForwardingRule(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules:: + v1::InsertForwardingRuleRequest const& request); + + virtual future> + InsertForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListGlobalForwardingRules( google::cloud::cpp::compute::global_forwarding_rules::v1:: @@ -215,13 +239,41 @@ class GlobalForwardingRulesConnection { PatchForwardingRule(google::cloud::cpp::compute::global_forwarding_rules::v1:: PatchForwardingRuleRequest const& request); + virtual StatusOr + PatchForwardingRule(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + PatchForwardingRuleRequest const& request); + + virtual future> + PatchForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetLabels(google::cloud::cpp::compute::global_forwarding_rules::v1:: SetLabelsRequest const& request); + virtual StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + SetLabelsRequest const& request); + + virtual future> + SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetTarget(google::cloud::cpp::compute::global_forwarding_rules::v1:: SetTargetRequest const& request); + + virtual StatusOr SetTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + SetTargetRequest const& request); + + virtual future> + SetTarget(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_rest_connection_impl.cc b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_rest_connection_impl.cc index e9a54cb5ecc63..5e94ac4c24695 100644 --- a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_rest_connection_impl.cc +++ b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -104,6 +105,77 @@ GlobalForwardingRulesRestConnectionImpl::DeleteForwardingRule( }); } +StatusOr +GlobalForwardingRulesRestConnectionImpl::DeleteForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + DeleteForwardingRuleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteForwardingRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + DeleteForwardingRuleRequest const& request) { + return stub_->DeleteForwardingRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +GlobalForwardingRulesRestConnectionImpl::DeleteForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr GlobalForwardingRulesRestConnectionImpl::GetForwardingRule( google::cloud::cpp::compute::global_forwarding_rules::v1:: @@ -178,6 +250,77 @@ GlobalForwardingRulesRestConnectionImpl::InsertForwardingRule( }); } +StatusOr +GlobalForwardingRulesRestConnectionImpl::InsertForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + InsertForwardingRuleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertForwardingRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + InsertForwardingRuleRequest const& request) { + return stub_->InsertForwardingRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +GlobalForwardingRulesRestConnectionImpl::InsertForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange GlobalForwardingRulesRestConnectionImpl::ListGlobalForwardingRules( google::cloud::cpp::compute::global_forwarding_rules::v1:: @@ -276,6 +419,77 @@ GlobalForwardingRulesRestConnectionImpl::PatchForwardingRule( }); } +StatusOr +GlobalForwardingRulesRestConnectionImpl::PatchForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + PatchForwardingRuleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchForwardingRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + PatchForwardingRuleRequest const& request) { + return stub_->PatchForwardingRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +GlobalForwardingRulesRestConnectionImpl::PatchForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> GlobalForwardingRulesRestConnectionImpl::SetLabels( google::cloud::cpp::compute::global_forwarding_rules::v1:: @@ -334,6 +548,77 @@ GlobalForwardingRulesRestConnectionImpl::SetLabels( }); } +StatusOr +GlobalForwardingRulesRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + SetLabelsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + SetLabelsRequest const& request) { + return stub_->SetLabels(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +GlobalForwardingRulesRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> GlobalForwardingRulesRestConnectionImpl::SetTarget( google::cloud::cpp::compute::global_forwarding_rules::v1:: @@ -392,6 +677,77 @@ GlobalForwardingRulesRestConnectionImpl::SetTarget( }); } +StatusOr +GlobalForwardingRulesRestConnectionImpl::SetTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + SetTargetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetTarget(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + SetTargetRequest const& request) { + return stub_->SetTarget(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +GlobalForwardingRulesRestConnectionImpl::SetTarget( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_global_forwarding_rules_v1_internal } // namespace cloud diff --git a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_rest_connection_impl.h b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_rest_connection_impl.h index 324bee1507e12..3ad7a27bb105a 100644 --- a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_rest_connection_impl.h +++ b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_rest_connection_impl.h @@ -59,6 +59,16 @@ class GlobalForwardingRulesRestConnectionImpl google::cloud::cpp::compute::global_forwarding_rules::v1:: DeleteForwardingRuleRequest const& request) override; + StatusOr DeleteForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + DeleteForwardingRuleRequest const& request) override; + + future> + DeleteForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetForwardingRule( google::cloud::cpp::compute::global_forwarding_rules::v1:: GetForwardingRuleRequest const& request) override; @@ -68,6 +78,16 @@ class GlobalForwardingRulesRestConnectionImpl google::cloud::cpp::compute::global_forwarding_rules::v1:: InsertForwardingRuleRequest const& request) override; + StatusOr InsertForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + InsertForwardingRuleRequest const& request) override; + + future> + InsertForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListGlobalForwardingRules( google::cloud::cpp::compute::global_forwarding_rules::v1:: @@ -77,14 +97,42 @@ class GlobalForwardingRulesRestConnectionImpl PatchForwardingRule(google::cloud::cpp::compute::global_forwarding_rules::v1:: PatchForwardingRuleRequest const& request) override; + StatusOr PatchForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + PatchForwardingRuleRequest const& request) override; + + future> + PatchForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetLabels( google::cloud::cpp::compute::global_forwarding_rules::v1:: SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + SetLabelsRequest const& request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetTarget( google::cloud::cpp::compute::global_forwarding_rules::v1:: SetTargetRequest const& request) override; + StatusOr SetTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + SetTargetRequest const& request) override; + + future> SetTarget( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_global_forwarding_rules_v1::GlobalForwardingRulesRetryPolicy> diff --git a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.cc b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.cc index 990686c070dd6..5e485a1289350 100644 --- a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.cc +++ b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.cc @@ -48,6 +48,33 @@ GlobalForwardingRulesTracingConnection::DeleteForwardingRule( child_->DeleteForwardingRule(request)); } +StatusOr +GlobalForwardingRulesTracingConnection::DeleteForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + DeleteForwardingRuleRequest const& request) { + auto span = internal::MakeSpan( + "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" + "DeleteForwardingRule"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteForwardingRule( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GlobalForwardingRulesTracingConnection::DeleteForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" + "DeleteForwardingRule"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteForwardingRule( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr GlobalForwardingRulesTracingConnection::GetForwardingRule( google::cloud::cpp::compute::global_forwarding_rules::v1:: @@ -71,6 +98,33 @@ GlobalForwardingRulesTracingConnection::InsertForwardingRule( child_->InsertForwardingRule(request)); } +StatusOr +GlobalForwardingRulesTracingConnection::InsertForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + InsertForwardingRuleRequest const& request) { + auto span = internal::MakeSpan( + "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" + "InsertForwardingRule"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertForwardingRule( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GlobalForwardingRulesTracingConnection::InsertForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" + "InsertForwardingRule"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertForwardingRule( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange GlobalForwardingRulesTracingConnection::ListGlobalForwardingRules( google::cloud::cpp::compute::global_forwarding_rules::v1:: @@ -97,6 +151,33 @@ GlobalForwardingRulesTracingConnection::PatchForwardingRule( child_->PatchForwardingRule(request)); } +StatusOr +GlobalForwardingRulesTracingConnection::PatchForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + PatchForwardingRuleRequest const& request) { + auto span = internal::MakeSpan( + "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" + "PatchForwardingRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchForwardingRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GlobalForwardingRulesTracingConnection::PatchForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" + "PatchForwardingRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchForwardingRule(google::cloud::ExperimentalTag{}, operation)); +} + future> GlobalForwardingRulesTracingConnection::SetLabels( google::cloud::cpp::compute::global_forwarding_rules::v1:: @@ -108,6 +189,33 @@ GlobalForwardingRulesTracingConnection::SetLabels( return internal::EndSpan(std::move(span), child_->SetLabels(request)); } +StatusOr +GlobalForwardingRulesTracingConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + SetLabelsRequest const& request) { + auto span = internal::MakeSpan( + "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" + "SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GlobalForwardingRulesTracingConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" + "SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); +} + future> GlobalForwardingRulesTracingConnection::SetTarget( google::cloud::cpp::compute::global_forwarding_rules::v1:: @@ -119,6 +227,33 @@ GlobalForwardingRulesTracingConnection::SetTarget( return internal::EndSpan(std::move(span), child_->SetTarget(request)); } +StatusOr +GlobalForwardingRulesTracingConnection::SetTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + SetTargetRequest const& request) { + auto span = internal::MakeSpan( + "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" + "SetTarget"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetTarget(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GlobalForwardingRulesTracingConnection::SetTarget( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" + "SetTarget"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetTarget(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr< diff --git a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.h b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.h index ff86ad709683f..0602b26e60efe 100644 --- a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.h +++ b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.h @@ -49,6 +49,16 @@ class GlobalForwardingRulesTracingConnection google::cloud::cpp::compute::global_forwarding_rules::v1:: DeleteForwardingRuleRequest const& request) override; + StatusOr DeleteForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + DeleteForwardingRuleRequest const& request) override; + + future> + DeleteForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetForwardingRule( google::cloud::cpp::compute::global_forwarding_rules::v1:: GetForwardingRuleRequest const& request) override; @@ -58,6 +68,16 @@ class GlobalForwardingRulesTracingConnection google::cloud::cpp::compute::global_forwarding_rules::v1:: InsertForwardingRuleRequest const& request) override; + StatusOr InsertForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + InsertForwardingRuleRequest const& request) override; + + future> + InsertForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListGlobalForwardingRules( google::cloud::cpp::compute::global_forwarding_rules::v1:: @@ -67,14 +87,42 @@ class GlobalForwardingRulesTracingConnection PatchForwardingRule(google::cloud::cpp::compute::global_forwarding_rules::v1:: PatchForwardingRuleRequest const& request) override; + StatusOr PatchForwardingRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + PatchForwardingRuleRequest const& request) override; + + future> + PatchForwardingRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetLabels( google::cloud::cpp::compute::global_forwarding_rules::v1:: SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + SetLabelsRequest const& request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetTarget( google::cloud::cpp::compute::global_forwarding_rules::v1:: SetTargetRequest const& request) override; + StatusOr SetTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + SetTargetRequest const& request) override; + + future> SetTarget( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr< compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection> diff --git a/google/cloud/compute/global_forwarding_rules/v1/mocks/mock_global_forwarding_rules_connection.h b/google/cloud/compute/global_forwarding_rules/v1/mocks/mock_global_forwarding_rules_connection.h index 297c0042c1c99..ed7edaf2380e0 100644 --- a/google/cloud/compute/global_forwarding_rules/v1/mocks/mock_global_forwarding_rules_connection.h +++ b/google/cloud/compute/global_forwarding_rules/v1/mocks/mock_global_forwarding_rules_connection.h @@ -55,6 +55,19 @@ class MockGlobalForwardingRulesConnection DeleteForwardingRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteForwardingRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + DeleteForwardingRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteForwardingRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetForwardingRule, (google::cloud::cpp::compute::global_forwarding_rules::v1:: @@ -67,6 +80,19 @@ class MockGlobalForwardingRulesConnection InsertForwardingRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertForwardingRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + InsertForwardingRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertForwardingRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListGlobalForwardingRules, (google::cloud::cpp::compute::global_forwarding_rules::v1:: @@ -79,17 +105,54 @@ class MockGlobalForwardingRulesConnection PatchForwardingRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchForwardingRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + PatchForwardingRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchForwardingRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetLabels, (google::cloud::cpp::compute::global_forwarding_rules::v1:: SetLabelsRequest const& request), (override)); + MOCK_METHOD(StatusOr, SetLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + SetLabelsRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetLabels, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetTarget, (google::cloud::cpp::compute::global_forwarding_rules::v1:: SetTargetRequest const& request), (override)); + + MOCK_METHOD(StatusOr, SetTarget, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_forwarding_rules::v1:: + SetTargetRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetTarget, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection.cc b/google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection.cc index 15809a0cb5985..85e54856620b7 100644 --- a/google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection.cc +++ b/google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection.cc @@ -47,6 +47,24 @@ GlobalNetworkEndpointGroupsConnection::AttachNetworkEndpoints( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +GlobalNetworkEndpointGroupsConnection::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GlobalNetworkEndpointGroupsConnection::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> GlobalNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: @@ -56,6 +74,24 @@ GlobalNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +GlobalNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GlobalNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> GlobalNetworkEndpointGroupsConnection::DetachNetworkEndpoints( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: @@ -65,6 +101,24 @@ GlobalNetworkEndpointGroupsConnection::DetachNetworkEndpoints( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +GlobalNetworkEndpointGroupsConnection::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GlobalNetworkEndpointGroupsConnection::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr GlobalNetworkEndpointGroupsConnection::GetNetworkEndpointGroup( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: @@ -81,6 +135,24 @@ GlobalNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +GlobalNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GlobalNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange GlobalNetworkEndpointGroupsConnection::ListGlobalNetworkEndpointGroups( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: diff --git a/google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection.h b/google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection.h index c08ab57be0f13..9e1117ab07cf2 100644 --- a/google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection.h +++ b/google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection_idempotency_policy.h" #include "google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -209,16 +211,49 @@ class GlobalNetworkEndpointGroupsConnection { google::cloud::cpp::compute::global_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request); + virtual StatusOr + AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request); + + virtual future> + AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteNetworkEndpointGroup( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request); + virtual StatusOr + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request); + + virtual future> + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DetachNetworkEndpoints( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request); + virtual StatusOr + DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request); + + virtual future> + DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetNetworkEndpointGroup( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: @@ -229,6 +264,17 @@ class GlobalNetworkEndpointGroupsConnection { google::cloud::cpp::compute::global_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request); + virtual StatusOr + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request); + + virtual future> + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListGlobalNetworkEndpointGroups( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: diff --git a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_rest_connection_impl.cc b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_rest_connection_impl.cc index 5be2cc2be35bc..29dd031846a0c 100644 --- a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_rest_connection_impl.cc +++ b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -106,6 +107,77 @@ GlobalNetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( }); } +StatusOr +GlobalNetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AttachNetworkEndpoints(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request) { + return stub_->AttachNetworkEndpoints(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +GlobalNetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> GlobalNetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: @@ -165,6 +237,78 @@ GlobalNetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( }); } +StatusOr +GlobalNetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNetworkEndpointGroup(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request) { + return stub_->DeleteNetworkEndpointGroup(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +GlobalNetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> GlobalNetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: @@ -224,6 +368,77 @@ GlobalNetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( }); } +StatusOr +GlobalNetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DetachNetworkEndpoints(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request) { + return stub_->DetachNetworkEndpoints(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +GlobalNetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr GlobalNetworkEndpointGroupsRestConnectionImpl::GetNetworkEndpointGroup( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: @@ -299,6 +514,78 @@ GlobalNetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( }); } +StatusOr +GlobalNetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertNetworkEndpointGroup(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request) { + return stub_->InsertNetworkEndpointGroup(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +GlobalNetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange GlobalNetworkEndpointGroupsRestConnectionImpl::ListGlobalNetworkEndpointGroups( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: diff --git a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_rest_connection_impl.h b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_rest_connection_impl.h index 841d313b015d2..694408349267f 100644 --- a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_rest_connection_impl.h +++ b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_rest_connection_impl.h @@ -59,16 +59,47 @@ class GlobalNetworkEndpointGroupsRestConnectionImpl google::cloud::cpp::compute::global_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) override; + StatusOr AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request) override; + + future> + AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteNetworkEndpointGroup( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) override; + StatusOr + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request) override; + + future> + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DetachNetworkEndpoints( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) override; + StatusOr DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request) override; + + future> + DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNetworkEndpointGroup( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: @@ -79,6 +110,17 @@ class GlobalNetworkEndpointGroupsRestConnectionImpl google::cloud::cpp::compute::global_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) override; + StatusOr + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request) override; + + future> + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListGlobalNetworkEndpointGroups( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: diff --git a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.cc b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.cc index 3dbbc3c48ce92..a3dc1f4f3f694 100644 --- a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.cc +++ b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.cc @@ -49,6 +49,33 @@ GlobalNetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( child_->AttachNetworkEndpoints(request)); } +StatusOr +GlobalNetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request) { + auto span = internal::MakeSpan( + "compute_global_network_endpoint_groups_v1::" + "GlobalNetworkEndpointGroupsConnection::AttachNetworkEndpoints"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->AttachNetworkEndpoints( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GlobalNetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_global_network_endpoint_groups_v1::" + "GlobalNetworkEndpointGroupsConnection::AttachNetworkEndpoints"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->AttachNetworkEndpoints( + google::cloud::ExperimentalTag{}, operation)); +} + future> GlobalNetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: @@ -61,6 +88,33 @@ GlobalNetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( child_->DeleteNetworkEndpointGroup(request)); } +StatusOr +GlobalNetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request) { + auto span = internal::MakeSpan( + "compute_global_network_endpoint_groups_v1::" + "GlobalNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GlobalNetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_global_network_endpoint_groups_v1::" + "GlobalNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag{}, operation)); +} + future> GlobalNetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: @@ -73,6 +127,33 @@ GlobalNetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( child_->DetachNetworkEndpoints(request)); } +StatusOr +GlobalNetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request) { + auto span = internal::MakeSpan( + "compute_global_network_endpoint_groups_v1::" + "GlobalNetworkEndpointGroupsConnection::DetachNetworkEndpoints"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DetachNetworkEndpoints( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GlobalNetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_global_network_endpoint_groups_v1::" + "GlobalNetworkEndpointGroupsConnection::DetachNetworkEndpoints"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DetachNetworkEndpoints( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr GlobalNetworkEndpointGroupsTracingConnection::GetNetworkEndpointGroup( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: @@ -96,6 +177,33 @@ GlobalNetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( child_->InsertNetworkEndpointGroup(request)); } +StatusOr +GlobalNetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request) { + auto span = internal::MakeSpan( + "compute_global_network_endpoint_groups_v1::" + "GlobalNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GlobalNetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_global_network_endpoint_groups_v1::" + "GlobalNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange GlobalNetworkEndpointGroupsTracingConnection::ListGlobalNetworkEndpointGroups( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: diff --git a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.h b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.h index 26467bff5c094..84674294c0680 100644 --- a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.h +++ b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.h @@ -49,16 +49,47 @@ class GlobalNetworkEndpointGroupsTracingConnection google::cloud::cpp::compute::global_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) override; + StatusOr AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request) override; + + future> + AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteNetworkEndpointGroup( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) override; + StatusOr + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request) override; + + future> + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DetachNetworkEndpoints( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) override; + StatusOr DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request) override; + + future> + DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNetworkEndpointGroup( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: @@ -69,6 +100,17 @@ class GlobalNetworkEndpointGroupsTracingConnection google::cloud::cpp::compute::global_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) override; + StatusOr + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request) override; + + future> + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListGlobalNetworkEndpointGroups( google::cloud::cpp::compute::global_network_endpoint_groups::v1:: diff --git a/google/cloud/compute/global_network_endpoint_groups/v1/mocks/mock_global_network_endpoint_groups_connection.h b/google/cloud/compute/global_network_endpoint_groups/v1/mocks/mock_global_network_endpoint_groups_connection.h index b587cd33068d2..ba7c3dbf720d1 100644 --- a/google/cloud/compute/global_network_endpoint_groups/v1/mocks/mock_global_network_endpoint_groups_connection.h +++ b/google/cloud/compute/global_network_endpoint_groups/v1/mocks/mock_global_network_endpoint_groups_connection.h @@ -55,18 +55,57 @@ class MockGlobalNetworkEndpointGroupsConnection AttachNetworkEndpointsRequest const& request), (override)); + MOCK_METHOD(StatusOr, + AttachNetworkEndpoints, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request), + (override)); + + MOCK_METHOD(future>, + AttachNetworkEndpoints, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteNetworkEndpointGroup, (google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteNetworkEndpointGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteNetworkEndpointGroup, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DetachNetworkEndpoints, (google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DetachNetworkEndpoints, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request), + (override)); + + MOCK_METHOD(future>, + DetachNetworkEndpoints, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetNetworkEndpointGroup, (google::cloud::cpp::compute::global_network_endpoint_groups::v1:: @@ -79,6 +118,19 @@ class MockGlobalNetworkEndpointGroupsConnection InsertNetworkEndpointGroupRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertNetworkEndpointGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertNetworkEndpointGroup, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListGlobalNetworkEndpointGroups, diff --git a/google/cloud/compute/global_operations/v1/global_operations_connection.h b/google/cloud/compute/global_operations/v1/global_operations_connection.h index bb1fa3207966f..f3cbabf14e43f 100644 --- a/google/cloud/compute/global_operations/v1/global_operations_connection.h +++ b/google/cloud/compute/global_operations/v1/global_operations_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/global_operations/v1/global_operations_connection_idempotency_policy.h" #include "google/cloud/compute/global_operations/v1/internal/global_operations_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/compute/global_organization_operations/v1/global_organization_operations_connection.h b/google/cloud/compute/global_organization_operations/v1/global_organization_operations_connection.h index 6abcdf536143c..36354dee65d54 100644 --- a/google/cloud/compute/global_organization_operations/v1/global_organization_operations_connection.h +++ b/google/cloud/compute/global_organization_operations/v1/global_organization_operations_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/global_organization_operations/v1/global_organization_operations_connection_idempotency_policy.h" #include "google/cloud/compute/global_organization_operations/v1/internal/global_organization_operations_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection.cc b/google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection.cc index 3c26ad4639ab1..56eee7940ec4c 100644 --- a/google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection.cc +++ b/google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection.cc @@ -47,6 +47,24 @@ GlobalPublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +GlobalPublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + DeletePublicDelegatedPrefixRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GlobalPublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr GlobalPublicDelegatedPrefixesConnection::GetPublicDelegatedPrefix( google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: @@ -63,6 +81,24 @@ GlobalPublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +GlobalPublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + InsertPublicDelegatedPrefixRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GlobalPublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange GlobalPublicDelegatedPrefixesConnection::ListGlobalPublicDelegatedPrefixes( google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: @@ -80,6 +116,24 @@ GlobalPublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +GlobalPublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + PatchPublicDelegatedPrefixRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GlobalPublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_global_public_delegated_prefixes_v1 } // namespace cloud diff --git a/google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection.h b/google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection.h index 3835ddf5ab03a..4a242f5674790 100644 --- a/google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection.h +++ b/google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection_idempotency_policy.h" #include "google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -210,6 +212,17 @@ class GlobalPublicDelegatedPrefixesConnection { google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request); + virtual StatusOr + DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + DeletePublicDelegatedPrefixRequest const& request); + + virtual future> + DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetPublicDelegatedPrefix( google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: @@ -220,6 +233,17 @@ class GlobalPublicDelegatedPrefixesConnection { google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request); + virtual StatusOr + InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + InsertPublicDelegatedPrefixRequest const& request); + + virtual future> + InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListGlobalPublicDelegatedPrefixes( google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: @@ -229,6 +253,17 @@ class GlobalPublicDelegatedPrefixesConnection { PatchPublicDelegatedPrefix( google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request); + + virtual StatusOr + PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + PatchPublicDelegatedPrefixRequest const& request); + + virtual future> + PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_rest_connection_impl.cc b/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_rest_connection_impl.cc index 371cc86d377c2..ff2008e566115 100644 --- a/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_rest_connection_impl.cc +++ b/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -106,6 +107,78 @@ GlobalPublicDelegatedPrefixesRestConnectionImpl::DeletePublicDelegatedPrefix( }); } +StatusOr +GlobalPublicDelegatedPrefixesRestConnectionImpl::DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + DeletePublicDelegatedPrefixRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePublicDelegatedPrefix(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + DeletePublicDelegatedPrefixRequest const& request) { + return stub_->DeletePublicDelegatedPrefix(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +GlobalPublicDelegatedPrefixesRestConnectionImpl::DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr GlobalPublicDelegatedPrefixesRestConnectionImpl::GetPublicDelegatedPrefix( google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: @@ -181,6 +254,78 @@ GlobalPublicDelegatedPrefixesRestConnectionImpl::InsertPublicDelegatedPrefix( }); } +StatusOr +GlobalPublicDelegatedPrefixesRestConnectionImpl::InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + InsertPublicDelegatedPrefixRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertPublicDelegatedPrefix(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + InsertPublicDelegatedPrefixRequest const& request) { + return stub_->InsertPublicDelegatedPrefix(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +GlobalPublicDelegatedPrefixesRestConnectionImpl::InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange GlobalPublicDelegatedPrefixesRestConnectionImpl:: ListGlobalPublicDelegatedPrefixes( @@ -283,6 +428,78 @@ GlobalPublicDelegatedPrefixesRestConnectionImpl::PatchPublicDelegatedPrefix( }); } +StatusOr +GlobalPublicDelegatedPrefixesRestConnectionImpl::PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + PatchPublicDelegatedPrefixRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchPublicDelegatedPrefix(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + PatchPublicDelegatedPrefixRequest const& request) { + return stub_->PatchPublicDelegatedPrefix(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +GlobalPublicDelegatedPrefixesRestConnectionImpl::PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_global_public_delegated_prefixes_v1_internal } // namespace cloud diff --git a/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_rest_connection_impl.h b/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_rest_connection_impl.h index d9923b623287d..14e2e1b70c7b7 100644 --- a/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_rest_connection_impl.h +++ b/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_rest_connection_impl.h @@ -59,6 +59,17 @@ class GlobalPublicDelegatedPrefixesRestConnectionImpl google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request) override; + StatusOr + DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + DeletePublicDelegatedPrefixRequest const& request) override; + + future> + DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetPublicDelegatedPrefix( google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: @@ -69,6 +80,17 @@ class GlobalPublicDelegatedPrefixesRestConnectionImpl google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request) override; + StatusOr + InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + InsertPublicDelegatedPrefixRequest const& request) override; + + future> + InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListGlobalPublicDelegatedPrefixes( google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: @@ -79,6 +101,17 @@ class GlobalPublicDelegatedPrefixesRestConnectionImpl google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request) override; + StatusOr + PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + PatchPublicDelegatedPrefixRequest const& request) override; + + future> + PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr diff --git a/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_tracing_connection.cc b/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_tracing_connection.cc index 7ac87526316c3..476ec586fc75c 100644 --- a/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_tracing_connection.cc +++ b/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_tracing_connection.cc @@ -49,6 +49,33 @@ GlobalPublicDelegatedPrefixesTracingConnection::DeletePublicDelegatedPrefix( child_->DeletePublicDelegatedPrefix(request)); } +StatusOr +GlobalPublicDelegatedPrefixesTracingConnection::DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + DeletePublicDelegatedPrefixRequest const& request) { + auto span = internal::MakeSpan( + "compute_global_public_delegated_prefixes_v1::" + "GlobalPublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GlobalPublicDelegatedPrefixesTracingConnection::DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_global_public_delegated_prefixes_v1::" + "GlobalPublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr GlobalPublicDelegatedPrefixesTracingConnection::GetPublicDelegatedPrefix( google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: @@ -72,6 +99,33 @@ GlobalPublicDelegatedPrefixesTracingConnection::InsertPublicDelegatedPrefix( child_->InsertPublicDelegatedPrefix(request)); } +StatusOr +GlobalPublicDelegatedPrefixesTracingConnection::InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + InsertPublicDelegatedPrefixRequest const& request) { + auto span = internal::MakeSpan( + "compute_global_public_delegated_prefixes_v1::" + "GlobalPublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GlobalPublicDelegatedPrefixesTracingConnection::InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_global_public_delegated_prefixes_v1::" + "GlobalPublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange GlobalPublicDelegatedPrefixesTracingConnection:: ListGlobalPublicDelegatedPrefixes( @@ -100,6 +154,33 @@ GlobalPublicDelegatedPrefixesTracingConnection::PatchPublicDelegatedPrefix( child_->PatchPublicDelegatedPrefix(request)); } +StatusOr +GlobalPublicDelegatedPrefixesTracingConnection::PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + PatchPublicDelegatedPrefixRequest const& request) { + auto span = internal::MakeSpan( + "compute_global_public_delegated_prefixes_v1::" + "GlobalPublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GlobalPublicDelegatedPrefixesTracingConnection::PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_global_public_delegated_prefixes_v1::" + "GlobalPublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr + DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + DeletePublicDelegatedPrefixRequest const& request) override; + + future> + DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetPublicDelegatedPrefix( google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: @@ -59,6 +70,17 @@ class GlobalPublicDelegatedPrefixesTracingConnection google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request) override; + StatusOr + InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + InsertPublicDelegatedPrefixRequest const& request) override; + + future> + InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListGlobalPublicDelegatedPrefixes( google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: @@ -69,6 +91,17 @@ class GlobalPublicDelegatedPrefixesTracingConnection google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request) override; + StatusOr + PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: + PatchPublicDelegatedPrefixRequest const& request) override; + + future> + PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr diff --git a/google/cloud/compute/global_public_delegated_prefixes/v1/mocks/mock_global_public_delegated_prefixes_connection.h b/google/cloud/compute/global_public_delegated_prefixes/v1/mocks/mock_global_public_delegated_prefixes_connection.h index b5264bcddd83f..562be4945a958 100644 --- a/google/cloud/compute/global_public_delegated_prefixes/v1/mocks/mock_global_public_delegated_prefixes_connection.h +++ b/google/cloud/compute/global_public_delegated_prefixes/v1/mocks/mock_global_public_delegated_prefixes_connection.h @@ -55,6 +55,19 @@ class MockGlobalPublicDelegatedPrefixesConnection v1::DeletePublicDelegatedPrefixRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeletePublicDelegatedPrefix, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes:: + v1::DeletePublicDelegatedPrefixRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeletePublicDelegatedPrefix, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetPublicDelegatedPrefix, (google::cloud::cpp::compute::global_public_delegated_prefixes:: @@ -67,6 +80,19 @@ class MockGlobalPublicDelegatedPrefixesConnection v1::InsertPublicDelegatedPrefixRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertPublicDelegatedPrefix, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes:: + v1::InsertPublicDelegatedPrefixRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertPublicDelegatedPrefix, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListGlobalPublicDelegatedPrefixes, @@ -79,6 +105,19 @@ class MockGlobalPublicDelegatedPrefixesConnection (google::cloud::cpp::compute::global_public_delegated_prefixes:: v1::PatchPublicDelegatedPrefixRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + PatchPublicDelegatedPrefix, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::global_public_delegated_prefixes:: + v1::PatchPublicDelegatedPrefixRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchPublicDelegatedPrefix, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/health_checks/v1/health_checks_connection.cc b/google/cloud/compute/health_checks/v1/health_checks_connection.cc index d28f48cb0ec96..e646141818d43 100644 --- a/google/cloud/compute/health_checks/v1/health_checks_connection.cc +++ b/google/cloud/compute/health_checks/v1/health_checks_connection.cc @@ -55,6 +55,24 @@ HealthChecksConnection::DeleteHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +HealthChecksConnection::DeleteHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + DeleteHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HealthChecksConnection::DeleteHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr HealthChecksConnection::GetHealthCheck( google::cloud::cpp::compute::health_checks::v1:: @@ -71,6 +89,24 @@ HealthChecksConnection::InsertHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +HealthChecksConnection::InsertHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + InsertHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HealthChecksConnection::InsertHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange HealthChecksConnection::ListHealthChecks( google::cloud::cpp::compute::health_checks::v1:: @@ -88,6 +124,24 @@ HealthChecksConnection::PatchHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +HealthChecksConnection::PatchHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + PatchHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HealthChecksConnection::PatchHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> HealthChecksConnection::UpdateHealthCheck( google::cloud::cpp::compute::health_checks::v1:: @@ -97,6 +151,24 @@ HealthChecksConnection::UpdateHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +HealthChecksConnection::UpdateHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + UpdateHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HealthChecksConnection::UpdateHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_health_checks_v1 } // namespace cloud diff --git a/google/cloud/compute/health_checks/v1/health_checks_connection.h b/google/cloud/compute/health_checks/v1/health_checks_connection.h index 70636079047d5..e66bb6113d680 100644 --- a/google/cloud/compute/health_checks/v1/health_checks_connection.h +++ b/google/cloud/compute/health_checks/v1/health_checks_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/health_checks/v1/health_checks_connection_idempotency_policy.h" #include "google/cloud/compute/health_checks/v1/internal/health_checks_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -194,6 +196,16 @@ class HealthChecksConnection { DeleteHealthCheck(google::cloud::cpp::compute::health_checks::v1:: DeleteHealthCheckRequest const& request); + virtual StatusOr + DeleteHealthCheck(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + DeleteHealthCheckRequest const& request); + + virtual future> + DeleteHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetHealthCheck( google::cloud::cpp::compute::health_checks::v1:: GetHealthCheckRequest const& request); @@ -202,6 +214,16 @@ class HealthChecksConnection { InsertHealthCheck(google::cloud::cpp::compute::health_checks::v1:: InsertHealthCheckRequest const& request); + virtual StatusOr + InsertHealthCheck(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + InsertHealthCheckRequest const& request); + + virtual future> + InsertHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListHealthChecks( google::cloud::cpp::compute::health_checks::v1::ListHealthChecksRequest @@ -211,9 +233,28 @@ class HealthChecksConnection { PatchHealthCheck(google::cloud::cpp::compute::health_checks::v1:: PatchHealthCheckRequest const& request); + virtual StatusOr PatchHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + PatchHealthCheckRequest const& request); + + virtual future> + PatchHealthCheck(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> UpdateHealthCheck(google::cloud::cpp::compute::health_checks::v1:: UpdateHealthCheckRequest const& request); + + virtual StatusOr + UpdateHealthCheck(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + UpdateHealthCheckRequest const& request); + + virtual future> + UpdateHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/health_checks/v1/internal/health_checks_rest_connection_impl.cc b/google/cloud/compute/health_checks/v1/internal/health_checks_rest_connection_impl.cc index 3c66140d9e4b1..f309aaf7772a3 100644 --- a/google/cloud/compute/health_checks/v1/internal/health_checks_rest_connection_impl.cc +++ b/google/cloud/compute/health_checks/v1/internal/health_checks_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -144,6 +145,77 @@ HealthChecksRestConnectionImpl::DeleteHealthCheck( }); } +StatusOr +HealthChecksRestConnectionImpl::DeleteHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + DeleteHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::health_checks::v1:: + DeleteHealthCheckRequest const& request) { + return stub_->DeleteHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +HealthChecksRestConnectionImpl::DeleteHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr HealthChecksRestConnectionImpl::GetHealthCheck( google::cloud::cpp::compute::health_checks::v1::GetHealthCheckRequest const& @@ -218,6 +290,77 @@ HealthChecksRestConnectionImpl::InsertHealthCheck( }); } +StatusOr +HealthChecksRestConnectionImpl::InsertHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + InsertHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::health_checks::v1:: + InsertHealthCheckRequest const& request) { + return stub_->InsertHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +HealthChecksRestConnectionImpl::InsertHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange HealthChecksRestConnectionImpl::ListHealthChecks( google::cloud::cpp::compute::health_checks::v1::ListHealthChecksRequest @@ -313,6 +456,77 @@ HealthChecksRestConnectionImpl::PatchHealthCheck( }); } +StatusOr +HealthChecksRestConnectionImpl::PatchHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + PatchHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::health_checks::v1:: + PatchHealthCheckRequest const& request) { + return stub_->PatchHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +HealthChecksRestConnectionImpl::PatchHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> HealthChecksRestConnectionImpl::UpdateHealthCheck( google::cloud::cpp::compute::health_checks::v1:: @@ -371,6 +585,77 @@ HealthChecksRestConnectionImpl::UpdateHealthCheck( }); } +StatusOr +HealthChecksRestConnectionImpl::UpdateHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + UpdateHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::health_checks::v1:: + UpdateHealthCheckRequest const& request) { + return stub_->UpdateHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +HealthChecksRestConnectionImpl::UpdateHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_health_checks_v1_internal } // namespace cloud diff --git a/google/cloud/compute/health_checks/v1/internal/health_checks_rest_connection_impl.h b/google/cloud/compute/health_checks/v1/internal/health_checks_rest_connection_impl.h index 734051ae95038..852df29fef7c0 100644 --- a/google/cloud/compute/health_checks/v1/internal/health_checks_rest_connection_impl.h +++ b/google/cloud/compute/health_checks/v1/internal/health_checks_rest_connection_impl.h @@ -61,6 +61,16 @@ class HealthChecksRestConnectionImpl DeleteHealthCheck(google::cloud::cpp::compute::health_checks::v1:: DeleteHealthCheckRequest const& request) override; + StatusOr DeleteHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + DeleteHealthCheckRequest const& request) override; + + future> + DeleteHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetHealthCheck( google::cloud::cpp::compute::health_checks::v1:: GetHealthCheckRequest const& request) override; @@ -69,6 +79,16 @@ class HealthChecksRestConnectionImpl InsertHealthCheck(google::cloud::cpp::compute::health_checks::v1:: InsertHealthCheckRequest const& request) override; + StatusOr InsertHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + InsertHealthCheckRequest const& request) override; + + future> + InsertHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListHealthChecks( google::cloud::cpp::compute::health_checks::v1::ListHealthChecksRequest request) override; @@ -77,10 +97,29 @@ class HealthChecksRestConnectionImpl google::cloud::cpp::compute::health_checks::v1:: PatchHealthCheckRequest const& request) override; + StatusOr PatchHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + PatchHealthCheckRequest const& request) override; + + future> PatchHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateHealthCheck(google::cloud::cpp::compute::health_checks::v1:: UpdateHealthCheckRequest const& request) override; + StatusOr UpdateHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + UpdateHealthCheckRequest const& request) override; + + future> + UpdateHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy(Options const& options) { diff --git a/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.cc b/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.cc index bd4aacf2bc9cf..0d23f66b66a39 100644 --- a/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.cc +++ b/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.cc @@ -58,6 +58,31 @@ HealthChecksTracingConnection::DeleteHealthCheck( return internal::EndSpan(std::move(span), child_->DeleteHealthCheck(request)); } +StatusOr +HealthChecksTracingConnection::DeleteHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + DeleteHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_health_checks_v1::HealthChecksConnection::DeleteHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteHealthCheck(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HealthChecksTracingConnection::DeleteHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_health_checks_v1::HealthChecksConnection::DeleteHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteHealthCheck(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr HealthChecksTracingConnection::GetHealthCheck( google::cloud::cpp::compute::health_checks::v1::GetHealthCheckRequest const& @@ -78,6 +103,31 @@ HealthChecksTracingConnection::InsertHealthCheck( return internal::EndSpan(std::move(span), child_->InsertHealthCheck(request)); } +StatusOr +HealthChecksTracingConnection::InsertHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + InsertHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_health_checks_v1::HealthChecksConnection::InsertHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertHealthCheck(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HealthChecksTracingConnection::InsertHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_health_checks_v1::HealthChecksConnection::InsertHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertHealthCheck(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange HealthChecksTracingConnection::ListHealthChecks( google::cloud::cpp::compute::health_checks::v1::ListHealthChecksRequest @@ -101,6 +151,31 @@ HealthChecksTracingConnection::PatchHealthCheck( return internal::EndSpan(std::move(span), child_->PatchHealthCheck(request)); } +StatusOr +HealthChecksTracingConnection::PatchHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + PatchHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_health_checks_v1::HealthChecksConnection::PatchHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchHealthCheck(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HealthChecksTracingConnection::PatchHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_health_checks_v1::HealthChecksConnection::PatchHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchHealthCheck(google::cloud::ExperimentalTag{}, operation)); +} + future> HealthChecksTracingConnection::UpdateHealthCheck( google::cloud::cpp::compute::health_checks::v1:: @@ -111,6 +186,31 @@ HealthChecksTracingConnection::UpdateHealthCheck( return internal::EndSpan(std::move(span), child_->UpdateHealthCheck(request)); } +StatusOr +HealthChecksTracingConnection::UpdateHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + UpdateHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_health_checks_v1::HealthChecksConnection::UpdateHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateHealthCheck(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HealthChecksTracingConnection::UpdateHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_health_checks_v1::HealthChecksConnection::UpdateHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateHealthCheck(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.h b/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.h index 8b00bc17f8d59..c196fd102c685 100644 --- a/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.h +++ b/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.h @@ -50,6 +50,16 @@ class HealthChecksTracingConnection DeleteHealthCheck(google::cloud::cpp::compute::health_checks::v1:: DeleteHealthCheckRequest const& request) override; + StatusOr DeleteHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + DeleteHealthCheckRequest const& request) override; + + future> + DeleteHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetHealthCheck( google::cloud::cpp::compute::health_checks::v1:: GetHealthCheckRequest const& request) override; @@ -58,6 +68,16 @@ class HealthChecksTracingConnection InsertHealthCheck(google::cloud::cpp::compute::health_checks::v1:: InsertHealthCheckRequest const& request) override; + StatusOr InsertHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + InsertHealthCheckRequest const& request) override; + + future> + InsertHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListHealthChecks( google::cloud::cpp::compute::health_checks::v1::ListHealthChecksRequest request) override; @@ -66,10 +86,29 @@ class HealthChecksTracingConnection google::cloud::cpp::compute::health_checks::v1:: PatchHealthCheckRequest const& request) override; + StatusOr PatchHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + PatchHealthCheckRequest const& request) override; + + future> PatchHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateHealthCheck(google::cloud::cpp::compute::health_checks::v1:: UpdateHealthCheckRequest const& request) override; + StatusOr UpdateHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + UpdateHealthCheckRequest const& request) override; + + future> + UpdateHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/health_checks/v1/mocks/mock_health_checks_connection.h b/google/cloud/compute/health_checks/v1/mocks/mock_health_checks_connection.h index 2fc119be98b75..7831284be2968 100644 --- a/google/cloud/compute/health_checks/v1/mocks/mock_health_checks_connection.h +++ b/google/cloud/compute/health_checks/v1/mocks/mock_health_checks_connection.h @@ -62,6 +62,19 @@ class MockHealthChecksConnection DeleteHealthCheckRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + DeleteHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetHealthCheck, (google::cloud::cpp::compute::health_checks::v1:: @@ -74,6 +87,19 @@ class MockHealthChecksConnection InsertHealthCheckRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + InsertHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListHealthChecks, @@ -87,11 +113,37 @@ class MockHealthChecksConnection PatchHealthCheckRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + PatchHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateHealthCheck, (google::cloud::cpp::compute::health_checks::v1:: UpdateHealthCheckRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + UpdateHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::health_checks::v1:: + UpdateHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/http_health_checks/v1/http_health_checks_connection.cc b/google/cloud/compute/http_health_checks/v1/http_health_checks_connection.cc index d9534976fafd1..ad1ff66cdd7ae 100644 --- a/google/cloud/compute/http_health_checks/v1/http_health_checks_connection.cc +++ b/google/cloud/compute/http_health_checks/v1/http_health_checks_connection.cc @@ -45,6 +45,24 @@ HttpHealthChecksConnection::DeleteHttpHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +HttpHealthChecksConnection::DeleteHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + DeleteHttpHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HttpHealthChecksConnection::DeleteHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr HttpHealthChecksConnection::GetHttpHealthCheck( google::cloud::cpp::compute::http_health_checks::v1:: @@ -61,6 +79,24 @@ HttpHealthChecksConnection::InsertHttpHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +HttpHealthChecksConnection::InsertHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + InsertHttpHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HttpHealthChecksConnection::InsertHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange HttpHealthChecksConnection::ListHttpHealthChecks( google::cloud::cpp::compute::http_health_checks::v1:: @@ -78,6 +114,24 @@ HttpHealthChecksConnection::PatchHttpHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +HttpHealthChecksConnection::PatchHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + PatchHttpHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HttpHealthChecksConnection::PatchHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> HttpHealthChecksConnection::UpdateHttpHealthCheck( google::cloud::cpp::compute::http_health_checks::v1:: @@ -87,6 +141,24 @@ HttpHealthChecksConnection::UpdateHttpHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +HttpHealthChecksConnection::UpdateHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + UpdateHttpHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HttpHealthChecksConnection::UpdateHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_http_health_checks_v1 } // namespace cloud diff --git a/google/cloud/compute/http_health_checks/v1/http_health_checks_connection.h b/google/cloud/compute/http_health_checks/v1/http_health_checks_connection.h index 6cf6c102b3885..9823b5cddc424 100644 --- a/google/cloud/compute/http_health_checks/v1/http_health_checks_connection.h +++ b/google/cloud/compute/http_health_checks/v1/http_health_checks_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/http_health_checks/v1/http_health_checks_connection_idempotency_policy.h" #include "google/cloud/compute/http_health_checks/v1/internal/http_health_checks_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -190,6 +192,17 @@ class HttpHealthChecksConnection { DeleteHttpHealthCheck(google::cloud::cpp::compute::http_health_checks::v1:: DeleteHttpHealthCheckRequest const& request); + virtual StatusOr + DeleteHttpHealthCheck(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + DeleteHttpHealthCheckRequest const& request); + + virtual future> + DeleteHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetHttpHealthCheck(google::cloud::cpp::compute::http_health_checks::v1:: GetHttpHealthCheckRequest const& request); @@ -198,6 +211,17 @@ class HttpHealthChecksConnection { InsertHttpHealthCheck(google::cloud::cpp::compute::http_health_checks::v1:: InsertHttpHealthCheckRequest const& request); + virtual StatusOr + InsertHttpHealthCheck(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + InsertHttpHealthCheckRequest const& request); + + virtual future> + InsertHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListHttpHealthChecks(google::cloud::cpp::compute::http_health_checks::v1:: ListHttpHealthChecksRequest request); @@ -206,9 +230,31 @@ class HttpHealthChecksConnection { PatchHttpHealthCheck(google::cloud::cpp::compute::http_health_checks::v1:: PatchHttpHealthCheckRequest const& request); + virtual StatusOr + PatchHttpHealthCheck(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + PatchHttpHealthCheckRequest const& request); + + virtual future> + PatchHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> UpdateHttpHealthCheck(google::cloud::cpp::compute::http_health_checks::v1:: UpdateHttpHealthCheckRequest const& request); + + virtual StatusOr + UpdateHttpHealthCheck(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + UpdateHttpHealthCheckRequest const& request); + + virtual future> + UpdateHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_rest_connection_impl.cc b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_rest_connection_impl.cc index 151b1625a440d..83cfc036d25aa 100644 --- a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_rest_connection_impl.cc +++ b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -102,6 +103,77 @@ HttpHealthChecksRestConnectionImpl::DeleteHttpHealthCheck( }); } +StatusOr +HttpHealthChecksRestConnectionImpl::DeleteHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + DeleteHttpHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteHttpHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::http_health_checks::v1:: + DeleteHttpHealthCheckRequest const& request) { + return stub_->DeleteHttpHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +HttpHealthChecksRestConnectionImpl::DeleteHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr HttpHealthChecksRestConnectionImpl::GetHttpHealthCheck( google::cloud::cpp::compute::http_health_checks::v1:: @@ -176,6 +248,77 @@ HttpHealthChecksRestConnectionImpl::InsertHttpHealthCheck( }); } +StatusOr +HttpHealthChecksRestConnectionImpl::InsertHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + InsertHttpHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertHttpHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::http_health_checks::v1:: + InsertHttpHealthCheckRequest const& request) { + return stub_->InsertHttpHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +HttpHealthChecksRestConnectionImpl::InsertHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange HttpHealthChecksRestConnectionImpl::ListHttpHealthChecks( google::cloud::cpp::compute::http_health_checks::v1:: @@ -273,6 +416,77 @@ HttpHealthChecksRestConnectionImpl::PatchHttpHealthCheck( }); } +StatusOr +HttpHealthChecksRestConnectionImpl::PatchHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + PatchHttpHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchHttpHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::http_health_checks::v1:: + PatchHttpHealthCheckRequest const& request) { + return stub_->PatchHttpHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +HttpHealthChecksRestConnectionImpl::PatchHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> HttpHealthChecksRestConnectionImpl::UpdateHttpHealthCheck( google::cloud::cpp::compute::http_health_checks::v1:: @@ -331,6 +545,77 @@ HttpHealthChecksRestConnectionImpl::UpdateHttpHealthCheck( }); } +StatusOr +HttpHealthChecksRestConnectionImpl::UpdateHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + UpdateHttpHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateHttpHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::http_health_checks::v1:: + UpdateHttpHealthCheckRequest const& request) { + return stub_->UpdateHttpHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +HttpHealthChecksRestConnectionImpl::UpdateHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_http_health_checks_v1_internal } // namespace cloud diff --git a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_rest_connection_impl.h b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_rest_connection_impl.h index 31a2b69eadeb2..cbef549b8c15a 100644 --- a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_rest_connection_impl.h +++ b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_rest_connection_impl.h @@ -57,6 +57,16 @@ class HttpHealthChecksRestConnectionImpl google::cloud::cpp::compute::http_health_checks::v1:: DeleteHttpHealthCheckRequest const& request) override; + StatusOr DeleteHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + DeleteHttpHealthCheckRequest const& request) override; + + future> + DeleteHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetHttpHealthCheck( google::cloud::cpp::compute::http_health_checks::v1:: GetHttpHealthCheckRequest const& request) override; @@ -66,6 +76,16 @@ class HttpHealthChecksRestConnectionImpl google::cloud::cpp::compute::http_health_checks::v1:: InsertHttpHealthCheckRequest const& request) override; + StatusOr InsertHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + InsertHttpHealthCheckRequest const& request) override; + + future> + InsertHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListHttpHealthChecks(google::cloud::cpp::compute::http_health_checks::v1:: ListHttpHealthChecksRequest request) override; @@ -74,11 +94,31 @@ class HttpHealthChecksRestConnectionImpl PatchHttpHealthCheck(google::cloud::cpp::compute::http_health_checks::v1:: PatchHttpHealthCheckRequest const& request) override; + StatusOr PatchHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + PatchHttpHealthCheckRequest const& request) override; + + future> + PatchHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateHttpHealthCheck( google::cloud::cpp::compute::http_health_checks::v1:: UpdateHttpHealthCheckRequest const& request) override; + StatusOr UpdateHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + UpdateHttpHealthCheckRequest const& request) override; + + future> + UpdateHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_http_health_checks_v1::HttpHealthChecksRetryPolicy> diff --git a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.cc b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.cc index cf41d5079a590..975b2aa1c0184 100644 --- a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.cc +++ b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.cc @@ -46,6 +46,33 @@ HttpHealthChecksTracingConnection::DeleteHttpHealthCheck( child_->DeleteHttpHealthCheck(request)); } +StatusOr +HttpHealthChecksTracingConnection::DeleteHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + DeleteHttpHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_http_health_checks_v1::HttpHealthChecksConnection::" + "DeleteHttpHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteHttpHealthCheck( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HttpHealthChecksTracingConnection::DeleteHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_http_health_checks_v1::HttpHealthChecksConnection::" + "DeleteHttpHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteHttpHealthCheck( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr HttpHealthChecksTracingConnection::GetHttpHealthCheck( google::cloud::cpp::compute::http_health_checks::v1:: @@ -69,6 +96,33 @@ HttpHealthChecksTracingConnection::InsertHttpHealthCheck( child_->InsertHttpHealthCheck(request)); } +StatusOr +HttpHealthChecksTracingConnection::InsertHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + InsertHttpHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_http_health_checks_v1::HttpHealthChecksConnection::" + "InsertHttpHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertHttpHealthCheck( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HttpHealthChecksTracingConnection::InsertHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_http_health_checks_v1::HttpHealthChecksConnection::" + "InsertHttpHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertHttpHealthCheck( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange HttpHealthChecksTracingConnection::ListHttpHealthChecks( google::cloud::cpp::compute::http_health_checks::v1:: @@ -95,6 +149,33 @@ HttpHealthChecksTracingConnection::PatchHttpHealthCheck( child_->PatchHttpHealthCheck(request)); } +StatusOr +HttpHealthChecksTracingConnection::PatchHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + PatchHttpHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_http_health_checks_v1::HttpHealthChecksConnection::" + "PatchHttpHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchHttpHealthCheck( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HttpHealthChecksTracingConnection::PatchHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_http_health_checks_v1::HttpHealthChecksConnection::" + "PatchHttpHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchHttpHealthCheck( + google::cloud::ExperimentalTag{}, operation)); +} + future> HttpHealthChecksTracingConnection::UpdateHttpHealthCheck( google::cloud::cpp::compute::http_health_checks::v1:: @@ -107,6 +188,33 @@ HttpHealthChecksTracingConnection::UpdateHttpHealthCheck( child_->UpdateHttpHealthCheck(request)); } +StatusOr +HttpHealthChecksTracingConnection::UpdateHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + UpdateHttpHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_http_health_checks_v1::HttpHealthChecksConnection::" + "UpdateHttpHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateHttpHealthCheck( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HttpHealthChecksTracingConnection::UpdateHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_http_health_checks_v1::HttpHealthChecksConnection::" + "UpdateHttpHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateHttpHealthCheck( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.h b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.h index c040e3358fe6f..4f9a7f1a92dfc 100644 --- a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.h +++ b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.h @@ -46,6 +46,16 @@ class HttpHealthChecksTracingConnection google::cloud::cpp::compute::http_health_checks::v1:: DeleteHttpHealthCheckRequest const& request) override; + StatusOr DeleteHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + DeleteHttpHealthCheckRequest const& request) override; + + future> + DeleteHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetHttpHealthCheck( google::cloud::cpp::compute::http_health_checks::v1:: GetHttpHealthCheckRequest const& request) override; @@ -55,6 +65,16 @@ class HttpHealthChecksTracingConnection google::cloud::cpp::compute::http_health_checks::v1:: InsertHttpHealthCheckRequest const& request) override; + StatusOr InsertHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + InsertHttpHealthCheckRequest const& request) override; + + future> + InsertHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListHttpHealthChecks(google::cloud::cpp::compute::http_health_checks::v1:: ListHttpHealthChecksRequest request) override; @@ -63,11 +83,31 @@ class HttpHealthChecksTracingConnection PatchHttpHealthCheck(google::cloud::cpp::compute::http_health_checks::v1:: PatchHttpHealthCheckRequest const& request) override; + StatusOr PatchHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + PatchHttpHealthCheckRequest const& request) override; + + future> + PatchHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateHttpHealthCheck( google::cloud::cpp::compute::http_health_checks::v1:: UpdateHttpHealthCheckRequest const& request) override; + StatusOr UpdateHttpHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + UpdateHttpHealthCheckRequest const& request) override; + + future> + UpdateHttpHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/http_health_checks/v1/mocks/mock_http_health_checks_connection.h b/google/cloud/compute/http_health_checks/v1/mocks/mock_http_health_checks_connection.h index 617ad9c4186aa..9ccf6c26951a2 100644 --- a/google/cloud/compute/http_health_checks/v1/mocks/mock_http_health_checks_connection.h +++ b/google/cloud/compute/http_health_checks/v1/mocks/mock_http_health_checks_connection.h @@ -53,6 +53,19 @@ class MockHttpHealthChecksConnection DeleteHttpHealthCheckRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteHttpHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + DeleteHttpHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteHttpHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetHttpHealthCheck, (google::cloud::cpp::compute::http_health_checks::v1:: @@ -65,6 +78,19 @@ class MockHttpHealthChecksConnection InsertHttpHealthCheckRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertHttpHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + InsertHttpHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertHttpHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListHttpHealthChecks, (google::cloud::cpp::compute::http_health_checks::v1:: @@ -77,11 +103,37 @@ class MockHttpHealthChecksConnection PatchHttpHealthCheckRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchHttpHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + PatchHttpHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchHttpHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateHttpHealthCheck, (google::cloud::cpp::compute::http_health_checks::v1:: UpdateHttpHealthCheckRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + UpdateHttpHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::http_health_checks::v1:: + UpdateHttpHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateHttpHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/https_health_checks/v1/https_health_checks_connection.cc b/google/cloud/compute/https_health_checks/v1/https_health_checks_connection.cc index ad7233cad7e32..cc841c832aecb 100644 --- a/google/cloud/compute/https_health_checks/v1/https_health_checks_connection.cc +++ b/google/cloud/compute/https_health_checks/v1/https_health_checks_connection.cc @@ -45,6 +45,24 @@ HttpsHealthChecksConnection::DeleteHttpsHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +HttpsHealthChecksConnection::DeleteHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + DeleteHttpsHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HttpsHealthChecksConnection::DeleteHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr HttpsHealthChecksConnection::GetHttpsHealthCheck( google::cloud::cpp::compute::https_health_checks::v1:: @@ -61,6 +79,24 @@ HttpsHealthChecksConnection::InsertHttpsHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +HttpsHealthChecksConnection::InsertHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + InsertHttpsHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HttpsHealthChecksConnection::InsertHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange HttpsHealthChecksConnection::ListHttpsHealthChecks( google::cloud::cpp::compute::https_health_checks::v1:: @@ -78,6 +114,24 @@ HttpsHealthChecksConnection::PatchHttpsHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +HttpsHealthChecksConnection::PatchHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + PatchHttpsHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HttpsHealthChecksConnection::PatchHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> HttpsHealthChecksConnection::UpdateHttpsHealthCheck( google::cloud::cpp::compute::https_health_checks::v1:: @@ -87,6 +141,24 @@ HttpsHealthChecksConnection::UpdateHttpsHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +HttpsHealthChecksConnection::UpdateHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + UpdateHttpsHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HttpsHealthChecksConnection::UpdateHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_https_health_checks_v1 } // namespace cloud diff --git a/google/cloud/compute/https_health_checks/v1/https_health_checks_connection.h b/google/cloud/compute/https_health_checks/v1/https_health_checks_connection.h index 90773b3546f2f..58337657fe7d7 100644 --- a/google/cloud/compute/https_health_checks/v1/https_health_checks_connection.h +++ b/google/cloud/compute/https_health_checks/v1/https_health_checks_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/https_health_checks/v1/https_health_checks_connection_idempotency_policy.h" #include "google/cloud/compute/https_health_checks/v1/internal/https_health_checks_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -190,6 +192,17 @@ class HttpsHealthChecksConnection { DeleteHttpsHealthCheck(google::cloud::cpp::compute::https_health_checks::v1:: DeleteHttpsHealthCheckRequest const& request); + virtual StatusOr + DeleteHttpsHealthCheck(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + DeleteHttpsHealthCheckRequest const& request); + + virtual future> + DeleteHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetHttpsHealthCheck(google::cloud::cpp::compute::https_health_checks::v1:: GetHttpsHealthCheckRequest const& request); @@ -198,6 +211,17 @@ class HttpsHealthChecksConnection { InsertHttpsHealthCheck(google::cloud::cpp::compute::https_health_checks::v1:: InsertHttpsHealthCheckRequest const& request); + virtual StatusOr + InsertHttpsHealthCheck(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + InsertHttpsHealthCheckRequest const& request); + + virtual future> + InsertHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListHttpsHealthChecks(google::cloud::cpp::compute::https_health_checks::v1:: ListHttpsHealthChecksRequest request); @@ -206,9 +230,31 @@ class HttpsHealthChecksConnection { PatchHttpsHealthCheck(google::cloud::cpp::compute::https_health_checks::v1:: PatchHttpsHealthCheckRequest const& request); + virtual StatusOr + PatchHttpsHealthCheck(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + PatchHttpsHealthCheckRequest const& request); + + virtual future> + PatchHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> UpdateHttpsHealthCheck(google::cloud::cpp::compute::https_health_checks::v1:: UpdateHttpsHealthCheckRequest const& request); + + virtual StatusOr + UpdateHttpsHealthCheck(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + UpdateHttpsHealthCheckRequest const& request); + + virtual future> + UpdateHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_rest_connection_impl.cc b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_rest_connection_impl.cc index 3bee05e52edb5..092a9a7268189 100644 --- a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_rest_connection_impl.cc +++ b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -102,6 +103,77 @@ HttpsHealthChecksRestConnectionImpl::DeleteHttpsHealthCheck( }); } +StatusOr +HttpsHealthChecksRestConnectionImpl::DeleteHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + DeleteHttpsHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteHttpsHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::https_health_checks::v1:: + DeleteHttpsHealthCheckRequest const& request) { + return stub_->DeleteHttpsHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +HttpsHealthChecksRestConnectionImpl::DeleteHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr HttpsHealthChecksRestConnectionImpl::GetHttpsHealthCheck( google::cloud::cpp::compute::https_health_checks::v1:: @@ -176,6 +248,77 @@ HttpsHealthChecksRestConnectionImpl::InsertHttpsHealthCheck( }); } +StatusOr +HttpsHealthChecksRestConnectionImpl::InsertHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + InsertHttpsHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertHttpsHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::https_health_checks::v1:: + InsertHttpsHealthCheckRequest const& request) { + return stub_->InsertHttpsHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +HttpsHealthChecksRestConnectionImpl::InsertHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange HttpsHealthChecksRestConnectionImpl::ListHttpsHealthChecks( google::cloud::cpp::compute::https_health_checks::v1:: @@ -274,6 +417,77 @@ HttpsHealthChecksRestConnectionImpl::PatchHttpsHealthCheck( }); } +StatusOr +HttpsHealthChecksRestConnectionImpl::PatchHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + PatchHttpsHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchHttpsHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::https_health_checks::v1:: + PatchHttpsHealthCheckRequest const& request) { + return stub_->PatchHttpsHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +HttpsHealthChecksRestConnectionImpl::PatchHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> HttpsHealthChecksRestConnectionImpl::UpdateHttpsHealthCheck( google::cloud::cpp::compute::https_health_checks::v1:: @@ -332,6 +546,77 @@ HttpsHealthChecksRestConnectionImpl::UpdateHttpsHealthCheck( }); } +StatusOr +HttpsHealthChecksRestConnectionImpl::UpdateHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + UpdateHttpsHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateHttpsHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::https_health_checks::v1:: + UpdateHttpsHealthCheckRequest const& request) { + return stub_->UpdateHttpsHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +HttpsHealthChecksRestConnectionImpl::UpdateHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_https_health_checks_v1_internal } // namespace cloud diff --git a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_rest_connection_impl.h b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_rest_connection_impl.h index 0597cf37d48ec..d93b79c1c1820 100644 --- a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_rest_connection_impl.h +++ b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_rest_connection_impl.h @@ -57,6 +57,16 @@ class HttpsHealthChecksRestConnectionImpl google::cloud::cpp::compute::https_health_checks::v1:: DeleteHttpsHealthCheckRequest const& request) override; + StatusOr DeleteHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + DeleteHttpsHealthCheckRequest const& request) override; + + future> + DeleteHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetHttpsHealthCheck(google::cloud::cpp::compute::https_health_checks::v1:: GetHttpsHealthCheckRequest const& request) override; @@ -66,6 +76,16 @@ class HttpsHealthChecksRestConnectionImpl google::cloud::cpp::compute::https_health_checks::v1:: InsertHttpsHealthCheckRequest const& request) override; + StatusOr InsertHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + InsertHttpsHealthCheckRequest const& request) override; + + future> + InsertHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListHttpsHealthChecks(google::cloud::cpp::compute::https_health_checks::v1:: ListHttpsHealthChecksRequest request) override; @@ -75,11 +95,31 @@ class HttpsHealthChecksRestConnectionImpl google::cloud::cpp::compute::https_health_checks::v1:: PatchHttpsHealthCheckRequest const& request) override; + StatusOr PatchHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + PatchHttpsHealthCheckRequest const& request) override; + + future> + PatchHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateHttpsHealthCheck( google::cloud::cpp::compute::https_health_checks::v1:: UpdateHttpsHealthCheckRequest const& request) override; + StatusOr UpdateHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + UpdateHttpsHealthCheckRequest const& request) override; + + future> + UpdateHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_https_health_checks_v1::HttpsHealthChecksRetryPolicy> diff --git a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.cc b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.cc index 5f845f3d96486..c1a1b9f50c0ee 100644 --- a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.cc +++ b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.cc @@ -46,6 +46,33 @@ HttpsHealthChecksTracingConnection::DeleteHttpsHealthCheck( child_->DeleteHttpsHealthCheck(request)); } +StatusOr +HttpsHealthChecksTracingConnection::DeleteHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + DeleteHttpsHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_https_health_checks_v1::HttpsHealthChecksConnection::" + "DeleteHttpsHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteHttpsHealthCheck( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HttpsHealthChecksTracingConnection::DeleteHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_https_health_checks_v1::HttpsHealthChecksConnection::" + "DeleteHttpsHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteHttpsHealthCheck( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr HttpsHealthChecksTracingConnection::GetHttpsHealthCheck( google::cloud::cpp::compute::https_health_checks::v1:: @@ -69,6 +96,33 @@ HttpsHealthChecksTracingConnection::InsertHttpsHealthCheck( child_->InsertHttpsHealthCheck(request)); } +StatusOr +HttpsHealthChecksTracingConnection::InsertHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + InsertHttpsHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_https_health_checks_v1::HttpsHealthChecksConnection::" + "InsertHttpsHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertHttpsHealthCheck( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HttpsHealthChecksTracingConnection::InsertHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_https_health_checks_v1::HttpsHealthChecksConnection::" + "InsertHttpsHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertHttpsHealthCheck( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange HttpsHealthChecksTracingConnection::ListHttpsHealthChecks( google::cloud::cpp::compute::https_health_checks::v1:: @@ -95,6 +149,33 @@ HttpsHealthChecksTracingConnection::PatchHttpsHealthCheck( child_->PatchHttpsHealthCheck(request)); } +StatusOr +HttpsHealthChecksTracingConnection::PatchHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + PatchHttpsHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_https_health_checks_v1::HttpsHealthChecksConnection::" + "PatchHttpsHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchHttpsHealthCheck( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HttpsHealthChecksTracingConnection::PatchHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_https_health_checks_v1::HttpsHealthChecksConnection::" + "PatchHttpsHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchHttpsHealthCheck( + google::cloud::ExperimentalTag{}, operation)); +} + future> HttpsHealthChecksTracingConnection::UpdateHttpsHealthCheck( google::cloud::cpp::compute::https_health_checks::v1:: @@ -107,6 +188,33 @@ HttpsHealthChecksTracingConnection::UpdateHttpsHealthCheck( child_->UpdateHttpsHealthCheck(request)); } +StatusOr +HttpsHealthChecksTracingConnection::UpdateHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + UpdateHttpsHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_https_health_checks_v1::HttpsHealthChecksConnection::" + "UpdateHttpsHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateHttpsHealthCheck( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HttpsHealthChecksTracingConnection::UpdateHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_https_health_checks_v1::HttpsHealthChecksConnection::" + "UpdateHttpsHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateHttpsHealthCheck( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.h b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.h index 1b070b2fe6960..b2a1eea1e8e5f 100644 --- a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.h +++ b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.h @@ -47,6 +47,16 @@ class HttpsHealthChecksTracingConnection google::cloud::cpp::compute::https_health_checks::v1:: DeleteHttpsHealthCheckRequest const& request) override; + StatusOr DeleteHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + DeleteHttpsHealthCheckRequest const& request) override; + + future> + DeleteHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetHttpsHealthCheck(google::cloud::cpp::compute::https_health_checks::v1:: GetHttpsHealthCheckRequest const& request) override; @@ -56,6 +66,16 @@ class HttpsHealthChecksTracingConnection google::cloud::cpp::compute::https_health_checks::v1:: InsertHttpsHealthCheckRequest const& request) override; + StatusOr InsertHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + InsertHttpsHealthCheckRequest const& request) override; + + future> + InsertHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListHttpsHealthChecks(google::cloud::cpp::compute::https_health_checks::v1:: ListHttpsHealthChecksRequest request) override; @@ -65,11 +85,31 @@ class HttpsHealthChecksTracingConnection google::cloud::cpp::compute::https_health_checks::v1:: PatchHttpsHealthCheckRequest const& request) override; + StatusOr PatchHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + PatchHttpsHealthCheckRequest const& request) override; + + future> + PatchHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateHttpsHealthCheck( google::cloud::cpp::compute::https_health_checks::v1:: UpdateHttpsHealthCheckRequest const& request) override; + StatusOr UpdateHttpsHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + UpdateHttpsHealthCheckRequest const& request) override; + + future> + UpdateHttpsHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/https_health_checks/v1/mocks/mock_https_health_checks_connection.h b/google/cloud/compute/https_health_checks/v1/mocks/mock_https_health_checks_connection.h index 3d1032306be72..771a270fe8f51 100644 --- a/google/cloud/compute/https_health_checks/v1/mocks/mock_https_health_checks_connection.h +++ b/google/cloud/compute/https_health_checks/v1/mocks/mock_https_health_checks_connection.h @@ -53,6 +53,19 @@ class MockHttpsHealthChecksConnection DeleteHttpsHealthCheckRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteHttpsHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + DeleteHttpsHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteHttpsHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetHttpsHealthCheck, (google::cloud::cpp::compute::https_health_checks::v1:: @@ -65,6 +78,19 @@ class MockHttpsHealthChecksConnection InsertHttpsHealthCheckRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertHttpsHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + InsertHttpsHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertHttpsHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListHttpsHealthChecks, (google::cloud::cpp::compute::https_health_checks::v1:: @@ -77,11 +103,37 @@ class MockHttpsHealthChecksConnection PatchHttpsHealthCheckRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchHttpsHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + PatchHttpsHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchHttpsHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateHttpsHealthCheck, (google::cloud::cpp::compute::https_health_checks::v1:: UpdateHttpsHealthCheckRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + UpdateHttpsHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::https_health_checks::v1:: + UpdateHttpsHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateHttpsHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/image_family_views/v1/image_family_views_connection.h b/google/cloud/compute/image_family_views/v1/image_family_views_connection.h index 762803e3465b0..fc80986b436b0 100644 --- a/google/cloud/compute/image_family_views/v1/image_family_views_connection.h +++ b/google/cloud/compute/image_family_views/v1/image_family_views_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/image_family_views/v1/image_family_views_connection_idempotency_policy.h" #include "google/cloud/compute/image_family_views/v1/internal/image_family_views_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/compute/images/v1/images_connection.cc b/google/cloud/compute/images/v1/images_connection.cc index 97e3852a7a39b..a75d3919ad3fb 100644 --- a/google/cloud/compute/images/v1/images_connection.cc +++ b/google/cloud/compute/images/v1/images_connection.cc @@ -44,6 +44,23 @@ ImagesConnection::DeleteImage( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ImagesConnection::DeleteImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::DeleteImageRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ImagesConnection::DeleteImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ImagesConnection::Deprecate( google::cloud::cpp::compute::images::v1::DeprecateRequest const&) { @@ -52,6 +69,22 @@ ImagesConnection::Deprecate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ImagesConnection::Deprecate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::DeprecateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ImagesConnection::Deprecate(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ImagesConnection::GetImage( google::cloud::cpp::compute::images::v1::GetImageRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -77,6 +110,23 @@ ImagesConnection::InsertImage( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ImagesConnection::InsertImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::InsertImageRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ImagesConnection::InsertImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ImagesConnection::ListImages( google::cloud::cpp::compute::images::v1:: @@ -93,6 +143,23 @@ ImagesConnection::PatchImage( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ImagesConnection::PatchImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::PatchImageRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ImagesConnection::PatchImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ImagesConnection::SetIamPolicy( google::cloud::cpp::compute::images::v1::SetIamPolicyRequest const&) { @@ -107,6 +174,22 @@ ImagesConnection::SetLabels( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ImagesConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::SetLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ImagesConnection::SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ImagesConnection::TestIamPermissions( google::cloud::cpp::compute::images::v1::TestIamPermissionsRequest const&) { diff --git a/google/cloud/compute/images/v1/images_connection.h b/google/cloud/compute/images/v1/images_connection.h index bd1fef7e81dc5..73c17c0fded9f 100644 --- a/google/cloud/compute/images/v1/images_connection.h +++ b/google/cloud/compute/images/v1/images_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/images/v1/images_connection_idempotency_policy.h" #include "google/cloud/compute/images/v1/internal/images_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -184,10 +186,27 @@ class ImagesConnection { DeleteImage(google::cloud::cpp::compute::images::v1::DeleteImageRequest const& request); + virtual StatusOr DeleteImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::DeleteImageRequest const& + request); + + virtual future> + DeleteImage(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> Deprecate( google::cloud::cpp::compute::images::v1::DeprecateRequest const& request); + virtual StatusOr Deprecate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::DeprecateRequest const& request); + + virtual future> + Deprecate(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetImage( google::cloud::cpp::compute::images::v1::GetImageRequest const& request); @@ -203,6 +222,15 @@ class ImagesConnection { InsertImage(google::cloud::cpp::compute::images::v1::InsertImageRequest const& request); + virtual StatusOr InsertImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::InsertImageRequest const& + request); + + virtual future> + InsertImage(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListImages( google::cloud::cpp::compute::images::v1::ListImagesRequest request); @@ -210,6 +238,15 @@ class ImagesConnection { PatchImage(google::cloud::cpp::compute::images::v1::PatchImageRequest const& request); + virtual StatusOr PatchImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::PatchImageRequest const& + request); + + virtual future> + PatchImage(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr SetIamPolicy( google::cloud::cpp::compute::images::v1::SetIamPolicyRequest const& request); @@ -218,6 +255,14 @@ class ImagesConnection { SetLabels( google::cloud::cpp::compute::images::v1::SetLabelsRequest const& request); + virtual StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::SetLabelsRequest const& request); + + virtual future> + SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr TestIamPermissions( google::cloud::cpp::compute::images::v1::TestIamPermissionsRequest const& diff --git a/google/cloud/compute/images/v1/internal/images_rest_connection_impl.cc b/google/cloud/compute/images/v1/internal/images_rest_connection_impl.cc index 496e418f1ef9e..d0a71d356444d 100644 --- a/google/cloud/compute/images/v1/internal/images_rest_connection_impl.cc +++ b/google/cloud/compute/images/v1/internal/images_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -101,6 +102,77 @@ ImagesRestConnectionImpl::DeleteImage( }); } +StatusOr +ImagesRestConnectionImpl::DeleteImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::DeleteImageRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteImage(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::images::v1::DeleteImageRequest const& + request) { + return stub_->DeleteImage(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ImagesRestConnectionImpl::DeleteImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> ImagesRestConnectionImpl::Deprecate( google::cloud::cpp::compute::images::v1::DeprecateRequest const& request) { @@ -159,6 +231,76 @@ ImagesRestConnectionImpl::Deprecate( }); } +StatusOr +ImagesRestConnectionImpl::Deprecate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::DeprecateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Deprecate(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::images::v1::DeprecateRequest const& + request) { + return stub_->Deprecate(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ImagesRestConnectionImpl::Deprecate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr ImagesRestConnectionImpl::GetImage( google::cloud::cpp::compute::images::v1::GetImageRequest const& request) { @@ -266,6 +408,77 @@ ImagesRestConnectionImpl::InsertImage( }); } +StatusOr +ImagesRestConnectionImpl::InsertImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::InsertImageRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertImage(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::images::v1::InsertImageRequest const& + request) { + return stub_->InsertImage(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ImagesRestConnectionImpl::InsertImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange ImagesRestConnectionImpl::ListImages( google::cloud::cpp::compute::images::v1::ListImagesRequest request) { @@ -359,6 +572,76 @@ ImagesRestConnectionImpl::PatchImage( }); } +StatusOr +ImagesRestConnectionImpl::PatchImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::PatchImageRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchImage(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::images::v1::PatchImageRequest const& + request) { + return stub_->PatchImage(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ImagesRestConnectionImpl::PatchImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr ImagesRestConnectionImpl::SetIamPolicy( google::cloud::cpp::compute::images::v1::SetIamPolicyRequest const& @@ -433,6 +716,76 @@ ImagesRestConnectionImpl::SetLabels( }); } +StatusOr +ImagesRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::SetLabelsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::images::v1::SetLabelsRequest const& + request) { + return stub_->SetLabels(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ImagesRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr ImagesRestConnectionImpl::TestIamPermissions( google::cloud::cpp::compute::images::v1::TestIamPermissionsRequest const& diff --git a/google/cloud/compute/images/v1/internal/images_rest_connection_impl.h b/google/cloud/compute/images/v1/internal/images_rest_connection_impl.h index d8e3368129be0..b08eb20b87140 100644 --- a/google/cloud/compute/images/v1/internal/images_rest_connection_impl.h +++ b/google/cloud/compute/images/v1/internal/images_rest_connection_impl.h @@ -53,10 +53,28 @@ class ImagesRestConnectionImpl : public compute_images_v1::ImagesConnection { google::cloud::cpp::compute::images::v1::DeleteImageRequest const& request) override; + StatusOr DeleteImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::DeleteImageRequest const& + request) override; + + future> DeleteImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Deprecate( google::cloud::cpp::compute::images::v1::DeprecateRequest const& request) override; + StatusOr Deprecate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::DeprecateRequest const& request) + override; + + future> Deprecate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetImage( google::cloud::cpp::compute::images::v1::GetImageRequest const& request) override; @@ -73,6 +91,15 @@ class ImagesRestConnectionImpl : public compute_images_v1::ImagesConnection { google::cloud::cpp::compute::images::v1::InsertImageRequest const& request) override; + StatusOr InsertImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::InsertImageRequest const& + request) override; + + future> InsertImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListImages( google::cloud::cpp::compute::images::v1::ListImagesRequest request) override; @@ -81,6 +108,15 @@ class ImagesRestConnectionImpl : public compute_images_v1::ImagesConnection { google::cloud::cpp::compute::images::v1::PatchImageRequest const& request) override; + StatusOr PatchImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::PatchImageRequest const& request) + override; + + future> PatchImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::images::v1::SetIamPolicyRequest const& request) override; @@ -89,6 +125,15 @@ class ImagesRestConnectionImpl : public compute_images_v1::ImagesConnection { google::cloud::cpp::compute::images::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::SetLabelsRequest const& request) + override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions( google::cloud::cpp::compute::images::v1::TestIamPermissionsRequest const& diff --git a/google/cloud/compute/images/v1/internal/images_tracing_connection.cc b/google/cloud/compute/images/v1/internal/images_tracing_connection.cc index ca96cd75a8de3..08828bc92b7d2 100644 --- a/google/cloud/compute/images/v1/internal/images_tracing_connection.cc +++ b/google/cloud/compute/images/v1/internal/images_tracing_connection.cc @@ -43,6 +43,31 @@ ImagesTracingConnection::DeleteImage( return internal::EndSpan(std::move(span), child_->DeleteImage(request)); } +StatusOr +ImagesTracingConnection::DeleteImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::DeleteImageRequest const& + request) { + auto span = + internal::MakeSpan("compute_images_v1::ImagesConnection::DeleteImage"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteImage(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ImagesTracingConnection::DeleteImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_images_v1::ImagesConnection::DeleteImage"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteImage(google::cloud::ExperimentalTag{}, operation)); +} + future> ImagesTracingConnection::Deprecate( google::cloud::cpp::compute::images::v1::DeprecateRequest const& request) { @@ -52,6 +77,30 @@ ImagesTracingConnection::Deprecate( return internal::EndSpan(std::move(span), child_->Deprecate(request)); } +StatusOr +ImagesTracingConnection::Deprecate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::DeprecateRequest const& request) { + auto span = + internal::MakeSpan("compute_images_v1::ImagesConnection::Deprecate"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->Deprecate(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ImagesTracingConnection::Deprecate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_images_v1::ImagesConnection::Deprecate"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Deprecate(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ImagesTracingConnection::GetImage( google::cloud::cpp::compute::images::v1::GetImageRequest const& request) { @@ -91,6 +140,31 @@ ImagesTracingConnection::InsertImage( return internal::EndSpan(std::move(span), child_->InsertImage(request)); } +StatusOr +ImagesTracingConnection::InsertImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::InsertImageRequest const& + request) { + auto span = + internal::MakeSpan("compute_images_v1::ImagesConnection::InsertImage"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertImage(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ImagesTracingConnection::InsertImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_images_v1::ImagesConnection::InsertImage"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertImage(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ImagesTracingConnection::ListImages( google::cloud::cpp::compute::images::v1::ListImagesRequest request) { @@ -111,6 +185,30 @@ ImagesTracingConnection::PatchImage( return internal::EndSpan(std::move(span), child_->PatchImage(request)); } +StatusOr +ImagesTracingConnection::PatchImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::PatchImageRequest const& request) { + auto span = + internal::MakeSpan("compute_images_v1::ImagesConnection::PatchImage"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchImage(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ImagesTracingConnection::PatchImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_images_v1::ImagesConnection::PatchImage"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchImage(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ImagesTracingConnection::SetIamPolicy( google::cloud::cpp::compute::images::v1::SetIamPolicyRequest const& @@ -130,6 +228,30 @@ ImagesTracingConnection::SetLabels( return internal::EndSpan(std::move(span), child_->SetLabels(request)); } +StatusOr +ImagesTracingConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::SetLabelsRequest const& request) { + auto span = + internal::MakeSpan("compute_images_v1::ImagesConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ImagesTracingConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_images_v1::ImagesConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ImagesTracingConnection::TestIamPermissions( google::cloud::cpp::compute::images::v1::TestIamPermissionsRequest const& diff --git a/google/cloud/compute/images/v1/internal/images_tracing_connection.h b/google/cloud/compute/images/v1/internal/images_tracing_connection.h index 7821859716e0d..1a4d039b88cbc 100644 --- a/google/cloud/compute/images/v1/internal/images_tracing_connection.h +++ b/google/cloud/compute/images/v1/internal/images_tracing_connection.h @@ -43,10 +43,28 @@ class ImagesTracingConnection : public compute_images_v1::ImagesConnection { google::cloud::cpp::compute::images::v1::DeleteImageRequest const& request) override; + StatusOr DeleteImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::DeleteImageRequest const& + request) override; + + future> DeleteImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Deprecate( google::cloud::cpp::compute::images::v1::DeprecateRequest const& request) override; + StatusOr Deprecate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::DeprecateRequest const& request) + override; + + future> Deprecate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetImage( google::cloud::cpp::compute::images::v1::GetImageRequest const& request) override; @@ -63,6 +81,15 @@ class ImagesTracingConnection : public compute_images_v1::ImagesConnection { google::cloud::cpp::compute::images::v1::InsertImageRequest const& request) override; + StatusOr InsertImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::InsertImageRequest const& + request) override; + + future> InsertImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListImages( google::cloud::cpp::compute::images::v1::ListImagesRequest request) override; @@ -71,6 +98,15 @@ class ImagesTracingConnection : public compute_images_v1::ImagesConnection { google::cloud::cpp::compute::images::v1::PatchImageRequest const& request) override; + StatusOr PatchImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::PatchImageRequest const& request) + override; + + future> PatchImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::images::v1::SetIamPolicyRequest const& request) override; @@ -79,6 +115,15 @@ class ImagesTracingConnection : public compute_images_v1::ImagesConnection { google::cloud::cpp::compute::images::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::SetLabelsRequest const& request) + override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions( google::cloud::cpp::compute::images::v1::TestIamPermissionsRequest const& diff --git a/google/cloud/compute/images/v1/mocks/mock_images_connection.h b/google/cloud/compute/images/v1/mocks/mock_images_connection.h index 0fdaebd084f8e..9f61ebd4455f1 100644 --- a/google/cloud/compute/images/v1/mocks/mock_images_connection.h +++ b/google/cloud/compute/images/v1/mocks/mock_images_connection.h @@ -52,12 +52,37 @@ class MockImagesConnection : public compute_images_v1::ImagesConnection { request), (override)); + MOCK_METHOD( + StatusOr, DeleteImage, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::DeleteImageRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteImage, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, Deprecate, (google::cloud::cpp::compute::images::v1::DeprecateRequest const& request), (override)); + MOCK_METHOD(StatusOr, Deprecate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::DeprecateRequest const& + request), + (override)); + + MOCK_METHOD(future>, + Deprecate, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetImage, (google::cloud::cpp::compute::images::v1::GetImageRequest const& request), @@ -81,6 +106,19 @@ class MockImagesConnection : public compute_images_v1::ImagesConnection { request), (override)); + MOCK_METHOD( + StatusOr, InsertImage, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::InsertImageRequest const& + request), + (override)); + + MOCK_METHOD(future>, + InsertImage, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListImages, (google::cloud::cpp::compute::images::v1::ListImagesRequest request), @@ -92,6 +130,18 @@ class MockImagesConnection : public compute_images_v1::ImagesConnection { request), (override)); + MOCK_METHOD(StatusOr, PatchImage, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::PatchImageRequest const& + request), + (override)); + + MOCK_METHOD(future>, + PatchImage, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, SetIamPolicy, (google::cloud::cpp::compute::images::v1::SetIamPolicyRequest const& @@ -104,6 +154,18 @@ class MockImagesConnection : public compute_images_v1::ImagesConnection { request), (override)); + MOCK_METHOD(StatusOr, SetLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::images::v1::SetLabelsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + SetLabels, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, TestIamPermissions, diff --git a/google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection.cc b/google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection.cc index 48a7afb99c9b3..4c05703b64d29 100644 --- a/google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection.cc +++ b/google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection.cc @@ -47,6 +47,24 @@ InstanceGroupManagerResizeRequestsConnection::Cancel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupManagerResizeRequestsConnection::Cancel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: + CancelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagerResizeRequestsConnection::Cancel( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstanceGroupManagerResizeRequestsConnection:: DeleteInstanceGroupManagerResizeRequest( @@ -57,6 +75,26 @@ InstanceGroupManagerResizeRequestsConnection:: Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupManagerResizeRequestsConnection:: + DeleteInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests:: + v1::DeleteInstanceGroupManagerResizeRequestRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagerResizeRequestsConnection:: + DeleteInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr InstanceGroupManagerResizeRequestsConnection:: GetInstanceGroupManagerResizeRequest( @@ -75,6 +113,26 @@ InstanceGroupManagerResizeRequestsConnection:: Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupManagerResizeRequestsConnection:: + InsertInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests:: + v1::InsertInstanceGroupManagerResizeRequestRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagerResizeRequestsConnection:: + InsertInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange InstanceGroupManagerResizeRequestsConnection:: ListInstanceGroupManagerResizeRequests( diff --git a/google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection.h b/google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection.h index 9e9afa03cadff..92154e27e1713 100644 --- a/google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection.h +++ b/google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection_idempotency_policy.h" #include "google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -211,11 +213,31 @@ class InstanceGroupManagerResizeRequestsConnection { google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: CancelRequest const& request); + virtual StatusOr Cancel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: + CancelRequest const& request); + + virtual future> Cancel( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteInstanceGroupManagerResizeRequest( google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: DeleteInstanceGroupManagerResizeRequestRequest const& request); + virtual StatusOr + DeleteInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: + DeleteInstanceGroupManagerResizeRequestRequest const& request); + + virtual future> + DeleteInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr< google::cloud::cpp::compute::v1::InstanceGroupManagerResizeRequest> GetInstanceGroupManagerResizeRequest( @@ -227,6 +249,17 @@ class InstanceGroupManagerResizeRequestsConnection { google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: InsertInstanceGroupManagerResizeRequestRequest const& request); + virtual StatusOr + InsertInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: + InsertInstanceGroupManagerResizeRequestRequest const& request); + + virtual future> + InsertInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange< google::cloud::cpp::compute::v1::InstanceGroupManagerResizeRequest> ListInstanceGroupManagerResizeRequests( diff --git a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_rest_connection_impl.cc b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_rest_connection_impl.cc index bb8f0d0b82cf8..0b5ca7795139a 100644 --- a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_rest_connection_impl.cc +++ b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -109,6 +110,80 @@ InstanceGroupManagerResizeRequestsRestConnectionImpl::Cancel( }); } +StatusOr +InstanceGroupManagerResizeRequestsRestConnectionImpl::Cancel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: + CancelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Cancel(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_manager_resize_requests:: + v1::CancelRequest const& request) { + return stub_->Cancel(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagerResizeRequestsRestConnectionImpl::Cancel( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> InstanceGroupManagerResizeRequestsRestConnectionImpl:: DeleteInstanceGroupManagerResizeRequest( @@ -173,6 +248,85 @@ InstanceGroupManagerResizeRequestsRestConnectionImpl:: }); } +StatusOr +InstanceGroupManagerResizeRequestsRestConnectionImpl:: + DeleteInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests:: + v1::DeleteInstanceGroupManagerResizeRequestRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstanceGroupManagerResizeRequest( + request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_manager_resize_requests:: + v1::DeleteInstanceGroupManagerResizeRequestRequest const& + request) { + return stub_->DeleteInstanceGroupManagerResizeRequest(rest_context, + options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagerResizeRequestsRestConnectionImpl:: + DeleteInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StatusOr InstanceGroupManagerResizeRequestsRestConnectionImpl:: GetInstanceGroupManagerResizeRequest( @@ -257,6 +411,85 @@ InstanceGroupManagerResizeRequestsRestConnectionImpl:: }); } +StatusOr +InstanceGroupManagerResizeRequestsRestConnectionImpl:: + InsertInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests:: + v1::InsertInstanceGroupManagerResizeRequestRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertInstanceGroupManagerResizeRequest( + request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_manager_resize_requests:: + v1::InsertInstanceGroupManagerResizeRequestRequest const& + request) { + return stub_->InsertInstanceGroupManagerResizeRequest(rest_context, + options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagerResizeRequestsRestConnectionImpl:: + InsertInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StreamRange InstanceGroupManagerResizeRequestsRestConnectionImpl:: ListInstanceGroupManagerResizeRequests( diff --git a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_rest_connection_impl.h b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_rest_connection_impl.h index 7ea624861bfbc..c24ad9855dae1 100644 --- a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_rest_connection_impl.h +++ b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_rest_connection_impl.h @@ -59,12 +59,33 @@ class InstanceGroupManagerResizeRequestsRestConnectionImpl google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: CancelRequest const& request) override; + StatusOr Cancel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: + CancelRequest const& request) override; + + future> Cancel( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteInstanceGroupManagerResizeRequest( google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: DeleteInstanceGroupManagerResizeRequestRequest const& request) override; + StatusOr + DeleteInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: + DeleteInstanceGroupManagerResizeRequestRequest const& request) + override; + + future> + DeleteInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInstanceGroupManagerResizeRequest( google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: @@ -76,6 +97,18 @@ class InstanceGroupManagerResizeRequestsRestConnectionImpl InsertInstanceGroupManagerResizeRequestRequest const& request) override; + StatusOr + InsertInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: + InsertInstanceGroupManagerResizeRequestRequest const& request) + override; + + future> + InsertInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange< google::cloud::cpp::compute::v1::InstanceGroupManagerResizeRequest> ListInstanceGroupManagerResizeRequests( diff --git a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.cc b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.cc index 5b4923550541e..90ec1b62119c8 100644 --- a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.cc +++ b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.cc @@ -48,6 +48,33 @@ InstanceGroupManagerResizeRequestsTracingConnection::Cancel( return internal::EndSpan(std::move(span), child_->Cancel(request)); } +StatusOr +InstanceGroupManagerResizeRequestsTracingConnection::Cancel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: + CancelRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_manager_resize_requests_v1::" + "InstanceGroupManagerResizeRequestsConnection::Cancel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->Cancel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupManagerResizeRequestsTracingConnection::Cancel( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_manager_resize_requests_v1::" + "InstanceGroupManagerResizeRequestsConnection::Cancel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Cancel(google::cloud::ExperimentalTag{}, operation)); +} + future> InstanceGroupManagerResizeRequestsTracingConnection:: DeleteInstanceGroupManagerResizeRequest( @@ -63,6 +90,38 @@ InstanceGroupManagerResizeRequestsTracingConnection:: child_->DeleteInstanceGroupManagerResizeRequest(request)); } +StatusOr +InstanceGroupManagerResizeRequestsTracingConnection:: + DeleteInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests:: + v1::DeleteInstanceGroupManagerResizeRequestRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_manager_resize_requests_v1::" + "InstanceGroupManagerResizeRequestsConnection::" + "DeleteInstanceGroupManagerResizeRequest"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, + request)); +} + +future> +InstanceGroupManagerResizeRequestsTracingConnection:: + DeleteInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_manager_resize_requests_v1::" + "InstanceGroupManagerResizeRequestsConnection::" + "DeleteInstanceGroupManagerResizeRequest"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr InstanceGroupManagerResizeRequestsTracingConnection:: GetInstanceGroupManagerResizeRequest( @@ -92,6 +151,38 @@ InstanceGroupManagerResizeRequestsTracingConnection:: child_->InsertInstanceGroupManagerResizeRequest(request)); } +StatusOr +InstanceGroupManagerResizeRequestsTracingConnection:: + InsertInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests:: + v1::InsertInstanceGroupManagerResizeRequestRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_manager_resize_requests_v1::" + "InstanceGroupManagerResizeRequestsConnection::" + "InsertInstanceGroupManagerResizeRequest"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, + request)); +} + +future> +InstanceGroupManagerResizeRequestsTracingConnection:: + InsertInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_manager_resize_requests_v1::" + "InstanceGroupManagerResizeRequestsConnection::" + "InsertInstanceGroupManagerResizeRequest"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange InstanceGroupManagerResizeRequestsTracingConnection:: ListInstanceGroupManagerResizeRequests( diff --git a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.h b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.h index 2981593f9cf1f..5be18e2705390 100644 --- a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.h +++ b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.h @@ -48,12 +48,33 @@ class InstanceGroupManagerResizeRequestsTracingConnection google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: CancelRequest const& request) override; + StatusOr Cancel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: + CancelRequest const& request) override; + + future> Cancel( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteInstanceGroupManagerResizeRequest( google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: DeleteInstanceGroupManagerResizeRequestRequest const& request) override; + StatusOr + DeleteInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: + DeleteInstanceGroupManagerResizeRequestRequest const& request) + override; + + future> + DeleteInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInstanceGroupManagerResizeRequest( google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: @@ -65,6 +86,18 @@ class InstanceGroupManagerResizeRequestsTracingConnection InsertInstanceGroupManagerResizeRequestRequest const& request) override; + StatusOr + InsertInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: + InsertInstanceGroupManagerResizeRequestRequest const& request) + override; + + future> + InsertInstanceGroupManagerResizeRequest( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange< google::cloud::cpp::compute::v1::InstanceGroupManagerResizeRequest> ListInstanceGroupManagerResizeRequests( diff --git a/google/cloud/compute/instance_group_manager_resize_requests/v1/mocks/mock_instance_group_manager_resize_requests_connection.h b/google/cloud/compute/instance_group_manager_resize_requests/v1/mocks/mock_instance_group_manager_resize_requests_connection.h index 9462488fdf77a..92ae02b91ebb8 100644 --- a/google/cloud/compute/instance_group_manager_resize_requests/v1/mocks/mock_instance_group_manager_resize_requests_connection.h +++ b/google/cloud/compute/instance_group_manager_resize_requests/v1/mocks/mock_instance_group_manager_resize_requests_connection.h @@ -56,6 +56,19 @@ class MockInstanceGroupManagerResizeRequestsConnection CancelRequest const& request), (override)); + MOCK_METHOD( + StatusOr, Cancel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: + CancelRequest const& request), + (override)); + + MOCK_METHOD(future>, + Cancel, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteInstanceGroupManagerResizeRequest, @@ -63,6 +76,20 @@ class MockInstanceGroupManagerResizeRequestsConnection DeleteInstanceGroupManagerResizeRequestRequest const& request), (override)); + MOCK_METHOD( + StatusOr, + DeleteInstanceGroupManagerResizeRequest, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: + DeleteInstanceGroupManagerResizeRequestRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInstanceGroupManagerResizeRequest, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr< google::cloud::cpp::compute::v1::InstanceGroupManagerResizeRequest>, @@ -78,6 +105,20 @@ class MockInstanceGroupManagerResizeRequestsConnection InsertInstanceGroupManagerResizeRequestRequest const& request), (override)); + MOCK_METHOD( + StatusOr, + InsertInstanceGroupManagerResizeRequest, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: + InsertInstanceGroupManagerResizeRequestRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertInstanceGroupManagerResizeRequest, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange< google::cloud::cpp::compute::v1::InstanceGroupManagerResizeRequest>), diff --git a/google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection.cc b/google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection.cc index a57514f00d4e4..8f38ca48aa16c 100644 --- a/google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection.cc +++ b/google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection.cc @@ -46,6 +46,24 @@ InstanceGroupManagersConnection::AbandonInstances( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupManagersConnection::AbandonInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + AbandonInstancesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagersConnection::AbandonInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange< std::pair> @@ -66,6 +84,24 @@ InstanceGroupManagersConnection::ApplyUpdatesToInstances( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupManagersConnection::ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + ApplyUpdatesToInstancesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagersConnection::ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstanceGroupManagersConnection::CreateInstances( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -75,6 +111,24 @@ InstanceGroupManagersConnection::CreateInstances( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupManagersConnection::CreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + CreateInstancesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagersConnection::CreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstanceGroupManagersConnection::DeleteInstanceGroupManager( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -84,6 +138,24 @@ InstanceGroupManagersConnection::DeleteInstanceGroupManager( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupManagersConnection::DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeleteInstanceGroupManagerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagersConnection::DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstanceGroupManagersConnection::DeleteInstances( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -93,6 +165,24 @@ InstanceGroupManagersConnection::DeleteInstances( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupManagersConnection::DeleteInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeleteInstancesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagersConnection::DeleteInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstanceGroupManagersConnection::DeletePerInstanceConfigs( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -102,6 +192,24 @@ InstanceGroupManagersConnection::DeletePerInstanceConfigs( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupManagersConnection::DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeletePerInstanceConfigsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagersConnection::DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr InstanceGroupManagersConnection::GetInstanceGroupManager( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -118,6 +226,24 @@ InstanceGroupManagersConnection::InsertInstanceGroupManager( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupManagersConnection::InsertInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagersConnection::InsertInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange InstanceGroupManagersConnection::ListInstanceGroupManagers( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -159,6 +285,24 @@ InstanceGroupManagersConnection::PatchInstanceGroupManager( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupManagersConnection::PatchInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagersConnection::PatchInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstanceGroupManagersConnection::PatchPerInstanceConfigs( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -168,6 +312,24 @@ InstanceGroupManagersConnection::PatchPerInstanceConfigs( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupManagersConnection::PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagersConnection::PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstanceGroupManagersConnection::RecreateInstances( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -177,6 +339,24 @@ InstanceGroupManagersConnection::RecreateInstances( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupManagersConnection::RecreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + RecreateInstancesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagersConnection::RecreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstanceGroupManagersConnection::Resize( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -186,6 +366,24 @@ InstanceGroupManagersConnection::Resize( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupManagersConnection::Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + ResizeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagersConnection::Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstanceGroupManagersConnection::SetInstanceTemplate( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -195,6 +393,24 @@ InstanceGroupManagersConnection::SetInstanceTemplate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupManagersConnection::SetInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + SetInstanceTemplateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagersConnection::SetInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstanceGroupManagersConnection::SetTargetPools( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -204,10 +420,46 @@ InstanceGroupManagersConnection::SetTargetPools( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupManagersConnection::SetTargetPools( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + SetTargetPoolsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +InstanceGroupManagersConnection::SetTargetPools( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagersConnection::UpdatePerInstanceConfigs( + google::cloud::cpp::compute::instance_group_managers::v1:: + UpdatePerInstanceConfigsRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr InstanceGroupManagersConnection::UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupManagersConnection::UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection.h b/google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection.h index 36ef12e4f989e..663738fa8ff7f 100644 --- a/google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection.h +++ b/google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection_idempotency_policy.h" #include "google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -198,6 +200,15 @@ class InstanceGroupManagersConnection { AbandonInstances(google::cloud::cpp::compute::instance_group_managers::v1:: AbandonInstancesRequest const& request); + virtual StatusOr AbandonInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + AbandonInstancesRequest const& request); + + virtual future> + AbandonInstances(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange> @@ -210,24 +221,75 @@ class InstanceGroupManagersConnection { google::cloud::cpp::compute::instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request); + virtual StatusOr + ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + ApplyUpdatesToInstancesRequest const& request); + + virtual future> + ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> CreateInstances(google::cloud::cpp::compute::instance_group_managers::v1:: CreateInstancesRequest const& request); + virtual StatusOr CreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + CreateInstancesRequest const& request); + + virtual future> + CreateInstances(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteInstanceGroupManager( google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request); + virtual StatusOr + DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeleteInstanceGroupManagerRequest const& request); + + virtual future> + DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteInstances(google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstancesRequest const& request); + virtual StatusOr DeleteInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeleteInstancesRequest const& request); + + virtual future> + DeleteInstances(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeletePerInstanceConfigs( google::cloud::cpp::compute::instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request); + virtual StatusOr + DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeletePerInstanceConfigsRequest const& request); + + virtual future> + DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetInstanceGroupManager( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -238,6 +300,17 @@ class InstanceGroupManagersConnection { google::cloud::cpp::compute::instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request); + virtual StatusOr + InsertInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request); + + virtual future> + InsertInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListInstanceGroupManagers( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -262,31 +335,102 @@ class InstanceGroupManagersConnection { google::cloud::cpp::compute::instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request); + virtual StatusOr + PatchInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request); + virtual future> + PatchInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + + virtual future> + PatchPerInstanceConfigs( + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request); + + virtual StatusOr PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request); + virtual future> + PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> RecreateInstances(google::cloud::cpp::compute::instance_group_managers::v1:: RecreateInstancesRequest const& request); + virtual StatusOr + RecreateInstances(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + RecreateInstancesRequest const& request); + + virtual future> + RecreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> Resize( google::cloud::cpp::compute::instance_group_managers::v1:: ResizeRequest const& request); + virtual StatusOr Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + ResizeRequest const& request); + + virtual future> Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetInstanceTemplate(google::cloud::cpp::compute::instance_group_managers::v1:: SetInstanceTemplateRequest const& request); + virtual StatusOr + SetInstanceTemplate(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + SetInstanceTemplateRequest const& request); + + virtual future> + SetInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetTargetPools(google::cloud::cpp::compute::instance_group_managers::v1:: SetTargetPoolsRequest const& request); + virtual StatusOr SetTargetPools( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + SetTargetPoolsRequest const& request); + + virtual future> + SetTargetPools(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> UpdatePerInstanceConfigs( google::cloud::cpp::compute::instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request); + + virtual StatusOr + UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + UpdatePerInstanceConfigsRequest const& request); + + virtual future> + UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_rest_connection_impl.cc b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_rest_connection_impl.cc index 279a238a99a20..b95e9406543e6 100644 --- a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_rest_connection_impl.cc +++ b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -106,6 +107,79 @@ InstanceGroupManagersRestConnectionImpl::AbandonInstances( }); } +StatusOr +InstanceGroupManagersRestConnectionImpl::AbandonInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + AbandonInstancesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AbandonInstances(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_managers::v1:: + AbandonInstancesRequest const& request) { + return stub_->AbandonInstances(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagersRestConnectionImpl::AbandonInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StreamRange< std::pair> @@ -213,6 +287,79 @@ InstanceGroupManagersRestConnectionImpl::ApplyUpdatesToInstances( }); } +StatusOr +InstanceGroupManagersRestConnectionImpl::ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + ApplyUpdatesToInstancesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ApplyUpdatesToInstances(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_managers::v1:: + ApplyUpdatesToInstancesRequest const& request) { + return stub_->ApplyUpdatesToInstances(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagersRestConnectionImpl::ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> InstanceGroupManagersRestConnectionImpl::CreateInstances( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -273,6 +420,79 @@ InstanceGroupManagersRestConnectionImpl::CreateInstances( }); } +StatusOr +InstanceGroupManagersRestConnectionImpl::CreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + CreateInstancesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstances(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_managers::v1:: + CreateInstancesRequest const& request) { + return stub_->CreateInstances(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagersRestConnectionImpl::CreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> InstanceGroupManagersRestConnectionImpl::DeleteInstanceGroupManager( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -333,25 +553,35 @@ InstanceGroupManagersRestConnectionImpl::DeleteInstanceGroupManager( }); } -future> -InstanceGroupManagersRestConnectionImpl::DeleteInstances( +StatusOr +InstanceGroupManagersRestConnectionImpl::DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: - DeleteInstancesRequest const& request) { + DeleteInstanceGroupManagerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstanceGroupManager(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeleteInstanceGroupManagerRequest const& request) { + return stub_->DeleteInstanceGroupManager(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagersRestConnectionImpl::DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_](CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instance_group_managers::v1:: - DeleteInstancesRequest const& request) { - return stub->AsyncDeleteInstances(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -370,33 +600,37 @@ InstanceGroupManagersRestConnectionImpl::DeleteInstances( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->DeleteInstances(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } future> -InstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( +InstanceGroupManagersRestConnectionImpl::DeleteInstances( google::cloud::cpp::compute::instance_group_managers::v1:: - DeletePerInstanceConfigsRequest const& request) { + DeleteInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -408,9 +642,9 @@ InstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( std::unique_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::cpp::compute::instance_group_managers::v1:: - DeletePerInstanceConfigsRequest const& request) { - return stub->AsyncDeletePerInstanceConfigs(cq, std::move(context), - std::move(options), request); + DeleteInstancesRequest const& request) { + return stub->AsyncDeleteInstances(cq, std::move(context), + std::move(options), request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -431,7 +665,7 @@ InstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->DeletePerInstanceConfigs(request), + idempotency_policy(*current)->DeleteInstances(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; @@ -453,41 +687,34 @@ InstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( }); } -StatusOr -InstanceGroupManagersRestConnectionImpl::GetInstanceGroupManager( +StatusOr +InstanceGroupManagersRestConnectionImpl::DeleteInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: - GetInstanceGroupManagerRequest const& request) { + DeleteInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->GetInstanceGroupManager(request), + idempotency_policy(*current)->DeleteInstances(request), [this](rest_internal::RestContext& rest_context, Options const& options, google::cloud::cpp::compute::instance_group_managers::v1:: - GetInstanceGroupManagerRequest const& request) { - return stub_->GetInstanceGroupManager(rest_context, options, request); + DeleteInstancesRequest const& request) { + return stub_->DeleteInstances(rest_context, options, request); }, *current, request, __func__); } future> -InstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( - google::cloud::cpp::compute::instance_group_managers::v1:: - InsertInstanceGroupManagerRequest const& request) { +InstanceGroupManagersRestConnectionImpl::DeleteInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_](CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instance_group_managers::v1:: - InsertInstanceGroupManagerRequest const& request) { - return stub->AsyncInsertInstanceGroupManager( - cq, std::move(context), std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -506,43 +733,330 @@ InstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->InsertInstanceGroupManager(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } -StreamRange -InstanceGroupManagersRestConnectionImpl::ListInstanceGroupManagers( +future> +InstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( google::cloud::cpp::compute::instance_group_managers::v1:: - ListInstanceGroupManagersRequest request) { - request.clear_page_token(); + DeletePerInstanceConfigsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto idempotency = - idempotency_policy(*current)->ListInstanceGroupManagers(request); - char const* function_name = __func__; - return google::cloud::internal::MakePaginationRange< - StreamRange>( - current, std::move(request), - [idempotency, function_name, stub = stub_, - retry = std::shared_ptr( + background_->cq(), current, request, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeletePerInstanceConfigsRequest const& request) { + return stub->AsyncDeletePerInstanceConfigs(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePerInstanceConfigs(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeletePerInstanceConfigsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePerInstanceConfigs(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeletePerInstanceConfigsRequest const& request) { + return stub_->DeletePerInstanceConfigs(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +StatusOr +InstanceGroupManagersRestConnectionImpl::GetInstanceGroupManager( + google::cloud::cpp::compute::instance_group_managers::v1:: + GetInstanceGroupManagerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->GetInstanceGroupManager(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_managers::v1:: + GetInstanceGroupManagerRequest const& request) { + return stub_->GetInstanceGroupManager(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( + google::cloud::cpp::compute::instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request) { + return stub->AsyncInsertInstanceGroupManager( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertInstanceGroupManager(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertInstanceGroupManager(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request) { + return stub_->InsertInstanceGroupManager(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +StreamRange +InstanceGroupManagersRestConnectionImpl::ListInstanceGroupManagers( + google::cloud::cpp::compute::instance_group_managers::v1:: + ListInstanceGroupManagersRequest request) { + request.clear_page_token(); + auto current = google::cloud::internal::SaveCurrentOptions(); + auto idempotency = + idempotency_policy(*current)->ListInstanceGroupManagers(request); + char const* function_name = __func__; + return google::cloud::internal::MakePaginationRange< + StreamRange>( + current, std::move(request), + [idempotency, function_name, stub = stub_, + retry = std::shared_ptr( retry_policy(*current)), backoff = std::shared_ptr(backoff_policy(*current))]( @@ -667,9 +1181,275 @@ InstanceGroupManagersRestConnectionImpl::ListPerInstanceConfigs( } future> -InstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( +InstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request) { + return stub->AsyncPatchInstanceGroupManager( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchInstanceGroupManager(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchInstanceGroupManager(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request) { + return stub_->PatchInstanceGroupManager(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +future> +InstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request) { + return stub->AsyncPatchPerInstanceConfigs(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchPerInstanceConfigs(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchPerInstanceConfigs(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request) { + return stub_->PatchPerInstanceConfigs(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +future> +InstanceGroupManagersRestConnectionImpl::RecreateInstances( google::cloud::cpp::compute::instance_group_managers::v1:: - PatchInstanceGroupManagerRequest const& request) { + RecreateInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -681,9 +1461,9 @@ InstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( std::unique_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::cpp::compute::instance_group_managers::v1:: - PatchInstanceGroupManagerRequest const& request) { - return stub->AsyncPatchInstanceGroupManager( - cq, std::move(context), std::move(options), request); + RecreateInstancesRequest const& request) { + return stub->AsyncRecreateInstances(cq, std::move(context), + std::move(options), request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -704,7 +1484,7 @@ InstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->PatchInstanceGroupManager(request), + idempotency_policy(*current)->RecreateInstances(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; @@ -726,25 +1506,34 @@ InstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( }); } -future> -InstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( +StatusOr +InstanceGroupManagersRestConnectionImpl::RecreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: - PatchPerInstanceConfigsRequest const& request) { + RecreateInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RecreateInstances(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_managers::v1:: + RecreateInstancesRequest const& request) { + return stub_->RecreateInstances(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagersRestConnectionImpl::RecreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_](CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instance_group_managers::v1:: - PatchPerInstanceConfigsRequest const& request) { - return stub->AsyncPatchPerInstanceConfigs(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -763,33 +1552,37 @@ InstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->PatchPerInstanceConfigs(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } future> -InstanceGroupManagersRestConnectionImpl::RecreateInstances( +InstanceGroupManagersRestConnectionImpl::Resize( google::cloud::cpp::compute::instance_group_managers::v1:: - RecreateInstancesRequest const& request) { + ResizeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -801,9 +1594,9 @@ InstanceGroupManagersRestConnectionImpl::RecreateInstances( std::unique_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::cpp::compute::instance_group_managers::v1:: - RecreateInstancesRequest const& request) { - return stub->AsyncRecreateInstances(cq, std::move(context), - std::move(options), request); + ResizeRequest const& request) { + return stub->AsyncResize(cq, std::move(context), std::move(options), + request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -824,8 +1617,8 @@ InstanceGroupManagersRestConnectionImpl::RecreateInstances( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->RecreateInstances(request), - polling_policy(*current), __func__, + idempotency_policy(*current)->Resize(request), polling_policy(*current), + __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, @@ -846,25 +1639,34 @@ InstanceGroupManagersRestConnectionImpl::RecreateInstances( }); } -future> +StatusOr InstanceGroupManagersRestConnectionImpl::Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: ResizeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Resize(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_managers::v1:: + ResizeRequest const& request) { + return stub_->Resize(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagersRestConnectionImpl::Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_](CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instance_group_managers::v1:: - ResizeRequest const& request) { - return stub->AsyncResize(cq, std::move(context), std::move(options), - request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -883,26 +1685,30 @@ InstanceGroupManagersRestConnectionImpl::Resize( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->Resize(request), polling_policy(*current), - __func__, + polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } @@ -966,6 +1772,79 @@ InstanceGroupManagersRestConnectionImpl::SetInstanceTemplate( }); } +StatusOr +InstanceGroupManagersRestConnectionImpl::SetInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + SetInstanceTemplateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetInstanceTemplate(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_managers::v1:: + SetInstanceTemplateRequest const& request) { + return stub_->SetInstanceTemplate(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagersRestConnectionImpl::SetInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> InstanceGroupManagersRestConnectionImpl::SetTargetPools( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -1026,6 +1905,79 @@ InstanceGroupManagersRestConnectionImpl::SetTargetPools( }); } +StatusOr +InstanceGroupManagersRestConnectionImpl::SetTargetPools( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + SetTargetPoolsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetTargetPools(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_managers::v1:: + SetTargetPoolsRequest const& request) { + return stub_->SetTargetPools(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagersRestConnectionImpl::SetTargetPools( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> InstanceGroupManagersRestConnectionImpl::UpdatePerInstanceConfigs( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -1086,6 +2038,79 @@ InstanceGroupManagersRestConnectionImpl::UpdatePerInstanceConfigs( }); } +StatusOr +InstanceGroupManagersRestConnectionImpl::UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + UpdatePerInstanceConfigsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdatePerInstanceConfigs(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_group_managers::v1:: + UpdatePerInstanceConfigsRequest const& request) { + return stub_->UpdatePerInstanceConfigs(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupManagersRestConnectionImpl::UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_instance_group_managers_v1_internal } // namespace cloud diff --git a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_rest_connection_impl.h b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_rest_connection_impl.h index 45c4eeda18865..23e01b9136041 100644 --- a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_rest_connection_impl.h +++ b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_rest_connection_impl.h @@ -58,6 +58,15 @@ class InstanceGroupManagersRestConnectionImpl google::cloud::cpp::compute::instance_group_managers::v1:: AbandonInstancesRequest const& request) override; + StatusOr AbandonInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + AbandonInstancesRequest const& request) override; + + future> AbandonInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange> AggregatedListInstanceGroupManagers( @@ -69,24 +78,73 @@ class InstanceGroupManagersRestConnectionImpl google::cloud::cpp::compute::instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request) override; + StatusOr ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + ApplyUpdatesToInstancesRequest const& request) override; + + future> + ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> CreateInstances( google::cloud::cpp::compute::instance_group_managers::v1:: CreateInstancesRequest const& request) override; + StatusOr CreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + CreateInstancesRequest const& request) override; + + future> CreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteInstanceGroupManager( google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request) override; + StatusOr + DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeleteInstanceGroupManagerRequest const& request) override; + + future> + DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteInstances( google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstancesRequest const& request) override; + StatusOr DeleteInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeleteInstancesRequest const& request) override; + + future> DeleteInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeletePerInstanceConfigs( google::cloud::cpp::compute::instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request) override; + StatusOr DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeletePerInstanceConfigsRequest const& request) override; + + future> + DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInstanceGroupManager( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -97,6 +155,17 @@ class InstanceGroupManagersRestConnectionImpl google::cloud::cpp::compute::instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request) override; + StatusOr + InsertInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request) override; + + future> + InsertInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListInstanceGroupManagers( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -122,32 +191,101 @@ class InstanceGroupManagersRestConnectionImpl google::cloud::cpp::compute::instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request) override; + StatusOr + PatchInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request) override; + + future> + PatchInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PatchPerInstanceConfigs( google::cloud::cpp::compute::instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request) override; + StatusOr PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request) override; + + future> + PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RecreateInstances(google::cloud::cpp::compute::instance_group_managers::v1:: RecreateInstancesRequest const& request) override; + StatusOr RecreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + RecreateInstancesRequest const& request) override; + + future> + RecreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Resize( google::cloud::cpp::compute::instance_group_managers::v1:: ResizeRequest const& request) override; + StatusOr Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + ResizeRequest const& request) override; + + future> Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetInstanceTemplate(google::cloud::cpp::compute::instance_group_managers::v1:: SetInstanceTemplateRequest const& request) override; + StatusOr SetInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + SetInstanceTemplateRequest const& request) override; + + future> + SetInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetTargetPools( google::cloud::cpp::compute::instance_group_managers::v1:: SetTargetPoolsRequest const& request) override; + StatusOr SetTargetPools( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + SetTargetPoolsRequest const& request) override; + + future> SetTargetPools( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdatePerInstanceConfigs( google::cloud::cpp::compute::instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request) override; + StatusOr UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + UpdatePerInstanceConfigsRequest const& request) override; + + future> + UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_instance_group_managers_v1::InstanceGroupManagersRetryPolicy> diff --git a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.cc b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.cc index 8f4bf08088143..1f5ea7e49f47a 100644 --- a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.cc +++ b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.cc @@ -47,6 +47,33 @@ InstanceGroupManagersTracingConnection::AbandonInstances( return internal::EndSpan(std::move(span), child_->AbandonInstances(request)); } +StatusOr +InstanceGroupManagersTracingConnection::AbandonInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + AbandonInstancesRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "AbandonInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AbandonInstances(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupManagersTracingConnection::AbandonInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "AbandonInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AbandonInstances(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange< std::pair> @@ -76,6 +103,33 @@ InstanceGroupManagersTracingConnection::ApplyUpdatesToInstances( child_->ApplyUpdatesToInstances(request)); } +StatusOr +InstanceGroupManagersTracingConnection::ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + ApplyUpdatesToInstancesRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "ApplyUpdatesToInstances"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ApplyUpdatesToInstances( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupManagersTracingConnection::ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "ApplyUpdatesToInstances"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ApplyUpdatesToInstances( + google::cloud::ExperimentalTag{}, operation)); +} + future> InstanceGroupManagersTracingConnection::CreateInstances( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -87,6 +141,33 @@ InstanceGroupManagersTracingConnection::CreateInstances( return internal::EndSpan(std::move(span), child_->CreateInstances(request)); } +StatusOr +InstanceGroupManagersTracingConnection::CreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + CreateInstancesRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "CreateInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateInstances(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupManagersTracingConnection::CreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "CreateInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateInstances(google::cloud::ExperimentalTag{}, operation)); +} + future> InstanceGroupManagersTracingConnection::DeleteInstanceGroupManager( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -99,6 +180,33 @@ InstanceGroupManagersTracingConnection::DeleteInstanceGroupManager( child_->DeleteInstanceGroupManager(request)); } +StatusOr +InstanceGroupManagersTracingConnection::DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeleteInstanceGroupManagerRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "DeleteInstanceGroupManager"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteInstanceGroupManager( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupManagersTracingConnection::DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "DeleteInstanceGroupManager"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteInstanceGroupManager( + google::cloud::ExperimentalTag{}, operation)); +} + future> InstanceGroupManagersTracingConnection::DeleteInstances( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -110,6 +218,33 @@ InstanceGroupManagersTracingConnection::DeleteInstances( return internal::EndSpan(std::move(span), child_->DeleteInstances(request)); } +StatusOr +InstanceGroupManagersTracingConnection::DeleteInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeleteInstancesRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "DeleteInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteInstances(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupManagersTracingConnection::DeleteInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "DeleteInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteInstances(google::cloud::ExperimentalTag{}, operation)); +} + future> InstanceGroupManagersTracingConnection::DeletePerInstanceConfigs( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -122,6 +257,33 @@ InstanceGroupManagersTracingConnection::DeletePerInstanceConfigs( child_->DeletePerInstanceConfigs(request)); } +StatusOr +InstanceGroupManagersTracingConnection::DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeletePerInstanceConfigsRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "DeletePerInstanceConfigs"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeletePerInstanceConfigs( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupManagersTracingConnection::DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "DeletePerInstanceConfigs"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeletePerInstanceConfigs( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr InstanceGroupManagersTracingConnection::GetInstanceGroupManager( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -145,6 +307,33 @@ InstanceGroupManagersTracingConnection::InsertInstanceGroupManager( child_->InsertInstanceGroupManager(request)); } +StatusOr +InstanceGroupManagersTracingConnection::InsertInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "InsertInstanceGroupManager"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertInstanceGroupManager( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupManagersTracingConnection::InsertInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "InsertInstanceGroupManager"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertInstanceGroupManager( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange InstanceGroupManagersTracingConnection::ListInstanceGroupManagers( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -211,6 +400,33 @@ InstanceGroupManagersTracingConnection::PatchInstanceGroupManager( child_->PatchInstanceGroupManager(request)); } +StatusOr +InstanceGroupManagersTracingConnection::PatchInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "PatchInstanceGroupManager"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchInstanceGroupManager( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupManagersTracingConnection::PatchInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "PatchInstanceGroupManager"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchInstanceGroupManager( + google::cloud::ExperimentalTag{}, operation)); +} + future> InstanceGroupManagersTracingConnection::PatchPerInstanceConfigs( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -223,6 +439,33 @@ InstanceGroupManagersTracingConnection::PatchPerInstanceConfigs( child_->PatchPerInstanceConfigs(request)); } +StatusOr +InstanceGroupManagersTracingConnection::PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "PatchPerInstanceConfigs"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchPerInstanceConfigs( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupManagersTracingConnection::PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "PatchPerInstanceConfigs"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchPerInstanceConfigs( + google::cloud::ExperimentalTag{}, operation)); +} + future> InstanceGroupManagersTracingConnection::RecreateInstances( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -234,6 +477,33 @@ InstanceGroupManagersTracingConnection::RecreateInstances( return internal::EndSpan(std::move(span), child_->RecreateInstances(request)); } +StatusOr +InstanceGroupManagersTracingConnection::RecreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + RecreateInstancesRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "RecreateInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RecreateInstances(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupManagersTracingConnection::RecreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "RecreateInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RecreateInstances(google::cloud::ExperimentalTag{}, operation)); +} + future> InstanceGroupManagersTracingConnection::Resize( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -245,6 +515,33 @@ InstanceGroupManagersTracingConnection::Resize( return internal::EndSpan(std::move(span), child_->Resize(request)); } +StatusOr +InstanceGroupManagersTracingConnection::Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + ResizeRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "Resize"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->Resize(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupManagersTracingConnection::Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "Resize"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Resize(google::cloud::ExperimentalTag{}, operation)); +} + future> InstanceGroupManagersTracingConnection::SetInstanceTemplate( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -257,6 +554,33 @@ InstanceGroupManagersTracingConnection::SetInstanceTemplate( child_->SetInstanceTemplate(request)); } +StatusOr +InstanceGroupManagersTracingConnection::SetInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + SetInstanceTemplateRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "SetInstanceTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetInstanceTemplate(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupManagersTracingConnection::SetInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "SetInstanceTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetInstanceTemplate(google::cloud::ExperimentalTag{}, operation)); +} + future> InstanceGroupManagersTracingConnection::SetTargetPools( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -268,6 +592,33 @@ InstanceGroupManagersTracingConnection::SetTargetPools( return internal::EndSpan(std::move(span), child_->SetTargetPools(request)); } +StatusOr +InstanceGroupManagersTracingConnection::SetTargetPools( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + SetTargetPoolsRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "SetTargetPools"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetTargetPools(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupManagersTracingConnection::SetTargetPools( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "SetTargetPools"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetTargetPools(google::cloud::ExperimentalTag{}, operation)); +} + future> InstanceGroupManagersTracingConnection::UpdatePerInstanceConfigs( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -280,6 +631,33 @@ InstanceGroupManagersTracingConnection::UpdatePerInstanceConfigs( child_->UpdatePerInstanceConfigs(request)); } +StatusOr +InstanceGroupManagersTracingConnection::UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + UpdatePerInstanceConfigsRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "UpdatePerInstanceConfigs"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupManagersTracingConnection::UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" + "UpdatePerInstanceConfigs"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr< diff --git a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.h b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.h index 61826d110a1cc..5159eed1c18cc 100644 --- a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.h +++ b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.h @@ -48,6 +48,15 @@ class InstanceGroupManagersTracingConnection google::cloud::cpp::compute::instance_group_managers::v1:: AbandonInstancesRequest const& request) override; + StatusOr AbandonInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + AbandonInstancesRequest const& request) override; + + future> AbandonInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange> AggregatedListInstanceGroupManagers( @@ -59,24 +68,73 @@ class InstanceGroupManagersTracingConnection google::cloud::cpp::compute::instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request) override; + StatusOr ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + ApplyUpdatesToInstancesRequest const& request) override; + + future> + ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> CreateInstances( google::cloud::cpp::compute::instance_group_managers::v1:: CreateInstancesRequest const& request) override; + StatusOr CreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + CreateInstancesRequest const& request) override; + + future> CreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteInstanceGroupManager( google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request) override; + StatusOr + DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeleteInstanceGroupManagerRequest const& request) override; + + future> + DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteInstances( google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstancesRequest const& request) override; + StatusOr DeleteInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeleteInstancesRequest const& request) override; + + future> DeleteInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeletePerInstanceConfigs( google::cloud::cpp::compute::instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request) override; + StatusOr DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeletePerInstanceConfigsRequest const& request) override; + + future> + DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInstanceGroupManager( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -87,6 +145,17 @@ class InstanceGroupManagersTracingConnection google::cloud::cpp::compute::instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request) override; + StatusOr + InsertInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request) override; + + future> + InsertInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListInstanceGroupManagers( google::cloud::cpp::compute::instance_group_managers::v1:: @@ -112,32 +181,101 @@ class InstanceGroupManagersTracingConnection google::cloud::cpp::compute::instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request) override; + StatusOr + PatchInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request) override; + + future> + PatchInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PatchPerInstanceConfigs( google::cloud::cpp::compute::instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request) override; + StatusOr PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request) override; + + future> + PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RecreateInstances(google::cloud::cpp::compute::instance_group_managers::v1:: RecreateInstancesRequest const& request) override; + StatusOr RecreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + RecreateInstancesRequest const& request) override; + + future> + RecreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Resize( google::cloud::cpp::compute::instance_group_managers::v1:: ResizeRequest const& request) override; + StatusOr Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + ResizeRequest const& request) override; + + future> Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetInstanceTemplate(google::cloud::cpp::compute::instance_group_managers::v1:: SetInstanceTemplateRequest const& request) override; + StatusOr SetInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + SetInstanceTemplateRequest const& request) override; + + future> + SetInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetTargetPools( google::cloud::cpp::compute::instance_group_managers::v1:: SetTargetPoolsRequest const& request) override; + StatusOr SetTargetPools( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + SetTargetPoolsRequest const& request) override; + + future> SetTargetPools( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdatePerInstanceConfigs( google::cloud::cpp::compute::instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request) override; + StatusOr UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + UpdatePerInstanceConfigsRequest const& request) override; + + future> + UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr< compute_instance_group_managers_v1::InstanceGroupManagersConnection> diff --git a/google/cloud/compute/instance_group_managers/v1/mocks/mock_instance_group_managers_connection.h b/google/cloud/compute/instance_group_managers/v1/mocks/mock_instance_group_managers_connection.h index a0e597889ddd0..feb18eff550b4 100644 --- a/google/cloud/compute/instance_group_managers/v1/mocks/mock_instance_group_managers_connection.h +++ b/google/cloud/compute/instance_group_managers/v1/mocks/mock_instance_group_managers_connection.h @@ -55,6 +55,19 @@ class MockInstanceGroupManagersConnection AbandonInstancesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + AbandonInstances, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + AbandonInstancesRequest const& request), + (override)); + + MOCK_METHOD(future>, + AbandonInstances, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange, + ApplyUpdatesToInstances, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + ApplyUpdatesToInstancesRequest const& request), + (override)); + + MOCK_METHOD(future>, + ApplyUpdatesToInstances, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, CreateInstances, (google::cloud::cpp::compute::instance_group_managers::v1:: CreateInstancesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + CreateInstances, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + CreateInstancesRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateInstances, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteInstanceGroupManager, (google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteInstanceGroupManager, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeleteInstanceGroupManagerRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInstanceGroupManager, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteInstances, (google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstancesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteInstances, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeleteInstancesRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInstances, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeletePerInstanceConfigs, (google::cloud::cpp::compute::instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeletePerInstanceConfigs, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + DeletePerInstanceConfigsRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeletePerInstanceConfigs, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetInstanceGroupManager, (google::cloud::cpp::compute::instance_group_managers::v1:: @@ -106,6 +184,19 @@ class MockInstanceGroupManagersConnection InsertInstanceGroupManagerRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertInstanceGroupManager, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertInstanceGroupManager, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListInstanceGroupManagers, @@ -139,41 +230,131 @@ class MockInstanceGroupManagersConnection PatchInstanceGroupManagerRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchInstanceGroupManager, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchInstanceGroupManager, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, PatchPerInstanceConfigs, (google::cloud::cpp::compute::instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchPerInstanceConfigs, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchPerInstanceConfigs, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, RecreateInstances, (google::cloud::cpp::compute::instance_group_managers::v1:: RecreateInstancesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + RecreateInstances, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + RecreateInstancesRequest const& request), + (override)); + + MOCK_METHOD(future>, + RecreateInstances, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, Resize, (google::cloud::cpp::compute::instance_group_managers::v1:: ResizeRequest const& request), (override)); + MOCK_METHOD(StatusOr, Resize, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + ResizeRequest const& request), + (override)); + + MOCK_METHOD(future>, + Resize, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetInstanceTemplate, (google::cloud::cpp::compute::instance_group_managers::v1:: SetInstanceTemplateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetInstanceTemplate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + SetInstanceTemplateRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetInstanceTemplate, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetTargetPools, (google::cloud::cpp::compute::instance_group_managers::v1:: SetTargetPoolsRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetTargetPools, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + SetTargetPoolsRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetTargetPools, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdatePerInstanceConfigs, (google::cloud::cpp::compute::instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + UpdatePerInstanceConfigs, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_group_managers::v1:: + UpdatePerInstanceConfigsRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdatePerInstanceConfigs, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/instance_groups/v1/instance_groups_connection.cc b/google/cloud/compute/instance_groups/v1/instance_groups_connection.cc index c7dc98eb7e943..c80fb15e167c5 100644 --- a/google/cloud/compute/instance_groups/v1/instance_groups_connection.cc +++ b/google/cloud/compute/instance_groups/v1/instance_groups_connection.cc @@ -45,6 +45,24 @@ InstanceGroupsConnection::AddInstances( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupsConnection::AddInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + AddInstancesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupsConnection::AddInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange> InstanceGroupsConnection::AggregatedListInstanceGroups( @@ -64,6 +82,24 @@ InstanceGroupsConnection::DeleteInstanceGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupsConnection::DeleteInstanceGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + DeleteInstanceGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupsConnection::DeleteInstanceGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr InstanceGroupsConnection::GetInstanceGroup( google::cloud::cpp::compute::instance_groups::v1:: @@ -80,6 +116,24 @@ InstanceGroupsConnection::InsertInstanceGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupsConnection::InsertInstanceGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + InsertInstanceGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupsConnection::InsertInstanceGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange InstanceGroupsConnection::ListInstanceGroups( google::cloud::cpp::compute::instance_groups::v1:: @@ -105,6 +159,24 @@ InstanceGroupsConnection::RemoveInstances( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupsConnection::RemoveInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + RemoveInstancesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupsConnection::RemoveInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstanceGroupsConnection::SetNamedPorts( google::cloud::cpp::compute::instance_groups::v1:: @@ -114,6 +186,24 @@ InstanceGroupsConnection::SetNamedPorts( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceGroupsConnection::SetNamedPorts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + SetNamedPortsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceGroupsConnection::SetNamedPorts( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_instance_groups_v1 } // namespace cloud diff --git a/google/cloud/compute/instance_groups/v1/instance_groups_connection.h b/google/cloud/compute/instance_groups/v1/instance_groups_connection.h index 1ab2c09fb1ebf..520971d7dbffe 100644 --- a/google/cloud/compute/instance_groups/v1/instance_groups_connection.h +++ b/google/cloud/compute/instance_groups/v1/instance_groups_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/instance_groups/v1/instance_groups_connection_idempotency_policy.h" #include "google/cloud/compute/instance_groups/v1/internal/instance_groups_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -189,6 +191,15 @@ class InstanceGroupsConnection { AddInstances(google::cloud::cpp::compute::instance_groups::v1:: AddInstancesRequest const& request); + virtual StatusOr AddInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + AddInstancesRequest const& request); + + virtual future> + AddInstances(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange> AggregatedListInstanceGroups( @@ -199,6 +210,16 @@ class InstanceGroupsConnection { DeleteInstanceGroup(google::cloud::cpp::compute::instance_groups::v1:: DeleteInstanceGroupRequest const& request); + virtual StatusOr + DeleteInstanceGroup(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + DeleteInstanceGroupRequest const& request); + + virtual future> + DeleteInstanceGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetInstanceGroup(google::cloud::cpp::compute::instance_groups::v1:: GetInstanceGroupRequest const& request); @@ -207,6 +228,16 @@ class InstanceGroupsConnection { InsertInstanceGroup(google::cloud::cpp::compute::instance_groups::v1:: InsertInstanceGroupRequest const& request); + virtual StatusOr + InsertInstanceGroup(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + InsertInstanceGroupRequest const& request); + + virtual future> + InsertInstanceGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListInstanceGroups(google::cloud::cpp::compute::instance_groups::v1:: ListInstanceGroupsRequest request); @@ -220,9 +251,27 @@ class InstanceGroupsConnection { RemoveInstances(google::cloud::cpp::compute::instance_groups::v1:: RemoveInstancesRequest const& request); + virtual StatusOr RemoveInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + RemoveInstancesRequest const& request); + + virtual future> + RemoveInstances(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetNamedPorts(google::cloud::cpp::compute::instance_groups::v1:: SetNamedPortsRequest const& request); + + virtual StatusOr SetNamedPorts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + SetNamedPortsRequest const& request); + + virtual future> + SetNamedPorts(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/instance_groups/v1/internal/instance_groups_rest_connection_impl.cc b/google/cloud/compute/instance_groups/v1/internal/instance_groups_rest_connection_impl.cc index 751edc2626fce..ab090655b317e 100644 --- a/google/cloud/compute/instance_groups/v1/internal/instance_groups_rest_connection_impl.cc +++ b/google/cloud/compute/instance_groups/v1/internal/instance_groups_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -103,6 +104,79 @@ InstanceGroupsRestConnectionImpl::AddInstances( }); } +StatusOr +InstanceGroupsRestConnectionImpl::AddInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1::AddInstancesRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddInstances(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_groups::v1:: + AddInstancesRequest const& request) { + return stub_->AddInstances(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupsRestConnectionImpl::AddInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StreamRange> InstanceGroupsRestConnectionImpl::AggregatedListInstanceGroups( @@ -205,6 +279,79 @@ InstanceGroupsRestConnectionImpl::DeleteInstanceGroup( }); } +StatusOr +InstanceGroupsRestConnectionImpl::DeleteInstanceGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + DeleteInstanceGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstanceGroup(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_groups::v1:: + DeleteInstanceGroupRequest const& request) { + return stub_->DeleteInstanceGroup(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupsRestConnectionImpl::DeleteInstanceGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StatusOr InstanceGroupsRestConnectionImpl::GetInstanceGroup( google::cloud::cpp::compute::instance_groups::v1:: @@ -281,6 +428,79 @@ InstanceGroupsRestConnectionImpl::InsertInstanceGroup( }); } +StatusOr +InstanceGroupsRestConnectionImpl::InsertInstanceGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + InsertInstanceGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertInstanceGroup(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_groups::v1:: + InsertInstanceGroupRequest const& request) { + return stub_->InsertInstanceGroup(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupsRestConnectionImpl::InsertInstanceGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StreamRange InstanceGroupsRestConnectionImpl::ListInstanceGroups( google::cloud::cpp::compute::instance_groups::v1::ListInstanceGroupsRequest @@ -415,6 +635,79 @@ InstanceGroupsRestConnectionImpl::RemoveInstances( }); } +StatusOr +InstanceGroupsRestConnectionImpl::RemoveInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + RemoveInstancesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveInstances(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_groups::v1:: + RemoveInstancesRequest const& request) { + return stub_->RemoveInstances(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupsRestConnectionImpl::RemoveInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> InstanceGroupsRestConnectionImpl::SetNamedPorts( google::cloud::cpp::compute::instance_groups::v1:: @@ -475,6 +768,79 @@ InstanceGroupsRestConnectionImpl::SetNamedPorts( }); } +StatusOr +InstanceGroupsRestConnectionImpl::SetNamedPorts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + SetNamedPortsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetNamedPorts(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_groups::v1:: + SetNamedPortsRequest const& request) { + return stub_->SetNamedPorts(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceGroupsRestConnectionImpl::SetNamedPorts( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_instance_groups_v1_internal } // namespace cloud diff --git a/google/cloud/compute/instance_groups/v1/internal/instance_groups_rest_connection_impl.h b/google/cloud/compute/instance_groups/v1/internal/instance_groups_rest_connection_impl.h index bef512c6c839f..de024367e59f9 100644 --- a/google/cloud/compute/instance_groups/v1/internal/instance_groups_rest_connection_impl.h +++ b/google/cloud/compute/instance_groups/v1/internal/instance_groups_rest_connection_impl.h @@ -56,6 +56,15 @@ class InstanceGroupsRestConnectionImpl google::cloud::cpp::compute::instance_groups::v1:: AddInstancesRequest const& request) override; + StatusOr AddInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + AddInstancesRequest const& request) override; + + future> AddInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange> AggregatedListInstanceGroups( @@ -66,6 +75,16 @@ class InstanceGroupsRestConnectionImpl DeleteInstanceGroup(google::cloud::cpp::compute::instance_groups::v1:: DeleteInstanceGroupRequest const& request) override; + StatusOr DeleteInstanceGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + DeleteInstanceGroupRequest const& request) override; + + future> + DeleteInstanceGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInstanceGroup( google::cloud::cpp::compute::instance_groups::v1:: GetInstanceGroupRequest const& request) override; @@ -74,6 +93,16 @@ class InstanceGroupsRestConnectionImpl InsertInstanceGroup(google::cloud::cpp::compute::instance_groups::v1:: InsertInstanceGroupRequest const& request) override; + StatusOr InsertInstanceGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + InsertInstanceGroupRequest const& request) override; + + future> + InsertInstanceGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListInstanceGroups(google::cloud::cpp::compute::instance_groups::v1:: ListInstanceGroupsRequest request) override; @@ -87,10 +116,28 @@ class InstanceGroupsRestConnectionImpl google::cloud::cpp::compute::instance_groups::v1:: RemoveInstancesRequest const& request) override; + StatusOr RemoveInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + RemoveInstancesRequest const& request) override; + + future> RemoveInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetNamedPorts( google::cloud::cpp::compute::instance_groups::v1:: SetNamedPortsRequest const& request) override; + StatusOr SetNamedPorts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + SetNamedPortsRequest const& request) override; + + future> SetNamedPorts( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy(Options const& options) { diff --git a/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.cc b/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.cc index 263cf42fd89a9..eab853434fba1 100644 --- a/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.cc +++ b/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.cc @@ -43,6 +43,31 @@ InstanceGroupsTracingConnection::AddInstances( return internal::EndSpan(std::move(span), child_->AddInstances(request)); } +StatusOr +InstanceGroupsTracingConnection::AddInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1::AddInstancesRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instance_groups_v1::InstanceGroupsConnection::AddInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddInstances(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupsTracingConnection::AddInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_groups_v1::InstanceGroupsConnection::AddInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddInstances(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange> InstanceGroupsTracingConnection::AggregatedListInstanceGroups( @@ -70,6 +95,33 @@ InstanceGroupsTracingConnection::DeleteInstanceGroup( child_->DeleteInstanceGroup(request)); } +StatusOr +InstanceGroupsTracingConnection::DeleteInstanceGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + DeleteInstanceGroupRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_groups_v1::InstanceGroupsConnection::" + "DeleteInstanceGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteInstanceGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupsTracingConnection::DeleteInstanceGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_groups_v1::InstanceGroupsConnection::" + "DeleteInstanceGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteInstanceGroup(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr InstanceGroupsTracingConnection::GetInstanceGroup( google::cloud::cpp::compute::instance_groups::v1:: @@ -92,6 +144,33 @@ InstanceGroupsTracingConnection::InsertInstanceGroup( child_->InsertInstanceGroup(request)); } +StatusOr +InstanceGroupsTracingConnection::InsertInstanceGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + InsertInstanceGroupRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_groups_v1::InstanceGroupsConnection::" + "InsertInstanceGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertInstanceGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupsTracingConnection::InsertInstanceGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_groups_v1::InstanceGroupsConnection::" + "InsertInstanceGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertInstanceGroup(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange InstanceGroupsTracingConnection::ListInstanceGroups( google::cloud::cpp::compute::instance_groups::v1::ListInstanceGroupsRequest @@ -129,6 +208,31 @@ InstanceGroupsTracingConnection::RemoveInstances( return internal::EndSpan(std::move(span), child_->RemoveInstances(request)); } +StatusOr +InstanceGroupsTracingConnection::RemoveInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + RemoveInstancesRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_groups_v1::InstanceGroupsConnection::RemoveInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RemoveInstances(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupsTracingConnection::RemoveInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_groups_v1::InstanceGroupsConnection::RemoveInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RemoveInstances(google::cloud::ExperimentalTag{}, operation)); +} + future> InstanceGroupsTracingConnection::SetNamedPorts( google::cloud::cpp::compute::instance_groups::v1:: @@ -139,6 +243,31 @@ InstanceGroupsTracingConnection::SetNamedPorts( return internal::EndSpan(std::move(span), child_->SetNamedPorts(request)); } +StatusOr +InstanceGroupsTracingConnection::SetNamedPorts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + SetNamedPortsRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_groups_v1::InstanceGroupsConnection::SetNamedPorts"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetNamedPorts(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceGroupsTracingConnection::SetNamedPorts( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_groups_v1::InstanceGroupsConnection::SetNamedPorts"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetNamedPorts(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.h b/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.h index 3ca8b91f95bce..223c74ce85b7a 100644 --- a/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.h +++ b/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.h @@ -45,6 +45,15 @@ class InstanceGroupsTracingConnection google::cloud::cpp::compute::instance_groups::v1:: AddInstancesRequest const& request) override; + StatusOr AddInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + AddInstancesRequest const& request) override; + + future> AddInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange> AggregatedListInstanceGroups( @@ -55,6 +64,16 @@ class InstanceGroupsTracingConnection DeleteInstanceGroup(google::cloud::cpp::compute::instance_groups::v1:: DeleteInstanceGroupRequest const& request) override; + StatusOr DeleteInstanceGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + DeleteInstanceGroupRequest const& request) override; + + future> + DeleteInstanceGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInstanceGroup( google::cloud::cpp::compute::instance_groups::v1:: GetInstanceGroupRequest const& request) override; @@ -63,6 +82,16 @@ class InstanceGroupsTracingConnection InsertInstanceGroup(google::cloud::cpp::compute::instance_groups::v1:: InsertInstanceGroupRequest const& request) override; + StatusOr InsertInstanceGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + InsertInstanceGroupRequest const& request) override; + + future> + InsertInstanceGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListInstanceGroups(google::cloud::cpp::compute::instance_groups::v1:: ListInstanceGroupsRequest request) override; @@ -76,10 +105,28 @@ class InstanceGroupsTracingConnection google::cloud::cpp::compute::instance_groups::v1:: RemoveInstancesRequest const& request) override; + StatusOr RemoveInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + RemoveInstancesRequest const& request) override; + + future> RemoveInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetNamedPorts( google::cloud::cpp::compute::instance_groups::v1:: SetNamedPortsRequest const& request) override; + StatusOr SetNamedPorts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + SetNamedPortsRequest const& request) override; + + future> SetNamedPorts( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/instance_groups/v1/mocks/mock_instance_groups_connection.h b/google/cloud/compute/instance_groups/v1/mocks/mock_instance_groups_connection.h index d3319af070609..e151e66f2f674 100644 --- a/google/cloud/compute/instance_groups/v1/mocks/mock_instance_groups_connection.h +++ b/google/cloud/compute/instance_groups/v1/mocks/mock_instance_groups_connection.h @@ -53,6 +53,19 @@ class MockInstanceGroupsConnection AddInstancesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + AddInstances, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + AddInstancesRequest const& request), + (override)); + + MOCK_METHOD(future>, + AddInstances, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange>), @@ -67,6 +80,19 @@ class MockInstanceGroupsConnection DeleteInstanceGroupRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteInstanceGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + DeleteInstanceGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInstanceGroup, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetInstanceGroup, (google::cloud::cpp::compute::instance_groups::v1:: @@ -79,6 +105,19 @@ class MockInstanceGroupsConnection InsertInstanceGroupRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertInstanceGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + InsertInstanceGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertInstanceGroup, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListInstanceGroups, (google::cloud::cpp::compute::instance_groups::v1:: @@ -98,11 +137,37 @@ class MockInstanceGroupsConnection RemoveInstancesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + RemoveInstances, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + RemoveInstancesRequest const& request), + (override)); + + MOCK_METHOD(future>, + RemoveInstances, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetNamedPorts, (google::cloud::cpp::compute::instance_groups::v1:: SetNamedPortsRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + SetNamedPorts, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_groups::v1:: + SetNamedPortsRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetNamedPorts, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/instance_settings/v1/instance_settings_connection.cc b/google/cloud/compute/instance_settings/v1/instance_settings_connection.cc index 4b90b3e15bc9f..97b895ca14b29 100644 --- a/google/cloud/compute/instance_settings/v1/instance_settings_connection.cc +++ b/google/cloud/compute/instance_settings/v1/instance_settings_connection.cc @@ -51,6 +51,24 @@ InstanceSettingsConnection::PatchInstanceSettings( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceSettingsConnection::PatchInstanceSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_settings::v1:: + PatchInstanceSettingsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceSettingsConnection::PatchInstanceSettings( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_instance_settings_v1 } // namespace cloud diff --git a/google/cloud/compute/instance_settings/v1/instance_settings_connection.h b/google/cloud/compute/instance_settings/v1/instance_settings_connection.h index ccef1b211e707..394d789b56122 100644 --- a/google/cloud/compute/instance_settings/v1/instance_settings_connection.h +++ b/google/cloud/compute/instance_settings/v1/instance_settings_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/instance_settings/v1/instance_settings_connection_idempotency_policy.h" #include "google/cloud/compute/instance_settings/v1/internal/instance_settings_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -192,6 +194,17 @@ class InstanceSettingsConnection { virtual future> PatchInstanceSettings(google::cloud::cpp::compute::instance_settings::v1:: PatchInstanceSettingsRequest const& request); + + virtual StatusOr + PatchInstanceSettings(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_settings::v1:: + PatchInstanceSettingsRequest const& request); + + virtual future> + PatchInstanceSettings( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/instance_settings/v1/internal/instance_settings_rest_connection_impl.cc b/google/cloud/compute/instance_settings/v1/internal/instance_settings_rest_connection_impl.cc index 99a33ed40bba7..7fae364937ff9 100644 --- a/google/cloud/compute/instance_settings/v1/internal/instance_settings_rest_connection_impl.cc +++ b/google/cloud/compute/instance_settings/v1/internal/instance_settings_rest_connection_impl.cc @@ -22,6 +22,7 @@ #include "google/cloud/credentials.h" #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -119,6 +120,79 @@ InstanceSettingsRestConnectionImpl::PatchInstanceSettings( }); } +StatusOr +InstanceSettingsRestConnectionImpl::PatchInstanceSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_settings::v1:: + PatchInstanceSettingsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchInstanceSettings(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_settings::v1:: + PatchInstanceSettingsRequest const& request) { + return stub_->PatchInstanceSettings(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceSettingsRestConnectionImpl::PatchInstanceSettings( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_instance_settings_v1_internal } // namespace cloud diff --git a/google/cloud/compute/instance_settings/v1/internal/instance_settings_rest_connection_impl.h b/google/cloud/compute/instance_settings/v1/internal/instance_settings_rest_connection_impl.h index 06a9da759a5db..bc6128e60297d 100644 --- a/google/cloud/compute/instance_settings/v1/internal/instance_settings_rest_connection_impl.h +++ b/google/cloud/compute/instance_settings/v1/internal/instance_settings_rest_connection_impl.h @@ -60,6 +60,16 @@ class InstanceSettingsRestConnectionImpl google::cloud::cpp::compute::instance_settings::v1:: PatchInstanceSettingsRequest const& request) override; + StatusOr PatchInstanceSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_settings::v1:: + PatchInstanceSettingsRequest const& request) override; + + future> + PatchInstanceSettings( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_instance_settings_v1::InstanceSettingsRetryPolicy> diff --git a/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.cc b/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.cc index 642f9fe96418e..f3fbebe6ef2e1 100644 --- a/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.cc +++ b/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.cc @@ -56,6 +56,33 @@ InstanceSettingsTracingConnection::PatchInstanceSettings( child_->PatchInstanceSettings(request)); } +StatusOr +InstanceSettingsTracingConnection::PatchInstanceSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_settings::v1:: + PatchInstanceSettingsRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_settings_v1::InstanceSettingsConnection::" + "PatchInstanceSettings"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchInstanceSettings( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceSettingsTracingConnection::PatchInstanceSettings( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_settings_v1::InstanceSettingsConnection::" + "PatchInstanceSettings"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchInstanceSettings( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.h b/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.h index 248a4d19f6a4d..4a0e7074d12c4 100644 --- a/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.h +++ b/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.h @@ -50,6 +50,16 @@ class InstanceSettingsTracingConnection google::cloud::cpp::compute::instance_settings::v1:: PatchInstanceSettingsRequest const& request) override; + StatusOr PatchInstanceSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_settings::v1:: + PatchInstanceSettingsRequest const& request) override; + + future> + PatchInstanceSettings( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/instance_settings/v1/mocks/mock_instance_settings_connection.h b/google/cloud/compute/instance_settings/v1/mocks/mock_instance_settings_connection.h index 317d31f36aea2..05c1247e93aa8 100644 --- a/google/cloud/compute/instance_settings/v1/mocks/mock_instance_settings_connection.h +++ b/google/cloud/compute/instance_settings/v1/mocks/mock_instance_settings_connection.h @@ -58,6 +58,19 @@ class MockInstanceSettingsConnection (google::cloud::cpp::compute::instance_settings::v1:: PatchInstanceSettingsRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + PatchInstanceSettings, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_settings::v1:: + PatchInstanceSettingsRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchInstanceSettings, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/instance_templates/v1/instance_templates_connection.cc b/google/cloud/compute/instance_templates/v1/instance_templates_connection.cc index d97481c980cb5..3dd7460c78f6b 100644 --- a/google/cloud/compute/instance_templates/v1/instance_templates_connection.cc +++ b/google/cloud/compute/instance_templates/v1/instance_templates_connection.cc @@ -55,6 +55,24 @@ InstanceTemplatesConnection::DeleteInstanceTemplate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceTemplatesConnection::DeleteInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_templates::v1:: + DeleteInstanceTemplateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceTemplatesConnection::DeleteInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr InstanceTemplatesConnection::GetInstanceTemplate( google::cloud::cpp::compute::instance_templates::v1:: @@ -78,6 +96,24 @@ InstanceTemplatesConnection::InsertInstanceTemplate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceTemplatesConnection::InsertInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_templates::v1:: + InsertInstanceTemplateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceTemplatesConnection::InsertInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange InstanceTemplatesConnection::ListInstanceTemplates( google::cloud::cpp::compute::instance_templates::v1:: diff --git a/google/cloud/compute/instance_templates/v1/instance_templates_connection.h b/google/cloud/compute/instance_templates/v1/instance_templates_connection.h index 47eb064b4c1e9..ce07898af972d 100644 --- a/google/cloud/compute/instance_templates/v1/instance_templates_connection.h +++ b/google/cloud/compute/instance_templates/v1/instance_templates_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/instance_templates/v1/instance_templates_connection_idempotency_policy.h" #include "google/cloud/compute/instance_templates/v1/internal/instance_templates_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -197,6 +199,17 @@ class InstanceTemplatesConnection { DeleteInstanceTemplate(google::cloud::cpp::compute::instance_templates::v1:: DeleteInstanceTemplateRequest const& request); + virtual StatusOr + DeleteInstanceTemplate(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_templates::v1:: + DeleteInstanceTemplateRequest const& request); + + virtual future> + DeleteInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetInstanceTemplate(google::cloud::cpp::compute::instance_templates::v1:: GetInstanceTemplateRequest const& request); @@ -209,6 +222,17 @@ class InstanceTemplatesConnection { InsertInstanceTemplate(google::cloud::cpp::compute::instance_templates::v1:: InsertInstanceTemplateRequest const& request); + virtual StatusOr + InsertInstanceTemplate(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_templates::v1:: + InsertInstanceTemplateRequest const& request); + + virtual future> + InsertInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListInstanceTemplates(google::cloud::cpp::compute::instance_templates::v1:: ListInstanceTemplatesRequest request); diff --git a/google/cloud/compute/instance_templates/v1/internal/instance_templates_rest_connection_impl.cc b/google/cloud/compute/instance_templates/v1/internal/instance_templates_rest_connection_impl.cc index 35b539687fb80..1cf7515da2062 100644 --- a/google/cloud/compute/instance_templates/v1/internal/instance_templates_rest_connection_impl.cc +++ b/google/cloud/compute/instance_templates/v1/internal/instance_templates_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -145,6 +146,77 @@ InstanceTemplatesRestConnectionImpl::DeleteInstanceTemplate( }); } +StatusOr +InstanceTemplatesRestConnectionImpl::DeleteInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_templates::v1:: + DeleteInstanceTemplateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstanceTemplate(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_templates::v1:: + DeleteInstanceTemplateRequest const& request) { + return stub_->DeleteInstanceTemplate(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceTemplatesRestConnectionImpl::DeleteInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr InstanceTemplatesRestConnectionImpl::GetInstanceTemplate( google::cloud::cpp::compute::instance_templates::v1:: @@ -235,6 +307,77 @@ InstanceTemplatesRestConnectionImpl::InsertInstanceTemplate( }); } +StatusOr +InstanceTemplatesRestConnectionImpl::InsertInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_templates::v1:: + InsertInstanceTemplateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertInstanceTemplate(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instance_templates::v1:: + InsertInstanceTemplateRequest const& request) { + return stub_->InsertInstanceTemplate(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceTemplatesRestConnectionImpl::InsertInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange InstanceTemplatesRestConnectionImpl::ListInstanceTemplates( google::cloud::cpp::compute::instance_templates::v1:: diff --git a/google/cloud/compute/instance_templates/v1/internal/instance_templates_rest_connection_impl.h b/google/cloud/compute/instance_templates/v1/internal/instance_templates_rest_connection_impl.h index 35089af396a6f..10497a6e127ec 100644 --- a/google/cloud/compute/instance_templates/v1/internal/instance_templates_rest_connection_impl.h +++ b/google/cloud/compute/instance_templates/v1/internal/instance_templates_rest_connection_impl.h @@ -64,6 +64,16 @@ class InstanceTemplatesRestConnectionImpl google::cloud::cpp::compute::instance_templates::v1:: DeleteInstanceTemplateRequest const& request) override; + StatusOr DeleteInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_templates::v1:: + DeleteInstanceTemplateRequest const& request) override; + + future> + DeleteInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInstanceTemplate(google::cloud::cpp::compute::instance_templates::v1:: GetInstanceTemplateRequest const& request) override; @@ -77,6 +87,16 @@ class InstanceTemplatesRestConnectionImpl google::cloud::cpp::compute::instance_templates::v1:: InsertInstanceTemplateRequest const& request) override; + StatusOr InsertInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_templates::v1:: + InsertInstanceTemplateRequest const& request) override; + + future> + InsertInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListInstanceTemplates(google::cloud::cpp::compute::instance_templates::v1:: ListInstanceTemplatesRequest request) override; diff --git a/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.cc b/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.cc index d150e1b5efbf4..7544760046e7f 100644 --- a/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.cc +++ b/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.cc @@ -62,6 +62,33 @@ InstanceTemplatesTracingConnection::DeleteInstanceTemplate( child_->DeleteInstanceTemplate(request)); } +StatusOr +InstanceTemplatesTracingConnection::DeleteInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_templates::v1:: + DeleteInstanceTemplateRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_templates_v1::InstanceTemplatesConnection::" + "DeleteInstanceTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteInstanceTemplate( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceTemplatesTracingConnection::DeleteInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_templates_v1::InstanceTemplatesConnection::" + "DeleteInstanceTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteInstanceTemplate( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr InstanceTemplatesTracingConnection::GetInstanceTemplate( google::cloud::cpp::compute::instance_templates::v1:: @@ -96,6 +123,33 @@ InstanceTemplatesTracingConnection::InsertInstanceTemplate( child_->InsertInstanceTemplate(request)); } +StatusOr +InstanceTemplatesTracingConnection::InsertInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_templates::v1:: + InsertInstanceTemplateRequest const& request) { + auto span = internal::MakeSpan( + "compute_instance_templates_v1::InstanceTemplatesConnection::" + "InsertInstanceTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertInstanceTemplate( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceTemplatesTracingConnection::InsertInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instance_templates_v1::InstanceTemplatesConnection::" + "InsertInstanceTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertInstanceTemplate( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange InstanceTemplatesTracingConnection::ListInstanceTemplates( google::cloud::cpp::compute::instance_templates::v1:: diff --git a/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.h b/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.h index 36a5308c75e95..b1f50f262299a 100644 --- a/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.h +++ b/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.h @@ -54,6 +54,16 @@ class InstanceTemplatesTracingConnection google::cloud::cpp::compute::instance_templates::v1:: DeleteInstanceTemplateRequest const& request) override; + StatusOr DeleteInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_templates::v1:: + DeleteInstanceTemplateRequest const& request) override; + + future> + DeleteInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInstanceTemplate(google::cloud::cpp::compute::instance_templates::v1:: GetInstanceTemplateRequest const& request) override; @@ -67,6 +77,16 @@ class InstanceTemplatesTracingConnection google::cloud::cpp::compute::instance_templates::v1:: InsertInstanceTemplateRequest const& request) override; + StatusOr InsertInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_templates::v1:: + InsertInstanceTemplateRequest const& request) override; + + future> + InsertInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListInstanceTemplates(google::cloud::cpp::compute::instance_templates::v1:: ListInstanceTemplatesRequest request) override; diff --git a/google/cloud/compute/instance_templates/v1/mocks/mock_instance_templates_connection.h b/google/cloud/compute/instance_templates/v1/mocks/mock_instance_templates_connection.h index 986a887837729..a4bdec791fd3e 100644 --- a/google/cloud/compute/instance_templates/v1/mocks/mock_instance_templates_connection.h +++ b/google/cloud/compute/instance_templates/v1/mocks/mock_instance_templates_connection.h @@ -61,6 +61,19 @@ class MockInstanceTemplatesConnection DeleteInstanceTemplateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteInstanceTemplate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_templates::v1:: + DeleteInstanceTemplateRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInstanceTemplate, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetInstanceTemplate, (google::cloud::cpp::compute::instance_templates::v1:: @@ -78,6 +91,19 @@ class MockInstanceTemplatesConnection InsertInstanceTemplateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertInstanceTemplate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instance_templates::v1:: + InsertInstanceTemplateRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertInstanceTemplate, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListInstanceTemplates, (google::cloud::cpp::compute::instance_templates::v1:: diff --git a/google/cloud/compute/instances/v1/instances_connection.cc b/google/cloud/compute/instances/v1/instances_connection.cc index 27dae16321b02..f1cc34e042d86 100644 --- a/google/cloud/compute/instances/v1/instances_connection.cc +++ b/google/cloud/compute/instances/v1/instances_connection.cc @@ -44,6 +44,23 @@ InstancesConnection::AddAccessConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::AddAccessConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::AddAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::AddResourcePolicies( google::cloud::cpp::compute::instances::v1:: @@ -53,6 +70,24 @@ InstancesConnection::AddResourcePolicies( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::AddResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + AddResourcePoliciesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange> InstancesConnection::AggregatedListInstances( @@ -71,6 +106,23 @@ InstancesConnection::AttachDisk( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::AttachDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::AttachDiskRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::AttachDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::BulkInsert( google::cloud::cpp::compute::instances::v1::BulkInsertRequest const&) { @@ -79,9 +131,43 @@ InstancesConnection::BulkInsert( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::BulkInsertRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +InstancesConnection::BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::DeleteInstance( + google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr InstancesConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::DeleteInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -96,9 +182,44 @@ InstancesConnection::DeleteAccessConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::DeleteAccessConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + DeleteAccessConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +InstancesConnection::DeleteAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::DetachDisk( + google::cloud::cpp::compute::instances::v1::DetachDiskRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr InstancesConnection::DetachDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instances::v1::DetachDiskRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::DetachDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -159,6 +280,23 @@ InstancesConnection::InsertInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::InsertInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::InsertInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange InstancesConnection::ListInstances( google::cloud::cpp::compute::instances::v1:: @@ -184,6 +322,24 @@ InstancesConnection::PerformMaintenance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::PerformMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + PerformMaintenanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::PerformMaintenance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::RemoveResourcePolicies( google::cloud::cpp::compute::instances::v1:: @@ -193,6 +349,24 @@ InstancesConnection::RemoveResourcePolicies( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::RemoveResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + RemoveResourcePoliciesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::Reset( google::cloud::cpp::compute::instances::v1::ResetRequest const&) { @@ -201,9 +375,40 @@ InstancesConnection::Reset( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr InstancesConnection::Reset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::ResetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +InstancesConnection::Reset(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::Resume( + google::cloud::cpp::compute::instances::v1::ResumeRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr InstancesConnection::Resume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instances::v1::ResumeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::Resume(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -224,6 +429,24 @@ InstancesConnection::SetDeletionProtection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::SetDeletionProtection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetDeletionProtectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::SetDeletionProtection( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::SetDiskAutoDelete( google::cloud::cpp::compute::instances::v1:: @@ -233,6 +456,24 @@ InstancesConnection::SetDiskAutoDelete( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::SetDiskAutoDelete( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetDiskAutoDeleteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::SetDiskAutoDelete( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr InstancesConnection::SetIamPolicy( google::cloud::cpp::compute::instances::v1::SetIamPolicyRequest const&) { @@ -247,6 +488,23 @@ InstancesConnection::SetLabels( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::SetMachineResources( google::cloud::cpp::compute::instances::v1:: @@ -256,9 +514,44 @@ InstancesConnection::SetMachineResources( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::SetMachineResources( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetMachineResourcesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +InstancesConnection::SetMachineResources( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::SetMachineType( + google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr InstancesConnection::SetMachineType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::SetMachineType( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -272,6 +565,23 @@ InstancesConnection::SetMetadata( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::SetMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetMetadataRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::SetMetadata( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::SetMinCpuPlatform( google::cloud::cpp::compute::instances::v1:: @@ -281,6 +591,24 @@ InstancesConnection::SetMinCpuPlatform( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::SetMinCpuPlatform( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetMinCpuPlatformRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::SetMinCpuPlatform( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::SetName( google::cloud::cpp::compute::instances::v1::SetNameRequest const&) { @@ -289,6 +617,23 @@ InstancesConnection::SetName( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::SetName( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetNameRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::SetName( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::SetScheduling( google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const&) { @@ -297,6 +642,23 @@ InstancesConnection::SetScheduling( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::SetScheduling( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::SetScheduling( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::SetSecurityPolicy( google::cloud::cpp::compute::instances::v1:: @@ -306,6 +668,24 @@ InstancesConnection::SetSecurityPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetSecurityPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::SetServiceAccount( google::cloud::cpp::compute::instances::v1:: @@ -315,6 +695,24 @@ InstancesConnection::SetServiceAccount( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::SetServiceAccount( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetServiceAccountRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::SetServiceAccount( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::SetShieldedInstanceIntegrityPolicy( google::cloud::cpp::compute::instances::v1:: @@ -324,6 +722,24 @@ InstancesConnection::SetShieldedInstanceIntegrityPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::SetShieldedInstanceIntegrityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetShieldedInstanceIntegrityPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::SetShieldedInstanceIntegrityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::SetTags( google::cloud::cpp::compute::instances::v1::SetTagsRequest const&) { @@ -332,6 +748,23 @@ InstancesConnection::SetTags( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::SetTags( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetTagsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::SetTags( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::SimulateMaintenanceEvent( google::cloud::cpp::compute::instances::v1:: @@ -341,6 +774,24 @@ InstancesConnection::SimulateMaintenanceEvent( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SimulateMaintenanceEventRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::Start( google::cloud::cpp::compute::instances::v1::StartRequest const&) { @@ -349,6 +800,21 @@ InstancesConnection::Start( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr InstancesConnection::Start( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::StartRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::Start(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::StartWithEncryptionKey( google::cloud::cpp::compute::instances::v1:: @@ -358,6 +824,24 @@ InstancesConnection::StartWithEncryptionKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::StartWithEncryptionKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + StartWithEncryptionKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::StartWithEncryptionKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::Stop( google::cloud::cpp::compute::instances::v1::StopRequest const&) { @@ -366,6 +850,21 @@ InstancesConnection::Stop( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr InstancesConnection::Stop( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::StopRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::Stop(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::Suspend( google::cloud::cpp::compute::instances::v1::SuspendRequest const&) { @@ -374,6 +873,23 @@ InstancesConnection::Suspend( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::Suspend( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SuspendRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::Suspend( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr InstancesConnection::TestIamPermissions( google::cloud::cpp::compute::instances::v1:: @@ -389,10 +905,45 @@ InstancesConnection::UpdateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +InstancesConnection::UpdateInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::UpdateAccessConfig( + google::cloud::cpp::compute::instances::v1:: + UpdateAccessConfigRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr InstancesConnection::UpdateAccessConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateAccessConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::UpdateAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -407,6 +958,24 @@ InstancesConnection::UpdateDisplayDevice( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::UpdateDisplayDevice( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateDisplayDeviceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::UpdateDisplayDevice( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::UpdateNetworkInterface( google::cloud::cpp::compute::instances::v1:: @@ -416,6 +985,24 @@ InstancesConnection::UpdateNetworkInterface( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::UpdateNetworkInterface( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateNetworkInterfaceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::UpdateNetworkInterface( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstancesConnection::UpdateShieldedInstanceConfig( google::cloud::cpp::compute::instances::v1:: @@ -425,6 +1012,24 @@ InstancesConnection::UpdateShieldedInstanceConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstancesConnection::UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateShieldedInstanceConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstancesConnection::UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_instances_v1 } // namespace cloud diff --git a/google/cloud/compute/instances/v1/instances_connection.h b/google/cloud/compute/instances/v1/instances_connection.h index 2e571b3bbce4f..b33eb6148c6aa 100644 --- a/google/cloud/compute/instances/v1/instances_connection.h +++ b/google/cloud/compute/instances/v1/instances_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/instances/v1/instances_connection_idempotency_policy.h" #include "google/cloud/compute/instances/v1/internal/instances_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -188,10 +190,29 @@ class InstancesConnection { google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const& request); + virtual StatusOr AddAccessConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const& + request); + + virtual future> + AddAccessConfig(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> AddResourcePolicies(google::cloud::cpp::compute::instances::v1:: AddResourcePoliciesRequest const& request); + virtual StatusOr + AddResourcePolicies(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + AddResourcePoliciesRequest const& request); + + virtual future> + AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange> AggregatedListInstances( @@ -203,25 +224,71 @@ class InstancesConnection { google::cloud::cpp::compute::instances::v1::AttachDiskRequest const& request); + virtual StatusOr AttachDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::AttachDiskRequest const& + request); + + virtual future> + AttachDisk(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> BulkInsert( google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& request); + virtual StatusOr BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& + request); + + virtual future> + BulkInsert(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteInstance( google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& request); + virtual StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& + request); + + virtual future> + DeleteInstance(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteAccessConfig(google::cloud::cpp::compute::instances::v1:: DeleteAccessConfigRequest const& request); + virtual StatusOr + DeleteAccessConfig(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + DeleteAccessConfigRequest const& request); + + virtual future> + DeleteAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DetachDisk( google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& request); + virtual StatusOr DetachDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& + request); + + virtual future> + DetachDisk(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetInstance( google::cloud::cpp::compute::instances::v1::GetInstanceRequest const& request); @@ -257,6 +324,15 @@ class InstancesConnection { google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& request); + virtual StatusOr InsertInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& + request); + + virtual future> + InsertInstance(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListInstances( google::cloud::cpp::compute::instances::v1::ListInstancesRequest request); @@ -267,16 +343,53 @@ class InstancesConnection { PerformMaintenance(google::cloud::cpp::compute::instances::v1:: PerformMaintenanceRequest const& request); + virtual StatusOr + PerformMaintenance(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + PerformMaintenanceRequest const& request); + + virtual future> + PerformMaintenance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> RemoveResourcePolicies(google::cloud::cpp::compute::instances::v1:: RemoveResourcePoliciesRequest const& request); + virtual StatusOr + RemoveResourcePolicies(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + RemoveResourcePoliciesRequest const& request); + + virtual future> + RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> Reset( google::cloud::cpp::compute::instances::v1::ResetRequest const& request); + virtual StatusOr Reset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::ResetRequest const& request); + + virtual future> Reset( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> Resume( google::cloud::cpp::compute::instances::v1::ResumeRequest const& request); + virtual StatusOr Resume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::ResumeRequest const& request); + + virtual future> Resume( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual Status SendDiagnosticInterrupt( google::cloud::cpp::compute::instances::v1:: SendDiagnosticInterruptRequest const& request); @@ -285,10 +398,31 @@ class InstancesConnection { SetDeletionProtection(google::cloud::cpp::compute::instances::v1:: SetDeletionProtectionRequest const& request); + virtual StatusOr + SetDeletionProtection(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetDeletionProtectionRequest const& request); + + virtual future> + SetDeletionProtection( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetDiskAutoDelete(google::cloud::cpp::compute::instances::v1:: SetDiskAutoDeleteRequest const& request); + virtual StatusOr + SetDiskAutoDelete(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetDiskAutoDeleteRequest const& request); + + virtual future> + SetDiskAutoDelete( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr SetIamPolicy( google::cloud::cpp::compute::instances::v1::SetIamPolicyRequest const& request); @@ -297,68 +431,220 @@ class InstancesConnection { SetLabels(google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& request); + virtual StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& + request); + + virtual future> + SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetMachineResources(google::cloud::cpp::compute::instances::v1:: SetMachineResourcesRequest const& request); + virtual StatusOr + SetMachineResources(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetMachineResourcesRequest const& request); + + virtual future> + SetMachineResources( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetMachineType( google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& request); + virtual StatusOr SetMachineType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& + request); + + virtual future> + SetMachineType(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetMetadata( google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& request); + virtual StatusOr SetMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& + request); + + virtual future> + SetMetadata(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetMinCpuPlatform(google::cloud::cpp::compute::instances::v1:: SetMinCpuPlatformRequest const& request); + virtual StatusOr + SetMinCpuPlatform(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetMinCpuPlatformRequest const& request); + + virtual future> + SetMinCpuPlatform( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetName( google::cloud::cpp::compute::instances::v1::SetNameRequest const& request); + virtual StatusOr SetName( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetNameRequest const& + request); + + virtual future> SetName( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetScheduling( google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& request); + virtual StatusOr SetScheduling( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& + request); + + virtual future> + SetScheduling(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetSecurityPolicy(google::cloud::cpp::compute::instances::v1:: SetSecurityPolicyRequest const& request); + virtual StatusOr + SetSecurityPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetSecurityPolicyRequest const& request); + + virtual future> + SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetServiceAccount(google::cloud::cpp::compute::instances::v1:: SetServiceAccountRequest const& request); + virtual StatusOr + SetServiceAccount(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetServiceAccountRequest const& request); + virtual future> + SetServiceAccount( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + + virtual future> + SetShieldedInstanceIntegrityPolicy( + google::cloud::cpp::compute::instances::v1:: + SetShieldedInstanceIntegrityPolicyRequest const& request); + + virtual StatusOr SetShieldedInstanceIntegrityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetShieldedInstanceIntegrityPolicyRequest const& request); + virtual future> + SetShieldedInstanceIntegrityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetTags( google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request); + virtual StatusOr SetTags( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetTagsRequest const& + request); + + virtual future> SetTags( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SimulateMaintenanceEvent(google::cloud::cpp::compute::instances::v1:: SimulateMaintenanceEventRequest const& request); + virtual StatusOr + SimulateMaintenanceEvent(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SimulateMaintenanceEventRequest const& request); + + virtual future> + SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> Start( google::cloud::cpp::compute::instances::v1::StartRequest const& request); + virtual StatusOr Start( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::StartRequest const& request); + + virtual future> Start( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> StartWithEncryptionKey(google::cloud::cpp::compute::instances::v1:: StartWithEncryptionKeyRequest const& request); + virtual StatusOr + StartWithEncryptionKey(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + StartWithEncryptionKeyRequest const& request); + + virtual future> + StartWithEncryptionKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> Stop( google::cloud::cpp::compute::instances::v1::StopRequest const& request); + virtual StatusOr Stop( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::StopRequest const& request); + + virtual future> Stop( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> Suspend( google::cloud::cpp::compute::instances::v1::SuspendRequest const& request); + virtual StatusOr Suspend( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SuspendRequest const& + request); + + virtual future> Suspend( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr TestIamPermissions(google::cloud::cpp::compute::instances::v1:: TestIamPermissionsRequest const& request); @@ -368,22 +654,73 @@ class InstancesConnection { google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& request); + virtual StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& + request); + + virtual future> + UpdateInstance(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> UpdateAccessConfig(google::cloud::cpp::compute::instances::v1:: UpdateAccessConfigRequest const& request); + virtual StatusOr + UpdateAccessConfig(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateAccessConfigRequest const& request); + + virtual future> + UpdateAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> UpdateDisplayDevice(google::cloud::cpp::compute::instances::v1:: UpdateDisplayDeviceRequest const& request); + virtual StatusOr + UpdateDisplayDevice(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateDisplayDeviceRequest const& request); + + virtual future> + UpdateDisplayDevice( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> UpdateNetworkInterface(google::cloud::cpp::compute::instances::v1:: UpdateNetworkInterfaceRequest const& request); + virtual StatusOr + UpdateNetworkInterface(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateNetworkInterfaceRequest const& request); + + virtual future> + UpdateNetworkInterface( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> UpdateShieldedInstanceConfig( google::cloud::cpp::compute::instances::v1:: UpdateShieldedInstanceConfigRequest const& request); + + virtual StatusOr + UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateShieldedInstanceConfigRequest const& request); + + virtual future> + UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/instances/v1/internal/instances_rest_connection_impl.cc b/google/cloud/compute/instances/v1/internal/instances_rest_connection_impl.cc index 38ac218150611..467d3f8883deb 100644 --- a/google/cloud/compute/instances/v1/internal/instances_rest_connection_impl.cc +++ b/google/cloud/compute/instances/v1/internal/instances_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -102,6 +103,79 @@ InstancesRestConnectionImpl::AddAccessConfig( }); } +StatusOr +InstancesRestConnectionImpl::AddAccessConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddAccessConfig(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + AddAccessConfigRequest const& request) { + return stub_->AddAccessConfig(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::AddAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> InstancesRestConnectionImpl::AddResourcePolicies( google::cloud::cpp::compute::instances::v1:: @@ -162,6 +236,79 @@ InstancesRestConnectionImpl::AddResourcePolicies( }); } +StatusOr +InstancesRestConnectionImpl::AddResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + AddResourcePoliciesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddResourcePolicies(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + AddResourcePoliciesRequest const& request) { + return stub_->AddResourcePolicies(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StreamRange> InstancesRestConnectionImpl::AggregatedListInstances( @@ -263,6 +410,80 @@ InstancesRestConnectionImpl::AttachDisk( }); } +StatusOr +InstancesRestConnectionImpl::AttachDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::AttachDiskRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AttachDisk(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1::AttachDiskRequest const& + request) { + return stub_->AttachDisk(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::AttachDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> InstancesRestConnectionImpl::BulkInsert( google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& @@ -324,25 +545,35 @@ InstancesRestConnectionImpl::BulkInsert( }); } -future> -InstancesRestConnectionImpl::DeleteInstance( - google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& +StatusOr +InstancesRestConnectionImpl::BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BulkInsert(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& + request) { + return stub_->BulkInsert(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_](CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1:: - DeleteInstanceRequest const& request) { - return stub->AsyncDeleteInstance(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -361,32 +592,36 @@ InstancesRestConnectionImpl::DeleteInstance( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->DeleteInstance(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } future> -InstancesRestConnectionImpl::DeleteAccessConfig( - google::cloud::cpp::compute::instances::v1::DeleteAccessConfigRequest const& +InstancesRestConnectionImpl::DeleteInstance( + google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< @@ -399,9 +634,9 @@ InstancesRestConnectionImpl::DeleteAccessConfig( std::unique_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::cpp::compute::instances::v1:: - DeleteAccessConfigRequest const& request) { - return stub->AsyncDeleteAccessConfig(cq, std::move(context), - std::move(options), request); + DeleteInstanceRequest const& request) { + return stub->AsyncDeleteInstance(cq, std::move(context), + std::move(options), request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -422,7 +657,7 @@ InstancesRestConnectionImpl::DeleteAccessConfig( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->DeleteAccessConfig(request), + idempotency_policy(*current)->DeleteInstance(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; @@ -444,26 +679,34 @@ InstancesRestConnectionImpl::DeleteAccessConfig( }); } -future> -InstancesRestConnectionImpl::DetachDisk( - google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& +StatusOr +InstancesRestConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstance(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + DeleteInstanceRequest const& request) { + return stub_->DeleteInstance(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_]( - CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& - request) { - return stub->AsyncDetachDisk(cq, std::move(context), std::move(options), - request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -482,32 +725,304 @@ InstancesRestConnectionImpl::DetachDisk( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->DetachDisk(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } -StatusOr -InstancesRestConnectionImpl::GetInstance( - google::cloud::cpp::compute::instances::v1::GetInstanceRequest const& +future> +InstancesRestConnectionImpl::DeleteAccessConfig( + google::cloud::cpp::compute::instances::v1::DeleteAccessConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1:: + DeleteAccessConfigRequest const& request) { + return stub->AsyncDeleteAccessConfig(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAccessConfig(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstancesRestConnectionImpl::DeleteAccessConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::DeleteAccessConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAccessConfig(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + DeleteAccessConfigRequest const& request) { + return stub_->DeleteAccessConfig(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::DeleteAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +future> +InstancesRestConnectionImpl::DetachDisk( + google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& + request) { + return stub->AsyncDetachDisk(cq, std::move(context), std::move(options), + request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DetachDisk(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstancesRestConnectionImpl::DetachDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DetachDisk(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& + request) { + return stub_->DetachDisk(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::DetachDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +StatusOr +InstancesRestConnectionImpl::GetInstance( + google::cloud::cpp::compute::instances::v1::GetInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -585,45 +1100,1876 @@ InstancesRestConnectionImpl::GetScreenshot( GetScreenshotRequest const& request) { return stub_->GetScreenshot(rest_context, options, request); }, - *current, request, __func__); -} + *current, request, __func__); +} + +StatusOr +InstancesRestConnectionImpl::GetSerialPortOutput( + google::cloud::cpp::compute::instances::v1:: + GetSerialPortOutputRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->GetSerialPortOutput(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + GetSerialPortOutputRequest const& request) { + return stub_->GetSerialPortOutput(rest_context, options, request); + }, + *current, request, __func__); +} + +StatusOr +InstancesRestConnectionImpl::GetShieldedInstanceIdentity( + google::cloud::cpp::compute::instances::v1:: + GetShieldedInstanceIdentityRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->GetShieldedInstanceIdentity(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + GetShieldedInstanceIdentityRequest const& request) { + return stub_->GetShieldedInstanceIdentity(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::InsertInstance( + google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1:: + InsertInstanceRequest const& request) { + return stub->AsyncInsertInstance(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertInstance(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstancesRestConnectionImpl::InsertInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertInstance(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + InsertInstanceRequest const& request) { + return stub_->InsertInstance(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::InsertInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +StreamRange +InstancesRestConnectionImpl::ListInstances( + google::cloud::cpp::compute::instances::v1::ListInstancesRequest request) { + request.clear_page_token(); + auto current = google::cloud::internal::SaveCurrentOptions(); + auto idempotency = idempotency_policy(*current)->ListInstances(request); + char const* function_name = __func__; + return google::cloud::internal::MakePaginationRange< + StreamRange>( + current, std::move(request), + [idempotency, function_name, stub = stub_, + retry = std::shared_ptr( + retry_policy(*current)), + backoff = std::shared_ptr(backoff_policy(*current))]( + Options const& options, google::cloud::cpp::compute::instances::v1:: + ListInstancesRequest const& r) { + return google::cloud::rest_internal::RestRetryLoop( + retry->clone(), backoff->clone(), idempotency, + [stub](rest_internal::RestContext& rest_context, + Options const& options, + google::cloud::cpp::compute::instances::v1:: + ListInstancesRequest const& request) { + return stub->ListInstances(rest_context, options, request); + }, + options, r, function_name); + }, + [](google::cloud::cpp::compute::v1::InstanceList r) { + std::vector result( + r.items().size()); + auto& messages = *r.mutable_items(); + std::move(messages.begin(), messages.end(), result.begin()); + return result; + }); +} + +StreamRange +InstancesRestConnectionImpl::ListReferrers( + google::cloud::cpp::compute::instances::v1::ListReferrersRequest request) { + request.clear_page_token(); + auto current = google::cloud::internal::SaveCurrentOptions(); + auto idempotency = idempotency_policy(*current)->ListReferrers(request); + char const* function_name = __func__; + return google::cloud::internal::MakePaginationRange< + StreamRange>( + current, std::move(request), + [idempotency, function_name, stub = stub_, + retry = std::shared_ptr( + retry_policy(*current)), + backoff = std::shared_ptr(backoff_policy(*current))]( + Options const& options, google::cloud::cpp::compute::instances::v1:: + ListReferrersRequest const& r) { + return google::cloud::rest_internal::RestRetryLoop( + retry->clone(), backoff->clone(), idempotency, + [stub](rest_internal::RestContext& rest_context, + Options const& options, + google::cloud::cpp::compute::instances::v1:: + ListReferrersRequest const& request) { + return stub->ListReferrers(rest_context, options, request); + }, + options, r, function_name); + }, + [](google::cloud::cpp::compute::v1::InstanceListReferrers r) { + std::vector result( + r.items().size()); + auto& messages = *r.mutable_items(); + std::move(messages.begin(), messages.end(), result.begin()); + return result; + }); +} + +future> +InstancesRestConnectionImpl::PerformMaintenance( + google::cloud::cpp::compute::instances::v1::PerformMaintenanceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1:: + PerformMaintenanceRequest const& request) { + return stub->AsyncPerformMaintenance(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PerformMaintenance(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstancesRestConnectionImpl::PerformMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::PerformMaintenanceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PerformMaintenance(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + PerformMaintenanceRequest const& request) { + return stub_->PerformMaintenance(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::PerformMaintenance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +future> +InstancesRestConnectionImpl::RemoveResourcePolicies( + google::cloud::cpp::compute::instances::v1:: + RemoveResourcePoliciesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1:: + RemoveResourcePoliciesRequest const& request) { + return stub->AsyncRemoveResourcePolicies(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveResourcePolicies(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstancesRestConnectionImpl::RemoveResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + RemoveResourcePoliciesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveResourcePolicies(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + RemoveResourcePoliciesRequest const& request) { + return stub_->RemoveResourcePolicies(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +future> +InstancesRestConnectionImpl::Reset( + google::cloud::cpp::compute::instances::v1::ResetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1::ResetRequest const& + request) { + return stub->AsyncReset(cq, std::move(context), std::move(options), + request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Reset(request), polling_policy(*current), + __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstancesRestConnectionImpl::Reset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::ResetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Reset(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1::ResetRequest const& + request) { + return stub_->Reset(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::Reset( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +future> +InstancesRestConnectionImpl::Resume( + google::cloud::cpp::compute::instances::v1::ResumeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1::ResumeRequest const& + request) { + return stub->AsyncResume(cq, std::move(context), std::move(options), + request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Resume(request), polling_policy(*current), + __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstancesRestConnectionImpl::Resume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::ResumeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Resume(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1::ResumeRequest const& + request) { + return stub_->Resume(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::Resume( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +Status InstancesRestConnectionImpl::SendDiagnosticInterrupt( + google::cloud::cpp::compute::instances::v1:: + SendDiagnosticInterruptRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SendDiagnosticInterrupt(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + SendDiagnosticInterruptRequest const& request) { + return stub_->SendDiagnosticInterrupt(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::SetDeletionProtection( + google::cloud::cpp::compute::instances::v1:: + SetDeletionProtectionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1:: + SetDeletionProtectionRequest const& request) { + return stub->AsyncSetDeletionProtection(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetDeletionProtection(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstancesRestConnectionImpl::SetDeletionProtection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetDeletionProtectionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetDeletionProtection(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + SetDeletionProtectionRequest const& request) { + return stub_->SetDeletionProtection(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::SetDeletionProtection( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +future> +InstancesRestConnectionImpl::SetDiskAutoDelete( + google::cloud::cpp::compute::instances::v1::SetDiskAutoDeleteRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1:: + SetDiskAutoDeleteRequest const& request) { + return stub->AsyncSetDiskAutoDelete(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetDiskAutoDelete(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstancesRestConnectionImpl::SetDiskAutoDelete( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetDiskAutoDeleteRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetDiskAutoDelete(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + SetDiskAutoDeleteRequest const& request) { + return stub_->SetDiskAutoDelete(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::SetDiskAutoDelete( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +StatusOr +InstancesRestConnectionImpl::SetIamPolicy( + google::cloud::cpp::compute::instances::v1::SetIamPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetIamPolicy(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1::SetIamPolicyRequest const& + request) { + return stub_->SetIamPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::SetLabels( + google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& + request) { + return stub->AsyncSetLabels(cq, std::move(context), std::move(options), + request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstancesRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& + request) { + return stub_->SetLabels(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +future> +InstancesRestConnectionImpl::SetMachineResources( + google::cloud::cpp::compute::instances::v1:: + SetMachineResourcesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1:: + SetMachineResourcesRequest const& request) { + return stub->AsyncSetMachineResources(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetMachineResources(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstancesRestConnectionImpl::SetMachineResources( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetMachineResourcesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetMachineResources(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + SetMachineResourcesRequest const& request) { + return stub_->SetMachineResources(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::SetMachineResources( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +future> +InstancesRestConnectionImpl::SetMachineType( + google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1:: + SetMachineTypeRequest const& request) { + return stub->AsyncSetMachineType(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetMachineType(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstancesRestConnectionImpl::SetMachineType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetMachineType(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + SetMachineTypeRequest const& request) { + return stub_->SetMachineType(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::SetMachineType( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +future> +InstancesRestConnectionImpl::SetMetadata( + google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& + request) { + return stub->AsyncSetMetadata(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetMetadata(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstancesRestConnectionImpl::SetMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetMetadata(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& + request) { + return stub_->SetMetadata(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::SetMetadata( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +future> +InstancesRestConnectionImpl::SetMinCpuPlatform( + google::cloud::cpp::compute::instances::v1::SetMinCpuPlatformRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1:: + SetMinCpuPlatformRequest const& request) { + return stub->AsyncSetMinCpuPlatform(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetMinCpuPlatform(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstancesRestConnectionImpl::SetMinCpuPlatform( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetMinCpuPlatformRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetMinCpuPlatform(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + SetMinCpuPlatformRequest const& request) { + return stub_->SetMinCpuPlatform(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::SetMinCpuPlatform( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +future> +InstancesRestConnectionImpl::SetName( + google::cloud::cpp::compute::instances::v1::SetNameRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1::SetNameRequest const& + request) { + return stub->AsyncSetName(cq, std::move(context), std::move(options), + request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetName(request), polling_policy(*current), + __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request]( + std::string const& op, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_zone(request.zone()); + r.set_operation(op); + }); +} + +StatusOr +InstancesRestConnectionImpl::SetName( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetNameRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetName(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1::SetNameRequest const& + request) { + return stub_->SetName(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::SetName( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); -StatusOr -InstancesRestConnectionImpl::GetSerialPortOutput( - google::cloud::cpp::compute::instances::v1:: - GetSerialPortOutputRequest const& request) { - auto current = google::cloud::internal::SaveCurrentOptions(); - return google::cloud::rest_internal::RestRetryLoop( - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->GetSerialPortOutput(request), - [this](rest_internal::RestContext& rest_context, Options const& options, - google::cloud::cpp::compute::instances::v1:: - GetSerialPortOutputRequest const& request) { - return stub_->GetSerialPortOutput(rest_context, options, request); - }, - *current, request, __func__); -} + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); -StatusOr -InstancesRestConnectionImpl::GetShieldedInstanceIdentity( - google::cloud::cpp::compute::instances::v1:: - GetShieldedInstanceIdentityRequest const& request) { - auto current = google::cloud::internal::SaveCurrentOptions(); - return google::cloud::rest_internal::RestRetryLoop( - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->GetShieldedInstanceIdentity(request), - [this](rest_internal::RestContext& rest_context, Options const& options, - google::cloud::cpp::compute::instances::v1:: - GetShieldedInstanceIdentityRequest const& request) { - return stub_->GetShieldedInstanceIdentity(rest_context, options, - request); - }, - *current, request, __func__); + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); } future> -InstancesRestConnectionImpl::InsertInstance( - google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& +InstancesRestConnectionImpl::SetScheduling( + google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< @@ -636,9 +2982,9 @@ InstancesRestConnectionImpl::InsertInstance( std::unique_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::cpp::compute::instances::v1:: - InsertInstanceRequest const& request) { - return stub->AsyncInsertInstance(cq, std::move(context), - std::move(options), request); + SetSchedulingRequest const& request) { + return stub->AsyncSetScheduling(cq, std::move(context), + std::move(options), request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -659,7 +3005,7 @@ InstancesRestConnectionImpl::InsertInstance( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->InsertInstance(request), + idempotency_policy(*current)->SetScheduling(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; @@ -681,79 +3027,82 @@ InstancesRestConnectionImpl::InsertInstance( }); } -StreamRange -InstancesRestConnectionImpl::ListInstances( - google::cloud::cpp::compute::instances::v1::ListInstancesRequest request) { - request.clear_page_token(); +StatusOr +InstancesRestConnectionImpl::SetScheduling( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& + request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto idempotency = idempotency_policy(*current)->ListInstances(request); - char const* function_name = __func__; - return google::cloud::internal::MakePaginationRange< - StreamRange>( - current, std::move(request), - [idempotency, function_name, stub = stub_, - retry = std::shared_ptr( - retry_policy(*current)), - backoff = std::shared_ptr(backoff_policy(*current))]( - Options const& options, google::cloud::cpp::compute::instances::v1:: - ListInstancesRequest const& r) { - return google::cloud::rest_internal::RestRetryLoop( - retry->clone(), backoff->clone(), idempotency, - [stub](rest_internal::RestContext& rest_context, - Options const& options, - google::cloud::cpp::compute::instances::v1:: - ListInstancesRequest const& request) { - return stub->ListInstances(rest_context, options, request); - }, - options, r, function_name); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetScheduling(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + SetSchedulingRequest const& request) { + return stub_->SetScheduling(rest_context, options, request); }, - [](google::cloud::cpp::compute::v1::InstanceList r) { - std::vector result( - r.items().size()); - auto& messages = *r.mutable_items(); - std::move(messages.begin(), messages.end(), result.begin()); - return result; - }); + *current, request, __func__); } -StreamRange -InstancesRestConnectionImpl::ListReferrers( - google::cloud::cpp::compute::instances::v1::ListReferrersRequest request) { - request.clear_page_token(); +future> +InstancesRestConnectionImpl::SetScheduling( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto idempotency = idempotency_policy(*current)->ListReferrers(request); - char const* function_name = __func__; - return google::cloud::internal::MakePaginationRange< - StreamRange>( - current, std::move(request), - [idempotency, function_name, stub = stub_, - retry = std::shared_ptr( - retry_policy(*current)), - backoff = std::shared_ptr(backoff_policy(*current))]( - Options const& options, google::cloud::cpp::compute::instances::v1:: - ListReferrersRequest const& r) { - return google::cloud::rest_internal::RestRetryLoop( - retry->clone(), backoff->clone(), idempotency, - [stub](rest_internal::RestContext& rest_context, - Options const& options, - google::cloud::cpp::compute::instances::v1:: - ListReferrersRequest const& request) { - return stub->ListReferrers(rest_context, options, request); - }, - options, r, function_name); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); }, - [](google::cloud::cpp::compute::v1::InstanceListReferrers r) { - std::vector result( - r.items().size()); - auto& messages = *r.mutable_items(); - std::move(messages.begin(), messages.end(), result.begin()); - return result; + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } future> -InstancesRestConnectionImpl::PerformMaintenance( - google::cloud::cpp::compute::instances::v1::PerformMaintenanceRequest const& +InstancesRestConnectionImpl::SetSecurityPolicy( + google::cloud::cpp::compute::instances::v1::SetSecurityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< @@ -766,9 +3115,9 @@ InstancesRestConnectionImpl::PerformMaintenance( std::unique_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::cpp::compute::instances::v1:: - PerformMaintenanceRequest const& request) { - return stub->AsyncPerformMaintenance(cq, std::move(context), - std::move(options), request); + SetSecurityPolicyRequest const& request) { + return stub->AsyncSetSecurityPolicy(cq, std::move(context), + std::move(options), request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -789,7 +3138,7 @@ InstancesRestConnectionImpl::PerformMaintenance( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->PerformMaintenance(request), + idempotency_policy(*current)->SetSecurityPolicy(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; @@ -811,10 +3160,83 @@ InstancesRestConnectionImpl::PerformMaintenance( }); } +StatusOr +InstancesRestConnectionImpl::SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetSecurityPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetSecurityPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + SetSecurityPolicyRequest const& request) { + return stub_->SetSecurityPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + future> -InstancesRestConnectionImpl::RemoveResourcePolicies( - google::cloud::cpp::compute::instances::v1:: - RemoveResourcePoliciesRequest const& request) { +InstancesRestConnectionImpl::SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + +future> +InstancesRestConnectionImpl::SetServiceAccount( + google::cloud::cpp::compute::instances::v1::SetServiceAccountRequest const& + request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -826,9 +3248,9 @@ InstancesRestConnectionImpl::RemoveResourcePolicies( std::unique_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::cpp::compute::instances::v1:: - RemoveResourcePoliciesRequest const& request) { - return stub->AsyncRemoveResourcePolicies(cq, std::move(context), - std::move(options), request); + SetServiceAccountRequest const& request) { + return stub->AsyncSetServiceAccount(cq, std::move(context), + std::move(options), request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -849,7 +3271,7 @@ InstancesRestConnectionImpl::RemoveResourcePolicies( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->RemoveResourcePolicies(request), + idempotency_policy(*current)->SetServiceAccount(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; @@ -871,25 +3293,34 @@ InstancesRestConnectionImpl::RemoveResourcePolicies( }); } +StatusOr +InstancesRestConnectionImpl::SetServiceAccount( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetServiceAccountRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetServiceAccount(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + SetServiceAccountRequest const& request) { + return stub_->SetServiceAccount(rest_context, options, request); + }, + *current, request, __func__); +} + future> -InstancesRestConnectionImpl::Reset( - google::cloud::cpp::compute::instances::v1::ResetRequest const& request) { +InstancesRestConnectionImpl::SetServiceAccount( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< - google::cloud::cpp::compute::v1::Operation, + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, - google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, - google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_]( - CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1::ResetRequest const& - request) { - return stub->AsyncReset(cq, std::move(context), std::move(options), - request); - }, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -908,32 +3339,37 @@ InstancesRestConnectionImpl::Reset( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->Reset(request), polling_policy(*current), - __func__, + polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } future> -InstancesRestConnectionImpl::Resume( - google::cloud::cpp::compute::instances::v1::ResumeRequest const& request) { +InstancesRestConnectionImpl::SetShieldedInstanceIntegrityPolicy( + google::cloud::cpp::compute::instances::v1:: + SetShieldedInstanceIntegrityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -945,10 +3381,10 @@ InstancesRestConnectionImpl::Resume( CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1::ResumeRequest const& - request) { - return stub->AsyncResume(cq, std::move(context), std::move(options), - request); + google::cloud::cpp::compute::instances::v1:: + SetShieldedInstanceIntegrityPolicyRequest const& request) { + return stub->AsyncSetShieldedInstanceIntegrityPolicy( + cq, std::move(context), std::move(options), request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -969,8 +3405,8 @@ InstancesRestConnectionImpl::Resume( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->Resume(request), polling_policy(*current), - __func__, + idempotency_policy(*current)->SetShieldedInstanceIntegrityPolicy(request), + polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, @@ -991,40 +3427,35 @@ InstancesRestConnectionImpl::Resume( }); } -Status InstancesRestConnectionImpl::SendDiagnosticInterrupt( +StatusOr +InstancesRestConnectionImpl::SetShieldedInstanceIntegrityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instances::v1:: - SendDiagnosticInterruptRequest const& request) { + SetShieldedInstanceIntegrityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->SendDiagnosticInterrupt(request), + idempotency_policy(*current)->SetShieldedInstanceIntegrityPolicy(request), [this](rest_internal::RestContext& rest_context, Options const& options, google::cloud::cpp::compute::instances::v1:: - SendDiagnosticInterruptRequest const& request) { - return stub_->SendDiagnosticInterrupt(rest_context, options, request); + SetShieldedInstanceIntegrityPolicyRequest const& request) { + return stub_->SetShieldedInstanceIntegrityPolicy(rest_context, options, + request); }, *current, request, __func__); } future> -InstancesRestConnectionImpl::SetDeletionProtection( - google::cloud::cpp::compute::instances::v1:: - SetDeletionProtectionRequest const& request) { +InstancesRestConnectionImpl::SetShieldedInstanceIntegrityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_](CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1:: - SetDeletionProtectionRequest const& request) { - return stub->AsyncSetDeletionProtection(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -1043,33 +3474,36 @@ InstancesRestConnectionImpl::SetDeletionProtection( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->SetDeletionProtection(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } future> -InstancesRestConnectionImpl::SetDiskAutoDelete( - google::cloud::cpp::compute::instances::v1::SetDiskAutoDeleteRequest const& - request) { +InstancesRestConnectionImpl::SetTags( + google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -1077,13 +3511,14 @@ InstancesRestConnectionImpl::SetDiskAutoDelete( google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( background_->cq(), current, request, - [stub = stub_](CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1:: - SetDiskAutoDeleteRequest const& request) { - return stub->AsyncSetDiskAutoDelete(cq, std::move(context), - std::move(options), request); + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1::SetTagsRequest const& + request) { + return stub->AsyncSetTags(cq, std::move(context), std::move(options), + request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -1104,8 +3539,8 @@ InstancesRestConnectionImpl::SetDiskAutoDelete( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->SetDiskAutoDelete(request), - polling_policy(*current), __func__, + idempotency_policy(*current)->SetTags(request), polling_policy(*current), + __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, @@ -1126,43 +3561,33 @@ InstancesRestConnectionImpl::SetDiskAutoDelete( }); } -StatusOr -InstancesRestConnectionImpl::SetIamPolicy( - google::cloud::cpp::compute::instances::v1::SetIamPolicyRequest const& - request) { +StatusOr +InstancesRestConnectionImpl::SetTags( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->SetIamPolicy(request), - [this]( - rest_internal::RestContext& rest_context, Options const& options, - google::cloud::cpp::compute::instances::v1::SetIamPolicyRequest const& - request) { - return stub_->SetIamPolicy(rest_context, options, request); + idempotency_policy(*current)->SetTags(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1::SetTagsRequest const& + request) { + return stub_->SetTags(rest_context, options, request); }, *current, request, __func__); } future> -InstancesRestConnectionImpl::SetLabels( - google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& - request) { +InstancesRestConnectionImpl::SetTags( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_]( - CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& - request) { - return stub->AsyncSetLabels(cq, std::move(context), std::move(options), - request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -1181,33 +3606,37 @@ InstancesRestConnectionImpl::SetLabels( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->SetLabels(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } future> -InstancesRestConnectionImpl::SetMachineResources( +InstancesRestConnectionImpl::SimulateMaintenanceEvent( google::cloud::cpp::compute::instances::v1:: - SetMachineResourcesRequest const& request) { + SimulateMaintenanceEventRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -1219,9 +3648,9 @@ InstancesRestConnectionImpl::SetMachineResources( std::unique_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::cpp::compute::instances::v1:: - SetMachineResourcesRequest const& request) { - return stub->AsyncSetMachineResources(cq, std::move(context), - std::move(options), request); + SimulateMaintenanceEventRequest const& request) { + return stub->AsyncSimulateMaintenanceEvent(cq, std::move(context), + std::move(options), request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -1242,7 +3671,7 @@ InstancesRestConnectionImpl::SetMachineResources( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->SetMachineResources(request), + idempotency_policy(*current)->SimulateMaintenanceEvent(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; @@ -1264,25 +3693,34 @@ InstancesRestConnectionImpl::SetMachineResources( }); } +StatusOr +InstancesRestConnectionImpl::SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SimulateMaintenanceEventRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SimulateMaintenanceEvent(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + SimulateMaintenanceEventRequest const& request) { + return stub_->SimulateMaintenanceEvent(rest_context, options, request); + }, + *current, request, __func__); +} + future> -InstancesRestConnectionImpl::SetMachineType( - google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& - request) { +InstancesRestConnectionImpl::SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_](CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1:: - SetMachineTypeRequest const& request) { - return stub->AsyncSetMachineType(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -1301,33 +3739,36 @@ InstancesRestConnectionImpl::SetMachineType( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->SetMachineType(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } future> -InstancesRestConnectionImpl::SetMetadata( - google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& - request) { +InstancesRestConnectionImpl::Start( + google::cloud::cpp::compute::instances::v1::StartRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -1339,10 +3780,10 @@ InstancesRestConnectionImpl::SetMetadata( CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& + google::cloud::cpp::compute::instances::v1::StartRequest const& request) { - return stub->AsyncSetMetadata(cq, std::move(context), - std::move(options), request); + return stub->AsyncStart(cq, std::move(context), std::move(options), + request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -1363,8 +3804,8 @@ InstancesRestConnectionImpl::SetMetadata( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->SetMetadata(request), - polling_policy(*current), __func__, + idempotency_policy(*current)->Start(request), polling_policy(*current), + __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, @@ -1385,25 +3826,33 @@ InstancesRestConnectionImpl::SetMetadata( }); } +StatusOr +InstancesRestConnectionImpl::Start( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::StartRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Start(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1::StartRequest const& + request) { + return stub_->Start(rest_context, options, request); + }, + *current, request, __func__); +} + future> -InstancesRestConnectionImpl::SetMinCpuPlatform( - google::cloud::cpp::compute::instances::v1::SetMinCpuPlatformRequest const& - request) { +InstancesRestConnectionImpl::Start( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_](CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1:: - SetMinCpuPlatformRequest const& request) { - return stub->AsyncSetMinCpuPlatform(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -1422,32 +3871,37 @@ InstancesRestConnectionImpl::SetMinCpuPlatform( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->SetMinCpuPlatform(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { - return op.status() == "DONE"; - }, - [request]( - std::string const& op, - google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& - r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } future> -InstancesRestConnectionImpl::SetName( - google::cloud::cpp::compute::instances::v1::SetNameRequest const& request) { +InstancesRestConnectionImpl::StartWithEncryptionKey( + google::cloud::cpp::compute::instances::v1:: + StartWithEncryptionKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -1455,14 +3909,13 @@ InstancesRestConnectionImpl::SetName( google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( background_->cq(), current, request, - [stub = stub_]( - CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1::SetNameRequest const& - request) { - return stub->AsyncSetName(cq, std::move(context), std::move(options), - request); + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1:: + StartWithEncryptionKeyRequest const& request) { + return stub->AsyncStartWithEncryptionKey(cq, std::move(context), + std::move(options), request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -1483,8 +3936,8 @@ InstancesRestConnectionImpl::SetName( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->SetName(request), polling_policy(*current), - __func__, + idempotency_policy(*current)->StartWithEncryptionKey(request), + polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, @@ -1505,25 +3958,34 @@ InstancesRestConnectionImpl::SetName( }); } +StatusOr +InstancesRestConnectionImpl::StartWithEncryptionKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + StartWithEncryptionKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartWithEncryptionKey(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + StartWithEncryptionKeyRequest const& request) { + return stub_->StartWithEncryptionKey(rest_context, options, request); + }, + *current, request, __func__); +} + future> -InstancesRestConnectionImpl::SetScheduling( - google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& - request) { +InstancesRestConnectionImpl::StartWithEncryptionKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_](CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1:: - SetSchedulingRequest const& request) { - return stub->AsyncSetScheduling(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -1542,33 +4004,36 @@ InstancesRestConnectionImpl::SetScheduling( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->SetScheduling(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } future> -InstancesRestConnectionImpl::SetSecurityPolicy( - google::cloud::cpp::compute::instances::v1::SetSecurityPolicyRequest const& - request) { +InstancesRestConnectionImpl::Stop( + google::cloud::cpp::compute::instances::v1::StopRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -1576,13 +4041,14 @@ InstancesRestConnectionImpl::SetSecurityPolicy( google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( background_->cq(), current, request, - [stub = stub_](CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1:: - SetSecurityPolicyRequest const& request) { - return stub->AsyncSetSecurityPolicy(cq, std::move(context), - std::move(options), request); + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1::StopRequest const& + request) { + return stub->AsyncStop(cq, std::move(context), std::move(options), + request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -1603,8 +4069,8 @@ InstancesRestConnectionImpl::SetSecurityPolicy( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->SetSecurityPolicy(request), - polling_policy(*current), __func__, + idempotency_policy(*current)->Stop(request), polling_policy(*current), + __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, @@ -1625,25 +4091,33 @@ InstancesRestConnectionImpl::SetSecurityPolicy( }); } +StatusOr +InstancesRestConnectionImpl::Stop( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::StopRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Stop(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1::StopRequest const& + request) { + return stub_->Stop(rest_context, options, request); + }, + *current, request, __func__); +} + future> -InstancesRestConnectionImpl::SetServiceAccount( - google::cloud::cpp::compute::instances::v1::SetServiceAccountRequest const& - request) { +InstancesRestConnectionImpl::Stop( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_](CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1:: - SetServiceAccountRequest const& request) { - return stub->AsyncSetServiceAccount(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -1662,33 +4136,36 @@ InstancesRestConnectionImpl::SetServiceAccount( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->SetServiceAccount(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } future> -InstancesRestConnectionImpl::SetShieldedInstanceIntegrityPolicy( - google::cloud::cpp::compute::instances::v1:: - SetShieldedInstanceIntegrityPolicyRequest const& request) { +InstancesRestConnectionImpl::Suspend( + google::cloud::cpp::compute::instances::v1::SuspendRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -1700,10 +4177,10 @@ InstancesRestConnectionImpl::SetShieldedInstanceIntegrityPolicy( CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1:: - SetShieldedInstanceIntegrityPolicyRequest const& request) { - return stub->AsyncSetShieldedInstanceIntegrityPolicy( - cq, std::move(context), std::move(options), request); + google::cloud::cpp::compute::instances::v1::SuspendRequest const& + request) { + return stub->AsyncSuspend(cq, std::move(context), std::move(options), + request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -1724,8 +4201,8 @@ InstancesRestConnectionImpl::SetShieldedInstanceIntegrityPolicy( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->SetShieldedInstanceIntegrityPolicy(request), - polling_policy(*current), __func__, + idempotency_policy(*current)->Suspend(request), polling_policy(*current), + __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, @@ -1746,25 +4223,33 @@ InstancesRestConnectionImpl::SetShieldedInstanceIntegrityPolicy( }); } +StatusOr +InstancesRestConnectionImpl::Suspend( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SuspendRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Suspend(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1::SuspendRequest const& + request) { + return stub_->Suspend(rest_context, options, request); + }, + *current, request, __func__); +} + future> -InstancesRestConnectionImpl::SetTags( - google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request) { +InstancesRestConnectionImpl::Suspend( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_]( - CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1::SetTagsRequest const& - request) { - return stub->AsyncSetTags(cq, std::move(context), std::move(options), - request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -1783,33 +4268,53 @@ InstancesRestConnectionImpl::SetTags( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->SetTags(request), polling_policy(*current), - __func__, + polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } +StatusOr +InstancesRestConnectionImpl::TestIamPermissions( + google::cloud::cpp::compute::instances::v1::TestIamPermissionsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->TestIamPermissions(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + TestIamPermissionsRequest const& request) { + return stub_->TestIamPermissions(rest_context, options, request); + }, + *current, request, __func__); +} + future> -InstancesRestConnectionImpl::SimulateMaintenanceEvent( - google::cloud::cpp::compute::instances::v1:: - SimulateMaintenanceEventRequest const& request) { +InstancesRestConnectionImpl::UpdateInstance( + google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& + request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -1821,9 +4326,9 @@ InstancesRestConnectionImpl::SimulateMaintenanceEvent( std::unique_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::cpp::compute::instances::v1:: - SimulateMaintenanceEventRequest const& request) { - return stub->AsyncSimulateMaintenanceEvent(cq, std::move(context), - std::move(options), request); + UpdateInstanceRequest const& request) { + return stub->AsyncUpdateInstance(cq, std::move(context), + std::move(options), request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -1844,7 +4349,7 @@ InstancesRestConnectionImpl::SimulateMaintenanceEvent( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->SimulateMaintenanceEvent(request), + idempotency_policy(*current)->UpdateInstance(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; @@ -1866,25 +4371,34 @@ InstancesRestConnectionImpl::SimulateMaintenanceEvent( }); } -future> -InstancesRestConnectionImpl::Start( - google::cloud::cpp::compute::instances::v1::StartRequest const& request) { +StatusOr +InstancesRestConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& + request) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< - google::cloud::cpp::compute::v1::Operation, - google::cloud::cpp::compute::v1::Operation, - google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, - google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_]( - CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1::StartRequest const& - request) { - return stub->AsyncStart(cq, std::move(context), std::move(options), - request); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateInstance(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + UpdateInstanceRequest const& request) { + return stub_->UpdateInstance(rest_context, options, request); }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -1903,33 +4417,37 @@ InstancesRestConnectionImpl::Start( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->Start(request), polling_policy(*current), - __func__, + polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } future> -InstancesRestConnectionImpl::StartWithEncryptionKey( - google::cloud::cpp::compute::instances::v1:: - StartWithEncryptionKeyRequest const& request) { +InstancesRestConnectionImpl::UpdateAccessConfig( + google::cloud::cpp::compute::instances::v1::UpdateAccessConfigRequest const& + request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -1941,9 +4459,9 @@ InstancesRestConnectionImpl::StartWithEncryptionKey( std::unique_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::cpp::compute::instances::v1:: - StartWithEncryptionKeyRequest const& request) { - return stub->AsyncStartWithEncryptionKey(cq, std::move(context), - std::move(options), request); + UpdateAccessConfigRequest const& request) { + return stub->AsyncUpdateAccessConfig(cq, std::move(context), + std::move(options), request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -1964,7 +4482,7 @@ InstancesRestConnectionImpl::StartWithEncryptionKey( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->StartWithEncryptionKey(request), + idempotency_policy(*current)->UpdateAccessConfig(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; @@ -1986,25 +4504,34 @@ InstancesRestConnectionImpl::StartWithEncryptionKey( }); } +StatusOr +InstancesRestConnectionImpl::UpdateAccessConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::UpdateAccessConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAccessConfig(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + UpdateAccessConfigRequest const& request) { + return stub_->UpdateAccessConfig(rest_context, options, request); + }, + *current, request, __func__); +} + future> -InstancesRestConnectionImpl::Stop( - google::cloud::cpp::compute::instances::v1::StopRequest const& request) { +InstancesRestConnectionImpl::UpdateAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_]( - CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1::StopRequest const& - request) { - return stub->AsyncStop(cq, std::move(context), std::move(options), - request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -2023,32 +4550,37 @@ InstancesRestConnectionImpl::Stop( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->Stop(request), polling_policy(*current), - __func__, + polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } future> -InstancesRestConnectionImpl::Suspend( - google::cloud::cpp::compute::instances::v1::SuspendRequest const& request) { +InstancesRestConnectionImpl::UpdateDisplayDevice( + google::cloud::cpp::compute::instances::v1:: + UpdateDisplayDeviceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -2056,14 +4588,13 @@ InstancesRestConnectionImpl::Suspend( google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( background_->cq(), current, request, - [stub = stub_]( - CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1::SuspendRequest const& - request) { - return stub->AsyncSuspend(cq, std::move(context), std::move(options), - request); + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::instances::v1:: + UpdateDisplayDeviceRequest const& request) { + return stub->AsyncUpdateDisplayDevice(cq, std::move(context), + std::move(options), request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -2084,8 +4615,8 @@ InstancesRestConnectionImpl::Suspend( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->Suspend(request), polling_policy(*current), - __func__, + idempotency_policy(*current)->UpdateDisplayDevice(request), + polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, @@ -2106,41 +4637,34 @@ InstancesRestConnectionImpl::Suspend( }); } -StatusOr -InstancesRestConnectionImpl::TestIamPermissions( - google::cloud::cpp::compute::instances::v1::TestIamPermissionsRequest const& - request) { +StatusOr +InstancesRestConnectionImpl::UpdateDisplayDevice( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateDisplayDeviceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->TestIamPermissions(request), + idempotency_policy(*current)->UpdateDisplayDevice(request), [this](rest_internal::RestContext& rest_context, Options const& options, google::cloud::cpp::compute::instances::v1:: - TestIamPermissionsRequest const& request) { - return stub_->TestIamPermissions(rest_context, options, request); + UpdateDisplayDeviceRequest const& request) { + return stub_->UpdateDisplayDevice(rest_context, options, request); }, *current, request, __func__); } future> -InstancesRestConnectionImpl::UpdateInstance( - google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& - request) { +InstancesRestConnectionImpl::UpdateDisplayDevice( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_](CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1:: - UpdateInstanceRequest const& request) { - return stub->AsyncUpdateInstance(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -2159,33 +4683,37 @@ InstancesRestConnectionImpl::UpdateInstance( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->UpdateInstance(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } future> -InstancesRestConnectionImpl::UpdateAccessConfig( - google::cloud::cpp::compute::instances::v1::UpdateAccessConfigRequest const& - request) { +InstancesRestConnectionImpl::UpdateNetworkInterface( + google::cloud::cpp::compute::instances::v1:: + UpdateNetworkInterfaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -2197,9 +4725,9 @@ InstancesRestConnectionImpl::UpdateAccessConfig( std::unique_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::cpp::compute::instances::v1:: - UpdateAccessConfigRequest const& request) { - return stub->AsyncUpdateAccessConfig(cq, std::move(context), - std::move(options), request); + UpdateNetworkInterfaceRequest const& request) { + return stub->AsyncUpdateNetworkInterface(cq, std::move(context), + std::move(options), request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -2220,7 +4748,7 @@ InstancesRestConnectionImpl::UpdateAccessConfig( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->UpdateAccessConfig(request), + idempotency_policy(*current)->UpdateNetworkInterface(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; @@ -2242,25 +4770,34 @@ InstancesRestConnectionImpl::UpdateAccessConfig( }); } -future> -InstancesRestConnectionImpl::UpdateDisplayDevice( +StatusOr +InstancesRestConnectionImpl::UpdateNetworkInterface( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instances::v1:: - UpdateDisplayDeviceRequest const& request) { + UpdateNetworkInterfaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateNetworkInterface(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + UpdateNetworkInterfaceRequest const& request) { + return stub_->UpdateNetworkInterface(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::UpdateNetworkInterface( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_](CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1:: - UpdateDisplayDeviceRequest const& request) { - return stub->AsyncUpdateDisplayDevice(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -2279,33 +4816,37 @@ InstancesRestConnectionImpl::UpdateDisplayDevice( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->UpdateDisplayDevice(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } future> -InstancesRestConnectionImpl::UpdateNetworkInterface( +InstancesRestConnectionImpl::UpdateShieldedInstanceConfig( google::cloud::cpp::compute::instances::v1:: - UpdateNetworkInterfaceRequest const& request) { + UpdateShieldedInstanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -2317,9 +4858,9 @@ InstancesRestConnectionImpl::UpdateNetworkInterface( std::unique_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::cpp::compute::instances::v1:: - UpdateNetworkInterfaceRequest const& request) { - return stub->AsyncUpdateNetworkInterface(cq, std::move(context), - std::move(options), request); + UpdateShieldedInstanceConfigRequest const& request) { + return stub->AsyncUpdateShieldedInstanceConfig( + cq, std::move(context), std::move(options), request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -2340,7 +4881,7 @@ InstancesRestConnectionImpl::UpdateNetworkInterface( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->UpdateNetworkInterface(request), + idempotency_policy(*current)->UpdateShieldedInstanceConfig(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; @@ -2362,25 +4903,35 @@ InstancesRestConnectionImpl::UpdateNetworkInterface( }); } -future> +StatusOr InstancesRestConnectionImpl::UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateShieldedInstanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateShieldedInstanceConfig(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::instances::v1:: + UpdateShieldedInstanceConfigRequest const& request) { + return stub_->UpdateShieldedInstanceConfig(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +InstancesRestConnectionImpl::UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_](CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::instances::v1:: - UpdateShieldedInstanceConfigRequest const& request) { - return stub->AsyncUpdateShieldedInstanceConfig( - cq, std::move(context), std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -2399,26 +4950,30 @@ InstancesRestConnectionImpl::UpdateShieldedInstanceConfig( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->UpdateShieldedInstanceConfig(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request]( - std::string const& op, + [operation]( + std::string const&, google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::zone_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_zone(request.zone()); - r.set_operation(op); + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); }); } diff --git a/google/cloud/compute/instances/v1/internal/instances_rest_connection_impl.h b/google/cloud/compute/instances/v1/internal/instances_rest_connection_impl.h index 8dc3013466d4f..3d45012e55863 100644 --- a/google/cloud/compute/instances/v1/internal/instances_rest_connection_impl.h +++ b/google/cloud/compute/instances/v1/internal/instances_rest_connection_impl.h @@ -54,10 +54,29 @@ class InstancesRestConnectionImpl google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const& request) override; + StatusOr AddAccessConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const& + request) override; + + future> AddAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> AddResourcePolicies(google::cloud::cpp::compute::instances::v1:: AddResourcePoliciesRequest const& request) override; + StatusOr AddResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + AddResourcePoliciesRequest const& request) override; + + future> + AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange> AggregatedListInstances( @@ -68,22 +87,68 @@ class InstancesRestConnectionImpl google::cloud::cpp::compute::instances::v1::AttachDiskRequest const& request) override; + StatusOr AttachDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::AttachDiskRequest const& + request) override; + + future> AttachDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> BulkInsert( google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& request) override; + StatusOr BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& + request) override; + + future> BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteInstance( google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& + request) override; + + future> DeleteInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteAccessConfig(google::cloud::cpp::compute::instances::v1:: DeleteAccessConfigRequest const& request) override; + StatusOr DeleteAccessConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + DeleteAccessConfigRequest const& request) override; + + future> + DeleteAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DetachDisk( google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& request) override; + StatusOr DetachDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& + request) override; + + future> DetachDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInstance( google::cloud::cpp::compute::instances::v1::GetInstanceRequest const& request) override; @@ -119,6 +184,15 @@ class InstancesRestConnectionImpl google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& request) override; + StatusOr InsertInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& + request) override; + + future> InsertInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListInstances( google::cloud::cpp::compute::instances::v1::ListInstancesRequest request) override; @@ -131,19 +205,57 @@ class InstancesRestConnectionImpl PerformMaintenance(google::cloud::cpp::compute::instances::v1:: PerformMaintenanceRequest const& request) override; + StatusOr PerformMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + PerformMaintenanceRequest const& request) override; + + future> + PerformMaintenance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveResourcePolicies( google::cloud::cpp::compute::instances::v1:: RemoveResourcePoliciesRequest const& request) override; + StatusOr RemoveResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + RemoveResourcePoliciesRequest const& request) override; + + future> + RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Reset( google::cloud::cpp::compute::instances::v1::ResetRequest const& request) override; + StatusOr Reset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::ResetRequest const& request) + override; + + future> Reset( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Resume( google::cloud::cpp::compute::instances::v1::ResumeRequest const& request) override; + StatusOr Resume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::ResumeRequest const& request) + override; + + future> Resume( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + Status SendDiagnosticInterrupt( google::cloud::cpp::compute::instances::v1:: SendDiagnosticInterruptRequest const& request) override; @@ -153,10 +265,30 @@ class InstancesRestConnectionImpl google::cloud::cpp::compute::instances::v1:: SetDeletionProtectionRequest const& request) override; + StatusOr SetDeletionProtection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetDeletionProtectionRequest const& request) override; + + future> + SetDeletionProtection( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetDiskAutoDelete(google::cloud::cpp::compute::instances::v1:: SetDiskAutoDeleteRequest const& request) override; + StatusOr SetDiskAutoDelete( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetDiskAutoDeleteRequest const& request) override; + + future> + SetDiskAutoDelete( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::instances::v1::SetIamPolicyRequest const& request) override; @@ -165,69 +297,221 @@ class InstancesRestConnectionImpl google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetMachineResources(google::cloud::cpp::compute::instances::v1:: SetMachineResourcesRequest const& request) override; + StatusOr SetMachineResources( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetMachineResourcesRequest const& request) override; + + future> + SetMachineResources( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetMachineType( google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& request) override; + StatusOr SetMachineType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& + request) override; + + future> SetMachineType( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetMetadata( google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& request) override; + StatusOr SetMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& + request) override; + + future> SetMetadata( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetMinCpuPlatform(google::cloud::cpp::compute::instances::v1:: SetMinCpuPlatformRequest const& request) override; + StatusOr SetMinCpuPlatform( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetMinCpuPlatformRequest const& request) override; + + future> + SetMinCpuPlatform( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetName( google::cloud::cpp::compute::instances::v1::SetNameRequest const& request) override; + StatusOr SetName( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetNameRequest const& request) + override; + + future> SetName( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetScheduling( google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& request) override; + StatusOr SetScheduling( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& + request) override; + + future> SetScheduling( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetSecurityPolicy(google::cloud::cpp::compute::instances::v1:: SetSecurityPolicyRequest const& request) override; + StatusOr SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetSecurityPolicyRequest const& request) override; + + future> + SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetServiceAccount(google::cloud::cpp::compute::instances::v1:: SetServiceAccountRequest const& request) override; + StatusOr SetServiceAccount( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetServiceAccountRequest const& request) override; + + future> + SetServiceAccount( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetShieldedInstanceIntegrityPolicy( google::cloud::cpp::compute::instances::v1:: SetShieldedInstanceIntegrityPolicyRequest const& request) override; + StatusOr + SetShieldedInstanceIntegrityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetShieldedInstanceIntegrityPolicyRequest const& request) override; + + future> + SetShieldedInstanceIntegrityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetTags( google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request) override; + StatusOr SetTags( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request) + override; + + future> SetTags( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SimulateMaintenanceEvent( google::cloud::cpp::compute::instances::v1:: SimulateMaintenanceEventRequest const& request) override; + StatusOr SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SimulateMaintenanceEventRequest const& request) override; + + future> + SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Start( google::cloud::cpp::compute::instances::v1::StartRequest const& request) override; + StatusOr Start( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::StartRequest const& request) + override; + + future> Start( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> StartWithEncryptionKey( google::cloud::cpp::compute::instances::v1:: StartWithEncryptionKeyRequest const& request) override; + StatusOr StartWithEncryptionKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + StartWithEncryptionKeyRequest const& request) override; + + future> + StartWithEncryptionKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Stop( google::cloud::cpp::compute::instances::v1::StopRequest const& request) override; + StatusOr Stop( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::StopRequest const& request) + override; + + future> Stop( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Suspend( google::cloud::cpp::compute::instances::v1::SuspendRequest const& request) override; + StatusOr Suspend( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SuspendRequest const& request) + override; + + future> Suspend( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::instances::v1:: TestIamPermissionsRequest const& request) override; @@ -236,24 +520,74 @@ class InstancesRestConnectionImpl google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& + request) override; + + future> UpdateInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateAccessConfig(google::cloud::cpp::compute::instances::v1:: UpdateAccessConfigRequest const& request) override; + StatusOr UpdateAccessConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateAccessConfigRequest const& request) override; + + future> + UpdateAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateDisplayDevice(google::cloud::cpp::compute::instances::v1:: UpdateDisplayDeviceRequest const& request) override; + StatusOr UpdateDisplayDevice( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateDisplayDeviceRequest const& request) override; + + future> + UpdateDisplayDevice( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateNetworkInterface( google::cloud::cpp::compute::instances::v1:: UpdateNetworkInterfaceRequest const& request) override; + StatusOr UpdateNetworkInterface( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateNetworkInterfaceRequest const& request) override; + future> + UpdateNetworkInterface( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + + future> + UpdateShieldedInstanceConfig( + google::cloud::cpp::compute::instances::v1:: + UpdateShieldedInstanceConfigRequest const& request) override; + + StatusOr UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateShieldedInstanceConfigRequest const& request) override; + future> + UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy(Options const& options) { diff --git a/google/cloud/compute/instances/v1/internal/instances_tracing_connection.cc b/google/cloud/compute/instances/v1/internal/instances_tracing_connection.cc index fb11912e5c123..8d6cf389feecc 100644 --- a/google/cloud/compute/instances/v1/internal/instances_tracing_connection.cc +++ b/google/cloud/compute/instances/v1/internal/instances_tracing_connection.cc @@ -43,6 +43,31 @@ InstancesTracingConnection::AddAccessConfig( return internal::EndSpan(std::move(span), child_->AddAccessConfig(request)); } +StatusOr +InstancesTracingConnection::AddAccessConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::AddAccessConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddAccessConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::AddAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::AddAccessConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddAccessConfig(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::AddResourcePolicies( google::cloud::cpp::compute::instances::v1:: @@ -54,6 +79,31 @@ InstancesTracingConnection::AddResourcePolicies( child_->AddResourcePolicies(request)); } +StatusOr +InstancesTracingConnection::AddResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + AddResourcePoliciesRequest const& request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::AddResourcePolicies"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddResourcePolicies(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::AddResourcePolicies"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddResourcePolicies(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange> InstancesTracingConnection::AggregatedListInstances( @@ -78,6 +128,31 @@ InstancesTracingConnection::AttachDisk( return internal::EndSpan(std::move(span), child_->AttachDisk(request)); } +StatusOr +InstancesTracingConnection::AttachDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::AttachDiskRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::AttachDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AttachDisk(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::AttachDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::AttachDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AttachDisk(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::BulkInsert( google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& @@ -88,6 +163,31 @@ InstancesTracingConnection::BulkInsert( return internal::EndSpan(std::move(span), child_->BulkInsert(request)); } +StatusOr +InstancesTracingConnection::BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::BulkInsert"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BulkInsert(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::BulkInsert"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BulkInsert(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::DeleteInstance( google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& @@ -98,6 +198,31 @@ InstancesTracingConnection::DeleteInstance( return internal::EndSpan(std::move(span), child_->DeleteInstance(request)); } +StatusOr +InstancesTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::DeleteAccessConfig( google::cloud::cpp::compute::instances::v1::DeleteAccessConfigRequest const& @@ -109,6 +234,31 @@ InstancesTracingConnection::DeleteAccessConfig( child_->DeleteAccessConfig(request)); } +StatusOr +InstancesTracingConnection::DeleteAccessConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::DeleteAccessConfigRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::DeleteAccessConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAccessConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::DeleteAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::DeleteAccessConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAccessConfig(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::DetachDisk( google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& @@ -119,6 +269,31 @@ InstancesTracingConnection::DetachDisk( return internal::EndSpan(std::move(span), child_->DetachDisk(request)); } +StatusOr +InstancesTracingConnection::DetachDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::DetachDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DetachDisk(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::DetachDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::DetachDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DetachDisk(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr InstancesTracingConnection::GetInstance( google::cloud::cpp::compute::instances::v1::GetInstanceRequest const& @@ -200,6 +375,31 @@ InstancesTracingConnection::InsertInstance( return internal::EndSpan(std::move(span), child_->InsertInstance(request)); } +StatusOr +InstancesTracingConnection::InsertInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::InsertInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::InsertInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::InsertInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertInstance(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange InstancesTracingConnection::ListInstances( google::cloud::cpp::compute::instances::v1::ListInstancesRequest request) { @@ -235,6 +435,31 @@ InstancesTracingConnection::PerformMaintenance( child_->PerformMaintenance(request)); } +StatusOr +InstancesTracingConnection::PerformMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::PerformMaintenanceRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::PerformMaintenance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PerformMaintenance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::PerformMaintenance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::PerformMaintenance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PerformMaintenance(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::RemoveResourcePolicies( google::cloud::cpp::compute::instances::v1:: @@ -246,6 +471,31 @@ InstancesTracingConnection::RemoveResourcePolicies( child_->RemoveResourcePolicies(request)); } +StatusOr +InstancesTracingConnection::RemoveResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + RemoveResourcePoliciesRequest const& request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::RemoveResourcePolicies"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RemoveResourcePolicies( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::RemoveResourcePolicies"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RemoveResourcePolicies( + google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::Reset( google::cloud::cpp::compute::instances::v1::ResetRequest const& request) { @@ -255,6 +505,30 @@ InstancesTracingConnection::Reset( return internal::EndSpan(std::move(span), child_->Reset(request)); } +StatusOr +InstancesTracingConnection::Reset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::ResetRequest const& request) { + auto span = + internal::MakeSpan("compute_instances_v1::InstancesConnection::Reset"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, + child_->Reset(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::Reset( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_instances_v1::InstancesConnection::Reset"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Reset(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::Resume( google::cloud::cpp::compute::instances::v1::ResumeRequest const& request) { @@ -264,6 +538,30 @@ InstancesTracingConnection::Resume( return internal::EndSpan(std::move(span), child_->Resume(request)); } +StatusOr +InstancesTracingConnection::Resume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::ResumeRequest const& request) { + auto span = + internal::MakeSpan("compute_instances_v1::InstancesConnection::Resume"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->Resume(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::Resume( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_instances_v1::InstancesConnection::Resume"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Resume(google::cloud::ExperimentalTag{}, operation)); +} + Status InstancesTracingConnection::SendDiagnosticInterrupt( google::cloud::cpp::compute::instances::v1:: SendDiagnosticInterruptRequest const& request) { @@ -284,6 +582,31 @@ InstancesTracingConnection::SetDeletionProtection( child_->SetDeletionProtection(request)); } +StatusOr +InstancesTracingConnection::SetDeletionProtection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetDeletionProtectionRequest const& request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetDeletionProtection"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SetDeletionProtection( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::SetDeletionProtection( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetDeletionProtection"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SetDeletionProtection( + google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::SetDiskAutoDelete( google::cloud::cpp::compute::instances::v1::SetDiskAutoDeleteRequest const& @@ -294,6 +617,31 @@ InstancesTracingConnection::SetDiskAutoDelete( return internal::EndSpan(std::move(span), child_->SetDiskAutoDelete(request)); } +StatusOr +InstancesTracingConnection::SetDiskAutoDelete( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetDiskAutoDeleteRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetDiskAutoDelete"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetDiskAutoDelete(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::SetDiskAutoDelete( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetDiskAutoDelete"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetDiskAutoDelete(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr InstancesTracingConnection::SetIamPolicy( google::cloud::cpp::compute::instances::v1::SetIamPolicyRequest const& @@ -314,6 +662,31 @@ InstancesTracingConnection::SetLabels( return internal::EndSpan(std::move(span), child_->SetLabels(request)); } +StatusOr +InstancesTracingConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::SetMachineResources( google::cloud::cpp::compute::instances::v1:: @@ -325,6 +698,31 @@ InstancesTracingConnection::SetMachineResources( child_->SetMachineResources(request)); } +StatusOr +InstancesTracingConnection::SetMachineResources( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetMachineResourcesRequest const& request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetMachineResources"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetMachineResources(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::SetMachineResources( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetMachineResources"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetMachineResources(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::SetMachineType( google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& @@ -335,28 +733,103 @@ InstancesTracingConnection::SetMachineType( return internal::EndSpan(std::move(span), child_->SetMachineType(request)); } -future> -InstancesTracingConnection::SetMetadata( - google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& +StatusOr +InstancesTracingConnection::SetMachineType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& request) { auto span = internal::MakeSpan( - "compute_instances_v1::InstancesConnection::SetMetadata"); + "compute_instances_v1::InstancesConnection::SetMachineType"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), child_->SetMetadata(request)); + return internal::EndSpan( + *span, child_->SetMachineType(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); } future> -InstancesTracingConnection::SetMinCpuPlatform( - google::cloud::cpp::compute::instances::v1::SetMinCpuPlatformRequest const& - request) { +InstancesTracingConnection::SetMachineType( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( - "compute_instances_v1::InstancesConnection::SetMinCpuPlatform"); + "compute_instances_v1::InstancesConnection::SetMachineType"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), child_->SetMinCpuPlatform(request)); + return internal::EndSpan( + std::move(span), + child_->SetMachineType(google::cloud::ExperimentalTag{}, operation)); } future> -InstancesTracingConnection::SetName( +InstancesTracingConnection::SetMetadata( + google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetMetadata"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), child_->SetMetadata(request)); +} + +StatusOr +InstancesTracingConnection::SetMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetMetadata"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetMetadata(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::SetMetadata( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetMetadata"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetMetadata(google::cloud::ExperimentalTag{}, operation)); +} + +future> +InstancesTracingConnection::SetMinCpuPlatform( + google::cloud::cpp::compute::instances::v1::SetMinCpuPlatformRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetMinCpuPlatform"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), child_->SetMinCpuPlatform(request)); +} + +StatusOr +InstancesTracingConnection::SetMinCpuPlatform( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetMinCpuPlatformRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetMinCpuPlatform"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetMinCpuPlatform(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::SetMinCpuPlatform( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetMinCpuPlatform"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetMinCpuPlatform(google::cloud::ExperimentalTag{}, operation)); +} + +future> +InstancesTracingConnection::SetName( google::cloud::cpp::compute::instances::v1::SetNameRequest const& request) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::SetName"); @@ -364,6 +837,30 @@ InstancesTracingConnection::SetName( return internal::EndSpan(std::move(span), child_->SetName(request)); } +StatusOr +InstancesTracingConnection::SetName( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetNameRequest const& request) { + auto span = + internal::MakeSpan("compute_instances_v1::InstancesConnection::SetName"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetName(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::SetName( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_instances_v1::InstancesConnection::SetName"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetName(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::SetScheduling( google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& @@ -374,6 +871,31 @@ InstancesTracingConnection::SetScheduling( return internal::EndSpan(std::move(span), child_->SetScheduling(request)); } +StatusOr +InstancesTracingConnection::SetScheduling( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetScheduling"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetScheduling(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::SetScheduling( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetScheduling"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetScheduling(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::SetSecurityPolicy( google::cloud::cpp::compute::instances::v1::SetSecurityPolicyRequest const& @@ -384,6 +906,31 @@ InstancesTracingConnection::SetSecurityPolicy( return internal::EndSpan(std::move(span), child_->SetSecurityPolicy(request)); } +StatusOr +InstancesTracingConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetSecurityPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::SetServiceAccount( google::cloud::cpp::compute::instances::v1::SetServiceAccountRequest const& @@ -394,6 +941,31 @@ InstancesTracingConnection::SetServiceAccount( return internal::EndSpan(std::move(span), child_->SetServiceAccount(request)); } +StatusOr +InstancesTracingConnection::SetServiceAccount( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetServiceAccountRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetServiceAccount"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetServiceAccount(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::SetServiceAccount( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SetServiceAccount"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetServiceAccount(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::SetShieldedInstanceIntegrityPolicy( google::cloud::cpp::compute::instances::v1:: @@ -406,6 +978,33 @@ InstancesTracingConnection::SetShieldedInstanceIntegrityPolicy( child_->SetShieldedInstanceIntegrityPolicy(request)); } +StatusOr +InstancesTracingConnection::SetShieldedInstanceIntegrityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetShieldedInstanceIntegrityPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::" + "SetShieldedInstanceIntegrityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SetShieldedInstanceIntegrityPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::SetShieldedInstanceIntegrityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::" + "SetShieldedInstanceIntegrityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SetShieldedInstanceIntegrityPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::SetTags( google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request) { @@ -415,6 +1014,30 @@ InstancesTracingConnection::SetTags( return internal::EndSpan(std::move(span), child_->SetTags(request)); } +StatusOr +InstancesTracingConnection::SetTags( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request) { + auto span = + internal::MakeSpan("compute_instances_v1::InstancesConnection::SetTags"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetTags(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::SetTags( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_instances_v1::InstancesConnection::SetTags"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetTags(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::SimulateMaintenanceEvent( google::cloud::cpp::compute::instances::v1:: @@ -426,6 +1049,31 @@ InstancesTracingConnection::SimulateMaintenanceEvent( child_->SimulateMaintenanceEvent(request)); } +StatusOr +InstancesTracingConnection::SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SimulateMaintenanceEventRequest const& request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SimulateMaintenanceEvent"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SimulateMaintenanceEvent( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::SimulateMaintenanceEvent"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SimulateMaintenanceEvent( + google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::Start( google::cloud::cpp::compute::instances::v1::StartRequest const& request) { @@ -435,6 +1083,30 @@ InstancesTracingConnection::Start( return internal::EndSpan(std::move(span), child_->Start(request)); } +StatusOr +InstancesTracingConnection::Start( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::StartRequest const& request) { + auto span = + internal::MakeSpan("compute_instances_v1::InstancesConnection::Start"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, + child_->Start(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::Start( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_instances_v1::InstancesConnection::Start"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Start(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::StartWithEncryptionKey( google::cloud::cpp::compute::instances::v1:: @@ -446,6 +1118,31 @@ InstancesTracingConnection::StartWithEncryptionKey( child_->StartWithEncryptionKey(request)); } +StatusOr +InstancesTracingConnection::StartWithEncryptionKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + StartWithEncryptionKeyRequest const& request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::StartWithEncryptionKey"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->StartWithEncryptionKey( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::StartWithEncryptionKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::StartWithEncryptionKey"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->StartWithEncryptionKey( + google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::Stop( google::cloud::cpp::compute::instances::v1::StopRequest const& request) { @@ -455,6 +1152,30 @@ InstancesTracingConnection::Stop( return internal::EndSpan(std::move(span), child_->Stop(request)); } +StatusOr +InstancesTracingConnection::Stop( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::StopRequest const& request) { + auto span = + internal::MakeSpan("compute_instances_v1::InstancesConnection::Stop"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, + child_->Stop(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::Stop( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_instances_v1::InstancesConnection::Stop"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Stop(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::Suspend( google::cloud::cpp::compute::instances::v1::SuspendRequest const& request) { @@ -464,6 +1185,30 @@ InstancesTracingConnection::Suspend( return internal::EndSpan(std::move(span), child_->Suspend(request)); } +StatusOr +InstancesTracingConnection::Suspend( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SuspendRequest const& request) { + auto span = + internal::MakeSpan("compute_instances_v1::InstancesConnection::Suspend"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->Suspend(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::Suspend( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_instances_v1::InstancesConnection::Suspend"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Suspend(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr InstancesTracingConnection::TestIamPermissions( google::cloud::cpp::compute::instances::v1::TestIamPermissionsRequest const& @@ -484,6 +1229,31 @@ InstancesTracingConnection::UpdateInstance( return internal::EndSpan(std::move(span), child_->UpdateInstance(request)); } +StatusOr +InstancesTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::UpdateAccessConfig( google::cloud::cpp::compute::instances::v1::UpdateAccessConfigRequest const& @@ -495,6 +1265,31 @@ InstancesTracingConnection::UpdateAccessConfig( child_->UpdateAccessConfig(request)); } +StatusOr +InstancesTracingConnection::UpdateAccessConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::UpdateAccessConfigRequest const& + request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::UpdateAccessConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateAccessConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::UpdateAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::UpdateAccessConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateAccessConfig(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::UpdateDisplayDevice( google::cloud::cpp::compute::instances::v1:: @@ -506,6 +1301,31 @@ InstancesTracingConnection::UpdateDisplayDevice( child_->UpdateDisplayDevice(request)); } +StatusOr +InstancesTracingConnection::UpdateDisplayDevice( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateDisplayDeviceRequest const& request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::UpdateDisplayDevice"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateDisplayDevice(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::UpdateDisplayDevice( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::UpdateDisplayDevice"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateDisplayDevice(google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::UpdateNetworkInterface( google::cloud::cpp::compute::instances::v1:: @@ -517,6 +1337,31 @@ InstancesTracingConnection::UpdateNetworkInterface( child_->UpdateNetworkInterface(request)); } +StatusOr +InstancesTracingConnection::UpdateNetworkInterface( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateNetworkInterfaceRequest const& request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::UpdateNetworkInterface"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateNetworkInterface( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::UpdateNetworkInterface( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::UpdateNetworkInterface"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateNetworkInterface( + google::cloud::ExperimentalTag{}, operation)); +} + future> InstancesTracingConnection::UpdateShieldedInstanceConfig( google::cloud::cpp::compute::instances::v1:: @@ -529,6 +1374,33 @@ InstancesTracingConnection::UpdateShieldedInstanceConfig( child_->UpdateShieldedInstanceConfig(request)); } +StatusOr +InstancesTracingConnection::UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateShieldedInstanceConfigRequest const& request) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::" + "UpdateShieldedInstanceConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstancesTracingConnection::UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_instances_v1::InstancesConnection::" + "UpdateShieldedInstanceConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/instances/v1/internal/instances_tracing_connection.h b/google/cloud/compute/instances/v1/internal/instances_tracing_connection.h index ef1eeb1bd0b7a..d427194c5734a 100644 --- a/google/cloud/compute/instances/v1/internal/instances_tracing_connection.h +++ b/google/cloud/compute/instances/v1/internal/instances_tracing_connection.h @@ -44,10 +44,29 @@ class InstancesTracingConnection google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const& request) override; + StatusOr AddAccessConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const& + request) override; + + future> AddAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> AddResourcePolicies(google::cloud::cpp::compute::instances::v1:: AddResourcePoliciesRequest const& request) override; + StatusOr AddResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + AddResourcePoliciesRequest const& request) override; + + future> + AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange> AggregatedListInstances( @@ -58,22 +77,68 @@ class InstancesTracingConnection google::cloud::cpp::compute::instances::v1::AttachDiskRequest const& request) override; + StatusOr AttachDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::AttachDiskRequest const& + request) override; + + future> AttachDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> BulkInsert( google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& request) override; + StatusOr BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& + request) override; + + future> BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteInstance( google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& + request) override; + + future> DeleteInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteAccessConfig(google::cloud::cpp::compute::instances::v1:: DeleteAccessConfigRequest const& request) override; + StatusOr DeleteAccessConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + DeleteAccessConfigRequest const& request) override; + + future> + DeleteAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DetachDisk( google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& request) override; + StatusOr DetachDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& + request) override; + + future> DetachDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInstance( google::cloud::cpp::compute::instances::v1::GetInstanceRequest const& request) override; @@ -109,6 +174,15 @@ class InstancesTracingConnection google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& request) override; + StatusOr InsertInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& + request) override; + + future> InsertInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListInstances( google::cloud::cpp::compute::instances::v1::ListInstancesRequest request) override; @@ -121,19 +195,57 @@ class InstancesTracingConnection PerformMaintenance(google::cloud::cpp::compute::instances::v1:: PerformMaintenanceRequest const& request) override; + StatusOr PerformMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + PerformMaintenanceRequest const& request) override; + + future> + PerformMaintenance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveResourcePolicies( google::cloud::cpp::compute::instances::v1:: RemoveResourcePoliciesRequest const& request) override; + StatusOr RemoveResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + RemoveResourcePoliciesRequest const& request) override; + + future> + RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Reset( google::cloud::cpp::compute::instances::v1::ResetRequest const& request) override; + StatusOr Reset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::ResetRequest const& request) + override; + + future> Reset( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Resume( google::cloud::cpp::compute::instances::v1::ResumeRequest const& request) override; + StatusOr Resume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::ResumeRequest const& request) + override; + + future> Resume( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + Status SendDiagnosticInterrupt( google::cloud::cpp::compute::instances::v1:: SendDiagnosticInterruptRequest const& request) override; @@ -143,10 +255,30 @@ class InstancesTracingConnection google::cloud::cpp::compute::instances::v1:: SetDeletionProtectionRequest const& request) override; + StatusOr SetDeletionProtection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetDeletionProtectionRequest const& request) override; + + future> + SetDeletionProtection( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetDiskAutoDelete(google::cloud::cpp::compute::instances::v1:: SetDiskAutoDeleteRequest const& request) override; + StatusOr SetDiskAutoDelete( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetDiskAutoDeleteRequest const& request) override; + + future> + SetDiskAutoDelete( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::instances::v1::SetIamPolicyRequest const& request) override; @@ -155,69 +287,221 @@ class InstancesTracingConnection google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetMachineResources(google::cloud::cpp::compute::instances::v1:: SetMachineResourcesRequest const& request) override; + StatusOr SetMachineResources( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetMachineResourcesRequest const& request) override; + + future> + SetMachineResources( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetMachineType( google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& request) override; + StatusOr SetMachineType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& + request) override; + + future> SetMachineType( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetMetadata( google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& request) override; + StatusOr SetMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& + request) override; + + future> SetMetadata( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetMinCpuPlatform(google::cloud::cpp::compute::instances::v1:: SetMinCpuPlatformRequest const& request) override; + StatusOr SetMinCpuPlatform( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetMinCpuPlatformRequest const& request) override; + + future> + SetMinCpuPlatform( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetName( google::cloud::cpp::compute::instances::v1::SetNameRequest const& request) override; + StatusOr SetName( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetNameRequest const& request) + override; + + future> SetName( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetScheduling( google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& request) override; + StatusOr SetScheduling( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& + request) override; + + future> SetScheduling( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetSecurityPolicy(google::cloud::cpp::compute::instances::v1:: SetSecurityPolicyRequest const& request) override; + StatusOr SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetSecurityPolicyRequest const& request) override; + + future> + SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetServiceAccount(google::cloud::cpp::compute::instances::v1:: SetServiceAccountRequest const& request) override; + StatusOr SetServiceAccount( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetServiceAccountRequest const& request) override; + + future> + SetServiceAccount( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetShieldedInstanceIntegrityPolicy( google::cloud::cpp::compute::instances::v1:: SetShieldedInstanceIntegrityPolicyRequest const& request) override; + StatusOr + SetShieldedInstanceIntegrityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetShieldedInstanceIntegrityPolicyRequest const& request) override; + + future> + SetShieldedInstanceIntegrityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetTags( google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request) override; + StatusOr SetTags( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request) + override; + + future> SetTags( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SimulateMaintenanceEvent( google::cloud::cpp::compute::instances::v1:: SimulateMaintenanceEventRequest const& request) override; + StatusOr SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SimulateMaintenanceEventRequest const& request) override; + + future> + SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Start( google::cloud::cpp::compute::instances::v1::StartRequest const& request) override; + StatusOr Start( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::StartRequest const& request) + override; + + future> Start( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> StartWithEncryptionKey( google::cloud::cpp::compute::instances::v1:: StartWithEncryptionKeyRequest const& request) override; + StatusOr StartWithEncryptionKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + StartWithEncryptionKeyRequest const& request) override; + + future> + StartWithEncryptionKey( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Stop( google::cloud::cpp::compute::instances::v1::StopRequest const& request) override; + StatusOr Stop( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::StopRequest const& request) + override; + + future> Stop( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Suspend( google::cloud::cpp::compute::instances::v1::SuspendRequest const& request) override; + StatusOr Suspend( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SuspendRequest const& request) + override; + + future> Suspend( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::instances::v1:: TestIamPermissionsRequest const& request) override; @@ -226,24 +510,74 @@ class InstancesTracingConnection google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& + request) override; + + future> UpdateInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateAccessConfig(google::cloud::cpp::compute::instances::v1:: UpdateAccessConfigRequest const& request) override; + StatusOr UpdateAccessConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateAccessConfigRequest const& request) override; + + future> + UpdateAccessConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateDisplayDevice(google::cloud::cpp::compute::instances::v1:: UpdateDisplayDeviceRequest const& request) override; + StatusOr UpdateDisplayDevice( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateDisplayDeviceRequest const& request) override; + + future> + UpdateDisplayDevice( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateNetworkInterface( google::cloud::cpp::compute::instances::v1:: UpdateNetworkInterfaceRequest const& request) override; + StatusOr UpdateNetworkInterface( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateNetworkInterfaceRequest const& request) override; + future> + UpdateNetworkInterface( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + + future> + UpdateShieldedInstanceConfig( + google::cloud::cpp::compute::instances::v1:: + UpdateShieldedInstanceConfigRequest const& request) override; + + StatusOr UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateShieldedInstanceConfigRequest const& request) override; + future> + UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/instances/v1/mocks/mock_instances_connection.h b/google/cloud/compute/instances/v1/mocks/mock_instances_connection.h index 1aabe0ed985ee..e8d805e9599da 100644 --- a/google/cloud/compute/instances/v1/mocks/mock_instances_connection.h +++ b/google/cloud/compute/instances/v1/mocks/mock_instances_connection.h @@ -54,12 +54,38 @@ class MockInstancesConnection request), (override)); + MOCK_METHOD( + StatusOr, AddAccessConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const& + request), + (override)); + + MOCK_METHOD(future>, + AddAccessConfig, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, AddResourcePolicies, (google::cloud::cpp::compute::instances::v1:: AddResourcePoliciesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + AddResourcePolicies, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + AddResourcePoliciesRequest const& request), + (override)); + + MOCK_METHOD(future>, + AddResourcePolicies, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange>), @@ -74,12 +100,38 @@ class MockInstancesConnection request), (override)); + MOCK_METHOD( + StatusOr, AttachDisk, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::AttachDiskRequest const& + request), + (override)); + + MOCK_METHOD(future>, + AttachDisk, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, BulkInsert, (google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& request), (override)); + MOCK_METHOD( + StatusOr, BulkInsert, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& + request), + (override)); + + MOCK_METHOD(future>, + BulkInsert, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteInstance, @@ -87,18 +139,57 @@ class MockInstancesConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteInstance, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteAccessConfig, (google::cloud::cpp::compute::instances::v1:: DeleteAccessConfigRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteAccessConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + DeleteAccessConfigRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteAccessConfig, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, DetachDisk, (google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DetachDisk, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DetachDisk, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetInstance, (google::cloud::cpp::compute::instances::v1::GetInstanceRequest const& @@ -150,6 +241,19 @@ class MockInstancesConnection request), (override)); + MOCK_METHOD( + StatusOr, InsertInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& + request), + (override)); + + MOCK_METHOD(future>, + InsertInstance, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListInstances, (google::cloud::cpp::compute::instances::v1::ListInstancesRequest @@ -168,23 +272,73 @@ class MockInstancesConnection PerformMaintenanceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PerformMaintenance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + PerformMaintenanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + PerformMaintenance, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, RemoveResourcePolicies, (google::cloud::cpp::compute::instances::v1:: RemoveResourcePoliciesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + RemoveResourcePolicies, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + RemoveResourcePoliciesRequest const& request), + (override)); + + MOCK_METHOD(future>, + RemoveResourcePolicies, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, Reset, (google::cloud::cpp::compute::instances::v1::ResetRequest const& request), (override)); + MOCK_METHOD( + StatusOr, Reset, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::ResetRequest const& request), + (override)); + + MOCK_METHOD(future>, + Reset, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, Resume, (google::cloud::cpp::compute::instances::v1::ResumeRequest const& request), (override)); + MOCK_METHOD(StatusOr, Resume, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::ResumeRequest const& + request), + (override)); + + MOCK_METHOD(future>, + Resume, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(Status, SendDiagnosticInterrupt, (google::cloud::cpp::compute::instances::v1:: SendDiagnosticInterruptRequest const& request), @@ -196,12 +350,38 @@ class MockInstancesConnection SetDeletionProtectionRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetDeletionProtection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetDeletionProtectionRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetDeletionProtection, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetDiskAutoDelete, (google::cloud::cpp::compute::instances::v1:: SetDiskAutoDeleteRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetDiskAutoDelete, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetDiskAutoDeleteRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetDiskAutoDelete, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, SetIamPolicy, (google::cloud::cpp::compute::instances::v1::SetIamPolicyRequest const& @@ -214,12 +394,38 @@ class MockInstancesConnection request), (override)); + MOCK_METHOD( + StatusOr, SetLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + SetLabels, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetMachineResources, (google::cloud::cpp::compute::instances::v1:: SetMachineResourcesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetMachineResources, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetMachineResourcesRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetMachineResources, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, SetMachineType, @@ -227,24 +433,75 @@ class MockInstancesConnection request), (override)); + MOCK_METHOD( + StatusOr, SetMachineType, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& + request), + (override)); + + MOCK_METHOD(future>, + SetMachineType, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, SetMetadata, (google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& request), (override)); + MOCK_METHOD( + StatusOr, SetMetadata, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& + request), + (override)); + + MOCK_METHOD(future>, + SetMetadata, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetMinCpuPlatform, (google::cloud::cpp::compute::instances::v1:: SetMinCpuPlatformRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetMinCpuPlatform, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetMinCpuPlatformRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetMinCpuPlatform, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetName, (google::cloud::cpp::compute::instances::v1::SetNameRequest const& request), (override)); + MOCK_METHOD(StatusOr, SetName, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetNameRequest const& + request), + (override)); + + MOCK_METHOD(future>, + SetName, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, SetScheduling, @@ -252,58 +509,184 @@ class MockInstancesConnection request), (override)); + MOCK_METHOD( + StatusOr, SetScheduling, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& + request), + (override)); + + MOCK_METHOD(future>, + SetScheduling, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetSecurityPolicy, (google::cloud::cpp::compute::instances::v1:: SetSecurityPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetSecurityPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetSecurityPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetSecurityPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetServiceAccount, (google::cloud::cpp::compute::instances::v1:: SetServiceAccountRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetServiceAccount, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetServiceAccountRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetServiceAccount, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetShieldedInstanceIntegrityPolicy, (google::cloud::cpp::compute::instances::v1:: SetShieldedInstanceIntegrityPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetShieldedInstanceIntegrityPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SetShieldedInstanceIntegrityPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetShieldedInstanceIntegrityPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetTags, (google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request), (override)); + MOCK_METHOD(StatusOr, SetTags, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SetTagsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + SetTags, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SimulateMaintenanceEvent, (google::cloud::cpp::compute::instances::v1:: SimulateMaintenanceEventRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SimulateMaintenanceEvent, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + SimulateMaintenanceEventRequest const& request), + (override)); + + MOCK_METHOD(future>, + SimulateMaintenanceEvent, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, Start, (google::cloud::cpp::compute::instances::v1::StartRequest const& request), (override)); + MOCK_METHOD( + StatusOr, Start, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::StartRequest const& request), + (override)); + + MOCK_METHOD(future>, + Start, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, StartWithEncryptionKey, (google::cloud::cpp::compute::instances::v1:: StartWithEncryptionKeyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + StartWithEncryptionKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + StartWithEncryptionKeyRequest const& request), + (override)); + + MOCK_METHOD(future>, + StartWithEncryptionKey, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, Stop, (google::cloud::cpp::compute::instances::v1::StopRequest const& request), (override)); + MOCK_METHOD( + StatusOr, Stop, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::StopRequest const& request), + (override)); + + MOCK_METHOD(future>, + Stop, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, Suspend, (google::cloud::cpp::compute::instances::v1::SuspendRequest const& request), (override)); + MOCK_METHOD(StatusOr, Suspend, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::SuspendRequest const& + request), + (override)); + + MOCK_METHOD(future>, + Suspend, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, TestIamPermissions, @@ -318,29 +701,94 @@ class MockInstancesConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateInstance, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateAccessConfig, (google::cloud::cpp::compute::instances::v1:: UpdateAccessConfigRequest const& request), (override)); + MOCK_METHOD(StatusOr, + UpdateAccessConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateAccessConfigRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateAccessConfig, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateDisplayDevice, (google::cloud::cpp::compute::instances::v1:: UpdateDisplayDeviceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + UpdateDisplayDevice, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateDisplayDeviceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateDisplayDevice, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateNetworkInterface, (google::cloud::cpp::compute::instances::v1:: UpdateNetworkInterfaceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + UpdateNetworkInterface, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateNetworkInterfaceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateNetworkInterface, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateShieldedInstanceConfig, (google::cloud::cpp::compute::instances::v1:: UpdateShieldedInstanceConfigRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + UpdateShieldedInstanceConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::instances::v1:: + UpdateShieldedInstanceConfigRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateShieldedInstanceConfig, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection.cc b/google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection.cc index 4ad388c70f1ac..c9589ced5ae01 100644 --- a/google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection.cc +++ b/google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection.cc @@ -57,6 +57,24 @@ InterconnectAttachmentsConnection::DeleteInterconnectAttachment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InterconnectAttachmentsConnection::DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + DeleteInterconnectAttachmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InterconnectAttachmentsConnection::DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr InterconnectAttachmentsConnection::GetInterconnectAttachment( google::cloud::cpp::compute::interconnect_attachments::v1:: @@ -73,6 +91,24 @@ InterconnectAttachmentsConnection::InsertInterconnectAttachment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InterconnectAttachmentsConnection::InsertInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + InsertInterconnectAttachmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InterconnectAttachmentsConnection::InsertInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange InterconnectAttachmentsConnection::ListInterconnectAttachments( google::cloud::cpp::compute::interconnect_attachments::v1:: @@ -90,6 +126,24 @@ InterconnectAttachmentsConnection::PatchInterconnectAttachment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InterconnectAttachmentsConnection::PatchInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + PatchInterconnectAttachmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InterconnectAttachmentsConnection::PatchInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InterconnectAttachmentsConnection::SetLabels( google::cloud::cpp::compute::interconnect_attachments::v1:: @@ -99,6 +153,24 @@ InterconnectAttachmentsConnection::SetLabels( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InterconnectAttachmentsConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + SetLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InterconnectAttachmentsConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_interconnect_attachments_v1 } // namespace cloud diff --git a/google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection.h b/google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection.h index 605a69dbb475b..b4f3892bcb1cb 100644 --- a/google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection.h +++ b/google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection_idempotency_policy.h" #include "google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -207,6 +209,17 @@ class InterconnectAttachmentsConnection { google::cloud::cpp::compute::interconnect_attachments::v1:: DeleteInterconnectAttachmentRequest const& request); + virtual StatusOr + DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + DeleteInterconnectAttachmentRequest const& request); + + virtual future> + DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetInterconnectAttachment( google::cloud::cpp::compute::interconnect_attachments::v1:: @@ -217,6 +230,17 @@ class InterconnectAttachmentsConnection { google::cloud::cpp::compute::interconnect_attachments::v1:: InsertInterconnectAttachmentRequest const& request); + virtual StatusOr + InsertInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + InsertInterconnectAttachmentRequest const& request); + + virtual future> + InsertInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListInterconnectAttachments( google::cloud::cpp::compute::interconnect_attachments::v1:: @@ -227,9 +251,29 @@ class InterconnectAttachmentsConnection { google::cloud::cpp::compute::interconnect_attachments::v1:: PatchInterconnectAttachmentRequest const& request); + virtual StatusOr + PatchInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + PatchInterconnectAttachmentRequest const& request); + + virtual future> + PatchInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetLabels(google::cloud::cpp::compute::interconnect_attachments::v1:: SetLabelsRequest const& request); + + virtual StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + SetLabelsRequest const& request); + + virtual future> + SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_rest_connection_impl.cc b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_rest_connection_impl.cc index 4ef1d9a57a226..e29903c3019e6 100644 --- a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_rest_connection_impl.cc +++ b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -154,6 +155,80 @@ InterconnectAttachmentsRestConnectionImpl::DeleteInterconnectAttachment( }); } +StatusOr +InterconnectAttachmentsRestConnectionImpl::DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + DeleteInterconnectAttachmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInterconnectAttachment(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::interconnect_attachments::v1:: + DeleteInterconnectAttachmentRequest const& request) { + return stub_->DeleteInterconnectAttachment(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +InterconnectAttachmentsRestConnectionImpl::DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr InterconnectAttachmentsRestConnectionImpl::GetInterconnectAttachment( google::cloud::cpp::compute::interconnect_attachments::v1:: @@ -230,6 +305,80 @@ InterconnectAttachmentsRestConnectionImpl::InsertInterconnectAttachment( }); } +StatusOr +InterconnectAttachmentsRestConnectionImpl::InsertInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + InsertInterconnectAttachmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertInterconnectAttachment(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::interconnect_attachments::v1:: + InsertInterconnectAttachmentRequest const& request) { + return stub_->InsertInterconnectAttachment(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +InterconnectAttachmentsRestConnectionImpl::InsertInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange InterconnectAttachmentsRestConnectionImpl::ListInterconnectAttachments( google::cloud::cpp::compute::interconnect_attachments::v1:: @@ -330,6 +479,80 @@ InterconnectAttachmentsRestConnectionImpl::PatchInterconnectAttachment( }); } +StatusOr +InterconnectAttachmentsRestConnectionImpl::PatchInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + PatchInterconnectAttachmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchInterconnectAttachment(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::interconnect_attachments::v1:: + PatchInterconnectAttachmentRequest const& request) { + return stub_->PatchInterconnectAttachment(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +InterconnectAttachmentsRestConnectionImpl::PatchInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> InterconnectAttachmentsRestConnectionImpl::SetLabels( google::cloud::cpp::compute::interconnect_attachments::v1:: @@ -390,6 +613,79 @@ InterconnectAttachmentsRestConnectionImpl::SetLabels( }); } +StatusOr +InterconnectAttachmentsRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + SetLabelsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::interconnect_attachments::v1:: + SetLabelsRequest const& request) { + return stub_->SetLabels(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InterconnectAttachmentsRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_interconnect_attachments_v1_internal } // namespace cloud diff --git a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_rest_connection_impl.h b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_rest_connection_impl.h index 6b2b47a090352..c027024b8925f 100644 --- a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_rest_connection_impl.h +++ b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_rest_connection_impl.h @@ -65,6 +65,17 @@ class InterconnectAttachmentsRestConnectionImpl google::cloud::cpp::compute::interconnect_attachments::v1:: DeleteInterconnectAttachmentRequest const& request) override; + StatusOr + DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + DeleteInterconnectAttachmentRequest const& request) override; + + future> + DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInterconnectAttachment( google::cloud::cpp::compute::interconnect_attachments::v1:: @@ -75,6 +86,17 @@ class InterconnectAttachmentsRestConnectionImpl google::cloud::cpp::compute::interconnect_attachments::v1:: InsertInterconnectAttachmentRequest const& request) override; + StatusOr + InsertInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + InsertInterconnectAttachmentRequest const& request) override; + + future> + InsertInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListInterconnectAttachments( google::cloud::cpp::compute::interconnect_attachments::v1:: @@ -85,10 +107,30 @@ class InterconnectAttachmentsRestConnectionImpl google::cloud::cpp::compute::interconnect_attachments::v1:: PatchInterconnectAttachmentRequest const& request) override; + StatusOr + PatchInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + PatchInterconnectAttachmentRequest const& request) override; + + future> + PatchInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetLabels( google::cloud::cpp::compute::interconnect_attachments::v1:: SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + SetLabelsRequest const& request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_interconnect_attachments_v1::InterconnectAttachmentsRetryPolicy> diff --git a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.cc b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.cc index 7b37e89248c29..7ff7738d29741 100644 --- a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.cc +++ b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.cc @@ -65,6 +65,33 @@ InterconnectAttachmentsTracingConnection::DeleteInterconnectAttachment( child_->DeleteInterconnectAttachment(request)); } +StatusOr +InterconnectAttachmentsTracingConnection::DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + DeleteInterconnectAttachmentRequest const& request) { + auto span = internal::MakeSpan( + "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" + "DeleteInterconnectAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteInterconnectAttachment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InterconnectAttachmentsTracingConnection::DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" + "DeleteInterconnectAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteInterconnectAttachment( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr InterconnectAttachmentsTracingConnection::GetInterconnectAttachment( google::cloud::cpp::compute::interconnect_attachments::v1:: @@ -88,6 +115,33 @@ InterconnectAttachmentsTracingConnection::InsertInterconnectAttachment( child_->InsertInterconnectAttachment(request)); } +StatusOr +InterconnectAttachmentsTracingConnection::InsertInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + InsertInterconnectAttachmentRequest const& request) { + auto span = internal::MakeSpan( + "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" + "InsertInterconnectAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertInterconnectAttachment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InterconnectAttachmentsTracingConnection::InsertInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" + "InsertInterconnectAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertInterconnectAttachment( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange InterconnectAttachmentsTracingConnection::ListInterconnectAttachments( google::cloud::cpp::compute::interconnect_attachments::v1:: @@ -114,6 +168,33 @@ InterconnectAttachmentsTracingConnection::PatchInterconnectAttachment( child_->PatchInterconnectAttachment(request)); } +StatusOr +InterconnectAttachmentsTracingConnection::PatchInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + PatchInterconnectAttachmentRequest const& request) { + auto span = internal::MakeSpan( + "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" + "PatchInterconnectAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchInterconnectAttachment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InterconnectAttachmentsTracingConnection::PatchInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" + "PatchInterconnectAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchInterconnectAttachment( + google::cloud::ExperimentalTag{}, operation)); +} + future> InterconnectAttachmentsTracingConnection::SetLabels( google::cloud::cpp::compute::interconnect_attachments::v1:: @@ -125,6 +206,33 @@ InterconnectAttachmentsTracingConnection::SetLabels( return internal::EndSpan(std::move(span), child_->SetLabels(request)); } +StatusOr +InterconnectAttachmentsTracingConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + SetLabelsRequest const& request) { + auto span = internal::MakeSpan( + "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" + "SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InterconnectAttachmentsTracingConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" + "SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr< diff --git a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.h b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.h index 322a5baf12702..da91e01372170 100644 --- a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.h +++ b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.h @@ -55,6 +55,17 @@ class InterconnectAttachmentsTracingConnection google::cloud::cpp::compute::interconnect_attachments::v1:: DeleteInterconnectAttachmentRequest const& request) override; + StatusOr + DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + DeleteInterconnectAttachmentRequest const& request) override; + + future> + DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInterconnectAttachment( google::cloud::cpp::compute::interconnect_attachments::v1:: @@ -65,6 +76,17 @@ class InterconnectAttachmentsTracingConnection google::cloud::cpp::compute::interconnect_attachments::v1:: InsertInterconnectAttachmentRequest const& request) override; + StatusOr + InsertInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + InsertInterconnectAttachmentRequest const& request) override; + + future> + InsertInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListInterconnectAttachments( google::cloud::cpp::compute::interconnect_attachments::v1:: @@ -75,10 +97,30 @@ class InterconnectAttachmentsTracingConnection google::cloud::cpp::compute::interconnect_attachments::v1:: PatchInterconnectAttachmentRequest const& request) override; + StatusOr + PatchInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + PatchInterconnectAttachmentRequest const& request) override; + + future> + PatchInterconnectAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetLabels( google::cloud::cpp::compute::interconnect_attachments::v1:: SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + SetLabelsRequest const& request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr< compute_interconnect_attachments_v1::InterconnectAttachmentsConnection> diff --git a/google/cloud/compute/interconnect_attachments/v1/mocks/mock_interconnect_attachments_connection.h b/google/cloud/compute/interconnect_attachments/v1/mocks/mock_interconnect_attachments_connection.h index a7821609af8fa..4cd3f9d515393 100644 --- a/google/cloud/compute/interconnect_attachments/v1/mocks/mock_interconnect_attachments_connection.h +++ b/google/cloud/compute/interconnect_attachments/v1/mocks/mock_interconnect_attachments_connection.h @@ -63,6 +63,19 @@ class MockInterconnectAttachmentsConnection DeleteInterconnectAttachmentRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteInterconnectAttachment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + DeleteInterconnectAttachmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInterconnectAttachment, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetInterconnectAttachment, (google::cloud::cpp::compute::interconnect_attachments::v1:: @@ -75,6 +88,19 @@ class MockInterconnectAttachmentsConnection InsertInterconnectAttachmentRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertInterconnectAttachment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + InsertInterconnectAttachmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertInterconnectAttachment, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListInterconnectAttachments, @@ -88,11 +114,36 @@ class MockInterconnectAttachmentsConnection PatchInterconnectAttachmentRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchInterconnectAttachment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + PatchInterconnectAttachmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchInterconnectAttachment, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetLabels, (google::cloud::cpp::compute::interconnect_attachments::v1:: SetLabelsRequest const& request), (override)); + + MOCK_METHOD(StatusOr, SetLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnect_attachments::v1:: + SetLabelsRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetLabels, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/interconnect_locations/v1/interconnect_locations_connection.h b/google/cloud/compute/interconnect_locations/v1/interconnect_locations_connection.h index 97a07d7349fbd..a517b03f2655d 100644 --- a/google/cloud/compute/interconnect_locations/v1/interconnect_locations_connection.h +++ b/google/cloud/compute/interconnect_locations/v1/interconnect_locations_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/interconnect_locations/v1/interconnect_locations_connection_idempotency_policy.h" #include "google/cloud/compute/interconnect_locations/v1/internal/interconnect_locations_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/compute/interconnect_remote_locations/v1/interconnect_remote_locations_connection.h b/google/cloud/compute/interconnect_remote_locations/v1/interconnect_remote_locations_connection.h index 8429dc64f890d..a0f0b7ce83483 100644 --- a/google/cloud/compute/interconnect_remote_locations/v1/interconnect_remote_locations_connection.h +++ b/google/cloud/compute/interconnect_remote_locations/v1/interconnect_remote_locations_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/interconnect_remote_locations/v1/interconnect_remote_locations_connection_idempotency_policy.h" #include "google/cloud/compute/interconnect_remote_locations/v1/internal/interconnect_remote_locations_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/compute/interconnects/v1/interconnects_connection.cc b/google/cloud/compute/interconnects/v1/interconnects_connection.cc index 10ac8ec6e52fb..7a117de630b9e 100644 --- a/google/cloud/compute/interconnects/v1/interconnects_connection.cc +++ b/google/cloud/compute/interconnects/v1/interconnects_connection.cc @@ -45,6 +45,24 @@ InterconnectsConnection::DeleteInterconnect( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InterconnectsConnection::DeleteInterconnect( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + DeleteInterconnectRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InterconnectsConnection::DeleteInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr InterconnectsConnection::GetInterconnect( google::cloud::cpp::compute::interconnects::v1:: @@ -75,6 +93,24 @@ InterconnectsConnection::InsertInterconnect( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InterconnectsConnection::InsertInterconnect( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + InsertInterconnectRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InterconnectsConnection::InsertInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange InterconnectsConnection::ListInterconnects( google::cloud::cpp::compute::interconnects::v1:: @@ -92,6 +128,24 @@ InterconnectsConnection::PatchInterconnect( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InterconnectsConnection::PatchInterconnect( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + PatchInterconnectRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InterconnectsConnection::PatchInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InterconnectsConnection::SetLabels( google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const&) { @@ -100,6 +154,23 @@ InterconnectsConnection::SetLabels( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InterconnectsConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InterconnectsConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_interconnects_v1 } // namespace cloud diff --git a/google/cloud/compute/interconnects/v1/interconnects_connection.h b/google/cloud/compute/interconnects/v1/interconnects_connection.h index 6be2b086897ea..b04534349e283 100644 --- a/google/cloud/compute/interconnects/v1/interconnects_connection.h +++ b/google/cloud/compute/interconnects/v1/interconnects_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/interconnects/v1/interconnects_connection_idempotency_policy.h" #include "google/cloud/compute/interconnects/v1/internal/interconnects_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -189,6 +191,16 @@ class InterconnectsConnection { DeleteInterconnect(google::cloud::cpp::compute::interconnects::v1:: DeleteInterconnectRequest const& request); + virtual StatusOr + DeleteInterconnect(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + DeleteInterconnectRequest const& request); + + virtual future> + DeleteInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetInterconnect(google::cloud::cpp::compute::interconnects::v1:: GetInterconnectRequest const& request); @@ -207,6 +219,16 @@ class InterconnectsConnection { InsertInterconnect(google::cloud::cpp::compute::interconnects::v1:: InsertInterconnectRequest const& request); + virtual StatusOr + InsertInterconnect(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + InsertInterconnectRequest const& request); + + virtual future> + InsertInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListInterconnects( google::cloud::cpp::compute::interconnects::v1::ListInterconnectsRequest @@ -216,10 +238,29 @@ class InterconnectsConnection { PatchInterconnect(google::cloud::cpp::compute::interconnects::v1:: PatchInterconnectRequest const& request); + virtual StatusOr + PatchInterconnect(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + PatchInterconnectRequest const& request); + + virtual future> + PatchInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetLabels( google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& request); + + virtual StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& + request); + + virtual future> + SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/interconnects/v1/internal/interconnects_rest_connection_impl.cc b/google/cloud/compute/interconnects/v1/internal/interconnects_rest_connection_impl.cc index daf8fe70dd4d1..0b3b5fc7b2100 100644 --- a/google/cloud/compute/interconnects/v1/internal/interconnects_rest_connection_impl.cc +++ b/google/cloud/compute/interconnects/v1/internal/interconnects_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -101,6 +102,77 @@ InterconnectsRestConnectionImpl::DeleteInterconnect( }); } +StatusOr +InterconnectsRestConnectionImpl::DeleteInterconnect( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + DeleteInterconnectRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInterconnect(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::interconnects::v1:: + DeleteInterconnectRequest const& request) { + return stub_->DeleteInterconnect(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InterconnectsRestConnectionImpl::DeleteInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr InterconnectsRestConnectionImpl::GetInterconnect( google::cloud::cpp::compute::interconnects::v1:: @@ -207,6 +279,77 @@ InterconnectsRestConnectionImpl::InsertInterconnect( }); } +StatusOr +InterconnectsRestConnectionImpl::InsertInterconnect( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + InsertInterconnectRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertInterconnect(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::interconnects::v1:: + InsertInterconnectRequest const& request) { + return stub_->InsertInterconnect(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InterconnectsRestConnectionImpl::InsertInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange InterconnectsRestConnectionImpl::ListInterconnects( google::cloud::cpp::compute::interconnects::v1::ListInterconnectsRequest @@ -302,6 +445,77 @@ InterconnectsRestConnectionImpl::PatchInterconnect( }); } +StatusOr +InterconnectsRestConnectionImpl::PatchInterconnect( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + PatchInterconnectRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchInterconnect(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::interconnects::v1:: + PatchInterconnectRequest const& request) { + return stub_->PatchInterconnect(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InterconnectsRestConnectionImpl::PatchInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> InterconnectsRestConnectionImpl::SetLabels( google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& @@ -360,6 +574,77 @@ InterconnectsRestConnectionImpl::SetLabels( }); } +StatusOr +InterconnectsRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::interconnects::v1:: + SetLabelsRequest const& request) { + return stub_->SetLabels(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InterconnectsRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_interconnects_v1_internal } // namespace cloud diff --git a/google/cloud/compute/interconnects/v1/internal/interconnects_rest_connection_impl.h b/google/cloud/compute/interconnects/v1/internal/interconnects_rest_connection_impl.h index bb6a038356959..8c76a33064c17 100644 --- a/google/cloud/compute/interconnects/v1/internal/interconnects_rest_connection_impl.h +++ b/google/cloud/compute/interconnects/v1/internal/interconnects_rest_connection_impl.h @@ -55,6 +55,16 @@ class InterconnectsRestConnectionImpl DeleteInterconnect(google::cloud::cpp::compute::interconnects::v1:: DeleteInterconnectRequest const& request) override; + StatusOr DeleteInterconnect( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + DeleteInterconnectRequest const& request) override; + + future> + DeleteInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInterconnect( google::cloud::cpp::compute::interconnects::v1:: GetInterconnectRequest const& request) override; @@ -72,6 +82,16 @@ class InterconnectsRestConnectionImpl InsertInterconnect(google::cloud::cpp::compute::interconnects::v1:: InsertInterconnectRequest const& request) override; + StatusOr InsertInterconnect( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + InsertInterconnectRequest const& request) override; + + future> + InsertInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListInterconnects( google::cloud::cpp::compute::interconnects::v1::ListInterconnectsRequest request) override; @@ -80,10 +100,29 @@ class InterconnectsRestConnectionImpl PatchInterconnect(google::cloud::cpp::compute::interconnects::v1:: PatchInterconnectRequest const& request) override; + StatusOr PatchInterconnect( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + PatchInterconnectRequest const& request) override; + + future> + PatchInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetLabels( google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy(Options const& options) { diff --git a/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.cc b/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.cc index d8f729f8d4d04..9cc3d353dadfc 100644 --- a/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.cc +++ b/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.cc @@ -44,6 +44,31 @@ InterconnectsTracingConnection::DeleteInterconnect( child_->DeleteInterconnect(request)); } +StatusOr +InterconnectsTracingConnection::DeleteInterconnect( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + DeleteInterconnectRequest const& request) { + auto span = internal::MakeSpan( + "compute_interconnects_v1::InterconnectsConnection::DeleteInterconnect"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteInterconnect(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InterconnectsTracingConnection::DeleteInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_interconnects_v1::InterconnectsConnection::DeleteInterconnect"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteInterconnect(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr InterconnectsTracingConnection::GetInterconnect( google::cloud::cpp::compute::interconnects::v1:: @@ -85,6 +110,31 @@ InterconnectsTracingConnection::InsertInterconnect( child_->InsertInterconnect(request)); } +StatusOr +InterconnectsTracingConnection::InsertInterconnect( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + InsertInterconnectRequest const& request) { + auto span = internal::MakeSpan( + "compute_interconnects_v1::InterconnectsConnection::InsertInterconnect"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertInterconnect(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InterconnectsTracingConnection::InsertInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_interconnects_v1::InterconnectsConnection::InsertInterconnect"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertInterconnect(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange InterconnectsTracingConnection::ListInterconnects( google::cloud::cpp::compute::interconnects::v1::ListInterconnectsRequest @@ -108,6 +158,31 @@ InterconnectsTracingConnection::PatchInterconnect( return internal::EndSpan(std::move(span), child_->PatchInterconnect(request)); } +StatusOr +InterconnectsTracingConnection::PatchInterconnect( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + PatchInterconnectRequest const& request) { + auto span = internal::MakeSpan( + "compute_interconnects_v1::InterconnectsConnection::PatchInterconnect"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchInterconnect(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InterconnectsTracingConnection::PatchInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_interconnects_v1::InterconnectsConnection::PatchInterconnect"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchInterconnect(google::cloud::ExperimentalTag{}, operation)); +} + future> InterconnectsTracingConnection::SetLabels( google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& @@ -118,6 +193,31 @@ InterconnectsTracingConnection::SetLabels( return internal::EndSpan(std::move(span), child_->SetLabels(request)); } +StatusOr +InterconnectsTracingConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& + request) { + auto span = internal::MakeSpan( + "compute_interconnects_v1::InterconnectsConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InterconnectsTracingConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_interconnects_v1::InterconnectsConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.h b/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.h index 58b9ac4415376..4a614ee21b041 100644 --- a/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.h +++ b/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.h @@ -44,6 +44,16 @@ class InterconnectsTracingConnection DeleteInterconnect(google::cloud::cpp::compute::interconnects::v1:: DeleteInterconnectRequest const& request) override; + StatusOr DeleteInterconnect( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + DeleteInterconnectRequest const& request) override; + + future> + DeleteInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInterconnect( google::cloud::cpp::compute::interconnects::v1:: GetInterconnectRequest const& request) override; @@ -61,6 +71,16 @@ class InterconnectsTracingConnection InsertInterconnect(google::cloud::cpp::compute::interconnects::v1:: InsertInterconnectRequest const& request) override; + StatusOr InsertInterconnect( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + InsertInterconnectRequest const& request) override; + + future> + InsertInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListInterconnects( google::cloud::cpp::compute::interconnects::v1::ListInterconnectsRequest request) override; @@ -69,10 +89,29 @@ class InterconnectsTracingConnection PatchInterconnect(google::cloud::cpp::compute::interconnects::v1:: PatchInterconnectRequest const& request) override; + StatusOr PatchInterconnect( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + PatchInterconnectRequest const& request) override; + + future> + PatchInterconnect( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetLabels( google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/interconnects/v1/mocks/mock_interconnects_connection.h b/google/cloud/compute/interconnects/v1/mocks/mock_interconnects_connection.h index 0c927ff6d0cd4..be42f95efeeb9 100644 --- a/google/cloud/compute/interconnects/v1/mocks/mock_interconnects_connection.h +++ b/google/cloud/compute/interconnects/v1/mocks/mock_interconnects_connection.h @@ -53,6 +53,19 @@ class MockInterconnectsConnection DeleteInterconnectRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteInterconnect, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + DeleteInterconnectRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInterconnect, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetInterconnect, (google::cloud::cpp::compute::interconnects::v1:: @@ -80,6 +93,19 @@ class MockInterconnectsConnection InsertInterconnectRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertInterconnect, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + InsertInterconnectRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertInterconnect, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListInterconnects, @@ -93,11 +119,37 @@ class MockInterconnectsConnection PatchInterconnectRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchInterconnect, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1:: + PatchInterconnectRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchInterconnect, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, SetLabels, (google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, SetLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + SetLabels, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/license_codes/v1/license_codes_connection.h b/google/cloud/compute/license_codes/v1/license_codes_connection.h index 3f3abfc397baf..901d0b1ec9393 100644 --- a/google/cloud/compute/license_codes/v1/license_codes_connection.h +++ b/google/cloud/compute/license_codes/v1/license_codes_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/license_codes/v1/internal/license_codes_retry_traits.h" #include "google/cloud/compute/license_codes/v1/license_codes_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/compute/licenses/v1/internal/licenses_rest_connection_impl.cc b/google/cloud/compute/licenses/v1/internal/licenses_rest_connection_impl.cc index c4dfb8dd247f1..46da5a5be6fc1 100644 --- a/google/cloud/compute/licenses/v1/internal/licenses_rest_connection_impl.cc +++ b/google/cloud/compute/licenses/v1/internal/licenses_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -101,6 +102,78 @@ LicensesRestConnectionImpl::DeleteLicense( }); } +StatusOr +LicensesRestConnectionImpl::DeleteLicense( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteLicense(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const& + request) { + return stub_->DeleteLicense(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +LicensesRestConnectionImpl::DeleteLicense( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr LicensesRestConnectionImpl::GetLicense( google::cloud::cpp::compute::licenses::v1::GetLicenseRequest const& @@ -193,6 +266,78 @@ LicensesRestConnectionImpl::InsertLicense( }); } +StatusOr +LicensesRestConnectionImpl::InsertLicense( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertLicense(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const& + request) { + return stub_->InsertLicense(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +LicensesRestConnectionImpl::InsertLicense( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange LicensesRestConnectionImpl::ListLicenses( google::cloud::cpp::compute::licenses::v1::ListLicensesRequest request) { diff --git a/google/cloud/compute/licenses/v1/internal/licenses_rest_connection_impl.h b/google/cloud/compute/licenses/v1/internal/licenses_rest_connection_impl.h index 4797022eb6f55..b5de5057f2779 100644 --- a/google/cloud/compute/licenses/v1/internal/licenses_rest_connection_impl.h +++ b/google/cloud/compute/licenses/v1/internal/licenses_rest_connection_impl.h @@ -54,6 +54,15 @@ class LicensesRestConnectionImpl google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const& request) override; + StatusOr DeleteLicense( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const& + request) override; + + future> DeleteLicense( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetLicense( google::cloud::cpp::compute::licenses::v1::GetLicenseRequest const& request) override; @@ -66,6 +75,15 @@ class LicensesRestConnectionImpl google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const& request) override; + StatusOr InsertLicense( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const& + request) override; + + future> InsertLicense( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListLicenses( google::cloud::cpp::compute::licenses::v1::ListLicensesRequest request) override; diff --git a/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.cc b/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.cc index 3830c448661be..6ce901694cfa9 100644 --- a/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.cc +++ b/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.cc @@ -43,6 +43,31 @@ LicensesTracingConnection::DeleteLicense( return internal::EndSpan(std::move(span), child_->DeleteLicense(request)); } +StatusOr +LicensesTracingConnection::DeleteLicense( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const& + request) { + auto span = internal::MakeSpan( + "compute_licenses_v1::LicensesConnection::DeleteLicense"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteLicense(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +LicensesTracingConnection::DeleteLicense( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_licenses_v1::LicensesConnection::DeleteLicense"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteLicense(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr LicensesTracingConnection::GetLicense( google::cloud::cpp::compute::licenses::v1::GetLicenseRequest const& @@ -73,6 +98,31 @@ LicensesTracingConnection::InsertLicense( return internal::EndSpan(std::move(span), child_->InsertLicense(request)); } +StatusOr +LicensesTracingConnection::InsertLicense( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const& + request) { + auto span = internal::MakeSpan( + "compute_licenses_v1::LicensesConnection::InsertLicense"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertLicense(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +LicensesTracingConnection::InsertLicense( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_licenses_v1::LicensesConnection::InsertLicense"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertLicense(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange LicensesTracingConnection::ListLicenses( google::cloud::cpp::compute::licenses::v1::ListLicensesRequest request) { diff --git a/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.h b/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.h index 6eb18b9d2cf31..3c600a759e46d 100644 --- a/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.h +++ b/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.h @@ -44,6 +44,15 @@ class LicensesTracingConnection google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const& request) override; + StatusOr DeleteLicense( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const& + request) override; + + future> DeleteLicense( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetLicense( google::cloud::cpp::compute::licenses::v1::GetLicenseRequest const& request) override; @@ -56,6 +65,15 @@ class LicensesTracingConnection google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const& request) override; + StatusOr InsertLicense( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const& + request) override; + + future> InsertLicense( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListLicenses( google::cloud::cpp::compute::licenses::v1::ListLicensesRequest request) override; diff --git a/google/cloud/compute/licenses/v1/licenses_connection.cc b/google/cloud/compute/licenses/v1/licenses_connection.cc index bc1f4e3749aa0..f8bdaeab899d6 100644 --- a/google/cloud/compute/licenses/v1/licenses_connection.cc +++ b/google/cloud/compute/licenses/v1/licenses_connection.cc @@ -44,6 +44,23 @@ LicensesConnection::DeleteLicense( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +LicensesConnection::DeleteLicense( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +LicensesConnection::DeleteLicense( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr LicensesConnection::GetLicense( google::cloud::cpp::compute::licenses::v1::GetLicenseRequest const&) { @@ -64,6 +81,23 @@ LicensesConnection::InsertLicense( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +LicensesConnection::InsertLicense( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +LicensesConnection::InsertLicense( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange LicensesConnection::ListLicenses( google::cloud::cpp::compute::licenses::v1:: diff --git a/google/cloud/compute/licenses/v1/licenses_connection.h b/google/cloud/compute/licenses/v1/licenses_connection.h index 734885df96d74..141b892f826ac 100644 --- a/google/cloud/compute/licenses/v1/licenses_connection.h +++ b/google/cloud/compute/licenses/v1/licenses_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/licenses/v1/internal/licenses_retry_traits.h" #include "google/cloud/compute/licenses/v1/licenses_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -186,6 +188,15 @@ class LicensesConnection { google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const& request); + virtual StatusOr DeleteLicense( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const& + request); + + virtual future> + DeleteLicense(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetLicense( google::cloud::cpp::compute::licenses::v1::GetLicenseRequest const& request); @@ -199,6 +210,15 @@ class LicensesConnection { google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const& request); + virtual StatusOr InsertLicense( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const& + request); + + virtual future> + InsertLicense(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListLicenses( google::cloud::cpp::compute::licenses::v1::ListLicensesRequest request); diff --git a/google/cloud/compute/licenses/v1/mocks/mock_licenses_connection.h b/google/cloud/compute/licenses/v1/mocks/mock_licenses_connection.h index f8509a5862408..9fb4403e9e5de 100644 --- a/google/cloud/compute/licenses/v1/mocks/mock_licenses_connection.h +++ b/google/cloud/compute/licenses/v1/mocks/mock_licenses_connection.h @@ -53,6 +53,19 @@ class MockLicensesConnection : public compute_licenses_v1::LicensesConnection { request), (override)); + MOCK_METHOD( + StatusOr, DeleteLicense, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteLicense, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetLicense, (google::cloud::cpp::compute::licenses::v1::GetLicenseRequest const& @@ -72,6 +85,19 @@ class MockLicensesConnection : public compute_licenses_v1::LicensesConnection { request), (override)); + MOCK_METHOD( + StatusOr, InsertLicense, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const& + request), + (override)); + + MOCK_METHOD(future>, + InsertLicense, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListLicenses, (google::cloud::cpp::compute::licenses::v1::ListLicensesRequest request), diff --git a/google/cloud/compute/machine_images/v1/internal/machine_images_rest_connection_impl.cc b/google/cloud/compute/machine_images/v1/internal/machine_images_rest_connection_impl.cc index a2f0b47518d99..2e090ece28739 100644 --- a/google/cloud/compute/machine_images/v1/internal/machine_images_rest_connection_impl.cc +++ b/google/cloud/compute/machine_images/v1/internal/machine_images_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -101,6 +102,77 @@ MachineImagesRestConnectionImpl::DeleteMachineImage( }); } +StatusOr +MachineImagesRestConnectionImpl::DeleteMachineImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::machine_images::v1:: + DeleteMachineImageRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteMachineImage(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::machine_images::v1:: + DeleteMachineImageRequest const& request) { + return stub_->DeleteMachineImage(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +MachineImagesRestConnectionImpl::DeleteMachineImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr MachineImagesRestConnectionImpl::GetMachineImage( google::cloud::cpp::compute::machine_images::v1:: @@ -191,6 +263,77 @@ MachineImagesRestConnectionImpl::InsertMachineImage( }); } +StatusOr +MachineImagesRestConnectionImpl::InsertMachineImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::machine_images::v1:: + InsertMachineImageRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertMachineImage(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::machine_images::v1:: + InsertMachineImageRequest const& request) { + return stub_->InsertMachineImage(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +MachineImagesRestConnectionImpl::InsertMachineImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange MachineImagesRestConnectionImpl::ListMachineImages( google::cloud::cpp::compute::machine_images::v1::ListMachineImagesRequest diff --git a/google/cloud/compute/machine_images/v1/internal/machine_images_rest_connection_impl.h b/google/cloud/compute/machine_images/v1/internal/machine_images_rest_connection_impl.h index a1405639eaba3..a7d917a47528b 100644 --- a/google/cloud/compute/machine_images/v1/internal/machine_images_rest_connection_impl.h +++ b/google/cloud/compute/machine_images/v1/internal/machine_images_rest_connection_impl.h @@ -55,6 +55,16 @@ class MachineImagesRestConnectionImpl DeleteMachineImage(google::cloud::cpp::compute::machine_images::v1:: DeleteMachineImageRequest const& request) override; + StatusOr DeleteMachineImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::machine_images::v1:: + DeleteMachineImageRequest const& request) override; + + future> + DeleteMachineImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetMachineImage( google::cloud::cpp::compute::machine_images::v1:: GetMachineImageRequest const& request) override; @@ -67,6 +77,16 @@ class MachineImagesRestConnectionImpl InsertMachineImage(google::cloud::cpp::compute::machine_images::v1:: InsertMachineImageRequest const& request) override; + StatusOr InsertMachineImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::machine_images::v1:: + InsertMachineImageRequest const& request) override; + + future> + InsertMachineImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListMachineImages( google::cloud::cpp::compute::machine_images::v1::ListMachineImagesRequest request) override; diff --git a/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.cc b/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.cc index 4d6ee3459e409..4be72ae399ab4 100644 --- a/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.cc +++ b/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.cc @@ -44,6 +44,31 @@ MachineImagesTracingConnection::DeleteMachineImage( child_->DeleteMachineImage(request)); } +StatusOr +MachineImagesTracingConnection::DeleteMachineImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::machine_images::v1:: + DeleteMachineImageRequest const& request) { + auto span = internal::MakeSpan( + "compute_machine_images_v1::MachineImagesConnection::DeleteMachineImage"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteMachineImage(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MachineImagesTracingConnection::DeleteMachineImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_machine_images_v1::MachineImagesConnection::DeleteMachineImage"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteMachineImage(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr MachineImagesTracingConnection::GetMachineImage( google::cloud::cpp::compute::machine_images::v1:: @@ -75,6 +100,31 @@ MachineImagesTracingConnection::InsertMachineImage( child_->InsertMachineImage(request)); } +StatusOr +MachineImagesTracingConnection::InsertMachineImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::machine_images::v1:: + InsertMachineImageRequest const& request) { + auto span = internal::MakeSpan( + "compute_machine_images_v1::MachineImagesConnection::InsertMachineImage"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertMachineImage(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MachineImagesTracingConnection::InsertMachineImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_machine_images_v1::MachineImagesConnection::InsertMachineImage"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertMachineImage(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange MachineImagesTracingConnection::ListMachineImages( google::cloud::cpp::compute::machine_images::v1::ListMachineImagesRequest diff --git a/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.h b/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.h index a900498a1e682..ebf957a9da701 100644 --- a/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.h +++ b/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.h @@ -45,6 +45,16 @@ class MachineImagesTracingConnection DeleteMachineImage(google::cloud::cpp::compute::machine_images::v1:: DeleteMachineImageRequest const& request) override; + StatusOr DeleteMachineImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::machine_images::v1:: + DeleteMachineImageRequest const& request) override; + + future> + DeleteMachineImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetMachineImage( google::cloud::cpp::compute::machine_images::v1:: GetMachineImageRequest const& request) override; @@ -57,6 +67,16 @@ class MachineImagesTracingConnection InsertMachineImage(google::cloud::cpp::compute::machine_images::v1:: InsertMachineImageRequest const& request) override; + StatusOr InsertMachineImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::machine_images::v1:: + InsertMachineImageRequest const& request) override; + + future> + InsertMachineImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListMachineImages( google::cloud::cpp::compute::machine_images::v1::ListMachineImagesRequest request) override; diff --git a/google/cloud/compute/machine_images/v1/machine_images_connection.cc b/google/cloud/compute/machine_images/v1/machine_images_connection.cc index a5e4cddfc9bb0..eaba94983776f 100644 --- a/google/cloud/compute/machine_images/v1/machine_images_connection.cc +++ b/google/cloud/compute/machine_images/v1/machine_images_connection.cc @@ -45,6 +45,24 @@ MachineImagesConnection::DeleteMachineImage( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MachineImagesConnection::DeleteMachineImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::machine_images::v1:: + DeleteMachineImageRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MachineImagesConnection::DeleteMachineImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr MachineImagesConnection::GetMachineImage( google::cloud::cpp::compute::machine_images::v1:: @@ -68,6 +86,24 @@ MachineImagesConnection::InsertMachineImage( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MachineImagesConnection::InsertMachineImage( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::machine_images::v1:: + InsertMachineImageRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MachineImagesConnection::InsertMachineImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange MachineImagesConnection::ListMachineImages( google::cloud::cpp::compute::machine_images::v1:: diff --git a/google/cloud/compute/machine_images/v1/machine_images_connection.h b/google/cloud/compute/machine_images/v1/machine_images_connection.h index 726775da85857..df773cb664c9f 100644 --- a/google/cloud/compute/machine_images/v1/machine_images_connection.h +++ b/google/cloud/compute/machine_images/v1/machine_images_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/machine_images/v1/internal/machine_images_retry_traits.h" #include "google/cloud/compute/machine_images/v1/machine_images_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -189,6 +191,16 @@ class MachineImagesConnection { DeleteMachineImage(google::cloud::cpp::compute::machine_images::v1:: DeleteMachineImageRequest const& request); + virtual StatusOr + DeleteMachineImage(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::machine_images::v1:: + DeleteMachineImageRequest const& request); + + virtual future> + DeleteMachineImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetMachineImage(google::cloud::cpp::compute::machine_images::v1:: GetMachineImageRequest const& request); @@ -201,6 +213,16 @@ class MachineImagesConnection { InsertMachineImage(google::cloud::cpp::compute::machine_images::v1:: InsertMachineImageRequest const& request); + virtual StatusOr + InsertMachineImage(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::machine_images::v1:: + InsertMachineImageRequest const& request); + + virtual future> + InsertMachineImage( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListMachineImages( google::cloud::cpp::compute::machine_images::v1::ListMachineImagesRequest diff --git a/google/cloud/compute/machine_images/v1/mocks/mock_machine_images_connection.h b/google/cloud/compute/machine_images/v1/mocks/mock_machine_images_connection.h index ff46614d2b3fa..6921398d0d101 100644 --- a/google/cloud/compute/machine_images/v1/mocks/mock_machine_images_connection.h +++ b/google/cloud/compute/machine_images/v1/mocks/mock_machine_images_connection.h @@ -53,6 +53,19 @@ class MockMachineImagesConnection DeleteMachineImageRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteMachineImage, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::machine_images::v1:: + DeleteMachineImageRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteMachineImage, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetMachineImage, (google::cloud::cpp::compute::machine_images::v1:: @@ -70,6 +83,19 @@ class MockMachineImagesConnection InsertMachineImageRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertMachineImage, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::machine_images::v1:: + InsertMachineImageRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertMachineImage, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListMachineImages, diff --git a/google/cloud/compute/machine_types/v1/machine_types_connection.h b/google/cloud/compute/machine_types/v1/machine_types_connection.h index f5f084a6c91b5..659aebc35f3d5 100644 --- a/google/cloud/compute/machine_types/v1/machine_types_connection.h +++ b/google/cloud/compute/machine_types/v1/machine_types_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/machine_types/v1/internal/machine_types_retry_traits.h" #include "google/cloud/compute/machine_types/v1/machine_types_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/compute/network_attachments/v1/internal/network_attachments_rest_connection_impl.cc b/google/cloud/compute/network_attachments/v1/internal/network_attachments_rest_connection_impl.cc index 8c7f489da41b3..295b0cf41118e 100644 --- a/google/cloud/compute/network_attachments/v1/internal/network_attachments_rest_connection_impl.cc +++ b/google/cloud/compute/network_attachments/v1/internal/network_attachments_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -147,6 +148,79 @@ NetworkAttachmentsRestConnectionImpl::DeleteNetworkAttachment( }); } +StatusOr +NetworkAttachmentsRestConnectionImpl::DeleteNetworkAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + DeleteNetworkAttachmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNetworkAttachment(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_attachments::v1:: + DeleteNetworkAttachmentRequest const& request) { + return stub_->DeleteNetworkAttachment(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkAttachmentsRestConnectionImpl::DeleteNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr NetworkAttachmentsRestConnectionImpl::GetNetworkAttachment( google::cloud::cpp::compute::network_attachments::v1:: @@ -239,6 +313,79 @@ NetworkAttachmentsRestConnectionImpl::InsertNetworkAttachment( }); } +StatusOr +NetworkAttachmentsRestConnectionImpl::InsertNetworkAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + InsertNetworkAttachmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertNetworkAttachment(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_attachments::v1:: + InsertNetworkAttachmentRequest const& request) { + return stub_->InsertNetworkAttachment(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkAttachmentsRestConnectionImpl::InsertNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange NetworkAttachmentsRestConnectionImpl::ListNetworkAttachments( google::cloud::cpp::compute::network_attachments::v1:: @@ -339,6 +486,79 @@ NetworkAttachmentsRestConnectionImpl::PatchNetworkAttachment( }); } +StatusOr +NetworkAttachmentsRestConnectionImpl::PatchNetworkAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + PatchNetworkAttachmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchNetworkAttachment(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_attachments::v1:: + PatchNetworkAttachmentRequest const& request) { + return stub_->PatchNetworkAttachment(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkAttachmentsRestConnectionImpl::PatchNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr NetworkAttachmentsRestConnectionImpl::SetIamPolicy( google::cloud::cpp::compute::network_attachments::v1:: diff --git a/google/cloud/compute/network_attachments/v1/internal/network_attachments_rest_connection_impl.h b/google/cloud/compute/network_attachments/v1/internal/network_attachments_rest_connection_impl.h index d0b1a8e7e7ba3..6a9e7d279268a 100644 --- a/google/cloud/compute/network_attachments/v1/internal/network_attachments_rest_connection_impl.h +++ b/google/cloud/compute/network_attachments/v1/internal/network_attachments_rest_connection_impl.h @@ -64,6 +64,16 @@ class NetworkAttachmentsRestConnectionImpl google::cloud::cpp::compute::network_attachments::v1:: DeleteNetworkAttachmentRequest const& request) override; + StatusOr DeleteNetworkAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + DeleteNetworkAttachmentRequest const& request) override; + + future> + DeleteNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNetworkAttachment(google::cloud::cpp::compute::network_attachments::v1:: GetNetworkAttachmentRequest const& request) override; @@ -77,6 +87,16 @@ class NetworkAttachmentsRestConnectionImpl google::cloud::cpp::compute::network_attachments::v1:: InsertNetworkAttachmentRequest const& request) override; + StatusOr InsertNetworkAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + InsertNetworkAttachmentRequest const& request) override; + + future> + InsertNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListNetworkAttachments(google::cloud::cpp::compute::network_attachments::v1:: ListNetworkAttachmentsRequest request) override; @@ -86,6 +106,16 @@ class NetworkAttachmentsRestConnectionImpl google::cloud::cpp::compute::network_attachments::v1:: PatchNetworkAttachmentRequest const& request) override; + StatusOr PatchNetworkAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + PatchNetworkAttachmentRequest const& request) override; + + future> + PatchNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::network_attachments::v1:: SetIamPolicyRequest const& request) override; diff --git a/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.cc b/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.cc index 3404ce9e17aa6..e098bcd8d6c39 100644 --- a/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.cc +++ b/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.cc @@ -63,6 +63,33 @@ NetworkAttachmentsTracingConnection::DeleteNetworkAttachment( child_->DeleteNetworkAttachment(request)); } +StatusOr +NetworkAttachmentsTracingConnection::DeleteNetworkAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + DeleteNetworkAttachmentRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_attachments_v1::NetworkAttachmentsConnection::" + "DeleteNetworkAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteNetworkAttachment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkAttachmentsTracingConnection::DeleteNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_attachments_v1::NetworkAttachmentsConnection::" + "DeleteNetworkAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteNetworkAttachment( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NetworkAttachmentsTracingConnection::GetNetworkAttachment( google::cloud::cpp::compute::network_attachments::v1:: @@ -97,6 +124,33 @@ NetworkAttachmentsTracingConnection::InsertNetworkAttachment( child_->InsertNetworkAttachment(request)); } +StatusOr +NetworkAttachmentsTracingConnection::InsertNetworkAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + InsertNetworkAttachmentRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_attachments_v1::NetworkAttachmentsConnection::" + "InsertNetworkAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertNetworkAttachment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkAttachmentsTracingConnection::InsertNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_attachments_v1::NetworkAttachmentsConnection::" + "InsertNetworkAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertNetworkAttachment( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetworkAttachmentsTracingConnection::ListNetworkAttachments( google::cloud::cpp::compute::network_attachments::v1:: @@ -123,6 +177,33 @@ NetworkAttachmentsTracingConnection::PatchNetworkAttachment( child_->PatchNetworkAttachment(request)); } +StatusOr +NetworkAttachmentsTracingConnection::PatchNetworkAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + PatchNetworkAttachmentRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_attachments_v1::NetworkAttachmentsConnection::" + "PatchNetworkAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchNetworkAttachment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkAttachmentsTracingConnection::PatchNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_attachments_v1::NetworkAttachmentsConnection::" + "PatchNetworkAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchNetworkAttachment( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NetworkAttachmentsTracingConnection::SetIamPolicy( google::cloud::cpp::compute::network_attachments::v1:: diff --git a/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.h b/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.h index 889adbc58c51b..f5983691814ff 100644 --- a/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.h +++ b/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.h @@ -54,6 +54,16 @@ class NetworkAttachmentsTracingConnection google::cloud::cpp::compute::network_attachments::v1:: DeleteNetworkAttachmentRequest const& request) override; + StatusOr DeleteNetworkAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + DeleteNetworkAttachmentRequest const& request) override; + + future> + DeleteNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNetworkAttachment(google::cloud::cpp::compute::network_attachments::v1:: GetNetworkAttachmentRequest const& request) override; @@ -67,6 +77,16 @@ class NetworkAttachmentsTracingConnection google::cloud::cpp::compute::network_attachments::v1:: InsertNetworkAttachmentRequest const& request) override; + StatusOr InsertNetworkAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + InsertNetworkAttachmentRequest const& request) override; + + future> + InsertNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListNetworkAttachments(google::cloud::cpp::compute::network_attachments::v1:: ListNetworkAttachmentsRequest request) override; @@ -76,6 +96,16 @@ class NetworkAttachmentsTracingConnection google::cloud::cpp::compute::network_attachments::v1:: PatchNetworkAttachmentRequest const& request) override; + StatusOr PatchNetworkAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + PatchNetworkAttachmentRequest const& request) override; + + future> + PatchNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::network_attachments::v1:: SetIamPolicyRequest const& request) override; diff --git a/google/cloud/compute/network_attachments/v1/mocks/mock_network_attachments_connection.h b/google/cloud/compute/network_attachments/v1/mocks/mock_network_attachments_connection.h index 5e7607902f7ba..6676f35bdb083 100644 --- a/google/cloud/compute/network_attachments/v1/mocks/mock_network_attachments_connection.h +++ b/google/cloud/compute/network_attachments/v1/mocks/mock_network_attachments_connection.h @@ -61,6 +61,19 @@ class MockNetworkAttachmentsConnection DeleteNetworkAttachmentRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteNetworkAttachment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + DeleteNetworkAttachmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteNetworkAttachment, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetNetworkAttachment, (google::cloud::cpp::compute::network_attachments::v1:: @@ -78,6 +91,19 @@ class MockNetworkAttachmentsConnection InsertNetworkAttachmentRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertNetworkAttachment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + InsertNetworkAttachmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertNetworkAttachment, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListNetworkAttachments, (google::cloud::cpp::compute::network_attachments::v1:: @@ -90,6 +116,19 @@ class MockNetworkAttachmentsConnection PatchNetworkAttachmentRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchNetworkAttachment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + PatchNetworkAttachmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchNetworkAttachment, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, SetIamPolicy, (google::cloud::cpp::compute::network_attachments::v1:: SetIamPolicyRequest const& request), diff --git a/google/cloud/compute/network_attachments/v1/network_attachments_connection.cc b/google/cloud/compute/network_attachments/v1/network_attachments_connection.cc index f874331c6b2ea..936c3899eb98b 100644 --- a/google/cloud/compute/network_attachments/v1/network_attachments_connection.cc +++ b/google/cloud/compute/network_attachments/v1/network_attachments_connection.cc @@ -55,6 +55,24 @@ NetworkAttachmentsConnection::DeleteNetworkAttachment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkAttachmentsConnection::DeleteNetworkAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + DeleteNetworkAttachmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkAttachmentsConnection::DeleteNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NetworkAttachmentsConnection::GetNetworkAttachment( google::cloud::cpp::compute::network_attachments::v1:: @@ -78,6 +96,24 @@ NetworkAttachmentsConnection::InsertNetworkAttachment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkAttachmentsConnection::InsertNetworkAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + InsertNetworkAttachmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkAttachmentsConnection::InsertNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetworkAttachmentsConnection::ListNetworkAttachments( google::cloud::cpp::compute::network_attachments::v1:: @@ -95,6 +131,24 @@ NetworkAttachmentsConnection::PatchNetworkAttachment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkAttachmentsConnection::PatchNetworkAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + PatchNetworkAttachmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkAttachmentsConnection::PatchNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NetworkAttachmentsConnection::SetIamPolicy( google::cloud::cpp::compute::network_attachments::v1:: diff --git a/google/cloud/compute/network_attachments/v1/network_attachments_connection.h b/google/cloud/compute/network_attachments/v1/network_attachments_connection.h index da3fe4c561ae6..95380faaa55fb 100644 --- a/google/cloud/compute/network_attachments/v1/network_attachments_connection.h +++ b/google/cloud/compute/network_attachments/v1/network_attachments_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/network_attachments/v1/internal/network_attachments_retry_traits.h" #include "google/cloud/compute/network_attachments/v1/network_attachments_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -199,6 +201,17 @@ class NetworkAttachmentsConnection { DeleteNetworkAttachment(google::cloud::cpp::compute::network_attachments::v1:: DeleteNetworkAttachmentRequest const& request); + virtual StatusOr + DeleteNetworkAttachment(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + DeleteNetworkAttachmentRequest const& request); + + virtual future> + DeleteNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetNetworkAttachment(google::cloud::cpp::compute::network_attachments::v1:: GetNetworkAttachmentRequest const& request); @@ -211,6 +224,17 @@ class NetworkAttachmentsConnection { InsertNetworkAttachment(google::cloud::cpp::compute::network_attachments::v1:: InsertNetworkAttachmentRequest const& request); + virtual StatusOr + InsertNetworkAttachment(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + InsertNetworkAttachmentRequest const& request); + + virtual future> + InsertNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListNetworkAttachments(google::cloud::cpp::compute::network_attachments::v1:: ListNetworkAttachmentsRequest request); @@ -219,6 +243,17 @@ class NetworkAttachmentsConnection { PatchNetworkAttachment(google::cloud::cpp::compute::network_attachments::v1:: PatchNetworkAttachmentRequest const& request); + virtual StatusOr + PatchNetworkAttachment(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_attachments::v1:: + PatchNetworkAttachmentRequest const& request); + + virtual future> + PatchNetworkAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr SetIamPolicy( google::cloud::cpp::compute::network_attachments::v1:: SetIamPolicyRequest const& request); diff --git a/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_rest_connection_impl.cc b/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_rest_connection_impl.cc index f56ca976fb7b1..5ef9c1b40d04a 100644 --- a/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_rest_connection_impl.cc +++ b/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -157,6 +158,80 @@ NetworkEdgeSecurityServicesRestConnectionImpl::DeleteNetworkEdgeSecurityService( }); } +StatusOr +NetworkEdgeSecurityServicesRestConnectionImpl::DeleteNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + DeleteNetworkEdgeSecurityServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNetworkEdgeSecurityService(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_edge_security_services::v1:: + DeleteNetworkEdgeSecurityServiceRequest const& request) { + return stub_->DeleteNetworkEdgeSecurityService(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +NetworkEdgeSecurityServicesRestConnectionImpl::DeleteNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr NetworkEdgeSecurityServicesRestConnectionImpl::GetNetworkEdgeSecurityService( google::cloud::cpp::compute::network_edge_security_services::v1:: @@ -235,6 +310,80 @@ NetworkEdgeSecurityServicesRestConnectionImpl::InsertNetworkEdgeSecurityService( }); } +StatusOr +NetworkEdgeSecurityServicesRestConnectionImpl::InsertNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + InsertNetworkEdgeSecurityServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertNetworkEdgeSecurityService(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_edge_security_services::v1:: + InsertNetworkEdgeSecurityServiceRequest const& request) { + return stub_->InsertNetworkEdgeSecurityService(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +NetworkEdgeSecurityServicesRestConnectionImpl::InsertNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> NetworkEdgeSecurityServicesRestConnectionImpl::PatchNetworkEdgeSecurityService( google::cloud::cpp::compute::network_edge_security_services::v1:: @@ -296,6 +445,80 @@ NetworkEdgeSecurityServicesRestConnectionImpl::PatchNetworkEdgeSecurityService( }); } +StatusOr +NetworkEdgeSecurityServicesRestConnectionImpl::PatchNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + PatchNetworkEdgeSecurityServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchNetworkEdgeSecurityService(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_edge_security_services::v1:: + PatchNetworkEdgeSecurityServiceRequest const& request) { + return stub_->PatchNetworkEdgeSecurityService(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +NetworkEdgeSecurityServicesRestConnectionImpl::PatchNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_network_edge_security_services_v1_internal } // namespace cloud diff --git a/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_rest_connection_impl.h b/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_rest_connection_impl.h index c05c4e6396c10..74269cd7db4d7 100644 --- a/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_rest_connection_impl.h +++ b/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_rest_connection_impl.h @@ -65,6 +65,17 @@ class NetworkEdgeSecurityServicesRestConnectionImpl google::cloud::cpp::compute::network_edge_security_services::v1:: DeleteNetworkEdgeSecurityServiceRequest const& request) override; + StatusOr + DeleteNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + DeleteNetworkEdgeSecurityServiceRequest const& request) override; + + future> + DeleteNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNetworkEdgeSecurityService( google::cloud::cpp::compute::network_edge_security_services::v1:: @@ -75,11 +86,33 @@ class NetworkEdgeSecurityServicesRestConnectionImpl google::cloud::cpp::compute::network_edge_security_services::v1:: InsertNetworkEdgeSecurityServiceRequest const& request) override; + StatusOr + InsertNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + InsertNetworkEdgeSecurityServiceRequest const& request) override; + future> + InsertNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + + future> + PatchNetworkEdgeSecurityService( + google::cloud::cpp::compute::network_edge_security_services::v1:: + PatchNetworkEdgeSecurityServiceRequest const& request) override; + + StatusOr PatchNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: PatchNetworkEdgeSecurityServiceRequest const& request) override; + future> + PatchNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr diff --git a/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_tracing_connection.cc b/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_tracing_connection.cc index 148d4ad7fe474..1dc3265900948 100644 --- a/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_tracing_connection.cc +++ b/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_tracing_connection.cc @@ -69,6 +69,35 @@ NetworkEdgeSecurityServicesTracingConnection::DeleteNetworkEdgeSecurityService( child_->DeleteNetworkEdgeSecurityService(request)); } +StatusOr +NetworkEdgeSecurityServicesTracingConnection::DeleteNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + DeleteNetworkEdgeSecurityServiceRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_edge_security_services_v1::" + "NetworkEdgeSecurityServicesConnection::" + "DeleteNetworkEdgeSecurityService"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteNetworkEdgeSecurityService( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkEdgeSecurityServicesTracingConnection::DeleteNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_edge_security_services_v1::" + "NetworkEdgeSecurityServicesConnection::" + "DeleteNetworkEdgeSecurityService"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteNetworkEdgeSecurityService( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NetworkEdgeSecurityServicesTracingConnection::GetNetworkEdgeSecurityService( google::cloud::cpp::compute::network_edge_security_services::v1:: @@ -94,6 +123,35 @@ NetworkEdgeSecurityServicesTracingConnection::InsertNetworkEdgeSecurityService( child_->InsertNetworkEdgeSecurityService(request)); } +StatusOr +NetworkEdgeSecurityServicesTracingConnection::InsertNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + InsertNetworkEdgeSecurityServiceRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_edge_security_services_v1::" + "NetworkEdgeSecurityServicesConnection::" + "InsertNetworkEdgeSecurityService"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertNetworkEdgeSecurityService( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkEdgeSecurityServicesTracingConnection::InsertNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_edge_security_services_v1::" + "NetworkEdgeSecurityServicesConnection::" + "InsertNetworkEdgeSecurityService"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertNetworkEdgeSecurityService( + google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkEdgeSecurityServicesTracingConnection::PatchNetworkEdgeSecurityService( google::cloud::cpp::compute::network_edge_security_services::v1:: @@ -106,6 +164,33 @@ NetworkEdgeSecurityServicesTracingConnection::PatchNetworkEdgeSecurityService( child_->PatchNetworkEdgeSecurityService(request)); } +StatusOr +NetworkEdgeSecurityServicesTracingConnection::PatchNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + PatchNetworkEdgeSecurityServiceRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_edge_security_services_v1::" + "NetworkEdgeSecurityServicesConnection::PatchNetworkEdgeSecurityService"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchNetworkEdgeSecurityService( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkEdgeSecurityServicesTracingConnection::PatchNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_edge_security_services_v1::" + "NetworkEdgeSecurityServicesConnection::PatchNetworkEdgeSecurityService"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchNetworkEdgeSecurityService( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr + DeleteNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + DeleteNetworkEdgeSecurityServiceRequest const& request) override; + + future> + DeleteNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNetworkEdgeSecurityService( google::cloud::cpp::compute::network_edge_security_services::v1:: @@ -65,11 +76,33 @@ class NetworkEdgeSecurityServicesTracingConnection google::cloud::cpp::compute::network_edge_security_services::v1:: InsertNetworkEdgeSecurityServiceRequest const& request) override; + StatusOr + InsertNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + InsertNetworkEdgeSecurityServiceRequest const& request) override; + future> + InsertNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + + future> + PatchNetworkEdgeSecurityService( + google::cloud::cpp::compute::network_edge_security_services::v1:: + PatchNetworkEdgeSecurityServiceRequest const& request) override; + + StatusOr PatchNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: PatchNetworkEdgeSecurityServiceRequest const& request) override; + future> + PatchNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr diff --git a/google/cloud/compute/network_edge_security_services/v1/mocks/mock_network_edge_security_services_connection.h b/google/cloud/compute/network_edge_security_services/v1/mocks/mock_network_edge_security_services_connection.h index c1be91f528274..4c24929fafdb7 100644 --- a/google/cloud/compute/network_edge_security_services/v1/mocks/mock_network_edge_security_services_connection.h +++ b/google/cloud/compute/network_edge_security_services/v1/mocks/mock_network_edge_security_services_connection.h @@ -64,6 +64,19 @@ class MockNetworkEdgeSecurityServicesConnection DeleteNetworkEdgeSecurityServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteNetworkEdgeSecurityService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + DeleteNetworkEdgeSecurityServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteNetworkEdgeSecurityService, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetNetworkEdgeSecurityService, @@ -77,11 +90,37 @@ class MockNetworkEdgeSecurityServicesConnection InsertNetworkEdgeSecurityServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertNetworkEdgeSecurityService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + InsertNetworkEdgeSecurityServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertNetworkEdgeSecurityService, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, PatchNetworkEdgeSecurityService, (google::cloud::cpp::compute::network_edge_security_services::v1:: PatchNetworkEdgeSecurityServiceRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + PatchNetworkEdgeSecurityService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + PatchNetworkEdgeSecurityServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchNetworkEdgeSecurityService, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection.cc b/google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection.cc index 8851380f9578d..82ea832de572d 100644 --- a/google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection.cc +++ b/google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection.cc @@ -57,6 +57,24 @@ NetworkEdgeSecurityServicesConnection::DeleteNetworkEdgeSecurityService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkEdgeSecurityServicesConnection::DeleteNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + DeleteNetworkEdgeSecurityServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkEdgeSecurityServicesConnection::DeleteNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NetworkEdgeSecurityServicesConnection::GetNetworkEdgeSecurityService( google::cloud::cpp::compute::network_edge_security_services::v1:: @@ -73,6 +91,24 @@ NetworkEdgeSecurityServicesConnection::InsertNetworkEdgeSecurityService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkEdgeSecurityServicesConnection::InsertNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + InsertNetworkEdgeSecurityServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkEdgeSecurityServicesConnection::InsertNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkEdgeSecurityServicesConnection::PatchNetworkEdgeSecurityService( google::cloud::cpp::compute::network_edge_security_services::v1:: @@ -82,6 +118,24 @@ NetworkEdgeSecurityServicesConnection::PatchNetworkEdgeSecurityService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkEdgeSecurityServicesConnection::PatchNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + PatchNetworkEdgeSecurityServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkEdgeSecurityServicesConnection::PatchNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_network_edge_security_services_v1 } // namespace cloud diff --git a/google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection.h b/google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection.h index c6a686d439220..ab0cec691eca2 100644 --- a/google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection.h +++ b/google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_retry_traits.h" #include "google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -216,6 +218,17 @@ class NetworkEdgeSecurityServicesConnection { google::cloud::cpp::compute::network_edge_security_services::v1:: DeleteNetworkEdgeSecurityServiceRequest const& request); + virtual StatusOr + DeleteNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + DeleteNetworkEdgeSecurityServiceRequest const& request); + + virtual future> + DeleteNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetNetworkEdgeSecurityService( google::cloud::cpp::compute::network_edge_security_services::v1:: @@ -226,10 +239,32 @@ class NetworkEdgeSecurityServicesConnection { google::cloud::cpp::compute::network_edge_security_services::v1:: InsertNetworkEdgeSecurityServiceRequest const& request); + virtual StatusOr + InsertNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_edge_security_services::v1:: + InsertNetworkEdgeSecurityServiceRequest const& request); + virtual future> + InsertNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + + virtual future> + PatchNetworkEdgeSecurityService( + google::cloud::cpp::compute::network_edge_security_services::v1:: + PatchNetworkEdgeSecurityServiceRequest const& request); + + virtual StatusOr PatchNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: PatchNetworkEdgeSecurityServiceRequest const& request); + + virtual future> + PatchNetworkEdgeSecurityService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_rest_connection_impl.cc b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_rest_connection_impl.cc index 5b79e5f7eed16..4b231d619acc3 100644 --- a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_rest_connection_impl.cc +++ b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -153,6 +154,79 @@ NetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( }); } +StatusOr +NetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AttachNetworkEndpoints(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request) { + return stub_->AttachNetworkEndpoints(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> NetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( google::cloud::cpp::compute::network_endpoint_groups::v1:: @@ -213,6 +287,80 @@ NetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( }); } +StatusOr +NetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNetworkEndpointGroup(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request) { + return stub_->DeleteNetworkEndpointGroup(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +NetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> NetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( google::cloud::cpp::compute::network_endpoint_groups::v1:: @@ -273,6 +421,79 @@ NetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( }); } +StatusOr +NetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DetachNetworkEndpoints(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request) { + return stub_->DetachNetworkEndpoints(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StatusOr NetworkEndpointGroupsRestConnectionImpl::GetNetworkEndpointGroup( google::cloud::cpp::compute::network_endpoint_groups::v1:: @@ -349,6 +570,80 @@ NetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( }); } +StatusOr +NetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertNetworkEndpointGroup(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request) { + return stub_->InsertNetworkEndpointGroup(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +NetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StreamRange NetworkEndpointGroupsRestConnectionImpl::ListNetworkEndpointGroups( google::cloud::cpp::compute::network_endpoint_groups::v1:: diff --git a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_rest_connection_impl.h b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_rest_connection_impl.h index 983fd1a940c81..7aa78e5861534 100644 --- a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_rest_connection_impl.h +++ b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_rest_connection_impl.h @@ -65,16 +65,47 @@ class NetworkEndpointGroupsRestConnectionImpl google::cloud::cpp::compute::network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) override; + StatusOr AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request) override; + + future> + AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteNetworkEndpointGroup( google::cloud::cpp::compute::network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) override; + StatusOr + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request) override; + + future> + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DetachNetworkEndpoints( google::cloud::cpp::compute::network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) override; + StatusOr DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request) override; + + future> + DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNetworkEndpointGroup( google::cloud::cpp::compute::network_endpoint_groups::v1:: @@ -85,6 +116,17 @@ class NetworkEndpointGroupsRestConnectionImpl google::cloud::cpp::compute::network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) override; + StatusOr + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request) override; + + future> + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListNetworkEndpointGroups( google::cloud::cpp::compute::network_endpoint_groups::v1:: diff --git a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.cc b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.cc index b4d3bb165447a..55dc376037aaf 100644 --- a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.cc +++ b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.cc @@ -65,6 +65,33 @@ NetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( child_->AttachNetworkEndpoints(request)); } +StatusOr +NetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" + "AttachNetworkEndpoints"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->AttachNetworkEndpoints( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" + "AttachNetworkEndpoints"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->AttachNetworkEndpoints( + google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( google::cloud::cpp::compute::network_endpoint_groups::v1:: @@ -77,6 +104,33 @@ NetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( child_->DeleteNetworkEndpointGroup(request)); } +StatusOr +NetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" + "DeleteNetworkEndpointGroup"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" + "DeleteNetworkEndpointGroup"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( google::cloud::cpp::compute::network_endpoint_groups::v1:: @@ -89,6 +143,33 @@ NetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( child_->DetachNetworkEndpoints(request)); } +StatusOr +NetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" + "DetachNetworkEndpoints"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DetachNetworkEndpoints( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" + "DetachNetworkEndpoints"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DetachNetworkEndpoints( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NetworkEndpointGroupsTracingConnection::GetNetworkEndpointGroup( google::cloud::cpp::compute::network_endpoint_groups::v1:: @@ -112,6 +193,33 @@ NetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( child_->InsertNetworkEndpointGroup(request)); } +StatusOr +NetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" + "InsertNetworkEndpointGroup"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" + "InsertNetworkEndpointGroup"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetworkEndpointGroupsTracingConnection::ListNetworkEndpointGroups( google::cloud::cpp::compute::network_endpoint_groups::v1:: diff --git a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.h b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.h index 1f300f342eece..24c3b0d3f1080 100644 --- a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.h +++ b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.h @@ -55,16 +55,47 @@ class NetworkEndpointGroupsTracingConnection google::cloud::cpp::compute::network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) override; + StatusOr AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request) override; + + future> + AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteNetworkEndpointGroup( google::cloud::cpp::compute::network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) override; + StatusOr + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request) override; + + future> + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DetachNetworkEndpoints( google::cloud::cpp::compute::network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) override; + StatusOr DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request) override; + + future> + DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNetworkEndpointGroup( google::cloud::cpp::compute::network_endpoint_groups::v1:: @@ -75,6 +106,17 @@ class NetworkEndpointGroupsTracingConnection google::cloud::cpp::compute::network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) override; + StatusOr + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request) override; + + future> + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListNetworkEndpointGroups( google::cloud::cpp::compute::network_endpoint_groups::v1:: diff --git a/google/cloud/compute/network_endpoint_groups/v1/mocks/mock_network_endpoint_groups_connection.h b/google/cloud/compute/network_endpoint_groups/v1/mocks/mock_network_endpoint_groups_connection.h index 89581b59ab034..457e1fdfb61c7 100644 --- a/google/cloud/compute/network_endpoint_groups/v1/mocks/mock_network_endpoint_groups_connection.h +++ b/google/cloud/compute/network_endpoint_groups/v1/mocks/mock_network_endpoint_groups_connection.h @@ -64,18 +64,57 @@ class MockNetworkEndpointGroupsConnection AttachNetworkEndpointsRequest const& request), (override)); + MOCK_METHOD(StatusOr, + AttachNetworkEndpoints, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request), + (override)); + + MOCK_METHOD(future>, + AttachNetworkEndpoints, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteNetworkEndpointGroup, (google::cloud::cpp::compute::network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteNetworkEndpointGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteNetworkEndpointGroup, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DetachNetworkEndpoints, (google::cloud::cpp::compute::network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DetachNetworkEndpoints, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request), + (override)); + + MOCK_METHOD(future>, + DetachNetworkEndpoints, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetNetworkEndpointGroup, (google::cloud::cpp::compute::network_endpoint_groups::v1:: @@ -88,6 +127,19 @@ class MockNetworkEndpointGroupsConnection InsertNetworkEndpointGroupRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertNetworkEndpointGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertNetworkEndpointGroup, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListNetworkEndpointGroups, diff --git a/google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection.cc b/google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection.cc index ca2b3bea27552..830ff273c9500 100644 --- a/google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection.cc +++ b/google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection.cc @@ -57,6 +57,24 @@ NetworkEndpointGroupsConnection::AttachNetworkEndpoints( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkEndpointGroupsConnection::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkEndpointGroupsConnection::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( google::cloud::cpp::compute::network_endpoint_groups::v1:: @@ -66,6 +84,24 @@ NetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkEndpointGroupsConnection::DetachNetworkEndpoints( google::cloud::cpp::compute::network_endpoint_groups::v1:: @@ -75,6 +111,24 @@ NetworkEndpointGroupsConnection::DetachNetworkEndpoints( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkEndpointGroupsConnection::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkEndpointGroupsConnection::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NetworkEndpointGroupsConnection::GetNetworkEndpointGroup( google::cloud::cpp::compute::network_endpoint_groups::v1:: @@ -91,6 +145,24 @@ NetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetworkEndpointGroupsConnection::ListNetworkEndpointGroups( google::cloud::cpp::compute::network_endpoint_groups::v1:: diff --git a/google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection.h b/google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection.h index 1ee29ddcff767..961b91c3a0e02 100644 --- a/google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection.h +++ b/google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_retry_traits.h" #include "google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -205,15 +207,48 @@ class NetworkEndpointGroupsConnection { AttachNetworkEndpoints(google::cloud::cpp::compute::network_endpoint_groups:: v1::AttachNetworkEndpointsRequest const& request); + virtual StatusOr + AttachNetworkEndpoints(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups:: + v1::AttachNetworkEndpointsRequest const& request); + + virtual future> + AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteNetworkEndpointGroup( google::cloud::cpp::compute::network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request); + virtual StatusOr + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request); + + virtual future> + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DetachNetworkEndpoints(google::cloud::cpp::compute::network_endpoint_groups:: v1::DetachNetworkEndpointsRequest const& request); + virtual StatusOr + DetachNetworkEndpoints(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups:: + v1::DetachNetworkEndpointsRequest const& request); + + virtual future> + DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetNetworkEndpointGroup( google::cloud::cpp::compute::network_endpoint_groups::v1:: @@ -224,6 +259,17 @@ class NetworkEndpointGroupsConnection { google::cloud::cpp::compute::network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request); + virtual StatusOr + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request); + + virtual future> + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListNetworkEndpointGroups( google::cloud::cpp::compute::network_endpoint_groups::v1:: diff --git a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_rest_connection_impl.cc b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_rest_connection_impl.cc index 08f182e2b26fc..3d282f44cc1e5 100644 --- a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_rest_connection_impl.cc +++ b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -104,6 +105,77 @@ NetworkFirewallPoliciesRestConnectionImpl::AddAssociation( }); } +StatusOr +NetworkFirewallPoliciesRestConnectionImpl::AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + AddAssociationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddAssociation(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_firewall_policies::v1:: + AddAssociationRequest const& request) { + return stub_->AddAssociation(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkFirewallPoliciesRestConnectionImpl::AddAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> NetworkFirewallPoliciesRestConnectionImpl::AddRule( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -162,6 +234,77 @@ NetworkFirewallPoliciesRestConnectionImpl::AddRule( }); } +StatusOr +NetworkFirewallPoliciesRestConnectionImpl::AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + AddRuleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_firewall_policies::v1:: + AddRuleRequest const& request) { + return stub_->AddRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkFirewallPoliciesRestConnectionImpl::AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> NetworkFirewallPoliciesRestConnectionImpl::CloneRules( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -220,6 +363,77 @@ NetworkFirewallPoliciesRestConnectionImpl::CloneRules( }); } +StatusOr +NetworkFirewallPoliciesRestConnectionImpl::CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + CloneRulesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CloneRules(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_firewall_policies::v1:: + CloneRulesRequest const& request) { + return stub_->CloneRules(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkFirewallPoliciesRestConnectionImpl::CloneRules( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> NetworkFirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -278,6 +492,77 @@ NetworkFirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( }); } +StatusOr +NetworkFirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteFirewallPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request) { + return stub_->DeleteFirewallPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkFirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr NetworkFirewallPoliciesRestConnectionImpl::GetFirewallPolicy( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -400,6 +685,77 @@ NetworkFirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( }); } +StatusOr +NetworkFirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + InsertFirewallPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertFirewallPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_firewall_policies::v1:: + InsertFirewallPolicyRequest const& request) { + return stub_->InsertFirewallPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkFirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange NetworkFirewallPoliciesRestConnectionImpl::ListNetworkFirewallPolicies( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -498,6 +854,77 @@ NetworkFirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( }); } +StatusOr +NetworkFirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + PatchFirewallPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchFirewallPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_firewall_policies::v1:: + PatchFirewallPolicyRequest const& request) { + return stub_->PatchFirewallPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkFirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> NetworkFirewallPoliciesRestConnectionImpl::PatchRule( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -556,6 +983,77 @@ NetworkFirewallPoliciesRestConnectionImpl::PatchRule( }); } +StatusOr +NetworkFirewallPoliciesRestConnectionImpl::PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + PatchRuleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_firewall_policies::v1:: + PatchRuleRequest const& request) { + return stub_->PatchRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkFirewallPoliciesRestConnectionImpl::PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> NetworkFirewallPoliciesRestConnectionImpl::RemoveAssociation( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -614,6 +1112,77 @@ NetworkFirewallPoliciesRestConnectionImpl::RemoveAssociation( }); } +StatusOr +NetworkFirewallPoliciesRestConnectionImpl::RemoveAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + RemoveAssociationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveAssociation(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_firewall_policies::v1:: + RemoveAssociationRequest const& request) { + return stub_->RemoveAssociation(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkFirewallPoliciesRestConnectionImpl::RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> NetworkFirewallPoliciesRestConnectionImpl::RemoveRule( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -672,6 +1241,77 @@ NetworkFirewallPoliciesRestConnectionImpl::RemoveRule( }); } +StatusOr +NetworkFirewallPoliciesRestConnectionImpl::RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + RemoveRuleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::network_firewall_policies::v1:: + RemoveRuleRequest const& request) { + return stub_->RemoveRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkFirewallPoliciesRestConnectionImpl::RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr NetworkFirewallPoliciesRestConnectionImpl::SetIamPolicy( google::cloud::cpp::compute::network_firewall_policies::v1:: diff --git a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_rest_connection_impl.h b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_rest_connection_impl.h index aacf80601250d..2b2909d1b758b 100644 --- a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_rest_connection_impl.h +++ b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_rest_connection_impl.h @@ -58,19 +58,56 @@ class NetworkFirewallPoliciesRestConnectionImpl google::cloud::cpp::compute::network_firewall_policies::v1:: AddAssociationRequest const& request) override; + StatusOr AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + AddAssociationRequest const& request) override; + + future> AddAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> AddRule( google::cloud::cpp::compute::network_firewall_policies::v1:: AddRuleRequest const& request) override; + StatusOr AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + AddRuleRequest const& request) override; + + future> AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> CloneRules( google::cloud::cpp::compute::network_firewall_policies::v1:: CloneRulesRequest const& request) override; + StatusOr CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + CloneRulesRequest const& request) override; + + future> CloneRules( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteFirewallPolicy( google::cloud::cpp::compute::network_firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) override; + StatusOr DeleteFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request) override; + + future> + DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetFirewallPolicy( google::cloud::cpp::compute::network_firewall_policies::v1:: GetFirewallPolicyRequest const& request) override; @@ -92,6 +129,16 @@ class NetworkFirewallPoliciesRestConnectionImpl google::cloud::cpp::compute::network_firewall_policies::v1:: InsertFirewallPolicyRequest const& request) override; + StatusOr InsertFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + InsertFirewallPolicyRequest const& request) override; + + future> + InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListNetworkFirewallPolicies( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -102,18 +149,56 @@ class NetworkFirewallPoliciesRestConnectionImpl google::cloud::cpp::compute::network_firewall_policies::v1:: PatchFirewallPolicyRequest const& request) override; + StatusOr PatchFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + PatchFirewallPolicyRequest const& request) override; + + future> + PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PatchRule( google::cloud::cpp::compute::network_firewall_policies::v1:: PatchRuleRequest const& request) override; + StatusOr PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + PatchRuleRequest const& request) override; + + future> PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveAssociation(google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveAssociationRequest const& request) override; + StatusOr RemoveAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + RemoveAssociationRequest const& request) override; + + future> + RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveRule( google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveRuleRequest const& request) override; + StatusOr RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + RemoveRuleRequest const& request) override; + + future> RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::network_firewall_policies::v1:: SetIamPolicyRequest const& request) override; diff --git a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.cc b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.cc index 28089b386d348..3ca035c92f6d0 100644 --- a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.cc +++ b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.cc @@ -48,6 +48,33 @@ NetworkFirewallPoliciesTracingConnection::AddAssociation( return internal::EndSpan(std::move(span), child_->AddAssociation(request)); } +StatusOr +NetworkFirewallPoliciesTracingConnection::AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + AddAssociationRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":AddAssociation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddAssociation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkFirewallPoliciesTracingConnection::AddAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":AddAssociation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddAssociation(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkFirewallPoliciesTracingConnection::AddRule( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -59,6 +86,33 @@ NetworkFirewallPoliciesTracingConnection::AddRule( return internal::EndSpan(std::move(span), child_->AddRule(request)); } +StatusOr +NetworkFirewallPoliciesTracingConnection::AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + AddRuleRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":AddRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkFirewallPoliciesTracingConnection::AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":AddRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddRule(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkFirewallPoliciesTracingConnection::CloneRules( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -70,6 +124,33 @@ NetworkFirewallPoliciesTracingConnection::CloneRules( return internal::EndSpan(std::move(span), child_->CloneRules(request)); } +StatusOr +NetworkFirewallPoliciesTracingConnection::CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + CloneRulesRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":CloneRules"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CloneRules(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkFirewallPoliciesTracingConnection::CloneRules( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":CloneRules"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CloneRules(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkFirewallPoliciesTracingConnection::DeleteFirewallPolicy( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -82,6 +163,33 @@ NetworkFirewallPoliciesTracingConnection::DeleteFirewallPolicy( child_->DeleteFirewallPolicy(request)); } +StatusOr +NetworkFirewallPoliciesTracingConnection::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":DeleteFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteFirewallPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkFirewallPoliciesTracingConnection::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":DeleteFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteFirewallPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NetworkFirewallPoliciesTracingConnection::GetFirewallPolicy( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -138,6 +246,33 @@ NetworkFirewallPoliciesTracingConnection::InsertFirewallPolicy( child_->InsertFirewallPolicy(request)); } +StatusOr +NetworkFirewallPoliciesTracingConnection::InsertFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + InsertFirewallPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":InsertFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertFirewallPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkFirewallPoliciesTracingConnection::InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":InsertFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertFirewallPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetworkFirewallPoliciesTracingConnection::ListNetworkFirewallPolicies( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -164,6 +299,33 @@ NetworkFirewallPoliciesTracingConnection::PatchFirewallPolicy( child_->PatchFirewallPolicy(request)); } +StatusOr +NetworkFirewallPoliciesTracingConnection::PatchFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + PatchFirewallPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":PatchFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchFirewallPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkFirewallPoliciesTracingConnection::PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":PatchFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchFirewallPolicy(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkFirewallPoliciesTracingConnection::PatchRule( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -175,6 +337,33 @@ NetworkFirewallPoliciesTracingConnection::PatchRule( return internal::EndSpan(std::move(span), child_->PatchRule(request)); } +StatusOr +NetworkFirewallPoliciesTracingConnection::PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + PatchRuleRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":PatchRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkFirewallPoliciesTracingConnection::PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":PatchRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchRule(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkFirewallPoliciesTracingConnection::RemoveAssociation( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -186,6 +375,33 @@ NetworkFirewallPoliciesTracingConnection::RemoveAssociation( return internal::EndSpan(std::move(span), child_->RemoveAssociation(request)); } +StatusOr +NetworkFirewallPoliciesTracingConnection::RemoveAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + RemoveAssociationRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":RemoveAssociation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RemoveAssociation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkFirewallPoliciesTracingConnection::RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":RemoveAssociation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RemoveAssociation(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkFirewallPoliciesTracingConnection::RemoveRule( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -197,6 +413,33 @@ NetworkFirewallPoliciesTracingConnection::RemoveRule( return internal::EndSpan(std::move(span), child_->RemoveRule(request)); } +StatusOr +NetworkFirewallPoliciesTracingConnection::RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + RemoveRuleRequest const& request) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":RemoveRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RemoveRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkFirewallPoliciesTracingConnection::RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" + ":RemoveRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RemoveRule(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NetworkFirewallPoliciesTracingConnection::SetIamPolicy( google::cloud::cpp::compute::network_firewall_policies::v1:: diff --git a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.h b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.h index 0f0ac2294c5dc..5e13dc97a5fa2 100644 --- a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.h +++ b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.h @@ -48,19 +48,56 @@ class NetworkFirewallPoliciesTracingConnection google::cloud::cpp::compute::network_firewall_policies::v1:: AddAssociationRequest const& request) override; + StatusOr AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + AddAssociationRequest const& request) override; + + future> AddAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> AddRule( google::cloud::cpp::compute::network_firewall_policies::v1:: AddRuleRequest const& request) override; + StatusOr AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + AddRuleRequest const& request) override; + + future> AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> CloneRules( google::cloud::cpp::compute::network_firewall_policies::v1:: CloneRulesRequest const& request) override; + StatusOr CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + CloneRulesRequest const& request) override; + + future> CloneRules( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteFirewallPolicy( google::cloud::cpp::compute::network_firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) override; + StatusOr DeleteFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request) override; + + future> + DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetFirewallPolicy( google::cloud::cpp::compute::network_firewall_policies::v1:: GetFirewallPolicyRequest const& request) override; @@ -82,6 +119,16 @@ class NetworkFirewallPoliciesTracingConnection google::cloud::cpp::compute::network_firewall_policies::v1:: InsertFirewallPolicyRequest const& request) override; + StatusOr InsertFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + InsertFirewallPolicyRequest const& request) override; + + future> + InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListNetworkFirewallPolicies( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -92,18 +139,56 @@ class NetworkFirewallPoliciesTracingConnection google::cloud::cpp::compute::network_firewall_policies::v1:: PatchFirewallPolicyRequest const& request) override; + StatusOr PatchFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + PatchFirewallPolicyRequest const& request) override; + + future> + PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PatchRule( google::cloud::cpp::compute::network_firewall_policies::v1:: PatchRuleRequest const& request) override; + StatusOr PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + PatchRuleRequest const& request) override; + + future> PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveAssociation(google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveAssociationRequest const& request) override; + StatusOr RemoveAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + RemoveAssociationRequest const& request) override; + + future> + RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveRule( google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveRuleRequest const& request) override; + StatusOr RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + RemoveRuleRequest const& request) override; + + future> RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::network_firewall_policies::v1:: SetIamPolicyRequest const& request) override; diff --git a/google/cloud/compute/network_firewall_policies/v1/mocks/mock_network_firewall_policies_connection.h b/google/cloud/compute/network_firewall_policies/v1/mocks/mock_network_firewall_policies_connection.h index 6b9373ee4a48c..cc1d30693c50b 100644 --- a/google/cloud/compute/network_firewall_policies/v1/mocks/mock_network_firewall_policies_connection.h +++ b/google/cloud/compute/network_firewall_policies/v1/mocks/mock_network_firewall_policies_connection.h @@ -55,24 +55,74 @@ class MockNetworkFirewallPoliciesConnection AddAssociationRequest const& request), (override)); + MOCK_METHOD(StatusOr, + AddAssociation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + AddAssociationRequest const& request), + (override)); + + MOCK_METHOD(future>, + AddAssociation, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, AddRule, (google::cloud::cpp::compute::network_firewall_policies::v1:: AddRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, AddRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + AddRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + AddRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, CloneRules, (google::cloud::cpp::compute::network_firewall_policies::v1:: CloneRulesRequest const& request), (override)); + MOCK_METHOD(StatusOr, CloneRules, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + CloneRulesRequest const& request), + (override)); + + MOCK_METHOD(future>, + CloneRules, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteFirewallPolicy, (google::cloud::cpp::compute::network_firewall_policies::v1:: DeleteFirewallPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteFirewallPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteFirewallPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetFirewallPolicy, (google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -103,6 +153,19 @@ class MockNetworkFirewallPoliciesConnection InsertFirewallPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertFirewallPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + InsertFirewallPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertFirewallPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListNetworkFirewallPolicies, (google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -115,24 +178,74 @@ class MockNetworkFirewallPoliciesConnection PatchFirewallPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchFirewallPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + PatchFirewallPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchFirewallPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, PatchRule, (google::cloud::cpp::compute::network_firewall_policies::v1:: PatchRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, PatchRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + PatchRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, RemoveAssociation, (google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveAssociationRequest const& request), (override)); + MOCK_METHOD(StatusOr, + RemoveAssociation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + RemoveAssociationRequest const& request), + (override)); + + MOCK_METHOD(future>, + RemoveAssociation, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, RemoveRule, (google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, RemoveRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + RemoveRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + RemoveRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, SetIamPolicy, (google::cloud::cpp::compute::network_firewall_policies::v1:: SetIamPolicyRequest const& request), diff --git a/google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection.cc b/google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection.cc index 7bc4da899967b..be58b763364b3 100644 --- a/google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection.cc +++ b/google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection.cc @@ -47,10 +47,46 @@ NetworkFirewallPoliciesConnection::AddAssociation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkFirewallPoliciesConnection::AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + AddAssociationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +NetworkFirewallPoliciesConnection::AddAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkFirewallPoliciesConnection::AddRule( + google::cloud::cpp::compute::network_firewall_policies::v1:: + AddRuleRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr NetworkFirewallPoliciesConnection::AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: AddRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkFirewallPoliciesConnection::AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -65,6 +101,24 @@ NetworkFirewallPoliciesConnection::CloneRules( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkFirewallPoliciesConnection::CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + CloneRulesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkFirewallPoliciesConnection::CloneRules( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkFirewallPoliciesConnection::DeleteFirewallPolicy( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -74,6 +128,24 @@ NetworkFirewallPoliciesConnection::DeleteFirewallPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkFirewallPoliciesConnection::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + DeleteFirewallPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkFirewallPoliciesConnection::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NetworkFirewallPoliciesConnection::GetFirewallPolicy( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -111,6 +183,24 @@ NetworkFirewallPoliciesConnection::InsertFirewallPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkFirewallPoliciesConnection::InsertFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + InsertFirewallPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkFirewallPoliciesConnection::InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetworkFirewallPoliciesConnection::ListNetworkFirewallPolicies( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -128,10 +218,46 @@ NetworkFirewallPoliciesConnection::PatchFirewallPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkFirewallPoliciesConnection::PatchFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + PatchFirewallPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +NetworkFirewallPoliciesConnection::PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkFirewallPoliciesConnection::PatchRule( + google::cloud::cpp::compute::network_firewall_policies::v1:: + PatchRuleRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr NetworkFirewallPoliciesConnection::PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: PatchRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkFirewallPoliciesConnection::PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -146,10 +272,46 @@ NetworkFirewallPoliciesConnection::RemoveAssociation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkFirewallPoliciesConnection::RemoveAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + RemoveAssociationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +NetworkFirewallPoliciesConnection::RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkFirewallPoliciesConnection::RemoveRule( + google::cloud::cpp::compute::network_firewall_policies::v1:: + RemoveRuleRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr NetworkFirewallPoliciesConnection::RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkFirewallPoliciesConnection::RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection.h b/google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection.h index 99e08a5ca5748..f8a6d9c69172e 100644 --- a/google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection.h +++ b/google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_retry_traits.h" #include "google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -199,18 +201,56 @@ class NetworkFirewallPoliciesConnection { AddAssociation(google::cloud::cpp::compute::network_firewall_policies::v1:: AddAssociationRequest const& request); + virtual StatusOr AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + AddAssociationRequest const& request); + + virtual future> + AddAssociation(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> AddRule( google::cloud::cpp::compute::network_firewall_policies::v1:: AddRuleRequest const& request); + virtual StatusOr AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + AddRuleRequest const& request); + + virtual future> AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> CloneRules(google::cloud::cpp::compute::network_firewall_policies::v1:: CloneRulesRequest const& request); + virtual StatusOr CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + CloneRulesRequest const& request); + + virtual future> + CloneRules(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteFirewallPolicy(google::cloud::cpp::compute::network_firewall_policies:: v1::DeleteFirewallPolicyRequest const& request); + virtual StatusOr + DeleteFirewallPolicy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies:: + v1::DeleteFirewallPolicyRequest const& request); + + virtual future> + DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetFirewallPolicy(google::cloud::cpp::compute::network_firewall_policies::v1:: GetFirewallPolicyRequest const& request); @@ -231,6 +271,17 @@ class NetworkFirewallPoliciesConnection { InsertFirewallPolicy(google::cloud::cpp::compute::network_firewall_policies:: v1::InsertFirewallPolicyRequest const& request); + virtual StatusOr + InsertFirewallPolicy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies:: + v1::InsertFirewallPolicyRequest const& request); + + virtual future> + InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListNetworkFirewallPolicies( google::cloud::cpp::compute::network_firewall_policies::v1:: @@ -240,18 +291,56 @@ class NetworkFirewallPoliciesConnection { PatchFirewallPolicy(google::cloud::cpp::compute::network_firewall_policies:: v1::PatchFirewallPolicyRequest const& request); + virtual StatusOr + PatchFirewallPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies:: + v1::PatchFirewallPolicyRequest const& request); + + virtual future> + PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> PatchRule(google::cloud::cpp::compute::network_firewall_policies::v1:: PatchRuleRequest const& request); + virtual StatusOr PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + PatchRuleRequest const& request); + + virtual future> + PatchRule(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> RemoveAssociation(google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveAssociationRequest const& request); + virtual StatusOr + RemoveAssociation(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + RemoveAssociationRequest const& request); + + virtual future> + RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> RemoveRule(google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveRuleRequest const& request); + virtual StatusOr RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::network_firewall_policies::v1:: + RemoveRuleRequest const& request); + + virtual future> + RemoveRule(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr SetIamPolicy( google::cloud::cpp::compute::network_firewall_policies::v1:: SetIamPolicyRequest const& request); diff --git a/google/cloud/compute/networks/v1/internal/networks_rest_connection_impl.cc b/google/cloud/compute/networks/v1/internal/networks_rest_connection_impl.cc index ad52003e8d096..d0632fef245e4 100644 --- a/google/cloud/compute/networks/v1/internal/networks_rest_connection_impl.cc +++ b/google/cloud/compute/networks/v1/internal/networks_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -101,6 +102,77 @@ NetworksRestConnectionImpl::AddPeering( }); } +StatusOr +NetworksRestConnectionImpl::AddPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::AddPeeringRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddPeering(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::networks::v1::AddPeeringRequest const& + request) { + return stub_->AddPeering(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworksRestConnectionImpl::AddPeering( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> NetworksRestConnectionImpl::DeleteNetwork( google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& @@ -160,6 +232,78 @@ NetworksRestConnectionImpl::DeleteNetwork( }); } +StatusOr +NetworksRestConnectionImpl::DeleteNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNetwork(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& + request) { + return stub_->DeleteNetwork(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworksRestConnectionImpl::DeleteNetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr NetworksRestConnectionImpl::GetNetwork( google::cloud::cpp::compute::networks::v1::GetNetworkRequest const& @@ -251,6 +395,78 @@ NetworksRestConnectionImpl::InsertNetwork( }); } +StatusOr +NetworksRestConnectionImpl::InsertNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertNetwork(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const& + request) { + return stub_->InsertNetwork(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworksRestConnectionImpl::InsertNetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange NetworksRestConnectionImpl::ListNetworks( google::cloud::cpp::compute::networks::v1::ListNetworksRequest request) { @@ -382,6 +598,78 @@ NetworksRestConnectionImpl::PatchNetwork( }); } +StatusOr +NetworksRestConnectionImpl::PatchNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchNetwork(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const& + request) { + return stub_->PatchNetwork(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworksRestConnectionImpl::PatchNetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> NetworksRestConnectionImpl::RemovePeering( google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& @@ -441,6 +729,78 @@ NetworksRestConnectionImpl::RemovePeering( }); } +StatusOr +NetworksRestConnectionImpl::RemovePeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemovePeering(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& + request) { + return stub_->RemovePeering(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworksRestConnectionImpl::RemovePeering( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> NetworksRestConnectionImpl::SwitchToCustomMode( google::cloud::cpp::compute::networks::v1::SwitchToCustomModeRequest const& @@ -499,6 +859,77 @@ NetworksRestConnectionImpl::SwitchToCustomMode( }); } +StatusOr +NetworksRestConnectionImpl::SwitchToCustomMode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::SwitchToCustomModeRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SwitchToCustomMode(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::networks::v1:: + SwitchToCustomModeRequest const& request) { + return stub_->SwitchToCustomMode(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworksRestConnectionImpl::SwitchToCustomMode( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> NetworksRestConnectionImpl::UpdatePeering( google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& @@ -558,6 +989,78 @@ NetworksRestConnectionImpl::UpdatePeering( }); } +StatusOr +NetworksRestConnectionImpl::UpdatePeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdatePeering(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& + request) { + return stub_->UpdatePeering(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NetworksRestConnectionImpl::UpdatePeering( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_networks_v1_internal } // namespace cloud diff --git a/google/cloud/compute/networks/v1/internal/networks_rest_connection_impl.h b/google/cloud/compute/networks/v1/internal/networks_rest_connection_impl.h index fd32ef6c0dddc..9e702f1d2b2ea 100644 --- a/google/cloud/compute/networks/v1/internal/networks_rest_connection_impl.h +++ b/google/cloud/compute/networks/v1/internal/networks_rest_connection_impl.h @@ -54,10 +54,28 @@ class NetworksRestConnectionImpl google::cloud::cpp::compute::networks::v1::AddPeeringRequest const& request) override; + StatusOr AddPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::AddPeeringRequest const& + request) override; + + future> AddPeering( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteNetwork( google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& request) override; + StatusOr DeleteNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& + request) override; + + future> DeleteNetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNetwork( google::cloud::cpp::compute::networks::v1::GetNetworkRequest const& request) override; @@ -72,6 +90,15 @@ class NetworksRestConnectionImpl google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const& request) override; + StatusOr InsertNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const& + request) override; + + future> InsertNetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListNetworks( google::cloud::cpp::compute::networks::v1::ListNetworksRequest request) override; @@ -85,18 +112,55 @@ class NetworksRestConnectionImpl google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const& request) override; + StatusOr PatchNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const& + request) override; + + future> PatchNetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemovePeering( google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& request) override; + StatusOr RemovePeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& + request) override; + + future> RemovePeering( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SwitchToCustomMode(google::cloud::cpp::compute::networks::v1:: SwitchToCustomModeRequest const& request) override; + StatusOr SwitchToCustomMode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1:: + SwitchToCustomModeRequest const& request) override; + + future> + SwitchToCustomMode( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdatePeering( google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& request) override; + StatusOr UpdatePeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& + request) override; + + future> UpdatePeering( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy( Options const& options) { diff --git a/google/cloud/compute/networks/v1/internal/networks_tracing_connection.cc b/google/cloud/compute/networks/v1/internal/networks_tracing_connection.cc index 0fe9cbeda10ef..a6cda04813e36 100644 --- a/google/cloud/compute/networks/v1/internal/networks_tracing_connection.cc +++ b/google/cloud/compute/networks/v1/internal/networks_tracing_connection.cc @@ -43,6 +43,31 @@ NetworksTracingConnection::AddPeering( return internal::EndSpan(std::move(span), child_->AddPeering(request)); } +StatusOr +NetworksTracingConnection::AddPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::AddPeeringRequest const& + request) { + auto span = + internal::MakeSpan("compute_networks_v1::NetworksConnection::AddPeering"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddPeering(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworksTracingConnection::AddPeering( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_networks_v1::NetworksConnection::AddPeering"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddPeering(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworksTracingConnection::DeleteNetwork( google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& @@ -53,6 +78,31 @@ NetworksTracingConnection::DeleteNetwork( return internal::EndSpan(std::move(span), child_->DeleteNetwork(request)); } +StatusOr +NetworksTracingConnection::DeleteNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& + request) { + auto span = internal::MakeSpan( + "compute_networks_v1::NetworksConnection::DeleteNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteNetwork(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworksTracingConnection::DeleteNetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_networks_v1::NetworksConnection::DeleteNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteNetwork(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NetworksTracingConnection::GetNetwork( google::cloud::cpp::compute::networks::v1::GetNetworkRequest const& @@ -83,6 +133,31 @@ NetworksTracingConnection::InsertNetwork( return internal::EndSpan(std::move(span), child_->InsertNetwork(request)); } +StatusOr +NetworksTracingConnection::InsertNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const& + request) { + auto span = internal::MakeSpan( + "compute_networks_v1::NetworksConnection::InsertNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertNetwork(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworksTracingConnection::InsertNetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_networks_v1::NetworksConnection::InsertNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertNetwork(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetworksTracingConnection::ListNetworks( google::cloud::cpp::compute::networks::v1::ListNetworksRequest request) { @@ -117,6 +192,31 @@ NetworksTracingConnection::PatchNetwork( return internal::EndSpan(std::move(span), child_->PatchNetwork(request)); } +StatusOr +NetworksTracingConnection::PatchNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const& + request) { + auto span = internal::MakeSpan( + "compute_networks_v1::NetworksConnection::PatchNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchNetwork(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworksTracingConnection::PatchNetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_networks_v1::NetworksConnection::PatchNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchNetwork(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworksTracingConnection::RemovePeering( google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& @@ -127,6 +227,31 @@ NetworksTracingConnection::RemovePeering( return internal::EndSpan(std::move(span), child_->RemovePeering(request)); } +StatusOr +NetworksTracingConnection::RemovePeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& + request) { + auto span = internal::MakeSpan( + "compute_networks_v1::NetworksConnection::RemovePeering"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RemovePeering(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworksTracingConnection::RemovePeering( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_networks_v1::NetworksConnection::RemovePeering"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RemovePeering(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworksTracingConnection::SwitchToCustomMode( google::cloud::cpp::compute::networks::v1::SwitchToCustomModeRequest const& @@ -138,6 +263,31 @@ NetworksTracingConnection::SwitchToCustomMode( child_->SwitchToCustomMode(request)); } +StatusOr +NetworksTracingConnection::SwitchToCustomMode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::SwitchToCustomModeRequest const& + request) { + auto span = internal::MakeSpan( + "compute_networks_v1::NetworksConnection::SwitchToCustomMode"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SwitchToCustomMode(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworksTracingConnection::SwitchToCustomMode( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_networks_v1::NetworksConnection::SwitchToCustomMode"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SwitchToCustomMode(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworksTracingConnection::UpdatePeering( google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& @@ -148,6 +298,31 @@ NetworksTracingConnection::UpdatePeering( return internal::EndSpan(std::move(span), child_->UpdatePeering(request)); } +StatusOr +NetworksTracingConnection::UpdatePeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& + request) { + auto span = internal::MakeSpan( + "compute_networks_v1::NetworksConnection::UpdatePeering"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdatePeering(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworksTracingConnection::UpdatePeering( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_networks_v1::NetworksConnection::UpdatePeering"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdatePeering(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/networks/v1/internal/networks_tracing_connection.h b/google/cloud/compute/networks/v1/internal/networks_tracing_connection.h index 9869434dd6b7c..8b2587e0cba78 100644 --- a/google/cloud/compute/networks/v1/internal/networks_tracing_connection.h +++ b/google/cloud/compute/networks/v1/internal/networks_tracing_connection.h @@ -44,10 +44,28 @@ class NetworksTracingConnection google::cloud::cpp::compute::networks::v1::AddPeeringRequest const& request) override; + StatusOr AddPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::AddPeeringRequest const& + request) override; + + future> AddPeering( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteNetwork( google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& request) override; + StatusOr DeleteNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& + request) override; + + future> DeleteNetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNetwork( google::cloud::cpp::compute::networks::v1::GetNetworkRequest const& request) override; @@ -62,6 +80,15 @@ class NetworksTracingConnection google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const& request) override; + StatusOr InsertNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const& + request) override; + + future> InsertNetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListNetworks( google::cloud::cpp::compute::networks::v1::ListNetworksRequest request) override; @@ -75,18 +102,55 @@ class NetworksTracingConnection google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const& request) override; + StatusOr PatchNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const& + request) override; + + future> PatchNetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemovePeering( google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& request) override; + StatusOr RemovePeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& + request) override; + + future> RemovePeering( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SwitchToCustomMode(google::cloud::cpp::compute::networks::v1:: SwitchToCustomModeRequest const& request) override; + StatusOr SwitchToCustomMode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1:: + SwitchToCustomModeRequest const& request) override; + + future> + SwitchToCustomMode( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdatePeering( google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& request) override; + StatusOr UpdatePeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& + request) override; + + future> UpdatePeering( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/networks/v1/mocks/mock_networks_connection.h b/google/cloud/compute/networks/v1/mocks/mock_networks_connection.h index 4cc2578cfcf2c..27eed3ba8271e 100644 --- a/google/cloud/compute/networks/v1/mocks/mock_networks_connection.h +++ b/google/cloud/compute/networks/v1/mocks/mock_networks_connection.h @@ -52,6 +52,19 @@ class MockNetworksConnection : public compute_networks_v1::NetworksConnection { request), (override)); + MOCK_METHOD( + StatusOr, AddPeering, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::AddPeeringRequest const& + request), + (override)); + + MOCK_METHOD(future>, + AddPeering, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteNetwork, @@ -59,6 +72,19 @@ class MockNetworksConnection : public compute_networks_v1::NetworksConnection { request), (override)); + MOCK_METHOD( + StatusOr, DeleteNetwork, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteNetwork, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetNetwork, (google::cloud::cpp::compute::networks::v1::GetNetworkRequest const& @@ -79,6 +105,19 @@ class MockNetworksConnection : public compute_networks_v1::NetworksConnection { request), (override)); + MOCK_METHOD( + StatusOr, InsertNetwork, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const& + request), + (override)); + + MOCK_METHOD(future>, + InsertNetwork, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListNetworks, (google::cloud::cpp::compute::networks::v1::ListNetworksRequest request), @@ -98,6 +137,19 @@ class MockNetworksConnection : public compute_networks_v1::NetworksConnection { request), (override)); + MOCK_METHOD( + StatusOr, PatchNetwork, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const& + request), + (override)); + + MOCK_METHOD(future>, + PatchNetwork, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, RemovePeering, @@ -105,18 +157,57 @@ class MockNetworksConnection : public compute_networks_v1::NetworksConnection { request), (override)); + MOCK_METHOD( + StatusOr, RemovePeering, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& + request), + (override)); + + MOCK_METHOD(future>, + RemovePeering, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SwitchToCustomMode, (google::cloud::cpp::compute::networks::v1:: SwitchToCustomModeRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SwitchToCustomMode, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1:: + SwitchToCustomModeRequest const& request), + (override)); + + MOCK_METHOD(future>, + SwitchToCustomMode, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdatePeering, (google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, UpdatePeering, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdatePeering, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/networks/v1/networks_connection.cc b/google/cloud/compute/networks/v1/networks_connection.cc index 55b54e763cee5..ec790f94f9306 100644 --- a/google/cloud/compute/networks/v1/networks_connection.cc +++ b/google/cloud/compute/networks/v1/networks_connection.cc @@ -44,6 +44,23 @@ NetworksConnection::AddPeering( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworksConnection::AddPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::AddPeeringRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworksConnection::AddPeering( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworksConnection::DeleteNetwork( google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const&) { @@ -52,6 +69,23 @@ NetworksConnection::DeleteNetwork( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworksConnection::DeleteNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworksConnection::DeleteNetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NetworksConnection::GetNetwork( google::cloud::cpp::compute::networks::v1::GetNetworkRequest const&) { @@ -73,6 +107,23 @@ NetworksConnection::InsertNetwork( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworksConnection::InsertNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworksConnection::InsertNetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetworksConnection::ListNetworks( google::cloud::cpp::compute::networks::v1:: @@ -97,6 +148,23 @@ NetworksConnection::PatchNetwork( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworksConnection::PatchNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworksConnection::PatchNetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworksConnection::RemovePeering( google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const&) { @@ -105,10 +173,45 @@ NetworksConnection::RemovePeering( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworksConnection::RemovePeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +NetworksConnection::RemovePeering( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworksConnection::SwitchToCustomMode( + google::cloud::cpp::compute::networks::v1:: + SwitchToCustomModeRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr NetworksConnection::SwitchToCustomMode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::networks::v1:: SwitchToCustomModeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworksConnection::SwitchToCustomMode( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -122,6 +225,23 @@ NetworksConnection::UpdatePeering( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworksConnection::UpdatePeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworksConnection::UpdatePeering( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_networks_v1 } // namespace cloud diff --git a/google/cloud/compute/networks/v1/networks_connection.h b/google/cloud/compute/networks/v1/networks_connection.h index be2ed4d91d472..a5f68871e4562 100644 --- a/google/cloud/compute/networks/v1/networks_connection.h +++ b/google/cloud/compute/networks/v1/networks_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/networks/v1/internal/networks_retry_traits.h" #include "google/cloud/compute/networks/v1/networks_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -185,11 +187,29 @@ class NetworksConnection { AddPeering(google::cloud::cpp::compute::networks::v1::AddPeeringRequest const& request); + virtual StatusOr AddPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::AddPeeringRequest const& + request); + + virtual future> + AddPeering(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteNetwork( google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& request); + virtual StatusOr DeleteNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& + request); + + virtual future> + DeleteNetwork(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetNetwork( google::cloud::cpp::compute::networks::v1::GetNetworkRequest const& request); @@ -204,6 +224,15 @@ class NetworksConnection { google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const& request); + virtual StatusOr InsertNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const& + request); + + virtual future> + InsertNetwork(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListNetworks( google::cloud::cpp::compute::networks::v1::ListNetworksRequest request); @@ -217,19 +246,56 @@ class NetworksConnection { google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const& request); + virtual StatusOr PatchNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const& + request); + + virtual future> + PatchNetwork(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> RemovePeering( google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& request); + virtual StatusOr RemovePeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& + request); + + virtual future> + RemovePeering(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SwitchToCustomMode(google::cloud::cpp::compute::networks::v1:: SwitchToCustomModeRequest const& request); + virtual StatusOr + SwitchToCustomMode(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1:: + SwitchToCustomModeRequest const& request); + + virtual future> + SwitchToCustomMode( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> UpdatePeering( google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& request); + + virtual StatusOr UpdatePeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& + request); + + virtual future> + UpdatePeering(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.cc b/google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.cc index 99fef2f15e679..de79e6123263c 100644 --- a/google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.cc +++ b/google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -103,6 +104,80 @@ NodeGroupsRestConnectionImpl::AddNodes( }); } +StatusOr +NodeGroupsRestConnectionImpl::AddNodes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddNodes(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const& + request) { + return stub_->AddNodes(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NodeGroupsRestConnectionImpl::AddNodes( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StreamRange> NodeGroupsRestConnectionImpl::AggregatedListNodeGroups( @@ -204,6 +279,79 @@ NodeGroupsRestConnectionImpl::DeleteNodeGroup( }); } +StatusOr +NodeGroupsRestConnectionImpl::DeleteNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::DeleteNodeGroupRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNodeGroup(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::node_groups::v1:: + DeleteNodeGroupRequest const& request) { + return stub_->DeleteNodeGroup(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NodeGroupsRestConnectionImpl::DeleteNodeGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> NodeGroupsRestConnectionImpl::DeleteNodes( google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& @@ -264,6 +412,79 @@ NodeGroupsRestConnectionImpl::DeleteNodes( }); } +StatusOr +NodeGroupsRestConnectionImpl::DeleteNodes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNodes(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::node_groups::v1:: + DeleteNodesRequest const& request) { + return stub_->DeleteNodes(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NodeGroupsRestConnectionImpl::DeleteNodes( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StatusOr NodeGroupsRestConnectionImpl::GetNodeGroup( google::cloud::cpp::compute::node_groups::v1::GetNodeGroupRequest const& @@ -356,6 +577,79 @@ NodeGroupsRestConnectionImpl::InsertNodeGroup( }); } +StatusOr +NodeGroupsRestConnectionImpl::InsertNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::InsertNodeGroupRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertNodeGroup(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::node_groups::v1:: + InsertNodeGroupRequest const& request) { + return stub_->InsertNodeGroup(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NodeGroupsRestConnectionImpl::InsertNodeGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StreamRange NodeGroupsRestConnectionImpl::ListNodeGroups( google::cloud::cpp::compute::node_groups::v1::ListNodeGroupsRequest @@ -488,6 +782,79 @@ NodeGroupsRestConnectionImpl::PatchNodeGroup( }); } +StatusOr +NodeGroupsRestConnectionImpl::PatchNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::PatchNodeGroupRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchNodeGroup(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::node_groups::v1:: + PatchNodeGroupRequest const& request) { + return stub_->PatchNodeGroup(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NodeGroupsRestConnectionImpl::PatchNodeGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> NodeGroupsRestConnectionImpl::PerformMaintenance( google::cloud::cpp::compute::node_groups::v1:: @@ -548,6 +915,79 @@ NodeGroupsRestConnectionImpl::PerformMaintenance( }); } +StatusOr +NodeGroupsRestConnectionImpl::PerformMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + PerformMaintenanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PerformMaintenance(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::node_groups::v1:: + PerformMaintenanceRequest const& request) { + return stub_->PerformMaintenance(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NodeGroupsRestConnectionImpl::PerformMaintenance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StatusOr NodeGroupsRestConnectionImpl::SetIamPolicy( google::cloud::cpp::compute::node_groups::v1::SetIamPolicyRequest const& @@ -624,6 +1064,79 @@ NodeGroupsRestConnectionImpl::SetNodeTemplate( }); } +StatusOr +NodeGroupsRestConnectionImpl::SetNodeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::SetNodeTemplateRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetNodeTemplate(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::node_groups::v1:: + SetNodeTemplateRequest const& request) { + return stub_->SetNodeTemplate(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NodeGroupsRestConnectionImpl::SetNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + future> NodeGroupsRestConnectionImpl::SimulateMaintenanceEvent( google::cloud::cpp::compute::node_groups::v1:: @@ -684,6 +1197,79 @@ NodeGroupsRestConnectionImpl::SimulateMaintenanceEvent( }); } +StatusOr +NodeGroupsRestConnectionImpl::SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + SimulateMaintenanceEventRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SimulateMaintenanceEvent(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::node_groups::v1:: + SimulateMaintenanceEventRequest const& request) { + return stub_->SimulateMaintenanceEvent(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NodeGroupsRestConnectionImpl::SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StatusOr NodeGroupsRestConnectionImpl::TestIamPermissions( google::cloud::cpp::compute::node_groups::v1:: diff --git a/google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.h b/google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.h index 5c68df55f9fc2..fbd63c3961801 100644 --- a/google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.h +++ b/google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.h @@ -54,6 +54,15 @@ class NodeGroupsRestConnectionImpl google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const& request) override; + StatusOr AddNodes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const& + request) override; + + future> AddNodes( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange> AggregatedListNodeGroups( @@ -64,10 +73,28 @@ class NodeGroupsRestConnectionImpl google::cloud::cpp::compute::node_groups::v1:: DeleteNodeGroupRequest const& request) override; + StatusOr DeleteNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + DeleteNodeGroupRequest const& request) override; + + future> DeleteNodeGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteNodes( google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& request) override; + StatusOr DeleteNodes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& + request) override; + + future> DeleteNodes( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNodeGroup( google::cloud::cpp::compute::node_groups::v1::GetNodeGroupRequest const& request) override; @@ -80,6 +107,15 @@ class NodeGroupsRestConnectionImpl google::cloud::cpp::compute::node_groups::v1:: InsertNodeGroupRequest const& request) override; + StatusOr InsertNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + InsertNodeGroupRequest const& request) override; + + future> InsertNodeGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListNodeGroups( google::cloud::cpp::compute::node_groups::v1::ListNodeGroupsRequest request) override; @@ -92,10 +128,29 @@ class NodeGroupsRestConnectionImpl google::cloud::cpp::compute::node_groups::v1::PatchNodeGroupRequest const& request) override; + StatusOr PatchNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::PatchNodeGroupRequest const& + request) override; + + future> PatchNodeGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PerformMaintenance(google::cloud::cpp::compute::node_groups::v1:: PerformMaintenanceRequest const& request) override; + StatusOr PerformMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + PerformMaintenanceRequest const& request) override; + + future> + PerformMaintenance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::node_groups::v1::SetIamPolicyRequest const& request) override; @@ -104,11 +159,30 @@ class NodeGroupsRestConnectionImpl google::cloud::cpp::compute::node_groups::v1:: SetNodeTemplateRequest const& request) override; + StatusOr SetNodeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + SetNodeTemplateRequest const& request) override; + + future> SetNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SimulateMaintenanceEvent( google::cloud::cpp::compute::node_groups::v1:: SimulateMaintenanceEventRequest const& request) override; + StatusOr SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + SimulateMaintenanceEventRequest const& request) override; + + future> + SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::node_groups::v1:: TestIamPermissionsRequest const& request) override; diff --git a/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.cc b/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.cc index 327a6dd525b3f..864f660f335e7 100644 --- a/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.cc +++ b/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.cc @@ -43,6 +43,31 @@ NodeGroupsTracingConnection::AddNodes( return internal::EndSpan(std::move(span), child_->AddNodes(request)); } +StatusOr +NodeGroupsTracingConnection::AddNodes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const& + request) { + auto span = internal::MakeSpan( + "compute_node_groups_v1::NodeGroupsConnection::AddNodes"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddNodes(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NodeGroupsTracingConnection::AddNodes( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_node_groups_v1::NodeGroupsConnection::AddNodes"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddNodes(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange> NodeGroupsTracingConnection::AggregatedListNodeGroups( @@ -67,6 +92,31 @@ NodeGroupsTracingConnection::DeleteNodeGroup( return internal::EndSpan(std::move(span), child_->DeleteNodeGroup(request)); } +StatusOr +NodeGroupsTracingConnection::DeleteNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::DeleteNodeGroupRequest const& + request) { + auto span = internal::MakeSpan( + "compute_node_groups_v1::NodeGroupsConnection::DeleteNodeGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteNodeGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NodeGroupsTracingConnection::DeleteNodeGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_node_groups_v1::NodeGroupsConnection::DeleteNodeGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteNodeGroup(google::cloud::ExperimentalTag{}, operation)); +} + future> NodeGroupsTracingConnection::DeleteNodes( google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& @@ -77,6 +127,31 @@ NodeGroupsTracingConnection::DeleteNodes( return internal::EndSpan(std::move(span), child_->DeleteNodes(request)); } +StatusOr +NodeGroupsTracingConnection::DeleteNodes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& + request) { + auto span = internal::MakeSpan( + "compute_node_groups_v1::NodeGroupsConnection::DeleteNodes"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteNodes(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NodeGroupsTracingConnection::DeleteNodes( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_node_groups_v1::NodeGroupsConnection::DeleteNodes"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteNodes(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NodeGroupsTracingConnection::GetNodeGroup( google::cloud::cpp::compute::node_groups::v1::GetNodeGroupRequest const& @@ -107,6 +182,31 @@ NodeGroupsTracingConnection::InsertNodeGroup( return internal::EndSpan(std::move(span), child_->InsertNodeGroup(request)); } +StatusOr +NodeGroupsTracingConnection::InsertNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::InsertNodeGroupRequest const& + request) { + auto span = internal::MakeSpan( + "compute_node_groups_v1::NodeGroupsConnection::InsertNodeGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertNodeGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NodeGroupsTracingConnection::InsertNodeGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_node_groups_v1::NodeGroupsConnection::InsertNodeGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertNodeGroup(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NodeGroupsTracingConnection::ListNodeGroups( google::cloud::cpp::compute::node_groups::v1::ListNodeGroupsRequest @@ -142,6 +242,31 @@ NodeGroupsTracingConnection::PatchNodeGroup( return internal::EndSpan(std::move(span), child_->PatchNodeGroup(request)); } +StatusOr +NodeGroupsTracingConnection::PatchNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::PatchNodeGroupRequest const& + request) { + auto span = internal::MakeSpan( + "compute_node_groups_v1::NodeGroupsConnection::PatchNodeGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchNodeGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NodeGroupsTracingConnection::PatchNodeGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_node_groups_v1::NodeGroupsConnection::PatchNodeGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchNodeGroup(google::cloud::ExperimentalTag{}, operation)); +} + future> NodeGroupsTracingConnection::PerformMaintenance( google::cloud::cpp::compute::node_groups::v1:: @@ -153,6 +278,31 @@ NodeGroupsTracingConnection::PerformMaintenance( child_->PerformMaintenance(request)); } +StatusOr +NodeGroupsTracingConnection::PerformMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + PerformMaintenanceRequest const& request) { + auto span = internal::MakeSpan( + "compute_node_groups_v1::NodeGroupsConnection::PerformMaintenance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PerformMaintenance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NodeGroupsTracingConnection::PerformMaintenance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_node_groups_v1::NodeGroupsConnection::PerformMaintenance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PerformMaintenance(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NodeGroupsTracingConnection::SetIamPolicy( google::cloud::cpp::compute::node_groups::v1::SetIamPolicyRequest const& @@ -173,6 +323,31 @@ NodeGroupsTracingConnection::SetNodeTemplate( return internal::EndSpan(std::move(span), child_->SetNodeTemplate(request)); } +StatusOr +NodeGroupsTracingConnection::SetNodeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::SetNodeTemplateRequest const& + request) { + auto span = internal::MakeSpan( + "compute_node_groups_v1::NodeGroupsConnection::SetNodeTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetNodeTemplate(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NodeGroupsTracingConnection::SetNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_node_groups_v1::NodeGroupsConnection::SetNodeTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetNodeTemplate(google::cloud::ExperimentalTag{}, operation)); +} + future> NodeGroupsTracingConnection::SimulateMaintenanceEvent( google::cloud::cpp::compute::node_groups::v1:: @@ -184,6 +359,31 @@ NodeGroupsTracingConnection::SimulateMaintenanceEvent( child_->SimulateMaintenanceEvent(request)); } +StatusOr +NodeGroupsTracingConnection::SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + SimulateMaintenanceEventRequest const& request) { + auto span = internal::MakeSpan( + "compute_node_groups_v1::NodeGroupsConnection::SimulateMaintenanceEvent"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SimulateMaintenanceEvent( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NodeGroupsTracingConnection::SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_node_groups_v1::NodeGroupsConnection::SimulateMaintenanceEvent"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SimulateMaintenanceEvent( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NodeGroupsTracingConnection::TestIamPermissions( google::cloud::cpp::compute::node_groups::v1:: diff --git a/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.h b/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.h index 86d19b23abcf1..03d40900de0a2 100644 --- a/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.h +++ b/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.h @@ -44,6 +44,15 @@ class NodeGroupsTracingConnection google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const& request) override; + StatusOr AddNodes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const& + request) override; + + future> AddNodes( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange> AggregatedListNodeGroups( @@ -54,10 +63,28 @@ class NodeGroupsTracingConnection google::cloud::cpp::compute::node_groups::v1:: DeleteNodeGroupRequest const& request) override; + StatusOr DeleteNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + DeleteNodeGroupRequest const& request) override; + + future> DeleteNodeGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteNodes( google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& request) override; + StatusOr DeleteNodes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& + request) override; + + future> DeleteNodes( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNodeGroup( google::cloud::cpp::compute::node_groups::v1::GetNodeGroupRequest const& request) override; @@ -70,6 +97,15 @@ class NodeGroupsTracingConnection google::cloud::cpp::compute::node_groups::v1:: InsertNodeGroupRequest const& request) override; + StatusOr InsertNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + InsertNodeGroupRequest const& request) override; + + future> InsertNodeGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListNodeGroups( google::cloud::cpp::compute::node_groups::v1::ListNodeGroupsRequest request) override; @@ -82,10 +118,29 @@ class NodeGroupsTracingConnection google::cloud::cpp::compute::node_groups::v1::PatchNodeGroupRequest const& request) override; + StatusOr PatchNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::PatchNodeGroupRequest const& + request) override; + + future> PatchNodeGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PerformMaintenance(google::cloud::cpp::compute::node_groups::v1:: PerformMaintenanceRequest const& request) override; + StatusOr PerformMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + PerformMaintenanceRequest const& request) override; + + future> + PerformMaintenance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::node_groups::v1::SetIamPolicyRequest const& request) override; @@ -94,11 +149,30 @@ class NodeGroupsTracingConnection google::cloud::cpp::compute::node_groups::v1:: SetNodeTemplateRequest const& request) override; + StatusOr SetNodeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + SetNodeTemplateRequest const& request) override; + + future> SetNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SimulateMaintenanceEvent( google::cloud::cpp::compute::node_groups::v1:: SimulateMaintenanceEventRequest const& request) override; + StatusOr SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + SimulateMaintenanceEventRequest const& request) override; + + future> + SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::node_groups::v1:: TestIamPermissionsRequest const& request) override; diff --git a/google/cloud/compute/node_groups/v1/mocks/mock_node_groups_connection.h b/google/cloud/compute/node_groups/v1/mocks/mock_node_groups_connection.h index 1737f8e300812..402d3c4c48351 100644 --- a/google/cloud/compute/node_groups/v1/mocks/mock_node_groups_connection.h +++ b/google/cloud/compute/node_groups/v1/mocks/mock_node_groups_connection.h @@ -53,6 +53,19 @@ class MockNodeGroupsConnection request), (override)); + MOCK_METHOD( + StatusOr, AddNodes, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const& + request), + (override)); + + MOCK_METHOD(future>, + AddNodes, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange< std::pair, + DeleteNodeGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + DeleteNodeGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteNodeGroup, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteNodes, (google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteNodes, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteNodes, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetNodeGroup, (google::cloud::cpp::compute::node_groups::v1::GetNodeGroupRequest const& @@ -92,6 +131,19 @@ class MockNodeGroupsConnection InsertNodeGroupRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertNodeGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + InsertNodeGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertNodeGroup, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListNodeGroups, (google::cloud::cpp::compute::node_groups::v1::ListNodeGroupsRequest @@ -109,12 +161,38 @@ class MockNodeGroupsConnection PatchNodeGroupRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchNodeGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + PatchNodeGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchNodeGroup, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, PerformMaintenance, (google::cloud::cpp::compute::node_groups::v1:: PerformMaintenanceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PerformMaintenance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + PerformMaintenanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + PerformMaintenance, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, SetIamPolicy, (google::cloud::cpp::compute::node_groups::v1::SetIamPolicyRequest const& @@ -127,12 +205,38 @@ class MockNodeGroupsConnection SetNodeTemplateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetNodeTemplate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + SetNodeTemplateRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetNodeTemplate, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SimulateMaintenanceEvent, (google::cloud::cpp::compute::node_groups::v1:: SimulateMaintenanceEventRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SimulateMaintenanceEvent, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + SimulateMaintenanceEventRequest const& request), + (override)); + + MOCK_METHOD(future>, + SimulateMaintenanceEvent, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, TestIamPermissions, diff --git a/google/cloud/compute/node_groups/v1/node_groups_connection.cc b/google/cloud/compute/node_groups/v1/node_groups_connection.cc index 0f804a5a3e7e5..f187ba3c0fda4 100644 --- a/google/cloud/compute/node_groups/v1/node_groups_connection.cc +++ b/google/cloud/compute/node_groups/v1/node_groups_connection.cc @@ -44,6 +44,23 @@ NodeGroupsConnection::AddNodes( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NodeGroupsConnection::AddNodes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NodeGroupsConnection::AddNodes( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange> NodeGroupsConnection::AggregatedListNodeGroups( @@ -62,6 +79,24 @@ NodeGroupsConnection::DeleteNodeGroup(google::cloud::cpp::compute::node_groups:: Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NodeGroupsConnection::DeleteNodeGroup(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups:: + v1::DeleteNodeGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NodeGroupsConnection::DeleteNodeGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NodeGroupsConnection::DeleteNodes( google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const&) { @@ -70,6 +105,23 @@ NodeGroupsConnection::DeleteNodes( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NodeGroupsConnection::DeleteNodes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NodeGroupsConnection::DeleteNodes( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NodeGroupsConnection::GetNodeGroup( google::cloud::cpp::compute::node_groups::v1::GetNodeGroupRequest const&) { @@ -90,6 +142,24 @@ NodeGroupsConnection::InsertNodeGroup(google::cloud::cpp::compute::node_groups:: Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NodeGroupsConnection::InsertNodeGroup(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups:: + v1::InsertNodeGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NodeGroupsConnection::InsertNodeGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NodeGroupsConnection::ListNodeGroups( google::cloud::cpp::compute::node_groups::v1:: @@ -114,6 +184,24 @@ NodeGroupsConnection::PatchNodeGroup(google::cloud::cpp::compute::node_groups:: Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NodeGroupsConnection::PatchNodeGroup(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups:: + v1::PatchNodeGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NodeGroupsConnection::PatchNodeGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NodeGroupsConnection::PerformMaintenance( google::cloud::cpp::compute::node_groups::v1:: @@ -123,6 +211,24 @@ NodeGroupsConnection::PerformMaintenance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NodeGroupsConnection::PerformMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + PerformMaintenanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NodeGroupsConnection::PerformMaintenance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NodeGroupsConnection::SetIamPolicy( google::cloud::cpp::compute::node_groups::v1::SetIamPolicyRequest const&) { @@ -137,10 +243,46 @@ NodeGroupsConnection::SetNodeTemplate(google::cloud::cpp::compute::node_groups:: Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NodeGroupsConnection::SetNodeTemplate(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups:: + v1::SetNodeTemplateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +NodeGroupsConnection::SetNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NodeGroupsConnection::SimulateMaintenanceEvent( + google::cloud::cpp::compute::node_groups::v1:: + SimulateMaintenanceEventRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr NodeGroupsConnection::SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: SimulateMaintenanceEventRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NodeGroupsConnection::SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/node_groups/v1/node_groups_connection.h b/google/cloud/compute/node_groups/v1/node_groups_connection.h index e5fc45469c6d2..090817e655d10 100644 --- a/google/cloud/compute/node_groups/v1/node_groups_connection.h +++ b/google/cloud/compute/node_groups/v1/node_groups_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/node_groups/v1/internal/node_groups_retry_traits.h" #include "google/cloud/compute/node_groups/v1/node_groups_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -187,6 +189,15 @@ class NodeGroupsConnection { google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const& request); + virtual StatusOr AddNodes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const& + request); + + virtual future> AddNodes( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange> AggregatedListNodeGroups(google::cloud::cpp::compute::node_groups::v1:: @@ -196,11 +207,29 @@ class NodeGroupsConnection { DeleteNodeGroup(google::cloud::cpp::compute::node_groups::v1:: DeleteNodeGroupRequest const& request); + virtual StatusOr DeleteNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + DeleteNodeGroupRequest const& request); + + virtual future> + DeleteNodeGroup(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteNodes( google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& request); + virtual StatusOr DeleteNodes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& + request); + + virtual future> + DeleteNodes(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetNodeGroup( google::cloud::cpp::compute::node_groups::v1::GetNodeGroupRequest const& request); @@ -213,6 +242,15 @@ class NodeGroupsConnection { InsertNodeGroup(google::cloud::cpp::compute::node_groups::v1:: InsertNodeGroupRequest const& request); + virtual StatusOr InsertNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + InsertNodeGroupRequest const& request); + + virtual future> + InsertNodeGroup(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListNodeGroups( google::cloud::cpp::compute::node_groups::v1::ListNodeGroupsRequest @@ -226,10 +264,29 @@ class NodeGroupsConnection { google::cloud::cpp::compute::node_groups::v1::PatchNodeGroupRequest const& request); + virtual StatusOr PatchNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1::PatchNodeGroupRequest const& + request); + + virtual future> + PatchNodeGroup(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> PerformMaintenance(google::cloud::cpp::compute::node_groups::v1:: PerformMaintenanceRequest const& request); + virtual StatusOr + PerformMaintenance(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + PerformMaintenanceRequest const& request); + + virtual future> + PerformMaintenance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr SetIamPolicy( google::cloud::cpp::compute::node_groups::v1::SetIamPolicyRequest const& request); @@ -238,10 +295,30 @@ class NodeGroupsConnection { SetNodeTemplate(google::cloud::cpp::compute::node_groups::v1:: SetNodeTemplateRequest const& request); + virtual StatusOr SetNodeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + SetNodeTemplateRequest const& request); + + virtual future> + SetNodeTemplate(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SimulateMaintenanceEvent(google::cloud::cpp::compute::node_groups::v1:: SimulateMaintenanceEventRequest const& request); + virtual StatusOr + SimulateMaintenanceEvent(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_groups::v1:: + SimulateMaintenanceEventRequest const& request); + + virtual future> + SimulateMaintenanceEvent( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr TestIamPermissions(google::cloud::cpp::compute::node_groups::v1:: TestIamPermissionsRequest const& request); diff --git a/google/cloud/compute/node_templates/v1/internal/node_templates_rest_connection_impl.cc b/google/cloud/compute/node_templates/v1/internal/node_templates_rest_connection_impl.cc index d33593f16291d..737e60efbf042 100644 --- a/google/cloud/compute/node_templates/v1/internal/node_templates_rest_connection_impl.cc +++ b/google/cloud/compute/node_templates/v1/internal/node_templates_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -146,6 +147,79 @@ NodeTemplatesRestConnectionImpl::DeleteNodeTemplate( }); } +StatusOr +NodeTemplatesRestConnectionImpl::DeleteNodeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_templates::v1:: + DeleteNodeTemplateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNodeTemplate(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::node_templates::v1:: + DeleteNodeTemplateRequest const& request) { + return stub_->DeleteNodeTemplate(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NodeTemplatesRestConnectionImpl::DeleteNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr NodeTemplatesRestConnectionImpl::GetNodeTemplate( google::cloud::cpp::compute::node_templates::v1:: @@ -238,6 +312,79 @@ NodeTemplatesRestConnectionImpl::InsertNodeTemplate( }); } +StatusOr +NodeTemplatesRestConnectionImpl::InsertNodeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_templates::v1:: + InsertNodeTemplateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertNodeTemplate(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::node_templates::v1:: + InsertNodeTemplateRequest const& request) { + return stub_->InsertNodeTemplate(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +NodeTemplatesRestConnectionImpl::InsertNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange NodeTemplatesRestConnectionImpl::ListNodeTemplates( google::cloud::cpp::compute::node_templates::v1::ListNodeTemplatesRequest diff --git a/google/cloud/compute/node_templates/v1/internal/node_templates_rest_connection_impl.h b/google/cloud/compute/node_templates/v1/internal/node_templates_rest_connection_impl.h index 0c0efa4e6d31c..93f3d455d97ae 100644 --- a/google/cloud/compute/node_templates/v1/internal/node_templates_rest_connection_impl.h +++ b/google/cloud/compute/node_templates/v1/internal/node_templates_rest_connection_impl.h @@ -61,6 +61,16 @@ class NodeTemplatesRestConnectionImpl DeleteNodeTemplate(google::cloud::cpp::compute::node_templates::v1:: DeleteNodeTemplateRequest const& request) override; + StatusOr DeleteNodeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_templates::v1:: + DeleteNodeTemplateRequest const& request) override; + + future> + DeleteNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNodeTemplate( google::cloud::cpp::compute::node_templates::v1:: GetNodeTemplateRequest const& request) override; @@ -73,6 +83,16 @@ class NodeTemplatesRestConnectionImpl InsertNodeTemplate(google::cloud::cpp::compute::node_templates::v1:: InsertNodeTemplateRequest const& request) override; + StatusOr InsertNodeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_templates::v1:: + InsertNodeTemplateRequest const& request) override; + + future> + InsertNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListNodeTemplates( google::cloud::cpp::compute::node_templates::v1::ListNodeTemplatesRequest request) override; diff --git a/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.cc b/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.cc index 7fad4009a3b8e..bf640b28121f8 100644 --- a/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.cc +++ b/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.cc @@ -59,6 +59,31 @@ NodeTemplatesTracingConnection::DeleteNodeTemplate( child_->DeleteNodeTemplate(request)); } +StatusOr +NodeTemplatesTracingConnection::DeleteNodeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_templates::v1:: + DeleteNodeTemplateRequest const& request) { + auto span = internal::MakeSpan( + "compute_node_templates_v1::NodeTemplatesConnection::DeleteNodeTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteNodeTemplate(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NodeTemplatesTracingConnection::DeleteNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_node_templates_v1::NodeTemplatesConnection::DeleteNodeTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteNodeTemplate(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NodeTemplatesTracingConnection::GetNodeTemplate( google::cloud::cpp::compute::node_templates::v1:: @@ -90,6 +115,31 @@ NodeTemplatesTracingConnection::InsertNodeTemplate( child_->InsertNodeTemplate(request)); } +StatusOr +NodeTemplatesTracingConnection::InsertNodeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_templates::v1:: + InsertNodeTemplateRequest const& request) { + auto span = internal::MakeSpan( + "compute_node_templates_v1::NodeTemplatesConnection::InsertNodeTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertNodeTemplate(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NodeTemplatesTracingConnection::InsertNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_node_templates_v1::NodeTemplatesConnection::InsertNodeTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertNodeTemplate(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NodeTemplatesTracingConnection::ListNodeTemplates( google::cloud::cpp::compute::node_templates::v1::ListNodeTemplatesRequest diff --git a/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.h b/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.h index b92093691271a..b437c430dd89a 100644 --- a/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.h +++ b/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.h @@ -51,6 +51,16 @@ class NodeTemplatesTracingConnection DeleteNodeTemplate(google::cloud::cpp::compute::node_templates::v1:: DeleteNodeTemplateRequest const& request) override; + StatusOr DeleteNodeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_templates::v1:: + DeleteNodeTemplateRequest const& request) override; + + future> + DeleteNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNodeTemplate( google::cloud::cpp::compute::node_templates::v1:: GetNodeTemplateRequest const& request) override; @@ -63,6 +73,16 @@ class NodeTemplatesTracingConnection InsertNodeTemplate(google::cloud::cpp::compute::node_templates::v1:: InsertNodeTemplateRequest const& request) override; + StatusOr InsertNodeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_templates::v1:: + InsertNodeTemplateRequest const& request) override; + + future> + InsertNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListNodeTemplates( google::cloud::cpp::compute::node_templates::v1::ListNodeTemplatesRequest request) override; diff --git a/google/cloud/compute/node_templates/v1/mocks/mock_node_templates_connection.h b/google/cloud/compute/node_templates/v1/mocks/mock_node_templates_connection.h index 7c78beb0fdd25..ad70ac49baec4 100644 --- a/google/cloud/compute/node_templates/v1/mocks/mock_node_templates_connection.h +++ b/google/cloud/compute/node_templates/v1/mocks/mock_node_templates_connection.h @@ -62,6 +62,19 @@ class MockNodeTemplatesConnection DeleteNodeTemplateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteNodeTemplate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_templates::v1:: + DeleteNodeTemplateRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteNodeTemplate, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetNodeTemplate, (google::cloud::cpp::compute::node_templates::v1:: @@ -79,6 +92,19 @@ class MockNodeTemplatesConnection InsertNodeTemplateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertNodeTemplate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_templates::v1:: + InsertNodeTemplateRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertNodeTemplate, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListNodeTemplates, diff --git a/google/cloud/compute/node_templates/v1/node_templates_connection.cc b/google/cloud/compute/node_templates/v1/node_templates_connection.cc index 3f77968fa7833..9aaf29c6bb649 100644 --- a/google/cloud/compute/node_templates/v1/node_templates_connection.cc +++ b/google/cloud/compute/node_templates/v1/node_templates_connection.cc @@ -55,6 +55,24 @@ NodeTemplatesConnection::DeleteNodeTemplate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NodeTemplatesConnection::DeleteNodeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_templates::v1:: + DeleteNodeTemplateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NodeTemplatesConnection::DeleteNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NodeTemplatesConnection::GetNodeTemplate( google::cloud::cpp::compute::node_templates::v1:: @@ -78,6 +96,24 @@ NodeTemplatesConnection::InsertNodeTemplate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NodeTemplatesConnection::InsertNodeTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_templates::v1:: + InsertNodeTemplateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NodeTemplatesConnection::InsertNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NodeTemplatesConnection::ListNodeTemplates( google::cloud::cpp::compute::node_templates::v1:: diff --git a/google/cloud/compute/node_templates/v1/node_templates_connection.h b/google/cloud/compute/node_templates/v1/node_templates_connection.h index bb4fdf49f6e3b..4be3227e5c092 100644 --- a/google/cloud/compute/node_templates/v1/node_templates_connection.h +++ b/google/cloud/compute/node_templates/v1/node_templates_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/node_templates/v1/internal/node_templates_retry_traits.h" #include "google/cloud/compute/node_templates/v1/node_templates_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -194,6 +196,16 @@ class NodeTemplatesConnection { DeleteNodeTemplate(google::cloud::cpp::compute::node_templates::v1:: DeleteNodeTemplateRequest const& request); + virtual StatusOr + DeleteNodeTemplate(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_templates::v1:: + DeleteNodeTemplateRequest const& request); + + virtual future> + DeleteNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetNodeTemplate(google::cloud::cpp::compute::node_templates::v1:: GetNodeTemplateRequest const& request); @@ -206,6 +218,16 @@ class NodeTemplatesConnection { InsertNodeTemplate(google::cloud::cpp::compute::node_templates::v1:: InsertNodeTemplateRequest const& request); + virtual StatusOr + InsertNodeTemplate(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::node_templates::v1:: + InsertNodeTemplateRequest const& request); + + virtual future> + InsertNodeTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListNodeTemplates( google::cloud::cpp::compute::node_templates::v1::ListNodeTemplatesRequest diff --git a/google/cloud/compute/node_types/v1/node_types_connection.h b/google/cloud/compute/node_types/v1/node_types_connection.h index 14ab64ea4a5e6..1761d8847ef12 100644 --- a/google/cloud/compute/node_types/v1/node_types_connection.h +++ b/google/cloud/compute/node_types/v1/node_types_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/node_types/v1/internal/node_types_retry_traits.h" #include "google/cloud/compute/node_types/v1/node_types_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_rest_connection_impl.cc b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_rest_connection_impl.cc index fff6b888cb95b..8a9d21e24b50e 100644 --- a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_rest_connection_impl.cc +++ b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -147,6 +148,79 @@ PacketMirroringsRestConnectionImpl::DeletePacketMirroring( }); } +StatusOr +PacketMirroringsRestConnectionImpl::DeletePacketMirroring( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + DeletePacketMirroringRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePacketMirroring(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::packet_mirrorings::v1:: + DeletePacketMirroringRequest const& request) { + return stub_->DeletePacketMirroring(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +PacketMirroringsRestConnectionImpl::DeletePacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr PacketMirroringsRestConnectionImpl::GetPacketMirroring( google::cloud::cpp::compute::packet_mirrorings::v1:: @@ -223,6 +297,79 @@ PacketMirroringsRestConnectionImpl::InsertPacketMirroring( }); } +StatusOr +PacketMirroringsRestConnectionImpl::InsertPacketMirroring( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + InsertPacketMirroringRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertPacketMirroring(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::packet_mirrorings::v1:: + InsertPacketMirroringRequest const& request) { + return stub_->InsertPacketMirroring(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +PacketMirroringsRestConnectionImpl::InsertPacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange PacketMirroringsRestConnectionImpl::ListPacketMirrorings( google::cloud::cpp::compute::packet_mirrorings::v1:: @@ -322,6 +469,79 @@ PacketMirroringsRestConnectionImpl::PatchPacketMirroring( }); } +StatusOr +PacketMirroringsRestConnectionImpl::PatchPacketMirroring( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + PatchPacketMirroringRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchPacketMirroring(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::packet_mirrorings::v1:: + PatchPacketMirroringRequest const& request) { + return stub_->PatchPacketMirroring(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +PacketMirroringsRestConnectionImpl::PatchPacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr PacketMirroringsRestConnectionImpl::TestIamPermissions( google::cloud::cpp::compute::packet_mirrorings::v1:: diff --git a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_rest_connection_impl.h b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_rest_connection_impl.h index 54bca8e000352..6c8738a707672 100644 --- a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_rest_connection_impl.h +++ b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_rest_connection_impl.h @@ -63,6 +63,16 @@ class PacketMirroringsRestConnectionImpl google::cloud::cpp::compute::packet_mirrorings::v1:: DeletePacketMirroringRequest const& request) override; + StatusOr DeletePacketMirroring( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + DeletePacketMirroringRequest const& request) override; + + future> + DeletePacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetPacketMirroring( google::cloud::cpp::compute::packet_mirrorings::v1:: GetPacketMirroringRequest const& request) override; @@ -72,6 +82,16 @@ class PacketMirroringsRestConnectionImpl google::cloud::cpp::compute::packet_mirrorings::v1:: InsertPacketMirroringRequest const& request) override; + StatusOr InsertPacketMirroring( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + InsertPacketMirroringRequest const& request) override; + + future> + InsertPacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListPacketMirrorings(google::cloud::cpp::compute::packet_mirrorings::v1:: ListPacketMirroringsRequest request) override; @@ -80,6 +100,16 @@ class PacketMirroringsRestConnectionImpl PatchPacketMirroring(google::cloud::cpp::compute::packet_mirrorings::v1:: PatchPacketMirroringRequest const& request) override; + StatusOr PatchPacketMirroring( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + PatchPacketMirroringRequest const& request) override; + + future> + PatchPacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::packet_mirrorings::v1:: TestIamPermissionsRequest const& request) override; diff --git a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.cc b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.cc index 40cf66d03e67f..aee77a0c83177 100644 --- a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.cc +++ b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.cc @@ -62,6 +62,33 @@ PacketMirroringsTracingConnection::DeletePacketMirroring( child_->DeletePacketMirroring(request)); } +StatusOr +PacketMirroringsTracingConnection::DeletePacketMirroring( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + DeletePacketMirroringRequest const& request) { + auto span = internal::MakeSpan( + "compute_packet_mirrorings_v1::PacketMirroringsConnection::" + "DeletePacketMirroring"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeletePacketMirroring( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PacketMirroringsTracingConnection::DeletePacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_packet_mirrorings_v1::PacketMirroringsConnection::" + "DeletePacketMirroring"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeletePacketMirroring( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr PacketMirroringsTracingConnection::GetPacketMirroring( google::cloud::cpp::compute::packet_mirrorings::v1:: @@ -85,6 +112,33 @@ PacketMirroringsTracingConnection::InsertPacketMirroring( child_->InsertPacketMirroring(request)); } +StatusOr +PacketMirroringsTracingConnection::InsertPacketMirroring( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + InsertPacketMirroringRequest const& request) { + auto span = internal::MakeSpan( + "compute_packet_mirrorings_v1::PacketMirroringsConnection::" + "InsertPacketMirroring"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertPacketMirroring( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PacketMirroringsTracingConnection::InsertPacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_packet_mirrorings_v1::PacketMirroringsConnection::" + "InsertPacketMirroring"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertPacketMirroring( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange PacketMirroringsTracingConnection::ListPacketMirrorings( google::cloud::cpp::compute::packet_mirrorings::v1:: @@ -111,6 +165,33 @@ PacketMirroringsTracingConnection::PatchPacketMirroring( child_->PatchPacketMirroring(request)); } +StatusOr +PacketMirroringsTracingConnection::PatchPacketMirroring( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + PatchPacketMirroringRequest const& request) { + auto span = internal::MakeSpan( + "compute_packet_mirrorings_v1::PacketMirroringsConnection::" + "PatchPacketMirroring"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchPacketMirroring( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PacketMirroringsTracingConnection::PatchPacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_packet_mirrorings_v1::PacketMirroringsConnection::" + "PatchPacketMirroring"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchPacketMirroring( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr PacketMirroringsTracingConnection::TestIamPermissions( google::cloud::cpp::compute::packet_mirrorings::v1:: diff --git a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.h b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.h index 77b4ca75baab5..0a009a92ea765 100644 --- a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.h +++ b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.h @@ -52,6 +52,16 @@ class PacketMirroringsTracingConnection google::cloud::cpp::compute::packet_mirrorings::v1:: DeletePacketMirroringRequest const& request) override; + StatusOr DeletePacketMirroring( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + DeletePacketMirroringRequest const& request) override; + + future> + DeletePacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetPacketMirroring( google::cloud::cpp::compute::packet_mirrorings::v1:: GetPacketMirroringRequest const& request) override; @@ -61,6 +71,16 @@ class PacketMirroringsTracingConnection google::cloud::cpp::compute::packet_mirrorings::v1:: InsertPacketMirroringRequest const& request) override; + StatusOr InsertPacketMirroring( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + InsertPacketMirroringRequest const& request) override; + + future> + InsertPacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListPacketMirrorings(google::cloud::cpp::compute::packet_mirrorings::v1:: ListPacketMirroringsRequest request) override; @@ -69,6 +89,16 @@ class PacketMirroringsTracingConnection PatchPacketMirroring(google::cloud::cpp::compute::packet_mirrorings::v1:: PatchPacketMirroringRequest const& request) override; + StatusOr PatchPacketMirroring( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + PatchPacketMirroringRequest const& request) override; + + future> + PatchPacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::packet_mirrorings::v1:: TestIamPermissionsRequest const& request) override; diff --git a/google/cloud/compute/packet_mirrorings/v1/mocks/mock_packet_mirrorings_connection.h b/google/cloud/compute/packet_mirrorings/v1/mocks/mock_packet_mirrorings_connection.h index bcadcaa8efe19..57351e0e51fd7 100644 --- a/google/cloud/compute/packet_mirrorings/v1/mocks/mock_packet_mirrorings_connection.h +++ b/google/cloud/compute/packet_mirrorings/v1/mocks/mock_packet_mirrorings_connection.h @@ -61,6 +61,19 @@ class MockPacketMirroringsConnection DeletePacketMirroringRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeletePacketMirroring, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + DeletePacketMirroringRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeletePacketMirroring, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetPacketMirroring, (google::cloud::cpp::compute::packet_mirrorings::v1:: @@ -73,6 +86,19 @@ class MockPacketMirroringsConnection InsertPacketMirroringRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertPacketMirroring, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + InsertPacketMirroringRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertPacketMirroring, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListPacketMirrorings, (google::cloud::cpp::compute::packet_mirrorings::v1:: @@ -85,6 +111,19 @@ class MockPacketMirroringsConnection PatchPacketMirroringRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchPacketMirroring, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + PatchPacketMirroringRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchPacketMirroring, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, TestIamPermissions, diff --git a/google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection.cc b/google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection.cc index 6726630384793..d917822fae9c8 100644 --- a/google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection.cc +++ b/google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection.cc @@ -55,6 +55,24 @@ PacketMirroringsConnection::DeletePacketMirroring( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PacketMirroringsConnection::DeletePacketMirroring( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + DeletePacketMirroringRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PacketMirroringsConnection::DeletePacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr PacketMirroringsConnection::GetPacketMirroring( google::cloud::cpp::compute::packet_mirrorings::v1:: @@ -71,6 +89,24 @@ PacketMirroringsConnection::InsertPacketMirroring( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PacketMirroringsConnection::InsertPacketMirroring( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + InsertPacketMirroringRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PacketMirroringsConnection::InsertPacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange PacketMirroringsConnection::ListPacketMirrorings( google::cloud::cpp::compute::packet_mirrorings::v1:: @@ -88,6 +124,24 @@ PacketMirroringsConnection::PatchPacketMirroring( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PacketMirroringsConnection::PatchPacketMirroring( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + PatchPacketMirroringRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PacketMirroringsConnection::PatchPacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr PacketMirroringsConnection::TestIamPermissions( google::cloud::cpp::compute::packet_mirrorings::v1:: diff --git a/google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection.h b/google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection.h index d2647fe592e0f..cf41aed87072f 100644 --- a/google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection.h +++ b/google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_retry_traits.h" #include "google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -196,6 +198,17 @@ class PacketMirroringsConnection { DeletePacketMirroring(google::cloud::cpp::compute::packet_mirrorings::v1:: DeletePacketMirroringRequest const& request); + virtual StatusOr + DeletePacketMirroring(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + DeletePacketMirroringRequest const& request); + + virtual future> + DeletePacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetPacketMirroring(google::cloud::cpp::compute::packet_mirrorings::v1:: GetPacketMirroringRequest const& request); @@ -204,6 +217,17 @@ class PacketMirroringsConnection { InsertPacketMirroring(google::cloud::cpp::compute::packet_mirrorings::v1:: InsertPacketMirroringRequest const& request); + virtual StatusOr + InsertPacketMirroring(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + InsertPacketMirroringRequest const& request); + + virtual future> + InsertPacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListPacketMirrorings(google::cloud::cpp::compute::packet_mirrorings::v1:: ListPacketMirroringsRequest request); @@ -212,6 +236,17 @@ class PacketMirroringsConnection { PatchPacketMirroring(google::cloud::cpp::compute::packet_mirrorings::v1:: PatchPacketMirroringRequest const& request); + virtual StatusOr + PatchPacketMirroring(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::packet_mirrorings::v1:: + PatchPacketMirroringRequest const& request); + + virtual future> + PatchPacketMirroring( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr TestIamPermissions(google::cloud::cpp::compute::packet_mirrorings::v1:: TestIamPermissionsRequest const& request); diff --git a/google/cloud/compute/projects/v1/internal/projects_rest_connection_impl.cc b/google/cloud/compute/projects/v1/internal/projects_rest_connection_impl.cc index f5237b7b1f46f..9cd75e096f92f 100644 --- a/google/cloud/compute/projects/v1/internal/projects_rest_connection_impl.cc +++ b/google/cloud/compute/projects/v1/internal/projects_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -100,6 +101,77 @@ ProjectsRestConnectionImpl::DisableXpnHost( }); } +StatusOr +ProjectsRestConnectionImpl::DisableXpnHost( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DisableXpnHost(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::projects::v1:: + DisableXpnHostRequest const& request) { + return stub_->DisableXpnHost(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ProjectsRestConnectionImpl::DisableXpnHost( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> ProjectsRestConnectionImpl::DisableXpnResource( google::cloud::cpp::compute::projects::v1::DisableXpnResourceRequest const& @@ -158,6 +230,77 @@ ProjectsRestConnectionImpl::DisableXpnResource( }); } +StatusOr +ProjectsRestConnectionImpl::DisableXpnResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::DisableXpnResourceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DisableXpnResource(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::projects::v1:: + DisableXpnResourceRequest const& request) { + return stub_->DisableXpnResource(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ProjectsRestConnectionImpl::DisableXpnResource( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> ProjectsRestConnectionImpl::EnableXpnHost( google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& @@ -217,6 +360,78 @@ ProjectsRestConnectionImpl::EnableXpnHost( }); } +StatusOr +ProjectsRestConnectionImpl::EnableXpnHost( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->EnableXpnHost(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& + request) { + return stub_->EnableXpnHost(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ProjectsRestConnectionImpl::EnableXpnHost( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> ProjectsRestConnectionImpl::EnableXpnResource( google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const& @@ -275,6 +490,77 @@ ProjectsRestConnectionImpl::EnableXpnResource( }); } +StatusOr +ProjectsRestConnectionImpl::EnableXpnResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->EnableXpnResource(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::projects::v1:: + EnableXpnResourceRequest const& request) { + return stub_->EnableXpnResource(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ProjectsRestConnectionImpl::EnableXpnResource( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr ProjectsRestConnectionImpl::GetProject( google::cloud::cpp::compute::projects::v1::GetProjectRequest const& @@ -417,6 +703,76 @@ ProjectsRestConnectionImpl::MoveDisk( }); } +StatusOr +ProjectsRestConnectionImpl::MoveDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->MoveDisk(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& + request) { + return stub_->MoveDisk(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ProjectsRestConnectionImpl::MoveDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> ProjectsRestConnectionImpl::MoveInstance( google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& @@ -476,6 +832,78 @@ ProjectsRestConnectionImpl::MoveInstance( }); } +StatusOr +ProjectsRestConnectionImpl::MoveInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->MoveInstance(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& + request) { + return stub_->MoveInstance(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ProjectsRestConnectionImpl::MoveInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> ProjectsRestConnectionImpl::SetCloudArmorTier( google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const& @@ -534,6 +962,77 @@ ProjectsRestConnectionImpl::SetCloudArmorTier( }); } +StatusOr +ProjectsRestConnectionImpl::SetCloudArmorTier( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetCloudArmorTier(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::projects::v1:: + SetCloudArmorTierRequest const& request) { + return stub_->SetCloudArmorTier(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ProjectsRestConnectionImpl::SetCloudArmorTier( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> ProjectsRestConnectionImpl::SetCommonInstanceMetadata( google::cloud::cpp::compute::projects::v1:: @@ -592,6 +1091,77 @@ ProjectsRestConnectionImpl::SetCommonInstanceMetadata( }); } +StatusOr +ProjectsRestConnectionImpl::SetCommonInstanceMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetCommonInstanceMetadataRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetCommonInstanceMetadata(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::projects::v1:: + SetCommonInstanceMetadataRequest const& request) { + return stub_->SetCommonInstanceMetadata(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ProjectsRestConnectionImpl::SetCommonInstanceMetadata( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> ProjectsRestConnectionImpl::SetDefaultNetworkTier( google::cloud::cpp::compute::projects::v1:: @@ -650,6 +1220,77 @@ ProjectsRestConnectionImpl::SetDefaultNetworkTier( }); } +StatusOr +ProjectsRestConnectionImpl::SetDefaultNetworkTier( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetDefaultNetworkTierRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetDefaultNetworkTier(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::projects::v1:: + SetDefaultNetworkTierRequest const& request) { + return stub_->SetDefaultNetworkTier(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ProjectsRestConnectionImpl::SetDefaultNetworkTier( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> ProjectsRestConnectionImpl::SetUsageExportBucket( google::cloud::cpp::compute::projects::v1:: @@ -708,6 +1349,77 @@ ProjectsRestConnectionImpl::SetUsageExportBucket( }); } +StatusOr +ProjectsRestConnectionImpl::SetUsageExportBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetUsageExportBucketRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetUsageExportBucket(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::projects::v1:: + SetUsageExportBucketRequest const& request) { + return stub_->SetUsageExportBucket(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ProjectsRestConnectionImpl::SetUsageExportBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_projects_v1_internal } // namespace cloud diff --git a/google/cloud/compute/projects/v1/internal/projects_rest_connection_impl.h b/google/cloud/compute/projects/v1/internal/projects_rest_connection_impl.h index 77511a9c83411..1aea005ef92d5 100644 --- a/google/cloud/compute/projects/v1/internal/projects_rest_connection_impl.h +++ b/google/cloud/compute/projects/v1/internal/projects_rest_connection_impl.h @@ -54,19 +54,57 @@ class ProjectsRestConnectionImpl google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const& request) override; + StatusOr DisableXpnHost( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const& + request) override; + + future> DisableXpnHost( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DisableXpnResource(google::cloud::cpp::compute::projects::v1:: DisableXpnResourceRequest const& request) override; + StatusOr DisableXpnResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + DisableXpnResourceRequest const& request) override; + + future> + DisableXpnResource( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> EnableXpnHost( google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& request) override; + StatusOr EnableXpnHost( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& + request) override; + + future> EnableXpnHost( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> EnableXpnResource( google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const& request) override; + StatusOr EnableXpnResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const& + request) override; + + future> + EnableXpnResource( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetProject( google::cloud::cpp::compute::projects::v1::GetProjectRequest const& request) override; @@ -88,29 +126,88 @@ class ProjectsRestConnectionImpl google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& request) override; + StatusOr MoveDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& request) + override; + + future> MoveDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> MoveInstance( google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& request) override; + StatusOr MoveInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& + request) override; + + future> MoveInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetCloudArmorTier( google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const& request) override; + StatusOr SetCloudArmorTier( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const& + request) override; + future> + SetCloudArmorTier( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + + future> + SetCommonInstanceMetadata( + google::cloud::cpp::compute::projects::v1:: + SetCommonInstanceMetadataRequest const& request) override; + + StatusOr SetCommonInstanceMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetCommonInstanceMetadataRequest const& request) override; + future> + SetCommonInstanceMetadata( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetDefaultNetworkTier( google::cloud::cpp::compute::projects::v1:: SetDefaultNetworkTierRequest const& request) override; + StatusOr SetDefaultNetworkTier( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetDefaultNetworkTierRequest const& request) override; + + future> + SetDefaultNetworkTier( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetUsageExportBucket(google::cloud::cpp::compute::projects::v1:: SetUsageExportBucketRequest const& request) override; + StatusOr SetUsageExportBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetUsageExportBucketRequest const& request) override; + + future> + SetUsageExportBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy( Options const& options) { diff --git a/google/cloud/compute/projects/v1/internal/projects_tracing_connection.cc b/google/cloud/compute/projects/v1/internal/projects_tracing_connection.cc index a235f4ef70efb..08620d42fbb83 100644 --- a/google/cloud/compute/projects/v1/internal/projects_tracing_connection.cc +++ b/google/cloud/compute/projects/v1/internal/projects_tracing_connection.cc @@ -43,6 +43,31 @@ ProjectsTracingConnection::DisableXpnHost( return internal::EndSpan(std::move(span), child_->DisableXpnHost(request)); } +StatusOr +ProjectsTracingConnection::DisableXpnHost( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const& + request) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::DisableXpnHost"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DisableXpnHost(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProjectsTracingConnection::DisableXpnHost( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::DisableXpnHost"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DisableXpnHost(google::cloud::ExperimentalTag{}, operation)); +} + future> ProjectsTracingConnection::DisableXpnResource( google::cloud::cpp::compute::projects::v1::DisableXpnResourceRequest const& @@ -54,6 +79,31 @@ ProjectsTracingConnection::DisableXpnResource( child_->DisableXpnResource(request)); } +StatusOr +ProjectsTracingConnection::DisableXpnResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::DisableXpnResourceRequest const& + request) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::DisableXpnResource"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DisableXpnResource(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProjectsTracingConnection::DisableXpnResource( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::DisableXpnResource"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DisableXpnResource(google::cloud::ExperimentalTag{}, operation)); +} + future> ProjectsTracingConnection::EnableXpnHost( google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& @@ -64,6 +114,31 @@ ProjectsTracingConnection::EnableXpnHost( return internal::EndSpan(std::move(span), child_->EnableXpnHost(request)); } +StatusOr +ProjectsTracingConnection::EnableXpnHost( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& + request) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::EnableXpnHost"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->EnableXpnHost(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProjectsTracingConnection::EnableXpnHost( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::EnableXpnHost"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->EnableXpnHost(google::cloud::ExperimentalTag{}, operation)); +} + future> ProjectsTracingConnection::EnableXpnResource( google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const& @@ -74,6 +149,31 @@ ProjectsTracingConnection::EnableXpnResource( return internal::EndSpan(std::move(span), child_->EnableXpnResource(request)); } +StatusOr +ProjectsTracingConnection::EnableXpnResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const& + request) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::EnableXpnResource"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->EnableXpnResource(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProjectsTracingConnection::EnableXpnResource( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::EnableXpnResource"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->EnableXpnResource(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ProjectsTracingConnection::GetProject( google::cloud::cpp::compute::projects::v1::GetProjectRequest const& @@ -124,6 +224,30 @@ ProjectsTracingConnection::MoveDisk( return internal::EndSpan(std::move(span), child_->MoveDisk(request)); } +StatusOr +ProjectsTracingConnection::MoveDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& request) { + auto span = + internal::MakeSpan("compute_projects_v1::ProjectsConnection::MoveDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->MoveDisk(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProjectsTracingConnection::MoveDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_projects_v1::ProjectsConnection::MoveDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->MoveDisk(google::cloud::ExperimentalTag{}, operation)); +} + future> ProjectsTracingConnection::MoveInstance( google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& @@ -134,6 +258,31 @@ ProjectsTracingConnection::MoveInstance( return internal::EndSpan(std::move(span), child_->MoveInstance(request)); } +StatusOr +ProjectsTracingConnection::MoveInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& + request) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::MoveInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->MoveInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProjectsTracingConnection::MoveInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::MoveInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->MoveInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> ProjectsTracingConnection::SetCloudArmorTier( google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const& @@ -144,6 +293,31 @@ ProjectsTracingConnection::SetCloudArmorTier( return internal::EndSpan(std::move(span), child_->SetCloudArmorTier(request)); } +StatusOr +ProjectsTracingConnection::SetCloudArmorTier( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const& + request) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::SetCloudArmorTier"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetCloudArmorTier(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProjectsTracingConnection::SetCloudArmorTier( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::SetCloudArmorTier"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetCloudArmorTier(google::cloud::ExperimentalTag{}, operation)); +} + future> ProjectsTracingConnection::SetCommonInstanceMetadata( google::cloud::cpp::compute::projects::v1:: @@ -155,6 +329,31 @@ ProjectsTracingConnection::SetCommonInstanceMetadata( child_->SetCommonInstanceMetadata(request)); } +StatusOr +ProjectsTracingConnection::SetCommonInstanceMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetCommonInstanceMetadataRequest const& request) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::SetCommonInstanceMetadata"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SetCommonInstanceMetadata( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProjectsTracingConnection::SetCommonInstanceMetadata( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::SetCommonInstanceMetadata"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SetCommonInstanceMetadata( + google::cloud::ExperimentalTag{}, operation)); +} + future> ProjectsTracingConnection::SetDefaultNetworkTier( google::cloud::cpp::compute::projects::v1:: @@ -166,6 +365,31 @@ ProjectsTracingConnection::SetDefaultNetworkTier( child_->SetDefaultNetworkTier(request)); } +StatusOr +ProjectsTracingConnection::SetDefaultNetworkTier( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetDefaultNetworkTierRequest const& request) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::SetDefaultNetworkTier"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SetDefaultNetworkTier( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProjectsTracingConnection::SetDefaultNetworkTier( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::SetDefaultNetworkTier"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SetDefaultNetworkTier( + google::cloud::ExperimentalTag{}, operation)); +} + future> ProjectsTracingConnection::SetUsageExportBucket( google::cloud::cpp::compute::projects::v1:: @@ -177,6 +401,31 @@ ProjectsTracingConnection::SetUsageExportBucket( child_->SetUsageExportBucket(request)); } +StatusOr +ProjectsTracingConnection::SetUsageExportBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetUsageExportBucketRequest const& request) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::SetUsageExportBucket"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SetUsageExportBucket( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProjectsTracingConnection::SetUsageExportBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_projects_v1::ProjectsConnection::SetUsageExportBucket"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SetUsageExportBucket( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/projects/v1/internal/projects_tracing_connection.h b/google/cloud/compute/projects/v1/internal/projects_tracing_connection.h index 5d4d3d747ed31..2101f9cfd17e2 100644 --- a/google/cloud/compute/projects/v1/internal/projects_tracing_connection.h +++ b/google/cloud/compute/projects/v1/internal/projects_tracing_connection.h @@ -44,19 +44,57 @@ class ProjectsTracingConnection google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const& request) override; + StatusOr DisableXpnHost( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const& + request) override; + + future> DisableXpnHost( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DisableXpnResource(google::cloud::cpp::compute::projects::v1:: DisableXpnResourceRequest const& request) override; + StatusOr DisableXpnResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + DisableXpnResourceRequest const& request) override; + + future> + DisableXpnResource( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> EnableXpnHost( google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& request) override; + StatusOr EnableXpnHost( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& + request) override; + + future> EnableXpnHost( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> EnableXpnResource( google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const& request) override; + StatusOr EnableXpnResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const& + request) override; + + future> + EnableXpnResource( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetProject( google::cloud::cpp::compute::projects::v1::GetProjectRequest const& request) override; @@ -78,29 +116,88 @@ class ProjectsTracingConnection google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& request) override; + StatusOr MoveDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& request) + override; + + future> MoveDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> MoveInstance( google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& request) override; + StatusOr MoveInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& + request) override; + + future> MoveInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetCloudArmorTier( google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const& request) override; + StatusOr SetCloudArmorTier( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const& + request) override; + future> + SetCloudArmorTier( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + + future> + SetCommonInstanceMetadata( + google::cloud::cpp::compute::projects::v1:: + SetCommonInstanceMetadataRequest const& request) override; + + StatusOr SetCommonInstanceMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetCommonInstanceMetadataRequest const& request) override; + future> + SetCommonInstanceMetadata( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetDefaultNetworkTier( google::cloud::cpp::compute::projects::v1:: SetDefaultNetworkTierRequest const& request) override; + StatusOr SetDefaultNetworkTier( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetDefaultNetworkTierRequest const& request) override; + + future> + SetDefaultNetworkTier( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetUsageExportBucket(google::cloud::cpp::compute::projects::v1:: SetUsageExportBucketRequest const& request) override; + StatusOr SetUsageExportBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetUsageExportBucketRequest const& request) override; + + future> + SetUsageExportBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/projects/v1/mocks/mock_projects_connection.h b/google/cloud/compute/projects/v1/mocks/mock_projects_connection.h index 567cab00413d8..49af5106d561c 100644 --- a/google/cloud/compute/projects/v1/mocks/mock_projects_connection.h +++ b/google/cloud/compute/projects/v1/mocks/mock_projects_connection.h @@ -53,12 +53,38 @@ class MockProjectsConnection : public compute_projects_v1::ProjectsConnection { request), (override)); + MOCK_METHOD( + StatusOr, DisableXpnHost, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DisableXpnHost, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DisableXpnResource, (google::cloud::cpp::compute::projects::v1:: DisableXpnResourceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DisableXpnResource, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + DisableXpnResourceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DisableXpnResource, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, EnableXpnHost, @@ -66,12 +92,38 @@ class MockProjectsConnection : public compute_projects_v1::ProjectsConnection { request), (override)); + MOCK_METHOD( + StatusOr, EnableXpnHost, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& + request), + (override)); + + MOCK_METHOD(future>, + EnableXpnHost, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, EnableXpnResource, (google::cloud::cpp::compute::projects::v1:: EnableXpnResourceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + EnableXpnResource, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + EnableXpnResourceRequest const& request), + (override)); + + MOCK_METHOD(future>, + EnableXpnResource, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetProject, (google::cloud::cpp::compute::projects::v1::GetProjectRequest const& @@ -102,6 +154,18 @@ class MockProjectsConnection : public compute_projects_v1::ProjectsConnection { request), (override)); + MOCK_METHOD(StatusOr, MoveDisk, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& + request), + (override)); + + MOCK_METHOD(future>, + MoveDisk, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, MoveInstance, @@ -109,29 +173,94 @@ class MockProjectsConnection : public compute_projects_v1::ProjectsConnection { request), (override)); + MOCK_METHOD( + StatusOr, MoveInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& + request), + (override)); + + MOCK_METHOD(future>, + MoveInstance, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetCloudArmorTier, (google::cloud::cpp::compute::projects::v1:: SetCloudArmorTierRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetCloudArmorTier, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetCloudArmorTierRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetCloudArmorTier, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetCommonInstanceMetadata, (google::cloud::cpp::compute::projects::v1:: SetCommonInstanceMetadataRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetCommonInstanceMetadata, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetCommonInstanceMetadataRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetCommonInstanceMetadata, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetDefaultNetworkTier, (google::cloud::cpp::compute::projects::v1:: SetDefaultNetworkTierRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetDefaultNetworkTier, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetDefaultNetworkTierRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetDefaultNetworkTier, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetUsageExportBucket, (google::cloud::cpp::compute::projects::v1:: SetUsageExportBucketRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + SetUsageExportBucket, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetUsageExportBucketRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetUsageExportBucket, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/projects/v1/projects_connection.cc b/google/cloud/compute/projects/v1/projects_connection.cc index 54e9d69778388..41d2d4f4cfb4c 100644 --- a/google/cloud/compute/projects/v1/projects_connection.cc +++ b/google/cloud/compute/projects/v1/projects_connection.cc @@ -44,10 +44,45 @@ ProjectsConnection::DisableXpnHost( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ProjectsConnection::DisableXpnHost( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +ProjectsConnection::DisableXpnHost( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProjectsConnection::DisableXpnResource( + google::cloud::cpp::compute::projects::v1:: + DisableXpnResourceRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr ProjectsConnection::DisableXpnResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::projects::v1:: DisableXpnResourceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProjectsConnection::DisableXpnResource( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -61,6 +96,23 @@ ProjectsConnection::EnableXpnHost( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ProjectsConnection::EnableXpnHost( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProjectsConnection::EnableXpnHost( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ProjectsConnection::EnableXpnResource(google::cloud::cpp::compute::projects:: v1::EnableXpnResourceRequest const&) { @@ -69,6 +121,24 @@ ProjectsConnection::EnableXpnResource(google::cloud::cpp::compute::projects:: Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ProjectsConnection::EnableXpnResource(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects:: + v1::EnableXpnResourceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProjectsConnection::EnableXpnResource( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ProjectsConnection::GetProject( google::cloud::cpp::compute::projects::v1::GetProjectRequest const&) { @@ -103,9 +173,43 @@ ProjectsConnection::MoveDisk( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ProjectsConnection::MoveDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::MoveDiskRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +ProjectsConnection::MoveDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProjectsConnection::MoveInstance( + google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr ProjectsConnection::MoveInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProjectsConnection::MoveInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -119,6 +223,24 @@ ProjectsConnection::SetCloudArmorTier(google::cloud::cpp::compute::projects:: Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ProjectsConnection::SetCloudArmorTier(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects:: + v1::SetCloudArmorTierRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProjectsConnection::SetCloudArmorTier( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ProjectsConnection::SetCommonInstanceMetadata( google::cloud::cpp::compute::projects::v1:: @@ -128,6 +250,24 @@ ProjectsConnection::SetCommonInstanceMetadata( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ProjectsConnection::SetCommonInstanceMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetCommonInstanceMetadataRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProjectsConnection::SetCommonInstanceMetadata( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ProjectsConnection::SetDefaultNetworkTier( google::cloud::cpp::compute::projects::v1:: @@ -137,6 +277,24 @@ ProjectsConnection::SetDefaultNetworkTier( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ProjectsConnection::SetDefaultNetworkTier( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetDefaultNetworkTierRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProjectsConnection::SetDefaultNetworkTier( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ProjectsConnection::SetUsageExportBucket( google::cloud::cpp::compute::projects::v1:: @@ -146,6 +304,24 @@ ProjectsConnection::SetUsageExportBucket( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ProjectsConnection::SetUsageExportBucket( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetUsageExportBucketRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProjectsConnection::SetUsageExportBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_projects_v1 } // namespace cloud diff --git a/google/cloud/compute/projects/v1/projects_connection.h b/google/cloud/compute/projects/v1/projects_connection.h index cd4cffc0f973a..c51ab816d76b0 100644 --- a/google/cloud/compute/projects/v1/projects_connection.h +++ b/google/cloud/compute/projects/v1/projects_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/projects/v1/internal/projects_retry_traits.h" #include "google/cloud/compute/projects/v1/projects_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -186,20 +188,59 @@ class ProjectsConnection { google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const& request); + virtual StatusOr DisableXpnHost( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const& + request); + + virtual future> + DisableXpnHost(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DisableXpnResource(google::cloud::cpp::compute::projects::v1:: DisableXpnResourceRequest const& request); + virtual StatusOr + DisableXpnResource(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + DisableXpnResourceRequest const& request); + + virtual future> + DisableXpnResource( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> EnableXpnHost( google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& request); + virtual StatusOr EnableXpnHost( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& + request); + + virtual future> + EnableXpnHost(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> EnableXpnResource( google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const& request); + virtual StatusOr + EnableXpnResource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const& + request); + + virtual future> + EnableXpnResource( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetProject( google::cloud::cpp::compute::projects::v1::GetProjectRequest const& request); @@ -220,28 +261,90 @@ class ProjectsConnection { google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& request); + virtual StatusOr MoveDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& + request); + + virtual future> MoveDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> MoveInstance( google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& request); + virtual StatusOr MoveInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& + request); + + virtual future> + MoveInstance(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetCloudArmorTier( google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const& request); + virtual StatusOr + SetCloudArmorTier( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const& + request); + + virtual future> + SetCloudArmorTier( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetCommonInstanceMetadata( google::cloud::cpp::compute::projects::v1:: SetCommonInstanceMetadataRequest const& request); + virtual StatusOr + SetCommonInstanceMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetCommonInstanceMetadataRequest const& request); + + virtual future> + SetCommonInstanceMetadata( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetDefaultNetworkTier(google::cloud::cpp::compute::projects::v1:: SetDefaultNetworkTierRequest const& request); + virtual StatusOr + SetDefaultNetworkTier(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetDefaultNetworkTierRequest const& request); + + virtual future> + SetDefaultNetworkTier( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetUsageExportBucket(google::cloud::cpp::compute::projects::v1:: SetUsageExportBucketRequest const& request); + + virtual StatusOr + SetUsageExportBucket(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::projects::v1:: + SetUsageExportBucketRequest const& request); + + virtual future> + SetUsageExportBucket( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_rest_connection_impl.cc b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_rest_connection_impl.cc index 063050ec5ca5d..a8b3883cf174b 100644 --- a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_rest_connection_impl.cc +++ b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -104,6 +105,77 @@ PublicAdvertisedPrefixesRestConnectionImpl::Announce( }); } +StatusOr +PublicAdvertisedPrefixesRestConnectionImpl::Announce( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + AnnounceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Announce(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + AnnounceRequest const& request) { + return stub_->Announce(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +PublicAdvertisedPrefixesRestConnectionImpl::Announce( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> PublicAdvertisedPrefixesRestConnectionImpl::DeletePublicAdvertisedPrefix( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -163,6 +235,78 @@ PublicAdvertisedPrefixesRestConnectionImpl::DeletePublicAdvertisedPrefix( }); } +StatusOr +PublicAdvertisedPrefixesRestConnectionImpl::DeletePublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + DeletePublicAdvertisedPrefixRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePublicAdvertisedPrefix(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + DeletePublicAdvertisedPrefixRequest const& request) { + return stub_->DeletePublicAdvertisedPrefix(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +PublicAdvertisedPrefixesRestConnectionImpl::DeletePublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr PublicAdvertisedPrefixesRestConnectionImpl::GetPublicAdvertisedPrefix( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -238,6 +382,78 @@ PublicAdvertisedPrefixesRestConnectionImpl::InsertPublicAdvertisedPrefix( }); } +StatusOr +PublicAdvertisedPrefixesRestConnectionImpl::InsertPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + InsertPublicAdvertisedPrefixRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertPublicAdvertisedPrefix(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + InsertPublicAdvertisedPrefixRequest const& request) { + return stub_->InsertPublicAdvertisedPrefix(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +PublicAdvertisedPrefixesRestConnectionImpl::InsertPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange PublicAdvertisedPrefixesRestConnectionImpl::ListPublicAdvertisedPrefixes( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -337,6 +553,78 @@ PublicAdvertisedPrefixesRestConnectionImpl::PatchPublicAdvertisedPrefix( }); } +StatusOr +PublicAdvertisedPrefixesRestConnectionImpl::PatchPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + PatchPublicAdvertisedPrefixRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchPublicAdvertisedPrefix(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + PatchPublicAdvertisedPrefixRequest const& request) { + return stub_->PatchPublicAdvertisedPrefix(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +PublicAdvertisedPrefixesRestConnectionImpl::PatchPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> PublicAdvertisedPrefixesRestConnectionImpl::Withdraw( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -395,6 +683,77 @@ PublicAdvertisedPrefixesRestConnectionImpl::Withdraw( }); } +StatusOr +PublicAdvertisedPrefixesRestConnectionImpl::Withdraw( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + WithdrawRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Withdraw(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + WithdrawRequest const& request) { + return stub_->Withdraw(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +PublicAdvertisedPrefixesRestConnectionImpl::Withdraw( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_public_advertised_prefixes_v1_internal } // namespace cloud diff --git a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_rest_connection_impl.h b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_rest_connection_impl.h index 1bab1f9a31e99..a871c070ae74f 100644 --- a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_rest_connection_impl.h +++ b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_rest_connection_impl.h @@ -58,11 +58,31 @@ class PublicAdvertisedPrefixesRestConnectionImpl google::cloud::cpp::compute::public_advertised_prefixes::v1:: AnnounceRequest const& request) override; + StatusOr Announce( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + AnnounceRequest const& request) override; + + future> Announce( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeletePublicAdvertisedPrefix( google::cloud::cpp::compute::public_advertised_prefixes::v1:: DeletePublicAdvertisedPrefixRequest const& request) override; + StatusOr + DeletePublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + DeletePublicAdvertisedPrefixRequest const& request) override; + + future> + DeletePublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetPublicAdvertisedPrefix( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -73,6 +93,17 @@ class PublicAdvertisedPrefixesRestConnectionImpl google::cloud::cpp::compute::public_advertised_prefixes::v1:: InsertPublicAdvertisedPrefixRequest const& request) override; + StatusOr + InsertPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + InsertPublicAdvertisedPrefixRequest const& request) override; + + future> + InsertPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListPublicAdvertisedPrefixes( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -83,10 +114,30 @@ class PublicAdvertisedPrefixesRestConnectionImpl google::cloud::cpp::compute::public_advertised_prefixes::v1:: PatchPublicAdvertisedPrefixRequest const& request) override; + StatusOr + PatchPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + PatchPublicAdvertisedPrefixRequest const& request) override; + + future> + PatchPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Withdraw( google::cloud::cpp::compute::public_advertised_prefixes::v1:: WithdrawRequest const& request) override; + StatusOr Withdraw( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + WithdrawRequest const& request) override; + + future> Withdraw( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr diff --git a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.cc b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.cc index a48916264678c..1cc262a6c0653 100644 --- a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.cc +++ b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.cc @@ -48,6 +48,33 @@ PublicAdvertisedPrefixesTracingConnection::Announce( return internal::EndSpan(std::move(span), child_->Announce(request)); } +StatusOr +PublicAdvertisedPrefixesTracingConnection::Announce( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + AnnounceRequest const& request) { + auto span = internal::MakeSpan( + "compute_public_advertised_prefixes_v1::" + "PublicAdvertisedPrefixesConnection::Announce"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->Announce(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PublicAdvertisedPrefixesTracingConnection::Announce( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_public_advertised_prefixes_v1::" + "PublicAdvertisedPrefixesConnection::Announce"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Announce(google::cloud::ExperimentalTag{}, operation)); +} + future> PublicAdvertisedPrefixesTracingConnection::DeletePublicAdvertisedPrefix( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -60,6 +87,33 @@ PublicAdvertisedPrefixesTracingConnection::DeletePublicAdvertisedPrefix( child_->DeletePublicAdvertisedPrefix(request)); } +StatusOr +PublicAdvertisedPrefixesTracingConnection::DeletePublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + DeletePublicAdvertisedPrefixRequest const& request) { + auto span = internal::MakeSpan( + "compute_public_advertised_prefixes_v1::" + "PublicAdvertisedPrefixesConnection::DeletePublicAdvertisedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeletePublicAdvertisedPrefix( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PublicAdvertisedPrefixesTracingConnection::DeletePublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_public_advertised_prefixes_v1::" + "PublicAdvertisedPrefixesConnection::DeletePublicAdvertisedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeletePublicAdvertisedPrefix( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr PublicAdvertisedPrefixesTracingConnection::GetPublicAdvertisedPrefix( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -83,6 +137,33 @@ PublicAdvertisedPrefixesTracingConnection::InsertPublicAdvertisedPrefix( child_->InsertPublicAdvertisedPrefix(request)); } +StatusOr +PublicAdvertisedPrefixesTracingConnection::InsertPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + InsertPublicAdvertisedPrefixRequest const& request) { + auto span = internal::MakeSpan( + "compute_public_advertised_prefixes_v1::" + "PublicAdvertisedPrefixesConnection::InsertPublicAdvertisedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertPublicAdvertisedPrefix( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PublicAdvertisedPrefixesTracingConnection::InsertPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_public_advertised_prefixes_v1::" + "PublicAdvertisedPrefixesConnection::InsertPublicAdvertisedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertPublicAdvertisedPrefix( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange PublicAdvertisedPrefixesTracingConnection::ListPublicAdvertisedPrefixes( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -109,6 +190,33 @@ PublicAdvertisedPrefixesTracingConnection::PatchPublicAdvertisedPrefix( child_->PatchPublicAdvertisedPrefix(request)); } +StatusOr +PublicAdvertisedPrefixesTracingConnection::PatchPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + PatchPublicAdvertisedPrefixRequest const& request) { + auto span = internal::MakeSpan( + "compute_public_advertised_prefixes_v1::" + "PublicAdvertisedPrefixesConnection::PatchPublicAdvertisedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchPublicAdvertisedPrefix( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PublicAdvertisedPrefixesTracingConnection::PatchPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_public_advertised_prefixes_v1::" + "PublicAdvertisedPrefixesConnection::PatchPublicAdvertisedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchPublicAdvertisedPrefix( + google::cloud::ExperimentalTag{}, operation)); +} + future> PublicAdvertisedPrefixesTracingConnection::Withdraw( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -120,6 +228,33 @@ PublicAdvertisedPrefixesTracingConnection::Withdraw( return internal::EndSpan(std::move(span), child_->Withdraw(request)); } +StatusOr +PublicAdvertisedPrefixesTracingConnection::Withdraw( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + WithdrawRequest const& request) { + auto span = internal::MakeSpan( + "compute_public_advertised_prefixes_v1::" + "PublicAdvertisedPrefixesConnection::Withdraw"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->Withdraw(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PublicAdvertisedPrefixesTracingConnection::Withdraw( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_public_advertised_prefixes_v1::" + "PublicAdvertisedPrefixesConnection::Withdraw"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Withdraw(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr< diff --git a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.h b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.h index 5dfdc331a0103..172381d3c2c31 100644 --- a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.h +++ b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.h @@ -48,11 +48,31 @@ class PublicAdvertisedPrefixesTracingConnection google::cloud::cpp::compute::public_advertised_prefixes::v1:: AnnounceRequest const& request) override; + StatusOr Announce( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + AnnounceRequest const& request) override; + + future> Announce( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeletePublicAdvertisedPrefix( google::cloud::cpp::compute::public_advertised_prefixes::v1:: DeletePublicAdvertisedPrefixRequest const& request) override; + StatusOr + DeletePublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + DeletePublicAdvertisedPrefixRequest const& request) override; + + future> + DeletePublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetPublicAdvertisedPrefix( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -63,6 +83,17 @@ class PublicAdvertisedPrefixesTracingConnection google::cloud::cpp::compute::public_advertised_prefixes::v1:: InsertPublicAdvertisedPrefixRequest const& request) override; + StatusOr + InsertPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + InsertPublicAdvertisedPrefixRequest const& request) override; + + future> + InsertPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListPublicAdvertisedPrefixes( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -73,10 +104,30 @@ class PublicAdvertisedPrefixesTracingConnection google::cloud::cpp::compute::public_advertised_prefixes::v1:: PatchPublicAdvertisedPrefixRequest const& request) override; + StatusOr + PatchPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + PatchPublicAdvertisedPrefixRequest const& request) override; + + future> + PatchPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Withdraw( google::cloud::cpp::compute::public_advertised_prefixes::v1:: WithdrawRequest const& request) override; + StatusOr Withdraw( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + WithdrawRequest const& request) override; + + future> Withdraw( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr< compute_public_advertised_prefixes_v1::PublicAdvertisedPrefixesConnection> diff --git a/google/cloud/compute/public_advertised_prefixes/v1/mocks/mock_public_advertised_prefixes_connection.h b/google/cloud/compute/public_advertised_prefixes/v1/mocks/mock_public_advertised_prefixes_connection.h index 69538265c3bf7..60f33bb44c9c1 100644 --- a/google/cloud/compute/public_advertised_prefixes/v1/mocks/mock_public_advertised_prefixes_connection.h +++ b/google/cloud/compute/public_advertised_prefixes/v1/mocks/mock_public_advertised_prefixes_connection.h @@ -55,12 +55,37 @@ class MockPublicAdvertisedPrefixesConnection AnnounceRequest const& request), (override)); + MOCK_METHOD(StatusOr, Announce, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + AnnounceRequest const& request), + (override)); + + MOCK_METHOD(future>, + Announce, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeletePublicAdvertisedPrefix, (google::cloud::cpp::compute::public_advertised_prefixes::v1:: DeletePublicAdvertisedPrefixRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeletePublicAdvertisedPrefix, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + DeletePublicAdvertisedPrefixRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeletePublicAdvertisedPrefix, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetPublicAdvertisedPrefix, (google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -73,6 +98,19 @@ class MockPublicAdvertisedPrefixesConnection InsertPublicAdvertisedPrefixRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertPublicAdvertisedPrefix, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + InsertPublicAdvertisedPrefixRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertPublicAdvertisedPrefix, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListPublicAdvertisedPrefixes, @@ -86,11 +124,36 @@ class MockPublicAdvertisedPrefixesConnection PatchPublicAdvertisedPrefixRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchPublicAdvertisedPrefix, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + PatchPublicAdvertisedPrefixRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchPublicAdvertisedPrefix, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, Withdraw, (google::cloud::cpp::compute::public_advertised_prefixes::v1:: WithdrawRequest const& request), (override)); + + MOCK_METHOD(StatusOr, Withdraw, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + WithdrawRequest const& request), + (override)); + + MOCK_METHOD(future>, + Withdraw, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection.cc b/google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection.cc index a959e23820341..f4f1a79f09a0c 100644 --- a/google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection.cc +++ b/google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection.cc @@ -47,6 +47,24 @@ PublicAdvertisedPrefixesConnection::Announce( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PublicAdvertisedPrefixesConnection::Announce( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + AnnounceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PublicAdvertisedPrefixesConnection::Announce( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> PublicAdvertisedPrefixesConnection::DeletePublicAdvertisedPrefix( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -56,6 +74,24 @@ PublicAdvertisedPrefixesConnection::DeletePublicAdvertisedPrefix( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PublicAdvertisedPrefixesConnection::DeletePublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + DeletePublicAdvertisedPrefixRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PublicAdvertisedPrefixesConnection::DeletePublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr PublicAdvertisedPrefixesConnection::GetPublicAdvertisedPrefix( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -72,6 +108,24 @@ PublicAdvertisedPrefixesConnection::InsertPublicAdvertisedPrefix( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PublicAdvertisedPrefixesConnection::InsertPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + InsertPublicAdvertisedPrefixRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PublicAdvertisedPrefixesConnection::InsertPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange PublicAdvertisedPrefixesConnection::ListPublicAdvertisedPrefixes( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -89,6 +143,24 @@ PublicAdvertisedPrefixesConnection::PatchPublicAdvertisedPrefix( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PublicAdvertisedPrefixesConnection::PatchPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + PatchPublicAdvertisedPrefixRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PublicAdvertisedPrefixesConnection::PatchPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> PublicAdvertisedPrefixesConnection::Withdraw( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -98,6 +170,24 @@ PublicAdvertisedPrefixesConnection::Withdraw( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PublicAdvertisedPrefixesConnection::Withdraw( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + WithdrawRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PublicAdvertisedPrefixesConnection::Withdraw( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_public_advertised_prefixes_v1 } // namespace cloud diff --git a/google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection.h b/google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection.h index 263388945e6c6..343219a022918 100644 --- a/google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection.h +++ b/google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_retry_traits.h" #include "google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -205,11 +207,31 @@ class PublicAdvertisedPrefixesConnection { google::cloud::cpp::compute::public_advertised_prefixes::v1:: AnnounceRequest const& request); + virtual StatusOr Announce( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + AnnounceRequest const& request); + + virtual future> Announce( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeletePublicAdvertisedPrefix( google::cloud::cpp::compute::public_advertised_prefixes::v1:: DeletePublicAdvertisedPrefixRequest const& request); + virtual StatusOr + DeletePublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + DeletePublicAdvertisedPrefixRequest const& request); + + virtual future> + DeletePublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetPublicAdvertisedPrefix( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -220,6 +242,17 @@ class PublicAdvertisedPrefixesConnection { google::cloud::cpp::compute::public_advertised_prefixes::v1:: InsertPublicAdvertisedPrefixRequest const& request); + virtual StatusOr + InsertPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + InsertPublicAdvertisedPrefixRequest const& request); + + virtual future> + InsertPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListPublicAdvertisedPrefixes( google::cloud::cpp::compute::public_advertised_prefixes::v1:: @@ -230,9 +263,29 @@ class PublicAdvertisedPrefixesConnection { google::cloud::cpp::compute::public_advertised_prefixes::v1:: PatchPublicAdvertisedPrefixRequest const& request); + virtual StatusOr + PatchPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + PatchPublicAdvertisedPrefixRequest const& request); + + virtual future> + PatchPublicAdvertisedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> Withdraw( google::cloud::cpp::compute::public_advertised_prefixes::v1:: WithdrawRequest const& request); + + virtual StatusOr Withdraw( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_advertised_prefixes::v1:: + WithdrawRequest const& request); + + virtual future> Withdraw( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_rest_connection_impl.cc b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_rest_connection_impl.cc index 539979c4bd6d1..5aede3fbb515b 100644 --- a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_rest_connection_impl.cc +++ b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -154,6 +155,79 @@ PublicDelegatedPrefixesRestConnectionImpl::Announce( }); } +StatusOr +PublicDelegatedPrefixesRestConnectionImpl::Announce( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + AnnounceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Announce(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + AnnounceRequest const& request) { + return stub_->Announce(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +PublicDelegatedPrefixesRestConnectionImpl::Announce( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> PublicDelegatedPrefixesRestConnectionImpl::DeletePublicDelegatedPrefix( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -215,6 +289,80 @@ PublicDelegatedPrefixesRestConnectionImpl::DeletePublicDelegatedPrefix( }); } +StatusOr +PublicDelegatedPrefixesRestConnectionImpl::DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + DeletePublicDelegatedPrefixRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePublicDelegatedPrefix(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + DeletePublicDelegatedPrefixRequest const& request) { + return stub_->DeletePublicDelegatedPrefix(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +PublicDelegatedPrefixesRestConnectionImpl::DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr PublicDelegatedPrefixesRestConnectionImpl::GetPublicDelegatedPrefix( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -292,6 +440,80 @@ PublicDelegatedPrefixesRestConnectionImpl::InsertPublicDelegatedPrefix( }); } +StatusOr +PublicDelegatedPrefixesRestConnectionImpl::InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + InsertPublicDelegatedPrefixRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertPublicDelegatedPrefix(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + InsertPublicDelegatedPrefixRequest const& request) { + return stub_->InsertPublicDelegatedPrefix(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +PublicDelegatedPrefixesRestConnectionImpl::InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange PublicDelegatedPrefixesRestConnectionImpl::ListPublicDelegatedPrefixes( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -392,6 +614,80 @@ PublicDelegatedPrefixesRestConnectionImpl::PatchPublicDelegatedPrefix( }); } +StatusOr +PublicDelegatedPrefixesRestConnectionImpl::PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + PatchPublicDelegatedPrefixRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchPublicDelegatedPrefix(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + PatchPublicDelegatedPrefixRequest const& request) { + return stub_->PatchPublicDelegatedPrefix(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +PublicDelegatedPrefixesRestConnectionImpl::PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> PublicDelegatedPrefixesRestConnectionImpl::Withdraw( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -452,6 +748,79 @@ PublicDelegatedPrefixesRestConnectionImpl::Withdraw( }); } +StatusOr +PublicDelegatedPrefixesRestConnectionImpl::Withdraw( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + WithdrawRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Withdraw(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + WithdrawRequest const& request) { + return stub_->Withdraw(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +PublicDelegatedPrefixesRestConnectionImpl::Withdraw( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_public_delegated_prefixes_v1_internal } // namespace cloud diff --git a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_rest_connection_impl.h b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_rest_connection_impl.h index 2d1f43e5d9aa5..990607022b419 100644 --- a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_rest_connection_impl.h +++ b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_rest_connection_impl.h @@ -64,11 +64,31 @@ class PublicDelegatedPrefixesRestConnectionImpl google::cloud::cpp::compute::public_delegated_prefixes::v1:: AnnounceRequest const& request) override; + StatusOr Announce( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + AnnounceRequest const& request) override; + + future> Announce( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeletePublicDelegatedPrefix( google::cloud::cpp::compute::public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request) override; + StatusOr + DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + DeletePublicDelegatedPrefixRequest const& request) override; + + future> + DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetPublicDelegatedPrefix( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -79,6 +99,17 @@ class PublicDelegatedPrefixesRestConnectionImpl google::cloud::cpp::compute::public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request) override; + StatusOr + InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + InsertPublicDelegatedPrefixRequest const& request) override; + + future> + InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListPublicDelegatedPrefixes( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -89,10 +120,30 @@ class PublicDelegatedPrefixesRestConnectionImpl google::cloud::cpp::compute::public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request) override; + StatusOr + PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + PatchPublicDelegatedPrefixRequest const& request) override; + + future> + PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Withdraw( google::cloud::cpp::compute::public_delegated_prefixes::v1:: WithdrawRequest const& request) override; + StatusOr Withdraw( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + WithdrawRequest const& request) override; + + future> Withdraw( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesRetryPolicy> diff --git a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.cc b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.cc index 6cfacdd76da83..8924cd39cf3be 100644 --- a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.cc +++ b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.cc @@ -64,6 +64,33 @@ PublicDelegatedPrefixesTracingConnection::Announce( return internal::EndSpan(std::move(span), child_->Announce(request)); } +StatusOr +PublicDelegatedPrefixesTracingConnection::Announce( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + AnnounceRequest const& request) { + auto span = internal::MakeSpan( + "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" + ":Announce"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->Announce(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PublicDelegatedPrefixesTracingConnection::Announce( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" + ":Announce"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Announce(google::cloud::ExperimentalTag{}, operation)); +} + future> PublicDelegatedPrefixesTracingConnection::DeletePublicDelegatedPrefix( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -76,6 +103,33 @@ PublicDelegatedPrefixesTracingConnection::DeletePublicDelegatedPrefix( child_->DeletePublicDelegatedPrefix(request)); } +StatusOr +PublicDelegatedPrefixesTracingConnection::DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + DeletePublicDelegatedPrefixRequest const& request) { + auto span = internal::MakeSpan( + "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" + ":DeletePublicDelegatedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PublicDelegatedPrefixesTracingConnection::DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" + ":DeletePublicDelegatedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr PublicDelegatedPrefixesTracingConnection::GetPublicDelegatedPrefix( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -99,6 +153,33 @@ PublicDelegatedPrefixesTracingConnection::InsertPublicDelegatedPrefix( child_->InsertPublicDelegatedPrefix(request)); } +StatusOr +PublicDelegatedPrefixesTracingConnection::InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + InsertPublicDelegatedPrefixRequest const& request) { + auto span = internal::MakeSpan( + "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" + ":InsertPublicDelegatedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PublicDelegatedPrefixesTracingConnection::InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" + ":InsertPublicDelegatedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange PublicDelegatedPrefixesTracingConnection::ListPublicDelegatedPrefixes( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -125,6 +206,33 @@ PublicDelegatedPrefixesTracingConnection::PatchPublicDelegatedPrefix( child_->PatchPublicDelegatedPrefix(request)); } +StatusOr +PublicDelegatedPrefixesTracingConnection::PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + PatchPublicDelegatedPrefixRequest const& request) { + auto span = internal::MakeSpan( + "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" + ":PatchPublicDelegatedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PublicDelegatedPrefixesTracingConnection::PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" + ":PatchPublicDelegatedPrefix"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag{}, operation)); +} + future> PublicDelegatedPrefixesTracingConnection::Withdraw( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -136,6 +244,33 @@ PublicDelegatedPrefixesTracingConnection::Withdraw( return internal::EndSpan(std::move(span), child_->Withdraw(request)); } +StatusOr +PublicDelegatedPrefixesTracingConnection::Withdraw( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + WithdrawRequest const& request) { + auto span = internal::MakeSpan( + "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" + ":Withdraw"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->Withdraw(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PublicDelegatedPrefixesTracingConnection::Withdraw( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" + ":Withdraw"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Withdraw(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr< diff --git a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.h b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.h index 0f7af14168be9..05ef1062d1f24 100644 --- a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.h +++ b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.h @@ -54,11 +54,31 @@ class PublicDelegatedPrefixesTracingConnection google::cloud::cpp::compute::public_delegated_prefixes::v1:: AnnounceRequest const& request) override; + StatusOr Announce( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + AnnounceRequest const& request) override; + + future> Announce( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeletePublicDelegatedPrefix( google::cloud::cpp::compute::public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request) override; + StatusOr + DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + DeletePublicDelegatedPrefixRequest const& request) override; + + future> + DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetPublicDelegatedPrefix( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -69,6 +89,17 @@ class PublicDelegatedPrefixesTracingConnection google::cloud::cpp::compute::public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request) override; + StatusOr + InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + InsertPublicDelegatedPrefixRequest const& request) override; + + future> + InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListPublicDelegatedPrefixes( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -79,10 +110,30 @@ class PublicDelegatedPrefixesTracingConnection google::cloud::cpp::compute::public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request) override; + StatusOr + PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + PatchPublicDelegatedPrefixRequest const& request) override; + + future> + PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Withdraw( google::cloud::cpp::compute::public_delegated_prefixes::v1:: WithdrawRequest const& request) override; + StatusOr Withdraw( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + WithdrawRequest const& request) override; + + future> Withdraw( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr< compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection> diff --git a/google/cloud/compute/public_delegated_prefixes/v1/mocks/mock_public_delegated_prefixes_connection.h b/google/cloud/compute/public_delegated_prefixes/v1/mocks/mock_public_delegated_prefixes_connection.h index 743151a591ba5..10225df53adc3 100644 --- a/google/cloud/compute/public_delegated_prefixes/v1/mocks/mock_public_delegated_prefixes_connection.h +++ b/google/cloud/compute/public_delegated_prefixes/v1/mocks/mock_public_delegated_prefixes_connection.h @@ -63,12 +63,37 @@ class MockPublicDelegatedPrefixesConnection AnnounceRequest const& request), (override)); + MOCK_METHOD(StatusOr, Announce, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + AnnounceRequest const& request), + (override)); + + MOCK_METHOD(future>, + Announce, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeletePublicDelegatedPrefix, (google::cloud::cpp::compute::public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeletePublicDelegatedPrefix, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + DeletePublicDelegatedPrefixRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeletePublicDelegatedPrefix, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetPublicDelegatedPrefix, (google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -81,6 +106,19 @@ class MockPublicDelegatedPrefixesConnection InsertPublicDelegatedPrefixRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertPublicDelegatedPrefix, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + InsertPublicDelegatedPrefixRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertPublicDelegatedPrefix, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListPublicDelegatedPrefixes, @@ -94,11 +132,36 @@ class MockPublicDelegatedPrefixesConnection PatchPublicDelegatedPrefixRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchPublicDelegatedPrefix, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + PatchPublicDelegatedPrefixRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchPublicDelegatedPrefix, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, Withdraw, (google::cloud::cpp::compute::public_delegated_prefixes::v1:: WithdrawRequest const& request), (override)); + + MOCK_METHOD(StatusOr, Withdraw, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + WithdrawRequest const& request), + (override)); + + MOCK_METHOD(future>, + Withdraw, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection.cc b/google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection.cc index b78f475846c10..0d081d1ee016f 100644 --- a/google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection.cc +++ b/google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection.cc @@ -57,6 +57,24 @@ PublicDelegatedPrefixesConnection::Announce( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PublicDelegatedPrefixesConnection::Announce( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + AnnounceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PublicDelegatedPrefixesConnection::Announce( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> PublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -66,6 +84,24 @@ PublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + DeletePublicDelegatedPrefixRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr PublicDelegatedPrefixesConnection::GetPublicDelegatedPrefix( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -82,6 +118,24 @@ PublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + InsertPublicDelegatedPrefixRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange PublicDelegatedPrefixesConnection::ListPublicDelegatedPrefixes( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -99,6 +153,24 @@ PublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + PatchPublicDelegatedPrefixRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> PublicDelegatedPrefixesConnection::Withdraw( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -108,6 +180,24 @@ PublicDelegatedPrefixesConnection::Withdraw( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PublicDelegatedPrefixesConnection::Withdraw( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + WithdrawRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PublicDelegatedPrefixesConnection::Withdraw( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_public_delegated_prefixes_v1 } // namespace cloud diff --git a/google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection.h b/google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection.h index ff397b4ffd527..66c751757c180 100644 --- a/google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection.h +++ b/google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_retry_traits.h" #include "google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -206,11 +208,31 @@ class PublicDelegatedPrefixesConnection { google::cloud::cpp::compute::public_delegated_prefixes::v1:: AnnounceRequest const& request); + virtual StatusOr Announce( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + AnnounceRequest const& request); + + virtual future> Announce( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeletePublicDelegatedPrefix( google::cloud::cpp::compute::public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request); + virtual StatusOr + DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + DeletePublicDelegatedPrefixRequest const& request); + + virtual future> + DeletePublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetPublicDelegatedPrefix( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -221,6 +243,17 @@ class PublicDelegatedPrefixesConnection { google::cloud::cpp::compute::public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request); + virtual StatusOr + InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + InsertPublicDelegatedPrefixRequest const& request); + + virtual future> + InsertPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListPublicDelegatedPrefixes( google::cloud::cpp::compute::public_delegated_prefixes::v1:: @@ -231,9 +264,29 @@ class PublicDelegatedPrefixesConnection { google::cloud::cpp::compute::public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request); + virtual StatusOr + PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + PatchPublicDelegatedPrefixRequest const& request); + + virtual future> + PatchPublicDelegatedPrefix( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> Withdraw( google::cloud::cpp::compute::public_delegated_prefixes::v1:: WithdrawRequest const& request); + + virtual StatusOr Withdraw( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::public_delegated_prefixes::v1:: + WithdrawRequest const& request); + + virtual future> Withdraw( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_rest_connection_impl.cc b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_rest_connection_impl.cc index e85199d5c2504..c22c0cf398f7c 100644 --- a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_rest_connection_impl.cc +++ b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -104,6 +105,79 @@ RegionAutoscalersRestConnectionImpl::DeleteAutoscaler( }); } +StatusOr +RegionAutoscalersRestConnectionImpl::DeleteAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + DeleteAutoscalerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAutoscaler(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_autoscalers::v1:: + DeleteAutoscalerRequest const& request) { + return stub_->DeleteAutoscaler(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionAutoscalersRestConnectionImpl::DeleteAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionAutoscalersRestConnectionImpl::GetAutoscaler( google::cloud::cpp::compute::region_autoscalers::v1:: @@ -180,6 +254,79 @@ RegionAutoscalersRestConnectionImpl::InsertAutoscaler( }); } +StatusOr +RegionAutoscalersRestConnectionImpl::InsertAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + InsertAutoscalerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertAutoscaler(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_autoscalers::v1:: + InsertAutoscalerRequest const& request) { + return stub_->InsertAutoscaler(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionAutoscalersRestConnectionImpl::InsertAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionAutoscalersRestConnectionImpl::ListRegionAutoscalers( google::cloud::cpp::compute::region_autoscalers::v1:: @@ -280,6 +427,79 @@ RegionAutoscalersRestConnectionImpl::PatchAutoscaler( }); } +StatusOr +RegionAutoscalersRestConnectionImpl::PatchAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + PatchAutoscalerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchAutoscaler(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_autoscalers::v1:: + PatchAutoscalerRequest const& request) { + return stub_->PatchAutoscaler(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionAutoscalersRestConnectionImpl::PatchAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionAutoscalersRestConnectionImpl::UpdateAutoscaler( google::cloud::cpp::compute::region_autoscalers::v1:: @@ -340,6 +560,79 @@ RegionAutoscalersRestConnectionImpl::UpdateAutoscaler( }); } +StatusOr +RegionAutoscalersRestConnectionImpl::UpdateAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + UpdateAutoscalerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAutoscaler(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_autoscalers::v1:: + UpdateAutoscalerRequest const& request) { + return stub_->UpdateAutoscaler(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionAutoscalersRestConnectionImpl::UpdateAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_autoscalers_v1_internal } // namespace cloud diff --git a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_rest_connection_impl.h b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_rest_connection_impl.h index 749ab360589d7..b3e19ee009b1a 100644 --- a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_rest_connection_impl.h +++ b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_rest_connection_impl.h @@ -56,6 +56,15 @@ class RegionAutoscalersRestConnectionImpl google::cloud::cpp::compute::region_autoscalers::v1:: DeleteAutoscalerRequest const& request) override; + StatusOr DeleteAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + DeleteAutoscalerRequest const& request) override; + + future> DeleteAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetAutoscaler( google::cloud::cpp::compute::region_autoscalers::v1:: GetAutoscalerRequest const& request) override; @@ -64,6 +73,15 @@ class RegionAutoscalersRestConnectionImpl google::cloud::cpp::compute::region_autoscalers::v1:: InsertAutoscalerRequest const& request) override; + StatusOr InsertAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + InsertAutoscalerRequest const& request) override; + + future> InsertAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionAutoscalers(google::cloud::cpp::compute::region_autoscalers::v1:: ListRegionAutoscalersRequest request) override; @@ -72,10 +90,28 @@ class RegionAutoscalersRestConnectionImpl google::cloud::cpp::compute::region_autoscalers::v1:: PatchAutoscalerRequest const& request) override; + StatusOr PatchAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + PatchAutoscalerRequest const& request) override; + + future> PatchAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateAutoscaler( google::cloud::cpp::compute::region_autoscalers::v1:: UpdateAutoscalerRequest const& request) override; + StatusOr UpdateAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + UpdateAutoscalerRequest const& request) override; + + future> UpdateAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_region_autoscalers_v1::RegionAutoscalersRetryPolicy> diff --git a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.cc b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.cc index 077dc4781b407..c71178b5b93e6 100644 --- a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.cc +++ b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.cc @@ -45,6 +45,33 @@ RegionAutoscalersTracingConnection::DeleteAutoscaler( return internal::EndSpan(std::move(span), child_->DeleteAutoscaler(request)); } +StatusOr +RegionAutoscalersTracingConnection::DeleteAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + DeleteAutoscalerRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_autoscalers_v1::RegionAutoscalersConnection::" + "DeleteAutoscaler"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAutoscaler(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionAutoscalersTracingConnection::DeleteAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_autoscalers_v1::RegionAutoscalersConnection::" + "DeleteAutoscaler"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAutoscaler(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionAutoscalersTracingConnection::GetAutoscaler( google::cloud::cpp::compute::region_autoscalers::v1:: @@ -67,6 +94,33 @@ RegionAutoscalersTracingConnection::InsertAutoscaler( return internal::EndSpan(std::move(span), child_->InsertAutoscaler(request)); } +StatusOr +RegionAutoscalersTracingConnection::InsertAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + InsertAutoscalerRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_autoscalers_v1::RegionAutoscalersConnection::" + "InsertAutoscaler"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertAutoscaler(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionAutoscalersTracingConnection::InsertAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_autoscalers_v1::RegionAutoscalersConnection::" + "InsertAutoscaler"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertAutoscaler(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionAutoscalersTracingConnection::ListRegionAutoscalers( google::cloud::cpp::compute::region_autoscalers::v1:: @@ -92,6 +146,33 @@ RegionAutoscalersTracingConnection::PatchAutoscaler( return internal::EndSpan(std::move(span), child_->PatchAutoscaler(request)); } +StatusOr +RegionAutoscalersTracingConnection::PatchAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + PatchAutoscalerRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_autoscalers_v1::RegionAutoscalersConnection::" + "PatchAutoscaler"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchAutoscaler(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionAutoscalersTracingConnection::PatchAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_autoscalers_v1::RegionAutoscalersConnection::" + "PatchAutoscaler"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchAutoscaler(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionAutoscalersTracingConnection::UpdateAutoscaler( google::cloud::cpp::compute::region_autoscalers::v1:: @@ -103,6 +184,33 @@ RegionAutoscalersTracingConnection::UpdateAutoscaler( return internal::EndSpan(std::move(span), child_->UpdateAutoscaler(request)); } +StatusOr +RegionAutoscalersTracingConnection::UpdateAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + UpdateAutoscalerRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_autoscalers_v1::RegionAutoscalersConnection::" + "UpdateAutoscaler"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateAutoscaler(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionAutoscalersTracingConnection::UpdateAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_autoscalers_v1::RegionAutoscalersConnection::" + "UpdateAutoscaler"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateAutoscaler(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.h b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.h index b9438fcf75052..1ea468cc9a563 100644 --- a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.h +++ b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.h @@ -46,6 +46,15 @@ class RegionAutoscalersTracingConnection google::cloud::cpp::compute::region_autoscalers::v1:: DeleteAutoscalerRequest const& request) override; + StatusOr DeleteAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + DeleteAutoscalerRequest const& request) override; + + future> DeleteAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetAutoscaler( google::cloud::cpp::compute::region_autoscalers::v1:: GetAutoscalerRequest const& request) override; @@ -54,6 +63,15 @@ class RegionAutoscalersTracingConnection google::cloud::cpp::compute::region_autoscalers::v1:: InsertAutoscalerRequest const& request) override; + StatusOr InsertAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + InsertAutoscalerRequest const& request) override; + + future> InsertAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionAutoscalers(google::cloud::cpp::compute::region_autoscalers::v1:: ListRegionAutoscalersRequest request) override; @@ -62,10 +80,28 @@ class RegionAutoscalersTracingConnection google::cloud::cpp::compute::region_autoscalers::v1:: PatchAutoscalerRequest const& request) override; + StatusOr PatchAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + PatchAutoscalerRequest const& request) override; + + future> PatchAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateAutoscaler( google::cloud::cpp::compute::region_autoscalers::v1:: UpdateAutoscalerRequest const& request) override; + StatusOr UpdateAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + UpdateAutoscalerRequest const& request) override; + + future> UpdateAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/region_autoscalers/v1/mocks/mock_region_autoscalers_connection.h b/google/cloud/compute/region_autoscalers/v1/mocks/mock_region_autoscalers_connection.h index f8276b2ce1336..e6a5c7dfef6d3 100644 --- a/google/cloud/compute/region_autoscalers/v1/mocks/mock_region_autoscalers_connection.h +++ b/google/cloud/compute/region_autoscalers/v1/mocks/mock_region_autoscalers_connection.h @@ -53,6 +53,19 @@ class MockRegionAutoscalersConnection DeleteAutoscalerRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteAutoscaler, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + DeleteAutoscalerRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteAutoscaler, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetAutoscaler, (google::cloud::cpp::compute::region_autoscalers::v1:: @@ -65,6 +78,19 @@ class MockRegionAutoscalersConnection InsertAutoscalerRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertAutoscaler, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + InsertAutoscalerRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertAutoscaler, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRegionAutoscalers, (google::cloud::cpp::compute::region_autoscalers::v1:: @@ -77,11 +103,37 @@ class MockRegionAutoscalersConnection PatchAutoscalerRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchAutoscaler, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + PatchAutoscalerRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchAutoscaler, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateAutoscaler, (google::cloud::cpp::compute::region_autoscalers::v1:: UpdateAutoscalerRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + UpdateAutoscaler, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + UpdateAutoscalerRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateAutoscaler, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection.cc b/google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection.cc index 9a63c8064232f..6dfc166dc8ef5 100644 --- a/google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection.cc +++ b/google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection.cc @@ -45,6 +45,24 @@ RegionAutoscalersConnection::DeleteAutoscaler( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionAutoscalersConnection::DeleteAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + DeleteAutoscalerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionAutoscalersConnection::DeleteAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionAutoscalersConnection::GetAutoscaler( google::cloud::cpp::compute::region_autoscalers::v1:: @@ -61,6 +79,24 @@ RegionAutoscalersConnection::InsertAutoscaler( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionAutoscalersConnection::InsertAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + InsertAutoscalerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionAutoscalersConnection::InsertAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionAutoscalersConnection::ListRegionAutoscalers( google::cloud::cpp::compute::region_autoscalers::v1:: @@ -78,6 +114,24 @@ RegionAutoscalersConnection::PatchAutoscaler( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionAutoscalersConnection::PatchAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + PatchAutoscalerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionAutoscalersConnection::PatchAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionAutoscalersConnection::UpdateAutoscaler( google::cloud::cpp::compute::region_autoscalers::v1:: @@ -87,6 +141,24 @@ RegionAutoscalersConnection::UpdateAutoscaler( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionAutoscalersConnection::UpdateAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + UpdateAutoscalerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionAutoscalersConnection::UpdateAutoscaler( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_autoscalers_v1 } // namespace cloud diff --git a/google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection.h b/google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection.h index 97d02efa0b180..3f7d66200a866 100644 --- a/google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection.h +++ b/google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_retry_traits.h" #include "google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -190,6 +192,15 @@ class RegionAutoscalersConnection { DeleteAutoscaler(google::cloud::cpp::compute::region_autoscalers::v1:: DeleteAutoscalerRequest const& request); + virtual StatusOr DeleteAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + DeleteAutoscalerRequest const& request); + + virtual future> + DeleteAutoscaler(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetAutoscaler( google::cloud::cpp::compute::region_autoscalers::v1:: GetAutoscalerRequest const& request); @@ -198,6 +209,15 @@ class RegionAutoscalersConnection { InsertAutoscaler(google::cloud::cpp::compute::region_autoscalers::v1:: InsertAutoscalerRequest const& request); + virtual StatusOr InsertAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + InsertAutoscalerRequest const& request); + + virtual future> + InsertAutoscaler(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionAutoscalers(google::cloud::cpp::compute::region_autoscalers::v1:: ListRegionAutoscalersRequest request); @@ -206,9 +226,27 @@ class RegionAutoscalersConnection { PatchAutoscaler(google::cloud::cpp::compute::region_autoscalers::v1:: PatchAutoscalerRequest const& request); + virtual StatusOr PatchAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + PatchAutoscalerRequest const& request); + + virtual future> + PatchAutoscaler(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> UpdateAutoscaler(google::cloud::cpp::compute::region_autoscalers::v1:: UpdateAutoscalerRequest const& request); + + virtual StatusOr UpdateAutoscaler( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_autoscalers::v1:: + UpdateAutoscalerRequest const& request); + + virtual future> + UpdateAutoscaler(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_rest_connection_impl.cc b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_rest_connection_impl.cc index 63bade12df521..2b74c3063506a 100644 --- a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_rest_connection_impl.cc +++ b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -106,6 +107,79 @@ RegionBackendServicesRestConnectionImpl::DeleteBackendService( }); } +StatusOr +RegionBackendServicesRestConnectionImpl::DeleteBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + DeleteBackendServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteBackendService(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_backend_services::v1:: + DeleteBackendServiceRequest const& request) { + return stub_->DeleteBackendService(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionBackendServicesRestConnectionImpl::DeleteBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionBackendServicesRestConnectionImpl::GetBackendService( google::cloud::cpp::compute::region_backend_services::v1:: @@ -214,6 +288,79 @@ RegionBackendServicesRestConnectionImpl::InsertBackendService( }); } +StatusOr +RegionBackendServicesRestConnectionImpl::InsertBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + InsertBackendServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertBackendService(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_backend_services::v1:: + InsertBackendServiceRequest const& request) { + return stub_->InsertBackendService(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionBackendServicesRestConnectionImpl::InsertBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionBackendServicesRestConnectionImpl::ListRegionBackendServices( google::cloud::cpp::compute::region_backend_services::v1:: @@ -352,6 +499,79 @@ RegionBackendServicesRestConnectionImpl::PatchBackendService( }); } +StatusOr +RegionBackendServicesRestConnectionImpl::PatchBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + PatchBackendServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchBackendService(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_backend_services::v1:: + PatchBackendServiceRequest const& request) { + return stub_->PatchBackendService(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionBackendServicesRestConnectionImpl::PatchBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionBackendServicesRestConnectionImpl::SetIamPolicy( google::cloud::cpp::compute::region_backend_services::v1:: @@ -428,6 +648,79 @@ RegionBackendServicesRestConnectionImpl::SetSecurityPolicy( }); } +StatusOr +RegionBackendServicesRestConnectionImpl::SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + SetSecurityPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetSecurityPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_backend_services::v1:: + SetSecurityPolicyRequest const& request) { + return stub_->SetSecurityPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionBackendServicesRestConnectionImpl::SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionBackendServicesRestConnectionImpl::TestIamPermissions( google::cloud::cpp::compute::region_backend_services::v1:: @@ -504,6 +797,79 @@ RegionBackendServicesRestConnectionImpl::UpdateBackendService( }); } +StatusOr +RegionBackendServicesRestConnectionImpl::UpdateBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + UpdateBackendServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateBackendService(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_backend_services::v1:: + UpdateBackendServiceRequest const& request) { + return stub_->UpdateBackendService(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionBackendServicesRestConnectionImpl::UpdateBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_backend_services_v1_internal } // namespace cloud diff --git a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_rest_connection_impl.h b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_rest_connection_impl.h index 2d6b2e618a34e..7e3c9b5f82060 100644 --- a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_rest_connection_impl.h +++ b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_rest_connection_impl.h @@ -59,6 +59,16 @@ class RegionBackendServicesRestConnectionImpl google::cloud::cpp::compute::region_backend_services::v1:: DeleteBackendServiceRequest const& request) override; + StatusOr DeleteBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + DeleteBackendServiceRequest const& request) override; + + future> + DeleteBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetBackendService( google::cloud::cpp::compute::region_backend_services::v1:: GetBackendServiceRequest const& request) override; @@ -76,6 +86,16 @@ class RegionBackendServicesRestConnectionImpl google::cloud::cpp::compute::region_backend_services::v1:: InsertBackendServiceRequest const& request) override; + StatusOr InsertBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + InsertBackendServiceRequest const& request) override; + + future> + InsertBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionBackendServices( google::cloud::cpp::compute::region_backend_services::v1:: @@ -89,6 +109,16 @@ class RegionBackendServicesRestConnectionImpl PatchBackendService(google::cloud::cpp::compute::region_backend_services::v1:: PatchBackendServiceRequest const& request) override; + StatusOr PatchBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + PatchBackendServiceRequest const& request) override; + + future> + PatchBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::region_backend_services::v1:: SetIamPolicyRequest const& request) override; @@ -97,6 +127,16 @@ class RegionBackendServicesRestConnectionImpl SetSecurityPolicy(google::cloud::cpp::compute::region_backend_services::v1:: SetSecurityPolicyRequest const& request) override; + StatusOr SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + SetSecurityPolicyRequest const& request) override; + + future> + SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::region_backend_services::v1:: TestIamPermissionsRequest const& request) override; @@ -106,6 +146,16 @@ class RegionBackendServicesRestConnectionImpl google::cloud::cpp::compute::region_backend_services::v1:: UpdateBackendServiceRequest const& request) override; + StatusOr UpdateBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + UpdateBackendServiceRequest const& request) override; + + future> + UpdateBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_region_backend_services_v1::RegionBackendServicesRetryPolicy> diff --git a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.cc b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.cc index 7d2d401b88cd5..34c1e4510f9e8 100644 --- a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.cc +++ b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.cc @@ -48,6 +48,33 @@ RegionBackendServicesTracingConnection::DeleteBackendService( child_->DeleteBackendService(request)); } +StatusOr +RegionBackendServicesTracingConnection::DeleteBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + DeleteBackendServiceRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_backend_services_v1::RegionBackendServicesConnection::" + "DeleteBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteBackendService( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionBackendServicesTracingConnection::DeleteBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_backend_services_v1::RegionBackendServicesConnection::" + "DeleteBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteBackendService( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionBackendServicesTracingConnection::GetBackendService( google::cloud::cpp::compute::region_backend_services::v1:: @@ -93,6 +120,33 @@ RegionBackendServicesTracingConnection::InsertBackendService( child_->InsertBackendService(request)); } +StatusOr +RegionBackendServicesTracingConnection::InsertBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + InsertBackendServiceRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_backend_services_v1::RegionBackendServicesConnection::" + "InsertBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertBackendService( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionBackendServicesTracingConnection::InsertBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_backend_services_v1::RegionBackendServicesConnection::" + "InsertBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertBackendService( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionBackendServicesTracingConnection::ListRegionBackendServices( google::cloud::cpp::compute::region_backend_services::v1:: @@ -133,6 +187,33 @@ RegionBackendServicesTracingConnection::PatchBackendService( child_->PatchBackendService(request)); } +StatusOr +RegionBackendServicesTracingConnection::PatchBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + PatchBackendServiceRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_backend_services_v1::RegionBackendServicesConnection::" + "PatchBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchBackendService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionBackendServicesTracingConnection::PatchBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_backend_services_v1::RegionBackendServicesConnection::" + "PatchBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchBackendService(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionBackendServicesTracingConnection::SetIamPolicy( google::cloud::cpp::compute::region_backend_services::v1:: @@ -155,6 +236,33 @@ RegionBackendServicesTracingConnection::SetSecurityPolicy( return internal::EndSpan(std::move(span), child_->SetSecurityPolicy(request)); } +StatusOr +RegionBackendServicesTracingConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + SetSecurityPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_backend_services_v1::RegionBackendServicesConnection::" + "SetSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionBackendServicesTracingConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_backend_services_v1::RegionBackendServicesConnection::" + "SetSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionBackendServicesTracingConnection::TestIamPermissions( google::cloud::cpp::compute::region_backend_services::v1:: @@ -178,6 +286,33 @@ RegionBackendServicesTracingConnection::UpdateBackendService( child_->UpdateBackendService(request)); } +StatusOr +RegionBackendServicesTracingConnection::UpdateBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + UpdateBackendServiceRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_backend_services_v1::RegionBackendServicesConnection::" + "UpdateBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateBackendService( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionBackendServicesTracingConnection::UpdateBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_backend_services_v1::RegionBackendServicesConnection::" + "UpdateBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateBackendService( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr< diff --git a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.h b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.h index 95fdd43e907ec..686d27b2934dc 100644 --- a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.h +++ b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.h @@ -49,6 +49,16 @@ class RegionBackendServicesTracingConnection google::cloud::cpp::compute::region_backend_services::v1:: DeleteBackendServiceRequest const& request) override; + StatusOr DeleteBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + DeleteBackendServiceRequest const& request) override; + + future> + DeleteBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetBackendService( google::cloud::cpp::compute::region_backend_services::v1:: GetBackendServiceRequest const& request) override; @@ -66,6 +76,16 @@ class RegionBackendServicesTracingConnection google::cloud::cpp::compute::region_backend_services::v1:: InsertBackendServiceRequest const& request) override; + StatusOr InsertBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + InsertBackendServiceRequest const& request) override; + + future> + InsertBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionBackendServices( google::cloud::cpp::compute::region_backend_services::v1:: @@ -79,6 +99,16 @@ class RegionBackendServicesTracingConnection PatchBackendService(google::cloud::cpp::compute::region_backend_services::v1:: PatchBackendServiceRequest const& request) override; + StatusOr PatchBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + PatchBackendServiceRequest const& request) override; + + future> + PatchBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::region_backend_services::v1:: SetIamPolicyRequest const& request) override; @@ -87,6 +117,16 @@ class RegionBackendServicesTracingConnection SetSecurityPolicy(google::cloud::cpp::compute::region_backend_services::v1:: SetSecurityPolicyRequest const& request) override; + StatusOr SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + SetSecurityPolicyRequest const& request) override; + + future> + SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::region_backend_services::v1:: TestIamPermissionsRequest const& request) override; @@ -96,6 +136,16 @@ class RegionBackendServicesTracingConnection google::cloud::cpp::compute::region_backend_services::v1:: UpdateBackendServiceRequest const& request) override; + StatusOr UpdateBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + UpdateBackendServiceRequest const& request) override; + + future> + UpdateBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr< compute_region_backend_services_v1::RegionBackendServicesConnection> diff --git a/google/cloud/compute/region_backend_services/v1/mocks/mock_region_backend_services_connection.h b/google/cloud/compute/region_backend_services/v1/mocks/mock_region_backend_services_connection.h index 2a1ee982cc4aa..16cfc06a7d6b9 100644 --- a/google/cloud/compute/region_backend_services/v1/mocks/mock_region_backend_services_connection.h +++ b/google/cloud/compute/region_backend_services/v1/mocks/mock_region_backend_services_connection.h @@ -55,6 +55,19 @@ class MockRegionBackendServicesConnection DeleteBackendServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteBackendService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + DeleteBackendServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteBackendService, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetBackendService, (google::cloud::cpp::compute::region_backend_services::v1:: @@ -79,6 +92,19 @@ class MockRegionBackendServicesConnection InsertBackendServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertBackendService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + InsertBackendServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertBackendService, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRegionBackendServices, (google::cloud::cpp::compute::region_backend_services::v1:: @@ -97,6 +123,19 @@ class MockRegionBackendServicesConnection PatchBackendServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchBackendService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + PatchBackendServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchBackendService, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, SetIamPolicy, (google::cloud::cpp::compute::region_backend_services::v1:: SetIamPolicyRequest const& request), @@ -108,6 +147,19 @@ class MockRegionBackendServicesConnection SetSecurityPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetSecurityPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + SetSecurityPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetSecurityPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, TestIamPermissions, @@ -120,6 +172,19 @@ class MockRegionBackendServicesConnection (google::cloud::cpp::compute::region_backend_services::v1:: UpdateBackendServiceRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + UpdateBackendService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + UpdateBackendServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateBackendService, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_backend_services/v1/region_backend_services_connection.cc b/google/cloud/compute/region_backend_services/v1/region_backend_services_connection.cc index 31a94fb2473de..890fee1bc3a5a 100644 --- a/google/cloud/compute/region_backend_services/v1/region_backend_services_connection.cc +++ b/google/cloud/compute/region_backend_services/v1/region_backend_services_connection.cc @@ -46,6 +46,24 @@ RegionBackendServicesConnection::DeleteBackendService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionBackendServicesConnection::DeleteBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + DeleteBackendServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionBackendServicesConnection::DeleteBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionBackendServicesConnection::GetBackendService( google::cloud::cpp::compute::region_backend_services::v1:: @@ -76,6 +94,24 @@ RegionBackendServicesConnection::InsertBackendService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionBackendServicesConnection::InsertBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + InsertBackendServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionBackendServicesConnection::InsertBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionBackendServicesConnection::ListRegionBackendServices( google::cloud::cpp::compute::region_backend_services::v1:: @@ -101,6 +137,24 @@ RegionBackendServicesConnection::PatchBackendService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionBackendServicesConnection::PatchBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + PatchBackendServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionBackendServicesConnection::PatchBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionBackendServicesConnection::SetIamPolicy( google::cloud::cpp::compute::region_backend_services::v1:: @@ -117,6 +171,24 @@ RegionBackendServicesConnection::SetSecurityPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionBackendServicesConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + SetSecurityPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionBackendServicesConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionBackendServicesConnection::TestIamPermissions( google::cloud::cpp::compute::region_backend_services::v1:: @@ -133,6 +205,24 @@ RegionBackendServicesConnection::UpdateBackendService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionBackendServicesConnection::UpdateBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + UpdateBackendServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionBackendServicesConnection::UpdateBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_backend_services_v1 } // namespace cloud diff --git a/google/cloud/compute/region_backend_services/v1/region_backend_services_connection.h b/google/cloud/compute/region_backend_services/v1/region_backend_services_connection.h index caefe1660ac07..67ca3e0296d1d 100644 --- a/google/cloud/compute/region_backend_services/v1/region_backend_services_connection.h +++ b/google/cloud/compute/region_backend_services/v1/region_backend_services_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/region_backend_services/v1/internal/region_backend_services_retry_traits.h" #include "google/cloud/compute/region_backend_services/v1/region_backend_services_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -198,6 +200,17 @@ class RegionBackendServicesConnection { DeleteBackendService(google::cloud::cpp::compute::region_backend_services:: v1::DeleteBackendServiceRequest const& request); + virtual StatusOr + DeleteBackendService(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services:: + v1::DeleteBackendServiceRequest const& request); + + virtual future> + DeleteBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetBackendService(google::cloud::cpp::compute::region_backend_services::v1:: GetBackendServiceRequest const& request); @@ -214,6 +227,17 @@ class RegionBackendServicesConnection { InsertBackendService(google::cloud::cpp::compute::region_backend_services:: v1::InsertBackendServiceRequest const& request); + virtual StatusOr + InsertBackendService(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services:: + v1::InsertBackendServiceRequest const& request); + + virtual future> + InsertBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionBackendServices( google::cloud::cpp::compute::region_backend_services::v1:: @@ -227,6 +251,16 @@ class RegionBackendServicesConnection { PatchBackendService(google::cloud::cpp::compute::region_backend_services::v1:: PatchBackendServiceRequest const& request); + virtual StatusOr + PatchBackendService(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + PatchBackendServiceRequest const& request); + + virtual future> + PatchBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr SetIamPolicy( google::cloud::cpp::compute::region_backend_services::v1:: SetIamPolicyRequest const& request); @@ -235,6 +269,16 @@ class RegionBackendServicesConnection { SetSecurityPolicy(google::cloud::cpp::compute::region_backend_services::v1:: SetSecurityPolicyRequest const& request); + virtual StatusOr + SetSecurityPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services::v1:: + SetSecurityPolicyRequest const& request); + + virtual future> + SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr TestIamPermissions(google::cloud::cpp::compute::region_backend_services::v1:: TestIamPermissionsRequest const& request); @@ -242,6 +286,17 @@ class RegionBackendServicesConnection { virtual future> UpdateBackendService(google::cloud::cpp::compute::region_backend_services:: v1::UpdateBackendServiceRequest const& request); + + virtual StatusOr + UpdateBackendService(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_backend_services:: + v1::UpdateBackendServiceRequest const& request); + + virtual future> + UpdateBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_commitments/v1/internal/region_commitments_rest_connection_impl.cc b/google/cloud/compute/region_commitments/v1/internal/region_commitments_rest_connection_impl.cc index 5a18bd1321b05..90897b0655ad2 100644 --- a/google/cloud/compute/region_commitments/v1/internal/region_commitments_rest_connection_impl.cc +++ b/google/cloud/compute/region_commitments/v1/internal/region_commitments_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -163,6 +164,79 @@ RegionCommitmentsRestConnectionImpl::InsertCommitment( }); } +StatusOr +RegionCommitmentsRestConnectionImpl::InsertCommitment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_commitments::v1:: + InsertCommitmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertCommitment(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_commitments::v1:: + InsertCommitmentRequest const& request) { + return stub_->InsertCommitment(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionCommitmentsRestConnectionImpl::InsertCommitment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionCommitmentsRestConnectionImpl::ListRegionCommitments( google::cloud::cpp::compute::region_commitments::v1:: @@ -263,6 +337,79 @@ RegionCommitmentsRestConnectionImpl::UpdateCommitment( }); } +StatusOr +RegionCommitmentsRestConnectionImpl::UpdateCommitment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_commitments::v1:: + UpdateCommitmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCommitment(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_commitments::v1:: + UpdateCommitmentRequest const& request) { + return stub_->UpdateCommitment(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionCommitmentsRestConnectionImpl::UpdateCommitment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_commitments_v1_internal } // namespace cloud diff --git a/google/cloud/compute/region_commitments/v1/internal/region_commitments_rest_connection_impl.h b/google/cloud/compute/region_commitments/v1/internal/region_commitments_rest_connection_impl.h index 574073d77b182..1e1d9530c831d 100644 --- a/google/cloud/compute/region_commitments/v1/internal/region_commitments_rest_connection_impl.h +++ b/google/cloud/compute/region_commitments/v1/internal/region_commitments_rest_connection_impl.h @@ -66,6 +66,15 @@ class RegionCommitmentsRestConnectionImpl google::cloud::cpp::compute::region_commitments::v1:: InsertCommitmentRequest const& request) override; + StatusOr InsertCommitment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_commitments::v1:: + InsertCommitmentRequest const& request) override; + + future> InsertCommitment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionCommitments(google::cloud::cpp::compute::region_commitments::v1:: ListRegionCommitmentsRequest request) override; @@ -74,6 +83,15 @@ class RegionCommitmentsRestConnectionImpl google::cloud::cpp::compute::region_commitments::v1:: UpdateCommitmentRequest const& request) override; + StatusOr UpdateCommitment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_commitments::v1:: + UpdateCommitmentRequest const& request) override; + + future> UpdateCommitment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_region_commitments_v1::RegionCommitmentsRetryPolicy> diff --git a/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.cc b/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.cc index 1a145e9ee700b..1c1d73c4aeb43 100644 --- a/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.cc +++ b/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.cc @@ -71,6 +71,33 @@ RegionCommitmentsTracingConnection::InsertCommitment( return internal::EndSpan(std::move(span), child_->InsertCommitment(request)); } +StatusOr +RegionCommitmentsTracingConnection::InsertCommitment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_commitments::v1:: + InsertCommitmentRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_commitments_v1::RegionCommitmentsConnection::" + "InsertCommitment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertCommitment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionCommitmentsTracingConnection::InsertCommitment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_commitments_v1::RegionCommitmentsConnection::" + "InsertCommitment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertCommitment(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionCommitmentsTracingConnection::ListRegionCommitments( google::cloud::cpp::compute::region_commitments::v1:: @@ -96,6 +123,33 @@ RegionCommitmentsTracingConnection::UpdateCommitment( return internal::EndSpan(std::move(span), child_->UpdateCommitment(request)); } +StatusOr +RegionCommitmentsTracingConnection::UpdateCommitment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_commitments::v1:: + UpdateCommitmentRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_commitments_v1::RegionCommitmentsConnection::" + "UpdateCommitment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateCommitment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionCommitmentsTracingConnection::UpdateCommitment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_commitments_v1::RegionCommitmentsConnection::" + "UpdateCommitment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateCommitment(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.h b/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.h index c062e9274d7de..b1bb017cf4246 100644 --- a/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.h +++ b/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.h @@ -56,6 +56,15 @@ class RegionCommitmentsTracingConnection google::cloud::cpp::compute::region_commitments::v1:: InsertCommitmentRequest const& request) override; + StatusOr InsertCommitment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_commitments::v1:: + InsertCommitmentRequest const& request) override; + + future> InsertCommitment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionCommitments(google::cloud::cpp::compute::region_commitments::v1:: ListRegionCommitmentsRequest request) override; @@ -64,6 +73,15 @@ class RegionCommitmentsTracingConnection google::cloud::cpp::compute::region_commitments::v1:: UpdateCommitmentRequest const& request) override; + StatusOr UpdateCommitment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_commitments::v1:: + UpdateCommitmentRequest const& request) override; + + future> UpdateCommitment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/region_commitments/v1/mocks/mock_region_commitments_connection.h b/google/cloud/compute/region_commitments/v1/mocks/mock_region_commitments_connection.h index 3dd28a36699ac..212310f1e4cc2 100644 --- a/google/cloud/compute/region_commitments/v1/mocks/mock_region_commitments_connection.h +++ b/google/cloud/compute/region_commitments/v1/mocks/mock_region_commitments_connection.h @@ -68,6 +68,19 @@ class MockRegionCommitmentsConnection InsertCommitmentRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertCommitment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_commitments::v1:: + InsertCommitmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertCommitment, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRegionCommitments, (google::cloud::cpp::compute::region_commitments::v1:: @@ -79,6 +92,19 @@ class MockRegionCommitmentsConnection (google::cloud::cpp::compute::region_commitments::v1:: UpdateCommitmentRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + UpdateCommitment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_commitments::v1:: + UpdateCommitmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateCommitment, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_commitments/v1/region_commitments_connection.cc b/google/cloud/compute/region_commitments/v1/region_commitments_connection.cc index 0178044f1a8fe..86d20c1d8ce67 100644 --- a/google/cloud/compute/region_commitments/v1/region_commitments_connection.cc +++ b/google/cloud/compute/region_commitments/v1/region_commitments_connection.cc @@ -62,6 +62,24 @@ RegionCommitmentsConnection::InsertCommitment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionCommitmentsConnection::InsertCommitment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_commitments::v1:: + InsertCommitmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionCommitmentsConnection::InsertCommitment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionCommitmentsConnection::ListRegionCommitments( google::cloud::cpp::compute::region_commitments::v1:: @@ -79,6 +97,24 @@ RegionCommitmentsConnection::UpdateCommitment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionCommitmentsConnection::UpdateCommitment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_commitments::v1:: + UpdateCommitmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionCommitmentsConnection::UpdateCommitment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_commitments_v1 } // namespace cloud diff --git a/google/cloud/compute/region_commitments/v1/region_commitments_connection.h b/google/cloud/compute/region_commitments/v1/region_commitments_connection.h index 92822dcb50d93..ec161588713c5 100644 --- a/google/cloud/compute/region_commitments/v1/region_commitments_connection.h +++ b/google/cloud/compute/region_commitments/v1/region_commitments_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/region_commitments/v1/internal/region_commitments_retry_traits.h" #include "google/cloud/compute/region_commitments/v1/region_commitments_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -200,6 +202,15 @@ class RegionCommitmentsConnection { InsertCommitment(google::cloud::cpp::compute::region_commitments::v1:: InsertCommitmentRequest const& request); + virtual StatusOr InsertCommitment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_commitments::v1:: + InsertCommitmentRequest const& request); + + virtual future> + InsertCommitment(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionCommitments(google::cloud::cpp::compute::region_commitments::v1:: ListRegionCommitmentsRequest request); @@ -207,6 +218,15 @@ class RegionCommitmentsConnection { virtual future> UpdateCommitment(google::cloud::cpp::compute::region_commitments::v1:: UpdateCommitmentRequest const& request); + + virtual StatusOr UpdateCommitment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_commitments::v1:: + UpdateCommitmentRequest const& request); + + virtual future> + UpdateCommitment(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_disk_types/v1/region_disk_types_connection.h b/google/cloud/compute/region_disk_types/v1/region_disk_types_connection.h index 6680af5546f43..2530e40b5be57 100644 --- a/google/cloud/compute/region_disk_types/v1/region_disk_types_connection.h +++ b/google/cloud/compute/region_disk_types/v1/region_disk_types_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/region_disk_types/v1/internal/region_disk_types_retry_traits.h" #include "google/cloud/compute/region_disk_types/v1/region_disk_types_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/compute/region_disks/v1/internal/region_disks_rest_connection_impl.cc b/google/cloud/compute/region_disks/v1/internal/region_disks_rest_connection_impl.cc index 860adba42f149..3c10d3a7740a5 100644 --- a/google/cloud/compute/region_disks/v1/internal/region_disks_rest_connection_impl.cc +++ b/google/cloud/compute/region_disks/v1/internal/region_disks_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -102,6 +103,79 @@ RegionDisksRestConnectionImpl::AddResourcePolicies( }); } +StatusOr +RegionDisksRestConnectionImpl::AddResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + AddResourcePoliciesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddResourcePolicies(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_disks::v1:: + AddResourcePoliciesRequest const& request) { + return stub_->AddResourcePolicies(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionDisksRestConnectionImpl::AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionDisksRestConnectionImpl::BulkInsert( google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& @@ -162,6 +236,79 @@ RegionDisksRestConnectionImpl::BulkInsert( }); } +StatusOr +RegionDisksRestConnectionImpl::BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BulkInsert(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_disks::v1:: + BulkInsertRequest const& request) { + return stub_->BulkInsert(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionDisksRestConnectionImpl::BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionDisksRestConnectionImpl::CreateSnapshot( google::cloud::cpp::compute::region_disks::v1::CreateSnapshotRequest const& @@ -222,6 +369,79 @@ RegionDisksRestConnectionImpl::CreateSnapshot( }); } +StatusOr +RegionDisksRestConnectionImpl::CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::CreateSnapshotRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateSnapshot(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_disks::v1:: + CreateSnapshotRequest const& request) { + return stub_->CreateSnapshot(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionDisksRestConnectionImpl::CreateSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionDisksRestConnectionImpl::DeleteDisk( google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& @@ -282,6 +502,79 @@ RegionDisksRestConnectionImpl::DeleteDisk( }); } +StatusOr +RegionDisksRestConnectionImpl::DeleteDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDisk(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_disks::v1:: + DeleteDiskRequest const& request) { + return stub_->DeleteDisk(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionDisksRestConnectionImpl::DeleteDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionDisksRestConnectionImpl::GetDisk( google::cloud::cpp::compute::region_disks::v1::GetDiskRequest const& @@ -375,6 +668,79 @@ RegionDisksRestConnectionImpl::InsertDisk( }); } +StatusOr +RegionDisksRestConnectionImpl::InsertDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertDisk(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_disks::v1:: + InsertDiskRequest const& request) { + return stub_->InsertDisk(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionDisksRestConnectionImpl::InsertDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionDisksRestConnectionImpl::ListRegionDisks( google::cloud::cpp::compute::region_disks::v1::ListRegionDisksRequest @@ -471,20 +837,93 @@ RegionDisksRestConnectionImpl::RemoveResourcePolicies( }); } -future> -RegionDisksRestConnectionImpl::Resize( - google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& - request) { +StatusOr +RegionDisksRestConnectionImpl::RemoveResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + RemoveResourcePoliciesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< - google::cloud::cpp::compute::v1::Operation, - google::cloud::cpp::compute::v1::Operation, - google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, - google::cloud::cpp::compute::region_operations::v1:: - DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_]( - CompletionQueue& cq, + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveResourcePolicies(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_disks::v1:: + RemoveResourcePoliciesRequest const& request) { + return stub_->RemoveResourcePolicies(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionDisksRestConnectionImpl::RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + +future> +RegionDisksRestConnectionImpl::Resize( + google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_]( + CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& @@ -532,6 +971,79 @@ RegionDisksRestConnectionImpl::Resize( }); } +StatusOr +RegionDisksRestConnectionImpl::Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Resize(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& + request) { + return stub_->Resize(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionDisksRestConnectionImpl::Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionDisksRestConnectionImpl::SetIamPolicy( google::cloud::cpp::compute::region_disks::v1::SetIamPolicyRequest const& @@ -609,6 +1121,80 @@ RegionDisksRestConnectionImpl::SetLabels( }); } +StatusOr +RegionDisksRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const& + request) { + return stub_->SetLabels(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionDisksRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionDisksRestConnectionImpl::StartAsyncReplication( google::cloud::cpp::compute::region_disks::v1:: @@ -669,6 +1255,79 @@ RegionDisksRestConnectionImpl::StartAsyncReplication( }); } +StatusOr +RegionDisksRestConnectionImpl::StartAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StartAsyncReplicationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartAsyncReplication(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_disks::v1:: + StartAsyncReplicationRequest const& request) { + return stub_->StartAsyncReplication(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionDisksRestConnectionImpl::StartAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionDisksRestConnectionImpl::StopAsyncReplication( google::cloud::cpp::compute::region_disks::v1:: @@ -729,6 +1388,79 @@ RegionDisksRestConnectionImpl::StopAsyncReplication( }); } +StatusOr +RegionDisksRestConnectionImpl::StopAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StopAsyncReplicationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StopAsyncReplication(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_disks::v1:: + StopAsyncReplicationRequest const& request) { + return stub_->StopAsyncReplication(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionDisksRestConnectionImpl::StopAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionDisksRestConnectionImpl::StopGroupAsyncReplication( google::cloud::cpp::compute::region_disks::v1:: @@ -789,6 +1521,79 @@ RegionDisksRestConnectionImpl::StopGroupAsyncReplication( }); } +StatusOr +RegionDisksRestConnectionImpl::StopGroupAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StopGroupAsyncReplicationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StopGroupAsyncReplication(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_disks::v1:: + StopGroupAsyncReplicationRequest const& request) { + return stub_->StopGroupAsyncReplication(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionDisksRestConnectionImpl::StopGroupAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionDisksRestConnectionImpl::TestIamPermissions( google::cloud::cpp::compute::region_disks::v1:: @@ -865,6 +1670,79 @@ RegionDisksRestConnectionImpl::UpdateDisk( }); } +StatusOr +RegionDisksRestConnectionImpl::UpdateDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDisk(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_disks::v1:: + UpdateDiskRequest const& request) { + return stub_->UpdateDisk(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionDisksRestConnectionImpl::UpdateDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_disks_v1_internal } // namespace cloud diff --git a/google/cloud/compute/region_disks/v1/internal/region_disks_rest_connection_impl.h b/google/cloud/compute/region_disks/v1/internal/region_disks_rest_connection_impl.h index 7461c3eb682ff..471ccae1b7169 100644 --- a/google/cloud/compute/region_disks/v1/internal/region_disks_rest_connection_impl.h +++ b/google/cloud/compute/region_disks/v1/internal/region_disks_rest_connection_impl.h @@ -55,18 +55,55 @@ class RegionDisksRestConnectionImpl AddResourcePolicies(google::cloud::cpp::compute::region_disks::v1:: AddResourcePoliciesRequest const& request) override; + StatusOr AddResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + AddResourcePoliciesRequest const& request) override; + + future> + AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> BulkInsert( google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& request) override; + StatusOr BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& + request) override; + + future> BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> CreateSnapshot( google::cloud::cpp::compute::region_disks::v1:: CreateSnapshotRequest const& request) override; + StatusOr CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + CreateSnapshotRequest const& request) override; + + future> CreateSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteDisk( google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& request) override; + StatusOr DeleteDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& + request) override; + + future> DeleteDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetDisk( google::cloud::cpp::compute::region_disks::v1::GetDiskRequest const& request) override; @@ -79,6 +116,15 @@ class RegionDisksRestConnectionImpl google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const& request) override; + StatusOr InsertDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const& + request) override; + + future> InsertDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionDisks( google::cloud::cpp::compute::region_disks::v1::ListRegionDisksRequest request) override; @@ -88,10 +134,29 @@ class RegionDisksRestConnectionImpl google::cloud::cpp::compute::region_disks::v1:: RemoveResourcePoliciesRequest const& request) override; + StatusOr RemoveResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + RemoveResourcePoliciesRequest const& request) override; + + future> + RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Resize( google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& request) override; + StatusOr Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& + request) override; + + future> Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::region_disks::v1::SetIamPolicyRequest const& request) override; @@ -100,20 +165,60 @@ class RegionDisksRestConnectionImpl google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> StartAsyncReplication( google::cloud::cpp::compute::region_disks::v1:: StartAsyncReplicationRequest const& request) override; + StatusOr StartAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StartAsyncReplicationRequest const& request) override; + + future> + StartAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> StopAsyncReplication(google::cloud::cpp::compute::region_disks::v1:: StopAsyncReplicationRequest const& request) override; + StatusOr StopAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StopAsyncReplicationRequest const& request) override; + + future> + StopAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> StopGroupAsyncReplication( google::cloud::cpp::compute::region_disks::v1:: StopGroupAsyncReplicationRequest const& request) override; + StatusOr + StopGroupAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StopGroupAsyncReplicationRequest const& request) override; + + future> + StopGroupAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::region_disks::v1:: TestIamPermissionsRequest const& request) override; @@ -122,6 +227,15 @@ class RegionDisksRestConnectionImpl google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const& request) override; + StatusOr UpdateDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const& + request) override; + + future> UpdateDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy(Options const& options) { diff --git a/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.cc b/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.cc index 0807f6fa1585a..9604e45b9b7ee 100644 --- a/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.cc +++ b/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.cc @@ -44,6 +44,31 @@ RegionDisksTracingConnection::AddResourcePolicies( child_->AddResourcePolicies(request)); } +StatusOr +RegionDisksTracingConnection::AddResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + AddResourcePoliciesRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::AddResourcePolicies"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddResourcePolicies(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionDisksTracingConnection::AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::AddResourcePolicies"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddResourcePolicies(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionDisksTracingConnection::BulkInsert( google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& @@ -54,6 +79,31 @@ RegionDisksTracingConnection::BulkInsert( return internal::EndSpan(std::move(span), child_->BulkInsert(request)); } +StatusOr +RegionDisksTracingConnection::BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& + request) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::BulkInsert"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BulkInsert(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionDisksTracingConnection::BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::BulkInsert"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BulkInsert(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionDisksTracingConnection::CreateSnapshot( google::cloud::cpp::compute::region_disks::v1::CreateSnapshotRequest const& @@ -64,6 +114,31 @@ RegionDisksTracingConnection::CreateSnapshot( return internal::EndSpan(std::move(span), child_->CreateSnapshot(request)); } +StatusOr +RegionDisksTracingConnection::CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::CreateSnapshotRequest const& + request) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::CreateSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateSnapshot(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionDisksTracingConnection::CreateSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::CreateSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateSnapshot(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionDisksTracingConnection::DeleteDisk( google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& @@ -74,6 +149,31 @@ RegionDisksTracingConnection::DeleteDisk( return internal::EndSpan(std::move(span), child_->DeleteDisk(request)); } +StatusOr +RegionDisksTracingConnection::DeleteDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& + request) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::DeleteDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteDisk(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionDisksTracingConnection::DeleteDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::DeleteDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteDisk(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionDisksTracingConnection::GetDisk( google::cloud::cpp::compute::region_disks::v1::GetDiskRequest const& @@ -104,6 +204,31 @@ RegionDisksTracingConnection::InsertDisk( return internal::EndSpan(std::move(span), child_->InsertDisk(request)); } +StatusOr +RegionDisksTracingConnection::InsertDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const& + request) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::InsertDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertDisk(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionDisksTracingConnection::InsertDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::InsertDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertDisk(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionDisksTracingConnection::ListRegionDisks( google::cloud::cpp::compute::region_disks::v1::ListRegionDisksRequest @@ -127,6 +252,31 @@ RegionDisksTracingConnection::RemoveResourcePolicies( child_->RemoveResourcePolicies(request)); } +StatusOr +RegionDisksTracingConnection::RemoveResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + RemoveResourcePoliciesRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::RemoveResourcePolicies"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RemoveResourcePolicies( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionDisksTracingConnection::RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::RemoveResourcePolicies"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RemoveResourcePolicies( + google::cloud::ExperimentalTag{}, operation)); +} + future> RegionDisksTracingConnection::Resize( google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& @@ -137,6 +287,31 @@ RegionDisksTracingConnection::Resize( return internal::EndSpan(std::move(span), child_->Resize(request)); } +StatusOr +RegionDisksTracingConnection::Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& + request) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::Resize"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->Resize(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionDisksTracingConnection::Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::Resize"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Resize(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionDisksTracingConnection::SetIamPolicy( google::cloud::cpp::compute::region_disks::v1::SetIamPolicyRequest const& @@ -157,6 +332,31 @@ RegionDisksTracingConnection::SetLabels( return internal::EndSpan(std::move(span), child_->SetLabels(request)); } +StatusOr +RegionDisksTracingConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const& + request) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionDisksTracingConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionDisksTracingConnection::StartAsyncReplication( google::cloud::cpp::compute::region_disks::v1:: @@ -168,6 +368,31 @@ RegionDisksTracingConnection::StartAsyncReplication( child_->StartAsyncReplication(request)); } +StatusOr +RegionDisksTracingConnection::StartAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StartAsyncReplicationRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::StartAsyncReplication"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->StartAsyncReplication( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionDisksTracingConnection::StartAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::StartAsyncReplication"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->StartAsyncReplication( + google::cloud::ExperimentalTag{}, operation)); +} + future> RegionDisksTracingConnection::StopAsyncReplication( google::cloud::cpp::compute::region_disks::v1:: @@ -179,6 +404,31 @@ RegionDisksTracingConnection::StopAsyncReplication( child_->StopAsyncReplication(request)); } +StatusOr +RegionDisksTracingConnection::StopAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StopAsyncReplicationRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::StopAsyncReplication"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->StopAsyncReplication( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionDisksTracingConnection::StopAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::StopAsyncReplication"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->StopAsyncReplication( + google::cloud::ExperimentalTag{}, operation)); +} + future> RegionDisksTracingConnection::StopGroupAsyncReplication( google::cloud::cpp::compute::region_disks::v1:: @@ -191,6 +441,33 @@ RegionDisksTracingConnection::StopGroupAsyncReplication( child_->StopGroupAsyncReplication(request)); } +StatusOr +RegionDisksTracingConnection::StopGroupAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StopGroupAsyncReplicationRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::" + "StopGroupAsyncReplication"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->StopGroupAsyncReplication( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionDisksTracingConnection::StopGroupAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::" + "StopGroupAsyncReplication"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->StopGroupAsyncReplication( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionDisksTracingConnection::TestIamPermissions( google::cloud::cpp::compute::region_disks::v1:: @@ -211,6 +488,31 @@ RegionDisksTracingConnection::UpdateDisk( return internal::EndSpan(std::move(span), child_->UpdateDisk(request)); } +StatusOr +RegionDisksTracingConnection::UpdateDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const& + request) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::UpdateDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateDisk(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionDisksTracingConnection::UpdateDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_disks_v1::RegionDisksConnection::UpdateDisk"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateDisk(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.h b/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.h index 4f802f6f38037..3c0046cee838c 100644 --- a/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.h +++ b/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.h @@ -44,18 +44,55 @@ class RegionDisksTracingConnection AddResourcePolicies(google::cloud::cpp::compute::region_disks::v1:: AddResourcePoliciesRequest const& request) override; + StatusOr AddResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + AddResourcePoliciesRequest const& request) override; + + future> + AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> BulkInsert( google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& request) override; + StatusOr BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& + request) override; + + future> BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> CreateSnapshot( google::cloud::cpp::compute::region_disks::v1:: CreateSnapshotRequest const& request) override; + StatusOr CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + CreateSnapshotRequest const& request) override; + + future> CreateSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteDisk( google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& request) override; + StatusOr DeleteDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& + request) override; + + future> DeleteDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetDisk( google::cloud::cpp::compute::region_disks::v1::GetDiskRequest const& request) override; @@ -68,6 +105,15 @@ class RegionDisksTracingConnection google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const& request) override; + StatusOr InsertDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const& + request) override; + + future> InsertDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionDisks( google::cloud::cpp::compute::region_disks::v1::ListRegionDisksRequest request) override; @@ -77,10 +123,29 @@ class RegionDisksTracingConnection google::cloud::cpp::compute::region_disks::v1:: RemoveResourcePoliciesRequest const& request) override; + StatusOr RemoveResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + RemoveResourcePoliciesRequest const& request) override; + + future> + RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Resize( google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& request) override; + StatusOr Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& + request) override; + + future> Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::region_disks::v1::SetIamPolicyRequest const& request) override; @@ -89,20 +154,60 @@ class RegionDisksTracingConnection google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> StartAsyncReplication( google::cloud::cpp::compute::region_disks::v1:: StartAsyncReplicationRequest const& request) override; + StatusOr StartAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StartAsyncReplicationRequest const& request) override; + + future> + StartAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> StopAsyncReplication(google::cloud::cpp::compute::region_disks::v1:: StopAsyncReplicationRequest const& request) override; + StatusOr StopAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StopAsyncReplicationRequest const& request) override; + + future> + StopAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> StopGroupAsyncReplication( google::cloud::cpp::compute::region_disks::v1:: StopGroupAsyncReplicationRequest const& request) override; + StatusOr + StopGroupAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StopGroupAsyncReplicationRequest const& request) override; + + future> + StopGroupAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::region_disks::v1:: TestIamPermissionsRequest const& request) override; @@ -111,6 +216,15 @@ class RegionDisksTracingConnection google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const& request) override; + StatusOr UpdateDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const& + request) override; + + future> UpdateDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/region_disks/v1/mocks/mock_region_disks_connection.h b/google/cloud/compute/region_disks/v1/mocks/mock_region_disks_connection.h index 6bcc77f51011c..53eb843c25d4e 100644 --- a/google/cloud/compute/region_disks/v1/mocks/mock_region_disks_connection.h +++ b/google/cloud/compute/region_disks/v1/mocks/mock_region_disks_connection.h @@ -53,24 +53,76 @@ class MockRegionDisksConnection AddResourcePoliciesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + AddResourcePolicies, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + AddResourcePoliciesRequest const& request), + (override)); + + MOCK_METHOD(future>, + AddResourcePolicies, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, BulkInsert, (google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& request), (override)); + MOCK_METHOD( + StatusOr, BulkInsert, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& + request), + (override)); + + MOCK_METHOD(future>, + BulkInsert, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, CreateSnapshot, (google::cloud::cpp::compute::region_disks::v1:: CreateSnapshotRequest const& request), (override)); + MOCK_METHOD(StatusOr, + CreateSnapshot, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + CreateSnapshotRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateSnapshot, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteDisk, (google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteDisk, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteDisk, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetDisk, (google::cloud::cpp::compute::region_disks::v1::GetDiskRequest const& @@ -89,6 +141,19 @@ class MockRegionDisksConnection request), (override)); + MOCK_METHOD( + StatusOr, InsertDisk, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const& + request), + (override)); + + MOCK_METHOD(future>, + InsertDisk, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListRegionDisks, (google::cloud::cpp::compute::region_disks::v1::ListRegionDisksRequest @@ -101,12 +166,38 @@ class MockRegionDisksConnection RemoveResourcePoliciesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + RemoveResourcePolicies, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + RemoveResourcePoliciesRequest const& request), + (override)); + + MOCK_METHOD(future>, + RemoveResourcePolicies, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, Resize, (google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, Resize, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& + request), + (override)); + + MOCK_METHOD(future>, + Resize, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, SetIamPolicy, (google::cloud::cpp::compute::region_disks::v1::SetIamPolicyRequest const& @@ -119,24 +210,76 @@ class MockRegionDisksConnection request), (override)); + MOCK_METHOD( + StatusOr, SetLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + SetLabels, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, StartAsyncReplication, (google::cloud::cpp::compute::region_disks::v1:: StartAsyncReplicationRequest const& request), (override)); + MOCK_METHOD(StatusOr, + StartAsyncReplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StartAsyncReplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + StartAsyncReplication, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, StopAsyncReplication, (google::cloud::cpp::compute::region_disks::v1:: StopAsyncReplicationRequest const& request), (override)); + MOCK_METHOD(StatusOr, + StopAsyncReplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StopAsyncReplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + StopAsyncReplication, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, StopGroupAsyncReplication, (google::cloud::cpp::compute::region_disks::v1:: StopGroupAsyncReplicationRequest const& request), (override)); + MOCK_METHOD(StatusOr, + StopGroupAsyncReplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StopGroupAsyncReplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + StopGroupAsyncReplication, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, TestIamPermissions, @@ -149,6 +292,19 @@ class MockRegionDisksConnection (google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, UpdateDisk, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateDisk, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_disks/v1/region_disks_connection.cc b/google/cloud/compute/region_disks/v1/region_disks_connection.cc index c980453298340..f3635e72ee184 100644 --- a/google/cloud/compute/region_disks/v1/region_disks_connection.cc +++ b/google/cloud/compute/region_disks/v1/region_disks_connection.cc @@ -45,9 +45,44 @@ RegionDisksConnection::AddResourcePolicies( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionDisksConnection::AddResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + AddResourcePoliciesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +RegionDisksConnection::AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionDisksConnection::BulkInsert( + google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr RegionDisksConnection::BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionDisksConnection::BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -62,6 +97,24 @@ RegionDisksConnection::CreateSnapshot( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionDisksConnection::CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + CreateSnapshotRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionDisksConnection::CreateSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionDisksConnection::DeleteDisk( google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const&) { @@ -70,6 +123,23 @@ RegionDisksConnection::DeleteDisk( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionDisksConnection::DeleteDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionDisksConnection::DeleteDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionDisksConnection::GetDisk( google::cloud::cpp::compute::region_disks::v1::GetDiskRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -89,6 +159,23 @@ RegionDisksConnection::InsertDisk( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionDisksConnection::InsertDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionDisksConnection::InsertDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionDisksConnection::ListRegionDisks( google::cloud::cpp::compute::region_disks::v1:: @@ -106,6 +193,24 @@ RegionDisksConnection::RemoveResourcePolicies( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionDisksConnection::RemoveResourcePolicies( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + RemoveResourcePoliciesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionDisksConnection::RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionDisksConnection::Resize( google::cloud::cpp::compute::region_disks::v1::ResizeRequest const&) { @@ -114,6 +219,23 @@ RegionDisksConnection::Resize( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionDisksConnection::Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::ResizeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionDisksConnection::Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionDisksConnection::SetIamPolicy( google::cloud::cpp::compute::region_disks::v1::SetIamPolicyRequest const&) { @@ -128,6 +250,23 @@ RegionDisksConnection::SetLabels( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionDisksConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionDisksConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionDisksConnection::StartAsyncReplication( google::cloud::cpp::compute::region_disks::v1:: @@ -137,6 +276,24 @@ RegionDisksConnection::StartAsyncReplication( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionDisksConnection::StartAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StartAsyncReplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionDisksConnection::StartAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionDisksConnection::StopAsyncReplication( google::cloud::cpp::compute::region_disks::v1:: @@ -146,6 +303,24 @@ RegionDisksConnection::StopAsyncReplication( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionDisksConnection::StopAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StopAsyncReplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionDisksConnection::StopAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionDisksConnection::StopGroupAsyncReplication( google::cloud::cpp::compute::region_disks::v1:: @@ -155,6 +330,24 @@ RegionDisksConnection::StopGroupAsyncReplication( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionDisksConnection::StopGroupAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StopGroupAsyncReplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionDisksConnection::StopGroupAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionDisksConnection::TestIamPermissions( google::cloud::cpp::compute::region_disks::v1:: @@ -170,6 +363,23 @@ RegionDisksConnection::UpdateDisk( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionDisksConnection::UpdateDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionDisksConnection::UpdateDisk( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_disks_v1 } // namespace cloud diff --git a/google/cloud/compute/region_disks/v1/region_disks_connection.h b/google/cloud/compute/region_disks/v1/region_disks_connection.h index c2b40d4ffe939..8c2bff324d479 100644 --- a/google/cloud/compute/region_disks/v1/region_disks_connection.h +++ b/google/cloud/compute/region_disks/v1/region_disks_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/region_disks/v1/internal/region_disks_retry_traits.h" #include "google/cloud/compute/region_disks/v1/region_disks_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -187,20 +189,57 @@ class RegionDisksConnection { AddResourcePolicies(google::cloud::cpp::compute::region_disks::v1:: AddResourcePoliciesRequest const& request); + virtual StatusOr + AddResourcePolicies(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + AddResourcePoliciesRequest const& request); + + virtual future> + AddResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> BulkInsert( google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& request); + virtual StatusOr BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& + request); + + virtual future> + BulkInsert(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> CreateSnapshot(google::cloud::cpp::compute::region_disks::v1:: CreateSnapshotRequest const& request); + virtual StatusOr CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + CreateSnapshotRequest const& request); + + virtual future> + CreateSnapshot(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteDisk( google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& request); + virtual StatusOr DeleteDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& + request); + + virtual future> + DeleteDisk(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetDisk( google::cloud::cpp::compute::region_disks::v1::GetDiskRequest const& request); @@ -214,6 +253,15 @@ class RegionDisksConnection { google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const& request); + virtual StatusOr InsertDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const& + request); + + virtual future> + InsertDisk(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionDisks( google::cloud::cpp::compute::region_disks::v1::ListRegionDisksRequest request); @@ -222,10 +270,30 @@ class RegionDisksConnection { RemoveResourcePolicies(google::cloud::cpp::compute::region_disks::v1:: RemoveResourcePoliciesRequest const& request); + virtual StatusOr + RemoveResourcePolicies(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + RemoveResourcePoliciesRequest const& request); + + virtual future> + RemoveResourcePolicies( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> Resize( google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& request); + virtual StatusOr Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& + request); + + virtual future> Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr SetIamPolicy( google::cloud::cpp::compute::region_disks::v1::SetIamPolicyRequest const& request); @@ -235,19 +303,61 @@ class RegionDisksConnection { google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const& request); + virtual StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const& + request); + + virtual future> + SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> StartAsyncReplication(google::cloud::cpp::compute::region_disks::v1:: StartAsyncReplicationRequest const& request); + virtual StatusOr + StartAsyncReplication(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StartAsyncReplicationRequest const& request); + + virtual future> + StartAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> StopAsyncReplication(google::cloud::cpp::compute::region_disks::v1:: StopAsyncReplicationRequest const& request); + virtual StatusOr + StopAsyncReplication(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StopAsyncReplicationRequest const& request); + + virtual future> + StopAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> StopGroupAsyncReplication( google::cloud::cpp::compute::region_disks::v1:: StopGroupAsyncReplicationRequest const& request); + virtual StatusOr + StopGroupAsyncReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1:: + StopGroupAsyncReplicationRequest const& request); + + virtual future> + StopGroupAsyncReplication( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr TestIamPermissions(google::cloud::cpp::compute::region_disks::v1:: TestIamPermissionsRequest const& request); @@ -256,6 +366,15 @@ class RegionDisksConnection { UpdateDisk( google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const& request); + + virtual StatusOr UpdateDisk( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const& + request); + + virtual future> + UpdateDisk(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_rest_connection_impl.cc b/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_rest_connection_impl.cc index bf857023adc70..f749ab15af345 100644 --- a/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_rest_connection_impl.cc +++ b/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -107,6 +108,79 @@ RegionHealthCheckServicesRestConnectionImpl::DeleteHealthCheckService( }); } +StatusOr +RegionHealthCheckServicesRestConnectionImpl::DeleteHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + DeleteHealthCheckServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteHealthCheckService(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_health_check_services::v1:: + DeleteHealthCheckServiceRequest const& request) { + return stub_->DeleteHealthCheckService(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionHealthCheckServicesRestConnectionImpl::DeleteHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionHealthCheckServicesRestConnectionImpl::GetHealthCheckService( google::cloud::cpp::compute::region_health_check_services::v1:: @@ -183,6 +257,79 @@ RegionHealthCheckServicesRestConnectionImpl::InsertHealthCheckService( }); } +StatusOr +RegionHealthCheckServicesRestConnectionImpl::InsertHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + InsertHealthCheckServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertHealthCheckService(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_health_check_services::v1:: + InsertHealthCheckServiceRequest const& request) { + return stub_->InsertHealthCheckService(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionHealthCheckServicesRestConnectionImpl::InsertHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionHealthCheckServicesRestConnectionImpl::ListRegionHealthCheckServices( google::cloud::cpp::compute::region_health_check_services::v1:: @@ -284,6 +431,79 @@ RegionHealthCheckServicesRestConnectionImpl::PatchHealthCheckService( }); } +StatusOr +RegionHealthCheckServicesRestConnectionImpl::PatchHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + PatchHealthCheckServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchHealthCheckService(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_health_check_services::v1:: + PatchHealthCheckServiceRequest const& request) { + return stub_->PatchHealthCheckService(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionHealthCheckServicesRestConnectionImpl::PatchHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_health_check_services_v1_internal } // namespace cloud diff --git a/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_rest_connection_impl.h b/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_rest_connection_impl.h index 400c59c88f3b4..374883c40510a 100644 --- a/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_rest_connection_impl.h +++ b/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_rest_connection_impl.h @@ -59,6 +59,16 @@ class RegionHealthCheckServicesRestConnectionImpl google::cloud::cpp::compute::region_health_check_services::v1:: DeleteHealthCheckServiceRequest const& request) override; + StatusOr DeleteHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + DeleteHealthCheckServiceRequest const& request) override; + + future> + DeleteHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetHealthCheckService( google::cloud::cpp::compute::region_health_check_services::v1:: @@ -69,6 +79,16 @@ class RegionHealthCheckServicesRestConnectionImpl google::cloud::cpp::compute::region_health_check_services::v1:: InsertHealthCheckServiceRequest const& request) override; + StatusOr InsertHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + InsertHealthCheckServiceRequest const& request) override; + + future> + InsertHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionHealthCheckServices( google::cloud::cpp::compute::region_health_check_services::v1:: @@ -79,6 +99,16 @@ class RegionHealthCheckServicesRestConnectionImpl google::cloud::cpp::compute::region_health_check_services::v1:: PatchHealthCheckServiceRequest const& request) override; + StatusOr PatchHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + PatchHealthCheckServiceRequest const& request) override; + + future> + PatchHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr diff --git a/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_tracing_connection.cc b/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_tracing_connection.cc index a2804ab18f2cb..0a82b190cfe18 100644 --- a/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_tracing_connection.cc +++ b/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_tracing_connection.cc @@ -49,6 +49,33 @@ RegionHealthCheckServicesTracingConnection::DeleteHealthCheckService( child_->DeleteHealthCheckService(request)); } +StatusOr +RegionHealthCheckServicesTracingConnection::DeleteHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + DeleteHealthCheckServiceRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_health_check_services_v1::" + "RegionHealthCheckServicesConnection::DeleteHealthCheckService"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteHealthCheckService( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionHealthCheckServicesTracingConnection::DeleteHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_health_check_services_v1::" + "RegionHealthCheckServicesConnection::DeleteHealthCheckService"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteHealthCheckService( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionHealthCheckServicesTracingConnection::GetHealthCheckService( google::cloud::cpp::compute::region_health_check_services::v1:: @@ -72,6 +99,33 @@ RegionHealthCheckServicesTracingConnection::InsertHealthCheckService( child_->InsertHealthCheckService(request)); } +StatusOr +RegionHealthCheckServicesTracingConnection::InsertHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + InsertHealthCheckServiceRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_health_check_services_v1::" + "RegionHealthCheckServicesConnection::InsertHealthCheckService"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertHealthCheckService( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionHealthCheckServicesTracingConnection::InsertHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_health_check_services_v1::" + "RegionHealthCheckServicesConnection::InsertHealthCheckService"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertHealthCheckService( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionHealthCheckServicesTracingConnection::ListRegionHealthCheckServices( google::cloud::cpp::compute::region_health_check_services::v1:: @@ -98,6 +152,33 @@ RegionHealthCheckServicesTracingConnection::PatchHealthCheckService( child_->PatchHealthCheckService(request)); } +StatusOr +RegionHealthCheckServicesTracingConnection::PatchHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + PatchHealthCheckServiceRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_health_check_services_v1::" + "RegionHealthCheckServicesConnection::PatchHealthCheckService"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchHealthCheckService( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionHealthCheckServicesTracingConnection::PatchHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_health_check_services_v1::" + "RegionHealthCheckServicesConnection::PatchHealthCheckService"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchHealthCheckService( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr DeleteHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + DeleteHealthCheckServiceRequest const& request) override; + + future> + DeleteHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetHealthCheckService( google::cloud::cpp::compute::region_health_check_services::v1:: @@ -59,6 +69,16 @@ class RegionHealthCheckServicesTracingConnection google::cloud::cpp::compute::region_health_check_services::v1:: InsertHealthCheckServiceRequest const& request) override; + StatusOr InsertHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + InsertHealthCheckServiceRequest const& request) override; + + future> + InsertHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionHealthCheckServices( google::cloud::cpp::compute::region_health_check_services::v1:: @@ -69,6 +89,16 @@ class RegionHealthCheckServicesTracingConnection google::cloud::cpp::compute::region_health_check_services::v1:: PatchHealthCheckServiceRequest const& request) override; + StatusOr PatchHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + PatchHealthCheckServiceRequest const& request) override; + + future> + PatchHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr diff --git a/google/cloud/compute/region_health_check_services/v1/mocks/mock_region_health_check_services_connection.h b/google/cloud/compute/region_health_check_services/v1/mocks/mock_region_health_check_services_connection.h index 2dbae4e43152c..4247d21e3fde6 100644 --- a/google/cloud/compute/region_health_check_services/v1/mocks/mock_region_health_check_services_connection.h +++ b/google/cloud/compute/region_health_check_services/v1/mocks/mock_region_health_check_services_connection.h @@ -55,6 +55,19 @@ class MockRegionHealthCheckServicesConnection DeleteHealthCheckServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteHealthCheckService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + DeleteHealthCheckServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteHealthCheckService, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetHealthCheckService, (google::cloud::cpp::compute::region_health_check_services::v1:: @@ -67,6 +80,19 @@ class MockRegionHealthCheckServicesConnection InsertHealthCheckServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertHealthCheckService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + InsertHealthCheckServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertHealthCheckService, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListRegionHealthCheckServices, @@ -79,6 +105,19 @@ class MockRegionHealthCheckServicesConnection (google::cloud::cpp::compute::region_health_check_services::v1:: PatchHealthCheckServiceRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + PatchHealthCheckService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + PatchHealthCheckServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchHealthCheckService, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection.cc b/google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection.cc index 3e144d4754279..af8804d6d4a3d 100644 --- a/google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection.cc +++ b/google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection.cc @@ -47,6 +47,24 @@ RegionHealthCheckServicesConnection::DeleteHealthCheckService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionHealthCheckServicesConnection::DeleteHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + DeleteHealthCheckServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionHealthCheckServicesConnection::DeleteHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionHealthCheckServicesConnection::GetHealthCheckService( google::cloud::cpp::compute::region_health_check_services::v1:: @@ -63,6 +81,24 @@ RegionHealthCheckServicesConnection::InsertHealthCheckService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionHealthCheckServicesConnection::InsertHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + InsertHealthCheckServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionHealthCheckServicesConnection::InsertHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionHealthCheckServicesConnection::ListRegionHealthCheckServices( google::cloud::cpp::compute::region_health_check_services::v1:: @@ -80,6 +116,24 @@ RegionHealthCheckServicesConnection::PatchHealthCheckService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionHealthCheckServicesConnection::PatchHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + PatchHealthCheckServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionHealthCheckServicesConnection::PatchHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_health_check_services_v1 } // namespace cloud diff --git a/google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection.h b/google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection.h index dd0cfbbf8ff99..f6489ea5df946 100644 --- a/google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection.h +++ b/google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_retry_traits.h" #include "google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -206,6 +208,17 @@ class RegionHealthCheckServicesConnection { google::cloud::cpp::compute::region_health_check_services::v1:: DeleteHealthCheckServiceRequest const& request); + virtual StatusOr + DeleteHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + DeleteHealthCheckServiceRequest const& request); + + virtual future> + DeleteHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetHealthCheckService( google::cloud::cpp::compute::region_health_check_services::v1:: @@ -216,6 +229,17 @@ class RegionHealthCheckServicesConnection { google::cloud::cpp::compute::region_health_check_services::v1:: InsertHealthCheckServiceRequest const& request); + virtual StatusOr + InsertHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + InsertHealthCheckServiceRequest const& request); + + virtual future> + InsertHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionHealthCheckServices( google::cloud::cpp::compute::region_health_check_services::v1:: @@ -225,6 +249,17 @@ class RegionHealthCheckServicesConnection { PatchHealthCheckService( google::cloud::cpp::compute::region_health_check_services::v1:: PatchHealthCheckServiceRequest const& request); + + virtual StatusOr + PatchHealthCheckService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_check_services::v1:: + PatchHealthCheckServiceRequest const& request); + + virtual future> + PatchHealthCheckService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_rest_connection_impl.cc b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_rest_connection_impl.cc index 10055f2b648b0..d316800724b5f 100644 --- a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_rest_connection_impl.cc +++ b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -105,6 +106,79 @@ RegionHealthChecksRestConnectionImpl::DeleteHealthCheck( }); } +StatusOr +RegionHealthChecksRestConnectionImpl::DeleteHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + DeleteHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_health_checks::v1:: + DeleteHealthCheckRequest const& request) { + return stub_->DeleteHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionHealthChecksRestConnectionImpl::DeleteHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionHealthChecksRestConnectionImpl::GetHealthCheck( google::cloud::cpp::compute::region_health_checks::v1:: @@ -181,6 +255,79 @@ RegionHealthChecksRestConnectionImpl::InsertHealthCheck( }); } +StatusOr +RegionHealthChecksRestConnectionImpl::InsertHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + InsertHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_health_checks::v1:: + InsertHealthCheckRequest const& request) { + return stub_->InsertHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionHealthChecksRestConnectionImpl::InsertHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionHealthChecksRestConnectionImpl::ListRegionHealthChecks( google::cloud::cpp::compute::region_health_checks::v1:: @@ -281,6 +428,79 @@ RegionHealthChecksRestConnectionImpl::PatchHealthCheck( }); } +StatusOr +RegionHealthChecksRestConnectionImpl::PatchHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + PatchHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_health_checks::v1:: + PatchHealthCheckRequest const& request) { + return stub_->PatchHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionHealthChecksRestConnectionImpl::PatchHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionHealthChecksRestConnectionImpl::UpdateHealthCheck( google::cloud::cpp::compute::region_health_checks::v1:: @@ -341,6 +561,79 @@ RegionHealthChecksRestConnectionImpl::UpdateHealthCheck( }); } +StatusOr +RegionHealthChecksRestConnectionImpl::UpdateHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + UpdateHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_health_checks::v1:: + UpdateHealthCheckRequest const& request) { + return stub_->UpdateHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionHealthChecksRestConnectionImpl::UpdateHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_health_checks_v1_internal } // namespace cloud diff --git a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_rest_connection_impl.h b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_rest_connection_impl.h index fd0e49ba8701f..6d2bf2c161654 100644 --- a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_rest_connection_impl.h +++ b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_rest_connection_impl.h @@ -57,6 +57,16 @@ class RegionHealthChecksRestConnectionImpl DeleteHealthCheck(google::cloud::cpp::compute::region_health_checks::v1:: DeleteHealthCheckRequest const& request) override; + StatusOr DeleteHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + DeleteHealthCheckRequest const& request) override; + + future> + DeleteHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetHealthCheck( google::cloud::cpp::compute::region_health_checks::v1:: GetHealthCheckRequest const& request) override; @@ -65,6 +75,16 @@ class RegionHealthChecksRestConnectionImpl InsertHealthCheck(google::cloud::cpp::compute::region_health_checks::v1:: InsertHealthCheckRequest const& request) override; + StatusOr InsertHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + InsertHealthCheckRequest const& request) override; + + future> + InsertHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionHealthChecks(google::cloud::cpp::compute::region_health_checks::v1:: ListRegionHealthChecksRequest request) override; @@ -73,10 +93,29 @@ class RegionHealthChecksRestConnectionImpl google::cloud::cpp::compute::region_health_checks::v1:: PatchHealthCheckRequest const& request) override; + StatusOr PatchHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + PatchHealthCheckRequest const& request) override; + + future> PatchHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateHealthCheck(google::cloud::cpp::compute::region_health_checks::v1:: UpdateHealthCheckRequest const& request) override; + StatusOr UpdateHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + UpdateHealthCheckRequest const& request) override; + + future> + UpdateHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_region_health_checks_v1::RegionHealthChecksRetryPolicy> diff --git a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.cc b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.cc index f22009707233a..2033038d0824f 100644 --- a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.cc +++ b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.cc @@ -47,6 +47,33 @@ RegionHealthChecksTracingConnection::DeleteHealthCheck( return internal::EndSpan(std::move(span), child_->DeleteHealthCheck(request)); } +StatusOr +RegionHealthChecksTracingConnection::DeleteHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + DeleteHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_health_checks_v1::RegionHealthChecksConnection::" + "DeleteHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteHealthCheck(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionHealthChecksTracingConnection::DeleteHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_health_checks_v1::RegionHealthChecksConnection::" + "DeleteHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteHealthCheck(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionHealthChecksTracingConnection::GetHealthCheck( google::cloud::cpp::compute::region_health_checks::v1:: @@ -69,6 +96,33 @@ RegionHealthChecksTracingConnection::InsertHealthCheck( return internal::EndSpan(std::move(span), child_->InsertHealthCheck(request)); } +StatusOr +RegionHealthChecksTracingConnection::InsertHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + InsertHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_health_checks_v1::RegionHealthChecksConnection::" + "InsertHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertHealthCheck(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionHealthChecksTracingConnection::InsertHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_health_checks_v1::RegionHealthChecksConnection::" + "InsertHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertHealthCheck(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionHealthChecksTracingConnection::ListRegionHealthChecks( google::cloud::cpp::compute::region_health_checks::v1:: @@ -94,6 +148,33 @@ RegionHealthChecksTracingConnection::PatchHealthCheck( return internal::EndSpan(std::move(span), child_->PatchHealthCheck(request)); } +StatusOr +RegionHealthChecksTracingConnection::PatchHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + PatchHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_health_checks_v1::RegionHealthChecksConnection::" + "PatchHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchHealthCheck(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionHealthChecksTracingConnection::PatchHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_health_checks_v1::RegionHealthChecksConnection::" + "PatchHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchHealthCheck(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionHealthChecksTracingConnection::UpdateHealthCheck( google::cloud::cpp::compute::region_health_checks::v1:: @@ -105,6 +186,33 @@ RegionHealthChecksTracingConnection::UpdateHealthCheck( return internal::EndSpan(std::move(span), child_->UpdateHealthCheck(request)); } +StatusOr +RegionHealthChecksTracingConnection::UpdateHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + UpdateHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_health_checks_v1::RegionHealthChecksConnection::" + "UpdateHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateHealthCheck(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionHealthChecksTracingConnection::UpdateHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_health_checks_v1::RegionHealthChecksConnection::" + "UpdateHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateHealthCheck(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.h b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.h index d0015f3b9306a..5e84715b25a4b 100644 --- a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.h +++ b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.h @@ -47,6 +47,16 @@ class RegionHealthChecksTracingConnection DeleteHealthCheck(google::cloud::cpp::compute::region_health_checks::v1:: DeleteHealthCheckRequest const& request) override; + StatusOr DeleteHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + DeleteHealthCheckRequest const& request) override; + + future> + DeleteHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetHealthCheck( google::cloud::cpp::compute::region_health_checks::v1:: GetHealthCheckRequest const& request) override; @@ -55,6 +65,16 @@ class RegionHealthChecksTracingConnection InsertHealthCheck(google::cloud::cpp::compute::region_health_checks::v1:: InsertHealthCheckRequest const& request) override; + StatusOr InsertHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + InsertHealthCheckRequest const& request) override; + + future> + InsertHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionHealthChecks(google::cloud::cpp::compute::region_health_checks::v1:: ListRegionHealthChecksRequest request) override; @@ -63,10 +83,29 @@ class RegionHealthChecksTracingConnection google::cloud::cpp::compute::region_health_checks::v1:: PatchHealthCheckRequest const& request) override; + StatusOr PatchHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + PatchHealthCheckRequest const& request) override; + + future> PatchHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateHealthCheck(google::cloud::cpp::compute::region_health_checks::v1:: UpdateHealthCheckRequest const& request) override; + StatusOr UpdateHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + UpdateHealthCheckRequest const& request) override; + + future> + UpdateHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/region_health_checks/v1/mocks/mock_region_health_checks_connection.h b/google/cloud/compute/region_health_checks/v1/mocks/mock_region_health_checks_connection.h index ab482b3188024..0f4c9f9fd0c93 100644 --- a/google/cloud/compute/region_health_checks/v1/mocks/mock_region_health_checks_connection.h +++ b/google/cloud/compute/region_health_checks/v1/mocks/mock_region_health_checks_connection.h @@ -54,6 +54,19 @@ class MockRegionHealthChecksConnection DeleteHealthCheckRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + DeleteHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetHealthCheck, (google::cloud::cpp::compute::region_health_checks::v1:: @@ -66,6 +79,19 @@ class MockRegionHealthChecksConnection InsertHealthCheckRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + InsertHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRegionHealthChecks, (google::cloud::cpp::compute::region_health_checks::v1:: @@ -78,11 +104,37 @@ class MockRegionHealthChecksConnection PatchHealthCheckRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + PatchHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateHealthCheck, (google::cloud::cpp::compute::region_health_checks::v1:: UpdateHealthCheckRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + UpdateHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + UpdateHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_health_checks/v1/region_health_checks_connection.cc b/google/cloud/compute/region_health_checks/v1/region_health_checks_connection.cc index f0e5c7a733b43..59c1511fb3852 100644 --- a/google/cloud/compute/region_health_checks/v1/region_health_checks_connection.cc +++ b/google/cloud/compute/region_health_checks/v1/region_health_checks_connection.cc @@ -46,6 +46,24 @@ RegionHealthChecksConnection::DeleteHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionHealthChecksConnection::DeleteHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + DeleteHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionHealthChecksConnection::DeleteHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionHealthChecksConnection::GetHealthCheck( google::cloud::cpp::compute::region_health_checks::v1:: @@ -62,6 +80,24 @@ RegionHealthChecksConnection::InsertHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionHealthChecksConnection::InsertHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + InsertHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionHealthChecksConnection::InsertHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionHealthChecksConnection::ListRegionHealthChecks( google::cloud::cpp::compute::region_health_checks::v1:: @@ -79,6 +115,24 @@ RegionHealthChecksConnection::PatchHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionHealthChecksConnection::PatchHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + PatchHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionHealthChecksConnection::PatchHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionHealthChecksConnection::UpdateHealthCheck( google::cloud::cpp::compute::region_health_checks::v1:: @@ -88,6 +142,24 @@ RegionHealthChecksConnection::UpdateHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionHealthChecksConnection::UpdateHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + UpdateHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionHealthChecksConnection::UpdateHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_health_checks_v1 } // namespace cloud diff --git a/google/cloud/compute/region_health_checks/v1/region_health_checks_connection.h b/google/cloud/compute/region_health_checks/v1/region_health_checks_connection.h index e906fda8d6afb..2797d8a55bda4 100644 --- a/google/cloud/compute/region_health_checks/v1/region_health_checks_connection.h +++ b/google/cloud/compute/region_health_checks/v1/region_health_checks_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/region_health_checks/v1/internal/region_health_checks_retry_traits.h" #include "google/cloud/compute/region_health_checks/v1/region_health_checks_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -193,6 +195,16 @@ class RegionHealthChecksConnection { DeleteHealthCheck(google::cloud::cpp::compute::region_health_checks::v1:: DeleteHealthCheckRequest const& request); + virtual StatusOr + DeleteHealthCheck(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + DeleteHealthCheckRequest const& request); + + virtual future> + DeleteHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetHealthCheck( google::cloud::cpp::compute::region_health_checks::v1:: GetHealthCheckRequest const& request); @@ -201,6 +213,16 @@ class RegionHealthChecksConnection { InsertHealthCheck(google::cloud::cpp::compute::region_health_checks::v1:: InsertHealthCheckRequest const& request); + virtual StatusOr + InsertHealthCheck(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + InsertHealthCheckRequest const& request); + + virtual future> + InsertHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionHealthChecks(google::cloud::cpp::compute::region_health_checks::v1:: ListRegionHealthChecksRequest request); @@ -209,9 +231,28 @@ class RegionHealthChecksConnection { PatchHealthCheck(google::cloud::cpp::compute::region_health_checks::v1:: PatchHealthCheckRequest const& request); + virtual StatusOr PatchHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + PatchHealthCheckRequest const& request); + + virtual future> + PatchHealthCheck(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> UpdateHealthCheck(google::cloud::cpp::compute::region_health_checks::v1:: UpdateHealthCheckRequest const& request); + + virtual StatusOr + UpdateHealthCheck(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_health_checks::v1:: + UpdateHealthCheckRequest const& request); + + virtual future> + UpdateHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_rest_connection_impl.cc b/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_rest_connection_impl.cc index 9540ee928156b..dc732b228a66d 100644 --- a/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_rest_connection_impl.cc +++ b/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -108,6 +109,79 @@ RegionInstanceGroupManagersRestConnectionImpl::AbandonInstances( }); } +StatusOr +RegionInstanceGroupManagersRestConnectionImpl::AbandonInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + AbandonInstancesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AbandonInstances(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + AbandonInstancesRequest const& request) { + return stub_->AbandonInstances(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionInstanceGroupManagersRestConnectionImpl::AbandonInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionInstanceGroupManagersRestConnectionImpl::ApplyUpdatesToInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -169,6 +243,79 @@ RegionInstanceGroupManagersRestConnectionImpl::ApplyUpdatesToInstances( }); } +StatusOr +RegionInstanceGroupManagersRestConnectionImpl::ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + ApplyUpdatesToInstancesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ApplyUpdatesToInstances(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + ApplyUpdatesToInstancesRequest const& request) { + return stub_->ApplyUpdatesToInstances(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionInstanceGroupManagersRestConnectionImpl::ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionInstanceGroupManagersRestConnectionImpl::CreateInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -230,6 +377,79 @@ RegionInstanceGroupManagersRestConnectionImpl::CreateInstances( }); } +StatusOr +RegionInstanceGroupManagersRestConnectionImpl::CreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + CreateInstancesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstances(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + CreateInstancesRequest const& request) { + return stub_->CreateInstances(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionInstanceGroupManagersRestConnectionImpl::CreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionInstanceGroupManagersRestConnectionImpl::DeleteInstanceGroupManager( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -291,6 +511,80 @@ RegionInstanceGroupManagersRestConnectionImpl::DeleteInstanceGroupManager( }); } +StatusOr +RegionInstanceGroupManagersRestConnectionImpl::DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeleteInstanceGroupManagerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstanceGroupManager(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeleteInstanceGroupManagerRequest const& request) { + return stub_->DeleteInstanceGroupManager(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +RegionInstanceGroupManagersRestConnectionImpl::DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionInstanceGroupManagersRestConnectionImpl::DeleteInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -352,6 +646,79 @@ RegionInstanceGroupManagersRestConnectionImpl::DeleteInstances( }); } +StatusOr +RegionInstanceGroupManagersRestConnectionImpl::DeleteInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeleteInstancesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstances(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeleteInstancesRequest const& request) { + return stub_->DeleteInstances(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionInstanceGroupManagersRestConnectionImpl::DeleteInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionInstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -413,35 +780,108 @@ RegionInstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( }); } -StatusOr -RegionInstanceGroupManagersRestConnectionImpl::GetInstanceGroupManager( +StatusOr +RegionInstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: - GetInstanceGroupManagerRequest const& request) { + DeletePerInstanceConfigsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->GetInstanceGroupManager(request), + idempotency_policy(*current)->DeletePerInstanceConfigs(request), [this](rest_internal::RestContext& rest_context, Options const& options, google::cloud::cpp::compute::region_instance_group_managers::v1:: - GetInstanceGroupManagerRequest const& request) { - return stub_->GetInstanceGroupManager(rest_context, options, request); + DeletePerInstanceConfigsRequest const& request) { + return stub_->DeletePerInstanceConfigs(rest_context, options, request); }, *current, request, __func__); } future> -RegionInstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( - google::cloud::cpp::compute::region_instance_group_managers::v1:: - InsertInstanceGroupManagerRequest const& request) { +RegionInstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, google::cloud::cpp::compute::region_operations::v1:: DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_]( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + +StatusOr +RegionInstanceGroupManagersRestConnectionImpl::GetInstanceGroupManager( + google::cloud::cpp::compute::region_instance_group_managers::v1:: + GetInstanceGroupManagerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->GetInstanceGroupManager(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + GetInstanceGroupManagerRequest const& request) { + return stub_->GetInstanceGroupManager(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionInstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( + google::cloud::cpp::compute::region_instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_]( CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -490,6 +930,80 @@ RegionInstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( }); } +StatusOr +RegionInstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertInstanceGroupManager(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request) { + return stub_->InsertInstanceGroupManager(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +RegionInstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionInstanceGroupManagersRestConnectionImpl::ListRegionInstanceGroupManagers( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -631,7 +1145,275 @@ RegionInstanceGroupManagersRestConnectionImpl::ListPerInstanceConfigs( future> RegionInstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( google::cloud::cpp::compute::region_instance_group_managers::v1:: - PatchInstanceGroupManagerRequest const& request) { + PatchInstanceGroupManagerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request) { + return stub->AsyncPatchInstanceGroupManager( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchInstanceGroupManager(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request](std::string const& op, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + r.set_project(request.project()); + r.set_region(request.region()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_region(request.region()); + r.set_operation(op); + }); +} + +StatusOr +RegionInstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchInstanceGroupManager(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request) { + return stub_->PatchInstanceGroupManager(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionInstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + +future> +RegionInstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, request, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request) { + return stub->AsyncPatchPerInstanceConfigs(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchPerInstanceConfigs(request), + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [request](std::string const& op, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + r.set_project(request.project()); + r.set_region(request.region()); + r.set_operation(op); + }, + [request](std::string const& op, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + r.set_project(request.project()); + r.set_region(request.region()); + r.set_operation(op); + }); +} + +StatusOr +RegionInstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchPerInstanceConfigs(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request) { + return stub_->PatchPerInstanceConfigs(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionInstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + +future> +RegionInstanceGroupManagersRestConnectionImpl::RecreateInstances( + google::cloud::cpp::compute::region_instance_group_managers::v1:: + RecreateInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -645,9 +1427,9 @@ RegionInstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( std::unique_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::cpp::compute::region_instance_group_managers::v1:: - PatchInstanceGroupManagerRequest const& request) { - return stub->AsyncPatchInstanceGroupManager( - cq, std::move(context), std::move(options), request); + RecreateInstancesRequest const& request) { + return stub->AsyncRecreateInstances(cq, std::move(context), + std::move(options), request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -668,7 +1450,7 @@ RegionInstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->PatchInstanceGroupManager(request), + idempotency_policy(*current)->RecreateInstances(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; @@ -689,27 +1471,35 @@ RegionInstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( }); } -future> -RegionInstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( +StatusOr +RegionInstanceGroupManagersRestConnectionImpl::RecreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: - PatchPerInstanceConfigsRequest const& request) { + RecreateInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RecreateInstances(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + RecreateInstancesRequest const& request) { + return stub_->RecreateInstances(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionInstanceGroupManagersRestConnectionImpl::RecreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, google::cloud::cpp::compute::region_operations::v1:: DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_]( - CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::region_instance_group_managers::v1:: - PatchPerInstanceConfigsRequest const& request) { - return stub->AsyncPatchPerInstanceConfigs(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -728,32 +1518,36 @@ RegionInstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->PatchPerInstanceConfigs(request), polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request](std::string const& op, - google::cloud::cpp::compute::region_operations::v1:: - GetOperationRequest& r) { - r.set_project(request.project()); - r.set_region(request.region()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::region_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_region(request.region()); - r.set_operation(op); + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); }); } future> -RegionInstanceGroupManagersRestConnectionImpl::RecreateInstances( +RegionInstanceGroupManagersRestConnectionImpl::Resize( google::cloud::cpp::compute::region_instance_group_managers::v1:: - RecreateInstancesRequest const& request) { + ResizeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestLongRunningOperation< google::cloud::cpp::compute::v1::Operation, @@ -767,9 +1561,9 @@ RegionInstanceGroupManagersRestConnectionImpl::RecreateInstances( std::unique_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::cpp::compute::region_instance_group_managers::v1:: - RecreateInstancesRequest const& request) { - return stub->AsyncRecreateInstances(cq, std::move(context), - std::move(options), request); + ResizeRequest const& request) { + return stub->AsyncResize(cq, std::move(context), std::move(options), + request); }, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, @@ -790,8 +1584,8 @@ RegionInstanceGroupManagersRestConnectionImpl::RecreateInstances( [](StatusOr op, std::string const&) { return op; }, retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->RecreateInstances(request), - polling_policy(*current), __func__, + idempotency_policy(*current)->Resize(request), polling_policy(*current), + __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, @@ -811,27 +1605,35 @@ RegionInstanceGroupManagersRestConnectionImpl::RecreateInstances( }); } -future> +StatusOr RegionInstanceGroupManagersRestConnectionImpl::Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: ResizeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - return rest_internal::AsyncRestLongRunningOperation< + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Resize(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + ResizeRequest const& request) { + return stub_->Resize(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionInstanceGroupManagersRestConnectionImpl::Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::v1::Operation, google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, google::cloud::cpp::compute::region_operations::v1:: DeleteOperationRequest>( - background_->cq(), current, request, - [stub = stub_]( - CompletionQueue& cq, - std::unique_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::cpp::compute::region_instance_group_managers::v1:: - ResizeRequest const& request) { - return stub->AsyncResize(cq, std::move(context), std::move(options), - request); - }, + background_->cq(), current, operation, [stub = stub_](CompletionQueue& cq, std::unique_ptr context, google::cloud::internal::ImmutableOptions options, @@ -850,25 +1652,29 @@ RegionInstanceGroupManagersRestConnectionImpl::Resize( }, [](StatusOr op, std::string const&) { return op; }, - retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->Resize(request), polling_policy(*current), - __func__, + polling_policy(*current), __func__, [](google::cloud::cpp::compute::v1::Operation const& op) { return op.status() == "DONE"; }, - [request](std::string const& op, - google::cloud::cpp::compute::region_operations::v1:: - GetOperationRequest& r) { - r.set_project(request.project()); - r.set_region(request.region()); - r.set_operation(op); - }, - [request](std::string const& op, - google::cloud::cpp::compute::region_operations::v1:: - DeleteOperationRequest& r) { - r.set_project(request.project()); - r.set_region(request.region()); - r.set_operation(op); + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); }); } @@ -933,6 +1739,79 @@ RegionInstanceGroupManagersRestConnectionImpl::SetInstanceTemplate( }); } +StatusOr +RegionInstanceGroupManagersRestConnectionImpl::SetInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + SetInstanceTemplateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetInstanceTemplate(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + SetInstanceTemplateRequest const& request) { + return stub_->SetInstanceTemplate(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionInstanceGroupManagersRestConnectionImpl::SetInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionInstanceGroupManagersRestConnectionImpl::SetTargetPools( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -994,6 +1873,79 @@ RegionInstanceGroupManagersRestConnectionImpl::SetTargetPools( }); } +StatusOr +RegionInstanceGroupManagersRestConnectionImpl::SetTargetPools( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + SetTargetPoolsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetTargetPools(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + SetTargetPoolsRequest const& request) { + return stub_->SetTargetPools(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionInstanceGroupManagersRestConnectionImpl::SetTargetPools( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionInstanceGroupManagersRestConnectionImpl::UpdatePerInstanceConfigs( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -1055,6 +2007,79 @@ RegionInstanceGroupManagersRestConnectionImpl::UpdatePerInstanceConfigs( }); } +StatusOr +RegionInstanceGroupManagersRestConnectionImpl::UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + UpdatePerInstanceConfigsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdatePerInstanceConfigs(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + UpdatePerInstanceConfigsRequest const& request) { + return stub_->UpdatePerInstanceConfigs(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionInstanceGroupManagersRestConnectionImpl::UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_instance_group_managers_v1_internal } // namespace cloud diff --git a/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_rest_connection_impl.h b/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_rest_connection_impl.h index dc5bb7ffce2f1..faf26138135cc 100644 --- a/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_rest_connection_impl.h +++ b/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_rest_connection_impl.h @@ -58,29 +58,87 @@ class RegionInstanceGroupManagersRestConnectionImpl google::cloud::cpp::compute::region_instance_group_managers::v1:: AbandonInstancesRequest const& request) override; + StatusOr AbandonInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + AbandonInstancesRequest const& request) override; + + future> AbandonInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> ApplyUpdatesToInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request) override; + StatusOr ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + ApplyUpdatesToInstancesRequest const& request) override; + + future> + ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> CreateInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: CreateInstancesRequest const& request) override; + StatusOr CreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + CreateInstancesRequest const& request) override; + + future> CreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteInstanceGroupManager( google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request) override; + StatusOr + DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeleteInstanceGroupManagerRequest const& request) override; + + future> + DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstancesRequest const& request) override; + StatusOr DeleteInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeleteInstancesRequest const& request) override; + + future> DeleteInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeletePerInstanceConfigs( google::cloud::cpp::compute::region_instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request) override; + StatusOr DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeletePerInstanceConfigsRequest const& request) override; + + future> + DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInstanceGroupManager( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -91,6 +149,17 @@ class RegionInstanceGroupManagersRestConnectionImpl google::cloud::cpp::compute::region_instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request) override; + StatusOr + InsertInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request) override; + + future> + InsertInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionInstanceGroupManagers( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -116,34 +185,103 @@ class RegionInstanceGroupManagersRestConnectionImpl google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request) override; + StatusOr + PatchInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request) override; + + future> + PatchInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PatchPerInstanceConfigs( google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request) override; + StatusOr PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request) override; + + future> + PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RecreateInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: RecreateInstancesRequest const& request) override; + StatusOr RecreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + RecreateInstancesRequest const& request) override; + + future> + RecreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Resize( google::cloud::cpp::compute::region_instance_group_managers::v1:: ResizeRequest const& request) override; + StatusOr Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + ResizeRequest const& request) override; + + future> Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetInstanceTemplate( google::cloud::cpp::compute::region_instance_group_managers::v1:: SetInstanceTemplateRequest const& request) override; + StatusOr SetInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + SetInstanceTemplateRequest const& request) override; + + future> + SetInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetTargetPools( google::cloud::cpp::compute::region_instance_group_managers::v1:: SetTargetPoolsRequest const& request) override; + StatusOr SetTargetPools( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + SetTargetPoolsRequest const& request) override; + + future> SetTargetPools( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdatePerInstanceConfigs( google::cloud::cpp::compute::region_instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request) override; + StatusOr UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + UpdatePerInstanceConfigsRequest const& request) override; + + future> + UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr diff --git a/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_tracing_connection.cc b/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_tracing_connection.cc index 7520953ae099a..85696dcd9a845 100644 --- a/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_tracing_connection.cc +++ b/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_tracing_connection.cc @@ -48,6 +48,33 @@ RegionInstanceGroupManagersTracingConnection::AbandonInstances( return internal::EndSpan(std::move(span), child_->AbandonInstances(request)); } +StatusOr +RegionInstanceGroupManagersTracingConnection::AbandonInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + AbandonInstancesRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::AbandonInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AbandonInstances(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceGroupManagersTracingConnection::AbandonInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::AbandonInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AbandonInstances(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionInstanceGroupManagersTracingConnection::ApplyUpdatesToInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -60,6 +87,33 @@ RegionInstanceGroupManagersTracingConnection::ApplyUpdatesToInstances( child_->ApplyUpdatesToInstances(request)); } +StatusOr +RegionInstanceGroupManagersTracingConnection::ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + ApplyUpdatesToInstancesRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::ApplyUpdatesToInstances"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ApplyUpdatesToInstances( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceGroupManagersTracingConnection::ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::ApplyUpdatesToInstances"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ApplyUpdatesToInstances( + google::cloud::ExperimentalTag{}, operation)); +} + future> RegionInstanceGroupManagersTracingConnection::CreateInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -71,6 +125,33 @@ RegionInstanceGroupManagersTracingConnection::CreateInstances( return internal::EndSpan(std::move(span), child_->CreateInstances(request)); } +StatusOr +RegionInstanceGroupManagersTracingConnection::CreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + CreateInstancesRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::CreateInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateInstances(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceGroupManagersTracingConnection::CreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::CreateInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateInstances(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionInstanceGroupManagersTracingConnection::DeleteInstanceGroupManager( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -83,6 +164,33 @@ RegionInstanceGroupManagersTracingConnection::DeleteInstanceGroupManager( child_->DeleteInstanceGroupManager(request)); } +StatusOr +RegionInstanceGroupManagersTracingConnection::DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeleteInstanceGroupManagerRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::DeleteInstanceGroupManager"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteInstanceGroupManager( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceGroupManagersTracingConnection::DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::DeleteInstanceGroupManager"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteInstanceGroupManager( + google::cloud::ExperimentalTag{}, operation)); +} + future> RegionInstanceGroupManagersTracingConnection::DeleteInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -94,6 +202,33 @@ RegionInstanceGroupManagersTracingConnection::DeleteInstances( return internal::EndSpan(std::move(span), child_->DeleteInstances(request)); } +StatusOr +RegionInstanceGroupManagersTracingConnection::DeleteInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeleteInstancesRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::DeleteInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteInstances(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceGroupManagersTracingConnection::DeleteInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::DeleteInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteInstances(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionInstanceGroupManagersTracingConnection::DeletePerInstanceConfigs( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -106,6 +241,33 @@ RegionInstanceGroupManagersTracingConnection::DeletePerInstanceConfigs( child_->DeletePerInstanceConfigs(request)); } +StatusOr +RegionInstanceGroupManagersTracingConnection::DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeletePerInstanceConfigsRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::DeletePerInstanceConfigs"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeletePerInstanceConfigs( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceGroupManagersTracingConnection::DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::DeletePerInstanceConfigs"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeletePerInstanceConfigs( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionInstanceGroupManagersTracingConnection::GetInstanceGroupManager( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -129,6 +291,33 @@ RegionInstanceGroupManagersTracingConnection::InsertInstanceGroupManager( child_->InsertInstanceGroupManager(request)); } +StatusOr +RegionInstanceGroupManagersTracingConnection::InsertInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::InsertInstanceGroupManager"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertInstanceGroupManager( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceGroupManagersTracingConnection::InsertInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::InsertInstanceGroupManager"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertInstanceGroupManager( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionInstanceGroupManagersTracingConnection::ListRegionInstanceGroupManagers( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -195,6 +384,33 @@ RegionInstanceGroupManagersTracingConnection::PatchInstanceGroupManager( child_->PatchInstanceGroupManager(request)); } +StatusOr +RegionInstanceGroupManagersTracingConnection::PatchInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::PatchInstanceGroupManager"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchInstanceGroupManager( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceGroupManagersTracingConnection::PatchInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::PatchInstanceGroupManager"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchInstanceGroupManager( + google::cloud::ExperimentalTag{}, operation)); +} + future> RegionInstanceGroupManagersTracingConnection::PatchPerInstanceConfigs( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -207,6 +423,33 @@ RegionInstanceGroupManagersTracingConnection::PatchPerInstanceConfigs( child_->PatchPerInstanceConfigs(request)); } +StatusOr +RegionInstanceGroupManagersTracingConnection::PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::PatchPerInstanceConfigs"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchPerInstanceConfigs( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceGroupManagersTracingConnection::PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::PatchPerInstanceConfigs"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchPerInstanceConfigs( + google::cloud::ExperimentalTag{}, operation)); +} + future> RegionInstanceGroupManagersTracingConnection::RecreateInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -218,6 +461,33 @@ RegionInstanceGroupManagersTracingConnection::RecreateInstances( return internal::EndSpan(std::move(span), child_->RecreateInstances(request)); } +StatusOr +RegionInstanceGroupManagersTracingConnection::RecreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + RecreateInstancesRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::RecreateInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RecreateInstances(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceGroupManagersTracingConnection::RecreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::RecreateInstances"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RecreateInstances(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionInstanceGroupManagersTracingConnection::Resize( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -229,6 +499,33 @@ RegionInstanceGroupManagersTracingConnection::Resize( return internal::EndSpan(std::move(span), child_->Resize(request)); } +StatusOr +RegionInstanceGroupManagersTracingConnection::Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + ResizeRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::Resize"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->Resize(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceGroupManagersTracingConnection::Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::Resize"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Resize(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionInstanceGroupManagersTracingConnection::SetInstanceTemplate( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -241,6 +538,33 @@ RegionInstanceGroupManagersTracingConnection::SetInstanceTemplate( child_->SetInstanceTemplate(request)); } +StatusOr +RegionInstanceGroupManagersTracingConnection::SetInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + SetInstanceTemplateRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::SetInstanceTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetInstanceTemplate(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceGroupManagersTracingConnection::SetInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::SetInstanceTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetInstanceTemplate(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionInstanceGroupManagersTracingConnection::SetTargetPools( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -252,6 +576,33 @@ RegionInstanceGroupManagersTracingConnection::SetTargetPools( return internal::EndSpan(std::move(span), child_->SetTargetPools(request)); } +StatusOr +RegionInstanceGroupManagersTracingConnection::SetTargetPools( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + SetTargetPoolsRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::SetTargetPools"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetTargetPools(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceGroupManagersTracingConnection::SetTargetPools( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::SetTargetPools"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetTargetPools(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionInstanceGroupManagersTracingConnection::UpdatePerInstanceConfigs( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -264,6 +615,33 @@ RegionInstanceGroupManagersTracingConnection::UpdatePerInstanceConfigs( child_->UpdatePerInstanceConfigs(request)); } +StatusOr +RegionInstanceGroupManagersTracingConnection::UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + UpdatePerInstanceConfigsRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::UpdatePerInstanceConfigs"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceGroupManagersTracingConnection::UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_group_managers_v1::" + "RegionInstanceGroupManagersConnection::UpdatePerInstanceConfigs"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr AbandonInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + AbandonInstancesRequest const& request) override; + + future> AbandonInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> ApplyUpdatesToInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request) override; + StatusOr ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + ApplyUpdatesToInstancesRequest const& request) override; + + future> + ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> CreateInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: CreateInstancesRequest const& request) override; + StatusOr CreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + CreateInstancesRequest const& request) override; + + future> CreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteInstanceGroupManager( google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request) override; + StatusOr + DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeleteInstanceGroupManagerRequest const& request) override; + + future> + DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstancesRequest const& request) override; + StatusOr DeleteInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeleteInstancesRequest const& request) override; + + future> DeleteInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeletePerInstanceConfigs( google::cloud::cpp::compute::region_instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request) override; + StatusOr DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeletePerInstanceConfigsRequest const& request) override; + + future> + DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInstanceGroupManager( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -81,6 +139,17 @@ class RegionInstanceGroupManagersTracingConnection google::cloud::cpp::compute::region_instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request) override; + StatusOr + InsertInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request) override; + + future> + InsertInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionInstanceGroupManagers( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -106,34 +175,103 @@ class RegionInstanceGroupManagersTracingConnection google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request) override; + StatusOr + PatchInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request) override; + + future> + PatchInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PatchPerInstanceConfigs( google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request) override; + StatusOr PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request) override; + + future> + PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RecreateInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: RecreateInstancesRequest const& request) override; + StatusOr RecreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + RecreateInstancesRequest const& request) override; + + future> + RecreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> Resize( google::cloud::cpp::compute::region_instance_group_managers::v1:: ResizeRequest const& request) override; + StatusOr Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + ResizeRequest const& request) override; + + future> Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetInstanceTemplate( google::cloud::cpp::compute::region_instance_group_managers::v1:: SetInstanceTemplateRequest const& request) override; + StatusOr SetInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + SetInstanceTemplateRequest const& request) override; + + future> + SetInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetTargetPools( google::cloud::cpp::compute::region_instance_group_managers::v1:: SetTargetPoolsRequest const& request) override; + StatusOr SetTargetPools( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + SetTargetPoolsRequest const& request) override; + + future> SetTargetPools( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdatePerInstanceConfigs( google::cloud::cpp::compute::region_instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request) override; + StatusOr UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + UpdatePerInstanceConfigsRequest const& request) override; + + future> + UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr diff --git a/google/cloud/compute/region_instance_group_managers/v1/mocks/mock_region_instance_group_managers_connection.h b/google/cloud/compute/region_instance_group_managers/v1/mocks/mock_region_instance_group_managers_connection.h index 5795ebf2f45d4..3930fb2870766 100644 --- a/google/cloud/compute/region_instance_group_managers/v1/mocks/mock_region_instance_group_managers_connection.h +++ b/google/cloud/compute/region_instance_group_managers/v1/mocks/mock_region_instance_group_managers_connection.h @@ -55,36 +55,114 @@ class MockRegionInstanceGroupManagersConnection AbandonInstancesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + AbandonInstances, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + AbandonInstancesRequest const& request), + (override)); + + MOCK_METHOD(future>, + AbandonInstances, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, ApplyUpdatesToInstances, (google::cloud::cpp::compute::region_instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + ApplyUpdatesToInstances, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + ApplyUpdatesToInstancesRequest const& request), + (override)); + + MOCK_METHOD(future>, + ApplyUpdatesToInstances, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, CreateInstances, (google::cloud::cpp::compute::region_instance_group_managers::v1:: CreateInstancesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + CreateInstances, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + CreateInstancesRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateInstances, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteInstanceGroupManager, (google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteInstanceGroupManager, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeleteInstanceGroupManagerRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInstanceGroupManager, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteInstances, (google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstancesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteInstances, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeleteInstancesRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInstances, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeletePerInstanceConfigs, (google::cloud::cpp::compute::region_instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeletePerInstanceConfigs, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeletePerInstanceConfigsRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeletePerInstanceConfigs, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetInstanceGroupManager, (google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -97,6 +175,19 @@ class MockRegionInstanceGroupManagersConnection InsertInstanceGroupManagerRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertInstanceGroupManager, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertInstanceGroupManager, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListRegionInstanceGroupManagers, @@ -130,41 +221,131 @@ class MockRegionInstanceGroupManagersConnection PatchInstanceGroupManagerRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchInstanceGroupManager, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchInstanceGroupManager, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, PatchPerInstanceConfigs, (google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchPerInstanceConfigs, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchPerInstanceConfigs, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, RecreateInstances, (google::cloud::cpp::compute::region_instance_group_managers::v1:: RecreateInstancesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + RecreateInstances, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + RecreateInstancesRequest const& request), + (override)); + + MOCK_METHOD(future>, + RecreateInstances, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, Resize, (google::cloud::cpp::compute::region_instance_group_managers::v1:: ResizeRequest const& request), (override)); + MOCK_METHOD(StatusOr, Resize, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + ResizeRequest const& request), + (override)); + + MOCK_METHOD(future>, + Resize, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetInstanceTemplate, (google::cloud::cpp::compute::region_instance_group_managers::v1:: SetInstanceTemplateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetInstanceTemplate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + SetInstanceTemplateRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetInstanceTemplate, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetTargetPools, (google::cloud::cpp::compute::region_instance_group_managers::v1:: SetTargetPoolsRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetTargetPools, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + SetTargetPoolsRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetTargetPools, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdatePerInstanceConfigs, (google::cloud::cpp::compute::region_instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + UpdatePerInstanceConfigs, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + UpdatePerInstanceConfigsRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdatePerInstanceConfigs, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection.cc b/google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection.cc index 8303377f2ebea..f72a6232b9b42 100644 --- a/google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection.cc +++ b/google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection.cc @@ -47,6 +47,24 @@ RegionInstanceGroupManagersConnection::AbandonInstances( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstanceGroupManagersConnection::AbandonInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + AbandonInstancesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceGroupManagersConnection::AbandonInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionInstanceGroupManagersConnection::ApplyUpdatesToInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -56,6 +74,24 @@ RegionInstanceGroupManagersConnection::ApplyUpdatesToInstances( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstanceGroupManagersConnection::ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + ApplyUpdatesToInstancesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceGroupManagersConnection::ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionInstanceGroupManagersConnection::CreateInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -65,6 +101,24 @@ RegionInstanceGroupManagersConnection::CreateInstances( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstanceGroupManagersConnection::CreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + CreateInstancesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceGroupManagersConnection::CreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionInstanceGroupManagersConnection::DeleteInstanceGroupManager( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -74,6 +128,24 @@ RegionInstanceGroupManagersConnection::DeleteInstanceGroupManager( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstanceGroupManagersConnection::DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeleteInstanceGroupManagerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceGroupManagersConnection::DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionInstanceGroupManagersConnection::DeleteInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -83,6 +155,24 @@ RegionInstanceGroupManagersConnection::DeleteInstances( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstanceGroupManagersConnection::DeleteInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeleteInstancesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceGroupManagersConnection::DeleteInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionInstanceGroupManagersConnection::DeletePerInstanceConfigs( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -92,6 +182,24 @@ RegionInstanceGroupManagersConnection::DeletePerInstanceConfigs( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstanceGroupManagersConnection::DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeletePerInstanceConfigsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceGroupManagersConnection::DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionInstanceGroupManagersConnection::GetInstanceGroupManager( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -108,6 +216,24 @@ RegionInstanceGroupManagersConnection::InsertInstanceGroupManager( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstanceGroupManagersConnection::InsertInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceGroupManagersConnection::InsertInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionInstanceGroupManagersConnection::ListRegionInstanceGroupManagers( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -149,6 +275,24 @@ RegionInstanceGroupManagersConnection::PatchInstanceGroupManager( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstanceGroupManagersConnection::PatchInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceGroupManagersConnection::PatchInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionInstanceGroupManagersConnection::PatchPerInstanceConfigs( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -158,6 +302,24 @@ RegionInstanceGroupManagersConnection::PatchPerInstanceConfigs( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstanceGroupManagersConnection::PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceGroupManagersConnection::PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionInstanceGroupManagersConnection::RecreateInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -167,6 +329,24 @@ RegionInstanceGroupManagersConnection::RecreateInstances( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstanceGroupManagersConnection::RecreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + RecreateInstancesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceGroupManagersConnection::RecreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionInstanceGroupManagersConnection::Resize( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -176,6 +356,24 @@ RegionInstanceGroupManagersConnection::Resize( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstanceGroupManagersConnection::Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + ResizeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceGroupManagersConnection::Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionInstanceGroupManagersConnection::SetInstanceTemplate( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -185,6 +383,24 @@ RegionInstanceGroupManagersConnection::SetInstanceTemplate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstanceGroupManagersConnection::SetInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + SetInstanceTemplateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceGroupManagersConnection::SetInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionInstanceGroupManagersConnection::SetTargetPools( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -194,10 +410,46 @@ RegionInstanceGroupManagersConnection::SetTargetPools( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstanceGroupManagersConnection::SetTargetPools( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + SetTargetPoolsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +RegionInstanceGroupManagersConnection::SetTargetPools( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceGroupManagersConnection::UpdatePerInstanceConfigs( + google::cloud::cpp::compute::region_instance_group_managers::v1:: + UpdatePerInstanceConfigsRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr RegionInstanceGroupManagersConnection::UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceGroupManagersConnection::UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection.h b/google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection.h index fd9fb8f6f6c3d..9295b3e6f1728 100644 --- a/google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection.h +++ b/google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_retry_traits.h" #include "google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -208,29 +210,89 @@ class RegionInstanceGroupManagersConnection { AbandonInstances(google::cloud::cpp::compute::region_instance_group_managers:: v1::AbandonInstancesRequest const& request); + virtual StatusOr AbandonInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + AbandonInstancesRequest const& request); + + virtual future> + AbandonInstances(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> ApplyUpdatesToInstances( google::cloud::cpp::compute::region_instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request); + virtual StatusOr + ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + ApplyUpdatesToInstancesRequest const& request); + + virtual future> + ApplyUpdatesToInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> CreateInstances(google::cloud::cpp::compute::region_instance_group_managers:: v1::CreateInstancesRequest const& request); + virtual StatusOr CreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + CreateInstancesRequest const& request); + virtual future> + CreateInstances(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + + virtual future> + DeleteInstanceGroupManager( + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeleteInstanceGroupManagerRequest const& request); + + virtual StatusOr DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request); + virtual future> + DeleteInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteInstances(google::cloud::cpp::compute::region_instance_group_managers:: v1::DeleteInstancesRequest const& request); + virtual StatusOr DeleteInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeleteInstancesRequest const& request); + + virtual future> + DeleteInstances(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeletePerInstanceConfigs( google::cloud::cpp::compute::region_instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request); + virtual StatusOr + DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + DeletePerInstanceConfigsRequest const& request); + + virtual future> + DeletePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetInstanceGroupManager( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -241,6 +303,17 @@ class RegionInstanceGroupManagersConnection { google::cloud::cpp::compute::region_instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request); + virtual StatusOr + InsertInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + InsertInstanceGroupManagerRequest const& request); + + virtual future> + InsertInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionInstanceGroupManagers( google::cloud::cpp::compute::region_instance_group_managers::v1:: @@ -267,33 +340,106 @@ class RegionInstanceGroupManagersConnection { google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request); + virtual StatusOr + PatchInstanceGroupManager( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchInstanceGroupManagerRequest const& request); + + virtual future> + PatchInstanceGroupManager( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> PatchPerInstanceConfigs( google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request); + virtual StatusOr + PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + PatchPerInstanceConfigsRequest const& request); + virtual future> + PatchPerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + + virtual future> + RecreateInstances( + google::cloud::cpp::compute::region_instance_group_managers::v1:: + RecreateInstancesRequest const& request); + + virtual StatusOr RecreateInstances( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: RecreateInstancesRequest const& request); + virtual future> + RecreateInstances( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> Resize( google::cloud::cpp::compute::region_instance_group_managers::v1:: ResizeRequest const& request); + virtual StatusOr Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + ResizeRequest const& request); + + virtual future> Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetInstanceTemplate( google::cloud::cpp::compute::region_instance_group_managers::v1:: SetInstanceTemplateRequest const& request); + virtual StatusOr + SetInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + SetInstanceTemplateRequest const& request); + + virtual future> + SetInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetTargetPools(google::cloud::cpp::compute::region_instance_group_managers:: v1::SetTargetPoolsRequest const& request); + virtual StatusOr SetTargetPools( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + SetTargetPoolsRequest const& request); + + virtual future> + SetTargetPools(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> UpdatePerInstanceConfigs( google::cloud::cpp::compute::region_instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request); + + virtual StatusOr + UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_group_managers::v1:: + UpdatePerInstanceConfigsRequest const& request); + + virtual future> + UpdatePerInstanceConfigs( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_rest_connection_impl.cc b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_rest_connection_impl.cc index 3dda36349679b..f536ec948559a 100644 --- a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_rest_connection_impl.cc +++ b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -199,6 +200,79 @@ RegionInstanceGroupsRestConnectionImpl::SetNamedPorts( }); } +StatusOr +RegionInstanceGroupsRestConnectionImpl::SetNamedPorts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_groups::v1:: + SetNamedPortsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetNamedPorts(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_groups::v1:: + SetNamedPortsRequest const& request) { + return stub_->SetNamedPorts(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionInstanceGroupsRestConnectionImpl::SetNamedPorts( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_instance_groups_v1_internal } // namespace cloud diff --git a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_rest_connection_impl.h b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_rest_connection_impl.h index b8d393713b7b1..60a1b1a896b24 100644 --- a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_rest_connection_impl.h +++ b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_rest_connection_impl.h @@ -70,6 +70,15 @@ class RegionInstanceGroupsRestConnectionImpl google::cloud::cpp::compute::region_instance_groups::v1:: SetNamedPortsRequest const& request) override; + StatusOr SetNamedPorts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_groups::v1:: + SetNamedPortsRequest const& request) override; + + future> SetNamedPorts( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_region_instance_groups_v1::RegionInstanceGroupsRetryPolicy> diff --git a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.cc b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.cc index 5015efcfebbf5..1c1357bf9f9f7 100644 --- a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.cc +++ b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.cc @@ -86,6 +86,33 @@ RegionInstanceGroupsTracingConnection::SetNamedPorts( return internal::EndSpan(std::move(span), child_->SetNamedPorts(request)); } +StatusOr +RegionInstanceGroupsTracingConnection::SetNamedPorts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_groups::v1:: + SetNamedPortsRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_groups_v1::RegionInstanceGroupsConnection::" + "SetNamedPorts"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetNamedPorts(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceGroupsTracingConnection::SetNamedPorts( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_groups_v1::RegionInstanceGroupsConnection::" + "SetNamedPorts"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetNamedPorts(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr< diff --git a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.h b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.h index ce4f164f47ebf..89cd856368ab7 100644 --- a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.h +++ b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.h @@ -60,6 +60,15 @@ class RegionInstanceGroupsTracingConnection google::cloud::cpp::compute::region_instance_groups::v1:: SetNamedPortsRequest const& request) override; + StatusOr SetNamedPorts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_groups::v1:: + SetNamedPortsRequest const& request) override; + + future> SetNamedPorts( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr< compute_region_instance_groups_v1::RegionInstanceGroupsConnection> diff --git a/google/cloud/compute/region_instance_groups/v1/mocks/mock_region_instance_groups_connection.h b/google/cloud/compute/region_instance_groups/v1/mocks/mock_region_instance_groups_connection.h index 033b452cde7e2..54049e7077597 100644 --- a/google/cloud/compute/region_instance_groups/v1/mocks/mock_region_instance_groups_connection.h +++ b/google/cloud/compute/region_instance_groups/v1/mocks/mock_region_instance_groups_connection.h @@ -72,6 +72,19 @@ class MockRegionInstanceGroupsConnection (google::cloud::cpp::compute::region_instance_groups::v1:: SetNamedPortsRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + SetNamedPorts, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_groups::v1:: + SetNamedPortsRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetNamedPorts, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection.cc b/google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection.cc index a5d08c7421195..0b7d0ee16ef79 100644 --- a/google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection.cc +++ b/google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection.cc @@ -69,6 +69,24 @@ RegionInstanceGroupsConnection::SetNamedPorts( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstanceGroupsConnection::SetNamedPorts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_groups::v1:: + SetNamedPortsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceGroupsConnection::SetNamedPorts( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_instance_groups_v1 } // namespace cloud diff --git a/google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection.h b/google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection.h index 7b274e6f36337..25cdbb6669893 100644 --- a/google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection.h +++ b/google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_retry_traits.h" #include "google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -207,6 +209,15 @@ class RegionInstanceGroupsConnection { virtual future> SetNamedPorts(google::cloud::cpp::compute::region_instance_groups::v1:: SetNamedPortsRequest const& request); + + virtual StatusOr SetNamedPorts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_groups::v1:: + SetNamedPortsRequest const& request); + + virtual future> + SetNamedPorts(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_rest_connection_impl.cc b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_rest_connection_impl.cc index c57a29a564be0..5c65612f22a0b 100644 --- a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_rest_connection_impl.cc +++ b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -106,6 +107,79 @@ RegionInstanceTemplatesRestConnectionImpl::DeleteInstanceTemplate( }); } +StatusOr +RegionInstanceTemplatesRestConnectionImpl::DeleteInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_templates::v1:: + DeleteInstanceTemplateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstanceTemplate(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_templates::v1:: + DeleteInstanceTemplateRequest const& request) { + return stub_->DeleteInstanceTemplate(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionInstanceTemplatesRestConnectionImpl::DeleteInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionInstanceTemplatesRestConnectionImpl::GetInstanceTemplate( google::cloud::cpp::compute::region_instance_templates::v1:: @@ -182,6 +256,79 @@ RegionInstanceTemplatesRestConnectionImpl::InsertInstanceTemplate( }); } +StatusOr +RegionInstanceTemplatesRestConnectionImpl::InsertInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_templates::v1:: + InsertInstanceTemplateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertInstanceTemplate(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instance_templates::v1:: + InsertInstanceTemplateRequest const& request) { + return stub_->InsertInstanceTemplate(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionInstanceTemplatesRestConnectionImpl::InsertInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionInstanceTemplatesRestConnectionImpl::ListRegionInstanceTemplates( google::cloud::cpp::compute::region_instance_templates::v1:: diff --git a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_rest_connection_impl.h b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_rest_connection_impl.h index ba43721ead203..7696208178150 100644 --- a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_rest_connection_impl.h +++ b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_rest_connection_impl.h @@ -59,6 +59,16 @@ class RegionInstanceTemplatesRestConnectionImpl google::cloud::cpp::compute::region_instance_templates::v1:: DeleteInstanceTemplateRequest const& request) override; + StatusOr DeleteInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_templates::v1:: + DeleteInstanceTemplateRequest const& request) override; + + future> + DeleteInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInstanceTemplate( google::cloud::cpp::compute::region_instance_templates::v1:: @@ -69,6 +79,16 @@ class RegionInstanceTemplatesRestConnectionImpl google::cloud::cpp::compute::region_instance_templates::v1:: InsertInstanceTemplateRequest const& request) override; + StatusOr InsertInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_templates::v1:: + InsertInstanceTemplateRequest const& request) override; + + future> + InsertInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionInstanceTemplates( google::cloud::cpp::compute::region_instance_templates::v1:: diff --git a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.cc b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.cc index d2944636839bd..9c899933b0371 100644 --- a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.cc +++ b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.cc @@ -49,6 +49,33 @@ RegionInstanceTemplatesTracingConnection::DeleteInstanceTemplate( child_->DeleteInstanceTemplate(request)); } +StatusOr +RegionInstanceTemplatesTracingConnection::DeleteInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_templates::v1:: + DeleteInstanceTemplateRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_templates_v1::RegionInstanceTemplatesConnection:" + ":DeleteInstanceTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteInstanceTemplate( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceTemplatesTracingConnection::DeleteInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_templates_v1::RegionInstanceTemplatesConnection:" + ":DeleteInstanceTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteInstanceTemplate( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionInstanceTemplatesTracingConnection::GetInstanceTemplate( google::cloud::cpp::compute::region_instance_templates::v1:: @@ -72,6 +99,33 @@ RegionInstanceTemplatesTracingConnection::InsertInstanceTemplate( child_->InsertInstanceTemplate(request)); } +StatusOr +RegionInstanceTemplatesTracingConnection::InsertInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_templates::v1:: + InsertInstanceTemplateRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_instance_templates_v1::RegionInstanceTemplatesConnection:" + ":InsertInstanceTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertInstanceTemplate( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstanceTemplatesTracingConnection::InsertInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instance_templates_v1::RegionInstanceTemplatesConnection:" + ":InsertInstanceTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertInstanceTemplate( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionInstanceTemplatesTracingConnection::ListRegionInstanceTemplates( google::cloud::cpp::compute::region_instance_templates::v1:: diff --git a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.h b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.h index e5b2eeb5ad0af..59404763c1dba 100644 --- a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.h +++ b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.h @@ -49,6 +49,16 @@ class RegionInstanceTemplatesTracingConnection google::cloud::cpp::compute::region_instance_templates::v1:: DeleteInstanceTemplateRequest const& request) override; + StatusOr DeleteInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_templates::v1:: + DeleteInstanceTemplateRequest const& request) override; + + future> + DeleteInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetInstanceTemplate( google::cloud::cpp::compute::region_instance_templates::v1:: @@ -59,6 +69,16 @@ class RegionInstanceTemplatesTracingConnection google::cloud::cpp::compute::region_instance_templates::v1:: InsertInstanceTemplateRequest const& request) override; + StatusOr InsertInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_templates::v1:: + InsertInstanceTemplateRequest const& request) override; + + future> + InsertInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionInstanceTemplates( google::cloud::cpp::compute::region_instance_templates::v1:: diff --git a/google/cloud/compute/region_instance_templates/v1/mocks/mock_region_instance_templates_connection.h b/google/cloud/compute/region_instance_templates/v1/mocks/mock_region_instance_templates_connection.h index a74e94841aa15..eb39a51247448 100644 --- a/google/cloud/compute/region_instance_templates/v1/mocks/mock_region_instance_templates_connection.h +++ b/google/cloud/compute/region_instance_templates/v1/mocks/mock_region_instance_templates_connection.h @@ -55,6 +55,19 @@ class MockRegionInstanceTemplatesConnection DeleteInstanceTemplateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteInstanceTemplate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_templates::v1:: + DeleteInstanceTemplateRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInstanceTemplate, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetInstanceTemplate, (google::cloud::cpp::compute::region_instance_templates::v1:: @@ -67,6 +80,19 @@ class MockRegionInstanceTemplatesConnection InsertInstanceTemplateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertInstanceTemplate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_templates::v1:: + InsertInstanceTemplateRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertInstanceTemplate, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRegionInstanceTemplates, (google::cloud::cpp::compute::region_instance_templates::v1:: diff --git a/google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection.cc b/google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection.cc index 32264dc3d2e52..3c791a54f383e 100644 --- a/google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection.cc +++ b/google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection.cc @@ -47,6 +47,24 @@ RegionInstanceTemplatesConnection::DeleteInstanceTemplate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstanceTemplatesConnection::DeleteInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_templates::v1:: + DeleteInstanceTemplateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceTemplatesConnection::DeleteInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionInstanceTemplatesConnection::GetInstanceTemplate( google::cloud::cpp::compute::region_instance_templates::v1:: @@ -63,6 +81,24 @@ RegionInstanceTemplatesConnection::InsertInstanceTemplate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstanceTemplatesConnection::InsertInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_templates::v1:: + InsertInstanceTemplateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstanceTemplatesConnection::InsertInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionInstanceTemplatesConnection::ListRegionInstanceTemplates( google::cloud::cpp::compute::region_instance_templates::v1:: diff --git a/google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection.h b/google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection.h index 1acc0f46ed83d..7bf3ea97f8a1d 100644 --- a/google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection.h +++ b/google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_retry_traits.h" #include "google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -200,6 +202,17 @@ class RegionInstanceTemplatesConnection { google::cloud::cpp::compute::region_instance_templates::v1:: DeleteInstanceTemplateRequest const& request); + virtual StatusOr + DeleteInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_templates::v1:: + DeleteInstanceTemplateRequest const& request); + + virtual future> + DeleteInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetInstanceTemplate(google::cloud::cpp::compute::region_instance_templates:: v1::GetInstanceTemplateRequest const& request); @@ -209,6 +222,17 @@ class RegionInstanceTemplatesConnection { google::cloud::cpp::compute::region_instance_templates::v1:: InsertInstanceTemplateRequest const& request); + virtual StatusOr + InsertInstanceTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instance_templates::v1:: + InsertInstanceTemplateRequest const& request); + + virtual future> + InsertInstanceTemplate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionInstanceTemplates( google::cloud::cpp::compute::region_instance_templates::v1:: diff --git a/google/cloud/compute/region_instances/v1/internal/region_instances_rest_connection_impl.cc b/google/cloud/compute/region_instances/v1/internal/region_instances_rest_connection_impl.cc index f757e87ca33a5..3b9632b3ac8fb 100644 --- a/google/cloud/compute/region_instances/v1/internal/region_instances_rest_connection_impl.cc +++ b/google/cloud/compute/region_instances/v1/internal/region_instances_rest_connection_impl.cc @@ -22,6 +22,7 @@ #include "google/cloud/credentials.h" #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -103,6 +104,79 @@ RegionInstancesRestConnectionImpl::BulkInsert( }); } +StatusOr +RegionInstancesRestConnectionImpl::BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instances::v1::BulkInsertRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BulkInsert(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_instances::v1:: + BulkInsertRequest const& request) { + return stub_->BulkInsert(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionInstancesRestConnectionImpl::BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_instances_v1_internal } // namespace cloud diff --git a/google/cloud/compute/region_instances/v1/internal/region_instances_rest_connection_impl.h b/google/cloud/compute/region_instances/v1/internal/region_instances_rest_connection_impl.h index 8d21358216aef..fd5940803c3e3 100644 --- a/google/cloud/compute/region_instances/v1/internal/region_instances_rest_connection_impl.h +++ b/google/cloud/compute/region_instances/v1/internal/region_instances_rest_connection_impl.h @@ -55,6 +55,15 @@ class RegionInstancesRestConnectionImpl google::cloud::cpp::compute::region_instances::v1:: BulkInsertRequest const& request) override; + StatusOr BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instances::v1:: + BulkInsertRequest const& request) override; + + future> BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_region_instances_v1::RegionInstancesRetryPolicy> diff --git a/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.cc b/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.cc index f4d3115ea4358..7891ba1290c28 100644 --- a/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.cc +++ b/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.cc @@ -43,6 +43,31 @@ RegionInstancesTracingConnection::BulkInsert( return internal::EndSpan(std::move(span), child_->BulkInsert(request)); } +StatusOr +RegionInstancesTracingConnection::BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instances::v1::BulkInsertRequest const& + request) { + auto span = internal::MakeSpan( + "compute_region_instances_v1::RegionInstancesConnection::BulkInsert"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BulkInsert(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionInstancesTracingConnection::BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_instances_v1::RegionInstancesConnection::BulkInsert"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BulkInsert(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.h b/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.h index 2b23defc7c638..8b55f01f5f320 100644 --- a/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.h +++ b/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.h @@ -45,6 +45,15 @@ class RegionInstancesTracingConnection google::cloud::cpp::compute::region_instances::v1:: BulkInsertRequest const& request) override; + StatusOr BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instances::v1:: + BulkInsertRequest const& request) override; + + future> BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/region_instances/v1/mocks/mock_region_instances_connection.h b/google/cloud/compute/region_instances/v1/mocks/mock_region_instances_connection.h index db43de5c72bdb..8a7603e83740e 100644 --- a/google/cloud/compute/region_instances/v1/mocks/mock_region_instances_connection.h +++ b/google/cloud/compute/region_instances/v1/mocks/mock_region_instances_connection.h @@ -52,6 +52,18 @@ class MockRegionInstancesConnection (google::cloud::cpp::compute::region_instances::v1:: BulkInsertRequest const& request), (override)); + + MOCK_METHOD(StatusOr, BulkInsert, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instances::v1:: + BulkInsertRequest const& request), + (override)); + + MOCK_METHOD(future>, + BulkInsert, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_instances/v1/region_instances_connection.cc b/google/cloud/compute/region_instances/v1/region_instances_connection.cc index 37194090ab079..82730439fcd37 100644 --- a/google/cloud/compute/region_instances/v1/region_instances_connection.cc +++ b/google/cloud/compute/region_instances/v1/region_instances_connection.cc @@ -44,6 +44,24 @@ RegionInstancesConnection::BulkInsert( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionInstancesConnection::BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instances::v1:: + BulkInsertRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionInstancesConnection::BulkInsert( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_instances_v1 } // namespace cloud diff --git a/google/cloud/compute/region_instances/v1/region_instances_connection.h b/google/cloud/compute/region_instances/v1/region_instances_connection.h index c6a1f60a0b47f..82591e2348cd0 100644 --- a/google/cloud/compute/region_instances/v1/region_instances_connection.h +++ b/google/cloud/compute/region_instances/v1/region_instances_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/region_instances/v1/internal/region_instances_retry_traits.h" #include "google/cloud/compute/region_instances/v1/region_instances_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -188,6 +190,15 @@ class RegionInstancesConnection { virtual future> BulkInsert(google::cloud::cpp::compute::region_instances::v1:: BulkInsertRequest const& request); + + virtual StatusOr BulkInsert( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_instances::v1:: + BulkInsertRequest const& request); + + virtual future> + BulkInsert(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_rest_connection_impl.cc b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_rest_connection_impl.cc index a4b76fc64c492..affe79f2b4a33 100644 --- a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_rest_connection_impl.cc +++ b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -108,6 +109,79 @@ RegionNetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( }); } +StatusOr +RegionNetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AttachNetworkEndpoints(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request) { + return stub_->AttachNetworkEndpoints(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionNetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionNetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: @@ -169,6 +243,80 @@ RegionNetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( }); } +StatusOr +RegionNetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNetworkEndpointGroup(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request) { + return stub_->DeleteNetworkEndpointGroup(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +RegionNetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionNetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: @@ -230,6 +378,79 @@ RegionNetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( }); } +StatusOr +RegionNetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DetachNetworkEndpoints(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request) { + return stub_->DetachNetworkEndpoints(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionNetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionNetworkEndpointGroupsRestConnectionImpl::GetNetworkEndpointGroup( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: @@ -307,6 +528,80 @@ RegionNetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( }); } +StatusOr +RegionNetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertNetworkEndpointGroup(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request) { + return stub_->InsertNetworkEndpointGroup(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +RegionNetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionNetworkEndpointGroupsRestConnectionImpl::ListRegionNetworkEndpointGroups( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: diff --git a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_rest_connection_impl.h b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_rest_connection_impl.h index a7f86e05d113a..55849a6192039 100644 --- a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_rest_connection_impl.h +++ b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_rest_connection_impl.h @@ -59,16 +59,47 @@ class RegionNetworkEndpointGroupsRestConnectionImpl google::cloud::cpp::compute::region_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) override; + StatusOr AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request) override; + + future> + AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteNetworkEndpointGroup( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) override; + StatusOr + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request) override; + + future> + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DetachNetworkEndpoints( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) override; + StatusOr DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request) override; + + future> + DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNetworkEndpointGroup( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: @@ -79,6 +110,17 @@ class RegionNetworkEndpointGroupsRestConnectionImpl google::cloud::cpp::compute::region_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) override; + StatusOr + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request) override; + + future> + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionNetworkEndpointGroups( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: diff --git a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.cc b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.cc index 8d8fa5c3a6b3a..bfcc84f7dc70b 100644 --- a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.cc +++ b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.cc @@ -49,6 +49,33 @@ RegionNetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( child_->AttachNetworkEndpoints(request)); } +StatusOr +RegionNetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_network_endpoint_groups_v1::" + "RegionNetworkEndpointGroupsConnection::AttachNetworkEndpoints"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->AttachNetworkEndpoints( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionNetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_network_endpoint_groups_v1::" + "RegionNetworkEndpointGroupsConnection::AttachNetworkEndpoints"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->AttachNetworkEndpoints( + google::cloud::ExperimentalTag{}, operation)); +} + future> RegionNetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: @@ -61,6 +88,33 @@ RegionNetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( child_->DeleteNetworkEndpointGroup(request)); } +StatusOr +RegionNetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_network_endpoint_groups_v1::" + "RegionNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionNetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_network_endpoint_groups_v1::" + "RegionNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag{}, operation)); +} + future> RegionNetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: @@ -73,6 +127,33 @@ RegionNetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( child_->DetachNetworkEndpoints(request)); } +StatusOr +RegionNetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_network_endpoint_groups_v1::" + "RegionNetworkEndpointGroupsConnection::DetachNetworkEndpoints"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DetachNetworkEndpoints( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionNetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_network_endpoint_groups_v1::" + "RegionNetworkEndpointGroupsConnection::DetachNetworkEndpoints"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DetachNetworkEndpoints( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionNetworkEndpointGroupsTracingConnection::GetNetworkEndpointGroup( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: @@ -96,6 +177,33 @@ RegionNetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( child_->InsertNetworkEndpointGroup(request)); } +StatusOr +RegionNetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_network_endpoint_groups_v1::" + "RegionNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionNetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_network_endpoint_groups_v1::" + "RegionNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionNetworkEndpointGroupsTracingConnection::ListRegionNetworkEndpointGroups( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: diff --git a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.h b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.h index 15384dd825db4..034c329f1f20f 100644 --- a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.h +++ b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.h @@ -49,16 +49,47 @@ class RegionNetworkEndpointGroupsTracingConnection google::cloud::cpp::compute::region_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) override; + StatusOr AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request) override; + + future> + AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteNetworkEndpointGroup( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) override; + StatusOr + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request) override; + + future> + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DetachNetworkEndpoints( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) override; + StatusOr DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request) override; + + future> + DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNetworkEndpointGroup( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: @@ -69,6 +100,17 @@ class RegionNetworkEndpointGroupsTracingConnection google::cloud::cpp::compute::region_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) override; + StatusOr + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request) override; + + future> + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionNetworkEndpointGroups( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: diff --git a/google/cloud/compute/region_network_endpoint_groups/v1/mocks/mock_region_network_endpoint_groups_connection.h b/google/cloud/compute/region_network_endpoint_groups/v1/mocks/mock_region_network_endpoint_groups_connection.h index b4b79aaa7790c..63e2951fee316 100644 --- a/google/cloud/compute/region_network_endpoint_groups/v1/mocks/mock_region_network_endpoint_groups_connection.h +++ b/google/cloud/compute/region_network_endpoint_groups/v1/mocks/mock_region_network_endpoint_groups_connection.h @@ -55,18 +55,57 @@ class MockRegionNetworkEndpointGroupsConnection AttachNetworkEndpointsRequest const& request), (override)); + MOCK_METHOD(StatusOr, + AttachNetworkEndpoints, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request), + (override)); + + MOCK_METHOD(future>, + AttachNetworkEndpoints, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteNetworkEndpointGroup, (google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteNetworkEndpointGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteNetworkEndpointGroup, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DetachNetworkEndpoints, (google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DetachNetworkEndpoints, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request), + (override)); + + MOCK_METHOD(future>, + DetachNetworkEndpoints, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetNetworkEndpointGroup, (google::cloud::cpp::compute::region_network_endpoint_groups::v1:: @@ -79,6 +118,19 @@ class MockRegionNetworkEndpointGroupsConnection InsertNetworkEndpointGroupRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertNetworkEndpointGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertNetworkEndpointGroup, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListRegionNetworkEndpointGroups, diff --git a/google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection.cc b/google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection.cc index 5230129eb8dcb..e3db52f8ed979 100644 --- a/google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection.cc +++ b/google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection.cc @@ -47,6 +47,24 @@ RegionNetworkEndpointGroupsConnection::AttachNetworkEndpoints( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionNetworkEndpointGroupsConnection::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionNetworkEndpointGroupsConnection::AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: @@ -56,6 +74,24 @@ RegionNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionNetworkEndpointGroupsConnection::DetachNetworkEndpoints( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: @@ -65,6 +101,24 @@ RegionNetworkEndpointGroupsConnection::DetachNetworkEndpoints( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionNetworkEndpointGroupsConnection::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionNetworkEndpointGroupsConnection::DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionNetworkEndpointGroupsConnection::GetNetworkEndpointGroup( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: @@ -81,6 +135,24 @@ RegionNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionNetworkEndpointGroupsConnection::ListRegionNetworkEndpointGroups( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: diff --git a/google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection.h b/google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection.h index ca7554c31c332..50e51bf84675b 100644 --- a/google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection.h +++ b/google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_retry_traits.h" #include "google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -209,16 +211,49 @@ class RegionNetworkEndpointGroupsConnection { google::cloud::cpp::compute::region_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request); + virtual StatusOr + AttachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + AttachNetworkEndpointsRequest const& request); + + virtual future> + AttachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteNetworkEndpointGroup( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request); + virtual StatusOr + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + DeleteNetworkEndpointGroupRequest const& request); + + virtual future> + DeleteNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DetachNetworkEndpoints( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request); + virtual StatusOr + DetachNetworkEndpoints( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + DetachNetworkEndpointsRequest const& request); + + virtual future> + DetachNetworkEndpoints( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetNetworkEndpointGroup( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: @@ -229,6 +264,17 @@ class RegionNetworkEndpointGroupsConnection { google::cloud::cpp::compute::region_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request); + virtual StatusOr + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_endpoint_groups::v1:: + InsertNetworkEndpointGroupRequest const& request); + + virtual future> + InsertNetworkEndpointGroup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionNetworkEndpointGroups( google::cloud::cpp::compute::region_network_endpoint_groups::v1:: diff --git a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_rest_connection_impl.cc b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_rest_connection_impl.cc index df6400a2a5a20..1f75ced954bdc 100644 --- a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_rest_connection_impl.cc +++ b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -108,6 +109,79 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::AddAssociation( }); } +StatusOr +RegionNetworkFirewallPoliciesRestConnectionImpl::AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + AddAssociationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddAssociation(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + AddAssociationRequest const& request) { + return stub_->AddAssociation(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionNetworkFirewallPoliciesRestConnectionImpl::AddAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionNetworkFirewallPoliciesRestConnectionImpl::AddRule( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -169,6 +243,79 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::AddRule( }); } +StatusOr +RegionNetworkFirewallPoliciesRestConnectionImpl::AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + AddRuleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + AddRuleRequest const& request) { + return stub_->AddRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionNetworkFirewallPoliciesRestConnectionImpl::AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionNetworkFirewallPoliciesRestConnectionImpl::CloneRules( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -230,6 +377,79 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::CloneRules( }); } +StatusOr +RegionNetworkFirewallPoliciesRestConnectionImpl::CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + CloneRulesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CloneRules(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + CloneRulesRequest const& request) { + return stub_->CloneRules(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionNetworkFirewallPoliciesRestConnectionImpl::CloneRules( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionNetworkFirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -291,6 +511,79 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( }); } +StatusOr +RegionNetworkFirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteFirewallPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request) { + return stub_->DeleteFirewallPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionNetworkFirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionNetworkFirewallPoliciesRestConnectionImpl::GetFirewallPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -433,6 +726,79 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( }); } +StatusOr +RegionNetworkFirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + InsertFirewallPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertFirewallPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + InsertFirewallPolicyRequest const& request) { + return stub_->InsertFirewallPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionNetworkFirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionNetworkFirewallPoliciesRestConnectionImpl:: ListRegionNetworkFirewallPolicies( @@ -537,6 +903,79 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( }); } +StatusOr +RegionNetworkFirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + PatchFirewallPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchFirewallPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + PatchFirewallPolicyRequest const& request) { + return stub_->PatchFirewallPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionNetworkFirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionNetworkFirewallPoliciesRestConnectionImpl::PatchRule( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -598,6 +1037,79 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::PatchRule( }); } +StatusOr +RegionNetworkFirewallPoliciesRestConnectionImpl::PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + PatchRuleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + PatchRuleRequest const& request) { + return stub_->PatchRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionNetworkFirewallPoliciesRestConnectionImpl::PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionNetworkFirewallPoliciesRestConnectionImpl::RemoveAssociation( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -659,6 +1171,79 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::RemoveAssociation( }); } +StatusOr +RegionNetworkFirewallPoliciesRestConnectionImpl::RemoveAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + RemoveAssociationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveAssociation(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + RemoveAssociationRequest const& request) { + return stub_->RemoveAssociation(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionNetworkFirewallPoliciesRestConnectionImpl::RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionNetworkFirewallPoliciesRestConnectionImpl::RemoveRule( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -720,6 +1305,79 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::RemoveRule( }); } +StatusOr +RegionNetworkFirewallPoliciesRestConnectionImpl::RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + RemoveRuleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + RemoveRuleRequest const& request) { + return stub_->RemoveRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionNetworkFirewallPoliciesRestConnectionImpl::RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionNetworkFirewallPoliciesRestConnectionImpl::SetIamPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: diff --git a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_rest_connection_impl.h b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_rest_connection_impl.h index 91c4ed8281543..35137d001bbbb 100644 --- a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_rest_connection_impl.h +++ b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_rest_connection_impl.h @@ -58,19 +58,56 @@ class RegionNetworkFirewallPoliciesRestConnectionImpl google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddAssociationRequest const& request) override; + StatusOr AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + AddAssociationRequest const& request) override; + + future> AddAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> AddRule( google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddRuleRequest const& request) override; + StatusOr AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + AddRuleRequest const& request) override; + + future> AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> CloneRules( google::cloud::cpp::compute::region_network_firewall_policies::v1:: CloneRulesRequest const& request) override; + StatusOr CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + CloneRulesRequest const& request) override; + + future> CloneRules( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteFirewallPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) override; + StatusOr DeleteFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request) override; + + future> + DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetFirewallPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: GetFirewallPolicyRequest const& request) override; @@ -98,6 +135,16 @@ class RegionNetworkFirewallPoliciesRestConnectionImpl google::cloud::cpp::compute::region_network_firewall_policies::v1:: InsertFirewallPolicyRequest const& request) override; + StatusOr InsertFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + InsertFirewallPolicyRequest const& request) override; + + future> + InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionNetworkFirewallPolicies( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -108,19 +155,57 @@ class RegionNetworkFirewallPoliciesRestConnectionImpl google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchFirewallPolicyRequest const& request) override; + StatusOr PatchFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + PatchFirewallPolicyRequest const& request) override; + + future> + PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PatchRule( google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchRuleRequest const& request) override; + StatusOr PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + PatchRuleRequest const& request) override; + + future> PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveAssociation( google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveAssociationRequest const& request) override; + StatusOr RemoveAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + RemoveAssociationRequest const& request) override; + + future> + RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveRule( google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveRuleRequest const& request) override; + StatusOr RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + RemoveRuleRequest const& request) override; + + future> RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: SetIamPolicyRequest const& request) override; diff --git a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.cc b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.cc index bebc22cb68f82..97a29bc3ce3c9 100644 --- a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.cc +++ b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.cc @@ -48,6 +48,33 @@ RegionNetworkFirewallPoliciesTracingConnection::AddAssociation( return internal::EndSpan(std::move(span), child_->AddAssociation(request)); } +StatusOr +RegionNetworkFirewallPoliciesTracingConnection::AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + AddAssociationRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::AddAssociation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddAssociation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionNetworkFirewallPoliciesTracingConnection::AddAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::AddAssociation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddAssociation(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionNetworkFirewallPoliciesTracingConnection::AddRule( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -59,6 +86,33 @@ RegionNetworkFirewallPoliciesTracingConnection::AddRule( return internal::EndSpan(std::move(span), child_->AddRule(request)); } +StatusOr +RegionNetworkFirewallPoliciesTracingConnection::AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + AddRuleRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::AddRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionNetworkFirewallPoliciesTracingConnection::AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::AddRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddRule(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionNetworkFirewallPoliciesTracingConnection::CloneRules( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -70,6 +124,33 @@ RegionNetworkFirewallPoliciesTracingConnection::CloneRules( return internal::EndSpan(std::move(span), child_->CloneRules(request)); } +StatusOr +RegionNetworkFirewallPoliciesTracingConnection::CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + CloneRulesRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::CloneRules"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CloneRules(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionNetworkFirewallPoliciesTracingConnection::CloneRules( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::CloneRules"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CloneRules(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionNetworkFirewallPoliciesTracingConnection::DeleteFirewallPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -82,6 +163,33 @@ RegionNetworkFirewallPoliciesTracingConnection::DeleteFirewallPolicy( child_->DeleteFirewallPolicy(request)); } +StatusOr +RegionNetworkFirewallPoliciesTracingConnection::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::DeleteFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteFirewallPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionNetworkFirewallPoliciesTracingConnection::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::DeleteFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteFirewallPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionNetworkFirewallPoliciesTracingConnection::GetFirewallPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -150,6 +258,33 @@ RegionNetworkFirewallPoliciesTracingConnection::InsertFirewallPolicy( child_->InsertFirewallPolicy(request)); } +StatusOr +RegionNetworkFirewallPoliciesTracingConnection::InsertFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + InsertFirewallPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::InsertFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertFirewallPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionNetworkFirewallPoliciesTracingConnection::InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::InsertFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertFirewallPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionNetworkFirewallPoliciesTracingConnection:: ListRegionNetworkFirewallPolicies( @@ -178,6 +313,33 @@ RegionNetworkFirewallPoliciesTracingConnection::PatchFirewallPolicy( child_->PatchFirewallPolicy(request)); } +StatusOr +RegionNetworkFirewallPoliciesTracingConnection::PatchFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + PatchFirewallPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::PatchFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchFirewallPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionNetworkFirewallPoliciesTracingConnection::PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::PatchFirewallPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchFirewallPolicy(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionNetworkFirewallPoliciesTracingConnection::PatchRule( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -189,6 +351,33 @@ RegionNetworkFirewallPoliciesTracingConnection::PatchRule( return internal::EndSpan(std::move(span), child_->PatchRule(request)); } +StatusOr +RegionNetworkFirewallPoliciesTracingConnection::PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + PatchRuleRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::PatchRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionNetworkFirewallPoliciesTracingConnection::PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::PatchRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchRule(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionNetworkFirewallPoliciesTracingConnection::RemoveAssociation( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -200,6 +389,33 @@ RegionNetworkFirewallPoliciesTracingConnection::RemoveAssociation( return internal::EndSpan(std::move(span), child_->RemoveAssociation(request)); } +StatusOr +RegionNetworkFirewallPoliciesTracingConnection::RemoveAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + RemoveAssociationRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::RemoveAssociation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RemoveAssociation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionNetworkFirewallPoliciesTracingConnection::RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::RemoveAssociation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RemoveAssociation(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionNetworkFirewallPoliciesTracingConnection::RemoveRule( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -211,6 +427,33 @@ RegionNetworkFirewallPoliciesTracingConnection::RemoveRule( return internal::EndSpan(std::move(span), child_->RemoveRule(request)); } +StatusOr +RegionNetworkFirewallPoliciesTracingConnection::RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + RemoveRuleRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::RemoveRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RemoveRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionNetworkFirewallPoliciesTracingConnection::RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_network_firewall_policies_v1::" + "RegionNetworkFirewallPoliciesConnection::RemoveRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RemoveRule(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionNetworkFirewallPoliciesTracingConnection::SetIamPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: diff --git a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.h b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.h index 10f24372e9774..3f05d6f74a037 100644 --- a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.h +++ b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.h @@ -48,19 +48,56 @@ class RegionNetworkFirewallPoliciesTracingConnection google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddAssociationRequest const& request) override; + StatusOr AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + AddAssociationRequest const& request) override; + + future> AddAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> AddRule( google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddRuleRequest const& request) override; + StatusOr AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + AddRuleRequest const& request) override; + + future> AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> CloneRules( google::cloud::cpp::compute::region_network_firewall_policies::v1:: CloneRulesRequest const& request) override; + StatusOr CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + CloneRulesRequest const& request) override; + + future> CloneRules( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteFirewallPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) override; + StatusOr DeleteFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request) override; + + future> + DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetFirewallPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: GetFirewallPolicyRequest const& request) override; @@ -88,6 +125,16 @@ class RegionNetworkFirewallPoliciesTracingConnection google::cloud::cpp::compute::region_network_firewall_policies::v1:: InsertFirewallPolicyRequest const& request) override; + StatusOr InsertFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + InsertFirewallPolicyRequest const& request) override; + + future> + InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionNetworkFirewallPolicies( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -98,19 +145,57 @@ class RegionNetworkFirewallPoliciesTracingConnection google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchFirewallPolicyRequest const& request) override; + StatusOr PatchFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + PatchFirewallPolicyRequest const& request) override; + + future> + PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PatchRule( google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchRuleRequest const& request) override; + StatusOr PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + PatchRuleRequest const& request) override; + + future> PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveAssociation( google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveAssociationRequest const& request) override; + StatusOr RemoveAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + RemoveAssociationRequest const& request) override; + + future> + RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveRule( google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveRuleRequest const& request) override; + StatusOr RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + RemoveRuleRequest const& request) override; + + future> RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: SetIamPolicyRequest const& request) override; diff --git a/google/cloud/compute/region_network_firewall_policies/v1/mocks/mock_region_network_firewall_policies_connection.h b/google/cloud/compute/region_network_firewall_policies/v1/mocks/mock_region_network_firewall_policies_connection.h index 2d8388467a552..5353d64421210 100644 --- a/google/cloud/compute/region_network_firewall_policies/v1/mocks/mock_region_network_firewall_policies_connection.h +++ b/google/cloud/compute/region_network_firewall_policies/v1/mocks/mock_region_network_firewall_policies_connection.h @@ -55,24 +55,74 @@ class MockRegionNetworkFirewallPoliciesConnection v1::AddAssociationRequest const& request), (override)); + MOCK_METHOD(StatusOr, + AddAssociation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies:: + v1::AddAssociationRequest const& request), + (override)); + + MOCK_METHOD(future>, + AddAssociation, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, AddRule, (google::cloud::cpp::compute::region_network_firewall_policies:: v1::AddRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, AddRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies:: + v1::AddRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + AddRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, CloneRules, (google::cloud::cpp::compute::region_network_firewall_policies:: v1::CloneRulesRequest const& request), (override)); + MOCK_METHOD(StatusOr, CloneRules, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies:: + v1::CloneRulesRequest const& request), + (override)); + + MOCK_METHOD(future>, + CloneRules, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteFirewallPolicy, (google::cloud::cpp::compute::region_network_firewall_policies:: v1::DeleteFirewallPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteFirewallPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies:: + v1::DeleteFirewallPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteFirewallPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetFirewallPolicy, (google::cloud::cpp::compute::region_network_firewall_policies:: @@ -111,6 +161,19 @@ class MockRegionNetworkFirewallPoliciesConnection v1::InsertFirewallPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertFirewallPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies:: + v1::InsertFirewallPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertFirewallPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRegionNetworkFirewallPolicies, (google::cloud::cpp::compute::region_network_firewall_policies:: @@ -123,24 +186,74 @@ class MockRegionNetworkFirewallPoliciesConnection v1::PatchFirewallPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchFirewallPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies:: + v1::PatchFirewallPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchFirewallPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, PatchRule, (google::cloud::cpp::compute::region_network_firewall_policies:: v1::PatchRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, PatchRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies:: + v1::PatchRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, RemoveAssociation, (google::cloud::cpp::compute::region_network_firewall_policies:: v1::RemoveAssociationRequest const& request), (override)); + MOCK_METHOD(StatusOr, + RemoveAssociation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies:: + v1::RemoveAssociationRequest const& request), + (override)); + + MOCK_METHOD(future>, + RemoveAssociation, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, RemoveRule, (google::cloud::cpp::compute::region_network_firewall_policies:: v1::RemoveRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, RemoveRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies:: + v1::RemoveRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + RemoveRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, SetIamPolicy, (google::cloud::cpp::compute::region_network_firewall_policies:: v1::SetIamPolicyRequest const& request), diff --git a/google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection.cc b/google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection.cc index b163b99b0748a..1379668acce95 100644 --- a/google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection.cc +++ b/google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection.cc @@ -47,10 +47,46 @@ RegionNetworkFirewallPoliciesConnection::AddAssociation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionNetworkFirewallPoliciesConnection::AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + AddAssociationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +RegionNetworkFirewallPoliciesConnection::AddAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionNetworkFirewallPoliciesConnection::AddRule( + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + AddRuleRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr RegionNetworkFirewallPoliciesConnection::AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionNetworkFirewallPoliciesConnection::AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -65,6 +101,24 @@ RegionNetworkFirewallPoliciesConnection::CloneRules( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionNetworkFirewallPoliciesConnection::CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + CloneRulesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionNetworkFirewallPoliciesConnection::CloneRules( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionNetworkFirewallPoliciesConnection::DeleteFirewallPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -74,6 +128,24 @@ RegionNetworkFirewallPoliciesConnection::DeleteFirewallPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionNetworkFirewallPoliciesConnection::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + DeleteFirewallPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionNetworkFirewallPoliciesConnection::DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionNetworkFirewallPoliciesConnection::GetFirewallPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -119,6 +191,24 @@ RegionNetworkFirewallPoliciesConnection::InsertFirewallPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionNetworkFirewallPoliciesConnection::InsertFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + InsertFirewallPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionNetworkFirewallPoliciesConnection::InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionNetworkFirewallPoliciesConnection::ListRegionNetworkFirewallPolicies( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -136,10 +226,46 @@ RegionNetworkFirewallPoliciesConnection::PatchFirewallPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionNetworkFirewallPoliciesConnection::PatchFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + PatchFirewallPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +RegionNetworkFirewallPoliciesConnection::PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionNetworkFirewallPoliciesConnection::PatchRule( + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + PatchRuleRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr RegionNetworkFirewallPoliciesConnection::PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionNetworkFirewallPoliciesConnection::PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -154,10 +280,46 @@ RegionNetworkFirewallPoliciesConnection::RemoveAssociation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionNetworkFirewallPoliciesConnection::RemoveAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + RemoveAssociationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +RegionNetworkFirewallPoliciesConnection::RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionNetworkFirewallPoliciesConnection::RemoveRule( + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + RemoveRuleRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr RegionNetworkFirewallPoliciesConnection::RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionNetworkFirewallPoliciesConnection::RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection.h b/google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection.h index 44f1c18a9cc9b..0dbb10ca8e165 100644 --- a/google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection.h +++ b/google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_retry_traits.h" #include "google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -209,19 +211,57 @@ class RegionNetworkFirewallPoliciesConnection { AddAssociation(google::cloud::cpp::compute::region_network_firewall_policies:: v1::AddAssociationRequest const& request); + virtual StatusOr AddAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + AddAssociationRequest const& request); + + virtual future> + AddAssociation(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> AddRule( google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddRuleRequest const& request); + virtual StatusOr AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + AddRuleRequest const& request); + + virtual future> AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> CloneRules(google::cloud::cpp::compute::region_network_firewall_policies::v1:: CloneRulesRequest const& request); + virtual StatusOr CloneRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + CloneRulesRequest const& request); + + virtual future> + CloneRules(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteFirewallPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: DeleteFirewallPolicyRequest const& request); + virtual StatusOr + DeleteFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + DeleteFirewallPolicyRequest const& request); + + virtual future> + DeleteFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetFirewallPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -251,6 +291,17 @@ class RegionNetworkFirewallPoliciesConnection { google::cloud::cpp::compute::region_network_firewall_policies::v1:: InsertFirewallPolicyRequest const& request); + virtual StatusOr + InsertFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + InsertFirewallPolicyRequest const& request); + + virtual future> + InsertFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionNetworkFirewallPolicies( google::cloud::cpp::compute::region_network_firewall_policies::v1:: @@ -261,19 +312,59 @@ class RegionNetworkFirewallPoliciesConnection { google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchFirewallPolicyRequest const& request); + virtual StatusOr + PatchFirewallPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + PatchFirewallPolicyRequest const& request); + + virtual future> + PatchFirewallPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> PatchRule(google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchRuleRequest const& request); + virtual StatusOr PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + PatchRuleRequest const& request); + + virtual future> + PatchRule(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> RemoveAssociation( google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveAssociationRequest const& request); + virtual StatusOr + RemoveAssociation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + RemoveAssociationRequest const& request); + + virtual future> + RemoveAssociation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> RemoveRule(google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveRuleRequest const& request); + virtual StatusOr RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_network_firewall_policies::v1:: + RemoveRuleRequest const& request); + + virtual future> + RemoveRule(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr SetIamPolicy( google::cloud::cpp::compute::region_network_firewall_policies::v1:: SetIamPolicyRequest const& request); diff --git a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_rest_connection_impl.cc b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_rest_connection_impl.cc index 4985132d30163..26ff58839f69a 100644 --- a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_rest_connection_impl.cc +++ b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -108,6 +109,80 @@ RegionNotificationEndpointsRestConnectionImpl::DeleteNotificationEndpoint( }); } +StatusOr +RegionNotificationEndpointsRestConnectionImpl::DeleteNotificationEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_notification_endpoints::v1:: + DeleteNotificationEndpointRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNotificationEndpoint(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_notification_endpoints::v1:: + DeleteNotificationEndpointRequest const& request) { + return stub_->DeleteNotificationEndpoint(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +RegionNotificationEndpointsRestConnectionImpl::DeleteNotificationEndpoint( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionNotificationEndpointsRestConnectionImpl::GetNotificationEndpoint( google::cloud::cpp::compute::region_notification_endpoints::v1:: @@ -185,6 +260,80 @@ RegionNotificationEndpointsRestConnectionImpl::InsertNotificationEndpoint( }); } +StatusOr +RegionNotificationEndpointsRestConnectionImpl::InsertNotificationEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_notification_endpoints::v1:: + InsertNotificationEndpointRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertNotificationEndpoint(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_notification_endpoints::v1:: + InsertNotificationEndpointRequest const& request) { + return stub_->InsertNotificationEndpoint(rest_context, options, + request); + }, + *current, request, __func__); +} + +future> +RegionNotificationEndpointsRestConnectionImpl::InsertNotificationEndpoint( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionNotificationEndpointsRestConnectionImpl::ListRegionNotificationEndpoints( google::cloud::cpp::compute::region_notification_endpoints::v1:: diff --git a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_rest_connection_impl.h b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_rest_connection_impl.h index fff0d82281f53..3b17f631ef110 100644 --- a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_rest_connection_impl.h +++ b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_rest_connection_impl.h @@ -59,6 +59,17 @@ class RegionNotificationEndpointsRestConnectionImpl google::cloud::cpp::compute::region_notification_endpoints::v1:: DeleteNotificationEndpointRequest const& request) override; + StatusOr + DeleteNotificationEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_notification_endpoints::v1:: + DeleteNotificationEndpointRequest const& request) override; + + future> + DeleteNotificationEndpoint( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNotificationEndpoint( google::cloud::cpp::compute::region_notification_endpoints::v1:: @@ -69,6 +80,17 @@ class RegionNotificationEndpointsRestConnectionImpl google::cloud::cpp::compute::region_notification_endpoints::v1:: InsertNotificationEndpointRequest const& request) override; + StatusOr + InsertNotificationEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_notification_endpoints::v1:: + InsertNotificationEndpointRequest const& request) override; + + future> + InsertNotificationEndpoint( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionNotificationEndpoints( google::cloud::cpp::compute::region_notification_endpoints::v1:: diff --git a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.cc b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.cc index cf361d1bf02bf..32b282295d1dd 100644 --- a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.cc +++ b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.cc @@ -49,6 +49,33 @@ RegionNotificationEndpointsTracingConnection::DeleteNotificationEndpoint( child_->DeleteNotificationEndpoint(request)); } +StatusOr +RegionNotificationEndpointsTracingConnection::DeleteNotificationEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_notification_endpoints::v1:: + DeleteNotificationEndpointRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_notification_endpoints_v1::" + "RegionNotificationEndpointsConnection::DeleteNotificationEndpoint"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteNotificationEndpoint( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionNotificationEndpointsTracingConnection::DeleteNotificationEndpoint( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_notification_endpoints_v1::" + "RegionNotificationEndpointsConnection::DeleteNotificationEndpoint"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteNotificationEndpoint( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionNotificationEndpointsTracingConnection::GetNotificationEndpoint( google::cloud::cpp::compute::region_notification_endpoints::v1:: @@ -72,6 +99,33 @@ RegionNotificationEndpointsTracingConnection::InsertNotificationEndpoint( child_->InsertNotificationEndpoint(request)); } +StatusOr +RegionNotificationEndpointsTracingConnection::InsertNotificationEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_notification_endpoints::v1:: + InsertNotificationEndpointRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_notification_endpoints_v1::" + "RegionNotificationEndpointsConnection::InsertNotificationEndpoint"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertNotificationEndpoint( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionNotificationEndpointsTracingConnection::InsertNotificationEndpoint( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_notification_endpoints_v1::" + "RegionNotificationEndpointsConnection::InsertNotificationEndpoint"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertNotificationEndpoint( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionNotificationEndpointsTracingConnection::ListRegionNotificationEndpoints( google::cloud::cpp::compute::region_notification_endpoints::v1:: diff --git a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.h b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.h index 7969386b1378a..45f07fb1176eb 100644 --- a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.h +++ b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.h @@ -49,6 +49,17 @@ class RegionNotificationEndpointsTracingConnection google::cloud::cpp::compute::region_notification_endpoints::v1:: DeleteNotificationEndpointRequest const& request) override; + StatusOr + DeleteNotificationEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_notification_endpoints::v1:: + DeleteNotificationEndpointRequest const& request) override; + + future> + DeleteNotificationEndpoint( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetNotificationEndpoint( google::cloud::cpp::compute::region_notification_endpoints::v1:: @@ -59,6 +70,17 @@ class RegionNotificationEndpointsTracingConnection google::cloud::cpp::compute::region_notification_endpoints::v1:: InsertNotificationEndpointRequest const& request) override; + StatusOr + InsertNotificationEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_notification_endpoints::v1:: + InsertNotificationEndpointRequest const& request) override; + + future> + InsertNotificationEndpoint( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionNotificationEndpoints( google::cloud::cpp::compute::region_notification_endpoints::v1:: diff --git a/google/cloud/compute/region_notification_endpoints/v1/mocks/mock_region_notification_endpoints_connection.h b/google/cloud/compute/region_notification_endpoints/v1/mocks/mock_region_notification_endpoints_connection.h index 81143eba39a7c..4032b4b8018bc 100644 --- a/google/cloud/compute/region_notification_endpoints/v1/mocks/mock_region_notification_endpoints_connection.h +++ b/google/cloud/compute/region_notification_endpoints/v1/mocks/mock_region_notification_endpoints_connection.h @@ -55,6 +55,19 @@ class MockRegionNotificationEndpointsConnection DeleteNotificationEndpointRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteNotificationEndpoint, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_notification_endpoints::v1:: + DeleteNotificationEndpointRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteNotificationEndpoint, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetNotificationEndpoint, (google::cloud::cpp::compute::region_notification_endpoints::v1:: @@ -67,6 +80,19 @@ class MockRegionNotificationEndpointsConnection InsertNotificationEndpointRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertNotificationEndpoint, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_notification_endpoints::v1:: + InsertNotificationEndpointRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertNotificationEndpoint, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListRegionNotificationEndpoints, diff --git a/google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection.cc b/google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection.cc index 88a8da5511557..90703239cb44f 100644 --- a/google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection.cc +++ b/google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection.cc @@ -47,6 +47,24 @@ RegionNotificationEndpointsConnection::DeleteNotificationEndpoint( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionNotificationEndpointsConnection::DeleteNotificationEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_notification_endpoints::v1:: + DeleteNotificationEndpointRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionNotificationEndpointsConnection::DeleteNotificationEndpoint( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionNotificationEndpointsConnection::GetNotificationEndpoint( google::cloud::cpp::compute::region_notification_endpoints::v1:: @@ -63,6 +81,24 @@ RegionNotificationEndpointsConnection::InsertNotificationEndpoint( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionNotificationEndpointsConnection::InsertNotificationEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_notification_endpoints::v1:: + InsertNotificationEndpointRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionNotificationEndpointsConnection::InsertNotificationEndpoint( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionNotificationEndpointsConnection::ListRegionNotificationEndpoints( google::cloud::cpp::compute::region_notification_endpoints::v1:: diff --git a/google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection.h b/google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection.h index f914524c4992c..d0aa82c29aecc 100644 --- a/google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection.h +++ b/google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_retry_traits.h" #include "google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -209,6 +211,17 @@ class RegionNotificationEndpointsConnection { google::cloud::cpp::compute::region_notification_endpoints::v1:: DeleteNotificationEndpointRequest const& request); + virtual StatusOr + DeleteNotificationEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_notification_endpoints::v1:: + DeleteNotificationEndpointRequest const& request); + + virtual future> + DeleteNotificationEndpoint( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetNotificationEndpoint( google::cloud::cpp::compute::region_notification_endpoints::v1:: @@ -219,6 +232,17 @@ class RegionNotificationEndpointsConnection { google::cloud::cpp::compute::region_notification_endpoints::v1:: InsertNotificationEndpointRequest const& request); + virtual StatusOr + InsertNotificationEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_notification_endpoints::v1:: + InsertNotificationEndpointRequest const& request); + + virtual future> + InsertNotificationEndpoint( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionNotificationEndpoints( google::cloud::cpp::compute::region_notification_endpoints::v1:: diff --git a/google/cloud/compute/region_operations/v1/region_operations_connection.h b/google/cloud/compute/region_operations/v1/region_operations_connection.h index e4cdf15fb0d28..ccd51672c78b4 100644 --- a/google/cloud/compute/region_operations/v1/region_operations_connection.h +++ b/google/cloud/compute/region_operations/v1/region_operations_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/region_operations/v1/internal/region_operations_retry_traits.h" #include "google/cloud/compute/region_operations/v1/region_operations_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_rest_connection_impl.cc b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_rest_connection_impl.cc index dd460337a175d..9a09448154ac6 100644 --- a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_rest_connection_impl.cc +++ b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -106,6 +107,79 @@ RegionSecurityPoliciesRestConnectionImpl::AddRule( }); } +StatusOr +RegionSecurityPoliciesRestConnectionImpl::AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + AddRuleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_security_policies::v1:: + AddRuleRequest const& request) { + return stub_->AddRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionSecurityPoliciesRestConnectionImpl::AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionSecurityPoliciesRestConnectionImpl::DeleteSecurityPolicy( google::cloud::cpp::compute::region_security_policies::v1:: @@ -166,6 +240,79 @@ RegionSecurityPoliciesRestConnectionImpl::DeleteSecurityPolicy( }); } +StatusOr +RegionSecurityPoliciesRestConnectionImpl::DeleteSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + DeleteSecurityPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSecurityPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_security_policies::v1:: + DeleteSecurityPolicyRequest const& request) { + return stub_->DeleteSecurityPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionSecurityPoliciesRestConnectionImpl::DeleteSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionSecurityPoliciesRestConnectionImpl::GetSecurityPolicy( google::cloud::cpp::compute::region_security_policies::v1:: @@ -258,6 +405,79 @@ RegionSecurityPoliciesRestConnectionImpl::InsertSecurityPolicy( }); } +StatusOr +RegionSecurityPoliciesRestConnectionImpl::InsertSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + InsertSecurityPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertSecurityPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_security_policies::v1:: + InsertSecurityPolicyRequest const& request) { + return stub_->InsertSecurityPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionSecurityPoliciesRestConnectionImpl::InsertSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionSecurityPoliciesRestConnectionImpl::ListRegionSecurityPolicies( google::cloud::cpp::compute::region_security_policies::v1:: @@ -358,6 +578,79 @@ RegionSecurityPoliciesRestConnectionImpl::PatchSecurityPolicy( }); } +StatusOr +RegionSecurityPoliciesRestConnectionImpl::PatchSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + PatchSecurityPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchSecurityPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_security_policies::v1:: + PatchSecurityPolicyRequest const& request) { + return stub_->PatchSecurityPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionSecurityPoliciesRestConnectionImpl::PatchSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionSecurityPoliciesRestConnectionImpl::PatchRule( google::cloud::cpp::compute::region_security_policies::v1:: @@ -418,6 +711,79 @@ RegionSecurityPoliciesRestConnectionImpl::PatchRule( }); } +StatusOr +RegionSecurityPoliciesRestConnectionImpl::PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + PatchRuleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_security_policies::v1:: + PatchRuleRequest const& request) { + return stub_->PatchRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionSecurityPoliciesRestConnectionImpl::PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionSecurityPoliciesRestConnectionImpl::RemoveRule( google::cloud::cpp::compute::region_security_policies::v1:: @@ -478,6 +844,79 @@ RegionSecurityPoliciesRestConnectionImpl::RemoveRule( }); } +StatusOr +RegionSecurityPoliciesRestConnectionImpl::RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + RemoveRuleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_security_policies::v1:: + RemoveRuleRequest const& request) { + return stub_->RemoveRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionSecurityPoliciesRestConnectionImpl::RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_security_policies_v1_internal } // namespace cloud diff --git a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_rest_connection_impl.h b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_rest_connection_impl.h index 81d738759065f..2feb35689a9ed 100644 --- a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_rest_connection_impl.h +++ b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_rest_connection_impl.h @@ -58,11 +58,30 @@ class RegionSecurityPoliciesRestConnectionImpl google::cloud::cpp::compute::region_security_policies::v1:: AddRuleRequest const& request) override; + StatusOr AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + AddRuleRequest const& request) override; + + future> AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteSecurityPolicy( google::cloud::cpp::compute::region_security_policies::v1:: DeleteSecurityPolicyRequest const& request) override; + StatusOr DeleteSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + DeleteSecurityPolicyRequest const& request) override; + + future> + DeleteSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetSecurityPolicy( google::cloud::cpp::compute::region_security_policies::v1:: GetSecurityPolicyRequest const& request) override; @@ -76,6 +95,16 @@ class RegionSecurityPoliciesRestConnectionImpl google::cloud::cpp::compute::region_security_policies::v1:: InsertSecurityPolicyRequest const& request) override; + StatusOr InsertSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + InsertSecurityPolicyRequest const& request) override; + + future> + InsertSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionSecurityPolicies( google::cloud::cpp::compute::region_security_policies::v1:: @@ -86,14 +115,42 @@ class RegionSecurityPoliciesRestConnectionImpl google::cloud::cpp::compute::region_security_policies::v1:: PatchSecurityPolicyRequest const& request) override; + StatusOr PatchSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + PatchSecurityPolicyRequest const& request) override; + + future> + PatchSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PatchRule( google::cloud::cpp::compute::region_security_policies::v1:: PatchRuleRequest const& request) override; + StatusOr PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + PatchRuleRequest const& request) override; + + future> PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveRule( google::cloud::cpp::compute::region_security_policies::v1:: RemoveRuleRequest const& request) override; + StatusOr RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + RemoveRuleRequest const& request) override; + + future> RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_region_security_policies_v1::RegionSecurityPoliciesRetryPolicy> diff --git a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.cc b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.cc index 68f0b4e430838..7a4ce7a5bdbfe 100644 --- a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.cc +++ b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.cc @@ -48,6 +48,33 @@ RegionSecurityPoliciesTracingConnection::AddRule( return internal::EndSpan(std::move(span), child_->AddRule(request)); } +StatusOr +RegionSecurityPoliciesTracingConnection::AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + AddRuleRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" + "AddRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionSecurityPoliciesTracingConnection::AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" + "AddRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddRule(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionSecurityPoliciesTracingConnection::DeleteSecurityPolicy( google::cloud::cpp::compute::region_security_policies::v1:: @@ -60,6 +87,33 @@ RegionSecurityPoliciesTracingConnection::DeleteSecurityPolicy( child_->DeleteSecurityPolicy(request)); } +StatusOr +RegionSecurityPoliciesTracingConnection::DeleteSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + DeleteSecurityPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" + "DeleteSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteSecurityPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionSecurityPoliciesTracingConnection::DeleteSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" + "DeleteSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteSecurityPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionSecurityPoliciesTracingConnection::GetSecurityPolicy( google::cloud::cpp::compute::region_security_policies::v1:: @@ -94,6 +148,33 @@ RegionSecurityPoliciesTracingConnection::InsertSecurityPolicy( child_->InsertSecurityPolicy(request)); } +StatusOr +RegionSecurityPoliciesTracingConnection::InsertSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + InsertSecurityPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" + "InsertSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertSecurityPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionSecurityPoliciesTracingConnection::InsertSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" + "InsertSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertSecurityPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionSecurityPoliciesTracingConnection::ListRegionSecurityPolicies( google::cloud::cpp::compute::region_security_policies::v1:: @@ -120,6 +201,33 @@ RegionSecurityPoliciesTracingConnection::PatchSecurityPolicy( child_->PatchSecurityPolicy(request)); } +StatusOr +RegionSecurityPoliciesTracingConnection::PatchSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + PatchSecurityPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" + "PatchSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchSecurityPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionSecurityPoliciesTracingConnection::PatchSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" + "PatchSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchSecurityPolicy(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionSecurityPoliciesTracingConnection::PatchRule( google::cloud::cpp::compute::region_security_policies::v1:: @@ -131,6 +239,33 @@ RegionSecurityPoliciesTracingConnection::PatchRule( return internal::EndSpan(std::move(span), child_->PatchRule(request)); } +StatusOr +RegionSecurityPoliciesTracingConnection::PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + PatchRuleRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" + "PatchRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionSecurityPoliciesTracingConnection::PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" + "PatchRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchRule(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionSecurityPoliciesTracingConnection::RemoveRule( google::cloud::cpp::compute::region_security_policies::v1:: @@ -142,6 +277,33 @@ RegionSecurityPoliciesTracingConnection::RemoveRule( return internal::EndSpan(std::move(span), child_->RemoveRule(request)); } +StatusOr +RegionSecurityPoliciesTracingConnection::RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + RemoveRuleRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" + "RemoveRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RemoveRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionSecurityPoliciesTracingConnection::RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" + "RemoveRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RemoveRule(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr< diff --git a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.h b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.h index 838cef0267129..4f164aea71525 100644 --- a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.h +++ b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.h @@ -48,11 +48,30 @@ class RegionSecurityPoliciesTracingConnection google::cloud::cpp::compute::region_security_policies::v1:: AddRuleRequest const& request) override; + StatusOr AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + AddRuleRequest const& request) override; + + future> AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> DeleteSecurityPolicy( google::cloud::cpp::compute::region_security_policies::v1:: DeleteSecurityPolicyRequest const& request) override; + StatusOr DeleteSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + DeleteSecurityPolicyRequest const& request) override; + + future> + DeleteSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetSecurityPolicy( google::cloud::cpp::compute::region_security_policies::v1:: GetSecurityPolicyRequest const& request) override; @@ -66,6 +85,16 @@ class RegionSecurityPoliciesTracingConnection google::cloud::cpp::compute::region_security_policies::v1:: InsertSecurityPolicyRequest const& request) override; + StatusOr InsertSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + InsertSecurityPolicyRequest const& request) override; + + future> + InsertSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionSecurityPolicies( google::cloud::cpp::compute::region_security_policies::v1:: @@ -76,14 +105,42 @@ class RegionSecurityPoliciesTracingConnection google::cloud::cpp::compute::region_security_policies::v1:: PatchSecurityPolicyRequest const& request) override; + StatusOr PatchSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + PatchSecurityPolicyRequest const& request) override; + + future> + PatchSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PatchRule( google::cloud::cpp::compute::region_security_policies::v1:: PatchRuleRequest const& request) override; + StatusOr PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + PatchRuleRequest const& request) override; + + future> PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveRule( google::cloud::cpp::compute::region_security_policies::v1:: RemoveRuleRequest const& request) override; + StatusOr RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + RemoveRuleRequest const& request) override; + + future> RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr< compute_region_security_policies_v1::RegionSecurityPoliciesConnection> diff --git a/google/cloud/compute/region_security_policies/v1/mocks/mock_region_security_policies_connection.h b/google/cloud/compute/region_security_policies/v1/mocks/mock_region_security_policies_connection.h index 625901c6ad12b..483e8087ad264 100644 --- a/google/cloud/compute/region_security_policies/v1/mocks/mock_region_security_policies_connection.h +++ b/google/cloud/compute/region_security_policies/v1/mocks/mock_region_security_policies_connection.h @@ -55,12 +55,37 @@ class MockRegionSecurityPoliciesConnection AddRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, AddRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + AddRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + AddRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteSecurityPolicy, (google::cloud::cpp::compute::region_security_policies::v1:: DeleteSecurityPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteSecurityPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + DeleteSecurityPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteSecurityPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetSecurityPolicy, (google::cloud::cpp::compute::region_security_policies::v1:: @@ -79,6 +104,19 @@ class MockRegionSecurityPoliciesConnection InsertSecurityPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertSecurityPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + InsertSecurityPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertSecurityPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRegionSecurityPolicies, (google::cloud::cpp::compute::region_security_policies::v1:: @@ -91,17 +129,54 @@ class MockRegionSecurityPoliciesConnection PatchSecurityPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchSecurityPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + PatchSecurityPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchSecurityPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, PatchRule, (google::cloud::cpp::compute::region_security_policies::v1:: PatchRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, PatchRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + PatchRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, RemoveRule, (google::cloud::cpp::compute::region_security_policies::v1:: RemoveRuleRequest const& request), (override)); + + MOCK_METHOD(StatusOr, RemoveRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + RemoveRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + RemoveRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_security_policies/v1/region_security_policies_connection.cc b/google/cloud/compute/region_security_policies/v1/region_security_policies_connection.cc index 93d0fa3234304..96eb37ee044dd 100644 --- a/google/cloud/compute/region_security_policies/v1/region_security_policies_connection.cc +++ b/google/cloud/compute/region_security_policies/v1/region_security_policies_connection.cc @@ -46,6 +46,24 @@ RegionSecurityPoliciesConnection::AddRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionSecurityPoliciesConnection::AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + AddRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionSecurityPoliciesConnection::AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionSecurityPoliciesConnection::DeleteSecurityPolicy( google::cloud::cpp::compute::region_security_policies::v1:: @@ -55,6 +73,24 @@ RegionSecurityPoliciesConnection::DeleteSecurityPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionSecurityPoliciesConnection::DeleteSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + DeleteSecurityPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionSecurityPoliciesConnection::DeleteSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionSecurityPoliciesConnection::GetSecurityPolicy( google::cloud::cpp::compute::region_security_policies::v1:: @@ -78,6 +114,24 @@ RegionSecurityPoliciesConnection::InsertSecurityPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionSecurityPoliciesConnection::InsertSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + InsertSecurityPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionSecurityPoliciesConnection::InsertSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionSecurityPoliciesConnection::ListRegionSecurityPolicies( google::cloud::cpp::compute::region_security_policies::v1:: @@ -95,6 +149,24 @@ RegionSecurityPoliciesConnection::PatchSecurityPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionSecurityPoliciesConnection::PatchSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + PatchSecurityPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionSecurityPoliciesConnection::PatchSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionSecurityPoliciesConnection::PatchRule( google::cloud::cpp::compute::region_security_policies::v1:: @@ -104,6 +176,24 @@ RegionSecurityPoliciesConnection::PatchRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionSecurityPoliciesConnection::PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + PatchRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionSecurityPoliciesConnection::PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionSecurityPoliciesConnection::RemoveRule( google::cloud::cpp::compute::region_security_policies::v1:: @@ -113,6 +203,24 @@ RegionSecurityPoliciesConnection::RemoveRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionSecurityPoliciesConnection::RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + RemoveRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionSecurityPoliciesConnection::RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_security_policies_v1 } // namespace cloud diff --git a/google/cloud/compute/region_security_policies/v1/region_security_policies_connection.h b/google/cloud/compute/region_security_policies/v1/region_security_policies_connection.h index 29fd2513d24ad..901eabde1f72f 100644 --- a/google/cloud/compute/region_security_policies/v1/region_security_policies_connection.h +++ b/google/cloud/compute/region_security_policies/v1/region_security_policies_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/region_security_policies/v1/internal/region_security_policies_retry_traits.h" #include "google/cloud/compute/region_security_policies/v1/region_security_policies_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -198,10 +200,30 @@ class RegionSecurityPoliciesConnection { google::cloud::cpp::compute::region_security_policies::v1:: AddRuleRequest const& request); + virtual StatusOr AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + AddRuleRequest const& request); + + virtual future> AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> DeleteSecurityPolicy(google::cloud::cpp::compute::region_security_policies:: v1::DeleteSecurityPolicyRequest const& request); + virtual StatusOr + DeleteSecurityPolicy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies:: + v1::DeleteSecurityPolicyRequest const& request); + + virtual future> + DeleteSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetSecurityPolicy(google::cloud::cpp::compute::region_security_policies::v1:: GetSecurityPolicyRequest const& request); @@ -214,6 +236,17 @@ class RegionSecurityPoliciesConnection { InsertSecurityPolicy(google::cloud::cpp::compute::region_security_policies:: v1::InsertSecurityPolicyRequest const& request); + virtual StatusOr + InsertSecurityPolicy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies:: + v1::InsertSecurityPolicyRequest const& request); + + virtual future> + InsertSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionSecurityPolicies( google::cloud::cpp::compute::region_security_policies::v1:: @@ -223,13 +256,41 @@ class RegionSecurityPoliciesConnection { PatchSecurityPolicy(google::cloud::cpp::compute::region_security_policies:: v1::PatchSecurityPolicyRequest const& request); + virtual StatusOr + PatchSecurityPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies:: + v1::PatchSecurityPolicyRequest const& request); + + virtual future> + PatchSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> PatchRule(google::cloud::cpp::compute::region_security_policies::v1:: PatchRuleRequest const& request); + virtual StatusOr PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + PatchRuleRequest const& request); + + virtual future> + PatchRule(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> RemoveRule(google::cloud::cpp::compute::region_security_policies::v1:: RemoveRuleRequest const& request); + + virtual StatusOr RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_security_policies::v1:: + RemoveRuleRequest const& request); + + virtual future> + RemoveRule(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_rest_connection_impl.cc b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_rest_connection_impl.cc index 2a14e6d44aa09..c7dbfed0fa930 100644 --- a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_rest_connection_impl.cc +++ b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -106,6 +107,79 @@ RegionSslCertificatesRestConnectionImpl::DeleteSslCertificate( }); } +StatusOr +RegionSslCertificatesRestConnectionImpl::DeleteSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_certificates::v1:: + DeleteSslCertificateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSslCertificate(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_ssl_certificates::v1:: + DeleteSslCertificateRequest const& request) { + return stub_->DeleteSslCertificate(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionSslCertificatesRestConnectionImpl::DeleteSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionSslCertificatesRestConnectionImpl::GetSslCertificate( google::cloud::cpp::compute::region_ssl_certificates::v1:: @@ -182,6 +256,79 @@ RegionSslCertificatesRestConnectionImpl::InsertSslCertificate( }); } +StatusOr +RegionSslCertificatesRestConnectionImpl::InsertSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_certificates::v1:: + InsertSslCertificateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertSslCertificate(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_ssl_certificates::v1:: + InsertSslCertificateRequest const& request) { + return stub_->InsertSslCertificate(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionSslCertificatesRestConnectionImpl::InsertSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionSslCertificatesRestConnectionImpl::ListRegionSslCertificates( google::cloud::cpp::compute::region_ssl_certificates::v1:: diff --git a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_rest_connection_impl.h b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_rest_connection_impl.h index dd97a0afabb37..9e7bfdcaa489b 100644 --- a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_rest_connection_impl.h +++ b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_rest_connection_impl.h @@ -59,6 +59,16 @@ class RegionSslCertificatesRestConnectionImpl google::cloud::cpp::compute::region_ssl_certificates::v1:: DeleteSslCertificateRequest const& request) override; + StatusOr DeleteSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_certificates::v1:: + DeleteSslCertificateRequest const& request) override; + + future> + DeleteSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetSslCertificate( google::cloud::cpp::compute::region_ssl_certificates::v1:: GetSslCertificateRequest const& request) override; @@ -68,6 +78,16 @@ class RegionSslCertificatesRestConnectionImpl google::cloud::cpp::compute::region_ssl_certificates::v1:: InsertSslCertificateRequest const& request) override; + StatusOr InsertSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_certificates::v1:: + InsertSslCertificateRequest const& request) override; + + future> + InsertSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionSslCertificates( google::cloud::cpp::compute::region_ssl_certificates::v1:: diff --git a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.cc b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.cc index ffbe7e4f94464..d497ec7af331f 100644 --- a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.cc +++ b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.cc @@ -48,6 +48,33 @@ RegionSslCertificatesTracingConnection::DeleteSslCertificate( child_->DeleteSslCertificate(request)); } +StatusOr +RegionSslCertificatesTracingConnection::DeleteSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_certificates::v1:: + DeleteSslCertificateRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_ssl_certificates_v1::RegionSslCertificatesConnection::" + "DeleteSslCertificate"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteSslCertificate( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionSslCertificatesTracingConnection::DeleteSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_ssl_certificates_v1::RegionSslCertificatesConnection::" + "DeleteSslCertificate"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteSslCertificate( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionSslCertificatesTracingConnection::GetSslCertificate( google::cloud::cpp::compute::region_ssl_certificates::v1:: @@ -71,6 +98,33 @@ RegionSslCertificatesTracingConnection::InsertSslCertificate( child_->InsertSslCertificate(request)); } +StatusOr +RegionSslCertificatesTracingConnection::InsertSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_certificates::v1:: + InsertSslCertificateRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_ssl_certificates_v1::RegionSslCertificatesConnection::" + "InsertSslCertificate"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertSslCertificate( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionSslCertificatesTracingConnection::InsertSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_ssl_certificates_v1::RegionSslCertificatesConnection::" + "InsertSslCertificate"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertSslCertificate( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionSslCertificatesTracingConnection::ListRegionSslCertificates( google::cloud::cpp::compute::region_ssl_certificates::v1:: diff --git a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.h b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.h index 3778e1059fb67..2519fd7c1948d 100644 --- a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.h +++ b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.h @@ -49,6 +49,16 @@ class RegionSslCertificatesTracingConnection google::cloud::cpp::compute::region_ssl_certificates::v1:: DeleteSslCertificateRequest const& request) override; + StatusOr DeleteSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_certificates::v1:: + DeleteSslCertificateRequest const& request) override; + + future> + DeleteSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetSslCertificate( google::cloud::cpp::compute::region_ssl_certificates::v1:: GetSslCertificateRequest const& request) override; @@ -58,6 +68,16 @@ class RegionSslCertificatesTracingConnection google::cloud::cpp::compute::region_ssl_certificates::v1:: InsertSslCertificateRequest const& request) override; + StatusOr InsertSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_certificates::v1:: + InsertSslCertificateRequest const& request) override; + + future> + InsertSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionSslCertificates( google::cloud::cpp::compute::region_ssl_certificates::v1:: diff --git a/google/cloud/compute/region_ssl_certificates/v1/mocks/mock_region_ssl_certificates_connection.h b/google/cloud/compute/region_ssl_certificates/v1/mocks/mock_region_ssl_certificates_connection.h index 73a2a31c541d1..d2d735aaa9b03 100644 --- a/google/cloud/compute/region_ssl_certificates/v1/mocks/mock_region_ssl_certificates_connection.h +++ b/google/cloud/compute/region_ssl_certificates/v1/mocks/mock_region_ssl_certificates_connection.h @@ -55,6 +55,19 @@ class MockRegionSslCertificatesConnection DeleteSslCertificateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteSslCertificate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_certificates::v1:: + DeleteSslCertificateRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteSslCertificate, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetSslCertificate, (google::cloud::cpp::compute::region_ssl_certificates::v1:: @@ -67,6 +80,19 @@ class MockRegionSslCertificatesConnection InsertSslCertificateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertSslCertificate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_certificates::v1:: + InsertSslCertificateRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertSslCertificate, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRegionSslCertificates, (google::cloud::cpp::compute::region_ssl_certificates::v1:: diff --git a/google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection.cc b/google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection.cc index a7196ad229253..e15dc7aa5afc6 100644 --- a/google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection.cc +++ b/google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection.cc @@ -46,6 +46,24 @@ RegionSslCertificatesConnection::DeleteSslCertificate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionSslCertificatesConnection::DeleteSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_certificates::v1:: + DeleteSslCertificateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionSslCertificatesConnection::DeleteSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionSslCertificatesConnection::GetSslCertificate( google::cloud::cpp::compute::region_ssl_certificates::v1:: @@ -62,6 +80,24 @@ RegionSslCertificatesConnection::InsertSslCertificate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionSslCertificatesConnection::InsertSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_certificates::v1:: + InsertSslCertificateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionSslCertificatesConnection::InsertSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionSslCertificatesConnection::ListRegionSslCertificates( google::cloud::cpp::compute::region_ssl_certificates::v1:: diff --git a/google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection.h b/google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection.h index 1b908e1f0460c..c183f2c7e9ed4 100644 --- a/google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection.h +++ b/google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_retry_traits.h" #include "google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -198,6 +200,17 @@ class RegionSslCertificatesConnection { DeleteSslCertificate(google::cloud::cpp::compute::region_ssl_certificates:: v1::DeleteSslCertificateRequest const& request); + virtual StatusOr + DeleteSslCertificate(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_certificates:: + v1::DeleteSslCertificateRequest const& request); + + virtual future> + DeleteSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetSslCertificate(google::cloud::cpp::compute::region_ssl_certificates::v1:: GetSslCertificateRequest const& request); @@ -206,6 +219,17 @@ class RegionSslCertificatesConnection { InsertSslCertificate(google::cloud::cpp::compute::region_ssl_certificates:: v1::InsertSslCertificateRequest const& request); + virtual StatusOr + InsertSslCertificate(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_certificates:: + v1::InsertSslCertificateRequest const& request); + + virtual future> + InsertSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionSslCertificates( google::cloud::cpp::compute::region_ssl_certificates::v1:: diff --git a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_rest_connection_impl.cc b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_rest_connection_impl.cc index 41c24a85a8ec2..27f27f616161e 100644 --- a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_rest_connection_impl.cc +++ b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -104,6 +105,79 @@ RegionSslPoliciesRestConnectionImpl::DeleteSslPolicy( }); } +StatusOr +RegionSslPoliciesRestConnectionImpl::DeleteSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + DeleteSslPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSslPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_ssl_policies::v1:: + DeleteSslPolicyRequest const& request) { + return stub_->DeleteSslPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionSslPoliciesRestConnectionImpl::DeleteSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionSslPoliciesRestConnectionImpl::GetSslPolicy( google::cloud::cpp::compute::region_ssl_policies::v1:: @@ -180,6 +254,79 @@ RegionSslPoliciesRestConnectionImpl::InsertSslPolicy( }); } +StatusOr +RegionSslPoliciesRestConnectionImpl::InsertSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + InsertSslPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertSslPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_ssl_policies::v1:: + InsertSslPolicyRequest const& request) { + return stub_->InsertSslPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionSslPoliciesRestConnectionImpl::InsertSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionSslPoliciesRestConnectionImpl::ListRegionSslPolicies( google::cloud::cpp::compute::region_ssl_policies::v1:: @@ -297,6 +444,79 @@ RegionSslPoliciesRestConnectionImpl::PatchSslPolicy( }); } +StatusOr +RegionSslPoliciesRestConnectionImpl::PatchSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + PatchSslPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchSslPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_ssl_policies::v1:: + PatchSslPolicyRequest const& request) { + return stub_->PatchSslPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionSslPoliciesRestConnectionImpl::PatchSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_ssl_policies_v1_internal } // namespace cloud diff --git a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_rest_connection_impl.h b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_rest_connection_impl.h index 0e135706a80cd..2e1c12e72ac47 100644 --- a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_rest_connection_impl.h +++ b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_rest_connection_impl.h @@ -56,6 +56,15 @@ class RegionSslPoliciesRestConnectionImpl google::cloud::cpp::compute::region_ssl_policies::v1:: DeleteSslPolicyRequest const& request) override; + StatusOr DeleteSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + DeleteSslPolicyRequest const& request) override; + + future> DeleteSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetSslPolicy( google::cloud::cpp::compute::region_ssl_policies::v1:: GetSslPolicyRequest const& request) override; @@ -64,6 +73,15 @@ class RegionSslPoliciesRestConnectionImpl google::cloud::cpp::compute::region_ssl_policies::v1:: InsertSslPolicyRequest const& request) override; + StatusOr InsertSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + InsertSslPolicyRequest const& request) override; + + future> InsertSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionSslPolicies( google::cloud::cpp::compute::region_ssl_policies::v1:: ListRegionSslPoliciesRequest request) override; @@ -78,6 +96,15 @@ class RegionSslPoliciesRestConnectionImpl google::cloud::cpp::compute::region_ssl_policies::v1:: PatchSslPolicyRequest const& request) override; + StatusOr PatchSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + PatchSslPolicyRequest const& request) override; + + future> PatchSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_region_ssl_policies_v1::RegionSslPoliciesRetryPolicy> diff --git a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.cc b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.cc index 593f33b946ff8..59dcc40df39c4 100644 --- a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.cc +++ b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.cc @@ -45,6 +45,33 @@ RegionSslPoliciesTracingConnection::DeleteSslPolicy( return internal::EndSpan(std::move(span), child_->DeleteSslPolicy(request)); } +StatusOr +RegionSslPoliciesTracingConnection::DeleteSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + DeleteSslPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_ssl_policies_v1::RegionSslPoliciesConnection::" + "DeleteSslPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSslPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionSslPoliciesTracingConnection::DeleteSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_ssl_policies_v1::RegionSslPoliciesConnection::" + "DeleteSslPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSslPolicy(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionSslPoliciesTracingConnection::GetSslPolicy( google::cloud::cpp::compute::region_ssl_policies::v1:: @@ -67,6 +94,33 @@ RegionSslPoliciesTracingConnection::InsertSslPolicy( return internal::EndSpan(std::move(span), child_->InsertSslPolicy(request)); } +StatusOr +RegionSslPoliciesTracingConnection::InsertSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + InsertSslPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_ssl_policies_v1::RegionSslPoliciesConnection::" + "InsertSslPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertSslPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionSslPoliciesTracingConnection::InsertSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_ssl_policies_v1::RegionSslPoliciesConnection::" + "InsertSslPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertSslPolicy(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionSslPoliciesTracingConnection::ListRegionSslPolicies( google::cloud::cpp::compute::region_ssl_policies::v1:: @@ -104,6 +158,33 @@ RegionSslPoliciesTracingConnection::PatchSslPolicy( return internal::EndSpan(std::move(span), child_->PatchSslPolicy(request)); } +StatusOr +RegionSslPoliciesTracingConnection::PatchSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + PatchSslPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_ssl_policies_v1::RegionSslPoliciesConnection::" + "PatchSslPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchSslPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionSslPoliciesTracingConnection::PatchSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_ssl_policies_v1::RegionSslPoliciesConnection::" + "PatchSslPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchSslPolicy(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.h b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.h index cd637979b18a3..69fceff64c5bc 100644 --- a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.h +++ b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.h @@ -46,6 +46,15 @@ class RegionSslPoliciesTracingConnection google::cloud::cpp::compute::region_ssl_policies::v1:: DeleteSslPolicyRequest const& request) override; + StatusOr DeleteSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + DeleteSslPolicyRequest const& request) override; + + future> DeleteSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetSslPolicy( google::cloud::cpp::compute::region_ssl_policies::v1:: GetSslPolicyRequest const& request) override; @@ -54,6 +63,15 @@ class RegionSslPoliciesTracingConnection google::cloud::cpp::compute::region_ssl_policies::v1:: InsertSslPolicyRequest const& request) override; + StatusOr InsertSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + InsertSslPolicyRequest const& request) override; + + future> InsertSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionSslPolicies( google::cloud::cpp::compute::region_ssl_policies::v1:: ListRegionSslPoliciesRequest request) override; @@ -68,6 +86,15 @@ class RegionSslPoliciesTracingConnection google::cloud::cpp::compute::region_ssl_policies::v1:: PatchSslPolicyRequest const& request) override; + StatusOr PatchSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + PatchSslPolicyRequest const& request) override; + + future> PatchSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/region_ssl_policies/v1/mocks/mock_region_ssl_policies_connection.h b/google/cloud/compute/region_ssl_policies/v1/mocks/mock_region_ssl_policies_connection.h index ad837c8f9ed65..f200744361fb5 100644 --- a/google/cloud/compute/region_ssl_policies/v1/mocks/mock_region_ssl_policies_connection.h +++ b/google/cloud/compute/region_ssl_policies/v1/mocks/mock_region_ssl_policies_connection.h @@ -53,6 +53,19 @@ class MockRegionSslPoliciesConnection DeleteSslPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteSslPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + DeleteSslPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteSslPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetSslPolicy, (google::cloud::cpp::compute::region_ssl_policies::v1:: @@ -65,6 +78,19 @@ class MockRegionSslPoliciesConnection InsertSslPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertSslPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + InsertSslPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertSslPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRegionSslPolicies, (google::cloud::cpp::compute::region_ssl_policies::v1:: @@ -83,6 +109,19 @@ class MockRegionSslPoliciesConnection (google::cloud::cpp::compute::region_ssl_policies::v1:: PatchSslPolicyRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + PatchSslPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + PatchSslPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchSslPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection.cc b/google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection.cc index 35df8e7585afd..91c20afa8e515 100644 --- a/google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection.cc +++ b/google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection.cc @@ -45,6 +45,24 @@ RegionSslPoliciesConnection::DeleteSslPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionSslPoliciesConnection::DeleteSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + DeleteSslPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionSslPoliciesConnection::DeleteSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionSslPoliciesConnection::GetSslPolicy( google::cloud::cpp::compute::region_ssl_policies::v1:: @@ -61,6 +79,24 @@ RegionSslPoliciesConnection::InsertSslPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionSslPoliciesConnection::InsertSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + InsertSslPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionSslPoliciesConnection::InsertSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionSslPoliciesConnection::ListRegionSslPolicies( google::cloud::cpp::compute::region_ssl_policies::v1:: @@ -86,6 +122,24 @@ RegionSslPoliciesConnection::PatchSslPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionSslPoliciesConnection::PatchSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + PatchSslPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionSslPoliciesConnection::PatchSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_ssl_policies_v1 } // namespace cloud diff --git a/google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection.h b/google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection.h index 8647dda887be0..19584144aa0ec 100644 --- a/google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection.h +++ b/google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_retry_traits.h" #include "google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -190,6 +192,15 @@ class RegionSslPoliciesConnection { DeleteSslPolicy(google::cloud::cpp::compute::region_ssl_policies::v1:: DeleteSslPolicyRequest const& request); + virtual StatusOr DeleteSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + DeleteSslPolicyRequest const& request); + + virtual future> + DeleteSslPolicy(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetSslPolicy( google::cloud::cpp::compute::region_ssl_policies::v1:: GetSslPolicyRequest const& request); @@ -198,6 +209,15 @@ class RegionSslPoliciesConnection { InsertSslPolicy(google::cloud::cpp::compute::region_ssl_policies::v1:: InsertSslPolicyRequest const& request); + virtual StatusOr InsertSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + InsertSslPolicyRequest const& request); + + virtual future> + InsertSslPolicy(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionSslPolicies(google::cloud::cpp::compute::region_ssl_policies::v1:: ListRegionSslPoliciesRequest request); @@ -210,6 +230,15 @@ class RegionSslPoliciesConnection { virtual future> PatchSslPolicy(google::cloud::cpp::compute::region_ssl_policies::v1:: PatchSslPolicyRequest const& request); + + virtual StatusOr PatchSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_ssl_policies::v1:: + PatchSslPolicyRequest const& request); + + virtual future> + PatchSslPolicy(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_rest_connection_impl.cc b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_rest_connection_impl.cc index 6b7a8461be097..7130b4dd4761e 100644 --- a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_rest_connection_impl.cc +++ b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -106,6 +107,79 @@ RegionTargetHttpProxiesRestConnectionImpl::DeleteTargetHttpProxy( }); } +StatusOr +RegionTargetHttpProxiesRestConnectionImpl::DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + DeleteTargetHttpProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTargetHttpProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + DeleteTargetHttpProxyRequest const& request) { + return stub_->DeleteTargetHttpProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionTargetHttpProxiesRestConnectionImpl::DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionTargetHttpProxiesRestConnectionImpl::GetTargetHttpProxy( google::cloud::cpp::compute::region_target_http_proxies::v1:: @@ -182,6 +256,79 @@ RegionTargetHttpProxiesRestConnectionImpl::InsertTargetHttpProxy( }); } +StatusOr +RegionTargetHttpProxiesRestConnectionImpl::InsertTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + InsertTargetHttpProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertTargetHttpProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + InsertTargetHttpProxyRequest const& request) { + return stub_->InsertTargetHttpProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionTargetHttpProxiesRestConnectionImpl::InsertTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionTargetHttpProxiesRestConnectionImpl::ListRegionTargetHttpProxies( google::cloud::cpp::compute::region_target_http_proxies::v1:: @@ -282,6 +429,79 @@ RegionTargetHttpProxiesRestConnectionImpl::SetUrlMap( }); } +StatusOr +RegionTargetHttpProxiesRestConnectionImpl::SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + SetUrlMapRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetUrlMap(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + SetUrlMapRequest const& request) { + return stub_->SetUrlMap(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionTargetHttpProxiesRestConnectionImpl::SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_target_http_proxies_v1_internal } // namespace cloud diff --git a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_rest_connection_impl.h b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_rest_connection_impl.h index fdeb1bcc6059a..1c00e468cd692 100644 --- a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_rest_connection_impl.h +++ b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_rest_connection_impl.h @@ -59,6 +59,16 @@ class RegionTargetHttpProxiesRestConnectionImpl google::cloud::cpp::compute::region_target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request) override; + StatusOr DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + DeleteTargetHttpProxyRequest const& request) override; + + future> + DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetHttpProxy( google::cloud::cpp::compute::region_target_http_proxies::v1:: GetTargetHttpProxyRequest const& request) override; @@ -68,6 +78,16 @@ class RegionTargetHttpProxiesRestConnectionImpl google::cloud::cpp::compute::region_target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request) override; + StatusOr InsertTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + InsertTargetHttpProxyRequest const& request) override; + + future> + InsertTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionTargetHttpProxies( google::cloud::cpp::compute::region_target_http_proxies::v1:: @@ -77,6 +97,15 @@ class RegionTargetHttpProxiesRestConnectionImpl google::cloud::cpp::compute::region_target_http_proxies::v1:: SetUrlMapRequest const& request) override; + StatusOr SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + SetUrlMapRequest const& request) override; + + future> SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_region_target_http_proxies_v1::RegionTargetHttpProxiesRetryPolicy> diff --git a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.cc b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.cc index 744e8e0cc7206..b24e936880d51 100644 --- a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.cc +++ b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.cc @@ -49,6 +49,33 @@ RegionTargetHttpProxiesTracingConnection::DeleteTargetHttpProxy( child_->DeleteTargetHttpProxy(request)); } +StatusOr +RegionTargetHttpProxiesTracingConnection::DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + DeleteTargetHttpProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_target_http_proxies_v1::" + "RegionTargetHttpProxiesConnection::DeleteTargetHttpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteTargetHttpProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionTargetHttpProxiesTracingConnection::DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_target_http_proxies_v1::" + "RegionTargetHttpProxiesConnection::DeleteTargetHttpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteTargetHttpProxy( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionTargetHttpProxiesTracingConnection::GetTargetHttpProxy( google::cloud::cpp::compute::region_target_http_proxies::v1:: @@ -72,6 +99,33 @@ RegionTargetHttpProxiesTracingConnection::InsertTargetHttpProxy( child_->InsertTargetHttpProxy(request)); } +StatusOr +RegionTargetHttpProxiesTracingConnection::InsertTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + InsertTargetHttpProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_target_http_proxies_v1::" + "RegionTargetHttpProxiesConnection::InsertTargetHttpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertTargetHttpProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionTargetHttpProxiesTracingConnection::InsertTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_target_http_proxies_v1::" + "RegionTargetHttpProxiesConnection::InsertTargetHttpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertTargetHttpProxy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionTargetHttpProxiesTracingConnection::ListRegionTargetHttpProxies( google::cloud::cpp::compute::region_target_http_proxies::v1:: @@ -97,6 +151,33 @@ RegionTargetHttpProxiesTracingConnection::SetUrlMap( return internal::EndSpan(std::move(span), child_->SetUrlMap(request)); } +StatusOr +RegionTargetHttpProxiesTracingConnection::SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + SetUrlMapRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_target_http_proxies_v1::" + "RegionTargetHttpProxiesConnection::SetUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetUrlMap(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionTargetHttpProxiesTracingConnection::SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_target_http_proxies_v1::" + "RegionTargetHttpProxiesConnection::SetUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetUrlMap(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr< diff --git a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.h b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.h index 3b31c771fd50d..1c2688e0e27c6 100644 --- a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.h +++ b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.h @@ -49,6 +49,16 @@ class RegionTargetHttpProxiesTracingConnection google::cloud::cpp::compute::region_target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request) override; + StatusOr DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + DeleteTargetHttpProxyRequest const& request) override; + + future> + DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetHttpProxy( google::cloud::cpp::compute::region_target_http_proxies::v1:: GetTargetHttpProxyRequest const& request) override; @@ -58,6 +68,16 @@ class RegionTargetHttpProxiesTracingConnection google::cloud::cpp::compute::region_target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request) override; + StatusOr InsertTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + InsertTargetHttpProxyRequest const& request) override; + + future> + InsertTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionTargetHttpProxies( google::cloud::cpp::compute::region_target_http_proxies::v1:: @@ -67,6 +87,15 @@ class RegionTargetHttpProxiesTracingConnection google::cloud::cpp::compute::region_target_http_proxies::v1:: SetUrlMapRequest const& request) override; + StatusOr SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + SetUrlMapRequest const& request) override; + + future> SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr< compute_region_target_http_proxies_v1::RegionTargetHttpProxiesConnection> diff --git a/google/cloud/compute/region_target_http_proxies/v1/mocks/mock_region_target_http_proxies_connection.h b/google/cloud/compute/region_target_http_proxies/v1/mocks/mock_region_target_http_proxies_connection.h index b2ae86d0efecb..544e65f0830fb 100644 --- a/google/cloud/compute/region_target_http_proxies/v1/mocks/mock_region_target_http_proxies_connection.h +++ b/google/cloud/compute/region_target_http_proxies/v1/mocks/mock_region_target_http_proxies_connection.h @@ -55,6 +55,19 @@ class MockRegionTargetHttpProxiesConnection DeleteTargetHttpProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteTargetHttpProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + DeleteTargetHttpProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteTargetHttpProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetTargetHttpProxy, (google::cloud::cpp::compute::region_target_http_proxies::v1:: @@ -67,6 +80,19 @@ class MockRegionTargetHttpProxiesConnection InsertTargetHttpProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertTargetHttpProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + InsertTargetHttpProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertTargetHttpProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRegionTargetHttpProxies, (google::cloud::cpp::compute::region_target_http_proxies::v1:: @@ -78,6 +104,18 @@ class MockRegionTargetHttpProxiesConnection (google::cloud::cpp::compute::region_target_http_proxies::v1:: SetUrlMapRequest const& request), (override)); + + MOCK_METHOD(StatusOr, SetUrlMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + SetUrlMapRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetUrlMap, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection.cc b/google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection.cc index 90d658748d068..b5c3fbd18c951 100644 --- a/google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection.cc +++ b/google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection.cc @@ -47,6 +47,24 @@ RegionTargetHttpProxiesConnection::DeleteTargetHttpProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionTargetHttpProxiesConnection::DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + DeleteTargetHttpProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionTargetHttpProxiesConnection::DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionTargetHttpProxiesConnection::GetTargetHttpProxy( google::cloud::cpp::compute::region_target_http_proxies::v1:: @@ -63,6 +81,24 @@ RegionTargetHttpProxiesConnection::InsertTargetHttpProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionTargetHttpProxiesConnection::InsertTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + InsertTargetHttpProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionTargetHttpProxiesConnection::InsertTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionTargetHttpProxiesConnection::ListRegionTargetHttpProxies( google::cloud::cpp::compute::region_target_http_proxies::v1:: @@ -80,6 +116,24 @@ RegionTargetHttpProxiesConnection::SetUrlMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionTargetHttpProxiesConnection::SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + SetUrlMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionTargetHttpProxiesConnection::SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_target_http_proxies_v1 } // namespace cloud diff --git a/google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection.h b/google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection.h index 4c4df95f7fb93..6b378cc723d6b 100644 --- a/google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection.h +++ b/google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_retry_traits.h" #include "google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -200,6 +202,17 @@ class RegionTargetHttpProxiesConnection { google::cloud::cpp::compute::region_target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request); + virtual StatusOr + DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + DeleteTargetHttpProxyRequest const& request); + + virtual future> + DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetTargetHttpProxy(google::cloud::cpp::compute::region_target_http_proxies:: v1::GetTargetHttpProxyRequest const& request); @@ -209,6 +222,17 @@ class RegionTargetHttpProxiesConnection { google::cloud::cpp::compute::region_target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request); + virtual StatusOr + InsertTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + InsertTargetHttpProxyRequest const& request); + + virtual future> + InsertTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionTargetHttpProxies( google::cloud::cpp::compute::region_target_http_proxies::v1:: @@ -217,6 +241,15 @@ class RegionTargetHttpProxiesConnection { virtual future> SetUrlMap(google::cloud::cpp::compute::region_target_http_proxies::v1:: SetUrlMapRequest const& request); + + virtual StatusOr SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_http_proxies::v1:: + SetUrlMapRequest const& request); + + virtual future> + SetUrlMap(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_rest_connection_impl.cc b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_rest_connection_impl.cc index 68f64736dddc4..4567a1a4894cc 100644 --- a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_rest_connection_impl.cc +++ b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -106,6 +107,79 @@ RegionTargetHttpsProxiesRestConnectionImpl::DeleteTargetHttpsProxy( }); } +StatusOr +RegionTargetHttpsProxiesRestConnectionImpl::DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + DeleteTargetHttpsProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTargetHttpsProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + DeleteTargetHttpsProxyRequest const& request) { + return stub_->DeleteTargetHttpsProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionTargetHttpsProxiesRestConnectionImpl::DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionTargetHttpsProxiesRestConnectionImpl::GetTargetHttpsProxy( google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -182,6 +256,79 @@ RegionTargetHttpsProxiesRestConnectionImpl::InsertTargetHttpsProxy( }); } +StatusOr +RegionTargetHttpsProxiesRestConnectionImpl::InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + InsertTargetHttpsProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertTargetHttpsProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + InsertTargetHttpsProxyRequest const& request) { + return stub_->InsertTargetHttpsProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionTargetHttpsProxiesRestConnectionImpl::InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionTargetHttpsProxiesRestConnectionImpl::ListRegionTargetHttpsProxies( google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -282,6 +429,79 @@ RegionTargetHttpsProxiesRestConnectionImpl::PatchTargetHttpsProxy( }); } +StatusOr +RegionTargetHttpsProxiesRestConnectionImpl::PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + PatchTargetHttpsProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchTargetHttpsProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + PatchTargetHttpsProxyRequest const& request) { + return stub_->PatchTargetHttpsProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionTargetHttpsProxiesRestConnectionImpl::PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionTargetHttpsProxiesRestConnectionImpl::SetSslCertificates( google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -342,6 +562,79 @@ RegionTargetHttpsProxiesRestConnectionImpl::SetSslCertificates( }); } +StatusOr +RegionTargetHttpsProxiesRestConnectionImpl::SetSslCertificates( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + SetSslCertificatesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetSslCertificates(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + SetSslCertificatesRequest const& request) { + return stub_->SetSslCertificates(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionTargetHttpsProxiesRestConnectionImpl::SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionTargetHttpsProxiesRestConnectionImpl::SetUrlMap( google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -402,6 +695,79 @@ RegionTargetHttpsProxiesRestConnectionImpl::SetUrlMap( }); } +StatusOr +RegionTargetHttpsProxiesRestConnectionImpl::SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + SetUrlMapRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetUrlMap(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + SetUrlMapRequest const& request) { + return stub_->SetUrlMap(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionTargetHttpsProxiesRestConnectionImpl::SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_target_https_proxies_v1_internal } // namespace cloud diff --git a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_rest_connection_impl.h b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_rest_connection_impl.h index 87bccf9511923..efbbdaa03d4d9 100644 --- a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_rest_connection_impl.h +++ b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_rest_connection_impl.h @@ -59,6 +59,16 @@ class RegionTargetHttpsProxiesRestConnectionImpl google::cloud::cpp::compute::region_target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request) override; + StatusOr DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + DeleteTargetHttpsProxyRequest const& request) override; + + future> + DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetHttpsProxy( google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -69,6 +79,16 @@ class RegionTargetHttpsProxiesRestConnectionImpl google::cloud::cpp::compute::region_target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request) override; + StatusOr InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + InsertTargetHttpsProxyRequest const& request) override; + + future> + InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionTargetHttpsProxies( google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -79,14 +99,43 @@ class RegionTargetHttpsProxiesRestConnectionImpl google::cloud::cpp::compute::region_target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request) override; + StatusOr PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + PatchTargetHttpsProxyRequest const& request) override; + + future> + PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetSslCertificates(google::cloud::cpp::compute::region_target_https_proxies:: v1::SetSslCertificatesRequest const& request) override; + StatusOr SetSslCertificates( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + SetSslCertificatesRequest const& request) override; + + future> + SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetUrlMap( google::cloud::cpp::compute::region_target_https_proxies::v1:: SetUrlMapRequest const& request) override; + StatusOr SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + SetUrlMapRequest const& request) override; + + future> SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr diff --git a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.cc b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.cc index c9767f7278be0..751c84fb83cfa 100644 --- a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.cc +++ b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.cc @@ -49,6 +49,33 @@ RegionTargetHttpsProxiesTracingConnection::DeleteTargetHttpsProxy( child_->DeleteTargetHttpsProxy(request)); } +StatusOr +RegionTargetHttpsProxiesTracingConnection::DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + DeleteTargetHttpsProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_target_https_proxies_v1::" + "RegionTargetHttpsProxiesConnection::DeleteTargetHttpsProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionTargetHttpsProxiesTracingConnection::DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_target_https_proxies_v1::" + "RegionTargetHttpsProxiesConnection::DeleteTargetHttpsProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionTargetHttpsProxiesTracingConnection::GetTargetHttpsProxy( google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -72,6 +99,33 @@ RegionTargetHttpsProxiesTracingConnection::InsertTargetHttpsProxy( child_->InsertTargetHttpsProxy(request)); } +StatusOr +RegionTargetHttpsProxiesTracingConnection::InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + InsertTargetHttpsProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_target_https_proxies_v1::" + "RegionTargetHttpsProxiesConnection::InsertTargetHttpsProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertTargetHttpsProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionTargetHttpsProxiesTracingConnection::InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_target_https_proxies_v1::" + "RegionTargetHttpsProxiesConnection::InsertTargetHttpsProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertTargetHttpsProxy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionTargetHttpsProxiesTracingConnection::ListRegionTargetHttpsProxies( google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -98,6 +152,33 @@ RegionTargetHttpsProxiesTracingConnection::PatchTargetHttpsProxy( child_->PatchTargetHttpsProxy(request)); } +StatusOr +RegionTargetHttpsProxiesTracingConnection::PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + PatchTargetHttpsProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_target_https_proxies_v1::" + "RegionTargetHttpsProxiesConnection::PatchTargetHttpsProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchTargetHttpsProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionTargetHttpsProxiesTracingConnection::PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_target_https_proxies_v1::" + "RegionTargetHttpsProxiesConnection::PatchTargetHttpsProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchTargetHttpsProxy( + google::cloud::ExperimentalTag{}, operation)); +} + future> RegionTargetHttpsProxiesTracingConnection::SetSslCertificates( google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -110,6 +191,33 @@ RegionTargetHttpsProxiesTracingConnection::SetSslCertificates( child_->SetSslCertificates(request)); } +StatusOr +RegionTargetHttpsProxiesTracingConnection::SetSslCertificates( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + SetSslCertificatesRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_target_https_proxies_v1::" + "RegionTargetHttpsProxiesConnection::SetSslCertificates"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetSslCertificates(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionTargetHttpsProxiesTracingConnection::SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_target_https_proxies_v1::" + "RegionTargetHttpsProxiesConnection::SetSslCertificates"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetSslCertificates(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionTargetHttpsProxiesTracingConnection::SetUrlMap( google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -121,6 +229,33 @@ RegionTargetHttpsProxiesTracingConnection::SetUrlMap( return internal::EndSpan(std::move(span), child_->SetUrlMap(request)); } +StatusOr +RegionTargetHttpsProxiesTracingConnection::SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + SetUrlMapRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_target_https_proxies_v1::" + "RegionTargetHttpsProxiesConnection::SetUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetUrlMap(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionTargetHttpsProxiesTracingConnection::SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_target_https_proxies_v1::" + "RegionTargetHttpsProxiesConnection::SetUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetUrlMap(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr< diff --git a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.h b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.h index d1ce5f51feed0..526492fce4360 100644 --- a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.h +++ b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.h @@ -49,6 +49,16 @@ class RegionTargetHttpsProxiesTracingConnection google::cloud::cpp::compute::region_target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request) override; + StatusOr DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + DeleteTargetHttpsProxyRequest const& request) override; + + future> + DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetHttpsProxy( google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -59,6 +69,16 @@ class RegionTargetHttpsProxiesTracingConnection google::cloud::cpp::compute::region_target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request) override; + StatusOr InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + InsertTargetHttpsProxyRequest const& request) override; + + future> + InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionTargetHttpsProxies( google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -69,14 +89,43 @@ class RegionTargetHttpsProxiesTracingConnection google::cloud::cpp::compute::region_target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request) override; + StatusOr PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + PatchTargetHttpsProxyRequest const& request) override; + + future> + PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetSslCertificates(google::cloud::cpp::compute::region_target_https_proxies:: v1::SetSslCertificatesRequest const& request) override; + StatusOr SetSslCertificates( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + SetSslCertificatesRequest const& request) override; + + future> + SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetUrlMap( google::cloud::cpp::compute::region_target_https_proxies::v1:: SetUrlMapRequest const& request) override; + StatusOr SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + SetUrlMapRequest const& request) override; + + future> SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr diff --git a/google/cloud/compute/region_target_https_proxies/v1/mocks/mock_region_target_https_proxies_connection.h b/google/cloud/compute/region_target_https_proxies/v1/mocks/mock_region_target_https_proxies_connection.h index 1b5a065837c0f..7f46415f77f56 100644 --- a/google/cloud/compute/region_target_https_proxies/v1/mocks/mock_region_target_https_proxies_connection.h +++ b/google/cloud/compute/region_target_https_proxies/v1/mocks/mock_region_target_https_proxies_connection.h @@ -55,6 +55,19 @@ class MockRegionTargetHttpsProxiesConnection DeleteTargetHttpsProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteTargetHttpsProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + DeleteTargetHttpsProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteTargetHttpsProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetTargetHttpsProxy, (google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -67,6 +80,19 @@ class MockRegionTargetHttpsProxiesConnection InsertTargetHttpsProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertTargetHttpsProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + InsertTargetHttpsProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertTargetHttpsProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRegionTargetHttpsProxies, (google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -79,17 +105,55 @@ class MockRegionTargetHttpsProxiesConnection PatchTargetHttpsProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchTargetHttpsProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + PatchTargetHttpsProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchTargetHttpsProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetSslCertificates, (google::cloud::cpp::compute::region_target_https_proxies::v1:: SetSslCertificatesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetSslCertificates, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + SetSslCertificatesRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetSslCertificates, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetUrlMap, (google::cloud::cpp::compute::region_target_https_proxies::v1:: SetUrlMapRequest const& request), (override)); + + MOCK_METHOD(StatusOr, SetUrlMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + SetUrlMapRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetUrlMap, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection.cc b/google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection.cc index 64fd40bc537f5..a53d15a7769a3 100644 --- a/google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection.cc +++ b/google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection.cc @@ -47,6 +47,24 @@ RegionTargetHttpsProxiesConnection::DeleteTargetHttpsProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionTargetHttpsProxiesConnection::DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + DeleteTargetHttpsProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionTargetHttpsProxiesConnection::DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionTargetHttpsProxiesConnection::GetTargetHttpsProxy( google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -63,6 +81,24 @@ RegionTargetHttpsProxiesConnection::InsertTargetHttpsProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionTargetHttpsProxiesConnection::InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + InsertTargetHttpsProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionTargetHttpsProxiesConnection::InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionTargetHttpsProxiesConnection::ListRegionTargetHttpsProxies( google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -80,10 +116,46 @@ RegionTargetHttpsProxiesConnection::PatchTargetHttpsProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionTargetHttpsProxiesConnection::PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + PatchTargetHttpsProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +RegionTargetHttpsProxiesConnection::PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionTargetHttpsProxiesConnection::SetSslCertificates( + google::cloud::cpp::compute::region_target_https_proxies::v1:: + SetSslCertificatesRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr RegionTargetHttpsProxiesConnection::SetSslCertificates( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: SetSslCertificatesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionTargetHttpsProxiesConnection::SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -98,6 +170,24 @@ RegionTargetHttpsProxiesConnection::SetUrlMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionTargetHttpsProxiesConnection::SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + SetUrlMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionTargetHttpsProxiesConnection::SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_region_target_https_proxies_v1 } // namespace cloud diff --git a/google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection.h b/google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection.h index 817b8081c77c6..9c7997aa8b417 100644 --- a/google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection.h +++ b/google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_retry_traits.h" #include "google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -206,6 +208,17 @@ class RegionTargetHttpsProxiesConnection { google::cloud::cpp::compute::region_target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request); + virtual StatusOr + DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + DeleteTargetHttpsProxyRequest const& request); + + virtual future> + DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetTargetHttpsProxy(google::cloud::cpp::compute::region_target_https_proxies:: v1::GetTargetHttpsProxyRequest const& request); @@ -215,6 +228,17 @@ class RegionTargetHttpsProxiesConnection { google::cloud::cpp::compute::region_target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request); + virtual StatusOr + InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + InsertTargetHttpsProxyRequest const& request); + + virtual future> + InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionTargetHttpsProxies( google::cloud::cpp::compute::region_target_https_proxies::v1:: @@ -225,13 +249,43 @@ class RegionTargetHttpsProxiesConnection { google::cloud::cpp::compute::region_target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request); + virtual StatusOr + PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + PatchTargetHttpsProxyRequest const& request); + + virtual future> + PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetSslCertificates(google::cloud::cpp::compute::region_target_https_proxies:: v1::SetSslCertificatesRequest const& request); + virtual StatusOr + SetSslCertificates(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies:: + v1::SetSslCertificatesRequest const& request); + + virtual future> + SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetUrlMap(google::cloud::cpp::compute::region_target_https_proxies::v1:: SetUrlMapRequest const& request); + + virtual StatusOr SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_https_proxies::v1:: + SetUrlMapRequest const& request); + + virtual future> + SetUrlMap(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_rest_connection_impl.cc b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_rest_connection_impl.cc index 3548d2880061b..dd965483303dd 100644 --- a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_rest_connection_impl.cc +++ b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -106,6 +107,79 @@ RegionTargetTcpProxiesRestConnectionImpl::DeleteTargetTcpProxy( }); } +StatusOr +RegionTargetTcpProxiesRestConnectionImpl::DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_tcp_proxies::v1:: + DeleteTargetTcpProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTargetTcpProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_target_tcp_proxies::v1:: + DeleteTargetTcpProxyRequest const& request) { + return stub_->DeleteTargetTcpProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionTargetTcpProxiesRestConnectionImpl::DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionTargetTcpProxiesRestConnectionImpl::GetTargetTcpProxy( google::cloud::cpp::compute::region_target_tcp_proxies::v1:: @@ -182,6 +256,79 @@ RegionTargetTcpProxiesRestConnectionImpl::InsertTargetTcpProxy( }); } +StatusOr +RegionTargetTcpProxiesRestConnectionImpl::InsertTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_tcp_proxies::v1:: + InsertTargetTcpProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertTargetTcpProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_target_tcp_proxies::v1:: + InsertTargetTcpProxyRequest const& request) { + return stub_->InsertTargetTcpProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionTargetTcpProxiesRestConnectionImpl::InsertTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionTargetTcpProxiesRestConnectionImpl::ListRegionTargetTcpProxies( google::cloud::cpp::compute::region_target_tcp_proxies::v1:: diff --git a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_rest_connection_impl.h b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_rest_connection_impl.h index 1c0f41636f947..6661326c6569d 100644 --- a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_rest_connection_impl.h +++ b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_rest_connection_impl.h @@ -59,6 +59,16 @@ class RegionTargetTcpProxiesRestConnectionImpl google::cloud::cpp::compute::region_target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const& request) override; + StatusOr DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_tcp_proxies::v1:: + DeleteTargetTcpProxyRequest const& request) override; + + future> + DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetTcpProxy( google::cloud::cpp::compute::region_target_tcp_proxies::v1:: GetTargetTcpProxyRequest const& request) override; @@ -68,6 +78,16 @@ class RegionTargetTcpProxiesRestConnectionImpl google::cloud::cpp::compute::region_target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const& request) override; + StatusOr InsertTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_tcp_proxies::v1:: + InsertTargetTcpProxyRequest const& request) override; + + future> + InsertTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionTargetTcpProxies( google::cloud::cpp::compute::region_target_tcp_proxies::v1:: diff --git a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.cc b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.cc index a8693dcf39018..5d34cd42de03f 100644 --- a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.cc +++ b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.cc @@ -49,6 +49,33 @@ RegionTargetTcpProxiesTracingConnection::DeleteTargetTcpProxy( child_->DeleteTargetTcpProxy(request)); } +StatusOr +RegionTargetTcpProxiesTracingConnection::DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_tcp_proxies::v1:: + DeleteTargetTcpProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_target_tcp_proxies_v1::RegionTargetTcpProxiesConnection::" + "DeleteTargetTcpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteTargetTcpProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionTargetTcpProxiesTracingConnection::DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_target_tcp_proxies_v1::RegionTargetTcpProxiesConnection::" + "DeleteTargetTcpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteTargetTcpProxy( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionTargetTcpProxiesTracingConnection::GetTargetTcpProxy( google::cloud::cpp::compute::region_target_tcp_proxies::v1:: @@ -72,6 +99,33 @@ RegionTargetTcpProxiesTracingConnection::InsertTargetTcpProxy( child_->InsertTargetTcpProxy(request)); } +StatusOr +RegionTargetTcpProxiesTracingConnection::InsertTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_tcp_proxies::v1:: + InsertTargetTcpProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_region_target_tcp_proxies_v1::RegionTargetTcpProxiesConnection::" + "InsertTargetTcpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertTargetTcpProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionTargetTcpProxiesTracingConnection::InsertTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_target_tcp_proxies_v1::RegionTargetTcpProxiesConnection::" + "InsertTargetTcpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertTargetTcpProxy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionTargetTcpProxiesTracingConnection::ListRegionTargetTcpProxies( google::cloud::cpp::compute::region_target_tcp_proxies::v1:: diff --git a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.h b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.h index 0419ab66b7843..63dae1cf1347e 100644 --- a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.h +++ b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.h @@ -49,6 +49,16 @@ class RegionTargetTcpProxiesTracingConnection google::cloud::cpp::compute::region_target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const& request) override; + StatusOr DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_tcp_proxies::v1:: + DeleteTargetTcpProxyRequest const& request) override; + + future> + DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetTcpProxy( google::cloud::cpp::compute::region_target_tcp_proxies::v1:: GetTargetTcpProxyRequest const& request) override; @@ -58,6 +68,16 @@ class RegionTargetTcpProxiesTracingConnection google::cloud::cpp::compute::region_target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const& request) override; + StatusOr InsertTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_tcp_proxies::v1:: + InsertTargetTcpProxyRequest const& request) override; + + future> + InsertTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionTargetTcpProxies( google::cloud::cpp::compute::region_target_tcp_proxies::v1:: diff --git a/google/cloud/compute/region_target_tcp_proxies/v1/mocks/mock_region_target_tcp_proxies_connection.h b/google/cloud/compute/region_target_tcp_proxies/v1/mocks/mock_region_target_tcp_proxies_connection.h index cddd96548d5ec..23895271ade00 100644 --- a/google/cloud/compute/region_target_tcp_proxies/v1/mocks/mock_region_target_tcp_proxies_connection.h +++ b/google/cloud/compute/region_target_tcp_proxies/v1/mocks/mock_region_target_tcp_proxies_connection.h @@ -55,6 +55,19 @@ class MockRegionTargetTcpProxiesConnection DeleteTargetTcpProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteTargetTcpProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_tcp_proxies::v1:: + DeleteTargetTcpProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteTargetTcpProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetTargetTcpProxy, (google::cloud::cpp::compute::region_target_tcp_proxies::v1:: @@ -67,6 +80,19 @@ class MockRegionTargetTcpProxiesConnection InsertTargetTcpProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertTargetTcpProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_tcp_proxies::v1:: + InsertTargetTcpProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertTargetTcpProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRegionTargetTcpProxies, (google::cloud::cpp::compute::region_target_tcp_proxies::v1:: diff --git a/google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection.cc b/google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection.cc index 2f3a63397b9b7..a9c7cd4276bd9 100644 --- a/google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection.cc +++ b/google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection.cc @@ -46,6 +46,24 @@ RegionTargetTcpProxiesConnection::DeleteTargetTcpProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionTargetTcpProxiesConnection::DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_tcp_proxies::v1:: + DeleteTargetTcpProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionTargetTcpProxiesConnection::DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionTargetTcpProxiesConnection::GetTargetTcpProxy( google::cloud::cpp::compute::region_target_tcp_proxies::v1:: @@ -62,6 +80,24 @@ RegionTargetTcpProxiesConnection::InsertTargetTcpProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionTargetTcpProxiesConnection::InsertTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_tcp_proxies::v1:: + InsertTargetTcpProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionTargetTcpProxiesConnection::InsertTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionTargetTcpProxiesConnection::ListRegionTargetTcpProxies( google::cloud::cpp::compute::region_target_tcp_proxies::v1:: diff --git a/google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection.h b/google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection.h index 87312103f827f..a22194fac45f8 100644 --- a/google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection.h +++ b/google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_retry_traits.h" #include "google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -198,6 +200,17 @@ class RegionTargetTcpProxiesConnection { DeleteTargetTcpProxy(google::cloud::cpp::compute::region_target_tcp_proxies:: v1::DeleteTargetTcpProxyRequest const& request); + virtual StatusOr + DeleteTargetTcpProxy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_tcp_proxies:: + v1::DeleteTargetTcpProxyRequest const& request); + + virtual future> + DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetTargetTcpProxy(google::cloud::cpp::compute::region_target_tcp_proxies::v1:: GetTargetTcpProxyRequest const& request); @@ -206,6 +219,17 @@ class RegionTargetTcpProxiesConnection { InsertTargetTcpProxy(google::cloud::cpp::compute::region_target_tcp_proxies:: v1::InsertTargetTcpProxyRequest const& request); + virtual StatusOr + InsertTargetTcpProxy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_target_tcp_proxies:: + v1::InsertTargetTcpProxyRequest const& request); + + virtual future> + InsertTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionTargetTcpProxies( google::cloud::cpp::compute::region_target_tcp_proxies::v1:: diff --git a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_rest_connection_impl.cc b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_rest_connection_impl.cc index bb083ba15facf..15dff2b109b97 100644 --- a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_rest_connection_impl.cc +++ b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -103,6 +104,79 @@ RegionUrlMapsRestConnectionImpl::DeleteUrlMap( }); } +StatusOr +RegionUrlMapsRestConnectionImpl::DeleteUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1::DeleteUrlMapRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteUrlMap(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_url_maps::v1:: + DeleteUrlMapRequest const& request) { + return stub_->DeleteUrlMap(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionUrlMapsRestConnectionImpl::DeleteUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionUrlMapsRestConnectionImpl::GetUrlMap( google::cloud::cpp::compute::region_url_maps::v1::GetUrlMapRequest const& @@ -179,6 +253,79 @@ RegionUrlMapsRestConnectionImpl::InsertUrlMap( }); } +StatusOr +RegionUrlMapsRestConnectionImpl::InsertUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1::InsertUrlMapRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertUrlMap(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_url_maps::v1:: + InsertUrlMapRequest const& request) { + return stub_->InsertUrlMap(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionUrlMapsRestConnectionImpl::InsertUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RegionUrlMapsRestConnectionImpl::ListRegionUrlMaps( google::cloud::cpp::compute::region_url_maps::v1::ListRegionUrlMapsRequest @@ -276,6 +423,79 @@ RegionUrlMapsRestConnectionImpl::PatchUrlMap( }); } +StatusOr +RegionUrlMapsRestConnectionImpl::PatchUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1::PatchUrlMapRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchUrlMap(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_url_maps::v1:: + PatchUrlMapRequest const& request) { + return stub_->PatchUrlMap(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionUrlMapsRestConnectionImpl::PatchUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> RegionUrlMapsRestConnectionImpl::UpdateUrlMap( google::cloud::cpp::compute::region_url_maps::v1::UpdateUrlMapRequest const& @@ -336,6 +556,79 @@ RegionUrlMapsRestConnectionImpl::UpdateUrlMap( }); } +StatusOr +RegionUrlMapsRestConnectionImpl::UpdateUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1::UpdateUrlMapRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateUrlMap(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::region_url_maps::v1:: + UpdateUrlMapRequest const& request) { + return stub_->UpdateUrlMap(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RegionUrlMapsRestConnectionImpl::UpdateUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RegionUrlMapsRestConnectionImpl::Validate( google::cloud::cpp::compute::region_url_maps::v1::ValidateRequest const& diff --git a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_rest_connection_impl.h b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_rest_connection_impl.h index 14eb12bfd6654..2502c402bc73e 100644 --- a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_rest_connection_impl.h +++ b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_rest_connection_impl.h @@ -56,6 +56,15 @@ class RegionUrlMapsRestConnectionImpl google::cloud::cpp::compute::region_url_maps::v1:: DeleteUrlMapRequest const& request) override; + StatusOr DeleteUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + DeleteUrlMapRequest const& request) override; + + future> DeleteUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetUrlMap( google::cloud::cpp::compute::region_url_maps::v1::GetUrlMapRequest const& request) override; @@ -64,6 +73,15 @@ class RegionUrlMapsRestConnectionImpl google::cloud::cpp::compute::region_url_maps::v1:: InsertUrlMapRequest const& request) override; + StatusOr InsertUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + InsertUrlMapRequest const& request) override; + + future> InsertUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionUrlMaps( google::cloud::cpp::compute::region_url_maps::v1::ListRegionUrlMapsRequest request) override; @@ -72,10 +90,28 @@ class RegionUrlMapsRestConnectionImpl google::cloud::cpp::compute::region_url_maps::v1:: PatchUrlMapRequest const& request) override; + StatusOr PatchUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + PatchUrlMapRequest const& request) override; + + future> PatchUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateUrlMap( google::cloud::cpp::compute::region_url_maps::v1:: UpdateUrlMapRequest const& request) override; + StatusOr UpdateUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + UpdateUrlMapRequest const& request) override; + + future> UpdateUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr Validate( google::cloud::cpp::compute::region_url_maps::v1::ValidateRequest const& request) override; diff --git a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.cc b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.cc index 1bb9f269a5af5..9b94e15814661 100644 --- a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.cc +++ b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.cc @@ -43,6 +43,31 @@ RegionUrlMapsTracingConnection::DeleteUrlMap( return internal::EndSpan(std::move(span), child_->DeleteUrlMap(request)); } +StatusOr +RegionUrlMapsTracingConnection::DeleteUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1::DeleteUrlMapRequest const& + request) { + auto span = internal::MakeSpan( + "compute_region_url_maps_v1::RegionUrlMapsConnection::DeleteUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteUrlMap(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionUrlMapsTracingConnection::DeleteUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_url_maps_v1::RegionUrlMapsConnection::DeleteUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteUrlMap(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionUrlMapsTracingConnection::GetUrlMap( google::cloud::cpp::compute::region_url_maps::v1::GetUrlMapRequest const& @@ -63,6 +88,31 @@ RegionUrlMapsTracingConnection::InsertUrlMap( return internal::EndSpan(std::move(span), child_->InsertUrlMap(request)); } +StatusOr +RegionUrlMapsTracingConnection::InsertUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1::InsertUrlMapRequest const& + request) { + auto span = internal::MakeSpan( + "compute_region_url_maps_v1::RegionUrlMapsConnection::InsertUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertUrlMap(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionUrlMapsTracingConnection::InsertUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_url_maps_v1::RegionUrlMapsConnection::InsertUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertUrlMap(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RegionUrlMapsTracingConnection::ListRegionUrlMaps( google::cloud::cpp::compute::region_url_maps::v1::ListRegionUrlMapsRequest @@ -85,6 +135,31 @@ RegionUrlMapsTracingConnection::PatchUrlMap( return internal::EndSpan(std::move(span), child_->PatchUrlMap(request)); } +StatusOr +RegionUrlMapsTracingConnection::PatchUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1::PatchUrlMapRequest const& + request) { + auto span = internal::MakeSpan( + "compute_region_url_maps_v1::RegionUrlMapsConnection::PatchUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchUrlMap(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionUrlMapsTracingConnection::PatchUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_url_maps_v1::RegionUrlMapsConnection::PatchUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchUrlMap(google::cloud::ExperimentalTag{}, operation)); +} + future> RegionUrlMapsTracingConnection::UpdateUrlMap( google::cloud::cpp::compute::region_url_maps::v1::UpdateUrlMapRequest const& @@ -95,6 +170,31 @@ RegionUrlMapsTracingConnection::UpdateUrlMap( return internal::EndSpan(std::move(span), child_->UpdateUrlMap(request)); } +StatusOr +RegionUrlMapsTracingConnection::UpdateUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1::UpdateUrlMapRequest const& + request) { + auto span = internal::MakeSpan( + "compute_region_url_maps_v1::RegionUrlMapsConnection::UpdateUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateUrlMap(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RegionUrlMapsTracingConnection::UpdateUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_region_url_maps_v1::RegionUrlMapsConnection::UpdateUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateUrlMap(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RegionUrlMapsTracingConnection::Validate( google::cloud::cpp::compute::region_url_maps::v1::ValidateRequest const& diff --git a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.h b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.h index f75daf51809d7..ee891b7cb8f0f 100644 --- a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.h +++ b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.h @@ -45,6 +45,15 @@ class RegionUrlMapsTracingConnection google::cloud::cpp::compute::region_url_maps::v1:: DeleteUrlMapRequest const& request) override; + StatusOr DeleteUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + DeleteUrlMapRequest const& request) override; + + future> DeleteUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetUrlMap( google::cloud::cpp::compute::region_url_maps::v1::GetUrlMapRequest const& request) override; @@ -53,6 +62,15 @@ class RegionUrlMapsTracingConnection google::cloud::cpp::compute::region_url_maps::v1:: InsertUrlMapRequest const& request) override; + StatusOr InsertUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + InsertUrlMapRequest const& request) override; + + future> InsertUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRegionUrlMaps( google::cloud::cpp::compute::region_url_maps::v1::ListRegionUrlMapsRequest request) override; @@ -61,10 +79,28 @@ class RegionUrlMapsTracingConnection google::cloud::cpp::compute::region_url_maps::v1:: PatchUrlMapRequest const& request) override; + StatusOr PatchUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + PatchUrlMapRequest const& request) override; + + future> PatchUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateUrlMap( google::cloud::cpp::compute::region_url_maps::v1:: UpdateUrlMapRequest const& request) override; + StatusOr UpdateUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + UpdateUrlMapRequest const& request) override; + + future> UpdateUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr Validate( google::cloud::cpp::compute::region_url_maps::v1::ValidateRequest const& request) override; diff --git a/google/cloud/compute/region_url_maps/v1/mocks/mock_region_url_maps_connection.h b/google/cloud/compute/region_url_maps/v1/mocks/mock_region_url_maps_connection.h index d9713f61a20ad..336936e28e527 100644 --- a/google/cloud/compute/region_url_maps/v1/mocks/mock_region_url_maps_connection.h +++ b/google/cloud/compute/region_url_maps/v1/mocks/mock_region_url_maps_connection.h @@ -53,6 +53,19 @@ class MockRegionUrlMapsConnection DeleteUrlMapRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteUrlMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + DeleteUrlMapRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteUrlMap, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetUrlMap, (google::cloud::cpp::compute::region_url_maps::v1::GetUrlMapRequest const& @@ -65,6 +78,19 @@ class MockRegionUrlMapsConnection InsertUrlMapRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertUrlMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + InsertUrlMapRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertUrlMap, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRegionUrlMaps, (google::cloud::cpp::compute::region_url_maps::v1:: @@ -77,12 +103,37 @@ class MockRegionUrlMapsConnection PatchUrlMapRequest const& request), (override)); + MOCK_METHOD(StatusOr, PatchUrlMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + PatchUrlMapRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchUrlMap, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateUrlMap, (google::cloud::cpp::compute::region_url_maps::v1:: UpdateUrlMapRequest const& request), (override)); + MOCK_METHOD(StatusOr, + UpdateUrlMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + UpdateUrlMapRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateUrlMap, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, Validate, diff --git a/google/cloud/compute/region_url_maps/v1/region_url_maps_connection.cc b/google/cloud/compute/region_url_maps/v1/region_url_maps_connection.cc index 20d0567ac97bc..1e2223cac9300 100644 --- a/google/cloud/compute/region_url_maps/v1/region_url_maps_connection.cc +++ b/google/cloud/compute/region_url_maps/v1/region_url_maps_connection.cc @@ -45,6 +45,24 @@ RegionUrlMapsConnection::DeleteUrlMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionUrlMapsConnection::DeleteUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + DeleteUrlMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionUrlMapsConnection::DeleteUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionUrlMapsConnection::GetUrlMap( google::cloud::cpp::compute::region_url_maps::v1::GetUrlMapRequest const&) { @@ -60,6 +78,24 @@ RegionUrlMapsConnection::InsertUrlMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionUrlMapsConnection::InsertUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + InsertUrlMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionUrlMapsConnection::InsertUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RegionUrlMapsConnection::ListRegionUrlMaps( google::cloud::cpp::compute::region_url_maps::v1:: @@ -77,6 +113,24 @@ RegionUrlMapsConnection::PatchUrlMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionUrlMapsConnection::PatchUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + PatchUrlMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionUrlMapsConnection::PatchUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RegionUrlMapsConnection::UpdateUrlMap( google::cloud::cpp::compute::region_url_maps::v1:: @@ -86,6 +140,24 @@ RegionUrlMapsConnection::UpdateUrlMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RegionUrlMapsConnection::UpdateUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + UpdateUrlMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RegionUrlMapsConnection::UpdateUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RegionUrlMapsConnection::Validate( google::cloud::cpp::compute::region_url_maps::v1::ValidateRequest const&) { diff --git a/google/cloud/compute/region_url_maps/v1/region_url_maps_connection.h b/google/cloud/compute/region_url_maps/v1/region_url_maps_connection.h index cfb80e2f45985..5c3d678157a36 100644 --- a/google/cloud/compute/region_url_maps/v1/region_url_maps_connection.h +++ b/google/cloud/compute/region_url_maps/v1/region_url_maps_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/region_url_maps/v1/internal/region_url_maps_retry_traits.h" #include "google/cloud/compute/region_url_maps/v1/region_url_maps_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -189,6 +191,15 @@ class RegionUrlMapsConnection { DeleteUrlMap(google::cloud::cpp::compute::region_url_maps::v1:: DeleteUrlMapRequest const& request); + virtual StatusOr DeleteUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + DeleteUrlMapRequest const& request); + + virtual future> + DeleteUrlMap(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetUrlMap( google::cloud::cpp::compute::region_url_maps::v1::GetUrlMapRequest const& request); @@ -197,6 +208,15 @@ class RegionUrlMapsConnection { InsertUrlMap(google::cloud::cpp::compute::region_url_maps::v1:: InsertUrlMapRequest const& request); + virtual StatusOr InsertUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + InsertUrlMapRequest const& request); + + virtual future> + InsertUrlMap(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRegionUrlMaps( google::cloud::cpp::compute::region_url_maps::v1::ListRegionUrlMapsRequest @@ -206,10 +226,28 @@ class RegionUrlMapsConnection { PatchUrlMap(google::cloud::cpp::compute::region_url_maps::v1:: PatchUrlMapRequest const& request); + virtual StatusOr PatchUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + PatchUrlMapRequest const& request); + + virtual future> + PatchUrlMap(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> UpdateUrlMap(google::cloud::cpp::compute::region_url_maps::v1:: UpdateUrlMapRequest const& request); + virtual StatusOr UpdateUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::region_url_maps::v1:: + UpdateUrlMapRequest const& request); + + virtual future> + UpdateUrlMap(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr Validate( google::cloud::cpp::compute::region_url_maps::v1::ValidateRequest const& diff --git a/google/cloud/compute/region_zones/v1/region_zones_connection.h b/google/cloud/compute/region_zones/v1/region_zones_connection.h index 16589cbc982e3..3d493e1a3012a 100644 --- a/google/cloud/compute/region_zones/v1/region_zones_connection.h +++ b/google/cloud/compute/region_zones/v1/region_zones_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/region_zones/v1/internal/region_zones_retry_traits.h" #include "google/cloud/compute/region_zones/v1/region_zones_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/compute/regions/v1/regions_connection.h b/google/cloud/compute/regions/v1/regions_connection.h index 9ac789bce5581..0ba0c0e80d9d9 100644 --- a/google/cloud/compute/regions/v1/regions_connection.h +++ b/google/cloud/compute/regions/v1/regions_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/regions/v1/internal/regions_retry_traits.h" #include "google/cloud/compute/regions/v1/regions_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/compute/reservations/v1/internal/reservations_rest_connection_impl.cc b/google/cloud/compute/reservations/v1/internal/reservations_rest_connection_impl.cc index 6c051b3e0c98d..da697767b3c7b 100644 --- a/google/cloud/compute/reservations/v1/internal/reservations_rest_connection_impl.cc +++ b/google/cloud/compute/reservations/v1/internal/reservations_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -146,6 +147,79 @@ ReservationsRestConnectionImpl::DeleteReservation( }); } +StatusOr +ReservationsRestConnectionImpl::DeleteReservation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + DeleteReservationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteReservation(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::reservations::v1:: + DeleteReservationRequest const& request) { + return stub_->DeleteReservation(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ReservationsRestConnectionImpl::DeleteReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StatusOr ReservationsRestConnectionImpl::GetReservation( google::cloud::cpp::compute::reservations::v1::GetReservationRequest const& @@ -238,6 +312,79 @@ ReservationsRestConnectionImpl::InsertReservation( }); } +StatusOr +ReservationsRestConnectionImpl::InsertReservation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + InsertReservationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertReservation(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::reservations::v1:: + InsertReservationRequest const& request) { + return stub_->InsertReservation(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ReservationsRestConnectionImpl::InsertReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StreamRange ReservationsRestConnectionImpl::ListReservations( google::cloud::cpp::compute::reservations::v1::ListReservationsRequest @@ -336,6 +483,79 @@ ReservationsRestConnectionImpl::Resize( }); } +StatusOr +ReservationsRestConnectionImpl::Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1::ResizeRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->Resize(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::reservations::v1::ResizeRequest const& + request) { + return stub_->Resize(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ReservationsRestConnectionImpl::Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StatusOr ReservationsRestConnectionImpl::SetIamPolicy( google::cloud::cpp::compute::reservations::v1::SetIamPolicyRequest const& @@ -428,6 +648,79 @@ ReservationsRestConnectionImpl::UpdateReservation( }); } +StatusOr +ReservationsRestConnectionImpl::UpdateReservation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + UpdateReservationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateReservation(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::reservations::v1:: + UpdateReservationRequest const& request) { + return stub_->UpdateReservation(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ReservationsRestConnectionImpl::UpdateReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_reservations_v1_internal } // namespace cloud diff --git a/google/cloud/compute/reservations/v1/internal/reservations_rest_connection_impl.h b/google/cloud/compute/reservations/v1/internal/reservations_rest_connection_impl.h index 7c90e5bd71b4e..46fc5967e0b4e 100644 --- a/google/cloud/compute/reservations/v1/internal/reservations_rest_connection_impl.h +++ b/google/cloud/compute/reservations/v1/internal/reservations_rest_connection_impl.h @@ -61,6 +61,16 @@ class ReservationsRestConnectionImpl DeleteReservation(google::cloud::cpp::compute::reservations::v1:: DeleteReservationRequest const& request) override; + StatusOr DeleteReservation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + DeleteReservationRequest const& request) override; + + future> + DeleteReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetReservation( google::cloud::cpp::compute::reservations::v1:: GetReservationRequest const& request) override; @@ -73,6 +83,16 @@ class ReservationsRestConnectionImpl InsertReservation(google::cloud::cpp::compute::reservations::v1:: InsertReservationRequest const& request) override; + StatusOr InsertReservation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + InsertReservationRequest const& request) override; + + future> + InsertReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListReservations( google::cloud::cpp::compute::reservations::v1::ListReservationsRequest request) override; @@ -81,6 +101,15 @@ class ReservationsRestConnectionImpl google::cloud::cpp::compute::reservations::v1::ResizeRequest const& request) override; + StatusOr Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1::ResizeRequest const& + request) override; + + future> Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::reservations::v1::SetIamPolicyRequest const& request) override; @@ -93,6 +122,16 @@ class ReservationsRestConnectionImpl UpdateReservation(google::cloud::cpp::compute::reservations::v1:: UpdateReservationRequest const& request) override; + StatusOr UpdateReservation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + UpdateReservationRequest const& request) override; + + future> + UpdateReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy(Options const& options) { diff --git a/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.cc b/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.cc index 7630c3377aec0..bd1973772b58f 100644 --- a/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.cc +++ b/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.cc @@ -58,6 +58,31 @@ ReservationsTracingConnection::DeleteReservation( return internal::EndSpan(std::move(span), child_->DeleteReservation(request)); } +StatusOr +ReservationsTracingConnection::DeleteReservation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + DeleteReservationRequest const& request) { + auto span = internal::MakeSpan( + "compute_reservations_v1::ReservationsConnection::DeleteReservation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteReservation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ReservationsTracingConnection::DeleteReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_reservations_v1::ReservationsConnection::DeleteReservation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteReservation(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ReservationsTracingConnection::GetReservation( google::cloud::cpp::compute::reservations::v1::GetReservationRequest const& @@ -88,6 +113,31 @@ ReservationsTracingConnection::InsertReservation( return internal::EndSpan(std::move(span), child_->InsertReservation(request)); } +StatusOr +ReservationsTracingConnection::InsertReservation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + InsertReservationRequest const& request) { + auto span = internal::MakeSpan( + "compute_reservations_v1::ReservationsConnection::InsertReservation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertReservation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ReservationsTracingConnection::InsertReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_reservations_v1::ReservationsConnection::InsertReservation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertReservation(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ReservationsTracingConnection::ListReservations( google::cloud::cpp::compute::reservations::v1::ListReservationsRequest @@ -111,6 +161,31 @@ ReservationsTracingConnection::Resize( return internal::EndSpan(std::move(span), child_->Resize(request)); } +StatusOr +ReservationsTracingConnection::Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1::ResizeRequest const& + request) { + auto span = internal::MakeSpan( + "compute_reservations_v1::ReservationsConnection::Resize"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->Resize(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ReservationsTracingConnection::Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_reservations_v1::ReservationsConnection::Resize"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->Resize(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ReservationsTracingConnection::SetIamPolicy( google::cloud::cpp::compute::reservations::v1::SetIamPolicyRequest const& @@ -141,6 +216,31 @@ ReservationsTracingConnection::UpdateReservation( return internal::EndSpan(std::move(span), child_->UpdateReservation(request)); } +StatusOr +ReservationsTracingConnection::UpdateReservation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + UpdateReservationRequest const& request) { + auto span = internal::MakeSpan( + "compute_reservations_v1::ReservationsConnection::UpdateReservation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateReservation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ReservationsTracingConnection::UpdateReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_reservations_v1::ReservationsConnection::UpdateReservation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateReservation(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.h b/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.h index 9168b38eaa1fd..c6a4380e7f2cd 100644 --- a/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.h +++ b/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.h @@ -50,6 +50,16 @@ class ReservationsTracingConnection DeleteReservation(google::cloud::cpp::compute::reservations::v1:: DeleteReservationRequest const& request) override; + StatusOr DeleteReservation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + DeleteReservationRequest const& request) override; + + future> + DeleteReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetReservation( google::cloud::cpp::compute::reservations::v1:: GetReservationRequest const& request) override; @@ -62,6 +72,16 @@ class ReservationsTracingConnection InsertReservation(google::cloud::cpp::compute::reservations::v1:: InsertReservationRequest const& request) override; + StatusOr InsertReservation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + InsertReservationRequest const& request) override; + + future> + InsertReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListReservations( google::cloud::cpp::compute::reservations::v1::ListReservationsRequest request) override; @@ -70,6 +90,15 @@ class ReservationsTracingConnection google::cloud::cpp::compute::reservations::v1::ResizeRequest const& request) override; + StatusOr Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1::ResizeRequest const& + request) override; + + future> Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::reservations::v1::SetIamPolicyRequest const& request) override; @@ -82,6 +111,16 @@ class ReservationsTracingConnection UpdateReservation(google::cloud::cpp::compute::reservations::v1:: UpdateReservationRequest const& request) override; + StatusOr UpdateReservation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + UpdateReservationRequest const& request) override; + + future> + UpdateReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/reservations/v1/mocks/mock_reservations_connection.h b/google/cloud/compute/reservations/v1/mocks/mock_reservations_connection.h index 9164a55a47370..601f96ce7f01b 100644 --- a/google/cloud/compute/reservations/v1/mocks/mock_reservations_connection.h +++ b/google/cloud/compute/reservations/v1/mocks/mock_reservations_connection.h @@ -62,6 +62,19 @@ class MockReservationsConnection DeleteReservationRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteReservation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + DeleteReservationRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteReservation, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetReservation, (google::cloud::cpp::compute::reservations::v1:: @@ -80,6 +93,19 @@ class MockReservationsConnection InsertReservationRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertReservation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + InsertReservationRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertReservation, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListReservations, @@ -93,6 +119,19 @@ class MockReservationsConnection request), (override)); + MOCK_METHOD( + StatusOr, Resize, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1::ResizeRequest const& + request), + (override)); + + MOCK_METHOD(future>, + Resize, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, SetIamPolicy, (google::cloud::cpp::compute::reservations::v1::SetIamPolicyRequest const& @@ -111,6 +150,19 @@ class MockReservationsConnection (google::cloud::cpp::compute::reservations::v1:: UpdateReservationRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + UpdateReservation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + UpdateReservationRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateReservation, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/reservations/v1/reservations_connection.cc b/google/cloud/compute/reservations/v1/reservations_connection.cc index 30679341e2020..ea3e930b13bb9 100644 --- a/google/cloud/compute/reservations/v1/reservations_connection.cc +++ b/google/cloud/compute/reservations/v1/reservations_connection.cc @@ -55,6 +55,24 @@ ReservationsConnection::DeleteReservation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ReservationsConnection::DeleteReservation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + DeleteReservationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ReservationsConnection::DeleteReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ReservationsConnection::GetReservation( google::cloud::cpp::compute::reservations::v1:: @@ -77,6 +95,24 @@ ReservationsConnection::InsertReservation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ReservationsConnection::InsertReservation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + InsertReservationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ReservationsConnection::InsertReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ReservationsConnection::ListReservations( google::cloud::cpp::compute::reservations::v1:: @@ -93,6 +129,23 @@ ReservationsConnection::Resize( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ReservationsConnection::Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1::ResizeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ReservationsConnection::Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ReservationsConnection::SetIamPolicy( google::cloud::cpp::compute::reservations::v1::SetIamPolicyRequest const&) { @@ -115,6 +168,24 @@ ReservationsConnection::UpdateReservation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ReservationsConnection::UpdateReservation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + UpdateReservationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ReservationsConnection::UpdateReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_reservations_v1 } // namespace cloud diff --git a/google/cloud/compute/reservations/v1/reservations_connection.h b/google/cloud/compute/reservations/v1/reservations_connection.h index 3f13fe376ce86..41757472fb98f 100644 --- a/google/cloud/compute/reservations/v1/reservations_connection.h +++ b/google/cloud/compute/reservations/v1/reservations_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/reservations/v1/internal/reservations_retry_traits.h" #include "google/cloud/compute/reservations/v1/reservations_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -193,6 +195,16 @@ class ReservationsConnection { DeleteReservation(google::cloud::cpp::compute::reservations::v1:: DeleteReservationRequest const& request); + virtual StatusOr + DeleteReservation(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + DeleteReservationRequest const& request); + + virtual future> + DeleteReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetReservation( google::cloud::cpp::compute::reservations::v1:: GetReservationRequest const& request); @@ -205,6 +217,16 @@ class ReservationsConnection { InsertReservation(google::cloud::cpp::compute::reservations::v1:: InsertReservationRequest const& request); + virtual StatusOr + InsertReservation(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + InsertReservationRequest const& request); + + virtual future> + InsertReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListReservations( google::cloud::cpp::compute::reservations::v1::ListReservationsRequest @@ -214,6 +236,15 @@ class ReservationsConnection { google::cloud::cpp::compute::reservations::v1::ResizeRequest const& request); + virtual StatusOr Resize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1::ResizeRequest const& + request); + + virtual future> Resize( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr SetIamPolicy( google::cloud::cpp::compute::reservations::v1::SetIamPolicyRequest const& request); @@ -225,6 +256,16 @@ class ReservationsConnection { virtual future> UpdateReservation(google::cloud::cpp::compute::reservations::v1:: UpdateReservationRequest const& request); + + virtual StatusOr + UpdateReservation(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::reservations::v1:: + UpdateReservationRequest const& request); + + virtual future> + UpdateReservation( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/resource_policies/v1/internal/resource_policies_rest_connection_impl.cc b/google/cloud/compute/resource_policies/v1/internal/resource_policies_rest_connection_impl.cc index 5093a43195c03..811fe6c17620e 100644 --- a/google/cloud/compute/resource_policies/v1/internal/resource_policies_rest_connection_impl.cc +++ b/google/cloud/compute/resource_policies/v1/internal/resource_policies_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -147,6 +148,79 @@ ResourcePoliciesRestConnectionImpl::DeleteResourcePolicy( }); } +StatusOr +ResourcePoliciesRestConnectionImpl::DeleteResourcePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + DeleteResourcePolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteResourcePolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::resource_policies::v1:: + DeleteResourcePolicyRequest const& request) { + return stub_->DeleteResourcePolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ResourcePoliciesRestConnectionImpl::DeleteResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr ResourcePoliciesRestConnectionImpl::GetResourcePolicy( google::cloud::cpp::compute::resource_policies::v1:: @@ -239,6 +313,79 @@ ResourcePoliciesRestConnectionImpl::InsertResourcePolicy( }); } +StatusOr +ResourcePoliciesRestConnectionImpl::InsertResourcePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + InsertResourcePolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertResourcePolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::resource_policies::v1:: + InsertResourcePolicyRequest const& request) { + return stub_->InsertResourcePolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ResourcePoliciesRestConnectionImpl::InsertResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange ResourcePoliciesRestConnectionImpl::ListResourcePolicies( google::cloud::cpp::compute::resource_policies::v1:: @@ -338,6 +485,79 @@ ResourcePoliciesRestConnectionImpl::PatchResourcePolicy( }); } +StatusOr +ResourcePoliciesRestConnectionImpl::PatchResourcePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + PatchResourcePolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchResourcePolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::resource_policies::v1:: + PatchResourcePolicyRequest const& request) { + return stub_->PatchResourcePolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ResourcePoliciesRestConnectionImpl::PatchResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr ResourcePoliciesRestConnectionImpl::SetIamPolicy( google::cloud::cpp::compute::resource_policies::v1:: diff --git a/google/cloud/compute/resource_policies/v1/internal/resource_policies_rest_connection_impl.h b/google/cloud/compute/resource_policies/v1/internal/resource_policies_rest_connection_impl.h index 44557450a4808..04de8987459ab 100644 --- a/google/cloud/compute/resource_policies/v1/internal/resource_policies_rest_connection_impl.h +++ b/google/cloud/compute/resource_policies/v1/internal/resource_policies_rest_connection_impl.h @@ -62,6 +62,16 @@ class ResourcePoliciesRestConnectionImpl DeleteResourcePolicy(google::cloud::cpp::compute::resource_policies::v1:: DeleteResourcePolicyRequest const& request) override; + StatusOr DeleteResourcePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + DeleteResourcePolicyRequest const& request) override; + + future> + DeleteResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetResourcePolicy( google::cloud::cpp::compute::resource_policies::v1:: GetResourcePolicyRequest const& request) override; @@ -74,6 +84,16 @@ class ResourcePoliciesRestConnectionImpl InsertResourcePolicy(google::cloud::cpp::compute::resource_policies::v1:: InsertResourcePolicyRequest const& request) override; + StatusOr InsertResourcePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + InsertResourcePolicyRequest const& request) override; + + future> + InsertResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListResourcePolicies(google::cloud::cpp::compute::resource_policies::v1:: ListResourcePoliciesRequest request) override; @@ -82,6 +102,16 @@ class ResourcePoliciesRestConnectionImpl PatchResourcePolicy(google::cloud::cpp::compute::resource_policies::v1:: PatchResourcePolicyRequest const& request) override; + StatusOr PatchResourcePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + PatchResourcePolicyRequest const& request) override; + + future> + PatchResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::resource_policies::v1:: SetIamPolicyRequest const& request) override; diff --git a/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.cc b/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.cc index 1a12febeb4a32..6894af4126ccf 100644 --- a/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.cc +++ b/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.cc @@ -62,6 +62,33 @@ ResourcePoliciesTracingConnection::DeleteResourcePolicy( child_->DeleteResourcePolicy(request)); } +StatusOr +ResourcePoliciesTracingConnection::DeleteResourcePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + DeleteResourcePolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_resource_policies_v1::ResourcePoliciesConnection::" + "DeleteResourcePolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteResourcePolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ResourcePoliciesTracingConnection::DeleteResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_resource_policies_v1::ResourcePoliciesConnection::" + "DeleteResourcePolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteResourcePolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ResourcePoliciesTracingConnection::GetResourcePolicy( google::cloud::cpp::compute::resource_policies::v1:: @@ -95,6 +122,33 @@ ResourcePoliciesTracingConnection::InsertResourcePolicy( child_->InsertResourcePolicy(request)); } +StatusOr +ResourcePoliciesTracingConnection::InsertResourcePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + InsertResourcePolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_resource_policies_v1::ResourcePoliciesConnection::" + "InsertResourcePolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertResourcePolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ResourcePoliciesTracingConnection::InsertResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_resource_policies_v1::ResourcePoliciesConnection::" + "InsertResourcePolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertResourcePolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ResourcePoliciesTracingConnection::ListResourcePolicies( google::cloud::cpp::compute::resource_policies::v1:: @@ -121,6 +175,33 @@ ResourcePoliciesTracingConnection::PatchResourcePolicy( child_->PatchResourcePolicy(request)); } +StatusOr +ResourcePoliciesTracingConnection::PatchResourcePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + PatchResourcePolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_resource_policies_v1::ResourcePoliciesConnection::" + "PatchResourcePolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchResourcePolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ResourcePoliciesTracingConnection::PatchResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_resource_policies_v1::ResourcePoliciesConnection::" + "PatchResourcePolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchResourcePolicy(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ResourcePoliciesTracingConnection::SetIamPolicy( google::cloud::cpp::compute::resource_policies::v1:: diff --git a/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.h b/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.h index 16b84a849d8ff..db40670fbe5c2 100644 --- a/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.h +++ b/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.h @@ -51,6 +51,16 @@ class ResourcePoliciesTracingConnection DeleteResourcePolicy(google::cloud::cpp::compute::resource_policies::v1:: DeleteResourcePolicyRequest const& request) override; + StatusOr DeleteResourcePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + DeleteResourcePolicyRequest const& request) override; + + future> + DeleteResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetResourcePolicy( google::cloud::cpp::compute::resource_policies::v1:: GetResourcePolicyRequest const& request) override; @@ -63,6 +73,16 @@ class ResourcePoliciesTracingConnection InsertResourcePolicy(google::cloud::cpp::compute::resource_policies::v1:: InsertResourcePolicyRequest const& request) override; + StatusOr InsertResourcePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + InsertResourcePolicyRequest const& request) override; + + future> + InsertResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListResourcePolicies(google::cloud::cpp::compute::resource_policies::v1:: ListResourcePoliciesRequest request) override; @@ -71,6 +91,16 @@ class ResourcePoliciesTracingConnection PatchResourcePolicy(google::cloud::cpp::compute::resource_policies::v1:: PatchResourcePolicyRequest const& request) override; + StatusOr PatchResourcePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + PatchResourcePolicyRequest const& request) override; + + future> + PatchResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::resource_policies::v1:: SetIamPolicyRequest const& request) override; diff --git a/google/cloud/compute/resource_policies/v1/mocks/mock_resource_policies_connection.h b/google/cloud/compute/resource_policies/v1/mocks/mock_resource_policies_connection.h index eb331c7a72fc0..7699035f97a00 100644 --- a/google/cloud/compute/resource_policies/v1/mocks/mock_resource_policies_connection.h +++ b/google/cloud/compute/resource_policies/v1/mocks/mock_resource_policies_connection.h @@ -61,6 +61,19 @@ class MockResourcePoliciesConnection DeleteResourcePolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteResourcePolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + DeleteResourcePolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteResourcePolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetResourcePolicy, (google::cloud::cpp::compute::resource_policies::v1:: @@ -78,6 +91,19 @@ class MockResourcePoliciesConnection InsertResourcePolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertResourcePolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + InsertResourcePolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertResourcePolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListResourcePolicies, (google::cloud::cpp::compute::resource_policies::v1:: @@ -90,6 +116,19 @@ class MockResourcePoliciesConnection PatchResourcePolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchResourcePolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + PatchResourcePolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchResourcePolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, SetIamPolicy, (google::cloud::cpp::compute::resource_policies::v1:: SetIamPolicyRequest const& request), diff --git a/google/cloud/compute/resource_policies/v1/resource_policies_connection.cc b/google/cloud/compute/resource_policies/v1/resource_policies_connection.cc index 47ac6483db573..23c13c9d12e73 100644 --- a/google/cloud/compute/resource_policies/v1/resource_policies_connection.cc +++ b/google/cloud/compute/resource_policies/v1/resource_policies_connection.cc @@ -55,6 +55,24 @@ ResourcePoliciesConnection::DeleteResourcePolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ResourcePoliciesConnection::DeleteResourcePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + DeleteResourcePolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ResourcePoliciesConnection::DeleteResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ResourcePoliciesConnection::GetResourcePolicy( google::cloud::cpp::compute::resource_policies::v1:: @@ -78,6 +96,24 @@ ResourcePoliciesConnection::InsertResourcePolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ResourcePoliciesConnection::InsertResourcePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + InsertResourcePolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ResourcePoliciesConnection::InsertResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ResourcePoliciesConnection::ListResourcePolicies( google::cloud::cpp::compute::resource_policies::v1:: @@ -95,6 +131,24 @@ ResourcePoliciesConnection::PatchResourcePolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ResourcePoliciesConnection::PatchResourcePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + PatchResourcePolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ResourcePoliciesConnection::PatchResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ResourcePoliciesConnection::SetIamPolicy( google::cloud::cpp::compute::resource_policies::v1:: diff --git a/google/cloud/compute/resource_policies/v1/resource_policies_connection.h b/google/cloud/compute/resource_policies/v1/resource_policies_connection.h index 6c5ca04d3cd82..784a555640e94 100644 --- a/google/cloud/compute/resource_policies/v1/resource_policies_connection.h +++ b/google/cloud/compute/resource_policies/v1/resource_policies_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/resource_policies/v1/internal/resource_policies_retry_traits.h" #include "google/cloud/compute/resource_policies/v1/resource_policies_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -196,6 +198,17 @@ class ResourcePoliciesConnection { DeleteResourcePolicy(google::cloud::cpp::compute::resource_policies::v1:: DeleteResourcePolicyRequest const& request); + virtual StatusOr + DeleteResourcePolicy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + DeleteResourcePolicyRequest const& request); + + virtual future> + DeleteResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetResourcePolicy(google::cloud::cpp::compute::resource_policies::v1:: GetResourcePolicyRequest const& request); @@ -208,6 +221,17 @@ class ResourcePoliciesConnection { InsertResourcePolicy(google::cloud::cpp::compute::resource_policies::v1:: InsertResourcePolicyRequest const& request); + virtual StatusOr + InsertResourcePolicy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + InsertResourcePolicyRequest const& request); + + virtual future> + InsertResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListResourcePolicies(google::cloud::cpp::compute::resource_policies::v1:: ListResourcePoliciesRequest request); @@ -216,6 +240,16 @@ class ResourcePoliciesConnection { PatchResourcePolicy(google::cloud::cpp::compute::resource_policies::v1:: PatchResourcePolicyRequest const& request); + virtual StatusOr + PatchResourcePolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::resource_policies::v1:: + PatchResourcePolicyRequest const& request); + + virtual future> + PatchResourcePolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr SetIamPolicy( google::cloud::cpp::compute::resource_policies::v1:: SetIamPolicyRequest const& request); diff --git a/google/cloud/compute/routers/v1/internal/routers_rest_connection_impl.cc b/google/cloud/compute/routers/v1/internal/routers_rest_connection_impl.cc index de566d20c42bc..1c68c96adfa9a 100644 --- a/google/cloud/compute/routers/v1/internal/routers_rest_connection_impl.cc +++ b/google/cloud/compute/routers/v1/internal/routers_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -143,6 +144,80 @@ RoutersRestConnectionImpl::DeleteRouter( }); } +StatusOr +RoutersRestConnectionImpl::DeleteRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteRouter(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const& + request) { + return stub_->DeleteRouter(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RoutersRestConnectionImpl::DeleteRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RoutersRestConnectionImpl::GetRouter( google::cloud::cpp::compute::routers::v1::GetRouterRequest const& request) { @@ -268,6 +343,80 @@ RoutersRestConnectionImpl::InsertRouter( }); } +StatusOr +RoutersRestConnectionImpl::InsertRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::InsertRouterRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertRouter(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::routers::v1::InsertRouterRequest const& + request) { + return stub_->InsertRouter(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RoutersRestConnectionImpl::InsertRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange RoutersRestConnectionImpl::ListRouters( google::cloud::cpp::compute::routers::v1::ListRoutersRequest request) { @@ -365,6 +514,79 @@ RoutersRestConnectionImpl::PatchRouter( }); } +StatusOr +RoutersRestConnectionImpl::PatchRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::PatchRouterRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchRouter(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::routers::v1::PatchRouterRequest const& + request) { + return stub_->PatchRouter(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RoutersRestConnectionImpl::PatchRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr RoutersRestConnectionImpl::Preview( google::cloud::cpp::compute::routers::v1::PreviewRequest const& request) { @@ -441,6 +663,80 @@ RoutersRestConnectionImpl::UpdateRouter( }); } +StatusOr +RoutersRestConnectionImpl::UpdateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateRouter(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& + request) { + return stub_->UpdateRouter(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RoutersRestConnectionImpl::UpdateRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_routers_v1_internal } // namespace cloud diff --git a/google/cloud/compute/routers/v1/internal/routers_rest_connection_impl.h b/google/cloud/compute/routers/v1/internal/routers_rest_connection_impl.h index eb1e97e4e4187..1f5a05bfaa395 100644 --- a/google/cloud/compute/routers/v1/internal/routers_rest_connection_impl.h +++ b/google/cloud/compute/routers/v1/internal/routers_rest_connection_impl.h @@ -59,6 +59,15 @@ class RoutersRestConnectionImpl : public compute_routers_v1::RoutersConnection { google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const& request) override; + StatusOr DeleteRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const& + request) override; + + future> DeleteRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetRouter( google::cloud::cpp::compute::routers::v1::GetRouterRequest const& request) override; @@ -81,6 +90,15 @@ class RoutersRestConnectionImpl : public compute_routers_v1::RoutersConnection { google::cloud::cpp::compute::routers::v1::InsertRouterRequest const& request) override; + StatusOr InsertRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::InsertRouterRequest const& + request) override; + + future> InsertRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRouters( google::cloud::cpp::compute::routers::v1::ListRoutersRequest request) override; @@ -89,6 +107,15 @@ class RoutersRestConnectionImpl : public compute_routers_v1::RoutersConnection { google::cloud::cpp::compute::routers::v1::PatchRouterRequest const& request) override; + StatusOr PatchRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::PatchRouterRequest const& + request) override; + + future> PatchRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr Preview( google::cloud::cpp::compute::routers::v1::PreviewRequest const& request) override; @@ -97,6 +124,15 @@ class RoutersRestConnectionImpl : public compute_routers_v1::RoutersConnection { google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& request) override; + StatusOr UpdateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& + request) override; + + future> UpdateRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy( Options const& options) { diff --git a/google/cloud/compute/routers/v1/internal/routers_tracing_connection.cc b/google/cloud/compute/routers/v1/internal/routers_tracing_connection.cc index 7f80d5c1ee6b1..20de8050b7a08 100644 --- a/google/cloud/compute/routers/v1/internal/routers_tracing_connection.cc +++ b/google/cloud/compute/routers/v1/internal/routers_tracing_connection.cc @@ -57,6 +57,31 @@ RoutersTracingConnection::DeleteRouter( return internal::EndSpan(std::move(span), child_->DeleteRouter(request)); } +StatusOr +RoutersTracingConnection::DeleteRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const& + request) { + auto span = + internal::MakeSpan("compute_routers_v1::RoutersConnection::DeleteRouter"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteRouter(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RoutersTracingConnection::DeleteRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_routers_v1::RoutersConnection::DeleteRouter"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteRouter(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RoutersTracingConnection::GetRouter( google::cloud::cpp::compute::routers::v1::GetRouterRequest const& request) { @@ -106,6 +131,31 @@ RoutersTracingConnection::InsertRouter( return internal::EndSpan(std::move(span), child_->InsertRouter(request)); } +StatusOr +RoutersTracingConnection::InsertRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::InsertRouterRequest const& + request) { + auto span = + internal::MakeSpan("compute_routers_v1::RoutersConnection::InsertRouter"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertRouter(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RoutersTracingConnection::InsertRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_routers_v1::RoutersConnection::InsertRouter"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertRouter(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RoutersTracingConnection::ListRouters( google::cloud::cpp::compute::routers::v1::ListRoutersRequest request) { @@ -127,6 +177,31 @@ RoutersTracingConnection::PatchRouter( return internal::EndSpan(std::move(span), child_->PatchRouter(request)); } +StatusOr +RoutersTracingConnection::PatchRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::PatchRouterRequest const& + request) { + auto span = + internal::MakeSpan("compute_routers_v1::RoutersConnection::PatchRouter"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchRouter(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RoutersTracingConnection::PatchRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_routers_v1::RoutersConnection::PatchRouter"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchRouter(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RoutersTracingConnection::Preview( google::cloud::cpp::compute::routers::v1::PreviewRequest const& request) { @@ -146,6 +221,31 @@ RoutersTracingConnection::UpdateRouter( return internal::EndSpan(std::move(span), child_->UpdateRouter(request)); } +StatusOr +RoutersTracingConnection::UpdateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& + request) { + auto span = + internal::MakeSpan("compute_routers_v1::RoutersConnection::UpdateRouter"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateRouter(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RoutersTracingConnection::UpdateRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_routers_v1::RoutersConnection::UpdateRouter"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateRouter(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/routers/v1/internal/routers_tracing_connection.h b/google/cloud/compute/routers/v1/internal/routers_tracing_connection.h index 664cc0edb42ef..0972ca7be4bf6 100644 --- a/google/cloud/compute/routers/v1/internal/routers_tracing_connection.h +++ b/google/cloud/compute/routers/v1/internal/routers_tracing_connection.h @@ -49,6 +49,15 @@ class RoutersTracingConnection : public compute_routers_v1::RoutersConnection { google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const& request) override; + StatusOr DeleteRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const& + request) override; + + future> DeleteRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetRouter( google::cloud::cpp::compute::routers::v1::GetRouterRequest const& request) override; @@ -71,6 +80,15 @@ class RoutersTracingConnection : public compute_routers_v1::RoutersConnection { google::cloud::cpp::compute::routers::v1::InsertRouterRequest const& request) override; + StatusOr InsertRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::InsertRouterRequest const& + request) override; + + future> InsertRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRouters( google::cloud::cpp::compute::routers::v1::ListRoutersRequest request) override; @@ -79,6 +97,15 @@ class RoutersTracingConnection : public compute_routers_v1::RoutersConnection { google::cloud::cpp::compute::routers::v1::PatchRouterRequest const& request) override; + StatusOr PatchRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::PatchRouterRequest const& + request) override; + + future> PatchRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr Preview( google::cloud::cpp::compute::routers::v1::PreviewRequest const& request) override; @@ -87,6 +114,15 @@ class RoutersTracingConnection : public compute_routers_v1::RoutersConnection { google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& request) override; + StatusOr UpdateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& + request) override; + + future> UpdateRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/routers/v1/mocks/mock_routers_connection.h b/google/cloud/compute/routers/v1/mocks/mock_routers_connection.h index abe8770777106..14af34006ed07 100644 --- a/google/cloud/compute/routers/v1/mocks/mock_routers_connection.h +++ b/google/cloud/compute/routers/v1/mocks/mock_routers_connection.h @@ -61,6 +61,19 @@ class MockRoutersConnection : public compute_routers_v1::RoutersConnection { request), (override)); + MOCK_METHOD( + StatusOr, DeleteRouter, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteRouter, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetRouter, (google::cloud::cpp::compute::routers::v1::GetRouterRequest const& request), @@ -94,6 +107,19 @@ class MockRoutersConnection : public compute_routers_v1::RoutersConnection { request), (override)); + MOCK_METHOD( + StatusOr, InsertRouter, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::InsertRouterRequest const& + request), + (override)); + + MOCK_METHOD(future>, + InsertRouter, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListRouters, (google::cloud::cpp::compute::routers::v1::ListRoutersRequest request), @@ -105,6 +131,19 @@ class MockRoutersConnection : public compute_routers_v1::RoutersConnection { request), (override)); + MOCK_METHOD( + StatusOr, PatchRouter, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::PatchRouterRequest const& + request), + (override)); + + MOCK_METHOD(future>, + PatchRouter, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, Preview, @@ -117,6 +156,19 @@ class MockRoutersConnection : public compute_routers_v1::RoutersConnection { (google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, UpdateRouter, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateRouter, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/routers/v1/routers_connection.cc b/google/cloud/compute/routers/v1/routers_connection.cc index ad1ffaccb9d9a..452744e674a29 100644 --- a/google/cloud/compute/routers/v1/routers_connection.cc +++ b/google/cloud/compute/routers/v1/routers_connection.cc @@ -54,6 +54,23 @@ RoutersConnection::DeleteRouter( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RoutersConnection::DeleteRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RoutersConnection::DeleteRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RoutersConnection::GetRouter( google::cloud::cpp::compute::routers::v1::GetRouterRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -85,6 +102,23 @@ RoutersConnection::InsertRouter( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RoutersConnection::InsertRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::InsertRouterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RoutersConnection::InsertRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RoutersConnection::ListRouters( google::cloud::cpp::compute::routers::v1:: @@ -101,6 +135,23 @@ RoutersConnection::PatchRouter( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RoutersConnection::PatchRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::PatchRouterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RoutersConnection::PatchRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RoutersConnection::Preview( google::cloud::cpp::compute::routers::v1::PreviewRequest const&) { @@ -115,6 +166,23 @@ RoutersConnection::UpdateRouter( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RoutersConnection::UpdateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RoutersConnection::UpdateRouter( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_routers_v1 } // namespace cloud diff --git a/google/cloud/compute/routers/v1/routers_connection.h b/google/cloud/compute/routers/v1/routers_connection.h index c57421010f978..d2ae88ec81546 100644 --- a/google/cloud/compute/routers/v1/routers_connection.h +++ b/google/cloud/compute/routers/v1/routers_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/routers/v1/internal/routers_retry_traits.h" #include "google/cloud/compute/routers/v1/routers_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -192,6 +194,15 @@ class RoutersConnection { google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const& request); + virtual StatusOr DeleteRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const& + request); + + virtual future> + DeleteRouter(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetRouter( google::cloud::cpp::compute::routers::v1::GetRouterRequest const& request); @@ -216,6 +227,15 @@ class RoutersConnection { google::cloud::cpp::compute::routers::v1::InsertRouterRequest const& request); + virtual StatusOr InsertRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::InsertRouterRequest const& + request); + + virtual future> + InsertRouter(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRouters( google::cloud::cpp::compute::routers::v1::ListRoutersRequest request); @@ -224,6 +244,15 @@ class RoutersConnection { google::cloud::cpp::compute::routers::v1::PatchRouterRequest const& request); + virtual StatusOr PatchRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::PatchRouterRequest const& + request); + + virtual future> + PatchRouter(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr Preview( google::cloud::cpp::compute::routers::v1::PreviewRequest const& request); @@ -232,6 +261,15 @@ class RoutersConnection { UpdateRouter( google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& request); + + virtual StatusOr UpdateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& + request); + + virtual future> + UpdateRouter(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/routes/v1/internal/routes_rest_connection_impl.cc b/google/cloud/compute/routes/v1/internal/routes_rest_connection_impl.cc index 4d74f70945917..02ba11e5d2737 100644 --- a/google/cloud/compute/routes/v1/internal/routes_rest_connection_impl.cc +++ b/google/cloud/compute/routes/v1/internal/routes_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -101,6 +102,77 @@ RoutesRestConnectionImpl::DeleteRoute( }); } +StatusOr +RoutesRestConnectionImpl::DeleteRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteRoute(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const& + request) { + return stub_->DeleteRoute(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RoutesRestConnectionImpl::DeleteRoute( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr RoutesRestConnectionImpl::GetRoute( google::cloud::cpp::compute::routes::v1::GetRouteRequest const& request) { @@ -175,6 +247,77 @@ RoutesRestConnectionImpl::InsertRoute( }); } +StatusOr +RoutesRestConnectionImpl::InsertRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routes::v1::InsertRouteRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertRoute(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::routes::v1::InsertRouteRequest const& + request) { + return stub_->InsertRoute(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +RoutesRestConnectionImpl::InsertRoute( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange RoutesRestConnectionImpl::ListRoutes( google::cloud::cpp::compute::routes::v1::ListRoutesRequest request) { diff --git a/google/cloud/compute/routes/v1/internal/routes_rest_connection_impl.h b/google/cloud/compute/routes/v1/internal/routes_rest_connection_impl.h index 681f1598e2e35..162bd0748ccf0 100644 --- a/google/cloud/compute/routes/v1/internal/routes_rest_connection_impl.h +++ b/google/cloud/compute/routes/v1/internal/routes_rest_connection_impl.h @@ -53,6 +53,15 @@ class RoutesRestConnectionImpl : public compute_routes_v1::RoutesConnection { google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const& request) override; + StatusOr DeleteRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const& + request) override; + + future> DeleteRoute( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetRoute( google::cloud::cpp::compute::routes::v1::GetRouteRequest const& request) override; @@ -61,6 +70,15 @@ class RoutesRestConnectionImpl : public compute_routes_v1::RoutesConnection { google::cloud::cpp::compute::routes::v1::InsertRouteRequest const& request) override; + StatusOr InsertRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routes::v1::InsertRouteRequest const& + request) override; + + future> InsertRoute( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRoutes( google::cloud::cpp::compute::routes::v1::ListRoutesRequest request) override; diff --git a/google/cloud/compute/routes/v1/internal/routes_tracing_connection.cc b/google/cloud/compute/routes/v1/internal/routes_tracing_connection.cc index 037fbd446bd8a..a07c99f701fbb 100644 --- a/google/cloud/compute/routes/v1/internal/routes_tracing_connection.cc +++ b/google/cloud/compute/routes/v1/internal/routes_tracing_connection.cc @@ -43,6 +43,31 @@ RoutesTracingConnection::DeleteRoute( return internal::EndSpan(std::move(span), child_->DeleteRoute(request)); } +StatusOr +RoutesTracingConnection::DeleteRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const& + request) { + auto span = + internal::MakeSpan("compute_routes_v1::RoutesConnection::DeleteRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteRoute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RoutesTracingConnection::DeleteRoute( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_routes_v1::RoutesConnection::DeleteRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteRoute(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RoutesTracingConnection::GetRoute( google::cloud::cpp::compute::routes::v1::GetRouteRequest const& request) { @@ -62,6 +87,31 @@ RoutesTracingConnection::InsertRoute( return internal::EndSpan(std::move(span), child_->InsertRoute(request)); } +StatusOr +RoutesTracingConnection::InsertRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routes::v1::InsertRouteRequest const& + request) { + auto span = + internal::MakeSpan("compute_routes_v1::RoutesConnection::InsertRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertRoute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RoutesTracingConnection::InsertRoute( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_routes_v1::RoutesConnection::InsertRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertRoute(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange RoutesTracingConnection::ListRoutes( google::cloud::cpp::compute::routes::v1::ListRoutesRequest request) { diff --git a/google/cloud/compute/routes/v1/internal/routes_tracing_connection.h b/google/cloud/compute/routes/v1/internal/routes_tracing_connection.h index bd88f72bc219c..8c673aa569a08 100644 --- a/google/cloud/compute/routes/v1/internal/routes_tracing_connection.h +++ b/google/cloud/compute/routes/v1/internal/routes_tracing_connection.h @@ -43,6 +43,15 @@ class RoutesTracingConnection : public compute_routes_v1::RoutesConnection { google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const& request) override; + StatusOr DeleteRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const& + request) override; + + future> DeleteRoute( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetRoute( google::cloud::cpp::compute::routes::v1::GetRouteRequest const& request) override; @@ -51,6 +60,15 @@ class RoutesTracingConnection : public compute_routes_v1::RoutesConnection { google::cloud::cpp::compute::routes::v1::InsertRouteRequest const& request) override; + StatusOr InsertRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routes::v1::InsertRouteRequest const& + request) override; + + future> InsertRoute( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListRoutes( google::cloud::cpp::compute::routes::v1::ListRoutesRequest request) override; diff --git a/google/cloud/compute/routes/v1/mocks/mock_routes_connection.h b/google/cloud/compute/routes/v1/mocks/mock_routes_connection.h index e3550eff0f414..38334e3aec8d6 100644 --- a/google/cloud/compute/routes/v1/mocks/mock_routes_connection.h +++ b/google/cloud/compute/routes/v1/mocks/mock_routes_connection.h @@ -52,6 +52,19 @@ class MockRoutesConnection : public compute_routes_v1::RoutesConnection { request), (override)); + MOCK_METHOD( + StatusOr, DeleteRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteRoute, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetRoute, (google::cloud::cpp::compute::routes::v1::GetRouteRequest const& request), @@ -63,6 +76,19 @@ class MockRoutesConnection : public compute_routes_v1::RoutesConnection { request), (override)); + MOCK_METHOD( + StatusOr, InsertRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routes::v1::InsertRouteRequest const& + request), + (override)); + + MOCK_METHOD(future>, + InsertRoute, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListRoutes, (google::cloud::cpp::compute::routes::v1::ListRoutesRequest request), diff --git a/google/cloud/compute/routes/v1/routes_connection.cc b/google/cloud/compute/routes/v1/routes_connection.cc index 4e629d0d4e683..3b8740cd277cc 100644 --- a/google/cloud/compute/routes/v1/routes_connection.cc +++ b/google/cloud/compute/routes/v1/routes_connection.cc @@ -44,6 +44,23 @@ RoutesConnection::DeleteRoute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RoutesConnection::DeleteRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RoutesConnection::DeleteRoute( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RoutesConnection::GetRoute( google::cloud::cpp::compute::routes::v1::GetRouteRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -57,6 +74,23 @@ RoutesConnection::InsertRoute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RoutesConnection::InsertRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routes::v1::InsertRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RoutesConnection::InsertRoute( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange RoutesConnection::ListRoutes( google::cloud::cpp::compute::routes::v1:: diff --git a/google/cloud/compute/routes/v1/routes_connection.h b/google/cloud/compute/routes/v1/routes_connection.h index 1a44a865c0052..315adf5f67f67 100644 --- a/google/cloud/compute/routes/v1/routes_connection.h +++ b/google/cloud/compute/routes/v1/routes_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/routes/v1/internal/routes_retry_traits.h" #include "google/cloud/compute/routes/v1/routes_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -184,6 +186,15 @@ class RoutesConnection { DeleteRoute(google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const& request); + virtual StatusOr DeleteRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const& + request); + + virtual future> + DeleteRoute(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetRoute( google::cloud::cpp::compute::routes::v1::GetRouteRequest const& request); @@ -191,6 +202,15 @@ class RoutesConnection { InsertRoute(google::cloud::cpp::compute::routes::v1::InsertRouteRequest const& request); + virtual StatusOr InsertRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::routes::v1::InsertRouteRequest const& + request); + + virtual future> + InsertRoute(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListRoutes( google::cloud::cpp::compute::routes::v1::ListRoutesRequest request); }; diff --git a/google/cloud/compute/security_policies/v1/internal/security_policies_rest_connection_impl.cc b/google/cloud/compute/security_policies/v1/internal/security_policies_rest_connection_impl.cc index 121ac7403e254..342283e4a1cdb 100644 --- a/google/cloud/compute/security_policies/v1/internal/security_policies_rest_connection_impl.cc +++ b/google/cloud/compute/security_policies/v1/internal/security_policies_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -102,6 +103,77 @@ SecurityPoliciesRestConnectionImpl::AddRule( }); } +StatusOr +SecurityPoliciesRestConnectionImpl::AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::security_policies::v1:: + AddRuleRequest const& request) { + return stub_->AddRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SecurityPoliciesRestConnectionImpl::AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange> SecurityPoliciesRestConnectionImpl::AggregatedListSecurityPolicies( @@ -203,6 +275,77 @@ SecurityPoliciesRestConnectionImpl::DeleteSecurityPolicy( }); } +StatusOr +SecurityPoliciesRestConnectionImpl::DeleteSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + DeleteSecurityPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSecurityPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::security_policies::v1:: + DeleteSecurityPolicyRequest const& request) { + return stub_->DeleteSecurityPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SecurityPoliciesRestConnectionImpl::DeleteSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr SecurityPoliciesRestConnectionImpl::GetSecurityPolicy( google::cloud::cpp::compute::security_policies::v1:: @@ -293,6 +436,77 @@ SecurityPoliciesRestConnectionImpl::InsertSecurityPolicy( }); } +StatusOr +SecurityPoliciesRestConnectionImpl::InsertSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + InsertSecurityPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertSecurityPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::security_policies::v1:: + InsertSecurityPolicyRequest const& request) { + return stub_->InsertSecurityPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SecurityPoliciesRestConnectionImpl::InsertSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange SecurityPoliciesRestConnectionImpl::ListSecurityPolicies( google::cloud::cpp::compute::security_policies::v1:: @@ -408,6 +622,77 @@ SecurityPoliciesRestConnectionImpl::PatchSecurityPolicy( }); } +StatusOr +SecurityPoliciesRestConnectionImpl::PatchSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + PatchSecurityPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchSecurityPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::security_policies::v1:: + PatchSecurityPolicyRequest const& request) { + return stub_->PatchSecurityPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SecurityPoliciesRestConnectionImpl::PatchSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> SecurityPoliciesRestConnectionImpl::PatchRule( google::cloud::cpp::compute::security_policies::v1::PatchRuleRequest const& @@ -466,6 +751,77 @@ SecurityPoliciesRestConnectionImpl::PatchRule( }); } +StatusOr +SecurityPoliciesRestConnectionImpl::PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1::PatchRuleRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::security_policies::v1:: + PatchRuleRequest const& request) { + return stub_->PatchRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SecurityPoliciesRestConnectionImpl::PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> SecurityPoliciesRestConnectionImpl::RemoveRule( google::cloud::cpp::compute::security_policies::v1::RemoveRuleRequest const& @@ -524,6 +880,77 @@ SecurityPoliciesRestConnectionImpl::RemoveRule( }); } +StatusOr +SecurityPoliciesRestConnectionImpl::RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1::RemoveRuleRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveRule(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::security_policies::v1:: + RemoveRuleRequest const& request) { + return stub_->RemoveRule(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SecurityPoliciesRestConnectionImpl::RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> SecurityPoliciesRestConnectionImpl::SetLabels( google::cloud::cpp::compute::security_policies::v1::SetLabelsRequest const& @@ -582,6 +1009,77 @@ SecurityPoliciesRestConnectionImpl::SetLabels( }); } +StatusOr +SecurityPoliciesRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1::SetLabelsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::security_policies::v1:: + SetLabelsRequest const& request) { + return stub_->SetLabels(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SecurityPoliciesRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_security_policies_v1_internal } // namespace cloud diff --git a/google/cloud/compute/security_policies/v1/internal/security_policies_rest_connection_impl.h b/google/cloud/compute/security_policies/v1/internal/security_policies_rest_connection_impl.h index 604925d3a2bbc..4dc22bed44670 100644 --- a/google/cloud/compute/security_policies/v1/internal/security_policies_rest_connection_impl.h +++ b/google/cloud/compute/security_policies/v1/internal/security_policies_rest_connection_impl.h @@ -56,6 +56,15 @@ class SecurityPoliciesRestConnectionImpl google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const& request) override; + StatusOr AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const& + request) override; + + future> AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange> AggregatedListSecurityPolicies( @@ -66,6 +75,16 @@ class SecurityPoliciesRestConnectionImpl DeleteSecurityPolicy(google::cloud::cpp::compute::security_policies::v1:: DeleteSecurityPolicyRequest const& request) override; + StatusOr DeleteSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + DeleteSecurityPolicyRequest const& request) override; + + future> + DeleteSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetSecurityPolicy( google::cloud::cpp::compute::security_policies::v1:: GetSecurityPolicyRequest const& request) override; @@ -78,6 +97,16 @@ class SecurityPoliciesRestConnectionImpl InsertSecurityPolicy(google::cloud::cpp::compute::security_policies::v1:: InsertSecurityPolicyRequest const& request) override; + StatusOr InsertSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + InsertSecurityPolicyRequest const& request) override; + + future> + InsertSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListSecurityPolicies(google::cloud::cpp::compute::security_policies::v1:: ListSecurityPoliciesRequest request) override; @@ -92,18 +121,55 @@ class SecurityPoliciesRestConnectionImpl PatchSecurityPolicy(google::cloud::cpp::compute::security_policies::v1:: PatchSecurityPolicyRequest const& request) override; + StatusOr PatchSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + PatchSecurityPolicyRequest const& request) override; + + future> + PatchSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PatchRule( google::cloud::cpp::compute::security_policies::v1:: PatchRuleRequest const& request) override; + StatusOr PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + PatchRuleRequest const& request) override; + + future> PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveRule( google::cloud::cpp::compute::security_policies::v1:: RemoveRuleRequest const& request) override; + StatusOr RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + RemoveRuleRequest const& request) override; + + future> RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetLabels( google::cloud::cpp::compute::security_policies::v1:: SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + SetLabelsRequest const& request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_security_policies_v1::SecurityPoliciesRetryPolicy> diff --git a/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.cc b/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.cc index 4b1f612ed63b8..03368f012ccc3 100644 --- a/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.cc +++ b/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.cc @@ -44,6 +44,31 @@ SecurityPoliciesTracingConnection::AddRule( return internal::EndSpan(std::move(span), child_->AddRule(request)); } +StatusOr +SecurityPoliciesTracingConnection::AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const& + request) { + auto span = internal::MakeSpan( + "compute_security_policies_v1::SecurityPoliciesConnection::AddRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SecurityPoliciesTracingConnection::AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_security_policies_v1::SecurityPoliciesConnection::AddRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddRule(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange> SecurityPoliciesTracingConnection::AggregatedListSecurityPolicies( @@ -72,6 +97,33 @@ SecurityPoliciesTracingConnection::DeleteSecurityPolicy( child_->DeleteSecurityPolicy(request)); } +StatusOr +SecurityPoliciesTracingConnection::DeleteSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + DeleteSecurityPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_security_policies_v1::SecurityPoliciesConnection::" + "DeleteSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteSecurityPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SecurityPoliciesTracingConnection::DeleteSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_security_policies_v1::SecurityPoliciesConnection::" + "DeleteSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteSecurityPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SecurityPoliciesTracingConnection::GetSecurityPolicy( google::cloud::cpp::compute::security_policies::v1:: @@ -105,6 +157,33 @@ SecurityPoliciesTracingConnection::InsertSecurityPolicy( child_->InsertSecurityPolicy(request)); } +StatusOr +SecurityPoliciesTracingConnection::InsertSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + InsertSecurityPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_security_policies_v1::SecurityPoliciesConnection::" + "InsertSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertSecurityPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SecurityPoliciesTracingConnection::InsertSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_security_policies_v1::SecurityPoliciesConnection::" + "InsertSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertSecurityPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange SecurityPoliciesTracingConnection::ListSecurityPolicies( google::cloud::cpp::compute::security_policies::v1:: @@ -144,6 +223,33 @@ SecurityPoliciesTracingConnection::PatchSecurityPolicy( child_->PatchSecurityPolicy(request)); } +StatusOr +SecurityPoliciesTracingConnection::PatchSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + PatchSecurityPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_security_policies_v1::SecurityPoliciesConnection::" + "PatchSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchSecurityPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SecurityPoliciesTracingConnection::PatchSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_security_policies_v1::SecurityPoliciesConnection::" + "PatchSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchSecurityPolicy(google::cloud::ExperimentalTag{}, operation)); +} + future> SecurityPoliciesTracingConnection::PatchRule( google::cloud::cpp::compute::security_policies::v1::PatchRuleRequest const& @@ -154,6 +260,31 @@ SecurityPoliciesTracingConnection::PatchRule( return internal::EndSpan(std::move(span), child_->PatchRule(request)); } +StatusOr +SecurityPoliciesTracingConnection::PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1::PatchRuleRequest const& + request) { + auto span = internal::MakeSpan( + "compute_security_policies_v1::SecurityPoliciesConnection::PatchRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SecurityPoliciesTracingConnection::PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_security_policies_v1::SecurityPoliciesConnection::PatchRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchRule(google::cloud::ExperimentalTag{}, operation)); +} + future> SecurityPoliciesTracingConnection::RemoveRule( google::cloud::cpp::compute::security_policies::v1::RemoveRuleRequest const& @@ -164,6 +295,31 @@ SecurityPoliciesTracingConnection::RemoveRule( return internal::EndSpan(std::move(span), child_->RemoveRule(request)); } +StatusOr +SecurityPoliciesTracingConnection::RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1::RemoveRuleRequest const& + request) { + auto span = internal::MakeSpan( + "compute_security_policies_v1::SecurityPoliciesConnection::RemoveRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RemoveRule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SecurityPoliciesTracingConnection::RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_security_policies_v1::SecurityPoliciesConnection::RemoveRule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RemoveRule(google::cloud::ExperimentalTag{}, operation)); +} + future> SecurityPoliciesTracingConnection::SetLabels( google::cloud::cpp::compute::security_policies::v1::SetLabelsRequest const& @@ -174,6 +330,31 @@ SecurityPoliciesTracingConnection::SetLabels( return internal::EndSpan(std::move(span), child_->SetLabels(request)); } +StatusOr +SecurityPoliciesTracingConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1::SetLabelsRequest const& + request) { + auto span = internal::MakeSpan( + "compute_security_policies_v1::SecurityPoliciesConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SecurityPoliciesTracingConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_security_policies_v1::SecurityPoliciesConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.h b/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.h index 6df13ba281e0c..3d4b189cfcc22 100644 --- a/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.h +++ b/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.h @@ -45,6 +45,15 @@ class SecurityPoliciesTracingConnection google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const& request) override; + StatusOr AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const& + request) override; + + future> AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange> AggregatedListSecurityPolicies( @@ -55,6 +64,16 @@ class SecurityPoliciesTracingConnection DeleteSecurityPolicy(google::cloud::cpp::compute::security_policies::v1:: DeleteSecurityPolicyRequest const& request) override; + StatusOr DeleteSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + DeleteSecurityPolicyRequest const& request) override; + + future> + DeleteSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetSecurityPolicy( google::cloud::cpp::compute::security_policies::v1:: GetSecurityPolicyRequest const& request) override; @@ -67,6 +86,16 @@ class SecurityPoliciesTracingConnection InsertSecurityPolicy(google::cloud::cpp::compute::security_policies::v1:: InsertSecurityPolicyRequest const& request) override; + StatusOr InsertSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + InsertSecurityPolicyRequest const& request) override; + + future> + InsertSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListSecurityPolicies(google::cloud::cpp::compute::security_policies::v1:: ListSecurityPoliciesRequest request) override; @@ -81,18 +110,55 @@ class SecurityPoliciesTracingConnection PatchSecurityPolicy(google::cloud::cpp::compute::security_policies::v1:: PatchSecurityPolicyRequest const& request) override; + StatusOr PatchSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + PatchSecurityPolicyRequest const& request) override; + + future> + PatchSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> PatchRule( google::cloud::cpp::compute::security_policies::v1:: PatchRuleRequest const& request) override; + StatusOr PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + PatchRuleRequest const& request) override; + + future> PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveRule( google::cloud::cpp::compute::security_policies::v1:: RemoveRuleRequest const& request) override; + StatusOr RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + RemoveRuleRequest const& request) override; + + future> RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetLabels( google::cloud::cpp::compute::security_policies::v1:: SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + SetLabelsRequest const& request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/security_policies/v1/mocks/mock_security_policies_connection.h b/google/cloud/compute/security_policies/v1/mocks/mock_security_policies_connection.h index 368d5cd736127..3812132218d16 100644 --- a/google/cloud/compute/security_policies/v1/mocks/mock_security_policies_connection.h +++ b/google/cloud/compute/security_policies/v1/mocks/mock_security_policies_connection.h @@ -53,6 +53,19 @@ class MockSecurityPoliciesConnection request), (override)); + MOCK_METHOD( + StatusOr, AddRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const& + request), + (override)); + + MOCK_METHOD(future>, + AddRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange>), @@ -67,6 +80,19 @@ class MockSecurityPoliciesConnection DeleteSecurityPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteSecurityPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + DeleteSecurityPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteSecurityPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetSecurityPolicy, (google::cloud::cpp::compute::security_policies::v1:: @@ -85,6 +111,19 @@ class MockSecurityPoliciesConnection InsertSecurityPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertSecurityPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + InsertSecurityPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertSecurityPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListSecurityPolicies, (google::cloud::cpp::compute::security_policies::v1:: @@ -105,23 +144,72 @@ class MockSecurityPoliciesConnection PatchSecurityPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchSecurityPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + PatchSecurityPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchSecurityPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, PatchRule, (google::cloud::cpp::compute::security_policies::v1:: PatchRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, PatchRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + PatchRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, RemoveRule, (google::cloud::cpp::compute::security_policies::v1:: RemoveRuleRequest const& request), (override)); + MOCK_METHOD(StatusOr, RemoveRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + RemoveRuleRequest const& request), + (override)); + + MOCK_METHOD(future>, + RemoveRule, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetLabels, (google::cloud::cpp::compute::security_policies::v1:: SetLabelsRequest const& request), (override)); + + MOCK_METHOD(StatusOr, SetLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + SetLabelsRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetLabels, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/security_policies/v1/security_policies_connection.cc b/google/cloud/compute/security_policies/v1/security_policies_connection.cc index ecf8e9c278682..20adaf51b024f 100644 --- a/google/cloud/compute/security_policies/v1/security_policies_connection.cc +++ b/google/cloud/compute/security_policies/v1/security_policies_connection.cc @@ -44,6 +44,23 @@ SecurityPoliciesConnection::AddRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SecurityPoliciesConnection::AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SecurityPoliciesConnection::AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange> SecurityPoliciesConnection::AggregatedListSecurityPolicies( @@ -63,6 +80,24 @@ SecurityPoliciesConnection::DeleteSecurityPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SecurityPoliciesConnection::DeleteSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + DeleteSecurityPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SecurityPoliciesConnection::DeleteSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SecurityPoliciesConnection::GetSecurityPolicy( google::cloud::cpp::compute::security_policies::v1:: @@ -85,6 +120,24 @@ SecurityPoliciesConnection::InsertSecurityPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SecurityPoliciesConnection::InsertSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + InsertSecurityPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SecurityPoliciesConnection::InsertSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange SecurityPoliciesConnection::ListSecurityPolicies( google::cloud::cpp::compute::security_policies::v1:: @@ -110,6 +163,24 @@ SecurityPoliciesConnection::PatchSecurityPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SecurityPoliciesConnection::PatchSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + PatchSecurityPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SecurityPoliciesConnection::PatchSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SecurityPoliciesConnection::PatchRule( google::cloud::cpp::compute::security_policies::v1:: @@ -119,6 +190,24 @@ SecurityPoliciesConnection::PatchRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SecurityPoliciesConnection::PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + PatchRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SecurityPoliciesConnection::PatchRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SecurityPoliciesConnection::RemoveRule( google::cloud::cpp::compute::security_policies::v1:: @@ -128,10 +217,46 @@ SecurityPoliciesConnection::RemoveRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SecurityPoliciesConnection::RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + RemoveRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +SecurityPoliciesConnection::RemoveRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SecurityPoliciesConnection::SetLabels( + google::cloud::cpp::compute::security_policies::v1:: + SetLabelsRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr SecurityPoliciesConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: SetLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SecurityPoliciesConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/security_policies/v1/security_policies_connection.h b/google/cloud/compute/security_policies/v1/security_policies_connection.h index 5db6d45d9204a..551bd2b3d0ee3 100644 --- a/google/cloud/compute/security_policies/v1/security_policies_connection.h +++ b/google/cloud/compute/security_policies/v1/security_policies_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/security_policies/v1/internal/security_policies_retry_traits.h" #include "google/cloud/compute/security_policies/v1/security_policies_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -190,6 +192,15 @@ class SecurityPoliciesConnection { google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const& request); + virtual StatusOr AddRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const& + request); + + virtual future> AddRule( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange> AggregatedListSecurityPolicies( @@ -200,6 +211,17 @@ class SecurityPoliciesConnection { DeleteSecurityPolicy(google::cloud::cpp::compute::security_policies::v1:: DeleteSecurityPolicyRequest const& request); + virtual StatusOr + DeleteSecurityPolicy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + DeleteSecurityPolicyRequest const& request); + + virtual future> + DeleteSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetSecurityPolicy(google::cloud::cpp::compute::security_policies::v1:: GetSecurityPolicyRequest const& request); @@ -212,6 +234,17 @@ class SecurityPoliciesConnection { InsertSecurityPolicy(google::cloud::cpp::compute::security_policies::v1:: InsertSecurityPolicyRequest const& request); + virtual StatusOr + InsertSecurityPolicy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + InsertSecurityPolicyRequest const& request); + + virtual future> + InsertSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListSecurityPolicies(google::cloud::cpp::compute::security_policies::v1:: ListSecurityPoliciesRequest request); @@ -226,17 +259,54 @@ class SecurityPoliciesConnection { PatchSecurityPolicy(google::cloud::cpp::compute::security_policies::v1:: PatchSecurityPolicyRequest const& request); + virtual StatusOr + PatchSecurityPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + PatchSecurityPolicyRequest const& request); + + virtual future> + PatchSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> PatchRule(google::cloud::cpp::compute::security_policies::v1:: PatchRuleRequest const& request); + virtual StatusOr PatchRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + PatchRuleRequest const& request); + + virtual future> + PatchRule(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> RemoveRule(google::cloud::cpp::compute::security_policies::v1:: RemoveRuleRequest const& request); + virtual StatusOr RemoveRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + RemoveRuleRequest const& request); + + virtual future> + RemoveRule(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetLabels(google::cloud::cpp::compute::security_policies::v1:: SetLabelsRequest const& request); + + virtual StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::security_policies::v1:: + SetLabelsRequest const& request); + + virtual future> + SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/service_attachments/v1/internal/service_attachments_rest_connection_impl.cc b/google/cloud/compute/service_attachments/v1/internal/service_attachments_rest_connection_impl.cc index ec6d6f1972fb5..aacb237038b09 100644 --- a/google/cloud/compute/service_attachments/v1/internal/service_attachments_rest_connection_impl.cc +++ b/google/cloud/compute/service_attachments/v1/internal/service_attachments_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -147,6 +148,79 @@ ServiceAttachmentsRestConnectionImpl::DeleteServiceAttachment( }); } +StatusOr +ServiceAttachmentsRestConnectionImpl::DeleteServiceAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + DeleteServiceAttachmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteServiceAttachment(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::service_attachments::v1:: + DeleteServiceAttachmentRequest const& request) { + return stub_->DeleteServiceAttachment(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ServiceAttachmentsRestConnectionImpl::DeleteServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr ServiceAttachmentsRestConnectionImpl::GetServiceAttachment( google::cloud::cpp::compute::service_attachments::v1:: @@ -239,6 +313,79 @@ ServiceAttachmentsRestConnectionImpl::InsertServiceAttachment( }); } +StatusOr +ServiceAttachmentsRestConnectionImpl::InsertServiceAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + InsertServiceAttachmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertServiceAttachment(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::service_attachments::v1:: + InsertServiceAttachmentRequest const& request) { + return stub_->InsertServiceAttachment(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ServiceAttachmentsRestConnectionImpl::InsertServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange ServiceAttachmentsRestConnectionImpl::ListServiceAttachments( google::cloud::cpp::compute::service_attachments::v1:: @@ -339,6 +486,79 @@ ServiceAttachmentsRestConnectionImpl::PatchServiceAttachment( }); } +StatusOr +ServiceAttachmentsRestConnectionImpl::PatchServiceAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + PatchServiceAttachmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchServiceAttachment(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::service_attachments::v1:: + PatchServiceAttachmentRequest const& request) { + return stub_->PatchServiceAttachment(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +ServiceAttachmentsRestConnectionImpl::PatchServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr ServiceAttachmentsRestConnectionImpl::SetIamPolicy( google::cloud::cpp::compute::service_attachments::v1:: diff --git a/google/cloud/compute/service_attachments/v1/internal/service_attachments_rest_connection_impl.h b/google/cloud/compute/service_attachments/v1/internal/service_attachments_rest_connection_impl.h index 82e3184e07a0f..41bf8d7f66063 100644 --- a/google/cloud/compute/service_attachments/v1/internal/service_attachments_rest_connection_impl.h +++ b/google/cloud/compute/service_attachments/v1/internal/service_attachments_rest_connection_impl.h @@ -64,6 +64,16 @@ class ServiceAttachmentsRestConnectionImpl google::cloud::cpp::compute::service_attachments::v1:: DeleteServiceAttachmentRequest const& request) override; + StatusOr DeleteServiceAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + DeleteServiceAttachmentRequest const& request) override; + + future> + DeleteServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetServiceAttachment(google::cloud::cpp::compute::service_attachments::v1:: GetServiceAttachmentRequest const& request) override; @@ -77,6 +87,16 @@ class ServiceAttachmentsRestConnectionImpl google::cloud::cpp::compute::service_attachments::v1:: InsertServiceAttachmentRequest const& request) override; + StatusOr InsertServiceAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + InsertServiceAttachmentRequest const& request) override; + + future> + InsertServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListServiceAttachments(google::cloud::cpp::compute::service_attachments::v1:: ListServiceAttachmentsRequest request) override; @@ -86,6 +106,16 @@ class ServiceAttachmentsRestConnectionImpl google::cloud::cpp::compute::service_attachments::v1:: PatchServiceAttachmentRequest const& request) override; + StatusOr PatchServiceAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + PatchServiceAttachmentRequest const& request) override; + + future> + PatchServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::service_attachments::v1:: SetIamPolicyRequest const& request) override; diff --git a/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.cc b/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.cc index a9e52fe787625..44b41b3da05f9 100644 --- a/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.cc +++ b/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.cc @@ -63,6 +63,33 @@ ServiceAttachmentsTracingConnection::DeleteServiceAttachment( child_->DeleteServiceAttachment(request)); } +StatusOr +ServiceAttachmentsTracingConnection::DeleteServiceAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + DeleteServiceAttachmentRequest const& request) { + auto span = internal::MakeSpan( + "compute_service_attachments_v1::ServiceAttachmentsConnection::" + "DeleteServiceAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteServiceAttachment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ServiceAttachmentsTracingConnection::DeleteServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_service_attachments_v1::ServiceAttachmentsConnection::" + "DeleteServiceAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteServiceAttachment( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ServiceAttachmentsTracingConnection::GetServiceAttachment( google::cloud::cpp::compute::service_attachments::v1:: @@ -97,6 +124,33 @@ ServiceAttachmentsTracingConnection::InsertServiceAttachment( child_->InsertServiceAttachment(request)); } +StatusOr +ServiceAttachmentsTracingConnection::InsertServiceAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + InsertServiceAttachmentRequest const& request) { + auto span = internal::MakeSpan( + "compute_service_attachments_v1::ServiceAttachmentsConnection::" + "InsertServiceAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertServiceAttachment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ServiceAttachmentsTracingConnection::InsertServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_service_attachments_v1::ServiceAttachmentsConnection::" + "InsertServiceAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertServiceAttachment( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ServiceAttachmentsTracingConnection::ListServiceAttachments( google::cloud::cpp::compute::service_attachments::v1:: @@ -123,6 +177,33 @@ ServiceAttachmentsTracingConnection::PatchServiceAttachment( child_->PatchServiceAttachment(request)); } +StatusOr +ServiceAttachmentsTracingConnection::PatchServiceAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + PatchServiceAttachmentRequest const& request) { + auto span = internal::MakeSpan( + "compute_service_attachments_v1::ServiceAttachmentsConnection::" + "PatchServiceAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchServiceAttachment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ServiceAttachmentsTracingConnection::PatchServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_service_attachments_v1::ServiceAttachmentsConnection::" + "PatchServiceAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchServiceAttachment( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ServiceAttachmentsTracingConnection::SetIamPolicy( google::cloud::cpp::compute::service_attachments::v1:: diff --git a/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.h b/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.h index e0b5116397494..22941467e4dda 100644 --- a/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.h +++ b/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.h @@ -54,6 +54,16 @@ class ServiceAttachmentsTracingConnection google::cloud::cpp::compute::service_attachments::v1:: DeleteServiceAttachmentRequest const& request) override; + StatusOr DeleteServiceAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + DeleteServiceAttachmentRequest const& request) override; + + future> + DeleteServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetServiceAttachment(google::cloud::cpp::compute::service_attachments::v1:: GetServiceAttachmentRequest const& request) override; @@ -67,6 +77,16 @@ class ServiceAttachmentsTracingConnection google::cloud::cpp::compute::service_attachments::v1:: InsertServiceAttachmentRequest const& request) override; + StatusOr InsertServiceAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + InsertServiceAttachmentRequest const& request) override; + + future> + InsertServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListServiceAttachments(google::cloud::cpp::compute::service_attachments::v1:: ListServiceAttachmentsRequest request) override; @@ -76,6 +96,16 @@ class ServiceAttachmentsTracingConnection google::cloud::cpp::compute::service_attachments::v1:: PatchServiceAttachmentRequest const& request) override; + StatusOr PatchServiceAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + PatchServiceAttachmentRequest const& request) override; + + future> + PatchServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::service_attachments::v1:: SetIamPolicyRequest const& request) override; diff --git a/google/cloud/compute/service_attachments/v1/mocks/mock_service_attachments_connection.h b/google/cloud/compute/service_attachments/v1/mocks/mock_service_attachments_connection.h index 5b87f9b210a74..4ae7f35118e7e 100644 --- a/google/cloud/compute/service_attachments/v1/mocks/mock_service_attachments_connection.h +++ b/google/cloud/compute/service_attachments/v1/mocks/mock_service_attachments_connection.h @@ -61,6 +61,19 @@ class MockServiceAttachmentsConnection DeleteServiceAttachmentRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteServiceAttachment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + DeleteServiceAttachmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteServiceAttachment, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetServiceAttachment, (google::cloud::cpp::compute::service_attachments::v1:: @@ -78,6 +91,19 @@ class MockServiceAttachmentsConnection InsertServiceAttachmentRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertServiceAttachment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + InsertServiceAttachmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertServiceAttachment, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListServiceAttachments, (google::cloud::cpp::compute::service_attachments::v1:: @@ -90,6 +116,19 @@ class MockServiceAttachmentsConnection PatchServiceAttachmentRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchServiceAttachment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + PatchServiceAttachmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchServiceAttachment, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, SetIamPolicy, (google::cloud::cpp::compute::service_attachments::v1:: SetIamPolicyRequest const& request), diff --git a/google/cloud/compute/service_attachments/v1/service_attachments_connection.cc b/google/cloud/compute/service_attachments/v1/service_attachments_connection.cc index 323ac0d5d03f1..10c27af1f9f56 100644 --- a/google/cloud/compute/service_attachments/v1/service_attachments_connection.cc +++ b/google/cloud/compute/service_attachments/v1/service_attachments_connection.cc @@ -55,6 +55,24 @@ ServiceAttachmentsConnection::DeleteServiceAttachment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ServiceAttachmentsConnection::DeleteServiceAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + DeleteServiceAttachmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ServiceAttachmentsConnection::DeleteServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ServiceAttachmentsConnection::GetServiceAttachment( google::cloud::cpp::compute::service_attachments::v1:: @@ -78,6 +96,24 @@ ServiceAttachmentsConnection::InsertServiceAttachment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ServiceAttachmentsConnection::InsertServiceAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + InsertServiceAttachmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ServiceAttachmentsConnection::InsertServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ServiceAttachmentsConnection::ListServiceAttachments( google::cloud::cpp::compute::service_attachments::v1:: @@ -95,6 +131,24 @@ ServiceAttachmentsConnection::PatchServiceAttachment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ServiceAttachmentsConnection::PatchServiceAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + PatchServiceAttachmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ServiceAttachmentsConnection::PatchServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ServiceAttachmentsConnection::SetIamPolicy( google::cloud::cpp::compute::service_attachments::v1:: diff --git a/google/cloud/compute/service_attachments/v1/service_attachments_connection.h b/google/cloud/compute/service_attachments/v1/service_attachments_connection.h index 4e3247216e59a..e9fe7ebdc4fa5 100644 --- a/google/cloud/compute/service_attachments/v1/service_attachments_connection.h +++ b/google/cloud/compute/service_attachments/v1/service_attachments_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/service_attachments/v1/internal/service_attachments_retry_traits.h" #include "google/cloud/compute/service_attachments/v1/service_attachments_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -199,6 +201,17 @@ class ServiceAttachmentsConnection { DeleteServiceAttachment(google::cloud::cpp::compute::service_attachments::v1:: DeleteServiceAttachmentRequest const& request); + virtual StatusOr + DeleteServiceAttachment(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + DeleteServiceAttachmentRequest const& request); + + virtual future> + DeleteServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetServiceAttachment(google::cloud::cpp::compute::service_attachments::v1:: GetServiceAttachmentRequest const& request); @@ -211,6 +224,17 @@ class ServiceAttachmentsConnection { InsertServiceAttachment(google::cloud::cpp::compute::service_attachments::v1:: InsertServiceAttachmentRequest const& request); + virtual StatusOr + InsertServiceAttachment(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + InsertServiceAttachmentRequest const& request); + + virtual future> + InsertServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListServiceAttachments(google::cloud::cpp::compute::service_attachments::v1:: ListServiceAttachmentsRequest request); @@ -219,6 +243,17 @@ class ServiceAttachmentsConnection { PatchServiceAttachment(google::cloud::cpp::compute::service_attachments::v1:: PatchServiceAttachmentRequest const& request); + virtual StatusOr + PatchServiceAttachment(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::service_attachments::v1:: + PatchServiceAttachmentRequest const& request); + + virtual future> + PatchServiceAttachment( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr SetIamPolicy( google::cloud::cpp::compute::service_attachments::v1:: SetIamPolicyRequest const& request); diff --git a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_rest_connection_impl.cc b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_rest_connection_impl.cc index a445ac3ade5b5..f55037bf877bb 100644 --- a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_rest_connection_impl.cc +++ b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_rest_connection_impl.cc @@ -22,6 +22,7 @@ #include "google/cloud/credentials.h" #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -117,6 +118,77 @@ SnapshotSettingsRestConnectionImpl::PatchSnapshotSettings( }); } +StatusOr +SnapshotSettingsRestConnectionImpl::PatchSnapshotSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshot_settings::v1:: + PatchSnapshotSettingsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchSnapshotSettings(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::snapshot_settings::v1:: + PatchSnapshotSettingsRequest const& request) { + return stub_->PatchSnapshotSettings(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SnapshotSettingsRestConnectionImpl::PatchSnapshotSettings( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_snapshot_settings_v1_internal } // namespace cloud diff --git a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_rest_connection_impl.h b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_rest_connection_impl.h index 3ce9eeabfa448..d41653473c48b 100644 --- a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_rest_connection_impl.h +++ b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_rest_connection_impl.h @@ -60,6 +60,16 @@ class SnapshotSettingsRestConnectionImpl google::cloud::cpp::compute::snapshot_settings::v1:: PatchSnapshotSettingsRequest const& request) override; + StatusOr PatchSnapshotSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshot_settings::v1:: + PatchSnapshotSettingsRequest const& request) override; + + future> + PatchSnapshotSettings( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_snapshot_settings_v1::SnapshotSettingsRetryPolicy> diff --git a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.cc b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.cc index c3c76fdb34008..d796b21c3a833 100644 --- a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.cc +++ b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.cc @@ -56,6 +56,33 @@ SnapshotSettingsTracingConnection::PatchSnapshotSettings( child_->PatchSnapshotSettings(request)); } +StatusOr +SnapshotSettingsTracingConnection::PatchSnapshotSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshot_settings::v1:: + PatchSnapshotSettingsRequest const& request) { + auto span = internal::MakeSpan( + "compute_snapshot_settings_v1::SnapshotSettingsConnection::" + "PatchSnapshotSettings"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchSnapshotSettings( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SnapshotSettingsTracingConnection::PatchSnapshotSettings( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_snapshot_settings_v1::SnapshotSettingsConnection::" + "PatchSnapshotSettings"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchSnapshotSettings( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.h b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.h index 5f1c732cf454c..fba77b029742c 100644 --- a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.h +++ b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.h @@ -50,6 +50,16 @@ class SnapshotSettingsTracingConnection google::cloud::cpp::compute::snapshot_settings::v1:: PatchSnapshotSettingsRequest const& request) override; + StatusOr PatchSnapshotSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshot_settings::v1:: + PatchSnapshotSettingsRequest const& request) override; + + future> + PatchSnapshotSettings( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/snapshot_settings/v1/mocks/mock_snapshot_settings_connection.h b/google/cloud/compute/snapshot_settings/v1/mocks/mock_snapshot_settings_connection.h index 79afd7d376c25..c2d260c5a0682 100644 --- a/google/cloud/compute/snapshot_settings/v1/mocks/mock_snapshot_settings_connection.h +++ b/google/cloud/compute/snapshot_settings/v1/mocks/mock_snapshot_settings_connection.h @@ -58,6 +58,19 @@ class MockSnapshotSettingsConnection (google::cloud::cpp::compute::snapshot_settings::v1:: PatchSnapshotSettingsRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + PatchSnapshotSettings, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshot_settings::v1:: + PatchSnapshotSettingsRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchSnapshotSettings, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection.cc b/google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection.cc index a0ba8b3b703da..6022528414817 100644 --- a/google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection.cc +++ b/google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection.cc @@ -51,6 +51,24 @@ SnapshotSettingsConnection::PatchSnapshotSettings( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SnapshotSettingsConnection::PatchSnapshotSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshot_settings::v1:: + PatchSnapshotSettingsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SnapshotSettingsConnection::PatchSnapshotSettings( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_snapshot_settings_v1 } // namespace cloud diff --git a/google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection.h b/google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection.h index 24885b7e34176..5e6451ef41949 100644 --- a/google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection.h +++ b/google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_retry_traits.h" #include "google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -192,6 +194,17 @@ class SnapshotSettingsConnection { virtual future> PatchSnapshotSettings(google::cloud::cpp::compute::snapshot_settings::v1:: PatchSnapshotSettingsRequest const& request); + + virtual StatusOr + PatchSnapshotSettings(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshot_settings::v1:: + PatchSnapshotSettingsRequest const& request); + + virtual future> + PatchSnapshotSettings( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/snapshots/v1/internal/snapshots_rest_connection_impl.cc b/google/cloud/compute/snapshots/v1/internal/snapshots_rest_connection_impl.cc index 26fe118548ef3..50d9f543a168a 100644 --- a/google/cloud/compute/snapshots/v1/internal/snapshots_rest_connection_impl.cc +++ b/google/cloud/compute/snapshots/v1/internal/snapshots_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -100,6 +101,77 @@ SnapshotsRestConnectionImpl::DeleteSnapshot( }); } +StatusOr +SnapshotsRestConnectionImpl::DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSnapshot(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::snapshots::v1:: + DeleteSnapshotRequest const& request) { + return stub_->DeleteSnapshot(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SnapshotsRestConnectionImpl::DeleteSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr SnapshotsRestConnectionImpl::GetSnapshot( google::cloud::cpp::compute::snapshots::v1::GetSnapshotRequest const& @@ -192,6 +264,77 @@ SnapshotsRestConnectionImpl::InsertSnapshot( }); } +StatusOr +SnapshotsRestConnectionImpl::InsertSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertSnapshot(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::snapshots::v1:: + InsertSnapshotRequest const& request) { + return stub_->InsertSnapshot(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SnapshotsRestConnectionImpl::InsertSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange SnapshotsRestConnectionImpl::ListSnapshots( google::cloud::cpp::compute::snapshots::v1::ListSnapshotsRequest request) { @@ -303,6 +446,77 @@ SnapshotsRestConnectionImpl::SetLabels( }); } +StatusOr +SnapshotsRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const& + request) { + return stub_->SetLabels(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SnapshotsRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr SnapshotsRestConnectionImpl::TestIamPermissions( google::cloud::cpp::compute::snapshots::v1::TestIamPermissionsRequest const& diff --git a/google/cloud/compute/snapshots/v1/internal/snapshots_rest_connection_impl.h b/google/cloud/compute/snapshots/v1/internal/snapshots_rest_connection_impl.h index 55fdc4c0ad20a..6306a1d9c3aa7 100644 --- a/google/cloud/compute/snapshots/v1/internal/snapshots_rest_connection_impl.h +++ b/google/cloud/compute/snapshots/v1/internal/snapshots_rest_connection_impl.h @@ -54,6 +54,15 @@ class SnapshotsRestConnectionImpl google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const& request) override; + StatusOr DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const& + request) override; + + future> DeleteSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetSnapshot( google::cloud::cpp::compute::snapshots::v1::GetSnapshotRequest const& request) override; @@ -66,6 +75,15 @@ class SnapshotsRestConnectionImpl google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const& request) override; + StatusOr InsertSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const& + request) override; + + future> InsertSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListSnapshots( google::cloud::cpp::compute::snapshots::v1::ListSnapshotsRequest request) override; @@ -78,6 +96,15 @@ class SnapshotsRestConnectionImpl google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::snapshots::v1:: TestIamPermissionsRequest const& request) override; diff --git a/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.cc b/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.cc index febf130e6db41..a8cee89b91475 100644 --- a/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.cc +++ b/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.cc @@ -43,6 +43,31 @@ SnapshotsTracingConnection::DeleteSnapshot( return internal::EndSpan(std::move(span), child_->DeleteSnapshot(request)); } +StatusOr +SnapshotsTracingConnection::DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const& + request) { + auto span = internal::MakeSpan( + "compute_snapshots_v1::SnapshotsConnection::DeleteSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSnapshot(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SnapshotsTracingConnection::DeleteSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_snapshots_v1::SnapshotsConnection::DeleteSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSnapshot(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SnapshotsTracingConnection::GetSnapshot( google::cloud::cpp::compute::snapshots::v1::GetSnapshotRequest const& @@ -73,6 +98,31 @@ SnapshotsTracingConnection::InsertSnapshot( return internal::EndSpan(std::move(span), child_->InsertSnapshot(request)); } +StatusOr +SnapshotsTracingConnection::InsertSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const& + request) { + auto span = internal::MakeSpan( + "compute_snapshots_v1::SnapshotsConnection::InsertSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertSnapshot(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SnapshotsTracingConnection::InsertSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_snapshots_v1::SnapshotsConnection::InsertSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertSnapshot(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange SnapshotsTracingConnection::ListSnapshots( google::cloud::cpp::compute::snapshots::v1::ListSnapshotsRequest request) { @@ -105,6 +155,31 @@ SnapshotsTracingConnection::SetLabels( return internal::EndSpan(std::move(span), child_->SetLabels(request)); } +StatusOr +SnapshotsTracingConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const& + request) { + auto span = internal::MakeSpan( + "compute_snapshots_v1::SnapshotsConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SnapshotsTracingConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_snapshots_v1::SnapshotsConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SnapshotsTracingConnection::TestIamPermissions( google::cloud::cpp::compute::snapshots::v1::TestIamPermissionsRequest const& diff --git a/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.h b/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.h index 83a45b2b0fa8a..69b4cee95016b 100644 --- a/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.h +++ b/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.h @@ -44,6 +44,15 @@ class SnapshotsTracingConnection google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const& request) override; + StatusOr DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const& + request) override; + + future> DeleteSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetSnapshot( google::cloud::cpp::compute::snapshots::v1::GetSnapshotRequest const& request) override; @@ -56,6 +65,15 @@ class SnapshotsTracingConnection google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const& request) override; + StatusOr InsertSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const& + request) override; + + future> InsertSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListSnapshots( google::cloud::cpp::compute::snapshots::v1::ListSnapshotsRequest request) override; @@ -68,6 +86,15 @@ class SnapshotsTracingConnection google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::snapshots::v1:: TestIamPermissionsRequest const& request) override; diff --git a/google/cloud/compute/snapshots/v1/mocks/mock_snapshots_connection.h b/google/cloud/compute/snapshots/v1/mocks/mock_snapshots_connection.h index 86f2c1550cff3..4f5b0e84e8896 100644 --- a/google/cloud/compute/snapshots/v1/mocks/mock_snapshots_connection.h +++ b/google/cloud/compute/snapshots/v1/mocks/mock_snapshots_connection.h @@ -54,6 +54,19 @@ class MockSnapshotsConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteSnapshot, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteSnapshot, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetSnapshot, (google::cloud::cpp::compute::snapshots::v1::GetSnapshotRequest const& @@ -73,6 +86,19 @@ class MockSnapshotsConnection request), (override)); + MOCK_METHOD( + StatusOr, InsertSnapshot, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const& + request), + (override)); + + MOCK_METHOD(future>, + InsertSnapshot, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListSnapshots, (google::cloud::cpp::compute::snapshots::v1::ListSnapshotsRequest @@ -91,6 +117,19 @@ class MockSnapshotsConnection request), (override)); + MOCK_METHOD( + StatusOr, SetLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + SetLabels, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, TestIamPermissions, diff --git a/google/cloud/compute/snapshots/v1/snapshots_connection.cc b/google/cloud/compute/snapshots/v1/snapshots_connection.cc index 7b7886f671372..2d834dce20c1c 100644 --- a/google/cloud/compute/snapshots/v1/snapshots_connection.cc +++ b/google/cloud/compute/snapshots/v1/snapshots_connection.cc @@ -44,6 +44,23 @@ SnapshotsConnection::DeleteSnapshot( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SnapshotsConnection::DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SnapshotsConnection::DeleteSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SnapshotsConnection::GetSnapshot( google::cloud::cpp::compute::snapshots::v1::GetSnapshotRequest const&) { @@ -64,6 +81,23 @@ SnapshotsConnection::InsertSnapshot( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SnapshotsConnection::InsertSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SnapshotsConnection::InsertSnapshot( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange SnapshotsConnection::ListSnapshots( google::cloud::cpp::compute::snapshots::v1:: @@ -86,6 +120,23 @@ SnapshotsConnection::SetLabels( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SnapshotsConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SnapshotsConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SnapshotsConnection::TestIamPermissions( google::cloud::cpp::compute::snapshots::v1:: diff --git a/google/cloud/compute/snapshots/v1/snapshots_connection.h b/google/cloud/compute/snapshots/v1/snapshots_connection.h index 25c823788a7cf..b3c5ea14b8042 100644 --- a/google/cloud/compute/snapshots/v1/snapshots_connection.h +++ b/google/cloud/compute/snapshots/v1/snapshots_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/snapshots/v1/internal/snapshots_retry_traits.h" #include "google/cloud/compute/snapshots/v1/snapshots_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -188,6 +190,15 @@ class SnapshotsConnection { google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const& request); + virtual StatusOr DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const& + request); + + virtual future> + DeleteSnapshot(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetSnapshot( google::cloud::cpp::compute::snapshots::v1::GetSnapshotRequest const& request); @@ -201,6 +212,15 @@ class SnapshotsConnection { google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const& request); + virtual StatusOr InsertSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const& + request); + + virtual future> + InsertSnapshot(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListSnapshots( google::cloud::cpp::compute::snapshots::v1::ListSnapshotsRequest request); @@ -212,6 +232,15 @@ class SnapshotsConnection { SetLabels(google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const& request); + virtual StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const& + request); + + virtual future> + SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr TestIamPermissions(google::cloud::cpp::compute::snapshots::v1:: TestIamPermissionsRequest const& request); diff --git a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_rest_connection_impl.cc b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_rest_connection_impl.cc index 535e6e459ad1f..8f47bd27d6e11 100644 --- a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_rest_connection_impl.cc +++ b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -145,6 +146,77 @@ SslCertificatesRestConnectionImpl::DeleteSslCertificate( }); } +StatusOr +SslCertificatesRestConnectionImpl::DeleteSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_certificates::v1:: + DeleteSslCertificateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSslCertificate(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::ssl_certificates::v1:: + DeleteSslCertificateRequest const& request) { + return stub_->DeleteSslCertificate(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SslCertificatesRestConnectionImpl::DeleteSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr SslCertificatesRestConnectionImpl::GetSslCertificate( google::cloud::cpp::compute::ssl_certificates::v1:: @@ -219,6 +291,77 @@ SslCertificatesRestConnectionImpl::InsertSslCertificate( }); } +StatusOr +SslCertificatesRestConnectionImpl::InsertSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_certificates::v1:: + InsertSslCertificateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertSslCertificate(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::ssl_certificates::v1:: + InsertSslCertificateRequest const& request) { + return stub_->InsertSslCertificate(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SslCertificatesRestConnectionImpl::InsertSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange SslCertificatesRestConnectionImpl::ListSslCertificates( google::cloud::cpp::compute::ssl_certificates::v1:: diff --git a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_rest_connection_impl.h b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_rest_connection_impl.h index b1a7aa4524f8f..107eea04128a3 100644 --- a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_rest_connection_impl.h +++ b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_rest_connection_impl.h @@ -62,6 +62,16 @@ class SslCertificatesRestConnectionImpl DeleteSslCertificate(google::cloud::cpp::compute::ssl_certificates::v1:: DeleteSslCertificateRequest const& request) override; + StatusOr DeleteSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_certificates::v1:: + DeleteSslCertificateRequest const& request) override; + + future> + DeleteSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetSslCertificate( google::cloud::cpp::compute::ssl_certificates::v1:: GetSslCertificateRequest const& request) override; @@ -70,6 +80,16 @@ class SslCertificatesRestConnectionImpl InsertSslCertificate(google::cloud::cpp::compute::ssl_certificates::v1:: InsertSslCertificateRequest const& request) override; + StatusOr InsertSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_certificates::v1:: + InsertSslCertificateRequest const& request) override; + + future> + InsertSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListSslCertificates(google::cloud::cpp::compute::ssl_certificates::v1:: ListSslCertificatesRequest request) override; diff --git a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.cc b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.cc index f96109bfd76ef..9be47ba6b9284 100644 --- a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.cc +++ b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.cc @@ -61,6 +61,33 @@ SslCertificatesTracingConnection::DeleteSslCertificate( child_->DeleteSslCertificate(request)); } +StatusOr +SslCertificatesTracingConnection::DeleteSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_certificates::v1:: + DeleteSslCertificateRequest const& request) { + auto span = internal::MakeSpan( + "compute_ssl_certificates_v1::SslCertificatesConnection::" + "DeleteSslCertificate"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteSslCertificate( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SslCertificatesTracingConnection::DeleteSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_ssl_certificates_v1::SslCertificatesConnection::" + "DeleteSslCertificate"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteSslCertificate( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SslCertificatesTracingConnection::GetSslCertificate( google::cloud::cpp::compute::ssl_certificates::v1:: @@ -84,6 +111,33 @@ SslCertificatesTracingConnection::InsertSslCertificate( child_->InsertSslCertificate(request)); } +StatusOr +SslCertificatesTracingConnection::InsertSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_certificates::v1:: + InsertSslCertificateRequest const& request) { + auto span = internal::MakeSpan( + "compute_ssl_certificates_v1::SslCertificatesConnection::" + "InsertSslCertificate"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertSslCertificate( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SslCertificatesTracingConnection::InsertSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_ssl_certificates_v1::SslCertificatesConnection::" + "InsertSslCertificate"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertSslCertificate( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange SslCertificatesTracingConnection::ListSslCertificates( google::cloud::cpp::compute::ssl_certificates::v1:: diff --git a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.h b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.h index d9c6c9ae75445..e096de607c44f 100644 --- a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.h +++ b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.h @@ -51,6 +51,16 @@ class SslCertificatesTracingConnection DeleteSslCertificate(google::cloud::cpp::compute::ssl_certificates::v1:: DeleteSslCertificateRequest const& request) override; + StatusOr DeleteSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_certificates::v1:: + DeleteSslCertificateRequest const& request) override; + + future> + DeleteSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetSslCertificate( google::cloud::cpp::compute::ssl_certificates::v1:: GetSslCertificateRequest const& request) override; @@ -59,6 +69,16 @@ class SslCertificatesTracingConnection InsertSslCertificate(google::cloud::cpp::compute::ssl_certificates::v1:: InsertSslCertificateRequest const& request) override; + StatusOr InsertSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_certificates::v1:: + InsertSslCertificateRequest const& request) override; + + future> + InsertSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListSslCertificates(google::cloud::cpp::compute::ssl_certificates::v1:: ListSslCertificatesRequest request) override; diff --git a/google/cloud/compute/ssl_certificates/v1/mocks/mock_ssl_certificates_connection.h b/google/cloud/compute/ssl_certificates/v1/mocks/mock_ssl_certificates_connection.h index cd0f9a811dbec..e0e8586681450 100644 --- a/google/cloud/compute/ssl_certificates/v1/mocks/mock_ssl_certificates_connection.h +++ b/google/cloud/compute/ssl_certificates/v1/mocks/mock_ssl_certificates_connection.h @@ -61,6 +61,19 @@ class MockSslCertificatesConnection DeleteSslCertificateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteSslCertificate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_certificates::v1:: + DeleteSslCertificateRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteSslCertificate, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetSslCertificate, (google::cloud::cpp::compute::ssl_certificates::v1:: @@ -73,6 +86,19 @@ class MockSslCertificatesConnection InsertSslCertificateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertSslCertificate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_certificates::v1:: + InsertSslCertificateRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertSslCertificate, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListSslCertificates, (google::cloud::cpp::compute::ssl_certificates::v1:: diff --git a/google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection.cc b/google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection.cc index caee050c311c0..26cec0d448397 100644 --- a/google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection.cc +++ b/google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection.cc @@ -55,6 +55,24 @@ SslCertificatesConnection::DeleteSslCertificate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SslCertificatesConnection::DeleteSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_certificates::v1:: + DeleteSslCertificateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SslCertificatesConnection::DeleteSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SslCertificatesConnection::GetSslCertificate( google::cloud::cpp::compute::ssl_certificates::v1:: @@ -71,6 +89,24 @@ SslCertificatesConnection::InsertSslCertificate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SslCertificatesConnection::InsertSslCertificate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_certificates::v1:: + InsertSslCertificateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SslCertificatesConnection::InsertSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange SslCertificatesConnection::ListSslCertificates( google::cloud::cpp::compute::ssl_certificates::v1:: diff --git a/google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection.h b/google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection.h index b32fd79e33928..f87d0917935d7 100644 --- a/google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection.h +++ b/google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_retry_traits.h" #include "google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -196,6 +198,17 @@ class SslCertificatesConnection { DeleteSslCertificate(google::cloud::cpp::compute::ssl_certificates::v1:: DeleteSslCertificateRequest const& request); + virtual StatusOr + DeleteSslCertificate(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_certificates::v1:: + DeleteSslCertificateRequest const& request); + + virtual future> + DeleteSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetSslCertificate(google::cloud::cpp::compute::ssl_certificates::v1:: GetSslCertificateRequest const& request); @@ -204,6 +217,17 @@ class SslCertificatesConnection { InsertSslCertificate(google::cloud::cpp::compute::ssl_certificates::v1:: InsertSslCertificateRequest const& request); + virtual StatusOr + InsertSslCertificate(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_certificates::v1:: + InsertSslCertificateRequest const& request); + + virtual future> + InsertSslCertificate( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListSslCertificates(google::cloud::cpp::compute::ssl_certificates::v1:: ListSslCertificatesRequest request); diff --git a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_rest_connection_impl.cc b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_rest_connection_impl.cc index e4a7bf883ef93..5e0f6d3d85c76 100644 --- a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_rest_connection_impl.cc +++ b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -142,6 +143,77 @@ SslPoliciesRestConnectionImpl::DeleteSslPolicy( }); } +StatusOr +SslPoliciesRestConnectionImpl::DeleteSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1::DeleteSslPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSslPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::ssl_policies::v1:: + DeleteSslPolicyRequest const& request) { + return stub_->DeleteSslPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SslPoliciesRestConnectionImpl::DeleteSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr SslPoliciesRestConnectionImpl::GetSslPolicy( google::cloud::cpp::compute::ssl_policies::v1::GetSslPolicyRequest const& @@ -216,6 +288,77 @@ SslPoliciesRestConnectionImpl::InsertSslPolicy( }); } +StatusOr +SslPoliciesRestConnectionImpl::InsertSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1::InsertSslPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertSslPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::ssl_policies::v1:: + InsertSslPolicyRequest const& request) { + return stub_->InsertSslPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SslPoliciesRestConnectionImpl::InsertSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange SslPoliciesRestConnectionImpl::ListSslPolicies( google::cloud::cpp::compute::ssl_policies::v1::ListSslPoliciesRequest @@ -327,6 +470,77 @@ SslPoliciesRestConnectionImpl::PatchSslPolicy( }); } +StatusOr +SslPoliciesRestConnectionImpl::PatchSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1::PatchSslPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchSslPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::ssl_policies::v1:: + PatchSslPolicyRequest const& request) { + return stub_->PatchSslPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SslPoliciesRestConnectionImpl::PatchSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_ssl_policies_v1_internal } // namespace cloud diff --git a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_rest_connection_impl.h b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_rest_connection_impl.h index 2528c7058f620..7e747e5337033 100644 --- a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_rest_connection_impl.h +++ b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_rest_connection_impl.h @@ -61,6 +61,15 @@ class SslPoliciesRestConnectionImpl google::cloud::cpp::compute::ssl_policies::v1:: DeleteSslPolicyRequest const& request) override; + StatusOr DeleteSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1:: + DeleteSslPolicyRequest const& request) override; + + future> DeleteSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetSslPolicy( google::cloud::cpp::compute::ssl_policies::v1::GetSslPolicyRequest const& request) override; @@ -69,6 +78,15 @@ class SslPoliciesRestConnectionImpl google::cloud::cpp::compute::ssl_policies::v1:: InsertSslPolicyRequest const& request) override; + StatusOr InsertSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1:: + InsertSslPolicyRequest const& request) override; + + future> InsertSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListSslPolicies( google::cloud::cpp::compute::ssl_policies::v1::ListSslPoliciesRequest request) override; @@ -83,6 +101,15 @@ class SslPoliciesRestConnectionImpl google::cloud::cpp::compute::ssl_policies::v1:: PatchSslPolicyRequest const& request) override; + StatusOr PatchSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1:: + PatchSslPolicyRequest const& request) override; + + future> PatchSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy(Options const& options) { diff --git a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.cc b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.cc index 3ed05a3d05179..6c67aadfa5006 100644 --- a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.cc +++ b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.cc @@ -58,6 +58,31 @@ SslPoliciesTracingConnection::DeleteSslPolicy( return internal::EndSpan(std::move(span), child_->DeleteSslPolicy(request)); } +StatusOr +SslPoliciesTracingConnection::DeleteSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1::DeleteSslPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "compute_ssl_policies_v1::SslPoliciesConnection::DeleteSslPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSslPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SslPoliciesTracingConnection::DeleteSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_ssl_policies_v1::SslPoliciesConnection::DeleteSslPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSslPolicy(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SslPoliciesTracingConnection::GetSslPolicy( google::cloud::cpp::compute::ssl_policies::v1::GetSslPolicyRequest const& @@ -78,6 +103,31 @@ SslPoliciesTracingConnection::InsertSslPolicy( return internal::EndSpan(std::move(span), child_->InsertSslPolicy(request)); } +StatusOr +SslPoliciesTracingConnection::InsertSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1::InsertSslPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "compute_ssl_policies_v1::SslPoliciesConnection::InsertSslPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertSslPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SslPoliciesTracingConnection::InsertSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_ssl_policies_v1::SslPoliciesConnection::InsertSslPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertSslPolicy(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange SslPoliciesTracingConnection::ListSslPolicies( google::cloud::cpp::compute::ssl_policies::v1::ListSslPoliciesRequest @@ -112,6 +162,31 @@ SslPoliciesTracingConnection::PatchSslPolicy( return internal::EndSpan(std::move(span), child_->PatchSslPolicy(request)); } +StatusOr +SslPoliciesTracingConnection::PatchSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1::PatchSslPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "compute_ssl_policies_v1::SslPoliciesConnection::PatchSslPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchSslPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SslPoliciesTracingConnection::PatchSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_ssl_policies_v1::SslPoliciesConnection::PatchSslPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchSslPolicy(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.h b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.h index 34a3b8961746a..f4d27582518ca 100644 --- a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.h +++ b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.h @@ -50,6 +50,15 @@ class SslPoliciesTracingConnection google::cloud::cpp::compute::ssl_policies::v1:: DeleteSslPolicyRequest const& request) override; + StatusOr DeleteSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1:: + DeleteSslPolicyRequest const& request) override; + + future> DeleteSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetSslPolicy( google::cloud::cpp::compute::ssl_policies::v1::GetSslPolicyRequest const& request) override; @@ -58,6 +67,15 @@ class SslPoliciesTracingConnection google::cloud::cpp::compute::ssl_policies::v1:: InsertSslPolicyRequest const& request) override; + StatusOr InsertSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1:: + InsertSslPolicyRequest const& request) override; + + future> InsertSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListSslPolicies( google::cloud::cpp::compute::ssl_policies::v1::ListSslPoliciesRequest request) override; @@ -72,6 +90,15 @@ class SslPoliciesTracingConnection google::cloud::cpp::compute::ssl_policies::v1:: PatchSslPolicyRequest const& request) override; + StatusOr PatchSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1:: + PatchSslPolicyRequest const& request) override; + + future> PatchSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/ssl_policies/v1/mocks/mock_ssl_policies_connection.h b/google/cloud/compute/ssl_policies/v1/mocks/mock_ssl_policies_connection.h index c99cd93efe3e0..68b63538dccec 100644 --- a/google/cloud/compute/ssl_policies/v1/mocks/mock_ssl_policies_connection.h +++ b/google/cloud/compute/ssl_policies/v1/mocks/mock_ssl_policies_connection.h @@ -62,6 +62,19 @@ class MockSslPoliciesConnection DeleteSslPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteSslPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1:: + DeleteSslPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteSslPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetSslPolicy, (google::cloud::cpp::compute::ssl_policies::v1::GetSslPolicyRequest const& @@ -74,6 +87,19 @@ class MockSslPoliciesConnection InsertSslPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertSslPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1:: + InsertSslPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertSslPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListSslPolicies, @@ -93,6 +119,19 @@ class MockSslPoliciesConnection (google::cloud::cpp::compute::ssl_policies::v1:: PatchSslPolicyRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + PatchSslPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1:: + PatchSslPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchSslPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/ssl_policies/v1/ssl_policies_connection.cc b/google/cloud/compute/ssl_policies/v1/ssl_policies_connection.cc index c9b0e1472ad3c..40e27e4b6f1e5 100644 --- a/google/cloud/compute/ssl_policies/v1/ssl_policies_connection.cc +++ b/google/cloud/compute/ssl_policies/v1/ssl_policies_connection.cc @@ -55,6 +55,24 @@ SslPoliciesConnection::DeleteSslPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SslPoliciesConnection::DeleteSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1:: + DeleteSslPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SslPoliciesConnection::DeleteSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SslPoliciesConnection::GetSslPolicy( google::cloud::cpp::compute::ssl_policies::v1::GetSslPolicyRequest const&) { @@ -70,6 +88,24 @@ SslPoliciesConnection::InsertSslPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SslPoliciesConnection::InsertSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1:: + InsertSslPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SslPoliciesConnection::InsertSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange SslPoliciesConnection::ListSslPolicies( google::cloud::cpp::compute::ssl_policies::v1:: @@ -95,6 +131,24 @@ SslPoliciesConnection::PatchSslPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SslPoliciesConnection::PatchSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1:: + PatchSslPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SslPoliciesConnection::PatchSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_ssl_policies_v1 } // namespace cloud diff --git a/google/cloud/compute/ssl_policies/v1/ssl_policies_connection.h b/google/cloud/compute/ssl_policies/v1/ssl_policies_connection.h index 1ea63e1ef9499..ff31c62fa78fd 100644 --- a/google/cloud/compute/ssl_policies/v1/ssl_policies_connection.h +++ b/google/cloud/compute/ssl_policies/v1/ssl_policies_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/ssl_policies/v1/internal/ssl_policies_retry_traits.h" #include "google/cloud/compute/ssl_policies/v1/ssl_policies_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -192,6 +194,15 @@ class SslPoliciesConnection { DeleteSslPolicy(google::cloud::cpp::compute::ssl_policies::v1:: DeleteSslPolicyRequest const& request); + virtual StatusOr DeleteSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1:: + DeleteSslPolicyRequest const& request); + + virtual future> + DeleteSslPolicy(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetSslPolicy( google::cloud::cpp::compute::ssl_policies::v1::GetSslPolicyRequest const& request); @@ -200,6 +211,15 @@ class SslPoliciesConnection { InsertSslPolicy(google::cloud::cpp::compute::ssl_policies::v1:: InsertSslPolicyRequest const& request); + virtual StatusOr InsertSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1:: + InsertSslPolicyRequest const& request); + + virtual future> + InsertSslPolicy(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListSslPolicies( google::cloud::cpp::compute::ssl_policies::v1::ListSslPoliciesRequest @@ -213,6 +233,15 @@ class SslPoliciesConnection { virtual future> PatchSslPolicy(google::cloud::cpp::compute::ssl_policies::v1:: PatchSslPolicyRequest const& request); + + virtual StatusOr PatchSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::ssl_policies::v1:: + PatchSslPolicyRequest const& request); + + virtual future> + PatchSslPolicy(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/storage_pool_types/v1/storage_pool_types_connection.h b/google/cloud/compute/storage_pool_types/v1/storage_pool_types_connection.h index 868fb2c4ca682..877f043c42aaa 100644 --- a/google/cloud/compute/storage_pool_types/v1/storage_pool_types_connection.h +++ b/google/cloud/compute/storage_pool_types/v1/storage_pool_types_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/storage_pool_types/v1/internal/storage_pool_types_retry_traits.h" #include "google/cloud/compute/storage_pool_types/v1/storage_pool_types_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/compute/storage_pools/v1/internal/storage_pools_rest_connection_impl.cc b/google/cloud/compute/storage_pools/v1/internal/storage_pools_rest_connection_impl.cc index 3b499a44c0ff2..9fa28fae18678 100644 --- a/google/cloud/compute/storage_pools/v1/internal/storage_pools_rest_connection_impl.cc +++ b/google/cloud/compute/storage_pools/v1/internal/storage_pools_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -146,6 +147,79 @@ StoragePoolsRestConnectionImpl::DeleteStoragePool( }); } +StatusOr +StoragePoolsRestConnectionImpl::DeleteStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + DeleteStoragePoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteStoragePool(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::storage_pools::v1:: + DeleteStoragePoolRequest const& request) { + return stub_->DeleteStoragePool(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +StoragePoolsRestConnectionImpl::DeleteStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StatusOr StoragePoolsRestConnectionImpl::GetStoragePool( google::cloud::cpp::compute::storage_pools::v1::GetStoragePoolRequest const& @@ -238,6 +312,79 @@ StoragePoolsRestConnectionImpl::InsertStoragePool( }); } +StatusOr +StoragePoolsRestConnectionImpl::InsertStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + InsertStoragePoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertStoragePool(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::storage_pools::v1:: + InsertStoragePoolRequest const& request) { + return stub_->InsertStoragePool(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +StoragePoolsRestConnectionImpl::InsertStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StreamRange StoragePoolsRestConnectionImpl::ListStoragePools( google::cloud::cpp::compute::storage_pools::v1::ListStoragePoolsRequest @@ -403,6 +550,79 @@ StoragePoolsRestConnectionImpl::UpdateStoragePool( }); } +StatusOr +StoragePoolsRestConnectionImpl::UpdateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + UpdateStoragePoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateStoragePool(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::storage_pools::v1:: + UpdateStoragePoolRequest const& request) { + return stub_->UpdateStoragePool(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +StoragePoolsRestConnectionImpl::UpdateStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_storage_pools_v1_internal } // namespace cloud diff --git a/google/cloud/compute/storage_pools/v1/internal/storage_pools_rest_connection_impl.h b/google/cloud/compute/storage_pools/v1/internal/storage_pools_rest_connection_impl.h index 5e3c79632f0b5..02649e7f0b999 100644 --- a/google/cloud/compute/storage_pools/v1/internal/storage_pools_rest_connection_impl.h +++ b/google/cloud/compute/storage_pools/v1/internal/storage_pools_rest_connection_impl.h @@ -61,6 +61,16 @@ class StoragePoolsRestConnectionImpl DeleteStoragePool(google::cloud::cpp::compute::storage_pools::v1:: DeleteStoragePoolRequest const& request) override; + StatusOr DeleteStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + DeleteStoragePoolRequest const& request) override; + + future> + DeleteStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetStoragePool( google::cloud::cpp::compute::storage_pools::v1:: GetStoragePoolRequest const& request) override; @@ -73,6 +83,16 @@ class StoragePoolsRestConnectionImpl InsertStoragePool(google::cloud::cpp::compute::storage_pools::v1:: InsertStoragePoolRequest const& request) override; + StatusOr InsertStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + InsertStoragePoolRequest const& request) override; + + future> + InsertStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListStoragePools( google::cloud::cpp::compute::storage_pools::v1::ListStoragePoolsRequest request) override; @@ -93,6 +113,16 @@ class StoragePoolsRestConnectionImpl UpdateStoragePool(google::cloud::cpp::compute::storage_pools::v1:: UpdateStoragePoolRequest const& request) override; + StatusOr UpdateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + UpdateStoragePoolRequest const& request) override; + + future> + UpdateStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy(Options const& options) { diff --git a/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.cc b/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.cc index b45aaccc73c99..5c369f461dbb2 100644 --- a/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.cc +++ b/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.cc @@ -58,6 +58,31 @@ StoragePoolsTracingConnection::DeleteStoragePool( return internal::EndSpan(std::move(span), child_->DeleteStoragePool(request)); } +StatusOr +StoragePoolsTracingConnection::DeleteStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + DeleteStoragePoolRequest const& request) { + auto span = internal::MakeSpan( + "compute_storage_pools_v1::StoragePoolsConnection::DeleteStoragePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteStoragePool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +StoragePoolsTracingConnection::DeleteStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_storage_pools_v1::StoragePoolsConnection::DeleteStoragePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteStoragePool(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr StoragePoolsTracingConnection::GetStoragePool( google::cloud::cpp::compute::storage_pools::v1::GetStoragePoolRequest const& @@ -88,6 +113,31 @@ StoragePoolsTracingConnection::InsertStoragePool( return internal::EndSpan(std::move(span), child_->InsertStoragePool(request)); } +StatusOr +StoragePoolsTracingConnection::InsertStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + InsertStoragePoolRequest const& request) { + auto span = internal::MakeSpan( + "compute_storage_pools_v1::StoragePoolsConnection::InsertStoragePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertStoragePool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +StoragePoolsTracingConnection::InsertStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_storage_pools_v1::StoragePoolsConnection::InsertStoragePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertStoragePool(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange StoragePoolsTracingConnection::ListStoragePools( google::cloud::cpp::compute::storage_pools::v1::ListStoragePoolsRequest @@ -143,6 +193,31 @@ StoragePoolsTracingConnection::UpdateStoragePool( return internal::EndSpan(std::move(span), child_->UpdateStoragePool(request)); } +StatusOr +StoragePoolsTracingConnection::UpdateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + UpdateStoragePoolRequest const& request) { + auto span = internal::MakeSpan( + "compute_storage_pools_v1::StoragePoolsConnection::UpdateStoragePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateStoragePool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +StoragePoolsTracingConnection::UpdateStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_storage_pools_v1::StoragePoolsConnection::UpdateStoragePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateStoragePool(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.h b/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.h index 93346c2f30deb..326e92bad0054 100644 --- a/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.h +++ b/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.h @@ -50,6 +50,16 @@ class StoragePoolsTracingConnection DeleteStoragePool(google::cloud::cpp::compute::storage_pools::v1:: DeleteStoragePoolRequest const& request) override; + StatusOr DeleteStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + DeleteStoragePoolRequest const& request) override; + + future> + DeleteStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetStoragePool( google::cloud::cpp::compute::storage_pools::v1:: GetStoragePoolRequest const& request) override; @@ -62,6 +72,16 @@ class StoragePoolsTracingConnection InsertStoragePool(google::cloud::cpp::compute::storage_pools::v1:: InsertStoragePoolRequest const& request) override; + StatusOr InsertStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + InsertStoragePoolRequest const& request) override; + + future> + InsertStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListStoragePools( google::cloud::cpp::compute::storage_pools::v1::ListStoragePoolsRequest request) override; @@ -82,6 +102,16 @@ class StoragePoolsTracingConnection UpdateStoragePool(google::cloud::cpp::compute::storage_pools::v1:: UpdateStoragePoolRequest const& request) override; + StatusOr UpdateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + UpdateStoragePoolRequest const& request) override; + + future> + UpdateStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/storage_pools/v1/mocks/mock_storage_pools_connection.h b/google/cloud/compute/storage_pools/v1/mocks/mock_storage_pools_connection.h index af94670954061..cd2df449fc400 100644 --- a/google/cloud/compute/storage_pools/v1/mocks/mock_storage_pools_connection.h +++ b/google/cloud/compute/storage_pools/v1/mocks/mock_storage_pools_connection.h @@ -62,6 +62,19 @@ class MockStoragePoolsConnection DeleteStoragePoolRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteStoragePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + DeleteStoragePoolRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteStoragePool, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetStoragePool, (google::cloud::cpp::compute::storage_pools::v1:: @@ -79,6 +92,19 @@ class MockStoragePoolsConnection InsertStoragePoolRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertStoragePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + InsertStoragePoolRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertStoragePool, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListStoragePools, @@ -109,6 +135,19 @@ class MockStoragePoolsConnection (google::cloud::cpp::compute::storage_pools::v1:: UpdateStoragePoolRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + UpdateStoragePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + UpdateStoragePoolRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateStoragePool, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/storage_pools/v1/storage_pools_connection.cc b/google/cloud/compute/storage_pools/v1/storage_pools_connection.cc index a95a8fe98687a..ca82b254e95fb 100644 --- a/google/cloud/compute/storage_pools/v1/storage_pools_connection.cc +++ b/google/cloud/compute/storage_pools/v1/storage_pools_connection.cc @@ -55,6 +55,24 @@ StoragePoolsConnection::DeleteStoragePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +StoragePoolsConnection::DeleteStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + DeleteStoragePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +StoragePoolsConnection::DeleteStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr StoragePoolsConnection::GetStoragePool( google::cloud::cpp::compute::storage_pools::v1:: @@ -78,6 +96,24 @@ StoragePoolsConnection::InsertStoragePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +StoragePoolsConnection::InsertStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + InsertStoragePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +StoragePoolsConnection::InsertStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange StoragePoolsConnection::ListStoragePools( google::cloud::cpp::compute::storage_pools::v1:: @@ -117,6 +153,24 @@ StoragePoolsConnection::UpdateStoragePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +StoragePoolsConnection::UpdateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + UpdateStoragePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +StoragePoolsConnection::UpdateStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_storage_pools_v1 } // namespace cloud diff --git a/google/cloud/compute/storage_pools/v1/storage_pools_connection.h b/google/cloud/compute/storage_pools/v1/storage_pools_connection.h index 3589428dea755..5af083b3fbb4f 100644 --- a/google/cloud/compute/storage_pools/v1/storage_pools_connection.h +++ b/google/cloud/compute/storage_pools/v1/storage_pools_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/storage_pools/v1/internal/storage_pools_retry_traits.h" #include "google/cloud/compute/storage_pools/v1/storage_pools_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -194,6 +196,16 @@ class StoragePoolsConnection { DeleteStoragePool(google::cloud::cpp::compute::storage_pools::v1:: DeleteStoragePoolRequest const& request); + virtual StatusOr + DeleteStoragePool(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + DeleteStoragePoolRequest const& request); + + virtual future> + DeleteStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetStoragePool( google::cloud::cpp::compute::storage_pools::v1:: GetStoragePoolRequest const& request); @@ -206,6 +218,16 @@ class StoragePoolsConnection { InsertStoragePool(google::cloud::cpp::compute::storage_pools::v1:: InsertStoragePoolRequest const& request); + virtual StatusOr + InsertStoragePool(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + InsertStoragePoolRequest const& request); + + virtual future> + InsertStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListStoragePools( google::cloud::cpp::compute::storage_pools::v1::ListStoragePoolsRequest @@ -226,6 +248,16 @@ class StoragePoolsConnection { virtual future> UpdateStoragePool(google::cloud::cpp::compute::storage_pools::v1:: UpdateStoragePoolRequest const& request); + + virtual StatusOr + UpdateStoragePool(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::storage_pools::v1:: + UpdateStoragePoolRequest const& request); + + virtual future> + UpdateStoragePool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/subnetworks/v1/internal/subnetworks_rest_connection_impl.cc b/google/cloud/compute/subnetworks/v1/internal/subnetworks_rest_connection_impl.cc index 1d7f22a087b8d..96b747bfc0ca0 100644 --- a/google/cloud/compute/subnetworks/v1/internal/subnetworks_rest_connection_impl.cc +++ b/google/cloud/compute/subnetworks/v1/internal/subnetworks_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -144,6 +145,79 @@ SubnetworksRestConnectionImpl::DeleteSubnetwork( }); } +StatusOr +SubnetworksRestConnectionImpl::DeleteSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1::DeleteSubnetworkRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSubnetwork(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::subnetworks::v1:: + DeleteSubnetworkRequest const& request) { + return stub_->DeleteSubnetwork(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SubnetworksRestConnectionImpl::DeleteSubnetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> SubnetworksRestConnectionImpl::ExpandIpCidrRange( google::cloud::cpp::compute::subnetworks::v1:: @@ -204,6 +278,79 @@ SubnetworksRestConnectionImpl::ExpandIpCidrRange( }); } +StatusOr +SubnetworksRestConnectionImpl::ExpandIpCidrRange( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + ExpandIpCidrRangeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExpandIpCidrRange(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::subnetworks::v1:: + ExpandIpCidrRangeRequest const& request) { + return stub_->ExpandIpCidrRange(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SubnetworksRestConnectionImpl::ExpandIpCidrRange( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr SubnetworksRestConnectionImpl::GetSubnetwork( google::cloud::cpp::compute::subnetworks::v1::GetSubnetworkRequest const& @@ -296,6 +443,79 @@ SubnetworksRestConnectionImpl::InsertSubnetwork( }); } +StatusOr +SubnetworksRestConnectionImpl::InsertSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1::InsertSubnetworkRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertSubnetwork(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::subnetworks::v1:: + InsertSubnetworkRequest const& request) { + return stub_->InsertSubnetwork(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SubnetworksRestConnectionImpl::InsertSubnetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange SubnetworksRestConnectionImpl::ListSubnetworks( google::cloud::cpp::compute::subnetworks::v1::ListSubnetworksRequest @@ -428,6 +648,79 @@ SubnetworksRestConnectionImpl::PatchSubnetwork( }); } +StatusOr +SubnetworksRestConnectionImpl::PatchSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1::PatchSubnetworkRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchSubnetwork(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::subnetworks::v1:: + PatchSubnetworkRequest const& request) { + return stub_->PatchSubnetwork(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SubnetworksRestConnectionImpl::PatchSubnetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr SubnetworksRestConnectionImpl::SetIamPolicy( google::cloud::cpp::compute::subnetworks::v1::SetIamPolicyRequest const& @@ -504,6 +797,79 @@ SubnetworksRestConnectionImpl::SetPrivateIpGoogleAccess( }); } +StatusOr +SubnetworksRestConnectionImpl::SetPrivateIpGoogleAccess( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + SetPrivateIpGoogleAccessRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetPrivateIpGoogleAccess(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::subnetworks::v1:: + SetPrivateIpGoogleAccessRequest const& request) { + return stub_->SetPrivateIpGoogleAccess(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +SubnetworksRestConnectionImpl::SetPrivateIpGoogleAccess( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr SubnetworksRestConnectionImpl::TestIamPermissions( google::cloud::cpp::compute::subnetworks::v1:: diff --git a/google/cloud/compute/subnetworks/v1/internal/subnetworks_rest_connection_impl.h b/google/cloud/compute/subnetworks/v1/internal/subnetworks_rest_connection_impl.h index b062005fac400..ccfc69565cb1e 100644 --- a/google/cloud/compute/subnetworks/v1/internal/subnetworks_rest_connection_impl.h +++ b/google/cloud/compute/subnetworks/v1/internal/subnetworks_rest_connection_impl.h @@ -61,10 +61,29 @@ class SubnetworksRestConnectionImpl google::cloud::cpp::compute::subnetworks::v1:: DeleteSubnetworkRequest const& request) override; + StatusOr DeleteSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + DeleteSubnetworkRequest const& request) override; + + future> DeleteSubnetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> ExpandIpCidrRange(google::cloud::cpp::compute::subnetworks::v1:: ExpandIpCidrRangeRequest const& request) override; + StatusOr ExpandIpCidrRange( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + ExpandIpCidrRangeRequest const& request) override; + + future> + ExpandIpCidrRange( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetSubnetwork( google::cloud::cpp::compute::subnetworks::v1::GetSubnetworkRequest const& request) override; @@ -77,6 +96,15 @@ class SubnetworksRestConnectionImpl google::cloud::cpp::compute::subnetworks::v1:: InsertSubnetworkRequest const& request) override; + StatusOr InsertSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + InsertSubnetworkRequest const& request) override; + + future> InsertSubnetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListSubnetworks( google::cloud::cpp::compute::subnetworks::v1::ListSubnetworksRequest request) override; @@ -89,6 +117,15 @@ class SubnetworksRestConnectionImpl google::cloud::cpp::compute::subnetworks::v1:: PatchSubnetworkRequest const& request) override; + StatusOr PatchSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + PatchSubnetworkRequest const& request) override; + + future> PatchSubnetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::subnetworks::v1::SetIamPolicyRequest const& request) override; @@ -98,6 +135,16 @@ class SubnetworksRestConnectionImpl google::cloud::cpp::compute::subnetworks::v1:: SetPrivateIpGoogleAccessRequest const& request) override; + StatusOr SetPrivateIpGoogleAccess( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + SetPrivateIpGoogleAccessRequest const& request) override; + + future> + SetPrivateIpGoogleAccess( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::subnetworks::v1:: TestIamPermissionsRequest const& request) override; diff --git a/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.cc b/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.cc index 0eeae4bbf492e..881499fecad14 100644 --- a/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.cc +++ b/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.cc @@ -58,6 +58,31 @@ SubnetworksTracingConnection::DeleteSubnetwork( return internal::EndSpan(std::move(span), child_->DeleteSubnetwork(request)); } +StatusOr +SubnetworksTracingConnection::DeleteSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1::DeleteSubnetworkRequest const& + request) { + auto span = internal::MakeSpan( + "compute_subnetworks_v1::SubnetworksConnection::DeleteSubnetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSubnetwork(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SubnetworksTracingConnection::DeleteSubnetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_subnetworks_v1::SubnetworksConnection::DeleteSubnetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSubnetwork(google::cloud::ExperimentalTag{}, operation)); +} + future> SubnetworksTracingConnection::ExpandIpCidrRange( google::cloud::cpp::compute::subnetworks::v1:: @@ -68,6 +93,31 @@ SubnetworksTracingConnection::ExpandIpCidrRange( return internal::EndSpan(std::move(span), child_->ExpandIpCidrRange(request)); } +StatusOr +SubnetworksTracingConnection::ExpandIpCidrRange( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + ExpandIpCidrRangeRequest const& request) { + auto span = internal::MakeSpan( + "compute_subnetworks_v1::SubnetworksConnection::ExpandIpCidrRange"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExpandIpCidrRange(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SubnetworksTracingConnection::ExpandIpCidrRange( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_subnetworks_v1::SubnetworksConnection::ExpandIpCidrRange"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExpandIpCidrRange(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SubnetworksTracingConnection::GetSubnetwork( google::cloud::cpp::compute::subnetworks::v1::GetSubnetworkRequest const& @@ -98,6 +148,31 @@ SubnetworksTracingConnection::InsertSubnetwork( return internal::EndSpan(std::move(span), child_->InsertSubnetwork(request)); } +StatusOr +SubnetworksTracingConnection::InsertSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1::InsertSubnetworkRequest const& + request) { + auto span = internal::MakeSpan( + "compute_subnetworks_v1::SubnetworksConnection::InsertSubnetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertSubnetwork(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SubnetworksTracingConnection::InsertSubnetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_subnetworks_v1::SubnetworksConnection::InsertSubnetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertSubnetwork(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange SubnetworksTracingConnection::ListSubnetworks( google::cloud::cpp::compute::subnetworks::v1::ListSubnetworksRequest @@ -133,6 +208,31 @@ SubnetworksTracingConnection::PatchSubnetwork( return internal::EndSpan(std::move(span), child_->PatchSubnetwork(request)); } +StatusOr +SubnetworksTracingConnection::PatchSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1::PatchSubnetworkRequest const& + request) { + auto span = internal::MakeSpan( + "compute_subnetworks_v1::SubnetworksConnection::PatchSubnetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchSubnetwork(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SubnetworksTracingConnection::PatchSubnetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_subnetworks_v1::SubnetworksConnection::PatchSubnetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchSubnetwork(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SubnetworksTracingConnection::SetIamPolicy( google::cloud::cpp::compute::subnetworks::v1::SetIamPolicyRequest const& @@ -155,6 +255,33 @@ SubnetworksTracingConnection::SetPrivateIpGoogleAccess( child_->SetPrivateIpGoogleAccess(request)); } +StatusOr +SubnetworksTracingConnection::SetPrivateIpGoogleAccess( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + SetPrivateIpGoogleAccessRequest const& request) { + auto span = internal::MakeSpan( + "compute_subnetworks_v1::SubnetworksConnection::" + "SetPrivateIpGoogleAccess"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SetPrivateIpGoogleAccess( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SubnetworksTracingConnection::SetPrivateIpGoogleAccess( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_subnetworks_v1::SubnetworksConnection::" + "SetPrivateIpGoogleAccess"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SetPrivateIpGoogleAccess( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SubnetworksTracingConnection::TestIamPermissions( google::cloud::cpp::compute::subnetworks::v1:: diff --git a/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.h b/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.h index 88bd668f39179..b23b3651bda54 100644 --- a/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.h +++ b/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.h @@ -50,10 +50,29 @@ class SubnetworksTracingConnection google::cloud::cpp::compute::subnetworks::v1:: DeleteSubnetworkRequest const& request) override; + StatusOr DeleteSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + DeleteSubnetworkRequest const& request) override; + + future> DeleteSubnetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> ExpandIpCidrRange(google::cloud::cpp::compute::subnetworks::v1:: ExpandIpCidrRangeRequest const& request) override; + StatusOr ExpandIpCidrRange( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + ExpandIpCidrRangeRequest const& request) override; + + future> + ExpandIpCidrRange( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetSubnetwork( google::cloud::cpp::compute::subnetworks::v1::GetSubnetworkRequest const& request) override; @@ -66,6 +85,15 @@ class SubnetworksTracingConnection google::cloud::cpp::compute::subnetworks::v1:: InsertSubnetworkRequest const& request) override; + StatusOr InsertSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + InsertSubnetworkRequest const& request) override; + + future> InsertSubnetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListSubnetworks( google::cloud::cpp::compute::subnetworks::v1::ListSubnetworksRequest request) override; @@ -78,6 +106,15 @@ class SubnetworksTracingConnection google::cloud::cpp::compute::subnetworks::v1:: PatchSubnetworkRequest const& request) override; + StatusOr PatchSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + PatchSubnetworkRequest const& request) override; + + future> PatchSubnetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr SetIamPolicy( google::cloud::cpp::compute::subnetworks::v1::SetIamPolicyRequest const& request) override; @@ -87,6 +124,16 @@ class SubnetworksTracingConnection google::cloud::cpp::compute::subnetworks::v1:: SetPrivateIpGoogleAccessRequest const& request) override; + StatusOr SetPrivateIpGoogleAccess( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + SetPrivateIpGoogleAccessRequest const& request) override; + + future> + SetPrivateIpGoogleAccess( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::subnetworks::v1:: TestIamPermissionsRequest const& request) override; diff --git a/google/cloud/compute/subnetworks/v1/mocks/mock_subnetworks_connection.h b/google/cloud/compute/subnetworks/v1/mocks/mock_subnetworks_connection.h index 9f35d309188fa..cebbc8a55e269 100644 --- a/google/cloud/compute/subnetworks/v1/mocks/mock_subnetworks_connection.h +++ b/google/cloud/compute/subnetworks/v1/mocks/mock_subnetworks_connection.h @@ -62,12 +62,38 @@ class MockSubnetworksConnection DeleteSubnetworkRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteSubnetwork, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + DeleteSubnetworkRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteSubnetwork, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, ExpandIpCidrRange, (google::cloud::cpp::compute::subnetworks::v1:: ExpandIpCidrRangeRequest const& request), (override)); + MOCK_METHOD(StatusOr, + ExpandIpCidrRange, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + ExpandIpCidrRangeRequest const& request), + (override)); + + MOCK_METHOD(future>, + ExpandIpCidrRange, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetSubnetwork, (google::cloud::cpp::compute::subnetworks::v1::GetSubnetworkRequest const& @@ -86,6 +112,19 @@ class MockSubnetworksConnection InsertSubnetworkRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertSubnetwork, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + InsertSubnetworkRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertSubnetwork, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListSubnetworks, @@ -105,6 +144,19 @@ class MockSubnetworksConnection PatchSubnetworkRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchSubnetwork, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + PatchSubnetworkRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchSubnetwork, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, SetIamPolicy, (google::cloud::cpp::compute::subnetworks::v1::SetIamPolicyRequest const& @@ -117,6 +169,19 @@ class MockSubnetworksConnection SetPrivateIpGoogleAccessRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetPrivateIpGoogleAccess, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + SetPrivateIpGoogleAccessRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetPrivateIpGoogleAccess, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, TestIamPermissions, diff --git a/google/cloud/compute/subnetworks/v1/subnetworks_connection.cc b/google/cloud/compute/subnetworks/v1/subnetworks_connection.cc index ad5b73c1d3a8d..b535a235cc109 100644 --- a/google/cloud/compute/subnetworks/v1/subnetworks_connection.cc +++ b/google/cloud/compute/subnetworks/v1/subnetworks_connection.cc @@ -55,6 +55,24 @@ SubnetworksConnection::DeleteSubnetwork( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SubnetworksConnection::DeleteSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + DeleteSubnetworkRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SubnetworksConnection::DeleteSubnetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SubnetworksConnection::ExpandIpCidrRange( google::cloud::cpp::compute::subnetworks::v1:: @@ -64,6 +82,24 @@ SubnetworksConnection::ExpandIpCidrRange( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SubnetworksConnection::ExpandIpCidrRange( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + ExpandIpCidrRangeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SubnetworksConnection::ExpandIpCidrRange( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SubnetworksConnection::GetSubnetwork( google::cloud::cpp::compute::subnetworks::v1::GetSubnetworkRequest const&) { @@ -85,6 +121,24 @@ SubnetworksConnection::InsertSubnetwork( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SubnetworksConnection::InsertSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + InsertSubnetworkRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SubnetworksConnection::InsertSubnetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange SubnetworksConnection::ListSubnetworks( google::cloud::cpp::compute::subnetworks::v1:: @@ -110,6 +164,24 @@ SubnetworksConnection::PatchSubnetwork( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SubnetworksConnection::PatchSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + PatchSubnetworkRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SubnetworksConnection::PatchSubnetwork( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SubnetworksConnection::SetIamPolicy( google::cloud::cpp::compute::subnetworks::v1::SetIamPolicyRequest const&) { @@ -125,6 +197,24 @@ SubnetworksConnection::SetPrivateIpGoogleAccess( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SubnetworksConnection::SetPrivateIpGoogleAccess( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + SetPrivateIpGoogleAccessRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SubnetworksConnection::SetPrivateIpGoogleAccess( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SubnetworksConnection::TestIamPermissions( google::cloud::cpp::compute::subnetworks::v1:: diff --git a/google/cloud/compute/subnetworks/v1/subnetworks_connection.h b/google/cloud/compute/subnetworks/v1/subnetworks_connection.h index 00fe0baca16bd..7b9b8820599d4 100644 --- a/google/cloud/compute/subnetworks/v1/subnetworks_connection.h +++ b/google/cloud/compute/subnetworks/v1/subnetworks_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/subnetworks/v1/internal/subnetworks_retry_traits.h" #include "google/cloud/compute/subnetworks/v1/subnetworks_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -192,10 +194,29 @@ class SubnetworksConnection { DeleteSubnetwork(google::cloud::cpp::compute::subnetworks::v1:: DeleteSubnetworkRequest const& request); + virtual StatusOr DeleteSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + DeleteSubnetworkRequest const& request); + + virtual future> + DeleteSubnetwork(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> ExpandIpCidrRange(google::cloud::cpp::compute::subnetworks::v1:: ExpandIpCidrRangeRequest const& request); + virtual StatusOr + ExpandIpCidrRange(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + ExpandIpCidrRangeRequest const& request); + + virtual future> + ExpandIpCidrRange( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetSubnetwork( google::cloud::cpp::compute::subnetworks::v1::GetSubnetworkRequest const& request); @@ -208,6 +229,15 @@ class SubnetworksConnection { InsertSubnetwork(google::cloud::cpp::compute::subnetworks::v1:: InsertSubnetworkRequest const& request); + virtual StatusOr InsertSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + InsertSubnetworkRequest const& request); + + virtual future> + InsertSubnetwork(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListSubnetworks( google::cloud::cpp::compute::subnetworks::v1::ListSubnetworksRequest @@ -221,6 +251,15 @@ class SubnetworksConnection { PatchSubnetwork(google::cloud::cpp::compute::subnetworks::v1:: PatchSubnetworkRequest const& request); + virtual StatusOr PatchSubnetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + PatchSubnetworkRequest const& request); + + virtual future> + PatchSubnetwork(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr SetIamPolicy( google::cloud::cpp::compute::subnetworks::v1::SetIamPolicyRequest const& request); @@ -229,6 +268,17 @@ class SubnetworksConnection { SetPrivateIpGoogleAccess(google::cloud::cpp::compute::subnetworks::v1:: SetPrivateIpGoogleAccessRequest const& request); + virtual StatusOr + SetPrivateIpGoogleAccess(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::subnetworks::v1:: + SetPrivateIpGoogleAccessRequest const& request); + + virtual future> + SetPrivateIpGoogleAccess( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr TestIamPermissions(google::cloud::cpp::compute::subnetworks::v1:: TestIamPermissionsRequest const& request); diff --git a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_rest_connection_impl.cc b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_rest_connection_impl.cc index 05b5a76ebac23..32c46eb7d8212 100644 --- a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_rest_connection_impl.cc +++ b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -102,6 +103,77 @@ TargetGrpcProxiesRestConnectionImpl::DeleteTargetGrpcProxy( }); } +StatusOr +TargetGrpcProxiesRestConnectionImpl::DeleteTargetGrpcProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + DeleteTargetGrpcProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTargetGrpcProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + DeleteTargetGrpcProxyRequest const& request) { + return stub_->DeleteTargetGrpcProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetGrpcProxiesRestConnectionImpl::DeleteTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr TargetGrpcProxiesRestConnectionImpl::GetTargetGrpcProxy( google::cloud::cpp::compute::target_grpc_proxies::v1:: @@ -176,6 +248,77 @@ TargetGrpcProxiesRestConnectionImpl::InsertTargetGrpcProxy( }); } +StatusOr +TargetGrpcProxiesRestConnectionImpl::InsertTargetGrpcProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + InsertTargetGrpcProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertTargetGrpcProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + InsertTargetGrpcProxyRequest const& request) { + return stub_->InsertTargetGrpcProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetGrpcProxiesRestConnectionImpl::InsertTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange TargetGrpcProxiesRestConnectionImpl::ListTargetGrpcProxies( google::cloud::cpp::compute::target_grpc_proxies::v1:: @@ -274,6 +417,77 @@ TargetGrpcProxiesRestConnectionImpl::PatchTargetGrpcProxy( }); } +StatusOr +TargetGrpcProxiesRestConnectionImpl::PatchTargetGrpcProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + PatchTargetGrpcProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchTargetGrpcProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + PatchTargetGrpcProxyRequest const& request) { + return stub_->PatchTargetGrpcProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetGrpcProxiesRestConnectionImpl::PatchTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_target_grpc_proxies_v1_internal } // namespace cloud diff --git a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_rest_connection_impl.h b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_rest_connection_impl.h index bdc25490df164..b9324159c2722 100644 --- a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_rest_connection_impl.h +++ b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_rest_connection_impl.h @@ -57,6 +57,16 @@ class TargetGrpcProxiesRestConnectionImpl google::cloud::cpp::compute::target_grpc_proxies::v1:: DeleteTargetGrpcProxyRequest const& request) override; + StatusOr DeleteTargetGrpcProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + DeleteTargetGrpcProxyRequest const& request) override; + + future> + DeleteTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetGrpcProxy( google::cloud::cpp::compute::target_grpc_proxies::v1:: GetTargetGrpcProxyRequest const& request) override; @@ -66,6 +76,16 @@ class TargetGrpcProxiesRestConnectionImpl google::cloud::cpp::compute::target_grpc_proxies::v1:: InsertTargetGrpcProxyRequest const& request) override; + StatusOr InsertTargetGrpcProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + InsertTargetGrpcProxyRequest const& request) override; + + future> + InsertTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListTargetGrpcProxies(google::cloud::cpp::compute::target_grpc_proxies::v1:: ListTargetGrpcProxiesRequest request) override; @@ -74,6 +94,16 @@ class TargetGrpcProxiesRestConnectionImpl PatchTargetGrpcProxy(google::cloud::cpp::compute::target_grpc_proxies::v1:: PatchTargetGrpcProxyRequest const& request) override; + StatusOr PatchTargetGrpcProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + PatchTargetGrpcProxyRequest const& request) override; + + future> + PatchTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_target_grpc_proxies_v1::TargetGrpcProxiesRetryPolicy> diff --git a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.cc b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.cc index 7f265194556cc..f263452e7ea91 100644 --- a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.cc +++ b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.cc @@ -46,6 +46,33 @@ TargetGrpcProxiesTracingConnection::DeleteTargetGrpcProxy( child_->DeleteTargetGrpcProxy(request)); } +StatusOr +TargetGrpcProxiesTracingConnection::DeleteTargetGrpcProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + DeleteTargetGrpcProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_grpc_proxies_v1::TargetGrpcProxiesConnection::" + "DeleteTargetGrpcProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteTargetGrpcProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetGrpcProxiesTracingConnection::DeleteTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_grpc_proxies_v1::TargetGrpcProxiesConnection::" + "DeleteTargetGrpcProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteTargetGrpcProxy( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TargetGrpcProxiesTracingConnection::GetTargetGrpcProxy( google::cloud::cpp::compute::target_grpc_proxies::v1:: @@ -69,6 +96,33 @@ TargetGrpcProxiesTracingConnection::InsertTargetGrpcProxy( child_->InsertTargetGrpcProxy(request)); } +StatusOr +TargetGrpcProxiesTracingConnection::InsertTargetGrpcProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + InsertTargetGrpcProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_grpc_proxies_v1::TargetGrpcProxiesConnection::" + "InsertTargetGrpcProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertTargetGrpcProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetGrpcProxiesTracingConnection::InsertTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_grpc_proxies_v1::TargetGrpcProxiesConnection::" + "InsertTargetGrpcProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertTargetGrpcProxy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange TargetGrpcProxiesTracingConnection::ListTargetGrpcProxies( google::cloud::cpp::compute::target_grpc_proxies::v1:: @@ -95,6 +149,33 @@ TargetGrpcProxiesTracingConnection::PatchTargetGrpcProxy( child_->PatchTargetGrpcProxy(request)); } +StatusOr +TargetGrpcProxiesTracingConnection::PatchTargetGrpcProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + PatchTargetGrpcProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_grpc_proxies_v1::TargetGrpcProxiesConnection::" + "PatchTargetGrpcProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchTargetGrpcProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetGrpcProxiesTracingConnection::PatchTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_grpc_proxies_v1::TargetGrpcProxiesConnection::" + "PatchTargetGrpcProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchTargetGrpcProxy( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.h b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.h index 1801791ac0bac..aa93dee6269f2 100644 --- a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.h +++ b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.h @@ -47,6 +47,16 @@ class TargetGrpcProxiesTracingConnection google::cloud::cpp::compute::target_grpc_proxies::v1:: DeleteTargetGrpcProxyRequest const& request) override; + StatusOr DeleteTargetGrpcProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + DeleteTargetGrpcProxyRequest const& request) override; + + future> + DeleteTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetGrpcProxy( google::cloud::cpp::compute::target_grpc_proxies::v1:: GetTargetGrpcProxyRequest const& request) override; @@ -56,6 +66,16 @@ class TargetGrpcProxiesTracingConnection google::cloud::cpp::compute::target_grpc_proxies::v1:: InsertTargetGrpcProxyRequest const& request) override; + StatusOr InsertTargetGrpcProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + InsertTargetGrpcProxyRequest const& request) override; + + future> + InsertTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListTargetGrpcProxies(google::cloud::cpp::compute::target_grpc_proxies::v1:: ListTargetGrpcProxiesRequest request) override; @@ -64,6 +84,16 @@ class TargetGrpcProxiesTracingConnection PatchTargetGrpcProxy(google::cloud::cpp::compute::target_grpc_proxies::v1:: PatchTargetGrpcProxyRequest const& request) override; + StatusOr PatchTargetGrpcProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + PatchTargetGrpcProxyRequest const& request) override; + + future> + PatchTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/target_grpc_proxies/v1/mocks/mock_target_grpc_proxies_connection.h b/google/cloud/compute/target_grpc_proxies/v1/mocks/mock_target_grpc_proxies_connection.h index 6fcb7de7d900a..6cca4af02e56d 100644 --- a/google/cloud/compute/target_grpc_proxies/v1/mocks/mock_target_grpc_proxies_connection.h +++ b/google/cloud/compute/target_grpc_proxies/v1/mocks/mock_target_grpc_proxies_connection.h @@ -53,6 +53,19 @@ class MockTargetGrpcProxiesConnection DeleteTargetGrpcProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteTargetGrpcProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + DeleteTargetGrpcProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteTargetGrpcProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetTargetGrpcProxy, (google::cloud::cpp::compute::target_grpc_proxies::v1:: @@ -65,6 +78,19 @@ class MockTargetGrpcProxiesConnection InsertTargetGrpcProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertTargetGrpcProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + InsertTargetGrpcProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertTargetGrpcProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListTargetGrpcProxies, (google::cloud::cpp::compute::target_grpc_proxies::v1:: @@ -76,6 +102,19 @@ class MockTargetGrpcProxiesConnection (google::cloud::cpp::compute::target_grpc_proxies::v1:: PatchTargetGrpcProxyRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + PatchTargetGrpcProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + PatchTargetGrpcProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchTargetGrpcProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection.cc b/google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection.cc index d5cec7807716f..022115caed35e 100644 --- a/google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection.cc +++ b/google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection.cc @@ -45,6 +45,24 @@ TargetGrpcProxiesConnection::DeleteTargetGrpcProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetGrpcProxiesConnection::DeleteTargetGrpcProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + DeleteTargetGrpcProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetGrpcProxiesConnection::DeleteTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TargetGrpcProxiesConnection::GetTargetGrpcProxy( google::cloud::cpp::compute::target_grpc_proxies::v1:: @@ -61,6 +79,24 @@ TargetGrpcProxiesConnection::InsertTargetGrpcProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetGrpcProxiesConnection::InsertTargetGrpcProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + InsertTargetGrpcProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetGrpcProxiesConnection::InsertTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange TargetGrpcProxiesConnection::ListTargetGrpcProxies( google::cloud::cpp::compute::target_grpc_proxies::v1:: @@ -78,6 +114,24 @@ TargetGrpcProxiesConnection::PatchTargetGrpcProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetGrpcProxiesConnection::PatchTargetGrpcProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + PatchTargetGrpcProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetGrpcProxiesConnection::PatchTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_target_grpc_proxies_v1 } // namespace cloud diff --git a/google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection.h b/google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection.h index bd63f1f692189..e1e7780bdfde1 100644 --- a/google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection.h +++ b/google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_retry_traits.h" #include "google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -190,6 +192,17 @@ class TargetGrpcProxiesConnection { DeleteTargetGrpcProxy(google::cloud::cpp::compute::target_grpc_proxies::v1:: DeleteTargetGrpcProxyRequest const& request); + virtual StatusOr + DeleteTargetGrpcProxy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + DeleteTargetGrpcProxyRequest const& request); + + virtual future> + DeleteTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetTargetGrpcProxy(google::cloud::cpp::compute::target_grpc_proxies::v1:: GetTargetGrpcProxyRequest const& request); @@ -198,6 +211,17 @@ class TargetGrpcProxiesConnection { InsertTargetGrpcProxy(google::cloud::cpp::compute::target_grpc_proxies::v1:: InsertTargetGrpcProxyRequest const& request); + virtual StatusOr + InsertTargetGrpcProxy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + InsertTargetGrpcProxyRequest const& request); + + virtual future> + InsertTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListTargetGrpcProxies(google::cloud::cpp::compute::target_grpc_proxies::v1:: ListTargetGrpcProxiesRequest request); @@ -205,6 +229,17 @@ class TargetGrpcProxiesConnection { virtual future> PatchTargetGrpcProxy(google::cloud::cpp::compute::target_grpc_proxies::v1:: PatchTargetGrpcProxyRequest const& request); + + virtual StatusOr + PatchTargetGrpcProxy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_grpc_proxies::v1:: + PatchTargetGrpcProxyRequest const& request); + + virtual future> + PatchTargetGrpcProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_rest_connection_impl.cc b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_rest_connection_impl.cc index 5d4ccad1d6264..c959fa807a2c7 100644 --- a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_rest_connection_impl.cc +++ b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -145,6 +146,77 @@ TargetHttpProxiesRestConnectionImpl::DeleteTargetHttpProxy( }); } +StatusOr +TargetHttpProxiesRestConnectionImpl::DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + DeleteTargetHttpProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTargetHttpProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_http_proxies::v1:: + DeleteTargetHttpProxyRequest const& request) { + return stub_->DeleteTargetHttpProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetHttpProxiesRestConnectionImpl::DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr TargetHttpProxiesRestConnectionImpl::GetTargetHttpProxy( google::cloud::cpp::compute::target_http_proxies::v1:: @@ -219,6 +291,77 @@ TargetHttpProxiesRestConnectionImpl::InsertTargetHttpProxy( }); } +StatusOr +TargetHttpProxiesRestConnectionImpl::InsertTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + InsertTargetHttpProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertTargetHttpProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_http_proxies::v1:: + InsertTargetHttpProxyRequest const& request) { + return stub_->InsertTargetHttpProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetHttpProxiesRestConnectionImpl::InsertTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange TargetHttpProxiesRestConnectionImpl::ListTargetHttpProxies( google::cloud::cpp::compute::target_http_proxies::v1:: @@ -317,6 +460,77 @@ TargetHttpProxiesRestConnectionImpl::PatchTargetHttpProxy( }); } +StatusOr +TargetHttpProxiesRestConnectionImpl::PatchTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + PatchTargetHttpProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchTargetHttpProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_http_proxies::v1:: + PatchTargetHttpProxyRequest const& request) { + return stub_->PatchTargetHttpProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetHttpProxiesRestConnectionImpl::PatchTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> TargetHttpProxiesRestConnectionImpl::SetUrlMap( google::cloud::cpp::compute::target_http_proxies::v1:: @@ -375,6 +589,77 @@ TargetHttpProxiesRestConnectionImpl::SetUrlMap( }); } +StatusOr +TargetHttpProxiesRestConnectionImpl::SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + SetUrlMapRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetUrlMap(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_http_proxies::v1:: + SetUrlMapRequest const& request) { + return stub_->SetUrlMap(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetHttpProxiesRestConnectionImpl::SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_target_http_proxies_v1_internal } // namespace cloud diff --git a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_rest_connection_impl.h b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_rest_connection_impl.h index af1776f8ae5b8..89065020e52fe 100644 --- a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_rest_connection_impl.h +++ b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_rest_connection_impl.h @@ -64,6 +64,16 @@ class TargetHttpProxiesRestConnectionImpl google::cloud::cpp::compute::target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request) override; + StatusOr DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + DeleteTargetHttpProxyRequest const& request) override; + + future> + DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetHttpProxy( google::cloud::cpp::compute::target_http_proxies::v1:: GetTargetHttpProxyRequest const& request) override; @@ -73,6 +83,16 @@ class TargetHttpProxiesRestConnectionImpl google::cloud::cpp::compute::target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request) override; + StatusOr InsertTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + InsertTargetHttpProxyRequest const& request) override; + + future> + InsertTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListTargetHttpProxies(google::cloud::cpp::compute::target_http_proxies::v1:: ListTargetHttpProxiesRequest request) override; @@ -81,10 +101,29 @@ class TargetHttpProxiesRestConnectionImpl PatchTargetHttpProxy(google::cloud::cpp::compute::target_http_proxies::v1:: PatchTargetHttpProxyRequest const& request) override; + StatusOr PatchTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + PatchTargetHttpProxyRequest const& request) override; + + future> + PatchTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetUrlMap( google::cloud::cpp::compute::target_http_proxies::v1:: SetUrlMapRequest const& request) override; + StatusOr SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + SetUrlMapRequest const& request) override; + + future> SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_target_http_proxies_v1::TargetHttpProxiesRetryPolicy> diff --git a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.cc b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.cc index f16f33aff728e..7a753ef1ccfbc 100644 --- a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.cc +++ b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.cc @@ -62,6 +62,33 @@ TargetHttpProxiesTracingConnection::DeleteTargetHttpProxy( child_->DeleteTargetHttpProxy(request)); } +StatusOr +TargetHttpProxiesTracingConnection::DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + DeleteTargetHttpProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_http_proxies_v1::TargetHttpProxiesConnection::" + "DeleteTargetHttpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteTargetHttpProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetHttpProxiesTracingConnection::DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_http_proxies_v1::TargetHttpProxiesConnection::" + "DeleteTargetHttpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteTargetHttpProxy( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TargetHttpProxiesTracingConnection::GetTargetHttpProxy( google::cloud::cpp::compute::target_http_proxies::v1:: @@ -85,6 +112,33 @@ TargetHttpProxiesTracingConnection::InsertTargetHttpProxy( child_->InsertTargetHttpProxy(request)); } +StatusOr +TargetHttpProxiesTracingConnection::InsertTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + InsertTargetHttpProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_http_proxies_v1::TargetHttpProxiesConnection::" + "InsertTargetHttpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertTargetHttpProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetHttpProxiesTracingConnection::InsertTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_http_proxies_v1::TargetHttpProxiesConnection::" + "InsertTargetHttpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertTargetHttpProxy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange TargetHttpProxiesTracingConnection::ListTargetHttpProxies( google::cloud::cpp::compute::target_http_proxies::v1:: @@ -111,6 +165,33 @@ TargetHttpProxiesTracingConnection::PatchTargetHttpProxy( child_->PatchTargetHttpProxy(request)); } +StatusOr +TargetHttpProxiesTracingConnection::PatchTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + PatchTargetHttpProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_http_proxies_v1::TargetHttpProxiesConnection::" + "PatchTargetHttpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchTargetHttpProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetHttpProxiesTracingConnection::PatchTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_http_proxies_v1::TargetHttpProxiesConnection::" + "PatchTargetHttpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchTargetHttpProxy( + google::cloud::ExperimentalTag{}, operation)); +} + future> TargetHttpProxiesTracingConnection::SetUrlMap( google::cloud::cpp::compute::target_http_proxies::v1:: @@ -121,6 +202,31 @@ TargetHttpProxiesTracingConnection::SetUrlMap( return internal::EndSpan(std::move(span), child_->SetUrlMap(request)); } +StatusOr +TargetHttpProxiesTracingConnection::SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + SetUrlMapRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_http_proxies_v1::TargetHttpProxiesConnection::SetUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetUrlMap(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetHttpProxiesTracingConnection::SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_http_proxies_v1::TargetHttpProxiesConnection::SetUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetUrlMap(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.h b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.h index ce712f1f62031..9cdfc2647df2e 100644 --- a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.h +++ b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.h @@ -54,6 +54,16 @@ class TargetHttpProxiesTracingConnection google::cloud::cpp::compute::target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request) override; + StatusOr DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + DeleteTargetHttpProxyRequest const& request) override; + + future> + DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetHttpProxy( google::cloud::cpp::compute::target_http_proxies::v1:: GetTargetHttpProxyRequest const& request) override; @@ -63,6 +73,16 @@ class TargetHttpProxiesTracingConnection google::cloud::cpp::compute::target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request) override; + StatusOr InsertTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + InsertTargetHttpProxyRequest const& request) override; + + future> + InsertTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListTargetHttpProxies(google::cloud::cpp::compute::target_http_proxies::v1:: ListTargetHttpProxiesRequest request) override; @@ -71,10 +91,29 @@ class TargetHttpProxiesTracingConnection PatchTargetHttpProxy(google::cloud::cpp::compute::target_http_proxies::v1:: PatchTargetHttpProxyRequest const& request) override; + StatusOr PatchTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + PatchTargetHttpProxyRequest const& request) override; + + future> + PatchTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetUrlMap( google::cloud::cpp::compute::target_http_proxies::v1:: SetUrlMapRequest const& request) override; + StatusOr SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + SetUrlMapRequest const& request) override; + + future> SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/target_http_proxies/v1/mocks/mock_target_http_proxies_connection.h b/google/cloud/compute/target_http_proxies/v1/mocks/mock_target_http_proxies_connection.h index 0cd52fde790dc..a4c28472384e5 100644 --- a/google/cloud/compute/target_http_proxies/v1/mocks/mock_target_http_proxies_connection.h +++ b/google/cloud/compute/target_http_proxies/v1/mocks/mock_target_http_proxies_connection.h @@ -61,6 +61,19 @@ class MockTargetHttpProxiesConnection DeleteTargetHttpProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteTargetHttpProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + DeleteTargetHttpProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteTargetHttpProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetTargetHttpProxy, (google::cloud::cpp::compute::target_http_proxies::v1:: @@ -73,6 +86,19 @@ class MockTargetHttpProxiesConnection InsertTargetHttpProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertTargetHttpProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + InsertTargetHttpProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertTargetHttpProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListTargetHttpProxies, (google::cloud::cpp::compute::target_http_proxies::v1:: @@ -85,11 +111,36 @@ class MockTargetHttpProxiesConnection PatchTargetHttpProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchTargetHttpProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + PatchTargetHttpProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchTargetHttpProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetUrlMap, (google::cloud::cpp::compute::target_http_proxies::v1:: SetUrlMapRequest const& request), (override)); + + MOCK_METHOD(StatusOr, SetUrlMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + SetUrlMapRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetUrlMap, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection.cc b/google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection.cc index 0b4b76a71f7c4..4f2b067063136 100644 --- a/google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection.cc +++ b/google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection.cc @@ -55,6 +55,24 @@ TargetHttpProxiesConnection::DeleteTargetHttpProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetHttpProxiesConnection::DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + DeleteTargetHttpProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetHttpProxiesConnection::DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TargetHttpProxiesConnection::GetTargetHttpProxy( google::cloud::cpp::compute::target_http_proxies::v1:: @@ -71,6 +89,24 @@ TargetHttpProxiesConnection::InsertTargetHttpProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetHttpProxiesConnection::InsertTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + InsertTargetHttpProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetHttpProxiesConnection::InsertTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange TargetHttpProxiesConnection::ListTargetHttpProxies( google::cloud::cpp::compute::target_http_proxies::v1:: @@ -88,6 +124,24 @@ TargetHttpProxiesConnection::PatchTargetHttpProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetHttpProxiesConnection::PatchTargetHttpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + PatchTargetHttpProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetHttpProxiesConnection::PatchTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TargetHttpProxiesConnection::SetUrlMap( google::cloud::cpp::compute::target_http_proxies::v1:: @@ -97,6 +151,24 @@ TargetHttpProxiesConnection::SetUrlMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetHttpProxiesConnection::SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + SetUrlMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetHttpProxiesConnection::SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_target_http_proxies_v1 } // namespace cloud diff --git a/google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection.h b/google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection.h index 3a598904dc8ce..0e7a7caf37b7c 100644 --- a/google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection.h +++ b/google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_retry_traits.h" #include "google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -197,6 +199,17 @@ class TargetHttpProxiesConnection { DeleteTargetHttpProxy(google::cloud::cpp::compute::target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request); + virtual StatusOr + DeleteTargetHttpProxy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + DeleteTargetHttpProxyRequest const& request); + + virtual future> + DeleteTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetTargetHttpProxy(google::cloud::cpp::compute::target_http_proxies::v1:: GetTargetHttpProxyRequest const& request); @@ -205,6 +218,17 @@ class TargetHttpProxiesConnection { InsertTargetHttpProxy(google::cloud::cpp::compute::target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request); + virtual StatusOr + InsertTargetHttpProxy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + InsertTargetHttpProxyRequest const& request); + + virtual future> + InsertTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListTargetHttpProxies(google::cloud::cpp::compute::target_http_proxies::v1:: ListTargetHttpProxiesRequest request); @@ -213,9 +237,29 @@ class TargetHttpProxiesConnection { PatchTargetHttpProxy(google::cloud::cpp::compute::target_http_proxies::v1:: PatchTargetHttpProxyRequest const& request); + virtual StatusOr + PatchTargetHttpProxy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + PatchTargetHttpProxyRequest const& request); + + virtual future> + PatchTargetHttpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetUrlMap(google::cloud::cpp::compute::target_http_proxies::v1:: SetUrlMapRequest const& request); + + virtual StatusOr SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_http_proxies::v1:: + SetUrlMapRequest const& request); + + virtual future> + SetUrlMap(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_rest_connection_impl.cc b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_rest_connection_impl.cc index 1a122e0de73df..ea10670797d9d 100644 --- a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_rest_connection_impl.cc +++ b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_rest_connection_impl.cc @@ -24,6 +24,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -146,6 +147,77 @@ TargetHttpsProxiesRestConnectionImpl::DeleteTargetHttpsProxy( }); } +StatusOr +TargetHttpsProxiesRestConnectionImpl::DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + DeleteTargetHttpsProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTargetHttpsProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_https_proxies::v1:: + DeleteTargetHttpsProxyRequest const& request) { + return stub_->DeleteTargetHttpsProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetHttpsProxiesRestConnectionImpl::DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr TargetHttpsProxiesRestConnectionImpl::GetTargetHttpsProxy( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -220,6 +292,77 @@ TargetHttpsProxiesRestConnectionImpl::InsertTargetHttpsProxy( }); } +StatusOr +TargetHttpsProxiesRestConnectionImpl::InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + InsertTargetHttpsProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertTargetHttpsProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_https_proxies::v1:: + InsertTargetHttpsProxyRequest const& request) { + return stub_->InsertTargetHttpsProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetHttpsProxiesRestConnectionImpl::InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange TargetHttpsProxiesRestConnectionImpl::ListTargetHttpsProxies( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -318,6 +461,77 @@ TargetHttpsProxiesRestConnectionImpl::PatchTargetHttpsProxy( }); } +StatusOr +TargetHttpsProxiesRestConnectionImpl::PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + PatchTargetHttpsProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchTargetHttpsProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_https_proxies::v1:: + PatchTargetHttpsProxyRequest const& request) { + return stub_->PatchTargetHttpsProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetHttpsProxiesRestConnectionImpl::PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> TargetHttpsProxiesRestConnectionImpl::SetCertificateMap( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -376,6 +590,77 @@ TargetHttpsProxiesRestConnectionImpl::SetCertificateMap( }); } +StatusOr +TargetHttpsProxiesRestConnectionImpl::SetCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetCertificateMapRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetCertificateMap(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetCertificateMapRequest const& request) { + return stub_->SetCertificateMap(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetHttpsProxiesRestConnectionImpl::SetCertificateMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> TargetHttpsProxiesRestConnectionImpl::SetQuicOverride( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -434,6 +719,77 @@ TargetHttpsProxiesRestConnectionImpl::SetQuicOverride( }); } +StatusOr +TargetHttpsProxiesRestConnectionImpl::SetQuicOverride( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetQuicOverrideRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetQuicOverride(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetQuicOverrideRequest const& request) { + return stub_->SetQuicOverride(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetHttpsProxiesRestConnectionImpl::SetQuicOverride( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> TargetHttpsProxiesRestConnectionImpl::SetSslCertificates( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -492,6 +848,77 @@ TargetHttpsProxiesRestConnectionImpl::SetSslCertificates( }); } +StatusOr +TargetHttpsProxiesRestConnectionImpl::SetSslCertificates( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetSslCertificatesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetSslCertificates(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetSslCertificatesRequest const& request) { + return stub_->SetSslCertificates(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetHttpsProxiesRestConnectionImpl::SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> TargetHttpsProxiesRestConnectionImpl::SetSslPolicy( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -550,6 +977,77 @@ TargetHttpsProxiesRestConnectionImpl::SetSslPolicy( }); } +StatusOr +TargetHttpsProxiesRestConnectionImpl::SetSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetSslPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetSslPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetSslPolicyRequest const& request) { + return stub_->SetSslPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetHttpsProxiesRestConnectionImpl::SetSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> TargetHttpsProxiesRestConnectionImpl::SetUrlMap( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -608,6 +1106,77 @@ TargetHttpsProxiesRestConnectionImpl::SetUrlMap( }); } +StatusOr +TargetHttpsProxiesRestConnectionImpl::SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetUrlMapRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetUrlMap(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetUrlMapRequest const& request) { + return stub_->SetUrlMap(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetHttpsProxiesRestConnectionImpl::SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_target_https_proxies_v1_internal } // namespace cloud diff --git a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_rest_connection_impl.h b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_rest_connection_impl.h index da4ee36ad4f7a..1d3b47f7c54a9 100644 --- a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_rest_connection_impl.h +++ b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_rest_connection_impl.h @@ -65,6 +65,16 @@ class TargetHttpsProxiesRestConnectionImpl google::cloud::cpp::compute::target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request) override; + StatusOr DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + DeleteTargetHttpsProxyRequest const& request) override; + + future> + DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetHttpsProxy(google::cloud::cpp::compute::target_https_proxies::v1:: GetTargetHttpsProxyRequest const& request) override; @@ -74,6 +84,16 @@ class TargetHttpsProxiesRestConnectionImpl google::cloud::cpp::compute::target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request) override; + StatusOr InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + InsertTargetHttpsProxyRequest const& request) override; + + future> + InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListTargetHttpsProxies(google::cloud::cpp::compute::target_https_proxies::v1:: ListTargetHttpsProxiesRequest request) override; @@ -83,26 +103,83 @@ class TargetHttpsProxiesRestConnectionImpl google::cloud::cpp::compute::target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request) override; + StatusOr PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + PatchTargetHttpsProxyRequest const& request) override; + + future> + PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetCertificateMap(google::cloud::cpp::compute::target_https_proxies::v1:: SetCertificateMapRequest const& request) override; + StatusOr SetCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetCertificateMapRequest const& request) override; + + future> + SetCertificateMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetQuicOverride( google::cloud::cpp::compute::target_https_proxies::v1:: SetQuicOverrideRequest const& request) override; + StatusOr SetQuicOverride( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetQuicOverrideRequest const& request) override; + + future> SetQuicOverride( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetSslCertificates(google::cloud::cpp::compute::target_https_proxies::v1:: SetSslCertificatesRequest const& request) override; + StatusOr SetSslCertificates( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetSslCertificatesRequest const& request) override; + + future> + SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetSslPolicy( google::cloud::cpp::compute::target_https_proxies::v1:: SetSslPolicyRequest const& request) override; + StatusOr SetSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetSslPolicyRequest const& request) override; + + future> SetSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetUrlMap( google::cloud::cpp::compute::target_https_proxies::v1:: SetUrlMapRequest const& request) override; + StatusOr SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetUrlMapRequest const& request) override; + + future> SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_target_https_proxies_v1::TargetHttpsProxiesRetryPolicy> diff --git a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.cc b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.cc index 9e317c48fa230..6883166c994c9 100644 --- a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.cc +++ b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.cc @@ -64,6 +64,33 @@ TargetHttpsProxiesTracingConnection::DeleteTargetHttpsProxy( child_->DeleteTargetHttpsProxy(request)); } +StatusOr +TargetHttpsProxiesTracingConnection::DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + DeleteTargetHttpsProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" + "DeleteTargetHttpsProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetHttpsProxiesTracingConnection::DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" + "DeleteTargetHttpsProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TargetHttpsProxiesTracingConnection::GetTargetHttpsProxy( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -87,6 +114,33 @@ TargetHttpsProxiesTracingConnection::InsertTargetHttpsProxy( child_->InsertTargetHttpsProxy(request)); } +StatusOr +TargetHttpsProxiesTracingConnection::InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + InsertTargetHttpsProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" + "InsertTargetHttpsProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertTargetHttpsProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetHttpsProxiesTracingConnection::InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" + "InsertTargetHttpsProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertTargetHttpsProxy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange TargetHttpsProxiesTracingConnection::ListTargetHttpsProxies( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -113,6 +167,33 @@ TargetHttpsProxiesTracingConnection::PatchTargetHttpsProxy( child_->PatchTargetHttpsProxy(request)); } +StatusOr +TargetHttpsProxiesTracingConnection::PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + PatchTargetHttpsProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" + "PatchTargetHttpsProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PatchTargetHttpsProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetHttpsProxiesTracingConnection::PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" + "PatchTargetHttpsProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PatchTargetHttpsProxy( + google::cloud::ExperimentalTag{}, operation)); +} + future> TargetHttpsProxiesTracingConnection::SetCertificateMap( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -124,6 +205,33 @@ TargetHttpsProxiesTracingConnection::SetCertificateMap( return internal::EndSpan(std::move(span), child_->SetCertificateMap(request)); } +StatusOr +TargetHttpsProxiesTracingConnection::SetCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetCertificateMapRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" + "SetCertificateMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetCertificateMap(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetHttpsProxiesTracingConnection::SetCertificateMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" + "SetCertificateMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetCertificateMap(google::cloud::ExperimentalTag{}, operation)); +} + future> TargetHttpsProxiesTracingConnection::SetQuicOverride( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -135,6 +243,33 @@ TargetHttpsProxiesTracingConnection::SetQuicOverride( return internal::EndSpan(std::move(span), child_->SetQuicOverride(request)); } +StatusOr +TargetHttpsProxiesTracingConnection::SetQuicOverride( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetQuicOverrideRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" + "SetQuicOverride"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetQuicOverride(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetHttpsProxiesTracingConnection::SetQuicOverride( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" + "SetQuicOverride"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetQuicOverride(google::cloud::ExperimentalTag{}, operation)); +} + future> TargetHttpsProxiesTracingConnection::SetSslCertificates( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -147,6 +282,33 @@ TargetHttpsProxiesTracingConnection::SetSslCertificates( child_->SetSslCertificates(request)); } +StatusOr +TargetHttpsProxiesTracingConnection::SetSslCertificates( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetSslCertificatesRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" + "SetSslCertificates"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetSslCertificates(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetHttpsProxiesTracingConnection::SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" + "SetSslCertificates"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetSslCertificates(google::cloud::ExperimentalTag{}, operation)); +} + future> TargetHttpsProxiesTracingConnection::SetSslPolicy( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -158,6 +320,33 @@ TargetHttpsProxiesTracingConnection::SetSslPolicy( return internal::EndSpan(std::move(span), child_->SetSslPolicy(request)); } +StatusOr +TargetHttpsProxiesTracingConnection::SetSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetSslPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" + "SetSslPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetSslPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetHttpsProxiesTracingConnection::SetSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" + "SetSslPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetSslPolicy(google::cloud::ExperimentalTag{}, operation)); +} + future> TargetHttpsProxiesTracingConnection::SetUrlMap( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -169,6 +358,33 @@ TargetHttpsProxiesTracingConnection::SetUrlMap( return internal::EndSpan(std::move(span), child_->SetUrlMap(request)); } +StatusOr +TargetHttpsProxiesTracingConnection::SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetUrlMapRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" + "SetUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetUrlMap(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetHttpsProxiesTracingConnection::SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" + "SetUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetUrlMap(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.h b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.h index 09816611fba2b..a31407d46b54b 100644 --- a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.h +++ b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.h @@ -55,6 +55,16 @@ class TargetHttpsProxiesTracingConnection google::cloud::cpp::compute::target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request) override; + StatusOr DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + DeleteTargetHttpsProxyRequest const& request) override; + + future> + DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetHttpsProxy(google::cloud::cpp::compute::target_https_proxies::v1:: GetTargetHttpsProxyRequest const& request) override; @@ -64,6 +74,16 @@ class TargetHttpsProxiesTracingConnection google::cloud::cpp::compute::target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request) override; + StatusOr InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + InsertTargetHttpsProxyRequest const& request) override; + + future> + InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListTargetHttpsProxies(google::cloud::cpp::compute::target_https_proxies::v1:: ListTargetHttpsProxiesRequest request) override; @@ -73,26 +93,83 @@ class TargetHttpsProxiesTracingConnection google::cloud::cpp::compute::target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request) override; + StatusOr PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + PatchTargetHttpsProxyRequest const& request) override; + + future> + PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetCertificateMap(google::cloud::cpp::compute::target_https_proxies::v1:: SetCertificateMapRequest const& request) override; + StatusOr SetCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetCertificateMapRequest const& request) override; + + future> + SetCertificateMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetQuicOverride( google::cloud::cpp::compute::target_https_proxies::v1:: SetQuicOverrideRequest const& request) override; + StatusOr SetQuicOverride( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetQuicOverrideRequest const& request) override; + + future> SetQuicOverride( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetSslCertificates(google::cloud::cpp::compute::target_https_proxies::v1:: SetSslCertificatesRequest const& request) override; + StatusOr SetSslCertificates( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetSslCertificatesRequest const& request) override; + + future> + SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetSslPolicy( google::cloud::cpp::compute::target_https_proxies::v1:: SetSslPolicyRequest const& request) override; + StatusOr SetSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetSslPolicyRequest const& request) override; + + future> SetSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetUrlMap( google::cloud::cpp::compute::target_https_proxies::v1:: SetUrlMapRequest const& request) override; + StatusOr SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetUrlMapRequest const& request) override; + + future> SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/target_https_proxies/v1/mocks/mock_target_https_proxies_connection.h b/google/cloud/compute/target_https_proxies/v1/mocks/mock_target_https_proxies_connection.h index ee55b1336bff0..cb15faaab5f9e 100644 --- a/google/cloud/compute/target_https_proxies/v1/mocks/mock_target_https_proxies_connection.h +++ b/google/cloud/compute/target_https_proxies/v1/mocks/mock_target_https_proxies_connection.h @@ -62,6 +62,19 @@ class MockTargetHttpsProxiesConnection DeleteTargetHttpsProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteTargetHttpsProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + DeleteTargetHttpsProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteTargetHttpsProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetTargetHttpsProxy, (google::cloud::cpp::compute::target_https_proxies::v1:: @@ -74,6 +87,19 @@ class MockTargetHttpsProxiesConnection InsertTargetHttpsProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertTargetHttpsProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + InsertTargetHttpsProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertTargetHttpsProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListTargetHttpsProxies, (google::cloud::cpp::compute::target_https_proxies::v1:: @@ -86,35 +112,112 @@ class MockTargetHttpsProxiesConnection PatchTargetHttpsProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + PatchTargetHttpsProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + PatchTargetHttpsProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + PatchTargetHttpsProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetCertificateMap, (google::cloud::cpp::compute::target_https_proxies::v1:: SetCertificateMapRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetCertificateMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetCertificateMapRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetCertificateMap, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetQuicOverride, (google::cloud::cpp::compute::target_https_proxies::v1:: SetQuicOverrideRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetQuicOverride, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetQuicOverrideRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetQuicOverride, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetSslCertificates, (google::cloud::cpp::compute::target_https_proxies::v1:: SetSslCertificatesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetSslCertificates, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetSslCertificatesRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetSslCertificates, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetSslPolicy, (google::cloud::cpp::compute::target_https_proxies::v1:: SetSslPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetSslPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetSslPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetSslPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetUrlMap, (google::cloud::cpp::compute::target_https_proxies::v1:: SetUrlMapRequest const& request), (override)); + + MOCK_METHOD(StatusOr, SetUrlMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetUrlMapRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetUrlMap, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection.cc b/google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection.cc index 9c55f6bb58d8a..aa0cc5f622bcf 100644 --- a/google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection.cc +++ b/google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection.cc @@ -56,6 +56,24 @@ TargetHttpsProxiesConnection::DeleteTargetHttpsProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetHttpsProxiesConnection::DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + DeleteTargetHttpsProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetHttpsProxiesConnection::DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TargetHttpsProxiesConnection::GetTargetHttpsProxy( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -72,6 +90,24 @@ TargetHttpsProxiesConnection::InsertTargetHttpsProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetHttpsProxiesConnection::InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + InsertTargetHttpsProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetHttpsProxiesConnection::InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange TargetHttpsProxiesConnection::ListTargetHttpsProxies( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -89,6 +125,24 @@ TargetHttpsProxiesConnection::PatchTargetHttpsProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetHttpsProxiesConnection::PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + PatchTargetHttpsProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetHttpsProxiesConnection::PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TargetHttpsProxiesConnection::SetCertificateMap( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -98,6 +152,24 @@ TargetHttpsProxiesConnection::SetCertificateMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetHttpsProxiesConnection::SetCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetCertificateMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetHttpsProxiesConnection::SetCertificateMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TargetHttpsProxiesConnection::SetQuicOverride( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -107,6 +179,24 @@ TargetHttpsProxiesConnection::SetQuicOverride( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetHttpsProxiesConnection::SetQuicOverride( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetQuicOverrideRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetHttpsProxiesConnection::SetQuicOverride( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TargetHttpsProxiesConnection::SetSslCertificates( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -116,6 +206,24 @@ TargetHttpsProxiesConnection::SetSslCertificates( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetHttpsProxiesConnection::SetSslCertificates( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetSslCertificatesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetHttpsProxiesConnection::SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TargetHttpsProxiesConnection::SetSslPolicy( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -125,6 +233,24 @@ TargetHttpsProxiesConnection::SetSslPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetHttpsProxiesConnection::SetSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetSslPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetHttpsProxiesConnection::SetSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TargetHttpsProxiesConnection::SetUrlMap( google::cloud::cpp::compute::target_https_proxies::v1:: @@ -134,6 +260,24 @@ TargetHttpsProxiesConnection::SetUrlMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetHttpsProxiesConnection::SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetUrlMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetHttpsProxiesConnection::SetUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_target_https_proxies_v1 } // namespace cloud diff --git a/google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection.h b/google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection.h index 7bb6a3ca9a2cd..20c2d76b9bf16 100644 --- a/google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection.h +++ b/google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_retry_traits.h" #include "google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -200,6 +202,17 @@ class TargetHttpsProxiesConnection { DeleteTargetHttpsProxy(google::cloud::cpp::compute::target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request); + virtual StatusOr + DeleteTargetHttpsProxy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + DeleteTargetHttpsProxyRequest const& request); + + virtual future> + DeleteTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetTargetHttpsProxy(google::cloud::cpp::compute::target_https_proxies::v1:: GetTargetHttpsProxyRequest const& request); @@ -208,6 +221,17 @@ class TargetHttpsProxiesConnection { InsertTargetHttpsProxy(google::cloud::cpp::compute::target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request); + virtual StatusOr + InsertTargetHttpsProxy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + InsertTargetHttpsProxyRequest const& request); + + virtual future> + InsertTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListTargetHttpsProxies(google::cloud::cpp::compute::target_https_proxies::v1:: ListTargetHttpsProxiesRequest request); @@ -216,25 +240,83 @@ class TargetHttpsProxiesConnection { PatchTargetHttpsProxy(google::cloud::cpp::compute::target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request); + virtual StatusOr + PatchTargetHttpsProxy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + PatchTargetHttpsProxyRequest const& request); + + virtual future> + PatchTargetHttpsProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetCertificateMap(google::cloud::cpp::compute::target_https_proxies::v1:: SetCertificateMapRequest const& request); + virtual StatusOr + SetCertificateMap(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetCertificateMapRequest const& request); + + virtual future> + SetCertificateMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetQuicOverride(google::cloud::cpp::compute::target_https_proxies::v1:: SetQuicOverrideRequest const& request); + virtual StatusOr SetQuicOverride( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetQuicOverrideRequest const& request); + + virtual future> + SetQuicOverride(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetSslCertificates(google::cloud::cpp::compute::target_https_proxies::v1:: SetSslCertificatesRequest const& request); + virtual StatusOr + SetSslCertificates(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetSslCertificatesRequest const& request); + + virtual future> + SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetSslPolicy(google::cloud::cpp::compute::target_https_proxies::v1:: SetSslPolicyRequest const& request); + virtual StatusOr SetSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetSslPolicyRequest const& request); + + virtual future> + SetSslPolicy(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetUrlMap(google::cloud::cpp::compute::target_https_proxies::v1:: SetUrlMapRequest const& request); + + virtual StatusOr SetUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_https_proxies::v1:: + SetUrlMapRequest const& request); + + virtual future> + SetUrlMap(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/target_instances/v1/internal/target_instances_rest_connection_impl.cc b/google/cloud/compute/target_instances/v1/internal/target_instances_rest_connection_impl.cc index 71215655bc398..c8bc39650a1a2 100644 --- a/google/cloud/compute/target_instances/v1/internal/target_instances_rest_connection_impl.cc +++ b/google/cloud/compute/target_instances/v1/internal/target_instances_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -147,6 +148,79 @@ TargetInstancesRestConnectionImpl::DeleteTargetInstance( }); } +StatusOr +TargetInstancesRestConnectionImpl::DeleteTargetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + DeleteTargetInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTargetInstance(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_instances::v1:: + DeleteTargetInstanceRequest const& request) { + return stub_->DeleteTargetInstance(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetInstancesRestConnectionImpl::DeleteTargetInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StatusOr TargetInstancesRestConnectionImpl::GetTargetInstance( google::cloud::cpp::compute::target_instances::v1:: @@ -223,6 +297,79 @@ TargetInstancesRestConnectionImpl::InsertTargetInstance( }); } +StatusOr +TargetInstancesRestConnectionImpl::InsertTargetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + InsertTargetInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertTargetInstance(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_instances::v1:: + InsertTargetInstanceRequest const& request) { + return stub_->InsertTargetInstance(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetInstancesRestConnectionImpl::InsertTargetInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + StreamRange TargetInstancesRestConnectionImpl::ListTargetInstances( google::cloud::cpp::compute::target_instances::v1:: @@ -321,6 +468,79 @@ TargetInstancesRestConnectionImpl::SetSecurityPolicy( }); } +StatusOr +TargetInstancesRestConnectionImpl::SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + SetSecurityPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetSecurityPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_instances::v1:: + SetSecurityPolicyRequest const& request) { + return stub_->SetSecurityPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetInstancesRestConnectionImpl::SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation]( + std::string const&, + google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest& + r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::zone_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_zone(info.zone); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_target_instances_v1_internal } // namespace cloud diff --git a/google/cloud/compute/target_instances/v1/internal/target_instances_rest_connection_impl.h b/google/cloud/compute/target_instances/v1/internal/target_instances_rest_connection_impl.h index 8ed4a11dd1e59..d2ee0233af298 100644 --- a/google/cloud/compute/target_instances/v1/internal/target_instances_rest_connection_impl.h +++ b/google/cloud/compute/target_instances/v1/internal/target_instances_rest_connection_impl.h @@ -62,6 +62,16 @@ class TargetInstancesRestConnectionImpl DeleteTargetInstance(google::cloud::cpp::compute::target_instances::v1:: DeleteTargetInstanceRequest const& request) override; + StatusOr DeleteTargetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + DeleteTargetInstanceRequest const& request) override; + + future> + DeleteTargetInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetInstance( google::cloud::cpp::compute::target_instances::v1:: GetTargetInstanceRequest const& request) override; @@ -70,6 +80,16 @@ class TargetInstancesRestConnectionImpl InsertTargetInstance(google::cloud::cpp::compute::target_instances::v1:: InsertTargetInstanceRequest const& request) override; + StatusOr InsertTargetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + InsertTargetInstanceRequest const& request) override; + + future> + InsertTargetInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListTargetInstances(google::cloud::cpp::compute::target_instances::v1:: ListTargetInstancesRequest request) override; @@ -78,6 +98,16 @@ class TargetInstancesRestConnectionImpl SetSecurityPolicy(google::cloud::cpp::compute::target_instances::v1:: SetSecurityPolicyRequest const& request) override; + StatusOr SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + SetSecurityPolicyRequest const& request) override; + + future> + SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_target_instances_v1::TargetInstancesRetryPolicy> diff --git a/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.cc b/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.cc index e6e2593d9dacb..db92955ef5999 100644 --- a/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.cc +++ b/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.cc @@ -61,6 +61,33 @@ TargetInstancesTracingConnection::DeleteTargetInstance( child_->DeleteTargetInstance(request)); } +StatusOr +TargetInstancesTracingConnection::DeleteTargetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + DeleteTargetInstanceRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_instances_v1::TargetInstancesConnection::" + "DeleteTargetInstance"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteTargetInstance( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetInstancesTracingConnection::DeleteTargetInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_instances_v1::TargetInstancesConnection::" + "DeleteTargetInstance"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteTargetInstance( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TargetInstancesTracingConnection::GetTargetInstance( google::cloud::cpp::compute::target_instances::v1:: @@ -84,6 +111,33 @@ TargetInstancesTracingConnection::InsertTargetInstance( child_->InsertTargetInstance(request)); } +StatusOr +TargetInstancesTracingConnection::InsertTargetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + InsertTargetInstanceRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_instances_v1::TargetInstancesConnection::" + "InsertTargetInstance"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertTargetInstance( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetInstancesTracingConnection::InsertTargetInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_instances_v1::TargetInstancesConnection::" + "InsertTargetInstance"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertTargetInstance( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange TargetInstancesTracingConnection::ListTargetInstances( google::cloud::cpp::compute::target_instances::v1:: @@ -109,6 +163,33 @@ TargetInstancesTracingConnection::SetSecurityPolicy( return internal::EndSpan(std::move(span), child_->SetSecurityPolicy(request)); } +StatusOr +TargetInstancesTracingConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + SetSecurityPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_instances_v1::TargetInstancesConnection::" + "SetSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetInstancesTracingConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_instances_v1::TargetInstancesConnection::" + "SetSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.h b/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.h index 509c78a0998b4..f7ee2c0b6c335 100644 --- a/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.h +++ b/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.h @@ -51,6 +51,16 @@ class TargetInstancesTracingConnection DeleteTargetInstance(google::cloud::cpp::compute::target_instances::v1:: DeleteTargetInstanceRequest const& request) override; + StatusOr DeleteTargetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + DeleteTargetInstanceRequest const& request) override; + + future> + DeleteTargetInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetInstance( google::cloud::cpp::compute::target_instances::v1:: GetTargetInstanceRequest const& request) override; @@ -59,6 +69,16 @@ class TargetInstancesTracingConnection InsertTargetInstance(google::cloud::cpp::compute::target_instances::v1:: InsertTargetInstanceRequest const& request) override; + StatusOr InsertTargetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + InsertTargetInstanceRequest const& request) override; + + future> + InsertTargetInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListTargetInstances(google::cloud::cpp::compute::target_instances::v1:: ListTargetInstancesRequest request) override; @@ -67,6 +87,16 @@ class TargetInstancesTracingConnection SetSecurityPolicy(google::cloud::cpp::compute::target_instances::v1:: SetSecurityPolicyRequest const& request) override; + StatusOr SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + SetSecurityPolicyRequest const& request) override; + + future> + SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/target_instances/v1/mocks/mock_target_instances_connection.h b/google/cloud/compute/target_instances/v1/mocks/mock_target_instances_connection.h index 4ab7b98cacb45..4318219215b76 100644 --- a/google/cloud/compute/target_instances/v1/mocks/mock_target_instances_connection.h +++ b/google/cloud/compute/target_instances/v1/mocks/mock_target_instances_connection.h @@ -61,6 +61,19 @@ class MockTargetInstancesConnection DeleteTargetInstanceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteTargetInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + DeleteTargetInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteTargetInstance, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetTargetInstance, (google::cloud::cpp::compute::target_instances::v1:: @@ -73,6 +86,19 @@ class MockTargetInstancesConnection InsertTargetInstanceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertTargetInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + InsertTargetInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertTargetInstance, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListTargetInstances, (google::cloud::cpp::compute::target_instances::v1:: @@ -84,6 +110,19 @@ class MockTargetInstancesConnection (google::cloud::cpp::compute::target_instances::v1:: SetSecurityPolicyRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + SetSecurityPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + SetSecurityPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetSecurityPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/target_instances/v1/target_instances_connection.cc b/google/cloud/compute/target_instances/v1/target_instances_connection.cc index 282be07a6e0e8..e5a3fac28c386 100644 --- a/google/cloud/compute/target_instances/v1/target_instances_connection.cc +++ b/google/cloud/compute/target_instances/v1/target_instances_connection.cc @@ -55,6 +55,24 @@ TargetInstancesConnection::DeleteTargetInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetInstancesConnection::DeleteTargetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + DeleteTargetInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetInstancesConnection::DeleteTargetInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TargetInstancesConnection::GetTargetInstance( google::cloud::cpp::compute::target_instances::v1:: @@ -71,6 +89,24 @@ TargetInstancesConnection::InsertTargetInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetInstancesConnection::InsertTargetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + InsertTargetInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetInstancesConnection::InsertTargetInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange TargetInstancesConnection::ListTargetInstances( google::cloud::cpp::compute::target_instances::v1:: @@ -88,6 +124,24 @@ TargetInstancesConnection::SetSecurityPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetInstancesConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + SetSecurityPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetInstancesConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_target_instances_v1 } // namespace cloud diff --git a/google/cloud/compute/target_instances/v1/target_instances_connection.h b/google/cloud/compute/target_instances/v1/target_instances_connection.h index ecbd46bb25bc2..2ae7438ecfe14 100644 --- a/google/cloud/compute/target_instances/v1/target_instances_connection.h +++ b/google/cloud/compute/target_instances/v1/target_instances_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/target_instances/v1/internal/target_instances_retry_traits.h" #include "google/cloud/compute/target_instances/v1/target_instances_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -196,6 +198,17 @@ class TargetInstancesConnection { DeleteTargetInstance(google::cloud::cpp::compute::target_instances::v1:: DeleteTargetInstanceRequest const& request); + virtual StatusOr + DeleteTargetInstance(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + DeleteTargetInstanceRequest const& request); + + virtual future> + DeleteTargetInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetTargetInstance(google::cloud::cpp::compute::target_instances::v1:: GetTargetInstanceRequest const& request); @@ -204,6 +217,17 @@ class TargetInstancesConnection { InsertTargetInstance(google::cloud::cpp::compute::target_instances::v1:: InsertTargetInstanceRequest const& request); + virtual StatusOr + InsertTargetInstance(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + InsertTargetInstanceRequest const& request); + + virtual future> + InsertTargetInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListTargetInstances(google::cloud::cpp::compute::target_instances::v1:: ListTargetInstancesRequest request); @@ -211,6 +235,16 @@ class TargetInstancesConnection { virtual future> SetSecurityPolicy(google::cloud::cpp::compute::target_instances::v1:: SetSecurityPolicyRequest const& request); + + virtual StatusOr + SetSecurityPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_instances::v1:: + SetSecurityPolicyRequest const& request); + + virtual future> + SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/target_pools/v1/internal/target_pools_rest_connection_impl.cc b/google/cloud/compute/target_pools/v1/internal/target_pools_rest_connection_impl.cc index 3895f4d9c992d..3d6373d37ff26 100644 --- a/google/cloud/compute/target_pools/v1/internal/target_pools_rest_connection_impl.cc +++ b/google/cloud/compute/target_pools/v1/internal/target_pools_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -102,6 +103,79 @@ TargetPoolsRestConnectionImpl::AddHealthCheck( }); } +StatusOr +TargetPoolsRestConnectionImpl::AddHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::AddHealthCheckRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_pools::v1:: + AddHealthCheckRequest const& request) { + return stub_->AddHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetPoolsRestConnectionImpl::AddHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> TargetPoolsRestConnectionImpl::AddInstance( google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& @@ -162,6 +236,79 @@ TargetPoolsRestConnectionImpl::AddInstance( }); } +StatusOr +TargetPoolsRestConnectionImpl::AddInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddInstance(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_pools::v1:: + AddInstanceRequest const& request) { + return stub_->AddInstance(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetPoolsRestConnectionImpl::AddInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange> TargetPoolsRestConnectionImpl::AggregatedListTargetPools( @@ -264,6 +411,79 @@ TargetPoolsRestConnectionImpl::DeleteTargetPool( }); } +StatusOr +TargetPoolsRestConnectionImpl::DeleteTargetPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + DeleteTargetPoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTargetPool(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_pools::v1:: + DeleteTargetPoolRequest const& request) { + return stub_->DeleteTargetPool(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetPoolsRestConnectionImpl::DeleteTargetPool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr TargetPoolsRestConnectionImpl::GetTargetPool( google::cloud::cpp::compute::target_pools::v1::GetTargetPoolRequest const& @@ -357,6 +577,79 @@ TargetPoolsRestConnectionImpl::InsertTargetPool( }); } +StatusOr +TargetPoolsRestConnectionImpl::InsertTargetPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + InsertTargetPoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertTargetPool(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_pools::v1:: + InsertTargetPoolRequest const& request) { + return stub_->InsertTargetPool(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetPoolsRestConnectionImpl::InsertTargetPool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange TargetPoolsRestConnectionImpl::ListTargetPools( google::cloud::cpp::compute::target_pools::v1::ListTargetPoolsRequest @@ -453,6 +746,79 @@ TargetPoolsRestConnectionImpl::RemoveHealthCheck( }); } +StatusOr +TargetPoolsRestConnectionImpl::RemoveHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + RemoveHealthCheckRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveHealthCheck(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_pools::v1:: + RemoveHealthCheckRequest const& request) { + return stub_->RemoveHealthCheck(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetPoolsRestConnectionImpl::RemoveHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> TargetPoolsRestConnectionImpl::RemoveInstance( google::cloud::cpp::compute::target_pools::v1::RemoveInstanceRequest const& @@ -513,6 +879,79 @@ TargetPoolsRestConnectionImpl::RemoveInstance( }); } +StatusOr +TargetPoolsRestConnectionImpl::RemoveInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::RemoveInstanceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveInstance(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_pools::v1:: + RemoveInstanceRequest const& request) { + return stub_->RemoveInstance(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetPoolsRestConnectionImpl::RemoveInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> TargetPoolsRestConnectionImpl::SetBackup( google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& @@ -574,6 +1013,80 @@ TargetPoolsRestConnectionImpl::SetBackup( }); } +StatusOr +TargetPoolsRestConnectionImpl::SetBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetBackup(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& + request) { + return stub_->SetBackup(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetPoolsRestConnectionImpl::SetBackup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + future> TargetPoolsRestConnectionImpl::SetSecurityPolicy( google::cloud::cpp::compute::target_pools::v1:: @@ -634,6 +1147,79 @@ TargetPoolsRestConnectionImpl::SetSecurityPolicy( }); } +StatusOr +TargetPoolsRestConnectionImpl::SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + SetSecurityPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetSecurityPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_pools::v1:: + SetSecurityPolicyRequest const& request) { + return stub_->SetSecurityPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetPoolsRestConnectionImpl::SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_target_pools_v1_internal } // namespace cloud diff --git a/google/cloud/compute/target_pools/v1/internal/target_pools_rest_connection_impl.h b/google/cloud/compute/target_pools/v1/internal/target_pools_rest_connection_impl.h index 1a89e5a6a8dad..25f05e388e91f 100644 --- a/google/cloud/compute/target_pools/v1/internal/target_pools_rest_connection_impl.h +++ b/google/cloud/compute/target_pools/v1/internal/target_pools_rest_connection_impl.h @@ -55,10 +55,28 @@ class TargetPoolsRestConnectionImpl google::cloud::cpp::compute::target_pools::v1:: AddHealthCheckRequest const& request) override; + StatusOr AddHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + AddHealthCheckRequest const& request) override; + + future> AddHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> AddInstance( google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& request) override; + StatusOr AddInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& + request) override; + + future> AddInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange> AggregatedListTargetPools( @@ -69,6 +87,15 @@ class TargetPoolsRestConnectionImpl google::cloud::cpp::compute::target_pools::v1:: DeleteTargetPoolRequest const& request) override; + StatusOr DeleteTargetPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + DeleteTargetPoolRequest const& request) override; + + future> DeleteTargetPool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetPool( google::cloud::cpp::compute::target_pools::v1::GetTargetPoolRequest const& request) override; @@ -81,6 +108,15 @@ class TargetPoolsRestConnectionImpl google::cloud::cpp::compute::target_pools::v1:: InsertTargetPoolRequest const& request) override; + StatusOr InsertTargetPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + InsertTargetPoolRequest const& request) override; + + future> InsertTargetPool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListTargetPools( google::cloud::cpp::compute::target_pools::v1::ListTargetPoolsRequest request) override; @@ -89,18 +125,56 @@ class TargetPoolsRestConnectionImpl RemoveHealthCheck(google::cloud::cpp::compute::target_pools::v1:: RemoveHealthCheckRequest const& request) override; + StatusOr RemoveHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + RemoveHealthCheckRequest const& request) override; + + future> + RemoveHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveInstance( google::cloud::cpp::compute::target_pools::v1:: RemoveInstanceRequest const& request) override; + StatusOr RemoveInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + RemoveInstanceRequest const& request) override; + + future> RemoveInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetBackup( google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& request) override; + StatusOr SetBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& + request) override; + + future> SetBackup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetSecurityPolicy(google::cloud::cpp::compute::target_pools::v1:: SetSecurityPolicyRequest const& request) override; + StatusOr SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + SetSecurityPolicyRequest const& request) override; + + future> + SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy(Options const& options) { diff --git a/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.cc b/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.cc index 3c12a43407806..c527285eeba7b 100644 --- a/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.cc +++ b/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.cc @@ -43,6 +43,31 @@ TargetPoolsTracingConnection::AddHealthCheck( return internal::EndSpan(std::move(span), child_->AddHealthCheck(request)); } +StatusOr +TargetPoolsTracingConnection::AddHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::AddHealthCheckRequest const& + request) { + auto span = internal::MakeSpan( + "compute_target_pools_v1::TargetPoolsConnection::AddHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddHealthCheck(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetPoolsTracingConnection::AddHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_pools_v1::TargetPoolsConnection::AddHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddHealthCheck(google::cloud::ExperimentalTag{}, operation)); +} + future> TargetPoolsTracingConnection::AddInstance( google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& @@ -53,6 +78,31 @@ TargetPoolsTracingConnection::AddInstance( return internal::EndSpan(std::move(span), child_->AddInstance(request)); } +StatusOr +TargetPoolsTracingConnection::AddInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& + request) { + auto span = internal::MakeSpan( + "compute_target_pools_v1::TargetPoolsConnection::AddInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetPoolsTracingConnection::AddInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_pools_v1::TargetPoolsConnection::AddInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddInstance(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange> TargetPoolsTracingConnection::AggregatedListTargetPools( @@ -78,6 +128,31 @@ TargetPoolsTracingConnection::DeleteTargetPool( return internal::EndSpan(std::move(span), child_->DeleteTargetPool(request)); } +StatusOr +TargetPoolsTracingConnection::DeleteTargetPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + DeleteTargetPoolRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_pools_v1::TargetPoolsConnection::DeleteTargetPool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteTargetPool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetPoolsTracingConnection::DeleteTargetPool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_pools_v1::TargetPoolsConnection::DeleteTargetPool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteTargetPool(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TargetPoolsTracingConnection::GetTargetPool( google::cloud::cpp::compute::target_pools::v1::GetTargetPoolRequest const& @@ -108,6 +183,31 @@ TargetPoolsTracingConnection::InsertTargetPool( return internal::EndSpan(std::move(span), child_->InsertTargetPool(request)); } +StatusOr +TargetPoolsTracingConnection::InsertTargetPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + InsertTargetPoolRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_pools_v1::TargetPoolsConnection::InsertTargetPool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertTargetPool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetPoolsTracingConnection::InsertTargetPool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_pools_v1::TargetPoolsConnection::InsertTargetPool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertTargetPool(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange TargetPoolsTracingConnection::ListTargetPools( google::cloud::cpp::compute::target_pools::v1::ListTargetPoolsRequest @@ -131,6 +231,31 @@ TargetPoolsTracingConnection::RemoveHealthCheck( return internal::EndSpan(std::move(span), child_->RemoveHealthCheck(request)); } +StatusOr +TargetPoolsTracingConnection::RemoveHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + RemoveHealthCheckRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_pools_v1::TargetPoolsConnection::RemoveHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RemoveHealthCheck(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetPoolsTracingConnection::RemoveHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_pools_v1::TargetPoolsConnection::RemoveHealthCheck"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RemoveHealthCheck(google::cloud::ExperimentalTag{}, operation)); +} + future> TargetPoolsTracingConnection::RemoveInstance( google::cloud::cpp::compute::target_pools::v1::RemoveInstanceRequest const& @@ -141,6 +266,31 @@ TargetPoolsTracingConnection::RemoveInstance( return internal::EndSpan(std::move(span), child_->RemoveInstance(request)); } +StatusOr +TargetPoolsTracingConnection::RemoveInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::RemoveInstanceRequest const& + request) { + auto span = internal::MakeSpan( + "compute_target_pools_v1::TargetPoolsConnection::RemoveInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RemoveInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetPoolsTracingConnection::RemoveInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_pools_v1::TargetPoolsConnection::RemoveInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RemoveInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> TargetPoolsTracingConnection::SetBackup( google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& @@ -151,6 +301,31 @@ TargetPoolsTracingConnection::SetBackup( return internal::EndSpan(std::move(span), child_->SetBackup(request)); } +StatusOr +TargetPoolsTracingConnection::SetBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& + request) { + auto span = internal::MakeSpan( + "compute_target_pools_v1::TargetPoolsConnection::SetBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetPoolsTracingConnection::SetBackup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_pools_v1::TargetPoolsConnection::SetBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetBackup(google::cloud::ExperimentalTag{}, operation)); +} + future> TargetPoolsTracingConnection::SetSecurityPolicy( google::cloud::cpp::compute::target_pools::v1:: @@ -161,6 +336,31 @@ TargetPoolsTracingConnection::SetSecurityPolicy( return internal::EndSpan(std::move(span), child_->SetSecurityPolicy(request)); } +StatusOr +TargetPoolsTracingConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + SetSecurityPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_pools_v1::TargetPoolsConnection::SetSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetPoolsTracingConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_pools_v1::TargetPoolsConnection::SetSecurityPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.h b/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.h index ef92170466c1f..6b47eb7918209 100644 --- a/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.h +++ b/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.h @@ -44,10 +44,28 @@ class TargetPoolsTracingConnection google::cloud::cpp::compute::target_pools::v1:: AddHealthCheckRequest const& request) override; + StatusOr AddHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + AddHealthCheckRequest const& request) override; + + future> AddHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> AddInstance( google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& request) override; + StatusOr AddInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& + request) override; + + future> AddInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange> AggregatedListTargetPools( @@ -58,6 +76,15 @@ class TargetPoolsTracingConnection google::cloud::cpp::compute::target_pools::v1:: DeleteTargetPoolRequest const& request) override; + StatusOr DeleteTargetPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + DeleteTargetPoolRequest const& request) override; + + future> DeleteTargetPool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetPool( google::cloud::cpp::compute::target_pools::v1::GetTargetPoolRequest const& request) override; @@ -70,6 +97,15 @@ class TargetPoolsTracingConnection google::cloud::cpp::compute::target_pools::v1:: InsertTargetPoolRequest const& request) override; + StatusOr InsertTargetPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + InsertTargetPoolRequest const& request) override; + + future> InsertTargetPool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListTargetPools( google::cloud::cpp::compute::target_pools::v1::ListTargetPoolsRequest request) override; @@ -78,18 +114,56 @@ class TargetPoolsTracingConnection RemoveHealthCheck(google::cloud::cpp::compute::target_pools::v1:: RemoveHealthCheckRequest const& request) override; + StatusOr RemoveHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + RemoveHealthCheckRequest const& request) override; + + future> + RemoveHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> RemoveInstance( google::cloud::cpp::compute::target_pools::v1:: RemoveInstanceRequest const& request) override; + StatusOr RemoveInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + RemoveInstanceRequest const& request) override; + + future> RemoveInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetBackup( google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& request) override; + StatusOr SetBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& + request) override; + + future> SetBackup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetSecurityPolicy(google::cloud::cpp::compute::target_pools::v1:: SetSecurityPolicyRequest const& request) override; + StatusOr SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + SetSecurityPolicyRequest const& request) override; + + future> + SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/target_pools/v1/mocks/mock_target_pools_connection.h b/google/cloud/compute/target_pools/v1/mocks/mock_target_pools_connection.h index 40bbdd0923654..02932a9a2c529 100644 --- a/google/cloud/compute/target_pools/v1/mocks/mock_target_pools_connection.h +++ b/google/cloud/compute/target_pools/v1/mocks/mock_target_pools_connection.h @@ -53,12 +53,38 @@ class MockTargetPoolsConnection AddHealthCheckRequest const& request), (override)); + MOCK_METHOD(StatusOr, + AddHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + AddHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + AddHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, AddInstance, (google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, AddInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& + request), + (override)); + + MOCK_METHOD(future>, + AddInstance, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange< std::pair, + DeleteTargetPool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + DeleteTargetPoolRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteTargetPool, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetTargetPool, (google::cloud::cpp::compute::target_pools::v1:: @@ -93,6 +132,19 @@ class MockTargetPoolsConnection InsertTargetPoolRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertTargetPool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + InsertTargetPoolRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertTargetPool, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListTargetPools, @@ -106,23 +158,75 @@ class MockTargetPoolsConnection RemoveHealthCheckRequest const& request), (override)); + MOCK_METHOD(StatusOr, + RemoveHealthCheck, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + RemoveHealthCheckRequest const& request), + (override)); + + MOCK_METHOD(future>, + RemoveHealthCheck, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, RemoveInstance, (google::cloud::cpp::compute::target_pools::v1:: RemoveInstanceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + RemoveInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + RemoveInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + RemoveInstance, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, SetBackup, (google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, SetBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& + request), + (override)); + + MOCK_METHOD(future>, + SetBackup, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetSecurityPolicy, (google::cloud::cpp::compute::target_pools::v1:: SetSecurityPolicyRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + SetSecurityPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + SetSecurityPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetSecurityPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/target_pools/v1/target_pools_connection.cc b/google/cloud/compute/target_pools/v1/target_pools_connection.cc index 5c2073cef00fa..0e42d03e5cfc1 100644 --- a/google/cloud/compute/target_pools/v1/target_pools_connection.cc +++ b/google/cloud/compute/target_pools/v1/target_pools_connection.cc @@ -45,6 +45,24 @@ TargetPoolsConnection::AddHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetPoolsConnection::AddHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + AddHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetPoolsConnection::AddHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TargetPoolsConnection::AddInstance( google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const&) { @@ -53,6 +71,23 @@ TargetPoolsConnection::AddInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetPoolsConnection::AddInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetPoolsConnection::AddInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange> TargetPoolsConnection::AggregatedListTargetPools( @@ -72,6 +107,24 @@ TargetPoolsConnection::DeleteTargetPool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetPoolsConnection::DeleteTargetPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + DeleteTargetPoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetPoolsConnection::DeleteTargetPool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TargetPoolsConnection::GetTargetPool(google::cloud::cpp::compute::target_pools:: v1::GetTargetPoolRequest const&) { @@ -93,6 +146,24 @@ TargetPoolsConnection::InsertTargetPool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetPoolsConnection::InsertTargetPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + InsertTargetPoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetPoolsConnection::InsertTargetPool( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange TargetPoolsConnection::ListTargetPools( google::cloud::cpp::compute::target_pools::v1:: @@ -110,6 +181,24 @@ TargetPoolsConnection::RemoveHealthCheck( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetPoolsConnection::RemoveHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + RemoveHealthCheckRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetPoolsConnection::RemoveHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TargetPoolsConnection::RemoveInstance( google::cloud::cpp::compute::target_pools::v1:: @@ -119,6 +208,24 @@ TargetPoolsConnection::RemoveInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetPoolsConnection::RemoveInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + RemoveInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetPoolsConnection::RemoveInstance( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TargetPoolsConnection::SetBackup( google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const&) { @@ -127,6 +234,23 @@ TargetPoolsConnection::SetBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetPoolsConnection::SetBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetPoolsConnection::SetBackup( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TargetPoolsConnection::SetSecurityPolicy( google::cloud::cpp::compute::target_pools::v1:: @@ -136,6 +260,24 @@ TargetPoolsConnection::SetSecurityPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetPoolsConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + SetSecurityPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetPoolsConnection::SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_target_pools_v1 } // namespace cloud diff --git a/google/cloud/compute/target_pools/v1/target_pools_connection.h b/google/cloud/compute/target_pools/v1/target_pools_connection.h index 2f86d860825d2..b972687520a40 100644 --- a/google/cloud/compute/target_pools/v1/target_pools_connection.h +++ b/google/cloud/compute/target_pools/v1/target_pools_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/target_pools/v1/internal/target_pools_retry_traits.h" #include "google/cloud/compute/target_pools/v1/target_pools_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -187,11 +189,29 @@ class TargetPoolsConnection { AddHealthCheck(google::cloud::cpp::compute::target_pools::v1:: AddHealthCheckRequest const& request); + virtual StatusOr AddHealthCheck( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + AddHealthCheckRequest const& request); + + virtual future> + AddHealthCheck(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> AddInstance( google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& request); + virtual StatusOr AddInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& + request); + + virtual future> + AddInstance(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange> AggregatedListTargetPools(google::cloud::cpp::compute::target_pools::v1:: @@ -201,6 +221,15 @@ class TargetPoolsConnection { DeleteTargetPool(google::cloud::cpp::compute::target_pools::v1:: DeleteTargetPoolRequest const& request); + virtual StatusOr DeleteTargetPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + DeleteTargetPoolRequest const& request); + + virtual future> + DeleteTargetPool(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetTargetPool( google::cloud::cpp::compute::target_pools::v1::GetTargetPoolRequest const& request); @@ -214,6 +243,15 @@ class TargetPoolsConnection { InsertTargetPool(google::cloud::cpp::compute::target_pools::v1:: InsertTargetPoolRequest const& request); + virtual StatusOr InsertTargetPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + InsertTargetPoolRequest const& request); + + virtual future> + InsertTargetPool(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListTargetPools( google::cloud::cpp::compute::target_pools::v1::ListTargetPoolsRequest @@ -223,18 +261,56 @@ class TargetPoolsConnection { RemoveHealthCheck(google::cloud::cpp::compute::target_pools::v1:: RemoveHealthCheckRequest const& request); + virtual StatusOr + RemoveHealthCheck(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + RemoveHealthCheckRequest const& request); + + virtual future> + RemoveHealthCheck( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> RemoveInstance(google::cloud::cpp::compute::target_pools::v1:: RemoveInstanceRequest const& request); + virtual StatusOr RemoveInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + RemoveInstanceRequest const& request); + + virtual future> + RemoveInstance(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetBackup( google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& request); + virtual StatusOr SetBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& + request); + + virtual future> + SetBackup(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetSecurityPolicy(google::cloud::cpp::compute::target_pools::v1:: SetSecurityPolicyRequest const& request); + + virtual StatusOr + SetSecurityPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_pools::v1:: + SetSecurityPolicyRequest const& request); + + virtual future> + SetSecurityPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_rest_connection_impl.cc b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_rest_connection_impl.cc index 89235cc435317..83818fbd161a0 100644 --- a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_rest_connection_impl.cc +++ b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -102,6 +103,77 @@ TargetSslProxiesRestConnectionImpl::DeleteTargetSslProxy( }); } +StatusOr +TargetSslProxiesRestConnectionImpl::DeleteTargetSslProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + DeleteTargetSslProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTargetSslProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + DeleteTargetSslProxyRequest const& request) { + return stub_->DeleteTargetSslProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetSslProxiesRestConnectionImpl::DeleteTargetSslProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr TargetSslProxiesRestConnectionImpl::GetTargetSslProxy( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -176,6 +248,77 @@ TargetSslProxiesRestConnectionImpl::InsertTargetSslProxy( }); } +StatusOr +TargetSslProxiesRestConnectionImpl::InsertTargetSslProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + InsertTargetSslProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertTargetSslProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + InsertTargetSslProxyRequest const& request) { + return stub_->InsertTargetSslProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetSslProxiesRestConnectionImpl::InsertTargetSslProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange TargetSslProxiesRestConnectionImpl::ListTargetSslProxies( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -273,6 +416,77 @@ TargetSslProxiesRestConnectionImpl::SetBackendService( }); } +StatusOr +TargetSslProxiesRestConnectionImpl::SetBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetBackendServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetBackendService(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetBackendServiceRequest const& request) { + return stub_->SetBackendService(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetSslProxiesRestConnectionImpl::SetBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> TargetSslProxiesRestConnectionImpl::SetCertificateMap( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -331,6 +545,77 @@ TargetSslProxiesRestConnectionImpl::SetCertificateMap( }); } +StatusOr +TargetSslProxiesRestConnectionImpl::SetCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetCertificateMapRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetCertificateMap(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetCertificateMapRequest const& request) { + return stub_->SetCertificateMap(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetSslProxiesRestConnectionImpl::SetCertificateMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> TargetSslProxiesRestConnectionImpl::SetProxyHeader( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -389,6 +674,77 @@ TargetSslProxiesRestConnectionImpl::SetProxyHeader( }); } +StatusOr +TargetSslProxiesRestConnectionImpl::SetProxyHeader( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetProxyHeaderRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetProxyHeader(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetProxyHeaderRequest const& request) { + return stub_->SetProxyHeader(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetSslProxiesRestConnectionImpl::SetProxyHeader( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> TargetSslProxiesRestConnectionImpl::SetSslCertificates( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -447,6 +803,77 @@ TargetSslProxiesRestConnectionImpl::SetSslCertificates( }); } +StatusOr +TargetSslProxiesRestConnectionImpl::SetSslCertificates( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetSslCertificatesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetSslCertificates(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetSslCertificatesRequest const& request) { + return stub_->SetSslCertificates(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetSslProxiesRestConnectionImpl::SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> TargetSslProxiesRestConnectionImpl::SetSslPolicy( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -505,6 +932,77 @@ TargetSslProxiesRestConnectionImpl::SetSslPolicy( }); } +StatusOr +TargetSslProxiesRestConnectionImpl::SetSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetSslPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetSslPolicy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetSslPolicyRequest const& request) { + return stub_->SetSslPolicy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetSslProxiesRestConnectionImpl::SetSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_target_ssl_proxies_v1_internal } // namespace cloud diff --git a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_rest_connection_impl.h b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_rest_connection_impl.h index 9fea85ea3c0d7..ede6fe4b809e0 100644 --- a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_rest_connection_impl.h +++ b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_rest_connection_impl.h @@ -56,6 +56,16 @@ class TargetSslProxiesRestConnectionImpl DeleteTargetSslProxy(google::cloud::cpp::compute::target_ssl_proxies::v1:: DeleteTargetSslProxyRequest const& request) override; + StatusOr DeleteTargetSslProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + DeleteTargetSslProxyRequest const& request) override; + + future> + DeleteTargetSslProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetSslProxy( google::cloud::cpp::compute::target_ssl_proxies::v1:: GetTargetSslProxyRequest const& request) override; @@ -64,6 +74,16 @@ class TargetSslProxiesRestConnectionImpl InsertTargetSslProxy(google::cloud::cpp::compute::target_ssl_proxies::v1:: InsertTargetSslProxyRequest const& request) override; + StatusOr InsertTargetSslProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + InsertTargetSslProxyRequest const& request) override; + + future> + InsertTargetSslProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListTargetSslProxies(google::cloud::cpp::compute::target_ssl_proxies::v1:: ListTargetSslProxiesRequest request) override; @@ -72,22 +92,70 @@ class TargetSslProxiesRestConnectionImpl SetBackendService(google::cloud::cpp::compute::target_ssl_proxies::v1:: SetBackendServiceRequest const& request) override; + StatusOr SetBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetBackendServiceRequest const& request) override; + + future> + SetBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetCertificateMap(google::cloud::cpp::compute::target_ssl_proxies::v1:: SetCertificateMapRequest const& request) override; + StatusOr SetCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetCertificateMapRequest const& request) override; + + future> + SetCertificateMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetProxyHeader( google::cloud::cpp::compute::target_ssl_proxies::v1:: SetProxyHeaderRequest const& request) override; + StatusOr SetProxyHeader( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetProxyHeaderRequest const& request) override; + + future> SetProxyHeader( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetSslCertificates(google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslCertificatesRequest const& request) override; + StatusOr SetSslCertificates( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetSslCertificatesRequest const& request) override; + + future> + SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetSslPolicy( google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslPolicyRequest const& request) override; + StatusOr SetSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetSslPolicyRequest const& request) override; + + future> SetSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_target_ssl_proxies_v1::TargetSslProxiesRetryPolicy> diff --git a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.cc b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.cc index b06a172d52038..87c10ce7de7a3 100644 --- a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.cc +++ b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.cc @@ -46,6 +46,33 @@ TargetSslProxiesTracingConnection::DeleteTargetSslProxy( child_->DeleteTargetSslProxy(request)); } +StatusOr +TargetSslProxiesTracingConnection::DeleteTargetSslProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + DeleteTargetSslProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" + "DeleteTargetSslProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteTargetSslProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetSslProxiesTracingConnection::DeleteTargetSslProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" + "DeleteTargetSslProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteTargetSslProxy( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TargetSslProxiesTracingConnection::GetTargetSslProxy( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -69,6 +96,33 @@ TargetSslProxiesTracingConnection::InsertTargetSslProxy( child_->InsertTargetSslProxy(request)); } +StatusOr +TargetSslProxiesTracingConnection::InsertTargetSslProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + InsertTargetSslProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" + "InsertTargetSslProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertTargetSslProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetSslProxiesTracingConnection::InsertTargetSslProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" + "InsertTargetSslProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertTargetSslProxy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange TargetSslProxiesTracingConnection::ListTargetSslProxies( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -94,6 +148,33 @@ TargetSslProxiesTracingConnection::SetBackendService( return internal::EndSpan(std::move(span), child_->SetBackendService(request)); } +StatusOr +TargetSslProxiesTracingConnection::SetBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetBackendServiceRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" + "SetBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetBackendService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetSslProxiesTracingConnection::SetBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" + "SetBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetBackendService(google::cloud::ExperimentalTag{}, operation)); +} + future> TargetSslProxiesTracingConnection::SetCertificateMap( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -105,6 +186,33 @@ TargetSslProxiesTracingConnection::SetCertificateMap( return internal::EndSpan(std::move(span), child_->SetCertificateMap(request)); } +StatusOr +TargetSslProxiesTracingConnection::SetCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetCertificateMapRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" + "SetCertificateMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetCertificateMap(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetSslProxiesTracingConnection::SetCertificateMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" + "SetCertificateMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetCertificateMap(google::cloud::ExperimentalTag{}, operation)); +} + future> TargetSslProxiesTracingConnection::SetProxyHeader( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -116,6 +224,33 @@ TargetSslProxiesTracingConnection::SetProxyHeader( return internal::EndSpan(std::move(span), child_->SetProxyHeader(request)); } +StatusOr +TargetSslProxiesTracingConnection::SetProxyHeader( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetProxyHeaderRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" + "SetProxyHeader"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetProxyHeader(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetSslProxiesTracingConnection::SetProxyHeader( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" + "SetProxyHeader"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetProxyHeader(google::cloud::ExperimentalTag{}, operation)); +} + future> TargetSslProxiesTracingConnection::SetSslCertificates( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -128,6 +263,33 @@ TargetSslProxiesTracingConnection::SetSslCertificates( child_->SetSslCertificates(request)); } +StatusOr +TargetSslProxiesTracingConnection::SetSslCertificates( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetSslCertificatesRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" + "SetSslCertificates"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetSslCertificates(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetSslProxiesTracingConnection::SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" + "SetSslCertificates"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetSslCertificates(google::cloud::ExperimentalTag{}, operation)); +} + future> TargetSslProxiesTracingConnection::SetSslPolicy( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -139,6 +301,33 @@ TargetSslProxiesTracingConnection::SetSslPolicy( return internal::EndSpan(std::move(span), child_->SetSslPolicy(request)); } +StatusOr +TargetSslProxiesTracingConnection::SetSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetSslPolicyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" + "SetSslPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetSslPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetSslProxiesTracingConnection::SetSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" + "SetSslPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetSslPolicy(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.h b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.h index 942690b0625ac..df882e54c10fd 100644 --- a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.h +++ b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.h @@ -45,6 +45,16 @@ class TargetSslProxiesTracingConnection DeleteTargetSslProxy(google::cloud::cpp::compute::target_ssl_proxies::v1:: DeleteTargetSslProxyRequest const& request) override; + StatusOr DeleteTargetSslProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + DeleteTargetSslProxyRequest const& request) override; + + future> + DeleteTargetSslProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetSslProxy( google::cloud::cpp::compute::target_ssl_proxies::v1:: GetTargetSslProxyRequest const& request) override; @@ -53,6 +63,16 @@ class TargetSslProxiesTracingConnection InsertTargetSslProxy(google::cloud::cpp::compute::target_ssl_proxies::v1:: InsertTargetSslProxyRequest const& request) override; + StatusOr InsertTargetSslProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + InsertTargetSslProxyRequest const& request) override; + + future> + InsertTargetSslProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListTargetSslProxies(google::cloud::cpp::compute::target_ssl_proxies::v1:: ListTargetSslProxiesRequest request) override; @@ -61,22 +81,70 @@ class TargetSslProxiesTracingConnection SetBackendService(google::cloud::cpp::compute::target_ssl_proxies::v1:: SetBackendServiceRequest const& request) override; + StatusOr SetBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetBackendServiceRequest const& request) override; + + future> + SetBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetCertificateMap(google::cloud::cpp::compute::target_ssl_proxies::v1:: SetCertificateMapRequest const& request) override; + StatusOr SetCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetCertificateMapRequest const& request) override; + + future> + SetCertificateMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetProxyHeader( google::cloud::cpp::compute::target_ssl_proxies::v1:: SetProxyHeaderRequest const& request) override; + StatusOr SetProxyHeader( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetProxyHeaderRequest const& request) override; + + future> SetProxyHeader( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetSslCertificates(google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslCertificatesRequest const& request) override; + StatusOr SetSslCertificates( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetSslCertificatesRequest const& request) override; + + future> + SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetSslPolicy( google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslPolicyRequest const& request) override; + StatusOr SetSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetSslPolicyRequest const& request) override; + + future> SetSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/target_ssl_proxies/v1/mocks/mock_target_ssl_proxies_connection.h b/google/cloud/compute/target_ssl_proxies/v1/mocks/mock_target_ssl_proxies_connection.h index 803be35b40d83..28c44646a0c7d 100644 --- a/google/cloud/compute/target_ssl_proxies/v1/mocks/mock_target_ssl_proxies_connection.h +++ b/google/cloud/compute/target_ssl_proxies/v1/mocks/mock_target_ssl_proxies_connection.h @@ -53,6 +53,19 @@ class MockTargetSslProxiesConnection DeleteTargetSslProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteTargetSslProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + DeleteTargetSslProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteTargetSslProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetTargetSslProxy, (google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -65,6 +78,19 @@ class MockTargetSslProxiesConnection InsertTargetSslProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertTargetSslProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + InsertTargetSslProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertTargetSslProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListTargetSslProxies, (google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -77,29 +103,94 @@ class MockTargetSslProxiesConnection SetBackendServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetBackendService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetBackendServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetBackendService, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetCertificateMap, (google::cloud::cpp::compute::target_ssl_proxies::v1:: SetCertificateMapRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetCertificateMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetCertificateMapRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetCertificateMap, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetProxyHeader, (google::cloud::cpp::compute::target_ssl_proxies::v1:: SetProxyHeaderRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetProxyHeader, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetProxyHeaderRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetProxyHeader, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetSslCertificates, (google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslCertificatesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetSslCertificates, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetSslCertificatesRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetSslCertificates, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetSslPolicy, (google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslPolicyRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + SetSslPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetSslPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetSslPolicy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection.cc b/google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection.cc index 8e5e615d54c0d..3f0a75f8b6b6c 100644 --- a/google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection.cc +++ b/google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection.cc @@ -45,6 +45,24 @@ TargetSslProxiesConnection::DeleteTargetSslProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetSslProxiesConnection::DeleteTargetSslProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + DeleteTargetSslProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetSslProxiesConnection::DeleteTargetSslProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TargetSslProxiesConnection::GetTargetSslProxy( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -61,6 +79,24 @@ TargetSslProxiesConnection::InsertTargetSslProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetSslProxiesConnection::InsertTargetSslProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + InsertTargetSslProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetSslProxiesConnection::InsertTargetSslProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange TargetSslProxiesConnection::ListTargetSslProxies( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -78,6 +114,24 @@ TargetSslProxiesConnection::SetBackendService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetSslProxiesConnection::SetBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetBackendServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetSslProxiesConnection::SetBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TargetSslProxiesConnection::SetCertificateMap( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -87,6 +141,24 @@ TargetSslProxiesConnection::SetCertificateMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetSslProxiesConnection::SetCertificateMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetCertificateMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetSslProxiesConnection::SetCertificateMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TargetSslProxiesConnection::SetProxyHeader( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -96,6 +168,24 @@ TargetSslProxiesConnection::SetProxyHeader( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetSslProxiesConnection::SetProxyHeader( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetProxyHeaderRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetSslProxiesConnection::SetProxyHeader( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TargetSslProxiesConnection::SetSslCertificates( google::cloud::cpp::compute::target_ssl_proxies::v1:: @@ -105,10 +195,46 @@ TargetSslProxiesConnection::SetSslCertificates( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetSslProxiesConnection::SetSslCertificates( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetSslCertificatesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +TargetSslProxiesConnection::SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetSslProxiesConnection::SetSslPolicy( + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetSslPolicyRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr TargetSslProxiesConnection::SetSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetSslProxiesConnection::SetSslPolicy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection.h b/google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection.h index bba723d16dbdf..dbf061994c5e9 100644 --- a/google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection.h +++ b/google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_retry_traits.h" #include "google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -190,6 +192,17 @@ class TargetSslProxiesConnection { DeleteTargetSslProxy(google::cloud::cpp::compute::target_ssl_proxies::v1:: DeleteTargetSslProxyRequest const& request); + virtual StatusOr + DeleteTargetSslProxy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + DeleteTargetSslProxyRequest const& request); + + virtual future> + DeleteTargetSslProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetTargetSslProxy(google::cloud::cpp::compute::target_ssl_proxies::v1:: GetTargetSslProxyRequest const& request); @@ -198,6 +211,17 @@ class TargetSslProxiesConnection { InsertTargetSslProxy(google::cloud::cpp::compute::target_ssl_proxies::v1:: InsertTargetSslProxyRequest const& request); + virtual StatusOr + InsertTargetSslProxy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + InsertTargetSslProxyRequest const& request); + + virtual future> + InsertTargetSslProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListTargetSslProxies(google::cloud::cpp::compute::target_ssl_proxies::v1:: ListTargetSslProxiesRequest request); @@ -206,21 +230,69 @@ class TargetSslProxiesConnection { SetBackendService(google::cloud::cpp::compute::target_ssl_proxies::v1:: SetBackendServiceRequest const& request); + virtual StatusOr + SetBackendService(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetBackendServiceRequest const& request); + + virtual future> + SetBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetCertificateMap(google::cloud::cpp::compute::target_ssl_proxies::v1:: SetCertificateMapRequest const& request); + virtual StatusOr + SetCertificateMap(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetCertificateMapRequest const& request); + + virtual future> + SetCertificateMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetProxyHeader(google::cloud::cpp::compute::target_ssl_proxies::v1:: SetProxyHeaderRequest const& request); + virtual StatusOr SetProxyHeader( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetProxyHeaderRequest const& request); + + virtual future> + SetProxyHeader(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetSslCertificates(google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslCertificatesRequest const& request); + virtual StatusOr + SetSslCertificates(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetSslCertificatesRequest const& request); + + virtual future> + SetSslCertificates( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetSslPolicy(google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslPolicyRequest const& request); + + virtual StatusOr SetSslPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_ssl_proxies::v1:: + SetSslPolicyRequest const& request); + + virtual future> + SetSslPolicy(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_rest_connection_impl.cc b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_rest_connection_impl.cc index 9b24e06e401f2..411ce91a9a93f 100644 --- a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_rest_connection_impl.cc +++ b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -145,6 +146,77 @@ TargetTcpProxiesRestConnectionImpl::DeleteTargetTcpProxy( }); } +StatusOr +TargetTcpProxiesRestConnectionImpl::DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + DeleteTargetTcpProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTargetTcpProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + DeleteTargetTcpProxyRequest const& request) { + return stub_->DeleteTargetTcpProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetTcpProxiesRestConnectionImpl::DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr TargetTcpProxiesRestConnectionImpl::GetTargetTcpProxy( google::cloud::cpp::compute::target_tcp_proxies::v1:: @@ -219,6 +291,77 @@ TargetTcpProxiesRestConnectionImpl::InsertTargetTcpProxy( }); } +StatusOr +TargetTcpProxiesRestConnectionImpl::InsertTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + InsertTargetTcpProxyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertTargetTcpProxy(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + InsertTargetTcpProxyRequest const& request) { + return stub_->InsertTargetTcpProxy(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetTcpProxiesRestConnectionImpl::InsertTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange TargetTcpProxiesRestConnectionImpl::ListTargetTcpProxies( google::cloud::cpp::compute::target_tcp_proxies::v1:: @@ -316,6 +459,77 @@ TargetTcpProxiesRestConnectionImpl::SetBackendService( }); } +StatusOr +TargetTcpProxiesRestConnectionImpl::SetBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + SetBackendServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetBackendService(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + SetBackendServiceRequest const& request) { + return stub_->SetBackendService(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetTcpProxiesRestConnectionImpl::SetBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> TargetTcpProxiesRestConnectionImpl::SetProxyHeader( google::cloud::cpp::compute::target_tcp_proxies::v1:: @@ -374,6 +588,77 @@ TargetTcpProxiesRestConnectionImpl::SetProxyHeader( }); } +StatusOr +TargetTcpProxiesRestConnectionImpl::SetProxyHeader( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + SetProxyHeaderRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetProxyHeader(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + SetProxyHeaderRequest const& request) { + return stub_->SetProxyHeader(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetTcpProxiesRestConnectionImpl::SetProxyHeader( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_target_tcp_proxies_v1_internal } // namespace cloud diff --git a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_rest_connection_impl.h b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_rest_connection_impl.h index 4d39b29ba8fe5..6513a83b7ca49 100644 --- a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_rest_connection_impl.h +++ b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_rest_connection_impl.h @@ -62,6 +62,16 @@ class TargetTcpProxiesRestConnectionImpl DeleteTargetTcpProxy(google::cloud::cpp::compute::target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const& request) override; + StatusOr DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + DeleteTargetTcpProxyRequest const& request) override; + + future> + DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetTcpProxy( google::cloud::cpp::compute::target_tcp_proxies::v1:: GetTargetTcpProxyRequest const& request) override; @@ -70,6 +80,16 @@ class TargetTcpProxiesRestConnectionImpl InsertTargetTcpProxy(google::cloud::cpp::compute::target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const& request) override; + StatusOr InsertTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + InsertTargetTcpProxyRequest const& request) override; + + future> + InsertTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListTargetTcpProxies(google::cloud::cpp::compute::target_tcp_proxies::v1:: ListTargetTcpProxiesRequest request) override; @@ -78,10 +98,29 @@ class TargetTcpProxiesRestConnectionImpl SetBackendService(google::cloud::cpp::compute::target_tcp_proxies::v1:: SetBackendServiceRequest const& request) override; + StatusOr SetBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + SetBackendServiceRequest const& request) override; + + future> + SetBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetProxyHeader( google::cloud::cpp::compute::target_tcp_proxies::v1:: SetProxyHeaderRequest const& request) override; + StatusOr SetProxyHeader( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + SetProxyHeaderRequest const& request) override; + + future> SetProxyHeader( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_target_tcp_proxies_v1::TargetTcpProxiesRetryPolicy> diff --git a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.cc b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.cc index 4ffe19286418d..551d4acfc3025 100644 --- a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.cc +++ b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.cc @@ -62,6 +62,33 @@ TargetTcpProxiesTracingConnection::DeleteTargetTcpProxy( child_->DeleteTargetTcpProxy(request)); } +StatusOr +TargetTcpProxiesTracingConnection::DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + DeleteTargetTcpProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" + "DeleteTargetTcpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteTargetTcpProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetTcpProxiesTracingConnection::DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" + "DeleteTargetTcpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteTargetTcpProxy( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TargetTcpProxiesTracingConnection::GetTargetTcpProxy( google::cloud::cpp::compute::target_tcp_proxies::v1:: @@ -85,6 +112,33 @@ TargetTcpProxiesTracingConnection::InsertTargetTcpProxy( child_->InsertTargetTcpProxy(request)); } +StatusOr +TargetTcpProxiesTracingConnection::InsertTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + InsertTargetTcpProxyRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" + "InsertTargetTcpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertTargetTcpProxy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetTcpProxiesTracingConnection::InsertTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" + "InsertTargetTcpProxy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertTargetTcpProxy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange TargetTcpProxiesTracingConnection::ListTargetTcpProxies( google::cloud::cpp::compute::target_tcp_proxies::v1:: @@ -110,6 +164,33 @@ TargetTcpProxiesTracingConnection::SetBackendService( return internal::EndSpan(std::move(span), child_->SetBackendService(request)); } +StatusOr +TargetTcpProxiesTracingConnection::SetBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + SetBackendServiceRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" + "SetBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetBackendService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetTcpProxiesTracingConnection::SetBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" + "SetBackendService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetBackendService(google::cloud::ExperimentalTag{}, operation)); +} + future> TargetTcpProxiesTracingConnection::SetProxyHeader( google::cloud::cpp::compute::target_tcp_proxies::v1:: @@ -121,6 +202,33 @@ TargetTcpProxiesTracingConnection::SetProxyHeader( return internal::EndSpan(std::move(span), child_->SetProxyHeader(request)); } +StatusOr +TargetTcpProxiesTracingConnection::SetProxyHeader( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + SetProxyHeaderRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" + "SetProxyHeader"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetProxyHeader(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetTcpProxiesTracingConnection::SetProxyHeader( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" + "SetProxyHeader"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetProxyHeader(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.h b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.h index 57083b895ab10..edca94792512f 100644 --- a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.h +++ b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.h @@ -51,6 +51,16 @@ class TargetTcpProxiesTracingConnection DeleteTargetTcpProxy(google::cloud::cpp::compute::target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const& request) override; + StatusOr DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + DeleteTargetTcpProxyRequest const& request) override; + + future> + DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetTcpProxy( google::cloud::cpp::compute::target_tcp_proxies::v1:: GetTargetTcpProxyRequest const& request) override; @@ -59,6 +69,16 @@ class TargetTcpProxiesTracingConnection InsertTargetTcpProxy(google::cloud::cpp::compute::target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const& request) override; + StatusOr InsertTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + InsertTargetTcpProxyRequest const& request) override; + + future> + InsertTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListTargetTcpProxies(google::cloud::cpp::compute::target_tcp_proxies::v1:: ListTargetTcpProxiesRequest request) override; @@ -67,10 +87,29 @@ class TargetTcpProxiesTracingConnection SetBackendService(google::cloud::cpp::compute::target_tcp_proxies::v1:: SetBackendServiceRequest const& request) override; + StatusOr SetBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + SetBackendServiceRequest const& request) override; + + future> + SetBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> SetProxyHeader( google::cloud::cpp::compute::target_tcp_proxies::v1:: SetProxyHeaderRequest const& request) override; + StatusOr SetProxyHeader( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + SetProxyHeaderRequest const& request) override; + + future> SetProxyHeader( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/target_tcp_proxies/v1/mocks/mock_target_tcp_proxies_connection.h b/google/cloud/compute/target_tcp_proxies/v1/mocks/mock_target_tcp_proxies_connection.h index 50cd4c080c440..a5f9f04ca336a 100644 --- a/google/cloud/compute/target_tcp_proxies/v1/mocks/mock_target_tcp_proxies_connection.h +++ b/google/cloud/compute/target_tcp_proxies/v1/mocks/mock_target_tcp_proxies_connection.h @@ -61,6 +61,19 @@ class MockTargetTcpProxiesConnection DeleteTargetTcpProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteTargetTcpProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + DeleteTargetTcpProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteTargetTcpProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetTargetTcpProxy, (google::cloud::cpp::compute::target_tcp_proxies::v1:: @@ -73,6 +86,19 @@ class MockTargetTcpProxiesConnection InsertTargetTcpProxyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertTargetTcpProxy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + InsertTargetTcpProxyRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertTargetTcpProxy, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListTargetTcpProxies, (google::cloud::cpp::compute::target_tcp_proxies::v1:: @@ -85,11 +111,37 @@ class MockTargetTcpProxiesConnection SetBackendServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, + SetBackendService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + SetBackendServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetBackendService, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetProxyHeader, (google::cloud::cpp::compute::target_tcp_proxies::v1:: SetProxyHeaderRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + SetProxyHeader, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + SetProxyHeaderRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetProxyHeader, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection.cc b/google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection.cc index c27f64c50ba94..46c393c8dfded 100644 --- a/google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection.cc +++ b/google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection.cc @@ -55,6 +55,24 @@ TargetTcpProxiesConnection::DeleteTargetTcpProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetTcpProxiesConnection::DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + DeleteTargetTcpProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetTcpProxiesConnection::DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TargetTcpProxiesConnection::GetTargetTcpProxy( google::cloud::cpp::compute::target_tcp_proxies::v1:: @@ -71,6 +89,24 @@ TargetTcpProxiesConnection::InsertTargetTcpProxy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetTcpProxiesConnection::InsertTargetTcpProxy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + InsertTargetTcpProxyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetTcpProxiesConnection::InsertTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange TargetTcpProxiesConnection::ListTargetTcpProxies( google::cloud::cpp::compute::target_tcp_proxies::v1:: @@ -88,6 +124,24 @@ TargetTcpProxiesConnection::SetBackendService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetTcpProxiesConnection::SetBackendService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + SetBackendServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetTcpProxiesConnection::SetBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TargetTcpProxiesConnection::SetProxyHeader( google::cloud::cpp::compute::target_tcp_proxies::v1:: @@ -97,6 +151,24 @@ TargetTcpProxiesConnection::SetProxyHeader( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetTcpProxiesConnection::SetProxyHeader( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + SetProxyHeaderRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetTcpProxiesConnection::SetProxyHeader( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_target_tcp_proxies_v1 } // namespace cloud diff --git a/google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection.h b/google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection.h index c0a362b985cc7..e1d68583775f9 100644 --- a/google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection.h +++ b/google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_retry_traits.h" #include "google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -196,6 +198,17 @@ class TargetTcpProxiesConnection { DeleteTargetTcpProxy(google::cloud::cpp::compute::target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const& request); + virtual StatusOr + DeleteTargetTcpProxy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + DeleteTargetTcpProxyRequest const& request); + + virtual future> + DeleteTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetTargetTcpProxy(google::cloud::cpp::compute::target_tcp_proxies::v1:: GetTargetTcpProxyRequest const& request); @@ -204,6 +217,17 @@ class TargetTcpProxiesConnection { InsertTargetTcpProxy(google::cloud::cpp::compute::target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const& request); + virtual StatusOr + InsertTargetTcpProxy(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + InsertTargetTcpProxyRequest const& request); + + virtual future> + InsertTargetTcpProxy( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListTargetTcpProxies(google::cloud::cpp::compute::target_tcp_proxies::v1:: ListTargetTcpProxiesRequest request); @@ -212,9 +236,28 @@ class TargetTcpProxiesConnection { SetBackendService(google::cloud::cpp::compute::target_tcp_proxies::v1:: SetBackendServiceRequest const& request); + virtual StatusOr + SetBackendService(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + SetBackendServiceRequest const& request); + + virtual future> + SetBackendService( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> SetProxyHeader(google::cloud::cpp::compute::target_tcp_proxies::v1:: SetProxyHeaderRequest const& request); + + virtual StatusOr SetProxyHeader( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_tcp_proxies::v1:: + SetProxyHeaderRequest const& request); + + virtual future> + SetProxyHeader(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_rest_connection_impl.cc b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_rest_connection_impl.cc index be6e1cd0f847a..bc504cbe684aa 100644 --- a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_rest_connection_impl.cc +++ b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -147,6 +148,79 @@ TargetVpnGatewaysRestConnectionImpl::DeleteTargetVpnGateway( }); } +StatusOr +TargetVpnGatewaysRestConnectionImpl::DeleteTargetVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + DeleteTargetVpnGatewayRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTargetVpnGateway(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + DeleteTargetVpnGatewayRequest const& request) { + return stub_->DeleteTargetVpnGateway(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetVpnGatewaysRestConnectionImpl::DeleteTargetVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr TargetVpnGatewaysRestConnectionImpl::GetTargetVpnGateway( google::cloud::cpp::compute::target_vpn_gateways::v1:: @@ -223,6 +297,79 @@ TargetVpnGatewaysRestConnectionImpl::InsertTargetVpnGateway( }); } +StatusOr +TargetVpnGatewaysRestConnectionImpl::InsertTargetVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + InsertTargetVpnGatewayRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertTargetVpnGateway(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + InsertTargetVpnGatewayRequest const& request) { + return stub_->InsertTargetVpnGateway(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetVpnGatewaysRestConnectionImpl::InsertTargetVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange TargetVpnGatewaysRestConnectionImpl::ListTargetVpnGateways( google::cloud::cpp::compute::target_vpn_gateways::v1:: @@ -323,6 +470,79 @@ TargetVpnGatewaysRestConnectionImpl::SetLabels( }); } +StatusOr +TargetVpnGatewaysRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + SetLabelsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + SetLabelsRequest const& request) { + return stub_->SetLabels(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +TargetVpnGatewaysRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_target_vpn_gateways_v1_internal } // namespace cloud diff --git a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_rest_connection_impl.h b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_rest_connection_impl.h index e3b57eb28c587..d18cb4855de14 100644 --- a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_rest_connection_impl.h +++ b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_rest_connection_impl.h @@ -64,6 +64,16 @@ class TargetVpnGatewaysRestConnectionImpl google::cloud::cpp::compute::target_vpn_gateways::v1:: DeleteTargetVpnGatewayRequest const& request) override; + StatusOr DeleteTargetVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + DeleteTargetVpnGatewayRequest const& request) override; + + future> + DeleteTargetVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetVpnGateway(google::cloud::cpp::compute::target_vpn_gateways::v1:: GetTargetVpnGatewayRequest const& request) override; @@ -73,6 +83,16 @@ class TargetVpnGatewaysRestConnectionImpl google::cloud::cpp::compute::target_vpn_gateways::v1:: InsertTargetVpnGatewayRequest const& request) override; + StatusOr InsertTargetVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + InsertTargetVpnGatewayRequest const& request) override; + + future> + InsertTargetVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListTargetVpnGateways(google::cloud::cpp::compute::target_vpn_gateways::v1:: ListTargetVpnGatewaysRequest request) override; @@ -81,6 +101,15 @@ class TargetVpnGatewaysRestConnectionImpl google::cloud::cpp::compute::target_vpn_gateways::v1:: SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + SetLabelsRequest const& request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr< compute_target_vpn_gateways_v1::TargetVpnGatewaysRetryPolicy> diff --git a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.cc b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.cc index 0698f5ce75e58..02170fa793d2a 100644 --- a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.cc +++ b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.cc @@ -62,6 +62,33 @@ TargetVpnGatewaysTracingConnection::DeleteTargetVpnGateway( child_->DeleteTargetVpnGateway(request)); } +StatusOr +TargetVpnGatewaysTracingConnection::DeleteTargetVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + DeleteTargetVpnGatewayRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_vpn_gateways_v1::TargetVpnGatewaysConnection::" + "DeleteTargetVpnGateway"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteTargetVpnGateway( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetVpnGatewaysTracingConnection::DeleteTargetVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_vpn_gateways_v1::TargetVpnGatewaysConnection::" + "DeleteTargetVpnGateway"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteTargetVpnGateway( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TargetVpnGatewaysTracingConnection::GetTargetVpnGateway( google::cloud::cpp::compute::target_vpn_gateways::v1:: @@ -85,6 +112,33 @@ TargetVpnGatewaysTracingConnection::InsertTargetVpnGateway( child_->InsertTargetVpnGateway(request)); } +StatusOr +TargetVpnGatewaysTracingConnection::InsertTargetVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + InsertTargetVpnGatewayRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_vpn_gateways_v1::TargetVpnGatewaysConnection::" + "InsertTargetVpnGateway"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InsertTargetVpnGateway( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetVpnGatewaysTracingConnection::InsertTargetVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_vpn_gateways_v1::TargetVpnGatewaysConnection::" + "InsertTargetVpnGateway"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InsertTargetVpnGateway( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange TargetVpnGatewaysTracingConnection::ListTargetVpnGateways( google::cloud::cpp::compute::target_vpn_gateways::v1:: @@ -109,6 +163,31 @@ TargetVpnGatewaysTracingConnection::SetLabels( return internal::EndSpan(std::move(span), child_->SetLabels(request)); } +StatusOr +TargetVpnGatewaysTracingConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + SetLabelsRequest const& request) { + auto span = internal::MakeSpan( + "compute_target_vpn_gateways_v1::TargetVpnGatewaysConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TargetVpnGatewaysTracingConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_target_vpn_gateways_v1::TargetVpnGatewaysConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.h b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.h index 2944e2b65d91a..844bee84bace6 100644 --- a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.h +++ b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.h @@ -54,6 +54,16 @@ class TargetVpnGatewaysTracingConnection google::cloud::cpp::compute::target_vpn_gateways::v1:: DeleteTargetVpnGatewayRequest const& request) override; + StatusOr DeleteTargetVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + DeleteTargetVpnGatewayRequest const& request) override; + + future> + DeleteTargetVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetTargetVpnGateway(google::cloud::cpp::compute::target_vpn_gateways::v1:: GetTargetVpnGatewayRequest const& request) override; @@ -63,6 +73,16 @@ class TargetVpnGatewaysTracingConnection google::cloud::cpp::compute::target_vpn_gateways::v1:: InsertTargetVpnGatewayRequest const& request) override; + StatusOr InsertTargetVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + InsertTargetVpnGatewayRequest const& request) override; + + future> + InsertTargetVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListTargetVpnGateways(google::cloud::cpp::compute::target_vpn_gateways::v1:: ListTargetVpnGatewaysRequest request) override; @@ -71,6 +91,15 @@ class TargetVpnGatewaysTracingConnection google::cloud::cpp::compute::target_vpn_gateways::v1:: SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + SetLabelsRequest const& request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/compute/target_vpn_gateways/v1/mocks/mock_target_vpn_gateways_connection.h b/google/cloud/compute/target_vpn_gateways/v1/mocks/mock_target_vpn_gateways_connection.h index 2edd82a86fd6f..486a688f02da0 100644 --- a/google/cloud/compute/target_vpn_gateways/v1/mocks/mock_target_vpn_gateways_connection.h +++ b/google/cloud/compute/target_vpn_gateways/v1/mocks/mock_target_vpn_gateways_connection.h @@ -61,6 +61,19 @@ class MockTargetVpnGatewaysConnection DeleteTargetVpnGatewayRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteTargetVpnGateway, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + DeleteTargetVpnGatewayRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteTargetVpnGateway, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetTargetVpnGateway, (google::cloud::cpp::compute::target_vpn_gateways::v1:: @@ -73,6 +86,19 @@ class MockTargetVpnGatewaysConnection InsertTargetVpnGatewayRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertTargetVpnGateway, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + InsertTargetVpnGatewayRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertTargetVpnGateway, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListTargetVpnGateways, (google::cloud::cpp::compute::target_vpn_gateways::v1:: @@ -84,6 +110,18 @@ class MockTargetVpnGatewaysConnection (google::cloud::cpp::compute::target_vpn_gateways::v1:: SetLabelsRequest const& request), (override)); + + MOCK_METHOD(StatusOr, SetLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + SetLabelsRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetLabels, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection.cc b/google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection.cc index 08422c5b76ccd..172cec08a34f1 100644 --- a/google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection.cc +++ b/google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection.cc @@ -55,6 +55,24 @@ TargetVpnGatewaysConnection::DeleteTargetVpnGateway( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetVpnGatewaysConnection::DeleteTargetVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + DeleteTargetVpnGatewayRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetVpnGatewaysConnection::DeleteTargetVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TargetVpnGatewaysConnection::GetTargetVpnGateway( google::cloud::cpp::compute::target_vpn_gateways::v1:: @@ -71,6 +89,24 @@ TargetVpnGatewaysConnection::InsertTargetVpnGateway( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetVpnGatewaysConnection::InsertTargetVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + InsertTargetVpnGatewayRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetVpnGatewaysConnection::InsertTargetVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange TargetVpnGatewaysConnection::ListTargetVpnGateways( google::cloud::cpp::compute::target_vpn_gateways::v1:: @@ -88,6 +124,24 @@ TargetVpnGatewaysConnection::SetLabels( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TargetVpnGatewaysConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + SetLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TargetVpnGatewaysConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_target_vpn_gateways_v1 } // namespace cloud diff --git a/google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection.h b/google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection.h index 8c647c895e040..600255bd61cc7 100644 --- a/google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection.h +++ b/google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_retry_traits.h" #include "google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -197,6 +199,17 @@ class TargetVpnGatewaysConnection { DeleteTargetVpnGateway(google::cloud::cpp::compute::target_vpn_gateways::v1:: DeleteTargetVpnGatewayRequest const& request); + virtual StatusOr + DeleteTargetVpnGateway(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + DeleteTargetVpnGatewayRequest const& request); + + virtual future> + DeleteTargetVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetTargetVpnGateway(google::cloud::cpp::compute::target_vpn_gateways::v1:: GetTargetVpnGatewayRequest const& request); @@ -205,6 +218,17 @@ class TargetVpnGatewaysConnection { InsertTargetVpnGateway(google::cloud::cpp::compute::target_vpn_gateways::v1:: InsertTargetVpnGatewayRequest const& request); + virtual StatusOr + InsertTargetVpnGateway(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + InsertTargetVpnGatewayRequest const& request); + + virtual future> + InsertTargetVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListTargetVpnGateways(google::cloud::cpp::compute::target_vpn_gateways::v1:: ListTargetVpnGatewaysRequest request); @@ -212,6 +236,15 @@ class TargetVpnGatewaysConnection { virtual future> SetLabels(google::cloud::cpp::compute::target_vpn_gateways::v1:: SetLabelsRequest const& request); + + virtual StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::target_vpn_gateways::v1:: + SetLabelsRequest const& request); + + virtual future> + SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/url_maps/v1/internal/url_maps_rest_connection_impl.cc b/google/cloud/compute/url_maps/v1/internal/url_maps_rest_connection_impl.cc index 870cbf3ccfe3b..36b659df29d8b 100644 --- a/google/cloud/compute/url_maps/v1/internal/url_maps_rest_connection_impl.cc +++ b/google/cloud/compute/url_maps/v1/internal/url_maps_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -141,6 +142,78 @@ UrlMapsRestConnectionImpl::DeleteUrlMap( }); } +StatusOr +UrlMapsRestConnectionImpl::DeleteUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteUrlMap(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const& + request) { + return stub_->DeleteUrlMap(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +UrlMapsRestConnectionImpl::DeleteUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr UrlMapsRestConnectionImpl::GetUrlMap( google::cloud::cpp::compute::url_maps::v1::GetUrlMapRequest const& @@ -216,6 +289,78 @@ UrlMapsRestConnectionImpl::InsertUrlMap( }); } +StatusOr +UrlMapsRestConnectionImpl::InsertUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertUrlMap(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const& + request) { + return stub_->InsertUrlMap(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +UrlMapsRestConnectionImpl::InsertUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> UrlMapsRestConnectionImpl::InvalidateCache( google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& @@ -274,6 +419,77 @@ UrlMapsRestConnectionImpl::InvalidateCache( }); } +StatusOr +UrlMapsRestConnectionImpl::InvalidateCache( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InvalidateCache(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::url_maps::v1:: + InvalidateCacheRequest const& request) { + return stub_->InvalidateCache(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +UrlMapsRestConnectionImpl::InvalidateCache( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StreamRange UrlMapsRestConnectionImpl::ListUrlMaps( google::cloud::cpp::compute::url_maps::v1::ListUrlMapsRequest request) { @@ -369,6 +585,78 @@ UrlMapsRestConnectionImpl::PatchUrlMap( }); } +StatusOr +UrlMapsRestConnectionImpl::PatchUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PatchUrlMap(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const& + request) { + return stub_->PatchUrlMap(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +UrlMapsRestConnectionImpl::PatchUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + future> UrlMapsRestConnectionImpl::UpdateUrlMap( google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& @@ -428,6 +716,78 @@ UrlMapsRestConnectionImpl::UpdateUrlMap( }); } +StatusOr +UrlMapsRestConnectionImpl::UpdateUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateUrlMap(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& + request) { + return stub_->UpdateUrlMap(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +UrlMapsRestConnectionImpl::UpdateUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::global_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::global_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_operation(info.operation); + }); +} + StatusOr UrlMapsRestConnectionImpl::Validate( google::cloud::cpp::compute::url_maps::v1::ValidateRequest const& request) { diff --git a/google/cloud/compute/url_maps/v1/internal/url_maps_rest_connection_impl.h b/google/cloud/compute/url_maps/v1/internal/url_maps_rest_connection_impl.h index 26d1e5538de0f..a9341cbd51db7 100644 --- a/google/cloud/compute/url_maps/v1/internal/url_maps_rest_connection_impl.h +++ b/google/cloud/compute/url_maps/v1/internal/url_maps_rest_connection_impl.h @@ -60,6 +60,15 @@ class UrlMapsRestConnectionImpl google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const& request) override; + StatusOr DeleteUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const& + request) override; + + future> DeleteUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetUrlMap( google::cloud::cpp::compute::url_maps::v1::GetUrlMapRequest const& request) override; @@ -68,10 +77,28 @@ class UrlMapsRestConnectionImpl google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const& request) override; + StatusOr InsertUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const& + request) override; + + future> InsertUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> InvalidateCache( google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& request) override; + StatusOr InvalidateCache( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& + request) override; + + future> InvalidateCache( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListUrlMaps( google::cloud::cpp::compute::url_maps::v1::ListUrlMapsRequest request) override; @@ -80,10 +107,28 @@ class UrlMapsRestConnectionImpl google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const& request) override; + StatusOr PatchUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const& + request) override; + + future> PatchUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateUrlMap( google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& request) override; + StatusOr UpdateUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& + request) override; + + future> UpdateUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr Validate( google::cloud::cpp::compute::url_maps::v1::ValidateRequest const& request) override; diff --git a/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.cc b/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.cc index ab641848176a7..5a857139afa9e 100644 --- a/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.cc +++ b/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.cc @@ -57,6 +57,31 @@ UrlMapsTracingConnection::DeleteUrlMap( return internal::EndSpan(std::move(span), child_->DeleteUrlMap(request)); } +StatusOr +UrlMapsTracingConnection::DeleteUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const& + request) { + auto span = internal::MakeSpan( + "compute_url_maps_v1::UrlMapsConnection::DeleteUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteUrlMap(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +UrlMapsTracingConnection::DeleteUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_url_maps_v1::UrlMapsConnection::DeleteUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteUrlMap(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr UrlMapsTracingConnection::GetUrlMap( google::cloud::cpp::compute::url_maps::v1::GetUrlMapRequest const& @@ -77,6 +102,31 @@ UrlMapsTracingConnection::InsertUrlMap( return internal::EndSpan(std::move(span), child_->InsertUrlMap(request)); } +StatusOr +UrlMapsTracingConnection::InsertUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const& + request) { + auto span = internal::MakeSpan( + "compute_url_maps_v1::UrlMapsConnection::InsertUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertUrlMap(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +UrlMapsTracingConnection::InsertUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_url_maps_v1::UrlMapsConnection::InsertUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertUrlMap(google::cloud::ExperimentalTag{}, operation)); +} + future> UrlMapsTracingConnection::InvalidateCache( google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& @@ -87,6 +137,31 @@ UrlMapsTracingConnection::InvalidateCache( return internal::EndSpan(std::move(span), child_->InvalidateCache(request)); } +StatusOr +UrlMapsTracingConnection::InvalidateCache( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& + request) { + auto span = internal::MakeSpan( + "compute_url_maps_v1::UrlMapsConnection::InvalidateCache"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InvalidateCache(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +UrlMapsTracingConnection::InvalidateCache( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_url_maps_v1::UrlMapsConnection::InvalidateCache"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InvalidateCache(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange UrlMapsTracingConnection::ListUrlMaps( google::cloud::cpp::compute::url_maps::v1::ListUrlMapsRequest request) { @@ -108,6 +183,31 @@ UrlMapsTracingConnection::PatchUrlMap( return internal::EndSpan(std::move(span), child_->PatchUrlMap(request)); } +StatusOr +UrlMapsTracingConnection::PatchUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const& + request) { + auto span = + internal::MakeSpan("compute_url_maps_v1::UrlMapsConnection::PatchUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PatchUrlMap(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +UrlMapsTracingConnection::PatchUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = + internal::MakeSpan("compute_url_maps_v1::UrlMapsConnection::PatchUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PatchUrlMap(google::cloud::ExperimentalTag{}, operation)); +} + future> UrlMapsTracingConnection::UpdateUrlMap( google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& @@ -118,6 +218,31 @@ UrlMapsTracingConnection::UpdateUrlMap( return internal::EndSpan(std::move(span), child_->UpdateUrlMap(request)); } +StatusOr +UrlMapsTracingConnection::UpdateUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& + request) { + auto span = internal::MakeSpan( + "compute_url_maps_v1::UrlMapsConnection::UpdateUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateUrlMap(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +UrlMapsTracingConnection::UpdateUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_url_maps_v1::UrlMapsConnection::UpdateUrlMap"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateUrlMap(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr UrlMapsTracingConnection::Validate( google::cloud::cpp::compute::url_maps::v1::ValidateRequest const& request) { diff --git a/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.h b/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.h index aefbc92a7aada..80ee8edb31688 100644 --- a/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.h +++ b/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.h @@ -49,6 +49,15 @@ class UrlMapsTracingConnection : public compute_url_maps_v1::UrlMapsConnection { google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const& request) override; + StatusOr DeleteUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const& + request) override; + + future> DeleteUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetUrlMap( google::cloud::cpp::compute::url_maps::v1::GetUrlMapRequest const& request) override; @@ -57,10 +66,28 @@ class UrlMapsTracingConnection : public compute_url_maps_v1::UrlMapsConnection { google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const& request) override; + StatusOr InsertUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const& + request) override; + + future> InsertUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> InvalidateCache( google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& request) override; + StatusOr InvalidateCache( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& + request) override; + + future> InvalidateCache( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListUrlMaps( google::cloud::cpp::compute::url_maps::v1::ListUrlMapsRequest request) override; @@ -69,10 +96,28 @@ class UrlMapsTracingConnection : public compute_url_maps_v1::UrlMapsConnection { google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const& request) override; + StatusOr PatchUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const& + request) override; + + future> PatchUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + future> UpdateUrlMap( google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& request) override; + StatusOr UpdateUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& + request) override; + + future> UpdateUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr Validate( google::cloud::cpp::compute::url_maps::v1::ValidateRequest const& request) override; diff --git a/google/cloud/compute/url_maps/v1/mocks/mock_url_maps_connection.h b/google/cloud/compute/url_maps/v1/mocks/mock_url_maps_connection.h index 9f0762067bd27..c4aa097b31c4f 100644 --- a/google/cloud/compute/url_maps/v1/mocks/mock_url_maps_connection.h +++ b/google/cloud/compute/url_maps/v1/mocks/mock_url_maps_connection.h @@ -61,6 +61,19 @@ class MockUrlMapsConnection : public compute_url_maps_v1::UrlMapsConnection { request), (override)); + MOCK_METHOD( + StatusOr, DeleteUrlMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteUrlMap, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetUrlMap, (google::cloud::cpp::compute::url_maps::v1::GetUrlMapRequest const& @@ -74,6 +87,19 @@ class MockUrlMapsConnection : public compute_url_maps_v1::UrlMapsConnection { request), (override)); + MOCK_METHOD( + StatusOr, InsertUrlMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const& + request), + (override)); + + MOCK_METHOD(future>, + InsertUrlMap, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, InvalidateCache, @@ -81,6 +107,19 @@ class MockUrlMapsConnection : public compute_url_maps_v1::UrlMapsConnection { request), (override)); + MOCK_METHOD( + StatusOr, InvalidateCache, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& + request), + (override)); + + MOCK_METHOD(future>, + InvalidateCache, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListUrlMaps, (google::cloud::cpp::compute::url_maps::v1::ListUrlMapsRequest request), @@ -92,6 +131,19 @@ class MockUrlMapsConnection : public compute_url_maps_v1::UrlMapsConnection { request), (override)); + MOCK_METHOD( + StatusOr, PatchUrlMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const& + request), + (override)); + + MOCK_METHOD(future>, + PatchUrlMap, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateUrlMap, @@ -99,6 +151,19 @@ class MockUrlMapsConnection : public compute_url_maps_v1::UrlMapsConnection { request), (override)); + MOCK_METHOD( + StatusOr, UpdateUrlMap, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateUrlMap, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, Validate, diff --git a/google/cloud/compute/url_maps/v1/url_maps_connection.cc b/google/cloud/compute/url_maps/v1/url_maps_connection.cc index 0ce4fc39296eb..8cff7716123f1 100644 --- a/google/cloud/compute/url_maps/v1/url_maps_connection.cc +++ b/google/cloud/compute/url_maps/v1/url_maps_connection.cc @@ -54,6 +54,23 @@ UrlMapsConnection::DeleteUrlMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +UrlMapsConnection::DeleteUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +UrlMapsConnection::DeleteUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr UrlMapsConnection::GetUrlMap( google::cloud::cpp::compute::url_maps::v1::GetUrlMapRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -67,6 +84,23 @@ UrlMapsConnection::InsertUrlMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +UrlMapsConnection::InsertUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +UrlMapsConnection::InsertUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> UrlMapsConnection::InvalidateCache( google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const&) { @@ -75,6 +109,23 @@ UrlMapsConnection::InvalidateCache( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +UrlMapsConnection::InvalidateCache( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +UrlMapsConnection::InvalidateCache( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange UrlMapsConnection::ListUrlMaps( google::cloud::cpp::compute::url_maps::v1:: @@ -91,6 +142,23 @@ UrlMapsConnection::PatchUrlMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +UrlMapsConnection::PatchUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +UrlMapsConnection::PatchUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> UrlMapsConnection::UpdateUrlMap( google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const&) { @@ -99,6 +167,23 @@ UrlMapsConnection::UpdateUrlMap( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +UrlMapsConnection::UpdateUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +UrlMapsConnection::UpdateUrlMap( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr UrlMapsConnection::Validate( google::cloud::cpp::compute::url_maps::v1::ValidateRequest const&) { diff --git a/google/cloud/compute/url_maps/v1/url_maps_connection.h b/google/cloud/compute/url_maps/v1/url_maps_connection.h index e2f543001febf..323be9727022d 100644 --- a/google/cloud/compute/url_maps/v1/url_maps_connection.h +++ b/google/cloud/compute/url_maps/v1/url_maps_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/url_maps/v1/internal/url_maps_retry_traits.h" #include "google/cloud/compute/url_maps/v1/url_maps_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -192,6 +194,15 @@ class UrlMapsConnection { google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const& request); + virtual StatusOr DeleteUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const& + request); + + virtual future> + DeleteUrlMap(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetUrlMap( google::cloud::cpp::compute::url_maps::v1::GetUrlMapRequest const& request); @@ -201,11 +212,29 @@ class UrlMapsConnection { google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const& request); + virtual StatusOr InsertUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const& + request); + + virtual future> + InsertUrlMap(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> InvalidateCache( google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& request); + virtual StatusOr InvalidateCache( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& + request); + + virtual future> + InvalidateCache(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListUrlMaps( google::cloud::cpp::compute::url_maps::v1::ListUrlMapsRequest request); @@ -214,11 +243,29 @@ class UrlMapsConnection { google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const& request); + virtual StatusOr PatchUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const& + request); + + virtual future> + PatchUrlMap(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual future> UpdateUrlMap( google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& request); + virtual StatusOr UpdateUrlMap( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& + request); + + virtual future> + UpdateUrlMap(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr Validate(google::cloud::cpp::compute::url_maps::v1::ValidateRequest const& request); diff --git a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_rest_connection_impl.cc b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_rest_connection_impl.cc index 11e810c76b550..de80e0d616e48 100644 --- a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_rest_connection_impl.cc +++ b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -144,6 +145,79 @@ VpnGatewaysRestConnectionImpl::DeleteVpnGateway( }); } +StatusOr +VpnGatewaysRestConnectionImpl::DeleteVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1:: + DeleteVpnGatewayRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteVpnGateway(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::vpn_gateways::v1:: + DeleteVpnGatewayRequest const& request) { + return stub_->DeleteVpnGateway(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +VpnGatewaysRestConnectionImpl::DeleteVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr VpnGatewaysRestConnectionImpl::GetVpnGateway( google::cloud::cpp::compute::vpn_gateways::v1::GetVpnGatewayRequest const& @@ -237,6 +311,79 @@ VpnGatewaysRestConnectionImpl::InsertVpnGateway( }); } +StatusOr +VpnGatewaysRestConnectionImpl::InsertVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1:: + InsertVpnGatewayRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertVpnGateway(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::vpn_gateways::v1:: + InsertVpnGatewayRequest const& request) { + return stub_->InsertVpnGateway(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +VpnGatewaysRestConnectionImpl::InsertVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange VpnGatewaysRestConnectionImpl::ListVpnGateways( google::cloud::cpp::compute::vpn_gateways::v1::ListVpnGatewaysRequest @@ -334,6 +481,80 @@ VpnGatewaysRestConnectionImpl::SetLabels( }); } +StatusOr +VpnGatewaysRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const& + request) { + return stub_->SetLabels(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +VpnGatewaysRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr VpnGatewaysRestConnectionImpl::TestIamPermissions( google::cloud::cpp::compute::vpn_gateways::v1:: diff --git a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_rest_connection_impl.h b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_rest_connection_impl.h index b9245e5f9b499..ff49c1cf32a96 100644 --- a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_rest_connection_impl.h +++ b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_rest_connection_impl.h @@ -61,6 +61,15 @@ class VpnGatewaysRestConnectionImpl google::cloud::cpp::compute::vpn_gateways::v1:: DeleteVpnGatewayRequest const& request) override; + StatusOr DeleteVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1:: + DeleteVpnGatewayRequest const& request) override; + + future> DeleteVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetVpnGateway( google::cloud::cpp::compute::vpn_gateways::v1::GetVpnGatewayRequest const& request) override; @@ -74,6 +83,15 @@ class VpnGatewaysRestConnectionImpl google::cloud::cpp::compute::vpn_gateways::v1:: InsertVpnGatewayRequest const& request) override; + StatusOr InsertVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1:: + InsertVpnGatewayRequest const& request) override; + + future> InsertVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListVpnGateways( google::cloud::cpp::compute::vpn_gateways::v1::ListVpnGatewaysRequest request) override; @@ -82,6 +100,15 @@ class VpnGatewaysRestConnectionImpl google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::vpn_gateways::v1:: TestIamPermissionsRequest const& request) override; diff --git a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.cc b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.cc index 1af914061e8a8..082597a0fbaac 100644 --- a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.cc +++ b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.cc @@ -58,6 +58,31 @@ VpnGatewaysTracingConnection::DeleteVpnGateway( return internal::EndSpan(std::move(span), child_->DeleteVpnGateway(request)); } +StatusOr +VpnGatewaysTracingConnection::DeleteVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1:: + DeleteVpnGatewayRequest const& request) { + auto span = internal::MakeSpan( + "compute_vpn_gateways_v1::VpnGatewaysConnection::DeleteVpnGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteVpnGateway(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VpnGatewaysTracingConnection::DeleteVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_vpn_gateways_v1::VpnGatewaysConnection::DeleteVpnGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteVpnGateway(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr VpnGatewaysTracingConnection::GetVpnGateway( google::cloud::cpp::compute::vpn_gateways::v1::GetVpnGatewayRequest const& @@ -88,6 +113,31 @@ VpnGatewaysTracingConnection::InsertVpnGateway( return internal::EndSpan(std::move(span), child_->InsertVpnGateway(request)); } +StatusOr +VpnGatewaysTracingConnection::InsertVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1:: + InsertVpnGatewayRequest const& request) { + auto span = internal::MakeSpan( + "compute_vpn_gateways_v1::VpnGatewaysConnection::InsertVpnGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertVpnGateway(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VpnGatewaysTracingConnection::InsertVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_vpn_gateways_v1::VpnGatewaysConnection::InsertVpnGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertVpnGateway(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VpnGatewaysTracingConnection::ListVpnGateways( google::cloud::cpp::compute::vpn_gateways::v1::ListVpnGatewaysRequest @@ -111,6 +161,31 @@ VpnGatewaysTracingConnection::SetLabels( return internal::EndSpan(std::move(span), child_->SetLabels(request)); } +StatusOr +VpnGatewaysTracingConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const& + request) { + auto span = internal::MakeSpan( + "compute_vpn_gateways_v1::VpnGatewaysConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VpnGatewaysTracingConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_vpn_gateways_v1::VpnGatewaysConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr VpnGatewaysTracingConnection::TestIamPermissions( google::cloud::cpp::compute::vpn_gateways::v1:: diff --git a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.h b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.h index 9e20e438b4e55..59fde28412ae3 100644 --- a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.h +++ b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.h @@ -50,6 +50,15 @@ class VpnGatewaysTracingConnection google::cloud::cpp::compute::vpn_gateways::v1:: DeleteVpnGatewayRequest const& request) override; + StatusOr DeleteVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1:: + DeleteVpnGatewayRequest const& request) override; + + future> DeleteVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetVpnGateway( google::cloud::cpp::compute::vpn_gateways::v1::GetVpnGatewayRequest const& request) override; @@ -63,6 +72,15 @@ class VpnGatewaysTracingConnection google::cloud::cpp::compute::vpn_gateways::v1:: InsertVpnGatewayRequest const& request) override; + StatusOr InsertVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1:: + InsertVpnGatewayRequest const& request) override; + + future> InsertVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListVpnGateways( google::cloud::cpp::compute::vpn_gateways::v1::ListVpnGatewaysRequest request) override; @@ -71,6 +89,15 @@ class VpnGatewaysTracingConnection google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr TestIamPermissions(google::cloud::cpp::compute::vpn_gateways::v1:: TestIamPermissionsRequest const& request) override; diff --git a/google/cloud/compute/vpn_gateways/v1/mocks/mock_vpn_gateways_connection.h b/google/cloud/compute/vpn_gateways/v1/mocks/mock_vpn_gateways_connection.h index 8b00f607e77b8..b2d204b10b9d8 100644 --- a/google/cloud/compute/vpn_gateways/v1/mocks/mock_vpn_gateways_connection.h +++ b/google/cloud/compute/vpn_gateways/v1/mocks/mock_vpn_gateways_connection.h @@ -62,6 +62,19 @@ class MockVpnGatewaysConnection DeleteVpnGatewayRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteVpnGateway, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1:: + DeleteVpnGatewayRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteVpnGateway, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetVpnGateway, (google::cloud::cpp::compute::vpn_gateways::v1:: @@ -81,6 +94,19 @@ class MockVpnGatewaysConnection InsertVpnGatewayRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertVpnGateway, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1:: + InsertVpnGatewayRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertVpnGateway, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListVpnGateways, @@ -94,6 +120,19 @@ class MockVpnGatewaysConnection request), (override)); + MOCK_METHOD( + StatusOr, SetLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + SetLabels, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, TestIamPermissions, diff --git a/google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection.cc b/google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection.cc index 19a61db0fdd13..a6c4e17b35a1d 100644 --- a/google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection.cc +++ b/google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection.cc @@ -55,6 +55,24 @@ VpnGatewaysConnection::DeleteVpnGateway( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VpnGatewaysConnection::DeleteVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1:: + DeleteVpnGatewayRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VpnGatewaysConnection::DeleteVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr VpnGatewaysConnection::GetVpnGateway(google::cloud::cpp::compute::vpn_gateways:: v1::GetVpnGatewayRequest const&) { @@ -76,6 +94,24 @@ VpnGatewaysConnection::InsertVpnGateway( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VpnGatewaysConnection::InsertVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1:: + InsertVpnGatewayRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VpnGatewaysConnection::InsertVpnGateway( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VpnGatewaysConnection::ListVpnGateways( google::cloud::cpp::compute::vpn_gateways::v1:: @@ -92,6 +128,23 @@ VpnGatewaysConnection::SetLabels( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VpnGatewaysConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VpnGatewaysConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr VpnGatewaysConnection::TestIamPermissions( google::cloud::cpp::compute::vpn_gateways::v1:: diff --git a/google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection.h b/google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection.h index fc01ddb738687..ad6dbc9951ad2 100644 --- a/google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection.h +++ b/google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_retry_traits.h" #include "google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -192,6 +194,15 @@ class VpnGatewaysConnection { DeleteVpnGateway(google::cloud::cpp::compute::vpn_gateways::v1:: DeleteVpnGatewayRequest const& request); + virtual StatusOr DeleteVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1:: + DeleteVpnGatewayRequest const& request); + + virtual future> + DeleteVpnGateway(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetVpnGateway( google::cloud::cpp::compute::vpn_gateways::v1::GetVpnGatewayRequest const& request); @@ -206,6 +217,15 @@ class VpnGatewaysConnection { InsertVpnGateway(google::cloud::cpp::compute::vpn_gateways::v1:: InsertVpnGatewayRequest const& request); + virtual StatusOr InsertVpnGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1:: + InsertVpnGatewayRequest const& request); + + virtual future> + InsertVpnGateway(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListVpnGateways( google::cloud::cpp::compute::vpn_gateways::v1::ListVpnGatewaysRequest @@ -216,6 +236,15 @@ class VpnGatewaysConnection { google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const& request); + virtual StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const& + request); + + virtual future> + SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr TestIamPermissions(google::cloud::cpp::compute::vpn_gateways::v1:: TestIamPermissionsRequest const& request); diff --git a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_rest_connection_impl.cc b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_rest_connection_impl.cc index 30ed3c5ce4294..0c39b239b9480 100644 --- a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_rest_connection_impl.cc +++ b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_rest_connection_impl.cc @@ -23,6 +23,7 @@ #include "google/cloud/internal/async_rest_long_running_operation_custom.h" #include "google/cloud/internal/extract_long_running_result.h" #include "google/cloud/internal/pagination_range.h" +#include "google/cloud/internal/rest_lro_helpers.h" #include "google/cloud/internal/rest_retry_loop.h" #include "google/cloud/rest_options.h" #include @@ -143,6 +144,79 @@ VpnTunnelsRestConnectionImpl::DeleteVpnTunnel( }); } +StatusOr +VpnTunnelsRestConnectionImpl::DeleteVpnTunnel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1::DeleteVpnTunnelRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteVpnTunnel(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::vpn_tunnels::v1:: + DeleteVpnTunnelRequest const& request) { + return stub_->DeleteVpnTunnel(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +VpnTunnelsRestConnectionImpl::DeleteVpnTunnel( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StatusOr VpnTunnelsRestConnectionImpl::GetVpnTunnel( google::cloud::cpp::compute::vpn_tunnels::v1::GetVpnTunnelRequest const& @@ -219,6 +293,79 @@ VpnTunnelsRestConnectionImpl::InsertVpnTunnel( }); } +StatusOr +VpnTunnelsRestConnectionImpl::InsertVpnTunnel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1::InsertVpnTunnelRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InsertVpnTunnel(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::vpn_tunnels::v1:: + InsertVpnTunnelRequest const& request) { + return stub_->InsertVpnTunnel(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +VpnTunnelsRestConnectionImpl::InsertVpnTunnel( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + StreamRange VpnTunnelsRestConnectionImpl::ListVpnTunnels( google::cloud::cpp::compute::vpn_tunnels::v1::ListVpnTunnelsRequest @@ -316,6 +463,80 @@ VpnTunnelsRestConnectionImpl::SetLabels( }); } +StatusOr +VpnTunnelsRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetLabels(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& + request) { + return stub_->SetLabels(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +VpnTunnelsRestConnectionImpl::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::v1::Operation, + google::cloud::cpp::compute::region_operations::v1::GetOperationRequest, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + [](StatusOr op, + std::string const&) { return op; }, + polling_policy(*current), __func__, + [](google::cloud::cpp::compute::v1::Operation const& op) { + return op.status() == "DONE"; + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + GetOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }, + [operation](std::string const&, + google::cloud::cpp::compute::region_operations::v1:: + DeleteOperationRequest& r) { + auto info = google::cloud::rest_internal::ParseComputeOperationInfo( + operation.self_link()); + + r.set_project(info.project); + r.set_region(info.region); + r.set_operation(info.operation); + }); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_vpn_tunnels_v1_internal } // namespace cloud diff --git a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_rest_connection_impl.h b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_rest_connection_impl.h index 47144726eb309..f2e9f552d5954 100644 --- a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_rest_connection_impl.h +++ b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_rest_connection_impl.h @@ -60,6 +60,15 @@ class VpnTunnelsRestConnectionImpl google::cloud::cpp::compute::vpn_tunnels::v1:: DeleteVpnTunnelRequest const& request) override; + StatusOr DeleteVpnTunnel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1:: + DeleteVpnTunnelRequest const& request) override; + + future> DeleteVpnTunnel( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetVpnTunnel( google::cloud::cpp::compute::vpn_tunnels::v1::GetVpnTunnelRequest const& request) override; @@ -68,6 +77,15 @@ class VpnTunnelsRestConnectionImpl google::cloud::cpp::compute::vpn_tunnels::v1:: InsertVpnTunnelRequest const& request) override; + StatusOr InsertVpnTunnel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1:: + InsertVpnTunnelRequest const& request) override; + + future> InsertVpnTunnel( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListVpnTunnels( google::cloud::cpp::compute::vpn_tunnels::v1::ListVpnTunnelsRequest request) override; @@ -76,6 +94,15 @@ class VpnTunnelsRestConnectionImpl google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: static std::unique_ptr retry_policy(Options const& options) { diff --git a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.cc b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.cc index 5edd668f6cea7..9fd285e595c78 100644 --- a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.cc +++ b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.cc @@ -57,6 +57,31 @@ VpnTunnelsTracingConnection::DeleteVpnTunnel( return internal::EndSpan(std::move(span), child_->DeleteVpnTunnel(request)); } +StatusOr +VpnTunnelsTracingConnection::DeleteVpnTunnel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1::DeleteVpnTunnelRequest const& + request) { + auto span = internal::MakeSpan( + "compute_vpn_tunnels_v1::VpnTunnelsConnection::DeleteVpnTunnel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteVpnTunnel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VpnTunnelsTracingConnection::DeleteVpnTunnel( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_vpn_tunnels_v1::VpnTunnelsConnection::DeleteVpnTunnel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteVpnTunnel(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr VpnTunnelsTracingConnection::GetVpnTunnel( google::cloud::cpp::compute::vpn_tunnels::v1::GetVpnTunnelRequest const& @@ -77,6 +102,31 @@ VpnTunnelsTracingConnection::InsertVpnTunnel( return internal::EndSpan(std::move(span), child_->InsertVpnTunnel(request)); } +StatusOr +VpnTunnelsTracingConnection::InsertVpnTunnel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1::InsertVpnTunnelRequest const& + request) { + auto span = internal::MakeSpan( + "compute_vpn_tunnels_v1::VpnTunnelsConnection::InsertVpnTunnel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->InsertVpnTunnel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VpnTunnelsTracingConnection::InsertVpnTunnel( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_vpn_tunnels_v1::VpnTunnelsConnection::InsertVpnTunnel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->InsertVpnTunnel(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VpnTunnelsTracingConnection::ListVpnTunnels( google::cloud::cpp::compute::vpn_tunnels::v1::ListVpnTunnelsRequest @@ -100,6 +150,31 @@ VpnTunnelsTracingConnection::SetLabels( return internal::EndSpan(std::move(span), child_->SetLabels(request)); } +StatusOr +VpnTunnelsTracingConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& + request) { + auto span = internal::MakeSpan( + "compute_vpn_tunnels_v1::VpnTunnelsConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VpnTunnelsTracingConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) { + auto span = internal::MakeSpan( + "compute_vpn_tunnels_v1::VpnTunnelsConnection::SetLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.h b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.h index 7199e9176bc3d..14735cf2762c1 100644 --- a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.h +++ b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.h @@ -50,6 +50,15 @@ class VpnTunnelsTracingConnection google::cloud::cpp::compute::vpn_tunnels::v1:: DeleteVpnTunnelRequest const& request) override; + StatusOr DeleteVpnTunnel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1:: + DeleteVpnTunnelRequest const& request) override; + + future> DeleteVpnTunnel( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StatusOr GetVpnTunnel( google::cloud::cpp::compute::vpn_tunnels::v1::GetVpnTunnelRequest const& request) override; @@ -58,6 +67,15 @@ class VpnTunnelsTracingConnection google::cloud::cpp::compute::vpn_tunnels::v1:: InsertVpnTunnelRequest const& request) override; + StatusOr InsertVpnTunnel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1:: + InsertVpnTunnelRequest const& request) override; + + future> InsertVpnTunnel( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + StreamRange ListVpnTunnels( google::cloud::cpp::compute::vpn_tunnels::v1::ListVpnTunnelsRequest request) override; @@ -66,6 +84,15 @@ class VpnTunnelsTracingConnection google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& request) override; + StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& + request) override; + + future> SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/compute/vpn_tunnels/v1/mocks/mock_vpn_tunnels_connection.h b/google/cloud/compute/vpn_tunnels/v1/mocks/mock_vpn_tunnels_connection.h index 12fd48afd2d67..ff8c2ef1d055d 100644 --- a/google/cloud/compute/vpn_tunnels/v1/mocks/mock_vpn_tunnels_connection.h +++ b/google/cloud/compute/vpn_tunnels/v1/mocks/mock_vpn_tunnels_connection.h @@ -62,6 +62,19 @@ class MockVpnTunnelsConnection DeleteVpnTunnelRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteVpnTunnel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1:: + DeleteVpnTunnelRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteVpnTunnel, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetVpnTunnel, (google::cloud::cpp::compute::vpn_tunnels::v1::GetVpnTunnelRequest const& @@ -74,6 +87,19 @@ class MockVpnTunnelsConnection InsertVpnTunnelRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InsertVpnTunnel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1:: + InsertVpnTunnelRequest const& request), + (override)); + + MOCK_METHOD(future>, + InsertVpnTunnel, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListVpnTunnels, (google::cloud::cpp::compute::vpn_tunnels::v1::ListVpnTunnelsRequest @@ -85,6 +111,19 @@ class MockVpnTunnelsConnection (google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, SetLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + SetLabels, + (google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection.cc b/google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection.cc index 058de240a4b7b..a555b718dd1f9 100644 --- a/google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection.cc +++ b/google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection.cc @@ -54,6 +54,24 @@ VpnTunnelsConnection::DeleteVpnTunnel(google::cloud::cpp::compute::vpn_tunnels:: Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VpnTunnelsConnection::DeleteVpnTunnel(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels:: + v1::DeleteVpnTunnelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VpnTunnelsConnection::DeleteVpnTunnel( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr VpnTunnelsConnection::GetVpnTunnel( google::cloud::cpp::compute::vpn_tunnels::v1::GetVpnTunnelRequest const&) { @@ -68,6 +86,24 @@ VpnTunnelsConnection::InsertVpnTunnel(google::cloud::cpp::compute::vpn_tunnels:: Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VpnTunnelsConnection::InsertVpnTunnel(google::cloud::ExperimentalTag, + google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels:: + v1::InsertVpnTunnelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VpnTunnelsConnection::InsertVpnTunnel( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VpnTunnelsConnection::ListVpnTunnels( google::cloud::cpp::compute::vpn_tunnels::v1:: @@ -84,6 +120,23 @@ VpnTunnelsConnection::SetLabels( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VpnTunnelsConnection::SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VpnTunnelsConnection::SetLabels( + google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace compute_vpn_tunnels_v1 } // namespace cloud diff --git a/google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection.h b/google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection.h index 08b7a816e29c1..2bb7829e57c8d 100644 --- a/google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection.h +++ b/google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_retry_traits.h" #include "google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -192,6 +194,15 @@ class VpnTunnelsConnection { DeleteVpnTunnel(google::cloud::cpp::compute::vpn_tunnels::v1:: DeleteVpnTunnelRequest const& request); + virtual StatusOr DeleteVpnTunnel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1:: + DeleteVpnTunnelRequest const& request); + + virtual future> + DeleteVpnTunnel(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StatusOr GetVpnTunnel( google::cloud::cpp::compute::vpn_tunnels::v1::GetVpnTunnelRequest const& request); @@ -200,6 +211,15 @@ class VpnTunnelsConnection { InsertVpnTunnel(google::cloud::cpp::compute::vpn_tunnels::v1:: InsertVpnTunnelRequest const& request); + virtual StatusOr InsertVpnTunnel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1:: + InsertVpnTunnelRequest const& request); + + virtual future> + InsertVpnTunnel(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); + virtual StreamRange ListVpnTunnels( google::cloud::cpp::compute::vpn_tunnels::v1::ListVpnTunnelsRequest @@ -209,6 +229,15 @@ class VpnTunnelsConnection { SetLabels( google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& request); + + virtual StatusOr SetLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& + request); + + virtual future> + SetLabels(google::cloud::ExperimentalTag, + google::cloud::cpp::compute::v1::Operation const& operation); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/compute/zone_operations/v1/zone_operations_connection.h b/google/cloud/compute/zone_operations/v1/zone_operations_connection.h index d4e8903e632f6..a6b9568394ec6 100644 --- a/google/cloud/compute/zone_operations/v1/zone_operations_connection.h +++ b/google/cloud/compute/zone_operations/v1/zone_operations_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/zone_operations/v1/internal/zone_operations_retry_traits.h" #include "google/cloud/compute/zone_operations/v1/zone_operations_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/compute/zones/v1/zones_connection.h b/google/cloud/compute/zones/v1/zones_connection.h index 326f8bfee0292..3247c95cc0b36 100644 --- a/google/cloud/compute/zones/v1/zones_connection.h +++ b/google/cloud/compute/zones/v1/zones_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/compute/zones/v1/internal/zones_retry_traits.h" #include "google/cloud/compute/zones/v1/zones_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/confidentialcomputing/v1/confidential_computing_connection.h b/google/cloud/confidentialcomputing/v1/confidential_computing_connection.h index 36f4a71d686ce..0e4ce88d2dda7 100644 --- a/google/cloud/confidentialcomputing/v1/confidential_computing_connection.h +++ b/google/cloud/confidentialcomputing/v1/confidential_computing_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/confidentialcomputing/v1/confidential_computing_connection_idempotency_policy.h" #include "google/cloud/confidentialcomputing/v1/internal/confidential_computing_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/config/v1/config_connection.cc b/google/cloud/config/v1/config_connection.cc index 85f2d007880a4..fca84d9356a13 100644 --- a/google/cloud/config/v1/config_connection.cc +++ b/google/cloud/config/v1/config_connection.cc @@ -59,6 +59,21 @@ ConfigConnection::CreateDeployment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ConfigConnection::CreateDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::CreateDeploymentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConfigConnection::CreateDeployment(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ConfigConnection::UpdateDeployment( google::cloud::config::v1::UpdateDeploymentRequest const&) { @@ -67,6 +82,21 @@ ConfigConnection::UpdateDeployment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ConfigConnection::UpdateDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::UpdateDeploymentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConfigConnection::UpdateDeployment(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ConfigConnection::DeleteDeployment( google::cloud::config::v1::DeleteDeploymentRequest const&) { @@ -75,6 +105,21 @@ ConfigConnection::DeleteDeployment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ConfigConnection::DeleteDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::DeleteDeploymentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConfigConnection::DeleteDeployment(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ConfigConnection::ListRevisions( google::cloud::config::v1:: @@ -132,6 +177,21 @@ ConfigConnection::LockDeployment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ConfigConnection::LockDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::LockDeploymentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConfigConnection::LockDeployment(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ConfigConnection::UnlockDeployment( google::cloud::config::v1::UnlockDeploymentRequest const&) { @@ -140,6 +200,21 @@ ConfigConnection::UnlockDeployment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ConfigConnection::UnlockDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::UnlockDeploymentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConfigConnection::UnlockDeployment(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ConfigConnection::ExportLockInfo( google::cloud::config::v1::ExportLockInfoRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -153,6 +228,21 @@ ConfigConnection::CreatePreview( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ConfigConnection::CreatePreview( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::CreatePreviewRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConfigConnection::CreatePreview(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ConfigConnection::GetPreview( google::cloud::config::v1::GetPreviewRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -173,6 +263,21 @@ ConfigConnection::DeletePreview( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ConfigConnection::DeletePreview( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::DeletePreviewRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConfigConnection::DeletePreview(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ConfigConnection::ExportPreviewResult( google::cloud::config::v1::ExportPreviewResultRequest const&) { diff --git a/google/cloud/config/v1/config_connection.h b/google/cloud/config/v1/config_connection.h index 0fa9bfcdc5202..244313c3fe3a7 100644 --- a/google/cloud/config/v1/config_connection.h +++ b/google/cloud/config/v1/config_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/config/v1/config_connection_idempotency_policy.h" #include "google/cloud/config/v1/internal/config_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -191,14 +193,38 @@ class ConfigConnection { CreateDeployment( google::cloud::config::v1::CreateDeploymentRequest const& request); + virtual StatusOr CreateDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::CreateDeploymentRequest const& request); + + virtual future> + CreateDeployment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateDeployment( google::cloud::config::v1::UpdateDeploymentRequest const& request); + virtual StatusOr UpdateDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::UpdateDeploymentRequest const& request); + + virtual future> + UpdateDeployment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteDeployment( google::cloud::config::v1::DeleteDeploymentRequest const& request); + virtual StatusOr DeleteDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::DeleteDeploymentRequest const& request); + + virtual future> + DeleteDeployment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListRevisions( google::cloud::config::v1::ListRevisionsRequest request); @@ -230,16 +256,40 @@ class ConfigConnection { LockDeployment( google::cloud::config::v1::LockDeploymentRequest const& request); + virtual StatusOr LockDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::LockDeploymentRequest const& request); + + virtual future> + LockDeployment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UnlockDeployment( google::cloud::config::v1::UnlockDeploymentRequest const& request); + virtual StatusOr UnlockDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::UnlockDeploymentRequest const& request); + + virtual future> + UnlockDeployment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr ExportLockInfo( google::cloud::config::v1::ExportLockInfoRequest const& request); virtual future> CreatePreview( google::cloud::config::v1::CreatePreviewRequest const& request); + virtual StatusOr CreatePreview( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::CreatePreviewRequest const& request); + + virtual future> CreatePreview( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetPreview( google::cloud::config::v1::GetPreviewRequest const& request); @@ -249,6 +299,14 @@ class ConfigConnection { virtual future> DeletePreview( google::cloud::config::v1::DeletePreviewRequest const& request); + virtual StatusOr DeletePreview( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::DeletePreviewRequest const& request); + + virtual future> DeletePreview( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr ExportPreviewResult( google::cloud::config::v1::ExportPreviewResultRequest const& request); diff --git a/google/cloud/config/v1/internal/config_connection_impl.cc b/google/cloud/config/v1/internal/config_connection_impl.cc index 448b3d4eb1b6b..2f7f3586a64ff 100644 --- a/google/cloud/config/v1/internal/config_connection_impl.cc +++ b/google/cloud/config/v1/internal/config_connection_impl.cc @@ -149,6 +149,58 @@ ConfigConnectionImpl::CreateDeployment( polling_policy(*current), __func__); } +StatusOr ConfigConnectionImpl::CreateDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::CreateDeploymentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDeployment(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::config::v1::CreateDeploymentRequest const& request) { + return stub_->CreateDeployment(context, options, request); + }, + *current, request, __func__); +} + +future> +ConfigConnectionImpl::CreateDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDeployment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::config::v1::Deployment>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::config::v1::Deployment>, + polling_policy(*current), __func__); +} + future> ConfigConnectionImpl::UpdateDeployment( google::cloud::config::v1::UpdateDeploymentRequest const& request) { @@ -188,6 +240,58 @@ ConfigConnectionImpl::UpdateDeployment( polling_policy(*current), __func__); } +StatusOr ConfigConnectionImpl::UpdateDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::UpdateDeploymentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDeployment(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::config::v1::UpdateDeploymentRequest const& request) { + return stub_->UpdateDeployment(context, options, request); + }, + *current, request, __func__); +} + +future> +ConfigConnectionImpl::UpdateDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateDeployment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::config::v1::Deployment>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::config::v1::Deployment>, + polling_policy(*current), __func__); +} + future> ConfigConnectionImpl::DeleteDeployment( google::cloud::config::v1::DeleteDeploymentRequest const& request) { @@ -227,6 +331,58 @@ ConfigConnectionImpl::DeleteDeployment( polling_policy(*current), __func__); } +StatusOr ConfigConnectionImpl::DeleteDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::DeleteDeploymentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDeployment(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::config::v1::DeleteDeploymentRequest const& request) { + return stub_->DeleteDeployment(context, options, request); + }, + *current, request, __func__); +} + +future> +ConfigConnectionImpl::DeleteDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDeployment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::config::v1::Deployment>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::config::v1::Deployment>, + polling_policy(*current), __func__); +} + StreamRange ConfigConnectionImpl::ListRevisions( google::cloud::config::v1::ListRevisionsRequest request) { @@ -418,6 +574,57 @@ ConfigConnectionImpl::LockDeployment( polling_policy(*current), __func__); } +StatusOr ConfigConnectionImpl::LockDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::LockDeploymentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->LockDeployment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::config::v1::LockDeploymentRequest const& request) { + return stub_->LockDeployment(context, options, request); + }, + *current, request, __func__); +} + +future> +ConfigConnectionImpl::LockDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to LockDeployment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::config::v1::Deployment>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::config::v1::Deployment>, + polling_policy(*current), __func__); +} + future> ConfigConnectionImpl::UnlockDeployment( google::cloud::config::v1::UnlockDeploymentRequest const& request) { @@ -457,6 +664,58 @@ ConfigConnectionImpl::UnlockDeployment( polling_policy(*current), __func__); } +StatusOr ConfigConnectionImpl::UnlockDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::UnlockDeploymentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UnlockDeployment(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::config::v1::UnlockDeploymentRequest const& request) { + return stub_->UnlockDeployment(context, options, request); + }, + *current, request, __func__); +} + +future> +ConfigConnectionImpl::UnlockDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UnlockDeployment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::config::v1::Deployment>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::config::v1::Deployment>, + polling_policy(*current), __func__); +} + StatusOr ConfigConnectionImpl::ExportLockInfo( google::cloud::config::v1::ExportLockInfoRequest const& request) { @@ -510,6 +769,57 @@ ConfigConnectionImpl::CreatePreview( polling_policy(*current), __func__); } +StatusOr ConfigConnectionImpl::CreatePreview( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::CreatePreviewRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreatePreview(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::config::v1::CreatePreviewRequest const& request) { + return stub_->CreatePreview(context, options, request); + }, + *current, request, __func__); +} + +future> +ConfigConnectionImpl::CreatePreview( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreatePreview", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::config::v1::Preview>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::config::v1::Preview>, + polling_policy(*current), __func__); +} + StatusOr ConfigConnectionImpl::GetPreview( google::cloud::config::v1::GetPreviewRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -596,6 +906,57 @@ ConfigConnectionImpl::DeletePreview( polling_policy(*current), __func__); } +StatusOr ConfigConnectionImpl::DeletePreview( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::DeletePreviewRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePreview(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::config::v1::DeletePreviewRequest const& request) { + return stub_->DeletePreview(context, options, request); + }, + *current, request, __func__); +} + +future> +ConfigConnectionImpl::DeletePreview( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeletePreview", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::config::v1::Preview>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::config::v1::Preview>, + polling_policy(*current), __func__); +} + StatusOr ConfigConnectionImpl::ExportPreviewResult( google::cloud::config::v1::ExportPreviewResultRequest const& request) { diff --git a/google/cloud/config/v1/internal/config_connection_impl.h b/google/cloud/config/v1/internal/config_connection_impl.h index f0a316387d189..ddf3e229b700a 100644 --- a/google/cloud/config/v1/internal/config_connection_impl.h +++ b/google/cloud/config/v1/internal/config_connection_impl.h @@ -60,14 +60,41 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { google::cloud::config::v1::CreateDeploymentRequest const& request) override; + StatusOr CreateDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::CreateDeploymentRequest const& request) + override; + + future> CreateDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDeployment( google::cloud::config::v1::UpdateDeploymentRequest const& request) override; + StatusOr UpdateDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::UpdateDeploymentRequest const& request) + override; + + future> UpdateDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDeployment( google::cloud::config::v1::DeleteDeploymentRequest const& request) override; + StatusOr DeleteDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::DeleteDeploymentRequest const& request) + override; + + future> DeleteDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRevisions( google::cloud::config::v1::ListRevisionsRequest request) override; @@ -99,16 +126,41 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { future> LockDeployment( google::cloud::config::v1::LockDeploymentRequest const& request) override; + StatusOr LockDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::LockDeploymentRequest const& request) override; + + future> LockDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UnlockDeployment( google::cloud::config::v1::UnlockDeploymentRequest const& request) override; + StatusOr UnlockDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::UnlockDeploymentRequest const& request) + override; + + future> UnlockDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ExportLockInfo( google::cloud::config::v1::ExportLockInfoRequest const& request) override; future> CreatePreview( google::cloud::config::v1::CreatePreviewRequest const& request) override; + StatusOr CreatePreview( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::CreatePreviewRequest const& request) override; + + future> CreatePreview( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetPreview( google::cloud::config::v1::GetPreviewRequest const& request) override; @@ -118,6 +170,14 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { future> DeletePreview( google::cloud::config::v1::DeletePreviewRequest const& request) override; + StatusOr DeletePreview( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::DeletePreviewRequest const& request) override; + + future> DeletePreview( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ExportPreviewResult( google::cloud::config::v1::ExportPreviewResultRequest const& request) diff --git a/google/cloud/config/v1/internal/config_tracing_connection.cc b/google/cloud/config/v1/internal/config_tracing_connection.cc index 04663725300a6..2e51dc7592d3a 100644 --- a/google/cloud/config/v1/internal/config_tracing_connection.cc +++ b/google/cloud/config/v1/internal/config_tracing_connection.cc @@ -61,6 +61,30 @@ ConfigTracingConnection::CreateDeployment( return internal::EndSpan(std::move(span), child_->CreateDeployment(request)); } +StatusOr +ConfigTracingConnection::CreateDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::CreateDeploymentRequest const& request) { + auto span = + internal::MakeSpan("config_v1::ConfigConnection::CreateDeployment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateDeployment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConfigTracingConnection::CreateDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("config_v1::ConfigConnection::CreateDeployment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateDeployment(google::cloud::ExperimentalTag{}, operation)); +} + future> ConfigTracingConnection::UpdateDeployment( google::cloud::config::v1::UpdateDeploymentRequest const& request) { @@ -70,6 +94,30 @@ ConfigTracingConnection::UpdateDeployment( return internal::EndSpan(std::move(span), child_->UpdateDeployment(request)); } +StatusOr +ConfigTracingConnection::UpdateDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::UpdateDeploymentRequest const& request) { + auto span = + internal::MakeSpan("config_v1::ConfigConnection::UpdateDeployment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateDeployment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConfigTracingConnection::UpdateDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("config_v1::ConfigConnection::UpdateDeployment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateDeployment(google::cloud::ExperimentalTag{}, operation)); +} + future> ConfigTracingConnection::DeleteDeployment( google::cloud::config::v1::DeleteDeploymentRequest const& request) { @@ -79,6 +127,30 @@ ConfigTracingConnection::DeleteDeployment( return internal::EndSpan(std::move(span), child_->DeleteDeployment(request)); } +StatusOr +ConfigTracingConnection::DeleteDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::DeleteDeploymentRequest const& request) { + auto span = + internal::MakeSpan("config_v1::ConfigConnection::DeleteDeployment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteDeployment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConfigTracingConnection::DeleteDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("config_v1::ConfigConnection::DeleteDeployment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteDeployment(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ConfigTracingConnection::ListRevisions( google::cloud::config::v1::ListRevisionsRequest request) { @@ -159,6 +231,28 @@ ConfigTracingConnection::LockDeployment( return internal::EndSpan(std::move(span), child_->LockDeployment(request)); } +StatusOr +ConfigTracingConnection::LockDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::LockDeploymentRequest const& request) { + auto span = internal::MakeSpan("config_v1::ConfigConnection::LockDeployment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->LockDeployment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConfigTracingConnection::LockDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("config_v1::ConfigConnection::LockDeployment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->LockDeployment(google::cloud::ExperimentalTag{}, operation)); +} + future> ConfigTracingConnection::UnlockDeployment( google::cloud::config::v1::UnlockDeploymentRequest const& request) { @@ -168,6 +262,30 @@ ConfigTracingConnection::UnlockDeployment( return internal::EndSpan(std::move(span), child_->UnlockDeployment(request)); } +StatusOr +ConfigTracingConnection::UnlockDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::UnlockDeploymentRequest const& request) { + auto span = + internal::MakeSpan("config_v1::ConfigConnection::UnlockDeployment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UnlockDeployment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConfigTracingConnection::UnlockDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("config_v1::ConfigConnection::UnlockDeployment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UnlockDeployment(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ConfigTracingConnection::ExportLockInfo( google::cloud::config::v1::ExportLockInfoRequest const& request) { @@ -184,6 +302,27 @@ ConfigTracingConnection::CreatePreview( return internal::EndSpan(std::move(span), child_->CreatePreview(request)); } +StatusOr ConfigTracingConnection::CreatePreview( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::CreatePreviewRequest const& request) { + auto span = internal::MakeSpan("config_v1::ConfigConnection::CreatePreview"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreatePreview(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConfigTracingConnection::CreatePreview( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("config_v1::ConfigConnection::CreatePreview"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreatePreview(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ConfigTracingConnection::GetPreview( google::cloud::config::v1::GetPreviewRequest const& request) { @@ -210,6 +349,27 @@ ConfigTracingConnection::DeletePreview( return internal::EndSpan(std::move(span), child_->DeletePreview(request)); } +StatusOr ConfigTracingConnection::DeletePreview( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::DeletePreviewRequest const& request) { + auto span = internal::MakeSpan("config_v1::ConfigConnection::DeletePreview"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeletePreview(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConfigTracingConnection::DeletePreview( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("config_v1::ConfigConnection::DeletePreview"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeletePreview(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ConfigTracingConnection::ExportPreviewResult( google::cloud::config::v1::ExportPreviewResultRequest const& request) { diff --git a/google/cloud/config/v1/internal/config_tracing_connection.h b/google/cloud/config/v1/internal/config_tracing_connection.h index 2746513daa4df..10b67f8a1194f 100644 --- a/google/cloud/config/v1/internal/config_tracing_connection.h +++ b/google/cloud/config/v1/internal/config_tracing_connection.h @@ -49,14 +49,41 @@ class ConfigTracingConnection : public config_v1::ConfigConnection { google::cloud::config::v1::CreateDeploymentRequest const& request) override; + StatusOr CreateDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::CreateDeploymentRequest const& request) + override; + + future> CreateDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDeployment( google::cloud::config::v1::UpdateDeploymentRequest const& request) override; + StatusOr UpdateDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::UpdateDeploymentRequest const& request) + override; + + future> UpdateDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDeployment( google::cloud::config::v1::DeleteDeploymentRequest const& request) override; + StatusOr DeleteDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::DeleteDeploymentRequest const& request) + override; + + future> DeleteDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRevisions( google::cloud::config::v1::ListRevisionsRequest request) override; @@ -88,16 +115,41 @@ class ConfigTracingConnection : public config_v1::ConfigConnection { future> LockDeployment( google::cloud::config::v1::LockDeploymentRequest const& request) override; + StatusOr LockDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::LockDeploymentRequest const& request) override; + + future> LockDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UnlockDeployment( google::cloud::config::v1::UnlockDeploymentRequest const& request) override; + StatusOr UnlockDeployment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::UnlockDeploymentRequest const& request) + override; + + future> UnlockDeployment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ExportLockInfo( google::cloud::config::v1::ExportLockInfoRequest const& request) override; future> CreatePreview( google::cloud::config::v1::CreatePreviewRequest const& request) override; + StatusOr CreatePreview( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::CreatePreviewRequest const& request) override; + + future> CreatePreview( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetPreview( google::cloud::config::v1::GetPreviewRequest const& request) override; @@ -107,6 +159,14 @@ class ConfigTracingConnection : public config_v1::ConfigConnection { future> DeletePreview( google::cloud::config::v1::DeletePreviewRequest const& request) override; + StatusOr DeletePreview( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::DeletePreviewRequest const& request) override; + + future> DeletePreview( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ExportPreviewResult( google::cloud::config::v1::ExportPreviewResultRequest const& request) diff --git a/google/cloud/config/v1/mocks/mock_config_connection.h b/google/cloud/config/v1/mocks/mock_config_connection.h index 6b43dd7a132de..7966dd905008a 100644 --- a/google/cloud/config/v1/mocks/mock_config_connection.h +++ b/google/cloud/config/v1/mocks/mock_config_connection.h @@ -60,16 +60,52 @@ class MockConfigConnection : public config_v1::ConfigConnection { (google::cloud::config::v1::CreateDeploymentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateDeployment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::CreateDeploymentRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateDeployment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateDeployment, (google::cloud::config::v1::UpdateDeploymentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateDeployment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::UpdateDeploymentRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateDeployment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteDeployment, (google::cloud::config::v1::DeleteDeploymentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteDeployment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::DeleteDeploymentRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteDeployment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRevisions, (google::cloud::config::v1::ListRevisionsRequest request), (override)); @@ -113,11 +149,34 @@ class MockConfigConnection : public config_v1::ConfigConnection { (google::cloud::config::v1::LockDeploymentRequest const& request), (override)); + MOCK_METHOD(StatusOr, LockDeployment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::LockDeploymentRequest const& request), + (override)); + + MOCK_METHOD(future>, + LockDeployment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UnlockDeployment, (google::cloud::config::v1::UnlockDeploymentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UnlockDeployment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::UnlockDeploymentRequest const& request), + (override)); + + MOCK_METHOD(future>, + UnlockDeployment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, ExportLockInfo, (google::cloud::config::v1::ExportLockInfoRequest const& request), (override)); @@ -127,6 +186,17 @@ class MockConfigConnection : public config_v1::ConfigConnection { (google::cloud::config::v1::CreatePreviewRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreatePreview, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::CreatePreviewRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreatePreview, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetPreview, (google::cloud::config::v1::GetPreviewRequest const& request), (override)); @@ -140,6 +210,17 @@ class MockConfigConnection : public config_v1::ConfigConnection { (google::cloud::config::v1::DeletePreviewRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeletePreview, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::config::v1::DeletePreviewRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeletePreview, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, ExportPreviewResult, diff --git a/google/cloud/connectors/v1/connectors_connection.cc b/google/cloud/connectors/v1/connectors_connection.cc index a8c9b3f8da5ab..99342c6b00100 100644 --- a/google/cloud/connectors/v1/connectors_connection.cc +++ b/google/cloud/connectors/v1/connectors_connection.cc @@ -60,6 +60,21 @@ ConnectorsConnection::CreateConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ConnectorsConnection::CreateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::CreateConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConnectorsConnection::CreateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ConnectorsConnection::UpdateConnection( google::cloud::connectors::v1::UpdateConnectionRequest const&) { @@ -68,6 +83,21 @@ ConnectorsConnection::UpdateConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ConnectorsConnection::UpdateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::UpdateConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConnectorsConnection::UpdateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ConnectorsConnection::DeleteConnection( google::cloud::connectors::v1::DeleteConnectionRequest const&) { @@ -76,6 +106,21 @@ ConnectorsConnection::DeleteConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ConnectorsConnection::DeleteConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::DeleteConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConnectorsConnection::DeleteConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ConnectorsConnection::ListProviders( google::cloud::connectors::v1:: @@ -133,6 +178,23 @@ ConnectorsConnection::RefreshConnectionSchemaMetadata( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ConnectorsConnection::RefreshConnectionSchemaMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1:: + RefreshConnectionSchemaMetadataRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConnectorsConnection::RefreshConnectionSchemaMetadata( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ConnectorsConnection::ListRuntimeEntitySchemas( google::cloud::connectors::v1:: diff --git a/google/cloud/connectors/v1/connectors_connection.h b/google/cloud/connectors/v1/connectors_connection.h index d545f74725a8a..cf33694faa5f8 100644 --- a/google/cloud/connectors/v1/connectors_connection.h +++ b/google/cloud/connectors/v1/connectors_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/connectors/v1/connectors_connection_idempotency_policy.h" #include "google/cloud/connectors/v1/internal/connectors_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -195,14 +197,38 @@ class ConnectorsConnection { CreateConnection( google::cloud::connectors::v1::CreateConnectionRequest const& request); + virtual StatusOr CreateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::CreateConnectionRequest const& request); + + virtual future> + CreateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateConnection( google::cloud::connectors::v1::UpdateConnectionRequest const& request); + virtual StatusOr UpdateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::UpdateConnectionRequest const& request); + + virtual future> + UpdateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteConnection( google::cloud::connectors::v1::DeleteConnectionRequest const& request); + virtual StatusOr DeleteConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::DeleteConnectionRequest const& request); + + virtual future> + DeleteConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListProviders( google::cloud::connectors::v1::ListProvidersRequest request); @@ -234,6 +260,18 @@ class ConnectorsConnection { google::cloud::connectors::v1:: RefreshConnectionSchemaMetadataRequest const& request); + virtual StatusOr + RefreshConnectionSchemaMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1:: + RefreshConnectionSchemaMetadataRequest const& request); + + virtual future< + StatusOr> + RefreshConnectionSchemaMetadata( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListRuntimeEntitySchemas( google::cloud::connectors::v1::ListRuntimeEntitySchemasRequest request); diff --git a/google/cloud/connectors/v1/internal/connectors_connection_impl.cc b/google/cloud/connectors/v1/internal/connectors_connection_impl.cc index 772d24f646380..5255fcba295d8 100644 --- a/google/cloud/connectors/v1/internal/connectors_connection_impl.cc +++ b/google/cloud/connectors/v1/internal/connectors_connection_impl.cc @@ -153,6 +153,60 @@ ConnectorsConnectionImpl::CreateConnection( polling_policy(*current), __func__); } +StatusOr +ConnectorsConnectionImpl::CreateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::CreateConnectionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateConnection(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::connectors::v1::CreateConnectionRequest const& + request) { + return stub_->CreateConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +ConnectorsConnectionImpl::CreateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::connectors::v1::Connection>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::connectors::v1::Connection>, + polling_policy(*current), __func__); +} + future> ConnectorsConnectionImpl::UpdateConnection( google::cloud::connectors::v1::UpdateConnectionRequest const& request) { @@ -193,6 +247,60 @@ ConnectorsConnectionImpl::UpdateConnection( polling_policy(*current), __func__); } +StatusOr +ConnectorsConnectionImpl::UpdateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::UpdateConnectionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateConnection(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::connectors::v1::UpdateConnectionRequest const& + request) { + return stub_->UpdateConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +ConnectorsConnectionImpl::UpdateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::connectors::v1::Connection>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::connectors::v1::Connection>, + polling_policy(*current), __func__); +} + future> ConnectorsConnectionImpl::DeleteConnection( google::cloud::connectors::v1::DeleteConnectionRequest const& request) { @@ -233,6 +341,60 @@ ConnectorsConnectionImpl::DeleteConnection( polling_policy(*current), __func__); } +StatusOr +ConnectorsConnectionImpl::DeleteConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::DeleteConnectionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteConnection(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::connectors::v1::DeleteConnectionRequest const& + request) { + return stub_->DeleteConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +ConnectorsConnectionImpl::DeleteConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::connectors::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::connectors::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange ConnectorsConnectionImpl::ListProviders( google::cloud::connectors::v1::ListProvidersRequest request) { @@ -439,6 +601,62 @@ ConnectorsConnectionImpl::RefreshConnectionSchemaMetadata( polling_policy(*current), __func__); } +StatusOr +ConnectorsConnectionImpl::RefreshConnectionSchemaMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::RefreshConnectionSchemaMetadataRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RefreshConnectionSchemaMetadata(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::connectors::v1:: + RefreshConnectionSchemaMetadataRequest const& request) { + return stub_->RefreshConnectionSchemaMetadata(context, options, + request); + }, + *current, request, __func__); +} + +future> +ConnectorsConnectionImpl::RefreshConnectionSchemaMetadata( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RefreshConnectionSchemaMetadata", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::connectors::v1::ConnectionSchemaMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::connectors::v1::ConnectionSchemaMetadata>, + polling_policy(*current), __func__); +} + StreamRange ConnectorsConnectionImpl::ListRuntimeEntitySchemas( google::cloud::connectors::v1::ListRuntimeEntitySchemasRequest request) { diff --git a/google/cloud/connectors/v1/internal/connectors_connection_impl.h b/google/cloud/connectors/v1/internal/connectors_connection_impl.h index 605f95968837b..debb3c892ff53 100644 --- a/google/cloud/connectors/v1/internal/connectors_connection_impl.h +++ b/google/cloud/connectors/v1/internal/connectors_connection_impl.h @@ -62,14 +62,41 @@ class ConnectorsConnectionImpl : public connectors_v1::ConnectorsConnection { google::cloud::connectors::v1::CreateConnectionRequest const& request) override; + StatusOr CreateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::CreateConnectionRequest const& request) + override; + + future> CreateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateConnection( google::cloud::connectors::v1::UpdateConnectionRequest const& request) override; + StatusOr UpdateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::UpdateConnectionRequest const& request) + override; + + future> UpdateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteConnection(google::cloud::connectors::v1::DeleteConnectionRequest const& request) override; + StatusOr DeleteConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::DeleteConnectionRequest const& request) + override; + + future> + DeleteConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListProviders( google::cloud::connectors::v1::ListProvidersRequest request) override; @@ -103,6 +130,16 @@ class ConnectorsConnectionImpl : public connectors_v1::ConnectorsConnection { google::cloud::connectors::v1:: RefreshConnectionSchemaMetadataRequest const& request) override; + StatusOr RefreshConnectionSchemaMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1:: + RefreshConnectionSchemaMetadataRequest const& request) override; + + future> + RefreshConnectionSchemaMetadata( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRuntimeEntitySchemas( google::cloud::connectors::v1::ListRuntimeEntitySchemasRequest request) diff --git a/google/cloud/connectors/v1/internal/connectors_tracing_connection.cc b/google/cloud/connectors/v1/internal/connectors_tracing_connection.cc index 9e08e3b783177..285a471a695b5 100644 --- a/google/cloud/connectors/v1/internal/connectors_tracing_connection.cc +++ b/google/cloud/connectors/v1/internal/connectors_tracing_connection.cc @@ -63,6 +63,30 @@ ConnectorsTracingConnection::CreateConnection( return internal::EndSpan(std::move(span), child_->CreateConnection(request)); } +StatusOr +ConnectorsTracingConnection::CreateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::CreateConnectionRequest const& request) { + auto span = internal::MakeSpan( + "connectors_v1::ConnectorsConnection::CreateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateConnection(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConnectorsTracingConnection::CreateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "connectors_v1::ConnectorsConnection::CreateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateConnection(google::cloud::ExperimentalTag{}, operation)); +} + future> ConnectorsTracingConnection::UpdateConnection( google::cloud::connectors::v1::UpdateConnectionRequest const& request) { @@ -72,6 +96,30 @@ ConnectorsTracingConnection::UpdateConnection( return internal::EndSpan(std::move(span), child_->UpdateConnection(request)); } +StatusOr +ConnectorsTracingConnection::UpdateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::UpdateConnectionRequest const& request) { + auto span = internal::MakeSpan( + "connectors_v1::ConnectorsConnection::UpdateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateConnection(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConnectorsTracingConnection::UpdateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "connectors_v1::ConnectorsConnection::UpdateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateConnection(google::cloud::ExperimentalTag{}, operation)); +} + future> ConnectorsTracingConnection::DeleteConnection( google::cloud::connectors::v1::DeleteConnectionRequest const& request) { @@ -81,6 +129,30 @@ ConnectorsTracingConnection::DeleteConnection( return internal::EndSpan(std::move(span), child_->DeleteConnection(request)); } +StatusOr +ConnectorsTracingConnection::DeleteConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::DeleteConnectionRequest const& request) { + auto span = internal::MakeSpan( + "connectors_v1::ConnectorsConnection::DeleteConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteConnection(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConnectorsTracingConnection::DeleteConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "connectors_v1::ConnectorsConnection::DeleteConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteConnection(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ConnectorsTracingConnection::ListProviders( google::cloud::connectors::v1::ListProvidersRequest request) { @@ -163,6 +235,31 @@ ConnectorsTracingConnection::RefreshConnectionSchemaMetadata( child_->RefreshConnectionSchemaMetadata(request)); } +StatusOr +ConnectorsTracingConnection::RefreshConnectionSchemaMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::RefreshConnectionSchemaMetadataRequest const& + request) { + auto span = internal::MakeSpan( + "connectors_v1::ConnectorsConnection::RefreshConnectionSchemaMetadata"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RefreshConnectionSchemaMetadata( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConnectorsTracingConnection::RefreshConnectionSchemaMetadata( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "connectors_v1::ConnectorsConnection::RefreshConnectionSchemaMetadata"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RefreshConnectionSchemaMetadata( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ConnectorsTracingConnection::ListRuntimeEntitySchemas( google::cloud::connectors::v1::ListRuntimeEntitySchemasRequest request) { diff --git a/google/cloud/connectors/v1/internal/connectors_tracing_connection.h b/google/cloud/connectors/v1/internal/connectors_tracing_connection.h index 17979b7664e96..fbabb88d1013c 100644 --- a/google/cloud/connectors/v1/internal/connectors_tracing_connection.h +++ b/google/cloud/connectors/v1/internal/connectors_tracing_connection.h @@ -50,14 +50,41 @@ class ConnectorsTracingConnection : public connectors_v1::ConnectorsConnection { google::cloud::connectors::v1::CreateConnectionRequest const& request) override; + StatusOr CreateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::CreateConnectionRequest const& request) + override; + + future> CreateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateConnection( google::cloud::connectors::v1::UpdateConnectionRequest const& request) override; + StatusOr UpdateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::UpdateConnectionRequest const& request) + override; + + future> UpdateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteConnection(google::cloud::connectors::v1::DeleteConnectionRequest const& request) override; + StatusOr DeleteConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::DeleteConnectionRequest const& request) + override; + + future> + DeleteConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListProviders( google::cloud::connectors::v1::ListProvidersRequest request) override; @@ -91,6 +118,16 @@ class ConnectorsTracingConnection : public connectors_v1::ConnectorsConnection { google::cloud::connectors::v1:: RefreshConnectionSchemaMetadataRequest const& request) override; + StatusOr RefreshConnectionSchemaMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1:: + RefreshConnectionSchemaMetadataRequest const& request) override; + + future> + RefreshConnectionSchemaMetadata( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRuntimeEntitySchemas( google::cloud::connectors::v1::ListRuntimeEntitySchemasRequest request) diff --git a/google/cloud/connectors/v1/mocks/mock_connectors_connection.h b/google/cloud/connectors/v1/mocks/mock_connectors_connection.h index 39ab7a135a498..fb5994023b61c 100644 --- a/google/cloud/connectors/v1/mocks/mock_connectors_connection.h +++ b/google/cloud/connectors/v1/mocks/mock_connectors_connection.h @@ -62,18 +62,55 @@ class MockConnectorsConnection : public connectors_v1::ConnectorsConnection { (google::cloud::connectors::v1::CreateConnectionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::CreateConnectionRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateConnection, (google::cloud::connectors::v1::UpdateConnectionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::UpdateConnectionRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteConnection, (google::cloud::connectors::v1::DeleteConnectionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1::DeleteConnectionRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListProviders, (google::cloud::connectors::v1::ListProvidersRequest request), @@ -120,6 +157,20 @@ class MockConnectorsConnection : public connectors_v1::ConnectorsConnection { RefreshConnectionSchemaMetadataRequest const& request), (override)); + MOCK_METHOD(StatusOr, + RefreshConnectionSchemaMetadata, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::connectors::v1:: + RefreshConnectionSchemaMetadataRequest const& request), + (override)); + + MOCK_METHOD( + future>, + RefreshConnectionSchemaMetadata, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListRuntimeEntitySchemas, diff --git a/google/cloud/contactcenterinsights/v1/contact_center_insights_connection.cc b/google/cloud/contactcenterinsights/v1/contact_center_insights_connection.cc index adfeec6dbfe39..c04077e767e91 100644 --- a/google/cloud/contactcenterinsights/v1/contact_center_insights_connection.cc +++ b/google/cloud/contactcenterinsights/v1/contact_center_insights_connection.cc @@ -54,6 +54,23 @@ ContactCenterInsightsConnection::UploadConversation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ContactCenterInsightsConnection::UploadConversation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + UploadConversationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ContactCenterInsightsConnection::UploadConversation( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ContactCenterInsightsConnection::UpdateConversation( google::cloud::contactcenterinsights::v1:: @@ -89,6 +106,22 @@ ContactCenterInsightsConnection::CreateAnalysis( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ContactCenterInsightsConnection::CreateAnalysis( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ContactCenterInsightsConnection::CreateAnalysis( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ContactCenterInsightsConnection::GetAnalysis( google::cloud::contactcenterinsights::v1::GetAnalysisRequest const&) { @@ -119,6 +152,25 @@ ContactCenterInsightsConnection::BulkAnalyzeConversations( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ContactCenterInsightsConnection::BulkAnalyzeConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + BulkAnalyzeConversationsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ContactCenterInsightsConnection::BulkAnalyzeConversations( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ContactCenterInsightsConnection::BulkDeleteConversations( @@ -130,6 +182,25 @@ ContactCenterInsightsConnection::BulkDeleteConversations( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ContactCenterInsightsConnection::BulkDeleteConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + BulkDeleteConversationsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ContactCenterInsightsConnection::BulkDeleteConversations( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ContactCenterInsightsConnection::IngestConversations( @@ -140,6 +211,24 @@ ContactCenterInsightsConnection::IngestConversations( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ContactCenterInsightsConnection::IngestConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + IngestConversationsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ContactCenterInsightsConnection::IngestConversations( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ContactCenterInsightsConnection::ExportInsightsData( @@ -150,6 +239,24 @@ ContactCenterInsightsConnection::ExportInsightsData( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ContactCenterInsightsConnection::ExportInsightsData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + ExportInsightsDataRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ContactCenterInsightsConnection::ExportInsightsData( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ContactCenterInsightsConnection::CreateIssueModel( google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const&) { @@ -158,6 +265,22 @@ ContactCenterInsightsConnection::CreateIssueModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ContactCenterInsightsConnection::CreateIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ContactCenterInsightsConnection::CreateIssueModel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ContactCenterInsightsConnection::UpdateIssueModel( google::cloud::contactcenterinsights::v1::UpdateIssueModelRequest const&) { @@ -185,6 +308,23 @@ ContactCenterInsightsConnection::DeleteIssueModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ContactCenterInsightsConnection::DeleteIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ContactCenterInsightsConnection::DeleteIssueModel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ContactCenterInsightsConnection::DeployIssueModel( @@ -194,6 +334,23 @@ ContactCenterInsightsConnection::DeployIssueModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ContactCenterInsightsConnection::DeployIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ContactCenterInsightsConnection::DeployIssueModel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ContactCenterInsightsConnection::UndeployIssueModel( @@ -204,6 +361,24 @@ ContactCenterInsightsConnection::UndeployIssueModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ContactCenterInsightsConnection::UndeployIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + UndeployIssueModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ContactCenterInsightsConnection::UndeployIssueModel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ContactCenterInsightsConnection::GetIssue( google::cloud::contactcenterinsights::v1::GetIssueRequest const&) { diff --git a/google/cloud/contactcenterinsights/v1/contact_center_insights_connection.h b/google/cloud/contactcenterinsights/v1/contact_center_insights_connection.h index e7e028af97768..76a7bdf9c3533 100644 --- a/google/cloud/contactcenterinsights/v1/contact_center_insights_connection.h +++ b/google/cloud/contactcenterinsights/v1/contact_center_insights_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/contactcenterinsights/v1/contact_center_insights_connection_idempotency_policy.h" #include "google/cloud/contactcenterinsights/v1/internal/contact_center_insights_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -203,6 +205,16 @@ class ContactCenterInsightsConnection { google::cloud::contactcenterinsights::v1::UploadConversationRequest const& request); + virtual StatusOr UploadConversation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::UploadConversationRequest const& + request); + + virtual future< + StatusOr> + UploadConversation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr UpdateConversation( google::cloud::contactcenterinsights::v1::UpdateConversationRequest const& @@ -227,6 +239,15 @@ class ContactCenterInsightsConnection { google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& request); + virtual StatusOr CreateAnalysis( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& + request); + + virtual future> + CreateAnalysis(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetAnalysis( google::cloud::contactcenterinsights::v1::GetAnalysisRequest const& @@ -245,27 +266,76 @@ class ContactCenterInsightsConnection { BulkAnalyzeConversations(google::cloud::contactcenterinsights::v1:: BulkAnalyzeConversationsRequest const& request); + virtual StatusOr BulkAnalyzeConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + BulkAnalyzeConversationsRequest const& request); + + virtual future> + BulkAnalyzeConversations(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> BulkDeleteConversations(google::cloud::contactcenterinsights::v1:: BulkDeleteConversationsRequest const& request); + virtual StatusOr BulkDeleteConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + BulkDeleteConversationsRequest const& request); + + virtual future> + BulkDeleteConversations(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> IngestConversations(google::cloud::contactcenterinsights::v1:: IngestConversationsRequest const& request); + virtual StatusOr IngestConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + IngestConversationsRequest const& request); + + virtual future> + IngestConversations(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ExportInsightsData( google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const& request); + virtual StatusOr ExportInsightsData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const& + request); + + virtual future> + ExportInsightsData(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateIssueModel( google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& request); + virtual StatusOr CreateIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& + request); + + virtual future> + CreateIssueModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr UpdateIssueModel( google::cloud::contactcenterinsights::v1::UpdateIssueModelRequest const& @@ -288,18 +358,48 @@ class ContactCenterInsightsConnection { google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& request); + virtual StatusOr DeleteIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& + request); + + virtual future> + DeleteIssueModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeployIssueModel( google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& request); + virtual StatusOr DeployIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& + request); + + virtual future> + DeployIssueModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UndeployIssueModel( google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const& request); + virtual StatusOr UndeployIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const& + request); + + virtual future> + UndeployIssueModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetIssue( google::cloud::contactcenterinsights::v1::GetIssueRequest const& request); diff --git a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.cc b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.cc index 2dcb4f2ba7b81..28a28f18f5f31 100644 --- a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.cc +++ b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.cc @@ -130,6 +130,62 @@ ContactCenterInsightsConnectionImpl::UploadConversation( polling_policy(*current), __func__); } +StatusOr +ContactCenterInsightsConnectionImpl::UploadConversation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::UploadConversationRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UploadConversation(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::contactcenterinsights::v1:: + UploadConversationRequest const& request) { + return stub_->UploadConversation(context, options, request); + }, + *current, request, __func__); +} + +future> +ContactCenterInsightsConnectionImpl::UploadConversation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UploadConversation", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::contactcenterinsights::v1::Conversation>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::contactcenterinsights::v1::Conversation>, + polling_policy(*current), __func__); +} + StatusOr ContactCenterInsightsConnectionImpl::UpdateConversation( google::cloud::contactcenterinsights::v1::UpdateConversationRequest const& @@ -255,6 +311,63 @@ ContactCenterInsightsConnectionImpl::CreateAnalysis( polling_policy(*current), __func__); } +StatusOr +ContactCenterInsightsConnectionImpl::CreateAnalysis( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAnalysis(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& + request) { + return stub_->CreateAnalysis(context, options, request); + }, + *current, request, __func__); +} + +future> +ContactCenterInsightsConnectionImpl::CreateAnalysis( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAnalysis", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::contactcenterinsights::v1::Analysis>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::contactcenterinsights::v1::Analysis>, + polling_policy(*current), __func__); +} + StatusOr ContactCenterInsightsConnectionImpl::GetAnalysis( google::cloud::contactcenterinsights::v1::GetAnalysisRequest const& @@ -366,6 +479,65 @@ ContactCenterInsightsConnectionImpl::BulkAnalyzeConversations( polling_policy(*current), __func__); } +StatusOr +ContactCenterInsightsConnectionImpl::BulkAnalyzeConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + BulkAnalyzeConversationsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BulkAnalyzeConversations(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::contactcenterinsights::v1:: + BulkAnalyzeConversationsRequest const& request) { + return stub_->BulkAnalyzeConversations(context, options, request); + }, + *current, request, __func__); +} + +future> +ContactCenterInsightsConnectionImpl::BulkAnalyzeConversations( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to BulkAnalyzeConversations", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::contactcenterinsights::v1:: + BulkAnalyzeConversationsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::contactcenterinsights::v1:: + BulkAnalyzeConversationsResponse>, + polling_policy(*current), __func__); +} + future> ContactCenterInsightsConnectionImpl::BulkDeleteConversations( @@ -409,6 +581,65 @@ ContactCenterInsightsConnectionImpl::BulkDeleteConversations( polling_policy(*current), __func__); } +StatusOr +ContactCenterInsightsConnectionImpl::BulkDeleteConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + BulkDeleteConversationsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BulkDeleteConversations(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::contactcenterinsights::v1:: + BulkDeleteConversationsRequest const& request) { + return stub_->BulkDeleteConversations(context, options, request); + }, + *current, request, __func__); +} + +future> +ContactCenterInsightsConnectionImpl::BulkDeleteConversations( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to BulkDeleteConversations", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::contactcenterinsights::v1:: + BulkDeleteConversationsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::contactcenterinsights::v1:: + BulkDeleteConversationsResponse>, + polling_policy(*current), __func__); +} + future> ContactCenterInsightsConnectionImpl::IngestConversations( @@ -451,6 +682,64 @@ ContactCenterInsightsConnectionImpl::IngestConversations( polling_policy(*current), __func__); } +StatusOr +ContactCenterInsightsConnectionImpl::IngestConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::IngestConversationsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->IngestConversations(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::contactcenterinsights::v1:: + IngestConversationsRequest const& request) { + return stub_->IngestConversations(context, options, request); + }, + *current, request, __func__); +} + +future> +ContactCenterInsightsConnectionImpl::IngestConversations( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to IngestConversations", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::contactcenterinsights::v1::IngestConversationsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::contactcenterinsights::v1:: + IngestConversationsResponse>, + polling_policy(*current), __func__); +} + future> ContactCenterInsightsConnectionImpl::ExportInsightsData( @@ -492,6 +781,63 @@ ContactCenterInsightsConnectionImpl::ExportInsightsData( polling_policy(*current), __func__); } +StatusOr +ContactCenterInsightsConnectionImpl::ExportInsightsData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportInsightsData(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::contactcenterinsights::v1:: + ExportInsightsDataRequest const& request) { + return stub_->ExportInsightsData(context, options, request); + }, + *current, request, __func__); +} + +future> +ContactCenterInsightsConnectionImpl::ExportInsightsData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ExportInsightsData", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::contactcenterinsights::v1::ExportInsightsDataResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::contactcenterinsights::v1::ExportInsightsDataResponse>, + polling_policy(*current), __func__); +} + future> ContactCenterInsightsConnectionImpl::CreateIssueModel( google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& @@ -532,6 +878,62 @@ ContactCenterInsightsConnectionImpl::CreateIssueModel( polling_policy(*current), __func__); } +StatusOr +ContactCenterInsightsConnectionImpl::CreateIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateIssueModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::contactcenterinsights::v1:: + CreateIssueModelRequest const& request) { + return stub_->CreateIssueModel(context, options, request); + }, + *current, request, __func__); +} + +future> +ContactCenterInsightsConnectionImpl::CreateIssueModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateIssueModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::contactcenterinsights::v1::IssueModel>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::contactcenterinsights::v1::IssueModel>, + polling_policy(*current), __func__); +} + StatusOr ContactCenterInsightsConnectionImpl::UpdateIssueModel( google::cloud::contactcenterinsights::v1::UpdateIssueModelRequest const& @@ -622,6 +1024,63 @@ ContactCenterInsightsConnectionImpl::DeleteIssueModel( polling_policy(*current), __func__); } +StatusOr +ContactCenterInsightsConnectionImpl::DeleteIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteIssueModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::contactcenterinsights::v1:: + DeleteIssueModelRequest const& request) { + return stub_->DeleteIssueModel(context, options, request); + }, + *current, request, __func__); +} + +future> +ContactCenterInsightsConnectionImpl::DeleteIssueModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteIssueModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::contactcenterinsights::v1::DeleteIssueModelMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::contactcenterinsights::v1::DeleteIssueModelMetadata>, + polling_policy(*current), __func__); +} + future> ContactCenterInsightsConnectionImpl::DeployIssueModel( @@ -663,6 +1122,63 @@ ContactCenterInsightsConnectionImpl::DeployIssueModel( polling_policy(*current), __func__); } +StatusOr +ContactCenterInsightsConnectionImpl::DeployIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeployIssueModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::contactcenterinsights::v1:: + DeployIssueModelRequest const& request) { + return stub_->DeployIssueModel(context, options, request); + }, + *current, request, __func__); +} + +future> +ContactCenterInsightsConnectionImpl::DeployIssueModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeployIssueModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::contactcenterinsights::v1::DeployIssueModelResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::contactcenterinsights::v1::DeployIssueModelResponse>, + polling_policy(*current), __func__); +} + future> ContactCenterInsightsConnectionImpl::UndeployIssueModel( @@ -704,6 +1220,63 @@ ContactCenterInsightsConnectionImpl::UndeployIssueModel( polling_policy(*current), __func__); } +StatusOr +ContactCenterInsightsConnectionImpl::UndeployIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UndeployIssueModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::contactcenterinsights::v1:: + UndeployIssueModelRequest const& request) { + return stub_->UndeployIssueModel(context, options, request); + }, + *current, request, __func__); +} + +future> +ContactCenterInsightsConnectionImpl::UndeployIssueModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UndeployIssueModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::contactcenterinsights::v1::UndeployIssueModelResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::contactcenterinsights::v1::UndeployIssueModelResponse>, + polling_policy(*current), __func__); +} + StatusOr ContactCenterInsightsConnectionImpl::GetIssue( google::cloud::contactcenterinsights::v1::GetIssueRequest const& request) { diff --git a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.h b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.h index e47c8c9913c67..89abf9bab720d 100644 --- a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.h +++ b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.h @@ -64,6 +64,15 @@ class ContactCenterInsightsConnectionImpl google::cloud::contactcenterinsights::v1::UploadConversationRequest const& request) override; + StatusOr UploadConversation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::UploadConversationRequest const& + request) override; + + future> + UploadConversation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateConversation( google::cloud::contactcenterinsights::v1::UpdateConversationRequest const& @@ -88,6 +97,15 @@ class ContactCenterInsightsConnectionImpl google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& request) override; + StatusOr CreateAnalysis( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& + request) override; + + future> + CreateAnalysis(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAnalysis( google::cloud::contactcenterinsights::v1::GetAnalysisRequest const& request) override; @@ -106,28 +124,79 @@ class ContactCenterInsightsConnectionImpl google::cloud::contactcenterinsights::v1:: BulkAnalyzeConversationsRequest const& request) override; + StatusOr BulkAnalyzeConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + BulkAnalyzeConversationsRequest const& request) override; + + future> + BulkAnalyzeConversations( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BulkDeleteConversations( google::cloud::contactcenterinsights::v1:: BulkDeleteConversationsRequest const& request) override; + StatusOr BulkDeleteConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + BulkDeleteConversationsRequest const& request) override; + + future> + BulkDeleteConversations( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> IngestConversations(google::cloud::contactcenterinsights::v1:: IngestConversationsRequest const& request) override; + StatusOr IngestConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + IngestConversationsRequest const& request) override; + + future> + IngestConversations(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportInsightsData( google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const& request) override; + StatusOr ExportInsightsData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const& + request) override; + + future> + ExportInsightsData(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateIssueModel( google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& request) override; + StatusOr CreateIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& + request) override; + + future> + CreateIssueModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateIssueModel( google::cloud::contactcenterinsights::v1::UpdateIssueModelRequest const& @@ -148,18 +217,48 @@ class ContactCenterInsightsConnectionImpl google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& request) override; + StatusOr DeleteIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& + request) override; + + future> + DeleteIssueModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeployIssueModel( google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& request) override; + StatusOr DeployIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& + request) override; + + future> + DeployIssueModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeployIssueModel( google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const& request) override; + StatusOr UndeployIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const& + request) override; + + future> + UndeployIssueModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIssue( google::cloud::contactcenterinsights::v1::GetIssueRequest const& request) override; diff --git a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.cc b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.cc index bfb62405900a2..019bb04fab78e 100644 --- a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.cc +++ b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.cc @@ -57,6 +57,33 @@ ContactCenterInsightsTracingConnection::UploadConversation( child_->UploadConversation(request)); } +StatusOr +ContactCenterInsightsTracingConnection::UploadConversation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::UploadConversationRequest const& + request) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "UploadConversation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UploadConversation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ContactCenterInsightsTracingConnection::UploadConversation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "UploadConversation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UploadConversation(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ContactCenterInsightsTracingConnection::UpdateConversation( google::cloud::contactcenterinsights::v1::UpdateConversationRequest const& @@ -114,6 +141,33 @@ ContactCenterInsightsTracingConnection::CreateAnalysis( return internal::EndSpan(std::move(span), child_->CreateAnalysis(request)); } +StatusOr +ContactCenterInsightsTracingConnection::CreateAnalysis( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& + request) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "CreateAnalysis"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateAnalysis(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ContactCenterInsightsTracingConnection::CreateAnalysis( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "CreateAnalysis"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateAnalysis(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ContactCenterInsightsTracingConnection::GetAnalysis( google::cloud::contactcenterinsights::v1::GetAnalysisRequest const& @@ -160,6 +214,34 @@ ContactCenterInsightsTracingConnection::BulkAnalyzeConversations( child_->BulkAnalyzeConversations(request)); } +StatusOr +ContactCenterInsightsTracingConnection::BulkAnalyzeConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + BulkAnalyzeConversationsRequest const& request) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "BulkAnalyzeConversations"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->BulkAnalyzeConversations( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ContactCenterInsightsTracingConnection::BulkAnalyzeConversations( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "BulkAnalyzeConversations"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->BulkAnalyzeConversations( + google::cloud::ExperimentalTag{}, operation)); +} + future> ContactCenterInsightsTracingConnection::BulkDeleteConversations( @@ -173,6 +255,34 @@ ContactCenterInsightsTracingConnection::BulkDeleteConversations( child_->BulkDeleteConversations(request)); } +StatusOr +ContactCenterInsightsTracingConnection::BulkDeleteConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + BulkDeleteConversationsRequest const& request) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "BulkDeleteConversations"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->BulkDeleteConversations( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ContactCenterInsightsTracingConnection::BulkDeleteConversations( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "BulkDeleteConversations"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->BulkDeleteConversations( + google::cloud::ExperimentalTag{}, operation)); +} + future> ContactCenterInsightsTracingConnection::IngestConversations( @@ -186,6 +296,34 @@ ContactCenterInsightsTracingConnection::IngestConversations( child_->IngestConversations(request)); } +StatusOr +ContactCenterInsightsTracingConnection::IngestConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::IngestConversationsRequest const& + request) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "IngestConversations"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->IngestConversations(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ContactCenterInsightsTracingConnection::IngestConversations( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "IngestConversations"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->IngestConversations(google::cloud::ExperimentalTag{}, operation)); +} + future> ContactCenterInsightsTracingConnection::ExportInsightsData( @@ -199,6 +337,34 @@ ContactCenterInsightsTracingConnection::ExportInsightsData( child_->ExportInsightsData(request)); } +StatusOr +ContactCenterInsightsTracingConnection::ExportInsightsData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const& + request) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "ExportInsightsData"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportInsightsData(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ContactCenterInsightsTracingConnection::ExportInsightsData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "ExportInsightsData"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportInsightsData(google::cloud::ExperimentalTag{}, operation)); +} + future> ContactCenterInsightsTracingConnection::CreateIssueModel( google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& @@ -210,6 +376,33 @@ ContactCenterInsightsTracingConnection::CreateIssueModel( return internal::EndSpan(std::move(span), child_->CreateIssueModel(request)); } +StatusOr +ContactCenterInsightsTracingConnection::CreateIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& + request) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "CreateIssueModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateIssueModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ContactCenterInsightsTracingConnection::CreateIssueModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "CreateIssueModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateIssueModel(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ContactCenterInsightsTracingConnection::UpdateIssueModel( google::cloud::contactcenterinsights::v1::UpdateIssueModelRequest const& @@ -255,6 +448,34 @@ ContactCenterInsightsTracingConnection::DeleteIssueModel( return internal::EndSpan(std::move(span), child_->DeleteIssueModel(request)); } +StatusOr +ContactCenterInsightsTracingConnection::DeleteIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& + request) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "DeleteIssueModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteIssueModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ContactCenterInsightsTracingConnection::DeleteIssueModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "DeleteIssueModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteIssueModel(google::cloud::ExperimentalTag{}, operation)); +} + future> ContactCenterInsightsTracingConnection::DeployIssueModel( @@ -267,6 +488,34 @@ ContactCenterInsightsTracingConnection::DeployIssueModel( return internal::EndSpan(std::move(span), child_->DeployIssueModel(request)); } +StatusOr +ContactCenterInsightsTracingConnection::DeployIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& + request) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "DeployIssueModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeployIssueModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ContactCenterInsightsTracingConnection::DeployIssueModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "DeployIssueModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeployIssueModel(google::cloud::ExperimentalTag{}, operation)); +} + future> ContactCenterInsightsTracingConnection::UndeployIssueModel( @@ -280,6 +529,34 @@ ContactCenterInsightsTracingConnection::UndeployIssueModel( child_->UndeployIssueModel(request)); } +StatusOr +ContactCenterInsightsTracingConnection::UndeployIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const& + request) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "UndeployIssueModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UndeployIssueModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ContactCenterInsightsTracingConnection::UndeployIssueModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "contactcenterinsights_v1::ContactCenterInsightsConnection::" + "UndeployIssueModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UndeployIssueModel(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ContactCenterInsightsTracingConnection::GetIssue( google::cloud::contactcenterinsights::v1::GetIssueRequest const& request) { diff --git a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.h b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.h index 7ba7ada9817a6..ce1af9cbce1d0 100644 --- a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.h +++ b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.h @@ -51,6 +51,15 @@ class ContactCenterInsightsTracingConnection google::cloud::contactcenterinsights::v1::UploadConversationRequest const& request) override; + StatusOr UploadConversation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::UploadConversationRequest const& + request) override; + + future> + UploadConversation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateConversation( google::cloud::contactcenterinsights::v1::UpdateConversationRequest const& @@ -75,6 +84,15 @@ class ContactCenterInsightsTracingConnection google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& request) override; + StatusOr CreateAnalysis( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& + request) override; + + future> + CreateAnalysis(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAnalysis( google::cloud::contactcenterinsights::v1::GetAnalysisRequest const& request) override; @@ -93,28 +111,79 @@ class ContactCenterInsightsTracingConnection google::cloud::contactcenterinsights::v1:: BulkAnalyzeConversationsRequest const& request) override; + StatusOr BulkAnalyzeConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + BulkAnalyzeConversationsRequest const& request) override; + + future> + BulkAnalyzeConversations( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BulkDeleteConversations( google::cloud::contactcenterinsights::v1:: BulkDeleteConversationsRequest const& request) override; + StatusOr BulkDeleteConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + BulkDeleteConversationsRequest const& request) override; + + future> + BulkDeleteConversations( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> IngestConversations(google::cloud::contactcenterinsights::v1:: IngestConversationsRequest const& request) override; + StatusOr IngestConversations( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + IngestConversationsRequest const& request) override; + + future> + IngestConversations(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportInsightsData( google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const& request) override; + StatusOr ExportInsightsData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const& + request) override; + + future> + ExportInsightsData(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateIssueModel( google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& request) override; + StatusOr CreateIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& + request) override; + + future> + CreateIssueModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateIssueModel( google::cloud::contactcenterinsights::v1::UpdateIssueModelRequest const& @@ -135,18 +204,48 @@ class ContactCenterInsightsTracingConnection google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& request) override; + StatusOr DeleteIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& + request) override; + + future> + DeleteIssueModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeployIssueModel( google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& request) override; + StatusOr DeployIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& + request) override; + + future> + DeployIssueModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeployIssueModel( google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const& request) override; + StatusOr UndeployIssueModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const& + request) override; + + future> + UndeployIssueModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIssue( google::cloud::contactcenterinsights::v1::GetIssueRequest const& request) override; diff --git a/google/cloud/contactcenterinsights/v1/mocks/mock_contact_center_insights_connection.h b/google/cloud/contactcenterinsights/v1/mocks/mock_contact_center_insights_connection.h index 17450092fab9d..decc307e5fb34 100644 --- a/google/cloud/contactcenterinsights/v1/mocks/mock_contact_center_insights_connection.h +++ b/google/cloud/contactcenterinsights/v1/mocks/mock_contact_center_insights_connection.h @@ -60,6 +60,19 @@ class MockContactCenterInsightsConnection UploadConversationRequest const& request), (override)); + MOCK_METHOD(StatusOr, UploadConversation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + UploadConversationRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UploadConversation, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, UpdateConversation, (google::cloud::contactcenterinsights::v1:: @@ -92,6 +105,20 @@ class MockContactCenterInsightsConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateAnalysis, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateAnalysis, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetAnalysis, (google::cloud::contactcenterinsights::v1::GetAnalysisRequest const& @@ -117,6 +144,20 @@ class MockContactCenterInsightsConnection BulkAnalyzeConversationsRequest const& request), (override)); + MOCK_METHOD(StatusOr, + BulkAnalyzeConversations, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + BulkAnalyzeConversationsRequest const& request), + (override)); + + MOCK_METHOD(future>, + BulkAnalyzeConversations, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, BulkDeleteConversations, @@ -124,6 +165,19 @@ class MockContactCenterInsightsConnection BulkDeleteConversationsRequest const& request), (override)); + MOCK_METHOD(StatusOr, BulkDeleteConversations, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + BulkDeleteConversationsRequest const& request), + (override)); + + MOCK_METHOD(future>, + BulkDeleteConversations, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, IngestConversations, @@ -131,6 +185,19 @@ class MockContactCenterInsightsConnection IngestConversationsRequest const& request), (override)); + MOCK_METHOD(StatusOr, IngestConversations, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + IngestConversationsRequest const& request), + (override)); + + MOCK_METHOD(future>, + IngestConversations, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, ExportInsightsData, @@ -138,6 +205,19 @@ class MockContactCenterInsightsConnection ExportInsightsDataRequest const& request), (override)); + MOCK_METHOD(StatusOr, ExportInsightsData, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + ExportInsightsDataRequest const& request), + (override)); + + MOCK_METHOD(future>, + ExportInsightsData, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateIssueModel, @@ -145,6 +225,20 @@ class MockContactCenterInsightsConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateIssueModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateIssueModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, UpdateIssueModel, @@ -175,6 +269,21 @@ class MockContactCenterInsightsConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteIssueModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteIssueModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -183,6 +292,21 @@ class MockContactCenterInsightsConnection request), (override)); + MOCK_METHOD( + StatusOr, DeployIssueModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeployIssueModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UndeployIssueModel, @@ -190,6 +314,19 @@ class MockContactCenterInsightsConnection UndeployIssueModelRequest const& request), (override)); + MOCK_METHOD(StatusOr, UndeployIssueModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contactcenterinsights::v1:: + UndeployIssueModelRequest const& request), + (override)); + + MOCK_METHOD(future>, + UndeployIssueModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetIssue, (google::cloud::contactcenterinsights::v1::GetIssueRequest const& diff --git a/google/cloud/container/v1/cluster_manager_connection.h b/google/cloud/container/v1/cluster_manager_connection.h index 9697611e4838b..1a0f592f3f587 100644 --- a/google/cloud/container/v1/cluster_manager_connection.h +++ b/google/cloud/container/v1/cluster_manager_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/container/v1/cluster_manager_connection_idempotency_policy.h" #include "google/cloud/container/v1/internal/cluster_manager_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/containeranalysis/v1/container_analysis_connection.h b/google/cloud/containeranalysis/v1/container_analysis_connection.h index 972f5ee22ab4c..0a569e5d7cfca 100644 --- a/google/cloud/containeranalysis/v1/container_analysis_connection.h +++ b/google/cloud/containeranalysis/v1/container_analysis_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/containeranalysis/v1/container_analysis_connection_idempotency_policy.h" #include "google/cloud/containeranalysis/v1/internal/container_analysis_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/containeranalysis/v1/grafeas_connection.h b/google/cloud/containeranalysis/v1/grafeas_connection.h index c5a86effc70f4..eca7fb25e605d 100644 --- a/google/cloud/containeranalysis/v1/grafeas_connection.h +++ b/google/cloud/containeranalysis/v1/grafeas_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/containeranalysis/v1/grafeas_connection_idempotency_policy.h" #include "google/cloud/containeranalysis/v1/internal/grafeas_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/contentwarehouse/v1/document_connection.h b/google/cloud/contentwarehouse/v1/document_connection.h index 77b53c930ebfc..8b89765b3884a 100644 --- a/google/cloud/contentwarehouse/v1/document_connection.h +++ b/google/cloud/contentwarehouse/v1/document_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/contentwarehouse/v1/document_connection_idempotency_policy.h" #include "google/cloud/contentwarehouse/v1/internal/document_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/contentwarehouse/v1/document_link_connection.h b/google/cloud/contentwarehouse/v1/document_link_connection.h index 60df6bb141413..1e9f47f08fad1 100644 --- a/google/cloud/contentwarehouse/v1/document_link_connection.h +++ b/google/cloud/contentwarehouse/v1/document_link_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/contentwarehouse/v1/document_link_connection_idempotency_policy.h" #include "google/cloud/contentwarehouse/v1/internal/document_link_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/contentwarehouse/v1/document_schema_connection.h b/google/cloud/contentwarehouse/v1/document_schema_connection.h index c0be62ed766c0..9c9b5d95eb487 100644 --- a/google/cloud/contentwarehouse/v1/document_schema_connection.h +++ b/google/cloud/contentwarehouse/v1/document_schema_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/contentwarehouse/v1/document_schema_connection_idempotency_policy.h" #include "google/cloud/contentwarehouse/v1/internal/document_schema_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.cc b/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.cc index daa71f0699131..f0c7d24681082 100644 --- a/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.cc +++ b/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.cc @@ -107,6 +107,61 @@ PipelineServiceConnectionImpl::RunPipeline( polling_policy(*current), __func__); } +StatusOr +PipelineServiceConnectionImpl::RunPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contentwarehouse::v1::RunPipelineRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RunPipeline(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::contentwarehouse::v1::RunPipelineRequest const& + request) { + return stub_->RunPipeline(context, options, request); + }, + *current, request, __func__); +} + +future> +PipelineServiceConnectionImpl::RunPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RunPipeline", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::contentwarehouse::v1::RunPipelineResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::contentwarehouse::v1::RunPipelineResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace contentwarehouse_v1_internal } // namespace cloud diff --git a/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.h b/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.h index 61ec21b947b77..412b2cbdaa529 100644 --- a/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.h +++ b/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.h @@ -55,6 +55,15 @@ class PipelineServiceConnectionImpl RunPipeline(google::cloud::contentwarehouse::v1::RunPipelineRequest const& request) override; + StatusOr RunPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contentwarehouse::v1::RunPipelineRequest const& request) + override; + + future> + RunPipeline(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.cc b/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.cc index 55e6d8562af21..54199adb60b6c 100644 --- a/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.cc +++ b/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.cc @@ -41,6 +41,30 @@ PipelineServiceTracingConnection::RunPipeline( return internal::EndSpan(std::move(span), child_->RunPipeline(request)); } +StatusOr +PipelineServiceTracingConnection::RunPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contentwarehouse::v1::RunPipelineRequest const& request) { + auto span = internal::MakeSpan( + "contentwarehouse_v1::PipelineServiceConnection::RunPipeline"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RunPipeline(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PipelineServiceTracingConnection::RunPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "contentwarehouse_v1::PipelineServiceConnection::RunPipeline"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RunPipeline(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.h b/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.h index 84d926c724f92..70cd82a315e35 100644 --- a/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.h +++ b/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.h @@ -44,6 +44,15 @@ class PipelineServiceTracingConnection RunPipeline(google::cloud::contentwarehouse::v1::RunPipelineRequest const& request) override; + StatusOr RunPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contentwarehouse::v1::RunPipelineRequest const& request) + override; + + future> + RunPipeline(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/contentwarehouse/v1/mocks/mock_pipeline_connection.h b/google/cloud/contentwarehouse/v1/mocks/mock_pipeline_connection.h index fe244d679edb3..dbf2b3346bd04 100644 --- a/google/cloud/contentwarehouse/v1/mocks/mock_pipeline_connection.h +++ b/google/cloud/contentwarehouse/v1/mocks/mock_pipeline_connection.h @@ -53,6 +53,20 @@ class MockPipelineServiceConnection RunPipeline, (google::cloud::contentwarehouse::v1::RunPipelineRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, RunPipeline, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contentwarehouse::v1::RunPipelineRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + RunPipeline, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/contentwarehouse/v1/pipeline_connection.cc b/google/cloud/contentwarehouse/v1/pipeline_connection.cc index a0c2eddfb3d61..96e1fb4d152a2 100644 --- a/google/cloud/contentwarehouse/v1/pipeline_connection.cc +++ b/google/cloud/contentwarehouse/v1/pipeline_connection.cc @@ -45,6 +45,21 @@ PipelineServiceConnection::RunPipeline( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr PipelineServiceConnection::RunPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contentwarehouse::v1::RunPipelineRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PipelineServiceConnection::RunPipeline(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakePipelineServiceConnection( Options options) { internal::CheckExpectedOptions> RunPipeline( google::cloud::contentwarehouse::v1::RunPipelineRequest const& request); + + virtual StatusOr RunPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::contentwarehouse::v1::RunPipelineRequest const& request); + + virtual future< + StatusOr> + RunPipeline(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/contentwarehouse/v1/rule_set_connection.h b/google/cloud/contentwarehouse/v1/rule_set_connection.h index 9413fb5d04040..2c9a9f4e5337a 100644 --- a/google/cloud/contentwarehouse/v1/rule_set_connection.h +++ b/google/cloud/contentwarehouse/v1/rule_set_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/contentwarehouse/v1/internal/rule_set_retry_traits.h" #include "google/cloud/contentwarehouse/v1/rule_set_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/contentwarehouse/v1/synonym_set_connection.h b/google/cloud/contentwarehouse/v1/synonym_set_connection.h index 73dcf8fac465e..1737822498de0 100644 --- a/google/cloud/contentwarehouse/v1/synonym_set_connection.h +++ b/google/cloud/contentwarehouse/v1/synonym_set_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/contentwarehouse/v1/internal/synonym_set_retry_traits.h" #include "google/cloud/contentwarehouse/v1/synonym_set_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.cc b/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.cc index 2d81c417a0bb7..46dbbbca867a6 100644 --- a/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.cc +++ b/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.cc @@ -209,6 +209,62 @@ LineageConnectionImpl::DeleteProcess( polling_policy(*current), __func__); } +StatusOr LineageConnectionImpl::DeleteProcess( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteProcess(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& + request) { + return stub_->DeleteProcess(context, options, request); + }, + *current, request, __func__); +} + +future> +LineageConnectionImpl::DeleteProcess( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteProcess", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datacatalog::lineage::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::datacatalog::lineage::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr LineageConnectionImpl::CreateRun( google::cloud::datacatalog::lineage::v1::CreateRunRequest const& request) { @@ -326,6 +382,60 @@ LineageConnectionImpl::DeleteRun( polling_policy(*current), __func__); } +StatusOr LineageConnectionImpl::DeleteRun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteRun(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& + request) { + return stub_->DeleteRun(context, options, request); + }, + *current, request, __func__); +} + +future> +LineageConnectionImpl::DeleteRun( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteRun", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datacatalog::lineage::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::datacatalog::lineage::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr LineageConnectionImpl::CreateLineageEvent( google::cloud::datacatalog::lineage::v1::CreateLineageEventRequest const& diff --git a/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.h b/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.h index 13e26276b81aa..1225bcc664cbe 100644 --- a/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.h +++ b/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.h @@ -78,6 +78,15 @@ class LineageConnectionImpl : public datacatalog_lineage_v1::LineageConnection { google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& request) override; + StatusOr DeleteProcess( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& + request) override; + + future> + DeleteProcess(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateRun( google::cloud::datacatalog::lineage::v1::CreateRunRequest const& request) override; @@ -98,6 +107,15 @@ class LineageConnectionImpl : public datacatalog_lineage_v1::LineageConnection { DeleteRun(google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request) override; + StatusOr DeleteRun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request) + override; + + future> + DeleteRun(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateLineageEvent( google::cloud::datacatalog::lineage::v1::CreateLineageEventRequest const& diff --git a/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.cc b/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.cc index bd1e06a3570b0..336216f4fd63d 100644 --- a/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.cc +++ b/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.cc @@ -95,6 +95,31 @@ LineageTracingConnection::DeleteProcess( return internal::EndSpan(std::move(span), child_->DeleteProcess(request)); } +StatusOr +LineageTracingConnection::DeleteProcess( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& + request) { + auto span = internal::MakeSpan( + "datacatalog_lineage_v1::LineageConnection::DeleteProcess"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteProcess(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +LineageTracingConnection::DeleteProcess( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datacatalog_lineage_v1::LineageConnection::DeleteProcess"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteProcess(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr LineageTracingConnection::CreateRun( google::cloud::datacatalog::lineage::v1::CreateRunRequest const& request) { @@ -143,6 +168,29 @@ LineageTracingConnection::DeleteRun( return internal::EndSpan(std::move(span), child_->DeleteRun(request)); } +StatusOr LineageTracingConnection::DeleteRun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request) { + auto span = internal::MakeSpan( + "datacatalog_lineage_v1::LineageConnection::DeleteRun"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteRun(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +LineageTracingConnection::DeleteRun( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datacatalog_lineage_v1::LineageConnection::DeleteRun"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteRun(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr LineageTracingConnection::CreateLineageEvent( google::cloud::datacatalog::lineage::v1::CreateLineageEventRequest const& diff --git a/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.h b/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.h index 59c8aa72c1311..810c29124ce86 100644 --- a/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.h +++ b/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.h @@ -67,6 +67,15 @@ class LineageTracingConnection google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& request) override; + StatusOr DeleteProcess( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& + request) override; + + future> + DeleteProcess(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateRun( google::cloud::datacatalog::lineage::v1::CreateRunRequest const& request) override; @@ -87,6 +96,15 @@ class LineageTracingConnection DeleteRun(google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request) override; + StatusOr DeleteRun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request) + override; + + future> + DeleteRun(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateLineageEvent( google::cloud::datacatalog::lineage::v1::CreateLineageEventRequest const& diff --git a/google/cloud/datacatalog/lineage/v1/lineage_connection.cc b/google/cloud/datacatalog/lineage/v1/lineage_connection.cc index 4e91304718cc2..8c7850362df3e 100644 --- a/google/cloud/datacatalog/lineage/v1/lineage_connection.cc +++ b/google/cloud/datacatalog/lineage/v1/lineage_connection.cc @@ -80,6 +80,21 @@ LineageConnection::DeleteProcess( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr LineageConnection::DeleteProcess( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +LineageConnection::DeleteProcess(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr LineageConnection::CreateRun( google::cloud::datacatalog::lineage::v1::CreateRunRequest const&) { @@ -114,6 +129,21 @@ LineageConnection::DeleteRun( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr LineageConnection::DeleteRun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::lineage::v1::DeleteRunRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +LineageConnection::DeleteRun(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr LineageConnection::CreateLineageEvent( google::cloud::datacatalog::lineage::v1::CreateLineageEventRequest const&) { diff --git a/google/cloud/datacatalog/lineage/v1/lineage_connection.h b/google/cloud/datacatalog/lineage/v1/lineage_connection.h index b49080a2907bc..4839aaea7582e 100644 --- a/google/cloud/datacatalog/lineage/v1/lineage_connection.h +++ b/google/cloud/datacatalog/lineage/v1/lineage_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/datacatalog/lineage/v1/internal/lineage_retry_traits.h" #include "google/cloud/datacatalog/lineage/v1/lineage_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -212,6 +214,16 @@ class LineageConnection { google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& request); + virtual StatusOr DeleteProcess( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& + request); + + virtual future< + StatusOr> + DeleteProcess(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateRun( google::cloud::datacatalog::lineage::v1::CreateRunRequest const& request); @@ -229,6 +241,15 @@ class LineageConnection { DeleteRun( google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request); + virtual StatusOr DeleteRun( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request); + + virtual future< + StatusOr> + DeleteRun(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateLineageEvent( google::cloud::datacatalog::lineage::v1::CreateLineageEventRequest const& diff --git a/google/cloud/datacatalog/lineage/v1/mocks/mock_lineage_connection.h b/google/cloud/datacatalog/lineage/v1/mocks/mock_lineage_connection.h index 9f43765b47647..d97a8bfc02a82 100644 --- a/google/cloud/datacatalog/lineage/v1/mocks/mock_lineage_connection.h +++ b/google/cloud/datacatalog/lineage/v1/mocks/mock_lineage_connection.h @@ -85,6 +85,21 @@ class MockLineageConnection : public datacatalog_lineage_v1::LineageConnection { request), (override)); + MOCK_METHOD( + StatusOr, DeleteProcess, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteProcess, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, CreateRun, (google::cloud::datacatalog::lineage::v1::CreateRunRequest const& request), @@ -113,6 +128,20 @@ class MockLineageConnection : public datacatalog_lineage_v1::LineageConnection { request), (override)); + MOCK_METHOD(StatusOr, DeleteRun, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteRun, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CreateLineageEvent, diff --git a/google/cloud/datacatalog/v1/data_catalog_connection.cc b/google/cloud/datacatalog/v1/data_catalog_connection.cc index a47bb14715be3..7db5451d54010 100644 --- a/google/cloud/datacatalog/v1/data_catalog_connection.cc +++ b/google/cloud/datacatalog/v1/data_catalog_connection.cc @@ -209,6 +209,21 @@ DataCatalogConnection::ReconcileTags( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataCatalogConnection::ReconcileTags( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::v1::ReconcileTagsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataCatalogConnection::ReconcileTags(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DataCatalogConnection::StarEntry( google::cloud::datacatalog::v1::StarEntryRequest const&) { @@ -245,6 +260,21 @@ DataCatalogConnection::ImportEntries( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataCatalogConnection::ImportEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::v1::ImportEntriesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataCatalogConnection::ImportEntries(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeDataCatalogConnection( Options options) { internal::CheckExpectedOptions ReconcileTags( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::v1::ReconcileTagsRequest const& request); + + virtual future< + StatusOr> + ReconcileTags(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr StarEntry( google::cloud::datacatalog::v1::StarEntryRequest const& request); @@ -306,6 +317,15 @@ class DataCatalogConnection { StatusOr> ImportEntries( google::cloud::datacatalog::v1::ImportEntriesRequest const& request); + + virtual StatusOr ImportEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::v1::ImportEntriesRequest const& request); + + virtual future< + StatusOr> + ImportEntries(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.cc b/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.cc index 1410bf1e5908a..fa44659d86d84 100644 --- a/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.cc +++ b/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.cc @@ -585,6 +585,61 @@ DataCatalogConnectionImpl::ReconcileTags( polling_policy(*current), __func__); } +StatusOr +DataCatalogConnectionImpl::ReconcileTags( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::v1::ReconcileTagsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ReconcileTags(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::datacatalog::v1::ReconcileTagsRequest const& request) { + return stub_->ReconcileTags(context, options, request); + }, + *current, request, __func__); +} + +future> +DataCatalogConnectionImpl::ReconcileTags( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ReconcileTags", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datacatalog::v1::ReconcileTagsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::datacatalog::v1::ReconcileTagsResponse>, + polling_policy(*current), __func__); +} + StatusOr DataCatalogConnectionImpl::StarEntry( google::cloud::datacatalog::v1::StarEntryRequest const& request) { @@ -693,6 +748,61 @@ DataCatalogConnectionImpl::ImportEntries( polling_policy(*current), __func__); } +StatusOr +DataCatalogConnectionImpl::ImportEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::v1::ImportEntriesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportEntries(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::datacatalog::v1::ImportEntriesRequest const& request) { + return stub_->ImportEntries(context, options, request); + }, + *current, request, __func__); +} + +future> +DataCatalogConnectionImpl::ImportEntries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportEntries", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datacatalog::v1::ImportEntriesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::datacatalog::v1::ImportEntriesResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace datacatalog_v1_internal } // namespace cloud diff --git a/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.h b/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.h index 04fa7b61c98a7..3cb521493f203 100644 --- a/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.h +++ b/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.h @@ -159,6 +159,15 @@ class DataCatalogConnectionImpl : public datacatalog_v1::DataCatalogConnection { ReconcileTags(google::cloud::datacatalog::v1::ReconcileTagsRequest const& request) override; + StatusOr ReconcileTags( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::v1::ReconcileTagsRequest const& request) + override; + + future> + ReconcileTags(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr StarEntry( google::cloud::datacatalog::v1::StarEntryRequest const& request) override; @@ -179,6 +188,15 @@ class DataCatalogConnectionImpl : public datacatalog_v1::DataCatalogConnection { ImportEntries(google::cloud::datacatalog::v1::ImportEntriesRequest const& request) override; + StatusOr ImportEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::v1::ImportEntriesRequest const& request) + override; + + future> + ImportEntries(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.cc b/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.cc index b0d61f44dc471..02f0bd86faeef 100644 --- a/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.cc +++ b/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.cc @@ -296,6 +296,30 @@ DataCatalogTracingConnection::ReconcileTags( return internal::EndSpan(std::move(span), child_->ReconcileTags(request)); } +StatusOr +DataCatalogTracingConnection::ReconcileTags( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::v1::ReconcileTagsRequest const& request) { + auto span = internal::MakeSpan( + "datacatalog_v1::DataCatalogConnection::ReconcileTags"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ReconcileTags(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataCatalogTracingConnection::ReconcileTags( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datacatalog_v1::DataCatalogConnection::ReconcileTags"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ReconcileTags(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DataCatalogTracingConnection::StarEntry( google::cloud::datacatalog::v1::StarEntryRequest const& request) { @@ -348,6 +372,30 @@ DataCatalogTracingConnection::ImportEntries( return internal::EndSpan(std::move(span), child_->ImportEntries(request)); } +StatusOr +DataCatalogTracingConnection::ImportEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::v1::ImportEntriesRequest const& request) { + auto span = internal::MakeSpan( + "datacatalog_v1::DataCatalogConnection::ImportEntries"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportEntries(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataCatalogTracingConnection::ImportEntries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datacatalog_v1::DataCatalogConnection::ImportEntries"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportEntries(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.h b/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.h index d1dce7d1be4be..8df3a9f4b35ed 100644 --- a/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.h +++ b/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.h @@ -148,6 +148,15 @@ class DataCatalogTracingConnection ReconcileTags(google::cloud::datacatalog::v1::ReconcileTagsRequest const& request) override; + StatusOr ReconcileTags( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::v1::ReconcileTagsRequest const& request) + override; + + future> + ReconcileTags(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr StarEntry( google::cloud::datacatalog::v1::StarEntryRequest const& request) override; @@ -168,6 +177,15 @@ class DataCatalogTracingConnection ImportEntries(google::cloud::datacatalog::v1::ImportEntriesRequest const& request) override; + StatusOr ImportEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::v1::ImportEntriesRequest const& request) + override; + + future> + ImportEntries(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/datacatalog/v1/mocks/mock_data_catalog_connection.h b/google/cloud/datacatalog/v1/mocks/mock_data_catalog_connection.h index aee151e551e42..eb1f8a36a14e0 100644 --- a/google/cloud/datacatalog/v1/mocks/mock_data_catalog_connection.h +++ b/google/cloud/datacatalog/v1/mocks/mock_data_catalog_connection.h @@ -192,6 +192,19 @@ class MockDataCatalogConnection : public datacatalog_v1::DataCatalogConnection { (google::cloud::datacatalog::v1::ReconcileTagsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ReconcileTags, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::v1::ReconcileTagsRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ReconcileTags, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, StarEntry, (google::cloud::datacatalog::v1::StarEntryRequest const& request), @@ -221,6 +234,19 @@ class MockDataCatalogConnection : public datacatalog_v1::DataCatalogConnection { ImportEntries, (google::cloud::datacatalog::v1::ImportEntriesRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, ImportEntries, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datacatalog::v1::ImportEntriesRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ImportEntries, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/datacatalog/v1/policy_tag_manager_connection.h b/google/cloud/datacatalog/v1/policy_tag_manager_connection.h index 532a53b50332e..fa0fc0d5b1430 100644 --- a/google/cloud/datacatalog/v1/policy_tag_manager_connection.h +++ b/google/cloud/datacatalog/v1/policy_tag_manager_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/datacatalog/v1/internal/policy_tag_manager_retry_traits.h" #include "google/cloud/datacatalog/v1/policy_tag_manager_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/datacatalog/v1/policy_tag_manager_serialization_connection.h b/google/cloud/datacatalog/v1/policy_tag_manager_serialization_connection.h index 381416bbfe55d..09e6652ff6e5b 100644 --- a/google/cloud/datacatalog/v1/policy_tag_manager_serialization_connection.h +++ b/google/cloud/datacatalog/v1/policy_tag_manager_serialization_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/datacatalog/v1/internal/policy_tag_manager_serialization_retry_traits.h" #include "google/cloud/datacatalog/v1/policy_tag_manager_serialization_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/datafusion/v1/data_fusion_connection.cc b/google/cloud/datafusion/v1/data_fusion_connection.cc index bb9d80cac39c3..522caa8b30e16 100644 --- a/google/cloud/datafusion/v1/data_fusion_connection.cc +++ b/google/cloud/datafusion/v1/data_fusion_connection.cc @@ -68,6 +68,21 @@ DataFusionConnection::CreateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataFusionConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::CreateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataFusionConnection::CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataFusionConnection::DeleteInstance( google::cloud::datafusion::v1::DeleteInstanceRequest const&) { @@ -76,6 +91,21 @@ DataFusionConnection::DeleteInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataFusionConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::DeleteInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataFusionConnection::DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataFusionConnection::UpdateInstance( google::cloud::datafusion::v1::UpdateInstanceRequest const&) { @@ -84,6 +114,21 @@ DataFusionConnection::UpdateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataFusionConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::UpdateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataFusionConnection::UpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataFusionConnection::RestartInstance( google::cloud::datafusion::v1::RestartInstanceRequest const&) { @@ -92,6 +137,21 @@ DataFusionConnection::RestartInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataFusionConnection::RestartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::RestartInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataFusionConnection::RestartInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeDataFusionConnection( Options options) { internal::CheckExpectedOptions CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::CreateInstanceRequest const& request); + + virtual future> + CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteInstance( google::cloud::datafusion::v1::DeleteInstanceRequest const& request); + virtual StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::DeleteInstanceRequest const& request); + + virtual future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateInstance( google::cloud::datafusion::v1::UpdateInstanceRequest const& request); + virtual StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::UpdateInstanceRequest const& request); + + virtual future> + UpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RestartInstance( google::cloud::datafusion::v1::RestartInstanceRequest const& request); + + virtual StatusOr RestartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::RestartInstanceRequest const& request); + + virtual future> + RestartInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.cc b/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.cc index 2661c7497053c..4559fbfba3767 100644 --- a/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.cc +++ b/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.cc @@ -187,6 +187,59 @@ DataFusionConnectionImpl::CreateInstance( polling_policy(*current), __func__); } +StatusOr +DataFusionConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::CreateInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::datafusion::v1::CreateInstanceRequest const& request) { + return stub_->CreateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +DataFusionConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datafusion::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::datafusion::v1::Instance>, + polling_policy(*current), __func__); +} + future> DataFusionConnectionImpl::DeleteInstance( google::cloud::datafusion::v1::DeleteInstanceRequest const& request) { @@ -226,6 +279,60 @@ DataFusionConnectionImpl::DeleteInstance( polling_policy(*current), __func__); } +StatusOr +DataFusionConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::DeleteInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::datafusion::v1::DeleteInstanceRequest const& request) { + return stub_->DeleteInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +DataFusionConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datafusion::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::datafusion::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> DataFusionConnectionImpl::UpdateInstance( google::cloud::datafusion::v1::UpdateInstanceRequest const& request) { @@ -265,6 +372,59 @@ DataFusionConnectionImpl::UpdateInstance( polling_policy(*current), __func__); } +StatusOr +DataFusionConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::UpdateInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::datafusion::v1::UpdateInstanceRequest const& request) { + return stub_->UpdateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +DataFusionConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datafusion::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::datafusion::v1::Instance>, + polling_policy(*current), __func__); +} + future> DataFusionConnectionImpl::RestartInstance( google::cloud::datafusion::v1::RestartInstanceRequest const& request) { @@ -305,6 +465,59 @@ DataFusionConnectionImpl::RestartInstance( polling_policy(*current), __func__); } +StatusOr +DataFusionConnectionImpl::RestartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::RestartInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RestartInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::datafusion::v1::RestartInstanceRequest const& + request) { + return stub_->RestartInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +DataFusionConnectionImpl::RestartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RestartInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datafusion::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::datafusion::v1::Instance>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace datafusion_v1_internal } // namespace cloud diff --git a/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.h b/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.h index 84f4d121ec16a..42624b2cb8c11 100644 --- a/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.h +++ b/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.h @@ -66,18 +66,54 @@ class DataFusionConnectionImpl : public datafusion_v1::DataFusionConnection { google::cloud::datafusion::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::CreateInstanceRequest const& request) + override; + + future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteInstance(google::cloud::datafusion::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::DeleteInstanceRequest const& request) + override; + + future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstance( google::cloud::datafusion::v1::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::UpdateInstanceRequest const& request) + override; + + future> UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RestartInstance( google::cloud::datafusion::v1::RestartInstanceRequest const& request) override; + StatusOr RestartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::RestartInstanceRequest const& request) + override; + + future> RestartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.cc b/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.cc index c1fcf93dd67f1..776e3aebe1ab7 100644 --- a/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.cc +++ b/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.cc @@ -73,6 +73,30 @@ DataFusionTracingConnection::CreateInstance( return internal::EndSpan(std::move(span), child_->CreateInstance(request)); } +StatusOr +DataFusionTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::CreateInstanceRequest const& request) { + auto span = + internal::MakeSpan("datafusion_v1::DataFusionConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataFusionTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("datafusion_v1::DataFusionConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> DataFusionTracingConnection::DeleteInstance( google::cloud::datafusion::v1::DeleteInstanceRequest const& request) { @@ -82,6 +106,30 @@ DataFusionTracingConnection::DeleteInstance( return internal::EndSpan(std::move(span), child_->DeleteInstance(request)); } +StatusOr +DataFusionTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::DeleteInstanceRequest const& request) { + auto span = + internal::MakeSpan("datafusion_v1::DataFusionConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataFusionTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("datafusion_v1::DataFusionConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> DataFusionTracingConnection::UpdateInstance( google::cloud::datafusion::v1::UpdateInstanceRequest const& request) { @@ -91,6 +139,30 @@ DataFusionTracingConnection::UpdateInstance( return internal::EndSpan(std::move(span), child_->UpdateInstance(request)); } +StatusOr +DataFusionTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::UpdateInstanceRequest const& request) { + auto span = + internal::MakeSpan("datafusion_v1::DataFusionConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataFusionTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("datafusion_v1::DataFusionConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> DataFusionTracingConnection::RestartInstance( google::cloud::datafusion::v1::RestartInstanceRequest const& request) { @@ -100,6 +172,30 @@ DataFusionTracingConnection::RestartInstance( return internal::EndSpan(std::move(span), child_->RestartInstance(request)); } +StatusOr +DataFusionTracingConnection::RestartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::RestartInstanceRequest const& request) { + auto span = internal::MakeSpan( + "datafusion_v1::DataFusionConnection::RestartInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RestartInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataFusionTracingConnection::RestartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datafusion_v1::DataFusionConnection::RestartInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RestartInstance(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.h b/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.h index f854ac884f049..74063b43726d6 100644 --- a/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.h +++ b/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.h @@ -54,18 +54,54 @@ class DataFusionTracingConnection : public datafusion_v1::DataFusionConnection { google::cloud::datafusion::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::CreateInstanceRequest const& request) + override; + + future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteInstance(google::cloud::datafusion::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::DeleteInstanceRequest const& request) + override; + + future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstance( google::cloud::datafusion::v1::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::UpdateInstanceRequest const& request) + override; + + future> UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RestartInstance( google::cloud::datafusion::v1::RestartInstanceRequest const& request) override; + StatusOr RestartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::RestartInstanceRequest const& request) + override; + + future> RestartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/datafusion/v1/mocks/mock_data_fusion_connection.h b/google/cloud/datafusion/v1/mocks/mock_data_fusion_connection.h index 2851bfa1d100e..8160f82223bf6 100644 --- a/google/cloud/datafusion/v1/mocks/mock_data_fusion_connection.h +++ b/google/cloud/datafusion/v1/mocks/mock_data_fusion_connection.h @@ -67,22 +67,71 @@ class MockDataFusionConnection : public datafusion_v1::DataFusionConnection { (google::cloud::datafusion::v1::CreateInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::CreateInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteInstance, (google::cloud::datafusion::v1::DeleteInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::DeleteInstanceRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateInstance, (google::cloud::datafusion::v1::UpdateInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::UpdateInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RestartInstance, (google::cloud::datafusion::v1::RestartInstanceRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, RestartInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datafusion::v1::RestartInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + RestartInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/datamigration/v1/data_migration_connection.cc b/google/cloud/datamigration/v1/data_migration_connection.cc index 57ae087b6522e..b63d981e7331d 100644 --- a/google/cloud/datamigration/v1/data_migration_connection.cc +++ b/google/cloud/datamigration/v1/data_migration_connection.cc @@ -60,6 +60,22 @@ DataMigrationServiceConnection::CreateMigrationJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::CreateMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateMigrationJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::CreateMigrationJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataMigrationServiceConnection::UpdateMigrationJob( google::cloud::clouddms::v1::UpdateMigrationJobRequest const&) { @@ -68,6 +84,22 @@ DataMigrationServiceConnection::UpdateMigrationJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::UpdateMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateMigrationJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::UpdateMigrationJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataMigrationServiceConnection::DeleteMigrationJob( google::cloud::clouddms::v1::DeleteMigrationJobRequest const&) { @@ -76,6 +108,22 @@ DataMigrationServiceConnection::DeleteMigrationJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::DeleteMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteMigrationJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::DeleteMigrationJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataMigrationServiceConnection::StartMigrationJob( google::cloud::clouddms::v1::StartMigrationJobRequest const&) { @@ -84,9 +132,41 @@ DataMigrationServiceConnection::StartMigrationJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::StartMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::StartMigrationJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +DataMigrationServiceConnection::StartMigrationJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::StopMigrationJob( + google::cloud::clouddms::v1::StopMigrationJobRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr DataMigrationServiceConnection::StopMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::clouddms::v1::StopMigrationJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::StopMigrationJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -100,6 +180,22 @@ DataMigrationServiceConnection::ResumeMigrationJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::ResumeMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ResumeMigrationJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::ResumeMigrationJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataMigrationServiceConnection::PromoteMigrationJob( google::cloud::clouddms::v1::PromoteMigrationJobRequest const&) { @@ -108,6 +204,22 @@ DataMigrationServiceConnection::PromoteMigrationJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::PromoteMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::PromoteMigrationJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::PromoteMigrationJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataMigrationServiceConnection::VerifyMigrationJob( google::cloud::clouddms::v1::VerifyMigrationJobRequest const&) { @@ -116,6 +228,22 @@ DataMigrationServiceConnection::VerifyMigrationJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::VerifyMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::VerifyMigrationJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::VerifyMigrationJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataMigrationServiceConnection::RestartMigrationJob( google::cloud::clouddms::v1::RestartMigrationJobRequest const&) { @@ -124,6 +252,22 @@ DataMigrationServiceConnection::RestartMigrationJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::RestartMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::RestartMigrationJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::RestartMigrationJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DataMigrationServiceConnection::GenerateSshScript( google::cloud::clouddms::v1::GenerateSshScriptRequest const&) { @@ -158,9 +302,41 @@ DataMigrationServiceConnection::CreateConnectionProfile( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::CreateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateConnectionProfileRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +DataMigrationServiceConnection::CreateConnectionProfile( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::UpdateConnectionProfile( + google::cloud::clouddms::v1::UpdateConnectionProfileRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr DataMigrationServiceConnection::UpdateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::clouddms::v1::UpdateConnectionProfileRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::UpdateConnectionProfile( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -174,6 +350,22 @@ DataMigrationServiceConnection::DeleteConnectionProfile( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::DeleteConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteConnectionProfileRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::DeleteConnectionProfile( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataMigrationServiceConnection::CreatePrivateConnection( google::cloud::clouddms::v1::CreatePrivateConnectionRequest const&) { @@ -182,6 +374,22 @@ DataMigrationServiceConnection::CreatePrivateConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreatePrivateConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::CreatePrivateConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DataMigrationServiceConnection::GetPrivateConnection( google::cloud::clouddms::v1::GetPrivateConnectionRequest const&) { @@ -204,6 +412,22 @@ DataMigrationServiceConnection::DeletePrivateConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeletePrivateConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::DeletePrivateConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DataMigrationServiceConnection::GetConversionWorkspace( google::cloud::clouddms::v1::GetConversionWorkspaceRequest const&) { @@ -226,6 +450,22 @@ DataMigrationServiceConnection::CreateConversionWorkspace( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::CreateConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::CreateConversionWorkspace( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataMigrationServiceConnection::UpdateConversionWorkspace( google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const&) { @@ -234,6 +474,22 @@ DataMigrationServiceConnection::UpdateConversionWorkspace( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::UpdateConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::UpdateConversionWorkspace( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataMigrationServiceConnection::DeleteConversionWorkspace( google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const&) { @@ -242,6 +498,22 @@ DataMigrationServiceConnection::DeleteConversionWorkspace( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::DeleteConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::DeleteConversionWorkspace( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DataMigrationServiceConnection::CreateMappingRule( google::cloud::clouddms::v1::CreateMappingRuleRequest const&) { @@ -275,6 +547,22 @@ DataMigrationServiceConnection::SeedConversionWorkspace( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::SeedConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::SeedConversionWorkspace( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataMigrationServiceConnection::ImportMappingRules( google::cloud::clouddms::v1::ImportMappingRulesRequest const&) { @@ -283,6 +571,22 @@ DataMigrationServiceConnection::ImportMappingRules( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::ImportMappingRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ImportMappingRulesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::ImportMappingRules( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataMigrationServiceConnection::ConvertConversionWorkspace( google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const&) { @@ -291,6 +595,22 @@ DataMigrationServiceConnection::ConvertConversionWorkspace( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::ConvertConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::ConvertConversionWorkspace( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataMigrationServiceConnection::CommitConversionWorkspace( google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const&) { @@ -299,9 +619,41 @@ DataMigrationServiceConnection::CommitConversionWorkspace( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::CommitConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +DataMigrationServiceConnection::CommitConversionWorkspace( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::RollbackConversionWorkspace( + google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr DataMigrationServiceConnection::RollbackConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::RollbackConversionWorkspace( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -315,6 +667,22 @@ DataMigrationServiceConnection::ApplyConversionWorkspace( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataMigrationServiceConnection::ApplyConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataMigrationServiceConnection::ApplyConversionWorkspace( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange DataMigrationServiceConnection::DescribeDatabaseEntities( google::cloud::clouddms::v1:: diff --git a/google/cloud/datamigration/v1/data_migration_connection.h b/google/cloud/datamigration/v1/data_migration_connection.h index 2fd8cab34f130..a786b569a4c65 100644 --- a/google/cloud/datamigration/v1/data_migration_connection.h +++ b/google/cloud/datamigration/v1/data_migration_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/datamigration/v1/data_migration_connection_idempotency_policy.h" #include "google/cloud/datamigration/v1/internal/data_migration_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -201,38 +203,110 @@ class DataMigrationServiceConnection { CreateMigrationJob( google::cloud::clouddms::v1::CreateMigrationJobRequest const& request); + virtual StatusOr CreateMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateMigrationJobRequest const& request); + + virtual future> + CreateMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateMigrationJob( google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request); + virtual StatusOr UpdateMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request); + + virtual future> + UpdateMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteMigrationJob( google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request); + virtual StatusOr DeleteMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request); + + virtual future> + DeleteMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StartMigrationJob( google::cloud::clouddms::v1::StartMigrationJobRequest const& request); + virtual StatusOr StartMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::StartMigrationJobRequest const& request); + + virtual future> + StartMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StopMigrationJob( google::cloud::clouddms::v1::StopMigrationJobRequest const& request); + virtual StatusOr StopMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::StopMigrationJobRequest const& request); + + virtual future> + StopMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ResumeMigrationJob( google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request); + virtual StatusOr ResumeMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request); + + virtual future> + ResumeMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> PromoteMigrationJob( google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request); + virtual StatusOr PromoteMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request); + + virtual future> + PromoteMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> VerifyMigrationJob( google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request); + virtual StatusOr VerifyMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request); + + virtual future> + VerifyMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RestartMigrationJob( google::cloud::clouddms::v1::RestartMigrationJobRequest const& request); + virtual StatusOr RestartMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::RestartMigrationJobRequest const& request); + + virtual future> + RestartMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GenerateSshScript( google::cloud::clouddms::v1::GenerateSshScriptRequest const& request); @@ -254,21 +328,57 @@ class DataMigrationServiceConnection { google::cloud::clouddms::v1::CreateConnectionProfileRequest const& request); + virtual StatusOr CreateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateConnectionProfileRequest const& + request); + + virtual future> + CreateConnectionProfile(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateConnectionProfile( google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& request); + virtual StatusOr UpdateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& + request); + + virtual future> + UpdateConnectionProfile(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteConnectionProfile( google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& request); + virtual StatusOr DeleteConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& + request); + + virtual future> + DeleteConnectionProfile(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreatePrivateConnection( google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& request); + virtual StatusOr CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& + request); + + virtual future> + CreatePrivateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetPrivateConnection( google::cloud::clouddms::v1::GetPrivateConnectionRequest const& request); @@ -282,6 +392,15 @@ class DataMigrationServiceConnection { google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& request); + virtual StatusOr DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& + request); + + virtual future> + DeletePrivateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetConversionWorkspace( google::cloud::clouddms::v1::GetConversionWorkspaceRequest const& @@ -296,16 +415,43 @@ class DataMigrationServiceConnection { google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& request); + virtual StatusOr CreateConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& + request); + + virtual future> + CreateConversionWorkspace(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateConversionWorkspace( google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& request); + virtual StatusOr UpdateConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& + request); + + virtual future> + UpdateConversionWorkspace(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteConversionWorkspace( google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& request); + virtual StatusOr DeleteConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& + request); + + virtual future> + DeleteConversionWorkspace(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateMappingRule( google::cloud::clouddms::v1::CreateMappingRuleRequest const& request); @@ -324,30 +470,83 @@ class DataMigrationServiceConnection { google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& request); + virtual StatusOr SeedConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& + request); + + virtual future> + SeedConversionWorkspace(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ImportMappingRules( google::cloud::clouddms::v1::ImportMappingRulesRequest const& request); + virtual StatusOr ImportMappingRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ImportMappingRulesRequest const& request); + + virtual future> + ImportMappingRules(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ConvertConversionWorkspace( google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& request); + virtual StatusOr ConvertConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& + request); + + virtual future> + ConvertConversionWorkspace(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CommitConversionWorkspace( google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& request); + virtual StatusOr CommitConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& + request); + + virtual future> + CommitConversionWorkspace(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RollbackConversionWorkspace( google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& request); + virtual StatusOr RollbackConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& + request); + + virtual future> + RollbackConversionWorkspace(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ApplyConversionWorkspace( google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& request); + virtual StatusOr ApplyConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& + request); + + virtual future> + ApplyConversionWorkspace(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange DescribeDatabaseEntities( google::cloud::clouddms::v1::DescribeDatabaseEntitiesRequest request); diff --git a/google/cloud/datamigration/v1/internal/data_migration_connection_impl.cc b/google/cloud/datamigration/v1/internal/data_migration_connection_impl.cc index 33f22f50a9820..b0ed20ad3b6eb 100644 --- a/google/cloud/datamigration/v1/internal/data_migration_connection_impl.cc +++ b/google/cloud/datamigration/v1/internal/data_migration_connection_impl.cc @@ -161,6 +161,60 @@ DataMigrationServiceConnectionImpl::CreateMigrationJob( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::CreateMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateMigrationJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateMigrationJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::CreateMigrationJobRequest const& + request) { + return stub_->CreateMigrationJob(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::CreateMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateMigrationJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::MigrationJob>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::MigrationJob>, + polling_policy(*current), __func__); +} + future> DataMigrationServiceConnectionImpl::UpdateMigrationJob( google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request) { @@ -201,6 +255,60 @@ DataMigrationServiceConnectionImpl::UpdateMigrationJob( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::UpdateMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateMigrationJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::UpdateMigrationJobRequest const& + request) { + return stub_->UpdateMigrationJob(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::UpdateMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateMigrationJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::MigrationJob>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::MigrationJob>, + polling_policy(*current), __func__); +} + future> DataMigrationServiceConnectionImpl::DeleteMigrationJob( google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request) { @@ -241,6 +349,60 @@ DataMigrationServiceConnectionImpl::DeleteMigrationJob( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::DeleteMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteMigrationJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::DeleteMigrationJobRequest const& + request) { + return stub_->DeleteMigrationJob(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::DeleteMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteMigrationJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::clouddms::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> DataMigrationServiceConnectionImpl::StartMigrationJob( google::cloud::clouddms::v1::StartMigrationJobRequest const& request) { @@ -281,6 +443,60 @@ DataMigrationServiceConnectionImpl::StartMigrationJob( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::StartMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::StartMigrationJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartMigrationJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::StartMigrationJobRequest const& + request) { + return stub_->StartMigrationJob(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::StartMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to StartMigrationJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::MigrationJob>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::MigrationJob>, + polling_policy(*current), __func__); +} + future> DataMigrationServiceConnectionImpl::StopMigrationJob( google::cloud::clouddms::v1::StopMigrationJobRequest const& request) { @@ -320,6 +536,60 @@ DataMigrationServiceConnectionImpl::StopMigrationJob( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::StopMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::StopMigrationJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StopMigrationJob(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::StopMigrationJobRequest const& request) { + return stub_->StopMigrationJob(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::StopMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to StopMigrationJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::MigrationJob>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::MigrationJob>, + polling_policy(*current), __func__); +} + future> DataMigrationServiceConnectionImpl::ResumeMigrationJob( google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request) { @@ -360,6 +630,60 @@ DataMigrationServiceConnectionImpl::ResumeMigrationJob( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::ResumeMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ResumeMigrationJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::ResumeMigrationJobRequest const& + request) { + return stub_->ResumeMigrationJob(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::ResumeMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ResumeMigrationJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::MigrationJob>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::MigrationJob>, + polling_policy(*current), __func__); +} + future> DataMigrationServiceConnectionImpl::PromoteMigrationJob( google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request) { @@ -400,6 +724,60 @@ DataMigrationServiceConnectionImpl::PromoteMigrationJob( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::PromoteMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PromoteMigrationJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::PromoteMigrationJobRequest const& + request) { + return stub_->PromoteMigrationJob(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::PromoteMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to PromoteMigrationJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::MigrationJob>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::MigrationJob>, + polling_policy(*current), __func__); +} + future> DataMigrationServiceConnectionImpl::VerifyMigrationJob( google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request) { @@ -440,6 +818,60 @@ DataMigrationServiceConnectionImpl::VerifyMigrationJob( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::VerifyMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->VerifyMigrationJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::VerifyMigrationJobRequest const& + request) { + return stub_->VerifyMigrationJob(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::VerifyMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to VerifyMigrationJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::MigrationJob>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::MigrationJob>, + polling_policy(*current), __func__); +} + future> DataMigrationServiceConnectionImpl::RestartMigrationJob( google::cloud::clouddms::v1::RestartMigrationJobRequest const& request) { @@ -480,6 +912,60 @@ DataMigrationServiceConnectionImpl::RestartMigrationJob( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::RestartMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::RestartMigrationJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RestartMigrationJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::RestartMigrationJobRequest const& + request) { + return stub_->RestartMigrationJob(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::RestartMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RestartMigrationJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::MigrationJob>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::MigrationJob>, + polling_policy(*current), __func__); +} + StatusOr DataMigrationServiceConnectionImpl::GenerateSshScript( google::cloud::clouddms::v1::GenerateSshScriptRequest const& request) { @@ -602,26 +1088,137 @@ DataMigrationServiceConnectionImpl::CreateConnectionProfile( polling_policy(*current), __func__); } -future> +StatusOr +DataMigrationServiceConnectionImpl::CreateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateConnectionProfileRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateConnectionProfile(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::CreateConnectionProfileRequest const& + request) { + return stub_->CreateConnectionProfile(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::CreateConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateConnectionProfile", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::ConnectionProfile>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::ConnectionProfile>, + polling_policy(*current), __func__); +} + +future> +DataMigrationServiceConnectionImpl::UpdateConnectionProfile( + google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->UpdateConnectionProfile(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::clouddms::v1::ConnectionProfile>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& + request) { + return stub->AsyncUpdateConnectionProfile(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::ConnectionProfile>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr DataMigrationServiceConnectionImpl::UpdateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->UpdateConnectionProfile(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::clouddms::v1::ConnectionProfile>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& - request) { - return stub->AsyncUpdateConnectionProfile(cq, std::move(context), - std::move(options), request); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateConnectionProfile(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& + request) { + return stub_->UpdateConnectionProfile(context, options, request); }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::UpdateConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateConnectionProfile", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::ConnectionProfile>( + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -639,7 +1236,6 @@ DataMigrationServiceConnectionImpl::UpdateConnectionProfile( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::clouddms::v1::ConnectionProfile>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } @@ -684,6 +1280,61 @@ DataMigrationServiceConnectionImpl::DeleteConnectionProfile( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::DeleteConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteConnectionProfile(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& + request) { + return stub_->DeleteConnectionProfile(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::DeleteConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteConnectionProfile", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::clouddms::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> DataMigrationServiceConnectionImpl::CreatePrivateConnection( google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& @@ -725,6 +1376,61 @@ DataMigrationServiceConnectionImpl::CreatePrivateConnection( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreatePrivateConnection(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& + request) { + return stub_->CreatePrivateConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::CreatePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreatePrivateConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::PrivateConnection>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::PrivateConnection>, + polling_policy(*current), __func__); +} + StatusOr DataMigrationServiceConnectionImpl::GetPrivateConnection( google::cloud::clouddms::v1::GetPrivateConnectionRequest const& request) { @@ -817,6 +1523,61 @@ DataMigrationServiceConnectionImpl::DeletePrivateConnection( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePrivateConnection(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& + request) { + return stub_->DeletePrivateConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::DeletePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeletePrivateConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::clouddms::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr DataMigrationServiceConnectionImpl::GetConversionWorkspace( google::cloud::clouddms::v1::GetConversionWorkspaceRequest const& request) { @@ -910,6 +1671,62 @@ DataMigrationServiceConnectionImpl::CreateConversionWorkspace( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::CreateConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateConversionWorkspace(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& + request) { + return stub_->CreateConversionWorkspace(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::CreateConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateConversionWorkspace", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::ConversionWorkspace>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::ConversionWorkspace>, + polling_policy(*current), __func__); +} + future> DataMigrationServiceConnectionImpl::UpdateConversionWorkspace( google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& @@ -951,26 +1768,139 @@ DataMigrationServiceConnectionImpl::UpdateConversionWorkspace( polling_policy(*current), __func__); } -future> +StatusOr +DataMigrationServiceConnectionImpl::UpdateConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateConversionWorkspace(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& + request) { + return stub_->UpdateConversionWorkspace(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::UpdateConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateConversionWorkspace", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::ConversionWorkspace>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::ConversionWorkspace>, + polling_policy(*current), __func__); +} + +future> +DataMigrationServiceConnectionImpl::DeleteConversionWorkspace( + google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->DeleteConversionWorkspace(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::clouddms::v1::OperationMetadata>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& + request) { + return stub->AsyncDeleteConversionWorkspace( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::clouddms::v1::OperationMetadata>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr DataMigrationServiceConnectionImpl::DeleteConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->DeleteConversionWorkspace(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::clouddms::v1::OperationMetadata>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteConversionWorkspace(request), + [this]( + grpc::ClientContext& context, Options const& options, google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& request) { - return stub->AsyncDeleteConversionWorkspace( - cq, std::move(context), std::move(options), request); + return stub_->DeleteConversionWorkspace(context, options, request); }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::DeleteConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteConversionWorkspace", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::OperationMetadata>( + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -988,7 +1918,6 @@ DataMigrationServiceConnectionImpl::DeleteConversionWorkspace( }, &google::cloud::internal::ExtractLongRunningResultMetadata< google::cloud::clouddms::v1::OperationMetadata>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } @@ -1112,6 +2041,61 @@ DataMigrationServiceConnectionImpl::SeedConversionWorkspace( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::SeedConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SeedConversionWorkspace(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& + request) { + return stub_->SeedConversionWorkspace(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::SeedConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to SeedConversionWorkspace", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::ConversionWorkspace>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::ConversionWorkspace>, + polling_policy(*current), __func__); +} + future> DataMigrationServiceConnectionImpl::ImportMappingRules( google::cloud::clouddms::v1::ImportMappingRulesRequest const& request) { @@ -1152,6 +2136,60 @@ DataMigrationServiceConnectionImpl::ImportMappingRules( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::ImportMappingRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ImportMappingRulesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportMappingRules(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::ImportMappingRulesRequest const& + request) { + return stub_->ImportMappingRules(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::ImportMappingRules( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportMappingRules", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::ConversionWorkspace>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::ConversionWorkspace>, + polling_policy(*current), __func__); +} + future> DataMigrationServiceConnectionImpl::ConvertConversionWorkspace( google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& @@ -1193,6 +2231,62 @@ DataMigrationServiceConnectionImpl::ConvertConversionWorkspace( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::ConvertConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ConvertConversionWorkspace(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& + request) { + return stub_->ConvertConversionWorkspace(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::ConvertConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ConvertConversionWorkspace", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::ConversionWorkspace>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::ConversionWorkspace>, + polling_policy(*current), __func__); +} + future> DataMigrationServiceConnectionImpl::CommitConversionWorkspace( google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& @@ -1234,6 +2328,62 @@ DataMigrationServiceConnectionImpl::CommitConversionWorkspace( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::CommitConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CommitConversionWorkspace(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& + request) { + return stub_->CommitConversionWorkspace(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::CommitConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CommitConversionWorkspace", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::ConversionWorkspace>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::ConversionWorkspace>, + polling_policy(*current), __func__); +} + future> DataMigrationServiceConnectionImpl::RollbackConversionWorkspace( google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& @@ -1275,6 +2425,62 @@ DataMigrationServiceConnectionImpl::RollbackConversionWorkspace( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::RollbackConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RollbackConversionWorkspace(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& + request) { + return stub_->RollbackConversionWorkspace(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::RollbackConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RollbackConversionWorkspace", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::ConversionWorkspace>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::ConversionWorkspace>, + polling_policy(*current), __func__); +} + future> DataMigrationServiceConnectionImpl::ApplyConversionWorkspace( google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& @@ -1316,6 +2522,61 @@ DataMigrationServiceConnectionImpl::ApplyConversionWorkspace( polling_policy(*current), __func__); } +StatusOr +DataMigrationServiceConnectionImpl::ApplyConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ApplyConversionWorkspace(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& + request) { + return stub_->ApplyConversionWorkspace(context, options, request); + }, + *current, request, __func__); +} + +future> +DataMigrationServiceConnectionImpl::ApplyConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ApplyConversionWorkspace", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::clouddms::v1::ConversionWorkspace>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::clouddms::v1::ConversionWorkspace>, + polling_policy(*current), __func__); +} + StreamRange DataMigrationServiceConnectionImpl::DescribeDatabaseEntities( google::cloud::clouddms::v1::DescribeDatabaseEntitiesRequest request) { diff --git a/google/cloud/datamigration/v1/internal/data_migration_connection_impl.h b/google/cloud/datamigration/v1/internal/data_migration_connection_impl.h index 1af1e03e844cb..9d87e4dba2499 100644 --- a/google/cloud/datamigration/v1/internal/data_migration_connection_impl.h +++ b/google/cloud/datamigration/v1/internal/data_migration_connection_impl.h @@ -64,44 +64,125 @@ class DataMigrationServiceConnectionImpl google::cloud::clouddms::v1::CreateMigrationJobRequest const& request) override; + StatusOr CreateMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateMigrationJobRequest const& request) + override; + + future> + CreateMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateMigrationJob( google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request) override; + StatusOr UpdateMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request) + override; + + future> + UpdateMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteMigrationJob( google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request) override; + StatusOr DeleteMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request) + override; + + future> + DeleteMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartMigrationJob( google::cloud::clouddms::v1::StartMigrationJobRequest const& request) override; + StatusOr StartMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::StartMigrationJobRequest const& request) + override; + + future> StartMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopMigrationJob( google::cloud::clouddms::v1::StopMigrationJobRequest const& request) override; + StatusOr StopMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::StopMigrationJobRequest const& request) + override; + + future> StopMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResumeMigrationJob( google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request) override; + StatusOr ResumeMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request) + override; + + future> + ResumeMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PromoteMigrationJob( google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request) override; + StatusOr PromoteMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request) + override; + + future> + PromoteMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> VerifyMigrationJob( google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request) override; + StatusOr VerifyMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request) + override; + + future> + VerifyMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RestartMigrationJob( google::cloud::clouddms::v1::RestartMigrationJobRequest const& request) override; + StatusOr RestartMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::RestartMigrationJobRequest const& request) + override; + + future> + RestartMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GenerateSshScript( google::cloud::clouddms::v1::GenerateSshScriptRequest const& request) override; @@ -124,21 +205,61 @@ class DataMigrationServiceConnectionImpl google::cloud::clouddms::v1::CreateConnectionProfileRequest const& request) override; + StatusOr CreateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateConnectionProfileRequest const& + request) override; + + future> + CreateConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateConnectionProfile( google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& request) override; + StatusOr UpdateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& + request) override; + + future> + UpdateConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteConnectionProfile( google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& request) override; + StatusOr DeleteConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& + request) override; + + future> + DeleteConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreatePrivateConnection( google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& request) override; + StatusOr CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& + request) override; + + future> + CreatePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetPrivateConnection( google::cloud::clouddms::v1::GetPrivateConnectionRequest const& request) override; @@ -153,6 +274,16 @@ class DataMigrationServiceConnectionImpl google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& request) override; + StatusOr DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& + request) override; + + future> + DeletePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetConversionWorkspace( google::cloud::clouddms::v1::GetConversionWorkspaceRequest const& request) @@ -168,16 +299,46 @@ class DataMigrationServiceConnectionImpl google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& request) override; + StatusOr CreateConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& + request) override; + + future> + CreateConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateConversionWorkspace( google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& request) override; + StatusOr UpdateConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& + request) override; + + future> + UpdateConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteConversionWorkspace( google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& request) override; + StatusOr DeleteConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& + request) override; + + future> + DeleteConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateMappingRule( google::cloud::clouddms::v1::CreateMappingRuleRequest const& request) override; @@ -198,31 +359,90 @@ class DataMigrationServiceConnectionImpl google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& request) override; + StatusOr SeedConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& + request) override; + + future> + SeedConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportMappingRules( google::cloud::clouddms::v1::ImportMappingRulesRequest const& request) override; + StatusOr ImportMappingRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ImportMappingRulesRequest const& request) + override; + + future> + ImportMappingRules(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ConvertConversionWorkspace( google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& request) override; + StatusOr ConvertConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& + request) override; + + future> + ConvertConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CommitConversionWorkspace( google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& request) override; + StatusOr CommitConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& + request) override; + + future> + CommitConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RollbackConversionWorkspace( google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& request) override; + StatusOr RollbackConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& + request) override; + + future> + RollbackConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ApplyConversionWorkspace( google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& request) override; + StatusOr ApplyConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& + request) override; + + future> + ApplyConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange DescribeDatabaseEntities( google::cloud::clouddms::v1::DescribeDatabaseEntitiesRequest request) diff --git a/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.cc b/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.cc index b3ef733147b59..c157403999aa0 100644 --- a/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.cc +++ b/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.cc @@ -64,6 +64,30 @@ DataMigrationServiceTracingConnection::CreateMigrationJob( child_->CreateMigrationJob(request)); } +StatusOr +DataMigrationServiceTracingConnection::CreateMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateMigrationJobRequest const& request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::CreateMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateMigrationJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::CreateMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::CreateMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateMigrationJob(google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::UpdateMigrationJob( google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request) { @@ -74,6 +98,30 @@ DataMigrationServiceTracingConnection::UpdateMigrationJob( child_->UpdateMigrationJob(request)); } +StatusOr +DataMigrationServiceTracingConnection::UpdateMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::UpdateMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateMigrationJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::UpdateMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::UpdateMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateMigrationJob(google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::DeleteMigrationJob( google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request) { @@ -84,6 +132,30 @@ DataMigrationServiceTracingConnection::DeleteMigrationJob( child_->DeleteMigrationJob(request)); } +StatusOr +DataMigrationServiceTracingConnection::DeleteMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::DeleteMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteMigrationJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::DeleteMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::DeleteMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteMigrationJob(google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::StartMigrationJob( google::cloud::clouddms::v1::StartMigrationJobRequest const& request) { @@ -93,6 +165,30 @@ DataMigrationServiceTracingConnection::StartMigrationJob( return internal::EndSpan(std::move(span), child_->StartMigrationJob(request)); } +StatusOr +DataMigrationServiceTracingConnection::StartMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::StartMigrationJobRequest const& request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::StartMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StartMigrationJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::StartMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::StartMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StartMigrationJob(google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::StopMigrationJob( google::cloud::clouddms::v1::StopMigrationJobRequest const& request) { @@ -102,6 +198,30 @@ DataMigrationServiceTracingConnection::StopMigrationJob( return internal::EndSpan(std::move(span), child_->StopMigrationJob(request)); } +StatusOr +DataMigrationServiceTracingConnection::StopMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::StopMigrationJobRequest const& request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::StopMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StopMigrationJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::StopMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::StopMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StopMigrationJob(google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::ResumeMigrationJob( google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request) { @@ -112,6 +232,30 @@ DataMigrationServiceTracingConnection::ResumeMigrationJob( child_->ResumeMigrationJob(request)); } +StatusOr +DataMigrationServiceTracingConnection::ResumeMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::ResumeMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ResumeMigrationJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::ResumeMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::ResumeMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ResumeMigrationJob(google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::PromoteMigrationJob( google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request) { @@ -122,6 +266,30 @@ DataMigrationServiceTracingConnection::PromoteMigrationJob( child_->PromoteMigrationJob(request)); } +StatusOr +DataMigrationServiceTracingConnection::PromoteMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::PromoteMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PromoteMigrationJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::PromoteMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::PromoteMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PromoteMigrationJob(google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::VerifyMigrationJob( google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request) { @@ -132,6 +300,30 @@ DataMigrationServiceTracingConnection::VerifyMigrationJob( child_->VerifyMigrationJob(request)); } +StatusOr +DataMigrationServiceTracingConnection::VerifyMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::VerifyMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->VerifyMigrationJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::VerifyMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::VerifyMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->VerifyMigrationJob(google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::RestartMigrationJob( google::cloud::clouddms::v1::RestartMigrationJobRequest const& request) { @@ -142,6 +334,30 @@ DataMigrationServiceTracingConnection::RestartMigrationJob( child_->RestartMigrationJob(request)); } +StatusOr +DataMigrationServiceTracingConnection::RestartMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::RestartMigrationJobRequest const& request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::RestartMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RestartMigrationJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::RestartMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::RestartMigrationJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RestartMigrationJob(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DataMigrationServiceTracingConnection::GenerateSshScript( google::cloud::clouddms::v1::GenerateSshScriptRequest const& request) { @@ -195,6 +411,33 @@ DataMigrationServiceTracingConnection::CreateConnectionProfile( child_->CreateConnectionProfile(request)); } +StatusOr +DataMigrationServiceTracingConnection::CreateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateConnectionProfileRequest const& + request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "CreateConnectionProfile"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateConnectionProfile( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::CreateConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "CreateConnectionProfile"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateConnectionProfile( + google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::UpdateConnectionProfile( google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& @@ -207,6 +450,33 @@ DataMigrationServiceTracingConnection::UpdateConnectionProfile( child_->UpdateConnectionProfile(request)); } +StatusOr +DataMigrationServiceTracingConnection::UpdateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& + request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "UpdateConnectionProfile"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateConnectionProfile( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::UpdateConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "UpdateConnectionProfile"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateConnectionProfile( + google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::DeleteConnectionProfile( google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& @@ -219,6 +489,33 @@ DataMigrationServiceTracingConnection::DeleteConnectionProfile( child_->DeleteConnectionProfile(request)); } +StatusOr +DataMigrationServiceTracingConnection::DeleteConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& + request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "DeleteConnectionProfile"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteConnectionProfile( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::DeleteConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "DeleteConnectionProfile"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteConnectionProfile( + google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::CreatePrivateConnection( google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& @@ -231,6 +528,33 @@ DataMigrationServiceTracingConnection::CreatePrivateConnection( child_->CreatePrivateConnection(request)); } +StatusOr +DataMigrationServiceTracingConnection::CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& + request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "CreatePrivateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreatePrivateConnection( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::CreatePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "CreatePrivateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreatePrivateConnection( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DataMigrationServiceTracingConnection::GetPrivateConnection( google::cloud::clouddms::v1::GetPrivateConnectionRequest const& request) { @@ -265,6 +589,33 @@ DataMigrationServiceTracingConnection::DeletePrivateConnection( child_->DeletePrivateConnection(request)); } +StatusOr +DataMigrationServiceTracingConnection::DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& + request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "DeletePrivateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeletePrivateConnection( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::DeletePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "DeletePrivateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeletePrivateConnection( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DataMigrationServiceTracingConnection::GetConversionWorkspace( google::cloud::clouddms::v1::GetConversionWorkspaceRequest const& request) { @@ -300,6 +651,33 @@ DataMigrationServiceTracingConnection::CreateConversionWorkspace( child_->CreateConversionWorkspace(request)); } +StatusOr +DataMigrationServiceTracingConnection::CreateConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& + request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "CreateConversionWorkspace"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateConversionWorkspace( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::CreateConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "CreateConversionWorkspace"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateConversionWorkspace( + google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::UpdateConversionWorkspace( google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& @@ -312,6 +690,33 @@ DataMigrationServiceTracingConnection::UpdateConversionWorkspace( child_->UpdateConversionWorkspace(request)); } +StatusOr +DataMigrationServiceTracingConnection::UpdateConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& + request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "UpdateConversionWorkspace"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateConversionWorkspace( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::UpdateConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "UpdateConversionWorkspace"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateConversionWorkspace( + google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::DeleteConversionWorkspace( google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& @@ -324,6 +729,33 @@ DataMigrationServiceTracingConnection::DeleteConversionWorkspace( child_->DeleteConversionWorkspace(request)); } +StatusOr +DataMigrationServiceTracingConnection::DeleteConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& + request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "DeleteConversionWorkspace"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteConversionWorkspace( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::DeleteConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "DeleteConversionWorkspace"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteConversionWorkspace( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DataMigrationServiceTracingConnection::CreateMappingRule( google::cloud::clouddms::v1::CreateMappingRuleRequest const& request) { @@ -373,6 +805,33 @@ DataMigrationServiceTracingConnection::SeedConversionWorkspace( child_->SeedConversionWorkspace(request)); } +StatusOr +DataMigrationServiceTracingConnection::SeedConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& + request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "SeedConversionWorkspace"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SeedConversionWorkspace( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::SeedConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "SeedConversionWorkspace"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SeedConversionWorkspace( + google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::ImportMappingRules( google::cloud::clouddms::v1::ImportMappingRulesRequest const& request) { @@ -383,6 +842,30 @@ DataMigrationServiceTracingConnection::ImportMappingRules( child_->ImportMappingRules(request)); } +StatusOr +DataMigrationServiceTracingConnection::ImportMappingRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ImportMappingRulesRequest const& request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::ImportMappingRules"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportMappingRules(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::ImportMappingRules( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::ImportMappingRules"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportMappingRules(google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::ConvertConversionWorkspace( google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& @@ -395,6 +878,33 @@ DataMigrationServiceTracingConnection::ConvertConversionWorkspace( child_->ConvertConversionWorkspace(request)); } +StatusOr +DataMigrationServiceTracingConnection::ConvertConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& + request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "ConvertConversionWorkspace"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ConvertConversionWorkspace( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::ConvertConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "ConvertConversionWorkspace"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ConvertConversionWorkspace( + google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::CommitConversionWorkspace( google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& @@ -407,6 +917,33 @@ DataMigrationServiceTracingConnection::CommitConversionWorkspace( child_->CommitConversionWorkspace(request)); } +StatusOr +DataMigrationServiceTracingConnection::CommitConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& + request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "CommitConversionWorkspace"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CommitConversionWorkspace( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::CommitConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "CommitConversionWorkspace"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CommitConversionWorkspace( + google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::RollbackConversionWorkspace( google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& @@ -419,6 +956,33 @@ DataMigrationServiceTracingConnection::RollbackConversionWorkspace( child_->RollbackConversionWorkspace(request)); } +StatusOr +DataMigrationServiceTracingConnection::RollbackConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& + request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "RollbackConversionWorkspace"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RollbackConversionWorkspace( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::RollbackConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "RollbackConversionWorkspace"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RollbackConversionWorkspace( + google::cloud::ExperimentalTag{}, operation)); +} + future> DataMigrationServiceTracingConnection::ApplyConversionWorkspace( google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& @@ -431,6 +995,33 @@ DataMigrationServiceTracingConnection::ApplyConversionWorkspace( child_->ApplyConversionWorkspace(request)); } +StatusOr +DataMigrationServiceTracingConnection::ApplyConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& + request) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "ApplyConversionWorkspace"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ApplyConversionWorkspace( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataMigrationServiceTracingConnection::ApplyConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datamigration_v1::DataMigrationServiceConnection::" + "ApplyConversionWorkspace"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ApplyConversionWorkspace( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange DataMigrationServiceTracingConnection::DescribeDatabaseEntities( google::cloud::clouddms::v1::DescribeDatabaseEntitiesRequest request) { diff --git a/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.h b/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.h index d2f5ce7c1cb5d..2eabc705df082 100644 --- a/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.h +++ b/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.h @@ -52,44 +52,125 @@ class DataMigrationServiceTracingConnection google::cloud::clouddms::v1::CreateMigrationJobRequest const& request) override; + StatusOr CreateMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateMigrationJobRequest const& request) + override; + + future> + CreateMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateMigrationJob( google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request) override; + StatusOr UpdateMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request) + override; + + future> + UpdateMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteMigrationJob( google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request) override; + StatusOr DeleteMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request) + override; + + future> + DeleteMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartMigrationJob( google::cloud::clouddms::v1::StartMigrationJobRequest const& request) override; + StatusOr StartMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::StartMigrationJobRequest const& request) + override; + + future> StartMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopMigrationJob( google::cloud::clouddms::v1::StopMigrationJobRequest const& request) override; + StatusOr StopMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::StopMigrationJobRequest const& request) + override; + + future> StopMigrationJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResumeMigrationJob( google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request) override; + StatusOr ResumeMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request) + override; + + future> + ResumeMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PromoteMigrationJob( google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request) override; + StatusOr PromoteMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request) + override; + + future> + PromoteMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> VerifyMigrationJob( google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request) override; + StatusOr VerifyMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request) + override; + + future> + VerifyMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RestartMigrationJob( google::cloud::clouddms::v1::RestartMigrationJobRequest const& request) override; + StatusOr RestartMigrationJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::RestartMigrationJobRequest const& request) + override; + + future> + RestartMigrationJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GenerateSshScript( google::cloud::clouddms::v1::GenerateSshScriptRequest const& request) override; @@ -112,21 +193,61 @@ class DataMigrationServiceTracingConnection google::cloud::clouddms::v1::CreateConnectionProfileRequest const& request) override; + StatusOr CreateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateConnectionProfileRequest const& + request) override; + + future> + CreateConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateConnectionProfile( google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& request) override; + StatusOr UpdateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& + request) override; + + future> + UpdateConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteConnectionProfile( google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& request) override; + StatusOr DeleteConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& + request) override; + + future> + DeleteConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreatePrivateConnection( google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& request) override; + StatusOr CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& + request) override; + + future> + CreatePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetPrivateConnection( google::cloud::clouddms::v1::GetPrivateConnectionRequest const& request) override; @@ -141,6 +262,16 @@ class DataMigrationServiceTracingConnection google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& request) override; + StatusOr DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& + request) override; + + future> + DeletePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetConversionWorkspace( google::cloud::clouddms::v1::GetConversionWorkspaceRequest const& request) @@ -156,16 +287,46 @@ class DataMigrationServiceTracingConnection google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& request) override; + StatusOr CreateConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& + request) override; + + future> + CreateConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateConversionWorkspace( google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& request) override; + StatusOr UpdateConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& + request) override; + + future> + UpdateConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteConversionWorkspace( google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& request) override; + StatusOr DeleteConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& + request) override; + + future> + DeleteConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateMappingRule( google::cloud::clouddms::v1::CreateMappingRuleRequest const& request) override; @@ -186,31 +347,90 @@ class DataMigrationServiceTracingConnection google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& request) override; + StatusOr SeedConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& + request) override; + + future> + SeedConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportMappingRules( google::cloud::clouddms::v1::ImportMappingRulesRequest const& request) override; + StatusOr ImportMappingRules( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ImportMappingRulesRequest const& request) + override; + + future> + ImportMappingRules(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ConvertConversionWorkspace( google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& request) override; + StatusOr ConvertConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& + request) override; + + future> + ConvertConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CommitConversionWorkspace( google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& request) override; + StatusOr CommitConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& + request) override; + + future> + CommitConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RollbackConversionWorkspace( google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& request) override; + StatusOr RollbackConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& + request) override; + + future> + RollbackConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ApplyConversionWorkspace( google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& request) override; + StatusOr ApplyConversionWorkspace( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& + request) override; + + future> + ApplyConversionWorkspace( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange DescribeDatabaseEntities( google::cloud::clouddms::v1::DescribeDatabaseEntitiesRequest request) diff --git a/google/cloud/datamigration/v1/mocks/mock_data_migration_connection.h b/google/cloud/datamigration/v1/mocks/mock_data_migration_connection.h index 7de55a72b355b..32aa7d309d90b 100644 --- a/google/cloud/datamigration/v1/mocks/mock_data_migration_connection.h +++ b/google/cloud/datamigration/v1/mocks/mock_data_migration_connection.h @@ -63,54 +63,162 @@ class MockDataMigrationServiceConnection (google::cloud::clouddms::v1::CreateMigrationJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateMigrationJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateMigrationJobRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateMigrationJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateMigrationJob, (google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateMigrationJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateMigrationJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteMigrationJob, (google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteMigrationJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteMigrationJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, StartMigrationJob, (google::cloud::clouddms::v1::StartMigrationJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, StartMigrationJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::StartMigrationJobRequest const& request), + (override)); + + MOCK_METHOD(future>, + StartMigrationJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, StopMigrationJob, (google::cloud::clouddms::v1::StopMigrationJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, StopMigrationJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::StopMigrationJobRequest const& request), + (override)); + + MOCK_METHOD(future>, + StopMigrationJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ResumeMigrationJob, (google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ResumeMigrationJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request), + (override)); + + MOCK_METHOD(future>, + ResumeMigrationJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, PromoteMigrationJob, (google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, PromoteMigrationJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request), + (override)); + + MOCK_METHOD(future>, + PromoteMigrationJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, VerifyMigrationJob, (google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, VerifyMigrationJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request), + (override)); + + MOCK_METHOD(future>, + VerifyMigrationJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RestartMigrationJob, (google::cloud::clouddms::v1::RestartMigrationJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RestartMigrationJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::RestartMigrationJobRequest const& request), + (override)); + + MOCK_METHOD(future>, + RestartMigrationJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GenerateSshScript, (google::cloud::clouddms::v1::GenerateSshScriptRequest const& request), @@ -141,6 +249,19 @@ class MockDataMigrationServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateConnectionProfile, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateConnectionProfileRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateConnectionProfile, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateConnectionProfile, @@ -148,6 +269,19 @@ class MockDataMigrationServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateConnectionProfile, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateConnectionProfile, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteConnectionProfile, @@ -155,6 +289,19 @@ class MockDataMigrationServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteConnectionProfile, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteConnectionProfile, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreatePrivateConnection, @@ -162,6 +309,19 @@ class MockDataMigrationServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, CreatePrivateConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreatePrivateConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetPrivateConnection, @@ -181,6 +341,19 @@ class MockDataMigrationServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, DeletePrivateConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeletePrivateConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetConversionWorkspace, (google::cloud::clouddms::v1::GetConversionWorkspaceRequest const& @@ -200,6 +373,20 @@ class MockDataMigrationServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateConversionWorkspace, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateConversionWorkspace, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateConversionWorkspace, @@ -207,6 +394,20 @@ class MockDataMigrationServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateConversionWorkspace, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateConversionWorkspace, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteConversionWorkspace, @@ -214,6 +415,19 @@ class MockDataMigrationServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteConversionWorkspace, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteConversionWorkspace, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CreateMappingRule, (google::cloud::clouddms::v1::CreateMappingRuleRequest const& request), @@ -241,12 +455,39 @@ class MockDataMigrationServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, SeedConversionWorkspace, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + SeedConversionWorkspace, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ImportMappingRules, (google::cloud::clouddms::v1::ImportMappingRulesRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ImportMappingRules, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ImportMappingRulesRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ImportMappingRules, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ConvertConversionWorkspace, @@ -254,6 +495,20 @@ class MockDataMigrationServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, ConvertConversionWorkspace, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + ConvertConversionWorkspace, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CommitConversionWorkspace, @@ -261,6 +516,20 @@ class MockDataMigrationServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, CommitConversionWorkspace, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CommitConversionWorkspace, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RollbackConversionWorkspace, @@ -268,6 +537,20 @@ class MockDataMigrationServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, RollbackConversionWorkspace, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + RollbackConversionWorkspace, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ApplyConversionWorkspace, @@ -275,6 +558,20 @@ class MockDataMigrationServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, ApplyConversionWorkspace, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + ApplyConversionWorkspace, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), DescribeDatabaseEntities, diff --git a/google/cloud/dataplex/v1/catalog_connection.cc b/google/cloud/dataplex/v1/catalog_connection.cc index aea55669eef55..1ff2c748bc396 100644 --- a/google/cloud/dataplex/v1/catalog_connection.cc +++ b/google/cloud/dataplex/v1/catalog_connection.cc @@ -46,6 +46,22 @@ CatalogServiceConnection::CreateEntryType( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CatalogServiceConnection::CreateEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEntryTypeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CatalogServiceConnection::CreateEntryType( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CatalogServiceConnection::UpdateEntryType( google::cloud::dataplex::v1::UpdateEntryTypeRequest const&) { @@ -54,6 +70,22 @@ CatalogServiceConnection::UpdateEntryType( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CatalogServiceConnection::UpdateEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEntryTypeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CatalogServiceConnection::UpdateEntryType( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CatalogServiceConnection::DeleteEntryType( google::cloud::dataplex::v1::DeleteEntryTypeRequest const&) { @@ -62,6 +94,22 @@ CatalogServiceConnection::DeleteEntryType( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CatalogServiceConnection::DeleteEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEntryTypeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CatalogServiceConnection::DeleteEntryType( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CatalogServiceConnection::ListEntryTypes( google::cloud::dataplex::v1:: @@ -84,9 +132,41 @@ CatalogServiceConnection::CreateAspectType( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CatalogServiceConnection::CreateAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateAspectTypeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +CatalogServiceConnection::CreateAspectType( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CatalogServiceConnection::UpdateAspectType( + google::cloud::dataplex::v1::UpdateAspectTypeRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr CatalogServiceConnection::UpdateAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::dataplex::v1::UpdateAspectTypeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CatalogServiceConnection::UpdateAspectType( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -100,6 +180,22 @@ CatalogServiceConnection::DeleteAspectType( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CatalogServiceConnection::DeleteAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteAspectTypeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CatalogServiceConnection::DeleteAspectType( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CatalogServiceConnection::ListAspectTypes( google::cloud::dataplex::v1:: @@ -122,6 +218,22 @@ CatalogServiceConnection::CreateEntryGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CatalogServiceConnection::CreateEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEntryGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CatalogServiceConnection::CreateEntryGroup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CatalogServiceConnection::UpdateEntryGroup( google::cloud::dataplex::v1::UpdateEntryGroupRequest const&) { @@ -130,6 +242,22 @@ CatalogServiceConnection::UpdateEntryGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CatalogServiceConnection::UpdateEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEntryGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CatalogServiceConnection::UpdateEntryGroup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CatalogServiceConnection::DeleteEntryGroup( google::cloud::dataplex::v1::DeleteEntryGroupRequest const&) { @@ -138,6 +266,22 @@ CatalogServiceConnection::DeleteEntryGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CatalogServiceConnection::DeleteEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEntryGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CatalogServiceConnection::DeleteEntryGroup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CatalogServiceConnection::ListEntryGroups( google::cloud::dataplex::v1:: diff --git a/google/cloud/dataplex/v1/catalog_connection.h b/google/cloud/dataplex/v1/catalog_connection.h index 0e2f9fb68b785..26822959c25be 100644 --- a/google/cloud/dataplex/v1/catalog_connection.h +++ b/google/cloud/dataplex/v1/catalog_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dataplex/v1/catalog_connection_idempotency_policy.h" #include "google/cloud/dataplex/v1/internal/catalog_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -189,14 +191,38 @@ class CatalogServiceConnection { CreateEntryType( google::cloud::dataplex::v1::CreateEntryTypeRequest const& request); + virtual StatusOr CreateEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEntryTypeRequest const& request); + + virtual future> + CreateEntryType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateEntryType( google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request); + virtual StatusOr UpdateEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request); + + virtual future> + UpdateEntryType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteEntryType( google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request); + virtual StatusOr DeleteEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request); + + virtual future> + DeleteEntryType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListEntryTypes( google::cloud::dataplex::v1::ListEntryTypesRequest request); @@ -207,14 +233,38 @@ class CatalogServiceConnection { CreateAspectType( google::cloud::dataplex::v1::CreateAspectTypeRequest const& request); + virtual StatusOr CreateAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateAspectTypeRequest const& request); + + virtual future> + CreateAspectType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateAspectType( google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request); + virtual StatusOr UpdateAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request); + + virtual future> + UpdateAspectType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteAspectType( google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request); + virtual StatusOr DeleteAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request); + + virtual future> + DeleteAspectType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListAspectTypes( google::cloud::dataplex::v1::ListAspectTypesRequest request); @@ -225,14 +275,38 @@ class CatalogServiceConnection { CreateEntryGroup( google::cloud::dataplex::v1::CreateEntryGroupRequest const& request); + virtual StatusOr CreateEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEntryGroupRequest const& request); + + virtual future> + CreateEntryGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateEntryGroup( google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request); + virtual StatusOr UpdateEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request); + + virtual future> + UpdateEntryGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteEntryGroup( google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request); + virtual StatusOr DeleteEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request); + + virtual future> + DeleteEntryGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListEntryGroups( google::cloud::dataplex::v1::ListEntryGroupsRequest request); diff --git a/google/cloud/dataplex/v1/content_connection.h b/google/cloud/dataplex/v1/content_connection.h index 1cf961ce482b8..da40245953bd6 100644 --- a/google/cloud/dataplex/v1/content_connection.h +++ b/google/cloud/dataplex/v1/content_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dataplex/v1/content_connection_idempotency_policy.h" #include "google/cloud/dataplex/v1/internal/content_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dataplex/v1/data_scan_connection.cc b/google/cloud/dataplex/v1/data_scan_connection.cc index e7be894ee5538..bcc57f1d83e37 100644 --- a/google/cloud/dataplex/v1/data_scan_connection.cc +++ b/google/cloud/dataplex/v1/data_scan_connection.cc @@ -46,6 +46,22 @@ DataScanServiceConnection::CreateDataScan( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataScanServiceConnection::CreateDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataScanRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataScanServiceConnection::CreateDataScan( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataScanServiceConnection::UpdateDataScan( google::cloud::dataplex::v1::UpdateDataScanRequest const&) { @@ -54,6 +70,22 @@ DataScanServiceConnection::UpdateDataScan( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataScanServiceConnection::UpdateDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataScanRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataScanServiceConnection::UpdateDataScan( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataScanServiceConnection::DeleteDataScan( google::cloud::dataplex::v1::DeleteDataScanRequest const&) { @@ -62,6 +94,22 @@ DataScanServiceConnection::DeleteDataScan( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataScanServiceConnection::DeleteDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataScanRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataScanServiceConnection::DeleteDataScan( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DataScanServiceConnection::GetDataScan( google::cloud::dataplex::v1::GetDataScanRequest const&) { diff --git a/google/cloud/dataplex/v1/data_scan_connection.h b/google/cloud/dataplex/v1/data_scan_connection.h index 2f9c107cba44f..e45c5967a0439 100644 --- a/google/cloud/dataplex/v1/data_scan_connection.h +++ b/google/cloud/dataplex/v1/data_scan_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dataplex/v1/data_scan_connection_idempotency_policy.h" #include "google/cloud/dataplex/v1/internal/data_scan_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -190,14 +192,38 @@ class DataScanServiceConnection { CreateDataScan( google::cloud::dataplex::v1::CreateDataScanRequest const& request); + virtual StatusOr CreateDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataScanRequest const& request); + + virtual future> + CreateDataScan(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateDataScan( google::cloud::dataplex::v1::UpdateDataScanRequest const& request); + virtual StatusOr UpdateDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataScanRequest const& request); + + virtual future> + UpdateDataScan(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteDataScan( google::cloud::dataplex::v1::DeleteDataScanRequest const& request); + virtual StatusOr DeleteDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataScanRequest const& request); + + virtual future> + DeleteDataScan(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetDataScan( google::cloud::dataplex::v1::GetDataScanRequest const& request); diff --git a/google/cloud/dataplex/v1/data_taxonomy_connection.cc b/google/cloud/dataplex/v1/data_taxonomy_connection.cc index 3482a94ec01cc..5e193fcfe4aea 100644 --- a/google/cloud/dataplex/v1/data_taxonomy_connection.cc +++ b/google/cloud/dataplex/v1/data_taxonomy_connection.cc @@ -46,6 +46,22 @@ DataTaxonomyServiceConnection::CreateDataTaxonomy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataTaxonomyServiceConnection::CreateDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataTaxonomyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataTaxonomyServiceConnection::CreateDataTaxonomy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataTaxonomyServiceConnection::UpdateDataTaxonomy( google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const&) { @@ -54,6 +70,22 @@ DataTaxonomyServiceConnection::UpdateDataTaxonomy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataTaxonomyServiceConnection::UpdateDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataTaxonomyServiceConnection::UpdateDataTaxonomy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataTaxonomyServiceConnection::DeleteDataTaxonomy( google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const&) { @@ -62,6 +94,22 @@ DataTaxonomyServiceConnection::DeleteDataTaxonomy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataTaxonomyServiceConnection::DeleteDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataTaxonomyServiceConnection::DeleteDataTaxonomy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange DataTaxonomyServiceConnection::ListDataTaxonomies( google::cloud::dataplex::v1:: @@ -84,9 +132,41 @@ DataTaxonomyServiceConnection::CreateDataAttributeBinding( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataTaxonomyServiceConnection::CreateDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +DataTaxonomyServiceConnection::CreateDataAttributeBinding( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataTaxonomyServiceConnection::UpdateDataAttributeBinding( + google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr DataTaxonomyServiceConnection::UpdateDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataTaxonomyServiceConnection::UpdateDataAttributeBinding( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -100,6 +180,22 @@ DataTaxonomyServiceConnection::DeleteDataAttributeBinding( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataTaxonomyServiceConnection::DeleteDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataTaxonomyServiceConnection::DeleteDataAttributeBinding( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange DataTaxonomyServiceConnection::ListDataAttributeBindings( google::cloud::dataplex::v1:: @@ -122,6 +218,22 @@ DataTaxonomyServiceConnection::CreateDataAttribute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataTaxonomyServiceConnection::CreateDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataAttributeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataTaxonomyServiceConnection::CreateDataAttribute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataTaxonomyServiceConnection::UpdateDataAttribute( google::cloud::dataplex::v1::UpdateDataAttributeRequest const&) { @@ -130,6 +242,22 @@ DataTaxonomyServiceConnection::UpdateDataAttribute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataTaxonomyServiceConnection::UpdateDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataAttributeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataTaxonomyServiceConnection::UpdateDataAttribute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataTaxonomyServiceConnection::DeleteDataAttribute( google::cloud::dataplex::v1::DeleteDataAttributeRequest const&) { @@ -138,6 +266,22 @@ DataTaxonomyServiceConnection::DeleteDataAttribute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataTaxonomyServiceConnection::DeleteDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataAttributeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataTaxonomyServiceConnection::DeleteDataAttribute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange DataTaxonomyServiceConnection::ListDataAttributes( google::cloud::dataplex::v1:: diff --git a/google/cloud/dataplex/v1/data_taxonomy_connection.h b/google/cloud/dataplex/v1/data_taxonomy_connection.h index 04dcef0e7c8dd..8adc4e3b5be07 100644 --- a/google/cloud/dataplex/v1/data_taxonomy_connection.h +++ b/google/cloud/dataplex/v1/data_taxonomy_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dataplex/v1/data_taxonomy_connection_idempotency_policy.h" #include "google/cloud/dataplex/v1/internal/data_taxonomy_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -192,14 +194,38 @@ class DataTaxonomyServiceConnection { CreateDataTaxonomy( google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request); + virtual StatusOr CreateDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request); + + virtual future> + CreateDataTaxonomy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateDataTaxonomy( google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request); + virtual StatusOr UpdateDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request); + + virtual future> + UpdateDataTaxonomy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteDataTaxonomy( google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request); + virtual StatusOr DeleteDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request); + + virtual future> + DeleteDataTaxonomy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListDataTaxonomies( google::cloud::dataplex::v1::ListDataTaxonomiesRequest request); @@ -212,16 +238,43 @@ class DataTaxonomyServiceConnection { google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& request); + virtual StatusOr CreateDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& + request); + + virtual future> + CreateDataAttributeBinding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateDataAttributeBinding( google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& request); + virtual StatusOr UpdateDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& + request); + + virtual future> + UpdateDataAttributeBinding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteDataAttributeBinding( google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& request); + virtual StatusOr DeleteDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& + request); + + virtual future> + DeleteDataAttributeBinding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListDataAttributeBindings( google::cloud::dataplex::v1::ListDataAttributeBindingsRequest request); @@ -235,14 +288,38 @@ class DataTaxonomyServiceConnection { CreateDataAttribute( google::cloud::dataplex::v1::CreateDataAttributeRequest const& request); + virtual StatusOr CreateDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataAttributeRequest const& request); + + virtual future> + CreateDataAttribute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateDataAttribute( google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request); + virtual StatusOr UpdateDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request); + + virtual future> + UpdateDataAttribute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteDataAttribute( google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request); + virtual StatusOr DeleteDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request); + + virtual future> + DeleteDataAttribute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListDataAttributes( google::cloud::dataplex::v1::ListDataAttributesRequest request); diff --git a/google/cloud/dataplex/v1/dataplex_connection.cc b/google/cloud/dataplex/v1/dataplex_connection.cc index 4d4b6c2dedd43..a82850a2b02ff 100644 --- a/google/cloud/dataplex/v1/dataplex_connection.cc +++ b/google/cloud/dataplex/v1/dataplex_connection.cc @@ -46,6 +46,21 @@ DataplexServiceConnection::CreateLake( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataplexServiceConnection::CreateLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateLakeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataplexServiceConnection::CreateLake(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataplexServiceConnection::UpdateLake( google::cloud::dataplex::v1::UpdateLakeRequest const&) { @@ -54,6 +69,21 @@ DataplexServiceConnection::UpdateLake( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataplexServiceConnection::UpdateLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateLakeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataplexServiceConnection::UpdateLake(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataplexServiceConnection::DeleteLake( google::cloud::dataplex::v1::DeleteLakeRequest const&) { @@ -62,6 +92,21 @@ DataplexServiceConnection::DeleteLake( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataplexServiceConnection::DeleteLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteLakeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataplexServiceConnection::DeleteLake(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange DataplexServiceConnection::ListLakes( google::cloud::dataplex::v1:: @@ -91,6 +136,21 @@ DataplexServiceConnection::CreateZone( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataplexServiceConnection::CreateZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateZoneRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataplexServiceConnection::CreateZone(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataplexServiceConnection::UpdateZone( google::cloud::dataplex::v1::UpdateZoneRequest const&) { @@ -99,6 +159,21 @@ DataplexServiceConnection::UpdateZone( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataplexServiceConnection::UpdateZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateZoneRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataplexServiceConnection::UpdateZone(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataplexServiceConnection::DeleteZone( google::cloud::dataplex::v1::DeleteZoneRequest const&) { @@ -107,6 +182,21 @@ DataplexServiceConnection::DeleteZone( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataplexServiceConnection::DeleteZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteZoneRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataplexServiceConnection::DeleteZone(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange DataplexServiceConnection::ListZones( google::cloud::dataplex::v1:: @@ -136,6 +226,21 @@ DataplexServiceConnection::CreateAsset( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataplexServiceConnection::CreateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateAssetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataplexServiceConnection::CreateAsset(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataplexServiceConnection::UpdateAsset( google::cloud::dataplex::v1::UpdateAssetRequest const&) { @@ -144,6 +249,21 @@ DataplexServiceConnection::UpdateAsset( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataplexServiceConnection::UpdateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateAssetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataplexServiceConnection::UpdateAsset(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataplexServiceConnection::DeleteAsset( google::cloud::dataplex::v1::DeleteAssetRequest const&) { @@ -152,6 +272,21 @@ DataplexServiceConnection::DeleteAsset( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataplexServiceConnection::DeleteAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteAssetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataplexServiceConnection::DeleteAsset(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange DataplexServiceConnection::ListAssets( google::cloud::dataplex::v1:: @@ -182,6 +317,21 @@ DataplexServiceConnection::CreateTask( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataplexServiceConnection::CreateTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateTaskRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataplexServiceConnection::CreateTask(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataplexServiceConnection::UpdateTask( google::cloud::dataplex::v1::UpdateTaskRequest const&) { @@ -190,6 +340,21 @@ DataplexServiceConnection::UpdateTask( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataplexServiceConnection::UpdateTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateTaskRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataplexServiceConnection::UpdateTask(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataplexServiceConnection::DeleteTask( google::cloud::dataplex::v1::DeleteTaskRequest const&) { @@ -198,6 +363,21 @@ DataplexServiceConnection::DeleteTask( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DataplexServiceConnection::DeleteTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteTaskRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataplexServiceConnection::DeleteTask(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange DataplexServiceConnection::ListTasks( google::cloud::dataplex::v1:: @@ -243,6 +423,22 @@ DataplexServiceConnection::CreateEnvironment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataplexServiceConnection::CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEnvironmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataplexServiceConnection::CreateEnvironment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataplexServiceConnection::UpdateEnvironment( google::cloud::dataplex::v1::UpdateEnvironmentRequest const&) { @@ -251,6 +447,22 @@ DataplexServiceConnection::UpdateEnvironment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataplexServiceConnection::UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEnvironmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataplexServiceConnection::UpdateEnvironment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataplexServiceConnection::DeleteEnvironment( google::cloud::dataplex::v1::DeleteEnvironmentRequest const&) { @@ -259,6 +471,22 @@ DataplexServiceConnection::DeleteEnvironment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataplexServiceConnection::DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEnvironmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataplexServiceConnection::DeleteEnvironment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange DataplexServiceConnection::ListEnvironments( google::cloud::dataplex::v1:: diff --git a/google/cloud/dataplex/v1/dataplex_connection.h b/google/cloud/dataplex/v1/dataplex_connection.h index 3b8a6336cbf6c..c65efed78d8d0 100644 --- a/google/cloud/dataplex/v1/dataplex_connection.h +++ b/google/cloud/dataplex/v1/dataplex_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dataplex/v1/dataplex_connection_idempotency_policy.h" #include "google/cloud/dataplex/v1/internal/dataplex_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -189,12 +191,36 @@ class DataplexServiceConnection { virtual future> CreateLake( google::cloud::dataplex::v1::CreateLakeRequest const& request); + virtual StatusOr CreateLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateLakeRequest const& request); + + virtual future> CreateLake( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateLake( google::cloud::dataplex::v1::UpdateLakeRequest const& request); + virtual StatusOr UpdateLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateLakeRequest const& request); + + virtual future> UpdateLake( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteLake(google::cloud::dataplex::v1::DeleteLakeRequest const& request); + virtual StatusOr DeleteLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteLakeRequest const& request); + + virtual future> + DeleteLake(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListLakes( google::cloud::dataplex::v1::ListLakesRequest request); @@ -207,12 +233,36 @@ class DataplexServiceConnection { virtual future> CreateZone( google::cloud::dataplex::v1::CreateZoneRequest const& request); + virtual StatusOr CreateZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateZoneRequest const& request); + + virtual future> CreateZone( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateZone( google::cloud::dataplex::v1::UpdateZoneRequest const& request); + virtual StatusOr UpdateZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateZoneRequest const& request); + + virtual future> UpdateZone( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteZone(google::cloud::dataplex::v1::DeleteZoneRequest const& request); + virtual StatusOr DeleteZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteZoneRequest const& request); + + virtual future> + DeleteZone(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListZones( google::cloud::dataplex::v1::ListZonesRequest request); @@ -225,12 +275,36 @@ class DataplexServiceConnection { virtual future> CreateAsset( google::cloud::dataplex::v1::CreateAssetRequest const& request); + virtual StatusOr CreateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateAssetRequest const& request); + + virtual future> CreateAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateAsset( google::cloud::dataplex::v1::UpdateAssetRequest const& request); + virtual StatusOr UpdateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateAssetRequest const& request); + + virtual future> UpdateAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteAsset(google::cloud::dataplex::v1::DeleteAssetRequest const& request); + virtual StatusOr DeleteAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteAssetRequest const& request); + + virtual future> + DeleteAsset(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListAssets( google::cloud::dataplex::v1::ListAssetsRequest request); @@ -243,12 +317,36 @@ class DataplexServiceConnection { virtual future> CreateTask( google::cloud::dataplex::v1::CreateTaskRequest const& request); + virtual StatusOr CreateTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateTaskRequest const& request); + + virtual future> CreateTask( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateTask( google::cloud::dataplex::v1::UpdateTaskRequest const& request); + virtual StatusOr UpdateTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateTaskRequest const& request); + + virtual future> UpdateTask( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteTask(google::cloud::dataplex::v1::DeleteTaskRequest const& request); + virtual StatusOr DeleteTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteTaskRequest const& request); + + virtual future> + DeleteTask(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListTasks( google::cloud::dataplex::v1::ListTasksRequest request); @@ -271,14 +369,38 @@ class DataplexServiceConnection { CreateEnvironment( google::cloud::dataplex::v1::CreateEnvironmentRequest const& request); + virtual StatusOr CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEnvironmentRequest const& request); + + virtual future> + CreateEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateEnvironment( google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request); + virtual StatusOr UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request); + + virtual future> + UpdateEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteEnvironment( google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request); + virtual StatusOr DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request); + + virtual future> + DeleteEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListEnvironments( google::cloud::dataplex::v1::ListEnvironmentsRequest request); diff --git a/google/cloud/dataplex/v1/internal/catalog_connection_impl.cc b/google/cloud/dataplex/v1/internal/catalog_connection_impl.cc index d0a4269fac9d8..2138c4a8a86a6 100644 --- a/google/cloud/dataplex/v1/internal/catalog_connection_impl.cc +++ b/google/cloud/dataplex/v1/internal/catalog_connection_impl.cc @@ -103,6 +103,59 @@ CatalogServiceConnectionImpl::CreateEntryType( polling_policy(*current), __func__); } +StatusOr +CatalogServiceConnectionImpl::CreateEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEntryTypeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateEntryType(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::CreateEntryTypeRequest const& request) { + return stub_->CreateEntryType(context, options, request); + }, + *current, request, __func__); +} + +future> +CatalogServiceConnectionImpl::CreateEntryType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateEntryType", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::EntryType>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::EntryType>, + polling_policy(*current), __func__); +} + future> CatalogServiceConnectionImpl::UpdateEntryType( google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request) { @@ -142,6 +195,59 @@ CatalogServiceConnectionImpl::UpdateEntryType( polling_policy(*current), __func__); } +StatusOr +CatalogServiceConnectionImpl::UpdateEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateEntryType(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request) { + return stub_->UpdateEntryType(context, options, request); + }, + *current, request, __func__); +} + +future> +CatalogServiceConnectionImpl::UpdateEntryType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateEntryType", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::EntryType>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::EntryType>, + polling_policy(*current), __func__); +} + future> CatalogServiceConnectionImpl::DeleteEntryType( google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request) { @@ -181,6 +287,60 @@ CatalogServiceConnectionImpl::DeleteEntryType( polling_policy(*current), __func__); } +StatusOr +CatalogServiceConnectionImpl::DeleteEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteEntryType(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request) { + return stub_->DeleteEntryType(context, options, request); + }, + *current, request, __func__); +} + +future> +CatalogServiceConnectionImpl::DeleteEntryType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteEntryType", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dataplex::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange CatalogServiceConnectionImpl::ListEntryTypes( google::cloud::dataplex::v1::ListEntryTypesRequest request) { @@ -268,6 +428,59 @@ CatalogServiceConnectionImpl::CreateAspectType( polling_policy(*current), __func__); } +StatusOr +CatalogServiceConnectionImpl::CreateAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateAspectTypeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAspectType(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::CreateAspectTypeRequest const& request) { + return stub_->CreateAspectType(context, options, request); + }, + *current, request, __func__); +} + +future> +CatalogServiceConnectionImpl::CreateAspectType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAspectType", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::AspectType>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::AspectType>, + polling_policy(*current), __func__); +} + future> CatalogServiceConnectionImpl::UpdateAspectType( google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request) { @@ -307,6 +520,59 @@ CatalogServiceConnectionImpl::UpdateAspectType( polling_policy(*current), __func__); } +StatusOr +CatalogServiceConnectionImpl::UpdateAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAspectType(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request) { + return stub_->UpdateAspectType(context, options, request); + }, + *current, request, __func__); +} + +future> +CatalogServiceConnectionImpl::UpdateAspectType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateAspectType", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::AspectType>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::AspectType>, + polling_policy(*current), __func__); +} + future> CatalogServiceConnectionImpl::DeleteAspectType( google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request) { @@ -346,6 +612,60 @@ CatalogServiceConnectionImpl::DeleteAspectType( polling_policy(*current), __func__); } +StatusOr +CatalogServiceConnectionImpl::DeleteAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAspectType(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request) { + return stub_->DeleteAspectType(context, options, request); + }, + *current, request, __func__); +} + +future> +CatalogServiceConnectionImpl::DeleteAspectType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteAspectType", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dataplex::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange CatalogServiceConnectionImpl::ListAspectTypes( google::cloud::dataplex::v1::ListAspectTypesRequest request) { @@ -433,6 +753,59 @@ CatalogServiceConnectionImpl::CreateEntryGroup( polling_policy(*current), __func__); } +StatusOr +CatalogServiceConnectionImpl::CreateEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEntryGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateEntryGroup(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::CreateEntryGroupRequest const& request) { + return stub_->CreateEntryGroup(context, options, request); + }, + *current, request, __func__); +} + +future> +CatalogServiceConnectionImpl::CreateEntryGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateEntryGroup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::EntryGroup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::EntryGroup>, + polling_policy(*current), __func__); +} + future> CatalogServiceConnectionImpl::UpdateEntryGroup( google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request) { @@ -472,6 +845,59 @@ CatalogServiceConnectionImpl::UpdateEntryGroup( polling_policy(*current), __func__); } +StatusOr +CatalogServiceConnectionImpl::UpdateEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateEntryGroup(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request) { + return stub_->UpdateEntryGroup(context, options, request); + }, + *current, request, __func__); +} + +future> +CatalogServiceConnectionImpl::UpdateEntryGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateEntryGroup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::EntryGroup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::EntryGroup>, + polling_policy(*current), __func__); +} + future> CatalogServiceConnectionImpl::DeleteEntryGroup( google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request) { @@ -511,6 +937,60 @@ CatalogServiceConnectionImpl::DeleteEntryGroup( polling_policy(*current), __func__); } +StatusOr +CatalogServiceConnectionImpl::DeleteEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteEntryGroup(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request) { + return stub_->DeleteEntryGroup(context, options, request); + }, + *current, request, __func__); +} + +future> +CatalogServiceConnectionImpl::DeleteEntryGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteEntryGroup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dataplex::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange CatalogServiceConnectionImpl::ListEntryGroups( google::cloud::dataplex::v1::ListEntryGroupsRequest request) { diff --git a/google/cloud/dataplex/v1/internal/catalog_connection_impl.h b/google/cloud/dataplex/v1/internal/catalog_connection_impl.h index 4e200545265ff..8632082491746 100644 --- a/google/cloud/dataplex/v1/internal/catalog_connection_impl.h +++ b/google/cloud/dataplex/v1/internal/catalog_connection_impl.h @@ -56,14 +56,41 @@ class CatalogServiceConnectionImpl google::cloud::dataplex::v1::CreateEntryTypeRequest const& request) override; + StatusOr CreateEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEntryTypeRequest const& request) + override; + + future> CreateEntryType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateEntryType( google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request) override; + StatusOr UpdateEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request) + override; + + future> UpdateEntryType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEntryType(google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request) override; + StatusOr DeleteEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request) + override; + + future> + DeleteEntryType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListEntryTypes( google::cloud::dataplex::v1::ListEntryTypesRequest request) override; @@ -74,14 +101,41 @@ class CatalogServiceConnectionImpl google::cloud::dataplex::v1::CreateAspectTypeRequest const& request) override; + StatusOr CreateAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateAspectTypeRequest const& request) + override; + + future> CreateAspectType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAspectType( google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request) override; + StatusOr UpdateAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request) + override; + + future> UpdateAspectType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAspectType(google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request) override; + StatusOr DeleteAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request) + override; + + future> + DeleteAspectType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListAspectTypes( google::cloud::dataplex::v1::ListAspectTypesRequest request) override; @@ -93,14 +147,41 @@ class CatalogServiceConnectionImpl google::cloud::dataplex::v1::CreateEntryGroupRequest const& request) override; + StatusOr CreateEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEntryGroupRequest const& request) + override; + + future> CreateEntryGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateEntryGroup( google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request) override; + StatusOr UpdateEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request) + override; + + future> UpdateEntryGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEntryGroup(google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request) override; + StatusOr DeleteEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request) + override; + + future> + DeleteEntryGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListEntryGroups( google::cloud::dataplex::v1::ListEntryGroupsRequest request) override; diff --git a/google/cloud/dataplex/v1/internal/catalog_tracing_connection.cc b/google/cloud/dataplex/v1/internal/catalog_tracing_connection.cc index 31234dc2d3eee..8cac7b072d1c2 100644 --- a/google/cloud/dataplex/v1/internal/catalog_tracing_connection.cc +++ b/google/cloud/dataplex/v1/internal/catalog_tracing_connection.cc @@ -42,6 +42,30 @@ CatalogServiceTracingConnection::CreateEntryType( return internal::EndSpan(std::move(span), child_->CreateEntryType(request)); } +StatusOr +CatalogServiceTracingConnection::CreateEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEntryTypeRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::CreateEntryType"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateEntryType(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CatalogServiceTracingConnection::CreateEntryType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::CreateEntryType"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateEntryType(google::cloud::ExperimentalTag{}, operation)); +} + future> CatalogServiceTracingConnection::UpdateEntryType( google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request) { @@ -51,6 +75,30 @@ CatalogServiceTracingConnection::UpdateEntryType( return internal::EndSpan(std::move(span), child_->UpdateEntryType(request)); } +StatusOr +CatalogServiceTracingConnection::UpdateEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::UpdateEntryType"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateEntryType(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CatalogServiceTracingConnection::UpdateEntryType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::UpdateEntryType"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateEntryType(google::cloud::ExperimentalTag{}, operation)); +} + future> CatalogServiceTracingConnection::DeleteEntryType( google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request) { @@ -60,6 +108,30 @@ CatalogServiceTracingConnection::DeleteEntryType( return internal::EndSpan(std::move(span), child_->DeleteEntryType(request)); } +StatusOr +CatalogServiceTracingConnection::DeleteEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::DeleteEntryType"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteEntryType(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CatalogServiceTracingConnection::DeleteEntryType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::DeleteEntryType"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteEntryType(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CatalogServiceTracingConnection::ListEntryTypes( google::cloud::dataplex::v1::ListEntryTypesRequest request) { @@ -89,6 +161,30 @@ CatalogServiceTracingConnection::CreateAspectType( return internal::EndSpan(std::move(span), child_->CreateAspectType(request)); } +StatusOr +CatalogServiceTracingConnection::CreateAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateAspectTypeRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::CreateAspectType"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateAspectType(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CatalogServiceTracingConnection::CreateAspectType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::CreateAspectType"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateAspectType(google::cloud::ExperimentalTag{}, operation)); +} + future> CatalogServiceTracingConnection::UpdateAspectType( google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request) { @@ -98,6 +194,30 @@ CatalogServiceTracingConnection::UpdateAspectType( return internal::EndSpan(std::move(span), child_->UpdateAspectType(request)); } +StatusOr +CatalogServiceTracingConnection::UpdateAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::UpdateAspectType"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateAspectType(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CatalogServiceTracingConnection::UpdateAspectType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::UpdateAspectType"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateAspectType(google::cloud::ExperimentalTag{}, operation)); +} + future> CatalogServiceTracingConnection::DeleteAspectType( google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request) { @@ -107,6 +227,30 @@ CatalogServiceTracingConnection::DeleteAspectType( return internal::EndSpan(std::move(span), child_->DeleteAspectType(request)); } +StatusOr +CatalogServiceTracingConnection::DeleteAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::DeleteAspectType"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAspectType(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CatalogServiceTracingConnection::DeleteAspectType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::DeleteAspectType"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAspectType(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CatalogServiceTracingConnection::ListAspectTypes( google::cloud::dataplex::v1::ListAspectTypesRequest request) { @@ -136,6 +280,30 @@ CatalogServiceTracingConnection::CreateEntryGroup( return internal::EndSpan(std::move(span), child_->CreateEntryGroup(request)); } +StatusOr +CatalogServiceTracingConnection::CreateEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEntryGroupRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::CreateEntryGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateEntryGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CatalogServiceTracingConnection::CreateEntryGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::CreateEntryGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateEntryGroup(google::cloud::ExperimentalTag{}, operation)); +} + future> CatalogServiceTracingConnection::UpdateEntryGroup( google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request) { @@ -145,6 +313,30 @@ CatalogServiceTracingConnection::UpdateEntryGroup( return internal::EndSpan(std::move(span), child_->UpdateEntryGroup(request)); } +StatusOr +CatalogServiceTracingConnection::UpdateEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::UpdateEntryGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateEntryGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CatalogServiceTracingConnection::UpdateEntryGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::UpdateEntryGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateEntryGroup(google::cloud::ExperimentalTag{}, operation)); +} + future> CatalogServiceTracingConnection::DeleteEntryGroup( google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request) { @@ -154,6 +346,30 @@ CatalogServiceTracingConnection::DeleteEntryGroup( return internal::EndSpan(std::move(span), child_->DeleteEntryGroup(request)); } +StatusOr +CatalogServiceTracingConnection::DeleteEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::DeleteEntryGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteEntryGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CatalogServiceTracingConnection::DeleteEntryGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::CatalogServiceConnection::DeleteEntryGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteEntryGroup(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CatalogServiceTracingConnection::ListEntryGroups( google::cloud::dataplex::v1::ListEntryGroupsRequest request) { diff --git a/google/cloud/dataplex/v1/internal/catalog_tracing_connection.h b/google/cloud/dataplex/v1/internal/catalog_tracing_connection.h index cb1e2a8924a00..e1e7ccd3e5f5c 100644 --- a/google/cloud/dataplex/v1/internal/catalog_tracing_connection.h +++ b/google/cloud/dataplex/v1/internal/catalog_tracing_connection.h @@ -44,14 +44,41 @@ class CatalogServiceTracingConnection google::cloud::dataplex::v1::CreateEntryTypeRequest const& request) override; + StatusOr CreateEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEntryTypeRequest const& request) + override; + + future> CreateEntryType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateEntryType( google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request) override; + StatusOr UpdateEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request) + override; + + future> UpdateEntryType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEntryType(google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request) override; + StatusOr DeleteEntryType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request) + override; + + future> + DeleteEntryType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListEntryTypes( google::cloud::dataplex::v1::ListEntryTypesRequest request) override; @@ -62,14 +89,41 @@ class CatalogServiceTracingConnection google::cloud::dataplex::v1::CreateAspectTypeRequest const& request) override; + StatusOr CreateAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateAspectTypeRequest const& request) + override; + + future> CreateAspectType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAspectType( google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request) override; + StatusOr UpdateAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request) + override; + + future> UpdateAspectType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAspectType(google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request) override; + StatusOr DeleteAspectType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request) + override; + + future> + DeleteAspectType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListAspectTypes( google::cloud::dataplex::v1::ListAspectTypesRequest request) override; @@ -81,14 +135,41 @@ class CatalogServiceTracingConnection google::cloud::dataplex::v1::CreateEntryGroupRequest const& request) override; + StatusOr CreateEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEntryGroupRequest const& request) + override; + + future> CreateEntryGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateEntryGroup( google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request) override; + StatusOr UpdateEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request) + override; + + future> UpdateEntryGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEntryGroup(google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request) override; + StatusOr DeleteEntryGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request) + override; + + future> + DeleteEntryGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListEntryGroups( google::cloud::dataplex::v1::ListEntryGroupsRequest request) override; diff --git a/google/cloud/dataplex/v1/internal/data_scan_connection_impl.cc b/google/cloud/dataplex/v1/internal/data_scan_connection_impl.cc index 6d8e67fd02caf..2ce8970165ef2 100644 --- a/google/cloud/dataplex/v1/internal/data_scan_connection_impl.cc +++ b/google/cloud/dataplex/v1/internal/data_scan_connection_impl.cc @@ -105,6 +105,59 @@ DataScanServiceConnectionImpl::CreateDataScan( polling_policy(*current), __func__); } +StatusOr +DataScanServiceConnectionImpl::CreateDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataScanRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDataScan(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::CreateDataScanRequest const& request) { + return stub_->CreateDataScan(context, options, request); + }, + *current, request, __func__); +} + +future> +DataScanServiceConnectionImpl::CreateDataScan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDataScan", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::DataScan>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::DataScan>, + polling_policy(*current), __func__); +} + future> DataScanServiceConnectionImpl::UpdateDataScan( google::cloud::dataplex::v1::UpdateDataScanRequest const& request) { @@ -144,6 +197,59 @@ DataScanServiceConnectionImpl::UpdateDataScan( polling_policy(*current), __func__); } +StatusOr +DataScanServiceConnectionImpl::UpdateDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataScanRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDataScan(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::UpdateDataScanRequest const& request) { + return stub_->UpdateDataScan(context, options, request); + }, + *current, request, __func__); +} + +future> +DataScanServiceConnectionImpl::UpdateDataScan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateDataScan", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::DataScan>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::DataScan>, + polling_policy(*current), __func__); +} + future> DataScanServiceConnectionImpl::DeleteDataScan( google::cloud::dataplex::v1::DeleteDataScanRequest const& request) { @@ -183,6 +289,60 @@ DataScanServiceConnectionImpl::DeleteDataScan( polling_policy(*current), __func__); } +StatusOr +DataScanServiceConnectionImpl::DeleteDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataScanRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDataScan(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::DeleteDataScanRequest const& request) { + return stub_->DeleteDataScan(context, options, request); + }, + *current, request, __func__); +} + +future> +DataScanServiceConnectionImpl::DeleteDataScan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDataScan", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dataplex::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr DataScanServiceConnectionImpl::GetDataScan( google::cloud::dataplex::v1::GetDataScanRequest const& request) { diff --git a/google/cloud/dataplex/v1/internal/data_scan_connection_impl.h b/google/cloud/dataplex/v1/internal/data_scan_connection_impl.h index dffd04cd78053..df213962220ff 100644 --- a/google/cloud/dataplex/v1/internal/data_scan_connection_impl.h +++ b/google/cloud/dataplex/v1/internal/data_scan_connection_impl.h @@ -56,14 +56,41 @@ class DataScanServiceConnectionImpl google::cloud::dataplex::v1::CreateDataScanRequest const& request) override; + StatusOr CreateDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataScanRequest const& request) + override; + + future> CreateDataScan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDataScan( google::cloud::dataplex::v1::UpdateDataScanRequest const& request) override; + StatusOr UpdateDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataScanRequest const& request) + override; + + future> UpdateDataScan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDataScan(google::cloud::dataplex::v1::DeleteDataScanRequest const& request) override; + StatusOr DeleteDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataScanRequest const& request) + override; + + future> + DeleteDataScan(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDataScan( google::cloud::dataplex::v1::GetDataScanRequest const& request) override; diff --git a/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.cc b/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.cc index 789f69dc95830..8130217fc3760 100644 --- a/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.cc +++ b/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.cc @@ -42,6 +42,30 @@ DataScanServiceTracingConnection::CreateDataScan( return internal::EndSpan(std::move(span), child_->CreateDataScan(request)); } +StatusOr +DataScanServiceTracingConnection::CreateDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataScanRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::DataScanServiceConnection::CreateDataScan"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateDataScan(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataScanServiceTracingConnection::CreateDataScan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::DataScanServiceConnection::CreateDataScan"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateDataScan(google::cloud::ExperimentalTag{}, operation)); +} + future> DataScanServiceTracingConnection::UpdateDataScan( google::cloud::dataplex::v1::UpdateDataScanRequest const& request) { @@ -51,6 +75,30 @@ DataScanServiceTracingConnection::UpdateDataScan( return internal::EndSpan(std::move(span), child_->UpdateDataScan(request)); } +StatusOr +DataScanServiceTracingConnection::UpdateDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataScanRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::DataScanServiceConnection::UpdateDataScan"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateDataScan(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataScanServiceTracingConnection::UpdateDataScan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::DataScanServiceConnection::UpdateDataScan"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateDataScan(google::cloud::ExperimentalTag{}, operation)); +} + future> DataScanServiceTracingConnection::DeleteDataScan( google::cloud::dataplex::v1::DeleteDataScanRequest const& request) { @@ -60,6 +108,30 @@ DataScanServiceTracingConnection::DeleteDataScan( return internal::EndSpan(std::move(span), child_->DeleteDataScan(request)); } +StatusOr +DataScanServiceTracingConnection::DeleteDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataScanRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::DataScanServiceConnection::DeleteDataScan"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteDataScan(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataScanServiceTracingConnection::DeleteDataScan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::DataScanServiceConnection::DeleteDataScan"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteDataScan(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DataScanServiceTracingConnection::GetDataScan( google::cloud::dataplex::v1::GetDataScanRequest const& request) { diff --git a/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.h b/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.h index 840ffb0352166..86751b3e9ab58 100644 --- a/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.h +++ b/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.h @@ -44,14 +44,41 @@ class DataScanServiceTracingConnection google::cloud::dataplex::v1::CreateDataScanRequest const& request) override; + StatusOr CreateDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataScanRequest const& request) + override; + + future> CreateDataScan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDataScan( google::cloud::dataplex::v1::UpdateDataScanRequest const& request) override; + StatusOr UpdateDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataScanRequest const& request) + override; + + future> UpdateDataScan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDataScan(google::cloud::dataplex::v1::DeleteDataScanRequest const& request) override; + StatusOr DeleteDataScan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataScanRequest const& request) + override; + + future> + DeleteDataScan(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDataScan( google::cloud::dataplex::v1::GetDataScanRequest const& request) override; diff --git a/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.cc b/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.cc index bc86bd2d6f64b..aabe9197bae3a 100644 --- a/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.cc +++ b/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.cc @@ -107,6 +107,60 @@ DataTaxonomyServiceConnectionImpl::CreateDataTaxonomy( polling_policy(*current), __func__); } +StatusOr +DataTaxonomyServiceConnectionImpl::CreateDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDataTaxonomy(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& + request) { + return stub_->CreateDataTaxonomy(context, options, request); + }, + *current, request, __func__); +} + +future> +DataTaxonomyServiceConnectionImpl::CreateDataTaxonomy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDataTaxonomy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::DataTaxonomy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::DataTaxonomy>, + polling_policy(*current), __func__); +} + future> DataTaxonomyServiceConnectionImpl::UpdateDataTaxonomy( google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request) { @@ -147,6 +201,60 @@ DataTaxonomyServiceConnectionImpl::UpdateDataTaxonomy( polling_policy(*current), __func__); } +StatusOr +DataTaxonomyServiceConnectionImpl::UpdateDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDataTaxonomy(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& + request) { + return stub_->UpdateDataTaxonomy(context, options, request); + }, + *current, request, __func__); +} + +future> +DataTaxonomyServiceConnectionImpl::UpdateDataTaxonomy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateDataTaxonomy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::DataTaxonomy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::DataTaxonomy>, + polling_policy(*current), __func__); +} + future> DataTaxonomyServiceConnectionImpl::DeleteDataTaxonomy( google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request) { @@ -187,6 +295,60 @@ DataTaxonomyServiceConnectionImpl::DeleteDataTaxonomy( polling_policy(*current), __func__); } +StatusOr +DataTaxonomyServiceConnectionImpl::DeleteDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDataTaxonomy(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& + request) { + return stub_->DeleteDataTaxonomy(context, options, request); + }, + *current, request, __func__); +} + +future> +DataTaxonomyServiceConnectionImpl::DeleteDataTaxonomy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDataTaxonomy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dataplex::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange DataTaxonomyServiceConnectionImpl::ListDataTaxonomies( google::cloud::dataplex::v1::ListDataTaxonomiesRequest request) { @@ -277,6 +439,62 @@ DataTaxonomyServiceConnectionImpl::CreateDataAttributeBinding( polling_policy(*current), __func__); } +StatusOr +DataTaxonomyServiceConnectionImpl::CreateDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDataAttributeBinding(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& + request) { + return stub_->CreateDataAttributeBinding(context, options, request); + }, + *current, request, __func__); +} + +future> +DataTaxonomyServiceConnectionImpl::CreateDataAttributeBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDataAttributeBinding", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::DataAttributeBinding>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::DataAttributeBinding>, + polling_policy(*current), __func__); +} + future> DataTaxonomyServiceConnectionImpl::UpdateDataAttributeBinding( google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& @@ -318,6 +536,62 @@ DataTaxonomyServiceConnectionImpl::UpdateDataAttributeBinding( polling_policy(*current), __func__); } +StatusOr +DataTaxonomyServiceConnectionImpl::UpdateDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDataAttributeBinding(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& + request) { + return stub_->UpdateDataAttributeBinding(context, options, request); + }, + *current, request, __func__); +} + +future> +DataTaxonomyServiceConnectionImpl::UpdateDataAttributeBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateDataAttributeBinding", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::DataAttributeBinding>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::DataAttributeBinding>, + polling_policy(*current), __func__); +} + future> DataTaxonomyServiceConnectionImpl::DeleteDataAttributeBinding( google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& @@ -359,6 +633,62 @@ DataTaxonomyServiceConnectionImpl::DeleteDataAttributeBinding( polling_policy(*current), __func__); } +StatusOr +DataTaxonomyServiceConnectionImpl::DeleteDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDataAttributeBinding(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& + request) { + return stub_->DeleteDataAttributeBinding(context, options, request); + }, + *current, request, __func__); +} + +future> +DataTaxonomyServiceConnectionImpl::DeleteDataAttributeBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDataAttributeBinding", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dataplex::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange DataTaxonomyServiceConnectionImpl::ListDataAttributeBindings( google::cloud::dataplex::v1::ListDataAttributeBindingsRequest request) { @@ -451,6 +781,60 @@ DataTaxonomyServiceConnectionImpl::CreateDataAttribute( polling_policy(*current), __func__); } +StatusOr +DataTaxonomyServiceConnectionImpl::CreateDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataAttributeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDataAttribute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::CreateDataAttributeRequest const& + request) { + return stub_->CreateDataAttribute(context, options, request); + }, + *current, request, __func__); +} + +future> +DataTaxonomyServiceConnectionImpl::CreateDataAttribute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDataAttribute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::DataAttribute>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::DataAttribute>, + polling_policy(*current), __func__); +} + future> DataTaxonomyServiceConnectionImpl::UpdateDataAttribute( google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request) { @@ -491,6 +875,60 @@ DataTaxonomyServiceConnectionImpl::UpdateDataAttribute( polling_policy(*current), __func__); } +StatusOr +DataTaxonomyServiceConnectionImpl::UpdateDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDataAttribute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::UpdateDataAttributeRequest const& + request) { + return stub_->UpdateDataAttribute(context, options, request); + }, + *current, request, __func__); +} + +future> +DataTaxonomyServiceConnectionImpl::UpdateDataAttribute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateDataAttribute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::DataAttribute>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::DataAttribute>, + polling_policy(*current), __func__); +} + future> DataTaxonomyServiceConnectionImpl::DeleteDataAttribute( google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request) { @@ -531,6 +969,60 @@ DataTaxonomyServiceConnectionImpl::DeleteDataAttribute( polling_policy(*current), __func__); } +StatusOr +DataTaxonomyServiceConnectionImpl::DeleteDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDataAttribute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::DeleteDataAttributeRequest const& + request) { + return stub_->DeleteDataAttribute(context, options, request); + }, + *current, request, __func__); +} + +future> +DataTaxonomyServiceConnectionImpl::DeleteDataAttribute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDataAttribute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dataplex::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange DataTaxonomyServiceConnectionImpl::ListDataAttributes( google::cloud::dataplex::v1::ListDataAttributesRequest request) { diff --git a/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.h b/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.h index bcef1823744a5..d66954d1a5cf5 100644 --- a/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.h +++ b/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.h @@ -57,16 +57,43 @@ class DataTaxonomyServiceConnectionImpl google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request) override; + StatusOr CreateDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request) + override; + + future> + CreateDataTaxonomy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDataTaxonomy( google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request) override; + StatusOr UpdateDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request) + override; + + future> + UpdateDataTaxonomy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDataTaxonomy( google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request) override; + StatusOr DeleteDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request) + override; + + future> + DeleteDataTaxonomy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDataTaxonomies( google::cloud::dataplex::v1::ListDataTaxonomiesRequest request) override; @@ -79,16 +106,46 @@ class DataTaxonomyServiceConnectionImpl google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& request) override; + StatusOr CreateDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& + request) override; + + future> + CreateDataAttributeBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDataAttributeBinding( google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& request) override; + StatusOr UpdateDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& + request) override; + + future> + UpdateDataAttributeBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDataAttributeBinding( google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& request) override; + StatusOr DeleteDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& + request) override; + + future> + DeleteDataAttributeBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDataAttributeBindings( google::cloud::dataplex::v1::ListDataAttributeBindingsRequest request) @@ -104,16 +161,43 @@ class DataTaxonomyServiceConnectionImpl google::cloud::dataplex::v1::CreateDataAttributeRequest const& request) override; + StatusOr CreateDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataAttributeRequest const& request) + override; + + future> + CreateDataAttribute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDataAttribute( google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request) override; + StatusOr UpdateDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request) + override; + + future> + UpdateDataAttribute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDataAttribute( google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request) override; + StatusOr DeleteDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request) + override; + + future> + DeleteDataAttribute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDataAttributes( google::cloud::dataplex::v1::ListDataAttributesRequest request) override; diff --git a/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.cc b/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.cc index 1b7f2db9666a8..305d024d22db4 100644 --- a/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.cc +++ b/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.cc @@ -43,6 +43,30 @@ DataTaxonomyServiceTracingConnection::CreateDataTaxonomy( child_->CreateDataTaxonomy(request)); } +StatusOr +DataTaxonomyServiceTracingConnection::CreateDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::CreateDataTaxonomy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateDataTaxonomy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataTaxonomyServiceTracingConnection::CreateDataTaxonomy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::CreateDataTaxonomy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateDataTaxonomy(google::cloud::ExperimentalTag{}, operation)); +} + future> DataTaxonomyServiceTracingConnection::UpdateDataTaxonomy( google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request) { @@ -53,6 +77,30 @@ DataTaxonomyServiceTracingConnection::UpdateDataTaxonomy( child_->UpdateDataTaxonomy(request)); } +StatusOr +DataTaxonomyServiceTracingConnection::UpdateDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::UpdateDataTaxonomy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateDataTaxonomy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataTaxonomyServiceTracingConnection::UpdateDataTaxonomy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::UpdateDataTaxonomy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateDataTaxonomy(google::cloud::ExperimentalTag{}, operation)); +} + future> DataTaxonomyServiceTracingConnection::DeleteDataTaxonomy( google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request) { @@ -63,6 +111,30 @@ DataTaxonomyServiceTracingConnection::DeleteDataTaxonomy( child_->DeleteDataTaxonomy(request)); } +StatusOr +DataTaxonomyServiceTracingConnection::DeleteDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::DeleteDataTaxonomy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteDataTaxonomy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataTaxonomyServiceTracingConnection::DeleteDataTaxonomy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::DeleteDataTaxonomy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteDataTaxonomy(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange DataTaxonomyServiceTracingConnection::ListDataTaxonomies( google::cloud::dataplex::v1::ListDataTaxonomiesRequest request) { @@ -95,6 +167,31 @@ DataTaxonomyServiceTracingConnection::CreateDataAttributeBinding( child_->CreateDataAttributeBinding(request)); } +StatusOr +DataTaxonomyServiceTracingConnection::CreateDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& + request) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::CreateDataAttributeBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateDataAttributeBinding( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataTaxonomyServiceTracingConnection::CreateDataAttributeBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::CreateDataAttributeBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateDataAttributeBinding( + google::cloud::ExperimentalTag{}, operation)); +} + future> DataTaxonomyServiceTracingConnection::UpdateDataAttributeBinding( google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& @@ -106,6 +203,31 @@ DataTaxonomyServiceTracingConnection::UpdateDataAttributeBinding( child_->UpdateDataAttributeBinding(request)); } +StatusOr +DataTaxonomyServiceTracingConnection::UpdateDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& + request) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::UpdateDataAttributeBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateDataAttributeBinding( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataTaxonomyServiceTracingConnection::UpdateDataAttributeBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::UpdateDataAttributeBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateDataAttributeBinding( + google::cloud::ExperimentalTag{}, operation)); +} + future> DataTaxonomyServiceTracingConnection::DeleteDataAttributeBinding( google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& @@ -117,6 +239,31 @@ DataTaxonomyServiceTracingConnection::DeleteDataAttributeBinding( child_->DeleteDataAttributeBinding(request)); } +StatusOr +DataTaxonomyServiceTracingConnection::DeleteDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& + request) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::DeleteDataAttributeBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteDataAttributeBinding( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataTaxonomyServiceTracingConnection::DeleteDataAttributeBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::DeleteDataAttributeBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteDataAttributeBinding( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange DataTaxonomyServiceTracingConnection::ListDataAttributeBindings( google::cloud::dataplex::v1::ListDataAttributeBindingsRequest request) { @@ -149,6 +296,30 @@ DataTaxonomyServiceTracingConnection::CreateDataAttribute( child_->CreateDataAttribute(request)); } +StatusOr +DataTaxonomyServiceTracingConnection::CreateDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataAttributeRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::CreateDataAttribute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateDataAttribute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataTaxonomyServiceTracingConnection::CreateDataAttribute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::CreateDataAttribute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateDataAttribute(google::cloud::ExperimentalTag{}, operation)); +} + future> DataTaxonomyServiceTracingConnection::UpdateDataAttribute( google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request) { @@ -159,6 +330,30 @@ DataTaxonomyServiceTracingConnection::UpdateDataAttribute( child_->UpdateDataAttribute(request)); } +StatusOr +DataTaxonomyServiceTracingConnection::UpdateDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::UpdateDataAttribute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateDataAttribute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataTaxonomyServiceTracingConnection::UpdateDataAttribute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::UpdateDataAttribute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateDataAttribute(google::cloud::ExperimentalTag{}, operation)); +} + future> DataTaxonomyServiceTracingConnection::DeleteDataAttribute( google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request) { @@ -169,6 +364,30 @@ DataTaxonomyServiceTracingConnection::DeleteDataAttribute( child_->DeleteDataAttribute(request)); } +StatusOr +DataTaxonomyServiceTracingConnection::DeleteDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::DeleteDataAttribute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteDataAttribute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataTaxonomyServiceTracingConnection::DeleteDataAttribute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::DataTaxonomyServiceConnection::DeleteDataAttribute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteDataAttribute(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange DataTaxonomyServiceTracingConnection::ListDataAttributes( google::cloud::dataplex::v1::ListDataAttributesRequest request) { diff --git a/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.h b/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.h index eed7ea3a1f886..506092beccf2e 100644 --- a/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.h +++ b/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.h @@ -45,16 +45,43 @@ class DataTaxonomyServiceTracingConnection google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request) override; + StatusOr CreateDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request) + override; + + future> + CreateDataTaxonomy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDataTaxonomy( google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request) override; + StatusOr UpdateDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request) + override; + + future> + UpdateDataTaxonomy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDataTaxonomy( google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request) override; + StatusOr DeleteDataTaxonomy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request) + override; + + future> + DeleteDataTaxonomy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDataTaxonomies( google::cloud::dataplex::v1::ListDataTaxonomiesRequest request) override; @@ -67,16 +94,46 @@ class DataTaxonomyServiceTracingConnection google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& request) override; + StatusOr CreateDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& + request) override; + + future> + CreateDataAttributeBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDataAttributeBinding( google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& request) override; + StatusOr UpdateDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& + request) override; + + future> + UpdateDataAttributeBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDataAttributeBinding( google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& request) override; + StatusOr DeleteDataAttributeBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& + request) override; + + future> + DeleteDataAttributeBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDataAttributeBindings( google::cloud::dataplex::v1::ListDataAttributeBindingsRequest request) @@ -92,16 +149,43 @@ class DataTaxonomyServiceTracingConnection google::cloud::dataplex::v1::CreateDataAttributeRequest const& request) override; + StatusOr CreateDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataAttributeRequest const& request) + override; + + future> + CreateDataAttribute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDataAttribute( google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request) override; + StatusOr UpdateDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request) + override; + + future> + UpdateDataAttribute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDataAttribute( google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request) override; + StatusOr DeleteDataAttribute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request) + override; + + future> + DeleteDataAttribute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDataAttributes( google::cloud::dataplex::v1::ListDataAttributesRequest request) override; diff --git a/google/cloud/dataplex/v1/internal/dataplex_connection_impl.cc b/google/cloud/dataplex/v1/internal/dataplex_connection_impl.cc index 7a42e91d7a5b2..43b6330f84fea 100644 --- a/google/cloud/dataplex/v1/internal/dataplex_connection_impl.cc +++ b/google/cloud/dataplex/v1/internal/dataplex_connection_impl.cc @@ -105,6 +105,58 @@ DataplexServiceConnectionImpl::CreateLake( polling_policy(*current), __func__); } +StatusOr +DataplexServiceConnectionImpl::CreateLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateLakeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateLake(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::CreateLakeRequest const& request) { + return stub_->CreateLake(context, options, request); + }, + *current, request, __func__); +} + +future> +DataplexServiceConnectionImpl::CreateLake( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateLake", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::Lake>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::Lake>, + polling_policy(*current), __func__); +} + future> DataplexServiceConnectionImpl::UpdateLake( google::cloud::dataplex::v1::UpdateLakeRequest const& request) { @@ -144,6 +196,58 @@ DataplexServiceConnectionImpl::UpdateLake( polling_policy(*current), __func__); } +StatusOr +DataplexServiceConnectionImpl::UpdateLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateLakeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateLake(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::UpdateLakeRequest const& request) { + return stub_->UpdateLake(context, options, request); + }, + *current, request, __func__); +} + +future> +DataplexServiceConnectionImpl::UpdateLake( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateLake", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::Lake>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::Lake>, + polling_policy(*current), __func__); +} + future> DataplexServiceConnectionImpl::DeleteLake( google::cloud::dataplex::v1::DeleteLakeRequest const& request) { @@ -183,6 +287,59 @@ DataplexServiceConnectionImpl::DeleteLake( polling_policy(*current), __func__); } +StatusOr +DataplexServiceConnectionImpl::DeleteLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteLakeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteLake(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::DeleteLakeRequest const& request) { + return stub_->DeleteLake(context, options, request); + }, + *current, request, __func__); +} + +future> +DataplexServiceConnectionImpl::DeleteLake( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteLake", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dataplex::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange DataplexServiceConnectionImpl::ListLakes( google::cloud::dataplex::v1::ListLakesRequest request) { @@ -303,6 +460,58 @@ DataplexServiceConnectionImpl::CreateZone( polling_policy(*current), __func__); } +StatusOr +DataplexServiceConnectionImpl::CreateZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateZoneRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateZone(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::CreateZoneRequest const& request) { + return stub_->CreateZone(context, options, request); + }, + *current, request, __func__); +} + +future> +DataplexServiceConnectionImpl::CreateZone( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateZone", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::Zone>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::Zone>, + polling_policy(*current), __func__); +} + future> DataplexServiceConnectionImpl::UpdateZone( google::cloud::dataplex::v1::UpdateZoneRequest const& request) { @@ -342,6 +551,58 @@ DataplexServiceConnectionImpl::UpdateZone( polling_policy(*current), __func__); } +StatusOr +DataplexServiceConnectionImpl::UpdateZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateZoneRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateZone(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::UpdateZoneRequest const& request) { + return stub_->UpdateZone(context, options, request); + }, + *current, request, __func__); +} + +future> +DataplexServiceConnectionImpl::UpdateZone( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateZone", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::Zone>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::Zone>, + polling_policy(*current), __func__); +} + future> DataplexServiceConnectionImpl::DeleteZone( google::cloud::dataplex::v1::DeleteZoneRequest const& request) { @@ -381,6 +642,59 @@ DataplexServiceConnectionImpl::DeleteZone( polling_policy(*current), __func__); } +StatusOr +DataplexServiceConnectionImpl::DeleteZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteZoneRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteZone(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::DeleteZoneRequest const& request) { + return stub_->DeleteZone(context, options, request); + }, + *current, request, __func__); +} + +future> +DataplexServiceConnectionImpl::DeleteZone( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteZone", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dataplex::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange DataplexServiceConnectionImpl::ListZones( google::cloud::dataplex::v1::ListZonesRequest request) { @@ -497,26 +811,169 @@ DataplexServiceConnectionImpl::CreateAsset( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::dataplex::v1::Asset>, - retry_policy(*current), backoff_policy(*current), idempotent, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +DataplexServiceConnectionImpl::CreateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateAssetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAsset(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::CreateAssetRequest const& request) { + return stub_->CreateAsset(context, options, request); + }, + *current, request, __func__); +} + +future> +DataplexServiceConnectionImpl::CreateAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAsset", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::Asset>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::Asset>, + polling_policy(*current), __func__); +} + +future> +DataplexServiceConnectionImpl::UpdateAsset( + google::cloud::dataplex::v1::UpdateAssetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->UpdateAsset(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::dataplex::v1::Asset>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::dataplex::v1::UpdateAssetRequest const& request) { + return stub->AsyncUpdateAsset(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::Asset>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +DataplexServiceConnectionImpl::UpdateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateAssetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAsset(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::UpdateAssetRequest const& request) { + return stub_->UpdateAsset(context, options, request); + }, + *current, request, __func__); +} + +future> +DataplexServiceConnectionImpl::UpdateAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateAsset", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::Asset>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::Asset>, polling_policy(*current), __func__); } -future> -DataplexServiceConnectionImpl::UpdateAsset( - google::cloud::dataplex::v1::UpdateAssetRequest const& request) { +future> +DataplexServiceConnectionImpl::DeleteAsset( + google::cloud::dataplex::v1::DeleteAssetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); auto request_copy = request; auto const idempotent = - idempotency_policy(*current)->UpdateAsset(request_copy); + idempotency_policy(*current)->DeleteAsset(request_copy); return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::dataplex::v1::Asset>( + google::cloud::dataplex::v1::OperationMetadata>( background_->cq(), current, std::move(request_copy), [stub = stub_]( google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, - google::cloud::dataplex::v1::UpdateAssetRequest const& request) { - return stub->AsyncUpdateAsset(cq, std::move(context), + google::cloud::dataplex::v1::DeleteAssetRequest const& request) { + return stub->AsyncDeleteAsset(cq, std::move(context), std::move(options), request); }, [stub = stub_](google::cloud::CompletionQueue& cq, @@ -534,30 +991,45 @@ DataplexServiceConnectionImpl::UpdateAsset( return stub->AsyncCancelOperation(cq, std::move(context), std::move(options), request); }, - &google::cloud::internal::ExtractLongRunningResultResponse< - google::cloud::dataplex::v1::Asset>, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dataplex::v1::OperationMetadata>, retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } -future> +StatusOr DataplexServiceConnectionImpl::DeleteAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::dataplex::v1::DeleteAssetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->DeleteAsset(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::dataplex::v1::OperationMetadata>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::dataplex::v1::DeleteAssetRequest const& request) { - return stub->AsyncDeleteAsset(cq, std::move(context), - std::move(options), request); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAsset(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::DeleteAssetRequest const& request) { + return stub_->DeleteAsset(context, options, request); }, + *current, request, __func__); +} + +future> +DataplexServiceConnectionImpl::DeleteAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteAsset", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::OperationMetadata>( + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -575,7 +1047,6 @@ DataplexServiceConnectionImpl::DeleteAsset( }, &google::cloud::internal::ExtractLongRunningResultMetadata< google::cloud::dataplex::v1::OperationMetadata>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } @@ -700,6 +1171,58 @@ DataplexServiceConnectionImpl::CreateTask( polling_policy(*current), __func__); } +StatusOr +DataplexServiceConnectionImpl::CreateTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateTaskRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateTask(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::CreateTaskRequest const& request) { + return stub_->CreateTask(context, options, request); + }, + *current, request, __func__); +} + +future> +DataplexServiceConnectionImpl::CreateTask( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateTask", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::Task>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::Task>, + polling_policy(*current), __func__); +} + future> DataplexServiceConnectionImpl::UpdateTask( google::cloud::dataplex::v1::UpdateTaskRequest const& request) { @@ -739,6 +1262,58 @@ DataplexServiceConnectionImpl::UpdateTask( polling_policy(*current), __func__); } +StatusOr +DataplexServiceConnectionImpl::UpdateTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateTaskRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateTask(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::UpdateTaskRequest const& request) { + return stub_->UpdateTask(context, options, request); + }, + *current, request, __func__); +} + +future> +DataplexServiceConnectionImpl::UpdateTask( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateTask", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::Task>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::Task>, + polling_policy(*current), __func__); +} + future> DataplexServiceConnectionImpl::DeleteTask( google::cloud::dataplex::v1::DeleteTaskRequest const& request) { @@ -778,6 +1353,59 @@ DataplexServiceConnectionImpl::DeleteTask( polling_policy(*current), __func__); } +StatusOr +DataplexServiceConnectionImpl::DeleteTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteTaskRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTask(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::DeleteTaskRequest const& request) { + return stub_->DeleteTask(context, options, request); + }, + *current, request, __func__); +} + +future> +DataplexServiceConnectionImpl::DeleteTask( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTask", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dataplex::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange DataplexServiceConnectionImpl::ListTasks( google::cloud::dataplex::v1::ListTasksRequest request) { @@ -939,6 +1567,60 @@ DataplexServiceConnectionImpl::CreateEnvironment( polling_policy(*current), __func__); } +StatusOr +DataplexServiceConnectionImpl::CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEnvironmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateEnvironment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::CreateEnvironmentRequest const& + request) { + return stub_->CreateEnvironment(context, options, request); + }, + *current, request, __func__); +} + +future> +DataplexServiceConnectionImpl::CreateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateEnvironment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::Environment>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::Environment>, + polling_policy(*current), __func__); +} + future> DataplexServiceConnectionImpl::UpdateEnvironment( google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request) { @@ -979,6 +1661,60 @@ DataplexServiceConnectionImpl::UpdateEnvironment( polling_policy(*current), __func__); } +StatusOr +DataplexServiceConnectionImpl::UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateEnvironment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::UpdateEnvironmentRequest const& + request) { + return stub_->UpdateEnvironment(context, options, request); + }, + *current, request, __func__); +} + +future> +DataplexServiceConnectionImpl::UpdateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateEnvironment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::Environment>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataplex::v1::Environment>, + polling_policy(*current), __func__); +} + future> DataplexServiceConnectionImpl::DeleteEnvironment( google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request) { @@ -1019,6 +1755,60 @@ DataplexServiceConnectionImpl::DeleteEnvironment( polling_policy(*current), __func__); } +StatusOr +DataplexServiceConnectionImpl::DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteEnvironment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataplex::v1::DeleteEnvironmentRequest const& + request) { + return stub_->DeleteEnvironment(context, options, request); + }, + *current, request, __func__); +} + +future> +DataplexServiceConnectionImpl::DeleteEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteEnvironment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataplex::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dataplex::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange DataplexServiceConnectionImpl::ListEnvironments( google::cloud::dataplex::v1::ListEnvironmentsRequest request) { diff --git a/google/cloud/dataplex/v1/internal/dataplex_connection_impl.h b/google/cloud/dataplex/v1/internal/dataplex_connection_impl.h index 9e5b8d18243ee..9bea46e1cd64c 100644 --- a/google/cloud/dataplex/v1/internal/dataplex_connection_impl.h +++ b/google/cloud/dataplex/v1/internal/dataplex_connection_impl.h @@ -55,12 +55,36 @@ class DataplexServiceConnectionImpl future> CreateLake( google::cloud::dataplex::v1::CreateLakeRequest const& request) override; + StatusOr CreateLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateLakeRequest const& request) override; + + future> CreateLake( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateLake( google::cloud::dataplex::v1::UpdateLakeRequest const& request) override; + StatusOr UpdateLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateLakeRequest const& request) override; + + future> UpdateLake( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteLake( google::cloud::dataplex::v1::DeleteLakeRequest const& request) override; + StatusOr DeleteLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteLakeRequest const& request) override; + + future> DeleteLake( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListLakes( google::cloud::dataplex::v1::ListLakesRequest request) override; @@ -73,12 +97,36 @@ class DataplexServiceConnectionImpl future> CreateZone( google::cloud::dataplex::v1::CreateZoneRequest const& request) override; + StatusOr CreateZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateZoneRequest const& request) override; + + future> CreateZone( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateZone( google::cloud::dataplex::v1::UpdateZoneRequest const& request) override; + StatusOr UpdateZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateZoneRequest const& request) override; + + future> UpdateZone( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteZone( google::cloud::dataplex::v1::DeleteZoneRequest const& request) override; + StatusOr DeleteZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteZoneRequest const& request) override; + + future> DeleteZone( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListZones( google::cloud::dataplex::v1::ListZonesRequest request) override; @@ -91,12 +139,36 @@ class DataplexServiceConnectionImpl future> CreateAsset( google::cloud::dataplex::v1::CreateAssetRequest const& request) override; + StatusOr CreateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateAssetRequest const& request) override; + + future> CreateAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAsset( google::cloud::dataplex::v1::UpdateAssetRequest const& request) override; + StatusOr UpdateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateAssetRequest const& request) override; + + future> UpdateAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAsset( google::cloud::dataplex::v1::DeleteAssetRequest const& request) override; + StatusOr DeleteAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteAssetRequest const& request) override; + + future> DeleteAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListAssets( google::cloud::dataplex::v1::ListAssetsRequest request) override; @@ -109,12 +181,36 @@ class DataplexServiceConnectionImpl future> CreateTask( google::cloud::dataplex::v1::CreateTaskRequest const& request) override; + StatusOr CreateTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateTaskRequest const& request) override; + + future> CreateTask( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTask( google::cloud::dataplex::v1::UpdateTaskRequest const& request) override; + StatusOr UpdateTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateTaskRequest const& request) override; + + future> UpdateTask( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTask( google::cloud::dataplex::v1::DeleteTaskRequest const& request) override; + StatusOr DeleteTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteTaskRequest const& request) override; + + future> DeleteTask( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTasks( google::cloud::dataplex::v1::ListTasksRequest request) override; @@ -137,14 +233,41 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::CreateEnvironmentRequest const& request) override; + StatusOr CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEnvironmentRequest const& request) + override; + + future> CreateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateEnvironment( google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request) override; + StatusOr UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request) + override; + + future> UpdateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEnvironment(google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request) override; + StatusOr DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request) + override; + + future> + DeleteEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListEnvironments( google::cloud::dataplex::v1::ListEnvironmentsRequest request) override; diff --git a/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.cc b/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.cc index f72fb54c9764d..90279ae18e5d6 100644 --- a/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.cc +++ b/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.cc @@ -42,6 +42,30 @@ DataplexServiceTracingConnection::CreateLake( return internal::EndSpan(std::move(span), child_->CreateLake(request)); } +StatusOr +DataplexServiceTracingConnection::CreateLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateLakeRequest const& request) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateLake"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateLake(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataplexServiceTracingConnection::CreateLake( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateLake"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateLake(google::cloud::ExperimentalTag{}, operation)); +} + future> DataplexServiceTracingConnection::UpdateLake( google::cloud::dataplex::v1::UpdateLakeRequest const& request) { @@ -51,6 +75,30 @@ DataplexServiceTracingConnection::UpdateLake( return internal::EndSpan(std::move(span), child_->UpdateLake(request)); } +StatusOr +DataplexServiceTracingConnection::UpdateLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateLakeRequest const& request) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateLake"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateLake(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataplexServiceTracingConnection::UpdateLake( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateLake"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateLake(google::cloud::ExperimentalTag{}, operation)); +} + future> DataplexServiceTracingConnection::DeleteLake( google::cloud::dataplex::v1::DeleteLakeRequest const& request) { @@ -60,6 +108,30 @@ DataplexServiceTracingConnection::DeleteLake( return internal::EndSpan(std::move(span), child_->DeleteLake(request)); } +StatusOr +DataplexServiceTracingConnection::DeleteLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteLakeRequest const& request) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteLake"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteLake(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataplexServiceTracingConnection::DeleteLake( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteLake"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteLake(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange DataplexServiceTracingConnection::ListLakes( google::cloud::dataplex::v1::ListLakesRequest request) { @@ -100,6 +172,30 @@ DataplexServiceTracingConnection::CreateZone( return internal::EndSpan(std::move(span), child_->CreateZone(request)); } +StatusOr +DataplexServiceTracingConnection::CreateZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateZoneRequest const& request) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateZone"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateZone(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataplexServiceTracingConnection::CreateZone( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateZone"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateZone(google::cloud::ExperimentalTag{}, operation)); +} + future> DataplexServiceTracingConnection::UpdateZone( google::cloud::dataplex::v1::UpdateZoneRequest const& request) { @@ -109,6 +205,30 @@ DataplexServiceTracingConnection::UpdateZone( return internal::EndSpan(std::move(span), child_->UpdateZone(request)); } +StatusOr +DataplexServiceTracingConnection::UpdateZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateZoneRequest const& request) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateZone"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateZone(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataplexServiceTracingConnection::UpdateZone( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateZone"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateZone(google::cloud::ExperimentalTag{}, operation)); +} + future> DataplexServiceTracingConnection::DeleteZone( google::cloud::dataplex::v1::DeleteZoneRequest const& request) { @@ -118,6 +238,30 @@ DataplexServiceTracingConnection::DeleteZone( return internal::EndSpan(std::move(span), child_->DeleteZone(request)); } +StatusOr +DataplexServiceTracingConnection::DeleteZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteZoneRequest const& request) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteZone"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteZone(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataplexServiceTracingConnection::DeleteZone( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteZone"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteZone(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange DataplexServiceTracingConnection::ListZones( google::cloud::dataplex::v1::ListZonesRequest request) { @@ -158,6 +302,30 @@ DataplexServiceTracingConnection::CreateAsset( return internal::EndSpan(std::move(span), child_->CreateAsset(request)); } +StatusOr +DataplexServiceTracingConnection::CreateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateAssetRequest const& request) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateAsset"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateAsset(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataplexServiceTracingConnection::CreateAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateAsset"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateAsset(google::cloud::ExperimentalTag{}, operation)); +} + future> DataplexServiceTracingConnection::UpdateAsset( google::cloud::dataplex::v1::UpdateAssetRequest const& request) { @@ -167,6 +335,30 @@ DataplexServiceTracingConnection::UpdateAsset( return internal::EndSpan(std::move(span), child_->UpdateAsset(request)); } +StatusOr +DataplexServiceTracingConnection::UpdateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateAssetRequest const& request) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateAsset"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateAsset(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataplexServiceTracingConnection::UpdateAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateAsset"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateAsset(google::cloud::ExperimentalTag{}, operation)); +} + future> DataplexServiceTracingConnection::DeleteAsset( google::cloud::dataplex::v1::DeleteAssetRequest const& request) { @@ -176,6 +368,30 @@ DataplexServiceTracingConnection::DeleteAsset( return internal::EndSpan(std::move(span), child_->DeleteAsset(request)); } +StatusOr +DataplexServiceTracingConnection::DeleteAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteAssetRequest const& request) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteAsset"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAsset(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataplexServiceTracingConnection::DeleteAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteAsset"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAsset(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange DataplexServiceTracingConnection::ListAssets( google::cloud::dataplex::v1::ListAssetsRequest request) { @@ -216,6 +432,30 @@ DataplexServiceTracingConnection::CreateTask( return internal::EndSpan(std::move(span), child_->CreateTask(request)); } +StatusOr +DataplexServiceTracingConnection::CreateTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateTaskRequest const& request) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateTask"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateTask(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataplexServiceTracingConnection::CreateTask( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateTask"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateTask(google::cloud::ExperimentalTag{}, operation)); +} + future> DataplexServiceTracingConnection::UpdateTask( google::cloud::dataplex::v1::UpdateTaskRequest const& request) { @@ -225,6 +465,30 @@ DataplexServiceTracingConnection::UpdateTask( return internal::EndSpan(std::move(span), child_->UpdateTask(request)); } +StatusOr +DataplexServiceTracingConnection::UpdateTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateTaskRequest const& request) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateTask"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateTask(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataplexServiceTracingConnection::UpdateTask( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateTask"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateTask(google::cloud::ExperimentalTag{}, operation)); +} + future> DataplexServiceTracingConnection::DeleteTask( google::cloud::dataplex::v1::DeleteTaskRequest const& request) { @@ -234,6 +498,30 @@ DataplexServiceTracingConnection::DeleteTask( return internal::EndSpan(std::move(span), child_->DeleteTask(request)); } +StatusOr +DataplexServiceTracingConnection::DeleteTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteTaskRequest const& request) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteTask"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteTask(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataplexServiceTracingConnection::DeleteTask( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteTask"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteTask(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange DataplexServiceTracingConnection::ListTasks( google::cloud::dataplex::v1::ListTasksRequest request) { @@ -300,6 +588,30 @@ DataplexServiceTracingConnection::CreateEnvironment( return internal::EndSpan(std::move(span), child_->CreateEnvironment(request)); } +StatusOr +DataplexServiceTracingConnection::CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEnvironmentRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::DataplexServiceConnection::CreateEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateEnvironment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataplexServiceTracingConnection::CreateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::DataplexServiceConnection::CreateEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateEnvironment(google::cloud::ExperimentalTag{}, operation)); +} + future> DataplexServiceTracingConnection::UpdateEnvironment( google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request) { @@ -309,6 +621,30 @@ DataplexServiceTracingConnection::UpdateEnvironment( return internal::EndSpan(std::move(span), child_->UpdateEnvironment(request)); } +StatusOr +DataplexServiceTracingConnection::UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::DataplexServiceConnection::UpdateEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateEnvironment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataplexServiceTracingConnection::UpdateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::DataplexServiceConnection::UpdateEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateEnvironment(google::cloud::ExperimentalTag{}, operation)); +} + future> DataplexServiceTracingConnection::DeleteEnvironment( google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request) { @@ -318,6 +654,30 @@ DataplexServiceTracingConnection::DeleteEnvironment( return internal::EndSpan(std::move(span), child_->DeleteEnvironment(request)); } +StatusOr +DataplexServiceTracingConnection::DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request) { + auto span = internal::MakeSpan( + "dataplex_v1::DataplexServiceConnection::DeleteEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteEnvironment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataplexServiceTracingConnection::DeleteEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataplex_v1::DataplexServiceConnection::DeleteEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteEnvironment(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange DataplexServiceTracingConnection::ListEnvironments( google::cloud::dataplex::v1::ListEnvironmentsRequest request) { diff --git a/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.h b/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.h index ca8dd6c436551..426f864ef452d 100644 --- a/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.h +++ b/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.h @@ -43,12 +43,36 @@ class DataplexServiceTracingConnection future> CreateLake( google::cloud::dataplex::v1::CreateLakeRequest const& request) override; + StatusOr CreateLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateLakeRequest const& request) override; + + future> CreateLake( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateLake( google::cloud::dataplex::v1::UpdateLakeRequest const& request) override; + StatusOr UpdateLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateLakeRequest const& request) override; + + future> UpdateLake( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteLake( google::cloud::dataplex::v1::DeleteLakeRequest const& request) override; + StatusOr DeleteLake( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteLakeRequest const& request) override; + + future> DeleteLake( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListLakes( google::cloud::dataplex::v1::ListLakesRequest request) override; @@ -61,12 +85,36 @@ class DataplexServiceTracingConnection future> CreateZone( google::cloud::dataplex::v1::CreateZoneRequest const& request) override; + StatusOr CreateZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateZoneRequest const& request) override; + + future> CreateZone( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateZone( google::cloud::dataplex::v1::UpdateZoneRequest const& request) override; + StatusOr UpdateZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateZoneRequest const& request) override; + + future> UpdateZone( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteZone( google::cloud::dataplex::v1::DeleteZoneRequest const& request) override; + StatusOr DeleteZone( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteZoneRequest const& request) override; + + future> DeleteZone( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListZones( google::cloud::dataplex::v1::ListZonesRequest request) override; @@ -79,12 +127,36 @@ class DataplexServiceTracingConnection future> CreateAsset( google::cloud::dataplex::v1::CreateAssetRequest const& request) override; + StatusOr CreateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateAssetRequest const& request) override; + + future> CreateAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAsset( google::cloud::dataplex::v1::UpdateAssetRequest const& request) override; + StatusOr UpdateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateAssetRequest const& request) override; + + future> UpdateAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAsset( google::cloud::dataplex::v1::DeleteAssetRequest const& request) override; + StatusOr DeleteAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteAssetRequest const& request) override; + + future> DeleteAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListAssets( google::cloud::dataplex::v1::ListAssetsRequest request) override; @@ -97,12 +169,36 @@ class DataplexServiceTracingConnection future> CreateTask( google::cloud::dataplex::v1::CreateTaskRequest const& request) override; + StatusOr CreateTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateTaskRequest const& request) override; + + future> CreateTask( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTask( google::cloud::dataplex::v1::UpdateTaskRequest const& request) override; + StatusOr UpdateTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateTaskRequest const& request) override; + + future> UpdateTask( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTask( google::cloud::dataplex::v1::DeleteTaskRequest const& request) override; + StatusOr DeleteTask( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteTaskRequest const& request) override; + + future> DeleteTask( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTasks( google::cloud::dataplex::v1::ListTasksRequest request) override; @@ -125,14 +221,41 @@ class DataplexServiceTracingConnection google::cloud::dataplex::v1::CreateEnvironmentRequest const& request) override; + StatusOr CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEnvironmentRequest const& request) + override; + + future> CreateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateEnvironment( google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request) override; + StatusOr UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request) + override; + + future> UpdateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEnvironment(google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request) override; + StatusOr DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request) + override; + + future> + DeleteEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListEnvironments( google::cloud::dataplex::v1::ListEnvironmentsRequest request) override; diff --git a/google/cloud/dataplex/v1/metadata_connection.h b/google/cloud/dataplex/v1/metadata_connection.h index 9838e701e1670..854d278175231 100644 --- a/google/cloud/dataplex/v1/metadata_connection.h +++ b/google/cloud/dataplex/v1/metadata_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dataplex/v1/internal/metadata_retry_traits.h" #include "google/cloud/dataplex/v1/metadata_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dataplex/v1/mocks/mock_catalog_connection.h b/google/cloud/dataplex/v1/mocks/mock_catalog_connection.h index 14e7647df3b56..9d759590d4889 100644 --- a/google/cloud/dataplex/v1/mocks/mock_catalog_connection.h +++ b/google/cloud/dataplex/v1/mocks/mock_catalog_connection.h @@ -52,17 +52,53 @@ class MockCatalogServiceConnection (google::cloud::dataplex::v1::CreateEntryTypeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateEntryType, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEntryTypeRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateEntryType, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateEntryType, (google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateEntryType, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateEntryType, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteEntryType, (google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteEntryType, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteEntryType, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListEntryTypes, (google::cloud::dataplex::v1::ListEntryTypesRequest request), @@ -78,18 +114,54 @@ class MockCatalogServiceConnection (google::cloud::dataplex::v1::CreateAspectTypeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateAspectType, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateAspectTypeRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateAspectType, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateAspectType, (google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateAspectType, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateAspectType, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteAspectType, (google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteAspectType, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteAspectType, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListAspectTypes, (google::cloud::dataplex::v1::ListAspectTypesRequest request), @@ -106,18 +178,54 @@ class MockCatalogServiceConnection (google::cloud::dataplex::v1::CreateEntryGroupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateEntryGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEntryGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateEntryGroup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateEntryGroup, (google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateEntryGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateEntryGroup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteEntryGroup, (google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteEntryGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteEntryGroup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListEntryGroups, (google::cloud::dataplex::v1::ListEntryGroupsRequest request), diff --git a/google/cloud/dataplex/v1/mocks/mock_data_scan_connection.h b/google/cloud/dataplex/v1/mocks/mock_data_scan_connection.h index 626a037f4aeef..39e547fabc9dd 100644 --- a/google/cloud/dataplex/v1/mocks/mock_data_scan_connection.h +++ b/google/cloud/dataplex/v1/mocks/mock_data_scan_connection.h @@ -52,17 +52,53 @@ class MockDataScanServiceConnection (google::cloud::dataplex::v1::CreateDataScanRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateDataScan, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataScanRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateDataScan, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateDataScan, (google::cloud::dataplex::v1::UpdateDataScanRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateDataScan, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataScanRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateDataScan, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteDataScan, (google::cloud::dataplex::v1::DeleteDataScanRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteDataScan, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataScanRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteDataScan, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetDataScan, (google::cloud::dataplex::v1::GetDataScanRequest const& request), (override)); diff --git a/google/cloud/dataplex/v1/mocks/mock_data_taxonomy_connection.h b/google/cloud/dataplex/v1/mocks/mock_data_taxonomy_connection.h index ae8569cef6b60..c320dfda32fda 100644 --- a/google/cloud/dataplex/v1/mocks/mock_data_taxonomy_connection.h +++ b/google/cloud/dataplex/v1/mocks/mock_data_taxonomy_connection.h @@ -53,18 +53,54 @@ class MockDataTaxonomyServiceConnection (google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateDataTaxonomy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateDataTaxonomy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateDataTaxonomy, (google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateDataTaxonomy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateDataTaxonomy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteDataTaxonomy, (google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteDataTaxonomy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteDataTaxonomy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListDataTaxonomies, (google::cloud::dataplex::v1::ListDataTaxonomiesRequest request), @@ -82,6 +118,20 @@ class MockDataTaxonomyServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateDataAttributeBinding, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateDataAttributeBinding, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateDataAttributeBinding, @@ -89,6 +139,20 @@ class MockDataTaxonomyServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateDataAttributeBinding, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateDataAttributeBinding, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteDataAttributeBinding, @@ -96,6 +160,19 @@ class MockDataTaxonomyServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteDataAttributeBinding, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteDataAttributeBinding, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListDataAttributeBindings, @@ -115,18 +192,54 @@ class MockDataTaxonomyServiceConnection (google::cloud::dataplex::v1::CreateDataAttributeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateDataAttribute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateDataAttributeRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateDataAttribute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateDataAttribute, (google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateDataAttribute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateDataAttribute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteDataAttribute, (google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteDataAttribute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteDataAttribute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListDataAttributes, (google::cloud::dataplex::v1::ListDataAttributesRequest request), diff --git a/google/cloud/dataplex/v1/mocks/mock_dataplex_connection.h b/google/cloud/dataplex/v1/mocks/mock_dataplex_connection.h index ce793b5ea387d..30d9c123205cf 100644 --- a/google/cloud/dataplex/v1/mocks/mock_dataplex_connection.h +++ b/google/cloud/dataplex/v1/mocks/mock_dataplex_connection.h @@ -51,15 +51,46 @@ class MockDataplexServiceConnection (google::cloud::dataplex::v1::CreateLakeRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateLake, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateLakeRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateLake, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateLake, (google::cloud::dataplex::v1::UpdateLakeRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateLake, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateLakeRequest const& request), + (override)); + + MOCK_METHOD(future>, UpdateLake, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteLake, (google::cloud::dataplex::v1::DeleteLakeRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteLake, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteLakeRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteLake, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListLakes, (google::cloud::dataplex::v1::ListLakesRequest request), (override)); @@ -77,15 +108,46 @@ class MockDataplexServiceConnection (google::cloud::dataplex::v1::CreateZoneRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateZone, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateZoneRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateZone, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateZone, (google::cloud::dataplex::v1::UpdateZoneRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateZone, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateZoneRequest const& request), + (override)); + + MOCK_METHOD(future>, UpdateZone, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteZone, (google::cloud::dataplex::v1::DeleteZoneRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteZone, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteZoneRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteZone, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListZones, (google::cloud::dataplex::v1::ListZonesRequest request), (override)); @@ -103,15 +165,46 @@ class MockDataplexServiceConnection (google::cloud::dataplex::v1::CreateAssetRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateAsset, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateAssetRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateAsset, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateAsset, (google::cloud::dataplex::v1::UpdateAssetRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateAsset, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateAssetRequest const& request), + (override)); + + MOCK_METHOD(future>, UpdateAsset, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteAsset, (google::cloud::dataplex::v1::DeleteAssetRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteAsset, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteAssetRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteAsset, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListAssets, (google::cloud::dataplex::v1::ListAssetsRequest request), (override)); @@ -129,15 +222,46 @@ class MockDataplexServiceConnection (google::cloud::dataplex::v1::CreateTaskRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateTask, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateTaskRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateTask, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateTask, (google::cloud::dataplex::v1::UpdateTaskRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateTask, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateTaskRequest const& request), + (override)); + + MOCK_METHOD(future>, UpdateTask, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteTask, (google::cloud::dataplex::v1::DeleteTaskRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteTask, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteTaskRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteTask, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListTasks, (google::cloud::dataplex::v1::ListTasksRequest request), (override)); @@ -168,18 +292,54 @@ class MockDataplexServiceConnection (google::cloud::dataplex::v1::CreateEnvironmentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateEnvironment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::CreateEnvironmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateEnvironment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateEnvironment, (google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateEnvironment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateEnvironment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteEnvironment, (google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteEnvironment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteEnvironment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListEnvironments, (google::cloud::dataplex::v1::ListEnvironmentsRequest request), diff --git a/google/cloud/dataproc/v1/autoscaling_policy_connection.h b/google/cloud/dataproc/v1/autoscaling_policy_connection.h index 84d4b14706311..55ef7d9fdd6cd 100644 --- a/google/cloud/dataproc/v1/autoscaling_policy_connection.h +++ b/google/cloud/dataproc/v1/autoscaling_policy_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dataproc/v1/autoscaling_policy_connection_idempotency_policy.h" #include "google/cloud/dataproc/v1/internal/autoscaling_policy_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dataproc/v1/batch_controller_connection.cc b/google/cloud/dataproc/v1/batch_controller_connection.cc index 3adf855c8001e..93a9eddf68800 100644 --- a/google/cloud/dataproc/v1/batch_controller_connection.cc +++ b/google/cloud/dataproc/v1/batch_controller_connection.cc @@ -46,6 +46,21 @@ BatchControllerConnection::CreateBatch( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr BatchControllerConnection::CreateBatch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateBatchRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BatchControllerConnection::CreateBatch(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr BatchControllerConnection::GetBatch( google::cloud::dataproc::v1::GetBatchRequest const&) { diff --git a/google/cloud/dataproc/v1/batch_controller_connection.h b/google/cloud/dataproc/v1/batch_controller_connection.h index 1540addc2f57c..177e3ee82bd14 100644 --- a/google/cloud/dataproc/v1/batch_controller_connection.h +++ b/google/cloud/dataproc/v1/batch_controller_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dataproc/v1/batch_controller_connection_idempotency_policy.h" #include "google/cloud/dataproc/v1/internal/batch_controller_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -191,6 +193,14 @@ class BatchControllerConnection { virtual future> CreateBatch( google::cloud::dataproc::v1::CreateBatchRequest const& request); + virtual StatusOr CreateBatch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateBatchRequest const& request); + + virtual future> CreateBatch( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetBatch( google::cloud::dataproc::v1::GetBatchRequest const& request); diff --git a/google/cloud/dataproc/v1/cluster_controller_connection.cc b/google/cloud/dataproc/v1/cluster_controller_connection.cc index ff7c5d5231129..5c58af1dc2342 100644 --- a/google/cloud/dataproc/v1/cluster_controller_connection.cc +++ b/google/cloud/dataproc/v1/cluster_controller_connection.cc @@ -46,6 +46,22 @@ ClusterControllerConnection::CreateCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ClusterControllerConnection::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ClusterControllerConnection::CreateCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ClusterControllerConnection::UpdateCluster( google::cloud::dataproc::v1::UpdateClusterRequest const&) { @@ -54,6 +70,22 @@ ClusterControllerConnection::UpdateCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ClusterControllerConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::UpdateClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ClusterControllerConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ClusterControllerConnection::StopCluster( google::cloud::dataproc::v1::StopClusterRequest const&) { @@ -62,6 +94,22 @@ ClusterControllerConnection::StopCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ClusterControllerConnection::StopCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::StopClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ClusterControllerConnection::StopCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ClusterControllerConnection::StartCluster( google::cloud::dataproc::v1::StartClusterRequest const&) { @@ -70,6 +118,22 @@ ClusterControllerConnection::StartCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ClusterControllerConnection::StartCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::StartClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ClusterControllerConnection::StartCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ClusterControllerConnection::DeleteCluster( google::cloud::dataproc::v1::DeleteClusterRequest const&) { @@ -78,6 +142,22 @@ ClusterControllerConnection::DeleteCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ClusterControllerConnection::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DeleteClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ClusterControllerConnection::DeleteCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ClusterControllerConnection::GetCluster( google::cloud::dataproc::v1::GetClusterRequest const&) { @@ -100,6 +180,22 @@ ClusterControllerConnection::DiagnoseCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ClusterControllerConnection::DiagnoseCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DiagnoseClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ClusterControllerConnection::DiagnoseCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeClusterControllerConnection( std::string const& location, Options options) { internal::CheckExpectedOptions> CreateCluster( google::cloud::dataproc::v1::CreateClusterRequest const& request); + virtual StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateClusterRequest const& request); + + virtual future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateCluster( google::cloud::dataproc::v1::UpdateClusterRequest const& request); + virtual StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::UpdateClusterRequest const& request); + + virtual future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StopCluster( google::cloud::dataproc::v1::StopClusterRequest const& request); + virtual StatusOr StopCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::StopClusterRequest const& request); + + virtual future> StopCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StartCluster( google::cloud::dataproc::v1::StartClusterRequest const& request); + virtual StatusOr StartCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::StartClusterRequest const& request); + + virtual future> StartCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteCluster( google::cloud::dataproc::v1::DeleteClusterRequest const& request); + virtual StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DeleteClusterRequest const& request); + + virtual future< + StatusOr> + DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetCluster( google::cloud::dataproc::v1::GetClusterRequest const& request); @@ -214,6 +257,14 @@ class ClusterControllerConnection { virtual future> DiagnoseCluster( google::cloud::dataproc::v1::DiagnoseClusterRequest const& request); + + virtual StatusOr DiagnoseCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DiagnoseClusterRequest const& request); + + virtual future> + DiagnoseCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.cc b/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.cc index c828c545ace07..c303ae1156a71 100644 --- a/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.cc @@ -105,6 +105,59 @@ BatchControllerConnectionImpl::CreateBatch( polling_policy(*current), __func__); } +StatusOr +BatchControllerConnectionImpl::CreateBatch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateBatchRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateBatch(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataproc::v1::CreateBatchRequest const& request) { + return stub_->CreateBatch(context, options, request); + }, + *current, request, __func__); +} + +future> +BatchControllerConnectionImpl::CreateBatch( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateBatch", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataproc::v1::Batch>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataproc::v1::Batch>, + polling_policy(*current), __func__); +} + StatusOr BatchControllerConnectionImpl::GetBatch( google::cloud::dataproc::v1::GetBatchRequest const& request) { diff --git a/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.h b/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.h index f050e52df68cc..7b2bb87225d28 100644 --- a/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.h +++ b/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.h @@ -55,6 +55,14 @@ class BatchControllerConnectionImpl future> CreateBatch( google::cloud::dataproc::v1::CreateBatchRequest const& request) override; + StatusOr CreateBatch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateBatchRequest const& request) override; + + future> CreateBatch( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBatch( google::cloud::dataproc::v1::GetBatchRequest const& request) override; diff --git a/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.cc b/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.cc index 3bace45943950..abbf4854179c7 100644 --- a/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.cc @@ -42,6 +42,30 @@ BatchControllerTracingConnection::CreateBatch( return internal::EndSpan(std::move(span), child_->CreateBatch(request)); } +StatusOr +BatchControllerTracingConnection::CreateBatch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateBatchRequest const& request) { + auto span = + internal::MakeSpan("dataproc_v1::BatchControllerConnection::CreateBatch"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateBatch(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BatchControllerTracingConnection::CreateBatch( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dataproc_v1::BatchControllerConnection::CreateBatch"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateBatch(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr BatchControllerTracingConnection::GetBatch( google::cloud::dataproc::v1::GetBatchRequest const& request) { diff --git a/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.h b/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.h index 79f0260997608..8da0e8dec83a2 100644 --- a/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.h +++ b/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.h @@ -43,6 +43,14 @@ class BatchControllerTracingConnection future> CreateBatch( google::cloud::dataproc::v1::CreateBatchRequest const& request) override; + StatusOr CreateBatch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateBatchRequest const& request) override; + + future> CreateBatch( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBatch( google::cloud::dataproc::v1::GetBatchRequest const& request) override; diff --git a/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.cc b/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.cc index 0969e5ab93b73..47b4cf6e72aef 100644 --- a/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.cc @@ -106,6 +106,59 @@ ClusterControllerConnectionImpl::CreateCluster( polling_policy(*current), __func__); } +StatusOr +ClusterControllerConnectionImpl::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataproc::v1::CreateClusterRequest const& request) { + return stub_->CreateCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +ClusterControllerConnectionImpl::CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataproc::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataproc::v1::Cluster>, + polling_policy(*current), __func__); +} + future> ClusterControllerConnectionImpl::UpdateCluster( google::cloud::dataproc::v1::UpdateClusterRequest const& request) { @@ -145,6 +198,59 @@ ClusterControllerConnectionImpl::UpdateCluster( polling_policy(*current), __func__); } +StatusOr +ClusterControllerConnectionImpl::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::UpdateClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataproc::v1::UpdateClusterRequest const& request) { + return stub_->UpdateCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +ClusterControllerConnectionImpl::UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataproc::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataproc::v1::Cluster>, + polling_policy(*current), __func__); +} + future> ClusterControllerConnectionImpl::StopCluster( google::cloud::dataproc::v1::StopClusterRequest const& request) { @@ -184,6 +290,59 @@ ClusterControllerConnectionImpl::StopCluster( polling_policy(*current), __func__); } +StatusOr +ClusterControllerConnectionImpl::StopCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::StopClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StopCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataproc::v1::StopClusterRequest const& request) { + return stub_->StopCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +ClusterControllerConnectionImpl::StopCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to StopCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataproc::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataproc::v1::Cluster>, + polling_policy(*current), __func__); +} + future> ClusterControllerConnectionImpl::StartCluster( google::cloud::dataproc::v1::StartClusterRequest const& request) { @@ -223,6 +382,59 @@ ClusterControllerConnectionImpl::StartCluster( polling_policy(*current), __func__); } +StatusOr +ClusterControllerConnectionImpl::StartCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::StartClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataproc::v1::StartClusterRequest const& request) { + return stub_->StartCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +ClusterControllerConnectionImpl::StartCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to StartCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataproc::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataproc::v1::Cluster>, + polling_policy(*current), __func__); +} + future> ClusterControllerConnectionImpl::DeleteCluster( google::cloud::dataproc::v1::DeleteClusterRequest const& request) { @@ -262,6 +474,60 @@ ClusterControllerConnectionImpl::DeleteCluster( polling_policy(*current), __func__); } +StatusOr +ClusterControllerConnectionImpl::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DeleteClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataproc::v1::DeleteClusterRequest const& request) { + return stub_->DeleteCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +ClusterControllerConnectionImpl::DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataproc::v1::ClusterOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dataproc::v1::ClusterOperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr ClusterControllerConnectionImpl::GetCluster( google::cloud::dataproc::v1::GetClusterRequest const& request) { @@ -349,6 +615,61 @@ ClusterControllerConnectionImpl::DiagnoseCluster( polling_policy(*current), __func__); } +StatusOr +ClusterControllerConnectionImpl::DiagnoseCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DiagnoseClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DiagnoseCluster(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataproc::v1::DiagnoseClusterRequest const& request) { + return stub_->DiagnoseCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +ClusterControllerConnectionImpl::DiagnoseCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DiagnoseCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataproc::v1::DiagnoseClusterResults>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataproc::v1::DiagnoseClusterResults>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace dataproc_v1_internal } // namespace cloud diff --git a/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.h b/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.h index 18f73fbb7b001..68908bece348c 100644 --- a/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.h +++ b/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.h @@ -56,20 +56,63 @@ class ClusterControllerConnectionImpl google::cloud::dataproc::v1::CreateClusterRequest const& request) override; + StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateClusterRequest const& request) + override; + + future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCluster( google::cloud::dataproc::v1::UpdateClusterRequest const& request) override; + StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::UpdateClusterRequest const& request) + override; + + future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopCluster( google::cloud::dataproc::v1::StopClusterRequest const& request) override; + StatusOr StopCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::StopClusterRequest const& request) override; + + future> StopCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartCluster( google::cloud::dataproc::v1::StartClusterRequest const& request) override; + StatusOr StartCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::StartClusterRequest const& request) override; + + future> StartCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCluster(google::cloud::dataproc::v1::DeleteClusterRequest const& request) override; + StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DeleteClusterRequest const& request) + override; + + future> + DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetCluster( google::cloud::dataproc::v1::GetClusterRequest const& request) override; @@ -80,6 +123,15 @@ class ClusterControllerConnectionImpl DiagnoseCluster(google::cloud::dataproc::v1::DiagnoseClusterRequest const& request) override; + StatusOr DiagnoseCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DiagnoseClusterRequest const& request) + override; + + future> + DiagnoseCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.cc b/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.cc index ea473b84e6ef8..b481c8570fcaf 100644 --- a/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.cc @@ -42,6 +42,30 @@ ClusterControllerTracingConnection::CreateCluster( return internal::EndSpan(std::move(span), child_->CreateCluster(request)); } +StatusOr +ClusterControllerTracingConnection::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateClusterRequest const& request) { + auto span = internal::MakeSpan( + "dataproc_v1::ClusterControllerConnection::CreateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ClusterControllerTracingConnection::CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataproc_v1::ClusterControllerConnection::CreateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> ClusterControllerTracingConnection::UpdateCluster( google::cloud::dataproc::v1::UpdateClusterRequest const& request) { @@ -51,6 +75,30 @@ ClusterControllerTracingConnection::UpdateCluster( return internal::EndSpan(std::move(span), child_->UpdateCluster(request)); } +StatusOr +ClusterControllerTracingConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::UpdateClusterRequest const& request) { + auto span = internal::MakeSpan( + "dataproc_v1::ClusterControllerConnection::UpdateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ClusterControllerTracingConnection::UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataproc_v1::ClusterControllerConnection::UpdateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> ClusterControllerTracingConnection::StopCluster( google::cloud::dataproc::v1::StopClusterRequest const& request) { @@ -60,6 +108,30 @@ ClusterControllerTracingConnection::StopCluster( return internal::EndSpan(std::move(span), child_->StopCluster(request)); } +StatusOr +ClusterControllerTracingConnection::StopCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::StopClusterRequest const& request) { + auto span = internal::MakeSpan( + "dataproc_v1::ClusterControllerConnection::StopCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StopCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ClusterControllerTracingConnection::StopCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataproc_v1::ClusterControllerConnection::StopCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StopCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> ClusterControllerTracingConnection::StartCluster( google::cloud::dataproc::v1::StartClusterRequest const& request) { @@ -69,6 +141,30 @@ ClusterControllerTracingConnection::StartCluster( return internal::EndSpan(std::move(span), child_->StartCluster(request)); } +StatusOr +ClusterControllerTracingConnection::StartCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::StartClusterRequest const& request) { + auto span = internal::MakeSpan( + "dataproc_v1::ClusterControllerConnection::StartCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StartCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ClusterControllerTracingConnection::StartCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataproc_v1::ClusterControllerConnection::StartCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StartCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> ClusterControllerTracingConnection::DeleteCluster( google::cloud::dataproc::v1::DeleteClusterRequest const& request) { @@ -78,6 +174,30 @@ ClusterControllerTracingConnection::DeleteCluster( return internal::EndSpan(std::move(span), child_->DeleteCluster(request)); } +StatusOr +ClusterControllerTracingConnection::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DeleteClusterRequest const& request) { + auto span = internal::MakeSpan( + "dataproc_v1::ClusterControllerConnection::DeleteCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ClusterControllerTracingConnection::DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataproc_v1::ClusterControllerConnection::DeleteCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteCluster(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ClusterControllerTracingConnection::GetCluster( google::cloud::dataproc::v1::GetClusterRequest const& request) { @@ -107,6 +227,30 @@ ClusterControllerTracingConnection::DiagnoseCluster( return internal::EndSpan(std::move(span), child_->DiagnoseCluster(request)); } +StatusOr +ClusterControllerTracingConnection::DiagnoseCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DiagnoseClusterRequest const& request) { + auto span = internal::MakeSpan( + "dataproc_v1::ClusterControllerConnection::DiagnoseCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DiagnoseCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ClusterControllerTracingConnection::DiagnoseCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataproc_v1::ClusterControllerConnection::DiagnoseCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DiagnoseCluster(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.h b/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.h index ee455ec01a704..52253aa9cfc24 100644 --- a/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.h +++ b/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.h @@ -44,20 +44,63 @@ class ClusterControllerTracingConnection google::cloud::dataproc::v1::CreateClusterRequest const& request) override; + StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateClusterRequest const& request) + override; + + future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCluster( google::cloud::dataproc::v1::UpdateClusterRequest const& request) override; + StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::UpdateClusterRequest const& request) + override; + + future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopCluster( google::cloud::dataproc::v1::StopClusterRequest const& request) override; + StatusOr StopCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::StopClusterRequest const& request) override; + + future> StopCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartCluster( google::cloud::dataproc::v1::StartClusterRequest const& request) override; + StatusOr StartCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::StartClusterRequest const& request) override; + + future> StartCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCluster(google::cloud::dataproc::v1::DeleteClusterRequest const& request) override; + StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DeleteClusterRequest const& request) + override; + + future> + DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetCluster( google::cloud::dataproc::v1::GetClusterRequest const& request) override; @@ -68,6 +111,15 @@ class ClusterControllerTracingConnection DiagnoseCluster(google::cloud::dataproc::v1::DiagnoseClusterRequest const& request) override; + StatusOr DiagnoseCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DiagnoseClusterRequest const& request) + override; + + future> + DiagnoseCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/dataproc/v1/internal/job_controller_connection_impl.cc b/google/cloud/dataproc/v1/internal/job_controller_connection_impl.cc index 81c7de014f3be..2a4bbd1b560e6 100644 --- a/google/cloud/dataproc/v1/internal/job_controller_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/job_controller_connection_impl.cc @@ -117,6 +117,58 @@ JobControllerConnectionImpl::SubmitJobAsOperation( polling_policy(*current), __func__); } +StatusOr +JobControllerConnectionImpl::SubmitJobAsOperation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::SubmitJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SubmitJobAsOperation(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataproc::v1::SubmitJobRequest const& request) { + return stub_->SubmitJobAsOperation(context, options, request); + }, + *current, request, __func__); +} + +future> +JobControllerConnectionImpl::SubmitJobAsOperation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to SubmitJobAsOperation", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataproc::v1::Job>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataproc::v1::Job>, + polling_policy(*current), __func__); +} + StatusOr JobControllerConnectionImpl::GetJob( google::cloud::dataproc::v1::GetJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/dataproc/v1/internal/job_controller_connection_impl.h b/google/cloud/dataproc/v1/internal/job_controller_connection_impl.h index b5fb58d819377..ff370184ae2ae 100644 --- a/google/cloud/dataproc/v1/internal/job_controller_connection_impl.h +++ b/google/cloud/dataproc/v1/internal/job_controller_connection_impl.h @@ -58,6 +58,14 @@ class JobControllerConnectionImpl future> SubmitJobAsOperation( google::cloud::dataproc::v1::SubmitJobRequest const& request) override; + StatusOr SubmitJobAsOperation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::SubmitJobRequest const& request) override; + + future> SubmitJobAsOperation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetJob( google::cloud::dataproc::v1::GetJobRequest const& request) override; diff --git a/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.cc b/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.cc index 0213caf353f0a..f6202204c157e 100644 --- a/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.cc @@ -52,6 +52,30 @@ JobControllerTracingConnection::SubmitJobAsOperation( child_->SubmitJobAsOperation(request)); } +StatusOr +JobControllerTracingConnection::SubmitJobAsOperation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::SubmitJobRequest const& request) { + auto span = internal::MakeSpan( + "dataproc_v1::JobControllerConnection::SubmitJobAsOperation"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SubmitJobAsOperation( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +JobControllerTracingConnection::SubmitJobAsOperation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataproc_v1::JobControllerConnection::SubmitJobAsOperation"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SubmitJobAsOperation( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr JobControllerTracingConnection::GetJob( google::cloud::dataproc::v1::GetJobRequest const& request) { diff --git a/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.h b/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.h index 4d1f6a71ca1f4..a329589256918 100644 --- a/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.h +++ b/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.h @@ -46,6 +46,14 @@ class JobControllerTracingConnection future> SubmitJobAsOperation( google::cloud::dataproc::v1::SubmitJobRequest const& request) override; + StatusOr SubmitJobAsOperation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::SubmitJobRequest const& request) override; + + future> SubmitJobAsOperation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetJob( google::cloud::dataproc::v1::GetJobRequest const& request) override; diff --git a/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.cc b/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.cc index 61526acbecbac..6d335740bfcc3 100644 --- a/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.cc @@ -105,6 +105,60 @@ NodeGroupControllerConnectionImpl::CreateNodeGroup( polling_policy(*current), __func__); } +StatusOr +NodeGroupControllerConnectionImpl::CreateNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateNodeGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateNodeGroup(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataproc::v1::CreateNodeGroupRequest const& request) { + return stub_->CreateNodeGroup(context, options, request); + }, + *current, request, __func__); +} + +future> +NodeGroupControllerConnectionImpl::CreateNodeGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateNodeGroup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataproc::v1::NodeGroup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataproc::v1::NodeGroup>, + polling_policy(*current), __func__); +} + future> NodeGroupControllerConnectionImpl::ResizeNodeGroup( google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request) { @@ -144,6 +198,60 @@ NodeGroupControllerConnectionImpl::ResizeNodeGroup( polling_policy(*current), __func__); } +StatusOr +NodeGroupControllerConnectionImpl::ResizeNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ResizeNodeGroup(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request) { + return stub_->ResizeNodeGroup(context, options, request); + }, + *current, request, __func__); +} + +future> +NodeGroupControllerConnectionImpl::ResizeNodeGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ResizeNodeGroup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataproc::v1::NodeGroup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataproc::v1::NodeGroup>, + polling_policy(*current), __func__); +} + StatusOr NodeGroupControllerConnectionImpl::GetNodeGroup( google::cloud::dataproc::v1::GetNodeGroupRequest const& request) { diff --git a/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.h b/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.h index b20d845a01506..96e49527773fb 100644 --- a/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.h +++ b/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.h @@ -55,10 +55,28 @@ class NodeGroupControllerConnectionImpl google::cloud::dataproc::v1::CreateNodeGroupRequest const& request) override; + StatusOr CreateNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateNodeGroupRequest const& request) + override; + + future> CreateNodeGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResizeNodeGroup( google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request) override; + StatusOr ResizeNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request) + override; + + future> ResizeNodeGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetNodeGroup( google::cloud::dataproc::v1::GetNodeGroupRequest const& request) override; diff --git a/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.cc b/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.cc index a3a89d340b6ee..e4d44ffd9e677 100644 --- a/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.cc @@ -41,6 +41,30 @@ NodeGroupControllerTracingConnection::CreateNodeGroup( return internal::EndSpan(std::move(span), child_->CreateNodeGroup(request)); } +StatusOr +NodeGroupControllerTracingConnection::CreateNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateNodeGroupRequest const& request) { + auto span = internal::MakeSpan( + "dataproc_v1::NodeGroupControllerConnection::CreateNodeGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateNodeGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NodeGroupControllerTracingConnection::CreateNodeGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataproc_v1::NodeGroupControllerConnection::CreateNodeGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateNodeGroup(google::cloud::ExperimentalTag{}, operation)); +} + future> NodeGroupControllerTracingConnection::ResizeNodeGroup( google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request) { @@ -50,6 +74,30 @@ NodeGroupControllerTracingConnection::ResizeNodeGroup( return internal::EndSpan(std::move(span), child_->ResizeNodeGroup(request)); } +StatusOr +NodeGroupControllerTracingConnection::ResizeNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request) { + auto span = internal::MakeSpan( + "dataproc_v1::NodeGroupControllerConnection::ResizeNodeGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ResizeNodeGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NodeGroupControllerTracingConnection::ResizeNodeGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataproc_v1::NodeGroupControllerConnection::ResizeNodeGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ResizeNodeGroup(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NodeGroupControllerTracingConnection::GetNodeGroup( google::cloud::dataproc::v1::GetNodeGroupRequest const& request) { diff --git a/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.h b/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.h index 68a068052c8a9..84fed2303a87a 100644 --- a/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.h +++ b/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.h @@ -44,10 +44,28 @@ class NodeGroupControllerTracingConnection google::cloud::dataproc::v1::CreateNodeGroupRequest const& request) override; + StatusOr CreateNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateNodeGroupRequest const& request) + override; + + future> CreateNodeGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResizeNodeGroup( google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request) override; + StatusOr ResizeNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request) + override; + + future> ResizeNodeGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetNodeGroup( google::cloud::dataproc::v1::GetNodeGroupRequest const& request) override; diff --git a/google/cloud/dataproc/v1/internal/session_controller_connection_impl.cc b/google/cloud/dataproc/v1/internal/session_controller_connection_impl.cc index 0e2a6e5019db0..94f1a35089b76 100644 --- a/google/cloud/dataproc/v1/internal/session_controller_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/session_controller_connection_impl.cc @@ -106,6 +106,59 @@ SessionControllerConnectionImpl::CreateSession( polling_policy(*current), __func__); } +StatusOr +SessionControllerConnectionImpl::CreateSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateSessionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateSession(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataproc::v1::CreateSessionRequest const& request) { + return stub_->CreateSession(context, options, request); + }, + *current, request, __func__); +} + +future> +SessionControllerConnectionImpl::CreateSession( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateSession", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataproc::v1::Session>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataproc::v1::Session>, + polling_policy(*current), __func__); +} + StatusOr SessionControllerConnectionImpl::GetSession( google::cloud::dataproc::v1::GetSessionRequest const& request) { @@ -193,6 +246,60 @@ SessionControllerConnectionImpl::TerminateSession( polling_policy(*current), __func__); } +StatusOr +SessionControllerConnectionImpl::TerminateSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::TerminateSessionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->TerminateSession(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataproc::v1::TerminateSessionRequest const& request) { + return stub_->TerminateSession(context, options, request); + }, + *current, request, __func__); +} + +future> +SessionControllerConnectionImpl::TerminateSession( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to TerminateSession", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataproc::v1::Session>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataproc::v1::Session>, + polling_policy(*current), __func__); +} + future> SessionControllerConnectionImpl::DeleteSession( google::cloud::dataproc::v1::DeleteSessionRequest const& request) { @@ -232,6 +339,59 @@ SessionControllerConnectionImpl::DeleteSession( polling_policy(*current), __func__); } +StatusOr +SessionControllerConnectionImpl::DeleteSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DeleteSessionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSession(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataproc::v1::DeleteSessionRequest const& request) { + return stub_->DeleteSession(context, options, request); + }, + *current, request, __func__); +} + +future> +SessionControllerConnectionImpl::DeleteSession( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteSession", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataproc::v1::Session>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dataproc::v1::Session>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace dataproc_v1_internal } // namespace cloud diff --git a/google/cloud/dataproc/v1/internal/session_controller_connection_impl.h b/google/cloud/dataproc/v1/internal/session_controller_connection_impl.h index 6df3f4af76dd6..e3aa6b750ccf8 100644 --- a/google/cloud/dataproc/v1/internal/session_controller_connection_impl.h +++ b/google/cloud/dataproc/v1/internal/session_controller_connection_impl.h @@ -56,6 +56,15 @@ class SessionControllerConnectionImpl google::cloud::dataproc::v1::CreateSessionRequest const& request) override; + StatusOr CreateSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateSessionRequest const& request) + override; + + future> CreateSession( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetSession( google::cloud::dataproc::v1::GetSessionRequest const& request) override; @@ -66,10 +75,28 @@ class SessionControllerConnectionImpl google::cloud::dataproc::v1::TerminateSessionRequest const& request) override; + StatusOr TerminateSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::TerminateSessionRequest const& request) + override; + + future> TerminateSession( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSession( google::cloud::dataproc::v1::DeleteSessionRequest const& request) override; + StatusOr DeleteSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DeleteSessionRequest const& request) + override; + + future> DeleteSession( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.cc b/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.cc index b833999e981f7..e5b5316a14f32 100644 --- a/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.cc @@ -42,6 +42,30 @@ SessionControllerTracingConnection::CreateSession( return internal::EndSpan(std::move(span), child_->CreateSession(request)); } +StatusOr +SessionControllerTracingConnection::CreateSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateSessionRequest const& request) { + auto span = internal::MakeSpan( + "dataproc_v1::SessionControllerConnection::CreateSession"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateSession(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SessionControllerTracingConnection::CreateSession( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataproc_v1::SessionControllerConnection::CreateSession"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateSession(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SessionControllerTracingConnection::GetSession( google::cloud::dataproc::v1::GetSessionRequest const& request) { @@ -71,6 +95,30 @@ SessionControllerTracingConnection::TerminateSession( return internal::EndSpan(std::move(span), child_->TerminateSession(request)); } +StatusOr +SessionControllerTracingConnection::TerminateSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::TerminateSessionRequest const& request) { + auto span = internal::MakeSpan( + "dataproc_v1::SessionControllerConnection::TerminateSession"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->TerminateSession(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SessionControllerTracingConnection::TerminateSession( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataproc_v1::SessionControllerConnection::TerminateSession"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->TerminateSession(google::cloud::ExperimentalTag{}, operation)); +} + future> SessionControllerTracingConnection::DeleteSession( google::cloud::dataproc::v1::DeleteSessionRequest const& request) { @@ -80,6 +128,30 @@ SessionControllerTracingConnection::DeleteSession( return internal::EndSpan(std::move(span), child_->DeleteSession(request)); } +StatusOr +SessionControllerTracingConnection::DeleteSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DeleteSessionRequest const& request) { + auto span = internal::MakeSpan( + "dataproc_v1::SessionControllerConnection::DeleteSession"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSession(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SessionControllerTracingConnection::DeleteSession( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataproc_v1::SessionControllerConnection::DeleteSession"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSession(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.h b/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.h index 5a9d61b726c4e..459e0648869f3 100644 --- a/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.h +++ b/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.h @@ -44,6 +44,15 @@ class SessionControllerTracingConnection google::cloud::dataproc::v1::CreateSessionRequest const& request) override; + StatusOr CreateSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateSessionRequest const& request) + override; + + future> CreateSession( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetSession( google::cloud::dataproc::v1::GetSessionRequest const& request) override; @@ -54,10 +63,28 @@ class SessionControllerTracingConnection google::cloud::dataproc::v1::TerminateSessionRequest const& request) override; + StatusOr TerminateSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::TerminateSessionRequest const& request) + override; + + future> TerminateSession( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSession( google::cloud::dataproc::v1::DeleteSessionRequest const& request) override; + StatusOr DeleteSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DeleteSessionRequest const& request) + override; + + future> DeleteSession( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.cc b/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.cc index 275c8df667fdf..ec976e988303b 100644 --- a/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.cc @@ -139,6 +139,62 @@ WorkflowTemplateServiceConnectionImpl::InstantiateWorkflowTemplate( polling_policy(*current), __func__); } +StatusOr +WorkflowTemplateServiceConnectionImpl::InstantiateWorkflowTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InstantiateWorkflowTemplate(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& + request) { + return stub_->InstantiateWorkflowTemplate(context, options, request); + }, + *current, request, __func__); +} + +future> +WorkflowTemplateServiceConnectionImpl::InstantiateWorkflowTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to InstantiateWorkflowTemplate", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataproc::v1::WorkflowMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dataproc::v1::WorkflowMetadata>, + polling_policy(*current), __func__); +} + future> WorkflowTemplateServiceConnectionImpl::InstantiateInlineWorkflowTemplate( google::cloud::dataproc::v1::InstantiateInlineWorkflowTemplateRequest const& @@ -181,6 +237,63 @@ WorkflowTemplateServiceConnectionImpl::InstantiateInlineWorkflowTemplate( polling_policy(*current), __func__); } +StatusOr +WorkflowTemplateServiceConnectionImpl::InstantiateInlineWorkflowTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::InstantiateInlineWorkflowTemplateRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->InstantiateInlineWorkflowTemplate(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dataproc::v1:: + InstantiateInlineWorkflowTemplateRequest const& request) { + return stub_->InstantiateInlineWorkflowTemplate(context, options, + request); + }, + *current, request, __func__); +} + +future> +WorkflowTemplateServiceConnectionImpl::InstantiateInlineWorkflowTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to " + "InstantiateInlineWorkflowTemplate", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dataproc::v1::WorkflowMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dataproc::v1::WorkflowMetadata>, + polling_policy(*current), __func__); +} + StatusOr WorkflowTemplateServiceConnectionImpl::UpdateWorkflowTemplate( google::cloud::dataproc::v1::UpdateWorkflowTemplateRequest const& request) { diff --git a/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.h b/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.h index 43b4bc0dc4cbb..312b36e7af28e 100644 --- a/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.h +++ b/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.h @@ -66,11 +66,31 @@ class WorkflowTemplateServiceConnectionImpl google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& request) override; + StatusOr InstantiateWorkflowTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& + request) override; + + future> + InstantiateWorkflowTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> InstantiateInlineWorkflowTemplate( google::cloud::dataproc::v1:: InstantiateInlineWorkflowTemplateRequest const& request) override; + StatusOr InstantiateInlineWorkflowTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1:: + InstantiateInlineWorkflowTemplateRequest const& request) override; + + future> + InstantiateInlineWorkflowTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateWorkflowTemplate( google::cloud::dataproc::v1::UpdateWorkflowTemplateRequest const& request) diff --git a/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.cc b/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.cc index d41046e5bfa58..eac9b40c8eeea 100644 --- a/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.cc @@ -64,6 +64,33 @@ WorkflowTemplateServiceTracingConnection::InstantiateWorkflowTemplate( child_->InstantiateWorkflowTemplate(request)); } +StatusOr +WorkflowTemplateServiceTracingConnection::InstantiateWorkflowTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& + request) { + auto span = internal::MakeSpan( + "dataproc_v1::WorkflowTemplateServiceConnection::" + "InstantiateWorkflowTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InstantiateWorkflowTemplate( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WorkflowTemplateServiceTracingConnection::InstantiateWorkflowTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataproc_v1::WorkflowTemplateServiceConnection::" + "InstantiateWorkflowTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InstantiateWorkflowTemplate( + google::cloud::ExperimentalTag{}, operation)); +} + future> WorkflowTemplateServiceTracingConnection::InstantiateInlineWorkflowTemplate( google::cloud::dataproc::v1::InstantiateInlineWorkflowTemplateRequest const& @@ -76,6 +103,33 @@ WorkflowTemplateServiceTracingConnection::InstantiateInlineWorkflowTemplate( child_->InstantiateInlineWorkflowTemplate(request)); } +StatusOr +WorkflowTemplateServiceTracingConnection::InstantiateInlineWorkflowTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::InstantiateInlineWorkflowTemplateRequest const& + request) { + auto span = internal::MakeSpan( + "dataproc_v1::WorkflowTemplateServiceConnection::" + "InstantiateInlineWorkflowTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->InstantiateInlineWorkflowTemplate( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WorkflowTemplateServiceTracingConnection::InstantiateInlineWorkflowTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dataproc_v1::WorkflowTemplateServiceConnection::" + "InstantiateInlineWorkflowTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->InstantiateInlineWorkflowTemplate( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr WorkflowTemplateServiceTracingConnection::UpdateWorkflowTemplate( google::cloud::dataproc::v1::UpdateWorkflowTemplateRequest const& request) { diff --git a/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.h b/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.h index f4dc57ad02092..63ab125d1a5b1 100644 --- a/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.h +++ b/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.h @@ -54,11 +54,31 @@ class WorkflowTemplateServiceTracingConnection google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& request) override; + StatusOr InstantiateWorkflowTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& + request) override; + + future> + InstantiateWorkflowTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> InstantiateInlineWorkflowTemplate( google::cloud::dataproc::v1:: InstantiateInlineWorkflowTemplateRequest const& request) override; + StatusOr InstantiateInlineWorkflowTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1:: + InstantiateInlineWorkflowTemplateRequest const& request) override; + + future> + InstantiateInlineWorkflowTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateWorkflowTemplate( google::cloud::dataproc::v1::UpdateWorkflowTemplateRequest const& request) diff --git a/google/cloud/dataproc/v1/job_controller_connection.cc b/google/cloud/dataproc/v1/job_controller_connection.cc index b70ecb663e678..0d4ba99b9de7e 100644 --- a/google/cloud/dataproc/v1/job_controller_connection.cc +++ b/google/cloud/dataproc/v1/job_controller_connection.cc @@ -51,6 +51,22 @@ JobControllerConnection::SubmitJobAsOperation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +JobControllerConnection::SubmitJobAsOperation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::SubmitJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +JobControllerConnection::SubmitJobAsOperation( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr JobControllerConnection::GetJob( google::cloud::dataproc::v1::GetJobRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); diff --git a/google/cloud/dataproc/v1/job_controller_connection.h b/google/cloud/dataproc/v1/job_controller_connection.h index 7eec132fe5022..5ad7bd97bb8e1 100644 --- a/google/cloud/dataproc/v1/job_controller_connection.h +++ b/google/cloud/dataproc/v1/job_controller_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dataproc/v1/internal/job_controller_retry_traits.h" #include "google/cloud/dataproc/v1/job_controller_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -193,6 +195,14 @@ class JobControllerConnection { SubmitJobAsOperation( google::cloud::dataproc::v1::SubmitJobRequest const& request); + virtual StatusOr SubmitJobAsOperation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::SubmitJobRequest const& request); + + virtual future> + SubmitJobAsOperation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetJob( google::cloud::dataproc::v1::GetJobRequest const& request); diff --git a/google/cloud/dataproc/v1/mocks/mock_batch_controller_connection.h b/google/cloud/dataproc/v1/mocks/mock_batch_controller_connection.h index 9da45fed8129c..8044973abc55e 100644 --- a/google/cloud/dataproc/v1/mocks/mock_batch_controller_connection.h +++ b/google/cloud/dataproc/v1/mocks/mock_batch_controller_connection.h @@ -51,6 +51,16 @@ class MockBatchControllerConnection (google::cloud::dataproc::v1::CreateBatchRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateBatch, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateBatchRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateBatch, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetBatch, (google::cloud::dataproc::v1::GetBatchRequest const& request), (override)); diff --git a/google/cloud/dataproc/v1/mocks/mock_cluster_controller_connection.h b/google/cloud/dataproc/v1/mocks/mock_cluster_controller_connection.h index 38962112d5717..049fbc21988fb 100644 --- a/google/cloud/dataproc/v1/mocks/mock_cluster_controller_connection.h +++ b/google/cloud/dataproc/v1/mocks/mock_cluster_controller_connection.h @@ -52,27 +52,86 @@ class MockClusterControllerConnection (google::cloud::dataproc::v1::CreateClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateCluster, (google::cloud::dataproc::v1::UpdateClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::UpdateClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, StopCluster, (google::cloud::dataproc::v1::StopClusterRequest const& request), (override)); + MOCK_METHOD(StatusOr, StopCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::StopClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + StopCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, StartCluster, (google::cloud::dataproc::v1::StartClusterRequest const& request), (override)); + MOCK_METHOD(StatusOr, StartCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::StartClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + StartCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteCluster, (google::cloud::dataproc::v1::DeleteClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DeleteClusterRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetCluster, (google::cloud::dataproc::v1::GetClusterRequest const& request), (override)); @@ -86,6 +145,19 @@ class MockClusterControllerConnection DiagnoseCluster, (google::cloud::dataproc::v1::DiagnoseClusterRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DiagnoseCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DiagnoseClusterRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DiagnoseCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/dataproc/v1/mocks/mock_job_controller_connection.h b/google/cloud/dataproc/v1/mocks/mock_job_controller_connection.h index af9c03f26a960..1eac3e0a2a77a 100644 --- a/google/cloud/dataproc/v1/mocks/mock_job_controller_connection.h +++ b/google/cloud/dataproc/v1/mocks/mock_job_controller_connection.h @@ -56,6 +56,17 @@ class MockJobControllerConnection (google::cloud::dataproc::v1::SubmitJobRequest const& request), (override)); + MOCK_METHOD(StatusOr, SubmitJobAsOperation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::SubmitJobRequest const& request), + (override)); + + MOCK_METHOD(future>, + SubmitJobAsOperation, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetJob, (google::cloud::dataproc::v1::GetJobRequest const& request), (override)); diff --git a/google/cloud/dataproc/v1/mocks/mock_node_group_controller_connection.h b/google/cloud/dataproc/v1/mocks/mock_node_group_controller_connection.h index 15e1113791316..2b7d5941ca34f 100644 --- a/google/cloud/dataproc/v1/mocks/mock_node_group_controller_connection.h +++ b/google/cloud/dataproc/v1/mocks/mock_node_group_controller_connection.h @@ -52,11 +52,35 @@ class MockNodeGroupControllerConnection (google::cloud::dataproc::v1::CreateNodeGroupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateNodeGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateNodeGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateNodeGroup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ResizeNodeGroup, (google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ResizeNodeGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + ResizeNodeGroup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetNodeGroup, (google::cloud::dataproc::v1::GetNodeGroupRequest const& request), (override)); diff --git a/google/cloud/dataproc/v1/mocks/mock_session_controller_connection.h b/google/cloud/dataproc/v1/mocks/mock_session_controller_connection.h index 5822778bb38cc..0c92169d183c6 100644 --- a/google/cloud/dataproc/v1/mocks/mock_session_controller_connection.h +++ b/google/cloud/dataproc/v1/mocks/mock_session_controller_connection.h @@ -52,6 +52,18 @@ class MockSessionControllerConnection (google::cloud::dataproc::v1::CreateSessionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateSession, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateSessionRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateSession, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetSession, (google::cloud::dataproc::v1::GetSessionRequest const& request), (override)); @@ -65,10 +77,34 @@ class MockSessionControllerConnection (google::cloud::dataproc::v1::TerminateSessionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, TerminateSession, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::TerminateSessionRequest const& request), + (override)); + + MOCK_METHOD(future>, + TerminateSession, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteSession, (google::cloud::dataproc::v1::DeleteSessionRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteSession, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DeleteSessionRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteSession, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/dataproc/v1/mocks/mock_workflow_template_connection.h b/google/cloud/dataproc/v1/mocks/mock_workflow_template_connection.h index cadf0cd86f1cd..bb1e321a3484b 100644 --- a/google/cloud/dataproc/v1/mocks/mock_workflow_template_connection.h +++ b/google/cloud/dataproc/v1/mocks/mock_workflow_template_connection.h @@ -66,12 +66,38 @@ class MockWorkflowTemplateServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, InstantiateWorkflowTemplate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& + request), + (override)); + + MOCK_METHOD(future>, + InstantiateWorkflowTemplate, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, InstantiateInlineWorkflowTemplate, (google::cloud::dataproc::v1:: InstantiateInlineWorkflowTemplateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + InstantiateInlineWorkflowTemplate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1:: + InstantiateInlineWorkflowTemplateRequest const& request), + (override)); + + MOCK_METHOD(future>, + InstantiateInlineWorkflowTemplate, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, UpdateWorkflowTemplate, (google::cloud::dataproc::v1::UpdateWorkflowTemplateRequest const& diff --git a/google/cloud/dataproc/v1/node_group_controller_connection.cc b/google/cloud/dataproc/v1/node_group_controller_connection.cc index 1b5871beaf1d7..03880afda4fb2 100644 --- a/google/cloud/dataproc/v1/node_group_controller_connection.cc +++ b/google/cloud/dataproc/v1/node_group_controller_connection.cc @@ -45,6 +45,22 @@ NodeGroupControllerConnection::CreateNodeGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NodeGroupControllerConnection::CreateNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateNodeGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NodeGroupControllerConnection::CreateNodeGroup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NodeGroupControllerConnection::ResizeNodeGroup( google::cloud::dataproc::v1::ResizeNodeGroupRequest const&) { @@ -53,6 +69,22 @@ NodeGroupControllerConnection::ResizeNodeGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NodeGroupControllerConnection::ResizeNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::ResizeNodeGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NodeGroupControllerConnection::ResizeNodeGroup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NodeGroupControllerConnection::GetNodeGroup( google::cloud::dataproc::v1::GetNodeGroupRequest const&) { diff --git a/google/cloud/dataproc/v1/node_group_controller_connection.h b/google/cloud/dataproc/v1/node_group_controller_connection.h index 3a38f3d1042bd..5fdffe2d2148e 100644 --- a/google/cloud/dataproc/v1/node_group_controller_connection.h +++ b/google/cloud/dataproc/v1/node_group_controller_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dataproc/v1/internal/node_group_controller_retry_traits.h" #include "google/cloud/dataproc/v1/node_group_controller_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -192,10 +194,26 @@ class NodeGroupControllerConnection { CreateNodeGroup( google::cloud::dataproc::v1::CreateNodeGroupRequest const& request); + virtual StatusOr CreateNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateNodeGroupRequest const& request); + + virtual future> + CreateNodeGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ResizeNodeGroup( google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request); + virtual StatusOr ResizeNodeGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request); + + virtual future> + ResizeNodeGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetNodeGroup( google::cloud::dataproc::v1::GetNodeGroupRequest const& request); }; diff --git a/google/cloud/dataproc/v1/session_controller_connection.cc b/google/cloud/dataproc/v1/session_controller_connection.cc index 7f547d2024e32..046fd37068835 100644 --- a/google/cloud/dataproc/v1/session_controller_connection.cc +++ b/google/cloud/dataproc/v1/session_controller_connection.cc @@ -46,6 +46,22 @@ SessionControllerConnection::CreateSession( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SessionControllerConnection::CreateSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateSessionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SessionControllerConnection::CreateSession( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SessionControllerConnection::GetSession( google::cloud::dataproc::v1::GetSessionRequest const&) { @@ -68,6 +84,22 @@ SessionControllerConnection::TerminateSession( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SessionControllerConnection::TerminateSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::TerminateSessionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SessionControllerConnection::TerminateSession( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SessionControllerConnection::DeleteSession( google::cloud::dataproc::v1::DeleteSessionRequest const&) { @@ -76,6 +108,22 @@ SessionControllerConnection::DeleteSession( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SessionControllerConnection::DeleteSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DeleteSessionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SessionControllerConnection::DeleteSession( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeSessionControllerConnection( std::string const& location, Options options) { internal::CheckExpectedOptions> CreateSession( google::cloud::dataproc::v1::CreateSessionRequest const& request); + virtual StatusOr CreateSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::CreateSessionRequest const& request); + + virtual future> CreateSession( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetSession( google::cloud::dataproc::v1::GetSessionRequest const& request); @@ -201,8 +211,24 @@ class SessionControllerConnection { TerminateSession( google::cloud::dataproc::v1::TerminateSessionRequest const& request); + virtual StatusOr TerminateSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::TerminateSessionRequest const& request); + + virtual future> + TerminateSession(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteSession( google::cloud::dataproc::v1::DeleteSessionRequest const& request); + + virtual StatusOr DeleteSession( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::DeleteSessionRequest const& request); + + virtual future> DeleteSession( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dataproc/v1/session_template_controller_connection.h b/google/cloud/dataproc/v1/session_template_controller_connection.h index 91714189f594b..12d495d136af7 100644 --- a/google/cloud/dataproc/v1/session_template_controller_connection.h +++ b/google/cloud/dataproc/v1/session_template_controller_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dataproc/v1/internal/session_template_controller_retry_traits.h" #include "google/cloud/dataproc/v1/session_template_controller_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dataproc/v1/workflow_template_connection.cc b/google/cloud/dataproc/v1/workflow_template_connection.cc index 2ff4b2595c4da..b4099416b9348 100644 --- a/google/cloud/dataproc/v1/workflow_template_connection.cc +++ b/google/cloud/dataproc/v1/workflow_template_connection.cc @@ -59,6 +59,22 @@ WorkflowTemplateServiceConnection::InstantiateWorkflowTemplate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +WorkflowTemplateServiceConnection::InstantiateWorkflowTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WorkflowTemplateServiceConnection::InstantiateWorkflowTemplate( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> WorkflowTemplateServiceConnection::InstantiateInlineWorkflowTemplate( google::cloud::dataproc::v1:: @@ -68,6 +84,23 @@ WorkflowTemplateServiceConnection::InstantiateInlineWorkflowTemplate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +WorkflowTemplateServiceConnection::InstantiateInlineWorkflowTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1:: + InstantiateInlineWorkflowTemplateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WorkflowTemplateServiceConnection::InstantiateInlineWorkflowTemplate( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr WorkflowTemplateServiceConnection::UpdateWorkflowTemplate( google::cloud::dataproc::v1::UpdateWorkflowTemplateRequest const&) { diff --git a/google/cloud/dataproc/v1/workflow_template_connection.h b/google/cloud/dataproc/v1/workflow_template_connection.h index ac458dc98c819..6e281e8200467 100644 --- a/google/cloud/dataproc/v1/workflow_template_connection.h +++ b/google/cloud/dataproc/v1/workflow_template_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dataproc/v1/internal/workflow_template_retry_traits.h" #include "google/cloud/dataproc/v1/workflow_template_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -207,11 +209,31 @@ class WorkflowTemplateServiceConnection { google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& request); + virtual StatusOr InstantiateWorkflowTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& + request); + virtual future> + InstantiateWorkflowTemplate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + + virtual future> + InstantiateInlineWorkflowTemplate( + google::cloud::dataproc::v1:: + InstantiateInlineWorkflowTemplateRequest const& request); + + virtual StatusOr InstantiateInlineWorkflowTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::dataproc::v1:: InstantiateInlineWorkflowTemplateRequest const& request); + virtual future> + InstantiateInlineWorkflowTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr UpdateWorkflowTemplate( google::cloud::dataproc::v1::UpdateWorkflowTemplateRequest const& diff --git a/google/cloud/datastore/admin/v1/datastore_admin_connection.cc b/google/cloud/datastore/admin/v1/datastore_admin_connection.cc index be2bd2b039ad7..b79af70cc9a11 100644 --- a/google/cloud/datastore/admin/v1/datastore_admin_connection.cc +++ b/google/cloud/datastore/admin/v1/datastore_admin_connection.cc @@ -46,6 +46,22 @@ DatastoreAdminConnection::ExportEntities( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatastoreAdminConnection::ExportEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::ExportEntitiesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatastoreAdminConnection::ExportEntities( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DatastoreAdminConnection::ImportEntities( google::datastore::admin::v1::ImportEntitiesRequest const&) { @@ -54,6 +70,22 @@ DatastoreAdminConnection::ImportEntities( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatastoreAdminConnection::ImportEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::ImportEntitiesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatastoreAdminConnection::ImportEntities( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DatastoreAdminConnection::CreateIndex( google::datastore::admin::v1::CreateIndexRequest const&) { @@ -62,6 +94,21 @@ DatastoreAdminConnection::CreateIndex( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DatastoreAdminConnection::CreateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::CreateIndexRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatastoreAdminConnection::CreateIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DatastoreAdminConnection::DeleteIndex( google::datastore::admin::v1::DeleteIndexRequest const&) { @@ -70,6 +117,21 @@ DatastoreAdminConnection::DeleteIndex( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DatastoreAdminConnection::DeleteIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::DeleteIndexRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatastoreAdminConnection::DeleteIndex(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DatastoreAdminConnection::GetIndex( google::datastore::admin::v1::GetIndexRequest const&) { diff --git a/google/cloud/datastore/admin/v1/datastore_admin_connection.h b/google/cloud/datastore/admin/v1/datastore_admin_connection.h index c8c235e1851b7..df5b3cf8c997f 100644 --- a/google/cloud/datastore/admin/v1/datastore_admin_connection.h +++ b/google/cloud/datastore/admin/v1/datastore_admin_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/datastore/admin/v1/datastore_admin_connection_idempotency_policy.h" #include "google/cloud/datastore/admin/v1/internal/datastore_admin_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -189,16 +191,48 @@ class DatastoreAdminConnection { ExportEntities( google::datastore::admin::v1::ExportEntitiesRequest const& request); + virtual StatusOr ExportEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::ExportEntitiesRequest const& request); + + virtual future> + ExportEntities(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ImportEntities( google::datastore::admin::v1::ImportEntitiesRequest const& request); + virtual StatusOr ImportEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::ImportEntitiesRequest const& request); + + virtual future> + ImportEntities(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateIndex( google::datastore::admin::v1::CreateIndexRequest const& request); + virtual StatusOr CreateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::CreateIndexRequest const& request); + + virtual future> CreateIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteIndex( google::datastore::admin::v1::DeleteIndexRequest const& request); + virtual StatusOr DeleteIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::DeleteIndexRequest const& request); + + virtual future> DeleteIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetIndex( google::datastore::admin::v1::GetIndexRequest const& request); diff --git a/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.cc b/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.cc index fb1a4be4a2cd9..e294b2d23cd54 100644 --- a/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.cc +++ b/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.cc @@ -107,6 +107,61 @@ DatastoreAdminConnectionImpl::ExportEntities( polling_policy(*current), __func__); } +StatusOr +DatastoreAdminConnectionImpl::ExportEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::ExportEntitiesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportEntities(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::datastore::admin::v1::ExportEntitiesRequest const& request) { + return stub_->ExportEntities(context, options, request); + }, + *current, request, __func__); +} + +future> +DatastoreAdminConnectionImpl::ExportEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ExportEntities", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::datastore::admin::v1::ExportEntitiesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::datastore::admin::v1::ExportEntitiesResponse>, + polling_policy(*current), __func__); +} + future> DatastoreAdminConnectionImpl::ImportEntities( google::datastore::admin::v1::ImportEntitiesRequest const& request) { @@ -146,6 +201,61 @@ DatastoreAdminConnectionImpl::ImportEntities( polling_policy(*current), __func__); } +StatusOr +DatastoreAdminConnectionImpl::ImportEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::ImportEntitiesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportEntities(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::datastore::admin::v1::ImportEntitiesRequest const& request) { + return stub_->ImportEntities(context, options, request); + }, + *current, request, __func__); +} + +future> +DatastoreAdminConnectionImpl::ImportEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportEntities", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::datastore::admin::v1::ImportEntitiesMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::datastore::admin::v1::ImportEntitiesMetadata>, + polling_policy(*current), __func__); +} + future> DatastoreAdminConnectionImpl::CreateIndex( google::datastore::admin::v1::CreateIndexRequest const& request) { @@ -185,6 +295,59 @@ DatastoreAdminConnectionImpl::CreateIndex( polling_policy(*current), __func__); } +StatusOr +DatastoreAdminConnectionImpl::CreateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::CreateIndexRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateIndex(request), + [this](grpc::ClientContext& context, Options const& options, + google::datastore::admin::v1::CreateIndexRequest const& request) { + return stub_->CreateIndex(context, options, request); + }, + *current, request, __func__); +} + +future> +DatastoreAdminConnectionImpl::CreateIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateIndex", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::datastore::admin::v1::Index>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::datastore::admin::v1::Index>, + polling_policy(*current), __func__); +} + future> DatastoreAdminConnectionImpl::DeleteIndex( google::datastore::admin::v1::DeleteIndexRequest const& request) { @@ -224,6 +387,59 @@ DatastoreAdminConnectionImpl::DeleteIndex( polling_policy(*current), __func__); } +StatusOr +DatastoreAdminConnectionImpl::DeleteIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::DeleteIndexRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteIndex(request), + [this](grpc::ClientContext& context, Options const& options, + google::datastore::admin::v1::DeleteIndexRequest const& request) { + return stub_->DeleteIndex(context, options, request); + }, + *current, request, __func__); +} + +future> +DatastoreAdminConnectionImpl::DeleteIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteIndex", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::datastore::admin::v1::Index>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::datastore::admin::v1::Index>, + polling_policy(*current), __func__); +} + StatusOr DatastoreAdminConnectionImpl::GetIndex( google::datastore::admin::v1::GetIndexRequest const& request) { diff --git a/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.h b/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.h index 2b5176d8f52ec..56528f239f906 100644 --- a/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.h +++ b/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.h @@ -56,16 +56,50 @@ class DatastoreAdminConnectionImpl ExportEntities(google::datastore::admin::v1::ExportEntitiesRequest const& request) override; + StatusOr ExportEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::ExportEntitiesRequest const& request) + override; + + future> + ExportEntities(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportEntities(google::datastore::admin::v1::ImportEntitiesRequest const& request) override; + StatusOr ImportEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::ImportEntitiesRequest const& request) + override; + + future> + ImportEntities(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateIndex( google::datastore::admin::v1::CreateIndexRequest const& request) override; + StatusOr CreateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::CreateIndexRequest const& request) override; + + future> CreateIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteIndex( google::datastore::admin::v1::DeleteIndexRequest const& request) override; + StatusOr DeleteIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::DeleteIndexRequest const& request) override; + + future> DeleteIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIndex( google::datastore::admin::v1::GetIndexRequest const& request) override; diff --git a/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.cc b/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.cc index 2787cb7f8900b..88e60558100bc 100644 --- a/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.cc +++ b/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.cc @@ -42,6 +42,30 @@ DatastoreAdminTracingConnection::ExportEntities( return internal::EndSpan(std::move(span), child_->ExportEntities(request)); } +StatusOr +DatastoreAdminTracingConnection::ExportEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::ExportEntitiesRequest const& request) { + auto span = internal::MakeSpan( + "datastore_admin_v1::DatastoreAdminConnection::ExportEntities"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportEntities(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatastoreAdminTracingConnection::ExportEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datastore_admin_v1::DatastoreAdminConnection::ExportEntities"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportEntities(google::cloud::ExperimentalTag{}, operation)); +} + future> DatastoreAdminTracingConnection::ImportEntities( google::datastore::admin::v1::ImportEntitiesRequest const& request) { @@ -51,6 +75,30 @@ DatastoreAdminTracingConnection::ImportEntities( return internal::EndSpan(std::move(span), child_->ImportEntities(request)); } +StatusOr +DatastoreAdminTracingConnection::ImportEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::ImportEntitiesRequest const& request) { + auto span = internal::MakeSpan( + "datastore_admin_v1::DatastoreAdminConnection::ImportEntities"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportEntities(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatastoreAdminTracingConnection::ImportEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datastore_admin_v1::DatastoreAdminConnection::ImportEntities"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportEntities(google::cloud::ExperimentalTag{}, operation)); +} + future> DatastoreAdminTracingConnection::CreateIndex( google::datastore::admin::v1::CreateIndexRequest const& request) { @@ -60,6 +108,30 @@ DatastoreAdminTracingConnection::CreateIndex( return internal::EndSpan(std::move(span), child_->CreateIndex(request)); } +StatusOr +DatastoreAdminTracingConnection::CreateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::CreateIndexRequest const& request) { + auto span = internal::MakeSpan( + "datastore_admin_v1::DatastoreAdminConnection::CreateIndex"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateIndex(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatastoreAdminTracingConnection::CreateIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datastore_admin_v1::DatastoreAdminConnection::CreateIndex"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateIndex(google::cloud::ExperimentalTag{}, operation)); +} + future> DatastoreAdminTracingConnection::DeleteIndex( google::datastore::admin::v1::DeleteIndexRequest const& request) { @@ -69,6 +141,30 @@ DatastoreAdminTracingConnection::DeleteIndex( return internal::EndSpan(std::move(span), child_->DeleteIndex(request)); } +StatusOr +DatastoreAdminTracingConnection::DeleteIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::DeleteIndexRequest const& request) { + auto span = internal::MakeSpan( + "datastore_admin_v1::DatastoreAdminConnection::DeleteIndex"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteIndex(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatastoreAdminTracingConnection::DeleteIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datastore_admin_v1::DatastoreAdminConnection::DeleteIndex"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteIndex(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DatastoreAdminTracingConnection::GetIndex( google::datastore::admin::v1::GetIndexRequest const& request) { diff --git a/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.h b/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.h index ffc34dd2f667a..a0815939b7717 100644 --- a/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.h +++ b/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.h @@ -44,16 +44,50 @@ class DatastoreAdminTracingConnection ExportEntities(google::datastore::admin::v1::ExportEntitiesRequest const& request) override; + StatusOr ExportEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::ExportEntitiesRequest const& request) + override; + + future> + ExportEntities(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportEntities(google::datastore::admin::v1::ImportEntitiesRequest const& request) override; + StatusOr ImportEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::ImportEntitiesRequest const& request) + override; + + future> + ImportEntities(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateIndex( google::datastore::admin::v1::CreateIndexRequest const& request) override; + StatusOr CreateIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::CreateIndexRequest const& request) override; + + future> CreateIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteIndex( google::datastore::admin::v1::DeleteIndexRequest const& request) override; + StatusOr DeleteIndex( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::DeleteIndexRequest const& request) override; + + future> DeleteIndex( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIndex( google::datastore::admin::v1::GetIndexRequest const& request) override; diff --git a/google/cloud/datastore/admin/v1/mocks/mock_datastore_admin_connection.h b/google/cloud/datastore/admin/v1/mocks/mock_datastore_admin_connection.h index db68901f72b80..13e50fb1a91a9 100644 --- a/google/cloud/datastore/admin/v1/mocks/mock_datastore_admin_connection.h +++ b/google/cloud/datastore/admin/v1/mocks/mock_datastore_admin_connection.h @@ -53,22 +53,70 @@ class MockDatastoreAdminConnection (google::datastore::admin::v1::ExportEntitiesRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ExportEntities, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::ExportEntitiesRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ExportEntities, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ImportEntities, (google::datastore::admin::v1::ImportEntitiesRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ImportEntities, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::ImportEntitiesRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ImportEntities, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, CreateIndex, (google::datastore::admin::v1::CreateIndexRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateIndex, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::CreateIndexRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateIndex, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteIndex, (google::datastore::admin::v1::DeleteIndexRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteIndex, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::datastore::admin::v1::DeleteIndexRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteIndex, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetIndex, (google::datastore::admin::v1::GetIndexRequest const& request), (override)); diff --git a/google/cloud/datastore/v1/datastore_connection.h b/google/cloud/datastore/v1/datastore_connection.h index bacabe33d911c..52f17b9d2a5ff 100644 --- a/google/cloud/datastore/v1/datastore_connection.h +++ b/google/cloud/datastore/v1/datastore_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/datastore/v1/datastore_connection_idempotency_policy.h" #include "google/cloud/datastore/v1/internal/datastore_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/datastream/v1/datastream_connection.cc b/google/cloud/datastream/v1/datastream_connection.cc index 9d3bfe6a1c9ee..d30cf30e0cad1 100644 --- a/google/cloud/datastream/v1/datastream_connection.cc +++ b/google/cloud/datastream/v1/datastream_connection.cc @@ -60,6 +60,22 @@ DatastreamConnection::CreateConnectionProfile( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatastreamConnection::CreateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateConnectionProfileRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatastreamConnection::CreateConnectionProfile( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DatastreamConnection::UpdateConnectionProfile( google::cloud::datastream::v1::UpdateConnectionProfileRequest const&) { @@ -68,6 +84,22 @@ DatastreamConnection::UpdateConnectionProfile( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatastreamConnection::UpdateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::UpdateConnectionProfileRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatastreamConnection::UpdateConnectionProfile( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DatastreamConnection::DeleteConnectionProfile( google::cloud::datastream::v1::DeleteConnectionProfileRequest const&) { @@ -76,6 +108,22 @@ DatastreamConnection::DeleteConnectionProfile( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatastreamConnection::DeleteConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteConnectionProfileRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatastreamConnection::DeleteConnectionProfile( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DatastreamConnection::DiscoverConnectionProfile( google::cloud::datastream::v1::DiscoverConnectionProfileRequest const&) { @@ -103,6 +151,21 @@ DatastreamConnection::CreateStream( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DatastreamConnection::CreateStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateStreamRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatastreamConnection::CreateStream(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DatastreamConnection::UpdateStream( google::cloud::datastream::v1::UpdateStreamRequest const&) { @@ -111,6 +174,21 @@ DatastreamConnection::UpdateStream( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DatastreamConnection::UpdateStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::UpdateStreamRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatastreamConnection::UpdateStream(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DatastreamConnection::DeleteStream( google::cloud::datastream::v1::DeleteStreamRequest const&) { @@ -119,6 +197,21 @@ DatastreamConnection::DeleteStream( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DatastreamConnection::DeleteStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteStreamRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatastreamConnection::DeleteStream(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DatastreamConnection::GetStreamObject( google::cloud::datastream::v1::GetStreamObjectRequest const&) { @@ -166,6 +259,22 @@ DatastreamConnection::CreatePrivateConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatastreamConnection::CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreatePrivateConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatastreamConnection::CreatePrivateConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DatastreamConnection::GetPrivateConnection( google::cloud::datastream::v1::GetPrivateConnectionRequest const&) { @@ -188,6 +297,22 @@ DatastreamConnection::DeletePrivateConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatastreamConnection::DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeletePrivateConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatastreamConnection::DeletePrivateConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DatastreamConnection::CreateRoute( google::cloud::datastream::v1::CreateRouteRequest const&) { @@ -196,6 +321,21 @@ DatastreamConnection::CreateRoute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DatastreamConnection::CreateRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatastreamConnection::CreateRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DatastreamConnection::GetRoute( google::cloud::datastream::v1::GetRouteRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -217,6 +357,21 @@ DatastreamConnection::DeleteRoute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DatastreamConnection::DeleteRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatastreamConnection::DeleteRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeDatastreamConnection( Options options) { internal::CheckExpectedOptions CreateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateConnectionProfileRequest const& + request); + + virtual future> + CreateConnectionProfile(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateConnectionProfile( google::cloud::datastream::v1::UpdateConnectionProfileRequest const& request); + virtual StatusOr UpdateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::UpdateConnectionProfileRequest const& + request); + + virtual future> + UpdateConnectionProfile(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteConnectionProfile( google::cloud::datastream::v1::DeleteConnectionProfileRequest const& request); + virtual StatusOr DeleteConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteConnectionProfileRequest const& + request); + + virtual future> + DeleteConnectionProfile(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::cloud::datastream::v1::DiscoverConnectionProfileResponse> DiscoverConnectionProfile( @@ -223,13 +252,37 @@ class DatastreamConnection { virtual future> CreateStream( google::cloud::datastream::v1::CreateStreamRequest const& request); + virtual StatusOr CreateStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateStreamRequest const& request); + + virtual future> CreateStream( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateStream( google::cloud::datastream::v1::UpdateStreamRequest const& request); + virtual StatusOr UpdateStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::UpdateStreamRequest const& request); + + virtual future> UpdateStream( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteStream( google::cloud::datastream::v1::DeleteStreamRequest const& request); + virtual StatusOr DeleteStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteStreamRequest const& request); + + virtual future> + DeleteStream(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetStreamObject( google::cloud::datastream::v1::GetStreamObjectRequest const& request); @@ -257,6 +310,15 @@ class DatastreamConnection { google::cloud::datastream::v1::CreatePrivateConnectionRequest const& request); + virtual StatusOr CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreatePrivateConnectionRequest const& + request); + + virtual future> + CreatePrivateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetPrivateConnection( google::cloud::datastream::v1::GetPrivateConnectionRequest const& @@ -271,9 +333,26 @@ class DatastreamConnection { google::cloud::datastream::v1::DeletePrivateConnectionRequest const& request); + virtual StatusOr DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeletePrivateConnectionRequest const& + request); + + virtual future> + DeletePrivateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateRoute( google::cloud::datastream::v1::CreateRouteRequest const& request); + virtual StatusOr CreateRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateRouteRequest const& request); + + virtual future> CreateRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetRoute( google::cloud::datastream::v1::GetRouteRequest const& request); @@ -282,6 +361,14 @@ class DatastreamConnection { virtual future> DeleteRoute(google::cloud::datastream::v1::DeleteRouteRequest const& request); + + virtual StatusOr DeleteRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteRouteRequest const& request); + + virtual future> + DeleteRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/datastream/v1/internal/datastream_connection_impl.cc b/google/cloud/datastream/v1/internal/datastream_connection_impl.cc index a5cf733e56b17..e456f7b2e52e9 100644 --- a/google/cloud/datastream/v1/internal/datastream_connection_impl.cc +++ b/google/cloud/datastream/v1/internal/datastream_connection_impl.cc @@ -156,6 +156,62 @@ DatastreamConnectionImpl::CreateConnectionProfile( polling_policy(*current), __func__); } +StatusOr +DatastreamConnectionImpl::CreateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateConnectionProfileRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateConnectionProfile(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::datastream::v1::CreateConnectionProfileRequest const& + request) { + return stub_->CreateConnectionProfile(context, options, request); + }, + *current, request, __func__); +} + +future> +DatastreamConnectionImpl::CreateConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateConnectionProfile", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datastream::v1::ConnectionProfile>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::datastream::v1::ConnectionProfile>, + polling_policy(*current), __func__); +} + future> DatastreamConnectionImpl::UpdateConnectionProfile( google::cloud::datastream::v1::UpdateConnectionProfileRequest const& @@ -197,6 +253,62 @@ DatastreamConnectionImpl::UpdateConnectionProfile( polling_policy(*current), __func__); } +StatusOr +DatastreamConnectionImpl::UpdateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::UpdateConnectionProfileRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateConnectionProfile(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::datastream::v1::UpdateConnectionProfileRequest const& + request) { + return stub_->UpdateConnectionProfile(context, options, request); + }, + *current, request, __func__); +} + +future> +DatastreamConnectionImpl::UpdateConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateConnectionProfile", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datastream::v1::ConnectionProfile>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::datastream::v1::ConnectionProfile>, + polling_policy(*current), __func__); +} + future> DatastreamConnectionImpl::DeleteConnectionProfile( google::cloud::datastream::v1::DeleteConnectionProfileRequest const& @@ -238,6 +350,62 @@ DatastreamConnectionImpl::DeleteConnectionProfile( polling_policy(*current), __func__); } +StatusOr +DatastreamConnectionImpl::DeleteConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteConnectionProfileRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteConnectionProfile(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::datastream::v1::DeleteConnectionProfileRequest const& + request) { + return stub_->DeleteConnectionProfile(context, options, request); + }, + *current, request, __func__); +} + +future> +DatastreamConnectionImpl::DeleteConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteConnectionProfile", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datastream::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::datastream::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr DatastreamConnectionImpl::DiscoverConnectionProfile( google::cloud::datastream::v1::DiscoverConnectionProfileRequest const& @@ -342,6 +510,58 @@ DatastreamConnectionImpl::CreateStream( polling_policy(*current), __func__); } +StatusOr DatastreamConnectionImpl::CreateStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateStreamRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateStream(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::datastream::v1::CreateStreamRequest const& request) { + return stub_->CreateStream(context, options, request); + }, + *current, request, __func__); +} + +future> +DatastreamConnectionImpl::CreateStream( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateStream", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datastream::v1::Stream>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::datastream::v1::Stream>, + polling_policy(*current), __func__); +} + future> DatastreamConnectionImpl::UpdateStream( google::cloud::datastream::v1::UpdateStreamRequest const& request) { @@ -381,6 +601,58 @@ DatastreamConnectionImpl::UpdateStream( polling_policy(*current), __func__); } +StatusOr DatastreamConnectionImpl::UpdateStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::UpdateStreamRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateStream(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::datastream::v1::UpdateStreamRequest const& request) { + return stub_->UpdateStream(context, options, request); + }, + *current, request, __func__); +} + +future> +DatastreamConnectionImpl::UpdateStream( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateStream", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datastream::v1::Stream>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::datastream::v1::Stream>, + polling_policy(*current), __func__); +} + future> DatastreamConnectionImpl::DeleteStream( google::cloud::datastream::v1::DeleteStreamRequest const& request) { @@ -420,6 +692,59 @@ DatastreamConnectionImpl::DeleteStream( polling_policy(*current), __func__); } +StatusOr DatastreamConnectionImpl::DeleteStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteStreamRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteStream(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::datastream::v1::DeleteStreamRequest const& request) { + return stub_->DeleteStream(context, options, request); + }, + *current, request, __func__); +} + +future> +DatastreamConnectionImpl::DeleteStream( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteStream", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datastream::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::datastream::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr DatastreamConnectionImpl::GetStreamObject( google::cloud::datastream::v1::GetStreamObjectRequest const& request) { @@ -587,6 +912,62 @@ DatastreamConnectionImpl::CreatePrivateConnection( polling_policy(*current), __func__); } +StatusOr +DatastreamConnectionImpl::CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreatePrivateConnectionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreatePrivateConnection(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::datastream::v1::CreatePrivateConnectionRequest const& + request) { + return stub_->CreatePrivateConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +DatastreamConnectionImpl::CreatePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreatePrivateConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datastream::v1::PrivateConnection>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::datastream::v1::PrivateConnection>, + polling_policy(*current), __func__); +} + StatusOr DatastreamConnectionImpl::GetPrivateConnection( google::cloud::datastream::v1::GetPrivateConnectionRequest const& request) { @@ -679,6 +1060,62 @@ DatastreamConnectionImpl::DeletePrivateConnection( polling_policy(*current), __func__); } +StatusOr +DatastreamConnectionImpl::DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeletePrivateConnectionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePrivateConnection(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::datastream::v1::DeletePrivateConnectionRequest const& + request) { + return stub_->DeletePrivateConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +DatastreamConnectionImpl::DeletePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeletePrivateConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datastream::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::datastream::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> DatastreamConnectionImpl::CreateRoute( google::cloud::datastream::v1::CreateRouteRequest const& request) { @@ -718,6 +1155,57 @@ DatastreamConnectionImpl::CreateRoute( polling_policy(*current), __func__); } +StatusOr DatastreamConnectionImpl::CreateRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateRouteRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateRoute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::datastream::v1::CreateRouteRequest const& request) { + return stub_->CreateRoute(context, options, request); + }, + *current, request, __func__); +} + +future> +DatastreamConnectionImpl::CreateRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateRoute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datastream::v1::Route>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::datastream::v1::Route>, + polling_policy(*current), __func__); +} + StatusOr DatastreamConnectionImpl::GetRoute( google::cloud::datastream::v1::GetRouteRequest const& request) { @@ -805,6 +1293,58 @@ DatastreamConnectionImpl::DeleteRoute( polling_policy(*current), __func__); } +StatusOr DatastreamConnectionImpl::DeleteRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteRouteRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteRoute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::datastream::v1::DeleteRouteRequest const& request) { + return stub_->DeleteRoute(context, options, request); + }, + *current, request, __func__); +} + +future> +DatastreamConnectionImpl::DeleteRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteRoute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::datastream::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::datastream::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace datastream_v1_internal } // namespace cloud diff --git a/google/cloud/datastream/v1/internal/datastream_connection_impl.h b/google/cloud/datastream/v1/internal/datastream_connection_impl.h index 58715ad342158..6c01bb9578fb9 100644 --- a/google/cloud/datastream/v1/internal/datastream_connection_impl.h +++ b/google/cloud/datastream/v1/internal/datastream_connection_impl.h @@ -66,16 +66,46 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { google::cloud::datastream::v1::CreateConnectionProfileRequest const& request) override; + StatusOr CreateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateConnectionProfileRequest const& + request) override; + + future> + CreateConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateConnectionProfile( google::cloud::datastream::v1::UpdateConnectionProfileRequest const& request) override; + StatusOr UpdateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::UpdateConnectionProfileRequest const& + request) override; + + future> + UpdateConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteConnectionProfile( google::cloud::datastream::v1::DeleteConnectionProfileRequest const& request) override; + StatusOr DeleteConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteConnectionProfileRequest const& + request) override; + + future> + DeleteConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr DiscoverConnectionProfile( google::cloud::datastream::v1::DiscoverConnectionProfileRequest const& @@ -91,14 +121,41 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { google::cloud::datastream::v1::CreateStreamRequest const& request) override; + StatusOr CreateStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateStreamRequest const& request) + override; + + future> CreateStream( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateStream( google::cloud::datastream::v1::UpdateStreamRequest const& request) override; + StatusOr UpdateStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::UpdateStreamRequest const& request) + override; + + future> UpdateStream( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteStream(google::cloud::datastream::v1::DeleteStreamRequest const& request) override; + StatusOr DeleteStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteStreamRequest const& request) + override; + + future> + DeleteStream(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetStreamObject( google::cloud::datastream::v1::GetStreamObjectRequest const& request) override; @@ -126,6 +183,16 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { google::cloud::datastream::v1::CreatePrivateConnectionRequest const& request) override; + StatusOr CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreatePrivateConnectionRequest const& + request) override; + + future> + CreatePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetPrivateConnection( google::cloud::datastream::v1::GetPrivateConnectionRequest const& request) @@ -141,10 +208,29 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { google::cloud::datastream::v1::DeletePrivateConnectionRequest const& request) override; + StatusOr DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeletePrivateConnectionRequest const& + request) override; + + future> + DeletePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateRoute( google::cloud::datastream::v1::CreateRouteRequest const& request) override; + StatusOr CreateRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateRouteRequest const& request) + override; + + future> CreateRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetRoute( google::cloud::datastream::v1::GetRouteRequest const& request) override; @@ -155,6 +241,15 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { DeleteRoute(google::cloud::datastream::v1::DeleteRouteRequest const& request) override; + StatusOr DeleteRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteRouteRequest const& request) + override; + + future> + DeleteRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/datastream/v1/internal/datastream_tracing_connection.cc b/google/cloud/datastream/v1/internal/datastream_tracing_connection.cc index a06301d55397e..a889083b63dde 100644 --- a/google/cloud/datastream/v1/internal/datastream_tracing_connection.cc +++ b/google/cloud/datastream/v1/internal/datastream_tracing_connection.cc @@ -65,6 +65,31 @@ DatastreamTracingConnection::CreateConnectionProfile( child_->CreateConnectionProfile(request)); } +StatusOr +DatastreamTracingConnection::CreateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateConnectionProfileRequest const& + request) { + auto span = internal::MakeSpan( + "datastream_v1::DatastreamConnection::CreateConnectionProfile"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateConnectionProfile( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatastreamTracingConnection::CreateConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datastream_v1::DatastreamConnection::CreateConnectionProfile"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateConnectionProfile( + google::cloud::ExperimentalTag{}, operation)); +} + future> DatastreamTracingConnection::UpdateConnectionProfile( google::cloud::datastream::v1::UpdateConnectionProfileRequest const& @@ -76,6 +101,31 @@ DatastreamTracingConnection::UpdateConnectionProfile( child_->UpdateConnectionProfile(request)); } +StatusOr +DatastreamTracingConnection::UpdateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::UpdateConnectionProfileRequest const& + request) { + auto span = internal::MakeSpan( + "datastream_v1::DatastreamConnection::UpdateConnectionProfile"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateConnectionProfile( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatastreamTracingConnection::UpdateConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datastream_v1::DatastreamConnection::UpdateConnectionProfile"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateConnectionProfile( + google::cloud::ExperimentalTag{}, operation)); +} + future> DatastreamTracingConnection::DeleteConnectionProfile( google::cloud::datastream::v1::DeleteConnectionProfileRequest const& @@ -87,6 +137,31 @@ DatastreamTracingConnection::DeleteConnectionProfile( child_->DeleteConnectionProfile(request)); } +StatusOr +DatastreamTracingConnection::DeleteConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteConnectionProfileRequest const& + request) { + auto span = internal::MakeSpan( + "datastream_v1::DatastreamConnection::DeleteConnectionProfile"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteConnectionProfile( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatastreamTracingConnection::DeleteConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datastream_v1::DatastreamConnection::DeleteConnectionProfile"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteConnectionProfile( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DatastreamTracingConnection::DiscoverConnectionProfile( google::cloud::datastream::v1::DiscoverConnectionProfileRequest const& @@ -126,6 +201,30 @@ DatastreamTracingConnection::CreateStream( return internal::EndSpan(std::move(span), child_->CreateStream(request)); } +StatusOr +DatastreamTracingConnection::CreateStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateStreamRequest const& request) { + auto span = + internal::MakeSpan("datastream_v1::DatastreamConnection::CreateStream"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateStream(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatastreamTracingConnection::CreateStream( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("datastream_v1::DatastreamConnection::CreateStream"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateStream(google::cloud::ExperimentalTag{}, operation)); +} + future> DatastreamTracingConnection::UpdateStream( google::cloud::datastream::v1::UpdateStreamRequest const& request) { @@ -135,6 +234,30 @@ DatastreamTracingConnection::UpdateStream( return internal::EndSpan(std::move(span), child_->UpdateStream(request)); } +StatusOr +DatastreamTracingConnection::UpdateStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::UpdateStreamRequest const& request) { + auto span = + internal::MakeSpan("datastream_v1::DatastreamConnection::UpdateStream"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateStream(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatastreamTracingConnection::UpdateStream( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("datastream_v1::DatastreamConnection::UpdateStream"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateStream(google::cloud::ExperimentalTag{}, operation)); +} + future> DatastreamTracingConnection::DeleteStream( google::cloud::datastream::v1::DeleteStreamRequest const& request) { @@ -144,6 +267,30 @@ DatastreamTracingConnection::DeleteStream( return internal::EndSpan(std::move(span), child_->DeleteStream(request)); } +StatusOr +DatastreamTracingConnection::DeleteStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteStreamRequest const& request) { + auto span = + internal::MakeSpan("datastream_v1::DatastreamConnection::DeleteStream"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteStream(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatastreamTracingConnection::DeleteStream( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("datastream_v1::DatastreamConnection::DeleteStream"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteStream(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DatastreamTracingConnection::GetStreamObject( google::cloud::datastream::v1::GetStreamObjectRequest const& request) { @@ -213,6 +360,31 @@ DatastreamTracingConnection::CreatePrivateConnection( child_->CreatePrivateConnection(request)); } +StatusOr +DatastreamTracingConnection::CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreatePrivateConnectionRequest const& + request) { + auto span = internal::MakeSpan( + "datastream_v1::DatastreamConnection::CreatePrivateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreatePrivateConnection( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatastreamTracingConnection::CreatePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datastream_v1::DatastreamConnection::CreatePrivateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreatePrivateConnection( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DatastreamTracingConnection::GetPrivateConnection( google::cloud::datastream::v1::GetPrivateConnectionRequest const& request) { @@ -245,6 +417,31 @@ DatastreamTracingConnection::DeletePrivateConnection( child_->DeletePrivateConnection(request)); } +StatusOr +DatastreamTracingConnection::DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeletePrivateConnectionRequest const& + request) { + auto span = internal::MakeSpan( + "datastream_v1::DatastreamConnection::DeletePrivateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeletePrivateConnection( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatastreamTracingConnection::DeletePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "datastream_v1::DatastreamConnection::DeletePrivateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeletePrivateConnection( + google::cloud::ExperimentalTag{}, operation)); +} + future> DatastreamTracingConnection::CreateRoute( google::cloud::datastream::v1::CreateRouteRequest const& request) { @@ -254,6 +451,30 @@ DatastreamTracingConnection::CreateRoute( return internal::EndSpan(std::move(span), child_->CreateRoute(request)); } +StatusOr +DatastreamTracingConnection::CreateRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateRouteRequest const& request) { + auto span = + internal::MakeSpan("datastream_v1::DatastreamConnection::CreateRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateRoute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatastreamTracingConnection::CreateRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("datastream_v1::DatastreamConnection::CreateRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateRoute(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DatastreamTracingConnection::GetRoute( google::cloud::datastream::v1::GetRouteRequest const& request) { @@ -283,6 +504,30 @@ DatastreamTracingConnection::DeleteRoute( return internal::EndSpan(std::move(span), child_->DeleteRoute(request)); } +StatusOr +DatastreamTracingConnection::DeleteRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteRouteRequest const& request) { + auto span = + internal::MakeSpan("datastream_v1::DatastreamConnection::DeleteRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteRoute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatastreamTracingConnection::DeleteRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("datastream_v1::DatastreamConnection::DeleteRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteRoute(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/datastream/v1/internal/datastream_tracing_connection.h b/google/cloud/datastream/v1/internal/datastream_tracing_connection.h index fdac55c958f40..1be6829ee6b75 100644 --- a/google/cloud/datastream/v1/internal/datastream_tracing_connection.h +++ b/google/cloud/datastream/v1/internal/datastream_tracing_connection.h @@ -54,16 +54,46 @@ class DatastreamTracingConnection : public datastream_v1::DatastreamConnection { google::cloud::datastream::v1::CreateConnectionProfileRequest const& request) override; + StatusOr CreateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateConnectionProfileRequest const& + request) override; + + future> + CreateConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateConnectionProfile( google::cloud::datastream::v1::UpdateConnectionProfileRequest const& request) override; + StatusOr UpdateConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::UpdateConnectionProfileRequest const& + request) override; + + future> + UpdateConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteConnectionProfile( google::cloud::datastream::v1::DeleteConnectionProfileRequest const& request) override; + StatusOr DeleteConnectionProfile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteConnectionProfileRequest const& + request) override; + + future> + DeleteConnectionProfile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr DiscoverConnectionProfile( google::cloud::datastream::v1::DiscoverConnectionProfileRequest const& @@ -79,14 +109,41 @@ class DatastreamTracingConnection : public datastream_v1::DatastreamConnection { google::cloud::datastream::v1::CreateStreamRequest const& request) override; + StatusOr CreateStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateStreamRequest const& request) + override; + + future> CreateStream( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateStream( google::cloud::datastream::v1::UpdateStreamRequest const& request) override; + StatusOr UpdateStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::UpdateStreamRequest const& request) + override; + + future> UpdateStream( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteStream(google::cloud::datastream::v1::DeleteStreamRequest const& request) override; + StatusOr DeleteStream( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteStreamRequest const& request) + override; + + future> + DeleteStream(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetStreamObject( google::cloud::datastream::v1::GetStreamObjectRequest const& request) override; @@ -114,6 +171,16 @@ class DatastreamTracingConnection : public datastream_v1::DatastreamConnection { google::cloud::datastream::v1::CreatePrivateConnectionRequest const& request) override; + StatusOr CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreatePrivateConnectionRequest const& + request) override; + + future> + CreatePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetPrivateConnection( google::cloud::datastream::v1::GetPrivateConnectionRequest const& request) @@ -129,10 +196,29 @@ class DatastreamTracingConnection : public datastream_v1::DatastreamConnection { google::cloud::datastream::v1::DeletePrivateConnectionRequest const& request) override; + StatusOr DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeletePrivateConnectionRequest const& + request) override; + + future> + DeletePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateRoute( google::cloud::datastream::v1::CreateRouteRequest const& request) override; + StatusOr CreateRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateRouteRequest const& request) + override; + + future> CreateRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetRoute( google::cloud::datastream::v1::GetRouteRequest const& request) override; @@ -143,6 +229,15 @@ class DatastreamTracingConnection : public datastream_v1::DatastreamConnection { DeleteRoute(google::cloud::datastream::v1::DeleteRouteRequest const& request) override; + StatusOr DeleteRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteRouteRequest const& request) + override; + + future> + DeleteRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/datastream/v1/mocks/mock_datastream_connection.h b/google/cloud/datastream/v1/mocks/mock_datastream_connection.h index 430f4cc1267d6..5dccb64be09a0 100644 --- a/google/cloud/datastream/v1/mocks/mock_datastream_connection.h +++ b/google/cloud/datastream/v1/mocks/mock_datastream_connection.h @@ -65,6 +65,20 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { request), (override)); + MOCK_METHOD( + StatusOr, CreateConnectionProfile, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateConnectionProfileRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateConnectionProfile, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateConnectionProfile, @@ -72,6 +86,20 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { request), (override)); + MOCK_METHOD( + StatusOr, UpdateConnectionProfile, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::UpdateConnectionProfileRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateConnectionProfile, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteConnectionProfile, @@ -79,6 +107,20 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { request), (override)); + MOCK_METHOD( + StatusOr, DeleteConnectionProfile, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteConnectionProfileRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteConnectionProfile, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr< google::cloud::datastream::v1::DiscoverConnectionProfileResponse>, @@ -100,17 +142,54 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { (google::cloud::datastream::v1::CreateStreamRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateStream, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateStreamRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateStream, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateStream, (google::cloud::datastream::v1::UpdateStreamRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateStream, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::UpdateStreamRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateStream, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteStream, (google::cloud::datastream::v1::DeleteStreamRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteStream, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteStreamRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteStream, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetStreamObject, (google::cloud::datastream::v1::GetStreamObjectRequest const& request), @@ -149,6 +228,20 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { request), (override)); + MOCK_METHOD( + StatusOr, CreatePrivateConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreatePrivateConnectionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreatePrivateConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetPrivateConnection, (google::cloud::datastream::v1::GetPrivateConnectionRequest const& @@ -168,11 +261,37 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { request), (override)); + MOCK_METHOD( + StatusOr, DeletePrivateConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeletePrivateConnectionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeletePrivateConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateRoute, (google::cloud::datastream::v1::CreateRouteRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::CreateRouteRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateRoute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetRoute, (google::cloud::datastream::v1::GetRouteRequest const& request), (override)); @@ -186,6 +305,19 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { DeleteRoute, (google::cloud::datastream::v1::DeleteRouteRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::datastream::v1::DeleteRouteRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteRoute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/deploy/v1/cloud_deploy_connection.cc b/google/cloud/deploy/v1/cloud_deploy_connection.cc index b1c9249b75391..1b3a9a925f839 100644 --- a/google/cloud/deploy/v1/cloud_deploy_connection.cc +++ b/google/cloud/deploy/v1/cloud_deploy_connection.cc @@ -60,6 +60,22 @@ CloudDeployConnection::CreateDeliveryPipeline( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudDeployConnection::CreateDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateDeliveryPipelineRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudDeployConnection::CreateDeliveryPipeline( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudDeployConnection::UpdateDeliveryPipeline( google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const&) { @@ -68,6 +84,22 @@ CloudDeployConnection::UpdateDeliveryPipeline( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudDeployConnection::UpdateDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudDeployConnection::UpdateDeliveryPipeline( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudDeployConnection::DeleteDeliveryPipeline( google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const&) { @@ -76,6 +108,22 @@ CloudDeployConnection::DeleteDeliveryPipeline( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudDeployConnection::DeleteDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudDeployConnection::DeleteDeliveryPipeline( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CloudDeployConnection::ListTargets( google::cloud::deploy::v1:: @@ -103,6 +151,21 @@ CloudDeployConnection::CreateTarget( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudDeployConnection::CreateTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateTargetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudDeployConnection::CreateTarget(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudDeployConnection::UpdateTarget( google::cloud::deploy::v1::UpdateTargetRequest const&) { @@ -111,6 +174,21 @@ CloudDeployConnection::UpdateTarget( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudDeployConnection::UpdateTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateTargetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudDeployConnection::UpdateTarget(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudDeployConnection::DeleteTarget( google::cloud::deploy::v1::DeleteTargetRequest const&) { @@ -119,6 +197,21 @@ CloudDeployConnection::DeleteTarget( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudDeployConnection::DeleteTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteTargetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudDeployConnection::DeleteTarget(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CloudDeployConnection::ListCustomTargetTypes( google::cloud::deploy::v1:: @@ -141,6 +234,22 @@ CloudDeployConnection::CreateCustomTargetType( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudDeployConnection::CreateCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateCustomTargetTypeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudDeployConnection::CreateCustomTargetType( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudDeployConnection::UpdateCustomTargetType( google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const&) { @@ -149,6 +258,22 @@ CloudDeployConnection::UpdateCustomTargetType( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudDeployConnection::UpdateCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudDeployConnection::UpdateCustomTargetType( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudDeployConnection::DeleteCustomTargetType( google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const&) { @@ -157,6 +282,22 @@ CloudDeployConnection::DeleteCustomTargetType( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudDeployConnection::DeleteCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudDeployConnection::DeleteCustomTargetType( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CloudDeployConnection::ListReleases( google::cloud::deploy::v1:: @@ -178,6 +319,21 @@ CloudDeployConnection::CreateRelease( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudDeployConnection::CreateRelease( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateReleaseRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudDeployConnection::CreateRelease(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr CloudDeployConnection::AbandonRelease( google::cloud::deploy::v1::AbandonReleaseRequest const&) { @@ -223,6 +379,21 @@ CloudDeployConnection::CreateRollout( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudDeployConnection::CreateRollout( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateRolloutRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudDeployConnection::CreateRollout(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr CloudDeployConnection::IgnoreJob( google::cloud::deploy::v1::IgnoreJobRequest const&) { @@ -267,9 +438,41 @@ CloudDeployConnection::CreateAutomation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudDeployConnection::CreateAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateAutomationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +CloudDeployConnection::CreateAutomation(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudDeployConnection::UpdateAutomation( + google::cloud::deploy::v1::UpdateAutomationRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr CloudDeployConnection::UpdateAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::deploy::v1::UpdateAutomationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudDeployConnection::UpdateAutomation(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -283,6 +486,22 @@ CloudDeployConnection::DeleteAutomation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudDeployConnection::DeleteAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteAutomationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudDeployConnection::DeleteAutomation(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr CloudDeployConnection::GetAutomation( google::cloud::deploy::v1::GetAutomationRequest const&) { diff --git a/google/cloud/deploy/v1/cloud_deploy_connection.h b/google/cloud/deploy/v1/cloud_deploy_connection.h index 89f93a7c99255..fe71f59cf9d06 100644 --- a/google/cloud/deploy/v1/cloud_deploy_connection.h +++ b/google/cloud/deploy/v1/cloud_deploy_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/deploy/v1/cloud_deploy_connection_idempotency_policy.h" #include "google/cloud/deploy/v1/internal/cloud_deploy_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -196,14 +198,38 @@ class CloudDeployConnection { CreateDeliveryPipeline( google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request); + virtual StatusOr CreateDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request); + + virtual future> + CreateDeliveryPipeline(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateDeliveryPipeline( google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request); + virtual StatusOr UpdateDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request); + + virtual future> + UpdateDeliveryPipeline(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteDeliveryPipeline( google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request); + virtual StatusOr DeleteDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request); + + virtual future> + DeleteDeliveryPipeline(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListTargets( google::cloud::deploy::v1::ListTargetsRequest request); @@ -217,12 +243,36 @@ class CloudDeployConnection { virtual future> CreateTarget( google::cloud::deploy::v1::CreateTargetRequest const& request); + virtual StatusOr CreateTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateTargetRequest const& request); + + virtual future> CreateTarget( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateTarget( google::cloud::deploy::v1::UpdateTargetRequest const& request); + virtual StatusOr UpdateTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateTargetRequest const& request); + + virtual future> UpdateTarget( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteTarget(google::cloud::deploy::v1::DeleteTargetRequest const& request); + virtual StatusOr DeleteTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteTargetRequest const& request); + + virtual future> + DeleteTarget(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListCustomTargetTypes( google::cloud::deploy::v1::ListCustomTargetTypesRequest request); @@ -235,14 +285,38 @@ class CloudDeployConnection { CreateCustomTargetType( google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request); + virtual StatusOr CreateCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request); + + virtual future> + CreateCustomTargetType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateCustomTargetType( google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request); + virtual StatusOr UpdateCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request); + + virtual future> + UpdateCustomTargetType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteCustomTargetType( google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request); + virtual StatusOr DeleteCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request); + + virtual future> + DeleteCustomTargetType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListReleases( google::cloud::deploy::v1::ListReleasesRequest request); @@ -252,6 +326,14 @@ class CloudDeployConnection { virtual future> CreateRelease( google::cloud::deploy::v1::CreateReleaseRequest const& request); + virtual StatusOr CreateRelease( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateReleaseRequest const& request); + + virtual future> CreateRelease( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr AbandonRelease( google::cloud::deploy::v1::AbandonReleaseRequest const& request); @@ -276,6 +358,14 @@ class CloudDeployConnection { virtual future> CreateRollout( google::cloud::deploy::v1::CreateRolloutRequest const& request); + virtual StatusOr CreateRollout( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateRolloutRequest const& request); + + virtual future> CreateRollout( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr IgnoreJob( google::cloud::deploy::v1::IgnoreJobRequest const& request); @@ -299,14 +389,38 @@ class CloudDeployConnection { CreateAutomation( google::cloud::deploy::v1::CreateAutomationRequest const& request); + virtual StatusOr CreateAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateAutomationRequest const& request); + + virtual future> + CreateAutomation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateAutomation( google::cloud::deploy::v1::UpdateAutomationRequest const& request); + virtual StatusOr UpdateAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateAutomationRequest const& request); + + virtual future> + UpdateAutomation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteAutomation( google::cloud::deploy::v1::DeleteAutomationRequest const& request); + virtual StatusOr DeleteAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteAutomationRequest const& request); + + virtual future> + DeleteAutomation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetAutomation( google::cloud::deploy::v1::GetAutomationRequest const& request); diff --git a/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.cc b/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.cc index fe34d967cdf98..aa7d1717d3253 100644 --- a/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.cc +++ b/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.cc @@ -153,6 +153,60 @@ CloudDeployConnectionImpl::CreateDeliveryPipeline( polling_policy(*current), __func__); } +StatusOr +CloudDeployConnectionImpl::CreateDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDeliveryPipeline(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& + request) { + return stub_->CreateDeliveryPipeline(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudDeployConnectionImpl::CreateDeliveryPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDeliveryPipeline", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::deploy::v1::DeliveryPipeline>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::deploy::v1::DeliveryPipeline>, + polling_policy(*current), __func__); +} + future> CloudDeployConnectionImpl::UpdateDeliveryPipeline( google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request) { @@ -193,6 +247,60 @@ CloudDeployConnectionImpl::UpdateDeliveryPipeline( polling_policy(*current), __func__); } +StatusOr +CloudDeployConnectionImpl::UpdateDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDeliveryPipeline(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& + request) { + return stub_->UpdateDeliveryPipeline(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudDeployConnectionImpl::UpdateDeliveryPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateDeliveryPipeline", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::deploy::v1::DeliveryPipeline>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::deploy::v1::DeliveryPipeline>, + polling_policy(*current), __func__); +} + future> CloudDeployConnectionImpl::DeleteDeliveryPipeline( google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request) { @@ -233,6 +341,60 @@ CloudDeployConnectionImpl::DeleteDeliveryPipeline( polling_policy(*current), __func__); } +StatusOr +CloudDeployConnectionImpl::DeleteDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDeliveryPipeline(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& + request) { + return stub_->DeleteDeliveryPipeline(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudDeployConnectionImpl::DeleteDeliveryPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDeliveryPipeline", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::deploy::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::deploy::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange CloudDeployConnectionImpl::ListTargets( google::cloud::deploy::v1::ListTargetsRequest request) { @@ -334,6 +496,58 @@ CloudDeployConnectionImpl::CreateTarget( polling_policy(*current), __func__); } +StatusOr +CloudDeployConnectionImpl::CreateTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateTargetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateTarget(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::deploy::v1::CreateTargetRequest const& request) { + return stub_->CreateTarget(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudDeployConnectionImpl::CreateTarget( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateTarget", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::deploy::v1::Target>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::deploy::v1::Target>, + polling_policy(*current), __func__); +} + future> CloudDeployConnectionImpl::UpdateTarget( google::cloud::deploy::v1::UpdateTargetRequest const& request) { @@ -373,6 +587,58 @@ CloudDeployConnectionImpl::UpdateTarget( polling_policy(*current), __func__); } +StatusOr +CloudDeployConnectionImpl::UpdateTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateTargetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateTarget(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::deploy::v1::UpdateTargetRequest const& request) { + return stub_->UpdateTarget(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudDeployConnectionImpl::UpdateTarget( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateTarget", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::deploy::v1::Target>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::deploy::v1::Target>, + polling_policy(*current), __func__); +} + future> CloudDeployConnectionImpl::DeleteTarget( google::cloud::deploy::v1::DeleteTargetRequest const& request) { @@ -412,6 +678,59 @@ CloudDeployConnectionImpl::DeleteTarget( polling_policy(*current), __func__); } +StatusOr +CloudDeployConnectionImpl::DeleteTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteTargetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTarget(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::deploy::v1::DeleteTargetRequest const& request) { + return stub_->DeleteTarget(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudDeployConnectionImpl::DeleteTarget( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTarget", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::deploy::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::deploy::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange CloudDeployConnectionImpl::ListCustomTargetTypes( google::cloud::deploy::v1::ListCustomTargetTypesRequest request) { @@ -503,6 +822,60 @@ CloudDeployConnectionImpl::CreateCustomTargetType( polling_policy(*current), __func__); } +StatusOr +CloudDeployConnectionImpl::CreateCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCustomTargetType(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& + request) { + return stub_->CreateCustomTargetType(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudDeployConnectionImpl::CreateCustomTargetType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCustomTargetType", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::deploy::v1::CustomTargetType>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::deploy::v1::CustomTargetType>, + polling_policy(*current), __func__); +} + future> CloudDeployConnectionImpl::UpdateCustomTargetType( google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request) { @@ -543,6 +916,60 @@ CloudDeployConnectionImpl::UpdateCustomTargetType( polling_policy(*current), __func__); } +StatusOr +CloudDeployConnectionImpl::UpdateCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCustomTargetType(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& + request) { + return stub_->UpdateCustomTargetType(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudDeployConnectionImpl::UpdateCustomTargetType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCustomTargetType", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::deploy::v1::CustomTargetType>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::deploy::v1::CustomTargetType>, + polling_policy(*current), __func__); +} + future> CloudDeployConnectionImpl::DeleteCustomTargetType( google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request) { @@ -583,6 +1010,60 @@ CloudDeployConnectionImpl::DeleteCustomTargetType( polling_policy(*current), __func__); } +StatusOr +CloudDeployConnectionImpl::DeleteCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCustomTargetType(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& + request) { + return stub_->DeleteCustomTargetType(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudDeployConnectionImpl::DeleteCustomTargetType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCustomTargetType", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::deploy::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::deploy::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange CloudDeployConnectionImpl::ListReleases( google::cloud::deploy::v1::ListReleasesRequest request) { @@ -670,6 +1151,58 @@ CloudDeployConnectionImpl::CreateRelease( polling_policy(*current), __func__); } +StatusOr +CloudDeployConnectionImpl::CreateRelease( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateReleaseRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateRelease(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::deploy::v1::CreateReleaseRequest const& request) { + return stub_->CreateRelease(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudDeployConnectionImpl::CreateRelease( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateRelease", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::deploy::v1::Release>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::deploy::v1::Release>, + polling_policy(*current), __func__); +} + StatusOr CloudDeployConnectionImpl::AbandonRelease( google::cloud::deploy::v1::AbandonReleaseRequest const& request) { @@ -813,6 +1346,58 @@ CloudDeployConnectionImpl::CreateRollout( polling_policy(*current), __func__); } +StatusOr +CloudDeployConnectionImpl::CreateRollout( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateRolloutRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateRollout(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::deploy::v1::CreateRolloutRequest const& request) { + return stub_->CreateRollout(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudDeployConnectionImpl::CreateRollout( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateRollout", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::deploy::v1::Rollout>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::deploy::v1::Rollout>, + polling_policy(*current), __func__); +} + StatusOr CloudDeployConnectionImpl::IgnoreJob( google::cloud::deploy::v1::IgnoreJobRequest const& request) { @@ -956,6 +1541,59 @@ CloudDeployConnectionImpl::CreateAutomation( polling_policy(*current), __func__); } +StatusOr +CloudDeployConnectionImpl::CreateAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateAutomationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAutomation(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::deploy::v1::CreateAutomationRequest const& request) { + return stub_->CreateAutomation(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudDeployConnectionImpl::CreateAutomation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAutomation", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::deploy::v1::Automation>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::deploy::v1::Automation>, + polling_policy(*current), __func__); +} + future> CloudDeployConnectionImpl::UpdateAutomation( google::cloud::deploy::v1::UpdateAutomationRequest const& request) { @@ -995,6 +1633,59 @@ CloudDeployConnectionImpl::UpdateAutomation( polling_policy(*current), __func__); } +StatusOr +CloudDeployConnectionImpl::UpdateAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateAutomationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAutomation(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::deploy::v1::UpdateAutomationRequest const& request) { + return stub_->UpdateAutomation(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudDeployConnectionImpl::UpdateAutomation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateAutomation", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::deploy::v1::Automation>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::deploy::v1::Automation>, + polling_policy(*current), __func__); +} + future> CloudDeployConnectionImpl::DeleteAutomation( google::cloud::deploy::v1::DeleteAutomationRequest const& request) { @@ -1034,6 +1725,60 @@ CloudDeployConnectionImpl::DeleteAutomation( polling_policy(*current), __func__); } +StatusOr +CloudDeployConnectionImpl::DeleteAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteAutomationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAutomation(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::deploy::v1::DeleteAutomationRequest const& request) { + return stub_->DeleteAutomation(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudDeployConnectionImpl::DeleteAutomation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteAutomation", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::deploy::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::deploy::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr CloudDeployConnectionImpl::GetAutomation( google::cloud::deploy::v1::GetAutomationRequest const& request) { diff --git a/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.h b/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.h index 97a35679f8bae..8564f2767cbc5 100644 --- a/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.h +++ b/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.h @@ -64,16 +64,46 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request) override; + StatusOr CreateDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request) + override; + + future> + CreateDeliveryPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDeliveryPipeline( google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request) override; + StatusOr UpdateDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request) + override; + + future> + UpdateDeliveryPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDeliveryPipeline( google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request) override; + StatusOr DeleteDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request) + override; + + future> + DeleteDeliveryPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTargets( google::cloud::deploy::v1::ListTargetsRequest request) override; @@ -86,12 +116,36 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { future> CreateTarget( google::cloud::deploy::v1::CreateTargetRequest const& request) override; + StatusOr CreateTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateTargetRequest const& request) override; + + future> CreateTarget( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTarget( google::cloud::deploy::v1::UpdateTargetRequest const& request) override; + StatusOr UpdateTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateTargetRequest const& request) override; + + future> UpdateTarget( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTarget( google::cloud::deploy::v1::DeleteTargetRequest const& request) override; + StatusOr DeleteTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteTargetRequest const& request) override; + + future> DeleteTarget( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListCustomTargetTypes( google::cloud::deploy::v1::ListCustomTargetTypesRequest request) override; @@ -105,16 +159,46 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request) override; + StatusOr CreateCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request) + override; + + future> + CreateCustomTargetType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCustomTargetType( google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request) override; + StatusOr UpdateCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request) + override; + + future> + UpdateCustomTargetType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCustomTargetType( google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request) override; + StatusOr DeleteCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request) + override; + + future> + DeleteCustomTargetType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListReleases( google::cloud::deploy::v1::ListReleasesRequest request) override; @@ -124,6 +208,14 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { future> CreateRelease( google::cloud::deploy::v1::CreateReleaseRequest const& request) override; + StatusOr CreateRelease( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateReleaseRequest const& request) override; + + future> CreateRelease( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr AbandonRelease( google::cloud::deploy::v1::AbandonReleaseRequest const& request) override; @@ -145,6 +237,14 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { future> CreateRollout( google::cloud::deploy::v1::CreateRolloutRequest const& request) override; + StatusOr CreateRollout( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateRolloutRequest const& request) override; + + future> CreateRollout( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr IgnoreJob( google::cloud::deploy::v1::IgnoreJobRequest const& request) override; @@ -168,14 +268,41 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::CreateAutomationRequest const& request) override; + StatusOr CreateAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateAutomationRequest const& request) + override; + + future> CreateAutomation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAutomation( google::cloud::deploy::v1::UpdateAutomationRequest const& request) override; + StatusOr UpdateAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateAutomationRequest const& request) + override; + + future> UpdateAutomation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAutomation(google::cloud::deploy::v1::DeleteAutomationRequest const& request) override; + StatusOr DeleteAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteAutomationRequest const& request) + override; + + future> + DeleteAutomation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAutomation( google::cloud::deploy::v1::GetAutomationRequest const& request) override; diff --git a/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.cc b/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.cc index b6a84c75f623e..7fa7fb116ffa9 100644 --- a/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.cc +++ b/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.cc @@ -64,6 +64,30 @@ CloudDeployTracingConnection::CreateDeliveryPipeline( child_->CreateDeliveryPipeline(request)); } +StatusOr +CloudDeployTracingConnection::CreateDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request) { + auto span = internal::MakeSpan( + "deploy_v1::CloudDeployConnection::CreateDeliveryPipeline"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateDeliveryPipeline( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudDeployTracingConnection::CreateDeliveryPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "deploy_v1::CloudDeployConnection::CreateDeliveryPipeline"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateDeliveryPipeline( + google::cloud::ExperimentalTag{}, operation)); +} + future> CloudDeployTracingConnection::UpdateDeliveryPipeline( google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request) { @@ -74,6 +98,30 @@ CloudDeployTracingConnection::UpdateDeliveryPipeline( child_->UpdateDeliveryPipeline(request)); } +StatusOr +CloudDeployTracingConnection::UpdateDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request) { + auto span = internal::MakeSpan( + "deploy_v1::CloudDeployConnection::UpdateDeliveryPipeline"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateDeliveryPipeline( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudDeployTracingConnection::UpdateDeliveryPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "deploy_v1::CloudDeployConnection::UpdateDeliveryPipeline"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateDeliveryPipeline( + google::cloud::ExperimentalTag{}, operation)); +} + future> CloudDeployTracingConnection::DeleteDeliveryPipeline( google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request) { @@ -84,6 +132,30 @@ CloudDeployTracingConnection::DeleteDeliveryPipeline( child_->DeleteDeliveryPipeline(request)); } +StatusOr +CloudDeployTracingConnection::DeleteDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request) { + auto span = internal::MakeSpan( + "deploy_v1::CloudDeployConnection::DeleteDeliveryPipeline"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteDeliveryPipeline( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudDeployTracingConnection::DeleteDeliveryPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "deploy_v1::CloudDeployConnection::DeleteDeliveryPipeline"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteDeliveryPipeline( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CloudDeployTracingConnection::ListTargets( google::cloud::deploy::v1::ListTargetsRequest request) { @@ -121,6 +193,30 @@ CloudDeployTracingConnection::CreateTarget( return internal::EndSpan(std::move(span), child_->CreateTarget(request)); } +StatusOr +CloudDeployTracingConnection::CreateTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateTargetRequest const& request) { + auto span = + internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateTarget"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateTarget(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudDeployTracingConnection::CreateTarget( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateTarget"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateTarget(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudDeployTracingConnection::UpdateTarget( google::cloud::deploy::v1::UpdateTargetRequest const& request) { @@ -130,6 +226,30 @@ CloudDeployTracingConnection::UpdateTarget( return internal::EndSpan(std::move(span), child_->UpdateTarget(request)); } +StatusOr +CloudDeployTracingConnection::UpdateTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateTargetRequest const& request) { + auto span = + internal::MakeSpan("deploy_v1::CloudDeployConnection::UpdateTarget"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateTarget(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudDeployTracingConnection::UpdateTarget( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("deploy_v1::CloudDeployConnection::UpdateTarget"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateTarget(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudDeployTracingConnection::DeleteTarget( google::cloud::deploy::v1::DeleteTargetRequest const& request) { @@ -139,6 +259,30 @@ CloudDeployTracingConnection::DeleteTarget( return internal::EndSpan(std::move(span), child_->DeleteTarget(request)); } +StatusOr +CloudDeployTracingConnection::DeleteTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteTargetRequest const& request) { + auto span = + internal::MakeSpan("deploy_v1::CloudDeployConnection::DeleteTarget"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteTarget(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudDeployTracingConnection::DeleteTarget( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("deploy_v1::CloudDeployConnection::DeleteTarget"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteTarget(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CloudDeployTracingConnection::ListCustomTargetTypes( google::cloud::deploy::v1::ListCustomTargetTypesRequest request) { @@ -170,6 +314,30 @@ CloudDeployTracingConnection::CreateCustomTargetType( child_->CreateCustomTargetType(request)); } +StatusOr +CloudDeployTracingConnection::CreateCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request) { + auto span = internal::MakeSpan( + "deploy_v1::CloudDeployConnection::CreateCustomTargetType"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateCustomTargetType( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudDeployTracingConnection::CreateCustomTargetType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "deploy_v1::CloudDeployConnection::CreateCustomTargetType"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateCustomTargetType( + google::cloud::ExperimentalTag{}, operation)); +} + future> CloudDeployTracingConnection::UpdateCustomTargetType( google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request) { @@ -180,6 +348,30 @@ CloudDeployTracingConnection::UpdateCustomTargetType( child_->UpdateCustomTargetType(request)); } +StatusOr +CloudDeployTracingConnection::UpdateCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request) { + auto span = internal::MakeSpan( + "deploy_v1::CloudDeployConnection::UpdateCustomTargetType"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateCustomTargetType( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudDeployTracingConnection::UpdateCustomTargetType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "deploy_v1::CloudDeployConnection::UpdateCustomTargetType"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateCustomTargetType( + google::cloud::ExperimentalTag{}, operation)); +} + future> CloudDeployTracingConnection::DeleteCustomTargetType( google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request) { @@ -190,6 +382,30 @@ CloudDeployTracingConnection::DeleteCustomTargetType( child_->DeleteCustomTargetType(request)); } +StatusOr +CloudDeployTracingConnection::DeleteCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request) { + auto span = internal::MakeSpan( + "deploy_v1::CloudDeployConnection::DeleteCustomTargetType"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteCustomTargetType( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudDeployTracingConnection::DeleteCustomTargetType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "deploy_v1::CloudDeployConnection::DeleteCustomTargetType"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteCustomTargetType( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CloudDeployTracingConnection::ListReleases( google::cloud::deploy::v1::ListReleasesRequest request) { @@ -219,6 +435,30 @@ CloudDeployTracingConnection::CreateRelease( return internal::EndSpan(std::move(span), child_->CreateRelease(request)); } +StatusOr +CloudDeployTracingConnection::CreateRelease( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateReleaseRequest const& request) { + auto span = + internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateRelease"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateRelease(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudDeployTracingConnection::CreateRelease( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateRelease"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateRelease(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr CloudDeployTracingConnection::AbandonRelease( google::cloud::deploy::v1::AbandonReleaseRequest const& request) { @@ -284,6 +524,30 @@ CloudDeployTracingConnection::CreateRollout( return internal::EndSpan(std::move(span), child_->CreateRollout(request)); } +StatusOr +CloudDeployTracingConnection::CreateRollout( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateRolloutRequest const& request) { + auto span = + internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateRollout"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateRollout(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudDeployTracingConnection::CreateRollout( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateRollout"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateRollout(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr CloudDeployTracingConnection::IgnoreJob( google::cloud::deploy::v1::IgnoreJobRequest const& request) { @@ -345,6 +609,30 @@ CloudDeployTracingConnection::CreateAutomation( return internal::EndSpan(std::move(span), child_->CreateAutomation(request)); } +StatusOr +CloudDeployTracingConnection::CreateAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateAutomationRequest const& request) { + auto span = + internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateAutomation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateAutomation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudDeployTracingConnection::CreateAutomation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateAutomation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateAutomation(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudDeployTracingConnection::UpdateAutomation( google::cloud::deploy::v1::UpdateAutomationRequest const& request) { @@ -354,6 +642,30 @@ CloudDeployTracingConnection::UpdateAutomation( return internal::EndSpan(std::move(span), child_->UpdateAutomation(request)); } +StatusOr +CloudDeployTracingConnection::UpdateAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateAutomationRequest const& request) { + auto span = + internal::MakeSpan("deploy_v1::CloudDeployConnection::UpdateAutomation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateAutomation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudDeployTracingConnection::UpdateAutomation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("deploy_v1::CloudDeployConnection::UpdateAutomation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateAutomation(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudDeployTracingConnection::DeleteAutomation( google::cloud::deploy::v1::DeleteAutomationRequest const& request) { @@ -363,6 +675,30 @@ CloudDeployTracingConnection::DeleteAutomation( return internal::EndSpan(std::move(span), child_->DeleteAutomation(request)); } +StatusOr +CloudDeployTracingConnection::DeleteAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteAutomationRequest const& request) { + auto span = + internal::MakeSpan("deploy_v1::CloudDeployConnection::DeleteAutomation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAutomation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudDeployTracingConnection::DeleteAutomation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("deploy_v1::CloudDeployConnection::DeleteAutomation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAutomation(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr CloudDeployTracingConnection::GetAutomation( google::cloud::deploy::v1::GetAutomationRequest const& request) { diff --git a/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.h b/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.h index 6ae80e3b775e3..96869cd3432b4 100644 --- a/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.h +++ b/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.h @@ -52,16 +52,46 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request) override; + StatusOr CreateDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request) + override; + + future> + CreateDeliveryPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDeliveryPipeline( google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request) override; + StatusOr UpdateDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request) + override; + + future> + UpdateDeliveryPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDeliveryPipeline( google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request) override; + StatusOr DeleteDeliveryPipeline( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request) + override; + + future> + DeleteDeliveryPipeline( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTargets( google::cloud::deploy::v1::ListTargetsRequest request) override; @@ -74,12 +104,36 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { future> CreateTarget( google::cloud::deploy::v1::CreateTargetRequest const& request) override; + StatusOr CreateTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateTargetRequest const& request) override; + + future> CreateTarget( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTarget( google::cloud::deploy::v1::UpdateTargetRequest const& request) override; + StatusOr UpdateTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateTargetRequest const& request) override; + + future> UpdateTarget( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTarget( google::cloud::deploy::v1::DeleteTargetRequest const& request) override; + StatusOr DeleteTarget( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteTargetRequest const& request) override; + + future> DeleteTarget( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListCustomTargetTypes( google::cloud::deploy::v1::ListCustomTargetTypesRequest request) override; @@ -93,16 +147,46 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request) override; + StatusOr CreateCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request) + override; + + future> + CreateCustomTargetType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCustomTargetType( google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request) override; + StatusOr UpdateCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request) + override; + + future> + UpdateCustomTargetType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCustomTargetType( google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request) override; + StatusOr DeleteCustomTargetType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request) + override; + + future> + DeleteCustomTargetType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListReleases( google::cloud::deploy::v1::ListReleasesRequest request) override; @@ -112,6 +196,14 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { future> CreateRelease( google::cloud::deploy::v1::CreateReleaseRequest const& request) override; + StatusOr CreateRelease( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateReleaseRequest const& request) override; + + future> CreateRelease( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr AbandonRelease( google::cloud::deploy::v1::AbandonReleaseRequest const& request) override; @@ -133,6 +225,14 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { future> CreateRollout( google::cloud::deploy::v1::CreateRolloutRequest const& request) override; + StatusOr CreateRollout( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateRolloutRequest const& request) override; + + future> CreateRollout( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr IgnoreJob( google::cloud::deploy::v1::IgnoreJobRequest const& request) override; @@ -156,14 +256,41 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::CreateAutomationRequest const& request) override; + StatusOr CreateAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateAutomationRequest const& request) + override; + + future> CreateAutomation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAutomation( google::cloud::deploy::v1::UpdateAutomationRequest const& request) override; + StatusOr UpdateAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateAutomationRequest const& request) + override; + + future> UpdateAutomation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAutomation(google::cloud::deploy::v1::DeleteAutomationRequest const& request) override; + StatusOr DeleteAutomation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteAutomationRequest const& request) + override; + + future> + DeleteAutomation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAutomation( google::cloud::deploy::v1::GetAutomationRequest const& request) override; diff --git a/google/cloud/deploy/v1/mocks/mock_cloud_deploy_connection.h b/google/cloud/deploy/v1/mocks/mock_cloud_deploy_connection.h index 515141579defc..ba3c8525a4eb6 100644 --- a/google/cloud/deploy/v1/mocks/mock_cloud_deploy_connection.h +++ b/google/cloud/deploy/v1/mocks/mock_cloud_deploy_connection.h @@ -63,18 +63,54 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { (google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateDeliveryPipeline, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateDeliveryPipeline, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateDeliveryPipeline, (google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateDeliveryPipeline, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateDeliveryPipeline, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteDeliveryPipeline, (google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteDeliveryPipeline, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteDeliveryPipeline, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListTargets, (google::cloud::deploy::v1::ListTargetsRequest request), (override)); @@ -92,15 +128,46 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { (google::cloud::deploy::v1::CreateTargetRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateTarget, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateTargetRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateTarget, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateTarget, (google::cloud::deploy::v1::UpdateTargetRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateTarget, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateTargetRequest const& request), + (override)); + + MOCK_METHOD(future>, UpdateTarget, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteTarget, (google::cloud::deploy::v1::DeleteTargetRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteTarget, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteTargetRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteTarget, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListCustomTargetTypes, (google::cloud::deploy::v1::ListCustomTargetTypesRequest request), @@ -118,18 +185,54 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { (google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateCustomTargetType, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateCustomTargetType, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateCustomTargetType, (google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateCustomTargetType, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateCustomTargetType, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteCustomTargetType, (google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteCustomTargetType, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteCustomTargetType, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListReleases, (google::cloud::deploy::v1::ListReleasesRequest request), (override)); @@ -143,6 +246,17 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { (google::cloud::deploy::v1::CreateReleaseRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateRelease, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateReleaseRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateRelease, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, AbandonRelease, (google::cloud::deploy::v1::AbandonReleaseRequest const& request), @@ -176,6 +290,17 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { (google::cloud::deploy::v1::CreateRolloutRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateRollout, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateRolloutRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateRollout, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, IgnoreJob, (google::cloud::deploy::v1::IgnoreJobRequest const& request), (override)); @@ -207,17 +332,53 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { (google::cloud::deploy::v1::CreateAutomationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateAutomation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::CreateAutomationRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateAutomation, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateAutomation, (google::cloud::deploy::v1::UpdateAutomationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateAutomation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::UpdateAutomationRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateAutomation, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteAutomation, (google::cloud::deploy::v1::DeleteAutomationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteAutomation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::deploy::v1::DeleteAutomationRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteAutomation, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetAutomation, (google::cloud::deploy::v1::GetAutomationRequest const& request), (override)); diff --git a/google/cloud/dialogflow_cx/agents_connection.cc b/google/cloud/dialogflow_cx/agents_connection.cc index d1b43bcd3a9b4..46cdce6aafc33 100644 --- a/google/cloud/dialogflow_cx/agents_connection.cc +++ b/google/cloud/dialogflow_cx/agents_connection.cc @@ -76,12 +76,40 @@ AgentsConnection::ExportAgent( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AgentsConnection::ExportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportAgentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AgentsConnection::ExportAgent(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AgentsConnection::RestoreAgent( google::cloud::dialogflow::cx::v3::RestoreAgentRequest const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AgentsConnection::RestoreAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RestoreAgentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> AgentsConnection::RestoreAgent( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AgentsConnection::ValidateAgent( google::cloud::dialogflow::cx::v3::ValidateAgentRequest const&) { diff --git a/google/cloud/dialogflow_cx/agents_connection.h b/google/cloud/dialogflow_cx/agents_connection.h index 2441ab609334a..1dca7ef297941 100644 --- a/google/cloud/dialogflow_cx/agents_connection.h +++ b/google/cloud/dialogflow_cx/agents_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_cx/agents_connection_idempotency_policy.h" #include "google/cloud/dialogflow_cx/internal/agents_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -203,9 +205,26 @@ class AgentsConnection { ExportAgent( google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request); + virtual StatusOr ExportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request); + + virtual future< + StatusOr> + ExportAgent(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RestoreAgent( google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request); + virtual StatusOr RestoreAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request); + + virtual future> RestoreAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr ValidateAgent( google::cloud::dialogflow::cx::v3::ValidateAgentRequest const& request); diff --git a/google/cloud/dialogflow_cx/changelogs_connection.h b/google/cloud/dialogflow_cx/changelogs_connection.h index 1d594efccdca8..84466fb7371c2 100644 --- a/google/cloud/dialogflow_cx/changelogs_connection.h +++ b/google/cloud/dialogflow_cx/changelogs_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_cx/changelogs_connection_idempotency_policy.h" #include "google/cloud/dialogflow_cx/internal/changelogs_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dialogflow_cx/deployments_connection.h b/google/cloud/dialogflow_cx/deployments_connection.h index a92b6cb310413..58eb88f312b70 100644 --- a/google/cloud/dialogflow_cx/deployments_connection.h +++ b/google/cloud/dialogflow_cx/deployments_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_cx/deployments_connection_idempotency_policy.h" #include "google/cloud/dialogflow_cx/internal/deployments_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dialogflow_cx/entity_types_connection.cc b/google/cloud/dialogflow_cx/entity_types_connection.cc index 7588a857fea46..4eefcb117843b 100644 --- a/google/cloud/dialogflow_cx/entity_types_connection.cc +++ b/google/cloud/dialogflow_cx/entity_types_connection.cc @@ -77,6 +77,22 @@ EntityTypesConnection::ExportEntityTypes( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EntityTypesConnection::ExportEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EntityTypesConnection::ExportEntityTypes( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EntityTypesConnection::ImportEntityTypes( google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const&) { @@ -85,6 +101,22 @@ EntityTypesConnection::ImportEntityTypes( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EntityTypesConnection::ImportEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EntityTypesConnection::ImportEntityTypes( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeEntityTypesConnection( std::string const& location, Options options) { internal::CheckExpectedOptions ExportEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& + request); + + virtual future< + StatusOr> + ExportEntityTypes(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> ImportEntityTypes( google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& request); + + virtual StatusOr ImportEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& + request); + + virtual future< + StatusOr> + ImportEntityTypes(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dialogflow_cx/environments_connection.cc b/google/cloud/dialogflow_cx/environments_connection.cc index 27c55fd67290e..e2a12dc2d2cbc 100644 --- a/google/cloud/dialogflow_cx/environments_connection.cc +++ b/google/cloud/dialogflow_cx/environments_connection.cc @@ -60,6 +60,22 @@ EnvironmentsConnection::CreateEnvironment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EnvironmentsConnection::CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EnvironmentsConnection::CreateEnvironment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EnvironmentsConnection::UpdateEnvironment( google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const&) { @@ -68,6 +84,22 @@ EnvironmentsConnection::UpdateEnvironment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EnvironmentsConnection::UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EnvironmentsConnection::UpdateEnvironment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status EnvironmentsConnection::DeleteEnvironment( google::cloud::dialogflow::cx::v3::DeleteEnvironmentRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -89,6 +121,22 @@ EnvironmentsConnection::RunContinuousTest( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EnvironmentsConnection::RunContinuousTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EnvironmentsConnection::RunContinuousTest( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange EnvironmentsConnection::ListContinuousTestResults( google::cloud::dialogflow::cx::v3:: @@ -105,6 +153,21 @@ EnvironmentsConnection::DeployFlow( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EnvironmentsConnection::DeployFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::DeployFlowRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EnvironmentsConnection::DeployFlow(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeEnvironmentsConnection( std::string const& location, Options options) { internal::CheckExpectedOptions CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& + request); + + virtual future> + CreateEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateEnvironment( google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& request); + virtual StatusOr UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& + request); + + virtual future> + UpdateEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status DeleteEnvironment( google::cloud::dialogflow::cx::v3::DeleteEnvironmentRequest const& request); @@ -220,6 +240,16 @@ class EnvironmentsConnection { google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& request); + virtual StatusOr RunContinuousTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& + request); + + virtual future< + StatusOr> + RunContinuousTest(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListContinuousTestResults( google::cloud::dialogflow::cx::v3::ListContinuousTestResultsRequest @@ -229,6 +259,15 @@ class EnvironmentsConnection { StatusOr> DeployFlow( google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request); + + virtual StatusOr DeployFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request); + + virtual future< + StatusOr> + DeployFlow(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dialogflow_cx/experiments_connection.h b/google/cloud/dialogflow_cx/experiments_connection.h index 681dc6804f690..220f14df17f29 100644 --- a/google/cloud/dialogflow_cx/experiments_connection.h +++ b/google/cloud/dialogflow_cx/experiments_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_cx/experiments_connection_idempotency_policy.h" #include "google/cloud/dialogflow_cx/internal/experiments_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dialogflow_cx/flows_connection.cc b/google/cloud/dialogflow_cx/flows_connection.cc index d95ef688e4d9e..c90ee366e442d 100644 --- a/google/cloud/dialogflow_cx/flows_connection.cc +++ b/google/cloud/dialogflow_cx/flows_connection.cc @@ -71,6 +71,19 @@ future> FlowsConnection::TrainFlow( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr FlowsConnection::TrainFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::TrainFlowRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> FlowsConnection::TrainFlow( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr FlowsConnection::ValidateFlow( google::cloud::dialogflow::cx::v3::ValidateFlowRequest const&) { @@ -91,6 +104,21 @@ FlowsConnection::ImportFlow( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr FlowsConnection::ImportFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportFlowRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FlowsConnection::ImportFlow(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FlowsConnection::ExportFlow( google::cloud::dialogflow::cx::v3::ExportFlowRequest const&) { @@ -99,6 +127,21 @@ FlowsConnection::ExportFlow( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr FlowsConnection::ExportFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportFlowRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FlowsConnection::ExportFlow(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeFlowsConnection( std::string const& location, Options options) { internal::CheckExpectedOptions> TrainFlow( google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request); + virtual StatusOr TrainFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request); + + virtual future> TrainFlow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr ValidateFlow( google::cloud::dialogflow::cx::v3::ValidateFlowRequest const& request); @@ -215,10 +225,28 @@ class FlowsConnection { ImportFlow( google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request); + virtual StatusOr ImportFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request); + + virtual future< + StatusOr> + ImportFlow(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> ExportFlow( google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request); + + virtual StatusOr ExportFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request); + + virtual future< + StatusOr> + ExportFlow(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dialogflow_cx/generators_connection.h b/google/cloud/dialogflow_cx/generators_connection.h index 2384012e09c07..125fe61e6cc40 100644 --- a/google/cloud/dialogflow_cx/generators_connection.h +++ b/google/cloud/dialogflow_cx/generators_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_cx/generators_connection_idempotency_policy.h" #include "google/cloud/dialogflow_cx/internal/generators_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dialogflow_cx/intents_connection.cc b/google/cloud/dialogflow_cx/intents_connection.cc index c2b6109b1fa68..98763181290fd 100644 --- a/google/cloud/dialogflow_cx/intents_connection.cc +++ b/google/cloud/dialogflow_cx/intents_connection.cc @@ -77,6 +77,21 @@ IntentsConnection::ImportIntents( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr IntentsConnection::ImportIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportIntentsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +IntentsConnection::ImportIntents(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> IntentsConnection::ExportIntents( google::cloud::dialogflow::cx::v3::ExportIntentsRequest const&) { @@ -85,6 +100,21 @@ IntentsConnection::ExportIntents( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr IntentsConnection::ExportIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportIntentsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +IntentsConnection::ExportIntents(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeIntentsConnection( std::string const& location, Options options) { internal::CheckExpectedOptions ImportIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request); + + virtual future< + StatusOr> + ImportIntents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> ExportIntents( google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request); + + virtual StatusOr ExportIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request); + + virtual future< + StatusOr> + ExportIntents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dialogflow_cx/internal/agents_connection_impl.cc b/google/cloud/dialogflow_cx/internal/agents_connection_impl.cc index 1b34089bc6fdc..a0b56ecc10e73 100644 --- a/google/cloud/dialogflow_cx/internal/agents_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/agents_connection_impl.cc @@ -195,6 +195,58 @@ AgentsConnectionImpl::ExportAgent( polling_policy(*current), __func__); } +StatusOr AgentsConnectionImpl::ExportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportAgent(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::ExportAgentRequest const& + request) { + return stub_->ExportAgent(context, options, request); + }, + *current, request, __func__); +} + +future> +AgentsConnectionImpl::ExportAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ExportAgent", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::cx::v3::ExportAgentResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::cx::v3::ExportAgentResponse>, + polling_policy(*current), __func__); +} + future> AgentsConnectionImpl::RestoreAgent( google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -234,6 +286,56 @@ future> AgentsConnectionImpl::RestoreAgent( polling_policy(*current), __func__); } +StatusOr AgentsConnectionImpl::RestoreAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RestoreAgent(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& + request) { + return stub_->RestoreAgent(context, options, request); + }, + *current, request, __func__); +} + +future> AgentsConnectionImpl::RestoreAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RestoreAgent", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::protobuf::Struct>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::protobuf::Struct>, + polling_policy(*current), __func__); +} + StatusOr AgentsConnectionImpl::ValidateAgent( google::cloud::dialogflow::cx::v3::ValidateAgentRequest const& request) { diff --git a/google/cloud/dialogflow_cx/internal/agents_connection_impl.h b/google/cloud/dialogflow_cx/internal/agents_connection_impl.h index 989b045519495..15d4595623b06 100644 --- a/google/cloud/dialogflow_cx/internal/agents_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/agents_connection_impl.h @@ -74,10 +74,28 @@ class AgentsConnectionImpl : public dialogflow_cx::AgentsConnection { ExportAgent(google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request) override; + StatusOr ExportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request) + override; + + future> + ExportAgent(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RestoreAgent( google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request) override; + StatusOr RestoreAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request) + override; + + future> RestoreAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ValidateAgent(google::cloud::dialogflow::cx::v3::ValidateAgentRequest const& request) override; diff --git a/google/cloud/dialogflow_cx/internal/agents_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/agents_tracing_connection.cc index f319cd25f80dd..a860e5a28fe93 100644 --- a/google/cloud/dialogflow_cx/internal/agents_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/agents_tracing_connection.cc @@ -86,6 +86,29 @@ AgentsTracingConnection::ExportAgent( return internal::EndSpan(std::move(span), child_->ExportAgent(request)); } +StatusOr AgentsTracingConnection::ExportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_cx::AgentsConnection::ExportAgent"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportAgent(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AgentsTracingConnection::ExportAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_cx::AgentsConnection::ExportAgent"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportAgent(google::cloud::ExperimentalTag{}, operation)); +} + future> AgentsTracingConnection::RestoreAgent( google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request) { @@ -95,6 +118,29 @@ AgentsTracingConnection::RestoreAgent( return internal::EndSpan(std::move(span), child_->RestoreAgent(request)); } +StatusOr AgentsTracingConnection::RestoreAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_cx::AgentsConnection::RestoreAgent"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RestoreAgent(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AgentsTracingConnection::RestoreAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_cx::AgentsConnection::RestoreAgent"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RestoreAgent(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AgentsTracingConnection::ValidateAgent( google::cloud::dialogflow::cx::v3::ValidateAgentRequest const& request) { diff --git a/google/cloud/dialogflow_cx/internal/agents_tracing_connection.h b/google/cloud/dialogflow_cx/internal/agents_tracing_connection.h index 92e4da8f4cc83..39e23bd81d8b7 100644 --- a/google/cloud/dialogflow_cx/internal/agents_tracing_connection.h +++ b/google/cloud/dialogflow_cx/internal/agents_tracing_connection.h @@ -62,10 +62,28 @@ class AgentsTracingConnection : public dialogflow_cx::AgentsConnection { ExportAgent(google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request) override; + StatusOr ExportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request) + override; + + future> + ExportAgent(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RestoreAgent( google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request) override; + StatusOr RestoreAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request) + override; + + future> RestoreAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ValidateAgent(google::cloud::dialogflow::cx::v3::ValidateAgentRequest const& request) override; diff --git a/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.cc b/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.cc index b3e96595e17eb..b782ce71334d0 100644 --- a/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.cc @@ -199,6 +199,62 @@ EntityTypesConnectionImpl::ExportEntityTypes( polling_policy(*current), __func__); } +StatusOr +EntityTypesConnectionImpl::ExportEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportEntityTypes(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& + request) { + return stub_->ExportEntityTypes(context, options, request); + }, + *current, request, __func__); +} + +future> +EntityTypesConnectionImpl::ExportEntityTypes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ExportEntityTypes", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::cx::v3::ExportEntityTypesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::cx::v3::ExportEntityTypesResponse>, + polling_policy(*current), __func__); +} + future> EntityTypesConnectionImpl::ImportEntityTypes( google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& @@ -240,6 +296,62 @@ EntityTypesConnectionImpl::ImportEntityTypes( polling_policy(*current), __func__); } +StatusOr +EntityTypesConnectionImpl::ImportEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportEntityTypes(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& + request) { + return stub_->ImportEntityTypes(context, options, request); + }, + *current, request, __func__); +} + +future> +EntityTypesConnectionImpl::ImportEntityTypes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportEntityTypes", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::cx::v3::ImportEntityTypesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::cx::v3::ImportEntityTypesResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace dialogflow_cx_internal } // namespace cloud diff --git a/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.h b/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.h index 2169feb164b65..81f98f9a16879 100644 --- a/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.h @@ -76,11 +76,29 @@ class EntityTypesConnectionImpl : public dialogflow_cx::EntityTypesConnection { google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& request) override; + StatusOr ExportEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& + request) override; + + future> + ExportEntityTypes(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportEntityTypes( google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& request) override; + StatusOr ImportEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& + request) override; + + future> + ImportEntityTypes(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.cc index 60e853cd45ba3..0bb64749e1c2d 100644 --- a/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.cc @@ -90,6 +90,31 @@ EntityTypesTracingConnection::ExportEntityTypes( return internal::EndSpan(std::move(span), child_->ExportEntityTypes(request)); } +StatusOr +EntityTypesTracingConnection::ExportEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_cx::EntityTypesConnection::ExportEntityTypes"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportEntityTypes(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EntityTypesTracingConnection::ExportEntityTypes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_cx::EntityTypesConnection::ExportEntityTypes"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportEntityTypes(google::cloud::ExperimentalTag{}, operation)); +} + future> EntityTypesTracingConnection::ImportEntityTypes( google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& @@ -100,6 +125,31 @@ EntityTypesTracingConnection::ImportEntityTypes( return internal::EndSpan(std::move(span), child_->ImportEntityTypes(request)); } +StatusOr +EntityTypesTracingConnection::ImportEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_cx::EntityTypesConnection::ImportEntityTypes"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportEntityTypes(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EntityTypesTracingConnection::ImportEntityTypes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_cx::EntityTypesConnection::ImportEntityTypes"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportEntityTypes(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.h b/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.h index 95c0837757fc3..af79d75da9494 100644 --- a/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.h +++ b/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.h @@ -65,11 +65,29 @@ class EntityTypesTracingConnection google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& request) override; + StatusOr ExportEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& + request) override; + + future> + ExportEntityTypes(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportEntityTypes( google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& request) override; + StatusOr ImportEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& + request) override; + + future> + ImportEntityTypes(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/dialogflow_cx/internal/environments_connection_impl.cc b/google/cloud/dialogflow_cx/internal/environments_connection_impl.cc index b4072ef1c614a..5e53f84354edf 100644 --- a/google/cloud/dialogflow_cx/internal/environments_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/environments_connection_impl.cc @@ -154,6 +154,60 @@ EnvironmentsConnectionImpl::CreateEnvironment( polling_policy(*current), __func__); } +StatusOr +EnvironmentsConnectionImpl::CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateEnvironment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& + request) { + return stub_->CreateEnvironment(context, options, request); + }, + *current, request, __func__); +} + +future> +EnvironmentsConnectionImpl::CreateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateEnvironment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::cx::v3::Environment>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::cx::v3::Environment>, + polling_policy(*current), __func__); +} + future> EnvironmentsConnectionImpl::UpdateEnvironment( google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& @@ -195,6 +249,60 @@ EnvironmentsConnectionImpl::UpdateEnvironment( polling_policy(*current), __func__); } +StatusOr +EnvironmentsConnectionImpl::UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateEnvironment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& + request) { + return stub_->UpdateEnvironment(context, options, request); + }, + *current, request, __func__); +} + +future> +EnvironmentsConnectionImpl::UpdateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateEnvironment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::cx::v3::Environment>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::cx::v3::Environment>, + polling_policy(*current), __func__); +} + Status EnvironmentsConnectionImpl::DeleteEnvironment( google::cloud::dialogflow::cx::v3::DeleteEnvironmentRequest const& request) { @@ -289,6 +397,62 @@ EnvironmentsConnectionImpl::RunContinuousTest( polling_policy(*current), __func__); } +StatusOr +EnvironmentsConnectionImpl::RunContinuousTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RunContinuousTest(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& + request) { + return stub_->RunContinuousTest(context, options, request); + }, + *current, request, __func__); +} + +future> +EnvironmentsConnectionImpl::RunContinuousTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RunContinuousTest", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::cx::v3::RunContinuousTestResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::cx::v3::RunContinuousTestResponse>, + polling_policy(*current), __func__); +} + StreamRange EnvironmentsConnectionImpl::ListContinuousTestResults( google::cloud::dialogflow::cx::v3::ListContinuousTestResultsRequest @@ -366,6 +530,60 @@ EnvironmentsConnectionImpl::DeployFlow( polling_policy(*current), __func__); } +StatusOr EnvironmentsConnectionImpl::DeployFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeployFlow(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request) { + return stub_->DeployFlow(context, options, request); + }, + *current, request, __func__); +} + +future> +EnvironmentsConnectionImpl::DeployFlow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeployFlow", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::cx::v3::DeployFlowResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::cx::v3::DeployFlowResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace dialogflow_cx_internal } // namespace cloud diff --git a/google/cloud/dialogflow_cx/internal/environments_connection_impl.h b/google/cloud/dialogflow_cx/internal/environments_connection_impl.h index 89493037e7c19..75dcd0322cc2c 100644 --- a/google/cloud/dialogflow_cx/internal/environments_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/environments_connection_impl.h @@ -65,11 +65,29 @@ class EnvironmentsConnectionImpl google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& request) override; + StatusOr CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& + request) override; + + future> + CreateEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateEnvironment( google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& request) override; + StatusOr UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& + request) override; + + future> + UpdateEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteEnvironment( google::cloud::dialogflow::cx::v3::DeleteEnvironmentRequest const& request) override; @@ -84,6 +102,15 @@ class EnvironmentsConnectionImpl google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& request) override; + StatusOr RunContinuousTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& + request) override; + + future> + RunContinuousTest(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListContinuousTestResults( google::cloud::dialogflow::cx::v3::ListContinuousTestResultsRequest @@ -93,6 +120,15 @@ class EnvironmentsConnectionImpl DeployFlow(google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request) override; + StatusOr DeployFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request) + override; + + future> + DeployFlow(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/dialogflow_cx/internal/environments_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/environments_tracing_connection.cc index 1fd5bbaad6e05..ac5341bd34438 100644 --- a/google/cloud/dialogflow_cx/internal/environments_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/environments_tracing_connection.cc @@ -64,6 +64,31 @@ EnvironmentsTracingConnection::CreateEnvironment( return internal::EndSpan(std::move(span), child_->CreateEnvironment(request)); } +StatusOr +EnvironmentsTracingConnection::CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_cx::EnvironmentsConnection::CreateEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateEnvironment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EnvironmentsTracingConnection::CreateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_cx::EnvironmentsConnection::CreateEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateEnvironment(google::cloud::ExperimentalTag{}, operation)); +} + future> EnvironmentsTracingConnection::UpdateEnvironment( google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& @@ -74,6 +99,31 @@ EnvironmentsTracingConnection::UpdateEnvironment( return internal::EndSpan(std::move(span), child_->UpdateEnvironment(request)); } +StatusOr +EnvironmentsTracingConnection::UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_cx::EnvironmentsConnection::UpdateEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateEnvironment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EnvironmentsTracingConnection::UpdateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_cx::EnvironmentsConnection::UpdateEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateEnvironment(google::cloud::ExperimentalTag{}, operation)); +} + Status EnvironmentsTracingConnection::DeleteEnvironment( google::cloud::dialogflow::cx::v3::DeleteEnvironmentRequest const& request) { @@ -106,6 +156,31 @@ EnvironmentsTracingConnection::RunContinuousTest( return internal::EndSpan(std::move(span), child_->RunContinuousTest(request)); } +StatusOr +EnvironmentsTracingConnection::RunContinuousTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_cx::EnvironmentsConnection::RunContinuousTest"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RunContinuousTest(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EnvironmentsTracingConnection::RunContinuousTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_cx::EnvironmentsConnection::RunContinuousTest"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RunContinuousTest(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange EnvironmentsTracingConnection::ListContinuousTestResults( google::cloud::dialogflow::cx::v3::ListContinuousTestResultsRequest @@ -128,6 +203,30 @@ EnvironmentsTracingConnection::DeployFlow( return internal::EndSpan(std::move(span), child_->DeployFlow(request)); } +StatusOr +EnvironmentsTracingConnection::DeployFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_cx::EnvironmentsConnection::DeployFlow"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeployFlow(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EnvironmentsTracingConnection::DeployFlow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_cx::EnvironmentsConnection::DeployFlow"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeployFlow(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/dialogflow_cx/internal/environments_tracing_connection.h b/google/cloud/dialogflow_cx/internal/environments_tracing_connection.h index eceff78707962..62a901512d479 100644 --- a/google/cloud/dialogflow_cx/internal/environments_tracing_connection.h +++ b/google/cloud/dialogflow_cx/internal/environments_tracing_connection.h @@ -53,11 +53,29 @@ class EnvironmentsTracingConnection google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& request) override; + StatusOr CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& + request) override; + + future> + CreateEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateEnvironment( google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& request) override; + StatusOr UpdateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& + request) override; + + future> + UpdateEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteEnvironment( google::cloud::dialogflow::cx::v3::DeleteEnvironmentRequest const& request) override; @@ -72,6 +90,15 @@ class EnvironmentsTracingConnection google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& request) override; + StatusOr RunContinuousTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& + request) override; + + future> + RunContinuousTest(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListContinuousTestResults( google::cloud::dialogflow::cx::v3::ListContinuousTestResultsRequest @@ -81,6 +108,15 @@ class EnvironmentsTracingConnection DeployFlow(google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request) override; + StatusOr DeployFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request) + override; + + future> + DeployFlow(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/dialogflow_cx/internal/flows_connection_impl.cc b/google/cloud/dialogflow_cx/internal/flows_connection_impl.cc index 46cf013e6bb39..5e35e0e8982c7 100644 --- a/google/cloud/dialogflow_cx/internal/flows_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/flows_connection_impl.cc @@ -190,6 +190,56 @@ future> FlowsConnectionImpl::TrainFlow( polling_policy(*current), __func__); } +StatusOr FlowsConnectionImpl::TrainFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->TrainFlow(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request) { + return stub_->TrainFlow(context, options, request); + }, + *current, request, __func__); +} + +future> FlowsConnectionImpl::TrainFlow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to TrainFlow", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::protobuf::Struct>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::protobuf::Struct>, + polling_policy(*current), __func__); +} + StatusOr FlowsConnectionImpl::ValidateFlow( google::cloud::dialogflow::cx::v3::ValidateFlowRequest const& request) { @@ -260,6 +310,58 @@ FlowsConnectionImpl::ImportFlow( polling_policy(*current), __func__); } +StatusOr FlowsConnectionImpl::ImportFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportFlow(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request) { + return stub_->ImportFlow(context, options, request); + }, + *current, request, __func__); +} + +future> +FlowsConnectionImpl::ImportFlow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportFlow", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::cx::v3::ImportFlowResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::cx::v3::ImportFlowResponse>, + polling_policy(*current), __func__); +} + future> FlowsConnectionImpl::ExportFlow( google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request) { @@ -299,6 +401,58 @@ FlowsConnectionImpl::ExportFlow( polling_policy(*current), __func__); } +StatusOr FlowsConnectionImpl::ExportFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportFlow(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request) { + return stub_->ExportFlow(context, options, request); + }, + *current, request, __func__); +} + +future> +FlowsConnectionImpl::ExportFlow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ExportFlow", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::cx::v3::ExportFlowResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::cx::v3::ExportFlowResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace dialogflow_cx_internal } // namespace cloud diff --git a/google/cloud/dialogflow_cx/internal/flows_connection_impl.h b/google/cloud/dialogflow_cx/internal/flows_connection_impl.h index 27ba686031de8..49aa1f6ed6785 100644 --- a/google/cloud/dialogflow_cx/internal/flows_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/flows_connection_impl.h @@ -72,6 +72,15 @@ class FlowsConnectionImpl : public dialogflow_cx::FlowsConnection { google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request) override; + StatusOr TrainFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request) + override; + + future> TrainFlow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ValidateFlow(google::cloud::dialogflow::cx::v3::ValidateFlowRequest const& request) override; @@ -85,10 +94,28 @@ class FlowsConnectionImpl : public dialogflow_cx::FlowsConnection { ImportFlow(google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request) override; + StatusOr ImportFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request) + override; + + future> + ImportFlow(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportFlow(google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request) override; + StatusOr ExportFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request) + override; + + future> + ExportFlow(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/dialogflow_cx/internal/flows_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/flows_tracing_connection.cc index 10ae5f02d22a1..413a45003ff5b 100644 --- a/google/cloud/dialogflow_cx/internal/flows_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/flows_tracing_connection.cc @@ -81,6 +81,26 @@ future> FlowsTracingConnection::TrainFlow( return internal::EndSpan(std::move(span), child_->TrainFlow(request)); } +StatusOr FlowsTracingConnection::TrainFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request) { + auto span = internal::MakeSpan("dialogflow_cx::FlowsConnection::TrainFlow"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->TrainFlow(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> FlowsTracingConnection::TrainFlow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("dialogflow_cx::FlowsConnection::TrainFlow"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->TrainFlow(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr FlowsTracingConnection::ValidateFlow( google::cloud::dialogflow::cx::v3::ValidateFlowRequest const& request) { @@ -108,6 +128,27 @@ FlowsTracingConnection::ImportFlow( return internal::EndSpan(std::move(span), child_->ImportFlow(request)); } +StatusOr FlowsTracingConnection::ImportFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request) { + auto span = internal::MakeSpan("dialogflow_cx::FlowsConnection::ImportFlow"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportFlow(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FlowsTracingConnection::ImportFlow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("dialogflow_cx::FlowsConnection::ImportFlow"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportFlow(google::cloud::ExperimentalTag{}, operation)); +} + future> FlowsTracingConnection::ExportFlow( google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request) { @@ -116,6 +157,27 @@ FlowsTracingConnection::ExportFlow( return internal::EndSpan(std::move(span), child_->ExportFlow(request)); } +StatusOr FlowsTracingConnection::ExportFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request) { + auto span = internal::MakeSpan("dialogflow_cx::FlowsConnection::ExportFlow"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportFlow(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FlowsTracingConnection::ExportFlow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("dialogflow_cx::FlowsConnection::ExportFlow"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportFlow(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr MakeFlowsTracingConnection( diff --git a/google/cloud/dialogflow_cx/internal/flows_tracing_connection.h b/google/cloud/dialogflow_cx/internal/flows_tracing_connection.h index ecdeb5425037f..403d246a9d6dd 100644 --- a/google/cloud/dialogflow_cx/internal/flows_tracing_connection.h +++ b/google/cloud/dialogflow_cx/internal/flows_tracing_connection.h @@ -61,6 +61,15 @@ class FlowsTracingConnection : public dialogflow_cx::FlowsConnection { google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request) override; + StatusOr TrainFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request) + override; + + future> TrainFlow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ValidateFlow(google::cloud::dialogflow::cx::v3::ValidateFlowRequest const& request) override; @@ -74,10 +83,28 @@ class FlowsTracingConnection : public dialogflow_cx::FlowsConnection { ImportFlow(google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request) override; + StatusOr ImportFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request) + override; + + future> + ImportFlow(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportFlow(google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request) override; + StatusOr ExportFlow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request) + override; + + future> + ExportFlow(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/dialogflow_cx/internal/intents_connection_impl.cc b/google/cloud/dialogflow_cx/internal/intents_connection_impl.cc index 1a95fe058b477..04a0442e35b2b 100644 --- a/google/cloud/dialogflow_cx/internal/intents_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/intents_connection_impl.cc @@ -195,6 +195,60 @@ IntentsConnectionImpl::ImportIntents( polling_policy(*current), __func__); } +StatusOr IntentsConnectionImpl::ImportIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportIntents(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& + request) { + return stub_->ImportIntents(context, options, request); + }, + *current, request, __func__); +} + +future> +IntentsConnectionImpl::ImportIntents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportIntents", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::cx::v3::ImportIntentsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::cx::v3::ImportIntentsResponse>, + polling_policy(*current), __func__); +} + future> IntentsConnectionImpl::ExportIntents( google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request) { @@ -235,6 +289,60 @@ IntentsConnectionImpl::ExportIntents( polling_policy(*current), __func__); } +StatusOr IntentsConnectionImpl::ExportIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportIntents(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& + request) { + return stub_->ExportIntents(context, options, request); + }, + *current, request, __func__); +} + +future> +IntentsConnectionImpl::ExportIntents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ExportIntents", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::cx::v3::ExportIntentsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::cx::v3::ExportIntentsResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace dialogflow_cx_internal } // namespace cloud diff --git a/google/cloud/dialogflow_cx/internal/intents_connection_impl.h b/google/cloud/dialogflow_cx/internal/intents_connection_impl.h index c02b0d41c13bf..93e093a7c13fe 100644 --- a/google/cloud/dialogflow_cx/internal/intents_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/intents_connection_impl.h @@ -74,10 +74,28 @@ class IntentsConnectionImpl : public dialogflow_cx::IntentsConnection { ImportIntents(google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request) override; + StatusOr ImportIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request) + override; + + future> + ImportIntents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportIntents(google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request) override; + StatusOr ExportIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request) + override; + + future> + ExportIntents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/dialogflow_cx/internal/intents_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/intents_tracing_connection.cc index 2c9d0dea8ace0..ba3dab215afa5 100644 --- a/google/cloud/dialogflow_cx/internal/intents_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/intents_tracing_connection.cc @@ -88,6 +88,30 @@ IntentsTracingConnection::ImportIntents( return internal::EndSpan(std::move(span), child_->ImportIntents(request)); } +StatusOr +IntentsTracingConnection::ImportIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_cx::IntentsConnection::ImportIntents"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportIntents(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +IntentsTracingConnection::ImportIntents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_cx::IntentsConnection::ImportIntents"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportIntents(google::cloud::ExperimentalTag{}, operation)); +} + future> IntentsTracingConnection::ExportIntents( google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request) { @@ -97,6 +121,30 @@ IntentsTracingConnection::ExportIntents( return internal::EndSpan(std::move(span), child_->ExportIntents(request)); } +StatusOr +IntentsTracingConnection::ExportIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_cx::IntentsConnection::ExportIntents"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportIntents(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +IntentsTracingConnection::ExportIntents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_cx::IntentsConnection::ExportIntents"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportIntents(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr MakeIntentsTracingConnection( diff --git a/google/cloud/dialogflow_cx/internal/intents_tracing_connection.h b/google/cloud/dialogflow_cx/internal/intents_tracing_connection.h index b702b23634dbd..a5d05eb3e3bcf 100644 --- a/google/cloud/dialogflow_cx/internal/intents_tracing_connection.h +++ b/google/cloud/dialogflow_cx/internal/intents_tracing_connection.h @@ -62,10 +62,28 @@ class IntentsTracingConnection : public dialogflow_cx::IntentsConnection { ImportIntents(google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request) override; + StatusOr ImportIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request) + override; + + future> + ImportIntents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportIntents(google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request) override; + StatusOr ExportIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request) + override; + + future> + ExportIntents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.cc b/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.cc index 88de9304841a0..9ecc2a3026a90 100644 --- a/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.cc @@ -200,6 +200,60 @@ TestCasesConnectionImpl::RunTestCase( polling_policy(*current), __func__); } +StatusOr TestCasesConnectionImpl::RunTestCase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RunTestCase(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& + request) { + return stub_->RunTestCase(context, options, request); + }, + *current, request, __func__); +} + +future> +TestCasesConnectionImpl::RunTestCase( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RunTestCase", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::cx::v3::RunTestCaseResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::cx::v3::RunTestCaseResponse>, + polling_policy(*current), __func__); +} + future> TestCasesConnectionImpl::BatchRunTestCases( google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& @@ -241,6 +295,62 @@ TestCasesConnectionImpl::BatchRunTestCases( polling_policy(*current), __func__); } +StatusOr +TestCasesConnectionImpl::BatchRunTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchRunTestCases(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& + request) { + return stub_->BatchRunTestCases(context, options, request); + }, + *current, request, __func__); +} + +future> +TestCasesConnectionImpl::BatchRunTestCases( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to BatchRunTestCases", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::cx::v3::BatchRunTestCasesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::cx::v3::BatchRunTestCasesResponse>, + polling_policy(*current), __func__); +} + StatusOr TestCasesConnectionImpl::CalculateCoverage( google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const& @@ -297,6 +407,61 @@ TestCasesConnectionImpl::ImportTestCases( polling_policy(*current), __func__); } +StatusOr +TestCasesConnectionImpl::ImportTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportTestCases(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& + request) { + return stub_->ImportTestCases(context, options, request); + }, + *current, request, __func__); +} + +future> +TestCasesConnectionImpl::ImportTestCases( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportTestCases", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::cx::v3::ImportTestCasesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::cx::v3::ImportTestCasesResponse>, + polling_policy(*current), __func__); +} + future> TestCasesConnectionImpl::ExportTestCases( google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request) { @@ -337,6 +502,61 @@ TestCasesConnectionImpl::ExportTestCases( polling_policy(*current), __func__); } +StatusOr +TestCasesConnectionImpl::ExportTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportTestCases(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& + request) { + return stub_->ExportTestCases(context, options, request); + }, + *current, request, __func__); +} + +future> +TestCasesConnectionImpl::ExportTestCases( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ExportTestCases", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::cx::v3::ExportTestCasesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::cx::v3::ExportTestCasesResponse>, + polling_policy(*current), __func__); +} + StreamRange TestCasesConnectionImpl::ListTestCaseResults( google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest request) { diff --git a/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.h b/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.h index 679547aa64501..cf62ad7aa1153 100644 --- a/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.h @@ -74,11 +74,29 @@ class TestCasesConnectionImpl : public dialogflow_cx::TestCasesConnection { RunTestCase(google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request) override; + StatusOr RunTestCase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request) + override; + + future> + RunTestCase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchRunTestCases( google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& request) override; + StatusOr BatchRunTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& + request) override; + + future> + BatchRunTestCases(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CalculateCoverage( google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const& @@ -89,11 +107,29 @@ class TestCasesConnectionImpl : public dialogflow_cx::TestCasesConnection { google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request) override; + StatusOr ImportTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request) + override; + + future> + ImportTestCases(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportTestCases( google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request) override; + StatusOr ExportTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request) + override; + + future> + ExportTestCases(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTestCaseResults( google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest request) diff --git a/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.cc index 56047141bfb7f..191cc140de40f 100644 --- a/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.cc @@ -90,6 +90,30 @@ TestCasesTracingConnection::RunTestCase( return internal::EndSpan(std::move(span), child_->RunTestCase(request)); } +StatusOr +TestCasesTracingConnection::RunTestCase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_cx::TestCasesConnection::RunTestCase"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RunTestCase(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TestCasesTracingConnection::RunTestCase( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_cx::TestCasesConnection::RunTestCase"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RunTestCase(google::cloud::ExperimentalTag{}, operation)); +} + future> TestCasesTracingConnection::BatchRunTestCases( google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& @@ -100,6 +124,31 @@ TestCasesTracingConnection::BatchRunTestCases( return internal::EndSpan(std::move(span), child_->BatchRunTestCases(request)); } +StatusOr +TestCasesTracingConnection::BatchRunTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_cx::TestCasesConnection::BatchRunTestCases"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BatchRunTestCases(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TestCasesTracingConnection::BatchRunTestCases( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_cx::TestCasesConnection::BatchRunTestCases"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BatchRunTestCases(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TestCasesTracingConnection::CalculateCoverage( google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const& @@ -119,6 +168,30 @@ TestCasesTracingConnection::ImportTestCases( return internal::EndSpan(std::move(span), child_->ImportTestCases(request)); } +StatusOr +TestCasesTracingConnection::ImportTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_cx::TestCasesConnection::ImportTestCases"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportTestCases(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TestCasesTracingConnection::ImportTestCases( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_cx::TestCasesConnection::ImportTestCases"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportTestCases(google::cloud::ExperimentalTag{}, operation)); +} + future> TestCasesTracingConnection::ExportTestCases( google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request) { @@ -128,6 +201,30 @@ TestCasesTracingConnection::ExportTestCases( return internal::EndSpan(std::move(span), child_->ExportTestCases(request)); } +StatusOr +TestCasesTracingConnection::ExportTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_cx::TestCasesConnection::ExportTestCases"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportTestCases(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TestCasesTracingConnection::ExportTestCases( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_cx::TestCasesConnection::ExportTestCases"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportTestCases(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange TestCasesTracingConnection::ListTestCaseResults( google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest request) { diff --git a/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.h b/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.h index 78dc18f211bd2..4e02184f3d8d3 100644 --- a/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.h +++ b/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.h @@ -62,11 +62,29 @@ class TestCasesTracingConnection : public dialogflow_cx::TestCasesConnection { RunTestCase(google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request) override; + StatusOr RunTestCase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request) + override; + + future> + RunTestCase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchRunTestCases( google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& request) override; + StatusOr BatchRunTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& + request) override; + + future> + BatchRunTestCases(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CalculateCoverage( google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const& @@ -77,11 +95,29 @@ class TestCasesTracingConnection : public dialogflow_cx::TestCasesConnection { google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request) override; + StatusOr ImportTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request) + override; + + future> + ImportTestCases(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportTestCases( google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request) override; + StatusOr ExportTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request) + override; + + future> + ExportTestCases(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTestCaseResults( google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest request) diff --git a/google/cloud/dialogflow_cx/internal/versions_connection_impl.cc b/google/cloud/dialogflow_cx/internal/versions_connection_impl.cc index c7d92a2321bf5..756c3b50baec0 100644 --- a/google/cloud/dialogflow_cx/internal/versions_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/versions_connection_impl.cc @@ -152,6 +152,60 @@ VersionsConnectionImpl::CreateVersion( polling_policy(*current), __func__); } +StatusOr VersionsConnectionImpl::CreateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateVersion(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::CreateVersionRequest const& + request) { + return stub_->CreateVersion(context, options, request); + }, + *current, request, __func__); +} + +future> +VersionsConnectionImpl::CreateVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateVersion", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::cx::v3::Version>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::cx::v3::Version>, + polling_policy(*current), __func__); +} + StatusOr VersionsConnectionImpl::UpdateVersion( google::cloud::dialogflow::cx::v3::UpdateVersionRequest const& request) { @@ -220,6 +274,56 @@ future> VersionsConnectionImpl::LoadVersion( polling_policy(*current), __func__); } +StatusOr VersionsConnectionImpl::LoadVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->LoadVersion(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::cx::v3::LoadVersionRequest const& + request) { + return stub_->LoadVersion(context, options, request); + }, + *current, request, __func__); +} + +future> VersionsConnectionImpl::LoadVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to LoadVersion", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::protobuf::Struct>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::protobuf::Struct>, + polling_policy(*current), __func__); +} + StatusOr VersionsConnectionImpl::CompareVersions( google::cloud::dialogflow::cx::v3::CompareVersionsRequest const& request) { diff --git a/google/cloud/dialogflow_cx/internal/versions_connection_impl.h b/google/cloud/dialogflow_cx/internal/versions_connection_impl.h index 54be3c14c7bee..dedc874b5db53 100644 --- a/google/cloud/dialogflow_cx/internal/versions_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/versions_connection_impl.h @@ -62,6 +62,15 @@ class VersionsConnectionImpl : public dialogflow_cx::VersionsConnection { google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request) override; + StatusOr CreateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request) + override; + + future> CreateVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateVersion( google::cloud::dialogflow::cx::v3::UpdateVersionRequest const& request) override; @@ -74,6 +83,15 @@ class VersionsConnectionImpl : public dialogflow_cx::VersionsConnection { google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request) override; + StatusOr LoadVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request) + override; + + future> LoadVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CompareVersions( google::cloud::dialogflow::cx::v3::CompareVersionsRequest const& request) diff --git a/google/cloud/dialogflow_cx/internal/versions_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/versions_tracing_connection.cc index 66404dcc90bfb..e16b4ccd423bb 100644 --- a/google/cloud/dialogflow_cx/internal/versions_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/versions_tracing_connection.cc @@ -63,6 +63,30 @@ VersionsTracingConnection::CreateVersion( return internal::EndSpan(std::move(span), child_->CreateVersion(request)); } +StatusOr +VersionsTracingConnection::CreateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_cx::VersionsConnection::CreateVersion"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateVersion(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VersionsTracingConnection::CreateVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_cx::VersionsConnection::CreateVersion"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateVersion(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr VersionsTracingConnection::UpdateVersion( google::cloud::dialogflow::cx::v3::UpdateVersionRequest const& request) { @@ -89,6 +113,29 @@ VersionsTracingConnection::LoadVersion( return internal::EndSpan(std::move(span), child_->LoadVersion(request)); } +StatusOr VersionsTracingConnection::LoadVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_cx::VersionsConnection::LoadVersion"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->LoadVersion(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VersionsTracingConnection::LoadVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_cx::VersionsConnection::LoadVersion"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->LoadVersion(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr VersionsTracingConnection::CompareVersions( google::cloud::dialogflow::cx::v3::CompareVersionsRequest const& request) { diff --git a/google/cloud/dialogflow_cx/internal/versions_tracing_connection.h b/google/cloud/dialogflow_cx/internal/versions_tracing_connection.h index 1a15d78f641e4..192ed00b8803a 100644 --- a/google/cloud/dialogflow_cx/internal/versions_tracing_connection.h +++ b/google/cloud/dialogflow_cx/internal/versions_tracing_connection.h @@ -50,6 +50,15 @@ class VersionsTracingConnection : public dialogflow_cx::VersionsConnection { google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request) override; + StatusOr CreateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request) + override; + + future> CreateVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateVersion( google::cloud::dialogflow::cx::v3::UpdateVersionRequest const& request) override; @@ -62,6 +71,15 @@ class VersionsTracingConnection : public dialogflow_cx::VersionsConnection { google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request) override; + StatusOr LoadVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request) + override; + + future> LoadVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CompareVersions( google::cloud::dialogflow::cx::v3::CompareVersionsRequest const& request) diff --git a/google/cloud/dialogflow_cx/mocks/mock_agents_connection.h b/google/cloud/dialogflow_cx/mocks/mock_agents_connection.h index 734ec0139b0b5..8deab9ed8b5f8 100644 --- a/google/cloud/dialogflow_cx/mocks/mock_agents_connection.h +++ b/google/cloud/dialogflow_cx/mocks/mock_agents_connection.h @@ -77,11 +77,35 @@ class MockAgentsConnection : public dialogflow_cx::AgentsConnection { (google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ExportAgent, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ExportAgent, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RestoreAgent, (google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RestoreAgent, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request), + (override)); + + MOCK_METHOD(future>, RestoreAgent, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, ValidateAgent, diff --git a/google/cloud/dialogflow_cx/mocks/mock_entity_types_connection.h b/google/cloud/dialogflow_cx/mocks/mock_entity_types_connection.h index 64fda64596aa0..4b016023ce7cf 100644 --- a/google/cloud/dialogflow_cx/mocks/mock_entity_types_connection.h +++ b/google/cloud/dialogflow_cx/mocks/mock_entity_types_connection.h @@ -82,6 +82,21 @@ class MockEntityTypesConnection : public dialogflow_cx::EntityTypesConnection { request), (override)); + MOCK_METHOD( + StatusOr, ExportEntityTypes, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + ExportEntityTypes, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -89,6 +104,21 @@ class MockEntityTypesConnection : public dialogflow_cx::EntityTypesConnection { (google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, ImportEntityTypes, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + ImportEntityTypes, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/dialogflow_cx/mocks/mock_environments_connection.h b/google/cloud/dialogflow_cx/mocks/mock_environments_connection.h index 8d4df7b1fdb25..6d7788fabc7f1 100644 --- a/google/cloud/dialogflow_cx/mocks/mock_environments_connection.h +++ b/google/cloud/dialogflow_cx/mocks/mock_environments_connection.h @@ -65,6 +65,19 @@ class MockEnvironmentsConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateEnvironment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateEnvironment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateEnvironment, @@ -72,6 +85,19 @@ class MockEnvironmentsConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateEnvironment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateEnvironment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( Status, DeleteEnvironment, (google::cloud::dialogflow::cx::v3::DeleteEnvironmentRequest const& @@ -93,6 +119,21 @@ class MockEnvironmentsConnection request), (override)); + MOCK_METHOD( + StatusOr, RunContinuousTest, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + RunContinuousTest, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListContinuousTestResults, @@ -105,6 +146,19 @@ class MockEnvironmentsConnection DeployFlow, (google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeployFlow, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeployFlow, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/dialogflow_cx/mocks/mock_flows_connection.h b/google/cloud/dialogflow_cx/mocks/mock_flows_connection.h index 383bb495cbf9e..f4b5e4f860287 100644 --- a/google/cloud/dialogflow_cx/mocks/mock_flows_connection.h +++ b/google/cloud/dialogflow_cx/mocks/mock_flows_connection.h @@ -75,6 +75,17 @@ class MockFlowsConnection : public dialogflow_cx::FlowsConnection { (google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request), (override)); + MOCK_METHOD( + StatusOr, TrainFlow, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request), + (override)); + + MOCK_METHOD(future>, TrainFlow, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, ValidateFlow, @@ -94,11 +105,37 @@ class MockFlowsConnection : public dialogflow_cx::FlowsConnection { (google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ImportFlow, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ImportFlow, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ExportFlow, (google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, ExportFlow, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ExportFlow, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/dialogflow_cx/mocks/mock_intents_connection.h b/google/cloud/dialogflow_cx/mocks/mock_intents_connection.h index ff9c9296f6ad1..c5b80e094fa21 100644 --- a/google/cloud/dialogflow_cx/mocks/mock_intents_connection.h +++ b/google/cloud/dialogflow_cx/mocks/mock_intents_connection.h @@ -78,12 +78,40 @@ class MockIntentsConnection : public dialogflow_cx::IntentsConnection { (google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ImportIntents, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + ImportIntents, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, ExportIntents, (google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, ExportIntents, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + ExportIntents, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/dialogflow_cx/mocks/mock_test_cases_connection.h b/google/cloud/dialogflow_cx/mocks/mock_test_cases_connection.h index 58daf86975d29..5bb6f6c09f133 100644 --- a/google/cloud/dialogflow_cx/mocks/mock_test_cases_connection.h +++ b/google/cloud/dialogflow_cx/mocks/mock_test_cases_connection.h @@ -78,6 +78,19 @@ class MockTestCasesConnection : public dialogflow_cx::TestCasesConnection { (google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RunTestCase, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request), + (override)); + + MOCK_METHOD( + future>, + RunTestCase, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -86,6 +99,21 @@ class MockTestCasesConnection : public dialogflow_cx::TestCasesConnection { request), (override)); + MOCK_METHOD( + StatusOr, BatchRunTestCases, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + BatchRunTestCases, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CalculateCoverage, @@ -101,6 +129,20 @@ class MockTestCasesConnection : public dialogflow_cx::TestCasesConnection { request), (override)); + MOCK_METHOD(StatusOr, ImportTestCases, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + ImportTestCases, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -109,6 +151,20 @@ class MockTestCasesConnection : public dialogflow_cx::TestCasesConnection { request), (override)); + MOCK_METHOD(StatusOr, ExportTestCases, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + ExportTestCases, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListTestCaseResults, diff --git a/google/cloud/dialogflow_cx/mocks/mock_versions_connection.h b/google/cloud/dialogflow_cx/mocks/mock_versions_connection.h index 4ebc93f460bf1..84fbc7e10ff70 100644 --- a/google/cloud/dialogflow_cx/mocks/mock_versions_connection.h +++ b/google/cloud/dialogflow_cx/mocks/mock_versions_connection.h @@ -62,6 +62,18 @@ class MockVersionsConnection : public dialogflow_cx::VersionsConnection { (google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateVersion, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateVersion, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, UpdateVersion, (google::cloud::dialogflow::cx::v3::UpdateVersionRequest const& request), @@ -77,6 +89,17 @@ class MockVersionsConnection : public dialogflow_cx::VersionsConnection { (google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, LoadVersion, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request), + (override)); + + MOCK_METHOD(future>, LoadVersion, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CompareVersions, diff --git a/google/cloud/dialogflow_cx/pages_connection.h b/google/cloud/dialogflow_cx/pages_connection.h index eaa72ef1aa03f..8b2f6454ac161 100644 --- a/google/cloud/dialogflow_cx/pages_connection.h +++ b/google/cloud/dialogflow_cx/pages_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_cx/internal/pages_retry_traits.h" #include "google/cloud/dialogflow_cx/pages_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dialogflow_cx/security_settings_connection.h b/google/cloud/dialogflow_cx/security_settings_connection.h index 283e05e7874d0..15ae1f4e1767c 100644 --- a/google/cloud/dialogflow_cx/security_settings_connection.h +++ b/google/cloud/dialogflow_cx/security_settings_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_cx/internal/security_settings_retry_traits.h" #include "google/cloud/dialogflow_cx/security_settings_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dialogflow_cx/session_entity_types_connection.h b/google/cloud/dialogflow_cx/session_entity_types_connection.h index 352c04b3a2dc4..25688e67efa95 100644 --- a/google/cloud/dialogflow_cx/session_entity_types_connection.h +++ b/google/cloud/dialogflow_cx/session_entity_types_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_cx/internal/session_entity_types_retry_traits.h" #include "google/cloud/dialogflow_cx/session_entity_types_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dialogflow_cx/sessions_connection.h b/google/cloud/dialogflow_cx/sessions_connection.h index 63f01e44cd0ed..27c0b52b95247 100644 --- a/google/cloud/dialogflow_cx/sessions_connection.h +++ b/google/cloud/dialogflow_cx/sessions_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_cx/internal/sessions_retry_traits.h" #include "google/cloud/dialogflow_cx/sessions_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/async_read_write_stream_impl.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" diff --git a/google/cloud/dialogflow_cx/test_cases_connection.cc b/google/cloud/dialogflow_cx/test_cases_connection.cc index e177249263b0d..d4354775e506e 100644 --- a/google/cloud/dialogflow_cx/test_cases_connection.cc +++ b/google/cloud/dialogflow_cx/test_cases_connection.cc @@ -77,6 +77,21 @@ TestCasesConnection::RunTestCase( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TestCasesConnection::RunTestCase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RunTestCaseRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TestCasesConnection::RunTestCase(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TestCasesConnection::BatchRunTestCases( google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const&) { @@ -85,6 +100,21 @@ TestCasesConnection::BatchRunTestCases( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TestCasesConnection::BatchRunTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TestCasesConnection::BatchRunTestCases(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TestCasesConnection::CalculateCoverage( google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const&) { @@ -99,6 +129,21 @@ TestCasesConnection::ImportTestCases( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TestCasesConnection::ImportTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TestCasesConnection::ImportTestCases(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TestCasesConnection::ExportTestCases( google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const&) { @@ -107,6 +152,21 @@ TestCasesConnection::ExportTestCases( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TestCasesConnection::ExportTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TestCasesConnection::ExportTestCases(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange TestCasesConnection::ListTestCaseResults( google::cloud::dialogflow::cx::v3:: diff --git a/google/cloud/dialogflow_cx/test_cases_connection.h b/google/cloud/dialogflow_cx/test_cases_connection.h index 753e92275090c..c387a2773781a 100644 --- a/google/cloud/dialogflow_cx/test_cases_connection.h +++ b/google/cloud/dialogflow_cx/test_cases_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_cx/internal/test_cases_retry_traits.h" #include "google/cloud/dialogflow_cx/test_cases_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -207,12 +209,31 @@ class TestCasesConnection { RunTestCase( google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request); + virtual StatusOr RunTestCase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request); + + virtual future< + StatusOr> + RunTestCase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> BatchRunTestCases( google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& request); + virtual StatusOr BatchRunTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& + request); + + virtual future< + StatusOr> + BatchRunTestCases(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CalculateCoverage( google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const& @@ -223,11 +244,29 @@ class TestCasesConnection { ImportTestCases( google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request); + virtual StatusOr ImportTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request); + + virtual future< + StatusOr> + ImportTestCases(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> ExportTestCases( google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request); + virtual StatusOr ExportTestCases( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request); + + virtual future< + StatusOr> + ExportTestCases(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListTestCaseResults( google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest request); diff --git a/google/cloud/dialogflow_cx/transition_route_groups_connection.h b/google/cloud/dialogflow_cx/transition_route_groups_connection.h index bf86c676c35c5..a35eb321a9156 100644 --- a/google/cloud/dialogflow_cx/transition_route_groups_connection.h +++ b/google/cloud/dialogflow_cx/transition_route_groups_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_cx/internal/transition_route_groups_retry_traits.h" #include "google/cloud/dialogflow_cx/transition_route_groups_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dialogflow_cx/versions_connection.cc b/google/cloud/dialogflow_cx/versions_connection.cc index 646e145ccbb54..4e52b6895ee8a 100644 --- a/google/cloud/dialogflow_cx/versions_connection.cc +++ b/google/cloud/dialogflow_cx/versions_connection.cc @@ -60,6 +60,21 @@ VersionsConnection::CreateVersion( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VersionsConnection::CreateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::CreateVersionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VersionsConnection::CreateVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr VersionsConnection::UpdateVersion( google::cloud::dialogflow::cx::v3::UpdateVersionRequest const&) { @@ -77,6 +92,19 @@ future> VersionsConnection::LoadVersion( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VersionsConnection::LoadVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::LoadVersionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> VersionsConnection::LoadVersion( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr VersionsConnection::CompareVersions( google::cloud::dialogflow::cx::v3::CompareVersionsRequest const&) { diff --git a/google/cloud/dialogflow_cx/versions_connection.h b/google/cloud/dialogflow_cx/versions_connection.h index 5332971451d66..6a4d246bc0f38 100644 --- a/google/cloud/dialogflow_cx/versions_connection.h +++ b/google/cloud/dialogflow_cx/versions_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_cx/internal/versions_retry_traits.h" #include "google/cloud/dialogflow_cx/versions_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -194,6 +196,14 @@ class VersionsConnection { CreateVersion( google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request); + virtual StatusOr CreateVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request); + + virtual future> + CreateVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr UpdateVersion( google::cloud::dialogflow::cx::v3::UpdateVersionRequest const& request); @@ -203,6 +213,14 @@ class VersionsConnection { virtual future> LoadVersion( google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request); + virtual StatusOr LoadVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request); + + virtual future> LoadVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CompareVersions( google::cloud::dialogflow::cx::v3::CompareVersionsRequest const& request); diff --git a/google/cloud/dialogflow_cx/webhooks_connection.h b/google/cloud/dialogflow_cx/webhooks_connection.h index c02f7da6c323a..75159ff74d7b4 100644 --- a/google/cloud/dialogflow_cx/webhooks_connection.h +++ b/google/cloud/dialogflow_cx/webhooks_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_cx/internal/webhooks_retry_traits.h" #include "google/cloud/dialogflow_cx/webhooks_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dialogflow_es/agents_connection.cc b/google/cloud/dialogflow_es/agents_connection.cc index aae2dae19903f..3826e021484d0 100644 --- a/google/cloud/dialogflow_es/agents_connection.cc +++ b/google/cloud/dialogflow_es/agents_connection.cc @@ -67,6 +67,19 @@ future> AgentsConnection::TrainAgent( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AgentsConnection::TrainAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::TrainAgentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> AgentsConnection::TrainAgent( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AgentsConnection::ExportAgent( google::cloud::dialogflow::v2::ExportAgentRequest const&) { @@ -75,18 +88,59 @@ AgentsConnection::ExportAgent( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AgentsConnection::ExportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ExportAgentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AgentsConnection::ExportAgent(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AgentsConnection::ImportAgent( google::cloud::dialogflow::v2::ImportAgentRequest const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AgentsConnection::ImportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportAgentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> AgentsConnection::ImportAgent( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AgentsConnection::RestoreAgent( google::cloud::dialogflow::v2::RestoreAgentRequest const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AgentsConnection::RestoreAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::RestoreAgentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> AgentsConnection::RestoreAgent( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AgentsConnection::GetValidationResult( google::cloud::dialogflow::v2::GetValidationResultRequest const&) { diff --git a/google/cloud/dialogflow_es/agents_connection.h b/google/cloud/dialogflow_es/agents_connection.h index a2694532f5bf8..95526c52e3b8e 100644 --- a/google/cloud/dialogflow_es/agents_connection.h +++ b/google/cloud/dialogflow_es/agents_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_es/agents_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/agents_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -198,15 +200,47 @@ class AgentsConnection { virtual future> TrainAgent( google::cloud::dialogflow::v2::TrainAgentRequest const& request); + virtual StatusOr TrainAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::TrainAgentRequest const& request); + + virtual future> TrainAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ExportAgent(google::cloud::dialogflow::v2::ExportAgentRequest const& request); + virtual StatusOr ExportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ExportAgentRequest const& request); + + virtual future> + ExportAgent(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ImportAgent( google::cloud::dialogflow::v2::ImportAgentRequest const& request); + virtual StatusOr ImportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportAgentRequest const& request); + + virtual future> ImportAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RestoreAgent( google::cloud::dialogflow::v2::RestoreAgentRequest const& request); + virtual StatusOr RestoreAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::RestoreAgentRequest const& request); + + virtual future> RestoreAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetValidationResult( google::cloud::dialogflow::v2::GetValidationResultRequest const& request); diff --git a/google/cloud/dialogflow_es/answer_records_connection.h b/google/cloud/dialogflow_es/answer_records_connection.h index b7eeccdb48a09..e8a0c94b2d22c 100644 --- a/google/cloud/dialogflow_es/answer_records_connection.h +++ b/google/cloud/dialogflow_es/answer_records_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_es/answer_records_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/answer_records_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dialogflow_es/contexts_connection.h b/google/cloud/dialogflow_es/contexts_connection.h index bac57adb46b87..fe0a3ed14e357 100644 --- a/google/cloud/dialogflow_es/contexts_connection.h +++ b/google/cloud/dialogflow_es/contexts_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_es/contexts_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/contexts_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dialogflow_es/conversation_datasets_connection.cc b/google/cloud/dialogflow_es/conversation_datasets_connection.cc index 1b116a8517889..7dfff38faf541 100644 --- a/google/cloud/dialogflow_es/conversation_datasets_connection.cc +++ b/google/cloud/dialogflow_es/conversation_datasets_connection.cc @@ -46,6 +46,22 @@ ConversationDatasetsConnection::CreateConversationDataset( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ConversationDatasetsConnection::CreateConversationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateConversationDatasetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConversationDatasetsConnection::CreateConversationDataset( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ConversationDatasetsConnection::GetConversationDataset( google::cloud::dialogflow::v2::GetConversationDatasetRequest const&) { @@ -70,6 +86,24 @@ ConversationDatasetsConnection::DeleteConversationDataset( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ConversationDatasetsConnection::DeleteConversationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConversationDatasetsConnection::DeleteConversationDataset( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ConversationDatasetsConnection::ImportConversationData( @@ -79,6 +113,23 @@ ConversationDatasetsConnection::ImportConversationData( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ConversationDatasetsConnection::ImportConversationData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportConversationDataRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConversationDatasetsConnection::ImportConversationData( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeConversationDatasetsConnection(std::string const& location, Options options) { diff --git a/google/cloud/dialogflow_es/conversation_datasets_connection.h b/google/cloud/dialogflow_es/conversation_datasets_connection.h index b05623fc4a246..ce4753650eef7 100644 --- a/google/cloud/dialogflow_es/conversation_datasets_connection.h +++ b/google/cloud/dialogflow_es/conversation_datasets_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_es/conversation_datasets_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/conversation_datasets_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -195,6 +197,15 @@ class ConversationDatasetsConnection { google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& request); + virtual StatusOr CreateConversationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& + request); + + virtual future> + CreateConversationDataset(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetConversationDataset( google::cloud::dialogflow::v2::GetConversationDatasetRequest const& @@ -210,11 +221,31 @@ class ConversationDatasetsConnection { google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& request); + virtual StatusOr DeleteConversationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& + request); + + virtual future> + DeleteConversationDataset(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ImportConversationData( google::cloud::dialogflow::v2::ImportConversationDataRequest const& request); + + virtual StatusOr ImportConversationData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportConversationDataRequest const& + request); + + virtual future> + ImportConversationData(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dialogflow_es/conversation_models_connection.cc b/google/cloud/dialogflow_es/conversation_models_connection.cc index cdfb16facdd8f..7b24357644648 100644 --- a/google/cloud/dialogflow_es/conversation_models_connection.cc +++ b/google/cloud/dialogflow_es/conversation_models_connection.cc @@ -46,6 +46,22 @@ ConversationModelsConnection::CreateConversationModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ConversationModelsConnection::CreateConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateConversationModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConversationModelsConnection::CreateConversationModel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ConversationModelsConnection::GetConversationModel( google::cloud::dialogflow::v2::GetConversationModelRequest const&) { @@ -69,6 +85,23 @@ ConversationModelsConnection::DeleteConversationModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ConversationModelsConnection::DeleteConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteConversationModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConversationModelsConnection::DeleteConversationModel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ConversationModelsConnection::DeployConversationModel( @@ -78,6 +111,23 @@ ConversationModelsConnection::DeployConversationModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ConversationModelsConnection::DeployConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeployConversationModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConversationModelsConnection::DeployConversationModel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ConversationModelsConnection::UndeployConversationModel( @@ -88,6 +138,24 @@ ConversationModelsConnection::UndeployConversationModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ConversationModelsConnection::UndeployConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::UndeployConversationModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConversationModelsConnection::UndeployConversationModel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ConversationModelsConnection::GetConversationModelEvaluation( google::cloud::dialogflow::v2:: @@ -112,6 +180,23 @@ ConversationModelsConnection::CreateConversationModelEvaluation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ConversationModelsConnection::CreateConversationModelEvaluation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2:: + CreateConversationModelEvaluationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConversationModelsConnection::CreateConversationModelEvaluation( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeConversationModelsConnection( std::string const& location, Options options) { internal::CheckExpectedOptions CreateConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateConversationModelRequest const& + request); + + virtual future> + CreateConversationModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetConversationModel( google::cloud::dialogflow::v2::GetConversationModelRequest const& @@ -209,18 +220,48 @@ class ConversationModelsConnection { google::cloud::dialogflow::v2::DeleteConversationModelRequest const& request); + virtual StatusOr DeleteConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteConversationModelRequest const& + request); + + virtual future> + DeleteConversationModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeployConversationModel( google::cloud::dialogflow::v2::DeployConversationModelRequest const& request); + virtual StatusOr DeployConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeployConversationModelRequest const& + request); + + virtual future> + DeployConversationModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UndeployConversationModel( google::cloud::dialogflow::v2::UndeployConversationModelRequest const& request); + virtual StatusOr UndeployConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::UndeployConversationModelRequest const& + request); + + virtual future> + UndeployConversationModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetConversationModelEvaluation( google::cloud::dialogflow::v2:: @@ -237,6 +278,18 @@ class ConversationModelsConnection { CreateConversationModelEvaluation( google::cloud::dialogflow::v2:: CreateConversationModelEvaluationRequest const& request); + + virtual StatusOr + CreateConversationModelEvaluation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2:: + CreateConversationModelEvaluationRequest const& request); + + virtual future< + StatusOr> + CreateConversationModelEvaluation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dialogflow_es/conversation_profiles_connection.cc b/google/cloud/dialogflow_es/conversation_profiles_connection.cc index 9cae5fb568921..663180eb60c10 100644 --- a/google/cloud/dialogflow_es/conversation_profiles_connection.cc +++ b/google/cloud/dialogflow_es/conversation_profiles_connection.cc @@ -77,6 +77,22 @@ ConversationProfilesConnection::SetSuggestionFeatureConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ConversationProfilesConnection::SetSuggestionFeatureConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConversationProfilesConnection::SetSuggestionFeatureConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ConversationProfilesConnection::ClearSuggestionFeatureConfig( google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const&) { @@ -85,6 +101,22 @@ ConversationProfilesConnection::ClearSuggestionFeatureConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ConversationProfilesConnection::ClearSuggestionFeatureConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConversationProfilesConnection::ClearSuggestionFeatureConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeConversationProfilesConnection(std::string const& location, Options options) { diff --git a/google/cloud/dialogflow_es/conversation_profiles_connection.h b/google/cloud/dialogflow_es/conversation_profiles_connection.h index 3d42e57bd4ddb..6d95a438e7dc7 100644 --- a/google/cloud/dialogflow_es/conversation_profiles_connection.h +++ b/google/cloud/dialogflow_es/conversation_profiles_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_es/conversation_profiles_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/conversation_profiles_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -218,10 +220,28 @@ class ConversationProfilesConnection { google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& request); + virtual StatusOr SetSuggestionFeatureConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& + request); + + virtual future> + SetSuggestionFeatureConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ClearSuggestionFeatureConfig( google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& request); + + virtual StatusOr ClearSuggestionFeatureConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& + request); + + virtual future> + ClearSuggestionFeatureConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dialogflow_es/conversations_connection.h b/google/cloud/dialogflow_es/conversations_connection.h index a43e839082c13..479385053f521 100644 --- a/google/cloud/dialogflow_es/conversations_connection.h +++ b/google/cloud/dialogflow_es/conversations_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_es/conversations_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/conversations_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dialogflow_es/documents_connection.cc b/google/cloud/dialogflow_es/documents_connection.cc index f84c0728b9c9d..3c073a858764c 100644 --- a/google/cloud/dialogflow_es/documents_connection.cc +++ b/google/cloud/dialogflow_es/documents_connection.cc @@ -60,6 +60,21 @@ DocumentsConnection::CreateDocument( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DocumentsConnection::CreateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateDocumentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DocumentsConnection::CreateDocument(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DocumentsConnection::ImportDocuments( google::cloud::dialogflow::v2::ImportDocumentsRequest const&) { @@ -68,6 +83,21 @@ DocumentsConnection::ImportDocuments( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DocumentsConnection::ImportDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportDocumentsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DocumentsConnection::ImportDocuments(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DocumentsConnection::DeleteDocument( google::cloud::dialogflow::v2::DeleteDocumentRequest const&) { @@ -76,6 +106,21 @@ DocumentsConnection::DeleteDocument( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DocumentsConnection::DeleteDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteDocumentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DocumentsConnection::DeleteDocument(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DocumentsConnection::UpdateDocument( google::cloud::dialogflow::v2::UpdateDocumentRequest const&) { @@ -84,6 +129,21 @@ DocumentsConnection::UpdateDocument( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DocumentsConnection::UpdateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::UpdateDocumentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DocumentsConnection::UpdateDocument(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DocumentsConnection::ReloadDocument( google::cloud::dialogflow::v2::ReloadDocumentRequest const&) { @@ -92,6 +152,21 @@ DocumentsConnection::ReloadDocument( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DocumentsConnection::ReloadDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ReloadDocumentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DocumentsConnection::ReloadDocument(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DocumentsConnection::ExportDocument( google::cloud::dialogflow::v2::ExportDocumentRequest const&) { @@ -100,6 +175,21 @@ DocumentsConnection::ExportDocument( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DocumentsConnection::ExportDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ExportDocumentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DocumentsConnection::ExportDocument(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeDocumentsConnection( std::string const& location, Options options) { internal::CheckExpectedOptions CreateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateDocumentRequest const& request); + + virtual future> + CreateDocument(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> ImportDocuments( google::cloud::dialogflow::v2::ImportDocumentsRequest const& request); + virtual StatusOr ImportDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportDocumentsRequest const& request); + + virtual future< + StatusOr> + ImportDocuments(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteDocument( google::cloud::dialogflow::v2::DeleteDocumentRequest const& request); + virtual StatusOr DeleteDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteDocumentRequest const& request); + + virtual future< + StatusOr> + DeleteDocument(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateDocument( google::cloud::dialogflow::v2::UpdateDocumentRequest const& request); + virtual StatusOr UpdateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::UpdateDocumentRequest const& request); + + virtual future> + UpdateDocument(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ReloadDocument( google::cloud::dialogflow::v2::ReloadDocumentRequest const& request); + virtual StatusOr ReloadDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ReloadDocumentRequest const& request); + + virtual future> + ReloadDocument(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ExportDocument( google::cloud::dialogflow::v2::ExportDocumentRequest const& request); + + virtual StatusOr ExportDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ExportDocumentRequest const& request); + + virtual future> + ExportDocument(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dialogflow_es/entity_types_connection.cc b/google/cloud/dialogflow_es/entity_types_connection.cc index b2f442900a9b2..b1bc324930573 100644 --- a/google/cloud/dialogflow_es/entity_types_connection.cc +++ b/google/cloud/dialogflow_es/entity_types_connection.cc @@ -77,6 +77,22 @@ EntityTypesConnection::BatchUpdateEntityTypes( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EntityTypesConnection::BatchUpdateEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EntityTypesConnection::BatchUpdateEntityTypes( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EntityTypesConnection::BatchDeleteEntityTypes( google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const&) { @@ -84,6 +100,21 @@ EntityTypesConnection::BatchDeleteEntityTypes( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EntityTypesConnection::BatchDeleteEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EntityTypesConnection::BatchDeleteEntityTypes( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EntityTypesConnection::BatchCreateEntities( google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const&) { @@ -91,6 +122,21 @@ EntityTypesConnection::BatchCreateEntities( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EntityTypesConnection::BatchCreateEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EntityTypesConnection::BatchCreateEntities( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EntityTypesConnection::BatchUpdateEntities( google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const&) { @@ -98,6 +144,21 @@ EntityTypesConnection::BatchUpdateEntities( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EntityTypesConnection::BatchUpdateEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EntityTypesConnection::BatchUpdateEntities( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EntityTypesConnection::BatchDeleteEntities( google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const&) { @@ -105,6 +166,21 @@ EntityTypesConnection::BatchDeleteEntities( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EntityTypesConnection::BatchDeleteEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EntityTypesConnection::BatchDeleteEntities( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeEntityTypesConnection( std::string const& location, Options options) { internal::CheckExpectedOptions BatchUpdateEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& + request); + + virtual future< + StatusOr> + BatchUpdateEntityTypes(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> BatchDeleteEntityTypes( google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& request); + virtual StatusOr BatchDeleteEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& + request); + + virtual future> BatchDeleteEntityTypes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> BatchCreateEntities( google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request); + virtual StatusOr BatchCreateEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request); + + virtual future> BatchCreateEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> BatchUpdateEntities( google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request); + virtual StatusOr BatchUpdateEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request); + + virtual future> BatchUpdateEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> BatchDeleteEntities( google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request); + + virtual StatusOr BatchDeleteEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request); + + virtual future> BatchDeleteEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dialogflow_es/environments_connection.h b/google/cloud/dialogflow_es/environments_connection.h index 4fdd7a0282244..a7b92b32eaadd 100644 --- a/google/cloud/dialogflow_es/environments_connection.h +++ b/google/cloud/dialogflow_es/environments_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_es/environments_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/environments_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dialogflow_es/fulfillments_connection.h b/google/cloud/dialogflow_es/fulfillments_connection.h index c501b35263f52..cfc4b2f08b3ce 100644 --- a/google/cloud/dialogflow_es/fulfillments_connection.h +++ b/google/cloud/dialogflow_es/fulfillments_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_es/fulfillments_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/fulfillments_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dialogflow_es/intents_connection.cc b/google/cloud/dialogflow_es/intents_connection.cc index 4b8dd8be0fd48..a1c2477674c17 100644 --- a/google/cloud/dialogflow_es/intents_connection.cc +++ b/google/cloud/dialogflow_es/intents_connection.cc @@ -74,6 +74,21 @@ IntentsConnection::BatchUpdateIntents( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr IntentsConnection::BatchUpdateIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +IntentsConnection::BatchUpdateIntents(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> IntentsConnection::BatchDeleteIntents( google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const&) { @@ -81,6 +96,20 @@ IntentsConnection::BatchDeleteIntents( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr IntentsConnection::BatchDeleteIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +IntentsConnection::BatchDeleteIntents(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeIntentsConnection( std::string const& location, Options options) { internal::CheckExpectedOptions BatchUpdateIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request); + + virtual future< + StatusOr> + BatchUpdateIntents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> BatchDeleteIntents( google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request); + + virtual StatusOr BatchDeleteIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request); + + virtual future> BatchDeleteIntents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dialogflow_es/internal/agents_connection_impl.cc b/google/cloud/dialogflow_es/internal/agents_connection_impl.cc index d72c086c5473c..5b0bb51a30f35 100644 --- a/google/cloud/dialogflow_es/internal/agents_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/agents_connection_impl.cc @@ -173,6 +173,55 @@ future> AgentsConnectionImpl::TrainAgent( polling_policy(*current), __func__); } +StatusOr AgentsConnectionImpl::TrainAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::TrainAgentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->TrainAgent(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::TrainAgentRequest const& request) { + return stub_->TrainAgent(context, options, request); + }, + *current, request, __func__); +} + +future> AgentsConnectionImpl::TrainAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to TrainAgent", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::protobuf::Struct>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::protobuf::Struct>, + polling_policy(*current), __func__); +} + future> AgentsConnectionImpl::ExportAgent( google::cloud::dialogflow::v2::ExportAgentRequest const& request) { @@ -212,6 +261,57 @@ AgentsConnectionImpl::ExportAgent( polling_policy(*current), __func__); } +StatusOr AgentsConnectionImpl::ExportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ExportAgentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportAgent(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::ExportAgentRequest const& request) { + return stub_->ExportAgent(context, options, request); + }, + *current, request, __func__); +} + +future> +AgentsConnectionImpl::ExportAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ExportAgent", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::ExportAgentResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::v2::ExportAgentResponse>, + polling_policy(*current), __func__); +} + future> AgentsConnectionImpl::ImportAgent( google::cloud::dialogflow::v2::ImportAgentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -250,6 +350,55 @@ future> AgentsConnectionImpl::ImportAgent( polling_policy(*current), __func__); } +StatusOr AgentsConnectionImpl::ImportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportAgentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportAgent(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::ImportAgentRequest const& request) { + return stub_->ImportAgent(context, options, request); + }, + *current, request, __func__); +} + +future> AgentsConnectionImpl::ImportAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ImportAgent", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::protobuf::Struct>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::protobuf::Struct>, + polling_policy(*current), __func__); +} + future> AgentsConnectionImpl::RestoreAgent( google::cloud::dialogflow::v2::RestoreAgentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -288,6 +437,56 @@ future> AgentsConnectionImpl::RestoreAgent( polling_policy(*current), __func__); } +StatusOr AgentsConnectionImpl::RestoreAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::RestoreAgentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RestoreAgent(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::RestoreAgentRequest const& request) { + return stub_->RestoreAgent(context, options, request); + }, + *current, request, __func__); +} + +future> AgentsConnectionImpl::RestoreAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RestoreAgent", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::protobuf::Struct>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::protobuf::Struct>, + polling_policy(*current), __func__); +} + StatusOr AgentsConnectionImpl::GetValidationResult( google::cloud::dialogflow::v2::GetValidationResultRequest const& request) { diff --git a/google/cloud/dialogflow_es/internal/agents_connection_impl.h b/google/cloud/dialogflow_es/internal/agents_connection_impl.h index 45aa65d7f7bad..c2480b6c1e167 100644 --- a/google/cloud/dialogflow_es/internal/agents_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/agents_connection_impl.h @@ -66,18 +66,53 @@ class AgentsConnectionImpl : public dialogflow_es::AgentsConnection { future> TrainAgent( google::cloud::dialogflow::v2::TrainAgentRequest const& request) override; + StatusOr TrainAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::TrainAgentRequest const& request) override; + + future> TrainAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportAgent(google::cloud::dialogflow::v2::ExportAgentRequest const& request) override; + StatusOr ExportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ExportAgentRequest const& request) + override; + + future> + ExportAgent(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportAgent( google::cloud::dialogflow::v2::ImportAgentRequest const& request) override; + StatusOr ImportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportAgentRequest const& request) + override; + + future> ImportAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RestoreAgent( google::cloud::dialogflow::v2::RestoreAgentRequest const& request) override; + StatusOr RestoreAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::RestoreAgentRequest const& request) + override; + + future> RestoreAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetValidationResult( google::cloud::dialogflow::v2::GetValidationResultRequest const& request) override; diff --git a/google/cloud/dialogflow_es/internal/agents_tracing_connection.cc b/google/cloud/dialogflow_es/internal/agents_tracing_connection.cc index 21055efb175ef..c5b7458009a18 100644 --- a/google/cloud/dialogflow_es/internal/agents_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/agents_tracing_connection.cc @@ -75,6 +75,26 @@ future> AgentsTracingConnection::TrainAgent( return internal::EndSpan(std::move(span), child_->TrainAgent(request)); } +StatusOr AgentsTracingConnection::TrainAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::TrainAgentRequest const& request) { + auto span = internal::MakeSpan("dialogflow_es::AgentsConnection::TrainAgent"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->TrainAgent(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> AgentsTracingConnection::TrainAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("dialogflow_es::AgentsConnection::TrainAgent"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->TrainAgent(google::cloud::ExperimentalTag{}, operation)); +} + future> AgentsTracingConnection::ExportAgent( google::cloud::dialogflow::v2::ExportAgentRequest const& request) { @@ -84,6 +104,29 @@ AgentsTracingConnection::ExportAgent( return internal::EndSpan(std::move(span), child_->ExportAgent(request)); } +StatusOr AgentsTracingConnection::ExportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ExportAgentRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_es::AgentsConnection::ExportAgent"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportAgent(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AgentsTracingConnection::ExportAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_es::AgentsConnection::ExportAgent"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportAgent(google::cloud::ExperimentalTag{}, operation)); +} + future> AgentsTracingConnection::ImportAgent( google::cloud::dialogflow::v2::ImportAgentRequest const& request) { auto span = @@ -92,6 +135,28 @@ future> AgentsTracingConnection::ImportAgent( return internal::EndSpan(std::move(span), child_->ImportAgent(request)); } +StatusOr AgentsTracingConnection::ImportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportAgentRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_es::AgentsConnection::ImportAgent"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportAgent(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> AgentsTracingConnection::ImportAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_es::AgentsConnection::ImportAgent"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportAgent(google::cloud::ExperimentalTag{}, operation)); +} + future> AgentsTracingConnection::RestoreAgent( google::cloud::dialogflow::v2::RestoreAgentRequest const& request) { @@ -101,6 +166,29 @@ AgentsTracingConnection::RestoreAgent( return internal::EndSpan(std::move(span), child_->RestoreAgent(request)); } +StatusOr AgentsTracingConnection::RestoreAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::RestoreAgentRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_es::AgentsConnection::RestoreAgent"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RestoreAgent(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AgentsTracingConnection::RestoreAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_es::AgentsConnection::RestoreAgent"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RestoreAgent(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AgentsTracingConnection::GetValidationResult( google::cloud::dialogflow::v2::GetValidationResultRequest const& request) { diff --git a/google/cloud/dialogflow_es/internal/agents_tracing_connection.h b/google/cloud/dialogflow_es/internal/agents_tracing_connection.h index 615c5a17ea510..6d50a451dc5ba 100644 --- a/google/cloud/dialogflow_es/internal/agents_tracing_connection.h +++ b/google/cloud/dialogflow_es/internal/agents_tracing_connection.h @@ -54,18 +54,53 @@ class AgentsTracingConnection : public dialogflow_es::AgentsConnection { future> TrainAgent( google::cloud::dialogflow::v2::TrainAgentRequest const& request) override; + StatusOr TrainAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::TrainAgentRequest const& request) override; + + future> TrainAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportAgent(google::cloud::dialogflow::v2::ExportAgentRequest const& request) override; + StatusOr ExportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ExportAgentRequest const& request) + override; + + future> + ExportAgent(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportAgent( google::cloud::dialogflow::v2::ImportAgentRequest const& request) override; + StatusOr ImportAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportAgentRequest const& request) + override; + + future> ImportAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RestoreAgent( google::cloud::dialogflow::v2::RestoreAgentRequest const& request) override; + StatusOr RestoreAgent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::RestoreAgentRequest const& request) + override; + + future> RestoreAgent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetValidationResult( google::cloud::dialogflow::v2::GetValidationResultRequest const& request) override; diff --git a/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.cc b/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.cc index 22bcd242493bf..350589f5b5062 100644 --- a/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.cc @@ -109,6 +109,63 @@ ConversationDatasetsConnectionImpl::CreateConversationDataset( polling_policy(*current), __func__); } +StatusOr +ConversationDatasetsConnectionImpl::CreateConversationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateConversationDataset(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& + request) { + return stub_->CreateConversationDataset(context, options, request); + }, + *current, request, __func__); +} + +future> +ConversationDatasetsConnectionImpl::CreateConversationDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateConversationDataset", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::ConversationDataset>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::v2::ConversationDataset>, + polling_policy(*current), __func__); +} + StatusOr ConversationDatasetsConnectionImpl::GetConversationDataset( google::cloud::dialogflow::v2::GetConversationDatasetRequest const& @@ -205,6 +262,67 @@ ConversationDatasetsConnectionImpl::DeleteConversationDataset( polling_policy(*current), __func__); } +StatusOr +ConversationDatasetsConnectionImpl::DeleteConversationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteConversationDataset(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& + request) { + return stub_->DeleteConversationDataset(context, options, request); + }, + *current, request, __func__); +} + +future> +ConversationDatasetsConnectionImpl::DeleteConversationDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteConversationDataset", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2:: + DeleteConversationDatasetOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dialogflow::v2:: + DeleteConversationDatasetOperationMetadata>, + polling_policy(*current), __func__); +} + future> ConversationDatasetsConnectionImpl::ImportConversationData( @@ -248,6 +366,65 @@ ConversationDatasetsConnectionImpl::ImportConversationData( polling_policy(*current), __func__); } +StatusOr +ConversationDatasetsConnectionImpl::ImportConversationData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportConversationDataRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportConversationData(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::ImportConversationDataRequest const& + request) { + return stub_->ImportConversationData(context, options, request); + }, + *current, request, __func__); +} + +future> +ConversationDatasetsConnectionImpl::ImportConversationData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportConversationData", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::ImportConversationDataOperationResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::v2:: + ImportConversationDataOperationResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace dialogflow_es_internal } // namespace cloud diff --git a/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.h b/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.h index 28b5e4583a535..3611c8d57e988 100644 --- a/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.h @@ -57,6 +57,16 @@ class ConversationDatasetsConnectionImpl google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& request) override; + StatusOr CreateConversationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& + request) override; + + future> + CreateConversationDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetConversationDataset( google::cloud::dialogflow::v2::GetConversationDatasetRequest const& @@ -73,12 +83,34 @@ class ConversationDatasetsConnectionImpl google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& request) override; + StatusOr DeleteConversationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& + request) override; + + future> + DeleteConversationDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportConversationData( google::cloud::dialogflow::v2::ImportConversationDataRequest const& request) override; + StatusOr ImportConversationData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportConversationDataRequest const& + request) override; + + future> + ImportConversationData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.cc b/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.cc index 0139581172199..15169e60daec8 100644 --- a/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.cc @@ -45,6 +45,33 @@ ConversationDatasetsTracingConnection::CreateConversationDataset( child_->CreateConversationDataset(request)); } +StatusOr +ConversationDatasetsTracingConnection::CreateConversationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationDatasetsConnection::" + "CreateConversationDataset"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateConversationDataset( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConversationDatasetsTracingConnection::CreateConversationDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationDatasetsConnection::" + "CreateConversationDataset"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateConversationDataset( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ConversationDatasetsTracingConnection::GetConversationDataset( google::cloud::dialogflow::v2::GetConversationDatasetRequest const& @@ -81,6 +108,34 @@ ConversationDatasetsTracingConnection::DeleteConversationDataset( child_->DeleteConversationDataset(request)); } +StatusOr +ConversationDatasetsTracingConnection::DeleteConversationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationDatasetsConnection::" + "DeleteConversationDataset"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteConversationDataset( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConversationDatasetsTracingConnection::DeleteConversationDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationDatasetsConnection::" + "DeleteConversationDataset"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteConversationDataset( + google::cloud::ExperimentalTag{}, operation)); +} + future> ConversationDatasetsTracingConnection::ImportConversationData( @@ -93,6 +148,32 @@ ConversationDatasetsTracingConnection::ImportConversationData( child_->ImportConversationData(request)); } +StatusOr +ConversationDatasetsTracingConnection::ImportConversationData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportConversationDataRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationDatasetsConnection::ImportConversationData"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ImportConversationData( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConversationDatasetsTracingConnection::ImportConversationData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationDatasetsConnection::ImportConversationData"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ImportConversationData( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.h b/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.h index 00999ebbf0273..d11b025fed6ad 100644 --- a/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.h +++ b/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.h @@ -45,6 +45,16 @@ class ConversationDatasetsTracingConnection google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& request) override; + StatusOr CreateConversationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& + request) override; + + future> + CreateConversationDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetConversationDataset( google::cloud::dialogflow::v2::GetConversationDatasetRequest const& @@ -61,12 +71,34 @@ class ConversationDatasetsTracingConnection google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& request) override; + StatusOr DeleteConversationDataset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& + request) override; + + future> + DeleteConversationDataset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportConversationData( google::cloud::dialogflow::v2::ImportConversationDataRequest const& request) override; + StatusOr ImportConversationData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportConversationDataRequest const& + request) override; + + future> + ImportConversationData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.cc b/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.cc index d3c555244c7d1..66cb969b15c84 100644 --- a/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.cc @@ -108,6 +108,63 @@ ConversationModelsConnectionImpl::CreateConversationModel( polling_policy(*current), __func__); } +StatusOr +ConversationModelsConnectionImpl::CreateConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateConversationModelRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateConversationModel(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::CreateConversationModelRequest const& + request) { + return stub_->CreateConversationModel(context, options, request); + }, + *current, request, __func__); +} + +future> +ConversationModelsConnectionImpl::CreateConversationModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateConversationModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::ConversationModel>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::v2::ConversationModel>, + polling_policy(*current), __func__); +} + StatusOr ConversationModelsConnectionImpl::GetConversationModel( google::cloud::dialogflow::v2::GetConversationModelRequest const& request) { @@ -202,6 +259,66 @@ ConversationModelsConnectionImpl::DeleteConversationModel( polling_policy(*current), __func__); } +StatusOr +ConversationModelsConnectionImpl::DeleteConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteConversationModelRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteConversationModel(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::DeleteConversationModelRequest const& + request) { + return stub_->DeleteConversationModel(context, options, request); + }, + *current, request, __func__); +} + +future> +ConversationModelsConnectionImpl::DeleteConversationModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteConversationModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::DeleteConversationModelOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dialogflow::v2:: + DeleteConversationModelOperationMetadata>, + polling_policy(*current), __func__); +} + future> ConversationModelsConnectionImpl::DeployConversationModel( @@ -245,6 +362,66 @@ ConversationModelsConnectionImpl::DeployConversationModel( polling_policy(*current), __func__); } +StatusOr +ConversationModelsConnectionImpl::DeployConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeployConversationModelRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeployConversationModel(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::DeployConversationModelRequest const& + request) { + return stub_->DeployConversationModel(context, options, request); + }, + *current, request, __func__); +} + +future> +ConversationModelsConnectionImpl::DeployConversationModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeployConversationModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::DeployConversationModelOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dialogflow::v2:: + DeployConversationModelOperationMetadata>, + polling_policy(*current), __func__); +} + future> ConversationModelsConnectionImpl::UndeployConversationModel( @@ -289,6 +466,67 @@ ConversationModelsConnectionImpl::UndeployConversationModel( polling_policy(*current), __func__); } +StatusOr +ConversationModelsConnectionImpl::UndeployConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::UndeployConversationModelRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UndeployConversationModel(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::UndeployConversationModelRequest const& + request) { + return stub_->UndeployConversationModel(context, options, request); + }, + *current, request, __func__); +} + +future> +ConversationModelsConnectionImpl::UndeployConversationModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UndeployConversationModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2:: + UndeployConversationModelOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dialogflow::v2:: + UndeployConversationModelOperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr ConversationModelsConnectionImpl::GetConversationModelEvaluation( google::cloud::dialogflow::v2::GetConversationModelEvaluationRequest const& @@ -386,6 +624,64 @@ ConversationModelsConnectionImpl::CreateConversationModelEvaluation( polling_policy(*current), __func__); } +StatusOr +ConversationModelsConnectionImpl::CreateConversationModelEvaluation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2:: + CreateConversationModelEvaluationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateConversationModelEvaluation(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2:: + CreateConversationModelEvaluationRequest const& request) { + return stub_->CreateConversationModelEvaluation(context, options, + request); + }, + *current, request, __func__); +} + +future> +ConversationModelsConnectionImpl::CreateConversationModelEvaluation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to " + "CreateConversationModelEvaluation", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::ConversationModelEvaluation>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::v2::ConversationModelEvaluation>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace dialogflow_es_internal } // namespace cloud diff --git a/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.h b/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.h index 45e70547bc051..258c0182dd86c 100644 --- a/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.h @@ -57,6 +57,16 @@ class ConversationModelsConnectionImpl google::cloud::dialogflow::v2::CreateConversationModelRequest const& request) override; + StatusOr CreateConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateConversationModelRequest const& + request) override; + + future> + CreateConversationModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetConversationModel( google::cloud::dialogflow::v2::GetConversationModelRequest const& request) @@ -73,18 +83,51 @@ class ConversationModelsConnectionImpl google::cloud::dialogflow::v2::DeleteConversationModelRequest const& request) override; + StatusOr DeleteConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteConversationModelRequest const& + request) override; + + future> + DeleteConversationModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeployConversationModel( google::cloud::dialogflow::v2::DeployConversationModelRequest const& request) override; + StatusOr DeployConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeployConversationModelRequest const& + request) override; + + future> + DeployConversationModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeployConversationModel( google::cloud::dialogflow::v2::UndeployConversationModelRequest const& request) override; + StatusOr UndeployConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::UndeployConversationModelRequest const& + request) override; + + future> + UndeployConversationModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetConversationModelEvaluation( google::cloud::dialogflow::v2:: @@ -100,6 +143,16 @@ class ConversationModelsConnectionImpl google::cloud::dialogflow::v2:: CreateConversationModelEvaluationRequest const& request) override; + StatusOr CreateConversationModelEvaluation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2:: + CreateConversationModelEvaluationRequest const& request) override; + + future> + CreateConversationModelEvaluation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.cc b/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.cc index b0d9c22eaf9fb..d72ed9e4776cb 100644 --- a/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.cc @@ -44,6 +44,31 @@ ConversationModelsTracingConnection::CreateConversationModel( child_->CreateConversationModel(request)); } +StatusOr +ConversationModelsTracingConnection::CreateConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateConversationModelRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationModelsConnection::CreateConversationModel"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateConversationModel( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConversationModelsTracingConnection::CreateConversationModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationModelsConnection::CreateConversationModel"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateConversationModel( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ConversationModelsTracingConnection::GetConversationModel( google::cloud::dialogflow::v2::GetConversationModelRequest const& request) { @@ -77,6 +102,32 @@ ConversationModelsTracingConnection::DeleteConversationModel( child_->DeleteConversationModel(request)); } +StatusOr +ConversationModelsTracingConnection::DeleteConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteConversationModelRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationModelsConnection::DeleteConversationModel"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteConversationModel( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConversationModelsTracingConnection::DeleteConversationModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationModelsConnection::DeleteConversationModel"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteConversationModel( + google::cloud::ExperimentalTag{}, operation)); +} + future> ConversationModelsTracingConnection::DeployConversationModel( @@ -89,6 +140,32 @@ ConversationModelsTracingConnection::DeployConversationModel( child_->DeployConversationModel(request)); } +StatusOr +ConversationModelsTracingConnection::DeployConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeployConversationModelRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationModelsConnection::DeployConversationModel"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeployConversationModel( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConversationModelsTracingConnection::DeployConversationModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationModelsConnection::DeployConversationModel"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeployConversationModel( + google::cloud::ExperimentalTag{}, operation)); +} + future> ConversationModelsTracingConnection::UndeployConversationModel( @@ -101,6 +178,32 @@ ConversationModelsTracingConnection::UndeployConversationModel( child_->UndeployConversationModel(request)); } +StatusOr +ConversationModelsTracingConnection::UndeployConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::UndeployConversationModelRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationModelsConnection::UndeployConversationModel"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UndeployConversationModel( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConversationModelsTracingConnection::UndeployConversationModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationModelsConnection::UndeployConversationModel"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UndeployConversationModel( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ConversationModelsTracingConnection::GetConversationModelEvaluation( google::cloud::dialogflow::v2::GetConversationModelEvaluationRequest const& @@ -139,6 +242,33 @@ ConversationModelsTracingConnection::CreateConversationModelEvaluation( child_->CreateConversationModelEvaluation(request)); } +StatusOr +ConversationModelsTracingConnection::CreateConversationModelEvaluation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2:: + CreateConversationModelEvaluationRequest const& request) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationModelsConnection::" + "CreateConversationModelEvaluation"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateConversationModelEvaluation( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConversationModelsTracingConnection::CreateConversationModelEvaluation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationModelsConnection::" + "CreateConversationModelEvaluation"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateConversationModelEvaluation( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.h b/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.h index ee63f2ca01b34..a3707f171668e 100644 --- a/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.h +++ b/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.h @@ -45,6 +45,16 @@ class ConversationModelsTracingConnection google::cloud::dialogflow::v2::CreateConversationModelRequest const& request) override; + StatusOr CreateConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateConversationModelRequest const& + request) override; + + future> + CreateConversationModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetConversationModel( google::cloud::dialogflow::v2::GetConversationModelRequest const& request) @@ -61,18 +71,51 @@ class ConversationModelsTracingConnection google::cloud::dialogflow::v2::DeleteConversationModelRequest const& request) override; + StatusOr DeleteConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteConversationModelRequest const& + request) override; + + future> + DeleteConversationModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeployConversationModel( google::cloud::dialogflow::v2::DeployConversationModelRequest const& request) override; + StatusOr DeployConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeployConversationModelRequest const& + request) override; + + future> + DeployConversationModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeployConversationModel( google::cloud::dialogflow::v2::UndeployConversationModelRequest const& request) override; + StatusOr UndeployConversationModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::UndeployConversationModelRequest const& + request) override; + + future> + UndeployConversationModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetConversationModelEvaluation( google::cloud::dialogflow::v2:: @@ -88,6 +131,16 @@ class ConversationModelsTracingConnection google::cloud::dialogflow::v2:: CreateConversationModelEvaluationRequest const& request) override; + StatusOr CreateConversationModelEvaluation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2:: + CreateConversationModelEvaluationRequest const& request) override; + + future> + CreateConversationModelEvaluation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.cc b/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.cc index 738f980e219f7..01e8e4eb9deb8 100644 --- a/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.cc @@ -210,6 +210,62 @@ ConversationProfilesConnectionImpl::SetSuggestionFeatureConfig( polling_policy(*current), __func__); } +StatusOr +ConversationProfilesConnectionImpl::SetSuggestionFeatureConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetSuggestionFeatureConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2:: + SetSuggestionFeatureConfigRequest const& request) { + return stub_->SetSuggestionFeatureConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +ConversationProfilesConnectionImpl::SetSuggestionFeatureConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to SetSuggestionFeatureConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::ConversationProfile>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::v2::ConversationProfile>, + polling_policy(*current), __func__); +} + future> ConversationProfilesConnectionImpl::ClearSuggestionFeatureConfig( google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& @@ -250,6 +306,62 @@ ConversationProfilesConnectionImpl::ClearSuggestionFeatureConfig( polling_policy(*current), __func__); } +StatusOr +ConversationProfilesConnectionImpl::ClearSuggestionFeatureConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ClearSuggestionFeatureConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2:: + ClearSuggestionFeatureConfigRequest const& request) { + return stub_->ClearSuggestionFeatureConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +ConversationProfilesConnectionImpl::ClearSuggestionFeatureConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ClearSuggestionFeatureConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::ConversationProfile>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::v2::ConversationProfile>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace dialogflow_es_internal } // namespace cloud diff --git a/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.h b/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.h index a9678cc3c7449..f14e72dbcb213 100644 --- a/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.h @@ -81,11 +81,31 @@ class ConversationProfilesConnectionImpl google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& request) override; + StatusOr SetSuggestionFeatureConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& + request) override; + + future> + SetSuggestionFeatureConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ClearSuggestionFeatureConfig( google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& request) override; + StatusOr ClearSuggestionFeatureConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& + request) override; + + future> + ClearSuggestionFeatureConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.cc b/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.cc index a4c610432db41..d947abd7f27dc 100644 --- a/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.cc @@ -100,6 +100,33 @@ ConversationProfilesTracingConnection::SetSuggestionFeatureConfig( child_->SetSuggestionFeatureConfig(request)); } +StatusOr +ConversationProfilesTracingConnection::SetSuggestionFeatureConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationProfilesConnection::" + "SetSuggestionFeatureConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SetSuggestionFeatureConfig( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConversationProfilesTracingConnection::SetSuggestionFeatureConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationProfilesConnection::" + "SetSuggestionFeatureConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SetSuggestionFeatureConfig( + google::cloud::ExperimentalTag{}, operation)); +} + future> ConversationProfilesTracingConnection::ClearSuggestionFeatureConfig( google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& @@ -112,6 +139,33 @@ ConversationProfilesTracingConnection::ClearSuggestionFeatureConfig( child_->ClearSuggestionFeatureConfig(request)); } +StatusOr +ConversationProfilesTracingConnection::ClearSuggestionFeatureConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationProfilesConnection::" + "ClearSuggestionFeatureConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ClearSuggestionFeatureConfig( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConversationProfilesTracingConnection::ClearSuggestionFeatureConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::ConversationProfilesConnection::" + "ClearSuggestionFeatureConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ClearSuggestionFeatureConfig( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.h b/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.h index ad07fecfb3425..11e812dcf459e 100644 --- a/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.h +++ b/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.h @@ -69,11 +69,31 @@ class ConversationProfilesTracingConnection google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& request) override; + StatusOr SetSuggestionFeatureConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& + request) override; + + future> + SetSuggestionFeatureConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ClearSuggestionFeatureConfig( google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& request) override; + StatusOr ClearSuggestionFeatureConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& + request) override; + + future> + ClearSuggestionFeatureConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/dialogflow_es/internal/documents_connection_impl.cc b/google/cloud/dialogflow_es/internal/documents_connection_impl.cc index 29a12de6e012f..f561756ac395f 100644 --- a/google/cloud/dialogflow_es/internal/documents_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/documents_connection_impl.cc @@ -151,6 +151,60 @@ DocumentsConnectionImpl::CreateDocument( polling_policy(*current), __func__); } +StatusOr +DocumentsConnectionImpl::CreateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateDocumentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDocument(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::CreateDocumentRequest const& request) { + return stub_->CreateDocument(context, options, request); + }, + *current, request, __func__); +} + +future> +DocumentsConnectionImpl::CreateDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDocument", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::Document>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::v2::Document>, + polling_policy(*current), __func__); +} + future> DocumentsConnectionImpl::ImportDocuments( google::cloud::dialogflow::v2::ImportDocumentsRequest const& request) { @@ -191,6 +245,61 @@ DocumentsConnectionImpl::ImportDocuments( polling_policy(*current), __func__); } +StatusOr +DocumentsConnectionImpl::ImportDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportDocumentsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportDocuments(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::ImportDocumentsRequest const& + request) { + return stub_->ImportDocuments(context, options, request); + }, + *current, request, __func__); +} + +future> +DocumentsConnectionImpl::ImportDocuments( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportDocuments", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::ImportDocumentsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::v2::ImportDocumentsResponse>, + polling_policy(*current), __func__); +} + future> DocumentsConnectionImpl::DeleteDocument( google::cloud::dialogflow::v2::DeleteDocumentRequest const& request) { @@ -230,6 +339,61 @@ DocumentsConnectionImpl::DeleteDocument( polling_policy(*current), __func__); } +StatusOr +DocumentsConnectionImpl::DeleteDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteDocumentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDocument(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::DeleteDocumentRequest const& request) { + return stub_->DeleteDocument(context, options, request); + }, + *current, request, __func__); +} + +future> +DocumentsConnectionImpl::DeleteDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDocument", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::KnowledgeOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::dialogflow::v2::KnowledgeOperationMetadata>, + polling_policy(*current), __func__); +} + future> DocumentsConnectionImpl::UpdateDocument( google::cloud::dialogflow::v2::UpdateDocumentRequest const& request) { @@ -269,6 +433,60 @@ DocumentsConnectionImpl::UpdateDocument( polling_policy(*current), __func__); } +StatusOr +DocumentsConnectionImpl::UpdateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::UpdateDocumentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDocument(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::UpdateDocumentRequest const& request) { + return stub_->UpdateDocument(context, options, request); + }, + *current, request, __func__); +} + +future> +DocumentsConnectionImpl::UpdateDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateDocument", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::Document>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::v2::Document>, + polling_policy(*current), __func__); +} + future> DocumentsConnectionImpl::ReloadDocument( google::cloud::dialogflow::v2::ReloadDocumentRequest const& request) { @@ -308,6 +526,60 @@ DocumentsConnectionImpl::ReloadDocument( polling_policy(*current), __func__); } +StatusOr +DocumentsConnectionImpl::ReloadDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ReloadDocumentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ReloadDocument(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::ReloadDocumentRequest const& request) { + return stub_->ReloadDocument(context, options, request); + }, + *current, request, __func__); +} + +future> +DocumentsConnectionImpl::ReloadDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ReloadDocument", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::Document>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::v2::Document>, + polling_policy(*current), __func__); +} + future> DocumentsConnectionImpl::ExportDocument( google::cloud::dialogflow::v2::ExportDocumentRequest const& request) { @@ -347,6 +619,60 @@ DocumentsConnectionImpl::ExportDocument( polling_policy(*current), __func__); } +StatusOr +DocumentsConnectionImpl::ExportDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ExportDocumentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportDocument(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::ExportDocumentRequest const& request) { + return stub_->ExportDocument(context, options, request); + }, + *current, request, __func__); +} + +future> +DocumentsConnectionImpl::ExportDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ExportDocument", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::Document>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::v2::Document>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace dialogflow_es_internal } // namespace cloud diff --git a/google/cloud/dialogflow_es/internal/documents_connection_impl.h b/google/cloud/dialogflow_es/internal/documents_connection_impl.h index 9e3d599c9fab7..160a10e1401c1 100644 --- a/google/cloud/dialogflow_es/internal/documents_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/documents_connection_impl.h @@ -62,26 +62,80 @@ class DocumentsConnectionImpl : public dialogflow_es::DocumentsConnection { google::cloud::dialogflow::v2::CreateDocumentRequest const& request) override; + StatusOr CreateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateDocumentRequest const& request) + override; + + future> CreateDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportDocuments(google::cloud::dialogflow::v2::ImportDocumentsRequest const& request) override; + StatusOr ImportDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportDocumentsRequest const& request) + override; + + future> + ImportDocuments(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDocument(google::cloud::dialogflow::v2::DeleteDocumentRequest const& request) override; + StatusOr DeleteDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteDocumentRequest const& request) + override; + + future> + DeleteDocument(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDocument( google::cloud::dialogflow::v2::UpdateDocumentRequest const& request) override; + StatusOr UpdateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::UpdateDocumentRequest const& request) + override; + + future> UpdateDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReloadDocument( google::cloud::dialogflow::v2::ReloadDocumentRequest const& request) override; + StatusOr ReloadDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ReloadDocumentRequest const& request) + override; + + future> ReloadDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportDocument( google::cloud::dialogflow::v2::ExportDocumentRequest const& request) override; + StatusOr ExportDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ExportDocumentRequest const& request) + override; + + future> ExportDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/dialogflow_es/internal/documents_tracing_connection.cc b/google/cloud/dialogflow_es/internal/documents_tracing_connection.cc index 7283647b14885..65ba931f5bcc1 100644 --- a/google/cloud/dialogflow_es/internal/documents_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/documents_tracing_connection.cc @@ -62,6 +62,30 @@ DocumentsTracingConnection::CreateDocument( return internal::EndSpan(std::move(span), child_->CreateDocument(request)); } +StatusOr +DocumentsTracingConnection::CreateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateDocumentRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_es::DocumentsConnection::CreateDocument"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateDocument(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DocumentsTracingConnection::CreateDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_es::DocumentsConnection::CreateDocument"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateDocument(google::cloud::ExperimentalTag{}, operation)); +} + future> DocumentsTracingConnection::ImportDocuments( google::cloud::dialogflow::v2::ImportDocumentsRequest const& request) { @@ -71,6 +95,30 @@ DocumentsTracingConnection::ImportDocuments( return internal::EndSpan(std::move(span), child_->ImportDocuments(request)); } +StatusOr +DocumentsTracingConnection::ImportDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportDocumentsRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_es::DocumentsConnection::ImportDocuments"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportDocuments(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DocumentsTracingConnection::ImportDocuments( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_es::DocumentsConnection::ImportDocuments"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportDocuments(google::cloud::ExperimentalTag{}, operation)); +} + future> DocumentsTracingConnection::DeleteDocument( google::cloud::dialogflow::v2::DeleteDocumentRequest const& request) { @@ -80,6 +128,30 @@ DocumentsTracingConnection::DeleteDocument( return internal::EndSpan(std::move(span), child_->DeleteDocument(request)); } +StatusOr +DocumentsTracingConnection::DeleteDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteDocumentRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_es::DocumentsConnection::DeleteDocument"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteDocument(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DocumentsTracingConnection::DeleteDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_es::DocumentsConnection::DeleteDocument"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteDocument(google::cloud::ExperimentalTag{}, operation)); +} + future> DocumentsTracingConnection::UpdateDocument( google::cloud::dialogflow::v2::UpdateDocumentRequest const& request) { @@ -89,6 +161,30 @@ DocumentsTracingConnection::UpdateDocument( return internal::EndSpan(std::move(span), child_->UpdateDocument(request)); } +StatusOr +DocumentsTracingConnection::UpdateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::UpdateDocumentRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_es::DocumentsConnection::UpdateDocument"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateDocument(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DocumentsTracingConnection::UpdateDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_es::DocumentsConnection::UpdateDocument"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateDocument(google::cloud::ExperimentalTag{}, operation)); +} + future> DocumentsTracingConnection::ReloadDocument( google::cloud::dialogflow::v2::ReloadDocumentRequest const& request) { @@ -98,6 +194,30 @@ DocumentsTracingConnection::ReloadDocument( return internal::EndSpan(std::move(span), child_->ReloadDocument(request)); } +StatusOr +DocumentsTracingConnection::ReloadDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ReloadDocumentRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_es::DocumentsConnection::ReloadDocument"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ReloadDocument(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DocumentsTracingConnection::ReloadDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_es::DocumentsConnection::ReloadDocument"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ReloadDocument(google::cloud::ExperimentalTag{}, operation)); +} + future> DocumentsTracingConnection::ExportDocument( google::cloud::dialogflow::v2::ExportDocumentRequest const& request) { @@ -107,6 +227,30 @@ DocumentsTracingConnection::ExportDocument( return internal::EndSpan(std::move(span), child_->ExportDocument(request)); } +StatusOr +DocumentsTracingConnection::ExportDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ExportDocumentRequest const& request) { + auto span = + internal::MakeSpan("dialogflow_es::DocumentsConnection::ExportDocument"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportDocument(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DocumentsTracingConnection::ExportDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("dialogflow_es::DocumentsConnection::ExportDocument"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportDocument(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/dialogflow_es/internal/documents_tracing_connection.h b/google/cloud/dialogflow_es/internal/documents_tracing_connection.h index 1a5c78aa4f7be..4a289f5c7f717 100644 --- a/google/cloud/dialogflow_es/internal/documents_tracing_connection.h +++ b/google/cloud/dialogflow_es/internal/documents_tracing_connection.h @@ -50,26 +50,80 @@ class DocumentsTracingConnection : public dialogflow_es::DocumentsConnection { google::cloud::dialogflow::v2::CreateDocumentRequest const& request) override; + StatusOr CreateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateDocumentRequest const& request) + override; + + future> CreateDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportDocuments(google::cloud::dialogflow::v2::ImportDocumentsRequest const& request) override; + StatusOr ImportDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportDocumentsRequest const& request) + override; + + future> + ImportDocuments(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDocument(google::cloud::dialogflow::v2::DeleteDocumentRequest const& request) override; + StatusOr DeleteDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteDocumentRequest const& request) + override; + + future> + DeleteDocument(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateDocument( google::cloud::dialogflow::v2::UpdateDocumentRequest const& request) override; + StatusOr UpdateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::UpdateDocumentRequest const& request) + override; + + future> UpdateDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReloadDocument( google::cloud::dialogflow::v2::ReloadDocumentRequest const& request) override; + StatusOr ReloadDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ReloadDocumentRequest const& request) + override; + + future> ReloadDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportDocument( google::cloud::dialogflow::v2::ExportDocumentRequest const& request) override; + StatusOr ExportDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ExportDocumentRequest const& request) + override; + + future> ExportDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/dialogflow_es/internal/entity_types_connection_impl.cc b/google/cloud/dialogflow_es/internal/entity_types_connection_impl.cc index e7ae9074cb4cf..b42b73fe4d867 100644 --- a/google/cloud/dialogflow_es/internal/entity_types_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/entity_types_connection_impl.cc @@ -198,6 +198,60 @@ EntityTypesConnectionImpl::BatchUpdateEntityTypes( polling_policy(*current), __func__); } +StatusOr +EntityTypesConnectionImpl::BatchUpdateEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchUpdateEntityTypes(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& + request) { + return stub_->BatchUpdateEntityTypes(context, options, request); + }, + *current, request, __func__); +} + +future> +EntityTypesConnectionImpl::BatchUpdateEntityTypes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to BatchUpdateEntityTypes", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::BatchUpdateEntityTypesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::v2::BatchUpdateEntityTypesResponse>, + polling_policy(*current), __func__); +} + future> EntityTypesConnectionImpl::BatchDeleteEntityTypes( google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& @@ -239,6 +293,59 @@ EntityTypesConnectionImpl::BatchDeleteEntityTypes( polling_policy(*current), __func__); } +StatusOr +EntityTypesConnectionImpl::BatchDeleteEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchDeleteEntityTypes(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& + request) { + return stub_->BatchDeleteEntityTypes(context, options, request); + }, + *current, request, __func__); +} + +future> +EntityTypesConnectionImpl::BatchDeleteEntityTypes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to BatchDeleteEntityTypes", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::protobuf::Struct>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::protobuf::Struct>, + polling_policy(*current), __func__); +} + future> EntityTypesConnectionImpl::BatchCreateEntities( google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request) { @@ -279,6 +386,58 @@ EntityTypesConnectionImpl::BatchCreateEntities( polling_policy(*current), __func__); } +StatusOr +EntityTypesConnectionImpl::BatchCreateEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchCreateEntities(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& + request) { + return stub_->BatchCreateEntities(context, options, request); + }, + *current, request, __func__); +} + +future> +EntityTypesConnectionImpl::BatchCreateEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to BatchCreateEntities", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::protobuf::Struct>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::protobuf::Struct>, + polling_policy(*current), __func__); +} + future> EntityTypesConnectionImpl::BatchUpdateEntities( google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request) { @@ -319,6 +478,58 @@ EntityTypesConnectionImpl::BatchUpdateEntities( polling_policy(*current), __func__); } +StatusOr +EntityTypesConnectionImpl::BatchUpdateEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchUpdateEntities(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& + request) { + return stub_->BatchUpdateEntities(context, options, request); + }, + *current, request, __func__); +} + +future> +EntityTypesConnectionImpl::BatchUpdateEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to BatchUpdateEntities", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::protobuf::Struct>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::protobuf::Struct>, + polling_policy(*current), __func__); +} + future> EntityTypesConnectionImpl::BatchDeleteEntities( google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request) { @@ -359,6 +570,58 @@ EntityTypesConnectionImpl::BatchDeleteEntities( polling_policy(*current), __func__); } +StatusOr +EntityTypesConnectionImpl::BatchDeleteEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchDeleteEntities(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& + request) { + return stub_->BatchDeleteEntities(context, options, request); + }, + *current, request, __func__); +} + +future> +EntityTypesConnectionImpl::BatchDeleteEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to BatchDeleteEntities", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::protobuf::Struct>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::protobuf::Struct>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace dialogflow_es_internal } // namespace cloud diff --git a/google/cloud/dialogflow_es/internal/entity_types_connection_impl.h b/google/cloud/dialogflow_es/internal/entity_types_connection_impl.h index 41fcd71e39e12..71c18c31bde00 100644 --- a/google/cloud/dialogflow_es/internal/entity_types_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/entity_types_connection_impl.h @@ -76,22 +76,69 @@ class EntityTypesConnectionImpl : public dialogflow_es::EntityTypesConnection { google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& request) override; + StatusOr BatchUpdateEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& + request) override; + + future< + StatusOr> + BatchUpdateEntityTypes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchDeleteEntityTypes( google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& request) override; + StatusOr BatchDeleteEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& + request) override; + + future> BatchDeleteEntityTypes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchCreateEntities( google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request) override; + StatusOr BatchCreateEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request) + override; + + future> BatchCreateEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchUpdateEntities( google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request) override; + StatusOr BatchUpdateEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request) + override; + + future> BatchUpdateEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchDeleteEntities( google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request) override; + StatusOr BatchDeleteEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request) + override; + + future> BatchDeleteEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.cc b/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.cc index 13e22163432f4..8adc584965daf 100644 --- a/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.cc @@ -91,6 +91,31 @@ EntityTypesTracingConnection::BatchUpdateEntityTypes( child_->BatchUpdateEntityTypes(request)); } +StatusOr +EntityTypesTracingConnection::BatchUpdateEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_es::EntityTypesConnection::BatchUpdateEntityTypes"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->BatchUpdateEntityTypes( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EntityTypesTracingConnection::BatchUpdateEntityTypes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::EntityTypesConnection::BatchUpdateEntityTypes"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->BatchUpdateEntityTypes( + google::cloud::ExperimentalTag{}, operation)); +} + future> EntityTypesTracingConnection::BatchDeleteEntityTypes( google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& @@ -102,6 +127,31 @@ EntityTypesTracingConnection::BatchDeleteEntityTypes( child_->BatchDeleteEntityTypes(request)); } +StatusOr +EntityTypesTracingConnection::BatchDeleteEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& + request) { + auto span = internal::MakeSpan( + "dialogflow_es::EntityTypesConnection::BatchDeleteEntityTypes"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->BatchDeleteEntityTypes( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EntityTypesTracingConnection::BatchDeleteEntityTypes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::EntityTypesConnection::BatchDeleteEntityTypes"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->BatchDeleteEntityTypes( + google::cloud::ExperimentalTag{}, operation)); +} + future> EntityTypesTracingConnection::BatchCreateEntities( google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request) { @@ -112,6 +162,30 @@ EntityTypesTracingConnection::BatchCreateEntities( child_->BatchCreateEntities(request)); } +StatusOr +EntityTypesTracingConnection::BatchCreateEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request) { + auto span = internal::MakeSpan( + "dialogflow_es::EntityTypesConnection::BatchCreateEntities"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BatchCreateEntities(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EntityTypesTracingConnection::BatchCreateEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::EntityTypesConnection::BatchCreateEntities"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BatchCreateEntities(google::cloud::ExperimentalTag{}, operation)); +} + future> EntityTypesTracingConnection::BatchUpdateEntities( google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request) { @@ -122,6 +196,30 @@ EntityTypesTracingConnection::BatchUpdateEntities( child_->BatchUpdateEntities(request)); } +StatusOr +EntityTypesTracingConnection::BatchUpdateEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request) { + auto span = internal::MakeSpan( + "dialogflow_es::EntityTypesConnection::BatchUpdateEntities"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BatchUpdateEntities(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EntityTypesTracingConnection::BatchUpdateEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::EntityTypesConnection::BatchUpdateEntities"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BatchUpdateEntities(google::cloud::ExperimentalTag{}, operation)); +} + future> EntityTypesTracingConnection::BatchDeleteEntities( google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request) { @@ -132,6 +230,30 @@ EntityTypesTracingConnection::BatchDeleteEntities( child_->BatchDeleteEntities(request)); } +StatusOr +EntityTypesTracingConnection::BatchDeleteEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request) { + auto span = internal::MakeSpan( + "dialogflow_es::EntityTypesConnection::BatchDeleteEntities"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BatchDeleteEntities(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EntityTypesTracingConnection::BatchDeleteEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::EntityTypesConnection::BatchDeleteEntities"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BatchDeleteEntities(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.h b/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.h index 70f63e6737cbb..b3b67c85030fe 100644 --- a/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.h +++ b/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.h @@ -65,22 +65,69 @@ class EntityTypesTracingConnection google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& request) override; + StatusOr BatchUpdateEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& + request) override; + + future< + StatusOr> + BatchUpdateEntityTypes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchDeleteEntityTypes( google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& request) override; + StatusOr BatchDeleteEntityTypes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& + request) override; + + future> BatchDeleteEntityTypes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchCreateEntities( google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request) override; + StatusOr BatchCreateEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request) + override; + + future> BatchCreateEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchUpdateEntities( google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request) override; + StatusOr BatchUpdateEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request) + override; + + future> BatchUpdateEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchDeleteEntities( google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request) override; + StatusOr BatchDeleteEntities( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request) + override; + + future> BatchDeleteEntities( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/dialogflow_es/internal/intents_connection_impl.cc b/google/cloud/dialogflow_es/internal/intents_connection_impl.cc index 076b6af77e11c..221cbaa43a72b 100644 --- a/google/cloud/dialogflow_es/internal/intents_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/intents_connection_impl.cc @@ -194,6 +194,59 @@ IntentsConnectionImpl::BatchUpdateIntents( polling_policy(*current), __func__); } +StatusOr +IntentsConnectionImpl::BatchUpdateIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchUpdateIntents(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& + request) { + return stub_->BatchUpdateIntents(context, options, request); + }, + *current, request, __func__); +} + +future> +IntentsConnectionImpl::BatchUpdateIntents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to BatchUpdateIntents", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::dialogflow::v2::BatchUpdateIntentsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::dialogflow::v2::BatchUpdateIntentsResponse>, + polling_policy(*current), __func__); +} + future> IntentsConnectionImpl::BatchDeleteIntents( google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request) { @@ -234,6 +287,58 @@ IntentsConnectionImpl::BatchDeleteIntents( polling_policy(*current), __func__); } +StatusOr +IntentsConnectionImpl::BatchDeleteIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchDeleteIntents(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& + request) { + return stub_->BatchDeleteIntents(context, options, request); + }, + *current, request, __func__); +} + +future> +IntentsConnectionImpl::BatchDeleteIntents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to BatchDeleteIntents", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::protobuf::Struct>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::protobuf::Struct>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace dialogflow_es_internal } // namespace cloud diff --git a/google/cloud/dialogflow_es/internal/intents_connection_impl.h b/google/cloud/dialogflow_es/internal/intents_connection_impl.h index 03898e060649a..89ba0bc47d4cd 100644 --- a/google/cloud/dialogflow_es/internal/intents_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/intents_connection_impl.h @@ -73,10 +73,28 @@ class IntentsConnectionImpl : public dialogflow_es::IntentsConnection { google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request) override; + StatusOr BatchUpdateIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request) + override; + + future> + BatchUpdateIntents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchDeleteIntents( google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request) override; + StatusOr BatchDeleteIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request) + override; + + future> BatchDeleteIntents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/dialogflow_es/internal/intents_tracing_connection.cc b/google/cloud/dialogflow_es/internal/intents_tracing_connection.cc index 50eacdf1541f9..5510c973b623e 100644 --- a/google/cloud/dialogflow_es/internal/intents_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/intents_tracing_connection.cc @@ -88,6 +88,30 @@ IntentsTracingConnection::BatchUpdateIntents( child_->BatchUpdateIntents(request)); } +StatusOr +IntentsTracingConnection::BatchUpdateIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request) { + auto span = internal::MakeSpan( + "dialogflow_es::IntentsConnection::BatchUpdateIntents"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BatchUpdateIntents(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +IntentsTracingConnection::BatchUpdateIntents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::IntentsConnection::BatchUpdateIntents"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BatchUpdateIntents(google::cloud::ExperimentalTag{}, operation)); +} + future> IntentsTracingConnection::BatchDeleteIntents( google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request) { @@ -98,6 +122,30 @@ IntentsTracingConnection::BatchDeleteIntents( child_->BatchDeleteIntents(request)); } +StatusOr +IntentsTracingConnection::BatchDeleteIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request) { + auto span = internal::MakeSpan( + "dialogflow_es::IntentsConnection::BatchDeleteIntents"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BatchDeleteIntents(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +IntentsTracingConnection::BatchDeleteIntents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "dialogflow_es::IntentsConnection::BatchDeleteIntents"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BatchDeleteIntents(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr MakeIntentsTracingConnection( diff --git a/google/cloud/dialogflow_es/internal/intents_tracing_connection.h b/google/cloud/dialogflow_es/internal/intents_tracing_connection.h index 0637b0db368d6..92e802f3e4844 100644 --- a/google/cloud/dialogflow_es/internal/intents_tracing_connection.h +++ b/google/cloud/dialogflow_es/internal/intents_tracing_connection.h @@ -61,10 +61,28 @@ class IntentsTracingConnection : public dialogflow_es::IntentsConnection { google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request) override; + StatusOr BatchUpdateIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request) + override; + + future> + BatchUpdateIntents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchDeleteIntents( google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request) override; + StatusOr BatchDeleteIntents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request) + override; + + future> BatchDeleteIntents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/dialogflow_es/knowledge_bases_connection.h b/google/cloud/dialogflow_es/knowledge_bases_connection.h index 0d628d8ca65ad..484b405f12fd1 100644 --- a/google/cloud/dialogflow_es/knowledge_bases_connection.h +++ b/google/cloud/dialogflow_es/knowledge_bases_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_es/internal/knowledge_bases_retry_traits.h" #include "google/cloud/dialogflow_es/knowledge_bases_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dialogflow_es/mocks/mock_agents_connection.h b/google/cloud/dialogflow_es/mocks/mock_agents_connection.h index 60ac939da4548..253e04d8f2ebd 100644 --- a/google/cloud/dialogflow_es/mocks/mock_agents_connection.h +++ b/google/cloud/dialogflow_es/mocks/mock_agents_connection.h @@ -67,22 +67,67 @@ class MockAgentsConnection : public dialogflow_es::AgentsConnection { (google::cloud::dialogflow::v2::TrainAgentRequest const& request), (override)); + MOCK_METHOD(StatusOr, TrainAgent, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::TrainAgentRequest const& request), + (override)); + + MOCK_METHOD(future>, TrainAgent, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ExportAgent, (google::cloud::dialogflow::v2::ExportAgentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ExportAgent, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ExportAgentRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ExportAgent, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ImportAgent, (google::cloud::dialogflow::v2::ImportAgentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ImportAgent, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportAgentRequest const& request), + (override)); + + MOCK_METHOD(future>, ImportAgent, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RestoreAgent, (google::cloud::dialogflow::v2::RestoreAgentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RestoreAgent, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::RestoreAgentRequest const& request), + (override)); + + MOCK_METHOD(future>, RestoreAgent, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetValidationResult, (google::cloud::dialogflow::v2::GetValidationResultRequest const& diff --git a/google/cloud/dialogflow_es/mocks/mock_conversation_datasets_connection.h b/google/cloud/dialogflow_es/mocks/mock_conversation_datasets_connection.h index 4ec6fd46d8c3a..64e9e60c50c91 100644 --- a/google/cloud/dialogflow_es/mocks/mock_conversation_datasets_connection.h +++ b/google/cloud/dialogflow_es/mocks/mock_conversation_datasets_connection.h @@ -54,6 +54,20 @@ class MockConversationDatasetsConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateConversationDataset, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateConversationDataset, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetConversationDataset, @@ -75,6 +89,20 @@ class MockConversationDatasetsConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteConversationDataset, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteConversationDataset, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -82,6 +110,20 @@ class MockConversationDatasetsConnection (google::cloud::dialogflow::v2::ImportConversationDataRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, ImportConversationData, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportConversationDataRequest const& + request), + (override)); + + MOCK_METHOD(future>, + ImportConversationData, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/dialogflow_es/mocks/mock_conversation_models_connection.h b/google/cloud/dialogflow_es/mocks/mock_conversation_models_connection.h index 0fec9aacf9b38..e0c253d2176cc 100644 --- a/google/cloud/dialogflow_es/mocks/mock_conversation_models_connection.h +++ b/google/cloud/dialogflow_es/mocks/mock_conversation_models_connection.h @@ -54,6 +54,20 @@ class MockConversationModelsConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateConversationModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateConversationModelRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateConversationModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetConversationModel, (google::cloud::dialogflow::v2::GetConversationModelRequest const& @@ -74,6 +88,20 @@ class MockConversationModelsConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteConversationModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteConversationModelRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteConversationModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -82,6 +110,20 @@ class MockConversationModelsConnection request), (override)); + MOCK_METHOD( + StatusOr, DeployConversationModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeployConversationModelRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeployConversationModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -90,6 +132,20 @@ class MockConversationModelsConnection request), (override)); + MOCK_METHOD( + StatusOr, UndeployConversationModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::UndeployConversationModelRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UndeployConversationModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetConversationModelEvaluation, @@ -111,6 +167,21 @@ class MockConversationModelsConnection (google::cloud::dialogflow::v2:: CreateConversationModelEvaluationRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + CreateConversationModelEvaluation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2:: + CreateConversationModelEvaluationRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + CreateConversationModelEvaluation, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/dialogflow_es/mocks/mock_conversation_profiles_connection.h b/google/cloud/dialogflow_es/mocks/mock_conversation_profiles_connection.h index d7186b7e143e0..e716fa602496e 100644 --- a/google/cloud/dialogflow_es/mocks/mock_conversation_profiles_connection.h +++ b/google/cloud/dialogflow_es/mocks/mock_conversation_profiles_connection.h @@ -87,12 +87,40 @@ class MockConversationProfilesConnection request), (override)); + MOCK_METHOD( + StatusOr, SetSuggestionFeatureConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + SetSuggestionFeatureConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ClearSuggestionFeatureConfig, (google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, ClearSuggestionFeatureConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + ClearSuggestionFeatureConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/dialogflow_es/mocks/mock_documents_connection.h b/google/cloud/dialogflow_es/mocks/mock_documents_connection.h index 49cc34aee385a..016eae2b751f3 100644 --- a/google/cloud/dialogflow_es/mocks/mock_documents_connection.h +++ b/google/cloud/dialogflow_es/mocks/mock_documents_connection.h @@ -61,12 +61,37 @@ class MockDocumentsConnection : public dialogflow_es::DocumentsConnection { (google::cloud::dialogflow::v2::CreateDocumentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateDocument, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::CreateDocumentRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateDocument, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ImportDocuments, (google::cloud::dialogflow::v2::ImportDocumentsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ImportDocuments, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ImportDocumentsRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ImportDocuments, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -74,20 +99,70 @@ class MockDocumentsConnection : public dialogflow_es::DocumentsConnection { (google::cloud::dialogflow::v2::DeleteDocumentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteDocument, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::DeleteDocumentRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteDocument, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateDocument, (google::cloud::dialogflow::v2::UpdateDocumentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateDocument, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::UpdateDocumentRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateDocument, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ReloadDocument, (google::cloud::dialogflow::v2::ReloadDocumentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ReloadDocument, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ReloadDocumentRequest const& request), + (override)); + + MOCK_METHOD(future>, + ReloadDocument, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ExportDocument, (google::cloud::dialogflow::v2::ExportDocumentRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, ExportDocument, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::ExportDocumentRequest const& request), + (override)); + + MOCK_METHOD(future>, + ExportDocument, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/dialogflow_es/mocks/mock_entity_types_connection.h b/google/cloud/dialogflow_es/mocks/mock_entity_types_connection.h index 1461b5ea04bbe..761ebcdc58240 100644 --- a/google/cloud/dialogflow_es/mocks/mock_entity_types_connection.h +++ b/google/cloud/dialogflow_es/mocks/mock_entity_types_connection.h @@ -79,26 +79,87 @@ class MockEntityTypesConnection : public dialogflow_es::EntityTypesConnection { request), (override)); + MOCK_METHOD( + StatusOr, BatchUpdateEntityTypes, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + BatchUpdateEntityTypes, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, BatchDeleteEntityTypes, (google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& request), (override)); + MOCK_METHOD( + StatusOr, BatchDeleteEntityTypes, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& + request), + (override)); + + MOCK_METHOD(future>, + BatchDeleteEntityTypes, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, BatchCreateEntities, (google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request), (override)); + MOCK_METHOD(StatusOr, BatchCreateEntities, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& + request), + (override)); + + MOCK_METHOD(future>, BatchCreateEntities, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, BatchUpdateEntities, (google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request), (override)); + MOCK_METHOD(StatusOr, BatchUpdateEntities, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& + request), + (override)); + + MOCK_METHOD(future>, BatchUpdateEntities, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, BatchDeleteEntities, (google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request), (override)); + + MOCK_METHOD(StatusOr, BatchDeleteEntities, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& + request), + (override)); + + MOCK_METHOD(future>, BatchDeleteEntities, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/dialogflow_es/mocks/mock_intents_connection.h b/google/cloud/dialogflow_es/mocks/mock_intents_connection.h index 86cb0bf1c7e2e..033ec3f5c871d 100644 --- a/google/cloud/dialogflow_es/mocks/mock_intents_connection.h +++ b/google/cloud/dialogflow_es/mocks/mock_intents_connection.h @@ -76,10 +76,35 @@ class MockIntentsConnection : public dialogflow_es::IntentsConnection { (google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, BatchUpdateIntents, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + BatchUpdateIntents, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, BatchDeleteIntents, (google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, BatchDeleteIntents, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request), + (override)); + + MOCK_METHOD(future>, BatchDeleteIntents, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/dialogflow_es/participants_connection.h b/google/cloud/dialogflow_es/participants_connection.h index a87ef70bb0fd8..2c56423cd974d 100644 --- a/google/cloud/dialogflow_es/participants_connection.h +++ b/google/cloud/dialogflow_es/participants_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_es/internal/participants_retry_traits.h" #include "google/cloud/dialogflow_es/participants_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/async_read_write_stream_impl.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" diff --git a/google/cloud/dialogflow_es/session_entity_types_connection.h b/google/cloud/dialogflow_es/session_entity_types_connection.h index 77c1559d6763d..69727100c8a21 100644 --- a/google/cloud/dialogflow_es/session_entity_types_connection.h +++ b/google/cloud/dialogflow_es/session_entity_types_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_es/internal/session_entity_types_retry_traits.h" #include "google/cloud/dialogflow_es/session_entity_types_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/dialogflow_es/sessions_connection.h b/google/cloud/dialogflow_es/sessions_connection.h index d217e3bcbefed..a9f847ce620e1 100644 --- a/google/cloud/dialogflow_es/sessions_connection.h +++ b/google/cloud/dialogflow_es/sessions_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_es/internal/sessions_retry_traits.h" #include "google/cloud/dialogflow_es/sessions_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/async_read_write_stream_impl.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" diff --git a/google/cloud/dialogflow_es/versions_connection.h b/google/cloud/dialogflow_es/versions_connection.h index 3250742045d4a..8517a01a428e8 100644 --- a/google/cloud/dialogflow_es/versions_connection.h +++ b/google/cloud/dialogflow_es/versions_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dialogflow_es/internal/versions_retry_traits.h" #include "google/cloud/dialogflow_es/versions_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/discoveryengine/v1/completion_connection.cc b/google/cloud/discoveryengine/v1/completion_connection.cc index 683e2c2f12d0b..c4f4ae42ac7a7 100644 --- a/google/cloud/discoveryengine/v1/completion_connection.cc +++ b/google/cloud/discoveryengine/v1/completion_connection.cc @@ -54,6 +54,25 @@ CompletionServiceConnection::ImportSuggestionDenyListEntries( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CompletionServiceConnection::ImportSuggestionDenyListEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + ImportSuggestionDenyListEntriesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CompletionServiceConnection::ImportSuggestionDenyListEntries( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CompletionServiceConnection::PurgeSuggestionDenyListEntries( @@ -65,6 +84,25 @@ CompletionServiceConnection::PurgeSuggestionDenyListEntries( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CompletionServiceConnection::PurgeSuggestionDenyListEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + PurgeSuggestionDenyListEntriesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CompletionServiceConnection::PurgeSuggestionDenyListEntries( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeCompletionServiceConnection( Options options) { internal::CheckExpectedOptions + ImportSuggestionDenyListEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + ImportSuggestionDenyListEntriesRequest const& request); + + virtual future> + ImportSuggestionDenyListEntries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> PurgeSuggestionDenyListEntries( google::cloud::discoveryengine::v1:: PurgeSuggestionDenyListEntriesRequest const& request); + + virtual StatusOr + PurgeSuggestionDenyListEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + PurgeSuggestionDenyListEntriesRequest const& request); + + virtual future> + PurgeSuggestionDenyListEntries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/discoveryengine/v1/control_connection.h b/google/cloud/discoveryengine/v1/control_connection.h index 11e0605b4c482..96ed195d04ac1 100644 --- a/google/cloud/discoveryengine/v1/control_connection.h +++ b/google/cloud/discoveryengine/v1/control_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/discoveryengine/v1/control_connection_idempotency_policy.h" #include "google/cloud/discoveryengine/v1/internal/control_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/discoveryengine/v1/conversational_search_connection.h b/google/cloud/discoveryengine/v1/conversational_search_connection.h index 26650950cff14..d8e56bc1be953 100644 --- a/google/cloud/discoveryengine/v1/conversational_search_connection.h +++ b/google/cloud/discoveryengine/v1/conversational_search_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/discoveryengine/v1/conversational_search_connection_idempotency_policy.h" #include "google/cloud/discoveryengine/v1/internal/conversational_search_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/discoveryengine/v1/data_store_connection.cc b/google/cloud/discoveryengine/v1/data_store_connection.cc index 34abd992a6a8d..86947efe4a00b 100644 --- a/google/cloud/discoveryengine/v1/data_store_connection.cc +++ b/google/cloud/discoveryengine/v1/data_store_connection.cc @@ -46,6 +46,22 @@ DataStoreServiceConnection::CreateDataStore( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataStoreServiceConnection::CreateDataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateDataStoreRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataStoreServiceConnection::CreateDataStore( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DataStoreServiceConnection::GetDataStore( google::cloud::discoveryengine::v1::GetDataStoreRequest const&) { @@ -68,6 +84,22 @@ DataStoreServiceConnection::DeleteDataStore( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataStoreServiceConnection::DeleteDataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteDataStoreRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataStoreServiceConnection::DeleteDataStore( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DataStoreServiceConnection::UpdateDataStore( google::cloud::discoveryengine::v1::UpdateDataStoreRequest const&) { diff --git a/google/cloud/discoveryengine/v1/data_store_connection.h b/google/cloud/discoveryengine/v1/data_store_connection.h index f2ef73d0e6a78..dd93d5cb42667 100644 --- a/google/cloud/discoveryengine/v1/data_store_connection.h +++ b/google/cloud/discoveryengine/v1/data_store_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/discoveryengine/v1/data_store_connection_idempotency_policy.h" #include "google/cloud/discoveryengine/v1/internal/data_store_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -191,6 +193,15 @@ class DataStoreServiceConnection { google::cloud::discoveryengine::v1::CreateDataStoreRequest const& request); + virtual StatusOr CreateDataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateDataStoreRequest const& + request); + + virtual future> + CreateDataStore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetDataStore( google::cloud::discoveryengine::v1::GetDataStoreRequest const& request); @@ -204,6 +215,16 @@ class DataStoreServiceConnection { google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& request); + virtual StatusOr DeleteDataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& + request); + + virtual future< + StatusOr> + DeleteDataStore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr UpdateDataStore( google::cloud::discoveryengine::v1::UpdateDataStoreRequest const& diff --git a/google/cloud/discoveryengine/v1/document_connection.cc b/google/cloud/discoveryengine/v1/document_connection.cc index 6cfdb7de0a9c3..c9dd71b3611e6 100644 --- a/google/cloud/discoveryengine/v1/document_connection.cc +++ b/google/cloud/discoveryengine/v1/document_connection.cc @@ -77,6 +77,22 @@ DocumentServiceConnection::ImportDocuments( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DocumentServiceConnection::ImportDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ImportDocumentsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DocumentServiceConnection::ImportDocuments( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DocumentServiceConnection::PurgeDocuments( google::cloud::discoveryengine::v1::PurgeDocumentsRequest const&) { @@ -85,6 +101,22 @@ DocumentServiceConnection::PurgeDocuments( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DocumentServiceConnection::PurgeDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::PurgeDocumentsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DocumentServiceConnection::PurgeDocuments( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeDocumentServiceConnection( Options options) { internal::CheckExpectedOptions ImportDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ImportDocumentsRequest const& + request); + + virtual future< + StatusOr> + ImportDocuments(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> PurgeDocuments( google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request); + + virtual StatusOr PurgeDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request); + + virtual future< + StatusOr> + PurgeDocuments(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/discoveryengine/v1/engine_connection.cc b/google/cloud/discoveryengine/v1/engine_connection.cc index 0a8390292fd61..ae9e2dee1a4f5 100644 --- a/google/cloud/discoveryengine/v1/engine_connection.cc +++ b/google/cloud/discoveryengine/v1/engine_connection.cc @@ -46,6 +46,21 @@ EngineServiceConnection::CreateEngine( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EngineServiceConnection::CreateEngine( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateEngineRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EngineServiceConnection::CreateEngine(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EngineServiceConnection::DeleteEngine( google::cloud::discoveryengine::v1::DeleteEngineRequest const&) { @@ -54,6 +69,21 @@ EngineServiceConnection::DeleteEngine( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EngineServiceConnection::DeleteEngine( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteEngineRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EngineServiceConnection::DeleteEngine(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr EngineServiceConnection::UpdateEngine( google::cloud::discoveryengine::v1::UpdateEngineRequest const&) { diff --git a/google/cloud/discoveryengine/v1/engine_connection.h b/google/cloud/discoveryengine/v1/engine_connection.h index 7ad139e37f33f..017aa1f4c9d89 100644 --- a/google/cloud/discoveryengine/v1/engine_connection.h +++ b/google/cloud/discoveryengine/v1/engine_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/discoveryengine/v1/engine_connection_idempotency_policy.h" #include "google/cloud/discoveryengine/v1/internal/engine_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -189,11 +191,28 @@ class EngineServiceConnection { CreateEngine( google::cloud::discoveryengine::v1::CreateEngineRequest const& request); + virtual StatusOr CreateEngine( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateEngineRequest const& request); + + virtual future> + CreateEngine(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteEngine( google::cloud::discoveryengine::v1::DeleteEngineRequest const& request); + virtual StatusOr DeleteEngine( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteEngineRequest const& request); + + virtual future< + StatusOr> + DeleteEngine(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr UpdateEngine( google::cloud::discoveryengine::v1::UpdateEngineRequest const& request); diff --git a/google/cloud/discoveryengine/v1/grounded_generation_connection.h b/google/cloud/discoveryengine/v1/grounded_generation_connection.h index 9bb007268ba8b..6b9ff70e3c847 100644 --- a/google/cloud/discoveryengine/v1/grounded_generation_connection.h +++ b/google/cloud/discoveryengine/v1/grounded_generation_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/discoveryengine/v1/grounded_generation_connection_idempotency_policy.h" #include "google/cloud/discoveryengine/v1/internal/grounded_generation_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/discoveryengine/v1/internal/completion_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/completion_connection_impl.cc index 980ee1623a133..b39a4a4b3ae1a 100644 --- a/google/cloud/discoveryengine/v1/internal/completion_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/completion_connection_impl.cc @@ -130,6 +130,67 @@ CompletionServiceConnectionImpl::ImportSuggestionDenyListEntries( polling_policy(*current), __func__); } +StatusOr +CompletionServiceConnectionImpl::ImportSuggestionDenyListEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + ImportSuggestionDenyListEntriesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportSuggestionDenyListEntries(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1:: + ImportSuggestionDenyListEntriesRequest const& request) { + return stub_->ImportSuggestionDenyListEntries(context, options, + request); + }, + *current, request, __func__); +} + +future> +CompletionServiceConnectionImpl::ImportSuggestionDenyListEntries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportSuggestionDenyListEntries", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1:: + ImportSuggestionDenyListEntriesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1:: + ImportSuggestionDenyListEntriesResponse>, + polling_policy(*current), __func__); +} + future> CompletionServiceConnectionImpl::PurgeSuggestionDenyListEntries( @@ -174,6 +235,66 @@ CompletionServiceConnectionImpl::PurgeSuggestionDenyListEntries( polling_policy(*current), __func__); } +StatusOr +CompletionServiceConnectionImpl::PurgeSuggestionDenyListEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + PurgeSuggestionDenyListEntriesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PurgeSuggestionDenyListEntries(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1:: + PurgeSuggestionDenyListEntriesRequest const& request) { + return stub_->PurgeSuggestionDenyListEntries(context, options, request); + }, + *current, request, __func__); +} + +future> +CompletionServiceConnectionImpl::PurgeSuggestionDenyListEntries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to PurgeSuggestionDenyListEntries", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1:: + PurgeSuggestionDenyListEntriesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1:: + PurgeSuggestionDenyListEntriesResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace discoveryengine_v1_internal } // namespace cloud diff --git a/google/cloud/discoveryengine/v1/internal/completion_connection_impl.h b/google/cloud/discoveryengine/v1/internal/completion_connection_impl.h index e23575cccbf97..ced92a3c83bc8 100644 --- a/google/cloud/discoveryengine/v1/internal/completion_connection_impl.h +++ b/google/cloud/discoveryengine/v1/internal/completion_connection_impl.h @@ -61,12 +61,34 @@ class CompletionServiceConnectionImpl google::cloud::discoveryengine::v1:: ImportSuggestionDenyListEntriesRequest const& request) override; + StatusOr ImportSuggestionDenyListEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + ImportSuggestionDenyListEntriesRequest const& request) override; + + future> + ImportSuggestionDenyListEntries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PurgeSuggestionDenyListEntries( google::cloud::discoveryengine::v1:: PurgeSuggestionDenyListEntriesRequest const& request) override; + StatusOr PurgeSuggestionDenyListEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + PurgeSuggestionDenyListEntriesRequest const& request) override; + + future> + PurgeSuggestionDenyListEntries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.cc index 22b0ddb706424..e5d3fb0a41fd9 100644 --- a/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.cc @@ -54,6 +54,34 @@ CompletionServiceTracingConnection::ImportSuggestionDenyListEntries( child_->ImportSuggestionDenyListEntries(request)); } +StatusOr +CompletionServiceTracingConnection::ImportSuggestionDenyListEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + ImportSuggestionDenyListEntriesRequest const& request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::CompletionServiceConnection::" + "ImportSuggestionDenyListEntries"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ImportSuggestionDenyListEntries( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CompletionServiceTracingConnection::ImportSuggestionDenyListEntries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::CompletionServiceConnection::" + "ImportSuggestionDenyListEntries"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ImportSuggestionDenyListEntries( + google::cloud::ExperimentalTag{}, operation)); +} + future> CompletionServiceTracingConnection::PurgeSuggestionDenyListEntries( @@ -67,6 +95,34 @@ CompletionServiceTracingConnection::PurgeSuggestionDenyListEntries( child_->PurgeSuggestionDenyListEntries(request)); } +StatusOr +CompletionServiceTracingConnection::PurgeSuggestionDenyListEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + PurgeSuggestionDenyListEntriesRequest const& request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::CompletionServiceConnection::" + "PurgeSuggestionDenyListEntries"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->PurgeSuggestionDenyListEntries( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CompletionServiceTracingConnection::PurgeSuggestionDenyListEntries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::CompletionServiceConnection::" + "PurgeSuggestionDenyListEntries"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->PurgeSuggestionDenyListEntries( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.h b/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.h index f0d6f5fb88a5b..549d523c7abff 100644 --- a/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.h +++ b/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.h @@ -50,12 +50,34 @@ class CompletionServiceTracingConnection google::cloud::discoveryengine::v1:: ImportSuggestionDenyListEntriesRequest const& request) override; + StatusOr ImportSuggestionDenyListEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + ImportSuggestionDenyListEntriesRequest const& request) override; + + future> + ImportSuggestionDenyListEntries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PurgeSuggestionDenyListEntries( google::cloud::discoveryengine::v1:: PurgeSuggestionDenyListEntriesRequest const& request) override; + StatusOr PurgeSuggestionDenyListEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + PurgeSuggestionDenyListEntriesRequest const& request) override; + + future> + PurgeSuggestionDenyListEntries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.cc index bad8811e61bda..4ae47276b74f2 100644 --- a/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.cc @@ -108,6 +108,61 @@ DataStoreServiceConnectionImpl::CreateDataStore( polling_policy(*current), __func__); } +StatusOr +DataStoreServiceConnectionImpl::CreateDataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateDataStoreRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDataStore(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1::CreateDataStoreRequest const& + request) { + return stub_->CreateDataStore(context, options, request); + }, + *current, request, __func__); +} + +future> +DataStoreServiceConnectionImpl::CreateDataStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDataStore", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::DataStore>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1::DataStore>, + polling_policy(*current), __func__); +} + StatusOr DataStoreServiceConnectionImpl::GetDataStore( google::cloud::discoveryengine::v1::GetDataStoreRequest const& request) { @@ -198,6 +253,61 @@ DataStoreServiceConnectionImpl::DeleteDataStore( polling_policy(*current), __func__); } +StatusOr +DataStoreServiceConnectionImpl::DeleteDataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDataStore(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& + request) { + return stub_->DeleteDataStore(context, options, request); + }, + *current, request, __func__); +} + +future> +DataStoreServiceConnectionImpl::DeleteDataStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDataStore", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::DeleteDataStoreMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::discoveryengine::v1::DeleteDataStoreMetadata>, + polling_policy(*current), __func__); +} + StatusOr DataStoreServiceConnectionImpl::UpdateDataStore( google::cloud::discoveryengine::v1::UpdateDataStoreRequest const& request) { diff --git a/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.h b/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.h index 5a072fe6722ca..cc58cfd942c1d 100644 --- a/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.h +++ b/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.h @@ -57,6 +57,15 @@ class DataStoreServiceConnectionImpl google::cloud::discoveryengine::v1::CreateDataStoreRequest const& request) override; + StatusOr CreateDataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateDataStoreRequest const& request) + override; + + future> + CreateDataStore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDataStore( google::cloud::discoveryengine::v1::GetDataStoreRequest const& request) override; @@ -70,6 +79,15 @@ class DataStoreServiceConnectionImpl google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& request) override; + StatusOr DeleteDataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& request) + override; + + future> + DeleteDataStore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateDataStore( google::cloud::discoveryengine::v1::UpdateDataStoreRequest const& request) override; diff --git a/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.cc index 1a7972ca1d69f..6a6dc2cbcc3ae 100644 --- a/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.cc @@ -42,6 +42,30 @@ DataStoreServiceTracingConnection::CreateDataStore( return internal::EndSpan(std::move(span), child_->CreateDataStore(request)); } +StatusOr +DataStoreServiceTracingConnection::CreateDataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateDataStoreRequest const& request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::DataStoreServiceConnection::CreateDataStore"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateDataStore(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataStoreServiceTracingConnection::CreateDataStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::DataStoreServiceConnection::CreateDataStore"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateDataStore(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DataStoreServiceTracingConnection::GetDataStore( google::cloud::discoveryengine::v1::GetDataStoreRequest const& request) { @@ -72,6 +96,30 @@ DataStoreServiceTracingConnection::DeleteDataStore( return internal::EndSpan(std::move(span), child_->DeleteDataStore(request)); } +StatusOr +DataStoreServiceTracingConnection::DeleteDataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::DataStoreServiceConnection::DeleteDataStore"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteDataStore(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataStoreServiceTracingConnection::DeleteDataStore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::DataStoreServiceConnection::DeleteDataStore"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteDataStore(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DataStoreServiceTracingConnection::UpdateDataStore( google::cloud::discoveryengine::v1::UpdateDataStoreRequest const& request) { diff --git a/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.h b/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.h index 344c45fc9000a..7fd8b5f155ff3 100644 --- a/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.h +++ b/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.h @@ -45,6 +45,15 @@ class DataStoreServiceTracingConnection google::cloud::discoveryengine::v1::CreateDataStoreRequest const& request) override; + StatusOr CreateDataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateDataStoreRequest const& request) + override; + + future> + CreateDataStore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDataStore( google::cloud::discoveryengine::v1::GetDataStoreRequest const& request) override; @@ -58,6 +67,15 @@ class DataStoreServiceTracingConnection google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& request) override; + StatusOr DeleteDataStore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& request) + override; + + future> + DeleteDataStore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateDataStore( google::cloud::discoveryengine::v1::UpdateDataStoreRequest const& request) override; diff --git a/google/cloud/discoveryengine/v1/internal/document_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/document_connection_impl.cc index 58e85333f543d..5f789f8a37b5a 100644 --- a/google/cloud/discoveryengine/v1/internal/document_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/document_connection_impl.cc @@ -202,6 +202,61 @@ DocumentServiceConnectionImpl::ImportDocuments( polling_policy(*current), __func__); } +StatusOr +DocumentServiceConnectionImpl::ImportDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ImportDocumentsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportDocuments(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1::ImportDocumentsRequest const& + request) { + return stub_->ImportDocuments(context, options, request); + }, + *current, request, __func__); +} + +future> +DocumentServiceConnectionImpl::ImportDocuments( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportDocuments", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::ImportDocumentsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1::ImportDocumentsResponse>, + polling_policy(*current), __func__); +} + future> DocumentServiceConnectionImpl::PurgeDocuments( google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request) { @@ -242,6 +297,61 @@ DocumentServiceConnectionImpl::PurgeDocuments( polling_policy(*current), __func__); } +StatusOr +DocumentServiceConnectionImpl::PurgeDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PurgeDocuments(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& + request) { + return stub_->PurgeDocuments(context, options, request); + }, + *current, request, __func__); +} + +future> +DocumentServiceConnectionImpl::PurgeDocuments( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to PurgeDocuments", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::PurgeDocumentsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1::PurgeDocumentsResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace discoveryengine_v1_internal } // namespace cloud diff --git a/google/cloud/discoveryengine/v1/internal/document_connection_impl.h b/google/cloud/discoveryengine/v1/internal/document_connection_impl.h index 42f7049f13752..af7ba2dbfbf74 100644 --- a/google/cloud/discoveryengine/v1/internal/document_connection_impl.h +++ b/google/cloud/discoveryengine/v1/internal/document_connection_impl.h @@ -77,11 +77,29 @@ class DocumentServiceConnectionImpl google::cloud::discoveryengine::v1::ImportDocumentsRequest const& request) override; + StatusOr ImportDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ImportDocumentsRequest const& request) + override; + + future> + ImportDocuments(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PurgeDocuments( google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request) override; + StatusOr PurgeDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request) + override; + + future> + PurgeDocuments(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/discoveryengine/v1/internal/document_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/document_tracing_connection.cc index f5210d0308ce8..3817051f1a208 100644 --- a/google/cloud/discoveryengine/v1/internal/document_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/document_tracing_connection.cc @@ -89,6 +89,30 @@ DocumentServiceTracingConnection::ImportDocuments( return internal::EndSpan(std::move(span), child_->ImportDocuments(request)); } +StatusOr +DocumentServiceTracingConnection::ImportDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ImportDocumentsRequest const& request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::DocumentServiceConnection::ImportDocuments"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportDocuments(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DocumentServiceTracingConnection::ImportDocuments( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::DocumentServiceConnection::ImportDocuments"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportDocuments(google::cloud::ExperimentalTag{}, operation)); +} + future> DocumentServiceTracingConnection::PurgeDocuments( google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request) { @@ -98,6 +122,30 @@ DocumentServiceTracingConnection::PurgeDocuments( return internal::EndSpan(std::move(span), child_->PurgeDocuments(request)); } +StatusOr +DocumentServiceTracingConnection::PurgeDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::DocumentServiceConnection::PurgeDocuments"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PurgeDocuments(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DocumentServiceTracingConnection::PurgeDocuments( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::DocumentServiceConnection::PurgeDocuments"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PurgeDocuments(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/discoveryengine/v1/internal/document_tracing_connection.h b/google/cloud/discoveryengine/v1/internal/document_tracing_connection.h index 517782ede0428..096e929058530 100644 --- a/google/cloud/discoveryengine/v1/internal/document_tracing_connection.h +++ b/google/cloud/discoveryengine/v1/internal/document_tracing_connection.h @@ -65,11 +65,29 @@ class DocumentServiceTracingConnection google::cloud::discoveryengine::v1::ImportDocumentsRequest const& request) override; + StatusOr ImportDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ImportDocumentsRequest const& request) + override; + + future> + ImportDocuments(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PurgeDocuments( google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request) override; + StatusOr PurgeDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request) + override; + + future> + PurgeDocuments(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/discoveryengine/v1/internal/engine_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/engine_connection_impl.cc index 0971d55603121..3d7e29d08c14f 100644 --- a/google/cloud/discoveryengine/v1/internal/engine_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/engine_connection_impl.cc @@ -107,6 +107,61 @@ EngineServiceConnectionImpl::CreateEngine( polling_policy(*current), __func__); } +StatusOr +EngineServiceConnectionImpl::CreateEngine( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateEngineRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateEngine(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1::CreateEngineRequest const& + request) { + return stub_->CreateEngine(context, options, request); + }, + *current, request, __func__); +} + +future> +EngineServiceConnectionImpl::CreateEngine( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateEngine", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::Engine>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1::Engine>, + polling_policy(*current), __func__); +} + future> EngineServiceConnectionImpl::DeleteEngine( google::cloud::discoveryengine::v1::DeleteEngineRequest const& request) { @@ -147,6 +202,61 @@ EngineServiceConnectionImpl::DeleteEngine( polling_policy(*current), __func__); } +StatusOr +EngineServiceConnectionImpl::DeleteEngine( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteEngineRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteEngine(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1::DeleteEngineRequest const& + request) { + return stub_->DeleteEngine(context, options, request); + }, + *current, request, __func__); +} + +future> +EngineServiceConnectionImpl::DeleteEngine( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteEngine", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::DeleteEngineMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::discoveryengine::v1::DeleteEngineMetadata>, + polling_policy(*current), __func__); +} + StatusOr EngineServiceConnectionImpl::UpdateEngine( google::cloud::discoveryengine::v1::UpdateEngineRequest const& request) { diff --git a/google/cloud/discoveryengine/v1/internal/engine_connection_impl.h b/google/cloud/discoveryengine/v1/internal/engine_connection_impl.h index eccf678b721ea..c55447bbcd2d2 100644 --- a/google/cloud/discoveryengine/v1/internal/engine_connection_impl.h +++ b/google/cloud/discoveryengine/v1/internal/engine_connection_impl.h @@ -56,10 +56,28 @@ class EngineServiceConnectionImpl google::cloud::discoveryengine::v1::CreateEngineRequest const& request) override; + StatusOr CreateEngine( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateEngineRequest const& request) + override; + + future> CreateEngine( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEngine(google::cloud::discoveryengine::v1::DeleteEngineRequest const& request) override; + StatusOr DeleteEngine( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteEngineRequest const& request) + override; + + future> + DeleteEngine(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateEngine( google::cloud::discoveryengine::v1::UpdateEngineRequest const& request) override; diff --git a/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.cc index ee4203a562c9a..d625b4757c819 100644 --- a/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.cc @@ -42,6 +42,30 @@ EngineServiceTracingConnection::CreateEngine( return internal::EndSpan(std::move(span), child_->CreateEngine(request)); } +StatusOr +EngineServiceTracingConnection::CreateEngine( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateEngineRequest const& request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::EngineServiceConnection::CreateEngine"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateEngine(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EngineServiceTracingConnection::CreateEngine( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::EngineServiceConnection::CreateEngine"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateEngine(google::cloud::ExperimentalTag{}, operation)); +} + future> EngineServiceTracingConnection::DeleteEngine( google::cloud::discoveryengine::v1::DeleteEngineRequest const& request) { @@ -51,6 +75,30 @@ EngineServiceTracingConnection::DeleteEngine( return internal::EndSpan(std::move(span), child_->DeleteEngine(request)); } +StatusOr +EngineServiceTracingConnection::DeleteEngine( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteEngineRequest const& request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::EngineServiceConnection::DeleteEngine"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteEngine(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EngineServiceTracingConnection::DeleteEngine( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::EngineServiceConnection::DeleteEngine"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteEngine(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr EngineServiceTracingConnection::UpdateEngine( google::cloud::discoveryengine::v1::UpdateEngineRequest const& request) { diff --git a/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.h b/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.h index ab724d3b7ffc3..b6bf680d58ae5 100644 --- a/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.h +++ b/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.h @@ -44,10 +44,28 @@ class EngineServiceTracingConnection google::cloud::discoveryengine::v1::CreateEngineRequest const& request) override; + StatusOr CreateEngine( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateEngineRequest const& request) + override; + + future> CreateEngine( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEngine(google::cloud::discoveryengine::v1::DeleteEngineRequest const& request) override; + StatusOr DeleteEngine( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteEngineRequest const& request) + override; + + future> + DeleteEngine(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateEngine( google::cloud::discoveryengine::v1::UpdateEngineRequest const& request) override; diff --git a/google/cloud/discoveryengine/v1/internal/project_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/project_connection_impl.cc index 83acea47824de..9d3202b167773 100644 --- a/google/cloud/discoveryengine/v1/internal/project_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/project_connection_impl.cc @@ -108,6 +108,62 @@ ProjectServiceConnectionImpl::ProvisionProject( polling_policy(*current), __func__); } +StatusOr +ProjectServiceConnectionImpl::ProvisionProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ProvisionProjectRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ProvisionProject(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1::ProvisionProjectRequest const& + request) { + return stub_->ProvisionProject(context, options, request); + }, + *current, request, __func__); +} + +future> +ProjectServiceConnectionImpl::ProvisionProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ProvisionProject", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::Project>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1::Project>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace discoveryengine_v1_internal } // namespace cloud diff --git a/google/cloud/discoveryengine/v1/internal/project_connection_impl.h b/google/cloud/discoveryengine/v1/internal/project_connection_impl.h index 92123a3933f41..97a73ebdabcef 100644 --- a/google/cloud/discoveryengine/v1/internal/project_connection_impl.h +++ b/google/cloud/discoveryengine/v1/internal/project_connection_impl.h @@ -56,6 +56,15 @@ class ProjectServiceConnectionImpl google::cloud::discoveryengine::v1::ProvisionProjectRequest const& request) override; + StatusOr ProvisionProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ProvisionProjectRequest const& + request) override; + + future> + ProvisionProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/discoveryengine/v1/internal/project_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/project_tracing_connection.cc index a653990b2d8f1..672d9655926be 100644 --- a/google/cloud/discoveryengine/v1/internal/project_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/project_tracing_connection.cc @@ -42,6 +42,31 @@ ProjectServiceTracingConnection::ProvisionProject( return internal::EndSpan(std::move(span), child_->ProvisionProject(request)); } +StatusOr +ProjectServiceTracingConnection::ProvisionProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ProvisionProjectRequest const& + request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::ProjectServiceConnection::ProvisionProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ProvisionProject(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProjectServiceTracingConnection::ProvisionProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::ProjectServiceConnection::ProvisionProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ProvisionProject(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/discoveryengine/v1/internal/project_tracing_connection.h b/google/cloud/discoveryengine/v1/internal/project_tracing_connection.h index 69658913fc61a..fe1af5cb25c97 100644 --- a/google/cloud/discoveryengine/v1/internal/project_tracing_connection.h +++ b/google/cloud/discoveryengine/v1/internal/project_tracing_connection.h @@ -45,6 +45,15 @@ class ProjectServiceTracingConnection google::cloud::discoveryengine::v1::ProvisionProjectRequest const& request) override; + StatusOr ProvisionProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ProvisionProjectRequest const& + request) override; + + future> + ProvisionProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/discoveryengine/v1/internal/schema_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/schema_connection_impl.cc index e2ff8a4c276c2..6304decbc18f7 100644 --- a/google/cloud/discoveryengine/v1/internal/schema_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/schema_connection_impl.cc @@ -156,6 +156,61 @@ SchemaServiceConnectionImpl::CreateSchema( polling_policy(*current), __func__); } +StatusOr +SchemaServiceConnectionImpl::CreateSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateSchemaRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateSchema(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1::CreateSchemaRequest const& + request) { + return stub_->CreateSchema(context, options, request); + }, + *current, request, __func__); +} + +future> +SchemaServiceConnectionImpl::CreateSchema( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateSchema", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::Schema>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1::Schema>, + polling_policy(*current), __func__); +} + future> SchemaServiceConnectionImpl::UpdateSchema( google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request) { @@ -196,6 +251,61 @@ SchemaServiceConnectionImpl::UpdateSchema( polling_policy(*current), __func__); } +StatusOr +SchemaServiceConnectionImpl::UpdateSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateSchema(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1::UpdateSchemaRequest const& + request) { + return stub_->UpdateSchema(context, options, request); + }, + *current, request, __func__); +} + +future> +SchemaServiceConnectionImpl::UpdateSchema( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateSchema", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::Schema>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1::Schema>, + polling_policy(*current), __func__); +} + future> SchemaServiceConnectionImpl::DeleteSchema( google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request) { @@ -236,6 +346,61 @@ SchemaServiceConnectionImpl::DeleteSchema( polling_policy(*current), __func__); } +StatusOr +SchemaServiceConnectionImpl::DeleteSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSchema(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1::DeleteSchemaRequest const& + request) { + return stub_->DeleteSchema(context, options, request); + }, + *current, request, __func__); +} + +future> +SchemaServiceConnectionImpl::DeleteSchema( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteSchema", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::DeleteSchemaMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::discoveryengine::v1::DeleteSchemaMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace discoveryengine_v1_internal } // namespace cloud diff --git a/google/cloud/discoveryengine/v1/internal/schema_connection_impl.h b/google/cloud/discoveryengine/v1/internal/schema_connection_impl.h index 02843867cc402..379bcd8abd118 100644 --- a/google/cloud/discoveryengine/v1/internal/schema_connection_impl.h +++ b/google/cloud/discoveryengine/v1/internal/schema_connection_impl.h @@ -63,14 +63,41 @@ class SchemaServiceConnectionImpl google::cloud::discoveryengine::v1::CreateSchemaRequest const& request) override; + StatusOr CreateSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateSchemaRequest const& request) + override; + + future> CreateSchema( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateSchema( google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request) override; + StatusOr UpdateSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request) + override; + + future> UpdateSchema( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSchema(google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request) override; + StatusOr DeleteSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request) + override; + + future> + DeleteSchema(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.cc index f7cc9e7b055a1..e533b686dbdfe 100644 --- a/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.cc @@ -63,6 +63,30 @@ SchemaServiceTracingConnection::CreateSchema( return internal::EndSpan(std::move(span), child_->CreateSchema(request)); } +StatusOr +SchemaServiceTracingConnection::CreateSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateSchemaRequest const& request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SchemaServiceConnection::CreateSchema"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateSchema(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SchemaServiceTracingConnection::CreateSchema( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SchemaServiceConnection::CreateSchema"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateSchema(google::cloud::ExperimentalTag{}, operation)); +} + future> SchemaServiceTracingConnection::UpdateSchema( google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request) { @@ -72,6 +96,30 @@ SchemaServiceTracingConnection::UpdateSchema( return internal::EndSpan(std::move(span), child_->UpdateSchema(request)); } +StatusOr +SchemaServiceTracingConnection::UpdateSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SchemaServiceConnection::UpdateSchema"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateSchema(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SchemaServiceTracingConnection::UpdateSchema( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SchemaServiceConnection::UpdateSchema"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateSchema(google::cloud::ExperimentalTag{}, operation)); +} + future> SchemaServiceTracingConnection::DeleteSchema( google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request) { @@ -81,6 +129,30 @@ SchemaServiceTracingConnection::DeleteSchema( return internal::EndSpan(std::move(span), child_->DeleteSchema(request)); } +StatusOr +SchemaServiceTracingConnection::DeleteSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SchemaServiceConnection::DeleteSchema"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSchema(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SchemaServiceTracingConnection::DeleteSchema( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SchemaServiceConnection::DeleteSchema"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSchema(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.h b/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.h index f688218af65db..89847082024a9 100644 --- a/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.h +++ b/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.h @@ -51,14 +51,41 @@ class SchemaServiceTracingConnection google::cloud::discoveryengine::v1::CreateSchemaRequest const& request) override; + StatusOr CreateSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateSchemaRequest const& request) + override; + + future> CreateSchema( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateSchema( google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request) override; + StatusOr UpdateSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request) + override; + + future> UpdateSchema( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSchema(google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request) override; + StatusOr DeleteSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request) + override; + + future> + DeleteSchema(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.cc index fa09f13b63599..326aaeab37f5c 100644 --- a/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.cc @@ -131,6 +131,62 @@ SiteSearchEngineServiceConnectionImpl::CreateTargetSite( polling_policy(*current), __func__); } +StatusOr +SiteSearchEngineServiceConnectionImpl::CreateTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateTargetSite(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& + request) { + return stub_->CreateTargetSite(context, options, request); + }, + *current, request, __func__); +} + +future> +SiteSearchEngineServiceConnectionImpl::CreateTargetSite( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateTargetSite", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::TargetSite>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1::TargetSite>, + polling_policy(*current), __func__); +} + future> SiteSearchEngineServiceConnectionImpl::BatchCreateTargetSites( @@ -172,6 +228,63 @@ SiteSearchEngineServiceConnectionImpl::BatchCreateTargetSites( polling_policy(*current), __func__); } +StatusOr +SiteSearchEngineServiceConnectionImpl::BatchCreateTargetSites( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchCreateTargetSites(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1:: + BatchCreateTargetSitesRequest const& request) { + return stub_->BatchCreateTargetSites(context, options, request); + }, + *current, request, __func__); +} + +future> +SiteSearchEngineServiceConnectionImpl::BatchCreateTargetSites( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to BatchCreateTargetSites", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::BatchCreateTargetSitesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1::BatchCreateTargetSitesResponse>, + polling_policy(*current), __func__); +} + StatusOr SiteSearchEngineServiceConnectionImpl::GetTargetSite( google::cloud::discoveryengine::v1::GetTargetSiteRequest const& request) { @@ -228,6 +341,62 @@ SiteSearchEngineServiceConnectionImpl::UpdateTargetSite( polling_policy(*current), __func__); } +StatusOr +SiteSearchEngineServiceConnectionImpl::UpdateTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateTargetSite(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& + request) { + return stub_->UpdateTargetSite(context, options, request); + }, + *current, request, __func__); +} + +future> +SiteSearchEngineServiceConnectionImpl::UpdateTargetSite( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateTargetSite", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::TargetSite>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1::TargetSite>, + polling_policy(*current), __func__); +} + future> SiteSearchEngineServiceConnectionImpl::DeleteTargetSite( google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& @@ -269,6 +438,62 @@ SiteSearchEngineServiceConnectionImpl::DeleteTargetSite( polling_policy(*current), __func__); } +StatusOr +SiteSearchEngineServiceConnectionImpl::DeleteTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTargetSite(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& + request) { + return stub_->DeleteTargetSite(context, options, request); + }, + *current, request, __func__); +} + +future> +SiteSearchEngineServiceConnectionImpl::DeleteTargetSite( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTargetSite", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::DeleteTargetSiteMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::discoveryengine::v1::DeleteTargetSiteMetadata>, + polling_policy(*current), __func__); +} + StreamRange SiteSearchEngineServiceConnectionImpl::ListTargetSites( google::cloud::discoveryengine::v1::ListTargetSitesRequest request) { @@ -345,6 +570,63 @@ SiteSearchEngineServiceConnectionImpl::EnableAdvancedSiteSearch( polling_policy(*current), __func__); } +StatusOr +SiteSearchEngineServiceConnectionImpl::EnableAdvancedSiteSearch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->EnableAdvancedSiteSearch(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1:: + EnableAdvancedSiteSearchRequest const& request) { + return stub_->EnableAdvancedSiteSearch(context, options, request); + }, + *current, request, __func__); +} + +future> +SiteSearchEngineServiceConnectionImpl::EnableAdvancedSiteSearch( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to EnableAdvancedSiteSearch", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchResponse>, + polling_policy(*current), __func__); +} + future> SiteSearchEngineServiceConnectionImpl::DisableAdvancedSiteSearch( @@ -387,6 +669,64 @@ SiteSearchEngineServiceConnectionImpl::DisableAdvancedSiteSearch( polling_policy(*current), __func__); } +StatusOr +SiteSearchEngineServiceConnectionImpl::DisableAdvancedSiteSearch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DisableAdvancedSiteSearchRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DisableAdvancedSiteSearch(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1:: + DisableAdvancedSiteSearchRequest const& request) { + return stub_->DisableAdvancedSiteSearch(context, options, request); + }, + *current, request, __func__); +} + +future> +SiteSearchEngineServiceConnectionImpl::DisableAdvancedSiteSearch( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DisableAdvancedSiteSearch", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::DisableAdvancedSiteSearchResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1:: + DisableAdvancedSiteSearchResponse>, + polling_policy(*current), __func__); +} + future> SiteSearchEngineServiceConnectionImpl::RecrawlUris( google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request) { @@ -427,6 +767,61 @@ SiteSearchEngineServiceConnectionImpl::RecrawlUris( polling_policy(*current), __func__); } +StatusOr +SiteSearchEngineServiceConnectionImpl::RecrawlUris( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RecrawlUris(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1::RecrawlUrisRequest const& + request) { + return stub_->RecrawlUris(context, options, request); + }, + *current, request, __func__); +} + +future> +SiteSearchEngineServiceConnectionImpl::RecrawlUris( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RecrawlUris", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::RecrawlUrisResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1::RecrawlUrisResponse>, + polling_policy(*current), __func__); +} + future> SiteSearchEngineServiceConnectionImpl::BatchVerifyTargetSites( @@ -468,6 +863,63 @@ SiteSearchEngineServiceConnectionImpl::BatchVerifyTargetSites( polling_policy(*current), __func__); } +StatusOr +SiteSearchEngineServiceConnectionImpl::BatchVerifyTargetSites( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchVerifyTargetSites(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1:: + BatchVerifyTargetSitesRequest const& request) { + return stub_->BatchVerifyTargetSites(context, options, request); + }, + *current, request, __func__); +} + +future> +SiteSearchEngineServiceConnectionImpl::BatchVerifyTargetSites( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to BatchVerifyTargetSites", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::BatchVerifyTargetSitesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1::BatchVerifyTargetSitesResponse>, + polling_policy(*current), __func__); +} + StreamRange SiteSearchEngineServiceConnectionImpl::FetchDomainVerificationStatus( google::cloud::discoveryengine::v1::FetchDomainVerificationStatusRequest diff --git a/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.h b/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.h index ecb7b37d53f1c..338478671e9a1 100644 --- a/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.h +++ b/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.h @@ -63,12 +63,32 @@ class SiteSearchEngineServiceConnectionImpl google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& request) override; + StatusOr CreateTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& + request) override; + + future> + CreateTargetSite(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchCreateTargetSites( google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& request) override; + StatusOr BatchCreateTargetSites( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& + request) override; + + future> + BatchCreateTargetSites( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetTargetSite( google::cloud::discoveryengine::v1::GetTargetSiteRequest const& request) override; @@ -78,11 +98,29 @@ class SiteSearchEngineServiceConnectionImpl google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& request) override; + StatusOr UpdateTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& + request) override; + + future> + UpdateTargetSite(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTargetSite( google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& request) override; + StatusOr DeleteTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& + request) override; + + future> + DeleteTargetSite(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTargetSites( google::cloud::discoveryengine::v1::ListTargetSitesRequest request) override; @@ -93,22 +131,64 @@ class SiteSearchEngineServiceConnectionImpl google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const& request) override; + StatusOr EnableAdvancedSiteSearch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const& + request) override; + + future> + EnableAdvancedSiteSearch( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DisableAdvancedSiteSearch( google::cloud::discoveryengine::v1:: DisableAdvancedSiteSearchRequest const& request) override; + StatusOr DisableAdvancedSiteSearch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + DisableAdvancedSiteSearchRequest const& request) override; + + future> + DisableAdvancedSiteSearch( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RecrawlUris(google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request) override; + StatusOr RecrawlUris( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request) + override; + + future> + RecrawlUris(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchVerifyTargetSites( google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& request) override; + StatusOr BatchVerifyTargetSites( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& + request) override; + + future> + BatchVerifyTargetSites( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange FetchDomainVerificationStatus( google::cloud::discoveryengine::v1::FetchDomainVerificationStatusRequest diff --git a/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.cc index 8cce976e9a3d4..8922bd6508984 100644 --- a/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.cc @@ -57,6 +57,33 @@ SiteSearchEngineServiceTracingConnection::CreateTargetSite( return internal::EndSpan(std::move(span), child_->CreateTargetSite(request)); } +StatusOr +SiteSearchEngineServiceTracingConnection::CreateTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& + request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SiteSearchEngineServiceConnection::" + "CreateTargetSite"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateTargetSite(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SiteSearchEngineServiceTracingConnection::CreateTargetSite( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SiteSearchEngineServiceConnection::" + "CreateTargetSite"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateTargetSite(google::cloud::ExperimentalTag{}, operation)); +} + future> SiteSearchEngineServiceTracingConnection::BatchCreateTargetSites( @@ -70,6 +97,34 @@ SiteSearchEngineServiceTracingConnection::BatchCreateTargetSites( child_->BatchCreateTargetSites(request)); } +StatusOr +SiteSearchEngineServiceTracingConnection::BatchCreateTargetSites( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& + request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SiteSearchEngineServiceConnection::" + "BatchCreateTargetSites"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->BatchCreateTargetSites( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SiteSearchEngineServiceTracingConnection::BatchCreateTargetSites( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SiteSearchEngineServiceConnection::" + "BatchCreateTargetSites"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->BatchCreateTargetSites( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SiteSearchEngineServiceTracingConnection::GetTargetSite( google::cloud::discoveryengine::v1::GetTargetSiteRequest const& request) { @@ -90,6 +145,33 @@ SiteSearchEngineServiceTracingConnection::UpdateTargetSite( return internal::EndSpan(std::move(span), child_->UpdateTargetSite(request)); } +StatusOr +SiteSearchEngineServiceTracingConnection::UpdateTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& + request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SiteSearchEngineServiceConnection::" + "UpdateTargetSite"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateTargetSite(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SiteSearchEngineServiceTracingConnection::UpdateTargetSite( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SiteSearchEngineServiceConnection::" + "UpdateTargetSite"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateTargetSite(google::cloud::ExperimentalTag{}, operation)); +} + future> SiteSearchEngineServiceTracingConnection::DeleteTargetSite( google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& @@ -101,6 +183,33 @@ SiteSearchEngineServiceTracingConnection::DeleteTargetSite( return internal::EndSpan(std::move(span), child_->DeleteTargetSite(request)); } +StatusOr +SiteSearchEngineServiceTracingConnection::DeleteTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& + request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SiteSearchEngineServiceConnection::" + "DeleteTargetSite"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteTargetSite(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SiteSearchEngineServiceTracingConnection::DeleteTargetSite( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SiteSearchEngineServiceConnection::" + "DeleteTargetSite"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteTargetSite(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange SiteSearchEngineServiceTracingConnection::ListTargetSites( google::cloud::discoveryengine::v1::ListTargetSitesRequest request) { @@ -126,6 +235,34 @@ SiteSearchEngineServiceTracingConnection::EnableAdvancedSiteSearch( child_->EnableAdvancedSiteSearch(request)); } +StatusOr +SiteSearchEngineServiceTracingConnection::EnableAdvancedSiteSearch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const& + request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SiteSearchEngineServiceConnection::" + "EnableAdvancedSiteSearch"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->EnableAdvancedSiteSearch( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SiteSearchEngineServiceTracingConnection::EnableAdvancedSiteSearch( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SiteSearchEngineServiceConnection::" + "EnableAdvancedSiteSearch"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->EnableAdvancedSiteSearch( + google::cloud::ExperimentalTag{}, operation)); +} + future> SiteSearchEngineServiceTracingConnection::DisableAdvancedSiteSearch( @@ -139,6 +276,34 @@ SiteSearchEngineServiceTracingConnection::DisableAdvancedSiteSearch( child_->DisableAdvancedSiteSearch(request)); } +StatusOr +SiteSearchEngineServiceTracingConnection::DisableAdvancedSiteSearch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DisableAdvancedSiteSearchRequest const& + request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SiteSearchEngineServiceConnection::" + "DisableAdvancedSiteSearch"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DisableAdvancedSiteSearch( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SiteSearchEngineServiceTracingConnection::DisableAdvancedSiteSearch( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SiteSearchEngineServiceConnection::" + "DisableAdvancedSiteSearch"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DisableAdvancedSiteSearch( + google::cloud::ExperimentalTag{}, operation)); +} + future> SiteSearchEngineServiceTracingConnection::RecrawlUris( google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request) { @@ -148,6 +313,30 @@ SiteSearchEngineServiceTracingConnection::RecrawlUris( return internal::EndSpan(std::move(span), child_->RecrawlUris(request)); } +StatusOr +SiteSearchEngineServiceTracingConnection::RecrawlUris( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SiteSearchEngineServiceConnection::RecrawlUris"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RecrawlUris(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SiteSearchEngineServiceTracingConnection::RecrawlUris( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SiteSearchEngineServiceConnection::RecrawlUris"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RecrawlUris(google::cloud::ExperimentalTag{}, operation)); +} + future> SiteSearchEngineServiceTracingConnection::BatchVerifyTargetSites( @@ -161,6 +350,34 @@ SiteSearchEngineServiceTracingConnection::BatchVerifyTargetSites( child_->BatchVerifyTargetSites(request)); } +StatusOr +SiteSearchEngineServiceTracingConnection::BatchVerifyTargetSites( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& + request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SiteSearchEngineServiceConnection::" + "BatchVerifyTargetSites"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->BatchVerifyTargetSites( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SiteSearchEngineServiceTracingConnection::BatchVerifyTargetSites( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::SiteSearchEngineServiceConnection::" + "BatchVerifyTargetSites"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->BatchVerifyTargetSites( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange SiteSearchEngineServiceTracingConnection::FetchDomainVerificationStatus( google::cloud::discoveryengine::v1::FetchDomainVerificationStatusRequest diff --git a/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.h b/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.h index f5b2e264fcb14..9637e4bb77e90 100644 --- a/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.h +++ b/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.h @@ -51,12 +51,32 @@ class SiteSearchEngineServiceTracingConnection google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& request) override; + StatusOr CreateTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& + request) override; + + future> + CreateTargetSite(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchCreateTargetSites( google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& request) override; + StatusOr BatchCreateTargetSites( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& + request) override; + + future> + BatchCreateTargetSites( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetTargetSite( google::cloud::discoveryengine::v1::GetTargetSiteRequest const& request) override; @@ -66,11 +86,29 @@ class SiteSearchEngineServiceTracingConnection google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& request) override; + StatusOr UpdateTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& + request) override; + + future> + UpdateTargetSite(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTargetSite( google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& request) override; + StatusOr DeleteTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& + request) override; + + future> + DeleteTargetSite(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTargetSites( google::cloud::discoveryengine::v1::ListTargetSitesRequest request) override; @@ -81,22 +119,64 @@ class SiteSearchEngineServiceTracingConnection google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const& request) override; + StatusOr EnableAdvancedSiteSearch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const& + request) override; + + future> + EnableAdvancedSiteSearch( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DisableAdvancedSiteSearch( google::cloud::discoveryengine::v1:: DisableAdvancedSiteSearchRequest const& request) override; + StatusOr DisableAdvancedSiteSearch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + DisableAdvancedSiteSearchRequest const& request) override; + + future> + DisableAdvancedSiteSearch( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RecrawlUris(google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request) override; + StatusOr RecrawlUris( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request) + override; + + future> + RecrawlUris(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> BatchVerifyTargetSites( google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& request) override; + StatusOr BatchVerifyTargetSites( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& + request) override; + + future> + BatchVerifyTargetSites( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange FetchDomainVerificationStatus( google::cloud::discoveryengine::v1::FetchDomainVerificationStatusRequest diff --git a/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.cc index 8da24abe3562c..aefcb55d75c6b 100644 --- a/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.cc @@ -139,6 +139,62 @@ UserEventServiceConnectionImpl::ImportUserEvents( polling_policy(*current), __func__); } +StatusOr +UserEventServiceConnectionImpl::ImportUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ImportUserEventsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportUserEvents(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::discoveryengine::v1::ImportUserEventsRequest const& + request) { + return stub_->ImportUserEvents(context, options, request); + }, + *current, request, __func__); +} + +future> +UserEventServiceConnectionImpl::ImportUserEvents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportUserEvents", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::discoveryengine::v1::ImportUserEventsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::discoveryengine::v1::ImportUserEventsResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace discoveryengine_v1_internal } // namespace cloud diff --git a/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.h b/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.h index dab8882c6cc24..e049205be774a 100644 --- a/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.h +++ b/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.h @@ -64,6 +64,15 @@ class UserEventServiceConnectionImpl google::cloud::discoveryengine::v1::ImportUserEventsRequest const& request) override; + StatusOr ImportUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ImportUserEventsRequest const& + request) override; + + future> + ImportUserEvents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.cc index 4cfd15fada9ba..038d67d1de125 100644 --- a/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.cc @@ -61,6 +61,31 @@ UserEventServiceTracingConnection::ImportUserEvents( return internal::EndSpan(std::move(span), child_->ImportUserEvents(request)); } +StatusOr +UserEventServiceTracingConnection::ImportUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ImportUserEventsRequest const& + request) { + auto span = internal::MakeSpan( + "discoveryengine_v1::UserEventServiceConnection::ImportUserEvents"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportUserEvents(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +UserEventServiceTracingConnection::ImportUserEvents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "discoveryengine_v1::UserEventServiceConnection::ImportUserEvents"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportUserEvents(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.h b/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.h index d5bba428e171e..a4a05db423479 100644 --- a/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.h +++ b/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.h @@ -53,6 +53,15 @@ class UserEventServiceTracingConnection google::cloud::discoveryengine::v1::ImportUserEventsRequest const& request) override; + StatusOr ImportUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ImportUserEventsRequest const& + request) override; + + future> + ImportUserEvents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/discoveryengine/v1/mocks/mock_completion_connection.h b/google/cloud/discoveryengine/v1/mocks/mock_completion_connection.h index b0ec5b8674d1a..3792b7abeba59 100644 --- a/google/cloud/discoveryengine/v1/mocks/mock_completion_connection.h +++ b/google/cloud/discoveryengine/v1/mocks/mock_completion_connection.h @@ -60,12 +60,40 @@ class MockCompletionServiceConnection ImportSuggestionDenyListEntriesRequest const& request), (override)); + MOCK_METHOD(StatusOr, + ImportSuggestionDenyListEntries, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + ImportSuggestionDenyListEntriesRequest const& request), + (override)); + + MOCK_METHOD(future>, + ImportSuggestionDenyListEntries, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, PurgeSuggestionDenyListEntries, (google::cloud::discoveryengine::v1:: PurgeSuggestionDenyListEntriesRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + PurgeSuggestionDenyListEntries, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + PurgeSuggestionDenyListEntriesRequest const& request), + (override)); + + MOCK_METHOD(future>, + PurgeSuggestionDenyListEntries, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/discoveryengine/v1/mocks/mock_data_store_connection.h b/google/cloud/discoveryengine/v1/mocks/mock_data_store_connection.h index 65ff57cdddc27..fb53802e4c3d1 100644 --- a/google/cloud/discoveryengine/v1/mocks/mock_data_store_connection.h +++ b/google/cloud/discoveryengine/v1/mocks/mock_data_store_connection.h @@ -53,6 +53,18 @@ class MockDataStoreServiceConnection request), (override)); + MOCK_METHOD(StatusOr, CreateDataStore, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateDataStoreRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateDataStore, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetDataStore, (google::cloud::discoveryengine::v1::GetDataStoreRequest const& request), @@ -71,6 +83,19 @@ class MockDataStoreServiceConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteDataStore, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteDataStore, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, UpdateDataStore, (google::cloud::discoveryengine::v1::UpdateDataStoreRequest const& diff --git a/google/cloud/discoveryengine/v1/mocks/mock_document_connection.h b/google/cloud/discoveryengine/v1/mocks/mock_document_connection.h index 398238120d704..982d3f422c57b 100644 --- a/google/cloud/discoveryengine/v1/mocks/mock_document_connection.h +++ b/google/cloud/discoveryengine/v1/mocks/mock_document_connection.h @@ -82,6 +82,19 @@ class MockDocumentServiceConnection request), (override)); + MOCK_METHOD(StatusOr, ImportDocuments, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ImportDocumentsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + ImportDocuments, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -89,6 +102,20 @@ class MockDocumentServiceConnection (google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request), (override)); + + MOCK_METHOD(StatusOr, PurgeDocuments, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + PurgeDocuments, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/discoveryengine/v1/mocks/mock_engine_connection.h b/google/cloud/discoveryengine/v1/mocks/mock_engine_connection.h index 78b1a64a29d27..d763be5135aa0 100644 --- a/google/cloud/discoveryengine/v1/mocks/mock_engine_connection.h +++ b/google/cloud/discoveryengine/v1/mocks/mock_engine_connection.h @@ -53,6 +53,18 @@ class MockEngineServiceConnection (google::cloud::discoveryengine::v1::CreateEngineRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateEngine, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateEngineRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateEngine, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -60,6 +72,20 @@ class MockEngineServiceConnection (google::cloud::discoveryengine::v1::DeleteEngineRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteEngine, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteEngineRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteEngine, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, UpdateEngine, (google::cloud::discoveryengine::v1::UpdateEngineRequest const& request), diff --git a/google/cloud/discoveryengine/v1/mocks/mock_project_connection.h b/google/cloud/discoveryengine/v1/mocks/mock_project_connection.h index 6a3a168fdd2a4..5ac7773bf7316 100644 --- a/google/cloud/discoveryengine/v1/mocks/mock_project_connection.h +++ b/google/cloud/discoveryengine/v1/mocks/mock_project_connection.h @@ -53,6 +53,19 @@ class MockProjectServiceConnection (google::cloud::discoveryengine::v1::ProvisionProjectRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, ProvisionProject, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ProvisionProjectRequest const& + request), + (override)); + + MOCK_METHOD(future>, + ProvisionProject, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/discoveryengine/v1/mocks/mock_schema_connection.h b/google/cloud/discoveryengine/v1/mocks/mock_schema_connection.h index 2739012796b4d..6b3d4f3a18213 100644 --- a/google/cloud/discoveryengine/v1/mocks/mock_schema_connection.h +++ b/google/cloud/discoveryengine/v1/mocks/mock_schema_connection.h @@ -63,18 +63,56 @@ class MockSchemaServiceConnection (google::cloud::discoveryengine::v1::CreateSchemaRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateSchema, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateSchemaRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateSchema, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateSchema, (google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateSchema, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateSchema, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, DeleteSchema, (google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteSchema, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteSchema, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/discoveryengine/v1/mocks/mock_site_search_engine_connection.h b/google/cloud/discoveryengine/v1/mocks/mock_site_search_engine_connection.h index b63824b14ab56..8213e6fd5d5d3 100644 --- a/google/cloud/discoveryengine/v1/mocks/mock_site_search_engine_connection.h +++ b/google/cloud/discoveryengine/v1/mocks/mock_site_search_engine_connection.h @@ -61,6 +61,19 @@ class MockSiteSearchEngineServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateTargetSite, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateTargetSite, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -69,6 +82,21 @@ class MockSiteSearchEngineServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, BatchCreateTargetSites, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + BatchCreateTargetSites, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetTargetSite, (google::cloud::discoveryengine::v1::GetTargetSiteRequest const& request), @@ -81,6 +109,19 @@ class MockSiteSearchEngineServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateTargetSite, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateTargetSite, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -89,6 +130,21 @@ class MockSiteSearchEngineServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteTargetSite, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteTargetSite, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListTargetSites, @@ -102,6 +158,20 @@ class MockSiteSearchEngineServiceConnection EnableAdvancedSiteSearchRequest const& request), (override)); + MOCK_METHOD(StatusOr, + EnableAdvancedSiteSearch, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + EnableAdvancedSiteSearchRequest const& request), + (override)); + + MOCK_METHOD(future>, + EnableAdvancedSiteSearch, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DisableAdvancedSiteSearch, @@ -109,12 +179,39 @@ class MockSiteSearchEngineServiceConnection DisableAdvancedSiteSearchRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DisableAdvancedSiteSearch, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + DisableAdvancedSiteSearchRequest const& request), + (override)); + + MOCK_METHOD(future>, + DisableAdvancedSiteSearch, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RecrawlUris, (google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RecrawlUris, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request), + (override)); + + MOCK_METHOD( + future>, + RecrawlUris, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -123,6 +220,21 @@ class MockSiteSearchEngineServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, BatchVerifyTargetSites, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + BatchVerifyTargetSites, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), FetchDomainVerificationStatus, diff --git a/google/cloud/discoveryengine/v1/mocks/mock_user_event_connection.h b/google/cloud/discoveryengine/v1/mocks/mock_user_event_connection.h index 5c6bd008bebdd..f3afa42d06a15 100644 --- a/google/cloud/discoveryengine/v1/mocks/mock_user_event_connection.h +++ b/google/cloud/discoveryengine/v1/mocks/mock_user_event_connection.h @@ -66,6 +66,21 @@ class MockUserEventServiceConnection (google::cloud::discoveryengine::v1::ImportUserEventsRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, ImportUserEvents, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ImportUserEventsRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + ImportUserEvents, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/discoveryengine/v1/project_connection.cc b/google/cloud/discoveryengine/v1/project_connection.cc index 3677140af76a5..ce1836de86aaa 100644 --- a/google/cloud/discoveryengine/v1/project_connection.cc +++ b/google/cloud/discoveryengine/v1/project_connection.cc @@ -45,6 +45,22 @@ ProjectServiceConnection::ProvisionProject( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ProjectServiceConnection::ProvisionProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ProvisionProjectRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProjectServiceConnection::ProvisionProject( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeProjectServiceConnection( Options options) { internal::CheckExpectedOptions ProvisionProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ProvisionProjectRequest const& + request); + + virtual future> + ProvisionProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/discoveryengine/v1/rank_connection.h b/google/cloud/discoveryengine/v1/rank_connection.h index 0a7d121108f70..221bf1a923c69 100644 --- a/google/cloud/discoveryengine/v1/rank_connection.h +++ b/google/cloud/discoveryengine/v1/rank_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/discoveryengine/v1/internal/rank_retry_traits.h" #include "google/cloud/discoveryengine/v1/rank_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/discoveryengine/v1/recommendation_connection.h b/google/cloud/discoveryengine/v1/recommendation_connection.h index 044bac51a5779..222b1b7f80c18 100644 --- a/google/cloud/discoveryengine/v1/recommendation_connection.h +++ b/google/cloud/discoveryengine/v1/recommendation_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/discoveryengine/v1/internal/recommendation_retry_traits.h" #include "google/cloud/discoveryengine/v1/recommendation_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/discoveryengine/v1/schema_connection.cc b/google/cloud/discoveryengine/v1/schema_connection.cc index 86c36a55860e6..6304c8d2018e8 100644 --- a/google/cloud/discoveryengine/v1/schema_connection.cc +++ b/google/cloud/discoveryengine/v1/schema_connection.cc @@ -60,6 +60,21 @@ SchemaServiceConnection::CreateSchema( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SchemaServiceConnection::CreateSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateSchemaRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SchemaServiceConnection::CreateSchema(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SchemaServiceConnection::UpdateSchema( google::cloud::discoveryengine::v1::UpdateSchemaRequest const&) { @@ -68,6 +83,21 @@ SchemaServiceConnection::UpdateSchema( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SchemaServiceConnection::UpdateSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::UpdateSchemaRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SchemaServiceConnection::UpdateSchema(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SchemaServiceConnection::DeleteSchema( google::cloud::discoveryengine::v1::DeleteSchemaRequest const&) { @@ -76,6 +106,21 @@ SchemaServiceConnection::DeleteSchema( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SchemaServiceConnection::DeleteSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteSchemaRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SchemaServiceConnection::DeleteSchema(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeSchemaServiceConnection( Options options) { internal::CheckExpectedOptions CreateSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateSchemaRequest const& request); + + virtual future> + CreateSchema(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateSchema( google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request); + virtual StatusOr UpdateSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request); + + virtual future> + UpdateSchema(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteSchema( google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request); + + virtual StatusOr DeleteSchema( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request); + + virtual future< + StatusOr> + DeleteSchema(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/discoveryengine/v1/search_connection.h b/google/cloud/discoveryengine/v1/search_connection.h index cf28a0ebf53f3..16cd85019edcd 100644 --- a/google/cloud/discoveryengine/v1/search_connection.h +++ b/google/cloud/discoveryengine/v1/search_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/discoveryengine/v1/internal/search_retry_traits.h" #include "google/cloud/discoveryengine/v1/search_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/discoveryengine/v1/site_search_engine_connection.cc b/google/cloud/discoveryengine/v1/site_search_engine_connection.cc index 3294b6a88dade..0df95dc4a027f 100644 --- a/google/cloud/discoveryengine/v1/site_search_engine_connection.cc +++ b/google/cloud/discoveryengine/v1/site_search_engine_connection.cc @@ -53,6 +53,22 @@ SiteSearchEngineServiceConnection::CreateTargetSite( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SiteSearchEngineServiceConnection::CreateTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateTargetSiteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SiteSearchEngineServiceConnection::CreateTargetSite( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SiteSearchEngineServiceConnection::BatchCreateTargetSites( @@ -62,6 +78,23 @@ SiteSearchEngineServiceConnection::BatchCreateTargetSites( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SiteSearchEngineServiceConnection::BatchCreateTargetSites( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SiteSearchEngineServiceConnection::BatchCreateTargetSites( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SiteSearchEngineServiceConnection::GetTargetSite( google::cloud::discoveryengine::v1::GetTargetSiteRequest const&) { @@ -76,6 +109,22 @@ SiteSearchEngineServiceConnection::UpdateTargetSite( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SiteSearchEngineServiceConnection::UpdateTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SiteSearchEngineServiceConnection::UpdateTargetSite( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SiteSearchEngineServiceConnection::DeleteTargetSite( google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const&) { @@ -84,6 +133,22 @@ SiteSearchEngineServiceConnection::DeleteTargetSite( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SiteSearchEngineServiceConnection::DeleteTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SiteSearchEngineServiceConnection::DeleteTargetSite( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange SiteSearchEngineServiceConnection::ListTargetSites( google::cloud::discoveryengine::v1:: @@ -102,6 +167,24 @@ SiteSearchEngineServiceConnection::EnableAdvancedSiteSearch( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SiteSearchEngineServiceConnection::EnableAdvancedSiteSearch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + EnableAdvancedSiteSearchRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SiteSearchEngineServiceConnection::EnableAdvancedSiteSearch( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SiteSearchEngineServiceConnection::DisableAdvancedSiteSearch( @@ -112,6 +195,24 @@ SiteSearchEngineServiceConnection::DisableAdvancedSiteSearch( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SiteSearchEngineServiceConnection::DisableAdvancedSiteSearch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + DisableAdvancedSiteSearchRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SiteSearchEngineServiceConnection::DisableAdvancedSiteSearch( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SiteSearchEngineServiceConnection::RecrawlUris( google::cloud::discoveryengine::v1::RecrawlUrisRequest const&) { @@ -120,6 +221,22 @@ SiteSearchEngineServiceConnection::RecrawlUris( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SiteSearchEngineServiceConnection::RecrawlUris( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::RecrawlUrisRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SiteSearchEngineServiceConnection::RecrawlUris( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SiteSearchEngineServiceConnection::BatchVerifyTargetSites( @@ -129,6 +246,23 @@ SiteSearchEngineServiceConnection::BatchVerifyTargetSites( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SiteSearchEngineServiceConnection::BatchVerifyTargetSites( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SiteSearchEngineServiceConnection::BatchVerifyTargetSites( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange SiteSearchEngineServiceConnection::FetchDomainVerificationStatus( google::cloud::discoveryengine::v1:: diff --git a/google/cloud/discoveryengine/v1/site_search_engine_connection.h b/google/cloud/discoveryengine/v1/site_search_engine_connection.h index da3fec1a83387..53b09669a4da8 100644 --- a/google/cloud/discoveryengine/v1/site_search_engine_connection.h +++ b/google/cloud/discoveryengine/v1/site_search_engine_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/discoveryengine/v1/internal/site_search_engine_retry_traits.h" #include "google/cloud/discoveryengine/v1/site_search_engine_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -203,12 +205,31 @@ class SiteSearchEngineServiceConnection { google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& request); + virtual StatusOr CreateTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& + request); + + virtual future> + CreateTargetSite(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> BatchCreateTargetSites( google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& request); + virtual StatusOr BatchCreateTargetSites( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& + request); + + virtual future> + BatchCreateTargetSites(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetTargetSite( google::cloud::discoveryengine::v1::GetTargetSiteRequest const& request); @@ -218,12 +239,31 @@ class SiteSearchEngineServiceConnection { google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& request); + virtual StatusOr UpdateTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& + request); + + virtual future> + UpdateTargetSite(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteTargetSite( google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& request); + virtual StatusOr DeleteTargetSite( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& + request); + + virtual future< + StatusOr> + DeleteTargetSite(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListTargetSites( google::cloud::discoveryengine::v1::ListTargetSitesRequest request); @@ -234,23 +274,62 @@ class SiteSearchEngineServiceConnection { google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const& request); + virtual StatusOr EnableAdvancedSiteSearch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const& + request); + + virtual future> + EnableAdvancedSiteSearch(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DisableAdvancedSiteSearch( google::cloud::discoveryengine::v1:: DisableAdvancedSiteSearchRequest const& request); + virtual StatusOr DisableAdvancedSiteSearch( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1:: + DisableAdvancedSiteSearchRequest const& request); + + virtual future> + DisableAdvancedSiteSearch(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> RecrawlUris( google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request); + virtual StatusOr RecrawlUris( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request); + + virtual future< + StatusOr> + RecrawlUris(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> BatchVerifyTargetSites( google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& request); + virtual StatusOr BatchVerifyTargetSites( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& + request); + + virtual future> + BatchVerifyTargetSites(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange FetchDomainVerificationStatus( google::cloud::discoveryengine::v1::FetchDomainVerificationStatusRequest diff --git a/google/cloud/discoveryengine/v1/user_event_connection.cc b/google/cloud/discoveryengine/v1/user_event_connection.cc index f876b666daf24..307308eb00b2c 100644 --- a/google/cloud/discoveryengine/v1/user_event_connection.cc +++ b/google/cloud/discoveryengine/v1/user_event_connection.cc @@ -56,6 +56,22 @@ UserEventServiceConnection::ImportUserEvents( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +UserEventServiceConnection::ImportUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ImportUserEventsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +UserEventServiceConnection::ImportUserEvents( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeUserEventServiceConnection( Options options) { internal::CheckExpectedOptions ImportUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::discoveryengine::v1::ImportUserEventsRequest const& + request); + + virtual future< + StatusOr> + ImportUserEvents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dlp/v2/dlp_connection.h b/google/cloud/dlp/v2/dlp_connection.h index cfa1411ed721c..22b097a55cf79 100644 --- a/google/cloud/dlp/v2/dlp_connection.h +++ b/google/cloud/dlp/v2/dlp_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/dlp/v2/dlp_connection_idempotency_policy.h" #include "google/cloud/dlp/v2/internal/dlp_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/documentai/v1/document_processor_connection.cc b/google/cloud/documentai/v1/document_processor_connection.cc index 3b02fddc08d85..f345b5ea96eea 100644 --- a/google/cloud/documentai/v1/document_processor_connection.cc +++ b/google/cloud/documentai/v1/document_processor_connection.cc @@ -53,6 +53,22 @@ DocumentProcessorServiceConnection::BatchProcessDocuments( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DocumentProcessorServiceConnection::BatchProcessDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::BatchProcessRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DocumentProcessorServiceConnection::BatchProcessDocuments( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DocumentProcessorServiceConnection::FetchProcessorTypes( google::cloud::documentai::v1::FetchProcessorTypesRequest const&) { @@ -95,6 +111,22 @@ DocumentProcessorServiceConnection::TrainProcessorVersion( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DocumentProcessorServiceConnection::TrainProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::TrainProcessorVersionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DocumentProcessorServiceConnection::TrainProcessorVersion( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DocumentProcessorServiceConnection::GetProcessorVersion( google::cloud::documentai::v1::GetProcessorVersionRequest const&) { @@ -117,6 +149,22 @@ DocumentProcessorServiceConnection::DeleteProcessorVersion( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DocumentProcessorServiceConnection::DeleteProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeleteProcessorVersionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DocumentProcessorServiceConnection::DeleteProcessorVersion( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DocumentProcessorServiceConnection::DeployProcessorVersion( google::cloud::documentai::v1::DeployProcessorVersionRequest const&) { @@ -125,6 +173,22 @@ DocumentProcessorServiceConnection::DeployProcessorVersion( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DocumentProcessorServiceConnection::DeployProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeployProcessorVersionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DocumentProcessorServiceConnection::DeployProcessorVersion( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future< StatusOr> DocumentProcessorServiceConnection::UndeployProcessorVersion( @@ -134,6 +198,23 @@ DocumentProcessorServiceConnection::UndeployProcessorVersion( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DocumentProcessorServiceConnection::UndeployProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::UndeployProcessorVersionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future< + StatusOr> +DocumentProcessorServiceConnection::UndeployProcessorVersion( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DocumentProcessorServiceConnection::CreateProcessor( google::cloud::documentai::v1::CreateProcessorRequest const&) { @@ -148,6 +229,22 @@ DocumentProcessorServiceConnection::DeleteProcessor( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DocumentProcessorServiceConnection::DeleteProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeleteProcessorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DocumentProcessorServiceConnection::DeleteProcessor( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DocumentProcessorServiceConnection::EnableProcessor( google::cloud::documentai::v1::EnableProcessorRequest const&) { @@ -156,6 +253,22 @@ DocumentProcessorServiceConnection::EnableProcessor( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DocumentProcessorServiceConnection::EnableProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::EnableProcessorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DocumentProcessorServiceConnection::EnableProcessor( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DocumentProcessorServiceConnection::DisableProcessor( google::cloud::documentai::v1::DisableProcessorRequest const&) { @@ -164,6 +277,22 @@ DocumentProcessorServiceConnection::DisableProcessor( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DocumentProcessorServiceConnection::DisableProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DisableProcessorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DocumentProcessorServiceConnection::DisableProcessor( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future< StatusOr> DocumentProcessorServiceConnection::SetDefaultProcessorVersion( @@ -173,6 +302,23 @@ DocumentProcessorServiceConnection::SetDefaultProcessorVersion( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DocumentProcessorServiceConnection::SetDefaultProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future< + StatusOr> +DocumentProcessorServiceConnection::SetDefaultProcessorVersion( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DocumentProcessorServiceConnection::ReviewDocument( google::cloud::documentai::v1::ReviewDocumentRequest const&) { @@ -181,6 +327,22 @@ DocumentProcessorServiceConnection::ReviewDocument( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DocumentProcessorServiceConnection::ReviewDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::ReviewDocumentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DocumentProcessorServiceConnection::ReviewDocument( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future< StatusOr> DocumentProcessorServiceConnection::EvaluateProcessorVersion( @@ -190,6 +352,23 @@ DocumentProcessorServiceConnection::EvaluateProcessorVersion( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DocumentProcessorServiceConnection::EvaluateProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::EvaluateProcessorVersionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future< + StatusOr> +DocumentProcessorServiceConnection::EvaluateProcessorVersion( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DocumentProcessorServiceConnection::GetEvaluation( google::cloud::documentai::v1::GetEvaluationRequest const&) { diff --git a/google/cloud/documentai/v1/document_processor_connection.h b/google/cloud/documentai/v1/document_processor_connection.h index 54565960c37fa..62540acf400de 100644 --- a/google/cloud/documentai/v1/document_processor_connection.h +++ b/google/cloud/documentai/v1/document_processor_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/documentai/v1/document_processor_connection_idempotency_policy.h" #include "google/cloud/documentai/v1/internal/document_processor_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -207,6 +209,14 @@ class DocumentProcessorServiceConnection { BatchProcessDocuments( google::cloud::documentai::v1::BatchProcessRequest const& request); + virtual StatusOr BatchProcessDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::BatchProcessRequest const& request); + + virtual future> + BatchProcessDocuments(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr FetchProcessorTypes( google::cloud::documentai::v1::FetchProcessorTypesRequest const& request); @@ -231,6 +241,16 @@ class DocumentProcessorServiceConnection { google::cloud::documentai::v1::TrainProcessorVersionRequest const& request); + virtual StatusOr TrainProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::TrainProcessorVersionRequest const& + request); + + virtual future< + StatusOr> + TrainProcessorVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetProcessorVersion( google::cloud::documentai::v1::GetProcessorVersionRequest const& request); @@ -245,18 +265,48 @@ class DocumentProcessorServiceConnection { google::cloud::documentai::v1::DeleteProcessorVersionRequest const& request); + virtual StatusOr DeleteProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeleteProcessorVersionRequest const& + request); + + virtual future< + StatusOr> + DeleteProcessorVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeployProcessorVersion( google::cloud::documentai::v1::DeployProcessorVersionRequest const& request); + virtual StatusOr DeployProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeployProcessorVersionRequest const& + request); + + virtual future< + StatusOr> + DeployProcessorVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UndeployProcessorVersion( google::cloud::documentai::v1::UndeployProcessorVersionRequest const& request); + virtual StatusOr UndeployProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::UndeployProcessorVersionRequest const& + request); + + virtual future< + StatusOr> + UndeployProcessorVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateProcessor( google::cloud::documentai::v1::CreateProcessorRequest const& request); @@ -265,33 +315,89 @@ class DocumentProcessorServiceConnection { DeleteProcessor( google::cloud::documentai::v1::DeleteProcessorRequest const& request); + virtual StatusOr DeleteProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeleteProcessorRequest const& request); + + virtual future< + StatusOr> + DeleteProcessor(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> EnableProcessor( google::cloud::documentai::v1::EnableProcessorRequest const& request); + virtual StatusOr EnableProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::EnableProcessorRequest const& request); + + virtual future< + StatusOr> + EnableProcessor(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DisableProcessor( google::cloud::documentai::v1::DisableProcessorRequest const& request); + virtual StatusOr DisableProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DisableProcessorRequest const& request); + + virtual future< + StatusOr> + DisableProcessor(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> SetDefaultProcessorVersion( google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& request); + virtual StatusOr SetDefaultProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& + request); + + virtual future> + SetDefaultProcessorVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> ReviewDocument( google::cloud::documentai::v1::ReviewDocumentRequest const& request); + virtual StatusOr ReviewDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::ReviewDocumentRequest const& request); + + virtual future< + StatusOr> + ReviewDocument(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> EvaluateProcessorVersion( google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& request); + virtual StatusOr EvaluateProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& + request); + + virtual future< + StatusOr> + EvaluateProcessorVersion(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetEvaluation( google::cloud::documentai::v1::GetEvaluationRequest const& request); diff --git a/google/cloud/documentai/v1/internal/document_processor_connection_impl.cc b/google/cloud/documentai/v1/internal/document_processor_connection_impl.cc index 165d8baf85cc3..9ef8023428d22 100644 --- a/google/cloud/documentai/v1/internal/document_processor_connection_impl.cc +++ b/google/cloud/documentai/v1/internal/document_processor_connection_impl.cc @@ -125,6 +125,61 @@ DocumentProcessorServiceConnectionImpl::BatchProcessDocuments( polling_policy(*current), __func__); } +StatusOr +DocumentProcessorServiceConnectionImpl::BatchProcessDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::BatchProcessRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchProcessDocuments(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::documentai::v1::BatchProcessRequest const& request) { + return stub_->BatchProcessDocuments(context, options, request); + }, + *current, request, __func__); +} + +future> +DocumentProcessorServiceConnectionImpl::BatchProcessDocuments( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to BatchProcessDocuments", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::documentai::v1::BatchProcessResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::documentai::v1::BatchProcessResponse>, + polling_policy(*current), __func__); +} + StatusOr DocumentProcessorServiceConnectionImpl::FetchProcessorTypes( google::cloud::documentai::v1::FetchProcessorTypesRequest const& request) { @@ -282,6 +337,62 @@ DocumentProcessorServiceConnectionImpl::TrainProcessorVersion( polling_policy(*current), __func__); } +StatusOr +DocumentProcessorServiceConnectionImpl::TrainProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::TrainProcessorVersionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->TrainProcessorVersion(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::documentai::v1::TrainProcessorVersionRequest const& + request) { + return stub_->TrainProcessorVersion(context, options, request); + }, + *current, request, __func__); +} + +future> +DocumentProcessorServiceConnectionImpl::TrainProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to TrainProcessorVersion", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::documentai::v1::TrainProcessorVersionResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::documentai::v1::TrainProcessorVersionResponse>, + polling_policy(*current), __func__); +} + StatusOr DocumentProcessorServiceConnectionImpl::GetProcessorVersion( google::cloud::documentai::v1::GetProcessorVersionRequest const& request) { @@ -375,6 +486,62 @@ DocumentProcessorServiceConnectionImpl::DeleteProcessorVersion( polling_policy(*current), __func__); } +StatusOr +DocumentProcessorServiceConnectionImpl::DeleteProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeleteProcessorVersionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteProcessorVersion(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::documentai::v1::DeleteProcessorVersionRequest const& + request) { + return stub_->DeleteProcessorVersion(context, options, request); + }, + *current, request, __func__); +} + +future> +DocumentProcessorServiceConnectionImpl::DeleteProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteProcessorVersion", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::documentai::v1::DeleteProcessorVersionMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::documentai::v1::DeleteProcessorVersionMetadata>, + polling_policy(*current), __func__); +} + future> DocumentProcessorServiceConnectionImpl::DeployProcessorVersion( google::cloud::documentai::v1::DeployProcessorVersionRequest const& @@ -416,6 +583,62 @@ DocumentProcessorServiceConnectionImpl::DeployProcessorVersion( polling_policy(*current), __func__); } +StatusOr +DocumentProcessorServiceConnectionImpl::DeployProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeployProcessorVersionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeployProcessorVersion(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::documentai::v1::DeployProcessorVersionRequest const& + request) { + return stub_->DeployProcessorVersion(context, options, request); + }, + *current, request, __func__); +} + +future> +DocumentProcessorServiceConnectionImpl::DeployProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeployProcessorVersion", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::documentai::v1::DeployProcessorVersionResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::documentai::v1::DeployProcessorVersionResponse>, + polling_policy(*current), __func__); +} + future< StatusOr> DocumentProcessorServiceConnectionImpl::UndeployProcessorVersion( @@ -458,6 +681,64 @@ DocumentProcessorServiceConnectionImpl::UndeployProcessorVersion( polling_policy(*current), __func__); } +StatusOr +DocumentProcessorServiceConnectionImpl::UndeployProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::UndeployProcessorVersionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UndeployProcessorVersion(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::documentai::v1::UndeployProcessorVersionRequest const& + request) { + return stub_->UndeployProcessorVersion(context, options, request); + }, + *current, request, __func__); +} + +future< + StatusOr> +DocumentProcessorServiceConnectionImpl::UndeployProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UndeployProcessorVersion", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::documentai::v1::UndeployProcessorVersionResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::documentai::v1::UndeployProcessorVersionResponse>, + polling_policy(*current), __func__); +} + StatusOr DocumentProcessorServiceConnectionImpl::CreateProcessor( google::cloud::documentai::v1::CreateProcessorRequest const& request) { @@ -513,6 +794,61 @@ DocumentProcessorServiceConnectionImpl::DeleteProcessor( polling_policy(*current), __func__); } +StatusOr +DocumentProcessorServiceConnectionImpl::DeleteProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeleteProcessorRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteProcessor(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::documentai::v1::DeleteProcessorRequest const& + request) { + return stub_->DeleteProcessor(context, options, request); + }, + *current, request, __func__); +} + +future> +DocumentProcessorServiceConnectionImpl::DeleteProcessor( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteProcessor", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::documentai::v1::DeleteProcessorMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::documentai::v1::DeleteProcessorMetadata>, + polling_policy(*current), __func__); +} + future> DocumentProcessorServiceConnectionImpl::EnableProcessor( google::cloud::documentai::v1::EnableProcessorRequest const& request) { @@ -553,6 +889,61 @@ DocumentProcessorServiceConnectionImpl::EnableProcessor( polling_policy(*current), __func__); } +StatusOr +DocumentProcessorServiceConnectionImpl::EnableProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::EnableProcessorRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->EnableProcessor(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::documentai::v1::EnableProcessorRequest const& + request) { + return stub_->EnableProcessor(context, options, request); + }, + *current, request, __func__); +} + +future> +DocumentProcessorServiceConnectionImpl::EnableProcessor( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to EnableProcessor", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::documentai::v1::EnableProcessorResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::documentai::v1::EnableProcessorResponse>, + polling_policy(*current), __func__); +} + future> DocumentProcessorServiceConnectionImpl::DisableProcessor( google::cloud::documentai::v1::DisableProcessorRequest const& request) { @@ -593,6 +984,61 @@ DocumentProcessorServiceConnectionImpl::DisableProcessor( polling_policy(*current), __func__); } +StatusOr +DocumentProcessorServiceConnectionImpl::DisableProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DisableProcessorRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DisableProcessor(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::documentai::v1::DisableProcessorRequest const& + request) { + return stub_->DisableProcessor(context, options, request); + }, + *current, request, __func__); +} + +future> +DocumentProcessorServiceConnectionImpl::DisableProcessor( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DisableProcessor", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::documentai::v1::DisableProcessorResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::documentai::v1::DisableProcessorResponse>, + polling_policy(*current), __func__); +} + future< StatusOr> DocumentProcessorServiceConnectionImpl::SetDefaultProcessorVersion( @@ -634,6 +1080,63 @@ DocumentProcessorServiceConnectionImpl::SetDefaultProcessorVersion( polling_policy(*current), __func__); } +StatusOr +DocumentProcessorServiceConnectionImpl::SetDefaultProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetDefaultProcessorVersion(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::documentai::v1:: + SetDefaultProcessorVersionRequest const& request) { + return stub_->SetDefaultProcessorVersion(context, options, request); + }, + *current, request, __func__); +} + +future< + StatusOr> +DocumentProcessorServiceConnectionImpl::SetDefaultProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to SetDefaultProcessorVersion", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::documentai::v1::SetDefaultProcessorVersionResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::documentai::v1::SetDefaultProcessorVersionResponse>, + polling_policy(*current), __func__); +} + future> DocumentProcessorServiceConnectionImpl::ReviewDocument( google::cloud::documentai::v1::ReviewDocumentRequest const& request) { @@ -673,6 +1176,61 @@ DocumentProcessorServiceConnectionImpl::ReviewDocument( polling_policy(*current), __func__); } +StatusOr +DocumentProcessorServiceConnectionImpl::ReviewDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::ReviewDocumentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ReviewDocument(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::documentai::v1::ReviewDocumentRequest const& request) { + return stub_->ReviewDocument(context, options, request); + }, + *current, request, __func__); +} + +future> +DocumentProcessorServiceConnectionImpl::ReviewDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ReviewDocument", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::documentai::v1::ReviewDocumentResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::documentai::v1::ReviewDocumentResponse>, + polling_policy(*current), __func__); +} + future< StatusOr> DocumentProcessorServiceConnectionImpl::EvaluateProcessorVersion( @@ -715,6 +1273,64 @@ DocumentProcessorServiceConnectionImpl::EvaluateProcessorVersion( polling_policy(*current), __func__); } +StatusOr +DocumentProcessorServiceConnectionImpl::EvaluateProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->EvaluateProcessorVersion(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& + request) { + return stub_->EvaluateProcessorVersion(context, options, request); + }, + *current, request, __func__); +} + +future< + StatusOr> +DocumentProcessorServiceConnectionImpl::EvaluateProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to EvaluateProcessorVersion", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::documentai::v1::EvaluateProcessorVersionResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::documentai::v1::EvaluateProcessorVersionResponse>, + polling_policy(*current), __func__); +} + StatusOr DocumentProcessorServiceConnectionImpl::GetEvaluation( google::cloud::documentai::v1::GetEvaluationRequest const& request) { diff --git a/google/cloud/documentai/v1/internal/document_processor_connection_impl.h b/google/cloud/documentai/v1/internal/document_processor_connection_impl.h index 49edb4609b10d..5e87d040ca8b6 100644 --- a/google/cloud/documentai/v1/internal/document_processor_connection_impl.h +++ b/google/cloud/documentai/v1/internal/document_processor_connection_impl.h @@ -61,6 +61,16 @@ class DocumentProcessorServiceConnectionImpl google::cloud::documentai::v1::BatchProcessRequest const& request) override; + StatusOr BatchProcessDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::BatchProcessRequest const& request) + override; + + future> + BatchProcessDocuments( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr FetchProcessorTypes( google::cloud::documentai::v1::FetchProcessorTypesRequest const& request) @@ -86,6 +96,16 @@ class DocumentProcessorServiceConnectionImpl google::cloud::documentai::v1::TrainProcessorVersionRequest const& request) override; + StatusOr TrainProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::TrainProcessorVersionRequest const& + request) override; + + future> + TrainProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetProcessorVersion( google::cloud::documentai::v1::GetProcessorVersionRequest const& request) override; @@ -101,18 +121,51 @@ class DocumentProcessorServiceConnectionImpl google::cloud::documentai::v1::DeleteProcessorVersionRequest const& request) override; + StatusOr DeleteProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeleteProcessorVersionRequest const& + request) override; + + future< + StatusOr> + DeleteProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> DeployProcessorVersion( google::cloud::documentai::v1::DeployProcessorVersionRequest const& request) override; + StatusOr DeployProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeployProcessorVersionRequest const& + request) override; + + future< + StatusOr> + DeployProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> UndeployProcessorVersion( google::cloud::documentai::v1::UndeployProcessorVersionRequest const& request) override; + StatusOr UndeployProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::UndeployProcessorVersionRequest const& + request) override; + + future< + StatusOr> + UndeployProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateProcessor( google::cloud::documentai::v1::CreateProcessorRequest const& request) override; @@ -121,30 +174,88 @@ class DocumentProcessorServiceConnectionImpl DeleteProcessor(google::cloud::documentai::v1::DeleteProcessorRequest const& request) override; + StatusOr DeleteProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeleteProcessorRequest const& request) + override; + + future> + DeleteProcessor(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> EnableProcessor(google::cloud::documentai::v1::EnableProcessorRequest const& request) override; + StatusOr EnableProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::EnableProcessorRequest const& request) + override; + + future> + EnableProcessor(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DisableProcessor(google::cloud::documentai::v1::DisableProcessorRequest const& request) override; + StatusOr DisableProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DisableProcessorRequest const& request) + override; + + future> + DisableProcessor(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> SetDefaultProcessorVersion( google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& request) override; + StatusOr SetDefaultProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& + request) override; + + future> + SetDefaultProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReviewDocument(google::cloud::documentai::v1::ReviewDocumentRequest const& request) override; + StatusOr ReviewDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::ReviewDocumentRequest const& request) + override; + + future> + ReviewDocument(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> EvaluateProcessorVersion( google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& request) override; + StatusOr EvaluateProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& + request) override; + + future< + StatusOr> + EvaluateProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetEvaluation( google::cloud::documentai::v1::GetEvaluationRequest const& request) override; diff --git a/google/cloud/documentai/v1/internal/document_processor_tracing_connection.cc b/google/cloud/documentai/v1/internal/document_processor_tracing_connection.cc index 93eac09be2e69..802875c7fa47f 100644 --- a/google/cloud/documentai/v1/internal/document_processor_tracing_connection.cc +++ b/google/cloud/documentai/v1/internal/document_processor_tracing_connection.cc @@ -55,6 +55,32 @@ DocumentProcessorServiceTracingConnection::BatchProcessDocuments( child_->BatchProcessDocuments(request)); } +StatusOr +DocumentProcessorServiceTracingConnection::BatchProcessDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::BatchProcessRequest const& request) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::" + "BatchProcessDocuments"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->BatchProcessDocuments( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DocumentProcessorServiceTracingConnection::BatchProcessDocuments( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::" + "BatchProcessDocuments"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->BatchProcessDocuments( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DocumentProcessorServiceTracingConnection::FetchProcessorTypes( google::cloud::documentai::v1::FetchProcessorTypesRequest const& request) { @@ -117,6 +143,33 @@ DocumentProcessorServiceTracingConnection::TrainProcessorVersion( child_->TrainProcessorVersion(request)); } +StatusOr +DocumentProcessorServiceTracingConnection::TrainProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::TrainProcessorVersionRequest const& + request) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::" + "TrainProcessorVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->TrainProcessorVersion( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DocumentProcessorServiceTracingConnection::TrainProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::" + "TrainProcessorVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->TrainProcessorVersion( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DocumentProcessorServiceTracingConnection::GetProcessorVersion( google::cloud::documentai::v1::GetProcessorVersionRequest const& request) { @@ -151,6 +204,33 @@ DocumentProcessorServiceTracingConnection::DeleteProcessorVersion( child_->DeleteProcessorVersion(request)); } +StatusOr +DocumentProcessorServiceTracingConnection::DeleteProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeleteProcessorVersionRequest const& + request) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::" + "DeleteProcessorVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteProcessorVersion( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DocumentProcessorServiceTracingConnection::DeleteProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::" + "DeleteProcessorVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteProcessorVersion( + google::cloud::ExperimentalTag{}, operation)); +} + future> DocumentProcessorServiceTracingConnection::DeployProcessorVersion( google::cloud::documentai::v1::DeployProcessorVersionRequest const& @@ -163,6 +243,33 @@ DocumentProcessorServiceTracingConnection::DeployProcessorVersion( child_->DeployProcessorVersion(request)); } +StatusOr +DocumentProcessorServiceTracingConnection::DeployProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeployProcessorVersionRequest const& + request) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::" + "DeployProcessorVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeployProcessorVersion( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DocumentProcessorServiceTracingConnection::DeployProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::" + "DeployProcessorVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeployProcessorVersion( + google::cloud::ExperimentalTag{}, operation)); +} + future< StatusOr> DocumentProcessorServiceTracingConnection::UndeployProcessorVersion( @@ -176,6 +283,34 @@ DocumentProcessorServiceTracingConnection::UndeployProcessorVersion( child_->UndeployProcessorVersion(request)); } +StatusOr +DocumentProcessorServiceTracingConnection::UndeployProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::UndeployProcessorVersionRequest const& + request) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::" + "UndeployProcessorVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UndeployProcessorVersion( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future< + StatusOr> +DocumentProcessorServiceTracingConnection::UndeployProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::" + "UndeployProcessorVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UndeployProcessorVersion( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DocumentProcessorServiceTracingConnection::CreateProcessor( google::cloud::documentai::v1::CreateProcessorRequest const& request) { @@ -194,6 +329,30 @@ DocumentProcessorServiceTracingConnection::DeleteProcessor( return internal::EndSpan(std::move(span), child_->DeleteProcessor(request)); } +StatusOr +DocumentProcessorServiceTracingConnection::DeleteProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeleteProcessorRequest const& request) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::DeleteProcessor"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteProcessor(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DocumentProcessorServiceTracingConnection::DeleteProcessor( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::DeleteProcessor"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteProcessor(google::cloud::ExperimentalTag{}, operation)); +} + future> DocumentProcessorServiceTracingConnection::EnableProcessor( google::cloud::documentai::v1::EnableProcessorRequest const& request) { @@ -203,6 +362,30 @@ DocumentProcessorServiceTracingConnection::EnableProcessor( return internal::EndSpan(std::move(span), child_->EnableProcessor(request)); } +StatusOr +DocumentProcessorServiceTracingConnection::EnableProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::EnableProcessorRequest const& request) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::EnableProcessor"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->EnableProcessor(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DocumentProcessorServiceTracingConnection::EnableProcessor( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::EnableProcessor"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->EnableProcessor(google::cloud::ExperimentalTag{}, operation)); +} + future> DocumentProcessorServiceTracingConnection::DisableProcessor( google::cloud::documentai::v1::DisableProcessorRequest const& request) { @@ -212,6 +395,30 @@ DocumentProcessorServiceTracingConnection::DisableProcessor( return internal::EndSpan(std::move(span), child_->DisableProcessor(request)); } +StatusOr +DocumentProcessorServiceTracingConnection::DisableProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DisableProcessorRequest const& request) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::DisableProcessor"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DisableProcessor(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DocumentProcessorServiceTracingConnection::DisableProcessor( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::DisableProcessor"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DisableProcessor(google::cloud::ExperimentalTag{}, operation)); +} + future< StatusOr> DocumentProcessorServiceTracingConnection::SetDefaultProcessorVersion( @@ -225,6 +432,34 @@ DocumentProcessorServiceTracingConnection::SetDefaultProcessorVersion( child_->SetDefaultProcessorVersion(request)); } +StatusOr +DocumentProcessorServiceTracingConnection::SetDefaultProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& + request) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::" + "SetDefaultProcessorVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SetDefaultProcessorVersion( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future< + StatusOr> +DocumentProcessorServiceTracingConnection::SetDefaultProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::" + "SetDefaultProcessorVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SetDefaultProcessorVersion( + google::cloud::ExperimentalTag{}, operation)); +} + future> DocumentProcessorServiceTracingConnection::ReviewDocument( google::cloud::documentai::v1::ReviewDocumentRequest const& request) { @@ -234,6 +469,30 @@ DocumentProcessorServiceTracingConnection::ReviewDocument( return internal::EndSpan(std::move(span), child_->ReviewDocument(request)); } +StatusOr +DocumentProcessorServiceTracingConnection::ReviewDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::ReviewDocumentRequest const& request) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::ReviewDocument"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ReviewDocument(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DocumentProcessorServiceTracingConnection::ReviewDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::ReviewDocument"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ReviewDocument(google::cloud::ExperimentalTag{}, operation)); +} + future< StatusOr> DocumentProcessorServiceTracingConnection::EvaluateProcessorVersion( @@ -247,6 +506,34 @@ DocumentProcessorServiceTracingConnection::EvaluateProcessorVersion( child_->EvaluateProcessorVersion(request)); } +StatusOr +DocumentProcessorServiceTracingConnection::EvaluateProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& + request) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::" + "EvaluateProcessorVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->EvaluateProcessorVersion( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future< + StatusOr> +DocumentProcessorServiceTracingConnection::EvaluateProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "documentai_v1::DocumentProcessorServiceConnection::" + "EvaluateProcessorVersion"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->EvaluateProcessorVersion( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DocumentProcessorServiceTracingConnection::GetEvaluation( google::cloud::documentai::v1::GetEvaluationRequest const& request) { diff --git a/google/cloud/documentai/v1/internal/document_processor_tracing_connection.h b/google/cloud/documentai/v1/internal/document_processor_tracing_connection.h index 982fe063f5870..3be12585e6ae1 100644 --- a/google/cloud/documentai/v1/internal/document_processor_tracing_connection.h +++ b/google/cloud/documentai/v1/internal/document_processor_tracing_connection.h @@ -48,6 +48,16 @@ class DocumentProcessorServiceTracingConnection google::cloud::documentai::v1::BatchProcessRequest const& request) override; + StatusOr BatchProcessDocuments( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::BatchProcessRequest const& request) + override; + + future> + BatchProcessDocuments( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr FetchProcessorTypes( google::cloud::documentai::v1::FetchProcessorTypesRequest const& request) @@ -73,6 +83,16 @@ class DocumentProcessorServiceTracingConnection google::cloud::documentai::v1::TrainProcessorVersionRequest const& request) override; + StatusOr TrainProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::TrainProcessorVersionRequest const& + request) override; + + future> + TrainProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetProcessorVersion( google::cloud::documentai::v1::GetProcessorVersionRequest const& request) override; @@ -88,18 +108,51 @@ class DocumentProcessorServiceTracingConnection google::cloud::documentai::v1::DeleteProcessorVersionRequest const& request) override; + StatusOr DeleteProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeleteProcessorVersionRequest const& + request) override; + + future< + StatusOr> + DeleteProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> DeployProcessorVersion( google::cloud::documentai::v1::DeployProcessorVersionRequest const& request) override; + StatusOr DeployProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeployProcessorVersionRequest const& + request) override; + + future< + StatusOr> + DeployProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> UndeployProcessorVersion( google::cloud::documentai::v1::UndeployProcessorVersionRequest const& request) override; + StatusOr UndeployProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::UndeployProcessorVersionRequest const& + request) override; + + future< + StatusOr> + UndeployProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateProcessor( google::cloud::documentai::v1::CreateProcessorRequest const& request) override; @@ -108,30 +161,88 @@ class DocumentProcessorServiceTracingConnection DeleteProcessor(google::cloud::documentai::v1::DeleteProcessorRequest const& request) override; + StatusOr DeleteProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeleteProcessorRequest const& request) + override; + + future> + DeleteProcessor(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> EnableProcessor(google::cloud::documentai::v1::EnableProcessorRequest const& request) override; + StatusOr EnableProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::EnableProcessorRequest const& request) + override; + + future> + EnableProcessor(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DisableProcessor(google::cloud::documentai::v1::DisableProcessorRequest const& request) override; + StatusOr DisableProcessor( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DisableProcessorRequest const& request) + override; + + future> + DisableProcessor(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> SetDefaultProcessorVersion( google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& request) override; + StatusOr SetDefaultProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& + request) override; + + future> + SetDefaultProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReviewDocument(google::cloud::documentai::v1::ReviewDocumentRequest const& request) override; + StatusOr ReviewDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::ReviewDocumentRequest const& request) + override; + + future> + ReviewDocument(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> EvaluateProcessorVersion( google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& request) override; + StatusOr EvaluateProcessorVersion( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& + request) override; + + future< + StatusOr> + EvaluateProcessorVersion( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetEvaluation( google::cloud::documentai::v1::GetEvaluationRequest const& request) override; diff --git a/google/cloud/documentai/v1/mocks/mock_document_processor_connection.h b/google/cloud/documentai/v1/mocks/mock_document_processor_connection.h index 69139c6a691b1..429ad4d359526 100644 --- a/google/cloud/documentai/v1/mocks/mock_document_processor_connection.h +++ b/google/cloud/documentai/v1/mocks/mock_document_processor_connection.h @@ -58,6 +58,19 @@ class MockDocumentProcessorServiceConnection (google::cloud::documentai::v1::BatchProcessRequest const& request), (override)); + MOCK_METHOD( + StatusOr, BatchProcessDocuments, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::BatchProcessRequest const& request), + (override)); + + MOCK_METHOD( + future>, + BatchProcessDocuments, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, FetchProcessorTypes, @@ -94,6 +107,21 @@ class MockDocumentProcessorServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, TrainProcessorVersion, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::TrainProcessorVersionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + TrainProcessorVersion, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetProcessorVersion, (google::cloud::documentai::v1::GetProcessorVersionRequest const& @@ -114,6 +142,21 @@ class MockDocumentProcessorServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteProcessorVersion, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeleteProcessorVersionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteProcessorVersion, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -122,6 +165,21 @@ class MockDocumentProcessorServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, DeployProcessorVersion, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeployProcessorVersionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeployProcessorVersion, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -130,6 +188,21 @@ class MockDocumentProcessorServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, UndeployProcessorVersion, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::UndeployProcessorVersionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UndeployProcessorVersion, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CreateProcessor, (google::cloud::documentai::v1::CreateProcessorRequest const& request), @@ -141,18 +214,57 @@ class MockDocumentProcessorServiceConnection (google::cloud::documentai::v1::DeleteProcessorRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteProcessor, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DeleteProcessorRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteProcessor, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, EnableProcessor, (google::cloud::documentai::v1::EnableProcessorRequest const& request), (override)); + MOCK_METHOD( + StatusOr, EnableProcessor, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::EnableProcessorRequest const& request), + (override)); + + MOCK_METHOD( + future>, + EnableProcessor, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DisableProcessor, (google::cloud::documentai::v1::DisableProcessorRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DisableProcessor, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::DisableProcessorRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DisableProcessor, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -161,12 +273,40 @@ class MockDocumentProcessorServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, SetDefaultProcessorVersion, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + SetDefaultProcessorVersion, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ReviewDocument, (google::cloud::documentai::v1::ReviewDocumentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ReviewDocument, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::ReviewDocumentRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ReviewDocument, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -175,6 +315,21 @@ class MockDocumentProcessorServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, EvaluateProcessorVersion, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + EvaluateProcessorVersion, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetEvaluation, (google::cloud::documentai::v1::GetEvaluationRequest const& request), diff --git a/google/cloud/domains/v1/domains_connection.cc b/google/cloud/domains/v1/domains_connection.cc index c0664c59042ba..dfaeafec29cbd 100644 --- a/google/cloud/domains/v1/domains_connection.cc +++ b/google/cloud/domains/v1/domains_connection.cc @@ -58,6 +58,21 @@ DomainsConnection::RegisterDomain( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DomainsConnection::RegisterDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::RegisterDomainRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DomainsConnection::RegisterDomain(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DomainsConnection::RetrieveTransferParameters( google::cloud::domains::v1::RetrieveTransferParametersRequest const&) { @@ -72,6 +87,21 @@ DomainsConnection::TransferDomain( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DomainsConnection::TransferDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::TransferDomainRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DomainsConnection::TransferDomain(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange DomainsConnection::ListRegistrations( google::cloud::domains::v1:: @@ -94,6 +124,21 @@ DomainsConnection::UpdateRegistration( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DomainsConnection::UpdateRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::UpdateRegistrationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DomainsConnection::UpdateRegistration(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DomainsConnection::ConfigureManagementSettings( google::cloud::domains::v1::ConfigureManagementSettingsRequest const&) { @@ -102,6 +147,22 @@ DomainsConnection::ConfigureManagementSettings( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DomainsConnection::ConfigureManagementSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureManagementSettingsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DomainsConnection::ConfigureManagementSettings( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DomainsConnection::ConfigureDnsSettings( google::cloud::domains::v1::ConfigureDnsSettingsRequest const&) { @@ -110,6 +171,22 @@ DomainsConnection::ConfigureDnsSettings( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DomainsConnection::ConfigureDnsSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureDnsSettingsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DomainsConnection::ConfigureDnsSettings(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DomainsConnection::ConfigureContactSettings( google::cloud::domains::v1::ConfigureContactSettingsRequest const&) { @@ -118,6 +195,22 @@ DomainsConnection::ConfigureContactSettings( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DomainsConnection::ConfigureContactSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureContactSettingsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DomainsConnection::ConfigureContactSettings( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DomainsConnection::ExportRegistration( google::cloud::domains::v1::ExportRegistrationRequest const&) { @@ -126,6 +219,21 @@ DomainsConnection::ExportRegistration( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DomainsConnection::ExportRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ExportRegistrationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DomainsConnection::ExportRegistration(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DomainsConnection::DeleteRegistration( google::cloud::domains::v1::DeleteRegistrationRequest const&) { @@ -134,6 +242,21 @@ DomainsConnection::DeleteRegistration( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DomainsConnection::DeleteRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::DeleteRegistrationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DomainsConnection::DeleteRegistration(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DomainsConnection::RetrieveAuthorizationCode( google::cloud::domains::v1::RetrieveAuthorizationCodeRequest const&) { diff --git a/google/cloud/domains/v1/domains_connection.h b/google/cloud/domains/v1/domains_connection.h index 7d9b2b86d7ad8..58c307d2d4621 100644 --- a/google/cloud/domains/v1/domains_connection.h +++ b/google/cloud/domains/v1/domains_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/domains/v1/domains_connection_idempotency_policy.h" #include "google/cloud/domains/v1/internal/domains_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -196,6 +198,14 @@ class DomainsConnection { RegisterDomain( google::cloud::domains::v1::RegisterDomainRequest const& request); + virtual StatusOr RegisterDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::RegisterDomainRequest const& request); + + virtual future> + RegisterDomain(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::cloud::domains::v1::RetrieveTransferParametersResponse> RetrieveTransferParameters( @@ -206,6 +216,14 @@ class DomainsConnection { TransferDomain( google::cloud::domains::v1::TransferDomainRequest const& request); + virtual StatusOr TransferDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::TransferDomainRequest const& request); + + virtual future> + TransferDomain(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListRegistrations( google::cloud::domains::v1::ListRegistrationsRequest request); @@ -217,28 +235,78 @@ class DomainsConnection { UpdateRegistration( google::cloud::domains::v1::UpdateRegistrationRequest const& request); + virtual StatusOr UpdateRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::UpdateRegistrationRequest const& request); + + virtual future> + UpdateRegistration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ConfigureManagementSettings( google::cloud::domains::v1::ConfigureManagementSettingsRequest const& request); + virtual StatusOr ConfigureManagementSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureManagementSettingsRequest const& + request); + + virtual future> + ConfigureManagementSettings(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ConfigureDnsSettings( google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request); + virtual StatusOr ConfigureDnsSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request); + + virtual future> + ConfigureDnsSettings(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ConfigureContactSettings( google::cloud::domains::v1::ConfigureContactSettingsRequest const& request); + virtual StatusOr ConfigureContactSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureContactSettingsRequest const& + request); + + virtual future> + ConfigureContactSettings(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ExportRegistration( google::cloud::domains::v1::ExportRegistrationRequest const& request); + virtual StatusOr ExportRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ExportRegistrationRequest const& request); + + virtual future> + ExportRegistration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteRegistration( google::cloud::domains::v1::DeleteRegistrationRequest const& request); + virtual StatusOr DeleteRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::DeleteRegistrationRequest const& request); + + virtual future> + DeleteRegistration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr RetrieveAuthorizationCode( google::cloud::domains::v1::RetrieveAuthorizationCodeRequest const& diff --git a/google/cloud/domains/v1/internal/domains_connection_impl.cc b/google/cloud/domains/v1/internal/domains_connection_impl.cc index 45d5fe832e060..3379fd9d3e037 100644 --- a/google/cloud/domains/v1/internal/domains_connection_impl.cc +++ b/google/cloud/domains/v1/internal/domains_connection_impl.cc @@ -132,6 +132,58 @@ DomainsConnectionImpl::RegisterDomain( polling_policy(*current), __func__); } +StatusOr DomainsConnectionImpl::RegisterDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::RegisterDomainRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RegisterDomain(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::domains::v1::RegisterDomainRequest const& request) { + return stub_->RegisterDomain(context, options, request); + }, + *current, request, __func__); +} + +future> +DomainsConnectionImpl::RegisterDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RegisterDomain", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::domains::v1::Registration>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::domains::v1::Registration>, + polling_policy(*current), __func__); +} + StatusOr DomainsConnectionImpl::RetrieveTransferParameters( google::cloud::domains::v1::RetrieveTransferParametersRequest const& @@ -188,6 +240,58 @@ DomainsConnectionImpl::TransferDomain( polling_policy(*current), __func__); } +StatusOr DomainsConnectionImpl::TransferDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::TransferDomainRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->TransferDomain(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::domains::v1::TransferDomainRequest const& request) { + return stub_->TransferDomain(context, options, request); + }, + *current, request, __func__); +} + +future> +DomainsConnectionImpl::TransferDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to TransferDomain", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::domains::v1::Registration>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::domains::v1::Registration>, + polling_policy(*current), __func__); +} + StreamRange DomainsConnectionImpl::ListRegistrations( google::cloud::domains::v1::ListRegistrationsRequest request) { @@ -277,6 +381,60 @@ DomainsConnectionImpl::UpdateRegistration( polling_policy(*current), __func__); } +StatusOr +DomainsConnectionImpl::UpdateRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::UpdateRegistrationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateRegistration(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::domains::v1::UpdateRegistrationRequest const& + request) { + return stub_->UpdateRegistration(context, options, request); + }, + *current, request, __func__); +} + +future> +DomainsConnectionImpl::UpdateRegistration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateRegistration", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::domains::v1::Registration>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::domains::v1::Registration>, + polling_policy(*current), __func__); +} + future> DomainsConnectionImpl::ConfigureManagementSettings( google::cloud::domains::v1::ConfigureManagementSettingsRequest const& @@ -318,6 +476,62 @@ DomainsConnectionImpl::ConfigureManagementSettings( polling_policy(*current), __func__); } +StatusOr +DomainsConnectionImpl::ConfigureManagementSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureManagementSettingsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ConfigureManagementSettings(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::domains::v1::ConfigureManagementSettingsRequest const& + request) { + return stub_->ConfigureManagementSettings(context, options, request); + }, + *current, request, __func__); +} + +future> +DomainsConnectionImpl::ConfigureManagementSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ConfigureManagementSettings", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::domains::v1::Registration>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::domains::v1::Registration>, + polling_policy(*current), __func__); +} + future> DomainsConnectionImpl::ConfigureDnsSettings( google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request) { @@ -358,6 +572,60 @@ DomainsConnectionImpl::ConfigureDnsSettings( polling_policy(*current), __func__); } +StatusOr +DomainsConnectionImpl::ConfigureDnsSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ConfigureDnsSettings(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::domains::v1::ConfigureDnsSettingsRequest const& + request) { + return stub_->ConfigureDnsSettings(context, options, request); + }, + *current, request, __func__); +} + +future> +DomainsConnectionImpl::ConfigureDnsSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ConfigureDnsSettings", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::domains::v1::Registration>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::domains::v1::Registration>, + polling_policy(*current), __func__); +} + future> DomainsConnectionImpl::ConfigureContactSettings( google::cloud::domains::v1::ConfigureContactSettingsRequest const& @@ -399,6 +667,61 @@ DomainsConnectionImpl::ConfigureContactSettings( polling_policy(*current), __func__); } +StatusOr +DomainsConnectionImpl::ConfigureContactSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureContactSettingsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ConfigureContactSettings(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::domains::v1::ConfigureContactSettingsRequest const& + request) { + return stub_->ConfigureContactSettings(context, options, request); + }, + *current, request, __func__); +} + +future> +DomainsConnectionImpl::ConfigureContactSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ConfigureContactSettings", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::domains::v1::Registration>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::domains::v1::Registration>, + polling_policy(*current), __func__); +} + future> DomainsConnectionImpl::ExportRegistration( google::cloud::domains::v1::ExportRegistrationRequest const& request) { @@ -439,6 +762,60 @@ DomainsConnectionImpl::ExportRegistration( polling_policy(*current), __func__); } +StatusOr +DomainsConnectionImpl::ExportRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ExportRegistrationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportRegistration(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::domains::v1::ExportRegistrationRequest const& + request) { + return stub_->ExportRegistration(context, options, request); + }, + *current, request, __func__); +} + +future> +DomainsConnectionImpl::ExportRegistration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ExportRegistration", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::domains::v1::Registration>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::domains::v1::Registration>, + polling_policy(*current), __func__); +} + future> DomainsConnectionImpl::DeleteRegistration( google::cloud::domains::v1::DeleteRegistrationRequest const& request) { @@ -479,6 +856,60 @@ DomainsConnectionImpl::DeleteRegistration( polling_policy(*current), __func__); } +StatusOr +DomainsConnectionImpl::DeleteRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::DeleteRegistrationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteRegistration(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::domains::v1::DeleteRegistrationRequest const& + request) { + return stub_->DeleteRegistration(context, options, request); + }, + *current, request, __func__); +} + +future> +DomainsConnectionImpl::DeleteRegistration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteRegistration", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::domains::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::domains::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr DomainsConnectionImpl::RetrieveAuthorizationCode( google::cloud::domains::v1::RetrieveAuthorizationCodeRequest const& diff --git a/google/cloud/domains/v1/internal/domains_connection_impl.h b/google/cloud/domains/v1/internal/domains_connection_impl.h index cd10c8f9e03d8..e4720e77179a1 100644 --- a/google/cloud/domains/v1/internal/domains_connection_impl.h +++ b/google/cloud/domains/v1/internal/domains_connection_impl.h @@ -62,6 +62,15 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { google::cloud::domains::v1::RegisterDomainRequest const& request) override; + StatusOr RegisterDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::RegisterDomainRequest const& request) + override; + + future> RegisterDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr RetrieveTransferParameters( google::cloud::domains::v1::RetrieveTransferParametersRequest const& @@ -71,6 +80,15 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { google::cloud::domains::v1::TransferDomainRequest const& request) override; + StatusOr TransferDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::TransferDomainRequest const& request) + override; + + future> TransferDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRegistrations( google::cloud::domains::v1::ListRegistrationsRequest request) override; @@ -82,30 +100,87 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { google::cloud::domains::v1::UpdateRegistrationRequest const& request) override; + StatusOr UpdateRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::UpdateRegistrationRequest const& request) + override; + + future> UpdateRegistration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ConfigureManagementSettings( google::cloud::domains::v1::ConfigureManagementSettingsRequest const& request) override; + StatusOr ConfigureManagementSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureManagementSettingsRequest const& + request) override; + + future> + ConfigureManagementSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ConfigureDnsSettings( google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request) override; + StatusOr ConfigureDnsSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request) + override; + + future> + ConfigureDnsSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ConfigureContactSettings( google::cloud::domains::v1::ConfigureContactSettingsRequest const& request) override; + StatusOr ConfigureContactSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureContactSettingsRequest const& + request) override; + + future> + ConfigureContactSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportRegistration( google::cloud::domains::v1::ExportRegistrationRequest const& request) override; + StatusOr ExportRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ExportRegistrationRequest const& request) + override; + + future> ExportRegistration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteRegistration( google::cloud::domains::v1::DeleteRegistrationRequest const& request) override; + StatusOr DeleteRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::DeleteRegistrationRequest const& request) + override; + + future> + DeleteRegistration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr RetrieveAuthorizationCode( google::cloud::domains::v1::RetrieveAuthorizationCodeRequest const& diff --git a/google/cloud/domains/v1/internal/domains_tracing_connection.cc b/google/cloud/domains/v1/internal/domains_tracing_connection.cc index 88c2d2773f9f5..72a90398a800b 100644 --- a/google/cloud/domains/v1/internal/domains_tracing_connection.cc +++ b/google/cloud/domains/v1/internal/domains_tracing_connection.cc @@ -61,6 +61,30 @@ DomainsTracingConnection::RegisterDomain( return internal::EndSpan(std::move(span), child_->RegisterDomain(request)); } +StatusOr +DomainsTracingConnection::RegisterDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::RegisterDomainRequest const& request) { + auto span = + internal::MakeSpan("domains_v1::DomainsConnection::RegisterDomain"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RegisterDomain(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DomainsTracingConnection::RegisterDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("domains_v1::DomainsConnection::RegisterDomain"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RegisterDomain(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DomainsTracingConnection::RetrieveTransferParameters( google::cloud::domains::v1::RetrieveTransferParametersRequest const& @@ -80,6 +104,30 @@ DomainsTracingConnection::TransferDomain( return internal::EndSpan(std::move(span), child_->TransferDomain(request)); } +StatusOr +DomainsTracingConnection::TransferDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::TransferDomainRequest const& request) { + auto span = + internal::MakeSpan("domains_v1::DomainsConnection::TransferDomain"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->TransferDomain(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DomainsTracingConnection::TransferDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("domains_v1::DomainsConnection::TransferDomain"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->TransferDomain(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange DomainsTracingConnection::ListRegistrations( google::cloud::domains::v1::ListRegistrationsRequest request) { @@ -110,6 +158,30 @@ DomainsTracingConnection::UpdateRegistration( child_->UpdateRegistration(request)); } +StatusOr +DomainsTracingConnection::UpdateRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::UpdateRegistrationRequest const& request) { + auto span = + internal::MakeSpan("domains_v1::DomainsConnection::UpdateRegistration"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateRegistration(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DomainsTracingConnection::UpdateRegistration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("domains_v1::DomainsConnection::UpdateRegistration"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateRegistration(google::cloud::ExperimentalTag{}, operation)); +} + future> DomainsTracingConnection::ConfigureManagementSettings( google::cloud::domains::v1::ConfigureManagementSettingsRequest const& @@ -121,6 +193,31 @@ DomainsTracingConnection::ConfigureManagementSettings( child_->ConfigureManagementSettings(request)); } +StatusOr +DomainsTracingConnection::ConfigureManagementSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureManagementSettingsRequest const& + request) { + auto span = internal::MakeSpan( + "domains_v1::DomainsConnection::ConfigureManagementSettings"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ConfigureManagementSettings( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DomainsTracingConnection::ConfigureManagementSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "domains_v1::DomainsConnection::ConfigureManagementSettings"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ConfigureManagementSettings( + google::cloud::ExperimentalTag{}, operation)); +} + future> DomainsTracingConnection::ConfigureDnsSettings( google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request) { @@ -131,6 +228,30 @@ DomainsTracingConnection::ConfigureDnsSettings( child_->ConfigureDnsSettings(request)); } +StatusOr +DomainsTracingConnection::ConfigureDnsSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request) { + auto span = + internal::MakeSpan("domains_v1::DomainsConnection::ConfigureDnsSettings"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ConfigureDnsSettings( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DomainsTracingConnection::ConfigureDnsSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("domains_v1::DomainsConnection::ConfigureDnsSettings"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ConfigureDnsSettings( + google::cloud::ExperimentalTag{}, operation)); +} + future> DomainsTracingConnection::ConfigureContactSettings( google::cloud::domains::v1::ConfigureContactSettingsRequest const& @@ -142,6 +263,31 @@ DomainsTracingConnection::ConfigureContactSettings( child_->ConfigureContactSettings(request)); } +StatusOr +DomainsTracingConnection::ConfigureContactSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureContactSettingsRequest const& + request) { + auto span = internal::MakeSpan( + "domains_v1::DomainsConnection::ConfigureContactSettings"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ConfigureContactSettings( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DomainsTracingConnection::ConfigureContactSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "domains_v1::DomainsConnection::ConfigureContactSettings"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ConfigureContactSettings( + google::cloud::ExperimentalTag{}, operation)); +} + future> DomainsTracingConnection::ExportRegistration( google::cloud::domains::v1::ExportRegistrationRequest const& request) { @@ -152,6 +298,30 @@ DomainsTracingConnection::ExportRegistration( child_->ExportRegistration(request)); } +StatusOr +DomainsTracingConnection::ExportRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ExportRegistrationRequest const& request) { + auto span = + internal::MakeSpan("domains_v1::DomainsConnection::ExportRegistration"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportRegistration(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DomainsTracingConnection::ExportRegistration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("domains_v1::DomainsConnection::ExportRegistration"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportRegistration(google::cloud::ExperimentalTag{}, operation)); +} + future> DomainsTracingConnection::DeleteRegistration( google::cloud::domains::v1::DeleteRegistrationRequest const& request) { @@ -162,6 +332,30 @@ DomainsTracingConnection::DeleteRegistration( child_->DeleteRegistration(request)); } +StatusOr +DomainsTracingConnection::DeleteRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::DeleteRegistrationRequest const& request) { + auto span = + internal::MakeSpan("domains_v1::DomainsConnection::DeleteRegistration"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteRegistration(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DomainsTracingConnection::DeleteRegistration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("domains_v1::DomainsConnection::DeleteRegistration"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteRegistration(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DomainsTracingConnection::RetrieveAuthorizationCode( google::cloud::domains::v1::RetrieveAuthorizationCodeRequest const& diff --git a/google/cloud/domains/v1/internal/domains_tracing_connection.h b/google/cloud/domains/v1/internal/domains_tracing_connection.h index 61b5a6b1c1daa..ec9645e262449 100644 --- a/google/cloud/domains/v1/internal/domains_tracing_connection.h +++ b/google/cloud/domains/v1/internal/domains_tracing_connection.h @@ -51,6 +51,15 @@ class DomainsTracingConnection : public domains_v1::DomainsConnection { google::cloud::domains::v1::RegisterDomainRequest const& request) override; + StatusOr RegisterDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::RegisterDomainRequest const& request) + override; + + future> RegisterDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr RetrieveTransferParameters( google::cloud::domains::v1::RetrieveTransferParametersRequest const& @@ -60,6 +69,15 @@ class DomainsTracingConnection : public domains_v1::DomainsConnection { google::cloud::domains::v1::TransferDomainRequest const& request) override; + StatusOr TransferDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::TransferDomainRequest const& request) + override; + + future> TransferDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRegistrations( google::cloud::domains::v1::ListRegistrationsRequest request) override; @@ -71,30 +89,87 @@ class DomainsTracingConnection : public domains_v1::DomainsConnection { google::cloud::domains::v1::UpdateRegistrationRequest const& request) override; + StatusOr UpdateRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::UpdateRegistrationRequest const& request) + override; + + future> UpdateRegistration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ConfigureManagementSettings( google::cloud::domains::v1::ConfigureManagementSettingsRequest const& request) override; + StatusOr ConfigureManagementSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureManagementSettingsRequest const& + request) override; + + future> + ConfigureManagementSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ConfigureDnsSettings( google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request) override; + StatusOr ConfigureDnsSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request) + override; + + future> + ConfigureDnsSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ConfigureContactSettings( google::cloud::domains::v1::ConfigureContactSettingsRequest const& request) override; + StatusOr ConfigureContactSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureContactSettingsRequest const& + request) override; + + future> + ConfigureContactSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportRegistration( google::cloud::domains::v1::ExportRegistrationRequest const& request) override; + StatusOr ExportRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ExportRegistrationRequest const& request) + override; + + future> ExportRegistration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteRegistration( google::cloud::domains::v1::DeleteRegistrationRequest const& request) override; + StatusOr DeleteRegistration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::DeleteRegistrationRequest const& request) + override; + + future> + DeleteRegistration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr RetrieveAuthorizationCode( google::cloud::domains::v1::RetrieveAuthorizationCodeRequest const& diff --git a/google/cloud/domains/v1/mocks/mock_domains_connection.h b/google/cloud/domains/v1/mocks/mock_domains_connection.h index 46488c5506b22..86fe6ec3f6c21 100644 --- a/google/cloud/domains/v1/mocks/mock_domains_connection.h +++ b/google/cloud/domains/v1/mocks/mock_domains_connection.h @@ -64,6 +64,18 @@ class MockDomainsConnection : public domains_v1::DomainsConnection { (google::cloud::domains::v1::RegisterDomainRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RegisterDomain, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::RegisterDomainRequest const& request), + (override)); + + MOCK_METHOD(future>, + RegisterDomain, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, RetrieveTransferParameters, @@ -77,6 +89,18 @@ class MockDomainsConnection : public domains_v1::DomainsConnection { (google::cloud::domains::v1::TransferDomainRequest const& request), (override)); + MOCK_METHOD( + StatusOr, TransferDomain, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::TransferDomainRequest const& request), + (override)); + + MOCK_METHOD(future>, + TransferDomain, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRegistrations, (google::cloud::domains::v1::ListRegistrationsRequest request), @@ -93,6 +117,18 @@ class MockDomainsConnection : public domains_v1::DomainsConnection { (google::cloud::domains::v1::UpdateRegistrationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateRegistration, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::UpdateRegistrationRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateRegistration, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ConfigureManagementSettings, @@ -100,12 +136,37 @@ class MockDomainsConnection : public domains_v1::DomainsConnection { request), (override)); + MOCK_METHOD( + StatusOr, ConfigureManagementSettings, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureManagementSettingsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + ConfigureManagementSettings, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ConfigureDnsSettings, (google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ConfigureDnsSettings, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request), + (override)); + + MOCK_METHOD(future>, + ConfigureDnsSettings, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ConfigureContactSettings, @@ -113,18 +174,55 @@ class MockDomainsConnection : public domains_v1::DomainsConnection { request), (override)); + MOCK_METHOD( + StatusOr, ConfigureContactSettings, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ConfigureContactSettingsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + ConfigureContactSettings, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ExportRegistration, (google::cloud::domains::v1::ExportRegistrationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ExportRegistration, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::ExportRegistrationRequest const& request), + (override)); + + MOCK_METHOD(future>, + ExportRegistration, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteRegistration, (google::cloud::domains::v1::DeleteRegistrationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteRegistration, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::domains::v1::DeleteRegistrationRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteRegistration, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, RetrieveAuthorizationCode, diff --git a/google/cloud/edgecontainer/v1/edge_container_connection.cc b/google/cloud/edgecontainer/v1/edge_container_connection.cc index a9fe4111a08b7..3c245be58c0f5 100644 --- a/google/cloud/edgecontainer/v1/edge_container_connection.cc +++ b/google/cloud/edgecontainer/v1/edge_container_connection.cc @@ -60,6 +60,21 @@ EdgeContainerConnection::CreateCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EdgeContainerConnection::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeContainerConnection::CreateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EdgeContainerConnection::UpdateCluster( google::cloud::edgecontainer::v1::UpdateClusterRequest const&) { @@ -68,6 +83,21 @@ EdgeContainerConnection::UpdateCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EdgeContainerConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpdateClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeContainerConnection::UpdateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EdgeContainerConnection::UpgradeCluster( google::cloud::edgecontainer::v1::UpgradeClusterRequest const&) { @@ -76,6 +106,22 @@ EdgeContainerConnection::UpgradeCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EdgeContainerConnection::UpgradeCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpgradeClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeContainerConnection::UpgradeCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EdgeContainerConnection::DeleteCluster( google::cloud::edgecontainer::v1::DeleteClusterRequest const&) { @@ -84,6 +130,21 @@ EdgeContainerConnection::DeleteCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EdgeContainerConnection::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeContainerConnection::DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr EdgeContainerConnection::GenerateAccessToken( google::cloud::edgecontainer::v1::GenerateAccessTokenRequest const&) { @@ -118,6 +179,22 @@ EdgeContainerConnection::CreateNodePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EdgeContainerConnection::CreateNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateNodePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeContainerConnection::CreateNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EdgeContainerConnection::UpdateNodePool( google::cloud::edgecontainer::v1::UpdateNodePoolRequest const&) { @@ -126,6 +203,22 @@ EdgeContainerConnection::UpdateNodePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EdgeContainerConnection::UpdateNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpdateNodePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeContainerConnection::UpdateNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EdgeContainerConnection::DeleteNodePool( google::cloud::edgecontainer::v1::DeleteNodePoolRequest const&) { @@ -134,6 +227,22 @@ EdgeContainerConnection::DeleteNodePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EdgeContainerConnection::DeleteNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteNodePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeContainerConnection::DeleteNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange EdgeContainerConnection::ListMachines( google::cloud::edgecontainer::v1:: @@ -170,6 +279,22 @@ EdgeContainerConnection::CreateVpnConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EdgeContainerConnection::CreateVpnConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeContainerConnection::CreateVpnConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EdgeContainerConnection::DeleteVpnConnection( google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const&) { @@ -178,6 +303,22 @@ EdgeContainerConnection::DeleteVpnConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EdgeContainerConnection::DeleteVpnConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeContainerConnection::DeleteVpnConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr EdgeContainerConnection::GetServerConfig( google::cloud::edgecontainer::v1::GetServerConfigRequest const&) { diff --git a/google/cloud/edgecontainer/v1/edge_container_connection.h b/google/cloud/edgecontainer/v1/edge_container_connection.h index 665f58d287b9d..05b3bad45bb21 100644 --- a/google/cloud/edgecontainer/v1/edge_container_connection.h +++ b/google/cloud/edgecontainer/v1/edge_container_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/edgecontainer/v1/edge_container_connection_idempotency_policy.h" #include "google/cloud/edgecontainer/v1/internal/edge_container_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -195,18 +197,50 @@ class EdgeContainerConnection { CreateCluster( google::cloud::edgecontainer::v1::CreateClusterRequest const& request); + virtual StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateClusterRequest const& request); + + virtual future> + CreateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateCluster( google::cloud::edgecontainer::v1::UpdateClusterRequest const& request); + virtual StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpdateClusterRequest const& request); + + virtual future> + UpdateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpgradeCluster( google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request); + virtual StatusOr UpgradeCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request); + + virtual future> + UpgradeCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteCluster( google::cloud::edgecontainer::v1::DeleteClusterRequest const& request); + virtual StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteClusterRequest const& request); + + virtual future> + DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::cloud::edgecontainer::v1::GenerateAccessTokenResponse> GenerateAccessToken( @@ -229,14 +263,38 @@ class EdgeContainerConnection { CreateNodePool( google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request); + virtual StatusOr CreateNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request); + + virtual future> + CreateNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateNodePool( google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request); + virtual StatusOr UpdateNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request); + + virtual future> + UpdateNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteNodePool( google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request); + virtual StatusOr DeleteNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request); + + virtual future> + DeleteNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListMachines( google::cloud::edgecontainer::v1::ListMachinesRequest request); @@ -256,11 +314,29 @@ class EdgeContainerConnection { google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& request); + virtual StatusOr CreateVpnConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& + request); + + virtual future> + CreateVpnConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteVpnConnection( google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& request); + virtual StatusOr DeleteVpnConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& + request); + + virtual future> + DeleteVpnConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetServerConfig( google::cloud::edgecontainer::v1::GetServerConfigRequest const& request); diff --git a/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.cc b/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.cc index 10676d434d46a..b30be8fd77f34 100644 --- a/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.cc +++ b/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.cc @@ -156,6 +156,61 @@ EdgeContainerConnectionImpl::CreateCluster( polling_policy(*current), __func__); } +StatusOr +EdgeContainerConnectionImpl::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::edgecontainer::v1::CreateClusterRequest const& + request) { + return stub_->CreateCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeContainerConnectionImpl::CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgecontainer::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::edgecontainer::v1::Cluster>, + polling_policy(*current), __func__); +} + future> EdgeContainerConnectionImpl::UpdateCluster( google::cloud::edgecontainer::v1::UpdateClusterRequest const& request) { @@ -196,6 +251,61 @@ EdgeContainerConnectionImpl::UpdateCluster( polling_policy(*current), __func__); } +StatusOr +EdgeContainerConnectionImpl::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpdateClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::edgecontainer::v1::UpdateClusterRequest const& + request) { + return stub_->UpdateCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeContainerConnectionImpl::UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgecontainer::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::edgecontainer::v1::Cluster>, + polling_policy(*current), __func__); +} + future> EdgeContainerConnectionImpl::UpgradeCluster( google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request) { @@ -236,6 +346,61 @@ EdgeContainerConnectionImpl::UpgradeCluster( polling_policy(*current), __func__); } +StatusOr +EdgeContainerConnectionImpl::UpgradeCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpgradeCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::edgecontainer::v1::UpgradeClusterRequest const& + request) { + return stub_->UpgradeCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeContainerConnectionImpl::UpgradeCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpgradeCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgecontainer::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::edgecontainer::v1::Cluster>, + polling_policy(*current), __func__); +} + future> EdgeContainerConnectionImpl::DeleteCluster( google::cloud::edgecontainer::v1::DeleteClusterRequest const& request) { @@ -276,6 +441,61 @@ EdgeContainerConnectionImpl::DeleteCluster( polling_policy(*current), __func__); } +StatusOr +EdgeContainerConnectionImpl::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::edgecontainer::v1::DeleteClusterRequest const& + request) { + return stub_->DeleteCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeContainerConnectionImpl::DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgecontainer::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::edgecontainer::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr EdgeContainerConnectionImpl::GenerateAccessToken( google::cloud::edgecontainer::v1::GenerateAccessTokenRequest const& @@ -397,6 +617,61 @@ EdgeContainerConnectionImpl::CreateNodePool( polling_policy(*current), __func__); } +StatusOr +EdgeContainerConnectionImpl::CreateNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateNodePool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::edgecontainer::v1::CreateNodePoolRequest const& + request) { + return stub_->CreateNodePool(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeContainerConnectionImpl::CreateNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateNodePool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgecontainer::v1::NodePool>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::edgecontainer::v1::NodePool>, + polling_policy(*current), __func__); +} + future> EdgeContainerConnectionImpl::UpdateNodePool( google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request) { @@ -437,6 +712,61 @@ EdgeContainerConnectionImpl::UpdateNodePool( polling_policy(*current), __func__); } +StatusOr +EdgeContainerConnectionImpl::UpdateNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateNodePool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& + request) { + return stub_->UpdateNodePool(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeContainerConnectionImpl::UpdateNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateNodePool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgecontainer::v1::NodePool>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::edgecontainer::v1::NodePool>, + polling_policy(*current), __func__); +} + future> EdgeContainerConnectionImpl::DeleteNodePool( google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request) { @@ -477,6 +807,61 @@ EdgeContainerConnectionImpl::DeleteNodePool( polling_policy(*current), __func__); } +StatusOr +EdgeContainerConnectionImpl::DeleteNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNodePool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& + request) { + return stub_->DeleteNodePool(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeContainerConnectionImpl::DeleteNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteNodePool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgecontainer::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::edgecontainer::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange EdgeContainerConnectionImpl::ListMachines( google::cloud::edgecontainer::v1::ListMachinesRequest request) { @@ -617,6 +1002,62 @@ EdgeContainerConnectionImpl::CreateVpnConnection( polling_policy(*current), __func__); } +StatusOr +EdgeContainerConnectionImpl::CreateVpnConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateVpnConnection(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& + request) { + return stub_->CreateVpnConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeContainerConnectionImpl::CreateVpnConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateVpnConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgecontainer::v1::VpnConnection>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::edgecontainer::v1::VpnConnection>, + polling_policy(*current), __func__); +} + future> EdgeContainerConnectionImpl::DeleteVpnConnection( google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& @@ -658,6 +1099,62 @@ EdgeContainerConnectionImpl::DeleteVpnConnection( polling_policy(*current), __func__); } +StatusOr +EdgeContainerConnectionImpl::DeleteVpnConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteVpnConnection(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& + request) { + return stub_->DeleteVpnConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeContainerConnectionImpl::DeleteVpnConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteVpnConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgecontainer::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::edgecontainer::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr EdgeContainerConnectionImpl::GetServerConfig( google::cloud::edgecontainer::v1::GetServerConfigRequest const& request) { diff --git a/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.h b/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.h index a2af67c9f0bd8..06cbc3d9f3361 100644 --- a/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.h +++ b/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.h @@ -63,18 +63,54 @@ class EdgeContainerConnectionImpl google::cloud::edgecontainer::v1::CreateClusterRequest const& request) override; + StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateClusterRequest const& request) + override; + + future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCluster( google::cloud::edgecontainer::v1::UpdateClusterRequest const& request) override; + StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpdateClusterRequest const& request) + override; + + future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpgradeCluster( google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request) override; + StatusOr UpgradeCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request) + override; + + future> UpgradeCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCluster(google::cloud::edgecontainer::v1::DeleteClusterRequest const& request) override; + StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteClusterRequest const& request) + override; + + future> + DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GenerateAccessToken( google::cloud::edgecontainer::v1::GenerateAccessTokenRequest const& @@ -96,14 +132,41 @@ class EdgeContainerConnectionImpl google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request) override; + StatusOr CreateNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request) + override; + + future> CreateNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateNodePool( google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request) override; + StatusOr UpdateNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request) + override; + + future> UpdateNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteNodePool(google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request) override; + StatusOr DeleteNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request) + override; + + future> + DeleteNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListMachines( google::cloud::edgecontainer::v1::ListMachinesRequest request) override; @@ -124,11 +187,29 @@ class EdgeContainerConnectionImpl google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& request) override; + StatusOr CreateVpnConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& + request) override; + + future> + CreateVpnConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteVpnConnection( google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& request) override; + StatusOr DeleteVpnConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& + request) override; + + future> + DeleteVpnConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetServerConfig( google::cloud::edgecontainer::v1::GetServerConfigRequest const& request) override; diff --git a/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.cc b/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.cc index f6e1f796bbcad..125c791782e1c 100644 --- a/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.cc +++ b/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.cc @@ -63,6 +63,30 @@ EdgeContainerTracingConnection::CreateCluster( return internal::EndSpan(std::move(span), child_->CreateCluster(request)); } +StatusOr +EdgeContainerTracingConnection::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateClusterRequest const& request) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::CreateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeContainerTracingConnection::CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::CreateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> EdgeContainerTracingConnection::UpdateCluster( google::cloud::edgecontainer::v1::UpdateClusterRequest const& request) { @@ -72,6 +96,30 @@ EdgeContainerTracingConnection::UpdateCluster( return internal::EndSpan(std::move(span), child_->UpdateCluster(request)); } +StatusOr +EdgeContainerTracingConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpdateClusterRequest const& request) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::UpdateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeContainerTracingConnection::UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::UpdateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> EdgeContainerTracingConnection::UpgradeCluster( google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request) { @@ -81,6 +129,30 @@ EdgeContainerTracingConnection::UpgradeCluster( return internal::EndSpan(std::move(span), child_->UpgradeCluster(request)); } +StatusOr +EdgeContainerTracingConnection::UpgradeCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::UpgradeCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpgradeCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeContainerTracingConnection::UpgradeCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::UpgradeCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpgradeCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> EdgeContainerTracingConnection::DeleteCluster( google::cloud::edgecontainer::v1::DeleteClusterRequest const& request) { @@ -90,6 +162,30 @@ EdgeContainerTracingConnection::DeleteCluster( return internal::EndSpan(std::move(span), child_->DeleteCluster(request)); } +StatusOr +EdgeContainerTracingConnection::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteClusterRequest const& request) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::DeleteCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeContainerTracingConnection::DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::DeleteCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteCluster(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr EdgeContainerTracingConnection::GenerateAccessToken( google::cloud::edgecontainer::v1::GenerateAccessTokenRequest const& @@ -140,6 +236,30 @@ EdgeContainerTracingConnection::CreateNodePool( return internal::EndSpan(std::move(span), child_->CreateNodePool(request)); } +StatusOr +EdgeContainerTracingConnection::CreateNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::CreateNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateNodePool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeContainerTracingConnection::CreateNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::CreateNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateNodePool(google::cloud::ExperimentalTag{}, operation)); +} + future> EdgeContainerTracingConnection::UpdateNodePool( google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request) { @@ -149,6 +269,30 @@ EdgeContainerTracingConnection::UpdateNodePool( return internal::EndSpan(std::move(span), child_->UpdateNodePool(request)); } +StatusOr +EdgeContainerTracingConnection::UpdateNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::UpdateNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateNodePool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeContainerTracingConnection::UpdateNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::UpdateNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateNodePool(google::cloud::ExperimentalTag{}, operation)); +} + future> EdgeContainerTracingConnection::DeleteNodePool( google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request) { @@ -158,6 +302,30 @@ EdgeContainerTracingConnection::DeleteNodePool( return internal::EndSpan(std::move(span), child_->DeleteNodePool(request)); } +StatusOr +EdgeContainerTracingConnection::DeleteNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::DeleteNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteNodePool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeContainerTracingConnection::DeleteNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::DeleteNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteNodePool(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange EdgeContainerTracingConnection::ListMachines( google::cloud::edgecontainer::v1::ListMachinesRequest request) { @@ -211,6 +379,31 @@ EdgeContainerTracingConnection::CreateVpnConnection( child_->CreateVpnConnection(request)); } +StatusOr +EdgeContainerTracingConnection::CreateVpnConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& + request) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::CreateVpnConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateVpnConnection(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeContainerTracingConnection::CreateVpnConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::CreateVpnConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateVpnConnection(google::cloud::ExperimentalTag{}, operation)); +} + future> EdgeContainerTracingConnection::DeleteVpnConnection( google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& @@ -222,6 +415,31 @@ EdgeContainerTracingConnection::DeleteVpnConnection( child_->DeleteVpnConnection(request)); } +StatusOr +EdgeContainerTracingConnection::DeleteVpnConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& + request) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::DeleteVpnConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteVpnConnection(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeContainerTracingConnection::DeleteVpnConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "edgecontainer_v1::EdgeContainerConnection::DeleteVpnConnection"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteVpnConnection(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr EdgeContainerTracingConnection::GetServerConfig( google::cloud::edgecontainer::v1::GetServerConfigRequest const& request) { diff --git a/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.h b/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.h index 2062ec56b6383..50fa59350e97c 100644 --- a/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.h +++ b/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.h @@ -51,18 +51,54 @@ class EdgeContainerTracingConnection google::cloud::edgecontainer::v1::CreateClusterRequest const& request) override; + StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateClusterRequest const& request) + override; + + future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCluster( google::cloud::edgecontainer::v1::UpdateClusterRequest const& request) override; + StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpdateClusterRequest const& request) + override; + + future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpgradeCluster( google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request) override; + StatusOr UpgradeCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request) + override; + + future> UpgradeCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCluster(google::cloud::edgecontainer::v1::DeleteClusterRequest const& request) override; + StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteClusterRequest const& request) + override; + + future> + DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GenerateAccessToken( google::cloud::edgecontainer::v1::GenerateAccessTokenRequest const& @@ -84,14 +120,41 @@ class EdgeContainerTracingConnection google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request) override; + StatusOr CreateNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request) + override; + + future> CreateNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateNodePool( google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request) override; + StatusOr UpdateNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request) + override; + + future> UpdateNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteNodePool(google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request) override; + StatusOr DeleteNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request) + override; + + future> + DeleteNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListMachines( google::cloud::edgecontainer::v1::ListMachinesRequest request) override; @@ -112,11 +175,29 @@ class EdgeContainerTracingConnection google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& request) override; + StatusOr CreateVpnConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& + request) override; + + future> + CreateVpnConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteVpnConnection( google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& request) override; + StatusOr DeleteVpnConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& + request) override; + + future> + DeleteVpnConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetServerConfig( google::cloud::edgecontainer::v1::GetServerConfigRequest const& request) override; diff --git a/google/cloud/edgecontainer/v1/mocks/mock_edge_container_connection.h b/google/cloud/edgecontainer/v1/mocks/mock_edge_container_connection.h index d946c6819ffcf..47dc0ac675668 100644 --- a/google/cloud/edgecontainer/v1/mocks/mock_edge_container_connection.h +++ b/google/cloud/edgecontainer/v1/mocks/mock_edge_container_connection.h @@ -63,24 +63,73 @@ class MockEdgeContainerConnection (google::cloud::edgecontainer::v1::CreateClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateCluster, (google::cloud::edgecontainer::v1::UpdateClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpdateClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpgradeCluster, (google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpgradeCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpgradeCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteCluster, (google::cloud::edgecontainer::v1::DeleteClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteClusterRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GenerateAccessToken, @@ -112,18 +161,55 @@ class MockEdgeContainerConnection (google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateNodePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateNodePool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateNodePool, (google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateNodePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateNodePool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteNodePool, (google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteNodePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteNodePool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListMachines, (google::cloud::edgecontainer::v1::ListMachinesRequest request), @@ -153,6 +239,19 @@ class MockEdgeContainerConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateVpnConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateVpnConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteVpnConnection, @@ -160,6 +259,20 @@ class MockEdgeContainerConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteVpnConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteVpnConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetServerConfig, (google::cloud::edgecontainer::v1::GetServerConfigRequest const& request), diff --git a/google/cloud/edgenetwork/v1/edge_network_connection.cc b/google/cloud/edgenetwork/v1/edge_network_connection.cc index 18144ab21c595..9cdfbbcbfdd25 100644 --- a/google/cloud/edgenetwork/v1/edge_network_connection.cc +++ b/google/cloud/edgenetwork/v1/edge_network_connection.cc @@ -85,6 +85,21 @@ EdgeNetworkConnection::CreateNetwork( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EdgeNetworkConnection::CreateNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateNetworkRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeNetworkConnection::CreateNetwork(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EdgeNetworkConnection::DeleteNetwork( google::cloud::edgenetwork::v1::DeleteNetworkRequest const&) { @@ -93,6 +108,21 @@ EdgeNetworkConnection::DeleteNetwork( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EdgeNetworkConnection::DeleteNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteNetworkRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeNetworkConnection::DeleteNetwork(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange EdgeNetworkConnection::ListSubnets( google::cloud::edgenetwork::v1:: @@ -115,6 +145,21 @@ EdgeNetworkConnection::CreateSubnet( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EdgeNetworkConnection::CreateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateSubnetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeNetworkConnection::CreateSubnet(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EdgeNetworkConnection::UpdateSubnet( google::cloud::edgenetwork::v1::UpdateSubnetRequest const&) { @@ -123,6 +168,21 @@ EdgeNetworkConnection::UpdateSubnet( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EdgeNetworkConnection::UpdateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::UpdateSubnetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeNetworkConnection::UpdateSubnet(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EdgeNetworkConnection::DeleteSubnet( google::cloud::edgenetwork::v1::DeleteSubnetRequest const&) { @@ -131,6 +191,21 @@ EdgeNetworkConnection::DeleteSubnet( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EdgeNetworkConnection::DeleteSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteSubnetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeNetworkConnection::DeleteSubnet(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange EdgeNetworkConnection::ListInterconnects( google::cloud::edgenetwork::v1:: @@ -174,6 +249,23 @@ EdgeNetworkConnection::CreateInterconnectAttachment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EdgeNetworkConnection::CreateInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1:: + CreateInterconnectAttachmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeNetworkConnection::CreateInterconnectAttachment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EdgeNetworkConnection::DeleteInterconnectAttachment( google::cloud::edgenetwork::v1:: @@ -183,6 +275,23 @@ EdgeNetworkConnection::DeleteInterconnectAttachment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EdgeNetworkConnection::DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1:: + DeleteInterconnectAttachmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeNetworkConnection::DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange EdgeNetworkConnection::ListRouters( google::cloud::edgenetwork::v1:: @@ -211,6 +320,21 @@ EdgeNetworkConnection::CreateRouter( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EdgeNetworkConnection::CreateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateRouterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeNetworkConnection::CreateRouter(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EdgeNetworkConnection::UpdateRouter( google::cloud::edgenetwork::v1::UpdateRouterRequest const&) { @@ -219,6 +343,21 @@ EdgeNetworkConnection::UpdateRouter( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EdgeNetworkConnection::UpdateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::UpdateRouterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeNetworkConnection::UpdateRouter(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EdgeNetworkConnection::DeleteRouter( google::cloud::edgenetwork::v1::DeleteRouterRequest const&) { @@ -227,6 +366,21 @@ EdgeNetworkConnection::DeleteRouter( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EdgeNetworkConnection::DeleteRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteRouterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EdgeNetworkConnection::DeleteRouter(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeEdgeNetworkConnection( Options options) { internal::CheckExpectedOptions CreateNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateNetworkRequest const& request); + + virtual future> + CreateNetwork(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteNetwork( google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request); + virtual StatusOr DeleteNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request); + + virtual future> + DeleteNetwork(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListSubnets( google::cloud::edgenetwork::v1::ListSubnetsRequest request); @@ -221,13 +239,37 @@ class EdgeNetworkConnection { virtual future> CreateSubnet( google::cloud::edgenetwork::v1::CreateSubnetRequest const& request); + virtual StatusOr CreateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateSubnetRequest const& request); + + virtual future> CreateSubnet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateSubnet( google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request); + virtual StatusOr UpdateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request); + + virtual future> UpdateSubnet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteSubnet( google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request); + virtual StatusOr DeleteSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request); + + virtual future> + DeleteSubnet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListInterconnects( google::cloud::edgenetwork::v1::ListInterconnectsRequest request); @@ -257,11 +299,30 @@ class EdgeNetworkConnection { google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const& request); + virtual StatusOr CreateInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const& + request); + + virtual future< + StatusOr> + CreateInterconnectAttachment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteInterconnectAttachment( google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& request); + virtual StatusOr DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& + request); + + virtual future> + DeleteInterconnectAttachment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListRouters( google::cloud::edgenetwork::v1::ListRoutersRequest request); @@ -275,12 +336,36 @@ class EdgeNetworkConnection { virtual future> CreateRouter( google::cloud::edgenetwork::v1::CreateRouterRequest const& request); + virtual StatusOr CreateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateRouterRequest const& request); + + virtual future> CreateRouter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateRouter( google::cloud::edgenetwork::v1::UpdateRouterRequest const& request); + virtual StatusOr UpdateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::UpdateRouterRequest const& request); + + virtual future> UpdateRouter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteRouter( google::cloud::edgenetwork::v1::DeleteRouterRequest const& request); + + virtual StatusOr DeleteRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteRouterRequest const& request); + + virtual future> + DeleteRouter(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.cc b/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.cc index f8e65f1732f93..e964da375933e 100644 --- a/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.cc +++ b/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.cc @@ -229,6 +229,59 @@ EdgeNetworkConnectionImpl::CreateNetwork( polling_policy(*current), __func__); } +StatusOr +EdgeNetworkConnectionImpl::CreateNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateNetworkRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateNetwork(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::edgenetwork::v1::CreateNetworkRequest const& request) { + return stub_->CreateNetwork(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeNetworkConnectionImpl::CreateNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateNetwork", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgenetwork::v1::Network>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::edgenetwork::v1::Network>, + polling_policy(*current), __func__); +} + future> EdgeNetworkConnectionImpl::DeleteNetwork( google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request) { @@ -268,6 +321,60 @@ EdgeNetworkConnectionImpl::DeleteNetwork( polling_policy(*current), __func__); } +StatusOr +EdgeNetworkConnectionImpl::DeleteNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNetwork(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request) { + return stub_->DeleteNetwork(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeNetworkConnectionImpl::DeleteNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteNetwork", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgenetwork::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::edgenetwork::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange EdgeNetworkConnectionImpl::ListSubnets( google::cloud::edgenetwork::v1::ListSubnetsRequest request) { @@ -355,6 +462,59 @@ EdgeNetworkConnectionImpl::CreateSubnet( polling_policy(*current), __func__); } +StatusOr +EdgeNetworkConnectionImpl::CreateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateSubnetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateSubnet(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::edgenetwork::v1::CreateSubnetRequest const& request) { + return stub_->CreateSubnet(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeNetworkConnectionImpl::CreateSubnet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateSubnet", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgenetwork::v1::Subnet>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::edgenetwork::v1::Subnet>, + polling_policy(*current), __func__); +} + future> EdgeNetworkConnectionImpl::UpdateSubnet( google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request) { @@ -394,6 +554,59 @@ EdgeNetworkConnectionImpl::UpdateSubnet( polling_policy(*current), __func__); } +StatusOr +EdgeNetworkConnectionImpl::UpdateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateSubnet(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request) { + return stub_->UpdateSubnet(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeNetworkConnectionImpl::UpdateSubnet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateSubnet", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgenetwork::v1::Subnet>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::edgenetwork::v1::Subnet>, + polling_policy(*current), __func__); +} + future> EdgeNetworkConnectionImpl::DeleteSubnet( google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request) { @@ -433,6 +646,60 @@ EdgeNetworkConnectionImpl::DeleteSubnet( polling_policy(*current), __func__); } +StatusOr +EdgeNetworkConnectionImpl::DeleteSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSubnet(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request) { + return stub_->DeleteSubnet(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeNetworkConnectionImpl::DeleteSubnet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteSubnet", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgenetwork::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::edgenetwork::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange EdgeNetworkConnectionImpl::ListInterconnects( google::cloud::edgenetwork::v1::ListInterconnectsRequest request) { @@ -594,6 +861,61 @@ EdgeNetworkConnectionImpl::CreateInterconnectAttachment( polling_policy(*current), __func__); } +StatusOr +EdgeNetworkConnectionImpl::CreateInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInterconnectAttachment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::edgenetwork::v1:: + CreateInterconnectAttachmentRequest const& request) { + return stub_->CreateInterconnectAttachment(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeNetworkConnectionImpl::CreateInterconnectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInterconnectAttachment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgenetwork::v1::InterconnectAttachment>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::edgenetwork::v1::InterconnectAttachment>, + polling_policy(*current), __func__); +} + future> EdgeNetworkConnectionImpl::DeleteInterconnectAttachment( google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& @@ -634,6 +956,61 @@ EdgeNetworkConnectionImpl::DeleteInterconnectAttachment( polling_policy(*current), __func__); } +StatusOr +EdgeNetworkConnectionImpl::DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInterconnectAttachment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::edgenetwork::v1:: + DeleteInterconnectAttachmentRequest const& request) { + return stub_->DeleteInterconnectAttachment(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeNetworkConnectionImpl::DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteInterconnectAttachment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgenetwork::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::edgenetwork::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange EdgeNetworkConnectionImpl::ListRouters( google::cloud::edgenetwork::v1::ListRoutersRequest request) { @@ -736,6 +1113,59 @@ EdgeNetworkConnectionImpl::CreateRouter( polling_policy(*current), __func__); } +StatusOr +EdgeNetworkConnectionImpl::CreateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateRouterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateRouter(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::edgenetwork::v1::CreateRouterRequest const& request) { + return stub_->CreateRouter(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeNetworkConnectionImpl::CreateRouter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateRouter", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgenetwork::v1::Router>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::edgenetwork::v1::Router>, + polling_policy(*current), __func__); +} + future> EdgeNetworkConnectionImpl::UpdateRouter( google::cloud::edgenetwork::v1::UpdateRouterRequest const& request) { @@ -775,6 +1205,59 @@ EdgeNetworkConnectionImpl::UpdateRouter( polling_policy(*current), __func__); } +StatusOr +EdgeNetworkConnectionImpl::UpdateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::UpdateRouterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateRouter(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::edgenetwork::v1::UpdateRouterRequest const& request) { + return stub_->UpdateRouter(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeNetworkConnectionImpl::UpdateRouter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateRouter", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgenetwork::v1::Router>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::edgenetwork::v1::Router>, + polling_policy(*current), __func__); +} + future> EdgeNetworkConnectionImpl::DeleteRouter( google::cloud::edgenetwork::v1::DeleteRouterRequest const& request) { @@ -814,6 +1297,60 @@ EdgeNetworkConnectionImpl::DeleteRouter( polling_policy(*current), __func__); } +StatusOr +EdgeNetworkConnectionImpl::DeleteRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteRouterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteRouter(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::edgenetwork::v1::DeleteRouterRequest const& request) { + return stub_->DeleteRouter(context, options, request); + }, + *current, request, __func__); +} + +future> +EdgeNetworkConnectionImpl::DeleteRouter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteRouter", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::edgenetwork::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::edgenetwork::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace edgenetwork_v1_internal } // namespace cloud diff --git a/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.h b/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.h index b2abe42eba25c..0f9dad24dcd6c 100644 --- a/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.h +++ b/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.h @@ -76,10 +76,28 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { google::cloud::edgenetwork::v1::CreateNetworkRequest const& request) override; + StatusOr CreateNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateNetworkRequest const& request) + override; + + future> CreateNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteNetwork(google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request) override; + StatusOr DeleteNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request) + override; + + future> + DeleteNetwork(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListSubnets( google::cloud::edgenetwork::v1::ListSubnetsRequest request) override; @@ -90,14 +108,41 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { google::cloud::edgenetwork::v1::CreateSubnetRequest const& request) override; + StatusOr CreateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateSubnetRequest const& request) + override; + + future> CreateSubnet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateSubnet( google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request) override; + StatusOr UpdateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request) + override; + + future> UpdateSubnet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSubnet(google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request) override; + StatusOr DeleteSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request) + override; + + future> + DeleteSubnet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListInterconnects( google::cloud::edgenetwork::v1::ListInterconnectsRequest request) override; @@ -126,11 +171,31 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const& request) override; + StatusOr CreateInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const& + request) override; + + future> + CreateInterconnectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteInterconnectAttachment( google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& request) override; + StatusOr DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& + request) override; + + future> + DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRouters( google::cloud::edgenetwork::v1::ListRoutersRequest request) override; @@ -145,14 +210,41 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { google::cloud::edgenetwork::v1::CreateRouterRequest const& request) override; + StatusOr CreateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateRouterRequest const& request) + override; + + future> CreateRouter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateRouter( google::cloud::edgenetwork::v1::UpdateRouterRequest const& request) override; + StatusOr UpdateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::UpdateRouterRequest const& request) + override; + + future> UpdateRouter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteRouter(google::cloud::edgenetwork::v1::DeleteRouterRequest const& request) override; + StatusOr DeleteRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteRouterRequest const& request) + override; + + future> + DeleteRouter(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.cc b/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.cc index 82732f921a8dc..056899216e6be 100644 --- a/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.cc +++ b/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.cc @@ -100,6 +100,30 @@ EdgeNetworkTracingConnection::CreateNetwork( return internal::EndSpan(std::move(span), child_->CreateNetwork(request)); } +StatusOr +EdgeNetworkTracingConnection::CreateNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateNetworkRequest const& request) { + auto span = internal::MakeSpan( + "edgenetwork_v1::EdgeNetworkConnection::CreateNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateNetwork(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeNetworkTracingConnection::CreateNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "edgenetwork_v1::EdgeNetworkConnection::CreateNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateNetwork(google::cloud::ExperimentalTag{}, operation)); +} + future> EdgeNetworkTracingConnection::DeleteNetwork( google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request) { @@ -109,6 +133,30 @@ EdgeNetworkTracingConnection::DeleteNetwork( return internal::EndSpan(std::move(span), child_->DeleteNetwork(request)); } +StatusOr +EdgeNetworkTracingConnection::DeleteNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request) { + auto span = internal::MakeSpan( + "edgenetwork_v1::EdgeNetworkConnection::DeleteNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteNetwork(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeNetworkTracingConnection::DeleteNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "edgenetwork_v1::EdgeNetworkConnection::DeleteNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteNetwork(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange EdgeNetworkTracingConnection::ListSubnets( google::cloud::edgenetwork::v1::ListSubnetsRequest request) { @@ -138,6 +186,30 @@ EdgeNetworkTracingConnection::CreateSubnet( return internal::EndSpan(std::move(span), child_->CreateSubnet(request)); } +StatusOr +EdgeNetworkTracingConnection::CreateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateSubnetRequest const& request) { + auto span = + internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::CreateSubnet"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateSubnet(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeNetworkTracingConnection::CreateSubnet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::CreateSubnet"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateSubnet(google::cloud::ExperimentalTag{}, operation)); +} + future> EdgeNetworkTracingConnection::UpdateSubnet( google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request) { @@ -147,6 +219,30 @@ EdgeNetworkTracingConnection::UpdateSubnet( return internal::EndSpan(std::move(span), child_->UpdateSubnet(request)); } +StatusOr +EdgeNetworkTracingConnection::UpdateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request) { + auto span = + internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::UpdateSubnet"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateSubnet(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeNetworkTracingConnection::UpdateSubnet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::UpdateSubnet"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateSubnet(google::cloud::ExperimentalTag{}, operation)); +} + future> EdgeNetworkTracingConnection::DeleteSubnet( google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request) { @@ -156,6 +252,30 @@ EdgeNetworkTracingConnection::DeleteSubnet( return internal::EndSpan(std::move(span), child_->DeleteSubnet(request)); } +StatusOr +EdgeNetworkTracingConnection::DeleteSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request) { + auto span = + internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::DeleteSubnet"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSubnet(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeNetworkTracingConnection::DeleteSubnet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::DeleteSubnet"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSubnet(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange EdgeNetworkTracingConnection::ListInterconnects( google::cloud::edgenetwork::v1::ListInterconnectsRequest request) { @@ -221,6 +341,31 @@ EdgeNetworkTracingConnection::CreateInterconnectAttachment( child_->CreateInterconnectAttachment(request)); } +StatusOr +EdgeNetworkTracingConnection::CreateInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const& + request) { + auto span = internal::MakeSpan( + "edgenetwork_v1::EdgeNetworkConnection::CreateInterconnectAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateInterconnectAttachment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeNetworkTracingConnection::CreateInterconnectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "edgenetwork_v1::EdgeNetworkConnection::CreateInterconnectAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateInterconnectAttachment( + google::cloud::ExperimentalTag{}, operation)); +} + future> EdgeNetworkTracingConnection::DeleteInterconnectAttachment( google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& @@ -232,6 +377,31 @@ EdgeNetworkTracingConnection::DeleteInterconnectAttachment( child_->DeleteInterconnectAttachment(request)); } +StatusOr +EdgeNetworkTracingConnection::DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& + request) { + auto span = internal::MakeSpan( + "edgenetwork_v1::EdgeNetworkConnection::DeleteInterconnectAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteInterconnectAttachment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeNetworkTracingConnection::DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "edgenetwork_v1::EdgeNetworkConnection::DeleteInterconnectAttachment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteInterconnectAttachment( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange EdgeNetworkTracingConnection::ListRouters( google::cloud::edgenetwork::v1::ListRoutersRequest request) { @@ -270,6 +440,30 @@ EdgeNetworkTracingConnection::CreateRouter( return internal::EndSpan(std::move(span), child_->CreateRouter(request)); } +StatusOr +EdgeNetworkTracingConnection::CreateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateRouterRequest const& request) { + auto span = + internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::CreateRouter"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateRouter(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeNetworkTracingConnection::CreateRouter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::CreateRouter"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateRouter(google::cloud::ExperimentalTag{}, operation)); +} + future> EdgeNetworkTracingConnection::UpdateRouter( google::cloud::edgenetwork::v1::UpdateRouterRequest const& request) { @@ -279,6 +473,30 @@ EdgeNetworkTracingConnection::UpdateRouter( return internal::EndSpan(std::move(span), child_->UpdateRouter(request)); } +StatusOr +EdgeNetworkTracingConnection::UpdateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::UpdateRouterRequest const& request) { + auto span = + internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::UpdateRouter"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateRouter(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeNetworkTracingConnection::UpdateRouter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::UpdateRouter"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateRouter(google::cloud::ExperimentalTag{}, operation)); +} + future> EdgeNetworkTracingConnection::DeleteRouter( google::cloud::edgenetwork::v1::DeleteRouterRequest const& request) { @@ -288,6 +506,30 @@ EdgeNetworkTracingConnection::DeleteRouter( return internal::EndSpan(std::move(span), child_->DeleteRouter(request)); } +StatusOr +EdgeNetworkTracingConnection::DeleteRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteRouterRequest const& request) { + auto span = + internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::DeleteRouter"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteRouter(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EdgeNetworkTracingConnection::DeleteRouter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::DeleteRouter"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteRouter(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.h b/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.h index 4ef6454c35e5c..2c03ac0e906b3 100644 --- a/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.h +++ b/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.h @@ -65,10 +65,28 @@ class EdgeNetworkTracingConnection google::cloud::edgenetwork::v1::CreateNetworkRequest const& request) override; + StatusOr CreateNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateNetworkRequest const& request) + override; + + future> CreateNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteNetwork(google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request) override; + StatusOr DeleteNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request) + override; + + future> + DeleteNetwork(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListSubnets( google::cloud::edgenetwork::v1::ListSubnetsRequest request) override; @@ -79,14 +97,41 @@ class EdgeNetworkTracingConnection google::cloud::edgenetwork::v1::CreateSubnetRequest const& request) override; + StatusOr CreateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateSubnetRequest const& request) + override; + + future> CreateSubnet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateSubnet( google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request) override; + StatusOr UpdateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request) + override; + + future> UpdateSubnet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSubnet(google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request) override; + StatusOr DeleteSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request) + override; + + future> + DeleteSubnet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListInterconnects( google::cloud::edgenetwork::v1::ListInterconnectsRequest request) override; @@ -115,11 +160,31 @@ class EdgeNetworkTracingConnection google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const& request) override; + StatusOr CreateInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const& + request) override; + + future> + CreateInterconnectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteInterconnectAttachment( google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& request) override; + StatusOr DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& + request) override; + + future> + DeleteInterconnectAttachment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRouters( google::cloud::edgenetwork::v1::ListRoutersRequest request) override; @@ -134,14 +199,41 @@ class EdgeNetworkTracingConnection google::cloud::edgenetwork::v1::CreateRouterRequest const& request) override; + StatusOr CreateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateRouterRequest const& request) + override; + + future> CreateRouter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateRouter( google::cloud::edgenetwork::v1::UpdateRouterRequest const& request) override; + StatusOr UpdateRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::UpdateRouterRequest const& request) + override; + + future> UpdateRouter( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteRouter(google::cloud::edgenetwork::v1::DeleteRouterRequest const& request) override; + StatusOr DeleteRouter( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteRouterRequest const& request) + override; + + future> + DeleteRouter(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/edgenetwork/v1/mocks/mock_edge_network_connection.h b/google/cloud/edgenetwork/v1/mocks/mock_edge_network_connection.h index cc3732f0eb9d4..ac6f238ac204a 100644 --- a/google/cloud/edgenetwork/v1/mocks/mock_edge_network_connection.h +++ b/google/cloud/edgenetwork/v1/mocks/mock_edge_network_connection.h @@ -81,12 +81,37 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { (google::cloud::edgenetwork::v1::CreateNetworkRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateNetwork, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateNetworkRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateNetwork, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteNetwork, (google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteNetwork, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteNetwork, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListSubnets, (google::cloud::edgenetwork::v1::ListSubnetsRequest request), @@ -101,17 +126,54 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { (google::cloud::edgenetwork::v1::CreateSubnetRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateSubnet, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateSubnetRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateSubnet, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateSubnet, (google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateSubnet, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateSubnet, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteSubnet, (google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteSubnet, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteSubnet, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListInterconnects, @@ -151,6 +213,20 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { CreateInterconnectAttachmentRequest const& request), (override)); + MOCK_METHOD(StatusOr, + CreateInterconnectAttachment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1:: + CreateInterconnectAttachmentRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateInterconnectAttachment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteInterconnectAttachment, @@ -158,6 +234,20 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { DeleteInterconnectAttachmentRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteInterconnectAttachment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1:: + DeleteInterconnectAttachmentRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteInterconnectAttachment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRouters, (google::cloud::edgenetwork::v1::ListRoutersRequest request), @@ -178,16 +268,53 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { (google::cloud::edgenetwork::v1::CreateRouterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateRouter, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::CreateRouterRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateRouter, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateRouter, (google::cloud::edgenetwork::v1::UpdateRouterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateRouter, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::UpdateRouterRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateRouter, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteRouter, (google::cloud::edgenetwork::v1::DeleteRouterRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteRouter, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::edgenetwork::v1::DeleteRouterRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteRouter, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/essentialcontacts/v1/essential_contacts_connection.h b/google/cloud/essentialcontacts/v1/essential_contacts_connection.h index 3ee8524a52e4a..a8e59d183c730 100644 --- a/google/cloud/essentialcontacts/v1/essential_contacts_connection.h +++ b/google/cloud/essentialcontacts/v1/essential_contacts_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/essentialcontacts/v1/essential_contacts_connection_idempotency_policy.h" #include "google/cloud/essentialcontacts/v1/internal/essential_contacts_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/eventarc/publishing/v1/publisher_connection.h b/google/cloud/eventarc/publishing/v1/publisher_connection.h index ce8ca02922a15..cf480f95c34b7 100644 --- a/google/cloud/eventarc/publishing/v1/publisher_connection.h +++ b/google/cloud/eventarc/publishing/v1/publisher_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/eventarc/publishing/v1/internal/publisher_retry_traits.h" #include "google/cloud/eventarc/publishing/v1/publisher_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/eventarc/v1/eventarc_connection.cc b/google/cloud/eventarc/v1/eventarc_connection.cc index 80729301731b1..d6de39f0aaa0c 100644 --- a/google/cloud/eventarc/v1/eventarc_connection.cc +++ b/google/cloud/eventarc/v1/eventarc_connection.cc @@ -59,6 +59,21 @@ EventarcConnection::CreateTrigger( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EventarcConnection::CreateTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateTriggerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EventarcConnection::CreateTrigger(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EventarcConnection::UpdateTrigger( google::cloud::eventarc::v1::UpdateTriggerRequest const&) { @@ -67,6 +82,21 @@ EventarcConnection::UpdateTrigger( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EventarcConnection::UpdateTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::UpdateTriggerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EventarcConnection::UpdateTrigger(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EventarcConnection::DeleteTrigger( google::cloud::eventarc::v1::DeleteTriggerRequest const&) { @@ -75,6 +105,21 @@ EventarcConnection::DeleteTrigger( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EventarcConnection::DeleteTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteTriggerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EventarcConnection::DeleteTrigger(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr EventarcConnection::GetChannel( google::cloud::eventarc::v1::GetChannelRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -96,6 +141,21 @@ EventarcConnection::CreateChannel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EventarcConnection::CreateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateChannelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EventarcConnection::CreateChannel(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EventarcConnection::UpdateChannel( google::cloud::eventarc::v1::UpdateChannelRequest const&) { @@ -104,6 +164,21 @@ EventarcConnection::UpdateChannel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EventarcConnection::UpdateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::UpdateChannelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EventarcConnection::UpdateChannel(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EventarcConnection::DeleteChannel( google::cloud::eventarc::v1::DeleteChannelRequest const&) { @@ -112,6 +187,21 @@ EventarcConnection::DeleteChannel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr EventarcConnection::DeleteChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteChannelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EventarcConnection::DeleteChannel(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr EventarcConnection::GetProvider( google::cloud::eventarc::v1::GetProviderRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -147,6 +237,22 @@ EventarcConnection::CreateChannelConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EventarcConnection::CreateChannelConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateChannelConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EventarcConnection::CreateChannelConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> EventarcConnection::DeleteChannelConnection( google::cloud::eventarc::v1::DeleteChannelConnectionRequest const&) { @@ -155,6 +261,22 @@ EventarcConnection::DeleteChannelConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +EventarcConnection::DeleteChannelConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteChannelConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +EventarcConnection::DeleteChannelConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr EventarcConnection::GetGoogleChannelConfig( google::cloud::eventarc::v1::GetGoogleChannelConfigRequest const&) { diff --git a/google/cloud/eventarc/v1/eventarc_connection.h b/google/cloud/eventarc/v1/eventarc_connection.h index c62bd68c1c902..179e67a70f69c 100644 --- a/google/cloud/eventarc/v1/eventarc_connection.h +++ b/google/cloud/eventarc/v1/eventarc_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/eventarc/v1/eventarc_connection_idempotency_policy.h" #include "google/cloud/eventarc/v1/internal/eventarc_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -193,12 +195,36 @@ class EventarcConnection { virtual future> CreateTrigger( google::cloud::eventarc::v1::CreateTriggerRequest const& request); + virtual StatusOr CreateTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateTriggerRequest const& request); + + virtual future> CreateTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateTrigger( google::cloud::eventarc::v1::UpdateTriggerRequest const& request); + virtual StatusOr UpdateTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::UpdateTriggerRequest const& request); + + virtual future> UpdateTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteTrigger( google::cloud::eventarc::v1::DeleteTriggerRequest const& request); + virtual StatusOr DeleteTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteTriggerRequest const& request); + + virtual future> DeleteTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetChannel( google::cloud::eventarc::v1::GetChannelRequest const& request); @@ -208,12 +234,36 @@ class EventarcConnection { virtual future> CreateChannel( google::cloud::eventarc::v1::CreateChannelRequest const& request); + virtual StatusOr CreateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateChannelRequest const& request); + + virtual future> CreateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateChannel( google::cloud::eventarc::v1::UpdateChannelRequest const& request); + virtual StatusOr UpdateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::UpdateChannelRequest const& request); + + virtual future> UpdateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteChannel( google::cloud::eventarc::v1::DeleteChannelRequest const& request); + virtual StatusOr DeleteChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteChannelRequest const& request); + + virtual future> DeleteChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetProvider( google::cloud::eventarc::v1::GetProviderRequest const& request); @@ -233,11 +283,29 @@ class EventarcConnection { google::cloud::eventarc::v1::CreateChannelConnectionRequest const& request); + virtual StatusOr CreateChannelConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateChannelConnectionRequest const& + request); + + virtual future> + CreateChannelConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteChannelConnection( google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& request); + virtual StatusOr DeleteChannelConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& + request); + + virtual future> + DeleteChannelConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetGoogleChannelConfig( google::cloud::eventarc::v1::GetGoogleChannelConfigRequest const& diff --git a/google/cloud/eventarc/v1/internal/eventarc_connection_impl.cc b/google/cloud/eventarc/v1/internal/eventarc_connection_impl.cc index 4c36c6608906b..81e466839e7d7 100644 --- a/google/cloud/eventarc/v1/internal/eventarc_connection_impl.cc +++ b/google/cloud/eventarc/v1/internal/eventarc_connection_impl.cc @@ -149,6 +149,57 @@ EventarcConnectionImpl::CreateTrigger( polling_policy(*current), __func__); } +StatusOr EventarcConnectionImpl::CreateTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateTriggerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateTrigger(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::eventarc::v1::CreateTriggerRequest const& request) { + return stub_->CreateTrigger(context, options, request); + }, + *current, request, __func__); +} + +future> +EventarcConnectionImpl::CreateTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateTrigger", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::eventarc::v1::Trigger>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::eventarc::v1::Trigger>, + polling_policy(*current), __func__); +} + future> EventarcConnectionImpl::UpdateTrigger( google::cloud::eventarc::v1::UpdateTriggerRequest const& request) { @@ -188,6 +239,57 @@ EventarcConnectionImpl::UpdateTrigger( polling_policy(*current), __func__); } +StatusOr EventarcConnectionImpl::UpdateTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::UpdateTriggerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateTrigger(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::eventarc::v1::UpdateTriggerRequest const& request) { + return stub_->UpdateTrigger(context, options, request); + }, + *current, request, __func__); +} + +future> +EventarcConnectionImpl::UpdateTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateTrigger", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::eventarc::v1::Trigger>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::eventarc::v1::Trigger>, + polling_policy(*current), __func__); +} + future> EventarcConnectionImpl::DeleteTrigger( google::cloud::eventarc::v1::DeleteTriggerRequest const& request) { @@ -227,6 +329,57 @@ EventarcConnectionImpl::DeleteTrigger( polling_policy(*current), __func__); } +StatusOr EventarcConnectionImpl::DeleteTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteTriggerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTrigger(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::eventarc::v1::DeleteTriggerRequest const& request) { + return stub_->DeleteTrigger(context, options, request); + }, + *current, request, __func__); +} + +future> +EventarcConnectionImpl::DeleteTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTrigger", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::eventarc::v1::Trigger>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::eventarc::v1::Trigger>, + polling_policy(*current), __func__); +} + StatusOr EventarcConnectionImpl::GetChannel( google::cloud::eventarc::v1::GetChannelRequest const& request) { @@ -314,6 +467,57 @@ EventarcConnectionImpl::CreateChannel( polling_policy(*current), __func__); } +StatusOr EventarcConnectionImpl::CreateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateChannelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateChannel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::eventarc::v1::CreateChannelRequest const& request) { + return stub_->CreateChannel(context, options, request); + }, + *current, request, __func__); +} + +future> +EventarcConnectionImpl::CreateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateChannel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::eventarc::v1::Channel>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::eventarc::v1::Channel>, + polling_policy(*current), __func__); +} + future> EventarcConnectionImpl::UpdateChannel( google::cloud::eventarc::v1::UpdateChannelRequest const& request) { @@ -353,6 +557,57 @@ EventarcConnectionImpl::UpdateChannel( polling_policy(*current), __func__); } +StatusOr EventarcConnectionImpl::UpdateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::UpdateChannelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateChannel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::eventarc::v1::UpdateChannelRequest const& request) { + return stub_->UpdateChannel(context, options, request); + }, + *current, request, __func__); +} + +future> +EventarcConnectionImpl::UpdateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateChannel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::eventarc::v1::Channel>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::eventarc::v1::Channel>, + polling_policy(*current), __func__); +} + future> EventarcConnectionImpl::DeleteChannel( google::cloud::eventarc::v1::DeleteChannelRequest const& request) { @@ -392,6 +647,57 @@ EventarcConnectionImpl::DeleteChannel( polling_policy(*current), __func__); } +StatusOr EventarcConnectionImpl::DeleteChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteChannelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteChannel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::eventarc::v1::DeleteChannelRequest const& request) { + return stub_->DeleteChannel(context, options, request); + }, + *current, request, __func__); +} + +future> +EventarcConnectionImpl::DeleteChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteChannel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::eventarc::v1::Channel>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::eventarc::v1::Channel>, + polling_policy(*current), __func__); +} + StatusOr EventarcConnectionImpl::GetProvider( google::cloud::eventarc::v1::GetProviderRequest const& request) { @@ -531,6 +837,61 @@ EventarcConnectionImpl::CreateChannelConnection( polling_policy(*current), __func__); } +StatusOr +EventarcConnectionImpl::CreateChannelConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateChannelConnectionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateChannelConnection(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::eventarc::v1::CreateChannelConnectionRequest const& + request) { + return stub_->CreateChannelConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +EventarcConnectionImpl::CreateChannelConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateChannelConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::eventarc::v1::ChannelConnection>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::eventarc::v1::ChannelConnection>, + polling_policy(*current), __func__); +} + future> EventarcConnectionImpl::DeleteChannelConnection( google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& @@ -572,6 +933,61 @@ EventarcConnectionImpl::DeleteChannelConnection( polling_policy(*current), __func__); } +StatusOr +EventarcConnectionImpl::DeleteChannelConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteChannelConnection(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& + request) { + return stub_->DeleteChannelConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +EventarcConnectionImpl::DeleteChannelConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteChannelConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::eventarc::v1::ChannelConnection>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::eventarc::v1::ChannelConnection>, + polling_policy(*current), __func__); +} + StatusOr EventarcConnectionImpl::GetGoogleChannelConfig( google::cloud::eventarc::v1::GetGoogleChannelConfigRequest const& request) { diff --git a/google/cloud/eventarc/v1/internal/eventarc_connection_impl.h b/google/cloud/eventarc/v1/internal/eventarc_connection_impl.h index c0f290c162e90..31b1b5592600d 100644 --- a/google/cloud/eventarc/v1/internal/eventarc_connection_impl.h +++ b/google/cloud/eventarc/v1/internal/eventarc_connection_impl.h @@ -61,14 +61,41 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { google::cloud::eventarc::v1::CreateTriggerRequest const& request) override; + StatusOr CreateTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateTriggerRequest const& request) + override; + + future> CreateTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTrigger( google::cloud::eventarc::v1::UpdateTriggerRequest const& request) override; + StatusOr UpdateTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::UpdateTriggerRequest const& request) + override; + + future> UpdateTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTrigger( google::cloud::eventarc::v1::DeleteTriggerRequest const& request) override; + StatusOr DeleteTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteTriggerRequest const& request) + override; + + future> DeleteTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetChannel( google::cloud::eventarc::v1::GetChannelRequest const& request) override; @@ -79,14 +106,41 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { google::cloud::eventarc::v1::CreateChannelRequest const& request) override; + StatusOr CreateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateChannelRequest const& request) + override; + + future> CreateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateChannel( google::cloud::eventarc::v1::UpdateChannelRequest const& request) override; + StatusOr UpdateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::UpdateChannelRequest const& request) + override; + + future> UpdateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteChannel( google::cloud::eventarc::v1::DeleteChannelRequest const& request) override; + StatusOr DeleteChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteChannelRequest const& request) + override; + + future> DeleteChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetProvider( google::cloud::eventarc::v1::GetProviderRequest const& request) override; @@ -107,11 +161,31 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { google::cloud::eventarc::v1::CreateChannelConnectionRequest const& request) override; + StatusOr CreateChannelConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateChannelConnectionRequest const& + request) override; + + future> + CreateChannelConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteChannelConnection( google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& request) override; + StatusOr DeleteChannelConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& + request) override; + + future> + DeleteChannelConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetGoogleChannelConfig( google::cloud::eventarc::v1::GetGoogleChannelConfigRequest const& request) diff --git a/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.cc b/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.cc index 7c0c8c418a07a..70ecf02f0e212 100644 --- a/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.cc +++ b/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.cc @@ -61,6 +61,30 @@ EventarcTracingConnection::CreateTrigger( return internal::EndSpan(std::move(span), child_->CreateTrigger(request)); } +StatusOr +EventarcTracingConnection::CreateTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateTriggerRequest const& request) { + auto span = + internal::MakeSpan("eventarc_v1::EventarcConnection::CreateTrigger"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateTrigger(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EventarcTracingConnection::CreateTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("eventarc_v1::EventarcConnection::CreateTrigger"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateTrigger(google::cloud::ExperimentalTag{}, operation)); +} + future> EventarcTracingConnection::UpdateTrigger( google::cloud::eventarc::v1::UpdateTriggerRequest const& request) { @@ -70,6 +94,30 @@ EventarcTracingConnection::UpdateTrigger( return internal::EndSpan(std::move(span), child_->UpdateTrigger(request)); } +StatusOr +EventarcTracingConnection::UpdateTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::UpdateTriggerRequest const& request) { + auto span = + internal::MakeSpan("eventarc_v1::EventarcConnection::UpdateTrigger"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateTrigger(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EventarcTracingConnection::UpdateTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("eventarc_v1::EventarcConnection::UpdateTrigger"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateTrigger(google::cloud::ExperimentalTag{}, operation)); +} + future> EventarcTracingConnection::DeleteTrigger( google::cloud::eventarc::v1::DeleteTriggerRequest const& request) { @@ -79,6 +127,30 @@ EventarcTracingConnection::DeleteTrigger( return internal::EndSpan(std::move(span), child_->DeleteTrigger(request)); } +StatusOr +EventarcTracingConnection::DeleteTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteTriggerRequest const& request) { + auto span = + internal::MakeSpan("eventarc_v1::EventarcConnection::DeleteTrigger"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteTrigger(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EventarcTracingConnection::DeleteTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("eventarc_v1::EventarcConnection::DeleteTrigger"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteTrigger(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr EventarcTracingConnection::GetChannel( google::cloud::eventarc::v1::GetChannelRequest const& request) { @@ -107,6 +179,30 @@ EventarcTracingConnection::CreateChannel( return internal::EndSpan(std::move(span), child_->CreateChannel(request)); } +StatusOr +EventarcTracingConnection::CreateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateChannelRequest const& request) { + auto span = + internal::MakeSpan("eventarc_v1::EventarcConnection::CreateChannel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateChannel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EventarcTracingConnection::CreateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("eventarc_v1::EventarcConnection::CreateChannel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateChannel(google::cloud::ExperimentalTag{}, operation)); +} + future> EventarcTracingConnection::UpdateChannel( google::cloud::eventarc::v1::UpdateChannelRequest const& request) { @@ -116,6 +212,30 @@ EventarcTracingConnection::UpdateChannel( return internal::EndSpan(std::move(span), child_->UpdateChannel(request)); } +StatusOr +EventarcTracingConnection::UpdateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::UpdateChannelRequest const& request) { + auto span = + internal::MakeSpan("eventarc_v1::EventarcConnection::UpdateChannel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateChannel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EventarcTracingConnection::UpdateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("eventarc_v1::EventarcConnection::UpdateChannel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateChannel(google::cloud::ExperimentalTag{}, operation)); +} + future> EventarcTracingConnection::DeleteChannel( google::cloud::eventarc::v1::DeleteChannelRequest const& request) { @@ -125,6 +245,30 @@ EventarcTracingConnection::DeleteChannel( return internal::EndSpan(std::move(span), child_->DeleteChannel(request)); } +StatusOr +EventarcTracingConnection::DeleteChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteChannelRequest const& request) { + auto span = + internal::MakeSpan("eventarc_v1::EventarcConnection::DeleteChannel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteChannel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EventarcTracingConnection::DeleteChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("eventarc_v1::EventarcConnection::DeleteChannel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteChannel(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr EventarcTracingConnection::GetProvider( google::cloud::eventarc::v1::GetProviderRequest const& request) { @@ -177,6 +321,31 @@ EventarcTracingConnection::CreateChannelConnection( child_->CreateChannelConnection(request)); } +StatusOr +EventarcTracingConnection::CreateChannelConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateChannelConnectionRequest const& + request) { + auto span = internal::MakeSpan( + "eventarc_v1::EventarcConnection::CreateChannelConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateChannelConnection( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EventarcTracingConnection::CreateChannelConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "eventarc_v1::EventarcConnection::CreateChannelConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateChannelConnection( + google::cloud::ExperimentalTag{}, operation)); +} + future> EventarcTracingConnection::DeleteChannelConnection( google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& @@ -188,6 +357,31 @@ EventarcTracingConnection::DeleteChannelConnection( child_->DeleteChannelConnection(request)); } +StatusOr +EventarcTracingConnection::DeleteChannelConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& + request) { + auto span = internal::MakeSpan( + "eventarc_v1::EventarcConnection::DeleteChannelConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteChannelConnection( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +EventarcTracingConnection::DeleteChannelConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "eventarc_v1::EventarcConnection::DeleteChannelConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteChannelConnection( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr EventarcTracingConnection::GetGoogleChannelConfig( google::cloud::eventarc::v1::GetGoogleChannelConfigRequest const& request) { diff --git a/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.h b/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.h index af08e48fe842a..e282b125a52f7 100644 --- a/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.h +++ b/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.h @@ -49,14 +49,41 @@ class EventarcTracingConnection : public eventarc_v1::EventarcConnection { google::cloud::eventarc::v1::CreateTriggerRequest const& request) override; + StatusOr CreateTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateTriggerRequest const& request) + override; + + future> CreateTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTrigger( google::cloud::eventarc::v1::UpdateTriggerRequest const& request) override; + StatusOr UpdateTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::UpdateTriggerRequest const& request) + override; + + future> UpdateTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTrigger( google::cloud::eventarc::v1::DeleteTriggerRequest const& request) override; + StatusOr DeleteTrigger( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteTriggerRequest const& request) + override; + + future> DeleteTrigger( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetChannel( google::cloud::eventarc::v1::GetChannelRequest const& request) override; @@ -67,14 +94,41 @@ class EventarcTracingConnection : public eventarc_v1::EventarcConnection { google::cloud::eventarc::v1::CreateChannelRequest const& request) override; + StatusOr CreateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateChannelRequest const& request) + override; + + future> CreateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateChannel( google::cloud::eventarc::v1::UpdateChannelRequest const& request) override; + StatusOr UpdateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::UpdateChannelRequest const& request) + override; + + future> UpdateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteChannel( google::cloud::eventarc::v1::DeleteChannelRequest const& request) override; + StatusOr DeleteChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteChannelRequest const& request) + override; + + future> DeleteChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetProvider( google::cloud::eventarc::v1::GetProviderRequest const& request) override; @@ -95,11 +149,31 @@ class EventarcTracingConnection : public eventarc_v1::EventarcConnection { google::cloud::eventarc::v1::CreateChannelConnectionRequest const& request) override; + StatusOr CreateChannelConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateChannelConnectionRequest const& + request) override; + + future> + CreateChannelConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteChannelConnection( google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& request) override; + StatusOr DeleteChannelConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& + request) override; + + future> + DeleteChannelConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetGoogleChannelConfig( google::cloud::eventarc::v1::GetGoogleChannelConfigRequest const& request) diff --git a/google/cloud/eventarc/v1/mocks/mock_eventarc_connection.h b/google/cloud/eventarc/v1/mocks/mock_eventarc_connection.h index 81511e606b971..c711e89351907 100644 --- a/google/cloud/eventarc/v1/mocks/mock_eventarc_connection.h +++ b/google/cloud/eventarc/v1/mocks/mock_eventarc_connection.h @@ -59,16 +59,52 @@ class MockEventarcConnection : public eventarc_v1::EventarcConnection { (google::cloud::eventarc::v1::CreateTriggerRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateTrigger, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateTriggerRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateTrigger, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateTrigger, (google::cloud::eventarc::v1::UpdateTriggerRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateTrigger, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::UpdateTriggerRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateTrigger, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteTrigger, (google::cloud::eventarc::v1::DeleteTriggerRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteTrigger, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteTriggerRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteTrigger, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetChannel, (google::cloud::eventarc::v1::GetChannelRequest const& request), (override)); @@ -82,16 +118,52 @@ class MockEventarcConnection : public eventarc_v1::EventarcConnection { (google::cloud::eventarc::v1::CreateChannelRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateChannel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateChannelRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateChannel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateChannel, (google::cloud::eventarc::v1::UpdateChannelRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateChannel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::UpdateChannelRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateChannel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteChannel, (google::cloud::eventarc::v1::DeleteChannelRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteChannel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteChannelRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteChannel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetProvider, (google::cloud::eventarc::v1::GetProviderRequest const& request), (override)); @@ -120,6 +192,19 @@ class MockEventarcConnection : public eventarc_v1::EventarcConnection { request), (override)); + MOCK_METHOD( + StatusOr, CreateChannelConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::CreateChannelConnectionRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateChannelConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteChannelConnection, @@ -127,6 +212,19 @@ class MockEventarcConnection : public eventarc_v1::EventarcConnection { request), (override)); + MOCK_METHOD( + StatusOr, DeleteChannelConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteChannelConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetGoogleChannelConfig, (google::cloud::eventarc::v1::GetGoogleChannelConfigRequest const& diff --git a/google/cloud/filestore/v1/cloud_filestore_manager_connection.cc b/google/cloud/filestore/v1/cloud_filestore_manager_connection.cc index cded4e21bf446..14695b2e83e44 100644 --- a/google/cloud/filestore/v1/cloud_filestore_manager_connection.cc +++ b/google/cloud/filestore/v1/cloud_filestore_manager_connection.cc @@ -60,6 +60,22 @@ CloudFilestoreManagerConnection::CreateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudFilestoreManagerConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudFilestoreManagerConnection::CreateInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudFilestoreManagerConnection::UpdateInstance( google::cloud::filestore::v1::UpdateInstanceRequest const&) { @@ -68,9 +84,41 @@ CloudFilestoreManagerConnection::UpdateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudFilestoreManagerConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +CloudFilestoreManagerConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudFilestoreManagerConnection::RestoreInstance( + google::cloud::filestore::v1::RestoreInstanceRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr CloudFilestoreManagerConnection::RestoreInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::filestore::v1::RestoreInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudFilestoreManagerConnection::RestoreInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -84,6 +132,22 @@ CloudFilestoreManagerConnection::RevertInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudFilestoreManagerConnection::RevertInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::RevertInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudFilestoreManagerConnection::RevertInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudFilestoreManagerConnection::DeleteInstance( google::cloud::filestore::v1::DeleteInstanceRequest const&) { @@ -92,6 +156,22 @@ CloudFilestoreManagerConnection::DeleteInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudFilestoreManagerConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudFilestoreManagerConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CloudFilestoreManagerConnection::ListSnapshots( google::cloud::filestore::v1:: @@ -114,6 +194,22 @@ CloudFilestoreManagerConnection::CreateSnapshot( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudFilestoreManagerConnection::CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateSnapshotRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudFilestoreManagerConnection::CreateSnapshot( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudFilestoreManagerConnection::DeleteSnapshot( google::cloud::filestore::v1::DeleteSnapshotRequest const&) { @@ -122,6 +218,22 @@ CloudFilestoreManagerConnection::DeleteSnapshot( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudFilestoreManagerConnection::DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteSnapshotRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudFilestoreManagerConnection::DeleteSnapshot( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudFilestoreManagerConnection::UpdateSnapshot( google::cloud::filestore::v1::UpdateSnapshotRequest const&) { @@ -130,6 +242,22 @@ CloudFilestoreManagerConnection::UpdateSnapshot( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudFilestoreManagerConnection::UpdateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateSnapshotRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudFilestoreManagerConnection::UpdateSnapshot( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange CloudFilestoreManagerConnection::ListBackups( google::cloud::filestore::v1:: @@ -152,6 +280,22 @@ CloudFilestoreManagerConnection::CreateBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudFilestoreManagerConnection::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudFilestoreManagerConnection::CreateBackup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudFilestoreManagerConnection::DeleteBackup( google::cloud::filestore::v1::DeleteBackupRequest const&) { @@ -160,6 +304,22 @@ CloudFilestoreManagerConnection::DeleteBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudFilestoreManagerConnection::DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudFilestoreManagerConnection::DeleteBackup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudFilestoreManagerConnection::UpdateBackup( google::cloud::filestore::v1::UpdateBackupRequest const&) { @@ -168,6 +328,22 @@ CloudFilestoreManagerConnection::UpdateBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudFilestoreManagerConnection::UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudFilestoreManagerConnection::UpdateBackup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeCloudFilestoreManagerConnection(Options options) { internal::CheckExpectedOptions CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateInstanceRequest const& request); + + virtual future> + CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateInstance( google::cloud::filestore::v1::UpdateInstanceRequest const& request); + virtual StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateInstanceRequest const& request); + + virtual future> + UpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RestoreInstance( google::cloud::filestore::v1::RestoreInstanceRequest const& request); + virtual StatusOr RestoreInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::RestoreInstanceRequest const& request); + + virtual future> + RestoreInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RevertInstance( google::cloud::filestore::v1::RevertInstanceRequest const& request); + virtual StatusOr RevertInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::RevertInstanceRequest const& request); + + virtual future> + RevertInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteInstance( google::cloud::filestore::v1::DeleteInstanceRequest const& request); + virtual StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteInstanceRequest const& request); + + virtual future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListSnapshots( google::cloud::filestore::v1::ListSnapshotsRequest request); @@ -227,14 +269,38 @@ class CloudFilestoreManagerConnection { CreateSnapshot( google::cloud::filestore::v1::CreateSnapshotRequest const& request); + virtual StatusOr CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateSnapshotRequest const& request); + + virtual future> + CreateSnapshot(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteSnapshot( google::cloud::filestore::v1::DeleteSnapshotRequest const& request); + virtual StatusOr DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteSnapshotRequest const& request); + + virtual future> + DeleteSnapshot(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateSnapshot( google::cloud::filestore::v1::UpdateSnapshotRequest const& request); + virtual StatusOr UpdateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateSnapshotRequest const& request); + + virtual future> + UpdateSnapshot(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListBackups( google::cloud::filestore::v1::ListBackupsRequest request); @@ -244,12 +310,36 @@ class CloudFilestoreManagerConnection { virtual future> CreateBackup( google::cloud::filestore::v1::CreateBackupRequest const& request); + virtual StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateBackupRequest const& request); + + virtual future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteBackup( google::cloud::filestore::v1::DeleteBackupRequest const& request); + virtual StatusOr DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteBackupRequest const& request); + + virtual future> + DeleteBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateBackup( google::cloud::filestore::v1::UpdateBackupRequest const& request); + + virtual StatusOr UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateBackupRequest const& request); + + virtual future> UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.cc b/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.cc index 090b885084971..d201a67f4df3e 100644 --- a/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.cc +++ b/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.cc @@ -155,6 +155,59 @@ CloudFilestoreManagerConnectionImpl::CreateInstance( polling_policy(*current), __func__); } +StatusOr +CloudFilestoreManagerConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::filestore::v1::CreateInstanceRequest const& request) { + return stub_->CreateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudFilestoreManagerConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::filestore::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::filestore::v1::Instance>, + polling_policy(*current), __func__); +} + future> CloudFilestoreManagerConnectionImpl::UpdateInstance( google::cloud::filestore::v1::UpdateInstanceRequest const& request) { @@ -194,6 +247,59 @@ CloudFilestoreManagerConnectionImpl::UpdateInstance( polling_policy(*current), __func__); } +StatusOr +CloudFilestoreManagerConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::filestore::v1::UpdateInstanceRequest const& request) { + return stub_->UpdateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudFilestoreManagerConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::filestore::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::filestore::v1::Instance>, + polling_policy(*current), __func__); +} + future> CloudFilestoreManagerConnectionImpl::RestoreInstance( google::cloud::filestore::v1::RestoreInstanceRequest const& request) { @@ -233,6 +339,59 @@ CloudFilestoreManagerConnectionImpl::RestoreInstance( polling_policy(*current), __func__); } +StatusOr +CloudFilestoreManagerConnectionImpl::RestoreInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::RestoreInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RestoreInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::filestore::v1::RestoreInstanceRequest const& request) { + return stub_->RestoreInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudFilestoreManagerConnectionImpl::RestoreInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RestoreInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::filestore::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::filestore::v1::Instance>, + polling_policy(*current), __func__); +} + future> CloudFilestoreManagerConnectionImpl::RevertInstance( google::cloud::filestore::v1::RevertInstanceRequest const& request) { @@ -272,6 +431,59 @@ CloudFilestoreManagerConnectionImpl::RevertInstance( polling_policy(*current), __func__); } +StatusOr +CloudFilestoreManagerConnectionImpl::RevertInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::RevertInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RevertInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::filestore::v1::RevertInstanceRequest const& request) { + return stub_->RevertInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudFilestoreManagerConnectionImpl::RevertInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RevertInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::filestore::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::filestore::v1::Instance>, + polling_policy(*current), __func__); +} + future> CloudFilestoreManagerConnectionImpl::DeleteInstance( google::cloud::filestore::v1::DeleteInstanceRequest const& request) { @@ -311,6 +523,60 @@ CloudFilestoreManagerConnectionImpl::DeleteInstance( polling_policy(*current), __func__); } +StatusOr +CloudFilestoreManagerConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::filestore::v1::DeleteInstanceRequest const& request) { + return stub_->DeleteInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudFilestoreManagerConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::common::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::common::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange CloudFilestoreManagerConnectionImpl::ListSnapshots( google::cloud::filestore::v1::ListSnapshotsRequest request) { @@ -398,6 +664,59 @@ CloudFilestoreManagerConnectionImpl::CreateSnapshot( polling_policy(*current), __func__); } +StatusOr +CloudFilestoreManagerConnectionImpl::CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateSnapshotRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateSnapshot(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::filestore::v1::CreateSnapshotRequest const& request) { + return stub_->CreateSnapshot(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudFilestoreManagerConnectionImpl::CreateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateSnapshot", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::filestore::v1::Snapshot>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::filestore::v1::Snapshot>, + polling_policy(*current), __func__); +} + future> CloudFilestoreManagerConnectionImpl::DeleteSnapshot( google::cloud::filestore::v1::DeleteSnapshotRequest const& request) { @@ -437,6 +756,60 @@ CloudFilestoreManagerConnectionImpl::DeleteSnapshot( polling_policy(*current), __func__); } +StatusOr +CloudFilestoreManagerConnectionImpl::DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteSnapshotRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSnapshot(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::filestore::v1::DeleteSnapshotRequest const& request) { + return stub_->DeleteSnapshot(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudFilestoreManagerConnectionImpl::DeleteSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteSnapshot", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::common::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::common::OperationMetadata>, + polling_policy(*current), __func__); +} + future> CloudFilestoreManagerConnectionImpl::UpdateSnapshot( google::cloud::filestore::v1::UpdateSnapshotRequest const& request) { @@ -476,6 +849,59 @@ CloudFilestoreManagerConnectionImpl::UpdateSnapshot( polling_policy(*current), __func__); } +StatusOr +CloudFilestoreManagerConnectionImpl::UpdateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateSnapshotRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateSnapshot(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::filestore::v1::UpdateSnapshotRequest const& request) { + return stub_->UpdateSnapshot(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudFilestoreManagerConnectionImpl::UpdateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateSnapshot", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::filestore::v1::Snapshot>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::filestore::v1::Snapshot>, + polling_policy(*current), __func__); +} + StreamRange CloudFilestoreManagerConnectionImpl::ListBackups( google::cloud::filestore::v1::ListBackupsRequest request) { @@ -563,6 +989,58 @@ CloudFilestoreManagerConnectionImpl::CreateBackup( polling_policy(*current), __func__); } +StatusOr +CloudFilestoreManagerConnectionImpl::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::filestore::v1::CreateBackupRequest const& request) { + return stub_->CreateBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudFilestoreManagerConnectionImpl::CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::filestore::v1::Backup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::filestore::v1::Backup>, + polling_policy(*current), __func__); +} + future> CloudFilestoreManagerConnectionImpl::DeleteBackup( google::cloud::filestore::v1::DeleteBackupRequest const& request) { @@ -602,6 +1080,59 @@ CloudFilestoreManagerConnectionImpl::DeleteBackup( polling_policy(*current), __func__); } +StatusOr +CloudFilestoreManagerConnectionImpl::DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::filestore::v1::DeleteBackupRequest const& request) { + return stub_->DeleteBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudFilestoreManagerConnectionImpl::DeleteBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::common::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::common::OperationMetadata>, + polling_policy(*current), __func__); +} + future> CloudFilestoreManagerConnectionImpl::UpdateBackup( google::cloud::filestore::v1::UpdateBackupRequest const& request) { @@ -641,6 +1172,58 @@ CloudFilestoreManagerConnectionImpl::UpdateBackup( polling_policy(*current), __func__); } +StatusOr +CloudFilestoreManagerConnectionImpl::UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::filestore::v1::UpdateBackupRequest const& request) { + return stub_->UpdateBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudFilestoreManagerConnectionImpl::UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::filestore::v1::Backup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::filestore::v1::Backup>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace filestore_v1_internal } // namespace cloud diff --git a/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.h b/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.h index e798222c43545..414b90bfd9aca 100644 --- a/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.h +++ b/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.h @@ -62,22 +62,67 @@ class CloudFilestoreManagerConnectionImpl google::cloud::filestore::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateInstanceRequest const& request) + override; + + future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstance( google::cloud::filestore::v1::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateInstanceRequest const& request) + override; + + future> UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RestoreInstance( google::cloud::filestore::v1::RestoreInstanceRequest const& request) override; + StatusOr RestoreInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::RestoreInstanceRequest const& request) + override; + + future> RestoreInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RevertInstance( google::cloud::filestore::v1::RevertInstanceRequest const& request) override; + StatusOr RevertInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::RevertInstanceRequest const& request) + override; + + future> RevertInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteInstance( google::cloud::filestore::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteInstanceRequest const& request) + override; + + future> DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListSnapshots( google::cloud::filestore::v1::ListSnapshotsRequest request) override; @@ -88,14 +133,41 @@ class CloudFilestoreManagerConnectionImpl google::cloud::filestore::v1::CreateSnapshotRequest const& request) override; + StatusOr CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateSnapshotRequest const& request) + override; + + future> CreateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSnapshot( google::cloud::filestore::v1::DeleteSnapshotRequest const& request) override; + StatusOr DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteSnapshotRequest const& request) + override; + + future> DeleteSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateSnapshot( google::cloud::filestore::v1::UpdateSnapshotRequest const& request) override; + StatusOr UpdateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateSnapshotRequest const& request) + override; + + future> UpdateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListBackups( google::cloud::filestore::v1::ListBackupsRequest request) override; @@ -106,14 +178,41 @@ class CloudFilestoreManagerConnectionImpl google::cloud::filestore::v1::CreateBackupRequest const& request) override; + StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateBackupRequest const& request) + override; + + future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteBackup( google::cloud::filestore::v1::DeleteBackupRequest const& request) override; + StatusOr DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteBackupRequest const& request) + override; + + future> DeleteBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateBackup( google::cloud::filestore::v1::UpdateBackupRequest const& request) override; + StatusOr UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateBackupRequest const& request) + override; + + future> UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.cc b/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.cc index 13743a72275b6..f2663aa969875 100644 --- a/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.cc +++ b/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.cc @@ -62,6 +62,30 @@ CloudFilestoreManagerTracingConnection::CreateInstance( return internal::EndSpan(std::move(span), child_->CreateInstance(request)); } +StatusOr +CloudFilestoreManagerTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateInstanceRequest const& request) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudFilestoreManagerTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudFilestoreManagerTracingConnection::UpdateInstance( google::cloud::filestore::v1::UpdateInstanceRequest const& request) { @@ -71,6 +95,30 @@ CloudFilestoreManagerTracingConnection::UpdateInstance( return internal::EndSpan(std::move(span), child_->UpdateInstance(request)); } +StatusOr +CloudFilestoreManagerTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateInstanceRequest const& request) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudFilestoreManagerTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudFilestoreManagerTracingConnection::RestoreInstance( google::cloud::filestore::v1::RestoreInstanceRequest const& request) { @@ -80,6 +128,30 @@ CloudFilestoreManagerTracingConnection::RestoreInstance( return internal::EndSpan(std::move(span), child_->RestoreInstance(request)); } +StatusOr +CloudFilestoreManagerTracingConnection::RestoreInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::RestoreInstanceRequest const& request) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::RestoreInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RestoreInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudFilestoreManagerTracingConnection::RestoreInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::RestoreInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RestoreInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudFilestoreManagerTracingConnection::RevertInstance( google::cloud::filestore::v1::RevertInstanceRequest const& request) { @@ -89,6 +161,30 @@ CloudFilestoreManagerTracingConnection::RevertInstance( return internal::EndSpan(std::move(span), child_->RevertInstance(request)); } +StatusOr +CloudFilestoreManagerTracingConnection::RevertInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::RevertInstanceRequest const& request) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::RevertInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RevertInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudFilestoreManagerTracingConnection::RevertInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::RevertInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RevertInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudFilestoreManagerTracingConnection::DeleteInstance( google::cloud::filestore::v1::DeleteInstanceRequest const& request) { @@ -98,6 +194,30 @@ CloudFilestoreManagerTracingConnection::DeleteInstance( return internal::EndSpan(std::move(span), child_->DeleteInstance(request)); } +StatusOr +CloudFilestoreManagerTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteInstanceRequest const& request) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudFilestoreManagerTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CloudFilestoreManagerTracingConnection::ListSnapshots( google::cloud::filestore::v1::ListSnapshotsRequest request) { @@ -127,6 +247,30 @@ CloudFilestoreManagerTracingConnection::CreateSnapshot( return internal::EndSpan(std::move(span), child_->CreateSnapshot(request)); } +StatusOr +CloudFilestoreManagerTracingConnection::CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateSnapshotRequest const& request) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::CreateSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateSnapshot(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudFilestoreManagerTracingConnection::CreateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::CreateSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateSnapshot(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudFilestoreManagerTracingConnection::DeleteSnapshot( google::cloud::filestore::v1::DeleteSnapshotRequest const& request) { @@ -136,6 +280,30 @@ CloudFilestoreManagerTracingConnection::DeleteSnapshot( return internal::EndSpan(std::move(span), child_->DeleteSnapshot(request)); } +StatusOr +CloudFilestoreManagerTracingConnection::DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteSnapshotRequest const& request) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::DeleteSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSnapshot(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudFilestoreManagerTracingConnection::DeleteSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::DeleteSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSnapshot(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudFilestoreManagerTracingConnection::UpdateSnapshot( google::cloud::filestore::v1::UpdateSnapshotRequest const& request) { @@ -145,6 +313,30 @@ CloudFilestoreManagerTracingConnection::UpdateSnapshot( return internal::EndSpan(std::move(span), child_->UpdateSnapshot(request)); } +StatusOr +CloudFilestoreManagerTracingConnection::UpdateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateSnapshotRequest const& request) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::UpdateSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateSnapshot(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudFilestoreManagerTracingConnection::UpdateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::UpdateSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateSnapshot(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange CloudFilestoreManagerTracingConnection::ListBackups( google::cloud::filestore::v1::ListBackupsRequest request) { @@ -174,6 +366,30 @@ CloudFilestoreManagerTracingConnection::CreateBackup( return internal::EndSpan(std::move(span), child_->CreateBackup(request)); } +StatusOr +CloudFilestoreManagerTracingConnection::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateBackupRequest const& request) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::CreateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudFilestoreManagerTracingConnection::CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::CreateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateBackup(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudFilestoreManagerTracingConnection::DeleteBackup( google::cloud::filestore::v1::DeleteBackupRequest const& request) { @@ -183,6 +399,30 @@ CloudFilestoreManagerTracingConnection::DeleteBackup( return internal::EndSpan(std::move(span), child_->DeleteBackup(request)); } +StatusOr +CloudFilestoreManagerTracingConnection::DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteBackupRequest const& request) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::DeleteBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudFilestoreManagerTracingConnection::DeleteBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::DeleteBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteBackup(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudFilestoreManagerTracingConnection::UpdateBackup( google::cloud::filestore::v1::UpdateBackupRequest const& request) { @@ -192,6 +432,30 @@ CloudFilestoreManagerTracingConnection::UpdateBackup( return internal::EndSpan(std::move(span), child_->UpdateBackup(request)); } +StatusOr +CloudFilestoreManagerTracingConnection::UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateBackupRequest const& request) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::UpdateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudFilestoreManagerTracingConnection::UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "filestore_v1::CloudFilestoreManagerConnection::UpdateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateBackup(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.h b/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.h index 567c468d43e7a..30174c4b59364 100644 --- a/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.h +++ b/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.h @@ -50,22 +50,67 @@ class CloudFilestoreManagerTracingConnection google::cloud::filestore::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateInstanceRequest const& request) + override; + + future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstance( google::cloud::filestore::v1::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateInstanceRequest const& request) + override; + + future> UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RestoreInstance( google::cloud::filestore::v1::RestoreInstanceRequest const& request) override; + StatusOr RestoreInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::RestoreInstanceRequest const& request) + override; + + future> RestoreInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RevertInstance( google::cloud::filestore::v1::RevertInstanceRequest const& request) override; + StatusOr RevertInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::RevertInstanceRequest const& request) + override; + + future> RevertInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteInstance( google::cloud::filestore::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteInstanceRequest const& request) + override; + + future> DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListSnapshots( google::cloud::filestore::v1::ListSnapshotsRequest request) override; @@ -76,14 +121,41 @@ class CloudFilestoreManagerTracingConnection google::cloud::filestore::v1::CreateSnapshotRequest const& request) override; + StatusOr CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateSnapshotRequest const& request) + override; + + future> CreateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSnapshot( google::cloud::filestore::v1::DeleteSnapshotRequest const& request) override; + StatusOr DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteSnapshotRequest const& request) + override; + + future> DeleteSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateSnapshot( google::cloud::filestore::v1::UpdateSnapshotRequest const& request) override; + StatusOr UpdateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateSnapshotRequest const& request) + override; + + future> UpdateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListBackups( google::cloud::filestore::v1::ListBackupsRequest request) override; @@ -94,14 +166,41 @@ class CloudFilestoreManagerTracingConnection google::cloud::filestore::v1::CreateBackupRequest const& request) override; + StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateBackupRequest const& request) + override; + + future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteBackup( google::cloud::filestore::v1::DeleteBackupRequest const& request) override; + StatusOr DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteBackupRequest const& request) + override; + + future> DeleteBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateBackup( google::cloud::filestore::v1::UpdateBackupRequest const& request) override; + StatusOr UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateBackupRequest const& request) + override; + + future> UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/filestore/v1/mocks/mock_cloud_filestore_manager_connection.h b/google/cloud/filestore/v1/mocks/mock_cloud_filestore_manager_connection.h index 21179e51816f8..4dbcae00a84ff 100644 --- a/google/cloud/filestore/v1/mocks/mock_cloud_filestore_manager_connection.h +++ b/google/cloud/filestore/v1/mocks/mock_cloud_filestore_manager_connection.h @@ -61,27 +61,87 @@ class MockCloudFilestoreManagerConnection (google::cloud::filestore::v1::CreateInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateInstance, (google::cloud::filestore::v1::UpdateInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RestoreInstance, (google::cloud::filestore::v1::RestoreInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RestoreInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::RestoreInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + RestoreInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RevertInstance, (google::cloud::filestore::v1::RevertInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RevertInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::RevertInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + RevertInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteInstance, (google::cloud::filestore::v1::DeleteInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListSnapshots, (google::cloud::filestore::v1::ListSnapshotsRequest request), @@ -96,17 +156,53 @@ class MockCloudFilestoreManagerConnection (google::cloud::filestore::v1::CreateSnapshotRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateSnapshot, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateSnapshotRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateSnapshot, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteSnapshot, (google::cloud::filestore::v1::DeleteSnapshotRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteSnapshot, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteSnapshotRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteSnapshot, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateSnapshot, (google::cloud::filestore::v1::UpdateSnapshotRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateSnapshot, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateSnapshotRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateSnapshot, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListBackups, (google::cloud::filestore::v1::ListBackupsRequest request), (override)); @@ -120,15 +216,51 @@ class MockCloudFilestoreManagerConnection (google::cloud::filestore::v1::CreateBackupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::CreateBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteBackup, (google::cloud::filestore::v1::DeleteBackupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::DeleteBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateBackup, (google::cloud::filestore::v1::UpdateBackupRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, UpdateBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::filestore::v1::UpdateBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/functions/v1/cloud_functions_connection.cc b/google/cloud/functions/v1/cloud_functions_connection.cc index 3fadaed48d128..24f37c0eb9111 100644 --- a/google/cloud/functions/v1/cloud_functions_connection.cc +++ b/google/cloud/functions/v1/cloud_functions_connection.cc @@ -60,6 +60,22 @@ CloudFunctionsServiceConnection::CreateFunction( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudFunctionsServiceConnection::CreateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::CreateFunctionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudFunctionsServiceConnection::CreateFunction( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudFunctionsServiceConnection::UpdateFunction( google::cloud::functions::v1::UpdateFunctionRequest const&) { @@ -68,6 +84,22 @@ CloudFunctionsServiceConnection::UpdateFunction( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudFunctionsServiceConnection::UpdateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::UpdateFunctionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudFunctionsServiceConnection::UpdateFunction( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudFunctionsServiceConnection::DeleteFunction( google::cloud::functions::v1::DeleteFunctionRequest const&) { @@ -76,6 +108,22 @@ CloudFunctionsServiceConnection::DeleteFunction( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudFunctionsServiceConnection::DeleteFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::DeleteFunctionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudFunctionsServiceConnection::DeleteFunction( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr CloudFunctionsServiceConnection::CallFunction( google::cloud::functions::v1::CallFunctionRequest const&) { diff --git a/google/cloud/functions/v1/cloud_functions_connection.h b/google/cloud/functions/v1/cloud_functions_connection.h index c0730b22565f1..21002c989bb5c 100644 --- a/google/cloud/functions/v1/cloud_functions_connection.h +++ b/google/cloud/functions/v1/cloud_functions_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/functions/v1/cloud_functions_connection_idempotency_policy.h" #include "google/cloud/functions/v1/internal/cloud_functions_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -202,14 +204,38 @@ class CloudFunctionsServiceConnection { CreateFunction( google::cloud::functions::v1::CreateFunctionRequest const& request); + virtual StatusOr CreateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::CreateFunctionRequest const& request); + + virtual future> + CreateFunction(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateFunction( google::cloud::functions::v1::UpdateFunctionRequest const& request); + virtual StatusOr UpdateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::UpdateFunctionRequest const& request); + + virtual future> + UpdateFunction(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteFunction( google::cloud::functions::v1::DeleteFunctionRequest const& request); + virtual StatusOr DeleteFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::DeleteFunctionRequest const& request); + + virtual future> + DeleteFunction(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CallFunction( google::cloud::functions::v1::CallFunctionRequest const& request); diff --git a/google/cloud/functions/v1/internal/cloud_functions_connection_impl.cc b/google/cloud/functions/v1/internal/cloud_functions_connection_impl.cc index 3c3f3a12a4194..d5fba6148d92a 100644 --- a/google/cloud/functions/v1/internal/cloud_functions_connection_impl.cc +++ b/google/cloud/functions/v1/internal/cloud_functions_connection_impl.cc @@ -155,6 +155,60 @@ CloudFunctionsServiceConnectionImpl::CreateFunction( polling_policy(*current), __func__); } +StatusOr +CloudFunctionsServiceConnectionImpl::CreateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::CreateFunctionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateFunction(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::functions::v1::CreateFunctionRequest const& request) { + return stub_->CreateFunction(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudFunctionsServiceConnectionImpl::CreateFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateFunction", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::functions::v1::CloudFunction>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::functions::v1::CloudFunction>, + polling_policy(*current), __func__); +} + future> CloudFunctionsServiceConnectionImpl::UpdateFunction( google::cloud::functions::v1::UpdateFunctionRequest const& request) { @@ -194,6 +248,60 @@ CloudFunctionsServiceConnectionImpl::UpdateFunction( polling_policy(*current), __func__); } +StatusOr +CloudFunctionsServiceConnectionImpl::UpdateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::UpdateFunctionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateFunction(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::functions::v1::UpdateFunctionRequest const& request) { + return stub_->UpdateFunction(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudFunctionsServiceConnectionImpl::UpdateFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateFunction", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::functions::v1::CloudFunction>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::functions::v1::CloudFunction>, + polling_policy(*current), __func__); +} + future> CloudFunctionsServiceConnectionImpl::DeleteFunction( google::cloud::functions::v1::DeleteFunctionRequest const& request) { @@ -233,6 +341,60 @@ CloudFunctionsServiceConnectionImpl::DeleteFunction( polling_policy(*current), __func__); } +StatusOr +CloudFunctionsServiceConnectionImpl::DeleteFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::DeleteFunctionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteFunction(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::functions::v1::DeleteFunctionRequest const& request) { + return stub_->DeleteFunction(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudFunctionsServiceConnectionImpl::DeleteFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteFunction", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::functions::v1::OperationMetadataV1>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::functions::v1::OperationMetadataV1>, + polling_policy(*current), __func__); +} + StatusOr CloudFunctionsServiceConnectionImpl::CallFunction( google::cloud::functions::v1::CallFunctionRequest const& request) { diff --git a/google/cloud/functions/v1/internal/cloud_functions_connection_impl.h b/google/cloud/functions/v1/internal/cloud_functions_connection_impl.h index 4dcf3e9a6d0ec..38ffd1e3b3fd6 100644 --- a/google/cloud/functions/v1/internal/cloud_functions_connection_impl.h +++ b/google/cloud/functions/v1/internal/cloud_functions_connection_impl.h @@ -62,14 +62,41 @@ class CloudFunctionsServiceConnectionImpl google::cloud::functions::v1::CreateFunctionRequest const& request) override; + StatusOr CreateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::CreateFunctionRequest const& request) + override; + + future> CreateFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateFunction( google::cloud::functions::v1::UpdateFunctionRequest const& request) override; + StatusOr UpdateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::UpdateFunctionRequest const& request) + override; + + future> UpdateFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFunction(google::cloud::functions::v1::DeleteFunctionRequest const& request) override; + StatusOr DeleteFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::DeleteFunctionRequest const& request) + override; + + future> + DeleteFunction(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CallFunction( google::cloud::functions::v1::CallFunctionRequest const& request) override; diff --git a/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.cc b/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.cc index ee075ec116196..2e270d6da3256 100644 --- a/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.cc +++ b/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.cc @@ -63,6 +63,30 @@ CloudFunctionsServiceTracingConnection::CreateFunction( return internal::EndSpan(std::move(span), child_->CreateFunction(request)); } +StatusOr +CloudFunctionsServiceTracingConnection::CreateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::CreateFunctionRequest const& request) { + auto span = internal::MakeSpan( + "functions_v1::CloudFunctionsServiceConnection::CreateFunction"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateFunction(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudFunctionsServiceTracingConnection::CreateFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "functions_v1::CloudFunctionsServiceConnection::CreateFunction"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateFunction(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudFunctionsServiceTracingConnection::UpdateFunction( google::cloud::functions::v1::UpdateFunctionRequest const& request) { @@ -72,6 +96,30 @@ CloudFunctionsServiceTracingConnection::UpdateFunction( return internal::EndSpan(std::move(span), child_->UpdateFunction(request)); } +StatusOr +CloudFunctionsServiceTracingConnection::UpdateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::UpdateFunctionRequest const& request) { + auto span = internal::MakeSpan( + "functions_v1::CloudFunctionsServiceConnection::UpdateFunction"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateFunction(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudFunctionsServiceTracingConnection::UpdateFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "functions_v1::CloudFunctionsServiceConnection::UpdateFunction"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateFunction(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudFunctionsServiceTracingConnection::DeleteFunction( google::cloud::functions::v1::DeleteFunctionRequest const& request) { @@ -81,6 +129,30 @@ CloudFunctionsServiceTracingConnection::DeleteFunction( return internal::EndSpan(std::move(span), child_->DeleteFunction(request)); } +StatusOr +CloudFunctionsServiceTracingConnection::DeleteFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::DeleteFunctionRequest const& request) { + auto span = internal::MakeSpan( + "functions_v1::CloudFunctionsServiceConnection::DeleteFunction"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteFunction(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudFunctionsServiceTracingConnection::DeleteFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "functions_v1::CloudFunctionsServiceConnection::DeleteFunction"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteFunction(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr CloudFunctionsServiceTracingConnection::CallFunction( google::cloud::functions::v1::CallFunctionRequest const& request) { diff --git a/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.h b/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.h index fd12501ee02ff..a3deb9201570c 100644 --- a/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.h +++ b/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.h @@ -50,14 +50,41 @@ class CloudFunctionsServiceTracingConnection google::cloud::functions::v1::CreateFunctionRequest const& request) override; + StatusOr CreateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::CreateFunctionRequest const& request) + override; + + future> CreateFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateFunction( google::cloud::functions::v1::UpdateFunctionRequest const& request) override; + StatusOr UpdateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::UpdateFunctionRequest const& request) + override; + + future> UpdateFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFunction(google::cloud::functions::v1::DeleteFunctionRequest const& request) override; + StatusOr DeleteFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::DeleteFunctionRequest const& request) + override; + + future> + DeleteFunction(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CallFunction( google::cloud::functions::v1::CallFunctionRequest const& request) override; diff --git a/google/cloud/functions/v1/mocks/mock_cloud_functions_connection.h b/google/cloud/functions/v1/mocks/mock_cloud_functions_connection.h index 12a51becfd151..ac20f57c46ce9 100644 --- a/google/cloud/functions/v1/mocks/mock_cloud_functions_connection.h +++ b/google/cloud/functions/v1/mocks/mock_cloud_functions_connection.h @@ -63,18 +63,55 @@ class MockCloudFunctionsServiceConnection (google::cloud::functions::v1::CreateFunctionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateFunction, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::CreateFunctionRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateFunction, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateFunction, (google::cloud::functions::v1::UpdateFunctionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateFunction, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::UpdateFunctionRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateFunction, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteFunction, (google::cloud::functions::v1::DeleteFunctionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteFunction, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v1::DeleteFunctionRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteFunction, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CallFunction, diff --git a/google/cloud/functions/v2/function_connection.cc b/google/cloud/functions/v2/function_connection.cc index c63e1ce23d020..676de6099b599 100644 --- a/google/cloud/functions/v2/function_connection.cc +++ b/google/cloud/functions/v2/function_connection.cc @@ -60,6 +60,22 @@ FunctionServiceConnection::CreateFunction( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FunctionServiceConnection::CreateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::CreateFunctionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FunctionServiceConnection::CreateFunction( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FunctionServiceConnection::UpdateFunction( google::cloud::functions::v2::UpdateFunctionRequest const&) { @@ -68,6 +84,22 @@ FunctionServiceConnection::UpdateFunction( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FunctionServiceConnection::UpdateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::UpdateFunctionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FunctionServiceConnection::UpdateFunction( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FunctionServiceConnection::DeleteFunction( google::cloud::functions::v2::DeleteFunctionRequest const&) { @@ -76,6 +108,22 @@ FunctionServiceConnection::DeleteFunction( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FunctionServiceConnection::DeleteFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::DeleteFunctionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FunctionServiceConnection::DeleteFunction( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr FunctionServiceConnection::GenerateUploadUrl( google::cloud::functions::v2::GenerateUploadUrlRequest const&) { diff --git a/google/cloud/functions/v2/function_connection.h b/google/cloud/functions/v2/function_connection.h index 2c5d36b31b43e..7f5cea99d6470 100644 --- a/google/cloud/functions/v2/function_connection.h +++ b/google/cloud/functions/v2/function_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/functions/v2/function_connection_idempotency_policy.h" #include "google/cloud/functions/v2/internal/function_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -196,14 +198,38 @@ class FunctionServiceConnection { CreateFunction( google::cloud::functions::v2::CreateFunctionRequest const& request); + virtual StatusOr CreateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::CreateFunctionRequest const& request); + + virtual future> + CreateFunction(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateFunction( google::cloud::functions::v2::UpdateFunctionRequest const& request); + virtual StatusOr UpdateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::UpdateFunctionRequest const& request); + + virtual future> + UpdateFunction(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteFunction( google::cloud::functions::v2::DeleteFunctionRequest const& request); + virtual StatusOr DeleteFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::DeleteFunctionRequest const& request); + + virtual future> + DeleteFunction(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GenerateUploadUrl( google::cloud::functions::v2::GenerateUploadUrlRequest const& request); diff --git a/google/cloud/functions/v2/internal/function_connection_impl.cc b/google/cloud/functions/v2/internal/function_connection_impl.cc index fcafe49e6833e..7f4e9cc0f2028 100644 --- a/google/cloud/functions/v2/internal/function_connection_impl.cc +++ b/google/cloud/functions/v2/internal/function_connection_impl.cc @@ -153,6 +153,59 @@ FunctionServiceConnectionImpl::CreateFunction( polling_policy(*current), __func__); } +StatusOr +FunctionServiceConnectionImpl::CreateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::CreateFunctionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateFunction(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::functions::v2::CreateFunctionRequest const& request) { + return stub_->CreateFunction(context, options, request); + }, + *current, request, __func__); +} + +future> +FunctionServiceConnectionImpl::CreateFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateFunction", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::functions::v2::Function>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::functions::v2::Function>, + polling_policy(*current), __func__); +} + future> FunctionServiceConnectionImpl::UpdateFunction( google::cloud::functions::v2::UpdateFunctionRequest const& request) { @@ -192,6 +245,59 @@ FunctionServiceConnectionImpl::UpdateFunction( polling_policy(*current), __func__); } +StatusOr +FunctionServiceConnectionImpl::UpdateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::UpdateFunctionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateFunction(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::functions::v2::UpdateFunctionRequest const& request) { + return stub_->UpdateFunction(context, options, request); + }, + *current, request, __func__); +} + +future> +FunctionServiceConnectionImpl::UpdateFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateFunction", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::functions::v2::Function>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::functions::v2::Function>, + polling_policy(*current), __func__); +} + future> FunctionServiceConnectionImpl::DeleteFunction( google::cloud::functions::v2::DeleteFunctionRequest const& request) { @@ -231,6 +337,60 @@ FunctionServiceConnectionImpl::DeleteFunction( polling_policy(*current), __func__); } +StatusOr +FunctionServiceConnectionImpl::DeleteFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::DeleteFunctionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteFunction(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::functions::v2::DeleteFunctionRequest const& request) { + return stub_->DeleteFunction(context, options, request); + }, + *current, request, __func__); +} + +future> +FunctionServiceConnectionImpl::DeleteFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteFunction", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::functions::v2::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::functions::v2::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr FunctionServiceConnectionImpl::GenerateUploadUrl( google::cloud::functions::v2::GenerateUploadUrlRequest const& request) { diff --git a/google/cloud/functions/v2/internal/function_connection_impl.h b/google/cloud/functions/v2/internal/function_connection_impl.h index e3c1bce4c6790..11afa3d1cfb69 100644 --- a/google/cloud/functions/v2/internal/function_connection_impl.h +++ b/google/cloud/functions/v2/internal/function_connection_impl.h @@ -62,14 +62,41 @@ class FunctionServiceConnectionImpl google::cloud::functions::v2::CreateFunctionRequest const& request) override; + StatusOr CreateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::CreateFunctionRequest const& request) + override; + + future> CreateFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateFunction( google::cloud::functions::v2::UpdateFunctionRequest const& request) override; + StatusOr UpdateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::UpdateFunctionRequest const& request) + override; + + future> UpdateFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFunction(google::cloud::functions::v2::DeleteFunctionRequest const& request) override; + StatusOr DeleteFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::DeleteFunctionRequest const& request) + override; + + future> + DeleteFunction(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GenerateUploadUrl( google::cloud::functions::v2::GenerateUploadUrlRequest const& request) diff --git a/google/cloud/functions/v2/internal/function_tracing_connection.cc b/google/cloud/functions/v2/internal/function_tracing_connection.cc index 582efe63456af..a5aaf7f991761 100644 --- a/google/cloud/functions/v2/internal/function_tracing_connection.cc +++ b/google/cloud/functions/v2/internal/function_tracing_connection.cc @@ -62,6 +62,30 @@ FunctionServiceTracingConnection::CreateFunction( return internal::EndSpan(std::move(span), child_->CreateFunction(request)); } +StatusOr +FunctionServiceTracingConnection::CreateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::CreateFunctionRequest const& request) { + auto span = internal::MakeSpan( + "functions_v2::FunctionServiceConnection::CreateFunction"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateFunction(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FunctionServiceTracingConnection::CreateFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "functions_v2::FunctionServiceConnection::CreateFunction"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateFunction(google::cloud::ExperimentalTag{}, operation)); +} + future> FunctionServiceTracingConnection::UpdateFunction( google::cloud::functions::v2::UpdateFunctionRequest const& request) { @@ -71,6 +95,30 @@ FunctionServiceTracingConnection::UpdateFunction( return internal::EndSpan(std::move(span), child_->UpdateFunction(request)); } +StatusOr +FunctionServiceTracingConnection::UpdateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::UpdateFunctionRequest const& request) { + auto span = internal::MakeSpan( + "functions_v2::FunctionServiceConnection::UpdateFunction"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateFunction(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FunctionServiceTracingConnection::UpdateFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "functions_v2::FunctionServiceConnection::UpdateFunction"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateFunction(google::cloud::ExperimentalTag{}, operation)); +} + future> FunctionServiceTracingConnection::DeleteFunction( google::cloud::functions::v2::DeleteFunctionRequest const& request) { @@ -80,6 +128,30 @@ FunctionServiceTracingConnection::DeleteFunction( return internal::EndSpan(std::move(span), child_->DeleteFunction(request)); } +StatusOr +FunctionServiceTracingConnection::DeleteFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::DeleteFunctionRequest const& request) { + auto span = internal::MakeSpan( + "functions_v2::FunctionServiceConnection::DeleteFunction"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteFunction(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FunctionServiceTracingConnection::DeleteFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "functions_v2::FunctionServiceConnection::DeleteFunction"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteFunction(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr FunctionServiceTracingConnection::GenerateUploadUrl( google::cloud::functions::v2::GenerateUploadUrlRequest const& request) { diff --git a/google/cloud/functions/v2/internal/function_tracing_connection.h b/google/cloud/functions/v2/internal/function_tracing_connection.h index 4d83e1affc449..534abf94d747a 100644 --- a/google/cloud/functions/v2/internal/function_tracing_connection.h +++ b/google/cloud/functions/v2/internal/function_tracing_connection.h @@ -50,14 +50,41 @@ class FunctionServiceTracingConnection google::cloud::functions::v2::CreateFunctionRequest const& request) override; + StatusOr CreateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::CreateFunctionRequest const& request) + override; + + future> CreateFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateFunction( google::cloud::functions::v2::UpdateFunctionRequest const& request) override; + StatusOr UpdateFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::UpdateFunctionRequest const& request) + override; + + future> UpdateFunction( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFunction(google::cloud::functions::v2::DeleteFunctionRequest const& request) override; + StatusOr DeleteFunction( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::DeleteFunctionRequest const& request) + override; + + future> + DeleteFunction(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GenerateUploadUrl( google::cloud::functions::v2::GenerateUploadUrlRequest const& request) diff --git a/google/cloud/functions/v2/mocks/mock_function_connection.h b/google/cloud/functions/v2/mocks/mock_function_connection.h index 205980439c077..7dfad04cc0fd2 100644 --- a/google/cloud/functions/v2/mocks/mock_function_connection.h +++ b/google/cloud/functions/v2/mocks/mock_function_connection.h @@ -61,17 +61,53 @@ class MockFunctionServiceConnection (google::cloud::functions::v2::CreateFunctionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateFunction, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::CreateFunctionRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateFunction, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateFunction, (google::cloud::functions::v2::UpdateFunctionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateFunction, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::UpdateFunctionRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateFunction, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteFunction, (google::cloud::functions::v2::DeleteFunctionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteFunction, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::functions::v2::DeleteFunctionRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteFunction, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GenerateUploadUrl, diff --git a/google/cloud/gkebackup/v1/backup_for_gke_connection.cc b/google/cloud/gkebackup/v1/backup_for_gke_connection.cc index 1521d288d1ef8..bfd9ea009c9a3 100644 --- a/google/cloud/gkebackup/v1/backup_for_gke_connection.cc +++ b/google/cloud/gkebackup/v1/backup_for_gke_connection.cc @@ -46,6 +46,22 @@ BackupForGKEConnection::CreateBackupPlan( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackupForGKEConnection::CreateBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateBackupPlanRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackupForGKEConnection::CreateBackupPlan( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange BackupForGKEConnection::ListBackupPlans( google::cloud::gkebackup::v1:: @@ -68,6 +84,22 @@ BackupForGKEConnection::UpdateBackupPlan( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackupForGKEConnection::UpdateBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateBackupPlanRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackupForGKEConnection::UpdateBackupPlan( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BackupForGKEConnection::DeleteBackupPlan( google::cloud::gkebackup::v1::DeleteBackupPlanRequest const&) { @@ -76,6 +108,22 @@ BackupForGKEConnection::DeleteBackupPlan( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackupForGKEConnection::DeleteBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteBackupPlanRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackupForGKEConnection::DeleteBackupPlan( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BackupForGKEConnection::CreateBackup( google::cloud::gkebackup::v1::CreateBackupRequest const&) { @@ -84,6 +132,21 @@ BackupForGKEConnection::CreateBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr BackupForGKEConnection::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackupForGKEConnection::CreateBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange BackupForGKEConnection::ListBackups( google::cloud::gkebackup::v1:: @@ -106,6 +169,21 @@ BackupForGKEConnection::UpdateBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr BackupForGKEConnection::UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackupForGKEConnection::UpdateBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BackupForGKEConnection::DeleteBackup( google::cloud::gkebackup::v1::DeleteBackupRequest const&) { @@ -114,6 +192,21 @@ BackupForGKEConnection::DeleteBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr BackupForGKEConnection::DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackupForGKEConnection::DeleteBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange BackupForGKEConnection::ListVolumeBackups( google::cloud::gkebackup::v1:: @@ -136,6 +229,22 @@ BackupForGKEConnection::CreateRestorePlan( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackupForGKEConnection::CreateRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateRestorePlanRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackupForGKEConnection::CreateRestorePlan( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange BackupForGKEConnection::ListRestorePlans( google::cloud::gkebackup::v1:: @@ -158,6 +267,22 @@ BackupForGKEConnection::UpdateRestorePlan( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackupForGKEConnection::UpdateRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateRestorePlanRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackupForGKEConnection::UpdateRestorePlan( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BackupForGKEConnection::DeleteRestorePlan( google::cloud::gkebackup::v1::DeleteRestorePlanRequest const&) { @@ -166,6 +291,22 @@ BackupForGKEConnection::DeleteRestorePlan( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +BackupForGKEConnection::DeleteRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteRestorePlanRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackupForGKEConnection::DeleteRestorePlan( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BackupForGKEConnection::CreateRestore( google::cloud::gkebackup::v1::CreateRestoreRequest const&) { @@ -174,6 +315,21 @@ BackupForGKEConnection::CreateRestore( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr BackupForGKEConnection::CreateRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateRestoreRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackupForGKEConnection::CreateRestore(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange BackupForGKEConnection::ListRestores( google::cloud::gkebackup::v1:: @@ -196,6 +352,21 @@ BackupForGKEConnection::UpdateRestore( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr BackupForGKEConnection::UpdateRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateRestoreRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackupForGKEConnection::UpdateRestore(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> BackupForGKEConnection::DeleteRestore( google::cloud::gkebackup::v1::DeleteRestoreRequest const&) { @@ -204,6 +375,21 @@ BackupForGKEConnection::DeleteRestore( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr BackupForGKEConnection::DeleteRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteRestoreRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +BackupForGKEConnection::DeleteRestore(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange BackupForGKEConnection::ListVolumeRestores( google::cloud::gkebackup::v1:: diff --git a/google/cloud/gkebackup/v1/backup_for_gke_connection.h b/google/cloud/gkebackup/v1/backup_for_gke_connection.h index 12dd117a42582..10f646c204752 100644 --- a/google/cloud/gkebackup/v1/backup_for_gke_connection.h +++ b/google/cloud/gkebackup/v1/backup_for_gke_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/gkebackup/v1/backup_for_gke_connection_idempotency_policy.h" #include "google/cloud/gkebackup/v1/internal/backup_for_gke_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -189,6 +191,14 @@ class BackupForGKEConnection { CreateBackupPlan( google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request); + virtual StatusOr CreateBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request); + + virtual future> + CreateBackupPlan(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListBackupPlans( google::cloud::gkebackup::v1::ListBackupPlansRequest request); @@ -199,13 +209,37 @@ class BackupForGKEConnection { UpdateBackupPlan( google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request); + virtual StatusOr UpdateBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request); + + virtual future> + UpdateBackupPlan(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteBackupPlan( google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request); + virtual StatusOr DeleteBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request); + + virtual future> + DeleteBackupPlan(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateBackup( google::cloud::gkebackup::v1::CreateBackupRequest const& request); + virtual StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateBackupRequest const& request); + + virtual future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListBackups( google::cloud::gkebackup::v1::ListBackupsRequest request); @@ -215,10 +249,26 @@ class BackupForGKEConnection { virtual future> UpdateBackup( google::cloud::gkebackup::v1::UpdateBackupRequest const& request); + virtual StatusOr UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateBackupRequest const& request); + + virtual future> UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteBackup( google::cloud::gkebackup::v1::DeleteBackupRequest const& request); + virtual StatusOr DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteBackupRequest const& request); + + virtual future> + DeleteBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListVolumeBackups( google::cloud::gkebackup::v1::ListVolumeBackupsRequest request); @@ -230,6 +280,14 @@ class BackupForGKEConnection { CreateRestorePlan( google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request); + virtual StatusOr CreateRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request); + + virtual future> + CreateRestorePlan(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListRestorePlans( google::cloud::gkebackup::v1::ListRestorePlansRequest request); @@ -241,13 +299,37 @@ class BackupForGKEConnection { UpdateRestorePlan( google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request); + virtual StatusOr UpdateRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request); + + virtual future> + UpdateRestorePlan(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteRestorePlan( google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request); + virtual StatusOr DeleteRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request); + + virtual future> + DeleteRestorePlan(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateRestore( google::cloud::gkebackup::v1::CreateRestoreRequest const& request); + virtual StatusOr CreateRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateRestoreRequest const& request); + + virtual future> CreateRestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListRestores( google::cloud::gkebackup::v1::ListRestoresRequest request); @@ -257,10 +339,26 @@ class BackupForGKEConnection { virtual future> UpdateRestore( google::cloud::gkebackup::v1::UpdateRestoreRequest const& request); + virtual StatusOr UpdateRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateRestoreRequest const& request); + + virtual future> UpdateRestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteRestore( google::cloud::gkebackup::v1::DeleteRestoreRequest const& request); + virtual StatusOr DeleteRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteRestoreRequest const& request); + + virtual future> + DeleteRestore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListVolumeRestores( google::cloud::gkebackup::v1::ListVolumeRestoresRequest request); diff --git a/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.cc b/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.cc index 1c4470a898e55..d1123f111c840 100644 --- a/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.cc +++ b/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.cc @@ -104,6 +104,60 @@ BackupForGKEConnectionImpl::CreateBackupPlan( polling_policy(*current), __func__); } +StatusOr +BackupForGKEConnectionImpl::CreateBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateBackupPlan(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkebackup::v1::CreateBackupPlanRequest const& + request) { + return stub_->CreateBackupPlan(context, options, request); + }, + *current, request, __func__); +} + +future> +BackupForGKEConnectionImpl::CreateBackupPlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateBackupPlan", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkebackup::v1::BackupPlan>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkebackup::v1::BackupPlan>, + polling_policy(*current), __func__); +} + StreamRange BackupForGKEConnectionImpl::ListBackupPlans( google::cloud::gkebackup::v1::ListBackupPlansRequest request) { @@ -193,6 +247,60 @@ BackupForGKEConnectionImpl::UpdateBackupPlan( polling_policy(*current), __func__); } +StatusOr +BackupForGKEConnectionImpl::UpdateBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateBackupPlan(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& + request) { + return stub_->UpdateBackupPlan(context, options, request); + }, + *current, request, __func__); +} + +future> +BackupForGKEConnectionImpl::UpdateBackupPlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateBackupPlan", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkebackup::v1::BackupPlan>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkebackup::v1::BackupPlan>, + polling_policy(*current), __func__); +} + future> BackupForGKEConnectionImpl::DeleteBackupPlan( google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request) { @@ -233,6 +341,60 @@ BackupForGKEConnectionImpl::DeleteBackupPlan( polling_policy(*current), __func__); } +StatusOr +BackupForGKEConnectionImpl::DeleteBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteBackupPlan(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& + request) { + return stub_->DeleteBackupPlan(context, options, request); + }, + *current, request, __func__); +} + +future> +BackupForGKEConnectionImpl::DeleteBackupPlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteBackupPlan", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkebackup::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::gkebackup::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> BackupForGKEConnectionImpl::CreateBackup( google::cloud::gkebackup::v1::CreateBackupRequest const& request) { @@ -272,6 +434,58 @@ BackupForGKEConnectionImpl::CreateBackup( polling_policy(*current), __func__); } +StatusOr +BackupForGKEConnectionImpl::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkebackup::v1::CreateBackupRequest const& request) { + return stub_->CreateBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +BackupForGKEConnectionImpl::CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkebackup::v1::Backup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkebackup::v1::Backup>, + polling_policy(*current), __func__); +} + StreamRange BackupForGKEConnectionImpl::ListBackups( google::cloud::gkebackup::v1::ListBackupsRequest request) { @@ -359,6 +573,58 @@ BackupForGKEConnectionImpl::UpdateBackup( polling_policy(*current), __func__); } +StatusOr +BackupForGKEConnectionImpl::UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkebackup::v1::UpdateBackupRequest const& request) { + return stub_->UpdateBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +BackupForGKEConnectionImpl::UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkebackup::v1::Backup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkebackup::v1::Backup>, + polling_policy(*current), __func__); +} + future> BackupForGKEConnectionImpl::DeleteBackup( google::cloud::gkebackup::v1::DeleteBackupRequest const& request) { @@ -398,6 +664,59 @@ BackupForGKEConnectionImpl::DeleteBackup( polling_policy(*current), __func__); } +StatusOr +BackupForGKEConnectionImpl::DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkebackup::v1::DeleteBackupRequest const& request) { + return stub_->DeleteBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +BackupForGKEConnectionImpl::DeleteBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkebackup::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::gkebackup::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange BackupForGKEConnectionImpl::ListVolumeBackups( google::cloud::gkebackup::v1::ListVolumeBackupsRequest request) { @@ -487,6 +806,60 @@ BackupForGKEConnectionImpl::CreateRestorePlan( polling_policy(*current), __func__); } +StatusOr +BackupForGKEConnectionImpl::CreateRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateRestorePlan(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkebackup::v1::CreateRestorePlanRequest const& + request) { + return stub_->CreateRestorePlan(context, options, request); + }, + *current, request, __func__); +} + +future> +BackupForGKEConnectionImpl::CreateRestorePlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateRestorePlan", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkebackup::v1::RestorePlan>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkebackup::v1::RestorePlan>, + polling_policy(*current), __func__); +} + StreamRange BackupForGKEConnectionImpl::ListRestorePlans( google::cloud::gkebackup::v1::ListRestorePlansRequest request) { @@ -576,6 +949,60 @@ BackupForGKEConnectionImpl::UpdateRestorePlan( polling_policy(*current), __func__); } +StatusOr +BackupForGKEConnectionImpl::UpdateRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateRestorePlan(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& + request) { + return stub_->UpdateRestorePlan(context, options, request); + }, + *current, request, __func__); +} + +future> +BackupForGKEConnectionImpl::UpdateRestorePlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateRestorePlan", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkebackup::v1::RestorePlan>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkebackup::v1::RestorePlan>, + polling_policy(*current), __func__); +} + future> BackupForGKEConnectionImpl::DeleteRestorePlan( google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request) { @@ -616,6 +1043,60 @@ BackupForGKEConnectionImpl::DeleteRestorePlan( polling_policy(*current), __func__); } +StatusOr +BackupForGKEConnectionImpl::DeleteRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteRestorePlan(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& + request) { + return stub_->DeleteRestorePlan(context, options, request); + }, + *current, request, __func__); +} + +future> +BackupForGKEConnectionImpl::DeleteRestorePlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteRestorePlan", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkebackup::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::gkebackup::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> BackupForGKEConnectionImpl::CreateRestore( google::cloud::gkebackup::v1::CreateRestoreRequest const& request) { @@ -655,6 +1136,59 @@ BackupForGKEConnectionImpl::CreateRestore( polling_policy(*current), __func__); } +StatusOr +BackupForGKEConnectionImpl::CreateRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateRestoreRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateRestore(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::gkebackup::v1::CreateRestoreRequest const& request) { + return stub_->CreateRestore(context, options, request); + }, + *current, request, __func__); +} + +future> +BackupForGKEConnectionImpl::CreateRestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateRestore", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkebackup::v1::Restore>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkebackup::v1::Restore>, + polling_policy(*current), __func__); +} + StreamRange BackupForGKEConnectionImpl::ListRestores( google::cloud::gkebackup::v1::ListRestoresRequest request) { @@ -742,6 +1276,59 @@ BackupForGKEConnectionImpl::UpdateRestore( polling_policy(*current), __func__); } +StatusOr +BackupForGKEConnectionImpl::UpdateRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateRestoreRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateRestore(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::gkebackup::v1::UpdateRestoreRequest const& request) { + return stub_->UpdateRestore(context, options, request); + }, + *current, request, __func__); +} + +future> +BackupForGKEConnectionImpl::UpdateRestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateRestore", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkebackup::v1::Restore>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkebackup::v1::Restore>, + polling_policy(*current), __func__); +} + future> BackupForGKEConnectionImpl::DeleteRestore( google::cloud::gkebackup::v1::DeleteRestoreRequest const& request) { @@ -781,6 +1368,60 @@ BackupForGKEConnectionImpl::DeleteRestore( polling_policy(*current), __func__); } +StatusOr +BackupForGKEConnectionImpl::DeleteRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteRestoreRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteRestore(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::gkebackup::v1::DeleteRestoreRequest const& request) { + return stub_->DeleteRestore(context, options, request); + }, + *current, request, __func__); +} + +future> +BackupForGKEConnectionImpl::DeleteRestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteRestore", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkebackup::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::gkebackup::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange BackupForGKEConnectionImpl::ListVolumeRestores( google::cloud::gkebackup::v1::ListVolumeRestoresRequest request) { diff --git a/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.h b/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.h index c6c9be98dedd2..44702cb0f72b1 100644 --- a/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.h +++ b/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.h @@ -55,6 +55,15 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request) override; + StatusOr CreateBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request) + override; + + future> CreateBackupPlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListBackupPlans( google::cloud::gkebackup::v1::ListBackupPlansRequest request) override; @@ -66,14 +75,41 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request) override; + StatusOr UpdateBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request) + override; + + future> UpdateBackupPlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteBackupPlan(google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request) override; + StatusOr DeleteBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request) + override; + + future> + DeleteBackupPlan(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateBackup( google::cloud::gkebackup::v1::CreateBackupRequest const& request) override; + StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateBackupRequest const& request) + override; + + future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListBackups( google::cloud::gkebackup::v1::ListBackupsRequest request) override; @@ -84,10 +120,28 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { google::cloud::gkebackup::v1::UpdateBackupRequest const& request) override; + StatusOr UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateBackupRequest const& request) + override; + + future> UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteBackup(google::cloud::gkebackup::v1::DeleteBackupRequest const& request) override; + StatusOr DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteBackupRequest const& request) + override; + + future> + DeleteBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListVolumeBackups( google::cloud::gkebackup::v1::ListVolumeBackupsRequest request) override; @@ -99,6 +153,15 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request) override; + StatusOr CreateRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request) + override; + + future> CreateRestorePlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRestorePlans( google::cloud::gkebackup::v1::ListRestorePlansRequest request) override; @@ -110,15 +173,42 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request) override; + StatusOr UpdateRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request) + override; + + future> UpdateRestorePlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteRestorePlan( google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request) override; + StatusOr DeleteRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request) + override; + + future> + DeleteRestorePlan(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateRestore( google::cloud::gkebackup::v1::CreateRestoreRequest const& request) override; + StatusOr CreateRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateRestoreRequest const& request) + override; + + future> CreateRestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRestores( google::cloud::gkebackup::v1::ListRestoresRequest request) override; @@ -129,10 +219,28 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { google::cloud::gkebackup::v1::UpdateRestoreRequest const& request) override; + StatusOr UpdateRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateRestoreRequest const& request) + override; + + future> UpdateRestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteRestore(google::cloud::gkebackup::v1::DeleteRestoreRequest const& request) override; + StatusOr DeleteRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteRestoreRequest const& request) + override; + + future> + DeleteRestore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListVolumeRestores( google::cloud::gkebackup::v1::ListVolumeRestoresRequest request) override; diff --git a/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.cc b/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.cc index 76053900c99fd..1fccc1542d145 100644 --- a/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.cc +++ b/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.cc @@ -42,6 +42,30 @@ BackupForGKETracingConnection::CreateBackupPlan( return internal::EndSpan(std::move(span), child_->CreateBackupPlan(request)); } +StatusOr +BackupForGKETracingConnection::CreateBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request) { + auto span = internal::MakeSpan( + "gkebackup_v1::BackupForGKEConnection::CreateBackupPlan"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateBackupPlan(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackupForGKETracingConnection::CreateBackupPlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkebackup_v1::BackupForGKEConnection::CreateBackupPlan"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateBackupPlan(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange BackupForGKETracingConnection::ListBackupPlans( google::cloud::gkebackup::v1::ListBackupPlansRequest request) { @@ -71,6 +95,30 @@ BackupForGKETracingConnection::UpdateBackupPlan( return internal::EndSpan(std::move(span), child_->UpdateBackupPlan(request)); } +StatusOr +BackupForGKETracingConnection::UpdateBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request) { + auto span = internal::MakeSpan( + "gkebackup_v1::BackupForGKEConnection::UpdateBackupPlan"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateBackupPlan(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackupForGKETracingConnection::UpdateBackupPlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkebackup_v1::BackupForGKEConnection::UpdateBackupPlan"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateBackupPlan(google::cloud::ExperimentalTag{}, operation)); +} + future> BackupForGKETracingConnection::DeleteBackupPlan( google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request) { @@ -80,6 +128,30 @@ BackupForGKETracingConnection::DeleteBackupPlan( return internal::EndSpan(std::move(span), child_->DeleteBackupPlan(request)); } +StatusOr +BackupForGKETracingConnection::DeleteBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request) { + auto span = internal::MakeSpan( + "gkebackup_v1::BackupForGKEConnection::DeleteBackupPlan"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteBackupPlan(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackupForGKETracingConnection::DeleteBackupPlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkebackup_v1::BackupForGKEConnection::DeleteBackupPlan"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteBackupPlan(google::cloud::ExperimentalTag{}, operation)); +} + future> BackupForGKETracingConnection::CreateBackup( google::cloud::gkebackup::v1::CreateBackupRequest const& request) { @@ -89,6 +161,30 @@ BackupForGKETracingConnection::CreateBackup( return internal::EndSpan(std::move(span), child_->CreateBackup(request)); } +StatusOr +BackupForGKETracingConnection::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateBackupRequest const& request) { + auto span = + internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::CreateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackupForGKETracingConnection::CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::CreateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateBackup(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange BackupForGKETracingConnection::ListBackups( google::cloud::gkebackup::v1::ListBackupsRequest request) { @@ -118,6 +214,30 @@ BackupForGKETracingConnection::UpdateBackup( return internal::EndSpan(std::move(span), child_->UpdateBackup(request)); } +StatusOr +BackupForGKETracingConnection::UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateBackupRequest const& request) { + auto span = + internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::UpdateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackupForGKETracingConnection::UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::UpdateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateBackup(google::cloud::ExperimentalTag{}, operation)); +} + future> BackupForGKETracingConnection::DeleteBackup( google::cloud::gkebackup::v1::DeleteBackupRequest const& request) { @@ -127,6 +247,30 @@ BackupForGKETracingConnection::DeleteBackup( return internal::EndSpan(std::move(span), child_->DeleteBackup(request)); } +StatusOr +BackupForGKETracingConnection::DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteBackupRequest const& request) { + auto span = + internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::DeleteBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackupForGKETracingConnection::DeleteBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::DeleteBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteBackup(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange BackupForGKETracingConnection::ListVolumeBackups( google::cloud::gkebackup::v1::ListVolumeBackupsRequest request) { @@ -157,6 +301,30 @@ BackupForGKETracingConnection::CreateRestorePlan( return internal::EndSpan(std::move(span), child_->CreateRestorePlan(request)); } +StatusOr +BackupForGKETracingConnection::CreateRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request) { + auto span = internal::MakeSpan( + "gkebackup_v1::BackupForGKEConnection::CreateRestorePlan"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateRestorePlan(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackupForGKETracingConnection::CreateRestorePlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkebackup_v1::BackupForGKEConnection::CreateRestorePlan"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateRestorePlan(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange BackupForGKETracingConnection::ListRestorePlans( google::cloud::gkebackup::v1::ListRestorePlansRequest request) { @@ -187,6 +355,30 @@ BackupForGKETracingConnection::UpdateRestorePlan( return internal::EndSpan(std::move(span), child_->UpdateRestorePlan(request)); } +StatusOr +BackupForGKETracingConnection::UpdateRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request) { + auto span = internal::MakeSpan( + "gkebackup_v1::BackupForGKEConnection::UpdateRestorePlan"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateRestorePlan(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackupForGKETracingConnection::UpdateRestorePlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkebackup_v1::BackupForGKEConnection::UpdateRestorePlan"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateRestorePlan(google::cloud::ExperimentalTag{}, operation)); +} + future> BackupForGKETracingConnection::DeleteRestorePlan( google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request) { @@ -196,6 +388,30 @@ BackupForGKETracingConnection::DeleteRestorePlan( return internal::EndSpan(std::move(span), child_->DeleteRestorePlan(request)); } +StatusOr +BackupForGKETracingConnection::DeleteRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request) { + auto span = internal::MakeSpan( + "gkebackup_v1::BackupForGKEConnection::DeleteRestorePlan"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteRestorePlan(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackupForGKETracingConnection::DeleteRestorePlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkebackup_v1::BackupForGKEConnection::DeleteRestorePlan"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteRestorePlan(google::cloud::ExperimentalTag{}, operation)); +} + future> BackupForGKETracingConnection::CreateRestore( google::cloud::gkebackup::v1::CreateRestoreRequest const& request) { @@ -205,6 +421,30 @@ BackupForGKETracingConnection::CreateRestore( return internal::EndSpan(std::move(span), child_->CreateRestore(request)); } +StatusOr +BackupForGKETracingConnection::CreateRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateRestoreRequest const& request) { + auto span = + internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::CreateRestore"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateRestore(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackupForGKETracingConnection::CreateRestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::CreateRestore"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateRestore(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange BackupForGKETracingConnection::ListRestores( google::cloud::gkebackup::v1::ListRestoresRequest request) { @@ -234,6 +474,30 @@ BackupForGKETracingConnection::UpdateRestore( return internal::EndSpan(std::move(span), child_->UpdateRestore(request)); } +StatusOr +BackupForGKETracingConnection::UpdateRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateRestoreRequest const& request) { + auto span = + internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::UpdateRestore"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateRestore(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackupForGKETracingConnection::UpdateRestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::UpdateRestore"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateRestore(google::cloud::ExperimentalTag{}, operation)); +} + future> BackupForGKETracingConnection::DeleteRestore( google::cloud::gkebackup::v1::DeleteRestoreRequest const& request) { @@ -243,6 +507,30 @@ BackupForGKETracingConnection::DeleteRestore( return internal::EndSpan(std::move(span), child_->DeleteRestore(request)); } +StatusOr +BackupForGKETracingConnection::DeleteRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteRestoreRequest const& request) { + auto span = + internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::DeleteRestore"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteRestore(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +BackupForGKETracingConnection::DeleteRestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::DeleteRestore"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteRestore(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange BackupForGKETracingConnection::ListVolumeRestores( google::cloud::gkebackup::v1::ListVolumeRestoresRequest request) { diff --git a/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.h b/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.h index 4e4886a4d50b2..432b418e5c1b5 100644 --- a/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.h +++ b/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.h @@ -44,6 +44,15 @@ class BackupForGKETracingConnection google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request) override; + StatusOr CreateBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request) + override; + + future> CreateBackupPlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListBackupPlans( google::cloud::gkebackup::v1::ListBackupPlansRequest request) override; @@ -55,14 +64,41 @@ class BackupForGKETracingConnection google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request) override; + StatusOr UpdateBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request) + override; + + future> UpdateBackupPlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteBackupPlan(google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request) override; + StatusOr DeleteBackupPlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request) + override; + + future> + DeleteBackupPlan(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateBackup( google::cloud::gkebackup::v1::CreateBackupRequest const& request) override; + StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateBackupRequest const& request) + override; + + future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListBackups( google::cloud::gkebackup::v1::ListBackupsRequest request) override; @@ -73,10 +109,28 @@ class BackupForGKETracingConnection google::cloud::gkebackup::v1::UpdateBackupRequest const& request) override; + StatusOr UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateBackupRequest const& request) + override; + + future> UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteBackup(google::cloud::gkebackup::v1::DeleteBackupRequest const& request) override; + StatusOr DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteBackupRequest const& request) + override; + + future> + DeleteBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListVolumeBackups( google::cloud::gkebackup::v1::ListVolumeBackupsRequest request) override; @@ -88,6 +142,15 @@ class BackupForGKETracingConnection google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request) override; + StatusOr CreateRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request) + override; + + future> CreateRestorePlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRestorePlans( google::cloud::gkebackup::v1::ListRestorePlansRequest request) override; @@ -99,15 +162,42 @@ class BackupForGKETracingConnection google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request) override; + StatusOr UpdateRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request) + override; + + future> UpdateRestorePlan( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteRestorePlan( google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request) override; + StatusOr DeleteRestorePlan( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request) + override; + + future> + DeleteRestorePlan(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateRestore( google::cloud::gkebackup::v1::CreateRestoreRequest const& request) override; + StatusOr CreateRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateRestoreRequest const& request) + override; + + future> CreateRestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRestores( google::cloud::gkebackup::v1::ListRestoresRequest request) override; @@ -118,10 +208,28 @@ class BackupForGKETracingConnection google::cloud::gkebackup::v1::UpdateRestoreRequest const& request) override; + StatusOr UpdateRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateRestoreRequest const& request) + override; + + future> UpdateRestore( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteRestore(google::cloud::gkebackup::v1::DeleteRestoreRequest const& request) override; + StatusOr DeleteRestore( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteRestoreRequest const& request) + override; + + future> + DeleteRestore(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListVolumeRestores( google::cloud::gkebackup::v1::ListVolumeRestoresRequest request) override; diff --git a/google/cloud/gkebackup/v1/mocks/mock_backup_for_gke_connection.h b/google/cloud/gkebackup/v1/mocks/mock_backup_for_gke_connection.h index fb26896da5263..d1b86a900def5 100644 --- a/google/cloud/gkebackup/v1/mocks/mock_backup_for_gke_connection.h +++ b/google/cloud/gkebackup/v1/mocks/mock_backup_for_gke_connection.h @@ -52,6 +52,18 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { (google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateBackupPlan, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateBackupPlan, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListBackupPlans, (google::cloud::gkebackup::v1::ListBackupPlansRequest request), @@ -68,17 +80,53 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { (google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateBackupPlan, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateBackupPlan, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteBackupPlan, (google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteBackupPlan, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteBackupPlan, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateBackup, (google::cloud::gkebackup::v1::CreateBackupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListBackups, (google::cloud::gkebackup::v1::ListBackupsRequest request), (override)); @@ -92,12 +140,36 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { (google::cloud::gkebackup::v1::UpdateBackupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteBackup, (google::cloud::gkebackup::v1::DeleteBackupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListVolumeBackups, (google::cloud::gkebackup::v1::ListVolumeBackupsRequest request), @@ -114,6 +186,18 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { (google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateRestorePlan, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateRestorePlan, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRestorePlans, (google::cloud::gkebackup::v1::ListRestorePlansRequest request), @@ -130,17 +214,53 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { (google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateRestorePlan, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateRestorePlan, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteRestorePlan, (google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteRestorePlan, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteRestorePlan, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateRestore, (google::cloud::gkebackup::v1::CreateRestoreRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateRestore, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::CreateRestoreRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateRestore, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRestores, (google::cloud::gkebackup::v1::ListRestoresRequest request), @@ -155,12 +275,36 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { (google::cloud::gkebackup::v1::UpdateRestoreRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateRestore, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::UpdateRestoreRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateRestore, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteRestore, (google::cloud::gkebackup::v1::DeleteRestoreRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteRestore, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkebackup::v1::DeleteRestoreRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteRestore, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListVolumeRestores, (google::cloud::gkebackup::v1::ListVolumeRestoresRequest request), diff --git a/google/cloud/gkehub/v1/gke_hub_connection.cc b/google/cloud/gkehub/v1/gke_hub_connection.cc index d6552ffffaab5..19a96df0074a9 100644 --- a/google/cloud/gkehub/v1/gke_hub_connection.cc +++ b/google/cloud/gkehub/v1/gke_hub_connection.cc @@ -71,6 +71,21 @@ GkeHubConnection::CreateMembership( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr GkeHubConnection::CreateMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::CreateMembershipRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GkeHubConnection::CreateMembership(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> GkeHubConnection::CreateFeature( google::cloud::gkehub::v1::CreateFeatureRequest const&) { @@ -79,6 +94,21 @@ GkeHubConnection::CreateFeature( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr GkeHubConnection::CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::CreateFeatureRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GkeHubConnection::CreateFeature(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> GkeHubConnection::DeleteMembership( google::cloud::gkehub::v1::DeleteMembershipRequest const&) { @@ -87,6 +117,21 @@ GkeHubConnection::DeleteMembership( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr GkeHubConnection::DeleteMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::DeleteMembershipRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GkeHubConnection::DeleteMembership(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> GkeHubConnection::DeleteFeature( google::cloud::gkehub::v1::DeleteFeatureRequest const&) { @@ -95,6 +140,21 @@ GkeHubConnection::DeleteFeature( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr GkeHubConnection::DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::DeleteFeatureRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GkeHubConnection::DeleteFeature(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> GkeHubConnection::UpdateMembership( google::cloud::gkehub::v1::UpdateMembershipRequest const&) { @@ -103,6 +163,21 @@ GkeHubConnection::UpdateMembership( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr GkeHubConnection::UpdateMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::UpdateMembershipRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GkeHubConnection::UpdateMembership(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> GkeHubConnection::UpdateFeature( google::cloud::gkehub::v1::UpdateFeatureRequest const&) { @@ -111,6 +186,21 @@ GkeHubConnection::UpdateFeature( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr GkeHubConnection::UpdateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::UpdateFeatureRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +GkeHubConnection::UpdateFeature(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr GkeHubConnection::GenerateConnectManifest( google::cloud::gkehub::v1::GenerateConnectManifestRequest const&) { diff --git a/google/cloud/gkehub/v1/gke_hub_connection.h b/google/cloud/gkehub/v1/gke_hub_connection.h index 29738885ca544..9ab55a98832a6 100644 --- a/google/cloud/gkehub/v1/gke_hub_connection.h +++ b/google/cloud/gkehub/v1/gke_hub_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/gkehub/v1/gke_hub_connection_idempotency_policy.h" #include "google/cloud/gkehub/v1/internal/gke_hub_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -197,23 +199,71 @@ class GkeHubConnection { CreateMembership( google::cloud::gkehub::v1::CreateMembershipRequest const& request); + virtual StatusOr CreateMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::CreateMembershipRequest const& request); + + virtual future> + CreateMembership(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateFeature( google::cloud::gkehub::v1::CreateFeatureRequest const& request); + virtual StatusOr CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::CreateFeatureRequest const& request); + + virtual future> CreateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteMembership( google::cloud::gkehub::v1::DeleteMembershipRequest const& request); + virtual StatusOr DeleteMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::DeleteMembershipRequest const& request); + + virtual future> + DeleteMembership(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteFeature(google::cloud::gkehub::v1::DeleteFeatureRequest const& request); + virtual StatusOr DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::DeleteFeatureRequest const& request); + + virtual future> + DeleteFeature(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateMembership( google::cloud::gkehub::v1::UpdateMembershipRequest const& request); + virtual StatusOr UpdateMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::UpdateMembershipRequest const& request); + + virtual future> + UpdateMembership(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateFeature( google::cloud::gkehub::v1::UpdateFeatureRequest const& request); + virtual StatusOr UpdateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::UpdateFeatureRequest const& request); + + virtual future> UpdateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GenerateConnectManifest( google::cloud::gkehub::v1::GenerateConnectManifestRequest const& request); diff --git a/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.cc b/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.cc index b5d7837fbf70a..9946b2eb3ede9 100644 --- a/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.cc +++ b/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.cc @@ -196,6 +196,58 @@ GkeHubConnectionImpl::CreateMembership( polling_policy(*current), __func__); } +StatusOr GkeHubConnectionImpl::CreateMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::CreateMembershipRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateMembership(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::gkehub::v1::CreateMembershipRequest const& request) { + return stub_->CreateMembership(context, options, request); + }, + *current, request, __func__); +} + +future> +GkeHubConnectionImpl::CreateMembership( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateMembership", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkehub::v1::Membership>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkehub::v1::Membership>, + polling_policy(*current), __func__); +} + future> GkeHubConnectionImpl::CreateFeature( google::cloud::gkehub::v1::CreateFeatureRequest const& request) { @@ -235,6 +287,57 @@ GkeHubConnectionImpl::CreateFeature( polling_policy(*current), __func__); } +StatusOr GkeHubConnectionImpl::CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::CreateFeatureRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateFeature(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkehub::v1::CreateFeatureRequest const& request) { + return stub_->CreateFeature(context, options, request); + }, + *current, request, __func__); +} + +future> +GkeHubConnectionImpl::CreateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateFeature", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkehub::v1::Feature>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkehub::v1::Feature>, + polling_policy(*current), __func__); +} + future> GkeHubConnectionImpl::DeleteMembership( google::cloud::gkehub::v1::DeleteMembershipRequest const& request) { @@ -274,6 +377,59 @@ GkeHubConnectionImpl::DeleteMembership( polling_policy(*current), __func__); } +StatusOr GkeHubConnectionImpl::DeleteMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::DeleteMembershipRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteMembership(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::gkehub::v1::DeleteMembershipRequest const& request) { + return stub_->DeleteMembership(context, options, request); + }, + *current, request, __func__); +} + +future> +GkeHubConnectionImpl::DeleteMembership( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteMembership", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkehub::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::gkehub::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> GkeHubConnectionImpl::DeleteFeature( google::cloud::gkehub::v1::DeleteFeatureRequest const& request) { @@ -313,6 +469,58 @@ GkeHubConnectionImpl::DeleteFeature( polling_policy(*current), __func__); } +StatusOr GkeHubConnectionImpl::DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::DeleteFeatureRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteFeature(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkehub::v1::DeleteFeatureRequest const& request) { + return stub_->DeleteFeature(context, options, request); + }, + *current, request, __func__); +} + +future> +GkeHubConnectionImpl::DeleteFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteFeature", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkehub::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::gkehub::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> GkeHubConnectionImpl::UpdateMembership( google::cloud::gkehub::v1::UpdateMembershipRequest const& request) { @@ -352,6 +560,58 @@ GkeHubConnectionImpl::UpdateMembership( polling_policy(*current), __func__); } +StatusOr GkeHubConnectionImpl::UpdateMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::UpdateMembershipRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateMembership(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::gkehub::v1::UpdateMembershipRequest const& request) { + return stub_->UpdateMembership(context, options, request); + }, + *current, request, __func__); +} + +future> +GkeHubConnectionImpl::UpdateMembership( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateMembership", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkehub::v1::Membership>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkehub::v1::Membership>, + polling_policy(*current), __func__); +} + future> GkeHubConnectionImpl::UpdateFeature( google::cloud::gkehub::v1::UpdateFeatureRequest const& request) { @@ -391,6 +651,57 @@ GkeHubConnectionImpl::UpdateFeature( polling_policy(*current), __func__); } +StatusOr GkeHubConnectionImpl::UpdateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::UpdateFeatureRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateFeature(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkehub::v1::UpdateFeatureRequest const& request) { + return stub_->UpdateFeature(context, options, request); + }, + *current, request, __func__); +} + +future> +GkeHubConnectionImpl::UpdateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateFeature", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkehub::v1::Feature>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkehub::v1::Feature>, + polling_policy(*current), __func__); +} + StatusOr GkeHubConnectionImpl::GenerateConnectManifest( google::cloud::gkehub::v1::GenerateConnectManifestRequest const& request) { diff --git a/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.h b/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.h index 36f69cbce27f6..17dce9d5f3cea 100644 --- a/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.h +++ b/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.h @@ -66,23 +66,74 @@ class GkeHubConnectionImpl : public gkehub_v1::GkeHubConnection { google::cloud::gkehub::v1::CreateMembershipRequest const& request) override; + StatusOr CreateMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::CreateMembershipRequest const& request) + override; + + future> CreateMembership( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateFeature( google::cloud::gkehub::v1::CreateFeatureRequest const& request) override; + StatusOr CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::CreateFeatureRequest const& request) override; + + future> CreateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteMembership(google::cloud::gkehub::v1::DeleteMembershipRequest const& request) override; + StatusOr DeleteMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::DeleteMembershipRequest const& request) + override; + + future> + DeleteMembership(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFeature( google::cloud::gkehub::v1::DeleteFeatureRequest const& request) override; + StatusOr DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::DeleteFeatureRequest const& request) override; + + future> DeleteFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateMembership( google::cloud::gkehub::v1::UpdateMembershipRequest const& request) override; + StatusOr UpdateMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::UpdateMembershipRequest const& request) + override; + + future> UpdateMembership( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateFeature( google::cloud::gkehub::v1::UpdateFeatureRequest const& request) override; + StatusOr UpdateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::UpdateFeatureRequest const& request) override; + + future> UpdateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GenerateConnectManifest( google::cloud::gkehub::v1::GenerateConnectManifestRequest const& request) diff --git a/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.cc b/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.cc index 28c32e7936ea6..bfc486c514f9e 100644 --- a/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.cc +++ b/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.cc @@ -79,6 +79,30 @@ GkeHubTracingConnection::CreateMembership( return internal::EndSpan(std::move(span), child_->CreateMembership(request)); } +StatusOr +GkeHubTracingConnection::CreateMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::CreateMembershipRequest const& request) { + auto span = + internal::MakeSpan("gkehub_v1::GkeHubConnection::CreateMembership"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateMembership(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GkeHubTracingConnection::CreateMembership( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("gkehub_v1::GkeHubConnection::CreateMembership"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateMembership(google::cloud::ExperimentalTag{}, operation)); +} + future> GkeHubTracingConnection::CreateFeature( google::cloud::gkehub::v1::CreateFeatureRequest const& request) { @@ -87,6 +111,27 @@ GkeHubTracingConnection::CreateFeature( return internal::EndSpan(std::move(span), child_->CreateFeature(request)); } +StatusOr GkeHubTracingConnection::CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::CreateFeatureRequest const& request) { + auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::CreateFeature"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateFeature(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GkeHubTracingConnection::CreateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::CreateFeature"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateFeature(google::cloud::ExperimentalTag{}, operation)); +} + future> GkeHubTracingConnection::DeleteMembership( google::cloud::gkehub::v1::DeleteMembershipRequest const& request) { @@ -96,6 +141,30 @@ GkeHubTracingConnection::DeleteMembership( return internal::EndSpan(std::move(span), child_->DeleteMembership(request)); } +StatusOr +GkeHubTracingConnection::DeleteMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::DeleteMembershipRequest const& request) { + auto span = + internal::MakeSpan("gkehub_v1::GkeHubConnection::DeleteMembership"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteMembership(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GkeHubTracingConnection::DeleteMembership( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("gkehub_v1::GkeHubConnection::DeleteMembership"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteMembership(google::cloud::ExperimentalTag{}, operation)); +} + future> GkeHubTracingConnection::DeleteFeature( google::cloud::gkehub::v1::DeleteFeatureRequest const& request) { @@ -104,6 +173,27 @@ GkeHubTracingConnection::DeleteFeature( return internal::EndSpan(std::move(span), child_->DeleteFeature(request)); } +StatusOr GkeHubTracingConnection::DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::DeleteFeatureRequest const& request) { + auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::DeleteFeature"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteFeature(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GkeHubTracingConnection::DeleteFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::DeleteFeature"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteFeature(google::cloud::ExperimentalTag{}, operation)); +} + future> GkeHubTracingConnection::UpdateMembership( google::cloud::gkehub::v1::UpdateMembershipRequest const& request) { @@ -113,6 +203,30 @@ GkeHubTracingConnection::UpdateMembership( return internal::EndSpan(std::move(span), child_->UpdateMembership(request)); } +StatusOr +GkeHubTracingConnection::UpdateMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::UpdateMembershipRequest const& request) { + auto span = + internal::MakeSpan("gkehub_v1::GkeHubConnection::UpdateMembership"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateMembership(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GkeHubTracingConnection::UpdateMembership( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("gkehub_v1::GkeHubConnection::UpdateMembership"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateMembership(google::cloud::ExperimentalTag{}, operation)); +} + future> GkeHubTracingConnection::UpdateFeature( google::cloud::gkehub::v1::UpdateFeatureRequest const& request) { @@ -121,6 +235,27 @@ GkeHubTracingConnection::UpdateFeature( return internal::EndSpan(std::move(span), child_->UpdateFeature(request)); } +StatusOr GkeHubTracingConnection::UpdateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::UpdateFeatureRequest const& request) { + auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::UpdateFeature"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateFeature(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +GkeHubTracingConnection::UpdateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::UpdateFeature"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateFeature(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr GkeHubTracingConnection::GenerateConnectManifest( google::cloud::gkehub::v1::GenerateConnectManifestRequest const& request) { diff --git a/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.h b/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.h index 44024ba530a0b..9fef83fd3edfc 100644 --- a/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.h +++ b/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.h @@ -55,23 +55,74 @@ class GkeHubTracingConnection : public gkehub_v1::GkeHubConnection { google::cloud::gkehub::v1::CreateMembershipRequest const& request) override; + StatusOr CreateMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::CreateMembershipRequest const& request) + override; + + future> CreateMembership( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateFeature( google::cloud::gkehub::v1::CreateFeatureRequest const& request) override; + StatusOr CreateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::CreateFeatureRequest const& request) override; + + future> CreateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteMembership(google::cloud::gkehub::v1::DeleteMembershipRequest const& request) override; + StatusOr DeleteMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::DeleteMembershipRequest const& request) + override; + + future> + DeleteMembership(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFeature( google::cloud::gkehub::v1::DeleteFeatureRequest const& request) override; + StatusOr DeleteFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::DeleteFeatureRequest const& request) override; + + future> DeleteFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateMembership( google::cloud::gkehub::v1::UpdateMembershipRequest const& request) override; + StatusOr UpdateMembership( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::UpdateMembershipRequest const& request) + override; + + future> UpdateMembership( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateFeature( google::cloud::gkehub::v1::UpdateFeatureRequest const& request) override; + StatusOr UpdateFeature( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::UpdateFeatureRequest const& request) override; + + future> UpdateFeature( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GenerateConnectManifest( google::cloud::gkehub::v1::GenerateConnectManifestRequest const& request) diff --git a/google/cloud/gkehub/v1/mocks/mock_gke_hub_connection.h b/google/cloud/gkehub/v1/mocks/mock_gke_hub_connection.h index 5445965d4c2c1..fe3ae5c4a961e 100644 --- a/google/cloud/gkehub/v1/mocks/mock_gke_hub_connection.h +++ b/google/cloud/gkehub/v1/mocks/mock_gke_hub_connection.h @@ -68,32 +68,101 @@ class MockGkeHubConnection : public gkehub_v1::GkeHubConnection { (google::cloud::gkehub::v1::CreateMembershipRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateMembership, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::CreateMembershipRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateMembership, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, CreateFeature, (google::cloud::gkehub::v1::CreateFeatureRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateFeature, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::CreateFeatureRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateFeature, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteMembership, (google::cloud::gkehub::v1::DeleteMembershipRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteMembership, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::DeleteMembershipRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteMembership, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteFeature, (google::cloud::gkehub::v1::DeleteFeatureRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteFeature, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::DeleteFeatureRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteFeature, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateMembership, (google::cloud::gkehub::v1::UpdateMembershipRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateMembership, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::UpdateMembershipRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateMembership, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateFeature, (google::cloud::gkehub::v1::UpdateFeatureRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateFeature, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkehub::v1::UpdateFeatureRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateFeature, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GenerateConnectManifest, diff --git a/google/cloud/gkemulticloud/v1/attached_clusters_connection.cc b/google/cloud/gkemulticloud/v1/attached_clusters_connection.cc index 2d4a057b5898b..2e0b8bd444380 100644 --- a/google/cloud/gkemulticloud/v1/attached_clusters_connection.cc +++ b/google/cloud/gkemulticloud/v1/attached_clusters_connection.cc @@ -46,6 +46,22 @@ AttachedClustersConnection::CreateAttachedCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AttachedClustersConnection::CreateAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AttachedClustersConnection::CreateAttachedCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AttachedClustersConnection::UpdateAttachedCluster( google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const&) { @@ -54,6 +70,22 @@ AttachedClustersConnection::UpdateAttachedCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AttachedClustersConnection::UpdateAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AttachedClustersConnection::UpdateAttachedCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AttachedClustersConnection::ImportAttachedCluster( google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const&) { @@ -62,6 +94,22 @@ AttachedClustersConnection::ImportAttachedCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AttachedClustersConnection::ImportAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AttachedClustersConnection::ImportAttachedCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AttachedClustersConnection::GetAttachedCluster( google::cloud::gkemulticloud::v1::GetAttachedClusterRequest const&) { @@ -84,6 +132,22 @@ AttachedClustersConnection::DeleteAttachedCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AttachedClustersConnection::DeleteAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AttachedClustersConnection::DeleteAttachedCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AttachedClustersConnection::GetAttachedServerConfig( google::cloud::gkemulticloud::v1::GetAttachedServerConfigRequest const&) { diff --git a/google/cloud/gkemulticloud/v1/attached_clusters_connection.h b/google/cloud/gkemulticloud/v1/attached_clusters_connection.h index caf5cd64ca83f..cee3e4b1a529f 100644 --- a/google/cloud/gkemulticloud/v1/attached_clusters_connection.h +++ b/google/cloud/gkemulticloud/v1/attached_clusters_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/gkemulticloud/v1/attached_clusters_connection_idempotency_policy.h" #include "google/cloud/gkemulticloud/v1/internal/attached_clusters_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -192,16 +194,43 @@ class AttachedClustersConnection { google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& request); + virtual StatusOr CreateAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& + request); + + virtual future> + CreateAttachedCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateAttachedCluster( google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& request); + virtual StatusOr UpdateAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& + request); + + virtual future> + UpdateAttachedCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ImportAttachedCluster( google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& request); + virtual StatusOr ImportAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& + request); + + virtual future> + ImportAttachedCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetAttachedCluster( google::cloud::gkemulticloud::v1::GetAttachedClusterRequest const& @@ -216,6 +245,15 @@ class AttachedClustersConnection { google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& request); + virtual StatusOr DeleteAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& + request); + + virtual future> + DeleteAttachedCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetAttachedServerConfig( google::cloud::gkemulticloud::v1::GetAttachedServerConfigRequest const& diff --git a/google/cloud/gkemulticloud/v1/aws_clusters_connection.cc b/google/cloud/gkemulticloud/v1/aws_clusters_connection.cc index 3b2e8fc8b6a46..6f8783c32ca00 100644 --- a/google/cloud/gkemulticloud/v1/aws_clusters_connection.cc +++ b/google/cloud/gkemulticloud/v1/aws_clusters_connection.cc @@ -46,6 +46,22 @@ AwsClustersConnection::CreateAwsCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AwsClustersConnection::CreateAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AwsClustersConnection::CreateAwsCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AwsClustersConnection::UpdateAwsCluster( google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const&) { @@ -54,6 +70,22 @@ AwsClustersConnection::UpdateAwsCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AwsClustersConnection::UpdateAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AwsClustersConnection::UpdateAwsCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AwsClustersConnection::GetAwsCluster( google::cloud::gkemulticloud::v1::GetAwsClusterRequest const&) { @@ -76,6 +108,22 @@ AwsClustersConnection::DeleteAwsCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AwsClustersConnection::DeleteAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AwsClustersConnection::DeleteAwsCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AwsClustersConnection::GenerateAwsClusterAgentToken( google::cloud::gkemulticloud::v1:: @@ -97,9 +145,41 @@ AwsClustersConnection::CreateAwsNodePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AwsClustersConnection::CreateAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +AwsClustersConnection::CreateAwsNodePool( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AwsClustersConnection::UpdateAwsNodePool( + google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr AwsClustersConnection::UpdateAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AwsClustersConnection::UpdateAwsNodePool( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -113,6 +193,22 @@ AwsClustersConnection::RollbackAwsNodePoolUpdate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AwsClustersConnection::RollbackAwsNodePoolUpdate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AwsClustersConnection::RollbackAwsNodePoolUpdate( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AwsClustersConnection::GetAwsNodePool( google::cloud::gkemulticloud::v1::GetAwsNodePoolRequest const&) { @@ -135,6 +231,22 @@ AwsClustersConnection::DeleteAwsNodePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AwsClustersConnection::DeleteAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AwsClustersConnection::DeleteAwsNodePool( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AwsClustersConnection::GetAwsOpenIdConfig( google::cloud::gkemulticloud::v1::GetAwsOpenIdConfigRequest const&) { diff --git a/google/cloud/gkemulticloud/v1/aws_clusters_connection.h b/google/cloud/gkemulticloud/v1/aws_clusters_connection.h index bc253f177a72d..6281d2d1cf20c 100644 --- a/google/cloud/gkemulticloud/v1/aws_clusters_connection.h +++ b/google/cloud/gkemulticloud/v1/aws_clusters_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/gkemulticloud/v1/aws_clusters_connection_idempotency_policy.h" #include "google/cloud/gkemulticloud/v1/internal/aws_clusters_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -189,10 +191,26 @@ class AwsClustersConnection { CreateAwsCluster( google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request); + virtual StatusOr CreateAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request); + + virtual future> + CreateAwsCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateAwsCluster( google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request); + virtual StatusOr UpdateAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request); + + virtual future> + UpdateAwsCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetAwsCluster( google::cloud::gkemulticloud::v1::GetAwsClusterRequest const& request); @@ -204,6 +222,14 @@ class AwsClustersConnection { DeleteAwsCluster( google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request); + virtual StatusOr DeleteAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request); + + virtual future> + DeleteAwsCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::cloud::gkemulticloud::v1::GenerateAwsClusterAgentTokenResponse> GenerateAwsClusterAgentToken( @@ -221,16 +247,43 @@ class AwsClustersConnection { google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& request); + virtual StatusOr CreateAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& + request); + + virtual future> + CreateAwsNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateAwsNodePool( google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request); + virtual StatusOr UpdateAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& + request); + + virtual future> + UpdateAwsNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RollbackAwsNodePoolUpdate( google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& request); + virtual StatusOr RollbackAwsNodePoolUpdate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& + request); + + virtual future> + RollbackAwsNodePoolUpdate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetAwsNodePool( google::cloud::gkemulticloud::v1::GetAwsNodePoolRequest const& request); @@ -244,6 +297,15 @@ class AwsClustersConnection { google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& request); + virtual StatusOr DeleteAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& + request); + + virtual future> + DeleteAwsNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetAwsOpenIdConfig( google::cloud::gkemulticloud::v1::GetAwsOpenIdConfigRequest const& diff --git a/google/cloud/gkemulticloud/v1/azure_clusters_connection.cc b/google/cloud/gkemulticloud/v1/azure_clusters_connection.cc index 3d1450675655f..e320df59d53ec 100644 --- a/google/cloud/gkemulticloud/v1/azure_clusters_connection.cc +++ b/google/cloud/gkemulticloud/v1/azure_clusters_connection.cc @@ -46,6 +46,22 @@ AzureClustersConnection::CreateAzureClient( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AzureClustersConnection::CreateAzureClient( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureClientRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AzureClustersConnection::CreateAzureClient( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AzureClustersConnection::GetAzureClient( google::cloud::gkemulticloud::v1::GetAzureClientRequest const&) { @@ -68,6 +84,22 @@ AzureClustersConnection::DeleteAzureClient( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AzureClustersConnection::DeleteAzureClient( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AzureClustersConnection::DeleteAzureClient( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AzureClustersConnection::CreateAzureCluster( google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const&) { @@ -76,6 +108,22 @@ AzureClustersConnection::CreateAzureCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AzureClustersConnection::CreateAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AzureClustersConnection::CreateAzureCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AzureClustersConnection::UpdateAzureCluster( google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const&) { @@ -84,6 +132,22 @@ AzureClustersConnection::UpdateAzureCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AzureClustersConnection::UpdateAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AzureClustersConnection::UpdateAzureCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AzureClustersConnection::GetAzureCluster( google::cloud::gkemulticloud::v1::GetAzureClusterRequest const&) { @@ -106,6 +170,22 @@ AzureClustersConnection::DeleteAzureCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AzureClustersConnection::DeleteAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AzureClustersConnection::DeleteAzureCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr< google::cloud::gkemulticloud::v1::GenerateAzureClusterAgentTokenResponse> AzureClustersConnection::GenerateAzureClusterAgentToken( @@ -128,6 +208,22 @@ AzureClustersConnection::CreateAzureNodePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AzureClustersConnection::CreateAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AzureClustersConnection::CreateAzureNodePool( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> AzureClustersConnection::UpdateAzureNodePool( google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const&) { @@ -136,6 +232,22 @@ AzureClustersConnection::UpdateAzureNodePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AzureClustersConnection::UpdateAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AzureClustersConnection::UpdateAzureNodePool( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AzureClustersConnection::GetAzureNodePool( google::cloud::gkemulticloud::v1::GetAzureNodePoolRequest const&) { @@ -158,6 +270,22 @@ AzureClustersConnection::DeleteAzureNodePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AzureClustersConnection::DeleteAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AzureClustersConnection::DeleteAzureNodePool( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AzureClustersConnection::GetAzureOpenIdConfig( google::cloud::gkemulticloud::v1::GetAzureOpenIdConfigRequest const&) { diff --git a/google/cloud/gkemulticloud/v1/azure_clusters_connection.h b/google/cloud/gkemulticloud/v1/azure_clusters_connection.h index cbeaef0411d41..f9eb7e1a3b660 100644 --- a/google/cloud/gkemulticloud/v1/azure_clusters_connection.h +++ b/google/cloud/gkemulticloud/v1/azure_clusters_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/gkemulticloud/v1/azure_clusters_connection_idempotency_policy.h" #include "google/cloud/gkemulticloud/v1/internal/azure_clusters_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -191,6 +193,15 @@ class AzureClustersConnection { google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& request); + virtual StatusOr CreateAzureClient( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& + request); + + virtual future> + CreateAzureClient(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetAzureClient( google::cloud::gkemulticloud::v1::GetAzureClientRequest const& request); @@ -204,16 +215,43 @@ class AzureClustersConnection { google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& request); + virtual StatusOr DeleteAzureClient( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& + request); + + virtual future> + DeleteAzureClient(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateAzureCluster( google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& request); + virtual StatusOr CreateAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& + request); + + virtual future> + CreateAzureCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateAzureCluster( google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& request); + virtual StatusOr UpdateAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& + request); + + virtual future> + UpdateAzureCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetAzureCluster( google::cloud::gkemulticloud::v1::GetAzureClusterRequest const& request); @@ -227,6 +265,15 @@ class AzureClustersConnection { google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& request); + virtual StatusOr DeleteAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& + request); + + virtual future> + DeleteAzureCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::cloud::gkemulticloud::v1::GenerateAzureClusterAgentTokenResponse> GenerateAzureClusterAgentToken( @@ -244,11 +291,29 @@ class AzureClustersConnection { google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& request); + virtual StatusOr CreateAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& + request); + + virtual future> + CreateAzureNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateAzureNodePool( google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& request); + virtual StatusOr UpdateAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& + request); + + virtual future> + UpdateAzureNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetAzureNodePool( google::cloud::gkemulticloud::v1::GetAzureNodePoolRequest const& request); @@ -262,6 +327,15 @@ class AzureClustersConnection { google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& request); + virtual StatusOr DeleteAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& + request); + + virtual future> + DeleteAzureNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetAzureOpenIdConfig( google::cloud::gkemulticloud::v1::GetAzureOpenIdConfigRequest const& diff --git a/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.cc b/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.cc index 1fd96035b9491..d91a4a02a0e5c 100644 --- a/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.cc +++ b/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.cc @@ -109,6 +109,63 @@ AttachedClustersConnectionImpl::CreateAttachedCluster( polling_policy(*current), __func__); } +StatusOr +AttachedClustersConnectionImpl::CreateAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAttachedCluster(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& + request) { + return stub_->CreateAttachedCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +AttachedClustersConnectionImpl::CreateAttachedCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAttachedCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::AttachedCluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkemulticloud::v1::AttachedCluster>, + polling_policy(*current), __func__); +} + future> AttachedClustersConnectionImpl::UpdateAttachedCluster( google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& @@ -150,6 +207,63 @@ AttachedClustersConnectionImpl::UpdateAttachedCluster( polling_policy(*current), __func__); } +StatusOr +AttachedClustersConnectionImpl::UpdateAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAttachedCluster(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& + request) { + return stub_->UpdateAttachedCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +AttachedClustersConnectionImpl::UpdateAttachedCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateAttachedCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::AttachedCluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkemulticloud::v1::AttachedCluster>, + polling_policy(*current), __func__); +} + future> AttachedClustersConnectionImpl::ImportAttachedCluster( google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& @@ -191,6 +305,63 @@ AttachedClustersConnectionImpl::ImportAttachedCluster( polling_policy(*current), __func__); } +StatusOr +AttachedClustersConnectionImpl::ImportAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportAttachedCluster(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& + request) { + return stub_->ImportAttachedCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +AttachedClustersConnectionImpl::ImportAttachedCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportAttachedCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::AttachedCluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkemulticloud::v1::AttachedCluster>, + polling_policy(*current), __func__); +} + StatusOr AttachedClustersConnectionImpl::GetAttachedCluster( google::cloud::gkemulticloud::v1::GetAttachedClusterRequest const& @@ -284,6 +455,63 @@ AttachedClustersConnectionImpl::DeleteAttachedCluster( polling_policy(*current), __func__); } +StatusOr +AttachedClustersConnectionImpl::DeleteAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAttachedCluster(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& + request) { + return stub_->DeleteAttachedCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +AttachedClustersConnectionImpl::DeleteAttachedCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteAttachedCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::gkemulticloud::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr AttachedClustersConnectionImpl::GetAttachedServerConfig( google::cloud::gkemulticloud::v1::GetAttachedServerConfigRequest const& diff --git a/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.h b/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.h index 6f146c7dc2938..e9df2a3b2fd1f 100644 --- a/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.h +++ b/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.h @@ -57,16 +57,46 @@ class AttachedClustersConnectionImpl google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& request) override; + StatusOr CreateAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& + request) override; + + future> + CreateAttachedCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAttachedCluster( google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& request) override; + StatusOr UpdateAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& + request) override; + + future> + UpdateAttachedCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportAttachedCluster( google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& request) override; + StatusOr ImportAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& + request) override; + + future> + ImportAttachedCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAttachedCluster( google::cloud::gkemulticloud::v1::GetAttachedClusterRequest const& @@ -82,6 +112,16 @@ class AttachedClustersConnectionImpl google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& request) override; + StatusOr DeleteAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& + request) override; + + future> + DeleteAttachedCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAttachedServerConfig( google::cloud::gkemulticloud::v1::GetAttachedServerConfigRequest const& diff --git a/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.cc b/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.cc index 12540664acf0e..4b4705086bf3d 100644 --- a/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.cc +++ b/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.cc @@ -44,6 +44,31 @@ AttachedClustersTracingConnection::CreateAttachedCluster( child_->CreateAttachedCluster(request)); } +StatusOr +AttachedClustersTracingConnection::CreateAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& + request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AttachedClustersConnection::CreateAttachedCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateAttachedCluster( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AttachedClustersTracingConnection::CreateAttachedCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AttachedClustersConnection::CreateAttachedCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateAttachedCluster( + google::cloud::ExperimentalTag{}, operation)); +} + future> AttachedClustersTracingConnection::UpdateAttachedCluster( google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& @@ -55,6 +80,31 @@ AttachedClustersTracingConnection::UpdateAttachedCluster( child_->UpdateAttachedCluster(request)); } +StatusOr +AttachedClustersTracingConnection::UpdateAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& + request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AttachedClustersConnection::UpdateAttachedCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateAttachedCluster( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AttachedClustersTracingConnection::UpdateAttachedCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AttachedClustersConnection::UpdateAttachedCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateAttachedCluster( + google::cloud::ExperimentalTag{}, operation)); +} + future> AttachedClustersTracingConnection::ImportAttachedCluster( google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& @@ -66,6 +116,31 @@ AttachedClustersTracingConnection::ImportAttachedCluster( child_->ImportAttachedCluster(request)); } +StatusOr +AttachedClustersTracingConnection::ImportAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& + request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AttachedClustersConnection::ImportAttachedCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ImportAttachedCluster( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AttachedClustersTracingConnection::ImportAttachedCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AttachedClustersConnection::ImportAttachedCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ImportAttachedCluster( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AttachedClustersTracingConnection::GetAttachedCluster( google::cloud::gkemulticloud::v1::GetAttachedClusterRequest const& @@ -99,6 +174,31 @@ AttachedClustersTracingConnection::DeleteAttachedCluster( child_->DeleteAttachedCluster(request)); } +StatusOr +AttachedClustersTracingConnection::DeleteAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& + request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AttachedClustersConnection::DeleteAttachedCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteAttachedCluster( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AttachedClustersTracingConnection::DeleteAttachedCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AttachedClustersConnection::DeleteAttachedCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteAttachedCluster( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AttachedClustersTracingConnection::GetAttachedServerConfig( google::cloud::gkemulticloud::v1::GetAttachedServerConfigRequest const& diff --git a/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.h b/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.h index 287b1329000ba..872be4d4b31e9 100644 --- a/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.h +++ b/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.h @@ -45,16 +45,46 @@ class AttachedClustersTracingConnection google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& request) override; + StatusOr CreateAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& + request) override; + + future> + CreateAttachedCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAttachedCluster( google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& request) override; + StatusOr UpdateAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& + request) override; + + future> + UpdateAttachedCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportAttachedCluster( google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& request) override; + StatusOr ImportAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& + request) override; + + future> + ImportAttachedCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAttachedCluster( google::cloud::gkemulticloud::v1::GetAttachedClusterRequest const& @@ -70,6 +100,16 @@ class AttachedClustersTracingConnection google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& request) override; + StatusOr DeleteAttachedCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& + request) override; + + future> + DeleteAttachedCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAttachedServerConfig( google::cloud::gkemulticloud::v1::GetAttachedServerConfigRequest const& diff --git a/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.cc b/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.cc index 28032409339be..30afac4173216 100644 --- a/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.cc +++ b/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.cc @@ -106,6 +106,61 @@ AwsClustersConnectionImpl::CreateAwsCluster( polling_policy(*current), __func__); } +StatusOr +AwsClustersConnectionImpl::CreateAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAwsCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& + request) { + return stub_->CreateAwsCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +AwsClustersConnectionImpl::CreateAwsCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAwsCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::AwsCluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkemulticloud::v1::AwsCluster>, + polling_policy(*current), __func__); +} + future> AwsClustersConnectionImpl::UpdateAwsCluster( google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request) { @@ -146,6 +201,61 @@ AwsClustersConnectionImpl::UpdateAwsCluster( polling_policy(*current), __func__); } +StatusOr +AwsClustersConnectionImpl::UpdateAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAwsCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& + request) { + return stub_->UpdateAwsCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +AwsClustersConnectionImpl::UpdateAwsCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateAwsCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::AwsCluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkemulticloud::v1::AwsCluster>, + polling_policy(*current), __func__); +} + StatusOr AwsClustersConnectionImpl::GetAwsCluster( google::cloud::gkemulticloud::v1::GetAwsClusterRequest const& request) { @@ -236,6 +346,61 @@ AwsClustersConnectionImpl::DeleteAwsCluster( polling_policy(*current), __func__); } +StatusOr +AwsClustersConnectionImpl::DeleteAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAwsCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& + request) { + return stub_->DeleteAwsCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +AwsClustersConnectionImpl::DeleteAwsCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteAwsCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::gkemulticloud::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr AwsClustersConnectionImpl::GenerateAwsClusterAgentToken( google::cloud::gkemulticloud::v1::GenerateAwsClusterAgentTokenRequest const& @@ -309,6 +474,61 @@ AwsClustersConnectionImpl::CreateAwsNodePool( polling_policy(*current), __func__); } +StatusOr +AwsClustersConnectionImpl::CreateAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAwsNodePool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& + request) { + return stub_->CreateAwsNodePool(context, options, request); + }, + *current, request, __func__); +} + +future> +AwsClustersConnectionImpl::CreateAwsNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAwsNodePool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::AwsNodePool>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkemulticloud::v1::AwsNodePool>, + polling_policy(*current), __func__); +} + future> AwsClustersConnectionImpl::UpdateAwsNodePool( google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request) { @@ -349,6 +569,61 @@ AwsClustersConnectionImpl::UpdateAwsNodePool( polling_policy(*current), __func__); } +StatusOr +AwsClustersConnectionImpl::UpdateAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAwsNodePool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& + request) { + return stub_->UpdateAwsNodePool(context, options, request); + }, + *current, request, __func__); +} + +future> +AwsClustersConnectionImpl::UpdateAwsNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateAwsNodePool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::AwsNodePool>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkemulticloud::v1::AwsNodePool>, + polling_policy(*current), __func__); +} + future> AwsClustersConnectionImpl::RollbackAwsNodePoolUpdate( google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& @@ -389,6 +664,62 @@ AwsClustersConnectionImpl::RollbackAwsNodePoolUpdate( polling_policy(*current), __func__); } +StatusOr +AwsClustersConnectionImpl::RollbackAwsNodePoolUpdate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RollbackAwsNodePoolUpdate(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1:: + RollbackAwsNodePoolUpdateRequest const& request) { + return stub_->RollbackAwsNodePoolUpdate(context, options, request); + }, + *current, request, __func__); +} + +future> +AwsClustersConnectionImpl::RollbackAwsNodePoolUpdate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RollbackAwsNodePoolUpdate", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::AwsNodePool>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkemulticloud::v1::AwsNodePool>, + polling_policy(*current), __func__); +} + StatusOr AwsClustersConnectionImpl::GetAwsNodePool( google::cloud::gkemulticloud::v1::GetAwsNodePoolRequest const& request) { @@ -479,6 +810,61 @@ AwsClustersConnectionImpl::DeleteAwsNodePool( polling_policy(*current), __func__); } +StatusOr +AwsClustersConnectionImpl::DeleteAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAwsNodePool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& + request) { + return stub_->DeleteAwsNodePool(context, options, request); + }, + *current, request, __func__); +} + +future> +AwsClustersConnectionImpl::DeleteAwsNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteAwsNodePool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::gkemulticloud::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr AwsClustersConnectionImpl::GetAwsOpenIdConfig( google::cloud::gkemulticloud::v1::GetAwsOpenIdConfigRequest const& diff --git a/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.h b/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.h index fd99f06b4a810..cda0693726e78 100644 --- a/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.h +++ b/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.h @@ -57,11 +57,29 @@ class AwsClustersConnectionImpl google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request) override; + StatusOr CreateAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request) + override; + + future> + CreateAwsCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAwsCluster( google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request) override; + StatusOr UpdateAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request) + override; + + future> + UpdateAwsCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAwsCluster( google::cloud::gkemulticloud::v1::GetAwsClusterRequest const& request) override; @@ -75,6 +93,15 @@ class AwsClustersConnectionImpl google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request) override; + StatusOr DeleteAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request) + override; + + future> + DeleteAwsCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr< google::cloud::gkemulticloud::v1::GenerateAwsClusterAgentTokenResponse> GenerateAwsClusterAgentToken( @@ -91,16 +118,44 @@ class AwsClustersConnectionImpl google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& request) override; + StatusOr CreateAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& request) + override; + + future> + CreateAwsNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAwsNodePool( google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request) override; + StatusOr UpdateAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request) + override; + + future> + UpdateAwsNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RollbackAwsNodePoolUpdate( google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& request) override; + StatusOr RollbackAwsNodePoolUpdate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& + request) override; + + future> + RollbackAwsNodePoolUpdate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAwsNodePool( google::cloud::gkemulticloud::v1::GetAwsNodePoolRequest const& request) override; @@ -114,6 +169,15 @@ class AwsClustersConnectionImpl google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& request) override; + StatusOr DeleteAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& request) + override; + + future> + DeleteAwsNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAwsOpenIdConfig( google::cloud::gkemulticloud::v1::GetAwsOpenIdConfigRequest const& diff --git a/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.cc b/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.cc index 70c1cdc4a3fb5..f216a1031c758 100644 --- a/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.cc +++ b/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.cc @@ -42,6 +42,30 @@ AwsClustersTracingConnection::CreateAwsCluster( return internal::EndSpan(std::move(span), child_->CreateAwsCluster(request)); } +StatusOr +AwsClustersTracingConnection::CreateAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AwsClustersConnection::CreateAwsCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateAwsCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AwsClustersTracingConnection::CreateAwsCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AwsClustersConnection::CreateAwsCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateAwsCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> AwsClustersTracingConnection::UpdateAwsCluster( google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request) { @@ -51,6 +75,30 @@ AwsClustersTracingConnection::UpdateAwsCluster( return internal::EndSpan(std::move(span), child_->UpdateAwsCluster(request)); } +StatusOr +AwsClustersTracingConnection::UpdateAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AwsClustersConnection::UpdateAwsCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateAwsCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AwsClustersTracingConnection::UpdateAwsCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AwsClustersConnection::UpdateAwsCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateAwsCluster(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AwsClustersTracingConnection::GetAwsCluster( google::cloud::gkemulticloud::v1::GetAwsClusterRequest const& request) { @@ -81,6 +129,30 @@ AwsClustersTracingConnection::DeleteAwsCluster( return internal::EndSpan(std::move(span), child_->DeleteAwsCluster(request)); } +StatusOr +AwsClustersTracingConnection::DeleteAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AwsClustersConnection::DeleteAwsCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAwsCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AwsClustersTracingConnection::DeleteAwsCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AwsClustersConnection::DeleteAwsCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAwsCluster(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AwsClustersTracingConnection::GenerateAwsClusterAgentToken( google::cloud::gkemulticloud::v1::GenerateAwsClusterAgentTokenRequest const& @@ -111,6 +183,30 @@ AwsClustersTracingConnection::CreateAwsNodePool( return internal::EndSpan(std::move(span), child_->CreateAwsNodePool(request)); } +StatusOr +AwsClustersTracingConnection::CreateAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AwsClustersConnection::CreateAwsNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateAwsNodePool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AwsClustersTracingConnection::CreateAwsNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AwsClustersConnection::CreateAwsNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateAwsNodePool(google::cloud::ExperimentalTag{}, operation)); +} + future> AwsClustersTracingConnection::UpdateAwsNodePool( google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request) { @@ -120,6 +216,30 @@ AwsClustersTracingConnection::UpdateAwsNodePool( return internal::EndSpan(std::move(span), child_->UpdateAwsNodePool(request)); } +StatusOr +AwsClustersTracingConnection::UpdateAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AwsClustersConnection::UpdateAwsNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateAwsNodePool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AwsClustersTracingConnection::UpdateAwsNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AwsClustersConnection::UpdateAwsNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateAwsNodePool(google::cloud::ExperimentalTag{}, operation)); +} + future> AwsClustersTracingConnection::RollbackAwsNodePoolUpdate( google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& @@ -131,6 +251,31 @@ AwsClustersTracingConnection::RollbackAwsNodePoolUpdate( child_->RollbackAwsNodePoolUpdate(request)); } +StatusOr +AwsClustersTracingConnection::RollbackAwsNodePoolUpdate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& + request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AwsClustersConnection::RollbackAwsNodePoolUpdate"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RollbackAwsNodePoolUpdate( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AwsClustersTracingConnection::RollbackAwsNodePoolUpdate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AwsClustersConnection::RollbackAwsNodePoolUpdate"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RollbackAwsNodePoolUpdate( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AwsClustersTracingConnection::GetAwsNodePool( google::cloud::gkemulticloud::v1::GetAwsNodePoolRequest const& request) { @@ -161,6 +306,30 @@ AwsClustersTracingConnection::DeleteAwsNodePool( return internal::EndSpan(std::move(span), child_->DeleteAwsNodePool(request)); } +StatusOr +AwsClustersTracingConnection::DeleteAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AwsClustersConnection::DeleteAwsNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAwsNodePool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AwsClustersTracingConnection::DeleteAwsNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AwsClustersConnection::DeleteAwsNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAwsNodePool(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AwsClustersTracingConnection::GetAwsOpenIdConfig( google::cloud::gkemulticloud::v1::GetAwsOpenIdConfigRequest const& diff --git a/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.h b/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.h index ddcd7c0873c1d..7a884d9ad6afa 100644 --- a/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.h +++ b/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.h @@ -45,11 +45,29 @@ class AwsClustersTracingConnection google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request) override; + StatusOr CreateAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request) + override; + + future> + CreateAwsCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAwsCluster( google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request) override; + StatusOr UpdateAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request) + override; + + future> + UpdateAwsCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAwsCluster( google::cloud::gkemulticloud::v1::GetAwsClusterRequest const& request) override; @@ -63,6 +81,15 @@ class AwsClustersTracingConnection google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request) override; + StatusOr DeleteAwsCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request) + override; + + future> + DeleteAwsCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr< google::cloud::gkemulticloud::v1::GenerateAwsClusterAgentTokenResponse> GenerateAwsClusterAgentToken( @@ -79,16 +106,44 @@ class AwsClustersTracingConnection google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& request) override; + StatusOr CreateAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& request) + override; + + future> + CreateAwsNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAwsNodePool( google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request) override; + StatusOr UpdateAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request) + override; + + future> + UpdateAwsNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RollbackAwsNodePoolUpdate( google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& request) override; + StatusOr RollbackAwsNodePoolUpdate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& + request) override; + + future> + RollbackAwsNodePoolUpdate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAwsNodePool( google::cloud::gkemulticloud::v1::GetAwsNodePoolRequest const& request) override; @@ -102,6 +157,15 @@ class AwsClustersTracingConnection google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& request) override; + StatusOr DeleteAwsNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& request) + override; + + future> + DeleteAwsNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAwsOpenIdConfig( google::cloud::gkemulticloud::v1::GetAwsOpenIdConfigRequest const& diff --git a/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.cc b/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.cc index 889c52ed13a2c..a7a4fd726c8b7 100644 --- a/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.cc +++ b/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.cc @@ -107,6 +107,61 @@ AzureClustersConnectionImpl::CreateAzureClient( polling_policy(*current), __func__); } +StatusOr +AzureClustersConnectionImpl::CreateAzureClient( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAzureClient(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& + request) { + return stub_->CreateAzureClient(context, options, request); + }, + *current, request, __func__); +} + +future> +AzureClustersConnectionImpl::CreateAzureClient( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAzureClient", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::AzureClient>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkemulticloud::v1::AzureClient>, + polling_policy(*current), __func__); +} + StatusOr AzureClustersConnectionImpl::GetAzureClient( google::cloud::gkemulticloud::v1::GetAzureClientRequest const& request) { @@ -197,6 +252,61 @@ AzureClustersConnectionImpl::DeleteAzureClient( polling_policy(*current), __func__); } +StatusOr +AzureClustersConnectionImpl::DeleteAzureClient( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAzureClient(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& + request) { + return stub_->DeleteAzureClient(context, options, request); + }, + *current, request, __func__); +} + +future> +AzureClustersConnectionImpl::DeleteAzureClient( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteAzureClient", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::gkemulticloud::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> AzureClustersConnectionImpl::CreateAzureCluster( google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& @@ -238,6 +348,62 @@ AzureClustersConnectionImpl::CreateAzureCluster( polling_policy(*current), __func__); } +StatusOr +AzureClustersConnectionImpl::CreateAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAzureCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& + request) { + return stub_->CreateAzureCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +AzureClustersConnectionImpl::CreateAzureCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAzureCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::AzureCluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkemulticloud::v1::AzureCluster>, + polling_policy(*current), __func__); +} + future> AzureClustersConnectionImpl::UpdateAzureCluster( google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& @@ -279,6 +445,62 @@ AzureClustersConnectionImpl::UpdateAzureCluster( polling_policy(*current), __func__); } +StatusOr +AzureClustersConnectionImpl::UpdateAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAzureCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& + request) { + return stub_->UpdateAzureCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +AzureClustersConnectionImpl::UpdateAzureCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateAzureCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::AzureCluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkemulticloud::v1::AzureCluster>, + polling_policy(*current), __func__); +} + StatusOr AzureClustersConnectionImpl::GetAzureCluster( google::cloud::gkemulticloud::v1::GetAzureClusterRequest const& request) { @@ -369,6 +591,62 @@ AzureClustersConnectionImpl::DeleteAzureCluster( polling_policy(*current), __func__); } +StatusOr +AzureClustersConnectionImpl::DeleteAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAzureCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& + request) { + return stub_->DeleteAzureCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +AzureClustersConnectionImpl::DeleteAzureCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteAzureCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::gkemulticloud::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr< google::cloud::gkemulticloud::v1::GenerateAzureClusterAgentTokenResponse> AzureClustersConnectionImpl::GenerateAzureClusterAgentToken( @@ -443,6 +721,62 @@ AzureClustersConnectionImpl::CreateAzureNodePool( polling_policy(*current), __func__); } +StatusOr +AzureClustersConnectionImpl::CreateAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAzureNodePool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& + request) { + return stub_->CreateAzureNodePool(context, options, request); + }, + *current, request, __func__); +} + +future> +AzureClustersConnectionImpl::CreateAzureNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAzureNodePool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::AzureNodePool>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkemulticloud::v1::AzureNodePool>, + polling_policy(*current), __func__); +} + future> AzureClustersConnectionImpl::UpdateAzureNodePool( google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& @@ -484,6 +818,62 @@ AzureClustersConnectionImpl::UpdateAzureNodePool( polling_policy(*current), __func__); } +StatusOr +AzureClustersConnectionImpl::UpdateAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAzureNodePool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& + request) { + return stub_->UpdateAzureNodePool(context, options, request); + }, + *current, request, __func__); +} + +future> +AzureClustersConnectionImpl::UpdateAzureNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateAzureNodePool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::AzureNodePool>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::gkemulticloud::v1::AzureNodePool>, + polling_policy(*current), __func__); +} + StatusOr AzureClustersConnectionImpl::GetAzureNodePool( google::cloud::gkemulticloud::v1::GetAzureNodePoolRequest const& request) { @@ -575,6 +965,62 @@ AzureClustersConnectionImpl::DeleteAzureNodePool( polling_policy(*current), __func__); } +StatusOr +AzureClustersConnectionImpl::DeleteAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAzureNodePool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& + request) { + return stub_->DeleteAzureNodePool(context, options, request); + }, + *current, request, __func__); +} + +future> +AzureClustersConnectionImpl::DeleteAzureNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteAzureNodePool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::gkemulticloud::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::gkemulticloud::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr AzureClustersConnectionImpl::GetAzureOpenIdConfig( google::cloud::gkemulticloud::v1::GetAzureOpenIdConfigRequest const& diff --git a/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.h b/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.h index c57d5a42637d7..f59b62402a976 100644 --- a/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.h +++ b/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.h @@ -57,6 +57,15 @@ class AzureClustersConnectionImpl google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& request) override; + StatusOr CreateAzureClient( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& request) + override; + + future> + CreateAzureClient(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAzureClient( google::cloud::gkemulticloud::v1::GetAzureClientRequest const& request) override; @@ -70,16 +79,43 @@ class AzureClustersConnectionImpl google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& request) override; + StatusOr DeleteAzureClient( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& request) + override; + + future> + DeleteAzureClient(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateAzureCluster( google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& request) override; + StatusOr CreateAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& + request) override; + + future> + CreateAzureCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAzureCluster( google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& request) override; + StatusOr UpdateAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& + request) override; + + future> + UpdateAzureCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAzureCluster( google::cloud::gkemulticloud::v1::GetAzureClusterRequest const& request) override; @@ -93,6 +129,15 @@ class AzureClustersConnectionImpl google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& request) override; + StatusOr DeleteAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& + request) override; + + future> + DeleteAzureCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr< google::cloud::gkemulticloud::v1::GenerateAzureClusterAgentTokenResponse> GenerateAzureClusterAgentToken( @@ -109,11 +154,29 @@ class AzureClustersConnectionImpl google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& request) override; + StatusOr CreateAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& + request) override; + + future> + CreateAzureNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAzureNodePool( google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& request) override; + StatusOr UpdateAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& + request) override; + + future> + UpdateAzureNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAzureNodePool( google::cloud::gkemulticloud::v1::GetAzureNodePoolRequest const& request) override; @@ -127,6 +190,15 @@ class AzureClustersConnectionImpl google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& request) override; + StatusOr DeleteAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& + request) override; + + future> + DeleteAzureNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAzureOpenIdConfig( google::cloud::gkemulticloud::v1::GetAzureOpenIdConfigRequest const& diff --git a/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.cc b/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.cc index 3ed53fbebc8d1..65cb955fb5819 100644 --- a/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.cc +++ b/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.cc @@ -42,6 +42,30 @@ AzureClustersTracingConnection::CreateAzureClient( return internal::EndSpan(std::move(span), child_->CreateAzureClient(request)); } +StatusOr +AzureClustersTracingConnection::CreateAzureClient( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AzureClustersConnection::CreateAzureClient"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateAzureClient(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AzureClustersTracingConnection::CreateAzureClient( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AzureClustersConnection::CreateAzureClient"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateAzureClient(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AzureClustersTracingConnection::GetAzureClient( google::cloud::gkemulticloud::v1::GetAzureClientRequest const& request) { @@ -72,6 +96,30 @@ AzureClustersTracingConnection::DeleteAzureClient( return internal::EndSpan(std::move(span), child_->DeleteAzureClient(request)); } +StatusOr +AzureClustersTracingConnection::DeleteAzureClient( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AzureClustersConnection::DeleteAzureClient"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAzureClient(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AzureClustersTracingConnection::DeleteAzureClient( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AzureClustersConnection::DeleteAzureClient"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAzureClient(google::cloud::ExperimentalTag{}, operation)); +} + future> AzureClustersTracingConnection::CreateAzureCluster( google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& @@ -83,6 +131,31 @@ AzureClustersTracingConnection::CreateAzureCluster( child_->CreateAzureCluster(request)); } +StatusOr +AzureClustersTracingConnection::CreateAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& + request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AzureClustersConnection::CreateAzureCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateAzureCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AzureClustersTracingConnection::CreateAzureCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AzureClustersConnection::CreateAzureCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateAzureCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> AzureClustersTracingConnection::UpdateAzureCluster( google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& @@ -94,6 +167,31 @@ AzureClustersTracingConnection::UpdateAzureCluster( child_->UpdateAzureCluster(request)); } +StatusOr +AzureClustersTracingConnection::UpdateAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& + request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AzureClustersConnection::UpdateAzureCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateAzureCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AzureClustersTracingConnection::UpdateAzureCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AzureClustersConnection::UpdateAzureCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateAzureCluster(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AzureClustersTracingConnection::GetAzureCluster( google::cloud::gkemulticloud::v1::GetAzureClusterRequest const& request) { @@ -126,6 +224,31 @@ AzureClustersTracingConnection::DeleteAzureCluster( child_->DeleteAzureCluster(request)); } +StatusOr +AzureClustersTracingConnection::DeleteAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& + request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AzureClustersConnection::DeleteAzureCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAzureCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AzureClustersTracingConnection::DeleteAzureCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AzureClustersConnection::DeleteAzureCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAzureCluster(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr< google::cloud::gkemulticloud::v1::GenerateAzureClusterAgentTokenResponse> AzureClustersTracingConnection::GenerateAzureClusterAgentToken( @@ -160,6 +283,31 @@ AzureClustersTracingConnection::CreateAzureNodePool( child_->CreateAzureNodePool(request)); } +StatusOr +AzureClustersTracingConnection::CreateAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& + request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AzureClustersConnection::CreateAzureNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateAzureNodePool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AzureClustersTracingConnection::CreateAzureNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AzureClustersConnection::CreateAzureNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateAzureNodePool(google::cloud::ExperimentalTag{}, operation)); +} + future> AzureClustersTracingConnection::UpdateAzureNodePool( google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& @@ -171,6 +319,31 @@ AzureClustersTracingConnection::UpdateAzureNodePool( child_->UpdateAzureNodePool(request)); } +StatusOr +AzureClustersTracingConnection::UpdateAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& + request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AzureClustersConnection::UpdateAzureNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateAzureNodePool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AzureClustersTracingConnection::UpdateAzureNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AzureClustersConnection::UpdateAzureNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateAzureNodePool(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AzureClustersTracingConnection::GetAzureNodePool( google::cloud::gkemulticloud::v1::GetAzureNodePoolRequest const& request) { @@ -203,6 +376,31 @@ AzureClustersTracingConnection::DeleteAzureNodePool( child_->DeleteAzureNodePool(request)); } +StatusOr +AzureClustersTracingConnection::DeleteAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& + request) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AzureClustersConnection::DeleteAzureNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAzureNodePool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AzureClustersTracingConnection::DeleteAzureNodePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "gkemulticloud_v1::AzureClustersConnection::DeleteAzureNodePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAzureNodePool(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AzureClustersTracingConnection::GetAzureOpenIdConfig( google::cloud::gkemulticloud::v1::GetAzureOpenIdConfigRequest const& diff --git a/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.h b/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.h index e2419020df73f..b683f0635155d 100644 --- a/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.h +++ b/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.h @@ -45,6 +45,15 @@ class AzureClustersTracingConnection google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& request) override; + StatusOr CreateAzureClient( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& request) + override; + + future> + CreateAzureClient(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAzureClient( google::cloud::gkemulticloud::v1::GetAzureClientRequest const& request) override; @@ -58,16 +67,43 @@ class AzureClustersTracingConnection google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& request) override; + StatusOr DeleteAzureClient( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& request) + override; + + future> + DeleteAzureClient(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateAzureCluster( google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& request) override; + StatusOr CreateAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& + request) override; + + future> + CreateAzureCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAzureCluster( google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& request) override; + StatusOr UpdateAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& + request) override; + + future> + UpdateAzureCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAzureCluster( google::cloud::gkemulticloud::v1::GetAzureClusterRequest const& request) override; @@ -81,6 +117,15 @@ class AzureClustersTracingConnection google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& request) override; + StatusOr DeleteAzureCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& + request) override; + + future> + DeleteAzureCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr< google::cloud::gkemulticloud::v1::GenerateAzureClusterAgentTokenResponse> GenerateAzureClusterAgentToken( @@ -97,11 +142,29 @@ class AzureClustersTracingConnection google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& request) override; + StatusOr CreateAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& + request) override; + + future> + CreateAzureNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAzureNodePool( google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& request) override; + StatusOr UpdateAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& + request) override; + + future> + UpdateAzureNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAzureNodePool( google::cloud::gkemulticloud::v1::GetAzureNodePoolRequest const& request) override; @@ -115,6 +178,15 @@ class AzureClustersTracingConnection google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& request) override; + StatusOr DeleteAzureNodePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& + request) override; + + future> + DeleteAzureNodePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAzureOpenIdConfig( google::cloud::gkemulticloud::v1::GetAzureOpenIdConfigRequest const& diff --git a/google/cloud/gkemulticloud/v1/mocks/mock_attached_clusters_connection.h b/google/cloud/gkemulticloud/v1/mocks/mock_attached_clusters_connection.h index db365f985c2ba..cfa3f46bc38bc 100644 --- a/google/cloud/gkemulticloud/v1/mocks/mock_attached_clusters_connection.h +++ b/google/cloud/gkemulticloud/v1/mocks/mock_attached_clusters_connection.h @@ -54,6 +54,20 @@ class MockAttachedClustersConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateAttachedCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateAttachedCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateAttachedCluster, @@ -61,6 +75,20 @@ class MockAttachedClustersConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateAttachedCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateAttachedCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ImportAttachedCluster, @@ -68,6 +96,20 @@ class MockAttachedClustersConnection request), (override)); + MOCK_METHOD( + StatusOr, ImportAttachedCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + ImportAttachedCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetAttachedCluster, @@ -88,6 +130,20 @@ class MockAttachedClustersConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteAttachedCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteAttachedCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetAttachedServerConfig, diff --git a/google/cloud/gkemulticloud/v1/mocks/mock_aws_clusters_connection.h b/google/cloud/gkemulticloud/v1/mocks/mock_aws_clusters_connection.h index d5103459a497f..abb9c03134598 100644 --- a/google/cloud/gkemulticloud/v1/mocks/mock_aws_clusters_connection.h +++ b/google/cloud/gkemulticloud/v1/mocks/mock_aws_clusters_connection.h @@ -53,12 +53,36 @@ class MockAwsClustersConnection request), (override)); + MOCK_METHOD(StatusOr, CreateAwsCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateAwsCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateAwsCluster, (google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateAwsCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateAwsCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetAwsCluster, (google::cloud::gkemulticloud::v1::GetAwsClusterRequest const& request), @@ -77,6 +101,19 @@ class MockAwsClustersConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteAwsCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteAwsCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GenerateAwsClusterAgentToken, @@ -98,12 +135,36 @@ class MockAwsClustersConnection request), (override)); + MOCK_METHOD(StatusOr, CreateAwsNodePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateAwsNodePool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateAwsNodePool, (google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateAwsNodePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateAwsNodePool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RollbackAwsNodePoolUpdate, @@ -111,6 +172,19 @@ class MockAwsClustersConnection request), (override)); + MOCK_METHOD( + StatusOr, RollbackAwsNodePoolUpdate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& + request), + (override)); + + MOCK_METHOD(future>, + RollbackAwsNodePoolUpdate, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetAwsNodePool, (google::cloud::gkemulticloud::v1::GetAwsNodePoolRequest const& request), @@ -129,6 +203,19 @@ class MockAwsClustersConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteAwsNodePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteAwsNodePool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetAwsOpenIdConfig, diff --git a/google/cloud/gkemulticloud/v1/mocks/mock_azure_clusters_connection.h b/google/cloud/gkemulticloud/v1/mocks/mock_azure_clusters_connection.h index 5f9f97183b8b2..9611165ce81f4 100644 --- a/google/cloud/gkemulticloud/v1/mocks/mock_azure_clusters_connection.h +++ b/google/cloud/gkemulticloud/v1/mocks/mock_azure_clusters_connection.h @@ -53,6 +53,18 @@ class MockAzureClustersConnection request), (override)); + MOCK_METHOD(StatusOr, CreateAzureClient, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateAzureClient, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetAzureClient, (google::cloud::gkemulticloud::v1::GetAzureClientRequest const& request), @@ -71,6 +83,19 @@ class MockAzureClustersConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteAzureClient, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteAzureClient, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateAzureCluster, @@ -78,6 +103,19 @@ class MockAzureClustersConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateAzureCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateAzureCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateAzureCluster, @@ -85,6 +123,19 @@ class MockAzureClustersConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateAzureCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateAzureCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetAzureCluster, (google::cloud::gkemulticloud::v1::GetAzureClusterRequest const& request), @@ -103,6 +154,20 @@ class MockAzureClustersConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteAzureCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteAzureCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GenerateAzureClusterAgentToken, @@ -125,6 +190,19 @@ class MockAzureClustersConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateAzureNodePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateAzureNodePool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateAzureNodePool, @@ -132,6 +210,19 @@ class MockAzureClustersConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateAzureNodePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateAzureNodePool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetAzureNodePool, (google::cloud::gkemulticloud::v1::GetAzureNodePoolRequest const& @@ -151,6 +242,20 @@ class MockAzureClustersConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteAzureNodePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteAzureNodePool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetAzureOpenIdConfig, diff --git a/google/cloud/iam/admin/v1/iam_connection.h b/google/cloud/iam/admin/v1/iam_connection.h index 3873617ccde5a..016a4cd67fedc 100644 --- a/google/cloud/iam/admin/v1/iam_connection.h +++ b/google/cloud/iam/admin/v1/iam_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/iam/admin/v1/iam_connection_idempotency_policy.h" #include "google/cloud/iam/admin/v1/internal/iam_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/iam/credentials/v1/iam_credentials_connection.h b/google/cloud/iam/credentials/v1/iam_credentials_connection.h index 130c86a4ba7eb..fe90da521056a 100644 --- a/google/cloud/iam/credentials/v1/iam_credentials_connection.h +++ b/google/cloud/iam/credentials/v1/iam_credentials_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/iam/credentials/v1/iam_credentials_connection_idempotency_policy.h" #include "google/cloud/iam/credentials/v1/internal/iam_credentials_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/iam/v1/iam_policy_connection.h b/google/cloud/iam/v1/iam_policy_connection.h index 80a1fca3574c4..ba500fbe55a64 100644 --- a/google/cloud/iam/v1/iam_policy_connection.h +++ b/google/cloud/iam/v1/iam_policy_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/iam/v1/iam_policy_connection_idempotency_policy.h" #include "google/cloud/iam/v1/internal/iam_policy_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/iam/v2/internal/policies_connection_impl.cc b/google/cloud/iam/v2/internal/policies_connection_impl.cc index bce2943cb96c9..f5d6b10fde148 100644 --- a/google/cloud/iam/v2/internal/policies_connection_impl.cc +++ b/google/cloud/iam/v2/internal/policies_connection_impl.cc @@ -143,6 +143,56 @@ future> PoliciesConnectionImpl::CreatePolicy( polling_policy(*current), __func__); } +StatusOr PoliciesConnectionImpl::CreatePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::CreatePolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreatePolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::iam::v2::CreatePolicyRequest const& request) { + return stub_->CreatePolicy(context, options, request); + }, + *current, request, __func__); +} + +future> PoliciesConnectionImpl::CreatePolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreatePolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::iam::v2::Policy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::iam::v2::Policy>, + polling_policy(*current), __func__); +} + future> PoliciesConnectionImpl::UpdatePolicy( google::iam::v2::UpdatePolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -180,6 +230,56 @@ future> PoliciesConnectionImpl::UpdatePolicy( polling_policy(*current), __func__); } +StatusOr PoliciesConnectionImpl::UpdatePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::UpdatePolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdatePolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::iam::v2::UpdatePolicyRequest const& request) { + return stub_->UpdatePolicy(context, options, request); + }, + *current, request, __func__); +} + +future> PoliciesConnectionImpl::UpdatePolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdatePolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::iam::v2::Policy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::iam::v2::Policy>, + polling_policy(*current), __func__); +} + future> PoliciesConnectionImpl::DeletePolicy( google::iam::v2::DeletePolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -217,6 +317,56 @@ future> PoliciesConnectionImpl::DeletePolicy( polling_policy(*current), __func__); } +StatusOr PoliciesConnectionImpl::DeletePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::DeletePolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::iam::v2::DeletePolicyRequest const& request) { + return stub_->DeletePolicy(context, options, request); + }, + *current, request, __func__); +} + +future> PoliciesConnectionImpl::DeletePolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeletePolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::iam::v2::Policy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::iam::v2::Policy>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace iam_v2_internal } // namespace cloud diff --git a/google/cloud/iam/v2/internal/policies_connection_impl.h b/google/cloud/iam/v2/internal/policies_connection_impl.h index 50aa1ee240682..418d9fa6e2214 100644 --- a/google/cloud/iam/v2/internal/policies_connection_impl.h +++ b/google/cloud/iam/v2/internal/policies_connection_impl.h @@ -59,12 +59,36 @@ class PoliciesConnectionImpl : public iam_v2::PoliciesConnection { future> CreatePolicy( google::iam::v2::CreatePolicyRequest const& request) override; + StatusOr CreatePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::CreatePolicyRequest const& request) override; + + future> CreatePolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdatePolicy( google::iam::v2::UpdatePolicyRequest const& request) override; + StatusOr UpdatePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::UpdatePolicyRequest const& request) override; + + future> UpdatePolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeletePolicy( google::iam::v2::DeletePolicyRequest const& request) override; + StatusOr DeletePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::DeletePolicyRequest const& request) override; + + future> DeletePolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/iam/v2/internal/policies_tracing_connection.cc b/google/cloud/iam/v2/internal/policies_tracing_connection.cc index 92bb0326ebd3a..9f382cb3641ae 100644 --- a/google/cloud/iam/v2/internal/policies_tracing_connection.cc +++ b/google/cloud/iam/v2/internal/policies_tracing_connection.cc @@ -57,6 +57,28 @@ PoliciesTracingConnection::CreatePolicy( return internal::EndSpan(std::move(span), child_->CreatePolicy(request)); } +StatusOr +PoliciesTracingConnection::CreatePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::CreatePolicyRequest const& request) { + auto span = internal::MakeSpan("iam_v2::PoliciesConnection::CreatePolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreatePolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PoliciesTracingConnection::CreatePolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("iam_v2::PoliciesConnection::CreatePolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreatePolicy(google::cloud::ExperimentalTag{}, operation)); +} + future> PoliciesTracingConnection::UpdatePolicy( google::iam::v2::UpdatePolicyRequest const& request) { @@ -65,6 +87,28 @@ PoliciesTracingConnection::UpdatePolicy( return internal::EndSpan(std::move(span), child_->UpdatePolicy(request)); } +StatusOr +PoliciesTracingConnection::UpdatePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::UpdatePolicyRequest const& request) { + auto span = internal::MakeSpan("iam_v2::PoliciesConnection::UpdatePolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdatePolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PoliciesTracingConnection::UpdatePolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("iam_v2::PoliciesConnection::UpdatePolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdatePolicy(google::cloud::ExperimentalTag{}, operation)); +} + future> PoliciesTracingConnection::DeletePolicy( google::iam::v2::DeletePolicyRequest const& request) { @@ -73,6 +117,28 @@ PoliciesTracingConnection::DeletePolicy( return internal::EndSpan(std::move(span), child_->DeletePolicy(request)); } +StatusOr +PoliciesTracingConnection::DeletePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::DeletePolicyRequest const& request) { + auto span = internal::MakeSpan("iam_v2::PoliciesConnection::DeletePolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeletePolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PoliciesTracingConnection::DeletePolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("iam_v2::PoliciesConnection::DeletePolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeletePolicy(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr MakePoliciesTracingConnection( diff --git a/google/cloud/iam/v2/internal/policies_tracing_connection.h b/google/cloud/iam/v2/internal/policies_tracing_connection.h index 9de4b1fe022e4..45069fffb04c0 100644 --- a/google/cloud/iam/v2/internal/policies_tracing_connection.h +++ b/google/cloud/iam/v2/internal/policies_tracing_connection.h @@ -48,12 +48,36 @@ class PoliciesTracingConnection : public iam_v2::PoliciesConnection { future> CreatePolicy( google::iam::v2::CreatePolicyRequest const& request) override; + StatusOr CreatePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::CreatePolicyRequest const& request) override; + + future> CreatePolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdatePolicy( google::iam::v2::UpdatePolicyRequest const& request) override; + StatusOr UpdatePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::UpdatePolicyRequest const& request) override; + + future> UpdatePolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeletePolicy( google::iam::v2::DeletePolicyRequest const& request) override; + StatusOr DeletePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::DeletePolicyRequest const& request) override; + + future> DeletePolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/iam/v2/mocks/mock_policies_connection.h b/google/cloud/iam/v2/mocks/mock_policies_connection.h index f561d357857a4..485cba1de80c3 100644 --- a/google/cloud/iam/v2/mocks/mock_policies_connection.h +++ b/google/cloud/iam/v2/mocks/mock_policies_connection.h @@ -56,13 +56,43 @@ class MockPoliciesConnection : public iam_v2::PoliciesConnection { (google::iam::v2::CreatePolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreatePolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::CreatePolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, CreatePolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdatePolicy, (google::iam::v2::UpdatePolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdatePolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::UpdatePolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, UpdatePolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeletePolicy, (google::iam::v2::DeletePolicyRequest const& request), (override)); + + MOCK_METHOD(StatusOr, DeletePolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::DeletePolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, DeletePolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/iam/v2/policies_connection.cc b/google/cloud/iam/v2/policies_connection.cc index f71c81ec937b5..1545cb509b131 100644 --- a/google/cloud/iam/v2/policies_connection.cc +++ b/google/cloud/iam/v2/policies_connection.cc @@ -56,18 +56,57 @@ future> PoliciesConnection::CreatePolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr PoliciesConnection::CreatePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::CreatePolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> PoliciesConnection::CreatePolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> PoliciesConnection::UpdatePolicy( google::iam::v2::UpdatePolicyRequest const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr PoliciesConnection::UpdatePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::UpdatePolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> PoliciesConnection::UpdatePolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> PoliciesConnection::DeletePolicy( google::iam::v2::DeletePolicyRequest const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr PoliciesConnection::DeletePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::DeletePolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> PoliciesConnection::DeletePolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakePoliciesConnection(Options options) { internal::CheckExpectedOptions> CreatePolicy( google::iam::v2::CreatePolicyRequest const& request); + virtual StatusOr CreatePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::CreatePolicyRequest const& request); + + virtual future> CreatePolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdatePolicy( google::iam::v2::UpdatePolicyRequest const& request); + virtual StatusOr UpdatePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::UpdatePolicyRequest const& request); + + virtual future> UpdatePolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeletePolicy( google::iam::v2::DeletePolicyRequest const& request); + + virtual StatusOr DeletePolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::iam::v2::DeletePolicyRequest const& request); + + virtual future> DeletePolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/iap/v1/identity_aware_proxy_admin_connection.h b/google/cloud/iap/v1/identity_aware_proxy_admin_connection.h index 9a9004f3061b6..a81ddae87377d 100644 --- a/google/cloud/iap/v1/identity_aware_proxy_admin_connection.h +++ b/google/cloud/iap/v1/identity_aware_proxy_admin_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/iap/v1/identity_aware_proxy_admin_connection_idempotency_policy.h" #include "google/cloud/iap/v1/internal/identity_aware_proxy_admin_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/iap/v1/identity_aware_proxy_o_auth_connection.h b/google/cloud/iap/v1/identity_aware_proxy_o_auth_connection.h index 740202818b9f2..a717715a264f3 100644 --- a/google/cloud/iap/v1/identity_aware_proxy_o_auth_connection.h +++ b/google/cloud/iap/v1/identity_aware_proxy_o_auth_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/iap/v1/identity_aware_proxy_o_auth_connection_idempotency_policy.h" #include "google/cloud/iap/v1/internal/identity_aware_proxy_o_auth_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/ids/v1/ids_connection.cc b/google/cloud/ids/v1/ids_connection.cc index e43cdd1409172..eb866dc03ada0 100644 --- a/google/cloud/ids/v1/ids_connection.cc +++ b/google/cloud/ids/v1/ids_connection.cc @@ -58,6 +58,21 @@ IDSConnection::CreateEndpoint( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr IDSConnection::CreateEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::ids::v1::CreateEndpointRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +IDSConnection::CreateEndpoint(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> IDSConnection::DeleteEndpoint( google::cloud::ids::v1::DeleteEndpointRequest const&) { @@ -66,6 +81,21 @@ IDSConnection::DeleteEndpoint( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr IDSConnection::DeleteEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::ids::v1::DeleteEndpointRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +IDSConnection::DeleteEndpoint(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeIDSConnection(Options options) { internal::CheckExpectedOptions> CreateEndpoint( google::cloud::ids::v1::CreateEndpointRequest const& request); + virtual StatusOr CreateEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::ids::v1::CreateEndpointRequest const& request); + + virtual future> CreateEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteEndpoint(google::cloud::ids::v1::DeleteEndpointRequest const& request); + + virtual StatusOr DeleteEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::ids::v1::DeleteEndpointRequest const& request); + + virtual future> + DeleteEndpoint(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/ids/v1/internal/ids_connection_impl.cc b/google/cloud/ids/v1/internal/ids_connection_impl.cc index 6f38f3ab2e3ed..931b765eb45db 100644 --- a/google/cloud/ids/v1/internal/ids_connection_impl.cc +++ b/google/cloud/ids/v1/internal/ids_connection_impl.cc @@ -144,6 +144,57 @@ IDSConnectionImpl::CreateEndpoint( polling_policy(*current), __func__); } +StatusOr IDSConnectionImpl::CreateEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::ids::v1::CreateEndpointRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateEndpoint(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::ids::v1::CreateEndpointRequest const& request) { + return stub_->CreateEndpoint(context, options, request); + }, + *current, request, __func__); +} + +future> +IDSConnectionImpl::CreateEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateEndpoint", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::ids::v1::Endpoint>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::ids::v1::Endpoint>, + polling_policy(*current), __func__); +} + future> IDSConnectionImpl::DeleteEndpoint( google::cloud::ids::v1::DeleteEndpointRequest const& request) { @@ -183,6 +234,58 @@ IDSConnectionImpl::DeleteEndpoint( polling_policy(*current), __func__); } +StatusOr IDSConnectionImpl::DeleteEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::ids::v1::DeleteEndpointRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteEndpoint(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::ids::v1::DeleteEndpointRequest const& request) { + return stub_->DeleteEndpoint(context, options, request); + }, + *current, request, __func__); +} + +future> +IDSConnectionImpl::DeleteEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteEndpoint", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::ids::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::ids::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace ids_v1_internal } // namespace cloud diff --git a/google/cloud/ids/v1/internal/ids_connection_impl.h b/google/cloud/ids/v1/internal/ids_connection_impl.h index 475755c7721f9..d276454eefc61 100644 --- a/google/cloud/ids/v1/internal/ids_connection_impl.h +++ b/google/cloud/ids/v1/internal/ids_connection_impl.h @@ -59,9 +59,25 @@ class IDSConnectionImpl : public ids_v1::IDSConnection { future> CreateEndpoint( google::cloud::ids::v1::CreateEndpointRequest const& request) override; + StatusOr CreateEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::ids::v1::CreateEndpointRequest const& request) override; + + future> CreateEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEndpoint( google::cloud::ids::v1::DeleteEndpointRequest const& request) override; + StatusOr DeleteEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::ids::v1::DeleteEndpointRequest const& request) override; + + future> DeleteEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/ids/v1/internal/ids_tracing_connection.cc b/google/cloud/ids/v1/internal/ids_tracing_connection.cc index 1d1d2b06454c9..4445fc23df679 100644 --- a/google/cloud/ids/v1/internal/ids_tracing_connection.cc +++ b/google/cloud/ids/v1/internal/ids_tracing_connection.cc @@ -58,6 +58,27 @@ IDSTracingConnection::CreateEndpoint( return internal::EndSpan(std::move(span), child_->CreateEndpoint(request)); } +StatusOr IDSTracingConnection::CreateEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::ids::v1::CreateEndpointRequest const& request) { + auto span = internal::MakeSpan("ids_v1::IDSConnection::CreateEndpoint"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateEndpoint(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +IDSTracingConnection::CreateEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("ids_v1::IDSConnection::CreateEndpoint"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateEndpoint(google::cloud::ExperimentalTag{}, operation)); +} + future> IDSTracingConnection::DeleteEndpoint( google::cloud::ids::v1::DeleteEndpointRequest const& request) { @@ -66,6 +87,27 @@ IDSTracingConnection::DeleteEndpoint( return internal::EndSpan(std::move(span), child_->DeleteEndpoint(request)); } +StatusOr IDSTracingConnection::DeleteEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::ids::v1::DeleteEndpointRequest const& request) { + auto span = internal::MakeSpan("ids_v1::IDSConnection::DeleteEndpoint"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteEndpoint(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +IDSTracingConnection::DeleteEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("ids_v1::IDSConnection::DeleteEndpoint"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteEndpoint(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr MakeIDSTracingConnection( diff --git a/google/cloud/ids/v1/internal/ids_tracing_connection.h b/google/cloud/ids/v1/internal/ids_tracing_connection.h index d1b6adc3e489e..8d64df7f4fa83 100644 --- a/google/cloud/ids/v1/internal/ids_tracing_connection.h +++ b/google/cloud/ids/v1/internal/ids_tracing_connection.h @@ -47,9 +47,25 @@ class IDSTracingConnection : public ids_v1::IDSConnection { future> CreateEndpoint( google::cloud::ids::v1::CreateEndpointRequest const& request) override; + StatusOr CreateEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::ids::v1::CreateEndpointRequest const& request) override; + + future> CreateEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEndpoint( google::cloud::ids::v1::DeleteEndpointRequest const& request) override; + StatusOr DeleteEndpoint( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::ids::v1::DeleteEndpointRequest const& request) override; + + future> DeleteEndpoint( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/ids/v1/mocks/mock_ids_connection.h b/google/cloud/ids/v1/mocks/mock_ids_connection.h index 1ad279a09d443..5c5fa832bed24 100644 --- a/google/cloud/ids/v1/mocks/mock_ids_connection.h +++ b/google/cloud/ids/v1/mocks/mock_ids_connection.h @@ -59,10 +59,32 @@ class MockIDSConnection : public ids_v1::IDSConnection { (google::cloud::ids::v1::CreateEndpointRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateEndpoint, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::ids::v1::CreateEndpointRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateEndpoint, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteEndpoint, (google::cloud::ids::v1::DeleteEndpointRequest const& request), (override)); + + MOCK_METHOD(StatusOr, DeleteEndpoint, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::ids::v1::DeleteEndpointRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteEndpoint, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/kms/inventory/v1/key_dashboard_connection.h b/google/cloud/kms/inventory/v1/key_dashboard_connection.h index 3c7f1f238cfc9..7bbe136ec1a04 100644 --- a/google/cloud/kms/inventory/v1/key_dashboard_connection.h +++ b/google/cloud/kms/inventory/v1/key_dashboard_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/kms/inventory/v1/internal/key_dashboard_retry_traits.h" #include "google/cloud/kms/inventory/v1/key_dashboard_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/kms/inventory/v1/key_tracking_connection.h b/google/cloud/kms/inventory/v1/key_tracking_connection.h index d0664312a00c3..f2602cc6eac5e 100644 --- a/google/cloud/kms/inventory/v1/key_tracking_connection.h +++ b/google/cloud/kms/inventory/v1/key_tracking_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/kms/inventory/v1/internal/key_tracking_retry_traits.h" #include "google/cloud/kms/inventory/v1/key_tracking_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/kms/v1/autokey_admin_connection.h b/google/cloud/kms/v1/autokey_admin_connection.h index 77eeed4467624..7d21d0b717e59 100644 --- a/google/cloud/kms/v1/autokey_admin_connection.h +++ b/google/cloud/kms/v1/autokey_admin_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/kms/v1/autokey_admin_connection_idempotency_policy.h" #include "google/cloud/kms/v1/internal/autokey_admin_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/kms/v1/autokey_connection.cc b/google/cloud/kms/v1/autokey_connection.cc index 92bc05f2c57fd..e76bf8505cb24 100644 --- a/google/cloud/kms/v1/autokey_connection.cc +++ b/google/cloud/kms/v1/autokey_connection.cc @@ -45,6 +45,21 @@ AutokeyConnection::CreateKeyHandle( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr AutokeyConnection::CreateKeyHandle( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::kms::v1::CreateKeyHandleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AutokeyConnection::CreateKeyHandle(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AutokeyConnection::GetKeyHandle( google::cloud::kms::v1::GetKeyHandleRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); diff --git a/google/cloud/kms/v1/autokey_connection.h b/google/cloud/kms/v1/autokey_connection.h index 522d727499328..f66dfb43820d2 100644 --- a/google/cloud/kms/v1/autokey_connection.h +++ b/google/cloud/kms/v1/autokey_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/kms/v1/autokey_connection_idempotency_policy.h" #include "google/cloud/kms/v1/internal/autokey_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -184,6 +186,14 @@ class AutokeyConnection { virtual future> CreateKeyHandle( google::cloud::kms::v1::CreateKeyHandleRequest const& request); + virtual StatusOr CreateKeyHandle( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::kms::v1::CreateKeyHandleRequest const& request); + + virtual future> CreateKeyHandle( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetKeyHandle( google::cloud::kms::v1::GetKeyHandleRequest const& request); diff --git a/google/cloud/kms/v1/ekm_connection.h b/google/cloud/kms/v1/ekm_connection.h index 6f9b1332f889a..97b6b14ab136d 100644 --- a/google/cloud/kms/v1/ekm_connection.h +++ b/google/cloud/kms/v1/ekm_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/kms/v1/ekm_connection_idempotency_policy.h" #include "google/cloud/kms/v1/internal/ekm_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/kms/v1/internal/autokey_connection_impl.cc b/google/cloud/kms/v1/internal/autokey_connection_impl.cc index 5b563b34723b0..d61c765049c1d 100644 --- a/google/cloud/kms/v1/internal/autokey_connection_impl.cc +++ b/google/cloud/kms/v1/internal/autokey_connection_impl.cc @@ -100,6 +100,57 @@ AutokeyConnectionImpl::CreateKeyHandle( polling_policy(*current), __func__); } +StatusOr AutokeyConnectionImpl::CreateKeyHandle( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::kms::v1::CreateKeyHandleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateKeyHandle(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::kms::v1::CreateKeyHandleRequest const& request) { + return stub_->CreateKeyHandle(context, options, request); + }, + *current, request, __func__); +} + +future> +AutokeyConnectionImpl::CreateKeyHandle( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateKeyHandle", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::kms::v1::KeyHandle>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::kms::v1::KeyHandle>, + polling_policy(*current), __func__); +} + StatusOr AutokeyConnectionImpl::GetKeyHandle( google::cloud::kms::v1::GetKeyHandleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/kms/v1/internal/autokey_connection_impl.h b/google/cloud/kms/v1/internal/autokey_connection_impl.h index 94b7bca7f2c48..56472e64b0a0d 100644 --- a/google/cloud/kms/v1/internal/autokey_connection_impl.h +++ b/google/cloud/kms/v1/internal/autokey_connection_impl.h @@ -52,6 +52,14 @@ class AutokeyConnectionImpl : public kms_v1::AutokeyConnection { future> CreateKeyHandle( google::cloud::kms::v1::CreateKeyHandleRequest const& request) override; + StatusOr CreateKeyHandle( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::kms::v1::CreateKeyHandleRequest const& request) override; + + future> CreateKeyHandle( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetKeyHandle( google::cloud::kms::v1::GetKeyHandleRequest const& request) override; diff --git a/google/cloud/kms/v1/internal/autokey_tracing_connection.cc b/google/cloud/kms/v1/internal/autokey_tracing_connection.cc index 7caea6dd9c7c7..d9d98edf80ebe 100644 --- a/google/cloud/kms/v1/internal/autokey_tracing_connection.cc +++ b/google/cloud/kms/v1/internal/autokey_tracing_connection.cc @@ -40,6 +40,28 @@ AutokeyTracingConnection::CreateKeyHandle( return internal::EndSpan(std::move(span), child_->CreateKeyHandle(request)); } +StatusOr +AutokeyTracingConnection::CreateKeyHandle( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::kms::v1::CreateKeyHandleRequest const& request) { + auto span = internal::MakeSpan("kms_v1::AutokeyConnection::CreateKeyHandle"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateKeyHandle(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AutokeyTracingConnection::CreateKeyHandle( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("kms_v1::AutokeyConnection::CreateKeyHandle"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateKeyHandle(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AutokeyTracingConnection::GetKeyHandle( google::cloud::kms::v1::GetKeyHandleRequest const& request) { diff --git a/google/cloud/kms/v1/internal/autokey_tracing_connection.h b/google/cloud/kms/v1/internal/autokey_tracing_connection.h index d43405628b19b..75ff2d2397d84 100644 --- a/google/cloud/kms/v1/internal/autokey_tracing_connection.h +++ b/google/cloud/kms/v1/internal/autokey_tracing_connection.h @@ -42,6 +42,14 @@ class AutokeyTracingConnection : public kms_v1::AutokeyConnection { future> CreateKeyHandle( google::cloud::kms::v1::CreateKeyHandleRequest const& request) override; + StatusOr CreateKeyHandle( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::kms::v1::CreateKeyHandleRequest const& request) override; + + future> CreateKeyHandle( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetKeyHandle( google::cloud::kms::v1::GetKeyHandleRequest const& request) override; diff --git a/google/cloud/kms/v1/key_management_connection.h b/google/cloud/kms/v1/key_management_connection.h index 8a482c3e3ef17..40c4e105fff3b 100644 --- a/google/cloud/kms/v1/key_management_connection.h +++ b/google/cloud/kms/v1/key_management_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/kms/v1/internal/key_management_retry_traits.h" #include "google/cloud/kms/v1/key_management_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/kms/v1/mocks/mock_autokey_connection.h b/google/cloud/kms/v1/mocks/mock_autokey_connection.h index dd64a4e283b77..06c57f66a777a 100644 --- a/google/cloud/kms/v1/mocks/mock_autokey_connection.h +++ b/google/cloud/kms/v1/mocks/mock_autokey_connection.h @@ -51,6 +51,17 @@ class MockAutokeyConnection : public kms_v1::AutokeyConnection { (google::cloud::kms::v1::CreateKeyHandleRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateKeyHandle, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::kms::v1::CreateKeyHandleRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateKeyHandle, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetKeyHandle, (google::cloud::kms::v1::GetKeyHandleRequest const& request), (override)); diff --git a/google/cloud/language/v1/language_connection.h b/google/cloud/language/v1/language_connection.h index 6fc6e325de570..ee1a017a822ed 100644 --- a/google/cloud/language/v1/language_connection.h +++ b/google/cloud/language/v1/language_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/language/v1/internal/language_retry_traits.h" #include "google/cloud/language/v1/language_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/language/v2/language_connection.h b/google/cloud/language/v2/language_connection.h index 0d3a1a236e54b..0cd66c4b0c624 100644 --- a/google/cloud/language/v2/language_connection.h +++ b/google/cloud/language/v2/language_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/language/v2/internal/language_retry_traits.h" #include "google/cloud/language/v2/language_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/logging/v2/config_service_v2_connection.cc b/google/cloud/logging/v2/config_service_v2_connection.cc index f7579cb07e345..25194b0494a98 100644 --- a/google/cloud/logging/v2/config_service_v2_connection.cc +++ b/google/cloud/logging/v2/config_service_v2_connection.cc @@ -59,6 +59,22 @@ ConfigServiceV2Connection::CreateBucketAsync( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ConfigServiceV2Connection::CreateBucketAsync( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CreateBucketRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConfigServiceV2Connection::CreateBucketAsync( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ConfigServiceV2Connection::UpdateBucketAsync( google::logging::v2::UpdateBucketRequest const&) { @@ -67,6 +83,22 @@ ConfigServiceV2Connection::UpdateBucketAsync( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ConfigServiceV2Connection::UpdateBucketAsync( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::UpdateBucketRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConfigServiceV2Connection::UpdateBucketAsync( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ConfigServiceV2Connection::CreateBucket( google::logging::v2::CreateBucketRequest const&) { @@ -150,6 +182,20 @@ ConfigServiceV2Connection::CreateLink( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ConfigServiceV2Connection::CreateLink( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CreateLinkRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConfigServiceV2Connection::CreateLink(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ConfigServiceV2Connection::DeleteLink( google::logging::v2::DeleteLinkRequest const&) { @@ -158,6 +204,21 @@ ConfigServiceV2Connection::DeleteLink( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ConfigServiceV2Connection::DeleteLink( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::DeleteLinkRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConfigServiceV2Connection::DeleteLink(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ConfigServiceV2Connection::ListLinks( google::logging::v2:: ListLinksRequest) { // NOLINT(performance-unnecessary-value-param) @@ -232,6 +293,22 @@ ConfigServiceV2Connection::CopyLogEntries( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ConfigServiceV2Connection::CopyLogEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CopyLogEntriesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ConfigServiceV2Connection::CopyLogEntries( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeConfigServiceV2Connection( Options options) { internal::CheckExpectedOptions> CreateBucketAsync( google::logging::v2::CreateBucketRequest const& request); + virtual StatusOr CreateBucketAsync( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CreateBucketRequest const& request); + + virtual future> CreateBucketAsync( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateBucketAsync( google::logging::v2::UpdateBucketRequest const& request); + virtual StatusOr UpdateBucketAsync( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::UpdateBucketRequest const& request); + + virtual future> UpdateBucketAsync( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateBucket( google::logging::v2::CreateBucketRequest const& request); @@ -243,9 +261,25 @@ class ConfigServiceV2Connection { virtual future> CreateLink( google::logging::v2::CreateLinkRequest const& request); + virtual StatusOr CreateLink( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CreateLinkRequest const& request); + + virtual future> CreateLink( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteLink( google::logging::v2::DeleteLinkRequest const& request); + virtual StatusOr DeleteLink( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::DeleteLinkRequest const& request); + + virtual future> DeleteLink( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListLinks( google::logging::v2::ListLinksRequest request); @@ -281,6 +315,14 @@ class ConfigServiceV2Connection { virtual future> CopyLogEntries(google::logging::v2::CopyLogEntriesRequest const& request); + + virtual StatusOr CopyLogEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CopyLogEntriesRequest const& request); + + virtual future> + CopyLogEntries(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/logging/v2/internal/config_service_v2_connection_impl.cc b/google/cloud/logging/v2/internal/config_service_v2_connection_impl.cc index b9313a377879c..8a6be14d36b77 100644 --- a/google/cloud/logging/v2/internal/config_service_v2_connection_impl.cc +++ b/google/cloud/logging/v2/internal/config_service_v2_connection_impl.cc @@ -148,6 +148,58 @@ ConfigServiceV2ConnectionImpl::CreateBucketAsync( polling_policy(*current), __func__); } +StatusOr +ConfigServiceV2ConnectionImpl::CreateBucketAsync( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CreateBucketRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateBucketAsync(request), + [this](grpc::ClientContext& context, Options const& options, + google::logging::v2::CreateBucketRequest const& request) { + return stub_->CreateBucketAsync(context, options, request); + }, + *current, request, __func__); +} + +future> +ConfigServiceV2ConnectionImpl::CreateBucketAsync( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateBucketAsync", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::logging::v2::LogBucket>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::logging::v2::LogBucket>, + polling_policy(*current), __func__); +} + future> ConfigServiceV2ConnectionImpl::UpdateBucketAsync( google::logging::v2::UpdateBucketRequest const& request) { @@ -186,6 +238,58 @@ ConfigServiceV2ConnectionImpl::UpdateBucketAsync( polling_policy(*current), __func__); } +StatusOr +ConfigServiceV2ConnectionImpl::UpdateBucketAsync( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::UpdateBucketRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateBucketAsync(request), + [this](grpc::ClientContext& context, Options const& options, + google::logging::v2::UpdateBucketRequest const& request) { + return stub_->UpdateBucketAsync(context, options, request); + }, + *current, request, __func__); +} + +future> +ConfigServiceV2ConnectionImpl::UpdateBucketAsync( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateBucketAsync", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::logging::v2::LogBucket>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::logging::v2::LogBucket>, + polling_policy(*current), __func__); +} + StatusOr ConfigServiceV2ConnectionImpl::CreateBucket( google::logging::v2::CreateBucketRequest const& request) { @@ -450,6 +554,57 @@ ConfigServiceV2ConnectionImpl::CreateLink( polling_policy(*current), __func__); } +StatusOr +ConfigServiceV2ConnectionImpl::CreateLink( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CreateLinkRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateLink(request), + [this](grpc::ClientContext& context, Options const& options, + google::logging::v2::CreateLinkRequest const& request) { + return stub_->CreateLink(context, options, request); + }, + *current, request, __func__); +} + +future> +ConfigServiceV2ConnectionImpl::CreateLink( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateLink", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::logging::v2::Link>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::logging::v2::Link>, + polling_policy(*current), __func__); +} + future> ConfigServiceV2ConnectionImpl::DeleteLink( google::logging::v2::DeleteLinkRequest const& request) { @@ -488,6 +643,57 @@ ConfigServiceV2ConnectionImpl::DeleteLink( polling_policy(*current), __func__); } +StatusOr +ConfigServiceV2ConnectionImpl::DeleteLink( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::DeleteLinkRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteLink(request), + [this](grpc::ClientContext& context, Options const& options, + google::logging::v2::DeleteLinkRequest const& request) { + return stub_->DeleteLink(context, options, request); + }, + *current, request, __func__); +} + +future> +ConfigServiceV2ConnectionImpl::DeleteLink( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteLink", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::logging::v2::LinkMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::logging::v2::LinkMetadata>, + polling_policy(*current), __func__); +} + StreamRange ConfigServiceV2ConnectionImpl::ListLinks( google::logging::v2::ListLinksRequest request) { request.clear_page_token(); @@ -715,6 +921,59 @@ ConfigServiceV2ConnectionImpl::CopyLogEntries( polling_policy(*current), __func__); } +StatusOr +ConfigServiceV2ConnectionImpl::CopyLogEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CopyLogEntriesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CopyLogEntries(request), + [this](grpc::ClientContext& context, Options const& options, + google::logging::v2::CopyLogEntriesRequest const& request) { + return stub_->CopyLogEntries(context, options, request); + }, + *current, request, __func__); +} + +future> +ConfigServiceV2ConnectionImpl::CopyLogEntries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CopyLogEntries", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::logging::v2::CopyLogEntriesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::logging::v2::CopyLogEntriesResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace logging_v2_internal } // namespace cloud diff --git a/google/cloud/logging/v2/internal/config_service_v2_connection_impl.h b/google/cloud/logging/v2/internal/config_service_v2_connection_impl.h index 19a65f8a95662..0e2b3be86a74c 100644 --- a/google/cloud/logging/v2/internal/config_service_v2_connection_impl.h +++ b/google/cloud/logging/v2/internal/config_service_v2_connection_impl.h @@ -61,9 +61,25 @@ class ConfigServiceV2ConnectionImpl future> CreateBucketAsync( google::logging::v2::CreateBucketRequest const& request) override; + StatusOr CreateBucketAsync( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CreateBucketRequest const& request) override; + + future> CreateBucketAsync( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateBucketAsync( google::logging::v2::UpdateBucketRequest const& request) override; + StatusOr UpdateBucketAsync( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::UpdateBucketRequest const& request) override; + + future> UpdateBucketAsync( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateBucket( google::logging::v2::CreateBucketRequest const& request) override; @@ -109,9 +125,25 @@ class ConfigServiceV2ConnectionImpl future> CreateLink( google::logging::v2::CreateLinkRequest const& request) override; + StatusOr CreateLink( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CreateLinkRequest const& request) override; + + future> CreateLink( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteLink( google::logging::v2::DeleteLinkRequest const& request) override; + StatusOr DeleteLink( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::DeleteLinkRequest const& request) override; + + future> DeleteLink( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListLinks( google::logging::v2::ListLinksRequest request) override; @@ -148,6 +180,14 @@ class ConfigServiceV2ConnectionImpl future> CopyLogEntries( google::logging::v2::CopyLogEntriesRequest const& request) override; + StatusOr CopyLogEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CopyLogEntriesRequest const& request) override; + + future> CopyLogEntries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.cc b/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.cc index 7c858f48f91a6..2cffb08e39af3 100644 --- a/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.cc +++ b/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.cc @@ -62,6 +62,30 @@ ConfigServiceV2TracingConnection::CreateBucketAsync( return internal::EndSpan(std::move(span), child_->CreateBucketAsync(request)); } +StatusOr +ConfigServiceV2TracingConnection::CreateBucketAsync( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CreateBucketRequest const& request) { + auto span = internal::MakeSpan( + "logging_v2::ConfigServiceV2Connection::CreateBucketAsync"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateBucketAsync(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConfigServiceV2TracingConnection::CreateBucketAsync( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "logging_v2::ConfigServiceV2Connection::CreateBucketAsync"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateBucketAsync(google::cloud::ExperimentalTag{}, operation)); +} + future> ConfigServiceV2TracingConnection::UpdateBucketAsync( google::logging::v2::UpdateBucketRequest const& request) { @@ -71,6 +95,30 @@ ConfigServiceV2TracingConnection::UpdateBucketAsync( return internal::EndSpan(std::move(span), child_->UpdateBucketAsync(request)); } +StatusOr +ConfigServiceV2TracingConnection::UpdateBucketAsync( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::UpdateBucketRequest const& request) { + auto span = internal::MakeSpan( + "logging_v2::ConfigServiceV2Connection::UpdateBucketAsync"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateBucketAsync(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConfigServiceV2TracingConnection::UpdateBucketAsync( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "logging_v2::ConfigServiceV2Connection::UpdateBucketAsync"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateBucketAsync(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ConfigServiceV2TracingConnection::CreateBucket( google::logging::v2::CreateBucketRequest const& request) { @@ -206,6 +254,30 @@ ConfigServiceV2TracingConnection::CreateLink( return internal::EndSpan(std::move(span), child_->CreateLink(request)); } +StatusOr +ConfigServiceV2TracingConnection::CreateLink( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CreateLinkRequest const& request) { + auto span = + internal::MakeSpan("logging_v2::ConfigServiceV2Connection::CreateLink"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateLink(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConfigServiceV2TracingConnection::CreateLink( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("logging_v2::ConfigServiceV2Connection::CreateLink"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateLink(google::cloud::ExperimentalTag{}, operation)); +} + future> ConfigServiceV2TracingConnection::DeleteLink( google::logging::v2::DeleteLinkRequest const& request) { @@ -215,6 +287,30 @@ ConfigServiceV2TracingConnection::DeleteLink( return internal::EndSpan(std::move(span), child_->DeleteLink(request)); } +StatusOr +ConfigServiceV2TracingConnection::DeleteLink( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::DeleteLinkRequest const& request) { + auto span = + internal::MakeSpan("logging_v2::ConfigServiceV2Connection::DeleteLink"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteLink(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConfigServiceV2TracingConnection::DeleteLink( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("logging_v2::ConfigServiceV2Connection::DeleteLink"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteLink(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ConfigServiceV2TracingConnection::ListLinks( google::logging::v2::ListLinksRequest request) { @@ -325,6 +421,30 @@ ConfigServiceV2TracingConnection::CopyLogEntries( return internal::EndSpan(std::move(span), child_->CopyLogEntries(request)); } +StatusOr +ConfigServiceV2TracingConnection::CopyLogEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CopyLogEntriesRequest const& request) { + auto span = internal::MakeSpan( + "logging_v2::ConfigServiceV2Connection::CopyLogEntries"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CopyLogEntries(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ConfigServiceV2TracingConnection::CopyLogEntries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "logging_v2::ConfigServiceV2Connection::CopyLogEntries"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CopyLogEntries(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.h b/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.h index cab05808f50b8..9406cb60b0cba 100644 --- a/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.h +++ b/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.h @@ -49,9 +49,25 @@ class ConfigServiceV2TracingConnection future> CreateBucketAsync( google::logging::v2::CreateBucketRequest const& request) override; + StatusOr CreateBucketAsync( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CreateBucketRequest const& request) override; + + future> CreateBucketAsync( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateBucketAsync( google::logging::v2::UpdateBucketRequest const& request) override; + StatusOr UpdateBucketAsync( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::UpdateBucketRequest const& request) override; + + future> UpdateBucketAsync( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateBucket( google::logging::v2::CreateBucketRequest const& request) override; @@ -97,9 +113,25 @@ class ConfigServiceV2TracingConnection future> CreateLink( google::logging::v2::CreateLinkRequest const& request) override; + StatusOr CreateLink( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CreateLinkRequest const& request) override; + + future> CreateLink( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteLink( google::logging::v2::DeleteLinkRequest const& request) override; + StatusOr DeleteLink( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::DeleteLinkRequest const& request) override; + + future> DeleteLink( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListLinks( google::logging::v2::ListLinksRequest request) override; @@ -136,6 +168,14 @@ class ConfigServiceV2TracingConnection future> CopyLogEntries( google::logging::v2::CopyLogEntriesRequest const& request) override; + StatusOr CopyLogEntries( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CopyLogEntriesRequest const& request) override; + + future> CopyLogEntries( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/logging/v2/logging_service_v2_connection.h b/google/cloud/logging/v2/logging_service_v2_connection.h index 3204b4821f69e..5eba660850549 100644 --- a/google/cloud/logging/v2/logging_service_v2_connection.h +++ b/google/cloud/logging/v2/logging_service_v2_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/logging/v2/internal/logging_service_v2_retry_traits.h" #include "google/cloud/logging/v2/logging_service_v2_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/async_read_write_stream_impl.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/logging/v2/metrics_service_v2_connection.h b/google/cloud/logging/v2/metrics_service_v2_connection.h index 9953ea0ec198e..b3a5dc37c37fc 100644 --- a/google/cloud/logging/v2/metrics_service_v2_connection.h +++ b/google/cloud/logging/v2/metrics_service_v2_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/logging/v2/internal/metrics_service_v2_retry_traits.h" #include "google/cloud/logging/v2/metrics_service_v2_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/logging/v2/mocks/mock_config_service_v2_connection.h b/google/cloud/logging/v2/mocks/mock_config_service_v2_connection.h index ae2d4d72250b1..b70780c9b2099 100644 --- a/google/cloud/logging/v2/mocks/mock_config_service_v2_connection.h +++ b/google/cloud/logging/v2/mocks/mock_config_service_v2_connection.h @@ -59,11 +59,33 @@ class MockConfigServiceV2Connection (google::logging::v2::CreateBucketRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateBucketAsync, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CreateBucketRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateBucketAsync, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateBucketAsync, (google::logging::v2::UpdateBucketRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateBucketAsync, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::UpdateBucketRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateBucketAsync, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, CreateBucket, (google::logging::v2::CreateBucketRequest const& request), (override)); @@ -120,10 +142,30 @@ class MockConfigServiceV2Connection (google::logging::v2::CreateLinkRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateLink, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CreateLinkRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateLink, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteLink, (google::logging::v2::DeleteLinkRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteLink, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::DeleteLinkRequest const& request), + (override)); + + MOCK_METHOD(future>, DeleteLink, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListLinks, (google::logging::v2::ListLinksRequest request), (override)); @@ -169,6 +211,17 @@ class MockConfigServiceV2Connection CopyLogEntries, (google::logging::v2::CopyLogEntriesRequest const& request), (override)); + + MOCK_METHOD(StatusOr, CopyLogEntries, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::logging::v2::CopyLogEntriesRequest const& request), + (override)); + + MOCK_METHOD(future>, + CopyLogEntries, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.cc b/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.cc index 8103a35113c01..082e3f1f9f3a0 100644 --- a/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.cc +++ b/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.cc @@ -113,6 +113,61 @@ ManagedIdentitiesServiceConnectionImpl::CreateMicrosoftAdDomain( polling_policy(*current), __func__); } +StatusOr +ManagedIdentitiesServiceConnectionImpl::CreateMicrosoftAdDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::CreateMicrosoftAdDomainRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateMicrosoftAdDomain(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::managedidentities::v1:: + CreateMicrosoftAdDomainRequest const& request) { + return stub_->CreateMicrosoftAdDomain(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedIdentitiesServiceConnectionImpl::CreateMicrosoftAdDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateMicrosoftAdDomain", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::managedidentities::v1::Domain>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::managedidentities::v1::Domain>, + polling_policy(*current), __func__); +} + StatusOr ManagedIdentitiesServiceConnectionImpl::ResetAdminPassword( google::cloud::managedidentities::v1::ResetAdminPasswordRequest const& @@ -221,6 +276,60 @@ ManagedIdentitiesServiceConnectionImpl::UpdateDomain( polling_policy(*current), __func__); } +StatusOr +ManagedIdentitiesServiceConnectionImpl::UpdateDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::UpdateDomainRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDomain(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::managedidentities::v1::UpdateDomainRequest const& + request) { + return stub_->UpdateDomain(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedIdentitiesServiceConnectionImpl::UpdateDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateDomain", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::managedidentities::v1::Domain>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::managedidentities::v1::Domain>, + polling_policy(*current), __func__); +} + future> ManagedIdentitiesServiceConnectionImpl::DeleteDomain( google::cloud::managedidentities::v1::DeleteDomainRequest const& request) { @@ -261,6 +370,60 @@ ManagedIdentitiesServiceConnectionImpl::DeleteDomain( polling_policy(*current), __func__); } +StatusOr +ManagedIdentitiesServiceConnectionImpl::DeleteDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::DeleteDomainRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDomain(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::managedidentities::v1::DeleteDomainRequest const& + request) { + return stub_->DeleteDomain(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedIdentitiesServiceConnectionImpl::DeleteDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDomain", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::managedidentities::v1::OpMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::managedidentities::v1::OpMetadata>, + polling_policy(*current), __func__); +} + future> ManagedIdentitiesServiceConnectionImpl::AttachTrust( google::cloud::managedidentities::v1::AttachTrustRequest const& request) { @@ -301,6 +464,60 @@ ManagedIdentitiesServiceConnectionImpl::AttachTrust( polling_policy(*current), __func__); } +StatusOr +ManagedIdentitiesServiceConnectionImpl::AttachTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::AttachTrustRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AttachTrust(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::managedidentities::v1::AttachTrustRequest const& + request) { + return stub_->AttachTrust(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedIdentitiesServiceConnectionImpl::AttachTrust( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to AttachTrust", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::managedidentities::v1::Domain>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::managedidentities::v1::Domain>, + polling_policy(*current), __func__); +} + future> ManagedIdentitiesServiceConnectionImpl::ReconfigureTrust( google::cloud::managedidentities::v1::ReconfigureTrustRequest const& @@ -342,6 +559,62 @@ ManagedIdentitiesServiceConnectionImpl::ReconfigureTrust( polling_policy(*current), __func__); } +StatusOr +ManagedIdentitiesServiceConnectionImpl::ReconfigureTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::ReconfigureTrustRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ReconfigureTrust(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::managedidentities::v1::ReconfigureTrustRequest const& + request) { + return stub_->ReconfigureTrust(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedIdentitiesServiceConnectionImpl::ReconfigureTrust( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ReconfigureTrust", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::managedidentities::v1::Domain>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::managedidentities::v1::Domain>, + polling_policy(*current), __func__); +} + future> ManagedIdentitiesServiceConnectionImpl::DetachTrust( google::cloud::managedidentities::v1::DetachTrustRequest const& request) { @@ -382,6 +655,60 @@ ManagedIdentitiesServiceConnectionImpl::DetachTrust( polling_policy(*current), __func__); } +StatusOr +ManagedIdentitiesServiceConnectionImpl::DetachTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::DetachTrustRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DetachTrust(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::managedidentities::v1::DetachTrustRequest const& + request) { + return stub_->DetachTrust(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedIdentitiesServiceConnectionImpl::DetachTrust( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DetachTrust", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::managedidentities::v1::Domain>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::managedidentities::v1::Domain>, + polling_policy(*current), __func__); +} + future> ManagedIdentitiesServiceConnectionImpl::ValidateTrust( google::cloud::managedidentities::v1::ValidateTrustRequest const& request) { @@ -422,6 +749,60 @@ ManagedIdentitiesServiceConnectionImpl::ValidateTrust( polling_policy(*current), __func__); } +StatusOr +ManagedIdentitiesServiceConnectionImpl::ValidateTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::ValidateTrustRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ValidateTrust(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::managedidentities::v1::ValidateTrustRequest const& + request) { + return stub_->ValidateTrust(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedIdentitiesServiceConnectionImpl::ValidateTrust( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ValidateTrust", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::managedidentities::v1::Domain>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::managedidentities::v1::Domain>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace managedidentities_v1_internal } // namespace cloud diff --git a/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.h b/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.h index 8e58732c92a0a..f37d6f12ffded 100644 --- a/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.h +++ b/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.h @@ -59,6 +59,16 @@ class ManagedIdentitiesServiceConnectionImpl google::cloud::managedidentities::v1:: CreateMicrosoftAdDomainRequest const& request) override; + StatusOr CreateMicrosoftAdDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1:: + CreateMicrosoftAdDomainRequest const& request) override; + + future> + CreateMicrosoftAdDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ResetAdminPassword( google::cloud::managedidentities::v1::ResetAdminPasswordRequest const& @@ -76,27 +86,81 @@ class ManagedIdentitiesServiceConnectionImpl google::cloud::managedidentities::v1::UpdateDomainRequest const& request) override; + StatusOr UpdateDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::UpdateDomainRequest const& request) + override; + + future> UpdateDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDomain(google::cloud::managedidentities::v1::DeleteDomainRequest const& request) override; + StatusOr DeleteDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::DeleteDomainRequest const& request) + override; + + future> + DeleteDomain(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AttachTrust( google::cloud::managedidentities::v1::AttachTrustRequest const& request) override; + StatusOr AttachTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::AttachTrustRequest const& request) + override; + + future> AttachTrust( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReconfigureTrust( google::cloud::managedidentities::v1::ReconfigureTrustRequest const& request) override; + StatusOr ReconfigureTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::ReconfigureTrustRequest const& + request) override; + + future> + ReconfigureTrust(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DetachTrust( google::cloud::managedidentities::v1::DetachTrustRequest const& request) override; + StatusOr DetachTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::DetachTrustRequest const& request) + override; + + future> DetachTrust( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ValidateTrust( google::cloud::managedidentities::v1::ValidateTrustRequest const& request) override; + StatusOr ValidateTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::ValidateTrustRequest const& request) + override; + + future> ValidateTrust( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr diff --git a/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.cc b/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.cc index ad325feebb074..5dc3a289bb4be 100644 --- a/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.cc +++ b/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.cc @@ -48,6 +48,33 @@ ManagedIdentitiesServiceTracingConnection::CreateMicrosoftAdDomain( child_->CreateMicrosoftAdDomain(request)); } +StatusOr +ManagedIdentitiesServiceTracingConnection::CreateMicrosoftAdDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::CreateMicrosoftAdDomainRequest const& + request) { + auto span = internal::MakeSpan( + "managedidentities_v1::ManagedIdentitiesServiceConnection::" + "CreateMicrosoftAdDomain"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateMicrosoftAdDomain( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedIdentitiesServiceTracingConnection::CreateMicrosoftAdDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "managedidentities_v1::ManagedIdentitiesServiceConnection::" + "CreateMicrosoftAdDomain"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateMicrosoftAdDomain( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ManagedIdentitiesServiceTracingConnection::ResetAdminPassword( google::cloud::managedidentities::v1::ResetAdminPasswordRequest const& @@ -89,6 +116,30 @@ ManagedIdentitiesServiceTracingConnection::UpdateDomain( return internal::EndSpan(std::move(span), child_->UpdateDomain(request)); } +StatusOr +ManagedIdentitiesServiceTracingConnection::UpdateDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::UpdateDomainRequest const& request) { + auto span = internal::MakeSpan( + "managedidentities_v1::ManagedIdentitiesServiceConnection::UpdateDomain"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateDomain(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedIdentitiesServiceTracingConnection::UpdateDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "managedidentities_v1::ManagedIdentitiesServiceConnection::UpdateDomain"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateDomain(google::cloud::ExperimentalTag{}, operation)); +} + future> ManagedIdentitiesServiceTracingConnection::DeleteDomain( google::cloud::managedidentities::v1::DeleteDomainRequest const& request) { @@ -98,6 +149,30 @@ ManagedIdentitiesServiceTracingConnection::DeleteDomain( return internal::EndSpan(std::move(span), child_->DeleteDomain(request)); } +StatusOr +ManagedIdentitiesServiceTracingConnection::DeleteDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::DeleteDomainRequest const& request) { + auto span = internal::MakeSpan( + "managedidentities_v1::ManagedIdentitiesServiceConnection::DeleteDomain"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteDomain(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedIdentitiesServiceTracingConnection::DeleteDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "managedidentities_v1::ManagedIdentitiesServiceConnection::DeleteDomain"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteDomain(google::cloud::ExperimentalTag{}, operation)); +} + future> ManagedIdentitiesServiceTracingConnection::AttachTrust( google::cloud::managedidentities::v1::AttachTrustRequest const& request) { @@ -107,6 +182,30 @@ ManagedIdentitiesServiceTracingConnection::AttachTrust( return internal::EndSpan(std::move(span), child_->AttachTrust(request)); } +StatusOr +ManagedIdentitiesServiceTracingConnection::AttachTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::AttachTrustRequest const& request) { + auto span = internal::MakeSpan( + "managedidentities_v1::ManagedIdentitiesServiceConnection::AttachTrust"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AttachTrust(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedIdentitiesServiceTracingConnection::AttachTrust( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "managedidentities_v1::ManagedIdentitiesServiceConnection::AttachTrust"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AttachTrust(google::cloud::ExperimentalTag{}, operation)); +} + future> ManagedIdentitiesServiceTracingConnection::ReconfigureTrust( google::cloud::managedidentities::v1::ReconfigureTrustRequest const& @@ -118,6 +217,33 @@ ManagedIdentitiesServiceTracingConnection::ReconfigureTrust( return internal::EndSpan(std::move(span), child_->ReconfigureTrust(request)); } +StatusOr +ManagedIdentitiesServiceTracingConnection::ReconfigureTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::ReconfigureTrustRequest const& + request) { + auto span = internal::MakeSpan( + "managedidentities_v1::ManagedIdentitiesServiceConnection::" + "ReconfigureTrust"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ReconfigureTrust(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedIdentitiesServiceTracingConnection::ReconfigureTrust( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "managedidentities_v1::ManagedIdentitiesServiceConnection::" + "ReconfigureTrust"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ReconfigureTrust(google::cloud::ExperimentalTag{}, operation)); +} + future> ManagedIdentitiesServiceTracingConnection::DetachTrust( google::cloud::managedidentities::v1::DetachTrustRequest const& request) { @@ -127,6 +253,30 @@ ManagedIdentitiesServiceTracingConnection::DetachTrust( return internal::EndSpan(std::move(span), child_->DetachTrust(request)); } +StatusOr +ManagedIdentitiesServiceTracingConnection::DetachTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::DetachTrustRequest const& request) { + auto span = internal::MakeSpan( + "managedidentities_v1::ManagedIdentitiesServiceConnection::DetachTrust"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DetachTrust(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedIdentitiesServiceTracingConnection::DetachTrust( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "managedidentities_v1::ManagedIdentitiesServiceConnection::DetachTrust"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DetachTrust(google::cloud::ExperimentalTag{}, operation)); +} + future> ManagedIdentitiesServiceTracingConnection::ValidateTrust( google::cloud::managedidentities::v1::ValidateTrustRequest const& request) { @@ -137,6 +287,32 @@ ManagedIdentitiesServiceTracingConnection::ValidateTrust( return internal::EndSpan(std::move(span), child_->ValidateTrust(request)); } +StatusOr +ManagedIdentitiesServiceTracingConnection::ValidateTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::ValidateTrustRequest const& request) { + auto span = internal::MakeSpan( + "managedidentities_v1::ManagedIdentitiesServiceConnection::" + "ValidateTrust"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ValidateTrust(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedIdentitiesServiceTracingConnection::ValidateTrust( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "managedidentities_v1::ManagedIdentitiesServiceConnection::" + "ValidateTrust"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ValidateTrust(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.h b/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.h index 748a06b6c7237..156287c11beb2 100644 --- a/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.h +++ b/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.h @@ -46,6 +46,16 @@ class ManagedIdentitiesServiceTracingConnection google::cloud::managedidentities::v1:: CreateMicrosoftAdDomainRequest const& request) override; + StatusOr CreateMicrosoftAdDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1:: + CreateMicrosoftAdDomainRequest const& request) override; + + future> + CreateMicrosoftAdDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr ResetAdminPassword( google::cloud::managedidentities::v1::ResetAdminPasswordRequest const& @@ -63,27 +73,81 @@ class ManagedIdentitiesServiceTracingConnection google::cloud::managedidentities::v1::UpdateDomainRequest const& request) override; + StatusOr UpdateDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::UpdateDomainRequest const& request) + override; + + future> UpdateDomain( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDomain(google::cloud::managedidentities::v1::DeleteDomainRequest const& request) override; + StatusOr DeleteDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::DeleteDomainRequest const& request) + override; + + future> + DeleteDomain(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AttachTrust( google::cloud::managedidentities::v1::AttachTrustRequest const& request) override; + StatusOr AttachTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::AttachTrustRequest const& request) + override; + + future> AttachTrust( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReconfigureTrust( google::cloud::managedidentities::v1::ReconfigureTrustRequest const& request) override; + StatusOr ReconfigureTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::ReconfigureTrustRequest const& + request) override; + + future> + ReconfigureTrust(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DetachTrust( google::cloud::managedidentities::v1::DetachTrustRequest const& request) override; + StatusOr DetachTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::DetachTrustRequest const& request) + override; + + future> DetachTrust( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ValidateTrust( google::cloud::managedidentities::v1::ValidateTrustRequest const& request) override; + StatusOr ValidateTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::ValidateTrustRequest const& request) + override; + + future> ValidateTrust( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/managedidentities/v1/managed_identities_connection.cc b/google/cloud/managedidentities/v1/managed_identities_connection.cc index 3f942036d82a3..b1b3462e7a2f1 100644 --- a/google/cloud/managedidentities/v1/managed_identities_connection.cc +++ b/google/cloud/managedidentities/v1/managed_identities_connection.cc @@ -48,6 +48,23 @@ ManagedIdentitiesServiceConnection::CreateMicrosoftAdDomain( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ManagedIdentitiesServiceConnection::CreateMicrosoftAdDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1:: + CreateMicrosoftAdDomainRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedIdentitiesServiceConnection::CreateMicrosoftAdDomain( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ManagedIdentitiesServiceConnection::ResetAdminPassword( google::cloud::managedidentities::v1::ResetAdminPasswordRequest const&) { @@ -76,6 +93,22 @@ ManagedIdentitiesServiceConnection::UpdateDomain( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ManagedIdentitiesServiceConnection::UpdateDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::UpdateDomainRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedIdentitiesServiceConnection::UpdateDomain( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ManagedIdentitiesServiceConnection::DeleteDomain( google::cloud::managedidentities::v1::DeleteDomainRequest const&) { @@ -84,6 +117,22 @@ ManagedIdentitiesServiceConnection::DeleteDomain( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ManagedIdentitiesServiceConnection::DeleteDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::DeleteDomainRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedIdentitiesServiceConnection::DeleteDomain( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ManagedIdentitiesServiceConnection::AttachTrust( google::cloud::managedidentities::v1::AttachTrustRequest const&) { @@ -92,6 +141,22 @@ ManagedIdentitiesServiceConnection::AttachTrust( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ManagedIdentitiesServiceConnection::AttachTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::AttachTrustRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedIdentitiesServiceConnection::AttachTrust( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ManagedIdentitiesServiceConnection::ReconfigureTrust( google::cloud::managedidentities::v1::ReconfigureTrustRequest const&) { @@ -100,9 +165,41 @@ ManagedIdentitiesServiceConnection::ReconfigureTrust( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ManagedIdentitiesServiceConnection::ReconfigureTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::ReconfigureTrustRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +ManagedIdentitiesServiceConnection::ReconfigureTrust( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedIdentitiesServiceConnection::DetachTrust( + google::cloud::managedidentities::v1::DetachTrustRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr ManagedIdentitiesServiceConnection::DetachTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::managedidentities::v1::DetachTrustRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedIdentitiesServiceConnection::DetachTrust( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -116,6 +213,22 @@ ManagedIdentitiesServiceConnection::ValidateTrust( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ManagedIdentitiesServiceConnection::ValidateTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::ValidateTrustRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedIdentitiesServiceConnection::ValidateTrust( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeManagedIdentitiesServiceConnection(Options options) { internal::CheckExpectedOptions CreateMicrosoftAdDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1:: + CreateMicrosoftAdDomainRequest const& request); + + virtual future> + CreateMicrosoftAdDomain(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::cloud::managedidentities::v1::ResetAdminPasswordResponse> ResetAdminPassword( @@ -219,27 +230,77 @@ class ManagedIdentitiesServiceConnection { UpdateDomain( google::cloud::managedidentities::v1::UpdateDomainRequest const& request); + virtual StatusOr UpdateDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::UpdateDomainRequest const& request); + + virtual future> + UpdateDomain(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteDomain( google::cloud::managedidentities::v1::DeleteDomainRequest const& request); + virtual StatusOr DeleteDomain( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::DeleteDomainRequest const& request); + + virtual future> + DeleteDomain(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> AttachTrust( google::cloud::managedidentities::v1::AttachTrustRequest const& request); + virtual StatusOr AttachTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::AttachTrustRequest const& request); + + virtual future> + AttachTrust(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ReconfigureTrust( google::cloud::managedidentities::v1::ReconfigureTrustRequest const& request); + virtual StatusOr ReconfigureTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::ReconfigureTrustRequest const& + request); + + virtual future> + ReconfigureTrust(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DetachTrust( google::cloud::managedidentities::v1::DetachTrustRequest const& request); + virtual StatusOr DetachTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::DetachTrustRequest const& request); + + virtual future> + DetachTrust(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ValidateTrust( google::cloud::managedidentities::v1::ValidateTrustRequest const& request); + + virtual StatusOr ValidateTrust( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::ValidateTrustRequest const& + request); + + virtual future> + ValidateTrust(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/managedidentities/v1/mocks/mock_managed_identities_connection.h b/google/cloud/managedidentities/v1/mocks/mock_managed_identities_connection.h index b70bb9aef91f1..19de7a4c67b1a 100644 --- a/google/cloud/managedidentities/v1/mocks/mock_managed_identities_connection.h +++ b/google/cloud/managedidentities/v1/mocks/mock_managed_identities_connection.h @@ -53,6 +53,18 @@ class MockManagedIdentitiesServiceConnection CreateMicrosoftAdDomainRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateMicrosoftAdDomain, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1:: + CreateMicrosoftAdDomainRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateMicrosoftAdDomain, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr< google::cloud::managedidentities::v1::ResetAdminPasswordResponse>, @@ -77,6 +89,18 @@ class MockManagedIdentitiesServiceConnection request), (override)); + MOCK_METHOD(StatusOr, UpdateDomain, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::UpdateDomainRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateDomain, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteDomain, @@ -84,12 +108,37 @@ class MockManagedIdentitiesServiceConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteDomain, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::DeleteDomainRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteDomain, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, AttachTrust, (google::cloud::managedidentities::v1::AttachTrustRequest const& request), (override)); + MOCK_METHOD( + StatusOr, AttachTrust, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::AttachTrustRequest const& request), + (override)); + + MOCK_METHOD(future>, + AttachTrust, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ReconfigureTrust, @@ -97,17 +146,54 @@ class MockManagedIdentitiesServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, ReconfigureTrust, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::ReconfigureTrustRequest const& + request), + (override)); + + MOCK_METHOD(future>, + ReconfigureTrust, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DetachTrust, (google::cloud::managedidentities::v1::DetachTrustRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DetachTrust, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::DetachTrustRequest const& request), + (override)); + + MOCK_METHOD(future>, + DetachTrust, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, ValidateTrust, (google::cloud::managedidentities::v1::ValidateTrustRequest const& request), (override)); + + MOCK_METHOD(StatusOr, ValidateTrust, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedidentities::v1::ValidateTrustRequest const& + request), + (override)); + + MOCK_METHOD(future>, + ValidateTrust, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.cc b/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.cc index 60622ca9fddd2..3630dda434a90 100644 --- a/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.cc +++ b/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.cc @@ -155,6 +155,60 @@ ManagedKafkaConnectionImpl::CreateCluster( polling_policy(*current), __func__); } +StatusOr +ManagedKafkaConnectionImpl::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::CreateClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::managedkafka::v1::CreateClusterRequest const& + request) { + return stub_->CreateCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedKafkaConnectionImpl::CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::managedkafka::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::managedkafka::v1::Cluster>, + polling_policy(*current), __func__); +} + future> ManagedKafkaConnectionImpl::UpdateCluster( google::cloud::managedkafka::v1::UpdateClusterRequest const& request) { @@ -195,6 +249,60 @@ ManagedKafkaConnectionImpl::UpdateCluster( polling_policy(*current), __func__); } +StatusOr +ManagedKafkaConnectionImpl::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::UpdateClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::managedkafka::v1::UpdateClusterRequest const& + request) { + return stub_->UpdateCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedKafkaConnectionImpl::UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::managedkafka::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::managedkafka::v1::Cluster>, + polling_policy(*current), __func__); +} + future> ManagedKafkaConnectionImpl::DeleteCluster( google::cloud::managedkafka::v1::DeleteClusterRequest const& request) { @@ -235,6 +343,60 @@ ManagedKafkaConnectionImpl::DeleteCluster( polling_policy(*current), __func__); } +StatusOr +ManagedKafkaConnectionImpl::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::DeleteClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::managedkafka::v1::DeleteClusterRequest const& + request) { + return stub_->DeleteCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedKafkaConnectionImpl::DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::managedkafka::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::managedkafka::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange ManagedKafkaConnectionImpl::ListTopics( google::cloud::managedkafka::v1::ListTopicsRequest request) { diff --git a/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.h b/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.h index ca300f0a5887d..25fafde111d9e 100644 --- a/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.h +++ b/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.h @@ -63,14 +63,41 @@ class ManagedKafkaConnectionImpl google::cloud::managedkafka::v1::CreateClusterRequest const& request) override; + StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::CreateClusterRequest const& request) + override; + + future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCluster( google::cloud::managedkafka::v1::UpdateClusterRequest const& request) override; + StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::UpdateClusterRequest const& request) + override; + + future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCluster(google::cloud::managedkafka::v1::DeleteClusterRequest const& request) override; + StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::DeleteClusterRequest const& request) + override; + + future> + DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTopics( google::cloud::managedkafka::v1::ListTopicsRequest request) override; diff --git a/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.cc b/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.cc index 1e5bc749984a3..56abb66611064 100644 --- a/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.cc +++ b/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.cc @@ -62,6 +62,30 @@ ManagedKafkaTracingConnection::CreateCluster( return internal::EndSpan(std::move(span), child_->CreateCluster(request)); } +StatusOr +ManagedKafkaTracingConnection::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::CreateClusterRequest const& request) { + auto span = internal::MakeSpan( + "managedkafka_v1::ManagedKafkaConnection::CreateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedKafkaTracingConnection::CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "managedkafka_v1::ManagedKafkaConnection::CreateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> ManagedKafkaTracingConnection::UpdateCluster( google::cloud::managedkafka::v1::UpdateClusterRequest const& request) { @@ -71,6 +95,30 @@ ManagedKafkaTracingConnection::UpdateCluster( return internal::EndSpan(std::move(span), child_->UpdateCluster(request)); } +StatusOr +ManagedKafkaTracingConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::UpdateClusterRequest const& request) { + auto span = internal::MakeSpan( + "managedkafka_v1::ManagedKafkaConnection::UpdateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedKafkaTracingConnection::UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "managedkafka_v1::ManagedKafkaConnection::UpdateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> ManagedKafkaTracingConnection::DeleteCluster( google::cloud::managedkafka::v1::DeleteClusterRequest const& request) { @@ -80,6 +128,30 @@ ManagedKafkaTracingConnection::DeleteCluster( return internal::EndSpan(std::move(span), child_->DeleteCluster(request)); } +StatusOr +ManagedKafkaTracingConnection::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::DeleteClusterRequest const& request) { + auto span = internal::MakeSpan( + "managedkafka_v1::ManagedKafkaConnection::DeleteCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedKafkaTracingConnection::DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "managedkafka_v1::ManagedKafkaConnection::DeleteCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteCluster(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ManagedKafkaTracingConnection::ListTopics( google::cloud::managedkafka::v1::ListTopicsRequest request) { diff --git a/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.h b/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.h index a67ba3ca5dbc5..97d5f3494de9d 100644 --- a/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.h +++ b/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.h @@ -51,14 +51,41 @@ class ManagedKafkaTracingConnection google::cloud::managedkafka::v1::CreateClusterRequest const& request) override; + StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::CreateClusterRequest const& request) + override; + + future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCluster( google::cloud::managedkafka::v1::UpdateClusterRequest const& request) override; + StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::UpdateClusterRequest const& request) + override; + + future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCluster(google::cloud::managedkafka::v1::DeleteClusterRequest const& request) override; + StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::DeleteClusterRequest const& request) + override; + + future> + DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTopics( google::cloud::managedkafka::v1::ListTopicsRequest request) override; diff --git a/google/cloud/managedkafka/v1/managed_kafka_connection.cc b/google/cloud/managedkafka/v1/managed_kafka_connection.cc index 7ebd767531963..9f6b9139f1f85 100644 --- a/google/cloud/managedkafka/v1/managed_kafka_connection.cc +++ b/google/cloud/managedkafka/v1/managed_kafka_connection.cc @@ -60,6 +60,21 @@ ManagedKafkaConnection::CreateCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ManagedKafkaConnection::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::CreateClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedKafkaConnection::CreateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ManagedKafkaConnection::UpdateCluster( google::cloud::managedkafka::v1::UpdateClusterRequest const&) { @@ -68,6 +83,21 @@ ManagedKafkaConnection::UpdateCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ManagedKafkaConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::UpdateClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedKafkaConnection::UpdateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ManagedKafkaConnection::DeleteCluster( google::cloud::managedkafka::v1::DeleteClusterRequest const&) { @@ -76,6 +106,21 @@ ManagedKafkaConnection::DeleteCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ManagedKafkaConnection::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::DeleteClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedKafkaConnection::DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ManagedKafkaConnection::ListTopics( google::cloud::managedkafka::v1:: diff --git a/google/cloud/managedkafka/v1/managed_kafka_connection.h b/google/cloud/managedkafka/v1/managed_kafka_connection.h index a4b7752e5df5b..7a1324392532d 100644 --- a/google/cloud/managedkafka/v1/managed_kafka_connection.h +++ b/google/cloud/managedkafka/v1/managed_kafka_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/managedkafka/v1/internal/managed_kafka_retry_traits.h" #include "google/cloud/managedkafka/v1/managed_kafka_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -195,14 +197,38 @@ class ManagedKafkaConnection { CreateCluster( google::cloud::managedkafka::v1::CreateClusterRequest const& request); + virtual StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::CreateClusterRequest const& request); + + virtual future> + CreateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateCluster( google::cloud::managedkafka::v1::UpdateClusterRequest const& request); + virtual StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::UpdateClusterRequest const& request); + + virtual future> + UpdateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteCluster( google::cloud::managedkafka::v1::DeleteClusterRequest const& request); + virtual StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::DeleteClusterRequest const& request); + + virtual future> + DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListTopics( google::cloud::managedkafka::v1::ListTopicsRequest request); diff --git a/google/cloud/managedkafka/v1/mocks/mock_managed_kafka_connection.h b/google/cloud/managedkafka/v1/mocks/mock_managed_kafka_connection.h index 007643f9a0b6d..3e2524f4d5cad 100644 --- a/google/cloud/managedkafka/v1/mocks/mock_managed_kafka_connection.h +++ b/google/cloud/managedkafka/v1/mocks/mock_managed_kafka_connection.h @@ -62,17 +62,54 @@ class MockManagedKafkaConnection (google::cloud::managedkafka::v1::CreateClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::CreateClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateCluster, (google::cloud::managedkafka::v1::UpdateClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::UpdateClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteCluster, (google::cloud::managedkafka::v1::DeleteClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::managedkafka::v1::DeleteClusterRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListTopics, (google::cloud::managedkafka::v1::ListTopicsRequest request), (override)); diff --git a/google/cloud/memcache/v1/cloud_memcache_connection.cc b/google/cloud/memcache/v1/cloud_memcache_connection.cc index eb7df9ed16a56..96b6abbab56e8 100644 --- a/google/cloud/memcache/v1/cloud_memcache_connection.cc +++ b/google/cloud/memcache/v1/cloud_memcache_connection.cc @@ -60,6 +60,22 @@ CloudMemcacheConnection::CreateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudMemcacheConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::CreateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudMemcacheConnection::CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudMemcacheConnection::UpdateInstance( google::cloud::memcache::v1::UpdateInstanceRequest const&) { @@ -68,6 +84,22 @@ CloudMemcacheConnection::UpdateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudMemcacheConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::UpdateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudMemcacheConnection::UpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudMemcacheConnection::UpdateParameters( google::cloud::memcache::v1::UpdateParametersRequest const&) { @@ -76,6 +108,22 @@ CloudMemcacheConnection::UpdateParameters( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudMemcacheConnection::UpdateParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::UpdateParametersRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudMemcacheConnection::UpdateParameters( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudMemcacheConnection::DeleteInstance( google::cloud::memcache::v1::DeleteInstanceRequest const&) { @@ -84,6 +132,22 @@ CloudMemcacheConnection::DeleteInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudMemcacheConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::DeleteInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudMemcacheConnection::DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudMemcacheConnection::ApplyParameters( google::cloud::memcache::v1::ApplyParametersRequest const&) { @@ -92,6 +156,22 @@ CloudMemcacheConnection::ApplyParameters( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudMemcacheConnection::ApplyParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::ApplyParametersRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudMemcacheConnection::ApplyParameters( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudMemcacheConnection::RescheduleMaintenance( google::cloud::memcache::v1::RescheduleMaintenanceRequest const&) { @@ -100,6 +180,22 @@ CloudMemcacheConnection::RescheduleMaintenance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudMemcacheConnection::RescheduleMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::RescheduleMaintenanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudMemcacheConnection::RescheduleMaintenance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeCloudMemcacheConnection( Options options) { internal::CheckExpectedOptions CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::CreateInstanceRequest const& request); + + virtual future> + CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateInstance( google::cloud::memcache::v1::UpdateInstanceRequest const& request); + virtual StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::UpdateInstanceRequest const& request); + + virtual future> + UpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateParameters( google::cloud::memcache::v1::UpdateParametersRequest const& request); + virtual StatusOr UpdateParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::UpdateParametersRequest const& request); + + virtual future> + UpdateParameters(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteInstance( google::cloud::memcache::v1::DeleteInstanceRequest const& request); + virtual StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::DeleteInstanceRequest const& request); + + virtual future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ApplyParameters( google::cloud::memcache::v1::ApplyParametersRequest const& request); + virtual StatusOr ApplyParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::ApplyParametersRequest const& request); + + virtual future> + ApplyParameters(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RescheduleMaintenance( google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request); + + virtual StatusOr RescheduleMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request); + + virtual future> + RescheduleMaintenance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.cc b/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.cc index 8c9b5152af432..1ecf32460966f 100644 --- a/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.cc +++ b/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.cc @@ -151,6 +151,59 @@ CloudMemcacheConnectionImpl::CreateInstance( polling_policy(*current), __func__); } +StatusOr +CloudMemcacheConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::CreateInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::memcache::v1::CreateInstanceRequest const& request) { + return stub_->CreateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudMemcacheConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::memcache::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::memcache::v1::Instance>, + polling_policy(*current), __func__); +} + future> CloudMemcacheConnectionImpl::UpdateInstance( google::cloud::memcache::v1::UpdateInstanceRequest const& request) { @@ -190,6 +243,59 @@ CloudMemcacheConnectionImpl::UpdateInstance( polling_policy(*current), __func__); } +StatusOr +CloudMemcacheConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::UpdateInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::memcache::v1::UpdateInstanceRequest const& request) { + return stub_->UpdateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudMemcacheConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::memcache::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::memcache::v1::Instance>, + polling_policy(*current), __func__); +} + future> CloudMemcacheConnectionImpl::UpdateParameters( google::cloud::memcache::v1::UpdateParametersRequest const& request) { @@ -229,6 +335,59 @@ CloudMemcacheConnectionImpl::UpdateParameters( polling_policy(*current), __func__); } +StatusOr +CloudMemcacheConnectionImpl::UpdateParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::UpdateParametersRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateParameters(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::memcache::v1::UpdateParametersRequest const& request) { + return stub_->UpdateParameters(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudMemcacheConnectionImpl::UpdateParameters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateParameters", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::memcache::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::memcache::v1::Instance>, + polling_policy(*current), __func__); +} + future> CloudMemcacheConnectionImpl::DeleteInstance( google::cloud::memcache::v1::DeleteInstanceRequest const& request) { @@ -268,6 +427,60 @@ CloudMemcacheConnectionImpl::DeleteInstance( polling_policy(*current), __func__); } +StatusOr +CloudMemcacheConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::DeleteInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::memcache::v1::DeleteInstanceRequest const& request) { + return stub_->DeleteInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudMemcacheConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::memcache::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::memcache::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> CloudMemcacheConnectionImpl::ApplyParameters( google::cloud::memcache::v1::ApplyParametersRequest const& request) { @@ -307,6 +520,59 @@ CloudMemcacheConnectionImpl::ApplyParameters( polling_policy(*current), __func__); } +StatusOr +CloudMemcacheConnectionImpl::ApplyParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::ApplyParametersRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ApplyParameters(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::memcache::v1::ApplyParametersRequest const& request) { + return stub_->ApplyParameters(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudMemcacheConnectionImpl::ApplyParameters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ApplyParameters", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::memcache::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::memcache::v1::Instance>, + polling_policy(*current), __func__); +} + future> CloudMemcacheConnectionImpl::RescheduleMaintenance( google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request) { @@ -347,6 +613,59 @@ CloudMemcacheConnectionImpl::RescheduleMaintenance( polling_policy(*current), __func__); } +StatusOr +CloudMemcacheConnectionImpl::RescheduleMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RescheduleMaintenance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::memcache::v1::RescheduleMaintenanceRequest const& + request) { + return stub_->RescheduleMaintenance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudMemcacheConnectionImpl::RescheduleMaintenance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RescheduleMaintenance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::memcache::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::memcache::v1::Instance>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace memcache_v1_internal } // namespace cloud diff --git a/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.h b/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.h index 2cb83e8fe8309..d110dc20cedc6 100644 --- a/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.h +++ b/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.h @@ -62,26 +62,80 @@ class CloudMemcacheConnectionImpl google::cloud::memcache::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::CreateInstanceRequest const& request) + override; + + future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstance( google::cloud::memcache::v1::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::UpdateInstanceRequest const& request) + override; + + future> UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateParameters( google::cloud::memcache::v1::UpdateParametersRequest const& request) override; + StatusOr UpdateParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::UpdateParametersRequest const& request) + override; + + future> UpdateParameters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteInstance(google::cloud::memcache::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::DeleteInstanceRequest const& request) + override; + + future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ApplyParameters( google::cloud::memcache::v1::ApplyParametersRequest const& request) override; + StatusOr ApplyParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::ApplyParametersRequest const& request) + override; + + future> ApplyParameters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RescheduleMaintenance( google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request) override; + StatusOr RescheduleMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request) + override; + + future> RescheduleMaintenance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.cc b/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.cc index 95ce60e557b23..b6320c9c408e9 100644 --- a/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.cc +++ b/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.cc @@ -62,6 +62,30 @@ CloudMemcacheTracingConnection::CreateInstance( return internal::EndSpan(std::move(span), child_->CreateInstance(request)); } +StatusOr +CloudMemcacheTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::CreateInstanceRequest const& request) { + auto span = internal::MakeSpan( + "memcache_v1::CloudMemcacheConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudMemcacheTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "memcache_v1::CloudMemcacheConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudMemcacheTracingConnection::UpdateInstance( google::cloud::memcache::v1::UpdateInstanceRequest const& request) { @@ -71,6 +95,30 @@ CloudMemcacheTracingConnection::UpdateInstance( return internal::EndSpan(std::move(span), child_->UpdateInstance(request)); } +StatusOr +CloudMemcacheTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::UpdateInstanceRequest const& request) { + auto span = internal::MakeSpan( + "memcache_v1::CloudMemcacheConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudMemcacheTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "memcache_v1::CloudMemcacheConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudMemcacheTracingConnection::UpdateParameters( google::cloud::memcache::v1::UpdateParametersRequest const& request) { @@ -80,6 +128,30 @@ CloudMemcacheTracingConnection::UpdateParameters( return internal::EndSpan(std::move(span), child_->UpdateParameters(request)); } +StatusOr +CloudMemcacheTracingConnection::UpdateParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::UpdateParametersRequest const& request) { + auto span = internal::MakeSpan( + "memcache_v1::CloudMemcacheConnection::UpdateParameters"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateParameters(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudMemcacheTracingConnection::UpdateParameters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "memcache_v1::CloudMemcacheConnection::UpdateParameters"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateParameters(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudMemcacheTracingConnection::DeleteInstance( google::cloud::memcache::v1::DeleteInstanceRequest const& request) { @@ -89,6 +161,30 @@ CloudMemcacheTracingConnection::DeleteInstance( return internal::EndSpan(std::move(span), child_->DeleteInstance(request)); } +StatusOr +CloudMemcacheTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::DeleteInstanceRequest const& request) { + auto span = internal::MakeSpan( + "memcache_v1::CloudMemcacheConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudMemcacheTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "memcache_v1::CloudMemcacheConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudMemcacheTracingConnection::ApplyParameters( google::cloud::memcache::v1::ApplyParametersRequest const& request) { @@ -98,6 +194,30 @@ CloudMemcacheTracingConnection::ApplyParameters( return internal::EndSpan(std::move(span), child_->ApplyParameters(request)); } +StatusOr +CloudMemcacheTracingConnection::ApplyParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::ApplyParametersRequest const& request) { + auto span = internal::MakeSpan( + "memcache_v1::CloudMemcacheConnection::ApplyParameters"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ApplyParameters(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudMemcacheTracingConnection::ApplyParameters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "memcache_v1::CloudMemcacheConnection::ApplyParameters"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ApplyParameters(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudMemcacheTracingConnection::RescheduleMaintenance( google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request) { @@ -108,6 +228,30 @@ CloudMemcacheTracingConnection::RescheduleMaintenance( child_->RescheduleMaintenance(request)); } +StatusOr +CloudMemcacheTracingConnection::RescheduleMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request) { + auto span = internal::MakeSpan( + "memcache_v1::CloudMemcacheConnection::RescheduleMaintenance"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RescheduleMaintenance( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudMemcacheTracingConnection::RescheduleMaintenance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "memcache_v1::CloudMemcacheConnection::RescheduleMaintenance"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RescheduleMaintenance( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.h b/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.h index d7563c7111367..b8196ea64b366 100644 --- a/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.h +++ b/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.h @@ -50,26 +50,80 @@ class CloudMemcacheTracingConnection google::cloud::memcache::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::CreateInstanceRequest const& request) + override; + + future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstance( google::cloud::memcache::v1::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::UpdateInstanceRequest const& request) + override; + + future> UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateParameters( google::cloud::memcache::v1::UpdateParametersRequest const& request) override; + StatusOr UpdateParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::UpdateParametersRequest const& request) + override; + + future> UpdateParameters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteInstance(google::cloud::memcache::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::DeleteInstanceRequest const& request) + override; + + future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ApplyParameters( google::cloud::memcache::v1::ApplyParametersRequest const& request) override; + StatusOr ApplyParameters( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::ApplyParametersRequest const& request) + override; + + future> ApplyParameters( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RescheduleMaintenance( google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request) override; + StatusOr RescheduleMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request) + override; + + future> RescheduleMaintenance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/memcache/v1/mocks/mock_cloud_memcache_connection.h b/google/cloud/memcache/v1/mocks/mock_cloud_memcache_connection.h index bef18560749d2..d45263503cd5d 100644 --- a/google/cloud/memcache/v1/mocks/mock_cloud_memcache_connection.h +++ b/google/cloud/memcache/v1/mocks/mock_cloud_memcache_connection.h @@ -61,32 +61,104 @@ class MockCloudMemcacheConnection (google::cloud::memcache::v1::CreateInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::CreateInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateInstance, (google::cloud::memcache::v1::UpdateInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::UpdateInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateParameters, (google::cloud::memcache::v1::UpdateParametersRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateParameters, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::UpdateParametersRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateParameters, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteInstance, (google::cloud::memcache::v1::DeleteInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::DeleteInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ApplyParameters, (google::cloud::memcache::v1::ApplyParametersRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ApplyParameters, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::ApplyParametersRequest const& request), + (override)); + + MOCK_METHOD(future>, + ApplyParameters, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, RescheduleMaintenance, (google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request), (override)); + + MOCK_METHOD(StatusOr, RescheduleMaintenance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::memcache::v1::RescheduleMaintenanceRequest const& + request), + (override)); + + MOCK_METHOD(future>, + RescheduleMaintenance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/metastore/v1/dataproc_metastore_connection.cc b/google/cloud/metastore/v1/dataproc_metastore_connection.cc index 82cb920ce2eac..a7e57cf138b1c 100644 --- a/google/cloud/metastore/v1/dataproc_metastore_connection.cc +++ b/google/cloud/metastore/v1/dataproc_metastore_connection.cc @@ -60,6 +60,22 @@ DataprocMetastoreConnection::CreateService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataprocMetastoreConnection::CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataprocMetastoreConnection::CreateService( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataprocMetastoreConnection::UpdateService( google::cloud::metastore::v1::UpdateServiceRequest const&) { @@ -68,6 +84,22 @@ DataprocMetastoreConnection::UpdateService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataprocMetastoreConnection::UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataprocMetastoreConnection::UpdateService( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataprocMetastoreConnection::DeleteService( google::cloud::metastore::v1::DeleteServiceRequest const&) { @@ -76,6 +108,22 @@ DataprocMetastoreConnection::DeleteService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataprocMetastoreConnection::DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataprocMetastoreConnection::DeleteService( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange DataprocMetastoreConnection::ListMetadataImports( google::cloud::metastore::v1:: @@ -98,6 +146,22 @@ DataprocMetastoreConnection::CreateMetadataImport( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataprocMetastoreConnection::CreateMetadataImport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateMetadataImportRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataprocMetastoreConnection::CreateMetadataImport( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataprocMetastoreConnection::UpdateMetadataImport( google::cloud::metastore::v1::UpdateMetadataImportRequest const&) { @@ -106,6 +170,22 @@ DataprocMetastoreConnection::UpdateMetadataImport( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataprocMetastoreConnection::UpdateMetadataImport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateMetadataImportRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataprocMetastoreConnection::UpdateMetadataImport( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataprocMetastoreConnection::ExportMetadata( google::cloud::metastore::v1::ExportMetadataRequest const&) { @@ -114,6 +194,22 @@ DataprocMetastoreConnection::ExportMetadata( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataprocMetastoreConnection::ExportMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::ExportMetadataRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataprocMetastoreConnection::ExportMetadata( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataprocMetastoreConnection::RestoreService( google::cloud::metastore::v1::RestoreServiceRequest const&) { @@ -122,6 +218,22 @@ DataprocMetastoreConnection::RestoreService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataprocMetastoreConnection::RestoreService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::RestoreServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataprocMetastoreConnection::RestoreService( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange DataprocMetastoreConnection::ListBackups( google::cloud::metastore::v1:: @@ -144,6 +256,22 @@ DataprocMetastoreConnection::CreateBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataprocMetastoreConnection::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataprocMetastoreConnection::CreateBackup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataprocMetastoreConnection::DeleteBackup( google::cloud::metastore::v1::DeleteBackupRequest const&) { @@ -152,6 +280,22 @@ DataprocMetastoreConnection::DeleteBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataprocMetastoreConnection::DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataprocMetastoreConnection::DeleteBackup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataprocMetastoreConnection::QueryMetadata( google::cloud::metastore::v1::QueryMetadataRequest const&) { @@ -160,6 +304,22 @@ DataprocMetastoreConnection::QueryMetadata( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataprocMetastoreConnection::QueryMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::QueryMetadataRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataprocMetastoreConnection::QueryMetadata( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataprocMetastoreConnection::MoveTableToDatabase( google::cloud::metastore::v1::MoveTableToDatabaseRequest const&) { @@ -168,6 +328,22 @@ DataprocMetastoreConnection::MoveTableToDatabase( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataprocMetastoreConnection::MoveTableToDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::MoveTableToDatabaseRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataprocMetastoreConnection::MoveTableToDatabase( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataprocMetastoreConnection::AlterMetadataResourceLocation( @@ -177,6 +353,23 @@ DataprocMetastoreConnection::AlterMetadataResourceLocation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataprocMetastoreConnection::AlterMetadataResourceLocation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataprocMetastoreConnection::AlterMetadataResourceLocation( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeDataprocMetastoreConnection( Options options) { internal::CheckExpectedOptions> CreateService( google::cloud::metastore::v1::CreateServiceRequest const& request); + virtual StatusOr CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateServiceRequest const& request); + + virtual future> CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateService( google::cloud::metastore::v1::UpdateServiceRequest const& request); + virtual StatusOr UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateServiceRequest const& request); + + virtual future> UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteService( google::cloud::metastore::v1::DeleteServiceRequest const& request); + virtual StatusOr DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteServiceRequest const& request); + + virtual future> + DeleteService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListMetadataImports( google::cloud::metastore::v1::ListMetadataImportsRequest request); @@ -214,18 +240,50 @@ class DataprocMetastoreConnection { CreateMetadataImport( google::cloud::metastore::v1::CreateMetadataImportRequest const& request); + virtual StatusOr CreateMetadataImport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateMetadataImportRequest const& request); + + virtual future> + CreateMetadataImport(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateMetadataImport( google::cloud::metastore::v1::UpdateMetadataImportRequest const& request); + virtual StatusOr UpdateMetadataImport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateMetadataImportRequest const& request); + + virtual future> + UpdateMetadataImport(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ExportMetadata( google::cloud::metastore::v1::ExportMetadataRequest const& request); + virtual StatusOr ExportMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::ExportMetadataRequest const& request); + + virtual future> + ExportMetadata(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RestoreService( google::cloud::metastore::v1::RestoreServiceRequest const& request); + virtual StatusOr RestoreService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::RestoreServiceRequest const& request); + + virtual future> + RestoreService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListBackups( google::cloud::metastore::v1::ListBackupsRequest request); @@ -235,24 +293,69 @@ class DataprocMetastoreConnection { virtual future> CreateBackup( google::cloud::metastore::v1::CreateBackupRequest const& request); + virtual StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateBackupRequest const& request); + + virtual future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteBackup( google::cloud::metastore::v1::DeleteBackupRequest const& request); + virtual StatusOr DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteBackupRequest const& request); + + virtual future> + DeleteBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> QueryMetadata( google::cloud::metastore::v1::QueryMetadataRequest const& request); + virtual StatusOr QueryMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::QueryMetadataRequest const& request); + + virtual future> + QueryMetadata(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> MoveTableToDatabase( google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request); + virtual StatusOr MoveTableToDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request); + + virtual future< + StatusOr> + MoveTableToDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> AlterMetadataResourceLocation( google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& request); + + virtual StatusOr + AlterMetadataResourceLocation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& + request); + + virtual future> + AlterMetadataResourceLocation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/metastore/v1/dataproc_metastore_federation_connection.cc b/google/cloud/metastore/v1/dataproc_metastore_federation_connection.cc index c810993ead102..72700339a48bb 100644 --- a/google/cloud/metastore/v1/dataproc_metastore_federation_connection.cc +++ b/google/cloud/metastore/v1/dataproc_metastore_federation_connection.cc @@ -61,6 +61,22 @@ DataprocMetastoreFederationConnection::CreateFederation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataprocMetastoreFederationConnection::CreateFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateFederationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataprocMetastoreFederationConnection::CreateFederation( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataprocMetastoreFederationConnection::UpdateFederation( google::cloud::metastore::v1::UpdateFederationRequest const&) { @@ -69,6 +85,22 @@ DataprocMetastoreFederationConnection::UpdateFederation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataprocMetastoreFederationConnection::UpdateFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateFederationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataprocMetastoreFederationConnection::UpdateFederation( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DataprocMetastoreFederationConnection::DeleteFederation( google::cloud::metastore::v1::DeleteFederationRequest const&) { @@ -77,6 +109,22 @@ DataprocMetastoreFederationConnection::DeleteFederation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DataprocMetastoreFederationConnection::DeleteFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteFederationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DataprocMetastoreFederationConnection::DeleteFederation( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeDataprocMetastoreFederationConnection(Options options) { internal::CheckExpectedOptions CreateFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateFederationRequest const& request); + + virtual future> + CreateFederation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateFederation( google::cloud::metastore::v1::UpdateFederationRequest const& request); + virtual StatusOr UpdateFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateFederationRequest const& request); + + virtual future> + UpdateFederation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteFederation( google::cloud::metastore::v1::DeleteFederationRequest const& request); + + virtual StatusOr DeleteFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteFederationRequest const& request); + + virtual future> + DeleteFederation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.cc b/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.cc index ad007af61ed39..89c3e01c76204 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.cc +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.cc @@ -154,6 +154,59 @@ DataprocMetastoreConnectionImpl::CreateService( polling_policy(*current), __func__); } +StatusOr +DataprocMetastoreConnectionImpl::CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateService(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::metastore::v1::CreateServiceRequest const& request) { + return stub_->CreateService(context, options, request); + }, + *current, request, __func__); +} + +future> +DataprocMetastoreConnectionImpl::CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::metastore::v1::Service>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::metastore::v1::Service>, + polling_policy(*current), __func__); +} + future> DataprocMetastoreConnectionImpl::UpdateService( google::cloud::metastore::v1::UpdateServiceRequest const& request) { @@ -193,6 +246,59 @@ DataprocMetastoreConnectionImpl::UpdateService( polling_policy(*current), __func__); } +StatusOr +DataprocMetastoreConnectionImpl::UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateService(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::metastore::v1::UpdateServiceRequest const& request) { + return stub_->UpdateService(context, options, request); + }, + *current, request, __func__); +} + +future> +DataprocMetastoreConnectionImpl::UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::metastore::v1::Service>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::metastore::v1::Service>, + polling_policy(*current), __func__); +} + future> DataprocMetastoreConnectionImpl::DeleteService( google::cloud::metastore::v1::DeleteServiceRequest const& request) { @@ -232,6 +338,60 @@ DataprocMetastoreConnectionImpl::DeleteService( polling_policy(*current), __func__); } +StatusOr +DataprocMetastoreConnectionImpl::DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteService(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::metastore::v1::DeleteServiceRequest const& request) { + return stub_->DeleteService(context, options, request); + }, + *current, request, __func__); +} + +future> +DataprocMetastoreConnectionImpl::DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::metastore::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::metastore::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange DataprocMetastoreConnectionImpl::ListMetadataImports( google::cloud::metastore::v1::ListMetadataImportsRequest request) { @@ -322,6 +482,60 @@ DataprocMetastoreConnectionImpl::CreateMetadataImport( polling_policy(*current), __func__); } +StatusOr +DataprocMetastoreConnectionImpl::CreateMetadataImport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateMetadataImportRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateMetadataImport(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::metastore::v1::CreateMetadataImportRequest const& + request) { + return stub_->CreateMetadataImport(context, options, request); + }, + *current, request, __func__); +} + +future> +DataprocMetastoreConnectionImpl::CreateMetadataImport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateMetadataImport", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::metastore::v1::MetadataImport>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::metastore::v1::MetadataImport>, + polling_policy(*current), __func__); +} + future> DataprocMetastoreConnectionImpl::UpdateMetadataImport( google::cloud::metastore::v1::UpdateMetadataImportRequest const& request) { @@ -362,6 +576,60 @@ DataprocMetastoreConnectionImpl::UpdateMetadataImport( polling_policy(*current), __func__); } +StatusOr +DataprocMetastoreConnectionImpl::UpdateMetadataImport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateMetadataImportRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateMetadataImport(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::metastore::v1::UpdateMetadataImportRequest const& + request) { + return stub_->UpdateMetadataImport(context, options, request); + }, + *current, request, __func__); +} + +future> +DataprocMetastoreConnectionImpl::UpdateMetadataImport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateMetadataImport", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::metastore::v1::MetadataImport>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::metastore::v1::MetadataImport>, + polling_policy(*current), __func__); +} + future> DataprocMetastoreConnectionImpl::ExportMetadata( google::cloud::metastore::v1::ExportMetadataRequest const& request) { @@ -401,6 +669,60 @@ DataprocMetastoreConnectionImpl::ExportMetadata( polling_policy(*current), __func__); } +StatusOr +DataprocMetastoreConnectionImpl::ExportMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::ExportMetadataRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportMetadata(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::metastore::v1::ExportMetadataRequest const& request) { + return stub_->ExportMetadata(context, options, request); + }, + *current, request, __func__); +} + +future> +DataprocMetastoreConnectionImpl::ExportMetadata( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ExportMetadata", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::metastore::v1::MetadataExport>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::metastore::v1::MetadataExport>, + polling_policy(*current), __func__); +} + future> DataprocMetastoreConnectionImpl::RestoreService( google::cloud::metastore::v1::RestoreServiceRequest const& request) { @@ -440,6 +762,59 @@ DataprocMetastoreConnectionImpl::RestoreService( polling_policy(*current), __func__); } +StatusOr +DataprocMetastoreConnectionImpl::RestoreService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::RestoreServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RestoreService(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::metastore::v1::RestoreServiceRequest const& request) { + return stub_->RestoreService(context, options, request); + }, + *current, request, __func__); +} + +future> +DataprocMetastoreConnectionImpl::RestoreService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RestoreService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::metastore::v1::Restore>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::metastore::v1::Restore>, + polling_policy(*current), __func__); +} + StreamRange DataprocMetastoreConnectionImpl::ListBackups( google::cloud::metastore::v1::ListBackupsRequest request) { @@ -527,6 +902,58 @@ DataprocMetastoreConnectionImpl::CreateBackup( polling_policy(*current), __func__); } +StatusOr +DataprocMetastoreConnectionImpl::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::metastore::v1::CreateBackupRequest const& request) { + return stub_->CreateBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +DataprocMetastoreConnectionImpl::CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::metastore::v1::Backup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::metastore::v1::Backup>, + polling_policy(*current), __func__); +} + future> DataprocMetastoreConnectionImpl::DeleteBackup( google::cloud::metastore::v1::DeleteBackupRequest const& request) { @@ -566,6 +993,59 @@ DataprocMetastoreConnectionImpl::DeleteBackup( polling_policy(*current), __func__); } +StatusOr +DataprocMetastoreConnectionImpl::DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::metastore::v1::DeleteBackupRequest const& request) { + return stub_->DeleteBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +DataprocMetastoreConnectionImpl::DeleteBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::metastore::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::metastore::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> DataprocMetastoreConnectionImpl::QueryMetadata( google::cloud::metastore::v1::QueryMetadataRequest const& request) { @@ -605,6 +1085,60 @@ DataprocMetastoreConnectionImpl::QueryMetadata( polling_policy(*current), __func__); } +StatusOr +DataprocMetastoreConnectionImpl::QueryMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::QueryMetadataRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->QueryMetadata(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::metastore::v1::QueryMetadataRequest const& request) { + return stub_->QueryMetadata(context, options, request); + }, + *current, request, __func__); +} + +future> +DataprocMetastoreConnectionImpl::QueryMetadata( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to QueryMetadata", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::metastore::v1::QueryMetadataResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::metastore::v1::QueryMetadataResponse>, + polling_policy(*current), __func__); +} + future> DataprocMetastoreConnectionImpl::MoveTableToDatabase( google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request) { @@ -645,6 +1179,60 @@ DataprocMetastoreConnectionImpl::MoveTableToDatabase( polling_policy(*current), __func__); } +StatusOr +DataprocMetastoreConnectionImpl::MoveTableToDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->MoveTableToDatabase(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::metastore::v1::MoveTableToDatabaseRequest const& + request) { + return stub_->MoveTableToDatabase(context, options, request); + }, + *current, request, __func__); +} + +future> +DataprocMetastoreConnectionImpl::MoveTableToDatabase( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to MoveTableToDatabase", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::metastore::v1::MoveTableToDatabaseResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::metastore::v1::MoveTableToDatabaseResponse>, + polling_policy(*current), __func__); +} + future> DataprocMetastoreConnectionImpl::AlterMetadataResourceLocation( @@ -686,6 +1274,62 @@ DataprocMetastoreConnectionImpl::AlterMetadataResourceLocation( polling_policy(*current), __func__); } +StatusOr +DataprocMetastoreConnectionImpl::AlterMetadataResourceLocation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AlterMetadataResourceLocation(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::metastore::v1:: + AlterMetadataResourceLocationRequest const& request) { + return stub_->AlterMetadataResourceLocation(context, options, request); + }, + *current, request, __func__); +} + +future> +DataprocMetastoreConnectionImpl::AlterMetadataResourceLocation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to AlterMetadataResourceLocation", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::metastore::v1::AlterMetadataResourceLocationResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::metastore::v1::AlterMetadataResourceLocationResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace metastore_v1_internal } // namespace cloud diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.h b/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.h index 673a2646c3f39..92f8003b410be 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.h +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.h @@ -62,14 +62,41 @@ class DataprocMetastoreConnectionImpl google::cloud::metastore::v1::CreateServiceRequest const& request) override; + StatusOr CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateServiceRequest const& request) + override; + + future> CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateService( google::cloud::metastore::v1::UpdateServiceRequest const& request) override; + StatusOr UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateServiceRequest const& request) + override; + + future> UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteService(google::cloud::metastore::v1::DeleteServiceRequest const& request) override; + StatusOr DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteServiceRequest const& request) + override; + + future> + DeleteService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListMetadataImports( google::cloud::metastore::v1::ListMetadataImportsRequest request) override; @@ -83,19 +110,57 @@ class DataprocMetastoreConnectionImpl google::cloud::metastore::v1::CreateMetadataImportRequest const& request) override; + StatusOr CreateMetadataImport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateMetadataImportRequest const& request) + override; + + future> + CreateMetadataImport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateMetadataImport( google::cloud::metastore::v1::UpdateMetadataImportRequest const& request) override; + StatusOr UpdateMetadataImport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateMetadataImportRequest const& request) + override; + + future> + UpdateMetadataImport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportMetadata( google::cloud::metastore::v1::ExportMetadataRequest const& request) override; + StatusOr ExportMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::ExportMetadataRequest const& request) + override; + + future> ExportMetadata( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RestoreService( google::cloud::metastore::v1::RestoreServiceRequest const& request) override; + StatusOr RestoreService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::RestoreServiceRequest const& request) + override; + + future> RestoreService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListBackups( google::cloud::metastore::v1::ListBackupsRequest request) override; @@ -106,25 +171,72 @@ class DataprocMetastoreConnectionImpl google::cloud::metastore::v1::CreateBackupRequest const& request) override; + StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateBackupRequest const& request) + override; + + future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteBackup(google::cloud::metastore::v1::DeleteBackupRequest const& request) override; + StatusOr DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteBackupRequest const& request) + override; + + future> + DeleteBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> QueryMetadata(google::cloud::metastore::v1::QueryMetadataRequest const& request) override; + StatusOr QueryMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::QueryMetadataRequest const& request) + override; + + future> + QueryMetadata(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> MoveTableToDatabase( google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request) override; + StatusOr MoveTableToDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request) + override; + + future> + MoveTableToDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AlterMetadataResourceLocation( google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& request) override; + StatusOr AlterMetadataResourceLocation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& + request) override; + + future> + AlterMetadataResourceLocation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.cc b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.cc index 5b45be4bc0e70..be1b100879ab6 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.cc +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.cc @@ -165,6 +165,60 @@ DataprocMetastoreFederationConnectionImpl::CreateFederation( polling_policy(*current), __func__); } +StatusOr +DataprocMetastoreFederationConnectionImpl::CreateFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateFederationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateFederation(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::metastore::v1::CreateFederationRequest const& + request) { + return stub_->CreateFederation(context, options, request); + }, + *current, request, __func__); +} + +future> +DataprocMetastoreFederationConnectionImpl::CreateFederation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateFederation", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::metastore::v1::Federation>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::metastore::v1::Federation>, + polling_policy(*current), __func__); +} + future> DataprocMetastoreFederationConnectionImpl::UpdateFederation( google::cloud::metastore::v1::UpdateFederationRequest const& request) { @@ -205,6 +259,60 @@ DataprocMetastoreFederationConnectionImpl::UpdateFederation( polling_policy(*current), __func__); } +StatusOr +DataprocMetastoreFederationConnectionImpl::UpdateFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateFederationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateFederation(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::metastore::v1::UpdateFederationRequest const& + request) { + return stub_->UpdateFederation(context, options, request); + }, + *current, request, __func__); +} + +future> +DataprocMetastoreFederationConnectionImpl::UpdateFederation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateFederation", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::metastore::v1::Federation>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::metastore::v1::Federation>, + polling_policy(*current), __func__); +} + future> DataprocMetastoreFederationConnectionImpl::DeleteFederation( google::cloud::metastore::v1::DeleteFederationRequest const& request) { @@ -245,6 +353,60 @@ DataprocMetastoreFederationConnectionImpl::DeleteFederation( polling_policy(*current), __func__); } +StatusOr +DataprocMetastoreFederationConnectionImpl::DeleteFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteFederationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteFederation(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::metastore::v1::DeleteFederationRequest const& + request) { + return stub_->DeleteFederation(context, options, request); + }, + *current, request, __func__); +} + +future> +DataprocMetastoreFederationConnectionImpl::DeleteFederation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteFederation", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::metastore::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::metastore::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace metastore_v1_internal } // namespace cloud diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.h b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.h index 134541eb8a0c6..ae9cf91721320 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.h +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.h @@ -64,14 +64,41 @@ class DataprocMetastoreFederationConnectionImpl google::cloud::metastore::v1::CreateFederationRequest const& request) override; + StatusOr CreateFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateFederationRequest const& request) + override; + + future> CreateFederation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateFederation( google::cloud::metastore::v1::UpdateFederationRequest const& request) override; + StatusOr UpdateFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateFederationRequest const& request) + override; + + future> UpdateFederation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFederation(google::cloud::metastore::v1::DeleteFederationRequest const& request) override; + StatusOr DeleteFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteFederationRequest const& request) + override; + + future> + DeleteFederation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.cc b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.cc index 00b47de55587e..3f284df1e159f 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.cc +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.cc @@ -64,6 +64,30 @@ DataprocMetastoreFederationTracingConnection::CreateFederation( return internal::EndSpan(std::move(span), child_->CreateFederation(request)); } +StatusOr +DataprocMetastoreFederationTracingConnection::CreateFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateFederationRequest const& request) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreFederationConnection::CreateFederation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateFederation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataprocMetastoreFederationTracingConnection::CreateFederation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreFederationConnection::CreateFederation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateFederation(google::cloud::ExperimentalTag{}, operation)); +} + future> DataprocMetastoreFederationTracingConnection::UpdateFederation( google::cloud::metastore::v1::UpdateFederationRequest const& request) { @@ -73,6 +97,30 @@ DataprocMetastoreFederationTracingConnection::UpdateFederation( return internal::EndSpan(std::move(span), child_->UpdateFederation(request)); } +StatusOr +DataprocMetastoreFederationTracingConnection::UpdateFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateFederationRequest const& request) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreFederationConnection::UpdateFederation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateFederation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataprocMetastoreFederationTracingConnection::UpdateFederation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreFederationConnection::UpdateFederation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateFederation(google::cloud::ExperimentalTag{}, operation)); +} + future> DataprocMetastoreFederationTracingConnection::DeleteFederation( google::cloud::metastore::v1::DeleteFederationRequest const& request) { @@ -82,6 +130,30 @@ DataprocMetastoreFederationTracingConnection::DeleteFederation( return internal::EndSpan(std::move(span), child_->DeleteFederation(request)); } +StatusOr +DataprocMetastoreFederationTracingConnection::DeleteFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteFederationRequest const& request) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreFederationConnection::DeleteFederation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteFederation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataprocMetastoreFederationTracingConnection::DeleteFederation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreFederationConnection::DeleteFederation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteFederation(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.h b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.h index 2c1ab6ab2c5a2..d8442ee5eca3c 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.h +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.h @@ -52,14 +52,41 @@ class DataprocMetastoreFederationTracingConnection google::cloud::metastore::v1::CreateFederationRequest const& request) override; + StatusOr CreateFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateFederationRequest const& request) + override; + + future> CreateFederation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateFederation( google::cloud::metastore::v1::UpdateFederationRequest const& request) override; + StatusOr UpdateFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateFederationRequest const& request) + override; + + future> UpdateFederation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFederation(google::cloud::metastore::v1::DeleteFederationRequest const& request) override; + StatusOr DeleteFederation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteFederationRequest const& request) + override; + + future> + DeleteFederation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.cc b/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.cc index 8353edd806807..86af388894074 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.cc +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.cc @@ -62,6 +62,30 @@ DataprocMetastoreTracingConnection::CreateService( return internal::EndSpan(std::move(span), child_->CreateService(request)); } +StatusOr +DataprocMetastoreTracingConnection::CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateServiceRequest const& request) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::CreateService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataprocMetastoreTracingConnection::CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::CreateService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateService(google::cloud::ExperimentalTag{}, operation)); +} + future> DataprocMetastoreTracingConnection::UpdateService( google::cloud::metastore::v1::UpdateServiceRequest const& request) { @@ -71,6 +95,30 @@ DataprocMetastoreTracingConnection::UpdateService( return internal::EndSpan(std::move(span), child_->UpdateService(request)); } +StatusOr +DataprocMetastoreTracingConnection::UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateServiceRequest const& request) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::UpdateService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataprocMetastoreTracingConnection::UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::UpdateService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateService(google::cloud::ExperimentalTag{}, operation)); +} + future> DataprocMetastoreTracingConnection::DeleteService( google::cloud::metastore::v1::DeleteServiceRequest const& request) { @@ -80,6 +128,30 @@ DataprocMetastoreTracingConnection::DeleteService( return internal::EndSpan(std::move(span), child_->DeleteService(request)); } +StatusOr +DataprocMetastoreTracingConnection::DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteServiceRequest const& request) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::DeleteService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataprocMetastoreTracingConnection::DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::DeleteService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteService(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange DataprocMetastoreTracingConnection::ListMetadataImports( google::cloud::metastore::v1::ListMetadataImportsRequest request) { @@ -111,6 +183,30 @@ DataprocMetastoreTracingConnection::CreateMetadataImport( child_->CreateMetadataImport(request)); } +StatusOr +DataprocMetastoreTracingConnection::CreateMetadataImport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateMetadataImportRequest const& request) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::CreateMetadataImport"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateMetadataImport( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataprocMetastoreTracingConnection::CreateMetadataImport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::CreateMetadataImport"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateMetadataImport( + google::cloud::ExperimentalTag{}, operation)); +} + future> DataprocMetastoreTracingConnection::UpdateMetadataImport( google::cloud::metastore::v1::UpdateMetadataImportRequest const& request) { @@ -121,6 +217,30 @@ DataprocMetastoreTracingConnection::UpdateMetadataImport( child_->UpdateMetadataImport(request)); } +StatusOr +DataprocMetastoreTracingConnection::UpdateMetadataImport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateMetadataImportRequest const& request) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::UpdateMetadataImport"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateMetadataImport( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataprocMetastoreTracingConnection::UpdateMetadataImport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::UpdateMetadataImport"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateMetadataImport( + google::cloud::ExperimentalTag{}, operation)); +} + future> DataprocMetastoreTracingConnection::ExportMetadata( google::cloud::metastore::v1::ExportMetadataRequest const& request) { @@ -130,6 +250,30 @@ DataprocMetastoreTracingConnection::ExportMetadata( return internal::EndSpan(std::move(span), child_->ExportMetadata(request)); } +StatusOr +DataprocMetastoreTracingConnection::ExportMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::ExportMetadataRequest const& request) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::ExportMetadata"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportMetadata(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataprocMetastoreTracingConnection::ExportMetadata( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::ExportMetadata"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportMetadata(google::cloud::ExperimentalTag{}, operation)); +} + future> DataprocMetastoreTracingConnection::RestoreService( google::cloud::metastore::v1::RestoreServiceRequest const& request) { @@ -139,6 +283,30 @@ DataprocMetastoreTracingConnection::RestoreService( return internal::EndSpan(std::move(span), child_->RestoreService(request)); } +StatusOr +DataprocMetastoreTracingConnection::RestoreService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::RestoreServiceRequest const& request) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::RestoreService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RestoreService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataprocMetastoreTracingConnection::RestoreService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::RestoreService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RestoreService(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange DataprocMetastoreTracingConnection::ListBackups( google::cloud::metastore::v1::ListBackupsRequest request) { @@ -168,6 +336,30 @@ DataprocMetastoreTracingConnection::CreateBackup( return internal::EndSpan(std::move(span), child_->CreateBackup(request)); } +StatusOr +DataprocMetastoreTracingConnection::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateBackupRequest const& request) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::CreateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataprocMetastoreTracingConnection::CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::CreateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateBackup(google::cloud::ExperimentalTag{}, operation)); +} + future> DataprocMetastoreTracingConnection::DeleteBackup( google::cloud::metastore::v1::DeleteBackupRequest const& request) { @@ -177,6 +369,30 @@ DataprocMetastoreTracingConnection::DeleteBackup( return internal::EndSpan(std::move(span), child_->DeleteBackup(request)); } +StatusOr +DataprocMetastoreTracingConnection::DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteBackupRequest const& request) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::DeleteBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataprocMetastoreTracingConnection::DeleteBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::DeleteBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteBackup(google::cloud::ExperimentalTag{}, operation)); +} + future> DataprocMetastoreTracingConnection::QueryMetadata( google::cloud::metastore::v1::QueryMetadataRequest const& request) { @@ -186,6 +402,30 @@ DataprocMetastoreTracingConnection::QueryMetadata( return internal::EndSpan(std::move(span), child_->QueryMetadata(request)); } +StatusOr +DataprocMetastoreTracingConnection::QueryMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::QueryMetadataRequest const& request) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::QueryMetadata"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->QueryMetadata(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataprocMetastoreTracingConnection::QueryMetadata( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::QueryMetadata"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->QueryMetadata(google::cloud::ExperimentalTag{}, operation)); +} + future> DataprocMetastoreTracingConnection::MoveTableToDatabase( google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request) { @@ -196,6 +436,30 @@ DataprocMetastoreTracingConnection::MoveTableToDatabase( child_->MoveTableToDatabase(request)); } +StatusOr +DataprocMetastoreTracingConnection::MoveTableToDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::MoveTableToDatabase"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->MoveTableToDatabase(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataprocMetastoreTracingConnection::MoveTableToDatabase( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::MoveTableToDatabase"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->MoveTableToDatabase(google::cloud::ExperimentalTag{}, operation)); +} + future> DataprocMetastoreTracingConnection::AlterMetadataResourceLocation( @@ -209,6 +473,34 @@ DataprocMetastoreTracingConnection::AlterMetadataResourceLocation( child_->AlterMetadataResourceLocation(request)); } +StatusOr +DataprocMetastoreTracingConnection::AlterMetadataResourceLocation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& + request) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::" + "AlterMetadataResourceLocation"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->AlterMetadataResourceLocation( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DataprocMetastoreTracingConnection::AlterMetadataResourceLocation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "metastore_v1::DataprocMetastoreConnection::" + "AlterMetadataResourceLocation"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->AlterMetadataResourceLocation( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.h b/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.h index 78134bdfd0704..200288a5b7e94 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.h +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.h @@ -50,14 +50,41 @@ class DataprocMetastoreTracingConnection google::cloud::metastore::v1::CreateServiceRequest const& request) override; + StatusOr CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateServiceRequest const& request) + override; + + future> CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateService( google::cloud::metastore::v1::UpdateServiceRequest const& request) override; + StatusOr UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateServiceRequest const& request) + override; + + future> UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteService(google::cloud::metastore::v1::DeleteServiceRequest const& request) override; + StatusOr DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteServiceRequest const& request) + override; + + future> + DeleteService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListMetadataImports( google::cloud::metastore::v1::ListMetadataImportsRequest request) override; @@ -71,19 +98,57 @@ class DataprocMetastoreTracingConnection google::cloud::metastore::v1::CreateMetadataImportRequest const& request) override; + StatusOr CreateMetadataImport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateMetadataImportRequest const& request) + override; + + future> + CreateMetadataImport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateMetadataImport( google::cloud::metastore::v1::UpdateMetadataImportRequest const& request) override; + StatusOr UpdateMetadataImport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateMetadataImportRequest const& request) + override; + + future> + UpdateMetadataImport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportMetadata( google::cloud::metastore::v1::ExportMetadataRequest const& request) override; + StatusOr ExportMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::ExportMetadataRequest const& request) + override; + + future> ExportMetadata( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RestoreService( google::cloud::metastore::v1::RestoreServiceRequest const& request) override; + StatusOr RestoreService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::RestoreServiceRequest const& request) + override; + + future> RestoreService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListBackups( google::cloud::metastore::v1::ListBackupsRequest request) override; @@ -94,25 +159,72 @@ class DataprocMetastoreTracingConnection google::cloud::metastore::v1::CreateBackupRequest const& request) override; + StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateBackupRequest const& request) + override; + + future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteBackup(google::cloud::metastore::v1::DeleteBackupRequest const& request) override; + StatusOr DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteBackupRequest const& request) + override; + + future> + DeleteBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> QueryMetadata(google::cloud::metastore::v1::QueryMetadataRequest const& request) override; + StatusOr QueryMetadata( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::QueryMetadataRequest const& request) + override; + + future> + QueryMetadata(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> MoveTableToDatabase( google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request) override; + StatusOr MoveTableToDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request) + override; + + future> + MoveTableToDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AlterMetadataResourceLocation( google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& request) override; + StatusOr AlterMetadataResourceLocation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& + request) override; + + future> + AlterMetadataResourceLocation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/metastore/v1/mocks/mock_dataproc_metastore_connection.h b/google/cloud/metastore/v1/mocks/mock_dataproc_metastore_connection.h index a11694341522d..c291e42a67e77 100644 --- a/google/cloud/metastore/v1/mocks/mock_dataproc_metastore_connection.h +++ b/google/cloud/metastore/v1/mocks/mock_dataproc_metastore_connection.h @@ -61,17 +61,53 @@ class MockDataprocMetastoreConnection (google::cloud::metastore::v1::CreateServiceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateService, (google::cloud::metastore::v1::UpdateServiceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteService, (google::cloud::metastore::v1::DeleteServiceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListMetadataImports, @@ -89,23 +125,71 @@ class MockDataprocMetastoreConnection request), (override)); + MOCK_METHOD(StatusOr, CreateMetadataImport, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateMetadataImportRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateMetadataImport, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateMetadataImport, (google::cloud::metastore::v1::UpdateMetadataImportRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateMetadataImport, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateMetadataImportRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateMetadataImport, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ExportMetadata, (google::cloud::metastore::v1::ExportMetadataRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ExportMetadata, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::ExportMetadataRequest const& request), + (override)); + + MOCK_METHOD(future>, + ExportMetadata, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RestoreService, (google::cloud::metastore::v1::RestoreServiceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RestoreService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::RestoreServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, + RestoreService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListBackups, (google::cloud::metastore::v1::ListBackupsRequest request), (override)); @@ -119,18 +203,55 @@ class MockDataprocMetastoreConnection (google::cloud::metastore::v1::CreateBackupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteBackup, (google::cloud::metastore::v1::DeleteBackupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, QueryMetadata, (google::cloud::metastore::v1::QueryMetadataRequest const& request), (override)); + MOCK_METHOD( + StatusOr, QueryMetadata, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::QueryMetadataRequest const& request), + (override)); + + MOCK_METHOD( + future>, + QueryMetadata, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -138,6 +259,20 @@ class MockDataprocMetastoreConnection (google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request), (override)); + MOCK_METHOD( + StatusOr, MoveTableToDatabase, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + MoveTableToDatabase, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -145,6 +280,21 @@ class MockDataprocMetastoreConnection (google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, AlterMetadataResourceLocation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + AlterMetadataResourceLocation, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/metastore/v1/mocks/mock_dataproc_metastore_federation_connection.h b/google/cloud/metastore/v1/mocks/mock_dataproc_metastore_federation_connection.h index a6a7fadb814ee..bebaf3d9d9e25 100644 --- a/google/cloud/metastore/v1/mocks/mock_dataproc_metastore_federation_connection.h +++ b/google/cloud/metastore/v1/mocks/mock_dataproc_metastore_federation_connection.h @@ -63,17 +63,53 @@ class MockDataprocMetastoreFederationConnection (google::cloud::metastore::v1::CreateFederationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateFederation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::CreateFederationRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateFederation, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateFederation, (google::cloud::metastore::v1::UpdateFederationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateFederation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::UpdateFederationRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateFederation, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteFederation, (google::cloud::metastore::v1::DeleteFederationRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteFederation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::metastore::v1::DeleteFederationRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteFederation, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.cc b/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.cc index 1731314ea35f8..97a88b435b20f 100644 --- a/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.cc +++ b/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.cc @@ -249,6 +249,61 @@ MigrationCenterConnectionImpl::CreateImportJob( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::CreateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateImportJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateImportJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::CreateImportJobRequest const& + request) { + return stub_->CreateImportJob(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::CreateImportJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateImportJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::ImportJob>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::migrationcenter::v1::ImportJob>, + polling_policy(*current), __func__); +} + StreamRange MigrationCenterConnectionImpl::ListImportJobs( google::cloud::migrationcenter::v1::ListImportJobsRequest request) { @@ -339,6 +394,61 @@ MigrationCenterConnectionImpl::DeleteImportJob( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::DeleteImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteImportJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteImportJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::DeleteImportJobRequest const& + request) { + return stub_->DeleteImportJob(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::DeleteImportJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteImportJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::migrationcenter::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> MigrationCenterConnectionImpl::UpdateImportJob( google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request) { @@ -379,6 +489,61 @@ MigrationCenterConnectionImpl::UpdateImportJob( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::UpdateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateImportJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::UpdateImportJobRequest const& + request) { + return stub_->UpdateImportJob(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::UpdateImportJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateImportJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::ImportJob>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::migrationcenter::v1::ImportJob>, + polling_policy(*current), __func__); +} + future> MigrationCenterConnectionImpl::ValidateImportJob( google::cloud::migrationcenter::v1::ValidateImportJobRequest const& @@ -420,6 +585,62 @@ MigrationCenterConnectionImpl::ValidateImportJob( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::ValidateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::ValidateImportJobRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ValidateImportJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::ValidateImportJobRequest const& + request) { + return stub_->ValidateImportJob(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::ValidateImportJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ValidateImportJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::migrationcenter::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> MigrationCenterConnectionImpl::RunImportJob( google::cloud::migrationcenter::v1::RunImportJobRequest const& request) { @@ -460,6 +681,61 @@ MigrationCenterConnectionImpl::RunImportJob( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::RunImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::RunImportJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RunImportJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::RunImportJobRequest const& + request) { + return stub_->RunImportJob(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::RunImportJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RunImportJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::migrationcenter::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr MigrationCenterConnectionImpl::GetImportDataFile( google::cloud::migrationcenter::v1::GetImportDataFileRequest const& @@ -552,6 +828,63 @@ MigrationCenterConnectionImpl::CreateImportDataFile( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::CreateImportDataFile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateImportDataFile(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& + request) { + return stub_->CreateImportDataFile(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::CreateImportDataFile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateImportDataFile", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::ImportDataFile>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::migrationcenter::v1::ImportDataFile>, + polling_policy(*current), __func__); +} + future> MigrationCenterConnectionImpl::DeleteImportDataFile( google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& @@ -593,6 +926,63 @@ MigrationCenterConnectionImpl::DeleteImportDataFile( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::DeleteImportDataFile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteImportDataFile(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& + request) { + return stub_->DeleteImportDataFile(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::DeleteImportDataFile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteImportDataFile", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::migrationcenter::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange MigrationCenterConnectionImpl::ListGroups( google::cloud::migrationcenter::v1::ListGroupsRequest request) { @@ -682,6 +1072,61 @@ MigrationCenterConnectionImpl::CreateGroup( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::CreateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateGroup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::CreateGroupRequest const& + request) { + return stub_->CreateGroup(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::CreateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateGroup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::Group>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::migrationcenter::v1::Group>, + polling_policy(*current), __func__); +} + future> MigrationCenterConnectionImpl::UpdateGroup( google::cloud::migrationcenter::v1::UpdateGroupRequest const& request) { @@ -722,6 +1167,61 @@ MigrationCenterConnectionImpl::UpdateGroup( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::UpdateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateGroup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::UpdateGroupRequest const& + request) { + return stub_->UpdateGroup(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::UpdateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateGroup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::Group>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::migrationcenter::v1::Group>, + polling_policy(*current), __func__); +} + future> MigrationCenterConnectionImpl::DeleteGroup( google::cloud::migrationcenter::v1::DeleteGroupRequest const& request) { @@ -756,32 +1256,144 @@ MigrationCenterConnectionImpl::DeleteGroup( return stub->AsyncCancelOperation(cq, std::move(context), std::move(options), request); }, - &google::cloud::internal::ExtractLongRunningResultMetadata< - google::cloud::migrationcenter::v1::OperationMetadata>, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::migrationcenter::v1::OperationMetadata>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +MigrationCenterConnectionImpl::DeleteGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteGroup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::DeleteGroupRequest const& + request) { + return stub_->DeleteGroup(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::DeleteGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteGroup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::migrationcenter::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + +future> +MigrationCenterConnectionImpl::AddAssetsToGroup( + google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->AddAssetsToGroup(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::migrationcenter::v1::Group>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& + request) { + return stub->AsyncAddAssetsToGroup(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::migrationcenter::v1::Group>, retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } -future> +StatusOr MigrationCenterConnectionImpl::AddAssetsToGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->AddAssetsToGroup(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::migrationcenter::v1::Group>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& - request) { - return stub->AsyncAddAssetsToGroup(cq, std::move(context), - std::move(options), request); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddAssetsToGroup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& + request) { + return stub_->AddAssetsToGroup(context, options, request); }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::AddAssetsToGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to AddAssetsToGroup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::Group>( + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -799,7 +1411,6 @@ MigrationCenterConnectionImpl::AddAssetsToGroup( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::migrationcenter::v1::Group>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } @@ -843,6 +1454,62 @@ MigrationCenterConnectionImpl::RemoveAssetsFromGroup( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::RemoveAssetsFromGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveAssetsFromGroup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1:: + RemoveAssetsFromGroupRequest const& request) { + return stub_->RemoveAssetsFromGroup(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::RemoveAssetsFromGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RemoveAssetsFromGroup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::Group>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::migrationcenter::v1::Group>, + polling_policy(*current), __func__); +} + StreamRange MigrationCenterConnectionImpl::ListErrorFrames( google::cloud::migrationcenter::v1::ListErrorFramesRequest request) { @@ -981,6 +1648,61 @@ MigrationCenterConnectionImpl::CreateSource( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::CreateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateSourceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateSource(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::CreateSourceRequest const& + request) { + return stub_->CreateSource(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::CreateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateSource", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::Source>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::migrationcenter::v1::Source>, + polling_policy(*current), __func__); +} + future> MigrationCenterConnectionImpl::UpdateSource( google::cloud::migrationcenter::v1::UpdateSourceRequest const& request) { @@ -1021,6 +1743,61 @@ MigrationCenterConnectionImpl::UpdateSource( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::UpdateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateSourceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateSource(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::UpdateSourceRequest const& + request) { + return stub_->UpdateSource(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::UpdateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateSource", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::Source>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::migrationcenter::v1::Source>, + polling_policy(*current), __func__); +} + future> MigrationCenterConnectionImpl::DeleteSource( google::cloud::migrationcenter::v1::DeleteSourceRequest const& request) { @@ -1061,6 +1838,61 @@ MigrationCenterConnectionImpl::DeleteSource( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::DeleteSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteSourceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSource(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::DeleteSourceRequest const& + request) { + return stub_->DeleteSource(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::DeleteSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteSource", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::migrationcenter::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange MigrationCenterConnectionImpl::ListPreferenceSets( google::cloud::migrationcenter::v1::ListPreferenceSetsRequest request) { @@ -1127,9 +1959,107 @@ MigrationCenterConnectionImpl::CreatePreferenceSet( google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, - google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& + google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& + request) { + return stub->AsyncCreatePreferenceSet(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::migrationcenter::v1::PreferenceSet>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +MigrationCenterConnectionImpl::CreatePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreatePreferenceSet(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& + request) { + return stub_->CreatePreferenceSet(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::CreatePreferenceSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreatePreferenceSet", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::PreferenceSet>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::migrationcenter::v1::PreferenceSet>, + polling_policy(*current), __func__); +} + +future> +MigrationCenterConnectionImpl::UpdatePreferenceSet( + google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->UpdatePreferenceSet(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::migrationcenter::v1::PreferenceSet>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& request) { - return stub->AsyncCreatePreferenceSet(cq, std::move(context), + return stub->AsyncUpdatePreferenceSet(cq, std::move(context), std::move(options), request); }, [stub = stub_](google::cloud::CompletionQueue& cq, @@ -1153,26 +2083,43 @@ MigrationCenterConnectionImpl::CreatePreferenceSet( polling_policy(*current), __func__); } -future> +StatusOr MigrationCenterConnectionImpl::UpdatePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->UpdatePreferenceSet(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::migrationcenter::v1::PreferenceSet>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdatePreferenceSet(request), + [this]( + grpc::ClientContext& context, Options const& options, google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& request) { - return stub->AsyncUpdatePreferenceSet(cq, std::move(context), - std::move(options), request); + return stub_->UpdatePreferenceSet(context, options, request); }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::UpdatePreferenceSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdatePreferenceSet", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::PreferenceSet>( + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -1190,7 +2137,6 @@ MigrationCenterConnectionImpl::UpdatePreferenceSet( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::migrationcenter::v1::PreferenceSet>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } @@ -1235,6 +2181,63 @@ MigrationCenterConnectionImpl::DeletePreferenceSet( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::DeletePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePreferenceSet(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& + request) { + return stub_->DeletePreferenceSet(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::DeletePreferenceSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeletePreferenceSet", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::migrationcenter::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr MigrationCenterConnectionImpl::GetSettings( google::cloud::migrationcenter::v1::GetSettingsRequest const& request) { @@ -1290,6 +2293,61 @@ MigrationCenterConnectionImpl::UpdateSettings( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::UpdateSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateSettings(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::UpdateSettingsRequest const& + request) { + return stub_->UpdateSettings(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::UpdateSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateSettings", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::Settings>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::migrationcenter::v1::Settings>, + polling_policy(*current), __func__); +} + future> MigrationCenterConnectionImpl::CreateReportConfig( google::cloud::migrationcenter::v1::CreateReportConfigRequest const& @@ -1331,6 +2389,63 @@ MigrationCenterConnectionImpl::CreateReportConfig( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::CreateReportConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateReportConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateReportConfig(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::CreateReportConfigRequest const& + request) { + return stub_->CreateReportConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::CreateReportConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateReportConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::ReportConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::migrationcenter::v1::ReportConfig>, + polling_policy(*current), __func__); +} + StatusOr MigrationCenterConnectionImpl::GetReportConfig( google::cloud::migrationcenter::v1::GetReportConfigRequest const& request) { @@ -1422,6 +2537,63 @@ MigrationCenterConnectionImpl::DeleteReportConfig( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::DeleteReportConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteReportConfig(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& + request) { + return stub_->DeleteReportConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::DeleteReportConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteReportConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::migrationcenter::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> MigrationCenterConnectionImpl::CreateReport( google::cloud::migrationcenter::v1::CreateReportRequest const& request) { @@ -1462,6 +2634,61 @@ MigrationCenterConnectionImpl::CreateReport( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::CreateReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateReportRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateReport(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::CreateReportRequest const& + request) { + return stub_->CreateReport(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::CreateReport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateReport", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::Report>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::migrationcenter::v1::Report>, + polling_policy(*current), __func__); +} + StatusOr MigrationCenterConnectionImpl::GetReport( google::cloud::migrationcenter::v1::GetReportRequest const& request) { @@ -1551,6 +2778,61 @@ MigrationCenterConnectionImpl::DeleteReport( polling_policy(*current), __func__); } +StatusOr +MigrationCenterConnectionImpl::DeleteReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteReportRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteReport(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::migrationcenter::v1::DeleteReportRequest const& + request) { + return stub_->DeleteReport(context, options, request); + }, + *current, request, __func__); +} + +future> +MigrationCenterConnectionImpl::DeleteReport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteReport", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::migrationcenter::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::migrationcenter::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace migrationcenter_v1_internal } // namespace cloud diff --git a/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.h b/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.h index 848c32d2dc77f..5db3b9256a632 100644 --- a/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.h +++ b/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.h @@ -91,6 +91,15 @@ class MigrationCenterConnectionImpl google::cloud::migrationcenter::v1::CreateImportJobRequest const& request) override; + StatusOr CreateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateImportJobRequest const& request) + override; + + future> + CreateImportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListImportJobs( google::cloud::migrationcenter::v1::ListImportJobsRequest request) override; @@ -104,20 +113,56 @@ class MigrationCenterConnectionImpl google::cloud::migrationcenter::v1::DeleteImportJobRequest const& request) override; + StatusOr DeleteImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteImportJobRequest const& request) + override; + + future> + DeleteImportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateImportJob( google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request) override; + StatusOr UpdateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request) + override; + + future> + UpdateImportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ValidateImportJob( google::cloud::migrationcenter::v1::ValidateImportJobRequest const& request) override; + StatusOr ValidateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::ValidateImportJobRequest const& + request) override; + + future> + ValidateImportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RunImportJob(google::cloud::migrationcenter::v1::RunImportJobRequest const& request) override; + StatusOr RunImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::RunImportJobRequest const& request) + override; + + future> + RunImportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetImportDataFile( google::cloud::migrationcenter::v1::GetImportDataFileRequest const& @@ -133,11 +178,31 @@ class MigrationCenterConnectionImpl google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& request) override; + StatusOr CreateImportDataFile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& + request) override; + + future> + CreateImportDataFile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteImportDataFile( google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& request) override; + StatusOr DeleteImportDataFile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& + request) override; + + future> + DeleteImportDataFile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListGroups( google::cloud::migrationcenter::v1::ListGroupsRequest request) override; @@ -149,23 +214,69 @@ class MigrationCenterConnectionImpl google::cloud::migrationcenter::v1::CreateGroupRequest const& request) override; + StatusOr CreateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateGroupRequest const& request) + override; + + future> CreateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateGroup( google::cloud::migrationcenter::v1::UpdateGroupRequest const& request) override; + StatusOr UpdateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateGroupRequest const& request) + override; + + future> UpdateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteGroup(google::cloud::migrationcenter::v1::DeleteGroupRequest const& request) override; + StatusOr DeleteGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteGroupRequest const& request) + override; + + future> + DeleteGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AddAssetsToGroup( google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& request) override; + StatusOr AddAssetsToGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& + request) override; + + future> AddAssetsToGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RemoveAssetsFromGroup( google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& request) override; + StatusOr RemoveAssetsFromGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& + request) override; + + future> + RemoveAssetsFromGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListErrorFrames( google::cloud::migrationcenter::v1::ListErrorFramesRequest request) override; @@ -185,14 +296,41 @@ class MigrationCenterConnectionImpl google::cloud::migrationcenter::v1::CreateSourceRequest const& request) override; + StatusOr CreateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateSourceRequest const& request) + override; + + future> CreateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateSource( google::cloud::migrationcenter::v1::UpdateSourceRequest const& request) override; + StatusOr UpdateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateSourceRequest const& request) + override; + + future> UpdateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSource(google::cloud::migrationcenter::v1::DeleteSourceRequest const& request) override; + StatusOr DeleteSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteSourceRequest const& request) + override; + + future> + DeleteSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListPreferenceSets( google::cloud::migrationcenter::v1::ListPreferenceSetsRequest request) @@ -207,16 +345,43 @@ class MigrationCenterConnectionImpl google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& request) override; + StatusOr CreatePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& + request) override; + + future> + CreatePreferenceSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdatePreferenceSet( google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& request) override; + StatusOr UpdatePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& + request) override; + + future> + UpdatePreferenceSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeletePreferenceSet( google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& request) override; + StatusOr DeletePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& + request) override; + + future> + DeletePreferenceSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetSettings( google::cloud::migrationcenter::v1::GetSettingsRequest const& request) override; @@ -225,11 +390,29 @@ class MigrationCenterConnectionImpl google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request) override; + StatusOr UpdateSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request) + override; + + future> UpdateSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateReportConfig( google::cloud::migrationcenter::v1::CreateReportConfigRequest const& request) override; + StatusOr CreateReportConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateReportConfigRequest const& + request) override; + + future> + CreateReportConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetReportConfig( google::cloud::migrationcenter::v1::GetReportConfigRequest const& request) override; @@ -243,10 +426,28 @@ class MigrationCenterConnectionImpl google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& request) override; + StatusOr DeleteReportConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& + request) override; + + future> + DeleteReportConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateReport( google::cloud::migrationcenter::v1::CreateReportRequest const& request) override; + StatusOr CreateReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateReportRequest const& request) + override; + + future> CreateReport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetReport( google::cloud::migrationcenter::v1::GetReportRequest const& request) override; @@ -258,6 +459,15 @@ class MigrationCenterConnectionImpl DeleteReport(google::cloud::migrationcenter::v1::DeleteReportRequest const& request) override; + StatusOr DeleteReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteReportRequest const& request) + override; + + future> + DeleteReport(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.cc b/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.cc index deaa894dd1991..f6c9989f270f6 100644 --- a/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.cc +++ b/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.cc @@ -119,6 +119,30 @@ MigrationCenterTracingConnection::CreateImportJob( return internal::EndSpan(std::move(span), child_->CreateImportJob(request)); } +StatusOr +MigrationCenterTracingConnection::CreateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateImportJobRequest const& request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::CreateImportJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateImportJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::CreateImportJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::CreateImportJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateImportJob(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange MigrationCenterTracingConnection::ListImportJobs( google::cloud::migrationcenter::v1::ListImportJobsRequest request) { @@ -149,6 +173,30 @@ MigrationCenterTracingConnection::DeleteImportJob( return internal::EndSpan(std::move(span), child_->DeleteImportJob(request)); } +StatusOr +MigrationCenterTracingConnection::DeleteImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteImportJobRequest const& request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::DeleteImportJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteImportJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::DeleteImportJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::DeleteImportJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteImportJob(google::cloud::ExperimentalTag{}, operation)); +} + future> MigrationCenterTracingConnection::UpdateImportJob( google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request) { @@ -158,6 +206,30 @@ MigrationCenterTracingConnection::UpdateImportJob( return internal::EndSpan(std::move(span), child_->UpdateImportJob(request)); } +StatusOr +MigrationCenterTracingConnection::UpdateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::UpdateImportJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateImportJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::UpdateImportJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::UpdateImportJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateImportJob(google::cloud::ExperimentalTag{}, operation)); +} + future> MigrationCenterTracingConnection::ValidateImportJob( google::cloud::migrationcenter::v1::ValidateImportJobRequest const& @@ -168,6 +240,31 @@ MigrationCenterTracingConnection::ValidateImportJob( return internal::EndSpan(std::move(span), child_->ValidateImportJob(request)); } +StatusOr +MigrationCenterTracingConnection::ValidateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::ValidateImportJobRequest const& + request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::ValidateImportJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ValidateImportJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::ValidateImportJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::ValidateImportJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ValidateImportJob(google::cloud::ExperimentalTag{}, operation)); +} + future> MigrationCenterTracingConnection::RunImportJob( google::cloud::migrationcenter::v1::RunImportJobRequest const& request) { @@ -177,6 +274,30 @@ MigrationCenterTracingConnection::RunImportJob( return internal::EndSpan(std::move(span), child_->RunImportJob(request)); } +StatusOr +MigrationCenterTracingConnection::RunImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::RunImportJobRequest const& request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::RunImportJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RunImportJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::RunImportJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::RunImportJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RunImportJob(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr MigrationCenterTracingConnection::GetImportDataFile( google::cloud::migrationcenter::v1::GetImportDataFileRequest const& @@ -210,6 +331,31 @@ MigrationCenterTracingConnection::CreateImportDataFile( child_->CreateImportDataFile(request)); } +StatusOr +MigrationCenterTracingConnection::CreateImportDataFile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& + request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::CreateImportDataFile"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateImportDataFile( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::CreateImportDataFile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::CreateImportDataFile"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateImportDataFile( + google::cloud::ExperimentalTag{}, operation)); +} + future> MigrationCenterTracingConnection::DeleteImportDataFile( google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& @@ -221,6 +367,31 @@ MigrationCenterTracingConnection::DeleteImportDataFile( child_->DeleteImportDataFile(request)); } +StatusOr +MigrationCenterTracingConnection::DeleteImportDataFile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& + request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::DeleteImportDataFile"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteImportDataFile( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::DeleteImportDataFile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::DeleteImportDataFile"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteImportDataFile( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange MigrationCenterTracingConnection::ListGroups( google::cloud::migrationcenter::v1::ListGroupsRequest request) { @@ -251,6 +422,30 @@ MigrationCenterTracingConnection::CreateGroup( return internal::EndSpan(std::move(span), child_->CreateGroup(request)); } +StatusOr +MigrationCenterTracingConnection::CreateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateGroupRequest const& request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::CreateGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::CreateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::CreateGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateGroup(google::cloud::ExperimentalTag{}, operation)); +} + future> MigrationCenterTracingConnection::UpdateGroup( google::cloud::migrationcenter::v1::UpdateGroupRequest const& request) { @@ -260,6 +455,30 @@ MigrationCenterTracingConnection::UpdateGroup( return internal::EndSpan(std::move(span), child_->UpdateGroup(request)); } +StatusOr +MigrationCenterTracingConnection::UpdateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateGroupRequest const& request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::UpdateGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::UpdateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::UpdateGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateGroup(google::cloud::ExperimentalTag{}, operation)); +} + future> MigrationCenterTracingConnection::DeleteGroup( google::cloud::migrationcenter::v1::DeleteGroupRequest const& request) { @@ -269,6 +488,30 @@ MigrationCenterTracingConnection::DeleteGroup( return internal::EndSpan(std::move(span), child_->DeleteGroup(request)); } +StatusOr +MigrationCenterTracingConnection::DeleteGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteGroupRequest const& request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::DeleteGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::DeleteGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::DeleteGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteGroup(google::cloud::ExperimentalTag{}, operation)); +} + future> MigrationCenterTracingConnection::AddAssetsToGroup( google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& @@ -279,6 +522,31 @@ MigrationCenterTracingConnection::AddAssetsToGroup( return internal::EndSpan(std::move(span), child_->AddAssetsToGroup(request)); } +StatusOr +MigrationCenterTracingConnection::AddAssetsToGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& + request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::AddAssetsToGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddAssetsToGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::AddAssetsToGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::AddAssetsToGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddAssetsToGroup(google::cloud::ExperimentalTag{}, operation)); +} + future> MigrationCenterTracingConnection::RemoveAssetsFromGroup( google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& @@ -290,6 +558,31 @@ MigrationCenterTracingConnection::RemoveAssetsFromGroup( child_->RemoveAssetsFromGroup(request)); } +StatusOr +MigrationCenterTracingConnection::RemoveAssetsFromGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& + request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::RemoveAssetsFromGroup"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RemoveAssetsFromGroup( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::RemoveAssetsFromGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::RemoveAssetsFromGroup"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RemoveAssetsFromGroup( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange MigrationCenterTracingConnection::ListErrorFrames( google::cloud::migrationcenter::v1::ListErrorFramesRequest request) { @@ -341,6 +634,30 @@ MigrationCenterTracingConnection::CreateSource( return internal::EndSpan(std::move(span), child_->CreateSource(request)); } +StatusOr +MigrationCenterTracingConnection::CreateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateSourceRequest const& request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::CreateSource"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateSource(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::CreateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::CreateSource"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateSource(google::cloud::ExperimentalTag{}, operation)); +} + future> MigrationCenterTracingConnection::UpdateSource( google::cloud::migrationcenter::v1::UpdateSourceRequest const& request) { @@ -350,6 +667,30 @@ MigrationCenterTracingConnection::UpdateSource( return internal::EndSpan(std::move(span), child_->UpdateSource(request)); } +StatusOr +MigrationCenterTracingConnection::UpdateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateSourceRequest const& request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::UpdateSource"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateSource(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::UpdateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::UpdateSource"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateSource(google::cloud::ExperimentalTag{}, operation)); +} + future> MigrationCenterTracingConnection::DeleteSource( google::cloud::migrationcenter::v1::DeleteSourceRequest const& request) { @@ -359,6 +700,30 @@ MigrationCenterTracingConnection::DeleteSource( return internal::EndSpan(std::move(span), child_->DeleteSource(request)); } +StatusOr +MigrationCenterTracingConnection::DeleteSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteSourceRequest const& request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::DeleteSource"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSource(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::DeleteSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::DeleteSource"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSource(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange MigrationCenterTracingConnection::ListPreferenceSets( google::cloud::migrationcenter::v1::ListPreferenceSetsRequest request) { @@ -392,6 +757,31 @@ MigrationCenterTracingConnection::CreatePreferenceSet( child_->CreatePreferenceSet(request)); } +StatusOr +MigrationCenterTracingConnection::CreatePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& + request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::CreatePreferenceSet"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreatePreferenceSet(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::CreatePreferenceSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::CreatePreferenceSet"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreatePreferenceSet(google::cloud::ExperimentalTag{}, operation)); +} + future> MigrationCenterTracingConnection::UpdatePreferenceSet( google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& @@ -403,6 +793,31 @@ MigrationCenterTracingConnection::UpdatePreferenceSet( child_->UpdatePreferenceSet(request)); } +StatusOr +MigrationCenterTracingConnection::UpdatePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& + request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::UpdatePreferenceSet"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdatePreferenceSet(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::UpdatePreferenceSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::UpdatePreferenceSet"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdatePreferenceSet(google::cloud::ExperimentalTag{}, operation)); +} + future> MigrationCenterTracingConnection::DeletePreferenceSet( google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& @@ -414,6 +829,31 @@ MigrationCenterTracingConnection::DeletePreferenceSet( child_->DeletePreferenceSet(request)); } +StatusOr +MigrationCenterTracingConnection::DeletePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& + request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::DeletePreferenceSet"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeletePreferenceSet(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::DeletePreferenceSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::DeletePreferenceSet"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeletePreferenceSet(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr MigrationCenterTracingConnection::GetSettings( google::cloud::migrationcenter::v1::GetSettingsRequest const& request) { @@ -432,6 +872,30 @@ MigrationCenterTracingConnection::UpdateSettings( return internal::EndSpan(std::move(span), child_->UpdateSettings(request)); } +StatusOr +MigrationCenterTracingConnection::UpdateSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::UpdateSettings"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateSettings(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::UpdateSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::UpdateSettings"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateSettings(google::cloud::ExperimentalTag{}, operation)); +} + future> MigrationCenterTracingConnection::CreateReportConfig( google::cloud::migrationcenter::v1::CreateReportConfigRequest const& @@ -443,6 +907,31 @@ MigrationCenterTracingConnection::CreateReportConfig( child_->CreateReportConfig(request)); } +StatusOr +MigrationCenterTracingConnection::CreateReportConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateReportConfigRequest const& + request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::CreateReportConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateReportConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::CreateReportConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::CreateReportConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateReportConfig(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr MigrationCenterTracingConnection::GetReportConfig( google::cloud::migrationcenter::v1::GetReportConfigRequest const& request) { @@ -475,6 +964,31 @@ MigrationCenterTracingConnection::DeleteReportConfig( child_->DeleteReportConfig(request)); } +StatusOr +MigrationCenterTracingConnection::DeleteReportConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& + request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::DeleteReportConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteReportConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::DeleteReportConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::DeleteReportConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteReportConfig(google::cloud::ExperimentalTag{}, operation)); +} + future> MigrationCenterTracingConnection::CreateReport( google::cloud::migrationcenter::v1::CreateReportRequest const& request) { @@ -484,6 +998,30 @@ MigrationCenterTracingConnection::CreateReport( return internal::EndSpan(std::move(span), child_->CreateReport(request)); } +StatusOr +MigrationCenterTracingConnection::CreateReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateReportRequest const& request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::CreateReport"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateReport(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::CreateReport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::CreateReport"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateReport(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr MigrationCenterTracingConnection::GetReport( google::cloud::migrationcenter::v1::GetReportRequest const& request) { @@ -514,6 +1052,30 @@ MigrationCenterTracingConnection::DeleteReport( return internal::EndSpan(std::move(span), child_->DeleteReport(request)); } +StatusOr +MigrationCenterTracingConnection::DeleteReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteReportRequest const& request) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::DeleteReport"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteReport(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MigrationCenterTracingConnection::DeleteReport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "migrationcenter_v1::MigrationCenterConnection::DeleteReport"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteReport(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.h b/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.h index d59ad6c71b687..1ff355c289e23 100644 --- a/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.h +++ b/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.h @@ -79,6 +79,15 @@ class MigrationCenterTracingConnection google::cloud::migrationcenter::v1::CreateImportJobRequest const& request) override; + StatusOr CreateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateImportJobRequest const& request) + override; + + future> + CreateImportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListImportJobs( google::cloud::migrationcenter::v1::ListImportJobsRequest request) override; @@ -92,20 +101,56 @@ class MigrationCenterTracingConnection google::cloud::migrationcenter::v1::DeleteImportJobRequest const& request) override; + StatusOr DeleteImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteImportJobRequest const& request) + override; + + future> + DeleteImportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateImportJob( google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request) override; + StatusOr UpdateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request) + override; + + future> + UpdateImportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ValidateImportJob( google::cloud::migrationcenter::v1::ValidateImportJobRequest const& request) override; + StatusOr ValidateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::ValidateImportJobRequest const& + request) override; + + future> + ValidateImportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RunImportJob(google::cloud::migrationcenter::v1::RunImportJobRequest const& request) override; + StatusOr RunImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::RunImportJobRequest const& request) + override; + + future> + RunImportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetImportDataFile( google::cloud::migrationcenter::v1::GetImportDataFileRequest const& @@ -121,11 +166,31 @@ class MigrationCenterTracingConnection google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& request) override; + StatusOr CreateImportDataFile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& + request) override; + + future> + CreateImportDataFile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteImportDataFile( google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& request) override; + StatusOr DeleteImportDataFile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& + request) override; + + future> + DeleteImportDataFile( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListGroups( google::cloud::migrationcenter::v1::ListGroupsRequest request) override; @@ -137,23 +202,69 @@ class MigrationCenterTracingConnection google::cloud::migrationcenter::v1::CreateGroupRequest const& request) override; + StatusOr CreateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateGroupRequest const& request) + override; + + future> CreateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateGroup( google::cloud::migrationcenter::v1::UpdateGroupRequest const& request) override; + StatusOr UpdateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateGroupRequest const& request) + override; + + future> UpdateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteGroup(google::cloud::migrationcenter::v1::DeleteGroupRequest const& request) override; + StatusOr DeleteGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteGroupRequest const& request) + override; + + future> + DeleteGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AddAssetsToGroup( google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& request) override; + StatusOr AddAssetsToGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& + request) override; + + future> AddAssetsToGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RemoveAssetsFromGroup( google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& request) override; + StatusOr RemoveAssetsFromGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& + request) override; + + future> + RemoveAssetsFromGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListErrorFrames( google::cloud::migrationcenter::v1::ListErrorFramesRequest request) override; @@ -173,14 +284,41 @@ class MigrationCenterTracingConnection google::cloud::migrationcenter::v1::CreateSourceRequest const& request) override; + StatusOr CreateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateSourceRequest const& request) + override; + + future> CreateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateSource( google::cloud::migrationcenter::v1::UpdateSourceRequest const& request) override; + StatusOr UpdateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateSourceRequest const& request) + override; + + future> UpdateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSource(google::cloud::migrationcenter::v1::DeleteSourceRequest const& request) override; + StatusOr DeleteSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteSourceRequest const& request) + override; + + future> + DeleteSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListPreferenceSets( google::cloud::migrationcenter::v1::ListPreferenceSetsRequest request) @@ -195,16 +333,43 @@ class MigrationCenterTracingConnection google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& request) override; + StatusOr CreatePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& + request) override; + + future> + CreatePreferenceSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdatePreferenceSet( google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& request) override; + StatusOr UpdatePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& + request) override; + + future> + UpdatePreferenceSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeletePreferenceSet( google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& request) override; + StatusOr DeletePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& + request) override; + + future> + DeletePreferenceSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetSettings( google::cloud::migrationcenter::v1::GetSettingsRequest const& request) override; @@ -213,11 +378,29 @@ class MigrationCenterTracingConnection google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request) override; + StatusOr UpdateSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request) + override; + + future> UpdateSettings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateReportConfig( google::cloud::migrationcenter::v1::CreateReportConfigRequest const& request) override; + StatusOr CreateReportConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateReportConfigRequest const& + request) override; + + future> + CreateReportConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetReportConfig( google::cloud::migrationcenter::v1::GetReportConfigRequest const& request) override; @@ -231,10 +414,28 @@ class MigrationCenterTracingConnection google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& request) override; + StatusOr DeleteReportConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& + request) override; + + future> + DeleteReportConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateReport( google::cloud::migrationcenter::v1::CreateReportRequest const& request) override; + StatusOr CreateReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateReportRequest const& request) + override; + + future> CreateReport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetReport( google::cloud::migrationcenter::v1::GetReportRequest const& request) override; @@ -246,6 +447,15 @@ class MigrationCenterTracingConnection DeleteReport(google::cloud::migrationcenter::v1::DeleteReportRequest const& request) override; + StatusOr DeleteReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteReportRequest const& request) + override; + + future> + DeleteReport(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/migrationcenter/v1/migration_center_connection.cc b/google/cloud/migrationcenter/v1/migration_center_connection.cc index 23e18748a429a..d78bfcb6a8af8 100644 --- a/google/cloud/migrationcenter/v1/migration_center_connection.cc +++ b/google/cloud/migrationcenter/v1/migration_center_connection.cc @@ -94,6 +94,22 @@ MigrationCenterConnection::CreateImportJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::CreateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateImportJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::CreateImportJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange MigrationCenterConnection::ListImportJobs( google::cloud::migrationcenter::v1:: @@ -116,6 +132,22 @@ MigrationCenterConnection::DeleteImportJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::DeleteImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteImportJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::DeleteImportJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MigrationCenterConnection::UpdateImportJob( google::cloud::migrationcenter::v1::UpdateImportJobRequest const&) { @@ -124,6 +156,22 @@ MigrationCenterConnection::UpdateImportJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::UpdateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateImportJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::UpdateImportJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MigrationCenterConnection::ValidateImportJob( google::cloud::migrationcenter::v1::ValidateImportJobRequest const&) { @@ -132,6 +180,22 @@ MigrationCenterConnection::ValidateImportJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::ValidateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::ValidateImportJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::ValidateImportJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MigrationCenterConnection::RunImportJob( google::cloud::migrationcenter::v1::RunImportJobRequest const&) { @@ -140,6 +204,22 @@ MigrationCenterConnection::RunImportJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::RunImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::RunImportJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::RunImportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr MigrationCenterConnection::GetImportDataFile( google::cloud::migrationcenter::v1::GetImportDataFileRequest const&) { @@ -162,6 +242,22 @@ MigrationCenterConnection::CreateImportDataFile( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::CreateImportDataFile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateImportDataFileRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::CreateImportDataFile( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MigrationCenterConnection::DeleteImportDataFile( google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const&) { @@ -170,6 +266,22 @@ MigrationCenterConnection::DeleteImportDataFile( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::DeleteImportDataFile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::DeleteImportDataFile( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange MigrationCenterConnection::ListGroups( google::cloud::migrationcenter::v1:: @@ -192,6 +304,21 @@ MigrationCenterConnection::CreateGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr MigrationCenterConnection::CreateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::CreateGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MigrationCenterConnection::UpdateGroup( google::cloud::migrationcenter::v1::UpdateGroupRequest const&) { @@ -200,6 +327,21 @@ MigrationCenterConnection::UpdateGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr MigrationCenterConnection::UpdateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::UpdateGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MigrationCenterConnection::DeleteGroup( google::cloud::migrationcenter::v1::DeleteGroupRequest const&) { @@ -208,6 +350,21 @@ MigrationCenterConnection::DeleteGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr MigrationCenterConnection::DeleteGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::DeleteGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MigrationCenterConnection::AddAssetsToGroup( google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const&) { @@ -216,6 +373,22 @@ MigrationCenterConnection::AddAssetsToGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::AddAssetsToGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::AddAssetsToGroup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MigrationCenterConnection::RemoveAssetsFromGroup( google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const&) { @@ -224,6 +397,22 @@ MigrationCenterConnection::RemoveAssetsFromGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::RemoveAssetsFromGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::RemoveAssetsFromGroup( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange MigrationCenterConnection::ListErrorFrames( google::cloud::migrationcenter::v1:: @@ -260,6 +449,22 @@ MigrationCenterConnection::CreateSource( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::CreateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateSourceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::CreateSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MigrationCenterConnection::UpdateSource( google::cloud::migrationcenter::v1::UpdateSourceRequest const&) { @@ -268,6 +473,22 @@ MigrationCenterConnection::UpdateSource( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::UpdateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateSourceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::UpdateSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MigrationCenterConnection::DeleteSource( google::cloud::migrationcenter::v1::DeleteSourceRequest const&) { @@ -276,6 +497,22 @@ MigrationCenterConnection::DeleteSource( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::DeleteSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteSourceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::DeleteSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange MigrationCenterConnection::ListPreferenceSets( google::cloud::migrationcenter::v1:: @@ -298,6 +535,22 @@ MigrationCenterConnection::CreatePreferenceSet( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::CreatePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::CreatePreferenceSet( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MigrationCenterConnection::UpdatePreferenceSet( google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const&) { @@ -306,6 +559,22 @@ MigrationCenterConnection::UpdatePreferenceSet( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::UpdatePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::UpdatePreferenceSet( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MigrationCenterConnection::DeletePreferenceSet( google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const&) { @@ -314,6 +583,22 @@ MigrationCenterConnection::DeletePreferenceSet( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::DeletePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::DeletePreferenceSet( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr MigrationCenterConnection::GetSettings( google::cloud::migrationcenter::v1::GetSettingsRequest const&) { @@ -328,6 +613,22 @@ MigrationCenterConnection::UpdateSettings( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::UpdateSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateSettingsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::UpdateSettings( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MigrationCenterConnection::CreateReportConfig( google::cloud::migrationcenter::v1::CreateReportConfigRequest const&) { @@ -336,6 +637,22 @@ MigrationCenterConnection::CreateReportConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::CreateReportConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateReportConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::CreateReportConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr MigrationCenterConnection::GetReportConfig( google::cloud::migrationcenter::v1::GetReportConfigRequest const&) { @@ -358,6 +675,22 @@ MigrationCenterConnection::DeleteReportConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::DeleteReportConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteReportConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::DeleteReportConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MigrationCenterConnection::CreateReport( google::cloud::migrationcenter::v1::CreateReportRequest const&) { @@ -366,6 +699,22 @@ MigrationCenterConnection::CreateReport( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::CreateReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateReportRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::CreateReport(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr MigrationCenterConnection::GetReport( google::cloud::migrationcenter::v1::GetReportRequest const&) { @@ -388,6 +737,22 @@ MigrationCenterConnection::DeleteReport( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MigrationCenterConnection::DeleteReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteReportRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MigrationCenterConnection::DeleteReport(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeMigrationCenterConnection( Options options) { internal::CheckExpectedOptions CreateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateImportJobRequest const& + request); + + virtual future> + CreateImportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListImportJobs( google::cloud::migrationcenter::v1::ListImportJobsRequest request); @@ -238,22 +249,60 @@ class MigrationCenterConnection { google::cloud::migrationcenter::v1::DeleteImportJobRequest const& request); + virtual StatusOr DeleteImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteImportJobRequest const& + request); + + virtual future< + StatusOr> + DeleteImportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateImportJob( google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request); + virtual StatusOr UpdateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateImportJobRequest const& + request); + + virtual future> + UpdateImportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> ValidateImportJob( google::cloud::migrationcenter::v1::ValidateImportJobRequest const& request); + virtual StatusOr ValidateImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::ValidateImportJobRequest const& + request); + + virtual future< + StatusOr> + ValidateImportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> RunImportJob( google::cloud::migrationcenter::v1::RunImportJobRequest const& request); + virtual StatusOr RunImportJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::RunImportJobRequest const& request); + + virtual future< + StatusOr> + RunImportJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetImportDataFile( google::cloud::migrationcenter::v1::GetImportDataFileRequest const& @@ -268,12 +317,31 @@ class MigrationCenterConnection { google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& request); + virtual StatusOr CreateImportDataFile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& + request); + + virtual future> + CreateImportDataFile(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteImportDataFile( google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& request); + virtual StatusOr DeleteImportDataFile( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& + request); + + virtual future< + StatusOr> + DeleteImportDataFile(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListGroups( google::cloud::migrationcenter::v1::ListGroupsRequest request); @@ -284,25 +352,68 @@ class MigrationCenterConnection { CreateGroup( google::cloud::migrationcenter::v1::CreateGroupRequest const& request); + virtual StatusOr CreateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateGroupRequest const& request); + + virtual future> + CreateGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateGroup( google::cloud::migrationcenter::v1::UpdateGroupRequest const& request); + virtual StatusOr UpdateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateGroupRequest const& request); + + virtual future> + UpdateGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteGroup( google::cloud::migrationcenter::v1::DeleteGroupRequest const& request); + virtual StatusOr DeleteGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteGroupRequest const& request); + + virtual future< + StatusOr> + DeleteGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> AddAssetsToGroup( google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& request); + virtual StatusOr AddAssetsToGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& + request); + + virtual future> + AddAssetsToGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RemoveAssetsFromGroup( google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& request); + virtual StatusOr RemoveAssetsFromGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& + request); + + virtual future> + RemoveAssetsFromGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListErrorFrames( google::cloud::migrationcenter::v1::ListErrorFramesRequest request); @@ -321,15 +432,40 @@ class MigrationCenterConnection { CreateSource( google::cloud::migrationcenter::v1::CreateSourceRequest const& request); + virtual StatusOr CreateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateSourceRequest const& request); + + virtual future> + CreateSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateSource( google::cloud::migrationcenter::v1::UpdateSourceRequest const& request); + virtual StatusOr UpdateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateSourceRequest const& request); + + virtual future> + UpdateSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteSource( google::cloud::migrationcenter::v1::DeleteSourceRequest const& request); + virtual StatusOr DeleteSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteSourceRequest const& request); + + virtual future< + StatusOr> + DeleteSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListPreferenceSets( google::cloud::migrationcenter::v1::ListPreferenceSetsRequest request); @@ -344,17 +480,45 @@ class MigrationCenterConnection { google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& request); + virtual StatusOr CreatePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& + request); + + virtual future> + CreatePreferenceSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdatePreferenceSet( google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& request); + virtual StatusOr UpdatePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& + request); + + virtual future> + UpdatePreferenceSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeletePreferenceSet( google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& request); + virtual StatusOr DeletePreferenceSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& + request); + + virtual future< + StatusOr> + DeletePreferenceSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetSettings( google::cloud::migrationcenter::v1::GetSettingsRequest const& request); @@ -362,11 +526,28 @@ class MigrationCenterConnection { UpdateSettings( google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request); + virtual StatusOr UpdateSettings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request); + + virtual future> + UpdateSettings(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateReportConfig( google::cloud::migrationcenter::v1::CreateReportConfigRequest const& request); + virtual StatusOr CreateReportConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateReportConfigRequest const& + request); + + virtual future> + CreateReportConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetReportConfig( google::cloud::migrationcenter::v1::GetReportConfigRequest const& @@ -382,10 +563,28 @@ class MigrationCenterConnection { google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& request); + virtual StatusOr DeleteReportConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& + request); + + virtual future< + StatusOr> + DeleteReportConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateReport( google::cloud::migrationcenter::v1::CreateReportRequest const& request); + virtual StatusOr CreateReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateReportRequest const& request); + + virtual future> + CreateReport(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetReport( google::cloud::migrationcenter::v1::GetReportRequest const& request); @@ -396,6 +595,15 @@ class MigrationCenterConnection { StatusOr> DeleteReport( google::cloud::migrationcenter::v1::DeleteReportRequest const& request); + + virtual StatusOr DeleteReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteReportRequest const& request); + + virtual future< + StatusOr> + DeleteReport(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/migrationcenter/v1/mocks/mock_migration_center_connection.h b/google/cloud/migrationcenter/v1/mocks/mock_migration_center_connection.h index 6074ecfae3361..63382a29dee1e 100644 --- a/google/cloud/migrationcenter/v1/mocks/mock_migration_center_connection.h +++ b/google/cloud/migrationcenter/v1/mocks/mock_migration_center_connection.h @@ -101,6 +101,18 @@ class MockMigrationCenterConnection request), (override)); + MOCK_METHOD(StatusOr, CreateImportJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateImportJobRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateImportJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListImportJobs, @@ -119,12 +131,37 @@ class MockMigrationCenterConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteImportJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteImportJobRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteImportJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateImportJob, (google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateImportJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateImportJobRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateImportJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ValidateImportJob, @@ -132,12 +169,39 @@ class MockMigrationCenterConnection request), (override)); + MOCK_METHOD( + StatusOr, ValidateImportJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::ValidateImportJobRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + ValidateImportJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RunImportJob, (google::cloud::migrationcenter::v1::RunImportJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RunImportJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::RunImportJobRequest const& request), + (override)); + + MOCK_METHOD( + future>, + RunImportJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetImportDataFile, @@ -158,6 +222,20 @@ class MockMigrationCenterConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateImportDataFile, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateImportDataFile, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteImportDataFile, @@ -165,6 +243,20 @@ class MockMigrationCenterConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteImportDataFile, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteImportDataFile, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListGroups, (google::cloud::migrationcenter::v1::ListGroupsRequest request), @@ -180,17 +272,54 @@ class MockMigrationCenterConnection (google::cloud::migrationcenter::v1::CreateGroupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateGroup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateGroup, (google::cloud::migrationcenter::v1::UpdateGroupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateGroup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteGroup, (google::cloud::migrationcenter::v1::DeleteGroupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteGroupRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteGroup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, AddAssetsToGroup, @@ -198,6 +327,19 @@ class MockMigrationCenterConnection request), (override)); + MOCK_METHOD( + StatusOr, AddAssetsToGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& + request), + (override)); + + MOCK_METHOD(future>, + AddAssetsToGroup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RemoveAssetsFromGroup, @@ -205,6 +347,19 @@ class MockMigrationCenterConnection request), (override)); + MOCK_METHOD( + StatusOr, RemoveAssetsFromGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& + request), + (override)); + + MOCK_METHOD(future>, + RemoveAssetsFromGroup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListErrorFrames, @@ -232,18 +387,55 @@ class MockMigrationCenterConnection (google::cloud::migrationcenter::v1::CreateSourceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateSource, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateSourceRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateSource, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateSource, (google::cloud::migrationcenter::v1::UpdateSourceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateSource, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateSourceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateSource, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteSource, (google::cloud::migrationcenter::v1::DeleteSourceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteSource, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteSourceRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteSource, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListPreferenceSets, @@ -264,6 +456,20 @@ class MockMigrationCenterConnection request), (override)); + MOCK_METHOD( + StatusOr, CreatePreferenceSet, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreatePreferenceSet, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdatePreferenceSet, @@ -271,6 +477,20 @@ class MockMigrationCenterConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdatePreferenceSet, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdatePreferenceSet, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeletePreferenceSet, @@ -278,6 +498,20 @@ class MockMigrationCenterConnection request), (override)); + MOCK_METHOD( + StatusOr, DeletePreferenceSet, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeletePreferenceSet, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetSettings, (google::cloud::migrationcenter::v1::GetSettingsRequest const& request), @@ -289,6 +523,18 @@ class MockMigrationCenterConnection request), (override)); + MOCK_METHOD(StatusOr, UpdateSettings, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::UpdateSettingsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateSettings, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateReportConfig, @@ -296,6 +542,20 @@ class MockMigrationCenterConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateReportConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateReportConfigRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateReportConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetReportConfig, (google::cloud::migrationcenter::v1::GetReportConfigRequest const& @@ -315,12 +575,38 @@ class MockMigrationCenterConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteReportConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteReportConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateReport, (google::cloud::migrationcenter::v1::CreateReportRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateReport, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::CreateReportRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateReport, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetReport, (google::cloud::migrationcenter::v1::GetReportRequest const& request), @@ -336,6 +622,19 @@ class MockMigrationCenterConnection DeleteReport, (google::cloud::migrationcenter::v1::DeleteReportRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteReport, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::migrationcenter::v1::DeleteReportRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteReport, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/monitoring/dashboard/v1/dashboards_connection.h b/google/cloud/monitoring/dashboard/v1/dashboards_connection.h index 1ab7a10561569..87374e85bc6d5 100644 --- a/google/cloud/monitoring/dashboard/v1/dashboards_connection.h +++ b/google/cloud/monitoring/dashboard/v1/dashboards_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/monitoring/dashboard/v1/dashboards_connection_idempotency_policy.h" #include "google/cloud/monitoring/dashboard/v1/internal/dashboards_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.cc b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.cc index 03f4b5e5ad9f9..5fcb0fb72b7ea 100644 --- a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.cc +++ b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.cc @@ -147,6 +147,62 @@ MetricsScopesConnectionImpl::CreateMonitoredProject( polling_policy(*current), __func__); } +StatusOr +MetricsScopesConnectionImpl::CreateMonitoredProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateMonitoredProject(request), + [this](grpc::ClientContext& context, Options const& options, + google::monitoring::metricsscope::v1:: + CreateMonitoredProjectRequest const& request) { + return stub_->CreateMonitoredProject(context, options, request); + }, + *current, request, __func__); +} + +future> +MetricsScopesConnectionImpl::CreateMonitoredProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateMonitoredProject", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::monitoring::metricsscope::v1::MonitoredProject>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::monitoring::metricsscope::v1::MonitoredProject>, + polling_policy(*current), __func__); +} + future> MetricsScopesConnectionImpl::DeleteMonitoredProject( google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& @@ -187,6 +243,62 @@ MetricsScopesConnectionImpl::DeleteMonitoredProject( polling_policy(*current), __func__); } +StatusOr +MetricsScopesConnectionImpl::DeleteMonitoredProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteMonitoredProject(request), + [this](grpc::ClientContext& context, Options const& options, + google::monitoring::metricsscope::v1:: + DeleteMonitoredProjectRequest const& request) { + return stub_->DeleteMonitoredProject(context, options, request); + }, + *current, request, __func__); +} + +future> +MetricsScopesConnectionImpl::DeleteMonitoredProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteMonitoredProject", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::monitoring::metricsscope::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::monitoring::metricsscope::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace monitoring_metricsscope_v1_internal } // namespace cloud diff --git a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.h b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.h index 626e0de652d3d..a50490e15a206 100644 --- a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.h +++ b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.h @@ -67,11 +67,31 @@ class MetricsScopesConnectionImpl google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const& request) override; + StatusOr CreateMonitoredProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const& + request) override; + + future> + CreateMonitoredProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteMonitoredProject( google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& request) override; + StatusOr DeleteMonitoredProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& + request) override; + + future> + DeleteMonitoredProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.cc b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.cc index ef5928d448d8b..e6f5c068d2cab 100644 --- a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.cc +++ b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.cc @@ -67,6 +67,33 @@ MetricsScopesTracingConnection::CreateMonitoredProject( child_->CreateMonitoredProject(request)); } +StatusOr +MetricsScopesTracingConnection::CreateMonitoredProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const& + request) { + auto span = internal::MakeSpan( + "monitoring_metricsscope_v1::MetricsScopesConnection::" + "CreateMonitoredProject"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateMonitoredProject( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MetricsScopesTracingConnection::CreateMonitoredProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "monitoring_metricsscope_v1::MetricsScopesConnection::" + "CreateMonitoredProject"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateMonitoredProject( + google::cloud::ExperimentalTag{}, operation)); +} + future> MetricsScopesTracingConnection::DeleteMonitoredProject( google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& @@ -79,6 +106,33 @@ MetricsScopesTracingConnection::DeleteMonitoredProject( child_->DeleteMonitoredProject(request)); } +StatusOr +MetricsScopesTracingConnection::DeleteMonitoredProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& + request) { + auto span = internal::MakeSpan( + "monitoring_metricsscope_v1::MetricsScopesConnection::" + "DeleteMonitoredProject"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteMonitoredProject( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +MetricsScopesTracingConnection::DeleteMonitoredProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "monitoring_metricsscope_v1::MetricsScopesConnection::" + "DeleteMonitoredProject"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteMonitoredProject( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.h b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.h index 949612185ddbb..adeebd0c7fa6a 100644 --- a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.h +++ b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.h @@ -56,11 +56,31 @@ class MetricsScopesTracingConnection google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const& request) override; + StatusOr CreateMonitoredProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const& + request) override; + + future> + CreateMonitoredProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteMonitoredProject( google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& request) override; + StatusOr DeleteMonitoredProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& + request) override; + + future> + DeleteMonitoredProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/monitoring/metricsscope/v1/metrics_scopes_connection.cc b/google/cloud/monitoring/metricsscope/v1/metrics_scopes_connection.cc index a93022307c932..55e3b804d99fa 100644 --- a/google/cloud/monitoring/metricsscope/v1/metrics_scopes_connection.cc +++ b/google/cloud/monitoring/metricsscope/v1/metrics_scopes_connection.cc @@ -60,6 +60,23 @@ MetricsScopesConnection::CreateMonitoredProject( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MetricsScopesConnection::CreateMonitoredProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::monitoring::metricsscope::v1:: + CreateMonitoredProjectRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MetricsScopesConnection::CreateMonitoredProject( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> MetricsScopesConnection::DeleteMonitoredProject( google::monitoring::metricsscope::v1:: @@ -69,6 +86,23 @@ MetricsScopesConnection::DeleteMonitoredProject( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +MetricsScopesConnection::DeleteMonitoredProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::monitoring::metricsscope::v1:: + DeleteMonitoredProjectRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +MetricsScopesConnection::DeleteMonitoredProject( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeMetricsScopesConnection( Options options) { internal::CheckExpectedOptions CreateMonitoredProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const& + request); + + virtual future< + StatusOr> + CreateMonitoredProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteMonitoredProject( google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& request); + + virtual StatusOr DeleteMonitoredProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& + request); + + virtual future< + StatusOr> + DeleteMonitoredProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/monitoring/metricsscope/v1/mocks/mock_metrics_scopes_connection.h b/google/cloud/monitoring/metricsscope/v1/mocks/mock_metrics_scopes_connection.h index b7237cd62c2c8..b079001bba0c4 100644 --- a/google/cloud/monitoring/metricsscope/v1/mocks/mock_metrics_scopes_connection.h +++ b/google/cloud/monitoring/metricsscope/v1/mocks/mock_metrics_scopes_connection.h @@ -68,12 +68,38 @@ class MockMetricsScopesConnection CreateMonitoredProjectRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateMonitoredProject, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::monitoring::metricsscope::v1:: + CreateMonitoredProjectRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateMonitoredProject, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteMonitoredProject, (google::monitoring::metricsscope::v1:: DeleteMonitoredProjectRequest const& request), (override)); + + MOCK_METHOD(StatusOr, DeleteMonitoredProject, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::monitoring::metricsscope::v1:: + DeleteMonitoredProjectRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteMonitoredProject, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/monitoring/v3/alert_policy_connection.h b/google/cloud/monitoring/v3/alert_policy_connection.h index ba46c0c9557fc..6d7172a73dd2e 100644 --- a/google/cloud/monitoring/v3/alert_policy_connection.h +++ b/google/cloud/monitoring/v3/alert_policy_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/monitoring/v3/alert_policy_connection_idempotency_policy.h" #include "google/cloud/monitoring/v3/internal/alert_policy_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/monitoring/v3/group_connection.h b/google/cloud/monitoring/v3/group_connection.h index 970c92b73daea..df01e86d0be55 100644 --- a/google/cloud/monitoring/v3/group_connection.h +++ b/google/cloud/monitoring/v3/group_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/monitoring/v3/group_connection_idempotency_policy.h" #include "google/cloud/monitoring/v3/internal/group_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/monitoring/v3/metric_connection.h b/google/cloud/monitoring/v3/metric_connection.h index 8842e0a37abf7..b8d61b5b758ea 100644 --- a/google/cloud/monitoring/v3/metric_connection.h +++ b/google/cloud/monitoring/v3/metric_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/monitoring/v3/internal/metric_retry_traits.h" #include "google/cloud/monitoring/v3/metric_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" diff --git a/google/cloud/monitoring/v3/notification_channel_connection.h b/google/cloud/monitoring/v3/notification_channel_connection.h index 121d40016f60c..2b17118d23987 100644 --- a/google/cloud/monitoring/v3/notification_channel_connection.h +++ b/google/cloud/monitoring/v3/notification_channel_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/monitoring/v3/internal/notification_channel_retry_traits.h" #include "google/cloud/monitoring/v3/notification_channel_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/monitoring/v3/query_connection.h b/google/cloud/monitoring/v3/query_connection.h index 104d50b77b132..76f23f761a9aa 100644 --- a/google/cloud/monitoring/v3/query_connection.h +++ b/google/cloud/monitoring/v3/query_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/monitoring/v3/internal/query_retry_traits.h" #include "google/cloud/monitoring/v3/query_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/monitoring/v3/service_monitoring_connection.h b/google/cloud/monitoring/v3/service_monitoring_connection.h index e35d14c50e859..a9d165bedd052 100644 --- a/google/cloud/monitoring/v3/service_monitoring_connection.h +++ b/google/cloud/monitoring/v3/service_monitoring_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/monitoring/v3/internal/service_monitoring_retry_traits.h" #include "google/cloud/monitoring/v3/service_monitoring_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/monitoring/v3/snooze_connection.h b/google/cloud/monitoring/v3/snooze_connection.h index 3d785cd7afc4d..4e977e2e5ba06 100644 --- a/google/cloud/monitoring/v3/snooze_connection.h +++ b/google/cloud/monitoring/v3/snooze_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/monitoring/v3/internal/snooze_retry_traits.h" #include "google/cloud/monitoring/v3/snooze_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/monitoring/v3/uptime_check_connection.h b/google/cloud/monitoring/v3/uptime_check_connection.h index e423daa52ab6c..5d47a6b0a866e 100644 --- a/google/cloud/monitoring/v3/uptime_check_connection.h +++ b/google/cloud/monitoring/v3/uptime_check_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/monitoring/v3/internal/uptime_check_retry_traits.h" #include "google/cloud/monitoring/v3/uptime_check_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/netapp/v1/internal/net_app_connection_impl.cc b/google/cloud/netapp/v1/internal/net_app_connection_impl.cc index 647f6c6987360..5dd419083edda 100644 --- a/google/cloud/netapp/v1/internal/net_app_connection_impl.cc +++ b/google/cloud/netapp/v1/internal/net_app_connection_impl.cc @@ -135,6 +135,59 @@ NetAppConnectionImpl::CreateStoragePool( polling_policy(*current), __func__); } +StatusOr +NetAppConnectionImpl::CreateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateStoragePoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateStoragePool(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::CreateStoragePoolRequest const& request) { + return stub_->CreateStoragePool(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::CreateStoragePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateStoragePool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::StoragePool>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::StoragePool>, + polling_policy(*current), __func__); +} + StatusOr NetAppConnectionImpl::GetStoragePool( google::cloud::netapp::v1::GetStoragePoolRequest const& request) { @@ -188,6 +241,59 @@ NetAppConnectionImpl::UpdateStoragePool( polling_policy(*current), __func__); } +StatusOr +NetAppConnectionImpl::UpdateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateStoragePoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateStoragePool(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::UpdateStoragePoolRequest const& request) { + return stub_->UpdateStoragePool(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::UpdateStoragePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateStoragePool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::StoragePool>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::StoragePool>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::DeleteStoragePool( google::cloud::netapp::v1::DeleteStoragePoolRequest const& request) { @@ -227,6 +333,60 @@ NetAppConnectionImpl::DeleteStoragePool( polling_policy(*current), __func__); } +StatusOr +NetAppConnectionImpl::DeleteStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteStoragePoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteStoragePool(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::DeleteStoragePoolRequest const& request) { + return stub_->DeleteStoragePool(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::DeleteStoragePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteStoragePool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::netapp::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange NetAppConnectionImpl::ListVolumes( google::cloud::netapp::v1::ListVolumesRequest request) { @@ -313,6 +473,57 @@ NetAppConnectionImpl::CreateVolume( polling_policy(*current), __func__); } +StatusOr NetAppConnectionImpl::CreateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateVolumeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateVolume(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::CreateVolumeRequest const& request) { + return stub_->CreateVolume(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::CreateVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateVolume", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::Volume>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::Volume>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::UpdateVolume( google::cloud::netapp::v1::UpdateVolumeRequest const& request) { @@ -352,6 +563,57 @@ NetAppConnectionImpl::UpdateVolume( polling_policy(*current), __func__); } +StatusOr NetAppConnectionImpl::UpdateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateVolumeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateVolume(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::UpdateVolumeRequest const& request) { + return stub_->UpdateVolume(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::UpdateVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateVolume", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::Volume>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::Volume>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::DeleteVolume( google::cloud::netapp::v1::DeleteVolumeRequest const& request) { @@ -391,6 +653,58 @@ NetAppConnectionImpl::DeleteVolume( polling_policy(*current), __func__); } +StatusOr NetAppConnectionImpl::DeleteVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteVolumeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteVolume(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::DeleteVolumeRequest const& request) { + return stub_->DeleteVolume(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::DeleteVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteVolume", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::netapp::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::RevertVolume( google::cloud::netapp::v1::RevertVolumeRequest const& request) { @@ -430,6 +744,57 @@ NetAppConnectionImpl::RevertVolume( polling_policy(*current), __func__); } +StatusOr NetAppConnectionImpl::RevertVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::RevertVolumeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RevertVolume(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::RevertVolumeRequest const& request) { + return stub_->RevertVolume(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::RevertVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RevertVolume", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::Volume>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::Volume>, + polling_policy(*current), __func__); +} + StreamRange NetAppConnectionImpl::ListSnapshots( google::cloud::netapp::v1::ListSnapshotsRequest request) { @@ -516,15 +881,66 @@ NetAppConnectionImpl::CreateSnapshot( polling_policy(*current), __func__); } -future> -NetAppConnectionImpl::DeleteSnapshot( - google::cloud::netapp::v1::DeleteSnapshotRequest const& request) { +StatusOr NetAppConnectionImpl::CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->DeleteSnapshot(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::netapp::v1::OperationMetadata>( + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateSnapshot(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::CreateSnapshotRequest const& request) { + return stub_->CreateSnapshot(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::CreateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateSnapshot", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::Snapshot>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::Snapshot>, + polling_policy(*current), __func__); +} + +future> +NetAppConnectionImpl::DeleteSnapshot( + google::cloud::netapp::v1::DeleteSnapshotRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->DeleteSnapshot(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::netapp::v1::OperationMetadata>( background_->cq(), current, std::move(request_copy), [stub = stub_]( google::cloud::CompletionQueue& cq, @@ -555,6 +971,58 @@ NetAppConnectionImpl::DeleteSnapshot( polling_policy(*current), __func__); } +StatusOr NetAppConnectionImpl::DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteSnapshotRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSnapshot(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::DeleteSnapshotRequest const& request) { + return stub_->DeleteSnapshot(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::DeleteSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteSnapshot", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::netapp::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::UpdateSnapshot( google::cloud::netapp::v1::UpdateSnapshotRequest const& request) { @@ -594,6 +1062,57 @@ NetAppConnectionImpl::UpdateSnapshot( polling_policy(*current), __func__); } +StatusOr NetAppConnectionImpl::UpdateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateSnapshotRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateSnapshot(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::UpdateSnapshotRequest const& request) { + return stub_->UpdateSnapshot(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::UpdateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateSnapshot", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::Snapshot>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::Snapshot>, + polling_policy(*current), __func__); +} + StreamRange NetAppConnectionImpl::ListActiveDirectories( google::cloud::netapp::v1::ListActiveDirectoriesRequest request) { @@ -685,6 +1204,60 @@ NetAppConnectionImpl::CreateActiveDirectory( polling_policy(*current), __func__); } +StatusOr +NetAppConnectionImpl::CreateActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateActiveDirectory(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::CreateActiveDirectoryRequest const& + request) { + return stub_->CreateActiveDirectory(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::CreateActiveDirectory( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateActiveDirectory", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::ActiveDirectory>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::ActiveDirectory>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::UpdateActiveDirectory( google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request) { @@ -725,6 +1298,60 @@ NetAppConnectionImpl::UpdateActiveDirectory( polling_policy(*current), __func__); } +StatusOr +NetAppConnectionImpl::UpdateActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateActiveDirectory(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& + request) { + return stub_->UpdateActiveDirectory(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::UpdateActiveDirectory( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateActiveDirectory", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::ActiveDirectory>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::ActiveDirectory>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::DeleteActiveDirectory( google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request) { @@ -765,6 +1392,60 @@ NetAppConnectionImpl::DeleteActiveDirectory( polling_policy(*current), __func__); } +StatusOr +NetAppConnectionImpl::DeleteActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteActiveDirectory(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& + request) { + return stub_->DeleteActiveDirectory(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::DeleteActiveDirectory( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteActiveDirectory", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::netapp::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange NetAppConnectionImpl::ListKmsConfigs( google::cloud::netapp::v1::ListKmsConfigsRequest request) { @@ -838,6 +1519,57 @@ NetAppConnectionImpl::CreateKmsConfig( polling_policy(*current), __func__); } +StatusOr NetAppConnectionImpl::CreateKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateKmsConfigRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateKmsConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::CreateKmsConfigRequest const& request) { + return stub_->CreateKmsConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::CreateKmsConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateKmsConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::KmsConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::KmsConfig>, + polling_policy(*current), __func__); +} + StatusOr NetAppConnectionImpl::GetKmsConfig( google::cloud::netapp::v1::GetKmsConfigRequest const& request) { @@ -891,14 +1623,65 @@ NetAppConnectionImpl::UpdateKmsConfig( polling_policy(*current), __func__); } -future> -NetAppConnectionImpl::EncryptVolumes( - google::cloud::netapp::v1::EncryptVolumesRequest const& request) { +StatusOr NetAppConnectionImpl::UpdateKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateKmsConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->EncryptVolumes(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateKmsConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::UpdateKmsConfigRequest const& request) { + return stub_->UpdateKmsConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::UpdateKmsConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateKmsConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::KmsConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::KmsConfig>, + polling_policy(*current), __func__); +} + +future> +NetAppConnectionImpl::EncryptVolumes( + google::cloud::netapp::v1::EncryptVolumesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->EncryptVolumes(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< google::cloud::netapp::v1::KmsConfig>( background_->cq(), current, std::move(request_copy), [stub = stub_]( @@ -930,6 +1713,57 @@ NetAppConnectionImpl::EncryptVolumes( polling_policy(*current), __func__); } +StatusOr NetAppConnectionImpl::EncryptVolumes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::EncryptVolumesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->EncryptVolumes(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::EncryptVolumesRequest const& request) { + return stub_->EncryptVolumes(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::EncryptVolumes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to EncryptVolumes", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::KmsConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::KmsConfig>, + polling_policy(*current), __func__); +} + StatusOr NetAppConnectionImpl::VerifyKmsConfig( google::cloud::netapp::v1::VerifyKmsConfigRequest const& request) { @@ -983,6 +1817,58 @@ NetAppConnectionImpl::DeleteKmsConfig( polling_policy(*current), __func__); } +StatusOr NetAppConnectionImpl::DeleteKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteKmsConfigRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteKmsConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::DeleteKmsConfigRequest const& request) { + return stub_->DeleteKmsConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::DeleteKmsConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteKmsConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::netapp::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange NetAppConnectionImpl::ListReplications( google::cloud::netapp::v1::ListReplicationsRequest request) { @@ -1070,6 +1956,59 @@ NetAppConnectionImpl::CreateReplication( polling_policy(*current), __func__); } +StatusOr +NetAppConnectionImpl::CreateReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateReplicationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateReplication(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::CreateReplicationRequest const& request) { + return stub_->CreateReplication(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::CreateReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateReplication", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::Replication>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::Replication>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::DeleteReplication( google::cloud::netapp::v1::DeleteReplicationRequest const& request) { @@ -1109,6 +2048,60 @@ NetAppConnectionImpl::DeleteReplication( polling_policy(*current), __func__); } +StatusOr +NetAppConnectionImpl::DeleteReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteReplicationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteReplication(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::DeleteReplicationRequest const& request) { + return stub_->DeleteReplication(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::DeleteReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteReplication", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::netapp::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::UpdateReplication( google::cloud::netapp::v1::UpdateReplicationRequest const& request) { @@ -1148,6 +2141,59 @@ NetAppConnectionImpl::UpdateReplication( polling_policy(*current), __func__); } +StatusOr +NetAppConnectionImpl::UpdateReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateReplicationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateReplication(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::UpdateReplicationRequest const& request) { + return stub_->UpdateReplication(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::UpdateReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateReplication", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::Replication>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::Replication>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::StopReplication( google::cloud::netapp::v1::StopReplicationRequest const& request) { @@ -1187,6 +2233,57 @@ NetAppConnectionImpl::StopReplication( polling_policy(*current), __func__); } +StatusOr NetAppConnectionImpl::StopReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::StopReplicationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StopReplication(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::StopReplicationRequest const& request) { + return stub_->StopReplication(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::StopReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to StopReplication", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::Replication>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::Replication>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::ResumeReplication( google::cloud::netapp::v1::ResumeReplicationRequest const& request) { @@ -1226,6 +2323,59 @@ NetAppConnectionImpl::ResumeReplication( polling_policy(*current), __func__); } +StatusOr +NetAppConnectionImpl::ResumeReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::ResumeReplicationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ResumeReplication(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::ResumeReplicationRequest const& request) { + return stub_->ResumeReplication(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::ResumeReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ResumeReplication", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::Replication>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::Replication>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::ReverseReplicationDirection( google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& @@ -1267,6 +2417,61 @@ NetAppConnectionImpl::ReverseReplicationDirection( polling_policy(*current), __func__); } +StatusOr +NetAppConnectionImpl::ReverseReplicationDirection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ReverseReplicationDirection(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& + request) { + return stub_->ReverseReplicationDirection(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::ReverseReplicationDirection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ReverseReplicationDirection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::Replication>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::Replication>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::CreateBackupVault( google::cloud::netapp::v1::CreateBackupVaultRequest const& request) { @@ -1306,6 +2511,59 @@ NetAppConnectionImpl::CreateBackupVault( polling_policy(*current), __func__); } +StatusOr +NetAppConnectionImpl::CreateBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupVaultRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateBackupVault(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::CreateBackupVaultRequest const& request) { + return stub_->CreateBackupVault(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::CreateBackupVault( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateBackupVault", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::BackupVault>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::BackupVault>, + polling_policy(*current), __func__); +} + StatusOr NetAppConnectionImpl::GetBackupVault( google::cloud::netapp::v1::GetBackupVaultRequest const& request) { @@ -1389,7 +2647,60 @@ NetAppConnectionImpl::UpdateBackupVault( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::netapp::v1::BackupVault>, - retry_policy(*current), backoff_policy(*current), idempotent, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +NetAppConnectionImpl::UpdateBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupVaultRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateBackupVault(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::UpdateBackupVaultRequest const& request) { + return stub_->UpdateBackupVault(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::UpdateBackupVault( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateBackupVault", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::BackupVault>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::BackupVault>, polling_policy(*current), __func__); } @@ -1432,6 +2743,60 @@ NetAppConnectionImpl::DeleteBackupVault( polling_policy(*current), __func__); } +StatusOr +NetAppConnectionImpl::DeleteBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupVaultRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteBackupVault(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::DeleteBackupVaultRequest const& request) { + return stub_->DeleteBackupVault(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::DeleteBackupVault( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteBackupVault", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::netapp::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::CreateBackup( google::cloud::netapp::v1::CreateBackupRequest const& request) { @@ -1471,6 +2836,57 @@ NetAppConnectionImpl::CreateBackup( polling_policy(*current), __func__); } +StatusOr NetAppConnectionImpl::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::CreateBackupRequest const& request) { + return stub_->CreateBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::Backup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::Backup>, + polling_policy(*current), __func__); +} + StatusOr NetAppConnectionImpl::GetBackup( google::cloud::netapp::v1::GetBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1557,6 +2973,58 @@ NetAppConnectionImpl::DeleteBackup( polling_policy(*current), __func__); } +StatusOr NetAppConnectionImpl::DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::DeleteBackupRequest const& request) { + return stub_->DeleteBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::DeleteBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::netapp::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::UpdateBackup( google::cloud::netapp::v1::UpdateBackupRequest const& request) { @@ -1596,6 +3064,57 @@ NetAppConnectionImpl::UpdateBackup( polling_policy(*current), __func__); } +StatusOr NetAppConnectionImpl::UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::UpdateBackupRequest const& request) { + return stub_->UpdateBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::Backup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::Backup>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::CreateBackupPolicy( google::cloud::netapp::v1::CreateBackupPolicyRequest const& request) { @@ -1635,6 +3154,59 @@ NetAppConnectionImpl::CreateBackupPolicy( polling_policy(*current), __func__); } +StatusOr +NetAppConnectionImpl::CreateBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateBackupPolicy(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::CreateBackupPolicyRequest const& request) { + return stub_->CreateBackupPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::CreateBackupPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateBackupPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::BackupPolicy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::BackupPolicy>, + polling_policy(*current), __func__); +} + StatusOr NetAppConnectionImpl::GetBackupPolicy( google::cloud::netapp::v1::GetBackupPolicyRequest const& request) { @@ -1722,6 +3294,59 @@ NetAppConnectionImpl::UpdateBackupPolicy( polling_policy(*current), __func__); } +StatusOr +NetAppConnectionImpl::UpdateBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateBackupPolicy(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request) { + return stub_->UpdateBackupPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::UpdateBackupPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateBackupPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::BackupPolicy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::netapp::v1::BackupPolicy>, + polling_policy(*current), __func__); +} + future> NetAppConnectionImpl::DeleteBackupPolicy( google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request) { @@ -1761,6 +3386,60 @@ NetAppConnectionImpl::DeleteBackupPolicy( polling_policy(*current), __func__); } +StatusOr +NetAppConnectionImpl::DeleteBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteBackupPolicy(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request) { + return stub_->DeleteBackupPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +NetAppConnectionImpl::DeleteBackupPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteBackupPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::netapp::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::netapp::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace netapp_v1_internal } // namespace cloud diff --git a/google/cloud/netapp/v1/internal/net_app_connection_impl.h b/google/cloud/netapp/v1/internal/net_app_connection_impl.h index 93c2fa7b3dec1..829de158107e9 100644 --- a/google/cloud/netapp/v1/internal/net_app_connection_impl.h +++ b/google/cloud/netapp/v1/internal/net_app_connection_impl.h @@ -57,6 +57,15 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::CreateStoragePoolRequest const& request) override; + StatusOr CreateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateStoragePoolRequest const& request) + override; + + future> CreateStoragePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetStoragePool( google::cloud::netapp::v1::GetStoragePoolRequest const& request) override; @@ -64,10 +73,28 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::UpdateStoragePoolRequest const& request) override; + StatusOr UpdateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateStoragePoolRequest const& request) + override; + + future> UpdateStoragePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteStoragePool(google::cloud::netapp::v1::DeleteStoragePoolRequest const& request) override; + StatusOr DeleteStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteStoragePoolRequest const& request) + override; + + future> + DeleteStoragePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListVolumes( google::cloud::netapp::v1::ListVolumesRequest request) override; @@ -77,15 +104,47 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { future> CreateVolume( google::cloud::netapp::v1::CreateVolumeRequest const& request) override; + StatusOr CreateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateVolumeRequest const& request) override; + + future> CreateVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateVolume( google::cloud::netapp::v1::UpdateVolumeRequest const& request) override; + StatusOr UpdateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateVolumeRequest const& request) override; + + future> UpdateVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteVolume( google::cloud::netapp::v1::DeleteVolumeRequest const& request) override; + StatusOr DeleteVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteVolumeRequest const& request) override; + + future> DeleteVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RevertVolume( google::cloud::netapp::v1::RevertVolumeRequest const& request) override; + StatusOr RevertVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::RevertVolumeRequest const& request) override; + + future> RevertVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListSnapshots( google::cloud::netapp::v1::ListSnapshotsRequest request) override; @@ -95,12 +154,36 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { future> CreateSnapshot( google::cloud::netapp::v1::CreateSnapshotRequest const& request) override; + StatusOr CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateSnapshotRequest const& request) override; + + future> CreateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSnapshot( google::cloud::netapp::v1::DeleteSnapshotRequest const& request) override; + StatusOr DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteSnapshotRequest const& request) override; + + future> DeleteSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateSnapshot( google::cloud::netapp::v1::UpdateSnapshotRequest const& request) override; + StatusOr UpdateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateSnapshotRequest const& request) override; + + future> UpdateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListActiveDirectories( google::cloud::netapp::v1::ListActiveDirectoriesRequest request) override; @@ -113,16 +196,46 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request) override; + StatusOr CreateActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request) + override; + + future> + CreateActiveDirectory( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateActiveDirectory( google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request) override; + StatusOr UpdateActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request) + override; + + future> + UpdateActiveDirectory( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteActiveDirectory( google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request) override; + StatusOr DeleteActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request) + override; + + future> + DeleteActiveDirectory( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListKmsConfigs( google::cloud::netapp::v1::ListKmsConfigsRequest request) override; @@ -130,6 +243,15 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::CreateKmsConfigRequest const& request) override; + StatusOr CreateKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateKmsConfigRequest const& request) + override; + + future> CreateKmsConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetKmsConfig( google::cloud::netapp::v1::GetKmsConfigRequest const& request) override; @@ -137,9 +259,26 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::UpdateKmsConfigRequest const& request) override; + StatusOr UpdateKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateKmsConfigRequest const& request) + override; + + future> UpdateKmsConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> EncryptVolumes( google::cloud::netapp::v1::EncryptVolumesRequest const& request) override; + StatusOr EncryptVolumes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::EncryptVolumesRequest const& request) override; + + future> EncryptVolumes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr VerifyKmsConfig( google::cloud::netapp::v1::VerifyKmsConfigRequest const& request) override; @@ -148,6 +287,15 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { DeleteKmsConfig(google::cloud::netapp::v1::DeleteKmsConfigRequest const& request) override; + StatusOr DeleteKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteKmsConfigRequest const& request) + override; + + future> + DeleteKmsConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListReplications( google::cloud::netapp::v1::ListReplicationsRequest request) override; @@ -158,31 +306,95 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::CreateReplicationRequest const& request) override; + StatusOr CreateReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateReplicationRequest const& request) + override; + + future> CreateReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteReplication(google::cloud::netapp::v1::DeleteReplicationRequest const& request) override; + StatusOr DeleteReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteReplicationRequest const& request) + override; + + future> + DeleteReplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateReplication( google::cloud::netapp::v1::UpdateReplicationRequest const& request) override; + StatusOr UpdateReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateReplicationRequest const& request) + override; + + future> UpdateReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopReplication( google::cloud::netapp::v1::StopReplicationRequest const& request) override; + StatusOr StopReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::StopReplicationRequest const& request) + override; + + future> StopReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResumeReplication( google::cloud::netapp::v1::ResumeReplicationRequest const& request) override; + StatusOr ResumeReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::ResumeReplicationRequest const& request) + override; + + future> ResumeReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReverseReplicationDirection( google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& request) override; + StatusOr ReverseReplicationDirection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& + request) override; + + future> + ReverseReplicationDirection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateBackupVault( google::cloud::netapp::v1::CreateBackupVaultRequest const& request) override; + StatusOr CreateBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupVaultRequest const& request) + override; + + future> CreateBackupVault( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBackupVault( google::cloud::netapp::v1::GetBackupVaultRequest const& request) override; @@ -193,13 +405,39 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::UpdateBackupVaultRequest const& request) override; + StatusOr UpdateBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupVaultRequest const& request) + override; + + future> UpdateBackupVault( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteBackupVault(google::cloud::netapp::v1::DeleteBackupVaultRequest const& request) override; + StatusOr DeleteBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupVaultRequest const& request) + override; + + future> + DeleteBackupVault(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateBackup( google::cloud::netapp::v1::CreateBackupRequest const& request) override; + StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupRequest const& request) override; + + future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBackup( google::cloud::netapp::v1::GetBackupRequest const& request) override; @@ -209,13 +447,38 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { future> DeleteBackup( google::cloud::netapp::v1::DeleteBackupRequest const& request) override; + StatusOr DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupRequest const& request) override; + + future> DeleteBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateBackup( google::cloud::netapp::v1::UpdateBackupRequest const& request) override; + StatusOr UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupRequest const& request) override; + + future> UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateBackupPolicy( google::cloud::netapp::v1::CreateBackupPolicyRequest const& request) override; + StatusOr CreateBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupPolicyRequest const& request) + override; + + future> CreateBackupPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBackupPolicy( google::cloud::netapp::v1::GetBackupPolicyRequest const& request) override; @@ -227,10 +490,28 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request) override; + StatusOr UpdateBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request) + override; + + future> UpdateBackupPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteBackupPolicy(google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request) override; + StatusOr DeleteBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request) + override; + + future> + DeleteBackupPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/netapp/v1/internal/net_app_tracing_connection.cc b/google/cloud/netapp/v1/internal/net_app_tracing_connection.cc index 5a27dbd7c9679..da8674dc58f51 100644 --- a/google/cloud/netapp/v1/internal/net_app_tracing_connection.cc +++ b/google/cloud/netapp/v1/internal/net_app_tracing_connection.cc @@ -53,6 +53,30 @@ NetAppTracingConnection::CreateStoragePool( return internal::EndSpan(std::move(span), child_->CreateStoragePool(request)); } +StatusOr +NetAppTracingConnection::CreateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateStoragePoolRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::CreateStoragePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateStoragePool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::CreateStoragePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::CreateStoragePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateStoragePool(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NetAppTracingConnection::GetStoragePool( google::cloud::netapp::v1::GetStoragePoolRequest const& request) { @@ -70,6 +94,30 @@ NetAppTracingConnection::UpdateStoragePool( return internal::EndSpan(std::move(span), child_->UpdateStoragePool(request)); } +StatusOr +NetAppTracingConnection::UpdateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateStoragePoolRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::UpdateStoragePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateStoragePool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::UpdateStoragePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::UpdateStoragePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateStoragePool(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::DeleteStoragePool( google::cloud::netapp::v1::DeleteStoragePoolRequest const& request) { @@ -79,6 +127,30 @@ NetAppTracingConnection::DeleteStoragePool( return internal::EndSpan(std::move(span), child_->DeleteStoragePool(request)); } +StatusOr +NetAppTracingConnection::DeleteStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteStoragePoolRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::DeleteStoragePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteStoragePool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::DeleteStoragePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::DeleteStoragePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteStoragePool(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetAppTracingConnection::ListVolumes( google::cloud::netapp::v1::ListVolumesRequest request) { @@ -104,6 +176,27 @@ NetAppTracingConnection::CreateVolume( return internal::EndSpan(std::move(span), child_->CreateVolume(request)); } +StatusOr NetAppTracingConnection::CreateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateVolumeRequest const& request) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateVolume"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateVolume(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::CreateVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateVolume"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateVolume(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::UpdateVolume( google::cloud::netapp::v1::UpdateVolumeRequest const& request) { @@ -112,6 +205,27 @@ NetAppTracingConnection::UpdateVolume( return internal::EndSpan(std::move(span), child_->UpdateVolume(request)); } +StatusOr NetAppTracingConnection::UpdateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateVolumeRequest const& request) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateVolume"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateVolume(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::UpdateVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateVolume"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateVolume(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::DeleteVolume( google::cloud::netapp::v1::DeleteVolumeRequest const& request) { @@ -120,6 +234,27 @@ NetAppTracingConnection::DeleteVolume( return internal::EndSpan(std::move(span), child_->DeleteVolume(request)); } +StatusOr NetAppTracingConnection::DeleteVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteVolumeRequest const& request) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteVolume"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteVolume(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::DeleteVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteVolume"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteVolume(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::RevertVolume( google::cloud::netapp::v1::RevertVolumeRequest const& request) { @@ -128,6 +263,27 @@ NetAppTracingConnection::RevertVolume( return internal::EndSpan(std::move(span), child_->RevertVolume(request)); } +StatusOr NetAppTracingConnection::RevertVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::RevertVolumeRequest const& request) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::RevertVolume"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RevertVolume(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::RevertVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::RevertVolume"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RevertVolume(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetAppTracingConnection::ListSnapshots( google::cloud::netapp::v1::ListSnapshotsRequest request) { @@ -154,6 +310,28 @@ NetAppTracingConnection::CreateSnapshot( return internal::EndSpan(std::move(span), child_->CreateSnapshot(request)); } +StatusOr +NetAppTracingConnection::CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateSnapshotRequest const& request) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateSnapshot(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::CreateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateSnapshot(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::DeleteSnapshot( google::cloud::netapp::v1::DeleteSnapshotRequest const& request) { @@ -162,6 +340,28 @@ NetAppTracingConnection::DeleteSnapshot( return internal::EndSpan(std::move(span), child_->DeleteSnapshot(request)); } +StatusOr +NetAppTracingConnection::DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteSnapshotRequest const& request) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSnapshot(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::DeleteSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSnapshot(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::UpdateSnapshot( google::cloud::netapp::v1::UpdateSnapshotRequest const& request) { @@ -170,6 +370,28 @@ NetAppTracingConnection::UpdateSnapshot( return internal::EndSpan(std::move(span), child_->UpdateSnapshot(request)); } +StatusOr +NetAppTracingConnection::UpdateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateSnapshotRequest const& request) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateSnapshot(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::UpdateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateSnapshot"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateSnapshot(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetAppTracingConnection::ListActiveDirectories( google::cloud::netapp::v1::ListActiveDirectoriesRequest request) { @@ -201,6 +423,30 @@ NetAppTracingConnection::CreateActiveDirectory( child_->CreateActiveDirectory(request)); } +StatusOr +NetAppTracingConnection::CreateActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::CreateActiveDirectory"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateActiveDirectory( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::CreateActiveDirectory( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::CreateActiveDirectory"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateActiveDirectory( + google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::UpdateActiveDirectory( google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request) { @@ -211,6 +457,30 @@ NetAppTracingConnection::UpdateActiveDirectory( child_->UpdateActiveDirectory(request)); } +StatusOr +NetAppTracingConnection::UpdateActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::UpdateActiveDirectory"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateActiveDirectory( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::UpdateActiveDirectory( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::UpdateActiveDirectory"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateActiveDirectory( + google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::DeleteActiveDirectory( google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request) { @@ -221,6 +491,30 @@ NetAppTracingConnection::DeleteActiveDirectory( child_->DeleteActiveDirectory(request)); } +StatusOr +NetAppTracingConnection::DeleteActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::DeleteActiveDirectory"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteActiveDirectory( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::DeleteActiveDirectory( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::DeleteActiveDirectory"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteActiveDirectory( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetAppTracingConnection::ListKmsConfigs( google::cloud::netapp::v1::ListKmsConfigsRequest request) { @@ -240,6 +534,30 @@ NetAppTracingConnection::CreateKmsConfig( return internal::EndSpan(std::move(span), child_->CreateKmsConfig(request)); } +StatusOr +NetAppTracingConnection::CreateKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateKmsConfigRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::CreateKmsConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateKmsConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::CreateKmsConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::CreateKmsConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateKmsConfig(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NetAppTracingConnection::GetKmsConfig( google::cloud::netapp::v1::GetKmsConfigRequest const& request) { @@ -257,6 +575,30 @@ NetAppTracingConnection::UpdateKmsConfig( return internal::EndSpan(std::move(span), child_->UpdateKmsConfig(request)); } +StatusOr +NetAppTracingConnection::UpdateKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateKmsConfigRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::UpdateKmsConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateKmsConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::UpdateKmsConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::UpdateKmsConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateKmsConfig(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::EncryptVolumes( google::cloud::netapp::v1::EncryptVolumesRequest const& request) { @@ -265,6 +607,28 @@ NetAppTracingConnection::EncryptVolumes( return internal::EndSpan(std::move(span), child_->EncryptVolumes(request)); } +StatusOr +NetAppTracingConnection::EncryptVolumes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::EncryptVolumesRequest const& request) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::EncryptVolumes"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->EncryptVolumes(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::EncryptVolumes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::EncryptVolumes"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->EncryptVolumes(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NetAppTracingConnection::VerifyKmsConfig( google::cloud::netapp::v1::VerifyKmsConfigRequest const& request) { @@ -283,6 +647,30 @@ NetAppTracingConnection::DeleteKmsConfig( return internal::EndSpan(std::move(span), child_->DeleteKmsConfig(request)); } +StatusOr +NetAppTracingConnection::DeleteKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteKmsConfigRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::DeleteKmsConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteKmsConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::DeleteKmsConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::DeleteKmsConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteKmsConfig(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetAppTracingConnection::ListReplications( google::cloud::netapp::v1::ListReplicationsRequest request) { @@ -311,6 +699,30 @@ NetAppTracingConnection::CreateReplication( return internal::EndSpan(std::move(span), child_->CreateReplication(request)); } +StatusOr +NetAppTracingConnection::CreateReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateReplicationRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::CreateReplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateReplication(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::CreateReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::CreateReplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateReplication(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::DeleteReplication( google::cloud::netapp::v1::DeleteReplicationRequest const& request) { @@ -320,6 +732,30 @@ NetAppTracingConnection::DeleteReplication( return internal::EndSpan(std::move(span), child_->DeleteReplication(request)); } +StatusOr +NetAppTracingConnection::DeleteReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteReplicationRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::DeleteReplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteReplication(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::DeleteReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::DeleteReplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteReplication(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::UpdateReplication( google::cloud::netapp::v1::UpdateReplicationRequest const& request) { @@ -329,6 +765,30 @@ NetAppTracingConnection::UpdateReplication( return internal::EndSpan(std::move(span), child_->UpdateReplication(request)); } +StatusOr +NetAppTracingConnection::UpdateReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateReplicationRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::UpdateReplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateReplication(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::UpdateReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::UpdateReplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateReplication(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::StopReplication( google::cloud::netapp::v1::StopReplicationRequest const& request) { @@ -338,6 +798,30 @@ NetAppTracingConnection::StopReplication( return internal::EndSpan(std::move(span), child_->StopReplication(request)); } +StatusOr +NetAppTracingConnection::StopReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::StopReplicationRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::StopReplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StopReplication(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::StopReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::StopReplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StopReplication(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::ResumeReplication( google::cloud::netapp::v1::ResumeReplicationRequest const& request) { @@ -347,6 +831,30 @@ NetAppTracingConnection::ResumeReplication( return internal::EndSpan(std::move(span), child_->ResumeReplication(request)); } +StatusOr +NetAppTracingConnection::ResumeReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::ResumeReplicationRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::ResumeReplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ResumeReplication(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::ResumeReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::ResumeReplication"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ResumeReplication(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::ReverseReplicationDirection( google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& @@ -358,6 +866,31 @@ NetAppTracingConnection::ReverseReplicationDirection( child_->ReverseReplicationDirection(request)); } +StatusOr +NetAppTracingConnection::ReverseReplicationDirection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& + request) { + auto span = internal::MakeSpan( + "netapp_v1::NetAppConnection::ReverseReplicationDirection"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ReverseReplicationDirection( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::ReverseReplicationDirection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "netapp_v1::NetAppConnection::ReverseReplicationDirection"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ReverseReplicationDirection( + google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::CreateBackupVault( google::cloud::netapp::v1::CreateBackupVaultRequest const& request) { @@ -367,6 +900,30 @@ NetAppTracingConnection::CreateBackupVault( return internal::EndSpan(std::move(span), child_->CreateBackupVault(request)); } +StatusOr +NetAppTracingConnection::CreateBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupVaultRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::CreateBackupVault"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateBackupVault(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::CreateBackupVault( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::CreateBackupVault"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateBackupVault(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NetAppTracingConnection::GetBackupVault( google::cloud::netapp::v1::GetBackupVaultRequest const& request) { @@ -395,6 +952,30 @@ NetAppTracingConnection::UpdateBackupVault( return internal::EndSpan(std::move(span), child_->UpdateBackupVault(request)); } +StatusOr +NetAppTracingConnection::UpdateBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupVaultRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::UpdateBackupVault"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateBackupVault(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::UpdateBackupVault( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::UpdateBackupVault"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateBackupVault(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::DeleteBackupVault( google::cloud::netapp::v1::DeleteBackupVaultRequest const& request) { @@ -404,6 +985,30 @@ NetAppTracingConnection::DeleteBackupVault( return internal::EndSpan(std::move(span), child_->DeleteBackupVault(request)); } +StatusOr +NetAppTracingConnection::DeleteBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupVaultRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::DeleteBackupVault"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteBackupVault(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::DeleteBackupVault( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::DeleteBackupVault"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteBackupVault(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::CreateBackup( google::cloud::netapp::v1::CreateBackupRequest const& request) { @@ -412,6 +1017,27 @@ NetAppTracingConnection::CreateBackup( return internal::EndSpan(std::move(span), child_->CreateBackup(request)); } +StatusOr NetAppTracingConnection::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupRequest const& request) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateBackup(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NetAppTracingConnection::GetBackup( google::cloud::netapp::v1::GetBackupRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::GetBackup"); @@ -437,6 +1063,27 @@ NetAppTracingConnection::DeleteBackup( return internal::EndSpan(std::move(span), child_->DeleteBackup(request)); } +StatusOr NetAppTracingConnection::DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupRequest const& request) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::DeleteBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteBackup(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::UpdateBackup( google::cloud::netapp::v1::UpdateBackupRequest const& request) { @@ -445,6 +1092,27 @@ NetAppTracingConnection::UpdateBackup( return internal::EndSpan(std::move(span), child_->UpdateBackup(request)); } +StatusOr NetAppTracingConnection::UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupRequest const& request) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateBackup(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::CreateBackupPolicy( google::cloud::netapp::v1::CreateBackupPolicyRequest const& request) { @@ -455,6 +1123,30 @@ NetAppTracingConnection::CreateBackupPolicy( child_->CreateBackupPolicy(request)); } +StatusOr +NetAppTracingConnection::CreateBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupPolicyRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::CreateBackupPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateBackupPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::CreateBackupPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::CreateBackupPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateBackupPolicy(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NetAppTracingConnection::GetBackupPolicy( google::cloud::netapp::v1::GetBackupPolicyRequest const& request) { @@ -485,6 +1177,30 @@ NetAppTracingConnection::UpdateBackupPolicy( child_->UpdateBackupPolicy(request)); } +StatusOr +NetAppTracingConnection::UpdateBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::UpdateBackupPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateBackupPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::UpdateBackupPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::UpdateBackupPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateBackupPolicy(google::cloud::ExperimentalTag{}, operation)); +} + future> NetAppTracingConnection::DeleteBackupPolicy( google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request) { @@ -495,6 +1211,30 @@ NetAppTracingConnection::DeleteBackupPolicy( child_->DeleteBackupPolicy(request)); } +StatusOr +NetAppTracingConnection::DeleteBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::DeleteBackupPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteBackupPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetAppTracingConnection::DeleteBackupPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("netapp_v1::NetAppConnection::DeleteBackupPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteBackupPolicy(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr MakeNetAppTracingConnection( diff --git a/google/cloud/netapp/v1/internal/net_app_tracing_connection.h b/google/cloud/netapp/v1/internal/net_app_tracing_connection.h index 7599e10f75e26..53a4ebe1b4716 100644 --- a/google/cloud/netapp/v1/internal/net_app_tracing_connection.h +++ b/google/cloud/netapp/v1/internal/net_app_tracing_connection.h @@ -46,6 +46,15 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::CreateStoragePoolRequest const& request) override; + StatusOr CreateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateStoragePoolRequest const& request) + override; + + future> CreateStoragePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetStoragePool( google::cloud::netapp::v1::GetStoragePoolRequest const& request) override; @@ -53,10 +62,28 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::UpdateStoragePoolRequest const& request) override; + StatusOr UpdateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateStoragePoolRequest const& request) + override; + + future> UpdateStoragePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteStoragePool(google::cloud::netapp::v1::DeleteStoragePoolRequest const& request) override; + StatusOr DeleteStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteStoragePoolRequest const& request) + override; + + future> + DeleteStoragePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListVolumes( google::cloud::netapp::v1::ListVolumesRequest request) override; @@ -66,15 +93,47 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { future> CreateVolume( google::cloud::netapp::v1::CreateVolumeRequest const& request) override; + StatusOr CreateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateVolumeRequest const& request) override; + + future> CreateVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateVolume( google::cloud::netapp::v1::UpdateVolumeRequest const& request) override; + StatusOr UpdateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateVolumeRequest const& request) override; + + future> UpdateVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteVolume( google::cloud::netapp::v1::DeleteVolumeRequest const& request) override; + StatusOr DeleteVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteVolumeRequest const& request) override; + + future> DeleteVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RevertVolume( google::cloud::netapp::v1::RevertVolumeRequest const& request) override; + StatusOr RevertVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::RevertVolumeRequest const& request) override; + + future> RevertVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListSnapshots( google::cloud::netapp::v1::ListSnapshotsRequest request) override; @@ -84,12 +143,36 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { future> CreateSnapshot( google::cloud::netapp::v1::CreateSnapshotRequest const& request) override; + StatusOr CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateSnapshotRequest const& request) override; + + future> CreateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSnapshot( google::cloud::netapp::v1::DeleteSnapshotRequest const& request) override; + StatusOr DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteSnapshotRequest const& request) override; + + future> DeleteSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateSnapshot( google::cloud::netapp::v1::UpdateSnapshotRequest const& request) override; + StatusOr UpdateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateSnapshotRequest const& request) override; + + future> UpdateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListActiveDirectories( google::cloud::netapp::v1::ListActiveDirectoriesRequest request) override; @@ -102,16 +185,46 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request) override; + StatusOr CreateActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request) + override; + + future> + CreateActiveDirectory( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateActiveDirectory( google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request) override; + StatusOr UpdateActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request) + override; + + future> + UpdateActiveDirectory( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteActiveDirectory( google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request) override; + StatusOr DeleteActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request) + override; + + future> + DeleteActiveDirectory( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListKmsConfigs( google::cloud::netapp::v1::ListKmsConfigsRequest request) override; @@ -119,6 +232,15 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::CreateKmsConfigRequest const& request) override; + StatusOr CreateKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateKmsConfigRequest const& request) + override; + + future> CreateKmsConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetKmsConfig( google::cloud::netapp::v1::GetKmsConfigRequest const& request) override; @@ -126,9 +248,26 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::UpdateKmsConfigRequest const& request) override; + StatusOr UpdateKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateKmsConfigRequest const& request) + override; + + future> UpdateKmsConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> EncryptVolumes( google::cloud::netapp::v1::EncryptVolumesRequest const& request) override; + StatusOr EncryptVolumes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::EncryptVolumesRequest const& request) override; + + future> EncryptVolumes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr VerifyKmsConfig( google::cloud::netapp::v1::VerifyKmsConfigRequest const& request) override; @@ -137,6 +276,15 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { DeleteKmsConfig(google::cloud::netapp::v1::DeleteKmsConfigRequest const& request) override; + StatusOr DeleteKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteKmsConfigRequest const& request) + override; + + future> + DeleteKmsConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListReplications( google::cloud::netapp::v1::ListReplicationsRequest request) override; @@ -147,31 +295,95 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::CreateReplicationRequest const& request) override; + StatusOr CreateReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateReplicationRequest const& request) + override; + + future> CreateReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteReplication(google::cloud::netapp::v1::DeleteReplicationRequest const& request) override; + StatusOr DeleteReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteReplicationRequest const& request) + override; + + future> + DeleteReplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateReplication( google::cloud::netapp::v1::UpdateReplicationRequest const& request) override; + StatusOr UpdateReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateReplicationRequest const& request) + override; + + future> UpdateReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopReplication( google::cloud::netapp::v1::StopReplicationRequest const& request) override; + StatusOr StopReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::StopReplicationRequest const& request) + override; + + future> StopReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResumeReplication( google::cloud::netapp::v1::ResumeReplicationRequest const& request) override; + StatusOr ResumeReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::ResumeReplicationRequest const& request) + override; + + future> ResumeReplication( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReverseReplicationDirection( google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& request) override; + StatusOr ReverseReplicationDirection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& + request) override; + + future> + ReverseReplicationDirection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateBackupVault( google::cloud::netapp::v1::CreateBackupVaultRequest const& request) override; + StatusOr CreateBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupVaultRequest const& request) + override; + + future> CreateBackupVault( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBackupVault( google::cloud::netapp::v1::GetBackupVaultRequest const& request) override; @@ -182,13 +394,39 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::UpdateBackupVaultRequest const& request) override; + StatusOr UpdateBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupVaultRequest const& request) + override; + + future> UpdateBackupVault( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteBackupVault(google::cloud::netapp::v1::DeleteBackupVaultRequest const& request) override; + StatusOr DeleteBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupVaultRequest const& request) + override; + + future> + DeleteBackupVault(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateBackup( google::cloud::netapp::v1::CreateBackupRequest const& request) override; + StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupRequest const& request) override; + + future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBackup( google::cloud::netapp::v1::GetBackupRequest const& request) override; @@ -198,13 +436,38 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { future> DeleteBackup( google::cloud::netapp::v1::DeleteBackupRequest const& request) override; + StatusOr DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupRequest const& request) override; + + future> DeleteBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateBackup( google::cloud::netapp::v1::UpdateBackupRequest const& request) override; + StatusOr UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupRequest const& request) override; + + future> UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateBackupPolicy( google::cloud::netapp::v1::CreateBackupPolicyRequest const& request) override; + StatusOr CreateBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupPolicyRequest const& request) + override; + + future> CreateBackupPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBackupPolicy( google::cloud::netapp::v1::GetBackupPolicyRequest const& request) override; @@ -216,10 +479,28 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request) override; + StatusOr UpdateBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request) + override; + + future> UpdateBackupPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteBackupPolicy(google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request) override; + StatusOr DeleteBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request) + override; + + future> + DeleteBackupPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/netapp/v1/mocks/mock_net_app_connection.h b/google/cloud/netapp/v1/mocks/mock_net_app_connection.h index dfb737eccbbb4..bfe6d13eea1c1 100644 --- a/google/cloud/netapp/v1/mocks/mock_net_app_connection.h +++ b/google/cloud/netapp/v1/mocks/mock_net_app_connection.h @@ -57,6 +57,18 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (google::cloud::netapp::v1::CreateStoragePoolRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateStoragePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateStoragePoolRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateStoragePool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetStoragePool, (google::cloud::netapp::v1::GetStoragePoolRequest const& request), (override)); @@ -67,12 +79,36 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (google::cloud::netapp::v1::UpdateStoragePoolRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateStoragePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateStoragePoolRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateStoragePool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteStoragePool, (google::cloud::netapp::v1::DeleteStoragePoolRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteStoragePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteStoragePoolRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteStoragePool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListVolumes, (google::cloud::netapp::v1::ListVolumesRequest request), (override)); @@ -85,19 +121,60 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (google::cloud::netapp::v1::CreateVolumeRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateVolume, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateVolumeRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateVolume, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateVolume, (google::cloud::netapp::v1::UpdateVolumeRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateVolume, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateVolumeRequest const& request), + (override)); + + MOCK_METHOD(future>, UpdateVolume, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteVolume, (google::cloud::netapp::v1::DeleteVolumeRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteVolume, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteVolumeRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteVolume, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, RevertVolume, (google::cloud::netapp::v1::RevertVolumeRequest const& request), (override)); + MOCK_METHOD(StatusOr, RevertVolume, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::RevertVolumeRequest const& request), + (override)); + + MOCK_METHOD(future>, RevertVolume, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListSnapshots, (google::cloud::netapp::v1::ListSnapshotsRequest request), (override)); @@ -111,16 +188,49 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (google::cloud::netapp::v1::CreateSnapshotRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateSnapshot, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateSnapshotRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateSnapshot, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteSnapshot, (google::cloud::netapp::v1::DeleteSnapshotRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteSnapshot, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteSnapshotRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteSnapshot, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateSnapshot, (google::cloud::netapp::v1::UpdateSnapshotRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateSnapshot, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateSnapshotRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateSnapshot, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListActiveDirectories, (google::cloud::netapp::v1::ListActiveDirectoriesRequest request), @@ -137,18 +247,54 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateActiveDirectory, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateActiveDirectory, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateActiveDirectory, (google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateActiveDirectory, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateActiveDirectory, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteActiveDirectory, (google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteActiveDirectory, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteActiveDirectory, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListKmsConfigs, (google::cloud::netapp::v1::ListKmsConfigsRequest request), @@ -159,6 +305,18 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (google::cloud::netapp::v1::CreateKmsConfigRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateKmsConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateKmsConfigRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateKmsConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetKmsConfig, (google::cloud::netapp::v1::GetKmsConfigRequest const& request), (override)); @@ -168,11 +326,34 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (google::cloud::netapp::v1::UpdateKmsConfigRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateKmsConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateKmsConfigRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateKmsConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, EncryptVolumes, (google::cloud::netapp::v1::EncryptVolumesRequest const& request), (override)); + MOCK_METHOD(StatusOr, EncryptVolumes, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::EncryptVolumesRequest const& request), + (override)); + + MOCK_METHOD(future>, + EncryptVolumes, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, VerifyKmsConfig, @@ -185,6 +366,18 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (google::cloud::netapp::v1::DeleteKmsConfigRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteKmsConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteKmsConfigRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteKmsConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListReplications, (google::cloud::netapp::v1::ListReplicationsRequest request), @@ -200,29 +393,89 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (google::cloud::netapp::v1::CreateReplicationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateReplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateReplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateReplication, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteReplication, (google::cloud::netapp::v1::DeleteReplicationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteReplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteReplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteReplication, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateReplication, (google::cloud::netapp::v1::UpdateReplicationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateReplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateReplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateReplication, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, StopReplication, (google::cloud::netapp::v1::StopReplicationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, StopReplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::StopReplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + StopReplication, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ResumeReplication, (google::cloud::netapp::v1::ResumeReplicationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ResumeReplication, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::ResumeReplicationRequest const& request), + (override)); + + MOCK_METHOD(future>, + ResumeReplication, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ReverseReplicationDirection, @@ -230,12 +483,37 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { request), (override)); + MOCK_METHOD( + StatusOr, ReverseReplicationDirection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& + request), + (override)); + + MOCK_METHOD(future>, + ReverseReplicationDirection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateBackupVault, (google::cloud::netapp::v1::CreateBackupVaultRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateBackupVault, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupVaultRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateBackupVault, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetBackupVault, (google::cloud::netapp::v1::GetBackupVaultRequest const& request), (override)); @@ -251,16 +529,50 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (google::cloud::netapp::v1::UpdateBackupVaultRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateBackupVault, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupVaultRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateBackupVault, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteBackupVault, (google::cloud::netapp::v1::DeleteBackupVaultRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteBackupVault, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupVaultRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteBackupVault, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, CreateBackup, (google::cloud::netapp::v1::CreateBackupRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetBackup, (google::cloud::netapp::v1::GetBackupRequest const& request), (override)); @@ -274,16 +586,49 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (google::cloud::netapp::v1::DeleteBackupRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateBackup, (google::cloud::netapp::v1::UpdateBackupRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, UpdateBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateBackupPolicy, (google::cloud::netapp::v1::CreateBackupPolicyRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateBackupPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateBackupPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetBackupPolicy, (google::cloud::netapp::v1::GetBackupPolicyRequest const& request), @@ -300,11 +645,35 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateBackupPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateBackupPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteBackupPolicy, (google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteBackupPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteBackupPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/netapp/v1/net_app_connection.cc b/google/cloud/netapp/v1/net_app_connection.cc index 8b76d3deb0e7b..f90e340622276 100644 --- a/google/cloud/netapp/v1/net_app_connection.cc +++ b/google/cloud/netapp/v1/net_app_connection.cc @@ -54,6 +54,21 @@ NetAppConnection::CreateStoragePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::CreateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateStoragePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::CreateStoragePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NetAppConnection::GetStoragePool( google::cloud::netapp::v1::GetStoragePoolRequest const&) { @@ -68,6 +83,21 @@ NetAppConnection::UpdateStoragePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::UpdateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateStoragePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::UpdateStoragePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::DeleteStoragePool( google::cloud::netapp::v1::DeleteStoragePoolRequest const&) { @@ -76,6 +106,21 @@ NetAppConnection::DeleteStoragePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::DeleteStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteStoragePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::DeleteStoragePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetAppConnection::ListVolumes( google::cloud::netapp::v1:: ListVolumesRequest) { // NOLINT(performance-unnecessary-value-param) @@ -96,6 +141,21 @@ NetAppConnection::CreateVolume( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::CreateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateVolumeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::CreateVolume(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::UpdateVolume( google::cloud::netapp::v1::UpdateVolumeRequest const&) { @@ -104,6 +164,21 @@ NetAppConnection::UpdateVolume( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::UpdateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateVolumeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::UpdateVolume(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::DeleteVolume( google::cloud::netapp::v1::DeleteVolumeRequest const&) { @@ -112,6 +187,21 @@ NetAppConnection::DeleteVolume( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::DeleteVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteVolumeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::DeleteVolume(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::RevertVolume( google::cloud::netapp::v1::RevertVolumeRequest const&) { @@ -120,6 +210,21 @@ NetAppConnection::RevertVolume( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::RevertVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::RevertVolumeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::RevertVolume(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetAppConnection::ListSnapshots( google::cloud::netapp::v1:: @@ -141,6 +246,21 @@ NetAppConnection::CreateSnapshot( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateSnapshotRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::CreateSnapshot(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::DeleteSnapshot( google::cloud::netapp::v1::DeleteSnapshotRequest const&) { @@ -149,6 +269,21 @@ NetAppConnection::DeleteSnapshot( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteSnapshotRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::DeleteSnapshot(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::UpdateSnapshot( google::cloud::netapp::v1::UpdateSnapshotRequest const&) { @@ -157,6 +292,21 @@ NetAppConnection::UpdateSnapshot( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::UpdateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateSnapshotRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::UpdateSnapshot(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetAppConnection::ListActiveDirectories( google::cloud::netapp::v1:: @@ -179,6 +329,22 @@ NetAppConnection::CreateActiveDirectory( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetAppConnection::CreateActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateActiveDirectoryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::CreateActiveDirectory(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::UpdateActiveDirectory( google::cloud::netapp::v1::UpdateActiveDirectoryRequest const&) { @@ -187,6 +353,22 @@ NetAppConnection::UpdateActiveDirectory( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetAppConnection::UpdateActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateActiveDirectoryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::UpdateActiveDirectory(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::DeleteActiveDirectory( google::cloud::netapp::v1::DeleteActiveDirectoryRequest const&) { @@ -195,6 +377,22 @@ NetAppConnection::DeleteActiveDirectory( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetAppConnection::DeleteActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteActiveDirectoryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::DeleteActiveDirectory(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetAppConnection::ListKmsConfigs( google::cloud::netapp::v1:: @@ -211,6 +409,21 @@ NetAppConnection::CreateKmsConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::CreateKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateKmsConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::CreateKmsConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NetAppConnection::GetKmsConfig( google::cloud::netapp::v1::GetKmsConfigRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -224,6 +437,21 @@ NetAppConnection::UpdateKmsConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::UpdateKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateKmsConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::UpdateKmsConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::EncryptVolumes( google::cloud::netapp::v1::EncryptVolumesRequest const&) { @@ -232,6 +460,21 @@ NetAppConnection::EncryptVolumes( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::EncryptVolumes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::EncryptVolumesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::EncryptVolumes(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NetAppConnection::VerifyKmsConfig( google::cloud::netapp::v1::VerifyKmsConfigRequest const&) { @@ -246,6 +489,21 @@ NetAppConnection::DeleteKmsConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::DeleteKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteKmsConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::DeleteKmsConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetAppConnection::ListReplications( google::cloud::netapp::v1:: @@ -268,6 +526,21 @@ NetAppConnection::CreateReplication( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::CreateReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateReplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::CreateReplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::DeleteReplication( google::cloud::netapp::v1::DeleteReplicationRequest const&) { @@ -276,6 +549,21 @@ NetAppConnection::DeleteReplication( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::DeleteReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteReplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::DeleteReplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::UpdateReplication( google::cloud::netapp::v1::UpdateReplicationRequest const&) { @@ -284,6 +572,21 @@ NetAppConnection::UpdateReplication( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::UpdateReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateReplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::UpdateReplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::StopReplication( google::cloud::netapp::v1::StopReplicationRequest const&) { @@ -292,6 +595,21 @@ NetAppConnection::StopReplication( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::StopReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::StopReplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::StopReplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::ResumeReplication( google::cloud::netapp::v1::ResumeReplicationRequest const&) { @@ -300,6 +618,21 @@ NetAppConnection::ResumeReplication( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::ResumeReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::ResumeReplicationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::ResumeReplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::ReverseReplicationDirection( google::cloud::netapp::v1::ReverseReplicationDirectionRequest const&) { @@ -308,6 +641,22 @@ NetAppConnection::ReverseReplicationDirection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetAppConnection::ReverseReplicationDirection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::ReverseReplicationDirectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::ReverseReplicationDirection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::CreateBackupVault( google::cloud::netapp::v1::CreateBackupVaultRequest const&) { @@ -316,6 +665,21 @@ NetAppConnection::CreateBackupVault( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::CreateBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupVaultRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::CreateBackupVault(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NetAppConnection::GetBackupVault( google::cloud::netapp::v1::GetBackupVaultRequest const&) { @@ -338,6 +702,21 @@ NetAppConnection::UpdateBackupVault( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::UpdateBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupVaultRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::UpdateBackupVault(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::DeleteBackupVault( google::cloud::netapp::v1::DeleteBackupVaultRequest const&) { @@ -346,6 +725,21 @@ NetAppConnection::DeleteBackupVault( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::DeleteBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupVaultRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::DeleteBackupVault(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::CreateBackup( google::cloud::netapp::v1::CreateBackupRequest const&) { @@ -354,6 +748,21 @@ NetAppConnection::CreateBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::CreateBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NetAppConnection::GetBackup( google::cloud::netapp::v1::GetBackupRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -374,6 +783,21 @@ NetAppConnection::DeleteBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::DeleteBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::UpdateBackup( google::cloud::netapp::v1::UpdateBackupRequest const&) { @@ -382,6 +806,21 @@ NetAppConnection::UpdateBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::UpdateBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::CreateBackupPolicy( google::cloud::netapp::v1::CreateBackupPolicyRequest const&) { @@ -390,6 +829,21 @@ NetAppConnection::CreateBackupPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::CreateBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::CreateBackupPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NetAppConnection::GetBackupPolicy( google::cloud::netapp::v1::GetBackupPolicyRequest const&) { @@ -412,6 +866,21 @@ NetAppConnection::UpdateBackupPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::UpdateBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::UpdateBackupPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetAppConnection::DeleteBackupPolicy( google::cloud::netapp::v1::DeleteBackupPolicyRequest const&) { @@ -420,6 +889,21 @@ NetAppConnection::DeleteBackupPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetAppConnection::DeleteBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetAppConnection::DeleteBackupPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeNetAppConnection(Options options) { internal::CheckExpectedOptions CreateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateStoragePoolRequest const& request); + + virtual future> + CreateStoragePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetStoragePool( google::cloud::netapp::v1::GetStoragePoolRequest const& request); @@ -195,10 +205,26 @@ class NetAppConnection { UpdateStoragePool( google::cloud::netapp::v1::UpdateStoragePoolRequest const& request); + virtual StatusOr UpdateStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateStoragePoolRequest const& request); + + virtual future> + UpdateStoragePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteStoragePool( google::cloud::netapp::v1::DeleteStoragePoolRequest const& request); + virtual StatusOr DeleteStoragePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteStoragePoolRequest const& request); + + virtual future> + DeleteStoragePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListVolumes( google::cloud::netapp::v1::ListVolumesRequest request); @@ -208,15 +234,47 @@ class NetAppConnection { virtual future> CreateVolume( google::cloud::netapp::v1::CreateVolumeRequest const& request); + virtual StatusOr CreateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateVolumeRequest const& request); + + virtual future> CreateVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateVolume( google::cloud::netapp::v1::UpdateVolumeRequest const& request); + virtual StatusOr UpdateVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateVolumeRequest const& request); + + virtual future> UpdateVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteVolume(google::cloud::netapp::v1::DeleteVolumeRequest const& request); + virtual StatusOr DeleteVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteVolumeRequest const& request); + + virtual future> + DeleteVolume(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RevertVolume( google::cloud::netapp::v1::RevertVolumeRequest const& request); + virtual StatusOr RevertVolume( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::RevertVolumeRequest const& request); + + virtual future> RevertVolume( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListSnapshots( google::cloud::netapp::v1::ListSnapshotsRequest request); @@ -226,13 +284,37 @@ class NetAppConnection { virtual future> CreateSnapshot( google::cloud::netapp::v1::CreateSnapshotRequest const& request); + virtual StatusOr CreateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateSnapshotRequest const& request); + + virtual future> CreateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteSnapshot( google::cloud::netapp::v1::DeleteSnapshotRequest const& request); + virtual StatusOr DeleteSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteSnapshotRequest const& request); + + virtual future> + DeleteSnapshot(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateSnapshot( google::cloud::netapp::v1::UpdateSnapshotRequest const& request); + virtual StatusOr UpdateSnapshot( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateSnapshotRequest const& request); + + virtual future> UpdateSnapshot( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListActiveDirectories( google::cloud::netapp::v1::ListActiveDirectoriesRequest request); @@ -245,14 +327,38 @@ class NetAppConnection { CreateActiveDirectory( google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request); + virtual StatusOr CreateActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request); + + virtual future> + CreateActiveDirectory(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateActiveDirectory( google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request); + virtual StatusOr UpdateActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request); + + virtual future> + UpdateActiveDirectory(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteActiveDirectory( google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request); + virtual StatusOr DeleteActiveDirectory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request); + + virtual future> + DeleteActiveDirectory(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListKmsConfigs( google::cloud::netapp::v1::ListKmsConfigsRequest request); @@ -260,6 +366,14 @@ class NetAppConnection { CreateKmsConfig( google::cloud::netapp::v1::CreateKmsConfigRequest const& request); + virtual StatusOr CreateKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateKmsConfigRequest const& request); + + virtual future> + CreateKmsConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetKmsConfig( google::cloud::netapp::v1::GetKmsConfigRequest const& request); @@ -267,9 +381,25 @@ class NetAppConnection { UpdateKmsConfig( google::cloud::netapp::v1::UpdateKmsConfigRequest const& request); + virtual StatusOr UpdateKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateKmsConfigRequest const& request); + + virtual future> + UpdateKmsConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> EncryptVolumes( google::cloud::netapp::v1::EncryptVolumesRequest const& request); + virtual StatusOr EncryptVolumes( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::EncryptVolumesRequest const& request); + + virtual future> EncryptVolumes( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr VerifyKmsConfig( google::cloud::netapp::v1::VerifyKmsConfigRequest const& request); @@ -278,6 +408,14 @@ class NetAppConnection { DeleteKmsConfig( google::cloud::netapp::v1::DeleteKmsConfigRequest const& request); + virtual StatusOr DeleteKmsConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteKmsConfigRequest const& request); + + virtual future> + DeleteKmsConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListReplications( google::cloud::netapp::v1::ListReplicationsRequest request); @@ -288,31 +426,88 @@ class NetAppConnection { CreateReplication( google::cloud::netapp::v1::CreateReplicationRequest const& request); + virtual StatusOr CreateReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateReplicationRequest const& request); + + virtual future> + CreateReplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteReplication( google::cloud::netapp::v1::DeleteReplicationRequest const& request); + virtual StatusOr DeleteReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteReplicationRequest const& request); + + virtual future> + DeleteReplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateReplication( google::cloud::netapp::v1::UpdateReplicationRequest const& request); + virtual StatusOr UpdateReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateReplicationRequest const& request); + + virtual future> + UpdateReplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StopReplication( google::cloud::netapp::v1::StopReplicationRequest const& request); + virtual StatusOr StopReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::StopReplicationRequest const& request); + + virtual future> + StopReplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ResumeReplication( google::cloud::netapp::v1::ResumeReplicationRequest const& request); + virtual StatusOr ResumeReplication( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::ResumeReplicationRequest const& request); + + virtual future> + ResumeReplication(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ReverseReplicationDirection( google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& request); + virtual StatusOr ReverseReplicationDirection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& + request); + + virtual future> + ReverseReplicationDirection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateBackupVault( google::cloud::netapp::v1::CreateBackupVaultRequest const& request); + virtual StatusOr CreateBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupVaultRequest const& request); + + virtual future> + CreateBackupVault(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetBackupVault( google::cloud::netapp::v1::GetBackupVaultRequest const& request); @@ -323,13 +518,37 @@ class NetAppConnection { UpdateBackupVault( google::cloud::netapp::v1::UpdateBackupVaultRequest const& request); + virtual StatusOr UpdateBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupVaultRequest const& request); + + virtual future> + UpdateBackupVault(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteBackupVault( google::cloud::netapp::v1::DeleteBackupVaultRequest const& request); + virtual StatusOr DeleteBackupVault( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupVaultRequest const& request); + + virtual future> + DeleteBackupVault(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateBackup( google::cloud::netapp::v1::CreateBackupRequest const& request); + virtual StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupRequest const& request); + + virtual future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetBackup( google::cloud::netapp::v1::GetBackupRequest const& request); @@ -339,13 +558,37 @@ class NetAppConnection { virtual future> DeleteBackup(google::cloud::netapp::v1::DeleteBackupRequest const& request); + virtual StatusOr DeleteBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupRequest const& request); + + virtual future> + DeleteBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateBackup( google::cloud::netapp::v1::UpdateBackupRequest const& request); + virtual StatusOr UpdateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupRequest const& request); + + virtual future> UpdateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateBackupPolicy( google::cloud::netapp::v1::CreateBackupPolicyRequest const& request); + virtual StatusOr CreateBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::CreateBackupPolicyRequest const& request); + + virtual future> + CreateBackupPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetBackupPolicy( google::cloud::netapp::v1::GetBackupPolicyRequest const& request); @@ -357,9 +600,25 @@ class NetAppConnection { UpdateBackupPolicy( google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request); + virtual StatusOr UpdateBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request); + + virtual future> + UpdateBackupPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteBackupPolicy( google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request); + + virtual StatusOr DeleteBackupPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request); + + virtual future> + DeleteBackupPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/networkconnectivity/v1/hub_connection.cc b/google/cloud/networkconnectivity/v1/hub_connection.cc index bcdff7b14d937..c800ca5068701 100644 --- a/google/cloud/networkconnectivity/v1/hub_connection.cc +++ b/google/cloud/networkconnectivity/v1/hub_connection.cc @@ -60,6 +60,21 @@ HubServiceConnection::CreateHub( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr HubServiceConnection::CreateHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::CreateHubRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HubServiceConnection::CreateHub(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> HubServiceConnection::UpdateHub( google::cloud::networkconnectivity::v1::UpdateHubRequest const&) { @@ -68,6 +83,21 @@ HubServiceConnection::UpdateHub( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr HubServiceConnection::UpdateHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::UpdateHubRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HubServiceConnection::UpdateHub(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> HubServiceConnection::DeleteHub( google::cloud::networkconnectivity::v1::DeleteHubRequest const&) { @@ -76,6 +106,21 @@ HubServiceConnection::DeleteHub( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr HubServiceConnection::DeleteHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::DeleteHubRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HubServiceConnection::DeleteHub(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange HubServiceConnection::ListHubSpokes( google::cloud::networkconnectivity::v1:: @@ -106,6 +151,21 @@ HubServiceConnection::CreateSpoke( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr HubServiceConnection::CreateSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::CreateSpokeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HubServiceConnection::CreateSpoke(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> HubServiceConnection::UpdateSpoke( google::cloud::networkconnectivity::v1::UpdateSpokeRequest const&) { @@ -114,6 +174,21 @@ HubServiceConnection::UpdateSpoke( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr HubServiceConnection::UpdateSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::UpdateSpokeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HubServiceConnection::UpdateSpoke(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> HubServiceConnection::RejectHubSpoke( google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const&) { @@ -122,6 +197,21 @@ HubServiceConnection::RejectHubSpoke( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr HubServiceConnection::RejectHubSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HubServiceConnection::RejectHubSpoke(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> HubServiceConnection::AcceptHubSpoke( google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const&) { @@ -130,6 +220,21 @@ HubServiceConnection::AcceptHubSpoke( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr HubServiceConnection::AcceptHubSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HubServiceConnection::AcceptHubSpoke(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> HubServiceConnection::DeleteSpoke( google::cloud::networkconnectivity::v1::DeleteSpokeRequest const&) { @@ -138,6 +243,21 @@ HubServiceConnection::DeleteSpoke( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr HubServiceConnection::DeleteSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::DeleteSpokeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +HubServiceConnection::DeleteSpoke(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr HubServiceConnection::GetRouteTable( google::cloud::networkconnectivity::v1::GetRouteTableRequest const&) { diff --git a/google/cloud/networkconnectivity/v1/hub_connection.h b/google/cloud/networkconnectivity/v1/hub_connection.h index 698d753bb4551..29acfe92823d4 100644 --- a/google/cloud/networkconnectivity/v1/hub_connection.h +++ b/google/cloud/networkconnectivity/v1/hub_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/networkconnectivity/v1/hub_connection_idempotency_policy.h" #include "google/cloud/networkconnectivity/v1/internal/hub_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -195,15 +197,40 @@ class HubServiceConnection { CreateHub( google::cloud::networkconnectivity::v1::CreateHubRequest const& request); + virtual StatusOr CreateHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::CreateHubRequest const& request); + + virtual future> + CreateHub(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateHub( google::cloud::networkconnectivity::v1::UpdateHubRequest const& request); + virtual StatusOr UpdateHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::UpdateHubRequest const& request); + + virtual future> + UpdateHub(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteHub( google::cloud::networkconnectivity::v1::DeleteHubRequest const& request); + virtual StatusOr DeleteHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::DeleteHubRequest const& request); + + virtual future< + StatusOr> + DeleteHub(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListHubSpokes( google::cloud::networkconnectivity::v1::ListHubSpokesRequest request); @@ -218,27 +245,75 @@ class HubServiceConnection { CreateSpoke(google::cloud::networkconnectivity::v1::CreateSpokeRequest const& request); + virtual StatusOr CreateSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::CreateSpokeRequest const& + request); + + virtual future> + CreateSpoke(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateSpoke(google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request); + virtual StatusOr UpdateSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& + request); + + virtual future> + UpdateSpoke(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> RejectHubSpoke( google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& request); + virtual StatusOr RejectHubSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& + request); + + virtual future< + StatusOr> + RejectHubSpoke(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> AcceptHubSpoke( google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& request); + virtual StatusOr AcceptHubSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& + request); + + virtual future< + StatusOr> + AcceptHubSpoke(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteSpoke(google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request); + virtual StatusOr DeleteSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& + request); + + virtual future< + StatusOr> + DeleteSpoke(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetRouteTable( google::cloud::networkconnectivity::v1::GetRouteTableRequest const& diff --git a/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.cc b/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.cc index e8e0dba82d523..3acf0d3fd2891 100644 --- a/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.cc +++ b/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.cc @@ -155,6 +155,60 @@ HubServiceConnectionImpl::CreateHub( polling_policy(*current), __func__); } +StatusOr HubServiceConnectionImpl::CreateHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::CreateHubRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateHub(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkconnectivity::v1::CreateHubRequest const& + request) { + return stub_->CreateHub(context, options, request); + }, + *current, request, __func__); +} + +future> +HubServiceConnectionImpl::CreateHub( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateHub", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkconnectivity::v1::Hub>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkconnectivity::v1::Hub>, + polling_policy(*current), __func__); +} + future> HubServiceConnectionImpl::UpdateHub( google::cloud::networkconnectivity::v1::UpdateHubRequest const& request) { @@ -194,6 +248,60 @@ HubServiceConnectionImpl::UpdateHub( polling_policy(*current), __func__); } +StatusOr HubServiceConnectionImpl::UpdateHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::UpdateHubRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateHub(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkconnectivity::v1::UpdateHubRequest const& + request) { + return stub_->UpdateHub(context, options, request); + }, + *current, request, __func__); +} + +future> +HubServiceConnectionImpl::UpdateHub( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateHub", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkconnectivity::v1::Hub>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkconnectivity::v1::Hub>, + polling_policy(*current), __func__); +} + future> HubServiceConnectionImpl::DeleteHub( google::cloud::networkconnectivity::v1::DeleteHubRequest const& request) { @@ -233,6 +341,60 @@ HubServiceConnectionImpl::DeleteHub( polling_policy(*current), __func__); } +StatusOr HubServiceConnectionImpl::DeleteHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::DeleteHubRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteHub(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkconnectivity::v1::DeleteHubRequest const& + request) { + return stub_->DeleteHub(context, options, request); + }, + *current, request, __func__); +} + +future> +HubServiceConnectionImpl::DeleteHub( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteHub", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkconnectivity::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networkconnectivity::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange HubServiceConnectionImpl::ListHubSpokes( google::cloud::networkconnectivity::v1::ListHubSpokesRequest request) { @@ -358,6 +520,60 @@ HubServiceConnectionImpl::CreateSpoke( polling_policy(*current), __func__); } +StatusOr HubServiceConnectionImpl::CreateSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::CreateSpokeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateSpoke(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkconnectivity::v1::CreateSpokeRequest const& + request) { + return stub_->CreateSpoke(context, options, request); + }, + *current, request, __func__); +} + +future> +HubServiceConnectionImpl::CreateSpoke( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateSpoke", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkconnectivity::v1::Spoke>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkconnectivity::v1::Spoke>, + polling_policy(*current), __func__); +} + future> HubServiceConnectionImpl::UpdateSpoke( google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request) { @@ -398,6 +614,60 @@ HubServiceConnectionImpl::UpdateSpoke( polling_policy(*current), __func__); } +StatusOr HubServiceConnectionImpl::UpdateSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateSpoke(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& + request) { + return stub_->UpdateSpoke(context, options, request); + }, + *current, request, __func__); +} + +future> +HubServiceConnectionImpl::UpdateSpoke( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateSpoke", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkconnectivity::v1::Spoke>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkconnectivity::v1::Spoke>, + polling_policy(*current), __func__); +} + future> HubServiceConnectionImpl::RejectHubSpoke( google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& @@ -439,6 +709,63 @@ HubServiceConnectionImpl::RejectHubSpoke( polling_policy(*current), __func__); } +StatusOr +HubServiceConnectionImpl::RejectHubSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RejectHubSpoke(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& + request) { + return stub_->RejectHubSpoke(context, options, request); + }, + *current, request, __func__); +} + +future> +HubServiceConnectionImpl::RejectHubSpoke( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RejectHubSpoke", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkconnectivity::v1::RejectHubSpokeResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkconnectivity::v1::RejectHubSpokeResponse>, + polling_policy(*current), __func__); +} + future> HubServiceConnectionImpl::AcceptHubSpoke( google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& @@ -480,6 +807,63 @@ HubServiceConnectionImpl::AcceptHubSpoke( polling_policy(*current), __func__); } +StatusOr +HubServiceConnectionImpl::AcceptHubSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AcceptHubSpoke(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& + request) { + return stub_->AcceptHubSpoke(context, options, request); + }, + *current, request, __func__); +} + +future> +HubServiceConnectionImpl::AcceptHubSpoke( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to AcceptHubSpoke", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkconnectivity::v1::AcceptHubSpokeResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkconnectivity::v1::AcceptHubSpokeResponse>, + polling_policy(*current), __func__); +} + future> HubServiceConnectionImpl::DeleteSpoke( google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request) { @@ -520,6 +904,60 @@ HubServiceConnectionImpl::DeleteSpoke( polling_policy(*current), __func__); } +StatusOr HubServiceConnectionImpl::DeleteSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSpoke(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& + request) { + return stub_->DeleteSpoke(context, options, request); + }, + *current, request, __func__); +} + +future> +HubServiceConnectionImpl::DeleteSpoke( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteSpoke", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkconnectivity::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networkconnectivity::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr HubServiceConnectionImpl::GetRouteTable( google::cloud::networkconnectivity::v1::GetRouteTableRequest const& diff --git a/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.h b/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.h index 3cae96d963720..e9a406b7da17f 100644 --- a/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.h +++ b/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.h @@ -63,14 +63,41 @@ class HubServiceConnectionImpl google::cloud::networkconnectivity::v1::CreateHubRequest const& request) override; + StatusOr CreateHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::CreateHubRequest const& request) + override; + + future> CreateHub( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateHub( google::cloud::networkconnectivity::v1::UpdateHubRequest const& request) override; + StatusOr UpdateHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::UpdateHubRequest const& request) + override; + + future> UpdateHub( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteHub(google::cloud::networkconnectivity::v1::DeleteHubRequest const& request) override; + StatusOr DeleteHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::DeleteHubRequest const& request) + override; + + future> + DeleteHub(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListHubSpokes( google::cloud::networkconnectivity::v1::ListHubSpokesRequest request) override; @@ -87,26 +114,73 @@ class HubServiceConnectionImpl google::cloud::networkconnectivity::v1::CreateSpokeRequest const& request) override; + StatusOr CreateSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::CreateSpokeRequest const& request) + override; + + future> CreateSpoke( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateSpoke( google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request) override; + StatusOr UpdateSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request) + override; + + future> UpdateSpoke( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> RejectHubSpoke( google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& request) override; + StatusOr RejectHubSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& + request) override; + + future< + StatusOr> + RejectHubSpoke(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> AcceptHubSpoke( google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& request) override; + StatusOr AcceptHubSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& + request) override; + + future< + StatusOr> + AcceptHubSpoke(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSpoke(google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request) override; + StatusOr DeleteSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request) + override; + + future> + DeleteSpoke(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetRouteTable( google::cloud::networkconnectivity::v1::GetRouteTableRequest const& request) override; diff --git a/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.cc b/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.cc index 1dffe416938df..6981f6ddbaaf1 100644 --- a/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.cc +++ b/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.cc @@ -63,6 +63,29 @@ HubServiceTracingConnection::CreateHub( return internal::EndSpan(std::move(span), child_->CreateHub(request)); } +StatusOr HubServiceTracingConnection::CreateHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::CreateHubRequest const& request) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::HubServiceConnection::CreateHub"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateHub(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HubServiceTracingConnection::CreateHub( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::HubServiceConnection::CreateHub"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateHub(google::cloud::ExperimentalTag{}, operation)); +} + future> HubServiceTracingConnection::UpdateHub( google::cloud::networkconnectivity::v1::UpdateHubRequest const& request) { @@ -72,6 +95,29 @@ HubServiceTracingConnection::UpdateHub( return internal::EndSpan(std::move(span), child_->UpdateHub(request)); } +StatusOr HubServiceTracingConnection::UpdateHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::UpdateHubRequest const& request) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::HubServiceConnection::UpdateHub"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateHub(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HubServiceTracingConnection::UpdateHub( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::HubServiceConnection::UpdateHub"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateHub(google::cloud::ExperimentalTag{}, operation)); +} + future> HubServiceTracingConnection::DeleteHub( google::cloud::networkconnectivity::v1::DeleteHubRequest const& request) { @@ -81,6 +127,29 @@ HubServiceTracingConnection::DeleteHub( return internal::EndSpan(std::move(span), child_->DeleteHub(request)); } +StatusOr HubServiceTracingConnection::DeleteHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::DeleteHubRequest const& request) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::HubServiceConnection::DeleteHub"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteHub(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HubServiceTracingConnection::DeleteHub( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::HubServiceConnection::DeleteHub"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteHub(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange HubServiceTracingConnection::ListHubSpokes( google::cloud::networkconnectivity::v1::ListHubSpokesRequest request) { @@ -123,6 +192,30 @@ HubServiceTracingConnection::CreateSpoke( return internal::EndSpan(std::move(span), child_->CreateSpoke(request)); } +StatusOr +HubServiceTracingConnection::CreateSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::CreateSpokeRequest const& request) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::HubServiceConnection::CreateSpoke"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateSpoke(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HubServiceTracingConnection::CreateSpoke( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::HubServiceConnection::CreateSpoke"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateSpoke(google::cloud::ExperimentalTag{}, operation)); +} + future> HubServiceTracingConnection::UpdateSpoke( google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request) { @@ -132,6 +225,30 @@ HubServiceTracingConnection::UpdateSpoke( return internal::EndSpan(std::move(span), child_->UpdateSpoke(request)); } +StatusOr +HubServiceTracingConnection::UpdateSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::HubServiceConnection::UpdateSpoke"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateSpoke(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HubServiceTracingConnection::UpdateSpoke( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::HubServiceConnection::UpdateSpoke"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateSpoke(google::cloud::ExperimentalTag{}, operation)); +} + future> HubServiceTracingConnection::RejectHubSpoke( google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& @@ -142,6 +259,31 @@ HubServiceTracingConnection::RejectHubSpoke( return internal::EndSpan(std::move(span), child_->RejectHubSpoke(request)); } +StatusOr +HubServiceTracingConnection::RejectHubSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& + request) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::HubServiceConnection::RejectHubSpoke"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RejectHubSpoke(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HubServiceTracingConnection::RejectHubSpoke( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::HubServiceConnection::RejectHubSpoke"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RejectHubSpoke(google::cloud::ExperimentalTag{}, operation)); +} + future> HubServiceTracingConnection::AcceptHubSpoke( google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& @@ -152,6 +294,31 @@ HubServiceTracingConnection::AcceptHubSpoke( return internal::EndSpan(std::move(span), child_->AcceptHubSpoke(request)); } +StatusOr +HubServiceTracingConnection::AcceptHubSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& + request) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::HubServiceConnection::AcceptHubSpoke"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AcceptHubSpoke(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HubServiceTracingConnection::AcceptHubSpoke( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::HubServiceConnection::AcceptHubSpoke"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AcceptHubSpoke(google::cloud::ExperimentalTag{}, operation)); +} + future> HubServiceTracingConnection::DeleteSpoke( google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request) { @@ -161,6 +328,30 @@ HubServiceTracingConnection::DeleteSpoke( return internal::EndSpan(std::move(span), child_->DeleteSpoke(request)); } +StatusOr +HubServiceTracingConnection::DeleteSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::HubServiceConnection::DeleteSpoke"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSpoke(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +HubServiceTracingConnection::DeleteSpoke( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::HubServiceConnection::DeleteSpoke"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSpoke(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr HubServiceTracingConnection::GetRouteTable( google::cloud::networkconnectivity::v1::GetRouteTableRequest const& diff --git a/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.h b/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.h index da2a4a41bc0ac..c3418dcc6d819 100644 --- a/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.h +++ b/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.h @@ -51,14 +51,41 @@ class HubServiceTracingConnection google::cloud::networkconnectivity::v1::CreateHubRequest const& request) override; + StatusOr CreateHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::CreateHubRequest const& request) + override; + + future> CreateHub( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateHub( google::cloud::networkconnectivity::v1::UpdateHubRequest const& request) override; + StatusOr UpdateHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::UpdateHubRequest const& request) + override; + + future> UpdateHub( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteHub(google::cloud::networkconnectivity::v1::DeleteHubRequest const& request) override; + StatusOr DeleteHub( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::DeleteHubRequest const& request) + override; + + future> + DeleteHub(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListHubSpokes( google::cloud::networkconnectivity::v1::ListHubSpokesRequest request) override; @@ -75,26 +102,73 @@ class HubServiceTracingConnection google::cloud::networkconnectivity::v1::CreateSpokeRequest const& request) override; + StatusOr CreateSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::CreateSpokeRequest const& request) + override; + + future> CreateSpoke( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateSpoke( google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request) override; + StatusOr UpdateSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request) + override; + + future> UpdateSpoke( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> RejectHubSpoke( google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& request) override; + StatusOr RejectHubSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& + request) override; + + future< + StatusOr> + RejectHubSpoke(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> AcceptHubSpoke( google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& request) override; + StatusOr AcceptHubSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& + request) override; + + future< + StatusOr> + AcceptHubSpoke(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSpoke(google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request) override; + StatusOr DeleteSpoke( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request) + override; + + future> + DeleteSpoke(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetRouteTable( google::cloud::networkconnectivity::v1::GetRouteTableRequest const& request) override; diff --git a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.cc b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.cc index ec9585ed7dac2..30ef17631ac4f 100644 --- a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.cc +++ b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.cc @@ -172,6 +172,62 @@ PolicyBasedRoutingServiceConnectionImpl::CreatePolicyBasedRoute( polling_policy(*current), __func__); } +StatusOr +PolicyBasedRoutingServiceConnectionImpl::CreatePolicyBasedRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::CreatePolicyBasedRouteRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreatePolicyBasedRoute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkconnectivity::v1:: + CreatePolicyBasedRouteRequest const& request) { + return stub_->CreatePolicyBasedRoute(context, options, request); + }, + *current, request, __func__); +} + +future> +PolicyBasedRoutingServiceConnectionImpl::CreatePolicyBasedRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreatePolicyBasedRoute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkconnectivity::v1::PolicyBasedRoute>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkconnectivity::v1::PolicyBasedRoute>, + polling_policy(*current), __func__); +} + future> PolicyBasedRoutingServiceConnectionImpl::DeletePolicyBasedRoute( google::cloud::networkconnectivity::v1::DeletePolicyBasedRouteRequest const& @@ -212,6 +268,62 @@ PolicyBasedRoutingServiceConnectionImpl::DeletePolicyBasedRoute( polling_policy(*current), __func__); } +StatusOr +PolicyBasedRoutingServiceConnectionImpl::DeletePolicyBasedRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::DeletePolicyBasedRouteRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePolicyBasedRoute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkconnectivity::v1:: + DeletePolicyBasedRouteRequest const& request) { + return stub_->DeletePolicyBasedRoute(context, options, request); + }, + *current, request, __func__); +} + +future> +PolicyBasedRoutingServiceConnectionImpl::DeletePolicyBasedRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeletePolicyBasedRoute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkconnectivity::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networkconnectivity::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace networkconnectivity_v1_internal } // namespace cloud diff --git a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.h b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.h index 39c151c827b0f..d8f7dc668395a 100644 --- a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.h +++ b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.h @@ -69,11 +69,31 @@ class PolicyBasedRoutingServiceConnectionImpl google::cloud::networkconnectivity::v1:: CreatePolicyBasedRouteRequest const& request) override; + StatusOr CreatePolicyBasedRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1:: + CreatePolicyBasedRouteRequest const& request) override; + + future> + CreatePolicyBasedRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeletePolicyBasedRoute( google::cloud::networkconnectivity::v1:: DeletePolicyBasedRouteRequest const& request) override; + StatusOr DeletePolicyBasedRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1:: + DeletePolicyBasedRouteRequest const& request) override; + + future> + DeletePolicyBasedRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr< diff --git a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.cc b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.cc index 4d1ffd4361ff3..ac56585da9d06 100644 --- a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.cc +++ b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.cc @@ -73,6 +73,33 @@ PolicyBasedRoutingServiceTracingConnection::CreatePolicyBasedRoute( child_->CreatePolicyBasedRoute(request)); } +StatusOr +PolicyBasedRoutingServiceTracingConnection::CreatePolicyBasedRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::CreatePolicyBasedRouteRequest const& + request) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::PolicyBasedRoutingServiceConnection::" + "CreatePolicyBasedRoute"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreatePolicyBasedRoute( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PolicyBasedRoutingServiceTracingConnection::CreatePolicyBasedRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::PolicyBasedRoutingServiceConnection::" + "CreatePolicyBasedRoute"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreatePolicyBasedRoute( + google::cloud::ExperimentalTag{}, operation)); +} + future> PolicyBasedRoutingServiceTracingConnection::DeletePolicyBasedRoute( google::cloud::networkconnectivity::v1::DeletePolicyBasedRouteRequest const& @@ -85,6 +112,33 @@ PolicyBasedRoutingServiceTracingConnection::DeletePolicyBasedRoute( child_->DeletePolicyBasedRoute(request)); } +StatusOr +PolicyBasedRoutingServiceTracingConnection::DeletePolicyBasedRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::DeletePolicyBasedRouteRequest const& + request) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::PolicyBasedRoutingServiceConnection::" + "DeletePolicyBasedRoute"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeletePolicyBasedRoute( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +PolicyBasedRoutingServiceTracingConnection::DeletePolicyBasedRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkconnectivity_v1::PolicyBasedRoutingServiceConnection::" + "DeletePolicyBasedRoute"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeletePolicyBasedRoute( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.h b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.h index 289ce332254c9..8d54b5a58b4e3 100644 --- a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.h +++ b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.h @@ -57,11 +57,31 @@ class PolicyBasedRoutingServiceTracingConnection google::cloud::networkconnectivity::v1:: CreatePolicyBasedRouteRequest const& request) override; + StatusOr CreatePolicyBasedRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1:: + CreatePolicyBasedRouteRequest const& request) override; + + future> + CreatePolicyBasedRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeletePolicyBasedRoute( google::cloud::networkconnectivity::v1:: DeletePolicyBasedRouteRequest const& request) override; + StatusOr DeletePolicyBasedRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1:: + DeletePolicyBasedRouteRequest const& request) override; + + future> + DeletePolicyBasedRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/networkconnectivity/v1/mocks/mock_hub_connection.h b/google/cloud/networkconnectivity/v1/mocks/mock_hub_connection.h index 9eefec8737eec..af52dbdf5b5f6 100644 --- a/google/cloud/networkconnectivity/v1/mocks/mock_hub_connection.h +++ b/google/cloud/networkconnectivity/v1/mocks/mock_hub_connection.h @@ -62,11 +62,35 @@ class MockHubServiceConnection (google::cloud::networkconnectivity::v1::CreateHubRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateHub, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::CreateHubRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateHub, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateHub, (google::cloud::networkconnectivity::v1::UpdateHubRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateHub, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::UpdateHubRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateHub, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -74,6 +98,20 @@ class MockHubServiceConnection (google::cloud::networkconnectivity::v1::DeleteHubRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteHub, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::DeleteHubRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteHub, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListHubSpokes, @@ -96,12 +134,36 @@ class MockHubServiceConnection request), (override)); + MOCK_METHOD(StatusOr, CreateSpoke, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::CreateSpokeRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateSpoke, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateSpoke, (google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateSpoke, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateSpoke, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -110,6 +172,21 @@ class MockHubServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, RejectHubSpoke, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + RejectHubSpoke, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -118,6 +195,21 @@ class MockHubServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, AcceptHubSpoke, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + AcceptHubSpoke, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -126,6 +218,20 @@ class MockHubServiceConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteSpoke, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteSpoke, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetRouteTable, diff --git a/google/cloud/networkconnectivity/v1/mocks/mock_policy_based_routing_connection.h b/google/cloud/networkconnectivity/v1/mocks/mock_policy_based_routing_connection.h index 68e9f1f51c83c..d0987e2ca88be 100644 --- a/google/cloud/networkconnectivity/v1/mocks/mock_policy_based_routing_connection.h +++ b/google/cloud/networkconnectivity/v1/mocks/mock_policy_based_routing_connection.h @@ -69,6 +69,20 @@ class MockPolicyBasedRoutingServiceConnection CreatePolicyBasedRouteRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreatePolicyBasedRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1:: + CreatePolicyBasedRouteRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + CreatePolicyBasedRoute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -76,6 +90,20 @@ class MockPolicyBasedRoutingServiceConnection (google::cloud::networkconnectivity::v1:: DeletePolicyBasedRouteRequest const& request), (override)); + + MOCK_METHOD(StatusOr, DeletePolicyBasedRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1:: + DeletePolicyBasedRouteRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeletePolicyBasedRoute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/networkconnectivity/v1/policy_based_routing_connection.cc b/google/cloud/networkconnectivity/v1/policy_based_routing_connection.cc index 655a2833cf642..713b7c173808f 100644 --- a/google/cloud/networkconnectivity/v1/policy_based_routing_connection.cc +++ b/google/cloud/networkconnectivity/v1/policy_based_routing_connection.cc @@ -62,6 +62,23 @@ PolicyBasedRoutingServiceConnection::CreatePolicyBasedRoute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PolicyBasedRoutingServiceConnection::CreatePolicyBasedRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1:: + CreatePolicyBasedRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PolicyBasedRoutingServiceConnection::CreatePolicyBasedRoute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> PolicyBasedRoutingServiceConnection::DeletePolicyBasedRoute( google::cloud::networkconnectivity::v1:: @@ -71,6 +88,23 @@ PolicyBasedRoutingServiceConnection::DeletePolicyBasedRoute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +PolicyBasedRoutingServiceConnection::DeletePolicyBasedRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1:: + DeletePolicyBasedRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +PolicyBasedRoutingServiceConnection::DeletePolicyBasedRoute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakePolicyBasedRoutingServiceConnection(Options options) { internal::CheckExpectedOptions CreatePolicyBasedRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1:: + CreatePolicyBasedRouteRequest const& request); + + virtual future< + StatusOr> + CreatePolicyBasedRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeletePolicyBasedRoute(google::cloud::networkconnectivity::v1:: DeletePolicyBasedRouteRequest const& request); + + virtual StatusOr DeletePolicyBasedRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkconnectivity::v1:: + DeletePolicyBasedRouteRequest const& request); + + virtual future< + StatusOr> + DeletePolicyBasedRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.cc b/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.cc index 459494c13f290..9f6c2f1f20060 100644 --- a/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.cc +++ b/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.cc @@ -167,6 +167,62 @@ ReachabilityServiceConnectionImpl::CreateConnectivityTest( polling_policy(*current), __func__); } +StatusOr +ReachabilityServiceConnectionImpl::CreateConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::CreateConnectivityTestRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateConnectivityTest(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkmanagement::v1:: + CreateConnectivityTestRequest const& request) { + return stub_->CreateConnectivityTest(context, options, request); + }, + *current, request, __func__); +} + +future> +ReachabilityServiceConnectionImpl::CreateConnectivityTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateConnectivityTest", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkmanagement::v1::ConnectivityTest>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkmanagement::v1::ConnectivityTest>, + polling_policy(*current), __func__); +} + future> ReachabilityServiceConnectionImpl::UpdateConnectivityTest( google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& @@ -207,6 +263,62 @@ ReachabilityServiceConnectionImpl::UpdateConnectivityTest( polling_policy(*current), __func__); } +StatusOr +ReachabilityServiceConnectionImpl::UpdateConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateConnectivityTest(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkmanagement::v1:: + UpdateConnectivityTestRequest const& request) { + return stub_->UpdateConnectivityTest(context, options, request); + }, + *current, request, __func__); +} + +future> +ReachabilityServiceConnectionImpl::UpdateConnectivityTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateConnectivityTest", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkmanagement::v1::ConnectivityTest>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkmanagement::v1::ConnectivityTest>, + polling_policy(*current), __func__); +} + future> ReachabilityServiceConnectionImpl::RerunConnectivityTest( google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& @@ -247,6 +359,62 @@ ReachabilityServiceConnectionImpl::RerunConnectivityTest( polling_policy(*current), __func__); } +StatusOr +ReachabilityServiceConnectionImpl::RerunConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RerunConnectivityTest(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkmanagement::v1:: + RerunConnectivityTestRequest const& request) { + return stub_->RerunConnectivityTest(context, options, request); + }, + *current, request, __func__); +} + +future> +ReachabilityServiceConnectionImpl::RerunConnectivityTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RerunConnectivityTest", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkmanagement::v1::ConnectivityTest>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkmanagement::v1::ConnectivityTest>, + polling_policy(*current), __func__); +} + future> ReachabilityServiceConnectionImpl::DeleteConnectivityTest( google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& @@ -287,6 +455,62 @@ ReachabilityServiceConnectionImpl::DeleteConnectivityTest( polling_policy(*current), __func__); } +StatusOr +ReachabilityServiceConnectionImpl::DeleteConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteConnectivityTest(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkmanagement::v1:: + DeleteConnectivityTestRequest const& request) { + return stub_->DeleteConnectivityTest(context, options, request); + }, + *current, request, __func__); +} + +future> +ReachabilityServiceConnectionImpl::DeleteConnectivityTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteConnectivityTest", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkmanagement::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networkmanagement::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace networkmanagement_v1_internal } // namespace cloud diff --git a/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.h b/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.h index cccf5c8722ff0..f9e7c4436dcee 100644 --- a/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.h +++ b/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.h @@ -68,21 +68,61 @@ class ReachabilityServiceConnectionImpl google::cloud::networkmanagement::v1::CreateConnectivityTestRequest const& request) override; + StatusOr CreateConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::CreateConnectivityTestRequest const& + request) override; + + future> + CreateConnectivityTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateConnectivityTest( google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& request) override; + StatusOr UpdateConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& + request) override; + + future> + UpdateConnectivityTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RerunConnectivityTest( google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& request) override; + StatusOr RerunConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& + request) override; + + future> + RerunConnectivityTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteConnectivityTest( google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& request) override; + StatusOr DeleteConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& + request) override; + + future> + DeleteConnectivityTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.cc b/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.cc index 1ea53fcededc2..460441dc48551 100644 --- a/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.cc +++ b/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.cc @@ -70,6 +70,33 @@ ReachabilityServiceTracingConnection::CreateConnectivityTest( child_->CreateConnectivityTest(request)); } +StatusOr +ReachabilityServiceTracingConnection::CreateConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::CreateConnectivityTestRequest const& + request) { + auto span = internal::MakeSpan( + "networkmanagement_v1::ReachabilityServiceConnection::" + "CreateConnectivityTest"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateConnectivityTest( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ReachabilityServiceTracingConnection::CreateConnectivityTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkmanagement_v1::ReachabilityServiceConnection::" + "CreateConnectivityTest"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateConnectivityTest( + google::cloud::ExperimentalTag{}, operation)); +} + future> ReachabilityServiceTracingConnection::UpdateConnectivityTest( google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& @@ -82,6 +109,33 @@ ReachabilityServiceTracingConnection::UpdateConnectivityTest( child_->UpdateConnectivityTest(request)); } +StatusOr +ReachabilityServiceTracingConnection::UpdateConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& + request) { + auto span = internal::MakeSpan( + "networkmanagement_v1::ReachabilityServiceConnection::" + "UpdateConnectivityTest"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateConnectivityTest( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ReachabilityServiceTracingConnection::UpdateConnectivityTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkmanagement_v1::ReachabilityServiceConnection::" + "UpdateConnectivityTest"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateConnectivityTest( + google::cloud::ExperimentalTag{}, operation)); +} + future> ReachabilityServiceTracingConnection::RerunConnectivityTest( google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& @@ -94,6 +148,33 @@ ReachabilityServiceTracingConnection::RerunConnectivityTest( child_->RerunConnectivityTest(request)); } +StatusOr +ReachabilityServiceTracingConnection::RerunConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& + request) { + auto span = internal::MakeSpan( + "networkmanagement_v1::ReachabilityServiceConnection::" + "RerunConnectivityTest"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RerunConnectivityTest( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ReachabilityServiceTracingConnection::RerunConnectivityTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkmanagement_v1::ReachabilityServiceConnection::" + "RerunConnectivityTest"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RerunConnectivityTest( + google::cloud::ExperimentalTag{}, operation)); +} + future> ReachabilityServiceTracingConnection::DeleteConnectivityTest( google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& @@ -106,6 +187,33 @@ ReachabilityServiceTracingConnection::DeleteConnectivityTest( child_->DeleteConnectivityTest(request)); } +StatusOr +ReachabilityServiceTracingConnection::DeleteConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& + request) { + auto span = internal::MakeSpan( + "networkmanagement_v1::ReachabilityServiceConnection::" + "DeleteConnectivityTest"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteConnectivityTest( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ReachabilityServiceTracingConnection::DeleteConnectivityTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkmanagement_v1::ReachabilityServiceConnection::" + "DeleteConnectivityTest"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteConnectivityTest( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.h b/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.h index 14d7864ee7e78..f24807d5ac57f 100644 --- a/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.h +++ b/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.h @@ -56,21 +56,61 @@ class ReachabilityServiceTracingConnection google::cloud::networkmanagement::v1::CreateConnectivityTestRequest const& request) override; + StatusOr CreateConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::CreateConnectivityTestRequest const& + request) override; + + future> + CreateConnectivityTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateConnectivityTest( google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& request) override; + StatusOr UpdateConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& + request) override; + + future> + UpdateConnectivityTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RerunConnectivityTest( google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& request) override; + StatusOr RerunConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& + request) override; + + future> + RerunConnectivityTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteConnectivityTest( google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& request) override; + StatusOr DeleteConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& + request) override; + + future> + DeleteConnectivityTest( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/networkmanagement/v1/mocks/mock_reachability_connection.h b/google/cloud/networkmanagement/v1/mocks/mock_reachability_connection.h index 41669733edde0..455c478bd13a4 100644 --- a/google/cloud/networkmanagement/v1/mocks/mock_reachability_connection.h +++ b/google/cloud/networkmanagement/v1/mocks/mock_reachability_connection.h @@ -68,6 +68,19 @@ class MockReachabilityServiceConnection CreateConnectivityTestRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateConnectivityTest, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1:: + CreateConnectivityTestRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateConnectivityTest, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateConnectivityTest, @@ -75,6 +88,19 @@ class MockReachabilityServiceConnection UpdateConnectivityTestRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateConnectivityTest, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1:: + UpdateConnectivityTestRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UpdateConnectivityTest, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RerunConnectivityTest, @@ -82,12 +108,39 @@ class MockReachabilityServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, RerunConnectivityTest, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + RerunConnectivityTest, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteConnectivityTest, (google::cloud::networkmanagement::v1:: DeleteConnectivityTestRequest const& request), (override)); + + MOCK_METHOD(StatusOr, DeleteConnectivityTest, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1:: + DeleteConnectivityTestRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteConnectivityTest, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/networkmanagement/v1/reachability_connection.cc b/google/cloud/networkmanagement/v1/reachability_connection.cc index f25a30ffc9001..11eb273120a8a 100644 --- a/google/cloud/networkmanagement/v1/reachability_connection.cc +++ b/google/cloud/networkmanagement/v1/reachability_connection.cc @@ -61,6 +61,23 @@ ReachabilityServiceConnection::CreateConnectivityTest( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ReachabilityServiceConnection::CreateConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1:: + CreateConnectivityTestRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ReachabilityServiceConnection::CreateConnectivityTest( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ReachabilityServiceConnection::UpdateConnectivityTest( google::cloud::networkmanagement::v1:: @@ -70,6 +87,23 @@ ReachabilityServiceConnection::UpdateConnectivityTest( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ReachabilityServiceConnection::UpdateConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1:: + UpdateConnectivityTestRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ReachabilityServiceConnection::UpdateConnectivityTest( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ReachabilityServiceConnection::RerunConnectivityTest( google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const&) { @@ -78,6 +112,22 @@ ReachabilityServiceConnection::RerunConnectivityTest( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ReachabilityServiceConnection::RerunConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ReachabilityServiceConnection::RerunConnectivityTest( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ReachabilityServiceConnection::DeleteConnectivityTest( google::cloud::networkmanagement::v1:: @@ -87,6 +137,23 @@ ReachabilityServiceConnection::DeleteConnectivityTest( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ReachabilityServiceConnection::DeleteConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1:: + DeleteConnectivityTestRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ReachabilityServiceConnection::DeleteConnectivityTest( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeReachabilityServiceConnection(Options options) { internal::CheckExpectedOptions CreateConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::CreateConnectivityTestRequest const& + request); + + virtual future< + StatusOr> + CreateConnectivityTest(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UpdateConnectivityTest( google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& request); + virtual StatusOr UpdateConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& + request); + + virtual future< + StatusOr> + UpdateConnectivityTest(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> RerunConnectivityTest( google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& request); + virtual StatusOr RerunConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& + request); + + virtual future< + StatusOr> + RerunConnectivityTest(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteConnectivityTest( google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& request); + + virtual StatusOr DeleteConnectivityTest( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& + request); + + virtual future< + StatusOr> + DeleteConnectivityTest(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/networksecurity/v1/internal/network_security_connection_impl.cc b/google/cloud/networksecurity/v1/internal/network_security_connection_impl.cc index e3e7b1e81ccfd..ad5c3b6fa44ad 100644 --- a/google/cloud/networksecurity/v1/internal/network_security_connection_impl.cc +++ b/google/cloud/networksecurity/v1/internal/network_security_connection_impl.cc @@ -162,6 +162,62 @@ NetworkSecurityConnectionImpl::CreateAuthorizationPolicy( polling_policy(*current), __func__); } +StatusOr +NetworkSecurityConnectionImpl::CreateAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::CreateAuthorizationPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAuthorizationPolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networksecurity::v1:: + CreateAuthorizationPolicyRequest const& request) { + return stub_->CreateAuthorizationPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkSecurityConnectionImpl::CreateAuthorizationPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAuthorizationPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networksecurity::v1::AuthorizationPolicy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networksecurity::v1::AuthorizationPolicy>, + polling_policy(*current), __func__); +} + future> NetworkSecurityConnectionImpl::UpdateAuthorizationPolicy( google::cloud::networksecurity::v1::UpdateAuthorizationPolicyRequest const& @@ -202,6 +258,62 @@ NetworkSecurityConnectionImpl::UpdateAuthorizationPolicy( polling_policy(*current), __func__); } +StatusOr +NetworkSecurityConnectionImpl::UpdateAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::UpdateAuthorizationPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateAuthorizationPolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networksecurity::v1:: + UpdateAuthorizationPolicyRequest const& request) { + return stub_->UpdateAuthorizationPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkSecurityConnectionImpl::UpdateAuthorizationPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateAuthorizationPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networksecurity::v1::AuthorizationPolicy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networksecurity::v1::AuthorizationPolicy>, + polling_policy(*current), __func__); +} + future> NetworkSecurityConnectionImpl::DeleteAuthorizationPolicy( google::cloud::networksecurity::v1::DeleteAuthorizationPolicyRequest const& @@ -242,6 +354,62 @@ NetworkSecurityConnectionImpl::DeleteAuthorizationPolicy( polling_policy(*current), __func__); } +StatusOr +NetworkSecurityConnectionImpl::DeleteAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::DeleteAuthorizationPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAuthorizationPolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networksecurity::v1:: + DeleteAuthorizationPolicyRequest const& request) { + return stub_->DeleteAuthorizationPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkSecurityConnectionImpl::DeleteAuthorizationPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteAuthorizationPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networksecurity::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networksecurity::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange NetworkSecurityConnectionImpl::ListServerTlsPolicies( google::cloud::networksecurity::v1::ListServerTlsPoliciesRequest request) { @@ -334,6 +502,62 @@ NetworkSecurityConnectionImpl::CreateServerTlsPolicy( polling_policy(*current), __func__); } +StatusOr +NetworkSecurityConnectionImpl::CreateServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateServerTlsPolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networksecurity::v1:: + CreateServerTlsPolicyRequest const& request) { + return stub_->CreateServerTlsPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkSecurityConnectionImpl::CreateServerTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateServerTlsPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networksecurity::v1::ServerTlsPolicy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networksecurity::v1::ServerTlsPolicy>, + polling_policy(*current), __func__); +} + future> NetworkSecurityConnectionImpl::UpdateServerTlsPolicy( google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& @@ -374,6 +598,62 @@ NetworkSecurityConnectionImpl::UpdateServerTlsPolicy( polling_policy(*current), __func__); } +StatusOr +NetworkSecurityConnectionImpl::UpdateServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateServerTlsPolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networksecurity::v1:: + UpdateServerTlsPolicyRequest const& request) { + return stub_->UpdateServerTlsPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkSecurityConnectionImpl::UpdateServerTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateServerTlsPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networksecurity::v1::ServerTlsPolicy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networksecurity::v1::ServerTlsPolicy>, + polling_policy(*current), __func__); +} + future> NetworkSecurityConnectionImpl::DeleteServerTlsPolicy( google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& @@ -414,6 +694,62 @@ NetworkSecurityConnectionImpl::DeleteServerTlsPolicy( polling_policy(*current), __func__); } +StatusOr +NetworkSecurityConnectionImpl::DeleteServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteServerTlsPolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networksecurity::v1:: + DeleteServerTlsPolicyRequest const& request) { + return stub_->DeleteServerTlsPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkSecurityConnectionImpl::DeleteServerTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteServerTlsPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networksecurity::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networksecurity::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange NetworkSecurityConnectionImpl::ListClientTlsPolicies( google::cloud::networksecurity::v1::ListClientTlsPoliciesRequest request) { @@ -506,6 +842,62 @@ NetworkSecurityConnectionImpl::CreateClientTlsPolicy( polling_policy(*current), __func__); } +StatusOr +NetworkSecurityConnectionImpl::CreateClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateClientTlsPolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networksecurity::v1:: + CreateClientTlsPolicyRequest const& request) { + return stub_->CreateClientTlsPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkSecurityConnectionImpl::CreateClientTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateClientTlsPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networksecurity::v1::ClientTlsPolicy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networksecurity::v1::ClientTlsPolicy>, + polling_policy(*current), __func__); +} + future> NetworkSecurityConnectionImpl::UpdateClientTlsPolicy( google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& @@ -546,6 +938,62 @@ NetworkSecurityConnectionImpl::UpdateClientTlsPolicy( polling_policy(*current), __func__); } +StatusOr +NetworkSecurityConnectionImpl::UpdateClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateClientTlsPolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networksecurity::v1:: + UpdateClientTlsPolicyRequest const& request) { + return stub_->UpdateClientTlsPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkSecurityConnectionImpl::UpdateClientTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateClientTlsPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networksecurity::v1::ClientTlsPolicy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networksecurity::v1::ClientTlsPolicy>, + polling_policy(*current), __func__); +} + future> NetworkSecurityConnectionImpl::DeleteClientTlsPolicy( google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& @@ -586,6 +1034,62 @@ NetworkSecurityConnectionImpl::DeleteClientTlsPolicy( polling_policy(*current), __func__); } +StatusOr +NetworkSecurityConnectionImpl::DeleteClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteClientTlsPolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networksecurity::v1:: + DeleteClientTlsPolicyRequest const& request) { + return stub_->DeleteClientTlsPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkSecurityConnectionImpl::DeleteClientTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteClientTlsPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networksecurity::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networksecurity::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace networksecurity_v1_internal } // namespace cloud diff --git a/google/cloud/networksecurity/v1/internal/network_security_connection_impl.h b/google/cloud/networksecurity/v1/internal/network_security_connection_impl.h index 41276b845fd8c..d06f2200e75f2 100644 --- a/google/cloud/networksecurity/v1/internal/network_security_connection_impl.h +++ b/google/cloud/networksecurity/v1/internal/network_security_connection_impl.h @@ -67,16 +67,46 @@ class NetworkSecurityConnectionImpl google::cloud::networksecurity::v1:: CreateAuthorizationPolicyRequest const& request) override; + StatusOr CreateAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1:: + CreateAuthorizationPolicyRequest const& request) override; + + future> + CreateAuthorizationPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAuthorizationPolicy( google::cloud::networksecurity::v1:: UpdateAuthorizationPolicyRequest const& request) override; + StatusOr UpdateAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1:: + UpdateAuthorizationPolicyRequest const& request) override; + + future> + UpdateAuthorizationPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAuthorizationPolicy( google::cloud::networksecurity::v1:: DeleteAuthorizationPolicyRequest const& request) override; + StatusOr DeleteAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1:: + DeleteAuthorizationPolicyRequest const& request) override; + + future> + DeleteAuthorizationPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListServerTlsPolicies( google::cloud::networksecurity::v1::ListServerTlsPoliciesRequest request) @@ -92,16 +122,46 @@ class NetworkSecurityConnectionImpl google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& request) override; + StatusOr CreateServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& + request) override; + + future> + CreateServerTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateServerTlsPolicy( google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& request) override; + StatusOr UpdateServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& + request) override; + + future> + UpdateServerTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteServerTlsPolicy( google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& request) override; + StatusOr DeleteServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& + request) override; + + future> + DeleteServerTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListClientTlsPolicies( google::cloud::networksecurity::v1::ListClientTlsPoliciesRequest request) @@ -117,16 +177,46 @@ class NetworkSecurityConnectionImpl google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& request) override; + StatusOr CreateClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& + request) override; + + future> + CreateClientTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateClientTlsPolicy( google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& request) override; + StatusOr UpdateClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& + request) override; + + future> + UpdateClientTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteClientTlsPolicy( google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& request) override; + StatusOr DeleteClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& + request) override; + + future> + DeleteClientTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.cc b/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.cc index 65e0684524ab0..6d5a7cd623139 100644 --- a/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.cc +++ b/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.cc @@ -69,6 +69,33 @@ NetworkSecurityTracingConnection::CreateAuthorizationPolicy( child_->CreateAuthorizationPolicy(request)); } +StatusOr +NetworkSecurityTracingConnection::CreateAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::CreateAuthorizationPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::" + "CreateAuthorizationPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateAuthorizationPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkSecurityTracingConnection::CreateAuthorizationPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::" + "CreateAuthorizationPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateAuthorizationPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkSecurityTracingConnection::UpdateAuthorizationPolicy( google::cloud::networksecurity::v1::UpdateAuthorizationPolicyRequest const& @@ -81,6 +108,33 @@ NetworkSecurityTracingConnection::UpdateAuthorizationPolicy( child_->UpdateAuthorizationPolicy(request)); } +StatusOr +NetworkSecurityTracingConnection::UpdateAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::UpdateAuthorizationPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::" + "UpdateAuthorizationPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateAuthorizationPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkSecurityTracingConnection::UpdateAuthorizationPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::" + "UpdateAuthorizationPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateAuthorizationPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkSecurityTracingConnection::DeleteAuthorizationPolicy( google::cloud::networksecurity::v1::DeleteAuthorizationPolicyRequest const& @@ -93,6 +147,33 @@ NetworkSecurityTracingConnection::DeleteAuthorizationPolicy( child_->DeleteAuthorizationPolicy(request)); } +StatusOr +NetworkSecurityTracingConnection::DeleteAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::DeleteAuthorizationPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::" + "DeleteAuthorizationPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteAuthorizationPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkSecurityTracingConnection::DeleteAuthorizationPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::" + "DeleteAuthorizationPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteAuthorizationPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetworkSecurityTracingConnection::ListServerTlsPolicies( google::cloud::networksecurity::v1::ListServerTlsPoliciesRequest request) { @@ -126,6 +207,31 @@ NetworkSecurityTracingConnection::CreateServerTlsPolicy( child_->CreateServerTlsPolicy(request)); } +StatusOr +NetworkSecurityTracingConnection::CreateServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::CreateServerTlsPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateServerTlsPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkSecurityTracingConnection::CreateServerTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::CreateServerTlsPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateServerTlsPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkSecurityTracingConnection::UpdateServerTlsPolicy( google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& @@ -137,6 +243,31 @@ NetworkSecurityTracingConnection::UpdateServerTlsPolicy( child_->UpdateServerTlsPolicy(request)); } +StatusOr +NetworkSecurityTracingConnection::UpdateServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::UpdateServerTlsPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateServerTlsPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkSecurityTracingConnection::UpdateServerTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::UpdateServerTlsPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateServerTlsPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkSecurityTracingConnection::DeleteServerTlsPolicy( google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& @@ -148,6 +279,31 @@ NetworkSecurityTracingConnection::DeleteServerTlsPolicy( child_->DeleteServerTlsPolicy(request)); } +StatusOr +NetworkSecurityTracingConnection::DeleteServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::DeleteServerTlsPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteServerTlsPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkSecurityTracingConnection::DeleteServerTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::DeleteServerTlsPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteServerTlsPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetworkSecurityTracingConnection::ListClientTlsPolicies( google::cloud::networksecurity::v1::ListClientTlsPoliciesRequest request) { @@ -181,6 +337,31 @@ NetworkSecurityTracingConnection::CreateClientTlsPolicy( child_->CreateClientTlsPolicy(request)); } +StatusOr +NetworkSecurityTracingConnection::CreateClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::CreateClientTlsPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateClientTlsPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkSecurityTracingConnection::CreateClientTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::CreateClientTlsPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateClientTlsPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkSecurityTracingConnection::UpdateClientTlsPolicy( google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& @@ -192,6 +373,31 @@ NetworkSecurityTracingConnection::UpdateClientTlsPolicy( child_->UpdateClientTlsPolicy(request)); } +StatusOr +NetworkSecurityTracingConnection::UpdateClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::UpdateClientTlsPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateClientTlsPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkSecurityTracingConnection::UpdateClientTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::UpdateClientTlsPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateClientTlsPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkSecurityTracingConnection::DeleteClientTlsPolicy( google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& @@ -203,6 +409,31 @@ NetworkSecurityTracingConnection::DeleteClientTlsPolicy( child_->DeleteClientTlsPolicy(request)); } +StatusOr +NetworkSecurityTracingConnection::DeleteClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::DeleteClientTlsPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteClientTlsPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkSecurityTracingConnection::DeleteClientTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networksecurity_v1::NetworkSecurityConnection::DeleteClientTlsPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteClientTlsPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.h b/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.h index 67c8d012659be..844c0970eed57 100644 --- a/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.h +++ b/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.h @@ -55,16 +55,46 @@ class NetworkSecurityTracingConnection google::cloud::networksecurity::v1:: CreateAuthorizationPolicyRequest const& request) override; + StatusOr CreateAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1:: + CreateAuthorizationPolicyRequest const& request) override; + + future> + CreateAuthorizationPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateAuthorizationPolicy( google::cloud::networksecurity::v1:: UpdateAuthorizationPolicyRequest const& request) override; + StatusOr UpdateAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1:: + UpdateAuthorizationPolicyRequest const& request) override; + + future> + UpdateAuthorizationPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAuthorizationPolicy( google::cloud::networksecurity::v1:: DeleteAuthorizationPolicyRequest const& request) override; + StatusOr DeleteAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1:: + DeleteAuthorizationPolicyRequest const& request) override; + + future> + DeleteAuthorizationPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListServerTlsPolicies( google::cloud::networksecurity::v1::ListServerTlsPoliciesRequest request) @@ -80,16 +110,46 @@ class NetworkSecurityTracingConnection google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& request) override; + StatusOr CreateServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& + request) override; + + future> + CreateServerTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateServerTlsPolicy( google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& request) override; + StatusOr UpdateServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& + request) override; + + future> + UpdateServerTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteServerTlsPolicy( google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& request) override; + StatusOr DeleteServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& + request) override; + + future> + DeleteServerTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListClientTlsPolicies( google::cloud::networksecurity::v1::ListClientTlsPoliciesRequest request) @@ -105,16 +165,46 @@ class NetworkSecurityTracingConnection google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& request) override; + StatusOr CreateClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& + request) override; + + future> + CreateClientTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateClientTlsPolicy( google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& request) override; + StatusOr UpdateClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& + request) override; + + future> + UpdateClientTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteClientTlsPolicy( google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& request) override; + StatusOr DeleteClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& + request) override; + + future> + DeleteClientTlsPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/networksecurity/v1/mocks/mock_network_security_connection.h b/google/cloud/networksecurity/v1/mocks/mock_network_security_connection.h index 99a797861c93c..20916a9bd7545 100644 --- a/google/cloud/networksecurity/v1/mocks/mock_network_security_connection.h +++ b/google/cloud/networksecurity/v1/mocks/mock_network_security_connection.h @@ -68,6 +68,20 @@ class MockNetworkSecurityConnection CreateAuthorizationPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + CreateAuthorizationPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1:: + CreateAuthorizationPolicyRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateAuthorizationPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateAuthorizationPolicy, @@ -75,6 +89,20 @@ class MockNetworkSecurityConnection UpdateAuthorizationPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + UpdateAuthorizationPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1:: + UpdateAuthorizationPolicyRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UpdateAuthorizationPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteAuthorizationPolicy, @@ -82,6 +110,20 @@ class MockNetworkSecurityConnection DeleteAuthorizationPolicyRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteAuthorizationPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1:: + DeleteAuthorizationPolicyRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteAuthorizationPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListServerTlsPolicies, @@ -103,6 +145,20 @@ class MockNetworkSecurityConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateServerTlsPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateServerTlsPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateServerTlsPolicy, @@ -110,6 +166,20 @@ class MockNetworkSecurityConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateServerTlsPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateServerTlsPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteServerTlsPolicy, @@ -117,6 +187,20 @@ class MockNetworkSecurityConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteServerTlsPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteServerTlsPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListClientTlsPolicies, @@ -138,6 +222,20 @@ class MockNetworkSecurityConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateClientTlsPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateClientTlsPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateClientTlsPolicy, @@ -145,12 +243,40 @@ class MockNetworkSecurityConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateClientTlsPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateClientTlsPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteClientTlsPolicy, (google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteClientTlsPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteClientTlsPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/networksecurity/v1/network_security_connection.cc b/google/cloud/networksecurity/v1/network_security_connection.cc index 55952806341e7..ccd88a3c13f62 100644 --- a/google/cloud/networksecurity/v1/network_security_connection.cc +++ b/google/cloud/networksecurity/v1/network_security_connection.cc @@ -61,6 +61,23 @@ NetworkSecurityConnection::CreateAuthorizationPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkSecurityConnection::CreateAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1:: + CreateAuthorizationPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkSecurityConnection::CreateAuthorizationPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkSecurityConnection::UpdateAuthorizationPolicy( google::cloud::networksecurity::v1:: @@ -70,6 +87,23 @@ NetworkSecurityConnection::UpdateAuthorizationPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkSecurityConnection::UpdateAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1:: + UpdateAuthorizationPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkSecurityConnection::UpdateAuthorizationPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkSecurityConnection::DeleteAuthorizationPolicy( google::cloud::networksecurity::v1:: @@ -79,6 +113,23 @@ NetworkSecurityConnection::DeleteAuthorizationPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkSecurityConnection::DeleteAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1:: + DeleteAuthorizationPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkSecurityConnection::DeleteAuthorizationPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetworkSecurityConnection::ListServerTlsPolicies( google::cloud::networksecurity::v1:: @@ -101,6 +152,22 @@ NetworkSecurityConnection::CreateServerTlsPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkSecurityConnection::CreateServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkSecurityConnection::CreateServerTlsPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkSecurityConnection::UpdateServerTlsPolicy( google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const&) { @@ -109,6 +176,22 @@ NetworkSecurityConnection::UpdateServerTlsPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkSecurityConnection::UpdateServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkSecurityConnection::UpdateServerTlsPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkSecurityConnection::DeleteServerTlsPolicy( google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const&) { @@ -117,6 +200,22 @@ NetworkSecurityConnection::DeleteServerTlsPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkSecurityConnection::DeleteServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkSecurityConnection::DeleteServerTlsPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetworkSecurityConnection::ListClientTlsPolicies( google::cloud::networksecurity::v1:: @@ -139,6 +238,22 @@ NetworkSecurityConnection::CreateClientTlsPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkSecurityConnection::CreateClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkSecurityConnection::CreateClientTlsPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkSecurityConnection::UpdateClientTlsPolicy( google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const&) { @@ -147,6 +262,22 @@ NetworkSecurityConnection::UpdateClientTlsPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkSecurityConnection::UpdateClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkSecurityConnection::UpdateClientTlsPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkSecurityConnection::DeleteClientTlsPolicy( google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const&) { @@ -155,6 +286,22 @@ NetworkSecurityConnection::DeleteClientTlsPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkSecurityConnection::DeleteClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkSecurityConnection::DeleteClientTlsPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeNetworkSecurityConnection( Options options) { internal::CheckExpectedOptions CreateAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1:: + CreateAuthorizationPolicyRequest const& request); + + virtual future< + StatusOr> + CreateAuthorizationPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UpdateAuthorizationPolicy( google::cloud::networksecurity::v1:: UpdateAuthorizationPolicyRequest const& request); + virtual StatusOr UpdateAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1:: + UpdateAuthorizationPolicyRequest const& request); + + virtual future< + StatusOr> + UpdateAuthorizationPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteAuthorizationPolicy( google::cloud::networksecurity::v1:: DeleteAuthorizationPolicyRequest const& request); + virtual StatusOr DeleteAuthorizationPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1:: + DeleteAuthorizationPolicyRequest const& request); + + virtual future< + StatusOr> + DeleteAuthorizationPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListServerTlsPolicies( google::cloud::networksecurity::v1::ListServerTlsPoliciesRequest request); @@ -229,17 +261,45 @@ class NetworkSecurityConnection { google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& request); + virtual StatusOr CreateServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& + request); + + virtual future> + CreateServerTlsPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateServerTlsPolicy( google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& request); + virtual StatusOr UpdateServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& + request); + + virtual future> + UpdateServerTlsPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteServerTlsPolicy( google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& request); + virtual StatusOr DeleteServerTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& + request); + + virtual future< + StatusOr> + DeleteServerTlsPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListClientTlsPolicies( google::cloud::networksecurity::v1::ListClientTlsPoliciesRequest request); @@ -254,16 +314,44 @@ class NetworkSecurityConnection { google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& request); + virtual StatusOr CreateClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& + request); + + virtual future> + CreateClientTlsPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateClientTlsPolicy( google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& request); + virtual StatusOr UpdateClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& + request); + + virtual future> + UpdateClientTlsPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteClientTlsPolicy( google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& request); + + virtual StatusOr DeleteClientTlsPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& + request); + + virtual future< + StatusOr> + DeleteClientTlsPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/networkservices/v1/dep_connection.cc b/google/cloud/networkservices/v1/dep_connection.cc index 8cff8bcba4317..d9850b12b83a7 100644 --- a/google/cloud/networkservices/v1/dep_connection.cc +++ b/google/cloud/networkservices/v1/dep_connection.cc @@ -61,10 +61,44 @@ DepServiceConnection::CreateLbTrafficExtension( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DepServiceConnection::CreateLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1:: + CreateLbTrafficExtensionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +DepServiceConnection::CreateLbTrafficExtension( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DepServiceConnection::UpdateLbTrafficExtension( + google::cloud::networkservices::v1:: + UpdateLbTrafficExtensionRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr DepServiceConnection::UpdateLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::networkservices::v1:: UpdateLbTrafficExtensionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DepServiceConnection::UpdateLbTrafficExtension( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -79,6 +113,23 @@ DepServiceConnection::DeleteLbTrafficExtension( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DepServiceConnection::DeleteLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1:: + DeleteLbTrafficExtensionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DepServiceConnection::DeleteLbTrafficExtension( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange DepServiceConnection::ListLbRouteExtensions( google::cloud::networkservices::v1:: @@ -101,6 +152,22 @@ DepServiceConnection::CreateLbRouteExtension( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DepServiceConnection::CreateLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DepServiceConnection::CreateLbRouteExtension( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DepServiceConnection::UpdateLbRouteExtension( google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const&) { @@ -109,6 +176,22 @@ DepServiceConnection::UpdateLbRouteExtension( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DepServiceConnection::UpdateLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DepServiceConnection::UpdateLbRouteExtension( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DepServiceConnection::DeleteLbRouteExtension( google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const&) { @@ -117,6 +200,22 @@ DepServiceConnection::DeleteLbRouteExtension( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DepServiceConnection::DeleteLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DepServiceConnection::DeleteLbRouteExtension( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeDepServiceConnection( Options options) { internal::CheckExpectedOptions CreateLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateLbTrafficExtensionRequest const& + request); + + virtual future< + StatusOr> + CreateLbTrafficExtension(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UpdateLbTrafficExtension( google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& request); + virtual StatusOr UpdateLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& + request); + + virtual future< + StatusOr> + UpdateLbTrafficExtension(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteLbTrafficExtension( google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& request); + virtual StatusOr DeleteLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& + request); + + virtual future< + StatusOr> + DeleteLbTrafficExtension(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListLbRouteExtensions( google::cloud::networkservices::v1::ListLbRouteExtensionsRequest request); @@ -226,16 +258,44 @@ class DepServiceConnection { google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& request); + virtual StatusOr CreateLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& + request); + + virtual future> + CreateLbRouteExtension(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateLbRouteExtension( google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& request); + virtual StatusOr UpdateLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& + request); + + virtual future> + UpdateLbRouteExtension(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteLbRouteExtension( google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& request); + + virtual StatusOr DeleteLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& + request); + + virtual future< + StatusOr> + DeleteLbRouteExtension(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/networkservices/v1/internal/dep_connection_impl.cc b/google/cloud/networkservices/v1/internal/dep_connection_impl.cc index 6250bf39c8fc3..1b90e1e7f94ce 100644 --- a/google/cloud/networkservices/v1/internal/dep_connection_impl.cc +++ b/google/cloud/networkservices/v1/internal/dep_connection_impl.cc @@ -160,6 +160,62 @@ DepServiceConnectionImpl::CreateLbTrafficExtension( polling_policy(*current), __func__); } +StatusOr +DepServiceConnectionImpl::CreateLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateLbTrafficExtensionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateLbTrafficExtension(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1:: + CreateLbTrafficExtensionRequest const& request) { + return stub_->CreateLbTrafficExtension(context, options, request); + }, + *current, request, __func__); +} + +future> +DepServiceConnectionImpl::CreateLbTrafficExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateLbTrafficExtension", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::LbTrafficExtension>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::LbTrafficExtension>, + polling_policy(*current), __func__); +} + future> DepServiceConnectionImpl::UpdateLbTrafficExtension( google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& @@ -200,6 +256,62 @@ DepServiceConnectionImpl::UpdateLbTrafficExtension( polling_policy(*current), __func__); } +StatusOr +DepServiceConnectionImpl::UpdateLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateLbTrafficExtension(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1:: + UpdateLbTrafficExtensionRequest const& request) { + return stub_->UpdateLbTrafficExtension(context, options, request); + }, + *current, request, __func__); +} + +future> +DepServiceConnectionImpl::UpdateLbTrafficExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateLbTrafficExtension", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::LbTrafficExtension>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::LbTrafficExtension>, + polling_policy(*current), __func__); +} + future> DepServiceConnectionImpl::DeleteLbTrafficExtension( google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& @@ -240,6 +352,62 @@ DepServiceConnectionImpl::DeleteLbTrafficExtension( polling_policy(*current), __func__); } +StatusOr +DepServiceConnectionImpl::DeleteLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteLbTrafficExtension(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1:: + DeleteLbTrafficExtensionRequest const& request) { + return stub_->DeleteLbTrafficExtension(context, options, request); + }, + *current, request, __func__); +} + +future> +DepServiceConnectionImpl::DeleteLbTrafficExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteLbTrafficExtension", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networkservices::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange DepServiceConnectionImpl::ListLbRouteExtensions( google::cloud::networkservices::v1::ListLbRouteExtensionsRequest request) { @@ -332,6 +500,62 @@ DepServiceConnectionImpl::CreateLbRouteExtension( polling_policy(*current), __func__); } +StatusOr +DepServiceConnectionImpl::CreateLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateLbRouteExtension(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1:: + CreateLbRouteExtensionRequest const& request) { + return stub_->CreateLbRouteExtension(context, options, request); + }, + *current, request, __func__); +} + +future> +DepServiceConnectionImpl::CreateLbRouteExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateLbRouteExtension", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::LbRouteExtension>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::LbRouteExtension>, + polling_policy(*current), __func__); +} + future> DepServiceConnectionImpl::UpdateLbRouteExtension( google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& @@ -372,6 +596,62 @@ DepServiceConnectionImpl::UpdateLbRouteExtension( polling_policy(*current), __func__); } +StatusOr +DepServiceConnectionImpl::UpdateLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateLbRouteExtension(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1:: + UpdateLbRouteExtensionRequest const& request) { + return stub_->UpdateLbRouteExtension(context, options, request); + }, + *current, request, __func__); +} + +future> +DepServiceConnectionImpl::UpdateLbRouteExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateLbRouteExtension", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::LbRouteExtension>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::LbRouteExtension>, + polling_policy(*current), __func__); +} + future> DepServiceConnectionImpl::DeleteLbRouteExtension( google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& @@ -412,6 +692,62 @@ DepServiceConnectionImpl::DeleteLbRouteExtension( polling_policy(*current), __func__); } +StatusOr +DepServiceConnectionImpl::DeleteLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteLbRouteExtension(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1:: + DeleteLbRouteExtensionRequest const& request) { + return stub_->DeleteLbRouteExtension(context, options, request); + }, + *current, request, __func__); +} + +future> +DepServiceConnectionImpl::DeleteLbRouteExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteLbRouteExtension", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networkservices::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace networkservices_v1_internal } // namespace cloud diff --git a/google/cloud/networkservices/v1/internal/dep_connection_impl.h b/google/cloud/networkservices/v1/internal/dep_connection_impl.h index 9d0bfb12e621c..106c773e66b5d 100644 --- a/google/cloud/networkservices/v1/internal/dep_connection_impl.h +++ b/google/cloud/networkservices/v1/internal/dep_connection_impl.h @@ -67,16 +67,46 @@ class DepServiceConnectionImpl google::cloud::networkservices::v1::CreateLbTrafficExtensionRequest const& request) override; + StatusOr CreateLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateLbTrafficExtensionRequest const& + request) override; + + future> + CreateLbTrafficExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateLbTrafficExtension( google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& request) override; + StatusOr UpdateLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& + request) override; + + future> + UpdateLbTrafficExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteLbTrafficExtension( google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& request) override; + StatusOr DeleteLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& + request) override; + + future> + DeleteLbTrafficExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListLbRouteExtensions( google::cloud::networkservices::v1::ListLbRouteExtensionsRequest request) @@ -92,16 +122,46 @@ class DepServiceConnectionImpl google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& request) override; + StatusOr CreateLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& + request) override; + + future> + CreateLbRouteExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateLbRouteExtension( google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& request) override; + StatusOr UpdateLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& + request) override; + + future> + UpdateLbRouteExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteLbRouteExtension( google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& request) override; + StatusOr DeleteLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& + request) override; + + future> + DeleteLbRouteExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/networkservices/v1/internal/dep_tracing_connection.cc b/google/cloud/networkservices/v1/internal/dep_tracing_connection.cc index dc70663b156a0..158024bbaee9a 100644 --- a/google/cloud/networkservices/v1/internal/dep_tracing_connection.cc +++ b/google/cloud/networkservices/v1/internal/dep_tracing_connection.cc @@ -67,6 +67,31 @@ DepServiceTracingConnection::CreateLbTrafficExtension( child_->CreateLbTrafficExtension(request)); } +StatusOr +DepServiceTracingConnection::CreateLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateLbTrafficExtensionRequest const& + request) { + auto span = internal::MakeSpan( + "networkservices_v1::DepServiceConnection::CreateLbTrafficExtension"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateLbTrafficExtension( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DepServiceTracingConnection::CreateLbTrafficExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::DepServiceConnection::CreateLbTrafficExtension"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateLbTrafficExtension( + google::cloud::ExperimentalTag{}, operation)); +} + future> DepServiceTracingConnection::UpdateLbTrafficExtension( google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& @@ -78,6 +103,31 @@ DepServiceTracingConnection::UpdateLbTrafficExtension( child_->UpdateLbTrafficExtension(request)); } +StatusOr +DepServiceTracingConnection::UpdateLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& + request) { + auto span = internal::MakeSpan( + "networkservices_v1::DepServiceConnection::UpdateLbTrafficExtension"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateLbTrafficExtension( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DepServiceTracingConnection::UpdateLbTrafficExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::DepServiceConnection::UpdateLbTrafficExtension"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateLbTrafficExtension( + google::cloud::ExperimentalTag{}, operation)); +} + future> DepServiceTracingConnection::DeleteLbTrafficExtension( google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& @@ -89,6 +139,31 @@ DepServiceTracingConnection::DeleteLbTrafficExtension( child_->DeleteLbTrafficExtension(request)); } +StatusOr +DepServiceTracingConnection::DeleteLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& + request) { + auto span = internal::MakeSpan( + "networkservices_v1::DepServiceConnection::DeleteLbTrafficExtension"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteLbTrafficExtension( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DepServiceTracingConnection::DeleteLbTrafficExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::DepServiceConnection::DeleteLbTrafficExtension"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteLbTrafficExtension( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange DepServiceTracingConnection::ListLbRouteExtensions( google::cloud::networkservices::v1::ListLbRouteExtensionsRequest request) { @@ -122,6 +197,31 @@ DepServiceTracingConnection::CreateLbRouteExtension( child_->CreateLbRouteExtension(request)); } +StatusOr +DepServiceTracingConnection::CreateLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& + request) { + auto span = internal::MakeSpan( + "networkservices_v1::DepServiceConnection::CreateLbRouteExtension"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateLbRouteExtension( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DepServiceTracingConnection::CreateLbRouteExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::DepServiceConnection::CreateLbRouteExtension"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateLbRouteExtension( + google::cloud::ExperimentalTag{}, operation)); +} + future> DepServiceTracingConnection::UpdateLbRouteExtension( google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& @@ -133,6 +233,31 @@ DepServiceTracingConnection::UpdateLbRouteExtension( child_->UpdateLbRouteExtension(request)); } +StatusOr +DepServiceTracingConnection::UpdateLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& + request) { + auto span = internal::MakeSpan( + "networkservices_v1::DepServiceConnection::UpdateLbRouteExtension"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateLbRouteExtension( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DepServiceTracingConnection::UpdateLbRouteExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::DepServiceConnection::UpdateLbRouteExtension"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateLbRouteExtension( + google::cloud::ExperimentalTag{}, operation)); +} + future> DepServiceTracingConnection::DeleteLbRouteExtension( google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& @@ -144,6 +269,31 @@ DepServiceTracingConnection::DeleteLbRouteExtension( child_->DeleteLbRouteExtension(request)); } +StatusOr +DepServiceTracingConnection::DeleteLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& + request) { + auto span = internal::MakeSpan( + "networkservices_v1::DepServiceConnection::DeleteLbRouteExtension"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteLbRouteExtension( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DepServiceTracingConnection::DeleteLbRouteExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::DepServiceConnection::DeleteLbRouteExtension"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteLbRouteExtension( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/networkservices/v1/internal/dep_tracing_connection.h b/google/cloud/networkservices/v1/internal/dep_tracing_connection.h index 50549fbb7ceb4..d975c4d6dddf7 100644 --- a/google/cloud/networkservices/v1/internal/dep_tracing_connection.h +++ b/google/cloud/networkservices/v1/internal/dep_tracing_connection.h @@ -55,16 +55,46 @@ class DepServiceTracingConnection google::cloud::networkservices::v1::CreateLbTrafficExtensionRequest const& request) override; + StatusOr CreateLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateLbTrafficExtensionRequest const& + request) override; + + future> + CreateLbTrafficExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateLbTrafficExtension( google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& request) override; + StatusOr UpdateLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& + request) override; + + future> + UpdateLbTrafficExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteLbTrafficExtension( google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& request) override; + StatusOr DeleteLbTrafficExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& + request) override; + + future> + DeleteLbTrafficExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListLbRouteExtensions( google::cloud::networkservices::v1::ListLbRouteExtensionsRequest request) @@ -80,16 +110,46 @@ class DepServiceTracingConnection google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& request) override; + StatusOr CreateLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& + request) override; + + future> + CreateLbRouteExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateLbRouteExtension( google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& request) override; + StatusOr UpdateLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& + request) override; + + future> + UpdateLbRouteExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteLbRouteExtension( google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& request) override; + StatusOr DeleteLbRouteExtension( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& + request) override; + + future> + DeleteLbRouteExtension( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/networkservices/v1/internal/network_services_connection_impl.cc b/google/cloud/networkservices/v1/internal/network_services_connection_impl.cc index 85c167ddcb23f..f6f18e14e0294 100644 --- a/google/cloud/networkservices/v1/internal/network_services_connection_impl.cc +++ b/google/cloud/networkservices/v1/internal/network_services_connection_impl.cc @@ -161,6 +161,63 @@ NetworkServicesConnectionImpl::CreateEndpointPolicy( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::CreateEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateEndpointPolicy(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& + request) { + return stub_->CreateEndpointPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::CreateEndpointPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateEndpointPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::EndpointPolicy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::EndpointPolicy>, + polling_policy(*current), __func__); +} + future> NetworkServicesConnectionImpl::UpdateEndpointPolicy( google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& @@ -202,6 +259,63 @@ NetworkServicesConnectionImpl::UpdateEndpointPolicy( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::UpdateEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateEndpointPolicy(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& + request) { + return stub_->UpdateEndpointPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::UpdateEndpointPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateEndpointPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::EndpointPolicy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::EndpointPolicy>, + polling_policy(*current), __func__); +} + future> NetworkServicesConnectionImpl::DeleteEndpointPolicy( google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& @@ -243,6 +357,63 @@ NetworkServicesConnectionImpl::DeleteEndpointPolicy( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::DeleteEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteEndpointPolicy(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& + request) { + return stub_->DeleteEndpointPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::DeleteEndpointPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteEndpointPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networkservices::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange NetworkServicesConnectionImpl::ListGateways( google::cloud::networkservices::v1::ListGatewaysRequest request) { @@ -333,6 +504,61 @@ NetworkServicesConnectionImpl::CreateGateway( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::CreateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateGatewayRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateGateway(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::CreateGatewayRequest const& + request) { + return stub_->CreateGateway(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::CreateGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateGateway", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::Gateway>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::Gateway>, + polling_policy(*current), __func__); +} + future> NetworkServicesConnectionImpl::UpdateGateway( google::cloud::networkservices::v1::UpdateGatewayRequest const& request) { @@ -373,6 +599,61 @@ NetworkServicesConnectionImpl::UpdateGateway( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::UpdateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateGatewayRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateGateway(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::UpdateGatewayRequest const& + request) { + return stub_->UpdateGateway(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::UpdateGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateGateway", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::Gateway>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::Gateway>, + polling_policy(*current), __func__); +} + future> NetworkServicesConnectionImpl::DeleteGateway( google::cloud::networkservices::v1::DeleteGatewayRequest const& request) { @@ -413,6 +694,61 @@ NetworkServicesConnectionImpl::DeleteGateway( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::DeleteGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteGatewayRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteGateway(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::DeleteGatewayRequest const& + request) { + return stub_->DeleteGateway(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::DeleteGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteGateway", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networkservices::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange NetworkServicesConnectionImpl::ListGrpcRoutes( google::cloud::networkservices::v1::ListGrpcRoutesRequest request) { @@ -503,25 +839,41 @@ NetworkServicesConnectionImpl::CreateGrpcRoute( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::CreateGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateGrpcRouteRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateGrpcRoute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::CreateGrpcRouteRequest const& + request) { + return stub_->CreateGrpcRoute(context, options, request); + }, + *current, request, __func__); +} + future> -NetworkServicesConnectionImpl::UpdateGrpcRoute( - google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request) { +NetworkServicesConnectionImpl::CreateGrpcRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->UpdateGrpcRoute(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateGrpcRoute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< google::cloud::networkservices::v1::GrpcRoute>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& - request) { - return stub->AsyncUpdateGrpcRoute(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -539,11 +891,105 @@ NetworkServicesConnectionImpl::UpdateGrpcRoute( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::networkservices::v1::GrpcRoute>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } -future> +future> +NetworkServicesConnectionImpl::UpdateGrpcRoute( + google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->UpdateGrpcRoute(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::networkservices::v1::GrpcRoute>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& + request) { + return stub->AsyncUpdateGrpcRoute(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::GrpcRoute>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +NetworkServicesConnectionImpl::UpdateGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateGrpcRoute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& + request) { + return stub_->UpdateGrpcRoute(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::UpdateGrpcRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateGrpcRoute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::GrpcRoute>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::GrpcRoute>, + polling_policy(*current), __func__); +} + +future> NetworkServicesConnectionImpl::DeleteGrpcRoute( google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -583,6 +1029,61 @@ NetworkServicesConnectionImpl::DeleteGrpcRoute( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::DeleteGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteGrpcRoute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& + request) { + return stub_->DeleteGrpcRoute(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::DeleteGrpcRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteGrpcRoute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networkservices::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange NetworkServicesConnectionImpl::ListHttpRoutes( google::cloud::networkservices::v1::ListHttpRoutesRequest request) { @@ -673,6 +1174,61 @@ NetworkServicesConnectionImpl::CreateHttpRoute( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::CreateHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateHttpRouteRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateHttpRoute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::CreateHttpRouteRequest const& + request) { + return stub_->CreateHttpRoute(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::CreateHttpRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateHttpRoute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::HttpRoute>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::HttpRoute>, + polling_policy(*current), __func__); +} + future> NetworkServicesConnectionImpl::UpdateHttpRoute( google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request) { @@ -713,6 +1269,61 @@ NetworkServicesConnectionImpl::UpdateHttpRoute( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::UpdateHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateHttpRoute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::UpdateHttpRouteRequest const& + request) { + return stub_->UpdateHttpRoute(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::UpdateHttpRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateHttpRoute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::HttpRoute>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::HttpRoute>, + polling_policy(*current), __func__); +} + future> NetworkServicesConnectionImpl::DeleteHttpRoute( google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request) { @@ -753,6 +1364,61 @@ NetworkServicesConnectionImpl::DeleteHttpRoute( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::DeleteHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteHttpRoute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::DeleteHttpRouteRequest const& + request) { + return stub_->DeleteHttpRoute(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::DeleteHttpRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteHttpRoute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networkservices::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange NetworkServicesConnectionImpl::ListTcpRoutes( google::cloud::networkservices::v1::ListTcpRoutesRequest request) { @@ -843,6 +1509,61 @@ NetworkServicesConnectionImpl::CreateTcpRoute( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::CreateTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateTcpRouteRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateTcpRoute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::CreateTcpRouteRequest const& + request) { + return stub_->CreateTcpRoute(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::CreateTcpRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateTcpRoute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::TcpRoute>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::TcpRoute>, + polling_policy(*current), __func__); +} + future> NetworkServicesConnectionImpl::UpdateTcpRoute( google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request) { @@ -883,6 +1604,61 @@ NetworkServicesConnectionImpl::UpdateTcpRoute( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::UpdateTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateTcpRoute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::UpdateTcpRouteRequest const& + request) { + return stub_->UpdateTcpRoute(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::UpdateTcpRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateTcpRoute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::TcpRoute>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::TcpRoute>, + polling_policy(*current), __func__); +} + future> NetworkServicesConnectionImpl::DeleteTcpRoute( google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request) { @@ -923,6 +1699,61 @@ NetworkServicesConnectionImpl::DeleteTcpRoute( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::DeleteTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTcpRoute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::DeleteTcpRouteRequest const& + request) { + return stub_->DeleteTcpRoute(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::DeleteTcpRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTcpRoute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networkservices::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange NetworkServicesConnectionImpl::ListTlsRoutes( google::cloud::networkservices::v1::ListTlsRoutesRequest request) { @@ -979,7 +1810,102 @@ NetworkServicesConnectionImpl::CreateTlsRoute( auto current = google::cloud::internal::SaveCurrentOptions(); auto request_copy = request; auto const idempotent = - idempotency_policy(*current)->CreateTlsRoute(request_copy); + idempotency_policy(*current)->CreateTlsRoute(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::networkservices::v1::TlsRoute>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::networkservices::v1::CreateTlsRouteRequest const& + request) { + return stub->AsyncCreateTlsRoute(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::TlsRoute>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +NetworkServicesConnectionImpl::CreateTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateTlsRouteRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateTlsRoute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::CreateTlsRouteRequest const& + request) { + return stub_->CreateTlsRoute(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::CreateTlsRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateTlsRoute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::TlsRoute>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::TlsRoute>, + polling_policy(*current), __func__); +} + +future> +NetworkServicesConnectionImpl::UpdateTlsRoute( + google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->UpdateTlsRoute(request_copy); return google::cloud::internal::AsyncLongRunningOperation< google::cloud::networkservices::v1::TlsRoute>( background_->cq(), current, std::move(request_copy), @@ -987,9 +1913,9 @@ NetworkServicesConnectionImpl::CreateTlsRoute( google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, - google::cloud::networkservices::v1::CreateTlsRouteRequest const& + google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request) { - return stub->AsyncCreateTlsRoute(cq, std::move(context), + return stub->AsyncUpdateTlsRoute(cq, std::move(context), std::move(options), request); }, [stub = stub_](google::cloud::CompletionQueue& cq, @@ -1013,25 +1939,41 @@ NetworkServicesConnectionImpl::CreateTlsRoute( polling_policy(*current), __func__); } -future> +StatusOr NetworkServicesConnectionImpl::UpdateTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->UpdateTlsRoute(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::networkservices::v1::TlsRoute>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::networkservices::v1::UpdateTlsRouteRequest const& - request) { - return stub->AsyncUpdateTlsRoute(cq, std::move(context), - std::move(options), request); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateTlsRoute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::UpdateTlsRouteRequest const& + request) { + return stub_->UpdateTlsRoute(context, options, request); }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::UpdateTlsRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateTlsRoute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::TlsRoute>( + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -1049,7 +1991,6 @@ NetworkServicesConnectionImpl::UpdateTlsRoute( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::networkservices::v1::TlsRoute>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } @@ -1093,6 +2034,61 @@ NetworkServicesConnectionImpl::DeleteTlsRoute( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::DeleteTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTlsRoute(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::DeleteTlsRouteRequest const& + request) { + return stub_->DeleteTlsRoute(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::DeleteTlsRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTlsRoute", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networkservices::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange NetworkServicesConnectionImpl::ListServiceBindings( google::cloud::networkservices::v1::ListServiceBindingsRequest request) { @@ -1185,6 +2181,63 @@ NetworkServicesConnectionImpl::CreateServiceBinding( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::CreateServiceBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateServiceBindingRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateServiceBinding(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::CreateServiceBindingRequest const& + request) { + return stub_->CreateServiceBinding(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::CreateServiceBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateServiceBinding", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::ServiceBinding>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::ServiceBinding>, + polling_policy(*current), __func__); +} + future> NetworkServicesConnectionImpl::DeleteServiceBinding( google::cloud::networkservices::v1::DeleteServiceBindingRequest const& @@ -1226,6 +2279,63 @@ NetworkServicesConnectionImpl::DeleteServiceBinding( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::DeleteServiceBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteServiceBindingRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteServiceBinding(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::DeleteServiceBindingRequest const& + request) { + return stub_->DeleteServiceBinding(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::DeleteServiceBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteServiceBinding", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networkservices::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange NetworkServicesConnectionImpl::ListMeshes( google::cloud::networkservices::v1::ListMeshesRequest request) { @@ -1315,6 +2425,61 @@ NetworkServicesConnectionImpl::CreateMesh( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::CreateMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateMeshRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateMesh(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::CreateMeshRequest const& + request) { + return stub_->CreateMesh(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::CreateMesh( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateMesh", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::Mesh>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::Mesh>, + polling_policy(*current), __func__); +} + future> NetworkServicesConnectionImpl::UpdateMesh( google::cloud::networkservices::v1::UpdateMeshRequest const& request) { @@ -1355,6 +2520,61 @@ NetworkServicesConnectionImpl::UpdateMesh( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::UpdateMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateMeshRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateMesh(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::UpdateMeshRequest const& + request) { + return stub_->UpdateMesh(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::UpdateMesh( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateMesh", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::Mesh>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::networkservices::v1::Mesh>, + polling_policy(*current), __func__); +} + future> NetworkServicesConnectionImpl::DeleteMesh( google::cloud::networkservices::v1::DeleteMeshRequest const& request) { @@ -1395,6 +2615,61 @@ NetworkServicesConnectionImpl::DeleteMesh( polling_policy(*current), __func__); } +StatusOr +NetworkServicesConnectionImpl::DeleteMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteMeshRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteMesh(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::networkservices::v1::DeleteMeshRequest const& + request) { + return stub_->DeleteMesh(context, options, request); + }, + *current, request, __func__); +} + +future> +NetworkServicesConnectionImpl::DeleteMesh( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteMesh", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::networkservices::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::networkservices::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace networkservices_v1_internal } // namespace cloud diff --git a/google/cloud/networkservices/v1/internal/network_services_connection_impl.h b/google/cloud/networkservices/v1/internal/network_services_connection_impl.h index 71c742ceb4e4a..96c48c1601efb 100644 --- a/google/cloud/networkservices/v1/internal/network_services_connection_impl.h +++ b/google/cloud/networkservices/v1/internal/network_services_connection_impl.h @@ -67,16 +67,46 @@ class NetworkServicesConnectionImpl google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& request) override; + StatusOr CreateEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& + request) override; + + future> + CreateEndpointPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateEndpointPolicy( google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& request) override; + StatusOr UpdateEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& + request) override; + + future> + UpdateEndpointPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEndpointPolicy( google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& request) override; + StatusOr DeleteEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& + request) override; + + future> + DeleteEndpointPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListGateways( google::cloud::networkservices::v1::ListGatewaysRequest request) override; @@ -88,14 +118,41 @@ class NetworkServicesConnectionImpl google::cloud::networkservices::v1::CreateGatewayRequest const& request) override; + StatusOr CreateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateGatewayRequest const& request) + override; + + future> CreateGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateGateway( google::cloud::networkservices::v1::UpdateGatewayRequest const& request) override; + StatusOr UpdateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateGatewayRequest const& request) + override; + + future> UpdateGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteGateway(google::cloud::networkservices::v1::DeleteGatewayRequest const& request) override; + StatusOr DeleteGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteGatewayRequest const& request) + override; + + future> + DeleteGateway(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListGrpcRoutes( google::cloud::networkservices::v1::ListGrpcRoutesRequest request) override; @@ -109,16 +166,43 @@ class NetworkServicesConnectionImpl google::cloud::networkservices::v1::CreateGrpcRouteRequest const& request) override; + StatusOr CreateGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateGrpcRouteRequest const& request) + override; + + future> + CreateGrpcRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateGrpcRoute( google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request) override; + StatusOr UpdateGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request) + override; + + future> + UpdateGrpcRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteGrpcRoute( google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request) override; + StatusOr DeleteGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request) + override; + + future> + DeleteGrpcRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListHttpRoutes( google::cloud::networkservices::v1::ListHttpRoutesRequest request) override; @@ -132,16 +216,43 @@ class NetworkServicesConnectionImpl google::cloud::networkservices::v1::CreateHttpRouteRequest const& request) override; + StatusOr CreateHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateHttpRouteRequest const& request) + override; + + future> + CreateHttpRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateHttpRoute( google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request) override; + StatusOr UpdateHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request) + override; + + future> + UpdateHttpRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteHttpRoute( google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request) override; + StatusOr DeleteHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request) + override; + + future> + DeleteHttpRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTcpRoutes( google::cloud::networkservices::v1::ListTcpRoutesRequest request) override; @@ -154,15 +265,42 @@ class NetworkServicesConnectionImpl google::cloud::networkservices::v1::CreateTcpRouteRequest const& request) override; + StatusOr CreateTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateTcpRouteRequest const& request) + override; + + future> CreateTcpRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTcpRoute( google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request) override; + StatusOr UpdateTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request) + override; + + future> UpdateTcpRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTcpRoute( google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request) override; + StatusOr DeleteTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request) + override; + + future> + DeleteTcpRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTlsRoutes( google::cloud::networkservices::v1::ListTlsRoutesRequest request) override; @@ -175,15 +313,42 @@ class NetworkServicesConnectionImpl google::cloud::networkservices::v1::CreateTlsRouteRequest const& request) override; + StatusOr CreateTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateTlsRouteRequest const& request) + override; + + future> CreateTlsRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTlsRoute( google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request) override; + StatusOr UpdateTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request) + override; + + future> UpdateTlsRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTlsRoute( google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request) override; + StatusOr DeleteTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request) + override; + + future> + DeleteTlsRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListServiceBindings( google::cloud::networkservices::v1::ListServiceBindingsRequest request) @@ -199,11 +364,31 @@ class NetworkServicesConnectionImpl google::cloud::networkservices::v1::CreateServiceBindingRequest const& request) override; + StatusOr CreateServiceBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateServiceBindingRequest const& + request) override; + + future> + CreateServiceBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteServiceBinding( google::cloud::networkservices::v1::DeleteServiceBindingRequest const& request) override; + StatusOr DeleteServiceBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteServiceBindingRequest const& + request) override; + + future> + DeleteServiceBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListMeshes( google::cloud::networkservices::v1::ListMeshesRequest request) override; @@ -215,14 +400,41 @@ class NetworkServicesConnectionImpl google::cloud::networkservices::v1::CreateMeshRequest const& request) override; + StatusOr CreateMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateMeshRequest const& request) + override; + + future> CreateMesh( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateMesh( google::cloud::networkservices::v1::UpdateMeshRequest const& request) override; + StatusOr UpdateMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateMeshRequest const& request) + override; + + future> UpdateMesh( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteMesh(google::cloud::networkservices::v1::DeleteMeshRequest const& request) override; + StatusOr DeleteMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteMeshRequest const& request) + override; + + future> + DeleteMesh(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/networkservices/v1/internal/network_services_tracing_connection.cc b/google/cloud/networkservices/v1/internal/network_services_tracing_connection.cc index 2b7180db8a221..b989e9b4aa2c0 100644 --- a/google/cloud/networkservices/v1/internal/network_services_tracing_connection.cc +++ b/google/cloud/networkservices/v1/internal/network_services_tracing_connection.cc @@ -66,6 +66,31 @@ NetworkServicesTracingConnection::CreateEndpointPolicy( child_->CreateEndpointPolicy(request)); } +StatusOr +NetworkServicesTracingConnection::CreateEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::CreateEndpointPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateEndpointPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::CreateEndpointPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::CreateEndpointPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateEndpointPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkServicesTracingConnection::UpdateEndpointPolicy( google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& @@ -77,6 +102,31 @@ NetworkServicesTracingConnection::UpdateEndpointPolicy( child_->UpdateEndpointPolicy(request)); } +StatusOr +NetworkServicesTracingConnection::UpdateEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::UpdateEndpointPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateEndpointPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::UpdateEndpointPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::UpdateEndpointPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateEndpointPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkServicesTracingConnection::DeleteEndpointPolicy( google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& @@ -88,6 +138,31 @@ NetworkServicesTracingConnection::DeleteEndpointPolicy( child_->DeleteEndpointPolicy(request)); } +StatusOr +NetworkServicesTracingConnection::DeleteEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::DeleteEndpointPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteEndpointPolicy( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::DeleteEndpointPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::DeleteEndpointPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteEndpointPolicy( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetworkServicesTracingConnection::ListGateways( google::cloud::networkservices::v1::ListGatewaysRequest request) { @@ -118,6 +193,30 @@ NetworkServicesTracingConnection::CreateGateway( return internal::EndSpan(std::move(span), child_->CreateGateway(request)); } +StatusOr +NetworkServicesTracingConnection::CreateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateGatewayRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::CreateGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateGateway(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::CreateGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::CreateGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateGateway(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkServicesTracingConnection::UpdateGateway( google::cloud::networkservices::v1::UpdateGatewayRequest const& request) { @@ -127,6 +226,30 @@ NetworkServicesTracingConnection::UpdateGateway( return internal::EndSpan(std::move(span), child_->UpdateGateway(request)); } +StatusOr +NetworkServicesTracingConnection::UpdateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateGatewayRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::UpdateGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateGateway(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::UpdateGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::UpdateGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateGateway(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkServicesTracingConnection::DeleteGateway( google::cloud::networkservices::v1::DeleteGatewayRequest const& request) { @@ -136,6 +259,30 @@ NetworkServicesTracingConnection::DeleteGateway( return internal::EndSpan(std::move(span), child_->DeleteGateway(request)); } +StatusOr +NetworkServicesTracingConnection::DeleteGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteGatewayRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::DeleteGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteGateway(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::DeleteGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::DeleteGateway"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteGateway(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetworkServicesTracingConnection::ListGrpcRoutes( google::cloud::networkservices::v1::ListGrpcRoutesRequest request) { @@ -166,6 +313,30 @@ NetworkServicesTracingConnection::CreateGrpcRoute( return internal::EndSpan(std::move(span), child_->CreateGrpcRoute(request)); } +StatusOr +NetworkServicesTracingConnection::CreateGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateGrpcRouteRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::CreateGrpcRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateGrpcRoute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::CreateGrpcRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::CreateGrpcRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateGrpcRoute(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkServicesTracingConnection::UpdateGrpcRoute( google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request) { @@ -175,6 +346,30 @@ NetworkServicesTracingConnection::UpdateGrpcRoute( return internal::EndSpan(std::move(span), child_->UpdateGrpcRoute(request)); } +StatusOr +NetworkServicesTracingConnection::UpdateGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::UpdateGrpcRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateGrpcRoute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::UpdateGrpcRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::UpdateGrpcRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateGrpcRoute(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkServicesTracingConnection::DeleteGrpcRoute( google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request) { @@ -184,6 +379,30 @@ NetworkServicesTracingConnection::DeleteGrpcRoute( return internal::EndSpan(std::move(span), child_->DeleteGrpcRoute(request)); } +StatusOr +NetworkServicesTracingConnection::DeleteGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::DeleteGrpcRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteGrpcRoute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::DeleteGrpcRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::DeleteGrpcRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteGrpcRoute(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetworkServicesTracingConnection::ListHttpRoutes( google::cloud::networkservices::v1::ListHttpRoutesRequest request) { @@ -214,6 +433,30 @@ NetworkServicesTracingConnection::CreateHttpRoute( return internal::EndSpan(std::move(span), child_->CreateHttpRoute(request)); } +StatusOr +NetworkServicesTracingConnection::CreateHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateHttpRouteRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::CreateHttpRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateHttpRoute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::CreateHttpRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::CreateHttpRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateHttpRoute(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkServicesTracingConnection::UpdateHttpRoute( google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request) { @@ -223,6 +466,30 @@ NetworkServicesTracingConnection::UpdateHttpRoute( return internal::EndSpan(std::move(span), child_->UpdateHttpRoute(request)); } +StatusOr +NetworkServicesTracingConnection::UpdateHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::UpdateHttpRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateHttpRoute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::UpdateHttpRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::UpdateHttpRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateHttpRoute(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkServicesTracingConnection::DeleteHttpRoute( google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request) { @@ -232,6 +499,30 @@ NetworkServicesTracingConnection::DeleteHttpRoute( return internal::EndSpan(std::move(span), child_->DeleteHttpRoute(request)); } +StatusOr +NetworkServicesTracingConnection::DeleteHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::DeleteHttpRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteHttpRoute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::DeleteHttpRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::DeleteHttpRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteHttpRoute(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetworkServicesTracingConnection::ListTcpRoutes( google::cloud::networkservices::v1::ListTcpRoutesRequest request) { @@ -262,6 +553,30 @@ NetworkServicesTracingConnection::CreateTcpRoute( return internal::EndSpan(std::move(span), child_->CreateTcpRoute(request)); } +StatusOr +NetworkServicesTracingConnection::CreateTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateTcpRouteRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::CreateTcpRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateTcpRoute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::CreateTcpRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::CreateTcpRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateTcpRoute(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkServicesTracingConnection::UpdateTcpRoute( google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request) { @@ -271,6 +586,30 @@ NetworkServicesTracingConnection::UpdateTcpRoute( return internal::EndSpan(std::move(span), child_->UpdateTcpRoute(request)); } +StatusOr +NetworkServicesTracingConnection::UpdateTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::UpdateTcpRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateTcpRoute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::UpdateTcpRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::UpdateTcpRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateTcpRoute(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkServicesTracingConnection::DeleteTcpRoute( google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request) { @@ -280,6 +619,30 @@ NetworkServicesTracingConnection::DeleteTcpRoute( return internal::EndSpan(std::move(span), child_->DeleteTcpRoute(request)); } +StatusOr +NetworkServicesTracingConnection::DeleteTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::DeleteTcpRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteTcpRoute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::DeleteTcpRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::DeleteTcpRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteTcpRoute(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetworkServicesTracingConnection::ListTlsRoutes( google::cloud::networkservices::v1::ListTlsRoutesRequest request) { @@ -310,6 +673,30 @@ NetworkServicesTracingConnection::CreateTlsRoute( return internal::EndSpan(std::move(span), child_->CreateTlsRoute(request)); } +StatusOr +NetworkServicesTracingConnection::CreateTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateTlsRouteRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::CreateTlsRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateTlsRoute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::CreateTlsRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::CreateTlsRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateTlsRoute(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkServicesTracingConnection::UpdateTlsRoute( google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request) { @@ -319,6 +706,30 @@ NetworkServicesTracingConnection::UpdateTlsRoute( return internal::EndSpan(std::move(span), child_->UpdateTlsRoute(request)); } +StatusOr +NetworkServicesTracingConnection::UpdateTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::UpdateTlsRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateTlsRoute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::UpdateTlsRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::UpdateTlsRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateTlsRoute(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkServicesTracingConnection::DeleteTlsRoute( google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request) { @@ -328,6 +739,30 @@ NetworkServicesTracingConnection::DeleteTlsRoute( return internal::EndSpan(std::move(span), child_->DeleteTlsRoute(request)); } +StatusOr +NetworkServicesTracingConnection::DeleteTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::DeleteTlsRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteTlsRoute(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::DeleteTlsRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::DeleteTlsRoute"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteTlsRoute(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetworkServicesTracingConnection::ListServiceBindings( google::cloud::networkservices::v1::ListServiceBindingsRequest request) { @@ -361,6 +796,31 @@ NetworkServicesTracingConnection::CreateServiceBinding( child_->CreateServiceBinding(request)); } +StatusOr +NetworkServicesTracingConnection::CreateServiceBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateServiceBindingRequest const& + request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::CreateServiceBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateServiceBinding( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::CreateServiceBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::CreateServiceBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateServiceBinding( + google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkServicesTracingConnection::DeleteServiceBinding( google::cloud::networkservices::v1::DeleteServiceBindingRequest const& @@ -372,6 +832,31 @@ NetworkServicesTracingConnection::DeleteServiceBinding( child_->DeleteServiceBinding(request)); } +StatusOr +NetworkServicesTracingConnection::DeleteServiceBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteServiceBindingRequest const& + request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::DeleteServiceBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteServiceBinding( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::DeleteServiceBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::DeleteServiceBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteServiceBinding( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NetworkServicesTracingConnection::ListMeshes( google::cloud::networkservices::v1::ListMeshesRequest request) { @@ -401,6 +886,30 @@ NetworkServicesTracingConnection::CreateMesh( return internal::EndSpan(std::move(span), child_->CreateMesh(request)); } +StatusOr +NetworkServicesTracingConnection::CreateMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateMeshRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::CreateMesh"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateMesh(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::CreateMesh( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::CreateMesh"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateMesh(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkServicesTracingConnection::UpdateMesh( google::cloud::networkservices::v1::UpdateMeshRequest const& request) { @@ -410,6 +919,30 @@ NetworkServicesTracingConnection::UpdateMesh( return internal::EndSpan(std::move(span), child_->UpdateMesh(request)); } +StatusOr +NetworkServicesTracingConnection::UpdateMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateMeshRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::UpdateMesh"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateMesh(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::UpdateMesh( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::UpdateMesh"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateMesh(google::cloud::ExperimentalTag{}, operation)); +} + future> NetworkServicesTracingConnection::DeleteMesh( google::cloud::networkservices::v1::DeleteMeshRequest const& request) { @@ -419,6 +952,30 @@ NetworkServicesTracingConnection::DeleteMesh( return internal::EndSpan(std::move(span), child_->DeleteMesh(request)); } +StatusOr +NetworkServicesTracingConnection::DeleteMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteMeshRequest const& request) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::DeleteMesh"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteMesh(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NetworkServicesTracingConnection::DeleteMesh( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "networkservices_v1::NetworkServicesConnection::DeleteMesh"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteMesh(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/networkservices/v1/internal/network_services_tracing_connection.h b/google/cloud/networkservices/v1/internal/network_services_tracing_connection.h index bddcbd242a7b1..d443948794a12 100644 --- a/google/cloud/networkservices/v1/internal/network_services_tracing_connection.h +++ b/google/cloud/networkservices/v1/internal/network_services_tracing_connection.h @@ -55,16 +55,46 @@ class NetworkServicesTracingConnection google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& request) override; + StatusOr CreateEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& + request) override; + + future> + CreateEndpointPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateEndpointPolicy( google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& request) override; + StatusOr UpdateEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& + request) override; + + future> + UpdateEndpointPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEndpointPolicy( google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& request) override; + StatusOr DeleteEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& + request) override; + + future> + DeleteEndpointPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListGateways( google::cloud::networkservices::v1::ListGatewaysRequest request) override; @@ -76,14 +106,41 @@ class NetworkServicesTracingConnection google::cloud::networkservices::v1::CreateGatewayRequest const& request) override; + StatusOr CreateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateGatewayRequest const& request) + override; + + future> CreateGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateGateway( google::cloud::networkservices::v1::UpdateGatewayRequest const& request) override; + StatusOr UpdateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateGatewayRequest const& request) + override; + + future> UpdateGateway( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteGateway(google::cloud::networkservices::v1::DeleteGatewayRequest const& request) override; + StatusOr DeleteGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteGatewayRequest const& request) + override; + + future> + DeleteGateway(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListGrpcRoutes( google::cloud::networkservices::v1::ListGrpcRoutesRequest request) override; @@ -97,16 +154,43 @@ class NetworkServicesTracingConnection google::cloud::networkservices::v1::CreateGrpcRouteRequest const& request) override; + StatusOr CreateGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateGrpcRouteRequest const& request) + override; + + future> + CreateGrpcRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateGrpcRoute( google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request) override; + StatusOr UpdateGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request) + override; + + future> + UpdateGrpcRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteGrpcRoute( google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request) override; + StatusOr DeleteGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request) + override; + + future> + DeleteGrpcRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListHttpRoutes( google::cloud::networkservices::v1::ListHttpRoutesRequest request) override; @@ -120,16 +204,43 @@ class NetworkServicesTracingConnection google::cloud::networkservices::v1::CreateHttpRouteRequest const& request) override; + StatusOr CreateHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateHttpRouteRequest const& request) + override; + + future> + CreateHttpRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateHttpRoute( google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request) override; + StatusOr UpdateHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request) + override; + + future> + UpdateHttpRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteHttpRoute( google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request) override; + StatusOr DeleteHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request) + override; + + future> + DeleteHttpRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTcpRoutes( google::cloud::networkservices::v1::ListTcpRoutesRequest request) override; @@ -142,15 +253,42 @@ class NetworkServicesTracingConnection google::cloud::networkservices::v1::CreateTcpRouteRequest const& request) override; + StatusOr CreateTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateTcpRouteRequest const& request) + override; + + future> CreateTcpRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTcpRoute( google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request) override; + StatusOr UpdateTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request) + override; + + future> UpdateTcpRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTcpRoute( google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request) override; + StatusOr DeleteTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request) + override; + + future> + DeleteTcpRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTlsRoutes( google::cloud::networkservices::v1::ListTlsRoutesRequest request) override; @@ -163,15 +301,42 @@ class NetworkServicesTracingConnection google::cloud::networkservices::v1::CreateTlsRouteRequest const& request) override; + StatusOr CreateTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateTlsRouteRequest const& request) + override; + + future> CreateTlsRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTlsRoute( google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request) override; + StatusOr UpdateTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request) + override; + + future> UpdateTlsRoute( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTlsRoute( google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request) override; + StatusOr DeleteTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request) + override; + + future> + DeleteTlsRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListServiceBindings( google::cloud::networkservices::v1::ListServiceBindingsRequest request) @@ -187,11 +352,31 @@ class NetworkServicesTracingConnection google::cloud::networkservices::v1::CreateServiceBindingRequest const& request) override; + StatusOr CreateServiceBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateServiceBindingRequest const& + request) override; + + future> + CreateServiceBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteServiceBinding( google::cloud::networkservices::v1::DeleteServiceBindingRequest const& request) override; + StatusOr DeleteServiceBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteServiceBindingRequest const& + request) override; + + future> + DeleteServiceBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListMeshes( google::cloud::networkservices::v1::ListMeshesRequest request) override; @@ -203,14 +388,41 @@ class NetworkServicesTracingConnection google::cloud::networkservices::v1::CreateMeshRequest const& request) override; + StatusOr CreateMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateMeshRequest const& request) + override; + + future> CreateMesh( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateMesh( google::cloud::networkservices::v1::UpdateMeshRequest const& request) override; + StatusOr UpdateMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateMeshRequest const& request) + override; + + future> UpdateMesh( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteMesh(google::cloud::networkservices::v1::DeleteMeshRequest const& request) override; + StatusOr DeleteMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteMeshRequest const& request) + override; + + future> + DeleteMesh(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/networkservices/v1/mocks/mock_dep_connection.h b/google/cloud/networkservices/v1/mocks/mock_dep_connection.h index 17997eb1b374a..3db9a09ffd03e 100644 --- a/google/cloud/networkservices/v1/mocks/mock_dep_connection.h +++ b/google/cloud/networkservices/v1/mocks/mock_dep_connection.h @@ -68,6 +68,20 @@ class MockDepServiceConnection CreateLbTrafficExtensionRequest const& request), (override)); + MOCK_METHOD(StatusOr, + CreateLbTrafficExtension, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1:: + CreateLbTrafficExtensionRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateLbTrafficExtension, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateLbTrafficExtension, @@ -75,6 +89,20 @@ class MockDepServiceConnection UpdateLbTrafficExtensionRequest const& request), (override)); + MOCK_METHOD(StatusOr, + UpdateLbTrafficExtension, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1:: + UpdateLbTrafficExtensionRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UpdateLbTrafficExtension, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteLbTrafficExtension, @@ -82,6 +110,20 @@ class MockDepServiceConnection DeleteLbTrafficExtensionRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteLbTrafficExtension, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1:: + DeleteLbTrafficExtensionRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteLbTrafficExtension, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListLbRouteExtensions, @@ -103,6 +145,20 @@ class MockDepServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateLbRouteExtension, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateLbRouteExtension, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateLbRouteExtension, @@ -110,12 +166,40 @@ class MockDepServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateLbRouteExtension, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateLbRouteExtension, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteLbRouteExtension, (google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteLbRouteExtension, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteLbRouteExtension, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/networkservices/v1/mocks/mock_network_services_connection.h b/google/cloud/networkservices/v1/mocks/mock_network_services_connection.h index 6ff42d8846c61..2c7cf0fccd7fe 100644 --- a/google/cloud/networkservices/v1/mocks/mock_network_services_connection.h +++ b/google/cloud/networkservices/v1/mocks/mock_network_services_connection.h @@ -67,6 +67,20 @@ class MockNetworkServicesConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateEndpointPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateEndpointPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateEndpointPolicy, @@ -74,6 +88,20 @@ class MockNetworkServicesConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateEndpointPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateEndpointPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteEndpointPolicy, @@ -81,6 +109,20 @@ class MockNetworkServicesConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteEndpointPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteEndpointPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListGateways, (google::cloud::networkservices::v1::ListGatewaysRequest request), @@ -97,18 +139,55 @@ class MockNetworkServicesConnection (google::cloud::networkservices::v1::CreateGatewayRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateGateway, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateGatewayRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateGateway, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateGateway, (google::cloud::networkservices::v1::UpdateGatewayRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateGateway, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateGatewayRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateGateway, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteGateway, (google::cloud::networkservices::v1::DeleteGatewayRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteGateway, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteGatewayRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteGateway, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListGrpcRoutes, @@ -126,12 +205,36 @@ class MockNetworkServicesConnection request), (override)); + MOCK_METHOD(StatusOr, CreateGrpcRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateGrpcRouteRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateGrpcRoute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateGrpcRoute, (google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateGrpcRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateGrpcRoute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteGrpcRoute, @@ -139,6 +242,19 @@ class MockNetworkServicesConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteGrpcRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteGrpcRoute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListHttpRoutes, @@ -156,12 +272,36 @@ class MockNetworkServicesConnection request), (override)); + MOCK_METHOD(StatusOr, CreateHttpRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateHttpRouteRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateHttpRoute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateHttpRoute, (google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateHttpRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateHttpRouteRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateHttpRoute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteHttpRoute, @@ -169,6 +309,19 @@ class MockNetworkServicesConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteHttpRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteHttpRouteRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteHttpRoute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListTcpRoutes, @@ -186,12 +339,36 @@ class MockNetworkServicesConnection request), (override)); + MOCK_METHOD(StatusOr, CreateTcpRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateTcpRouteRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateTcpRoute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateTcpRoute, (google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateTcpRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateTcpRouteRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateTcpRoute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteTcpRoute, @@ -199,6 +376,19 @@ class MockNetworkServicesConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteTcpRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteTcpRouteRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteTcpRoute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListTlsRoutes, @@ -216,12 +406,36 @@ class MockNetworkServicesConnection request), (override)); + MOCK_METHOD(StatusOr, CreateTlsRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateTlsRouteRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateTlsRoute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateTlsRoute, (google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateTlsRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateTlsRouteRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateTlsRoute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteTlsRoute, @@ -229,6 +443,19 @@ class MockNetworkServicesConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteTlsRoute, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteTlsRouteRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteTlsRoute, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListServiceBindings, @@ -249,6 +476,20 @@ class MockNetworkServicesConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateServiceBinding, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateServiceBindingRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateServiceBinding, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteServiceBinding, @@ -256,6 +497,20 @@ class MockNetworkServicesConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteServiceBinding, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteServiceBindingRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteServiceBinding, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListMeshes, (google::cloud::networkservices::v1::ListMeshesRequest request), @@ -271,16 +526,53 @@ class MockNetworkServicesConnection (google::cloud::networkservices::v1::CreateMeshRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateMesh, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateMeshRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateMesh, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateMesh, (google::cloud::networkservices::v1::UpdateMeshRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateMesh, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateMeshRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateMesh, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteMesh, (google::cloud::networkservices::v1::DeleteMeshRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteMesh, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteMeshRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteMesh, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/networkservices/v1/network_services_connection.cc b/google/cloud/networkservices/v1/network_services_connection.cc index b14d1bc1cd67d..5cafe8af50cff 100644 --- a/google/cloud/networkservices/v1/network_services_connection.cc +++ b/google/cloud/networkservices/v1/network_services_connection.cc @@ -60,9 +60,41 @@ NetworkServicesConnection::CreateEndpointPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkServicesConnection::CreateEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateEndpointPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +NetworkServicesConnection::CreateEndpointPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::UpdateEndpointPolicy( + google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr NetworkServicesConnection::UpdateEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::UpdateEndpointPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -76,6 +108,22 @@ NetworkServicesConnection::DeleteEndpointPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkServicesConnection::DeleteEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::DeleteEndpointPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetworkServicesConnection::ListGateways( google::cloud::networkservices::v1:: @@ -98,9 +146,41 @@ NetworkServicesConnection::CreateGateway( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkServicesConnection::CreateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateGatewayRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +NetworkServicesConnection::CreateGateway( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::UpdateGateway( + google::cloud::networkservices::v1::UpdateGatewayRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr NetworkServicesConnection::UpdateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::networkservices::v1::UpdateGatewayRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::UpdateGateway( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -114,6 +194,22 @@ NetworkServicesConnection::DeleteGateway( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkServicesConnection::DeleteGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteGatewayRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::DeleteGateway( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetworkServicesConnection::ListGrpcRoutes( google::cloud::networkservices::v1:: @@ -136,9 +232,41 @@ NetworkServicesConnection::CreateGrpcRoute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkServicesConnection::CreateGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateGrpcRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +NetworkServicesConnection::CreateGrpcRoute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::UpdateGrpcRoute( + google::cloud::networkservices::v1::UpdateGrpcRouteRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr NetworkServicesConnection::UpdateGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::networkservices::v1::UpdateGrpcRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::UpdateGrpcRoute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -152,6 +280,22 @@ NetworkServicesConnection::DeleteGrpcRoute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkServicesConnection::DeleteGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteGrpcRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::DeleteGrpcRoute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetworkServicesConnection::ListHttpRoutes( google::cloud::networkservices::v1:: @@ -174,9 +318,41 @@ NetworkServicesConnection::CreateHttpRoute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkServicesConnection::CreateHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateHttpRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +NetworkServicesConnection::CreateHttpRoute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::UpdateHttpRoute( + google::cloud::networkservices::v1::UpdateHttpRouteRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr NetworkServicesConnection::UpdateHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::networkservices::v1::UpdateHttpRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::UpdateHttpRoute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -190,6 +366,22 @@ NetworkServicesConnection::DeleteHttpRoute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkServicesConnection::DeleteHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteHttpRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::DeleteHttpRoute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetworkServicesConnection::ListTcpRoutes( google::cloud::networkservices::v1:: @@ -212,6 +404,22 @@ NetworkServicesConnection::CreateTcpRoute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkServicesConnection::CreateTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateTcpRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::CreateTcpRoute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkServicesConnection::UpdateTcpRoute( google::cloud::networkservices::v1::UpdateTcpRouteRequest const&) { @@ -220,6 +428,22 @@ NetworkServicesConnection::UpdateTcpRoute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkServicesConnection::UpdateTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateTcpRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::UpdateTcpRoute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkServicesConnection::DeleteTcpRoute( google::cloud::networkservices::v1::DeleteTcpRouteRequest const&) { @@ -228,6 +452,22 @@ NetworkServicesConnection::DeleteTcpRoute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkServicesConnection::DeleteTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteTcpRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::DeleteTcpRoute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetworkServicesConnection::ListTlsRoutes( google::cloud::networkservices::v1:: @@ -250,6 +490,22 @@ NetworkServicesConnection::CreateTlsRoute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkServicesConnection::CreateTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateTlsRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::CreateTlsRoute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkServicesConnection::UpdateTlsRoute( google::cloud::networkservices::v1::UpdateTlsRouteRequest const&) { @@ -258,6 +514,22 @@ NetworkServicesConnection::UpdateTlsRoute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkServicesConnection::UpdateTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateTlsRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::UpdateTlsRoute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkServicesConnection::DeleteTlsRoute( google::cloud::networkservices::v1::DeleteTlsRouteRequest const&) { @@ -266,6 +538,22 @@ NetworkServicesConnection::DeleteTlsRoute( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkServicesConnection::DeleteTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteTlsRouteRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::DeleteTlsRoute( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetworkServicesConnection::ListServiceBindings( google::cloud::networkservices::v1:: @@ -288,6 +576,22 @@ NetworkServicesConnection::CreateServiceBinding( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkServicesConnection::CreateServiceBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateServiceBindingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::CreateServiceBinding( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkServicesConnection::DeleteServiceBinding( google::cloud::networkservices::v1::DeleteServiceBindingRequest const&) { @@ -296,6 +600,22 @@ NetworkServicesConnection::DeleteServiceBinding( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NetworkServicesConnection::DeleteServiceBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteServiceBindingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::DeleteServiceBinding( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NetworkServicesConnection::ListMeshes( google::cloud::networkservices::v1:: @@ -318,6 +638,21 @@ NetworkServicesConnection::CreateMesh( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetworkServicesConnection::CreateMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateMeshRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::CreateMesh(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkServicesConnection::UpdateMesh( google::cloud::networkservices::v1::UpdateMeshRequest const&) { @@ -326,6 +661,21 @@ NetworkServicesConnection::UpdateMesh( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetworkServicesConnection::UpdateMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateMeshRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::UpdateMesh(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NetworkServicesConnection::DeleteMesh( google::cloud::networkservices::v1::DeleteMeshRequest const&) { @@ -334,6 +684,21 @@ NetworkServicesConnection::DeleteMesh( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr NetworkServicesConnection::DeleteMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteMeshRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NetworkServicesConnection::DeleteMesh(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeNetworkServicesConnection( Options options) { internal::CheckExpectedOptions CreateEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& + request); + + virtual future> + CreateEndpointPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateEndpointPolicy( google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& request); + virtual StatusOr UpdateEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& + request); + + virtual future> + UpdateEndpointPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteEndpointPolicy( google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& request); + virtual StatusOr DeleteEndpointPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& + request); + + virtual future< + StatusOr> + DeleteEndpointPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListGateways( google::cloud::networkservices::v1::ListGatewaysRequest request); @@ -221,15 +251,40 @@ class NetworkServicesConnection { CreateGateway( google::cloud::networkservices::v1::CreateGatewayRequest const& request); + virtual StatusOr CreateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateGatewayRequest const& request); + + virtual future> + CreateGateway(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateGateway( google::cloud::networkservices::v1::UpdateGatewayRequest const& request); + virtual StatusOr UpdateGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateGatewayRequest const& request); + + virtual future> + UpdateGateway(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteGateway( google::cloud::networkservices::v1::DeleteGatewayRequest const& request); + virtual StatusOr DeleteGateway( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteGatewayRequest const& request); + + virtual future< + StatusOr> + DeleteGateway(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListGrpcRoutes( google::cloud::networkservices::v1::ListGrpcRoutesRequest request); @@ -242,17 +297,45 @@ class NetworkServicesConnection { google::cloud::networkservices::v1::CreateGrpcRouteRequest const& request); + virtual StatusOr CreateGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateGrpcRouteRequest const& + request); + + virtual future> + CreateGrpcRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateGrpcRoute( google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request); + virtual StatusOr UpdateGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& + request); + + virtual future> + UpdateGrpcRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteGrpcRoute( google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request); + virtual StatusOr DeleteGrpcRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& + request); + + virtual future< + StatusOr> + DeleteGrpcRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListHttpRoutes( google::cloud::networkservices::v1::ListHttpRoutesRequest request); @@ -265,17 +348,45 @@ class NetworkServicesConnection { google::cloud::networkservices::v1::CreateHttpRouteRequest const& request); + virtual StatusOr CreateHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateHttpRouteRequest const& + request); + + virtual future> + CreateHttpRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateHttpRoute( google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request); + virtual StatusOr UpdateHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateHttpRouteRequest const& + request); + + virtual future> + UpdateHttpRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteHttpRoute( google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request); + virtual StatusOr DeleteHttpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteHttpRouteRequest const& + request); + + virtual future< + StatusOr> + DeleteHttpRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListTcpRoutes( google::cloud::networkservices::v1::ListTcpRoutesRequest request); @@ -287,15 +398,40 @@ class NetworkServicesConnection { CreateTcpRoute( google::cloud::networkservices::v1::CreateTcpRouteRequest const& request); + virtual StatusOr CreateTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateTcpRouteRequest const& request); + + virtual future> + CreateTcpRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateTcpRoute( google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request); + virtual StatusOr UpdateTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request); + + virtual future> + UpdateTcpRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteTcpRoute( google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request); + virtual StatusOr DeleteTcpRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request); + + virtual future< + StatusOr> + DeleteTcpRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListTlsRoutes( google::cloud::networkservices::v1::ListTlsRoutesRequest request); @@ -307,15 +443,40 @@ class NetworkServicesConnection { CreateTlsRoute( google::cloud::networkservices::v1::CreateTlsRouteRequest const& request); + virtual StatusOr CreateTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateTlsRouteRequest const& request); + + virtual future> + CreateTlsRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateTlsRoute( google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request); + virtual StatusOr UpdateTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request); + + virtual future> + UpdateTlsRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteTlsRoute( google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request); + virtual StatusOr DeleteTlsRoute( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request); + + virtual future< + StatusOr> + DeleteTlsRoute(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListServiceBindings( google::cloud::networkservices::v1::ListServiceBindingsRequest request); @@ -330,12 +491,31 @@ class NetworkServicesConnection { google::cloud::networkservices::v1::CreateServiceBindingRequest const& request); + virtual StatusOr CreateServiceBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateServiceBindingRequest const& + request); + + virtual future> + CreateServiceBinding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteServiceBinding( google::cloud::networkservices::v1::DeleteServiceBindingRequest const& request); + virtual StatusOr DeleteServiceBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteServiceBindingRequest const& + request); + + virtual future< + StatusOr> + DeleteServiceBinding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListMeshes( google::cloud::networkservices::v1::ListMeshesRequest request); @@ -345,13 +525,38 @@ class NetworkServicesConnection { virtual future> CreateMesh( google::cloud::networkservices::v1::CreateMeshRequest const& request); + virtual StatusOr CreateMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::CreateMeshRequest const& request); + + virtual future> CreateMesh( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateMesh( google::cloud::networkservices::v1::UpdateMeshRequest const& request); + virtual StatusOr UpdateMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::UpdateMeshRequest const& request); + + virtual future> UpdateMesh( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteMesh( google::cloud::networkservices::v1::DeleteMeshRequest const& request); + + virtual StatusOr DeleteMesh( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::networkservices::v1::DeleteMeshRequest const& request); + + virtual future< + StatusOr> + DeleteMesh(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.cc b/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.cc index 709d81d933496..0247310d414f4 100644 --- a/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.cc +++ b/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.cc @@ -155,6 +155,59 @@ ManagedNotebookServiceConnectionImpl::CreateRuntime( polling_policy(*current), __func__); } +StatusOr +ManagedNotebookServiceConnectionImpl::CreateRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateRuntimeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateRuntime(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::CreateRuntimeRequest const& request) { + return stub_->CreateRuntime(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedNotebookServiceConnectionImpl::CreateRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateRuntime", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Runtime>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Runtime>, + polling_policy(*current), __func__); +} + future> ManagedNotebookServiceConnectionImpl::UpdateRuntime( google::cloud::notebooks::v1::UpdateRuntimeRequest const& request) { @@ -194,6 +247,59 @@ ManagedNotebookServiceConnectionImpl::UpdateRuntime( polling_policy(*current), __func__); } +StatusOr +ManagedNotebookServiceConnectionImpl::UpdateRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateRuntimeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateRuntime(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::UpdateRuntimeRequest const& request) { + return stub_->UpdateRuntime(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedNotebookServiceConnectionImpl::UpdateRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateRuntime", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Runtime>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Runtime>, + polling_policy(*current), __func__); +} + future> ManagedNotebookServiceConnectionImpl::DeleteRuntime( google::cloud::notebooks::v1::DeleteRuntimeRequest const& request) { @@ -233,6 +339,60 @@ ManagedNotebookServiceConnectionImpl::DeleteRuntime( polling_policy(*current), __func__); } +StatusOr +ManagedNotebookServiceConnectionImpl::DeleteRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteRuntimeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteRuntime(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::DeleteRuntimeRequest const& request) { + return stub_->DeleteRuntime(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedNotebookServiceConnectionImpl::DeleteRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteRuntime", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::notebooks::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> ManagedNotebookServiceConnectionImpl::StartRuntime( google::cloud::notebooks::v1::StartRuntimeRequest const& request) { @@ -272,6 +432,58 @@ ManagedNotebookServiceConnectionImpl::StartRuntime( polling_policy(*current), __func__); } +StatusOr +ManagedNotebookServiceConnectionImpl::StartRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StartRuntimeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartRuntime(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::StartRuntimeRequest const& request) { + return stub_->StartRuntime(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedNotebookServiceConnectionImpl::StartRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to StartRuntime", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Runtime>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Runtime>, + polling_policy(*current), __func__); +} + future> ManagedNotebookServiceConnectionImpl::StopRuntime( google::cloud::notebooks::v1::StopRuntimeRequest const& request) { @@ -311,6 +523,58 @@ ManagedNotebookServiceConnectionImpl::StopRuntime( polling_policy(*current), __func__); } +StatusOr +ManagedNotebookServiceConnectionImpl::StopRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StopRuntimeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StopRuntime(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::StopRuntimeRequest const& request) { + return stub_->StopRuntime(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedNotebookServiceConnectionImpl::StopRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to StopRuntime", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Runtime>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Runtime>, + polling_policy(*current), __func__); +} + future> ManagedNotebookServiceConnectionImpl::SwitchRuntime( google::cloud::notebooks::v1::SwitchRuntimeRequest const& request) { @@ -350,6 +614,59 @@ ManagedNotebookServiceConnectionImpl::SwitchRuntime( polling_policy(*current), __func__); } +StatusOr +ManagedNotebookServiceConnectionImpl::SwitchRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SwitchRuntimeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SwitchRuntime(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::SwitchRuntimeRequest const& request) { + return stub_->SwitchRuntime(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedNotebookServiceConnectionImpl::SwitchRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to SwitchRuntime", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Runtime>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Runtime>, + polling_policy(*current), __func__); +} + future> ManagedNotebookServiceConnectionImpl::ResetRuntime( google::cloud::notebooks::v1::ResetRuntimeRequest const& request) { @@ -389,6 +706,58 @@ ManagedNotebookServiceConnectionImpl::ResetRuntime( polling_policy(*current), __func__); } +StatusOr +ManagedNotebookServiceConnectionImpl::ResetRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ResetRuntimeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ResetRuntime(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::ResetRuntimeRequest const& request) { + return stub_->ResetRuntime(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedNotebookServiceConnectionImpl::ResetRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ResetRuntime", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Runtime>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Runtime>, + polling_policy(*current), __func__); +} + future> ManagedNotebookServiceConnectionImpl::UpgradeRuntime( google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request) { @@ -428,6 +797,59 @@ ManagedNotebookServiceConnectionImpl::UpgradeRuntime( polling_policy(*current), __func__); } +StatusOr +ManagedNotebookServiceConnectionImpl::UpgradeRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpgradeRuntime(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request) { + return stub_->UpgradeRuntime(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedNotebookServiceConnectionImpl::UpgradeRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpgradeRuntime", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Runtime>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Runtime>, + polling_policy(*current), __func__); +} + future> ManagedNotebookServiceConnectionImpl::ReportRuntimeEvent( google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request) { @@ -468,6 +890,59 @@ ManagedNotebookServiceConnectionImpl::ReportRuntimeEvent( polling_policy(*current), __func__); } +StatusOr +ManagedNotebookServiceConnectionImpl::ReportRuntimeEvent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ReportRuntimeEvent(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::ReportRuntimeEventRequest const& + request) { + return stub_->ReportRuntimeEvent(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedNotebookServiceConnectionImpl::ReportRuntimeEvent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ReportRuntimeEvent", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Runtime>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Runtime>, + polling_policy(*current), __func__); +} + StatusOr ManagedNotebookServiceConnectionImpl::RefreshRuntimeTokenInternal( google::cloud::notebooks::v1::RefreshRuntimeTokenInternalRequest const& @@ -523,6 +998,59 @@ ManagedNotebookServiceConnectionImpl::DiagnoseRuntime( polling_policy(*current), __func__); } +StatusOr +ManagedNotebookServiceConnectionImpl::DiagnoseRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DiagnoseRuntime(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request) { + return stub_->DiagnoseRuntime(context, options, request); + }, + *current, request, __func__); +} + +future> +ManagedNotebookServiceConnectionImpl::DiagnoseRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DiagnoseRuntime", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Runtime>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Runtime>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace notebooks_v1_internal } // namespace cloud diff --git a/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.h b/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.h index c4d6a99be09d6..0458e014ceb3d 100644 --- a/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.h +++ b/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.h @@ -62,37 +62,117 @@ class ManagedNotebookServiceConnectionImpl google::cloud::notebooks::v1::CreateRuntimeRequest const& request) override; + StatusOr CreateRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateRuntimeRequest const& request) + override; + + future> CreateRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateRuntime( google::cloud::notebooks::v1::UpdateRuntimeRequest const& request) override; + StatusOr UpdateRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateRuntimeRequest const& request) + override; + + future> UpdateRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteRuntime(google::cloud::notebooks::v1::DeleteRuntimeRequest const& request) override; + StatusOr DeleteRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteRuntimeRequest const& request) + override; + + future> + DeleteRuntime(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartRuntime( google::cloud::notebooks::v1::StartRuntimeRequest const& request) override; + StatusOr StartRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StartRuntimeRequest const& request) + override; + + future> StartRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopRuntime( google::cloud::notebooks::v1::StopRuntimeRequest const& request) override; + StatusOr StopRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StopRuntimeRequest const& request) override; + + future> StopRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> SwitchRuntime( google::cloud::notebooks::v1::SwitchRuntimeRequest const& request) override; + StatusOr SwitchRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SwitchRuntimeRequest const& request) + override; + + future> SwitchRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResetRuntime( google::cloud::notebooks::v1::ResetRuntimeRequest const& request) override; + StatusOr ResetRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ResetRuntimeRequest const& request) + override; + + future> ResetRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpgradeRuntime( google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request) override; + StatusOr UpgradeRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request) + override; + + future> UpgradeRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReportRuntimeEvent( google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request) override; + StatusOr ReportRuntimeEvent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request) + override; + + future> ReportRuntimeEvent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr RefreshRuntimeTokenInternal( google::cloud::notebooks::v1::RefreshRuntimeTokenInternalRequest const& @@ -102,6 +182,15 @@ class ManagedNotebookServiceConnectionImpl google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request) override; + StatusOr DiagnoseRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request) + override; + + future> DiagnoseRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.cc b/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.cc index dc8ca9a407d30..d9a572cbedbb0 100644 --- a/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.cc +++ b/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.cc @@ -63,6 +63,30 @@ ManagedNotebookServiceTracingConnection::CreateRuntime( return internal::EndSpan(std::move(span), child_->CreateRuntime(request)); } +StatusOr +ManagedNotebookServiceTracingConnection::CreateRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateRuntimeRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::CreateRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateRuntime(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedNotebookServiceTracingConnection::CreateRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::CreateRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateRuntime(google::cloud::ExperimentalTag{}, operation)); +} + future> ManagedNotebookServiceTracingConnection::UpdateRuntime( google::cloud::notebooks::v1::UpdateRuntimeRequest const& request) { @@ -72,6 +96,30 @@ ManagedNotebookServiceTracingConnection::UpdateRuntime( return internal::EndSpan(std::move(span), child_->UpdateRuntime(request)); } +StatusOr +ManagedNotebookServiceTracingConnection::UpdateRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateRuntimeRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::UpdateRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateRuntime(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedNotebookServiceTracingConnection::UpdateRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::UpdateRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateRuntime(google::cloud::ExperimentalTag{}, operation)); +} + future> ManagedNotebookServiceTracingConnection::DeleteRuntime( google::cloud::notebooks::v1::DeleteRuntimeRequest const& request) { @@ -81,6 +129,30 @@ ManagedNotebookServiceTracingConnection::DeleteRuntime( return internal::EndSpan(std::move(span), child_->DeleteRuntime(request)); } +StatusOr +ManagedNotebookServiceTracingConnection::DeleteRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteRuntimeRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::DeleteRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteRuntime(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedNotebookServiceTracingConnection::DeleteRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::DeleteRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteRuntime(google::cloud::ExperimentalTag{}, operation)); +} + future> ManagedNotebookServiceTracingConnection::StartRuntime( google::cloud::notebooks::v1::StartRuntimeRequest const& request) { @@ -90,6 +162,30 @@ ManagedNotebookServiceTracingConnection::StartRuntime( return internal::EndSpan(std::move(span), child_->StartRuntime(request)); } +StatusOr +ManagedNotebookServiceTracingConnection::StartRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StartRuntimeRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::StartRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StartRuntime(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedNotebookServiceTracingConnection::StartRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::StartRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StartRuntime(google::cloud::ExperimentalTag{}, operation)); +} + future> ManagedNotebookServiceTracingConnection::StopRuntime( google::cloud::notebooks::v1::StopRuntimeRequest const& request) { @@ -99,6 +195,30 @@ ManagedNotebookServiceTracingConnection::StopRuntime( return internal::EndSpan(std::move(span), child_->StopRuntime(request)); } +StatusOr +ManagedNotebookServiceTracingConnection::StopRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StopRuntimeRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::StopRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StopRuntime(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedNotebookServiceTracingConnection::StopRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::StopRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StopRuntime(google::cloud::ExperimentalTag{}, operation)); +} + future> ManagedNotebookServiceTracingConnection::SwitchRuntime( google::cloud::notebooks::v1::SwitchRuntimeRequest const& request) { @@ -108,6 +228,30 @@ ManagedNotebookServiceTracingConnection::SwitchRuntime( return internal::EndSpan(std::move(span), child_->SwitchRuntime(request)); } +StatusOr +ManagedNotebookServiceTracingConnection::SwitchRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SwitchRuntimeRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::SwitchRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SwitchRuntime(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedNotebookServiceTracingConnection::SwitchRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::SwitchRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SwitchRuntime(google::cloud::ExperimentalTag{}, operation)); +} + future> ManagedNotebookServiceTracingConnection::ResetRuntime( google::cloud::notebooks::v1::ResetRuntimeRequest const& request) { @@ -117,6 +261,30 @@ ManagedNotebookServiceTracingConnection::ResetRuntime( return internal::EndSpan(std::move(span), child_->ResetRuntime(request)); } +StatusOr +ManagedNotebookServiceTracingConnection::ResetRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ResetRuntimeRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::ResetRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ResetRuntime(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedNotebookServiceTracingConnection::ResetRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::ResetRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ResetRuntime(google::cloud::ExperimentalTag{}, operation)); +} + future> ManagedNotebookServiceTracingConnection::UpgradeRuntime( google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request) { @@ -126,6 +294,30 @@ ManagedNotebookServiceTracingConnection::UpgradeRuntime( return internal::EndSpan(std::move(span), child_->UpgradeRuntime(request)); } +StatusOr +ManagedNotebookServiceTracingConnection::UpgradeRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::UpgradeRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpgradeRuntime(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedNotebookServiceTracingConnection::UpgradeRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::UpgradeRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpgradeRuntime(google::cloud::ExperimentalTag{}, operation)); +} + future> ManagedNotebookServiceTracingConnection::ReportRuntimeEvent( google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request) { @@ -136,6 +328,30 @@ ManagedNotebookServiceTracingConnection::ReportRuntimeEvent( child_->ReportRuntimeEvent(request)); } +StatusOr +ManagedNotebookServiceTracingConnection::ReportRuntimeEvent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::ReportRuntimeEvent"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ReportRuntimeEvent(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedNotebookServiceTracingConnection::ReportRuntimeEvent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::ReportRuntimeEvent"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ReportRuntimeEvent(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ManagedNotebookServiceTracingConnection::RefreshRuntimeTokenInternal( google::cloud::notebooks::v1::RefreshRuntimeTokenInternalRequest const& @@ -156,6 +372,30 @@ ManagedNotebookServiceTracingConnection::DiagnoseRuntime( return internal::EndSpan(std::move(span), child_->DiagnoseRuntime(request)); } +StatusOr +ManagedNotebookServiceTracingConnection::DiagnoseRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::DiagnoseRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DiagnoseRuntime(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ManagedNotebookServiceTracingConnection::DiagnoseRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::ManagedNotebookServiceConnection::DiagnoseRuntime"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DiagnoseRuntime(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.h b/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.h index 6ba9686c58a5d..a81746355bafe 100644 --- a/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.h +++ b/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.h @@ -50,37 +50,117 @@ class ManagedNotebookServiceTracingConnection google::cloud::notebooks::v1::CreateRuntimeRequest const& request) override; + StatusOr CreateRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateRuntimeRequest const& request) + override; + + future> CreateRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateRuntime( google::cloud::notebooks::v1::UpdateRuntimeRequest const& request) override; + StatusOr UpdateRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateRuntimeRequest const& request) + override; + + future> UpdateRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteRuntime(google::cloud::notebooks::v1::DeleteRuntimeRequest const& request) override; + StatusOr DeleteRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteRuntimeRequest const& request) + override; + + future> + DeleteRuntime(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartRuntime( google::cloud::notebooks::v1::StartRuntimeRequest const& request) override; + StatusOr StartRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StartRuntimeRequest const& request) + override; + + future> StartRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopRuntime( google::cloud::notebooks::v1::StopRuntimeRequest const& request) override; + StatusOr StopRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StopRuntimeRequest const& request) override; + + future> StopRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> SwitchRuntime( google::cloud::notebooks::v1::SwitchRuntimeRequest const& request) override; + StatusOr SwitchRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SwitchRuntimeRequest const& request) + override; + + future> SwitchRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResetRuntime( google::cloud::notebooks::v1::ResetRuntimeRequest const& request) override; + StatusOr ResetRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ResetRuntimeRequest const& request) + override; + + future> ResetRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpgradeRuntime( google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request) override; + StatusOr UpgradeRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request) + override; + + future> UpgradeRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReportRuntimeEvent( google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request) override; + StatusOr ReportRuntimeEvent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request) + override; + + future> ReportRuntimeEvent( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr RefreshRuntimeTokenInternal( google::cloud::notebooks::v1::RefreshRuntimeTokenInternalRequest const& @@ -90,6 +170,15 @@ class ManagedNotebookServiceTracingConnection google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request) override; + StatusOr DiagnoseRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request) + override; + + future> DiagnoseRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/notebooks/v1/internal/notebook_connection_impl.cc b/google/cloud/notebooks/v1/internal/notebook_connection_impl.cc index 81a3ebed8f141..42885dec9b8b4 100644 --- a/google/cloud/notebooks/v1/internal/notebook_connection_impl.cc +++ b/google/cloud/notebooks/v1/internal/notebook_connection_impl.cc @@ -153,6 +153,59 @@ NotebookServiceConnectionImpl::CreateInstance( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::CreateInstanceRequest const& request) { + return stub_->CreateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Instance>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::RegisterInstance( google::cloud::notebooks::v1::RegisterInstanceRequest const& request) { @@ -193,6 +246,59 @@ NotebookServiceConnectionImpl::RegisterInstance( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::RegisterInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::RegisterInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RegisterInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::RegisterInstanceRequest const& + request) { + return stub_->RegisterInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::RegisterInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RegisterInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Instance>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::SetInstanceAccelerator( google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& @@ -234,6 +340,60 @@ NotebookServiceConnectionImpl::SetInstanceAccelerator( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::SetInstanceAccelerator( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetInstanceAccelerator(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& + request) { + return stub_->SetInstanceAccelerator(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::SetInstanceAccelerator( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to SetInstanceAccelerator", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Instance>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::SetInstanceMachineType( google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& @@ -275,6 +435,60 @@ NotebookServiceConnectionImpl::SetInstanceMachineType( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::SetInstanceMachineType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetInstanceMachineType(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& + request) { + return stub_->SetInstanceMachineType(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::SetInstanceMachineType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to SetInstanceMachineType", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Instance>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::UpdateInstanceConfig( google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request) { @@ -315,6 +529,59 @@ NotebookServiceConnectionImpl::UpdateInstanceConfig( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::UpdateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateInstanceConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& + request) { + return stub_->UpdateInstanceConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::UpdateInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateInstanceConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Instance>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::UpdateShieldedInstanceConfig( google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& @@ -355,6 +622,60 @@ NotebookServiceConnectionImpl::UpdateShieldedInstanceConfig( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateShieldedInstanceConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1:: + UpdateShieldedInstanceConfigRequest const& request) { + return stub_->UpdateShieldedInstanceConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateShieldedInstanceConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Instance>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::SetInstanceLabels( google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request) { @@ -395,6 +716,59 @@ NotebookServiceConnectionImpl::SetInstanceLabels( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::SetInstanceLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetInstanceLabels(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::SetInstanceLabelsRequest const& + request) { + return stub_->SetInstanceLabels(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::SetInstanceLabels( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to SetInstanceLabels", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Instance>, + polling_policy(*current), __func__); +} + StatusOr NotebookServiceConnectionImpl::UpdateInstanceMetadataItems( google::cloud::notebooks::v1::UpdateInstanceMetadataItemsRequest const& @@ -450,6 +824,60 @@ NotebookServiceConnectionImpl::DeleteInstance( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::DeleteInstanceRequest const& request) { + return stub_->DeleteInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::notebooks::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::StartInstance( google::cloud::notebooks::v1::StartInstanceRequest const& request) { @@ -489,24 +917,222 @@ NotebookServiceConnectionImpl::StartInstance( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StartInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::StartInstanceRequest const& request) { + return stub_->StartInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::StartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to StartInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Instance>, + polling_policy(*current), __func__); +} + +future> +NotebookServiceConnectionImpl::StopInstance( + google::cloud::notebooks::v1::StopInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->StopInstance(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::notebooks::v1::Instance>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::notebooks::v1::StopInstanceRequest const& request) { + return stub->AsyncStopInstance(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Instance>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +NotebookServiceConnectionImpl::StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StopInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StopInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::StopInstanceRequest const& request) { + return stub_->StopInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::StopInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to StopInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Instance>, + polling_policy(*current), __func__); +} + +future> +NotebookServiceConnectionImpl::ResetInstance( + google::cloud::notebooks::v1::ResetInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->ResetInstance(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::notebooks::v1::Instance>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::notebooks::v1::ResetInstanceRequest const& request) { + return stub->AsyncResetInstance(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Instance>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +NotebookServiceConnectionImpl::ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ResetInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ResetInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::ResetInstanceRequest const& request) { + return stub_->ResetInstance(context, options, request); + }, + *current, request, __func__); +} + future> -NotebookServiceConnectionImpl::StopInstance( - google::cloud::notebooks::v1::StopInstanceRequest const& request) { +NotebookServiceConnectionImpl::ResetInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->StopInstance(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ResetInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< google::cloud::notebooks::v1::Instance>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::notebooks::v1::StopInstanceRequest const& request) { - return stub->AsyncStopInstance(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -524,17 +1150,16 @@ NotebookServiceConnectionImpl::StopInstance( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::notebooks::v1::Instance>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } future> -NotebookServiceConnectionImpl::ResetInstance( - google::cloud::notebooks::v1::ResetInstanceRequest const& request) { +NotebookServiceConnectionImpl::ReportInstanceInfo( + google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); auto request_copy = request; auto const idempotent = - idempotency_policy(*current)->ResetInstance(request_copy); + idempotency_policy(*current)->ReportInstanceInfo(request_copy); return google::cloud::internal::AsyncLongRunningOperation< google::cloud::notebooks::v1::Instance>( background_->cq(), current, std::move(request_copy), @@ -542,9 +1167,10 @@ NotebookServiceConnectionImpl::ResetInstance( google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, - google::cloud::notebooks::v1::ResetInstanceRequest const& request) { - return stub->AsyncResetInstance(cq, std::move(context), - std::move(options), request); + google::cloud::notebooks::v1::ReportInstanceInfoRequest const& + request) { + return stub->AsyncReportInstanceInfo(cq, std::move(context), + std::move(options), request); }, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, @@ -567,25 +1193,39 @@ NotebookServiceConnectionImpl::ResetInstance( polling_policy(*current), __func__); } -future> +StatusOr NotebookServiceConnectionImpl::ReportInstanceInfo( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->ReportInstanceInfo(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::notebooks::v1::Instance>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::notebooks::v1::ReportInstanceInfoRequest const& - request) { - return stub->AsyncReportInstanceInfo(cq, std::move(context), - std::move(options), request); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ReportInstanceInfo(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::ReportInstanceInfoRequest const& + request) { + return stub_->ReportInstanceInfo(context, options, request); }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::ReportInstanceInfo( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ReportInstanceInfo", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Instance>( + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -603,7 +1243,6 @@ NotebookServiceConnectionImpl::ReportInstanceInfo( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::notebooks::v1::Instance>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } @@ -676,6 +1315,59 @@ NotebookServiceConnectionImpl::UpgradeInstance( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpgradeInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::UpgradeInstanceRequest const& request) { + return stub_->UpgradeInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::UpgradeInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpgradeInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Instance>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::RollbackInstance( google::cloud::notebooks::v1::RollbackInstanceRequest const& request) { @@ -716,6 +1408,59 @@ NotebookServiceConnectionImpl::RollbackInstance( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::RollbackInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::RollbackInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RollbackInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::RollbackInstanceRequest const& + request) { + return stub_->RollbackInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::RollbackInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RollbackInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Instance>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::DiagnoseInstance( google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request) { @@ -756,6 +1501,59 @@ NotebookServiceConnectionImpl::DiagnoseInstance( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::DiagnoseInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DiagnoseInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::DiagnoseInstanceRequest const& + request) { + return stub_->DiagnoseInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::DiagnoseInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DiagnoseInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Instance>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::UpgradeInstanceInternal( google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& @@ -797,6 +1595,60 @@ NotebookServiceConnectionImpl::UpgradeInstanceInternal( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::UpgradeInstanceInternal( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpgradeInstanceInternal(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& + request) { + return stub_->UpgradeInstanceInternal(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::UpgradeInstanceInternal( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpgradeInstanceInternal", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Instance>, + polling_policy(*current), __func__); +} + StreamRange NotebookServiceConnectionImpl::ListEnvironments( google::cloud::notebooks::v1::ListEnvironmentsRequest request) { @@ -831,40 +1683,95 @@ NotebookServiceConnectionImpl::ListEnvironments( }); } -StatusOr -NotebookServiceConnectionImpl::GetEnvironment( - google::cloud::notebooks::v1::GetEnvironmentRequest const& request) { +StatusOr +NotebookServiceConnectionImpl::GetEnvironment( + google::cloud::notebooks::v1::GetEnvironmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->GetEnvironment(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::GetEnvironmentRequest const& request) { + return stub_->GetEnvironment(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::CreateEnvironment( + google::cloud::notebooks::v1::CreateEnvironmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->CreateEnvironment(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::notebooks::v1::Environment>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::notebooks::v1::CreateEnvironmentRequest const& + request) { + return stub->AsyncCreateEnvironment(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Environment>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +NotebookServiceConnectionImpl::CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->GetEnvironment(request), - [this]( - grpc::ClientContext& context, Options const& options, - google::cloud::notebooks::v1::GetEnvironmentRequest const& request) { - return stub_->GetEnvironment(context, options, request); + idempotency_policy(*current)->CreateEnvironment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::CreateEnvironmentRequest const& + request) { + return stub_->CreateEnvironment(context, options, request); }, *current, request, __func__); } future> NotebookServiceConnectionImpl::CreateEnvironment( - google::cloud::notebooks::v1::CreateEnvironmentRequest const& request) { + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->CreateEnvironment(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateEnvironment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< google::cloud::notebooks::v1::Environment>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::notebooks::v1::CreateEnvironmentRequest const& - request) { - return stub->AsyncCreateEnvironment(cq, std::move(context), - std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -882,7 +1789,6 @@ NotebookServiceConnectionImpl::CreateEnvironment( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::notebooks::v1::Environment>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } @@ -926,6 +1832,60 @@ NotebookServiceConnectionImpl::DeleteEnvironment( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteEnvironment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::DeleteEnvironmentRequest const& + request) { + return stub_->DeleteEnvironment(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::DeleteEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteEnvironment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::notebooks::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange NotebookServiceConnectionImpl::ListSchedules( google::cloud::notebooks::v1::ListSchedulesRequest request) { @@ -1013,6 +1973,60 @@ NotebookServiceConnectionImpl::DeleteSchedule( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::DeleteSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteScheduleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSchedule(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::DeleteScheduleRequest const& request) { + return stub_->DeleteSchedule(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::DeleteSchedule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteSchedule", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::notebooks::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::CreateSchedule( google::cloud::notebooks::v1::CreateScheduleRequest const& request) { @@ -1052,6 +2066,59 @@ NotebookServiceConnectionImpl::CreateSchedule( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::CreateSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateScheduleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateSchedule(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::CreateScheduleRequest const& request) { + return stub_->CreateSchedule(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::CreateSchedule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateSchedule", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Schedule>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Schedule>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::TriggerSchedule( google::cloud::notebooks::v1::TriggerScheduleRequest const& request) { @@ -1091,6 +2158,59 @@ NotebookServiceConnectionImpl::TriggerSchedule( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::TriggerSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::TriggerScheduleRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->TriggerSchedule(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::TriggerScheduleRequest const& request) { + return stub_->TriggerSchedule(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::TriggerSchedule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to TriggerSchedule", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Schedule>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Schedule>, + polling_policy(*current), __func__); +} + StreamRange NotebookServiceConnectionImpl::ListExecutions( google::cloud::notebooks::v1::ListExecutionsRequest request) { @@ -1178,6 +2298,60 @@ NotebookServiceConnectionImpl::DeleteExecution( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteExecutionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteExecution(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::DeleteExecutionRequest const& request) { + return stub_->DeleteExecution(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::DeleteExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteExecution", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::notebooks::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::CreateExecution( google::cloud::notebooks::v1::CreateExecutionRequest const& request) { @@ -1217,6 +2391,59 @@ NotebookServiceConnectionImpl::CreateExecution( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::CreateExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateExecutionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateExecution(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v1::CreateExecutionRequest const& request) { + return stub_->CreateExecution(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::CreateExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateExecution", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v1::Execution>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v1::Execution>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace notebooks_v1_internal } // namespace cloud diff --git a/google/cloud/notebooks/v1/internal/notebook_connection_impl.h b/google/cloud/notebooks/v1/internal/notebook_connection_impl.h index 69d2e99a06715..224326c776500 100644 --- a/google/cloud/notebooks/v1/internal/notebook_connection_impl.h +++ b/google/cloud/notebooks/v1/internal/notebook_connection_impl.h @@ -62,33 +62,99 @@ class NotebookServiceConnectionImpl google::cloud::notebooks::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateInstanceRequest const& request) + override; + + future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RegisterInstance( google::cloud::notebooks::v1::RegisterInstanceRequest const& request) override; + StatusOr RegisterInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::RegisterInstanceRequest const& request) + override; + + future> RegisterInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> SetInstanceAccelerator( google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& request) override; + StatusOr SetInstanceAccelerator( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& + request) override; + + future> + SetInstanceAccelerator( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> SetInstanceMachineType( google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& request) override; + StatusOr SetInstanceMachineType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& + request) override; + + future> + SetInstanceMachineType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstanceConfig( google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request) override; + StatusOr UpdateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request) + override; + + future> UpdateInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateShieldedInstanceConfig( google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& request) override; + StatusOr UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& + request) override; + + future> + UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> SetInstanceLabels( google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request) override; + StatusOr SetInstanceLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request) + override; + + future> SetInstanceLabels( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateInstanceMetadataItems( google::cloud::notebooks::v1::UpdateInstanceMetadataItemsRequest const& @@ -98,22 +164,67 @@ class NotebookServiceConnectionImpl DeleteInstance(google::cloud::notebooks::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteInstanceRequest const& request) + override; + + future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartInstance( google::cloud::notebooks::v1::StartInstanceRequest const& request) override; + StatusOr StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StartInstanceRequest const& request) + override; + + future> StartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopInstance( google::cloud::notebooks::v1::StopInstanceRequest const& request) override; + StatusOr StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StopInstanceRequest const& request) + override; + + future> StopInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResetInstance( google::cloud::notebooks::v1::ResetInstanceRequest const& request) override; + StatusOr ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ResetInstanceRequest const& request) + override; + + future> ResetInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReportInstanceInfo( google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request) override; + StatusOr ReportInstanceInfo( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request) + override; + + future> ReportInstanceInfo( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr IsInstanceUpgradeable( google::cloud::notebooks::v1::IsInstanceUpgradeableRequest const& request) @@ -128,19 +239,56 @@ class NotebookServiceConnectionImpl google::cloud::notebooks::v1::UpgradeInstanceRequest const& request) override; + StatusOr UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeInstanceRequest const& request) + override; + + future> UpgradeInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RollbackInstance( google::cloud::notebooks::v1::RollbackInstanceRequest const& request) override; + StatusOr RollbackInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::RollbackInstanceRequest const& request) + override; + + future> RollbackInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DiagnoseInstance( google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request) override; + StatusOr DiagnoseInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request) + override; + + future> DiagnoseInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpgradeInstanceInternal( google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& request) override; + StatusOr UpgradeInstanceInternal( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& + request) override; + + future> + UpgradeInstanceInternal( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListEnvironments( google::cloud::notebooks::v1::ListEnvironmentsRequest request) override; @@ -152,11 +300,29 @@ class NotebookServiceConnectionImpl google::cloud::notebooks::v1::CreateEnvironmentRequest const& request) override; + StatusOr CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateEnvironmentRequest const& request) + override; + + future> CreateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEnvironment( google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request) override; + StatusOr DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request) + override; + + future> + DeleteEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListSchedules( google::cloud::notebooks::v1::ListSchedulesRequest request) override; @@ -167,14 +333,41 @@ class NotebookServiceConnectionImpl DeleteSchedule(google::cloud::notebooks::v1::DeleteScheduleRequest const& request) override; + StatusOr DeleteSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteScheduleRequest const& request) + override; + + future> + DeleteSchedule(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateSchedule( google::cloud::notebooks::v1::CreateScheduleRequest const& request) override; + StatusOr CreateSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateScheduleRequest const& request) + override; + + future> CreateSchedule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> TriggerSchedule( google::cloud::notebooks::v1::TriggerScheduleRequest const& request) override; + StatusOr TriggerSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::TriggerScheduleRequest const& request) + override; + + future> TriggerSchedule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListExecutions( google::cloud::notebooks::v1::ListExecutionsRequest request) override; @@ -186,10 +379,28 @@ class NotebookServiceConnectionImpl DeleteExecution(google::cloud::notebooks::v1::DeleteExecutionRequest const& request) override; + StatusOr DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteExecutionRequest const& request) + override; + + future> + DeleteExecution(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateExecution( google::cloud::notebooks::v1::CreateExecutionRequest const& request) override; + StatusOr CreateExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateExecutionRequest const& request) + override; + + future> CreateExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/notebooks/v1/internal/notebook_tracing_connection.cc b/google/cloud/notebooks/v1/internal/notebook_tracing_connection.cc index 232bddf9bc2b1..cc4a3b93c9569 100644 --- a/google/cloud/notebooks/v1/internal/notebook_tracing_connection.cc +++ b/google/cloud/notebooks/v1/internal/notebook_tracing_connection.cc @@ -62,6 +62,30 @@ NotebookServiceTracingConnection::CreateInstance( return internal::EndSpan(std::move(span), child_->CreateInstance(request)); } +StatusOr +NotebookServiceTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::RegisterInstance( google::cloud::notebooks::v1::RegisterInstanceRequest const& request) { @@ -71,6 +95,30 @@ NotebookServiceTracingConnection::RegisterInstance( return internal::EndSpan(std::move(span), child_->RegisterInstance(request)); } +StatusOr +NotebookServiceTracingConnection::RegisterInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::RegisterInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::RegisterInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RegisterInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::RegisterInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::RegisterInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RegisterInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::SetInstanceAccelerator( google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& @@ -82,6 +130,31 @@ NotebookServiceTracingConnection::SetInstanceAccelerator( child_->SetInstanceAccelerator(request)); } +StatusOr +NotebookServiceTracingConnection::SetInstanceAccelerator( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& + request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::SetInstanceAccelerator"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SetInstanceAccelerator( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::SetInstanceAccelerator( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::SetInstanceAccelerator"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SetInstanceAccelerator( + google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::SetInstanceMachineType( google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& @@ -93,6 +166,31 @@ NotebookServiceTracingConnection::SetInstanceMachineType( child_->SetInstanceMachineType(request)); } +StatusOr +NotebookServiceTracingConnection::SetInstanceMachineType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& + request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::SetInstanceMachineType"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->SetInstanceMachineType( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::SetInstanceMachineType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::SetInstanceMachineType"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->SetInstanceMachineType( + google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::UpdateInstanceConfig( google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request) { @@ -103,6 +201,30 @@ NotebookServiceTracingConnection::UpdateInstanceConfig( child_->UpdateInstanceConfig(request)); } +StatusOr +NotebookServiceTracingConnection::UpdateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::UpdateInstanceConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateInstanceConfig( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::UpdateInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::UpdateInstanceConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateInstanceConfig( + google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::UpdateShieldedInstanceConfig( google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& @@ -114,6 +236,31 @@ NotebookServiceTracingConnection::UpdateShieldedInstanceConfig( child_->UpdateShieldedInstanceConfig(request)); } +StatusOr +NotebookServiceTracingConnection::UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& + request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::UpdateShieldedInstanceConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::UpdateShieldedInstanceConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::SetInstanceLabels( google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request) { @@ -123,6 +270,30 @@ NotebookServiceTracingConnection::SetInstanceLabels( return internal::EndSpan(std::move(span), child_->SetInstanceLabels(request)); } +StatusOr +NotebookServiceTracingConnection::SetInstanceLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::SetInstanceLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetInstanceLabels(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::SetInstanceLabels( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::SetInstanceLabels"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetInstanceLabels(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NotebookServiceTracingConnection::UpdateInstanceMetadataItems( google::cloud::notebooks::v1::UpdateInstanceMetadataItemsRequest const& @@ -142,6 +313,30 @@ NotebookServiceTracingConnection::DeleteInstance( return internal::EndSpan(std::move(span), child_->DeleteInstance(request)); } +StatusOr +NotebookServiceTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::StartInstance( google::cloud::notebooks::v1::StartInstanceRequest const& request) { @@ -151,6 +346,30 @@ NotebookServiceTracingConnection::StartInstance( return internal::EndSpan(std::move(span), child_->StartInstance(request)); } +StatusOr +NotebookServiceTracingConnection::StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StartInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::StartInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StartInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::StartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::StartInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StartInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::StopInstance( google::cloud::notebooks::v1::StopInstanceRequest const& request) { @@ -160,6 +379,30 @@ NotebookServiceTracingConnection::StopInstance( return internal::EndSpan(std::move(span), child_->StopInstance(request)); } +StatusOr +NotebookServiceTracingConnection::StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StopInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::StopInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StopInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::StopInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::StopInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StopInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::ResetInstance( google::cloud::notebooks::v1::ResetInstanceRequest const& request) { @@ -169,6 +412,30 @@ NotebookServiceTracingConnection::ResetInstance( return internal::EndSpan(std::move(span), child_->ResetInstance(request)); } +StatusOr +NotebookServiceTracingConnection::ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ResetInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::ResetInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ResetInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::ResetInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::ResetInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ResetInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::ReportInstanceInfo( google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request) { @@ -179,6 +446,30 @@ NotebookServiceTracingConnection::ReportInstanceInfo( child_->ReportInstanceInfo(request)); } +StatusOr +NotebookServiceTracingConnection::ReportInstanceInfo( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::ReportInstanceInfo"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ReportInstanceInfo(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::ReportInstanceInfo( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::ReportInstanceInfo"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ReportInstanceInfo(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NotebookServiceTracingConnection::IsInstanceUpgradeable( google::cloud::notebooks::v1::IsInstanceUpgradeableRequest const& request) { @@ -206,6 +497,30 @@ NotebookServiceTracingConnection::UpgradeInstance( return internal::EndSpan(std::move(span), child_->UpgradeInstance(request)); } +StatusOr +NotebookServiceTracingConnection::UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::UpgradeInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpgradeInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::UpgradeInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::UpgradeInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpgradeInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::RollbackInstance( google::cloud::notebooks::v1::RollbackInstanceRequest const& request) { @@ -215,6 +530,30 @@ NotebookServiceTracingConnection::RollbackInstance( return internal::EndSpan(std::move(span), child_->RollbackInstance(request)); } +StatusOr +NotebookServiceTracingConnection::RollbackInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::RollbackInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::RollbackInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RollbackInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::RollbackInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::RollbackInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RollbackInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::DiagnoseInstance( google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request) { @@ -224,6 +563,30 @@ NotebookServiceTracingConnection::DiagnoseInstance( return internal::EndSpan(std::move(span), child_->DiagnoseInstance(request)); } +StatusOr +NotebookServiceTracingConnection::DiagnoseInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::DiagnoseInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DiagnoseInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::DiagnoseInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::DiagnoseInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DiagnoseInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::UpgradeInstanceInternal( google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& @@ -235,6 +598,31 @@ NotebookServiceTracingConnection::UpgradeInstanceInternal( child_->UpgradeInstanceInternal(request)); } +StatusOr +NotebookServiceTracingConnection::UpgradeInstanceInternal( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& + request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::UpgradeInstanceInternal"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpgradeInstanceInternal( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::UpgradeInstanceInternal( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::UpgradeInstanceInternal"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpgradeInstanceInternal( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NotebookServiceTracingConnection::ListEnvironments( google::cloud::notebooks::v1::ListEnvironmentsRequest request) { @@ -265,6 +653,30 @@ NotebookServiceTracingConnection::CreateEnvironment( return internal::EndSpan(std::move(span), child_->CreateEnvironment(request)); } +StatusOr +NotebookServiceTracingConnection::CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateEnvironmentRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::CreateEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateEnvironment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::CreateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::CreateEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateEnvironment(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::DeleteEnvironment( google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request) { @@ -274,6 +686,30 @@ NotebookServiceTracingConnection::DeleteEnvironment( return internal::EndSpan(std::move(span), child_->DeleteEnvironment(request)); } +StatusOr +NotebookServiceTracingConnection::DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::DeleteEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteEnvironment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::DeleteEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::DeleteEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteEnvironment(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NotebookServiceTracingConnection::ListSchedules( google::cloud::notebooks::v1::ListSchedulesRequest request) { @@ -303,6 +739,30 @@ NotebookServiceTracingConnection::DeleteSchedule( return internal::EndSpan(std::move(span), child_->DeleteSchedule(request)); } +StatusOr +NotebookServiceTracingConnection::DeleteSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteScheduleRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::DeleteSchedule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSchedule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::DeleteSchedule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::DeleteSchedule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSchedule(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::CreateSchedule( google::cloud::notebooks::v1::CreateScheduleRequest const& request) { @@ -312,6 +772,30 @@ NotebookServiceTracingConnection::CreateSchedule( return internal::EndSpan(std::move(span), child_->CreateSchedule(request)); } +StatusOr +NotebookServiceTracingConnection::CreateSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateScheduleRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::CreateSchedule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateSchedule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::CreateSchedule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::CreateSchedule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateSchedule(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::TriggerSchedule( google::cloud::notebooks::v1::TriggerScheduleRequest const& request) { @@ -321,6 +805,30 @@ NotebookServiceTracingConnection::TriggerSchedule( return internal::EndSpan(std::move(span), child_->TriggerSchedule(request)); } +StatusOr +NotebookServiceTracingConnection::TriggerSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::TriggerScheduleRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::TriggerSchedule"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->TriggerSchedule(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::TriggerSchedule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::TriggerSchedule"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->TriggerSchedule(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange NotebookServiceTracingConnection::ListExecutions( google::cloud::notebooks::v1::ListExecutionsRequest request) { @@ -350,6 +858,30 @@ NotebookServiceTracingConnection::DeleteExecution( return internal::EndSpan(std::move(span), child_->DeleteExecution(request)); } +StatusOr +NotebookServiceTracingConnection::DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteExecutionRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::DeleteExecution"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteExecution(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::DeleteExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::DeleteExecution"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteExecution(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::CreateExecution( google::cloud::notebooks::v1::CreateExecutionRequest const& request) { @@ -359,6 +891,30 @@ NotebookServiceTracingConnection::CreateExecution( return internal::EndSpan(std::move(span), child_->CreateExecution(request)); } +StatusOr +NotebookServiceTracingConnection::CreateExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateExecutionRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::CreateExecution"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateExecution(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::CreateExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v1::NotebookServiceConnection::CreateExecution"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateExecution(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/notebooks/v1/internal/notebook_tracing_connection.h b/google/cloud/notebooks/v1/internal/notebook_tracing_connection.h index caadab989f5c2..231d39450393e 100644 --- a/google/cloud/notebooks/v1/internal/notebook_tracing_connection.h +++ b/google/cloud/notebooks/v1/internal/notebook_tracing_connection.h @@ -50,33 +50,99 @@ class NotebookServiceTracingConnection google::cloud::notebooks::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateInstanceRequest const& request) + override; + + future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RegisterInstance( google::cloud::notebooks::v1::RegisterInstanceRequest const& request) override; + StatusOr RegisterInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::RegisterInstanceRequest const& request) + override; + + future> RegisterInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> SetInstanceAccelerator( google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& request) override; + StatusOr SetInstanceAccelerator( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& + request) override; + + future> + SetInstanceAccelerator( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> SetInstanceMachineType( google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& request) override; + StatusOr SetInstanceMachineType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& + request) override; + + future> + SetInstanceMachineType( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstanceConfig( google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request) override; + StatusOr UpdateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request) + override; + + future> UpdateInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateShieldedInstanceConfig( google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& request) override; + StatusOr UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& + request) override; + + future> + UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> SetInstanceLabels( google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request) override; + StatusOr SetInstanceLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request) + override; + + future> SetInstanceLabels( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr UpdateInstanceMetadataItems( google::cloud::notebooks::v1::UpdateInstanceMetadataItemsRequest const& @@ -86,22 +152,67 @@ class NotebookServiceTracingConnection DeleteInstance(google::cloud::notebooks::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteInstanceRequest const& request) + override; + + future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartInstance( google::cloud::notebooks::v1::StartInstanceRequest const& request) override; + StatusOr StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StartInstanceRequest const& request) + override; + + future> StartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopInstance( google::cloud::notebooks::v1::StopInstanceRequest const& request) override; + StatusOr StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StopInstanceRequest const& request) + override; + + future> StopInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResetInstance( google::cloud::notebooks::v1::ResetInstanceRequest const& request) override; + StatusOr ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ResetInstanceRequest const& request) + override; + + future> ResetInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReportInstanceInfo( google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request) override; + StatusOr ReportInstanceInfo( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request) + override; + + future> ReportInstanceInfo( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr IsInstanceUpgradeable( google::cloud::notebooks::v1::IsInstanceUpgradeableRequest const& request) @@ -116,19 +227,56 @@ class NotebookServiceTracingConnection google::cloud::notebooks::v1::UpgradeInstanceRequest const& request) override; + StatusOr UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeInstanceRequest const& request) + override; + + future> UpgradeInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RollbackInstance( google::cloud::notebooks::v1::RollbackInstanceRequest const& request) override; + StatusOr RollbackInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::RollbackInstanceRequest const& request) + override; + + future> RollbackInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DiagnoseInstance( google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request) override; + StatusOr DiagnoseInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request) + override; + + future> DiagnoseInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpgradeInstanceInternal( google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& request) override; + StatusOr UpgradeInstanceInternal( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& + request) override; + + future> + UpgradeInstanceInternal( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListEnvironments( google::cloud::notebooks::v1::ListEnvironmentsRequest request) override; @@ -140,11 +288,29 @@ class NotebookServiceTracingConnection google::cloud::notebooks::v1::CreateEnvironmentRequest const& request) override; + StatusOr CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateEnvironmentRequest const& request) + override; + + future> CreateEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEnvironment( google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request) override; + StatusOr DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request) + override; + + future> + DeleteEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListSchedules( google::cloud::notebooks::v1::ListSchedulesRequest request) override; @@ -155,14 +321,41 @@ class NotebookServiceTracingConnection DeleteSchedule(google::cloud::notebooks::v1::DeleteScheduleRequest const& request) override; + StatusOr DeleteSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteScheduleRequest const& request) + override; + + future> + DeleteSchedule(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateSchedule( google::cloud::notebooks::v1::CreateScheduleRequest const& request) override; + StatusOr CreateSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateScheduleRequest const& request) + override; + + future> CreateSchedule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> TriggerSchedule( google::cloud::notebooks::v1::TriggerScheduleRequest const& request) override; + StatusOr TriggerSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::TriggerScheduleRequest const& request) + override; + + future> TriggerSchedule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListExecutions( google::cloud::notebooks::v1::ListExecutionsRequest request) override; @@ -174,10 +367,28 @@ class NotebookServiceTracingConnection DeleteExecution(google::cloud::notebooks::v1::DeleteExecutionRequest const& request) override; + StatusOr DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteExecutionRequest const& request) + override; + + future> + DeleteExecution(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateExecution( google::cloud::notebooks::v1::CreateExecutionRequest const& request) override; + StatusOr CreateExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateExecutionRequest const& request) + override; + + future> CreateExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/notebooks/v1/managed_notebook_connection.cc b/google/cloud/notebooks/v1/managed_notebook_connection.cc index bdf11688defda..41cd76779a560 100644 --- a/google/cloud/notebooks/v1/managed_notebook_connection.cc +++ b/google/cloud/notebooks/v1/managed_notebook_connection.cc @@ -60,9 +60,41 @@ ManagedNotebookServiceConnection::CreateRuntime( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ManagedNotebookServiceConnection::CreateRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateRuntimeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +ManagedNotebookServiceConnection::CreateRuntime( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedNotebookServiceConnection::UpdateRuntime( + google::cloud::notebooks::v1::UpdateRuntimeRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr ManagedNotebookServiceConnection::UpdateRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::notebooks::v1::UpdateRuntimeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedNotebookServiceConnection::UpdateRuntime( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -76,6 +108,22 @@ ManagedNotebookServiceConnection::DeleteRuntime( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ManagedNotebookServiceConnection::DeleteRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteRuntimeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedNotebookServiceConnection::DeleteRuntime( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ManagedNotebookServiceConnection::StartRuntime( google::cloud::notebooks::v1::StartRuntimeRequest const&) { @@ -84,6 +132,22 @@ ManagedNotebookServiceConnection::StartRuntime( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ManagedNotebookServiceConnection::StartRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StartRuntimeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedNotebookServiceConnection::StartRuntime( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ManagedNotebookServiceConnection::StopRuntime( google::cloud::notebooks::v1::StopRuntimeRequest const&) { @@ -92,6 +156,22 @@ ManagedNotebookServiceConnection::StopRuntime( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ManagedNotebookServiceConnection::StopRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StopRuntimeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedNotebookServiceConnection::StopRuntime( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ManagedNotebookServiceConnection::SwitchRuntime( google::cloud::notebooks::v1::SwitchRuntimeRequest const&) { @@ -100,9 +180,41 @@ ManagedNotebookServiceConnection::SwitchRuntime( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ManagedNotebookServiceConnection::SwitchRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SwitchRuntimeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +ManagedNotebookServiceConnection::SwitchRuntime( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedNotebookServiceConnection::ResetRuntime( + google::cloud::notebooks::v1::ResetRuntimeRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr ManagedNotebookServiceConnection::ResetRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::notebooks::v1::ResetRuntimeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedNotebookServiceConnection::ResetRuntime( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -116,6 +228,22 @@ ManagedNotebookServiceConnection::UpgradeRuntime( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ManagedNotebookServiceConnection::UpgradeRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeRuntimeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedNotebookServiceConnection::UpgradeRuntime( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ManagedNotebookServiceConnection::ReportRuntimeEvent( google::cloud::notebooks::v1::ReportRuntimeEventRequest const&) { @@ -124,6 +252,22 @@ ManagedNotebookServiceConnection::ReportRuntimeEvent( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ManagedNotebookServiceConnection::ReportRuntimeEvent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ReportRuntimeEventRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedNotebookServiceConnection::ReportRuntimeEvent( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ManagedNotebookServiceConnection::RefreshRuntimeTokenInternal( google::cloud::notebooks::v1::RefreshRuntimeTokenInternalRequest const&) { @@ -138,6 +282,22 @@ ManagedNotebookServiceConnection::DiagnoseRuntime( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ManagedNotebookServiceConnection::DiagnoseRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DiagnoseRuntimeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ManagedNotebookServiceConnection::DiagnoseRuntime( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeManagedNotebookServiceConnection(Options options) { internal::CheckExpectedOptions> CreateRuntime( google::cloud::notebooks::v1::CreateRuntimeRequest const& request); + virtual StatusOr CreateRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateRuntimeRequest const& request); + + virtual future> CreateRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateRuntime( google::cloud::notebooks::v1::UpdateRuntimeRequest const& request); + virtual StatusOr UpdateRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateRuntimeRequest const& request); + + virtual future> UpdateRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteRuntime( google::cloud::notebooks::v1::DeleteRuntimeRequest const& request); + virtual StatusOr DeleteRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteRuntimeRequest const& request); + + virtual future> + DeleteRuntime(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StartRuntime( google::cloud::notebooks::v1::StartRuntimeRequest const& request); + virtual StatusOr StartRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StartRuntimeRequest const& request); + + virtual future> StartRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StopRuntime( google::cloud::notebooks::v1::StopRuntimeRequest const& request); + virtual StatusOr StopRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StopRuntimeRequest const& request); + + virtual future> StopRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> SwitchRuntime( google::cloud::notebooks::v1::SwitchRuntimeRequest const& request); + virtual StatusOr SwitchRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SwitchRuntimeRequest const& request); + + virtual future> SwitchRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ResetRuntime( google::cloud::notebooks::v1::ResetRuntimeRequest const& request); + virtual StatusOr ResetRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ResetRuntimeRequest const& request); + + virtual future> ResetRuntime( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpgradeRuntime( google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request); + virtual StatusOr UpgradeRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request); + + virtual future> + UpgradeRuntime(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ReportRuntimeEvent( google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request); + virtual StatusOr ReportRuntimeEvent( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request); + + virtual future> + ReportRuntimeEvent(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::cloud::notebooks::v1::RefreshRuntimeTokenInternalResponse> RefreshRuntimeTokenInternal( @@ -237,6 +311,14 @@ class ManagedNotebookServiceConnection { virtual future> DiagnoseRuntime( google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request); + + virtual StatusOr DiagnoseRuntime( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request); + + virtual future> + DiagnoseRuntime(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/notebooks/v1/mocks/mock_managed_notebook_connection.h b/google/cloud/notebooks/v1/mocks/mock_managed_notebook_connection.h index 87cd5f056ceae..dad9c84645bb3 100644 --- a/google/cloud/notebooks/v1/mocks/mock_managed_notebook_connection.h +++ b/google/cloud/notebooks/v1/mocks/mock_managed_notebook_connection.h @@ -61,48 +61,155 @@ class MockManagedNotebookServiceConnection (google::cloud::notebooks::v1::CreateRuntimeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateRuntime, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateRuntimeRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateRuntime, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateRuntime, (google::cloud::notebooks::v1::UpdateRuntimeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateRuntime, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateRuntimeRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateRuntime, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteRuntime, (google::cloud::notebooks::v1::DeleteRuntimeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteRuntime, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteRuntimeRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteRuntime, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, StartRuntime, (google::cloud::notebooks::v1::StartRuntimeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, StartRuntime, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StartRuntimeRequest const& request), + (override)); + + MOCK_METHOD(future>, + StartRuntime, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, StopRuntime, (google::cloud::notebooks::v1::StopRuntimeRequest const& request), (override)); + MOCK_METHOD(StatusOr, StopRuntime, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StopRuntimeRequest const& request), + (override)); + + MOCK_METHOD(future>, + StopRuntime, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, SwitchRuntime, (google::cloud::notebooks::v1::SwitchRuntimeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, SwitchRuntime, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SwitchRuntimeRequest const& request), + (override)); + + MOCK_METHOD(future>, + SwitchRuntime, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ResetRuntime, (google::cloud::notebooks::v1::ResetRuntimeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ResetRuntime, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ResetRuntimeRequest const& request), + (override)); + + MOCK_METHOD(future>, + ResetRuntime, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpgradeRuntime, (google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpgradeRuntime, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpgradeRuntime, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ReportRuntimeEvent, (google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ReportRuntimeEvent, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request), + (override)); + + MOCK_METHOD(future>, + ReportRuntimeEvent, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr< google::cloud::notebooks::v1::RefreshRuntimeTokenInternalResponse>, @@ -115,6 +222,18 @@ class MockManagedNotebookServiceConnection future>, DiagnoseRuntime, (google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DiagnoseRuntime, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request), + (override)); + + MOCK_METHOD(future>, + DiagnoseRuntime, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/notebooks/v1/mocks/mock_notebook_connection.h b/google/cloud/notebooks/v1/mocks/mock_notebook_connection.h index 09a555efcda2e..8d7f790622d81 100644 --- a/google/cloud/notebooks/v1/mocks/mock_notebook_connection.h +++ b/google/cloud/notebooks/v1/mocks/mock_notebook_connection.h @@ -61,12 +61,36 @@ class MockNotebookServiceConnection (google::cloud::notebooks::v1::CreateInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RegisterInstance, (google::cloud::notebooks::v1::RegisterInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RegisterInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::RegisterInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + RegisterInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, SetInstanceAccelerator, @@ -74,6 +98,19 @@ class MockNotebookServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, SetInstanceAccelerator, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& + request), + (override)); + + MOCK_METHOD(future>, + SetInstanceAccelerator, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, SetInstanceMachineType, @@ -81,12 +118,37 @@ class MockNotebookServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, SetInstanceMachineType, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& + request), + (override)); + + MOCK_METHOD(future>, + SetInstanceMachineType, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateInstanceConfig, (google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateInstanceConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateInstanceConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateShieldedInstanceConfig, @@ -94,12 +156,37 @@ class MockNotebookServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateShieldedInstanceConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateShieldedInstanceConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, SetInstanceLabels, (google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, SetInstanceLabels, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetInstanceLabels, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr< google::cloud::notebooks::v1::UpdateInstanceMetadataItemsResponse>, @@ -114,27 +201,87 @@ class MockNotebookServiceConnection (google::cloud::notebooks::v1::DeleteInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, StartInstance, (google::cloud::notebooks::v1::StartInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, StartInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StartInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + StartInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, StopInstance, (google::cloud::notebooks::v1::StopInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, StopInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StopInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + StopInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ResetInstance, (google::cloud::notebooks::v1::ResetInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ResetInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ResetInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + ResetInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ReportInstanceInfo, (google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ReportInstanceInfo, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request), + (override)); + + MOCK_METHOD(future>, + ReportInstanceInfo, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, IsInstanceUpgradeable, @@ -153,18 +300,54 @@ class MockNotebookServiceConnection (google::cloud::notebooks::v1::UpgradeInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpgradeInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpgradeInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RollbackInstance, (google::cloud::notebooks::v1::RollbackInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RollbackInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::RollbackInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + RollbackInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DiagnoseInstance, (google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DiagnoseInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DiagnoseInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpgradeInstanceInternal, @@ -172,6 +355,19 @@ class MockNotebookServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, UpgradeInstanceInternal, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpgradeInstanceInternal, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListEnvironments, (google::cloud::notebooks::v1::ListEnvironmentsRequest request), @@ -188,12 +384,36 @@ class MockNotebookServiceConnection (google::cloud::notebooks::v1::CreateEnvironmentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateEnvironment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateEnvironmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateEnvironment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteEnvironment, (google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteEnvironment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteEnvironment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListSchedules, (google::cloud::notebooks::v1::ListSchedulesRequest request), @@ -209,16 +429,52 @@ class MockNotebookServiceConnection (google::cloud::notebooks::v1::DeleteScheduleRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteSchedule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteScheduleRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteSchedule, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateSchedule, (google::cloud::notebooks::v1::CreateScheduleRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateSchedule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateScheduleRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateSchedule, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, TriggerSchedule, (google::cloud::notebooks::v1::TriggerScheduleRequest const& request), (override)); + MOCK_METHOD( + StatusOr, TriggerSchedule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::TriggerScheduleRequest const& request), + (override)); + + MOCK_METHOD(future>, + TriggerSchedule, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListExecutions, (google::cloud::notebooks::v1::ListExecutionsRequest request), @@ -235,11 +491,35 @@ class MockNotebookServiceConnection (google::cloud::notebooks::v1::DeleteExecutionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteExecution, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteExecutionRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteExecution, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateExecution, (google::cloud::notebooks::v1::CreateExecutionRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, CreateExecution, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateExecutionRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateExecution, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/notebooks/v1/notebook_connection.cc b/google/cloud/notebooks/v1/notebook_connection.cc index 0f4c22a91fc4b..77f93cf0a79a4 100644 --- a/google/cloud/notebooks/v1/notebook_connection.cc +++ b/google/cloud/notebooks/v1/notebook_connection.cc @@ -60,6 +60,22 @@ NotebookServiceConnection::CreateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::CreateInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::RegisterInstance( google::cloud::notebooks::v1::RegisterInstanceRequest const&) { @@ -68,6 +84,22 @@ NotebookServiceConnection::RegisterInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::RegisterInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::RegisterInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::RegisterInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::SetInstanceAccelerator( google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const&) { @@ -76,6 +108,22 @@ NotebookServiceConnection::SetInstanceAccelerator( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::SetInstanceAccelerator( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::SetInstanceAccelerator( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::SetInstanceMachineType( google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const&) { @@ -84,9 +132,41 @@ NotebookServiceConnection::SetInstanceMachineType( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::SetInstanceMachineType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +NotebookServiceConnection::SetInstanceMachineType( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::UpdateInstanceConfig( + google::cloud::notebooks::v1::UpdateInstanceConfigRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr NotebookServiceConnection::UpdateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::notebooks::v1::UpdateInstanceConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::UpdateInstanceConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -100,6 +180,22 @@ NotebookServiceConnection::UpdateShieldedInstanceConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::SetInstanceLabels( google::cloud::notebooks::v1::SetInstanceLabelsRequest const&) { @@ -108,6 +204,22 @@ NotebookServiceConnection::SetInstanceLabels( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::SetInstanceLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceLabelsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::SetInstanceLabels( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NotebookServiceConnection::UpdateInstanceMetadataItems( google::cloud::notebooks::v1::UpdateInstanceMetadataItemsRequest const&) { @@ -122,6 +234,22 @@ NotebookServiceConnection::DeleteInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::StartInstance( google::cloud::notebooks::v1::StartInstanceRequest const&) { @@ -130,6 +258,22 @@ NotebookServiceConnection::StartInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StartInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::StartInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::StopInstance( google::cloud::notebooks::v1::StopInstanceRequest const&) { @@ -138,9 +282,41 @@ NotebookServiceConnection::StopInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StopInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +NotebookServiceConnection::StopInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::ResetInstance( + google::cloud::notebooks::v1::ResetInstanceRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr NotebookServiceConnection::ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::notebooks::v1::ResetInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::ResetInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -154,6 +330,22 @@ NotebookServiceConnection::ReportInstanceInfo( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::ReportInstanceInfo( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ReportInstanceInfoRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::ReportInstanceInfo( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NotebookServiceConnection::IsInstanceUpgradeable( google::cloud::notebooks::v1::IsInstanceUpgradeableRequest const&) { @@ -174,6 +366,22 @@ NotebookServiceConnection::UpgradeInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::UpgradeInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::RollbackInstance( google::cloud::notebooks::v1::RollbackInstanceRequest const&) { @@ -182,6 +390,22 @@ NotebookServiceConnection::RollbackInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::RollbackInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::RollbackInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::RollbackInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::DiagnoseInstance( google::cloud::notebooks::v1::DiagnoseInstanceRequest const&) { @@ -190,6 +414,22 @@ NotebookServiceConnection::DiagnoseInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::DiagnoseInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DiagnoseInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::DiagnoseInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::UpgradeInstanceInternal( google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const&) { @@ -198,6 +438,22 @@ NotebookServiceConnection::UpgradeInstanceInternal( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::UpgradeInstanceInternal( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::UpgradeInstanceInternal( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NotebookServiceConnection::ListEnvironments( google::cloud::notebooks::v1:: @@ -220,6 +476,22 @@ NotebookServiceConnection::CreateEnvironment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateEnvironmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::CreateEnvironment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::DeleteEnvironment( google::cloud::notebooks::v1::DeleteEnvironmentRequest const&) { @@ -228,6 +500,22 @@ NotebookServiceConnection::DeleteEnvironment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteEnvironmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::DeleteEnvironment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange NotebookServiceConnection::ListSchedules( google::cloud::notebooks::v1:: @@ -250,6 +538,22 @@ NotebookServiceConnection::DeleteSchedule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::DeleteSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteScheduleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::DeleteSchedule( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::CreateSchedule( google::cloud::notebooks::v1::CreateScheduleRequest const&) { @@ -258,9 +562,41 @@ NotebookServiceConnection::CreateSchedule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::CreateSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateScheduleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +NotebookServiceConnection::CreateSchedule( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::TriggerSchedule( + google::cloud::notebooks::v1::TriggerScheduleRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr NotebookServiceConnection::TriggerSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::notebooks::v1::TriggerScheduleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::TriggerSchedule( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -288,6 +624,22 @@ NotebookServiceConnection::DeleteExecution( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteExecutionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::DeleteExecution( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::CreateExecution( google::cloud::notebooks::v1::CreateExecutionRequest const&) { @@ -296,6 +648,22 @@ NotebookServiceConnection::CreateExecution( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::CreateExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateExecutionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::CreateExecution( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeNotebookServiceConnection( Options options) { internal::CheckExpectedOptions CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateInstanceRequest const& request); + + virtual future> + CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RegisterInstance( google::cloud::notebooks::v1::RegisterInstanceRequest const& request); + virtual StatusOr RegisterInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::RegisterInstanceRequest const& request); + + virtual future> + RegisterInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> SetInstanceAccelerator( google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& request); + virtual StatusOr SetInstanceAccelerator( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& + request); + + virtual future> + SetInstanceAccelerator(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> SetInstanceMachineType( google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& request); + virtual StatusOr SetInstanceMachineType( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& + request); + + virtual future> + SetInstanceMachineType(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateInstanceConfig( google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request); + virtual StatusOr UpdateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request); + + virtual future> + UpdateInstanceConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateShieldedInstanceConfig( google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& request); + virtual StatusOr UpdateShieldedInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& + request); + + virtual future> + UpdateShieldedInstanceConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> SetInstanceLabels( google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request); + virtual StatusOr SetInstanceLabels( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request); + + virtual future> + SetInstanceLabels(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::cloud::notebooks::v1::UpdateInstanceMetadataItemsResponse> UpdateInstanceMetadataItems( @@ -233,21 +294,61 @@ class NotebookServiceConnection { DeleteInstance( google::cloud::notebooks::v1::DeleteInstanceRequest const& request); + virtual StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteInstanceRequest const& request); + + virtual future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StartInstance( google::cloud::notebooks::v1::StartInstanceRequest const& request); + virtual StatusOr StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StartInstanceRequest const& request); + + virtual future> + StartInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StopInstance( google::cloud::notebooks::v1::StopInstanceRequest const& request); + virtual StatusOr StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::StopInstanceRequest const& request); + + virtual future> StopInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ResetInstance( google::cloud::notebooks::v1::ResetInstanceRequest const& request); + virtual StatusOr ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ResetInstanceRequest const& request); + + virtual future> + ResetInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ReportInstanceInfo( google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request); + virtual StatusOr ReportInstanceInfo( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request); + + virtual future> + ReportInstanceInfo(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr IsInstanceUpgradeable( google::cloud::notebooks::v1::IsInstanceUpgradeableRequest const& @@ -261,19 +362,52 @@ class NotebookServiceConnection { UpgradeInstance( google::cloud::notebooks::v1::UpgradeInstanceRequest const& request); + virtual StatusOr UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeInstanceRequest const& request); + + virtual future> + UpgradeInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RollbackInstance( google::cloud::notebooks::v1::RollbackInstanceRequest const& request); + virtual StatusOr RollbackInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::RollbackInstanceRequest const& request); + + virtual future> + RollbackInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DiagnoseInstance( google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request); + virtual StatusOr DiagnoseInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request); + + virtual future> + DiagnoseInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpgradeInstanceInternal( google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& request); + virtual StatusOr UpgradeInstanceInternal( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& + request); + + virtual future> + UpgradeInstanceInternal(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListEnvironments( google::cloud::notebooks::v1::ListEnvironmentsRequest request); @@ -285,10 +419,26 @@ class NotebookServiceConnection { CreateEnvironment( google::cloud::notebooks::v1::CreateEnvironmentRequest const& request); + virtual StatusOr CreateEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateEnvironmentRequest const& request); + + virtual future> + CreateEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteEnvironment( google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request); + virtual StatusOr DeleteEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request); + + virtual future> + DeleteEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListSchedules( google::cloud::notebooks::v1::ListSchedulesRequest request); @@ -299,14 +449,38 @@ class NotebookServiceConnection { DeleteSchedule( google::cloud::notebooks::v1::DeleteScheduleRequest const& request); + virtual StatusOr DeleteSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteScheduleRequest const& request); + + virtual future> + DeleteSchedule(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateSchedule( google::cloud::notebooks::v1::CreateScheduleRequest const& request); + virtual StatusOr CreateSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateScheduleRequest const& request); + + virtual future> + CreateSchedule(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> TriggerSchedule( google::cloud::notebooks::v1::TriggerScheduleRequest const& request); + virtual StatusOr TriggerSchedule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::TriggerScheduleRequest const& request); + + virtual future> + TriggerSchedule(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListExecutions( google::cloud::notebooks::v1::ListExecutionsRequest request); @@ -317,9 +491,25 @@ class NotebookServiceConnection { DeleteExecution( google::cloud::notebooks::v1::DeleteExecutionRequest const& request); + virtual StatusOr DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::DeleteExecutionRequest const& request); + + virtual future> + DeleteExecution(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateExecution( google::cloud::notebooks::v1::CreateExecutionRequest const& request); + + virtual StatusOr CreateExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v1::CreateExecutionRequest const& request); + + virtual future> + CreateExecution(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/notebooks/v2/internal/notebook_connection_impl.cc b/google/cloud/notebooks/v2/internal/notebook_connection_impl.cc index 05fb3ae703c35..01365da4d79e8 100644 --- a/google/cloud/notebooks/v2/internal/notebook_connection_impl.cc +++ b/google/cloud/notebooks/v2/internal/notebook_connection_impl.cc @@ -153,6 +153,59 @@ NotebookServiceConnectionImpl::CreateInstance( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::CreateInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v2::CreateInstanceRequest const& request) { + return stub_->CreateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v2::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v2::Instance>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::UpdateInstance( google::cloud::notebooks::v2::UpdateInstanceRequest const& request) { @@ -192,6 +245,59 @@ NotebookServiceConnectionImpl::UpdateInstance( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::UpdateInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v2::UpdateInstanceRequest const& request) { + return stub_->UpdateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v2::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v2::Instance>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::DeleteInstance( google::cloud::notebooks::v2::DeleteInstanceRequest const& request) { @@ -231,6 +337,60 @@ NotebookServiceConnectionImpl::DeleteInstance( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::DeleteInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v2::DeleteInstanceRequest const& request) { + return stub_->DeleteInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v2::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::notebooks::v2::OperationMetadata>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::StartInstance( google::cloud::notebooks::v2::StartInstanceRequest const& request) { @@ -270,6 +430,59 @@ NotebookServiceConnectionImpl::StartInstance( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::StartInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v2::StartInstanceRequest const& request) { + return stub_->StartInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::StartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to StartInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v2::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v2::Instance>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::StopInstance( google::cloud::notebooks::v2::StopInstanceRequest const& request) { @@ -309,6 +522,58 @@ NotebookServiceConnectionImpl::StopInstance( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::StopInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StopInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v2::StopInstanceRequest const& request) { + return stub_->StopInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::StopInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to StopInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v2::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v2::Instance>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::ResetInstance( google::cloud::notebooks::v2::ResetInstanceRequest const& request) { @@ -348,6 +613,59 @@ NotebookServiceConnectionImpl::ResetInstance( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::ResetInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ResetInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v2::ResetInstanceRequest const& request) { + return stub_->ResetInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::ResetInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ResetInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v2::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v2::Instance>, + polling_policy(*current), __func__); +} + StatusOr NotebookServiceConnectionImpl::CheckInstanceUpgradability( google::cloud::notebooks::v2::CheckInstanceUpgradabilityRequest const& @@ -404,6 +722,59 @@ NotebookServiceConnectionImpl::UpgradeInstance( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::UpgradeInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpgradeInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v2::UpgradeInstanceRequest const& request) { + return stub_->UpgradeInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::UpgradeInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpgradeInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v2::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v2::Instance>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::RollbackInstance( google::cloud::notebooks::v2::RollbackInstanceRequest const& request) { @@ -444,6 +815,59 @@ NotebookServiceConnectionImpl::RollbackInstance( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::RollbackInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::RollbackInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RollbackInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v2::RollbackInstanceRequest const& + request) { + return stub_->RollbackInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::RollbackInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RollbackInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v2::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v2::Instance>, + polling_policy(*current), __func__); +} + future> NotebookServiceConnectionImpl::DiagnoseInstance( google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request) { @@ -484,6 +908,59 @@ NotebookServiceConnectionImpl::DiagnoseInstance( polling_policy(*current), __func__); } +StatusOr +NotebookServiceConnectionImpl::DiagnoseInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DiagnoseInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::notebooks::v2::DiagnoseInstanceRequest const& + request) { + return stub_->DiagnoseInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +NotebookServiceConnectionImpl::DiagnoseInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DiagnoseInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::notebooks::v2::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::notebooks::v2::Instance>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace notebooks_v2_internal } // namespace cloud diff --git a/google/cloud/notebooks/v2/internal/notebook_connection_impl.h b/google/cloud/notebooks/v2/internal/notebook_connection_impl.h index 6a844ac8f55bf..6e9f00d4e1272 100644 --- a/google/cloud/notebooks/v2/internal/notebook_connection_impl.h +++ b/google/cloud/notebooks/v2/internal/notebook_connection_impl.h @@ -62,26 +62,80 @@ class NotebookServiceConnectionImpl google::cloud::notebooks::v2::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::CreateInstanceRequest const& request) + override; + + future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstance( google::cloud::notebooks::v2::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::UpdateInstanceRequest const& request) + override; + + future> UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteInstance(google::cloud::notebooks::v2::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::DeleteInstanceRequest const& request) + override; + + future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartInstance( google::cloud::notebooks::v2::StartInstanceRequest const& request) override; + StatusOr StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::StartInstanceRequest const& request) + override; + + future> StartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopInstance( google::cloud::notebooks::v2::StopInstanceRequest const& request) override; + StatusOr StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::StopInstanceRequest const& request) + override; + + future> StopInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResetInstance( google::cloud::notebooks::v2::ResetInstanceRequest const& request) override; + StatusOr ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::ResetInstanceRequest const& request) + override; + + future> ResetInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CheckInstanceUpgradability( google::cloud::notebooks::v2::CheckInstanceUpgradabilityRequest const& @@ -91,14 +145,41 @@ class NotebookServiceConnectionImpl google::cloud::notebooks::v2::UpgradeInstanceRequest const& request) override; + StatusOr UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::UpgradeInstanceRequest const& request) + override; + + future> UpgradeInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RollbackInstance( google::cloud::notebooks::v2::RollbackInstanceRequest const& request) override; + StatusOr RollbackInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::RollbackInstanceRequest const& request) + override; + + future> RollbackInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DiagnoseInstance( google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request) override; + StatusOr DiagnoseInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request) + override; + + future> DiagnoseInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/notebooks/v2/internal/notebook_tracing_connection.cc b/google/cloud/notebooks/v2/internal/notebook_tracing_connection.cc index 3406b188434eb..aad1fc46e37a4 100644 --- a/google/cloud/notebooks/v2/internal/notebook_tracing_connection.cc +++ b/google/cloud/notebooks/v2/internal/notebook_tracing_connection.cc @@ -62,6 +62,30 @@ NotebookServiceTracingConnection::CreateInstance( return internal::EndSpan(std::move(span), child_->CreateInstance(request)); } +StatusOr +NotebookServiceTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::CreateInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::UpdateInstance( google::cloud::notebooks::v2::UpdateInstanceRequest const& request) { @@ -71,6 +95,30 @@ NotebookServiceTracingConnection::UpdateInstance( return internal::EndSpan(std::move(span), child_->UpdateInstance(request)); } +StatusOr +NotebookServiceTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::UpdateInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::DeleteInstance( google::cloud::notebooks::v2::DeleteInstanceRequest const& request) { @@ -80,6 +128,30 @@ NotebookServiceTracingConnection::DeleteInstance( return internal::EndSpan(std::move(span), child_->DeleteInstance(request)); } +StatusOr +NotebookServiceTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::DeleteInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::StartInstance( google::cloud::notebooks::v2::StartInstanceRequest const& request) { @@ -89,6 +161,30 @@ NotebookServiceTracingConnection::StartInstance( return internal::EndSpan(std::move(span), child_->StartInstance(request)); } +StatusOr +NotebookServiceTracingConnection::StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::StartInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::StartInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StartInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::StartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::StartInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StartInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::StopInstance( google::cloud::notebooks::v2::StopInstanceRequest const& request) { @@ -98,6 +194,30 @@ NotebookServiceTracingConnection::StopInstance( return internal::EndSpan(std::move(span), child_->StopInstance(request)); } +StatusOr +NotebookServiceTracingConnection::StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::StopInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::StopInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StopInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::StopInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::StopInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StopInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::ResetInstance( google::cloud::notebooks::v2::ResetInstanceRequest const& request) { @@ -107,6 +227,30 @@ NotebookServiceTracingConnection::ResetInstance( return internal::EndSpan(std::move(span), child_->ResetInstance(request)); } +StatusOr +NotebookServiceTracingConnection::ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::ResetInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::ResetInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ResetInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::ResetInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::ResetInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ResetInstance(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr NotebookServiceTracingConnection::CheckInstanceUpgradability( google::cloud::notebooks::v2::CheckInstanceUpgradabilityRequest const& @@ -126,6 +270,30 @@ NotebookServiceTracingConnection::UpgradeInstance( return internal::EndSpan(std::move(span), child_->UpgradeInstance(request)); } +StatusOr +NotebookServiceTracingConnection::UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::UpgradeInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::UpgradeInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpgradeInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::UpgradeInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::UpgradeInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpgradeInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::RollbackInstance( google::cloud::notebooks::v2::RollbackInstanceRequest const& request) { @@ -135,6 +303,30 @@ NotebookServiceTracingConnection::RollbackInstance( return internal::EndSpan(std::move(span), child_->RollbackInstance(request)); } +StatusOr +NotebookServiceTracingConnection::RollbackInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::RollbackInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::RollbackInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RollbackInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::RollbackInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::RollbackInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RollbackInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> NotebookServiceTracingConnection::DiagnoseInstance( google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request) { @@ -144,6 +336,30 @@ NotebookServiceTracingConnection::DiagnoseInstance( return internal::EndSpan(std::move(span), child_->DiagnoseInstance(request)); } +StatusOr +NotebookServiceTracingConnection::DiagnoseInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::DiagnoseInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DiagnoseInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +NotebookServiceTracingConnection::DiagnoseInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "notebooks_v2::NotebookServiceConnection::DiagnoseInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DiagnoseInstance(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/notebooks/v2/internal/notebook_tracing_connection.h b/google/cloud/notebooks/v2/internal/notebook_tracing_connection.h index 195ca94152546..33ce4259f16f0 100644 --- a/google/cloud/notebooks/v2/internal/notebook_tracing_connection.h +++ b/google/cloud/notebooks/v2/internal/notebook_tracing_connection.h @@ -50,26 +50,80 @@ class NotebookServiceTracingConnection google::cloud::notebooks::v2::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::CreateInstanceRequest const& request) + override; + + future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstance( google::cloud::notebooks::v2::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::UpdateInstanceRequest const& request) + override; + + future> UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteInstance(google::cloud::notebooks::v2::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::DeleteInstanceRequest const& request) + override; + + future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartInstance( google::cloud::notebooks::v2::StartInstanceRequest const& request) override; + StatusOr StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::StartInstanceRequest const& request) + override; + + future> StartInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopInstance( google::cloud::notebooks::v2::StopInstanceRequest const& request) override; + StatusOr StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::StopInstanceRequest const& request) + override; + + future> StopInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResetInstance( google::cloud::notebooks::v2::ResetInstanceRequest const& request) override; + StatusOr ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::ResetInstanceRequest const& request) + override; + + future> ResetInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CheckInstanceUpgradability( google::cloud::notebooks::v2::CheckInstanceUpgradabilityRequest const& @@ -79,14 +133,41 @@ class NotebookServiceTracingConnection google::cloud::notebooks::v2::UpgradeInstanceRequest const& request) override; + StatusOr UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::UpgradeInstanceRequest const& request) + override; + + future> UpgradeInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RollbackInstance( google::cloud::notebooks::v2::RollbackInstanceRequest const& request) override; + StatusOr RollbackInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::RollbackInstanceRequest const& request) + override; + + future> RollbackInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DiagnoseInstance( google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request) override; + StatusOr DiagnoseInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request) + override; + + future> DiagnoseInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/notebooks/v2/mocks/mock_notebook_connection.h b/google/cloud/notebooks/v2/mocks/mock_notebook_connection.h index 6eefd376ad4bd..8af01e14850bb 100644 --- a/google/cloud/notebooks/v2/mocks/mock_notebook_connection.h +++ b/google/cloud/notebooks/v2/mocks/mock_notebook_connection.h @@ -61,32 +61,104 @@ class MockNotebookServiceConnection (google::cloud::notebooks::v2::CreateInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::CreateInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateInstance, (google::cloud::notebooks::v2::UpdateInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::UpdateInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteInstance, (google::cloud::notebooks::v2::DeleteInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::DeleteInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, StartInstance, (google::cloud::notebooks::v2::StartInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, StartInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::StartInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + StartInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, StopInstance, (google::cloud::notebooks::v2::StopInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, StopInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::StopInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + StopInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ResetInstance, (google::cloud::notebooks::v2::ResetInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ResetInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::ResetInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + ResetInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr< google::cloud::notebooks::v2::CheckInstanceUpgradabilityResponse>, @@ -100,17 +172,53 @@ class MockNotebookServiceConnection (google::cloud::notebooks::v2::UpgradeInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpgradeInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::UpgradeInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpgradeInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RollbackInstance, (google::cloud::notebooks::v2::RollbackInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RollbackInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::RollbackInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + RollbackInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DiagnoseInstance, (google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DiagnoseInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DiagnoseInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/notebooks/v2/notebook_connection.cc b/google/cloud/notebooks/v2/notebook_connection.cc index 9b7e4a71c0aa0..e1f2f1c69a613 100644 --- a/google/cloud/notebooks/v2/notebook_connection.cc +++ b/google/cloud/notebooks/v2/notebook_connection.cc @@ -60,6 +60,22 @@ NotebookServiceConnection::CreateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::CreateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::CreateInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::UpdateInstance( google::cloud::notebooks::v2::UpdateInstanceRequest const&) { @@ -68,6 +84,22 @@ NotebookServiceConnection::UpdateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::UpdateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::DeleteInstance( google::cloud::notebooks::v2::DeleteInstanceRequest const&) { @@ -76,6 +108,22 @@ NotebookServiceConnection::DeleteInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::DeleteInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::StartInstance( google::cloud::notebooks::v2::StartInstanceRequest const&) { @@ -84,6 +132,22 @@ NotebookServiceConnection::StartInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::StartInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::StartInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::StopInstance( google::cloud::notebooks::v2::StopInstanceRequest const&) { @@ -92,6 +156,22 @@ NotebookServiceConnection::StopInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::StopInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::StopInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::ResetInstance( google::cloud::notebooks::v2::ResetInstanceRequest const&) { @@ -100,6 +180,22 @@ NotebookServiceConnection::ResetInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::ResetInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::ResetInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr NotebookServiceConnection::CheckInstanceUpgradability( google::cloud::notebooks::v2::CheckInstanceUpgradabilityRequest const&) { @@ -114,6 +210,22 @@ NotebookServiceConnection::UpgradeInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::UpgradeInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::UpgradeInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::RollbackInstance( google::cloud::notebooks::v2::RollbackInstanceRequest const&) { @@ -122,6 +234,22 @@ NotebookServiceConnection::RollbackInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::RollbackInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::RollbackInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::RollbackInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> NotebookServiceConnection::DiagnoseInstance( google::cloud::notebooks::v2::DiagnoseInstanceRequest const&) { @@ -130,6 +258,22 @@ NotebookServiceConnection::DiagnoseInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +NotebookServiceConnection::DiagnoseInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::DiagnoseInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +NotebookServiceConnection::DiagnoseInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeNotebookServiceConnection( Options options) { internal::CheckExpectedOptions CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::CreateInstanceRequest const& request); + + virtual future> + CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateInstance( google::cloud::notebooks::v2::UpdateInstanceRequest const& request); + virtual StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::UpdateInstanceRequest const& request); + + virtual future> + UpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteInstance( google::cloud::notebooks::v2::DeleteInstanceRequest const& request); + virtual StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::DeleteInstanceRequest const& request); + + virtual future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StartInstance( google::cloud::notebooks::v2::StartInstanceRequest const& request); + virtual StatusOr StartInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::StartInstanceRequest const& request); + + virtual future> + StartInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StopInstance( google::cloud::notebooks::v2::StopInstanceRequest const& request); + virtual StatusOr StopInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::StopInstanceRequest const& request); + + virtual future> StopInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ResetInstance( google::cloud::notebooks::v2::ResetInstanceRequest const& request); + virtual StatusOr ResetInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::ResetInstanceRequest const& request); + + virtual future> + ResetInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::cloud::notebooks::v2::CheckInstanceUpgradabilityResponse> CheckInstanceUpgradability( @@ -225,13 +275,37 @@ class NotebookServiceConnection { UpgradeInstance( google::cloud::notebooks::v2::UpgradeInstanceRequest const& request); + virtual StatusOr UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::UpgradeInstanceRequest const& request); + + virtual future> + UpgradeInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RollbackInstance( google::cloud::notebooks::v2::RollbackInstanceRequest const& request); + virtual StatusOr RollbackInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::RollbackInstanceRequest const& request); + + virtual future> + RollbackInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DiagnoseInstance( google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request); + + virtual StatusOr DiagnoseInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request); + + virtual future> + DiagnoseInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/optimization/v1/fleet_routing_connection.cc b/google/cloud/optimization/v1/fleet_routing_connection.cc index 897d77ab375b7..d9901d4d1316e 100644 --- a/google/cloud/optimization/v1/fleet_routing_connection.cc +++ b/google/cloud/optimization/v1/fleet_routing_connection.cc @@ -51,6 +51,22 @@ FleetRoutingConnection::BatchOptimizeTours( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +FleetRoutingConnection::BatchOptimizeTours( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::optimization::v1::BatchOptimizeToursRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FleetRoutingConnection::BatchOptimizeTours( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeFleetRoutingConnection( Options options) { internal::CheckExpectedOptions BatchOptimizeTours( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::optimization::v1::BatchOptimizeToursRequest const& + request); + + virtual future< + StatusOr> + BatchOptimizeTours(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.cc b/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.cc index 462fb5f17c7ea..b3a7097580242 100644 --- a/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.cc +++ b/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.cc @@ -120,6 +120,61 @@ FleetRoutingConnectionImpl::BatchOptimizeTours( polling_policy(*current), __func__); } +StatusOr +FleetRoutingConnectionImpl::BatchOptimizeTours( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::optimization::v1::BatchOptimizeToursRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchOptimizeTours(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::optimization::v1::BatchOptimizeToursRequest const& + request) { + return stub_->BatchOptimizeTours(context, options, request); + }, + *current, request, __func__); +} + +future> +FleetRoutingConnectionImpl::BatchOptimizeTours( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to BatchOptimizeTours", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::optimization::v1::BatchOptimizeToursResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::optimization::v1::BatchOptimizeToursResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace optimization_v1_internal } // namespace cloud diff --git a/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.h b/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.h index 0ea8df85db80a..a28f25b212979 100644 --- a/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.h +++ b/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.h @@ -60,6 +60,15 @@ class FleetRoutingConnectionImpl google::cloud::optimization::v1::BatchOptimizeToursRequest const& request) override; + StatusOr BatchOptimizeTours( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::optimization::v1::BatchOptimizeToursRequest const& request) + override; + + future> + BatchOptimizeTours(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.cc b/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.cc index 8d5877a10dc45..2a390977d7b41 100644 --- a/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.cc +++ b/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.cc @@ -51,6 +51,30 @@ FleetRoutingTracingConnection::BatchOptimizeTours( child_->BatchOptimizeTours(request)); } +StatusOr +FleetRoutingTracingConnection::BatchOptimizeTours( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::optimization::v1::BatchOptimizeToursRequest const& request) { + auto span = internal::MakeSpan( + "optimization_v1::FleetRoutingConnection::BatchOptimizeTours"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BatchOptimizeTours(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FleetRoutingTracingConnection::BatchOptimizeTours( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "optimization_v1::FleetRoutingConnection::BatchOptimizeTours"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BatchOptimizeTours(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.h b/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.h index d5eb19e7ee4dc..662036cba07e8 100644 --- a/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.h +++ b/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.h @@ -49,6 +49,15 @@ class FleetRoutingTracingConnection google::cloud::optimization::v1::BatchOptimizeToursRequest const& request) override; + StatusOr BatchOptimizeTours( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::optimization::v1::BatchOptimizeToursRequest const& request) + override; + + future> + BatchOptimizeTours(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/optimization/v1/mocks/mock_fleet_routing_connection.h b/google/cloud/optimization/v1/mocks/mock_fleet_routing_connection.h index 43c66171416e2..3863405500d10 100644 --- a/google/cloud/optimization/v1/mocks/mock_fleet_routing_connection.h +++ b/google/cloud/optimization/v1/mocks/mock_fleet_routing_connection.h @@ -59,6 +59,19 @@ class MockFleetRoutingConnection (google::cloud::optimization::v1::BatchOptimizeToursRequest const& request), (override)); + + MOCK_METHOD(StatusOr, BatchOptimizeTours, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::optimization::v1::BatchOptimizeToursRequest const& + request), + (override)); + + MOCK_METHOD(future>, + BatchOptimizeTours, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/orgpolicy/v2/org_policy_connection.h b/google/cloud/orgpolicy/v2/org_policy_connection.h index f6c52021ad106..1d0f8cd8a4a8d 100644 --- a/google/cloud/orgpolicy/v2/org_policy_connection.h +++ b/google/cloud/orgpolicy/v2/org_policy_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/orgpolicy/v2/internal/org_policy_retry_traits.h" #include "google/cloud/orgpolicy/v2/org_policy_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/osconfig/agentendpoint/v1/agent_endpoint_connection.h b/google/cloud/osconfig/agentendpoint/v1/agent_endpoint_connection.h index 4089c9bf02e76..2fecb249762c5 100644 --- a/google/cloud/osconfig/agentendpoint/v1/agent_endpoint_connection.h +++ b/google/cloud/osconfig/agentendpoint/v1/agent_endpoint_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/osconfig/agentendpoint/v1/agent_endpoint_connection_idempotency_policy.h" #include "google/cloud/osconfig/agentendpoint/v1/internal/agent_endpoint_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.cc b/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.cc index 80639ea26a8ba..e2a23b909947c 100644 --- a/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.cc +++ b/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.cc @@ -108,6 +108,62 @@ OsConfigZonalServiceConnectionImpl::CreateOSPolicyAssignment( polling_policy(*current), __func__); } +StatusOr +OsConfigZonalServiceConnectionImpl::CreateOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateOSPolicyAssignment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& + request) { + return stub_->CreateOSPolicyAssignment(context, options, request); + }, + *current, request, __func__); +} + +future> +OsConfigZonalServiceConnectionImpl::CreateOSPolicyAssignment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateOSPolicyAssignment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::osconfig::v1::OSPolicyAssignment>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::osconfig::v1::OSPolicyAssignment>, + polling_policy(*current), __func__); +} + future> OsConfigZonalServiceConnectionImpl::UpdateOSPolicyAssignment( google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& @@ -149,6 +205,62 @@ OsConfigZonalServiceConnectionImpl::UpdateOSPolicyAssignment( polling_policy(*current), __func__); } +StatusOr +OsConfigZonalServiceConnectionImpl::UpdateOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateOSPolicyAssignment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& + request) { + return stub_->UpdateOSPolicyAssignment(context, options, request); + }, + *current, request, __func__); +} + +future> +OsConfigZonalServiceConnectionImpl::UpdateOSPolicyAssignment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateOSPolicyAssignment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::osconfig::v1::OSPolicyAssignment>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::osconfig::v1::OSPolicyAssignment>, + polling_policy(*current), __func__); +} + StatusOr OsConfigZonalServiceConnectionImpl::GetOSPolicyAssignment( google::cloud::osconfig::v1::GetOSPolicyAssignmentRequest const& request) { @@ -281,6 +393,63 @@ OsConfigZonalServiceConnectionImpl::DeleteOSPolicyAssignment( polling_policy(*current), __func__); } +StatusOr +OsConfigZonalServiceConnectionImpl::DeleteOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteOSPolicyAssignment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& + request) { + return stub_->DeleteOSPolicyAssignment(context, options, request); + }, + *current, request, __func__); +} + +future< + StatusOr> +OsConfigZonalServiceConnectionImpl::DeleteOSPolicyAssignment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteOSPolicyAssignment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::osconfig::v1::OSPolicyAssignmentOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::osconfig::v1::OSPolicyAssignmentOperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr OsConfigZonalServiceConnectionImpl::GetOSPolicyAssignmentReport( google::cloud::osconfig::v1::GetOSPolicyAssignmentReportRequest const& diff --git a/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.h b/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.h index a5c69fd7b3c4f..dcb423f5a4cc0 100644 --- a/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.h +++ b/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.h @@ -57,11 +57,31 @@ class OsConfigZonalServiceConnectionImpl google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& request) override; + StatusOr CreateOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& + request) override; + + future> + CreateOSPolicyAssignment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateOSPolicyAssignment( google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& request) override; + StatusOr UpdateOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& + request) override; + + future> + UpdateOSPolicyAssignment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetOSPolicyAssignment( google::cloud::osconfig::v1::GetOSPolicyAssignmentRequest const& request) @@ -83,6 +103,17 @@ class OsConfigZonalServiceConnectionImpl google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& request) override; + StatusOr DeleteOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& + request) override; + + future> + DeleteOSPolicyAssignment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetOSPolicyAssignmentReport( google::cloud::osconfig::v1::GetOSPolicyAssignmentReportRequest const& diff --git a/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.cc b/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.cc index 7c837bbe2b2e2..fd2b431b4c103 100644 --- a/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.cc +++ b/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.cc @@ -44,6 +44,31 @@ OsConfigZonalServiceTracingConnection::CreateOSPolicyAssignment( child_->CreateOSPolicyAssignment(request)); } +StatusOr +OsConfigZonalServiceTracingConnection::CreateOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& + request) { + auto span = internal::MakeSpan( + "osconfig_v1::OsConfigZonalServiceConnection::CreateOSPolicyAssignment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateOSPolicyAssignment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +OsConfigZonalServiceTracingConnection::CreateOSPolicyAssignment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "osconfig_v1::OsConfigZonalServiceConnection::CreateOSPolicyAssignment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateOSPolicyAssignment( + google::cloud::ExperimentalTag{}, operation)); +} + future> OsConfigZonalServiceTracingConnection::UpdateOSPolicyAssignment( google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& @@ -55,6 +80,31 @@ OsConfigZonalServiceTracingConnection::UpdateOSPolicyAssignment( child_->UpdateOSPolicyAssignment(request)); } +StatusOr +OsConfigZonalServiceTracingConnection::UpdateOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& + request) { + auto span = internal::MakeSpan( + "osconfig_v1::OsConfigZonalServiceConnection::UpdateOSPolicyAssignment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateOSPolicyAssignment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +OsConfigZonalServiceTracingConnection::UpdateOSPolicyAssignment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "osconfig_v1::OsConfigZonalServiceConnection::UpdateOSPolicyAssignment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateOSPolicyAssignment( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr OsConfigZonalServiceTracingConnection::GetOSPolicyAssignment( google::cloud::osconfig::v1::GetOSPolicyAssignmentRequest const& request) { @@ -102,6 +152,32 @@ OsConfigZonalServiceTracingConnection::DeleteOSPolicyAssignment( child_->DeleteOSPolicyAssignment(request)); } +StatusOr +OsConfigZonalServiceTracingConnection::DeleteOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& + request) { + auto span = internal::MakeSpan( + "osconfig_v1::OsConfigZonalServiceConnection::DeleteOSPolicyAssignment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteOSPolicyAssignment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future< + StatusOr> +OsConfigZonalServiceTracingConnection::DeleteOSPolicyAssignment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "osconfig_v1::OsConfigZonalServiceConnection::DeleteOSPolicyAssignment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteOSPolicyAssignment( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr OsConfigZonalServiceTracingConnection::GetOSPolicyAssignmentReport( google::cloud::osconfig::v1::GetOSPolicyAssignmentReportRequest const& diff --git a/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.h b/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.h index b3fad1a95d2a9..7c95206f41513 100644 --- a/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.h +++ b/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.h @@ -45,11 +45,31 @@ class OsConfigZonalServiceTracingConnection google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& request) override; + StatusOr CreateOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& + request) override; + + future> + CreateOSPolicyAssignment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateOSPolicyAssignment( google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& request) override; + StatusOr UpdateOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& + request) override; + + future> + UpdateOSPolicyAssignment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetOSPolicyAssignment( google::cloud::osconfig::v1::GetOSPolicyAssignmentRequest const& request) @@ -71,6 +91,17 @@ class OsConfigZonalServiceTracingConnection google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& request) override; + StatusOr DeleteOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& + request) override; + + future> + DeleteOSPolicyAssignment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetOSPolicyAssignmentReport( google::cloud::osconfig::v1::GetOSPolicyAssignmentReportRequest const& diff --git a/google/cloud/osconfig/v1/mocks/mock_os_config_zonal_connection.h b/google/cloud/osconfig/v1/mocks/mock_os_config_zonal_connection.h index c0b2366bccd71..3fbacc8bd2b52 100644 --- a/google/cloud/osconfig/v1/mocks/mock_os_config_zonal_connection.h +++ b/google/cloud/osconfig/v1/mocks/mock_os_config_zonal_connection.h @@ -54,6 +54,19 @@ class MockOsConfigZonalServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateOSPolicyAssignment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateOSPolicyAssignment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateOSPolicyAssignment, @@ -61,6 +74,19 @@ class MockOsConfigZonalServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateOSPolicyAssignment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateOSPolicyAssignment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetOSPolicyAssignment, (google::cloud::osconfig::v1::GetOSPolicyAssignmentRequest const& @@ -88,6 +114,21 @@ class MockOsConfigZonalServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteOSPolicyAssignment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteOSPolicyAssignment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetOSPolicyAssignmentReport, diff --git a/google/cloud/osconfig/v1/os_config_connection.h b/google/cloud/osconfig/v1/os_config_connection.h index ad2751fbed287..c07738b5003ca 100644 --- a/google/cloud/osconfig/v1/os_config_connection.h +++ b/google/cloud/osconfig/v1/os_config_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/osconfig/v1/internal/os_config_retry_traits.h" #include "google/cloud/osconfig/v1/os_config_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/osconfig/v1/os_config_zonal_connection.cc b/google/cloud/osconfig/v1/os_config_zonal_connection.cc index 8c885307ebc7d..24873a3398bff 100644 --- a/google/cloud/osconfig/v1/os_config_zonal_connection.cc +++ b/google/cloud/osconfig/v1/os_config_zonal_connection.cc @@ -46,6 +46,22 @@ OsConfigZonalServiceConnection::CreateOSPolicyAssignment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +OsConfigZonalServiceConnection::CreateOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +OsConfigZonalServiceConnection::CreateOSPolicyAssignment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> OsConfigZonalServiceConnection::UpdateOSPolicyAssignment( google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const&) { @@ -54,6 +70,22 @@ OsConfigZonalServiceConnection::UpdateOSPolicyAssignment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +OsConfigZonalServiceConnection::UpdateOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +OsConfigZonalServiceConnection::UpdateOSPolicyAssignment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr OsConfigZonalServiceConnection::GetOSPolicyAssignment( google::cloud::osconfig::v1::GetOSPolicyAssignmentRequest const&) { @@ -85,6 +117,23 @@ OsConfigZonalServiceConnection::DeleteOSPolicyAssignment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +OsConfigZonalServiceConnection::DeleteOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future< + StatusOr> +OsConfigZonalServiceConnection::DeleteOSPolicyAssignment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr OsConfigZonalServiceConnection::GetOSPolicyAssignmentReport( google::cloud::osconfig::v1::GetOSPolicyAssignmentReportRequest const&) { diff --git a/google/cloud/osconfig/v1/os_config_zonal_connection.h b/google/cloud/osconfig/v1/os_config_zonal_connection.h index a5718a9745e32..03508880b835a 100644 --- a/google/cloud/osconfig/v1/os_config_zonal_connection.h +++ b/google/cloud/osconfig/v1/os_config_zonal_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/osconfig/v1/internal/os_config_zonal_retry_traits.h" #include "google/cloud/osconfig/v1/os_config_zonal_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -194,11 +196,29 @@ class OsConfigZonalServiceConnection { google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& request); + virtual StatusOr CreateOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& + request); + + virtual future> + CreateOSPolicyAssignment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateOSPolicyAssignment( google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& request); + virtual StatusOr UpdateOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& + request); + + virtual future> + UpdateOSPolicyAssignment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetOSPolicyAssignment( google::cloud::osconfig::v1::GetOSPolicyAssignmentRequest const& request); @@ -218,6 +238,16 @@ class OsConfigZonalServiceConnection { google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& request); + virtual StatusOr DeleteOSPolicyAssignment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& + request); + + virtual future> + DeleteOSPolicyAssignment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetOSPolicyAssignmentReport( google::cloud::osconfig::v1::GetOSPolicyAssignmentReportRequest const& diff --git a/google/cloud/oslogin/v1/os_login_connection.h b/google/cloud/oslogin/v1/os_login_connection.h index daa53d7d945a3..2c4df6ac2a766 100644 --- a/google/cloud/oslogin/v1/os_login_connection.h +++ b/google/cloud/oslogin/v1/os_login_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/oslogin/v1/internal/os_login_retry_traits.h" #include "google/cloud/oslogin/v1/os_login_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/policysimulator/v1/internal/simulator_connection_impl.cc b/google/cloud/policysimulator/v1/internal/simulator_connection_impl.cc index e3df499d0f1b7..7eb9ad7af5585 100644 --- a/google/cloud/policysimulator/v1/internal/simulator_connection_impl.cc +++ b/google/cloud/policysimulator/v1/internal/simulator_connection_impl.cc @@ -121,6 +121,60 @@ SimulatorConnectionImpl::CreateReplay( polling_policy(*current), __func__); } +StatusOr SimulatorConnectionImpl::CreateReplay( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::policysimulator::v1::CreateReplayRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateReplay(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::policysimulator::v1::CreateReplayRequest const& + request) { + return stub_->CreateReplay(context, options, request); + }, + *current, request, __func__); +} + +future> +SimulatorConnectionImpl::CreateReplay( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateReplay", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::policysimulator::v1::Replay>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::policysimulator::v1::Replay>, + polling_policy(*current), __func__); +} + StreamRange SimulatorConnectionImpl::ListReplayResults( google::cloud::policysimulator::v1::ListReplayResultsRequest request) { diff --git a/google/cloud/policysimulator/v1/internal/simulator_connection_impl.h b/google/cloud/policysimulator/v1/internal/simulator_connection_impl.h index fdf9b964c98fe..8fc54b4079ecb 100644 --- a/google/cloud/policysimulator/v1/internal/simulator_connection_impl.h +++ b/google/cloud/policysimulator/v1/internal/simulator_connection_impl.h @@ -59,6 +59,15 @@ class SimulatorConnectionImpl : public policysimulator_v1::SimulatorConnection { google::cloud::policysimulator::v1::CreateReplayRequest const& request) override; + StatusOr CreateReplay( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::policysimulator::v1::CreateReplayRequest const& request) + override; + + future> CreateReplay( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListReplayResults(google::cloud::policysimulator::v1::ListReplayResultsRequest request) override; diff --git a/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.cc b/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.cc index 37d016d48ec9c..4bf9b5b7bcf54 100644 --- a/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.cc +++ b/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.cc @@ -51,6 +51,30 @@ SimulatorTracingConnection::CreateReplay( return internal::EndSpan(std::move(span), child_->CreateReplay(request)); } +StatusOr +SimulatorTracingConnection::CreateReplay( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::policysimulator::v1::CreateReplayRequest const& request) { + auto span = internal::MakeSpan( + "policysimulator_v1::SimulatorConnection::CreateReplay"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateReplay(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SimulatorTracingConnection::CreateReplay( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "policysimulator_v1::SimulatorConnection::CreateReplay"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateReplay(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange SimulatorTracingConnection::ListReplayResults( google::cloud::policysimulator::v1::ListReplayResultsRequest request) { diff --git a/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.h b/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.h index 1453004125631..a94b2959eb139 100644 --- a/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.h +++ b/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.h @@ -48,6 +48,15 @@ class SimulatorTracingConnection google::cloud::policysimulator::v1::CreateReplayRequest const& request) override; + StatusOr CreateReplay( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::policysimulator::v1::CreateReplayRequest const& request) + override; + + future> CreateReplay( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListReplayResults(google::cloud::policysimulator::v1::ListReplayResultsRequest request) override; diff --git a/google/cloud/policysimulator/v1/mocks/mock_simulator_connection.h b/google/cloud/policysimulator/v1/mocks/mock_simulator_connection.h index eeae70d8e9488..966f8310c74f2 100644 --- a/google/cloud/policysimulator/v1/mocks/mock_simulator_connection.h +++ b/google/cloud/policysimulator/v1/mocks/mock_simulator_connection.h @@ -57,6 +57,18 @@ class MockSimulatorConnection : public policysimulator_v1::SimulatorConnection { (google::cloud::policysimulator::v1::CreateReplayRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateReplay, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::policysimulator::v1::CreateReplayRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateReplay, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListReplayResults, diff --git a/google/cloud/policysimulator/v1/simulator_connection.cc b/google/cloud/policysimulator/v1/simulator_connection.cc index ace72649a0bee..79467f79f9fe2 100644 --- a/google/cloud/policysimulator/v1/simulator_connection.cc +++ b/google/cloud/policysimulator/v1/simulator_connection.cc @@ -52,6 +52,21 @@ SimulatorConnection::CreateReplay( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SimulatorConnection::CreateReplay( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::policysimulator::v1::CreateReplayRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SimulatorConnection::CreateReplay(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange SimulatorConnection::ListReplayResults( google::cloud::policysimulator::v1:: diff --git a/google/cloud/policysimulator/v1/simulator_connection.h b/google/cloud/policysimulator/v1/simulator_connection.h index 837e4235dd8fe..a6317950b42b7 100644 --- a/google/cloud/policysimulator/v1/simulator_connection.h +++ b/google/cloud/policysimulator/v1/simulator_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/policysimulator/v1/internal/simulator_retry_traits.h" #include "google/cloud/policysimulator/v1/simulator_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -191,6 +193,14 @@ class SimulatorConnection { CreateReplay( google::cloud::policysimulator::v1::CreateReplayRequest const& request); + virtual StatusOr CreateReplay( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::policysimulator::v1::CreateReplayRequest const& request); + + virtual future> + CreateReplay(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListReplayResults( google::cloud::policysimulator::v1::ListReplayResultsRequest request); diff --git a/google/cloud/policytroubleshooter/iam/v3/policy_troubleshooter_connection.h b/google/cloud/policytroubleshooter/iam/v3/policy_troubleshooter_connection.h index c5ca4b7587b9e..07cf0f361e7fe 100644 --- a/google/cloud/policytroubleshooter/iam/v3/policy_troubleshooter_connection.h +++ b/google/cloud/policytroubleshooter/iam/v3/policy_troubleshooter_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/policytroubleshooter/iam/v3/internal/policy_troubleshooter_retry_traits.h" #include "google/cloud/policytroubleshooter/iam/v3/policy_troubleshooter_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/policytroubleshooter/v1/iam_checker_connection.h b/google/cloud/policytroubleshooter/v1/iam_checker_connection.h index f51ebef4c44cd..fd53636a79f12 100644 --- a/google/cloud/policytroubleshooter/v1/iam_checker_connection.h +++ b/google/cloud/policytroubleshooter/v1/iam_checker_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/policytroubleshooter/v1/iam_checker_connection_idempotency_policy.h" #include "google/cloud/policytroubleshooter/v1/internal/iam_checker_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/privateca/v1/certificate_authority_connection.cc b/google/cloud/privateca/v1/certificate_authority_connection.cc index 9a0c9541c7655..142c4302d6d38 100644 --- a/google/cloud/privateca/v1/certificate_authority_connection.cc +++ b/google/cloud/privateca/v1/certificate_authority_connection.cc @@ -80,6 +80,23 @@ CertificateAuthorityServiceConnection::ActivateCertificateAuthority( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateAuthorityServiceConnection::ActivateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + ActivateCertificateAuthorityRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateAuthorityServiceConnection::ActivateCertificateAuthority( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CertificateAuthorityServiceConnection::CreateCertificateAuthority( google::cloud::security::privateca::v1:: @@ -89,10 +106,44 @@ CertificateAuthorityServiceConnection::CreateCertificateAuthority( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateAuthorityServiceConnection::CreateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + CreateCertificateAuthorityRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +CertificateAuthorityServiceConnection::CreateCertificateAuthority( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateAuthorityServiceConnection::DisableCertificateAuthority( + google::cloud::security::privateca::v1:: + DisableCertificateAuthorityRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr CertificateAuthorityServiceConnection::DisableCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::security::privateca::v1:: DisableCertificateAuthorityRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateAuthorityServiceConnection::DisableCertificateAuthority( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -107,6 +158,23 @@ CertificateAuthorityServiceConnection::EnableCertificateAuthority( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateAuthorityServiceConnection::EnableCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + EnableCertificateAuthorityRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateAuthorityServiceConnection::EnableCertificateAuthority( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr CertificateAuthorityServiceConnection::FetchCertificateAuthorityCsr( @@ -139,6 +207,23 @@ CertificateAuthorityServiceConnection::UndeleteCertificateAuthority( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateAuthorityServiceConnection::UndeleteCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UndeleteCertificateAuthorityRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateAuthorityServiceConnection::UndeleteCertificateAuthority( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CertificateAuthorityServiceConnection::DeleteCertificateAuthority( google::cloud::security::privateca::v1:: @@ -148,10 +233,44 @@ CertificateAuthorityServiceConnection::DeleteCertificateAuthority( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateAuthorityServiceConnection::DeleteCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DeleteCertificateAuthorityRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +CertificateAuthorityServiceConnection::DeleteCertificateAuthority( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateAuthorityServiceConnection::UpdateCertificateAuthority( + google::cloud::security::privateca::v1:: + UpdateCertificateAuthorityRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr CertificateAuthorityServiceConnection::UpdateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateAuthorityRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateAuthorityServiceConnection::UpdateCertificateAuthority( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -165,6 +284,22 @@ CertificateAuthorityServiceConnection::CreateCaPool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateAuthorityServiceConnection::CreateCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::CreateCaPoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateAuthorityServiceConnection::CreateCaPool( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CertificateAuthorityServiceConnection::UpdateCaPool( google::cloud::security::privateca::v1::UpdateCaPoolRequest const&) { @@ -173,6 +308,22 @@ CertificateAuthorityServiceConnection::UpdateCaPool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateAuthorityServiceConnection::UpdateCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::UpdateCaPoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateAuthorityServiceConnection::UpdateCaPool( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr CertificateAuthorityServiceConnection::GetCaPool( google::cloud::security::privateca::v1::GetCaPoolRequest const&) { @@ -195,6 +346,22 @@ CertificateAuthorityServiceConnection::DeleteCaPool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateAuthorityServiceConnection::DeleteCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::DeleteCaPoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateAuthorityServiceConnection::DeleteCaPool( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr CertificateAuthorityServiceConnection::FetchCaCerts( google::cloud::security::privateca::v1::FetchCaCertsRequest const&) { @@ -226,6 +393,24 @@ CertificateAuthorityServiceConnection::UpdateCertificateRevocationList( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateAuthorityServiceConnection::UpdateCertificateRevocationList( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateRevocationListRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future< + StatusOr> +CertificateAuthorityServiceConnection::UpdateCertificateRevocationList( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CertificateAuthorityServiceConnection::CreateCertificateTemplate( google::cloud::security::privateca::v1:: @@ -235,6 +420,23 @@ CertificateAuthorityServiceConnection::CreateCertificateTemplate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateAuthorityServiceConnection::CreateCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + CreateCertificateTemplateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateAuthorityServiceConnection::CreateCertificateTemplate( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CertificateAuthorityServiceConnection::DeleteCertificateTemplate( google::cloud::security::privateca::v1:: @@ -244,6 +446,23 @@ CertificateAuthorityServiceConnection::DeleteCertificateTemplate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateAuthorityServiceConnection::DeleteCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DeleteCertificateTemplateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateAuthorityServiceConnection::DeleteCertificateTemplate( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr CertificateAuthorityServiceConnection::GetCertificateTemplate( google::cloud::security::privateca::v1:: @@ -268,6 +487,23 @@ CertificateAuthorityServiceConnection::UpdateCertificateTemplate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CertificateAuthorityServiceConnection::UpdateCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateTemplateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CertificateAuthorityServiceConnection::UpdateCertificateTemplate( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeCertificateAuthorityServiceConnection(Options options) { internal::CheckExpectedOptions ActivateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + ActivateCertificateAuthorityRequest const& request); + + virtual future< + StatusOr> + ActivateCertificateAuthority(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> CreateCertificateAuthority( google::cloud::security::privateca::v1:: CreateCertificateAuthorityRequest const& request); + virtual StatusOr CreateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + CreateCertificateAuthorityRequest const& request); + + virtual future< + StatusOr> + CreateCertificateAuthority(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DisableCertificateAuthority( google::cloud::security::privateca::v1:: DisableCertificateAuthorityRequest const& request); + virtual StatusOr DisableCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DisableCertificateAuthorityRequest const& request); + + virtual future< + StatusOr> + DisableCertificateAuthority(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> EnableCertificateAuthority( google::cloud::security::privateca::v1:: EnableCertificateAuthorityRequest const& request); + virtual StatusOr EnableCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + EnableCertificateAuthorityRequest const& request); + + virtual future< + StatusOr> + EnableCertificateAuthority(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr FetchCertificateAuthorityCsr( @@ -274,28 +316,76 @@ class CertificateAuthorityServiceConnection { google::cloud::security::privateca::v1:: UndeleteCertificateAuthorityRequest const& request); + virtual StatusOr UndeleteCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UndeleteCertificateAuthorityRequest const& request); + + virtual future< + StatusOr> + UndeleteCertificateAuthority(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteCertificateAuthority( google::cloud::security::privateca::v1:: DeleteCertificateAuthorityRequest const& request); + virtual StatusOr DeleteCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DeleteCertificateAuthorityRequest const& request); + + virtual future< + StatusOr> + DeleteCertificateAuthority(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UpdateCertificateAuthority( google::cloud::security::privateca::v1:: UpdateCertificateAuthorityRequest const& request); + virtual StatusOr UpdateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateAuthorityRequest const& request); + + virtual future< + StatusOr> + UpdateCertificateAuthority(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateCaPool( google::cloud::security::privateca::v1::CreateCaPoolRequest const& request); + virtual StatusOr CreateCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::CreateCaPoolRequest const& + request); + + virtual future> + CreateCaPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateCaPool( google::cloud::security::privateca::v1::UpdateCaPoolRequest const& request); + virtual StatusOr UpdateCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::UpdateCaPoolRequest const& + request); + + virtual future> + UpdateCaPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetCaPool( google::cloud::security::privateca::v1::GetCaPoolRequest const& request); @@ -309,6 +399,16 @@ class CertificateAuthorityServiceConnection { google::cloud::security::privateca::v1::DeleteCaPoolRequest const& request); + virtual StatusOr DeleteCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::DeleteCaPoolRequest const& + request); + + virtual future< + StatusOr> + DeleteCaPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr FetchCaCerts( google::cloud::security::privateca::v1::FetchCaCertsRequest const& @@ -332,18 +432,50 @@ class CertificateAuthorityServiceConnection { google::cloud::security::privateca::v1:: UpdateCertificateRevocationListRequest const& request); + virtual StatusOr + UpdateCertificateRevocationList( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateRevocationListRequest const& request); + + virtual future> + UpdateCertificateRevocationList( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> CreateCertificateTemplate( google::cloud::security::privateca::v1:: CreateCertificateTemplateRequest const& request); + virtual StatusOr CreateCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + CreateCertificateTemplateRequest const& request); + + virtual future< + StatusOr> + CreateCertificateTemplate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteCertificateTemplate( google::cloud::security::privateca::v1:: DeleteCertificateTemplateRequest const& request); + virtual StatusOr DeleteCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DeleteCertificateTemplateRequest const& request); + + virtual future< + StatusOr> + DeleteCertificateTemplate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetCertificateTemplate(google::cloud::security::privateca::v1:: GetCertificateTemplateRequest const& request); @@ -359,6 +491,16 @@ class CertificateAuthorityServiceConnection { UpdateCertificateTemplate( google::cloud::security::privateca::v1:: UpdateCertificateTemplateRequest const& request); + + virtual StatusOr UpdateCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateTemplateRequest const& request); + + virtual future< + StatusOr> + UpdateCertificateTemplate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.cc b/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.cc index 253afe3fd73e7..ae376d885790d 100644 --- a/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.cc +++ b/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.cc @@ -216,6 +216,62 @@ CertificateAuthorityServiceConnectionImpl::ActivateCertificateAuthority( polling_policy(*current), __func__); } +StatusOr +CertificateAuthorityServiceConnectionImpl::ActivateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + ActivateCertificateAuthorityRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ActivateCertificateAuthority(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::security::privateca::v1:: + ActivateCertificateAuthorityRequest const& request) { + return stub_->ActivateCertificateAuthority(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateAuthorityServiceConnectionImpl::ActivateCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ActivateCertificateAuthority", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::security::privateca::v1::CertificateAuthority>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::security::privateca::v1::CertificateAuthority>, + polling_policy(*current), __func__); +} + future> CertificateAuthorityServiceConnectionImpl::CreateCertificateAuthority( google::cloud::security::privateca::v1:: @@ -256,6 +312,62 @@ CertificateAuthorityServiceConnectionImpl::CreateCertificateAuthority( polling_policy(*current), __func__); } +StatusOr +CertificateAuthorityServiceConnectionImpl::CreateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + CreateCertificateAuthorityRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCertificateAuthority(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::security::privateca::v1:: + CreateCertificateAuthorityRequest const& request) { + return stub_->CreateCertificateAuthority(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateAuthorityServiceConnectionImpl::CreateCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCertificateAuthority", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::security::privateca::v1::CertificateAuthority>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::security::privateca::v1::CertificateAuthority>, + polling_policy(*current), __func__); +} + future> CertificateAuthorityServiceConnectionImpl::DisableCertificateAuthority( google::cloud::security::privateca::v1:: @@ -296,6 +408,62 @@ CertificateAuthorityServiceConnectionImpl::DisableCertificateAuthority( polling_policy(*current), __func__); } +StatusOr +CertificateAuthorityServiceConnectionImpl::DisableCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DisableCertificateAuthorityRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DisableCertificateAuthority(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::security::privateca::v1:: + DisableCertificateAuthorityRequest const& request) { + return stub_->DisableCertificateAuthority(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateAuthorityServiceConnectionImpl::DisableCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DisableCertificateAuthority", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::security::privateca::v1::CertificateAuthority>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::security::privateca::v1::CertificateAuthority>, + polling_policy(*current), __func__); +} + future> CertificateAuthorityServiceConnectionImpl::EnableCertificateAuthority( google::cloud::security::privateca::v1:: @@ -336,6 +504,62 @@ CertificateAuthorityServiceConnectionImpl::EnableCertificateAuthority( polling_policy(*current), __func__); } +StatusOr +CertificateAuthorityServiceConnectionImpl::EnableCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + EnableCertificateAuthorityRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->EnableCertificateAuthority(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::security::privateca::v1:: + EnableCertificateAuthorityRequest const& request) { + return stub_->EnableCertificateAuthority(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateAuthorityServiceConnectionImpl::EnableCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to EnableCertificateAuthority", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::security::privateca::v1::CertificateAuthority>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::security::privateca::v1::CertificateAuthority>, + polling_policy(*current), __func__); +} + StatusOr CertificateAuthorityServiceConnectionImpl::FetchCertificateAuthorityCsr( @@ -450,6 +674,62 @@ CertificateAuthorityServiceConnectionImpl::UndeleteCertificateAuthority( polling_policy(*current), __func__); } +StatusOr +CertificateAuthorityServiceConnectionImpl::UndeleteCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UndeleteCertificateAuthorityRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UndeleteCertificateAuthority(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::security::privateca::v1:: + UndeleteCertificateAuthorityRequest const& request) { + return stub_->UndeleteCertificateAuthority(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateAuthorityServiceConnectionImpl::UndeleteCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UndeleteCertificateAuthority", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::security::privateca::v1::CertificateAuthority>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::security::privateca::v1::CertificateAuthority>, + polling_policy(*current), __func__); +} + future> CertificateAuthorityServiceConnectionImpl::DeleteCertificateAuthority( google::cloud::security::privateca::v1:: @@ -490,6 +770,62 @@ CertificateAuthorityServiceConnectionImpl::DeleteCertificateAuthority( polling_policy(*current), __func__); } +StatusOr +CertificateAuthorityServiceConnectionImpl::DeleteCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DeleteCertificateAuthorityRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCertificateAuthority(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::security::privateca::v1:: + DeleteCertificateAuthorityRequest const& request) { + return stub_->DeleteCertificateAuthority(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateAuthorityServiceConnectionImpl::DeleteCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCertificateAuthority", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::security::privateca::v1::CertificateAuthority>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::security::privateca::v1::CertificateAuthority>, + polling_policy(*current), __func__); +} + future> CertificateAuthorityServiceConnectionImpl::UpdateCertificateAuthority( google::cloud::security::privateca::v1:: @@ -525,31 +861,144 @@ CertificateAuthorityServiceConnectionImpl::UpdateCertificateAuthority( std::move(options), request); }, &google::cloud::internal::ExtractLongRunningResultResponse< - google::cloud::security::privateca::v1::CertificateAuthority>, + google::cloud::security::privateca::v1::CertificateAuthority>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +CertificateAuthorityServiceConnectionImpl::UpdateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateAuthorityRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCertificateAuthority(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::security::privateca::v1:: + UpdateCertificateAuthorityRequest const& request) { + return stub_->UpdateCertificateAuthority(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateAuthorityServiceConnectionImpl::UpdateCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCertificateAuthority", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::security::privateca::v1::CertificateAuthority>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::security::privateca::v1::CertificateAuthority>, + polling_policy(*current), __func__); +} + +future> +CertificateAuthorityServiceConnectionImpl::CreateCaPool( + google::cloud::security::privateca::v1::CreateCaPoolRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->CreateCaPool(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::security::privateca::v1::CaPool>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::security::privateca::v1::CreateCaPoolRequest const& + request) { + return stub->AsyncCreateCaPool(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::security::privateca::v1::CaPool>, retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } -future> +StatusOr CertificateAuthorityServiceConnectionImpl::CreateCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::security::privateca::v1::CreateCaPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->CreateCaPool(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::security::privateca::v1::CaPool>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::security::privateca::v1::CreateCaPoolRequest const& - request) { - return stub->AsyncCreateCaPool(cq, std::move(context), - std::move(options), request); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCaPool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::security::privateca::v1::CreateCaPoolRequest const& + request) { + return stub_->CreateCaPool(context, options, request); }, + *current, request, __func__); +} + +future> +CertificateAuthorityServiceConnectionImpl::CreateCaPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCaPool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::security::privateca::v1::CaPool>( + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -567,7 +1016,6 @@ CertificateAuthorityServiceConnectionImpl::CreateCaPool( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::security::privateca::v1::CaPool>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } @@ -612,6 +1060,62 @@ CertificateAuthorityServiceConnectionImpl::UpdateCaPool( polling_policy(*current), __func__); } +StatusOr +CertificateAuthorityServiceConnectionImpl::UpdateCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::UpdateCaPoolRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCaPool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::security::privateca::v1::UpdateCaPoolRequest const& + request) { + return stub_->UpdateCaPool(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateAuthorityServiceConnectionImpl::UpdateCaPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCaPool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::security::privateca::v1::CaPool>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::security::privateca::v1::CaPool>, + polling_policy(*current), __func__); +} + StatusOr CertificateAuthorityServiceConnectionImpl::GetCaPool( google::cloud::security::privateca::v1::GetCaPoolRequest const& request) { @@ -703,6 +1207,62 @@ CertificateAuthorityServiceConnectionImpl::DeleteCaPool( polling_policy(*current), __func__); } +StatusOr +CertificateAuthorityServiceConnectionImpl::DeleteCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::DeleteCaPoolRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCaPool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::security::privateca::v1::DeleteCaPoolRequest const& + request) { + return stub_->DeleteCaPool(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateAuthorityServiceConnectionImpl::DeleteCaPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCaPool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::security::privateca::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::security::privateca::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr CertificateAuthorityServiceConnectionImpl::FetchCaCerts( google::cloud::security::privateca::v1::FetchCaCertsRequest const& @@ -819,6 +1379,64 @@ CertificateAuthorityServiceConnectionImpl::UpdateCertificateRevocationList( polling_policy(*current), __func__); } +StatusOr +CertificateAuthorityServiceConnectionImpl::UpdateCertificateRevocationList( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateRevocationListRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCertificateRevocationList(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::security::privateca::v1:: + UpdateCertificateRevocationListRequest const& request) { + return stub_->UpdateCertificateRevocationList(context, options, + request); + }, + *current, request, __func__); +} + +future< + StatusOr> +CertificateAuthorityServiceConnectionImpl::UpdateCertificateRevocationList( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCertificateRevocationList", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::security::privateca::v1::CertificateRevocationList>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::security::privateca::v1::CertificateRevocationList>, + polling_policy(*current), __func__); +} + future> CertificateAuthorityServiceConnectionImpl::CreateCertificateTemplate( google::cloud::security::privateca::v1:: @@ -859,6 +1477,62 @@ CertificateAuthorityServiceConnectionImpl::CreateCertificateTemplate( polling_policy(*current), __func__); } +StatusOr +CertificateAuthorityServiceConnectionImpl::CreateCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + CreateCertificateTemplateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCertificateTemplate(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::security::privateca::v1:: + CreateCertificateTemplateRequest const& request) { + return stub_->CreateCertificateTemplate(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateAuthorityServiceConnectionImpl::CreateCertificateTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCertificateTemplate", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::security::privateca::v1::CertificateTemplate>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::security::privateca::v1::CertificateTemplate>, + polling_policy(*current), __func__); +} + future> CertificateAuthorityServiceConnectionImpl::DeleteCertificateTemplate( google::cloud::security::privateca::v1:: @@ -899,6 +1573,62 @@ CertificateAuthorityServiceConnectionImpl::DeleteCertificateTemplate( polling_policy(*current), __func__); } +StatusOr +CertificateAuthorityServiceConnectionImpl::DeleteCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DeleteCertificateTemplateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCertificateTemplate(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::security::privateca::v1:: + DeleteCertificateTemplateRequest const& request) { + return stub_->DeleteCertificateTemplate(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateAuthorityServiceConnectionImpl::DeleteCertificateTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCertificateTemplate", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::security::privateca::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::security::privateca::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr CertificateAuthorityServiceConnectionImpl::GetCertificateTemplate( google::cloud::security::privateca::v1::GetCertificateTemplateRequest const& @@ -994,6 +1724,62 @@ CertificateAuthorityServiceConnectionImpl::UpdateCertificateTemplate( polling_policy(*current), __func__); } +StatusOr +CertificateAuthorityServiceConnectionImpl::UpdateCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateTemplateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCertificateTemplate(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::security::privateca::v1:: + UpdateCertificateTemplateRequest const& request) { + return stub_->UpdateCertificateTemplate(context, options, request); + }, + *current, request, __func__); +} + +future> +CertificateAuthorityServiceConnectionImpl::UpdateCertificateTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCertificateTemplate", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::security::privateca::v1::CertificateTemplate>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::security::privateca::v1::CertificateTemplate>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace privateca_v1_internal } // namespace cloud diff --git a/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.h b/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.h index 9664a2c63c8bc..8241d3ad6c033 100644 --- a/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.h +++ b/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.h @@ -82,21 +82,61 @@ class CertificateAuthorityServiceConnectionImpl google::cloud::security::privateca::v1:: ActivateCertificateAuthorityRequest const& request) override; + StatusOr ActivateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + ActivateCertificateAuthorityRequest const& request) override; + + future> + ActivateCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateCertificateAuthority( google::cloud::security::privateca::v1:: CreateCertificateAuthorityRequest const& request) override; + StatusOr CreateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + CreateCertificateAuthorityRequest const& request) override; + + future> + CreateCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DisableCertificateAuthority( google::cloud::security::privateca::v1:: DisableCertificateAuthorityRequest const& request) override; + StatusOr DisableCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DisableCertificateAuthorityRequest const& request) override; + + future> + DisableCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> EnableCertificateAuthority( google::cloud::security::privateca::v1:: EnableCertificateAuthorityRequest const& request) override; + StatusOr EnableCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + EnableCertificateAuthorityRequest const& request) override; + + future> + EnableCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr FetchCertificateAuthorityCsr( @@ -118,24 +158,72 @@ class CertificateAuthorityServiceConnectionImpl google::cloud::security::privateca::v1:: UndeleteCertificateAuthorityRequest const& request) override; + StatusOr UndeleteCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UndeleteCertificateAuthorityRequest const& request) override; + + future> + UndeleteCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCertificateAuthority( google::cloud::security::privateca::v1:: DeleteCertificateAuthorityRequest const& request) override; + StatusOr DeleteCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DeleteCertificateAuthorityRequest const& request) override; + + future> + DeleteCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCertificateAuthority( google::cloud::security::privateca::v1:: UpdateCertificateAuthorityRequest const& request) override; + StatusOr UpdateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateAuthorityRequest const& request) override; + + future> + UpdateCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateCaPool( google::cloud::security::privateca::v1::CreateCaPoolRequest const& request) override; + StatusOr CreateCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::CreateCaPoolRequest const& + request) override; + + future> CreateCaPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCaPool( google::cloud::security::privateca::v1::UpdateCaPoolRequest const& request) override; + StatusOr UpdateCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::UpdateCaPoolRequest const& + request) override; + + future> UpdateCaPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetCaPool( google::cloud::security::privateca::v1::GetCaPoolRequest const& request) override; @@ -149,6 +237,15 @@ class CertificateAuthorityServiceConnectionImpl google::cloud::security::privateca::v1::DeleteCaPoolRequest const& request) override; + StatusOr DeleteCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::DeleteCaPoolRequest const& + request) override; + + future> + DeleteCaPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr FetchCaCerts( google::cloud::security::privateca::v1::FetchCaCertsRequest const& @@ -170,16 +267,47 @@ class CertificateAuthorityServiceConnectionImpl google::cloud::security::privateca::v1:: UpdateCertificateRevocationListRequest const& request) override; + StatusOr UpdateCertificateRevocationList( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateRevocationListRequest const& request) override; + + future> + UpdateCertificateRevocationList( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateCertificateTemplate( google::cloud::security::privateca::v1:: CreateCertificateTemplateRequest const& request) override; + StatusOr CreateCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + CreateCertificateTemplateRequest const& request) override; + + future> + CreateCertificateTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCertificateTemplate( google::cloud::security::privateca::v1:: DeleteCertificateTemplateRequest const& request) override; + StatusOr DeleteCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DeleteCertificateTemplateRequest const& request) override; + + future> + DeleteCertificateTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetCertificateTemplate( google::cloud::security::privateca::v1:: @@ -195,6 +323,16 @@ class CertificateAuthorityServiceConnectionImpl google::cloud::security::privateca::v1:: UpdateCertificateTemplateRequest const& request) override; + StatusOr UpdateCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateTemplateRequest const& request) override; + + future> + UpdateCertificateTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.cc b/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.cc index 7b47379438f75..723100578e62a 100644 --- a/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.cc +++ b/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.cc @@ -99,6 +99,33 @@ CertificateAuthorityServiceTracingConnection::ActivateCertificateAuthority( child_->ActivateCertificateAuthority(request)); } +StatusOr +CertificateAuthorityServiceTracingConnection::ActivateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + ActivateCertificateAuthorityRequest const& request) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "ActivateCertificateAuthority"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ActivateCertificateAuthority( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateAuthorityServiceTracingConnection::ActivateCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "ActivateCertificateAuthority"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ActivateCertificateAuthority( + google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateAuthorityServiceTracingConnection::CreateCertificateAuthority( google::cloud::security::privateca::v1:: @@ -111,6 +138,33 @@ CertificateAuthorityServiceTracingConnection::CreateCertificateAuthority( child_->CreateCertificateAuthority(request)); } +StatusOr +CertificateAuthorityServiceTracingConnection::CreateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + CreateCertificateAuthorityRequest const& request) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "CreateCertificateAuthority"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateCertificateAuthority( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateAuthorityServiceTracingConnection::CreateCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "CreateCertificateAuthority"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateCertificateAuthority( + google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateAuthorityServiceTracingConnection::DisableCertificateAuthority( google::cloud::security::privateca::v1:: @@ -123,6 +177,33 @@ CertificateAuthorityServiceTracingConnection::DisableCertificateAuthority( child_->DisableCertificateAuthority(request)); } +StatusOr +CertificateAuthorityServiceTracingConnection::DisableCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DisableCertificateAuthorityRequest const& request) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "DisableCertificateAuthority"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DisableCertificateAuthority( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateAuthorityServiceTracingConnection::DisableCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "DisableCertificateAuthority"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DisableCertificateAuthority( + google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateAuthorityServiceTracingConnection::EnableCertificateAuthority( google::cloud::security::privateca::v1:: @@ -135,6 +216,33 @@ CertificateAuthorityServiceTracingConnection::EnableCertificateAuthority( child_->EnableCertificateAuthority(request)); } +StatusOr +CertificateAuthorityServiceTracingConnection::EnableCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + EnableCertificateAuthorityRequest const& request) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "EnableCertificateAuthority"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->EnableCertificateAuthority( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateAuthorityServiceTracingConnection::EnableCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "EnableCertificateAuthority"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->EnableCertificateAuthority( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr CertificateAuthorityServiceTracingConnection::FetchCertificateAuthorityCsr( @@ -185,6 +293,33 @@ CertificateAuthorityServiceTracingConnection::UndeleteCertificateAuthority( child_->UndeleteCertificateAuthority(request)); } +StatusOr +CertificateAuthorityServiceTracingConnection::UndeleteCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UndeleteCertificateAuthorityRequest const& request) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "UndeleteCertificateAuthority"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UndeleteCertificateAuthority( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateAuthorityServiceTracingConnection::UndeleteCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "UndeleteCertificateAuthority"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UndeleteCertificateAuthority( + google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateAuthorityServiceTracingConnection::DeleteCertificateAuthority( google::cloud::security::privateca::v1:: @@ -197,6 +332,33 @@ CertificateAuthorityServiceTracingConnection::DeleteCertificateAuthority( child_->DeleteCertificateAuthority(request)); } +StatusOr +CertificateAuthorityServiceTracingConnection::DeleteCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DeleteCertificateAuthorityRequest const& request) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "DeleteCertificateAuthority"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteCertificateAuthority( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateAuthorityServiceTracingConnection::DeleteCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "DeleteCertificateAuthority"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteCertificateAuthority( + google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateAuthorityServiceTracingConnection::UpdateCertificateAuthority( google::cloud::security::privateca::v1:: @@ -209,6 +371,33 @@ CertificateAuthorityServiceTracingConnection::UpdateCertificateAuthority( child_->UpdateCertificateAuthority(request)); } +StatusOr +CertificateAuthorityServiceTracingConnection::UpdateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateAuthorityRequest const& request) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "UpdateCertificateAuthority"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateCertificateAuthority( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateAuthorityServiceTracingConnection::UpdateCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "UpdateCertificateAuthority"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateCertificateAuthority( + google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateAuthorityServiceTracingConnection::CreateCaPool( google::cloud::security::privateca::v1::CreateCaPoolRequest const& @@ -219,6 +408,31 @@ CertificateAuthorityServiceTracingConnection::CreateCaPool( return internal::EndSpan(std::move(span), child_->CreateCaPool(request)); } +StatusOr +CertificateAuthorityServiceTracingConnection::CreateCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::CreateCaPoolRequest const& + request) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::CreateCaPool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateCaPool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateAuthorityServiceTracingConnection::CreateCaPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::CreateCaPool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateCaPool(google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateAuthorityServiceTracingConnection::UpdateCaPool( google::cloud::security::privateca::v1::UpdateCaPoolRequest const& @@ -229,6 +443,31 @@ CertificateAuthorityServiceTracingConnection::UpdateCaPool( return internal::EndSpan(std::move(span), child_->UpdateCaPool(request)); } +StatusOr +CertificateAuthorityServiceTracingConnection::UpdateCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::UpdateCaPoolRequest const& + request) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::UpdateCaPool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateCaPool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateAuthorityServiceTracingConnection::UpdateCaPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::UpdateCaPool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateCaPool(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr CertificateAuthorityServiceTracingConnection::GetCaPool( google::cloud::security::privateca::v1::GetCaPoolRequest const& request) { @@ -260,6 +499,31 @@ CertificateAuthorityServiceTracingConnection::DeleteCaPool( return internal::EndSpan(std::move(span), child_->DeleteCaPool(request)); } +StatusOr +CertificateAuthorityServiceTracingConnection::DeleteCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::DeleteCaPoolRequest const& + request) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::DeleteCaPool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteCaPool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateAuthorityServiceTracingConnection::DeleteCaPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::DeleteCaPool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteCaPool(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr CertificateAuthorityServiceTracingConnection::FetchCaCerts( google::cloud::security::privateca::v1::FetchCaCertsRequest const& @@ -309,6 +573,34 @@ CertificateAuthorityServiceTracingConnection::UpdateCertificateRevocationList( child_->UpdateCertificateRevocationList(request)); } +StatusOr +CertificateAuthorityServiceTracingConnection::UpdateCertificateRevocationList( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateRevocationListRequest const& request) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "UpdateCertificateRevocationList"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateCertificateRevocationList( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future< + StatusOr> +CertificateAuthorityServiceTracingConnection::UpdateCertificateRevocationList( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "UpdateCertificateRevocationList"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateCertificateRevocationList( + google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateAuthorityServiceTracingConnection::CreateCertificateTemplate( google::cloud::security::privateca::v1:: @@ -321,6 +613,33 @@ CertificateAuthorityServiceTracingConnection::CreateCertificateTemplate( child_->CreateCertificateTemplate(request)); } +StatusOr +CertificateAuthorityServiceTracingConnection::CreateCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + CreateCertificateTemplateRequest const& request) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "CreateCertificateTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateCertificateTemplate( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateAuthorityServiceTracingConnection::CreateCertificateTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "CreateCertificateTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateCertificateTemplate( + google::cloud::ExperimentalTag{}, operation)); +} + future> CertificateAuthorityServiceTracingConnection::DeleteCertificateTemplate( google::cloud::security::privateca::v1:: @@ -333,6 +652,33 @@ CertificateAuthorityServiceTracingConnection::DeleteCertificateTemplate( child_->DeleteCertificateTemplate(request)); } +StatusOr +CertificateAuthorityServiceTracingConnection::DeleteCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DeleteCertificateTemplateRequest const& request) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "DeleteCertificateTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteCertificateTemplate( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateAuthorityServiceTracingConnection::DeleteCertificateTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "DeleteCertificateTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteCertificateTemplate( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr CertificateAuthorityServiceTracingConnection::GetCertificateTemplate( google::cloud::security::privateca::v1::GetCertificateTemplateRequest const& @@ -370,6 +716,33 @@ CertificateAuthorityServiceTracingConnection::UpdateCertificateTemplate( child_->UpdateCertificateTemplate(request)); } +StatusOr +CertificateAuthorityServiceTracingConnection::UpdateCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateTemplateRequest const& request) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "UpdateCertificateTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateCertificateTemplate( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CertificateAuthorityServiceTracingConnection::UpdateCertificateTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "privateca_v1::CertificateAuthorityServiceConnection::" + "UpdateCertificateTemplate"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateCertificateTemplate( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.h b/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.h index 55387a9b3b54c..1e5fe7e3b2093 100644 --- a/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.h +++ b/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.h @@ -70,21 +70,61 @@ class CertificateAuthorityServiceTracingConnection google::cloud::security::privateca::v1:: ActivateCertificateAuthorityRequest const& request) override; + StatusOr ActivateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + ActivateCertificateAuthorityRequest const& request) override; + + future> + ActivateCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateCertificateAuthority( google::cloud::security::privateca::v1:: CreateCertificateAuthorityRequest const& request) override; + StatusOr CreateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + CreateCertificateAuthorityRequest const& request) override; + + future> + CreateCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DisableCertificateAuthority( google::cloud::security::privateca::v1:: DisableCertificateAuthorityRequest const& request) override; + StatusOr DisableCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DisableCertificateAuthorityRequest const& request) override; + + future> + DisableCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> EnableCertificateAuthority( google::cloud::security::privateca::v1:: EnableCertificateAuthorityRequest const& request) override; + StatusOr EnableCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + EnableCertificateAuthorityRequest const& request) override; + + future> + EnableCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr FetchCertificateAuthorityCsr( @@ -106,24 +146,72 @@ class CertificateAuthorityServiceTracingConnection google::cloud::security::privateca::v1:: UndeleteCertificateAuthorityRequest const& request) override; + StatusOr UndeleteCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UndeleteCertificateAuthorityRequest const& request) override; + + future> + UndeleteCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCertificateAuthority( google::cloud::security::privateca::v1:: DeleteCertificateAuthorityRequest const& request) override; + StatusOr DeleteCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DeleteCertificateAuthorityRequest const& request) override; + + future> + DeleteCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCertificateAuthority( google::cloud::security::privateca::v1:: UpdateCertificateAuthorityRequest const& request) override; + StatusOr UpdateCertificateAuthority( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateAuthorityRequest const& request) override; + + future> + UpdateCertificateAuthority( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateCaPool( google::cloud::security::privateca::v1::CreateCaPoolRequest const& request) override; + StatusOr CreateCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::CreateCaPoolRequest const& + request) override; + + future> CreateCaPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCaPool( google::cloud::security::privateca::v1::UpdateCaPoolRequest const& request) override; + StatusOr UpdateCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::UpdateCaPoolRequest const& + request) override; + + future> UpdateCaPool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetCaPool( google::cloud::security::privateca::v1::GetCaPoolRequest const& request) override; @@ -137,6 +225,15 @@ class CertificateAuthorityServiceTracingConnection google::cloud::security::privateca::v1::DeleteCaPoolRequest const& request) override; + StatusOr DeleteCaPool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::DeleteCaPoolRequest const& + request) override; + + future> + DeleteCaPool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr FetchCaCerts( google::cloud::security::privateca::v1::FetchCaCertsRequest const& @@ -158,16 +255,47 @@ class CertificateAuthorityServiceTracingConnection google::cloud::security::privateca::v1:: UpdateCertificateRevocationListRequest const& request) override; + StatusOr UpdateCertificateRevocationList( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateRevocationListRequest const& request) override; + + future> + UpdateCertificateRevocationList( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateCertificateTemplate( google::cloud::security::privateca::v1:: CreateCertificateTemplateRequest const& request) override; + StatusOr CreateCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + CreateCertificateTemplateRequest const& request) override; + + future> + CreateCertificateTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCertificateTemplate( google::cloud::security::privateca::v1:: DeleteCertificateTemplateRequest const& request) override; + StatusOr DeleteCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DeleteCertificateTemplateRequest const& request) override; + + future> + DeleteCertificateTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetCertificateTemplate( google::cloud::security::privateca::v1:: @@ -183,6 +311,16 @@ class CertificateAuthorityServiceTracingConnection google::cloud::security::privateca::v1:: UpdateCertificateTemplateRequest const& request) override; + StatusOr UpdateCertificateTemplate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateTemplateRequest const& request) override; + + future> + UpdateCertificateTemplate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/privateca/v1/mocks/mock_certificate_authority_connection.h b/google/cloud/privateca/v1/mocks/mock_certificate_authority_connection.h index cfa556e937ae3..3110a7330ef2d 100644 --- a/google/cloud/privateca/v1/mocks/mock_certificate_authority_connection.h +++ b/google/cloud/privateca/v1/mocks/mock_certificate_authority_connection.h @@ -89,6 +89,21 @@ class MockCertificateAuthorityServiceConnection ActivateCertificateAuthorityRequest const& request), (override)); + MOCK_METHOD(StatusOr, + ActivateCertificateAuthority, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + ActivateCertificateAuthorityRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ActivateCertificateAuthority, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -97,6 +112,21 @@ class MockCertificateAuthorityServiceConnection CreateCertificateAuthorityRequest const& request), (override)); + MOCK_METHOD(StatusOr, + CreateCertificateAuthority, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + CreateCertificateAuthorityRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateCertificateAuthority, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -105,6 +135,21 @@ class MockCertificateAuthorityServiceConnection DisableCertificateAuthorityRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DisableCertificateAuthority, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DisableCertificateAuthorityRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DisableCertificateAuthority, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -113,6 +158,21 @@ class MockCertificateAuthorityServiceConnection EnableCertificateAuthorityRequest const& request), (override)); + MOCK_METHOD(StatusOr, + EnableCertificateAuthority, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + EnableCertificateAuthorityRequest const& request), + (override)); + + MOCK_METHOD( + future>, + EnableCertificateAuthority, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, FetchCertificateAuthorityCsr, @@ -143,6 +203,21 @@ class MockCertificateAuthorityServiceConnection UndeleteCertificateAuthorityRequest const& request), (override)); + MOCK_METHOD(StatusOr, + UndeleteCertificateAuthority, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UndeleteCertificateAuthorityRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UndeleteCertificateAuthority, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -151,6 +226,21 @@ class MockCertificateAuthorityServiceConnection DeleteCertificateAuthorityRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteCertificateAuthority, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DeleteCertificateAuthorityRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteCertificateAuthority, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -159,6 +249,21 @@ class MockCertificateAuthorityServiceConnection UpdateCertificateAuthorityRequest const& request), (override)); + MOCK_METHOD(StatusOr, + UpdateCertificateAuthority, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateAuthorityRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UpdateCertificateAuthority, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateCaPool, @@ -166,6 +271,19 @@ class MockCertificateAuthorityServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateCaPool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::CreateCaPoolRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateCaPool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateCaPool, @@ -173,6 +291,19 @@ class MockCertificateAuthorityServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateCaPool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::UpdateCaPoolRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateCaPool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetCaPool, (google::cloud::security::privateca::v1::GetCaPoolRequest const& request), @@ -192,6 +323,21 @@ class MockCertificateAuthorityServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteCaPool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1::DeleteCaPoolRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteCaPool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, FetchCaCerts, @@ -223,6 +369,21 @@ class MockCertificateAuthorityServiceConnection UpdateCertificateRevocationListRequest const& request), (override)); + MOCK_METHOD(StatusOr, + UpdateCertificateRevocationList, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateRevocationListRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UpdateCertificateRevocationList, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, CreateCertificateTemplate, @@ -230,6 +391,20 @@ class MockCertificateAuthorityServiceConnection CreateCertificateTemplateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + CreateCertificateTemplate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + CreateCertificateTemplateRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateCertificateTemplate, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -238,6 +413,21 @@ class MockCertificateAuthorityServiceConnection DeleteCertificateTemplateRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteCertificateTemplate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + DeleteCertificateTemplateRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteCertificateTemplate, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetCertificateTemplate, @@ -259,6 +449,20 @@ class MockCertificateAuthorityServiceConnection (google::cloud::security::privateca::v1:: UpdateCertificateTemplateRequest const& request), (override)); + + MOCK_METHOD(StatusOr, + UpdateCertificateTemplate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::security::privateca::v1:: + UpdateCertificateTemplateRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateCertificateTemplate, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/profiler/v2/export_connection.h b/google/cloud/profiler/v2/export_connection.h index aa81ec7c35a7d..98f17d981dd25 100644 --- a/google/cloud/profiler/v2/export_connection.h +++ b/google/cloud/profiler/v2/export_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/profiler/v2/export_connection_idempotency_policy.h" #include "google/cloud/profiler/v2/internal/export_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/profiler/v2/profiler_connection.h b/google/cloud/profiler/v2/profiler_connection.h index 9b4402c3a95c4..fd5c4ec7fc2d9 100644 --- a/google/cloud/profiler/v2/profiler_connection.h +++ b/google/cloud/profiler/v2/profiler_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/profiler/v2/internal/profiler_retry_traits.h" #include "google/cloud/profiler/v2/profiler_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/publicca/v1/public_certificate_authority_connection.h b/google/cloud/publicca/v1/public_certificate_authority_connection.h index eb46074793e50..19fc0d8790c46 100644 --- a/google/cloud/publicca/v1/public_certificate_authority_connection.h +++ b/google/cloud/publicca/v1/public_certificate_authority_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/publicca/v1/internal/public_certificate_authority_retry_traits.h" #include "google/cloud/publicca/v1/public_certificate_authority_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/pubsub/admin/subscription_admin_connection.h b/google/cloud/pubsub/admin/subscription_admin_connection.h index 457be81453ea9..d0f921af6bd11 100644 --- a/google/cloud/pubsub/admin/subscription_admin_connection.h +++ b/google/cloud/pubsub/admin/subscription_admin_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/pubsub/admin/internal/subscription_admin_retry_traits.h" #include "google/cloud/pubsub/admin/subscription_admin_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/pubsub/admin/topic_admin_connection.h b/google/cloud/pubsub/admin/topic_admin_connection.h index 4b4f64c8884cd..af8b6b63fbbf4 100644 --- a/google/cloud/pubsub/admin/topic_admin_connection.h +++ b/google/cloud/pubsub/admin/topic_admin_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/pubsub/admin/internal/topic_admin_retry_traits.h" #include "google/cloud/pubsub/admin/topic_admin_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/pubsub/schema_connection.h b/google/cloud/pubsub/schema_connection.h index 8dae5f0d4765e..a28301314bacc 100644 --- a/google/cloud/pubsub/schema_connection.h +++ b/google/cloud/pubsub/schema_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/pubsub/internal/schema_retry_traits.h" #include "google/cloud/pubsub/schema_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/pubsublite/admin_connection.cc b/google/cloud/pubsublite/admin_connection.cc index c6428717acd17..a2be6bc7df704 100644 --- a/google/cloud/pubsublite/admin_connection.cc +++ b/google/cloud/pubsublite/admin_connection.cc @@ -120,6 +120,22 @@ AdminServiceConnection::SeekSubscription( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AdminServiceConnection::SeekSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::pubsublite::v1::SeekSubscriptionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AdminServiceConnection::SeekSubscription( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr AdminServiceConnection::CreateReservation( google::cloud::pubsublite::v1::CreateReservationRequest const&) { diff --git a/google/cloud/pubsublite/admin_connection.h b/google/cloud/pubsublite/admin_connection.h index ce7b079cf7a24..45125ce841f22 100644 --- a/google/cloud/pubsublite/admin_connection.h +++ b/google/cloud/pubsublite/admin_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/pubsublite/admin_connection_idempotency_policy.h" #include "google/cloud/pubsublite/internal/admin_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -232,6 +234,15 @@ class AdminServiceConnection { SeekSubscription( google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request); + virtual StatusOr SeekSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request); + + virtual future< + StatusOr> + SeekSubscription(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateReservation( google::cloud::pubsublite::v1::CreateReservationRequest const& request); diff --git a/google/cloud/pubsublite/internal/admin_connection_impl.cc b/google/cloud/pubsublite/internal/admin_connection_impl.cc index d7dd24e73d288..b3f199d2e1262 100644 --- a/google/cloud/pubsublite/internal/admin_connection_impl.cc +++ b/google/cloud/pubsublite/internal/admin_connection_impl.cc @@ -336,6 +336,60 @@ AdminServiceConnectionImpl::SeekSubscription( polling_policy(*current), __func__); } +StatusOr +AdminServiceConnectionImpl::SeekSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SeekSubscription(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::pubsublite::v1::SeekSubscriptionRequest const& + request) { + return stub_->SeekSubscription(context, options, request); + }, + *current, request, __func__); +} + +future> +AdminServiceConnectionImpl::SeekSubscription( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to SeekSubscription", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::pubsublite::v1::SeekSubscriptionResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::pubsublite::v1::SeekSubscriptionResponse>, + polling_policy(*current), __func__); +} + StatusOr AdminServiceConnectionImpl::CreateReservation( google::cloud::pubsublite::v1::CreateReservationRequest const& request) { diff --git a/google/cloud/pubsublite/internal/admin_connection_impl.h b/google/cloud/pubsublite/internal/admin_connection_impl.h index cc0d03d64ccac..3fd6e01aa2f30 100644 --- a/google/cloud/pubsublite/internal/admin_connection_impl.h +++ b/google/cloud/pubsublite/internal/admin_connection_impl.h @@ -99,6 +99,15 @@ class AdminServiceConnectionImpl : public pubsublite::AdminServiceConnection { SeekSubscription(google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request) override; + StatusOr SeekSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request) + override; + + future> + SeekSubscription(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateReservation( google::cloud::pubsublite::v1::CreateReservationRequest const& request) override; diff --git a/google/cloud/pubsublite/internal/admin_tracing_connection.cc b/google/cloud/pubsublite/internal/admin_tracing_connection.cc index 851897d1fb799..44a96db1ae408 100644 --- a/google/cloud/pubsublite/internal/admin_tracing_connection.cc +++ b/google/cloud/pubsublite/internal/admin_tracing_connection.cc @@ -154,6 +154,30 @@ AdminServiceTracingConnection::SeekSubscription( return internal::EndSpan(std::move(span), child_->SeekSubscription(request)); } +StatusOr +AdminServiceTracingConnection::SeekSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request) { + auto span = internal::MakeSpan( + "pubsublite::AdminServiceConnection::SeekSubscription"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SeekSubscription(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AdminServiceTracingConnection::SeekSubscription( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "pubsublite::AdminServiceConnection::SeekSubscription"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SeekSubscription(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr AdminServiceTracingConnection::CreateReservation( google::cloud::pubsublite::v1::CreateReservationRequest const& request) { diff --git a/google/cloud/pubsublite/internal/admin_tracing_connection.h b/google/cloud/pubsublite/internal/admin_tracing_connection.h index a0edf72233014..e9d547522601b 100644 --- a/google/cloud/pubsublite/internal/admin_tracing_connection.h +++ b/google/cloud/pubsublite/internal/admin_tracing_connection.h @@ -88,6 +88,15 @@ class AdminServiceTracingConnection SeekSubscription(google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request) override; + StatusOr SeekSubscription( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request) + override; + + future> + SeekSubscription(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateReservation( google::cloud::pubsublite::v1::CreateReservationRequest const& request) override; diff --git a/google/cloud/pubsublite/mocks/mock_admin_connection.h b/google/cloud/pubsublite/mocks/mock_admin_connection.h index a1b4f6f4457a6..500004e67f7e7 100644 --- a/google/cloud/pubsublite/mocks/mock_admin_connection.h +++ b/google/cloud/pubsublite/mocks/mock_admin_connection.h @@ -111,6 +111,19 @@ class MockAdminServiceConnection : public pubsublite::AdminServiceConnection { (google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request), (override)); + MOCK_METHOD( + StatusOr, SeekSubscription, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request), + (override)); + + MOCK_METHOD( + future>, + SeekSubscription, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CreateReservation, (google::cloud::pubsublite::v1::CreateReservationRequest const& request), diff --git a/google/cloud/pubsublite/topic_stats_connection.h b/google/cloud/pubsublite/topic_stats_connection.h index afb2959507d94..7ec7b5c1ab24b 100644 --- a/google/cloud/pubsublite/topic_stats_connection.h +++ b/google/cloud/pubsublite/topic_stats_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/pubsublite/internal/topic_stats_retry_traits.h" #include "google/cloud/pubsublite/topic_stats_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.cc b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.cc index 3fdbe36ed497e..92fcb22b5279b 100644 --- a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.cc +++ b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.cc @@ -119,6 +119,62 @@ RapidMigrationAssessmentConnectionImpl::CreateCollector( polling_policy(*current), __func__); } +StatusOr +RapidMigrationAssessmentConnectionImpl::CreateCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::CreateCollectorRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCollector(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::rapidmigrationassessment::v1:: + CreateCollectorRequest const& request) { + return stub_->CreateCollector(context, options, request); + }, + *current, request, __func__); +} + +future> +RapidMigrationAssessmentConnectionImpl::CreateCollector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCollector", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::rapidmigrationassessment::v1::Collector>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::rapidmigrationassessment::v1::Collector>, + polling_policy(*current), __func__); +} + future> RapidMigrationAssessmentConnectionImpl::CreateAnnotation( google::cloud::rapidmigrationassessment::v1::CreateAnnotationRequest const& @@ -159,6 +215,62 @@ RapidMigrationAssessmentConnectionImpl::CreateAnnotation( polling_policy(*current), __func__); } +StatusOr +RapidMigrationAssessmentConnectionImpl::CreateAnnotation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::CreateAnnotationRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAnnotation(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::rapidmigrationassessment::v1:: + CreateAnnotationRequest const& request) { + return stub_->CreateAnnotation(context, options, request); + }, + *current, request, __func__); +} + +future> +RapidMigrationAssessmentConnectionImpl::CreateAnnotation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAnnotation", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::rapidmigrationassessment::v1::Annotation>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::rapidmigrationassessment::v1::Annotation>, + polling_policy(*current), __func__); +} + StatusOr RapidMigrationAssessmentConnectionImpl::GetAnnotation( google::cloud::rapidmigrationassessment::v1::GetAnnotationRequest const& @@ -268,6 +380,62 @@ RapidMigrationAssessmentConnectionImpl::UpdateCollector( polling_policy(*current), __func__); } +StatusOr +RapidMigrationAssessmentConnectionImpl::UpdateCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::UpdateCollectorRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCollector(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::rapidmigrationassessment::v1:: + UpdateCollectorRequest const& request) { + return stub_->UpdateCollector(context, options, request); + }, + *current, request, __func__); +} + +future> +RapidMigrationAssessmentConnectionImpl::UpdateCollector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCollector", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::rapidmigrationassessment::v1::Collector>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::rapidmigrationassessment::v1::Collector>, + polling_policy(*current), __func__); +} + future> RapidMigrationAssessmentConnectionImpl::DeleteCollector( google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& @@ -308,6 +476,62 @@ RapidMigrationAssessmentConnectionImpl::DeleteCollector( polling_policy(*current), __func__); } +StatusOr +RapidMigrationAssessmentConnectionImpl::DeleteCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCollector(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::rapidmigrationassessment::v1:: + DeleteCollectorRequest const& request) { + return stub_->DeleteCollector(context, options, request); + }, + *current, request, __func__); +} + +future> +RapidMigrationAssessmentConnectionImpl::DeleteCollector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCollector", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::rapidmigrationassessment::v1::Collector>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::rapidmigrationassessment::v1::Collector>, + polling_policy(*current), __func__); +} + future> RapidMigrationAssessmentConnectionImpl::ResumeCollector( google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& @@ -348,6 +572,62 @@ RapidMigrationAssessmentConnectionImpl::ResumeCollector( polling_policy(*current), __func__); } +StatusOr +RapidMigrationAssessmentConnectionImpl::ResumeCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ResumeCollector(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::rapidmigrationassessment::v1:: + ResumeCollectorRequest const& request) { + return stub_->ResumeCollector(context, options, request); + }, + *current, request, __func__); +} + +future> +RapidMigrationAssessmentConnectionImpl::ResumeCollector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ResumeCollector", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::rapidmigrationassessment::v1::Collector>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::rapidmigrationassessment::v1::Collector>, + polling_policy(*current), __func__); +} + future> RapidMigrationAssessmentConnectionImpl::RegisterCollector( google::cloud::rapidmigrationassessment::v1::RegisterCollectorRequest const& @@ -388,6 +668,62 @@ RapidMigrationAssessmentConnectionImpl::RegisterCollector( polling_policy(*current), __func__); } +StatusOr +RapidMigrationAssessmentConnectionImpl::RegisterCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::RegisterCollectorRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RegisterCollector(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::rapidmigrationassessment::v1:: + RegisterCollectorRequest const& request) { + return stub_->RegisterCollector(context, options, request); + }, + *current, request, __func__); +} + +future> +RapidMigrationAssessmentConnectionImpl::RegisterCollector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RegisterCollector", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::rapidmigrationassessment::v1::Collector>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::rapidmigrationassessment::v1::Collector>, + polling_policy(*current), __func__); +} + future> RapidMigrationAssessmentConnectionImpl::PauseCollector( google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& @@ -428,6 +764,62 @@ RapidMigrationAssessmentConnectionImpl::PauseCollector( polling_policy(*current), __func__); } +StatusOr +RapidMigrationAssessmentConnectionImpl::PauseCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PauseCollector(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::rapidmigrationassessment::v1:: + PauseCollectorRequest const& request) { + return stub_->PauseCollector(context, options, request); + }, + *current, request, __func__); +} + +future> +RapidMigrationAssessmentConnectionImpl::PauseCollector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to PauseCollector", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::rapidmigrationassessment::v1::Collector>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::rapidmigrationassessment::v1::Collector>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace rapidmigrationassessment_v1_internal } // namespace cloud diff --git a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.h b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.h index b2b76ede1576a..d916b34c2c396 100644 --- a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.h +++ b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.h @@ -60,10 +60,28 @@ class RapidMigrationAssessmentConnectionImpl google::cloud::rapidmigrationassessment::v1::CreateCollectorRequest const& request) override; + StatusOr CreateCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::CreateCollectorRequest const& + request) override; + + future> + CreateCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateAnnotation(google::cloud::rapidmigrationassessment::v1:: CreateAnnotationRequest const& request) override; + StatusOr CreateAnnotation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + CreateAnnotationRequest const& request) override; + + future> + CreateAnnotation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAnnotation( google::cloud::rapidmigrationassessment::v1::GetAnnotationRequest const& @@ -83,25 +101,70 @@ class RapidMigrationAssessmentConnectionImpl google::cloud::rapidmigrationassessment::v1::UpdateCollectorRequest const& request) override; + StatusOr UpdateCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::UpdateCollectorRequest const& + request) override; + + future> + UpdateCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCollector( google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& request) override; + StatusOr DeleteCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& + request) override; + + future> + DeleteCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResumeCollector( google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& request) override; + StatusOr ResumeCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& + request) override; + + future> + ResumeCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RegisterCollector(google::cloud::rapidmigrationassessment::v1:: RegisterCollectorRequest const& request) override; + StatusOr RegisterCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + RegisterCollectorRequest const& request) override; + + future> + RegisterCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PauseCollector( google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& request) override; + StatusOr PauseCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& + request) override; + + future> + PauseCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr< diff --git a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.cc b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.cc index 8c8b83058f9b3..90cffd631a80f 100644 --- a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.cc +++ b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.cc @@ -48,6 +48,33 @@ RapidMigrationAssessmentTracingConnection::CreateCollector( return internal::EndSpan(std::move(span), child_->CreateCollector(request)); } +StatusOr +RapidMigrationAssessmentTracingConnection::CreateCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::CreateCollectorRequest const& + request) { + auto span = internal::MakeSpan( + "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" + "CreateCollector"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateCollector(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RapidMigrationAssessmentTracingConnection::CreateCollector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" + "CreateCollector"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateCollector(google::cloud::ExperimentalTag{}, operation)); +} + future> RapidMigrationAssessmentTracingConnection::CreateAnnotation( google::cloud::rapidmigrationassessment::v1::CreateAnnotationRequest const& @@ -59,6 +86,33 @@ RapidMigrationAssessmentTracingConnection::CreateAnnotation( return internal::EndSpan(std::move(span), child_->CreateAnnotation(request)); } +StatusOr +RapidMigrationAssessmentTracingConnection::CreateAnnotation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::CreateAnnotationRequest const& + request) { + auto span = internal::MakeSpan( + "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" + "CreateAnnotation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateAnnotation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RapidMigrationAssessmentTracingConnection::CreateAnnotation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" + "CreateAnnotation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateAnnotation(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr RapidMigrationAssessmentTracingConnection::GetAnnotation( google::cloud::rapidmigrationassessment::v1::GetAnnotationRequest const& @@ -106,6 +160,33 @@ RapidMigrationAssessmentTracingConnection::UpdateCollector( return internal::EndSpan(std::move(span), child_->UpdateCollector(request)); } +StatusOr +RapidMigrationAssessmentTracingConnection::UpdateCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::UpdateCollectorRequest const& + request) { + auto span = internal::MakeSpan( + "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" + "UpdateCollector"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateCollector(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RapidMigrationAssessmentTracingConnection::UpdateCollector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" + "UpdateCollector"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateCollector(google::cloud::ExperimentalTag{}, operation)); +} + future> RapidMigrationAssessmentTracingConnection::DeleteCollector( google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& @@ -117,6 +198,33 @@ RapidMigrationAssessmentTracingConnection::DeleteCollector( return internal::EndSpan(std::move(span), child_->DeleteCollector(request)); } +StatusOr +RapidMigrationAssessmentTracingConnection::DeleteCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& + request) { + auto span = internal::MakeSpan( + "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" + "DeleteCollector"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteCollector(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RapidMigrationAssessmentTracingConnection::DeleteCollector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" + "DeleteCollector"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteCollector(google::cloud::ExperimentalTag{}, operation)); +} + future> RapidMigrationAssessmentTracingConnection::ResumeCollector( google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& @@ -128,6 +236,33 @@ RapidMigrationAssessmentTracingConnection::ResumeCollector( return internal::EndSpan(std::move(span), child_->ResumeCollector(request)); } +StatusOr +RapidMigrationAssessmentTracingConnection::ResumeCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& + request) { + auto span = internal::MakeSpan( + "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" + "ResumeCollector"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ResumeCollector(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RapidMigrationAssessmentTracingConnection::ResumeCollector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" + "ResumeCollector"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ResumeCollector(google::cloud::ExperimentalTag{}, operation)); +} + future> RapidMigrationAssessmentTracingConnection::RegisterCollector( google::cloud::rapidmigrationassessment::v1::RegisterCollectorRequest const& @@ -139,6 +274,33 @@ RapidMigrationAssessmentTracingConnection::RegisterCollector( return internal::EndSpan(std::move(span), child_->RegisterCollector(request)); } +StatusOr +RapidMigrationAssessmentTracingConnection::RegisterCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::RegisterCollectorRequest const& + request) { + auto span = internal::MakeSpan( + "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" + "RegisterCollector"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RegisterCollector(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RapidMigrationAssessmentTracingConnection::RegisterCollector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" + "RegisterCollector"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RegisterCollector(google::cloud::ExperimentalTag{}, operation)); +} + future> RapidMigrationAssessmentTracingConnection::PauseCollector( google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& @@ -150,6 +312,33 @@ RapidMigrationAssessmentTracingConnection::PauseCollector( return internal::EndSpan(std::move(span), child_->PauseCollector(request)); } +StatusOr +RapidMigrationAssessmentTracingConnection::PauseCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& + request) { + auto span = internal::MakeSpan( + "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" + "PauseCollector"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PauseCollector(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RapidMigrationAssessmentTracingConnection::PauseCollector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" + "PauseCollector"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PauseCollector(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.h b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.h index 009a07cac04e0..23ffcceb81de3 100644 --- a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.h +++ b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.h @@ -48,10 +48,28 @@ class RapidMigrationAssessmentTracingConnection google::cloud::rapidmigrationassessment::v1::CreateCollectorRequest const& request) override; + StatusOr CreateCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::CreateCollectorRequest const& + request) override; + + future> + CreateCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateAnnotation(google::cloud::rapidmigrationassessment::v1:: CreateAnnotationRequest const& request) override; + StatusOr CreateAnnotation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + CreateAnnotationRequest const& request) override; + + future> + CreateAnnotation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAnnotation( google::cloud::rapidmigrationassessment::v1::GetAnnotationRequest const& @@ -71,25 +89,70 @@ class RapidMigrationAssessmentTracingConnection google::cloud::rapidmigrationassessment::v1::UpdateCollectorRequest const& request) override; + StatusOr UpdateCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::UpdateCollectorRequest const& + request) override; + + future> + UpdateCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCollector( google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& request) override; + StatusOr DeleteCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& + request) override; + + future> + DeleteCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResumeCollector( google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& request) override; + StatusOr ResumeCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& + request) override; + + future> + ResumeCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RegisterCollector(google::cloud::rapidmigrationassessment::v1:: RegisterCollectorRequest const& request) override; + StatusOr RegisterCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + RegisterCollectorRequest const& request) override; + + future> + RegisterCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PauseCollector( google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& request) override; + StatusOr PauseCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& + request) override; + + future> + PauseCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr< rapidmigrationassessment_v1::RapidMigrationAssessmentConnection> diff --git a/google/cloud/rapidmigrationassessment/v1/mocks/mock_rapid_migration_assessment_connection.h b/google/cloud/rapidmigrationassessment/v1/mocks/mock_rapid_migration_assessment_connection.h index 551ba884bdc42..d80a5ca5bd3c0 100644 --- a/google/cloud/rapidmigrationassessment/v1/mocks/mock_rapid_migration_assessment_connection.h +++ b/google/cloud/rapidmigrationassessment/v1/mocks/mock_rapid_migration_assessment_connection.h @@ -55,6 +55,19 @@ class MockRapidMigrationAssessmentConnection CreateCollectorRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateCollector, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + CreateCollectorRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateCollector, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateAnnotation, @@ -62,6 +75,19 @@ class MockRapidMigrationAssessmentConnection CreateAnnotationRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateAnnotation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + CreateAnnotationRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateAnnotation, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetAnnotation, @@ -90,6 +116,19 @@ class MockRapidMigrationAssessmentConnection UpdateCollectorRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateCollector, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + UpdateCollectorRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UpdateCollector, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteCollector, @@ -97,6 +136,19 @@ class MockRapidMigrationAssessmentConnection DeleteCollectorRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteCollector, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + DeleteCollectorRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteCollector, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ResumeCollector, @@ -104,6 +156,19 @@ class MockRapidMigrationAssessmentConnection ResumeCollectorRequest const& request), (override)); + MOCK_METHOD(StatusOr, ResumeCollector, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + ResumeCollectorRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ResumeCollector, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RegisterCollector, @@ -111,12 +176,39 @@ class MockRapidMigrationAssessmentConnection RegisterCollectorRequest const& request), (override)); + MOCK_METHOD(StatusOr, RegisterCollector, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + RegisterCollectorRequest const& request), + (override)); + + MOCK_METHOD( + future>, + RegisterCollector, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, PauseCollector, (google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, PauseCollector, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + PauseCollector, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection.cc b/google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection.cc index 75b1913121e42..f84e5419536b3 100644 --- a/google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection.cc +++ b/google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection.cc @@ -49,6 +49,23 @@ RapidMigrationAssessmentConnection::CreateCollector( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RapidMigrationAssessmentConnection::CreateCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + CreateCollectorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RapidMigrationAssessmentConnection::CreateCollector( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RapidMigrationAssessmentConnection::CreateAnnotation( google::cloud::rapidmigrationassessment::v1:: @@ -58,6 +75,23 @@ RapidMigrationAssessmentConnection::CreateAnnotation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RapidMigrationAssessmentConnection::CreateAnnotation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + CreateAnnotationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RapidMigrationAssessmentConnection::CreateAnnotation( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr RapidMigrationAssessmentConnection::GetAnnotation( google::cloud::rapidmigrationassessment::v1::GetAnnotationRequest const&) { @@ -87,6 +121,23 @@ RapidMigrationAssessmentConnection::UpdateCollector( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RapidMigrationAssessmentConnection::UpdateCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + UpdateCollectorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RapidMigrationAssessmentConnection::UpdateCollector( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RapidMigrationAssessmentConnection::DeleteCollector( google::cloud::rapidmigrationassessment::v1:: @@ -96,6 +147,23 @@ RapidMigrationAssessmentConnection::DeleteCollector( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RapidMigrationAssessmentConnection::DeleteCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + DeleteCollectorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RapidMigrationAssessmentConnection::DeleteCollector( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RapidMigrationAssessmentConnection::ResumeCollector( google::cloud::rapidmigrationassessment::v1:: @@ -105,6 +173,23 @@ RapidMigrationAssessmentConnection::ResumeCollector( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RapidMigrationAssessmentConnection::ResumeCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + ResumeCollectorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RapidMigrationAssessmentConnection::ResumeCollector( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> RapidMigrationAssessmentConnection::RegisterCollector( google::cloud::rapidmigrationassessment::v1:: @@ -114,9 +199,42 @@ RapidMigrationAssessmentConnection::RegisterCollector( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +RapidMigrationAssessmentConnection::RegisterCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + RegisterCollectorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +RapidMigrationAssessmentConnection::RegisterCollector( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RapidMigrationAssessmentConnection::PauseCollector( + google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr RapidMigrationAssessmentConnection::PauseCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RapidMigrationAssessmentConnection::PauseCollector( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection.h b/google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection.h index 2e0bc5f172813..834673ffdb8f2 100644 --- a/google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection.h +++ b/google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_retry_traits.h" #include "google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -206,11 +208,31 @@ class RapidMigrationAssessmentConnection { google::cloud::rapidmigrationassessment::v1::CreateCollectorRequest const& request); + virtual StatusOr CreateCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::CreateCollectorRequest const& + request); + + virtual future< + StatusOr> + CreateCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> CreateAnnotation(google::cloud::rapidmigrationassessment::v1:: CreateAnnotationRequest const& request); + virtual StatusOr CreateAnnotation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + CreateAnnotationRequest const& request); + + virtual future< + StatusOr> + CreateAnnotation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetAnnotation( google::cloud::rapidmigrationassessment::v1::GetAnnotationRequest const& @@ -232,28 +254,78 @@ class RapidMigrationAssessmentConnection { google::cloud::rapidmigrationassessment::v1::UpdateCollectorRequest const& request); + virtual StatusOr UpdateCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::UpdateCollectorRequest const& + request); + + virtual future< + StatusOr> + UpdateCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteCollector( google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& request); + virtual StatusOr DeleteCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& + request); + + virtual future< + StatusOr> + DeleteCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> ResumeCollector( google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& request); + virtual StatusOr ResumeCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& + request); + + virtual future< + StatusOr> + ResumeCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> RegisterCollector(google::cloud::rapidmigrationassessment::v1:: RegisterCollectorRequest const& request); + virtual StatusOr RegisterCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1:: + RegisterCollectorRequest const& request); + + virtual future< + StatusOr> + RegisterCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> PauseCollector( google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& request); + + virtual StatusOr PauseCollector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& + request); + + virtual future< + StatusOr> + PauseCollector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/recaptchaenterprise/v1/recaptcha_enterprise_connection.h b/google/cloud/recaptchaenterprise/v1/recaptcha_enterprise_connection.h index c8c9438c3fb76..c7ef923e71f9a 100644 --- a/google/cloud/recaptchaenterprise/v1/recaptcha_enterprise_connection.h +++ b/google/cloud/recaptchaenterprise/v1/recaptcha_enterprise_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/recaptchaenterprise/v1/internal/recaptcha_enterprise_retry_traits.h" #include "google/cloud/recaptchaenterprise/v1/recaptcha_enterprise_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/recommender/v1/recommender_connection.h b/google/cloud/recommender/v1/recommender_connection.h index 8a3e6ebc06497..602a9db0d5450 100644 --- a/google/cloud/recommender/v1/recommender_connection.h +++ b/google/cloud/recommender/v1/recommender_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/recommender/v1/internal/recommender_retry_traits.h" #include "google/cloud/recommender/v1/recommender_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/redis/cluster/v1/cloud_redis_cluster_connection.cc b/google/cloud/redis/cluster/v1/cloud_redis_cluster_connection.cc index 7bf40b8cbbffb..fe960191b9792 100644 --- a/google/cloud/redis/cluster/v1/cloud_redis_cluster_connection.cc +++ b/google/cloud/redis/cluster/v1/cloud_redis_cluster_connection.cc @@ -60,6 +60,22 @@ CloudRedisClusterConnection::UpdateCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudRedisClusterConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::UpdateClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudRedisClusterConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudRedisClusterConnection::DeleteCluster( google::cloud::redis::cluster::v1::DeleteClusterRequest const&) { @@ -67,6 +83,21 @@ CloudRedisClusterConnection::DeleteCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudRedisClusterConnection::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::DeleteClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudRedisClusterConnection::DeleteCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudRedisClusterConnection::CreateCluster( google::cloud::redis::cluster::v1::CreateClusterRequest const&) { @@ -75,6 +106,22 @@ CloudRedisClusterConnection::CreateCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudRedisClusterConnection::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::CreateClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudRedisClusterConnection::CreateCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr CloudRedisClusterConnection::GetClusterCertificateAuthority( google::cloud::redis::cluster::v1:: diff --git a/google/cloud/redis/cluster/v1/cloud_redis_cluster_connection.h b/google/cloud/redis/cluster/v1/cloud_redis_cluster_connection.h index 8eadc88d11387..fba07e14c2d8d 100644 --- a/google/cloud/redis/cluster/v1/cloud_redis_cluster_connection.h +++ b/google/cloud/redis/cluster/v1/cloud_redis_cluster_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/redis/cluster/v1/cloud_redis_cluster_connection_idempotency_policy.h" #include "google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -196,13 +198,37 @@ class CloudRedisClusterConnection { UpdateCluster( google::cloud::redis::cluster::v1::UpdateClusterRequest const& request); + virtual StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::UpdateClusterRequest const& request); + + virtual future> + UpdateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteCluster( google::cloud::redis::cluster::v1::DeleteClusterRequest const& request); + virtual StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::DeleteClusterRequest const& request); + + virtual future> DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateCluster( google::cloud::redis::cluster::v1::CreateClusterRequest const& request); + virtual StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::CreateClusterRequest const& request); + + virtual future> + CreateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetClusterCertificateAuthority( google::cloud::redis::cluster::v1:: diff --git a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.cc b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.cc index 499e01dfd2d46..94712b63dc9b7 100644 --- a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.cc +++ b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.cc @@ -157,6 +157,59 @@ CloudRedisClusterConnectionImpl::UpdateCluster( polling_policy(*current), __func__); } +StatusOr +CloudRedisClusterConnectionImpl::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::UpdateClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::redis::cluster::v1::UpdateClusterRequest const& + request) { + return stub_->UpdateCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudRedisClusterConnectionImpl::UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::redis::cluster::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::redis::cluster::v1::Cluster>, + polling_policy(*current), __func__); +} + future> CloudRedisClusterConnectionImpl::DeleteCluster( google::cloud::redis::cluster::v1::DeleteClusterRequest const& request) { @@ -197,6 +250,58 @@ CloudRedisClusterConnectionImpl::DeleteCluster( polling_policy(*current), __func__); } +StatusOr +CloudRedisClusterConnectionImpl::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::DeleteClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::redis::cluster::v1::DeleteClusterRequest const& + request) { + return stub_->DeleteCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudRedisClusterConnectionImpl::DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::protobuf::Any>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::protobuf::Any>, + polling_policy(*current), __func__); +} + future> CloudRedisClusterConnectionImpl::CreateCluster( google::cloud::redis::cluster::v1::CreateClusterRequest const& request) { @@ -237,6 +342,59 @@ CloudRedisClusterConnectionImpl::CreateCluster( polling_policy(*current), __func__); } +StatusOr +CloudRedisClusterConnectionImpl::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::CreateClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::redis::cluster::v1::CreateClusterRequest const& + request) { + return stub_->CreateCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudRedisClusterConnectionImpl::CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::redis::cluster::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::redis::cluster::v1::Cluster>, + polling_policy(*current), __func__); +} + StatusOr CloudRedisClusterConnectionImpl::GetClusterCertificateAuthority( google::cloud::redis::cluster::v1:: diff --git a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.h b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.h index d341e457582cb..7326203c3eeb6 100644 --- a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.h +++ b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.h @@ -63,14 +63,41 @@ class CloudRedisClusterConnectionImpl google::cloud::redis::cluster::v1::UpdateClusterRequest const& request) override; + StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::UpdateClusterRequest const& request) + override; + + future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCluster( google::cloud::redis::cluster::v1::DeleteClusterRequest const& request) override; + StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::DeleteClusterRequest const& request) + override; + + future> DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateCluster( google::cloud::redis::cluster::v1::CreateClusterRequest const& request) override; + StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::CreateClusterRequest const& request) + override; + + future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetClusterCertificateAuthority( google::cloud::redis::cluster::v1:: diff --git a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.cc b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.cc index dc289a3e35884..d65d235ffed4c 100644 --- a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.cc +++ b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.cc @@ -63,6 +63,30 @@ CloudRedisClusterTracingConnection::UpdateCluster( return internal::EndSpan(std::move(span), child_->UpdateCluster(request)); } +StatusOr +CloudRedisClusterTracingConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::UpdateClusterRequest const& request) { + auto span = internal::MakeSpan( + "redis_cluster_v1::CloudRedisClusterConnection::UpdateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudRedisClusterTracingConnection::UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "redis_cluster_v1::CloudRedisClusterConnection::UpdateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudRedisClusterTracingConnection::DeleteCluster( google::cloud::redis::cluster::v1::DeleteClusterRequest const& request) { @@ -72,6 +96,30 @@ CloudRedisClusterTracingConnection::DeleteCluster( return internal::EndSpan(std::move(span), child_->DeleteCluster(request)); } +StatusOr +CloudRedisClusterTracingConnection::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::DeleteClusterRequest const& request) { + auto span = internal::MakeSpan( + "redis_cluster_v1::CloudRedisClusterConnection::DeleteCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudRedisClusterTracingConnection::DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "redis_cluster_v1::CloudRedisClusterConnection::DeleteCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudRedisClusterTracingConnection::CreateCluster( google::cloud::redis::cluster::v1::CreateClusterRequest const& request) { @@ -81,6 +129,30 @@ CloudRedisClusterTracingConnection::CreateCluster( return internal::EndSpan(std::move(span), child_->CreateCluster(request)); } +StatusOr +CloudRedisClusterTracingConnection::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::CreateClusterRequest const& request) { + auto span = internal::MakeSpan( + "redis_cluster_v1::CloudRedisClusterConnection::CreateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudRedisClusterTracingConnection::CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "redis_cluster_v1::CloudRedisClusterConnection::CreateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateCluster(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr CloudRedisClusterTracingConnection::GetClusterCertificateAuthority( google::cloud::redis::cluster::v1:: diff --git a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.h b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.h index 6a20be89b260e..90875e5c06067 100644 --- a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.h +++ b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.h @@ -51,14 +51,41 @@ class CloudRedisClusterTracingConnection google::cloud::redis::cluster::v1::UpdateClusterRequest const& request) override; + StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::UpdateClusterRequest const& request) + override; + + future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCluster( google::cloud::redis::cluster::v1::DeleteClusterRequest const& request) override; + StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::DeleteClusterRequest const& request) + override; + + future> DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateCluster( google::cloud::redis::cluster::v1::CreateClusterRequest const& request) override; + StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::CreateClusterRequest const& request) + override; + + future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetClusterCertificateAuthority( google::cloud::redis::cluster::v1:: diff --git a/google/cloud/redis/cluster/v1/mocks/mock_cloud_redis_cluster_connection.h b/google/cloud/redis/cluster/v1/mocks/mock_cloud_redis_cluster_connection.h index 4d8a4f3e4324f..ddef397384e54 100644 --- a/google/cloud/redis/cluster/v1/mocks/mock_cloud_redis_cluster_connection.h +++ b/google/cloud/redis/cluster/v1/mocks/mock_cloud_redis_cluster_connection.h @@ -63,17 +63,52 @@ class MockCloudRedisClusterConnection (google::cloud::redis::cluster::v1::UpdateClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::UpdateClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteCluster, (google::cloud::redis::cluster::v1::DeleteClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::DeleteClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, DeleteCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateCluster, (google::cloud::redis::cluster::v1::CreateClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::cluster::v1::CreateClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetClusterCertificateAuthority, (google::cloud::redis::cluster::v1:: diff --git a/google/cloud/redis/v1/cloud_redis_connection.cc b/google/cloud/redis/v1/cloud_redis_connection.cc index 20a05c71289bf..53ffc03e6a4fe 100644 --- a/google/cloud/redis/v1/cloud_redis_connection.cc +++ b/google/cloud/redis/v1/cloud_redis_connection.cc @@ -65,6 +65,21 @@ CloudRedisConnection::CreateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudRedisConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::CreateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudRedisConnection::CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudRedisConnection::UpdateInstance( google::cloud::redis::v1::UpdateInstanceRequest const&) { @@ -73,6 +88,21 @@ CloudRedisConnection::UpdateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudRedisConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::UpdateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudRedisConnection::UpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudRedisConnection::UpgradeInstance( google::cloud::redis::v1::UpgradeInstanceRequest const&) { @@ -81,6 +111,21 @@ CloudRedisConnection::UpgradeInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudRedisConnection::UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::UpgradeInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudRedisConnection::UpgradeInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudRedisConnection::ImportInstance( google::cloud::redis::v1::ImportInstanceRequest const&) { @@ -89,6 +134,21 @@ CloudRedisConnection::ImportInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudRedisConnection::ImportInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::ImportInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudRedisConnection::ImportInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudRedisConnection::ExportInstance( google::cloud::redis::v1::ExportInstanceRequest const&) { @@ -97,6 +157,21 @@ CloudRedisConnection::ExportInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudRedisConnection::ExportInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::ExportInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudRedisConnection::ExportInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudRedisConnection::FailoverInstance( google::cloud::redis::v1::FailoverInstanceRequest const&) { @@ -105,6 +180,21 @@ CloudRedisConnection::FailoverInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudRedisConnection::FailoverInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::FailoverInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudRedisConnection::FailoverInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudRedisConnection::DeleteInstance( google::cloud::redis::v1::DeleteInstanceRequest const&) { @@ -113,6 +203,21 @@ CloudRedisConnection::DeleteInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr CloudRedisConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::DeleteInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudRedisConnection::DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudRedisConnection::RescheduleMaintenance( google::cloud::redis::v1::RescheduleMaintenanceRequest const&) { @@ -121,6 +226,22 @@ CloudRedisConnection::RescheduleMaintenance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudRedisConnection::RescheduleMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::RescheduleMaintenanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudRedisConnection::RescheduleMaintenance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeCloudRedisConnection( Options options) { internal::CheckExpectedOptions> CreateInstance( google::cloud::redis::v1::CreateInstanceRequest const& request); + virtual StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::CreateInstanceRequest const& request); + + virtual future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateInstance( google::cloud::redis::v1::UpdateInstanceRequest const& request); + virtual StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::UpdateInstanceRequest const& request); + + virtual future> UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpgradeInstance( google::cloud::redis::v1::UpgradeInstanceRequest const& request); + virtual StatusOr UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::UpgradeInstanceRequest const& request); + + virtual future> UpgradeInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ImportInstance( google::cloud::redis::v1::ImportInstanceRequest const& request); + virtual StatusOr ImportInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::ImportInstanceRequest const& request); + + virtual future> ImportInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ExportInstance( google::cloud::redis::v1::ExportInstanceRequest const& request); + virtual StatusOr ExportInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::ExportInstanceRequest const& request); + + virtual future> ExportInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> FailoverInstance( google::cloud::redis::v1::FailoverInstanceRequest const& request); + virtual StatusOr FailoverInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::FailoverInstanceRequest const& request); + + virtual future> FailoverInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteInstance( google::cloud::redis::v1::DeleteInstanceRequest const& request); + virtual StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::DeleteInstanceRequest const& request); + + virtual future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RescheduleMaintenance( google::cloud::redis::v1::RescheduleMaintenanceRequest const& request); + + virtual StatusOr RescheduleMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::RescheduleMaintenanceRequest const& request); + + virtual future> + RescheduleMaintenance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/redis/v1/internal/cloud_redis_connection_impl.cc b/google/cloud/redis/v1/internal/cloud_redis_connection_impl.cc index dc5db8adb471d..6d67849dc5c04 100644 --- a/google/cloud/redis/v1/internal/cloud_redis_connection_impl.cc +++ b/google/cloud/redis/v1/internal/cloud_redis_connection_impl.cc @@ -164,6 +164,58 @@ CloudRedisConnectionImpl::CreateInstance( polling_policy(*current), __func__); } +StatusOr +CloudRedisConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::CreateInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::redis::v1::CreateInstanceRequest const& request) { + return stub_->CreateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudRedisConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::redis::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::redis::v1::Instance>, + polling_policy(*current), __func__); +} + future> CloudRedisConnectionImpl::UpdateInstance( google::cloud::redis::v1::UpdateInstanceRequest const& request) { @@ -203,6 +255,58 @@ CloudRedisConnectionImpl::UpdateInstance( polling_policy(*current), __func__); } +StatusOr +CloudRedisConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::UpdateInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::redis::v1::UpdateInstanceRequest const& request) { + return stub_->UpdateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudRedisConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::redis::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::redis::v1::Instance>, + polling_policy(*current), __func__); +} + future> CloudRedisConnectionImpl::UpgradeInstance( google::cloud::redis::v1::UpgradeInstanceRequest const& request) { @@ -242,6 +346,58 @@ CloudRedisConnectionImpl::UpgradeInstance( polling_policy(*current), __func__); } +StatusOr +CloudRedisConnectionImpl::UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::UpgradeInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpgradeInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::redis::v1::UpgradeInstanceRequest const& request) { + return stub_->UpgradeInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudRedisConnectionImpl::UpgradeInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpgradeInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::redis::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::redis::v1::Instance>, + polling_policy(*current), __func__); +} + future> CloudRedisConnectionImpl::ImportInstance( google::cloud::redis::v1::ImportInstanceRequest const& request) { @@ -281,6 +437,58 @@ CloudRedisConnectionImpl::ImportInstance( polling_policy(*current), __func__); } +StatusOr +CloudRedisConnectionImpl::ImportInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::ImportInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::redis::v1::ImportInstanceRequest const& request) { + return stub_->ImportInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudRedisConnectionImpl::ImportInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ImportInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::redis::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::redis::v1::Instance>, + polling_policy(*current), __func__); +} + future> CloudRedisConnectionImpl::ExportInstance( google::cloud::redis::v1::ExportInstanceRequest const& request) { @@ -320,6 +528,58 @@ CloudRedisConnectionImpl::ExportInstance( polling_policy(*current), __func__); } +StatusOr +CloudRedisConnectionImpl::ExportInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::ExportInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::redis::v1::ExportInstanceRequest const& request) { + return stub_->ExportInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudRedisConnectionImpl::ExportInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ExportInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::redis::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::redis::v1::Instance>, + polling_policy(*current), __func__); +} + future> CloudRedisConnectionImpl::FailoverInstance( google::cloud::redis::v1::FailoverInstanceRequest const& request) { @@ -359,6 +619,58 @@ CloudRedisConnectionImpl::FailoverInstance( polling_policy(*current), __func__); } +StatusOr +CloudRedisConnectionImpl::FailoverInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::FailoverInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->FailoverInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::redis::v1::FailoverInstanceRequest const& request) { + return stub_->FailoverInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudRedisConnectionImpl::FailoverInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to FailoverInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::redis::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::redis::v1::Instance>, + polling_policy(*current), __func__); +} + future> CloudRedisConnectionImpl::DeleteInstance( google::cloud::redis::v1::DeleteInstanceRequest const& request) { @@ -398,6 +710,59 @@ CloudRedisConnectionImpl::DeleteInstance( polling_policy(*current), __func__); } +StatusOr +CloudRedisConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::DeleteInstanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::redis::v1::DeleteInstanceRequest const& request) { + return stub_->DeleteInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudRedisConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::redis::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::redis::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> CloudRedisConnectionImpl::RescheduleMaintenance( google::cloud::redis::v1::RescheduleMaintenanceRequest const& request) { @@ -438,6 +803,59 @@ CloudRedisConnectionImpl::RescheduleMaintenance( polling_policy(*current), __func__); } +StatusOr +CloudRedisConnectionImpl::RescheduleMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::RescheduleMaintenanceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RescheduleMaintenance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::redis::v1::RescheduleMaintenanceRequest const& + request) { + return stub_->RescheduleMaintenance(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudRedisConnectionImpl::RescheduleMaintenance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RescheduleMaintenance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::redis::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::redis::v1::Instance>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace redis_v1_internal } // namespace cloud diff --git a/google/cloud/redis/v1/internal/cloud_redis_connection_impl.h b/google/cloud/redis/v1/internal/cloud_redis_connection_impl.h index f15397e8edfaf..f24e61a6fb0ff 100644 --- a/google/cloud/redis/v1/internal/cloud_redis_connection_impl.h +++ b/google/cloud/redis/v1/internal/cloud_redis_connection_impl.h @@ -63,29 +63,95 @@ class CloudRedisConnectionImpl : public redis_v1::CloudRedisConnection { future> CreateInstance( google::cloud::redis::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::CreateInstanceRequest const& request) override; + + future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstance( google::cloud::redis::v1::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::UpdateInstanceRequest const& request) override; + + future> UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpgradeInstance( google::cloud::redis::v1::UpgradeInstanceRequest const& request) override; + StatusOr UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::UpgradeInstanceRequest const& request) override; + + future> UpgradeInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportInstance( google::cloud::redis::v1::ImportInstanceRequest const& request) override; + StatusOr ImportInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::ImportInstanceRequest const& request) override; + + future> ImportInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportInstance( google::cloud::redis::v1::ExportInstanceRequest const& request) override; + StatusOr ExportInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::ExportInstanceRequest const& request) override; + + future> ExportInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> FailoverInstance( google::cloud::redis::v1::FailoverInstanceRequest const& request) override; + StatusOr FailoverInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::FailoverInstanceRequest const& request) + override; + + future> FailoverInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteInstance( google::cloud::redis::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::DeleteInstanceRequest const& request) override; + + future> DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RescheduleMaintenance( google::cloud::redis::v1::RescheduleMaintenanceRequest const& request) override; + StatusOr RescheduleMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::RescheduleMaintenanceRequest const& request) + override; + + future> RescheduleMaintenance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.cc b/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.cc index 27eb82489c0cb..78d4c6e5f6a46 100644 --- a/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.cc +++ b/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.cc @@ -70,6 +70,30 @@ CloudRedisTracingConnection::CreateInstance( return internal::EndSpan(std::move(span), child_->CreateInstance(request)); } +StatusOr +CloudRedisTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::CreateInstanceRequest const& request) { + auto span = + internal::MakeSpan("redis_v1::CloudRedisConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudRedisTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("redis_v1::CloudRedisConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudRedisTracingConnection::UpdateInstance( google::cloud::redis::v1::UpdateInstanceRequest const& request) { @@ -79,6 +103,30 @@ CloudRedisTracingConnection::UpdateInstance( return internal::EndSpan(std::move(span), child_->UpdateInstance(request)); } +StatusOr +CloudRedisTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::UpdateInstanceRequest const& request) { + auto span = + internal::MakeSpan("redis_v1::CloudRedisConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudRedisTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("redis_v1::CloudRedisConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudRedisTracingConnection::UpgradeInstance( google::cloud::redis::v1::UpgradeInstanceRequest const& request) { @@ -88,6 +136,30 @@ CloudRedisTracingConnection::UpgradeInstance( return internal::EndSpan(std::move(span), child_->UpgradeInstance(request)); } +StatusOr +CloudRedisTracingConnection::UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::UpgradeInstanceRequest const& request) { + auto span = + internal::MakeSpan("redis_v1::CloudRedisConnection::UpgradeInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpgradeInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudRedisTracingConnection::UpgradeInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("redis_v1::CloudRedisConnection::UpgradeInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpgradeInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudRedisTracingConnection::ImportInstance( google::cloud::redis::v1::ImportInstanceRequest const& request) { @@ -97,6 +169,30 @@ CloudRedisTracingConnection::ImportInstance( return internal::EndSpan(std::move(span), child_->ImportInstance(request)); } +StatusOr +CloudRedisTracingConnection::ImportInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::ImportInstanceRequest const& request) { + auto span = + internal::MakeSpan("redis_v1::CloudRedisConnection::ImportInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudRedisTracingConnection::ImportInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("redis_v1::CloudRedisConnection::ImportInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudRedisTracingConnection::ExportInstance( google::cloud::redis::v1::ExportInstanceRequest const& request) { @@ -106,6 +202,30 @@ CloudRedisTracingConnection::ExportInstance( return internal::EndSpan(std::move(span), child_->ExportInstance(request)); } +StatusOr +CloudRedisTracingConnection::ExportInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::ExportInstanceRequest const& request) { + auto span = + internal::MakeSpan("redis_v1::CloudRedisConnection::ExportInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ExportInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudRedisTracingConnection::ExportInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("redis_v1::CloudRedisConnection::ExportInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ExportInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudRedisTracingConnection::FailoverInstance( google::cloud::redis::v1::FailoverInstanceRequest const& request) { @@ -115,6 +235,30 @@ CloudRedisTracingConnection::FailoverInstance( return internal::EndSpan(std::move(span), child_->FailoverInstance(request)); } +StatusOr +CloudRedisTracingConnection::FailoverInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::FailoverInstanceRequest const& request) { + auto span = + internal::MakeSpan("redis_v1::CloudRedisConnection::FailoverInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->FailoverInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudRedisTracingConnection::FailoverInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("redis_v1::CloudRedisConnection::FailoverInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->FailoverInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudRedisTracingConnection::DeleteInstance( google::cloud::redis::v1::DeleteInstanceRequest const& request) { @@ -124,6 +268,30 @@ CloudRedisTracingConnection::DeleteInstance( return internal::EndSpan(std::move(span), child_->DeleteInstance(request)); } +StatusOr +CloudRedisTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::DeleteInstanceRequest const& request) { + auto span = + internal::MakeSpan("redis_v1::CloudRedisConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudRedisTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("redis_v1::CloudRedisConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudRedisTracingConnection::RescheduleMaintenance( google::cloud::redis::v1::RescheduleMaintenanceRequest const& request) { @@ -134,6 +302,30 @@ CloudRedisTracingConnection::RescheduleMaintenance( child_->RescheduleMaintenance(request)); } +StatusOr +CloudRedisTracingConnection::RescheduleMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::RescheduleMaintenanceRequest const& request) { + auto span = internal::MakeSpan( + "redis_v1::CloudRedisConnection::RescheduleMaintenance"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RescheduleMaintenance( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudRedisTracingConnection::RescheduleMaintenance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "redis_v1::CloudRedisConnection::RescheduleMaintenance"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RescheduleMaintenance( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr MakeCloudRedisTracingConnection( diff --git a/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.h b/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.h index 2cdb1c203257f..4f05bb5aab7c0 100644 --- a/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.h +++ b/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.h @@ -52,29 +52,95 @@ class CloudRedisTracingConnection : public redis_v1::CloudRedisConnection { future> CreateInstance( google::cloud::redis::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::CreateInstanceRequest const& request) override; + + future> CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstance( google::cloud::redis::v1::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::UpdateInstanceRequest const& request) override; + + future> UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpgradeInstance( google::cloud::redis::v1::UpgradeInstanceRequest const& request) override; + StatusOr UpgradeInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::UpgradeInstanceRequest const& request) override; + + future> UpgradeInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportInstance( google::cloud::redis::v1::ImportInstanceRequest const& request) override; + StatusOr ImportInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::ImportInstanceRequest const& request) override; + + future> ImportInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ExportInstance( google::cloud::redis::v1::ExportInstanceRequest const& request) override; + StatusOr ExportInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::ExportInstanceRequest const& request) override; + + future> ExportInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> FailoverInstance( google::cloud::redis::v1::FailoverInstanceRequest const& request) override; + StatusOr FailoverInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::FailoverInstanceRequest const& request) + override; + + future> FailoverInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteInstance( google::cloud::redis::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::DeleteInstanceRequest const& request) override; + + future> DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RescheduleMaintenance( google::cloud::redis::v1::RescheduleMaintenanceRequest const& request) override; + StatusOr RescheduleMaintenance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::RescheduleMaintenanceRequest const& request) + override; + + future> RescheduleMaintenance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/redis/v1/mocks/mock_cloud_redis_connection.h b/google/cloud/redis/v1/mocks/mock_cloud_redis_connection.h index 3cebc649b8337..46d5d4e0db7e9 100644 --- a/google/cloud/redis/v1/mocks/mock_cloud_redis_connection.h +++ b/google/cloud/redis/v1/mocks/mock_cloud_redis_connection.h @@ -65,41 +65,131 @@ class MockCloudRedisConnection : public redis_v1::CloudRedisConnection { (google::cloud::redis::v1::CreateInstanceRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::CreateInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateInstance, (google::cloud::redis::v1::UpdateInstanceRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::UpdateInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpgradeInstance, (google::cloud::redis::v1::UpgradeInstanceRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpgradeInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::UpgradeInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpgradeInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, ImportInstance, (google::cloud::redis::v1::ImportInstanceRequest const& request), (override)); + MOCK_METHOD(StatusOr, ImportInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::ImportInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + ImportInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, ExportInstance, (google::cloud::redis::v1::ExportInstanceRequest const& request), (override)); + MOCK_METHOD(StatusOr, ExportInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::ExportInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + ExportInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, FailoverInstance, (google::cloud::redis::v1::FailoverInstanceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, FailoverInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::FailoverInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + FailoverInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteInstance, (google::cloud::redis::v1::DeleteInstanceRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::DeleteInstanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RescheduleMaintenance, (google::cloud::redis::v1::RescheduleMaintenanceRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, RescheduleMaintenance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::redis::v1::RescheduleMaintenanceRequest const& request), + (override)); + + MOCK_METHOD(future>, + RescheduleMaintenance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/resourcemanager/v3/folders_connection.cc b/google/cloud/resourcemanager/v3/folders_connection.cc index 2c45196f4569a..69bcf97ba95e8 100644 --- a/google/cloud/resourcemanager/v3/folders_connection.cc +++ b/google/cloud/resourcemanager/v3/folders_connection.cc @@ -68,6 +68,21 @@ FoldersConnection::CreateFolder( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr FoldersConnection::CreateFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateFolderRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FoldersConnection::CreateFolder(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FoldersConnection::UpdateFolder( google::cloud::resourcemanager::v3::UpdateFolderRequest const&) { @@ -76,6 +91,21 @@ FoldersConnection::UpdateFolder( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr FoldersConnection::UpdateFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateFolderRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FoldersConnection::UpdateFolder(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FoldersConnection::MoveFolder( google::cloud::resourcemanager::v3::MoveFolderRequest const&) { @@ -84,6 +114,21 @@ FoldersConnection::MoveFolder( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr FoldersConnection::MoveFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::MoveFolderRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FoldersConnection::MoveFolder(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FoldersConnection::DeleteFolder( google::cloud::resourcemanager::v3::DeleteFolderRequest const&) { @@ -92,6 +137,21 @@ FoldersConnection::DeleteFolder( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr FoldersConnection::DeleteFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteFolderRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FoldersConnection::DeleteFolder(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> FoldersConnection::UndeleteFolder( google::cloud::resourcemanager::v3::UndeleteFolderRequest const&) { @@ -100,6 +160,21 @@ FoldersConnection::UndeleteFolder( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr FoldersConnection::UndeleteFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UndeleteFolderRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +FoldersConnection::UndeleteFolder(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr FoldersConnection::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); diff --git a/google/cloud/resourcemanager/v3/folders_connection.h b/google/cloud/resourcemanager/v3/folders_connection.h index f03bbbf0e0ad0..caa12e4e5bbae 100644 --- a/google/cloud/resourcemanager/v3/folders_connection.h +++ b/google/cloud/resourcemanager/v3/folders_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/resourcemanager/v3/folders_connection_idempotency_policy.h" #include "google/cloud/resourcemanager/v3/internal/folders_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -195,22 +197,62 @@ class FoldersConnection { CreateFolder( google::cloud::resourcemanager::v3::CreateFolderRequest const& request); + virtual StatusOr CreateFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateFolderRequest const& request); + + virtual future> + CreateFolder(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateFolder( google::cloud::resourcemanager::v3::UpdateFolderRequest const& request); + virtual StatusOr UpdateFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateFolderRequest const& request); + + virtual future> + UpdateFolder(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> MoveFolder( google::cloud::resourcemanager::v3::MoveFolderRequest const& request); + virtual StatusOr MoveFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::MoveFolderRequest const& request); + + virtual future> + MoveFolder(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteFolder( google::cloud::resourcemanager::v3::DeleteFolderRequest const& request); + virtual StatusOr DeleteFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteFolderRequest const& request); + + virtual future> + DeleteFolder(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UndeleteFolder( google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request); + virtual StatusOr UndeleteFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request); + + virtual future> + UndeleteFolder(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request); diff --git a/google/cloud/resourcemanager/v3/internal/folders_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/folders_connection_impl.cc index 2c87fb108d242..89678cc684b4b 100644 --- a/google/cloud/resourcemanager/v3/internal/folders_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/folders_connection_impl.cc @@ -188,6 +188,60 @@ FoldersConnectionImpl::CreateFolder( polling_policy(*current), __func__); } +StatusOr FoldersConnectionImpl::CreateFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateFolderRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateFolder(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::CreateFolderRequest const& + request) { + return stub_->CreateFolder(context, options, request); + }, + *current, request, __func__); +} + +future> +FoldersConnectionImpl::CreateFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateFolder", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::Folder>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::Folder>, + polling_policy(*current), __func__); +} + future> FoldersConnectionImpl::UpdateFolder( google::cloud::resourcemanager::v3::UpdateFolderRequest const& request) { @@ -228,6 +282,60 @@ FoldersConnectionImpl::UpdateFolder( polling_policy(*current), __func__); } +StatusOr FoldersConnectionImpl::UpdateFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateFolderRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateFolder(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::UpdateFolderRequest const& + request) { + return stub_->UpdateFolder(context, options, request); + }, + *current, request, __func__); +} + +future> +FoldersConnectionImpl::UpdateFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateFolder", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::Folder>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::Folder>, + polling_policy(*current), __func__); +} + future> FoldersConnectionImpl::MoveFolder( google::cloud::resourcemanager::v3::MoveFolderRequest const& request) { @@ -268,6 +376,60 @@ FoldersConnectionImpl::MoveFolder( polling_policy(*current), __func__); } +StatusOr FoldersConnectionImpl::MoveFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::MoveFolderRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->MoveFolder(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::MoveFolderRequest const& + request) { + return stub_->MoveFolder(context, options, request); + }, + *current, request, __func__); +} + +future> +FoldersConnectionImpl::MoveFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to MoveFolder", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::Folder>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::Folder>, + polling_policy(*current), __func__); +} + future> FoldersConnectionImpl::DeleteFolder( google::cloud::resourcemanager::v3::DeleteFolderRequest const& request) { @@ -308,6 +470,60 @@ FoldersConnectionImpl::DeleteFolder( polling_policy(*current), __func__); } +StatusOr FoldersConnectionImpl::DeleteFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteFolderRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteFolder(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::DeleteFolderRequest const& + request) { + return stub_->DeleteFolder(context, options, request); + }, + *current, request, __func__); +} + +future> +FoldersConnectionImpl::DeleteFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteFolder", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::Folder>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::Folder>, + polling_policy(*current), __func__); +} + future> FoldersConnectionImpl::UndeleteFolder( google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request) { @@ -348,6 +564,60 @@ FoldersConnectionImpl::UndeleteFolder( polling_policy(*current), __func__); } +StatusOr FoldersConnectionImpl::UndeleteFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UndeleteFolder(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::UndeleteFolderRequest const& + request) { + return stub_->UndeleteFolder(context, options, request); + }, + *current, request, __func__); +} + +future> +FoldersConnectionImpl::UndeleteFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UndeleteFolder", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::Folder>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::Folder>, + polling_policy(*current), __func__); +} + StatusOr FoldersConnectionImpl::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/resourcemanager/v3/internal/folders_connection_impl.h b/google/cloud/resourcemanager/v3/internal/folders_connection_impl.h index 94418578ec377..a80a8557bc383 100644 --- a/google/cloud/resourcemanager/v3/internal/folders_connection_impl.h +++ b/google/cloud/resourcemanager/v3/internal/folders_connection_impl.h @@ -66,22 +66,67 @@ class FoldersConnectionImpl : public resourcemanager_v3::FoldersConnection { google::cloud::resourcemanager::v3::CreateFolderRequest const& request) override; + StatusOr CreateFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateFolderRequest const& request) + override; + + future> CreateFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateFolder( google::cloud::resourcemanager::v3::UpdateFolderRequest const& request) override; + StatusOr UpdateFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateFolderRequest const& request) + override; + + future> UpdateFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> MoveFolder( google::cloud::resourcemanager::v3::MoveFolderRequest const& request) override; + StatusOr MoveFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::MoveFolderRequest const& request) + override; + + future> MoveFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFolder( google::cloud::resourcemanager::v3::DeleteFolderRequest const& request) override; + StatusOr DeleteFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteFolderRequest const& request) + override; + + future> DeleteFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeleteFolder( google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request) override; + StatusOr UndeleteFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request) + override; + + future> UndeleteFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.cc index 98faeebac4986..172226a747ccc 100644 --- a/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.cc @@ -75,6 +75,29 @@ FoldersTracingConnection::CreateFolder( return internal::EndSpan(std::move(span), child_->CreateFolder(request)); } +StatusOr FoldersTracingConnection::CreateFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateFolderRequest const& request) { + auto span = + internal::MakeSpan("resourcemanager_v3::FoldersConnection::CreateFolder"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateFolder(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FoldersTracingConnection::CreateFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("resourcemanager_v3::FoldersConnection::CreateFolder"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateFolder(google::cloud::ExperimentalTag{}, operation)); +} + future> FoldersTracingConnection::UpdateFolder( google::cloud::resourcemanager::v3::UpdateFolderRequest const& request) { @@ -84,6 +107,29 @@ FoldersTracingConnection::UpdateFolder( return internal::EndSpan(std::move(span), child_->UpdateFolder(request)); } +StatusOr FoldersTracingConnection::UpdateFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateFolderRequest const& request) { + auto span = + internal::MakeSpan("resourcemanager_v3::FoldersConnection::UpdateFolder"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateFolder(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FoldersTracingConnection::UpdateFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("resourcemanager_v3::FoldersConnection::UpdateFolder"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateFolder(google::cloud::ExperimentalTag{}, operation)); +} + future> FoldersTracingConnection::MoveFolder( google::cloud::resourcemanager::v3::MoveFolderRequest const& request) { @@ -93,6 +139,29 @@ FoldersTracingConnection::MoveFolder( return internal::EndSpan(std::move(span), child_->MoveFolder(request)); } +StatusOr FoldersTracingConnection::MoveFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::MoveFolderRequest const& request) { + auto span = + internal::MakeSpan("resourcemanager_v3::FoldersConnection::MoveFolder"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->MoveFolder(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FoldersTracingConnection::MoveFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("resourcemanager_v3::FoldersConnection::MoveFolder"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->MoveFolder(google::cloud::ExperimentalTag{}, operation)); +} + future> FoldersTracingConnection::DeleteFolder( google::cloud::resourcemanager::v3::DeleteFolderRequest const& request) { @@ -102,6 +171,29 @@ FoldersTracingConnection::DeleteFolder( return internal::EndSpan(std::move(span), child_->DeleteFolder(request)); } +StatusOr FoldersTracingConnection::DeleteFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteFolderRequest const& request) { + auto span = + internal::MakeSpan("resourcemanager_v3::FoldersConnection::DeleteFolder"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteFolder(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FoldersTracingConnection::DeleteFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("resourcemanager_v3::FoldersConnection::DeleteFolder"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteFolder(google::cloud::ExperimentalTag{}, operation)); +} + future> FoldersTracingConnection::UndeleteFolder( google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request) { @@ -111,6 +203,30 @@ FoldersTracingConnection::UndeleteFolder( return internal::EndSpan(std::move(span), child_->UndeleteFolder(request)); } +StatusOr +FoldersTracingConnection::UndeleteFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request) { + auto span = internal::MakeSpan( + "resourcemanager_v3::FoldersConnection::UndeleteFolder"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UndeleteFolder(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +FoldersTracingConnection::UndeleteFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "resourcemanager_v3::FoldersConnection::UndeleteFolder"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UndeleteFolder(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr FoldersTracingConnection::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) { auto span = diff --git a/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.h b/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.h index 2d8844ba0d0de..e10db63cac578 100644 --- a/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.h +++ b/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.h @@ -54,22 +54,67 @@ class FoldersTracingConnection : public resourcemanager_v3::FoldersConnection { google::cloud::resourcemanager::v3::CreateFolderRequest const& request) override; + StatusOr CreateFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateFolderRequest const& request) + override; + + future> CreateFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateFolder( google::cloud::resourcemanager::v3::UpdateFolderRequest const& request) override; + StatusOr UpdateFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateFolderRequest const& request) + override; + + future> UpdateFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> MoveFolder( google::cloud::resourcemanager::v3::MoveFolderRequest const& request) override; + StatusOr MoveFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::MoveFolderRequest const& request) + override; + + future> MoveFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteFolder( google::cloud::resourcemanager::v3::DeleteFolderRequest const& request) override; + StatusOr DeleteFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteFolderRequest const& request) + override; + + future> DeleteFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeleteFolder( google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request) override; + StatusOr UndeleteFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request) + override; + + future> UndeleteFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/resourcemanager/v3/internal/projects_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/projects_connection_impl.cc index 0f52035cf035a..2f947419b489b 100644 --- a/google/cloud/resourcemanager/v3/internal/projects_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/projects_connection_impl.cc @@ -191,6 +191,60 @@ ProjectsConnectionImpl::CreateProject( polling_policy(*current), __func__); } +StatusOr ProjectsConnectionImpl::CreateProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateProjectRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateProject(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::CreateProjectRequest const& + request) { + return stub_->CreateProject(context, options, request); + }, + *current, request, __func__); +} + +future> +ProjectsConnectionImpl::CreateProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateProject", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::Project>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::Project>, + polling_policy(*current), __func__); +} + future> ProjectsConnectionImpl::UpdateProject( google::cloud::resourcemanager::v3::UpdateProjectRequest const& request) { @@ -231,6 +285,60 @@ ProjectsConnectionImpl::UpdateProject( polling_policy(*current), __func__); } +StatusOr ProjectsConnectionImpl::UpdateProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateProjectRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateProject(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::UpdateProjectRequest const& + request) { + return stub_->UpdateProject(context, options, request); + }, + *current, request, __func__); +} + +future> +ProjectsConnectionImpl::UpdateProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateProject", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::Project>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::Project>, + polling_policy(*current), __func__); +} + future> ProjectsConnectionImpl::MoveProject( google::cloud::resourcemanager::v3::MoveProjectRequest const& request) { @@ -271,6 +379,60 @@ ProjectsConnectionImpl::MoveProject( polling_policy(*current), __func__); } +StatusOr ProjectsConnectionImpl::MoveProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::MoveProjectRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->MoveProject(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::MoveProjectRequest const& + request) { + return stub_->MoveProject(context, options, request); + }, + *current, request, __func__); +} + +future> +ProjectsConnectionImpl::MoveProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to MoveProject", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::Project>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::Project>, + polling_policy(*current), __func__); +} + future> ProjectsConnectionImpl::DeleteProject( google::cloud::resourcemanager::v3::DeleteProjectRequest const& request) { @@ -311,6 +473,60 @@ ProjectsConnectionImpl::DeleteProject( polling_policy(*current), __func__); } +StatusOr ProjectsConnectionImpl::DeleteProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteProjectRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteProject(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::DeleteProjectRequest const& + request) { + return stub_->DeleteProject(context, options, request); + }, + *current, request, __func__); +} + +future> +ProjectsConnectionImpl::DeleteProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteProject", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::Project>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::Project>, + polling_policy(*current), __func__); +} + future> ProjectsConnectionImpl::UndeleteProject( google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request) { @@ -351,6 +567,61 @@ ProjectsConnectionImpl::UndeleteProject( polling_policy(*current), __func__); } +StatusOr +ProjectsConnectionImpl::UndeleteProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UndeleteProject(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::UndeleteProjectRequest const& + request) { + return stub_->UndeleteProject(context, options, request); + }, + *current, request, __func__); +} + +future> +ProjectsConnectionImpl::UndeleteProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UndeleteProject", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::Project>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::Project>, + polling_policy(*current), __func__); +} + StatusOr ProjectsConnectionImpl::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/resourcemanager/v3/internal/projects_connection_impl.h b/google/cloud/resourcemanager/v3/internal/projects_connection_impl.h index b7e13b1a833b6..0d121ff69f7bd 100644 --- a/google/cloud/resourcemanager/v3/internal/projects_connection_impl.h +++ b/google/cloud/resourcemanager/v3/internal/projects_connection_impl.h @@ -66,22 +66,67 @@ class ProjectsConnectionImpl : public resourcemanager_v3::ProjectsConnection { google::cloud::resourcemanager::v3::CreateProjectRequest const& request) override; + StatusOr CreateProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateProjectRequest const& request) + override; + + future> CreateProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateProject( google::cloud::resourcemanager::v3::UpdateProjectRequest const& request) override; + StatusOr UpdateProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateProjectRequest const& request) + override; + + future> UpdateProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> MoveProject( google::cloud::resourcemanager::v3::MoveProjectRequest const& request) override; + StatusOr MoveProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::MoveProjectRequest const& request) + override; + + future> MoveProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteProject( google::cloud::resourcemanager::v3::DeleteProjectRequest const& request) override; + StatusOr DeleteProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteProjectRequest const& request) + override; + + future> DeleteProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeleteProject( google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request) override; + StatusOr UndeleteProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request) + override; + + future> UndeleteProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.cc index ab6b817f96808..7ed3ba84793f0 100644 --- a/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.cc @@ -75,6 +75,30 @@ ProjectsTracingConnection::CreateProject( return internal::EndSpan(std::move(span), child_->CreateProject(request)); } +StatusOr +ProjectsTracingConnection::CreateProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateProjectRequest const& request) { + auto span = internal::MakeSpan( + "resourcemanager_v3::ProjectsConnection::CreateProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateProject(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProjectsTracingConnection::CreateProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "resourcemanager_v3::ProjectsConnection::CreateProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateProject(google::cloud::ExperimentalTag{}, operation)); +} + future> ProjectsTracingConnection::UpdateProject( google::cloud::resourcemanager::v3::UpdateProjectRequest const& request) { @@ -84,6 +108,30 @@ ProjectsTracingConnection::UpdateProject( return internal::EndSpan(std::move(span), child_->UpdateProject(request)); } +StatusOr +ProjectsTracingConnection::UpdateProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateProjectRequest const& request) { + auto span = internal::MakeSpan( + "resourcemanager_v3::ProjectsConnection::UpdateProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateProject(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProjectsTracingConnection::UpdateProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "resourcemanager_v3::ProjectsConnection::UpdateProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateProject(google::cloud::ExperimentalTag{}, operation)); +} + future> ProjectsTracingConnection::MoveProject( google::cloud::resourcemanager::v3::MoveProjectRequest const& request) { @@ -93,6 +141,29 @@ ProjectsTracingConnection::MoveProject( return internal::EndSpan(std::move(span), child_->MoveProject(request)); } +StatusOr ProjectsTracingConnection::MoveProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::MoveProjectRequest const& request) { + auto span = + internal::MakeSpan("resourcemanager_v3::ProjectsConnection::MoveProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->MoveProject(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProjectsTracingConnection::MoveProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("resourcemanager_v3::ProjectsConnection::MoveProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->MoveProject(google::cloud::ExperimentalTag{}, operation)); +} + future> ProjectsTracingConnection::DeleteProject( google::cloud::resourcemanager::v3::DeleteProjectRequest const& request) { @@ -102,6 +173,30 @@ ProjectsTracingConnection::DeleteProject( return internal::EndSpan(std::move(span), child_->DeleteProject(request)); } +StatusOr +ProjectsTracingConnection::DeleteProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteProjectRequest const& request) { + auto span = internal::MakeSpan( + "resourcemanager_v3::ProjectsConnection::DeleteProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteProject(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProjectsTracingConnection::DeleteProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "resourcemanager_v3::ProjectsConnection::DeleteProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteProject(google::cloud::ExperimentalTag{}, operation)); +} + future> ProjectsTracingConnection::UndeleteProject( google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request) { @@ -111,6 +206,30 @@ ProjectsTracingConnection::UndeleteProject( return internal::EndSpan(std::move(span), child_->UndeleteProject(request)); } +StatusOr +ProjectsTracingConnection::UndeleteProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request) { + auto span = internal::MakeSpan( + "resourcemanager_v3::ProjectsConnection::UndeleteProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UndeleteProject(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProjectsTracingConnection::UndeleteProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "resourcemanager_v3::ProjectsConnection::UndeleteProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UndeleteProject(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ProjectsTracingConnection::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) { auto span = internal::MakeSpan( diff --git a/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.h b/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.h index f22683fdb6a71..fe53a20d4fa32 100644 --- a/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.h +++ b/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.h @@ -55,22 +55,67 @@ class ProjectsTracingConnection google::cloud::resourcemanager::v3::CreateProjectRequest const& request) override; + StatusOr CreateProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateProjectRequest const& request) + override; + + future> CreateProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateProject( google::cloud::resourcemanager::v3::UpdateProjectRequest const& request) override; + StatusOr UpdateProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateProjectRequest const& request) + override; + + future> UpdateProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> MoveProject( google::cloud::resourcemanager::v3::MoveProjectRequest const& request) override; + StatusOr MoveProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::MoveProjectRequest const& request) + override; + + future> MoveProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteProject( google::cloud::resourcemanager::v3::DeleteProjectRequest const& request) override; + StatusOr DeleteProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteProjectRequest const& request) + override; + + future> DeleteProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeleteProject( google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request) override; + StatusOr UndeleteProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request) + override; + + future> UndeleteProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.cc index 4ca22679d71f8..ed20b01bef62c 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.cc @@ -142,6 +142,62 @@ TagBindingsConnectionImpl::CreateTagBinding( polling_policy(*current), __func__); } +StatusOr +TagBindingsConnectionImpl::CreateTagBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagBindingRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateTagBinding(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::CreateTagBindingRequest const& + request) { + return stub_->CreateTagBinding(context, options, request); + }, + *current, request, __func__); +} + +future> +TagBindingsConnectionImpl::CreateTagBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateTagBinding", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::TagBinding>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::TagBinding>, + polling_policy(*current), __func__); +} + future> TagBindingsConnectionImpl::DeleteTagBinding( google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& @@ -183,6 +239,62 @@ TagBindingsConnectionImpl::DeleteTagBinding( polling_policy(*current), __func__); } +StatusOr +TagBindingsConnectionImpl::DeleteTagBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTagBinding(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& + request) { + return stub_->DeleteTagBinding(context, options, request); + }, + *current, request, __func__); +} + +future> +TagBindingsConnectionImpl::DeleteTagBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTagBinding", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::DeleteTagBindingMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::resourcemanager::v3::DeleteTagBindingMetadata>, + polling_policy(*current), __func__); +} + StreamRange TagBindingsConnectionImpl::ListEffectiveTags( google::cloud::resourcemanager::v3::ListEffectiveTagsRequest request) { diff --git a/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.h b/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.h index e31f499601f1c..a996a0d4e402f 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.h +++ b/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.h @@ -61,11 +61,29 @@ class TagBindingsConnectionImpl google::cloud::resourcemanager::v3::CreateTagBindingRequest const& request) override; + StatusOr CreateTagBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagBindingRequest const& + request) override; + + future> + CreateTagBinding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTagBinding( google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& request) override; + StatusOr DeleteTagBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& + request) override; + + future> + DeleteTagBinding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListEffectiveTags(google::cloud::resourcemanager::v3::ListEffectiveTagsRequest request) override; diff --git a/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.cc index de965d2a100be..6858dfa53660b 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.cc @@ -55,6 +55,31 @@ TagBindingsTracingConnection::CreateTagBinding( return internal::EndSpan(std::move(span), child_->CreateTagBinding(request)); } +StatusOr +TagBindingsTracingConnection::CreateTagBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagBindingRequest const& + request) { + auto span = internal::MakeSpan( + "resourcemanager_v3::TagBindingsConnection::CreateTagBinding"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateTagBinding(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TagBindingsTracingConnection::CreateTagBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "resourcemanager_v3::TagBindingsConnection::CreateTagBinding"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateTagBinding(google::cloud::ExperimentalTag{}, operation)); +} + future> TagBindingsTracingConnection::DeleteTagBinding( google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& @@ -65,6 +90,31 @@ TagBindingsTracingConnection::DeleteTagBinding( return internal::EndSpan(std::move(span), child_->DeleteTagBinding(request)); } +StatusOr +TagBindingsTracingConnection::DeleteTagBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& + request) { + auto span = internal::MakeSpan( + "resourcemanager_v3::TagBindingsConnection::DeleteTagBinding"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteTagBinding(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TagBindingsTracingConnection::DeleteTagBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "resourcemanager_v3::TagBindingsConnection::DeleteTagBinding"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteTagBinding(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange TagBindingsTracingConnection::ListEffectiveTags( google::cloud::resourcemanager::v3::ListEffectiveTagsRequest request) { diff --git a/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.h b/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.h index 47894fdbeabc9..021796ed192b4 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.h +++ b/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.h @@ -49,11 +49,29 @@ class TagBindingsTracingConnection google::cloud::resourcemanager::v3::CreateTagBindingRequest const& request) override; + StatusOr CreateTagBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagBindingRequest const& + request) override; + + future> + CreateTagBinding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTagBinding( google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& request) override; + StatusOr DeleteTagBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& + request) override; + + future> + DeleteTagBinding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListEffectiveTags(google::cloud::resourcemanager::v3::ListEffectiveTagsRequest request) override; diff --git a/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.cc index 7fcbb18420ec3..f315b3486aa8f 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.cc @@ -106,6 +106,60 @@ TagHoldsConnectionImpl::CreateTagHold( polling_policy(*current), __func__); } +StatusOr TagHoldsConnectionImpl::CreateTagHold( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateTagHold(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::CreateTagHoldRequest const& + request) { + return stub_->CreateTagHold(context, options, request); + }, + *current, request, __func__); +} + +future> +TagHoldsConnectionImpl::CreateTagHold( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateTagHold", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::TagHold>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::TagHold>, + polling_policy(*current), __func__); +} + future> TagHoldsConnectionImpl::DeleteTagHold( google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request) { @@ -146,6 +200,60 @@ TagHoldsConnectionImpl::DeleteTagHold( polling_policy(*current), __func__); } +StatusOr TagHoldsConnectionImpl::DeleteTagHold( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTagHold(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& + request) { + return stub_->DeleteTagHold(context, options, request); + }, + *current, request, __func__); +} + +future> +TagHoldsConnectionImpl::DeleteTagHold( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTagHold", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::DeleteTagHoldMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::resourcemanager::v3::DeleteTagHoldMetadata>, + polling_policy(*current), __func__); +} + StreamRange TagHoldsConnectionImpl::ListTagHolds( google::cloud::resourcemanager::v3::ListTagHoldsRequest request) { diff --git a/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.h b/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.h index 0b2288cdcfb87..42c847ebaff43 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.h +++ b/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.h @@ -55,10 +55,28 @@ class TagHoldsConnectionImpl : public resourcemanager_v3::TagHoldsConnection { google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request) override; + StatusOr CreateTagHold( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request) + override; + + future> CreateTagHold( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTagHold(google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request) override; + StatusOr DeleteTagHold( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request) + override; + + future> + DeleteTagHold(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTagHolds( google::cloud::resourcemanager::v3::ListTagHoldsRequest request) override; diff --git a/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.cc index 72923ce44872b..126e642ef9ddc 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.cc @@ -42,6 +42,30 @@ TagHoldsTracingConnection::CreateTagHold( return internal::EndSpan(std::move(span), child_->CreateTagHold(request)); } +StatusOr +TagHoldsTracingConnection::CreateTagHold( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request) { + auto span = internal::MakeSpan( + "resourcemanager_v3::TagHoldsConnection::CreateTagHold"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateTagHold(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TagHoldsTracingConnection::CreateTagHold( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "resourcemanager_v3::TagHoldsConnection::CreateTagHold"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateTagHold(google::cloud::ExperimentalTag{}, operation)); +} + future> TagHoldsTracingConnection::DeleteTagHold( google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request) { @@ -51,6 +75,30 @@ TagHoldsTracingConnection::DeleteTagHold( return internal::EndSpan(std::move(span), child_->DeleteTagHold(request)); } +StatusOr +TagHoldsTracingConnection::DeleteTagHold( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request) { + auto span = internal::MakeSpan( + "resourcemanager_v3::TagHoldsConnection::DeleteTagHold"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteTagHold(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TagHoldsTracingConnection::DeleteTagHold( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "resourcemanager_v3::TagHoldsConnection::DeleteTagHold"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteTagHold(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange TagHoldsTracingConnection::ListTagHolds( google::cloud::resourcemanager::v3::ListTagHoldsRequest request) { diff --git a/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.h b/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.h index f93b516ba57c4..43fc0e4a0a95a 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.h +++ b/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.h @@ -44,10 +44,28 @@ class TagHoldsTracingConnection google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request) override; + StatusOr CreateTagHold( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request) + override; + + future> CreateTagHold( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTagHold(google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request) override; + StatusOr DeleteTagHold( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request) + override; + + future> + DeleteTagHold(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTagHolds( google::cloud::resourcemanager::v3::ListTagHoldsRequest request) override; diff --git a/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.cc index d0e94ac8d72ad..5771a2805efe5 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.cc @@ -170,6 +170,60 @@ TagKeysConnectionImpl::CreateTagKey( polling_policy(*current), __func__); } +StatusOr TagKeysConnectionImpl::CreateTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateTagKey(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::CreateTagKeyRequest const& + request) { + return stub_->CreateTagKey(context, options, request); + }, + *current, request, __func__); +} + +future> +TagKeysConnectionImpl::CreateTagKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateTagKey", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::TagKey>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::TagKey>, + polling_policy(*current), __func__); +} + future> TagKeysConnectionImpl::UpdateTagKey( google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request) { @@ -210,6 +264,60 @@ TagKeysConnectionImpl::UpdateTagKey( polling_policy(*current), __func__); } +StatusOr TagKeysConnectionImpl::UpdateTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateTagKey(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& + request) { + return stub_->UpdateTagKey(context, options, request); + }, + *current, request, __func__); +} + +future> +TagKeysConnectionImpl::UpdateTagKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateTagKey", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::TagKey>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::TagKey>, + polling_policy(*current), __func__); +} + future> TagKeysConnectionImpl::DeleteTagKey( google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request) { @@ -250,6 +358,60 @@ TagKeysConnectionImpl::DeleteTagKey( polling_policy(*current), __func__); } +StatusOr TagKeysConnectionImpl::DeleteTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTagKey(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& + request) { + return stub_->DeleteTagKey(context, options, request); + }, + *current, request, __func__); +} + +future> +TagKeysConnectionImpl::DeleteTagKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTagKey", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::TagKey>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::TagKey>, + polling_policy(*current), __func__); +} + StatusOr TagKeysConnectionImpl::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.h b/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.h index a41811131df0b..8ceec743de1ab 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.h +++ b/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.h @@ -66,14 +66,41 @@ class TagKeysConnectionImpl : public resourcemanager_v3::TagKeysConnection { google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request) override; + StatusOr CreateTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request) + override; + + future> CreateTagKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTagKey( google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request) override; + StatusOr UpdateTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request) + override; + + future> UpdateTagKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTagKey( google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request) override; + StatusOr DeleteTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request) + override; + + future> DeleteTagKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.cc index 61f3bb65b6d61..9b0d436b20650 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.cc @@ -73,6 +73,29 @@ TagKeysTracingConnection::CreateTagKey( return internal::EndSpan(std::move(span), child_->CreateTagKey(request)); } +StatusOr TagKeysTracingConnection::CreateTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request) { + auto span = + internal::MakeSpan("resourcemanager_v3::TagKeysConnection::CreateTagKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateTagKey(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TagKeysTracingConnection::CreateTagKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("resourcemanager_v3::TagKeysConnection::CreateTagKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateTagKey(google::cloud::ExperimentalTag{}, operation)); +} + future> TagKeysTracingConnection::UpdateTagKey( google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request) { @@ -82,6 +105,29 @@ TagKeysTracingConnection::UpdateTagKey( return internal::EndSpan(std::move(span), child_->UpdateTagKey(request)); } +StatusOr TagKeysTracingConnection::UpdateTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request) { + auto span = + internal::MakeSpan("resourcemanager_v3::TagKeysConnection::UpdateTagKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateTagKey(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TagKeysTracingConnection::UpdateTagKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("resourcemanager_v3::TagKeysConnection::UpdateTagKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateTagKey(google::cloud::ExperimentalTag{}, operation)); +} + future> TagKeysTracingConnection::DeleteTagKey( google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request) { @@ -91,6 +137,29 @@ TagKeysTracingConnection::DeleteTagKey( return internal::EndSpan(std::move(span), child_->DeleteTagKey(request)); } +StatusOr TagKeysTracingConnection::DeleteTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request) { + auto span = + internal::MakeSpan("resourcemanager_v3::TagKeysConnection::DeleteTagKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteTagKey(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TagKeysTracingConnection::DeleteTagKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("resourcemanager_v3::TagKeysConnection::DeleteTagKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteTagKey(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TagKeysTracingConnection::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) { auto span = diff --git a/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.h b/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.h index 103e59eba7454..dad545c0d1798 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.h +++ b/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.h @@ -54,14 +54,41 @@ class TagKeysTracingConnection : public resourcemanager_v3::TagKeysConnection { google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request) override; + StatusOr CreateTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request) + override; + + future> CreateTagKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTagKey( google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request) override; + StatusOr UpdateTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request) + override; + + future> UpdateTagKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTagKey( google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request) override; + StatusOr DeleteTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request) + override; + + future> DeleteTagKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.cc index 375dcd084bb5f..db1171714bb68 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.cc @@ -172,6 +172,61 @@ TagValuesConnectionImpl::CreateTagValue( polling_policy(*current), __func__); } +StatusOr +TagValuesConnectionImpl::CreateTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagValueRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateTagValue(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::CreateTagValueRequest const& + request) { + return stub_->CreateTagValue(context, options, request); + }, + *current, request, __func__); +} + +future> +TagValuesConnectionImpl::CreateTagValue( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateTagValue", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::TagValue>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::TagValue>, + polling_policy(*current), __func__); +} + future> TagValuesConnectionImpl::UpdateTagValue( google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request) { @@ -212,6 +267,61 @@ TagValuesConnectionImpl::UpdateTagValue( polling_policy(*current), __func__); } +StatusOr +TagValuesConnectionImpl::UpdateTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateTagValue(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::UpdateTagValueRequest const& + request) { + return stub_->UpdateTagValue(context, options, request); + }, + *current, request, __func__); +} + +future> +TagValuesConnectionImpl::UpdateTagValue( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateTagValue", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::TagValue>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::TagValue>, + polling_policy(*current), __func__); +} + future> TagValuesConnectionImpl::DeleteTagValue( google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request) { @@ -252,6 +362,61 @@ TagValuesConnectionImpl::DeleteTagValue( polling_policy(*current), __func__); } +StatusOr +TagValuesConnectionImpl::DeleteTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTagValue(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::resourcemanager::v3::DeleteTagValueRequest const& + request) { + return stub_->DeleteTagValue(context, options, request); + }, + *current, request, __func__); +} + +future> +TagValuesConnectionImpl::DeleteTagValue( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTagValue", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::resourcemanager::v3::TagValue>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::resourcemanager::v3::TagValue>, + polling_policy(*current), __func__); +} + StatusOr TagValuesConnectionImpl::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.h b/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.h index 4b0bc82cb1de8..b7b823853ea6f 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.h +++ b/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.h @@ -67,14 +67,41 @@ class TagValuesConnectionImpl : public resourcemanager_v3::TagValuesConnection { google::cloud::resourcemanager::v3::CreateTagValueRequest const& request) override; + StatusOr CreateTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagValueRequest const& request) + override; + + future> CreateTagValue( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTagValue( google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request) override; + StatusOr UpdateTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request) + override; + + future> UpdateTagValue( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTagValue( google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request) override; + StatusOr DeleteTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request) + override; + + future> DeleteTagValue( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.cc index f54608cc49ffa..cf43a40f5356c 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.cc @@ -73,6 +73,30 @@ TagValuesTracingConnection::CreateTagValue( return internal::EndSpan(std::move(span), child_->CreateTagValue(request)); } +StatusOr +TagValuesTracingConnection::CreateTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagValueRequest const& request) { + auto span = internal::MakeSpan( + "resourcemanager_v3::TagValuesConnection::CreateTagValue"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateTagValue(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TagValuesTracingConnection::CreateTagValue( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "resourcemanager_v3::TagValuesConnection::CreateTagValue"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateTagValue(google::cloud::ExperimentalTag{}, operation)); +} + future> TagValuesTracingConnection::UpdateTagValue( google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request) { @@ -82,6 +106,30 @@ TagValuesTracingConnection::UpdateTagValue( return internal::EndSpan(std::move(span), child_->UpdateTagValue(request)); } +StatusOr +TagValuesTracingConnection::UpdateTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request) { + auto span = internal::MakeSpan( + "resourcemanager_v3::TagValuesConnection::UpdateTagValue"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateTagValue(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TagValuesTracingConnection::UpdateTagValue( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "resourcemanager_v3::TagValuesConnection::UpdateTagValue"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateTagValue(google::cloud::ExperimentalTag{}, operation)); +} + future> TagValuesTracingConnection::DeleteTagValue( google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request) { @@ -91,6 +139,30 @@ TagValuesTracingConnection::DeleteTagValue( return internal::EndSpan(std::move(span), child_->DeleteTagValue(request)); } +StatusOr +TagValuesTracingConnection::DeleteTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request) { + auto span = internal::MakeSpan( + "resourcemanager_v3::TagValuesConnection::DeleteTagValue"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteTagValue(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TagValuesTracingConnection::DeleteTagValue( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "resourcemanager_v3::TagValuesConnection::DeleteTagValue"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteTagValue(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TagValuesTracingConnection::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) { auto span = internal::MakeSpan( diff --git a/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.h b/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.h index b4a39177a7fb4..3d9970c382519 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.h +++ b/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.h @@ -56,14 +56,41 @@ class TagValuesTracingConnection google::cloud::resourcemanager::v3::CreateTagValueRequest const& request) override; + StatusOr CreateTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagValueRequest const& request) + override; + + future> CreateTagValue( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTagValue( google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request) override; + StatusOr UpdateTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request) + override; + + future> UpdateTagValue( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTagValue( google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request) override; + StatusOr DeleteTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request) + override; + + future> DeleteTagValue( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/resourcemanager/v3/mocks/mock_folders_connection.h b/google/cloud/resourcemanager/v3/mocks/mock_folders_connection.h index 804398710f2cc..124657f0261d2 100644 --- a/google/cloud/resourcemanager/v3/mocks/mock_folders_connection.h +++ b/google/cloud/resourcemanager/v3/mocks/mock_folders_connection.h @@ -67,29 +67,89 @@ class MockFoldersConnection : public resourcemanager_v3::FoldersConnection { (google::cloud::resourcemanager::v3::CreateFolderRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateFolder, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateFolderRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateFolder, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateFolder, (google::cloud::resourcemanager::v3::UpdateFolderRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateFolder, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateFolderRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateFolder, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, MoveFolder, (google::cloud::resourcemanager::v3::MoveFolderRequest const& request), (override)); + MOCK_METHOD( + StatusOr, MoveFolder, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::MoveFolderRequest const& request), + (override)); + + MOCK_METHOD(future>, + MoveFolder, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteFolder, (google::cloud::resourcemanager::v3::DeleteFolderRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteFolder, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteFolderRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteFolder, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UndeleteFolder, (google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request), (override)); + MOCK_METHOD(StatusOr, UndeleteFolder, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UndeleteFolderRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UndeleteFolder, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetIamPolicy, (google::iam::v1::GetIamPolicyRequest const& request), (override)); diff --git a/google/cloud/resourcemanager/v3/mocks/mock_projects_connection.h b/google/cloud/resourcemanager/v3/mocks/mock_projects_connection.h index 62d432592a373..669b27812c924 100644 --- a/google/cloud/resourcemanager/v3/mocks/mock_projects_connection.h +++ b/google/cloud/resourcemanager/v3/mocks/mock_projects_connection.h @@ -68,30 +68,90 @@ class MockProjectsConnection : public resourcemanager_v3::ProjectsConnection { (google::cloud::resourcemanager::v3::CreateProjectRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateProject, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateProjectRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateProject, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateProject, (google::cloud::resourcemanager::v3::UpdateProjectRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateProject, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateProjectRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateProject, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, MoveProject, (google::cloud::resourcemanager::v3::MoveProjectRequest const& request), (override)); + MOCK_METHOD( + StatusOr, MoveProject, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::MoveProjectRequest const& request), + (override)); + + MOCK_METHOD(future>, + MoveProject, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteProject, (google::cloud::resourcemanager::v3::DeleteProjectRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteProject, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteProjectRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteProject, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UndeleteProject, (google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request), (override)); + MOCK_METHOD(StatusOr, UndeleteProject, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UndeleteProjectRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UndeleteProject, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetIamPolicy, (google::iam::v1::GetIamPolicyRequest const& request), (override)); diff --git a/google/cloud/resourcemanager/v3/mocks/mock_tag_bindings_connection.h b/google/cloud/resourcemanager/v3/mocks/mock_tag_bindings_connection.h index d3d4b2c4b70a1..cb38382569b49 100644 --- a/google/cloud/resourcemanager/v3/mocks/mock_tag_bindings_connection.h +++ b/google/cloud/resourcemanager/v3/mocks/mock_tag_bindings_connection.h @@ -60,6 +60,19 @@ class MockTagBindingsConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateTagBinding, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagBindingRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateTagBinding, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -68,6 +81,21 @@ class MockTagBindingsConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteTagBinding, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteTagBinding, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListEffectiveTags, diff --git a/google/cloud/resourcemanager/v3/mocks/mock_tag_holds_connection.h b/google/cloud/resourcemanager/v3/mocks/mock_tag_holds_connection.h index 74ea692bbb286..4311b166a751c 100644 --- a/google/cloud/resourcemanager/v3/mocks/mock_tag_holds_connection.h +++ b/google/cloud/resourcemanager/v3/mocks/mock_tag_holds_connection.h @@ -52,6 +52,18 @@ class MockTagHoldsConnection : public resourcemanager_v3::TagHoldsConnection { (google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateTagHold, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateTagHold, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -59,6 +71,20 @@ class MockTagHoldsConnection : public resourcemanager_v3::TagHoldsConnection { (google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteTagHold, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteTagHold, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListTagHolds, (google::cloud::resourcemanager::v3::ListTagHoldsRequest request), diff --git a/google/cloud/resourcemanager/v3/mocks/mock_tag_keys_connection.h b/google/cloud/resourcemanager/v3/mocks/mock_tag_keys_connection.h index fba03b6dd9ec7..a3e2e011ac8e9 100644 --- a/google/cloud/resourcemanager/v3/mocks/mock_tag_keys_connection.h +++ b/google/cloud/resourcemanager/v3/mocks/mock_tag_keys_connection.h @@ -68,18 +68,54 @@ class MockTagKeysConnection : public resourcemanager_v3::TagKeysConnection { (google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateTagKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateTagKey, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateTagKey, (google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateTagKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateTagKey, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteTagKey, (google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteTagKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteTagKey, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetIamPolicy, (google::iam::v1::GetIamPolicyRequest const& request), (override)); diff --git a/google/cloud/resourcemanager/v3/mocks/mock_tag_values_connection.h b/google/cloud/resourcemanager/v3/mocks/mock_tag_values_connection.h index e5e10e69d86ed..db81bfaf5debc 100644 --- a/google/cloud/resourcemanager/v3/mocks/mock_tag_values_connection.h +++ b/google/cloud/resourcemanager/v3/mocks/mock_tag_values_connection.h @@ -70,18 +70,54 @@ class MockTagValuesConnection : public resourcemanager_v3::TagValuesConnection { request), (override)); + MOCK_METHOD(StatusOr, CreateTagValue, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagValueRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateTagValue, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateTagValue, (google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateTagValue, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateTagValueRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateTagValue, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteTagValue, (google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteTagValue, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagValueRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteTagValue, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetIamPolicy, (google::iam::v1::GetIamPolicyRequest const& request), (override)); diff --git a/google/cloud/resourcemanager/v3/organizations_connection.h b/google/cloud/resourcemanager/v3/organizations_connection.h index a14585c370614..075f27c30140d 100644 --- a/google/cloud/resourcemanager/v3/organizations_connection.h +++ b/google/cloud/resourcemanager/v3/organizations_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/resourcemanager/v3/internal/organizations_retry_traits.h" #include "google/cloud/resourcemanager/v3/organizations_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/resourcemanager/v3/projects_connection.cc b/google/cloud/resourcemanager/v3/projects_connection.cc index 2bf66689e1396..c446d17bba8d9 100644 --- a/google/cloud/resourcemanager/v3/projects_connection.cc +++ b/google/cloud/resourcemanager/v3/projects_connection.cc @@ -68,6 +68,21 @@ ProjectsConnection::CreateProject( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ProjectsConnection::CreateProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateProjectRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProjectsConnection::CreateProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ProjectsConnection::UpdateProject( google::cloud::resourcemanager::v3::UpdateProjectRequest const&) { @@ -76,6 +91,21 @@ ProjectsConnection::UpdateProject( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ProjectsConnection::UpdateProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateProjectRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProjectsConnection::UpdateProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ProjectsConnection::MoveProject( google::cloud::resourcemanager::v3::MoveProjectRequest const&) { @@ -84,6 +114,21 @@ ProjectsConnection::MoveProject( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ProjectsConnection::MoveProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::MoveProjectRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProjectsConnection::MoveProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ProjectsConnection::DeleteProject( google::cloud::resourcemanager::v3::DeleteProjectRequest const&) { @@ -92,6 +137,21 @@ ProjectsConnection::DeleteProject( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ProjectsConnection::DeleteProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteProjectRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProjectsConnection::DeleteProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ProjectsConnection::UndeleteProject( google::cloud::resourcemanager::v3::UndeleteProjectRequest const&) { @@ -100,6 +160,21 @@ ProjectsConnection::UndeleteProject( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ProjectsConnection::UndeleteProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UndeleteProjectRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProjectsConnection::UndeleteProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ProjectsConnection::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); diff --git a/google/cloud/resourcemanager/v3/projects_connection.h b/google/cloud/resourcemanager/v3/projects_connection.h index 2612813867574..e74ddc6e5b246 100644 --- a/google/cloud/resourcemanager/v3/projects_connection.h +++ b/google/cloud/resourcemanager/v3/projects_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/resourcemanager/v3/internal/projects_retry_traits.h" #include "google/cloud/resourcemanager/v3/projects_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -196,23 +198,64 @@ class ProjectsConnection { CreateProject( google::cloud::resourcemanager::v3::CreateProjectRequest const& request); + virtual StatusOr CreateProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateProjectRequest const& request); + + virtual future> + CreateProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateProject( google::cloud::resourcemanager::v3::UpdateProjectRequest const& request); + virtual StatusOr UpdateProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateProjectRequest const& request); + + virtual future> + UpdateProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> MoveProject( google::cloud::resourcemanager::v3::MoveProjectRequest const& request); + virtual StatusOr MoveProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::MoveProjectRequest const& request); + + virtual future> + MoveProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteProject( google::cloud::resourcemanager::v3::DeleteProjectRequest const& request); + virtual StatusOr DeleteProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteProjectRequest const& request); + + virtual future> + DeleteProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UndeleteProject( google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request); + virtual StatusOr UndeleteProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UndeleteProjectRequest const& + request); + + virtual future> + UndeleteProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request); diff --git a/google/cloud/resourcemanager/v3/tag_bindings_connection.cc b/google/cloud/resourcemanager/v3/tag_bindings_connection.cc index 50e045044f324..a11ea2b3195a2 100644 --- a/google/cloud/resourcemanager/v3/tag_bindings_connection.cc +++ b/google/cloud/resourcemanager/v3/tag_bindings_connection.cc @@ -54,6 +54,22 @@ TagBindingsConnection::CreateTagBinding( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TagBindingsConnection::CreateTagBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagBindingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TagBindingsConnection::CreateTagBinding(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TagBindingsConnection::DeleteTagBinding( google::cloud::resourcemanager::v3::DeleteTagBindingRequest const&) { @@ -62,6 +78,22 @@ TagBindingsConnection::DeleteTagBinding( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TagBindingsConnection::DeleteTagBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagBindingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TagBindingsConnection::DeleteTagBinding(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange TagBindingsConnection::ListEffectiveTags( google::cloud::resourcemanager::v3:: diff --git a/google/cloud/resourcemanager/v3/tag_bindings_connection.h b/google/cloud/resourcemanager/v3/tag_bindings_connection.h index 8bc640f3d4e4e..ca8434703f7f3 100644 --- a/google/cloud/resourcemanager/v3/tag_bindings_connection.h +++ b/google/cloud/resourcemanager/v3/tag_bindings_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/resourcemanager/v3/internal/tag_bindings_retry_traits.h" #include "google/cloud/resourcemanager/v3/tag_bindings_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -193,12 +195,31 @@ class TagBindingsConnection { google::cloud::resourcemanager::v3::CreateTagBindingRequest const& request); + virtual StatusOr CreateTagBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagBindingRequest const& + request); + + virtual future> + CreateTagBinding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteTagBinding( google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& request); + virtual StatusOr DeleteTagBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& + request); + + virtual future< + StatusOr> + DeleteTagBinding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListEffectiveTags( google::cloud::resourcemanager::v3::ListEffectiveTagsRequest request); diff --git a/google/cloud/resourcemanager/v3/tag_holds_connection.cc b/google/cloud/resourcemanager/v3/tag_holds_connection.cc index 2bb0496b607e1..4cbb60c3f749e 100644 --- a/google/cloud/resourcemanager/v3/tag_holds_connection.cc +++ b/google/cloud/resourcemanager/v3/tag_holds_connection.cc @@ -46,6 +46,21 @@ TagHoldsConnection::CreateTagHold( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TagHoldsConnection::CreateTagHold( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagHoldRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TagHoldsConnection::CreateTagHold(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TagHoldsConnection::DeleteTagHold( google::cloud::resourcemanager::v3::DeleteTagHoldRequest const&) { @@ -54,6 +69,21 @@ TagHoldsConnection::DeleteTagHold( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TagHoldsConnection::DeleteTagHold( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagHoldRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TagHoldsConnection::DeleteTagHold(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange TagHoldsConnection::ListTagHolds( google::cloud::resourcemanager::v3:: diff --git a/google/cloud/resourcemanager/v3/tag_holds_connection.h b/google/cloud/resourcemanager/v3/tag_holds_connection.h index b688ffa0698e1..9ef49de9f5186 100644 --- a/google/cloud/resourcemanager/v3/tag_holds_connection.h +++ b/google/cloud/resourcemanager/v3/tag_holds_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/resourcemanager/v3/internal/tag_holds_retry_traits.h" #include "google/cloud/resourcemanager/v3/tag_holds_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -186,11 +188,28 @@ class TagHoldsConnection { CreateTagHold( google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request); + virtual StatusOr CreateTagHold( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request); + + virtual future> + CreateTagHold(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteTagHold( google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request); + virtual StatusOr DeleteTagHold( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request); + + virtual future< + StatusOr> + DeleteTagHold(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListTagHolds( google::cloud::resourcemanager::v3::ListTagHoldsRequest request); }; diff --git a/google/cloud/resourcemanager/v3/tag_keys_connection.cc b/google/cloud/resourcemanager/v3/tag_keys_connection.cc index c6e9b46805c96..34fe7779dce5e 100644 --- a/google/cloud/resourcemanager/v3/tag_keys_connection.cc +++ b/google/cloud/resourcemanager/v3/tag_keys_connection.cc @@ -66,6 +66,21 @@ TagKeysConnection::CreateTagKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TagKeysConnection::CreateTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TagKeysConnection::CreateTagKey(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TagKeysConnection::UpdateTagKey( google::cloud::resourcemanager::v3::UpdateTagKeyRequest const&) { @@ -74,6 +89,21 @@ TagKeysConnection::UpdateTagKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TagKeysConnection::UpdateTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateTagKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TagKeysConnection::UpdateTagKey(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TagKeysConnection::DeleteTagKey( google::cloud::resourcemanager::v3::DeleteTagKeyRequest const&) { @@ -82,6 +112,21 @@ TagKeysConnection::DeleteTagKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TagKeysConnection::DeleteTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TagKeysConnection::DeleteTagKey(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TagKeysConnection::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); diff --git a/google/cloud/resourcemanager/v3/tag_keys_connection.h b/google/cloud/resourcemanager/v3/tag_keys_connection.h index 3d30af51e249e..0df4b3c33b5d1 100644 --- a/google/cloud/resourcemanager/v3/tag_keys_connection.h +++ b/google/cloud/resourcemanager/v3/tag_keys_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/resourcemanager/v3/internal/tag_keys_retry_traits.h" #include "google/cloud/resourcemanager/v3/tag_keys_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -197,14 +199,38 @@ class TagKeysConnection { CreateTagKey( google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request); + virtual StatusOr CreateTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request); + + virtual future> + CreateTagKey(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateTagKey( google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request); + virtual StatusOr UpdateTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request); + + virtual future> + UpdateTagKey(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteTagKey( google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request); + virtual StatusOr DeleteTagKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request); + + virtual future> + DeleteTagKey(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request); diff --git a/google/cloud/resourcemanager/v3/tag_values_connection.cc b/google/cloud/resourcemanager/v3/tag_values_connection.cc index 5af5317fd9511..3251060ff59ce 100644 --- a/google/cloud/resourcemanager/v3/tag_values_connection.cc +++ b/google/cloud/resourcemanager/v3/tag_values_connection.cc @@ -66,6 +66,21 @@ TagValuesConnection::CreateTagValue( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TagValuesConnection::CreateTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagValueRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TagValuesConnection::CreateTagValue(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TagValuesConnection::UpdateTagValue( google::cloud::resourcemanager::v3::UpdateTagValueRequest const&) { @@ -74,6 +89,21 @@ TagValuesConnection::UpdateTagValue( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TagValuesConnection::UpdateTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateTagValueRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TagValuesConnection::UpdateTagValue(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TagValuesConnection::DeleteTagValue( google::cloud::resourcemanager::v3::DeleteTagValueRequest const&) { @@ -82,6 +112,21 @@ TagValuesConnection::DeleteTagValue( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TagValuesConnection::DeleteTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagValueRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TagValuesConnection::DeleteTagValue(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TagValuesConnection::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); diff --git a/google/cloud/resourcemanager/v3/tag_values_connection.h b/google/cloud/resourcemanager/v3/tag_values_connection.h index dbbbe439a3128..8da15cf6f95a8 100644 --- a/google/cloud/resourcemanager/v3/tag_values_connection.h +++ b/google/cloud/resourcemanager/v3/tag_values_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/resourcemanager/v3/internal/tag_values_retry_traits.h" #include "google/cloud/resourcemanager/v3/tag_values_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -200,14 +202,38 @@ class TagValuesConnection { CreateTagValue( google::cloud::resourcemanager::v3::CreateTagValueRequest const& request); + virtual StatusOr CreateTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::CreateTagValueRequest const& request); + + virtual future> + CreateTagValue(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateTagValue( google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request); + virtual StatusOr UpdateTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request); + + virtual future> + UpdateTagValue(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteTagValue( google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request); + virtual StatusOr DeleteTagValue( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request); + + virtual future> + DeleteTagValue(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request); diff --git a/google/cloud/resourcesettings/v1/resource_settings_connection.h b/google/cloud/resourcesettings/v1/resource_settings_connection.h index 56027ef817795..8489687f0b228 100644 --- a/google/cloud/resourcesettings/v1/resource_settings_connection.h +++ b/google/cloud/resourcesettings/v1/resource_settings_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/resourcesettings/v1/internal/resource_settings_retry_traits.h" #include "google/cloud/resourcesettings/v1/resource_settings_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/retail/v2/analytics_connection.cc b/google/cloud/retail/v2/analytics_connection.cc index d629d2157e84a..bd196a5468c7a 100644 --- a/google/cloud/retail/v2/analytics_connection.cc +++ b/google/cloud/retail/v2/analytics_connection.cc @@ -45,6 +45,22 @@ AnalyticsServiceConnection::ExportAnalyticsMetrics( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +AnalyticsServiceConnection::ExportAnalyticsMetrics( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ExportAnalyticsMetricsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +AnalyticsServiceConnection::ExportAnalyticsMetrics( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeAnalyticsServiceConnection( Options options) { internal::CheckExpectedOptions> ExportAnalyticsMetrics( google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request); + + virtual StatusOr ExportAnalyticsMetrics( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request); + + virtual future< + StatusOr> + ExportAnalyticsMetrics(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/retail/v2/catalog_connection.h b/google/cloud/retail/v2/catalog_connection.h index e3cd7cea13719..0c15df93e5b58 100644 --- a/google/cloud/retail/v2/catalog_connection.h +++ b/google/cloud/retail/v2/catalog_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/retail/v2/catalog_connection_idempotency_policy.h" #include "google/cloud/retail/v2/internal/catalog_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/retail/v2/completion_connection.cc b/google/cloud/retail/v2/completion_connection.cc index 3c8b004624d41..1b507992d6581 100644 --- a/google/cloud/retail/v2/completion_connection.cc +++ b/google/cloud/retail/v2/completion_connection.cc @@ -51,6 +51,22 @@ CompletionServiceConnection::ImportCompletionData( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CompletionServiceConnection::ImportCompletionData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportCompletionDataRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CompletionServiceConnection::ImportCompletionData( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeCompletionServiceConnection( Options options) { internal::CheckExpectedOptions> ImportCompletionData( google::cloud::retail::v2::ImportCompletionDataRequest const& request); + + virtual StatusOr ImportCompletionData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportCompletionDataRequest const& request); + + virtual future< + StatusOr> + ImportCompletionData(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/retail/v2/control_connection.h b/google/cloud/retail/v2/control_connection.h index b0897ce6f3d90..2a59a23ca65d4 100644 --- a/google/cloud/retail/v2/control_connection.h +++ b/google/cloud/retail/v2/control_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/retail/v2/control_connection_idempotency_policy.h" #include "google/cloud/retail/v2/internal/control_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/retail/v2/internal/analytics_connection_impl.cc b/google/cloud/retail/v2/internal/analytics_connection_impl.cc index d6d5718819f58..1b632f3b927f4 100644 --- a/google/cloud/retail/v2/internal/analytics_connection_impl.cc +++ b/google/cloud/retail/v2/internal/analytics_connection_impl.cc @@ -103,6 +103,60 @@ AnalyticsServiceConnectionImpl::ExportAnalyticsMetrics( polling_policy(*current), __func__); } +StatusOr +AnalyticsServiceConnectionImpl::ExportAnalyticsMetrics( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ExportAnalyticsMetrics(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& + request) { + return stub_->ExportAnalyticsMetrics(context, options, request); + }, + *current, request, __func__); +} + +future> +AnalyticsServiceConnectionImpl::ExportAnalyticsMetrics( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ExportAnalyticsMetrics", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::retail::v2::ExportAnalyticsMetricsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::retail::v2::ExportAnalyticsMetricsResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace retail_v2_internal } // namespace cloud diff --git a/google/cloud/retail/v2/internal/analytics_connection_impl.h b/google/cloud/retail/v2/internal/analytics_connection_impl.h index ddaebc90e9ff7..f75f47deff62d 100644 --- a/google/cloud/retail/v2/internal/analytics_connection_impl.h +++ b/google/cloud/retail/v2/internal/analytics_connection_impl.h @@ -56,6 +56,16 @@ class AnalyticsServiceConnectionImpl google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request) override; + StatusOr ExportAnalyticsMetrics( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request) + override; + + future> + ExportAnalyticsMetrics( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/retail/v2/internal/analytics_tracing_connection.cc b/google/cloud/retail/v2/internal/analytics_tracing_connection.cc index 25aba64f0ee94..4aa7518be3903 100644 --- a/google/cloud/retail/v2/internal/analytics_tracing_connection.cc +++ b/google/cloud/retail/v2/internal/analytics_tracing_connection.cc @@ -42,6 +42,30 @@ AnalyticsServiceTracingConnection::ExportAnalyticsMetrics( child_->ExportAnalyticsMetrics(request)); } +StatusOr +AnalyticsServiceTracingConnection::ExportAnalyticsMetrics( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request) { + auto span = internal::MakeSpan( + "retail_v2::AnalyticsServiceConnection::ExportAnalyticsMetrics"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ExportAnalyticsMetrics( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +AnalyticsServiceTracingConnection::ExportAnalyticsMetrics( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "retail_v2::AnalyticsServiceConnection::ExportAnalyticsMetrics"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ExportAnalyticsMetrics( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/retail/v2/internal/analytics_tracing_connection.h b/google/cloud/retail/v2/internal/analytics_tracing_connection.h index 36f6ade8dcb1e..67724c5361aa0 100644 --- a/google/cloud/retail/v2/internal/analytics_tracing_connection.h +++ b/google/cloud/retail/v2/internal/analytics_tracing_connection.h @@ -45,6 +45,16 @@ class AnalyticsServiceTracingConnection google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request) override; + StatusOr ExportAnalyticsMetrics( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request) + override; + + future> + ExportAnalyticsMetrics( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/retail/v2/internal/completion_connection_impl.cc b/google/cloud/retail/v2/internal/completion_connection_impl.cc index 62eff593bccd0..aca1b99e91395 100644 --- a/google/cloud/retail/v2/internal/completion_connection_impl.cc +++ b/google/cloud/retail/v2/internal/completion_connection_impl.cc @@ -119,6 +119,60 @@ CompletionServiceConnectionImpl::ImportCompletionData( polling_policy(*current), __func__); } +StatusOr +CompletionServiceConnectionImpl::ImportCompletionData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportCompletionDataRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportCompletionData(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::retail::v2::ImportCompletionDataRequest const& + request) { + return stub_->ImportCompletionData(context, options, request); + }, + *current, request, __func__); +} + +future> +CompletionServiceConnectionImpl::ImportCompletionData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportCompletionData", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::retail::v2::ImportCompletionDataResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::retail::v2::ImportCompletionDataResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace retail_v2_internal } // namespace cloud diff --git a/google/cloud/retail/v2/internal/completion_connection_impl.h b/google/cloud/retail/v2/internal/completion_connection_impl.h index 7a42d431b7cf6..b8fc794441d06 100644 --- a/google/cloud/retail/v2/internal/completion_connection_impl.h +++ b/google/cloud/retail/v2/internal/completion_connection_impl.h @@ -59,6 +59,16 @@ class CompletionServiceConnectionImpl google::cloud::retail::v2::ImportCompletionDataRequest const& request) override; + StatusOr ImportCompletionData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportCompletionDataRequest const& request) + override; + + future> + ImportCompletionData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/retail/v2/internal/completion_tracing_connection.cc b/google/cloud/retail/v2/internal/completion_tracing_connection.cc index 21288d6a9271e..33d428a9e6d17 100644 --- a/google/cloud/retail/v2/internal/completion_tracing_connection.cc +++ b/google/cloud/retail/v2/internal/completion_tracing_connection.cc @@ -51,6 +51,30 @@ CompletionServiceTracingConnection::ImportCompletionData( child_->ImportCompletionData(request)); } +StatusOr +CompletionServiceTracingConnection::ImportCompletionData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportCompletionDataRequest const& request) { + auto span = internal::MakeSpan( + "retail_v2::CompletionServiceConnection::ImportCompletionData"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ImportCompletionData( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CompletionServiceTracingConnection::ImportCompletionData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "retail_v2::CompletionServiceConnection::ImportCompletionData"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ImportCompletionData( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/retail/v2/internal/completion_tracing_connection.h b/google/cloud/retail/v2/internal/completion_tracing_connection.h index fcf0588c7b493..5dda4840a80a0 100644 --- a/google/cloud/retail/v2/internal/completion_tracing_connection.h +++ b/google/cloud/retail/v2/internal/completion_tracing_connection.h @@ -48,6 +48,16 @@ class CompletionServiceTracingConnection google::cloud::retail::v2::ImportCompletionDataRequest const& request) override; + StatusOr ImportCompletionData( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportCompletionDataRequest const& request) + override; + + future> + ImportCompletionData( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/retail/v2/internal/model_connection_impl.cc b/google/cloud/retail/v2/internal/model_connection_impl.cc index 4c585fb3fcc55..5dc49c6153120 100644 --- a/google/cloud/retail/v2/internal/model_connection_impl.cc +++ b/google/cloud/retail/v2/internal/model_connection_impl.cc @@ -102,6 +102,58 @@ ModelServiceConnectionImpl::CreateModel( polling_policy(*current), __func__); } +StatusOr +ModelServiceConnectionImpl::CreateModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::CreateModelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::retail::v2::CreateModelRequest const& request) { + return stub_->CreateModel(context, options, request); + }, + *current, request, __func__); +} + +future> +ModelServiceConnectionImpl::CreateModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::retail::v2::Model>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::retail::v2::Model>, + polling_policy(*current), __func__); +} + StatusOr ModelServiceConnectionImpl::GetModel( google::cloud::retail::v2::GetModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -241,6 +293,58 @@ ModelServiceConnectionImpl::TuneModel( polling_policy(*current), __func__); } +StatusOr ModelServiceConnectionImpl::TuneModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::TuneModelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->TuneModel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::retail::v2::TuneModelRequest const& request) { + return stub_->TuneModel(context, options, request); + }, + *current, request, __func__); +} + +future> +ModelServiceConnectionImpl::TuneModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to TuneModel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::retail::v2::TuneModelResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::retail::v2::TuneModelResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace retail_v2_internal } // namespace cloud diff --git a/google/cloud/retail/v2/internal/model_connection_impl.h b/google/cloud/retail/v2/internal/model_connection_impl.h index c12c0330ea095..bf0fabd49b9fd 100644 --- a/google/cloud/retail/v2/internal/model_connection_impl.h +++ b/google/cloud/retail/v2/internal/model_connection_impl.h @@ -54,6 +54,14 @@ class ModelServiceConnectionImpl : public retail_v2::ModelServiceConnection { future> CreateModel( google::cloud::retail::v2::CreateModelRequest const& request) override; + StatusOr CreateModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::CreateModelRequest const& request) override; + + future> CreateModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetModel( google::cloud::retail::v2::GetModelRequest const& request) override; @@ -75,6 +83,14 @@ class ModelServiceConnectionImpl : public retail_v2::ModelServiceConnection { future> TuneModel( google::cloud::retail::v2::TuneModelRequest const& request) override; + StatusOr TuneModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::TuneModelRequest const& request) override; + + future> TuneModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/retail/v2/internal/model_tracing_connection.cc b/google/cloud/retail/v2/internal/model_tracing_connection.cc index be9a3bd271ce6..c3afdd09a9fdc 100644 --- a/google/cloud/retail/v2/internal/model_tracing_connection.cc +++ b/google/cloud/retail/v2/internal/model_tracing_connection.cc @@ -42,6 +42,30 @@ ModelServiceTracingConnection::CreateModel( return internal::EndSpan(std::move(span), child_->CreateModel(request)); } +StatusOr +ModelServiceTracingConnection::CreateModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::CreateModelRequest const& request) { + auto span = + internal::MakeSpan("retail_v2::ModelServiceConnection::CreateModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ModelServiceTracingConnection::CreateModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("retail_v2::ModelServiceConnection::CreateModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateModel(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ModelServiceTracingConnection::GetModel( google::cloud::retail::v2::GetModelRequest const& request) { @@ -105,6 +129,30 @@ ModelServiceTracingConnection::TuneModel( return internal::EndSpan(std::move(span), child_->TuneModel(request)); } +StatusOr +ModelServiceTracingConnection::TuneModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::TuneModelRequest const& request) { + auto span = + internal::MakeSpan("retail_v2::ModelServiceConnection::TuneModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->TuneModel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ModelServiceTracingConnection::TuneModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("retail_v2::ModelServiceConnection::TuneModel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->TuneModel(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/retail/v2/internal/model_tracing_connection.h b/google/cloud/retail/v2/internal/model_tracing_connection.h index 59bbeab25b518..40b956b94da4a 100644 --- a/google/cloud/retail/v2/internal/model_tracing_connection.h +++ b/google/cloud/retail/v2/internal/model_tracing_connection.h @@ -42,6 +42,14 @@ class ModelServiceTracingConnection : public retail_v2::ModelServiceConnection { future> CreateModel( google::cloud::retail::v2::CreateModelRequest const& request) override; + StatusOr CreateModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::CreateModelRequest const& request) override; + + future> CreateModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetModel( google::cloud::retail::v2::GetModelRequest const& request) override; @@ -63,6 +71,14 @@ class ModelServiceTracingConnection : public retail_v2::ModelServiceConnection { future> TuneModel( google::cloud::retail::v2::TuneModelRequest const& request) override; + StatusOr TuneModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::TuneModelRequest const& request) override; + + future> TuneModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/retail/v2/internal/product_connection_impl.cc b/google/cloud/retail/v2/internal/product_connection_impl.cc index 47437c82fac95..70086d5089f96 100644 --- a/google/cloud/retail/v2/internal/product_connection_impl.cc +++ b/google/cloud/retail/v2/internal/product_connection_impl.cc @@ -192,6 +192,59 @@ ProductServiceConnectionImpl::PurgeProducts( polling_policy(*current), __func__); } +StatusOr +ProductServiceConnectionImpl::PurgeProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::PurgeProductsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PurgeProducts(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::retail::v2::PurgeProductsRequest const& request) { + return stub_->PurgeProducts(context, options, request); + }, + *current, request, __func__); +} + +future> +ProductServiceConnectionImpl::PurgeProducts( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to PurgeProducts", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::retail::v2::PurgeProductsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::retail::v2::PurgeProductsResponse>, + polling_policy(*current), __func__); +} + future> ProductServiceConnectionImpl::ImportProducts( google::cloud::retail::v2::ImportProductsRequest const& request) { @@ -231,6 +284,59 @@ ProductServiceConnectionImpl::ImportProducts( polling_policy(*current), __func__); } +StatusOr +ProductServiceConnectionImpl::ImportProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportProductsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportProducts(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::retail::v2::ImportProductsRequest const& request) { + return stub_->ImportProducts(context, options, request); + }, + *current, request, __func__); +} + +future> +ProductServiceConnectionImpl::ImportProducts( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportProducts", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::retail::v2::ImportProductsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::retail::v2::ImportProductsResponse>, + polling_policy(*current), __func__); +} + future> ProductServiceConnectionImpl::SetInventory( google::cloud::retail::v2::SetInventoryRequest const& request) { @@ -270,6 +376,59 @@ ProductServiceConnectionImpl::SetInventory( polling_policy(*current), __func__); } +StatusOr +ProductServiceConnectionImpl::SetInventory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::SetInventoryRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SetInventory(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::retail::v2::SetInventoryRequest const& request) { + return stub_->SetInventory(context, options, request); + }, + *current, request, __func__); +} + +future> +ProductServiceConnectionImpl::SetInventory( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to SetInventory", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::retail::v2::SetInventoryResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::retail::v2::SetInventoryResponse>, + polling_policy(*current), __func__); +} + future> ProductServiceConnectionImpl::AddFulfillmentPlaces( google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request) { @@ -310,6 +469,61 @@ ProductServiceConnectionImpl::AddFulfillmentPlaces( polling_policy(*current), __func__); } +StatusOr +ProductServiceConnectionImpl::AddFulfillmentPlaces( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddFulfillmentPlaces(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::retail::v2::AddFulfillmentPlacesRequest const& + request) { + return stub_->AddFulfillmentPlaces(context, options, request); + }, + *current, request, __func__); +} + +future> +ProductServiceConnectionImpl::AddFulfillmentPlaces( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to AddFulfillmentPlaces", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::retail::v2::AddFulfillmentPlacesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::retail::v2::AddFulfillmentPlacesResponse>, + polling_policy(*current), __func__); +} + future> ProductServiceConnectionImpl::RemoveFulfillmentPlaces( google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request) { @@ -350,6 +564,61 @@ ProductServiceConnectionImpl::RemoveFulfillmentPlaces( polling_policy(*current), __func__); } +StatusOr +ProductServiceConnectionImpl::RemoveFulfillmentPlaces( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveFulfillmentPlaces(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& + request) { + return stub_->RemoveFulfillmentPlaces(context, options, request); + }, + *current, request, __func__); +} + +future> +ProductServiceConnectionImpl::RemoveFulfillmentPlaces( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RemoveFulfillmentPlaces", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::retail::v2::RemoveFulfillmentPlacesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::retail::v2::RemoveFulfillmentPlacesResponse>, + polling_policy(*current), __func__); +} + future> ProductServiceConnectionImpl::AddLocalInventories( google::cloud::retail::v2::AddLocalInventoriesRequest const& request) { @@ -390,6 +659,61 @@ ProductServiceConnectionImpl::AddLocalInventories( polling_policy(*current), __func__); } +StatusOr +ProductServiceConnectionImpl::AddLocalInventories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::AddLocalInventoriesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddLocalInventories(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::retail::v2::AddLocalInventoriesRequest const& + request) { + return stub_->AddLocalInventories(context, options, request); + }, + *current, request, __func__); +} + +future> +ProductServiceConnectionImpl::AddLocalInventories( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to AddLocalInventories", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::retail::v2::AddLocalInventoriesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::retail::v2::AddLocalInventoriesResponse>, + polling_policy(*current), __func__); +} + future> ProductServiceConnectionImpl::RemoveLocalInventories( google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request) { @@ -430,6 +754,61 @@ ProductServiceConnectionImpl::RemoveLocalInventories( polling_policy(*current), __func__); } +StatusOr +ProductServiceConnectionImpl::RemoveLocalInventories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveLocalInventories(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::retail::v2::RemoveLocalInventoriesRequest const& + request) { + return stub_->RemoveLocalInventories(context, options, request); + }, + *current, request, __func__); +} + +future> +ProductServiceConnectionImpl::RemoveLocalInventories( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RemoveLocalInventories", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::retail::v2::RemoveLocalInventoriesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::retail::v2::RemoveLocalInventoriesResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace retail_v2_internal } // namespace cloud diff --git a/google/cloud/retail/v2/internal/product_connection_impl.h b/google/cloud/retail/v2/internal/product_connection_impl.h index 88c83ca373492..f997ea36e5bd0 100644 --- a/google/cloud/retail/v2/internal/product_connection_impl.h +++ b/google/cloud/retail/v2/internal/product_connection_impl.h @@ -71,34 +71,97 @@ class ProductServiceConnectionImpl PurgeProducts( google::cloud::retail::v2::PurgeProductsRequest const& request) override; + StatusOr PurgeProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::PurgeProductsRequest const& request) override; + + future> + PurgeProducts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportProducts( google::cloud::retail::v2::ImportProductsRequest const& request) override; + StatusOr ImportProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportProductsRequest const& request) override; + + future> + ImportProducts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> SetInventory( google::cloud::retail::v2::SetInventoryRequest const& request) override; + StatusOr SetInventory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::SetInventoryRequest const& request) override; + + future> + SetInventory(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AddFulfillmentPlaces( google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request) override; + StatusOr AddFulfillmentPlaces( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request) + override; + + future> + AddFulfillmentPlaces( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RemoveFulfillmentPlaces( google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request) override; + StatusOr RemoveFulfillmentPlaces( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request) + override; + + future> + RemoveFulfillmentPlaces( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AddLocalInventories( google::cloud::retail::v2::AddLocalInventoriesRequest const& request) override; + StatusOr AddLocalInventories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::AddLocalInventoriesRequest const& request) + override; + + future> + AddLocalInventories(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RemoveLocalInventories( google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request) override; + StatusOr RemoveLocalInventories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request) + override; + + future> + RemoveLocalInventories( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/retail/v2/internal/product_tracing_connection.cc b/google/cloud/retail/v2/internal/product_tracing_connection.cc index be359924e4812..e23728796b2a6 100644 --- a/google/cloud/retail/v2/internal/product_tracing_connection.cc +++ b/google/cloud/retail/v2/internal/product_tracing_connection.cc @@ -88,6 +88,30 @@ ProductServiceTracingConnection::PurgeProducts( return internal::EndSpan(std::move(span), child_->PurgeProducts(request)); } +StatusOr +ProductServiceTracingConnection::PurgeProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::PurgeProductsRequest const& request) { + auto span = + internal::MakeSpan("retail_v2::ProductServiceConnection::PurgeProducts"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PurgeProducts(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProductServiceTracingConnection::PurgeProducts( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("retail_v2::ProductServiceConnection::PurgeProducts"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PurgeProducts(google::cloud::ExperimentalTag{}, operation)); +} + future> ProductServiceTracingConnection::ImportProducts( google::cloud::retail::v2::ImportProductsRequest const& request) { @@ -97,6 +121,30 @@ ProductServiceTracingConnection::ImportProducts( return internal::EndSpan(std::move(span), child_->ImportProducts(request)); } +StatusOr +ProductServiceTracingConnection::ImportProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportProductsRequest const& request) { + auto span = + internal::MakeSpan("retail_v2::ProductServiceConnection::ImportProducts"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportProducts(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProductServiceTracingConnection::ImportProducts( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("retail_v2::ProductServiceConnection::ImportProducts"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportProducts(google::cloud::ExperimentalTag{}, operation)); +} + future> ProductServiceTracingConnection::SetInventory( google::cloud::retail::v2::SetInventoryRequest const& request) { @@ -106,6 +154,30 @@ ProductServiceTracingConnection::SetInventory( return internal::EndSpan(std::move(span), child_->SetInventory(request)); } +StatusOr +ProductServiceTracingConnection::SetInventory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::SetInventoryRequest const& request) { + auto span = + internal::MakeSpan("retail_v2::ProductServiceConnection::SetInventory"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SetInventory(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProductServiceTracingConnection::SetInventory( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("retail_v2::ProductServiceConnection::SetInventory"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SetInventory(google::cloud::ExperimentalTag{}, operation)); +} + future> ProductServiceTracingConnection::AddFulfillmentPlaces( google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request) { @@ -116,6 +188,30 @@ ProductServiceTracingConnection::AddFulfillmentPlaces( child_->AddFulfillmentPlaces(request)); } +StatusOr +ProductServiceTracingConnection::AddFulfillmentPlaces( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request) { + auto span = internal::MakeSpan( + "retail_v2::ProductServiceConnection::AddFulfillmentPlaces"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->AddFulfillmentPlaces( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProductServiceTracingConnection::AddFulfillmentPlaces( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "retail_v2::ProductServiceConnection::AddFulfillmentPlaces"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->AddFulfillmentPlaces( + google::cloud::ExperimentalTag{}, operation)); +} + future> ProductServiceTracingConnection::RemoveFulfillmentPlaces( google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request) { @@ -126,6 +222,30 @@ ProductServiceTracingConnection::RemoveFulfillmentPlaces( child_->RemoveFulfillmentPlaces(request)); } +StatusOr +ProductServiceTracingConnection::RemoveFulfillmentPlaces( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request) { + auto span = internal::MakeSpan( + "retail_v2::ProductServiceConnection::RemoveFulfillmentPlaces"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RemoveFulfillmentPlaces( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProductServiceTracingConnection::RemoveFulfillmentPlaces( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "retail_v2::ProductServiceConnection::RemoveFulfillmentPlaces"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RemoveFulfillmentPlaces( + google::cloud::ExperimentalTag{}, operation)); +} + future> ProductServiceTracingConnection::AddLocalInventories( google::cloud::retail::v2::AddLocalInventoriesRequest const& request) { @@ -136,6 +256,30 @@ ProductServiceTracingConnection::AddLocalInventories( child_->AddLocalInventories(request)); } +StatusOr +ProductServiceTracingConnection::AddLocalInventories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::AddLocalInventoriesRequest const& request) { + auto span = internal::MakeSpan( + "retail_v2::ProductServiceConnection::AddLocalInventories"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddLocalInventories(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProductServiceTracingConnection::AddLocalInventories( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "retail_v2::ProductServiceConnection::AddLocalInventories"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddLocalInventories(google::cloud::ExperimentalTag{}, operation)); +} + future> ProductServiceTracingConnection::RemoveLocalInventories( google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request) { @@ -146,6 +290,30 @@ ProductServiceTracingConnection::RemoveLocalInventories( child_->RemoveLocalInventories(request)); } +StatusOr +ProductServiceTracingConnection::RemoveLocalInventories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request) { + auto span = internal::MakeSpan( + "retail_v2::ProductServiceConnection::RemoveLocalInventories"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RemoveLocalInventories( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProductServiceTracingConnection::RemoveLocalInventories( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "retail_v2::ProductServiceConnection::RemoveLocalInventories"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RemoveLocalInventories( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/retail/v2/internal/product_tracing_connection.h b/google/cloud/retail/v2/internal/product_tracing_connection.h index 35b6f81dad2ab..842e18a602ce1 100644 --- a/google/cloud/retail/v2/internal/product_tracing_connection.h +++ b/google/cloud/retail/v2/internal/product_tracing_connection.h @@ -59,34 +59,97 @@ class ProductServiceTracingConnection PurgeProducts( google::cloud::retail::v2::PurgeProductsRequest const& request) override; + StatusOr PurgeProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::PurgeProductsRequest const& request) override; + + future> + PurgeProducts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportProducts( google::cloud::retail::v2::ImportProductsRequest const& request) override; + StatusOr ImportProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportProductsRequest const& request) override; + + future> + ImportProducts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> SetInventory( google::cloud::retail::v2::SetInventoryRequest const& request) override; + StatusOr SetInventory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::SetInventoryRequest const& request) override; + + future> + SetInventory(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AddFulfillmentPlaces( google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request) override; + StatusOr AddFulfillmentPlaces( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request) + override; + + future> + AddFulfillmentPlaces( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RemoveFulfillmentPlaces( google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request) override; + StatusOr RemoveFulfillmentPlaces( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request) + override; + + future> + RemoveFulfillmentPlaces( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AddLocalInventories( google::cloud::retail::v2::AddLocalInventoriesRequest const& request) override; + StatusOr AddLocalInventories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::AddLocalInventoriesRequest const& request) + override; + + future> + AddLocalInventories(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RemoveLocalInventories( google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request) override; + StatusOr RemoveLocalInventories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request) + override; + + future> + RemoveLocalInventories( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/retail/v2/internal/user_event_connection_impl.cc b/google/cloud/retail/v2/internal/user_event_connection_impl.cc index 04897dc200f49..868193bd9598a 100644 --- a/google/cloud/retail/v2/internal/user_event_connection_impl.cc +++ b/google/cloud/retail/v2/internal/user_event_connection_impl.cc @@ -131,6 +131,59 @@ UserEventServiceConnectionImpl::PurgeUserEvents( polling_policy(*current), __func__); } +StatusOr +UserEventServiceConnectionImpl::PurgeUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::PurgeUserEventsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PurgeUserEvents(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::retail::v2::PurgeUserEventsRequest const& request) { + return stub_->PurgeUserEvents(context, options, request); + }, + *current, request, __func__); +} + +future> +UserEventServiceConnectionImpl::PurgeUserEvents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to PurgeUserEvents", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::retail::v2::PurgeUserEventsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::retail::v2::PurgeUserEventsResponse>, + polling_policy(*current), __func__); +} + future> UserEventServiceConnectionImpl::ImportUserEvents( google::cloud::retail::v2::ImportUserEventsRequest const& request) { @@ -170,6 +223,60 @@ UserEventServiceConnectionImpl::ImportUserEvents( polling_policy(*current), __func__); } +StatusOr +UserEventServiceConnectionImpl::ImportUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportUserEventsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportUserEvents(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::retail::v2::ImportUserEventsRequest const& request) { + return stub_->ImportUserEvents(context, options, request); + }, + *current, request, __func__); +} + +future> +UserEventServiceConnectionImpl::ImportUserEvents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportUserEvents", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::retail::v2::ImportUserEventsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::retail::v2::ImportUserEventsResponse>, + polling_policy(*current), __func__); +} + future> UserEventServiceConnectionImpl::RejoinUserEvents( google::cloud::retail::v2::RejoinUserEventsRequest const& request) { @@ -209,6 +316,61 @@ UserEventServiceConnectionImpl::RejoinUserEvents( polling_policy(*current), __func__); } +StatusOr +UserEventServiceConnectionImpl::RejoinUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RejoinUserEventsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RejoinUserEvents(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::retail::v2::RejoinUserEventsRequest const& request) { + return stub_->RejoinUserEvents(context, options, request); + }, + *current, request, __func__); +} + +future> +UserEventServiceConnectionImpl::RejoinUserEvents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RejoinUserEvents", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::retail::v2::RejoinUserEventsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::retail::v2::RejoinUserEventsResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace retail_v2_internal } // namespace cloud diff --git a/google/cloud/retail/v2/internal/user_event_connection_impl.h b/google/cloud/retail/v2/internal/user_event_connection_impl.h index 97dd5dc34c39f..dd7018e054f50 100644 --- a/google/cloud/retail/v2/internal/user_event_connection_impl.h +++ b/google/cloud/retail/v2/internal/user_event_connection_impl.h @@ -62,14 +62,41 @@ class UserEventServiceConnectionImpl PurgeUserEvents(google::cloud::retail::v2::PurgeUserEventsRequest const& request) override; + StatusOr PurgeUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::PurgeUserEventsRequest const& request) + override; + + future> + PurgeUserEvents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportUserEvents(google::cloud::retail::v2::ImportUserEventsRequest const& request) override; + StatusOr ImportUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportUserEventsRequest const& request) + override; + + future> + ImportUserEvents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RejoinUserEvents(google::cloud::retail::v2::RejoinUserEventsRequest const& request) override; + StatusOr RejoinUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RejoinUserEventsRequest const& request) + override; + + future> + RejoinUserEvents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/retail/v2/internal/user_event_tracing_connection.cc b/google/cloud/retail/v2/internal/user_event_tracing_connection.cc index 53e4547cf57ed..480d6313fd7c3 100644 --- a/google/cloud/retail/v2/internal/user_event_tracing_connection.cc +++ b/google/cloud/retail/v2/internal/user_event_tracing_connection.cc @@ -59,6 +59,30 @@ UserEventServiceTracingConnection::PurgeUserEvents( return internal::EndSpan(std::move(span), child_->PurgeUserEvents(request)); } +StatusOr +UserEventServiceTracingConnection::PurgeUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::PurgeUserEventsRequest const& request) { + auto span = internal::MakeSpan( + "retail_v2::UserEventServiceConnection::PurgeUserEvents"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PurgeUserEvents(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +UserEventServiceTracingConnection::PurgeUserEvents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "retail_v2::UserEventServiceConnection::PurgeUserEvents"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PurgeUserEvents(google::cloud::ExperimentalTag{}, operation)); +} + future> UserEventServiceTracingConnection::ImportUserEvents( google::cloud::retail::v2::ImportUserEventsRequest const& request) { @@ -68,6 +92,30 @@ UserEventServiceTracingConnection::ImportUserEvents( return internal::EndSpan(std::move(span), child_->ImportUserEvents(request)); } +StatusOr +UserEventServiceTracingConnection::ImportUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportUserEventsRequest const& request) { + auto span = internal::MakeSpan( + "retail_v2::UserEventServiceConnection::ImportUserEvents"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportUserEvents(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +UserEventServiceTracingConnection::ImportUserEvents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "retail_v2::UserEventServiceConnection::ImportUserEvents"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportUserEvents(google::cloud::ExperimentalTag{}, operation)); +} + future> UserEventServiceTracingConnection::RejoinUserEvents( google::cloud::retail::v2::RejoinUserEventsRequest const& request) { @@ -77,6 +125,30 @@ UserEventServiceTracingConnection::RejoinUserEvents( return internal::EndSpan(std::move(span), child_->RejoinUserEvents(request)); } +StatusOr +UserEventServiceTracingConnection::RejoinUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RejoinUserEventsRequest const& request) { + auto span = internal::MakeSpan( + "retail_v2::UserEventServiceConnection::RejoinUserEvents"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RejoinUserEvents(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +UserEventServiceTracingConnection::RejoinUserEvents( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "retail_v2::UserEventServiceConnection::RejoinUserEvents"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RejoinUserEvents(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/retail/v2/internal/user_event_tracing_connection.h b/google/cloud/retail/v2/internal/user_event_tracing_connection.h index 206214c9c5a3a..f3c21370825b5 100644 --- a/google/cloud/retail/v2/internal/user_event_tracing_connection.h +++ b/google/cloud/retail/v2/internal/user_event_tracing_connection.h @@ -51,14 +51,41 @@ class UserEventServiceTracingConnection PurgeUserEvents(google::cloud::retail::v2::PurgeUserEventsRequest const& request) override; + StatusOr PurgeUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::PurgeUserEventsRequest const& request) + override; + + future> + PurgeUserEvents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ImportUserEvents(google::cloud::retail::v2::ImportUserEventsRequest const& request) override; + StatusOr ImportUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportUserEventsRequest const& request) + override; + + future> + ImportUserEvents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RejoinUserEvents(google::cloud::retail::v2::RejoinUserEventsRequest const& request) override; + StatusOr RejoinUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RejoinUserEventsRequest const& request) + override; + + future> + RejoinUserEvents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/retail/v2/mocks/mock_analytics_connection.h b/google/cloud/retail/v2/mocks/mock_analytics_connection.h index be826efbfb7cc..293563f63276b 100644 --- a/google/cloud/retail/v2/mocks/mock_analytics_connection.h +++ b/google/cloud/retail/v2/mocks/mock_analytics_connection.h @@ -53,6 +53,20 @@ class MockAnalyticsServiceConnection ExportAnalyticsMetrics, (google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, ExportAnalyticsMetrics, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + ExportAnalyticsMetrics, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/retail/v2/mocks/mock_completion_connection.h b/google/cloud/retail/v2/mocks/mock_completion_connection.h index af7fd864dac6c..835249ad51aff 100644 --- a/google/cloud/retail/v2/mocks/mock_completion_connection.h +++ b/google/cloud/retail/v2/mocks/mock_completion_connection.h @@ -57,6 +57,19 @@ class MockCompletionServiceConnection ImportCompletionData, (google::cloud::retail::v2::ImportCompletionDataRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, ImportCompletionData, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportCompletionDataRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ImportCompletionData, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/retail/v2/mocks/mock_model_connection.h b/google/cloud/retail/v2/mocks/mock_model_connection.h index 0da551206a5c7..3c5446a0457fa 100644 --- a/google/cloud/retail/v2/mocks/mock_model_connection.h +++ b/google/cloud/retail/v2/mocks/mock_model_connection.h @@ -50,6 +50,16 @@ class MockModelServiceConnection : public retail_v2::ModelServiceConnection { (google::cloud::retail::v2::CreateModelRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::CreateModelRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetModel, (google::cloud::retail::v2::GetModelRequest const& request), (override)); @@ -78,6 +88,17 @@ class MockModelServiceConnection : public retail_v2::ModelServiceConnection { TuneModel, (google::cloud::retail::v2::TuneModelRequest const& request), (override)); + + MOCK_METHOD(StatusOr, TuneModel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::TuneModelRequest const& request), + (override)); + + MOCK_METHOD(future>, + TuneModel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/retail/v2/mocks/mock_product_connection.h b/google/cloud/retail/v2/mocks/mock_product_connection.h index 1950cc33ea8df..53a8598101014 100644 --- a/google/cloud/retail/v2/mocks/mock_product_connection.h +++ b/google/cloud/retail/v2/mocks/mock_product_connection.h @@ -73,23 +73,71 @@ class MockProductServiceConnection (google::cloud::retail::v2::PurgeProductsRequest const& request), (override)); + MOCK_METHOD(StatusOr, PurgeProducts, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::PurgeProductsRequest const& request), + (override)); + + MOCK_METHOD( + future>, + PurgeProducts, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ImportProducts, (google::cloud::retail::v2::ImportProductsRequest const& request), (override)); + MOCK_METHOD(StatusOr, ImportProducts, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportProductsRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ImportProducts, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, SetInventory, (google::cloud::retail::v2::SetInventoryRequest const& request), (override)); + MOCK_METHOD(StatusOr, SetInventory, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::SetInventoryRequest const& request), + (override)); + + MOCK_METHOD(future>, + SetInventory, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, AddFulfillmentPlaces, (google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request), (override)); + MOCK_METHOD( + StatusOr, AddFulfillmentPlaces, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request), + (override)); + + MOCK_METHOD( + future>, + AddFulfillmentPlaces, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -98,18 +146,59 @@ class MockProductServiceConnection request), (override)); + MOCK_METHOD(StatusOr, RemoveFulfillmentPlaces, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + RemoveFulfillmentPlaces, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, AddLocalInventories, (google::cloud::retail::v2::AddLocalInventoriesRequest const& request), (override)); + MOCK_METHOD( + StatusOr, AddLocalInventories, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::AddLocalInventoriesRequest const& request), + (override)); + + MOCK_METHOD( + future>, + AddLocalInventories, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, RemoveLocalInventories, (google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, RemoveLocalInventories, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + RemoveLocalInventories, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/retail/v2/mocks/mock_user_event_connection.h b/google/cloud/retail/v2/mocks/mock_user_event_connection.h index d42e0d4dd49cc..8dc81e2cdbf3d 100644 --- a/google/cloud/retail/v2/mocks/mock_user_event_connection.h +++ b/google/cloud/retail/v2/mocks/mock_user_event_connection.h @@ -62,17 +62,56 @@ class MockUserEventServiceConnection (google::cloud::retail::v2::PurgeUserEventsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, PurgeUserEvents, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::PurgeUserEventsRequest const& request), + (override)); + + MOCK_METHOD( + future>, + PurgeUserEvents, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ImportUserEvents, (google::cloud::retail::v2::ImportUserEventsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ImportUserEvents, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportUserEventsRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ImportUserEvents, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RejoinUserEvents, (google::cloud::retail::v2::RejoinUserEventsRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, RejoinUserEvents, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RejoinUserEventsRequest const& request), + (override)); + + MOCK_METHOD( + future>, + RejoinUserEvents, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/retail/v2/model_connection.cc b/google/cloud/retail/v2/model_connection.cc index 5b9dd84d83ff0..4a1759dfb5658 100644 --- a/google/cloud/retail/v2/model_connection.cc +++ b/google/cloud/retail/v2/model_connection.cc @@ -46,6 +46,21 @@ ModelServiceConnection::CreateModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ModelServiceConnection::CreateModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::CreateModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ModelServiceConnection::CreateModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ModelServiceConnection::GetModel( google::cloud::retail::v2::GetModelRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -87,6 +102,21 @@ ModelServiceConnection::TuneModel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ModelServiceConnection::TuneModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::TuneModelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ModelServiceConnection::TuneModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeModelServiceConnection( Options options) { internal::CheckExpectedOptions> CreateModel( google::cloud::retail::v2::CreateModelRequest const& request); + virtual StatusOr CreateModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::CreateModelRequest const& request); + + virtual future> CreateModel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetModel( google::cloud::retail::v2::GetModelRequest const& request); @@ -208,6 +218,14 @@ class ModelServiceConnection { virtual future> TuneModel(google::cloud::retail::v2::TuneModelRequest const& request); + + virtual StatusOr TuneModel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::TuneModelRequest const& request); + + virtual future> + TuneModel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/retail/v2/prediction_connection.h b/google/cloud/retail/v2/prediction_connection.h index 9289fc79a05b4..0fa964705787b 100644 --- a/google/cloud/retail/v2/prediction_connection.h +++ b/google/cloud/retail/v2/prediction_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/retail/v2/internal/prediction_retry_traits.h" #include "google/cloud/retail/v2/prediction_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/retail/v2/product_connection.cc b/google/cloud/retail/v2/product_connection.cc index 8b560b60fc8d6..c56e4e5ded38f 100644 --- a/google/cloud/retail/v2/product_connection.cc +++ b/google/cloud/retail/v2/product_connection.cc @@ -77,6 +77,22 @@ ProductServiceConnection::PurgeProducts( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ProductServiceConnection::PurgeProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::PurgeProductsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProductServiceConnection::PurgeProducts(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ProductServiceConnection::ImportProducts( google::cloud::retail::v2::ImportProductsRequest const&) { @@ -85,6 +101,22 @@ ProductServiceConnection::ImportProducts( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ProductServiceConnection::ImportProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportProductsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProductServiceConnection::ImportProducts( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ProductServiceConnection::SetInventory( google::cloud::retail::v2::SetInventoryRequest const&) { @@ -93,6 +125,21 @@ ProductServiceConnection::SetInventory( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ProductServiceConnection::SetInventory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::SetInventoryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProductServiceConnection::SetInventory(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ProductServiceConnection::AddFulfillmentPlaces( google::cloud::retail::v2::AddFulfillmentPlacesRequest const&) { @@ -101,6 +148,22 @@ ProductServiceConnection::AddFulfillmentPlaces( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ProductServiceConnection::AddFulfillmentPlaces( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::AddFulfillmentPlacesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProductServiceConnection::AddFulfillmentPlaces( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ProductServiceConnection::RemoveFulfillmentPlaces( google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const&) { @@ -109,6 +172,22 @@ ProductServiceConnection::RemoveFulfillmentPlaces( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ProductServiceConnection::RemoveFulfillmentPlaces( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProductServiceConnection::RemoveFulfillmentPlaces( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ProductServiceConnection::AddLocalInventories( google::cloud::retail::v2::AddLocalInventoriesRequest const&) { @@ -117,6 +196,22 @@ ProductServiceConnection::AddLocalInventories( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ProductServiceConnection::AddLocalInventories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::AddLocalInventoriesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProductServiceConnection::AddLocalInventories( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ProductServiceConnection::RemoveLocalInventories( google::cloud::retail::v2::RemoveLocalInventoriesRequest const&) { @@ -125,6 +220,22 @@ ProductServiceConnection::RemoveLocalInventories( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ProductServiceConnection::RemoveLocalInventories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RemoveLocalInventoriesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProductServiceConnection::RemoveLocalInventories( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeProductServiceConnection( Options options) { internal::CheckExpectedOptions> PurgeProducts(google::cloud::retail::v2::PurgeProductsRequest const& request); + virtual StatusOr PurgeProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::PurgeProductsRequest const& request); + + virtual future> + PurgeProducts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ImportProducts( google::cloud::retail::v2::ImportProductsRequest const& request); + virtual StatusOr ImportProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportProductsRequest const& request); + + virtual future> + ImportProducts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> SetInventory(google::cloud::retail::v2::SetInventoryRequest const& request); + virtual StatusOr SetInventory( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::SetInventoryRequest const& request); + + virtual future> + SetInventory(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> AddFulfillmentPlaces( google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request); + virtual StatusOr AddFulfillmentPlaces( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request); + + virtual future< + StatusOr> + AddFulfillmentPlaces(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> RemoveFulfillmentPlaces( google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request); + virtual StatusOr RemoveFulfillmentPlaces( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request); + + virtual future< + StatusOr> + RemoveFulfillmentPlaces(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> AddLocalInventories( google::cloud::retail::v2::AddLocalInventoriesRequest const& request); + virtual StatusOr AddLocalInventories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::AddLocalInventoriesRequest const& request); + + virtual future< + StatusOr> + AddLocalInventories(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> RemoveLocalInventories( google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request); + + virtual StatusOr RemoveLocalInventories( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request); + + virtual future< + StatusOr> + RemoveLocalInventories(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/retail/v2/search_connection.h b/google/cloud/retail/v2/search_connection.h index 18a5d2ee8ba74..717faf59a2ffb 100644 --- a/google/cloud/retail/v2/search_connection.h +++ b/google/cloud/retail/v2/search_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/retail/v2/internal/search_retry_traits.h" #include "google/cloud/retail/v2/search_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/retail/v2/serving_config_connection.h b/google/cloud/retail/v2/serving_config_connection.h index bedf93387bec7..9af2fa2986979 100644 --- a/google/cloud/retail/v2/serving_config_connection.h +++ b/google/cloud/retail/v2/serving_config_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/retail/v2/internal/serving_config_retry_traits.h" #include "google/cloud/retail/v2/serving_config_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/retail/v2/user_event_connection.cc b/google/cloud/retail/v2/user_event_connection.cc index 36d289ec6b0ad..c106944235e5b 100644 --- a/google/cloud/retail/v2/user_event_connection.cc +++ b/google/cloud/retail/v2/user_event_connection.cc @@ -56,6 +56,22 @@ UserEventServiceConnection::PurgeUserEvents( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +UserEventServiceConnection::PurgeUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::PurgeUserEventsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +UserEventServiceConnection::PurgeUserEvents( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> UserEventServiceConnection::ImportUserEvents( google::cloud::retail::v2::ImportUserEventsRequest const&) { @@ -64,6 +80,22 @@ UserEventServiceConnection::ImportUserEvents( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +UserEventServiceConnection::ImportUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportUserEventsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +UserEventServiceConnection::ImportUserEvents( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> UserEventServiceConnection::RejoinUserEvents( google::cloud::retail::v2::RejoinUserEventsRequest const&) { @@ -72,6 +104,22 @@ UserEventServiceConnection::RejoinUserEvents( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +UserEventServiceConnection::RejoinUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RejoinUserEventsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +UserEventServiceConnection::RejoinUserEvents( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeUserEventServiceConnection( Options options) { internal::CheckExpectedOptions PurgeUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::PurgeUserEventsRequest const& request); + + virtual future> + PurgeUserEvents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ImportUserEvents( google::cloud::retail::v2::ImportUserEventsRequest const& request); + virtual StatusOr ImportUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::ImportUserEventsRequest const& request); + + virtual future> + ImportUserEvents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RejoinUserEvents( google::cloud::retail::v2::RejoinUserEventsRequest const& request); + + virtual StatusOr RejoinUserEvents( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::retail::v2::RejoinUserEventsRequest const& request); + + virtual future> + RejoinUserEvents(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/run/v2/executions_connection.cc b/google/cloud/run/v2/executions_connection.cc index dec5a561d0481..2ae1b6454cafb 100644 --- a/google/cloud/run/v2/executions_connection.cc +++ b/google/cloud/run/v2/executions_connection.cc @@ -59,6 +59,21 @@ ExecutionsConnection::DeleteExecution( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ExecutionsConnection::DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteExecutionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ExecutionsConnection::DeleteExecution(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ExecutionsConnection::CancelExecution( google::cloud::run::v2::CancelExecutionRequest const&) { @@ -67,6 +82,21 @@ ExecutionsConnection::CancelExecution( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ExecutionsConnection::CancelExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CancelExecutionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ExecutionsConnection::CancelExecution(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeExecutionsConnection( Options options) { internal::CheckExpectedOptions> DeleteExecution( google::cloud::run::v2::DeleteExecutionRequest const& request); + virtual StatusOr DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteExecutionRequest const& request); + + virtual future> DeleteExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CancelExecution( google::cloud::run::v2::CancelExecutionRequest const& request); + + virtual StatusOr CancelExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CancelExecutionRequest const& request); + + virtual future> CancelExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/run/v2/internal/executions_connection_impl.cc b/google/cloud/run/v2/internal/executions_connection_impl.cc index 5171b3e74ecef..8321bc6a30090 100644 --- a/google/cloud/run/v2/internal/executions_connection_impl.cc +++ b/google/cloud/run/v2/internal/executions_connection_impl.cc @@ -149,6 +149,57 @@ ExecutionsConnectionImpl::DeleteExecution( polling_policy(*current), __func__); } +StatusOr +ExecutionsConnectionImpl::DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteExecutionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteExecution(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::run::v2::DeleteExecutionRequest const& request) { + return stub_->DeleteExecution(context, options, request); + }, + *current, request, __func__); +} + +future> +ExecutionsConnectionImpl::DeleteExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteExecution", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::run::v2::Execution>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::run::v2::Execution>, + polling_policy(*current), __func__); +} + future> ExecutionsConnectionImpl::CancelExecution( google::cloud::run::v2::CancelExecutionRequest const& request) { @@ -188,6 +239,57 @@ ExecutionsConnectionImpl::CancelExecution( polling_policy(*current), __func__); } +StatusOr +ExecutionsConnectionImpl::CancelExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CancelExecutionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CancelExecution(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::run::v2::CancelExecutionRequest const& request) { + return stub_->CancelExecution(context, options, request); + }, + *current, request, __func__); +} + +future> +ExecutionsConnectionImpl::CancelExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CancelExecution", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::run::v2::Execution>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::run::v2::Execution>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace run_v2_internal } // namespace cloud diff --git a/google/cloud/run/v2/internal/executions_connection_impl.h b/google/cloud/run/v2/internal/executions_connection_impl.h index 79be1cd5dcfd0..bb0a09faf1f3d 100644 --- a/google/cloud/run/v2/internal/executions_connection_impl.h +++ b/google/cloud/run/v2/internal/executions_connection_impl.h @@ -59,9 +59,25 @@ class ExecutionsConnectionImpl : public run_v2::ExecutionsConnection { future> DeleteExecution( google::cloud::run::v2::DeleteExecutionRequest const& request) override; + StatusOr DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteExecutionRequest const& request) override; + + future> DeleteExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CancelExecution( google::cloud::run::v2::CancelExecutionRequest const& request) override; + StatusOr CancelExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CancelExecutionRequest const& request) override; + + future> CancelExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/run/v2/internal/executions_tracing_connection.cc b/google/cloud/run/v2/internal/executions_tracing_connection.cc index ec67c0c98c64a..ae965e291c74f 100644 --- a/google/cloud/run/v2/internal/executions_tracing_connection.cc +++ b/google/cloud/run/v2/internal/executions_tracing_connection.cc @@ -61,6 +61,30 @@ ExecutionsTracingConnection::DeleteExecution( return internal::EndSpan(std::move(span), child_->DeleteExecution(request)); } +StatusOr +ExecutionsTracingConnection::DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteExecutionRequest const& request) { + auto span = + internal::MakeSpan("run_v2::ExecutionsConnection::DeleteExecution"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteExecution(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ExecutionsTracingConnection::DeleteExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("run_v2::ExecutionsConnection::DeleteExecution"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteExecution(google::cloud::ExperimentalTag{}, operation)); +} + future> ExecutionsTracingConnection::CancelExecution( google::cloud::run::v2::CancelExecutionRequest const& request) { @@ -70,6 +94,30 @@ ExecutionsTracingConnection::CancelExecution( return internal::EndSpan(std::move(span), child_->CancelExecution(request)); } +StatusOr +ExecutionsTracingConnection::CancelExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CancelExecutionRequest const& request) { + auto span = + internal::MakeSpan("run_v2::ExecutionsConnection::CancelExecution"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CancelExecution(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ExecutionsTracingConnection::CancelExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("run_v2::ExecutionsConnection::CancelExecution"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CancelExecution(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr MakeExecutionsTracingConnection( diff --git a/google/cloud/run/v2/internal/executions_tracing_connection.h b/google/cloud/run/v2/internal/executions_tracing_connection.h index f3ce19deb0b5c..79160503fdc9c 100644 --- a/google/cloud/run/v2/internal/executions_tracing_connection.h +++ b/google/cloud/run/v2/internal/executions_tracing_connection.h @@ -48,9 +48,25 @@ class ExecutionsTracingConnection : public run_v2::ExecutionsConnection { future> DeleteExecution( google::cloud::run::v2::DeleteExecutionRequest const& request) override; + StatusOr DeleteExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteExecutionRequest const& request) override; + + future> DeleteExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CancelExecution( google::cloud::run::v2::CancelExecutionRequest const& request) override; + StatusOr CancelExecution( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CancelExecutionRequest const& request) override; + + future> CancelExecution( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/run/v2/internal/jobs_connection_impl.cc b/google/cloud/run/v2/internal/jobs_connection_impl.cc index 807a3ab0f8530..bcdc9af8a6095 100644 --- a/google/cloud/run/v2/internal/jobs_connection_impl.cc +++ b/google/cloud/run/v2/internal/jobs_connection_impl.cc @@ -96,6 +96,55 @@ future> JobsConnectionImpl::CreateJob( polling_policy(*current), __func__); } +StatusOr JobsConnectionImpl::CreateJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CreateJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::run::v2::CreateJobRequest const& request) { + return stub_->CreateJob(context, options, request); + }, + *current, request, __func__); +} + +future> JobsConnectionImpl::CreateJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::run::v2::Job>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::run::v2::Job>, + polling_policy(*current), __func__); +} + StatusOr JobsConnectionImpl::GetJob( google::cloud::run::v2::GetJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -175,6 +224,55 @@ future> JobsConnectionImpl::UpdateJob( polling_policy(*current), __func__); } +StatusOr JobsConnectionImpl::UpdateJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::UpdateJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::run::v2::UpdateJobRequest const& request) { + return stub_->UpdateJob(context, options, request); + }, + *current, request, __func__); +} + +future> JobsConnectionImpl::UpdateJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::run::v2::Job>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::run::v2::Job>, + polling_policy(*current), __func__); +} + future> JobsConnectionImpl::DeleteJob( google::cloud::run::v2::DeleteJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -211,6 +309,55 @@ future> JobsConnectionImpl::DeleteJob( polling_policy(*current), __func__); } +StatusOr JobsConnectionImpl::DeleteJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::run::v2::DeleteJobRequest const& request) { + return stub_->DeleteJob(context, options, request); + }, + *current, request, __func__); +} + +future> JobsConnectionImpl::DeleteJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::run::v2::Job>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::run::v2::Job>, + polling_policy(*current), __func__); +} + future> JobsConnectionImpl::RunJob( google::cloud::run::v2::RunJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -247,6 +394,55 @@ future> JobsConnectionImpl::RunJob( polling_policy(*current), __func__); } +StatusOr JobsConnectionImpl::RunJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::RunJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RunJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::run::v2::RunJobRequest const& request) { + return stub_->RunJob(context, options, request); + }, + *current, request, __func__); +} + +future> JobsConnectionImpl::RunJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RunJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::run::v2::Execution>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::run::v2::Execution>, + polling_policy(*current), __func__); +} + StatusOr JobsConnectionImpl::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/run/v2/internal/jobs_connection_impl.h b/google/cloud/run/v2/internal/jobs_connection_impl.h index bcdd0c5cf4293..f82268247ec41 100644 --- a/google/cloud/run/v2/internal/jobs_connection_impl.h +++ b/google/cloud/run/v2/internal/jobs_connection_impl.h @@ -53,6 +53,14 @@ class JobsConnectionImpl : public run_v2::JobsConnection { future> CreateJob( google::cloud::run::v2::CreateJobRequest const& request) override; + StatusOr CreateJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CreateJobRequest const& request) override; + + future> CreateJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetJob( google::cloud::run::v2::GetJobRequest const& request) override; @@ -62,12 +70,36 @@ class JobsConnectionImpl : public run_v2::JobsConnection { future> UpdateJob( google::cloud::run::v2::UpdateJobRequest const& request) override; + StatusOr UpdateJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::UpdateJobRequest const& request) override; + + future> UpdateJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteJob( google::cloud::run::v2::DeleteJobRequest const& request) override; + StatusOr DeleteJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteJobRequest const& request) override; + + future> DeleteJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RunJob( google::cloud::run::v2::RunJobRequest const& request) override; + StatusOr RunJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::RunJobRequest const& request) override; + + future> RunJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/run/v2/internal/jobs_tracing_connection.cc b/google/cloud/run/v2/internal/jobs_tracing_connection.cc index f3b5f79486ec4..6c87bf8892ddd 100644 --- a/google/cloud/run/v2/internal/jobs_tracing_connection.cc +++ b/google/cloud/run/v2/internal/jobs_tracing_connection.cc @@ -40,6 +40,26 @@ future> JobsTracingConnection::CreateJob( return internal::EndSpan(std::move(span), child_->CreateJob(request)); } +StatusOr JobsTracingConnection::CreateJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CreateJobRequest const& request) { + auto span = internal::MakeSpan("run_v2::JobsConnection::CreateJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> JobsTracingConnection::CreateJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("run_v2::JobsConnection::CreateJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateJob(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr JobsTracingConnection::GetJob( google::cloud::run::v2::GetJobRequest const& request) { auto span = internal::MakeSpan("run_v2::JobsConnection::GetJob"); @@ -63,6 +83,26 @@ future> JobsTracingConnection::UpdateJob( return internal::EndSpan(std::move(span), child_->UpdateJob(request)); } +StatusOr JobsTracingConnection::UpdateJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::UpdateJobRequest const& request) { + auto span = internal::MakeSpan("run_v2::JobsConnection::UpdateJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> JobsTracingConnection::UpdateJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("run_v2::JobsConnection::UpdateJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateJob(google::cloud::ExperimentalTag{}, operation)); +} + future> JobsTracingConnection::DeleteJob( google::cloud::run::v2::DeleteJobRequest const& request) { auto span = internal::MakeSpan("run_v2::JobsConnection::DeleteJob"); @@ -70,6 +110,26 @@ future> JobsTracingConnection::DeleteJob( return internal::EndSpan(std::move(span), child_->DeleteJob(request)); } +StatusOr JobsTracingConnection::DeleteJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteJobRequest const& request) { + auto span = internal::MakeSpan("run_v2::JobsConnection::DeleteJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> JobsTracingConnection::DeleteJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("run_v2::JobsConnection::DeleteJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteJob(google::cloud::ExperimentalTag{}, operation)); +} + future> JobsTracingConnection::RunJob( google::cloud::run::v2::RunJobRequest const& request) { @@ -78,6 +138,26 @@ JobsTracingConnection::RunJob( return internal::EndSpan(std::move(span), child_->RunJob(request)); } +StatusOr JobsTracingConnection::RunJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::RunJobRequest const& request) { + auto span = internal::MakeSpan("run_v2::JobsConnection::RunJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RunJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +JobsTracingConnection::RunJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("run_v2::JobsConnection::RunJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RunJob(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr JobsTracingConnection::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) { auto span = internal::MakeSpan("run_v2::JobsConnection::GetIamPolicy"); diff --git a/google/cloud/run/v2/internal/jobs_tracing_connection.h b/google/cloud/run/v2/internal/jobs_tracing_connection.h index 56aa23bb7c87e..0f34162bebf3f 100644 --- a/google/cloud/run/v2/internal/jobs_tracing_connection.h +++ b/google/cloud/run/v2/internal/jobs_tracing_connection.h @@ -41,6 +41,14 @@ class JobsTracingConnection : public run_v2::JobsConnection { future> CreateJob( google::cloud::run::v2::CreateJobRequest const& request) override; + StatusOr CreateJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CreateJobRequest const& request) override; + + future> CreateJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetJob( google::cloud::run::v2::GetJobRequest const& request) override; @@ -50,12 +58,36 @@ class JobsTracingConnection : public run_v2::JobsConnection { future> UpdateJob( google::cloud::run::v2::UpdateJobRequest const& request) override; + StatusOr UpdateJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::UpdateJobRequest const& request) override; + + future> UpdateJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteJob( google::cloud::run::v2::DeleteJobRequest const& request) override; + StatusOr DeleteJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteJobRequest const& request) override; + + future> DeleteJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RunJob( google::cloud::run::v2::RunJobRequest const& request) override; + StatusOr RunJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::RunJobRequest const& request) override; + + future> RunJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/run/v2/internal/revisions_connection_impl.cc b/google/cloud/run/v2/internal/revisions_connection_impl.cc index 28b6e0ff592ea..4e10eb0b1aa3e 100644 --- a/google/cloud/run/v2/internal/revisions_connection_impl.cc +++ b/google/cloud/run/v2/internal/revisions_connection_impl.cc @@ -148,6 +148,57 @@ RevisionsConnectionImpl::DeleteRevision( polling_policy(*current), __func__); } +StatusOr +RevisionsConnectionImpl::DeleteRevision( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteRevisionRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteRevision(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::run::v2::DeleteRevisionRequest const& request) { + return stub_->DeleteRevision(context, options, request); + }, + *current, request, __func__); +} + +future> +RevisionsConnectionImpl::DeleteRevision( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteRevision", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::run::v2::Revision>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::run::v2::Revision>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace run_v2_internal } // namespace cloud diff --git a/google/cloud/run/v2/internal/revisions_connection_impl.h b/google/cloud/run/v2/internal/revisions_connection_impl.h index b9a87868ed77f..96150e1e85bdf 100644 --- a/google/cloud/run/v2/internal/revisions_connection_impl.h +++ b/google/cloud/run/v2/internal/revisions_connection_impl.h @@ -59,6 +59,14 @@ class RevisionsConnectionImpl : public run_v2::RevisionsConnection { future> DeleteRevision( google::cloud::run::v2::DeleteRevisionRequest const& request) override; + StatusOr DeleteRevision( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteRevisionRequest const& request) override; + + future> DeleteRevision( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/run/v2/internal/revisions_tracing_connection.cc b/google/cloud/run/v2/internal/revisions_tracing_connection.cc index 7696850abd486..acdce0baa25fb 100644 --- a/google/cloud/run/v2/internal/revisions_tracing_connection.cc +++ b/google/cloud/run/v2/internal/revisions_tracing_connection.cc @@ -59,6 +59,28 @@ RevisionsTracingConnection::DeleteRevision( return internal::EndSpan(std::move(span), child_->DeleteRevision(request)); } +StatusOr +RevisionsTracingConnection::DeleteRevision( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteRevisionRequest const& request) { + auto span = internal::MakeSpan("run_v2::RevisionsConnection::DeleteRevision"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteRevision(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +RevisionsTracingConnection::DeleteRevision( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("run_v2::RevisionsConnection::DeleteRevision"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteRevision(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr MakeRevisionsTracingConnection( diff --git a/google/cloud/run/v2/internal/revisions_tracing_connection.h b/google/cloud/run/v2/internal/revisions_tracing_connection.h index 1d2c4688fb2d0..5069f5485900d 100644 --- a/google/cloud/run/v2/internal/revisions_tracing_connection.h +++ b/google/cloud/run/v2/internal/revisions_tracing_connection.h @@ -48,6 +48,14 @@ class RevisionsTracingConnection : public run_v2::RevisionsConnection { future> DeleteRevision( google::cloud::run::v2::DeleteRevisionRequest const& request) override; + StatusOr DeleteRevision( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteRevisionRequest const& request) override; + + future> DeleteRevision( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/run/v2/internal/services_connection_impl.cc b/google/cloud/run/v2/internal/services_connection_impl.cc index eadfd154d93a2..9baacf6b1e7b8 100644 --- a/google/cloud/run/v2/internal/services_connection_impl.cc +++ b/google/cloud/run/v2/internal/services_connection_impl.cc @@ -101,6 +101,56 @@ ServicesConnectionImpl::CreateService( polling_policy(*current), __func__); } +StatusOr ServicesConnectionImpl::CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CreateServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateService(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::run::v2::CreateServiceRequest const& request) { + return stub_->CreateService(context, options, request); + }, + *current, request, __func__); +} + +future> +ServicesConnectionImpl::CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::run::v2::Service>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::run::v2::Service>, + polling_policy(*current), __func__); +} + StatusOr ServicesConnectionImpl::GetService( google::cloud::run::v2::GetServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -186,6 +236,56 @@ ServicesConnectionImpl::UpdateService( polling_policy(*current), __func__); } +StatusOr ServicesConnectionImpl::UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::UpdateServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateService(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::run::v2::UpdateServiceRequest const& request) { + return stub_->UpdateService(context, options, request); + }, + *current, request, __func__); +} + +future> +ServicesConnectionImpl::UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::run::v2::Service>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::run::v2::Service>, + polling_policy(*current), __func__); +} + future> ServicesConnectionImpl::DeleteService( google::cloud::run::v2::DeleteServiceRequest const& request) { @@ -225,6 +325,56 @@ ServicesConnectionImpl::DeleteService( polling_policy(*current), __func__); } +StatusOr ServicesConnectionImpl::DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteService(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::run::v2::DeleteServiceRequest const& request) { + return stub_->DeleteService(context, options, request); + }, + *current, request, __func__); +} + +future> +ServicesConnectionImpl::DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::run::v2::Service>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::run::v2::Service>, + polling_policy(*current), __func__); +} + StatusOr ServicesConnectionImpl::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/run/v2/internal/services_connection_impl.h b/google/cloud/run/v2/internal/services_connection_impl.h index d51df1e6c38c7..5b5278d540903 100644 --- a/google/cloud/run/v2/internal/services_connection_impl.h +++ b/google/cloud/run/v2/internal/services_connection_impl.h @@ -53,6 +53,14 @@ class ServicesConnectionImpl : public run_v2::ServicesConnection { future> CreateService( google::cloud::run::v2::CreateServiceRequest const& request) override; + StatusOr CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CreateServiceRequest const& request) override; + + future> CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetService( google::cloud::run::v2::GetServiceRequest const& request) override; @@ -62,9 +70,25 @@ class ServicesConnectionImpl : public run_v2::ServicesConnection { future> UpdateService( google::cloud::run::v2::UpdateServiceRequest const& request) override; + StatusOr UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::UpdateServiceRequest const& request) override; + + future> UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteService( google::cloud::run::v2::DeleteServiceRequest const& request) override; + StatusOr DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteServiceRequest const& request) override; + + future> DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/run/v2/internal/services_tracing_connection.cc b/google/cloud/run/v2/internal/services_tracing_connection.cc index 3cf5db8899c48..4a3aed92159e4 100644 --- a/google/cloud/run/v2/internal/services_tracing_connection.cc +++ b/google/cloud/run/v2/internal/services_tracing_connection.cc @@ -41,6 +41,28 @@ ServicesTracingConnection::CreateService( return internal::EndSpan(std::move(span), child_->CreateService(request)); } +StatusOr +ServicesTracingConnection::CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CreateServiceRequest const& request) { + auto span = internal::MakeSpan("run_v2::ServicesConnection::CreateService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ServicesTracingConnection::CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("run_v2::ServicesConnection::CreateService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateService(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ServicesTracingConnection::GetService( google::cloud::run::v2::GetServiceRequest const& request) { auto span = internal::MakeSpan("run_v2::ServicesConnection::GetService"); @@ -66,6 +88,28 @@ ServicesTracingConnection::UpdateService( return internal::EndSpan(std::move(span), child_->UpdateService(request)); } +StatusOr +ServicesTracingConnection::UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::UpdateServiceRequest const& request) { + auto span = internal::MakeSpan("run_v2::ServicesConnection::UpdateService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ServicesTracingConnection::UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("run_v2::ServicesConnection::UpdateService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateService(google::cloud::ExperimentalTag{}, operation)); +} + future> ServicesTracingConnection::DeleteService( google::cloud::run::v2::DeleteServiceRequest const& request) { @@ -74,6 +118,28 @@ ServicesTracingConnection::DeleteService( return internal::EndSpan(std::move(span), child_->DeleteService(request)); } +StatusOr +ServicesTracingConnection::DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteServiceRequest const& request) { + auto span = internal::MakeSpan("run_v2::ServicesConnection::DeleteService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ServicesTracingConnection::DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("run_v2::ServicesConnection::DeleteService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteService(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ServicesTracingConnection::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) { auto span = internal::MakeSpan("run_v2::ServicesConnection::GetIamPolicy"); diff --git a/google/cloud/run/v2/internal/services_tracing_connection.h b/google/cloud/run/v2/internal/services_tracing_connection.h index 092b5e7700a8a..b588d32a149c5 100644 --- a/google/cloud/run/v2/internal/services_tracing_connection.h +++ b/google/cloud/run/v2/internal/services_tracing_connection.h @@ -42,6 +42,14 @@ class ServicesTracingConnection : public run_v2::ServicesConnection { future> CreateService( google::cloud::run::v2::CreateServiceRequest const& request) override; + StatusOr CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CreateServiceRequest const& request) override; + + future> CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetService( google::cloud::run::v2::GetServiceRequest const& request) override; @@ -51,9 +59,25 @@ class ServicesTracingConnection : public run_v2::ServicesConnection { future> UpdateService( google::cloud::run::v2::UpdateServiceRequest const& request) override; + StatusOr UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::UpdateServiceRequest const& request) override; + + future> UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteService( google::cloud::run::v2::DeleteServiceRequest const& request) override; + StatusOr DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteServiceRequest const& request) override; + + future> DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/run/v2/jobs_connection.cc b/google/cloud/run/v2/jobs_connection.cc index 0a804c7e9c952..250d9f9b74f80 100644 --- a/google/cloud/run/v2/jobs_connection.cc +++ b/google/cloud/run/v2/jobs_connection.cc @@ -45,6 +45,20 @@ future> JobsConnection::CreateJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr JobsConnection::CreateJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CreateJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> JobsConnection::CreateJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr JobsConnection::GetJob( google::cloud::run::v2::GetJobRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -64,6 +78,20 @@ future> JobsConnection::UpdateJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr JobsConnection::UpdateJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::UpdateJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> JobsConnection::UpdateJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> JobsConnection::DeleteJob( google::cloud::run::v2::DeleteJobRequest const&) { return google::cloud::make_ready_future< @@ -71,6 +99,20 @@ future> JobsConnection::DeleteJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr JobsConnection::DeleteJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> JobsConnection::DeleteJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> JobsConnection::RunJob( google::cloud::run::v2::RunJobRequest const&) { return google::cloud::make_ready_future< @@ -78,6 +120,20 @@ future> JobsConnection::RunJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr JobsConnection::RunJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::RunJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> JobsConnection::RunJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr JobsConnection::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); diff --git a/google/cloud/run/v2/jobs_connection.h b/google/cloud/run/v2/jobs_connection.h index 2db4449354bed..899fa88524249 100644 --- a/google/cloud/run/v2/jobs_connection.h +++ b/google/cloud/run/v2/jobs_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/run/v2/internal/jobs_retry_traits.h" #include "google/cloud/run/v2/jobs_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -184,6 +186,14 @@ class JobsConnection { virtual future> CreateJob( google::cloud::run::v2::CreateJobRequest const& request); + virtual StatusOr CreateJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CreateJobRequest const& request); + + virtual future> CreateJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetJob( google::cloud::run::v2::GetJobRequest const& request); @@ -193,12 +203,36 @@ class JobsConnection { virtual future> UpdateJob( google::cloud::run::v2::UpdateJobRequest const& request); + virtual StatusOr UpdateJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::UpdateJobRequest const& request); + + virtual future> UpdateJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteJob( google::cloud::run::v2::DeleteJobRequest const& request); + virtual StatusOr DeleteJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteJobRequest const& request); + + virtual future> DeleteJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RunJob( google::cloud::run::v2::RunJobRequest const& request); + virtual StatusOr RunJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::RunJobRequest const& request); + + virtual future> RunJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request); diff --git a/google/cloud/run/v2/mocks/mock_executions_connection.h b/google/cloud/run/v2/mocks/mock_executions_connection.h index 7dc48c5e0a694..7f090c26d6e7f 100644 --- a/google/cloud/run/v2/mocks/mock_executions_connection.h +++ b/google/cloud/run/v2/mocks/mock_executions_connection.h @@ -59,10 +59,32 @@ class MockExecutionsConnection : public run_v2::ExecutionsConnection { (google::cloud::run::v2::DeleteExecutionRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteExecution, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteExecutionRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteExecution, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, CancelExecution, (google::cloud::run::v2::CancelExecutionRequest const& request), (override)); + + MOCK_METHOD(StatusOr, CancelExecution, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CancelExecutionRequest const& request), + (override)); + + MOCK_METHOD(future>, + CancelExecution, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/run/v2/mocks/mock_jobs_connection.h b/google/cloud/run/v2/mocks/mock_jobs_connection.h index 17de06be73f72..902c043fb2856 100644 --- a/google/cloud/run/v2/mocks/mock_jobs_connection.h +++ b/google/cloud/run/v2/mocks/mock_jobs_connection.h @@ -50,6 +50,16 @@ class MockJobsConnection : public run_v2::JobsConnection { (google::cloud::run::v2::CreateJobRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CreateJobRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetJob, (google::cloud::run::v2::GetJobRequest const& request), (override)); @@ -61,14 +71,44 @@ class MockJobsConnection : public run_v2::JobsConnection { (google::cloud::run::v2::UpdateJobRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::UpdateJobRequest const& request), + (override)); + + MOCK_METHOD(future>, UpdateJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteJob, (google::cloud::run::v2::DeleteJobRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteJobRequest const& request), + (override)); + + MOCK_METHOD(future>, DeleteJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, RunJob, (google::cloud::run::v2::RunJobRequest const& request), (override)); + MOCK_METHOD(StatusOr, RunJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::RunJobRequest const& request), + (override)); + + MOCK_METHOD(future>, RunJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetIamPolicy, (google::iam::v1::GetIamPolicyRequest const& request), (override)); diff --git a/google/cloud/run/v2/mocks/mock_revisions_connection.h b/google/cloud/run/v2/mocks/mock_revisions_connection.h index 02520df8eb3e0..c65acd6be9cff 100644 --- a/google/cloud/run/v2/mocks/mock_revisions_connection.h +++ b/google/cloud/run/v2/mocks/mock_revisions_connection.h @@ -58,6 +58,17 @@ class MockRevisionsConnection : public run_v2::RevisionsConnection { DeleteRevision, (google::cloud::run::v2::DeleteRevisionRequest const& request), (override)); + + MOCK_METHOD(StatusOr, DeleteRevision, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteRevisionRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteRevision, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/run/v2/mocks/mock_services_connection.h b/google/cloud/run/v2/mocks/mock_services_connection.h index 71b678c37f0c3..9f6913042238b 100644 --- a/google/cloud/run/v2/mocks/mock_services_connection.h +++ b/google/cloud/run/v2/mocks/mock_services_connection.h @@ -50,6 +50,16 @@ class MockServicesConnection : public run_v2::ServicesConnection { (google::cloud::run::v2::CreateServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CreateServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetService, (google::cloud::run::v2::GetServiceRequest const& request), (override)); @@ -62,10 +72,30 @@ class MockServicesConnection : public run_v2::ServicesConnection { (google::cloud::run::v2::UpdateServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::UpdateServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, UpdateService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteService, (google::cloud::run::v2::DeleteServiceRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteServiceRequest const& request), + (override)); + + MOCK_METHOD(future>, DeleteService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetIamPolicy, (google::iam::v1::GetIamPolicyRequest const& request), (override)); diff --git a/google/cloud/run/v2/revisions_connection.cc b/google/cloud/run/v2/revisions_connection.cc index ea83af5d02ea9..de41074028c38 100644 --- a/google/cloud/run/v2/revisions_connection.cc +++ b/google/cloud/run/v2/revisions_connection.cc @@ -59,6 +59,21 @@ RevisionsConnection::DeleteRevision( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr RevisionsConnection::DeleteRevision( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteRevisionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +RevisionsConnection::DeleteRevision(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeRevisionsConnection(Options options) { internal::CheckExpectedOptions> DeleteRevision( google::cloud::run::v2::DeleteRevisionRequest const& request); + + virtual StatusOr DeleteRevision( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteRevisionRequest const& request); + + virtual future> DeleteRevision( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/run/v2/services_connection.cc b/google/cloud/run/v2/services_connection.cc index aa5239d5dd210..aee16249412df 100644 --- a/google/cloud/run/v2/services_connection.cc +++ b/google/cloud/run/v2/services_connection.cc @@ -46,6 +46,21 @@ ServicesConnection::CreateService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ServicesConnection::CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CreateServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ServicesConnection::CreateService(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ServicesConnection::GetService( google::cloud::run::v2::GetServiceRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -66,6 +81,21 @@ ServicesConnection::UpdateService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ServicesConnection::UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::UpdateServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ServicesConnection::UpdateService(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ServicesConnection::DeleteService( google::cloud::run::v2::DeleteServiceRequest const&) { @@ -74,6 +104,21 @@ ServicesConnection::DeleteService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ServicesConnection::DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ServicesConnection::DeleteService(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ServicesConnection::GetIamPolicy( google::iam::v1::GetIamPolicyRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); diff --git a/google/cloud/run/v2/services_connection.h b/google/cloud/run/v2/services_connection.h index a169c444737ff..0867e1bb26cce 100644 --- a/google/cloud/run/v2/services_connection.h +++ b/google/cloud/run/v2/services_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/run/v2/internal/services_retry_traits.h" #include "google/cloud/run/v2/services_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -185,6 +187,14 @@ class ServicesConnection { virtual future> CreateService( google::cloud::run::v2::CreateServiceRequest const& request); + virtual StatusOr CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::CreateServiceRequest const& request); + + virtual future> CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetService( google::cloud::run::v2::GetServiceRequest const& request); @@ -194,9 +204,25 @@ class ServicesConnection { virtual future> UpdateService( google::cloud::run::v2::UpdateServiceRequest const& request); + virtual StatusOr UpdateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::UpdateServiceRequest const& request); + + virtual future> UpdateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteService( google::cloud::run::v2::DeleteServiceRequest const& request); + virtual StatusOr DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::run::v2::DeleteServiceRequest const& request); + + virtual future> DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request); diff --git a/google/cloud/run/v2/tasks_connection.h b/google/cloud/run/v2/tasks_connection.h index ba62eee3ccf44..148d3f374302b 100644 --- a/google/cloud/run/v2/tasks_connection.h +++ b/google/cloud/run/v2/tasks_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/run/v2/internal/tasks_retry_traits.h" #include "google/cloud/run/v2/tasks_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/scheduler/v1/cloud_scheduler_connection.h b/google/cloud/scheduler/v1/cloud_scheduler_connection.h index 5b470ec5a2f2d..1cd88f8101d97 100644 --- a/google/cloud/scheduler/v1/cloud_scheduler_connection.h +++ b/google/cloud/scheduler/v1/cloud_scheduler_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/scheduler/v1/cloud_scheduler_connection_idempotency_policy.h" #include "google/cloud/scheduler/v1/internal/cloud_scheduler_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/secretmanager/v1/secret_manager_connection.h b/google/cloud/secretmanager/v1/secret_manager_connection.h index 12245c6cdb2a0..cf425c33962b6 100644 --- a/google/cloud/secretmanager/v1/secret_manager_connection.h +++ b/google/cloud/secretmanager/v1/secret_manager_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/secretmanager/v1/internal/secret_manager_retry_traits.h" #include "google/cloud/secretmanager/v1/secret_manager_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.cc b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.cc index a3c0e6d9c158a..3d66120e0ce91 100644 --- a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.cc +++ b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.cc @@ -165,6 +165,63 @@ SecureSourceManagerConnectionImpl::CreateInstance( polling_policy(*current), __func__); } +StatusOr +SecureSourceManagerConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::CreateInstanceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::securesourcemanager::v1::CreateInstanceRequest const& + request) { + return stub_->CreateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +SecureSourceManagerConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::securesourcemanager::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::securesourcemanager::v1::Instance>, + polling_policy(*current), __func__); +} + future> SecureSourceManagerConnectionImpl::DeleteInstance( google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& @@ -206,6 +263,63 @@ SecureSourceManagerConnectionImpl::DeleteInstance( polling_policy(*current), __func__); } +StatusOr +SecureSourceManagerConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInstance(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& + request) { + return stub_->DeleteInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +SecureSourceManagerConnectionImpl::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::securesourcemanager::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::securesourcemanager::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange SecureSourceManagerConnectionImpl::ListRepositories( google::cloud::securesourcemanager::v1::ListRepositoriesRequest request) { @@ -299,6 +413,63 @@ SecureSourceManagerConnectionImpl::CreateRepository( polling_policy(*current), __func__); } +StatusOr +SecureSourceManagerConnectionImpl::CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateRepository(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& + request) { + return stub_->CreateRepository(context, options, request); + }, + *current, request, __func__); +} + +future> +SecureSourceManagerConnectionImpl::CreateRepository( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateRepository", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::securesourcemanager::v1::Repository>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::securesourcemanager::v1::Repository>, + polling_policy(*current), __func__); +} + future> SecureSourceManagerConnectionImpl::DeleteRepository( google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& @@ -340,6 +511,63 @@ SecureSourceManagerConnectionImpl::DeleteRepository( polling_policy(*current), __func__); } +StatusOr +SecureSourceManagerConnectionImpl::DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteRepository(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& + request) { + return stub_->DeleteRepository(context, options, request); + }, + *current, request, __func__); +} + +future> +SecureSourceManagerConnectionImpl::DeleteRepository( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteRepository", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::securesourcemanager::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::securesourcemanager::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr SecureSourceManagerConnectionImpl::GetIamPolicyRepo( google::iam::v1::GetIamPolicyRequest const& request) { diff --git a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.h b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.h index 681ed3abada49..7e34458a78cd0 100644 --- a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.h +++ b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.h @@ -66,11 +66,29 @@ class SecureSourceManagerConnectionImpl google::cloud::securesourcemanager::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::CreateInstanceRequest const& + request) override; + + future> + CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteInstance( google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& + request) override; + + future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRepositories( google::cloud::securesourcemanager::v1::ListRepositoriesRequest request) @@ -85,11 +103,29 @@ class SecureSourceManagerConnectionImpl google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& request) override; + StatusOr CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& + request) override; + + future> + CreateRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteRepository( google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& request) override; + StatusOr DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& + request) override; + + future> + DeleteRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicyRepo( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.cc b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.cc index 73ffe2bafe20f..f1d87f76c6b3d 100644 --- a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.cc +++ b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.cc @@ -65,6 +65,31 @@ SecureSourceManagerTracingConnection::CreateInstance( return internal::EndSpan(std::move(span), child_->CreateInstance(request)); } +StatusOr +SecureSourceManagerTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::CreateInstanceRequest const& + request) { + auto span = internal::MakeSpan( + "securesourcemanager_v1::SecureSourceManagerConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SecureSourceManagerTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "securesourcemanager_v1::SecureSourceManagerConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> SecureSourceManagerTracingConnection::DeleteInstance( google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& @@ -75,6 +100,31 @@ SecureSourceManagerTracingConnection::DeleteInstance( return internal::EndSpan(std::move(span), child_->DeleteInstance(request)); } +StatusOr +SecureSourceManagerTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& + request) { + auto span = internal::MakeSpan( + "securesourcemanager_v1::SecureSourceManagerConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SecureSourceManagerTracingConnection::DeleteInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "securesourcemanager_v1::SecureSourceManagerConnection::DeleteInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange SecureSourceManagerTracingConnection::ListRepositories( google::cloud::securesourcemanager::v1::ListRepositoriesRequest request) { @@ -109,6 +159,33 @@ SecureSourceManagerTracingConnection::CreateRepository( return internal::EndSpan(std::move(span), child_->CreateRepository(request)); } +StatusOr +SecureSourceManagerTracingConnection::CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& + request) { + auto span = internal::MakeSpan( + "securesourcemanager_v1::SecureSourceManagerConnection::" + "CreateRepository"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateRepository(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SecureSourceManagerTracingConnection::CreateRepository( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "securesourcemanager_v1::SecureSourceManagerConnection::" + "CreateRepository"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateRepository(google::cloud::ExperimentalTag{}, operation)); +} + future> SecureSourceManagerTracingConnection::DeleteRepository( google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& @@ -120,6 +197,33 @@ SecureSourceManagerTracingConnection::DeleteRepository( return internal::EndSpan(std::move(span), child_->DeleteRepository(request)); } +StatusOr +SecureSourceManagerTracingConnection::DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& + request) { + auto span = internal::MakeSpan( + "securesourcemanager_v1::SecureSourceManagerConnection::" + "DeleteRepository"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteRepository(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SecureSourceManagerTracingConnection::DeleteRepository( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "securesourcemanager_v1::SecureSourceManagerConnection::" + "DeleteRepository"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteRepository(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SecureSourceManagerTracingConnection::GetIamPolicyRepo( google::iam::v1::GetIamPolicyRequest const& request) { diff --git a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.h b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.h index efbbcba831315..1900f3f3cb1c7 100644 --- a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.h +++ b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.h @@ -54,11 +54,29 @@ class SecureSourceManagerTracingConnection google::cloud::securesourcemanager::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::CreateInstanceRequest const& + request) override; + + future> + CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteInstance( google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& request) override; + StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& + request) override; + + future> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRepositories( google::cloud::securesourcemanager::v1::ListRepositoriesRequest request) @@ -73,11 +91,29 @@ class SecureSourceManagerTracingConnection google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& request) override; + StatusOr CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& + request) override; + + future> + CreateRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteRepository( google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& request) override; + StatusOr DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& + request) override; + + future> + DeleteRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetIamPolicyRepo( google::iam::v1::GetIamPolicyRequest const& request) override; diff --git a/google/cloud/securesourcemanager/v1/mocks/mock_secure_source_manager_connection.h b/google/cloud/securesourcemanager/v1/mocks/mock_secure_source_manager_connection.h index e0cb3900e7406..66fbad2939082 100644 --- a/google/cloud/securesourcemanager/v1/mocks/mock_secure_source_manager_connection.h +++ b/google/cloud/securesourcemanager/v1/mocks/mock_secure_source_manager_connection.h @@ -66,6 +66,20 @@ class MockSecureSourceManagerConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::CreateInstanceRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -74,6 +88,21 @@ class MockSecureSourceManagerConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListRepositories, @@ -94,6 +123,20 @@ class MockSecureSourceManagerConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateRepository, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateRepository, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -102,6 +145,21 @@ class MockSecureSourceManagerConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteRepository, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + DeleteRepository, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetIamPolicyRepo, (google::iam::v1::GetIamPolicyRequest const& request), (override)); diff --git a/google/cloud/securesourcemanager/v1/secure_source_manager_connection.cc b/google/cloud/securesourcemanager/v1/secure_source_manager_connection.cc index 4eeb767482ee0..d5cf20c4b65cf 100644 --- a/google/cloud/securesourcemanager/v1/secure_source_manager_connection.cc +++ b/google/cloud/securesourcemanager/v1/secure_source_manager_connection.cc @@ -60,6 +60,22 @@ SecureSourceManagerConnection::CreateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SecureSourceManagerConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::CreateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SecureSourceManagerConnection::CreateInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SecureSourceManagerConnection::DeleteInstance( google::cloud::securesourcemanager::v1::DeleteInstanceRequest const&) { @@ -68,6 +84,22 @@ SecureSourceManagerConnection::DeleteInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SecureSourceManagerConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::DeleteInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SecureSourceManagerConnection::DeleteInstance( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange SecureSourceManagerConnection::ListRepositories( google::cloud::securesourcemanager::v1:: @@ -90,6 +122,22 @@ SecureSourceManagerConnection::CreateRepository( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SecureSourceManagerConnection::CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::CreateRepositoryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SecureSourceManagerConnection::CreateRepository( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SecureSourceManagerConnection::DeleteRepository( google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const&) { @@ -98,6 +146,22 @@ SecureSourceManagerConnection::DeleteRepository( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SecureSourceManagerConnection::DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SecureSourceManagerConnection::DeleteRepository( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SecureSourceManagerConnection::GetIamPolicyRepo( google::iam::v1::GetIamPolicyRequest const&) { diff --git a/google/cloud/securesourcemanager/v1/secure_source_manager_connection.h b/google/cloud/securesourcemanager/v1/secure_source_manager_connection.h index da49e0f91218d..514004092ff9c 100644 --- a/google/cloud/securesourcemanager/v1/secure_source_manager_connection.h +++ b/google/cloud/securesourcemanager/v1/secure_source_manager_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/securesourcemanager/v1/internal/secure_source_manager_retry_traits.h" #include "google/cloud/securesourcemanager/v1/secure_source_manager_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -202,12 +204,31 @@ class SecureSourceManagerConnection { google::cloud::securesourcemanager::v1::CreateInstanceRequest const& request); + virtual StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::CreateInstanceRequest const& + request); + + virtual future> + CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteInstance( google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& request); + virtual StatusOr DeleteInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& + request); + + virtual future< + StatusOr> + DeleteInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListRepositories( google::cloud::securesourcemanager::v1::ListRepositoriesRequest request); @@ -222,12 +243,31 @@ class SecureSourceManagerConnection { google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& request); + virtual StatusOr CreateRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& + request); + + virtual future> + CreateRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteRepository( google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& request); + virtual StatusOr DeleteRepository( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& + request); + + virtual future< + StatusOr> + DeleteRepository(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetIamPolicyRepo( google::iam::v1::GetIamPolicyRequest const& request); diff --git a/google/cloud/securitycenter/v1/internal/security_center_connection_impl.cc b/google/cloud/securitycenter/v1/internal/security_center_connection_impl.cc index 35705fc2f9719..d5f5dfbf0caf7 100644 --- a/google/cloud/securitycenter/v1/internal/security_center_connection_impl.cc +++ b/google/cloud/securitycenter/v1/internal/security_center_connection_impl.cc @@ -107,6 +107,59 @@ SecurityCenterConnectionImpl::BulkMuteFindings( polling_policy(*current), __func__); } +StatusOr +SecurityCenterConnectionImpl::BulkMuteFindings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BulkMuteFindings(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& + request) { + return stub_->BulkMuteFindings(context, options, request); + }, + *current, request, __func__); +} + +future> +SecurityCenterConnectionImpl::BulkMuteFindings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to BulkMuteFindings", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::securitycenter::v1::BulkMuteFindingsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::securitycenter::v1::BulkMuteFindingsResponse>, + polling_policy(*current), __func__); +} + StatusOr SecurityCenterConnectionImpl::CreateSecurityHealthAnalyticsCustomModule( google::cloud::securitycenter::v1:: @@ -788,6 +841,60 @@ SecurityCenterConnectionImpl::RunAssetDiscovery( polling_policy(*current), __func__); } +StatusOr +SecurityCenterConnectionImpl::RunAssetDiscovery( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RunAssetDiscovery(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& + request) { + return stub_->RunAssetDiscovery(context, options, request); + }, + *current, request, __func__); +} + +future> +SecurityCenterConnectionImpl::RunAssetDiscovery( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RunAssetDiscovery", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::securitycenter::v1::RunAssetDiscoveryResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::securitycenter::v1::RunAssetDiscoveryResponse>, + polling_policy(*current), __func__); +} + StatusOr SecurityCenterConnectionImpl::SetFindingState( google::cloud::securitycenter::v1::SetFindingStateRequest const& request) { diff --git a/google/cloud/securitycenter/v1/internal/security_center_connection_impl.h b/google/cloud/securitycenter/v1/internal/security_center_connection_impl.h index 282e1d8e43474..6603da7ad048c 100644 --- a/google/cloud/securitycenter/v1/internal/security_center_connection_impl.h +++ b/google/cloud/securitycenter/v1/internal/security_center_connection_impl.h @@ -57,6 +57,15 @@ class SecurityCenterConnectionImpl google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& request) override; + StatusOr BulkMuteFindings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& request) + override; + + future> + BulkMuteFindings(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr< google::cloud::securitycenter::v1::SecurityHealthAnalyticsCustomModule> CreateSecurityHealthAnalyticsCustomModule( @@ -186,6 +195,15 @@ class SecurityCenterConnectionImpl google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& request) override; + StatusOr RunAssetDiscovery( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& + request) override; + + future> + RunAssetDiscovery(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr SetFindingState( google::cloud::securitycenter::v1::SetFindingStateRequest const& request) override; diff --git a/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.cc b/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.cc index 26c0ca9194f7b..e3aecdb657a83 100644 --- a/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.cc +++ b/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.cc @@ -42,6 +42,30 @@ SecurityCenterTracingConnection::BulkMuteFindings( return internal::EndSpan(std::move(span), child_->BulkMuteFindings(request)); } +StatusOr +SecurityCenterTracingConnection::BulkMuteFindings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& request) { + auto span = internal::MakeSpan( + "securitycenter_v1::SecurityCenterConnection::BulkMuteFindings"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BulkMuteFindings(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SecurityCenterTracingConnection::BulkMuteFindings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "securitycenter_v1::SecurityCenterConnection::BulkMuteFindings"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BulkMuteFindings(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SecurityCenterTracingConnection::CreateSecurityHealthAnalyticsCustomModule( google::cloud::securitycenter::v1:: @@ -350,6 +374,31 @@ SecurityCenterTracingConnection::RunAssetDiscovery( return internal::EndSpan(std::move(span), child_->RunAssetDiscovery(request)); } +StatusOr +SecurityCenterTracingConnection::RunAssetDiscovery( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& + request) { + auto span = internal::MakeSpan( + "securitycenter_v1::SecurityCenterConnection::RunAssetDiscovery"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RunAssetDiscovery(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SecurityCenterTracingConnection::RunAssetDiscovery( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "securitycenter_v1::SecurityCenterConnection::RunAssetDiscovery"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RunAssetDiscovery(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SecurityCenterTracingConnection::SetFindingState( google::cloud::securitycenter::v1::SetFindingStateRequest const& request) { diff --git a/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.h b/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.h index 2e33b5341cf3c..cb7402f14590c 100644 --- a/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.h +++ b/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.h @@ -45,6 +45,15 @@ class SecurityCenterTracingConnection google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& request) override; + StatusOr BulkMuteFindings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& request) + override; + + future> + BulkMuteFindings(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr< google::cloud::securitycenter::v1::SecurityHealthAnalyticsCustomModule> CreateSecurityHealthAnalyticsCustomModule( @@ -174,6 +183,15 @@ class SecurityCenterTracingConnection google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& request) override; + StatusOr RunAssetDiscovery( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& + request) override; + + future> + RunAssetDiscovery(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr SetFindingState( google::cloud::securitycenter::v1::SetFindingStateRequest const& request) override; diff --git a/google/cloud/securitycenter/v1/mocks/mock_security_center_connection.h b/google/cloud/securitycenter/v1/mocks/mock_security_center_connection.h index 820dd3fb81361..ce7475a5e1ebd 100644 --- a/google/cloud/securitycenter/v1/mocks/mock_security_center_connection.h +++ b/google/cloud/securitycenter/v1/mocks/mock_security_center_connection.h @@ -54,6 +54,19 @@ class MockSecurityCenterConnection request), (override)); + MOCK_METHOD(StatusOr, BulkMuteFindings, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + BulkMuteFindings, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, @@ -224,6 +237,21 @@ class MockSecurityCenterConnection request), (override)); + MOCK_METHOD( + StatusOr, RunAssetDiscovery, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + RunAssetDiscovery, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, SetFindingState, (google::cloud::securitycenter::v1::SetFindingStateRequest const& diff --git a/google/cloud/securitycenter/v1/security_center_connection.cc b/google/cloud/securitycenter/v1/security_center_connection.cc index c06ae8d0c2ead..9457c37c93c57 100644 --- a/google/cloud/securitycenter/v1/security_center_connection.cc +++ b/google/cloud/securitycenter/v1/security_center_connection.cc @@ -46,6 +46,22 @@ SecurityCenterConnection::BulkMuteFindings( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SecurityCenterConnection::BulkMuteFindings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v1::BulkMuteFindingsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SecurityCenterConnection::BulkMuteFindings( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SecurityCenterConnection::CreateSecurityHealthAnalyticsCustomModule( google::cloud::securitycenter::v1:: @@ -241,6 +257,22 @@ SecurityCenterConnection::RunAssetDiscovery( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SecurityCenterConnection::RunAssetDiscovery( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SecurityCenterConnection::RunAssetDiscovery( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SecurityCenterConnection::SetFindingState( google::cloud::securitycenter::v1::SetFindingStateRequest const&) { diff --git a/google/cloud/securitycenter/v1/security_center_connection.h b/google/cloud/securitycenter/v1/security_center_connection.h index 62e490f5dd02b..efc04d7591236 100644 --- a/google/cloud/securitycenter/v1/security_center_connection.h +++ b/google/cloud/securitycenter/v1/security_center_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/securitycenter/v1/internal/security_center_retry_traits.h" #include "google/cloud/securitycenter/v1/security_center_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -191,6 +193,16 @@ class SecurityCenterConnection { google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& request); + virtual StatusOr BulkMuteFindings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& + request); + + virtual future< + StatusOr> + BulkMuteFindings(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::cloud::securitycenter::v1::SecurityHealthAnalyticsCustomModule> CreateSecurityHealthAnalyticsCustomModule( @@ -313,6 +325,16 @@ class SecurityCenterConnection { google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& request); + virtual StatusOr RunAssetDiscovery( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& + request); + + virtual future< + StatusOr> + RunAssetDiscovery(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr SetFindingState( google::cloud::securitycenter::v1::SetFindingStateRequest const& request); diff --git a/google/cloud/securitycenter/v2/internal/security_center_connection_impl.cc b/google/cloud/securitycenter/v2/internal/security_center_connection_impl.cc index 70bd08fc11b2e..eb05a1fcc0ad7 100644 --- a/google/cloud/securitycenter/v2/internal/security_center_connection_impl.cc +++ b/google/cloud/securitycenter/v2/internal/security_center_connection_impl.cc @@ -125,6 +125,59 @@ SecurityCenterConnectionImpl::BulkMuteFindings( polling_policy(*current), __func__); } +StatusOr +SecurityCenterConnectionImpl::BulkMuteFindings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BulkMuteFindings(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& + request) { + return stub_->BulkMuteFindings(context, options, request); + }, + *current, request, __func__); +} + +future> +SecurityCenterConnectionImpl::BulkMuteFindings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata().Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to BulkMuteFindings", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::securitycenter::v2::BulkMuteFindingsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::securitycenter::v2::BulkMuteFindingsResponse>, + polling_policy(*current), __func__); +} + StatusOr SecurityCenterConnectionImpl::CreateBigQueryExport( google::cloud::securitycenter::v2::CreateBigQueryExportRequest const& diff --git a/google/cloud/securitycenter/v2/internal/security_center_connection_impl.h b/google/cloud/securitycenter/v2/internal/security_center_connection_impl.h index 87f828a0bdad1..279231af92935 100644 --- a/google/cloud/securitycenter/v2/internal/security_center_connection_impl.h +++ b/google/cloud/securitycenter/v2/internal/security_center_connection_impl.h @@ -63,6 +63,15 @@ class SecurityCenterConnectionImpl google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& request) override; + StatusOr BulkMuteFindings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& request) + override; + + future> + BulkMuteFindings(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateBigQueryExport( google::cloud::securitycenter::v2::CreateBigQueryExportRequest const& diff --git a/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.cc b/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.cc index 572ca96c38be8..1e6a072d3dfd5 100644 --- a/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.cc +++ b/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.cc @@ -55,6 +55,30 @@ SecurityCenterTracingConnection::BulkMuteFindings( return internal::EndSpan(std::move(span), child_->BulkMuteFindings(request)); } +StatusOr +SecurityCenterTracingConnection::BulkMuteFindings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& request) { + auto span = internal::MakeSpan( + "securitycenter_v2::SecurityCenterConnection::BulkMuteFindings"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BulkMuteFindings(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SecurityCenterTracingConnection::BulkMuteFindings( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "securitycenter_v2::SecurityCenterConnection::BulkMuteFindings"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BulkMuteFindings(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SecurityCenterTracingConnection::CreateBigQueryExport( google::cloud::securitycenter::v2::CreateBigQueryExportRequest const& diff --git a/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.h b/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.h index d67e8af2862ac..666dc46490ab4 100644 --- a/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.h +++ b/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.h @@ -51,6 +51,15 @@ class SecurityCenterTracingConnection google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& request) override; + StatusOr BulkMuteFindings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& request) + override; + + future> + BulkMuteFindings(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateBigQueryExport( google::cloud::securitycenter::v2::CreateBigQueryExportRequest const& diff --git a/google/cloud/securitycenter/v2/mocks/mock_security_center_connection.h b/google/cloud/securitycenter/v2/mocks/mock_security_center_connection.h index 1e91dfd7e2ca9..41a3d0ddd6bb5 100644 --- a/google/cloud/securitycenter/v2/mocks/mock_security_center_connection.h +++ b/google/cloud/securitycenter/v2/mocks/mock_security_center_connection.h @@ -61,6 +61,19 @@ class MockSecurityCenterConnection request), (override)); + MOCK_METHOD(StatusOr, BulkMuteFindings, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + BulkMuteFindings, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CreateBigQueryExport, diff --git a/google/cloud/securitycenter/v2/security_center_connection.cc b/google/cloud/securitycenter/v2/security_center_connection.cc index 6512b5f4071fd..d0672b5c754d4 100644 --- a/google/cloud/securitycenter/v2/security_center_connection.cc +++ b/google/cloud/securitycenter/v2/security_center_connection.cc @@ -54,6 +54,22 @@ SecurityCenterConnection::BulkMuteFindings( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +SecurityCenterConnection::BulkMuteFindings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v2::BulkMuteFindingsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SecurityCenterConnection::BulkMuteFindings( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SecurityCenterConnection::CreateBigQueryExport( google::cloud::securitycenter::v2::CreateBigQueryExportRequest const&) { diff --git a/google/cloud/securitycenter/v2/security_center_connection.h b/google/cloud/securitycenter/v2/security_center_connection.h index 63bb531682f14..140a9cd4c1ba6 100644 --- a/google/cloud/securitycenter/v2/security_center_connection.h +++ b/google/cloud/securitycenter/v2/security_center_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/securitycenter/v2/internal/security_center_retry_traits.h" #include "google/cloud/securitycenter/v2/security_center_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -197,6 +199,16 @@ class SecurityCenterConnection { google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& request); + virtual StatusOr BulkMuteFindings( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& + request); + + virtual future< + StatusOr> + BulkMuteFindings(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateBigQueryExport( google::cloud::securitycenter::v2::CreateBigQueryExportRequest const& diff --git a/google/cloud/securitycentermanagement/v1/security_center_management_connection.h b/google/cloud/securitycentermanagement/v1/security_center_management_connection.h index f023e6a4fde3d..79ca1fefb607a 100644 --- a/google/cloud/securitycentermanagement/v1/security_center_management_connection.h +++ b/google/cloud/securitycentermanagement/v1/security_center_management_connection.h @@ -22,7 +22,9 @@ #include "google/cloud/securitycentermanagement/v1/internal/security_center_management_retry_traits.h" #include "google/cloud/securitycentermanagement/v1/security_center_management_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/servicecontrol/v1/quota_controller_connection.h b/google/cloud/servicecontrol/v1/quota_controller_connection.h index 9e8f65c30f43d..ce6c4eaf10873 100644 --- a/google/cloud/servicecontrol/v1/quota_controller_connection.h +++ b/google/cloud/servicecontrol/v1/quota_controller_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/servicecontrol/v1/internal/quota_controller_retry_traits.h" #include "google/cloud/servicecontrol/v1/quota_controller_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/servicecontrol/v1/service_controller_connection.h b/google/cloud/servicecontrol/v1/service_controller_connection.h index 5475e099a3396..0924ce85bc165 100644 --- a/google/cloud/servicecontrol/v1/service_controller_connection.h +++ b/google/cloud/servicecontrol/v1/service_controller_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/servicecontrol/v1/internal/service_controller_retry_traits.h" #include "google/cloud/servicecontrol/v1/service_controller_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/servicecontrol/v2/service_controller_connection.h b/google/cloud/servicecontrol/v2/service_controller_connection.h index 1cfbdfd836578..4b67c0161e93b 100644 --- a/google/cloud/servicecontrol/v2/service_controller_connection.h +++ b/google/cloud/servicecontrol/v2/service_controller_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/servicecontrol/v2/internal/service_controller_retry_traits.h" #include "google/cloud/servicecontrol/v2/service_controller_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/servicedirectory/v1/lookup_connection.h b/google/cloud/servicedirectory/v1/lookup_connection.h index 4370b41e76d49..e0cb45154de5a 100644 --- a/google/cloud/servicedirectory/v1/lookup_connection.h +++ b/google/cloud/servicedirectory/v1/lookup_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/servicedirectory/v1/internal/lookup_retry_traits.h" #include "google/cloud/servicedirectory/v1/lookup_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/servicedirectory/v1/registration_connection.h b/google/cloud/servicedirectory/v1/registration_connection.h index de5c856664ca8..7809cedf058bf 100644 --- a/google/cloud/servicedirectory/v1/registration_connection.h +++ b/google/cloud/servicedirectory/v1/registration_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/servicedirectory/v1/internal/registration_retry_traits.h" #include "google/cloud/servicedirectory/v1/registration_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/servicehealth/v1/service_health_connection.h b/google/cloud/servicehealth/v1/service_health_connection.h index 20daebad87d19..3800541f4cc34 100644 --- a/google/cloud/servicehealth/v1/service_health_connection.h +++ b/google/cloud/servicehealth/v1/service_health_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/servicehealth/v1/internal/service_health_retry_traits.h" #include "google/cloud/servicehealth/v1/service_health_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.cc b/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.cc index 204f33009b5db..1de32667ace3d 100644 --- a/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.cc +++ b/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.cc @@ -158,6 +158,61 @@ ServiceManagerConnectionImpl::CreateService( polling_policy(*current), __func__); } +StatusOr +ServiceManagerConnectionImpl::CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::CreateServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateService(request), + [this](grpc::ClientContext& context, Options const& options, + google::api::servicemanagement::v1::CreateServiceRequest const& + request) { + return stub_->CreateService(context, options, request); + }, + *current, request, __func__); +} + +future> +ServiceManagerConnectionImpl::CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::api::servicemanagement::v1::ManagedService>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::api::servicemanagement::v1::ManagedService>, + polling_policy(*current), __func__); +} + future> ServiceManagerConnectionImpl::DeleteService( google::api::servicemanagement::v1::DeleteServiceRequest const& request) { @@ -198,6 +253,61 @@ ServiceManagerConnectionImpl::DeleteService( polling_policy(*current), __func__); } +StatusOr +ServiceManagerConnectionImpl::DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::DeleteServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteService(request), + [this](grpc::ClientContext& context, Options const& options, + google::api::servicemanagement::v1::DeleteServiceRequest const& + request) { + return stub_->DeleteService(context, options, request); + }, + *current, request, __func__); +} + +future> +ServiceManagerConnectionImpl::DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::api::servicemanagement::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::api::servicemanagement::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> ServiceManagerConnectionImpl::UndeleteService( google::api::servicemanagement::v1::UndeleteServiceRequest const& request) { @@ -238,6 +348,61 @@ ServiceManagerConnectionImpl::UndeleteService( polling_policy(*current), __func__); } +StatusOr +ServiceManagerConnectionImpl::UndeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::UndeleteServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UndeleteService(request), + [this](grpc::ClientContext& context, Options const& options, + google::api::servicemanagement::v1::UndeleteServiceRequest const& + request) { + return stub_->UndeleteService(context, options, request); + }, + *current, request, __func__); +} + +future> +ServiceManagerConnectionImpl::UndeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UndeleteService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::api::servicemanagement::v1::UndeleteServiceResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::api::servicemanagement::v1::UndeleteServiceResponse>, + polling_policy(*current), __func__); +} + StreamRange ServiceManagerConnectionImpl::ListServiceConfigs( google::api::servicemanagement::v1::ListServiceConfigsRequest request) { @@ -345,6 +510,63 @@ ServiceManagerConnectionImpl::SubmitConfigSource( polling_policy(*current), __func__); } +StatusOr +ServiceManagerConnectionImpl::SubmitConfigSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::SubmitConfigSourceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SubmitConfigSource(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::api::servicemanagement::v1::SubmitConfigSourceRequest const& + request) { + return stub_->SubmitConfigSource(context, options, request); + }, + *current, request, __func__); +} + +future> +ServiceManagerConnectionImpl::SubmitConfigSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to SubmitConfigSource", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::api::servicemanagement::v1::SubmitConfigSourceResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::api::servicemanagement::v1::SubmitConfigSourceResponse>, + polling_policy(*current), __func__); +} + StreamRange ServiceManagerConnectionImpl::ListServiceRollouts( google::api::servicemanagement::v1::ListServiceRolloutsRequest request) { @@ -437,6 +659,63 @@ ServiceManagerConnectionImpl::CreateServiceRollout( polling_policy(*current), __func__); } +StatusOr +ServiceManagerConnectionImpl::CreateServiceRollout( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::CreateServiceRolloutRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateServiceRollout(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::api::servicemanagement::v1::CreateServiceRolloutRequest const& + request) { + return stub_->CreateServiceRollout(context, options, request); + }, + *current, request, __func__); +} + +future> +ServiceManagerConnectionImpl::CreateServiceRollout( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateServiceRollout", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::api::servicemanagement::v1::Rollout>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::api::servicemanagement::v1::Rollout>, + polling_policy(*current), __func__); +} + StatusOr ServiceManagerConnectionImpl::GenerateConfigReport( google::api::servicemanagement::v1::GenerateConfigReportRequest const& diff --git a/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.h b/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.h index 03fe775358d91..7f07a4f29e4a7 100644 --- a/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.h +++ b/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.h @@ -63,15 +63,42 @@ class ServiceManagerConnectionImpl CreateService(google::api::servicemanagement::v1::CreateServiceRequest const& request) override; + StatusOr CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::CreateServiceRequest const& request) + override; + + future> + CreateService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteService(google::api::servicemanagement::v1::DeleteServiceRequest const& request) override; + StatusOr DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::DeleteServiceRequest const& request) + override; + + future> + DeleteService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeleteService( google::api::servicemanagement::v1::UndeleteServiceRequest const& request) override; + StatusOr UndeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::UndeleteServiceRequest const& request) + override; + + future> + UndeleteService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListServiceConfigs( google::api::servicemanagement::v1::ListServiceConfigsRequest request) override; @@ -90,6 +117,16 @@ class ServiceManagerConnectionImpl google::api::servicemanagement::v1::SubmitConfigSourceRequest const& request) override; + StatusOr SubmitConfigSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::SubmitConfigSourceRequest const& + request) override; + + future< + StatusOr> + SubmitConfigSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListServiceRollouts( google::api::servicemanagement::v1::ListServiceRolloutsRequest request) override; @@ -103,6 +140,16 @@ class ServiceManagerConnectionImpl google::api::servicemanagement::v1::CreateServiceRolloutRequest const& request) override; + StatusOr CreateServiceRollout( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::CreateServiceRolloutRequest const& + request) override; + + future> + CreateServiceRollout( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GenerateConfigReport( google::api::servicemanagement::v1::GenerateConfigReportRequest const& diff --git a/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.cc b/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.cc index 0c42b1595c5dc..d7a40262c7eb0 100644 --- a/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.cc +++ b/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.cc @@ -63,6 +63,30 @@ ServiceManagerTracingConnection::CreateService( return internal::EndSpan(std::move(span), child_->CreateService(request)); } +StatusOr +ServiceManagerTracingConnection::CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::CreateServiceRequest const& request) { + auto span = internal::MakeSpan( + "servicemanagement_v1::ServiceManagerConnection::CreateService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ServiceManagerTracingConnection::CreateService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "servicemanagement_v1::ServiceManagerConnection::CreateService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateService(google::cloud::ExperimentalTag{}, operation)); +} + future> ServiceManagerTracingConnection::DeleteService( google::api::servicemanagement::v1::DeleteServiceRequest const& request) { @@ -72,6 +96,30 @@ ServiceManagerTracingConnection::DeleteService( return internal::EndSpan(std::move(span), child_->DeleteService(request)); } +StatusOr +ServiceManagerTracingConnection::DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::DeleteServiceRequest const& request) { + auto span = internal::MakeSpan( + "servicemanagement_v1::ServiceManagerConnection::DeleteService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ServiceManagerTracingConnection::DeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "servicemanagement_v1::ServiceManagerConnection::DeleteService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteService(google::cloud::ExperimentalTag{}, operation)); +} + future> ServiceManagerTracingConnection::UndeleteService( google::api::servicemanagement::v1::UndeleteServiceRequest const& request) { @@ -81,6 +129,30 @@ ServiceManagerTracingConnection::UndeleteService( return internal::EndSpan(std::move(span), child_->UndeleteService(request)); } +StatusOr +ServiceManagerTracingConnection::UndeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::UndeleteServiceRequest const& request) { + auto span = internal::MakeSpan( + "servicemanagement_v1::ServiceManagerConnection::UndeleteService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UndeleteService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ServiceManagerTracingConnection::UndeleteService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "servicemanagement_v1::ServiceManagerConnection::UndeleteService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UndeleteService(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ServiceManagerTracingConnection::ListServiceConfigs( google::api::servicemanagement::v1::ListServiceConfigsRequest request) { @@ -123,6 +195,31 @@ ServiceManagerTracingConnection::SubmitConfigSource( child_->SubmitConfigSource(request)); } +StatusOr +ServiceManagerTracingConnection::SubmitConfigSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::SubmitConfigSourceRequest const& + request) { + auto span = internal::MakeSpan( + "servicemanagement_v1::ServiceManagerConnection::SubmitConfigSource"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SubmitConfigSource(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ServiceManagerTracingConnection::SubmitConfigSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "servicemanagement_v1::ServiceManagerConnection::SubmitConfigSource"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SubmitConfigSource(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange ServiceManagerTracingConnection::ListServiceRollouts( google::api::servicemanagement::v1::ListServiceRolloutsRequest request) { @@ -156,6 +253,31 @@ ServiceManagerTracingConnection::CreateServiceRollout( child_->CreateServiceRollout(request)); } +StatusOr +ServiceManagerTracingConnection::CreateServiceRollout( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::CreateServiceRolloutRequest const& + request) { + auto span = internal::MakeSpan( + "servicemanagement_v1::ServiceManagerConnection::CreateServiceRollout"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateServiceRollout( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ServiceManagerTracingConnection::CreateServiceRollout( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "servicemanagement_v1::ServiceManagerConnection::CreateServiceRollout"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateServiceRollout( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ServiceManagerTracingConnection::GenerateConfigReport( google::api::servicemanagement::v1::GenerateConfigReportRequest const& diff --git a/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.h b/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.h index 865d7585f973c..daec7a72440ee 100644 --- a/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.h +++ b/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.h @@ -51,15 +51,42 @@ class ServiceManagerTracingConnection CreateService(google::api::servicemanagement::v1::CreateServiceRequest const& request) override; + StatusOr CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::CreateServiceRequest const& request) + override; + + future> + CreateService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteService(google::api::servicemanagement::v1::DeleteServiceRequest const& request) override; + StatusOr DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::DeleteServiceRequest const& request) + override; + + future> + DeleteService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeleteService( google::api::servicemanagement::v1::UndeleteServiceRequest const& request) override; + StatusOr UndeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::UndeleteServiceRequest const& request) + override; + + future> + UndeleteService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListServiceConfigs( google::api::servicemanagement::v1::ListServiceConfigsRequest request) override; @@ -78,6 +105,16 @@ class ServiceManagerTracingConnection google::api::servicemanagement::v1::SubmitConfigSourceRequest const& request) override; + StatusOr SubmitConfigSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::SubmitConfigSourceRequest const& + request) override; + + future< + StatusOr> + SubmitConfigSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListServiceRollouts( google::api::servicemanagement::v1::ListServiceRolloutsRequest request) override; @@ -91,6 +128,16 @@ class ServiceManagerTracingConnection google::api::servicemanagement::v1::CreateServiceRolloutRequest const& request) override; + StatusOr CreateServiceRollout( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::CreateServiceRolloutRequest const& + request) override; + + future> + CreateServiceRollout( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GenerateConfigReport( google::api::servicemanagement::v1::GenerateConfigReportRequest const& diff --git a/google/cloud/servicemanagement/v1/mocks/mock_service_manager_connection.h b/google/cloud/servicemanagement/v1/mocks/mock_service_manager_connection.h index ae5aa5c84bef3..26e8fc9648823 100644 --- a/google/cloud/servicemanagement/v1/mocks/mock_service_manager_connection.h +++ b/google/cloud/servicemanagement/v1/mocks/mock_service_manager_connection.h @@ -63,12 +63,38 @@ class MockServiceManagerConnection (google::api::servicemanagement::v1::CreateServiceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::CreateServiceRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteService, (google::api::servicemanagement::v1::DeleteServiceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::DeleteServiceRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UndeleteService, @@ -76,6 +102,19 @@ class MockServiceManagerConnection request), (override)); + MOCK_METHOD(StatusOr, UndeleteService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::UndeleteServiceRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UndeleteService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListServiceConfigs, (google::api::servicemanagement::v1::ListServiceConfigsRequest request), @@ -101,6 +140,21 @@ class MockServiceManagerConnection request), (override)); + MOCK_METHOD( + StatusOr, SubmitConfigSource, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::SubmitConfigSourceRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + SubmitConfigSource, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListServiceRollouts, @@ -120,6 +174,19 @@ class MockServiceManagerConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateServiceRollout, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::CreateServiceRolloutRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateServiceRollout, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr< google::api::servicemanagement::v1::GenerateConfigReportResponse>, diff --git a/google/cloud/servicemanagement/v1/service_manager_connection.cc b/google/cloud/servicemanagement/v1/service_manager_connection.cc index 8a1b2fcbfbcb7..55e9818ef415f 100644 --- a/google/cloud/servicemanagement/v1/service_manager_connection.cc +++ b/google/cloud/servicemanagement/v1/service_manager_connection.cc @@ -60,6 +60,22 @@ ServiceManagerConnection::CreateService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ServiceManagerConnection::CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::CreateServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ServiceManagerConnection::CreateService(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ServiceManagerConnection::DeleteService( google::api::servicemanagement::v1::DeleteServiceRequest const&) { @@ -68,6 +84,22 @@ ServiceManagerConnection::DeleteService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ServiceManagerConnection::DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::DeleteServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ServiceManagerConnection::DeleteService(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ServiceManagerConnection::UndeleteService( google::api::servicemanagement::v1::UndeleteServiceRequest const&) { @@ -76,6 +108,22 @@ ServiceManagerConnection::UndeleteService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ServiceManagerConnection::UndeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::UndeleteServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ServiceManagerConnection::UndeleteService( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ServiceManagerConnection::ListServiceConfigs( google::api::servicemanagement::v1:: ListServiceConfigsRequest) { // NOLINT(performance-unnecessary-value-param) @@ -101,6 +149,22 @@ ServiceManagerConnection::SubmitConfigSource( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ServiceManagerConnection::SubmitConfigSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::SubmitConfigSourceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ServiceManagerConnection::SubmitConfigSource( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange ServiceManagerConnection::ListServiceRollouts( google::api::servicemanagement::v1:: @@ -123,6 +187,22 @@ ServiceManagerConnection::CreateServiceRollout( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ServiceManagerConnection::CreateServiceRollout( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::CreateServiceRolloutRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ServiceManagerConnection::CreateServiceRollout( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ServiceManagerConnection::GenerateConfigReport( google::api::servicemanagement::v1::GenerateConfigReportRequest const&) { diff --git a/google/cloud/servicemanagement/v1/service_manager_connection.h b/google/cloud/servicemanagement/v1/service_manager_connection.h index e679bf9aa8508..a5f2d46ac82d4 100644 --- a/google/cloud/servicemanagement/v1/service_manager_connection.h +++ b/google/cloud/servicemanagement/v1/service_manager_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/servicemanagement/v1/internal/service_manager_retry_traits.h" #include "google/cloud/servicemanagement/v1/service_manager_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -196,17 +198,44 @@ class ServiceManagerConnection { CreateService( google::api::servicemanagement::v1::CreateServiceRequest const& request); + virtual StatusOr CreateService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::CreateServiceRequest const& request); + + virtual future> + CreateService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteService( google::api::servicemanagement::v1::DeleteServiceRequest const& request); + virtual StatusOr DeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::DeleteServiceRequest const& request); + + virtual future< + StatusOr> + DeleteService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UndeleteService( google::api::servicemanagement::v1::UndeleteServiceRequest const& request); + virtual StatusOr UndeleteService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::UndeleteServiceRequest const& + request); + + virtual future< + StatusOr> + UndeleteService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListServiceConfigs( google::api::servicemanagement::v1::ListServiceConfigsRequest request); @@ -224,6 +253,16 @@ class ServiceManagerConnection { google::api::servicemanagement::v1::SubmitConfigSourceRequest const& request); + virtual StatusOr SubmitConfigSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::SubmitConfigSourceRequest const& + request); + + virtual future< + StatusOr> + SubmitConfigSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListServiceRollouts( google::api::servicemanagement::v1::ListServiceRolloutsRequest request); @@ -238,6 +277,15 @@ class ServiceManagerConnection { google::api::servicemanagement::v1::CreateServiceRolloutRequest const& request); + virtual StatusOr CreateServiceRollout( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::servicemanagement::v1::CreateServiceRolloutRequest const& + request); + + virtual future> + CreateServiceRollout(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr< google::api::servicemanagement::v1::GenerateConfigReportResponse> GenerateConfigReport( diff --git a/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.cc b/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.cc index 8c99196d2d2fc..82025c0821bbb 100644 --- a/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.cc +++ b/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.cc @@ -105,6 +105,60 @@ ServiceUsageConnectionImpl::EnableService( polling_policy(*current), __func__); } +StatusOr +ServiceUsageConnectionImpl::EnableService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::EnableServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->EnableService(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::api::serviceusage::v1::EnableServiceRequest const& request) { + return stub_->EnableService(context, options, request); + }, + *current, request, __func__); +} + +future> +ServiceUsageConnectionImpl::EnableService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to EnableService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::api::serviceusage::v1::EnableServiceResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::api::serviceusage::v1::EnableServiceResponse>, + polling_policy(*current), __func__); +} + future> ServiceUsageConnectionImpl::DisableService( google::api::serviceusage::v1::DisableServiceRequest const& request) { @@ -144,6 +198,60 @@ ServiceUsageConnectionImpl::DisableService( polling_policy(*current), __func__); } +StatusOr +ServiceUsageConnectionImpl::DisableService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::DisableServiceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DisableService(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::api::serviceusage::v1::DisableServiceRequest const& request) { + return stub_->DisableService(context, options, request); + }, + *current, request, __func__); +} + +future> +ServiceUsageConnectionImpl::DisableService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DisableService", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::api::serviceusage::v1::DisableServiceResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::api::serviceusage::v1::DisableServiceResponse>, + polling_policy(*current), __func__); +} + StatusOr ServiceUsageConnectionImpl::GetService( google::api::serviceusage::v1::GetServiceRequest const& request) { @@ -232,6 +340,60 @@ ServiceUsageConnectionImpl::BatchEnableServices( polling_policy(*current), __func__); } +StatusOr +ServiceUsageConnectionImpl::BatchEnableServices( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::BatchEnableServicesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchEnableServices(request), + [this](grpc::ClientContext& context, Options const& options, + google::api::serviceusage::v1::BatchEnableServicesRequest const& + request) { + return stub_->BatchEnableServices(context, options, request); + }, + *current, request, __func__); +} + +future> +ServiceUsageConnectionImpl::BatchEnableServices( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to BatchEnableServices", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::api::serviceusage::v1::BatchEnableServicesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::api::serviceusage::v1::BatchEnableServicesResponse>, + polling_policy(*current), __func__); +} + StatusOr ServiceUsageConnectionImpl::BatchGetServices( google::api::serviceusage::v1::BatchGetServicesRequest const& request) { diff --git a/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.h b/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.h index 8dd6b38798599..aae94c4083f1a 100644 --- a/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.h +++ b/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.h @@ -56,10 +56,28 @@ class ServiceUsageConnectionImpl EnableService(google::api::serviceusage::v1::EnableServiceRequest const& request) override; + StatusOr EnableService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::EnableServiceRequest const& request) + override; + + future> + EnableService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DisableService(google::api::serviceusage::v1::DisableServiceRequest const& request) override; + StatusOr DisableService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::DisableServiceRequest const& request) + override; + + future> + DisableService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetService( google::api::serviceusage::v1::GetServiceRequest const& request) override; @@ -71,6 +89,15 @@ class ServiceUsageConnectionImpl google::api::serviceusage::v1::BatchEnableServicesRequest const& request) override; + StatusOr BatchEnableServices( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::BatchEnableServicesRequest const& request) + override; + + future> + BatchEnableServices(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr BatchGetServices(google::api::serviceusage::v1::BatchGetServicesRequest const& request) override; diff --git a/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.cc b/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.cc index 804523f1fc3ec..d57d8f479492e 100644 --- a/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.cc +++ b/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.cc @@ -42,6 +42,30 @@ ServiceUsageTracingConnection::EnableService( return internal::EndSpan(std::move(span), child_->EnableService(request)); } +StatusOr +ServiceUsageTracingConnection::EnableService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::EnableServiceRequest const& request) { + auto span = internal::MakeSpan( + "serviceusage_v1::ServiceUsageConnection::EnableService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->EnableService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ServiceUsageTracingConnection::EnableService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "serviceusage_v1::ServiceUsageConnection::EnableService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->EnableService(google::cloud::ExperimentalTag{}, operation)); +} + future> ServiceUsageTracingConnection::DisableService( google::api::serviceusage::v1::DisableServiceRequest const& request) { @@ -51,6 +75,30 @@ ServiceUsageTracingConnection::DisableService( return internal::EndSpan(std::move(span), child_->DisableService(request)); } +StatusOr +ServiceUsageTracingConnection::DisableService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::DisableServiceRequest const& request) { + auto span = internal::MakeSpan( + "serviceusage_v1::ServiceUsageConnection::DisableService"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DisableService(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ServiceUsageTracingConnection::DisableService( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "serviceusage_v1::ServiceUsageConnection::DisableService"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DisableService(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ServiceUsageTracingConnection::GetService( google::api::serviceusage::v1::GetServiceRequest const& request) { @@ -81,6 +129,30 @@ ServiceUsageTracingConnection::BatchEnableServices( child_->BatchEnableServices(request)); } +StatusOr +ServiceUsageTracingConnection::BatchEnableServices( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::BatchEnableServicesRequest const& request) { + auto span = internal::MakeSpan( + "serviceusage_v1::ServiceUsageConnection::BatchEnableServices"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BatchEnableServices(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ServiceUsageTracingConnection::BatchEnableServices( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "serviceusage_v1::ServiceUsageConnection::BatchEnableServices"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BatchEnableServices(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr ServiceUsageTracingConnection::BatchGetServices( google::api::serviceusage::v1::BatchGetServicesRequest const& request) { diff --git a/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.h b/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.h index ead06d964cc5a..093b5ca616bc6 100644 --- a/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.h +++ b/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.h @@ -44,10 +44,28 @@ class ServiceUsageTracingConnection EnableService(google::api::serviceusage::v1::EnableServiceRequest const& request) override; + StatusOr EnableService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::EnableServiceRequest const& request) + override; + + future> + EnableService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DisableService(google::api::serviceusage::v1::DisableServiceRequest const& request) override; + StatusOr DisableService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::DisableServiceRequest const& request) + override; + + future> + DisableService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetService( google::api::serviceusage::v1::GetServiceRequest const& request) override; @@ -59,6 +77,15 @@ class ServiceUsageTracingConnection google::api::serviceusage::v1::BatchEnableServicesRequest const& request) override; + StatusOr BatchEnableServices( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::BatchEnableServicesRequest const& request) + override; + + future> + BatchEnableServices(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr BatchGetServices(google::api::serviceusage::v1::BatchGetServicesRequest const& request) override; diff --git a/google/cloud/serviceusage/v1/mocks/mock_service_usage_connection.h b/google/cloud/serviceusage/v1/mocks/mock_service_usage_connection.h index 87a32a31a3c50..9818c12e337f7 100644 --- a/google/cloud/serviceusage/v1/mocks/mock_service_usage_connection.h +++ b/google/cloud/serviceusage/v1/mocks/mock_service_usage_connection.h @@ -53,12 +53,38 @@ class MockServiceUsageConnection (google::api::serviceusage::v1::EnableServiceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, EnableService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::EnableServiceRequest const& request), + (override)); + + MOCK_METHOD( + future>, + EnableService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DisableService, (google::api::serviceusage::v1::DisableServiceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DisableService, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::DisableServiceRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DisableService, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetService, (google::api::serviceusage::v1::GetServiceRequest const& request), (override)); @@ -76,6 +102,20 @@ class MockServiceUsageConnection request), (override)); + MOCK_METHOD(StatusOr, BatchEnableServices, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::BatchEnableServicesRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + BatchEnableServices, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, BatchGetServices, diff --git a/google/cloud/serviceusage/v1/service_usage_connection.cc b/google/cloud/serviceusage/v1/service_usage_connection.cc index 84bd3c025d75f..2ea9ed4b08285 100644 --- a/google/cloud/serviceusage/v1/service_usage_connection.cc +++ b/google/cloud/serviceusage/v1/service_usage_connection.cc @@ -46,6 +46,21 @@ ServiceUsageConnection::EnableService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ServiceUsageConnection::EnableService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::EnableServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ServiceUsageConnection::EnableService(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ServiceUsageConnection::DisableService( google::api::serviceusage::v1::DisableServiceRequest const&) { @@ -54,6 +69,21 @@ ServiceUsageConnection::DisableService( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ServiceUsageConnection::DisableService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::DisableServiceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ServiceUsageConnection::DisableService(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ServiceUsageConnection::GetService( google::api::serviceusage::v1::GetServiceRequest const&) { @@ -76,6 +106,22 @@ ServiceUsageConnection::BatchEnableServices( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ServiceUsageConnection::BatchEnableServices( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::BatchEnableServicesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ServiceUsageConnection::BatchEnableServices( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr ServiceUsageConnection::BatchGetServices( google::api::serviceusage::v1::BatchGetServicesRequest const&) { diff --git a/google/cloud/serviceusage/v1/service_usage_connection.h b/google/cloud/serviceusage/v1/service_usage_connection.h index 626d343846a1a..be9f9e1d412b7 100644 --- a/google/cloud/serviceusage/v1/service_usage_connection.h +++ b/google/cloud/serviceusage/v1/service_usage_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/serviceusage/v1/internal/service_usage_retry_traits.h" #include "google/cloud/serviceusage/v1/service_usage_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -189,11 +191,28 @@ class ServiceUsageConnection { EnableService( google::api::serviceusage::v1::EnableServiceRequest const& request); + virtual StatusOr EnableService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::EnableServiceRequest const& request); + + virtual future> + EnableService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DisableService( google::api::serviceusage::v1::DisableServiceRequest const& request); + virtual StatusOr DisableService( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::DisableServiceRequest const& request); + + virtual future< + StatusOr> + DisableService(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetService( google::api::serviceusage::v1::GetServiceRequest const& request); @@ -205,6 +224,15 @@ class ServiceUsageConnection { BatchEnableServices( google::api::serviceusage::v1::BatchEnableServicesRequest const& request); + virtual StatusOr BatchEnableServices( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::api::serviceusage::v1::BatchEnableServicesRequest const& request); + + virtual future< + StatusOr> + BatchEnableServices(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr BatchGetServices( google::api::serviceusage::v1::BatchGetServicesRequest const& request); diff --git a/google/cloud/shell/v1/cloud_shell_connection.cc b/google/cloud/shell/v1/cloud_shell_connection.cc index 11cf4edb3f839..bf92bf900d45c 100644 --- a/google/cloud/shell/v1/cloud_shell_connection.cc +++ b/google/cloud/shell/v1/cloud_shell_connection.cc @@ -51,6 +51,22 @@ CloudShellServiceConnection::StartEnvironment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudShellServiceConnection::StartEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::StartEnvironmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudShellServiceConnection::StartEnvironment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudShellServiceConnection::AuthorizeEnvironment( google::cloud::shell::v1::AuthorizeEnvironmentRequest const&) { @@ -59,6 +75,22 @@ CloudShellServiceConnection::AuthorizeEnvironment( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudShellServiceConnection::AuthorizeEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::AuthorizeEnvironmentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudShellServiceConnection::AuthorizeEnvironment( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudShellServiceConnection::AddPublicKey( google::cloud::shell::v1::AddPublicKeyRequest const&) { @@ -67,6 +99,22 @@ CloudShellServiceConnection::AddPublicKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudShellServiceConnection::AddPublicKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::AddPublicKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudShellServiceConnection::AddPublicKey( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> CloudShellServiceConnection::RemovePublicKey( google::cloud::shell::v1::RemovePublicKeyRequest const&) { @@ -75,6 +123,22 @@ CloudShellServiceConnection::RemovePublicKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +CloudShellServiceConnection::RemovePublicKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::RemovePublicKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +CloudShellServiceConnection::RemovePublicKey( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeCloudShellServiceConnection( Options options) { internal::CheckExpectedOptions StartEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::StartEnvironmentRequest const& request); + + virtual future> + StartEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> AuthorizeEnvironment( google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request); + virtual StatusOr AuthorizeEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request); + + virtual future< + StatusOr> + AuthorizeEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> AddPublicKey(google::cloud::shell::v1::AddPublicKeyRequest const& request); + virtual StatusOr AddPublicKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::AddPublicKeyRequest const& request); + + virtual future> + AddPublicKey(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> RemovePublicKey( google::cloud::shell::v1::RemovePublicKeyRequest const& request); + + virtual StatusOr RemovePublicKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::RemovePublicKeyRequest const& request); + + virtual future> + RemovePublicKey(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/shell/v1/internal/cloud_shell_connection_impl.cc b/google/cloud/shell/v1/internal/cloud_shell_connection_impl.cc index 09f999b348b9a..7de4cc0150502 100644 --- a/google/cloud/shell/v1/internal/cloud_shell_connection_impl.cc +++ b/google/cloud/shell/v1/internal/cloud_shell_connection_impl.cc @@ -116,6 +116,59 @@ CloudShellServiceConnectionImpl::StartEnvironment( polling_policy(*current), __func__); } +StatusOr +CloudShellServiceConnectionImpl::StartEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::StartEnvironmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartEnvironment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::shell::v1::StartEnvironmentRequest const& request) { + return stub_->StartEnvironment(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudShellServiceConnectionImpl::StartEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to StartEnvironment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::shell::v1::StartEnvironmentResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::shell::v1::StartEnvironmentResponse>, + polling_policy(*current), __func__); +} + future> CloudShellServiceConnectionImpl::AuthorizeEnvironment( google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request) { @@ -156,6 +209,61 @@ CloudShellServiceConnectionImpl::AuthorizeEnvironment( polling_policy(*current), __func__); } +StatusOr +CloudShellServiceConnectionImpl::AuthorizeEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AuthorizeEnvironment(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::shell::v1::AuthorizeEnvironmentRequest const& + request) { + return stub_->AuthorizeEnvironment(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudShellServiceConnectionImpl::AuthorizeEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to AuthorizeEnvironment", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::shell::v1::AuthorizeEnvironmentResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::shell::v1::AuthorizeEnvironmentResponse>, + polling_policy(*current), __func__); +} + future> CloudShellServiceConnectionImpl::AddPublicKey( google::cloud::shell::v1::AddPublicKeyRequest const& request) { @@ -195,6 +303,59 @@ CloudShellServiceConnectionImpl::AddPublicKey( polling_policy(*current), __func__); } +StatusOr +CloudShellServiceConnectionImpl::AddPublicKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::AddPublicKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddPublicKey(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::shell::v1::AddPublicKeyRequest const& request) { + return stub_->AddPublicKey(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudShellServiceConnectionImpl::AddPublicKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to AddPublicKey", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::shell::v1::AddPublicKeyResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::shell::v1::AddPublicKeyResponse>, + polling_policy(*current), __func__); +} + future> CloudShellServiceConnectionImpl::RemovePublicKey( google::cloud::shell::v1::RemovePublicKeyRequest const& request) { @@ -234,6 +395,59 @@ CloudShellServiceConnectionImpl::RemovePublicKey( polling_policy(*current), __func__); } +StatusOr +CloudShellServiceConnectionImpl::RemovePublicKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::RemovePublicKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemovePublicKey(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::shell::v1::RemovePublicKeyRequest const& request) { + return stub_->RemovePublicKey(context, options, request); + }, + *current, request, __func__); +} + +future> +CloudShellServiceConnectionImpl::RemovePublicKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RemovePublicKey", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::shell::v1::RemovePublicKeyResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::shell::v1::RemovePublicKeyResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace shell_v1_internal } // namespace cloud diff --git a/google/cloud/shell/v1/internal/cloud_shell_connection_impl.h b/google/cloud/shell/v1/internal/cloud_shell_connection_impl.h index 2c4ef9307aaab..30da6627a687d 100644 --- a/google/cloud/shell/v1/internal/cloud_shell_connection_impl.h +++ b/google/cloud/shell/v1/internal/cloud_shell_connection_impl.h @@ -58,18 +58,53 @@ class CloudShellServiceConnectionImpl StartEnvironment(google::cloud::shell::v1::StartEnvironmentRequest const& request) override; + StatusOr StartEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::StartEnvironmentRequest const& request) + override; + + future> + StartEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AuthorizeEnvironment( google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request) override; + StatusOr AuthorizeEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request) + override; + + future> + AuthorizeEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AddPublicKey( google::cloud::shell::v1::AddPublicKeyRequest const& request) override; + StatusOr AddPublicKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::AddPublicKeyRequest const& request) override; + + future> AddPublicKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RemovePublicKey( google::cloud::shell::v1::RemovePublicKeyRequest const& request) override; + StatusOr RemovePublicKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::RemovePublicKeyRequest const& request) override; + + future> + RemovePublicKey(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.cc b/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.cc index bfbab738cf97d..c31e336313033 100644 --- a/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.cc +++ b/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.cc @@ -50,6 +50,30 @@ CloudShellServiceTracingConnection::StartEnvironment( return internal::EndSpan(std::move(span), child_->StartEnvironment(request)); } +StatusOr +CloudShellServiceTracingConnection::StartEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::StartEnvironmentRequest const& request) { + auto span = internal::MakeSpan( + "shell_v1::CloudShellServiceConnection::StartEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StartEnvironment(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudShellServiceTracingConnection::StartEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "shell_v1::CloudShellServiceConnection::StartEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StartEnvironment(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudShellServiceTracingConnection::AuthorizeEnvironment( google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request) { @@ -60,6 +84,30 @@ CloudShellServiceTracingConnection::AuthorizeEnvironment( child_->AuthorizeEnvironment(request)); } +StatusOr +CloudShellServiceTracingConnection::AuthorizeEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request) { + auto span = internal::MakeSpan( + "shell_v1::CloudShellServiceConnection::AuthorizeEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->AuthorizeEnvironment( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudShellServiceTracingConnection::AuthorizeEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "shell_v1::CloudShellServiceConnection::AuthorizeEnvironment"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->AuthorizeEnvironment( + google::cloud::ExperimentalTag{}, operation)); +} + future> CloudShellServiceTracingConnection::AddPublicKey( google::cloud::shell::v1::AddPublicKeyRequest const& request) { @@ -69,6 +117,30 @@ CloudShellServiceTracingConnection::AddPublicKey( return internal::EndSpan(std::move(span), child_->AddPublicKey(request)); } +StatusOr +CloudShellServiceTracingConnection::AddPublicKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::AddPublicKeyRequest const& request) { + auto span = + internal::MakeSpan("shell_v1::CloudShellServiceConnection::AddPublicKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddPublicKey(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudShellServiceTracingConnection::AddPublicKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("shell_v1::CloudShellServiceConnection::AddPublicKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddPublicKey(google::cloud::ExperimentalTag{}, operation)); +} + future> CloudShellServiceTracingConnection::RemovePublicKey( google::cloud::shell::v1::RemovePublicKeyRequest const& request) { @@ -78,6 +150,30 @@ CloudShellServiceTracingConnection::RemovePublicKey( return internal::EndSpan(std::move(span), child_->RemovePublicKey(request)); } +StatusOr +CloudShellServiceTracingConnection::RemovePublicKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::RemovePublicKeyRequest const& request) { + auto span = internal::MakeSpan( + "shell_v1::CloudShellServiceConnection::RemovePublicKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RemovePublicKey(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +CloudShellServiceTracingConnection::RemovePublicKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "shell_v1::CloudShellServiceConnection::RemovePublicKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RemovePublicKey(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.h b/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.h index 3ce57a9ed9696..f23f338a3e6a9 100644 --- a/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.h +++ b/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.h @@ -47,18 +47,53 @@ class CloudShellServiceTracingConnection StartEnvironment(google::cloud::shell::v1::StartEnvironmentRequest const& request) override; + StatusOr StartEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::StartEnvironmentRequest const& request) + override; + + future> + StartEnvironment(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AuthorizeEnvironment( google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request) override; + StatusOr AuthorizeEnvironment( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request) + override; + + future> + AuthorizeEnvironment( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AddPublicKey( google::cloud::shell::v1::AddPublicKeyRequest const& request) override; + StatusOr AddPublicKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::AddPublicKeyRequest const& request) override; + + future> AddPublicKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RemovePublicKey( google::cloud::shell::v1::RemovePublicKeyRequest const& request) override; + StatusOr RemovePublicKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::RemovePublicKeyRequest const& request) override; + + future> + RemovePublicKey(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/shell/v1/mocks/mock_cloud_shell_connection.h b/google/cloud/shell/v1/mocks/mock_cloud_shell_connection.h index d10ed3db8a2a4..73e5d302034be 100644 --- a/google/cloud/shell/v1/mocks/mock_cloud_shell_connection.h +++ b/google/cloud/shell/v1/mocks/mock_cloud_shell_connection.h @@ -57,22 +57,71 @@ class MockCloudShellServiceConnection (google::cloud::shell::v1::StartEnvironmentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, StartEnvironment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::StartEnvironmentRequest const& request), + (override)); + + MOCK_METHOD( + future>, + StartEnvironment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, AuthorizeEnvironment, (google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request), (override)); + MOCK_METHOD( + StatusOr, AuthorizeEnvironment, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request), + (override)); + + MOCK_METHOD( + future>, + AuthorizeEnvironment, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, AddPublicKey, (google::cloud::shell::v1::AddPublicKeyRequest const& request), (override)); + MOCK_METHOD(StatusOr, AddPublicKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::AddPublicKeyRequest const& request), + (override)); + + MOCK_METHOD(future>, + AddPublicKey, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, RemovePublicKey, (google::cloud::shell::v1::RemovePublicKeyRequest const& request), (override)); + + MOCK_METHOD(StatusOr, RemovePublicKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::shell::v1::RemovePublicKeyRequest const& request), + (override)); + + MOCK_METHOD( + future>, + RemovePublicKey, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/spanner/admin/database_admin_connection.cc b/google/cloud/spanner/admin/database_admin_connection.cc index 0aced61c1976f..d0997ec10fb4e 100644 --- a/google/cloud/spanner/admin/database_admin_connection.cc +++ b/google/cloud/spanner/admin/database_admin_connection.cc @@ -54,6 +54,22 @@ DatabaseAdminConnection::CreateDatabase( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatabaseAdminConnection::CreateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateDatabaseRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatabaseAdminConnection::CreateDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DatabaseAdminConnection::GetDatabase( google::spanner::admin::database::v1::GetDatabaseRequest const&) { @@ -68,6 +84,22 @@ DatabaseAdminConnection::UpdateDatabase( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatabaseAdminConnection::UpdateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatabaseAdminConnection::UpdateDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future< StatusOr> DatabaseAdminConnection::UpdateDatabaseDdl( @@ -77,6 +109,23 @@ DatabaseAdminConnection::UpdateDatabaseDdl( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatabaseAdminConnection::UpdateDatabaseDdl( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future< + StatusOr> +DatabaseAdminConnection::UpdateDatabaseDdl( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status DatabaseAdminConnection::DropDatabase( google::spanner::admin::database::v1::DropDatabaseRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -112,6 +161,21 @@ DatabaseAdminConnection::CreateBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DatabaseAdminConnection::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatabaseAdminConnection::CreateBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> DatabaseAdminConnection::CopyBackup( google::spanner::admin::database::v1::CopyBackupRequest const&) { @@ -120,6 +184,21 @@ DatabaseAdminConnection::CopyBackup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr DatabaseAdminConnection::CopyBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CopyBackupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatabaseAdminConnection::CopyBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr DatabaseAdminConnection::GetBackup( google::spanner::admin::database::v1::GetBackupRequest const&) { @@ -153,6 +232,22 @@ DatabaseAdminConnection::RestoreDatabase( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +DatabaseAdminConnection::RestoreDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::RestoreDatabaseRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +DatabaseAdminConnection::RestoreDatabase( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange DatabaseAdminConnection::ListDatabaseOperations( google::spanner::admin::database::v1:: diff --git a/google/cloud/spanner/admin/database_admin_connection.h b/google/cloud/spanner/admin/database_admin_connection.h index d50e980dc3492..17a37b74c28a8 100644 --- a/google/cloud/spanner/admin/database_admin_connection.h +++ b/google/cloud/spanner/admin/database_admin_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/spanner/admin/database_admin_connection_idempotency_policy.h" #include "google/cloud/spanner/admin/internal/database_admin_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -194,6 +196,15 @@ class DatabaseAdminConnection { google::spanner::admin::database::v1::CreateDatabaseRequest const& request); + virtual StatusOr CreateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateDatabaseRequest const& + request); + + virtual future> + CreateDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetDatabase( google::spanner::admin::database::v1::GetDatabaseRequest const& request); @@ -202,12 +213,31 @@ class DatabaseAdminConnection { google::spanner::admin::database::v1::UpdateDatabaseRequest const& request); + virtual StatusOr UpdateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseRequest const& + request); + + virtual future> + UpdateDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UpdateDatabaseDdl( google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& request); + virtual StatusOr UpdateDatabaseDdl( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& + request); + + virtual future< + StatusOr> + UpdateDatabaseDdl(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status DropDatabase( google::spanner::admin::database::v1::DropDatabaseRequest const& request); @@ -229,10 +259,26 @@ class DatabaseAdminConnection { CreateBackup( google::spanner::admin::database::v1::CreateBackupRequest const& request); + virtual StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateBackupRequest const& request); + + virtual future> + CreateBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CopyBackup( google::spanner::admin::database::v1::CopyBackupRequest const& request); + virtual StatusOr CopyBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CopyBackupRequest const& request); + + virtual future> + CopyBackup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetBackup( google::spanner::admin::database::v1::GetBackupRequest const& request); @@ -250,6 +296,15 @@ class DatabaseAdminConnection { google::spanner::admin::database::v1::RestoreDatabaseRequest const& request); + virtual StatusOr RestoreDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::RestoreDatabaseRequest const& + request); + + virtual future> + RestoreDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListDatabaseOperations( google::spanner::admin::database::v1::ListDatabaseOperationsRequest request); diff --git a/google/cloud/spanner/admin/instance_admin_connection.cc b/google/cloud/spanner/admin/instance_admin_connection.cc index c9506e0f0856b..4425e25658ddd 100644 --- a/google/cloud/spanner/admin/instance_admin_connection.cc +++ b/google/cloud/spanner/admin/instance_admin_connection.cc @@ -60,6 +60,22 @@ InstanceAdminConnection::CreateInstanceConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceAdminConnection::CreateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceAdminConnection::CreateInstanceConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstanceAdminConnection::UpdateInstanceConfig( google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const&) { @@ -68,6 +84,22 @@ InstanceAdminConnection::UpdateInstanceConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceAdminConnection::UpdateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceAdminConnection::UpdateInstanceConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status InstanceAdminConnection::DeleteInstanceConfig( google::spanner::admin::instance::v1::DeleteInstanceConfigRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -111,6 +143,22 @@ InstanceAdminConnection::CreateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceAdminConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceAdminConnection::CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> InstanceAdminConnection::UpdateInstance( google::spanner::admin::instance::v1::UpdateInstanceRequest const&) { @@ -119,6 +167,22 @@ InstanceAdminConnection::UpdateInstance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceAdminConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceAdminConnection::UpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status InstanceAdminConnection::DeleteInstance( google::spanner::admin::instance::v1::DeleteInstanceRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -155,6 +219,23 @@ InstanceAdminConnection::CreateInstancePartition( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceAdminConnection::CreateInstancePartition( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1:: + CreateInstancePartitionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceAdminConnection::CreateInstancePartition( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status InstanceAdminConnection::DeleteInstancePartition( google::spanner::admin::instance::v1:: DeleteInstancePartitionRequest const&) { @@ -170,6 +251,23 @@ InstanceAdminConnection::UpdateInstancePartition( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +InstanceAdminConnection::UpdateInstancePartition( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1:: + UpdateInstancePartitionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +InstanceAdminConnection::UpdateInstancePartition( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange InstanceAdminConnection::ListInstancePartitionOperations( google::spanner::admin::instance::v1:: diff --git a/google/cloud/spanner/admin/instance_admin_connection.h b/google/cloud/spanner/admin/instance_admin_connection.h index 4a0f354bf4968..25ba388a0c344 100644 --- a/google/cloud/spanner/admin/instance_admin_connection.h +++ b/google/cloud/spanner/admin/instance_admin_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/spanner/admin/instance_admin_connection_idempotency_policy.h" #include "google/cloud/spanner/admin/internal/instance_admin_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -199,11 +201,29 @@ class InstanceAdminConnection { google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& request); + virtual StatusOr CreateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& + request); + + virtual future> + CreateInstanceConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateInstanceConfig( google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& request); + virtual StatusOr UpdateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& + request); + + virtual future> + UpdateInstanceConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status DeleteInstanceConfig( google::spanner::admin::instance::v1::DeleteInstanceConfigRequest const& request); @@ -230,11 +250,29 @@ class InstanceAdminConnection { google::spanner::admin::instance::v1::CreateInstanceRequest const& request); + virtual StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceRequest const& + request); + + virtual future> + CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateInstance( google::spanner::admin::instance::v1::UpdateInstanceRequest const& request); + virtual StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceRequest const& + request); + + virtual future> + UpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status DeleteInstance( google::spanner::admin::instance::v1::DeleteInstanceRequest const& request); @@ -258,6 +296,16 @@ class InstanceAdminConnection { CreateInstancePartition(google::spanner::admin::instance::v1:: CreateInstancePartitionRequest const& request); + virtual StatusOr CreateInstancePartition( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1:: + CreateInstancePartitionRequest const& request); + + virtual future< + StatusOr> + CreateInstancePartition(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status DeleteInstancePartition( google::spanner::admin::instance::v1:: DeleteInstancePartitionRequest const& request); @@ -267,6 +315,16 @@ class InstanceAdminConnection { UpdateInstancePartition(google::spanner::admin::instance::v1:: UpdateInstancePartitionRequest const& request); + virtual StatusOr UpdateInstancePartition( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1:: + UpdateInstancePartitionRequest const& request); + + virtual future< + StatusOr> + UpdateInstancePartition(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListInstancePartitionOperations( google::spanner::admin::instance::v1:: diff --git a/google/cloud/spanner/admin/internal/database_admin_connection_impl.cc b/google/cloud/spanner/admin/internal/database_admin_connection_impl.cc index f787409538ac6..b9d9764a96e71 100644 --- a/google/cloud/spanner/admin/internal/database_admin_connection_impl.cc +++ b/google/cloud/spanner/admin/internal/database_admin_connection_impl.cc @@ -141,6 +141,62 @@ DatabaseAdminConnectionImpl::CreateDatabase( polling_policy(*current), __func__); } +StatusOr +DatabaseAdminConnectionImpl::CreateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateDatabaseRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDatabase(request), + [this](grpc::ClientContext& context, Options const& options, + google::spanner::admin::database::v1::CreateDatabaseRequest const& + request) { + return stub_->CreateDatabase(context, options, request); + }, + *current, request, __func__); +} + +future> +DatabaseAdminConnectionImpl::CreateDatabase( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDatabase", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::spanner::admin::database::v1::Database>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::database::v1::Database>, + polling_policy(*current), __func__); +} + StatusOr DatabaseAdminConnectionImpl::GetDatabase( google::spanner::admin::database::v1::GetDatabaseRequest const& request) { @@ -197,6 +253,62 @@ DatabaseAdminConnectionImpl::UpdateDatabase( polling_policy(*current), __func__); } +StatusOr +DatabaseAdminConnectionImpl::UpdateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDatabase(request), + [this](grpc::ClientContext& context, Options const& options, + google::spanner::admin::database::v1::UpdateDatabaseRequest const& + request) { + return stub_->UpdateDatabase(context, options, request); + }, + *current, request, __func__); +} + +future> +DatabaseAdminConnectionImpl::UpdateDatabase( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateDatabase", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::spanner::admin::database::v1::Database>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::database::v1::Database>, + polling_policy(*current), __func__); +} + future< StatusOr> DatabaseAdminConnectionImpl::UpdateDatabaseDdl( @@ -239,6 +351,64 @@ DatabaseAdminConnectionImpl::UpdateDatabaseDdl( polling_policy(*current), __func__); } +StatusOr +DatabaseAdminConnectionImpl::UpdateDatabaseDdl( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDatabaseDdl(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& + request) { + return stub_->UpdateDatabaseDdl(context, options, request); + }, + *current, request, __func__); +} + +future< + StatusOr> +DatabaseAdminConnectionImpl::UpdateDatabaseDdl( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateDatabaseDdl", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata>, + polling_policy(*current), __func__); +} + Status DatabaseAdminConnectionImpl::DropDatabase( google::spanner::admin::database::v1::DropDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -349,6 +519,61 @@ DatabaseAdminConnectionImpl::CreateBackup( polling_policy(*current), __func__); } +StatusOr +DatabaseAdminConnectionImpl::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::spanner::admin::database::v1::CreateBackupRequest const& + request) { + return stub_->CreateBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +DatabaseAdminConnectionImpl::CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::spanner::admin::database::v1::Backup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::database::v1::Backup>, + polling_policy(*current), __func__); +} + future> DatabaseAdminConnectionImpl::CopyBackup( google::spanner::admin::database::v1::CopyBackupRequest const& request) { @@ -389,6 +614,61 @@ DatabaseAdminConnectionImpl::CopyBackup( polling_policy(*current), __func__); } +StatusOr +DatabaseAdminConnectionImpl::CopyBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CopyBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CopyBackup(request), + [this](grpc::ClientContext& context, Options const& options, + google::spanner::admin::database::v1::CopyBackupRequest const& + request) { + return stub_->CopyBackup(context, options, request); + }, + *current, request, __func__); +} + +future> +DatabaseAdminConnectionImpl::CopyBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CopyBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::spanner::admin::database::v1::Backup>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::database::v1::Backup>, + polling_policy(*current), __func__); +} + StatusOr DatabaseAdminConnectionImpl::GetBackup( google::spanner::admin::database::v1::GetBackupRequest const& request) { @@ -509,6 +789,62 @@ DatabaseAdminConnectionImpl::RestoreDatabase( polling_policy(*current), __func__); } +StatusOr +DatabaseAdminConnectionImpl::RestoreDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::RestoreDatabaseRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RestoreDatabase(request), + [this](grpc::ClientContext& context, Options const& options, + google::spanner::admin::database::v1::RestoreDatabaseRequest const& + request) { + return stub_->RestoreDatabase(context, options, request); + }, + *current, request, __func__); +} + +future> +DatabaseAdminConnectionImpl::RestoreDatabase( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RestoreDatabase", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::spanner::admin::database::v1::Database>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::database::v1::Database>, + polling_policy(*current), __func__); +} + StreamRange DatabaseAdminConnectionImpl::ListDatabaseOperations( google::spanner::admin::database::v1::ListDatabaseOperationsRequest diff --git a/google/cloud/spanner/admin/internal/database_admin_connection_impl.h b/google/cloud/spanner/admin/internal/database_admin_connection_impl.h index 1bb17ebc33628..b515af40279d0 100644 --- a/google/cloud/spanner/admin/internal/database_admin_connection_impl.h +++ b/google/cloud/spanner/admin/internal/database_admin_connection_impl.h @@ -61,6 +61,15 @@ class DatabaseAdminConnectionImpl google::spanner::admin::database::v1::CreateDatabaseRequest const& request) override; + StatusOr CreateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateDatabaseRequest const& + request) override; + + future> + CreateDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDatabase( google::spanner::admin::database::v1::GetDatabaseRequest const& request) override; @@ -70,12 +79,31 @@ class DatabaseAdminConnectionImpl google::spanner::admin::database::v1::UpdateDatabaseRequest const& request) override; + StatusOr UpdateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseRequest const& + request) override; + + future> + UpdateDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> UpdateDatabaseDdl( google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; + StatusOr UpdateDatabaseDdl( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& + request) override; + + future< + StatusOr> + UpdateDatabaseDdl(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DropDatabase( google::spanner::admin::database::v1::DropDatabaseRequest const& request) override; @@ -98,10 +126,28 @@ class DatabaseAdminConnectionImpl google::spanner::admin::database::v1::CreateBackupRequest const& request) override; + StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateBackupRequest const& request) + override; + + future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CopyBackup( google::spanner::admin::database::v1::CopyBackupRequest const& request) override; + StatusOr CopyBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CopyBackupRequest const& request) + override; + + future> CopyBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBackup( google::spanner::admin::database::v1::GetBackupRequest const& request) override; @@ -123,6 +169,15 @@ class DatabaseAdminConnectionImpl google::spanner::admin::database::v1::RestoreDatabaseRequest const& request) override; + StatusOr RestoreDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::RestoreDatabaseRequest const& + request) override; + + future> + RestoreDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDatabaseOperations( google::spanner::admin::database::v1::ListDatabaseOperationsRequest request) override; diff --git a/google/cloud/spanner/admin/internal/database_admin_rest_connection_impl.cc b/google/cloud/spanner/admin/internal/database_admin_rest_connection_impl.cc index c3e13999cb9fc..1d97f7b7568f0 100644 --- a/google/cloud/spanner/admin/internal/database_admin_rest_connection_impl.cc +++ b/google/cloud/spanner/admin/internal/database_admin_rest_connection_impl.cc @@ -116,6 +116,61 @@ DatabaseAdminRestConnectionImpl::CreateDatabase( polling_policy(*current), __func__); } +StatusOr +DatabaseAdminRestConnectionImpl::CreateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateDatabaseRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDatabase(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::spanner::admin::database::v1::CreateDatabaseRequest const& + request) { + return stub_->CreateDatabase(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DatabaseAdminRestConnectionImpl::CreateDatabase( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDatabase", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::spanner::admin::database::v1::Database>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::database::v1::Database>, + polling_policy(*current), __func__); +} + StatusOr DatabaseAdminRestConnectionImpl::GetDatabase( google::spanner::admin::database::v1::GetDatabaseRequest const& request) { @@ -170,6 +225,61 @@ DatabaseAdminRestConnectionImpl::UpdateDatabase( polling_policy(*current), __func__); } +StatusOr +DatabaseAdminRestConnectionImpl::UpdateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDatabase(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::spanner::admin::database::v1::UpdateDatabaseRequest const& + request) { + return stub_->UpdateDatabase(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DatabaseAdminRestConnectionImpl::UpdateDatabase( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateDatabase", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::spanner::admin::database::v1::Database>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::database::v1::Database>, + polling_policy(*current), __func__); +} + future< StatusOr> DatabaseAdminRestConnectionImpl::UpdateDatabaseDdl( @@ -210,6 +320,63 @@ DatabaseAdminRestConnectionImpl::UpdateDatabaseDdl( polling_policy(*current), __func__); } +StatusOr +DatabaseAdminRestConnectionImpl::UpdateDatabaseDdl( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateDatabaseDdl(request), + [this]( + rest_internal::RestContext& rest_context, Options const& options, + google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& + request) { + return stub_->UpdateDatabaseDdl(rest_context, options, request); + }, + *current, request, __func__); +} + +future< + StatusOr> +DatabaseAdminRestConnectionImpl::UpdateDatabaseDdl( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateDatabaseDdl", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata>, + polling_policy(*current), __func__); +} + Status DatabaseAdminRestConnectionImpl::DropDatabase( google::spanner::admin::database::v1::DropDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -318,6 +485,60 @@ DatabaseAdminRestConnectionImpl::CreateBackup( polling_policy(*current), __func__); } +StatusOr +DatabaseAdminRestConnectionImpl::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateBackup(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::spanner::admin::database::v1::CreateBackupRequest const& + request) { + return stub_->CreateBackup(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DatabaseAdminRestConnectionImpl::CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::spanner::admin::database::v1::Backup>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::database::v1::Backup>, + polling_policy(*current), __func__); +} + future> DatabaseAdminRestConnectionImpl::CopyBackup( google::spanner::admin::database::v1::CopyBackupRequest const& request) { @@ -356,6 +577,60 @@ DatabaseAdminRestConnectionImpl::CopyBackup( polling_policy(*current), __func__); } +StatusOr +DatabaseAdminRestConnectionImpl::CopyBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CopyBackupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CopyBackup(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::spanner::admin::database::v1::CopyBackupRequest const& + request) { + return stub_->CopyBackup(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DatabaseAdminRestConnectionImpl::CopyBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CopyBackup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::spanner::admin::database::v1::Backup>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::database::v1::Backup>, + polling_policy(*current), __func__); +} + StatusOr DatabaseAdminRestConnectionImpl::GetBackup( google::spanner::admin::database::v1::GetBackupRequest const& request) { @@ -475,6 +750,61 @@ DatabaseAdminRestConnectionImpl::RestoreDatabase( polling_policy(*current), __func__); } +StatusOr +DatabaseAdminRestConnectionImpl::RestoreDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::RestoreDatabaseRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RestoreDatabase(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::spanner::admin::database::v1::RestoreDatabaseRequest const& + request) { + return stub_->RestoreDatabase(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +DatabaseAdminRestConnectionImpl::RestoreDatabase( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RestoreDatabase", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::spanner::admin::database::v1::Database>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::database::v1::Database>, + polling_policy(*current), __func__); +} + StreamRange DatabaseAdminRestConnectionImpl::ListDatabaseOperations( google::spanner::admin::database::v1::ListDatabaseOperationsRequest diff --git a/google/cloud/spanner/admin/internal/database_admin_rest_connection_impl.h b/google/cloud/spanner/admin/internal/database_admin_rest_connection_impl.h index 7e55df0a2d09c..9fdf0fbb6afc3 100644 --- a/google/cloud/spanner/admin/internal/database_admin_rest_connection_impl.h +++ b/google/cloud/spanner/admin/internal/database_admin_rest_connection_impl.h @@ -59,6 +59,15 @@ class DatabaseAdminRestConnectionImpl google::spanner::admin::database::v1::CreateDatabaseRequest const& request) override; + StatusOr CreateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateDatabaseRequest const& + request) override; + + future> + CreateDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDatabase( google::spanner::admin::database::v1::GetDatabaseRequest const& request) override; @@ -68,12 +77,31 @@ class DatabaseAdminRestConnectionImpl google::spanner::admin::database::v1::UpdateDatabaseRequest const& request) override; + StatusOr UpdateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseRequest const& + request) override; + + future> + UpdateDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> UpdateDatabaseDdl( google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; + StatusOr UpdateDatabaseDdl( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& + request) override; + + future< + StatusOr> + UpdateDatabaseDdl(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DropDatabase( google::spanner::admin::database::v1::DropDatabaseRequest const& request) override; @@ -96,10 +124,28 @@ class DatabaseAdminRestConnectionImpl google::spanner::admin::database::v1::CreateBackupRequest const& request) override; + StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateBackupRequest const& request) + override; + + future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CopyBackup( google::spanner::admin::database::v1::CopyBackupRequest const& request) override; + StatusOr CopyBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CopyBackupRequest const& request) + override; + + future> CopyBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBackup( google::spanner::admin::database::v1::GetBackupRequest const& request) override; @@ -121,6 +167,15 @@ class DatabaseAdminRestConnectionImpl google::spanner::admin::database::v1::RestoreDatabaseRequest const& request) override; + StatusOr RestoreDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::RestoreDatabaseRequest const& + request) override; + + future> + RestoreDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDatabaseOperations( google::spanner::admin::database::v1::ListDatabaseOperationsRequest request) override; diff --git a/google/cloud/spanner/admin/internal/database_admin_tracing_connection.cc b/google/cloud/spanner/admin/internal/database_admin_tracing_connection.cc index 7f9af39cd3cb4..72cba56cfcb6b 100644 --- a/google/cloud/spanner/admin/internal/database_admin_tracing_connection.cc +++ b/google/cloud/spanner/admin/internal/database_admin_tracing_connection.cc @@ -55,6 +55,31 @@ DatabaseAdminTracingConnection::CreateDatabase( return internal::EndSpan(std::move(span), child_->CreateDatabase(request)); } +StatusOr +DatabaseAdminTracingConnection::CreateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateDatabaseRequest const& + request) { + auto span = internal::MakeSpan( + "spanner_admin::DatabaseAdminConnection::CreateDatabase"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateDatabase(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatabaseAdminTracingConnection::CreateDatabase( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "spanner_admin::DatabaseAdminConnection::CreateDatabase"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateDatabase(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DatabaseAdminTracingConnection::GetDatabase( google::spanner::admin::database::v1::GetDatabaseRequest const& request) { @@ -74,6 +99,31 @@ DatabaseAdminTracingConnection::UpdateDatabase( return internal::EndSpan(std::move(span), child_->UpdateDatabase(request)); } +StatusOr +DatabaseAdminTracingConnection::UpdateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseRequest const& + request) { + auto span = internal::MakeSpan( + "spanner_admin::DatabaseAdminConnection::UpdateDatabase"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateDatabase(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatabaseAdminTracingConnection::UpdateDatabase( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "spanner_admin::DatabaseAdminConnection::UpdateDatabase"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateDatabase(google::cloud::ExperimentalTag{}, operation)); +} + future< StatusOr> DatabaseAdminTracingConnection::UpdateDatabaseDdl( @@ -85,6 +135,32 @@ DatabaseAdminTracingConnection::UpdateDatabaseDdl( return internal::EndSpan(std::move(span), child_->UpdateDatabaseDdl(request)); } +StatusOr +DatabaseAdminTracingConnection::UpdateDatabaseDdl( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& + request) { + auto span = internal::MakeSpan( + "spanner_admin::DatabaseAdminConnection::UpdateDatabaseDdl"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateDatabaseDdl(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future< + StatusOr> +DatabaseAdminTracingConnection::UpdateDatabaseDdl( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "spanner_admin::DatabaseAdminConnection::UpdateDatabaseDdl"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateDatabaseDdl(google::cloud::ExperimentalTag{}, operation)); +} + Status DatabaseAdminTracingConnection::DropDatabase( google::spanner::admin::database::v1::DropDatabaseRequest const& request) { auto span = internal::MakeSpan( @@ -137,6 +213,30 @@ DatabaseAdminTracingConnection::CreateBackup( return internal::EndSpan(std::move(span), child_->CreateBackup(request)); } +StatusOr +DatabaseAdminTracingConnection::CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateBackupRequest const& request) { + auto span = internal::MakeSpan( + "spanner_admin::DatabaseAdminConnection::CreateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatabaseAdminTracingConnection::CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "spanner_admin::DatabaseAdminConnection::CreateBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateBackup(google::cloud::ExperimentalTag{}, operation)); +} + future> DatabaseAdminTracingConnection::CopyBackup( google::spanner::admin::database::v1::CopyBackupRequest const& request) { @@ -146,6 +246,30 @@ DatabaseAdminTracingConnection::CopyBackup( return internal::EndSpan(std::move(span), child_->CopyBackup(request)); } +StatusOr +DatabaseAdminTracingConnection::CopyBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CopyBackupRequest const& request) { + auto span = + internal::MakeSpan("spanner_admin::DatabaseAdminConnection::CopyBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CopyBackup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatabaseAdminTracingConnection::CopyBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("spanner_admin::DatabaseAdminConnection::CopyBackup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CopyBackup(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr DatabaseAdminTracingConnection::GetBackup( google::spanner::admin::database::v1::GetBackupRequest const& request) { @@ -194,6 +318,31 @@ DatabaseAdminTracingConnection::RestoreDatabase( return internal::EndSpan(std::move(span), child_->RestoreDatabase(request)); } +StatusOr +DatabaseAdminTracingConnection::RestoreDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::RestoreDatabaseRequest const& + request) { + auto span = internal::MakeSpan( + "spanner_admin::DatabaseAdminConnection::RestoreDatabase"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RestoreDatabase(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +DatabaseAdminTracingConnection::RestoreDatabase( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "spanner_admin::DatabaseAdminConnection::RestoreDatabase"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RestoreDatabase(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange DatabaseAdminTracingConnection::ListDatabaseOperations( google::spanner::admin::database::v1::ListDatabaseOperationsRequest diff --git a/google/cloud/spanner/admin/internal/database_admin_tracing_connection.h b/google/cloud/spanner/admin/internal/database_admin_tracing_connection.h index 9987795e247ad..5305723056456 100644 --- a/google/cloud/spanner/admin/internal/database_admin_tracing_connection.h +++ b/google/cloud/spanner/admin/internal/database_admin_tracing_connection.h @@ -49,6 +49,15 @@ class DatabaseAdminTracingConnection google::spanner::admin::database::v1::CreateDatabaseRequest const& request) override; + StatusOr CreateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateDatabaseRequest const& + request) override; + + future> + CreateDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDatabase( google::spanner::admin::database::v1::GetDatabaseRequest const& request) override; @@ -58,12 +67,31 @@ class DatabaseAdminTracingConnection google::spanner::admin::database::v1::UpdateDatabaseRequest const& request) override; + StatusOr UpdateDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseRequest const& + request) override; + + future> + UpdateDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> UpdateDatabaseDdl( google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; + StatusOr UpdateDatabaseDdl( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& + request) override; + + future< + StatusOr> + UpdateDatabaseDdl(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DropDatabase( google::spanner::admin::database::v1::DropDatabaseRequest const& request) override; @@ -86,10 +114,28 @@ class DatabaseAdminTracingConnection google::spanner::admin::database::v1::CreateBackupRequest const& request) override; + StatusOr CreateBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateBackupRequest const& request) + override; + + future> CreateBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CopyBackup( google::spanner::admin::database::v1::CopyBackupRequest const& request) override; + StatusOr CopyBackup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CopyBackupRequest const& request) + override; + + future> CopyBackup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetBackup( google::spanner::admin::database::v1::GetBackupRequest const& request) override; @@ -111,6 +157,15 @@ class DatabaseAdminTracingConnection google::spanner::admin::database::v1::RestoreDatabaseRequest const& request) override; + StatusOr RestoreDatabase( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::RestoreDatabaseRequest const& + request) override; + + future> + RestoreDatabase(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDatabaseOperations( google::spanner::admin::database::v1::ListDatabaseOperationsRequest request) override; diff --git a/google/cloud/spanner/admin/internal/instance_admin_connection_impl.cc b/google/cloud/spanner/admin/internal/instance_admin_connection_impl.cc index cb1afd51babdb..a04770ab4e45f 100644 --- a/google/cloud/spanner/admin/internal/instance_admin_connection_impl.cc +++ b/google/cloud/spanner/admin/internal/instance_admin_connection_impl.cc @@ -157,6 +157,62 @@ InstanceAdminConnectionImpl::CreateInstanceConfig( polling_policy(*current), __func__); } +StatusOr +InstanceAdminConnectionImpl::CreateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstanceConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::spanner::admin::instance::v1:: + CreateInstanceConfigRequest const& request) { + return stub_->CreateInstanceConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceAdminConnectionImpl::CreateInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInstanceConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::spanner::admin::instance::v1::InstanceConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::instance::v1::InstanceConfig>, + polling_policy(*current), __func__); +} + future> InstanceAdminConnectionImpl::UpdateInstanceConfig( google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& @@ -197,6 +253,62 @@ InstanceAdminConnectionImpl::UpdateInstanceConfig( polling_policy(*current), __func__); } +StatusOr +InstanceAdminConnectionImpl::UpdateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateInstanceConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::spanner::admin::instance::v1:: + UpdateInstanceConfigRequest const& request) { + return stub_->UpdateInstanceConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceAdminConnectionImpl::UpdateInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateInstanceConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::spanner::admin::instance::v1::InstanceConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::instance::v1::InstanceConfig>, + polling_policy(*current), __func__); +} + Status InstanceAdminConnectionImpl::DeleteInstanceConfig( google::spanner::admin::instance::v1::DeleteInstanceConfigRequest const& request) { @@ -378,6 +490,62 @@ InstanceAdminConnectionImpl::CreateInstance( polling_policy(*current), __func__); } +StatusOr +InstanceAdminConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::spanner::admin::instance::v1::CreateInstanceRequest const& + request) { + return stub_->CreateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceAdminConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::spanner::admin::instance::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::instance::v1::Instance>, + polling_policy(*current), __func__); +} + future> InstanceAdminConnectionImpl::UpdateInstance( google::spanner::admin::instance::v1::UpdateInstanceRequest const& @@ -419,6 +587,62 @@ InstanceAdminConnectionImpl::UpdateInstance( polling_policy(*current), __func__); } +StatusOr +InstanceAdminConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateInstance(request), + [this](grpc::ClientContext& context, Options const& options, + google::spanner::admin::instance::v1::UpdateInstanceRequest const& + request) { + return stub_->UpdateInstance(context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceAdminConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::spanner::admin::instance::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::instance::v1::Instance>, + polling_policy(*current), __func__); +} + Status InstanceAdminConnectionImpl::DeleteInstance( google::spanner::admin::instance::v1::DeleteInstanceRequest const& request) { @@ -530,6 +754,62 @@ InstanceAdminConnectionImpl::CreateInstancePartition( polling_policy(*current), __func__); } +StatusOr +InstanceAdminConnectionImpl::CreateInstancePartition( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstancePartitionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstancePartition(request), + [this](grpc::ClientContext& context, Options const& options, + google::spanner::admin::instance::v1:: + CreateInstancePartitionRequest const& request) { + return stub_->CreateInstancePartition(context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceAdminConnectionImpl::CreateInstancePartition( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInstancePartition", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::spanner::admin::instance::v1::InstancePartition>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::instance::v1::InstancePartition>, + polling_policy(*current), __func__); +} + Status InstanceAdminConnectionImpl::DeleteInstancePartition( google::spanner::admin::instance::v1::DeleteInstancePartitionRequest const& request) { @@ -585,6 +865,62 @@ InstanceAdminConnectionImpl::UpdateInstancePartition( polling_policy(*current), __func__); } +StatusOr +InstanceAdminConnectionImpl::UpdateInstancePartition( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstancePartitionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateInstancePartition(request), + [this](grpc::ClientContext& context, Options const& options, + google::spanner::admin::instance::v1:: + UpdateInstancePartitionRequest const& request) { + return stub_->UpdateInstancePartition(context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceAdminConnectionImpl::UpdateInstancePartition( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateInstancePartition", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::spanner::admin::instance::v1::InstancePartition>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::instance::v1::InstancePartition>, + polling_policy(*current), __func__); +} + StreamRange InstanceAdminConnectionImpl::ListInstancePartitionOperations( google::spanner::admin::instance::v1::ListInstancePartitionOperationsRequest diff --git a/google/cloud/spanner/admin/internal/instance_admin_connection_impl.h b/google/cloud/spanner/admin/internal/instance_admin_connection_impl.h index 22e6fb2ac92a9..1b570420bca1a 100644 --- a/google/cloud/spanner/admin/internal/instance_admin_connection_impl.h +++ b/google/cloud/spanner/admin/internal/instance_admin_connection_impl.h @@ -67,11 +67,31 @@ class InstanceAdminConnectionImpl google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& request) override; + StatusOr CreateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& + request) override; + + future> + CreateInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstanceConfig( google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& request) override; + StatusOr UpdateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& + request) override; + + future> + UpdateInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteInstanceConfig( google::spanner::admin::instance::v1::DeleteInstanceConfigRequest const& request) override; @@ -98,11 +118,29 @@ class InstanceAdminConnectionImpl google::spanner::admin::instance::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceRequest const& + request) override; + + future> + CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstance( google::spanner::admin::instance::v1::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceRequest const& + request) override; + + future> + UpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteInstance( google::spanner::admin::instance::v1::DeleteInstanceRequest const& request) override; @@ -126,6 +164,16 @@ class InstanceAdminConnectionImpl google::spanner::admin::instance::v1:: CreateInstancePartitionRequest const& request) override; + StatusOr CreateInstancePartition( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1:: + CreateInstancePartitionRequest const& request) override; + + future> + CreateInstancePartition( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteInstancePartition( google::spanner::admin::instance::v1:: DeleteInstancePartitionRequest const& request) override; @@ -135,6 +183,16 @@ class InstanceAdminConnectionImpl google::spanner::admin::instance::v1:: UpdateInstancePartitionRequest const& request) override; + StatusOr UpdateInstancePartition( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1:: + UpdateInstancePartitionRequest const& request) override; + + future> + UpdateInstancePartition( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListInstancePartitionOperations( google::spanner::admin::instance::v1:: ListInstancePartitionOperationsRequest request) override; diff --git a/google/cloud/spanner/admin/internal/instance_admin_rest_connection_impl.cc b/google/cloud/spanner/admin/internal/instance_admin_rest_connection_impl.cc index 86315b60a7c76..b545fce7a0fc0 100644 --- a/google/cloud/spanner/admin/internal/instance_admin_rest_connection_impl.cc +++ b/google/cloud/spanner/admin/internal/instance_admin_rest_connection_impl.cc @@ -132,6 +132,61 @@ InstanceAdminRestConnectionImpl::CreateInstanceConfig( polling_policy(*current), __func__); } +StatusOr +InstanceAdminRestConnectionImpl::CreateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstanceConfig(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::spanner::admin::instance::v1:: + CreateInstanceConfigRequest const& request) { + return stub_->CreateInstanceConfig(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceAdminRestConnectionImpl::CreateInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInstanceConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::spanner::admin::instance::v1::InstanceConfig>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::instance::v1::InstanceConfig>, + polling_policy(*current), __func__); +} + future> InstanceAdminRestConnectionImpl::UpdateInstanceConfig( google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& @@ -170,6 +225,61 @@ InstanceAdminRestConnectionImpl::UpdateInstanceConfig( polling_policy(*current), __func__); } +StatusOr +InstanceAdminRestConnectionImpl::UpdateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateInstanceConfig(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::spanner::admin::instance::v1:: + UpdateInstanceConfigRequest const& request) { + return stub_->UpdateInstanceConfig(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceAdminRestConnectionImpl::UpdateInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateInstanceConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::spanner::admin::instance::v1::InstanceConfig>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::instance::v1::InstanceConfig>, + polling_policy(*current), __func__); +} + Status InstanceAdminRestConnectionImpl::DeleteInstanceConfig( google::spanner::admin::instance::v1::DeleteInstanceConfigRequest const& request) { @@ -353,6 +463,61 @@ InstanceAdminRestConnectionImpl::CreateInstance( polling_policy(*current), __func__); } +StatusOr +InstanceAdminRestConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstance(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::spanner::admin::instance::v1::CreateInstanceRequest const& + request) { + return stub_->CreateInstance(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceAdminRestConnectionImpl::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::spanner::admin::instance::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::instance::v1::Instance>, + polling_policy(*current), __func__); +} + future> InstanceAdminRestConnectionImpl::UpdateInstance( google::spanner::admin::instance::v1::UpdateInstanceRequest const& @@ -392,6 +557,61 @@ InstanceAdminRestConnectionImpl::UpdateInstance( polling_policy(*current), __func__); } +StatusOr +InstanceAdminRestConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateInstance(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::spanner::admin::instance::v1::UpdateInstanceRequest const& + request) { + return stub_->UpdateInstance(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceAdminRestConnectionImpl::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateInstance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::spanner::admin::instance::v1::Instance>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::instance::v1::Instance>, + polling_policy(*current), __func__); +} + Status InstanceAdminRestConnectionImpl::DeleteInstance( google::spanner::admin::instance::v1::DeleteInstanceRequest const& request) { @@ -501,6 +721,61 @@ InstanceAdminRestConnectionImpl::CreateInstancePartition( polling_policy(*current), __func__); } +StatusOr +InstanceAdminRestConnectionImpl::CreateInstancePartition( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstancePartitionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInstancePartition(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::spanner::admin::instance::v1:: + CreateInstancePartitionRequest const& request) { + return stub_->CreateInstancePartition(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceAdminRestConnectionImpl::CreateInstancePartition( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInstancePartition", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::spanner::admin::instance::v1::InstancePartition>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::instance::v1::InstancePartition>, + polling_policy(*current), __func__); +} + Status InstanceAdminRestConnectionImpl::DeleteInstancePartition( google::spanner::admin::instance::v1::DeleteInstancePartitionRequest const& request) { @@ -554,6 +829,61 @@ InstanceAdminRestConnectionImpl::UpdateInstancePartition( polling_policy(*current), __func__); } +StatusOr +InstanceAdminRestConnectionImpl::UpdateInstancePartition( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstancePartitionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::rest_internal::RestRetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateInstancePartition(request), + [this](rest_internal::RestContext& rest_context, Options const& options, + google::spanner::admin::instance::v1:: + UpdateInstancePartitionRequest const& request) { + return stub_->UpdateInstancePartition(rest_context, options, request); + }, + *current, request, __func__); +} + +future> +InstanceAdminRestConnectionImpl::UpdateInstancePartition( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateInstancePartition", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + return rest_internal::AsyncRestAwaitLongRunningOperation< + google::spanner::admin::instance::v1::InstancePartition>( + background_->cq(), current, operation, + [stub = stub_](CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + CompletionQueue& cq, + std::unique_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::spanner::admin::instance::v1::InstancePartition>, + polling_policy(*current), __func__); +} + StreamRange InstanceAdminRestConnectionImpl::ListInstancePartitionOperations( google::spanner::admin::instance::v1::ListInstancePartitionOperationsRequest diff --git a/google/cloud/spanner/admin/internal/instance_admin_rest_connection_impl.h b/google/cloud/spanner/admin/internal/instance_admin_rest_connection_impl.h index 9b82593772879..a4943585d482f 100644 --- a/google/cloud/spanner/admin/internal/instance_admin_rest_connection_impl.h +++ b/google/cloud/spanner/admin/internal/instance_admin_rest_connection_impl.h @@ -65,11 +65,31 @@ class InstanceAdminRestConnectionImpl google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& request) override; + StatusOr CreateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& + request) override; + + future> + CreateInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstanceConfig( google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& request) override; + StatusOr UpdateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& + request) override; + + future> + UpdateInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteInstanceConfig( google::spanner::admin::instance::v1::DeleteInstanceConfigRequest const& request) override; @@ -96,11 +116,29 @@ class InstanceAdminRestConnectionImpl google::spanner::admin::instance::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceRequest const& + request) override; + + future> + CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstance( google::spanner::admin::instance::v1::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceRequest const& + request) override; + + future> + UpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteInstance( google::spanner::admin::instance::v1::DeleteInstanceRequest const& request) override; @@ -124,6 +162,16 @@ class InstanceAdminRestConnectionImpl google::spanner::admin::instance::v1:: CreateInstancePartitionRequest const& request) override; + StatusOr CreateInstancePartition( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1:: + CreateInstancePartitionRequest const& request) override; + + future> + CreateInstancePartition( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteInstancePartition( google::spanner::admin::instance::v1:: DeleteInstancePartitionRequest const& request) override; @@ -133,6 +181,16 @@ class InstanceAdminRestConnectionImpl google::spanner::admin::instance::v1:: UpdateInstancePartitionRequest const& request) override; + StatusOr UpdateInstancePartition( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1:: + UpdateInstancePartitionRequest const& request) override; + + future> + UpdateInstancePartition( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListInstancePartitionOperations( google::spanner::admin::instance::v1:: ListInstancePartitionOperationsRequest request) override; diff --git a/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.cc b/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.cc index 28799b6ba835c..23329f7418af0 100644 --- a/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.cc +++ b/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.cc @@ -66,6 +66,31 @@ InstanceAdminTracingConnection::CreateInstanceConfig( child_->CreateInstanceConfig(request)); } +StatusOr +InstanceAdminTracingConnection::CreateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& + request) { + auto span = internal::MakeSpan( + "spanner_admin::InstanceAdminConnection::CreateInstanceConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateInstanceConfig( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceAdminTracingConnection::CreateInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "spanner_admin::InstanceAdminConnection::CreateInstanceConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateInstanceConfig( + google::cloud::ExperimentalTag{}, operation)); +} + future> InstanceAdminTracingConnection::UpdateInstanceConfig( google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& @@ -77,6 +102,31 @@ InstanceAdminTracingConnection::UpdateInstanceConfig( child_->UpdateInstanceConfig(request)); } +StatusOr +InstanceAdminTracingConnection::UpdateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& + request) { + auto span = internal::MakeSpan( + "spanner_admin::InstanceAdminConnection::UpdateInstanceConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateInstanceConfig( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceAdminTracingConnection::UpdateInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "spanner_admin::InstanceAdminConnection::UpdateInstanceConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateInstanceConfig( + google::cloud::ExperimentalTag{}, operation)); +} + Status InstanceAdminTracingConnection::DeleteInstanceConfig( google::spanner::admin::instance::v1::DeleteInstanceConfigRequest const& request) { @@ -142,6 +192,31 @@ InstanceAdminTracingConnection::CreateInstance( return internal::EndSpan(std::move(span), child_->CreateInstance(request)); } +StatusOr +InstanceAdminTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceRequest const& + request) { + auto span = internal::MakeSpan( + "spanner_admin::InstanceAdminConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceAdminTracingConnection::CreateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "spanner_admin::InstanceAdminConnection::CreateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); +} + future> InstanceAdminTracingConnection::UpdateInstance( google::spanner::admin::instance::v1::UpdateInstanceRequest const& @@ -152,6 +227,31 @@ InstanceAdminTracingConnection::UpdateInstance( return internal::EndSpan(std::move(span), child_->UpdateInstance(request)); } +StatusOr +InstanceAdminTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceRequest const& + request) { + auto span = internal::MakeSpan( + "spanner_admin::InstanceAdminConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceAdminTracingConnection::UpdateInstance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "spanner_admin::InstanceAdminConnection::UpdateInstance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); +} + Status InstanceAdminTracingConnection::DeleteInstance( google::spanner::admin::instance::v1::DeleteInstanceRequest const& request) { @@ -207,6 +307,31 @@ InstanceAdminTracingConnection::CreateInstancePartition( child_->CreateInstancePartition(request)); } +StatusOr +InstanceAdminTracingConnection::CreateInstancePartition( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstancePartitionRequest const& + request) { + auto span = internal::MakeSpan( + "spanner_admin::InstanceAdminConnection::CreateInstancePartition"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateInstancePartition( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceAdminTracingConnection::CreateInstancePartition( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "spanner_admin::InstanceAdminConnection::CreateInstancePartition"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateInstancePartition( + google::cloud::ExperimentalTag{}, operation)); +} + Status InstanceAdminTracingConnection::DeleteInstancePartition( google::spanner::admin::instance::v1::DeleteInstancePartitionRequest const& request) { @@ -227,6 +352,31 @@ InstanceAdminTracingConnection::UpdateInstancePartition( child_->UpdateInstancePartition(request)); } +StatusOr +InstanceAdminTracingConnection::UpdateInstancePartition( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstancePartitionRequest const& + request) { + auto span = internal::MakeSpan( + "spanner_admin::InstanceAdminConnection::UpdateInstancePartition"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateInstancePartition( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +InstanceAdminTracingConnection::UpdateInstancePartition( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "spanner_admin::InstanceAdminConnection::UpdateInstancePartition"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateInstancePartition( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange InstanceAdminTracingConnection::ListInstancePartitionOperations( google::spanner::admin::instance::v1::ListInstancePartitionOperationsRequest diff --git a/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.h b/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.h index 00a7a896f0435..ab1355905cdce 100644 --- a/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.h +++ b/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.h @@ -55,11 +55,31 @@ class InstanceAdminTracingConnection google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& request) override; + StatusOr CreateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& + request) override; + + future> + CreateInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstanceConfig( google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& request) override; + StatusOr UpdateInstanceConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& + request) override; + + future> + UpdateInstanceConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteInstanceConfig( google::spanner::admin::instance::v1::DeleteInstanceConfigRequest const& request) override; @@ -86,11 +106,29 @@ class InstanceAdminTracingConnection google::spanner::admin::instance::v1::CreateInstanceRequest const& request) override; + StatusOr CreateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceRequest const& + request) override; + + future> + CreateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInstance( google::spanner::admin::instance::v1::UpdateInstanceRequest const& request) override; + StatusOr UpdateInstance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceRequest const& + request) override; + + future> + UpdateInstance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteInstance( google::spanner::admin::instance::v1::DeleteInstanceRequest const& request) override; @@ -114,6 +152,16 @@ class InstanceAdminTracingConnection google::spanner::admin::instance::v1:: CreateInstancePartitionRequest const& request) override; + StatusOr CreateInstancePartition( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1:: + CreateInstancePartitionRequest const& request) override; + + future> + CreateInstancePartition( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteInstancePartition( google::spanner::admin::instance::v1:: DeleteInstancePartitionRequest const& request) override; @@ -123,6 +171,16 @@ class InstanceAdminTracingConnection google::spanner::admin::instance::v1:: UpdateInstancePartitionRequest const& request) override; + StatusOr UpdateInstancePartition( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1:: + UpdateInstancePartitionRequest const& request) override; + + future> + UpdateInstancePartition( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListInstancePartitionOperations( google::spanner::admin::instance::v1:: ListInstancePartitionOperationsRequest request) override; diff --git a/google/cloud/spanner/admin/mocks/mock_database_admin_connection.h b/google/cloud/spanner/admin/mocks/mock_database_admin_connection.h index 0bf138ae2fce6..8024d3134454d 100644 --- a/google/cloud/spanner/admin/mocks/mock_database_admin_connection.h +++ b/google/cloud/spanner/admin/mocks/mock_database_admin_connection.h @@ -60,6 +60,19 @@ class MockDatabaseAdminConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateDatabase, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateDatabaseRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateDatabase, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetDatabase, (google::spanner::admin::database::v1::GetDatabaseRequest const& request), @@ -72,6 +85,19 @@ class MockDatabaseAdminConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateDatabase, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateDatabase, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -80,6 +106,21 @@ class MockDatabaseAdminConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateDatabaseDdl, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateDatabaseDdl, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(Status, DropDatabase, (google::spanner::admin::database::v1::DropDatabaseRequest const& request), @@ -111,12 +152,36 @@ class MockDatabaseAdminConnection request), (override)); + MOCK_METHOD(StatusOr, CreateBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CreateBackupRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CopyBackup, (google::spanner::admin::database::v1::CopyBackupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CopyBackup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::CopyBackupRequest const& request), + (override)); + + MOCK_METHOD(future>, + CopyBackup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetBackup, (google::spanner::admin::database::v1::GetBackupRequest const& request), @@ -145,6 +210,19 @@ class MockDatabaseAdminConnection request), (override)); + MOCK_METHOD( + StatusOr, RestoreDatabase, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::database::v1::RestoreDatabaseRequest const& + request), + (override)); + + MOCK_METHOD(future>, + RestoreDatabase, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListDatabaseOperations, (google::spanner::admin::database::v1::ListDatabaseOperationsRequest diff --git a/google/cloud/spanner/admin/mocks/mock_instance_admin_connection.h b/google/cloud/spanner/admin/mocks/mock_instance_admin_connection.h index 37e3e9dc9d108..33f60d87ffdd2 100644 --- a/google/cloud/spanner/admin/mocks/mock_instance_admin_connection.h +++ b/google/cloud/spanner/admin/mocks/mock_instance_admin_connection.h @@ -68,6 +68,20 @@ class MockInstanceAdminConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateInstanceConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateInstanceConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateInstanceConfig, @@ -75,6 +89,20 @@ class MockInstanceAdminConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateInstanceConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateInstanceConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( Status, DeleteInstanceConfig, (google::spanner::admin::instance::v1::DeleteInstanceConfigRequest const& @@ -113,6 +141,19 @@ class MockInstanceAdminConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::CreateInstanceRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateInstance, @@ -120,6 +161,19 @@ class MockInstanceAdminConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateInstance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1::UpdateInstanceRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateInstance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( Status, DeleteInstance, (google::spanner::admin::instance::v1::DeleteInstanceRequest const& @@ -153,6 +207,19 @@ class MockInstanceAdminConnection CreateInstancePartitionRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateInstancePartition, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1:: + CreateInstancePartitionRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CreateInstancePartition, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(Status, DeleteInstancePartition, (google::spanner::admin::instance::v1:: DeleteInstancePartitionRequest const& request), @@ -165,6 +232,19 @@ class MockInstanceAdminConnection UpdateInstancePartitionRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateInstancePartition, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::spanner::admin::instance::v1:: + UpdateInstancePartitionRequest const& request), + (override)); + + MOCK_METHOD( + future>, + UpdateInstancePartition, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListInstancePartitionOperations, (google::spanner::admin::instance::v1:: diff --git a/google/cloud/speech/v1/adaptation_connection.h b/google/cloud/speech/v1/adaptation_connection.h index 85a6ab05dcc52..c2f8deaaaefc5 100644 --- a/google/cloud/speech/v1/adaptation_connection.h +++ b/google/cloud/speech/v1/adaptation_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/speech/v1/adaptation_connection_idempotency_policy.h" #include "google/cloud/speech/v1/internal/adaptation_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/speech/v1/internal/speech_connection_impl.cc b/google/cloud/speech/v1/internal/speech_connection_impl.cc index a6f7d7775a35b..c503490a32490 100644 --- a/google/cloud/speech/v1/internal/speech_connection_impl.cc +++ b/google/cloud/speech/v1/internal/speech_connection_impl.cc @@ -115,6 +115,61 @@ SpeechConnectionImpl::LongRunningRecognize( polling_policy(*current), __func__); } +StatusOr +SpeechConnectionImpl::LongRunningRecognize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v1::LongRunningRecognizeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->LongRunningRecognize(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::speech::v1::LongRunningRecognizeRequest const& + request) { + return stub_->LongRunningRecognize(context, options, request); + }, + *current, request, __func__); +} + +future> +SpeechConnectionImpl::LongRunningRecognize( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to LongRunningRecognize", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::speech::v1::LongRunningRecognizeResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::speech::v1::LongRunningRecognizeResponse>, + polling_policy(*current), __func__); +} + std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::speech::v1::StreamingRecognizeRequest, google::cloud::speech::v1::StreamingRecognizeResponse>> diff --git a/google/cloud/speech/v1/internal/speech_connection_impl.h b/google/cloud/speech/v1/internal/speech_connection_impl.h index ff3ff83293f32..3b2badadd9696 100644 --- a/google/cloud/speech/v1/internal/speech_connection_impl.h +++ b/google/cloud/speech/v1/internal/speech_connection_impl.h @@ -58,6 +58,16 @@ class SpeechConnectionImpl : public speech_v1::SpeechConnection { google::cloud::speech::v1::LongRunningRecognizeRequest const& request) override; + StatusOr LongRunningRecognize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v1::LongRunningRecognizeRequest const& request) + override; + + future> + LongRunningRecognize( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::speech::v1::StreamingRecognizeRequest, google::cloud::speech::v1::StreamingRecognizeResponse>> diff --git a/google/cloud/speech/v1/internal/speech_tracing_connection.cc b/google/cloud/speech/v1/internal/speech_tracing_connection.cc index a84222ed62c74..518d8f6dc10ec 100644 --- a/google/cloud/speech/v1/internal/speech_tracing_connection.cc +++ b/google/cloud/speech/v1/internal/speech_tracing_connection.cc @@ -50,6 +50,30 @@ SpeechTracingConnection::LongRunningRecognize( child_->LongRunningRecognize(request)); } +StatusOr +SpeechTracingConnection::LongRunningRecognize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v1::LongRunningRecognizeRequest const& request) { + auto span = + internal::MakeSpan("speech_v1::SpeechConnection::LongRunningRecognize"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->LongRunningRecognize( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpeechTracingConnection::LongRunningRecognize( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("speech_v1::SpeechConnection::LongRunningRecognize"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->LongRunningRecognize( + google::cloud::ExperimentalTag{}, operation)); +} + std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::speech::v1::StreamingRecognizeRequest, google::cloud::speech::v1::StreamingRecognizeResponse>> diff --git a/google/cloud/speech/v1/internal/speech_tracing_connection.h b/google/cloud/speech/v1/internal/speech_tracing_connection.h index 42eb1a2342b55..c6fa37c81d993 100644 --- a/google/cloud/speech/v1/internal/speech_tracing_connection.h +++ b/google/cloud/speech/v1/internal/speech_tracing_connection.h @@ -47,6 +47,16 @@ class SpeechTracingConnection : public speech_v1::SpeechConnection { google::cloud::speech::v1::LongRunningRecognizeRequest const& request) override; + StatusOr LongRunningRecognize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v1::LongRunningRecognizeRequest const& request) + override; + + future> + LongRunningRecognize( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::speech::v1::StreamingRecognizeRequest, google::cloud::speech::v1::StreamingRecognizeResponse>> diff --git a/google/cloud/speech/v1/mocks/mock_speech_connection.h b/google/cloud/speech/v1/mocks/mock_speech_connection.h index 96a6623f190d1..b14c5ce7f6e0b 100644 --- a/google/cloud/speech/v1/mocks/mock_speech_connection.h +++ b/google/cloud/speech/v1/mocks/mock_speech_connection.h @@ -56,6 +56,19 @@ class MockSpeechConnection : public speech_v1::SpeechConnection { (google::cloud::speech::v1::LongRunningRecognizeRequest const& request), (override)); + MOCK_METHOD( + StatusOr, LongRunningRecognize, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v1::LongRunningRecognizeRequest const& request), + (override)); + + MOCK_METHOD( + future>, + LongRunningRecognize, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::speech::v1::StreamingRecognizeRequest, google::cloud::speech::v1::StreamingRecognizeResponse>>), diff --git a/google/cloud/speech/v1/speech_connection.cc b/google/cloud/speech/v1/speech_connection.cc index 1ef8d6cd91a09..54b62e556a54c 100644 --- a/google/cloud/speech/v1/speech_connection.cc +++ b/google/cloud/speech/v1/speech_connection.cc @@ -51,6 +51,21 @@ SpeechConnection::LongRunningRecognize( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SpeechConnection::LongRunningRecognize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v1::LongRunningRecognizeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpeechConnection::LongRunningRecognize(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::speech::v1::StreamingRecognizeRequest, google::cloud::speech::v1::StreamingRecognizeResponse>> diff --git a/google/cloud/speech/v1/speech_connection.h b/google/cloud/speech/v1/speech_connection.h index 24b5a0150de4e..ef7d9d63ce9dd 100644 --- a/google/cloud/speech/v1/speech_connection.h +++ b/google/cloud/speech/v1/speech_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/speech/v1/internal/speech_retry_traits.h" #include "google/cloud/speech/v1/speech_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/async_read_write_stream_impl.h" #include "google/cloud/internal/retry_policy_impl.h" @@ -189,6 +191,15 @@ class SpeechConnection { LongRunningRecognize( google::cloud::speech::v1::LongRunningRecognizeRequest const& request); + virtual StatusOr LongRunningRecognize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v1::LongRunningRecognizeRequest const& request); + + virtual future< + StatusOr> + LongRunningRecognize(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::speech::v1::StreamingRecognizeRequest, google::cloud::speech::v1::StreamingRecognizeResponse>> diff --git a/google/cloud/speech/v2/internal/speech_connection_impl.cc b/google/cloud/speech/v2/internal/speech_connection_impl.cc index f056c6bf599e9..d49f9c5519eb9 100644 --- a/google/cloud/speech/v2/internal/speech_connection_impl.cc +++ b/google/cloud/speech/v2/internal/speech_connection_impl.cc @@ -101,6 +101,58 @@ SpeechConnectionImpl::CreateRecognizer( polling_policy(*current), __func__); } +StatusOr SpeechConnectionImpl::CreateRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreateRecognizerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateRecognizer(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::speech::v2::CreateRecognizerRequest const& request) { + return stub_->CreateRecognizer(context, options, request); + }, + *current, request, __func__); +} + +future> +SpeechConnectionImpl::CreateRecognizer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateRecognizer", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::speech::v2::Recognizer>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::speech::v2::Recognizer>, + polling_policy(*current), __func__); +} + StreamRange SpeechConnectionImpl::ListRecognizers( google::cloud::speech::v2::ListRecognizersRequest request) { @@ -188,6 +240,58 @@ SpeechConnectionImpl::UpdateRecognizer( polling_policy(*current), __func__); } +StatusOr SpeechConnectionImpl::UpdateRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdateRecognizerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateRecognizer(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::speech::v2::UpdateRecognizerRequest const& request) { + return stub_->UpdateRecognizer(context, options, request); + }, + *current, request, __func__); +} + +future> +SpeechConnectionImpl::UpdateRecognizer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateRecognizer", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::speech::v2::Recognizer>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::speech::v2::Recognizer>, + polling_policy(*current), __func__); +} + future> SpeechConnectionImpl::DeleteRecognizer( google::cloud::speech::v2::DeleteRecognizerRequest const& request) { @@ -227,6 +331,58 @@ SpeechConnectionImpl::DeleteRecognizer( polling_policy(*current), __func__); } +StatusOr SpeechConnectionImpl::DeleteRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeleteRecognizerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteRecognizer(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::speech::v2::DeleteRecognizerRequest const& request) { + return stub_->DeleteRecognizer(context, options, request); + }, + *current, request, __func__); +} + +future> +SpeechConnectionImpl::DeleteRecognizer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteRecognizer", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::speech::v2::Recognizer>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::speech::v2::Recognizer>, + polling_policy(*current), __func__); +} + future> SpeechConnectionImpl::UndeleteRecognizer( google::cloud::speech::v2::UndeleteRecognizerRequest const& request) { @@ -266,6 +422,59 @@ SpeechConnectionImpl::UndeleteRecognizer( polling_policy(*current), __func__); } +StatusOr +SpeechConnectionImpl::UndeleteRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeleteRecognizerRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UndeleteRecognizer(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::speech::v2::UndeleteRecognizerRequest const& request) { + return stub_->UndeleteRecognizer(context, options, request); + }, + *current, request, __func__); +} + +future> +SpeechConnectionImpl::UndeleteRecognizer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UndeleteRecognizer", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::speech::v2::Recognizer>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::speech::v2::Recognizer>, + polling_policy(*current), __func__); +} + StatusOr SpeechConnectionImpl::Recognize( google::cloud::speech::v2::RecognizeRequest const& request) { @@ -328,6 +537,58 @@ SpeechConnectionImpl::BatchRecognize( polling_policy(*current), __func__); } +StatusOr SpeechConnectionImpl::BatchRecognize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::BatchRecognizeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchRecognize(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::speech::v2::BatchRecognizeRequest const& request) { + return stub_->BatchRecognize(context, options, request); + }, + *current, request, __func__); +} + +future> +SpeechConnectionImpl::BatchRecognize( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to BatchRecognize", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::speech::v2::BatchRecognizeResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::speech::v2::BatchRecognizeResponse>, + polling_policy(*current), __func__); +} + StatusOr SpeechConnectionImpl::GetConfig( google::cloud::speech::v2::GetConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -393,6 +654,59 @@ SpeechConnectionImpl::CreateCustomClass( polling_policy(*current), __func__); } +StatusOr +SpeechConnectionImpl::CreateCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreateCustomClassRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCustomClass(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::speech::v2::CreateCustomClassRequest const& request) { + return stub_->CreateCustomClass(context, options, request); + }, + *current, request, __func__); +} + +future> +SpeechConnectionImpl::CreateCustomClass( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCustomClass", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::speech::v2::CustomClass>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::speech::v2::CustomClass>, + polling_policy(*current), __func__); +} + StreamRange SpeechConnectionImpl::ListCustomClasses( google::cloud::speech::v2::ListCustomClassesRequest request) { @@ -480,6 +794,59 @@ SpeechConnectionImpl::UpdateCustomClass( polling_policy(*current), __func__); } +StatusOr +SpeechConnectionImpl::UpdateCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdateCustomClassRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCustomClass(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::speech::v2::UpdateCustomClassRequest const& request) { + return stub_->UpdateCustomClass(context, options, request); + }, + *current, request, __func__); +} + +future> +SpeechConnectionImpl::UpdateCustomClass( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCustomClass", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::speech::v2::CustomClass>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::speech::v2::CustomClass>, + polling_policy(*current), __func__); +} + future> SpeechConnectionImpl::DeleteCustomClass( google::cloud::speech::v2::DeleteCustomClassRequest const& request) { @@ -519,6 +886,59 @@ SpeechConnectionImpl::DeleteCustomClass( polling_policy(*current), __func__); } +StatusOr +SpeechConnectionImpl::DeleteCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeleteCustomClassRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCustomClass(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::speech::v2::DeleteCustomClassRequest const& request) { + return stub_->DeleteCustomClass(context, options, request); + }, + *current, request, __func__); +} + +future> +SpeechConnectionImpl::DeleteCustomClass( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCustomClass", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::speech::v2::CustomClass>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::speech::v2::CustomClass>, + polling_policy(*current), __func__); +} + future> SpeechConnectionImpl::UndeleteCustomClass( google::cloud::speech::v2::UndeleteCustomClassRequest const& request) { @@ -559,6 +979,59 @@ SpeechConnectionImpl::UndeleteCustomClass( polling_policy(*current), __func__); } +StatusOr +SpeechConnectionImpl::UndeleteCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeleteCustomClassRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UndeleteCustomClass(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::speech::v2::UndeleteCustomClassRequest const& + request) { + return stub_->UndeleteCustomClass(context, options, request); + }, + *current, request, __func__); +} + +future> +SpeechConnectionImpl::UndeleteCustomClass( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UndeleteCustomClass", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::speech::v2::CustomClass>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::speech::v2::CustomClass>, + polling_policy(*current), __func__); +} + future> SpeechConnectionImpl::CreatePhraseSet( google::cloud::speech::v2::CreatePhraseSetRequest const& request) { @@ -598,6 +1071,57 @@ SpeechConnectionImpl::CreatePhraseSet( polling_policy(*current), __func__); } +StatusOr SpeechConnectionImpl::CreatePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreatePhraseSetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreatePhraseSet(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::speech::v2::CreatePhraseSetRequest const& request) { + return stub_->CreatePhraseSet(context, options, request); + }, + *current, request, __func__); +} + +future> +SpeechConnectionImpl::CreatePhraseSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreatePhraseSet", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::speech::v2::PhraseSet>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::speech::v2::PhraseSet>, + polling_policy(*current), __func__); +} + StreamRange SpeechConnectionImpl::ListPhraseSets( google::cloud::speech::v2::ListPhraseSetsRequest request) { @@ -685,6 +1209,57 @@ SpeechConnectionImpl::UpdatePhraseSet( polling_policy(*current), __func__); } +StatusOr SpeechConnectionImpl::UpdatePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdatePhraseSetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdatePhraseSet(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::speech::v2::UpdatePhraseSetRequest const& request) { + return stub_->UpdatePhraseSet(context, options, request); + }, + *current, request, __func__); +} + +future> +SpeechConnectionImpl::UpdatePhraseSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdatePhraseSet", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::speech::v2::PhraseSet>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::speech::v2::PhraseSet>, + polling_policy(*current), __func__); +} + future> SpeechConnectionImpl::DeletePhraseSet( google::cloud::speech::v2::DeletePhraseSetRequest const& request) { @@ -724,6 +1299,57 @@ SpeechConnectionImpl::DeletePhraseSet( polling_policy(*current), __func__); } +StatusOr SpeechConnectionImpl::DeletePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeletePhraseSetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePhraseSet(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::speech::v2::DeletePhraseSetRequest const& request) { + return stub_->DeletePhraseSet(context, options, request); + }, + *current, request, __func__); +} + +future> +SpeechConnectionImpl::DeletePhraseSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeletePhraseSet", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::speech::v2::PhraseSet>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::speech::v2::PhraseSet>, + polling_policy(*current), __func__); +} + future> SpeechConnectionImpl::UndeletePhraseSet( google::cloud::speech::v2::UndeletePhraseSetRequest const& request) { @@ -763,6 +1389,59 @@ SpeechConnectionImpl::UndeletePhraseSet( polling_policy(*current), __func__); } +StatusOr +SpeechConnectionImpl::UndeletePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeletePhraseSetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UndeletePhraseSet(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::speech::v2::UndeletePhraseSetRequest const& request) { + return stub_->UndeletePhraseSet(context, options, request); + }, + *current, request, __func__); +} + +future> +SpeechConnectionImpl::UndeletePhraseSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UndeletePhraseSet", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::speech::v2::PhraseSet>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::speech::v2::PhraseSet>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace speech_v2_internal } // namespace cloud diff --git a/google/cloud/speech/v2/internal/speech_connection_impl.h b/google/cloud/speech/v2/internal/speech_connection_impl.h index 15d9ca9756325..afc1e82525472 100644 --- a/google/cloud/speech/v2/internal/speech_connection_impl.h +++ b/google/cloud/speech/v2/internal/speech_connection_impl.h @@ -55,6 +55,15 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { google::cloud::speech::v2::CreateRecognizerRequest const& request) override; + StatusOr CreateRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreateRecognizerRequest const& request) + override; + + future> CreateRecognizer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRecognizers( google::cloud::speech::v2::ListRecognizersRequest request) override; @@ -65,14 +74,41 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { google::cloud::speech::v2::UpdateRecognizerRequest const& request) override; + StatusOr UpdateRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdateRecognizerRequest const& request) + override; + + future> UpdateRecognizer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteRecognizer( google::cloud::speech::v2::DeleteRecognizerRequest const& request) override; + StatusOr DeleteRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeleteRecognizerRequest const& request) + override; + + future> DeleteRecognizer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeleteRecognizer( google::cloud::speech::v2::UndeleteRecognizerRequest const& request) override; + StatusOr UndeleteRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeleteRecognizerRequest const& request) + override; + + future> UndeleteRecognizer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr Recognize( google::cloud::speech::v2::RecognizeRequest const& request) override; @@ -85,6 +121,14 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { BatchRecognize( google::cloud::speech::v2::BatchRecognizeRequest const& request) override; + StatusOr BatchRecognize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::BatchRecognizeRequest const& request) override; + + future> + BatchRecognize(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetConfig( google::cloud::speech::v2::GetConfigRequest const& request) override; @@ -95,6 +139,15 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { google::cloud::speech::v2::CreateCustomClassRequest const& request) override; + StatusOr CreateCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreateCustomClassRequest const& request) + override; + + future> CreateCustomClass( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListCustomClasses( google::cloud::speech::v2::ListCustomClassesRequest request) override; @@ -105,18 +158,54 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { google::cloud::speech::v2::UpdateCustomClassRequest const& request) override; + StatusOr UpdateCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdateCustomClassRequest const& request) + override; + + future> UpdateCustomClass( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCustomClass( google::cloud::speech::v2::DeleteCustomClassRequest const& request) override; + StatusOr DeleteCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeleteCustomClassRequest const& request) + override; + + future> DeleteCustomClass( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeleteCustomClass( google::cloud::speech::v2::UndeleteCustomClassRequest const& request) override; + StatusOr UndeleteCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeleteCustomClassRequest const& request) + override; + + future> UndeleteCustomClass( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreatePhraseSet( google::cloud::speech::v2::CreatePhraseSetRequest const& request) override; + StatusOr CreatePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreatePhraseSetRequest const& request) + override; + + future> CreatePhraseSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListPhraseSets( google::cloud::speech::v2::ListPhraseSetsRequest request) override; @@ -127,14 +216,41 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { google::cloud::speech::v2::UpdatePhraseSetRequest const& request) override; + StatusOr UpdatePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdatePhraseSetRequest const& request) + override; + + future> UpdatePhraseSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeletePhraseSet( google::cloud::speech::v2::DeletePhraseSetRequest const& request) override; + StatusOr DeletePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeletePhraseSetRequest const& request) + override; + + future> DeletePhraseSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeletePhraseSet( google::cloud::speech::v2::UndeletePhraseSetRequest const& request) override; + StatusOr UndeletePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeletePhraseSetRequest const& request) + override; + + future> UndeletePhraseSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/speech/v2/internal/speech_tracing_connection.cc b/google/cloud/speech/v2/internal/speech_tracing_connection.cc index a7c4c9561fa37..bbfa6806dd0d8 100644 --- a/google/cloud/speech/v2/internal/speech_tracing_connection.cc +++ b/google/cloud/speech/v2/internal/speech_tracing_connection.cc @@ -42,6 +42,30 @@ SpeechTracingConnection::CreateRecognizer( return internal::EndSpan(std::move(span), child_->CreateRecognizer(request)); } +StatusOr +SpeechTracingConnection::CreateRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreateRecognizerRequest const& request) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::CreateRecognizer"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateRecognizer(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpeechTracingConnection::CreateRecognizer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::CreateRecognizer"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateRecognizer(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange SpeechTracingConnection::ListRecognizers( google::cloud::speech::v2::ListRecognizersRequest request) { @@ -70,6 +94,30 @@ SpeechTracingConnection::UpdateRecognizer( return internal::EndSpan(std::move(span), child_->UpdateRecognizer(request)); } +StatusOr +SpeechTracingConnection::UpdateRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdateRecognizerRequest const& request) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::UpdateRecognizer"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateRecognizer(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpeechTracingConnection::UpdateRecognizer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::UpdateRecognizer"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateRecognizer(google::cloud::ExperimentalTag{}, operation)); +} + future> SpeechTracingConnection::DeleteRecognizer( google::cloud::speech::v2::DeleteRecognizerRequest const& request) { @@ -79,6 +127,30 @@ SpeechTracingConnection::DeleteRecognizer( return internal::EndSpan(std::move(span), child_->DeleteRecognizer(request)); } +StatusOr +SpeechTracingConnection::DeleteRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeleteRecognizerRequest const& request) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::DeleteRecognizer"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteRecognizer(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpeechTracingConnection::DeleteRecognizer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::DeleteRecognizer"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteRecognizer(google::cloud::ExperimentalTag{}, operation)); +} + future> SpeechTracingConnection::UndeleteRecognizer( google::cloud::speech::v2::UndeleteRecognizerRequest const& request) { @@ -89,6 +161,30 @@ SpeechTracingConnection::UndeleteRecognizer( child_->UndeleteRecognizer(request)); } +StatusOr +SpeechTracingConnection::UndeleteRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeleteRecognizerRequest const& request) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::UndeleteRecognizer"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UndeleteRecognizer(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpeechTracingConnection::UndeleteRecognizer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::UndeleteRecognizer"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UndeleteRecognizer(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SpeechTracingConnection::Recognize( google::cloud::speech::v2::RecognizeRequest const& request) { @@ -112,6 +208,28 @@ SpeechTracingConnection::BatchRecognize( return internal::EndSpan(std::move(span), child_->BatchRecognize(request)); } +StatusOr +SpeechTracingConnection::BatchRecognize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::BatchRecognizeRequest const& request) { + auto span = internal::MakeSpan("speech_v2::SpeechConnection::BatchRecognize"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BatchRecognize(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpeechTracingConnection::BatchRecognize( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("speech_v2::SpeechConnection::BatchRecognize"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BatchRecognize(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr SpeechTracingConnection::GetConfig( google::cloud::speech::v2::GetConfigRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::GetConfig"); @@ -136,6 +254,30 @@ SpeechTracingConnection::CreateCustomClass( return internal::EndSpan(std::move(span), child_->CreateCustomClass(request)); } +StatusOr +SpeechTracingConnection::CreateCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreateCustomClassRequest const& request) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::CreateCustomClass"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateCustomClass(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpeechTracingConnection::CreateCustomClass( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::CreateCustomClass"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateCustomClass(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange SpeechTracingConnection::ListCustomClasses( google::cloud::speech::v2::ListCustomClassesRequest request) { @@ -164,6 +306,30 @@ SpeechTracingConnection::UpdateCustomClass( return internal::EndSpan(std::move(span), child_->UpdateCustomClass(request)); } +StatusOr +SpeechTracingConnection::UpdateCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdateCustomClassRequest const& request) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::UpdateCustomClass"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateCustomClass(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpeechTracingConnection::UpdateCustomClass( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::UpdateCustomClass"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateCustomClass(google::cloud::ExperimentalTag{}, operation)); +} + future> SpeechTracingConnection::DeleteCustomClass( google::cloud::speech::v2::DeleteCustomClassRequest const& request) { @@ -173,6 +339,30 @@ SpeechTracingConnection::DeleteCustomClass( return internal::EndSpan(std::move(span), child_->DeleteCustomClass(request)); } +StatusOr +SpeechTracingConnection::DeleteCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeleteCustomClassRequest const& request) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::DeleteCustomClass"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteCustomClass(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpeechTracingConnection::DeleteCustomClass( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::DeleteCustomClass"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteCustomClass(google::cloud::ExperimentalTag{}, operation)); +} + future> SpeechTracingConnection::UndeleteCustomClass( google::cloud::speech::v2::UndeleteCustomClassRequest const& request) { @@ -183,6 +373,30 @@ SpeechTracingConnection::UndeleteCustomClass( child_->UndeleteCustomClass(request)); } +StatusOr +SpeechTracingConnection::UndeleteCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeleteCustomClassRequest const& request) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::UndeleteCustomClass"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UndeleteCustomClass(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpeechTracingConnection::UndeleteCustomClass( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::UndeleteCustomClass"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UndeleteCustomClass(google::cloud::ExperimentalTag{}, operation)); +} + future> SpeechTracingConnection::CreatePhraseSet( google::cloud::speech::v2::CreatePhraseSetRequest const& request) { @@ -192,6 +406,30 @@ SpeechTracingConnection::CreatePhraseSet( return internal::EndSpan(std::move(span), child_->CreatePhraseSet(request)); } +StatusOr +SpeechTracingConnection::CreatePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreatePhraseSetRequest const& request) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::CreatePhraseSet"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreatePhraseSet(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpeechTracingConnection::CreatePhraseSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::CreatePhraseSet"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreatePhraseSet(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange SpeechTracingConnection::ListPhraseSets( google::cloud::speech::v2::ListPhraseSetsRequest request) { @@ -219,6 +457,30 @@ SpeechTracingConnection::UpdatePhraseSet( return internal::EndSpan(std::move(span), child_->UpdatePhraseSet(request)); } +StatusOr +SpeechTracingConnection::UpdatePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdatePhraseSetRequest const& request) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::UpdatePhraseSet"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdatePhraseSet(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpeechTracingConnection::UpdatePhraseSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::UpdatePhraseSet"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdatePhraseSet(google::cloud::ExperimentalTag{}, operation)); +} + future> SpeechTracingConnection::DeletePhraseSet( google::cloud::speech::v2::DeletePhraseSetRequest const& request) { @@ -228,6 +490,30 @@ SpeechTracingConnection::DeletePhraseSet( return internal::EndSpan(std::move(span), child_->DeletePhraseSet(request)); } +StatusOr +SpeechTracingConnection::DeletePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeletePhraseSetRequest const& request) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::DeletePhraseSet"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeletePhraseSet(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpeechTracingConnection::DeletePhraseSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::DeletePhraseSet"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeletePhraseSet(google::cloud::ExperimentalTag{}, operation)); +} + future> SpeechTracingConnection::UndeletePhraseSet( google::cloud::speech::v2::UndeletePhraseSetRequest const& request) { @@ -237,6 +523,30 @@ SpeechTracingConnection::UndeletePhraseSet( return internal::EndSpan(std::move(span), child_->UndeletePhraseSet(request)); } +StatusOr +SpeechTracingConnection::UndeletePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeletePhraseSetRequest const& request) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::UndeletePhraseSet"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UndeletePhraseSet(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +SpeechTracingConnection::UndeletePhraseSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("speech_v2::SpeechConnection::UndeletePhraseSet"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UndeletePhraseSet(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr MakeSpeechTracingConnection( diff --git a/google/cloud/speech/v2/internal/speech_tracing_connection.h b/google/cloud/speech/v2/internal/speech_tracing_connection.h index 53a26e63d6765..8cf6f41e6db34 100644 --- a/google/cloud/speech/v2/internal/speech_tracing_connection.h +++ b/google/cloud/speech/v2/internal/speech_tracing_connection.h @@ -43,6 +43,15 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { google::cloud::speech::v2::CreateRecognizerRequest const& request) override; + StatusOr CreateRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreateRecognizerRequest const& request) + override; + + future> CreateRecognizer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListRecognizers( google::cloud::speech::v2::ListRecognizersRequest request) override; @@ -53,14 +62,41 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { google::cloud::speech::v2::UpdateRecognizerRequest const& request) override; + StatusOr UpdateRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdateRecognizerRequest const& request) + override; + + future> UpdateRecognizer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteRecognizer( google::cloud::speech::v2::DeleteRecognizerRequest const& request) override; + StatusOr DeleteRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeleteRecognizerRequest const& request) + override; + + future> DeleteRecognizer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeleteRecognizer( google::cloud::speech::v2::UndeleteRecognizerRequest const& request) override; + StatusOr UndeleteRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeleteRecognizerRequest const& request) + override; + + future> UndeleteRecognizer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr Recognize( google::cloud::speech::v2::RecognizeRequest const& request) override; @@ -73,6 +109,14 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { BatchRecognize( google::cloud::speech::v2::BatchRecognizeRequest const& request) override; + StatusOr BatchRecognize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::BatchRecognizeRequest const& request) override; + + future> + BatchRecognize(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetConfig( google::cloud::speech::v2::GetConfigRequest const& request) override; @@ -83,6 +127,15 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { google::cloud::speech::v2::CreateCustomClassRequest const& request) override; + StatusOr CreateCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreateCustomClassRequest const& request) + override; + + future> CreateCustomClass( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListCustomClasses( google::cloud::speech::v2::ListCustomClassesRequest request) override; @@ -93,18 +146,54 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { google::cloud::speech::v2::UpdateCustomClassRequest const& request) override; + StatusOr UpdateCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdateCustomClassRequest const& request) + override; + + future> UpdateCustomClass( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCustomClass( google::cloud::speech::v2::DeleteCustomClassRequest const& request) override; + StatusOr DeleteCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeleteCustomClassRequest const& request) + override; + + future> DeleteCustomClass( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeleteCustomClass( google::cloud::speech::v2::UndeleteCustomClassRequest const& request) override; + StatusOr UndeleteCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeleteCustomClassRequest const& request) + override; + + future> UndeleteCustomClass( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreatePhraseSet( google::cloud::speech::v2::CreatePhraseSetRequest const& request) override; + StatusOr CreatePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreatePhraseSetRequest const& request) + override; + + future> CreatePhraseSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListPhraseSets( google::cloud::speech::v2::ListPhraseSetsRequest request) override; @@ -115,14 +204,41 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { google::cloud::speech::v2::UpdatePhraseSetRequest const& request) override; + StatusOr UpdatePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdatePhraseSetRequest const& request) + override; + + future> UpdatePhraseSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeletePhraseSet( google::cloud::speech::v2::DeletePhraseSetRequest const& request) override; + StatusOr DeletePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeletePhraseSetRequest const& request) + override; + + future> DeletePhraseSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeletePhraseSet( google::cloud::speech::v2::UndeletePhraseSetRequest const& request) override; + StatusOr UndeletePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeletePhraseSetRequest const& request) + override; + + future> UndeletePhraseSet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/speech/v2/mocks/mock_speech_connection.h b/google/cloud/speech/v2/mocks/mock_speech_connection.h index 582628973d7a2..bfec7aa255d32 100644 --- a/google/cloud/speech/v2/mocks/mock_speech_connection.h +++ b/google/cloud/speech/v2/mocks/mock_speech_connection.h @@ -51,6 +51,18 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { (google::cloud::speech::v2::CreateRecognizerRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateRecognizer, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreateRecognizerRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateRecognizer, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListRecognizers, (google::cloud::speech::v2::ListRecognizersRequest request), @@ -65,17 +77,53 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { (google::cloud::speech::v2::UpdateRecognizerRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateRecognizer, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdateRecognizerRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateRecognizer, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteRecognizer, (google::cloud::speech::v2::DeleteRecognizerRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteRecognizer, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeleteRecognizerRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteRecognizer, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UndeleteRecognizer, (google::cloud::speech::v2::UndeleteRecognizerRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UndeleteRecognizer, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeleteRecognizerRequest const& request), + (override)); + + MOCK_METHOD(future>, + UndeleteRecognizer, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, Recognize, (google::cloud::speech::v2::RecognizeRequest const& request), (override)); @@ -91,6 +139,18 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { (google::cloud::speech::v2::BatchRecognizeRequest const& request), (override)); + MOCK_METHOD(StatusOr, BatchRecognize, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::BatchRecognizeRequest const& request), + (override)); + + MOCK_METHOD( + future>, + BatchRecognize, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetConfig, (google::cloud::speech::v2::GetConfigRequest const& request), (override)); @@ -105,6 +165,18 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { (google::cloud::speech::v2::CreateCustomClassRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateCustomClass, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreateCustomClassRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateCustomClass, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListCustomClasses, (google::cloud::speech::v2::ListCustomClassesRequest request), @@ -120,23 +192,71 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { (google::cloud::speech::v2::UpdateCustomClassRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateCustomClass, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdateCustomClassRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateCustomClass, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteCustomClass, (google::cloud::speech::v2::DeleteCustomClassRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteCustomClass, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeleteCustomClassRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteCustomClass, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UndeleteCustomClass, (google::cloud::speech::v2::UndeleteCustomClassRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UndeleteCustomClass, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeleteCustomClassRequest const& request), + (override)); + + MOCK_METHOD(future>, + UndeleteCustomClass, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreatePhraseSet, (google::cloud::speech::v2::CreatePhraseSetRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreatePhraseSet, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreatePhraseSetRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreatePhraseSet, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListPhraseSets, (google::cloud::speech::v2::ListPhraseSetsRequest request), @@ -151,15 +271,51 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { (google::cloud::speech::v2::UpdatePhraseSetRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdatePhraseSet, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdatePhraseSetRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdatePhraseSet, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeletePhraseSet, (google::cloud::speech::v2::DeletePhraseSetRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeletePhraseSet, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeletePhraseSetRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeletePhraseSet, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UndeletePhraseSet, (google::cloud::speech::v2::UndeletePhraseSetRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, UndeletePhraseSet, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeletePhraseSetRequest const& request), + (override)); + + MOCK_METHOD(future>, + UndeletePhraseSet, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/speech/v2/speech_connection.cc b/google/cloud/speech/v2/speech_connection.cc index dc42f03d72bc6..2d37b1f51a406 100644 --- a/google/cloud/speech/v2/speech_connection.cc +++ b/google/cloud/speech/v2/speech_connection.cc @@ -46,6 +46,21 @@ SpeechConnection::CreateRecognizer( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SpeechConnection::CreateRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreateRecognizerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpeechConnection::CreateRecognizer(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange SpeechConnection::ListRecognizers( google::cloud::speech::v2:: @@ -67,6 +82,21 @@ SpeechConnection::UpdateRecognizer( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SpeechConnection::UpdateRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdateRecognizerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpeechConnection::UpdateRecognizer(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SpeechConnection::DeleteRecognizer( google::cloud::speech::v2::DeleteRecognizerRequest const&) { @@ -75,6 +105,21 @@ SpeechConnection::DeleteRecognizer( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SpeechConnection::DeleteRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeleteRecognizerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpeechConnection::DeleteRecognizer(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SpeechConnection::UndeleteRecognizer( google::cloud::speech::v2::UndeleteRecognizerRequest const&) { @@ -83,6 +128,21 @@ SpeechConnection::UndeleteRecognizer( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SpeechConnection::UndeleteRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeleteRecognizerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpeechConnection::UndeleteRecognizer(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SpeechConnection::Recognize( google::cloud::speech::v2::RecognizeRequest const&) { @@ -108,6 +168,21 @@ SpeechConnection::BatchRecognize( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SpeechConnection::BatchRecognize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::BatchRecognizeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpeechConnection::BatchRecognize(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr SpeechConnection::GetConfig( google::cloud::speech::v2::GetConfigRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -126,6 +201,21 @@ SpeechConnection::CreateCustomClass( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SpeechConnection::CreateCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreateCustomClassRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpeechConnection::CreateCustomClass(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange SpeechConnection::ListCustomClasses( google::cloud::speech::v2:: @@ -148,6 +238,21 @@ SpeechConnection::UpdateCustomClass( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SpeechConnection::UpdateCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdateCustomClassRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpeechConnection::UpdateCustomClass(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SpeechConnection::DeleteCustomClass( google::cloud::speech::v2::DeleteCustomClassRequest const&) { @@ -156,6 +261,21 @@ SpeechConnection::DeleteCustomClass( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SpeechConnection::DeleteCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeleteCustomClassRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpeechConnection::DeleteCustomClass(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SpeechConnection::UndeleteCustomClass( google::cloud::speech::v2::UndeleteCustomClassRequest const&) { @@ -164,6 +284,21 @@ SpeechConnection::UndeleteCustomClass( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SpeechConnection::UndeleteCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeleteCustomClassRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpeechConnection::UndeleteCustomClass(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SpeechConnection::CreatePhraseSet( google::cloud::speech::v2::CreatePhraseSetRequest const&) { @@ -172,6 +307,21 @@ SpeechConnection::CreatePhraseSet( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SpeechConnection::CreatePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreatePhraseSetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpeechConnection::CreatePhraseSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange SpeechConnection::ListPhraseSets( google::cloud::speech::v2:: @@ -193,6 +343,21 @@ SpeechConnection::UpdatePhraseSet( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SpeechConnection::UpdatePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdatePhraseSetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpeechConnection::UpdatePhraseSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SpeechConnection::DeletePhraseSet( google::cloud::speech::v2::DeletePhraseSetRequest const&) { @@ -201,6 +366,21 @@ SpeechConnection::DeletePhraseSet( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SpeechConnection::DeletePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeletePhraseSetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpeechConnection::DeletePhraseSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> SpeechConnection::UndeletePhraseSet( google::cloud::speech::v2::UndeletePhraseSetRequest const&) { @@ -209,6 +389,21 @@ SpeechConnection::UndeletePhraseSet( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr SpeechConnection::UndeletePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeletePhraseSetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +SpeechConnection::UndeletePhraseSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeSpeechConnection( std::string const& location, Options options) { internal::CheckExpectedOptions CreateRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreateRecognizerRequest const& request); + + virtual future> + CreateRecognizer(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListRecognizers( google::cloud::speech::v2::ListRecognizersRequest request); @@ -197,14 +207,38 @@ class SpeechConnection { UpdateRecognizer( google::cloud::speech::v2::UpdateRecognizerRequest const& request); + virtual StatusOr UpdateRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdateRecognizerRequest const& request); + + virtual future> + UpdateRecognizer(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteRecognizer( google::cloud::speech::v2::DeleteRecognizerRequest const& request); + virtual StatusOr DeleteRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeleteRecognizerRequest const& request); + + virtual future> + DeleteRecognizer(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UndeleteRecognizer( google::cloud::speech::v2::UndeleteRecognizerRequest const& request); + virtual StatusOr UndeleteRecognizer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeleteRecognizerRequest const& request); + + virtual future> + UndeleteRecognizer(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr Recognize( google::cloud::speech::v2::RecognizeRequest const& request); @@ -217,6 +251,14 @@ class SpeechConnection { BatchRecognize( google::cloud::speech::v2::BatchRecognizeRequest const& request); + virtual StatusOr BatchRecognize( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::BatchRecognizeRequest const& request); + + virtual future> + BatchRecognize(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetConfig( google::cloud::speech::v2::GetConfigRequest const& request); @@ -227,6 +269,14 @@ class SpeechConnection { CreateCustomClass( google::cloud::speech::v2::CreateCustomClassRequest const& request); + virtual StatusOr CreateCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreateCustomClassRequest const& request); + + virtual future> + CreateCustomClass(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListCustomClasses( google::cloud::speech::v2::ListCustomClassesRequest request); @@ -237,18 +287,50 @@ class SpeechConnection { UpdateCustomClass( google::cloud::speech::v2::UpdateCustomClassRequest const& request); + virtual StatusOr UpdateCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdateCustomClassRequest const& request); + + virtual future> + UpdateCustomClass(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteCustomClass( google::cloud::speech::v2::DeleteCustomClassRequest const& request); + virtual StatusOr DeleteCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeleteCustomClassRequest const& request); + + virtual future> + DeleteCustomClass(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UndeleteCustomClass( google::cloud::speech::v2::UndeleteCustomClassRequest const& request); + virtual StatusOr UndeleteCustomClass( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeleteCustomClassRequest const& request); + + virtual future> + UndeleteCustomClass(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreatePhraseSet( google::cloud::speech::v2::CreatePhraseSetRequest const& request); + virtual StatusOr CreatePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::CreatePhraseSetRequest const& request); + + virtual future> + CreatePhraseSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListPhraseSets( google::cloud::speech::v2::ListPhraseSetsRequest request); @@ -259,13 +341,37 @@ class SpeechConnection { UpdatePhraseSet( google::cloud::speech::v2::UpdatePhraseSetRequest const& request); + virtual StatusOr UpdatePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UpdatePhraseSetRequest const& request); + + virtual future> + UpdatePhraseSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeletePhraseSet( google::cloud::speech::v2::DeletePhraseSetRequest const& request); + virtual StatusOr DeletePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::DeletePhraseSetRequest const& request); + + virtual future> + DeletePhraseSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UndeletePhraseSet( google::cloud::speech::v2::UndeletePhraseSetRequest const& request); + + virtual StatusOr UndeletePhraseSet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::speech::v2::UndeletePhraseSetRequest const& request); + + virtual future> + UndeletePhraseSet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/sql/v1/sql_available_database_versions_connection.h b/google/cloud/sql/v1/sql_available_database_versions_connection.h index 6576fac464dec..fd043d8bb58c5 100644 --- a/google/cloud/sql/v1/sql_available_database_versions_connection.h +++ b/google/cloud/sql/v1/sql_available_database_versions_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/sql/v1/internal/sql_available_database_versions_retry_traits.h" #include "google/cloud/sql/v1/sql_available_database_versions_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/sql/v1/sql_backup_runs_connection.h b/google/cloud/sql/v1/sql_backup_runs_connection.h index efcd57cd843fd..f850396b999d3 100644 --- a/google/cloud/sql/v1/sql_backup_runs_connection.h +++ b/google/cloud/sql/v1/sql_backup_runs_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/sql/v1/internal/sql_backup_runs_retry_traits.h" #include "google/cloud/sql/v1/sql_backup_runs_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/sql/v1/sql_connect_connection.h b/google/cloud/sql/v1/sql_connect_connection.h index 774ae47a898d4..121f877f0b833 100644 --- a/google/cloud/sql/v1/sql_connect_connection.h +++ b/google/cloud/sql/v1/sql_connect_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/sql/v1/internal/sql_connect_retry_traits.h" #include "google/cloud/sql/v1/sql_connect_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/sql/v1/sql_databases_connection.h b/google/cloud/sql/v1/sql_databases_connection.h index 504b9dca07ae0..e8fa5cec3a6a8 100644 --- a/google/cloud/sql/v1/sql_databases_connection.h +++ b/google/cloud/sql/v1/sql_databases_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/sql/v1/internal/sql_databases_retry_traits.h" #include "google/cloud/sql/v1/sql_databases_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/sql/v1/sql_events_connection.h b/google/cloud/sql/v1/sql_events_connection.h index 722f9fa85596f..90c821f68a7bc 100644 --- a/google/cloud/sql/v1/sql_events_connection.h +++ b/google/cloud/sql/v1/sql_events_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/sql/v1/internal/sql_events_retry_traits.h" #include "google/cloud/sql/v1/sql_events_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/sql/v1/sql_flags_connection.h b/google/cloud/sql/v1/sql_flags_connection.h index 1f43563e386af..3d0e738031106 100644 --- a/google/cloud/sql/v1/sql_flags_connection.h +++ b/google/cloud/sql/v1/sql_flags_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/sql/v1/internal/sql_flags_retry_traits.h" #include "google/cloud/sql/v1/sql_flags_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/sql/v1/sql_iam_policies_connection.h b/google/cloud/sql/v1/sql_iam_policies_connection.h index 4e3bb2d488d49..55f706e9d60c4 100644 --- a/google/cloud/sql/v1/sql_iam_policies_connection.h +++ b/google/cloud/sql/v1/sql_iam_policies_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/sql/v1/internal/sql_iam_policies_retry_traits.h" #include "google/cloud/sql/v1/sql_iam_policies_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/sql/v1/sql_instance_names_connection.h b/google/cloud/sql/v1/sql_instance_names_connection.h index c9886606e6633..c1a8a1fd00444 100644 --- a/google/cloud/sql/v1/sql_instance_names_connection.h +++ b/google/cloud/sql/v1/sql_instance_names_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/sql/v1/internal/sql_instance_names_retry_traits.h" #include "google/cloud/sql/v1/sql_instance_names_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/sql/v1/sql_instances_connection.h b/google/cloud/sql/v1/sql_instances_connection.h index f60d5e083112b..8769e87be9ee4 100644 --- a/google/cloud/sql/v1/sql_instances_connection.h +++ b/google/cloud/sql/v1/sql_instances_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/sql/v1/internal/sql_instances_retry_traits.h" #include "google/cloud/sql/v1/sql_instances_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/sql/v1/sql_operations_connection.h b/google/cloud/sql/v1/sql_operations_connection.h index 308c5c0d0a6dc..43cf2fc145c96 100644 --- a/google/cloud/sql/v1/sql_operations_connection.h +++ b/google/cloud/sql/v1/sql_operations_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/sql/v1/internal/sql_operations_retry_traits.h" #include "google/cloud/sql/v1/sql_operations_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/sql/v1/sql_regions_connection.h b/google/cloud/sql/v1/sql_regions_connection.h index 49a891c1ba1d6..542579d780963 100644 --- a/google/cloud/sql/v1/sql_regions_connection.h +++ b/google/cloud/sql/v1/sql_regions_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/sql/v1/internal/sql_regions_retry_traits.h" #include "google/cloud/sql/v1/sql_regions_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/sql/v1/sql_ssl_certs_connection.h b/google/cloud/sql/v1/sql_ssl_certs_connection.h index 72c02c2404fdc..d14bccbc4542f 100644 --- a/google/cloud/sql/v1/sql_ssl_certs_connection.h +++ b/google/cloud/sql/v1/sql_ssl_certs_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/sql/v1/internal/sql_ssl_certs_retry_traits.h" #include "google/cloud/sql/v1/sql_ssl_certs_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/sql/v1/sql_tiers_connection.h b/google/cloud/sql/v1/sql_tiers_connection.h index 2f911d7176dd2..014ba1ed5a4d8 100644 --- a/google/cloud/sql/v1/sql_tiers_connection.h +++ b/google/cloud/sql/v1/sql_tiers_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/sql/v1/internal/sql_tiers_retry_traits.h" #include "google/cloud/sql/v1/sql_tiers_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/sql/v1/sql_users_connection.h b/google/cloud/sql/v1/sql_users_connection.h index c46c470fe8d31..186dca2c0cf68 100644 --- a/google/cloud/sql/v1/sql_users_connection.h +++ b/google/cloud/sql/v1/sql_users_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/sql/v1/internal/sql_users_retry_traits.h" #include "google/cloud/sql/v1/sql_users_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.cc b/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.cc index 69a2035ef0186..83d68658228db 100644 --- a/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.cc +++ b/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.cc @@ -196,6 +196,58 @@ StorageControlConnectionImpl::RenameFolder( polling_policy(*current), __func__); } +StatusOr +StorageControlConnectionImpl::RenameFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::storage::control::v2::RenameFolderRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RenameFolder(request), + [this](grpc::ClientContext& context, Options const& options, + google::storage::control::v2::RenameFolderRequest const& request) { + return stub_->RenameFolder(context, options, request); + }, + *current, request, __func__); +} + +future> +StorageControlConnectionImpl::RenameFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to RenameFolder", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::storage::control::v2::Folder>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::storage::control::v2::Folder>, + polling_policy(*current), __func__); +} + StatusOr StorageControlConnectionImpl::GetStorageLayout( google::storage::control::v2::GetStorageLayoutRequest const& request) { diff --git a/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.h b/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.h index 66e79cf95748d..61f63ab933d5b 100644 --- a/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.h +++ b/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.h @@ -70,6 +70,15 @@ class StorageControlConnectionImpl google::storage::control::v2::RenameFolderRequest const& request) override; + StatusOr RenameFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::storage::control::v2::RenameFolderRequest const& request) + override; + + future> RenameFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetStorageLayout( google::storage::control::v2::GetStorageLayoutRequest const& request) override; diff --git a/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.cc b/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.cc index d1bebbd5b3fd5..0e4453d25f68d 100644 --- a/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.cc +++ b/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.cc @@ -79,6 +79,30 @@ StorageControlTracingConnection::RenameFolder( return internal::EndSpan(std::move(span), child_->RenameFolder(request)); } +StatusOr +StorageControlTracingConnection::RenameFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::storage::control::v2::RenameFolderRequest const& request) { + auto span = internal::MakeSpan( + "storagecontrol_v2::StorageControlConnection::RenameFolder"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RenameFolder(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +StorageControlTracingConnection::RenameFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "storagecontrol_v2::StorageControlConnection::RenameFolder"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RenameFolder(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr StorageControlTracingConnection::GetStorageLayout( google::storage::control::v2::GetStorageLayoutRequest const& request) { diff --git a/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.h b/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.h index 661eb1dfd5938..3a5accd7c412c 100644 --- a/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.h +++ b/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.h @@ -57,6 +57,15 @@ class StorageControlTracingConnection google::storage::control::v2::RenameFolderRequest const& request) override; + StatusOr RenameFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::storage::control::v2::RenameFolderRequest const& request) + override; + + future> RenameFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetStorageLayout( google::storage::control::v2::GetStorageLayoutRequest const& request) override; diff --git a/google/cloud/storagecontrol/v2/mocks/mock_storage_control_connection.h b/google/cloud/storagecontrol/v2/mocks/mock_storage_control_connection.h index 42eea3e991590..505281fbd164d 100644 --- a/google/cloud/storagecontrol/v2/mocks/mock_storage_control_connection.h +++ b/google/cloud/storagecontrol/v2/mocks/mock_storage_control_connection.h @@ -70,6 +70,18 @@ class MockStorageControlConnection (google::storage::control::v2::RenameFolderRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RenameFolder, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::storage::control::v2::RenameFolderRequest const& request), + (override)); + + MOCK_METHOD(future>, + RenameFolder, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetStorageLayout, (google::storage::control::v2::GetStorageLayoutRequest const& request), diff --git a/google/cloud/storagecontrol/v2/storage_control_connection.cc b/google/cloud/storagecontrol/v2/storage_control_connection.cc index 00bb387d2301c..433799ee5b697 100644 --- a/google/cloud/storagecontrol/v2/storage_control_connection.cc +++ b/google/cloud/storagecontrol/v2/storage_control_connection.cc @@ -71,6 +71,21 @@ StorageControlConnection::RenameFolder( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr StorageControlConnection::RenameFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::storage::control::v2::RenameFolderRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +StorageControlConnection::RenameFolder(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr StorageControlConnection::GetStorageLayout( google::storage::control::v2::GetStorageLayoutRequest const&) { diff --git a/google/cloud/storagecontrol/v2/storage_control_connection.h b/google/cloud/storagecontrol/v2/storage_control_connection.h index b47eadfa64845..2682d38fe3faa 100644 --- a/google/cloud/storagecontrol/v2/storage_control_connection.h +++ b/google/cloud/storagecontrol/v2/storage_control_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/storagecontrol/v2/internal/storage_control_retry_traits.h" #include "google/cloud/storagecontrol/v2/storage_control_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -208,6 +210,14 @@ class StorageControlConnection { virtual future> RenameFolder( google::storage::control::v2::RenameFolderRequest const& request); + virtual StatusOr RenameFolder( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::storage::control::v2::RenameFolderRequest const& request); + + virtual future> RenameFolder( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetStorageLayout( google::storage::control::v2::GetStorageLayoutRequest const& request); diff --git a/google/cloud/storageinsights/v1/storage_insights_connection.h b/google/cloud/storageinsights/v1/storage_insights_connection.h index c788c33c0579e..80b41a0091284 100644 --- a/google/cloud/storageinsights/v1/storage_insights_connection.h +++ b/google/cloud/storageinsights/v1/storage_insights_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/storageinsights/v1/internal/storage_insights_retry_traits.h" #include "google/cloud/storageinsights/v1/storage_insights_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.cc b/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.cc index 02b57d814fecc..7cdeb650a70af 100644 --- a/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.cc +++ b/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.cc @@ -237,6 +237,60 @@ StorageTransferServiceConnectionImpl::RunTransferJob( polling_policy(*current), __func__); } +StatusOr +StorageTransferServiceConnectionImpl::RunTransferJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::storagetransfer::v1::RunTransferJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RunTransferJob(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::storagetransfer::v1::RunTransferJobRequest const& request) { + return stub_->RunTransferJob(context, options, request); + }, + *current, request, __func__); +} + +future> +StorageTransferServiceConnectionImpl::RunTransferJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RunTransferJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::storagetransfer::v1::TransferOperation>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::storagetransfer::v1::TransferOperation>, + polling_policy(*current), __func__); +} + Status StorageTransferServiceConnectionImpl::DeleteTransferJob( google::storagetransfer::v1::DeleteTransferJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.h b/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.h index e5b6052bd9a54..334b50ca33211 100644 --- a/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.h +++ b/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.h @@ -85,6 +85,15 @@ class StorageTransferServiceConnectionImpl RunTransferJob(google::storagetransfer::v1::RunTransferJobRequest const& request) override; + StatusOr RunTransferJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::storagetransfer::v1::RunTransferJobRequest const& request) + override; + + future> + RunTransferJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteTransferJob( google::storagetransfer::v1::DeleteTransferJobRequest const& request) override; diff --git a/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.cc b/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.cc index 64ca84e47d25f..331a31e573af1 100644 --- a/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.cc +++ b/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.cc @@ -114,6 +114,30 @@ StorageTransferServiceTracingConnection::RunTransferJob( return internal::EndSpan(std::move(span), child_->RunTransferJob(request)); } +StatusOr +StorageTransferServiceTracingConnection::RunTransferJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::storagetransfer::v1::RunTransferJobRequest const& request) { + auto span = internal::MakeSpan( + "storagetransfer_v1::StorageTransferServiceConnection::RunTransferJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->RunTransferJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +StorageTransferServiceTracingConnection::RunTransferJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "storagetransfer_v1::StorageTransferServiceConnection::RunTransferJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->RunTransferJob(google::cloud::ExperimentalTag{}, operation)); +} + Status StorageTransferServiceTracingConnection::DeleteTransferJob( google::storagetransfer::v1::DeleteTransferJobRequest const& request) { auto span = internal::MakeSpan( diff --git a/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.h b/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.h index 1d30e2df92729..dbfd1b8da0fe3 100644 --- a/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.h +++ b/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.h @@ -73,6 +73,15 @@ class StorageTransferServiceTracingConnection RunTransferJob(google::storagetransfer::v1::RunTransferJobRequest const& request) override; + StatusOr RunTransferJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::storagetransfer::v1::RunTransferJobRequest const& request) + override; + + future> + RunTransferJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteTransferJob( google::storagetransfer::v1::DeleteTransferJobRequest const& request) override; diff --git a/google/cloud/storagetransfer/v1/mocks/mock_storage_transfer_connection.h b/google/cloud/storagetransfer/v1/mocks/mock_storage_transfer_connection.h index 42d8aa6ab354d..122bc8ee14817 100644 --- a/google/cloud/storagetransfer/v1/mocks/mock_storage_transfer_connection.h +++ b/google/cloud/storagetransfer/v1/mocks/mock_storage_transfer_connection.h @@ -91,6 +91,18 @@ class MockStorageTransferServiceConnection (google::storagetransfer::v1::RunTransferJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, RunTransferJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::storagetransfer::v1::RunTransferJobRequest const& request), + (override)); + + MOCK_METHOD(future>, + RunTransferJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( Status, DeleteTransferJob, (google::storagetransfer::v1::DeleteTransferJobRequest const& request), diff --git a/google/cloud/storagetransfer/v1/storage_transfer_connection.cc b/google/cloud/storagetransfer/v1/storage_transfer_connection.cc index b63056433c832..a5ad28f6a68bf 100644 --- a/google/cloud/storagetransfer/v1/storage_transfer_connection.cc +++ b/google/cloud/storagetransfer/v1/storage_transfer_connection.cc @@ -88,6 +88,22 @@ StorageTransferServiceConnection::RunTransferJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +StorageTransferServiceConnection::RunTransferJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::storagetransfer::v1::RunTransferJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +StorageTransferServiceConnection::RunTransferJob( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status StorageTransferServiceConnection::DeleteTransferJob( google::storagetransfer::v1::DeleteTransferJobRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); diff --git a/google/cloud/storagetransfer/v1/storage_transfer_connection.h b/google/cloud/storagetransfer/v1/storage_transfer_connection.h index 92aa6890ef16f..49860abfac82c 100644 --- a/google/cloud/storagetransfer/v1/storage_transfer_connection.h +++ b/google/cloud/storagetransfer/v1/storage_transfer_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/storagetransfer/v1/internal/storage_transfer_retry_traits.h" #include "google/cloud/storagetransfer/v1/storage_transfer_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -222,6 +224,14 @@ class StorageTransferServiceConnection { RunTransferJob( google::storagetransfer::v1::RunTransferJobRequest const& request); + virtual StatusOr RunTransferJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::storagetransfer::v1::RunTransferJobRequest const& request); + + virtual future> + RunTransferJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status DeleteTransferJob( google::storagetransfer::v1::DeleteTransferJobRequest const& request); diff --git a/google/cloud/support/v2/case_attachment_connection.h b/google/cloud/support/v2/case_attachment_connection.h index cbb912a173e51..f9d9b17e880e4 100644 --- a/google/cloud/support/v2/case_attachment_connection.h +++ b/google/cloud/support/v2/case_attachment_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/support/v2/case_attachment_connection_idempotency_policy.h" #include "google/cloud/support/v2/internal/case_attachment_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/support/v2/case_connection.h b/google/cloud/support/v2/case_connection.h index d3f8a93246066..33381b1723c8d 100644 --- a/google/cloud/support/v2/case_connection.h +++ b/google/cloud/support/v2/case_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/support/v2/case_connection_idempotency_policy.h" #include "google/cloud/support/v2/internal/case_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/support/v2/comment_connection.h b/google/cloud/support/v2/comment_connection.h index 05673b43ea1aa..71f8e26ede12e 100644 --- a/google/cloud/support/v2/comment_connection.h +++ b/google/cloud/support/v2/comment_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/support/v2/comment_connection_idempotency_policy.h" #include "google/cloud/support/v2/internal/comment_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/talent/v4/company_connection.h b/google/cloud/talent/v4/company_connection.h index a107ff041fe03..56f965f2b0448 100644 --- a/google/cloud/talent/v4/company_connection.h +++ b/google/cloud/talent/v4/company_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/talent/v4/company_connection_idempotency_policy.h" #include "google/cloud/talent/v4/internal/company_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/talent/v4/completion_connection.h b/google/cloud/talent/v4/completion_connection.h index c17847cc053dd..c1d59e34bc6c8 100644 --- a/google/cloud/talent/v4/completion_connection.h +++ b/google/cloud/talent/v4/completion_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/talent/v4/completion_connection_idempotency_policy.h" #include "google/cloud/talent/v4/internal/completion_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/talent/v4/event_connection.h b/google/cloud/talent/v4/event_connection.h index 9d95989d6cd34..231795a2ae807 100644 --- a/google/cloud/talent/v4/event_connection.h +++ b/google/cloud/talent/v4/event_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/talent/v4/event_connection_idempotency_policy.h" #include "google/cloud/talent/v4/internal/event_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/talent/v4/internal/job_connection_impl.cc b/google/cloud/talent/v4/internal/job_connection_impl.cc index 0c0fcea0478ee..b73fda7543a51 100644 --- a/google/cloud/talent/v4/internal/job_connection_impl.cc +++ b/google/cloud/talent/v4/internal/job_connection_impl.cc @@ -114,6 +114,59 @@ JobServiceConnectionImpl::BatchCreateJobs( polling_policy(*current), __func__); } +StatusOr +JobServiceConnectionImpl::BatchCreateJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchCreateJobsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchCreateJobs(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::talent::v4::BatchCreateJobsRequest const& request) { + return stub_->BatchCreateJobs(context, options, request); + }, + *current, request, __func__); +} + +future> +JobServiceConnectionImpl::BatchCreateJobs( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to BatchCreateJobs", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::talent::v4::BatchCreateJobsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::talent::v4::BatchCreateJobsResponse>, + polling_policy(*current), __func__); +} + StatusOr JobServiceConnectionImpl::GetJob( google::cloud::talent::v4::GetJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -179,6 +232,59 @@ JobServiceConnectionImpl::BatchUpdateJobs( polling_policy(*current), __func__); } +StatusOr +JobServiceConnectionImpl::BatchUpdateJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchUpdateJobsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchUpdateJobs(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::talent::v4::BatchUpdateJobsRequest const& request) { + return stub_->BatchUpdateJobs(context, options, request); + }, + *current, request, __func__); +} + +future> +JobServiceConnectionImpl::BatchUpdateJobs( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to BatchUpdateJobs", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::talent::v4::BatchUpdateJobsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::talent::v4::BatchUpdateJobsResponse>, + polling_policy(*current), __func__); +} + Status JobServiceConnectionImpl::DeleteJob( google::cloud::talent::v4::DeleteJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -231,6 +337,59 @@ JobServiceConnectionImpl::BatchDeleteJobs( polling_policy(*current), __func__); } +StatusOr +JobServiceConnectionImpl::BatchDeleteJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchDeleteJobsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchDeleteJobs(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::talent::v4::BatchDeleteJobsRequest const& request) { + return stub_->BatchDeleteJobs(context, options, request); + }, + *current, request, __func__); +} + +future> +JobServiceConnectionImpl::BatchDeleteJobs( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to BatchDeleteJobs", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::talent::v4::BatchDeleteJobsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::talent::v4::BatchDeleteJobsResponse>, + polling_policy(*current), __func__); +} + StreamRange JobServiceConnectionImpl::ListJobs( google::cloud::talent::v4::ListJobsRequest request) { request.clear_page_token(); diff --git a/google/cloud/talent/v4/internal/job_connection_impl.h b/google/cloud/talent/v4/internal/job_connection_impl.h index d03b38dda045c..76dade93cd41f 100644 --- a/google/cloud/talent/v4/internal/job_connection_impl.h +++ b/google/cloud/talent/v4/internal/job_connection_impl.h @@ -58,6 +58,15 @@ class JobServiceConnectionImpl : public talent_v4::JobServiceConnection { BatchCreateJobs(google::cloud::talent::v4::BatchCreateJobsRequest const& request) override; + StatusOr BatchCreateJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchCreateJobsRequest const& request) + override; + + future> + BatchCreateJobs(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetJob( google::cloud::talent::v4::GetJobRequest const& request) override; @@ -68,6 +77,15 @@ class JobServiceConnectionImpl : public talent_v4::JobServiceConnection { BatchUpdateJobs(google::cloud::talent::v4::BatchUpdateJobsRequest const& request) override; + StatusOr BatchUpdateJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchUpdateJobsRequest const& request) + override; + + future> + BatchUpdateJobs(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteJob( google::cloud::talent::v4::DeleteJobRequest const& request) override; @@ -75,6 +93,15 @@ class JobServiceConnectionImpl : public talent_v4::JobServiceConnection { BatchDeleteJobs(google::cloud::talent::v4::BatchDeleteJobsRequest const& request) override; + StatusOr BatchDeleteJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchDeleteJobsRequest const& request) + override; + + future> + BatchDeleteJobs(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListJobs( google::cloud::talent::v4::ListJobsRequest request) override; diff --git a/google/cloud/talent/v4/internal/job_tracing_connection.cc b/google/cloud/talent/v4/internal/job_tracing_connection.cc index 5acb764ac7b20..7f6d67e85e0f5 100644 --- a/google/cloud/talent/v4/internal/job_tracing_connection.cc +++ b/google/cloud/talent/v4/internal/job_tracing_connection.cc @@ -49,6 +49,30 @@ JobServiceTracingConnection::BatchCreateJobs( return internal::EndSpan(std::move(span), child_->BatchCreateJobs(request)); } +StatusOr +JobServiceTracingConnection::BatchCreateJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchCreateJobsRequest const& request) { + auto span = + internal::MakeSpan("talent_v4::JobServiceConnection::BatchCreateJobs"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BatchCreateJobs(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +JobServiceTracingConnection::BatchCreateJobs( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("talent_v4::JobServiceConnection::BatchCreateJobs"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BatchCreateJobs(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr JobServiceTracingConnection::GetJob( google::cloud::talent::v4::GetJobRequest const& request) { auto span = internal::MakeSpan("talent_v4::JobServiceConnection::GetJob"); @@ -72,6 +96,30 @@ JobServiceTracingConnection::BatchUpdateJobs( return internal::EndSpan(std::move(span), child_->BatchUpdateJobs(request)); } +StatusOr +JobServiceTracingConnection::BatchUpdateJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchUpdateJobsRequest const& request) { + auto span = + internal::MakeSpan("talent_v4::JobServiceConnection::BatchUpdateJobs"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BatchUpdateJobs(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +JobServiceTracingConnection::BatchUpdateJobs( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("talent_v4::JobServiceConnection::BatchUpdateJobs"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BatchUpdateJobs(google::cloud::ExperimentalTag{}, operation)); +} + Status JobServiceTracingConnection::DeleteJob( google::cloud::talent::v4::DeleteJobRequest const& request) { auto span = internal::MakeSpan("talent_v4::JobServiceConnection::DeleteJob"); @@ -88,6 +136,30 @@ JobServiceTracingConnection::BatchDeleteJobs( return internal::EndSpan(std::move(span), child_->BatchDeleteJobs(request)); } +StatusOr +JobServiceTracingConnection::BatchDeleteJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchDeleteJobsRequest const& request) { + auto span = + internal::MakeSpan("talent_v4::JobServiceConnection::BatchDeleteJobs"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BatchDeleteJobs(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +JobServiceTracingConnection::BatchDeleteJobs( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("talent_v4::JobServiceConnection::BatchDeleteJobs"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BatchDeleteJobs(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange JobServiceTracingConnection::ListJobs( google::cloud::talent::v4::ListJobsRequest request) { diff --git a/google/cloud/talent/v4/internal/job_tracing_connection.h b/google/cloud/talent/v4/internal/job_tracing_connection.h index dfaf79dd2355c..6ec9db01f5b6a 100644 --- a/google/cloud/talent/v4/internal/job_tracing_connection.h +++ b/google/cloud/talent/v4/internal/job_tracing_connection.h @@ -46,6 +46,15 @@ class JobServiceTracingConnection : public talent_v4::JobServiceConnection { BatchCreateJobs(google::cloud::talent::v4::BatchCreateJobsRequest const& request) override; + StatusOr BatchCreateJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchCreateJobsRequest const& request) + override; + + future> + BatchCreateJobs(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetJob( google::cloud::talent::v4::GetJobRequest const& request) override; @@ -56,6 +65,15 @@ class JobServiceTracingConnection : public talent_v4::JobServiceConnection { BatchUpdateJobs(google::cloud::talent::v4::BatchUpdateJobsRequest const& request) override; + StatusOr BatchUpdateJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchUpdateJobsRequest const& request) + override; + + future> + BatchUpdateJobs(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + Status DeleteJob( google::cloud::talent::v4::DeleteJobRequest const& request) override; @@ -63,6 +81,15 @@ class JobServiceTracingConnection : public talent_v4::JobServiceConnection { BatchDeleteJobs(google::cloud::talent::v4::BatchDeleteJobsRequest const& request) override; + StatusOr BatchDeleteJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchDeleteJobsRequest const& request) + override; + + future> + BatchDeleteJobs(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListJobs( google::cloud::talent::v4::ListJobsRequest request) override; diff --git a/google/cloud/talent/v4/job_connection.cc b/google/cloud/talent/v4/job_connection.cc index b053a49bd3892..a4a52fff59e77 100644 --- a/google/cloud/talent/v4/job_connection.cc +++ b/google/cloud/talent/v4/job_connection.cc @@ -51,6 +51,21 @@ JobServiceConnection::BatchCreateJobs( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr JobServiceConnection::BatchCreateJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchCreateJobsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +JobServiceConnection::BatchCreateJobs(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr JobServiceConnection::GetJob( google::cloud::talent::v4::GetJobRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -69,6 +84,21 @@ JobServiceConnection::BatchUpdateJobs( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr JobServiceConnection::BatchUpdateJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchUpdateJobsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +JobServiceConnection::BatchUpdateJobs(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + Status JobServiceConnection::DeleteJob( google::cloud::talent::v4::DeleteJobRequest const&) { return Status(StatusCode::kUnimplemented, "not implemented"); @@ -82,6 +112,21 @@ JobServiceConnection::BatchDeleteJobs( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr JobServiceConnection::BatchDeleteJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchDeleteJobsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +JobServiceConnection::BatchDeleteJobs(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange JobServiceConnection::ListJobs( google::cloud::talent::v4:: ListJobsRequest) { // NOLINT(performance-unnecessary-value-param) diff --git a/google/cloud/talent/v4/job_connection.h b/google/cloud/talent/v4/job_connection.h index 7bb8e3ea7a50a..bd9086ceb9152 100644 --- a/google/cloud/talent/v4/job_connection.h +++ b/google/cloud/talent/v4/job_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/talent/v4/internal/job_retry_traits.h" #include "google/cloud/talent/v4/job_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -191,6 +193,14 @@ class JobServiceConnection { BatchCreateJobs( google::cloud::talent::v4::BatchCreateJobsRequest const& request); + virtual StatusOr BatchCreateJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchCreateJobsRequest const& request); + + virtual future> + BatchCreateJobs(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetJob( google::cloud::talent::v4::GetJobRequest const& request); @@ -201,6 +211,14 @@ class JobServiceConnection { BatchUpdateJobs( google::cloud::talent::v4::BatchUpdateJobsRequest const& request); + virtual StatusOr BatchUpdateJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchUpdateJobsRequest const& request); + + virtual future> + BatchUpdateJobs(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual Status DeleteJob( google::cloud::talent::v4::DeleteJobRequest const& request); @@ -208,6 +226,14 @@ class JobServiceConnection { BatchDeleteJobs( google::cloud::talent::v4::BatchDeleteJobsRequest const& request); + virtual StatusOr BatchDeleteJobs( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchDeleteJobsRequest const& request); + + virtual future> + BatchDeleteJobs(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListJobs( google::cloud::talent::v4::ListJobsRequest request); diff --git a/google/cloud/talent/v4/mocks/mock_job_connection.h b/google/cloud/talent/v4/mocks/mock_job_connection.h index 7f82d96e50c70..227734a43cc12 100644 --- a/google/cloud/talent/v4/mocks/mock_job_connection.h +++ b/google/cloud/talent/v4/mocks/mock_job_connection.h @@ -56,6 +56,19 @@ class MockJobServiceConnection : public talent_v4::JobServiceConnection { (google::cloud::talent::v4::BatchCreateJobsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, BatchCreateJobs, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchCreateJobsRequest const& request), + (override)); + + MOCK_METHOD( + future>, + BatchCreateJobs, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetJob, (google::cloud::talent::v4::GetJobRequest const& request), (override)); @@ -70,6 +83,19 @@ class MockJobServiceConnection : public talent_v4::JobServiceConnection { (google::cloud::talent::v4::BatchUpdateJobsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, BatchUpdateJobs, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchUpdateJobsRequest const& request), + (override)); + + MOCK_METHOD( + future>, + BatchUpdateJobs, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(Status, DeleteJob, (google::cloud::talent::v4::DeleteJobRequest const& request), (override)); @@ -80,6 +106,19 @@ class MockJobServiceConnection : public talent_v4::JobServiceConnection { (google::cloud::talent::v4::BatchDeleteJobsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, BatchDeleteJobs, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::talent::v4::BatchDeleteJobsRequest const& request), + (override)); + + MOCK_METHOD( + future>, + BatchDeleteJobs, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListJobs, (google::cloud::talent::v4::ListJobsRequest request), (override)); diff --git a/google/cloud/talent/v4/tenant_connection.h b/google/cloud/talent/v4/tenant_connection.h index 662b7320de467..1ec58c1ad0ee5 100644 --- a/google/cloud/talent/v4/tenant_connection.h +++ b/google/cloud/talent/v4/tenant_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/talent/v4/internal/tenant_retry_traits.h" #include "google/cloud/talent/v4/tenant_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/tasks/v2/cloud_tasks_connection.h b/google/cloud/tasks/v2/cloud_tasks_connection.h index 7a62b8e510020..dedfe0b2e901f 100644 --- a/google/cloud/tasks/v2/cloud_tasks_connection.h +++ b/google/cloud/tasks/v2/cloud_tasks_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/tasks/v2/cloud_tasks_connection_idempotency_policy.h" #include "google/cloud/tasks/v2/internal/cloud_tasks_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.cc b/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.cc index a5d16e79116d0..80ff38d7ca527 100644 --- a/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.cc +++ b/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.cc @@ -162,6 +162,62 @@ TelcoAutomationConnectionImpl::CreateOrchestrationCluster( polling_policy(*current), __func__); } +StatusOr +TelcoAutomationConnectionImpl::CreateOrchestrationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::CreateOrchestrationClusterRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateOrchestrationCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::telcoautomation::v1:: + CreateOrchestrationClusterRequest const& request) { + return stub_->CreateOrchestrationCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +TelcoAutomationConnectionImpl::CreateOrchestrationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateOrchestrationCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::telcoautomation::v1::OrchestrationCluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::telcoautomation::v1::OrchestrationCluster>, + polling_policy(*current), __func__); +} + future> TelcoAutomationConnectionImpl::DeleteOrchestrationCluster( google::cloud::telcoautomation::v1::DeleteOrchestrationClusterRequest const& @@ -202,6 +258,62 @@ TelcoAutomationConnectionImpl::DeleteOrchestrationCluster( polling_policy(*current), __func__); } +StatusOr +TelcoAutomationConnectionImpl::DeleteOrchestrationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::DeleteOrchestrationClusterRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteOrchestrationCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::telcoautomation::v1:: + DeleteOrchestrationClusterRequest const& request) { + return stub_->DeleteOrchestrationCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +TelcoAutomationConnectionImpl::DeleteOrchestrationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteOrchestrationCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::telcoautomation::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::telcoautomation::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange TelcoAutomationConnectionImpl::ListEdgeSlms( google::cloud::telcoautomation::v1::ListEdgeSlmsRequest request) { @@ -292,6 +404,61 @@ TelcoAutomationConnectionImpl::CreateEdgeSlm( polling_policy(*current), __func__); } +StatusOr +TelcoAutomationConnectionImpl::CreateEdgeSlm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateEdgeSlm(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& + request) { + return stub_->CreateEdgeSlm(context, options, request); + }, + *current, request, __func__); +} + +future> +TelcoAutomationConnectionImpl::CreateEdgeSlm( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateEdgeSlm", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::telcoautomation::v1::EdgeSlm>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::telcoautomation::v1::EdgeSlm>, + polling_policy(*current), __func__); +} + future> TelcoAutomationConnectionImpl::DeleteEdgeSlm( google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request) { @@ -332,6 +499,61 @@ TelcoAutomationConnectionImpl::DeleteEdgeSlm( polling_policy(*current), __func__); } +StatusOr +TelcoAutomationConnectionImpl::DeleteEdgeSlm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteEdgeSlm(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& + request) { + return stub_->DeleteEdgeSlm(context, options, request); + }, + *current, request, __func__); +} + +future> +TelcoAutomationConnectionImpl::DeleteEdgeSlm( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteEdgeSlm", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::telcoautomation::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::telcoautomation::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr TelcoAutomationConnectionImpl::CreateBlueprint( google::cloud::telcoautomation::v1::CreateBlueprintRequest const& request) { diff --git a/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.h b/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.h index de44084723c1e..4b8ac4cb631e1 100644 --- a/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.h +++ b/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.h @@ -67,11 +67,31 @@ class TelcoAutomationConnectionImpl google::cloud::telcoautomation::v1:: CreateOrchestrationClusterRequest const& request) override; + StatusOr CreateOrchestrationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1:: + CreateOrchestrationClusterRequest const& request) override; + + future> + CreateOrchestrationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteOrchestrationCluster( google::cloud::telcoautomation::v1:: DeleteOrchestrationClusterRequest const& request) override; + StatusOr DeleteOrchestrationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1:: + DeleteOrchestrationClusterRequest const& request) override; + + future> + DeleteOrchestrationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListEdgeSlms( google::cloud::telcoautomation::v1::ListEdgeSlmsRequest request) override; @@ -83,10 +103,28 @@ class TelcoAutomationConnectionImpl google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request) override; + StatusOr CreateEdgeSlm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request) + override; + + future> CreateEdgeSlm( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEdgeSlm(google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request) override; + StatusOr DeleteEdgeSlm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request) + override; + + future> + DeleteEdgeSlm(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateBlueprint( google::cloud::telcoautomation::v1::CreateBlueprintRequest const& request) override; diff --git a/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.cc b/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.cc index 79858d9cec041..8e898635244e4 100644 --- a/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.cc +++ b/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.cc @@ -69,6 +69,33 @@ TelcoAutomationTracingConnection::CreateOrchestrationCluster( child_->CreateOrchestrationCluster(request)); } +StatusOr +TelcoAutomationTracingConnection::CreateOrchestrationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::CreateOrchestrationClusterRequest const& + request) { + auto span = internal::MakeSpan( + "telcoautomation_v1::TelcoAutomationConnection::" + "CreateOrchestrationCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateOrchestrationCluster( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TelcoAutomationTracingConnection::CreateOrchestrationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "telcoautomation_v1::TelcoAutomationConnection::" + "CreateOrchestrationCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateOrchestrationCluster( + google::cloud::ExperimentalTag{}, operation)); +} + future> TelcoAutomationTracingConnection::DeleteOrchestrationCluster( google::cloud::telcoautomation::v1::DeleteOrchestrationClusterRequest const& @@ -81,6 +108,33 @@ TelcoAutomationTracingConnection::DeleteOrchestrationCluster( child_->DeleteOrchestrationCluster(request)); } +StatusOr +TelcoAutomationTracingConnection::DeleteOrchestrationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::DeleteOrchestrationClusterRequest const& + request) { + auto span = internal::MakeSpan( + "telcoautomation_v1::TelcoAutomationConnection::" + "DeleteOrchestrationCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteOrchestrationCluster( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TelcoAutomationTracingConnection::DeleteOrchestrationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "telcoautomation_v1::TelcoAutomationConnection::" + "DeleteOrchestrationCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteOrchestrationCluster( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange TelcoAutomationTracingConnection::ListEdgeSlms( google::cloud::telcoautomation::v1::ListEdgeSlmsRequest request) { @@ -111,6 +165,30 @@ TelcoAutomationTracingConnection::CreateEdgeSlm( return internal::EndSpan(std::move(span), child_->CreateEdgeSlm(request)); } +StatusOr +TelcoAutomationTracingConnection::CreateEdgeSlm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request) { + auto span = internal::MakeSpan( + "telcoautomation_v1::TelcoAutomationConnection::CreateEdgeSlm"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateEdgeSlm(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TelcoAutomationTracingConnection::CreateEdgeSlm( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "telcoautomation_v1::TelcoAutomationConnection::CreateEdgeSlm"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateEdgeSlm(google::cloud::ExperimentalTag{}, operation)); +} + future> TelcoAutomationTracingConnection::DeleteEdgeSlm( google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request) { @@ -120,6 +198,30 @@ TelcoAutomationTracingConnection::DeleteEdgeSlm( return internal::EndSpan(std::move(span), child_->DeleteEdgeSlm(request)); } +StatusOr +TelcoAutomationTracingConnection::DeleteEdgeSlm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request) { + auto span = internal::MakeSpan( + "telcoautomation_v1::TelcoAutomationConnection::DeleteEdgeSlm"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteEdgeSlm(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TelcoAutomationTracingConnection::DeleteEdgeSlm( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "telcoautomation_v1::TelcoAutomationConnection::DeleteEdgeSlm"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteEdgeSlm(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TelcoAutomationTracingConnection::CreateBlueprint( google::cloud::telcoautomation::v1::CreateBlueprintRequest const& request) { diff --git a/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.h b/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.h index 04ada07c5bbf5..35930b2b7c18a 100644 --- a/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.h +++ b/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.h @@ -55,11 +55,31 @@ class TelcoAutomationTracingConnection google::cloud::telcoautomation::v1:: CreateOrchestrationClusterRequest const& request) override; + StatusOr CreateOrchestrationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1:: + CreateOrchestrationClusterRequest const& request) override; + + future> + CreateOrchestrationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteOrchestrationCluster( google::cloud::telcoautomation::v1:: DeleteOrchestrationClusterRequest const& request) override; + StatusOr DeleteOrchestrationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1:: + DeleteOrchestrationClusterRequest const& request) override; + + future> + DeleteOrchestrationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListEdgeSlms( google::cloud::telcoautomation::v1::ListEdgeSlmsRequest request) override; @@ -71,10 +91,28 @@ class TelcoAutomationTracingConnection google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request) override; + StatusOr CreateEdgeSlm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request) + override; + + future> CreateEdgeSlm( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteEdgeSlm(google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request) override; + StatusOr DeleteEdgeSlm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request) + override; + + future> + DeleteEdgeSlm(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateBlueprint( google::cloud::telcoautomation::v1::CreateBlueprintRequest const& request) override; diff --git a/google/cloud/telcoautomation/v1/mocks/mock_telco_automation_connection.h b/google/cloud/telcoautomation/v1/mocks/mock_telco_automation_connection.h index ed35251872693..87ec46bbcfda3 100644 --- a/google/cloud/telcoautomation/v1/mocks/mock_telco_automation_connection.h +++ b/google/cloud/telcoautomation/v1/mocks/mock_telco_automation_connection.h @@ -69,6 +69,21 @@ class MockTelcoAutomationConnection CreateOrchestrationClusterRequest const& request), (override)); + MOCK_METHOD(StatusOr, + CreateOrchestrationCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1:: + CreateOrchestrationClusterRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + CreateOrchestrationCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteOrchestrationCluster, @@ -76,6 +91,20 @@ class MockTelcoAutomationConnection DeleteOrchestrationClusterRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteOrchestrationCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1:: + DeleteOrchestrationClusterRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteOrchestrationCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListEdgeSlms, (google::cloud::telcoautomation::v1::ListEdgeSlmsRequest request), @@ -92,12 +121,37 @@ class MockTelcoAutomationConnection (google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateEdgeSlm, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateEdgeSlm, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteEdgeSlm, (google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteEdgeSlm, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteEdgeSlm, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, CreateBlueprint, (google::cloud::telcoautomation::v1::CreateBlueprintRequest const& diff --git a/google/cloud/telcoautomation/v1/telco_automation_connection.cc b/google/cloud/telcoautomation/v1/telco_automation_connection.cc index fc7326c8dadac..d663604ee7589 100644 --- a/google/cloud/telcoautomation/v1/telco_automation_connection.cc +++ b/google/cloud/telcoautomation/v1/telco_automation_connection.cc @@ -61,6 +61,23 @@ TelcoAutomationConnection::CreateOrchestrationCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TelcoAutomationConnection::CreateOrchestrationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1:: + CreateOrchestrationClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TelcoAutomationConnection::CreateOrchestrationCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TelcoAutomationConnection::DeleteOrchestrationCluster( google::cloud::telcoautomation::v1:: @@ -70,6 +87,23 @@ TelcoAutomationConnection::DeleteOrchestrationCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TelcoAutomationConnection::DeleteOrchestrationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1:: + DeleteOrchestrationClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TelcoAutomationConnection::DeleteOrchestrationCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange TelcoAutomationConnection::ListEdgeSlms( google::cloud::telcoautomation::v1:: @@ -92,6 +126,22 @@ TelcoAutomationConnection::CreateEdgeSlm( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TelcoAutomationConnection::CreateEdgeSlm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TelcoAutomationConnection::CreateEdgeSlm( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TelcoAutomationConnection::DeleteEdgeSlm( google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const&) { @@ -100,6 +150,22 @@ TelcoAutomationConnection::DeleteEdgeSlm( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TelcoAutomationConnection::DeleteEdgeSlm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TelcoAutomationConnection::DeleteEdgeSlm( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TelcoAutomationConnection::CreateBlueprint( google::cloud::telcoautomation::v1::CreateBlueprintRequest const&) { diff --git a/google/cloud/telcoautomation/v1/telco_automation_connection.h b/google/cloud/telcoautomation/v1/telco_automation_connection.h index 14dafebb4e584..fa2f915cbc8df 100644 --- a/google/cloud/telcoautomation/v1/telco_automation_connection.h +++ b/google/cloud/telcoautomation/v1/telco_automation_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/telcoautomation/v1/internal/telco_automation_retry_traits.h" #include "google/cloud/telcoautomation/v1/telco_automation_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -202,12 +204,32 @@ class TelcoAutomationConnection { google::cloud::telcoautomation::v1:: CreateOrchestrationClusterRequest const& request); + virtual StatusOr CreateOrchestrationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1:: + CreateOrchestrationClusterRequest const& request); + + virtual future< + StatusOr> + CreateOrchestrationCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteOrchestrationCluster( google::cloud::telcoautomation::v1:: DeleteOrchestrationClusterRequest const& request); + virtual StatusOr DeleteOrchestrationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1:: + DeleteOrchestrationClusterRequest const& request); + + virtual future< + StatusOr> + DeleteOrchestrationCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListEdgeSlms( google::cloud::telcoautomation::v1::ListEdgeSlmsRequest request); @@ -218,11 +240,28 @@ class TelcoAutomationConnection { CreateEdgeSlm( google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request); + virtual StatusOr CreateEdgeSlm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request); + + virtual future> + CreateEdgeSlm(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteEdgeSlm( google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request); + virtual StatusOr DeleteEdgeSlm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request); + + virtual future< + StatusOr> + DeleteEdgeSlm(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateBlueprint( google::cloud::telcoautomation::v1::CreateBlueprintRequest const& diff --git a/google/cloud/texttospeech/v1/text_to_speech_connection.h b/google/cloud/texttospeech/v1/text_to_speech_connection.h index 2ab1c8df7fc24..8a3fcfb375381 100644 --- a/google/cloud/texttospeech/v1/text_to_speech_connection.h +++ b/google/cloud/texttospeech/v1/text_to_speech_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/texttospeech/v1/internal/text_to_speech_retry_traits.h" #include "google/cloud/texttospeech/v1/text_to_speech_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/timeseriesinsights/v1/timeseries_insights_controller_connection.h b/google/cloud/timeseriesinsights/v1/timeseries_insights_controller_connection.h index 69fd5b335f1b0..9f02db9b94b8f 100644 --- a/google/cloud/timeseriesinsights/v1/timeseries_insights_controller_connection.h +++ b/google/cloud/timeseriesinsights/v1/timeseries_insights_controller_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/timeseriesinsights/v1/internal/timeseries_insights_controller_retry_traits.h" #include "google/cloud/timeseriesinsights/v1/timeseries_insights_controller_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/tpu/v1/internal/tpu_connection_impl.cc b/google/cloud/tpu/v1/internal/tpu_connection_impl.cc index 257899f7c0826..5ab6d092e88d3 100644 --- a/google/cloud/tpu/v1/internal/tpu_connection_impl.cc +++ b/google/cloud/tpu/v1/internal/tpu_connection_impl.cc @@ -140,6 +140,56 @@ future> TpuConnectionImpl::CreateNode( polling_policy(*current), __func__); } +StatusOr TpuConnectionImpl::CreateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::CreateNodeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateNode(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::tpu::v1::CreateNodeRequest const& request) { + return stub_->CreateNode(context, options, request); + }, + *current, request, __func__); +} + +future> TpuConnectionImpl::CreateNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateNode", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::tpu::v1::Node>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::tpu::v1::Node>, + polling_policy(*current), __func__); +} + future> TpuConnectionImpl::DeleteNode( google::cloud::tpu::v1::DeleteNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -177,6 +227,56 @@ future> TpuConnectionImpl::DeleteNode( polling_policy(*current), __func__); } +StatusOr TpuConnectionImpl::DeleteNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::DeleteNodeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNode(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::tpu::v1::DeleteNodeRequest const& request) { + return stub_->DeleteNode(context, options, request); + }, + *current, request, __func__); +} + +future> TpuConnectionImpl::DeleteNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteNode", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::tpu::v1::Node>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::tpu::v1::Node>, + polling_policy(*current), __func__); +} + future> TpuConnectionImpl::ReimageNode( google::cloud::tpu::v1::ReimageNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -215,6 +315,56 @@ future> TpuConnectionImpl::ReimageNode( polling_policy(*current), __func__); } +StatusOr TpuConnectionImpl::ReimageNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::ReimageNodeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ReimageNode(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::tpu::v1::ReimageNodeRequest const& request) { + return stub_->ReimageNode(context, options, request); + }, + *current, request, __func__); +} + +future> TpuConnectionImpl::ReimageNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to ReimageNode", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::tpu::v1::Node>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::tpu::v1::Node>, + polling_policy(*current), __func__); +} + future> TpuConnectionImpl::StopNode( google::cloud::tpu::v1::StopNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -251,6 +401,56 @@ future> TpuConnectionImpl::StopNode( polling_policy(*current), __func__); } +StatusOr TpuConnectionImpl::StopNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::StopNodeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StopNode(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::tpu::v1::StopNodeRequest const& request) { + return stub_->StopNode(context, options, request); + }, + *current, request, __func__); +} + +future> TpuConnectionImpl::StopNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to StopNode", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::tpu::v1::Node>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::tpu::v1::Node>, + polling_policy(*current), __func__); +} + future> TpuConnectionImpl::StartNode( google::cloud::tpu::v1::StartNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -287,6 +487,56 @@ future> TpuConnectionImpl::StartNode( polling_policy(*current), __func__); } +StatusOr TpuConnectionImpl::StartNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::StartNodeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartNode(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::tpu::v1::StartNodeRequest const& request) { + return stub_->StartNode(context, options, request); + }, + *current, request, __func__); +} + +future> TpuConnectionImpl::StartNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to StartNode", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::tpu::v1::Node>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::tpu::v1::Node>, + polling_policy(*current), __func__); +} + StreamRange TpuConnectionImpl::ListTensorFlowVersions( google::cloud::tpu::v1::ListTensorFlowVersionsRequest request) { diff --git a/google/cloud/tpu/v1/internal/tpu_connection_impl.h b/google/cloud/tpu/v1/internal/tpu_connection_impl.h index f23ee4562f017..2f972f3e257a0 100644 --- a/google/cloud/tpu/v1/internal/tpu_connection_impl.h +++ b/google/cloud/tpu/v1/internal/tpu_connection_impl.h @@ -59,18 +59,58 @@ class TpuConnectionImpl : public tpu_v1::TpuConnection { future> CreateNode( google::cloud::tpu::v1::CreateNodeRequest const& request) override; + StatusOr CreateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::CreateNodeRequest const& request) override; + + future> CreateNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteNode( google::cloud::tpu::v1::DeleteNodeRequest const& request) override; + StatusOr DeleteNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::DeleteNodeRequest const& request) override; + + future> DeleteNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReimageNode( google::cloud::tpu::v1::ReimageNodeRequest const& request) override; + StatusOr ReimageNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::ReimageNodeRequest const& request) override; + + future> ReimageNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopNode( google::cloud::tpu::v1::StopNodeRequest const& request) override; + StatusOr StopNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::StopNodeRequest const& request) override; + + future> StopNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartNode( google::cloud::tpu::v1::StartNodeRequest const& request) override; + StatusOr StartNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::StartNodeRequest const& request) override; + + future> StartNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTensorFlowVersions( google::cloud::tpu::v1::ListTensorFlowVersionsRequest request) override; diff --git a/google/cloud/tpu/v1/internal/tpu_tracing_connection.cc b/google/cloud/tpu/v1/internal/tpu_tracing_connection.cc index f46cbedf2503d..16151f65e996c 100644 --- a/google/cloud/tpu/v1/internal/tpu_tracing_connection.cc +++ b/google/cloud/tpu/v1/internal/tpu_tracing_connection.cc @@ -56,6 +56,26 @@ future> TpuTracingConnection::CreateNode( return internal::EndSpan(std::move(span), child_->CreateNode(request)); } +StatusOr TpuTracingConnection::CreateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::CreateNodeRequest const& request) { + auto span = internal::MakeSpan("tpu_v1::TpuConnection::CreateNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateNode(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> TpuTracingConnection::CreateNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("tpu_v1::TpuConnection::CreateNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateNode(google::cloud::ExperimentalTag{}, operation)); +} + future> TpuTracingConnection::DeleteNode( google::cloud::tpu::v1::DeleteNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::DeleteNode"); @@ -63,6 +83,26 @@ future> TpuTracingConnection::DeleteNode( return internal::EndSpan(std::move(span), child_->DeleteNode(request)); } +StatusOr TpuTracingConnection::DeleteNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::DeleteNodeRequest const& request) { + auto span = internal::MakeSpan("tpu_v1::TpuConnection::DeleteNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteNode(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> TpuTracingConnection::DeleteNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("tpu_v1::TpuConnection::DeleteNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteNode(google::cloud::ExperimentalTag{}, operation)); +} + future> TpuTracingConnection::ReimageNode( google::cloud::tpu::v1::ReimageNodeRequest const& request) { @@ -71,6 +111,27 @@ TpuTracingConnection::ReimageNode( return internal::EndSpan(std::move(span), child_->ReimageNode(request)); } +StatusOr TpuTracingConnection::ReimageNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::ReimageNodeRequest const& request) { + auto span = internal::MakeSpan("tpu_v1::TpuConnection::ReimageNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ReimageNode(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TpuTracingConnection::ReimageNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("tpu_v1::TpuConnection::ReimageNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ReimageNode(google::cloud::ExperimentalTag{}, operation)); +} + future> TpuTracingConnection::StopNode( google::cloud::tpu::v1::StopNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::StopNode"); @@ -78,6 +139,26 @@ future> TpuTracingConnection::StopNode( return internal::EndSpan(std::move(span), child_->StopNode(request)); } +StatusOr TpuTracingConnection::StopNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::StopNodeRequest const& request) { + auto span = internal::MakeSpan("tpu_v1::TpuConnection::StopNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StopNode(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> TpuTracingConnection::StopNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("tpu_v1::TpuConnection::StopNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StopNode(google::cloud::ExperimentalTag{}, operation)); +} + future> TpuTracingConnection::StartNode( google::cloud::tpu::v1::StartNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::StartNode"); @@ -85,6 +166,26 @@ future> TpuTracingConnection::StartNode( return internal::EndSpan(std::move(span), child_->StartNode(request)); } +StatusOr TpuTracingConnection::StartNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::StartNodeRequest const& request) { + auto span = internal::MakeSpan("tpu_v1::TpuConnection::StartNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StartNode(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> TpuTracingConnection::StartNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("tpu_v1::TpuConnection::StartNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StartNode(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange TpuTracingConnection::ListTensorFlowVersions( google::cloud::tpu::v1::ListTensorFlowVersionsRequest request) { diff --git a/google/cloud/tpu/v1/internal/tpu_tracing_connection.h b/google/cloud/tpu/v1/internal/tpu_tracing_connection.h index 2260fd5d24fbc..dd211068a0359 100644 --- a/google/cloud/tpu/v1/internal/tpu_tracing_connection.h +++ b/google/cloud/tpu/v1/internal/tpu_tracing_connection.h @@ -47,18 +47,58 @@ class TpuTracingConnection : public tpu_v1::TpuConnection { future> CreateNode( google::cloud::tpu::v1::CreateNodeRequest const& request) override; + StatusOr CreateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::CreateNodeRequest const& request) override; + + future> CreateNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteNode( google::cloud::tpu::v1::DeleteNodeRequest const& request) override; + StatusOr DeleteNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::DeleteNodeRequest const& request) override; + + future> DeleteNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ReimageNode( google::cloud::tpu::v1::ReimageNodeRequest const& request) override; + StatusOr ReimageNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::ReimageNodeRequest const& request) override; + + future> ReimageNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopNode( google::cloud::tpu::v1::StopNodeRequest const& request) override; + StatusOr StopNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::StopNodeRequest const& request) override; + + future> StopNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartNode( google::cloud::tpu::v1::StartNodeRequest const& request) override; + StatusOr StartNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::StartNodeRequest const& request) override; + + future> StartNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTensorFlowVersions( google::cloud::tpu::v1::ListTensorFlowVersionsRequest request) override; diff --git a/google/cloud/tpu/v1/mocks/mock_tpu_connection.h b/google/cloud/tpu/v1/mocks/mock_tpu_connection.h index 99773e4c84414..d62ea3cabfe2c 100644 --- a/google/cloud/tpu/v1/mocks/mock_tpu_connection.h +++ b/google/cloud/tpu/v1/mocks/mock_tpu_connection.h @@ -57,22 +57,72 @@ class MockTpuConnection : public tpu_v1::TpuConnection { (google::cloud::tpu::v1::CreateNodeRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateNode, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::CreateNodeRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateNode, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteNode, (google::cloud::tpu::v1::DeleteNodeRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteNode, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::DeleteNodeRequest const& request), + (override)); + + MOCK_METHOD(future>, DeleteNode, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, ReimageNode, (google::cloud::tpu::v1::ReimageNodeRequest const& request), (override)); + MOCK_METHOD(StatusOr, ReimageNode, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::ReimageNodeRequest const& request), + (override)); + + MOCK_METHOD(future>, ReimageNode, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, StopNode, (google::cloud::tpu::v1::StopNodeRequest const& request), (override)); + MOCK_METHOD(StatusOr, StopNode, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::StopNodeRequest const& request), + (override)); + + MOCK_METHOD(future>, StopNode, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, StartNode, (google::cloud::tpu::v1::StartNodeRequest const& request), (override)); + MOCK_METHOD(StatusOr, StartNode, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::StartNodeRequest const& request), + (override)); + + MOCK_METHOD(future>, StartNode, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListTensorFlowVersions, (google::cloud::tpu::v1::ListTensorFlowVersionsRequest request), diff --git a/google/cloud/tpu/v1/tpu_connection.cc b/google/cloud/tpu/v1/tpu_connection.cc index 4744ffe986bd3..1395c8da4e52e 100644 --- a/google/cloud/tpu/v1/tpu_connection.cc +++ b/google/cloud/tpu/v1/tpu_connection.cc @@ -57,6 +57,20 @@ future> TpuConnection::CreateNode( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TpuConnection::CreateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::CreateNodeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> TpuConnection::CreateNode( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TpuConnection::DeleteNode( google::cloud::tpu::v1::DeleteNodeRequest const&) { return google::cloud::make_ready_future< @@ -64,6 +78,20 @@ future> TpuConnection::DeleteNode( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TpuConnection::DeleteNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::DeleteNodeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> TpuConnection::DeleteNode( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TpuConnection::ReimageNode( google::cloud::tpu::v1::ReimageNodeRequest const&) { return google::cloud::make_ready_future< @@ -71,6 +99,20 @@ future> TpuConnection::ReimageNode( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TpuConnection::ReimageNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::ReimageNodeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> TpuConnection::ReimageNode( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TpuConnection::StopNode( google::cloud::tpu::v1::StopNodeRequest const&) { return google::cloud::make_ready_future< @@ -78,6 +120,20 @@ future> TpuConnection::StopNode( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TpuConnection::StopNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::StopNodeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> TpuConnection::StopNode( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TpuConnection::StartNode( google::cloud::tpu::v1::StartNodeRequest const&) { return google::cloud::make_ready_future< @@ -85,6 +141,20 @@ future> TpuConnection::StartNode( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TpuConnection::StartNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::StartNodeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> TpuConnection::StartNode( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange TpuConnection::ListTensorFlowVersions( google::cloud::tpu::v1:: diff --git a/google/cloud/tpu/v1/tpu_connection.h b/google/cloud/tpu/v1/tpu_connection.h index 2f47dcba6c57d..227678552d809 100644 --- a/google/cloud/tpu/v1/tpu_connection.h +++ b/google/cloud/tpu/v1/tpu_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/tpu/v1/internal/tpu_retry_traits.h" #include "google/cloud/tpu/v1/tpu_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -190,18 +192,58 @@ class TpuConnection { virtual future> CreateNode( google::cloud::tpu::v1::CreateNodeRequest const& request); + virtual StatusOr CreateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::CreateNodeRequest const& request); + + virtual future> CreateNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteNode( google::cloud::tpu::v1::DeleteNodeRequest const& request); + virtual StatusOr DeleteNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::DeleteNodeRequest const& request); + + virtual future> DeleteNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ReimageNode( google::cloud::tpu::v1::ReimageNodeRequest const& request); + virtual StatusOr ReimageNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::ReimageNodeRequest const& request); + + virtual future> ReimageNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StopNode( google::cloud::tpu::v1::StopNodeRequest const& request); + virtual StatusOr StopNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::StopNodeRequest const& request); + + virtual future> StopNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StartNode( google::cloud::tpu::v1::StartNodeRequest const& request); + virtual StatusOr StartNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v1::StartNodeRequest const& request); + + virtual future> StartNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListTensorFlowVersions( google::cloud::tpu::v1::ListTensorFlowVersionsRequest request); diff --git a/google/cloud/tpu/v2/internal/tpu_connection_impl.cc b/google/cloud/tpu/v2/internal/tpu_connection_impl.cc index 8aa5f7f8f1278..ba382602b6b02 100644 --- a/google/cloud/tpu/v2/internal/tpu_connection_impl.cc +++ b/google/cloud/tpu/v2/internal/tpu_connection_impl.cc @@ -140,6 +140,56 @@ future> TpuConnectionImpl::CreateNode( polling_policy(*current), __func__); } +StatusOr TpuConnectionImpl::CreateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::CreateNodeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateNode(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::tpu::v2::CreateNodeRequest const& request) { + return stub_->CreateNode(context, options, request); + }, + *current, request, __func__); +} + +future> TpuConnectionImpl::CreateNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateNode", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::tpu::v2::Node>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::tpu::v2::Node>, + polling_policy(*current), __func__); +} + future> TpuConnectionImpl::DeleteNode( google::cloud::tpu::v2::DeleteNodeRequest const& request) { @@ -178,6 +228,57 @@ TpuConnectionImpl::DeleteNode( polling_policy(*current), __func__); } +StatusOr TpuConnectionImpl::DeleteNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::DeleteNodeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNode(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::tpu::v2::DeleteNodeRequest const& request) { + return stub_->DeleteNode(context, options, request); + }, + *current, request, __func__); +} + +future> +TpuConnectionImpl::DeleteNode(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteNode", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::tpu::v2::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::tpu::v2::OperationMetadata>, + polling_policy(*current), __func__); +} + future> TpuConnectionImpl::StopNode( google::cloud::tpu::v2::StopNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -214,6 +315,56 @@ future> TpuConnectionImpl::StopNode( polling_policy(*current), __func__); } +StatusOr TpuConnectionImpl::StopNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::StopNodeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StopNode(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::tpu::v2::StopNodeRequest const& request) { + return stub_->StopNode(context, options, request); + }, + *current, request, __func__); +} + +future> TpuConnectionImpl::StopNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to StopNode", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::tpu::v2::Node>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::tpu::v2::Node>, + polling_policy(*current), __func__); +} + future> TpuConnectionImpl::StartNode( google::cloud::tpu::v2::StartNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -250,6 +401,56 @@ future> TpuConnectionImpl::StartNode( polling_policy(*current), __func__); } +StatusOr TpuConnectionImpl::StartNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::StartNodeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartNode(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::tpu::v2::StartNodeRequest const& request) { + return stub_->StartNode(context, options, request); + }, + *current, request, __func__); +} + +future> TpuConnectionImpl::StartNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to StartNode", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::tpu::v2::Node>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::tpu::v2::Node>, + polling_policy(*current), __func__); +} + future> TpuConnectionImpl::UpdateNode( google::cloud::tpu::v2::UpdateNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -287,6 +488,56 @@ future> TpuConnectionImpl::UpdateNode( polling_policy(*current), __func__); } +StatusOr TpuConnectionImpl::UpdateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::UpdateNodeRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateNode(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::tpu::v2::UpdateNodeRequest const& request) { + return stub_->UpdateNode(context, options, request); + }, + *current, request, __func__); +} + +future> TpuConnectionImpl::UpdateNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateNode", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::tpu::v2::Node>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::tpu::v2::Node>, + polling_policy(*current), __func__); +} + StatusOr TpuConnectionImpl::GenerateServiceIdentity( google::cloud::tpu::v2::GenerateServiceIdentityRequest const& request) { diff --git a/google/cloud/tpu/v2/internal/tpu_connection_impl.h b/google/cloud/tpu/v2/internal/tpu_connection_impl.h index 7e9cd3026ef14..54f3170b38eea 100644 --- a/google/cloud/tpu/v2/internal/tpu_connection_impl.h +++ b/google/cloud/tpu/v2/internal/tpu_connection_impl.h @@ -59,18 +59,58 @@ class TpuConnectionImpl : public tpu_v2::TpuConnection { future> CreateNode( google::cloud::tpu::v2::CreateNodeRequest const& request) override; + StatusOr CreateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::CreateNodeRequest const& request) override; + + future> CreateNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteNode( google::cloud::tpu::v2::DeleteNodeRequest const& request) override; + StatusOr DeleteNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::DeleteNodeRequest const& request) override; + + future> DeleteNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopNode( google::cloud::tpu::v2::StopNodeRequest const& request) override; + StatusOr StopNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::StopNodeRequest const& request) override; + + future> StopNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartNode( google::cloud::tpu::v2::StartNodeRequest const& request) override; + StatusOr StartNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::StartNodeRequest const& request) override; + + future> StartNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateNode( google::cloud::tpu::v2::UpdateNodeRequest const& request) override; + StatusOr UpdateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::UpdateNodeRequest const& request) override; + + future> UpdateNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GenerateServiceIdentity( google::cloud::tpu::v2::GenerateServiceIdentityRequest const& request) diff --git a/google/cloud/tpu/v2/internal/tpu_tracing_connection.cc b/google/cloud/tpu/v2/internal/tpu_tracing_connection.cc index ac7bcb76c13cd..09b5c6fc4b452 100644 --- a/google/cloud/tpu/v2/internal/tpu_tracing_connection.cc +++ b/google/cloud/tpu/v2/internal/tpu_tracing_connection.cc @@ -56,6 +56,26 @@ future> TpuTracingConnection::CreateNode( return internal::EndSpan(std::move(span), child_->CreateNode(request)); } +StatusOr TpuTracingConnection::CreateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::CreateNodeRequest const& request) { + auto span = internal::MakeSpan("tpu_v2::TpuConnection::CreateNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateNode(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> TpuTracingConnection::CreateNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("tpu_v2::TpuConnection::CreateNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateNode(google::cloud::ExperimentalTag{}, operation)); +} + future> TpuTracingConnection::DeleteNode( google::cloud::tpu::v2::DeleteNodeRequest const& request) { @@ -64,6 +84,27 @@ TpuTracingConnection::DeleteNode( return internal::EndSpan(std::move(span), child_->DeleteNode(request)); } +StatusOr TpuTracingConnection::DeleteNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::DeleteNodeRequest const& request) { + auto span = internal::MakeSpan("tpu_v2::TpuConnection::DeleteNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteNode(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TpuTracingConnection::DeleteNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("tpu_v2::TpuConnection::DeleteNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteNode(google::cloud::ExperimentalTag{}, operation)); +} + future> TpuTracingConnection::StopNode( google::cloud::tpu::v2::StopNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::StopNode"); @@ -71,6 +112,26 @@ future> TpuTracingConnection::StopNode( return internal::EndSpan(std::move(span), child_->StopNode(request)); } +StatusOr TpuTracingConnection::StopNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::StopNodeRequest const& request) { + auto span = internal::MakeSpan("tpu_v2::TpuConnection::StopNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StopNode(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> TpuTracingConnection::StopNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("tpu_v2::TpuConnection::StopNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StopNode(google::cloud::ExperimentalTag{}, operation)); +} + future> TpuTracingConnection::StartNode( google::cloud::tpu::v2::StartNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::StartNode"); @@ -78,6 +139,26 @@ future> TpuTracingConnection::StartNode( return internal::EndSpan(std::move(span), child_->StartNode(request)); } +StatusOr TpuTracingConnection::StartNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::StartNodeRequest const& request) { + auto span = internal::MakeSpan("tpu_v2::TpuConnection::StartNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StartNode(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> TpuTracingConnection::StartNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("tpu_v2::TpuConnection::StartNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StartNode(google::cloud::ExperimentalTag{}, operation)); +} + future> TpuTracingConnection::UpdateNode( google::cloud::tpu::v2::UpdateNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::UpdateNode"); @@ -85,6 +166,26 @@ future> TpuTracingConnection::UpdateNode( return internal::EndSpan(std::move(span), child_->UpdateNode(request)); } +StatusOr TpuTracingConnection::UpdateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::UpdateNodeRequest const& request) { + auto span = internal::MakeSpan("tpu_v2::TpuConnection::UpdateNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateNode(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> TpuTracingConnection::UpdateNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan("tpu_v2::TpuConnection::UpdateNode"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateNode(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TpuTracingConnection::GenerateServiceIdentity( google::cloud::tpu::v2::GenerateServiceIdentityRequest const& request) { diff --git a/google/cloud/tpu/v2/internal/tpu_tracing_connection.h b/google/cloud/tpu/v2/internal/tpu_tracing_connection.h index a1ff0cef69566..a0dce8bbd6fde 100644 --- a/google/cloud/tpu/v2/internal/tpu_tracing_connection.h +++ b/google/cloud/tpu/v2/internal/tpu_tracing_connection.h @@ -47,18 +47,58 @@ class TpuTracingConnection : public tpu_v2::TpuConnection { future> CreateNode( google::cloud::tpu::v2::CreateNodeRequest const& request) override; + StatusOr CreateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::CreateNodeRequest const& request) override; + + future> CreateNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteNode( google::cloud::tpu::v2::DeleteNodeRequest const& request) override; + StatusOr DeleteNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::DeleteNodeRequest const& request) override; + + future> DeleteNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopNode( google::cloud::tpu::v2::StopNodeRequest const& request) override; + StatusOr StopNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::StopNodeRequest const& request) override; + + future> StopNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartNode( google::cloud::tpu::v2::StartNodeRequest const& request) override; + StatusOr StartNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::StartNodeRequest const& request) override; + + future> StartNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateNode( google::cloud::tpu::v2::UpdateNodeRequest const& request) override; + StatusOr UpdateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::UpdateNodeRequest const& request) override; + + future> UpdateNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GenerateServiceIdentity( google::cloud::tpu::v2::GenerateServiceIdentityRequest const& request) diff --git a/google/cloud/tpu/v2/mocks/mock_tpu_connection.h b/google/cloud/tpu/v2/mocks/mock_tpu_connection.h index 5094be979387c..097ce5ef81d00 100644 --- a/google/cloud/tpu/v2/mocks/mock_tpu_connection.h +++ b/google/cloud/tpu/v2/mocks/mock_tpu_connection.h @@ -57,23 +57,74 @@ class MockTpuConnection : public tpu_v2::TpuConnection { (google::cloud::tpu::v2::CreateNodeRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateNode, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::CreateNodeRequest const& request), + (override)); + + MOCK_METHOD(future>, CreateNode, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteNode, (google::cloud::tpu::v2::DeleteNodeRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteNode, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::DeleteNodeRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteNode, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, StopNode, (google::cloud::tpu::v2::StopNodeRequest const& request), (override)); + MOCK_METHOD(StatusOr, StopNode, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::StopNodeRequest const& request), + (override)); + + MOCK_METHOD(future>, StopNode, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, StartNode, (google::cloud::tpu::v2::StartNodeRequest const& request), (override)); + MOCK_METHOD(StatusOr, StartNode, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::StartNodeRequest const& request), + (override)); + + MOCK_METHOD(future>, StartNode, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateNode, (google::cloud::tpu::v2::UpdateNodeRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateNode, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::UpdateNodeRequest const& request), + (override)); + + MOCK_METHOD(future>, UpdateNode, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GenerateServiceIdentity, diff --git a/google/cloud/tpu/v2/tpu_connection.cc b/google/cloud/tpu/v2/tpu_connection.cc index 52d97b0d41696..f652bce71fb14 100644 --- a/google/cloud/tpu/v2/tpu_connection.cc +++ b/google/cloud/tpu/v2/tpu_connection.cc @@ -57,6 +57,20 @@ future> TpuConnection::CreateNode( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TpuConnection::CreateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::CreateNodeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> TpuConnection::CreateNode( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TpuConnection::DeleteNode(google::cloud::tpu::v2::DeleteNodeRequest const&) { return google::cloud::make_ready_future< @@ -64,6 +78,21 @@ TpuConnection::DeleteNode(google::cloud::tpu::v2::DeleteNodeRequest const&) { Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TpuConnection::DeleteNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::DeleteNodeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TpuConnection::DeleteNode(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TpuConnection::StopNode( google::cloud::tpu::v2::StopNodeRequest const&) { return google::cloud::make_ready_future< @@ -71,6 +100,20 @@ future> TpuConnection::StopNode( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TpuConnection::StopNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::StopNodeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> TpuConnection::StopNode( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TpuConnection::StartNode( google::cloud::tpu::v2::StartNodeRequest const&) { return google::cloud::make_ready_future< @@ -78,6 +121,20 @@ future> TpuConnection::StartNode( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TpuConnection::StartNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::StartNodeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> TpuConnection::StartNode( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TpuConnection::UpdateNode( google::cloud::tpu::v2::UpdateNodeRequest const&) { return google::cloud::make_ready_future< @@ -85,6 +142,20 @@ future> TpuConnection::UpdateNode( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr TpuConnection::UpdateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::UpdateNodeRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> TpuConnection::UpdateNode( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TpuConnection::GenerateServiceIdentity( google::cloud::tpu::v2::GenerateServiceIdentityRequest const&) { diff --git a/google/cloud/tpu/v2/tpu_connection.h b/google/cloud/tpu/v2/tpu_connection.h index 53df4a70e32a0..ac3a5dc0edbde 100644 --- a/google/cloud/tpu/v2/tpu_connection.h +++ b/google/cloud/tpu/v2/tpu_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/tpu/v2/internal/tpu_retry_traits.h" #include "google/cloud/tpu/v2/tpu_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -190,18 +192,58 @@ class TpuConnection { virtual future> CreateNode( google::cloud::tpu::v2::CreateNodeRequest const& request); + virtual StatusOr CreateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::CreateNodeRequest const& request); + + virtual future> CreateNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteNode(google::cloud::tpu::v2::DeleteNodeRequest const& request); + virtual StatusOr DeleteNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::DeleteNodeRequest const& request); + + virtual future> + DeleteNode(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StopNode( google::cloud::tpu::v2::StopNodeRequest const& request); + virtual StatusOr StopNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::StopNodeRequest const& request); + + virtual future> StopNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StartNode( google::cloud::tpu::v2::StartNodeRequest const& request); + virtual StatusOr StartNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::StartNodeRequest const& request); + + virtual future> StartNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateNode( google::cloud::tpu::v2::UpdateNodeRequest const& request); + virtual StatusOr UpdateNode( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::tpu::v2::UpdateNodeRequest const& request); + + virtual future> UpdateNode( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GenerateServiceIdentity( google::cloud::tpu::v2::GenerateServiceIdentityRequest const& request); diff --git a/google/cloud/trace/v1/trace_connection.h b/google/cloud/trace/v1/trace_connection.h index e46e6f34a9f06..0041d34b12f4b 100644 --- a/google/cloud/trace/v1/trace_connection.h +++ b/google/cloud/trace/v1/trace_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/trace/v1/internal/trace_retry_traits.h" #include "google/cloud/trace/v1/trace_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/trace/v2/trace_connection.h b/google/cloud/trace/v2/trace_connection.h index cdf9dbad28684..b841d5c099272 100644 --- a/google/cloud/trace/v2/trace_connection.h +++ b/google/cloud/trace/v2/trace_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/trace/v2/internal/trace_retry_traits.h" #include "google/cloud/trace/v2/trace_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/translate/v3/internal/translation_connection_impl.cc b/google/cloud/translate/v3/internal/translation_connection_impl.cc index b47aab283803c..49de7c580472f 100644 --- a/google/cloud/translate/v3/internal/translation_connection_impl.cc +++ b/google/cloud/translate/v3/internal/translation_connection_impl.cc @@ -168,6 +168,61 @@ TranslationServiceConnectionImpl::BatchTranslateText( polling_policy(*current), __func__); } +StatusOr +TranslationServiceConnectionImpl::BatchTranslateText( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::BatchTranslateTextRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchTranslateText(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::translation::v3::BatchTranslateTextRequest const& + request) { + return stub_->BatchTranslateText(context, options, request); + }, + *current, request, __func__); +} + +future> +TranslationServiceConnectionImpl::BatchTranslateText( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to BatchTranslateText", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::translation::v3::BatchTranslateResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::translation::v3::BatchTranslateResponse>, + polling_policy(*current), __func__); +} + future> TranslationServiceConnectionImpl::BatchTranslateDocument( google::cloud::translation::v3::BatchTranslateDocumentRequest const& @@ -209,6 +264,63 @@ TranslationServiceConnectionImpl::BatchTranslateDocument( polling_policy(*current), __func__); } +StatusOr +TranslationServiceConnectionImpl::BatchTranslateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::BatchTranslateDocumentRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->BatchTranslateDocument(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::translation::v3::BatchTranslateDocumentRequest const& + request) { + return stub_->BatchTranslateDocument(context, options, request); + }, + *current, request, __func__); +} + +future> +TranslationServiceConnectionImpl::BatchTranslateDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to BatchTranslateDocument", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::translation::v3::BatchTranslateDocumentResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::translation::v3::BatchTranslateDocumentResponse>, + polling_policy(*current), __func__); +} + future> TranslationServiceConnectionImpl::CreateGlossary( google::cloud::translation::v3::CreateGlossaryRequest const& request) { @@ -249,6 +361,61 @@ TranslationServiceConnectionImpl::CreateGlossary( polling_policy(*current), __func__); } +StatusOr +TranslationServiceConnectionImpl::CreateGlossary( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::CreateGlossaryRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateGlossary(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::translation::v3::CreateGlossaryRequest const& + request) { + return stub_->CreateGlossary(context, options, request); + }, + *current, request, __func__); +} + +future> +TranslationServiceConnectionImpl::CreateGlossary( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateGlossary", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::translation::v3::Glossary>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::translation::v3::Glossary>, + polling_policy(*current), __func__); +} + StreamRange TranslationServiceConnectionImpl::ListGlossaries( google::cloud::translation::v3::ListGlossariesRequest request) { @@ -338,6 +505,61 @@ TranslationServiceConnectionImpl::DeleteGlossary( polling_policy(*current), __func__); } +StatusOr +TranslationServiceConnectionImpl::DeleteGlossary( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::DeleteGlossaryRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteGlossary(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::translation::v3::DeleteGlossaryRequest const& + request) { + return stub_->DeleteGlossary(context, options, request); + }, + *current, request, __func__); +} + +future> +TranslationServiceConnectionImpl::DeleteGlossary( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteGlossary", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::translation::v3::DeleteGlossaryResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::translation::v3::DeleteGlossaryResponse>, + polling_policy(*current), __func__); +} + StatusOr TranslationServiceConnectionImpl::CreateAdaptiveMtDataset( google::cloud::translation::v3::CreateAdaptiveMtDatasetRequest const& diff --git a/google/cloud/translate/v3/internal/translation_connection_impl.h b/google/cloud/translate/v3/internal/translation_connection_impl.h index 38a75236d01b7..0ebfdca68ec3f 100644 --- a/google/cloud/translate/v3/internal/translation_connection_impl.h +++ b/google/cloud/translate/v3/internal/translation_connection_impl.h @@ -75,16 +75,45 @@ class TranslationServiceConnectionImpl google::cloud::translation::v3::BatchTranslateTextRequest const& request) override; + StatusOr BatchTranslateText( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::BatchTranslateTextRequest const& request) + override; + + future> + BatchTranslateText(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> BatchTranslateDocument( google::cloud::translation::v3::BatchTranslateDocumentRequest const& request) override; + StatusOr BatchTranslateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::BatchTranslateDocumentRequest const& + request) override; + + future< + StatusOr> + BatchTranslateDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateGlossary( google::cloud::translation::v3::CreateGlossaryRequest const& request) override; + StatusOr CreateGlossary( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::CreateGlossaryRequest const& request) + override; + + future> CreateGlossary( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListGlossaries( google::cloud::translation::v3::ListGlossariesRequest request) override; @@ -96,6 +125,15 @@ class TranslationServiceConnectionImpl DeleteGlossary(google::cloud::translation::v3::DeleteGlossaryRequest const& request) override; + StatusOr DeleteGlossary( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::DeleteGlossaryRequest const& request) + override; + + future> + DeleteGlossary(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateAdaptiveMtDataset( google::cloud::translation::v3::CreateAdaptiveMtDatasetRequest const& diff --git a/google/cloud/translate/v3/internal/translation_tracing_connection.cc b/google/cloud/translate/v3/internal/translation_tracing_connection.cc index 0f35ba0d253ed..c7c824d00e868 100644 --- a/google/cloud/translate/v3/internal/translation_tracing_connection.cc +++ b/google/cloud/translate/v3/internal/translation_tracing_connection.cc @@ -80,6 +80,30 @@ TranslationServiceTracingConnection::BatchTranslateText( child_->BatchTranslateText(request)); } +StatusOr +TranslationServiceTracingConnection::BatchTranslateText( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::BatchTranslateTextRequest const& request) { + auto span = internal::MakeSpan( + "translate_v3::TranslationServiceConnection::BatchTranslateText"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->BatchTranslateText(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TranslationServiceTracingConnection::BatchTranslateText( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "translate_v3::TranslationServiceConnection::BatchTranslateText"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->BatchTranslateText(google::cloud::ExperimentalTag{}, operation)); +} + future> TranslationServiceTracingConnection::BatchTranslateDocument( google::cloud::translation::v3::BatchTranslateDocumentRequest const& @@ -91,6 +115,31 @@ TranslationServiceTracingConnection::BatchTranslateDocument( child_->BatchTranslateDocument(request)); } +StatusOr +TranslationServiceTracingConnection::BatchTranslateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::BatchTranslateDocumentRequest const& + request) { + auto span = internal::MakeSpan( + "translate_v3::TranslationServiceConnection::BatchTranslateDocument"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->BatchTranslateDocument( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TranslationServiceTracingConnection::BatchTranslateDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "translate_v3::TranslationServiceConnection::BatchTranslateDocument"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->BatchTranslateDocument( + google::cloud::ExperimentalTag{}, operation)); +} + future> TranslationServiceTracingConnection::CreateGlossary( google::cloud::translation::v3::CreateGlossaryRequest const& request) { @@ -100,6 +149,30 @@ TranslationServiceTracingConnection::CreateGlossary( return internal::EndSpan(std::move(span), child_->CreateGlossary(request)); } +StatusOr +TranslationServiceTracingConnection::CreateGlossary( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::CreateGlossaryRequest const& request) { + auto span = internal::MakeSpan( + "translate_v3::TranslationServiceConnection::CreateGlossary"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateGlossary(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TranslationServiceTracingConnection::CreateGlossary( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "translate_v3::TranslationServiceConnection::CreateGlossary"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateGlossary(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange TranslationServiceTracingConnection::ListGlossaries( google::cloud::translation::v3::ListGlossariesRequest request) { @@ -129,6 +202,30 @@ TranslationServiceTracingConnection::DeleteGlossary( return internal::EndSpan(std::move(span), child_->DeleteGlossary(request)); } +StatusOr +TranslationServiceTracingConnection::DeleteGlossary( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::DeleteGlossaryRequest const& request) { + auto span = internal::MakeSpan( + "translate_v3::TranslationServiceConnection::DeleteGlossary"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteGlossary(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +TranslationServiceTracingConnection::DeleteGlossary( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "translate_v3::TranslationServiceConnection::DeleteGlossary"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteGlossary(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr TranslationServiceTracingConnection::CreateAdaptiveMtDataset( google::cloud::translation::v3::CreateAdaptiveMtDatasetRequest const& diff --git a/google/cloud/translate/v3/internal/translation_tracing_connection.h b/google/cloud/translate/v3/internal/translation_tracing_connection.h index fffa86a2c28b0..ffaebdccc50bc 100644 --- a/google/cloud/translate/v3/internal/translation_tracing_connection.h +++ b/google/cloud/translate/v3/internal/translation_tracing_connection.h @@ -63,16 +63,45 @@ class TranslationServiceTracingConnection google::cloud::translation::v3::BatchTranslateTextRequest const& request) override; + StatusOr BatchTranslateText( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::BatchTranslateTextRequest const& request) + override; + + future> + BatchTranslateText(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> BatchTranslateDocument( google::cloud::translation::v3::BatchTranslateDocumentRequest const& request) override; + StatusOr BatchTranslateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::BatchTranslateDocumentRequest const& + request) override; + + future< + StatusOr> + BatchTranslateDocument( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateGlossary( google::cloud::translation::v3::CreateGlossaryRequest const& request) override; + StatusOr CreateGlossary( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::CreateGlossaryRequest const& request) + override; + + future> CreateGlossary( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListGlossaries( google::cloud::translation::v3::ListGlossariesRequest request) override; @@ -84,6 +113,15 @@ class TranslationServiceTracingConnection DeleteGlossary(google::cloud::translation::v3::DeleteGlossaryRequest const& request) override; + StatusOr DeleteGlossary( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::DeleteGlossaryRequest const& request) + override; + + future> + DeleteGlossary(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateAdaptiveMtDataset( google::cloud::translation::v3::CreateAdaptiveMtDatasetRequest const& diff --git a/google/cloud/translate/v3/mocks/mock_translation_connection.h b/google/cloud/translate/v3/mocks/mock_translation_connection.h index 08eb33da9eff8..bfed6a37752e1 100644 --- a/google/cloud/translate/v3/mocks/mock_translation_connection.h +++ b/google/cloud/translate/v3/mocks/mock_translation_connection.h @@ -79,6 +79,19 @@ class MockTranslationServiceConnection request), (override)); + MOCK_METHOD(StatusOr, BatchTranslateText, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::BatchTranslateTextRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + BatchTranslateText, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -87,12 +100,39 @@ class MockTranslationServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, BatchTranslateDocument, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::BatchTranslateDocumentRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + BatchTranslateDocument, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateGlossary, (google::cloud::translation::v3::CreateGlossaryRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateGlossary, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::CreateGlossaryRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateGlossary, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListGlossaries, (google::cloud::translation::v3::ListGlossariesRequest request), @@ -109,6 +149,19 @@ class MockTranslationServiceConnection (google::cloud::translation::v3::DeleteGlossaryRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteGlossary, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::DeleteGlossaryRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteGlossary, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CreateAdaptiveMtDataset, diff --git a/google/cloud/translate/v3/translation_connection.cc b/google/cloud/translate/v3/translation_connection.cc index 92f278b9b724b..6d0c382ef1759 100644 --- a/google/cloud/translate/v3/translation_connection.cc +++ b/google/cloud/translate/v3/translation_connection.cc @@ -70,6 +70,22 @@ TranslationServiceConnection::BatchTranslateText( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TranslationServiceConnection::BatchTranslateText( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::BatchTranslateTextRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TranslationServiceConnection::BatchTranslateText( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TranslationServiceConnection::BatchTranslateDocument( google::cloud::translation::v3::BatchTranslateDocumentRequest const&) { @@ -78,6 +94,22 @@ TranslationServiceConnection::BatchTranslateDocument( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TranslationServiceConnection::BatchTranslateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::BatchTranslateDocumentRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TranslationServiceConnection::BatchTranslateDocument( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> TranslationServiceConnection::CreateGlossary( google::cloud::translation::v3::CreateGlossaryRequest const&) { @@ -86,6 +118,22 @@ TranslationServiceConnection::CreateGlossary( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TranslationServiceConnection::CreateGlossary( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::CreateGlossaryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TranslationServiceConnection::CreateGlossary( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange TranslationServiceConnection::ListGlossaries( google::cloud::translation::v3:: @@ -108,6 +156,22 @@ TranslationServiceConnection::DeleteGlossary( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +TranslationServiceConnection::DeleteGlossary( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::DeleteGlossaryRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +TranslationServiceConnection::DeleteGlossary( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr TranslationServiceConnection::CreateAdaptiveMtDataset( google::cloud::translation::v3::CreateAdaptiveMtDatasetRequest const&) { diff --git a/google/cloud/translate/v3/translation_connection.h b/google/cloud/translate/v3/translation_connection.h index fe1c33ee1b51e..662ad9f4d9b52 100644 --- a/google/cloud/translate/v3/translation_connection.h +++ b/google/cloud/translate/v3/translation_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/translate/v3/internal/translation_retry_traits.h" #include "google/cloud/translate/v3/translation_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -210,16 +212,43 @@ class TranslationServiceConnection { BatchTranslateText( google::cloud::translation::v3::BatchTranslateTextRequest const& request); + virtual StatusOr BatchTranslateText( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::BatchTranslateTextRequest const& request); + + virtual future< + StatusOr> + BatchTranslateText(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> BatchTranslateDocument( google::cloud::translation::v3::BatchTranslateDocumentRequest const& request); + virtual StatusOr BatchTranslateDocument( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::BatchTranslateDocumentRequest const& + request); + + virtual future< + StatusOr> + BatchTranslateDocument(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateGlossary( google::cloud::translation::v3::CreateGlossaryRequest const& request); + virtual StatusOr CreateGlossary( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::CreateGlossaryRequest const& request); + + virtual future> + CreateGlossary(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListGlossaries( google::cloud::translation::v3::ListGlossariesRequest request); @@ -231,6 +260,15 @@ class TranslationServiceConnection { DeleteGlossary( google::cloud::translation::v3::DeleteGlossaryRequest const& request); + virtual StatusOr DeleteGlossary( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::translation::v3::DeleteGlossaryRequest const& request); + + virtual future< + StatusOr> + DeleteGlossary(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateAdaptiveMtDataset( google::cloud::translation::v3::CreateAdaptiveMtDatasetRequest const& diff --git a/google/cloud/video/livestream/v1/internal/livestream_connection_impl.cc b/google/cloud/video/livestream/v1/internal/livestream_connection_impl.cc index ac2e697310754..ace4d1a1bb384 100644 --- a/google/cloud/video/livestream/v1/internal/livestream_connection_impl.cc +++ b/google/cloud/video/livestream/v1/internal/livestream_connection_impl.cc @@ -111,6 +111,61 @@ LivestreamServiceConnectionImpl::CreateChannel( polling_policy(*current), __func__); } +StatusOr +LivestreamServiceConnectionImpl::CreateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateChannelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateChannel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::livestream::v1::CreateChannelRequest const& + request) { + return stub_->CreateChannel(context, options, request); + }, + *current, request, __func__); +} + +future> +LivestreamServiceConnectionImpl::CreateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateChannel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::livestream::v1::Channel>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::video::livestream::v1::Channel>, + polling_policy(*current), __func__); +} + StreamRange LivestreamServiceConnectionImpl::ListChannels( google::cloud::video::livestream::v1::ListChannelsRequest request) { @@ -202,6 +257,61 @@ LivestreamServiceConnectionImpl::DeleteChannel( polling_policy(*current), __func__); } +StatusOr +LivestreamServiceConnectionImpl::DeleteChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteChannelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteChannel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::livestream::v1::DeleteChannelRequest const& + request) { + return stub_->DeleteChannel(context, options, request); + }, + *current, request, __func__); +} + +future> +LivestreamServiceConnectionImpl::DeleteChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteChannel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::livestream::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::video::livestream::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> LivestreamServiceConnectionImpl::UpdateChannel( google::cloud::video::livestream::v1::UpdateChannelRequest const& request) { @@ -242,6 +352,61 @@ LivestreamServiceConnectionImpl::UpdateChannel( polling_policy(*current), __func__); } +StatusOr +LivestreamServiceConnectionImpl::UpdateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdateChannelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateChannel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::livestream::v1::UpdateChannelRequest const& + request) { + return stub_->UpdateChannel(context, options, request); + }, + *current, request, __func__); +} + +future> +LivestreamServiceConnectionImpl::UpdateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateChannel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::livestream::v1::Channel>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::video::livestream::v1::Channel>, + polling_policy(*current), __func__); +} + future> LivestreamServiceConnectionImpl::StartChannel( google::cloud::video::livestream::v1::StartChannelRequest const& request) { @@ -282,6 +447,61 @@ LivestreamServiceConnectionImpl::StartChannel( polling_policy(*current), __func__); } +StatusOr +LivestreamServiceConnectionImpl::StartChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::StartChannelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartChannel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::livestream::v1::StartChannelRequest const& + request) { + return stub_->StartChannel(context, options, request); + }, + *current, request, __func__); +} + +future> +LivestreamServiceConnectionImpl::StartChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to StartChannel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::livestream::v1::ChannelOperationResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::video::livestream::v1::ChannelOperationResponse>, + polling_policy(*current), __func__); +} + future> LivestreamServiceConnectionImpl::StopChannel( google::cloud::video::livestream::v1::StopChannelRequest const& request) { @@ -322,6 +542,61 @@ LivestreamServiceConnectionImpl::StopChannel( polling_policy(*current), __func__); } +StatusOr +LivestreamServiceConnectionImpl::StopChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::StopChannelRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StopChannel(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::livestream::v1::StopChannelRequest const& + request) { + return stub_->StopChannel(context, options, request); + }, + *current, request, __func__); +} + +future> +LivestreamServiceConnectionImpl::StopChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to StopChannel", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::livestream::v1::ChannelOperationResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::video::livestream::v1::ChannelOperationResponse>, + polling_policy(*current), __func__); +} + future> LivestreamServiceConnectionImpl::CreateInput( google::cloud::video::livestream::v1::CreateInputRequest const& request) { @@ -362,6 +637,61 @@ LivestreamServiceConnectionImpl::CreateInput( polling_policy(*current), __func__); } +StatusOr +LivestreamServiceConnectionImpl::CreateInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateInputRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateInput(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::livestream::v1::CreateInputRequest const& + request) { + return stub_->CreateInput(context, options, request); + }, + *current, request, __func__); +} + +future> +LivestreamServiceConnectionImpl::CreateInput( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateInput", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::livestream::v1::Input>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::video::livestream::v1::Input>, + polling_policy(*current), __func__); +} + StreamRange LivestreamServiceConnectionImpl::ListInputs( google::cloud::video::livestream::v1::ListInputsRequest request) { @@ -453,6 +783,61 @@ LivestreamServiceConnectionImpl::DeleteInput( polling_policy(*current), __func__); } +StatusOr +LivestreamServiceConnectionImpl::DeleteInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteInputRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteInput(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::livestream::v1::DeleteInputRequest const& + request) { + return stub_->DeleteInput(context, options, request); + }, + *current, request, __func__); +} + +future> +LivestreamServiceConnectionImpl::DeleteInput( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteInput", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::livestream::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::video::livestream::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> LivestreamServiceConnectionImpl::UpdateInput( google::cloud::video::livestream::v1::UpdateInputRequest const& request) { @@ -493,6 +878,61 @@ LivestreamServiceConnectionImpl::UpdateInput( polling_policy(*current), __func__); } +StatusOr +LivestreamServiceConnectionImpl::UpdateInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdateInputRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateInput(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::livestream::v1::UpdateInputRequest const& + request) { + return stub_->UpdateInput(context, options, request); + }, + *current, request, __func__); +} + +future> +LivestreamServiceConnectionImpl::UpdateInput( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateInput", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::livestream::v1::Input>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::video::livestream::v1::Input>, + polling_policy(*current), __func__); +} + StatusOr LivestreamServiceConnectionImpl::CreateEvent( google::cloud::video::livestream::v1::CreateEventRequest const& request) { @@ -613,6 +1053,61 @@ LivestreamServiceConnectionImpl::CreateAsset( polling_policy(*current), __func__); } +StatusOr +LivestreamServiceConnectionImpl::CreateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateAssetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateAsset(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::livestream::v1::CreateAssetRequest const& + request) { + return stub_->CreateAsset(context, options, request); + }, + *current, request, __func__); +} + +future> +LivestreamServiceConnectionImpl::CreateAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateAsset", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::livestream::v1::Asset>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::video::livestream::v1::Asset>, + polling_policy(*current), __func__); +} + future> LivestreamServiceConnectionImpl::DeleteAsset( google::cloud::video::livestream::v1::DeleteAssetRequest const& request) { @@ -653,6 +1148,61 @@ LivestreamServiceConnectionImpl::DeleteAsset( polling_policy(*current), __func__); } +StatusOr +LivestreamServiceConnectionImpl::DeleteAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteAssetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteAsset(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::livestream::v1::DeleteAssetRequest const& + request) { + return stub_->DeleteAsset(context, options, request); + }, + *current, request, __func__); +} + +future> +LivestreamServiceConnectionImpl::DeleteAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteAsset", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::livestream::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::video::livestream::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr LivestreamServiceConnectionImpl::GetAsset( google::cloud::video::livestream::v1::GetAssetRequest const& request) { @@ -759,6 +1309,61 @@ LivestreamServiceConnectionImpl::UpdatePool( polling_policy(*current), __func__); } +StatusOr +LivestreamServiceConnectionImpl::UpdatePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdatePoolRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdatePool(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::livestream::v1::UpdatePoolRequest const& + request) { + return stub_->UpdatePool(context, options, request); + }, + *current, request, __func__); +} + +future> +LivestreamServiceConnectionImpl::UpdatePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdatePool", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::livestream::v1::Pool>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::video::livestream::v1::Pool>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace video_livestream_v1_internal } // namespace cloud diff --git a/google/cloud/video/livestream/v1/internal/livestream_connection_impl.h b/google/cloud/video/livestream/v1/internal/livestream_connection_impl.h index 2e135d942637e..6ac3707baded9 100644 --- a/google/cloud/video/livestream/v1/internal/livestream_connection_impl.h +++ b/google/cloud/video/livestream/v1/internal/livestream_connection_impl.h @@ -56,6 +56,15 @@ class LivestreamServiceConnectionImpl google::cloud::video::livestream::v1::CreateChannelRequest const& request) override; + StatusOr CreateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateChannelRequest const& request) + override; + + future> CreateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListChannels( google::cloud::video::livestream::v1::ListChannelsRequest request) override; @@ -69,24 +78,71 @@ class LivestreamServiceConnectionImpl google::cloud::video::livestream::v1::DeleteChannelRequest const& request) override; + StatusOr DeleteChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteChannelRequest const& request) + override; + + future> + DeleteChannel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateChannel( google::cloud::video::livestream::v1::UpdateChannelRequest const& request) override; + StatusOr UpdateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdateChannelRequest const& request) + override; + + future> UpdateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> StartChannel(google::cloud::video::livestream::v1::StartChannelRequest const& request) override; + StatusOr StartChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::StartChannelRequest const& request) + override; + + future< + StatusOr> + StartChannel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> StopChannel(google::cloud::video::livestream::v1::StopChannelRequest const& request) override; + StatusOr StopChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::StopChannelRequest const& request) + override; + + future< + StatusOr> + StopChannel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateInput( google::cloud::video::livestream::v1::CreateInputRequest const& request) override; + StatusOr CreateInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateInputRequest const& request) + override; + + future> CreateInput( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListInputs( google::cloud::video::livestream::v1::ListInputsRequest request) override; @@ -98,10 +154,28 @@ class LivestreamServiceConnectionImpl DeleteInput(google::cloud::video::livestream::v1::DeleteInputRequest const& request) override; + StatusOr DeleteInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteInputRequest const& request) + override; + + future> + DeleteInput(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInput( google::cloud::video::livestream::v1::UpdateInputRequest const& request) override; + StatusOr UpdateInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdateInputRequest const& request) + override; + + future> UpdateInput( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateEvent( google::cloud::video::livestream::v1::CreateEventRequest const& request) override; @@ -121,10 +195,28 @@ class LivestreamServiceConnectionImpl google::cloud::video::livestream::v1::CreateAssetRequest const& request) override; + StatusOr CreateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateAssetRequest const& request) + override; + + future> CreateAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAsset(google::cloud::video::livestream::v1::DeleteAssetRequest const& request) override; + StatusOr DeleteAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteAssetRequest const& request) + override; + + future> + DeleteAsset(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAsset( google::cloud::video::livestream::v1::GetAssetRequest const& request) override; @@ -140,6 +232,15 @@ class LivestreamServiceConnectionImpl google::cloud::video::livestream::v1::UpdatePoolRequest const& request) override; + StatusOr UpdatePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdatePoolRequest const& request) + override; + + future> UpdatePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.cc b/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.cc index d7445ec9aa45e..f06a5fc9950bb 100644 --- a/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.cc +++ b/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.cc @@ -42,6 +42,30 @@ LivestreamServiceTracingConnection::CreateChannel( return internal::EndSpan(std::move(span), child_->CreateChannel(request)); } +StatusOr +LivestreamServiceTracingConnection::CreateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateChannelRequest const& request) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::CreateChannel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateChannel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +LivestreamServiceTracingConnection::CreateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::CreateChannel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateChannel(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange LivestreamServiceTracingConnection::ListChannels( google::cloud::video::livestream::v1::ListChannelsRequest request) { @@ -72,6 +96,30 @@ LivestreamServiceTracingConnection::DeleteChannel( return internal::EndSpan(std::move(span), child_->DeleteChannel(request)); } +StatusOr +LivestreamServiceTracingConnection::DeleteChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteChannelRequest const& request) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::DeleteChannel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteChannel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +LivestreamServiceTracingConnection::DeleteChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::DeleteChannel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteChannel(google::cloud::ExperimentalTag{}, operation)); +} + future> LivestreamServiceTracingConnection::UpdateChannel( google::cloud::video::livestream::v1::UpdateChannelRequest const& request) { @@ -81,6 +129,30 @@ LivestreamServiceTracingConnection::UpdateChannel( return internal::EndSpan(std::move(span), child_->UpdateChannel(request)); } +StatusOr +LivestreamServiceTracingConnection::UpdateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdateChannelRequest const& request) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::UpdateChannel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateChannel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +LivestreamServiceTracingConnection::UpdateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::UpdateChannel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateChannel(google::cloud::ExperimentalTag{}, operation)); +} + future> LivestreamServiceTracingConnection::StartChannel( google::cloud::video::livestream::v1::StartChannelRequest const& request) { @@ -90,6 +162,30 @@ LivestreamServiceTracingConnection::StartChannel( return internal::EndSpan(std::move(span), child_->StartChannel(request)); } +StatusOr +LivestreamServiceTracingConnection::StartChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::StartChannelRequest const& request) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::StartChannel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StartChannel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +LivestreamServiceTracingConnection::StartChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::StartChannel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StartChannel(google::cloud::ExperimentalTag{}, operation)); +} + future> LivestreamServiceTracingConnection::StopChannel( google::cloud::video::livestream::v1::StopChannelRequest const& request) { @@ -99,6 +195,30 @@ LivestreamServiceTracingConnection::StopChannel( return internal::EndSpan(std::move(span), child_->StopChannel(request)); } +StatusOr +LivestreamServiceTracingConnection::StopChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::StopChannelRequest const& request) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::StopChannel"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StopChannel(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +LivestreamServiceTracingConnection::StopChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::StopChannel"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StopChannel(google::cloud::ExperimentalTag{}, operation)); +} + future> LivestreamServiceTracingConnection::CreateInput( google::cloud::video::livestream::v1::CreateInputRequest const& request) { @@ -108,6 +228,30 @@ LivestreamServiceTracingConnection::CreateInput( return internal::EndSpan(std::move(span), child_->CreateInput(request)); } +StatusOr +LivestreamServiceTracingConnection::CreateInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateInputRequest const& request) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::CreateInput"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateInput(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +LivestreamServiceTracingConnection::CreateInput( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::CreateInput"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateInput(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange LivestreamServiceTracingConnection::ListInputs( google::cloud::video::livestream::v1::ListInputsRequest request) { @@ -138,6 +282,30 @@ LivestreamServiceTracingConnection::DeleteInput( return internal::EndSpan(std::move(span), child_->DeleteInput(request)); } +StatusOr +LivestreamServiceTracingConnection::DeleteInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteInputRequest const& request) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::DeleteInput"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteInput(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +LivestreamServiceTracingConnection::DeleteInput( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::DeleteInput"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteInput(google::cloud::ExperimentalTag{}, operation)); +} + future> LivestreamServiceTracingConnection::UpdateInput( google::cloud::video::livestream::v1::UpdateInputRequest const& request) { @@ -147,6 +315,30 @@ LivestreamServiceTracingConnection::UpdateInput( return internal::EndSpan(std::move(span), child_->UpdateInput(request)); } +StatusOr +LivestreamServiceTracingConnection::UpdateInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdateInputRequest const& request) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::UpdateInput"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateInput(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +LivestreamServiceTracingConnection::UpdateInput( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::UpdateInput"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateInput(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr LivestreamServiceTracingConnection::CreateEvent( google::cloud::video::livestream::v1::CreateEventRequest const& request) { @@ -194,6 +386,30 @@ LivestreamServiceTracingConnection::CreateAsset( return internal::EndSpan(std::move(span), child_->CreateAsset(request)); } +StatusOr +LivestreamServiceTracingConnection::CreateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateAssetRequest const& request) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::CreateAsset"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateAsset(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +LivestreamServiceTracingConnection::CreateAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::CreateAsset"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateAsset(google::cloud::ExperimentalTag{}, operation)); +} + future> LivestreamServiceTracingConnection::DeleteAsset( google::cloud::video::livestream::v1::DeleteAssetRequest const& request) { @@ -203,6 +419,30 @@ LivestreamServiceTracingConnection::DeleteAsset( return internal::EndSpan(std::move(span), child_->DeleteAsset(request)); } +StatusOr +LivestreamServiceTracingConnection::DeleteAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteAssetRequest const& request) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::DeleteAsset"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteAsset(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +LivestreamServiceTracingConnection::DeleteAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::DeleteAsset"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteAsset(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr LivestreamServiceTracingConnection::GetAsset( google::cloud::video::livestream::v1::GetAssetRequest const& request) { @@ -242,6 +482,30 @@ LivestreamServiceTracingConnection::UpdatePool( return internal::EndSpan(std::move(span), child_->UpdatePool(request)); } +StatusOr +LivestreamServiceTracingConnection::UpdatePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdatePoolRequest const& request) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::UpdatePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdatePool(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +LivestreamServiceTracingConnection::UpdatePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_livestream_v1::LivestreamServiceConnection::UpdatePool"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdatePool(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.h b/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.h index 2f06f88f1effe..c389d084f4967 100644 --- a/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.h +++ b/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.h @@ -44,6 +44,15 @@ class LivestreamServiceTracingConnection google::cloud::video::livestream::v1::CreateChannelRequest const& request) override; + StatusOr CreateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateChannelRequest const& request) + override; + + future> CreateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListChannels( google::cloud::video::livestream::v1::ListChannelsRequest request) override; @@ -57,24 +66,71 @@ class LivestreamServiceTracingConnection google::cloud::video::livestream::v1::DeleteChannelRequest const& request) override; + StatusOr DeleteChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteChannelRequest const& request) + override; + + future> + DeleteChannel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateChannel( google::cloud::video::livestream::v1::UpdateChannelRequest const& request) override; + StatusOr UpdateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdateChannelRequest const& request) + override; + + future> UpdateChannel( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> StartChannel(google::cloud::video::livestream::v1::StartChannelRequest const& request) override; + StatusOr StartChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::StartChannelRequest const& request) + override; + + future< + StatusOr> + StartChannel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future< StatusOr> StopChannel(google::cloud::video::livestream::v1::StopChannelRequest const& request) override; + StatusOr StopChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::StopChannelRequest const& request) + override; + + future< + StatusOr> + StopChannel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateInput( google::cloud::video::livestream::v1::CreateInputRequest const& request) override; + StatusOr CreateInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateInputRequest const& request) + override; + + future> CreateInput( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListInputs( google::cloud::video::livestream::v1::ListInputsRequest request) override; @@ -86,10 +142,28 @@ class LivestreamServiceTracingConnection DeleteInput(google::cloud::video::livestream::v1::DeleteInputRequest const& request) override; + StatusOr DeleteInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteInputRequest const& request) + override; + + future> + DeleteInput(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateInput( google::cloud::video::livestream::v1::UpdateInputRequest const& request) override; + StatusOr UpdateInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdateInputRequest const& request) + override; + + future> UpdateInput( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateEvent( google::cloud::video::livestream::v1::CreateEventRequest const& request) override; @@ -109,10 +183,28 @@ class LivestreamServiceTracingConnection google::cloud::video::livestream::v1::CreateAssetRequest const& request) override; + StatusOr CreateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateAssetRequest const& request) + override; + + future> CreateAsset( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteAsset(google::cloud::video::livestream::v1::DeleteAssetRequest const& request) override; + StatusOr DeleteAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteAssetRequest const& request) + override; + + future> + DeleteAsset(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetAsset( google::cloud::video::livestream::v1::GetAssetRequest const& request) override; @@ -128,6 +220,15 @@ class LivestreamServiceTracingConnection google::cloud::video::livestream::v1::UpdatePoolRequest const& request) override; + StatusOr UpdatePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdatePoolRequest const& request) + override; + + future> UpdatePool( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/video/livestream/v1/livestream_connection.cc b/google/cloud/video/livestream/v1/livestream_connection.cc index 30856ac5d2925..d7edc51e5ea79 100644 --- a/google/cloud/video/livestream/v1/livestream_connection.cc +++ b/google/cloud/video/livestream/v1/livestream_connection.cc @@ -46,6 +46,22 @@ LivestreamServiceConnection::CreateChannel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +LivestreamServiceConnection::CreateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateChannelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +LivestreamServiceConnection::CreateChannel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange LivestreamServiceConnection::ListChannels( google::cloud::video::livestream::v1:: @@ -68,6 +84,22 @@ LivestreamServiceConnection::DeleteChannel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +LivestreamServiceConnection::DeleteChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteChannelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +LivestreamServiceConnection::DeleteChannel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> LivestreamServiceConnection::UpdateChannel( google::cloud::video::livestream::v1::UpdateChannelRequest const&) { @@ -76,6 +108,22 @@ LivestreamServiceConnection::UpdateChannel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +LivestreamServiceConnection::UpdateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdateChannelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +LivestreamServiceConnection::UpdateChannel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> LivestreamServiceConnection::StartChannel( google::cloud::video::livestream::v1::StartChannelRequest const&) { @@ -84,6 +132,22 @@ LivestreamServiceConnection::StartChannel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +LivestreamServiceConnection::StartChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::StartChannelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +LivestreamServiceConnection::StartChannel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> LivestreamServiceConnection::StopChannel( google::cloud::video::livestream::v1::StopChannelRequest const&) { @@ -92,6 +156,22 @@ LivestreamServiceConnection::StopChannel( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +LivestreamServiceConnection::StopChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::StopChannelRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +LivestreamServiceConnection::StopChannel( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> LivestreamServiceConnection::CreateInput( google::cloud::video::livestream::v1::CreateInputRequest const&) { @@ -100,6 +180,22 @@ LivestreamServiceConnection::CreateInput( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +LivestreamServiceConnection::CreateInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateInputRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +LivestreamServiceConnection::CreateInput( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange LivestreamServiceConnection::ListInputs( google::cloud::video::livestream::v1:: @@ -122,6 +218,22 @@ LivestreamServiceConnection::DeleteInput( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +LivestreamServiceConnection::DeleteInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteInputRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +LivestreamServiceConnection::DeleteInput( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> LivestreamServiceConnection::UpdateInput( google::cloud::video::livestream::v1::UpdateInputRequest const&) { @@ -130,6 +242,22 @@ LivestreamServiceConnection::UpdateInput( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +LivestreamServiceConnection::UpdateInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdateInputRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +LivestreamServiceConnection::UpdateInput( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr LivestreamServiceConnection::CreateEvent( google::cloud::video::livestream::v1::CreateEventRequest const&) { @@ -163,6 +291,22 @@ LivestreamServiceConnection::CreateAsset( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +LivestreamServiceConnection::CreateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateAssetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +LivestreamServiceConnection::CreateAsset( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> LivestreamServiceConnection::DeleteAsset( google::cloud::video::livestream::v1::DeleteAssetRequest const&) { @@ -171,6 +315,22 @@ LivestreamServiceConnection::DeleteAsset( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +LivestreamServiceConnection::DeleteAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteAssetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +LivestreamServiceConnection::DeleteAsset( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr LivestreamServiceConnection::GetAsset( google::cloud::video::livestream::v1::GetAssetRequest const&) { @@ -199,6 +359,22 @@ LivestreamServiceConnection::UpdatePool( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +LivestreamServiceConnection::UpdatePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdatePoolRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +LivestreamServiceConnection::UpdatePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeLivestreamServiceConnection( Options options) { internal::CheckExpectedOptions CreateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateChannelRequest const& + request); + + virtual future> + CreateChannel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListChannels( google::cloud::video::livestream::v1::ListChannelsRequest request); @@ -205,25 +216,70 @@ class LivestreamServiceConnection { google::cloud::video::livestream::v1::DeleteChannelRequest const& request); + virtual StatusOr DeleteChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteChannelRequest const& + request); + + virtual future< + StatusOr> + DeleteChannel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateChannel( google::cloud::video::livestream::v1::UpdateChannelRequest const& request); + virtual StatusOr UpdateChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdateChannelRequest const& + request); + + virtual future> + UpdateChannel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> StartChannel( google::cloud::video::livestream::v1::StartChannelRequest const& request); + virtual StatusOr StartChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::StartChannelRequest const& request); + + virtual future< + StatusOr> + StartChannel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> StopChannel( google::cloud::video::livestream::v1::StopChannelRequest const& request); + virtual StatusOr StopChannel( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::StopChannelRequest const& request); + + virtual future< + StatusOr> + StopChannel(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateInput( google::cloud::video::livestream::v1::CreateInputRequest const& request); + virtual StatusOr CreateInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateInputRequest const& request); + + virtual future> + CreateInput(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListInputs( google::cloud::video::livestream::v1::ListInputsRequest request); @@ -235,10 +291,27 @@ class LivestreamServiceConnection { DeleteInput( google::cloud::video::livestream::v1::DeleteInputRequest const& request); + virtual StatusOr DeleteInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteInputRequest const& request); + + virtual future< + StatusOr> + DeleteInput(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateInput( google::cloud::video::livestream::v1::UpdateInputRequest const& request); + virtual StatusOr UpdateInput( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdateInputRequest const& request); + + virtual future> + UpdateInput(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateEvent( google::cloud::video::livestream::v1::CreateEventRequest const& request); @@ -255,11 +328,28 @@ class LivestreamServiceConnection { CreateAsset( google::cloud::video::livestream::v1::CreateAssetRequest const& request); + virtual StatusOr CreateAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateAssetRequest const& request); + + virtual future> + CreateAsset(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteAsset( google::cloud::video::livestream::v1::DeleteAssetRequest const& request); + virtual StatusOr DeleteAsset( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteAssetRequest const& request); + + virtual future< + StatusOr> + DeleteAsset(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetAsset( google::cloud::video::livestream::v1::GetAssetRequest const& request); @@ -272,6 +362,14 @@ class LivestreamServiceConnection { virtual future> UpdatePool( google::cloud::video::livestream::v1::UpdatePoolRequest const& request); + + virtual StatusOr UpdatePool( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdatePoolRequest const& request); + + virtual future> + UpdatePool(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/video/livestream/v1/mocks/mock_livestream_connection.h b/google/cloud/video/livestream/v1/mocks/mock_livestream_connection.h index f95eb0fe48cb3..f1b0b3df1ed10 100644 --- a/google/cloud/video/livestream/v1/mocks/mock_livestream_connection.h +++ b/google/cloud/video/livestream/v1/mocks/mock_livestream_connection.h @@ -53,6 +53,18 @@ class MockLivestreamServiceConnection request), (override)); + MOCK_METHOD(StatusOr, CreateChannel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateChannelRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateChannel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListChannels, @@ -71,12 +83,37 @@ class MockLivestreamServiceConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteChannel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteChannelRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteChannel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateChannel, (google::cloud::video::livestream::v1::UpdateChannelRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateChannel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdateChannelRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateChannel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -85,6 +122,20 @@ class MockLivestreamServiceConnection request), (override)); + MOCK_METHOD(StatusOr, StartChannel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::StartChannelRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + StartChannel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -92,12 +143,38 @@ class MockLivestreamServiceConnection (google::cloud::video::livestream::v1::StopChannelRequest const& request), (override)); + MOCK_METHOD( + StatusOr, StopChannel, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::StopChannelRequest const& request), + (override)); + + MOCK_METHOD( + future>, + StopChannel, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateInput, (google::cloud::video::livestream::v1::CreateInputRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateInput, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateInputRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateInput, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListInputs, (google::cloud::video::livestream::v1::ListInputsRequest request), @@ -114,12 +191,37 @@ class MockLivestreamServiceConnection (google::cloud::video::livestream::v1::DeleteInputRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteInput, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteInputRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteInput, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateInput, (google::cloud::video::livestream::v1::UpdateInputRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateInput, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdateInputRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateInput, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CreateEvent, (google::cloud::video::livestream::v1::CreateEventRequest const& request), @@ -146,12 +248,37 @@ class MockLivestreamServiceConnection (google::cloud::video::livestream::v1::CreateAssetRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateAsset, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::CreateAssetRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateAsset, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteAsset, (google::cloud::video::livestream::v1::DeleteAssetRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteAsset, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::DeleteAssetRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteAsset, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetAsset, (google::cloud::video::livestream::v1::GetAssetRequest const& request), @@ -171,6 +298,18 @@ class MockLivestreamServiceConnection future>, UpdatePool, (google::cloud::video::livestream::v1::UpdatePoolRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, UpdatePool, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::livestream::v1::UpdatePoolRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdatePool, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.cc b/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.cc index 98db1d3a4fc8e..ed178de53444a 100644 --- a/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.cc +++ b/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.cc @@ -112,6 +112,61 @@ VideoStitcherServiceConnectionImpl::CreateCdnKey( polling_policy(*current), __func__); } +StatusOr +VideoStitcherServiceConnectionImpl::CreateCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCdnKey(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& + request) { + return stub_->CreateCdnKey(context, options, request); + }, + *current, request, __func__); +} + +future> +VideoStitcherServiceConnectionImpl::CreateCdnKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCdnKey", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::stitcher::v1::CdnKey>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::video::stitcher::v1::CdnKey>, + polling_policy(*current), __func__); +} + StreamRange VideoStitcherServiceConnectionImpl::ListCdnKeys( google::cloud::video::stitcher::v1::ListCdnKeysRequest request) { @@ -202,6 +257,61 @@ VideoStitcherServiceConnectionImpl::DeleteCdnKey( polling_policy(*current), __func__); } +StatusOr +VideoStitcherServiceConnectionImpl::DeleteCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCdnKey(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& + request) { + return stub_->DeleteCdnKey(context, options, request); + }, + *current, request, __func__); +} + +future> +VideoStitcherServiceConnectionImpl::DeleteCdnKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCdnKey", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::stitcher::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::video::stitcher::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> VideoStitcherServiceConnectionImpl::UpdateCdnKey( google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request) { @@ -242,6 +352,61 @@ VideoStitcherServiceConnectionImpl::UpdateCdnKey( polling_policy(*current), __func__); } +StatusOr +VideoStitcherServiceConnectionImpl::UpdateCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCdnKey(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& + request) { + return stub_->UpdateCdnKey(context, options, request); + }, + *current, request, __func__); +} + +future> +VideoStitcherServiceConnectionImpl::UpdateCdnKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCdnKey", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::stitcher::v1::CdnKey>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::video::stitcher::v1::CdnKey>, + polling_policy(*current), __func__); +} + StatusOr VideoStitcherServiceConnectionImpl::CreateVodSession( google::cloud::video::stitcher::v1::CreateVodSessionRequest const& @@ -473,6 +638,61 @@ VideoStitcherServiceConnectionImpl::CreateSlate( polling_policy(*current), __func__); } +StatusOr +VideoStitcherServiceConnectionImpl::CreateSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateSlateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateSlate(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::stitcher::v1::CreateSlateRequest const& + request) { + return stub_->CreateSlate(context, options, request); + }, + *current, request, __func__); +} + +future> +VideoStitcherServiceConnectionImpl::CreateSlate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateSlate", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::stitcher::v1::Slate>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::video::stitcher::v1::Slate>, + polling_policy(*current), __func__); +} + StreamRange VideoStitcherServiceConnectionImpl::ListSlates( google::cloud::video::stitcher::v1::ListSlatesRequest request) { @@ -563,6 +783,61 @@ VideoStitcherServiceConnectionImpl::UpdateSlate( polling_policy(*current), __func__); } +StatusOr +VideoStitcherServiceConnectionImpl::UpdateSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateSlateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateSlate(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::stitcher::v1::UpdateSlateRequest const& + request) { + return stub_->UpdateSlate(context, options, request); + }, + *current, request, __func__); +} + +future> +VideoStitcherServiceConnectionImpl::UpdateSlate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateSlate", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::stitcher::v1::Slate>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::video::stitcher::v1::Slate>, + polling_policy(*current), __func__); +} + future> VideoStitcherServiceConnectionImpl::DeleteSlate( google::cloud::video::stitcher::v1::DeleteSlateRequest const& request) { @@ -603,6 +878,61 @@ VideoStitcherServiceConnectionImpl::DeleteSlate( polling_policy(*current), __func__); } +StatusOr +VideoStitcherServiceConnectionImpl::DeleteSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteSlateRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSlate(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::stitcher::v1::DeleteSlateRequest const& + request) { + return stub_->DeleteSlate(context, options, request); + }, + *current, request, __func__); +} + +future> +VideoStitcherServiceConnectionImpl::DeleteSlate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteSlate", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::stitcher::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::video::stitcher::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr VideoStitcherServiceConnectionImpl::CreateLiveSession( google::cloud::video::stitcher::v1::CreateLiveSessionRequest const& @@ -675,6 +1005,62 @@ VideoStitcherServiceConnectionImpl::CreateLiveConfig( polling_policy(*current), __func__); } +StatusOr +VideoStitcherServiceConnectionImpl::CreateLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateLiveConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& + request) { + return stub_->CreateLiveConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +VideoStitcherServiceConnectionImpl::CreateLiveConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateLiveConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::stitcher::v1::LiveConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::video::stitcher::v1::LiveConfig>, + polling_policy(*current), __func__); +} + StreamRange VideoStitcherServiceConnectionImpl::ListLiveConfigs( google::cloud::video::stitcher::v1::ListLiveConfigsRequest request) { @@ -766,6 +1152,62 @@ VideoStitcherServiceConnectionImpl::DeleteLiveConfig( polling_policy(*current), __func__); } +StatusOr +VideoStitcherServiceConnectionImpl::DeleteLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteLiveConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& + request) { + return stub_->DeleteLiveConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +VideoStitcherServiceConnectionImpl::DeleteLiveConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteLiveConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::stitcher::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::video::stitcher::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> VideoStitcherServiceConnectionImpl::UpdateLiveConfig( google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& @@ -807,6 +1249,62 @@ VideoStitcherServiceConnectionImpl::UpdateLiveConfig( polling_policy(*current), __func__); } +StatusOr +VideoStitcherServiceConnectionImpl::UpdateLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateLiveConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& + request) { + return stub_->UpdateLiveConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +VideoStitcherServiceConnectionImpl::UpdateLiveConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateLiveConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::stitcher::v1::LiveConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::video::stitcher::v1::LiveConfig>, + polling_policy(*current), __func__); +} + future> VideoStitcherServiceConnectionImpl::CreateVodConfig( google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request) { @@ -847,6 +1345,61 @@ VideoStitcherServiceConnectionImpl::CreateVodConfig( polling_policy(*current), __func__); } +StatusOr +VideoStitcherServiceConnectionImpl::CreateVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateVodConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::stitcher::v1::CreateVodConfigRequest const& + request) { + return stub_->CreateVodConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +VideoStitcherServiceConnectionImpl::CreateVodConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateVodConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::stitcher::v1::VodConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::video::stitcher::v1::VodConfig>, + polling_policy(*current), __func__); +} + StreamRange VideoStitcherServiceConnectionImpl::ListVodConfigs( google::cloud::video::stitcher::v1::ListVodConfigsRequest request) { @@ -938,6 +1491,61 @@ VideoStitcherServiceConnectionImpl::DeleteVodConfig( polling_policy(*current), __func__); } +StatusOr +VideoStitcherServiceConnectionImpl::DeleteVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteVodConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& + request) { + return stub_->DeleteVodConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +VideoStitcherServiceConnectionImpl::DeleteVodConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteVodConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::stitcher::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::video::stitcher::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> VideoStitcherServiceConnectionImpl::UpdateVodConfig( google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request) { @@ -978,6 +1586,61 @@ VideoStitcherServiceConnectionImpl::UpdateVodConfig( polling_policy(*current), __func__); } +StatusOr +VideoStitcherServiceConnectionImpl::UpdateVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateVodConfig(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& + request) { + return stub_->UpdateVodConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +VideoStitcherServiceConnectionImpl::UpdateVodConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateVodConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::video::stitcher::v1::VodConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::video::stitcher::v1::VodConfig>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace video_stitcher_v1_internal } // namespace cloud diff --git a/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.h b/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.h index 7b9056eff02d0..883f4911af961 100644 --- a/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.h +++ b/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.h @@ -57,6 +57,15 @@ class VideoStitcherServiceConnectionImpl google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request) override; + StatusOr CreateCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request) + override; + + future> CreateCdnKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListCdnKeys( google::cloud::video::stitcher::v1::ListCdnKeysRequest request) override; @@ -68,10 +77,28 @@ class VideoStitcherServiceConnectionImpl DeleteCdnKey(google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request) override; + StatusOr DeleteCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request) + override; + + future> + DeleteCdnKey(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCdnKey( google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request) override; + StatusOr UpdateCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request) + override; + + future> UpdateCdnKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateVodSession( google::cloud::video::stitcher::v1::CreateVodSessionRequest const& request) override; @@ -114,6 +141,15 @@ class VideoStitcherServiceConnectionImpl google::cloud::video::stitcher::v1::CreateSlateRequest const& request) override; + StatusOr CreateSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateSlateRequest const& request) + override; + + future> CreateSlate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListSlates( google::cloud::video::stitcher::v1::ListSlatesRequest request) override; @@ -125,10 +161,28 @@ class VideoStitcherServiceConnectionImpl google::cloud::video::stitcher::v1::UpdateSlateRequest const& request) override; + StatusOr UpdateSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateSlateRequest const& request) + override; + + future> UpdateSlate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSlate(google::cloud::video::stitcher::v1::DeleteSlateRequest const& request) override; + StatusOr DeleteSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteSlateRequest const& request) + override; + + future> + DeleteSlate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateLiveSession( google::cloud::video::stitcher::v1::CreateLiveSessionRequest const& request) override; @@ -142,6 +196,15 @@ class VideoStitcherServiceConnectionImpl google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& request) override; + StatusOr CreateLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& + request) override; + + future> + CreateLiveConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListLiveConfigs( google::cloud::video::stitcher::v1::ListLiveConfigsRequest request) override; @@ -155,16 +218,43 @@ class VideoStitcherServiceConnectionImpl google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& request) override; + StatusOr DeleteLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& + request) override; + + future> + DeleteLiveConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateLiveConfig( google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& request) override; + StatusOr UpdateLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& + request) override; + + future> + UpdateLiveConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateVodConfig( google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request) override; + StatusOr CreateVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request) + override; + + future> + CreateVodConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListVodConfigs( google::cloud::video::stitcher::v1::ListVodConfigsRequest request) override; @@ -178,11 +268,29 @@ class VideoStitcherServiceConnectionImpl google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& request) override; + StatusOr DeleteVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& request) + override; + + future> + DeleteVodConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateVodConfig( google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request) override; + StatusOr UpdateVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request) + override; + + future> + UpdateVodConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.cc b/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.cc index 98b1c66717a4c..54dfc07fd122b 100644 --- a/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.cc +++ b/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.cc @@ -42,6 +42,30 @@ VideoStitcherServiceTracingConnection::CreateCdnKey( return internal::EndSpan(std::move(span), child_->CreateCdnKey(request)); } +StatusOr +VideoStitcherServiceTracingConnection::CreateCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::CreateCdnKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateCdnKey(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VideoStitcherServiceTracingConnection::CreateCdnKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::CreateCdnKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateCdnKey(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VideoStitcherServiceTracingConnection::ListCdnKeys( google::cloud::video::stitcher::v1::ListCdnKeysRequest request) { @@ -72,6 +96,30 @@ VideoStitcherServiceTracingConnection::DeleteCdnKey( return internal::EndSpan(std::move(span), child_->DeleteCdnKey(request)); } +StatusOr +VideoStitcherServiceTracingConnection::DeleteCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::DeleteCdnKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteCdnKey(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VideoStitcherServiceTracingConnection::DeleteCdnKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::DeleteCdnKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteCdnKey(google::cloud::ExperimentalTag{}, operation)); +} + future> VideoStitcherServiceTracingConnection::UpdateCdnKey( google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request) { @@ -81,6 +129,30 @@ VideoStitcherServiceTracingConnection::UpdateCdnKey( return internal::EndSpan(std::move(span), child_->UpdateCdnKey(request)); } +StatusOr +VideoStitcherServiceTracingConnection::UpdateCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::UpdateCdnKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateCdnKey(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VideoStitcherServiceTracingConnection::UpdateCdnKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::UpdateCdnKey"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateCdnKey(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr VideoStitcherServiceTracingConnection::CreateVodSession( google::cloud::video::stitcher::v1::CreateVodSessionRequest const& @@ -177,6 +249,30 @@ VideoStitcherServiceTracingConnection::CreateSlate( return internal::EndSpan(std::move(span), child_->CreateSlate(request)); } +StatusOr +VideoStitcherServiceTracingConnection::CreateSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateSlateRequest const& request) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::CreateSlate"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateSlate(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VideoStitcherServiceTracingConnection::CreateSlate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::CreateSlate"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateSlate(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VideoStitcherServiceTracingConnection::ListSlates( google::cloud::video::stitcher::v1::ListSlatesRequest request) { @@ -207,6 +303,30 @@ VideoStitcherServiceTracingConnection::UpdateSlate( return internal::EndSpan(std::move(span), child_->UpdateSlate(request)); } +StatusOr +VideoStitcherServiceTracingConnection::UpdateSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateSlateRequest const& request) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::UpdateSlate"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateSlate(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VideoStitcherServiceTracingConnection::UpdateSlate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::UpdateSlate"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateSlate(google::cloud::ExperimentalTag{}, operation)); +} + future> VideoStitcherServiceTracingConnection::DeleteSlate( google::cloud::video::stitcher::v1::DeleteSlateRequest const& request) { @@ -216,6 +336,30 @@ VideoStitcherServiceTracingConnection::DeleteSlate( return internal::EndSpan(std::move(span), child_->DeleteSlate(request)); } +StatusOr +VideoStitcherServiceTracingConnection::DeleteSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteSlateRequest const& request) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::DeleteSlate"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSlate(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VideoStitcherServiceTracingConnection::DeleteSlate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::DeleteSlate"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSlate(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr VideoStitcherServiceTracingConnection::CreateLiveSession( google::cloud::video::stitcher::v1::CreateLiveSessionRequest const& @@ -245,6 +389,31 @@ VideoStitcherServiceTracingConnection::CreateLiveConfig( return internal::EndSpan(std::move(span), child_->CreateLiveConfig(request)); } +StatusOr +VideoStitcherServiceTracingConnection::CreateLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& + request) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::CreateLiveConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateLiveConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VideoStitcherServiceTracingConnection::CreateLiveConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::CreateLiveConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateLiveConfig(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VideoStitcherServiceTracingConnection::ListLiveConfigs( google::cloud::video::stitcher::v1::ListLiveConfigsRequest request) { @@ -276,6 +445,31 @@ VideoStitcherServiceTracingConnection::DeleteLiveConfig( return internal::EndSpan(std::move(span), child_->DeleteLiveConfig(request)); } +StatusOr +VideoStitcherServiceTracingConnection::DeleteLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& + request) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::DeleteLiveConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteLiveConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VideoStitcherServiceTracingConnection::DeleteLiveConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::DeleteLiveConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteLiveConfig(google::cloud::ExperimentalTag{}, operation)); +} + future> VideoStitcherServiceTracingConnection::UpdateLiveConfig( google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& @@ -286,6 +480,31 @@ VideoStitcherServiceTracingConnection::UpdateLiveConfig( return internal::EndSpan(std::move(span), child_->UpdateLiveConfig(request)); } +StatusOr +VideoStitcherServiceTracingConnection::UpdateLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& + request) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::UpdateLiveConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateLiveConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VideoStitcherServiceTracingConnection::UpdateLiveConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::UpdateLiveConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateLiveConfig(google::cloud::ExperimentalTag{}, operation)); +} + future> VideoStitcherServiceTracingConnection::CreateVodConfig( google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request) { @@ -295,6 +514,30 @@ VideoStitcherServiceTracingConnection::CreateVodConfig( return internal::EndSpan(std::move(span), child_->CreateVodConfig(request)); } +StatusOr +VideoStitcherServiceTracingConnection::CreateVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::CreateVodConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateVodConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VideoStitcherServiceTracingConnection::CreateVodConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::CreateVodConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateVodConfig(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VideoStitcherServiceTracingConnection::ListVodConfigs( google::cloud::video::stitcher::v1::ListVodConfigsRequest request) { @@ -325,6 +568,30 @@ VideoStitcherServiceTracingConnection::DeleteVodConfig( return internal::EndSpan(std::move(span), child_->DeleteVodConfig(request)); } +StatusOr +VideoStitcherServiceTracingConnection::DeleteVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& request) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::DeleteVodConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteVodConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VideoStitcherServiceTracingConnection::DeleteVodConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::DeleteVodConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteVodConfig(google::cloud::ExperimentalTag{}, operation)); +} + future> VideoStitcherServiceTracingConnection::UpdateVodConfig( google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request) { @@ -334,6 +601,30 @@ VideoStitcherServiceTracingConnection::UpdateVodConfig( return internal::EndSpan(std::move(span), child_->UpdateVodConfig(request)); } +StatusOr +VideoStitcherServiceTracingConnection::UpdateVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::UpdateVodConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateVodConfig(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VideoStitcherServiceTracingConnection::UpdateVodConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "video_stitcher_v1::VideoStitcherServiceConnection::UpdateVodConfig"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateVodConfig(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.h b/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.h index 7f950b40be62e..fa9f4fb898422 100644 --- a/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.h +++ b/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.h @@ -44,6 +44,15 @@ class VideoStitcherServiceTracingConnection google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request) override; + StatusOr CreateCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request) + override; + + future> CreateCdnKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListCdnKeys( google::cloud::video::stitcher::v1::ListCdnKeysRequest request) override; @@ -55,10 +64,28 @@ class VideoStitcherServiceTracingConnection DeleteCdnKey(google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request) override; + StatusOr DeleteCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request) + override; + + future> + DeleteCdnKey(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCdnKey( google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request) override; + StatusOr UpdateCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request) + override; + + future> UpdateCdnKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateVodSession( google::cloud::video::stitcher::v1::CreateVodSessionRequest const& request) override; @@ -101,6 +128,15 @@ class VideoStitcherServiceTracingConnection google::cloud::video::stitcher::v1::CreateSlateRequest const& request) override; + StatusOr CreateSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateSlateRequest const& request) + override; + + future> CreateSlate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListSlates( google::cloud::video::stitcher::v1::ListSlatesRequest request) override; @@ -112,10 +148,28 @@ class VideoStitcherServiceTracingConnection google::cloud::video::stitcher::v1::UpdateSlateRequest const& request) override; + StatusOr UpdateSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateSlateRequest const& request) + override; + + future> UpdateSlate( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSlate(google::cloud::video::stitcher::v1::DeleteSlateRequest const& request) override; + StatusOr DeleteSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteSlateRequest const& request) + override; + + future> + DeleteSlate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr CreateLiveSession( google::cloud::video::stitcher::v1::CreateLiveSessionRequest const& request) override; @@ -129,6 +183,15 @@ class VideoStitcherServiceTracingConnection google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& request) override; + StatusOr CreateLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& + request) override; + + future> + CreateLiveConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListLiveConfigs( google::cloud::video::stitcher::v1::ListLiveConfigsRequest request) override; @@ -142,16 +205,43 @@ class VideoStitcherServiceTracingConnection google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& request) override; + StatusOr DeleteLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& + request) override; + + future> + DeleteLiveConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateLiveConfig( google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& request) override; + StatusOr UpdateLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& + request) override; + + future> + UpdateLiveConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateVodConfig( google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request) override; + StatusOr CreateVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request) + override; + + future> + CreateVodConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListVodConfigs( google::cloud::video::stitcher::v1::ListVodConfigsRequest request) override; @@ -165,11 +255,29 @@ class VideoStitcherServiceTracingConnection google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& request) override; + StatusOr DeleteVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& request) + override; + + future> + DeleteVodConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateVodConfig( google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request) override; + StatusOr UpdateVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request) + override; + + future> + UpdateVodConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/video/stitcher/v1/mocks/mock_video_stitcher_connection.h b/google/cloud/video/stitcher/v1/mocks/mock_video_stitcher_connection.h index 7156e290190d6..2a8dd10e02a63 100644 --- a/google/cloud/video/stitcher/v1/mocks/mock_video_stitcher_connection.h +++ b/google/cloud/video/stitcher/v1/mocks/mock_video_stitcher_connection.h @@ -53,6 +53,18 @@ class MockVideoStitcherServiceConnection (google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateCdnKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateCdnKey, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListCdnKeys, (google::cloud::video::stitcher::v1::ListCdnKeysRequest request), @@ -69,12 +81,37 @@ class MockVideoStitcherServiceConnection (google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteCdnKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteCdnKey, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateCdnKey, (google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateCdnKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateCdnKey, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CreateVodSession, @@ -131,6 +168,18 @@ class MockVideoStitcherServiceConnection (google::cloud::video::stitcher::v1::CreateSlateRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateSlate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateSlateRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateSlate, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListSlates, (google::cloud::video::stitcher::v1::ListSlatesRequest request), @@ -146,12 +195,37 @@ class MockVideoStitcherServiceConnection (google::cloud::video::stitcher::v1::UpdateSlateRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateSlate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateSlateRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateSlate, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteSlate, (google::cloud::video::stitcher::v1::DeleteSlateRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteSlate, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteSlateRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteSlate, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, CreateLiveSession, @@ -172,6 +246,19 @@ class MockVideoStitcherServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateLiveConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateLiveConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListLiveConfigs, @@ -190,6 +277,20 @@ class MockVideoStitcherServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteLiveConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteLiveConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateLiveConfig, @@ -197,12 +298,37 @@ class MockVideoStitcherServiceConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateLiveConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateLiveConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, CreateVodConfig, (google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request), (override)); + MOCK_METHOD(StatusOr, CreateVodConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateVodConfigRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateVodConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListVodConfigs, @@ -221,11 +347,36 @@ class MockVideoStitcherServiceConnection request), (override)); + MOCK_METHOD(StatusOr, DeleteVodConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteVodConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateVodConfig, (google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request), (override)); + + MOCK_METHOD(StatusOr, UpdateVodConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateVodConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/video/stitcher/v1/video_stitcher_connection.cc b/google/cloud/video/stitcher/v1/video_stitcher_connection.cc index de6a79164ad81..cd3e505ec612c 100644 --- a/google/cloud/video/stitcher/v1/video_stitcher_connection.cc +++ b/google/cloud/video/stitcher/v1/video_stitcher_connection.cc @@ -46,6 +46,22 @@ VideoStitcherServiceConnection::CreateCdnKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VideoStitcherServiceConnection::CreateCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateCdnKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VideoStitcherServiceConnection::CreateCdnKey( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VideoStitcherServiceConnection::ListCdnKeys( google::cloud::video::stitcher::v1:: @@ -68,6 +84,22 @@ VideoStitcherServiceConnection::DeleteCdnKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VideoStitcherServiceConnection::DeleteCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VideoStitcherServiceConnection::DeleteCdnKey( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VideoStitcherServiceConnection::UpdateCdnKey( google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const&) { @@ -76,6 +108,22 @@ VideoStitcherServiceConnection::UpdateCdnKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VideoStitcherServiceConnection::UpdateCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VideoStitcherServiceConnection::UpdateCdnKey( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr VideoStitcherServiceConnection::CreateVodSession( google::cloud::video::stitcher::v1::CreateVodSessionRequest const&) { @@ -138,6 +186,22 @@ VideoStitcherServiceConnection::CreateSlate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VideoStitcherServiceConnection::CreateSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateSlateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VideoStitcherServiceConnection::CreateSlate( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VideoStitcherServiceConnection::ListSlates( google::cloud::video::stitcher::v1:: @@ -160,6 +224,22 @@ VideoStitcherServiceConnection::UpdateSlate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VideoStitcherServiceConnection::UpdateSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateSlateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VideoStitcherServiceConnection::UpdateSlate( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VideoStitcherServiceConnection::DeleteSlate( google::cloud::video::stitcher::v1::DeleteSlateRequest const&) { @@ -168,6 +248,22 @@ VideoStitcherServiceConnection::DeleteSlate( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VideoStitcherServiceConnection::DeleteSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteSlateRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VideoStitcherServiceConnection::DeleteSlate( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr VideoStitcherServiceConnection::CreateLiveSession( google::cloud::video::stitcher::v1::CreateLiveSessionRequest const&) { @@ -188,6 +284,22 @@ VideoStitcherServiceConnection::CreateLiveConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VideoStitcherServiceConnection::CreateLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateLiveConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VideoStitcherServiceConnection::CreateLiveConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VideoStitcherServiceConnection::ListLiveConfigs( google::cloud::video::stitcher::v1:: @@ -210,6 +322,22 @@ VideoStitcherServiceConnection::DeleteLiveConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VideoStitcherServiceConnection::DeleteLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VideoStitcherServiceConnection::DeleteLiveConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VideoStitcherServiceConnection::UpdateLiveConfig( google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const&) { @@ -218,6 +346,22 @@ VideoStitcherServiceConnection::UpdateLiveConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VideoStitcherServiceConnection::UpdateLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VideoStitcherServiceConnection::UpdateLiveConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VideoStitcherServiceConnection::CreateVodConfig( google::cloud::video::stitcher::v1::CreateVodConfigRequest const&) { @@ -226,6 +370,22 @@ VideoStitcherServiceConnection::CreateVodConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VideoStitcherServiceConnection::CreateVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateVodConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VideoStitcherServiceConnection::CreateVodConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VideoStitcherServiceConnection::ListVodConfigs( google::cloud::video::stitcher::v1:: @@ -248,6 +408,22 @@ VideoStitcherServiceConnection::DeleteVodConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VideoStitcherServiceConnection::DeleteVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteVodConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VideoStitcherServiceConnection::DeleteVodConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VideoStitcherServiceConnection::UpdateVodConfig( google::cloud::video::stitcher::v1::UpdateVodConfigRequest const&) { @@ -256,6 +432,22 @@ VideoStitcherServiceConnection::UpdateVodConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VideoStitcherServiceConnection::UpdateVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateVodConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VideoStitcherServiceConnection::UpdateVodConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeVideoStitcherServiceConnection(Options options) { internal::CheckExpectedOptions CreateCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request); + + virtual future> + CreateCdnKey(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListCdnKeys( google::cloud::video::stitcher::v1::ListCdnKeysRequest request); @@ -205,10 +215,27 @@ class VideoStitcherServiceConnection { DeleteCdnKey( google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request); + virtual StatusOr DeleteCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request); + + virtual future< + StatusOr> + DeleteCdnKey(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateCdnKey( google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request); + virtual StatusOr UpdateCdnKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request); + + virtual future> + UpdateCdnKey(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateVodSession( google::cloud::video::stitcher::v1::CreateVodSessionRequest const& @@ -249,6 +276,14 @@ class VideoStitcherServiceConnection { CreateSlate( google::cloud::video::stitcher::v1::CreateSlateRequest const& request); + virtual StatusOr CreateSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateSlateRequest const& request); + + virtual future> + CreateSlate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListSlates( google::cloud::video::stitcher::v1::ListSlatesRequest request); @@ -259,11 +294,28 @@ class VideoStitcherServiceConnection { UpdateSlate( google::cloud::video::stitcher::v1::UpdateSlateRequest const& request); + virtual StatusOr UpdateSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateSlateRequest const& request); + + virtual future> + UpdateSlate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> DeleteSlate( google::cloud::video::stitcher::v1::DeleteSlateRequest const& request); + virtual StatusOr DeleteSlate( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteSlateRequest const& request); + + virtual future< + StatusOr> + DeleteSlate(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr CreateLiveSession( google::cloud::video::stitcher::v1::CreateLiveSessionRequest const& @@ -278,6 +330,15 @@ class VideoStitcherServiceConnection { google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& request); + virtual StatusOr CreateLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& + request); + + virtual future> + CreateLiveConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListLiveConfigs( google::cloud::video::stitcher::v1::ListLiveConfigsRequest request); @@ -292,16 +353,44 @@ class VideoStitcherServiceConnection { google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& request); + virtual StatusOr DeleteLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& + request); + + virtual future< + StatusOr> + DeleteLiveConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateLiveConfig( google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& request); + virtual StatusOr UpdateLiveConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& + request); + + virtual future> + UpdateLiveConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateVodConfig( google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request); + virtual StatusOr CreateVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::CreateVodConfigRequest const& + request); + + virtual future> + CreateVodConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListVodConfigs( google::cloud::video::stitcher::v1::ListVodConfigsRequest request); @@ -315,10 +404,29 @@ class VideoStitcherServiceConnection { google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& request); + virtual StatusOr DeleteVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& + request); + + virtual future< + StatusOr> + DeleteVodConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateVodConfig( google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request); + + virtual StatusOr UpdateVodConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& + request); + + virtual future> + UpdateVodConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/video/transcoder/v1/transcoder_connection.h b/google/cloud/video/transcoder/v1/transcoder_connection.h index ba26962f261d0..35698e31d9d33 100644 --- a/google/cloud/video/transcoder/v1/transcoder_connection.h +++ b/google/cloud/video/transcoder/v1/transcoder_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/video/transcoder/v1/internal/transcoder_retry_traits.h" #include "google/cloud/video/transcoder/v1/transcoder_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.cc b/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.cc index cda89a81ce696..4bd212c9668e4 100644 --- a/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.cc +++ b/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.cc @@ -112,6 +112,61 @@ VideoIntelligenceServiceConnectionImpl::AnnotateVideo( polling_policy(*current), __func__); } +StatusOr +VideoIntelligenceServiceConnectionImpl::AnnotateVideo( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::videointelligence::v1::AnnotateVideoRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AnnotateVideo(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::videointelligence::v1::AnnotateVideoRequest const& + request) { + return stub_->AnnotateVideo(context, options, request); + }, + *current, request, __func__); +} + +future> +VideoIntelligenceServiceConnectionImpl::AnnotateVideo( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to AnnotateVideo", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::videointelligence::v1::AnnotateVideoResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::videointelligence::v1::AnnotateVideoResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace videointelligence_v1_internal } // namespace cloud diff --git a/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.h b/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.h index bfc99ab7bb71a..fa5ec7b8d0df6 100644 --- a/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.h +++ b/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.h @@ -58,6 +58,15 @@ class VideoIntelligenceServiceConnectionImpl google::cloud::videointelligence::v1::AnnotateVideoRequest const& request) override; + StatusOr AnnotateVideo( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::videointelligence::v1::AnnotateVideoRequest const& request) + override; + + future> + AnnotateVideo(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr diff --git a/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.cc b/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.cc index cf926e6f19b67..66ed3baf89051 100644 --- a/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.cc +++ b/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.cc @@ -45,6 +45,32 @@ VideoIntelligenceServiceTracingConnection::AnnotateVideo( return internal::EndSpan(std::move(span), child_->AnnotateVideo(request)); } +StatusOr +VideoIntelligenceServiceTracingConnection::AnnotateVideo( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::videointelligence::v1::AnnotateVideoRequest const& request) { + auto span = internal::MakeSpan( + "videointelligence_v1::VideoIntelligenceServiceConnection::" + "AnnotateVideo"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AnnotateVideo(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VideoIntelligenceServiceTracingConnection::AnnotateVideo( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "videointelligence_v1::VideoIntelligenceServiceConnection::" + "AnnotateVideo"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AnnotateVideo(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.h b/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.h index 4a2b74c713dd6..f17bb296388ea 100644 --- a/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.h +++ b/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.h @@ -46,6 +46,15 @@ class VideoIntelligenceServiceTracingConnection google::cloud::videointelligence::v1::AnnotateVideoRequest const& request) override; + StatusOr AnnotateVideo( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::videointelligence::v1::AnnotateVideoRequest const& request) + override; + + future> + AnnotateVideo(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; diff --git a/google/cloud/videointelligence/v1/mocks/mock_video_intelligence_connection.h b/google/cloud/videointelligence/v1/mocks/mock_video_intelligence_connection.h index 8da58bd789231..a5c40001a019e 100644 --- a/google/cloud/videointelligence/v1/mocks/mock_video_intelligence_connection.h +++ b/google/cloud/videointelligence/v1/mocks/mock_video_intelligence_connection.h @@ -53,6 +53,19 @@ class MockVideoIntelligenceServiceConnection (google::cloud::videointelligence::v1::AnnotateVideoRequest const& request), (override)); + + MOCK_METHOD(StatusOr, AnnotateVideo, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::videointelligence::v1::AnnotateVideoRequest const& + request), + (override)); + + MOCK_METHOD(future>, + AnnotateVideo, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/videointelligence/v1/video_intelligence_connection.cc b/google/cloud/videointelligence/v1/video_intelligence_connection.cc index 4b504e0437029..8ded2a657ce9a 100644 --- a/google/cloud/videointelligence/v1/video_intelligence_connection.cc +++ b/google/cloud/videointelligence/v1/video_intelligence_connection.cc @@ -46,6 +46,22 @@ VideoIntelligenceServiceConnection::AnnotateVideo( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VideoIntelligenceServiceConnection::AnnotateVideo( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::videointelligence::v1::AnnotateVideoRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VideoIntelligenceServiceConnection::AnnotateVideo( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeVideoIntelligenceServiceConnection(Options options) { internal::CheckExpectedOptions AnnotateVideo( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::videointelligence::v1::AnnotateVideoRequest const& + request); + + virtual future< + StatusOr> + AnnotateVideo(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/vision/v1/image_annotator_connection.cc b/google/cloud/vision/v1/image_annotator_connection.cc index e7e23ecb55956..c89864c3f1d68 100644 --- a/google/cloud/vision/v1/image_annotator_connection.cc +++ b/google/cloud/vision/v1/image_annotator_connection.cc @@ -57,6 +57,22 @@ ImageAnnotatorConnection::AsyncBatchAnnotateImages( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ImageAnnotatorConnection::AsyncBatchAnnotateImages( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ImageAnnotatorConnection::AsyncBatchAnnotateImages( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ImageAnnotatorConnection::AsyncBatchAnnotateFiles( google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const&) { @@ -65,6 +81,22 @@ ImageAnnotatorConnection::AsyncBatchAnnotateFiles( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ImageAnnotatorConnection::AsyncBatchAnnotateFiles( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ImageAnnotatorConnection::AsyncBatchAnnotateFiles( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeImageAnnotatorConnection( Options options) { internal::CheckExpectedOptions AsyncBatchAnnotateImages( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& + request); + + virtual future< + StatusOr> + AsyncBatchAnnotateImages(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> AsyncBatchAnnotateFiles( google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request); + + virtual StatusOr AsyncBatchAnnotateFiles( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request); + + virtual future< + StatusOr> + AsyncBatchAnnotateFiles(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/vision/v1/internal/image_annotator_connection_impl.cc b/google/cloud/vision/v1/internal/image_annotator_connection_impl.cc index 93844fd540fbe..6eacd3b9d851d 100644 --- a/google/cloud/vision/v1/internal/image_annotator_connection_impl.cc +++ b/google/cloud/vision/v1/internal/image_annotator_connection_impl.cc @@ -133,6 +133,60 @@ ImageAnnotatorConnectionImpl::AsyncBatchAnnotateImages( polling_policy(*current), __func__); } +StatusOr +ImageAnnotatorConnectionImpl::AsyncBatchAnnotateImages( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AsyncBatchAnnotateImages(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& + request) { + return stub_->AsyncBatchAnnotateImages(context, options, request); + }, + *current, request, __func__); +} + +future> +ImageAnnotatorConnectionImpl::AsyncBatchAnnotateImages( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to AsyncBatchAnnotateImages", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vision::v1::AsyncBatchAnnotateImagesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vision::v1::AsyncBatchAnnotateImagesResponse>, + polling_policy(*current), __func__); +} + future> ImageAnnotatorConnectionImpl::AsyncBatchAnnotateFiles( google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request) { @@ -173,6 +227,60 @@ ImageAnnotatorConnectionImpl::AsyncBatchAnnotateFiles( polling_policy(*current), __func__); } +StatusOr +ImageAnnotatorConnectionImpl::AsyncBatchAnnotateFiles( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AsyncBatchAnnotateFiles(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& + request) { + return stub_->AsyncBatchAnnotateFiles(context, options, request); + }, + *current, request, __func__); +} + +future> +ImageAnnotatorConnectionImpl::AsyncBatchAnnotateFiles( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to AsyncBatchAnnotateFiles", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vision::v1::AsyncBatchAnnotateFilesResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vision::v1::AsyncBatchAnnotateFilesResponse>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace vision_v1_internal } // namespace cloud diff --git a/google/cloud/vision/v1/internal/image_annotator_connection_impl.h b/google/cloud/vision/v1/internal/image_annotator_connection_impl.h index 46facda2a9ba3..1ffa596e07879 100644 --- a/google/cloud/vision/v1/internal/image_annotator_connection_impl.h +++ b/google/cloud/vision/v1/internal/image_annotator_connection_impl.h @@ -65,11 +65,31 @@ class ImageAnnotatorConnectionImpl google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& request) override; + StatusOr AsyncBatchAnnotateImages( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& request) + override; + + future> + AsyncBatchAnnotateImages( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AsyncBatchAnnotateFiles( google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request) override; + StatusOr AsyncBatchAnnotateFiles( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request) + override; + + future> + AsyncBatchAnnotateFiles( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/vision/v1/internal/image_annotator_tracing_connection.cc b/google/cloud/vision/v1/internal/image_annotator_tracing_connection.cc index 632b60dd43d19..dd45955bcc188 100644 --- a/google/cloud/vision/v1/internal/image_annotator_tracing_connection.cc +++ b/google/cloud/vision/v1/internal/image_annotator_tracing_connection.cc @@ -60,6 +60,30 @@ ImageAnnotatorTracingConnection::AsyncBatchAnnotateImages( child_->AsyncBatchAnnotateImages(request)); } +StatusOr +ImageAnnotatorTracingConnection::AsyncBatchAnnotateImages( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& request) { + auto span = internal::MakeSpan( + "vision_v1::ImageAnnotatorConnection::AsyncBatchAnnotateImages"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->AsyncBatchAnnotateImages( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ImageAnnotatorTracingConnection::AsyncBatchAnnotateImages( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vision_v1::ImageAnnotatorConnection::AsyncBatchAnnotateImages"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->AsyncBatchAnnotateImages( + google::cloud::ExperimentalTag{}, operation)); +} + future> ImageAnnotatorTracingConnection::AsyncBatchAnnotateFiles( google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request) { @@ -70,6 +94,30 @@ ImageAnnotatorTracingConnection::AsyncBatchAnnotateFiles( child_->AsyncBatchAnnotateFiles(request)); } +StatusOr +ImageAnnotatorTracingConnection::AsyncBatchAnnotateFiles( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request) { + auto span = internal::MakeSpan( + "vision_v1::ImageAnnotatorConnection::AsyncBatchAnnotateFiles"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->AsyncBatchAnnotateFiles( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ImageAnnotatorTracingConnection::AsyncBatchAnnotateFiles( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vision_v1::ImageAnnotatorConnection::AsyncBatchAnnotateFiles"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->AsyncBatchAnnotateFiles( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/vision/v1/internal/image_annotator_tracing_connection.h b/google/cloud/vision/v1/internal/image_annotator_tracing_connection.h index 2bbe24cd6b2ca..56705b5d44412 100644 --- a/google/cloud/vision/v1/internal/image_annotator_tracing_connection.h +++ b/google/cloud/vision/v1/internal/image_annotator_tracing_connection.h @@ -54,11 +54,31 @@ class ImageAnnotatorTracingConnection google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& request) override; + StatusOr AsyncBatchAnnotateImages( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& request) + override; + + future> + AsyncBatchAnnotateImages( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AsyncBatchAnnotateFiles( google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request) override; + StatusOr AsyncBatchAnnotateFiles( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request) + override; + + future> + AsyncBatchAnnotateFiles( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/vision/v1/internal/product_search_connection_impl.cc b/google/cloud/vision/v1/internal/product_search_connection_impl.cc index 73a8fd92fbab5..d65317c6f5ab3 100644 --- a/google/cloud/vision/v1/internal/product_search_connection_impl.cc +++ b/google/cloud/vision/v1/internal/product_search_connection_impl.cc @@ -427,6 +427,60 @@ ProductSearchConnectionImpl::ImportProductSets( polling_policy(*current), __func__); } +StatusOr +ProductSearchConnectionImpl::ImportProductSets( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::ImportProductSetsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ImportProductSets(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vision::v1::ImportProductSetsRequest const& request) { + return stub_->ImportProductSets(context, options, request); + }, + *current, request, __func__); +} + +future> +ProductSearchConnectionImpl::ImportProductSets( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ImportProductSets", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vision::v1::ImportProductSetsResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vision::v1::ImportProductSetsResponse>, + polling_policy(*current), __func__); +} + future> ProductSearchConnectionImpl::PurgeProducts( google::cloud::vision::v1::PurgeProductsRequest const& request) { @@ -466,6 +520,59 @@ ProductSearchConnectionImpl::PurgeProducts( polling_policy(*current), __func__); } +StatusOr +ProductSearchConnectionImpl::PurgeProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::PurgeProductsRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PurgeProducts(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vision::v1::PurgeProductsRequest const& request) { + return stub_->PurgeProducts(context, options, request); + }, + *current, request, __func__); +} + +future> +ProductSearchConnectionImpl::PurgeProducts( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to PurgeProducts", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vision::v1::BatchOperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vision::v1::BatchOperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace vision_v1_internal } // namespace cloud diff --git a/google/cloud/vision/v1/internal/product_search_connection_impl.h b/google/cloud/vision/v1/internal/product_search_connection_impl.h index c88937fc76ab1..03713c25c4040 100644 --- a/google/cloud/vision/v1/internal/product_search_connection_impl.h +++ b/google/cloud/vision/v1/internal/product_search_connection_impl.h @@ -115,10 +115,27 @@ class ProductSearchConnectionImpl : public vision_v1::ProductSearchConnection { ImportProductSets(google::cloud::vision::v1::ImportProductSetsRequest const& request) override; + StatusOr ImportProductSets( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::ImportProductSetsRequest const& request) + override; + + future> + ImportProductSets(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PurgeProducts( google::cloud::vision::v1::PurgeProductsRequest const& request) override; + StatusOr PurgeProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::PurgeProductsRequest const& request) override; + + future> + PurgeProducts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/vision/v1/internal/product_search_tracing_connection.cc b/google/cloud/vision/v1/internal/product_search_tracing_connection.cc index b1eff255eb6f1..3a218c8b4fdd5 100644 --- a/google/cloud/vision/v1/internal/product_search_tracing_connection.cc +++ b/google/cloud/vision/v1/internal/product_search_tracing_connection.cc @@ -200,6 +200,30 @@ ProductSearchTracingConnection::ImportProductSets( return internal::EndSpan(std::move(span), child_->ImportProductSets(request)); } +StatusOr +ProductSearchTracingConnection::ImportProductSets( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::ImportProductSetsRequest const& request) { + auto span = internal::MakeSpan( + "vision_v1::ProductSearchConnection::ImportProductSets"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ImportProductSets(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProductSearchTracingConnection::ImportProductSets( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vision_v1::ProductSearchConnection::ImportProductSets"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ImportProductSets(google::cloud::ExperimentalTag{}, operation)); +} + future> ProductSearchTracingConnection::PurgeProducts( google::cloud::vision::v1::PurgeProductsRequest const& request) { @@ -209,6 +233,30 @@ ProductSearchTracingConnection::PurgeProducts( return internal::EndSpan(std::move(span), child_->PurgeProducts(request)); } +StatusOr +ProductSearchTracingConnection::PurgeProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::PurgeProductsRequest const& request) { + auto span = + internal::MakeSpan("vision_v1::ProductSearchConnection::PurgeProducts"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PurgeProducts(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +ProductSearchTracingConnection::PurgeProducts( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("vision_v1::ProductSearchConnection::PurgeProducts"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PurgeProducts(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/vision/v1/internal/product_search_tracing_connection.h b/google/cloud/vision/v1/internal/product_search_tracing_connection.h index 2d15fdac944df..e136a640433ac 100644 --- a/google/cloud/vision/v1/internal/product_search_tracing_connection.h +++ b/google/cloud/vision/v1/internal/product_search_tracing_connection.h @@ -104,10 +104,27 @@ class ProductSearchTracingConnection ImportProductSets(google::cloud::vision::v1::ImportProductSetsRequest const& request) override; + StatusOr ImportProductSets( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::ImportProductSetsRequest const& request) + override; + + future> + ImportProductSets(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PurgeProducts( google::cloud::vision::v1::PurgeProductsRequest const& request) override; + StatusOr PurgeProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::PurgeProductsRequest const& request) override; + + future> + PurgeProducts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/vision/v1/mocks/mock_image_annotator_connection.h b/google/cloud/vision/v1/mocks/mock_image_annotator_connection.h index 27f7007e2d0a8..b0f4b8ce20972 100644 --- a/google/cloud/vision/v1/mocks/mock_image_annotator_connection.h +++ b/google/cloud/vision/v1/mocks/mock_image_annotator_connection.h @@ -66,6 +66,20 @@ class MockImageAnnotatorConnection request), (override)); + MOCK_METHOD(StatusOr, + AsyncBatchAnnotateImages, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& + request), + (override)); + + MOCK_METHOD(future>, + AsyncBatchAnnotateImages, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -73,6 +87,20 @@ class MockImageAnnotatorConnection (google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request), (override)); + + MOCK_METHOD(StatusOr, AsyncBatchAnnotateFiles, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& + request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + AsyncBatchAnnotateFiles, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/vision/v1/mocks/mock_product_search_connection.h b/google/cloud/vision/v1/mocks/mock_product_search_connection.h index a758087cda3ad..5e2129e02fc1c 100644 --- a/google/cloud/vision/v1/mocks/mock_product_search_connection.h +++ b/google/cloud/vision/v1/mocks/mock_product_search_connection.h @@ -133,11 +133,36 @@ class MockProductSearchConnection : public vision_v1::ProductSearchConnection { (google::cloud::vision::v1::ImportProductSetsRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ImportProductSets, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::ImportProductSetsRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ImportProductSets, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, PurgeProducts, (google::cloud::vision::v1::PurgeProductsRequest const& request), (override)); + + MOCK_METHOD(StatusOr, PurgeProducts, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::PurgeProductsRequest const& request), + (override)); + + MOCK_METHOD( + future>, + PurgeProducts, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/vision/v1/product_search_connection.cc b/google/cloud/vision/v1/product_search_connection.cc index 91d441e0a4399..531fe6247d832 100644 --- a/google/cloud/vision/v1/product_search_connection.cc +++ b/google/cloud/vision/v1/product_search_connection.cc @@ -151,6 +151,22 @@ ProductSearchConnection::ImportProductSets( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +ProductSearchConnection::ImportProductSets( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::ImportProductSetsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProductSearchConnection::ImportProductSets( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> ProductSearchConnection::PurgeProducts( google::cloud::vision::v1::PurgeProductsRequest const&) { @@ -159,6 +175,21 @@ ProductSearchConnection::PurgeProducts( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr ProductSearchConnection::PurgeProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::PurgeProductsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +ProductSearchConnection::PurgeProducts(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeProductSearchConnection( Options options) { internal::CheckExpectedOptions ImportProductSets( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::ImportProductSetsRequest const& request); + + virtual future> + ImportProductSets(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> PurgeProducts(google::cloud::vision::v1::PurgeProductsRequest const& request); + + virtual StatusOr PurgeProducts( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vision::v1::PurgeProductsRequest const& request); + + virtual future> + PurgeProducts(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.cc b/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.cc index 598a65aa08d7b..c46aec024b142 100644 --- a/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.cc +++ b/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.cc @@ -151,6 +151,59 @@ VmMigrationConnectionImpl::CreateSource( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::CreateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateSourceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateSource(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::CreateSourceRequest const& request) { + return stub_->CreateSource(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::CreateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateSource", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::Source>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::Source>, + polling_policy(*current), __func__); +} + future> VmMigrationConnectionImpl::UpdateSource( google::cloud::vmmigration::v1::UpdateSourceRequest const& request) { @@ -190,6 +243,59 @@ VmMigrationConnectionImpl::UpdateSource( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::UpdateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateSourceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateSource(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::UpdateSourceRequest const& request) { + return stub_->UpdateSource(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::UpdateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateSource", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::Source>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::Source>, + polling_policy(*current), __func__); +} + future> VmMigrationConnectionImpl::DeleteSource( google::cloud::vmmigration::v1::DeleteSourceRequest const& request) { @@ -229,6 +335,60 @@ VmMigrationConnectionImpl::DeleteSource( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::DeleteSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteSourceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteSource(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::DeleteSourceRequest const& request) { + return stub_->DeleteSource(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::DeleteSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteSource", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vmmigration::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StatusOr VmMigrationConnectionImpl::FetchInventory( google::cloud::vmmigration::v1::FetchInventoryRequest const& request) { @@ -337,6 +497,62 @@ VmMigrationConnectionImpl::CreateUtilizationReport( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::CreateUtilizationReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateUtilizationReport(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& + request) { + return stub_->CreateUtilizationReport(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::CreateUtilizationReport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateUtilizationReport", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::UtilizationReport>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::UtilizationReport>, + polling_policy(*current), __func__); +} + future> VmMigrationConnectionImpl::DeleteUtilizationReport( google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& @@ -378,6 +594,62 @@ VmMigrationConnectionImpl::DeleteUtilizationReport( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::DeleteUtilizationReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteUtilizationReport(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& + request) { + return stub_->DeleteUtilizationReport(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::DeleteUtilizationReport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteUtilizationReport", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vmmigration::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange VmMigrationConnectionImpl::ListDatacenterConnectors( google::cloud::vmmigration::v1::ListDatacenterConnectorsRequest request) { @@ -471,6 +743,61 @@ VmMigrationConnectionImpl::CreateDatacenterConnector( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::CreateDatacenterConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateDatacenterConnector(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1:: + CreateDatacenterConnectorRequest const& request) { + return stub_->CreateDatacenterConnector(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::CreateDatacenterConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateDatacenterConnector", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::DatacenterConnector>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::DatacenterConnector>, + polling_policy(*current), __func__); +} + future> VmMigrationConnectionImpl::DeleteDatacenterConnector( google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& @@ -511,24 +838,79 @@ VmMigrationConnectionImpl::DeleteDatacenterConnector( polling_policy(*current), __func__); } -future> -VmMigrationConnectionImpl::UpgradeAppliance( - google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request) { +StatusOr +VmMigrationConnectionImpl::DeleteDatacenterConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& + request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->UpgradeAppliance(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::vmmigration::v1::UpgradeApplianceResponse>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::vmmigration::v1::UpgradeApplianceRequest const& - request) { - return stub->AsyncUpgradeAppliance(cq, std::move(context), - std::move(options), request); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteDatacenterConnector(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1:: + DeleteDatacenterConnectorRequest const& request) { + return stub_->DeleteDatacenterConnector(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::DeleteDatacenterConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteDatacenterConnector", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vmmigration::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + +future> +VmMigrationConnectionImpl::UpgradeAppliance( + google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->UpgradeAppliance(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::vmmigration::v1::UpgradeApplianceResponse>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::vmmigration::v1::UpgradeApplianceRequest const& + request) { + return stub->AsyncUpgradeAppliance(cq, std::move(context), + std::move(options), request); }, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, @@ -551,6 +933,60 @@ VmMigrationConnectionImpl::UpgradeAppliance( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::UpgradeAppliance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpgradeAppliance(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::UpgradeApplianceRequest const& + request) { + return stub_->UpgradeAppliance(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::UpgradeAppliance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpgradeAppliance", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::UpgradeApplianceResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::UpgradeApplianceResponse>, + polling_policy(*current), __func__); +} + future> VmMigrationConnectionImpl::CreateMigratingVm( google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request) { @@ -591,6 +1027,60 @@ VmMigrationConnectionImpl::CreateMigratingVm( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::CreateMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateMigratingVm(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::CreateMigratingVmRequest const& + request) { + return stub_->CreateMigratingVm(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::CreateMigratingVm( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateMigratingVm", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::MigratingVm>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::MigratingVm>, + polling_policy(*current), __func__); +} + StreamRange VmMigrationConnectionImpl::ListMigratingVms( google::cloud::vmmigration::v1::ListMigratingVmsRequest request) { @@ -681,6 +1171,60 @@ VmMigrationConnectionImpl::UpdateMigratingVm( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::UpdateMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateMigratingVm(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& + request) { + return stub_->UpdateMigratingVm(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::UpdateMigratingVm( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateMigratingVm", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::MigratingVm>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::MigratingVm>, + polling_policy(*current), __func__); +} + future> VmMigrationConnectionImpl::DeleteMigratingVm( google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request) { @@ -721,6 +1265,60 @@ VmMigrationConnectionImpl::DeleteMigratingVm( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::DeleteMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteMigratingVm(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& + request) { + return stub_->DeleteMigratingVm(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::DeleteMigratingVm( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteMigratingVm", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vmmigration::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> VmMigrationConnectionImpl::StartMigration( google::cloud::vmmigration::v1::StartMigrationRequest const& request) { @@ -761,6 +1359,60 @@ VmMigrationConnectionImpl::StartMigration( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::StartMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::StartMigrationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartMigration(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::StartMigrationRequest const& + request) { + return stub_->StartMigration(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::StartMigration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to StartMigration", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::StartMigrationResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::StartMigrationResponse>, + polling_policy(*current), __func__); +} + future> VmMigrationConnectionImpl::ResumeMigration( google::cloud::vmmigration::v1::ResumeMigrationRequest const& request) { @@ -801,6 +1453,60 @@ VmMigrationConnectionImpl::ResumeMigration( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::ResumeMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::ResumeMigrationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ResumeMigration(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::ResumeMigrationRequest const& + request) { + return stub_->ResumeMigration(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::ResumeMigration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ResumeMigration", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::ResumeMigrationResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::ResumeMigrationResponse>, + polling_policy(*current), __func__); +} + future> VmMigrationConnectionImpl::PauseMigration( google::cloud::vmmigration::v1::PauseMigrationRequest const& request) { @@ -837,7 +1543,61 @@ VmMigrationConnectionImpl::PauseMigration( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::vmmigration::v1::PauseMigrationResponse>, - retry_policy(*current), backoff_policy(*current), idempotent, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +VmMigrationConnectionImpl::PauseMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::PauseMigrationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->PauseMigration(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::PauseMigrationRequest const& + request) { + return stub_->PauseMigration(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::PauseMigration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to PauseMigration", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::PauseMigrationResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::PauseMigrationResponse>, polling_policy(*current), __func__); } @@ -881,6 +1641,60 @@ VmMigrationConnectionImpl::FinalizeMigration( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::FinalizeMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->FinalizeMigration(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::FinalizeMigrationRequest const& + request) { + return stub_->FinalizeMigration(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::FinalizeMigration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to FinalizeMigration", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::FinalizeMigrationResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::FinalizeMigrationResponse>, + polling_policy(*current), __func__); +} + future> VmMigrationConnectionImpl::CreateCloneJob( google::cloud::vmmigration::v1::CreateCloneJobRequest const& request) { @@ -921,6 +1735,60 @@ VmMigrationConnectionImpl::CreateCloneJob( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::CreateCloneJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateCloneJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCloneJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::CreateCloneJobRequest const& + request) { + return stub_->CreateCloneJob(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::CreateCloneJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCloneJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::CloneJob>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::CloneJob>, + polling_policy(*current), __func__); +} + future> VmMigrationConnectionImpl::CancelCloneJob( google::cloud::vmmigration::v1::CancelCloneJobRequest const& request) { @@ -961,6 +1829,60 @@ VmMigrationConnectionImpl::CancelCloneJob( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::CancelCloneJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CancelCloneJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CancelCloneJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::CancelCloneJobRequest const& + request) { + return stub_->CancelCloneJob(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::CancelCloneJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CancelCloneJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::CancelCloneJobResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::CancelCloneJobResponse>, + polling_policy(*current), __func__); +} + StreamRange VmMigrationConnectionImpl::ListCloneJobs( google::cloud::vmmigration::v1::ListCloneJobsRequest request) { @@ -1050,6 +1972,60 @@ VmMigrationConnectionImpl::CreateCutoverJob( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::CreateCutoverJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCutoverJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::CreateCutoverJobRequest const& + request) { + return stub_->CreateCutoverJob(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::CreateCutoverJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCutoverJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::CutoverJob>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::CutoverJob>, + polling_policy(*current), __func__); +} + future> VmMigrationConnectionImpl::CancelCutoverJob( google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request) { @@ -1090,6 +2066,60 @@ VmMigrationConnectionImpl::CancelCutoverJob( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::CancelCutoverJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CancelCutoverJob(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::CancelCutoverJobRequest const& + request) { + return stub_->CancelCutoverJob(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::CancelCutoverJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CancelCutoverJob", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::CancelCutoverJobResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::CancelCutoverJobResponse>, + polling_policy(*current), __func__); +} + StreamRange VmMigrationConnectionImpl::ListCutoverJobs( google::cloud::vmmigration::v1::ListCutoverJobsRequest request) { @@ -1188,12 +2218,103 @@ VmMigrationConnectionImpl::GetGroup( } future> -VmMigrationConnectionImpl::CreateGroup( - google::cloud::vmmigration::v1::CreateGroupRequest const& request) { +VmMigrationConnectionImpl::CreateGroup( + google::cloud::vmmigration::v1::CreateGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->CreateGroup(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::vmmigration::v1::Group>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::vmmigration::v1::CreateGroupRequest const& request) { + return stub->AsyncCreateGroup(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::Group>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr VmMigrationConnectionImpl::CreateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateGroup(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::CreateGroupRequest const& request) { + return stub_->CreateGroup(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::CreateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateGroup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::Group>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::Group>, + polling_policy(*current), __func__); +} + +future> +VmMigrationConnectionImpl::UpdateGroup( + google::cloud::vmmigration::v1::UpdateGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); auto request_copy = request; auto const idempotent = - idempotency_policy(*current)->CreateGroup(request_copy); + idempotency_policy(*current)->UpdateGroup(request_copy); return google::cloud::internal::AsyncLongRunningOperation< google::cloud::vmmigration::v1::Group>( background_->cq(), current, std::move(request_copy), @@ -1201,8 +2322,8 @@ VmMigrationConnectionImpl::CreateGroup( google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, - google::cloud::vmmigration::v1::CreateGroupRequest const& request) { - return stub->AsyncCreateGroup(cq, std::move(context), + google::cloud::vmmigration::v1::UpdateGroupRequest const& request) { + return stub->AsyncUpdateGroup(cq, std::move(context), std::move(options), request); }, [stub = stub_](google::cloud::CompletionQueue& cq, @@ -1226,24 +2347,38 @@ VmMigrationConnectionImpl::CreateGroup( polling_policy(*current), __func__); } -future> -VmMigrationConnectionImpl::UpdateGroup( +StatusOr VmMigrationConnectionImpl::UpdateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::vmmigration::v1::UpdateGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->UpdateGroup(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::vmmigration::v1::Group>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateGroup(request), + [this]( + grpc::ClientContext& context, Options const& options, google::cloud::vmmigration::v1::UpdateGroupRequest const& request) { - return stub->AsyncUpdateGroup(cq, std::move(context), - std::move(options), request); + return stub_->UpdateGroup(context, options, request); }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::UpdateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateGroup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::Group>( + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -1261,7 +2396,6 @@ VmMigrationConnectionImpl::UpdateGroup( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::vmmigration::v1::Group>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } @@ -1304,6 +2438,59 @@ VmMigrationConnectionImpl::DeleteGroup( polling_policy(*current), __func__); } +StatusOr VmMigrationConnectionImpl::DeleteGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteGroupRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteGroup(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::DeleteGroupRequest const& request) { + return stub_->DeleteGroup(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::DeleteGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteGroup", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vmmigration::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> VmMigrationConnectionImpl::AddGroupMigration( google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request) { @@ -1344,6 +2531,60 @@ VmMigrationConnectionImpl::AddGroupMigration( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::AddGroupMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->AddGroupMigration(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::AddGroupMigrationRequest const& + request) { + return stub_->AddGroupMigration(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::AddGroupMigration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to AddGroupMigration", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::AddGroupMigrationResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::AddGroupMigrationResponse>, + polling_policy(*current), __func__); +} + future> VmMigrationConnectionImpl::RemoveGroupMigration( google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& @@ -1385,6 +2626,61 @@ VmMigrationConnectionImpl::RemoveGroupMigration( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::RemoveGroupMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RemoveGroupMigration(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& + request) { + return stub_->RemoveGroupMigration(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::RemoveGroupMigration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RemoveGroupMigration", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::RemoveGroupMigrationResponse>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::RemoveGroupMigrationResponse>, + polling_policy(*current), __func__); +} + StreamRange VmMigrationConnectionImpl::ListTargetProjects( google::cloud::vmmigration::v1::ListTargetProjectsRequest request) { @@ -1475,6 +2771,60 @@ VmMigrationConnectionImpl::CreateTargetProject( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::CreateTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateTargetProjectRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateTargetProject(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::CreateTargetProjectRequest const& + request) { + return stub_->CreateTargetProject(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::CreateTargetProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateTargetProject", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::TargetProject>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::TargetProject>, + polling_policy(*current), __func__); +} + future> VmMigrationConnectionImpl::UpdateTargetProject( google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request) { @@ -1515,6 +2865,60 @@ VmMigrationConnectionImpl::UpdateTargetProject( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::UpdateTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateTargetProject(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& + request) { + return stub_->UpdateTargetProject(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::UpdateTargetProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateTargetProject", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::TargetProject>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmmigration::v1::TargetProject>, + polling_policy(*current), __func__); +} + future> VmMigrationConnectionImpl::DeleteTargetProject( google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request) { @@ -1555,6 +2959,60 @@ VmMigrationConnectionImpl::DeleteTargetProject( polling_policy(*current), __func__); } +StatusOr +VmMigrationConnectionImpl::DeleteTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteTargetProject(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& + request) { + return stub_->DeleteTargetProject(context, options, request); + }, + *current, request, __func__); +} + +future> +VmMigrationConnectionImpl::DeleteTargetProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteTargetProject", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmmigration::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vmmigration::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange VmMigrationConnectionImpl::ListReplicationCycles( google::cloud::vmmigration::v1::ListReplicationCyclesRequest request) { diff --git a/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.h b/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.h index 3f06f184c057a..273824087b9a5 100644 --- a/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.h +++ b/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.h @@ -61,14 +61,41 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { google::cloud::vmmigration::v1::CreateSourceRequest const& request) override; + StatusOr CreateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateSourceRequest const& request) + override; + + future> CreateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateSource( google::cloud::vmmigration::v1::UpdateSourceRequest const& request) override; + StatusOr UpdateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateSourceRequest const& request) + override; + + future> UpdateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSource(google::cloud::vmmigration::v1::DeleteSourceRequest const& request) override; + StatusOr DeleteSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteSourceRequest const& request) + override; + + future> + DeleteSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr FetchInventory(google::cloud::vmmigration::v1::FetchInventoryRequest const& request) override; @@ -88,11 +115,31 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& request) override; + StatusOr CreateUtilizationReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& + request) override; + + future> + CreateUtilizationReport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteUtilizationReport( google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& request) override; + StatusOr DeleteUtilizationReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& + request) override; + + future> + DeleteUtilizationReport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDatacenterConnectors( google::cloud::vmmigration::v1::ListDatacenterConnectorsRequest request) @@ -108,21 +155,59 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& request) override; + StatusOr CreateDatacenterConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& + request) override; + + future> + CreateDatacenterConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDatacenterConnector( google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& request) override; + StatusOr DeleteDatacenterConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& + request) override; + + future> + DeleteDatacenterConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpgradeAppliance( google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request) override; + StatusOr UpgradeAppliance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request) + override; + + future> + UpgradeAppliance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateMigratingVm( google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request) override; + StatusOr CreateMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request) + override; + + future> + CreateMigratingVm(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListMigratingVms( google::cloud::vmmigration::v1::ListMigratingVmsRequest request) override; @@ -135,36 +220,108 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request) override; + StatusOr UpdateMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request) + override; + + future> + UpdateMigratingVm(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteMigratingVm( google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request) override; + StatusOr DeleteMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request) + override; + + future> + DeleteMigratingVm(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartMigration(google::cloud::vmmigration::v1::StartMigrationRequest const& request) override; + StatusOr StartMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::StartMigrationRequest const& request) + override; + + future> + StartMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResumeMigration(google::cloud::vmmigration::v1::ResumeMigrationRequest const& request) override; + StatusOr ResumeMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::ResumeMigrationRequest const& request) + override; + + future> + ResumeMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PauseMigration(google::cloud::vmmigration::v1::PauseMigrationRequest const& request) override; + StatusOr PauseMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::PauseMigrationRequest const& request) + override; + + future> + PauseMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> FinalizeMigration( google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request) override; + StatusOr FinalizeMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request) + override; + + future> + FinalizeMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateCloneJob( google::cloud::vmmigration::v1::CreateCloneJobRequest const& request) override; + StatusOr CreateCloneJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateCloneJobRequest const& request) + override; + + future> CreateCloneJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CancelCloneJob(google::cloud::vmmigration::v1::CancelCloneJobRequest const& request) override; + StatusOr CancelCloneJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CancelCloneJobRequest const& request) + override; + + future> + CancelCloneJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListCloneJobs( google::cloud::vmmigration::v1::ListCloneJobsRequest request) override; @@ -176,11 +333,29 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request) override; + StatusOr CreateCutoverJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request) + override; + + future> CreateCutoverJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CancelCutoverJob( google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request) override; + StatusOr CancelCutoverJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request) + override; + + future> + CancelCutoverJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListCutoverJobs( google::cloud::vmmigration::v1::ListCutoverJobsRequest request) override; @@ -198,24 +373,70 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { google::cloud::vmmigration::v1::CreateGroupRequest const& request) override; + StatusOr CreateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateGroupRequest const& request) + override; + + future> CreateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateGroup( google::cloud::vmmigration::v1::UpdateGroupRequest const& request) override; + StatusOr UpdateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateGroupRequest const& request) + override; + + future> UpdateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteGroup(google::cloud::vmmigration::v1::DeleteGroupRequest const& request) override; + StatusOr DeleteGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteGroupRequest const& request) + override; + + future> + DeleteGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AddGroupMigration( google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request) override; + StatusOr AddGroupMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request) + override; + + future> + AddGroupMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RemoveGroupMigration( google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& request) override; + StatusOr RemoveGroupMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& + request) override; + + future> + RemoveGroupMigration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTargetProjects( google::cloud::vmmigration::v1::ListTargetProjectsRequest request) override; @@ -229,16 +450,43 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { google::cloud::vmmigration::v1::CreateTargetProjectRequest const& request) override; + StatusOr CreateTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateTargetProjectRequest const& request) + override; + + future> + CreateTargetProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTargetProject( google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request) override; + StatusOr UpdateTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request) + override; + + future> + UpdateTargetProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTargetProject( google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request) override; + StatusOr DeleteTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request) + override; + + future> + DeleteTargetProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListReplicationCycles( google::cloud::vmmigration::v1::ListReplicationCyclesRequest request) diff --git a/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.cc b/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.cc index 49bfcdd76a0c4..6ca543ceace11 100644 --- a/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.cc +++ b/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.cc @@ -62,6 +62,30 @@ VmMigrationTracingConnection::CreateSource( return internal::EndSpan(std::move(span), child_->CreateSource(request)); } +StatusOr +VmMigrationTracingConnection::CreateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateSourceRequest const& request) { + auto span = + internal::MakeSpan("vmmigration_v1::VmMigrationConnection::CreateSource"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateSource(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::CreateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("vmmigration_v1::VmMigrationConnection::CreateSource"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateSource(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::UpdateSource( google::cloud::vmmigration::v1::UpdateSourceRequest const& request) { @@ -71,6 +95,30 @@ VmMigrationTracingConnection::UpdateSource( return internal::EndSpan(std::move(span), child_->UpdateSource(request)); } +StatusOr +VmMigrationTracingConnection::UpdateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateSourceRequest const& request) { + auto span = + internal::MakeSpan("vmmigration_v1::VmMigrationConnection::UpdateSource"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateSource(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::UpdateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("vmmigration_v1::VmMigrationConnection::UpdateSource"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateSource(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::DeleteSource( google::cloud::vmmigration::v1::DeleteSourceRequest const& request) { @@ -80,6 +128,30 @@ VmMigrationTracingConnection::DeleteSource( return internal::EndSpan(std::move(span), child_->DeleteSource(request)); } +StatusOr +VmMigrationTracingConnection::DeleteSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteSourceRequest const& request) { + auto span = + internal::MakeSpan("vmmigration_v1::VmMigrationConnection::DeleteSource"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteSource(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::DeleteSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("vmmigration_v1::VmMigrationConnection::DeleteSource"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteSource(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr VmMigrationTracingConnection::FetchInventory( google::cloud::vmmigration::v1::FetchInventoryRequest const& request) { @@ -122,6 +194,31 @@ VmMigrationTracingConnection::CreateUtilizationReport( child_->CreateUtilizationReport(request)); } +StatusOr +VmMigrationTracingConnection::CreateUtilizationReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& + request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::CreateUtilizationReport"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateUtilizationReport( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::CreateUtilizationReport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::CreateUtilizationReport"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateUtilizationReport( + google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::DeleteUtilizationReport( google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& @@ -133,6 +230,31 @@ VmMigrationTracingConnection::DeleteUtilizationReport( child_->DeleteUtilizationReport(request)); } +StatusOr +VmMigrationTracingConnection::DeleteUtilizationReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& + request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::DeleteUtilizationReport"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteUtilizationReport( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::DeleteUtilizationReport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::DeleteUtilizationReport"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteUtilizationReport( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VmMigrationTracingConnection::ListDatacenterConnectors( google::cloud::vmmigration::v1::ListDatacenterConnectorsRequest request) { @@ -166,6 +288,31 @@ VmMigrationTracingConnection::CreateDatacenterConnector( child_->CreateDatacenterConnector(request)); } +StatusOr +VmMigrationTracingConnection::CreateDatacenterConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& + request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::CreateDatacenterConnector"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateDatacenterConnector( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::CreateDatacenterConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::CreateDatacenterConnector"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateDatacenterConnector( + google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::DeleteDatacenterConnector( google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& @@ -177,6 +324,31 @@ VmMigrationTracingConnection::DeleteDatacenterConnector( child_->DeleteDatacenterConnector(request)); } +StatusOr +VmMigrationTracingConnection::DeleteDatacenterConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& + request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::DeleteDatacenterConnector"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteDatacenterConnector( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::DeleteDatacenterConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::DeleteDatacenterConnector"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteDatacenterConnector( + google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::UpgradeAppliance( google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request) { @@ -186,6 +358,30 @@ VmMigrationTracingConnection::UpgradeAppliance( return internal::EndSpan(std::move(span), child_->UpgradeAppliance(request)); } +StatusOr +VmMigrationTracingConnection::UpgradeAppliance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::UpgradeAppliance"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpgradeAppliance(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::UpgradeAppliance( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::UpgradeAppliance"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpgradeAppliance(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::CreateMigratingVm( google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request) { @@ -195,6 +391,30 @@ VmMigrationTracingConnection::CreateMigratingVm( return internal::EndSpan(std::move(span), child_->CreateMigratingVm(request)); } +StatusOr +VmMigrationTracingConnection::CreateMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::CreateMigratingVm"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateMigratingVm(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::CreateMigratingVm( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::CreateMigratingVm"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateMigratingVm(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VmMigrationTracingConnection::ListMigratingVms( google::cloud::vmmigration::v1::ListMigratingVmsRequest request) { @@ -225,6 +445,30 @@ VmMigrationTracingConnection::UpdateMigratingVm( return internal::EndSpan(std::move(span), child_->UpdateMigratingVm(request)); } +StatusOr +VmMigrationTracingConnection::UpdateMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::UpdateMigratingVm"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateMigratingVm(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::UpdateMigratingVm( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::UpdateMigratingVm"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateMigratingVm(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::DeleteMigratingVm( google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request) { @@ -234,6 +478,30 @@ VmMigrationTracingConnection::DeleteMigratingVm( return internal::EndSpan(std::move(span), child_->DeleteMigratingVm(request)); } +StatusOr +VmMigrationTracingConnection::DeleteMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::DeleteMigratingVm"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteMigratingVm(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::DeleteMigratingVm( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::DeleteMigratingVm"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteMigratingVm(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::StartMigration( google::cloud::vmmigration::v1::StartMigrationRequest const& request) { @@ -243,6 +511,30 @@ VmMigrationTracingConnection::StartMigration( return internal::EndSpan(std::move(span), child_->StartMigration(request)); } +StatusOr +VmMigrationTracingConnection::StartMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::StartMigrationRequest const& request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::StartMigration"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StartMigration(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::StartMigration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::StartMigration"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StartMigration(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::ResumeMigration( google::cloud::vmmigration::v1::ResumeMigrationRequest const& request) { @@ -252,6 +544,30 @@ VmMigrationTracingConnection::ResumeMigration( return internal::EndSpan(std::move(span), child_->ResumeMigration(request)); } +StatusOr +VmMigrationTracingConnection::ResumeMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::ResumeMigrationRequest const& request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::ResumeMigration"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ResumeMigration(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::ResumeMigration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::ResumeMigration"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ResumeMigration(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::PauseMigration( google::cloud::vmmigration::v1::PauseMigrationRequest const& request) { @@ -261,6 +577,30 @@ VmMigrationTracingConnection::PauseMigration( return internal::EndSpan(std::move(span), child_->PauseMigration(request)); } +StatusOr +VmMigrationTracingConnection::PauseMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::PauseMigrationRequest const& request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::PauseMigration"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->PauseMigration(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::PauseMigration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::PauseMigration"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->PauseMigration(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::FinalizeMigration( google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request) { @@ -270,6 +610,30 @@ VmMigrationTracingConnection::FinalizeMigration( return internal::EndSpan(std::move(span), child_->FinalizeMigration(request)); } +StatusOr +VmMigrationTracingConnection::FinalizeMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::FinalizeMigration"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->FinalizeMigration(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::FinalizeMigration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::FinalizeMigration"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->FinalizeMigration(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::CreateCloneJob( google::cloud::vmmigration::v1::CreateCloneJobRequest const& request) { @@ -279,6 +643,30 @@ VmMigrationTracingConnection::CreateCloneJob( return internal::EndSpan(std::move(span), child_->CreateCloneJob(request)); } +StatusOr +VmMigrationTracingConnection::CreateCloneJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateCloneJobRequest const& request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::CreateCloneJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateCloneJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::CreateCloneJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::CreateCloneJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateCloneJob(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::CancelCloneJob( google::cloud::vmmigration::v1::CancelCloneJobRequest const& request) { @@ -288,6 +676,30 @@ VmMigrationTracingConnection::CancelCloneJob( return internal::EndSpan(std::move(span), child_->CancelCloneJob(request)); } +StatusOr +VmMigrationTracingConnection::CancelCloneJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CancelCloneJobRequest const& request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::CancelCloneJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CancelCloneJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::CancelCloneJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::CancelCloneJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CancelCloneJob(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VmMigrationTracingConnection::ListCloneJobs( google::cloud::vmmigration::v1::ListCloneJobsRequest request) { @@ -317,6 +729,30 @@ VmMigrationTracingConnection::CreateCutoverJob( return internal::EndSpan(std::move(span), child_->CreateCutoverJob(request)); } +StatusOr +VmMigrationTracingConnection::CreateCutoverJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::CreateCutoverJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateCutoverJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::CreateCutoverJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::CreateCutoverJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateCutoverJob(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::CancelCutoverJob( google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request) { @@ -326,6 +762,30 @@ VmMigrationTracingConnection::CancelCutoverJob( return internal::EndSpan(std::move(span), child_->CancelCutoverJob(request)); } +StatusOr +VmMigrationTracingConnection::CancelCutoverJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::CancelCutoverJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CancelCutoverJob(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::CancelCutoverJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::CancelCutoverJob"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CancelCutoverJob(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VmMigrationTracingConnection::ListCutoverJobs( google::cloud::vmmigration::v1::ListCutoverJobsRequest request) { @@ -376,6 +836,30 @@ VmMigrationTracingConnection::CreateGroup( return internal::EndSpan(std::move(span), child_->CreateGroup(request)); } +StatusOr +VmMigrationTracingConnection::CreateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateGroupRequest const& request) { + auto span = + internal::MakeSpan("vmmigration_v1::VmMigrationConnection::CreateGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::CreateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("vmmigration_v1::VmMigrationConnection::CreateGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateGroup(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::UpdateGroup( google::cloud::vmmigration::v1::UpdateGroupRequest const& request) { @@ -385,6 +869,30 @@ VmMigrationTracingConnection::UpdateGroup( return internal::EndSpan(std::move(span), child_->UpdateGroup(request)); } +StatusOr +VmMigrationTracingConnection::UpdateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateGroupRequest const& request) { + auto span = + internal::MakeSpan("vmmigration_v1::VmMigrationConnection::UpdateGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::UpdateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("vmmigration_v1::VmMigrationConnection::UpdateGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateGroup(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::DeleteGroup( google::cloud::vmmigration::v1::DeleteGroupRequest const& request) { @@ -394,6 +902,30 @@ VmMigrationTracingConnection::DeleteGroup( return internal::EndSpan(std::move(span), child_->DeleteGroup(request)); } +StatusOr +VmMigrationTracingConnection::DeleteGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteGroupRequest const& request) { + auto span = + internal::MakeSpan("vmmigration_v1::VmMigrationConnection::DeleteGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteGroup(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::DeleteGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("vmmigration_v1::VmMigrationConnection::DeleteGroup"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteGroup(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::AddGroupMigration( google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request) { @@ -403,6 +935,30 @@ VmMigrationTracingConnection::AddGroupMigration( return internal::EndSpan(std::move(span), child_->AddGroupMigration(request)); } +StatusOr +VmMigrationTracingConnection::AddGroupMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::AddGroupMigration"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->AddGroupMigration(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::AddGroupMigration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::AddGroupMigration"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->AddGroupMigration(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::RemoveGroupMigration( google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& @@ -414,6 +970,31 @@ VmMigrationTracingConnection::RemoveGroupMigration( child_->RemoveGroupMigration(request)); } +StatusOr +VmMigrationTracingConnection::RemoveGroupMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& + request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::RemoveGroupMigration"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RemoveGroupMigration( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::RemoveGroupMigration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::RemoveGroupMigration"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RemoveGroupMigration( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VmMigrationTracingConnection::ListTargetProjects( google::cloud::vmmigration::v1::ListTargetProjectsRequest request) { @@ -445,6 +1026,30 @@ VmMigrationTracingConnection::CreateTargetProject( child_->CreateTargetProject(request)); } +StatusOr +VmMigrationTracingConnection::CreateTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateTargetProjectRequest const& request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::CreateTargetProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateTargetProject(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::CreateTargetProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::CreateTargetProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateTargetProject(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::UpdateTargetProject( google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request) { @@ -455,6 +1060,30 @@ VmMigrationTracingConnection::UpdateTargetProject( child_->UpdateTargetProject(request)); } +StatusOr +VmMigrationTracingConnection::UpdateTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::UpdateTargetProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateTargetProject(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::UpdateTargetProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::UpdateTargetProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateTargetProject(google::cloud::ExperimentalTag{}, operation)); +} + future> VmMigrationTracingConnection::DeleteTargetProject( google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request) { @@ -465,6 +1094,30 @@ VmMigrationTracingConnection::DeleteTargetProject( child_->DeleteTargetProject(request)); } +StatusOr +VmMigrationTracingConnection::DeleteTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::DeleteTargetProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteTargetProject(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmMigrationTracingConnection::DeleteTargetProject( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmmigration_v1::VmMigrationConnection::DeleteTargetProject"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteTargetProject(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VmMigrationTracingConnection::ListReplicationCycles( google::cloud::vmmigration::v1::ListReplicationCyclesRequest request) { diff --git a/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.h b/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.h index ea03ab67566d2..6fb1adbaf3d7c 100644 --- a/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.h +++ b/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.h @@ -50,14 +50,41 @@ class VmMigrationTracingConnection google::cloud::vmmigration::v1::CreateSourceRequest const& request) override; + StatusOr CreateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateSourceRequest const& request) + override; + + future> CreateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateSource( google::cloud::vmmigration::v1::UpdateSourceRequest const& request) override; + StatusOr UpdateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateSourceRequest const& request) + override; + + future> UpdateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteSource(google::cloud::vmmigration::v1::DeleteSourceRequest const& request) override; + StatusOr DeleteSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteSourceRequest const& request) + override; + + future> + DeleteSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr FetchInventory(google::cloud::vmmigration::v1::FetchInventoryRequest const& request) override; @@ -77,11 +104,31 @@ class VmMigrationTracingConnection google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& request) override; + StatusOr CreateUtilizationReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& + request) override; + + future> + CreateUtilizationReport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteUtilizationReport( google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& request) override; + StatusOr DeleteUtilizationReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& + request) override; + + future> + DeleteUtilizationReport( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListDatacenterConnectors( google::cloud::vmmigration::v1::ListDatacenterConnectorsRequest request) @@ -97,21 +144,59 @@ class VmMigrationTracingConnection google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& request) override; + StatusOr CreateDatacenterConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& + request) override; + + future> + CreateDatacenterConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteDatacenterConnector( google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& request) override; + StatusOr DeleteDatacenterConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& + request) override; + + future> + DeleteDatacenterConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpgradeAppliance( google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request) override; + StatusOr UpgradeAppliance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request) + override; + + future> + UpgradeAppliance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateMigratingVm( google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request) override; + StatusOr CreateMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request) + override; + + future> + CreateMigratingVm(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListMigratingVms( google::cloud::vmmigration::v1::ListMigratingVmsRequest request) override; @@ -124,36 +209,108 @@ class VmMigrationTracingConnection google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request) override; + StatusOr UpdateMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request) + override; + + future> + UpdateMigratingVm(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteMigratingVm( google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request) override; + StatusOr DeleteMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request) + override; + + future> + DeleteMigratingVm(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartMigration(google::cloud::vmmigration::v1::StartMigrationRequest const& request) override; + StatusOr StartMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::StartMigrationRequest const& request) + override; + + future> + StartMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResumeMigration(google::cloud::vmmigration::v1::ResumeMigrationRequest const& request) override; + StatusOr ResumeMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::ResumeMigrationRequest const& request) + override; + + future> + ResumeMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> PauseMigration(google::cloud::vmmigration::v1::PauseMigrationRequest const& request) override; + StatusOr PauseMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::PauseMigrationRequest const& request) + override; + + future> + PauseMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> FinalizeMigration( google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request) override; + StatusOr FinalizeMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request) + override; + + future> + FinalizeMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateCloneJob( google::cloud::vmmigration::v1::CreateCloneJobRequest const& request) override; + StatusOr CreateCloneJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateCloneJobRequest const& request) + override; + + future> CreateCloneJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CancelCloneJob(google::cloud::vmmigration::v1::CancelCloneJobRequest const& request) override; + StatusOr CancelCloneJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CancelCloneJobRequest const& request) + override; + + future> + CancelCloneJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListCloneJobs( google::cloud::vmmigration::v1::ListCloneJobsRequest request) override; @@ -165,11 +322,29 @@ class VmMigrationTracingConnection google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request) override; + StatusOr CreateCutoverJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request) + override; + + future> CreateCutoverJob( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CancelCutoverJob( google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request) override; + StatusOr CancelCutoverJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request) + override; + + future> + CancelCutoverJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListCutoverJobs( google::cloud::vmmigration::v1::ListCutoverJobsRequest request) override; @@ -187,24 +362,70 @@ class VmMigrationTracingConnection google::cloud::vmmigration::v1::CreateGroupRequest const& request) override; + StatusOr CreateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateGroupRequest const& request) + override; + + future> CreateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateGroup( google::cloud::vmmigration::v1::UpdateGroupRequest const& request) override; + StatusOr UpdateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateGroupRequest const& request) + override; + + future> UpdateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteGroup(google::cloud::vmmigration::v1::DeleteGroupRequest const& request) override; + StatusOr DeleteGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteGroupRequest const& request) + override; + + future> + DeleteGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> AddGroupMigration( google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request) override; + StatusOr AddGroupMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request) + override; + + future> + AddGroupMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RemoveGroupMigration( google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& request) override; + StatusOr RemoveGroupMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& + request) override; + + future> + RemoveGroupMigration( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListTargetProjects( google::cloud::vmmigration::v1::ListTargetProjectsRequest request) override; @@ -218,16 +439,43 @@ class VmMigrationTracingConnection google::cloud::vmmigration::v1::CreateTargetProjectRequest const& request) override; + StatusOr CreateTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateTargetProjectRequest const& request) + override; + + future> + CreateTargetProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateTargetProject( google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request) override; + StatusOr UpdateTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request) + override; + + future> + UpdateTargetProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteTargetProject( google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request) override; + StatusOr DeleteTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request) + override; + + future> + DeleteTargetProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListReplicationCycles( google::cloud::vmmigration::v1::ListReplicationCyclesRequest request) diff --git a/google/cloud/vmmigration/v1/mocks/mock_vm_migration_connection.h b/google/cloud/vmmigration/v1/mocks/mock_vm_migration_connection.h index 3065a09aea0ee..e824ceaecefe8 100644 --- a/google/cloud/vmmigration/v1/mocks/mock_vm_migration_connection.h +++ b/google/cloud/vmmigration/v1/mocks/mock_vm_migration_connection.h @@ -60,17 +60,54 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { (google::cloud::vmmigration::v1::CreateSourceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateSource, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateSourceRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateSource, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateSource, (google::cloud::vmmigration::v1::UpdateSourceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateSource, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateSourceRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateSource, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteSource, (google::cloud::vmmigration::v1::DeleteSourceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteSource, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteSourceRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteSource, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, FetchInventory, @@ -97,6 +134,20 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { request), (override)); + MOCK_METHOD( + StatusOr, CreateUtilizationReport, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateUtilizationReport, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteUtilizationReport, @@ -104,6 +155,20 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { request), (override)); + MOCK_METHOD( + StatusOr, DeleteUtilizationReport, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteUtilizationReport, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListDatacenterConnectors, @@ -124,6 +189,20 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { request), (override)); + MOCK_METHOD( + StatusOr, CreateDatacenterConnector, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateDatacenterConnector, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteDatacenterConnector, @@ -131,6 +210,20 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { request), (override)); + MOCK_METHOD( + StatusOr, DeleteDatacenterConnector, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteDatacenterConnector, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -138,12 +231,38 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { (google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpgradeAppliance, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + UpgradeAppliance, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateMigratingVm, (google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateMigratingVm, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateMigratingVm, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListMigratingVms, (google::cloud::vmmigration::v1::ListMigratingVmsRequest request), @@ -160,30 +279,94 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { (google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateMigratingVm, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateMigratingVm, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteMigratingVm, (google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteMigratingVm, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteMigratingVm, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, StartMigration, (google::cloud::vmmigration::v1::StartMigrationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, StartMigration, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::StartMigrationRequest const& request), + (override)); + + MOCK_METHOD( + future>, + StartMigration, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ResumeMigration, (google::cloud::vmmigration::v1::ResumeMigrationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, ResumeMigration, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::ResumeMigrationRequest const& request), + (override)); + + MOCK_METHOD( + future>, + ResumeMigration, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, PauseMigration, (google::cloud::vmmigration::v1::PauseMigrationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, PauseMigration, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::PauseMigrationRequest const& request), + (override)); + + MOCK_METHOD( + future>, + PauseMigration, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -191,18 +374,57 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { (google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, FinalizeMigration, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + FinalizeMigration, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateCloneJob, (google::cloud::vmmigration::v1::CreateCloneJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateCloneJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateCloneJobRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateCloneJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CancelCloneJob, (google::cloud::vmmigration::v1::CancelCloneJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CancelCloneJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CancelCloneJobRequest const& request), + (override)); + + MOCK_METHOD( + future>, + CancelCloneJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListCloneJobs, (google::cloud::vmmigration::v1::ListCloneJobsRequest request), @@ -219,6 +441,18 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { (google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateCutoverJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateCutoverJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -226,6 +460,20 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { (google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CancelCutoverJob, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + CancelCutoverJob, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListCutoverJobs, (google::cloud::vmmigration::v1::ListCutoverJobsRequest request), @@ -249,17 +497,54 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { (google::cloud::vmmigration::v1::CreateGroupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateGroup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateGroup, (google::cloud::vmmigration::v1::UpdateGroupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateGroupRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateGroup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteGroup, (google::cloud::vmmigration::v1::DeleteGroupRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteGroup, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteGroupRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteGroup, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -267,6 +552,20 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { (google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, AddGroupMigration, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + AddGroupMigration, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, @@ -275,6 +574,21 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { request), (override)); + MOCK_METHOD( + StatusOr, RemoveGroupMigration, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + RemoveGroupMigration, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListTargetProjects, @@ -292,12 +606,36 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { request), (override)); + MOCK_METHOD(StatusOr, CreateTargetProject, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateTargetProjectRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateTargetProject, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateTargetProject, (google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateTargetProject, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateTargetProject, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteTargetProject, @@ -305,6 +643,19 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { request), (override)); + MOCK_METHOD(StatusOr, DeleteTargetProject, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteTargetProject, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListReplicationCycles, diff --git a/google/cloud/vmmigration/v1/vm_migration_connection.cc b/google/cloud/vmmigration/v1/vm_migration_connection.cc index 1c7a7ac6384d5..fcf01fb808fe0 100644 --- a/google/cloud/vmmigration/v1/vm_migration_connection.cc +++ b/google/cloud/vmmigration/v1/vm_migration_connection.cc @@ -60,6 +60,21 @@ VmMigrationConnection::CreateSource( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VmMigrationConnection::CreateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateSourceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::CreateSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::UpdateSource( google::cloud::vmmigration::v1::UpdateSourceRequest const&) { @@ -68,6 +83,21 @@ VmMigrationConnection::UpdateSource( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VmMigrationConnection::UpdateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateSourceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::UpdateSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::DeleteSource( google::cloud::vmmigration::v1::DeleteSourceRequest const&) { @@ -76,6 +106,21 @@ VmMigrationConnection::DeleteSource( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VmMigrationConnection::DeleteSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteSourceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::DeleteSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr VmMigrationConnection::FetchInventory( google::cloud::vmmigration::v1::FetchInventoryRequest const&) { @@ -104,6 +149,22 @@ VmMigrationConnection::CreateUtilizationReport( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmMigrationConnection::CreateUtilizationReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateUtilizationReportRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::CreateUtilizationReport( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::DeleteUtilizationReport( google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const&) { @@ -112,6 +173,22 @@ VmMigrationConnection::DeleteUtilizationReport( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmMigrationConnection::DeleteUtilizationReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::DeleteUtilizationReport( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VmMigrationConnection::ListDatacenterConnectors( google::cloud::vmmigration::v1:: @@ -134,6 +211,22 @@ VmMigrationConnection::CreateDatacenterConnector( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmMigrationConnection::CreateDatacenterConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::CreateDatacenterConnector( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::DeleteDatacenterConnector( google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const&) { @@ -142,6 +235,22 @@ VmMigrationConnection::DeleteDatacenterConnector( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmMigrationConnection::DeleteDatacenterConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::DeleteDatacenterConnector( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::UpgradeAppliance( google::cloud::vmmigration::v1::UpgradeApplianceRequest const&) { @@ -150,6 +259,22 @@ VmMigrationConnection::UpgradeAppliance( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmMigrationConnection::UpgradeAppliance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpgradeApplianceRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::UpgradeAppliance(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::CreateMigratingVm( google::cloud::vmmigration::v1::CreateMigratingVmRequest const&) { @@ -158,6 +283,22 @@ VmMigrationConnection::CreateMigratingVm( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmMigrationConnection::CreateMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateMigratingVmRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::CreateMigratingVm( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VmMigrationConnection::ListMigratingVms( google::cloud::vmmigration::v1:: @@ -180,6 +321,22 @@ VmMigrationConnection::UpdateMigratingVm( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmMigrationConnection::UpdateMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateMigratingVmRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::UpdateMigratingVm( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::DeleteMigratingVm( google::cloud::vmmigration::v1::DeleteMigratingVmRequest const&) { @@ -188,6 +345,22 @@ VmMigrationConnection::DeleteMigratingVm( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmMigrationConnection::DeleteMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteMigratingVmRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::DeleteMigratingVm( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::StartMigration( google::cloud::vmmigration::v1::StartMigrationRequest const&) { @@ -196,6 +369,21 @@ VmMigrationConnection::StartMigration( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VmMigrationConnection::StartMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::StartMigrationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::StartMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::ResumeMigration( google::cloud::vmmigration::v1::ResumeMigrationRequest const&) { @@ -204,6 +392,21 @@ VmMigrationConnection::ResumeMigration( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VmMigrationConnection::ResumeMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::ResumeMigrationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::ResumeMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::PauseMigration( google::cloud::vmmigration::v1::PauseMigrationRequest const&) { @@ -212,6 +415,21 @@ VmMigrationConnection::PauseMigration( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VmMigrationConnection::PauseMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::PauseMigrationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::PauseMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::FinalizeMigration( google::cloud::vmmigration::v1::FinalizeMigrationRequest const&) { @@ -220,6 +438,22 @@ VmMigrationConnection::FinalizeMigration( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmMigrationConnection::FinalizeMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::FinalizeMigrationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::FinalizeMigration( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::CreateCloneJob( google::cloud::vmmigration::v1::CreateCloneJobRequest const&) { @@ -228,6 +462,21 @@ VmMigrationConnection::CreateCloneJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VmMigrationConnection::CreateCloneJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateCloneJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::CreateCloneJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::CancelCloneJob( google::cloud::vmmigration::v1::CancelCloneJobRequest const&) { @@ -236,6 +485,21 @@ VmMigrationConnection::CancelCloneJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VmMigrationConnection::CancelCloneJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CancelCloneJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::CancelCloneJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VmMigrationConnection::ListCloneJobs( google::cloud::vmmigration::v1:: @@ -258,6 +522,22 @@ VmMigrationConnection::CreateCutoverJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmMigrationConnection::CreateCutoverJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateCutoverJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::CreateCutoverJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::CancelCutoverJob( google::cloud::vmmigration::v1::CancelCutoverJobRequest const&) { @@ -266,6 +546,22 @@ VmMigrationConnection::CancelCutoverJob( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmMigrationConnection::CancelCutoverJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CancelCutoverJobRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::CancelCutoverJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VmMigrationConnection::ListCutoverJobs( google::cloud::vmmigration::v1:: @@ -301,6 +597,21 @@ VmMigrationConnection::CreateGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VmMigrationConnection::CreateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::CreateGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::UpdateGroup( google::cloud::vmmigration::v1::UpdateGroupRequest const&) { @@ -309,6 +620,21 @@ VmMigrationConnection::UpdateGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VmMigrationConnection::UpdateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::UpdateGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::DeleteGroup( google::cloud::vmmigration::v1::DeleteGroupRequest const&) { @@ -317,6 +643,21 @@ VmMigrationConnection::DeleteGroup( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VmMigrationConnection::DeleteGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteGroupRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::DeleteGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::AddGroupMigration( google::cloud::vmmigration::v1::AddGroupMigrationRequest const&) { @@ -325,6 +666,22 @@ VmMigrationConnection::AddGroupMigration( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmMigrationConnection::AddGroupMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::AddGroupMigrationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::AddGroupMigration( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::RemoveGroupMigration( google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const&) { @@ -333,6 +690,22 @@ VmMigrationConnection::RemoveGroupMigration( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmMigrationConnection::RemoveGroupMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::RemoveGroupMigration( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VmMigrationConnection::ListTargetProjects( google::cloud::vmmigration::v1:: @@ -355,6 +728,22 @@ VmMigrationConnection::CreateTargetProject( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmMigrationConnection::CreateTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateTargetProjectRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::CreateTargetProject( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::UpdateTargetProject( google::cloud::vmmigration::v1::UpdateTargetProjectRequest const&) { @@ -363,6 +752,22 @@ VmMigrationConnection::UpdateTargetProject( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmMigrationConnection::UpdateTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateTargetProjectRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::UpdateTargetProject( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmMigrationConnection::DeleteTargetProject( google::cloud::vmmigration::v1::DeleteTargetProjectRequest const&) { @@ -371,6 +776,22 @@ VmMigrationConnection::DeleteTargetProject( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmMigrationConnection::DeleteTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteTargetProjectRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmMigrationConnection::DeleteTargetProject( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VmMigrationConnection::ListReplicationCycles( google::cloud::vmmigration::v1:: diff --git a/google/cloud/vmmigration/v1/vm_migration_connection.h b/google/cloud/vmmigration/v1/vm_migration_connection.h index 8407a593760bf..7892e5294fdbc 100644 --- a/google/cloud/vmmigration/v1/vm_migration_connection.h +++ b/google/cloud/vmmigration/v1/vm_migration_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/vmmigration/v1/internal/vm_migration_retry_traits.h" #include "google/cloud/vmmigration/v1/vm_migration_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -193,13 +195,37 @@ class VmMigrationConnection { virtual future> CreateSource( google::cloud::vmmigration::v1::CreateSourceRequest const& request); + virtual StatusOr CreateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateSourceRequest const& request); + + virtual future> CreateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateSource( google::cloud::vmmigration::v1::UpdateSourceRequest const& request); + virtual StatusOr UpdateSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateSourceRequest const& request); + + virtual future> UpdateSource( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteSource( google::cloud::vmmigration::v1::DeleteSourceRequest const& request); + virtual StatusOr DeleteSource( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteSourceRequest const& request); + + virtual future> + DeleteSource(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr FetchInventory( google::cloud::vmmigration::v1::FetchInventoryRequest const& request); @@ -218,11 +244,29 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& request); + virtual StatusOr CreateUtilizationReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& + request); + + virtual future> + CreateUtilizationReport(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteUtilizationReport( google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& request); + virtual StatusOr DeleteUtilizationReport( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& + request); + + virtual future> + DeleteUtilizationReport(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListDatacenterConnectors( google::cloud::vmmigration::v1::ListDatacenterConnectorsRequest request); @@ -237,20 +281,55 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& request); + virtual StatusOr CreateDatacenterConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& + request); + + virtual future> + CreateDatacenterConnector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteDatacenterConnector( google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& request); + virtual StatusOr DeleteDatacenterConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& + request); + + virtual future> + DeleteDatacenterConnector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UpgradeAppliance( google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request); + virtual StatusOr UpgradeAppliance( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request); + + virtual future< + StatusOr> + UpgradeAppliance(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateMigratingVm( google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request); + virtual StatusOr CreateMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request); + + virtual future> + CreateMigratingVm(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListMigratingVms( google::cloud::vmmigration::v1::ListMigratingVmsRequest request); @@ -262,39 +341,108 @@ class VmMigrationConnection { UpdateMigratingVm( google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request); + virtual StatusOr UpdateMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request); + + virtual future> + UpdateMigratingVm(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteMigratingVm( google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request); + virtual StatusOr DeleteMigratingVm( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request); + + virtual future> + DeleteMigratingVm(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> StartMigration( google::cloud::vmmigration::v1::StartMigrationRequest const& request); + virtual StatusOr StartMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::StartMigrationRequest const& request); + + virtual future< + StatusOr> + StartMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> ResumeMigration( google::cloud::vmmigration::v1::ResumeMigrationRequest const& request); + virtual StatusOr ResumeMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::ResumeMigrationRequest const& request); + + virtual future< + StatusOr> + ResumeMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> PauseMigration( google::cloud::vmmigration::v1::PauseMigrationRequest const& request); + virtual StatusOr PauseMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::PauseMigrationRequest const& request); + + virtual future< + StatusOr> + PauseMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> FinalizeMigration( google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request); + virtual StatusOr FinalizeMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request); + + virtual future< + StatusOr> + FinalizeMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateCloneJob( google::cloud::vmmigration::v1::CreateCloneJobRequest const& request); + virtual StatusOr CreateCloneJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateCloneJobRequest const& request); + + virtual future> + CreateCloneJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> CancelCloneJob( google::cloud::vmmigration::v1::CancelCloneJobRequest const& request); + virtual StatusOr CancelCloneJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CancelCloneJobRequest const& request); + + virtual future< + StatusOr> + CancelCloneJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListCloneJobs( google::cloud::vmmigration::v1::ListCloneJobsRequest request); @@ -305,11 +453,28 @@ class VmMigrationConnection { CreateCutoverJob( google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request); + virtual StatusOr CreateCutoverJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request); + + virtual future> + CreateCutoverJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> CancelCutoverJob( google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request); + virtual StatusOr CancelCutoverJob( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request); + + virtual future< + StatusOr> + CancelCutoverJob(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListCutoverJobs( google::cloud::vmmigration::v1::ListCutoverJobsRequest request); @@ -326,24 +491,67 @@ class VmMigrationConnection { virtual future> CreateGroup( google::cloud::vmmigration::v1::CreateGroupRequest const& request); + virtual StatusOr CreateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateGroupRequest const& request); + + virtual future> CreateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateGroup( google::cloud::vmmigration::v1::UpdateGroupRequest const& request); + virtual StatusOr UpdateGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateGroupRequest const& request); + + virtual future> UpdateGroup( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteGroup( google::cloud::vmmigration::v1::DeleteGroupRequest const& request); + virtual StatusOr DeleteGroup( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteGroupRequest const& request); + + virtual future> + DeleteGroup(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> AddGroupMigration( google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request); + virtual StatusOr AddGroupMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request); + + virtual future< + StatusOr> + AddGroupMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> RemoveGroupMigration( google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& request); + virtual StatusOr RemoveGroupMigration( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& + request); + + virtual future< + StatusOr> + RemoveGroupMigration(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListTargetProjects( google::cloud::vmmigration::v1::ListTargetProjectsRequest request); @@ -357,16 +565,43 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::CreateTargetProjectRequest const& request); + virtual StatusOr CreateTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::CreateTargetProjectRequest const& + request); + + virtual future> + CreateTargetProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateTargetProject( google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request); + virtual StatusOr UpdateTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& + request); + + virtual future> + UpdateTargetProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteTargetProject( google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request); + virtual StatusOr DeleteTargetProject( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& + request); + + virtual future> + DeleteTargetProject(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListReplicationCycles( google::cloud::vmmigration::v1::ListReplicationCyclesRequest request); diff --git a/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.cc b/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.cc index 5b838225c1e41..f94d43f324e4a 100644 --- a/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.cc +++ b/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.cc @@ -156,6 +156,60 @@ VmwareEngineConnectionImpl::CreatePrivateCloud( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::CreatePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreatePrivateCloud(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& + request) { + return stub_->CreatePrivateCloud(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::CreatePrivateCloud( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreatePrivateCloud", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::PrivateCloud>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::PrivateCloud>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::UpdatePrivateCloud( google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request) { @@ -196,6 +250,60 @@ VmwareEngineConnectionImpl::UpdatePrivateCloud( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::UpdatePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdatePrivateCloud(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& + request) { + return stub_->UpdatePrivateCloud(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::UpdatePrivateCloud( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdatePrivateCloud", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::PrivateCloud>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::PrivateCloud>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::DeletePrivateCloud( google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request) { @@ -236,6 +344,60 @@ VmwareEngineConnectionImpl::DeletePrivateCloud( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::DeletePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePrivateCloud(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& + request) { + return stub_->DeletePrivateCloud(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::DeletePrivateCloud( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeletePrivateCloud", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::PrivateCloud>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::PrivateCloud>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::UndeletePrivateCloud( google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& @@ -277,6 +439,61 @@ VmwareEngineConnectionImpl::UndeletePrivateCloud( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::UndeletePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UndeletePrivateCloud(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& + request) { + return stub_->UndeletePrivateCloud(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::UndeletePrivateCloud( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UndeletePrivateCloud", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::PrivateCloud>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::PrivateCloud>, + polling_policy(*current), __func__); +} + StreamRange VmwareEngineConnectionImpl::ListClusters( google::cloud::vmwareengine::v1::ListClustersRequest request) { @@ -366,6 +583,60 @@ VmwareEngineConnectionImpl::CreateCluster( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::CreateClusterRequest const& + request) { + return stub_->CreateCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::Cluster>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::UpdateCluster( google::cloud::vmwareengine::v1::UpdateClusterRequest const& request) { @@ -406,6 +677,60 @@ VmwareEngineConnectionImpl::UpdateCluster( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::UpdateClusterRequest const& + request) { + return stub_->UpdateCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::Cluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::Cluster>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::DeleteCluster( google::cloud::vmwareengine::v1::DeleteClusterRequest const& request) { @@ -446,6 +771,60 @@ VmwareEngineConnectionImpl::DeleteCluster( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteClusterRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::DeleteClusterRequest const& + request) { + return stub_->DeleteCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vmwareengine::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange VmwareEngineConnectionImpl::ListNodes( google::cloud::vmwareengine::v1::ListNodesRequest request) { @@ -627,9 +1006,65 @@ VmwareEngineConnectionImpl::CreateExternalAddress( polling_policy(*current), __func__); } -future> -VmwareEngineConnectionImpl::UpdateExternalAddress( - google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& +StatusOr +VmwareEngineConnectionImpl::CreateExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateExternalAddress(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& + request) { + return stub_->CreateExternalAddress(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::CreateExternalAddress( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateExternalAddress", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::ExternalAddress>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::ExternalAddress>, + polling_policy(*current), __func__); +} + +future> +VmwareEngineConnectionImpl::UpdateExternalAddress( + google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); auto request_copy = request; @@ -668,6 +1103,62 @@ VmwareEngineConnectionImpl::UpdateExternalAddress( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::UpdateExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateExternalAddress(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& + request) { + return stub_->UpdateExternalAddress(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::UpdateExternalAddress( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateExternalAddress", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::ExternalAddress>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::ExternalAddress>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::DeleteExternalAddress( google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& @@ -709,6 +1200,62 @@ VmwareEngineConnectionImpl::DeleteExternalAddress( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::DeleteExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteExternalAddress(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& + request) { + return stub_->DeleteExternalAddress(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::DeleteExternalAddress( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteExternalAddress", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vmwareengine::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange VmwareEngineConnectionImpl::ListSubnets( google::cloud::vmwareengine::v1::ListSubnetsRequest request) { @@ -796,6 +1343,59 @@ VmwareEngineConnectionImpl::UpdateSubnet( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::UpdateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateSubnet(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request) { + return stub_->UpdateSubnet(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::UpdateSubnet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateSubnet", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::Subnet>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::Subnet>, + polling_policy(*current), __func__); +} + StreamRange VmwareEngineConnectionImpl::ListExternalAccessRules( google::cloud::vmwareengine::v1::ListExternalAccessRulesRequest request) { @@ -889,6 +1489,61 @@ VmwareEngineConnectionImpl::CreateExternalAccessRule( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::CreateExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateExternalAccessRule(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1:: + CreateExternalAccessRuleRequest const& request) { + return stub_->CreateExternalAccessRule(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::CreateExternalAccessRule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateExternalAccessRule", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::ExternalAccessRule>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::ExternalAccessRule>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::UpdateExternalAccessRule( google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& @@ -929,6 +1584,61 @@ VmwareEngineConnectionImpl::UpdateExternalAccessRule( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::UpdateExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateExternalAccessRule(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1:: + UpdateExternalAccessRuleRequest const& request) { + return stub_->UpdateExternalAccessRule(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::UpdateExternalAccessRule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateExternalAccessRule", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::ExternalAccessRule>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::ExternalAccessRule>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::DeleteExternalAccessRule( google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& @@ -969,29 +1679,84 @@ VmwareEngineConnectionImpl::DeleteExternalAccessRule( polling_policy(*current), __func__); } -StreamRange -VmwareEngineConnectionImpl::ListLoggingServers( - google::cloud::vmwareengine::v1::ListLoggingServersRequest request) { - request.clear_page_token(); +StatusOr +VmwareEngineConnectionImpl::DeleteExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& + request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto idempotency = idempotency_policy(*current)->ListLoggingServers(request); - char const* function_name = __func__; - return google::cloud::internal::MakePaginationRange< - StreamRange>( - current, std::move(request), - [idempotency, function_name, stub = stub_, - retry = std::shared_ptr( - retry_policy(*current)), - backoff = std::shared_ptr(backoff_policy(*current))]( - Options const& options, - google::cloud::vmwareengine::v1::ListLoggingServersRequest const& r) { - return google::cloud::internal::RetryLoop( - retry->clone(), backoff->clone(), idempotency, - [stub](grpc::ClientContext& context, Options const& options, - google::cloud::vmwareengine::v1:: - ListLoggingServersRequest const& request) { - return stub->ListLoggingServers(context, options, request); - }, + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteExternalAccessRule(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1:: + DeleteExternalAccessRuleRequest const& request) { + return stub_->DeleteExternalAccessRule(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::DeleteExternalAccessRule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteExternalAccessRule", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vmwareengine::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + +StreamRange +VmwareEngineConnectionImpl::ListLoggingServers( + google::cloud::vmwareengine::v1::ListLoggingServersRequest request) { + request.clear_page_token(); + auto current = google::cloud::internal::SaveCurrentOptions(); + auto idempotency = idempotency_policy(*current)->ListLoggingServers(request); + char const* function_name = __func__; + return google::cloud::internal::MakePaginationRange< + StreamRange>( + current, std::move(request), + [idempotency, function_name, stub = stub_, + retry = std::shared_ptr( + retry_policy(*current)), + backoff = std::shared_ptr(backoff_policy(*current))]( + Options const& options, + google::cloud::vmwareengine::v1::ListLoggingServersRequest const& r) { + return google::cloud::internal::RetryLoop( + retry->clone(), backoff->clone(), idempotency, + [stub](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1:: + ListLoggingServersRequest const& request) { + return stub->ListLoggingServers(context, options, request); + }, options, r, function_name); }, [](google::cloud::vmwareengine::v1::ListLoggingServersResponse r) { @@ -1059,6 +1824,61 @@ VmwareEngineConnectionImpl::CreateLoggingServer( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::CreateLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateLoggingServer(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& + request) { + return stub_->CreateLoggingServer(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::CreateLoggingServer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateLoggingServer", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::LoggingServer>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::LoggingServer>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::UpdateLoggingServer( google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& @@ -1100,6 +1920,61 @@ VmwareEngineConnectionImpl::UpdateLoggingServer( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::UpdateLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateLoggingServer(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& + request) { + return stub_->UpdateLoggingServer(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::UpdateLoggingServer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateLoggingServer", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::LoggingServer>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::LoggingServer>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::DeleteLoggingServer( google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& @@ -1141,6 +2016,61 @@ VmwareEngineConnectionImpl::DeleteLoggingServer( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::DeleteLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteLoggingServer(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& + request) { + return stub_->DeleteLoggingServer(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::DeleteLoggingServer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteLoggingServer", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vmwareengine::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange VmwareEngineConnectionImpl::ListNodeTypes( google::cloud::vmwareengine::v1::ListNodeTypesRequest request) { @@ -1263,6 +2193,61 @@ VmwareEngineConnectionImpl::ResetNsxCredentials( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::ResetNsxCredentials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ResetNsxCredentials(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& + request) { + return stub_->ResetNsxCredentials(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::ResetNsxCredentials( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ResetNsxCredentials", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::PrivateCloud>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::PrivateCloud>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::ResetVcenterCredentials( google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& @@ -1304,6 +2289,62 @@ VmwareEngineConnectionImpl::ResetVcenterCredentials( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::ResetVcenterCredentials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->ResetVcenterCredentials(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& + request) { + return stub_->ResetVcenterCredentials(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::ResetVcenterCredentials( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to ResetVcenterCredentials", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::PrivateCloud>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::PrivateCloud>, + polling_policy(*current), __func__); +} + StatusOr VmwareEngineConnectionImpl::GetDnsForwarding( google::cloud::vmwareengine::v1::GetDnsForwardingRequest const& request) { @@ -1360,25 +2401,80 @@ VmwareEngineConnectionImpl::UpdateDnsForwarding( polling_policy(*current), __func__); } -StatusOr -VmwareEngineConnectionImpl::GetNetworkPeering( - google::cloud::vmwareengine::v1::GetNetworkPeeringRequest const& request) { +StatusOr +VmwareEngineConnectionImpl::UpdateDnsForwarding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& + request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( retry_policy(*current), backoff_policy(*current), - idempotency_policy(*current)->GetNetworkPeering(request), + idempotency_policy(*current)->UpdateDnsForwarding(request), [this](grpc::ClientContext& context, Options const& options, - google::cloud::vmwareengine::v1::GetNetworkPeeringRequest const& + google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& request) { - return stub_->GetNetworkPeering(context, options, request); + return stub_->UpdateDnsForwarding(context, options, request); }, *current, request, __func__); } -StreamRange -VmwareEngineConnectionImpl::ListNetworkPeerings( - google::cloud::vmwareengine::v1::ListNetworkPeeringsRequest request) { - request.clear_page_token(); +future> +VmwareEngineConnectionImpl::UpdateDnsForwarding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateDnsForwarding", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::DnsForwarding>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::DnsForwarding>, + polling_policy(*current), __func__); +} + +StatusOr +VmwareEngineConnectionImpl::GetNetworkPeering( + google::cloud::vmwareengine::v1::GetNetworkPeeringRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->GetNetworkPeering(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::GetNetworkPeeringRequest const& + request) { + return stub_->GetNetworkPeering(context, options, request); + }, + *current, request, __func__); +} + +StreamRange +VmwareEngineConnectionImpl::ListNetworkPeerings( + google::cloud::vmwareengine::v1::ListNetworkPeeringsRequest request) { + request.clear_page_token(); auto current = google::cloud::internal::SaveCurrentOptions(); auto idempotency = idempotency_policy(*current)->ListNetworkPeerings(request); char const* function_name = __func__; @@ -1451,6 +2547,61 @@ VmwareEngineConnectionImpl::CreateNetworkPeering( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::CreateNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateNetworkPeering(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& + request) { + return stub_->CreateNetworkPeering(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::CreateNetworkPeering( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateNetworkPeering", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::NetworkPeering>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::NetworkPeering>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::DeleteNetworkPeering( google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& @@ -1492,6 +2643,61 @@ VmwareEngineConnectionImpl::DeleteNetworkPeering( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::DeleteNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNetworkPeering(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& + request) { + return stub_->DeleteNetworkPeering(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::DeleteNetworkPeering( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteNetworkPeering", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vmwareengine::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::UpdateNetworkPeering( google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& @@ -1533,6 +2739,61 @@ VmwareEngineConnectionImpl::UpdateNetworkPeering( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::UpdateNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateNetworkPeering(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& + request) { + return stub_->UpdateNetworkPeering(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::UpdateNetworkPeering( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateNetworkPeering", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::NetworkPeering>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::NetworkPeering>, + polling_policy(*current), __func__); +} + StreamRange VmwareEngineConnectionImpl::ListPeeringRoutes( google::cloud::vmwareengine::v1::ListPeeringRoutesRequest request) { @@ -1609,6 +2870,62 @@ VmwareEngineConnectionImpl::CreateHcxActivationKey( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::CreateHcxActivationKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateHcxActivationKey(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& + request) { + return stub_->CreateHcxActivationKey(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::CreateHcxActivationKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateHcxActivationKey", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::HcxActivationKey>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::HcxActivationKey>, + polling_policy(*current), __func__); +} + StreamRange VmwareEngineConnectionImpl::ListHcxActivationKeys( google::cloud::vmwareengine::v1::ListHcxActivationKeysRequest request) { @@ -1752,26 +3069,41 @@ VmwareEngineConnectionImpl::CreateNetworkPolicy( polling_policy(*current), __func__); } -future> -VmwareEngineConnectionImpl::UpdateNetworkPolicy( - google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& +StatusOr +VmwareEngineConnectionImpl::CreateNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->UpdateNetworkPolicy(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::vmwareengine::v1::NetworkPolicy>( - background_->cq(), current, std::move(request_copy), - [stub = stub_]( - google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& - request) { - return stub->AsyncUpdateNetworkPolicy(cq, std::move(context), - std::move(options), request); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateNetworkPolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& + request) { + return stub_->CreateNetworkPolicy(context, options, request); }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::CreateNetworkPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateNetworkPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::NetworkPolicy>( + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -1789,28 +3121,27 @@ VmwareEngineConnectionImpl::UpdateNetworkPolicy( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::vmwareengine::v1::NetworkPolicy>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } -future> -VmwareEngineConnectionImpl::DeleteNetworkPolicy( - google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& +future> +VmwareEngineConnectionImpl::UpdateNetworkPolicy( + google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); auto request_copy = request; auto const idempotent = - idempotency_policy(*current)->DeleteNetworkPolicy(request_copy); + idempotency_policy(*current)->UpdateNetworkPolicy(request_copy); return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::vmwareengine::v1::OperationMetadata>( + google::cloud::vmwareengine::v1::NetworkPolicy>( background_->cq(), current, std::move(request_copy), [stub = stub_]( google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, - google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& + google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& request) { - return stub->AsyncDeleteNetworkPolicy(cq, std::move(context), + return stub->AsyncUpdateNetworkPolicy(cq, std::move(context), std::move(options), request); }, [stub = stub_](google::cloud::CompletionQueue& cq, @@ -1828,24 +3159,175 @@ VmwareEngineConnectionImpl::DeleteNetworkPolicy( return stub->AsyncCancelOperation(cq, std::move(context), std::move(options), request); }, - &google::cloud::internal::ExtractLongRunningResultMetadata< - google::cloud::vmwareengine::v1::OperationMetadata>, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::NetworkPolicy>, retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } -StreamRange -VmwareEngineConnectionImpl::ListManagementDnsZoneBindings( - google::cloud::vmwareengine::v1::ListManagementDnsZoneBindingsRequest +StatusOr +VmwareEngineConnectionImpl::UpdateNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& request) { - request.clear_page_token(); auto current = google::cloud::internal::SaveCurrentOptions(); - auto idempotency = - idempotency_policy(*current)->ListManagementDnsZoneBindings(request); - char const* function_name = __func__; - return google::cloud::internal::MakePaginationRange< - StreamRange>( - current, std::move(request), + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateNetworkPolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& + request) { + return stub_->UpdateNetworkPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::UpdateNetworkPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateNetworkPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::NetworkPolicy>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::NetworkPolicy>, + polling_policy(*current), __func__); +} + +future> +VmwareEngineConnectionImpl::DeleteNetworkPolicy( + google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->DeleteNetworkPolicy(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::vmwareengine::v1::OperationMetadata>( + background_->cq(), current, std::move(request_copy), + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& + request) { + return stub->AsyncDeleteNetworkPolicy(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vmwareengine::v1::OperationMetadata>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +VmwareEngineConnectionImpl::DeleteNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteNetworkPolicy(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& + request) { + return stub_->DeleteNetworkPolicy(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::DeleteNetworkPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteNetworkPolicy", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vmwareengine::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + +StreamRange +VmwareEngineConnectionImpl::ListManagementDnsZoneBindings( + google::cloud::vmwareengine::v1::ListManagementDnsZoneBindingsRequest + request) { + request.clear_page_token(); + auto current = google::cloud::internal::SaveCurrentOptions(); + auto idempotency = + idempotency_policy(*current)->ListManagementDnsZoneBindings(request); + char const* function_name = __func__; + return google::cloud::internal::MakePaginationRange< + StreamRange>( + current, std::move(request), [idempotency, function_name, stub = stub_, retry = std::shared_ptr( retry_policy(*current)), @@ -1930,6 +3412,61 @@ VmwareEngineConnectionImpl::CreateManagementDnsZoneBinding( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::CreateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + CreateManagementDnsZoneBindingRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateManagementDnsZoneBinding(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1:: + CreateManagementDnsZoneBindingRequest const& request) { + return stub_->CreateManagementDnsZoneBinding(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::CreateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateManagementDnsZoneBinding", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::ManagementDnsZoneBinding>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::ManagementDnsZoneBinding>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::UpdateManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: @@ -1971,6 +3508,61 @@ VmwareEngineConnectionImpl::UpdateManagementDnsZoneBinding( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::UpdateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + UpdateManagementDnsZoneBindingRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateManagementDnsZoneBinding(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1:: + UpdateManagementDnsZoneBindingRequest const& request) { + return stub_->UpdateManagementDnsZoneBinding(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::UpdateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateManagementDnsZoneBinding", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::ManagementDnsZoneBinding>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::ManagementDnsZoneBinding>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::DeleteManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: @@ -2012,6 +3604,61 @@ VmwareEngineConnectionImpl::DeleteManagementDnsZoneBinding( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::DeleteManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + DeleteManagementDnsZoneBindingRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteManagementDnsZoneBinding(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1:: + DeleteManagementDnsZoneBindingRequest const& request) { + return stub_->DeleteManagementDnsZoneBinding(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::DeleteManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteManagementDnsZoneBinding", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vmwareengine::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::RepairManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: @@ -2053,25 +3700,231 @@ VmwareEngineConnectionImpl::RepairManagementDnsZoneBinding( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::RepairManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + RepairManagementDnsZoneBindingRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RepairManagementDnsZoneBinding(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1:: + RepairManagementDnsZoneBindingRequest const& request) { + return stub_->RepairManagementDnsZoneBinding(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::RepairManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RepairManagementDnsZoneBinding", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::ManagementDnsZoneBinding>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::ManagementDnsZoneBinding>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::CreateVmwareEngineNetwork( google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->CreateVmwareEngineNetwork(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->CreateVmwareEngineNetwork(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::vmwareengine::v1::VmwareEngineNetwork>( + background_->cq(), current, std::move(request_copy), + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::vmwareengine::v1:: + CreateVmwareEngineNetworkRequest const& request) { + return stub->AsyncCreateVmwareEngineNetwork( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::VmwareEngineNetwork>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +VmwareEngineConnectionImpl::CreateVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateVmwareEngineNetwork(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1:: + CreateVmwareEngineNetworkRequest const& request) { + return stub_->CreateVmwareEngineNetwork(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::CreateVmwareEngineNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateVmwareEngineNetwork", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::VmwareEngineNetwork>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::VmwareEngineNetwork>, + polling_policy(*current), __func__); +} + +future> +VmwareEngineConnectionImpl::UpdateVmwareEngineNetwork( + google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + auto request_copy = request; + auto const idempotent = + idempotency_policy(*current)->UpdateVmwareEngineNetwork(request_copy); + return google::cloud::internal::AsyncLongRunningOperation< + google::cloud::vmwareengine::v1::VmwareEngineNetwork>( + background_->cq(), current, std::move(request_copy), + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::cloud::vmwareengine::v1:: + UpdateVmwareEngineNetworkRequest const& request) { + return stub->AsyncUpdateVmwareEngineNetwork( + cq, std::move(context), std::move(options), request); + }, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::VmwareEngineNetwork>, + retry_policy(*current), backoff_policy(*current), idempotent, + polling_policy(*current), __func__); +} + +StatusOr +VmwareEngineConnectionImpl::UpdateVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateVmwareEngineNetwork(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1:: + UpdateVmwareEngineNetworkRequest const& request) { + return stub_->UpdateVmwareEngineNetwork(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::UpdateVmwareEngineNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateVmwareEngineNetwork", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< google::cloud::vmwareengine::v1::VmwareEngineNetwork>( - background_->cq(), current, std::move(request_copy), - [stub = stub_](google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::vmwareengine::v1:: - CreateVmwareEngineNetworkRequest const& request) { - return stub->AsyncCreateVmwareEngineNetwork( - cq, std::move(context), std::move(options), request); - }, + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -2089,27 +3942,26 @@ VmwareEngineConnectionImpl::CreateVmwareEngineNetwork( }, &google::cloud::internal::ExtractLongRunningResultResponse< google::cloud::vmwareengine::v1::VmwareEngineNetwork>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } -future> -VmwareEngineConnectionImpl::UpdateVmwareEngineNetwork( - google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& +future> +VmwareEngineConnectionImpl::DeleteVmwareEngineNetwork( + google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); auto request_copy = request; auto const idempotent = - idempotency_policy(*current)->UpdateVmwareEngineNetwork(request_copy); + idempotency_policy(*current)->DeleteVmwareEngineNetwork(request_copy); return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::vmwareengine::v1::VmwareEngineNetwork>( + google::cloud::vmwareengine::v1::OperationMetadata>( background_->cq(), current, std::move(request_copy), [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, google::cloud::vmwareengine::v1:: - UpdateVmwareEngineNetworkRequest const& request) { - return stub->AsyncUpdateVmwareEngineNetwork( + DeleteVmwareEngineNetworkRequest const& request) { + return stub->AsyncDeleteVmwareEngineNetwork( cq, std::move(context), std::move(options), request); }, [stub = stub_](google::cloud::CompletionQueue& cq, @@ -2127,31 +3979,47 @@ VmwareEngineConnectionImpl::UpdateVmwareEngineNetwork( return stub->AsyncCancelOperation(cq, std::move(context), std::move(options), request); }, - &google::cloud::internal::ExtractLongRunningResultResponse< - google::cloud::vmwareengine::v1::VmwareEngineNetwork>, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vmwareengine::v1::OperationMetadata>, retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } -future> +StatusOr VmwareEngineConnectionImpl::DeleteVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); - auto request_copy = request; - auto const idempotent = - idempotency_policy(*current)->DeleteVmwareEngineNetwork(request_copy); - return google::cloud::internal::AsyncLongRunningOperation< - google::cloud::vmwareengine::v1::OperationMetadata>( - background_->cq(), current, std::move(request_copy), - [stub = stub_](google::cloud::CompletionQueue& cq, - std::shared_ptr context, - google::cloud::internal::ImmutableOptions options, - google::cloud::vmwareengine::v1:: - DeleteVmwareEngineNetworkRequest const& request) { - return stub->AsyncDeleteVmwareEngineNetwork( - cq, std::move(context), std::move(options), request); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteVmwareEngineNetwork(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1:: + DeleteVmwareEngineNetworkRequest const& request) { + return stub_->DeleteVmwareEngineNetwork(context, options, request); }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::DeleteVmwareEngineNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteVmwareEngineNetwork", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::OperationMetadata>( + background_->cq(), current, operation, [stub = stub_](google::cloud::CompletionQueue& cq, std::shared_ptr context, google::cloud::internal::ImmutableOptions options, @@ -2169,7 +4037,6 @@ VmwareEngineConnectionImpl::DeleteVmwareEngineNetwork( }, &google::cloud::internal::ExtractLongRunningResultMetadata< google::cloud::vmwareengine::v1::OperationMetadata>, - retry_policy(*current), backoff_policy(*current), idempotent, polling_policy(*current), __func__); } @@ -2267,6 +4134,62 @@ VmwareEngineConnectionImpl::CreatePrivateConnection( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreatePrivateConnection(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& + request) { + return stub_->CreatePrivateConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::CreatePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreatePrivateConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::PrivateConnection>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::PrivateConnection>, + polling_policy(*current), __func__); +} + StatusOr VmwareEngineConnectionImpl::GetPrivateConnection( google::cloud::vmwareengine::v1::GetPrivateConnectionRequest const& @@ -2360,6 +4283,62 @@ VmwareEngineConnectionImpl::UpdatePrivateConnection( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::UpdatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdatePrivateConnection(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& + request) { + return stub_->UpdatePrivateConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::UpdatePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdatePrivateConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::PrivateConnection>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::PrivateConnection>, + polling_policy(*current), __func__); +} + future> VmwareEngineConnectionImpl::DeletePrivateConnection( google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& @@ -2401,6 +4380,62 @@ VmwareEngineConnectionImpl::DeletePrivateConnection( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeletePrivateConnection(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& + request) { + return stub_->DeletePrivateConnection(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::DeletePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeletePrivateConnection", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vmwareengine::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + StreamRange VmwareEngineConnectionImpl::ListPrivateConnectionPeeringRoutes( google::cloud::vmwareengine::v1::ListPrivateConnectionPeeringRoutesRequest @@ -2482,6 +4517,62 @@ VmwareEngineConnectionImpl::GrantDnsBindPermission( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::GrantDnsBindPermission( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->GrantDnsBindPermission(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& + request) { + return stub_->GrantDnsBindPermission(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::GrantDnsBindPermission( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to GrantDnsBindPermission", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::DnsBindPermission>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::DnsBindPermission>, + polling_policy(*current), __func__); +} + StatusOr VmwareEngineConnectionImpl::GetDnsBindPermission( google::cloud::vmwareengine::v1::GetDnsBindPermissionRequest const& @@ -2539,6 +4630,62 @@ VmwareEngineConnectionImpl::RevokeDnsBindPermission( polling_policy(*current), __func__); } +StatusOr +VmwareEngineConnectionImpl::RevokeDnsBindPermission( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->RevokeDnsBindPermission(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& + request) { + return stub_->RevokeDnsBindPermission(context, options, request); + }, + *current, request, __func__); +} + +future> +VmwareEngineConnectionImpl::RevokeDnsBindPermission( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to RevokeDnsBindPermission", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vmwareengine::v1::DnsBindPermission>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vmwareengine::v1::DnsBindPermission>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace vmwareengine_v1_internal } // namespace cloud diff --git a/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.h b/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.h index 9252ee329f880..ed6cb3de102d3 100644 --- a/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.h +++ b/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.h @@ -65,21 +65,58 @@ class VmwareEngineConnectionImpl google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& request) override; + StatusOr CreatePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& request) + override; + + future> + CreatePrivateCloud(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdatePrivateCloud( google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request) override; + StatusOr UpdatePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request) + override; + + future> + UpdatePrivateCloud(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeletePrivateCloud( google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request) override; + StatusOr DeletePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request) + override; + + future> + DeletePrivateCloud(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeletePrivateCloud( google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& request) override; + StatusOr UndeletePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& + request) override; + + future> + UndeletePrivateCloud( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListClusters( google::cloud::vmwareengine::v1::ListClustersRequest request) override; @@ -91,14 +128,41 @@ class VmwareEngineConnectionImpl google::cloud::vmwareengine::v1::CreateClusterRequest const& request) override; + StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateClusterRequest const& request) + override; + + future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCluster( google::cloud::vmwareengine::v1::UpdateClusterRequest const& request) override; + StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateClusterRequest const& request) + override; + + future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCluster(google::cloud::vmwareengine::v1::DeleteClusterRequest const& request) override; + StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteClusterRequest const& request) + override; + + future> + DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListNodes( google::cloud::vmwareengine::v1::ListNodesRequest request) override; @@ -124,16 +188,46 @@ class VmwareEngineConnectionImpl google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& request) override; + StatusOr CreateExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& + request) override; + + future> + CreateExternalAddress( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateExternalAddress( google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& request) override; + StatusOr UpdateExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& + request) override; + + future> + UpdateExternalAddress( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteExternalAddress( google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& request) override; + StatusOr DeleteExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& + request) override; + + future> + DeleteExternalAddress( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListSubnets( google::cloud::vmwareengine::v1::ListSubnetsRequest request) override; @@ -145,6 +239,15 @@ class VmwareEngineConnectionImpl google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request) override; + StatusOr UpdateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request) + override; + + future> UpdateSubnet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListExternalAccessRules( google::cloud::vmwareengine::v1::ListExternalAccessRulesRequest request) @@ -160,16 +263,46 @@ class VmwareEngineConnectionImpl google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& request) override; + StatusOr CreateExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& + request) override; + + future> + CreateExternalAccessRule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateExternalAccessRule( google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& request) override; + StatusOr UpdateExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& + request) override; + + future> + UpdateExternalAccessRule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteExternalAccessRule( google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& request) override; + StatusOr DeleteExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& + request) override; + + future> + DeleteExternalAccessRule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListLoggingServers(google::cloud::vmwareengine::v1::ListLoggingServersRequest request) override; @@ -183,16 +316,43 @@ class VmwareEngineConnectionImpl google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& request) override; + StatusOr CreateLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& + request) override; + + future> + CreateLoggingServer(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateLoggingServer( google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& request) override; + StatusOr UpdateLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& + request) override; + + future> + UpdateLoggingServer(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteLoggingServer( google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& request) override; + StatusOr DeleteLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& + request) override; + + future> + DeleteLoggingServer(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListNodeTypes( google::cloud::vmwareengine::v1::ListNodeTypesRequest request) override; @@ -213,11 +373,30 @@ class VmwareEngineConnectionImpl google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& request) override; + StatusOr ResetNsxCredentials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& + request) override; + + future> + ResetNsxCredentials(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResetVcenterCredentials( google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& request) override; + StatusOr ResetVcenterCredentials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& + request) override; + + future> + ResetVcenterCredentials( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDnsForwarding( google::cloud::vmwareengine::v1::GetDnsForwardingRequest const& request) override; @@ -227,6 +406,15 @@ class VmwareEngineConnectionImpl google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& request) override; + StatusOr UpdateDnsForwarding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& + request) override; + + future> + UpdateDnsForwarding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetNetworkPeering( google::cloud::vmwareengine::v1::GetNetworkPeeringRequest const& request) override; @@ -241,16 +429,46 @@ class VmwareEngineConnectionImpl google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& request) override; + StatusOr CreateNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& + request) override; + + future> + CreateNetworkPeering( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteNetworkPeering( google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& request) override; + StatusOr DeleteNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& + request) override; + + future> + DeleteNetworkPeering( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateNetworkPeering( google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& request) override; + StatusOr UpdateNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& + request) override; + + future> + UpdateNetworkPeering( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListPeeringRoutes( google::cloud::vmwareengine::v1::ListPeeringRoutesRequest request) override; @@ -260,6 +478,16 @@ class VmwareEngineConnectionImpl google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& request) override; + StatusOr CreateHcxActivationKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& + request) override; + + future> + CreateHcxActivationKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListHcxActivationKeys( google::cloud::vmwareengine::v1::ListHcxActivationKeysRequest request) @@ -284,16 +512,43 @@ class VmwareEngineConnectionImpl google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& request) override; + StatusOr CreateNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& + request) override; + + future> + CreateNetworkPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateNetworkPolicy( google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& request) override; + StatusOr UpdateNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& + request) override; + + future> + UpdateNetworkPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteNetworkPolicy( google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& request) override; + StatusOr DeleteNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& + request) override; + + future> + DeleteNetworkPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListManagementDnsZoneBindings( google::cloud::vmwareengine::v1::ListManagementDnsZoneBindingsRequest @@ -309,36 +564,106 @@ class VmwareEngineConnectionImpl google::cloud::vmwareengine::v1:: CreateManagementDnsZoneBindingRequest const& request) override; + StatusOr CreateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + CreateManagementDnsZoneBindingRequest const& request) override; + + future> + CreateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: UpdateManagementDnsZoneBindingRequest const& request) override; + StatusOr UpdateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + UpdateManagementDnsZoneBindingRequest const& request) override; + + future> + UpdateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: DeleteManagementDnsZoneBindingRequest const& request) override; + StatusOr DeleteManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + DeleteManagementDnsZoneBindingRequest const& request) override; + + future> + DeleteManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RepairManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: RepairManagementDnsZoneBindingRequest const& request) override; + StatusOr RepairManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + RepairManagementDnsZoneBindingRequest const& request) override; + + future> + RepairManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateVmwareEngineNetwork( google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& request) override; + StatusOr CreateVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& + request) override; + + future> + CreateVmwareEngineNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateVmwareEngineNetwork( google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& request) override; + StatusOr UpdateVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& + request) override; + + future> + UpdateVmwareEngineNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteVmwareEngineNetwork( google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& request) override; + StatusOr DeleteVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& + request) override; + + future> + DeleteVmwareEngineNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetVmwareEngineNetwork( google::cloud::vmwareengine::v1::GetVmwareEngineNetworkRequest const& @@ -354,6 +679,16 @@ class VmwareEngineConnectionImpl google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& request) override; + StatusOr CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& + request) override; + + future> + CreatePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetPrivateConnection( google::cloud::vmwareengine::v1::GetPrivateConnectionRequest const& @@ -369,11 +704,31 @@ class VmwareEngineConnectionImpl google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& request) override; + StatusOr UpdatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& + request) override; + + future> + UpdatePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeletePrivateConnection( google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& request) override; + StatusOr DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& + request) override; + + future> + DeletePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListPrivateConnectionPeeringRoutes( google::cloud::vmwareengine::v1::ListPrivateConnectionPeeringRoutesRequest @@ -384,6 +739,16 @@ class VmwareEngineConnectionImpl google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& request) override; + StatusOr GrantDnsBindPermission( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& + request) override; + + future> + GrantDnsBindPermission( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDnsBindPermission( google::cloud::vmwareengine::v1::GetDnsBindPermissionRequest const& @@ -394,6 +759,16 @@ class VmwareEngineConnectionImpl google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& request) override; + StatusOr RevokeDnsBindPermission( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& + request) override; + + future> + RevokeDnsBindPermission( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.cc b/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.cc index 2726e195608d2..45f7dcb4f6555 100644 --- a/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.cc +++ b/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.cc @@ -64,6 +64,30 @@ VmwareEngineTracingConnection::CreatePrivateCloud( child_->CreatePrivateCloud(request)); } +StatusOr +VmwareEngineTracingConnection::CreatePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreatePrivateCloud"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreatePrivateCloud(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::CreatePrivateCloud( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreatePrivateCloud"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreatePrivateCloud(google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::UpdatePrivateCloud( google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request) { @@ -74,6 +98,30 @@ VmwareEngineTracingConnection::UpdatePrivateCloud( child_->UpdatePrivateCloud(request)); } +StatusOr +VmwareEngineTracingConnection::UpdatePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdatePrivateCloud"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdatePrivateCloud(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::UpdatePrivateCloud( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdatePrivateCloud"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdatePrivateCloud(google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::DeletePrivateCloud( google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request) { @@ -84,6 +132,30 @@ VmwareEngineTracingConnection::DeletePrivateCloud( child_->DeletePrivateCloud(request)); } +StatusOr +VmwareEngineTracingConnection::DeletePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeletePrivateCloud"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeletePrivateCloud(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::DeletePrivateCloud( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeletePrivateCloud"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeletePrivateCloud(google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::UndeletePrivateCloud( google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& @@ -95,6 +167,31 @@ VmwareEngineTracingConnection::UndeletePrivateCloud( child_->UndeletePrivateCloud(request)); } +StatusOr +VmwareEngineTracingConnection::UndeletePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UndeletePrivateCloud"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UndeletePrivateCloud( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::UndeletePrivateCloud( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UndeletePrivateCloud"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UndeletePrivateCloud( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VmwareEngineTracingConnection::ListClusters( google::cloud::vmwareengine::v1::ListClustersRequest request) { @@ -124,6 +221,30 @@ VmwareEngineTracingConnection::CreateCluster( return internal::EndSpan(std::move(span), child_->CreateCluster(request)); } +StatusOr +VmwareEngineTracingConnection::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateClusterRequest const& request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::UpdateCluster( google::cloud::vmwareengine::v1::UpdateClusterRequest const& request) { @@ -133,6 +254,30 @@ VmwareEngineTracingConnection::UpdateCluster( return internal::EndSpan(std::move(span), child_->UpdateCluster(request)); } +StatusOr +VmwareEngineTracingConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateClusterRequest const& request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateCluster(google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::DeleteCluster( google::cloud::vmwareengine::v1::DeleteClusterRequest const& request) { @@ -142,6 +287,30 @@ VmwareEngineTracingConnection::DeleteCluster( return internal::EndSpan(std::move(span), child_->DeleteCluster(request)); } +StatusOr +VmwareEngineTracingConnection::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteClusterRequest const& request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeleteCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::DeleteCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeleteCluster"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteCluster(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VmwareEngineTracingConnection::ListNodes( google::cloud::vmwareengine::v1::ListNodesRequest request) { @@ -208,6 +377,31 @@ VmwareEngineTracingConnection::CreateExternalAddress( child_->CreateExternalAddress(request)); } +StatusOr +VmwareEngineTracingConnection::CreateExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreateExternalAddress"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateExternalAddress( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::CreateExternalAddress( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreateExternalAddress"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateExternalAddress( + google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::UpdateExternalAddress( google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& @@ -219,6 +413,31 @@ VmwareEngineTracingConnection::UpdateExternalAddress( child_->UpdateExternalAddress(request)); } +StatusOr +VmwareEngineTracingConnection::UpdateExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateExternalAddress"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateExternalAddress( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::UpdateExternalAddress( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateExternalAddress"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateExternalAddress( + google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::DeleteExternalAddress( google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& @@ -230,6 +449,31 @@ VmwareEngineTracingConnection::DeleteExternalAddress( child_->DeleteExternalAddress(request)); } +StatusOr +VmwareEngineTracingConnection::DeleteExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeleteExternalAddress"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteExternalAddress( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::DeleteExternalAddress( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeleteExternalAddress"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteExternalAddress( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VmwareEngineTracingConnection::ListSubnets( google::cloud::vmwareengine::v1::ListSubnetsRequest request) { @@ -259,6 +503,30 @@ VmwareEngineTracingConnection::UpdateSubnet( return internal::EndSpan(std::move(span), child_->UpdateSubnet(request)); } +StatusOr +VmwareEngineTracingConnection::UpdateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateSubnet"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateSubnet(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::UpdateSubnet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateSubnet"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateSubnet(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VmwareEngineTracingConnection::ListExternalAccessRules( google::cloud::vmwareengine::v1::ListExternalAccessRulesRequest request) { @@ -292,6 +560,31 @@ VmwareEngineTracingConnection::CreateExternalAccessRule( child_->CreateExternalAccessRule(request)); } +StatusOr +VmwareEngineTracingConnection::CreateExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreateExternalAccessRule"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateExternalAccessRule( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::CreateExternalAccessRule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreateExternalAccessRule"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateExternalAccessRule( + google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::UpdateExternalAccessRule( google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& @@ -303,6 +596,31 @@ VmwareEngineTracingConnection::UpdateExternalAccessRule( child_->UpdateExternalAccessRule(request)); } +StatusOr +VmwareEngineTracingConnection::UpdateExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateExternalAccessRule"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateExternalAccessRule( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::UpdateExternalAccessRule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateExternalAccessRule"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateExternalAccessRule( + google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::DeleteExternalAccessRule( google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& @@ -314,6 +632,31 @@ VmwareEngineTracingConnection::DeleteExternalAccessRule( child_->DeleteExternalAccessRule(request)); } +StatusOr +VmwareEngineTracingConnection::DeleteExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeleteExternalAccessRule"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteExternalAccessRule( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::DeleteExternalAccessRule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeleteExternalAccessRule"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteExternalAccessRule( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VmwareEngineTracingConnection::ListLoggingServers( google::cloud::vmwareengine::v1::ListLoggingServersRequest request) { @@ -346,6 +689,31 @@ VmwareEngineTracingConnection::CreateLoggingServer( child_->CreateLoggingServer(request)); } +StatusOr +VmwareEngineTracingConnection::CreateLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreateLoggingServer"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateLoggingServer(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::CreateLoggingServer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreateLoggingServer"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateLoggingServer(google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::UpdateLoggingServer( google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& @@ -357,6 +725,31 @@ VmwareEngineTracingConnection::UpdateLoggingServer( child_->UpdateLoggingServer(request)); } +StatusOr +VmwareEngineTracingConnection::UpdateLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateLoggingServer"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateLoggingServer(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::UpdateLoggingServer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateLoggingServer"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateLoggingServer(google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::DeleteLoggingServer( google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& @@ -368,6 +761,31 @@ VmwareEngineTracingConnection::DeleteLoggingServer( child_->DeleteLoggingServer(request)); } +StatusOr +VmwareEngineTracingConnection::DeleteLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeleteLoggingServer"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteLoggingServer(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::DeleteLoggingServer( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeleteLoggingServer"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteLoggingServer(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VmwareEngineTracingConnection::ListNodeTypes( google::cloud::vmwareengine::v1::ListNodeTypesRequest request) { @@ -419,7 +837,32 @@ VmwareEngineTracingConnection::ResetNsxCredentials( child_->ResetNsxCredentials(request)); } -future> +StatusOr +VmwareEngineTracingConnection::ResetNsxCredentials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::ResetNsxCredentials"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->ResetNsxCredentials(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::ResetNsxCredentials( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::ResetNsxCredentials"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->ResetNsxCredentials(google::cloud::ExperimentalTag{}, operation)); +} + +future> VmwareEngineTracingConnection::ResetVcenterCredentials( google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& request) { @@ -430,6 +873,31 @@ VmwareEngineTracingConnection::ResetVcenterCredentials( child_->ResetVcenterCredentials(request)); } +StatusOr +VmwareEngineTracingConnection::ResetVcenterCredentials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::ResetVcenterCredentials"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->ResetVcenterCredentials( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::ResetVcenterCredentials( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::ResetVcenterCredentials"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->ResetVcenterCredentials( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr VmwareEngineTracingConnection::GetDnsForwarding( google::cloud::vmwareengine::v1::GetDnsForwardingRequest const& request) { @@ -450,6 +918,31 @@ VmwareEngineTracingConnection::UpdateDnsForwarding( child_->UpdateDnsForwarding(request)); } +StatusOr +VmwareEngineTracingConnection::UpdateDnsForwarding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateDnsForwarding"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateDnsForwarding(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::UpdateDnsForwarding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateDnsForwarding"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateDnsForwarding(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr VmwareEngineTracingConnection::GetNetworkPeering( google::cloud::vmwareengine::v1::GetNetworkPeeringRequest const& request) { @@ -482,6 +975,31 @@ VmwareEngineTracingConnection::CreateNetworkPeering( child_->CreateNetworkPeering(request)); } +StatusOr +VmwareEngineTracingConnection::CreateNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreateNetworkPeering"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateNetworkPeering( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::CreateNetworkPeering( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreateNetworkPeering"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateNetworkPeering( + google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::DeleteNetworkPeering( google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& @@ -493,6 +1011,31 @@ VmwareEngineTracingConnection::DeleteNetworkPeering( child_->DeleteNetworkPeering(request)); } +StatusOr +VmwareEngineTracingConnection::DeleteNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeleteNetworkPeering"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteNetworkPeering( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::DeleteNetworkPeering( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeleteNetworkPeering"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteNetworkPeering( + google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::UpdateNetworkPeering( google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& @@ -504,6 +1047,31 @@ VmwareEngineTracingConnection::UpdateNetworkPeering( child_->UpdateNetworkPeering(request)); } +StatusOr +VmwareEngineTracingConnection::UpdateNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateNetworkPeering"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateNetworkPeering( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::UpdateNetworkPeering( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateNetworkPeering"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateNetworkPeering( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VmwareEngineTracingConnection::ListPeeringRoutes( google::cloud::vmwareengine::v1::ListPeeringRoutesRequest request) { @@ -527,6 +1095,31 @@ VmwareEngineTracingConnection::CreateHcxActivationKey( child_->CreateHcxActivationKey(request)); } +StatusOr +VmwareEngineTracingConnection::CreateHcxActivationKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreateHcxActivationKey"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateHcxActivationKey( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::CreateHcxActivationKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreateHcxActivationKey"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateHcxActivationKey( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VmwareEngineTracingConnection::ListHcxActivationKeys( google::cloud::vmwareengine::v1::ListHcxActivationKeysRequest request) { @@ -581,6 +1174,31 @@ VmwareEngineTracingConnection::CreateNetworkPolicy( child_->CreateNetworkPolicy(request)); } +StatusOr +VmwareEngineTracingConnection::CreateNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreateNetworkPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateNetworkPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::CreateNetworkPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreateNetworkPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateNetworkPolicy(google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::UpdateNetworkPolicy( google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& @@ -592,6 +1210,31 @@ VmwareEngineTracingConnection::UpdateNetworkPolicy( child_->UpdateNetworkPolicy(request)); } +StatusOr +VmwareEngineTracingConnection::UpdateNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateNetworkPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateNetworkPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::UpdateNetworkPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateNetworkPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateNetworkPolicy(google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::DeleteNetworkPolicy( google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& @@ -603,6 +1246,31 @@ VmwareEngineTracingConnection::DeleteNetworkPolicy( child_->DeleteNetworkPolicy(request)); } +StatusOr +VmwareEngineTracingConnection::DeleteNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeleteNetworkPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteNetworkPolicy(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::DeleteNetworkPolicy( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeleteNetworkPolicy"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteNetworkPolicy(google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VmwareEngineTracingConnection::ListManagementDnsZoneBindings( google::cloud::vmwareengine::v1::ListManagementDnsZoneBindingsRequest @@ -638,6 +1306,33 @@ VmwareEngineTracingConnection::CreateManagementDnsZoneBinding( child_->CreateManagementDnsZoneBinding(request)); } +StatusOr +VmwareEngineTracingConnection::CreateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + CreateManagementDnsZoneBindingRequest const& request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::" + "CreateManagementDnsZoneBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateManagementDnsZoneBinding( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::CreateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::" + "CreateManagementDnsZoneBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateManagementDnsZoneBinding( + google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::UpdateManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: @@ -650,6 +1345,33 @@ VmwareEngineTracingConnection::UpdateManagementDnsZoneBinding( child_->UpdateManagementDnsZoneBinding(request)); } +StatusOr +VmwareEngineTracingConnection::UpdateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + UpdateManagementDnsZoneBindingRequest const& request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::" + "UpdateManagementDnsZoneBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateManagementDnsZoneBinding( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::UpdateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::" + "UpdateManagementDnsZoneBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateManagementDnsZoneBinding( + google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::DeleteManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: @@ -662,6 +1384,33 @@ VmwareEngineTracingConnection::DeleteManagementDnsZoneBinding( child_->DeleteManagementDnsZoneBinding(request)); } +StatusOr +VmwareEngineTracingConnection::DeleteManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + DeleteManagementDnsZoneBindingRequest const& request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::" + "DeleteManagementDnsZoneBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteManagementDnsZoneBinding( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::DeleteManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::" + "DeleteManagementDnsZoneBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteManagementDnsZoneBinding( + google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::RepairManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: @@ -674,6 +1423,33 @@ VmwareEngineTracingConnection::RepairManagementDnsZoneBinding( child_->RepairManagementDnsZoneBinding(request)); } +StatusOr +VmwareEngineTracingConnection::RepairManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + RepairManagementDnsZoneBindingRequest const& request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::" + "RepairManagementDnsZoneBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RepairManagementDnsZoneBinding( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::RepairManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::" + "RepairManagementDnsZoneBinding"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RepairManagementDnsZoneBinding( + google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::CreateVmwareEngineNetwork( google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& @@ -685,6 +1461,31 @@ VmwareEngineTracingConnection::CreateVmwareEngineNetwork( child_->CreateVmwareEngineNetwork(request)); } +StatusOr +VmwareEngineTracingConnection::CreateVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreateVmwareEngineNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateVmwareEngineNetwork( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::CreateVmwareEngineNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreateVmwareEngineNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateVmwareEngineNetwork( + google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::UpdateVmwareEngineNetwork( google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& @@ -696,6 +1497,31 @@ VmwareEngineTracingConnection::UpdateVmwareEngineNetwork( child_->UpdateVmwareEngineNetwork(request)); } +StatusOr +VmwareEngineTracingConnection::UpdateVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateVmwareEngineNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateVmwareEngineNetwork( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::UpdateVmwareEngineNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdateVmwareEngineNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateVmwareEngineNetwork( + google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::DeleteVmwareEngineNetwork( google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& @@ -707,6 +1533,31 @@ VmwareEngineTracingConnection::DeleteVmwareEngineNetwork( child_->DeleteVmwareEngineNetwork(request)); } +StatusOr +VmwareEngineTracingConnection::DeleteVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeleteVmwareEngineNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteVmwareEngineNetwork( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::DeleteVmwareEngineNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeleteVmwareEngineNetwork"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteVmwareEngineNetwork( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr VmwareEngineTracingConnection::GetVmwareEngineNetwork( google::cloud::vmwareengine::v1::GetVmwareEngineNetworkRequest const& @@ -740,6 +1591,31 @@ VmwareEngineTracingConnection::CreatePrivateConnection( child_->CreatePrivateConnection(request)); } +StatusOr +VmwareEngineTracingConnection::CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreatePrivateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreatePrivateConnection( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::CreatePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::CreatePrivateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreatePrivateConnection( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr VmwareEngineTracingConnection::GetPrivateConnection( google::cloud::vmwareengine::v1::GetPrivateConnectionRequest const& @@ -773,6 +1649,31 @@ VmwareEngineTracingConnection::UpdatePrivateConnection( child_->UpdatePrivateConnection(request)); } +StatusOr +VmwareEngineTracingConnection::UpdatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdatePrivateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdatePrivateConnection( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::UpdatePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::UpdatePrivateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdatePrivateConnection( + google::cloud::ExperimentalTag{}, operation)); +} + future> VmwareEngineTracingConnection::DeletePrivateConnection( google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& @@ -784,6 +1685,31 @@ VmwareEngineTracingConnection::DeletePrivateConnection( child_->DeletePrivateConnection(request)); } +StatusOr +VmwareEngineTracingConnection::DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeletePrivateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeletePrivateConnection( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::DeletePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::DeletePrivateConnection"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeletePrivateConnection( + google::cloud::ExperimentalTag{}, operation)); +} + StreamRange VmwareEngineTracingConnection::ListPrivateConnectionPeeringRoutes( google::cloud::vmwareengine::v1::ListPrivateConnectionPeeringRoutesRequest @@ -809,6 +1735,31 @@ VmwareEngineTracingConnection::GrantDnsBindPermission( child_->GrantDnsBindPermission(request)); } +StatusOr +VmwareEngineTracingConnection::GrantDnsBindPermission( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::GrantDnsBindPermission"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->GrantDnsBindPermission( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::GrantDnsBindPermission( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::GrantDnsBindPermission"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->GrantDnsBindPermission( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr VmwareEngineTracingConnection::GetDnsBindPermission( google::cloud::vmwareengine::v1::GetDnsBindPermissionRequest const& @@ -830,6 +1781,31 @@ VmwareEngineTracingConnection::RevokeDnsBindPermission( child_->RevokeDnsBindPermission(request)); } +StatusOr +VmwareEngineTracingConnection::RevokeDnsBindPermission( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& + request) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::RevokeDnsBindPermission"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->RevokeDnsBindPermission( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VmwareEngineTracingConnection::RevokeDnsBindPermission( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vmwareengine_v1::VmwareEngineConnection::RevokeDnsBindPermission"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->RevokeDnsBindPermission( + google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.h b/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.h index 718dbc9ba6e13..d8ee8067df10e 100644 --- a/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.h +++ b/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.h @@ -53,21 +53,58 @@ class VmwareEngineTracingConnection google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& request) override; + StatusOr CreatePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& request) + override; + + future> + CreatePrivateCloud(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdatePrivateCloud( google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request) override; + StatusOr UpdatePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request) + override; + + future> + UpdatePrivateCloud(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeletePrivateCloud( google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request) override; + StatusOr DeletePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request) + override; + + future> + DeletePrivateCloud(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UndeletePrivateCloud( google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& request) override; + StatusOr UndeletePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& + request) override; + + future> + UndeletePrivateCloud( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListClusters( google::cloud::vmwareengine::v1::ListClustersRequest request) override; @@ -79,14 +116,41 @@ class VmwareEngineTracingConnection google::cloud::vmwareengine::v1::CreateClusterRequest const& request) override; + StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateClusterRequest const& request) + override; + + future> CreateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateCluster( google::cloud::vmwareengine::v1::UpdateClusterRequest const& request) override; + StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateClusterRequest const& request) + override; + + future> UpdateCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteCluster(google::cloud::vmwareengine::v1::DeleteClusterRequest const& request) override; + StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteClusterRequest const& request) + override; + + future> + DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListNodes( google::cloud::vmwareengine::v1::ListNodesRequest request) override; @@ -112,16 +176,46 @@ class VmwareEngineTracingConnection google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& request) override; + StatusOr CreateExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& + request) override; + + future> + CreateExternalAddress( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateExternalAddress( google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& request) override; + StatusOr UpdateExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& + request) override; + + future> + UpdateExternalAddress( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteExternalAddress( google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& request) override; + StatusOr DeleteExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& + request) override; + + future> + DeleteExternalAddress( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListSubnets( google::cloud::vmwareengine::v1::ListSubnetsRequest request) override; @@ -133,6 +227,15 @@ class VmwareEngineTracingConnection google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request) override; + StatusOr UpdateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request) + override; + + future> UpdateSubnet( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListExternalAccessRules( google::cloud::vmwareengine::v1::ListExternalAccessRulesRequest request) @@ -148,16 +251,46 @@ class VmwareEngineTracingConnection google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& request) override; + StatusOr CreateExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& + request) override; + + future> + CreateExternalAccessRule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateExternalAccessRule( google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& request) override; + StatusOr UpdateExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& + request) override; + + future> + UpdateExternalAccessRule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteExternalAccessRule( google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& request) override; + StatusOr DeleteExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& + request) override; + + future> + DeleteExternalAccessRule( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListLoggingServers(google::cloud::vmwareengine::v1::ListLoggingServersRequest request) override; @@ -171,16 +304,43 @@ class VmwareEngineTracingConnection google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& request) override; + StatusOr CreateLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& + request) override; + + future> + CreateLoggingServer(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateLoggingServer( google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& request) override; + StatusOr UpdateLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& + request) override; + + future> + UpdateLoggingServer(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteLoggingServer( google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& request) override; + StatusOr DeleteLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& + request) override; + + future> + DeleteLoggingServer(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListNodeTypes( google::cloud::vmwareengine::v1::ListNodeTypesRequest request) override; @@ -201,11 +361,30 @@ class VmwareEngineTracingConnection google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& request) override; + StatusOr ResetNsxCredentials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& + request) override; + + future> + ResetNsxCredentials(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> ResetVcenterCredentials( google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& request) override; + StatusOr ResetVcenterCredentials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& + request) override; + + future> + ResetVcenterCredentials( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDnsForwarding( google::cloud::vmwareengine::v1::GetDnsForwardingRequest const& request) override; @@ -215,6 +394,15 @@ class VmwareEngineTracingConnection google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& request) override; + StatusOr UpdateDnsForwarding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& + request) override; + + future> + UpdateDnsForwarding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetNetworkPeering( google::cloud::vmwareengine::v1::GetNetworkPeeringRequest const& request) override; @@ -229,16 +417,46 @@ class VmwareEngineTracingConnection google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& request) override; + StatusOr CreateNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& + request) override; + + future> + CreateNetworkPeering( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteNetworkPeering( google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& request) override; + StatusOr DeleteNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& + request) override; + + future> + DeleteNetworkPeering( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateNetworkPeering( google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& request) override; + StatusOr UpdateNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& + request) override; + + future> + UpdateNetworkPeering( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListPeeringRoutes( google::cloud::vmwareengine::v1::ListPeeringRoutesRequest request) override; @@ -248,6 +466,16 @@ class VmwareEngineTracingConnection google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& request) override; + StatusOr CreateHcxActivationKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& + request) override; + + future> + CreateHcxActivationKey( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListHcxActivationKeys( google::cloud::vmwareengine::v1::ListHcxActivationKeysRequest request) @@ -272,16 +500,43 @@ class VmwareEngineTracingConnection google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& request) override; + StatusOr CreateNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& + request) override; + + future> + CreateNetworkPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateNetworkPolicy( google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& request) override; + StatusOr UpdateNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& + request) override; + + future> + UpdateNetworkPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteNetworkPolicy( google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& request) override; + StatusOr DeleteNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& + request) override; + + future> + DeleteNetworkPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListManagementDnsZoneBindings( google::cloud::vmwareengine::v1::ListManagementDnsZoneBindingsRequest @@ -297,36 +552,106 @@ class VmwareEngineTracingConnection google::cloud::vmwareengine::v1:: CreateManagementDnsZoneBindingRequest const& request) override; + StatusOr CreateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + CreateManagementDnsZoneBindingRequest const& request) override; + + future> + CreateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: UpdateManagementDnsZoneBindingRequest const& request) override; + StatusOr UpdateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + UpdateManagementDnsZoneBindingRequest const& request) override; + + future> + UpdateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: DeleteManagementDnsZoneBindingRequest const& request) override; + StatusOr DeleteManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + DeleteManagementDnsZoneBindingRequest const& request) override; + + future> + DeleteManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> RepairManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: RepairManagementDnsZoneBindingRequest const& request) override; + StatusOr RepairManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + RepairManagementDnsZoneBindingRequest const& request) override; + + future> + RepairManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> CreateVmwareEngineNetwork( google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& request) override; + StatusOr CreateVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& + request) override; + + future> + CreateVmwareEngineNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateVmwareEngineNetwork( google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& request) override; + StatusOr UpdateVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& + request) override; + + future> + UpdateVmwareEngineNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteVmwareEngineNetwork( google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& request) override; + StatusOr DeleteVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& + request) override; + + future> + DeleteVmwareEngineNetwork( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetVmwareEngineNetwork( google::cloud::vmwareengine::v1::GetVmwareEngineNetworkRequest const& @@ -342,6 +667,16 @@ class VmwareEngineTracingConnection google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& request) override; + StatusOr CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& + request) override; + + future> + CreatePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetPrivateConnection( google::cloud::vmwareengine::v1::GetPrivateConnectionRequest const& @@ -357,11 +692,31 @@ class VmwareEngineTracingConnection google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& request) override; + StatusOr UpdatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& + request) override; + + future> + UpdatePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeletePrivateConnection( google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& request) override; + StatusOr DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& + request) override; + + future> + DeletePrivateConnection( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StreamRange ListPrivateConnectionPeeringRoutes( google::cloud::vmwareengine::v1::ListPrivateConnectionPeeringRoutesRequest @@ -372,6 +727,16 @@ class VmwareEngineTracingConnection google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& request) override; + StatusOr GrantDnsBindPermission( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& + request) override; + + future> + GrantDnsBindPermission( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetDnsBindPermission( google::cloud::vmwareengine::v1::GetDnsBindPermissionRequest const& @@ -382,6 +747,16 @@ class VmwareEngineTracingConnection google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& request) override; + StatusOr RevokeDnsBindPermission( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& + request) override; + + future> + RevokeDnsBindPermission( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/vmwareengine/v1/mocks/mock_vmware_engine_connection.h b/google/cloud/vmwareengine/v1/mocks/mock_vmware_engine_connection.h index 9e234282113fc..bed3879f307ed 100644 --- a/google/cloud/vmwareengine/v1/mocks/mock_vmware_engine_connection.h +++ b/google/cloud/vmwareengine/v1/mocks/mock_vmware_engine_connection.h @@ -64,18 +64,54 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD(StatusOr, CreatePrivateCloud, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreatePrivateCloud, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdatePrivateCloud, (google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdatePrivateCloud, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdatePrivateCloud, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeletePrivateCloud, (google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeletePrivateCloud, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeletePrivateCloud, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UndeletePrivateCloud, @@ -83,6 +119,19 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, UndeletePrivateCloud, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UndeletePrivateCloud, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListClusters, (google::cloud::vmwareengine::v1::ListClustersRequest request), @@ -98,17 +147,54 @@ class MockVmwareEngineConnection (google::cloud::vmwareengine::v1::CreateClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateCluster, (google::cloud::vmwareengine::v1::UpdateClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateClusterRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteCluster, (google::cloud::vmwareengine::v1::DeleteClusterRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteClusterRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListNodes, (google::cloud::vmwareengine::v1::ListNodesRequest request), (override)); @@ -142,6 +228,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateExternalAddress, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateExternalAddress, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateExternalAddress, @@ -149,6 +249,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateExternalAddress, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateExternalAddress, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteExternalAddress, @@ -156,6 +270,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteExternalAddress, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteExternalAddress, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListSubnets, (google::cloud::vmwareengine::v1::ListSubnetsRequest request), @@ -171,6 +299,18 @@ class MockVmwareEngineConnection (google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request), (override)); + MOCK_METHOD( + StatusOr, UpdateSubnet, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateSubnet, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListExternalAccessRules, @@ -191,6 +331,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateExternalAccessRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateExternalAccessRule, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateExternalAccessRule, @@ -198,6 +352,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateExternalAccessRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateExternalAccessRule, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteExternalAccessRule, @@ -205,6 +373,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteExternalAccessRule, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteExternalAccessRule, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListLoggingServers, @@ -224,6 +406,19 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateLoggingServer, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateLoggingServer, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateLoggingServer, @@ -231,6 +426,19 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateLoggingServer, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateLoggingServer, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteLoggingServer, @@ -238,6 +446,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteLoggingServer, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteLoggingServer, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListNodeTypes, (google::cloud::vmwareengine::v1::ListNodeTypesRequest request), @@ -268,6 +490,19 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, ResetNsxCredentials, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + ResetNsxCredentials, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, ResetVcenterCredentials, @@ -275,6 +510,19 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, ResetVcenterCredentials, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& + request), + (override)); + + MOCK_METHOD(future>, + ResetVcenterCredentials, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetDnsForwarding, @@ -288,6 +536,19 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateDnsForwarding, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateDnsForwarding, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(StatusOr, GetNetworkPeering, (google::cloud::vmwareengine::v1::GetNetworkPeeringRequest const& @@ -307,6 +568,19 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateNetworkPeering, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateNetworkPeering, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteNetworkPeering, @@ -314,6 +588,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteNetworkPeering, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteNetworkPeering, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateNetworkPeering, @@ -321,6 +609,19 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateNetworkPeering, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateNetworkPeering, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListPeeringRoutes, @@ -334,6 +635,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateHcxActivationKey, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateHcxActivationKey, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListHcxActivationKeys, @@ -366,6 +681,19 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateNetworkPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateNetworkPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateNetworkPolicy, @@ -373,6 +701,19 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateNetworkPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateNetworkPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteNetworkPolicy, @@ -380,6 +721,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteNetworkPolicy, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteNetworkPolicy, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( (StreamRange), ListManagementDnsZoneBindings, @@ -402,6 +757,21 @@ class MockVmwareEngineConnection CreateManagementDnsZoneBindingRequest const& request), (override)); + MOCK_METHOD(StatusOr, + CreateManagementDnsZoneBinding, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + CreateManagementDnsZoneBindingRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + CreateManagementDnsZoneBinding, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -410,6 +780,21 @@ class MockVmwareEngineConnection UpdateManagementDnsZoneBindingRequest const& request), (override)); + MOCK_METHOD(StatusOr, + UpdateManagementDnsZoneBinding, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + UpdateManagementDnsZoneBindingRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + UpdateManagementDnsZoneBinding, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteManagementDnsZoneBinding, @@ -417,6 +802,20 @@ class MockVmwareEngineConnection DeleteManagementDnsZoneBindingRequest const& request), (override)); + MOCK_METHOD(StatusOr, + DeleteManagementDnsZoneBinding, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + DeleteManagementDnsZoneBindingRequest const& request), + (override)); + + MOCK_METHOD( + future>, + DeleteManagementDnsZoneBinding, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future< StatusOr>, @@ -425,6 +824,21 @@ class MockVmwareEngineConnection RepairManagementDnsZoneBindingRequest const& request), (override)); + MOCK_METHOD(StatusOr, + RepairManagementDnsZoneBinding, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + RepairManagementDnsZoneBindingRequest const& request), + (override)); + + MOCK_METHOD( + future< + StatusOr>, + RepairManagementDnsZoneBinding, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, CreateVmwareEngineNetwork, @@ -432,6 +846,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateVmwareEngineNetwork, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateVmwareEngineNetwork, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateVmwareEngineNetwork, @@ -439,6 +867,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateVmwareEngineNetwork, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateVmwareEngineNetwork, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteVmwareEngineNetwork, @@ -446,6 +888,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteVmwareEngineNetwork, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteVmwareEngineNetwork, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetVmwareEngineNetwork, @@ -467,6 +923,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, CreatePrivateConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreatePrivateConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetPrivateConnection, @@ -487,6 +957,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdatePrivateConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdatePrivateConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeletePrivateConnection, @@ -494,6 +978,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, DeletePrivateConnection, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeletePrivateConnection, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD((StreamRange), ListPrivateConnectionPeeringRoutes, (google::cloud::vmwareengine::v1:: @@ -507,6 +1005,20 @@ class MockVmwareEngineConnection request), (override)); + MOCK_METHOD( + StatusOr, GrantDnsBindPermission, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + GrantDnsBindPermission, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetDnsBindPermission, @@ -520,6 +1032,20 @@ class MockVmwareEngineConnection (google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, RevokeDnsBindPermission, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + RevokeDnsBindPermission, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/vmwareengine/v1/vmware_engine_connection.cc b/google/cloud/vmwareengine/v1/vmware_engine_connection.cc index c0448b64b376f..291abe017218c 100644 --- a/google/cloud/vmwareengine/v1/vmware_engine_connection.cc +++ b/google/cloud/vmwareengine/v1/vmware_engine_connection.cc @@ -60,6 +60,22 @@ VmwareEngineConnection::CreatePrivateCloud( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::CreatePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::CreatePrivateCloud( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::UpdatePrivateCloud( google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const&) { @@ -68,6 +84,22 @@ VmwareEngineConnection::UpdatePrivateCloud( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::UpdatePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::UpdatePrivateCloud( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::DeletePrivateCloud( google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const&) { @@ -76,6 +108,22 @@ VmwareEngineConnection::DeletePrivateCloud( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::DeletePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::DeletePrivateCloud( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::UndeletePrivateCloud( google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const&) { @@ -84,6 +132,22 @@ VmwareEngineConnection::UndeletePrivateCloud( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::UndeletePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::UndeletePrivateCloud( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VmwareEngineConnection::ListClusters( google::cloud::vmwareengine::v1:: @@ -106,6 +170,21 @@ VmwareEngineConnection::CreateCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VmwareEngineConnection::CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::CreateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::UpdateCluster( google::cloud::vmwareengine::v1::UpdateClusterRequest const&) { @@ -114,6 +193,21 @@ VmwareEngineConnection::UpdateCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VmwareEngineConnection::UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::UpdateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::DeleteCluster( google::cloud::vmwareengine::v1::DeleteClusterRequest const&) { @@ -122,6 +216,21 @@ VmwareEngineConnection::DeleteCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VmwareEngineConnection::DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VmwareEngineConnection::ListNodes( google::cloud::vmwareengine::v1:: @@ -165,6 +274,22 @@ VmwareEngineConnection::CreateExternalAddress( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::CreateExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateExternalAddressRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::CreateExternalAddress( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::UpdateExternalAddress( google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const&) { @@ -173,6 +298,22 @@ VmwareEngineConnection::UpdateExternalAddress( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::UpdateExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::UpdateExternalAddress( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::DeleteExternalAddress( google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const&) { @@ -181,6 +322,22 @@ VmwareEngineConnection::DeleteExternalAddress( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::DeleteExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::DeleteExternalAddress( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VmwareEngineConnection::ListSubnets( google::cloud::vmwareengine::v1:: @@ -203,6 +360,21 @@ VmwareEngineConnection::UpdateSubnet( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr VmwareEngineConnection::UpdateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateSubnetRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::UpdateSubnet(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VmwareEngineConnection::ListExternalAccessRules( google::cloud::vmwareengine::v1:: @@ -225,9 +397,41 @@ VmwareEngineConnection::CreateExternalAccessRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::CreateExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +VmwareEngineConnection::CreateExternalAccessRule( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::UpdateExternalAccessRule( + google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr VmwareEngineConnection::UpdateExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::UpdateExternalAccessRule( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -241,6 +445,22 @@ VmwareEngineConnection::DeleteExternalAccessRule( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::DeleteExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::DeleteExternalAccessRule( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VmwareEngineConnection::ListLoggingServers( google::cloud::vmwareengine::v1:: @@ -263,6 +483,22 @@ VmwareEngineConnection::CreateLoggingServer( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::CreateLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateLoggingServerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::CreateLoggingServer( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::UpdateLoggingServer( google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const&) { @@ -271,6 +507,22 @@ VmwareEngineConnection::UpdateLoggingServer( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::UpdateLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::UpdateLoggingServer( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::DeleteLoggingServer( google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const&) { @@ -279,6 +531,22 @@ VmwareEngineConnection::DeleteLoggingServer( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::DeleteLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::DeleteLoggingServer( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VmwareEngineConnection::ListNodeTypes( google::cloud::vmwareengine::v1:: @@ -313,6 +581,22 @@ VmwareEngineConnection::ResetNsxCredentials( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::ResetNsxCredentials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::ResetNsxCredentials( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::ResetVcenterCredentials( google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const&) { @@ -321,6 +605,22 @@ VmwareEngineConnection::ResetVcenterCredentials( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::ResetVcenterCredentials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::ResetVcenterCredentials( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr VmwareEngineConnection::GetDnsForwarding( google::cloud::vmwareengine::v1::GetDnsForwardingRequest const&) { @@ -335,6 +635,22 @@ VmwareEngineConnection::UpdateDnsForwarding( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::UpdateDnsForwarding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::UpdateDnsForwarding( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr VmwareEngineConnection::GetNetworkPeering( google::cloud::vmwareengine::v1::GetNetworkPeeringRequest const&) { @@ -357,6 +673,22 @@ VmwareEngineConnection::CreateNetworkPeering( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::CreateNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::CreateNetworkPeering( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::DeleteNetworkPeering( google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const&) { @@ -365,6 +697,22 @@ VmwareEngineConnection::DeleteNetworkPeering( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::DeleteNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::DeleteNetworkPeering( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::UpdateNetworkPeering( google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const&) { @@ -373,6 +721,22 @@ VmwareEngineConnection::UpdateNetworkPeering( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::UpdateNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::UpdateNetworkPeering( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VmwareEngineConnection::ListPeeringRoutes( google::cloud::vmwareengine::v1:: @@ -389,6 +753,22 @@ VmwareEngineConnection::CreateHcxActivationKey( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::CreateHcxActivationKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::CreateHcxActivationKey( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VmwareEngineConnection::ListHcxActivationKeys( google::cloud::vmwareengine::v1:: @@ -425,6 +805,22 @@ VmwareEngineConnection::CreateNetworkPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::CreateNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::CreateNetworkPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::UpdateNetworkPolicy( google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const&) { @@ -433,6 +829,22 @@ VmwareEngineConnection::UpdateNetworkPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::UpdateNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::UpdateNetworkPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::DeleteNetworkPolicy( google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const&) { @@ -441,6 +853,22 @@ VmwareEngineConnection::DeleteNetworkPolicy( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::DeleteNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::DeleteNetworkPolicy( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VmwareEngineConnection::ListManagementDnsZoneBindings( google::cloud::vmwareengine::v1:: @@ -465,6 +893,23 @@ VmwareEngineConnection::CreateManagementDnsZoneBinding( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::CreateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + CreateManagementDnsZoneBindingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::CreateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::UpdateManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: @@ -474,6 +919,23 @@ VmwareEngineConnection::UpdateManagementDnsZoneBinding( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::UpdateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + UpdateManagementDnsZoneBindingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::UpdateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::DeleteManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: @@ -483,6 +945,23 @@ VmwareEngineConnection::DeleteManagementDnsZoneBinding( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::DeleteManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + DeleteManagementDnsZoneBindingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::DeleteManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::RepairManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: @@ -492,6 +971,23 @@ VmwareEngineConnection::RepairManagementDnsZoneBinding( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::RepairManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + RepairManagementDnsZoneBindingRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::RepairManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::CreateVmwareEngineNetwork( google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const&) { @@ -500,6 +996,22 @@ VmwareEngineConnection::CreateVmwareEngineNetwork( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::CreateVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::CreateVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::UpdateVmwareEngineNetwork( google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const&) { @@ -508,6 +1020,22 @@ VmwareEngineConnection::UpdateVmwareEngineNetwork( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::UpdateVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::UpdateVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::DeleteVmwareEngineNetwork( google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const&) { @@ -516,6 +1044,22 @@ VmwareEngineConnection::DeleteVmwareEngineNetwork( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::DeleteVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::DeleteVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr VmwareEngineConnection::GetVmwareEngineNetwork( google::cloud::vmwareengine::v1::GetVmwareEngineNetworkRequest const&) { @@ -538,6 +1082,22 @@ VmwareEngineConnection::CreatePrivateConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::CreatePrivateConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr VmwareEngineConnection::GetPrivateConnection( google::cloud::vmwareengine::v1::GetPrivateConnectionRequest const&) { @@ -560,6 +1120,22 @@ VmwareEngineConnection::UpdatePrivateConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::UpdatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::UpdatePrivateConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> VmwareEngineConnection::DeletePrivateConnection( google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const&) { @@ -568,6 +1144,22 @@ VmwareEngineConnection::DeletePrivateConnection( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::DeletePrivateConnection( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StreamRange VmwareEngineConnection::ListPrivateConnectionPeeringRoutes( google::cloud::vmwareengine::v1:: @@ -584,6 +1176,22 @@ VmwareEngineConnection::GrantDnsBindPermission( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::GrantDnsBindPermission( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::GrantDnsBindPermission( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr VmwareEngineConnection::GetDnsBindPermission( google::cloud::vmwareengine::v1::GetDnsBindPermissionRequest const&) { @@ -598,6 +1206,22 @@ VmwareEngineConnection::RevokeDnsBindPermission( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VmwareEngineConnection::RevokeDnsBindPermission( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VmwareEngineConnection::RevokeDnsBindPermission( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeVmwareEngineConnection( Options options) { internal::CheckExpectedOptions CreatePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& + request); + + virtual future> + CreatePrivateCloud(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdatePrivateCloud( google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request); + virtual StatusOr UpdatePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& + request); + + virtual future> + UpdatePrivateCloud(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeletePrivateCloud( google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request); + virtual StatusOr DeletePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& + request); + + virtual future> + DeletePrivateCloud(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UndeletePrivateCloud( google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& request); + virtual StatusOr UndeletePrivateCloud( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& + request); + + virtual future> + UndeletePrivateCloud(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListClusters( google::cloud::vmwareengine::v1::ListClustersRequest request); @@ -223,14 +261,38 @@ class VmwareEngineConnection { CreateCluster( google::cloud::vmwareengine::v1::CreateClusterRequest const& request); + virtual StatusOr CreateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateClusterRequest const& request); + + virtual future> + CreateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateCluster( google::cloud::vmwareengine::v1::UpdateClusterRequest const& request); + virtual StatusOr UpdateCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateClusterRequest const& request); + + virtual future> + UpdateCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteCluster( google::cloud::vmwareengine::v1::DeleteClusterRequest const& request); + virtual StatusOr DeleteCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteClusterRequest const& request); + + virtual future> + DeleteCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListNodes( google::cloud::vmwareengine::v1::ListNodesRequest request); @@ -256,16 +318,43 @@ class VmwareEngineConnection { google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& request); + virtual StatusOr CreateExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& + request); + + virtual future> + CreateExternalAddress(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateExternalAddress( google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& request); + virtual StatusOr UpdateExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& + request); + + virtual future> + UpdateExternalAddress(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteExternalAddress( google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& request); + virtual StatusOr DeleteExternalAddress( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& + request); + + virtual future> + DeleteExternalAddress(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListSubnets( google::cloud::vmwareengine::v1::ListSubnetsRequest request); @@ -276,6 +365,14 @@ class VmwareEngineConnection { UpdateSubnet( google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request); + virtual StatusOr UpdateSubnet( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request); + + virtual future> + UpdateSubnet(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListExternalAccessRules( google::cloud::vmwareengine::v1::ListExternalAccessRulesRequest request); @@ -290,16 +387,43 @@ class VmwareEngineConnection { google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& request); + virtual StatusOr CreateExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& + request); + + virtual future> + CreateExternalAccessRule(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateExternalAccessRule( google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& request); + virtual StatusOr UpdateExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& + request); + + virtual future> + UpdateExternalAccessRule(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteExternalAccessRule( google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& request); + virtual StatusOr DeleteExternalAccessRule( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& + request); + + virtual future> + DeleteExternalAccessRule(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListLoggingServers( google::cloud::vmwareengine::v1::ListLoggingServersRequest request); @@ -313,16 +437,43 @@ class VmwareEngineConnection { google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& request); + virtual StatusOr CreateLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& + request); + + virtual future> + CreateLoggingServer(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateLoggingServer( google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& request); + virtual StatusOr UpdateLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& + request); + + virtual future> + UpdateLoggingServer(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteLoggingServer( google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& request); + virtual StatusOr DeleteLoggingServer( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& + request); + + virtual future> + DeleteLoggingServer(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListNodeTypes( google::cloud::vmwareengine::v1::ListNodeTypesRequest request); @@ -344,11 +495,29 @@ class VmwareEngineConnection { google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& request); + virtual StatusOr ResetNsxCredentials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& + request); + + virtual future> + ResetNsxCredentials(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> ResetVcenterCredentials( google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& request); + virtual StatusOr ResetVcenterCredentials( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& + request); + + virtual future> + ResetVcenterCredentials(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetDnsForwarding( google::cloud::vmwareengine::v1::GetDnsForwardingRequest const& request); @@ -358,6 +527,15 @@ class VmwareEngineConnection { google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& request); + virtual StatusOr UpdateDnsForwarding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& + request); + + virtual future> + UpdateDnsForwarding(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetNetworkPeering( google::cloud::vmwareengine::v1::GetNetworkPeeringRequest const& request); @@ -371,16 +549,43 @@ class VmwareEngineConnection { google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& request); + virtual StatusOr CreateNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& + request); + + virtual future> + CreateNetworkPeering(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteNetworkPeering( google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& request); + virtual StatusOr DeleteNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& + request); + + virtual future> + DeleteNetworkPeering(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateNetworkPeering( google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& request); + virtual StatusOr UpdateNetworkPeering( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& + request); + + virtual future> + UpdateNetworkPeering(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListPeeringRoutes( google::cloud::vmwareengine::v1::ListPeeringRoutesRequest request); @@ -390,6 +595,15 @@ class VmwareEngineConnection { google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& request); + virtual StatusOr CreateHcxActivationKey( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& + request); + + virtual future> + CreateHcxActivationKey(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListHcxActivationKeys( google::cloud::vmwareengine::v1::ListHcxActivationKeysRequest request); @@ -412,16 +626,43 @@ class VmwareEngineConnection { google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& request); + virtual StatusOr CreateNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& + request); + + virtual future> + CreateNetworkPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateNetworkPolicy( google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& request); + virtual StatusOr UpdateNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& + request); + + virtual future> + UpdateNetworkPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteNetworkPolicy( google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& request); + virtual StatusOr DeleteNetworkPolicy( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& + request); + + virtual future> + DeleteNetworkPolicy(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListManagementDnsZoneBindings( google::cloud::vmwareengine::v1::ListManagementDnsZoneBindingsRequest @@ -438,38 +679,112 @@ class VmwareEngineConnection { google::cloud::vmwareengine::v1:: CreateManagementDnsZoneBindingRequest const& request); + virtual StatusOr + CreateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + CreateManagementDnsZoneBindingRequest const& request); + + virtual future< + StatusOr> + CreateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> UpdateManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: UpdateManagementDnsZoneBindingRequest const& request); + virtual StatusOr + UpdateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + UpdateManagementDnsZoneBindingRequest const& request); + + virtual future< + StatusOr> + UpdateManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: DeleteManagementDnsZoneBindingRequest const& request); + virtual StatusOr + DeleteManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + DeleteManagementDnsZoneBindingRequest const& request); + + virtual future> + DeleteManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future< StatusOr> RepairManagementDnsZoneBinding( google::cloud::vmwareengine::v1:: RepairManagementDnsZoneBindingRequest const& request); + virtual StatusOr + RepairManagementDnsZoneBinding( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1:: + RepairManagementDnsZoneBindingRequest const& request); + + virtual future< + StatusOr> + RepairManagementDnsZoneBinding( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> CreateVmwareEngineNetwork( google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& request); + virtual StatusOr CreateVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& + request); + + virtual future> + CreateVmwareEngineNetwork(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateVmwareEngineNetwork( google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& request); + virtual StatusOr UpdateVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& + request); + + virtual future> + UpdateVmwareEngineNetwork(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteVmwareEngineNetwork( google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& request); + virtual StatusOr DeleteVmwareEngineNetwork( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& + request); + + virtual future> + DeleteVmwareEngineNetwork(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetVmwareEngineNetwork( google::cloud::vmwareengine::v1::GetVmwareEngineNetworkRequest const& @@ -484,6 +799,15 @@ class VmwareEngineConnection { google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& request); + virtual StatusOr CreatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& + request); + + virtual future> + CreatePrivateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetPrivateConnection( google::cloud::vmwareengine::v1::GetPrivateConnectionRequest const& @@ -498,11 +822,29 @@ class VmwareEngineConnection { google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& request); + virtual StatusOr UpdatePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& + request); + + virtual future> + UpdatePrivateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeletePrivateConnection( google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& request); + virtual StatusOr DeletePrivateConnection( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& + request); + + virtual future> + DeletePrivateConnection(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StreamRange ListPrivateConnectionPeeringRoutes( google::cloud::vmwareengine::v1::ListPrivateConnectionPeeringRoutesRequest @@ -513,6 +855,15 @@ class VmwareEngineConnection { google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& request); + virtual StatusOr GrantDnsBindPermission( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& + request); + + virtual future> + GrantDnsBindPermission(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetDnsBindPermission( google::cloud::vmwareengine::v1::GetDnsBindPermissionRequest const& @@ -522,6 +873,15 @@ class VmwareEngineConnection { RevokeDnsBindPermission( google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& request); + + virtual StatusOr RevokeDnsBindPermission( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& + request); + + virtual future> + RevokeDnsBindPermission(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.cc b/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.cc index c808793fd692a..36ba5c77c4cf7 100644 --- a/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.cc +++ b/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.cc @@ -106,6 +106,59 @@ VpcAccessServiceConnectionImpl::CreateConnector( polling_policy(*current), __func__); } +StatusOr +VpcAccessServiceConnectionImpl::CreateConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vpcaccess::v1::CreateConnectorRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateConnector(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vpcaccess::v1::CreateConnectorRequest const& request) { + return stub_->CreateConnector(context, options, request); + }, + *current, request, __func__); +} + +future> +VpcAccessServiceConnectionImpl::CreateConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateConnector", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vpcaccess::v1::Connector>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::vpcaccess::v1::Connector>, + polling_policy(*current), __func__); +} + StatusOr VpcAccessServiceConnectionImpl::GetConnector( google::cloud::vpcaccess::v1::GetConnectorRequest const& request) { @@ -193,6 +246,60 @@ VpcAccessServiceConnectionImpl::DeleteConnector( polling_policy(*current), __func__); } +StatusOr +VpcAccessServiceConnectionImpl::DeleteConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteConnector(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request) { + return stub_->DeleteConnector(context, options, request); + }, + *current, request, __func__); +} + +future> +VpcAccessServiceConnectionImpl::DeleteConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteConnector", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::vpcaccess::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::vpcaccess::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace vpcaccess_v1_internal } // namespace cloud diff --git a/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.h b/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.h index 70ae51dbb7975..3586b7668d8f0 100644 --- a/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.h +++ b/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.h @@ -56,6 +56,15 @@ class VpcAccessServiceConnectionImpl google::cloud::vpcaccess::v1::CreateConnectorRequest const& request) override; + StatusOr CreateConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vpcaccess::v1::CreateConnectorRequest const& request) + override; + + future> CreateConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetConnector( google::cloud::vpcaccess::v1::GetConnectorRequest const& request) override; @@ -67,6 +76,15 @@ class VpcAccessServiceConnectionImpl DeleteConnector(google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request) override; + StatusOr DeleteConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request) + override; + + future> + DeleteConnector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.cc b/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.cc index 596669922b155..e495df330c432 100644 --- a/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.cc +++ b/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.cc @@ -42,6 +42,30 @@ VpcAccessServiceTracingConnection::CreateConnector( return internal::EndSpan(std::move(span), child_->CreateConnector(request)); } +StatusOr +VpcAccessServiceTracingConnection::CreateConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vpcaccess::v1::CreateConnectorRequest const& request) { + auto span = internal::MakeSpan( + "vpcaccess_v1::VpcAccessServiceConnection::CreateConnector"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateConnector(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VpcAccessServiceTracingConnection::CreateConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vpcaccess_v1::VpcAccessServiceConnection::CreateConnector"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateConnector(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr VpcAccessServiceTracingConnection::GetConnector( google::cloud::vpcaccess::v1::GetConnectorRequest const& request) { @@ -71,6 +95,30 @@ VpcAccessServiceTracingConnection::DeleteConnector( return internal::EndSpan(std::move(span), child_->DeleteConnector(request)); } +StatusOr +VpcAccessServiceTracingConnection::DeleteConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request) { + auto span = internal::MakeSpan( + "vpcaccess_v1::VpcAccessServiceConnection::DeleteConnector"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteConnector(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +VpcAccessServiceTracingConnection::DeleteConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "vpcaccess_v1::VpcAccessServiceConnection::DeleteConnector"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteConnector(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.h b/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.h index 4507b19e8b38f..5edc7f44422ac 100644 --- a/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.h +++ b/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.h @@ -44,6 +44,15 @@ class VpcAccessServiceTracingConnection google::cloud::vpcaccess::v1::CreateConnectorRequest const& request) override; + StatusOr CreateConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vpcaccess::v1::CreateConnectorRequest const& request) + override; + + future> CreateConnector( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetConnector( google::cloud::vpcaccess::v1::GetConnectorRequest const& request) override; @@ -55,6 +64,15 @@ class VpcAccessServiceTracingConnection DeleteConnector(google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request) override; + StatusOr DeleteConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request) + override; + + future> + DeleteConnector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/vpcaccess/v1/mocks/mock_vpc_access_connection.h b/google/cloud/vpcaccess/v1/mocks/mock_vpc_access_connection.h index 08e0da4a5e975..27a5ba39364fc 100644 --- a/google/cloud/vpcaccess/v1/mocks/mock_vpc_access_connection.h +++ b/google/cloud/vpcaccess/v1/mocks/mock_vpc_access_connection.h @@ -53,6 +53,18 @@ class MockVpcAccessServiceConnection (google::cloud::vpcaccess::v1::CreateConnectorRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateConnector, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vpcaccess::v1::CreateConnectorRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateConnector, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetConnector, (google::cloud::vpcaccess::v1::GetConnectorRequest const& request), @@ -68,6 +80,18 @@ class MockVpcAccessServiceConnection DeleteConnector, (google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, DeleteConnector, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteConnector, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/vpcaccess/v1/vpc_access_connection.cc b/google/cloud/vpcaccess/v1/vpc_access_connection.cc index 444afc498b200..67efd78a3a789 100644 --- a/google/cloud/vpcaccess/v1/vpc_access_connection.cc +++ b/google/cloud/vpcaccess/v1/vpc_access_connection.cc @@ -46,6 +46,22 @@ VpcAccessServiceConnection::CreateConnector( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VpcAccessServiceConnection::CreateConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vpcaccess::v1::CreateConnectorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VpcAccessServiceConnection::CreateConnector( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr VpcAccessServiceConnection::GetConnector( google::cloud::vpcaccess::v1::GetConnectorRequest const&) { @@ -68,6 +84,22 @@ VpcAccessServiceConnection::DeleteConnector( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +VpcAccessServiceConnection::DeleteConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vpcaccess::v1::DeleteConnectorRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +VpcAccessServiceConnection::DeleteConnector( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeVpcAccessServiceConnection( Options options) { internal::CheckExpectedOptions CreateConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vpcaccess::v1::CreateConnectorRequest const& request); + + virtual future> + CreateConnector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetConnector( google::cloud::vpcaccess::v1::GetConnectorRequest const& request); @@ -201,6 +211,14 @@ class VpcAccessServiceConnection { virtual future> DeleteConnector( google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request); + + virtual StatusOr DeleteConnector( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request); + + virtual future> + DeleteConnector(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/webrisk/v1/internal/web_risk_connection_impl.cc b/google/cloud/webrisk/v1/internal/web_risk_connection_impl.cc index e1dfa78173ca0..5b00b44b62319 100644 --- a/google/cloud/webrisk/v1/internal/web_risk_connection_impl.cc +++ b/google/cloud/webrisk/v1/internal/web_risk_connection_impl.cc @@ -159,6 +159,58 @@ WebRiskServiceConnectionImpl::SubmitUri( polling_policy(*current), __func__); } +StatusOr +WebRiskServiceConnectionImpl::SubmitUri( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::webrisk::v1::SubmitUriRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->SubmitUri(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::webrisk::v1::SubmitUriRequest const& request) { + return stub_->SubmitUri(context, options, request); + }, + *current, request, __func__); +} + +future> +WebRiskServiceConnectionImpl::SubmitUri( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to SubmitUri", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::webrisk::v1::Submission>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::webrisk::v1::Submission>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace webrisk_v1_internal } // namespace cloud diff --git a/google/cloud/webrisk/v1/internal/web_risk_connection_impl.h b/google/cloud/webrisk/v1/internal/web_risk_connection_impl.h index 3bff3c89c9b26..73800241d4a02 100644 --- a/google/cloud/webrisk/v1/internal/web_risk_connection_impl.h +++ b/google/cloud/webrisk/v1/internal/web_risk_connection_impl.h @@ -69,6 +69,14 @@ class WebRiskServiceConnectionImpl future> SubmitUri( google::cloud::webrisk::v1::SubmitUriRequest const& request) override; + StatusOr SubmitUri( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::webrisk::v1::SubmitUriRequest const& request) override; + + future> SubmitUri( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.cc b/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.cc index 3bf3ca465cb35..cc3d0982d48dc 100644 --- a/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.cc +++ b/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.cc @@ -77,6 +77,30 @@ WebRiskServiceTracingConnection::SubmitUri( return internal::EndSpan(std::move(span), child_->SubmitUri(request)); } +StatusOr +WebRiskServiceTracingConnection::SubmitUri( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::webrisk::v1::SubmitUriRequest const& request) { + auto span = + internal::MakeSpan("webrisk_v1::WebRiskServiceConnection::SubmitUri"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->SubmitUri(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WebRiskServiceTracingConnection::SubmitUri( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("webrisk_v1::WebRiskServiceConnection::SubmitUri"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->SubmitUri(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.h b/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.h index 9d72929ebf58c..c1c4d36eddcd8 100644 --- a/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.h +++ b/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.h @@ -58,6 +58,14 @@ class WebRiskServiceTracingConnection future> SubmitUri( google::cloud::webrisk::v1::SubmitUriRequest const& request) override; + StatusOr SubmitUri( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::webrisk::v1::SubmitUriRequest const& request) override; + + future> SubmitUri( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/webrisk/v1/mocks/mock_web_risk_connection.h b/google/cloud/webrisk/v1/mocks/mock_web_risk_connection.h index 94f4e252a19e8..8b34bb85a5b0e 100644 --- a/google/cloud/webrisk/v1/mocks/mock_web_risk_connection.h +++ b/google/cloud/webrisk/v1/mocks/mock_web_risk_connection.h @@ -72,6 +72,17 @@ class MockWebRiskServiceConnection SubmitUri, (google::cloud::webrisk::v1::SubmitUriRequest const& request), (override)); + + MOCK_METHOD(StatusOr, SubmitUri, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::webrisk::v1::SubmitUriRequest const& request), + (override)); + + MOCK_METHOD(future>, + SubmitUri, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/webrisk/v1/web_risk_connection.cc b/google/cloud/webrisk/v1/web_risk_connection.cc index ecf4a1b89b1c9..355f08cff5456 100644 --- a/google/cloud/webrisk/v1/web_risk_connection.cc +++ b/google/cloud/webrisk/v1/web_risk_connection.cc @@ -69,6 +69,21 @@ WebRiskServiceConnection::SubmitUri( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr WebRiskServiceConnection::SubmitUri( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::webrisk::v1::SubmitUriRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WebRiskServiceConnection::SubmitUri(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeWebRiskServiceConnection( Options options) { internal::CheckExpectedOptions> SubmitUri( google::cloud::webrisk::v1::SubmitUriRequest const& request); + + virtual StatusOr SubmitUri( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::webrisk::v1::SubmitUriRequest const& request); + + virtual future> SubmitUri( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/websecurityscanner/v1/web_security_scanner_connection.h b/google/cloud/websecurityscanner/v1/web_security_scanner_connection.h index 0dbd6ae93ae6e..1d4ec7d60077b 100644 --- a/google/cloud/websecurityscanner/v1/web_security_scanner_connection.h +++ b/google/cloud/websecurityscanner/v1/web_security_scanner_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/websecurityscanner/v1/internal/web_security_scanner_retry_traits.h" #include "google/cloud/websecurityscanner/v1/web_security_scanner_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/workflows/executions/v1/executions_connection.h b/google/cloud/workflows/executions/v1/executions_connection.h index 634a37b6d14a8..30e4c64842c28 100644 --- a/google/cloud/workflows/executions/v1/executions_connection.h +++ b/google/cloud/workflows/executions/v1/executions_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/workflows/executions/v1/executions_connection_idempotency_policy.h" #include "google/cloud/workflows/executions/v1/internal/executions_retry_traits.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" #include "google/cloud/status_or.h" diff --git a/google/cloud/workflows/v1/internal/workflows_connection_impl.cc b/google/cloud/workflows/v1/internal/workflows_connection_impl.cc index f34128111224a..83966662d6ec0 100644 --- a/google/cloud/workflows/v1/internal/workflows_connection_impl.cc +++ b/google/cloud/workflows/v1/internal/workflows_connection_impl.cc @@ -150,6 +150,59 @@ WorkflowsConnectionImpl::CreateWorkflow( polling_policy(*current), __func__); } +StatusOr +WorkflowsConnectionImpl::CreateWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::CreateWorkflowRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateWorkflow(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::workflows::v1::CreateWorkflowRequest const& request) { + return stub_->CreateWorkflow(context, options, request); + }, + *current, request, __func__); +} + +future> +WorkflowsConnectionImpl::CreateWorkflow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to CreateWorkflow", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::workflows::v1::Workflow>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::workflows::v1::Workflow>, + polling_policy(*current), __func__); +} + future> WorkflowsConnectionImpl::DeleteWorkflow( google::cloud::workflows::v1::DeleteWorkflowRequest const& request) { @@ -189,6 +242,60 @@ WorkflowsConnectionImpl::DeleteWorkflow( polling_policy(*current), __func__); } +StatusOr +WorkflowsConnectionImpl::DeleteWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::DeleteWorkflowRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteWorkflow(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::workflows::v1::DeleteWorkflowRequest const& request) { + return stub_->DeleteWorkflow(context, options, request); + }, + *current, request, __func__); +} + +future> +WorkflowsConnectionImpl::DeleteWorkflow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteWorkflow", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::workflows::v1::OperationMetadata>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultMetadata< + google::cloud::workflows::v1::OperationMetadata>, + polling_policy(*current), __func__); +} + future> WorkflowsConnectionImpl::UpdateWorkflow( google::cloud::workflows::v1::UpdateWorkflowRequest const& request) { @@ -228,6 +335,59 @@ WorkflowsConnectionImpl::UpdateWorkflow( polling_policy(*current), __func__); } +StatusOr +WorkflowsConnectionImpl::UpdateWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::UpdateWorkflowRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateWorkflow(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::workflows::v1::UpdateWorkflowRequest const& request) { + return stub_->UpdateWorkflow(context, options, request); + }, + *current, request, __func__); +} + +future> +WorkflowsConnectionImpl::UpdateWorkflow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateWorkflow", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::workflows::v1::Workflow>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::workflows::v1::Workflow>, + polling_policy(*current), __func__); +} + GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace workflows_v1_internal } // namespace cloud diff --git a/google/cloud/workflows/v1/internal/workflows_connection_impl.h b/google/cloud/workflows/v1/internal/workflows_connection_impl.h index 88aa0203f2606..b0fe8591f3497 100644 --- a/google/cloud/workflows/v1/internal/workflows_connection_impl.h +++ b/google/cloud/workflows/v1/internal/workflows_connection_impl.h @@ -61,14 +61,41 @@ class WorkflowsConnectionImpl : public workflows_v1::WorkflowsConnection { google::cloud::workflows::v1::CreateWorkflowRequest const& request) override; + StatusOr CreateWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::CreateWorkflowRequest const& request) + override; + + future> CreateWorkflow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteWorkflow(google::cloud::workflows::v1::DeleteWorkflowRequest const& request) override; + StatusOr DeleteWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::DeleteWorkflowRequest const& request) + override; + + future> + DeleteWorkflow(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateWorkflow( google::cloud::workflows::v1::UpdateWorkflowRequest const& request) override; + StatusOr UpdateWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::UpdateWorkflowRequest const& request) + override; + + future> UpdateWorkflow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::unique_ptr background_; std::shared_ptr stub_; diff --git a/google/cloud/workflows/v1/internal/workflows_tracing_connection.cc b/google/cloud/workflows/v1/internal/workflows_tracing_connection.cc index 2bf96d4bb7714..01b3a3e81574c 100644 --- a/google/cloud/workflows/v1/internal/workflows_tracing_connection.cc +++ b/google/cloud/workflows/v1/internal/workflows_tracing_connection.cc @@ -62,6 +62,30 @@ WorkflowsTracingConnection::CreateWorkflow( return internal::EndSpan(std::move(span), child_->CreateWorkflow(request)); } +StatusOr +WorkflowsTracingConnection::CreateWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::CreateWorkflowRequest const& request) { + auto span = + internal::MakeSpan("workflows_v1::WorkflowsConnection::CreateWorkflow"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateWorkflow(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WorkflowsTracingConnection::CreateWorkflow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("workflows_v1::WorkflowsConnection::CreateWorkflow"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateWorkflow(google::cloud::ExperimentalTag{}, operation)); +} + future> WorkflowsTracingConnection::DeleteWorkflow( google::cloud::workflows::v1::DeleteWorkflowRequest const& request) { @@ -71,6 +95,30 @@ WorkflowsTracingConnection::DeleteWorkflow( return internal::EndSpan(std::move(span), child_->DeleteWorkflow(request)); } +StatusOr +WorkflowsTracingConnection::DeleteWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::DeleteWorkflowRequest const& request) { + auto span = + internal::MakeSpan("workflows_v1::WorkflowsConnection::DeleteWorkflow"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteWorkflow(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WorkflowsTracingConnection::DeleteWorkflow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("workflows_v1::WorkflowsConnection::DeleteWorkflow"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteWorkflow(google::cloud::ExperimentalTag{}, operation)); +} + future> WorkflowsTracingConnection::UpdateWorkflow( google::cloud::workflows::v1::UpdateWorkflowRequest const& request) { @@ -80,6 +128,30 @@ WorkflowsTracingConnection::UpdateWorkflow( return internal::EndSpan(std::move(span), child_->UpdateWorkflow(request)); } +StatusOr +WorkflowsTracingConnection::UpdateWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::UpdateWorkflowRequest const& request) { + auto span = + internal::MakeSpan("workflows_v1::WorkflowsConnection::UpdateWorkflow"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateWorkflow(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WorkflowsTracingConnection::UpdateWorkflow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = + internal::MakeSpan("workflows_v1::WorkflowsConnection::UpdateWorkflow"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateWorkflow(google::cloud::ExperimentalTag{}, operation)); +} + #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY std::shared_ptr diff --git a/google/cloud/workflows/v1/internal/workflows_tracing_connection.h b/google/cloud/workflows/v1/internal/workflows_tracing_connection.h index 0477ad8ba1d1f..c1af7b9f3e87c 100644 --- a/google/cloud/workflows/v1/internal/workflows_tracing_connection.h +++ b/google/cloud/workflows/v1/internal/workflows_tracing_connection.h @@ -49,14 +49,41 @@ class WorkflowsTracingConnection : public workflows_v1::WorkflowsConnection { google::cloud::workflows::v1::CreateWorkflowRequest const& request) override; + StatusOr CreateWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::CreateWorkflowRequest const& request) + override; + + future> CreateWorkflow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteWorkflow(google::cloud::workflows::v1::DeleteWorkflowRequest const& request) override; + StatusOr DeleteWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::DeleteWorkflowRequest const& request) + override; + + future> + DeleteWorkflow(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateWorkflow( google::cloud::workflows::v1::UpdateWorkflowRequest const& request) override; + StatusOr UpdateWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::UpdateWorkflowRequest const& request) + override; + + future> UpdateWorkflow( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + private: std::shared_ptr child_; }; diff --git a/google/cloud/workflows/v1/mocks/mock_workflows_connection.h b/google/cloud/workflows/v1/mocks/mock_workflows_connection.h index cc1819e1f28b2..4968d46611a28 100644 --- a/google/cloud/workflows/v1/mocks/mock_workflows_connection.h +++ b/google/cloud/workflows/v1/mocks/mock_workflows_connection.h @@ -60,16 +60,52 @@ class MockWorkflowsConnection : public workflows_v1::WorkflowsConnection { (google::cloud::workflows::v1::CreateWorkflowRequest const& request), (override)); + MOCK_METHOD( + StatusOr, CreateWorkflow, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::CreateWorkflowRequest const& request), + (override)); + + MOCK_METHOD(future>, + CreateWorkflow, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteWorkflow, (google::cloud::workflows::v1::DeleteWorkflowRequest const& request), (override)); + MOCK_METHOD( + StatusOr, DeleteWorkflow, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::DeleteWorkflowRequest const& request), + (override)); + + MOCK_METHOD(future>, + DeleteWorkflow, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateWorkflow, (google::cloud::workflows::v1::UpdateWorkflowRequest const& request), (override)); + + MOCK_METHOD( + StatusOr, UpdateWorkflow, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::UpdateWorkflowRequest const& request), + (override)); + + MOCK_METHOD(future>, + UpdateWorkflow, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); }; GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END diff --git a/google/cloud/workflows/v1/workflows_connection.cc b/google/cloud/workflows/v1/workflows_connection.cc index 353bfc70614e0..6ed736f9e6c14 100644 --- a/google/cloud/workflows/v1/workflows_connection.cc +++ b/google/cloud/workflows/v1/workflows_connection.cc @@ -60,6 +60,21 @@ WorkflowsConnection::CreateWorkflow( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr WorkflowsConnection::CreateWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::CreateWorkflowRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WorkflowsConnection::CreateWorkflow(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> WorkflowsConnection::DeleteWorkflow( google::cloud::workflows::v1::DeleteWorkflowRequest const&) { @@ -68,6 +83,21 @@ WorkflowsConnection::DeleteWorkflow( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr WorkflowsConnection::DeleteWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::DeleteWorkflowRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WorkflowsConnection::DeleteWorkflow(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> WorkflowsConnection::UpdateWorkflow( google::cloud::workflows::v1::UpdateWorkflowRequest const&) { @@ -76,6 +106,21 @@ WorkflowsConnection::UpdateWorkflow( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr WorkflowsConnection::UpdateWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::UpdateWorkflowRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WorkflowsConnection::UpdateWorkflow(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + std::shared_ptr MakeWorkflowsConnection(Options options) { internal::CheckExpectedOptions CreateWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::CreateWorkflowRequest const& request); + + virtual future> + CreateWorkflow(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteWorkflow( google::cloud::workflows::v1::DeleteWorkflowRequest const& request); + virtual StatusOr DeleteWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::DeleteWorkflowRequest const& request); + + virtual future> + DeleteWorkflow(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateWorkflow( google::cloud::workflows::v1::UpdateWorkflowRequest const& request); + + virtual StatusOr UpdateWorkflow( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workflows::v1::UpdateWorkflowRequest const& request); + + virtual future> + UpdateWorkflow(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/workstations/v1/internal/workstations_connection_impl.cc b/google/cloud/workstations/v1/internal/workstations_connection_impl.cc index 6a021f44e9de6..6a43f5594dbc3 100644 --- a/google/cloud/workstations/v1/internal/workstations_connection_impl.cc +++ b/google/cloud/workstations/v1/internal/workstations_connection_impl.cc @@ -159,6 +159,61 @@ WorkstationsConnectionImpl::CreateWorkstationCluster( polling_policy(*current), __func__); } +StatusOr +WorkstationsConnectionImpl::CreateWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationClusterRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateWorkstationCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::workstations::v1:: + CreateWorkstationClusterRequest const& request) { + return stub_->CreateWorkstationCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +WorkstationsConnectionImpl::CreateWorkstationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateWorkstationCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::workstations::v1::WorkstationCluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::workstations::v1::WorkstationCluster>, + polling_policy(*current), __func__); +} + future> WorkstationsConnectionImpl::UpdateWorkstationCluster( google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& @@ -199,6 +254,61 @@ WorkstationsConnectionImpl::UpdateWorkstationCluster( polling_policy(*current), __func__); } +StatusOr +WorkstationsConnectionImpl::UpdateWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateWorkstationCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::workstations::v1:: + UpdateWorkstationClusterRequest const& request) { + return stub_->UpdateWorkstationCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +WorkstationsConnectionImpl::UpdateWorkstationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateWorkstationCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::workstations::v1::WorkstationCluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::workstations::v1::WorkstationCluster>, + polling_policy(*current), __func__); +} + future> WorkstationsConnectionImpl::DeleteWorkstationCluster( google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& @@ -239,6 +349,61 @@ WorkstationsConnectionImpl::DeleteWorkstationCluster( polling_policy(*current), __func__); } +StatusOr +WorkstationsConnectionImpl::DeleteWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteWorkstationCluster(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::workstations::v1:: + DeleteWorkstationClusterRequest const& request) { + return stub_->DeleteWorkstationCluster(context, options, request); + }, + *current, request, __func__); +} + +future> +WorkstationsConnectionImpl::DeleteWorkstationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteWorkstationCluster", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::workstations::v1::WorkstationCluster>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::workstations::v1::WorkstationCluster>, + polling_policy(*current), __func__); +} + StatusOr WorkstationsConnectionImpl::GetWorkstationConfig( google::cloud::workstations::v1::GetWorkstationConfigRequest const& @@ -371,6 +536,62 @@ WorkstationsConnectionImpl::CreateWorkstationConfig( polling_policy(*current), __func__); } +StatusOr +WorkstationsConnectionImpl::CreateWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateWorkstationConfig(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::workstations::v1::CreateWorkstationConfigRequest const& + request) { + return stub_->CreateWorkstationConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +WorkstationsConnectionImpl::CreateWorkstationConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateWorkstationConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::workstations::v1::WorkstationConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::workstations::v1::WorkstationConfig>, + polling_policy(*current), __func__); +} + future> WorkstationsConnectionImpl::UpdateWorkstationConfig( google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& @@ -412,6 +633,62 @@ WorkstationsConnectionImpl::UpdateWorkstationConfig( polling_policy(*current), __func__); } +StatusOr +WorkstationsConnectionImpl::UpdateWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateWorkstationConfig(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& + request) { + return stub_->UpdateWorkstationConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +WorkstationsConnectionImpl::UpdateWorkstationConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateWorkstationConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::workstations::v1::WorkstationConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::workstations::v1::WorkstationConfig>, + polling_policy(*current), __func__); +} + future> WorkstationsConnectionImpl::DeleteWorkstationConfig( google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& @@ -453,6 +730,62 @@ WorkstationsConnectionImpl::DeleteWorkstationConfig( polling_policy(*current), __func__); } +StatusOr +WorkstationsConnectionImpl::DeleteWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& + request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteWorkstationConfig(request), + [this]( + grpc::ClientContext& context, Options const& options, + google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& + request) { + return stub_->DeleteWorkstationConfig(context, options, request); + }, + *current, request, __func__); +} + +future> +WorkstationsConnectionImpl::DeleteWorkstationConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteWorkstationConfig", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::workstations::v1::WorkstationConfig>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::workstations::v1::WorkstationConfig>, + polling_policy(*current), __func__); +} + StatusOr WorkstationsConnectionImpl::GetWorkstation( google::cloud::workstations::v1::GetWorkstationRequest const& request) { @@ -579,6 +912,60 @@ WorkstationsConnectionImpl::CreateWorkstation( polling_policy(*current), __func__); } +StatusOr +WorkstationsConnectionImpl::CreateWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->CreateWorkstation(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::workstations::v1::CreateWorkstationRequest const& + request) { + return stub_->CreateWorkstation(context, options, request); + }, + *current, request, __func__); +} + +future> +WorkstationsConnectionImpl::CreateWorkstation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to CreateWorkstation", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::workstations::v1::Workstation>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::workstations::v1::Workstation>, + polling_policy(*current), __func__); +} + future> WorkstationsConnectionImpl::UpdateWorkstation( google::cloud::workstations::v1::UpdateWorkstationRequest const& request) { @@ -619,6 +1006,60 @@ WorkstationsConnectionImpl::UpdateWorkstation( polling_policy(*current), __func__); } +StatusOr +WorkstationsConnectionImpl::UpdateWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->UpdateWorkstation(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::workstations::v1::UpdateWorkstationRequest const& + request) { + return stub_->UpdateWorkstation(context, options, request); + }, + *current, request, __func__); +} + +future> +WorkstationsConnectionImpl::UpdateWorkstation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to UpdateWorkstation", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::workstations::v1::Workstation>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::workstations::v1::Workstation>, + polling_policy(*current), __func__); +} + future> WorkstationsConnectionImpl::DeleteWorkstation( google::cloud::workstations::v1::DeleteWorkstationRequest const& request) { @@ -659,6 +1100,60 @@ WorkstationsConnectionImpl::DeleteWorkstation( polling_policy(*current), __func__); } +StatusOr +WorkstationsConnectionImpl::DeleteWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->DeleteWorkstation(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::workstations::v1::DeleteWorkstationRequest const& + request) { + return stub_->DeleteWorkstation(context, options, request); + }, + *current, request, __func__); +} + +future> +WorkstationsConnectionImpl::DeleteWorkstation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to DeleteWorkstation", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::workstations::v1::Workstation>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::workstations::v1::Workstation>, + polling_policy(*current), __func__); +} + future> WorkstationsConnectionImpl::StartWorkstation( google::cloud::workstations::v1::StartWorkstationRequest const& request) { @@ -699,6 +1194,60 @@ WorkstationsConnectionImpl::StartWorkstation( polling_policy(*current), __func__); } +StatusOr +WorkstationsConnectionImpl::StartWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::StartWorkstationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StartWorkstation(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::workstations::v1::StartWorkstationRequest const& + request) { + return stub_->StartWorkstation(context, options, request); + }, + *current, request, __func__); +} + +future> +WorkstationsConnectionImpl::StartWorkstation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to StartWorkstation", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::workstations::v1::Workstation>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::workstations::v1::Workstation>, + polling_policy(*current), __func__); +} + future> WorkstationsConnectionImpl::StopWorkstation( google::cloud::workstations::v1::StopWorkstationRequest const& request) { @@ -739,6 +1288,60 @@ WorkstationsConnectionImpl::StopWorkstation( polling_policy(*current), __func__); } +StatusOr +WorkstationsConnectionImpl::StopWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::StopWorkstationRequest const& request) { + auto current = google::cloud::internal::SaveCurrentOptions(); + return google::cloud::internal::RetryLoop( + retry_policy(*current), backoff_policy(*current), + idempotency_policy(*current)->StopWorkstation(request), + [this](grpc::ClientContext& context, Options const& options, + google::cloud::workstations::v1::StopWorkstationRequest const& + request) { + return stub_->StopWorkstation(context, options, request); + }, + *current, request, __func__); +} + +future> +WorkstationsConnectionImpl::StopWorkstation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto current = google::cloud::internal::SaveCurrentOptions(); + if (!operation.metadata() + .Is()) { + return make_ready_future< + StatusOr>( + internal::InvalidArgumentError( + "operation does not correspond to StopWorkstation", + GCP_ERROR_INFO().WithMetadata("operation", + operation.metadata().DebugString()))); + } + + return google::cloud::internal::AsyncAwaitLongRunningOperation< + google::cloud::workstations::v1::Workstation>( + background_->cq(), current, operation, + [stub = stub_](google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::GetOperationRequest const& request) { + return stub->AsyncGetOperation(cq, std::move(context), + std::move(options), request); + }, + [stub = stub_]( + google::cloud::CompletionQueue& cq, + std::shared_ptr context, + google::cloud::internal::ImmutableOptions options, + google::longrunning::CancelOperationRequest const& request) { + return stub->AsyncCancelOperation(cq, std::move(context), + std::move(options), request); + }, + &google::cloud::internal::ExtractLongRunningResultResponse< + google::cloud::workstations::v1::Workstation>, + polling_policy(*current), __func__); +} + StatusOr WorkstationsConnectionImpl::GenerateAccessToken( google::cloud::workstations::v1::GenerateAccessTokenRequest const& diff --git a/google/cloud/workstations/v1/internal/workstations_connection_impl.h b/google/cloud/workstations/v1/internal/workstations_connection_impl.h index 318dddf785f43..b7aa918cd1c1b 100644 --- a/google/cloud/workstations/v1/internal/workstations_connection_impl.h +++ b/google/cloud/workstations/v1/internal/workstations_connection_impl.h @@ -67,16 +67,46 @@ class WorkstationsConnectionImpl google::cloud::workstations::v1::CreateWorkstationClusterRequest const& request) override; + StatusOr CreateWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationClusterRequest const& + request) override; + + future> + CreateWorkstationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateWorkstationCluster( google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& request) override; + StatusOr UpdateWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& + request) override; + + future> + UpdateWorkstationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteWorkstationCluster( google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& request) override; + StatusOr DeleteWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& + request) override; + + future> + DeleteWorkstationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetWorkstationConfig( google::cloud::workstations::v1::GetWorkstationConfigRequest const& @@ -97,16 +127,46 @@ class WorkstationsConnectionImpl google::cloud::workstations::v1::CreateWorkstationConfigRequest const& request) override; + StatusOr CreateWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationConfigRequest const& + request) override; + + future> + CreateWorkstationConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateWorkstationConfig( google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& request) override; + StatusOr UpdateWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& + request) override; + + future> + UpdateWorkstationConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteWorkstationConfig( google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& request) override; + StatusOr DeleteWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& + request) override; + + future> + DeleteWorkstationConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetWorkstation( google::cloud::workstations::v1::GetWorkstationRequest const& request) override; @@ -125,25 +185,70 @@ class WorkstationsConnectionImpl google::cloud::workstations::v1::CreateWorkstationRequest const& request) override; + StatusOr CreateWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationRequest const& request) + override; + + future> + CreateWorkstation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateWorkstation( google::cloud::workstations::v1::UpdateWorkstationRequest const& request) override; + StatusOr UpdateWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationRequest const& request) + override; + + future> + UpdateWorkstation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteWorkstation( google::cloud::workstations::v1::DeleteWorkstationRequest const& request) override; + StatusOr DeleteWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationRequest const& request) + override; + + future> + DeleteWorkstation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartWorkstation( google::cloud::workstations::v1::StartWorkstationRequest const& request) override; + StatusOr StartWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::StartWorkstationRequest const& request) + override; + + future> + StartWorkstation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopWorkstation(google::cloud::workstations::v1::StopWorkstationRequest const& request) override; + StatusOr StopWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::StopWorkstationRequest const& request) + override; + + future> + StopWorkstation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GenerateAccessToken( google::cloud::workstations::v1::GenerateAccessTokenRequest const& diff --git a/google/cloud/workstations/v1/internal/workstations_tracing_connection.cc b/google/cloud/workstations/v1/internal/workstations_tracing_connection.cc index 516e85d9cdacb..20d30e82197aa 100644 --- a/google/cloud/workstations/v1/internal/workstations_tracing_connection.cc +++ b/google/cloud/workstations/v1/internal/workstations_tracing_connection.cc @@ -66,6 +66,31 @@ WorkstationsTracingConnection::CreateWorkstationCluster( child_->CreateWorkstationCluster(request)); } +StatusOr +WorkstationsTracingConnection::CreateWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationClusterRequest const& + request) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::CreateWorkstationCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateWorkstationCluster( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WorkstationsTracingConnection::CreateWorkstationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::CreateWorkstationCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateWorkstationCluster( + google::cloud::ExperimentalTag{}, operation)); +} + future> WorkstationsTracingConnection::UpdateWorkstationCluster( google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& @@ -77,6 +102,31 @@ WorkstationsTracingConnection::UpdateWorkstationCluster( child_->UpdateWorkstationCluster(request)); } +StatusOr +WorkstationsTracingConnection::UpdateWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& + request) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::UpdateWorkstationCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateWorkstationCluster( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WorkstationsTracingConnection::UpdateWorkstationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::UpdateWorkstationCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateWorkstationCluster( + google::cloud::ExperimentalTag{}, operation)); +} + future> WorkstationsTracingConnection::DeleteWorkstationCluster( google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& @@ -88,6 +138,31 @@ WorkstationsTracingConnection::DeleteWorkstationCluster( child_->DeleteWorkstationCluster(request)); } +StatusOr +WorkstationsTracingConnection::DeleteWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& + request) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::DeleteWorkstationCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteWorkstationCluster( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WorkstationsTracingConnection::DeleteWorkstationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::DeleteWorkstationCluster"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteWorkstationCluster( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr WorkstationsTracingConnection::GetWorkstationConfig( google::cloud::workstations::v1::GetWorkstationConfigRequest const& @@ -134,6 +209,31 @@ WorkstationsTracingConnection::CreateWorkstationConfig( child_->CreateWorkstationConfig(request)); } +StatusOr +WorkstationsTracingConnection::CreateWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationConfigRequest const& + request) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::CreateWorkstationConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->CreateWorkstationConfig( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WorkstationsTracingConnection::CreateWorkstationConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::CreateWorkstationConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->CreateWorkstationConfig( + google::cloud::ExperimentalTag{}, operation)); +} + future> WorkstationsTracingConnection::UpdateWorkstationConfig( google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& @@ -145,6 +245,31 @@ WorkstationsTracingConnection::UpdateWorkstationConfig( child_->UpdateWorkstationConfig(request)); } +StatusOr +WorkstationsTracingConnection::UpdateWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& + request) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::UpdateWorkstationConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->UpdateWorkstationConfig( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WorkstationsTracingConnection::UpdateWorkstationConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::UpdateWorkstationConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->UpdateWorkstationConfig( + google::cloud::ExperimentalTag{}, operation)); +} + future> WorkstationsTracingConnection::DeleteWorkstationConfig( google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& @@ -156,6 +281,31 @@ WorkstationsTracingConnection::DeleteWorkstationConfig( child_->DeleteWorkstationConfig(request)); } +StatusOr +WorkstationsTracingConnection::DeleteWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& + request) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::DeleteWorkstationConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(*span, child_->DeleteWorkstationConfig( + google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WorkstationsTracingConnection::DeleteWorkstationConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::DeleteWorkstationConfig"); + internal::OTelScope scope(span); + return internal::EndSpan(std::move(span), + child_->DeleteWorkstationConfig( + google::cloud::ExperimentalTag{}, operation)); +} + StatusOr WorkstationsTracingConnection::GetWorkstation( google::cloud::workstations::v1::GetWorkstationRequest const& request) { @@ -198,6 +348,30 @@ WorkstationsTracingConnection::CreateWorkstation( return internal::EndSpan(std::move(span), child_->CreateWorkstation(request)); } +StatusOr +WorkstationsTracingConnection::CreateWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationRequest const& request) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::CreateWorkstation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->CreateWorkstation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WorkstationsTracingConnection::CreateWorkstation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::CreateWorkstation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->CreateWorkstation(google::cloud::ExperimentalTag{}, operation)); +} + future> WorkstationsTracingConnection::UpdateWorkstation( google::cloud::workstations::v1::UpdateWorkstationRequest const& request) { @@ -207,6 +381,30 @@ WorkstationsTracingConnection::UpdateWorkstation( return internal::EndSpan(std::move(span), child_->UpdateWorkstation(request)); } +StatusOr +WorkstationsTracingConnection::UpdateWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationRequest const& request) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::UpdateWorkstation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->UpdateWorkstation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WorkstationsTracingConnection::UpdateWorkstation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::UpdateWorkstation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->UpdateWorkstation(google::cloud::ExperimentalTag{}, operation)); +} + future> WorkstationsTracingConnection::DeleteWorkstation( google::cloud::workstations::v1::DeleteWorkstationRequest const& request) { @@ -216,6 +414,30 @@ WorkstationsTracingConnection::DeleteWorkstation( return internal::EndSpan(std::move(span), child_->DeleteWorkstation(request)); } +StatusOr +WorkstationsTracingConnection::DeleteWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationRequest const& request) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::DeleteWorkstation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->DeleteWorkstation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WorkstationsTracingConnection::DeleteWorkstation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::DeleteWorkstation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->DeleteWorkstation(google::cloud::ExperimentalTag{}, operation)); +} + future> WorkstationsTracingConnection::StartWorkstation( google::cloud::workstations::v1::StartWorkstationRequest const& request) { @@ -225,6 +447,30 @@ WorkstationsTracingConnection::StartWorkstation( return internal::EndSpan(std::move(span), child_->StartWorkstation(request)); } +StatusOr +WorkstationsTracingConnection::StartWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::StartWorkstationRequest const& request) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::StartWorkstation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StartWorkstation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WorkstationsTracingConnection::StartWorkstation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::StartWorkstation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StartWorkstation(google::cloud::ExperimentalTag{}, operation)); +} + future> WorkstationsTracingConnection::StopWorkstation( google::cloud::workstations::v1::StopWorkstationRequest const& request) { @@ -234,6 +480,30 @@ WorkstationsTracingConnection::StopWorkstation( return internal::EndSpan(std::move(span), child_->StopWorkstation(request)); } +StatusOr +WorkstationsTracingConnection::StopWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::StopWorkstationRequest const& request) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::StopWorkstation"); + internal::OTelScope scope(span); + return internal::EndSpan( + *span, child_->StopWorkstation(google::cloud::ExperimentalTag{}, + google::cloud::NoAwaitTag{}, request)); +} + +future> +WorkstationsTracingConnection::StopWorkstation( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) { + auto span = internal::MakeSpan( + "workstations_v1::WorkstationsConnection::StopWorkstation"); + internal::OTelScope scope(span); + return internal::EndSpan( + std::move(span), + child_->StopWorkstation(google::cloud::ExperimentalTag{}, operation)); +} + StatusOr WorkstationsTracingConnection::GenerateAccessToken( google::cloud::workstations::v1::GenerateAccessTokenRequest const& diff --git a/google/cloud/workstations/v1/internal/workstations_tracing_connection.h b/google/cloud/workstations/v1/internal/workstations_tracing_connection.h index 19959cc2c4589..aea2a9afddbae 100644 --- a/google/cloud/workstations/v1/internal/workstations_tracing_connection.h +++ b/google/cloud/workstations/v1/internal/workstations_tracing_connection.h @@ -55,16 +55,46 @@ class WorkstationsTracingConnection google::cloud::workstations::v1::CreateWorkstationClusterRequest const& request) override; + StatusOr CreateWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationClusterRequest const& + request) override; + + future> + CreateWorkstationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateWorkstationCluster( google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& request) override; + StatusOr UpdateWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& + request) override; + + future> + UpdateWorkstationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteWorkstationCluster( google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& request) override; + StatusOr DeleteWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& + request) override; + + future> + DeleteWorkstationCluster( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetWorkstationConfig( google::cloud::workstations::v1::GetWorkstationConfigRequest const& @@ -85,16 +115,46 @@ class WorkstationsTracingConnection google::cloud::workstations::v1::CreateWorkstationConfigRequest const& request) override; + StatusOr CreateWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationConfigRequest const& + request) override; + + future> + CreateWorkstationConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateWorkstationConfig( google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& request) override; + StatusOr UpdateWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& + request) override; + + future> + UpdateWorkstationConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteWorkstationConfig( google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& request) override; + StatusOr DeleteWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& + request) override; + + future> + DeleteWorkstationConfig( + google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GetWorkstation( google::cloud::workstations::v1::GetWorkstationRequest const& request) override; @@ -113,25 +173,70 @@ class WorkstationsTracingConnection google::cloud::workstations::v1::CreateWorkstationRequest const& request) override; + StatusOr CreateWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationRequest const& request) + override; + + future> + CreateWorkstation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> UpdateWorkstation( google::cloud::workstations::v1::UpdateWorkstationRequest const& request) override; + StatusOr UpdateWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationRequest const& request) + override; + + future> + UpdateWorkstation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> DeleteWorkstation( google::cloud::workstations::v1::DeleteWorkstationRequest const& request) override; + StatusOr DeleteWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationRequest const& request) + override; + + future> + DeleteWorkstation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StartWorkstation( google::cloud::workstations::v1::StartWorkstationRequest const& request) override; + StatusOr StartWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::StartWorkstationRequest const& request) + override; + + future> + StartWorkstation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + future> StopWorkstation(google::cloud::workstations::v1::StopWorkstationRequest const& request) override; + StatusOr StopWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::StopWorkstationRequest const& request) + override; + + future> + StopWorkstation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation) override; + StatusOr GenerateAccessToken( google::cloud::workstations::v1::GenerateAccessTokenRequest const& diff --git a/google/cloud/workstations/v1/mocks/mock_workstations_connection.h b/google/cloud/workstations/v1/mocks/mock_workstations_connection.h index 818d4dfacdaca..7271702e7bc49 100644 --- a/google/cloud/workstations/v1/mocks/mock_workstations_connection.h +++ b/google/cloud/workstations/v1/mocks/mock_workstations_connection.h @@ -67,6 +67,20 @@ class MockWorkstationsConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateWorkstationCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationClusterRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateWorkstationCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateWorkstationCluster, @@ -74,6 +88,20 @@ class MockWorkstationsConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateWorkstationCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateWorkstationCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteWorkstationCluster, @@ -81,6 +109,20 @@ class MockWorkstationsConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteWorkstationCluster, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteWorkstationCluster, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetWorkstationConfig, @@ -108,6 +150,20 @@ class MockWorkstationsConnection request), (override)); + MOCK_METHOD( + StatusOr, CreateWorkstationConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationConfigRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + CreateWorkstationConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, UpdateWorkstationConfig, @@ -115,6 +171,20 @@ class MockWorkstationsConnection request), (override)); + MOCK_METHOD( + StatusOr, UpdateWorkstationConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + UpdateWorkstationConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, DeleteWorkstationConfig, @@ -122,6 +192,20 @@ class MockWorkstationsConnection request), (override)); + MOCK_METHOD( + StatusOr, DeleteWorkstationConfig, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& + request), + (override)); + + MOCK_METHOD( + future>, + DeleteWorkstationConfig, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GetWorkstation, (google::cloud::workstations::v1::GetWorkstationRequest const& request), @@ -145,30 +229,90 @@ class MockWorkstationsConnection request), (override)); + MOCK_METHOD(StatusOr, CreateWorkstation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationRequest const& + request), + (override)); + + MOCK_METHOD(future>, + CreateWorkstation, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, UpdateWorkstation, (google::cloud::workstations::v1::UpdateWorkstationRequest const& request), (override)); + MOCK_METHOD(StatusOr, UpdateWorkstation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationRequest const& + request), + (override)); + + MOCK_METHOD(future>, + UpdateWorkstation, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD(future>, DeleteWorkstation, (google::cloud::workstations::v1::DeleteWorkstationRequest const& request), (override)); + MOCK_METHOD(StatusOr, DeleteWorkstation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationRequest const& + request), + (override)); + + MOCK_METHOD(future>, + DeleteWorkstation, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, StartWorkstation, (google::cloud::workstations::v1::StartWorkstationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, StartWorkstation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::StartWorkstationRequest const& request), + (override)); + + MOCK_METHOD(future>, + StartWorkstation, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( future>, StopWorkstation, (google::cloud::workstations::v1::StopWorkstationRequest const& request), (override)); + MOCK_METHOD( + StatusOr, StopWorkstation, + (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::StopWorkstationRequest const& request), + (override)); + + MOCK_METHOD(future>, + StopWorkstation, + (google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation), + (override)); + MOCK_METHOD( StatusOr, GenerateAccessToken, diff --git a/google/cloud/workstations/v1/workstations_connection.cc b/google/cloud/workstations/v1/workstations_connection.cc index a0b25ef95207d..a6ac340881fa0 100644 --- a/google/cloud/workstations/v1/workstations_connection.cc +++ b/google/cloud/workstations/v1/workstations_connection.cc @@ -60,6 +60,22 @@ WorkstationsConnection::CreateWorkstationCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +WorkstationsConnection::CreateWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WorkstationsConnection::CreateWorkstationCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> WorkstationsConnection::UpdateWorkstationCluster( google::cloud::workstations::v1::UpdateWorkstationClusterRequest const&) { @@ -68,9 +84,41 @@ WorkstationsConnection::UpdateWorkstationCluster( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +WorkstationsConnection::UpdateWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +WorkstationsConnection::UpdateWorkstationCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WorkstationsConnection::DeleteWorkstationCluster( + google::cloud::workstations::v1::DeleteWorkstationClusterRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr WorkstationsConnection::DeleteWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationClusterRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WorkstationsConnection::DeleteWorkstationCluster( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -106,6 +154,22 @@ WorkstationsConnection::CreateWorkstationConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +WorkstationsConnection::CreateWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WorkstationsConnection::CreateWorkstationConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> WorkstationsConnection::UpdateWorkstationConfig( google::cloud::workstations::v1::UpdateWorkstationConfigRequest const&) { @@ -114,6 +178,22 @@ WorkstationsConnection::UpdateWorkstationConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +WorkstationsConnection::UpdateWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WorkstationsConnection::UpdateWorkstationConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> WorkstationsConnection::DeleteWorkstationConfig( google::cloud::workstations::v1::DeleteWorkstationConfigRequest const&) { @@ -122,6 +202,22 @@ WorkstationsConnection::DeleteWorkstationConfig( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +WorkstationsConnection::DeleteWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationConfigRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WorkstationsConnection::DeleteWorkstationConfig( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr WorkstationsConnection::GetWorkstation( google::cloud::workstations::v1::GetWorkstationRequest const&) { @@ -152,9 +248,41 @@ WorkstationsConnection::CreateWorkstation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +WorkstationsConnection::CreateWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> +WorkstationsConnection::CreateWorkstation( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WorkstationsConnection::UpdateWorkstation( + google::cloud::workstations::v1::UpdateWorkstationRequest const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +StatusOr WorkstationsConnection::UpdateWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WorkstationsConnection::UpdateWorkstation( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -168,6 +296,22 @@ WorkstationsConnection::DeleteWorkstation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +WorkstationsConnection::DeleteWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WorkstationsConnection::DeleteWorkstation( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> WorkstationsConnection::StartWorkstation( google::cloud::workstations::v1::StartWorkstationRequest const&) { @@ -176,6 +320,22 @@ WorkstationsConnection::StartWorkstation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +WorkstationsConnection::StartWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::StartWorkstationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WorkstationsConnection::StartWorkstation( + google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + future> WorkstationsConnection::StopWorkstation( google::cloud::workstations::v1::StopWorkstationRequest const&) { @@ -184,6 +344,22 @@ WorkstationsConnection::StopWorkstation( Status(StatusCode::kUnimplemented, "not implemented")); } +StatusOr +WorkstationsConnection::StopWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::StopWorkstationRequest const&) { + return StatusOr( + Status(StatusCode::kUnimplemented, "not implemented")); +} + +future> +WorkstationsConnection::StopWorkstation(google::cloud::ExperimentalTag, + google::longrunning::Operation const&) { + return google::cloud::make_ready_future< + StatusOr>( + Status(StatusCode::kUnimplemented, "not implemented")); +} + StatusOr WorkstationsConnection::GenerateAccessToken( google::cloud::workstations::v1::GenerateAccessTokenRequest const&) { diff --git a/google/cloud/workstations/v1/workstations_connection.h b/google/cloud/workstations/v1/workstations_connection.h index b304506f4ae71..50d3910aca9ab 100644 --- a/google/cloud/workstations/v1/workstations_connection.h +++ b/google/cloud/workstations/v1/workstations_connection.h @@ -21,7 +21,9 @@ #include "google/cloud/workstations/v1/internal/workstations_retry_traits.h" #include "google/cloud/workstations/v1/workstations_connection_idempotency_policy.h" +#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" +#include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" #include "google/cloud/options.h" @@ -199,16 +201,43 @@ class WorkstationsConnection { google::cloud::workstations::v1::CreateWorkstationClusterRequest const& request); + virtual StatusOr CreateWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationClusterRequest const& + request); + + virtual future> + CreateWorkstationCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateWorkstationCluster( google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& request); + virtual StatusOr UpdateWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& + request); + + virtual future> + UpdateWorkstationCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteWorkstationCluster( google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& request); + virtual StatusOr DeleteWorkstationCluster( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& + request); + + virtual future> + DeleteWorkstationCluster(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetWorkstationConfig( google::cloud::workstations::v1::GetWorkstationConfigRequest const& @@ -228,16 +257,43 @@ class WorkstationsConnection { google::cloud::workstations::v1::CreateWorkstationConfigRequest const& request); + virtual StatusOr CreateWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationConfigRequest const& + request); + + virtual future> + CreateWorkstationConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateWorkstationConfig( google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& request); + virtual StatusOr UpdateWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& + request); + + virtual future> + UpdateWorkstationConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteWorkstationConfig( google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& request); + virtual StatusOr DeleteWorkstationConfig( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& + request); + + virtual future> + DeleteWorkstationConfig(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GetWorkstation( google::cloud::workstations::v1::GetWorkstationRequest const& request); @@ -253,22 +309,62 @@ class WorkstationsConnection { CreateWorkstation( google::cloud::workstations::v1::CreateWorkstationRequest const& request); + virtual StatusOr CreateWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::CreateWorkstationRequest const& request); + + virtual future> + CreateWorkstation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> UpdateWorkstation( google::cloud::workstations::v1::UpdateWorkstationRequest const& request); + virtual StatusOr UpdateWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::UpdateWorkstationRequest const& request); + + virtual future> + UpdateWorkstation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> DeleteWorkstation( google::cloud::workstations::v1::DeleteWorkstationRequest const& request); + virtual StatusOr DeleteWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::DeleteWorkstationRequest const& request); + + virtual future> + DeleteWorkstation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StartWorkstation( google::cloud::workstations::v1::StartWorkstationRequest const& request); + virtual StatusOr StartWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::StartWorkstationRequest const& request); + + virtual future> + StartWorkstation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual future> StopWorkstation( google::cloud::workstations::v1::StopWorkstationRequest const& request); + virtual StatusOr StopWorkstation( + google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + google::cloud::workstations::v1::StopWorkstationRequest const& request); + + virtual future> + StopWorkstation(google::cloud::ExperimentalTag, + google::longrunning::Operation const& operation); + virtual StatusOr GenerateAccessToken( google::cloud::workstations::v1::GenerateAccessTokenRequest const& From db98618f1a03adcf168e6dad574b3a62de55d40e Mon Sep 17 00:00:00 2001 From: Scott Hart Date: Tue, 25 Jun 2024 12:18:12 -0400 Subject: [PATCH 06/11] address review comments --- ...den_thing_admin_tracing_connection_test.cc | 1 - generator/internal/connection_generator.cc | 20 +++++++++---------- .../internal/connection_impl_generator.cc | 4 ++-- .../connection_impl_rest_generator.cc | 16 +++++++-------- .../internal/tracing_connection_generator.cc | 2 +- google/cloud/google_cloud_cpp_common.bzl | 2 +- google/cloud/google_cloud_cpp_common.cmake | 2 +- google/cloud/{await_tag.h => no_await_tag.h} | 6 +++--- 8 files changed, 26 insertions(+), 27 deletions(-) rename google/cloud/{await_tag.h => no_await_tag.h} (85%) diff --git a/generator/integration_tests/tests/golden_thing_admin_tracing_connection_test.cc b/generator/integration_tests/tests/golden_thing_admin_tracing_connection_test.cc index fc8645e1d396b..76a53bbe7764f 100644 --- a/generator/integration_tests/tests/golden_thing_admin_tracing_connection_test.cc +++ b/generator/integration_tests/tests/golden_thing_admin_tracing_connection_test.cc @@ -128,7 +128,6 @@ TEST(GoldenThingAdminTracingConnectionTest, CreateDatabaseStart) { auto mock = std::make_shared(); EXPECT_CALL(*mock, CreateDatabase(_, _, _)).WillOnce([] { EXPECT_TRUE(ThereIsAnActiveSpan()); - EXPECT_TRUE(OTelContextCaptured()); return StatusOr( internal::AbortedError("fail")); }); diff --git a/generator/internal/connection_generator.cc b/generator/internal/connection_generator.cc index c7ee4cb21089e..f528e5643716c 100644 --- a/generator/internal/connection_generator.cc +++ b/generator/internal/connection_generator.cc @@ -52,7 +52,7 @@ Status ConnectionGenerator::GenerateHeader() { HeaderPrint("\n"); HeaderLocalIncludes( {vars("idempotency_policy_header_path"), vars("retry_traits_header_path"), - "google/cloud/await_tag.h", + HasLongrunningMethod() ? "google/cloud/no_await_tag.h" : "", // TODO(#14344): Remove experimental tag. "google/cloud/experimental_tag.h", "google/cloud/backoff_policy.h", HasLongrunningMethod() || HasAsyncMethod() ? "google/cloud/future.h" @@ -261,15 +261,15 @@ class $connection_class_name$ { " virtual StatusOr<$longrunning_operation_type$>\n"}, // clang-format on // TODO(#14344): Remove experimental tag. - {" $method_name$(google::cloud::ExperimentalTag, " - "google::cloud::NoAwaitTag," + {" $method_name$(ExperimentalTag, " + "NoAwaitTag," " $request_type$ const& request);\n\n"}, {IsResponseTypeEmpty, // clang-format off " virtual future\n", " virtual future>\n"}, // TODO(#14344): Remove experimental tag. - {" $method_name$(google::cloud::ExperimentalTag," + {" $method_name$(ExperimentalTag," " $longrunning_operation_type$ const& operation);\n"} // clang-format on }, @@ -407,11 +407,11 @@ std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< {"\n"}, {IsResponseTypeEmpty, // clang-format off - " Status\n", - " StatusOr<$longrunning_operation_type$>\n"}, + "Status\n", + "StatusOr<$longrunning_operation_type$>\n"}, // TODO(#14344): Remove experimental tag. {"$connection_class_name$::$method_name$(\n" - " google::cloud::ExperimentalTag, google::cloud::NoAwaitTag,\n" + " ExperimentalTag, NoAwaitTag,\n" " $request_type$ const&) {\n" " return StatusOr<$longrunning_operation_type$>(\n" " Status(StatusCode::kUnimplemented, \"not implemented\"));\n" @@ -421,11 +421,11 @@ std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< {"\n"}, {IsResponseTypeEmpty, // clang-format off - " future\n", - " future>\n"}, + "future\n", + "future>\n"}, // TODO(#14344): Remove experimental tag. {"$connection_class_name$::$method_name$(\n" - " google::cloud::ExperimentalTag, $longrunning_operation_type$ const&) {\n" + " ExperimentalTag, $longrunning_operation_type$ const&) {\n" " return google::cloud::make_ready_future<\n" " StatusOr<$longrunning_deduced_response_type$>>(\n" " Status(StatusCode::kUnimplemented, \"not implemented\"));\n" diff --git a/generator/internal/connection_impl_generator.cc b/generator/internal/connection_impl_generator.cc index bdeb783c3118c..fa700d2339296 100644 --- a/generator/internal/connection_impl_generator.cc +++ b/generator/internal/connection_impl_generator.cc @@ -489,7 +489,7 @@ StreamRange<$range_output_type$> // TODO(#14344): Remove experimental tag. std::string start_function = - absl::StrCat("\n", "StatusOr<$longrunning_operation_type$>", R"""( + absl::StrCat("StatusOr<$longrunning_operation_type$>", R"""( $connection_class_name$Impl::$method_name$(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, $request_type$ const& request) { auto current = google::cloud::internal::SaveCurrentOptions();)""", @@ -508,7 +508,7 @@ StreamRange<$range_output_type$> // TODO(#14344): Remove experimental tag. std::string await_function = - absl::StrCat("\n", return_fragment, R"""( + absl::StrCat(return_fragment, R"""( $connection_class_name$Impl::$method_name$(google::cloud::ExperimentalTag, $longrunning_operation_type$ const& operation) { auto current = google::cloud::internal::SaveCurrentOptions();)""", diff --git a/generator/internal/connection_impl_rest_generator.cc b/generator/internal/connection_impl_rest_generator.cc index 6fd50aad2e076..a3de867ac916a 100644 --- a/generator/internal/connection_impl_rest_generator.cc +++ b/generator/internal/connection_impl_rest_generator.cc @@ -213,11 +213,11 @@ std::string ConnectionImplRestGenerator::MethodDeclaration( $method_name$($request_type$ const& request) override; StatusOr<$longrunning_operation_type$> - $method_name$(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + $method_name$(ExperimentalTag, NoAwaitTag, $request_type$ const& request) override; future - $method_name$(google::cloud::ExperimentalTag, + $method_name$(ExperimentalTag, $longrunning_operation_type$ const& operation) override; )"""); @@ -227,11 +227,11 @@ std::string ConnectionImplRestGenerator::MethodDeclaration( $method_name$($request_type$ const& request) override; StatusOr<$longrunning_operation_type$> - $method_name$(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + $method_name$(ExperimentalTag, NoAwaitTag, $request_type$ const& request) override; future> - $method_name$(google::cloud::ExperimentalTag, + $method_name$(ExperimentalTag, $longrunning_operation_type$ const& operation) override; )"""); } @@ -434,9 +434,9 @@ StreamRange<$range_output_type$> // TODO(#14344): Remove experimental tag. std::string start_function = - absl::StrCat("\n", "StatusOr<$longrunning_operation_type$>", + absl::StrCat("StatusOr<$longrunning_operation_type$>", R"""( -$connection_impl_rest_class_name$::$method_name$(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, $request_type$ const& request) { +$connection_impl_rest_class_name$::$method_name$(ExperimentalTag, NoAwaitTag, $request_type$ const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( retry_policy(*current), backoff_policy(*current), @@ -467,9 +467,9 @@ StreamRange<$range_output_type$> // TODO(#14344): Remove experimental tag. std::string await_function = absl::StrCat( - "\n", return_fragment, + return_fragment, R"""( -$connection_impl_rest_class_name$::$method_name$(google::cloud::ExperimentalTag, +$connection_impl_rest_class_name$::$method_name$(ExperimentalTag, $longrunning_operation_type$ const& operation) { auto current = google::cloud::internal::SaveCurrentOptions();)""", operation_check_fragment, diff --git a/generator/internal/tracing_connection_generator.cc b/generator/internal/tracing_connection_generator.cc index 380755f9a0533..1b5f8d61e9009 100644 --- a/generator/internal/tracing_connection_generator.cc +++ b/generator/internal/tracing_connection_generator.cc @@ -324,7 +324,7 @@ StatusOr<$longrunning_operation_type$>)""", google::cloud::NoAwaitTag, $request_type$ const& request) { auto span = internal::MakeSpan( "$product_namespace$::$connection_class_name$::$method_name$"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->$method_name$( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); } diff --git a/google/cloud/google_cloud_cpp_common.bzl b/google/cloud/google_cloud_cpp_common.bzl index 881a0607ed7e0..6a80a7bacce39 100644 --- a/google/cloud/google_cloud_cpp_common.bzl +++ b/google/cloud/google_cloud_cpp_common.bzl @@ -18,7 +18,6 @@ google_cloud_cpp_common_hdrs = [ "access_token.h", - "await_tag.h", "backoff_policy.h", "common_options.h", "credentials.h", @@ -98,6 +97,7 @@ google_cloud_cpp_common_hdrs = [ "kms_key_name.h", "location.h", "log.h", + "no_await_tag.h", "opentelemetry_options.h", "optional.h", "options.h", diff --git a/google/cloud/google_cloud_cpp_common.cmake b/google/cloud/google_cloud_cpp_common.cmake index e2170894b1892..09f3854b53a17 100644 --- a/google/cloud/google_cloud_cpp_common.cmake +++ b/google/cloud/google_cloud_cpp_common.cmake @@ -33,7 +33,6 @@ add_library( ${CMAKE_CURRENT_BINARY_DIR}/internal/build_info.cc access_token.cc access_token.h - await_tag.h backoff_policy.h common_options.h credentials.cc @@ -155,6 +154,7 @@ add_library( location.h log.cc log.h + no_await_tag.h opentelemetry_options.h optional.h options.cc diff --git a/google/cloud/await_tag.h b/google/cloud/no_await_tag.h similarity index 85% rename from google/cloud/await_tag.h rename to google/cloud/no_await_tag.h index 9b224e45de0a5..24c05c44ca109 100644 --- a/google/cloud/await_tag.h +++ b/google/cloud/no_await_tag.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_AWAIT_TAG_H -#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_AWAIT_TAG_H +#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_NO_AWAIT_TAG_H +#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_NO_AWAIT_TAG_H #include "google/cloud/version.h" @@ -29,4 +29,4 @@ GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace cloud } // namespace google -#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_AWAIT_TAG_H +#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_NO_AWAIT_TAG_H From ff50279fe92890504397622900895170311ad8f6 Mon Sep 17 00:00:00 2001 From: Scott Hart Date: Tue, 25 Jun 2024 12:18:38 -0400 Subject: [PATCH 07/11] regenerated golden files --- .../v1/golden_kitchen_sink_connection.h | 1 - .../golden/v1/golden_rest_only_connection.h | 1 - .../v1/golden_thing_admin_connection.cc | 40 +++++++++---------- .../golden/v1/golden_thing_admin_connection.h | 22 +++++----- .../golden_thing_admin_connection_impl.cc | 10 ----- ...golden_thing_admin_rest_connection_impl.cc | 24 ++++------- .../golden_thing_admin_rest_connection_impl.h | 16 ++++---- .../golden_thing_admin_tracing_connection.cc | 10 ++--- .../v1/internal/request_id_connection_impl.cc | 2 - .../internal/request_id_tracing_connection.cc | 2 +- .../golden/v1/request_id_connection.cc | 8 ++-- .../golden/v1/request_id_connection.h | 6 +-- 12 files changed, 60 insertions(+), 82 deletions(-) diff --git a/generator/integration_tests/golden/v1/golden_kitchen_sink_connection.h b/generator/integration_tests/golden/v1/golden_kitchen_sink_connection.h index a194b47ae3a57..b48ce0bd351a5 100644 --- a/generator/integration_tests/golden/v1/golden_kitchen_sink_connection.h +++ b/generator/integration_tests/golden/v1/golden_kitchen_sink_connection.h @@ -21,7 +21,6 @@ #include "generator/integration_tests/golden/v1/golden_kitchen_sink_connection_idempotency_policy.h" #include "generator/integration_tests/golden/v1/internal/golden_kitchen_sink_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" diff --git a/generator/integration_tests/golden/v1/golden_rest_only_connection.h b/generator/integration_tests/golden/v1/golden_rest_only_connection.h index 7f9f326986050..1353d9ab811b6 100644 --- a/generator/integration_tests/golden/v1/golden_rest_only_connection.h +++ b/generator/integration_tests/golden/v1/golden_rest_only_connection.h @@ -21,7 +21,6 @@ #include "generator/integration_tests/golden/v1/golden_rest_only_connection_idempotency_policy.h" #include "generator/integration_tests/golden/v1/internal/golden_rest_only_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/generator/integration_tests/golden/v1/golden_thing_admin_connection.cc b/generator/integration_tests/golden/v1/golden_thing_admin_connection.cc index 08121d3dbaad3..9f2126dbada51 100644 --- a/generator/integration_tests/golden/v1/golden_thing_admin_connection.cc +++ b/generator/integration_tests/golden/v1/golden_thing_admin_connection.cc @@ -52,17 +52,17 @@ GoldenThingAdminConnection::CreateDatabase( Status(StatusCode::kUnimplemented, "not implemented")); } - StatusOr +StatusOr GoldenThingAdminConnection::CreateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } - future> +future> GoldenThingAdminConnection::CreateDatabase( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -82,17 +82,17 @@ GoldenThingAdminConnection::UpdateDatabaseDdl( Status(StatusCode::kUnimplemented, "not implemented")); } - StatusOr +StatusOr GoldenThingAdminConnection::UpdateDatabaseDdl( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } - future> +future> GoldenThingAdminConnection::UpdateDatabaseDdl( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -136,17 +136,17 @@ GoldenThingAdminConnection::CreateBackup( Status(StatusCode::kUnimplemented, "not implemented")); } - StatusOr +StatusOr GoldenThingAdminConnection::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } - future> +future> GoldenThingAdminConnection::CreateBackup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -184,17 +184,17 @@ GoldenThingAdminConnection::RestoreDatabase( Status(StatusCode::kUnimplemented, "not implemented")); } - StatusOr +StatusOr GoldenThingAdminConnection::RestoreDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } - future> +future> GoldenThingAdminConnection::RestoreDatabase( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -220,17 +220,17 @@ GoldenThingAdminConnection::LongRunningWithoutRouting( Status(StatusCode::kUnimplemented, "not implemented")); } - StatusOr +StatusOr GoldenThingAdminConnection::LongRunningWithoutRouting( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } - future> +future> GoldenThingAdminConnection::LongRunningWithoutRouting( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/generator/integration_tests/golden/v1/golden_thing_admin_connection.h b/generator/integration_tests/golden/v1/golden_thing_admin_connection.h index e5acd7a0a6494..fab49ed0ec5bc 100644 --- a/generator/integration_tests/golden/v1/golden_thing_admin_connection.h +++ b/generator/integration_tests/golden/v1/golden_thing_admin_connection.h @@ -21,11 +21,11 @@ #include "generator/integration_tests/golden/v1/golden_thing_admin_connection_idempotency_policy.h" #include "generator/integration_tests/golden/v1/internal/golden_thing_admin_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -190,10 +190,10 @@ class GoldenThingAdminConnection { CreateDatabase(google::test::admin::database::v1::CreateDatabaseRequest const& request); virtual StatusOr - CreateDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request); + CreateDatabase(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request); virtual future> - CreateDatabase(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation); + CreateDatabase(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetDatabase(google::test::admin::database::v1::GetDatabaseRequest const& request); @@ -202,10 +202,10 @@ class GoldenThingAdminConnection { UpdateDatabaseDdl(google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request); virtual StatusOr - UpdateDatabaseDdl(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request); + UpdateDatabaseDdl(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request); virtual future> - UpdateDatabaseDdl(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation); + UpdateDatabaseDdl(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status DropDatabase(google::test::admin::database::v1::DropDatabaseRequest const& request); @@ -226,10 +226,10 @@ class GoldenThingAdminConnection { CreateBackup(google::test::admin::database::v1::CreateBackupRequest const& request); virtual StatusOr - CreateBackup(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request); + CreateBackup(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request); virtual future> - CreateBackup(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation); + CreateBackup(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetBackup(google::test::admin::database::v1::GetBackupRequest const& request); @@ -247,10 +247,10 @@ class GoldenThingAdminConnection { RestoreDatabase(google::test::admin::database::v1::RestoreDatabaseRequest const& request); virtual StatusOr - RestoreDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request); + RestoreDatabase(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request); virtual future> - RestoreDatabase(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation); + RestoreDatabase(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListDatabaseOperations(google::test::admin::database::v1::ListDatabaseOperationsRequest request); @@ -262,10 +262,10 @@ class GoldenThingAdminConnection { LongRunningWithoutRouting(google::test::admin::database::v1::RestoreDatabaseRequest const& request); virtual StatusOr - LongRunningWithoutRouting(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request); + LongRunningWithoutRouting(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request); virtual future> - LongRunningWithoutRouting(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation); + LongRunningWithoutRouting(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> AsyncGetDatabase(google::test::admin::database::v1::GetDatabaseRequest const& request); diff --git a/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.cc b/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.cc index fd08d62927630..1e7eddc23ac15 100644 --- a/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.cc +++ b/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.cc @@ -126,7 +126,6 @@ GoldenThingAdminConnectionImpl::CreateDatabase(google::test::admin::database::v1 polling_policy(*current), __func__); } - StatusOr GoldenThingAdminConnectionImpl::CreateDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) { @@ -142,7 +141,6 @@ GoldenThingAdminConnectionImpl::CreateDatabase(google::cloud::ExperimentalTag, *current, request, __func__); } - future> GoldenThingAdminConnectionImpl::CreateDatabase(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation) { @@ -220,7 +218,6 @@ GoldenThingAdminConnectionImpl::UpdateDatabaseDdl(google::test::admin::database: polling_policy(*current), __func__); } - StatusOr GoldenThingAdminConnectionImpl::UpdateDatabaseDdl(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) { @@ -236,7 +233,6 @@ GoldenThingAdminConnectionImpl::UpdateDatabaseDdl(google::cloud::ExperimentalTag *current, request, __func__); } - future> GoldenThingAdminConnectionImpl::UpdateDatabaseDdl(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation) { @@ -366,7 +362,6 @@ GoldenThingAdminConnectionImpl::CreateBackup(google::test::admin::database::v1:: polling_policy(*current), __func__); } - StatusOr GoldenThingAdminConnectionImpl::CreateBackup(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request) { @@ -382,7 +377,6 @@ GoldenThingAdminConnectionImpl::CreateBackup(google::cloud::ExperimentalTag, *current, request, __func__); } - future> GoldenThingAdminConnectionImpl::CreateBackup(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation) { @@ -514,7 +508,6 @@ GoldenThingAdminConnectionImpl::RestoreDatabase(google::test::admin::database::v polling_policy(*current), __func__); } - StatusOr GoldenThingAdminConnectionImpl::RestoreDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { @@ -530,7 +523,6 @@ GoldenThingAdminConnectionImpl::RestoreDatabase(google::cloud::ExperimentalTag, *current, request, __func__); } - future> GoldenThingAdminConnectionImpl::RestoreDatabase(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation) { @@ -651,7 +643,6 @@ GoldenThingAdminConnectionImpl::LongRunningWithoutRouting(google::test::admin::d polling_policy(*current), __func__); } - StatusOr GoldenThingAdminConnectionImpl::LongRunningWithoutRouting(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { @@ -667,7 +658,6 @@ GoldenThingAdminConnectionImpl::LongRunningWithoutRouting(google::cloud::Experim *current, request, __func__); } - future> GoldenThingAdminConnectionImpl::LongRunningWithoutRouting(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation) { diff --git a/generator/integration_tests/golden/v1/internal/golden_thing_admin_rest_connection_impl.cc b/generator/integration_tests/golden/v1/internal/golden_thing_admin_rest_connection_impl.cc index 82590fff27aa3..11c2becd1c6e7 100644 --- a/generator/integration_tests/golden/v1/internal/golden_thing_admin_rest_connection_impl.cc +++ b/generator/integration_tests/golden/v1/internal/golden_thing_admin_rest_connection_impl.cc @@ -104,9 +104,8 @@ GoldenThingAdminRestConnectionImpl::CreateDatabase(google::test::admin::database } - StatusOr -GoldenThingAdminRestConnectionImpl::CreateDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) { +GoldenThingAdminRestConnectionImpl::CreateDatabase(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( retry_policy(*current), backoff_policy(*current), @@ -118,9 +117,8 @@ GoldenThingAdminRestConnectionImpl::CreateDatabase(google::cloud::ExperimentalTa *current, request, __func__); } - future> -GoldenThingAdminRestConnectionImpl::CreateDatabase(google::cloud::ExperimentalTag, +GoldenThingAdminRestConnectionImpl::CreateDatabase(ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { @@ -194,9 +192,8 @@ GoldenThingAdminRestConnectionImpl::UpdateDatabaseDdl(google::test::admin::datab } - StatusOr -GoldenThingAdminRestConnectionImpl::UpdateDatabaseDdl(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) { +GoldenThingAdminRestConnectionImpl::UpdateDatabaseDdl(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( retry_policy(*current), backoff_policy(*current), @@ -208,9 +205,8 @@ GoldenThingAdminRestConnectionImpl::UpdateDatabaseDdl(google::cloud::Experimenta *current, request, __func__); } - future> -GoldenThingAdminRestConnectionImpl::UpdateDatabaseDdl(google::cloud::ExperimentalTag, +GoldenThingAdminRestConnectionImpl::UpdateDatabaseDdl(ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { @@ -336,9 +332,8 @@ GoldenThingAdminRestConnectionImpl::CreateBackup(google::test::admin::database:: } - StatusOr -GoldenThingAdminRestConnectionImpl::CreateBackup(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request) { +GoldenThingAdminRestConnectionImpl::CreateBackup(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( retry_policy(*current), backoff_policy(*current), @@ -350,9 +345,8 @@ GoldenThingAdminRestConnectionImpl::CreateBackup(google::cloud::ExperimentalTag, *current, request, __func__); } - future> -GoldenThingAdminRestConnectionImpl::CreateBackup(google::cloud::ExperimentalTag, +GoldenThingAdminRestConnectionImpl::CreateBackup(ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { @@ -481,9 +475,8 @@ GoldenThingAdminRestConnectionImpl::RestoreDatabase(google::test::admin::databas } - StatusOr -GoldenThingAdminRestConnectionImpl::RestoreDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { +GoldenThingAdminRestConnectionImpl::RestoreDatabase(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( retry_policy(*current), backoff_policy(*current), @@ -495,9 +488,8 @@ GoldenThingAdminRestConnectionImpl::RestoreDatabase(google::cloud::ExperimentalT *current, request, __func__); } - future> -GoldenThingAdminRestConnectionImpl::RestoreDatabase(google::cloud::ExperimentalTag, +GoldenThingAdminRestConnectionImpl::RestoreDatabase(ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { diff --git a/generator/integration_tests/golden/v1/internal/golden_thing_admin_rest_connection_impl.h b/generator/integration_tests/golden/v1/internal/golden_thing_admin_rest_connection_impl.h index 0bcfde534009c..9f0bc0cb4fc60 100644 --- a/generator/integration_tests/golden/v1/internal/golden_thing_admin_rest_connection_impl.h +++ b/generator/integration_tests/golden/v1/internal/golden_thing_admin_rest_connection_impl.h @@ -57,11 +57,11 @@ class GoldenThingAdminRestConnectionImpl CreateDatabase(google::test::admin::database::v1::CreateDatabaseRequest const& request) override; StatusOr - CreateDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + CreateDatabase(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) override; future> - CreateDatabase(google::cloud::ExperimentalTag, + CreateDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -71,11 +71,11 @@ class GoldenThingAdminRestConnectionImpl UpdateDatabaseDdl(google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; StatusOr - UpdateDatabaseDdl(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + UpdateDatabaseDdl(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; future> - UpdateDatabaseDdl(google::cloud::ExperimentalTag, + UpdateDatabaseDdl(ExperimentalTag, google::longrunning::Operation const& operation) override; Status @@ -97,11 +97,11 @@ class GoldenThingAdminRestConnectionImpl CreateBackup(google::test::admin::database::v1::CreateBackupRequest const& request) override; StatusOr - CreateBackup(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + CreateBackup(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request) override; future> - CreateBackup(google::cloud::ExperimentalTag, + CreateBackup(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -120,11 +120,11 @@ class GoldenThingAdminRestConnectionImpl RestoreDatabase(google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; StatusOr - RestoreDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + RestoreDatabase(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; future> - RestoreDatabase(google::cloud::ExperimentalTag, + RestoreDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.cc b/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.cc index c52b82feecb6b..b8de05c5fee3c 100644 --- a/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.cc +++ b/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.cc @@ -55,7 +55,7 @@ GoldenThingAdminTracingConnection::CreateDatabase(google::cloud::ExperimentalTag google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) { auto span = internal::MakeSpan( "golden_v1::GoldenThingAdminConnection::CreateDatabase"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateDatabase( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); } @@ -90,7 +90,7 @@ GoldenThingAdminTracingConnection::UpdateDatabaseDdl(google::cloud::Experimental google::cloud::NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) { auto span = internal::MakeSpan( "golden_v1::GoldenThingAdminConnection::UpdateDatabaseDdl"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateDatabaseDdl( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); } @@ -153,7 +153,7 @@ GoldenThingAdminTracingConnection::CreateBackup(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request) { auto span = internal::MakeSpan( "golden_v1::GoldenThingAdminConnection::CreateBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateBackup( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); } @@ -211,7 +211,7 @@ GoldenThingAdminTracingConnection::RestoreDatabase(google::cloud::ExperimentalTa google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { auto span = internal::MakeSpan( "golden_v1::GoldenThingAdminConnection::RestoreDatabase"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RestoreDatabase( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); } @@ -257,7 +257,7 @@ GoldenThingAdminTracingConnection::LongRunningWithoutRouting(google::cloud::Expe google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { auto span = internal::MakeSpan( "golden_v1::GoldenThingAdminConnection::LongRunningWithoutRouting"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->LongRunningWithoutRouting( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); } diff --git a/generator/integration_tests/golden/v1/internal/request_id_connection_impl.cc b/generator/integration_tests/golden/v1/internal/request_id_connection_impl.cc index 2885d3576e6b6..4967ffe4b02c2 100644 --- a/generator/integration_tests/golden/v1/internal/request_id_connection_impl.cc +++ b/generator/integration_tests/golden/v1/internal/request_id_connection_impl.cc @@ -118,7 +118,6 @@ RequestIdServiceConnectionImpl::RenameFoo(google::test::requestid::v1::RenameFoo polling_policy(*current), __func__); } - StatusOr RequestIdServiceConnectionImpl::RenameFoo(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::requestid::v1::RenameFooRequest const& request) { @@ -134,7 +133,6 @@ RequestIdServiceConnectionImpl::RenameFoo(google::cloud::ExperimentalTag, *current, request, __func__); } - future> RequestIdServiceConnectionImpl::RenameFoo(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation) { diff --git a/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.cc b/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.cc index 6d0158cdccdae..700cde0274121 100644 --- a/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.cc +++ b/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.cc @@ -53,7 +53,7 @@ RequestIdServiceTracingConnection::RenameFoo(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::requestid::v1::RenameFooRequest const& request) { auto span = internal::MakeSpan( "golden_v1::RequestIdServiceConnection::RenameFoo"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RenameFoo( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); } diff --git a/generator/integration_tests/golden/v1/request_id_connection.cc b/generator/integration_tests/golden/v1/request_id_connection.cc index 906ce6d751c65..e816ceafdbe51 100644 --- a/generator/integration_tests/golden/v1/request_id_connection.cc +++ b/generator/integration_tests/golden/v1/request_id_connection.cc @@ -52,17 +52,17 @@ RequestIdServiceConnection::RenameFoo( Status(StatusCode::kUnimplemented, "not implemented")); } - StatusOr +StatusOr RequestIdServiceConnection::RenameFoo( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::test::requestid::v1::RenameFooRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } - future> +future> RequestIdServiceConnection::RenameFoo( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/generator/integration_tests/golden/v1/request_id_connection.h b/generator/integration_tests/golden/v1/request_id_connection.h index a8aaa9126827f..7fa872016c017 100644 --- a/generator/integration_tests/golden/v1/request_id_connection.h +++ b/generator/integration_tests/golden/v1/request_id_connection.h @@ -21,11 +21,11 @@ #include "generator/integration_tests/golden/v1/internal/request_id_retry_traits.h" #include "generator/integration_tests/golden/v1/request_id_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -187,10 +187,10 @@ class RequestIdServiceConnection { RenameFoo(google::test::requestid::v1::RenameFooRequest const& request); virtual StatusOr - RenameFoo(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::test::requestid::v1::RenameFooRequest const& request); + RenameFoo(ExperimentalTag, NoAwaitTag, google::test::requestid::v1::RenameFooRequest const& request); virtual future> - RenameFoo(google::cloud::ExperimentalTag, google::longrunning::Operation const& operation); + RenameFoo(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListFoos(google::test::requestid::v1::ListFoosRequest request); From 5f299e4816d99d90c19173e4da3579a99774a3b0 Mon Sep 17 00:00:00 2001 From: Scott Hart Date: Tue, 25 Jun 2024 12:18:46 -0400 Subject: [PATCH 08/11] regenerated code --- .../v1/access_approval_connection.h | 1 - .../v1/access_context_manager_connection.cc | 60 +++--- .../v1/access_context_manager_connection.h | 62 +++---- ...cess_context_manager_tracing_connection.cc | 30 +-- .../v1/advisory_notifications_connection.h | 1 - .../cloud/aiplatform/v1/dataset_connection.cc | 32 ++-- .../cloud/aiplatform/v1/dataset_connection.h | 36 ++-- .../v1/deployment_resource_pool_connection.cc | 8 +- .../v1/deployment_resource_pool_connection.h | 10 +- .../aiplatform/v1/endpoint_connection.cc | 20 +- .../cloud/aiplatform/v1/endpoint_connection.h | 23 ++- .../feature_online_store_admin_connection.cc | 24 +-- .../feature_online_store_admin_connection.h | 26 +-- .../v1/feature_online_store_connection.h | 1 - .../v1/feature_registry_connection.cc | 24 +-- .../v1/feature_registry_connection.h | 26 +-- .../aiplatform/v1/featurestore_connection.cc | 48 ++--- .../aiplatform/v1/featurestore_connection.h | 50 ++--- .../featurestore_online_serving_connection.h | 1 - .../aiplatform/v1/gen_ai_tuning_connection.h | 1 - .../cloud/aiplatform/v1/index_connection.cc | 12 +- google/cloud/aiplatform/v1/index_connection.h | 17 +- .../v1/index_endpoint_connection.cc | 20 +- .../aiplatform/v1/index_endpoint_connection.h | 23 ++- .../v1/internal/dataset_tracing_connection.cc | 16 +- ...oyment_resource_pool_tracing_connection.cc | 4 +- .../internal/endpoint_tracing_connection.cc | 10 +- ...e_online_store_admin_tracing_connection.cc | 12 +- .../feature_registry_tracing_connection.cc | 12 +- .../featurestore_tracing_connection.cc | 24 +-- .../index_endpoint_tracing_connection.cc | 10 +- .../v1/internal/index_tracing_connection.cc | 6 +- .../v1/internal/job_tracing_connection.cc | 14 +- .../internal/metadata_tracing_connection.cc | 16 +- .../internal/migration_tracing_connection.cc | 2 +- .../v1/internal/model_tracing_connection.cc | 12 +- .../internal/notebook_tracing_connection.cc | 12 +- .../persistent_resource_tracing_connection.cc | 8 +- .../internal/pipeline_tracing_connection.cc | 8 +- .../internal/schedule_tracing_connection.cc | 2 +- .../specialist_pool_tracing_connection.cc | 6 +- .../tensorboard_tracing_connection.cc | 12 +- .../v1/internal/vizier_tracing_connection.cc | 4 +- google/cloud/aiplatform/v1/job_connection.cc | 28 +-- google/cloud/aiplatform/v1/job_connection.h | 33 ++-- .../aiplatform/v1/llm_utility_connection.h | 1 - google/cloud/aiplatform/v1/match_connection.h | 1 - .../aiplatform/v1/metadata_connection.cc | 32 ++-- .../cloud/aiplatform/v1/metadata_connection.h | 34 ++-- .../aiplatform/v1/migration_connection.cc | 4 +- .../aiplatform/v1/migration_connection.h | 6 +- .../cloud/aiplatform/v1/model_connection.cc | 24 +-- google/cloud/aiplatform/v1/model_connection.h | 30 ++- .../aiplatform/v1/model_garden_connection.h | 1 - .../aiplatform/v1/notebook_connection.cc | 24 +-- .../cloud/aiplatform/v1/notebook_connection.h | 28 ++- .../v1/persistent_resource_connection.cc | 16 +- .../v1/persistent_resource_connection.h | 18 +- .../aiplatform/v1/pipeline_connection.cc | 16 +- .../cloud/aiplatform/v1/pipeline_connection.h | 18 +- .../aiplatform/v1/prediction_connection.h | 1 - .../aiplatform/v1/schedule_connection.cc | 4 +- .../cloud/aiplatform/v1/schedule_connection.h | 6 +- .../v1/specialist_pool_connection.cc | 12 +- .../v1/specialist_pool_connection.h | 14 +- .../aiplatform/v1/tensorboard_connection.cc | 24 +-- .../aiplatform/v1/tensorboard_connection.h | 26 +-- .../cloud/aiplatform/v1/vizier_connection.cc | 8 +- .../cloud/aiplatform/v1/vizier_connection.h | 10 +- .../alloydb/v1/alloy_db_admin_connection.cc | 68 +++---- .../alloydb/v1/alloy_db_admin_connection.h | 79 ++++---- .../alloy_db_admin_tracing_connection.cc | 34 ++-- .../apigateway/v1/api_gateway_connection.cc | 36 ++-- .../apigateway/v1/api_gateway_connection.h | 41 ++--- .../api_gateway_tracing_connection.cc | 18 +- .../apigeeconnect/v1/connection_connection.h | 1 - .../cloud/apikeys/v2/api_keys_connection.cc | 16 +- google/cloud/apikeys/v2/api_keys_connection.h | 22 +-- .../internal/api_keys_tracing_connection.cc | 8 +- .../appengine/v1/applications_connection.cc | 12 +- .../appengine/v1/applications_connection.h | 14 +- .../v1/authorized_certificates_connection.h | 1 - .../v1/authorized_domains_connection.h | 1 - .../v1/domain_mappings_connection.cc | 12 +- .../appengine/v1/domain_mappings_connection.h | 14 +- .../cloud/appengine/v1/firewall_connection.h | 1 - .../appengine/v1/instances_connection.cc | 8 +- .../cloud/appengine/v1/instances_connection.h | 11 +- .../applications_tracing_connection.cc | 6 +- .../domain_mappings_tracing_connection.cc | 6 +- .../internal/instances_tracing_connection.cc | 4 +- .../internal/services_tracing_connection.cc | 4 +- .../internal/versions_tracing_connection.cc | 6 +- .../cloud/appengine/v1/services_connection.cc | 8 +- .../cloud/appengine/v1/services_connection.h | 11 +- .../cloud/appengine/v1/versions_connection.cc | 12 +- .../cloud/appengine/v1/versions_connection.h | 16 +- google/cloud/apphub/v1/app_hub_connection.cc | 44 ++--- google/cloud/apphub/v1/app_hub_connection.h | 52 +++--- .../v1/internal/app_hub_tracing_connection.cc | 22 +-- .../v1/artifact_registry_connection.cc | 28 +-- .../v1/artifact_registry_connection.h | 30 +-- .../artifact_registry_tracing_connection.cc | 14 +- google/cloud/asset/v1/asset_connection.cc | 8 +- google/cloud/asset/v1/asset_connection.h | 10 +- .../v1/internal/asset_tracing_connection.cc | 4 +- .../v1/assured_workloads_connection.cc | 4 +- .../v1/assured_workloads_connection.h | 6 +- .../assured_workloads_tracing_connection.cc | 2 +- google/cloud/automl/v1/auto_ml_connection.cc | 36 ++-- google/cloud/automl/v1/auto_ml_connection.h | 45 ++--- .../v1/internal/auto_ml_tracing_connection.cc | 18 +- .../internal/prediction_tracing_connection.cc | 2 +- .../cloud/automl/v1/prediction_connection.cc | 4 +- .../cloud/automl/v1/prediction_connection.h | 6 +- .../cloud/backupdr/v1/backup_dr_connection.cc | 8 +- .../cloud/backupdr/v1/backup_dr_connection.h | 10 +- .../internal/backup_dr_tracing_connection.cc | 4 +- .../v2/bare_metal_solution_connection.cc | 64 +++---- .../v2/bare_metal_solution_connection.h | 71 ++++---- .../bare_metal_solution_tracing_connection.cc | 32 ++-- google/cloud/batch/v1/batch_connection.cc | 4 +- google/cloud/batch/v1/batch_connection.h | 7 +- .../v1/internal/batch_tracing_connection.cc | 2 +- .../v1/app_connections_connection.cc | 12 +- .../v1/app_connections_connection.h | 14 +- .../app_connections_tracing_connection.cc | 6 +- .../v1/app_connectors_connection.cc | 16 +- .../v1/app_connectors_connection.h | 18 +- .../app_connectors_tracing_connection.cc | 8 +- .../appgateways/v1/app_gateways_connection.cc | 8 +- .../appgateways/v1/app_gateways_connection.h | 10 +- .../app_gateways_tracing_connection.cc | 4 +- .../v1/analytics_hub_connection.cc | 12 +- .../v1/analytics_hub_connection.h | 14 +- .../analytics_hub_tracing_connection.cc | 6 +- .../biglake/v1/metastore_connection.h | 1 - .../connection/v1/connection_connection.h | 1 - .../datapolicies/v1/data_policy_connection.h | 1 - .../v1/data_transfer_connection.h | 1 - .../migration/v2/migration_connection.h | 1 - .../reservation/v1/reservation_connection.h | 1 - .../storage/v1/bigquery_read_connection.h | 1 - .../storage/v1/bigquery_write_connection.h | 1 - .../bigtable_instance_admin_connection.cc | 25 ++- .../bigtable_instance_admin_connection.h | 28 ++- .../admin/bigtable_table_admin_connection.cc | 28 +-- .../admin/bigtable_table_admin_connection.h | 35 ++-- ...table_instance_admin_tracing_connection.cc | 12 +- ...bigtable_table_admin_tracing_connection.cc | 14 +- .../billing/budgets/v1/budget_connection.h | 1 - .../billing/v1/cloud_billing_connection.h | 1 - .../billing/v1/cloud_catalog_connection.h | 1 - ...inauthz_management_service_v1_connection.h | 1 - .../v1/system_policy_v1_connection.h | 1 - .../v1/validation_helper_v1_connection.h | 1 - .../v1/certificate_manager_connection.cc | 68 +++---- .../v1/certificate_manager_connection.h | 72 ++++---- .../certificate_manager_tracing_connection.cc | 34 ++-- .../channel/v1/cloud_channel_connection.cc | 44 ++--- .../channel/v1/cloud_channel_connection.h | 47 +++-- .../v1/cloud_channel_reports_connection.cc | 4 +- .../v1/cloud_channel_reports_connection.h | 6 +- ...loud_channel_reports_tracing_connection.cc | 2 +- .../cloud_channel_tracing_connection.cc | 22 +-- .../cloudbuild/v1/cloud_build_connection.cc | 28 +-- .../cloudbuild/v1/cloud_build_connection.h | 32 ++-- .../cloud_build_tracing_connection.cc | 14 +- .../repository_manager_tracing_connection.cc | 12 +- .../v2/repository_manager_connection.cc | 24 +-- .../v2/repository_manager_connection.h | 26 +-- .../cloud_controls_partner_core_connection.h | 1 - ...d_controls_partner_monitoring_connection.h | 1 - .../cloudquotas/v1/cloud_quotas_connection.h | 1 - .../v1/consumer_procurement_connection.cc | 4 +- .../v1/consumer_procurement_connection.h | 7 +- ...consumer_procurement_tracing_connection.cc | 2 +- .../composer/v1/environments_connection.cc | 24 +-- .../composer/v1/environments_connection.h | 26 +-- .../composer/v1/image_versions_connection.h | 1 - .../environments_tracing_connection.cc | 12 +- .../v1/accelerator_types_connection.h | 1 - .../addresses/v1/addresses_connection.cc | 19 +- .../addresses/v1/addresses_connection.h | 18 +- .../addresses_rest_connection_impl.cc | 16 +- .../internal/addresses_rest_connection_impl.h | 16 +- .../internal/addresses_tracing_connection.cc | 8 +- .../autoscalers/v1/autoscalers_connection.cc | 20 +- .../autoscalers/v1/autoscalers_connection.h | 18 +- .../autoscalers_rest_connection_impl.cc | 16 +- .../autoscalers_rest_connection_impl.h | 16 +- .../autoscalers_tracing_connection.cc | 8 +- .../v1/backend_buckets_connection.cc | 35 ++-- .../v1/backend_buckets_connection.h | 31 ++-- .../backend_buckets_rest_connection_impl.cc | 28 +-- .../backend_buckets_rest_connection_impl.h | 28 +-- .../backend_buckets_tracing_connection.cc | 14 +- .../v1/backend_services_connection.cc | 40 ++-- .../v1/backend_services_connection.h | 38 ++-- .../backend_services_rest_connection_impl.cc | 32 ++-- .../backend_services_rest_connection_impl.h | 32 ++-- .../backend_services_tracing_connection.cc | 16 +- .../disk_types/v1/disk_types_connection.h | 1 - .../compute/disks/v1/disks_connection.cc | 55 +++--- .../cloud/compute/disks/v1/disks_connection.h | 52 +++--- .../v1/internal/disks_rest_connection_impl.cc | 48 ++--- .../v1/internal/disks_rest_connection_impl.h | 48 ++--- .../v1/internal/disks_tracing_connection.cc | 24 +-- .../v1/external_vpn_gateways_connection.cc | 15 +- .../v1/external_vpn_gateways_connection.h | 14 +- ...ernal_vpn_gateways_rest_connection_impl.cc | 12 +- ...ternal_vpn_gateways_rest_connection_impl.h | 12 +- ...xternal_vpn_gateways_tracing_connection.cc | 6 +- .../v1/firewall_policies_connection.cc | 50 ++--- .../v1/firewall_policies_connection.h | 44 +++-- .../firewall_policies_rest_connection_impl.cc | 40 ++-- .../firewall_policies_rest_connection_impl.h | 40 ++-- .../firewall_policies_tracing_connection.cc | 20 +- .../firewalls/v1/firewalls_connection.cc | 20 +- .../firewalls/v1/firewalls_connection.h | 18 +- .../firewalls_rest_connection_impl.cc | 16 +- .../internal/firewalls_rest_connection_impl.h | 16 +- .../internal/firewalls_tracing_connection.cc | 8 +- .../v1/forwarding_rules_connection.cc | 25 +-- .../v1/forwarding_rules_connection.h | 24 ++- .../forwarding_rules_rest_connection_impl.cc | 20 +- .../forwarding_rules_rest_connection_impl.h | 20 +- .../forwarding_rules_tracing_connection.cc | 10 +- .../v1/global_addresses_connection.cc | 20 +- .../v1/global_addresses_connection.h | 18 +- .../global_addresses_rest_connection_impl.cc | 16 +- .../global_addresses_rest_connection_impl.h | 16 +- .../global_addresses_tracing_connection.cc | 8 +- .../v1/global_forwarding_rules_connection.cc | 25 +-- .../v1/global_forwarding_rules_connection.h | 24 ++- ...l_forwarding_rules_rest_connection_impl.cc | 20 +- ...al_forwarding_rules_rest_connection_impl.h | 20 +- ...bal_forwarding_rules_tracing_connection.cc | 10 +- ...obal_network_endpoint_groups_connection.cc | 20 +- ...lobal_network_endpoint_groups_connection.h | 18 +- ...rk_endpoint_groups_rest_connection_impl.cc | 16 +- ...ork_endpoint_groups_rest_connection_impl.h | 16 +- ...work_endpoint_groups_tracing_connection.cc | 8 +- .../v1/global_operations_connection.h | 1 - ...lobal_organization_operations_connection.h | 1 - ...al_public_delegated_prefixes_connection.cc | 15 +- ...bal_public_delegated_prefixes_connection.h | 14 +- ...delegated_prefixes_rest_connection_impl.cc | 12 +- ..._delegated_prefixes_rest_connection_impl.h | 12 +- ...c_delegated_prefixes_tracing_connection.cc | 6 +- .../v1/health_checks_connection.cc | 20 +- .../v1/health_checks_connection.h | 18 +- .../health_checks_rest_connection_impl.cc | 16 +- .../health_checks_rest_connection_impl.h | 16 +- .../health_checks_tracing_connection.cc | 8 +- .../v1/http_health_checks_connection.cc | 20 +- .../v1/http_health_checks_connection.h | 22 +-- ...http_health_checks_rest_connection_impl.cc | 16 +- .../http_health_checks_rest_connection_impl.h | 16 +- .../http_health_checks_tracing_connection.cc | 8 +- .../v1/https_health_checks_connection.cc | 20 +- .../v1/https_health_checks_connection.h | 22 +-- ...ttps_health_checks_rest_connection_impl.cc | 16 +- ...https_health_checks_rest_connection_impl.h | 16 +- .../https_health_checks_tracing_connection.cc | 8 +- .../v1/image_family_views_connection.h | 1 - .../compute/images/v1/images_connection.cc | 23 +-- .../compute/images/v1/images_connection.h | 22 +-- .../internal/images_rest_connection_impl.cc | 20 +- .../v1/internal/images_rest_connection_impl.h | 20 +- .../v1/internal/images_tracing_connection.cc | 10 +- ...roup_manager_resize_requests_connection.cc | 15 +- ...group_manager_resize_requests_connection.h | 14 +- ...er_resize_requests_rest_connection_impl.cc | 12 +- ...ger_resize_requests_rest_connection_impl.h | 12 +- ...ager_resize_requests_tracing_connection.cc | 6 +- .../v1/instance_group_managers_connection.cc | 70 +++---- .../v1/instance_group_managers_connection.h | 58 +++--- ...nce_group_managers_rest_connection_impl.cc | 56 +++--- ...ance_group_managers_rest_connection_impl.h | 56 +++--- ...tance_group_managers_tracing_connection.cc | 28 +-- .../v1/instance_groups_connection.cc | 25 +-- .../v1/instance_groups_connection.h | 22 +-- .../instance_groups_rest_connection_impl.cc | 20 +- .../instance_groups_rest_connection_impl.h | 20 +- .../instance_groups_tracing_connection.cc | 10 +- .../v1/instance_settings_connection.cc | 5 +- .../v1/instance_settings_connection.h | 7 +- .../instance_settings_rest_connection_impl.cc | 4 +- .../instance_settings_rest_connection_impl.h | 4 +- .../instance_settings_tracing_connection.cc | 2 +- .../v1/instance_templates_connection.cc | 10 +- .../v1/instance_templates_connection.h | 12 +- ...instance_templates_rest_connection_impl.cc | 8 +- .../instance_templates_rest_connection_impl.h | 8 +- .../instance_templates_tracing_connection.cc | 4 +- .../instances/v1/instances_connection.cc | 171 +++++++----------- .../instances/v1/instances_connection.h | 147 ++++++++------- .../instances_rest_connection_impl.cc | 140 +++++++------- .../internal/instances_rest_connection_impl.h | 140 +++++++------- .../internal/instances_tracing_connection.cc | 70 +++---- .../v1/interconnect_attachments_connection.cc | 20 +- .../v1/interconnect_attachments_connection.h | 18 +- ...onnect_attachments_rest_connection_impl.cc | 16 +- ...connect_attachments_rest_connection_impl.h | 16 +- ...rconnect_attachments_tracing_connection.cc | 8 +- .../v1/interconnect_locations_connection.h | 1 - ...interconnect_remote_locations_connection.h | 1 - .../v1/interconnects_connection.cc | 20 +- .../v1/interconnects_connection.h | 18 +- .../interconnects_rest_connection_impl.cc | 16 +- .../interconnects_rest_connection_impl.h | 16 +- .../interconnects_tracing_connection.cc | 8 +- .../v1/license_codes_connection.h | 1 - .../internal/licenses_rest_connection_impl.cc | 8 +- .../internal/licenses_rest_connection_impl.h | 8 +- .../internal/licenses_tracing_connection.cc | 4 +- .../licenses/v1/licenses_connection.cc | 10 +- .../compute/licenses/v1/licenses_connection.h | 10 +- .../machine_images_rest_connection_impl.cc | 8 +- .../machine_images_rest_connection_impl.h | 8 +- .../machine_images_tracing_connection.cc | 4 +- .../v1/machine_images_connection.cc | 10 +- .../v1/machine_images_connection.h | 10 +- .../v1/machine_types_connection.h | 1 - ...etwork_attachments_rest_connection_impl.cc | 12 +- ...network_attachments_rest_connection_impl.h | 12 +- .../network_attachments_tracing_connection.cc | 6 +- .../v1/network_attachments_connection.cc | 15 +- .../v1/network_attachments_connection.h | 17 +- ..._security_services_rest_connection_impl.cc | 12 +- ...e_security_services_rest_connection_impl.h | 12 +- ...ge_security_services_tracing_connection.cc | 6 +- ...twork_edge_security_services_connection.cc | 15 +- ...etwork_edge_security_services_connection.h | 14 +- ...rk_endpoint_groups_rest_connection_impl.cc | 16 +- ...ork_endpoint_groups_rest_connection_impl.h | 16 +- ...work_endpoint_groups_tracing_connection.cc | 8 +- .../v1/network_endpoint_groups_connection.cc | 20 +- .../v1/network_endpoint_groups_connection.h | 20 +- ..._firewall_policies_rest_connection_impl.cc | 36 ++-- ...k_firewall_policies_rest_connection_impl.h | 36 ++-- ...rk_firewall_policies_tracing_connection.cc | 18 +- .../network_firewall_policies_connection.cc | 45 ++--- .../v1/network_firewall_policies_connection.h | 40 ++-- .../internal/networks_rest_connection_impl.cc | 28 +-- .../internal/networks_rest_connection_impl.h | 28 +-- .../internal/networks_tracing_connection.cc | 14 +- .../networks/v1/networks_connection.cc | 35 ++-- .../compute/networks/v1/networks_connection.h | 30 +-- .../node_groups_rest_connection_impl.cc | 32 ++-- .../node_groups_rest_connection_impl.h | 32 ++-- .../node_groups_tracing_connection.cc | 16 +- .../node_groups/v1/node_groups_connection.cc | 44 ++--- .../node_groups/v1/node_groups_connection.h | 35 ++-- .../node_templates_rest_connection_impl.cc | 8 +- .../node_templates_rest_connection_impl.h | 8 +- .../node_templates_tracing_connection.cc | 4 +- .../v1/node_templates_connection.cc | 10 +- .../v1/node_templates_connection.h | 10 +- .../node_types/v1/node_types_connection.h | 1 - .../packet_mirrorings_rest_connection_impl.cc | 12 +- .../packet_mirrorings_rest_connection_impl.h | 12 +- .../packet_mirrorings_tracing_connection.cc | 6 +- .../v1/packet_mirrorings_connection.cc | 15 +- .../v1/packet_mirrorings_connection.h | 17 +- .../internal/projects_rest_connection_impl.cc | 40 ++-- .../internal/projects_rest_connection_impl.h | 40 ++-- .../internal/projects_tracing_connection.cc | 20 +- .../projects/v1/projects_connection.cc | 52 ++---- .../compute/projects/v1/projects_connection.h | 44 +++-- ...dvertised_prefixes_rest_connection_impl.cc | 20 +- ...advertised_prefixes_rest_connection_impl.h | 20 +- ..._advertised_prefixes_tracing_connection.cc | 10 +- .../public_advertised_prefixes_connection.cc | 25 +-- .../public_advertised_prefixes_connection.h | 22 +-- ...delegated_prefixes_rest_connection_impl.cc | 20 +- ..._delegated_prefixes_rest_connection_impl.h | 20 +- ...c_delegated_prefixes_tracing_connection.cc | 10 +- .../public_delegated_prefixes_connection.cc | 25 +-- .../v1/public_delegated_prefixes_connection.h | 22 +-- ...region_autoscalers_rest_connection_impl.cc | 16 +- .../region_autoscalers_rest_connection_impl.h | 16 +- .../region_autoscalers_tracing_connection.cc | 8 +- .../v1/region_autoscalers_connection.cc | 20 +- .../v1/region_autoscalers_connection.h | 18 +- ...n_backend_services_rest_connection_impl.cc | 20 +- ...on_backend_services_rest_connection_impl.h | 20 +- ...ion_backend_services_tracing_connection.cc | 10 +- .../v1/region_backend_services_connection.cc | 25 +-- .../v1/region_backend_services_connection.h | 25 ++- ...region_commitments_rest_connection_impl.cc | 8 +- .../region_commitments_rest_connection_impl.h | 8 +- .../region_commitments_tracing_connection.cc | 4 +- .../v1/region_commitments_connection.cc | 10 +- .../v1/region_commitments_connection.h | 10 +- .../v1/region_disk_types_connection.h | 1 - .../region_disks_rest_connection_impl.cc | 48 ++--- .../region_disks_rest_connection_impl.h | 48 ++--- .../region_disks_tracing_connection.cc | 24 +-- .../v1/region_disks_connection.cc | 60 +++--- .../region_disks/v1/region_disks_connection.h | 53 +++--- ...lth_check_services_rest_connection_impl.cc | 12 +- ...alth_check_services_rest_connection_impl.h | 12 +- ...ealth_check_services_tracing_connection.cc | 6 +- ...region_health_check_services_connection.cc | 15 +- .../region_health_check_services_connection.h | 14 +- ...gion_health_checks_rest_connection_impl.cc | 16 +- ...egion_health_checks_rest_connection_impl.h | 16 +- ...region_health_checks_tracing_connection.cc | 8 +- .../v1/region_health_checks_connection.cc | 20 +- .../v1/region_health_checks_connection.h | 18 +- ...nce_group_managers_rest_connection_impl.cc | 56 +++--- ...ance_group_managers_rest_connection_impl.h | 56 +++--- ...tance_group_managers_tracing_connection.cc | 28 +-- ...gion_instance_group_managers_connection.cc | 70 +++---- ...egion_instance_group_managers_connection.h | 58 +++--- ...on_instance_groups_rest_connection_impl.cc | 4 +- ...ion_instance_groups_rest_connection_impl.h | 4 +- ...gion_instance_groups_tracing_connection.cc | 2 +- .../v1/region_instance_groups_connection.cc | 5 +- .../v1/region_instance_groups_connection.h | 6 +- ...instance_templates_rest_connection_impl.cc | 8 +- ..._instance_templates_rest_connection_impl.h | 8 +- ...n_instance_templates_tracing_connection.cc | 4 +- .../region_instance_templates_connection.cc | 10 +- .../v1/region_instance_templates_connection.h | 10 +- .../region_instances_rest_connection_impl.cc | 4 +- .../region_instances_rest_connection_impl.h | 4 +- .../region_instances_tracing_connection.cc | 2 +- .../v1/region_instances_connection.cc | 5 +- .../v1/region_instances_connection.h | 6 +- ...rk_endpoint_groups_rest_connection_impl.cc | 16 +- ...ork_endpoint_groups_rest_connection_impl.h | 16 +- ...work_endpoint_groups_tracing_connection.cc | 8 +- ...gion_network_endpoint_groups_connection.cc | 20 +- ...egion_network_endpoint_groups_connection.h | 18 +- ..._firewall_policies_rest_connection_impl.cc | 36 ++-- ...k_firewall_policies_rest_connection_impl.h | 36 ++-- ...rk_firewall_policies_tracing_connection.cc | 18 +- ...on_network_firewall_policies_connection.cc | 45 ++--- ...ion_network_firewall_policies_connection.h | 38 ++-- ...fication_endpoints_rest_connection_impl.cc | 8 +- ...ification_endpoints_rest_connection_impl.h | 8 +- ...tification_endpoints_tracing_connection.cc | 4 +- ...egion_notification_endpoints_connection.cc | 10 +- ...region_notification_endpoints_connection.h | 10 +- .../v1/region_operations_connection.h | 1 - ..._security_policies_rest_connection_impl.cc | 24 +-- ...n_security_policies_rest_connection_impl.h | 24 +-- ...on_security_policies_tracing_connection.cc | 12 +- .../v1/region_security_policies_connection.cc | 30 ++- .../v1/region_security_policies_connection.h | 28 ++- ...n_ssl_certificates_rest_connection_impl.cc | 8 +- ...on_ssl_certificates_rest_connection_impl.h | 8 +- ...ion_ssl_certificates_tracing_connection.cc | 4 +- .../v1/region_ssl_certificates_connection.cc | 10 +- .../v1/region_ssl_certificates_connection.h | 12 +- ...egion_ssl_policies_rest_connection_impl.cc | 12 +- ...region_ssl_policies_rest_connection_impl.h | 12 +- .../region_ssl_policies_tracing_connection.cc | 6 +- .../v1/region_ssl_policies_connection.cc | 15 +- .../v1/region_ssl_policies_connection.h | 14 +- ...arget_http_proxies_rest_connection_impl.cc | 12 +- ...target_http_proxies_rest_connection_impl.h | 12 +- ..._target_http_proxies_tracing_connection.cc | 6 +- .../region_target_http_proxies_connection.cc | 15 +- .../region_target_http_proxies_connection.h | 14 +- ...rget_https_proxies_rest_connection_impl.cc | 20 +- ...arget_https_proxies_rest_connection_impl.h | 20 +- ...target_https_proxies_tracing_connection.cc | 10 +- .../region_target_https_proxies_connection.cc | 25 +-- .../region_target_https_proxies_connection.h | 22 +-- ...target_tcp_proxies_rest_connection_impl.cc | 8 +- ..._target_tcp_proxies_rest_connection_impl.h | 8 +- ...n_target_tcp_proxies_tracing_connection.cc | 4 +- .../region_target_tcp_proxies_connection.cc | 10 +- .../v1/region_target_tcp_proxies_connection.h | 12 +- .../region_url_maps_rest_connection_impl.cc | 16 +- .../region_url_maps_rest_connection_impl.h | 16 +- .../region_url_maps_tracing_connection.cc | 8 +- .../v1/region_url_maps_connection.cc | 20 +- .../v1/region_url_maps_connection.h | 18 +- .../region_zones/v1/region_zones_connection.h | 1 - .../compute/regions/v1/regions_connection.h | 1 - .../reservations_rest_connection_impl.cc | 16 +- .../reservations_rest_connection_impl.h | 16 +- .../reservations_tracing_connection.cc | 8 +- .../v1/reservations_connection.cc | 20 +- .../reservations/v1/reservations_connection.h | 18 +- .../resource_policies_rest_connection_impl.cc | 12 +- .../resource_policies_rest_connection_impl.h | 12 +- .../resource_policies_tracing_connection.cc | 6 +- .../v1/resource_policies_connection.cc | 15 +- .../v1/resource_policies_connection.h | 16 +- .../internal/routers_rest_connection_impl.cc | 16 +- .../internal/routers_rest_connection_impl.h | 16 +- .../v1/internal/routers_tracing_connection.cc | 8 +- .../compute/routers/v1/routers_connection.cc | 20 +- .../compute/routers/v1/routers_connection.h | 18 +- .../internal/routes_rest_connection_impl.cc | 8 +- .../v1/internal/routes_rest_connection_impl.h | 8 +- .../v1/internal/routes_tracing_connection.cc | 4 +- .../compute/routes/v1/routes_connection.cc | 10 +- .../compute/routes/v1/routes_connection.h | 10 +- .../security_policies_rest_connection_impl.cc | 28 +-- .../security_policies_rest_connection_impl.h | 28 +-- .../security_policies_tracing_connection.cc | 14 +- .../v1/security_policies_connection.cc | 35 ++-- .../v1/security_policies_connection.h | 32 ++-- ...ervice_attachments_rest_connection_impl.cc | 12 +- ...service_attachments_rest_connection_impl.h | 12 +- .../service_attachments_tracing_connection.cc | 6 +- .../v1/service_attachments_connection.cc | 15 +- .../v1/service_attachments_connection.h | 17 +- .../snapshot_settings_rest_connection_impl.cc | 4 +- .../snapshot_settings_rest_connection_impl.h | 4 +- .../snapshot_settings_tracing_connection.cc | 2 +- .../v1/snapshot_settings_connection.cc | 5 +- .../v1/snapshot_settings_connection.h | 7 +- .../snapshots_rest_connection_impl.cc | 12 +- .../internal/snapshots_rest_connection_impl.h | 12 +- .../internal/snapshots_tracing_connection.cc | 6 +- .../snapshots/v1/snapshots_connection.cc | 15 +- .../snapshots/v1/snapshots_connection.h | 14 +- .../ssl_certificates_rest_connection_impl.cc | 8 +- .../ssl_certificates_rest_connection_impl.h | 8 +- .../ssl_certificates_tracing_connection.cc | 4 +- .../v1/ssl_certificates_connection.cc | 10 +- .../v1/ssl_certificates_connection.h | 12 +- .../ssl_policies_rest_connection_impl.cc | 12 +- .../ssl_policies_rest_connection_impl.h | 12 +- .../ssl_policies_tracing_connection.cc | 6 +- .../v1/ssl_policies_connection.cc | 15 +- .../ssl_policies/v1/ssl_policies_connection.h | 14 +- .../v1/storage_pool_types_connection.h | 1 - .../storage_pools_rest_connection_impl.cc | 12 +- .../storage_pools_rest_connection_impl.h | 12 +- .../storage_pools_tracing_connection.cc | 6 +- .../v1/storage_pools_connection.cc | 15 +- .../v1/storage_pools_connection.h | 14 +- .../subnetworks_rest_connection_impl.cc | 20 +- .../subnetworks_rest_connection_impl.h | 20 +- .../subnetworks_tracing_connection.cc | 10 +- .../subnetworks/v1/subnetworks_connection.cc | 25 +-- .../subnetworks/v1/subnetworks_connection.h | 23 ++- ...arget_grpc_proxies_rest_connection_impl.cc | 12 +- ...target_grpc_proxies_rest_connection_impl.h | 12 +- .../target_grpc_proxies_tracing_connection.cc | 6 +- .../v1/target_grpc_proxies_connection.cc | 15 +- .../v1/target_grpc_proxies_connection.h | 17 +- ...arget_http_proxies_rest_connection_impl.cc | 16 +- ...target_http_proxies_rest_connection_impl.h | 16 +- .../target_http_proxies_tracing_connection.cc | 8 +- .../v1/target_http_proxies_connection.cc | 20 +- .../v1/target_http_proxies_connection.h | 21 +-- ...rget_https_proxies_rest_connection_impl.cc | 32 ++-- ...arget_https_proxies_rest_connection_impl.h | 32 ++-- ...target_https_proxies_tracing_connection.cc | 16 +- .../v1/target_https_proxies_connection.cc | 40 ++-- .../v1/target_https_proxies_connection.h | 37 ++-- .../target_instances_rest_connection_impl.cc | 12 +- .../target_instances_rest_connection_impl.h | 12 +- .../target_instances_tracing_connection.cc | 6 +- .../v1/target_instances_connection.cc | 15 +- .../v1/target_instances_connection.h | 16 +- .../target_pools_rest_connection_impl.cc | 32 ++-- .../target_pools_rest_connection_impl.h | 32 ++-- .../target_pools_tracing_connection.cc | 16 +- .../v1/target_pools_connection.cc | 40 ++-- .../target_pools/v1/target_pools_connection.h | 34 ++-- ...target_ssl_proxies_rest_connection_impl.cc | 28 +-- .../target_ssl_proxies_rest_connection_impl.h | 28 +-- .../target_ssl_proxies_tracing_connection.cc | 14 +- .../v1/target_ssl_proxies_connection.cc | 35 ++-- .../v1/target_ssl_proxies_connection.h | 32 ++-- ...target_tcp_proxies_rest_connection_impl.cc | 16 +- .../target_tcp_proxies_rest_connection_impl.h | 16 +- .../target_tcp_proxies_tracing_connection.cc | 8 +- .../v1/target_tcp_proxies_connection.cc | 20 +- .../v1/target_tcp_proxies_connection.h | 20 +- ...arget_vpn_gateways_rest_connection_impl.cc | 12 +- ...target_vpn_gateways_rest_connection_impl.h | 12 +- .../target_vpn_gateways_tracing_connection.cc | 6 +- .../v1/target_vpn_gateways_connection.cc | 15 +- .../v1/target_vpn_gateways_connection.h | 16 +- .../internal/url_maps_rest_connection_impl.cc | 20 +- .../internal/url_maps_rest_connection_impl.h | 20 +- .../internal/url_maps_tracing_connection.cc | 10 +- .../url_maps/v1/url_maps_connection.cc | 25 +-- .../compute/url_maps/v1/url_maps_connection.h | 22 +-- .../vpn_gateways_rest_connection_impl.cc | 12 +- .../vpn_gateways_rest_connection_impl.h | 12 +- .../vpn_gateways_tracing_connection.cc | 6 +- .../v1/vpn_gateways_connection.cc | 15 +- .../vpn_gateways/v1/vpn_gateways_connection.h | 14 +- .../vpn_tunnels_rest_connection_impl.cc | 12 +- .../vpn_tunnels_rest_connection_impl.h | 12 +- .../vpn_tunnels_tracing_connection.cc | 6 +- .../vpn_tunnels/v1/vpn_tunnels_connection.cc | 17 +- .../vpn_tunnels/v1/vpn_tunnels_connection.h | 14 +- .../v1/zone_operations_connection.h | 1 - .../cloud/compute/zones/v1/zones_connection.h | 1 - .../v1/confidential_computing_connection.h | 1 - google/cloud/config/v1/config_connection.cc | 28 +-- google/cloud/config/v1/config_connection.h | 32 ++-- .../v1/internal/config_tracing_connection.cc | 14 +- .../connectors/v1/connectors_connection.cc | 16 +- .../connectors/v1/connectors_connection.h | 19 +- .../internal/connectors_tracing_connection.cc | 8 +- .../v1/contact_center_insights_connection.cc | 40 ++-- .../v1/contact_center_insights_connection.h | 42 ++--- ...tact_center_insights_tracing_connection.cc | 20 +- .../container/v1/cluster_manager_connection.h | 1 - .../v1/container_analysis_connection.h | 1 - .../containeranalysis/v1/grafeas_connection.h | 1 - .../contentwarehouse/v1/document_connection.h | 1 - .../v1/document_link_connection.h | 1 - .../v1/document_schema_connection.h | 1 - .../internal/pipeline_tracing_connection.cc | 2 +- .../v1/pipeline_connection.cc | 4 +- .../contentwarehouse/v1/pipeline_connection.h | 7 +- .../contentwarehouse/v1/rule_set_connection.h | 1 - .../v1/synonym_set_connection.h | 1 - .../v1/internal/lineage_tracing_connection.cc | 4 +- .../lineage/v1/lineage_connection.cc | 8 +- .../lineage/v1/lineage_connection.h | 11 +- .../datacatalog/v1/data_catalog_connection.cc | 8 +- .../datacatalog/v1/data_catalog_connection.h | 10 +- .../data_catalog_tracing_connection.cc | 4 +- .../v1/policy_tag_manager_connection.h | 1 - ...icy_tag_manager_serialization_connection.h | 1 - .../datafusion/v1/data_fusion_connection.cc | 16 +- .../datafusion/v1/data_fusion_connection.h | 18 +- .../data_fusion_tracing_connection.cc | 8 +- .../v1/data_migration_connection.cc | 92 +++++----- .../v1/data_migration_connection.h | 94 +++++----- .../data_migration_tracing_connection.cc | 46 ++--- .../cloud/dataplex/v1/catalog_connection.cc | 36 ++-- google/cloud/dataplex/v1/catalog_connection.h | 38 ++-- google/cloud/dataplex/v1/content_connection.h | 1 - .../cloud/dataplex/v1/data_scan_connection.cc | 12 +- .../cloud/dataplex/v1/data_scan_connection.h | 14 +- .../dataplex/v1/data_taxonomy_connection.cc | 36 ++-- .../dataplex/v1/data_taxonomy_connection.h | 38 ++-- .../cloud/dataplex/v1/dataplex_connection.cc | 60 +++--- .../cloud/dataplex/v1/dataplex_connection.h | 74 ++++---- .../v1/internal/catalog_tracing_connection.cc | 18 +- .../internal/data_scan_tracing_connection.cc | 6 +- .../data_taxonomy_tracing_connection.cc | 18 +- .../internal/dataplex_tracing_connection.cc | 30 +-- .../cloud/dataplex/v1/metadata_connection.h | 1 - .../v1/autoscaling_policy_connection.h | 1 - .../v1/batch_controller_connection.cc | 4 +- .../dataproc/v1/batch_controller_connection.h | 7 +- .../v1/cluster_controller_connection.cc | 24 +-- .../v1/cluster_controller_connection.h | 30 ++- .../batch_controller_tracing_connection.cc | 2 +- .../cluster_controller_tracing_connection.cc | 12 +- .../job_controller_tracing_connection.cc | 2 +- ...ode_group_controller_tracing_connection.cc | 4 +- .../session_controller_tracing_connection.cc | 6 +- .../workflow_template_tracing_connection.cc | 4 +- .../dataproc/v1/job_controller_connection.cc | 4 +- .../dataproc/v1/job_controller_connection.h | 6 +- .../v1/node_group_controller_connection.cc | 8 +- .../v1/node_group_controller_connection.h | 10 +- .../v1/session_controller_connection.cc | 12 +- .../v1/session_controller_connection.h | 16 +- .../session_template_controller_connection.h | 1 - .../v1/workflow_template_connection.cc | 8 +- .../v1/workflow_template_connection.h | 11 +- .../admin/v1/datastore_admin_connection.cc | 16 +- .../admin/v1/datastore_admin_connection.h | 20 +- .../datastore_admin_tracing_connection.cc | 8 +- .../cloud/datastore/v1/datastore_connection.h | 1 - .../datastream/v1/datastream_connection.cc | 40 ++-- .../datastream/v1/datastream_connection.h | 46 +++-- .../internal/datastream_tracing_connection.cc | 20 +- .../deploy/v1/cloud_deploy_connection.cc | 56 +++--- .../cloud/deploy/v1/cloud_deploy_connection.h | 62 +++---- .../cloud_deploy_tracing_connection.cc | 28 +-- .../cloud/dialogflow_cx/agents_connection.cc | 8 +- .../cloud/dialogflow_cx/agents_connection.h | 12 +- .../dialogflow_cx/changelogs_connection.h | 1 - .../dialogflow_cx/deployments_connection.h | 1 - .../dialogflow_cx/entity_types_connection.cc | 8 +- .../dialogflow_cx/entity_types_connection.h | 10 +- .../dialogflow_cx/environments_connection.cc | 16 +- .../dialogflow_cx/environments_connection.h | 19 +- .../dialogflow_cx/experiments_connection.h | 1 - .../cloud/dialogflow_cx/flows_connection.cc | 12 +- google/cloud/dialogflow_cx/flows_connection.h | 17 +- .../dialogflow_cx/generators_connection.h | 1 - .../cloud/dialogflow_cx/intents_connection.cc | 8 +- .../cloud/dialogflow_cx/intents_connection.h | 10 +- .../internal/agents_tracing_connection.cc | 4 +- .../entity_types_tracing_connection.cc | 4 +- .../environments_tracing_connection.cc | 8 +- .../internal/flows_tracing_connection.cc | 6 +- .../internal/intents_tracing_connection.cc | 4 +- .../internal/test_cases_tracing_connection.cc | 8 +- .../internal/versions_tracing_connection.cc | 4 +- google/cloud/dialogflow_cx/pages_connection.h | 1 - .../security_settings_connection.h | 1 - .../session_entity_types_connection.h | 1 - .../cloud/dialogflow_cx/sessions_connection.h | 1 - .../dialogflow_cx/test_cases_connection.cc | 16 +- .../dialogflow_cx/test_cases_connection.h | 19 +- .../transition_route_groups_connection.h | 1 - .../dialogflow_cx/versions_connection.cc | 8 +- .../cloud/dialogflow_cx/versions_connection.h | 11 +- .../cloud/dialogflow_cx/webhooks_connection.h | 1 - .../cloud/dialogflow_es/agents_connection.cc | 16 +- .../cloud/dialogflow_es/agents_connection.h | 22 +-- .../dialogflow_es/answer_records_connection.h | 1 - .../cloud/dialogflow_es/contexts_connection.h | 1 - .../conversation_datasets_connection.cc | 12 +- .../conversation_datasets_connection.h | 14 +- .../conversation_models_connection.cc | 20 +- .../conversation_models_connection.h | 23 ++- .../conversation_profiles_connection.cc | 8 +- .../conversation_profiles_connection.h | 10 +- .../dialogflow_es/conversations_connection.h | 1 - .../dialogflow_es/documents_connection.cc | 24 +-- .../dialogflow_es/documents_connection.h | 26 +-- .../dialogflow_es/entity_types_connection.cc | 20 +- .../dialogflow_es/entity_types_connection.h | 26 ++- .../dialogflow_es/environments_connection.h | 1 - .../dialogflow_es/fulfillments_connection.h | 1 - .../cloud/dialogflow_es/intents_connection.cc | 8 +- .../cloud/dialogflow_es/intents_connection.h | 11 +- .../internal/agents_tracing_connection.cc | 8 +- ...onversation_datasets_tracing_connection.cc | 6 +- .../conversation_models_tracing_connection.cc | 10 +- ...onversation_profiles_tracing_connection.cc | 4 +- .../internal/documents_tracing_connection.cc | 12 +- .../entity_types_tracing_connection.cc | 10 +- .../internal/intents_tracing_connection.cc | 4 +- .../knowledge_bases_connection.h | 1 - .../dialogflow_es/participants_connection.h | 1 - .../session_entity_types_connection.h | 1 - .../cloud/dialogflow_es/sessions_connection.h | 1 - .../cloud/dialogflow_es/versions_connection.h | 1 - .../v1/completion_connection.cc | 8 +- .../v1/completion_connection.h | 12 +- .../discoveryengine/v1/control_connection.h | 1 - .../v1/conversational_search_connection.h | 1 - .../v1/data_store_connection.cc | 8 +- .../v1/data_store_connection.h | 10 +- .../discoveryengine/v1/document_connection.cc | 8 +- .../discoveryengine/v1/document_connection.h | 10 +- .../discoveryengine/v1/engine_connection.cc | 8 +- .../discoveryengine/v1/engine_connection.h | 10 +- .../v1/grounded_generation_connection.h | 1 - .../internal/completion_tracing_connection.cc | 4 +- .../internal/data_store_tracing_connection.cc | 4 +- .../internal/document_tracing_connection.cc | 4 +- .../v1/internal/engine_tracing_connection.cc | 4 +- .../v1/internal/project_tracing_connection.cc | 2 +- .../v1/internal/schema_tracing_connection.cc | 6 +- .../site_search_engine_tracing_connection.cc | 16 +- .../internal/user_event_tracing_connection.cc | 2 +- .../discoveryengine/v1/project_connection.cc | 4 +- .../discoveryengine/v1/project_connection.h | 6 +- .../discoveryengine/v1/rank_connection.h | 1 - .../v1/recommendation_connection.h | 1 - .../discoveryengine/v1/schema_connection.cc | 12 +- .../discoveryengine/v1/schema_connection.h | 14 +- .../discoveryengine/v1/search_connection.h | 1 - .../v1/site_search_engine_connection.cc | 32 ++-- .../v1/site_search_engine_connection.h | 35 ++-- .../v1/user_event_connection.cc | 4 +- .../v1/user_event_connection.h | 6 +- google/cloud/dlp/v2/dlp_connection.h | 1 - .../v1/document_processor_connection.cc | 44 ++--- .../v1/document_processor_connection.h | 46 ++--- .../document_processor_tracing_connection.cc | 22 +-- google/cloud/domains/v1/domains_connection.cc | 32 ++-- google/cloud/domains/v1/domains_connection.h | 34 ++-- .../v1/internal/domains_tracing_connection.cc | 16 +- .../v1/edge_container_connection.cc | 36 ++-- .../v1/edge_container_connection.h | 38 ++-- .../edge_container_tracing_connection.cc | 18 +- .../edgenetwork/v1/edge_network_connection.cc | 40 ++-- .../edgenetwork/v1/edge_network_connection.h | 46 +++-- .../edge_network_tracing_connection.cc | 20 +- .../v1/essential_contacts_connection.h | 1 - .../publishing/v1/publisher_connection.h | 1 - .../cloud/eventarc/v1/eventarc_connection.cc | 32 ++-- .../cloud/eventarc/v1/eventarc_connection.h | 40 ++-- .../internal/eventarc_tracing_connection.cc | 16 +- .../v1/cloud_filestore_manager_connection.cc | 44 ++--- .../v1/cloud_filestore_manager_connection.h | 48 +++-- ...ud_filestore_manager_tracing_connection.cc | 22 +-- .../v1/cloud_functions_connection.cc | 12 +- .../functions/v1/cloud_functions_connection.h | 14 +- .../cloud_functions_tracing_connection.cc | 6 +- .../cloud/functions/v2/function_connection.cc | 12 +- .../cloud/functions/v2/function_connection.h | 14 +- .../internal/function_tracing_connection.cc | 6 +- .../gkebackup/v1/backup_for_gke_connection.cc | 48 ++--- .../gkebackup/v1/backup_for_gke_connection.h | 54 +++--- .../backup_for_gke_tracing_connection.cc | 24 +-- google/cloud/gkehub/v1/gke_hub_connection.cc | 24 +-- google/cloud/gkehub/v1/gke_hub_connection.h | 28 ++- .../v1/internal/gke_hub_tracing_connection.cc | 12 +- .../v1/attached_clusters_connection.cc | 16 +- .../v1/attached_clusters_connection.h | 18 +- .../v1/aws_clusters_connection.cc | 28 +-- .../v1/aws_clusters_connection.h | 30 +-- .../v1/azure_clusters_connection.cc | 32 ++-- .../v1/azure_clusters_connection.h | 34 ++-- .../attached_clusters_tracing_connection.cc | 8 +- .../aws_clusters_tracing_connection.cc | 14 +- .../azure_clusters_tracing_connection.cc | 16 +- google/cloud/iam/admin/v1/iam_connection.h | 1 - .../v1/iam_credentials_connection.h | 1 - google/cloud/iam/v1/iam_policy_connection.h | 1 - .../internal/policies_tracing_connection.cc | 6 +- google/cloud/iam/v2/policies_connection.cc | 15 +- google/cloud/iam/v2/policies_connection.h | 17 +- .../identity_aware_proxy_admin_connection.h | 1 - .../identity_aware_proxy_o_auth_connection.h | 1 - google/cloud/ids/v1/ids_connection.cc | 8 +- google/cloud/ids/v1/ids_connection.h | 11 +- .../ids/v1/internal/ids_tracing_connection.cc | 4 +- .../inventory/v1/key_dashboard_connection.h | 1 - .../inventory/v1/key_tracking_connection.h | 1 - .../cloud/kms/v1/autokey_admin_connection.h | 1 - google/cloud/kms/v1/autokey_connection.cc | 4 +- google/cloud/kms/v1/autokey_connection.h | 7 +- google/cloud/kms/v1/ekm_connection.h | 1 - .../v1/internal/autokey_tracing_connection.cc | 2 +- .../cloud/kms/v1/key_management_connection.h | 1 - .../cloud/language/v1/language_connection.h | 1 - .../cloud/language/v2/language_connection.h | 1 - .../v2/config_service_v2_connection.cc | 20 +- .../logging/v2/config_service_v2_connection.h | 26 ++- .../config_service_v2_tracing_connection.cc | 10 +- .../v2/logging_service_v2_connection.h | 1 - .../v2/metrics_service_v2_connection.h | 1 - .../managed_identities_tracing_connection.cc | 14 +- .../v1/managed_identities_connection.cc | 28 +-- .../v1/managed_identities_connection.h | 32 ++-- .../managed_kafka_tracing_connection.cc | 6 +- .../v1/managed_kafka_connection.cc | 12 +- .../v1/managed_kafka_connection.h | 14 +- .../memcache/v1/cloud_memcache_connection.cc | 24 +-- .../memcache/v1/cloud_memcache_connection.h | 26 +-- .../cloud_memcache_tracing_connection.cc | 12 +- .../v1/dataproc_metastore_connection.cc | 48 ++--- .../v1/dataproc_metastore_connection.h | 54 +++--- ...ataproc_metastore_federation_connection.cc | 12 +- ...dataproc_metastore_federation_connection.h | 14 +- ...metastore_federation_tracing_connection.cc | 6 +- .../dataproc_metastore_tracing_connection.cc | 24 +-- .../migration_center_tracing_connection.cc | 46 ++--- .../v1/migration_center_connection.cc | 92 +++++----- .../v1/migration_center_connection.h | 97 +++++----- .../dashboard/v1/dashboards_connection.h | 1 - .../metrics_scopes_tracing_connection.cc | 4 +- .../v1/metrics_scopes_connection.cc | 8 +- .../v1/metrics_scopes_connection.h | 10 +- .../monitoring/v3/alert_policy_connection.h | 1 - google/cloud/monitoring/v3/group_connection.h | 1 - .../cloud/monitoring/v3/metric_connection.h | 1 - .../v3/notification_channel_connection.h | 1 - google/cloud/monitoring/v3/query_connection.h | 1 - .../v3/service_monitoring_connection.h | 1 - .../cloud/monitoring/v3/snooze_connection.h | 1 - .../monitoring/v3/uptime_check_connection.h | 1 - .../v1/internal/net_app_tracing_connection.cc | 64 +++---- google/cloud/netapp/v1/net_app_connection.cc | 128 ++++++------- google/cloud/netapp/v1/net_app_connection.h | 138 +++++++------- .../networkconnectivity/v1/hub_connection.cc | 32 ++-- .../networkconnectivity/v1/hub_connection.h | 40 ++-- .../v1/internal/hub_tracing_connection.cc | 16 +- ...policy_based_routing_tracing_connection.cc | 4 +- .../v1/policy_based_routing_connection.cc | 8 +- .../v1/policy_based_routing_connection.h | 10 +- .../reachability_tracing_connection.cc | 8 +- .../v1/reachability_connection.cc | 16 +- .../v1/reachability_connection.h | 18 +- .../network_security_tracing_connection.cc | 18 +- .../v1/network_security_connection.cc | 36 ++-- .../v1/network_security_connection.h | 38 ++-- .../networkservices/v1/dep_connection.cc | 24 +-- .../cloud/networkservices/v1/dep_connection.h | 26 +-- .../v1/internal/dep_tracing_connection.cc | 12 +- .../network_services_tracing_connection.cc | 46 ++--- .../v1/network_services_connection.cc | 92 +++++----- .../v1/network_services_connection.h | 97 +++++----- .../managed_notebook_tracing_connection.cc | 20 +- .../internal/notebook_tracing_connection.cc | 46 ++--- .../v1/managed_notebook_connection.cc | 40 ++-- .../v1/managed_notebook_connection.h | 48 +++-- .../cloud/notebooks/v1/notebook_connection.cc | 92 +++++----- .../cloud/notebooks/v1/notebook_connection.h | 95 +++++----- .../internal/notebook_tracing_connection.cc | 18 +- .../cloud/notebooks/v2/notebook_connection.cc | 36 ++-- .../cloud/notebooks/v2/notebook_connection.h | 39 ++-- .../v1/fleet_routing_connection.cc | 4 +- .../v1/fleet_routing_connection.h | 6 +- .../fleet_routing_tracing_connection.cc | 2 +- .../orgpolicy/v2/org_policy_connection.h | 1 - .../v1/agent_endpoint_connection.h | 1 - .../os_config_zonal_tracing_connection.cc | 6 +- .../cloud/osconfig/v1/os_config_connection.h | 1 - .../osconfig/v1/os_config_zonal_connection.cc | 12 +- .../osconfig/v1/os_config_zonal_connection.h | 14 +- google/cloud/oslogin/v1/os_login_connection.h | 1 - .../internal/simulator_tracing_connection.cc | 2 +- .../v1/simulator_connection.cc | 4 +- .../policysimulator/v1/simulator_connection.h | 6 +- .../iam/v3/policy_troubleshooter_connection.h | 1 - .../v1/iam_checker_connection.h | 1 - .../v1/certificate_authority_connection.cc | 56 +++--- .../v1/certificate_authority_connection.h | 59 +++--- ...ertificate_authority_tracing_connection.cc | 28 +-- google/cloud/profiler/v2/export_connection.h | 1 - .../cloud/profiler/v2/profiler_connection.h | 1 - .../public_certificate_authority_connection.h | 1 - .../admin/subscription_admin_connection.h | 1 - .../pubsub/admin/topic_admin_connection.h | 1 - google/cloud/pubsub/schema_connection.h | 1 - google/cloud/pubsublite/admin_connection.cc | 4 +- google/cloud/pubsublite/admin_connection.h | 6 +- .../internal/admin_tracing_connection.cc | 2 +- .../cloud/pubsublite/topic_stats_connection.h | 1 - ...migration_assessment_tracing_connection.cc | 14 +- .../rapid_migration_assessment_connection.cc | 28 +-- .../rapid_migration_assessment_connection.h | 30 +-- .../v1/recaptcha_enterprise_connection.h | 1 - .../recommender/v1/recommender_connection.h | 1 - .../v1/cloud_redis_cluster_connection.cc | 12 +- .../v1/cloud_redis_cluster_connection.h | 15 +- .../cloud_redis_cluster_tracing_connection.cc | 6 +- .../cloud/redis/v1/cloud_redis_connection.cc | 32 ++-- .../cloud/redis/v1/cloud_redis_connection.h | 40 ++-- .../cloud_redis_tracing_connection.cc | 16 +- .../resourcemanager/v3/folders_connection.cc | 20 +- .../resourcemanager/v3/folders_connection.h | 23 ++- .../v3/internal/folders_tracing_connection.cc | 10 +- .../internal/projects_tracing_connection.cc | 10 +- .../tag_bindings_tracing_connection.cc | 4 +- .../internal/tag_holds_tracing_connection.cc | 4 +- .../internal/tag_keys_tracing_connection.cc | 6 +- .../internal/tag_values_tracing_connection.cc | 6 +- .../v3/organizations_connection.h | 1 - .../resourcemanager/v3/projects_connection.cc | 20 +- .../resourcemanager/v3/projects_connection.h | 23 ++- .../v3/tag_bindings_connection.cc | 8 +- .../v3/tag_bindings_connection.h | 10 +- .../v3/tag_holds_connection.cc | 8 +- .../resourcemanager/v3/tag_holds_connection.h | 10 +- .../resourcemanager/v3/tag_keys_connection.cc | 12 +- .../resourcemanager/v3/tag_keys_connection.h | 14 +- .../v3/tag_values_connection.cc | 12 +- .../v3/tag_values_connection.h | 14 +- .../v1/resource_settings_connection.h | 1 - .../cloud/retail/v2/analytics_connection.cc | 4 +- google/cloud/retail/v2/analytics_connection.h | 6 +- google/cloud/retail/v2/catalog_connection.h | 1 - .../cloud/retail/v2/completion_connection.cc | 4 +- .../cloud/retail/v2/completion_connection.h | 6 +- google/cloud/retail/v2/control_connection.h | 1 - .../internal/analytics_tracing_connection.cc | 2 +- .../internal/completion_tracing_connection.cc | 2 +- .../v2/internal/model_tracing_connection.cc | 4 +- .../v2/internal/product_tracing_connection.cc | 14 +- .../internal/user_event_tracing_connection.cc | 6 +- google/cloud/retail/v2/model_connection.cc | 8 +- google/cloud/retail/v2/model_connection.h | 12 +- .../cloud/retail/v2/prediction_connection.h | 1 - google/cloud/retail/v2/product_connection.cc | 28 +-- google/cloud/retail/v2/product_connection.h | 30 +-- google/cloud/retail/v2/search_connection.h | 1 - .../retail/v2/serving_config_connection.h | 1 - .../cloud/retail/v2/user_event_connection.cc | 12 +- .../cloud/retail/v2/user_event_connection.h | 14 +- google/cloud/run/v2/executions_connection.cc | 8 +- google/cloud/run/v2/executions_connection.h | 12 +- .../internal/executions_tracing_connection.cc | 4 +- .../v2/internal/jobs_tracing_connection.cc | 8 +- .../internal/revisions_tracing_connection.cc | 2 +- .../internal/services_tracing_connection.cc | 6 +- google/cloud/run/v2/jobs_connection.cc | 17 +- google/cloud/run/v2/jobs_connection.h | 22 +-- google/cloud/run/v2/revisions_connection.cc | 4 +- google/cloud/run/v2/revisions_connection.h | 7 +- google/cloud/run/v2/services_connection.cc | 12 +- google/cloud/run/v2/services_connection.h | 17 +- google/cloud/run/v2/tasks_connection.h | 1 - .../scheduler/v1/cloud_scheduler_connection.h | 1 - .../v1/secret_manager_connection.h | 1 - ...ecure_source_manager_tracing_connection.cc | 8 +- .../v1/secure_source_manager_connection.cc | 16 +- .../v1/secure_source_manager_connection.h | 18 +- .../security_center_tracing_connection.cc | 4 +- .../v1/security_center_connection.cc | 8 +- .../v1/security_center_connection.h | 10 +- .../security_center_tracing_connection.cc | 2 +- .../v2/security_center_connection.cc | 4 +- .../v2/security_center_connection.h | 6 +- .../security_center_management_connection.h | 1 - .../v1/quota_controller_connection.h | 1 - .../v1/service_controller_connection.h | 1 - .../v2/service_controller_connection.h | 1 - .../servicedirectory/v1/lookup_connection.h | 1 - .../v1/registration_connection.h | 1 - .../v1/service_health_connection.h | 1 - .../service_manager_tracing_connection.cc | 10 +- .../v1/service_manager_connection.cc | 20 +- .../v1/service_manager_connection.h | 22 +-- .../service_usage_tracing_connection.cc | 6 +- .../v1/service_usage_connection.cc | 12 +- .../v1/service_usage_connection.h | 14 +- .../cloud/shell/v1/cloud_shell_connection.cc | 16 +- .../cloud/shell/v1/cloud_shell_connection.h | 18 +- .../cloud_shell_tracing_connection.cc | 8 +- .../admin/database_admin_connection.cc | 24 +-- .../spanner/admin/database_admin_connection.h | 27 ++- .../admin/instance_admin_connection.cc | 24 +-- .../spanner/admin/instance_admin_connection.h | 26 +-- .../database_admin_rest_connection_impl.cc | 30 ++- .../database_admin_rest_connection_impl.h | 24 +-- .../database_admin_tracing_connection.cc | 12 +- .../instance_admin_rest_connection_impl.cc | 30 ++- .../instance_admin_rest_connection_impl.h | 24 +-- .../instance_admin_tracing_connection.cc | 12 +- .../cloud/speech/v1/adaptation_connection.h | 1 - .../v1/internal/speech_tracing_connection.cc | 2 +- google/cloud/speech/v1/speech_connection.cc | 4 +- google/cloud/speech/v1/speech_connection.h | 6 +- .../v2/internal/speech_tracing_connection.cc | 26 +-- google/cloud/speech/v2/speech_connection.cc | 52 +++--- google/cloud/speech/v2/speech_connection.h | 54 +++--- ...l_available_database_versions_connection.h | 1 - .../cloud/sql/v1/sql_backup_runs_connection.h | 1 - google/cloud/sql/v1/sql_connect_connection.h | 1 - .../cloud/sql/v1/sql_databases_connection.h | 1 - google/cloud/sql/v1/sql_events_connection.h | 1 - google/cloud/sql/v1/sql_flags_connection.h | 1 - .../sql/v1/sql_iam_policies_connection.h | 1 - .../sql/v1/sql_instance_names_connection.h | 1 - .../cloud/sql/v1/sql_instances_connection.h | 1 - .../cloud/sql/v1/sql_operations_connection.h | 1 - google/cloud/sql/v1/sql_regions_connection.h | 1 - .../cloud/sql/v1/sql_ssl_certs_connection.h | 1 - google/cloud/sql/v1/sql_tiers_connection.h | 1 - google/cloud/sql/v1/sql_users_connection.h | 1 - .../storage_control_tracing_connection.cc | 2 +- .../v2/storage_control_connection.cc | 4 +- .../v2/storage_control_connection.h | 7 +- .../v1/storage_insights_connection.h | 1 - .../storage_transfer_tracing_connection.cc | 2 +- .../v1/storage_transfer_connection.cc | 4 +- .../v1/storage_transfer_connection.h | 6 +- .../support/v2/case_attachment_connection.h | 1 - google/cloud/support/v2/case_connection.h | 1 - google/cloud/support/v2/comment_connection.h | 1 - google/cloud/talent/v4/company_connection.h | 1 - .../cloud/talent/v4/completion_connection.h | 1 - google/cloud/talent/v4/event_connection.h | 1 - .../v4/internal/job_tracing_connection.cc | 6 +- google/cloud/talent/v4/job_connection.cc | 12 +- google/cloud/talent/v4/job_connection.h | 14 +- google/cloud/talent/v4/tenant_connection.h | 1 - .../cloud/tasks/v2/cloud_tasks_connection.h | 1 - .../telco_automation_tracing_connection.cc | 8 +- .../v1/telco_automation_connection.cc | 16 +- .../v1/telco_automation_connection.h | 18 +- .../v1/text_to_speech_connection.h | 1 - ...imeseries_insights_controller_connection.h | 1 - .../tpu/v1/internal/tpu_tracing_connection.cc | 10 +- google/cloud/tpu/v1/tpu_connection.cc | 20 +- google/cloud/tpu/v1/tpu_connection.h | 27 ++- .../tpu/v2/internal/tpu_tracing_connection.cc | 10 +- google/cloud/tpu/v2/tpu_connection.cc | 20 +- google/cloud/tpu/v2/tpu_connection.h | 27 ++- google/cloud/trace/v1/trace_connection.h | 1 - google/cloud/trace/v2/trace_connection.h | 1 - .../translation_tracing_connection.cc | 8 +- .../translate/v3/translation_connection.cc | 16 +- .../translate/v3/translation_connection.h | 18 +- .../internal/livestream_tracing_connection.cc | 22 +-- .../livestream/v1/livestream_connection.cc | 44 ++--- .../livestream/v1/livestream_connection.h | 53 +++--- .../video_stitcher_tracing_connection.cc | 24 +-- .../stitcher/v1/video_stitcher_connection.cc | 48 ++--- .../stitcher/v1/video_stitcher_connection.h | 53 +++--- .../transcoder/v1/transcoder_connection.h | 1 - .../video_intelligence_tracing_connection.cc | 2 +- .../v1/video_intelligence_connection.cc | 4 +- .../v1/video_intelligence_connection.h | 6 +- .../vision/v1/image_annotator_connection.cc | 8 +- .../vision/v1/image_annotator_connection.h | 10 +- .../image_annotator_tracing_connection.cc | 4 +- .../product_search_tracing_connection.cc | 4 +- .../vision/v1/product_search_connection.cc | 8 +- .../vision/v1/product_search_connection.h | 10 +- .../vm_migration_tracing_connection.cc | 54 +++--- .../vmmigration/v1/vm_migration_connection.cc | 108 +++++------ .../vmmigration/v1/vm_migration_connection.h | 115 ++++++------ .../vmware_engine_tracing_connection.cc | 78 ++++---- .../v1/vmware_engine_connection.cc | 156 ++++++++-------- .../v1/vmware_engine_connection.h | 162 ++++++++--------- .../internal/vpc_access_tracing_connection.cc | 4 +- .../vpcaccess/v1/vpc_access_connection.cc | 8 +- .../vpcaccess/v1/vpc_access_connection.h | 10 +- .../internal/web_risk_tracing_connection.cc | 2 +- .../cloud/webrisk/v1/web_risk_connection.cc | 4 +- google/cloud/webrisk/v1/web_risk_connection.h | 7 +- .../v1/web_security_scanner_connection.h | 1 - .../executions/v1/executions_connection.h | 1 - .../internal/workflows_tracing_connection.cc | 6 +- .../workflows/v1/workflows_connection.cc | 12 +- .../cloud/workflows/v1/workflows_connection.h | 14 +- .../workstations_tracing_connection.cc | 22 +-- .../v1/workstations_connection.cc | 44 ++--- .../workstations/v1/workstations_connection.h | 46 ++--- 1122 files changed, 9057 insertions(+), 9970 deletions(-) diff --git a/google/cloud/accessapproval/v1/access_approval_connection.h b/google/cloud/accessapproval/v1/access_approval_connection.h index e09c865523060..ef6baf0810ecc 100644 --- a/google/cloud/accessapproval/v1/access_approval_connection.h +++ b/google/cloud/accessapproval/v1/access_approval_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/accessapproval/v1/access_approval_connection_idempotency_policy.h" #include "google/cloud/accessapproval/v1/internal/access_approval_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/accesscontextmanager/v1/access_context_manager_connection.cc b/google/cloud/accesscontextmanager/v1/access_context_manager_connection.cc index f0bbd9dbd7931..36241db008fa2 100644 --- a/google/cloud/accesscontextmanager/v1/access_context_manager_connection.cc +++ b/google/cloud/accesscontextmanager/v1/access_context_manager_connection.cc @@ -62,7 +62,7 @@ AccessContextManagerConnection::CreateAccessPolicy( StatusOr AccessContextManagerConnection::CreateAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::AccessPolicy const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ AccessContextManagerConnection::CreateAccessPolicy( future> AccessContextManagerConnection::CreateAccessPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -87,7 +87,7 @@ AccessContextManagerConnection::UpdateAccessPolicy( StatusOr AccessContextManagerConnection::UpdateAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateAccessPolicyRequest const&) { return StatusOr( @@ -96,7 +96,7 @@ AccessContextManagerConnection::UpdateAccessPolicy( future> AccessContextManagerConnection::UpdateAccessPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -115,7 +115,7 @@ AccessContextManagerConnection::DeleteAccessPolicy( StatusOr AccessContextManagerConnection::DeleteAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteAccessPolicyRequest const&) { return StatusOr( @@ -125,7 +125,7 @@ AccessContextManagerConnection::DeleteAccessPolicy( future> AccessContextManagerConnection::DeleteAccessPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -157,7 +157,7 @@ AccessContextManagerConnection::CreateAccessLevel( StatusOr AccessContextManagerConnection::CreateAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateAccessLevelRequest const&) { return StatusOr( @@ -166,7 +166,7 @@ AccessContextManagerConnection::CreateAccessLevel( future> AccessContextManagerConnection::CreateAccessLevel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -183,7 +183,7 @@ AccessContextManagerConnection::UpdateAccessLevel( StatusOr AccessContextManagerConnection::UpdateAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateAccessLevelRequest const&) { return StatusOr( @@ -192,7 +192,7 @@ AccessContextManagerConnection::UpdateAccessLevel( future> AccessContextManagerConnection::UpdateAccessLevel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -211,7 +211,7 @@ AccessContextManagerConnection::DeleteAccessLevel( StatusOr AccessContextManagerConnection::DeleteAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteAccessLevelRequest const&) { return StatusOr( @@ -221,7 +221,7 @@ AccessContextManagerConnection::DeleteAccessLevel( future> AccessContextManagerConnection::DeleteAccessLevel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -240,7 +240,7 @@ AccessContextManagerConnection::ReplaceAccessLevels( StatusOr AccessContextManagerConnection::ReplaceAccessLevels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: ReplaceAccessLevelsRequest const&) { return StatusOr( @@ -250,7 +250,7 @@ AccessContextManagerConnection::ReplaceAccessLevels( future> AccessContextManagerConnection::ReplaceAccessLevels( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -282,7 +282,7 @@ AccessContextManagerConnection::CreateServicePerimeter( StatusOr AccessContextManagerConnection::CreateServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateServicePerimeterRequest const&) { return StatusOr( @@ -291,7 +291,7 @@ AccessContextManagerConnection::CreateServicePerimeter( future> AccessContextManagerConnection::CreateServicePerimeter( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -308,7 +308,7 @@ AccessContextManagerConnection::UpdateServicePerimeter( StatusOr AccessContextManagerConnection::UpdateServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateServicePerimeterRequest const&) { return StatusOr( @@ -317,7 +317,7 @@ AccessContextManagerConnection::UpdateServicePerimeter( future> AccessContextManagerConnection::UpdateServicePerimeter( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -336,7 +336,7 @@ AccessContextManagerConnection::DeleteServicePerimeter( StatusOr AccessContextManagerConnection::DeleteServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteServicePerimeterRequest const&) { return StatusOr( @@ -346,7 +346,7 @@ AccessContextManagerConnection::DeleteServicePerimeter( future> AccessContextManagerConnection::DeleteServicePerimeter( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -366,7 +366,7 @@ AccessContextManagerConnection::ReplaceServicePerimeters( StatusOr AccessContextManagerConnection::ReplaceServicePerimeters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: ReplaceServicePerimetersRequest const&) { return StatusOr( @@ -376,7 +376,7 @@ AccessContextManagerConnection::ReplaceServicePerimeters( future> AccessContextManagerConnection::ReplaceServicePerimeters( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -396,7 +396,7 @@ AccessContextManagerConnection::CommitServicePerimeters( StatusOr AccessContextManagerConnection::CommitServicePerimeters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CommitServicePerimetersRequest const&) { return StatusOr( @@ -406,7 +406,7 @@ AccessContextManagerConnection::CommitServicePerimeters( future> AccessContextManagerConnection::CommitServicePerimeters( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -440,7 +440,7 @@ AccessContextManagerConnection::CreateGcpUserAccessBinding( StatusOr AccessContextManagerConnection::CreateGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateGcpUserAccessBindingRequest const&) { return StatusOr( @@ -450,7 +450,7 @@ AccessContextManagerConnection::CreateGcpUserAccessBinding( future< StatusOr> AccessContextManagerConnection::CreateGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -468,7 +468,7 @@ AccessContextManagerConnection::UpdateGcpUserAccessBinding( StatusOr AccessContextManagerConnection::UpdateGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateGcpUserAccessBindingRequest const&) { return StatusOr( @@ -478,7 +478,7 @@ AccessContextManagerConnection::UpdateGcpUserAccessBinding( future< StatusOr> AccessContextManagerConnection::UpdateGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -497,7 +497,7 @@ AccessContextManagerConnection::DeleteGcpUserAccessBinding( StatusOr AccessContextManagerConnection::DeleteGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteGcpUserAccessBindingRequest const&) { return StatusOr( @@ -507,7 +507,7 @@ AccessContextManagerConnection::DeleteGcpUserAccessBinding( future> AccessContextManagerConnection::DeleteGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/accesscontextmanager/v1/access_context_manager_connection.h b/google/cloud/accesscontextmanager/v1/access_context_manager_connection.h index 834440b1c342c..3cb1d7f0c3e2d 100644 --- a/google/cloud/accesscontextmanager/v1/access_context_manager_connection.h +++ b/google/cloud/accesscontextmanager/v1/access_context_manager_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/accesscontextmanager/v1/access_context_manager_connection_idempotency_policy.h" #include "google/cloud/accesscontextmanager/v1/internal/access_context_manager_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -208,12 +208,12 @@ class AccessContextManagerConnection { google::identity::accesscontextmanager::v1::AccessPolicy const& request); virtual StatusOr CreateAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::AccessPolicy const& request); virtual future< StatusOr> - CreateAccessPolicy(google::cloud::ExperimentalTag, + CreateAccessPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -222,13 +222,13 @@ class AccessContextManagerConnection { UpdateAccessPolicyRequest const& request); virtual StatusOr UpdateAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateAccessPolicyRequest const& request); virtual future< StatusOr> - UpdateAccessPolicy(google::cloud::ExperimentalTag, + UpdateAccessPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual future DeleteAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteAccessPolicyRequest const& request); virtual future> - DeleteAccessPolicy(google::cloud::ExperimentalTag, + DeleteAccessPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -262,13 +262,13 @@ class AccessContextManagerConnection { CreateAccessLevelRequest const& request); virtual StatusOr CreateAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateAccessLevelRequest const& request); virtual future< StatusOr> - CreateAccessLevel(google::cloud::ExperimentalTag, + CreateAccessLevel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -277,13 +277,13 @@ class AccessContextManagerConnection { UpdateAccessLevelRequest const& request); virtual StatusOr UpdateAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateAccessLevelRequest const& request); virtual future< StatusOr> - UpdateAccessLevel(google::cloud::ExperimentalTag, + UpdateAccessLevel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future DeleteAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteAccessLevelRequest const& request); virtual future> - DeleteAccessLevel(google::cloud::ExperimentalTag, + DeleteAccessLevel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future ReplaceAccessLevels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: ReplaceAccessLevelsRequest const& request); virtual future> - ReplaceAccessLevels(google::cloud::ExperimentalTag, + ReplaceAccessLevels(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange< @@ -332,13 +332,13 @@ class AccessContextManagerConnection { CreateServicePerimeterRequest const& request); virtual StatusOr CreateServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateServicePerimeterRequest const& request); virtual future< StatusOr> - CreateServicePerimeter(google::cloud::ExperimentalTag, + CreateServicePerimeter(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -347,13 +347,13 @@ class AccessContextManagerConnection { UpdateServicePerimeterRequest const& request); virtual StatusOr UpdateServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateServicePerimeterRequest const& request); virtual future< StatusOr> - UpdateServicePerimeter(google::cloud::ExperimentalTag, + UpdateServicePerimeter(ExperimentalTag, google::longrunning::Operation const& operation); virtual future DeleteServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteServicePerimeterRequest const& request); virtual future> - DeleteServicePerimeter(google::cloud::ExperimentalTag, + DeleteServicePerimeter(ExperimentalTag, google::longrunning::Operation const& operation); virtual future ReplaceServicePerimeters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: ReplaceServicePerimetersRequest const& request); virtual future> - ReplaceServicePerimeters(google::cloud::ExperimentalTag, + ReplaceServicePerimeters(ExperimentalTag, google::longrunning::Operation const& operation); virtual future CommitServicePerimeters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CommitServicePerimetersRequest const& request); virtual future> - CommitServicePerimeters(google::cloud::ExperimentalTag, + CommitServicePerimeters(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange< @@ -418,13 +418,13 @@ class AccessContextManagerConnection { CreateGcpUserAccessBindingRequest const& request); virtual StatusOr CreateGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateGcpUserAccessBindingRequest const& request); virtual future> - CreateGcpUserAccessBinding(google::cloud::ExperimentalTag, + CreateGcpUserAccessBinding(ExperimentalTag, google::longrunning::Operation const& operation); virtual future UpdateGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateGcpUserAccessBindingRequest const& request); virtual future> - UpdateGcpUserAccessBinding(google::cloud::ExperimentalTag, + UpdateGcpUserAccessBinding(ExperimentalTag, google::longrunning::Operation const& operation); virtual future DeleteGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteGcpUserAccessBindingRequest const& request); virtual future> - DeleteGcpUserAccessBinding(google::cloud::ExperimentalTag, + DeleteGcpUserAccessBinding(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr SetIamPolicy( diff --git a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.cc b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.cc index 07392ff3247f9..5f6f8fc0be436 100644 --- a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.cc +++ b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.cc @@ -77,7 +77,7 @@ AccessContextManagerTracingConnection::CreateAccessPolicy( auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "CreateAccessPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateAccessPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -116,7 +116,7 @@ AccessContextManagerTracingConnection::UpdateAccessPolicy( auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "UpdateAccessPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateAccessPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -156,7 +156,7 @@ AccessContextManagerTracingConnection::DeleteAccessPolicy( auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "DeleteAccessPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAccessPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -220,7 +220,7 @@ AccessContextManagerTracingConnection::CreateAccessLevel( auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "CreateAccessLevel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateAccessLevel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -258,7 +258,7 @@ AccessContextManagerTracingConnection::UpdateAccessLevel( auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "UpdateAccessLevel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateAccessLevel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -297,7 +297,7 @@ AccessContextManagerTracingConnection::DeleteAccessLevel( auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "DeleteAccessLevel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAccessLevel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -338,7 +338,7 @@ AccessContextManagerTracingConnection::ReplaceAccessLevels( auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "ReplaceAccessLevels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ReplaceAccessLevels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -403,7 +403,7 @@ AccessContextManagerTracingConnection::CreateServicePerimeter( auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "CreateServicePerimeter"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateServicePerimeter( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -442,7 +442,7 @@ AccessContextManagerTracingConnection::UpdateServicePerimeter( auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "UpdateServicePerimeter"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateServicePerimeter( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -482,7 +482,7 @@ AccessContextManagerTracingConnection::DeleteServicePerimeter( auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "DeleteServicePerimeter"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteServicePerimeter( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -523,7 +523,7 @@ AccessContextManagerTracingConnection::ReplaceServicePerimeters( auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "ReplaceServicePerimeters"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ReplaceServicePerimeters( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -564,7 +564,7 @@ AccessContextManagerTracingConnection::CommitServicePerimeters( auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "CommitServicePerimeters"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CommitServicePerimeters( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -630,7 +630,7 @@ AccessContextManagerTracingConnection::CreateGcpUserAccessBinding( auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "CreateGcpUserAccessBinding"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateGcpUserAccessBinding( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -671,7 +671,7 @@ AccessContextManagerTracingConnection::UpdateGcpUserAccessBinding( auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "UpdateGcpUserAccessBinding"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateGcpUserAccessBinding( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -712,7 +712,7 @@ AccessContextManagerTracingConnection::DeleteGcpUserAccessBinding( auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "DeleteGcpUserAccessBinding"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteGcpUserAccessBinding( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/advisorynotifications/v1/advisory_notifications_connection.h b/google/cloud/advisorynotifications/v1/advisory_notifications_connection.h index bdeb193ffdf7e..a2ceed196f87d 100644 --- a/google/cloud/advisorynotifications/v1/advisory_notifications_connection.h +++ b/google/cloud/advisorynotifications/v1/advisory_notifications_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/advisorynotifications/v1/advisory_notifications_connection_idempotency_policy.h" #include "google/cloud/advisorynotifications/v1/internal/advisory_notifications_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/aiplatform/v1/dataset_connection.cc b/google/cloud/aiplatform/v1/dataset_connection.cc index 7010d265101c5..c29d9e4552def 100644 --- a/google/cloud/aiplatform/v1/dataset_connection.cc +++ b/google/cloud/aiplatform/v1/dataset_connection.cc @@ -48,14 +48,14 @@ DatasetServiceConnection::CreateDataset( StatusOr DatasetServiceConnection::CreateDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDatasetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DatasetServiceConnection::CreateDataset(google::cloud::ExperimentalTag, +DatasetServiceConnection::CreateDataset(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -92,14 +92,14 @@ DatasetServiceConnection::DeleteDataset( StatusOr DatasetServiceConnection::DeleteDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDatasetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DatasetServiceConnection::DeleteDataset(google::cloud::ExperimentalTag, +DatasetServiceConnection::DeleteDataset(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -115,14 +115,14 @@ DatasetServiceConnection::ImportData( } StatusOr DatasetServiceConnection::ImportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ImportDataRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DatasetServiceConnection::ImportData(google::cloud::ExperimentalTag, +DatasetServiceConnection::ImportData(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -138,14 +138,14 @@ DatasetServiceConnection::ExportData( } StatusOr DatasetServiceConnection::ExportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportDataRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DatasetServiceConnection::ExportData(google::cloud::ExperimentalTag, +DatasetServiceConnection::ExportData(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -162,7 +162,7 @@ DatasetServiceConnection::CreateDatasetVersion( StatusOr DatasetServiceConnection::CreateDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDatasetVersionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -170,7 +170,7 @@ DatasetServiceConnection::CreateDatasetVersion( future> DatasetServiceConnection::CreateDatasetVersion( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -192,7 +192,7 @@ DatasetServiceConnection::DeleteDatasetVersion( StatusOr DatasetServiceConnection::DeleteDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -200,7 +200,7 @@ DatasetServiceConnection::DeleteDatasetVersion( future> DatasetServiceConnection::DeleteDatasetVersion( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -230,7 +230,7 @@ DatasetServiceConnection::RestoreDatasetVersion( StatusOr DatasetServiceConnection::RestoreDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -238,7 +238,7 @@ DatasetServiceConnection::RestoreDatasetVersion( future> DatasetServiceConnection::RestoreDatasetVersion( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -278,7 +278,7 @@ DatasetServiceConnection::DeleteSavedQuery( StatusOr DatasetServiceConnection::DeleteSavedQuery( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteSavedQueryRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -286,7 +286,7 @@ DatasetServiceConnection::DeleteSavedQuery( future> DatasetServiceConnection::DeleteSavedQuery( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/dataset_connection.h b/google/cloud/aiplatform/v1/dataset_connection.h index cc3eb72069b45..4ea6399771f7c 100644 --- a/google/cloud/aiplatform/v1/dataset_connection.h +++ b/google/cloud/aiplatform/v1/dataset_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/dataset_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/dataset_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,11 +193,11 @@ class DatasetServiceConnection { google::cloud::aiplatform::v1::CreateDatasetRequest const& request); virtual StatusOr CreateDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDatasetRequest const& request); virtual future> - CreateDataset(google::cloud::ExperimentalTag, + CreateDataset(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetDataset( @@ -215,35 +215,33 @@ class DatasetServiceConnection { google::cloud::aiplatform::v1::DeleteDatasetRequest const& request); virtual StatusOr DeleteDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDatasetRequest const& request); virtual future< StatusOr> - DeleteDataset(google::cloud::ExperimentalTag, + DeleteDataset(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ImportData(google::cloud::aiplatform::v1::ImportDataRequest const& request); virtual StatusOr ImportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ImportDataRequest const& request); virtual future> - ImportData(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ImportData(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ExportData(google::cloud::aiplatform::v1::ExportDataRequest const& request); virtual StatusOr ExportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportDataRequest const& request); virtual future> - ExportData(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExportData(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CreateDatasetVersion( @@ -251,12 +249,12 @@ class DatasetServiceConnection { request); virtual StatusOr CreateDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request); virtual future> - CreateDatasetVersion(google::cloud::ExperimentalTag, + CreateDatasetVersion(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -271,13 +269,13 @@ class DatasetServiceConnection { request); virtual StatusOr DeleteDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& request); virtual future< StatusOr> - DeleteDatasetVersion(google::cloud::ExperimentalTag, + DeleteDatasetVersion(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -294,12 +292,12 @@ class DatasetServiceConnection { request); virtual StatusOr RestoreDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& request); virtual future> - RestoreDatasetVersion(google::cloud::ExperimentalTag, + RestoreDatasetVersion(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListDataItems( @@ -319,12 +317,12 @@ class DatasetServiceConnection { google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request); virtual StatusOr DeleteSavedQuery( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request); virtual future< StatusOr> - DeleteSavedQuery(google::cloud::ExperimentalTag, + DeleteSavedQuery(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/aiplatform/v1/deployment_resource_pool_connection.cc b/google/cloud/aiplatform/v1/deployment_resource_pool_connection.cc index 2229553c3be41..ce3b2db744e60 100644 --- a/google/cloud/aiplatform/v1/deployment_resource_pool_connection.cc +++ b/google/cloud/aiplatform/v1/deployment_resource_pool_connection.cc @@ -49,7 +49,7 @@ DeploymentResourcePoolServiceConnection::CreateDeploymentResourcePool( StatusOr DeploymentResourcePoolServiceConnection::CreateDeploymentResourcePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -57,7 +57,7 @@ DeploymentResourcePoolServiceConnection::CreateDeploymentResourcePool( future> DeploymentResourcePoolServiceConnection::CreateDeploymentResourcePool( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -87,7 +87,7 @@ DeploymentResourcePoolServiceConnection::DeleteDeploymentResourcePool( StatusOr DeploymentResourcePoolServiceConnection::DeleteDeploymentResourcePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -95,7 +95,7 @@ DeploymentResourcePoolServiceConnection::DeleteDeploymentResourcePool( future> DeploymentResourcePoolServiceConnection::DeleteDeploymentResourcePool( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/deployment_resource_pool_connection.h b/google/cloud/aiplatform/v1/deployment_resource_pool_connection.h index aea1ed7ff680d..5b4c68652a9a4 100644 --- a/google/cloud/aiplatform/v1/deployment_resource_pool_connection.h +++ b/google/cloud/aiplatform/v1/deployment_resource_pool_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/deployment_resource_pool_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/deployment_resource_pool_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -213,13 +213,13 @@ class DeploymentResourcePoolServiceConnection { request); virtual StatusOr CreateDeploymentResourcePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& request); virtual future< StatusOr> - CreateDeploymentResourcePool(google::cloud::ExperimentalTag, + CreateDeploymentResourcePool(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -239,13 +239,13 @@ class DeploymentResourcePoolServiceConnection { request); virtual StatusOr DeleteDeploymentResourcePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& request); virtual future< StatusOr> - DeleteDeploymentResourcePool(google::cloud::ExperimentalTag, + DeleteDeploymentResourcePool(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/aiplatform/v1/endpoint_connection.cc b/google/cloud/aiplatform/v1/endpoint_connection.cc index 40501ddfbf729..796786f81c9a5 100644 --- a/google/cloud/aiplatform/v1/endpoint_connection.cc +++ b/google/cloud/aiplatform/v1/endpoint_connection.cc @@ -48,7 +48,7 @@ EndpointServiceConnection::CreateEndpoint( StatusOr EndpointServiceConnection::CreateEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateEndpointRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ EndpointServiceConnection::CreateEndpoint( future> EndpointServiceConnection::CreateEndpoint( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -92,7 +92,7 @@ EndpointServiceConnection::DeleteEndpoint( StatusOr EndpointServiceConnection::DeleteEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteEndpointRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -100,7 +100,7 @@ EndpointServiceConnection::DeleteEndpoint( future> EndpointServiceConnection::DeleteEndpoint( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -115,14 +115,14 @@ EndpointServiceConnection::DeployModel( } StatusOr EndpointServiceConnection::DeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeployModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EndpointServiceConnection::DeployModel(google::cloud::ExperimentalTag, +EndpointServiceConnection::DeployModel(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -139,7 +139,7 @@ EndpointServiceConnection::UndeployModel( StatusOr EndpointServiceConnection::UndeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UndeployModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -147,7 +147,7 @@ EndpointServiceConnection::UndeployModel( future> EndpointServiceConnection::UndeployModel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -163,7 +163,7 @@ EndpointServiceConnection::MutateDeployedModel( StatusOr EndpointServiceConnection::MutateDeployedModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::MutateDeployedModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -171,7 +171,7 @@ EndpointServiceConnection::MutateDeployedModel( future> EndpointServiceConnection::MutateDeployedModel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/endpoint_connection.h b/google/cloud/aiplatform/v1/endpoint_connection.h index 6d526d4a54aff..a813bfde772ff 100644 --- a/google/cloud/aiplatform/v1/endpoint_connection.h +++ b/google/cloud/aiplatform/v1/endpoint_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/endpoint_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/endpoint_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -194,11 +194,11 @@ class EndpointServiceConnection { google::cloud::aiplatform::v1::CreateEndpointRequest const& request); virtual StatusOr CreateEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateEndpointRequest const& request); virtual future> - CreateEndpoint(google::cloud::ExperimentalTag, + CreateEndpoint(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetEndpoint( @@ -216,35 +216,34 @@ class EndpointServiceConnection { google::cloud::aiplatform::v1::DeleteEndpointRequest const& request); virtual StatusOr DeleteEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteEndpointRequest const& request); virtual future< StatusOr> - DeleteEndpoint(google::cloud::ExperimentalTag, + DeleteEndpoint(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeployModel(google::cloud::aiplatform::v1::DeployModelRequest const& request); virtual StatusOr DeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeployModelRequest const& request); virtual future> - DeployModel(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeployModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UndeployModel( google::cloud::aiplatform::v1::UndeployModelRequest const& request); virtual StatusOr UndeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UndeployModelRequest const& request); virtual future> - UndeployModel(google::cloud::ExperimentalTag, + UndeployModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -253,12 +252,12 @@ class EndpointServiceConnection { google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request); virtual StatusOr MutateDeployedModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request); virtual future< StatusOr> - MutateDeployedModel(google::cloud::ExperimentalTag, + MutateDeployedModel(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/aiplatform/v1/feature_online_store_admin_connection.cc b/google/cloud/aiplatform/v1/feature_online_store_admin_connection.cc index 350cb51c1500d..9d6f6d5702337 100644 --- a/google/cloud/aiplatform/v1/feature_online_store_admin_connection.cc +++ b/google/cloud/aiplatform/v1/feature_online_store_admin_connection.cc @@ -49,7 +49,7 @@ FeatureOnlineStoreAdminServiceConnection::CreateFeatureOnlineStore( StatusOr FeatureOnlineStoreAdminServiceConnection::CreateFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -57,7 +57,7 @@ FeatureOnlineStoreAdminServiceConnection::CreateFeatureOnlineStore( future> FeatureOnlineStoreAdminServiceConnection::CreateFeatureOnlineStore( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -87,7 +87,7 @@ FeatureOnlineStoreAdminServiceConnection::UpdateFeatureOnlineStore( StatusOr FeatureOnlineStoreAdminServiceConnection::UpdateFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -95,7 +95,7 @@ FeatureOnlineStoreAdminServiceConnection::UpdateFeatureOnlineStore( future> FeatureOnlineStoreAdminServiceConnection::UpdateFeatureOnlineStore( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -111,7 +111,7 @@ FeatureOnlineStoreAdminServiceConnection::DeleteFeatureOnlineStore( StatusOr FeatureOnlineStoreAdminServiceConnection::DeleteFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -119,7 +119,7 @@ FeatureOnlineStoreAdminServiceConnection::DeleteFeatureOnlineStore( future> FeatureOnlineStoreAdminServiceConnection::DeleteFeatureOnlineStore( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -135,7 +135,7 @@ FeatureOnlineStoreAdminServiceConnection::CreateFeatureView( StatusOr FeatureOnlineStoreAdminServiceConnection::CreateFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureViewRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -143,7 +143,7 @@ FeatureOnlineStoreAdminServiceConnection::CreateFeatureView( future> FeatureOnlineStoreAdminServiceConnection::CreateFeatureView( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -173,7 +173,7 @@ FeatureOnlineStoreAdminServiceConnection::UpdateFeatureView( StatusOr FeatureOnlineStoreAdminServiceConnection::UpdateFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureViewRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -181,7 +181,7 @@ FeatureOnlineStoreAdminServiceConnection::UpdateFeatureView( future> FeatureOnlineStoreAdminServiceConnection::UpdateFeatureView( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -197,7 +197,7 @@ FeatureOnlineStoreAdminServiceConnection::DeleteFeatureView( StatusOr FeatureOnlineStoreAdminServiceConnection::DeleteFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureViewRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -205,7 +205,7 @@ FeatureOnlineStoreAdminServiceConnection::DeleteFeatureView( future> FeatureOnlineStoreAdminServiceConnection::DeleteFeatureView( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/feature_online_store_admin_connection.h b/google/cloud/aiplatform/v1/feature_online_store_admin_connection.h index be15a5bd30198..63789dc60726a 100644 --- a/google/cloud/aiplatform/v1/feature_online_store_admin_connection.h +++ b/google/cloud/aiplatform/v1/feature_online_store_admin_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/feature_online_store_admin_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/feature_online_store_admin_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -212,12 +212,12 @@ class FeatureOnlineStoreAdminServiceConnection { request); virtual StatusOr CreateFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& request); virtual future> - CreateFeatureOnlineStore(google::cloud::ExperimentalTag, + CreateFeatureOnlineStore(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -235,12 +235,12 @@ class FeatureOnlineStoreAdminServiceConnection { request); virtual StatusOr UpdateFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& request); virtual future> - UpdateFeatureOnlineStore(google::cloud::ExperimentalTag, + UpdateFeatureOnlineStore(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -250,13 +250,13 @@ class FeatureOnlineStoreAdminServiceConnection { request); virtual StatusOr DeleteFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& request); virtual future< StatusOr> - DeleteFeatureOnlineStore(google::cloud::ExperimentalTag, + DeleteFeatureOnlineStore(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -264,11 +264,11 @@ class FeatureOnlineStoreAdminServiceConnection { google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request); virtual StatusOr CreateFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request); virtual future> - CreateFeatureView(google::cloud::ExperimentalTag, + CreateFeatureView(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetFeatureView( @@ -283,11 +283,11 @@ class FeatureOnlineStoreAdminServiceConnection { google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request); virtual StatusOr UpdateFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request); virtual future> - UpdateFeatureView(google::cloud::ExperimentalTag, + UpdateFeatureView(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -296,12 +296,12 @@ class FeatureOnlineStoreAdminServiceConnection { google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request); virtual StatusOr DeleteFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request); virtual future< StatusOr> - DeleteFeatureView(google::cloud::ExperimentalTag, + DeleteFeatureView(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/aiplatform/v1/feature_online_store_connection.h b/google/cloud/aiplatform/v1/feature_online_store_connection.h index 4476b163ef6ab..da0b43d269fd2 100644 --- a/google/cloud/aiplatform/v1/feature_online_store_connection.h +++ b/google/cloud/aiplatform/v1/feature_online_store_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/aiplatform/v1/feature_online_store_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/feature_online_store_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/aiplatform/v1/feature_registry_connection.cc b/google/cloud/aiplatform/v1/feature_registry_connection.cc index 10496f02e1c39..8fdfa5b892204 100644 --- a/google/cloud/aiplatform/v1/feature_registry_connection.cc +++ b/google/cloud/aiplatform/v1/feature_registry_connection.cc @@ -48,7 +48,7 @@ FeatureRegistryServiceConnection::CreateFeatureGroup( StatusOr FeatureRegistryServiceConnection::CreateFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureGroupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ FeatureRegistryServiceConnection::CreateFeatureGroup( future> FeatureRegistryServiceConnection::CreateFeatureGroup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ FeatureRegistryServiceConnection::UpdateFeatureGroup( StatusOr FeatureRegistryServiceConnection::UpdateFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ FeatureRegistryServiceConnection::UpdateFeatureGroup( future> FeatureRegistryServiceConnection::UpdateFeatureGroup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ FeatureRegistryServiceConnection::DeleteFeatureGroup( StatusOr FeatureRegistryServiceConnection::DeleteFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ FeatureRegistryServiceConnection::DeleteFeatureGroup( future> FeatureRegistryServiceConnection::DeleteFeatureGroup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,7 +134,7 @@ FeatureRegistryServiceConnection::CreateFeature( StatusOr FeatureRegistryServiceConnection::CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +142,7 @@ FeatureRegistryServiceConnection::CreateFeature( future> FeatureRegistryServiceConnection::CreateFeature( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -172,7 +172,7 @@ FeatureRegistryServiceConnection::UpdateFeature( StatusOr FeatureRegistryServiceConnection::UpdateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -180,7 +180,7 @@ FeatureRegistryServiceConnection::UpdateFeature( future> FeatureRegistryServiceConnection::UpdateFeature( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -196,7 +196,7 @@ FeatureRegistryServiceConnection::DeleteFeature( StatusOr FeatureRegistryServiceConnection::DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -204,7 +204,7 @@ FeatureRegistryServiceConnection::DeleteFeature( future> FeatureRegistryServiceConnection::DeleteFeature( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/feature_registry_connection.h b/google/cloud/aiplatform/v1/feature_registry_connection.h index 11704f22fa337..2afd3f162e213 100644 --- a/google/cloud/aiplatform/v1/feature_registry_connection.h +++ b/google/cloud/aiplatform/v1/feature_registry_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/feature_registry_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/feature_registry_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,11 +199,11 @@ class FeatureRegistryServiceConnection { google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request); virtual StatusOr CreateFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request); virtual future> - CreateFeatureGroup(google::cloud::ExperimentalTag, + CreateFeatureGroup(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetFeatureGroup( @@ -218,11 +218,11 @@ class FeatureRegistryServiceConnection { google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request); virtual StatusOr UpdateFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request); virtual future> - UpdateFeatureGroup(google::cloud::ExperimentalTag, + UpdateFeatureGroup(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -231,12 +231,12 @@ class FeatureRegistryServiceConnection { google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request); virtual StatusOr DeleteFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request); virtual future< StatusOr> - DeleteFeatureGroup(google::cloud::ExperimentalTag, + DeleteFeatureGroup(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -244,11 +244,11 @@ class FeatureRegistryServiceConnection { google::cloud::aiplatform::v1::CreateFeatureRequest const& request); virtual StatusOr CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureRequest const& request); virtual future> - CreateFeature(google::cloud::ExperimentalTag, + CreateFeature(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetFeature( @@ -262,11 +262,11 @@ class FeatureRegistryServiceConnection { google::cloud::aiplatform::v1::UpdateFeatureRequest const& request); virtual StatusOr UpdateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureRequest const& request); virtual future> - UpdateFeature(google::cloud::ExperimentalTag, + UpdateFeature(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -275,12 +275,12 @@ class FeatureRegistryServiceConnection { google::cloud::aiplatform::v1::DeleteFeatureRequest const& request); virtual StatusOr DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const& request); virtual future< StatusOr> - DeleteFeature(google::cloud::ExperimentalTag, + DeleteFeature(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/aiplatform/v1/featurestore_connection.cc b/google/cloud/aiplatform/v1/featurestore_connection.cc index 87e7358ab3c0b..64ad4f2412b29 100644 --- a/google/cloud/aiplatform/v1/featurestore_connection.cc +++ b/google/cloud/aiplatform/v1/featurestore_connection.cc @@ -48,7 +48,7 @@ FeaturestoreServiceConnection::CreateFeaturestore( StatusOr FeaturestoreServiceConnection::CreateFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeaturestoreRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ FeaturestoreServiceConnection::CreateFeaturestore( future> FeaturestoreServiceConnection::CreateFeaturestore( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ FeaturestoreServiceConnection::UpdateFeaturestore( StatusOr FeaturestoreServiceConnection::UpdateFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ FeaturestoreServiceConnection::UpdateFeaturestore( future> FeaturestoreServiceConnection::UpdateFeaturestore( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ FeaturestoreServiceConnection::DeleteFeaturestore( StatusOr FeaturestoreServiceConnection::DeleteFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ FeaturestoreServiceConnection::DeleteFeaturestore( future> FeaturestoreServiceConnection::DeleteFeaturestore( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,7 +134,7 @@ FeaturestoreServiceConnection::CreateEntityType( StatusOr FeaturestoreServiceConnection::CreateEntityType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateEntityTypeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +142,7 @@ FeaturestoreServiceConnection::CreateEntityType( future> FeaturestoreServiceConnection::CreateEntityType( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -178,7 +178,7 @@ FeaturestoreServiceConnection::DeleteEntityType( StatusOr FeaturestoreServiceConnection::DeleteEntityType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteEntityTypeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -186,7 +186,7 @@ FeaturestoreServiceConnection::DeleteEntityType( future> FeaturestoreServiceConnection::DeleteEntityType( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -202,7 +202,7 @@ FeaturestoreServiceConnection::CreateFeature( StatusOr FeaturestoreServiceConnection::CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -210,7 +210,7 @@ FeaturestoreServiceConnection::CreateFeature( future> FeaturestoreServiceConnection::CreateFeature( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -226,7 +226,7 @@ FeaturestoreServiceConnection::BatchCreateFeatures( StatusOr FeaturestoreServiceConnection::BatchCreateFeatures( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -234,7 +234,7 @@ FeaturestoreServiceConnection::BatchCreateFeatures( future> FeaturestoreServiceConnection::BatchCreateFeatures( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -270,7 +270,7 @@ FeaturestoreServiceConnection::DeleteFeature( StatusOr FeaturestoreServiceConnection::DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -278,7 +278,7 @@ FeaturestoreServiceConnection::DeleteFeature( future> FeaturestoreServiceConnection::DeleteFeature( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -294,7 +294,7 @@ FeaturestoreServiceConnection::ImportFeatureValues( StatusOr FeaturestoreServiceConnection::ImportFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ImportFeatureValuesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -302,7 +302,7 @@ FeaturestoreServiceConnection::ImportFeatureValues( future> FeaturestoreServiceConnection::ImportFeatureValues( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -318,7 +318,7 @@ FeaturestoreServiceConnection::BatchReadFeatureValues( StatusOr FeaturestoreServiceConnection::BatchReadFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -326,7 +326,7 @@ FeaturestoreServiceConnection::BatchReadFeatureValues( future> FeaturestoreServiceConnection::BatchReadFeatureValues( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -342,7 +342,7 @@ FeaturestoreServiceConnection::ExportFeatureValues( StatusOr FeaturestoreServiceConnection::ExportFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportFeatureValuesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -350,7 +350,7 @@ FeaturestoreServiceConnection::ExportFeatureValues( future> FeaturestoreServiceConnection::ExportFeatureValues( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -366,7 +366,7 @@ FeaturestoreServiceConnection::DeleteFeatureValues( StatusOr FeaturestoreServiceConnection::DeleteFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -374,7 +374,7 @@ FeaturestoreServiceConnection::DeleteFeatureValues( future> FeaturestoreServiceConnection::DeleteFeatureValues( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/featurestore_connection.h b/google/cloud/aiplatform/v1/featurestore_connection.h index eaf8ba8d5f83c..4ad314273b992 100644 --- a/google/cloud/aiplatform/v1/featurestore_connection.h +++ b/google/cloud/aiplatform/v1/featurestore_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/featurestore_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/featurestore_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -196,11 +196,11 @@ class FeaturestoreServiceConnection { google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request); virtual StatusOr CreateFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request); virtual future> - CreateFeaturestore(google::cloud::ExperimentalTag, + CreateFeaturestore(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetFeaturestore( @@ -215,11 +215,11 @@ class FeaturestoreServiceConnection { google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request); virtual StatusOr UpdateFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request); virtual future> - UpdateFeaturestore(google::cloud::ExperimentalTag, + UpdateFeaturestore(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -228,12 +228,12 @@ class FeaturestoreServiceConnection { google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request); virtual StatusOr DeleteFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request); virtual future< StatusOr> - DeleteFeaturestore(google::cloud::ExperimentalTag, + DeleteFeaturestore(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -241,11 +241,11 @@ class FeaturestoreServiceConnection { google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request); virtual StatusOr CreateEntityType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request); virtual future> - CreateEntityType(google::cloud::ExperimentalTag, + CreateEntityType(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetEntityType( @@ -264,12 +264,12 @@ class FeaturestoreServiceConnection { google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request); virtual StatusOr DeleteEntityType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request); virtual future< StatusOr> - DeleteEntityType(google::cloud::ExperimentalTag, + DeleteEntityType(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -277,11 +277,11 @@ class FeaturestoreServiceConnection { google::cloud::aiplatform::v1::CreateFeatureRequest const& request); virtual StatusOr CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureRequest const& request); virtual future> - CreateFeature(google::cloud::ExperimentalTag, + CreateFeature(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -290,12 +290,12 @@ class FeaturestoreServiceConnection { google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request); virtual StatusOr BatchCreateFeatures( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request); virtual future< StatusOr> - BatchCreateFeatures(google::cloud::ExperimentalTag, + BatchCreateFeatures(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetFeature( @@ -313,12 +313,12 @@ class FeaturestoreServiceConnection { google::cloud::aiplatform::v1::DeleteFeatureRequest const& request); virtual StatusOr DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const& request); virtual future< StatusOr> - DeleteFeature(google::cloud::ExperimentalTag, + DeleteFeature(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -327,12 +327,12 @@ class FeaturestoreServiceConnection { google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request); virtual StatusOr ImportFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request); virtual future< StatusOr> - ImportFeatureValues(google::cloud::ExperimentalTag, + ImportFeatureValues(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -342,13 +342,13 @@ class FeaturestoreServiceConnection { request); virtual StatusOr BatchReadFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& request); virtual future< StatusOr> - BatchReadFeatureValues(google::cloud::ExperimentalTag, + BatchReadFeatureValues(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -357,12 +357,12 @@ class FeaturestoreServiceConnection { google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request); virtual StatusOr ExportFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request); virtual future< StatusOr> - ExportFeatureValues(google::cloud::ExperimentalTag, + ExportFeatureValues(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -371,12 +371,12 @@ class FeaturestoreServiceConnection { google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request); virtual StatusOr DeleteFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request); virtual future< StatusOr> - DeleteFeatureValues(google::cloud::ExperimentalTag, + DeleteFeatureValues(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange SearchFeatures( diff --git a/google/cloud/aiplatform/v1/featurestore_online_serving_connection.h b/google/cloud/aiplatform/v1/featurestore_online_serving_connection.h index 9ff4be4509d24..4891cf4243e2c 100644 --- a/google/cloud/aiplatform/v1/featurestore_online_serving_connection.h +++ b/google/cloud/aiplatform/v1/featurestore_online_serving_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/aiplatform/v1/featurestore_online_serving_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/featurestore_online_serving_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/aiplatform/v1/gen_ai_tuning_connection.h b/google/cloud/aiplatform/v1/gen_ai_tuning_connection.h index f0f9f1c942678..a184980dd69fc 100644 --- a/google/cloud/aiplatform/v1/gen_ai_tuning_connection.h +++ b/google/cloud/aiplatform/v1/gen_ai_tuning_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/aiplatform/v1/gen_ai_tuning_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/gen_ai_tuning_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/aiplatform/v1/index_connection.cc b/google/cloud/aiplatform/v1/index_connection.cc index 7b0f877a658b9..c3b80eb9eec2a 100644 --- a/google/cloud/aiplatform/v1/index_connection.cc +++ b/google/cloud/aiplatform/v1/index_connection.cc @@ -47,14 +47,14 @@ IndexServiceConnection::CreateIndex( } StatusOr IndexServiceConnection::CreateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateIndexRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -IndexServiceConnection::CreateIndex(google::cloud::ExperimentalTag, +IndexServiceConnection::CreateIndex(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -83,14 +83,14 @@ IndexServiceConnection::UpdateIndex( } StatusOr IndexServiceConnection::UpdateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateIndexRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -IndexServiceConnection::UpdateIndex(google::cloud::ExperimentalTag, +IndexServiceConnection::UpdateIndex(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -106,14 +106,14 @@ IndexServiceConnection::DeleteIndex( } StatusOr IndexServiceConnection::DeleteIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteIndexRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -IndexServiceConnection::DeleteIndex(google::cloud::ExperimentalTag, +IndexServiceConnection::DeleteIndex(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/aiplatform/v1/index_connection.h b/google/cloud/aiplatform/v1/index_connection.h index 6b921111c0ae0..d33c7ca047d7a 100644 --- a/google/cloud/aiplatform/v1/index_connection.h +++ b/google/cloud/aiplatform/v1/index_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/index_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/index_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,12 +192,11 @@ class IndexServiceConnection { google::cloud::aiplatform::v1::CreateIndexRequest const& request); virtual StatusOr CreateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateIndexRequest const& request); virtual future> CreateIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetIndex( google::cloud::aiplatform::v1::GetIndexRequest const& request); @@ -209,25 +208,23 @@ class IndexServiceConnection { google::cloud::aiplatform::v1::UpdateIndexRequest const& request); virtual StatusOr UpdateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateIndexRequest const& request); virtual future> UpdateIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> DeleteIndex(google::cloud::aiplatform::v1::DeleteIndexRequest const& request); virtual StatusOr DeleteIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteIndexRequest const& request); virtual future< StatusOr> - DeleteIndex(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteIndex(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr UpsertDatapoints( diff --git a/google/cloud/aiplatform/v1/index_endpoint_connection.cc b/google/cloud/aiplatform/v1/index_endpoint_connection.cc index 23891326f4187..992f9b7da902c 100644 --- a/google/cloud/aiplatform/v1/index_endpoint_connection.cc +++ b/google/cloud/aiplatform/v1/index_endpoint_connection.cc @@ -48,7 +48,7 @@ IndexEndpointServiceConnection::CreateIndexEndpoint( StatusOr IndexEndpointServiceConnection::CreateIndexEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateIndexEndpointRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ IndexEndpointServiceConnection::CreateIndexEndpoint( future> IndexEndpointServiceConnection::CreateIndexEndpoint( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -92,7 +92,7 @@ IndexEndpointServiceConnection::DeleteIndexEndpoint( StatusOr IndexEndpointServiceConnection::DeleteIndexEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -100,7 +100,7 @@ IndexEndpointServiceConnection::DeleteIndexEndpoint( future> IndexEndpointServiceConnection::DeleteIndexEndpoint( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -116,7 +116,7 @@ IndexEndpointServiceConnection::DeployIndex( StatusOr IndexEndpointServiceConnection::DeployIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeployIndexRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -124,7 +124,7 @@ IndexEndpointServiceConnection::DeployIndex( future> IndexEndpointServiceConnection::DeployIndex( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -140,7 +140,7 @@ IndexEndpointServiceConnection::UndeployIndex( StatusOr IndexEndpointServiceConnection::UndeployIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UndeployIndexRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -148,7 +148,7 @@ IndexEndpointServiceConnection::UndeployIndex( future> IndexEndpointServiceConnection::UndeployIndex( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -164,7 +164,7 @@ IndexEndpointServiceConnection::MutateDeployedIndex( StatusOr IndexEndpointServiceConnection::MutateDeployedIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::MutateDeployedIndexRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -172,7 +172,7 @@ IndexEndpointServiceConnection::MutateDeployedIndex( future> IndexEndpointServiceConnection::MutateDeployedIndex( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/index_endpoint_connection.h b/google/cloud/aiplatform/v1/index_endpoint_connection.h index bdbc54ad3a3e5..775de49e9f016 100644 --- a/google/cloud/aiplatform/v1/index_endpoint_connection.h +++ b/google/cloud/aiplatform/v1/index_endpoint_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/index_endpoint_connection_idempotency_policy.h" #include "google/cloud/aiplatform/v1/internal/index_endpoint_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,11 +197,11 @@ class IndexEndpointServiceConnection { google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request); virtual StatusOr CreateIndexEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request); virtual future> - CreateIndexEndpoint(google::cloud::ExperimentalTag, + CreateIndexEndpoint(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -222,35 +222,34 @@ class IndexEndpointServiceConnection { google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request); virtual StatusOr DeleteIndexEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request); virtual future< StatusOr> - DeleteIndexEndpoint(google::cloud::ExperimentalTag, + DeleteIndexEndpoint(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeployIndex(google::cloud::aiplatform::v1::DeployIndexRequest const& request); virtual StatusOr DeployIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeployIndexRequest const& request); virtual future> - DeployIndex(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeployIndex(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UndeployIndex( google::cloud::aiplatform::v1::UndeployIndexRequest const& request); virtual StatusOr UndeployIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UndeployIndexRequest const& request); virtual future> - UndeployIndex(google::cloud::ExperimentalTag, + UndeployIndex(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -259,12 +258,12 @@ class IndexEndpointServiceConnection { google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request); virtual StatusOr MutateDeployedIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request); virtual future< StatusOr> - MutateDeployedIndex(google::cloud::ExperimentalTag, + MutateDeployedIndex(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.cc index 47dd408d432f0..3d37e3d4eb71c 100644 --- a/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.cc @@ -48,7 +48,7 @@ DatasetServiceTracingConnection::CreateDataset( google::cloud::aiplatform::v1::CreateDatasetRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::CreateDataset"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateDataset(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -110,7 +110,7 @@ DatasetServiceTracingConnection::DeleteDataset( google::cloud::aiplatform::v1::DeleteDatasetRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::DeleteDataset"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteDataset(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -143,7 +143,7 @@ DatasetServiceTracingConnection::ImportData( google::cloud::aiplatform::v1::ImportDataRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::DatasetServiceConnection::ImportData"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportData(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -176,7 +176,7 @@ DatasetServiceTracingConnection::ExportData( google::cloud::aiplatform::v1::ExportDataRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::DatasetServiceConnection::ExportData"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportData(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -210,7 +210,7 @@ DatasetServiceTracingConnection::CreateDatasetVersion( google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::CreateDatasetVersion"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateDatasetVersion( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -253,7 +253,7 @@ DatasetServiceTracingConnection::DeleteDatasetVersion( google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::DeleteDatasetVersion"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteDatasetVersion( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -310,7 +310,7 @@ DatasetServiceTracingConnection::RestoreDatasetVersion( request) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::RestoreDatasetVersion"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RestoreDatasetVersion( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -378,7 +378,7 @@ DatasetServiceTracingConnection::DeleteSavedQuery( google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::DeleteSavedQuery"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSavedQuery(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.cc index 3cfbc913a2dbe..371f9bbe2ffad 100644 --- a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.cc @@ -55,7 +55,7 @@ DeploymentResourcePoolServiceTracingConnection::CreateDeploymentResourcePool( auto span = internal::MakeSpan( "aiplatform_v1::DeploymentResourcePoolServiceConnection::" "CreateDeploymentResourcePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateDeploymentResourcePool( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -118,7 +118,7 @@ DeploymentResourcePoolServiceTracingConnection::DeleteDeploymentResourcePool( auto span = internal::MakeSpan( "aiplatform_v1::DeploymentResourcePoolServiceConnection::" "DeleteDeploymentResourcePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteDeploymentResourcePool( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.cc index c596c896e422e..21ab95b11b1c7 100644 --- a/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.cc @@ -48,7 +48,7 @@ EndpointServiceTracingConnection::CreateEndpoint( google::cloud::aiplatform::v1::CreateEndpointRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::EndpointServiceConnection::CreateEndpoint"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateEndpoint(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -110,7 +110,7 @@ EndpointServiceTracingConnection::DeleteEndpoint( google::cloud::aiplatform::v1::DeleteEndpointRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::EndpointServiceConnection::DeleteEndpoint"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteEndpoint(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -143,7 +143,7 @@ EndpointServiceTracingConnection::DeployModel( google::cloud::aiplatform::v1::DeployModelRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::EndpointServiceConnection::DeployModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeployModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -176,7 +176,7 @@ EndpointServiceTracingConnection::UndeployModel( google::cloud::aiplatform::v1::UndeployModelRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::EndpointServiceConnection::UndeployModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UndeployModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -210,7 +210,7 @@ EndpointServiceTracingConnection::MutateDeployedModel( google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::EndpointServiceConnection::MutateDeployedModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->MutateDeployedModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.cc index a96fc8f1cdf5e..ac2771458aa69 100644 --- a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.cc @@ -55,7 +55,7 @@ FeatureOnlineStoreAdminServiceTracingConnection::CreateFeatureOnlineStore( auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "CreateFeatureOnlineStore"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateFeatureOnlineStore( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -118,7 +118,7 @@ FeatureOnlineStoreAdminServiceTracingConnection::UpdateFeatureOnlineStore( auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "UpdateFeatureOnlineStore"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateFeatureOnlineStore( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -157,7 +157,7 @@ FeatureOnlineStoreAdminServiceTracingConnection::DeleteFeatureOnlineStore( auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "DeleteFeatureOnlineStore"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteFeatureOnlineStore( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -193,7 +193,7 @@ FeatureOnlineStoreAdminServiceTracingConnection::CreateFeatureView( auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "CreateFeatureView"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateFeatureView(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -252,7 +252,7 @@ FeatureOnlineStoreAdminServiceTracingConnection::UpdateFeatureView( auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "UpdateFeatureView"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateFeatureView(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -288,7 +288,7 @@ FeatureOnlineStoreAdminServiceTracingConnection::DeleteFeatureView( auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "DeleteFeatureView"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteFeatureView(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.cc index 303f83a5374c8..9ee0b8370b8c6 100644 --- a/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.cc @@ -50,7 +50,7 @@ FeatureRegistryServiceTracingConnection::CreateFeatureGroup( google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::CreateFeatureGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateFeatureGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -105,7 +105,7 @@ FeatureRegistryServiceTracingConnection::UpdateFeatureGroup( google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::UpdateFeatureGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateFeatureGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -139,7 +139,7 @@ FeatureRegistryServiceTracingConnection::DeleteFeatureGroup( google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::DeleteFeatureGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteFeatureGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -172,7 +172,7 @@ FeatureRegistryServiceTracingConnection::CreateFeature( google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::CreateFeature"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateFeature(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -225,7 +225,7 @@ FeatureRegistryServiceTracingConnection::UpdateFeature( google::cloud::aiplatform::v1::UpdateFeatureRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::UpdateFeature"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateFeature(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -258,7 +258,7 @@ FeatureRegistryServiceTracingConnection::DeleteFeature( google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::DeleteFeature"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteFeature(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.cc index c2557becc4e45..de5015785ce5a 100644 --- a/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.cc @@ -49,7 +49,7 @@ FeaturestoreServiceTracingConnection::CreateFeaturestore( google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::CreateFeaturestore"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateFeaturestore(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -104,7 +104,7 @@ FeaturestoreServiceTracingConnection::UpdateFeaturestore( google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::UpdateFeaturestore"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateFeaturestore(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -138,7 +138,7 @@ FeaturestoreServiceTracingConnection::DeleteFeaturestore( google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::DeleteFeaturestore"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteFeaturestore(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -171,7 +171,7 @@ FeaturestoreServiceTracingConnection::CreateEntityType( google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::CreateEntityType"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateEntityType(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -234,7 +234,7 @@ FeaturestoreServiceTracingConnection::DeleteEntityType( google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::DeleteEntityType"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteEntityType(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -267,7 +267,7 @@ FeaturestoreServiceTracingConnection::CreateFeature( google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::CreateFeature"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateFeature(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -301,7 +301,7 @@ FeaturestoreServiceTracingConnection::BatchCreateFeatures( google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::BatchCreateFeatures"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BatchCreateFeatures(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -363,7 +363,7 @@ FeaturestoreServiceTracingConnection::DeleteFeature( google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::DeleteFeature"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteFeature(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -397,7 +397,7 @@ FeaturestoreServiceTracingConnection::ImportFeatureValues( google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::ImportFeatureValues"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportFeatureValues(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -433,7 +433,7 @@ FeaturestoreServiceTracingConnection::BatchReadFeatureValues( request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::BatchReadFeatureValues"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->BatchReadFeatureValues( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -467,7 +467,7 @@ FeaturestoreServiceTracingConnection::ExportFeatureValues( google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::ExportFeatureValues"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportFeatureValues(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -501,7 +501,7 @@ FeaturestoreServiceTracingConnection::DeleteFeatureValues( google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::DeleteFeatureValues"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteFeatureValues(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.cc index 63161713efba5..cf8b80f666901 100644 --- a/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.cc @@ -49,7 +49,7 @@ IndexEndpointServiceTracingConnection::CreateIndexEndpoint( google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::IndexEndpointServiceConnection::CreateIndexEndpoint"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateIndexEndpoint(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -113,7 +113,7 @@ IndexEndpointServiceTracingConnection::DeleteIndexEndpoint( google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::IndexEndpointServiceConnection::DeleteIndexEndpoint"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteIndexEndpoint(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -146,7 +146,7 @@ IndexEndpointServiceTracingConnection::DeployIndex( google::cloud::aiplatform::v1::DeployIndexRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::IndexEndpointServiceConnection::DeployIndex"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeployIndex(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -179,7 +179,7 @@ IndexEndpointServiceTracingConnection::UndeployIndex( google::cloud::aiplatform::v1::UndeployIndexRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::IndexEndpointServiceConnection::UndeployIndex"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UndeployIndex(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -213,7 +213,7 @@ IndexEndpointServiceTracingConnection::MutateDeployedIndex( google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::IndexEndpointServiceConnection::MutateDeployedIndex"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->MutateDeployedIndex(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/index_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/index_tracing_connection.cc index 68f9a0a5e686c..fa5227e48ec5e 100644 --- a/google/cloud/aiplatform/v1/internal/index_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/index_tracing_connection.cc @@ -48,7 +48,7 @@ IndexServiceTracingConnection::CreateIndex( google::cloud::aiplatform::v1::CreateIndexRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::IndexServiceConnection::CreateIndex"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateIndex(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ IndexServiceTracingConnection::UpdateIndex( google::cloud::aiplatform::v1::UpdateIndexRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::IndexServiceConnection::UpdateIndex"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateIndex(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -134,7 +134,7 @@ IndexServiceTracingConnection::DeleteIndex( google::cloud::aiplatform::v1::DeleteIndexRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::IndexServiceConnection::DeleteIndex"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteIndex(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/job_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/job_tracing_connection.cc index 79d0db7ce9cb8..d2d39cbcc6ee5 100644 --- a/google/cloud/aiplatform/v1/internal/job_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/job_tracing_connection.cc @@ -77,7 +77,7 @@ JobServiceTracingConnection::DeleteCustomJob( google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::DeleteCustomJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteCustomJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -152,7 +152,7 @@ JobServiceTracingConnection::DeleteDataLabelingJob( request) { auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::DeleteDataLabelingJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteDataLabelingJob( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -231,7 +231,7 @@ JobServiceTracingConnection::DeleteHyperparameterTuningJob( request) { auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::DeleteHyperparameterTuningJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteHyperparameterTuningJob( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -303,7 +303,7 @@ JobServiceTracingConnection::DeleteNasJob( google::cloud::aiplatform::v1::DeleteNasJobRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::JobServiceConnection::DeleteNasJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteNasJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -400,7 +400,7 @@ JobServiceTracingConnection::DeleteBatchPredictionJob( request) { auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::DeleteBatchPredictionJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteBatchPredictionJob( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -498,7 +498,7 @@ JobServiceTracingConnection::UpdateModelDeploymentMonitoringJob( auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::" "UpdateModelDeploymentMonitoringJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateModelDeploymentMonitoringJob( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -537,7 +537,7 @@ JobServiceTracingConnection::DeleteModelDeploymentMonitoringJob( auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::" "DeleteModelDeploymentMonitoringJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteModelDeploymentMonitoringJob( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.cc index 9a1fd68968a75..7ed420d5b3ff6 100644 --- a/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.cc @@ -49,7 +49,7 @@ MetadataServiceTracingConnection::CreateMetadataStore( google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::CreateMetadataStore"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateMetadataStore(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -105,7 +105,7 @@ MetadataServiceTracingConnection::DeleteMetadataStore( google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::DeleteMetadataStore"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteMetadataStore(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -177,7 +177,7 @@ MetadataServiceTracingConnection::DeleteArtifact( google::cloud::aiplatform::v1::DeleteArtifactRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::DeleteArtifact"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteArtifact(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -210,7 +210,7 @@ MetadataServiceTracingConnection::PurgeArtifacts( google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::PurgeArtifacts"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PurgeArtifacts(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -281,7 +281,7 @@ MetadataServiceTracingConnection::DeleteContext( google::cloud::aiplatform::v1::DeleteContextRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::DeleteContext"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteContext(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -314,7 +314,7 @@ MetadataServiceTracingConnection::PurgeContexts( google::cloud::aiplatform::v1::PurgeContextsRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::PurgeContexts"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PurgeContexts(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -427,7 +427,7 @@ MetadataServiceTracingConnection::DeleteExecution( google::cloud::aiplatform::v1::DeleteExecutionRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::DeleteExecution"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteExecution(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -460,7 +460,7 @@ MetadataServiceTracingConnection::PurgeExecutions( google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::PurgeExecutions"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PurgeExecutions(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/migration_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/migration_tracing_connection.cc index dc3dea1d80072..fa44e84f284d2 100644 --- a/google/cloud/aiplatform/v1/internal/migration_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/migration_tracing_connection.cc @@ -63,7 +63,7 @@ MigrationServiceTracingConnection::BatchMigrateResources( request) { auto span = internal::MakeSpan( "aiplatform_v1::MigrationServiceConnection::BatchMigrateResources"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->BatchMigrateResources( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/model_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/model_tracing_connection.cc index ca499c3230c1b..b0c2192c189f1 100644 --- a/google/cloud/aiplatform/v1/internal/model_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/model_tracing_connection.cc @@ -48,7 +48,7 @@ ModelServiceTracingConnection::UploadModel( google::cloud::aiplatform::v1::UploadModelRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::ModelServiceConnection::UploadModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UploadModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -125,7 +125,7 @@ ModelServiceTracingConnection::UpdateExplanationDataset( request) { auto span = internal::MakeSpan( "aiplatform_v1::ModelServiceConnection::UpdateExplanationDataset"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateExplanationDataset( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -159,7 +159,7 @@ ModelServiceTracingConnection::DeleteModel( google::cloud::aiplatform::v1::DeleteModelRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::ModelServiceConnection::DeleteModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -193,7 +193,7 @@ ModelServiceTracingConnection::DeleteModelVersion( google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::ModelServiceConnection::DeleteModelVersion"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteModelVersion(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -235,7 +235,7 @@ ModelServiceTracingConnection::ExportModel( google::cloud::aiplatform::v1::ExportModelRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::ModelServiceConnection::ExportModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -268,7 +268,7 @@ ModelServiceTracingConnection::CopyModel( google::cloud::aiplatform::v1::CopyModelRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::ModelServiceConnection::CopyModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CopyModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.cc index 4f5e91e0f5ea5..040cdf04605af 100644 --- a/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.cc @@ -53,7 +53,7 @@ NotebookServiceTracingConnection::CreateNotebookRuntimeTemplate( auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::" "CreateNotebookRuntimeTemplate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateNotebookRuntimeTemplate( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -115,7 +115,7 @@ NotebookServiceTracingConnection::DeleteNotebookRuntimeTemplate( auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::" "DeleteNotebookRuntimeTemplate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteNotebookRuntimeTemplate( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -164,7 +164,7 @@ NotebookServiceTracingConnection::AssignNotebookRuntime( request) { auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::AssignNotebookRuntime"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->AssignNotebookRuntime( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -221,7 +221,7 @@ NotebookServiceTracingConnection::DeleteNotebookRuntime( request) { auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::DeleteNotebookRuntime"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteNotebookRuntime( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -257,7 +257,7 @@ NotebookServiceTracingConnection::UpgradeNotebookRuntime( request) { auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::UpgradeNotebookRuntime"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpgradeNotebookRuntime( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -291,7 +291,7 @@ NotebookServiceTracingConnection::StartNotebookRuntime( google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::StartNotebookRuntime"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->StartNotebookRuntime( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.cc index 7675913e2617c..a57c6c39abbf8 100644 --- a/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.cc @@ -55,7 +55,7 @@ PersistentResourceServiceTracingConnection::CreatePersistentResource( auto span = internal::MakeSpan( "aiplatform_v1::PersistentResourceServiceConnection::" "CreatePersistentResource"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreatePersistentResource( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -118,7 +118,7 @@ PersistentResourceServiceTracingConnection::DeletePersistentResource( auto span = internal::MakeSpan( "aiplatform_v1::PersistentResourceServiceConnection::" "DeletePersistentResource"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeletePersistentResource( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -157,7 +157,7 @@ PersistentResourceServiceTracingConnection::UpdatePersistentResource( auto span = internal::MakeSpan( "aiplatform_v1::PersistentResourceServiceConnection::" "UpdatePersistentResource"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdatePersistentResource( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -196,7 +196,7 @@ PersistentResourceServiceTracingConnection::RebootPersistentResource( auto span = internal::MakeSpan( "aiplatform_v1::PersistentResourceServiceConnection::" "RebootPersistentResource"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RebootPersistentResource( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.cc index e816b29e1ac97..43e60e80e172d 100644 --- a/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.cc @@ -82,7 +82,7 @@ PipelineServiceTracingConnection::DeleteTrainingPipeline( request) { auto span = internal::MakeSpan( "aiplatform_v1::PipelineServiceConnection::DeleteTrainingPipeline"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteTrainingPipeline( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -154,7 +154,7 @@ PipelineServiceTracingConnection::DeletePipelineJob( google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::PipelineServiceConnection::DeletePipelineJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeletePipelineJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -190,7 +190,7 @@ PipelineServiceTracingConnection::BatchDeletePipelineJobs( request) { auto span = internal::MakeSpan( "aiplatform_v1::PipelineServiceConnection::BatchDeletePipelineJobs"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->BatchDeletePipelineJobs( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -234,7 +234,7 @@ PipelineServiceTracingConnection::BatchCancelPipelineJobs( request) { auto span = internal::MakeSpan( "aiplatform_v1::PipelineServiceConnection::BatchCancelPipelineJobs"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->BatchCancelPipelineJobs( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.cc index 66fcea89fc3c5..09fad91fe2627 100644 --- a/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.cc @@ -57,7 +57,7 @@ ScheduleServiceTracingConnection::DeleteSchedule( google::cloud::aiplatform::v1::DeleteScheduleRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::ScheduleServiceConnection::DeleteSchedule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSchedule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.cc index f3678e134a206..337dd4fa9aa2b 100644 --- a/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.cc @@ -49,7 +49,7 @@ SpecialistPoolServiceTracingConnection::CreateSpecialistPool( google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::SpecialistPoolServiceConnection::CreateSpecialistPool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateSpecialistPool( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -104,7 +104,7 @@ SpecialistPoolServiceTracingConnection::DeleteSpecialistPool( google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::SpecialistPoolServiceConnection::DeleteSpecialistPool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteSpecialistPool( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -138,7 +138,7 @@ SpecialistPoolServiceTracingConnection::UpdateSpecialistPool( google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::SpecialistPoolServiceConnection::UpdateSpecialistPool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateSpecialistPool( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.cc index 795c5965d004e..52976fe431dea 100644 --- a/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.cc @@ -48,7 +48,7 @@ TensorboardServiceTracingConnection::CreateTensorboard( google::cloud::aiplatform::v1::CreateTensorboardRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::CreateTensorboard"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateTensorboard(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -90,7 +90,7 @@ TensorboardServiceTracingConnection::UpdateTensorboard( google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::UpdateTensorboard"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateTensorboard(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ TensorboardServiceTracingConnection::DeleteTensorboard( google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::DeleteTensorboard"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteTensorboard(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -236,7 +236,7 @@ TensorboardServiceTracingConnection::DeleteTensorboardExperiment( auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::" "DeleteTensorboardExperiment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteTensorboardExperiment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -321,7 +321,7 @@ TensorboardServiceTracingConnection::DeleteTensorboardRun( google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::DeleteTensorboardRun"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteTensorboardRun( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -416,7 +416,7 @@ TensorboardServiceTracingConnection::DeleteTensorboardTimeSeries( auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::" "DeleteTensorboardTimeSeries"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteTensorboardTimeSeries( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.cc index 9d3fb5c3fd9c2..eb5142f27b7d7 100644 --- a/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.cc @@ -94,7 +94,7 @@ VizierServiceTracingConnection::SuggestTrials( google::cloud::aiplatform::v1::SuggestTrialsRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::VizierServiceConnection::SuggestTrials"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SuggestTrials(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -186,7 +186,7 @@ VizierServiceTracingConnection::CheckTrialEarlyStoppingState( request) { auto span = internal::MakeSpan( "aiplatform_v1::VizierServiceConnection::CheckTrialEarlyStoppingState"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CheckTrialEarlyStoppingState( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/aiplatform/v1/job_connection.cc b/google/cloud/aiplatform/v1/job_connection.cc index 8cbec861f9a37..be3d63ad38962 100644 --- a/google/cloud/aiplatform/v1/job_connection.cc +++ b/google/cloud/aiplatform/v1/job_connection.cc @@ -67,14 +67,14 @@ JobServiceConnection::DeleteCustomJob( } StatusOr JobServiceConnection::DeleteCustomJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteCustomJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -JobServiceConnection::DeleteCustomJob(google::cloud::ExperimentalTag, +JobServiceConnection::DeleteCustomJob(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -116,7 +116,7 @@ JobServiceConnection::DeleteDataLabelingJob( StatusOr JobServiceConnection::DeleteDataLabelingJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -124,7 +124,7 @@ JobServiceConnection::DeleteDataLabelingJob( future> JobServiceConnection::DeleteDataLabelingJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -167,7 +167,7 @@ JobServiceConnection::DeleteHyperparameterTuningJob( StatusOr JobServiceConnection::DeleteHyperparameterTuningJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: DeleteHyperparameterTuningJobRequest const&) { return StatusOr( @@ -176,7 +176,7 @@ JobServiceConnection::DeleteHyperparameterTuningJob( future> JobServiceConnection::DeleteHyperparameterTuningJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -216,14 +216,14 @@ JobServiceConnection::DeleteNasJob( } StatusOr JobServiceConnection::DeleteNasJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNasJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -JobServiceConnection::DeleteNasJob(google::cloud::ExperimentalTag, +JobServiceConnection::DeleteNasJob(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -279,7 +279,7 @@ JobServiceConnection::DeleteBatchPredictionJob( StatusOr JobServiceConnection::DeleteBatchPredictionJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -287,7 +287,7 @@ JobServiceConnection::DeleteBatchPredictionJob( future> JobServiceConnection::DeleteBatchPredictionJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -339,7 +339,7 @@ JobServiceConnection::UpdateModelDeploymentMonitoringJob( StatusOr JobServiceConnection::UpdateModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: UpdateModelDeploymentMonitoringJobRequest const&) { return StatusOr( @@ -348,7 +348,7 @@ JobServiceConnection::UpdateModelDeploymentMonitoringJob( future> JobServiceConnection::UpdateModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -365,7 +365,7 @@ JobServiceConnection::DeleteModelDeploymentMonitoringJob( StatusOr JobServiceConnection::DeleteModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: DeleteModelDeploymentMonitoringJobRequest const&) { return StatusOr( @@ -374,7 +374,7 @@ JobServiceConnection::DeleteModelDeploymentMonitoringJob( future> JobServiceConnection::DeleteModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/job_connection.h b/google/cloud/aiplatform/v1/job_connection.h index 1da4afb59d3cc..9c07853a5b411 100644 --- a/google/cloud/aiplatform/v1/job_connection.h +++ b/google/cloud/aiplatform/v1/job_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/internal/job_retry_traits.h" #include "google/cloud/aiplatform/v1/job_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -202,12 +202,12 @@ class JobServiceConnection { google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request); virtual StatusOr DeleteCustomJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request); virtual future< StatusOr> - DeleteCustomJob(google::cloud::ExperimentalTag, + DeleteCustomJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status CancelCustomJob( @@ -233,13 +233,13 @@ class JobServiceConnection { request); virtual StatusOr DeleteDataLabelingJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& request); virtual future< StatusOr> - DeleteDataLabelingJob(google::cloud::ExperimentalTag, + DeleteDataLabelingJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status CancelDataLabelingJob( @@ -269,15 +269,14 @@ class JobServiceConnection { virtual StatusOr DeleteHyperparameterTuningJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteHyperparameterTuningJobRequest const& request); virtual future< StatusOr> DeleteHyperparameterTuningJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual Status CancelHyperparameterTuningJob( google::cloud::aiplatform::v1::CancelHyperparameterTuningJobRequest const& @@ -298,12 +297,12 @@ class JobServiceConnection { google::cloud::aiplatform::v1::DeleteNasJobRequest const& request); virtual StatusOr DeleteNasJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNasJobRequest const& request); virtual future< StatusOr> - DeleteNasJob(google::cloud::ExperimentalTag, + DeleteNasJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status CancelNasJob( @@ -338,13 +337,13 @@ class JobServiceConnection { request); virtual StatusOr DeleteBatchPredictionJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& request); virtual future< StatusOr> - DeleteBatchPredictionJob(google::cloud::ExperimentalTag, + DeleteBatchPredictionJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status CancelBatchPredictionJob( @@ -381,15 +380,14 @@ class JobServiceConnection { virtual StatusOr UpdateModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: UpdateModelDeploymentMonitoringJobRequest const& request); virtual future< StatusOr> UpdateModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> @@ -399,15 +397,14 @@ class JobServiceConnection { virtual StatusOr DeleteModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: DeleteModelDeploymentMonitoringJobRequest const& request); virtual future< StatusOr> DeleteModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual Status PauseModelDeploymentMonitoringJob( google::cloud::aiplatform::v1:: diff --git a/google/cloud/aiplatform/v1/llm_utility_connection.h b/google/cloud/aiplatform/v1/llm_utility_connection.h index 031dc2ea785fb..6302525273b18 100644 --- a/google/cloud/aiplatform/v1/llm_utility_connection.h +++ b/google/cloud/aiplatform/v1/llm_utility_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/aiplatform/v1/internal/llm_utility_retry_traits.h" #include "google/cloud/aiplatform/v1/llm_utility_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/aiplatform/v1/match_connection.h b/google/cloud/aiplatform/v1/match_connection.h index 5d202d2a2e1b2..4b4a1b0830678 100644 --- a/google/cloud/aiplatform/v1/match_connection.h +++ b/google/cloud/aiplatform/v1/match_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/aiplatform/v1/internal/match_retry_traits.h" #include "google/cloud/aiplatform/v1/match_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/aiplatform/v1/metadata_connection.cc b/google/cloud/aiplatform/v1/metadata_connection.cc index 51b0c54d5e79d..90374a31d6382 100644 --- a/google/cloud/aiplatform/v1/metadata_connection.cc +++ b/google/cloud/aiplatform/v1/metadata_connection.cc @@ -48,7 +48,7 @@ MetadataServiceConnection::CreateMetadataStore( StatusOr MetadataServiceConnection::CreateMetadataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateMetadataStoreRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ MetadataServiceConnection::CreateMetadataStore( future> MetadataServiceConnection::CreateMetadataStore( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -87,7 +87,7 @@ MetadataServiceConnection::DeleteMetadataStore( StatusOr MetadataServiceConnection::DeleteMetadataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -96,7 +96,7 @@ MetadataServiceConnection::DeleteMetadataStore( future> MetadataServiceConnection::DeleteMetadataStore( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -138,7 +138,7 @@ MetadataServiceConnection::DeleteArtifact( StatusOr MetadataServiceConnection::DeleteArtifact( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteArtifactRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -146,7 +146,7 @@ MetadataServiceConnection::DeleteArtifact( future> MetadataServiceConnection::DeleteArtifact( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -162,7 +162,7 @@ MetadataServiceConnection::PurgeArtifacts( StatusOr MetadataServiceConnection::PurgeArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeArtifactsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -170,7 +170,7 @@ MetadataServiceConnection::PurgeArtifacts( future> MetadataServiceConnection::PurgeArtifacts( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -212,7 +212,7 @@ MetadataServiceConnection::DeleteContext( StatusOr MetadataServiceConnection::DeleteContext( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteContextRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -220,7 +220,7 @@ MetadataServiceConnection::DeleteContext( future> MetadataServiceConnection::DeleteContext( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -236,7 +236,7 @@ MetadataServiceConnection::PurgeContexts( StatusOr MetadataServiceConnection::PurgeContexts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeContextsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -244,7 +244,7 @@ MetadataServiceConnection::PurgeContexts( future> MetadataServiceConnection::PurgeContexts( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -312,7 +312,7 @@ MetadataServiceConnection::DeleteExecution( StatusOr MetadataServiceConnection::DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteExecutionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -320,7 +320,7 @@ MetadataServiceConnection::DeleteExecution( future> MetadataServiceConnection::DeleteExecution( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -336,7 +336,7 @@ MetadataServiceConnection::PurgeExecutions( StatusOr MetadataServiceConnection::PurgeExecutions( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeExecutionsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -344,7 +344,7 @@ MetadataServiceConnection::PurgeExecutions( future> MetadataServiceConnection::PurgeExecutions( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/metadata_connection.h b/google/cloud/aiplatform/v1/metadata_connection.h index 3ebfd0937a137..cfba24f834184 100644 --- a/google/cloud/aiplatform/v1/metadata_connection.h +++ b/google/cloud/aiplatform/v1/metadata_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/internal/metadata_retry_traits.h" #include "google/cloud/aiplatform/v1/metadata_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -194,11 +194,11 @@ class MetadataServiceConnection { google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request); virtual StatusOr CreateMetadataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request); virtual future> - CreateMetadataStore(google::cloud::ExperimentalTag, + CreateMetadataStore(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -215,12 +215,12 @@ class MetadataServiceConnection { google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request); virtual StatusOr DeleteMetadataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request); virtual future> - DeleteMetadataStore(google::cloud::ExperimentalTag, + DeleteMetadataStore(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr CreateArtifact( @@ -241,12 +241,12 @@ class MetadataServiceConnection { google::cloud::aiplatform::v1::DeleteArtifactRequest const& request); virtual StatusOr DeleteArtifact( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteArtifactRequest const& request); virtual future< StatusOr> - DeleteArtifact(google::cloud::ExperimentalTag, + DeleteArtifact(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -255,12 +255,12 @@ class MetadataServiceConnection { google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request); virtual StatusOr PurgeArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request); virtual future< StatusOr> - PurgeArtifacts(google::cloud::ExperimentalTag, + PurgeArtifacts(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr CreateContext( @@ -281,12 +281,12 @@ class MetadataServiceConnection { google::cloud::aiplatform::v1::DeleteContextRequest const& request); virtual StatusOr DeleteContext( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteContextRequest const& request); virtual future< StatusOr> - DeleteContext(google::cloud::ExperimentalTag, + DeleteContext(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -294,11 +294,11 @@ class MetadataServiceConnection { google::cloud::aiplatform::v1::PurgeContextsRequest const& request); virtual StatusOr PurgeContexts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeContextsRequest const& request); virtual future> - PurgeContexts(google::cloud::ExperimentalTag, + PurgeContexts(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< @@ -339,12 +339,12 @@ class MetadataServiceConnection { google::cloud::aiplatform::v1::DeleteExecutionRequest const& request); virtual StatusOr DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteExecutionRequest const& request); virtual future< StatusOr> - DeleteExecution(google::cloud::ExperimentalTag, + DeleteExecution(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -353,12 +353,12 @@ class MetadataServiceConnection { google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request); virtual StatusOr PurgeExecutions( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request); virtual future< StatusOr> - PurgeExecutions(google::cloud::ExperimentalTag, + PurgeExecutions(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/aiplatform/v1/migration_connection.cc b/google/cloud/aiplatform/v1/migration_connection.cc index b6e2528e7d617..4c4b42da817c4 100644 --- a/google/cloud/aiplatform/v1/migration_connection.cc +++ b/google/cloud/aiplatform/v1/migration_connection.cc @@ -56,7 +56,7 @@ MigrationServiceConnection::BatchMigrateResources( StatusOr MigrationServiceConnection::BatchMigrateResources( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -64,7 +64,7 @@ MigrationServiceConnection::BatchMigrateResources( future> MigrationServiceConnection::BatchMigrateResources( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/migration_connection.h b/google/cloud/aiplatform/v1/migration_connection.h index 0224d036212b7..6123bcf632c63 100644 --- a/google/cloud/aiplatform/v1/migration_connection.h +++ b/google/cloud/aiplatform/v1/migration_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/internal/migration_retry_traits.h" #include "google/cloud/aiplatform/v1/migration_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -200,13 +200,13 @@ class MigrationServiceConnection { request); virtual StatusOr BatchMigrateResources( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& request); virtual future< StatusOr> - BatchMigrateResources(google::cloud::ExperimentalTag, + BatchMigrateResources(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/aiplatform/v1/model_connection.cc b/google/cloud/aiplatform/v1/model_connection.cc index b3c64791462df..9825bf26b4331 100644 --- a/google/cloud/aiplatform/v1/model_connection.cc +++ b/google/cloud/aiplatform/v1/model_connection.cc @@ -47,14 +47,14 @@ ModelServiceConnection::UploadModel( } StatusOr ModelServiceConnection::UploadModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UploadModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ModelServiceConnection::UploadModel(google::cloud::ExperimentalTag, +ModelServiceConnection::UploadModel(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -99,7 +99,7 @@ ModelServiceConnection::UpdateExplanationDataset( StatusOr ModelServiceConnection::UpdateExplanationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -108,7 +108,7 @@ ModelServiceConnection::UpdateExplanationDataset( future< StatusOr> ModelServiceConnection::UpdateExplanationDataset( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -123,14 +123,14 @@ ModelServiceConnection::DeleteModel( } StatusOr ModelServiceConnection::DeleteModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ModelServiceConnection::DeleteModel(google::cloud::ExperimentalTag, +ModelServiceConnection::DeleteModel(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -147,7 +147,7 @@ ModelServiceConnection::DeleteModelVersion( StatusOr ModelServiceConnection::DeleteModelVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteModelVersionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -155,7 +155,7 @@ ModelServiceConnection::DeleteModelVersion( future> ModelServiceConnection::DeleteModelVersion( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -176,14 +176,14 @@ ModelServiceConnection::ExportModel( } StatusOr ModelServiceConnection::ExportModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ModelServiceConnection::ExportModel(google::cloud::ExperimentalTag, +ModelServiceConnection::ExportModel(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -199,14 +199,14 @@ ModelServiceConnection::CopyModel( } StatusOr ModelServiceConnection::CopyModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CopyModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ModelServiceConnection::CopyModel(google::cloud::ExperimentalTag, +ModelServiceConnection::CopyModel(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/aiplatform/v1/model_connection.h b/google/cloud/aiplatform/v1/model_connection.h index 12caec070730e..7dab58714c0d2 100644 --- a/google/cloud/aiplatform/v1/model_connection.h +++ b/google/cloud/aiplatform/v1/model_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/internal/model_retry_traits.h" #include "google/cloud/aiplatform/v1/model_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,12 +192,11 @@ class ModelServiceConnection { UploadModel(google::cloud::aiplatform::v1::UploadModelRequest const& request); virtual StatusOr UploadModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UploadModelRequest const& request); virtual future> - UploadModel(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + UploadModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetModel( google::cloud::aiplatform::v1::GetModelRequest const& request); @@ -218,13 +217,13 @@ class ModelServiceConnection { request); virtual StatusOr UpdateExplanationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& request); virtual future< StatusOr> - UpdateExplanationDataset(google::cloud::ExperimentalTag, + UpdateExplanationDataset(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -232,13 +231,12 @@ class ModelServiceConnection { DeleteModel(google::cloud::aiplatform::v1::DeleteModelRequest const& request); virtual StatusOr DeleteModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteModelRequest const& request); virtual future< StatusOr> - DeleteModel(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> @@ -246,12 +244,12 @@ class ModelServiceConnection { google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request); virtual StatusOr DeleteModelVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request); virtual future< StatusOr> - DeleteModelVersion(google::cloud::ExperimentalTag, + DeleteModelVersion(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr MergeVersionAliases( @@ -261,23 +259,21 @@ class ModelServiceConnection { ExportModel(google::cloud::aiplatform::v1::ExportModelRequest const& request); virtual StatusOr ExportModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportModelRequest const& request); virtual future> - ExportModel(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExportModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CopyModel(google::cloud::aiplatform::v1::CopyModelRequest const& request); virtual StatusOr CopyModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CopyModelRequest const& request); virtual future> - CopyModel(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + CopyModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr ImportModelEvaluation( diff --git a/google/cloud/aiplatform/v1/model_garden_connection.h b/google/cloud/aiplatform/v1/model_garden_connection.h index 6501888d6c77e..a4080a7d04702 100644 --- a/google/cloud/aiplatform/v1/model_garden_connection.h +++ b/google/cloud/aiplatform/v1/model_garden_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/aiplatform/v1/internal/model_garden_retry_traits.h" #include "google/cloud/aiplatform/v1/model_garden_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/aiplatform/v1/notebook_connection.cc b/google/cloud/aiplatform/v1/notebook_connection.cc index c97aaaceeee12..b9f2fcbc800ab 100644 --- a/google/cloud/aiplatform/v1/notebook_connection.cc +++ b/google/cloud/aiplatform/v1/notebook_connection.cc @@ -49,7 +49,7 @@ NotebookServiceConnection::CreateNotebookRuntimeTemplate( StatusOr NotebookServiceConnection::CreateNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: CreateNotebookRuntimeTemplateRequest const&) { return StatusOr( @@ -58,7 +58,7 @@ NotebookServiceConnection::CreateNotebookRuntimeTemplate( future> NotebookServiceConnection::CreateNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -89,7 +89,7 @@ NotebookServiceConnection::DeleteNotebookRuntimeTemplate( StatusOr NotebookServiceConnection::DeleteNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: DeleteNotebookRuntimeTemplateRequest const&) { return StatusOr( @@ -98,7 +98,7 @@ NotebookServiceConnection::DeleteNotebookRuntimeTemplate( future> NotebookServiceConnection::DeleteNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -121,7 +121,7 @@ NotebookServiceConnection::AssignNotebookRuntime( StatusOr NotebookServiceConnection::AssignNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -129,7 +129,7 @@ NotebookServiceConnection::AssignNotebookRuntime( future> NotebookServiceConnection::AssignNotebookRuntime( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -159,7 +159,7 @@ NotebookServiceConnection::DeleteNotebookRuntime( StatusOr NotebookServiceConnection::DeleteNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -167,7 +167,7 @@ NotebookServiceConnection::DeleteNotebookRuntime( future> NotebookServiceConnection::DeleteNotebookRuntime( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -183,7 +183,7 @@ NotebookServiceConnection::UpgradeNotebookRuntime( StatusOr NotebookServiceConnection::UpgradeNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -191,7 +191,7 @@ NotebookServiceConnection::UpgradeNotebookRuntime( future> NotebookServiceConnection::UpgradeNotebookRuntime( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -207,7 +207,7 @@ NotebookServiceConnection::StartNotebookRuntime( StatusOr NotebookServiceConnection::StartNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -215,7 +215,7 @@ NotebookServiceConnection::StartNotebookRuntime( future> NotebookServiceConnection::StartNotebookRuntime( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/notebook_connection.h b/google/cloud/aiplatform/v1/notebook_connection.h index ba3a959e0475b..2290256cff499 100644 --- a/google/cloud/aiplatform/v1/notebook_connection.h +++ b/google/cloud/aiplatform/v1/notebook_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/internal/notebook_retry_traits.h" #include "google/cloud/aiplatform/v1/notebook_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,15 +197,14 @@ class NotebookServiceConnection { virtual StatusOr CreateNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateNotebookRuntimeTemplateRequest const& request); virtual future< StatusOr> CreateNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetNotebookRuntimeTemplate( @@ -225,15 +224,14 @@ class NotebookServiceConnection { virtual StatusOr DeleteNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNotebookRuntimeTemplateRequest const& request); virtual future< StatusOr> DeleteNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr UpdateNotebookRuntimeTemplate( @@ -246,12 +244,12 @@ class NotebookServiceConnection { request); virtual StatusOr AssignNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& request); virtual future> - AssignNotebookRuntime(google::cloud::ExperimentalTag, + AssignNotebookRuntime(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -269,13 +267,13 @@ class NotebookServiceConnection { request); virtual StatusOr DeleteNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& request); virtual future< StatusOr> - DeleteNotebookRuntime(google::cloud::ExperimentalTag, + DeleteNotebookRuntime(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -285,13 +283,13 @@ class NotebookServiceConnection { request); virtual StatusOr UpgradeNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& request); virtual future< StatusOr> - UpgradeNotebookRuntime(google::cloud::ExperimentalTag, + UpgradeNotebookRuntime(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -301,13 +299,13 @@ class NotebookServiceConnection { request); virtual StatusOr StartNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request); virtual future< StatusOr> - StartNotebookRuntime(google::cloud::ExperimentalTag, + StartNotebookRuntime(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/aiplatform/v1/persistent_resource_connection.cc b/google/cloud/aiplatform/v1/persistent_resource_connection.cc index 73d8a7cc89099..135e9d19d1685 100644 --- a/google/cloud/aiplatform/v1/persistent_resource_connection.cc +++ b/google/cloud/aiplatform/v1/persistent_resource_connection.cc @@ -49,7 +49,7 @@ PersistentResourceServiceConnection::CreatePersistentResource( StatusOr PersistentResourceServiceConnection::CreatePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreatePersistentResourceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -57,7 +57,7 @@ PersistentResourceServiceConnection::CreatePersistentResource( future> PersistentResourceServiceConnection::CreatePersistentResource( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -87,7 +87,7 @@ PersistentResourceServiceConnection::DeletePersistentResource( StatusOr PersistentResourceServiceConnection::DeletePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeletePersistentResourceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -95,7 +95,7 @@ PersistentResourceServiceConnection::DeletePersistentResource( future> PersistentResourceServiceConnection::DeletePersistentResource( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -111,7 +111,7 @@ PersistentResourceServiceConnection::UpdatePersistentResource( StatusOr PersistentResourceServiceConnection::UpdatePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -119,7 +119,7 @@ PersistentResourceServiceConnection::UpdatePersistentResource( future> PersistentResourceServiceConnection::UpdatePersistentResource( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -135,7 +135,7 @@ PersistentResourceServiceConnection::RebootPersistentResource( StatusOr PersistentResourceServiceConnection::RebootPersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::RebootPersistentResourceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -143,7 +143,7 @@ PersistentResourceServiceConnection::RebootPersistentResource( future> PersistentResourceServiceConnection::RebootPersistentResource( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/persistent_resource_connection.h b/google/cloud/aiplatform/v1/persistent_resource_connection.h index 2e2caf81661fb..3cbd0049c7e44 100644 --- a/google/cloud/aiplatform/v1/persistent_resource_connection.h +++ b/google/cloud/aiplatform/v1/persistent_resource_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/internal/persistent_resource_retry_traits.h" #include "google/cloud/aiplatform/v1/persistent_resource_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -208,12 +208,12 @@ class PersistentResourceServiceConnection { request); virtual StatusOr CreatePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& request); virtual future> - CreatePersistentResource(google::cloud::ExperimentalTag, + CreatePersistentResource(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -232,13 +232,13 @@ class PersistentResourceServiceConnection { request); virtual StatusOr DeletePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& request); virtual future< StatusOr> - DeletePersistentResource(google::cloud::ExperimentalTag, + DeletePersistentResource(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -247,12 +247,12 @@ class PersistentResourceServiceConnection { request); virtual StatusOr UpdatePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& request); virtual future> - UpdatePersistentResource(google::cloud::ExperimentalTag, + UpdatePersistentResource(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -261,12 +261,12 @@ class PersistentResourceServiceConnection { request); virtual StatusOr RebootPersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& request); virtual future> - RebootPersistentResource(google::cloud::ExperimentalTag, + RebootPersistentResource(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/aiplatform/v1/pipeline_connection.cc b/google/cloud/aiplatform/v1/pipeline_connection.cc index 6682977a9cb67..5ff42deaeb69e 100644 --- a/google/cloud/aiplatform/v1/pipeline_connection.cc +++ b/google/cloud/aiplatform/v1/pipeline_connection.cc @@ -68,7 +68,7 @@ PipelineServiceConnection::DeleteTrainingPipeline( StatusOr PipelineServiceConnection::DeleteTrainingPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -76,7 +76,7 @@ PipelineServiceConnection::DeleteTrainingPipeline( future> PipelineServiceConnection::DeleteTrainingPipeline( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -117,7 +117,7 @@ PipelineServiceConnection::DeletePipelineJob( StatusOr PipelineServiceConnection::DeletePipelineJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeletePipelineJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -125,7 +125,7 @@ PipelineServiceConnection::DeletePipelineJob( future> PipelineServiceConnection::DeletePipelineJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -141,7 +141,7 @@ PipelineServiceConnection::BatchDeletePipelineJobs( StatusOr PipelineServiceConnection::BatchDeletePipelineJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -149,7 +149,7 @@ PipelineServiceConnection::BatchDeletePipelineJobs( future> PipelineServiceConnection::BatchDeletePipelineJobs( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -170,7 +170,7 @@ PipelineServiceConnection::BatchCancelPipelineJobs( StatusOr PipelineServiceConnection::BatchCancelPipelineJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -178,7 +178,7 @@ PipelineServiceConnection::BatchCancelPipelineJobs( future> PipelineServiceConnection::BatchCancelPipelineJobs( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/pipeline_connection.h b/google/cloud/aiplatform/v1/pipeline_connection.h index ed70b6e4aea87..a0cd3d3054403 100644 --- a/google/cloud/aiplatform/v1/pipeline_connection.h +++ b/google/cloud/aiplatform/v1/pipeline_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/internal/pipeline_retry_traits.h" #include "google/cloud/aiplatform/v1/pipeline_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -209,13 +209,13 @@ class PipelineServiceConnection { request); virtual StatusOr DeleteTrainingPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& request); virtual future< StatusOr> - DeleteTrainingPipeline(google::cloud::ExperimentalTag, + DeleteTrainingPipeline(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status CancelTrainingPipeline( @@ -239,12 +239,12 @@ class PipelineServiceConnection { google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request); virtual StatusOr DeletePipelineJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request); virtual future< StatusOr> - DeletePipelineJob(google::cloud::ExperimentalTag, + DeletePipelineJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -254,13 +254,13 @@ class PipelineServiceConnection { request); virtual StatusOr BatchDeletePipelineJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& request); virtual future< StatusOr> - BatchDeletePipelineJobs(google::cloud::ExperimentalTag, + BatchDeletePipelineJobs(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status CancelPipelineJob( @@ -273,13 +273,13 @@ class PipelineServiceConnection { request); virtual StatusOr BatchCancelPipelineJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& request); virtual future< StatusOr> - BatchCancelPipelineJobs(google::cloud::ExperimentalTag, + BatchCancelPipelineJobs(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/aiplatform/v1/prediction_connection.h b/google/cloud/aiplatform/v1/prediction_connection.h index 4cf96e20121e6..7ea0a3a7de66b 100644 --- a/google/cloud/aiplatform/v1/prediction_connection.h +++ b/google/cloud/aiplatform/v1/prediction_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/aiplatform/v1/internal/prediction_retry_traits.h" #include "google/cloud/aiplatform/v1/prediction_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/async_read_write_stream_impl.h" diff --git a/google/cloud/aiplatform/v1/schedule_connection.cc b/google/cloud/aiplatform/v1/schedule_connection.cc index 589702f3611c4..a45b30d0b0b83 100644 --- a/google/cloud/aiplatform/v1/schedule_connection.cc +++ b/google/cloud/aiplatform/v1/schedule_connection.cc @@ -54,7 +54,7 @@ ScheduleServiceConnection::DeleteSchedule( StatusOr ScheduleServiceConnection::DeleteSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteScheduleRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -62,7 +62,7 @@ ScheduleServiceConnection::DeleteSchedule( future> ScheduleServiceConnection::DeleteSchedule( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/schedule_connection.h b/google/cloud/aiplatform/v1/schedule_connection.h index cb9d2584b0af3..79ec5c8563bf2 100644 --- a/google/cloud/aiplatform/v1/schedule_connection.h +++ b/google/cloud/aiplatform/v1/schedule_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/internal/schedule_retry_traits.h" #include "google/cloud/aiplatform/v1/schedule_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -198,12 +198,12 @@ class ScheduleServiceConnection { google::cloud::aiplatform::v1::DeleteScheduleRequest const& request); virtual StatusOr DeleteSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteScheduleRequest const& request); virtual future< StatusOr> - DeleteSchedule(google::cloud::ExperimentalTag, + DeleteSchedule(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetSchedule( diff --git a/google/cloud/aiplatform/v1/specialist_pool_connection.cc b/google/cloud/aiplatform/v1/specialist_pool_connection.cc index 03a10de5cc64b..fd61a53c17847 100644 --- a/google/cloud/aiplatform/v1/specialist_pool_connection.cc +++ b/google/cloud/aiplatform/v1/specialist_pool_connection.cc @@ -48,7 +48,7 @@ SpecialistPoolServiceConnection::CreateSpecialistPool( StatusOr SpecialistPoolServiceConnection::CreateSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ SpecialistPoolServiceConnection::CreateSpecialistPool( future> SpecialistPoolServiceConnection::CreateSpecialistPool( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ SpecialistPoolServiceConnection::DeleteSpecialistPool( StatusOr SpecialistPoolServiceConnection::DeleteSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ SpecialistPoolServiceConnection::DeleteSpecialistPool( future> SpecialistPoolServiceConnection::DeleteSpecialistPool( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ SpecialistPoolServiceConnection::UpdateSpecialistPool( StatusOr SpecialistPoolServiceConnection::UpdateSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ SpecialistPoolServiceConnection::UpdateSpecialistPool( future> SpecialistPoolServiceConnection::UpdateSpecialistPool( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/specialist_pool_connection.h b/google/cloud/aiplatform/v1/specialist_pool_connection.h index d0f11239c507c..998b117ac14e1 100644 --- a/google/cloud/aiplatform/v1/specialist_pool_connection.h +++ b/google/cloud/aiplatform/v1/specialist_pool_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/internal/specialist_pool_retry_traits.h" #include "google/cloud/aiplatform/v1/specialist_pool_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -200,12 +200,12 @@ class SpecialistPoolServiceConnection { request); virtual StatusOr CreateSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& request); virtual future> - CreateSpecialistPool(google::cloud::ExperimentalTag, + CreateSpecialistPool(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -223,13 +223,13 @@ class SpecialistPoolServiceConnection { request); virtual StatusOr DeleteSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& request); virtual future< StatusOr> - DeleteSpecialistPool(google::cloud::ExperimentalTag, + DeleteSpecialistPool(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -238,12 +238,12 @@ class SpecialistPoolServiceConnection { request); virtual StatusOr UpdateSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request); virtual future> - UpdateSpecialistPool(google::cloud::ExperimentalTag, + UpdateSpecialistPool(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/aiplatform/v1/tensorboard_connection.cc b/google/cloud/aiplatform/v1/tensorboard_connection.cc index 7e801e1970f54..1470972b7490c 100644 --- a/google/cloud/aiplatform/v1/tensorboard_connection.cc +++ b/google/cloud/aiplatform/v1/tensorboard_connection.cc @@ -48,7 +48,7 @@ TensorboardServiceConnection::CreateTensorboard( StatusOr TensorboardServiceConnection::CreateTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateTensorboardRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ TensorboardServiceConnection::CreateTensorboard( future> TensorboardServiceConnection::CreateTensorboard( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -78,7 +78,7 @@ TensorboardServiceConnection::UpdateTensorboard( StatusOr TensorboardServiceConnection::UpdateTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateTensorboardRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ TensorboardServiceConnection::UpdateTensorboard( future> TensorboardServiceConnection::UpdateTensorboard( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ TensorboardServiceConnection::DeleteTensorboard( StatusOr TensorboardServiceConnection::DeleteTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ TensorboardServiceConnection::DeleteTensorboard( future> TensorboardServiceConnection::DeleteTensorboard( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -172,7 +172,7 @@ TensorboardServiceConnection::DeleteTensorboardExperiment( StatusOr TensorboardServiceConnection::DeleteTensorboardExperiment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -180,7 +180,7 @@ TensorboardServiceConnection::DeleteTensorboardExperiment( future> TensorboardServiceConnection::DeleteTensorboardExperiment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -228,7 +228,7 @@ TensorboardServiceConnection::DeleteTensorboardRun( StatusOr TensorboardServiceConnection::DeleteTensorboardRun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -236,7 +236,7 @@ TensorboardServiceConnection::DeleteTensorboardRun( future> TensorboardServiceConnection::DeleteTensorboardRun( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -286,7 +286,7 @@ TensorboardServiceConnection::DeleteTensorboardTimeSeries( StatusOr TensorboardServiceConnection::DeleteTensorboardTimeSeries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -294,7 +294,7 @@ TensorboardServiceConnection::DeleteTensorboardTimeSeries( future> TensorboardServiceConnection::DeleteTensorboardTimeSeries( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/tensorboard_connection.h b/google/cloud/aiplatform/v1/tensorboard_connection.h index 587b805da8f69..19d63f89f2b81 100644 --- a/google/cloud/aiplatform/v1/tensorboard_connection.h +++ b/google/cloud/aiplatform/v1/tensorboard_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/internal/tensorboard_retry_traits.h" #include "google/cloud/aiplatform/v1/tensorboard_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -196,11 +196,11 @@ class TensorboardServiceConnection { google::cloud::aiplatform::v1::CreateTensorboardRequest const& request); virtual StatusOr CreateTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateTensorboardRequest const& request); virtual future> - CreateTensorboard(google::cloud::ExperimentalTag, + CreateTensorboard(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetTensorboard( @@ -211,11 +211,11 @@ class TensorboardServiceConnection { google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request); virtual StatusOr UpdateTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request); virtual future> - UpdateTensorboard(google::cloud::ExperimentalTag, + UpdateTensorboard(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -228,12 +228,12 @@ class TensorboardServiceConnection { google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request); virtual StatusOr DeleteTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request); virtual future< StatusOr> - DeleteTensorboard(google::cloud::ExperimentalTag, + DeleteTensorboard(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -271,13 +271,13 @@ class TensorboardServiceConnection { request); virtual StatusOr DeleteTensorboardExperiment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& request); virtual future< StatusOr> - DeleteTensorboardExperiment(google::cloud::ExperimentalTag, + DeleteTensorboardExperiment(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -311,13 +311,13 @@ class TensorboardServiceConnection { request); virtual StatusOr DeleteTensorboardRun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& request); virtual future< StatusOr> - DeleteTensorboardRun(google::cloud::ExperimentalTag, + DeleteTensorboardRun(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< @@ -352,13 +352,13 @@ class TensorboardServiceConnection { request); virtual StatusOr DeleteTensorboardTimeSeries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& request); virtual future< StatusOr> - DeleteTensorboardTimeSeries(google::cloud::ExperimentalTag, + DeleteTensorboardTimeSeries(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< diff --git a/google/cloud/aiplatform/v1/vizier_connection.cc b/google/cloud/aiplatform/v1/vizier_connection.cc index 2ed73393879d2..b5f66a41744a7 100644 --- a/google/cloud/aiplatform/v1/vizier_connection.cc +++ b/google/cloud/aiplatform/v1/vizier_connection.cc @@ -78,14 +78,14 @@ VizierServiceConnection::SuggestTrials( } StatusOr VizierServiceConnection::SuggestTrials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::SuggestTrialsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VizierServiceConnection::SuggestTrials(google::cloud::ExperimentalTag, +VizierServiceConnection::SuggestTrials(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -140,7 +140,7 @@ VizierServiceConnection::CheckTrialEarlyStoppingState( StatusOr VizierServiceConnection::CheckTrialEarlyStoppingState( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -149,7 +149,7 @@ VizierServiceConnection::CheckTrialEarlyStoppingState( future> VizierServiceConnection::CheckTrialEarlyStoppingState( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/aiplatform/v1/vizier_connection.h b/google/cloud/aiplatform/v1/vizier_connection.h index ccbb9e1fe9129..18f15bb9abeb5 100644 --- a/google/cloud/aiplatform/v1/vizier_connection.h +++ b/google/cloud/aiplatform/v1/vizier_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/aiplatform/v1/internal/vizier_retry_traits.h" #include "google/cloud/aiplatform/v1/vizier_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -208,11 +208,11 @@ class VizierServiceConnection { google::cloud::aiplatform::v1::SuggestTrialsRequest const& request); virtual StatusOr SuggestTrials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::SuggestTrialsRequest const& request); virtual future> - SuggestTrials(google::cloud::ExperimentalTag, + SuggestTrials(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr CreateTrial( @@ -240,13 +240,13 @@ class VizierServiceConnection { request); virtual StatusOr CheckTrialEarlyStoppingState( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& request); virtual future> - CheckTrialEarlyStoppingState(google::cloud::ExperimentalTag, + CheckTrialEarlyStoppingState(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr StopTrial( diff --git a/google/cloud/alloydb/v1/alloy_db_admin_connection.cc b/google/cloud/alloydb/v1/alloy_db_admin_connection.cc index 17b84e4607dfb..a08d4c35f210f 100644 --- a/google/cloud/alloydb/v1/alloy_db_admin_connection.cc +++ b/google/cloud/alloydb/v1/alloy_db_admin_connection.cc @@ -61,14 +61,14 @@ AlloyDBAdminConnection::CreateCluster( } StatusOr AlloyDBAdminConnection::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AlloyDBAdminConnection::CreateCluster(google::cloud::ExperimentalTag, +AlloyDBAdminConnection::CreateCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -84,14 +84,14 @@ AlloyDBAdminConnection::UpdateCluster( } StatusOr AlloyDBAdminConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AlloyDBAdminConnection::UpdateCluster(google::cloud::ExperimentalTag, +AlloyDBAdminConnection::UpdateCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -107,14 +107,14 @@ AlloyDBAdminConnection::DeleteCluster( } StatusOr AlloyDBAdminConnection::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AlloyDBAdminConnection::DeleteCluster(google::cloud::ExperimentalTag, +AlloyDBAdminConnection::DeleteCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -130,14 +130,14 @@ AlloyDBAdminConnection::PromoteCluster( } StatusOr AlloyDBAdminConnection::PromoteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::PromoteClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AlloyDBAdminConnection::PromoteCluster(google::cloud::ExperimentalTag, +AlloyDBAdminConnection::PromoteCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -153,14 +153,14 @@ AlloyDBAdminConnection::RestoreCluster( } StatusOr AlloyDBAdminConnection::RestoreCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::RestoreClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AlloyDBAdminConnection::RestoreCluster(google::cloud::ExperimentalTag, +AlloyDBAdminConnection::RestoreCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -177,7 +177,7 @@ AlloyDBAdminConnection::CreateSecondaryCluster( StatusOr AlloyDBAdminConnection::CreateSecondaryCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateSecondaryClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -185,7 +185,7 @@ AlloyDBAdminConnection::CreateSecondaryCluster( future> AlloyDBAdminConnection::CreateSecondaryCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -214,14 +214,14 @@ AlloyDBAdminConnection::CreateInstance( } StatusOr AlloyDBAdminConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AlloyDBAdminConnection::CreateInstance(google::cloud::ExperimentalTag, +AlloyDBAdminConnection::CreateInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -238,7 +238,7 @@ AlloyDBAdminConnection::CreateSecondaryInstance( StatusOr AlloyDBAdminConnection::CreateSecondaryInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -246,7 +246,7 @@ AlloyDBAdminConnection::CreateSecondaryInstance( future> AlloyDBAdminConnection::CreateSecondaryInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -262,7 +262,7 @@ AlloyDBAdminConnection::BatchCreateInstances( StatusOr AlloyDBAdminConnection::BatchCreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::BatchCreateInstancesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -270,7 +270,7 @@ AlloyDBAdminConnection::BatchCreateInstances( future> AlloyDBAdminConnection::BatchCreateInstances( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -285,14 +285,14 @@ AlloyDBAdminConnection::UpdateInstance( } StatusOr AlloyDBAdminConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AlloyDBAdminConnection::UpdateInstance(google::cloud::ExperimentalTag, +AlloyDBAdminConnection::UpdateInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -308,14 +308,14 @@ AlloyDBAdminConnection::DeleteInstance( } StatusOr AlloyDBAdminConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AlloyDBAdminConnection::DeleteInstance(google::cloud::ExperimentalTag, +AlloyDBAdminConnection::DeleteInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -332,7 +332,7 @@ AlloyDBAdminConnection::FailoverInstance( StatusOr AlloyDBAdminConnection::FailoverInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::FailoverInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -340,7 +340,7 @@ AlloyDBAdminConnection::FailoverInstance( future> AlloyDBAdminConnection::FailoverInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -355,14 +355,14 @@ AlloyDBAdminConnection::InjectFault( } StatusOr AlloyDBAdminConnection::InjectFault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::InjectFaultRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AlloyDBAdminConnection::InjectFault(google::cloud::ExperimentalTag, +AlloyDBAdminConnection::InjectFault(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -379,14 +379,14 @@ AlloyDBAdminConnection::RestartInstance( StatusOr AlloyDBAdminConnection::RestartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::RestartInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AlloyDBAdminConnection::RestartInstance(google::cloud::ExperimentalTag, +AlloyDBAdminConnection::RestartInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -415,14 +415,14 @@ AlloyDBAdminConnection::CreateBackup( } StatusOr AlloyDBAdminConnection::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AlloyDBAdminConnection::CreateBackup(google::cloud::ExperimentalTag, +AlloyDBAdminConnection::CreateBackup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -438,14 +438,14 @@ AlloyDBAdminConnection::UpdateBackup( } StatusOr AlloyDBAdminConnection::UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AlloyDBAdminConnection::UpdateBackup(google::cloud::ExperimentalTag, +AlloyDBAdminConnection::UpdateBackup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -461,14 +461,14 @@ AlloyDBAdminConnection::DeleteBackup( } StatusOr AlloyDBAdminConnection::DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AlloyDBAdminConnection::DeleteBackup(google::cloud::ExperimentalTag, +AlloyDBAdminConnection::DeleteBackup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/alloydb/v1/alloy_db_admin_connection.h b/google/cloud/alloydb/v1/alloy_db_admin_connection.h index 942023ee88761..0911b32959b2a 100644 --- a/google/cloud/alloydb/v1/alloy_db_admin_connection.h +++ b/google/cloud/alloydb/v1/alloy_db_admin_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/alloydb/v1/alloy_db_admin_connection_idempotency_policy.h" #include "google/cloud/alloydb/v1/internal/alloy_db_admin_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,68 +197,64 @@ class AlloyDBAdminConnection { google::cloud::alloydb::v1::CreateClusterRequest const& request); virtual StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateClusterRequest const& request); virtual future> CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateCluster( google::cloud::alloydb::v1::UpdateClusterRequest const& request); virtual StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateClusterRequest const& request); virtual future> UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteCluster( google::cloud::alloydb::v1::DeleteClusterRequest const& request); virtual StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteClusterRequest const& request); virtual future> - DeleteCluster(google::cloud::ExperimentalTag, + DeleteCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> PromoteCluster( google::cloud::alloydb::v1::PromoteClusterRequest const& request); virtual StatusOr PromoteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::PromoteClusterRequest const& request); virtual future> PromoteCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> RestoreCluster( google::cloud::alloydb::v1::RestoreClusterRequest const& request); virtual StatusOr RestoreCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::RestoreClusterRequest const& request); virtual future> RestoreCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CreateSecondaryCluster( google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request); virtual StatusOr CreateSecondaryCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request); virtual future> - CreateSecondaryCluster(google::cloud::ExperimentalTag, + CreateSecondaryCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListInstances( @@ -271,12 +267,11 @@ class AlloyDBAdminConnection { google::cloud::alloydb::v1::CreateInstanceRequest const& request); virtual StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateInstanceRequest const& request); virtual future> CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CreateSecondaryInstance( @@ -284,12 +279,12 @@ class AlloyDBAdminConnection { request); virtual StatusOr CreateSecondaryInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request); virtual future> - CreateSecondaryInstance(google::cloud::ExperimentalTag, + CreateSecondaryInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -298,35 +293,34 @@ class AlloyDBAdminConnection { google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request); virtual StatusOr BatchCreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request); virtual future< StatusOr> - BatchCreateInstances(google::cloud::ExperimentalTag, + BatchCreateInstances(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateInstance( google::cloud::alloydb::v1::UpdateInstanceRequest const& request); virtual StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateInstanceRequest const& request); virtual future> UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteInstance( google::cloud::alloydb::v1::DeleteInstanceRequest const& request); virtual StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteInstanceRequest const& request); virtual future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -334,34 +328,33 @@ class AlloyDBAdminConnection { google::cloud::alloydb::v1::FailoverInstanceRequest const& request); virtual StatusOr FailoverInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::FailoverInstanceRequest const& request); virtual future> - FailoverInstance(google::cloud::ExperimentalTag, + FailoverInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> InjectFault( google::cloud::alloydb::v1::InjectFaultRequest const& request); virtual StatusOr InjectFault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::InjectFaultRequest const& request); virtual future> InjectFault( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> RestartInstance( google::cloud::alloydb::v1::RestartInstanceRequest const& request); virtual StatusOr RestartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::RestartInstanceRequest const& request); virtual future> - RestartInstance(google::cloud::ExperimentalTag, + RestartInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListBackups( @@ -374,33 +367,31 @@ class AlloyDBAdminConnection { google::cloud::alloydb::v1::CreateBackupRequest const& request); virtual StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateBackupRequest const& request); virtual future> CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateBackup( google::cloud::alloydb::v1::UpdateBackupRequest const& request); virtual StatusOr UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateBackupRequest const& request); virtual future> UpdateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteBackup(google::cloud::alloydb::v1::DeleteBackupRequest const& request); virtual StatusOr DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteBackupRequest const& request); virtual future> - DeleteBackup(google::cloud::ExperimentalTag, + DeleteBackup(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange diff --git a/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.cc b/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.cc index 23219a24b4575..dbe5a35ad7e07 100644 --- a/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.cc +++ b/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.cc @@ -68,7 +68,7 @@ AlloyDBAdminTracingConnection::CreateCluster( google::cloud::alloydb::v1::CreateClusterRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::CreateCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ AlloyDBAdminTracingConnection::UpdateCluster( google::cloud::alloydb::v1::UpdateClusterRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::UpdateCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -134,7 +134,7 @@ AlloyDBAdminTracingConnection::DeleteCluster( google::cloud::alloydb::v1::DeleteClusterRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::DeleteCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -167,7 +167,7 @@ AlloyDBAdminTracingConnection::PromoteCluster( google::cloud::alloydb::v1::PromoteClusterRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::PromoteCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PromoteCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -200,7 +200,7 @@ AlloyDBAdminTracingConnection::RestoreCluster( google::cloud::alloydb::v1::RestoreClusterRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::RestoreCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RestoreCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -234,7 +234,7 @@ AlloyDBAdminTracingConnection::CreateSecondaryCluster( google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request) { auto span = internal::MakeSpan( "alloydb_v1::AlloyDBAdminConnection::CreateSecondaryCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateSecondaryCluster( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -287,7 +287,7 @@ AlloyDBAdminTracingConnection::CreateInstance( google::cloud::alloydb::v1::CreateInstanceRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::CreateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -321,7 +321,7 @@ AlloyDBAdminTracingConnection::CreateSecondaryInstance( google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request) { auto span = internal::MakeSpan( "alloydb_v1::AlloyDBAdminConnection::CreateSecondaryInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateSecondaryInstance( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -355,7 +355,7 @@ AlloyDBAdminTracingConnection::BatchCreateInstances( google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request) { auto span = internal::MakeSpan( "alloydb_v1::AlloyDBAdminConnection::BatchCreateInstances"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->BatchCreateInstances( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -388,7 +388,7 @@ AlloyDBAdminTracingConnection::UpdateInstance( google::cloud::alloydb::v1::UpdateInstanceRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::UpdateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -421,7 +421,7 @@ AlloyDBAdminTracingConnection::DeleteInstance( google::cloud::alloydb::v1::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::DeleteInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -454,7 +454,7 @@ AlloyDBAdminTracingConnection::FailoverInstance( google::cloud::alloydb::v1::FailoverInstanceRequest const& request) { auto span = internal::MakeSpan( "alloydb_v1::AlloyDBAdminConnection::FailoverInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->FailoverInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -487,7 +487,7 @@ AlloyDBAdminTracingConnection::InjectFault( google::cloud::alloydb::v1::InjectFaultRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::InjectFault"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InjectFault(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -520,7 +520,7 @@ AlloyDBAdminTracingConnection::RestartInstance( google::cloud::alloydb::v1::RestartInstanceRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::RestartInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RestartInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -573,7 +573,7 @@ AlloyDBAdminTracingConnection::CreateBackup( google::cloud::alloydb::v1::CreateBackupRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::CreateBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -606,7 +606,7 @@ AlloyDBAdminTracingConnection::UpdateBackup( google::cloud::alloydb::v1::UpdateBackupRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::UpdateBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -639,7 +639,7 @@ AlloyDBAdminTracingConnection::DeleteBackup( google::cloud::alloydb::v1::DeleteBackupRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::DeleteBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/apigateway/v1/api_gateway_connection.cc b/google/cloud/apigateway/v1/api_gateway_connection.cc index 90792f8d70f1b..575b423f15962 100644 --- a/google/cloud/apigateway/v1/api_gateway_connection.cc +++ b/google/cloud/apigateway/v1/api_gateway_connection.cc @@ -62,7 +62,7 @@ ApiGatewayServiceConnection::CreateGateway( StatusOr ApiGatewayServiceConnection::CreateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateGatewayRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ ApiGatewayServiceConnection::CreateGateway( future> ApiGatewayServiceConnection::CreateGateway( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ ApiGatewayServiceConnection::UpdateGateway( StatusOr ApiGatewayServiceConnection::UpdateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateGatewayRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ ApiGatewayServiceConnection::UpdateGateway( future> ApiGatewayServiceConnection::UpdateGateway( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ ApiGatewayServiceConnection::DeleteGateway( StatusOr ApiGatewayServiceConnection::DeleteGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteGatewayRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ ApiGatewayServiceConnection::DeleteGateway( future> ApiGatewayServiceConnection::DeleteGateway( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -147,14 +147,14 @@ ApiGatewayServiceConnection::CreateApi( } StatusOr ApiGatewayServiceConnection::CreateApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateApiRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ApiGatewayServiceConnection::CreateApi(google::cloud::ExperimentalTag, +ApiGatewayServiceConnection::CreateApi(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -170,14 +170,14 @@ ApiGatewayServiceConnection::UpdateApi( } StatusOr ApiGatewayServiceConnection::UpdateApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateApiRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ApiGatewayServiceConnection::UpdateApi(google::cloud::ExperimentalTag, +ApiGatewayServiceConnection::UpdateApi(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -193,14 +193,14 @@ ApiGatewayServiceConnection::DeleteApi( } StatusOr ApiGatewayServiceConnection::DeleteApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteApiRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ApiGatewayServiceConnection::DeleteApi(google::cloud::ExperimentalTag, +ApiGatewayServiceConnection::DeleteApi(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -231,7 +231,7 @@ ApiGatewayServiceConnection::CreateApiConfig( StatusOr ApiGatewayServiceConnection::CreateApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateApiConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -239,7 +239,7 @@ ApiGatewayServiceConnection::CreateApiConfig( future> ApiGatewayServiceConnection::CreateApiConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -255,7 +255,7 @@ ApiGatewayServiceConnection::UpdateApiConfig( StatusOr ApiGatewayServiceConnection::UpdateApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateApiConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -263,7 +263,7 @@ ApiGatewayServiceConnection::UpdateApiConfig( future> ApiGatewayServiceConnection::UpdateApiConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -279,7 +279,7 @@ ApiGatewayServiceConnection::DeleteApiConfig( StatusOr ApiGatewayServiceConnection::DeleteApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteApiConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -287,7 +287,7 @@ ApiGatewayServiceConnection::DeleteApiConfig( future> ApiGatewayServiceConnection::DeleteApiConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/apigateway/v1/api_gateway_connection.h b/google/cloud/apigateway/v1/api_gateway_connection.h index a72b614c85961..ee87f50fd7ec2 100644 --- a/google/cloud/apigateway/v1/api_gateway_connection.h +++ b/google/cloud/apigateway/v1/api_gateway_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/apigateway/v1/api_gateway_connection_idempotency_policy.h" #include "google/cloud/apigateway/v1/internal/api_gateway_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -201,11 +201,11 @@ class ApiGatewayServiceConnection { google::cloud::apigateway::v1::CreateGatewayRequest const& request); virtual StatusOr CreateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateGatewayRequest const& request); virtual future> - CreateGateway(google::cloud::ExperimentalTag, + CreateGateway(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -213,11 +213,11 @@ class ApiGatewayServiceConnection { google::cloud::apigateway::v1::UpdateGatewayRequest const& request); virtual StatusOr UpdateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateGatewayRequest const& request); virtual future> - UpdateGateway(google::cloud::ExperimentalTag, + UpdateGateway(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -225,11 +225,11 @@ class ApiGatewayServiceConnection { google::cloud::apigateway::v1::DeleteGatewayRequest const& request); virtual StatusOr DeleteGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteGatewayRequest const& request); virtual future> - DeleteGateway(google::cloud::ExperimentalTag, + DeleteGateway(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListApis( @@ -242,34 +242,31 @@ class ApiGatewayServiceConnection { google::cloud::apigateway::v1::CreateApiRequest const& request); virtual StatusOr CreateApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateApiRequest const& request); virtual future> CreateApi( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateApi( google::cloud::apigateway::v1::UpdateApiRequest const& request); virtual StatusOr UpdateApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateApiRequest const& request); virtual future> UpdateApi( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteApi(google::cloud::apigateway::v1::DeleteApiRequest const& request); virtual StatusOr DeleteApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteApiRequest const& request); virtual future> - DeleteApi(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteApi(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListApiConfigs( google::cloud::apigateway::v1::ListApiConfigsRequest request); @@ -282,11 +279,11 @@ class ApiGatewayServiceConnection { google::cloud::apigateway::v1::CreateApiConfigRequest const& request); virtual StatusOr CreateApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateApiConfigRequest const& request); virtual future> - CreateApiConfig(google::cloud::ExperimentalTag, + CreateApiConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -294,11 +291,11 @@ class ApiGatewayServiceConnection { google::cloud::apigateway::v1::UpdateApiConfigRequest const& request); virtual StatusOr UpdateApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateApiConfigRequest const& request); virtual future> - UpdateApiConfig(google::cloud::ExperimentalTag, + UpdateApiConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -306,11 +303,11 @@ class ApiGatewayServiceConnection { google::cloud::apigateway::v1::DeleteApiConfigRequest const& request); virtual StatusOr DeleteApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteApiConfigRequest const& request); virtual future> - DeleteApiConfig(google::cloud::ExperimentalTag, + DeleteApiConfig(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.cc b/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.cc index 53daab7d4df4f..affaf9d865755 100644 --- a/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.cc +++ b/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.cc @@ -68,7 +68,7 @@ ApiGatewayServiceTracingConnection::CreateGateway( google::cloud::apigateway::v1::CreateGatewayRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::CreateGateway"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateGateway(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ ApiGatewayServiceTracingConnection::UpdateGateway( google::cloud::apigateway::v1::UpdateGatewayRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::UpdateGateway"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateGateway(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -134,7 +134,7 @@ ApiGatewayServiceTracingConnection::DeleteGateway( google::cloud::apigateway::v1::DeleteGatewayRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::DeleteGateway"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteGateway(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -187,7 +187,7 @@ ApiGatewayServiceTracingConnection::CreateApi( google::cloud::apigateway::v1::CreateApiRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::CreateApi"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateApi(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -220,7 +220,7 @@ ApiGatewayServiceTracingConnection::UpdateApi( google::cloud::apigateway::v1::UpdateApiRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::UpdateApi"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateApi(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -253,7 +253,7 @@ ApiGatewayServiceTracingConnection::DeleteApi( google::cloud::apigateway::v1::DeleteApiRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::DeleteApi"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteApi(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -306,7 +306,7 @@ ApiGatewayServiceTracingConnection::CreateApiConfig( google::cloud::apigateway::v1::CreateApiConfigRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::CreateApiConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateApiConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -339,7 +339,7 @@ ApiGatewayServiceTracingConnection::UpdateApiConfig( google::cloud::apigateway::v1::UpdateApiConfigRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::UpdateApiConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateApiConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -372,7 +372,7 @@ ApiGatewayServiceTracingConnection::DeleteApiConfig( google::cloud::apigateway::v1::DeleteApiConfigRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::DeleteApiConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteApiConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/apigeeconnect/v1/connection_connection.h b/google/cloud/apigeeconnect/v1/connection_connection.h index e789480268da0..a531e62573efd 100644 --- a/google/cloud/apigeeconnect/v1/connection_connection.h +++ b/google/cloud/apigeeconnect/v1/connection_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/apigeeconnect/v1/connection_connection_idempotency_policy.h" #include "google/cloud/apigeeconnect/v1/internal/connection_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/apikeys/v2/api_keys_connection.cc b/google/cloud/apikeys/v2/api_keys_connection.cc index dfbd225e03425..fcf2f18389895 100644 --- a/google/cloud/apikeys/v2/api_keys_connection.cc +++ b/google/cloud/apikeys/v2/api_keys_connection.cc @@ -46,14 +46,14 @@ future> ApiKeysConnection::CreateKey( } StatusOr ApiKeysConnection::CreateKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::CreateKeyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> ApiKeysConnection::CreateKey( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -85,14 +85,14 @@ future> ApiKeysConnection::UpdateKey( } StatusOr ApiKeysConnection::UpdateKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::UpdateKeyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> ApiKeysConnection::UpdateKey( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -106,14 +106,14 @@ future> ApiKeysConnection::DeleteKey( } StatusOr ApiKeysConnection::DeleteKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::DeleteKeyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> ApiKeysConnection::DeleteKey( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -127,14 +127,14 @@ future> ApiKeysConnection::UndeleteKey( } StatusOr ApiKeysConnection::UndeleteKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::UndeleteKeyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> ApiKeysConnection::UndeleteKey( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/apikeys/v2/api_keys_connection.h b/google/cloud/apikeys/v2/api_keys_connection.h index d0d0e293d4cd6..90a57349caeed 100644 --- a/google/cloud/apikeys/v2/api_keys_connection.h +++ b/google/cloud/apikeys/v2/api_keys_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/apikeys/v2/api_keys_connection_idempotency_policy.h" #include "google/cloud/apikeys/v2/internal/api_keys_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -188,12 +188,11 @@ class ApiKeysConnection { google::api::apikeys::v2::CreateKeyRequest const& request); virtual StatusOr CreateKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::CreateKeyRequest const& request); virtual future> CreateKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListKeys( google::api::apikeys::v2::ListKeysRequest request); @@ -208,34 +207,31 @@ class ApiKeysConnection { google::api::apikeys::v2::UpdateKeyRequest const& request); virtual StatusOr UpdateKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::UpdateKeyRequest const& request); virtual future> UpdateKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteKey( google::api::apikeys::v2::DeleteKeyRequest const& request); virtual StatusOr DeleteKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::DeleteKeyRequest const& request); virtual future> DeleteKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UndeleteKey( google::api::apikeys::v2::UndeleteKeyRequest const& request); virtual StatusOr UndeleteKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::UndeleteKeyRequest const& request); virtual future> UndeleteKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr LookupKey( google::api::apikeys::v2::LookupKeyRequest const& request); diff --git a/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.cc b/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.cc index 90b92c03ccf48..f54ac01a31b25 100644 --- a/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.cc +++ b/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.cc @@ -45,7 +45,7 @@ StatusOr ApiKeysTracingConnection::CreateKey( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::api::apikeys::v2::CreateKeyRequest const& request) { auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::CreateKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateKey(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -98,7 +98,7 @@ StatusOr ApiKeysTracingConnection::UpdateKey( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::api::apikeys::v2::UpdateKeyRequest const& request) { auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::UpdateKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateKey(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -127,7 +127,7 @@ StatusOr ApiKeysTracingConnection::DeleteKey( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::api::apikeys::v2::DeleteKeyRequest const& request) { auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::DeleteKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteKey(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -156,7 +156,7 @@ StatusOr ApiKeysTracingConnection::UndeleteKey( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::api::apikeys::v2::UndeleteKeyRequest const& request) { auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::UndeleteKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UndeleteKey(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/appengine/v1/applications_connection.cc b/google/cloud/appengine/v1/applications_connection.cc index 928105c517a34..1f6d4e2b401c3 100644 --- a/google/cloud/appengine/v1/applications_connection.cc +++ b/google/cloud/appengine/v1/applications_connection.cc @@ -53,7 +53,7 @@ ApplicationsConnection::CreateApplication( StatusOr ApplicationsConnection::CreateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateApplicationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -61,7 +61,7 @@ ApplicationsConnection::CreateApplication( future> ApplicationsConnection::CreateApplication( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -77,7 +77,7 @@ ApplicationsConnection::UpdateApplication( StatusOr ApplicationsConnection::UpdateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateApplicationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -85,7 +85,7 @@ ApplicationsConnection::UpdateApplication( future> ApplicationsConnection::UpdateApplication( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -101,7 +101,7 @@ ApplicationsConnection::RepairApplication( StatusOr ApplicationsConnection::RepairApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::RepairApplicationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -109,7 +109,7 @@ ApplicationsConnection::RepairApplication( future> ApplicationsConnection::RepairApplication( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/appengine/v1/applications_connection.h b/google/cloud/appengine/v1/applications_connection.h index c99032458ff2e..27f061f8342a7 100644 --- a/google/cloud/appengine/v1/applications_connection.h +++ b/google/cloud/appengine/v1/applications_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/appengine/v1/applications_connection_idempotency_policy.h" #include "google/cloud/appengine/v1/internal/applications_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -195,11 +195,11 @@ class ApplicationsConnection { google::appengine::v1::CreateApplicationRequest const& request); virtual StatusOr CreateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateApplicationRequest const& request); virtual future> - CreateApplication(google::cloud::ExperimentalTag, + CreateApplication(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -207,11 +207,11 @@ class ApplicationsConnection { google::appengine::v1::UpdateApplicationRequest const& request); virtual StatusOr UpdateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateApplicationRequest const& request); virtual future> - UpdateApplication(google::cloud::ExperimentalTag, + UpdateApplication(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -219,11 +219,11 @@ class ApplicationsConnection { google::appengine::v1::RepairApplicationRequest const& request); virtual StatusOr RepairApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::RepairApplicationRequest const& request); virtual future> - RepairApplication(google::cloud::ExperimentalTag, + RepairApplication(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/appengine/v1/authorized_certificates_connection.h b/google/cloud/appengine/v1/authorized_certificates_connection.h index 8f570e64cbea9..6b8359375b1d0 100644 --- a/google/cloud/appengine/v1/authorized_certificates_connection.h +++ b/google/cloud/appengine/v1/authorized_certificates_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/appengine/v1/authorized_certificates_connection_idempotency_policy.h" #include "google/cloud/appengine/v1/internal/authorized_certificates_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/appengine/v1/authorized_domains_connection.h b/google/cloud/appengine/v1/authorized_domains_connection.h index 43fa743b6b47e..dec4d93247389 100644 --- a/google/cloud/appengine/v1/authorized_domains_connection.h +++ b/google/cloud/appengine/v1/authorized_domains_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/appengine/v1/authorized_domains_connection_idempotency_policy.h" #include "google/cloud/appengine/v1/internal/authorized_domains_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/appengine/v1/domain_mappings_connection.cc b/google/cloud/appengine/v1/domain_mappings_connection.cc index 1c57ae3789970..f01e344703efc 100644 --- a/google/cloud/appengine/v1/domain_mappings_connection.cc +++ b/google/cloud/appengine/v1/domain_mappings_connection.cc @@ -62,7 +62,7 @@ DomainMappingsConnection::CreateDomainMapping( StatusOr DomainMappingsConnection::CreateDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateDomainMappingRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ DomainMappingsConnection::CreateDomainMapping( future> DomainMappingsConnection::CreateDomainMapping( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ DomainMappingsConnection::UpdateDomainMapping( StatusOr DomainMappingsConnection::UpdateDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateDomainMappingRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ DomainMappingsConnection::UpdateDomainMapping( future> DomainMappingsConnection::UpdateDomainMapping( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ DomainMappingsConnection::DeleteDomainMapping( StatusOr DomainMappingsConnection::DeleteDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteDomainMappingRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ DomainMappingsConnection::DeleteDomainMapping( future> DomainMappingsConnection::DeleteDomainMapping( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/appengine/v1/domain_mappings_connection.h b/google/cloud/appengine/v1/domain_mappings_connection.h index b33af0c9a4092..18059b80806cd 100644 --- a/google/cloud/appengine/v1/domain_mappings_connection.h +++ b/google/cloud/appengine/v1/domain_mappings_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/appengine/v1/domain_mappings_connection_idempotency_policy.h" #include "google/cloud/appengine/v1/internal/domain_mappings_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,11 +199,11 @@ class DomainMappingsConnection { google::appengine::v1::CreateDomainMappingRequest const& request); virtual StatusOr CreateDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateDomainMappingRequest const& request); virtual future> - CreateDomainMapping(google::cloud::ExperimentalTag, + CreateDomainMapping(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -211,11 +211,11 @@ class DomainMappingsConnection { google::appengine::v1::UpdateDomainMappingRequest const& request); virtual StatusOr UpdateDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateDomainMappingRequest const& request); virtual future> - UpdateDomainMapping(google::cloud::ExperimentalTag, + UpdateDomainMapping(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -223,11 +223,11 @@ class DomainMappingsConnection { google::appengine::v1::DeleteDomainMappingRequest const& request); virtual StatusOr DeleteDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteDomainMappingRequest const& request); virtual future> - DeleteDomainMapping(google::cloud::ExperimentalTag, + DeleteDomainMapping(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/appengine/v1/firewall_connection.h b/google/cloud/appengine/v1/firewall_connection.h index bc66f9adef24a..497359bc98288 100644 --- a/google/cloud/appengine/v1/firewall_connection.h +++ b/google/cloud/appengine/v1/firewall_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/appengine/v1/firewall_connection_idempotency_policy.h" #include "google/cloud/appengine/v1/internal/firewall_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/appengine/v1/instances_connection.cc b/google/cloud/appengine/v1/instances_connection.cc index eb93b56562ec7..e7cf7b25f8044 100644 --- a/google/cloud/appengine/v1/instances_connection.cc +++ b/google/cloud/appengine/v1/instances_connection.cc @@ -59,14 +59,14 @@ InstancesConnection::DeleteInstance( } StatusOr InstancesConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -InstancesConnection::DeleteInstance(google::cloud::ExperimentalTag, +InstancesConnection::DeleteInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -82,14 +82,14 @@ InstancesConnection::DebugInstance( } StatusOr InstancesConnection::DebugInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DebugInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -InstancesConnection::DebugInstance(google::cloud::ExperimentalTag, +InstancesConnection::DebugInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/appengine/v1/instances_connection.h b/google/cloud/appengine/v1/instances_connection.h index ce67be5cdc44a..af060c08f5d19 100644 --- a/google/cloud/appengine/v1/instances_connection.h +++ b/google/cloud/appengine/v1/instances_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/appengine/v1/instances_connection_idempotency_policy.h" #include "google/cloud/appengine/v1/internal/instances_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,23 +197,22 @@ class InstancesConnection { DeleteInstance(google::appengine::v1::DeleteInstanceRequest const& request); virtual StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteInstanceRequest const& request); virtual future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DebugInstance( google::appengine::v1::DebugInstanceRequest const& request); virtual StatusOr DebugInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DebugInstanceRequest const& request); virtual future> DebugInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/appengine/v1/internal/applications_tracing_connection.cc b/google/cloud/appengine/v1/internal/applications_tracing_connection.cc index 55e5a887aa642..86ecbc8b40800 100644 --- a/google/cloud/appengine/v1/internal/applications_tracing_connection.cc +++ b/google/cloud/appengine/v1/internal/applications_tracing_connection.cc @@ -56,7 +56,7 @@ ApplicationsTracingConnection::CreateApplication( google::appengine::v1::CreateApplicationRequest const& request) { auto span = internal::MakeSpan( "appengine_v1::ApplicationsConnection::CreateApplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateApplication(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -89,7 +89,7 @@ ApplicationsTracingConnection::UpdateApplication( google::appengine::v1::UpdateApplicationRequest const& request) { auto span = internal::MakeSpan( "appengine_v1::ApplicationsConnection::UpdateApplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateApplication(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -122,7 +122,7 @@ ApplicationsTracingConnection::RepairApplication( google::appengine::v1::RepairApplicationRequest const& request) { auto span = internal::MakeSpan( "appengine_v1::ApplicationsConnection::RepairApplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RepairApplication(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.cc b/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.cc index c26a672544ec9..b0e7a1043c691 100644 --- a/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.cc +++ b/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.cc @@ -69,7 +69,7 @@ DomainMappingsTracingConnection::CreateDomainMapping( google::appengine::v1::CreateDomainMappingRequest const& request) { auto span = internal::MakeSpan( "appengine_v1::DomainMappingsConnection::CreateDomainMapping"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateDomainMapping(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -103,7 +103,7 @@ DomainMappingsTracingConnection::UpdateDomainMapping( google::appengine::v1::UpdateDomainMappingRequest const& request) { auto span = internal::MakeSpan( "appengine_v1::DomainMappingsConnection::UpdateDomainMapping"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateDomainMapping(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -137,7 +137,7 @@ DomainMappingsTracingConnection::DeleteDomainMapping( google::appengine::v1::DeleteDomainMappingRequest const& request) { auto span = internal::MakeSpan( "appengine_v1::DomainMappingsConnection::DeleteDomainMapping"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteDomainMapping(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/appengine/v1/internal/instances_tracing_connection.cc b/google/cloud/appengine/v1/internal/instances_tracing_connection.cc index c247a67345849..30079472846d9 100644 --- a/google/cloud/appengine/v1/internal/instances_tracing_connection.cc +++ b/google/cloud/appengine/v1/internal/instances_tracing_connection.cc @@ -68,7 +68,7 @@ InstancesTracingConnection::DeleteInstance( google::appengine::v1::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan("appengine_v1::InstancesConnection::DeleteInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ InstancesTracingConnection::DebugInstance( google::appengine::v1::DebugInstanceRequest const& request) { auto span = internal::MakeSpan("appengine_v1::InstancesConnection::DebugInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DebugInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/appengine/v1/internal/services_tracing_connection.cc b/google/cloud/appengine/v1/internal/services_tracing_connection.cc index 6cf8babd233ce..a74cea8f97e73 100644 --- a/google/cloud/appengine/v1/internal/services_tracing_connection.cc +++ b/google/cloud/appengine/v1/internal/services_tracing_connection.cc @@ -67,7 +67,7 @@ ServicesTracingConnection::UpdateService( google::appengine::v1::UpdateServiceRequest const& request) { auto span = internal::MakeSpan("appengine_v1::ServicesConnection::UpdateService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -100,7 +100,7 @@ ServicesTracingConnection::DeleteService( google::appengine::v1::DeleteServiceRequest const& request) { auto span = internal::MakeSpan("appengine_v1::ServicesConnection::DeleteService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/appengine/v1/internal/versions_tracing_connection.cc b/google/cloud/appengine/v1/internal/versions_tracing_connection.cc index 644e88acafb72..160d635eb950c 100644 --- a/google/cloud/appengine/v1/internal/versions_tracing_connection.cc +++ b/google/cloud/appengine/v1/internal/versions_tracing_connection.cc @@ -67,7 +67,7 @@ VersionsTracingConnection::CreateVersion( google::appengine::v1::CreateVersionRequest const& request) { auto span = internal::MakeSpan("appengine_v1::VersionsConnection::CreateVersion"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateVersion(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -100,7 +100,7 @@ VersionsTracingConnection::UpdateVersion( google::appengine::v1::UpdateVersionRequest const& request) { auto span = internal::MakeSpan("appengine_v1::VersionsConnection::UpdateVersion"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateVersion(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -133,7 +133,7 @@ VersionsTracingConnection::DeleteVersion( google::appengine::v1::DeleteVersionRequest const& request) { auto span = internal::MakeSpan("appengine_v1::VersionsConnection::DeleteVersion"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteVersion(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/appengine/v1/services_connection.cc b/google/cloud/appengine/v1/services_connection.cc index d6a3147aba3ef..371392e5e3e4e 100644 --- a/google/cloud/appengine/v1/services_connection.cc +++ b/google/cloud/appengine/v1/services_connection.cc @@ -59,14 +59,14 @@ ServicesConnection::UpdateService( } StatusOr ServicesConnection::UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ServicesConnection::UpdateService(google::cloud::ExperimentalTag, +ServicesConnection::UpdateService(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -82,14 +82,14 @@ ServicesConnection::DeleteService( } StatusOr ServicesConnection::DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ServicesConnection::DeleteService(google::cloud::ExperimentalTag, +ServicesConnection::DeleteService(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/appengine/v1/services_connection.h b/google/cloud/appengine/v1/services_connection.h index b3b9ca085e6be..532f6aa8767c3 100644 --- a/google/cloud/appengine/v1/services_connection.h +++ b/google/cloud/appengine/v1/services_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/appengine/v1/internal/services_retry_traits.h" #include "google/cloud/appengine/v1/services_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -195,22 +195,21 @@ class ServicesConnection { google::appengine::v1::UpdateServiceRequest const& request); virtual StatusOr UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateServiceRequest const& request); virtual future> UpdateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteService(google::appengine::v1::DeleteServiceRequest const& request); virtual StatusOr DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteServiceRequest const& request); virtual future> - DeleteService(google::cloud::ExperimentalTag, + DeleteService(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/appengine/v1/versions_connection.cc b/google/cloud/appengine/v1/versions_connection.cc index 6c5cf5cf7298e..a183a126f8c8e 100644 --- a/google/cloud/appengine/v1/versions_connection.cc +++ b/google/cloud/appengine/v1/versions_connection.cc @@ -59,14 +59,14 @@ VersionsConnection::CreateVersion( } StatusOr VersionsConnection::CreateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateVersionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VersionsConnection::CreateVersion(google::cloud::ExperimentalTag, +VersionsConnection::CreateVersion(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -82,14 +82,14 @@ VersionsConnection::UpdateVersion( } StatusOr VersionsConnection::UpdateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateVersionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VersionsConnection::UpdateVersion(google::cloud::ExperimentalTag, +VersionsConnection::UpdateVersion(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -105,14 +105,14 @@ VersionsConnection::DeleteVersion( } StatusOr VersionsConnection::DeleteVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteVersionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VersionsConnection::DeleteVersion(google::cloud::ExperimentalTag, +VersionsConnection::DeleteVersion(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/appengine/v1/versions_connection.h b/google/cloud/appengine/v1/versions_connection.h index 25e2194da76aa..10323807b1975 100644 --- a/google/cloud/appengine/v1/versions_connection.h +++ b/google/cloud/appengine/v1/versions_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/appengine/v1/internal/versions_retry_traits.h" #include "google/cloud/appengine/v1/versions_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -195,33 +195,31 @@ class VersionsConnection { google::appengine::v1::CreateVersionRequest const& request); virtual StatusOr CreateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateVersionRequest const& request); virtual future> CreateVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateVersion( google::appengine::v1::UpdateVersionRequest const& request); virtual StatusOr UpdateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateVersionRequest const& request); virtual future> UpdateVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteVersion(google::appengine::v1::DeleteVersionRequest const& request); virtual StatusOr DeleteVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteVersionRequest const& request); virtual future> - DeleteVersion(google::cloud::ExperimentalTag, + DeleteVersion(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/apphub/v1/app_hub_connection.cc b/google/cloud/apphub/v1/app_hub_connection.cc index 1313f0df267a3..a05bea83a2776 100644 --- a/google/cloud/apphub/v1/app_hub_connection.cc +++ b/google/cloud/apphub/v1/app_hub_connection.cc @@ -62,7 +62,7 @@ AppHubConnection::CreateServiceProjectAttachment( StatusOr AppHubConnection::CreateServiceProjectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ AppHubConnection::CreateServiceProjectAttachment( future> AppHubConnection::CreateServiceProjectAttachment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -92,7 +92,7 @@ AppHubConnection::DeleteServiceProjectAttachment( StatusOr AppHubConnection::DeleteServiceProjectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -100,7 +100,7 @@ AppHubConnection::DeleteServiceProjectAttachment( future> AppHubConnection::DeleteServiceProjectAttachment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -148,14 +148,14 @@ AppHubConnection::CreateService( } StatusOr AppHubConnection::CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AppHubConnection::CreateService(google::cloud::ExperimentalTag, +AppHubConnection::CreateService(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -176,14 +176,14 @@ AppHubConnection::UpdateService( } StatusOr AppHubConnection::UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AppHubConnection::UpdateService(google::cloud::ExperimentalTag, +AppHubConnection::UpdateService(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -199,14 +199,14 @@ AppHubConnection::DeleteService( } StatusOr AppHubConnection::DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AppHubConnection::DeleteService(google::cloud::ExperimentalTag, +AppHubConnection::DeleteService(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -250,14 +250,14 @@ AppHubConnection::CreateWorkload( } StatusOr AppHubConnection::CreateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateWorkloadRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AppHubConnection::CreateWorkload(google::cloud::ExperimentalTag, +AppHubConnection::CreateWorkload(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -278,14 +278,14 @@ AppHubConnection::UpdateWorkload( } StatusOr AppHubConnection::UpdateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateWorkloadRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AppHubConnection::UpdateWorkload(google::cloud::ExperimentalTag, +AppHubConnection::UpdateWorkload(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -301,14 +301,14 @@ AppHubConnection::DeleteWorkload( } StatusOr AppHubConnection::DeleteWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteWorkloadRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AppHubConnection::DeleteWorkload(google::cloud::ExperimentalTag, +AppHubConnection::DeleteWorkload(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -332,14 +332,14 @@ AppHubConnection::CreateApplication( } StatusOr AppHubConnection::CreateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateApplicationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AppHubConnection::CreateApplication(google::cloud::ExperimentalTag, +AppHubConnection::CreateApplication(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -361,14 +361,14 @@ AppHubConnection::UpdateApplication( } StatusOr AppHubConnection::UpdateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateApplicationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AppHubConnection::UpdateApplication(google::cloud::ExperimentalTag, +AppHubConnection::UpdateApplication(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -384,14 +384,14 @@ AppHubConnection::DeleteApplication( } StatusOr AppHubConnection::DeleteApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteApplicationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AppHubConnection::DeleteApplication(google::cloud::ExperimentalTag, +AppHubConnection::DeleteApplication(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/apphub/v1/app_hub_connection.h b/google/cloud/apphub/v1/app_hub_connection.h index 95ede7b0538d6..0e979e3f67be3 100644 --- a/google/cloud/apphub/v1/app_hub_connection.h +++ b/google/cloud/apphub/v1/app_hub_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/apphub/v1/app_hub_connection_idempotency_policy.h" #include "google/cloud/apphub/v1/internal/app_hub_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -200,14 +200,13 @@ class AppHubConnection { virtual StatusOr CreateServiceProjectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const& request); virtual future> CreateServiceProjectAttachment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetServiceProjectAttachment( @@ -221,14 +220,13 @@ class AppHubConnection { virtual StatusOr DeleteServiceProjectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& request); virtual future> DeleteServiceProjectAttachment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< google::cloud::apphub::v1::DetachServiceProjectAttachmentResponse> @@ -255,12 +253,11 @@ class AppHubConnection { google::cloud::apphub::v1::CreateServiceRequest const& request); virtual StatusOr CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateServiceRequest const& request); virtual future> CreateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetService( google::cloud::apphub::v1::GetServiceRequest const& request); @@ -269,22 +266,21 @@ class AppHubConnection { google::cloud::apphub::v1::UpdateServiceRequest const& request); virtual StatusOr UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateServiceRequest const& request); virtual future> UpdateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteService(google::cloud::apphub::v1::DeleteServiceRequest const& request); virtual StatusOr DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteServiceRequest const& request); virtual future> - DeleteService(google::cloud::ExperimentalTag, + DeleteService(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -307,12 +303,11 @@ class AppHubConnection { google::cloud::apphub::v1::CreateWorkloadRequest const& request); virtual StatusOr CreateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateWorkloadRequest const& request); virtual future> CreateWorkload( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetWorkload( google::cloud::apphub::v1::GetWorkloadRequest const& request); @@ -321,23 +316,22 @@ class AppHubConnection { google::cloud::apphub::v1::UpdateWorkloadRequest const& request); virtual StatusOr UpdateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateWorkloadRequest const& request); virtual future> UpdateWorkload( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteWorkload( google::cloud::apphub::v1::DeleteWorkloadRequest const& request); virtual StatusOr DeleteWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteWorkloadRequest const& request); virtual future> - DeleteWorkload(google::cloud::ExperimentalTag, + DeleteWorkload(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListApplications( @@ -348,11 +342,11 @@ class AppHubConnection { google::cloud::apphub::v1::CreateApplicationRequest const& request); virtual StatusOr CreateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateApplicationRequest const& request); virtual future> - CreateApplication(google::cloud::ExperimentalTag, + CreateApplication(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetApplication( @@ -363,11 +357,11 @@ class AppHubConnection { google::cloud::apphub::v1::UpdateApplicationRequest const& request); virtual StatusOr UpdateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateApplicationRequest const& request); virtual future> - UpdateApplication(google::cloud::ExperimentalTag, + UpdateApplication(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -375,11 +369,11 @@ class AppHubConnection { google::cloud::apphub::v1::DeleteApplicationRequest const& request); virtual StatusOr DeleteApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteApplicationRequest const& request); virtual future> - DeleteApplication(google::cloud::ExperimentalTag, + DeleteApplication(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/apphub/v1/internal/app_hub_tracing_connection.cc b/google/cloud/apphub/v1/internal/app_hub_tracing_connection.cc index e8fe2243b419a..ce004f88a7df3 100644 --- a/google/cloud/apphub/v1/internal/app_hub_tracing_connection.cc +++ b/google/cloud/apphub/v1/internal/app_hub_tracing_connection.cc @@ -74,7 +74,7 @@ AppHubTracingConnection::CreateServiceProjectAttachment( request) { auto span = internal::MakeSpan( "apphub_v1::AppHubConnection::CreateServiceProjectAttachment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateServiceProjectAttachment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -120,7 +120,7 @@ AppHubTracingConnection::DeleteServiceProjectAttachment( request) { auto span = internal::MakeSpan( "apphub_v1::AppHubConnection::DeleteServiceProjectAttachment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteServiceProjectAttachment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -201,7 +201,7 @@ StatusOr AppHubTracingConnection::CreateService( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::apphub::v1::CreateServiceRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::CreateService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -238,7 +238,7 @@ StatusOr AppHubTracingConnection::UpdateService( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::apphub::v1::UpdateServiceRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::UpdateService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -267,7 +267,7 @@ StatusOr AppHubTracingConnection::DeleteService( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::apphub::v1::DeleteServiceRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::DeleteService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -337,7 +337,7 @@ AppHubTracingConnection::CreateWorkload( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::apphub::v1::CreateWorkloadRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::CreateWorkload"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateWorkload(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -375,7 +375,7 @@ AppHubTracingConnection::UpdateWorkload( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::apphub::v1::UpdateWorkloadRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::UpdateWorkload"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateWorkload(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -405,7 +405,7 @@ AppHubTracingConnection::DeleteWorkload( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::apphub::v1::DeleteWorkloadRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::DeleteWorkload"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteWorkload(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -448,7 +448,7 @@ AppHubTracingConnection::CreateApplication( google::cloud::apphub::v1::CreateApplicationRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::CreateApplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateApplication(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -489,7 +489,7 @@ AppHubTracingConnection::UpdateApplication( google::cloud::apphub::v1::UpdateApplicationRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::UpdateApplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateApplication(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -522,7 +522,7 @@ AppHubTracingConnection::DeleteApplication( google::cloud::apphub::v1::DeleteApplicationRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::DeleteApplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteApplication(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/artifactregistry/v1/artifact_registry_connection.cc b/google/cloud/artifactregistry/v1/artifact_registry_connection.cc index 9ef7ba683c383..5716bf2d2dad0 100644 --- a/google/cloud/artifactregistry/v1/artifact_registry_connection.cc +++ b/google/cloud/artifactregistry/v1/artifact_registry_connection.cc @@ -105,7 +105,7 @@ ArtifactRegistryConnection::ImportAptArtifacts( StatusOr ArtifactRegistryConnection::ImportAptArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -114,7 +114,7 @@ ArtifactRegistryConnection::ImportAptArtifacts( future> ArtifactRegistryConnection::ImportAptArtifacts( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -131,7 +131,7 @@ ArtifactRegistryConnection::ImportYumArtifacts( StatusOr ArtifactRegistryConnection::ImportYumArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -140,7 +140,7 @@ ArtifactRegistryConnection::ImportYumArtifacts( future> ArtifactRegistryConnection::ImportYumArtifacts( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -170,7 +170,7 @@ ArtifactRegistryConnection::CreateRepository( StatusOr ArtifactRegistryConnection::CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::CreateRepositoryRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -178,7 +178,7 @@ ArtifactRegistryConnection::CreateRepository( future> ArtifactRegistryConnection::CreateRepository( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -200,7 +200,7 @@ ArtifactRegistryConnection::DeleteRepository( StatusOr ArtifactRegistryConnection::DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeleteRepositoryRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -208,7 +208,7 @@ ArtifactRegistryConnection::DeleteRepository( future> ArtifactRegistryConnection::DeleteRepository( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -238,7 +238,7 @@ ArtifactRegistryConnection::DeletePackage( StatusOr ArtifactRegistryConnection::DeletePackage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeletePackageRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -246,7 +246,7 @@ ArtifactRegistryConnection::DeletePackage( future> ArtifactRegistryConnection::DeletePackage( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -276,7 +276,7 @@ ArtifactRegistryConnection::DeleteVersion( StatusOr ArtifactRegistryConnection::DeleteVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeleteVersionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -284,7 +284,7 @@ ArtifactRegistryConnection::DeleteVersion( future> ArtifactRegistryConnection::DeleteVersion( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -301,7 +301,7 @@ ArtifactRegistryConnection::BatchDeleteVersions( StatusOr ArtifactRegistryConnection::BatchDeleteVersions( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -310,7 +310,7 @@ ArtifactRegistryConnection::BatchDeleteVersions( future> ArtifactRegistryConnection::BatchDeleteVersions( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/artifactregistry/v1/artifact_registry_connection.h b/google/cloud/artifactregistry/v1/artifact_registry_connection.h index 1a226f08a6ede..9540c38f54ce9 100644 --- a/google/cloud/artifactregistry/v1/artifact_registry_connection.h +++ b/google/cloud/artifactregistry/v1/artifact_registry_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/artifactregistry/v1/artifact_registry_connection_idempotency_policy.h" #include "google/cloud/artifactregistry/v1/internal/artifact_registry_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -233,13 +233,13 @@ class ArtifactRegistryConnection { request); virtual StatusOr ImportAptArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& request); virtual future> - ImportAptArtifacts(google::cloud::ExperimentalTag, + ImportAptArtifacts(ExperimentalTag, google::longrunning::Operation const& operation); virtual future ImportYumArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& request); virtual future> - ImportYumArtifacts(google::cloud::ExperimentalTag, + ImportYumArtifacts(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -273,12 +273,12 @@ class ArtifactRegistryConnection { request); virtual StatusOr CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::CreateRepositoryRequest const& request); virtual future> - CreateRepository(google::cloud::ExperimentalTag, + CreateRepository(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -293,13 +293,13 @@ class ArtifactRegistryConnection { request); virtual StatusOr DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& request); virtual future< StatusOr> - DeleteRepository(google::cloud::ExperimentalTag, + DeleteRepository(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -316,13 +316,13 @@ class ArtifactRegistryConnection { request); virtual StatusOr DeletePackage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeletePackageRequest const& request); virtual future< StatusOr> - DeletePackage(google::cloud::ExperimentalTag, + DeletePackage(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -339,13 +339,13 @@ class ArtifactRegistryConnection { request); virtual StatusOr DeleteVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeleteVersionRequest const& request); virtual future< StatusOr> - DeleteVersion(google::cloud::ExperimentalTag, + DeleteVersion(ExperimentalTag, google::longrunning::Operation const& operation); virtual future BatchDeleteVersions( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& request); virtual future> - BatchDeleteVersions(google::cloud::ExperimentalTag, + BatchDeleteVersions(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListFiles( diff --git a/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.cc b/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.cc index 26d9b41606d81..6a85fc69f5d55 100644 --- a/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.cc +++ b/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.cc @@ -140,7 +140,7 @@ ArtifactRegistryTracingConnection::ImportAptArtifacts( request) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::ImportAptArtifacts"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportAptArtifacts(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -178,7 +178,7 @@ ArtifactRegistryTracingConnection::ImportYumArtifacts( request) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::ImportYumArtifacts"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportYumArtifacts(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -236,7 +236,7 @@ ArtifactRegistryTracingConnection::CreateRepository( request) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::CreateRepository"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateRepository(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -281,7 +281,7 @@ ArtifactRegistryTracingConnection::DeleteRepository( request) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::DeleteRepository"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteRepository(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -337,7 +337,7 @@ ArtifactRegistryTracingConnection::DeletePackage( request) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::DeletePackage"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeletePackage(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -393,7 +393,7 @@ ArtifactRegistryTracingConnection::DeleteVersion( request) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::DeleteVersion"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteVersion(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -430,7 +430,7 @@ ArtifactRegistryTracingConnection::BatchDeleteVersions( request) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::BatchDeleteVersions"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BatchDeleteVersions(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/asset/v1/asset_connection.cc b/google/cloud/asset/v1/asset_connection.cc index 2b93e108857c4..39bf3908918b9 100644 --- a/google/cloud/asset/v1/asset_connection.cc +++ b/google/cloud/asset/v1/asset_connection.cc @@ -47,14 +47,14 @@ AssetServiceConnection::ExportAssets( } StatusOr AssetServiceConnection::ExportAssets( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::asset::v1::ExportAssetsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AssetServiceConnection::ExportAssets(google::cloud::ExperimentalTag, +AssetServiceConnection::ExportAssets(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -132,7 +132,7 @@ AssetServiceConnection::AnalyzeIamPolicyLongrunning( StatusOr AssetServiceConnection::AnalyzeIamPolicyLongrunning( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -140,7 +140,7 @@ AssetServiceConnection::AnalyzeIamPolicyLongrunning( future> AssetServiceConnection::AnalyzeIamPolicyLongrunning( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/asset/v1/asset_connection.h b/google/cloud/asset/v1/asset_connection.h index 9dde9e0194163..e1b260a7d0a5b 100644 --- a/google/cloud/asset/v1/asset_connection.h +++ b/google/cloud/asset/v1/asset_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/asset/v1/asset_connection_idempotency_policy.h" #include "google/cloud/asset/v1/internal/asset_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -191,11 +191,11 @@ class AssetServiceConnection { ExportAssets(google::cloud::asset::v1::ExportAssetsRequest const& request); virtual StatusOr ExportAssets( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::asset::v1::ExportAssetsRequest const& request); virtual future> - ExportAssets(google::cloud::ExperimentalTag, + ExportAssets(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListAssets( @@ -239,13 +239,13 @@ class AssetServiceConnection { request); virtual StatusOr AnalyzeIamPolicyLongrunning( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& request); virtual future< StatusOr> - AnalyzeIamPolicyLongrunning(google::cloud::ExperimentalTag, + AnalyzeIamPolicyLongrunning(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr AnalyzeMove( diff --git a/google/cloud/asset/v1/internal/asset_tracing_connection.cc b/google/cloud/asset/v1/internal/asset_tracing_connection.cc index ffa3c729dadce..e162af438b9a8 100644 --- a/google/cloud/asset/v1/internal/asset_tracing_connection.cc +++ b/google/cloud/asset/v1/internal/asset_tracing_connection.cc @@ -48,7 +48,7 @@ AssetServiceTracingConnection::ExportAssets( google::cloud::asset::v1::ExportAssetsRequest const& request) { auto span = internal::MakeSpan("asset_v1::AssetServiceConnection::ExportAssets"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportAssets(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -178,7 +178,7 @@ AssetServiceTracingConnection::AnalyzeIamPolicyLongrunning( request) { auto span = internal::MakeSpan( "asset_v1::AssetServiceConnection::AnalyzeIamPolicyLongrunning"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->AnalyzeIamPolicyLongrunning( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/assuredworkloads/v1/assured_workloads_connection.cc b/google/cloud/assuredworkloads/v1/assured_workloads_connection.cc index b39430da7e461..ee6995e52e9a9 100644 --- a/google/cloud/assuredworkloads/v1/assured_workloads_connection.cc +++ b/google/cloud/assuredworkloads/v1/assured_workloads_connection.cc @@ -49,7 +49,7 @@ AssuredWorkloadsServiceConnection::CreateWorkload( StatusOr AssuredWorkloadsServiceConnection::CreateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::assuredworkloads::v1::CreateWorkloadRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -57,7 +57,7 @@ AssuredWorkloadsServiceConnection::CreateWorkload( future> AssuredWorkloadsServiceConnection::CreateWorkload( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/assuredworkloads/v1/assured_workloads_connection.h b/google/cloud/assuredworkloads/v1/assured_workloads_connection.h index 70cfe63e22100..f0a21368ac439 100644 --- a/google/cloud/assuredworkloads/v1/assured_workloads_connection.h +++ b/google/cloud/assuredworkloads/v1/assured_workloads_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/assuredworkloads/v1/assured_workloads_connection_idempotency_policy.h" #include "google/cloud/assuredworkloads/v1/internal/assured_workloads_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -201,12 +201,12 @@ class AssuredWorkloadsServiceConnection { request); virtual StatusOr CreateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& request); virtual future> - CreateWorkload(google::cloud::ExperimentalTag, + CreateWorkload(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.cc b/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.cc index 5eedadcedf097..76329f445ab87 100644 --- a/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.cc +++ b/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.cc @@ -50,7 +50,7 @@ AssuredWorkloadsServiceTracingConnection::CreateWorkload( google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& request) { auto span = internal::MakeSpan( "assuredworkloads_v1::AssuredWorkloadsServiceConnection::CreateWorkload"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateWorkload(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/automl/v1/auto_ml_connection.cc b/google/cloud/automl/v1/auto_ml_connection.cc index 7ab40899d1063..df718bf4ff169 100644 --- a/google/cloud/automl/v1/auto_ml_connection.cc +++ b/google/cloud/automl/v1/auto_ml_connection.cc @@ -47,14 +47,14 @@ AutoMlConnection::CreateDataset( } StatusOr AutoMlConnection::CreateDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::CreateDatasetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AutoMlConnection::CreateDataset(google::cloud::ExperimentalTag, +AutoMlConnection::CreateDataset(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -87,14 +87,14 @@ AutoMlConnection::DeleteDataset( } StatusOr AutoMlConnection::DeleteDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeleteDatasetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AutoMlConnection::DeleteDataset(google::cloud::ExperimentalTag, +AutoMlConnection::DeleteDataset(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -110,14 +110,14 @@ AutoMlConnection::ImportData( } StatusOr AutoMlConnection::ImportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ImportDataRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AutoMlConnection::ImportData(google::cloud::ExperimentalTag, +AutoMlConnection::ImportData(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -133,14 +133,14 @@ AutoMlConnection::ExportData( } StatusOr AutoMlConnection::ExportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ExportDataRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AutoMlConnection::ExportData(google::cloud::ExperimentalTag, +AutoMlConnection::ExportData(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -162,14 +162,14 @@ AutoMlConnection::CreateModel( } StatusOr AutoMlConnection::CreateModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::CreateModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AutoMlConnection::CreateModel(google::cloud::ExperimentalTag, +AutoMlConnection::CreateModel(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -197,14 +197,14 @@ AutoMlConnection::DeleteModel( } StatusOr AutoMlConnection::DeleteModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeleteModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AutoMlConnection::DeleteModel(google::cloud::ExperimentalTag, +AutoMlConnection::DeleteModel(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -225,14 +225,14 @@ AutoMlConnection::DeployModel( } StatusOr AutoMlConnection::DeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeployModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AutoMlConnection::DeployModel(google::cloud::ExperimentalTag, +AutoMlConnection::DeployModel(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -248,14 +248,14 @@ AutoMlConnection::UndeployModel( } StatusOr AutoMlConnection::UndeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::UndeployModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AutoMlConnection::UndeployModel(google::cloud::ExperimentalTag, +AutoMlConnection::UndeployModel(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -271,14 +271,14 @@ AutoMlConnection::ExportModel( } StatusOr AutoMlConnection::ExportModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ExportModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AutoMlConnection::ExportModel(google::cloud::ExperimentalTag, +AutoMlConnection::ExportModel(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/automl/v1/auto_ml_connection.h b/google/cloud/automl/v1/auto_ml_connection.h index a684e3538d2c9..e470bfdbb7455 100644 --- a/google/cloud/automl/v1/auto_ml_connection.h +++ b/google/cloud/automl/v1/auto_ml_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/automl/v1/auto_ml_connection_idempotency_policy.h" #include "google/cloud/automl/v1/internal/auto_ml_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -188,12 +188,11 @@ class AutoMlConnection { google::cloud::automl::v1::CreateDatasetRequest const& request); virtual StatusOr CreateDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::CreateDatasetRequest const& request); virtual future> CreateDataset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetDataset( google::cloud::automl::v1::GetDatasetRequest const& request); @@ -208,34 +207,32 @@ class AutoMlConnection { DeleteDataset(google::cloud::automl::v1::DeleteDatasetRequest const& request); virtual StatusOr DeleteDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeleteDatasetRequest const& request); virtual future> - DeleteDataset(google::cloud::ExperimentalTag, + DeleteDataset(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ImportData(google::cloud::automl::v1::ImportDataRequest const& request); virtual StatusOr ImportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ImportDataRequest const& request); virtual future> - ImportData(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ImportData(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ExportData(google::cloud::automl::v1::ExportDataRequest const& request); virtual StatusOr ExportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ExportDataRequest const& request); virtual future> - ExportData(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExportData(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetAnnotationSpec( google::cloud::automl::v1::GetAnnotationSpecRequest const& request); @@ -244,12 +241,11 @@ class AutoMlConnection { google::cloud::automl::v1::CreateModelRequest const& request); virtual StatusOr CreateModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::CreateModelRequest const& request); virtual future> CreateModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetModel( google::cloud::automl::v1::GetModelRequest const& request); @@ -261,12 +257,11 @@ class AutoMlConnection { DeleteModel(google::cloud::automl::v1::DeleteModelRequest const& request); virtual StatusOr DeleteModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeleteModelRequest const& request); virtual future> - DeleteModel(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr UpdateModel( google::cloud::automl::v1::UpdateModelRequest const& request); @@ -275,34 +270,32 @@ class AutoMlConnection { DeployModel(google::cloud::automl::v1::DeployModelRequest const& request); virtual StatusOr DeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeployModelRequest const& request); virtual future> - DeployModel(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeployModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UndeployModel(google::cloud::automl::v1::UndeployModelRequest const& request); virtual StatusOr UndeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::UndeployModelRequest const& request); virtual future> - UndeployModel(google::cloud::ExperimentalTag, + UndeployModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ExportModel(google::cloud::automl::v1::ExportModelRequest const& request); virtual StatusOr ExportModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ExportModelRequest const& request); virtual future> - ExportModel(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExportModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetModelEvaluation( diff --git a/google/cloud/automl/v1/internal/auto_ml_tracing_connection.cc b/google/cloud/automl/v1/internal/auto_ml_tracing_connection.cc index 3c984e234a6cd..fb887822e7954 100644 --- a/google/cloud/automl/v1/internal/auto_ml_tracing_connection.cc +++ b/google/cloud/automl/v1/internal/auto_ml_tracing_connection.cc @@ -45,7 +45,7 @@ StatusOr AutoMlTracingConnection::CreateDataset( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::automl::v1::CreateDatasetRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::CreateDataset"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateDataset(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -100,7 +100,7 @@ StatusOr AutoMlTracingConnection::DeleteDataset( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::automl::v1::DeleteDatasetRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::DeleteDataset"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteDataset(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -129,7 +129,7 @@ StatusOr AutoMlTracingConnection::ImportData( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::automl::v1::ImportDataRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::ImportData"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportData(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -158,7 +158,7 @@ StatusOr AutoMlTracingConnection::ExportData( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::automl::v1::ExportDataRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::ExportData"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportData(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -196,7 +196,7 @@ StatusOr AutoMlTracingConnection::CreateModel( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::automl::v1::CreateModelRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::CreateModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -242,7 +242,7 @@ StatusOr AutoMlTracingConnection::DeleteModel( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::automl::v1::DeleteModelRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::DeleteModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -278,7 +278,7 @@ StatusOr AutoMlTracingConnection::DeployModel( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::automl::v1::DeployModelRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::DeployModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeployModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -307,7 +307,7 @@ StatusOr AutoMlTracingConnection::UndeployModel( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::automl::v1::UndeployModelRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::UndeployModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UndeployModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -336,7 +336,7 @@ StatusOr AutoMlTracingConnection::ExportModel( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::automl::v1::ExportModelRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::ExportModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/automl/v1/internal/prediction_tracing_connection.cc b/google/cloud/automl/v1/internal/prediction_tracing_connection.cc index 6e6b355ccf285..ee97e461c905b 100644 --- a/google/cloud/automl/v1/internal/prediction_tracing_connection.cc +++ b/google/cloud/automl/v1/internal/prediction_tracing_connection.cc @@ -56,7 +56,7 @@ PredictionServiceTracingConnection::BatchPredict( google::cloud::automl::v1::BatchPredictRequest const& request) { auto span = internal::MakeSpan( "automl_v1::PredictionServiceConnection::BatchPredict"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BatchPredict(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/automl/v1/prediction_connection.cc b/google/cloud/automl/v1/prediction_connection.cc index 1c9cba8bb944a..b375767f3ae1a 100644 --- a/google/cloud/automl/v1/prediction_connection.cc +++ b/google/cloud/automl/v1/prediction_connection.cc @@ -53,7 +53,7 @@ PredictionServiceConnection::BatchPredict( StatusOr PredictionServiceConnection::BatchPredict( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::BatchPredictRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -61,7 +61,7 @@ PredictionServiceConnection::BatchPredict( future> PredictionServiceConnection::BatchPredict( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/automl/v1/prediction_connection.h b/google/cloud/automl/v1/prediction_connection.h index 89aab4b39954f..d47a024d69bcb 100644 --- a/google/cloud/automl/v1/prediction_connection.h +++ b/google/cloud/automl/v1/prediction_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/automl/v1/internal/prediction_retry_traits.h" #include "google/cloud/automl/v1/prediction_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -195,11 +195,11 @@ class PredictionServiceConnection { BatchPredict(google::cloud::automl::v1::BatchPredictRequest const& request); virtual StatusOr BatchPredict( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::BatchPredictRequest const& request); virtual future> - BatchPredict(google::cloud::ExperimentalTag, + BatchPredict(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/backupdr/v1/backup_dr_connection.cc b/google/cloud/backupdr/v1/backup_dr_connection.cc index 93e8f78668228..dda54897b1a18 100644 --- a/google/cloud/backupdr/v1/backup_dr_connection.cc +++ b/google/cloud/backupdr/v1/backup_dr_connection.cc @@ -62,7 +62,7 @@ BackupDRConnection::CreateManagementServer( StatusOr BackupDRConnection::CreateManagementServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::backupdr::v1::CreateManagementServerRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ BackupDRConnection::CreateManagementServer( future> BackupDRConnection::CreateManagementServer( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ BackupDRConnection::DeleteManagementServer( StatusOr BackupDRConnection::DeleteManagementServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::backupdr::v1::DeleteManagementServerRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ BackupDRConnection::DeleteManagementServer( future> BackupDRConnection::DeleteManagementServer( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/backupdr/v1/backup_dr_connection.h b/google/cloud/backupdr/v1/backup_dr_connection.h index 29b9fa0ff5813..8bca9c2a9ab00 100644 --- a/google/cloud/backupdr/v1/backup_dr_connection.h +++ b/google/cloud/backupdr/v1/backup_dr_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/backupdr/v1/backup_dr_connection_idempotency_policy.h" #include "google/cloud/backupdr/v1/internal/backup_dr_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -198,12 +198,12 @@ class BackupDRConnection { request); virtual StatusOr CreateManagementServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::backupdr::v1::CreateManagementServerRequest const& request); virtual future> - CreateManagementServer(google::cloud::ExperimentalTag, + CreateManagementServer(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -212,12 +212,12 @@ class BackupDRConnection { request); virtual StatusOr DeleteManagementServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::backupdr::v1::DeleteManagementServerRequest const& request); virtual future> - DeleteManagementServer(google::cloud::ExperimentalTag, + DeleteManagementServer(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.cc b/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.cc index ce06b3678b33d..83903a20d6cd2 100644 --- a/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.cc +++ b/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.cc @@ -70,7 +70,7 @@ BackupDRTracingConnection::CreateManagementServer( google::cloud::backupdr::v1::CreateManagementServerRequest const& request) { auto span = internal::MakeSpan( "backupdr_v1::BackupDRConnection::CreateManagementServer"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateManagementServer( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -104,7 +104,7 @@ BackupDRTracingConnection::DeleteManagementServer( google::cloud::backupdr::v1::DeleteManagementServerRequest const& request) { auto span = internal::MakeSpan( "backupdr_v1::BackupDRConnection::DeleteManagementServer"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteManagementServer( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/baremetalsolution/v2/bare_metal_solution_connection.cc b/google/cloud/baremetalsolution/v2/bare_metal_solution_connection.cc index df646dcef39f9..1c1805e9cd71c 100644 --- a/google/cloud/baremetalsolution/v2/bare_metal_solution_connection.cc +++ b/google/cloud/baremetalsolution/v2/bare_metal_solution_connection.cc @@ -62,7 +62,7 @@ BareMetalSolutionConnection::UpdateInstance( StatusOr BareMetalSolutionConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ BareMetalSolutionConnection::UpdateInstance( future> BareMetalSolutionConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -92,7 +92,7 @@ BareMetalSolutionConnection::ResetInstance( StatusOr BareMetalSolutionConnection::ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::ResetInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -100,7 +100,7 @@ BareMetalSolutionConnection::ResetInstance( future> BareMetalSolutionConnection::ResetInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -116,7 +116,7 @@ BareMetalSolutionConnection::StartInstance( StatusOr BareMetalSolutionConnection::StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::StartInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -124,7 +124,7 @@ BareMetalSolutionConnection::StartInstance( future> BareMetalSolutionConnection::StartInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -140,7 +140,7 @@ BareMetalSolutionConnection::StopInstance( StatusOr BareMetalSolutionConnection::StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::StopInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -148,7 +148,7 @@ BareMetalSolutionConnection::StopInstance( future> BareMetalSolutionConnection::StopInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -167,7 +167,7 @@ BareMetalSolutionConnection::EnableInteractiveSerialConsole( StatusOr BareMetalSolutionConnection::EnableInteractiveSerialConsole( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2:: EnableInteractiveSerialConsoleRequest const&) { return StatusOr( @@ -177,7 +177,7 @@ BareMetalSolutionConnection::EnableInteractiveSerialConsole( future> BareMetalSolutionConnection::EnableInteractiveSerialConsole( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -197,7 +197,7 @@ BareMetalSolutionConnection::DisableInteractiveSerialConsole( StatusOr BareMetalSolutionConnection::DisableInteractiveSerialConsole( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2:: DisableInteractiveSerialConsoleRequest const&) { return StatusOr( @@ -207,7 +207,7 @@ BareMetalSolutionConnection::DisableInteractiveSerialConsole( future> BareMetalSolutionConnection::DisableInteractiveSerialConsole( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -223,14 +223,14 @@ BareMetalSolutionConnection::DetachLun( } StatusOr BareMetalSolutionConnection::DetachLun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::DetachLunRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -BareMetalSolutionConnection::DetachLun(google::cloud::ExperimentalTag, +BareMetalSolutionConnection::DetachLun(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -280,7 +280,7 @@ BareMetalSolutionConnection::UpdateVolume( StatusOr BareMetalSolutionConnection::UpdateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateVolumeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -288,7 +288,7 @@ BareMetalSolutionConnection::UpdateVolume( future> BareMetalSolutionConnection::UpdateVolume( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -310,7 +310,7 @@ BareMetalSolutionConnection::EvictVolume( StatusOr BareMetalSolutionConnection::EvictVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::EvictVolumeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -318,7 +318,7 @@ BareMetalSolutionConnection::EvictVolume( future> BareMetalSolutionConnection::EvictVolume( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -334,7 +334,7 @@ BareMetalSolutionConnection::ResizeVolume( StatusOr BareMetalSolutionConnection::ResizeVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::ResizeVolumeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -342,7 +342,7 @@ BareMetalSolutionConnection::ResizeVolume( future> BareMetalSolutionConnection::ResizeVolume( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -378,7 +378,7 @@ BareMetalSolutionConnection::UpdateNetwork( StatusOr BareMetalSolutionConnection::UpdateNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateNetworkRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -386,7 +386,7 @@ BareMetalSolutionConnection::UpdateNetwork( future> BareMetalSolutionConnection::UpdateNetwork( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -408,7 +408,7 @@ BareMetalSolutionConnection::RestoreVolumeSnapshot( StatusOr BareMetalSolutionConnection::RestoreVolumeSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -416,7 +416,7 @@ BareMetalSolutionConnection::RestoreVolumeSnapshot( future> BareMetalSolutionConnection::RestoreVolumeSnapshot( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -464,14 +464,14 @@ BareMetalSolutionConnection::EvictLun( } StatusOr BareMetalSolutionConnection::EvictLun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::EvictLunRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -BareMetalSolutionConnection::EvictLun(google::cloud::ExperimentalTag, +BareMetalSolutionConnection::EvictLun(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -502,7 +502,7 @@ BareMetalSolutionConnection::UpdateNfsShare( StatusOr BareMetalSolutionConnection::UpdateNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -510,7 +510,7 @@ BareMetalSolutionConnection::UpdateNfsShare( future> BareMetalSolutionConnection::UpdateNfsShare( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -526,7 +526,7 @@ BareMetalSolutionConnection::CreateNfsShare( StatusOr BareMetalSolutionConnection::CreateNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::CreateNfsShareRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -534,7 +534,7 @@ BareMetalSolutionConnection::CreateNfsShare( future> BareMetalSolutionConnection::CreateNfsShare( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -556,7 +556,7 @@ BareMetalSolutionConnection::DeleteNfsShare( StatusOr BareMetalSolutionConnection::DeleteNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -564,7 +564,7 @@ BareMetalSolutionConnection::DeleteNfsShare( future> BareMetalSolutionConnection::DeleteNfsShare( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/baremetalsolution/v2/bare_metal_solution_connection.h b/google/cloud/baremetalsolution/v2/bare_metal_solution_connection.h index 9d7aec9144180..1b7c3e9d9b090 100644 --- a/google/cloud/baremetalsolution/v2/bare_metal_solution_connection.h +++ b/google/cloud/baremetalsolution/v2/bare_metal_solution_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/baremetalsolution/v2/bare_metal_solution_connection_idempotency_policy.h" #include "google/cloud/baremetalsolution/v2/internal/bare_metal_solution_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -202,12 +202,12 @@ class BareMetalSolutionConnection { request); virtual StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& request); virtual future> - UpdateInstance(google::cloud::ExperimentalTag, + UpdateInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -222,13 +222,13 @@ class BareMetalSolutionConnection { request); virtual StatusOr ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::ResetInstanceRequest const& request); virtual future< StatusOr> - ResetInstance(google::cloud::ExperimentalTag, + ResetInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -238,13 +238,13 @@ class BareMetalSolutionConnection { request); virtual StatusOr StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::StartInstanceRequest const& request); virtual future< StatusOr> - StartInstance(google::cloud::ExperimentalTag, + StartInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -253,12 +253,12 @@ class BareMetalSolutionConnection { google::cloud::baremetalsolution::v2::StopInstanceRequest const& request); virtual StatusOr StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::StopInstanceRequest const& request); virtual future< StatusOr> - StopInstance(google::cloud::ExperimentalTag, + StopInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future EnableInteractiveSerialConsole( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2:: EnableInteractiveSerialConsoleRequest const& request); virtual future> EnableInteractiveSerialConsole( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -287,27 +286,25 @@ class BareMetalSolutionConnection { virtual StatusOr DisableInteractiveSerialConsole( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2:: DisableInteractiveSerialConsoleRequest const& request); virtual future> DisableInteractiveSerialConsole( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DetachLun( google::cloud::baremetalsolution::v2::DetachLunRequest const& request); virtual StatusOr DetachLun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::DetachLunRequest const& request); virtual future> - DetachLun(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DetachLun(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListSSHKeys( google::cloud::baremetalsolution::v2::ListSSHKeysRequest request); @@ -329,11 +326,11 @@ class BareMetalSolutionConnection { google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request); virtual StatusOr UpdateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request); virtual future> - UpdateVolume(google::cloud::ExperimentalTag, + UpdateVolume(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr RenameVolume( @@ -345,24 +342,23 @@ class BareMetalSolutionConnection { google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request); virtual StatusOr EvictVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request); virtual future< StatusOr> - EvictVolume(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + EvictVolume(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ResizeVolume( google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request); virtual StatusOr ResizeVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request); virtual future> - ResizeVolume(google::cloud::ExperimentalTag, + ResizeVolume(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -384,12 +380,12 @@ class BareMetalSolutionConnection { request); virtual StatusOr UpdateNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& request); virtual future> - UpdateNetwork(google::cloud::ExperimentalTag, + UpdateNetwork(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -403,12 +399,12 @@ class BareMetalSolutionConnection { request); virtual StatusOr RestoreVolumeSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& request); virtual future> - RestoreVolumeSnapshot(google::cloud::ExperimentalTag, + RestoreVolumeSnapshot(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status DeleteVolumeSnapshot( @@ -436,13 +432,12 @@ class BareMetalSolutionConnection { google::cloud::baremetalsolution::v2::EvictLunRequest const& request); virtual StatusOr EvictLun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::EvictLunRequest const& request); virtual future< StatusOr> - EvictLun(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + EvictLun(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetNfsShare( google::cloud::baremetalsolution::v2::GetNfsShareRequest const& request); @@ -457,12 +452,12 @@ class BareMetalSolutionConnection { request); virtual StatusOr UpdateNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& request); virtual future> - UpdateNfsShare(google::cloud::ExperimentalTag, + UpdateNfsShare(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -471,12 +466,12 @@ class BareMetalSolutionConnection { request); virtual StatusOr CreateNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& request); virtual future> - CreateNfsShare(google::cloud::ExperimentalTag, + CreateNfsShare(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -491,13 +486,13 @@ class BareMetalSolutionConnection { request); virtual StatusOr DeleteNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& request); virtual future< StatusOr> - DeleteNfsShare(google::cloud::ExperimentalTag, + DeleteNfsShare(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange diff --git a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.cc b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.cc index 5e62b459048c6..160f54d6b390b 100644 --- a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.cc +++ b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.cc @@ -71,7 +71,7 @@ BareMetalSolutionTracingConnection::UpdateInstance( request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::UpdateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -114,7 +114,7 @@ BareMetalSolutionTracingConnection::ResetInstance( google::cloud::baremetalsolution::v2::ResetInstanceRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::ResetInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ResetInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -147,7 +147,7 @@ BareMetalSolutionTracingConnection::StartInstance( google::cloud::baremetalsolution::v2::StartInstanceRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::StartInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StartInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -180,7 +180,7 @@ BareMetalSolutionTracingConnection::StopInstance( google::cloud::baremetalsolution::v2::StopInstanceRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::StopInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StopInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -219,7 +219,7 @@ BareMetalSolutionTracingConnection::EnableInteractiveSerialConsole( auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::" "EnableInteractiveSerialConsole"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->EnableInteractiveSerialConsole( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -260,7 +260,7 @@ BareMetalSolutionTracingConnection::DisableInteractiveSerialConsole( auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::" "DisableInteractiveSerialConsole"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DisableInteractiveSerialConsole( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -295,7 +295,7 @@ BareMetalSolutionTracingConnection::DetachLun( google::cloud::baremetalsolution::v2::DetachLunRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::DetachLun"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DetachLun(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -378,7 +378,7 @@ BareMetalSolutionTracingConnection::UpdateVolume( google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::UpdateVolume"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateVolume(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -420,7 +420,7 @@ BareMetalSolutionTracingConnection::EvictVolume( google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::EvictVolume"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->EvictVolume(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -453,7 +453,7 @@ BareMetalSolutionTracingConnection::ResizeVolume( google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::ResizeVolume"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ResizeVolume(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -517,7 +517,7 @@ BareMetalSolutionTracingConnection::UpdateNetwork( google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::UpdateNetwork"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateNetwork(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -566,7 +566,7 @@ BareMetalSolutionTracingConnection::RestoreVolumeSnapshot( auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::" "RestoreVolumeSnapshot"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RestoreVolumeSnapshot( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -653,7 +653,7 @@ BareMetalSolutionTracingConnection::EvictLun( google::cloud::baremetalsolution::v2::EvictLunRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::EvictLun"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->EvictLun(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -709,7 +709,7 @@ BareMetalSolutionTracingConnection::UpdateNfsShare( request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::UpdateNfsShare"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateNfsShare(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -744,7 +744,7 @@ BareMetalSolutionTracingConnection::CreateNfsShare( request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::CreateNfsShare"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateNfsShare(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -789,7 +789,7 @@ BareMetalSolutionTracingConnection::DeleteNfsShare( request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::DeleteNfsShare"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteNfsShare(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/batch/v1/batch_connection.cc b/google/cloud/batch/v1/batch_connection.cc index 0438e58f5cbf3..a35ead3384194 100644 --- a/google/cloud/batch/v1/batch_connection.cc +++ b/google/cloud/batch/v1/batch_connection.cc @@ -57,14 +57,14 @@ BatchServiceConnection::DeleteJob( } StatusOr BatchServiceConnection::DeleteJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::batch::v1::DeleteJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -BatchServiceConnection::DeleteJob(google::cloud::ExperimentalTag, +BatchServiceConnection::DeleteJob(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/batch/v1/batch_connection.h b/google/cloud/batch/v1/batch_connection.h index 0cfdba15f4b4b..f388f06c72ac1 100644 --- a/google/cloud/batch/v1/batch_connection.h +++ b/google/cloud/batch/v1/batch_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/batch/v1/batch_connection_idempotency_policy.h" #include "google/cloud/batch/v1/internal/batch_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,12 +197,11 @@ class BatchServiceConnection { DeleteJob(google::cloud::batch::v1::DeleteJobRequest const& request); virtual StatusOr DeleteJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::batch::v1::DeleteJobRequest const& request); virtual future> - DeleteJob(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListJobs( google::cloud::batch::v1::ListJobsRequest request); diff --git a/google/cloud/batch/v1/internal/batch_tracing_connection.cc b/google/cloud/batch/v1/internal/batch_tracing_connection.cc index 76a07f35599db..c3498453bc8da 100644 --- a/google/cloud/batch/v1/internal/batch_tracing_connection.cc +++ b/google/cloud/batch/v1/internal/batch_tracing_connection.cc @@ -61,7 +61,7 @@ BatchServiceTracingConnection::DeleteJob( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::batch::v1::DeleteJobRequest const& request) { auto span = internal::MakeSpan("batch_v1::BatchServiceConnection::DeleteJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/beyondcorp/appconnections/v1/app_connections_connection.cc b/google/cloud/beyondcorp/appconnections/v1/app_connections_connection.cc index fa94f4e7242d2..0841735e62859 100644 --- a/google/cloud/beyondcorp/appconnections/v1/app_connections_connection.cc +++ b/google/cloud/beyondcorp/appconnections/v1/app_connections_connection.cc @@ -65,7 +65,7 @@ AppConnectionsServiceConnection::CreateAppConnection( StatusOr AppConnectionsServiceConnection::CreateAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: CreateAppConnectionRequest const&) { return StatusOr( @@ -74,7 +74,7 @@ AppConnectionsServiceConnection::CreateAppConnection( future> AppConnectionsServiceConnection::CreateAppConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -91,7 +91,7 @@ AppConnectionsServiceConnection::UpdateAppConnection( StatusOr AppConnectionsServiceConnection::UpdateAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: UpdateAppConnectionRequest const&) { return StatusOr( @@ -100,7 +100,7 @@ AppConnectionsServiceConnection::UpdateAppConnection( future> AppConnectionsServiceConnection::UpdateAppConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -119,7 +119,7 @@ AppConnectionsServiceConnection::DeleteAppConnection( StatusOr AppConnectionsServiceConnection::DeleteAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: DeleteAppConnectionRequest const&) { return StatusOr( @@ -129,7 +129,7 @@ AppConnectionsServiceConnection::DeleteAppConnection( future> AppConnectionsServiceConnection::DeleteAppConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/beyondcorp/appconnections/v1/app_connections_connection.h b/google/cloud/beyondcorp/appconnections/v1/app_connections_connection.h index 32a12f4181c41..0f1dec86eb4d0 100644 --- a/google/cloud/beyondcorp/appconnections/v1/app_connections_connection.h +++ b/google/cloud/beyondcorp/appconnections/v1/app_connections_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/beyondcorp/appconnections/v1/app_connections_connection_idempotency_policy.h" #include "google/cloud/beyondcorp/appconnections/v1/internal/app_connections_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -211,13 +211,13 @@ class AppConnectionsServiceConnection { CreateAppConnectionRequest const& request); virtual StatusOr CreateAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: CreateAppConnectionRequest const& request); virtual future< StatusOr> - CreateAppConnection(google::cloud::ExperimentalTag, + CreateAppConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -226,13 +226,13 @@ class AppConnectionsServiceConnection { UpdateAppConnectionRequest const& request); virtual StatusOr UpdateAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: UpdateAppConnectionRequest const& request); virtual future< StatusOr> - UpdateAppConnection(google::cloud::ExperimentalTag, + UpdateAppConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual future DeleteAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: DeleteAppConnectionRequest const& request); virtual future> - DeleteAppConnection(google::cloud::ExperimentalTag, + DeleteAppConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRangeCreateAppConnection(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -120,7 +120,7 @@ AppConnectionsServiceTracingConnection::UpdateAppConnection( auto span = internal::MakeSpan( "beyondcorp_appconnections_v1::AppConnectionsServiceConnection::" "UpdateAppConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateAppConnection(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -160,7 +160,7 @@ AppConnectionsServiceTracingConnection::DeleteAppConnection( auto span = internal::MakeSpan( "beyondcorp_appconnections_v1::AppConnectionsServiceConnection::" "DeleteAppConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAppConnection(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/beyondcorp/appconnectors/v1/app_connectors_connection.cc b/google/cloud/beyondcorp/appconnectors/v1/app_connectors_connection.cc index 8c1d46f7be5b7..4a5123421d035 100644 --- a/google/cloud/beyondcorp/appconnectors/v1/app_connectors_connection.cc +++ b/google/cloud/beyondcorp/appconnectors/v1/app_connectors_connection.cc @@ -64,7 +64,7 @@ AppConnectorsServiceConnection::CreateAppConnector( StatusOr AppConnectorsServiceConnection::CreateAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: CreateAppConnectorRequest const&) { return StatusOr( @@ -73,7 +73,7 @@ AppConnectorsServiceConnection::CreateAppConnector( future> AppConnectorsServiceConnection::CreateAppConnector( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -90,7 +90,7 @@ AppConnectorsServiceConnection::UpdateAppConnector( StatusOr AppConnectorsServiceConnection::UpdateAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: UpdateAppConnectorRequest const&) { return StatusOr( @@ -99,7 +99,7 @@ AppConnectorsServiceConnection::UpdateAppConnector( future> AppConnectorsServiceConnection::UpdateAppConnector( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ AppConnectorsServiceConnection::DeleteAppConnector( StatusOr AppConnectorsServiceConnection::DeleteAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: DeleteAppConnectorRequest const&) { return StatusOr( @@ -128,7 +128,7 @@ AppConnectorsServiceConnection::DeleteAppConnector( future> AppConnectorsServiceConnection::DeleteAppConnector( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -145,7 +145,7 @@ AppConnectorsServiceConnection::ReportStatus( StatusOr AppConnectorsServiceConnection::ReportStatus( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -153,7 +153,7 @@ AppConnectorsServiceConnection::ReportStatus( future> AppConnectorsServiceConnection::ReportStatus( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/beyondcorp/appconnectors/v1/app_connectors_connection.h b/google/cloud/beyondcorp/appconnectors/v1/app_connectors_connection.h index e152cddfa895c..1a222a4c94c19 100644 --- a/google/cloud/beyondcorp/appconnectors/v1/app_connectors_connection.h +++ b/google/cloud/beyondcorp/appconnectors/v1/app_connectors_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/beyondcorp/appconnectors/v1/app_connectors_connection_idempotency_policy.h" #include "google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -208,13 +208,13 @@ class AppConnectorsServiceConnection { CreateAppConnectorRequest const& request); virtual StatusOr CreateAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: CreateAppConnectorRequest const& request); virtual future< StatusOr> - CreateAppConnector(google::cloud::ExperimentalTag, + CreateAppConnector(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -223,13 +223,13 @@ class AppConnectorsServiceConnection { UpdateAppConnectorRequest const& request); virtual StatusOr UpdateAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: UpdateAppConnectorRequest const& request); virtual future< StatusOr> - UpdateAppConnector(google::cloud::ExperimentalTag, + UpdateAppConnector(ExperimentalTag, google::longrunning::Operation const& operation); virtual future DeleteAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: DeleteAppConnectorRequest const& request); virtual future> - DeleteAppConnector(google::cloud::ExperimentalTag, + DeleteAppConnector(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -254,13 +254,13 @@ class AppConnectorsServiceConnection { request); virtual StatusOr ReportStatus( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& request); virtual future< StatusOr> - ReportStatus(google::cloud::ExperimentalTag, + ReportStatus(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.cc b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.cc index f21cd357fb7b3..ef3b52d3de9b6 100644 --- a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.cc +++ b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.cc @@ -79,7 +79,7 @@ AppConnectorsServiceTracingConnection::CreateAppConnector( auto span = internal::MakeSpan( "beyondcorp_appconnectors_v1::AppConnectorsServiceConnection::" "CreateAppConnector"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateAppConnector(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -118,7 +118,7 @@ AppConnectorsServiceTracingConnection::UpdateAppConnector( auto span = internal::MakeSpan( "beyondcorp_appconnectors_v1::AppConnectorsServiceConnection::" "UpdateAppConnector"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateAppConnector(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -158,7 +158,7 @@ AppConnectorsServiceTracingConnection::DeleteAppConnector( auto span = internal::MakeSpan( "beyondcorp_appconnectors_v1::AppConnectorsServiceConnection::" "DeleteAppConnector"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAppConnector(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -197,7 +197,7 @@ AppConnectorsServiceTracingConnection::ReportStatus( auto span = internal::MakeSpan( "beyondcorp_appconnectors_v1::AppConnectorsServiceConnection::" "ReportStatus"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ReportStatus(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/beyondcorp/appgateways/v1/app_gateways_connection.cc b/google/cloud/beyondcorp/appgateways/v1/app_gateways_connection.cc index 1dd4143d80e56..29736b62b8000 100644 --- a/google/cloud/beyondcorp/appgateways/v1/app_gateways_connection.cc +++ b/google/cloud/beyondcorp/appgateways/v1/app_gateways_connection.cc @@ -63,7 +63,7 @@ AppGatewaysServiceConnection::CreateAppGateway( StatusOr AppGatewaysServiceConnection::CreateAppGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appgateways::v1:: CreateAppGatewayRequest const&) { return StatusOr( @@ -72,7 +72,7 @@ AppGatewaysServiceConnection::CreateAppGateway( future> AppGatewaysServiceConnection::CreateAppGateway( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -90,7 +90,7 @@ AppGatewaysServiceConnection::DeleteAppGateway( StatusOr AppGatewaysServiceConnection::DeleteAppGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appgateways::v1:: DeleteAppGatewayRequest const&) { return StatusOr( @@ -100,7 +100,7 @@ AppGatewaysServiceConnection::DeleteAppGateway( future> AppGatewaysServiceConnection::DeleteAppGateway( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/beyondcorp/appgateways/v1/app_gateways_connection.h b/google/cloud/beyondcorp/appgateways/v1/app_gateways_connection.h index 6530c0abde2df..5e73e887dea57 100644 --- a/google/cloud/beyondcorp/appgateways/v1/app_gateways_connection.h +++ b/google/cloud/beyondcorp/appgateways/v1/app_gateways_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/beyondcorp/appgateways/v1/app_gateways_connection_idempotency_policy.h" #include "google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -208,13 +208,13 @@ class AppGatewaysServiceConnection { request); virtual StatusOr CreateAppGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appgateways::v1::CreateAppGatewayRequest const& request); virtual future< StatusOr> - CreateAppGateway(google::cloud::ExperimentalTag, + CreateAppGateway(ExperimentalTag, google::longrunning::Operation const& operation); virtual future DeleteAppGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appgateways::v1::DeleteAppGatewayRequest const& request); virtual future> - DeleteAppGateway(google::cloud::ExperimentalTag, + DeleteAppGateway(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.cc b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.cc index c43c502f48c36..42c58e5adc7d0 100644 --- a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.cc +++ b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.cc @@ -77,7 +77,7 @@ AppGatewaysServiceTracingConnection::CreateAppGateway( auto span = internal::MakeSpan( "beyondcorp_appgateways_v1::AppGatewaysServiceConnection::" "CreateAppGateway"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateAppGateway(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -116,7 +116,7 @@ AppGatewaysServiceTracingConnection::DeleteAppGateway( auto span = internal::MakeSpan( "beyondcorp_appgateways_v1::AppGatewaysServiceConnection::" "DeleteAppGateway"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAppGateway(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/bigquery/analyticshub/v1/analytics_hub_connection.cc b/google/cloud/bigquery/analyticshub/v1/analytics_hub_connection.cc index 09feb7ba538fa..7ea8c3e31b84c 100644 --- a/google/cloud/bigquery/analyticshub/v1/analytics_hub_connection.cc +++ b/google/cloud/bigquery/analyticshub/v1/analytics_hub_connection.cc @@ -130,7 +130,7 @@ AnalyticsHubServiceConnection::SubscribeDataExchange( StatusOr AnalyticsHubServiceConnection::SubscribeDataExchange( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: SubscribeDataExchangeRequest const&) { return StatusOr( @@ -140,7 +140,7 @@ AnalyticsHubServiceConnection::SubscribeDataExchange( future> AnalyticsHubServiceConnection::SubscribeDataExchange( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -159,7 +159,7 @@ AnalyticsHubServiceConnection::RefreshSubscription( StatusOr AnalyticsHubServiceConnection::RefreshSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: RefreshSubscriptionRequest const&) { return StatusOr( @@ -169,7 +169,7 @@ AnalyticsHubServiceConnection::RefreshSubscription( future> AnalyticsHubServiceConnection::RefreshSubscription( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -215,7 +215,7 @@ AnalyticsHubServiceConnection::DeleteSubscription( StatusOr AnalyticsHubServiceConnection::DeleteSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: DeleteSubscriptionRequest const&) { return StatusOr( @@ -224,7 +224,7 @@ AnalyticsHubServiceConnection::DeleteSubscription( future> AnalyticsHubServiceConnection::DeleteSubscription( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/bigquery/analyticshub/v1/analytics_hub_connection.h b/google/cloud/bigquery/analyticshub/v1/analytics_hub_connection.h index 27d5def21e20c..93e9603cc7152 100644 --- a/google/cloud/bigquery/analyticshub/v1/analytics_hub_connection.h +++ b/google/cloud/bigquery/analyticshub/v1/analytics_hub_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/bigquery/analyticshub/v1/analytics_hub_connection_idempotency_policy.h" #include "google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -252,13 +252,13 @@ class AnalyticsHubServiceConnection { SubscribeDataExchangeRequest const& request); virtual StatusOr SubscribeDataExchange( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: SubscribeDataExchangeRequest const& request); virtual future> - SubscribeDataExchange(google::cloud::ExperimentalTag, + SubscribeDataExchange(ExperimentalTag, google::longrunning::Operation const& operation); virtual future RefreshSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: RefreshSubscriptionRequest const& request); virtual future> - RefreshSubscription(google::cloud::ExperimentalTag, + RefreshSubscription(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -302,13 +302,13 @@ class AnalyticsHubServiceConnection { DeleteSubscriptionRequest const& request); virtual StatusOr DeleteSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: DeleteSubscriptionRequest const& request); virtual future< StatusOr> - DeleteSubscription(google::cloud::ExperimentalTag, + DeleteSubscription(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetIamPolicy( diff --git a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.cc b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.cc index 72198961da6d9..fdb2a0e49fa28 100644 --- a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.cc +++ b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.cc @@ -188,7 +188,7 @@ AnalyticsHubServiceTracingConnection::SubscribeDataExchange( auto span = internal::MakeSpan( "bigquery_analyticshub_v1::AnalyticsHubServiceConnection::" "SubscribeDataExchange"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SubscribeDataExchange( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -229,7 +229,7 @@ AnalyticsHubServiceTracingConnection::RefreshSubscription( auto span = internal::MakeSpan( "bigquery_analyticshub_v1::AnalyticsHubServiceConnection::" "RefreshSubscription"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RefreshSubscription(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -319,7 +319,7 @@ AnalyticsHubServiceTracingConnection::DeleteSubscription( auto span = internal::MakeSpan( "bigquery_analyticshub_v1::AnalyticsHubServiceConnection::" "DeleteSubscription"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSubscription(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/bigquery/biglake/v1/metastore_connection.h b/google/cloud/bigquery/biglake/v1/metastore_connection.h index 298615fdf76bc..8a6283747c647 100644 --- a/google/cloud/bigquery/biglake/v1/metastore_connection.h +++ b/google/cloud/bigquery/biglake/v1/metastore_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/bigquery/biglake/v1/internal/metastore_retry_traits.h" #include "google/cloud/bigquery/biglake/v1/metastore_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/bigquery/connection/v1/connection_connection.h b/google/cloud/bigquery/connection/v1/connection_connection.h index 00d444ea409ad..c8021aeaf7d1c 100644 --- a/google/cloud/bigquery/connection/v1/connection_connection.h +++ b/google/cloud/bigquery/connection/v1/connection_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/bigquery/connection/v1/connection_connection_idempotency_policy.h" #include "google/cloud/bigquery/connection/v1/internal/connection_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/bigquery/datapolicies/v1/data_policy_connection.h b/google/cloud/bigquery/datapolicies/v1/data_policy_connection.h index 927c9af0a8a8d..2f7c3f7e07d9f 100644 --- a/google/cloud/bigquery/datapolicies/v1/data_policy_connection.h +++ b/google/cloud/bigquery/datapolicies/v1/data_policy_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/bigquery/datapolicies/v1/data_policy_connection_idempotency_policy.h" #include "google/cloud/bigquery/datapolicies/v1/internal/data_policy_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/bigquery/datatransfer/v1/data_transfer_connection.h b/google/cloud/bigquery/datatransfer/v1/data_transfer_connection.h index 6a9bb2f195a4f..6057d40459443 100644 --- a/google/cloud/bigquery/datatransfer/v1/data_transfer_connection.h +++ b/google/cloud/bigquery/datatransfer/v1/data_transfer_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/bigquery/datatransfer/v1/data_transfer_connection_idempotency_policy.h" #include "google/cloud/bigquery/datatransfer/v1/internal/data_transfer_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/bigquery/migration/v2/migration_connection.h b/google/cloud/bigquery/migration/v2/migration_connection.h index 3ef56f2522a51..32eac8e6f5744 100644 --- a/google/cloud/bigquery/migration/v2/migration_connection.h +++ b/google/cloud/bigquery/migration/v2/migration_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/bigquery/migration/v2/internal/migration_retry_traits.h" #include "google/cloud/bigquery/migration/v2/migration_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/bigquery/reservation/v1/reservation_connection.h b/google/cloud/bigquery/reservation/v1/reservation_connection.h index 762d2024a529c..981106d823a46 100644 --- a/google/cloud/bigquery/reservation/v1/reservation_connection.h +++ b/google/cloud/bigquery/reservation/v1/reservation_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/bigquery/reservation/v1/internal/reservation_retry_traits.h" #include "google/cloud/bigquery/reservation/v1/reservation_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/bigquery/storage/v1/bigquery_read_connection.h b/google/cloud/bigquery/storage/v1/bigquery_read_connection.h index 231d12b45ad1b..c359833edb15c 100644 --- a/google/cloud/bigquery/storage/v1/bigquery_read_connection.h +++ b/google/cloud/bigquery/storage/v1/bigquery_read_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/bigquery/storage/v1/bigquery_read_connection_idempotency_policy.h" #include "google/cloud/bigquery/storage/v1/internal/bigquery_read_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/bigquery/storage/v1/bigquery_write_connection.h b/google/cloud/bigquery/storage/v1/bigquery_write_connection.h index 6335cf876d35a..c7fe9b4fd2652 100644 --- a/google/cloud/bigquery/storage/v1/bigquery_write_connection.h +++ b/google/cloud/bigquery/storage/v1/bigquery_write_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/bigquery/storage/v1/bigquery_write_connection_idempotency_policy.h" #include "google/cloud/bigquery/storage/v1/internal/bigquery_write_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/async_read_write_stream_impl.h" diff --git a/google/cloud/bigtable/admin/bigtable_instance_admin_connection.cc b/google/cloud/bigtable/admin/bigtable_instance_admin_connection.cc index d8aaf500ca8d1..ad0e7b9f9962b 100644 --- a/google/cloud/bigtable/admin/bigtable_instance_admin_connection.cc +++ b/google/cloud/bigtable/admin/bigtable_instance_admin_connection.cc @@ -48,7 +48,7 @@ BigtableInstanceAdminConnection::CreateInstance( StatusOr BigtableInstanceAdminConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ BigtableInstanceAdminConnection::CreateInstance( future> BigtableInstanceAdminConnection::CreateInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -90,7 +90,7 @@ BigtableInstanceAdminConnection::PartialUpdateInstance( StatusOr BigtableInstanceAdminConnection::PartialUpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::PartialUpdateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -98,7 +98,7 @@ BigtableInstanceAdminConnection::PartialUpdateInstance( future> BigtableInstanceAdminConnection::PartialUpdateInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -119,7 +119,7 @@ BigtableInstanceAdminConnection::CreateCluster( StatusOr BigtableInstanceAdminConnection::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -127,7 +127,7 @@ BigtableInstanceAdminConnection::CreateCluster( future> BigtableInstanceAdminConnection::CreateCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -155,15 +155,14 @@ BigtableInstanceAdminConnection::UpdateCluster( StatusOr BigtableInstanceAdminConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, - google::bigtable::admin::v2::Cluster const&) { + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::Cluster const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> BigtableInstanceAdminConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -179,7 +178,7 @@ BigtableInstanceAdminConnection::PartialUpdateCluster( StatusOr BigtableInstanceAdminConnection::PartialUpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::PartialUpdateClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -187,7 +186,7 @@ BigtableInstanceAdminConnection::PartialUpdateCluster( future> BigtableInstanceAdminConnection::PartialUpdateCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -228,7 +227,7 @@ BigtableInstanceAdminConnection::UpdateAppProfile( StatusOr BigtableInstanceAdminConnection::UpdateAppProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateAppProfileRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -236,7 +235,7 @@ BigtableInstanceAdminConnection::UpdateAppProfile( future> BigtableInstanceAdminConnection::UpdateAppProfile( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/bigtable/admin/bigtable_instance_admin_connection.h b/google/cloud/bigtable/admin/bigtable_instance_admin_connection.h index 930f962375d6f..925adff763a83 100644 --- a/google/cloud/bigtable/admin/bigtable_instance_admin_connection.h +++ b/google/cloud/bigtable/admin/bigtable_instance_admin_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/bigtable/admin/bigtable_instance_admin_connection_idempotency_policy.h" #include "google/cloud/bigtable/admin/internal/bigtable_instance_admin_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -200,11 +200,11 @@ class BigtableInstanceAdminConnection { google::bigtable::admin::v2::CreateInstanceRequest const& request); virtual StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateInstanceRequest const& request); virtual future> - CreateInstance(google::cloud::ExperimentalTag, + CreateInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetInstance( @@ -222,11 +222,11 @@ class BigtableInstanceAdminConnection { google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request); virtual StatusOr PartialUpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request); virtual future> - PartialUpdateInstance(google::cloud::ExperimentalTag, + PartialUpdateInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status DeleteInstance( @@ -236,12 +236,11 @@ class BigtableInstanceAdminConnection { google::bigtable::admin::v2::CreateClusterRequest const& request); virtual StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateClusterRequest const& request); virtual future> CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetCluster( google::bigtable::admin::v2::GetClusterRequest const& request); @@ -253,23 +252,22 @@ class BigtableInstanceAdminConnection { google::bigtable::admin::v2::Cluster const& request); virtual StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::Cluster const& request); virtual future> UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> PartialUpdateCluster( google::bigtable::admin::v2::PartialUpdateClusterRequest const& request); virtual StatusOr PartialUpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::PartialUpdateClusterRequest const& request); virtual future> - PartialUpdateCluster(google::cloud::ExperimentalTag, + PartialUpdateCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status DeleteCluster( @@ -289,11 +287,11 @@ class BigtableInstanceAdminConnection { google::bigtable::admin::v2::UpdateAppProfileRequest const& request); virtual StatusOr UpdateAppProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateAppProfileRequest const& request); virtual future> - UpdateAppProfile(google::cloud::ExperimentalTag, + UpdateAppProfile(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status DeleteAppProfile( diff --git a/google/cloud/bigtable/admin/bigtable_table_admin_connection.cc b/google/cloud/bigtable/admin/bigtable_table_admin_connection.cc index 0a7c4ee289302..55a6d826f526c 100644 --- a/google/cloud/bigtable/admin/bigtable_table_admin_connection.cc +++ b/google/cloud/bigtable/admin/bigtable_table_admin_connection.cc @@ -68,7 +68,7 @@ BigtableTableAdminConnection::UpdateTable( StatusOr BigtableTableAdminConnection::UpdateTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateTableRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -76,7 +76,7 @@ BigtableTableAdminConnection::UpdateTable( future> BigtableTableAdminConnection::UpdateTable( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -97,7 +97,7 @@ BigtableTableAdminConnection::UndeleteTable( StatusOr BigtableTableAdminConnection::UndeleteTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UndeleteTableRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -105,7 +105,7 @@ BigtableTableAdminConnection::UndeleteTable( future> BigtableTableAdminConnection::UndeleteTable( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -121,7 +121,7 @@ BigtableTableAdminConnection::CreateAuthorizedView( StatusOr BigtableTableAdminConnection::CreateAuthorizedView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateAuthorizedViewRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -129,7 +129,7 @@ BigtableTableAdminConnection::CreateAuthorizedView( future> BigtableTableAdminConnection::CreateAuthorizedView( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -159,7 +159,7 @@ BigtableTableAdminConnection::UpdateAuthorizedView( StatusOr BigtableTableAdminConnection::UpdateAuthorizedView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateAuthorizedViewRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -167,7 +167,7 @@ BigtableTableAdminConnection::UpdateAuthorizedView( future> BigtableTableAdminConnection::UpdateAuthorizedView( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -211,7 +211,7 @@ BigtableTableAdminConnection::CreateBackup( StatusOr BigtableTableAdminConnection::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -219,7 +219,7 @@ BigtableTableAdminConnection::CreateBackup( future> BigtableTableAdminConnection::CreateBackup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -260,7 +260,7 @@ BigtableTableAdminConnection::RestoreTable( StatusOr BigtableTableAdminConnection::RestoreTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::RestoreTableRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -268,7 +268,7 @@ BigtableTableAdminConnection::RestoreTable( future> BigtableTableAdminConnection::RestoreTable( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -284,7 +284,7 @@ BigtableTableAdminConnection::CopyBackup( StatusOr BigtableTableAdminConnection::CopyBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CopyBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -292,7 +292,7 @@ BigtableTableAdminConnection::CopyBackup( future> BigtableTableAdminConnection::CopyBackup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/bigtable/admin/bigtable_table_admin_connection.h b/google/cloud/bigtable/admin/bigtable_table_admin_connection.h index 4c76fed4b2090..9a237b469edb1 100644 --- a/google/cloud/bigtable/admin/bigtable_table_admin_connection.h +++ b/google/cloud/bigtable/admin/bigtable_table_admin_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/bigtable/admin/bigtable_table_admin_connection_idempotency_policy.h" #include "google/cloud/bigtable/admin/internal/bigtable_table_admin_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -205,12 +205,11 @@ class BigtableTableAdminConnection { google::bigtable::admin::v2::UpdateTableRequest const& request); virtual StatusOr UpdateTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateTableRequest const& request); virtual future> UpdateTable( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual Status DeleteTable( google::bigtable::admin::v2::DeleteTableRequest const& request); @@ -219,23 +218,22 @@ class BigtableTableAdminConnection { google::bigtable::admin::v2::UndeleteTableRequest const& request); virtual StatusOr UndeleteTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UndeleteTableRequest const& request); virtual future> UndeleteTable( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CreateAuthorizedView( google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request); virtual StatusOr CreateAuthorizedView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request); virtual future> - CreateAuthorizedView(google::cloud::ExperimentalTag, + CreateAuthorizedView(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -251,11 +249,11 @@ class BigtableTableAdminConnection { google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request); virtual StatusOr UpdateAuthorizedView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request); virtual future> - UpdateAuthorizedView(google::cloud::ExperimentalTag, + UpdateAuthorizedView(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status DeleteAuthorizedView( @@ -281,12 +279,11 @@ class BigtableTableAdminConnection { google::bigtable::admin::v2::CreateBackupRequest const& request); virtual StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateBackupRequest const& request); virtual future> CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetBackup( google::bigtable::admin::v2::GetBackupRequest const& request); @@ -304,23 +301,21 @@ class BigtableTableAdminConnection { google::bigtable::admin::v2::RestoreTableRequest const& request); virtual StatusOr RestoreTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::RestoreTableRequest const& request); virtual future> RestoreTable( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CopyBackup( google::bigtable::admin::v2::CopyBackupRequest const& request); virtual StatusOr CopyBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CopyBackupRequest const& request); virtual future> CopyBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request); diff --git a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.cc b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.cc index dafb753ba261e..aba9627852e2e 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.cc +++ b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.cc @@ -48,7 +48,7 @@ BigtableInstanceAdminTracingConnection::CreateInstance( google::bigtable::admin::v2::CreateInstanceRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::CreateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -109,7 +109,7 @@ BigtableInstanceAdminTracingConnection::PartialUpdateInstance( google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::PartialUpdateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PartialUpdateInstance( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -150,7 +150,7 @@ BigtableInstanceAdminTracingConnection::CreateCluster( google::bigtable::admin::v2::CreateClusterRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::CreateCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -201,7 +201,7 @@ BigtableInstanceAdminTracingConnection::UpdateCluster( google::bigtable::admin::v2::Cluster const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::UpdateCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -235,7 +235,7 @@ BigtableInstanceAdminTracingConnection::PartialUpdateCluster( google::bigtable::admin::v2::PartialUpdateClusterRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::PartialUpdateCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PartialUpdateCluster( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -305,7 +305,7 @@ BigtableInstanceAdminTracingConnection::UpdateAppProfile( google::bigtable::admin::v2::UpdateAppProfileRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::UpdateAppProfile"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateAppProfile(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.cc b/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.cc index 5f6a271076c89..43aa9119b8159 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.cc +++ b/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.cc @@ -77,7 +77,7 @@ BigtableTableAdminTracingConnection::UpdateTable( google::bigtable::admin::v2::UpdateTableRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::UpdateTable"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateTable(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -118,7 +118,7 @@ BigtableTableAdminTracingConnection::UndeleteTable( google::bigtable::admin::v2::UndeleteTableRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::UndeleteTable"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UndeleteTable(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -152,7 +152,7 @@ BigtableTableAdminTracingConnection::CreateAuthorizedView( google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::CreateAuthorizedView"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateAuthorizedView( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -207,7 +207,7 @@ BigtableTableAdminTracingConnection::UpdateAuthorizedView( google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::UpdateAuthorizedView"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateAuthorizedView( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -284,7 +284,7 @@ BigtableTableAdminTracingConnection::CreateBackup( google::bigtable::admin::v2::CreateBackupRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::CreateBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -354,7 +354,7 @@ BigtableTableAdminTracingConnection::RestoreTable( google::bigtable::admin::v2::RestoreTableRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::RestoreTable"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RestoreTable(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -387,7 +387,7 @@ BigtableTableAdminTracingConnection::CopyBackup( google::bigtable::admin::v2::CopyBackupRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::CopyBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CopyBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/billing/budgets/v1/budget_connection.h b/google/cloud/billing/budgets/v1/budget_connection.h index e0f7ef417033d..7990b0a560b9b 100644 --- a/google/cloud/billing/budgets/v1/budget_connection.h +++ b/google/cloud/billing/budgets/v1/budget_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/billing/budgets/v1/budget_connection_idempotency_policy.h" #include "google/cloud/billing/budgets/v1/internal/budget_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/billing/v1/cloud_billing_connection.h b/google/cloud/billing/v1/cloud_billing_connection.h index ce98064bd78f5..45221b9fcf345 100644 --- a/google/cloud/billing/v1/cloud_billing_connection.h +++ b/google/cloud/billing/v1/cloud_billing_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/billing/v1/cloud_billing_connection_idempotency_policy.h" #include "google/cloud/billing/v1/internal/cloud_billing_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/billing/v1/cloud_catalog_connection.h b/google/cloud/billing/v1/cloud_catalog_connection.h index 1b4253296012e..a93a565fa4bf8 100644 --- a/google/cloud/billing/v1/cloud_catalog_connection.h +++ b/google/cloud/billing/v1/cloud_catalog_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/billing/v1/cloud_catalog_connection_idempotency_policy.h" #include "google/cloud/billing/v1/internal/cloud_catalog_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/binaryauthorization/v1/binauthz_management_service_v1_connection.h b/google/cloud/binaryauthorization/v1/binauthz_management_service_v1_connection.h index d65ab305696bb..921971e3b39c4 100644 --- a/google/cloud/binaryauthorization/v1/binauthz_management_service_v1_connection.h +++ b/google/cloud/binaryauthorization/v1/binauthz_management_service_v1_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/binaryauthorization/v1/binauthz_management_service_v1_connection_idempotency_policy.h" #include "google/cloud/binaryauthorization/v1/internal/binauthz_management_service_v1_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/binaryauthorization/v1/system_policy_v1_connection.h b/google/cloud/binaryauthorization/v1/system_policy_v1_connection.h index 9edf29f51c564..a5eabbb614a5e 100644 --- a/google/cloud/binaryauthorization/v1/system_policy_v1_connection.h +++ b/google/cloud/binaryauthorization/v1/system_policy_v1_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/binaryauthorization/v1/internal/system_policy_v1_retry_traits.h" #include "google/cloud/binaryauthorization/v1/system_policy_v1_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/binaryauthorization/v1/validation_helper_v1_connection.h b/google/cloud/binaryauthorization/v1/validation_helper_v1_connection.h index 99c2518f7a646..814db9ee51061 100644 --- a/google/cloud/binaryauthorization/v1/validation_helper_v1_connection.h +++ b/google/cloud/binaryauthorization/v1/validation_helper_v1_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/binaryauthorization/v1/internal/validation_helper_v1_retry_traits.h" #include "google/cloud/binaryauthorization/v1/validation_helper_v1_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/certificatemanager/v1/certificate_manager_connection.cc b/google/cloud/certificatemanager/v1/certificate_manager_connection.cc index 30b4d49bfb3bc..be67331bdca1c 100644 --- a/google/cloud/certificatemanager/v1/certificate_manager_connection.cc +++ b/google/cloud/certificatemanager/v1/certificate_manager_connection.cc @@ -62,7 +62,7 @@ CertificateManagerConnection::CreateCertificate( StatusOr CertificateManagerConnection::CreateCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateCertificateRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ CertificateManagerConnection::CreateCertificate( future> CertificateManagerConnection::CreateCertificate( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ CertificateManagerConnection::UpdateCertificate( StatusOr CertificateManagerConnection::UpdateCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateCertificateRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ CertificateManagerConnection::UpdateCertificate( future> CertificateManagerConnection::UpdateCertificate( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ CertificateManagerConnection::DeleteCertificate( StatusOr CertificateManagerConnection::DeleteCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteCertificateRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ CertificateManagerConnection::DeleteCertificate( future> CertificateManagerConnection::DeleteCertificate( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -148,7 +148,7 @@ CertificateManagerConnection::CreateCertificateMap( StatusOr CertificateManagerConnection::CreateCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateCertificateMapRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -156,7 +156,7 @@ CertificateManagerConnection::CreateCertificateMap( future> CertificateManagerConnection::CreateCertificateMap( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -172,7 +172,7 @@ CertificateManagerConnection::UpdateCertificateMap( StatusOr CertificateManagerConnection::UpdateCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -180,7 +180,7 @@ CertificateManagerConnection::UpdateCertificateMap( future> CertificateManagerConnection::UpdateCertificateMap( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -196,7 +196,7 @@ CertificateManagerConnection::DeleteCertificateMap( StatusOr CertificateManagerConnection::DeleteCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -204,7 +204,7 @@ CertificateManagerConnection::DeleteCertificateMap( future> CertificateManagerConnection::DeleteCertificateMap( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -236,7 +236,7 @@ CertificateManagerConnection::CreateCertificateMapEntry( StatusOr CertificateManagerConnection::CreateCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateCertificateMapEntryRequest const&) { return StatusOr( @@ -245,7 +245,7 @@ CertificateManagerConnection::CreateCertificateMapEntry( future> CertificateManagerConnection::CreateCertificateMapEntry( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -262,7 +262,7 @@ CertificateManagerConnection::UpdateCertificateMapEntry( StatusOr CertificateManagerConnection::UpdateCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: UpdateCertificateMapEntryRequest const&) { return StatusOr( @@ -271,7 +271,7 @@ CertificateManagerConnection::UpdateCertificateMapEntry( future> CertificateManagerConnection::UpdateCertificateMapEntry( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -288,7 +288,7 @@ CertificateManagerConnection::DeleteCertificateMapEntry( StatusOr CertificateManagerConnection::DeleteCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteCertificateMapEntryRequest const&) { return StatusOr( @@ -297,7 +297,7 @@ CertificateManagerConnection::DeleteCertificateMapEntry( future> CertificateManagerConnection::DeleteCertificateMapEntry( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -328,7 +328,7 @@ CertificateManagerConnection::CreateDnsAuthorization( StatusOr CertificateManagerConnection::CreateDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateDnsAuthorizationRequest const&) { return StatusOr( @@ -337,7 +337,7 @@ CertificateManagerConnection::CreateDnsAuthorization( future> CertificateManagerConnection::CreateDnsAuthorization( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -354,7 +354,7 @@ CertificateManagerConnection::UpdateDnsAuthorization( StatusOr CertificateManagerConnection::UpdateDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: UpdateDnsAuthorizationRequest const&) { return StatusOr( @@ -363,7 +363,7 @@ CertificateManagerConnection::UpdateDnsAuthorization( future> CertificateManagerConnection::UpdateDnsAuthorization( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -380,7 +380,7 @@ CertificateManagerConnection::DeleteDnsAuthorization( StatusOr CertificateManagerConnection::DeleteDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteDnsAuthorizationRequest const&) { return StatusOr( @@ -389,7 +389,7 @@ CertificateManagerConnection::DeleteDnsAuthorization( future> CertificateManagerConnection::DeleteDnsAuthorization( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -422,7 +422,7 @@ CertificateManagerConnection::CreateCertificateIssuanceConfig( StatusOr CertificateManagerConnection::CreateCertificateIssuanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateCertificateIssuanceConfigRequest const&) { return StatusOr( @@ -432,7 +432,7 @@ CertificateManagerConnection::CreateCertificateIssuanceConfig( future< StatusOr> CertificateManagerConnection::CreateCertificateIssuanceConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -449,7 +449,7 @@ CertificateManagerConnection::DeleteCertificateIssuanceConfig( StatusOr CertificateManagerConnection::DeleteCertificateIssuanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteCertificateIssuanceConfigRequest const&) { return StatusOr( @@ -458,7 +458,7 @@ CertificateManagerConnection::DeleteCertificateIssuanceConfig( future> CertificateManagerConnection::DeleteCertificateIssuanceConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -488,7 +488,7 @@ CertificateManagerConnection::CreateTrustConfig( StatusOr CertificateManagerConnection::CreateTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateTrustConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -496,7 +496,7 @@ CertificateManagerConnection::CreateTrustConfig( future> CertificateManagerConnection::CreateTrustConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -512,7 +512,7 @@ CertificateManagerConnection::UpdateTrustConfig( StatusOr CertificateManagerConnection::UpdateTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -520,7 +520,7 @@ CertificateManagerConnection::UpdateTrustConfig( future> CertificateManagerConnection::UpdateTrustConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -536,7 +536,7 @@ CertificateManagerConnection::DeleteTrustConfig( StatusOr CertificateManagerConnection::DeleteTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -544,7 +544,7 @@ CertificateManagerConnection::DeleteTrustConfig( future> CertificateManagerConnection::DeleteTrustConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/certificatemanager/v1/certificate_manager_connection.h b/google/cloud/certificatemanager/v1/certificate_manager_connection.h index 6a011b6bfcfd5..dce34ad5d200d 100644 --- a/google/cloud/certificatemanager/v1/certificate_manager_connection.h +++ b/google/cloud/certificatemanager/v1/certificate_manager_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/certificatemanager/v1/certificate_manager_connection_idempotency_policy.h" #include "google/cloud/certificatemanager/v1/internal/certificate_manager_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -206,12 +206,12 @@ class CertificateManagerConnection { request); virtual StatusOr CreateCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateCertificateRequest const& request); virtual future> - CreateCertificate(google::cloud::ExperimentalTag, + CreateCertificate(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -220,12 +220,12 @@ class CertificateManagerConnection { request); virtual StatusOr UpdateCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateCertificateRequest const& request); virtual future> - UpdateCertificate(google::cloud::ExperimentalTag, + UpdateCertificate(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -235,13 +235,13 @@ class CertificateManagerConnection { request); virtual StatusOr DeleteCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteCertificateRequest const& request); virtual future< StatusOr> - DeleteCertificate(google::cloud::ExperimentalTag, + DeleteCertificate(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -261,13 +261,13 @@ class CertificateManagerConnection { request); virtual StatusOr CreateCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& request); virtual future< StatusOr> - CreateCertificateMap(google::cloud::ExperimentalTag, + CreateCertificateMap(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -277,13 +277,13 @@ class CertificateManagerConnection { request); virtual StatusOr UpdateCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& request); virtual future< StatusOr> - UpdateCertificateMap(google::cloud::ExperimentalTag, + UpdateCertificateMap(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -293,13 +293,13 @@ class CertificateManagerConnection { request); virtual StatusOr DeleteCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& request); virtual future< StatusOr> - DeleteCertificateMap(google::cloud::ExperimentalTag, + DeleteCertificateMap(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange< @@ -319,13 +319,13 @@ class CertificateManagerConnection { CreateCertificateMapEntryRequest const& request); virtual StatusOr CreateCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateCertificateMapEntryRequest const& request); virtual future< StatusOr> - CreateCertificateMapEntry(google::cloud::ExperimentalTag, + CreateCertificateMapEntry(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -335,13 +335,13 @@ class CertificateManagerConnection { UpdateCertificateMapEntryRequest const& request); virtual StatusOr UpdateCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: UpdateCertificateMapEntryRequest const& request); virtual future< StatusOr> - UpdateCertificateMapEntry(google::cloud::ExperimentalTag, + UpdateCertificateMapEntry(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -351,13 +351,13 @@ class CertificateManagerConnection { DeleteCertificateMapEntryRequest const& request); virtual StatusOr DeleteCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteCertificateMapEntryRequest const& request); virtual future< StatusOr> - DeleteCertificateMapEntry(google::cloud::ExperimentalTag, + DeleteCertificateMapEntry(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -376,13 +376,13 @@ class CertificateManagerConnection { CreateDnsAuthorizationRequest const& request); virtual StatusOr CreateDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateDnsAuthorizationRequest const& request); virtual future< StatusOr> - CreateDnsAuthorization(google::cloud::ExperimentalTag, + CreateDnsAuthorization(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -391,13 +391,13 @@ class CertificateManagerConnection { UpdateDnsAuthorizationRequest const& request); virtual StatusOr UpdateDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: UpdateDnsAuthorizationRequest const& request); virtual future< StatusOr> - UpdateDnsAuthorization(google::cloud::ExperimentalTag, + UpdateDnsAuthorization(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -406,13 +406,13 @@ class CertificateManagerConnection { DeleteDnsAuthorizationRequest const& request); virtual StatusOr DeleteDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteDnsAuthorizationRequest const& request); virtual future< StatusOr> - DeleteDnsAuthorization(google::cloud::ExperimentalTag, + DeleteDnsAuthorization(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange< @@ -435,15 +435,14 @@ class CertificateManagerConnection { virtual StatusOr CreateCertificateIssuanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateCertificateIssuanceConfigRequest const& request); virtual future> CreateCertificateIssuanceConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> @@ -453,15 +452,14 @@ class CertificateManagerConnection { virtual StatusOr DeleteCertificateIssuanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteCertificateIssuanceConfigRequest const& request); virtual future< StatusOr> DeleteCertificateIssuanceConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListTrustConfigs( @@ -478,12 +476,12 @@ class CertificateManagerConnection { request); virtual StatusOr CreateTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& request); virtual future> - CreateTrustConfig(google::cloud::ExperimentalTag, + CreateTrustConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -492,12 +490,12 @@ class CertificateManagerConnection { request); virtual StatusOr UpdateTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& request); virtual future> - UpdateTrustConfig(google::cloud::ExperimentalTag, + UpdateTrustConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -507,13 +505,13 @@ class CertificateManagerConnection { request); virtual StatusOr DeleteTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& request); virtual future< StatusOr> - DeleteTrustConfig(google::cloud::ExperimentalTag, + DeleteTrustConfig(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.cc b/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.cc index ce5ee152176a9..8c2a008bce8be 100644 --- a/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.cc +++ b/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.cc @@ -72,7 +72,7 @@ CertificateManagerTracingConnection::CreateCertificate( request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::CreateCertificate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateCertificate(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -107,7 +107,7 @@ CertificateManagerTracingConnection::UpdateCertificate( request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::UpdateCertificate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateCertificate(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -142,7 +142,7 @@ CertificateManagerTracingConnection::DeleteCertificate( request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::DeleteCertificate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteCertificate(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -203,7 +203,7 @@ CertificateManagerTracingConnection::CreateCertificateMap( auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "CreateCertificateMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateCertificateMap( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -242,7 +242,7 @@ CertificateManagerTracingConnection::UpdateCertificateMap( auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "UpdateCertificateMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateCertificateMap( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -281,7 +281,7 @@ CertificateManagerTracingConnection::DeleteCertificateMap( auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "DeleteCertificateMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteCertificateMap( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -345,7 +345,7 @@ CertificateManagerTracingConnection::CreateCertificateMapEntry( auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "CreateCertificateMapEntry"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateCertificateMapEntry( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -384,7 +384,7 @@ CertificateManagerTracingConnection::UpdateCertificateMapEntry( auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "UpdateCertificateMapEntry"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateCertificateMapEntry( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -423,7 +423,7 @@ CertificateManagerTracingConnection::DeleteCertificateMapEntry( auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "DeleteCertificateMapEntry"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteCertificateMapEntry( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -487,7 +487,7 @@ CertificateManagerTracingConnection::CreateDnsAuthorization( auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "CreateDnsAuthorization"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateDnsAuthorization( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -526,7 +526,7 @@ CertificateManagerTracingConnection::UpdateDnsAuthorization( auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "UpdateDnsAuthorization"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateDnsAuthorization( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -565,7 +565,7 @@ CertificateManagerTracingConnection::DeleteDnsAuthorization( auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "DeleteDnsAuthorization"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteDnsAuthorization( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -631,7 +631,7 @@ CertificateManagerTracingConnection::CreateCertificateIssuanceConfig( auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "CreateCertificateIssuanceConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateCertificateIssuanceConfig( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -671,7 +671,7 @@ CertificateManagerTracingConnection::DeleteCertificateIssuanceConfig( auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "DeleteCertificateIssuanceConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteCertificateIssuanceConfig( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -729,7 +729,7 @@ CertificateManagerTracingConnection::CreateTrustConfig( request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::CreateTrustConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateTrustConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -764,7 +764,7 @@ CertificateManagerTracingConnection::UpdateTrustConfig( request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::UpdateTrustConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateTrustConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -799,7 +799,7 @@ CertificateManagerTracingConnection::DeleteTrustConfig( request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::DeleteTrustConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteTrustConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/channel/v1/cloud_channel_connection.cc b/google/cloud/channel/v1/cloud_channel_connection.cc index 097aaef9adf0f..4eb4bb3ce9c11 100644 --- a/google/cloud/channel/v1/cloud_channel_connection.cc +++ b/google/cloud/channel/v1/cloud_channel_connection.cc @@ -91,7 +91,7 @@ CloudChannelServiceConnection::ProvisionCloudIdentity( StatusOr CloudChannelServiceConnection::ProvisionCloudIdentity( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ProvisionCloudIdentityRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -99,7 +99,7 @@ CloudChannelServiceConnection::ProvisionCloudIdentity( future> CloudChannelServiceConnection::ProvisionCloudIdentity( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -145,7 +145,7 @@ CloudChannelServiceConnection::CreateEntitlement( StatusOr CloudChannelServiceConnection::CreateEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::CreateEntitlementRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -153,7 +153,7 @@ CloudChannelServiceConnection::CreateEntitlement( future> CloudChannelServiceConnection::CreateEntitlement( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -169,7 +169,7 @@ CloudChannelServiceConnection::ChangeParameters( StatusOr CloudChannelServiceConnection::ChangeParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeParametersRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -177,7 +177,7 @@ CloudChannelServiceConnection::ChangeParameters( future> CloudChannelServiceConnection::ChangeParameters( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -193,7 +193,7 @@ CloudChannelServiceConnection::ChangeRenewalSettings( StatusOr CloudChannelServiceConnection::ChangeRenewalSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeRenewalSettingsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -201,7 +201,7 @@ CloudChannelServiceConnection::ChangeRenewalSettings( future> CloudChannelServiceConnection::ChangeRenewalSettings( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -217,7 +217,7 @@ CloudChannelServiceConnection::ChangeOffer( StatusOr CloudChannelServiceConnection::ChangeOffer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeOfferRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -225,7 +225,7 @@ CloudChannelServiceConnection::ChangeOffer( future> CloudChannelServiceConnection::ChangeOffer( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -241,7 +241,7 @@ CloudChannelServiceConnection::StartPaidService( StatusOr CloudChannelServiceConnection::StartPaidService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::StartPaidServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -249,7 +249,7 @@ CloudChannelServiceConnection::StartPaidService( future> CloudChannelServiceConnection::StartPaidService( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -265,7 +265,7 @@ CloudChannelServiceConnection::SuspendEntitlement( StatusOr CloudChannelServiceConnection::SuspendEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::SuspendEntitlementRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -273,7 +273,7 @@ CloudChannelServiceConnection::SuspendEntitlement( future> CloudChannelServiceConnection::SuspendEntitlement( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -289,7 +289,7 @@ CloudChannelServiceConnection::CancelEntitlement( StatusOr CloudChannelServiceConnection::CancelEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::CancelEntitlementRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -297,7 +297,7 @@ CloudChannelServiceConnection::CancelEntitlement( future> CloudChannelServiceConnection::CancelEntitlement( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -313,7 +313,7 @@ CloudChannelServiceConnection::ActivateEntitlement( StatusOr CloudChannelServiceConnection::ActivateEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ActivateEntitlementRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -321,7 +321,7 @@ CloudChannelServiceConnection::ActivateEntitlement( future> CloudChannelServiceConnection::ActivateEntitlement( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -337,7 +337,7 @@ CloudChannelServiceConnection::TransferEntitlements( StatusOr CloudChannelServiceConnection::TransferEntitlements( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::TransferEntitlementsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -345,7 +345,7 @@ CloudChannelServiceConnection::TransferEntitlements( future> CloudChannelServiceConnection::TransferEntitlements( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -361,7 +361,7 @@ CloudChannelServiceConnection::TransferEntitlementsToGoogle( StatusOr CloudChannelServiceConnection::TransferEntitlementsToGoogle( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -369,7 +369,7 @@ CloudChannelServiceConnection::TransferEntitlementsToGoogle( future> CloudChannelServiceConnection::TransferEntitlementsToGoogle( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/channel/v1/cloud_channel_connection.h b/google/cloud/channel/v1/cloud_channel_connection.h index d01296a9d4233..c35572701ff5e 100644 --- a/google/cloud/channel/v1/cloud_channel_connection.h +++ b/google/cloud/channel/v1/cloud_channel_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/channel/v1/cloud_channel_connection_idempotency_policy.h" #include "google/cloud/channel/v1/internal/cloud_channel_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -220,11 +220,11 @@ class CloudChannelServiceConnection { google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request); virtual StatusOr ProvisionCloudIdentity( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request); virtual future> - ProvisionCloudIdentity(google::cloud::ExperimentalTag, + ProvisionCloudIdentity(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListEntitlements( @@ -246,11 +246,11 @@ class CloudChannelServiceConnection { google::cloud::channel::v1::CreateEntitlementRequest const& request); virtual StatusOr CreateEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::CreateEntitlementRequest const& request); virtual future> - CreateEntitlement(google::cloud::ExperimentalTag, + CreateEntitlement(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -258,11 +258,11 @@ class CloudChannelServiceConnection { google::cloud::channel::v1::ChangeParametersRequest const& request); virtual StatusOr ChangeParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeParametersRequest const& request); virtual future> - ChangeParameters(google::cloud::ExperimentalTag, + ChangeParameters(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -270,34 +270,33 @@ class CloudChannelServiceConnection { google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request); virtual StatusOr ChangeRenewalSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request); virtual future> - ChangeRenewalSettings(google::cloud::ExperimentalTag, + ChangeRenewalSettings(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ChangeOffer( google::cloud::channel::v1::ChangeOfferRequest const& request); virtual StatusOr ChangeOffer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeOfferRequest const& request); virtual future> ChangeOffer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> StartPaidService( google::cloud::channel::v1::StartPaidServiceRequest const& request); virtual StatusOr StartPaidService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::StartPaidServiceRequest const& request); virtual future> - StartPaidService(google::cloud::ExperimentalTag, + StartPaidService(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -305,11 +304,11 @@ class CloudChannelServiceConnection { google::cloud::channel::v1::SuspendEntitlementRequest const& request); virtual StatusOr SuspendEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::SuspendEntitlementRequest const& request); virtual future> - SuspendEntitlement(google::cloud::ExperimentalTag, + SuspendEntitlement(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -317,11 +316,11 @@ class CloudChannelServiceConnection { google::cloud::channel::v1::CancelEntitlementRequest const& request); virtual StatusOr CancelEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::CancelEntitlementRequest const& request); virtual future> - CancelEntitlement(google::cloud::ExperimentalTag, + CancelEntitlement(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -329,11 +328,11 @@ class CloudChannelServiceConnection { google::cloud::channel::v1::ActivateEntitlementRequest const& request); virtual StatusOr ActivateEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ActivateEntitlementRequest const& request); virtual future> - ActivateEntitlement(google::cloud::ExperimentalTag, + ActivateEntitlement(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -342,12 +341,12 @@ class CloudChannelServiceConnection { google::cloud::channel::v1::TransferEntitlementsRequest const& request); virtual StatusOr TransferEntitlements( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::TransferEntitlementsRequest const& request); virtual future< StatusOr> - TransferEntitlements(google::cloud::ExperimentalTag, + TransferEntitlements(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -356,12 +355,12 @@ class CloudChannelServiceConnection { request); virtual StatusOr TransferEntitlementsToGoogle( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& request); virtual future> - TransferEntitlementsToGoogle(google::cloud::ExperimentalTag, + TransferEntitlementsToGoogle(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange diff --git a/google/cloud/channel/v1/cloud_channel_reports_connection.cc b/google/cloud/channel/v1/cloud_channel_reports_connection.cc index d00dd6cdc2f66..88a70f9587773 100644 --- a/google/cloud/channel/v1/cloud_channel_reports_connection.cc +++ b/google/cloud/channel/v1/cloud_channel_reports_connection.cc @@ -49,7 +49,7 @@ CloudChannelReportsServiceConnection::RunReportJob( StatusOr CloudChannelReportsServiceConnection::RunReportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::RunReportJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -57,7 +57,7 @@ CloudChannelReportsServiceConnection::RunReportJob( future> CloudChannelReportsServiceConnection::RunReportJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/channel/v1/cloud_channel_reports_connection.h b/google/cloud/channel/v1/cloud_channel_reports_connection.h index 411af2736a065..903fdc478c5be 100644 --- a/google/cloud/channel/v1/cloud_channel_reports_connection.h +++ b/google/cloud/channel/v1/cloud_channel_reports_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/channel/v1/cloud_channel_reports_connection_idempotency_policy.h" #include "google/cloud/channel/v1/internal/cloud_channel_reports_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -209,11 +209,11 @@ class CloudChannelReportsServiceConnection { RunReportJob(google::cloud::channel::v1::RunReportJobRequest const& request); virtual StatusOr RunReportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::RunReportJobRequest const& request); virtual future> - RunReportJob(google::cloud::ExperimentalTag, + RunReportJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange FetchReportResults( diff --git a/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.cc b/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.cc index c778ca4800dd6..835e408f3b763 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.cc +++ b/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.cc @@ -49,7 +49,7 @@ CloudChannelReportsServiceTracingConnection::RunReportJob( google::cloud::channel::v1::RunReportJobRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelReportsServiceConnection::RunReportJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RunReportJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.cc b/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.cc index a40fcde026d8d..96e9ce3302fd5 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.cc +++ b/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.cc @@ -116,7 +116,7 @@ CloudChannelServiceTracingConnection::ProvisionCloudIdentity( google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::ProvisionCloudIdentity"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ProvisionCloudIdentity( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -193,7 +193,7 @@ CloudChannelServiceTracingConnection::CreateEntitlement( google::cloud::channel::v1::CreateEntitlementRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::CreateEntitlement"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateEntitlement(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -226,7 +226,7 @@ CloudChannelServiceTracingConnection::ChangeParameters( google::cloud::channel::v1::ChangeParametersRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::ChangeParameters"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ChangeParameters(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -260,7 +260,7 @@ CloudChannelServiceTracingConnection::ChangeRenewalSettings( google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::ChangeRenewalSettings"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ChangeRenewalSettings( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -293,7 +293,7 @@ CloudChannelServiceTracingConnection::ChangeOffer( google::cloud::channel::v1::ChangeOfferRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::ChangeOffer"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ChangeOffer(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -326,7 +326,7 @@ CloudChannelServiceTracingConnection::StartPaidService( google::cloud::channel::v1::StartPaidServiceRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::StartPaidService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StartPaidService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -360,7 +360,7 @@ CloudChannelServiceTracingConnection::SuspendEntitlement( google::cloud::channel::v1::SuspendEntitlementRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::SuspendEntitlement"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SuspendEntitlement(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -393,7 +393,7 @@ CloudChannelServiceTracingConnection::CancelEntitlement( google::cloud::channel::v1::CancelEntitlementRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::CancelEntitlement"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CancelEntitlement(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -427,7 +427,7 @@ CloudChannelServiceTracingConnection::ActivateEntitlement( google::cloud::channel::v1::ActivateEntitlementRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::ActivateEntitlement"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ActivateEntitlement(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -461,7 +461,7 @@ CloudChannelServiceTracingConnection::TransferEntitlements( google::cloud::channel::v1::TransferEntitlementsRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::TransferEntitlements"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->TransferEntitlements( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -499,7 +499,7 @@ CloudChannelServiceTracingConnection::TransferEntitlementsToGoogle( auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::" "TransferEntitlementsToGoogle"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->TransferEntitlementsToGoogle( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/cloudbuild/v1/cloud_build_connection.cc b/google/cloud/cloudbuild/v1/cloud_build_connection.cc index 41492a5708580..fe6196c32afec 100644 --- a/google/cloud/cloudbuild/v1/cloud_build_connection.cc +++ b/google/cloud/cloudbuild/v1/cloud_build_connection.cc @@ -47,14 +47,14 @@ CloudBuildConnection::CreateBuild( } StatusOr CloudBuildConnection::CreateBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::CreateBuildRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudBuildConnection::CreateBuild(google::cloud::ExperimentalTag, +CloudBuildConnection::CreateBuild(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -90,14 +90,14 @@ CloudBuildConnection::RetryBuild( } StatusOr CloudBuildConnection::RetryBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::RetryBuildRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudBuildConnection::RetryBuild(google::cloud::ExperimentalTag, +CloudBuildConnection::RetryBuild(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -113,14 +113,14 @@ CloudBuildConnection::ApproveBuild( } StatusOr CloudBuildConnection::ApproveBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::ApproveBuildRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudBuildConnection::ApproveBuild(google::cloud::ExperimentalTag, +CloudBuildConnection::ApproveBuild(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -167,14 +167,14 @@ CloudBuildConnection::RunBuildTrigger( } StatusOr CloudBuildConnection::RunBuildTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::RunBuildTriggerRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudBuildConnection::RunBuildTrigger(google::cloud::ExperimentalTag, +CloudBuildConnection::RunBuildTrigger(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -196,14 +196,14 @@ CloudBuildConnection::CreateWorkerPool( } StatusOr CloudBuildConnection::CreateWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudBuildConnection::CreateWorkerPool(google::cloud::ExperimentalTag, +CloudBuildConnection::CreateWorkerPool(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -226,7 +226,7 @@ CloudBuildConnection::DeleteWorkerPool( } StatusOr CloudBuildConnection::DeleteWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -234,7 +234,7 @@ StatusOr CloudBuildConnection::DeleteWorkerPool( future> -CloudBuildConnection::DeleteWorkerPool(google::cloud::ExperimentalTag, +CloudBuildConnection::DeleteWorkerPool(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( @@ -250,14 +250,14 @@ CloudBuildConnection::UpdateWorkerPool( } StatusOr CloudBuildConnection::UpdateWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudBuildConnection::UpdateWorkerPool(google::cloud::ExperimentalTag, +CloudBuildConnection::UpdateWorkerPool(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/cloudbuild/v1/cloud_build_connection.h b/google/cloud/cloudbuild/v1/cloud_build_connection.h index 475fad8705570..b1c4b4e4c7239 100644 --- a/google/cloud/cloudbuild/v1/cloud_build_connection.h +++ b/google/cloud/cloudbuild/v1/cloud_build_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/cloudbuild/v1/cloud_build_connection_idempotency_policy.h" #include "google/cloud/cloudbuild/v1/internal/cloud_build_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -190,12 +190,11 @@ class CloudBuildConnection { google::devtools::cloudbuild::v1::CreateBuildRequest const& request); virtual StatusOr CreateBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::CreateBuildRequest const& request); virtual future> CreateBuild( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetBuild( google::devtools::cloudbuild::v1::GetBuildRequest const& request); @@ -210,23 +209,22 @@ class CloudBuildConnection { google::devtools::cloudbuild::v1::RetryBuildRequest const& request); virtual StatusOr RetryBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::RetryBuildRequest const& request); virtual future> RetryBuild( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ApproveBuild( google::devtools::cloudbuild::v1::ApproveBuildRequest const& request); virtual StatusOr ApproveBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::ApproveBuildRequest const& request); virtual future> - ApproveBuild(google::cloud::ExperimentalTag, + ApproveBuild(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -256,11 +254,11 @@ class CloudBuildConnection { google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request); virtual StatusOr RunBuildTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request); virtual future> - RunBuildTrigger(google::cloud::ExperimentalTag, + RunBuildTrigger(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< @@ -274,11 +272,11 @@ class CloudBuildConnection { google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request); virtual StatusOr CreateWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request); virtual future> - CreateWorkerPool(google::cloud::ExperimentalTag, + CreateWorkerPool(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetWorkerPool( @@ -290,12 +288,12 @@ class CloudBuildConnection { google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request); virtual StatusOr DeleteWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request); virtual future> - DeleteWorkerPool(google::cloud::ExperimentalTag, + DeleteWorkerPool(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -303,11 +301,11 @@ class CloudBuildConnection { google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request); virtual StatusOr UpdateWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request); virtual future> - UpdateWorkerPool(google::cloud::ExperimentalTag, + UpdateWorkerPool(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange diff --git a/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.cc b/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.cc index c6129859b2efa..06e02b13dc55d 100644 --- a/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.cc +++ b/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.cc @@ -48,7 +48,7 @@ CloudBuildTracingConnection::CreateBuild( google::devtools::cloudbuild::v1::CreateBuildRequest const& request) { auto span = internal::MakeSpan("cloudbuild_v1::CloudBuildConnection::CreateBuild"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateBuild(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -110,7 +110,7 @@ CloudBuildTracingConnection::RetryBuild( google::devtools::cloudbuild::v1::RetryBuildRequest const& request) { auto span = internal::MakeSpan("cloudbuild_v1::CloudBuildConnection::RetryBuild"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RetryBuild(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -143,7 +143,7 @@ CloudBuildTracingConnection::ApproveBuild( google::devtools::cloudbuild::v1::ApproveBuildRequest const& request) { auto span = internal::MakeSpan("cloudbuild_v1::CloudBuildConnection::ApproveBuild"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ApproveBuild(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -226,7 +226,7 @@ CloudBuildTracingConnection::RunBuildTrigger( google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v1::CloudBuildConnection::RunBuildTrigger"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RunBuildTrigger(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -269,7 +269,7 @@ CloudBuildTracingConnection::CreateWorkerPool( google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v1::CloudBuildConnection::CreateWorkerPool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateWorkerPool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -312,7 +312,7 @@ CloudBuildTracingConnection::DeleteWorkerPool( google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v1::CloudBuildConnection::DeleteWorkerPool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteWorkerPool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -346,7 +346,7 @@ CloudBuildTracingConnection::UpdateWorkerPool( google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v1::CloudBuildConnection::UpdateWorkerPool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateWorkerPool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.cc b/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.cc index 85061e1e8fefb..fca105afcead6 100644 --- a/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.cc +++ b/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.cc @@ -48,7 +48,7 @@ RepositoryManagerTracingConnection::CreateConnection( google::devtools::cloudbuild::v2::CreateConnectionRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::CreateConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateConnection(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -102,7 +102,7 @@ RepositoryManagerTracingConnection::UpdateConnection( google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::UpdateConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateConnection(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ RepositoryManagerTracingConnection::DeleteConnection( google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::DeleteConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteConnection(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -168,7 +168,7 @@ RepositoryManagerTracingConnection::CreateRepository( google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::CreateRepository"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateRepository(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -205,7 +205,7 @@ RepositoryManagerTracingConnection::BatchCreateRepositories( request) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::BatchCreateRepositories"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->BatchCreateRepositories( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -260,7 +260,7 @@ RepositoryManagerTracingConnection::DeleteRepository( google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::DeleteRepository"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteRepository(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/cloudbuild/v2/repository_manager_connection.cc b/google/cloud/cloudbuild/v2/repository_manager_connection.cc index c5f59da1b35d3..51b2e5572d1e9 100644 --- a/google/cloud/cloudbuild/v2/repository_manager_connection.cc +++ b/google/cloud/cloudbuild/v2/repository_manager_connection.cc @@ -48,7 +48,7 @@ RepositoryManagerConnection::CreateConnection( StatusOr RepositoryManagerConnection::CreateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::CreateConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ RepositoryManagerConnection::CreateConnection( future> RepositoryManagerConnection::CreateConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ RepositoryManagerConnection::UpdateConnection( StatusOr RepositoryManagerConnection::UpdateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::UpdateConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ RepositoryManagerConnection::UpdateConnection( future> RepositoryManagerConnection::UpdateConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ RepositoryManagerConnection::DeleteConnection( StatusOr RepositoryManagerConnection::DeleteConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::DeleteConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ RepositoryManagerConnection::DeleteConnection( future> RepositoryManagerConnection::DeleteConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,7 +134,7 @@ RepositoryManagerConnection::CreateRepository( StatusOr RepositoryManagerConnection::CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::CreateRepositoryRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +142,7 @@ RepositoryManagerConnection::CreateRepository( future> RepositoryManagerConnection::CreateRepository( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -159,7 +159,7 @@ RepositoryManagerConnection::BatchCreateRepositories( StatusOr RepositoryManagerConnection::BatchCreateRepositories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -168,7 +168,7 @@ RepositoryManagerConnection::BatchCreateRepositories( future< StatusOr> RepositoryManagerConnection::BatchCreateRepositories( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -198,7 +198,7 @@ RepositoryManagerConnection::DeleteRepository( StatusOr RepositoryManagerConnection::DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::DeleteRepositoryRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -206,7 +206,7 @@ RepositoryManagerConnection::DeleteRepository( future> RepositoryManagerConnection::DeleteRepository( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/cloudbuild/v2/repository_manager_connection.h b/google/cloud/cloudbuild/v2/repository_manager_connection.h index 50152e8928708..b5a4f79517364 100644 --- a/google/cloud/cloudbuild/v2/repository_manager_connection.h +++ b/google/cloud/cloudbuild/v2/repository_manager_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/cloudbuild/v2/internal/repository_manager_retry_traits.h" #include "google/cloud/cloudbuild/v2/repository_manager_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -194,11 +194,11 @@ class RepositoryManagerConnection { google::devtools::cloudbuild::v2::CreateConnectionRequest const& request); virtual StatusOr CreateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::CreateConnectionRequest const& request); virtual future> - CreateConnection(google::cloud::ExperimentalTag, + CreateConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetConnection( @@ -213,11 +213,11 @@ class RepositoryManagerConnection { google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request); virtual StatusOr UpdateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request); virtual future> - UpdateConnection(google::cloud::ExperimentalTag, + UpdateConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -225,11 +225,11 @@ class RepositoryManagerConnection { google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request); virtual StatusOr DeleteConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request); virtual future> - DeleteConnection(google::cloud::ExperimentalTag, + DeleteConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -237,11 +237,11 @@ class RepositoryManagerConnection { google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request); virtual StatusOr CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request); virtual future> - CreateRepository(google::cloud::ExperimentalTag, + CreateRepository(ExperimentalTag, google::longrunning::Operation const& operation); virtual future BatchCreateRepositories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& request); virtual future> - BatchCreateRepositories(google::cloud::ExperimentalTag, + BatchCreateRepositories(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetRepository( @@ -272,11 +272,11 @@ class RepositoryManagerConnection { google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request); virtual StatusOr DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request); virtual future> - DeleteRepository(google::cloud::ExperimentalTag, + DeleteRepository(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< diff --git a/google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_core_connection.h b/google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_core_connection.h index fca30ff226d94..7aaf4f795a479 100644 --- a/google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_core_connection.h +++ b/google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_core_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_core_connection_idempotency_policy.h" #include "google/cloud/cloudcontrolspartner/v1/internal/cloud_controls_partner_core_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_monitoring_connection.h b/google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_monitoring_connection.h index 3ff4911475a21..2d5bd2b47d049 100644 --- a/google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_monitoring_connection.h +++ b/google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_monitoring_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/cloudcontrolspartner/v1/cloud_controls_partner_monitoring_connection_idempotency_policy.h" #include "google/cloud/cloudcontrolspartner/v1/internal/cloud_controls_partner_monitoring_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/cloudquotas/v1/cloud_quotas_connection.h b/google/cloud/cloudquotas/v1/cloud_quotas_connection.h index c3cbfe7d9f1f1..13dcd81059baf 100644 --- a/google/cloud/cloudquotas/v1/cloud_quotas_connection.h +++ b/google/cloud/cloudquotas/v1/cloud_quotas_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/cloudquotas/v1/cloud_quotas_connection_idempotency_policy.h" #include "google/cloud/cloudquotas/v1/internal/cloud_quotas_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection.cc b/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection.cc index ed9569f4f3223..8531cffb0fd4d 100644 --- a/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection.cc +++ b/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection.cc @@ -51,7 +51,7 @@ ConsumerProcurementServiceConnection::PlaceOrder( StatusOr ConsumerProcurementServiceConnection::PlaceOrder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::commerce::consumer::procurement::v1:: PlaceOrderRequest const&) { return StatusOr( @@ -60,7 +60,7 @@ ConsumerProcurementServiceConnection::PlaceOrder( future> ConsumerProcurementServiceConnection::PlaceOrder( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection.h b/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection.h index bbd5de2757779..a69ef06c4ba5d 100644 --- a/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection.h +++ b/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/commerce/consumer/procurement/v1/consumer_procurement_connection_idempotency_policy.h" #include "google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -213,14 +213,13 @@ class ConsumerProcurementServiceConnection { PlaceOrderRequest const& request); virtual StatusOr PlaceOrder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::commerce::consumer::procurement::v1:: PlaceOrderRequest const& request); virtual future< StatusOr> - PlaceOrder(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + PlaceOrder(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetOrder( diff --git a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.cc b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.cc index 2458a641faa48..2df9a66c40077 100644 --- a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.cc +++ b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.cc @@ -56,7 +56,7 @@ ConsumerProcurementServiceTracingConnection::PlaceOrder( auto span = internal::MakeSpan( "commerce_consumer_procurement_v1::ConsumerProcurementServiceConnection::" "PlaceOrder"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PlaceOrder(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/composer/v1/environments_connection.cc b/google/cloud/composer/v1/environments_connection.cc index df51545c8066c..9040be42bda1a 100644 --- a/google/cloud/composer/v1/environments_connection.cc +++ b/google/cloud/composer/v1/environments_connection.cc @@ -50,7 +50,7 @@ EnvironmentsConnection::CreateEnvironment( StatusOr EnvironmentsConnection::CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: CreateEnvironmentRequest const&) { return StatusOr( @@ -60,7 +60,7 @@ EnvironmentsConnection::CreateEnvironment( future< StatusOr> EnvironmentsConnection::CreateEnvironment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -93,7 +93,7 @@ EnvironmentsConnection::UpdateEnvironment( StatusOr EnvironmentsConnection::UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: UpdateEnvironmentRequest const&) { return StatusOr( @@ -103,7 +103,7 @@ EnvironmentsConnection::UpdateEnvironment( future< StatusOr> EnvironmentsConnection::UpdateEnvironment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -121,7 +121,7 @@ EnvironmentsConnection::DeleteEnvironment( StatusOr EnvironmentsConnection::DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: DeleteEnvironmentRequest const&) { return StatusOr( @@ -131,7 +131,7 @@ EnvironmentsConnection::DeleteEnvironment( future> EnvironmentsConnection::DeleteEnvironment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -263,7 +263,7 @@ EnvironmentsConnection::SaveSnapshot( } StatusOr EnvironmentsConnection::SaveSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: SaveSnapshotRequest const&) { return StatusOr( @@ -272,7 +272,7 @@ StatusOr EnvironmentsConnection::SaveSnapshot( future> -EnvironmentsConnection::SaveSnapshot(google::cloud::ExperimentalTag, +EnvironmentsConnection::SaveSnapshot(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr EnvironmentsConnection::LoadSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: LoadSnapshotRequest const&) { return StatusOr( @@ -301,7 +301,7 @@ StatusOr EnvironmentsConnection::LoadSnapshot( future> -EnvironmentsConnection::LoadSnapshot(google::cloud::ExperimentalTag, +EnvironmentsConnection::LoadSnapshot(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr EnvironmentsConnection::DatabaseFailover( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: DatabaseFailoverRequest const&) { return StatusOr( @@ -332,7 +332,7 @@ EnvironmentsConnection::DatabaseFailover( future> EnvironmentsConnection::DatabaseFailover( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/composer/v1/environments_connection.h b/google/cloud/composer/v1/environments_connection.h index 1d177fb9fec32..09aae9875040e 100644 --- a/google/cloud/composer/v1/environments_connection.h +++ b/google/cloud/composer/v1/environments_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/composer/v1/environments_connection_idempotency_policy.h" #include "google/cloud/composer/v1/internal/environments_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -194,13 +194,13 @@ class EnvironmentsConnection { CreateEnvironmentRequest const& request); virtual StatusOr CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: CreateEnvironmentRequest const& request); virtual future< StatusOr> - CreateEnvironment(google::cloud::ExperimentalTag, + CreateEnvironment(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< @@ -219,13 +219,13 @@ class EnvironmentsConnection { UpdateEnvironmentRequest const& request); virtual StatusOr UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: UpdateEnvironmentRequest const& request); virtual future< StatusOr> - UpdateEnvironment(google::cloud::ExperimentalTag, + UpdateEnvironment(ExperimentalTag, google::longrunning::Operation const& operation); virtual future DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: DeleteEnvironmentRequest const& request); virtual future> - DeleteEnvironment(google::cloud::ExperimentalTag, + DeleteEnvironment(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr SaveSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: SaveSnapshotRequest const& request); virtual future> - SaveSnapshot(google::cloud::ExperimentalTag, + SaveSnapshot(ExperimentalTag, google::longrunning::Operation const& operation); virtual future LoadSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: LoadSnapshotRequest const& request); virtual future> - LoadSnapshot(google::cloud::ExperimentalTag, + LoadSnapshot(ExperimentalTag, google::longrunning::Operation const& operation); virtual future DatabaseFailover( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: DatabaseFailoverRequest const& request); virtual future> - DatabaseFailover(google::cloud::ExperimentalTag, + DatabaseFailover(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOrCreateEnvironment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -111,7 +111,7 @@ EnvironmentsTracingConnection::UpdateEnvironment( UpdateEnvironmentRequest const& request) { auto span = internal::MakeSpan( "composer_v1::EnvironmentsConnection::UpdateEnvironment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateEnvironment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -148,7 +148,7 @@ EnvironmentsTracingConnection::DeleteEnvironment( DeleteEnvironmentRequest const& request) { auto span = internal::MakeSpan( "composer_v1::EnvironmentsConnection::DeleteEnvironment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteEnvironment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -348,7 +348,7 @@ EnvironmentsTracingConnection::SaveSnapshot( SaveSnapshotRequest const& request) { auto span = internal::MakeSpan("composer_v1::EnvironmentsConnection::SaveSnapshot"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SaveSnapshot(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -385,7 +385,7 @@ EnvironmentsTracingConnection::LoadSnapshot( LoadSnapshotRequest const& request) { auto span = internal::MakeSpan("composer_v1::EnvironmentsConnection::LoadSnapshot"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->LoadSnapshot(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -422,7 +422,7 @@ EnvironmentsTracingConnection::DatabaseFailover( DatabaseFailoverRequest const& request) { auto span = internal::MakeSpan( "composer_v1::EnvironmentsConnection::DatabaseFailover"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DatabaseFailover(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/accelerator_types/v1/accelerator_types_connection.h b/google/cloud/compute/accelerator_types/v1/accelerator_types_connection.h index 71049b441db85..84aeac795b233 100644 --- a/google/cloud/compute/accelerator_types/v1/accelerator_types_connection.h +++ b/google/cloud/compute/accelerator_types/v1/accelerator_types_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/compute/accelerator_types/v1/accelerator_types_connection_idempotency_policy.h" #include "google/cloud/compute/accelerator_types/v1/internal/accelerator_types_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/compute/addresses/v1/addresses_connection.cc b/google/cloud/compute/addresses/v1/addresses_connection.cc index 79475037b4aef..f1554acf3d6f5 100644 --- a/google/cloud/compute/addresses/v1/addresses_connection.cc +++ b/google/cloud/compute/addresses/v1/addresses_connection.cc @@ -56,7 +56,7 @@ AddressesConnection::DeleteAddress( StatusOr AddressesConnection::DeleteAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -64,8 +64,7 @@ AddressesConnection::DeleteAddress( future> AddressesConnection::DeleteAddress( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -87,7 +86,7 @@ AddressesConnection::InsertAddress( StatusOr AddressesConnection::InsertAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -95,8 +94,7 @@ AddressesConnection::InsertAddress( future> AddressesConnection::InsertAddress( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -119,14 +117,14 @@ AddressesConnection::Move( } StatusOr AddressesConnection::Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::MoveRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AddressesConnection::Move(google::cloud::ExperimentalTag, +AddressesConnection::Move(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -143,7 +141,7 @@ AddressesConnection::SetLabels( StatusOr AddressesConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -151,8 +149,7 @@ AddressesConnection::SetLabels( future> AddressesConnection::SetLabels( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/addresses/v1/addresses_connection.h b/google/cloud/compute/addresses/v1/addresses_connection.h index 241fae024be2d..2e244556c5d74 100644 --- a/google/cloud/compute/addresses/v1/addresses_connection.h +++ b/google/cloud/compute/addresses/v1/addresses_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/addresses/v1/addresses_connection_idempotency_policy.h" #include "google/cloud/compute/addresses/v1/internal/addresses_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,12 +197,12 @@ class AddressesConnection { request); virtual StatusOr DeleteAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const& request); virtual future> - DeleteAddress(google::cloud::ExperimentalTag, + DeleteAddress(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetAddress( @@ -215,12 +215,12 @@ class AddressesConnection { request); virtual StatusOr InsertAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const& request); virtual future> - InsertAddress(google::cloud::ExperimentalTag, + InsertAddress(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange ListAddresses( @@ -230,11 +230,11 @@ class AddressesConnection { google::cloud::cpp::compute::addresses::v1::MoveRequest const& request); virtual StatusOr Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::MoveRequest const& request); virtual future> Move( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -242,12 +242,12 @@ class AddressesConnection { request); virtual StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& request); virtual future> - SetLabels(google::cloud::ExperimentalTag, + SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/addresses/v1/internal/addresses_rest_connection_impl.cc b/google/cloud/compute/addresses/v1/internal/addresses_rest_connection_impl.cc index ed38bd7db81ef..b02532ff31143 100644 --- a/google/cloud/compute/addresses/v1/internal/addresses_rest_connection_impl.cc +++ b/google/cloud/compute/addresses/v1/internal/addresses_rest_connection_impl.cc @@ -145,7 +145,7 @@ AddressesRestConnectionImpl::DeleteAddress( StatusOr AddressesRestConnectionImpl::DeleteAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -162,7 +162,7 @@ AddressesRestConnectionImpl::DeleteAddress( future> AddressesRestConnectionImpl::DeleteAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -295,7 +295,7 @@ AddressesRestConnectionImpl::InsertAddress( StatusOr AddressesRestConnectionImpl::InsertAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -312,7 +312,7 @@ AddressesRestConnectionImpl::InsertAddress( future> AddressesRestConnectionImpl::InsertAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -463,7 +463,7 @@ AddressesRestConnectionImpl::Move( StatusOr AddressesRestConnectionImpl::Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::MoveRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -479,7 +479,7 @@ AddressesRestConnectionImpl::Move( future> AddressesRestConnectionImpl::Move( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -596,7 +596,7 @@ AddressesRestConnectionImpl::SetLabels( StatusOr AddressesRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -613,7 +613,7 @@ AddressesRestConnectionImpl::SetLabels( future> AddressesRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/addresses/v1/internal/addresses_rest_connection_impl.h b/google/cloud/compute/addresses/v1/internal/addresses_rest_connection_impl.h index d7b1512e99f12..6311422682df1 100644 --- a/google/cloud/compute/addresses/v1/internal/addresses_rest_connection_impl.h +++ b/google/cloud/compute/addresses/v1/internal/addresses_rest_connection_impl.h @@ -61,12 +61,12 @@ class AddressesRestConnectionImpl request) override; StatusOr DeleteAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const& request) override; future> DeleteAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetAddress( @@ -78,12 +78,12 @@ class AddressesRestConnectionImpl request) override; StatusOr InsertAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const& request) override; future> InsertAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListAddresses( @@ -95,12 +95,12 @@ class AddressesRestConnectionImpl override; StatusOr Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::MoveRequest const& request) override; future> Move( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetLabels( @@ -108,12 +108,12 @@ class AddressesRestConnectionImpl request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.cc b/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.cc index 3666a07ee8e39..5c911948552c5 100644 --- a/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.cc +++ b/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.cc @@ -64,7 +64,7 @@ AddressesTracingConnection::DeleteAddress( request) { auto span = internal::MakeSpan( "compute_addresses_v1::AddressesConnection::DeleteAddress"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAddress(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -109,7 +109,7 @@ AddressesTracingConnection::InsertAddress( request) { auto span = internal::MakeSpan( "compute_addresses_v1::AddressesConnection::InsertAddress"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertAddress(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -153,7 +153,7 @@ AddressesTracingConnection::Move( google::cloud::cpp::compute::addresses::v1::MoveRequest const& request) { auto span = internal::MakeSpan("compute_addresses_v1::AddressesConnection::Move"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->Move(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -188,7 +188,7 @@ AddressesTracingConnection::SetLabels( request) { auto span = internal::MakeSpan( "compute_addresses_v1::AddressesConnection::SetLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/autoscalers/v1/autoscalers_connection.cc b/google/cloud/compute/autoscalers/v1/autoscalers_connection.cc index 27f70a70f2d23..8b366ca8841e0 100644 --- a/google/cloud/compute/autoscalers/v1/autoscalers_connection.cc +++ b/google/cloud/compute/autoscalers/v1/autoscalers_connection.cc @@ -57,7 +57,7 @@ AutoscalersConnection::DeleteAutoscaler( StatusOr AutoscalersConnection::DeleteAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: DeleteAutoscalerRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ AutoscalersConnection::DeleteAutoscaler( future> AutoscalersConnection::DeleteAutoscaler( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -90,7 +89,7 @@ AutoscalersConnection::InsertAutoscaler( StatusOr AutoscalersConnection::InsertAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: InsertAutoscalerRequest const&) { return StatusOr( @@ -99,8 +98,7 @@ AutoscalersConnection::InsertAutoscaler( future> AutoscalersConnection::InsertAutoscaler( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -125,7 +123,7 @@ AutoscalersConnection::PatchAutoscaler( StatusOr AutoscalersConnection::PatchAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: PatchAutoscalerRequest const&) { return StatusOr( @@ -134,8 +132,7 @@ AutoscalersConnection::PatchAutoscaler( future> AutoscalersConnection::PatchAutoscaler( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -152,7 +149,7 @@ AutoscalersConnection::UpdateAutoscaler( StatusOr AutoscalersConnection::UpdateAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: UpdateAutoscalerRequest const&) { return StatusOr( @@ -161,8 +158,7 @@ AutoscalersConnection::UpdateAutoscaler( future> AutoscalersConnection::UpdateAutoscaler( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/autoscalers/v1/autoscalers_connection.h b/google/cloud/compute/autoscalers/v1/autoscalers_connection.h index 2bcb23e827eb3..fbb1a693bf892 100644 --- a/google/cloud/compute/autoscalers/v1/autoscalers_connection.h +++ b/google/cloud/compute/autoscalers/v1/autoscalers_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/autoscalers/v1/autoscalers_connection_idempotency_policy.h" #include "google/cloud/compute/autoscalers/v1/internal/autoscalers_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -195,12 +195,12 @@ class AutoscalersConnection { DeleteAutoscalerRequest const& request); virtual StatusOr DeleteAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: DeleteAutoscalerRequest const& request); virtual future> - DeleteAutoscaler(google::cloud::ExperimentalTag, + DeleteAutoscaler(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetAutoscaler( @@ -212,12 +212,12 @@ class AutoscalersConnection { InsertAutoscalerRequest const& request); virtual StatusOr InsertAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: InsertAutoscalerRequest const& request); virtual future> - InsertAutoscaler(google::cloud::ExperimentalTag, + InsertAutoscaler(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -230,12 +230,12 @@ class AutoscalersConnection { PatchAutoscalerRequest const& request); virtual StatusOr PatchAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: PatchAutoscalerRequest const& request); virtual future> - PatchAutoscaler(google::cloud::ExperimentalTag, + PatchAutoscaler(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -243,12 +243,12 @@ class AutoscalersConnection { UpdateAutoscalerRequest const& request); virtual StatusOr UpdateAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: UpdateAutoscalerRequest const& request); virtual future> - UpdateAutoscaler(google::cloud::ExperimentalTag, + UpdateAutoscaler(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/autoscalers/v1/internal/autoscalers_rest_connection_impl.cc b/google/cloud/compute/autoscalers/v1/internal/autoscalers_rest_connection_impl.cc index 06f5f88b3349c..aa96111e7f0a8 100644 --- a/google/cloud/compute/autoscalers/v1/internal/autoscalers_rest_connection_impl.cc +++ b/google/cloud/compute/autoscalers/v1/internal/autoscalers_rest_connection_impl.cc @@ -147,7 +147,7 @@ AutoscalersRestConnectionImpl::DeleteAutoscaler( StatusOr AutoscalersRestConnectionImpl::DeleteAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1::DeleteAutoscalerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -164,7 +164,7 @@ AutoscalersRestConnectionImpl::DeleteAutoscaler( future> AutoscalersRestConnectionImpl::DeleteAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -296,7 +296,7 @@ AutoscalersRestConnectionImpl::InsertAutoscaler( StatusOr AutoscalersRestConnectionImpl::InsertAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1::InsertAutoscalerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -313,7 +313,7 @@ AutoscalersRestConnectionImpl::InsertAutoscaler( future> AutoscalersRestConnectionImpl::InsertAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -465,7 +465,7 @@ AutoscalersRestConnectionImpl::PatchAutoscaler( StatusOr AutoscalersRestConnectionImpl::PatchAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1::PatchAutoscalerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -482,7 +482,7 @@ AutoscalersRestConnectionImpl::PatchAutoscaler( future> AutoscalersRestConnectionImpl::PatchAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -598,7 +598,7 @@ AutoscalersRestConnectionImpl::UpdateAutoscaler( StatusOr AutoscalersRestConnectionImpl::UpdateAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1::UpdateAutoscalerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -615,7 +615,7 @@ AutoscalersRestConnectionImpl::UpdateAutoscaler( future> AutoscalersRestConnectionImpl::UpdateAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/autoscalers/v1/internal/autoscalers_rest_connection_impl.h b/google/cloud/compute/autoscalers/v1/internal/autoscalers_rest_connection_impl.h index 45b4b0a1cb11a..a613617f9bb93 100644 --- a/google/cloud/compute/autoscalers/v1/internal/autoscalers_rest_connection_impl.h +++ b/google/cloud/compute/autoscalers/v1/internal/autoscalers_rest_connection_impl.h @@ -62,12 +62,12 @@ class AutoscalersRestConnectionImpl DeleteAutoscalerRequest const& request) override; StatusOr DeleteAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: DeleteAutoscalerRequest const& request) override; future> DeleteAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetAutoscaler( @@ -79,12 +79,12 @@ class AutoscalersRestConnectionImpl InsertAutoscalerRequest const& request) override; StatusOr InsertAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: InsertAutoscalerRequest const& request) override; future> InsertAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListAutoscalers( @@ -96,12 +96,12 @@ class AutoscalersRestConnectionImpl PatchAutoscalerRequest const& request) override; StatusOr PatchAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: PatchAutoscalerRequest const& request) override; future> PatchAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> UpdateAutoscaler( @@ -109,12 +109,12 @@ class AutoscalersRestConnectionImpl UpdateAutoscalerRequest const& request) override; StatusOr UpdateAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: UpdateAutoscalerRequest const& request) override; future> UpdateAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.cc b/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.cc index e81e242a31fd0..d9db9ab066eeb 100644 --- a/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.cc +++ b/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.cc @@ -65,7 +65,7 @@ AutoscalersTracingConnection::DeleteAutoscaler( request) { auto span = internal::MakeSpan( "compute_autoscalers_v1::AutoscalersConnection::DeleteAutoscaler"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAutoscaler(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -110,7 +110,7 @@ AutoscalersTracingConnection::InsertAutoscaler( request) { auto span = internal::MakeSpan( "compute_autoscalers_v1::AutoscalersConnection::InsertAutoscaler"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertAutoscaler(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -158,7 +158,7 @@ AutoscalersTracingConnection::PatchAutoscaler( request) { auto span = internal::MakeSpan( "compute_autoscalers_v1::AutoscalersConnection::PatchAutoscaler"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchAutoscaler(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -193,7 +193,7 @@ AutoscalersTracingConnection::UpdateAutoscaler( request) { auto span = internal::MakeSpan( "compute_autoscalers_v1::AutoscalersConnection::UpdateAutoscaler"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateAutoscaler(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/backend_buckets/v1/backend_buckets_connection.cc b/google/cloud/compute/backend_buckets/v1/backend_buckets_connection.cc index 47b6bd1b04006..2d0809e644429 100644 --- a/google/cloud/compute/backend_buckets/v1/backend_buckets_connection.cc +++ b/google/cloud/compute/backend_buckets/v1/backend_buckets_connection.cc @@ -47,7 +47,7 @@ BackendBucketsConnection::AddSignedUrlKey( StatusOr BackendBucketsConnection::AddSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: AddSignedUrlKeyRequest const&) { return StatusOr( @@ -56,8 +56,7 @@ BackendBucketsConnection::AddSignedUrlKey( future> BackendBucketsConnection::AddSignedUrlKey( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -74,7 +73,7 @@ BackendBucketsConnection::DeleteBackendBucket( StatusOr BackendBucketsConnection::DeleteBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: DeleteBackendBucketRequest const&) { return StatusOr( @@ -83,8 +82,7 @@ BackendBucketsConnection::DeleteBackendBucket( future> BackendBucketsConnection::DeleteBackendBucket( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -101,7 +99,7 @@ BackendBucketsConnection::DeleteSignedUrlKey( StatusOr BackendBucketsConnection::DeleteSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: DeleteSignedUrlKeyRequest const&) { return StatusOr( @@ -110,8 +108,7 @@ BackendBucketsConnection::DeleteSignedUrlKey( future> BackendBucketsConnection::DeleteSignedUrlKey( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +139,7 @@ BackendBucketsConnection::InsertBackendBucket( StatusOr BackendBucketsConnection::InsertBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: InsertBackendBucketRequest const&) { return StatusOr( @@ -151,8 +148,7 @@ BackendBucketsConnection::InsertBackendBucket( future> BackendBucketsConnection::InsertBackendBucket( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -177,7 +173,7 @@ BackendBucketsConnection::PatchBackendBucket( StatusOr BackendBucketsConnection::PatchBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: PatchBackendBucketRequest const&) { return StatusOr( @@ -186,8 +182,7 @@ BackendBucketsConnection::PatchBackendBucket( future> BackendBucketsConnection::PatchBackendBucket( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -204,7 +199,7 @@ BackendBucketsConnection::SetEdgeSecurityPolicy( StatusOr BackendBucketsConnection::SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: SetEdgeSecurityPolicyRequest const&) { return StatusOr( @@ -213,8 +208,7 @@ BackendBucketsConnection::SetEdgeSecurityPolicy( future> BackendBucketsConnection::SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -245,7 +239,7 @@ BackendBucketsConnection::UpdateBackendBucket( StatusOr BackendBucketsConnection::UpdateBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: UpdateBackendBucketRequest const&) { return StatusOr( @@ -254,8 +248,7 @@ BackendBucketsConnection::UpdateBackendBucket( future> BackendBucketsConnection::UpdateBackendBucket( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/backend_buckets/v1/backend_buckets_connection.h b/google/cloud/compute/backend_buckets/v1/backend_buckets_connection.h index 291ed633bf021..fc5f0e5a978e1 100644 --- a/google/cloud/compute/backend_buckets/v1/backend_buckets_connection.h +++ b/google/cloud/compute/backend_buckets/v1/backend_buckets_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/backend_buckets/v1/backend_buckets_connection_idempotency_policy.h" #include "google/cloud/compute/backend_buckets/v1/internal/backend_buckets_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,12 +192,12 @@ class BackendBucketsConnection { AddSignedUrlKeyRequest const& request); virtual StatusOr AddSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: AddSignedUrlKeyRequest const& request); virtual future> - AddSignedUrlKey(google::cloud::ExperimentalTag, + AddSignedUrlKey(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -205,13 +205,13 @@ class BackendBucketsConnection { DeleteBackendBucketRequest const& request); virtual StatusOr - DeleteBackendBucket(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + DeleteBackendBucket(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: DeleteBackendBucketRequest const& request); virtual future> DeleteBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -219,13 +219,13 @@ class BackendBucketsConnection { DeleteSignedUrlKeyRequest const& request); virtual StatusOr - DeleteSignedUrlKey(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + DeleteSignedUrlKey(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: DeleteSignedUrlKeyRequest const& request); virtual future> DeleteSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -241,13 +241,13 @@ class BackendBucketsConnection { InsertBackendBucketRequest const& request); virtual StatusOr - InsertBackendBucket(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + InsertBackendBucket(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: InsertBackendBucketRequest const& request); virtual future> InsertBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -259,13 +259,13 @@ class BackendBucketsConnection { PatchBackendBucketRequest const& request); virtual StatusOr - PatchBackendBucket(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + PatchBackendBucket(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: PatchBackendBucketRequest const& request); virtual future> PatchBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -273,14 +273,13 @@ class BackendBucketsConnection { SetEdgeSecurityPolicyRequest const& request); virtual StatusOr - SetEdgeSecurityPolicy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + SetEdgeSecurityPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: SetEdgeSecurityPolicyRequest const& request); virtual future> SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr SetIamPolicy( @@ -296,13 +295,13 @@ class BackendBucketsConnection { UpdateBackendBucketRequest const& request); virtual StatusOr - UpdateBackendBucket(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + UpdateBackendBucket(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: UpdateBackendBucketRequest const& request); virtual future> UpdateBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_rest_connection_impl.cc b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_rest_connection_impl.cc index aecb19672f3ea..af1c26bbe04fa 100644 --- a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_rest_connection_impl.cc +++ b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_rest_connection_impl.cc @@ -104,7 +104,7 @@ BackendBucketsRestConnectionImpl::AddSignedUrlKey( StatusOr BackendBucketsRestConnectionImpl::AddSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: AddSignedUrlKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -121,7 +121,7 @@ BackendBucketsRestConnectionImpl::AddSignedUrlKey( future> BackendBucketsRestConnectionImpl::AddSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -233,7 +233,7 @@ BackendBucketsRestConnectionImpl::DeleteBackendBucket( StatusOr BackendBucketsRestConnectionImpl::DeleteBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: DeleteBackendBucketRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -250,7 +250,7 @@ BackendBucketsRestConnectionImpl::DeleteBackendBucket( future> BackendBucketsRestConnectionImpl::DeleteBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -362,7 +362,7 @@ BackendBucketsRestConnectionImpl::DeleteSignedUrlKey( StatusOr BackendBucketsRestConnectionImpl::DeleteSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: DeleteSignedUrlKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -379,7 +379,7 @@ BackendBucketsRestConnectionImpl::DeleteSignedUrlKey( future> BackendBucketsRestConnectionImpl::DeleteSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -523,7 +523,7 @@ BackendBucketsRestConnectionImpl::InsertBackendBucket( StatusOr BackendBucketsRestConnectionImpl::InsertBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: InsertBackendBucketRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -540,7 +540,7 @@ BackendBucketsRestConnectionImpl::InsertBackendBucket( future> BackendBucketsRestConnectionImpl::InsertBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -689,7 +689,7 @@ BackendBucketsRestConnectionImpl::PatchBackendBucket( StatusOr BackendBucketsRestConnectionImpl::PatchBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: PatchBackendBucketRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -706,7 +706,7 @@ BackendBucketsRestConnectionImpl::PatchBackendBucket( future> BackendBucketsRestConnectionImpl::PatchBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -818,7 +818,7 @@ BackendBucketsRestConnectionImpl::SetEdgeSecurityPolicy( StatusOr BackendBucketsRestConnectionImpl::SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: SetEdgeSecurityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -835,7 +835,7 @@ BackendBucketsRestConnectionImpl::SetEdgeSecurityPolicy( future> BackendBucketsRestConnectionImpl::SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -979,7 +979,7 @@ BackendBucketsRestConnectionImpl::UpdateBackendBucket( StatusOr BackendBucketsRestConnectionImpl::UpdateBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: UpdateBackendBucketRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -996,7 +996,7 @@ BackendBucketsRestConnectionImpl::UpdateBackendBucket( future> BackendBucketsRestConnectionImpl::UpdateBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_rest_connection_impl.h b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_rest_connection_impl.h index 965cc39ffa61e..6e1f53600f6b2 100644 --- a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_rest_connection_impl.h +++ b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_rest_connection_impl.h @@ -57,12 +57,12 @@ class BackendBucketsRestConnectionImpl AddSignedUrlKeyRequest const& request) override; StatusOr AddSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: AddSignedUrlKeyRequest const& request) override; future> AddSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -70,13 +70,13 @@ class BackendBucketsRestConnectionImpl DeleteBackendBucketRequest const& request) override; StatusOr DeleteBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: DeleteBackendBucketRequest const& request) override; future> DeleteBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -84,13 +84,13 @@ class BackendBucketsRestConnectionImpl DeleteSignedUrlKeyRequest const& request) override; StatusOr DeleteSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: DeleteSignedUrlKeyRequest const& request) override; future> DeleteSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetBackendBucket( @@ -106,13 +106,13 @@ class BackendBucketsRestConnectionImpl InsertBackendBucketRequest const& request) override; StatusOr InsertBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: InsertBackendBucketRequest const& request) override; future> InsertBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -124,13 +124,13 @@ class BackendBucketsRestConnectionImpl PatchBackendBucketRequest const& request) override; StatusOr PatchBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: PatchBackendBucketRequest const& request) override; future> PatchBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -139,13 +139,13 @@ class BackendBucketsRestConnectionImpl SetEdgeSecurityPolicyRequest const& request) override; StatusOr SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: SetEdgeSecurityPolicyRequest const& request) override; future> SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -161,13 +161,13 @@ class BackendBucketsRestConnectionImpl UpdateBackendBucketRequest const& request) override; StatusOr UpdateBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: UpdateBackendBucketRequest const& request) override; future> UpdateBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.cc b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.cc index d1bbef52e67fe..31417e521e370 100644 --- a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.cc +++ b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.cc @@ -50,7 +50,7 @@ BackendBucketsTracingConnection::AddSignedUrlKey( AddSignedUrlKeyRequest const& request) { auto span = internal::MakeSpan( "compute_backend_buckets_v1::BackendBucketsConnection::AddSignedUrlKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddSignedUrlKey(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -88,7 +88,7 @@ BackendBucketsTracingConnection::DeleteBackendBucket( auto span = internal::MakeSpan( "compute_backend_buckets_v1::BackendBucketsConnection::" "DeleteBackendBucket"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteBackendBucket(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -127,7 +127,7 @@ BackendBucketsTracingConnection::DeleteSignedUrlKey( auto span = internal::MakeSpan( "compute_backend_buckets_v1::BackendBucketsConnection::" "DeleteSignedUrlKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSignedUrlKey(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -186,7 +186,7 @@ BackendBucketsTracingConnection::InsertBackendBucket( auto span = internal::MakeSpan( "compute_backend_buckets_v1::BackendBucketsConnection::" "InsertBackendBucket"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertBackendBucket(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -239,7 +239,7 @@ BackendBucketsTracingConnection::PatchBackendBucket( auto span = internal::MakeSpan( "compute_backend_buckets_v1::BackendBucketsConnection::" "PatchBackendBucket"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchBackendBucket(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -278,7 +278,7 @@ BackendBucketsTracingConnection::SetEdgeSecurityPolicy( auto span = internal::MakeSpan( "compute_backend_buckets_v1::BackendBucketsConnection::" "SetEdgeSecurityPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SetEdgeSecurityPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -338,7 +338,7 @@ BackendBucketsTracingConnection::UpdateBackendBucket( auto span = internal::MakeSpan( "compute_backend_buckets_v1::BackendBucketsConnection::" "UpdateBackendBucket"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateBackendBucket(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/backend_services/v1/backend_services_connection.cc b/google/cloud/compute/backend_services/v1/backend_services_connection.cc index b356707d8fca0..34b00ad48c633 100644 --- a/google/cloud/compute/backend_services/v1/backend_services_connection.cc +++ b/google/cloud/compute/backend_services/v1/backend_services_connection.cc @@ -47,7 +47,7 @@ BackendServicesConnection::AddSignedUrlKey( StatusOr BackendServicesConnection::AddSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: AddSignedUrlKeyRequest const&) { return StatusOr( @@ -56,8 +56,7 @@ BackendServicesConnection::AddSignedUrlKey( future> BackendServicesConnection::AddSignedUrlKey( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -84,7 +83,7 @@ BackendServicesConnection::DeleteBackendService( StatusOr BackendServicesConnection::DeleteBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: DeleteBackendServiceRequest const&) { return StatusOr( @@ -93,8 +92,7 @@ BackendServicesConnection::DeleteBackendService( future> BackendServicesConnection::DeleteBackendService( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -111,7 +109,7 @@ BackendServicesConnection::DeleteSignedUrlKey( StatusOr BackendServicesConnection::DeleteSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: DeleteSignedUrlKeyRequest const&) { return StatusOr( @@ -120,8 +118,7 @@ BackendServicesConnection::DeleteSignedUrlKey( future> BackendServicesConnection::DeleteSignedUrlKey( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -159,7 +156,7 @@ BackendServicesConnection::InsertBackendService( StatusOr BackendServicesConnection::InsertBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: InsertBackendServiceRequest const&) { return StatusOr( @@ -168,8 +165,7 @@ BackendServicesConnection::InsertBackendService( future> BackendServicesConnection::InsertBackendService( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -202,7 +198,7 @@ BackendServicesConnection::PatchBackendService( StatusOr BackendServicesConnection::PatchBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: PatchBackendServiceRequest const&) { return StatusOr( @@ -211,8 +207,7 @@ BackendServicesConnection::PatchBackendService( future> BackendServicesConnection::PatchBackendService( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -229,7 +224,7 @@ BackendServicesConnection::SetEdgeSecurityPolicy( StatusOr BackendServicesConnection::SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: SetEdgeSecurityPolicyRequest const&) { return StatusOr( @@ -238,8 +233,7 @@ BackendServicesConnection::SetEdgeSecurityPolicy( future> BackendServicesConnection::SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -263,7 +257,7 @@ BackendServicesConnection::SetSecurityPolicy( StatusOr BackendServicesConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: SetSecurityPolicyRequest const&) { return StatusOr( @@ -272,8 +266,7 @@ BackendServicesConnection::SetSecurityPolicy( future> BackendServicesConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -297,7 +290,7 @@ BackendServicesConnection::UpdateBackendService( StatusOr BackendServicesConnection::UpdateBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: UpdateBackendServiceRequest const&) { return StatusOr( @@ -306,8 +299,7 @@ BackendServicesConnection::UpdateBackendService( future> BackendServicesConnection::UpdateBackendService( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/backend_services/v1/backend_services_connection.h b/google/cloud/compute/backend_services/v1/backend_services_connection.h index 6cf61ba05a318..155880116ecb7 100644 --- a/google/cloud/compute/backend_services/v1/backend_services_connection.h +++ b/google/cloud/compute/backend_services/v1/backend_services_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/backend_services/v1/backend_services_connection_idempotency_policy.h" #include "google/cloud/compute/backend_services/v1/internal/backend_services_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,12 +193,12 @@ class BackendServicesConnection { AddSignedUrlKeyRequest const& request); virtual StatusOr AddSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: AddSignedUrlKeyRequest const& request); virtual future> - AddSignedUrlKey(google::cloud::ExperimentalTag, + AddSignedUrlKey(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange - DeleteBackendService(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteBackendService(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: DeleteBackendServiceRequest const& request); virtual future> DeleteBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -227,13 +226,13 @@ class BackendServicesConnection { DeleteSignedUrlKeyRequest const& request); virtual StatusOr - DeleteSignedUrlKey(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + DeleteSignedUrlKey(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: DeleteSignedUrlKeyRequest const& request); virtual future> DeleteSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -254,14 +253,13 @@ class BackendServicesConnection { InsertBackendServiceRequest const& request); virtual StatusOr - InsertBackendService(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertBackendService(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: InsertBackendServiceRequest const& request); virtual future> InsertBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -278,13 +276,13 @@ class BackendServicesConnection { PatchBackendServiceRequest const& request); virtual StatusOr - PatchBackendService(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + PatchBackendService(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: PatchBackendServiceRequest const& request); virtual future> PatchBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -292,14 +290,13 @@ class BackendServicesConnection { SetEdgeSecurityPolicyRequest const& request); virtual StatusOr - SetEdgeSecurityPolicy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + SetEdgeSecurityPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: SetEdgeSecurityPolicyRequest const& request); virtual future> SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr SetIamPolicy( @@ -311,13 +308,13 @@ class BackendServicesConnection { SetSecurityPolicyRequest const& request); virtual StatusOr - SetSecurityPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetSecurityPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: SetSecurityPolicyRequest const& request); virtual future> SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -329,14 +326,13 @@ class BackendServicesConnection { UpdateBackendServiceRequest const& request); virtual StatusOr - UpdateBackendService(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + UpdateBackendService(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: UpdateBackendServiceRequest const& request); virtual future> UpdateBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/backend_services/v1/internal/backend_services_rest_connection_impl.cc b/google/cloud/compute/backend_services/v1/internal/backend_services_rest_connection_impl.cc index c8ef3847b7bde..86af17c2e29b1 100644 --- a/google/cloud/compute/backend_services/v1/internal/backend_services_rest_connection_impl.cc +++ b/google/cloud/compute/backend_services/v1/internal/backend_services_rest_connection_impl.cc @@ -105,7 +105,7 @@ BackendServicesRestConnectionImpl::AddSignedUrlKey( StatusOr BackendServicesRestConnectionImpl::AddSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: AddSignedUrlKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -122,7 +122,7 @@ BackendServicesRestConnectionImpl::AddSignedUrlKey( future> BackendServicesRestConnectionImpl::AddSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -277,7 +277,7 @@ BackendServicesRestConnectionImpl::DeleteBackendService( StatusOr BackendServicesRestConnectionImpl::DeleteBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: DeleteBackendServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -294,7 +294,7 @@ BackendServicesRestConnectionImpl::DeleteBackendService( future> BackendServicesRestConnectionImpl::DeleteBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -406,7 +406,7 @@ BackendServicesRestConnectionImpl::DeleteSignedUrlKey( StatusOr BackendServicesRestConnectionImpl::DeleteSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: DeleteSignedUrlKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -423,7 +423,7 @@ BackendServicesRestConnectionImpl::DeleteSignedUrlKey( future> BackendServicesRestConnectionImpl::DeleteSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -583,7 +583,7 @@ BackendServicesRestConnectionImpl::InsertBackendService( StatusOr BackendServicesRestConnectionImpl::InsertBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: InsertBackendServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -600,7 +600,7 @@ BackendServicesRestConnectionImpl::InsertBackendService( future> BackendServicesRestConnectionImpl::InsertBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -788,7 +788,7 @@ BackendServicesRestConnectionImpl::PatchBackendService( StatusOr BackendServicesRestConnectionImpl::PatchBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: PatchBackendServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -805,7 +805,7 @@ BackendServicesRestConnectionImpl::PatchBackendService( future> BackendServicesRestConnectionImpl::PatchBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -917,7 +917,7 @@ BackendServicesRestConnectionImpl::SetEdgeSecurityPolicy( StatusOr BackendServicesRestConnectionImpl::SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: SetEdgeSecurityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -934,7 +934,7 @@ BackendServicesRestConnectionImpl::SetEdgeSecurityPolicy( future> BackendServicesRestConnectionImpl::SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1062,7 +1062,7 @@ BackendServicesRestConnectionImpl::SetSecurityPolicy( StatusOr BackendServicesRestConnectionImpl::SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: SetSecurityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1079,7 +1079,7 @@ BackendServicesRestConnectionImpl::SetSecurityPolicy( future> BackendServicesRestConnectionImpl::SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1207,7 +1207,7 @@ BackendServicesRestConnectionImpl::UpdateBackendService( StatusOr BackendServicesRestConnectionImpl::UpdateBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: UpdateBackendServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1224,7 +1224,7 @@ BackendServicesRestConnectionImpl::UpdateBackendService( future> BackendServicesRestConnectionImpl::UpdateBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/backend_services/v1/internal/backend_services_rest_connection_impl.h b/google/cloud/compute/backend_services/v1/internal/backend_services_rest_connection_impl.h index 0dc51707922be..37d46f5a04b1b 100644 --- a/google/cloud/compute/backend_services/v1/internal/backend_services_rest_connection_impl.h +++ b/google/cloud/compute/backend_services/v1/internal/backend_services_rest_connection_impl.h @@ -57,12 +57,12 @@ class BackendServicesRestConnectionImpl AddSignedUrlKeyRequest const& request) override; StatusOr AddSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: AddSignedUrlKeyRequest const& request) override; future> AddSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange DeleteBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: DeleteBackendServiceRequest const& request) override; future> DeleteBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -90,13 +90,13 @@ class BackendServicesRestConnectionImpl DeleteSignedUrlKeyRequest const& request) override; StatusOr DeleteSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: DeleteSignedUrlKeyRequest const& request) override; future> DeleteSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetBackendService( @@ -117,13 +117,13 @@ class BackendServicesRestConnectionImpl InsertBackendServiceRequest const& request) override; StatusOr InsertBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: InsertBackendServiceRequest const& request) override; future> InsertBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -139,13 +139,13 @@ class BackendServicesRestConnectionImpl PatchBackendServiceRequest const& request) override; StatusOr PatchBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: PatchBackendServiceRequest const& request) override; future> PatchBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -154,13 +154,13 @@ class BackendServicesRestConnectionImpl SetEdgeSecurityPolicyRequest const& request) override; StatusOr SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: SetEdgeSecurityPolicyRequest const& request) override; future> SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -172,13 +172,13 @@ class BackendServicesRestConnectionImpl SetSecurityPolicyRequest const& request) override; StatusOr SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: SetSecurityPolicyRequest const& request) override; future> SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -190,13 +190,13 @@ class BackendServicesRestConnectionImpl UpdateBackendServiceRequest const& request) override; StatusOr UpdateBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: UpdateBackendServiceRequest const& request) override; future> UpdateBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.cc b/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.cc index ff295a6706548..0c38d1c02c537 100644 --- a/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.cc +++ b/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.cc @@ -53,7 +53,7 @@ BackendServicesTracingConnection::AddSignedUrlKey( auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "AddSignedUrlKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddSignedUrlKey(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -107,7 +107,7 @@ BackendServicesTracingConnection::DeleteBackendService( auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "DeleteBackendService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteBackendService( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -146,7 +146,7 @@ BackendServicesTracingConnection::DeleteSignedUrlKey( auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "DeleteSignedUrlKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSignedUrlKey(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -216,7 +216,7 @@ BackendServicesTracingConnection::InsertBackendService( auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "InsertBackendService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertBackendService( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -282,7 +282,7 @@ BackendServicesTracingConnection::PatchBackendService( auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "PatchBackendService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchBackendService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -321,7 +321,7 @@ BackendServicesTracingConnection::SetEdgeSecurityPolicy( auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "SetEdgeSecurityPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SetEdgeSecurityPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -369,7 +369,7 @@ BackendServicesTracingConnection::SetSecurityPolicy( auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "SetSecurityPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -419,7 +419,7 @@ BackendServicesTracingConnection::UpdateBackendService( auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "UpdateBackendService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateBackendService( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/disk_types/v1/disk_types_connection.h b/google/cloud/compute/disk_types/v1/disk_types_connection.h index faea77ddcc9d3..d1aa7c71913f9 100644 --- a/google/cloud/compute/disk_types/v1/disk_types_connection.h +++ b/google/cloud/compute/disk_types/v1/disk_types_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/compute/disk_types/v1/disk_types_connection_idempotency_policy.h" #include "google/cloud/compute/disk_types/v1/internal/disk_types_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/compute/disks/v1/disks_connection.cc b/google/cloud/compute/disks/v1/disks_connection.cc index c117ddbed8371..9496d70669e9b 100644 --- a/google/cloud/compute/disks/v1/disks_connection.cc +++ b/google/cloud/compute/disks/v1/disks_connection.cc @@ -46,7 +46,7 @@ DisksConnection::AddResourcePolicies( StatusOr DisksConnection::AddResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -54,8 +54,7 @@ DisksConnection::AddResourcePolicies( future> DisksConnection::AddResourcePolicies( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -81,14 +80,14 @@ DisksConnection::BulkInsert( StatusOr DisksConnection::BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::BulkInsertRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DisksConnection::BulkInsert(google::cloud::ExperimentalTag, +DisksConnection::BulkInsert(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -105,7 +104,7 @@ DisksConnection::CreateSnapshot( StatusOr DisksConnection::CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -113,8 +112,7 @@ DisksConnection::CreateSnapshot( future> DisksConnection::CreateSnapshot( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -130,14 +128,14 @@ DisksConnection::DeleteDisk( StatusOr DisksConnection::DeleteDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DisksConnection::DeleteDisk(google::cloud::ExperimentalTag, +DisksConnection::DeleteDisk(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -164,14 +162,14 @@ DisksConnection::InsertDisk( StatusOr DisksConnection::InsertDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::InsertDiskRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DisksConnection::InsertDisk(google::cloud::ExperimentalTag, +DisksConnection::InsertDisk(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -196,7 +194,7 @@ DisksConnection::RemoveResourcePolicies( StatusOr DisksConnection::RemoveResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: RemoveResourcePoliciesRequest const&) { return StatusOr( @@ -205,8 +203,7 @@ DisksConnection::RemoveResourcePolicies( future> DisksConnection::RemoveResourcePolicies( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -221,14 +218,14 @@ DisksConnection::Resize( } StatusOr DisksConnection::Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::ResizeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DisksConnection::Resize(google::cloud::ExperimentalTag, +DisksConnection::Resize(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -249,14 +246,14 @@ DisksConnection::SetLabels( } StatusOr DisksConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::SetLabelsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DisksConnection::SetLabels(google::cloud::ExperimentalTag, +DisksConnection::SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -274,7 +271,7 @@ DisksConnection::StartAsyncReplication( StatusOr DisksConnection::StartAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: StartAsyncReplicationRequest const&) { return StatusOr( @@ -283,8 +280,7 @@ DisksConnection::StartAsyncReplication( future> DisksConnection::StartAsyncReplication( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -299,8 +295,7 @@ DisksConnection::StopAsyncReplication(google::cloud::cpp::compute::disks::v1:: } StatusOr -DisksConnection::StopAsyncReplication(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, +DisksConnection::StopAsyncReplication(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: StopAsyncReplicationRequest const&) { return StatusOr( @@ -309,8 +304,7 @@ DisksConnection::StopAsyncReplication(google::cloud::ExperimentalTag, future> DisksConnection::StopAsyncReplication( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -327,7 +321,7 @@ DisksConnection::StopGroupAsyncReplication( StatusOr DisksConnection::StopGroupAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: StopGroupAsyncReplicationRequest const&) { return StatusOr( @@ -336,8 +330,7 @@ DisksConnection::StopGroupAsyncReplication( future> DisksConnection::StopGroupAsyncReplication( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -359,14 +352,14 @@ DisksConnection::UpdateDisk( StatusOr DisksConnection::UpdateDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DisksConnection::UpdateDisk(google::cloud::ExperimentalTag, +DisksConnection::UpdateDisk(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/compute/disks/v1/disks_connection.h b/google/cloud/compute/disks/v1/disks_connection.h index b659efcc53e20..40ff92330c61c 100644 --- a/google/cloud/compute/disks/v1/disks_connection.h +++ b/google/cloud/compute/disks/v1/disks_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/disks/v1/disks_connection_idempotency_policy.h" #include "google/cloud/compute/disks/v1/internal/disks_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -189,13 +189,13 @@ class DisksConnection { virtual StatusOr AddResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const& request); virtual future> AddResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange< @@ -209,11 +209,11 @@ class DisksConnection { google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& request); virtual StatusOr BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& request); virtual future> - BulkInsert(google::cloud::ExperimentalTag, + BulkInsert(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -222,12 +222,12 @@ class DisksConnection { request); virtual StatusOr CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& request); virtual future> - CreateSnapshot(google::cloud::ExperimentalTag, + CreateSnapshot(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -235,11 +235,11 @@ class DisksConnection { google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request); virtual StatusOr DeleteDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request); virtual future> - DeleteDisk(google::cloud::ExperimentalTag, + DeleteDisk(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetDisk( @@ -254,11 +254,11 @@ class DisksConnection { google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& request); virtual StatusOr InsertDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& request); virtual future> - InsertDisk(google::cloud::ExperimentalTag, + InsertDisk(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange ListDisks( @@ -269,25 +269,24 @@ class DisksConnection { RemoveResourcePoliciesRequest const& request); virtual StatusOr - RemoveResourcePolicies(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + RemoveResourcePolicies(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: RemoveResourcePoliciesRequest const& request); virtual future> RemoveResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> Resize( google::cloud::cpp::compute::disks::v1::ResizeRequest const& request); virtual StatusOr Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::ResizeRequest const& request); virtual future> Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr SetIamPolicy( @@ -299,11 +298,11 @@ class DisksConnection { google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request); virtual StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request); virtual future> - SetLabels(google::cloud::ExperimentalTag, + SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -311,14 +310,13 @@ class DisksConnection { StartAsyncReplicationRequest const& request); virtual StatusOr - StartAsyncReplication(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + StartAsyncReplication(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: StartAsyncReplicationRequest const& request); virtual future> StartAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -328,13 +326,13 @@ class DisksConnection { virtual StatusOr StopAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const& request); virtual future> StopAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -344,13 +342,13 @@ class DisksConnection { virtual StatusOr StopGroupAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: StopGroupAsyncReplicationRequest const& request); virtual future> StopGroupAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -363,11 +361,11 @@ class DisksConnection { google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request); virtual StatusOr UpdateDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request); virtual future> - UpdateDisk(google::cloud::ExperimentalTag, + UpdateDisk(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/disks/v1/internal/disks_rest_connection_impl.cc b/google/cloud/compute/disks/v1/internal/disks_rest_connection_impl.cc index e06278c4c3c99..0a03fd32e270e 100644 --- a/google/cloud/compute/disks/v1/internal/disks_rest_connection_impl.cc +++ b/google/cloud/compute/disks/v1/internal/disks_rest_connection_impl.cc @@ -105,7 +105,7 @@ DisksRestConnectionImpl::AddResourcePolicies( StatusOr DisksRestConnectionImpl::AddResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -122,7 +122,7 @@ DisksRestConnectionImpl::AddResourcePolicies( future> DisksRestConnectionImpl::AddResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -276,7 +276,7 @@ DisksRestConnectionImpl::BulkInsert( StatusOr DisksRestConnectionImpl::BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -292,7 +292,7 @@ DisksRestConnectionImpl::BulkInsert( future> DisksRestConnectionImpl::BulkInsert( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -409,7 +409,7 @@ DisksRestConnectionImpl::CreateSnapshot( StatusOr DisksRestConnectionImpl::CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -427,7 +427,7 @@ DisksRestConnectionImpl::CreateSnapshot( future> DisksRestConnectionImpl::CreateSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -543,7 +543,7 @@ DisksRestConnectionImpl::DeleteDisk( StatusOr DisksRestConnectionImpl::DeleteDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -559,7 +559,7 @@ DisksRestConnectionImpl::DeleteDisk( future> DisksRestConnectionImpl::DeleteDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -706,7 +706,7 @@ DisksRestConnectionImpl::InsertDisk( StatusOr DisksRestConnectionImpl::InsertDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -722,7 +722,7 @@ DisksRestConnectionImpl::InsertDisk( future> DisksRestConnectionImpl::InsertDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -874,7 +874,7 @@ DisksRestConnectionImpl::RemoveResourcePolicies( StatusOr DisksRestConnectionImpl::RemoveResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::RemoveResourcePoliciesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -891,7 +891,7 @@ DisksRestConnectionImpl::RemoveResourcePolicies( future> DisksRestConnectionImpl::RemoveResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1007,7 +1007,7 @@ DisksRestConnectionImpl::Resize( StatusOr DisksRestConnectionImpl::Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::ResizeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -1023,7 +1023,7 @@ DisksRestConnectionImpl::Resize( future> DisksRestConnectionImpl::Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1155,7 +1155,7 @@ DisksRestConnectionImpl::SetLabels( StatusOr DisksRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -1171,7 +1171,7 @@ DisksRestConnectionImpl::SetLabels( future> DisksRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1287,7 +1287,7 @@ DisksRestConnectionImpl::StartAsyncReplication( StatusOr DisksRestConnectionImpl::StartAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::StartAsyncReplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1304,7 +1304,7 @@ DisksRestConnectionImpl::StartAsyncReplication( future> DisksRestConnectionImpl::StartAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1420,7 +1420,7 @@ DisksRestConnectionImpl::StopAsyncReplication( StatusOr DisksRestConnectionImpl::StopAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1437,7 +1437,7 @@ DisksRestConnectionImpl::StopAsyncReplication( future> DisksRestConnectionImpl::StopAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1553,7 +1553,7 @@ DisksRestConnectionImpl::StopGroupAsyncReplication( StatusOr DisksRestConnectionImpl::StopGroupAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: StopGroupAsyncReplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1570,7 +1570,7 @@ DisksRestConnectionImpl::StopGroupAsyncReplication( future> DisksRestConnectionImpl::StopGroupAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1702,7 +1702,7 @@ DisksRestConnectionImpl::UpdateDisk( StatusOr DisksRestConnectionImpl::UpdateDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -1718,7 +1718,7 @@ DisksRestConnectionImpl::UpdateDisk( future> DisksRestConnectionImpl::UpdateDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/disks/v1/internal/disks_rest_connection_impl.h b/google/cloud/compute/disks/v1/internal/disks_rest_connection_impl.h index c23b0e0c18045..9cec5a654e541 100644 --- a/google/cloud/compute/disks/v1/internal/disks_rest_connection_impl.h +++ b/google/cloud/compute/disks/v1/internal/disks_rest_connection_impl.h @@ -55,13 +55,13 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { request) override; StatusOr AddResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const& request) override; future> AddResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange< @@ -75,12 +75,12 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { override; StatusOr BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& request) override; future> BulkInsert( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> CreateSnapshot( @@ -88,12 +88,12 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { request) override; StatusOr CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& request) override; future> CreateSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> DeleteDisk( @@ -101,12 +101,12 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { override; StatusOr DeleteDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request) override; future> DeleteDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetDisk( @@ -122,12 +122,12 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { override; StatusOr InsertDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& request) override; future> InsertDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListDisks( @@ -140,13 +140,13 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { RemoveResourcePoliciesRequest const& request) override; StatusOr RemoveResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: RemoveResourcePoliciesRequest const& request) override; future> RemoveResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Resize( @@ -154,12 +154,12 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { override; StatusOr Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::ResizeRequest const& request) override; future> Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -171,12 +171,12 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -185,13 +185,13 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { StartAsyncReplicationRequest const& request) override; StatusOr StartAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: StartAsyncReplicationRequest const& request) override; future> StartAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -200,13 +200,13 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { request) override; StatusOr StopAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const& request) override; future> StopAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -216,13 +216,13 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { StatusOr StopGroupAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: StopGroupAsyncReplicationRequest const& request) override; future> StopGroupAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -235,12 +235,12 @@ class DisksRestConnectionImpl : public compute_disks_v1::DisksConnection { override; StatusOr UpdateDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request) override; future> UpdateDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/disks/v1/internal/disks_tracing_connection.cc b/google/cloud/compute/disks/v1/internal/disks_tracing_connection.cc index adb7d224dd0c9..08ea12934c332 100644 --- a/google/cloud/compute/disks/v1/internal/disks_tracing_connection.cc +++ b/google/cloud/compute/disks/v1/internal/disks_tracing_connection.cc @@ -51,7 +51,7 @@ DisksTracingConnection::AddResourcePolicies( request) { auto span = internal::MakeSpan( "compute_disks_v1::DisksConnection::AddResourcePolicies"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddResourcePolicies(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -98,7 +98,7 @@ DisksTracingConnection::BulkInsert( google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& request) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::BulkInsert"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BulkInsert(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -133,7 +133,7 @@ DisksTracingConnection::CreateSnapshot( request) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::CreateSnapshot"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateSnapshot(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -166,7 +166,7 @@ DisksTracingConnection::DeleteDisk( google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::DeleteDisk"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteDisk(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -216,7 +216,7 @@ DisksTracingConnection::InsertDisk( google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& request) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::InsertDisk"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertDisk(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -263,7 +263,7 @@ DisksTracingConnection::RemoveResourcePolicies( request) { auto span = internal::MakeSpan( "compute_disks_v1::DisksConnection::RemoveResourcePolicies"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RemoveResourcePolicies( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -294,7 +294,7 @@ DisksTracingConnection::Resize( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::cpp::compute::disks::v1::ResizeRequest const& request) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::Resize"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->Resize(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -336,7 +336,7 @@ DisksTracingConnection::SetLabels( google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::SetLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -372,7 +372,7 @@ DisksTracingConnection::StartAsyncReplication( request) { auto span = internal::MakeSpan( "compute_disks_v1::DisksConnection::StartAsyncReplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->StartAsyncReplication( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -408,7 +408,7 @@ DisksTracingConnection::StopAsyncReplication( request) { auto span = internal::MakeSpan( "compute_disks_v1::DisksConnection::StopAsyncReplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->StopAsyncReplication( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -444,7 +444,7 @@ DisksTracingConnection::StopGroupAsyncReplication( StopGroupAsyncReplicationRequest const& request) { auto span = internal::MakeSpan( "compute_disks_v1::DisksConnection::StopGroupAsyncReplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->StopGroupAsyncReplication( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -487,7 +487,7 @@ DisksTracingConnection::UpdateDisk( google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::UpdateDisk"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateDisk(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection.cc b/google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection.cc index 9d4bccece8c82..18bf3fd393fbe 100644 --- a/google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection.cc +++ b/google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection.cc @@ -48,7 +48,7 @@ ExternalVpnGatewaysConnection::DeleteExternalVpnGateway( StatusOr ExternalVpnGatewaysConnection::DeleteExternalVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: DeleteExternalVpnGatewayRequest const&) { return StatusOr( @@ -57,8 +57,7 @@ ExternalVpnGatewaysConnection::DeleteExternalVpnGateway( future> ExternalVpnGatewaysConnection::DeleteExternalVpnGateway( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -82,7 +81,7 @@ ExternalVpnGatewaysConnection::InsertExternalVpnGateway( StatusOr ExternalVpnGatewaysConnection::InsertExternalVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: InsertExternalVpnGatewayRequest const&) { return StatusOr( @@ -91,8 +90,7 @@ ExternalVpnGatewaysConnection::InsertExternalVpnGateway( future> ExternalVpnGatewaysConnection::InsertExternalVpnGateway( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -117,7 +115,7 @@ ExternalVpnGatewaysConnection::SetLabels( StatusOr ExternalVpnGatewaysConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: SetLabelsRequest const&) { return StatusOr( @@ -126,8 +124,7 @@ ExternalVpnGatewaysConnection::SetLabels( future> ExternalVpnGatewaysConnection::SetLabels( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection.h b/google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection.h index 269d96c5ebd07..3a94c096a2fec 100644 --- a/google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection.h +++ b/google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/external_vpn_gateways/v1/external_vpn_gateways_connection_idempotency_policy.h" #include "google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -198,13 +198,13 @@ class ExternalVpnGatewaysConnection { virtual StatusOr DeleteExternalVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: DeleteExternalVpnGatewayRequest const& request); virtual future> DeleteExternalVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -218,13 +218,13 @@ class ExternalVpnGatewaysConnection { virtual StatusOr InsertExternalVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: InsertExternalVpnGatewayRequest const& request); virtual future> InsertExternalVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -236,12 +236,12 @@ class ExternalVpnGatewaysConnection { SetLabelsRequest const& request); virtual StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: SetLabelsRequest const& request); virtual future> - SetLabels(google::cloud::ExperimentalTag, + SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr diff --git a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_rest_connection_impl.cc b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_rest_connection_impl.cc index a022f8e0a1684..a5256114c90b1 100644 --- a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_rest_connection_impl.cc +++ b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_rest_connection_impl.cc @@ -106,7 +106,7 @@ ExternalVpnGatewaysRestConnectionImpl::DeleteExternalVpnGateway( StatusOr ExternalVpnGatewaysRestConnectionImpl::DeleteExternalVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: DeleteExternalVpnGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -123,7 +123,7 @@ ExternalVpnGatewaysRestConnectionImpl::DeleteExternalVpnGateway( future> ExternalVpnGatewaysRestConnectionImpl::DeleteExternalVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -251,7 +251,7 @@ ExternalVpnGatewaysRestConnectionImpl::InsertExternalVpnGateway( StatusOr ExternalVpnGatewaysRestConnectionImpl::InsertExternalVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: InsertExternalVpnGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -268,7 +268,7 @@ ExternalVpnGatewaysRestConnectionImpl::InsertExternalVpnGateway( future> ExternalVpnGatewaysRestConnectionImpl::InsertExternalVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -420,7 +420,7 @@ ExternalVpnGatewaysRestConnectionImpl::SetLabels( StatusOr ExternalVpnGatewaysRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: SetLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -437,7 +437,7 @@ ExternalVpnGatewaysRestConnectionImpl::SetLabels( future> ExternalVpnGatewaysRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_rest_connection_impl.h b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_rest_connection_impl.h index deeb3bcdb3d8a..fbd18229e7844 100644 --- a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_rest_connection_impl.h +++ b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_rest_connection_impl.h @@ -59,13 +59,13 @@ class ExternalVpnGatewaysRestConnectionImpl DeleteExternalVpnGatewayRequest const& request) override; StatusOr DeleteExternalVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: DeleteExternalVpnGatewayRequest const& request) override; future> DeleteExternalVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -79,13 +79,13 @@ class ExternalVpnGatewaysRestConnectionImpl InsertExternalVpnGatewayRequest const& request) override; StatusOr InsertExternalVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: InsertExternalVpnGatewayRequest const& request) override; future> InsertExternalVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -98,12 +98,12 @@ class ExternalVpnGatewaysRestConnectionImpl SetLabelsRequest const& request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr diff --git a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.cc b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.cc index 96db505e650c7..c8228298d2761 100644 --- a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.cc +++ b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.cc @@ -56,7 +56,7 @@ ExternalVpnGatewaysTracingConnection::DeleteExternalVpnGateway( auto span = internal::MakeSpan( "compute_external_vpn_gateways_v1::ExternalVpnGatewaysConnection::" "DeleteExternalVpnGateway"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteExternalVpnGateway( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -106,7 +106,7 @@ ExternalVpnGatewaysTracingConnection::InsertExternalVpnGateway( auto span = internal::MakeSpan( "compute_external_vpn_gateways_v1::ExternalVpnGatewaysConnection::" "InsertExternalVpnGateway"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertExternalVpnGateway( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -158,7 +158,7 @@ ExternalVpnGatewaysTracingConnection::SetLabels( auto span = internal::MakeSpan( "compute_external_vpn_gateways_v1::ExternalVpnGatewaysConnection::" "SetLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/firewall_policies/v1/firewall_policies_connection.cc b/google/cloud/compute/firewall_policies/v1/firewall_policies_connection.cc index 68a675d0d017c..7b1a9b33a0327 100644 --- a/google/cloud/compute/firewall_policies/v1/firewall_policies_connection.cc +++ b/google/cloud/compute/firewall_policies/v1/firewall_policies_connection.cc @@ -47,7 +47,7 @@ FirewallPoliciesConnection::AddAssociation( StatusOr FirewallPoliciesConnection::AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: AddAssociationRequest const&) { return StatusOr( @@ -56,8 +56,7 @@ FirewallPoliciesConnection::AddAssociation( future> FirewallPoliciesConnection::AddAssociation( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -73,7 +72,7 @@ FirewallPoliciesConnection::AddRule( StatusOr FirewallPoliciesConnection::AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -81,8 +80,7 @@ FirewallPoliciesConnection::AddRule( future> FirewallPoliciesConnection::AddRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -99,7 +97,7 @@ FirewallPoliciesConnection::CloneRules( StatusOr FirewallPoliciesConnection::CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: CloneRulesRequest const&) { return StatusOr( @@ -108,8 +106,7 @@ FirewallPoliciesConnection::CloneRules( future> FirewallPoliciesConnection::CloneRules( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -126,7 +123,7 @@ FirewallPoliciesConnection::DeleteFirewallPolicy( StatusOr FirewallPoliciesConnection::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: DeleteFirewallPolicyRequest const&) { return StatusOr( @@ -135,8 +132,7 @@ FirewallPoliciesConnection::DeleteFirewallPolicy( future> FirewallPoliciesConnection::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -180,7 +176,7 @@ FirewallPoliciesConnection::InsertFirewallPolicy( StatusOr FirewallPoliciesConnection::InsertFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: InsertFirewallPolicyRequest const&) { return StatusOr( @@ -189,8 +185,7 @@ FirewallPoliciesConnection::InsertFirewallPolicy( future> FirewallPoliciesConnection::InsertFirewallPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -222,7 +217,7 @@ FirewallPoliciesConnection::Move( StatusOr FirewallPoliciesConnection::Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -230,8 +225,7 @@ FirewallPoliciesConnection::Move( future> FirewallPoliciesConnection::Move( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -248,7 +242,7 @@ FirewallPoliciesConnection::PatchFirewallPolicy( StatusOr FirewallPoliciesConnection::PatchFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: PatchFirewallPolicyRequest const&) { return StatusOr( @@ -257,8 +251,7 @@ FirewallPoliciesConnection::PatchFirewallPolicy( future> FirewallPoliciesConnection::PatchFirewallPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -275,7 +268,7 @@ FirewallPoliciesConnection::PatchRule( StatusOr FirewallPoliciesConnection::PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: PatchRuleRequest const&) { return StatusOr( @@ -284,8 +277,7 @@ FirewallPoliciesConnection::PatchRule( future> FirewallPoliciesConnection::PatchRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -302,7 +294,7 @@ FirewallPoliciesConnection::RemoveAssociation( StatusOr FirewallPoliciesConnection::RemoveAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: RemoveAssociationRequest const&) { return StatusOr( @@ -311,8 +303,7 @@ FirewallPoliciesConnection::RemoveAssociation( future> FirewallPoliciesConnection::RemoveAssociation( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -329,7 +320,7 @@ FirewallPoliciesConnection::RemoveRule( StatusOr FirewallPoliciesConnection::RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: RemoveRuleRequest const&) { return StatusOr( @@ -338,8 +329,7 @@ FirewallPoliciesConnection::RemoveRule( future> FirewallPoliciesConnection::RemoveRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/firewall_policies/v1/firewall_policies_connection.h b/google/cloud/compute/firewall_policies/v1/firewall_policies_connection.h index fc0929b1c22c4..c9509227a4000 100644 --- a/google/cloud/compute/firewall_policies/v1/firewall_policies_connection.h +++ b/google/cloud/compute/firewall_policies/v1/firewall_policies_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/firewall_policies/v1/firewall_policies_connection_idempotency_policy.h" #include "google/cloud/compute/firewall_policies/v1/internal/firewall_policies_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,12 +193,12 @@ class FirewallPoliciesConnection { AddAssociationRequest const& request); virtual StatusOr AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: AddAssociationRequest const& request); virtual future> - AddAssociation(google::cloud::ExperimentalTag, + AddAssociation(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> AddRule( @@ -206,12 +206,12 @@ class FirewallPoliciesConnection { request); virtual StatusOr AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& request); virtual future> AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -219,12 +219,12 @@ class FirewallPoliciesConnection { CloneRulesRequest const& request); virtual StatusOr CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: CloneRulesRequest const& request); virtual future> - CloneRules(google::cloud::ExperimentalTag, + CloneRules(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -232,14 +232,13 @@ class FirewallPoliciesConnection { DeleteFirewallPolicyRequest const& request); virtual StatusOr - DeleteFirewallPolicy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteFirewallPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: DeleteFirewallPolicyRequest const& request); virtual future> DeleteFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -263,14 +262,13 @@ class FirewallPoliciesConnection { InsertFirewallPolicyRequest const& request); virtual StatusOr - InsertFirewallPolicy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertFirewallPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: InsertFirewallPolicyRequest const& request); virtual future> InsertFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -287,12 +285,12 @@ class FirewallPoliciesConnection { request); virtual StatusOr Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const& request); virtual future> Move( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -300,13 +298,13 @@ class FirewallPoliciesConnection { PatchFirewallPolicyRequest const& request); virtual StatusOr - PatchFirewallPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + PatchFirewallPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: PatchFirewallPolicyRequest const& request); virtual future> PatchFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -314,12 +312,12 @@ class FirewallPoliciesConnection { PatchRuleRequest const& request); virtual StatusOr PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: PatchRuleRequest const& request); virtual future> - PatchRule(google::cloud::ExperimentalTag, + PatchRule(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -327,13 +325,13 @@ class FirewallPoliciesConnection { RemoveAssociationRequest const& request); virtual StatusOr - RemoveAssociation(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + RemoveAssociation(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: RemoveAssociationRequest const& request); virtual future> RemoveAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -341,12 +339,12 @@ class FirewallPoliciesConnection { RemoveRuleRequest const& request); virtual StatusOr RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: RemoveRuleRequest const& request); virtual future> - RemoveRule(google::cloud::ExperimentalTag, + RemoveRule(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr SetIamPolicy( diff --git a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.cc b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.cc index 8f486f5ae26a2..29c525815feb7 100644 --- a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.cc +++ b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.cc @@ -102,7 +102,7 @@ FirewallPoliciesRestConnectionImpl::AddAssociation( StatusOr FirewallPoliciesRestConnectionImpl::AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: AddAssociationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -119,7 +119,7 @@ FirewallPoliciesRestConnectionImpl::AddAssociation( future> FirewallPoliciesRestConnectionImpl::AddAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -229,7 +229,7 @@ FirewallPoliciesRestConnectionImpl::AddRule( StatusOr FirewallPoliciesRestConnectionImpl::AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -246,7 +246,7 @@ FirewallPoliciesRestConnectionImpl::AddRule( future> FirewallPoliciesRestConnectionImpl::AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -356,7 +356,7 @@ FirewallPoliciesRestConnectionImpl::CloneRules( StatusOr FirewallPoliciesRestConnectionImpl::CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::CloneRulesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -373,7 +373,7 @@ FirewallPoliciesRestConnectionImpl::CloneRules( future> FirewallPoliciesRestConnectionImpl::CloneRules( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -483,7 +483,7 @@ FirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( StatusOr FirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -500,7 +500,7 @@ FirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( future> FirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -674,7 +674,7 @@ FirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( StatusOr FirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: InsertFirewallPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -691,7 +691,7 @@ FirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( future> FirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -858,7 +858,7 @@ FirewallPoliciesRestConnectionImpl::Move( StatusOr FirewallPoliciesRestConnectionImpl::Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -874,7 +874,7 @@ FirewallPoliciesRestConnectionImpl::Move( future> FirewallPoliciesRestConnectionImpl::Move( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -984,7 +984,7 @@ FirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( StatusOr FirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: PatchFirewallPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1001,7 +1001,7 @@ FirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( future> FirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1111,7 +1111,7 @@ FirewallPoliciesRestConnectionImpl::PatchRule( StatusOr FirewallPoliciesRestConnectionImpl::PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::PatchRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1128,7 +1128,7 @@ FirewallPoliciesRestConnectionImpl::PatchRule( future> FirewallPoliciesRestConnectionImpl::PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1238,7 +1238,7 @@ FirewallPoliciesRestConnectionImpl::RemoveAssociation( StatusOr FirewallPoliciesRestConnectionImpl::RemoveAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: RemoveAssociationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1255,7 +1255,7 @@ FirewallPoliciesRestConnectionImpl::RemoveAssociation( future> FirewallPoliciesRestConnectionImpl::RemoveAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1365,7 +1365,7 @@ FirewallPoliciesRestConnectionImpl::RemoveRule( StatusOr FirewallPoliciesRestConnectionImpl::RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::RemoveRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1382,7 +1382,7 @@ FirewallPoliciesRestConnectionImpl::RemoveRule( future> FirewallPoliciesRestConnectionImpl::RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.h b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.h index 7350c03233ab1..92fb3d166b8e9 100644 --- a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.h +++ b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.h @@ -57,12 +57,12 @@ class FirewallPoliciesRestConnectionImpl AddAssociationRequest const& request) override; StatusOr AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: AddAssociationRequest const& request) override; future> AddAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> AddRule( @@ -70,12 +70,12 @@ class FirewallPoliciesRestConnectionImpl request) override; StatusOr AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& request) override; future> AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> CloneRules( @@ -83,12 +83,12 @@ class FirewallPoliciesRestConnectionImpl CloneRulesRequest const& request) override; StatusOr CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: CloneRulesRequest const& request) override; future> CloneRules( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -96,13 +96,13 @@ class FirewallPoliciesRestConnectionImpl DeleteFirewallPolicyRequest const& request) override; StatusOr DeleteFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) override; future> DeleteFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetFirewallPolicy( @@ -126,13 +126,13 @@ class FirewallPoliciesRestConnectionImpl InsertFirewallPolicyRequest const& request) override; StatusOr InsertFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: InsertFirewallPolicyRequest const& request) override; future> InsertFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -149,12 +149,12 @@ class FirewallPoliciesRestConnectionImpl request) override; StatusOr Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const& request) override; future> Move( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -162,13 +162,13 @@ class FirewallPoliciesRestConnectionImpl PatchFirewallPolicyRequest const& request) override; StatusOr PatchFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: PatchFirewallPolicyRequest const& request) override; future> PatchFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> PatchRule( @@ -176,12 +176,12 @@ class FirewallPoliciesRestConnectionImpl PatchRuleRequest const& request) override; StatusOr PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: PatchRuleRequest const& request) override; future> PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -189,13 +189,13 @@ class FirewallPoliciesRestConnectionImpl RemoveAssociationRequest const& request) override; StatusOr RemoveAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: RemoveAssociationRequest const& request) override; future> RemoveAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> RemoveRule( @@ -203,12 +203,12 @@ class FirewallPoliciesRestConnectionImpl RemoveRuleRequest const& request) override; StatusOr RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: RemoveRuleRequest const& request) override; future> RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( diff --git a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.cc b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.cc index 7743bee7844fa..5590d540a2aa3 100644 --- a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.cc +++ b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.cc @@ -53,7 +53,7 @@ FirewallPoliciesTracingConnection::AddAssociation( auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::" "AddAssociation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddAssociation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -89,7 +89,7 @@ FirewallPoliciesTracingConnection::AddRule( request) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::AddRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -124,7 +124,7 @@ FirewallPoliciesTracingConnection::CloneRules( request) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::CloneRules"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CloneRules(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -162,7 +162,7 @@ FirewallPoliciesTracingConnection::DeleteFirewallPolicy( auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::" "DeleteFirewallPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteFirewallPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -243,7 +243,7 @@ FirewallPoliciesTracingConnection::InsertFirewallPolicy( auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::" "InsertFirewallPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertFirewallPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -305,7 +305,7 @@ FirewallPoliciesTracingConnection::Move( request) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::Move"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->Move(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -343,7 +343,7 @@ FirewallPoliciesTracingConnection::PatchFirewallPolicy( auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::" "PatchFirewallPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchFirewallPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -379,7 +379,7 @@ FirewallPoliciesTracingConnection::PatchRule( request) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::PatchRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -416,7 +416,7 @@ FirewallPoliciesTracingConnection::RemoveAssociation( auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::" "RemoveAssociation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RemoveAssociation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -452,7 +452,7 @@ FirewallPoliciesTracingConnection::RemoveRule( request) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::RemoveRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RemoveRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/firewalls/v1/firewalls_connection.cc b/google/cloud/compute/firewalls/v1/firewalls_connection.cc index afe220023cdb1..fbf45f6ce5569 100644 --- a/google/cloud/compute/firewalls/v1/firewalls_connection.cc +++ b/google/cloud/compute/firewalls/v1/firewalls_connection.cc @@ -46,7 +46,7 @@ FirewallsConnection::DeleteFirewall( StatusOr FirewallsConnection::DeleteFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -54,8 +54,7 @@ FirewallsConnection::DeleteFirewall( future> FirewallsConnection::DeleteFirewall( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -77,7 +76,7 @@ FirewallsConnection::InsertFirewall( StatusOr FirewallsConnection::InsertFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -85,8 +84,7 @@ FirewallsConnection::InsertFirewall( future> FirewallsConnection::InsertFirewall( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +108,7 @@ FirewallsConnection::PatchFirewall( StatusOr FirewallsConnection::PatchFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,8 +116,7 @@ FirewallsConnection::PatchFirewall( future> FirewallsConnection::PatchFirewall( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -135,7 +132,7 @@ FirewallsConnection::UpdateFirewall( StatusOr FirewallsConnection::UpdateFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -143,8 +140,7 @@ FirewallsConnection::UpdateFirewall( future> FirewallsConnection::UpdateFirewall( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/firewalls/v1/firewalls_connection.h b/google/cloud/compute/firewalls/v1/firewalls_connection.h index 2024e139efcd9..507fae1df248f 100644 --- a/google/cloud/compute/firewalls/v1/firewalls_connection.h +++ b/google/cloud/compute/firewalls/v1/firewalls_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/firewalls/v1/firewalls_connection_idempotency_policy.h" #include "google/cloud/compute/firewalls/v1/internal/firewalls_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -191,12 +191,12 @@ class FirewallsConnection { request); virtual StatusOr DeleteFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const& request); virtual future> - DeleteFirewall(google::cloud::ExperimentalTag, + DeleteFirewall(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetFirewall( @@ -209,12 +209,12 @@ class FirewallsConnection { request); virtual StatusOr InsertFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const& request); virtual future> - InsertFirewall(google::cloud::ExperimentalTag, + InsertFirewall(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange ListFirewalls( @@ -226,12 +226,12 @@ class FirewallsConnection { request); virtual StatusOr PatchFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const& request); virtual future> - PatchFirewall(google::cloud::ExperimentalTag, + PatchFirewall(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -240,12 +240,12 @@ class FirewallsConnection { request); virtual StatusOr UpdateFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& request); virtual future> - UpdateFirewall(google::cloud::ExperimentalTag, + UpdateFirewall(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/firewalls/v1/internal/firewalls_rest_connection_impl.cc b/google/cloud/compute/firewalls/v1/internal/firewalls_rest_connection_impl.cc index c79710b8e6623..e76a45ed96e58 100644 --- a/google/cloud/compute/firewalls/v1/internal/firewalls_rest_connection_impl.cc +++ b/google/cloud/compute/firewalls/v1/internal/firewalls_rest_connection_impl.cc @@ -103,7 +103,7 @@ FirewallsRestConnectionImpl::DeleteFirewall( StatusOr FirewallsRestConnectionImpl::DeleteFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -120,7 +120,7 @@ FirewallsRestConnectionImpl::DeleteFirewall( future> FirewallsRestConnectionImpl::DeleteFirewall( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -249,7 +249,7 @@ FirewallsRestConnectionImpl::InsertFirewall( StatusOr FirewallsRestConnectionImpl::InsertFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -266,7 +266,7 @@ FirewallsRestConnectionImpl::InsertFirewall( future> FirewallsRestConnectionImpl::InsertFirewall( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -413,7 +413,7 @@ FirewallsRestConnectionImpl::PatchFirewall( StatusOr FirewallsRestConnectionImpl::PatchFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -430,7 +430,7 @@ FirewallsRestConnectionImpl::PatchFirewall( future> FirewallsRestConnectionImpl::PatchFirewall( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -542,7 +542,7 @@ FirewallsRestConnectionImpl::UpdateFirewall( StatusOr FirewallsRestConnectionImpl::UpdateFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -559,7 +559,7 @@ FirewallsRestConnectionImpl::UpdateFirewall( future> FirewallsRestConnectionImpl::UpdateFirewall( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/firewalls/v1/internal/firewalls_rest_connection_impl.h b/google/cloud/compute/firewalls/v1/internal/firewalls_rest_connection_impl.h index 680b03b971ba0..3fc44248da93c 100644 --- a/google/cloud/compute/firewalls/v1/internal/firewalls_rest_connection_impl.h +++ b/google/cloud/compute/firewalls/v1/internal/firewalls_rest_connection_impl.h @@ -55,12 +55,12 @@ class FirewallsRestConnectionImpl request) override; StatusOr DeleteFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const& request) override; future> DeleteFirewall( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetFirewall( @@ -72,12 +72,12 @@ class FirewallsRestConnectionImpl request) override; StatusOr InsertFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const& request) override; future> InsertFirewall( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListFirewalls( @@ -89,12 +89,12 @@ class FirewallsRestConnectionImpl request) override; StatusOr PatchFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const& request) override; future> PatchFirewall( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> UpdateFirewall( @@ -102,12 +102,12 @@ class FirewallsRestConnectionImpl request) override; StatusOr UpdateFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& request) override; future> UpdateFirewall( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.cc b/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.cc index fb1f8a0a187f2..e21e4a2320e97 100644 --- a/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.cc +++ b/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.cc @@ -50,7 +50,7 @@ FirewallsTracingConnection::DeleteFirewall( request) { auto span = internal::MakeSpan( "compute_firewalls_v1::FirewallsConnection::DeleteFirewall"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteFirewall(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -95,7 +95,7 @@ FirewallsTracingConnection::InsertFirewall( request) { auto span = internal::MakeSpan( "compute_firewalls_v1::FirewallsConnection::InsertFirewall"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertFirewall(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -142,7 +142,7 @@ FirewallsTracingConnection::PatchFirewall( request) { auto span = internal::MakeSpan( "compute_firewalls_v1::FirewallsConnection::PatchFirewall"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchFirewall(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -177,7 +177,7 @@ FirewallsTracingConnection::UpdateFirewall( request) { auto span = internal::MakeSpan( "compute_firewalls_v1::FirewallsConnection::UpdateFirewall"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateFirewall(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection.cc b/google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection.cc index 4c3f9674c1137..d20f79e9d96af 100644 --- a/google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection.cc +++ b/google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection.cc @@ -57,7 +57,7 @@ ForwardingRulesConnection::DeleteForwardingRule( StatusOr ForwardingRulesConnection::DeleteForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: DeleteForwardingRuleRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ ForwardingRulesConnection::DeleteForwardingRule( future> ForwardingRulesConnection::DeleteForwardingRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -91,7 +90,7 @@ ForwardingRulesConnection::InsertForwardingRule( StatusOr ForwardingRulesConnection::InsertForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: InsertForwardingRuleRequest const&) { return StatusOr( @@ -100,8 +99,7 @@ ForwardingRulesConnection::InsertForwardingRule( future> ForwardingRulesConnection::InsertForwardingRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -126,7 +124,7 @@ ForwardingRulesConnection::PatchForwardingRule( StatusOr ForwardingRulesConnection::PatchForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: PatchForwardingRuleRequest const&) { return StatusOr( @@ -135,8 +133,7 @@ ForwardingRulesConnection::PatchForwardingRule( future> ForwardingRulesConnection::PatchForwardingRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -153,7 +150,7 @@ ForwardingRulesConnection::SetLabels( StatusOr ForwardingRulesConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: SetLabelsRequest const&) { return StatusOr( @@ -162,8 +159,7 @@ ForwardingRulesConnection::SetLabels( future> ForwardingRulesConnection::SetLabels( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -180,7 +176,7 @@ ForwardingRulesConnection::SetTarget( StatusOr ForwardingRulesConnection::SetTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: SetTargetRequest const&) { return StatusOr( @@ -189,8 +185,7 @@ ForwardingRulesConnection::SetTarget( future> ForwardingRulesConnection::SetTarget( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection.h b/google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection.h index bb47c106dc4ca..59920425a2280 100644 --- a/google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection.h +++ b/google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/forwarding_rules/v1/forwarding_rules_connection_idempotency_policy.h" #include "google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,14 +199,13 @@ class ForwardingRulesConnection { DeleteForwardingRuleRequest const& request); virtual StatusOr - DeleteForwardingRule(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteForwardingRule(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: DeleteForwardingRuleRequest const& request); virtual future> DeleteForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -218,14 +217,13 @@ class ForwardingRulesConnection { InsertForwardingRuleRequest const& request); virtual StatusOr - InsertForwardingRule(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertForwardingRule(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: InsertForwardingRuleRequest const& request); virtual future> InsertForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -237,13 +235,13 @@ class ForwardingRulesConnection { PatchForwardingRuleRequest const& request); virtual StatusOr - PatchForwardingRule(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + PatchForwardingRule(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: PatchForwardingRuleRequest const& request); virtual future> PatchForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -252,12 +250,12 @@ class ForwardingRulesConnection { request); virtual StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1::SetLabelsRequest const& request); virtual future> - SetLabels(google::cloud::ExperimentalTag, + SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -266,12 +264,12 @@ class ForwardingRulesConnection { request); virtual StatusOr SetTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1::SetTargetRequest const& request); virtual future> - SetTarget(google::cloud::ExperimentalTag, + SetTarget(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_rest_connection_impl.cc b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_rest_connection_impl.cc index 52e58f9b96195..7a5381a1f87d0 100644 --- a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_rest_connection_impl.cc +++ b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_rest_connection_impl.cc @@ -150,7 +150,7 @@ ForwardingRulesRestConnectionImpl::DeleteForwardingRule( StatusOr ForwardingRulesRestConnectionImpl::DeleteForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: DeleteForwardingRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -167,7 +167,7 @@ ForwardingRulesRestConnectionImpl::DeleteForwardingRule( future> ForwardingRulesRestConnectionImpl::DeleteForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -299,7 +299,7 @@ ForwardingRulesRestConnectionImpl::InsertForwardingRule( StatusOr ForwardingRulesRestConnectionImpl::InsertForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: InsertForwardingRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -316,7 +316,7 @@ ForwardingRulesRestConnectionImpl::InsertForwardingRule( future> ForwardingRulesRestConnectionImpl::InsertForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -470,7 +470,7 @@ ForwardingRulesRestConnectionImpl::PatchForwardingRule( StatusOr ForwardingRulesRestConnectionImpl::PatchForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: PatchForwardingRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -487,7 +487,7 @@ ForwardingRulesRestConnectionImpl::PatchForwardingRule( future> ForwardingRulesRestConnectionImpl::PatchForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -603,7 +603,7 @@ ForwardingRulesRestConnectionImpl::SetLabels( StatusOr ForwardingRulesRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1::SetLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -620,7 +620,7 @@ ForwardingRulesRestConnectionImpl::SetLabels( future> ForwardingRulesRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -736,7 +736,7 @@ ForwardingRulesRestConnectionImpl::SetTarget( StatusOr ForwardingRulesRestConnectionImpl::SetTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1::SetTargetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -753,7 +753,7 @@ ForwardingRulesRestConnectionImpl::SetTarget( future> ForwardingRulesRestConnectionImpl::SetTarget( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_rest_connection_impl.h b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_rest_connection_impl.h index 9dd5c06b0e752..c519db93ff3ab 100644 --- a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_rest_connection_impl.h +++ b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_rest_connection_impl.h @@ -63,13 +63,13 @@ class ForwardingRulesRestConnectionImpl DeleteForwardingRuleRequest const& request) override; StatusOr DeleteForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: DeleteForwardingRuleRequest const& request) override; future> DeleteForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetForwardingRule( @@ -81,13 +81,13 @@ class ForwardingRulesRestConnectionImpl InsertForwardingRuleRequest const& request) override; StatusOr InsertForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: InsertForwardingRuleRequest const& request) override; future> InsertForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -99,13 +99,13 @@ class ForwardingRulesRestConnectionImpl PatchForwardingRuleRequest const& request) override; StatusOr PatchForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: PatchForwardingRuleRequest const& request) override; future> PatchForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetLabels( @@ -113,12 +113,12 @@ class ForwardingRulesRestConnectionImpl request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetTarget( @@ -126,12 +126,12 @@ class ForwardingRulesRestConnectionImpl request) override; StatusOr SetTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1::SetTargetRequest const& request) override; future> SetTarget( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.cc b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.cc index 738c490a89078..0f5c08ae049bd 100644 --- a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.cc +++ b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.cc @@ -69,7 +69,7 @@ ForwardingRulesTracingConnection::DeleteForwardingRule( auto span = internal::MakeSpan( "compute_forwarding_rules_v1::ForwardingRulesConnection::" "DeleteForwardingRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteForwardingRule( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -119,7 +119,7 @@ ForwardingRulesTracingConnection::InsertForwardingRule( auto span = internal::MakeSpan( "compute_forwarding_rules_v1::ForwardingRulesConnection::" "InsertForwardingRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertForwardingRule( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -172,7 +172,7 @@ ForwardingRulesTracingConnection::PatchForwardingRule( auto span = internal::MakeSpan( "compute_forwarding_rules_v1::ForwardingRulesConnection::" "PatchForwardingRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchForwardingRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -208,7 +208,7 @@ ForwardingRulesTracingConnection::SetLabels( request) { auto span = internal::MakeSpan( "compute_forwarding_rules_v1::ForwardingRulesConnection::SetLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -243,7 +243,7 @@ ForwardingRulesTracingConnection::SetTarget( request) { auto span = internal::MakeSpan( "compute_forwarding_rules_v1::ForwardingRulesConnection::SetTarget"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetTarget(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/global_addresses/v1/global_addresses_connection.cc b/google/cloud/compute/global_addresses/v1/global_addresses_connection.cc index ac9b229db64a1..50faf00c5c5b4 100644 --- a/google/cloud/compute/global_addresses/v1/global_addresses_connection.cc +++ b/google/cloud/compute/global_addresses/v1/global_addresses_connection.cc @@ -47,7 +47,7 @@ GlobalAddressesConnection::DeleteAddress( StatusOr GlobalAddressesConnection::DeleteAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1:: DeleteAddressRequest const&) { return StatusOr( @@ -56,8 +56,7 @@ GlobalAddressesConnection::DeleteAddress( future> GlobalAddressesConnection::DeleteAddress( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -81,7 +80,7 @@ GlobalAddressesConnection::InsertAddress( StatusOr GlobalAddressesConnection::InsertAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1:: InsertAddressRequest const&) { return StatusOr( @@ -90,8 +89,7 @@ GlobalAddressesConnection::InsertAddress( future> GlobalAddressesConnection::InsertAddress( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -115,7 +113,7 @@ GlobalAddressesConnection::Move( StatusOr GlobalAddressesConnection::Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1::MoveRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -123,8 +121,7 @@ GlobalAddressesConnection::Move( future> GlobalAddressesConnection::Move( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -141,7 +138,7 @@ GlobalAddressesConnection::SetLabels( StatusOr GlobalAddressesConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1:: SetLabelsRequest const&) { return StatusOr( @@ -150,8 +147,7 @@ GlobalAddressesConnection::SetLabels( future> GlobalAddressesConnection::SetLabels( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/global_addresses/v1/global_addresses_connection.h b/google/cloud/compute/global_addresses/v1/global_addresses_connection.h index 1f5f9a53f6220..a2ca6942e3321 100644 --- a/google/cloud/compute/global_addresses/v1/global_addresses_connection.h +++ b/google/cloud/compute/global_addresses/v1/global_addresses_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/global_addresses/v1/global_addresses_connection_idempotency_policy.h" #include "google/cloud/compute/global_addresses/v1/internal/global_addresses_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,12 +193,12 @@ class GlobalAddressesConnection { DeleteAddressRequest const& request); virtual StatusOr DeleteAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1:: DeleteAddressRequest const& request); virtual future> - DeleteAddress(google::cloud::ExperimentalTag, + DeleteAddress(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetAddress( @@ -210,12 +210,12 @@ class GlobalAddressesConnection { InsertAddressRequest const& request); virtual StatusOr InsertAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1:: InsertAddressRequest const& request); virtual future> - InsertAddress(google::cloud::ExperimentalTag, + InsertAddress(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -227,12 +227,12 @@ class GlobalAddressesConnection { request); virtual StatusOr Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1::MoveRequest const& request); virtual future> Move( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -241,12 +241,12 @@ class GlobalAddressesConnection { request); virtual StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const& request); virtual future> - SetLabels(google::cloud::ExperimentalTag, + SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/global_addresses/v1/internal/global_addresses_rest_connection_impl.cc b/google/cloud/compute/global_addresses/v1/internal/global_addresses_rest_connection_impl.cc index e767d1003056a..3705feef46a3b 100644 --- a/google/cloud/compute/global_addresses/v1/internal/global_addresses_rest_connection_impl.cc +++ b/google/cloud/compute/global_addresses/v1/internal/global_addresses_rest_connection_impl.cc @@ -105,7 +105,7 @@ GlobalAddressesRestConnectionImpl::DeleteAddress( StatusOr GlobalAddressesRestConnectionImpl::DeleteAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1:: DeleteAddressRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -122,7 +122,7 @@ GlobalAddressesRestConnectionImpl::DeleteAddress( future> GlobalAddressesRestConnectionImpl::DeleteAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -250,7 +250,7 @@ GlobalAddressesRestConnectionImpl::InsertAddress( StatusOr GlobalAddressesRestConnectionImpl::InsertAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1:: InsertAddressRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -267,7 +267,7 @@ GlobalAddressesRestConnectionImpl::InsertAddress( future> GlobalAddressesRestConnectionImpl::InsertAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -418,7 +418,7 @@ GlobalAddressesRestConnectionImpl::Move( StatusOr GlobalAddressesRestConnectionImpl::Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1::MoveRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -434,7 +434,7 @@ GlobalAddressesRestConnectionImpl::Move( future> GlobalAddressesRestConnectionImpl::Move( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -546,7 +546,7 @@ GlobalAddressesRestConnectionImpl::SetLabels( StatusOr GlobalAddressesRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -563,7 +563,7 @@ GlobalAddressesRestConnectionImpl::SetLabels( future> GlobalAddressesRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/global_addresses/v1/internal/global_addresses_rest_connection_impl.h b/google/cloud/compute/global_addresses/v1/internal/global_addresses_rest_connection_impl.h index e95e3106961c2..84c0cd65ddc60 100644 --- a/google/cloud/compute/global_addresses/v1/internal/global_addresses_rest_connection_impl.h +++ b/google/cloud/compute/global_addresses/v1/internal/global_addresses_rest_connection_impl.h @@ -57,12 +57,12 @@ class GlobalAddressesRestConnectionImpl DeleteAddressRequest const& request) override; StatusOr DeleteAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1:: DeleteAddressRequest const& request) override; future> DeleteAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetAddress( @@ -74,12 +74,12 @@ class GlobalAddressesRestConnectionImpl InsertAddressRequest const& request) override; StatusOr InsertAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1:: InsertAddressRequest const& request) override; future> InsertAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListGlobalAddresses( @@ -91,12 +91,12 @@ class GlobalAddressesRestConnectionImpl request) override; StatusOr Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1::MoveRequest const& request) override; future> Move( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetLabels( @@ -104,12 +104,12 @@ class GlobalAddressesRestConnectionImpl request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.cc b/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.cc index 2759adde3cd44..46c5e303397e9 100644 --- a/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.cc +++ b/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.cc @@ -51,7 +51,7 @@ GlobalAddressesTracingConnection::DeleteAddress( DeleteAddressRequest const& request) { auto span = internal::MakeSpan( "compute_global_addresses_v1::GlobalAddressesConnection::DeleteAddress"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAddress(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -96,7 +96,7 @@ GlobalAddressesTracingConnection::InsertAddress( InsertAddressRequest const& request) { auto span = internal::MakeSpan( "compute_global_addresses_v1::GlobalAddressesConnection::InsertAddress"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertAddress(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -144,7 +144,7 @@ GlobalAddressesTracingConnection::Move( request) { auto span = internal::MakeSpan( "compute_global_addresses_v1::GlobalAddressesConnection::Move"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->Move(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -179,7 +179,7 @@ GlobalAddressesTracingConnection::SetLabels( request) { auto span = internal::MakeSpan( "compute_global_addresses_v1::GlobalAddressesConnection::SetLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection.cc b/google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection.cc index 31ea46d293f9b..fc9af28354cff 100644 --- a/google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection.cc +++ b/google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection.cc @@ -48,7 +48,7 @@ GlobalForwardingRulesConnection::DeleteForwardingRule( StatusOr GlobalForwardingRulesConnection::DeleteForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: DeleteForwardingRuleRequest const&) { return StatusOr( @@ -57,8 +57,7 @@ GlobalForwardingRulesConnection::DeleteForwardingRule( future> GlobalForwardingRulesConnection::DeleteForwardingRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -82,7 +81,7 @@ GlobalForwardingRulesConnection::InsertForwardingRule( StatusOr GlobalForwardingRulesConnection::InsertForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: InsertForwardingRuleRequest const&) { return StatusOr( @@ -91,8 +90,7 @@ GlobalForwardingRulesConnection::InsertForwardingRule( future> GlobalForwardingRulesConnection::InsertForwardingRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -117,7 +115,7 @@ GlobalForwardingRulesConnection::PatchForwardingRule( StatusOr GlobalForwardingRulesConnection::PatchForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: PatchForwardingRuleRequest const&) { return StatusOr( @@ -126,8 +124,7 @@ GlobalForwardingRulesConnection::PatchForwardingRule( future> GlobalForwardingRulesConnection::PatchForwardingRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -144,7 +141,7 @@ GlobalForwardingRulesConnection::SetLabels( StatusOr GlobalForwardingRulesConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: SetLabelsRequest const&) { return StatusOr( @@ -153,8 +150,7 @@ GlobalForwardingRulesConnection::SetLabels( future> GlobalForwardingRulesConnection::SetLabels( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -171,7 +167,7 @@ GlobalForwardingRulesConnection::SetTarget( StatusOr GlobalForwardingRulesConnection::SetTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: SetTargetRequest const&) { return StatusOr( @@ -180,8 +176,7 @@ GlobalForwardingRulesConnection::SetTarget( future> GlobalForwardingRulesConnection::SetTarget( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection.h b/google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection.h index 54b362a640156..6e063779c496a 100644 --- a/google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection.h +++ b/google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/global_forwarding_rules/v1/global_forwarding_rules_connection_idempotency_policy.h" #include "google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -201,14 +201,13 @@ class GlobalForwardingRulesConnection { v1::DeleteForwardingRuleRequest const& request); virtual StatusOr - DeleteForwardingRule(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteForwardingRule(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules:: v1::DeleteForwardingRuleRequest const& request); virtual future> DeleteForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -220,14 +219,13 @@ class GlobalForwardingRulesConnection { v1::InsertForwardingRuleRequest const& request); virtual StatusOr - InsertForwardingRule(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertForwardingRule(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules:: v1::InsertForwardingRuleRequest const& request); virtual future> InsertForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -240,13 +238,13 @@ class GlobalForwardingRulesConnection { PatchForwardingRuleRequest const& request); virtual StatusOr - PatchForwardingRule(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + PatchForwardingRule(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: PatchForwardingRuleRequest const& request); virtual future> PatchForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -254,12 +252,12 @@ class GlobalForwardingRulesConnection { SetLabelsRequest const& request); virtual StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: SetLabelsRequest const& request); virtual future> - SetLabels(google::cloud::ExperimentalTag, + SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -267,12 +265,12 @@ class GlobalForwardingRulesConnection { SetTargetRequest const& request); virtual StatusOr SetTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: SetTargetRequest const& request); virtual future> - SetTarget(google::cloud::ExperimentalTag, + SetTarget(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_rest_connection_impl.cc b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_rest_connection_impl.cc index 5e94ac4c24695..9780685056feb 100644 --- a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_rest_connection_impl.cc +++ b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_rest_connection_impl.cc @@ -107,7 +107,7 @@ GlobalForwardingRulesRestConnectionImpl::DeleteForwardingRule( StatusOr GlobalForwardingRulesRestConnectionImpl::DeleteForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: DeleteForwardingRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -124,7 +124,7 @@ GlobalForwardingRulesRestConnectionImpl::DeleteForwardingRule( future> GlobalForwardingRulesRestConnectionImpl::DeleteForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -252,7 +252,7 @@ GlobalForwardingRulesRestConnectionImpl::InsertForwardingRule( StatusOr GlobalForwardingRulesRestConnectionImpl::InsertForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: InsertForwardingRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -269,7 +269,7 @@ GlobalForwardingRulesRestConnectionImpl::InsertForwardingRule( future> GlobalForwardingRulesRestConnectionImpl::InsertForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -421,7 +421,7 @@ GlobalForwardingRulesRestConnectionImpl::PatchForwardingRule( StatusOr GlobalForwardingRulesRestConnectionImpl::PatchForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: PatchForwardingRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -438,7 +438,7 @@ GlobalForwardingRulesRestConnectionImpl::PatchForwardingRule( future> GlobalForwardingRulesRestConnectionImpl::PatchForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -550,7 +550,7 @@ GlobalForwardingRulesRestConnectionImpl::SetLabels( StatusOr GlobalForwardingRulesRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: SetLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -567,7 +567,7 @@ GlobalForwardingRulesRestConnectionImpl::SetLabels( future> GlobalForwardingRulesRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -679,7 +679,7 @@ GlobalForwardingRulesRestConnectionImpl::SetTarget( StatusOr GlobalForwardingRulesRestConnectionImpl::SetTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: SetTargetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -696,7 +696,7 @@ GlobalForwardingRulesRestConnectionImpl::SetTarget( future> GlobalForwardingRulesRestConnectionImpl::SetTarget( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_rest_connection_impl.h b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_rest_connection_impl.h index 3ad7a27bb105a..1676d160abd58 100644 --- a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_rest_connection_impl.h +++ b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_rest_connection_impl.h @@ -60,13 +60,13 @@ class GlobalForwardingRulesRestConnectionImpl DeleteForwardingRuleRequest const& request) override; StatusOr DeleteForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: DeleteForwardingRuleRequest const& request) override; future> DeleteForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetForwardingRule( @@ -79,13 +79,13 @@ class GlobalForwardingRulesRestConnectionImpl InsertForwardingRuleRequest const& request) override; StatusOr InsertForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: InsertForwardingRuleRequest const& request) override; future> InsertForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -98,13 +98,13 @@ class GlobalForwardingRulesRestConnectionImpl PatchForwardingRuleRequest const& request) override; StatusOr PatchForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: PatchForwardingRuleRequest const& request) override; future> PatchForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetLabels( @@ -112,12 +112,12 @@ class GlobalForwardingRulesRestConnectionImpl SetLabelsRequest const& request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetTarget( @@ -125,12 +125,12 @@ class GlobalForwardingRulesRestConnectionImpl SetTargetRequest const& request) override; StatusOr SetTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: SetTargetRequest const& request) override; future> SetTarget( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.cc b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.cc index 5e485a1289350..14c9d3272ef66 100644 --- a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.cc +++ b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.cc @@ -56,7 +56,7 @@ GlobalForwardingRulesTracingConnection::DeleteForwardingRule( auto span = internal::MakeSpan( "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" "DeleteForwardingRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteForwardingRule( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -106,7 +106,7 @@ GlobalForwardingRulesTracingConnection::InsertForwardingRule( auto span = internal::MakeSpan( "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" "InsertForwardingRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertForwardingRule( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -159,7 +159,7 @@ GlobalForwardingRulesTracingConnection::PatchForwardingRule( auto span = internal::MakeSpan( "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" "PatchForwardingRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchForwardingRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -197,7 +197,7 @@ GlobalForwardingRulesTracingConnection::SetLabels( auto span = internal::MakeSpan( "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" "SetLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -235,7 +235,7 @@ GlobalForwardingRulesTracingConnection::SetTarget( auto span = internal::MakeSpan( "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" "SetTarget"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetTarget(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection.cc b/google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection.cc index 85e54856620b7..21e298fe66cdd 100644 --- a/google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection.cc +++ b/google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection.cc @@ -49,7 +49,7 @@ GlobalNetworkEndpointGroupsConnection::AttachNetworkEndpoints( StatusOr GlobalNetworkEndpointGroupsConnection::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const&) { return StatusOr( @@ -58,8 +58,7 @@ GlobalNetworkEndpointGroupsConnection::AttachNetworkEndpoints( future> GlobalNetworkEndpointGroupsConnection::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -76,7 +75,7 @@ GlobalNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( StatusOr GlobalNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const&) { return StatusOr( @@ -85,8 +84,7 @@ GlobalNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( future> GlobalNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -103,7 +101,7 @@ GlobalNetworkEndpointGroupsConnection::DetachNetworkEndpoints( StatusOr GlobalNetworkEndpointGroupsConnection::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const&) { return StatusOr( @@ -112,8 +110,7 @@ GlobalNetworkEndpointGroupsConnection::DetachNetworkEndpoints( future> GlobalNetworkEndpointGroupsConnection::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -137,7 +134,7 @@ GlobalNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( StatusOr GlobalNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const&) { return StatusOr( @@ -146,8 +143,7 @@ GlobalNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( future> GlobalNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection.h b/google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection.h index 9e1117ab07cf2..0bb39d0d4dd2c 100644 --- a/google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection.h +++ b/google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/global_network_endpoint_groups/v1/global_network_endpoint_groups_connection_idempotency_policy.h" #include "google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -213,13 +213,13 @@ class GlobalNetworkEndpointGroupsConnection { virtual StatusOr AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request); virtual future> AttachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -229,13 +229,13 @@ class GlobalNetworkEndpointGroupsConnection { virtual StatusOr DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request); virtual future> DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -245,13 +245,13 @@ class GlobalNetworkEndpointGroupsConnection { virtual StatusOr DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request); virtual future> DetachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -266,13 +266,13 @@ class GlobalNetworkEndpointGroupsConnection { virtual StatusOr InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request); virtual future> InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange diff --git a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_rest_connection_impl.cc b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_rest_connection_impl.cc index 29dd031846a0c..90308b146eb05 100644 --- a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_rest_connection_impl.cc +++ b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_rest_connection_impl.cc @@ -109,7 +109,7 @@ GlobalNetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( StatusOr GlobalNetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -126,7 +126,7 @@ GlobalNetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( future> GlobalNetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -239,7 +239,7 @@ GlobalNetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( StatusOr GlobalNetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -257,7 +257,7 @@ GlobalNetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( future> GlobalNetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -370,7 +370,7 @@ GlobalNetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( StatusOr GlobalNetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -387,7 +387,7 @@ GlobalNetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( future> GlobalNetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -516,7 +516,7 @@ GlobalNetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( StatusOr GlobalNetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -534,7 +534,7 @@ GlobalNetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( future> GlobalNetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_rest_connection_impl.h b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_rest_connection_impl.h index 694408349267f..6699126a98982 100644 --- a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_rest_connection_impl.h +++ b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_rest_connection_impl.h @@ -60,13 +60,13 @@ class GlobalNetworkEndpointGroupsRestConnectionImpl AttachNetworkEndpointsRequest const& request) override; StatusOr AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) override; future> AttachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -76,13 +76,13 @@ class GlobalNetworkEndpointGroupsRestConnectionImpl StatusOr DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) override; future> DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -91,13 +91,13 @@ class GlobalNetworkEndpointGroupsRestConnectionImpl DetachNetworkEndpointsRequest const& request) override; StatusOr DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) override; future> DetachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -112,13 +112,13 @@ class GlobalNetworkEndpointGroupsRestConnectionImpl StatusOr InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) override; future> InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.cc b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.cc index a3dc1f4f3f694..bca4b7e94d578 100644 --- a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.cc +++ b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.cc @@ -57,7 +57,7 @@ GlobalNetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( auto span = internal::MakeSpan( "compute_global_network_endpoint_groups_v1::" "GlobalNetworkEndpointGroupsConnection::AttachNetworkEndpoints"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->AttachNetworkEndpoints( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -96,7 +96,7 @@ GlobalNetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( auto span = internal::MakeSpan( "compute_global_network_endpoint_groups_v1::" "GlobalNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteNetworkEndpointGroup( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ GlobalNetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( auto span = internal::MakeSpan( "compute_global_network_endpoint_groups_v1::" "GlobalNetworkEndpointGroupsConnection::DetachNetworkEndpoints"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DetachNetworkEndpoints( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -185,7 +185,7 @@ GlobalNetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( auto span = internal::MakeSpan( "compute_global_network_endpoint_groups_v1::" "GlobalNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertNetworkEndpointGroup( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/global_operations/v1/global_operations_connection.h b/google/cloud/compute/global_operations/v1/global_operations_connection.h index f3cbabf14e43f..a78fc31eb343f 100644 --- a/google/cloud/compute/global_operations/v1/global_operations_connection.h +++ b/google/cloud/compute/global_operations/v1/global_operations_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/compute/global_operations/v1/global_operations_connection_idempotency_policy.h" #include "google/cloud/compute/global_operations/v1/internal/global_operations_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/compute/global_organization_operations/v1/global_organization_operations_connection.h b/google/cloud/compute/global_organization_operations/v1/global_organization_operations_connection.h index 36354dee65d54..6d10684beef4a 100644 --- a/google/cloud/compute/global_organization_operations/v1/global_organization_operations_connection.h +++ b/google/cloud/compute/global_organization_operations/v1/global_organization_operations_connection.h @@ -22,7 +22,6 @@ #include "google/cloud/compute/global_organization_operations/v1/global_organization_operations_connection_idempotency_policy.h" #include "google/cloud/compute/global_organization_operations/v1/internal/global_organization_operations_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection.cc b/google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection.cc index 56eee7940ec4c..86010fad7cb41 100644 --- a/google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection.cc +++ b/google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection.cc @@ -49,7 +49,7 @@ GlobalPublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix( StatusOr GlobalPublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const&) { return StatusOr( @@ -58,8 +58,7 @@ GlobalPublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix( future> GlobalPublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -83,7 +82,7 @@ GlobalPublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix( StatusOr GlobalPublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const&) { return StatusOr( @@ -92,8 +91,7 @@ GlobalPublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix( future> GlobalPublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +116,7 @@ GlobalPublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix( StatusOr GlobalPublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const&) { return StatusOr( @@ -127,8 +125,7 @@ GlobalPublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix( future> GlobalPublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection.h b/google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection.h index 4a242f5674790..97d08fca94566 100644 --- a/google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection.h +++ b/google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/global_public_delegated_prefixes/v1/global_public_delegated_prefixes_connection_idempotency_policy.h" #include "google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -214,13 +214,13 @@ class GlobalPublicDelegatedPrefixesConnection { virtual StatusOr DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request); virtual future> DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -235,13 +235,13 @@ class GlobalPublicDelegatedPrefixesConnection { virtual StatusOr InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request); virtual future> InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -256,13 +256,13 @@ class GlobalPublicDelegatedPrefixesConnection { virtual StatusOr PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request); virtual future> PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_rest_connection_impl.cc b/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_rest_connection_impl.cc index ff2008e566115..8b8b5240322c6 100644 --- a/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_rest_connection_impl.cc +++ b/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_rest_connection_impl.cc @@ -109,7 +109,7 @@ GlobalPublicDelegatedPrefixesRestConnectionImpl::DeletePublicDelegatedPrefix( StatusOr GlobalPublicDelegatedPrefixesRestConnectionImpl::DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -127,7 +127,7 @@ GlobalPublicDelegatedPrefixesRestConnectionImpl::DeletePublicDelegatedPrefix( future> GlobalPublicDelegatedPrefixesRestConnectionImpl::DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -256,7 +256,7 @@ GlobalPublicDelegatedPrefixesRestConnectionImpl::InsertPublicDelegatedPrefix( StatusOr GlobalPublicDelegatedPrefixesRestConnectionImpl::InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -274,7 +274,7 @@ GlobalPublicDelegatedPrefixesRestConnectionImpl::InsertPublicDelegatedPrefix( future> GlobalPublicDelegatedPrefixesRestConnectionImpl::InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -430,7 +430,7 @@ GlobalPublicDelegatedPrefixesRestConnectionImpl::PatchPublicDelegatedPrefix( StatusOr GlobalPublicDelegatedPrefixesRestConnectionImpl::PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -448,7 +448,7 @@ GlobalPublicDelegatedPrefixesRestConnectionImpl::PatchPublicDelegatedPrefix( future> GlobalPublicDelegatedPrefixesRestConnectionImpl::PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_rest_connection_impl.h b/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_rest_connection_impl.h index 14e2e1b70c7b7..fe879d2a64960 100644 --- a/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_rest_connection_impl.h +++ b/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_rest_connection_impl.h @@ -61,13 +61,13 @@ class GlobalPublicDelegatedPrefixesRestConnectionImpl StatusOr DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request) override; future> DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -82,13 +82,13 @@ class GlobalPublicDelegatedPrefixesRestConnectionImpl StatusOr InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request) override; future> InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -103,13 +103,13 @@ class GlobalPublicDelegatedPrefixesRestConnectionImpl StatusOr PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request) override; future> PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_tracing_connection.cc b/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_tracing_connection.cc index 476ec586fc75c..cbdc2e36ec419 100644 --- a/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_tracing_connection.cc +++ b/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_tracing_connection.cc @@ -57,7 +57,7 @@ GlobalPublicDelegatedPrefixesTracingConnection::DeletePublicDelegatedPrefix( auto span = internal::MakeSpan( "compute_global_public_delegated_prefixes_v1::" "GlobalPublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeletePublicDelegatedPrefix( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -107,7 +107,7 @@ GlobalPublicDelegatedPrefixesTracingConnection::InsertPublicDelegatedPrefix( auto span = internal::MakeSpan( "compute_global_public_delegated_prefixes_v1::" "GlobalPublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertPublicDelegatedPrefix( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -162,7 +162,7 @@ GlobalPublicDelegatedPrefixesTracingConnection::PatchPublicDelegatedPrefix( auto span = internal::MakeSpan( "compute_global_public_delegated_prefixes_v1::" "GlobalPublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchPublicDelegatedPrefix( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/health_checks/v1/health_checks_connection.cc b/google/cloud/compute/health_checks/v1/health_checks_connection.cc index e646141818d43..547556756dc2c 100644 --- a/google/cloud/compute/health_checks/v1/health_checks_connection.cc +++ b/google/cloud/compute/health_checks/v1/health_checks_connection.cc @@ -57,7 +57,7 @@ HealthChecksConnection::DeleteHealthCheck( StatusOr HealthChecksConnection::DeleteHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: DeleteHealthCheckRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ HealthChecksConnection::DeleteHealthCheck( future> HealthChecksConnection::DeleteHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -91,7 +90,7 @@ HealthChecksConnection::InsertHealthCheck( StatusOr HealthChecksConnection::InsertHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: InsertHealthCheckRequest const&) { return StatusOr( @@ -100,8 +99,7 @@ HealthChecksConnection::InsertHealthCheck( future> HealthChecksConnection::InsertHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -126,7 +124,7 @@ HealthChecksConnection::PatchHealthCheck( StatusOr HealthChecksConnection::PatchHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: PatchHealthCheckRequest const&) { return StatusOr( @@ -135,8 +133,7 @@ HealthChecksConnection::PatchHealthCheck( future> HealthChecksConnection::PatchHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -153,7 +150,7 @@ HealthChecksConnection::UpdateHealthCheck( StatusOr HealthChecksConnection::UpdateHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: UpdateHealthCheckRequest const&) { return StatusOr( @@ -162,8 +159,7 @@ HealthChecksConnection::UpdateHealthCheck( future> HealthChecksConnection::UpdateHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/health_checks/v1/health_checks_connection.h b/google/cloud/compute/health_checks/v1/health_checks_connection.h index e66bb6113d680..7027c0e722f89 100644 --- a/google/cloud/compute/health_checks/v1/health_checks_connection.h +++ b/google/cloud/compute/health_checks/v1/health_checks_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/health_checks/v1/health_checks_connection_idempotency_policy.h" #include "google/cloud/compute/health_checks/v1/internal/health_checks_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,13 +197,13 @@ class HealthChecksConnection { DeleteHealthCheckRequest const& request); virtual StatusOr - DeleteHealthCheck(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + DeleteHealthCheck(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: DeleteHealthCheckRequest const& request); virtual future> DeleteHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetHealthCheck( @@ -215,13 +215,13 @@ class HealthChecksConnection { InsertHealthCheckRequest const& request); virtual StatusOr - InsertHealthCheck(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + InsertHealthCheck(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: InsertHealthCheckRequest const& request); virtual future> InsertHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -234,12 +234,12 @@ class HealthChecksConnection { PatchHealthCheckRequest const& request); virtual StatusOr PatchHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: PatchHealthCheckRequest const& request); virtual future> - PatchHealthCheck(google::cloud::ExperimentalTag, + PatchHealthCheck(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -247,13 +247,13 @@ class HealthChecksConnection { UpdateHealthCheckRequest const& request); virtual StatusOr - UpdateHealthCheck(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + UpdateHealthCheck(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: UpdateHealthCheckRequest const& request); virtual future> UpdateHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/health_checks/v1/internal/health_checks_rest_connection_impl.cc b/google/cloud/compute/health_checks/v1/internal/health_checks_rest_connection_impl.cc index f309aaf7772a3..da5952f1eab43 100644 --- a/google/cloud/compute/health_checks/v1/internal/health_checks_rest_connection_impl.cc +++ b/google/cloud/compute/health_checks/v1/internal/health_checks_rest_connection_impl.cc @@ -147,7 +147,7 @@ HealthChecksRestConnectionImpl::DeleteHealthCheck( StatusOr HealthChecksRestConnectionImpl::DeleteHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: DeleteHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -164,7 +164,7 @@ HealthChecksRestConnectionImpl::DeleteHealthCheck( future> HealthChecksRestConnectionImpl::DeleteHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -292,7 +292,7 @@ HealthChecksRestConnectionImpl::InsertHealthCheck( StatusOr HealthChecksRestConnectionImpl::InsertHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: InsertHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -309,7 +309,7 @@ HealthChecksRestConnectionImpl::InsertHealthCheck( future> HealthChecksRestConnectionImpl::InsertHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -458,7 +458,7 @@ HealthChecksRestConnectionImpl::PatchHealthCheck( StatusOr HealthChecksRestConnectionImpl::PatchHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: PatchHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -475,7 +475,7 @@ HealthChecksRestConnectionImpl::PatchHealthCheck( future> HealthChecksRestConnectionImpl::PatchHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -587,7 +587,7 @@ HealthChecksRestConnectionImpl::UpdateHealthCheck( StatusOr HealthChecksRestConnectionImpl::UpdateHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: UpdateHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -604,7 +604,7 @@ HealthChecksRestConnectionImpl::UpdateHealthCheck( future> HealthChecksRestConnectionImpl::UpdateHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/health_checks/v1/internal/health_checks_rest_connection_impl.h b/google/cloud/compute/health_checks/v1/internal/health_checks_rest_connection_impl.h index 852df29fef7c0..f5e3c9d8ff8db 100644 --- a/google/cloud/compute/health_checks/v1/internal/health_checks_rest_connection_impl.h +++ b/google/cloud/compute/health_checks/v1/internal/health_checks_rest_connection_impl.h @@ -62,13 +62,13 @@ class HealthChecksRestConnectionImpl DeleteHealthCheckRequest const& request) override; StatusOr DeleteHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: DeleteHealthCheckRequest const& request) override; future> DeleteHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetHealthCheck( @@ -80,13 +80,13 @@ class HealthChecksRestConnectionImpl InsertHealthCheckRequest const& request) override; StatusOr InsertHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: InsertHealthCheckRequest const& request) override; future> InsertHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListHealthChecks( @@ -98,12 +98,12 @@ class HealthChecksRestConnectionImpl PatchHealthCheckRequest const& request) override; StatusOr PatchHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: PatchHealthCheckRequest const& request) override; future> PatchHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -111,13 +111,13 @@ class HealthChecksRestConnectionImpl UpdateHealthCheckRequest const& request) override; StatusOr UpdateHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: UpdateHealthCheckRequest const& request) override; future> UpdateHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.cc b/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.cc index 0d23f66b66a39..17d71ad968987 100644 --- a/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.cc +++ b/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.cc @@ -65,7 +65,7 @@ HealthChecksTracingConnection::DeleteHealthCheck( DeleteHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_health_checks_v1::HealthChecksConnection::DeleteHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteHealthCheck(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -110,7 +110,7 @@ HealthChecksTracingConnection::InsertHealthCheck( InsertHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_health_checks_v1::HealthChecksConnection::InsertHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertHealthCheck(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -158,7 +158,7 @@ HealthChecksTracingConnection::PatchHealthCheck( PatchHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_health_checks_v1::HealthChecksConnection::PatchHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchHealthCheck(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -193,7 +193,7 @@ HealthChecksTracingConnection::UpdateHealthCheck( UpdateHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_health_checks_v1::HealthChecksConnection::UpdateHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateHealthCheck(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/http_health_checks/v1/http_health_checks_connection.cc b/google/cloud/compute/http_health_checks/v1/http_health_checks_connection.cc index ad1ff66cdd7ae..2148055e608e7 100644 --- a/google/cloud/compute/http_health_checks/v1/http_health_checks_connection.cc +++ b/google/cloud/compute/http_health_checks/v1/http_health_checks_connection.cc @@ -47,7 +47,7 @@ HttpHealthChecksConnection::DeleteHttpHealthCheck( StatusOr HttpHealthChecksConnection::DeleteHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: DeleteHttpHealthCheckRequest const&) { return StatusOr( @@ -56,8 +56,7 @@ HttpHealthChecksConnection::DeleteHttpHealthCheck( future> HttpHealthChecksConnection::DeleteHttpHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -81,7 +80,7 @@ HttpHealthChecksConnection::InsertHttpHealthCheck( StatusOr HttpHealthChecksConnection::InsertHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: InsertHttpHealthCheckRequest const&) { return StatusOr( @@ -90,8 +89,7 @@ HttpHealthChecksConnection::InsertHttpHealthCheck( future> HttpHealthChecksConnection::InsertHttpHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -116,7 +114,7 @@ HttpHealthChecksConnection::PatchHttpHealthCheck( StatusOr HttpHealthChecksConnection::PatchHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: PatchHttpHealthCheckRequest const&) { return StatusOr( @@ -125,8 +123,7 @@ HttpHealthChecksConnection::PatchHttpHealthCheck( future> HttpHealthChecksConnection::PatchHttpHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -143,7 +140,7 @@ HttpHealthChecksConnection::UpdateHttpHealthCheck( StatusOr HttpHealthChecksConnection::UpdateHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: UpdateHttpHealthCheckRequest const&) { return StatusOr( @@ -152,8 +149,7 @@ HttpHealthChecksConnection::UpdateHttpHealthCheck( future> HttpHealthChecksConnection::UpdateHttpHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/http_health_checks/v1/http_health_checks_connection.h b/google/cloud/compute/http_health_checks/v1/http_health_checks_connection.h index 9823b5cddc424..edede85f48ce5 100644 --- a/google/cloud/compute/http_health_checks/v1/http_health_checks_connection.h +++ b/google/cloud/compute/http_health_checks/v1/http_health_checks_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/http_health_checks/v1/http_health_checks_connection_idempotency_policy.h" #include "google/cloud/compute/http_health_checks/v1/internal/http_health_checks_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,14 +193,13 @@ class HttpHealthChecksConnection { DeleteHttpHealthCheckRequest const& request); virtual StatusOr - DeleteHttpHealthCheck(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteHttpHealthCheck(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: DeleteHttpHealthCheckRequest const& request); virtual future> DeleteHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -212,14 +211,13 @@ class HttpHealthChecksConnection { InsertHttpHealthCheckRequest const& request); virtual StatusOr - InsertHttpHealthCheck(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertHttpHealthCheck(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: InsertHttpHealthCheckRequest const& request); virtual future> InsertHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -231,14 +229,13 @@ class HttpHealthChecksConnection { PatchHttpHealthCheckRequest const& request); virtual StatusOr - PatchHttpHealthCheck(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + PatchHttpHealthCheck(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: PatchHttpHealthCheckRequest const& request); virtual future> PatchHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -246,14 +243,13 @@ class HttpHealthChecksConnection { UpdateHttpHealthCheckRequest const& request); virtual StatusOr - UpdateHttpHealthCheck(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + UpdateHttpHealthCheck(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: UpdateHttpHealthCheckRequest const& request); virtual future> UpdateHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_rest_connection_impl.cc b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_rest_connection_impl.cc index 83cfc036d25aa..d0f0232a68b97 100644 --- a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_rest_connection_impl.cc +++ b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_rest_connection_impl.cc @@ -105,7 +105,7 @@ HttpHealthChecksRestConnectionImpl::DeleteHttpHealthCheck( StatusOr HttpHealthChecksRestConnectionImpl::DeleteHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: DeleteHttpHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -122,7 +122,7 @@ HttpHealthChecksRestConnectionImpl::DeleteHttpHealthCheck( future> HttpHealthChecksRestConnectionImpl::DeleteHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -250,7 +250,7 @@ HttpHealthChecksRestConnectionImpl::InsertHttpHealthCheck( StatusOr HttpHealthChecksRestConnectionImpl::InsertHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: InsertHttpHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -267,7 +267,7 @@ HttpHealthChecksRestConnectionImpl::InsertHttpHealthCheck( future> HttpHealthChecksRestConnectionImpl::InsertHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -418,7 +418,7 @@ HttpHealthChecksRestConnectionImpl::PatchHttpHealthCheck( StatusOr HttpHealthChecksRestConnectionImpl::PatchHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: PatchHttpHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -435,7 +435,7 @@ HttpHealthChecksRestConnectionImpl::PatchHttpHealthCheck( future> HttpHealthChecksRestConnectionImpl::PatchHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -547,7 +547,7 @@ HttpHealthChecksRestConnectionImpl::UpdateHttpHealthCheck( StatusOr HttpHealthChecksRestConnectionImpl::UpdateHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: UpdateHttpHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -564,7 +564,7 @@ HttpHealthChecksRestConnectionImpl::UpdateHttpHealthCheck( future> HttpHealthChecksRestConnectionImpl::UpdateHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_rest_connection_impl.h b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_rest_connection_impl.h index cbef549b8c15a..cef07aca4b6a2 100644 --- a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_rest_connection_impl.h +++ b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_rest_connection_impl.h @@ -58,13 +58,13 @@ class HttpHealthChecksRestConnectionImpl DeleteHttpHealthCheckRequest const& request) override; StatusOr DeleteHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: DeleteHttpHealthCheckRequest const& request) override; future> DeleteHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetHttpHealthCheck( @@ -77,13 +77,13 @@ class HttpHealthChecksRestConnectionImpl InsertHttpHealthCheckRequest const& request) override; StatusOr InsertHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: InsertHttpHealthCheckRequest const& request) override; future> InsertHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -95,13 +95,13 @@ class HttpHealthChecksRestConnectionImpl PatchHttpHealthCheckRequest const& request) override; StatusOr PatchHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: PatchHttpHealthCheckRequest const& request) override; future> PatchHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -110,13 +110,13 @@ class HttpHealthChecksRestConnectionImpl UpdateHttpHealthCheckRequest const& request) override; StatusOr UpdateHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: UpdateHttpHealthCheckRequest const& request) override; future> UpdateHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.cc b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.cc index 975b2aa1c0184..fdafa41b9b9be 100644 --- a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.cc +++ b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.cc @@ -54,7 +54,7 @@ HttpHealthChecksTracingConnection::DeleteHttpHealthCheck( auto span = internal::MakeSpan( "compute_http_health_checks_v1::HttpHealthChecksConnection::" "DeleteHttpHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteHttpHealthCheck( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -104,7 +104,7 @@ HttpHealthChecksTracingConnection::InsertHttpHealthCheck( auto span = internal::MakeSpan( "compute_http_health_checks_v1::HttpHealthChecksConnection::" "InsertHttpHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertHttpHealthCheck( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -157,7 +157,7 @@ HttpHealthChecksTracingConnection::PatchHttpHealthCheck( auto span = internal::MakeSpan( "compute_http_health_checks_v1::HttpHealthChecksConnection::" "PatchHttpHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchHttpHealthCheck( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -196,7 +196,7 @@ HttpHealthChecksTracingConnection::UpdateHttpHealthCheck( auto span = internal::MakeSpan( "compute_http_health_checks_v1::HttpHealthChecksConnection::" "UpdateHttpHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateHttpHealthCheck( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/https_health_checks/v1/https_health_checks_connection.cc b/google/cloud/compute/https_health_checks/v1/https_health_checks_connection.cc index cc841c832aecb..ebf24b1b575fd 100644 --- a/google/cloud/compute/https_health_checks/v1/https_health_checks_connection.cc +++ b/google/cloud/compute/https_health_checks/v1/https_health_checks_connection.cc @@ -47,7 +47,7 @@ HttpsHealthChecksConnection::DeleteHttpsHealthCheck( StatusOr HttpsHealthChecksConnection::DeleteHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: DeleteHttpsHealthCheckRequest const&) { return StatusOr( @@ -56,8 +56,7 @@ HttpsHealthChecksConnection::DeleteHttpsHealthCheck( future> HttpsHealthChecksConnection::DeleteHttpsHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -81,7 +80,7 @@ HttpsHealthChecksConnection::InsertHttpsHealthCheck( StatusOr HttpsHealthChecksConnection::InsertHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: InsertHttpsHealthCheckRequest const&) { return StatusOr( @@ -90,8 +89,7 @@ HttpsHealthChecksConnection::InsertHttpsHealthCheck( future> HttpsHealthChecksConnection::InsertHttpsHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -116,7 +114,7 @@ HttpsHealthChecksConnection::PatchHttpsHealthCheck( StatusOr HttpsHealthChecksConnection::PatchHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: PatchHttpsHealthCheckRequest const&) { return StatusOr( @@ -125,8 +123,7 @@ HttpsHealthChecksConnection::PatchHttpsHealthCheck( future> HttpsHealthChecksConnection::PatchHttpsHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -143,7 +140,7 @@ HttpsHealthChecksConnection::UpdateHttpsHealthCheck( StatusOr HttpsHealthChecksConnection::UpdateHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: UpdateHttpsHealthCheckRequest const&) { return StatusOr( @@ -152,8 +149,7 @@ HttpsHealthChecksConnection::UpdateHttpsHealthCheck( future> HttpsHealthChecksConnection::UpdateHttpsHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/https_health_checks/v1/https_health_checks_connection.h b/google/cloud/compute/https_health_checks/v1/https_health_checks_connection.h index 58337657fe7d7..62635072b2a81 100644 --- a/google/cloud/compute/https_health_checks/v1/https_health_checks_connection.h +++ b/google/cloud/compute/https_health_checks/v1/https_health_checks_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/https_health_checks/v1/https_health_checks_connection_idempotency_policy.h" #include "google/cloud/compute/https_health_checks/v1/internal/https_health_checks_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,14 +193,13 @@ class HttpsHealthChecksConnection { DeleteHttpsHealthCheckRequest const& request); virtual StatusOr - DeleteHttpsHealthCheck(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteHttpsHealthCheck(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: DeleteHttpsHealthCheckRequest const& request); virtual future> DeleteHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -212,14 +211,13 @@ class HttpsHealthChecksConnection { InsertHttpsHealthCheckRequest const& request); virtual StatusOr - InsertHttpsHealthCheck(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertHttpsHealthCheck(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: InsertHttpsHealthCheckRequest const& request); virtual future> InsertHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -231,14 +229,13 @@ class HttpsHealthChecksConnection { PatchHttpsHealthCheckRequest const& request); virtual StatusOr - PatchHttpsHealthCheck(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + PatchHttpsHealthCheck(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: PatchHttpsHealthCheckRequest const& request); virtual future> PatchHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -246,14 +243,13 @@ class HttpsHealthChecksConnection { UpdateHttpsHealthCheckRequest const& request); virtual StatusOr - UpdateHttpsHealthCheck(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + UpdateHttpsHealthCheck(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: UpdateHttpsHealthCheckRequest const& request); virtual future> UpdateHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_rest_connection_impl.cc b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_rest_connection_impl.cc index 092a9a7268189..00891f4bf23f1 100644 --- a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_rest_connection_impl.cc +++ b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_rest_connection_impl.cc @@ -105,7 +105,7 @@ HttpsHealthChecksRestConnectionImpl::DeleteHttpsHealthCheck( StatusOr HttpsHealthChecksRestConnectionImpl::DeleteHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: DeleteHttpsHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -122,7 +122,7 @@ HttpsHealthChecksRestConnectionImpl::DeleteHttpsHealthCheck( future> HttpsHealthChecksRestConnectionImpl::DeleteHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -250,7 +250,7 @@ HttpsHealthChecksRestConnectionImpl::InsertHttpsHealthCheck( StatusOr HttpsHealthChecksRestConnectionImpl::InsertHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: InsertHttpsHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -267,7 +267,7 @@ HttpsHealthChecksRestConnectionImpl::InsertHttpsHealthCheck( future> HttpsHealthChecksRestConnectionImpl::InsertHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -419,7 +419,7 @@ HttpsHealthChecksRestConnectionImpl::PatchHttpsHealthCheck( StatusOr HttpsHealthChecksRestConnectionImpl::PatchHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: PatchHttpsHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -436,7 +436,7 @@ HttpsHealthChecksRestConnectionImpl::PatchHttpsHealthCheck( future> HttpsHealthChecksRestConnectionImpl::PatchHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -548,7 +548,7 @@ HttpsHealthChecksRestConnectionImpl::UpdateHttpsHealthCheck( StatusOr HttpsHealthChecksRestConnectionImpl::UpdateHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: UpdateHttpsHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -565,7 +565,7 @@ HttpsHealthChecksRestConnectionImpl::UpdateHttpsHealthCheck( future> HttpsHealthChecksRestConnectionImpl::UpdateHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_rest_connection_impl.h b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_rest_connection_impl.h index d93b79c1c1820..3288e2c5b3d7a 100644 --- a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_rest_connection_impl.h +++ b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_rest_connection_impl.h @@ -58,13 +58,13 @@ class HttpsHealthChecksRestConnectionImpl DeleteHttpsHealthCheckRequest const& request) override; StatusOr DeleteHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: DeleteHttpsHealthCheckRequest const& request) override; future> DeleteHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -77,13 +77,13 @@ class HttpsHealthChecksRestConnectionImpl InsertHttpsHealthCheckRequest const& request) override; StatusOr InsertHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: InsertHttpsHealthCheckRequest const& request) override; future> InsertHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -96,13 +96,13 @@ class HttpsHealthChecksRestConnectionImpl PatchHttpsHealthCheckRequest const& request) override; StatusOr PatchHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: PatchHttpsHealthCheckRequest const& request) override; future> PatchHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -111,13 +111,13 @@ class HttpsHealthChecksRestConnectionImpl UpdateHttpsHealthCheckRequest const& request) override; StatusOr UpdateHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: UpdateHttpsHealthCheckRequest const& request) override; future> UpdateHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.cc b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.cc index c1a1b9f50c0ee..76e155f5a773c 100644 --- a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.cc +++ b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.cc @@ -54,7 +54,7 @@ HttpsHealthChecksTracingConnection::DeleteHttpsHealthCheck( auto span = internal::MakeSpan( "compute_https_health_checks_v1::HttpsHealthChecksConnection::" "DeleteHttpsHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteHttpsHealthCheck( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -104,7 +104,7 @@ HttpsHealthChecksTracingConnection::InsertHttpsHealthCheck( auto span = internal::MakeSpan( "compute_https_health_checks_v1::HttpsHealthChecksConnection::" "InsertHttpsHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertHttpsHealthCheck( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -157,7 +157,7 @@ HttpsHealthChecksTracingConnection::PatchHttpsHealthCheck( auto span = internal::MakeSpan( "compute_https_health_checks_v1::HttpsHealthChecksConnection::" "PatchHttpsHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchHttpsHealthCheck( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -196,7 +196,7 @@ HttpsHealthChecksTracingConnection::UpdateHttpsHealthCheck( auto span = internal::MakeSpan( "compute_https_health_checks_v1::HttpsHealthChecksConnection::" "UpdateHttpsHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateHttpsHealthCheck( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/image_family_views/v1/image_family_views_connection.h b/google/cloud/compute/image_family_views/v1/image_family_views_connection.h index fc80986b436b0..aa9bace9b54e5 100644 --- a/google/cloud/compute/image_family_views/v1/image_family_views_connection.h +++ b/google/cloud/compute/image_family_views/v1/image_family_views_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/compute/image_family_views/v1/image_family_views_connection_idempotency_policy.h" #include "google/cloud/compute/image_family_views/v1/internal/image_family_views_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/compute/images/v1/images_connection.cc b/google/cloud/compute/images/v1/images_connection.cc index a75d3919ad3fb..b20f3f9db3839 100644 --- a/google/cloud/compute/images/v1/images_connection.cc +++ b/google/cloud/compute/images/v1/images_connection.cc @@ -46,7 +46,7 @@ ImagesConnection::DeleteImage( StatusOr ImagesConnection::DeleteImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::DeleteImageRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -54,8 +54,7 @@ ImagesConnection::DeleteImage( future> ImagesConnection::DeleteImage( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -71,14 +70,14 @@ ImagesConnection::Deprecate( StatusOr ImagesConnection::Deprecate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::DeprecateRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ImagesConnection::Deprecate(google::cloud::ExperimentalTag, +ImagesConnection::Deprecate(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -112,7 +111,7 @@ ImagesConnection::InsertImage( StatusOr ImagesConnection::InsertImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::InsertImageRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -120,8 +119,7 @@ ImagesConnection::InsertImage( future> ImagesConnection::InsertImage( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -145,7 +143,7 @@ ImagesConnection::PatchImage( StatusOr ImagesConnection::PatchImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::PatchImageRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -153,8 +151,7 @@ ImagesConnection::PatchImage( future> ImagesConnection::PatchImage( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -176,14 +173,14 @@ ImagesConnection::SetLabels( StatusOr ImagesConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::SetLabelsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ImagesConnection::SetLabels(google::cloud::ExperimentalTag, +ImagesConnection::SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/compute/images/v1/images_connection.h b/google/cloud/compute/images/v1/images_connection.h index 73c17c0fded9f..f07c57612c4c4 100644 --- a/google/cloud/compute/images/v1/images_connection.h +++ b/google/cloud/compute/images/v1/images_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/images/v1/images_connection_idempotency_policy.h" #include "google/cloud/compute/images/v1/internal/images_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -187,12 +187,12 @@ class ImagesConnection { request); virtual StatusOr DeleteImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::DeleteImageRequest const& request); virtual future> - DeleteImage(google::cloud::ExperimentalTag, + DeleteImage(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -200,11 +200,11 @@ class ImagesConnection { google::cloud::cpp::compute::images::v1::DeprecateRequest const& request); virtual StatusOr Deprecate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::DeprecateRequest const& request); virtual future> - Deprecate(google::cloud::ExperimentalTag, + Deprecate(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetImage( @@ -223,12 +223,12 @@ class ImagesConnection { request); virtual StatusOr InsertImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::InsertImageRequest const& request); virtual future> - InsertImage(google::cloud::ExperimentalTag, + InsertImage(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange ListImages( @@ -239,12 +239,12 @@ class ImagesConnection { request); virtual StatusOr PatchImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::PatchImageRequest const& request); virtual future> - PatchImage(google::cloud::ExperimentalTag, + PatchImage(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr SetIamPolicy( @@ -256,11 +256,11 @@ class ImagesConnection { google::cloud::cpp::compute::images::v1::SetLabelsRequest const& request); virtual StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::SetLabelsRequest const& request); virtual future> - SetLabels(google::cloud::ExperimentalTag, + SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr diff --git a/google/cloud/compute/images/v1/internal/images_rest_connection_impl.cc b/google/cloud/compute/images/v1/internal/images_rest_connection_impl.cc index d0a71d356444d..02bb7199c7f1d 100644 --- a/google/cloud/compute/images/v1/internal/images_rest_connection_impl.cc +++ b/google/cloud/compute/images/v1/internal/images_rest_connection_impl.cc @@ -104,7 +104,7 @@ ImagesRestConnectionImpl::DeleteImage( StatusOr ImagesRestConnectionImpl::DeleteImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::DeleteImageRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -121,7 +121,7 @@ ImagesRestConnectionImpl::DeleteImage( future> ImagesRestConnectionImpl::DeleteImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -233,7 +233,7 @@ ImagesRestConnectionImpl::Deprecate( StatusOr ImagesRestConnectionImpl::Deprecate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::DeprecateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -249,7 +249,7 @@ ImagesRestConnectionImpl::Deprecate( future> ImagesRestConnectionImpl::Deprecate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -410,7 +410,7 @@ ImagesRestConnectionImpl::InsertImage( StatusOr ImagesRestConnectionImpl::InsertImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::InsertImageRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -427,7 +427,7 @@ ImagesRestConnectionImpl::InsertImage( future> ImagesRestConnectionImpl::InsertImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -574,7 +574,7 @@ ImagesRestConnectionImpl::PatchImage( StatusOr ImagesRestConnectionImpl::PatchImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::PatchImageRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -590,7 +590,7 @@ ImagesRestConnectionImpl::PatchImage( future> ImagesRestConnectionImpl::PatchImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -718,7 +718,7 @@ ImagesRestConnectionImpl::SetLabels( StatusOr ImagesRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::SetLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -734,7 +734,7 @@ ImagesRestConnectionImpl::SetLabels( future> ImagesRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/images/v1/internal/images_rest_connection_impl.h b/google/cloud/compute/images/v1/internal/images_rest_connection_impl.h index b08eb20b87140..5fc0d0e3085fc 100644 --- a/google/cloud/compute/images/v1/internal/images_rest_connection_impl.h +++ b/google/cloud/compute/images/v1/internal/images_rest_connection_impl.h @@ -54,12 +54,12 @@ class ImagesRestConnectionImpl : public compute_images_v1::ImagesConnection { request) override; StatusOr DeleteImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::DeleteImageRequest const& request) override; future> DeleteImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Deprecate( @@ -67,12 +67,12 @@ class ImagesRestConnectionImpl : public compute_images_v1::ImagesConnection { override; StatusOr Deprecate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::DeprecateRequest const& request) override; future> Deprecate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetImage( @@ -92,12 +92,12 @@ class ImagesRestConnectionImpl : public compute_images_v1::ImagesConnection { request) override; StatusOr InsertImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::InsertImageRequest const& request) override; future> InsertImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListImages( @@ -109,12 +109,12 @@ class ImagesRestConnectionImpl : public compute_images_v1::ImagesConnection { override; StatusOr PatchImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::PatchImageRequest const& request) override; future> PatchImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -126,12 +126,12 @@ class ImagesRestConnectionImpl : public compute_images_v1::ImagesConnection { override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr diff --git a/google/cloud/compute/images/v1/internal/images_tracing_connection.cc b/google/cloud/compute/images/v1/internal/images_tracing_connection.cc index 08828bc92b7d2..0d649f70cf3eb 100644 --- a/google/cloud/compute/images/v1/internal/images_tracing_connection.cc +++ b/google/cloud/compute/images/v1/internal/images_tracing_connection.cc @@ -50,7 +50,7 @@ ImagesTracingConnection::DeleteImage( request) { auto span = internal::MakeSpan("compute_images_v1::ImagesConnection::DeleteImage"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteImage(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -83,7 +83,7 @@ ImagesTracingConnection::Deprecate( google::cloud::cpp::compute::images::v1::DeprecateRequest const& request) { auto span = internal::MakeSpan("compute_images_v1::ImagesConnection::Deprecate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->Deprecate(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -147,7 +147,7 @@ ImagesTracingConnection::InsertImage( request) { auto span = internal::MakeSpan("compute_images_v1::ImagesConnection::InsertImage"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertImage(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -191,7 +191,7 @@ ImagesTracingConnection::PatchImage( google::cloud::cpp::compute::images::v1::PatchImageRequest const& request) { auto span = internal::MakeSpan("compute_images_v1::ImagesConnection::PatchImage"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchImage(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -234,7 +234,7 @@ ImagesTracingConnection::SetLabels( google::cloud::cpp::compute::images::v1::SetLabelsRequest const& request) { auto span = internal::MakeSpan("compute_images_v1::ImagesConnection::SetLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection.cc b/google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection.cc index 4c05703b64d29..1f51834357d40 100644 --- a/google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection.cc +++ b/google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection.cc @@ -49,7 +49,7 @@ InstanceGroupManagerResizeRequestsConnection::Cancel( StatusOr InstanceGroupManagerResizeRequestsConnection::Cancel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: CancelRequest const&) { return StatusOr( @@ -58,8 +58,7 @@ InstanceGroupManagerResizeRequestsConnection::Cancel( future> InstanceGroupManagerResizeRequestsConnection::Cancel( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -78,7 +77,7 @@ InstanceGroupManagerResizeRequestsConnection:: StatusOr InstanceGroupManagerResizeRequestsConnection:: DeleteInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests:: v1::DeleteInstanceGroupManagerResizeRequestRequest const&) { return StatusOr( @@ -88,8 +87,7 @@ InstanceGroupManagerResizeRequestsConnection:: future> InstanceGroupManagerResizeRequestsConnection:: DeleteInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -116,7 +114,7 @@ InstanceGroupManagerResizeRequestsConnection:: StatusOr InstanceGroupManagerResizeRequestsConnection:: InsertInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests:: v1::InsertInstanceGroupManagerResizeRequestRequest const&) { return StatusOr( @@ -126,8 +124,7 @@ InstanceGroupManagerResizeRequestsConnection:: future> InstanceGroupManagerResizeRequestsConnection:: InsertInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection.h b/google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection.h index 92154e27e1713..9e20254904b52 100644 --- a/google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection.h +++ b/google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/instance_group_manager_resize_requests/v1/instance_group_manager_resize_requests_connection_idempotency_policy.h" #include "google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -214,12 +214,12 @@ class InstanceGroupManagerResizeRequestsConnection { CancelRequest const& request); virtual StatusOr Cancel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: CancelRequest const& request); virtual future> Cancel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -229,13 +229,13 @@ class InstanceGroupManagerResizeRequestsConnection { virtual StatusOr DeleteInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: DeleteInstanceGroupManagerResizeRequestRequest const& request); virtual future> DeleteInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr< @@ -251,13 +251,13 @@ class InstanceGroupManagerResizeRequestsConnection { virtual StatusOr InsertInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: InsertInstanceGroupManagerResizeRequestRequest const& request); virtual future> InsertInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange< diff --git a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_rest_connection_impl.cc b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_rest_connection_impl.cc index 0b5ca7795139a..63f5c6db0a9da 100644 --- a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_rest_connection_impl.cc +++ b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_rest_connection_impl.cc @@ -112,7 +112,7 @@ InstanceGroupManagerResizeRequestsRestConnectionImpl::Cancel( StatusOr InstanceGroupManagerResizeRequestsRestConnectionImpl::Cancel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: CancelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -130,7 +130,7 @@ InstanceGroupManagerResizeRequestsRestConnectionImpl::Cancel( future> InstanceGroupManagerResizeRequestsRestConnectionImpl::Cancel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -251,7 +251,7 @@ InstanceGroupManagerResizeRequestsRestConnectionImpl:: StatusOr InstanceGroupManagerResizeRequestsRestConnectionImpl:: DeleteInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests:: v1::DeleteInstanceGroupManagerResizeRequestRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -273,7 +273,7 @@ InstanceGroupManagerResizeRequestsRestConnectionImpl:: future> InstanceGroupManagerResizeRequestsRestConnectionImpl:: DeleteInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -414,7 +414,7 @@ InstanceGroupManagerResizeRequestsRestConnectionImpl:: StatusOr InstanceGroupManagerResizeRequestsRestConnectionImpl:: InsertInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests:: v1::InsertInstanceGroupManagerResizeRequestRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -436,7 +436,7 @@ InstanceGroupManagerResizeRequestsRestConnectionImpl:: future> InstanceGroupManagerResizeRequestsRestConnectionImpl:: InsertInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_rest_connection_impl.h b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_rest_connection_impl.h index c24ad9855dae1..997d420d7bb57 100644 --- a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_rest_connection_impl.h +++ b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_rest_connection_impl.h @@ -60,12 +60,12 @@ class InstanceGroupManagerResizeRequestsRestConnectionImpl CancelRequest const& request) override; StatusOr Cancel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: CancelRequest const& request) override; future> Cancel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -76,14 +76,14 @@ class InstanceGroupManagerResizeRequestsRestConnectionImpl StatusOr DeleteInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: DeleteInstanceGroupManagerResizeRequestRequest const& request) override; future> DeleteInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -99,14 +99,14 @@ class InstanceGroupManagerResizeRequestsRestConnectionImpl StatusOr InsertInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: InsertInstanceGroupManagerResizeRequestRequest const& request) override; future> InsertInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange< diff --git a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.cc b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.cc index 90ec1b62119c8..3732a250788ab 100644 --- a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.cc +++ b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.cc @@ -56,7 +56,7 @@ InstanceGroupManagerResizeRequestsTracingConnection::Cancel( auto span = internal::MakeSpan( "compute_instance_group_manager_resize_requests_v1::" "InstanceGroupManagerResizeRequestsConnection::Cancel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->Cancel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -100,7 +100,7 @@ InstanceGroupManagerResizeRequestsTracingConnection:: "compute_instance_group_manager_resize_requests_v1::" "InstanceGroupManagerResizeRequestsConnection::" "DeleteInstanceGroupManagerResizeRequest"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteInstanceGroupManagerResizeRequest( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, @@ -161,7 +161,7 @@ InstanceGroupManagerResizeRequestsTracingConnection:: "compute_instance_group_manager_resize_requests_v1::" "InstanceGroupManagerResizeRequestsConnection::" "InsertInstanceGroupManagerResizeRequest"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertInstanceGroupManagerResizeRequest( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, diff --git a/google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection.cc b/google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection.cc index 8f38ca48aa16c..3c900160b2a82 100644 --- a/google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection.cc +++ b/google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection.cc @@ -48,7 +48,7 @@ InstanceGroupManagersConnection::AbandonInstances( StatusOr InstanceGroupManagersConnection::AbandonInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: AbandonInstancesRequest const&) { return StatusOr( @@ -57,8 +57,7 @@ InstanceGroupManagersConnection::AbandonInstances( future> InstanceGroupManagersConnection::AbandonInstances( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +85,7 @@ InstanceGroupManagersConnection::ApplyUpdatesToInstances( StatusOr InstanceGroupManagersConnection::ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const&) { return StatusOr( @@ -95,8 +94,7 @@ InstanceGroupManagersConnection::ApplyUpdatesToInstances( future> InstanceGroupManagersConnection::ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -113,7 +111,7 @@ InstanceGroupManagersConnection::CreateInstances( StatusOr InstanceGroupManagersConnection::CreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: CreateInstancesRequest const&) { return StatusOr( @@ -122,8 +120,7 @@ InstanceGroupManagersConnection::CreateInstances( future> InstanceGroupManagersConnection::CreateInstances( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -140,7 +137,7 @@ InstanceGroupManagersConnection::DeleteInstanceGroupManager( StatusOr InstanceGroupManagersConnection::DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const&) { return StatusOr( @@ -149,8 +146,7 @@ InstanceGroupManagersConnection::DeleteInstanceGroupManager( future> InstanceGroupManagersConnection::DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -167,7 +163,7 @@ InstanceGroupManagersConnection::DeleteInstances( StatusOr InstanceGroupManagersConnection::DeleteInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstancesRequest const&) { return StatusOr( @@ -176,8 +172,7 @@ InstanceGroupManagersConnection::DeleteInstances( future> InstanceGroupManagersConnection::DeleteInstances( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -194,7 +189,7 @@ InstanceGroupManagersConnection::DeletePerInstanceConfigs( StatusOr InstanceGroupManagersConnection::DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeletePerInstanceConfigsRequest const&) { return StatusOr( @@ -203,8 +198,7 @@ InstanceGroupManagersConnection::DeletePerInstanceConfigs( future> InstanceGroupManagersConnection::DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -228,7 +222,7 @@ InstanceGroupManagersConnection::InsertInstanceGroupManager( StatusOr InstanceGroupManagersConnection::InsertInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: InsertInstanceGroupManagerRequest const&) { return StatusOr( @@ -237,8 +231,7 @@ InstanceGroupManagersConnection::InsertInstanceGroupManager( future> InstanceGroupManagersConnection::InsertInstanceGroupManager( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -287,7 +280,7 @@ InstanceGroupManagersConnection::PatchInstanceGroupManager( StatusOr InstanceGroupManagersConnection::PatchInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: PatchInstanceGroupManagerRequest const&) { return StatusOr( @@ -296,8 +289,7 @@ InstanceGroupManagersConnection::PatchInstanceGroupManager( future> InstanceGroupManagersConnection::PatchInstanceGroupManager( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -314,7 +306,7 @@ InstanceGroupManagersConnection::PatchPerInstanceConfigs( StatusOr InstanceGroupManagersConnection::PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: PatchPerInstanceConfigsRequest const&) { return StatusOr( @@ -323,8 +315,7 @@ InstanceGroupManagersConnection::PatchPerInstanceConfigs( future> InstanceGroupManagersConnection::PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -341,7 +332,7 @@ InstanceGroupManagersConnection::RecreateInstances( StatusOr InstanceGroupManagersConnection::RecreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: RecreateInstancesRequest const&) { return StatusOr( @@ -350,8 +341,7 @@ InstanceGroupManagersConnection::RecreateInstances( future> InstanceGroupManagersConnection::RecreateInstances( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -368,7 +358,7 @@ InstanceGroupManagersConnection::Resize( StatusOr InstanceGroupManagersConnection::Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: ResizeRequest const&) { return StatusOr( @@ -377,8 +367,7 @@ InstanceGroupManagersConnection::Resize( future> InstanceGroupManagersConnection::Resize( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -395,7 +384,7 @@ InstanceGroupManagersConnection::SetInstanceTemplate( StatusOr InstanceGroupManagersConnection::SetInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: SetInstanceTemplateRequest const&) { return StatusOr( @@ -404,8 +393,7 @@ InstanceGroupManagersConnection::SetInstanceTemplate( future> InstanceGroupManagersConnection::SetInstanceTemplate( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -422,7 +410,7 @@ InstanceGroupManagersConnection::SetTargetPools( StatusOr InstanceGroupManagersConnection::SetTargetPools( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: SetTargetPoolsRequest const&) { return StatusOr( @@ -431,8 +419,7 @@ InstanceGroupManagersConnection::SetTargetPools( future> InstanceGroupManagersConnection::SetTargetPools( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -449,7 +436,7 @@ InstanceGroupManagersConnection::UpdatePerInstanceConfigs( StatusOr InstanceGroupManagersConnection::UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const&) { return StatusOr( @@ -458,8 +445,7 @@ InstanceGroupManagersConnection::UpdatePerInstanceConfigs( future> InstanceGroupManagersConnection::UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection.h b/google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection.h index 663738fa8ff7f..463717e487f14 100644 --- a/google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection.h +++ b/google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/instance_group_managers/v1/instance_group_managers_connection_idempotency_policy.h" #include "google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -201,12 +201,12 @@ class InstanceGroupManagersConnection { AbandonInstancesRequest const& request); virtual StatusOr AbandonInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: AbandonInstancesRequest const& request); virtual future> - AbandonInstances(google::cloud::ExperimentalTag, + AbandonInstances(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request); virtual future> ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -237,12 +237,12 @@ class InstanceGroupManagersConnection { CreateInstancesRequest const& request); virtual StatusOr CreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: CreateInstancesRequest const& request); virtual future> - CreateInstances(google::cloud::ExperimentalTag, + CreateInstances(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -252,13 +252,13 @@ class InstanceGroupManagersConnection { virtual StatusOr DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request); virtual future> DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -266,12 +266,12 @@ class InstanceGroupManagersConnection { DeleteInstancesRequest const& request); virtual StatusOr DeleteInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstancesRequest const& request); virtual future> - DeleteInstances(google::cloud::ExperimentalTag, + DeleteInstances(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -281,13 +281,13 @@ class InstanceGroupManagersConnection { virtual StatusOr DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request); virtual future> DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -302,13 +302,13 @@ class InstanceGroupManagersConnection { virtual StatusOr InsertInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request); virtual future> InsertInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -337,13 +337,13 @@ class InstanceGroupManagersConnection { virtual StatusOr PatchInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request); virtual future> PatchInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -353,13 +353,13 @@ class InstanceGroupManagersConnection { virtual StatusOr PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request); virtual future> PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -367,13 +367,13 @@ class InstanceGroupManagersConnection { RecreateInstancesRequest const& request); virtual StatusOr - RecreateInstances(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + RecreateInstances(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: RecreateInstancesRequest const& request); virtual future> RecreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> Resize( @@ -381,12 +381,12 @@ class InstanceGroupManagersConnection { ResizeRequest const& request); virtual StatusOr Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: ResizeRequest const& request); virtual future> Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -394,13 +394,13 @@ class InstanceGroupManagersConnection { SetInstanceTemplateRequest const& request); virtual StatusOr - SetInstanceTemplate(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetInstanceTemplate(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: SetInstanceTemplateRequest const& request); virtual future> SetInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -408,12 +408,12 @@ class InstanceGroupManagersConnection { SetTargetPoolsRequest const& request); virtual StatusOr SetTargetPools( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: SetTargetPoolsRequest const& request); virtual future> - SetTargetPools(google::cloud::ExperimentalTag, + SetTargetPools(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -423,13 +423,13 @@ class InstanceGroupManagersConnection { virtual StatusOr UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request); virtual future> UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_rest_connection_impl.cc b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_rest_connection_impl.cc index b95e9406543e6..39a33ce0b07bf 100644 --- a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_rest_connection_impl.cc +++ b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_rest_connection_impl.cc @@ -109,7 +109,7 @@ InstanceGroupManagersRestConnectionImpl::AbandonInstances( StatusOr InstanceGroupManagersRestConnectionImpl::AbandonInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: AbandonInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -126,7 +126,7 @@ InstanceGroupManagersRestConnectionImpl::AbandonInstances( future> InstanceGroupManagersRestConnectionImpl::AbandonInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -289,7 +289,7 @@ InstanceGroupManagersRestConnectionImpl::ApplyUpdatesToInstances( StatusOr InstanceGroupManagersRestConnectionImpl::ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -306,7 +306,7 @@ InstanceGroupManagersRestConnectionImpl::ApplyUpdatesToInstances( future> InstanceGroupManagersRestConnectionImpl::ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -422,7 +422,7 @@ InstanceGroupManagersRestConnectionImpl::CreateInstances( StatusOr InstanceGroupManagersRestConnectionImpl::CreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: CreateInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -439,7 +439,7 @@ InstanceGroupManagersRestConnectionImpl::CreateInstances( future> InstanceGroupManagersRestConnectionImpl::CreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -555,7 +555,7 @@ InstanceGroupManagersRestConnectionImpl::DeleteInstanceGroupManager( StatusOr InstanceGroupManagersRestConnectionImpl::DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -573,7 +573,7 @@ InstanceGroupManagersRestConnectionImpl::DeleteInstanceGroupManager( future> InstanceGroupManagersRestConnectionImpl::DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -689,7 +689,7 @@ InstanceGroupManagersRestConnectionImpl::DeleteInstances( StatusOr InstanceGroupManagersRestConnectionImpl::DeleteInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -706,7 +706,7 @@ InstanceGroupManagersRestConnectionImpl::DeleteInstances( future> InstanceGroupManagersRestConnectionImpl::DeleteInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -822,7 +822,7 @@ InstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( StatusOr InstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -839,7 +839,7 @@ InstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( future> InstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -971,7 +971,7 @@ InstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( StatusOr InstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -989,7 +989,7 @@ InstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( future> InstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1242,7 +1242,7 @@ InstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( StatusOr InstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1259,7 +1259,7 @@ InstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( future> InstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1375,7 +1375,7 @@ InstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( StatusOr InstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1392,7 +1392,7 @@ InstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( future> InstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1508,7 +1508,7 @@ InstanceGroupManagersRestConnectionImpl::RecreateInstances( StatusOr InstanceGroupManagersRestConnectionImpl::RecreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: RecreateInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1525,7 +1525,7 @@ InstanceGroupManagersRestConnectionImpl::RecreateInstances( future> InstanceGroupManagersRestConnectionImpl::RecreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1641,7 +1641,7 @@ InstanceGroupManagersRestConnectionImpl::Resize( StatusOr InstanceGroupManagersRestConnectionImpl::Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: ResizeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1658,7 +1658,7 @@ InstanceGroupManagersRestConnectionImpl::Resize( future> InstanceGroupManagersRestConnectionImpl::Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1774,7 +1774,7 @@ InstanceGroupManagersRestConnectionImpl::SetInstanceTemplate( StatusOr InstanceGroupManagersRestConnectionImpl::SetInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: SetInstanceTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1791,7 +1791,7 @@ InstanceGroupManagersRestConnectionImpl::SetInstanceTemplate( future> InstanceGroupManagersRestConnectionImpl::SetInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1907,7 +1907,7 @@ InstanceGroupManagersRestConnectionImpl::SetTargetPools( StatusOr InstanceGroupManagersRestConnectionImpl::SetTargetPools( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: SetTargetPoolsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1924,7 +1924,7 @@ InstanceGroupManagersRestConnectionImpl::SetTargetPools( future> InstanceGroupManagersRestConnectionImpl::SetTargetPools( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -2040,7 +2040,7 @@ InstanceGroupManagersRestConnectionImpl::UpdatePerInstanceConfigs( StatusOr InstanceGroupManagersRestConnectionImpl::UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2057,7 +2057,7 @@ InstanceGroupManagersRestConnectionImpl::UpdatePerInstanceConfigs( future> InstanceGroupManagersRestConnectionImpl::UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_rest_connection_impl.h b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_rest_connection_impl.h index 23e01b9136041..2c3a16ba4b265 100644 --- a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_rest_connection_impl.h +++ b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_rest_connection_impl.h @@ -59,12 +59,12 @@ class InstanceGroupManagersRestConnectionImpl AbandonInstancesRequest const& request) override; StatusOr AbandonInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: AbandonInstancesRequest const& request) override; future> AbandonInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request) override; future> ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> CreateInstances( @@ -93,12 +93,12 @@ class InstanceGroupManagersRestConnectionImpl CreateInstancesRequest const& request) override; StatusOr CreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: CreateInstancesRequest const& request) override; future> CreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -108,13 +108,13 @@ class InstanceGroupManagersRestConnectionImpl StatusOr DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request) override; future> DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> DeleteInstances( @@ -122,12 +122,12 @@ class InstanceGroupManagersRestConnectionImpl DeleteInstancesRequest const& request) override; StatusOr DeleteInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstancesRequest const& request) override; future> DeleteInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -136,13 +136,13 @@ class InstanceGroupManagersRestConnectionImpl DeletePerInstanceConfigsRequest const& request) override; StatusOr DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request) override; future> DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -157,13 +157,13 @@ class InstanceGroupManagersRestConnectionImpl StatusOr InsertInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request) override; future> InsertInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -193,13 +193,13 @@ class InstanceGroupManagersRestConnectionImpl StatusOr PatchInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request) override; future> PatchInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -208,13 +208,13 @@ class InstanceGroupManagersRestConnectionImpl PatchPerInstanceConfigsRequest const& request) override; StatusOr PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request) override; future> PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -222,13 +222,13 @@ class InstanceGroupManagersRestConnectionImpl RecreateInstancesRequest const& request) override; StatusOr RecreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: RecreateInstancesRequest const& request) override; future> RecreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Resize( @@ -236,12 +236,12 @@ class InstanceGroupManagersRestConnectionImpl ResizeRequest const& request) override; StatusOr Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: ResizeRequest const& request) override; future> Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -249,13 +249,13 @@ class InstanceGroupManagersRestConnectionImpl SetInstanceTemplateRequest const& request) override; StatusOr SetInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: SetInstanceTemplateRequest const& request) override; future> SetInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetTargetPools( @@ -263,12 +263,12 @@ class InstanceGroupManagersRestConnectionImpl SetTargetPoolsRequest const& request) override; StatusOr SetTargetPools( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: SetTargetPoolsRequest const& request) override; future> SetTargetPools( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -277,13 +277,13 @@ class InstanceGroupManagersRestConnectionImpl UpdatePerInstanceConfigsRequest const& request) override; StatusOr UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request) override; future> UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.cc b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.cc index 1f5ea7e49f47a..a0f22297696f5 100644 --- a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.cc +++ b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.cc @@ -55,7 +55,7 @@ InstanceGroupManagersTracingConnection::AbandonInstances( auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "AbandonInstances"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AbandonInstances(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -111,7 +111,7 @@ InstanceGroupManagersTracingConnection::ApplyUpdatesToInstances( auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "ApplyUpdatesToInstances"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ApplyUpdatesToInstances( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -149,7 +149,7 @@ InstanceGroupManagersTracingConnection::CreateInstances( auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "CreateInstances"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateInstances(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -188,7 +188,7 @@ InstanceGroupManagersTracingConnection::DeleteInstanceGroupManager( auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "DeleteInstanceGroupManager"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteInstanceGroupManager( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -226,7 +226,7 @@ InstanceGroupManagersTracingConnection::DeleteInstances( auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "DeleteInstances"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteInstances(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -265,7 +265,7 @@ InstanceGroupManagersTracingConnection::DeletePerInstanceConfigs( auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "DeletePerInstanceConfigs"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeletePerInstanceConfigs( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -315,7 +315,7 @@ InstanceGroupManagersTracingConnection::InsertInstanceGroupManager( auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "InsertInstanceGroupManager"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertInstanceGroupManager( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -408,7 +408,7 @@ InstanceGroupManagersTracingConnection::PatchInstanceGroupManager( auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "PatchInstanceGroupManager"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchInstanceGroupManager( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -447,7 +447,7 @@ InstanceGroupManagersTracingConnection::PatchPerInstanceConfigs( auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "PatchPerInstanceConfigs"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchPerInstanceConfigs( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -485,7 +485,7 @@ InstanceGroupManagersTracingConnection::RecreateInstances( auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "RecreateInstances"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RecreateInstances(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -523,7 +523,7 @@ InstanceGroupManagersTracingConnection::Resize( auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "Resize"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->Resize(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -562,7 +562,7 @@ InstanceGroupManagersTracingConnection::SetInstanceTemplate( auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "SetInstanceTemplate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetInstanceTemplate(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -600,7 +600,7 @@ InstanceGroupManagersTracingConnection::SetTargetPools( auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "SetTargetPools"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetTargetPools(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -639,7 +639,7 @@ InstanceGroupManagersTracingConnection::UpdatePerInstanceConfigs( auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "UpdatePerInstanceConfigs"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdatePerInstanceConfigs( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/instance_groups/v1/instance_groups_connection.cc b/google/cloud/compute/instance_groups/v1/instance_groups_connection.cc index c80fb15e167c5..d0133bb2230b6 100644 --- a/google/cloud/compute/instance_groups/v1/instance_groups_connection.cc +++ b/google/cloud/compute/instance_groups/v1/instance_groups_connection.cc @@ -47,7 +47,7 @@ InstanceGroupsConnection::AddInstances( StatusOr InstanceGroupsConnection::AddInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: AddInstancesRequest const&) { return StatusOr( @@ -56,8 +56,7 @@ InstanceGroupsConnection::AddInstances( future> InstanceGroupsConnection::AddInstances( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -84,7 +83,7 @@ InstanceGroupsConnection::DeleteInstanceGroup( StatusOr InstanceGroupsConnection::DeleteInstanceGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: DeleteInstanceGroupRequest const&) { return StatusOr( @@ -93,8 +92,7 @@ InstanceGroupsConnection::DeleteInstanceGroup( future> InstanceGroupsConnection::DeleteInstanceGroup( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +116,7 @@ InstanceGroupsConnection::InsertInstanceGroup( StatusOr InstanceGroupsConnection::InsertInstanceGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: InsertInstanceGroupRequest const&) { return StatusOr( @@ -127,8 +125,7 @@ InstanceGroupsConnection::InsertInstanceGroup( future> InstanceGroupsConnection::InsertInstanceGroup( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -161,7 +158,7 @@ InstanceGroupsConnection::RemoveInstances( StatusOr InstanceGroupsConnection::RemoveInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: RemoveInstancesRequest const&) { return StatusOr( @@ -170,8 +167,7 @@ InstanceGroupsConnection::RemoveInstances( future> InstanceGroupsConnection::RemoveInstances( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -188,7 +184,7 @@ InstanceGroupsConnection::SetNamedPorts( StatusOr InstanceGroupsConnection::SetNamedPorts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: SetNamedPortsRequest const&) { return StatusOr( @@ -197,8 +193,7 @@ InstanceGroupsConnection::SetNamedPorts( future> InstanceGroupsConnection::SetNamedPorts( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/instance_groups/v1/instance_groups_connection.h b/google/cloud/compute/instance_groups/v1/instance_groups_connection.h index 520971d7dbffe..c30c985f3e0aa 100644 --- a/google/cloud/compute/instance_groups/v1/instance_groups_connection.h +++ b/google/cloud/compute/instance_groups/v1/instance_groups_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/instance_groups/v1/instance_groups_connection_idempotency_policy.h" #include "google/cloud/compute/instance_groups/v1/internal/instance_groups_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,12 +192,12 @@ class InstanceGroupsConnection { AddInstancesRequest const& request); virtual StatusOr AddInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: AddInstancesRequest const& request); virtual future> - AddInstances(google::cloud::ExperimentalTag, + AddInstances(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange - DeleteInstanceGroup(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + DeleteInstanceGroup(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: DeleteInstanceGroupRequest const& request); virtual future> DeleteInstanceGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -229,13 +229,13 @@ class InstanceGroupsConnection { InsertInstanceGroupRequest const& request); virtual StatusOr - InsertInstanceGroup(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + InsertInstanceGroup(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: InsertInstanceGroupRequest const& request); virtual future> InsertInstanceGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -252,12 +252,12 @@ class InstanceGroupsConnection { RemoveInstancesRequest const& request); virtual StatusOr RemoveInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: RemoveInstancesRequest const& request); virtual future> - RemoveInstances(google::cloud::ExperimentalTag, + RemoveInstances(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -265,12 +265,12 @@ class InstanceGroupsConnection { SetNamedPortsRequest const& request); virtual StatusOr SetNamedPorts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: SetNamedPortsRequest const& request); virtual future> - SetNamedPorts(google::cloud::ExperimentalTag, + SetNamedPorts(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/instance_groups/v1/internal/instance_groups_rest_connection_impl.cc b/google/cloud/compute/instance_groups/v1/internal/instance_groups_rest_connection_impl.cc index ab090655b317e..fbfcae62fc208 100644 --- a/google/cloud/compute/instance_groups/v1/internal/instance_groups_rest_connection_impl.cc +++ b/google/cloud/compute/instance_groups/v1/internal/instance_groups_rest_connection_impl.cc @@ -106,7 +106,7 @@ InstanceGroupsRestConnectionImpl::AddInstances( StatusOr InstanceGroupsRestConnectionImpl::AddInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1::AddInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -123,7 +123,7 @@ InstanceGroupsRestConnectionImpl::AddInstances( future> InstanceGroupsRestConnectionImpl::AddInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -281,7 +281,7 @@ InstanceGroupsRestConnectionImpl::DeleteInstanceGroup( StatusOr InstanceGroupsRestConnectionImpl::DeleteInstanceGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: DeleteInstanceGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -298,7 +298,7 @@ InstanceGroupsRestConnectionImpl::DeleteInstanceGroup( future> InstanceGroupsRestConnectionImpl::DeleteInstanceGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -430,7 +430,7 @@ InstanceGroupsRestConnectionImpl::InsertInstanceGroup( StatusOr InstanceGroupsRestConnectionImpl::InsertInstanceGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: InsertInstanceGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -447,7 +447,7 @@ InstanceGroupsRestConnectionImpl::InsertInstanceGroup( future> InstanceGroupsRestConnectionImpl::InsertInstanceGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -637,7 +637,7 @@ InstanceGroupsRestConnectionImpl::RemoveInstances( StatusOr InstanceGroupsRestConnectionImpl::RemoveInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: RemoveInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -654,7 +654,7 @@ InstanceGroupsRestConnectionImpl::RemoveInstances( future> InstanceGroupsRestConnectionImpl::RemoveInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -770,7 +770,7 @@ InstanceGroupsRestConnectionImpl::SetNamedPorts( StatusOr InstanceGroupsRestConnectionImpl::SetNamedPorts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: SetNamedPortsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -787,7 +787,7 @@ InstanceGroupsRestConnectionImpl::SetNamedPorts( future> InstanceGroupsRestConnectionImpl::SetNamedPorts( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/instance_groups/v1/internal/instance_groups_rest_connection_impl.h b/google/cloud/compute/instance_groups/v1/internal/instance_groups_rest_connection_impl.h index de024367e59f9..ed4e6b5184f6c 100644 --- a/google/cloud/compute/instance_groups/v1/internal/instance_groups_rest_connection_impl.h +++ b/google/cloud/compute/instance_groups/v1/internal/instance_groups_rest_connection_impl.h @@ -57,12 +57,12 @@ class InstanceGroupsRestConnectionImpl AddInstancesRequest const& request) override; StatusOr AddInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: AddInstancesRequest const& request) override; future> AddInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange DeleteInstanceGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: DeleteInstanceGroupRequest const& request) override; future> DeleteInstanceGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetInstanceGroup( @@ -94,13 +94,13 @@ class InstanceGroupsRestConnectionImpl InsertInstanceGroupRequest const& request) override; StatusOr InsertInstanceGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: InsertInstanceGroupRequest const& request) override; future> InsertInstanceGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -117,12 +117,12 @@ class InstanceGroupsRestConnectionImpl RemoveInstancesRequest const& request) override; StatusOr RemoveInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: RemoveInstancesRequest const& request) override; future> RemoveInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetNamedPorts( @@ -130,12 +130,12 @@ class InstanceGroupsRestConnectionImpl SetNamedPortsRequest const& request) override; StatusOr SetNamedPorts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: SetNamedPortsRequest const& request) override; future> SetNamedPorts( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.cc b/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.cc index eab853434fba1..bb32658866520 100644 --- a/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.cc +++ b/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.cc @@ -50,7 +50,7 @@ InstanceGroupsTracingConnection::AddInstances( request) { auto span = internal::MakeSpan( "compute_instance_groups_v1::InstanceGroupsConnection::AddInstances"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddInstances(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -103,7 +103,7 @@ InstanceGroupsTracingConnection::DeleteInstanceGroup( auto span = internal::MakeSpan( "compute_instance_groups_v1::InstanceGroupsConnection::" "DeleteInstanceGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteInstanceGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -152,7 +152,7 @@ InstanceGroupsTracingConnection::InsertInstanceGroup( auto span = internal::MakeSpan( "compute_instance_groups_v1::InstanceGroupsConnection::" "InsertInstanceGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertInstanceGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -215,7 +215,7 @@ InstanceGroupsTracingConnection::RemoveInstances( RemoveInstancesRequest const& request) { auto span = internal::MakeSpan( "compute_instance_groups_v1::InstanceGroupsConnection::RemoveInstances"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RemoveInstances(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -250,7 +250,7 @@ InstanceGroupsTracingConnection::SetNamedPorts( SetNamedPortsRequest const& request) { auto span = internal::MakeSpan( "compute_instance_groups_v1::InstanceGroupsConnection::SetNamedPorts"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetNamedPorts(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/instance_settings/v1/instance_settings_connection.cc b/google/cloud/compute/instance_settings/v1/instance_settings_connection.cc index 97b895ca14b29..9fccc41310a84 100644 --- a/google/cloud/compute/instance_settings/v1/instance_settings_connection.cc +++ b/google/cloud/compute/instance_settings/v1/instance_settings_connection.cc @@ -53,7 +53,7 @@ InstanceSettingsConnection::PatchInstanceSettings( StatusOr InstanceSettingsConnection::PatchInstanceSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_settings::v1:: PatchInstanceSettingsRequest const&) { return StatusOr( @@ -62,8 +62,7 @@ InstanceSettingsConnection::PatchInstanceSettings( future> InstanceSettingsConnection::PatchInstanceSettings( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/instance_settings/v1/instance_settings_connection.h b/google/cloud/compute/instance_settings/v1/instance_settings_connection.h index 394d789b56122..5e395d74f7a5e 100644 --- a/google/cloud/compute/instance_settings/v1/instance_settings_connection.h +++ b/google/cloud/compute/instance_settings/v1/instance_settings_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/instance_settings/v1/instance_settings_connection_idempotency_policy.h" #include "google/cloud/compute/instance_settings/v1/internal/instance_settings_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -196,14 +196,13 @@ class InstanceSettingsConnection { PatchInstanceSettingsRequest const& request); virtual StatusOr - PatchInstanceSettings(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + PatchInstanceSettings(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_settings::v1:: PatchInstanceSettingsRequest const& request); virtual future> PatchInstanceSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/instance_settings/v1/internal/instance_settings_rest_connection_impl.cc b/google/cloud/compute/instance_settings/v1/internal/instance_settings_rest_connection_impl.cc index 7fae364937ff9..23149a367439d 100644 --- a/google/cloud/compute/instance_settings/v1/internal/instance_settings_rest_connection_impl.cc +++ b/google/cloud/compute/instance_settings/v1/internal/instance_settings_rest_connection_impl.cc @@ -122,7 +122,7 @@ InstanceSettingsRestConnectionImpl::PatchInstanceSettings( StatusOr InstanceSettingsRestConnectionImpl::PatchInstanceSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_settings::v1:: PatchInstanceSettingsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -139,7 +139,7 @@ InstanceSettingsRestConnectionImpl::PatchInstanceSettings( future> InstanceSettingsRestConnectionImpl::PatchInstanceSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/instance_settings/v1/internal/instance_settings_rest_connection_impl.h b/google/cloud/compute/instance_settings/v1/internal/instance_settings_rest_connection_impl.h index bc6128e60297d..5420e87defdee 100644 --- a/google/cloud/compute/instance_settings/v1/internal/instance_settings_rest_connection_impl.h +++ b/google/cloud/compute/instance_settings/v1/internal/instance_settings_rest_connection_impl.h @@ -61,13 +61,13 @@ class InstanceSettingsRestConnectionImpl PatchInstanceSettingsRequest const& request) override; StatusOr PatchInstanceSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_settings::v1:: PatchInstanceSettingsRequest const& request) override; future> PatchInstanceSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.cc b/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.cc index f3fbebe6ef2e1..50918f063160e 100644 --- a/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.cc +++ b/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.cc @@ -64,7 +64,7 @@ InstanceSettingsTracingConnection::PatchInstanceSettings( auto span = internal::MakeSpan( "compute_instance_settings_v1::InstanceSettingsConnection::" "PatchInstanceSettings"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchInstanceSettings( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/instance_templates/v1/instance_templates_connection.cc b/google/cloud/compute/instance_templates/v1/instance_templates_connection.cc index 3dd7460c78f6b..d3022dd12bb4b 100644 --- a/google/cloud/compute/instance_templates/v1/instance_templates_connection.cc +++ b/google/cloud/compute/instance_templates/v1/instance_templates_connection.cc @@ -57,7 +57,7 @@ InstanceTemplatesConnection::DeleteInstanceTemplate( StatusOr InstanceTemplatesConnection::DeleteInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_templates::v1:: DeleteInstanceTemplateRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ InstanceTemplatesConnection::DeleteInstanceTemplate( future> InstanceTemplatesConnection::DeleteInstanceTemplate( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -98,7 +97,7 @@ InstanceTemplatesConnection::InsertInstanceTemplate( StatusOr InstanceTemplatesConnection::InsertInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_templates::v1:: InsertInstanceTemplateRequest const&) { return StatusOr( @@ -107,8 +106,7 @@ InstanceTemplatesConnection::InsertInstanceTemplate( future> InstanceTemplatesConnection::InsertInstanceTemplate( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/instance_templates/v1/instance_templates_connection.h b/google/cloud/compute/instance_templates/v1/instance_templates_connection.h index ce07898af972d..8e1b0d6beea26 100644 --- a/google/cloud/compute/instance_templates/v1/instance_templates_connection.h +++ b/google/cloud/compute/instance_templates/v1/instance_templates_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/instance_templates/v1/instance_templates_connection_idempotency_policy.h" #include "google/cloud/compute/instance_templates/v1/internal/instance_templates_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -200,14 +200,13 @@ class InstanceTemplatesConnection { DeleteInstanceTemplateRequest const& request); virtual StatusOr - DeleteInstanceTemplate(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteInstanceTemplate(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_templates::v1:: DeleteInstanceTemplateRequest const& request); virtual future> DeleteInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -223,14 +222,13 @@ class InstanceTemplatesConnection { InsertInstanceTemplateRequest const& request); virtual StatusOr - InsertInstanceTemplate(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertInstanceTemplate(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_templates::v1:: InsertInstanceTemplateRequest const& request); virtual future> InsertInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange diff --git a/google/cloud/compute/instance_templates/v1/internal/instance_templates_rest_connection_impl.cc b/google/cloud/compute/instance_templates/v1/internal/instance_templates_rest_connection_impl.cc index 1cf7515da2062..c995e0375bb75 100644 --- a/google/cloud/compute/instance_templates/v1/internal/instance_templates_rest_connection_impl.cc +++ b/google/cloud/compute/instance_templates/v1/internal/instance_templates_rest_connection_impl.cc @@ -148,7 +148,7 @@ InstanceTemplatesRestConnectionImpl::DeleteInstanceTemplate( StatusOr InstanceTemplatesRestConnectionImpl::DeleteInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_templates::v1:: DeleteInstanceTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -165,7 +165,7 @@ InstanceTemplatesRestConnectionImpl::DeleteInstanceTemplate( future> InstanceTemplatesRestConnectionImpl::DeleteInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -309,7 +309,7 @@ InstanceTemplatesRestConnectionImpl::InsertInstanceTemplate( StatusOr InstanceTemplatesRestConnectionImpl::InsertInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_templates::v1:: InsertInstanceTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -326,7 +326,7 @@ InstanceTemplatesRestConnectionImpl::InsertInstanceTemplate( future> InstanceTemplatesRestConnectionImpl::InsertInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/instance_templates/v1/internal/instance_templates_rest_connection_impl.h b/google/cloud/compute/instance_templates/v1/internal/instance_templates_rest_connection_impl.h index 10497a6e127ec..d11d64afac791 100644 --- a/google/cloud/compute/instance_templates/v1/internal/instance_templates_rest_connection_impl.h +++ b/google/cloud/compute/instance_templates/v1/internal/instance_templates_rest_connection_impl.h @@ -65,13 +65,13 @@ class InstanceTemplatesRestConnectionImpl DeleteInstanceTemplateRequest const& request) override; StatusOr DeleteInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_templates::v1:: DeleteInstanceTemplateRequest const& request) override; future> DeleteInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -88,13 +88,13 @@ class InstanceTemplatesRestConnectionImpl InsertInstanceTemplateRequest const& request) override; StatusOr InsertInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_templates::v1:: InsertInstanceTemplateRequest const& request) override; future> InsertInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.cc b/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.cc index 7544760046e7f..b90a083e92ede 100644 --- a/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.cc +++ b/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.cc @@ -70,7 +70,7 @@ InstanceTemplatesTracingConnection::DeleteInstanceTemplate( auto span = internal::MakeSpan( "compute_instance_templates_v1::InstanceTemplatesConnection::" "DeleteInstanceTemplate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteInstanceTemplate( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -131,7 +131,7 @@ InstanceTemplatesTracingConnection::InsertInstanceTemplate( auto span = internal::MakeSpan( "compute_instance_templates_v1::InstanceTemplatesConnection::" "InsertInstanceTemplate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertInstanceTemplate( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/instances/v1/instances_connection.cc b/google/cloud/compute/instances/v1/instances_connection.cc index f1cc34e042d86..91657cffcd050 100644 --- a/google/cloud/compute/instances/v1/instances_connection.cc +++ b/google/cloud/compute/instances/v1/instances_connection.cc @@ -46,7 +46,7 @@ InstancesConnection::AddAccessConfig( StatusOr InstancesConnection::AddAccessConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -54,8 +54,7 @@ InstancesConnection::AddAccessConfig( future> InstancesConnection::AddAccessConfig( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -72,7 +71,7 @@ InstancesConnection::AddResourcePolicies( StatusOr InstancesConnection::AddResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: AddResourcePoliciesRequest const&) { return StatusOr( @@ -81,8 +80,7 @@ InstancesConnection::AddResourcePolicies( future> InstancesConnection::AddResourcePolicies( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -108,7 +106,7 @@ InstancesConnection::AttachDisk( StatusOr InstancesConnection::AttachDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::AttachDiskRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -116,8 +114,7 @@ InstancesConnection::AttachDisk( future> InstancesConnection::AttachDisk( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -133,7 +130,7 @@ InstancesConnection::BulkInsert( StatusOr InstancesConnection::BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::BulkInsertRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -141,8 +138,7 @@ InstancesConnection::BulkInsert( future> InstancesConnection::BulkInsert( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -158,7 +154,7 @@ InstancesConnection::DeleteInstance( StatusOr InstancesConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -166,8 +162,7 @@ InstancesConnection::DeleteInstance( future> InstancesConnection::DeleteInstance( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -184,7 +179,7 @@ InstancesConnection::DeleteAccessConfig( StatusOr InstancesConnection::DeleteAccessConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: DeleteAccessConfigRequest const&) { return StatusOr( @@ -193,8 +188,7 @@ InstancesConnection::DeleteAccessConfig( future> InstancesConnection::DeleteAccessConfig( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -210,7 +204,7 @@ InstancesConnection::DetachDisk( StatusOr InstancesConnection::DetachDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::DetachDiskRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -218,8 +212,7 @@ InstancesConnection::DetachDisk( future> InstancesConnection::DetachDisk( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -282,7 +275,7 @@ InstancesConnection::InsertInstance( StatusOr InstancesConnection::InsertInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -290,8 +283,7 @@ InstancesConnection::InsertInstance( future> InstancesConnection::InsertInstance( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -324,7 +316,7 @@ InstancesConnection::PerformMaintenance( StatusOr InstancesConnection::PerformMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: PerformMaintenanceRequest const&) { return StatusOr( @@ -333,8 +325,7 @@ InstancesConnection::PerformMaintenance( future> InstancesConnection::PerformMaintenance( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -351,7 +342,7 @@ InstancesConnection::RemoveResourcePolicies( StatusOr InstancesConnection::RemoveResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: RemoveResourcePoliciesRequest const&) { return StatusOr( @@ -360,8 +351,7 @@ InstancesConnection::RemoveResourcePolicies( future> InstancesConnection::RemoveResourcePolicies( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -376,14 +366,14 @@ InstancesConnection::Reset( } StatusOr InstancesConnection::Reset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::ResetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -InstancesConnection::Reset(google::cloud::ExperimentalTag, +InstancesConnection::Reset(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -400,14 +390,14 @@ InstancesConnection::Resume( StatusOr InstancesConnection::Resume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::ResumeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -InstancesConnection::Resume(google::cloud::ExperimentalTag, +InstancesConnection::Resume(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -431,7 +421,7 @@ InstancesConnection::SetDeletionProtection( StatusOr InstancesConnection::SetDeletionProtection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetDeletionProtectionRequest const&) { return StatusOr( @@ -440,8 +430,7 @@ InstancesConnection::SetDeletionProtection( future> InstancesConnection::SetDeletionProtection( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -458,7 +447,7 @@ InstancesConnection::SetDiskAutoDelete( StatusOr InstancesConnection::SetDiskAutoDelete( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetDiskAutoDeleteRequest const&) { return StatusOr( @@ -467,8 +456,7 @@ InstancesConnection::SetDiskAutoDelete( future> InstancesConnection::SetDiskAutoDelete( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -490,7 +478,7 @@ InstancesConnection::SetLabels( StatusOr InstancesConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetLabelsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -498,8 +486,7 @@ InstancesConnection::SetLabels( future> InstancesConnection::SetLabels( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -516,7 +503,7 @@ InstancesConnection::SetMachineResources( StatusOr InstancesConnection::SetMachineResources( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetMachineResourcesRequest const&) { return StatusOr( @@ -525,8 +512,7 @@ InstancesConnection::SetMachineResources( future> InstancesConnection::SetMachineResources( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -542,7 +528,7 @@ InstancesConnection::SetMachineType( StatusOr InstancesConnection::SetMachineType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -550,8 +536,7 @@ InstancesConnection::SetMachineType( future> InstancesConnection::SetMachineType( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -567,7 +552,7 @@ InstancesConnection::SetMetadata( StatusOr InstancesConnection::SetMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMetadataRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -575,8 +560,7 @@ InstancesConnection::SetMetadata( future> InstancesConnection::SetMetadata( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -593,7 +577,7 @@ InstancesConnection::SetMinCpuPlatform( StatusOr InstancesConnection::SetMinCpuPlatform( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetMinCpuPlatformRequest const&) { return StatusOr( @@ -602,8 +586,7 @@ InstancesConnection::SetMinCpuPlatform( future> InstancesConnection::SetMinCpuPlatform( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -619,7 +602,7 @@ InstancesConnection::SetName( StatusOr InstancesConnection::SetName( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetNameRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -627,8 +610,7 @@ InstancesConnection::SetName( future> InstancesConnection::SetName( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -644,7 +626,7 @@ InstancesConnection::SetScheduling( StatusOr InstancesConnection::SetScheduling( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -652,8 +634,7 @@ InstancesConnection::SetScheduling( future> InstancesConnection::SetScheduling( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -670,7 +651,7 @@ InstancesConnection::SetSecurityPolicy( StatusOr InstancesConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetSecurityPolicyRequest const&) { return StatusOr( @@ -679,8 +660,7 @@ InstancesConnection::SetSecurityPolicy( future> InstancesConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -697,7 +677,7 @@ InstancesConnection::SetServiceAccount( StatusOr InstancesConnection::SetServiceAccount( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetServiceAccountRequest const&) { return StatusOr( @@ -706,8 +686,7 @@ InstancesConnection::SetServiceAccount( future> InstancesConnection::SetServiceAccount( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -724,7 +703,7 @@ InstancesConnection::SetShieldedInstanceIntegrityPolicy( StatusOr InstancesConnection::SetShieldedInstanceIntegrityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetShieldedInstanceIntegrityPolicyRequest const&) { return StatusOr( @@ -733,8 +712,7 @@ InstancesConnection::SetShieldedInstanceIntegrityPolicy( future> InstancesConnection::SetShieldedInstanceIntegrityPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -750,7 +728,7 @@ InstancesConnection::SetTags( StatusOr InstancesConnection::SetTags( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetTagsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -758,8 +736,7 @@ InstancesConnection::SetTags( future> InstancesConnection::SetTags( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -776,7 +753,7 @@ InstancesConnection::SimulateMaintenanceEvent( StatusOr InstancesConnection::SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SimulateMaintenanceEventRequest const&) { return StatusOr( @@ -785,8 +762,7 @@ InstancesConnection::SimulateMaintenanceEvent( future> InstancesConnection::SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -801,14 +777,14 @@ InstancesConnection::Start( } StatusOr InstancesConnection::Start( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::StartRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -InstancesConnection::Start(google::cloud::ExperimentalTag, +InstancesConnection::Start(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -826,7 +802,7 @@ InstancesConnection::StartWithEncryptionKey( StatusOr InstancesConnection::StartWithEncryptionKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: StartWithEncryptionKeyRequest const&) { return StatusOr( @@ -835,8 +811,7 @@ InstancesConnection::StartWithEncryptionKey( future> InstancesConnection::StartWithEncryptionKey( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -851,14 +826,14 @@ InstancesConnection::Stop( } StatusOr InstancesConnection::Stop( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::StopRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -InstancesConnection::Stop(google::cloud::ExperimentalTag, +InstancesConnection::Stop(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -875,7 +850,7 @@ InstancesConnection::Suspend( StatusOr InstancesConnection::Suspend( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SuspendRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -883,8 +858,7 @@ InstancesConnection::Suspend( future> InstancesConnection::Suspend( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -907,7 +881,7 @@ InstancesConnection::UpdateInstance( StatusOr InstancesConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -915,8 +889,7 @@ InstancesConnection::UpdateInstance( future> InstancesConnection::UpdateInstance( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -933,7 +906,7 @@ InstancesConnection::UpdateAccessConfig( StatusOr InstancesConnection::UpdateAccessConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateAccessConfigRequest const&) { return StatusOr( @@ -942,8 +915,7 @@ InstancesConnection::UpdateAccessConfig( future> InstancesConnection::UpdateAccessConfig( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -960,7 +932,7 @@ InstancesConnection::UpdateDisplayDevice( StatusOr InstancesConnection::UpdateDisplayDevice( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateDisplayDeviceRequest const&) { return StatusOr( @@ -969,8 +941,7 @@ InstancesConnection::UpdateDisplayDevice( future> InstancesConnection::UpdateDisplayDevice( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -987,7 +958,7 @@ InstancesConnection::UpdateNetworkInterface( StatusOr InstancesConnection::UpdateNetworkInterface( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateNetworkInterfaceRequest const&) { return StatusOr( @@ -996,8 +967,7 @@ InstancesConnection::UpdateNetworkInterface( future> InstancesConnection::UpdateNetworkInterface( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -1014,7 +984,7 @@ InstancesConnection::UpdateShieldedInstanceConfig( StatusOr InstancesConnection::UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateShieldedInstanceConfigRequest const&) { return StatusOr( @@ -1023,8 +993,7 @@ InstancesConnection::UpdateShieldedInstanceConfig( future> InstancesConnection::UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/instances/v1/instances_connection.h b/google/cloud/compute/instances/v1/instances_connection.h index b33eb6148c6aa..ced99a5be0f3d 100644 --- a/google/cloud/compute/instances/v1/instances_connection.h +++ b/google/cloud/compute/instances/v1/instances_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/instances/v1/instances_connection_idempotency_policy.h" #include "google/cloud/compute/instances/v1/internal/instances_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -191,12 +191,12 @@ class InstancesConnection { request); virtual StatusOr AddAccessConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const& request); virtual future> - AddAccessConfig(google::cloud::ExperimentalTag, + AddAccessConfig(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -204,13 +204,13 @@ class InstancesConnection { AddResourcePoliciesRequest const& request); virtual StatusOr - AddResourcePolicies(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + AddResourcePolicies(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: AddResourcePoliciesRequest const& request); virtual future> AddResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange AttachDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::AttachDiskRequest const& request); virtual future> - AttachDisk(google::cloud::ExperimentalTag, + AttachDisk(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -239,12 +239,12 @@ class InstancesConnection { request); virtual StatusOr BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& request); virtual future> - BulkInsert(google::cloud::ExperimentalTag, + BulkInsert(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -253,12 +253,12 @@ class InstancesConnection { request); virtual StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& request); virtual future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -266,13 +266,13 @@ class InstancesConnection { DeleteAccessConfigRequest const& request); virtual StatusOr - DeleteAccessConfig(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + DeleteAccessConfig(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: DeleteAccessConfigRequest const& request); virtual future> DeleteAccessConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -281,12 +281,12 @@ class InstancesConnection { request); virtual StatusOr DetachDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& request); virtual future> - DetachDisk(google::cloud::ExperimentalTag, + DetachDisk(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetInstance( @@ -325,12 +325,12 @@ class InstancesConnection { request); virtual StatusOr InsertInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& request); virtual future> - InsertInstance(google::cloud::ExperimentalTag, + InsertInstance(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange ListInstances( @@ -344,13 +344,13 @@ class InstancesConnection { PerformMaintenanceRequest const& request); virtual StatusOr - PerformMaintenance(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + PerformMaintenance(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: PerformMaintenanceRequest const& request); virtual future> PerformMaintenance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -358,36 +358,35 @@ class InstancesConnection { RemoveResourcePoliciesRequest const& request); virtual StatusOr - RemoveResourcePolicies(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + RemoveResourcePolicies(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: RemoveResourcePoliciesRequest const& request); virtual future> RemoveResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> Reset( google::cloud::cpp::compute::instances::v1::ResetRequest const& request); virtual StatusOr Reset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::ResetRequest const& request); virtual future> Reset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> Resume( google::cloud::cpp::compute::instances::v1::ResumeRequest const& request); virtual StatusOr Resume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::ResumeRequest const& request); virtual future> Resume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual Status SendDiagnosticInterrupt( @@ -399,14 +398,13 @@ class InstancesConnection { SetDeletionProtectionRequest const& request); virtual StatusOr - SetDeletionProtection(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + SetDeletionProtection(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetDeletionProtectionRequest const& request); virtual future> SetDeletionProtection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -414,13 +412,13 @@ class InstancesConnection { SetDiskAutoDeleteRequest const& request); virtual StatusOr - SetDiskAutoDelete(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetDiskAutoDelete(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetDiskAutoDeleteRequest const& request); virtual future> SetDiskAutoDelete( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr SetIamPolicy( @@ -432,12 +430,12 @@ class InstancesConnection { request); virtual StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& request); virtual future> - SetLabels(google::cloud::ExperimentalTag, + SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -445,13 +443,13 @@ class InstancesConnection { SetMachineResourcesRequest const& request); virtual StatusOr - SetMachineResources(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetMachineResources(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetMachineResourcesRequest const& request); virtual future> SetMachineResources( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -460,12 +458,12 @@ class InstancesConnection { request); virtual StatusOr SetMachineType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& request); virtual future> - SetMachineType(google::cloud::ExperimentalTag, + SetMachineType(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -474,12 +472,12 @@ class InstancesConnection { request); virtual StatusOr SetMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& request); virtual future> - SetMetadata(google::cloud::ExperimentalTag, + SetMetadata(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -487,13 +485,13 @@ class InstancesConnection { SetMinCpuPlatformRequest const& request); virtual StatusOr - SetMinCpuPlatform(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetMinCpuPlatform(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetMinCpuPlatformRequest const& request); virtual future> SetMinCpuPlatform( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> SetName( @@ -501,12 +499,12 @@ class InstancesConnection { request); virtual StatusOr SetName( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetNameRequest const& request); virtual future> SetName( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -515,12 +513,12 @@ class InstancesConnection { request); virtual StatusOr SetScheduling( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& request); virtual future> - SetScheduling(google::cloud::ExperimentalTag, + SetScheduling(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -528,13 +526,13 @@ class InstancesConnection { SetSecurityPolicyRequest const& request); virtual StatusOr - SetSecurityPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetSecurityPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetSecurityPolicyRequest const& request); virtual future> SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -542,13 +540,13 @@ class InstancesConnection { SetServiceAccountRequest const& request); virtual StatusOr - SetServiceAccount(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetServiceAccount(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetServiceAccountRequest const& request); virtual future> SetServiceAccount( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -558,13 +556,13 @@ class InstancesConnection { virtual StatusOr SetShieldedInstanceIntegrityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetShieldedInstanceIntegrityPolicyRequest const& request); virtual future> SetShieldedInstanceIntegrityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> SetTags( @@ -572,12 +570,12 @@ class InstancesConnection { request); virtual StatusOr SetTags( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request); virtual future> SetTags( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -585,25 +583,24 @@ class InstancesConnection { SimulateMaintenanceEventRequest const& request); virtual StatusOr - SimulateMaintenanceEvent(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + SimulateMaintenanceEvent(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SimulateMaintenanceEventRequest const& request); virtual future> SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> Start( google::cloud::cpp::compute::instances::v1::StartRequest const& request); virtual StatusOr Start( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::StartRequest const& request); virtual future> Start( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -611,25 +608,24 @@ class InstancesConnection { StartWithEncryptionKeyRequest const& request); virtual StatusOr - StartWithEncryptionKey(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + StartWithEncryptionKey(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: StartWithEncryptionKeyRequest const& request); virtual future> StartWithEncryptionKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> Stop( google::cloud::cpp::compute::instances::v1::StopRequest const& request); virtual StatusOr Stop( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::StopRequest const& request); virtual future> Stop( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> Suspend( @@ -637,12 +633,12 @@ class InstancesConnection { request); virtual StatusOr Suspend( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SuspendRequest const& request); virtual future> Suspend( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -655,12 +651,12 @@ class InstancesConnection { request); virtual StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& request); virtual future> - UpdateInstance(google::cloud::ExperimentalTag, + UpdateInstance(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -668,13 +664,13 @@ class InstancesConnection { UpdateAccessConfigRequest const& request); virtual StatusOr - UpdateAccessConfig(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + UpdateAccessConfig(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateAccessConfigRequest const& request); virtual future> UpdateAccessConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -682,13 +678,13 @@ class InstancesConnection { UpdateDisplayDeviceRequest const& request); virtual StatusOr - UpdateDisplayDevice(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + UpdateDisplayDevice(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateDisplayDeviceRequest const& request); virtual future> UpdateDisplayDevice( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -696,14 +692,13 @@ class InstancesConnection { UpdateNetworkInterfaceRequest const& request); virtual StatusOr - UpdateNetworkInterface(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + UpdateNetworkInterface(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateNetworkInterfaceRequest const& request); virtual future> UpdateNetworkInterface( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -713,13 +708,13 @@ class InstancesConnection { virtual StatusOr UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateShieldedInstanceConfigRequest const& request); virtual future> UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/instances/v1/internal/instances_rest_connection_impl.cc b/google/cloud/compute/instances/v1/internal/instances_rest_connection_impl.cc index 467d3f8883deb..3d1df71263e51 100644 --- a/google/cloud/compute/instances/v1/internal/instances_rest_connection_impl.cc +++ b/google/cloud/compute/instances/v1/internal/instances_rest_connection_impl.cc @@ -105,7 +105,7 @@ InstancesRestConnectionImpl::AddAccessConfig( StatusOr InstancesRestConnectionImpl::AddAccessConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -122,7 +122,7 @@ InstancesRestConnectionImpl::AddAccessConfig( future> InstancesRestConnectionImpl::AddAccessConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -238,7 +238,7 @@ InstancesRestConnectionImpl::AddResourcePolicies( StatusOr InstancesRestConnectionImpl::AddResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: AddResourcePoliciesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -255,7 +255,7 @@ InstancesRestConnectionImpl::AddResourcePolicies( future> InstancesRestConnectionImpl::AddResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -412,7 +412,7 @@ InstancesRestConnectionImpl::AttachDisk( StatusOr InstancesRestConnectionImpl::AttachDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::AttachDiskRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -430,7 +430,7 @@ InstancesRestConnectionImpl::AttachDisk( future> InstancesRestConnectionImpl::AttachDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -547,7 +547,7 @@ InstancesRestConnectionImpl::BulkInsert( StatusOr InstancesRestConnectionImpl::BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -565,7 +565,7 @@ InstancesRestConnectionImpl::BulkInsert( future> InstancesRestConnectionImpl::BulkInsert( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -681,7 +681,7 @@ InstancesRestConnectionImpl::DeleteInstance( StatusOr InstancesRestConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -698,7 +698,7 @@ InstancesRestConnectionImpl::DeleteInstance( future> InstancesRestConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -814,7 +814,7 @@ InstancesRestConnectionImpl::DeleteAccessConfig( StatusOr InstancesRestConnectionImpl::DeleteAccessConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::DeleteAccessConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -831,7 +831,7 @@ InstancesRestConnectionImpl::DeleteAccessConfig( future> InstancesRestConnectionImpl::DeleteAccessConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -948,7 +948,7 @@ InstancesRestConnectionImpl::DetachDisk( StatusOr InstancesRestConnectionImpl::DetachDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -966,7 +966,7 @@ InstancesRestConnectionImpl::DetachDisk( future> InstancesRestConnectionImpl::DetachDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1198,7 +1198,7 @@ InstancesRestConnectionImpl::InsertInstance( StatusOr InstancesRestConnectionImpl::InsertInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1215,7 +1215,7 @@ InstancesRestConnectionImpl::InsertInstance( future> InstancesRestConnectionImpl::InsertInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1401,7 +1401,7 @@ InstancesRestConnectionImpl::PerformMaintenance( StatusOr InstancesRestConnectionImpl::PerformMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::PerformMaintenanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1418,7 +1418,7 @@ InstancesRestConnectionImpl::PerformMaintenance( future> InstancesRestConnectionImpl::PerformMaintenance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1534,7 +1534,7 @@ InstancesRestConnectionImpl::RemoveResourcePolicies( StatusOr InstancesRestConnectionImpl::RemoveResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: RemoveResourcePoliciesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1551,7 +1551,7 @@ InstancesRestConnectionImpl::RemoveResourcePolicies( future> InstancesRestConnectionImpl::RemoveResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1667,7 +1667,7 @@ InstancesRestConnectionImpl::Reset( StatusOr InstancesRestConnectionImpl::Reset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::ResetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -1683,7 +1683,7 @@ InstancesRestConnectionImpl::Reset( future> InstancesRestConnectionImpl::Reset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1799,7 +1799,7 @@ InstancesRestConnectionImpl::Resume( StatusOr InstancesRestConnectionImpl::Resume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::ResumeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -1815,7 +1815,7 @@ InstancesRestConnectionImpl::Resume( future> InstancesRestConnectionImpl::Resume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1946,7 +1946,7 @@ InstancesRestConnectionImpl::SetDeletionProtection( StatusOr InstancesRestConnectionImpl::SetDeletionProtection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetDeletionProtectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1963,7 +1963,7 @@ InstancesRestConnectionImpl::SetDeletionProtection( future> InstancesRestConnectionImpl::SetDeletionProtection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -2079,7 +2079,7 @@ InstancesRestConnectionImpl::SetDiskAutoDelete( StatusOr InstancesRestConnectionImpl::SetDiskAutoDelete( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetDiskAutoDeleteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2096,7 +2096,7 @@ InstancesRestConnectionImpl::SetDiskAutoDelete( future> InstancesRestConnectionImpl::SetDiskAutoDelete( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -2230,7 +2230,7 @@ InstancesRestConnectionImpl::SetLabels( StatusOr InstancesRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2247,7 +2247,7 @@ InstancesRestConnectionImpl::SetLabels( future> InstancesRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -2363,7 +2363,7 @@ InstancesRestConnectionImpl::SetMachineResources( StatusOr InstancesRestConnectionImpl::SetMachineResources( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetMachineResourcesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2380,7 +2380,7 @@ InstancesRestConnectionImpl::SetMachineResources( future> InstancesRestConnectionImpl::SetMachineResources( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -2496,7 +2496,7 @@ InstancesRestConnectionImpl::SetMachineType( StatusOr InstancesRestConnectionImpl::SetMachineType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2513,7 +2513,7 @@ InstancesRestConnectionImpl::SetMachineType( future> InstancesRestConnectionImpl::SetMachineType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -2630,7 +2630,7 @@ InstancesRestConnectionImpl::SetMetadata( StatusOr InstancesRestConnectionImpl::SetMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2648,7 +2648,7 @@ InstancesRestConnectionImpl::SetMetadata( future> InstancesRestConnectionImpl::SetMetadata( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -2764,7 +2764,7 @@ InstancesRestConnectionImpl::SetMinCpuPlatform( StatusOr InstancesRestConnectionImpl::SetMinCpuPlatform( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMinCpuPlatformRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2781,7 +2781,7 @@ InstancesRestConnectionImpl::SetMinCpuPlatform( future> InstancesRestConnectionImpl::SetMinCpuPlatform( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -2897,7 +2897,7 @@ InstancesRestConnectionImpl::SetName( StatusOr InstancesRestConnectionImpl::SetName( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetNameRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -2913,7 +2913,7 @@ InstancesRestConnectionImpl::SetName( future> InstancesRestConnectionImpl::SetName( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -3029,7 +3029,7 @@ InstancesRestConnectionImpl::SetScheduling( StatusOr InstancesRestConnectionImpl::SetScheduling( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3046,7 +3046,7 @@ InstancesRestConnectionImpl::SetScheduling( future> InstancesRestConnectionImpl::SetScheduling( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -3162,7 +3162,7 @@ InstancesRestConnectionImpl::SetSecurityPolicy( StatusOr InstancesRestConnectionImpl::SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetSecurityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3179,7 +3179,7 @@ InstancesRestConnectionImpl::SetSecurityPolicy( future> InstancesRestConnectionImpl::SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -3295,7 +3295,7 @@ InstancesRestConnectionImpl::SetServiceAccount( StatusOr InstancesRestConnectionImpl::SetServiceAccount( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetServiceAccountRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3312,7 +3312,7 @@ InstancesRestConnectionImpl::SetServiceAccount( future> InstancesRestConnectionImpl::SetServiceAccount( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -3429,7 +3429,7 @@ InstancesRestConnectionImpl::SetShieldedInstanceIntegrityPolicy( StatusOr InstancesRestConnectionImpl::SetShieldedInstanceIntegrityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetShieldedInstanceIntegrityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3447,7 +3447,7 @@ InstancesRestConnectionImpl::SetShieldedInstanceIntegrityPolicy( future> InstancesRestConnectionImpl::SetShieldedInstanceIntegrityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -3563,7 +3563,7 @@ InstancesRestConnectionImpl::SetTags( StatusOr InstancesRestConnectionImpl::SetTags( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -3579,7 +3579,7 @@ InstancesRestConnectionImpl::SetTags( future> InstancesRestConnectionImpl::SetTags( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -3695,7 +3695,7 @@ InstancesRestConnectionImpl::SimulateMaintenanceEvent( StatusOr InstancesRestConnectionImpl::SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SimulateMaintenanceEventRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3712,7 +3712,7 @@ InstancesRestConnectionImpl::SimulateMaintenanceEvent( future> InstancesRestConnectionImpl::SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -3828,7 +3828,7 @@ InstancesRestConnectionImpl::Start( StatusOr InstancesRestConnectionImpl::Start( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::StartRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -3844,7 +3844,7 @@ InstancesRestConnectionImpl::Start( future> InstancesRestConnectionImpl::Start( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -3960,7 +3960,7 @@ InstancesRestConnectionImpl::StartWithEncryptionKey( StatusOr InstancesRestConnectionImpl::StartWithEncryptionKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: StartWithEncryptionKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3977,7 +3977,7 @@ InstancesRestConnectionImpl::StartWithEncryptionKey( future> InstancesRestConnectionImpl::StartWithEncryptionKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -4093,7 +4093,7 @@ InstancesRestConnectionImpl::Stop( StatusOr InstancesRestConnectionImpl::Stop( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::StopRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -4109,7 +4109,7 @@ InstancesRestConnectionImpl::Stop( future> InstancesRestConnectionImpl::Stop( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -4225,7 +4225,7 @@ InstancesRestConnectionImpl::Suspend( StatusOr InstancesRestConnectionImpl::Suspend( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SuspendRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -4241,7 +4241,7 @@ InstancesRestConnectionImpl::Suspend( future> InstancesRestConnectionImpl::Suspend( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -4373,7 +4373,7 @@ InstancesRestConnectionImpl::UpdateInstance( StatusOr InstancesRestConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -4390,7 +4390,7 @@ InstancesRestConnectionImpl::UpdateInstance( future> InstancesRestConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -4506,7 +4506,7 @@ InstancesRestConnectionImpl::UpdateAccessConfig( StatusOr InstancesRestConnectionImpl::UpdateAccessConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::UpdateAccessConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -4523,7 +4523,7 @@ InstancesRestConnectionImpl::UpdateAccessConfig( future> InstancesRestConnectionImpl::UpdateAccessConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -4639,7 +4639,7 @@ InstancesRestConnectionImpl::UpdateDisplayDevice( StatusOr InstancesRestConnectionImpl::UpdateDisplayDevice( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateDisplayDeviceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -4656,7 +4656,7 @@ InstancesRestConnectionImpl::UpdateDisplayDevice( future> InstancesRestConnectionImpl::UpdateDisplayDevice( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -4772,7 +4772,7 @@ InstancesRestConnectionImpl::UpdateNetworkInterface( StatusOr InstancesRestConnectionImpl::UpdateNetworkInterface( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateNetworkInterfaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -4789,7 +4789,7 @@ InstancesRestConnectionImpl::UpdateNetworkInterface( future> InstancesRestConnectionImpl::UpdateNetworkInterface( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -4905,7 +4905,7 @@ InstancesRestConnectionImpl::UpdateShieldedInstanceConfig( StatusOr InstancesRestConnectionImpl::UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateShieldedInstanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -4923,7 +4923,7 @@ InstancesRestConnectionImpl::UpdateShieldedInstanceConfig( future> InstancesRestConnectionImpl::UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/instances/v1/internal/instances_rest_connection_impl.h b/google/cloud/compute/instances/v1/internal/instances_rest_connection_impl.h index 3d45012e55863..35472ab726a65 100644 --- a/google/cloud/compute/instances/v1/internal/instances_rest_connection_impl.h +++ b/google/cloud/compute/instances/v1/internal/instances_rest_connection_impl.h @@ -55,12 +55,12 @@ class InstancesRestConnectionImpl request) override; StatusOr AddAccessConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const& request) override; future> AddAccessConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -68,13 +68,13 @@ class InstancesRestConnectionImpl AddResourcePoliciesRequest const& request) override; StatusOr AddResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: AddResourcePoliciesRequest const& request) override; future> AddResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange AttachDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::AttachDiskRequest const& request) override; future> AttachDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> BulkInsert( @@ -101,12 +101,12 @@ class InstancesRestConnectionImpl request) override; StatusOr BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& request) override; future> BulkInsert( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> DeleteInstance( @@ -114,12 +114,12 @@ class InstancesRestConnectionImpl request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& request) override; future> DeleteInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -127,13 +127,13 @@ class InstancesRestConnectionImpl DeleteAccessConfigRequest const& request) override; StatusOr DeleteAccessConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: DeleteAccessConfigRequest const& request) override; future> DeleteAccessConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> DetachDisk( @@ -141,12 +141,12 @@ class InstancesRestConnectionImpl request) override; StatusOr DetachDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& request) override; future> DetachDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetInstance( @@ -185,12 +185,12 @@ class InstancesRestConnectionImpl request) override; StatusOr InsertInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& request) override; future> InsertInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListInstances( @@ -206,13 +206,13 @@ class InstancesRestConnectionImpl PerformMaintenanceRequest const& request) override; StatusOr PerformMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: PerformMaintenanceRequest const& request) override; future> PerformMaintenance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -221,13 +221,13 @@ class InstancesRestConnectionImpl RemoveResourcePoliciesRequest const& request) override; StatusOr RemoveResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: RemoveResourcePoliciesRequest const& request) override; future> RemoveResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Reset( @@ -235,12 +235,12 @@ class InstancesRestConnectionImpl override; StatusOr Reset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::ResetRequest const& request) override; future> Reset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Resume( @@ -248,12 +248,12 @@ class InstancesRestConnectionImpl override; StatusOr Resume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::ResumeRequest const& request) override; future> Resume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; Status SendDiagnosticInterrupt( @@ -266,13 +266,13 @@ class InstancesRestConnectionImpl SetDeletionProtectionRequest const& request) override; StatusOr SetDeletionProtection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetDeletionProtectionRequest const& request) override; future> SetDeletionProtection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -280,13 +280,13 @@ class InstancesRestConnectionImpl SetDiskAutoDeleteRequest const& request) override; StatusOr SetDiskAutoDelete( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetDiskAutoDeleteRequest const& request) override; future> SetDiskAutoDelete( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -298,12 +298,12 @@ class InstancesRestConnectionImpl request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -311,13 +311,13 @@ class InstancesRestConnectionImpl SetMachineResourcesRequest const& request) override; StatusOr SetMachineResources( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetMachineResourcesRequest const& request) override; future> SetMachineResources( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetMachineType( @@ -325,12 +325,12 @@ class InstancesRestConnectionImpl request) override; StatusOr SetMachineType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& request) override; future> SetMachineType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetMetadata( @@ -338,12 +338,12 @@ class InstancesRestConnectionImpl request) override; StatusOr SetMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& request) override; future> SetMetadata( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -351,13 +351,13 @@ class InstancesRestConnectionImpl SetMinCpuPlatformRequest const& request) override; StatusOr SetMinCpuPlatform( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetMinCpuPlatformRequest const& request) override; future> SetMinCpuPlatform( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetName( @@ -365,12 +365,12 @@ class InstancesRestConnectionImpl override; StatusOr SetName( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetNameRequest const& request) override; future> SetName( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetScheduling( @@ -378,12 +378,12 @@ class InstancesRestConnectionImpl request) override; StatusOr SetScheduling( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& request) override; future> SetScheduling( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -391,13 +391,13 @@ class InstancesRestConnectionImpl SetSecurityPolicyRequest const& request) override; StatusOr SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetSecurityPolicyRequest const& request) override; future> SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -405,13 +405,13 @@ class InstancesRestConnectionImpl SetServiceAccountRequest const& request) override; StatusOr SetServiceAccount( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetServiceAccountRequest const& request) override; future> SetServiceAccount( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -421,13 +421,13 @@ class InstancesRestConnectionImpl StatusOr SetShieldedInstanceIntegrityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetShieldedInstanceIntegrityPolicyRequest const& request) override; future> SetShieldedInstanceIntegrityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetTags( @@ -435,12 +435,12 @@ class InstancesRestConnectionImpl override; StatusOr SetTags( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request) override; future> SetTags( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -449,13 +449,13 @@ class InstancesRestConnectionImpl SimulateMaintenanceEventRequest const& request) override; StatusOr SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SimulateMaintenanceEventRequest const& request) override; future> SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Start( @@ -463,12 +463,12 @@ class InstancesRestConnectionImpl override; StatusOr Start( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::StartRequest const& request) override; future> Start( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -477,13 +477,13 @@ class InstancesRestConnectionImpl StartWithEncryptionKeyRequest const& request) override; StatusOr StartWithEncryptionKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: StartWithEncryptionKeyRequest const& request) override; future> StartWithEncryptionKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Stop( @@ -491,12 +491,12 @@ class InstancesRestConnectionImpl override; StatusOr Stop( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::StopRequest const& request) override; future> Stop( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Suspend( @@ -504,12 +504,12 @@ class InstancesRestConnectionImpl override; StatusOr Suspend( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SuspendRequest const& request) override; future> Suspend( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -521,12 +521,12 @@ class InstancesRestConnectionImpl request) override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& request) override; future> UpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -534,13 +534,13 @@ class InstancesRestConnectionImpl UpdateAccessConfigRequest const& request) override; StatusOr UpdateAccessConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateAccessConfigRequest const& request) override; future> UpdateAccessConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -548,13 +548,13 @@ class InstancesRestConnectionImpl UpdateDisplayDeviceRequest const& request) override; StatusOr UpdateDisplayDevice( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateDisplayDeviceRequest const& request) override; future> UpdateDisplayDevice( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -563,13 +563,13 @@ class InstancesRestConnectionImpl UpdateNetworkInterfaceRequest const& request) override; StatusOr UpdateNetworkInterface( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateNetworkInterfaceRequest const& request) override; future> UpdateNetworkInterface( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -579,13 +579,13 @@ class InstancesRestConnectionImpl StatusOr UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateShieldedInstanceConfigRequest const& request) override; future> UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/instances/v1/internal/instances_tracing_connection.cc b/google/cloud/compute/instances/v1/internal/instances_tracing_connection.cc index 8d6cf389feecc..a72a82d4100ae 100644 --- a/google/cloud/compute/instances/v1/internal/instances_tracing_connection.cc +++ b/google/cloud/compute/instances/v1/internal/instances_tracing_connection.cc @@ -50,7 +50,7 @@ InstancesTracingConnection::AddAccessConfig( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::AddAccessConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddAccessConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -86,7 +86,7 @@ InstancesTracingConnection::AddResourcePolicies( AddResourcePoliciesRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::AddResourcePolicies"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddResourcePolicies(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ InstancesTracingConnection::AttachDisk( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::AttachDisk"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AttachDisk(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -170,7 +170,7 @@ InstancesTracingConnection::BulkInsert( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::BulkInsert"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BulkInsert(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -205,7 +205,7 @@ InstancesTracingConnection::DeleteInstance( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::DeleteInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -241,7 +241,7 @@ InstancesTracingConnection::DeleteAccessConfig( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::DeleteAccessConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAccessConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -276,7 +276,7 @@ InstancesTracingConnection::DetachDisk( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::DetachDisk"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DetachDisk(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -382,7 +382,7 @@ InstancesTracingConnection::InsertInstance( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::InsertInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -442,7 +442,7 @@ InstancesTracingConnection::PerformMaintenance( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::PerformMaintenance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PerformMaintenance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -478,7 +478,7 @@ InstancesTracingConnection::RemoveResourcePolicies( RemoveResourcePoliciesRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::RemoveResourcePolicies"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RemoveResourcePolicies( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -511,7 +511,7 @@ InstancesTracingConnection::Reset( google::cloud::cpp::compute::instances::v1::ResetRequest const& request) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::Reset"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->Reset(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -544,7 +544,7 @@ InstancesTracingConnection::Resume( google::cloud::cpp::compute::instances::v1::ResumeRequest const& request) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::Resume"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->Resume(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -589,7 +589,7 @@ InstancesTracingConnection::SetDeletionProtection( SetDeletionProtectionRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetDeletionProtection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SetDeletionProtection( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -624,7 +624,7 @@ InstancesTracingConnection::SetDiskAutoDelete( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetDiskAutoDelete"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetDiskAutoDelete(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -669,7 +669,7 @@ InstancesTracingConnection::SetLabels( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -705,7 +705,7 @@ InstancesTracingConnection::SetMachineResources( SetMachineResourcesRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetMachineResources"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetMachineResources(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -740,7 +740,7 @@ InstancesTracingConnection::SetMachineType( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetMachineType"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetMachineType(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -775,7 +775,7 @@ InstancesTracingConnection::SetMetadata( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetMetadata"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetMetadata(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -810,7 +810,7 @@ InstancesTracingConnection::SetMinCpuPlatform( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetMinCpuPlatform"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetMinCpuPlatform(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -843,7 +843,7 @@ InstancesTracingConnection::SetName( google::cloud::cpp::compute::instances::v1::SetNameRequest const& request) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::SetName"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetName(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -878,7 +878,7 @@ InstancesTracingConnection::SetScheduling( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetScheduling"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetScheduling(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -913,7 +913,7 @@ InstancesTracingConnection::SetSecurityPolicy( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetSecurityPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -948,7 +948,7 @@ InstancesTracingConnection::SetServiceAccount( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetServiceAccount"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetServiceAccount(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -986,7 +986,7 @@ InstancesTracingConnection::SetShieldedInstanceIntegrityPolicy( auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::" "SetShieldedInstanceIntegrityPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SetShieldedInstanceIntegrityPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1020,7 +1020,7 @@ InstancesTracingConnection::SetTags( google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::SetTags"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetTags(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1056,7 +1056,7 @@ InstancesTracingConnection::SimulateMaintenanceEvent( SimulateMaintenanceEventRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SimulateMaintenanceEvent"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SimulateMaintenanceEvent( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1089,7 +1089,7 @@ InstancesTracingConnection::Start( google::cloud::cpp::compute::instances::v1::StartRequest const& request) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::Start"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->Start(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1125,7 +1125,7 @@ InstancesTracingConnection::StartWithEncryptionKey( StartWithEncryptionKeyRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::StartWithEncryptionKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->StartWithEncryptionKey( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1158,7 +1158,7 @@ InstancesTracingConnection::Stop( google::cloud::cpp::compute::instances::v1::StopRequest const& request) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::Stop"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->Stop(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1191,7 +1191,7 @@ InstancesTracingConnection::Suspend( google::cloud::cpp::compute::instances::v1::SuspendRequest const& request) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::Suspend"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->Suspend(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1236,7 +1236,7 @@ InstancesTracingConnection::UpdateInstance( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::UpdateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1272,7 +1272,7 @@ InstancesTracingConnection::UpdateAccessConfig( request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::UpdateAccessConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateAccessConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1308,7 +1308,7 @@ InstancesTracingConnection::UpdateDisplayDevice( UpdateDisplayDeviceRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::UpdateDisplayDevice"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateDisplayDevice(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1344,7 +1344,7 @@ InstancesTracingConnection::UpdateNetworkInterface( UpdateNetworkInterfaceRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::UpdateNetworkInterface"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateNetworkInterface( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1382,7 +1382,7 @@ InstancesTracingConnection::UpdateShieldedInstanceConfig( auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::" "UpdateShieldedInstanceConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateShieldedInstanceConfig( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection.cc b/google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection.cc index c9589ced5ae01..15e3b8bbb7258 100644 --- a/google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection.cc +++ b/google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection.cc @@ -59,7 +59,7 @@ InterconnectAttachmentsConnection::DeleteInterconnectAttachment( StatusOr InterconnectAttachmentsConnection::DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: DeleteInterconnectAttachmentRequest const&) { return StatusOr( @@ -68,8 +68,7 @@ InterconnectAttachmentsConnection::DeleteInterconnectAttachment( future> InterconnectAttachmentsConnection::DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -93,7 +92,7 @@ InterconnectAttachmentsConnection::InsertInterconnectAttachment( StatusOr InterconnectAttachmentsConnection::InsertInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: InsertInterconnectAttachmentRequest const&) { return StatusOr( @@ -102,8 +101,7 @@ InterconnectAttachmentsConnection::InsertInterconnectAttachment( future> InterconnectAttachmentsConnection::InsertInterconnectAttachment( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -128,7 +126,7 @@ InterconnectAttachmentsConnection::PatchInterconnectAttachment( StatusOr InterconnectAttachmentsConnection::PatchInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: PatchInterconnectAttachmentRequest const&) { return StatusOr( @@ -137,8 +135,7 @@ InterconnectAttachmentsConnection::PatchInterconnectAttachment( future> InterconnectAttachmentsConnection::PatchInterconnectAttachment( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -155,7 +152,7 @@ InterconnectAttachmentsConnection::SetLabels( StatusOr InterconnectAttachmentsConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: SetLabelsRequest const&) { return StatusOr( @@ -164,8 +161,7 @@ InterconnectAttachmentsConnection::SetLabels( future> InterconnectAttachmentsConnection::SetLabels( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection.h b/google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection.h index b4f3892bcb1cb..a0b597470b2af 100644 --- a/google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection.h +++ b/google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/interconnect_attachments/v1/interconnect_attachments_connection_idempotency_policy.h" #include "google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -211,13 +211,13 @@ class InterconnectAttachmentsConnection { virtual StatusOr DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: DeleteInterconnectAttachmentRequest const& request); virtual future> DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -232,13 +232,13 @@ class InterconnectAttachmentsConnection { virtual StatusOr InsertInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: InsertInterconnectAttachmentRequest const& request); virtual future> InsertInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -253,13 +253,13 @@ class InterconnectAttachmentsConnection { virtual StatusOr PatchInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: PatchInterconnectAttachmentRequest const& request); virtual future> PatchInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -267,12 +267,12 @@ class InterconnectAttachmentsConnection { SetLabelsRequest const& request); virtual StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: SetLabelsRequest const& request); virtual future> - SetLabels(google::cloud::ExperimentalTag, + SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_rest_connection_impl.cc b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_rest_connection_impl.cc index e29903c3019e6..75d19f36b0c57 100644 --- a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_rest_connection_impl.cc +++ b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_rest_connection_impl.cc @@ -157,7 +157,7 @@ InterconnectAttachmentsRestConnectionImpl::DeleteInterconnectAttachment( StatusOr InterconnectAttachmentsRestConnectionImpl::DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: DeleteInterconnectAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -175,7 +175,7 @@ InterconnectAttachmentsRestConnectionImpl::DeleteInterconnectAttachment( future> InterconnectAttachmentsRestConnectionImpl::DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -307,7 +307,7 @@ InterconnectAttachmentsRestConnectionImpl::InsertInterconnectAttachment( StatusOr InterconnectAttachmentsRestConnectionImpl::InsertInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: InsertInterconnectAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -325,7 +325,7 @@ InterconnectAttachmentsRestConnectionImpl::InsertInterconnectAttachment( future> InterconnectAttachmentsRestConnectionImpl::InsertInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -481,7 +481,7 @@ InterconnectAttachmentsRestConnectionImpl::PatchInterconnectAttachment( StatusOr InterconnectAttachmentsRestConnectionImpl::PatchInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: PatchInterconnectAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -499,7 +499,7 @@ InterconnectAttachmentsRestConnectionImpl::PatchInterconnectAttachment( future> InterconnectAttachmentsRestConnectionImpl::PatchInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -615,7 +615,7 @@ InterconnectAttachmentsRestConnectionImpl::SetLabels( StatusOr InterconnectAttachmentsRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: SetLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -632,7 +632,7 @@ InterconnectAttachmentsRestConnectionImpl::SetLabels( future> InterconnectAttachmentsRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_rest_connection_impl.h b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_rest_connection_impl.h index c027024b8925f..1773797c0df21 100644 --- a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_rest_connection_impl.h +++ b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_rest_connection_impl.h @@ -67,13 +67,13 @@ class InterconnectAttachmentsRestConnectionImpl StatusOr DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: DeleteInterconnectAttachmentRequest const& request) override; future> DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -88,13 +88,13 @@ class InterconnectAttachmentsRestConnectionImpl StatusOr InsertInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: InsertInterconnectAttachmentRequest const& request) override; future> InsertInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -109,13 +109,13 @@ class InterconnectAttachmentsRestConnectionImpl StatusOr PatchInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: PatchInterconnectAttachmentRequest const& request) override; future> PatchInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetLabels( @@ -123,12 +123,12 @@ class InterconnectAttachmentsRestConnectionImpl SetLabelsRequest const& request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.cc b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.cc index 7ff7738d29741..ed4f58cb0720c 100644 --- a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.cc +++ b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.cc @@ -73,7 +73,7 @@ InterconnectAttachmentsTracingConnection::DeleteInterconnectAttachment( auto span = internal::MakeSpan( "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" "DeleteInterconnectAttachment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteInterconnectAttachment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -123,7 +123,7 @@ InterconnectAttachmentsTracingConnection::InsertInterconnectAttachment( auto span = internal::MakeSpan( "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" "InsertInterconnectAttachment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertInterconnectAttachment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -176,7 +176,7 @@ InterconnectAttachmentsTracingConnection::PatchInterconnectAttachment( auto span = internal::MakeSpan( "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" "PatchInterconnectAttachment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchInterconnectAttachment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -214,7 +214,7 @@ InterconnectAttachmentsTracingConnection::SetLabels( auto span = internal::MakeSpan( "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" "SetLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/interconnect_locations/v1/interconnect_locations_connection.h b/google/cloud/compute/interconnect_locations/v1/interconnect_locations_connection.h index a517b03f2655d..d2b3226fdb8e9 100644 --- a/google/cloud/compute/interconnect_locations/v1/interconnect_locations_connection.h +++ b/google/cloud/compute/interconnect_locations/v1/interconnect_locations_connection.h @@ -22,7 +22,6 @@ #include "google/cloud/compute/interconnect_locations/v1/interconnect_locations_connection_idempotency_policy.h" #include "google/cloud/compute/interconnect_locations/v1/internal/interconnect_locations_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/compute/interconnect_remote_locations/v1/interconnect_remote_locations_connection.h b/google/cloud/compute/interconnect_remote_locations/v1/interconnect_remote_locations_connection.h index a0f0b7ce83483..d468418c357a5 100644 --- a/google/cloud/compute/interconnect_remote_locations/v1/interconnect_remote_locations_connection.h +++ b/google/cloud/compute/interconnect_remote_locations/v1/interconnect_remote_locations_connection.h @@ -22,7 +22,6 @@ #include "google/cloud/compute/interconnect_remote_locations/v1/interconnect_remote_locations_connection_idempotency_policy.h" #include "google/cloud/compute/interconnect_remote_locations/v1/internal/interconnect_remote_locations_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/compute/interconnects/v1/interconnects_connection.cc b/google/cloud/compute/interconnects/v1/interconnects_connection.cc index 7a117de630b9e..9fd61708df043 100644 --- a/google/cloud/compute/interconnects/v1/interconnects_connection.cc +++ b/google/cloud/compute/interconnects/v1/interconnects_connection.cc @@ -47,7 +47,7 @@ InterconnectsConnection::DeleteInterconnect( StatusOr InterconnectsConnection::DeleteInterconnect( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: DeleteInterconnectRequest const&) { return StatusOr( @@ -56,8 +56,7 @@ InterconnectsConnection::DeleteInterconnect( future> InterconnectsConnection::DeleteInterconnect( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -95,7 +94,7 @@ InterconnectsConnection::InsertInterconnect( StatusOr InterconnectsConnection::InsertInterconnect( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: InsertInterconnectRequest const&) { return StatusOr( @@ -104,8 +103,7 @@ InterconnectsConnection::InsertInterconnect( future> InterconnectsConnection::InsertInterconnect( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -130,7 +128,7 @@ InterconnectsConnection::PatchInterconnect( StatusOr InterconnectsConnection::PatchInterconnect( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: PatchInterconnectRequest const&) { return StatusOr( @@ -139,8 +137,7 @@ InterconnectsConnection::PatchInterconnect( future> InterconnectsConnection::PatchInterconnect( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -156,7 +153,7 @@ InterconnectsConnection::SetLabels( StatusOr InterconnectsConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -164,8 +161,7 @@ InterconnectsConnection::SetLabels( future> InterconnectsConnection::SetLabels( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/interconnects/v1/interconnects_connection.h b/google/cloud/compute/interconnects/v1/interconnects_connection.h index b04534349e283..88a97ec474781 100644 --- a/google/cloud/compute/interconnects/v1/interconnects_connection.h +++ b/google/cloud/compute/interconnects/v1/interconnects_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/interconnects/v1/interconnects_connection_idempotency_policy.h" #include "google/cloud/compute/interconnects/v1/internal/interconnects_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,13 +192,13 @@ class InterconnectsConnection { DeleteInterconnectRequest const& request); virtual StatusOr - DeleteInterconnect(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + DeleteInterconnect(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: DeleteInterconnectRequest const& request); virtual future> DeleteInterconnect( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -220,13 +220,13 @@ class InterconnectsConnection { InsertInterconnectRequest const& request); virtual StatusOr - InsertInterconnect(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + InsertInterconnect(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: InsertInterconnectRequest const& request); virtual future> InsertInterconnect( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -239,13 +239,13 @@ class InterconnectsConnection { PatchInterconnectRequest const& request); virtual StatusOr - PatchInterconnect(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + PatchInterconnect(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: PatchInterconnectRequest const& request); virtual future> PatchInterconnect( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -254,12 +254,12 @@ class InterconnectsConnection { request); virtual StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& request); virtual future> - SetLabels(google::cloud::ExperimentalTag, + SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/interconnects/v1/internal/interconnects_rest_connection_impl.cc b/google/cloud/compute/interconnects/v1/internal/interconnects_rest_connection_impl.cc index 0b3b5fc7b2100..179f3e23434b8 100644 --- a/google/cloud/compute/interconnects/v1/internal/interconnects_rest_connection_impl.cc +++ b/google/cloud/compute/interconnects/v1/internal/interconnects_rest_connection_impl.cc @@ -104,7 +104,7 @@ InterconnectsRestConnectionImpl::DeleteInterconnect( StatusOr InterconnectsRestConnectionImpl::DeleteInterconnect( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: DeleteInterconnectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -121,7 +121,7 @@ InterconnectsRestConnectionImpl::DeleteInterconnect( future> InterconnectsRestConnectionImpl::DeleteInterconnect( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -281,7 +281,7 @@ InterconnectsRestConnectionImpl::InsertInterconnect( StatusOr InterconnectsRestConnectionImpl::InsertInterconnect( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: InsertInterconnectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -298,7 +298,7 @@ InterconnectsRestConnectionImpl::InsertInterconnect( future> InterconnectsRestConnectionImpl::InsertInterconnect( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -447,7 +447,7 @@ InterconnectsRestConnectionImpl::PatchInterconnect( StatusOr InterconnectsRestConnectionImpl::PatchInterconnect( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: PatchInterconnectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -464,7 +464,7 @@ InterconnectsRestConnectionImpl::PatchInterconnect( future> InterconnectsRestConnectionImpl::PatchInterconnect( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -576,7 +576,7 @@ InterconnectsRestConnectionImpl::SetLabels( StatusOr InterconnectsRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -593,7 +593,7 @@ InterconnectsRestConnectionImpl::SetLabels( future> InterconnectsRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/interconnects/v1/internal/interconnects_rest_connection_impl.h b/google/cloud/compute/interconnects/v1/internal/interconnects_rest_connection_impl.h index 8c76a33064c17..74b16fcb5ef3f 100644 --- a/google/cloud/compute/interconnects/v1/internal/interconnects_rest_connection_impl.h +++ b/google/cloud/compute/interconnects/v1/internal/interconnects_rest_connection_impl.h @@ -56,13 +56,13 @@ class InterconnectsRestConnectionImpl DeleteInterconnectRequest const& request) override; StatusOr DeleteInterconnect( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: DeleteInterconnectRequest const& request) override; future> DeleteInterconnect( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetInterconnect( @@ -83,13 +83,13 @@ class InterconnectsRestConnectionImpl InsertInterconnectRequest const& request) override; StatusOr InsertInterconnect( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: InsertInterconnectRequest const& request) override; future> InsertInterconnect( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListInterconnects( @@ -101,13 +101,13 @@ class InterconnectsRestConnectionImpl PatchInterconnectRequest const& request) override; StatusOr PatchInterconnect( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: PatchInterconnectRequest const& request) override; future> PatchInterconnect( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetLabels( @@ -115,12 +115,12 @@ class InterconnectsRestConnectionImpl request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.cc b/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.cc index 9cc3d353dadfc..bab3da06d545c 100644 --- a/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.cc +++ b/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.cc @@ -51,7 +51,7 @@ InterconnectsTracingConnection::DeleteInterconnect( DeleteInterconnectRequest const& request) { auto span = internal::MakeSpan( "compute_interconnects_v1::InterconnectsConnection::DeleteInterconnect"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteInterconnect(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -117,7 +117,7 @@ InterconnectsTracingConnection::InsertInterconnect( InsertInterconnectRequest const& request) { auto span = internal::MakeSpan( "compute_interconnects_v1::InterconnectsConnection::InsertInterconnect"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertInterconnect(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -165,7 +165,7 @@ InterconnectsTracingConnection::PatchInterconnect( PatchInterconnectRequest const& request) { auto span = internal::MakeSpan( "compute_interconnects_v1::InterconnectsConnection::PatchInterconnect"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchInterconnect(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -200,7 +200,7 @@ InterconnectsTracingConnection::SetLabels( request) { auto span = internal::MakeSpan( "compute_interconnects_v1::InterconnectsConnection::SetLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/license_codes/v1/license_codes_connection.h b/google/cloud/compute/license_codes/v1/license_codes_connection.h index 901d0b1ec9393..f8a31b5fe1ad4 100644 --- a/google/cloud/compute/license_codes/v1/license_codes_connection.h +++ b/google/cloud/compute/license_codes/v1/license_codes_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/compute/license_codes/v1/internal/license_codes_retry_traits.h" #include "google/cloud/compute/license_codes/v1/license_codes_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/compute/licenses/v1/internal/licenses_rest_connection_impl.cc b/google/cloud/compute/licenses/v1/internal/licenses_rest_connection_impl.cc index 46da5a5be6fc1..4a52819c5316a 100644 --- a/google/cloud/compute/licenses/v1/internal/licenses_rest_connection_impl.cc +++ b/google/cloud/compute/licenses/v1/internal/licenses_rest_connection_impl.cc @@ -104,7 +104,7 @@ LicensesRestConnectionImpl::DeleteLicense( StatusOr LicensesRestConnectionImpl::DeleteLicense( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -122,7 +122,7 @@ LicensesRestConnectionImpl::DeleteLicense( future> LicensesRestConnectionImpl::DeleteLicense( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -268,7 +268,7 @@ LicensesRestConnectionImpl::InsertLicense( StatusOr LicensesRestConnectionImpl::InsertLicense( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -286,7 +286,7 @@ LicensesRestConnectionImpl::InsertLicense( future> LicensesRestConnectionImpl::InsertLicense( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/licenses/v1/internal/licenses_rest_connection_impl.h b/google/cloud/compute/licenses/v1/internal/licenses_rest_connection_impl.h index b5de5057f2779..9245cc4329154 100644 --- a/google/cloud/compute/licenses/v1/internal/licenses_rest_connection_impl.h +++ b/google/cloud/compute/licenses/v1/internal/licenses_rest_connection_impl.h @@ -55,12 +55,12 @@ class LicensesRestConnectionImpl request) override; StatusOr DeleteLicense( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const& request) override; future> DeleteLicense( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetLicense( @@ -76,12 +76,12 @@ class LicensesRestConnectionImpl request) override; StatusOr InsertLicense( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const& request) override; future> InsertLicense( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListLicenses( diff --git a/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.cc b/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.cc index 6ce901694cfa9..1cefd2994129a 100644 --- a/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.cc +++ b/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.cc @@ -50,7 +50,7 @@ LicensesTracingConnection::DeleteLicense( request) { auto span = internal::MakeSpan( "compute_licenses_v1::LicensesConnection::DeleteLicense"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteLicense(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -105,7 +105,7 @@ LicensesTracingConnection::InsertLicense( request) { auto span = internal::MakeSpan( "compute_licenses_v1::LicensesConnection::InsertLicense"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertLicense(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/licenses/v1/licenses_connection.cc b/google/cloud/compute/licenses/v1/licenses_connection.cc index f8bdaeab899d6..92732f379a7e3 100644 --- a/google/cloud/compute/licenses/v1/licenses_connection.cc +++ b/google/cloud/compute/licenses/v1/licenses_connection.cc @@ -46,7 +46,7 @@ LicensesConnection::DeleteLicense( StatusOr LicensesConnection::DeleteLicense( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -54,8 +54,7 @@ LicensesConnection::DeleteLicense( future> LicensesConnection::DeleteLicense( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -83,7 +82,7 @@ LicensesConnection::InsertLicense( StatusOr LicensesConnection::InsertLicense( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -91,8 +90,7 @@ LicensesConnection::InsertLicense( future> LicensesConnection::InsertLicense( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/licenses/v1/licenses_connection.h b/google/cloud/compute/licenses/v1/licenses_connection.h index 141b892f826ac..e51b0b28a04ad 100644 --- a/google/cloud/compute/licenses/v1/licenses_connection.h +++ b/google/cloud/compute/licenses/v1/licenses_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/licenses/v1/internal/licenses_retry_traits.h" #include "google/cloud/compute/licenses/v1/licenses_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -189,12 +189,12 @@ class LicensesConnection { request); virtual StatusOr DeleteLicense( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const& request); virtual future> - DeleteLicense(google::cloud::ExperimentalTag, + DeleteLicense(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetLicense( @@ -211,12 +211,12 @@ class LicensesConnection { request); virtual StatusOr InsertLicense( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const& request); virtual future> - InsertLicense(google::cloud::ExperimentalTag, + InsertLicense(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange ListLicenses( diff --git a/google/cloud/compute/machine_images/v1/internal/machine_images_rest_connection_impl.cc b/google/cloud/compute/machine_images/v1/internal/machine_images_rest_connection_impl.cc index 2e090ece28739..4950570435e9f 100644 --- a/google/cloud/compute/machine_images/v1/internal/machine_images_rest_connection_impl.cc +++ b/google/cloud/compute/machine_images/v1/internal/machine_images_rest_connection_impl.cc @@ -104,7 +104,7 @@ MachineImagesRestConnectionImpl::DeleteMachineImage( StatusOr MachineImagesRestConnectionImpl::DeleteMachineImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::machine_images::v1:: DeleteMachineImageRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -121,7 +121,7 @@ MachineImagesRestConnectionImpl::DeleteMachineImage( future> MachineImagesRestConnectionImpl::DeleteMachineImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -265,7 +265,7 @@ MachineImagesRestConnectionImpl::InsertMachineImage( StatusOr MachineImagesRestConnectionImpl::InsertMachineImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::machine_images::v1:: InsertMachineImageRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -282,7 +282,7 @@ MachineImagesRestConnectionImpl::InsertMachineImage( future> MachineImagesRestConnectionImpl::InsertMachineImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/machine_images/v1/internal/machine_images_rest_connection_impl.h b/google/cloud/compute/machine_images/v1/internal/machine_images_rest_connection_impl.h index a7d917a47528b..11bcd45d7e3a0 100644 --- a/google/cloud/compute/machine_images/v1/internal/machine_images_rest_connection_impl.h +++ b/google/cloud/compute/machine_images/v1/internal/machine_images_rest_connection_impl.h @@ -56,13 +56,13 @@ class MachineImagesRestConnectionImpl DeleteMachineImageRequest const& request) override; StatusOr DeleteMachineImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::machine_images::v1:: DeleteMachineImageRequest const& request) override; future> DeleteMachineImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetMachineImage( @@ -78,13 +78,13 @@ class MachineImagesRestConnectionImpl InsertMachineImageRequest const& request) override; StatusOr InsertMachineImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::machine_images::v1:: InsertMachineImageRequest const& request) override; future> InsertMachineImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListMachineImages( diff --git a/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.cc b/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.cc index 4be72ae399ab4..6b916864b88fe 100644 --- a/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.cc +++ b/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.cc @@ -51,7 +51,7 @@ MachineImagesTracingConnection::DeleteMachineImage( DeleteMachineImageRequest const& request) { auto span = internal::MakeSpan( "compute_machine_images_v1::MachineImagesConnection::DeleteMachineImage"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteMachineImage(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -107,7 +107,7 @@ MachineImagesTracingConnection::InsertMachineImage( InsertMachineImageRequest const& request) { auto span = internal::MakeSpan( "compute_machine_images_v1::MachineImagesConnection::InsertMachineImage"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertMachineImage(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/machine_images/v1/machine_images_connection.cc b/google/cloud/compute/machine_images/v1/machine_images_connection.cc index eaba94983776f..fffdb51c45d2b 100644 --- a/google/cloud/compute/machine_images/v1/machine_images_connection.cc +++ b/google/cloud/compute/machine_images/v1/machine_images_connection.cc @@ -47,7 +47,7 @@ MachineImagesConnection::DeleteMachineImage( StatusOr MachineImagesConnection::DeleteMachineImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::machine_images::v1:: DeleteMachineImageRequest const&) { return StatusOr( @@ -56,8 +56,7 @@ MachineImagesConnection::DeleteMachineImage( future> MachineImagesConnection::DeleteMachineImage( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -88,7 +87,7 @@ MachineImagesConnection::InsertMachineImage( StatusOr MachineImagesConnection::InsertMachineImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::machine_images::v1:: InsertMachineImageRequest const&) { return StatusOr( @@ -97,8 +96,7 @@ MachineImagesConnection::InsertMachineImage( future> MachineImagesConnection::InsertMachineImage( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/machine_images/v1/machine_images_connection.h b/google/cloud/compute/machine_images/v1/machine_images_connection.h index df773cb664c9f..d10af1c95ea94 100644 --- a/google/cloud/compute/machine_images/v1/machine_images_connection.h +++ b/google/cloud/compute/machine_images/v1/machine_images_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/machine_images/v1/internal/machine_images_retry_traits.h" #include "google/cloud/compute/machine_images/v1/machine_images_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,13 +192,13 @@ class MachineImagesConnection { DeleteMachineImageRequest const& request); virtual StatusOr - DeleteMachineImage(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + DeleteMachineImage(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::machine_images::v1:: DeleteMachineImageRequest const& request); virtual future> DeleteMachineImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -214,13 +214,13 @@ class MachineImagesConnection { InsertMachineImageRequest const& request); virtual StatusOr - InsertMachineImage(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + InsertMachineImage(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::machine_images::v1:: InsertMachineImageRequest const& request); virtual future> InsertMachineImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange diff --git a/google/cloud/compute/machine_types/v1/machine_types_connection.h b/google/cloud/compute/machine_types/v1/machine_types_connection.h index 659aebc35f3d5..263992614e69e 100644 --- a/google/cloud/compute/machine_types/v1/machine_types_connection.h +++ b/google/cloud/compute/machine_types/v1/machine_types_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/compute/machine_types/v1/internal/machine_types_retry_traits.h" #include "google/cloud/compute/machine_types/v1/machine_types_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/compute/network_attachments/v1/internal/network_attachments_rest_connection_impl.cc b/google/cloud/compute/network_attachments/v1/internal/network_attachments_rest_connection_impl.cc index 295b0cf41118e..c7e54b67a246a 100644 --- a/google/cloud/compute/network_attachments/v1/internal/network_attachments_rest_connection_impl.cc +++ b/google/cloud/compute/network_attachments/v1/internal/network_attachments_rest_connection_impl.cc @@ -150,7 +150,7 @@ NetworkAttachmentsRestConnectionImpl::DeleteNetworkAttachment( StatusOr NetworkAttachmentsRestConnectionImpl::DeleteNetworkAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: DeleteNetworkAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -167,7 +167,7 @@ NetworkAttachmentsRestConnectionImpl::DeleteNetworkAttachment( future> NetworkAttachmentsRestConnectionImpl::DeleteNetworkAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -315,7 +315,7 @@ NetworkAttachmentsRestConnectionImpl::InsertNetworkAttachment( StatusOr NetworkAttachmentsRestConnectionImpl::InsertNetworkAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: InsertNetworkAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -332,7 +332,7 @@ NetworkAttachmentsRestConnectionImpl::InsertNetworkAttachment( future> NetworkAttachmentsRestConnectionImpl::InsertNetworkAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -488,7 +488,7 @@ NetworkAttachmentsRestConnectionImpl::PatchNetworkAttachment( StatusOr NetworkAttachmentsRestConnectionImpl::PatchNetworkAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: PatchNetworkAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -505,7 +505,7 @@ NetworkAttachmentsRestConnectionImpl::PatchNetworkAttachment( future> NetworkAttachmentsRestConnectionImpl::PatchNetworkAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/network_attachments/v1/internal/network_attachments_rest_connection_impl.h b/google/cloud/compute/network_attachments/v1/internal/network_attachments_rest_connection_impl.h index 6a9e7d279268a..d29252c439a5f 100644 --- a/google/cloud/compute/network_attachments/v1/internal/network_attachments_rest_connection_impl.h +++ b/google/cloud/compute/network_attachments/v1/internal/network_attachments_rest_connection_impl.h @@ -65,13 +65,13 @@ class NetworkAttachmentsRestConnectionImpl DeleteNetworkAttachmentRequest const& request) override; StatusOr DeleteNetworkAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: DeleteNetworkAttachmentRequest const& request) override; future> DeleteNetworkAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -88,13 +88,13 @@ class NetworkAttachmentsRestConnectionImpl InsertNetworkAttachmentRequest const& request) override; StatusOr InsertNetworkAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: InsertNetworkAttachmentRequest const& request) override; future> InsertNetworkAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -107,13 +107,13 @@ class NetworkAttachmentsRestConnectionImpl PatchNetworkAttachmentRequest const& request) override; StatusOr PatchNetworkAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: PatchNetworkAttachmentRequest const& request) override; future> PatchNetworkAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( diff --git a/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.cc b/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.cc index e098bcd8d6c39..579320c7be11c 100644 --- a/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.cc +++ b/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.cc @@ -71,7 +71,7 @@ NetworkAttachmentsTracingConnection::DeleteNetworkAttachment( auto span = internal::MakeSpan( "compute_network_attachments_v1::NetworkAttachmentsConnection::" "DeleteNetworkAttachment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteNetworkAttachment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -132,7 +132,7 @@ NetworkAttachmentsTracingConnection::InsertNetworkAttachment( auto span = internal::MakeSpan( "compute_network_attachments_v1::NetworkAttachmentsConnection::" "InsertNetworkAttachment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertNetworkAttachment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -185,7 +185,7 @@ NetworkAttachmentsTracingConnection::PatchNetworkAttachment( auto span = internal::MakeSpan( "compute_network_attachments_v1::NetworkAttachmentsConnection::" "PatchNetworkAttachment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchNetworkAttachment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/network_attachments/v1/network_attachments_connection.cc b/google/cloud/compute/network_attachments/v1/network_attachments_connection.cc index 936c3899eb98b..e7e207e820b29 100644 --- a/google/cloud/compute/network_attachments/v1/network_attachments_connection.cc +++ b/google/cloud/compute/network_attachments/v1/network_attachments_connection.cc @@ -57,7 +57,7 @@ NetworkAttachmentsConnection::DeleteNetworkAttachment( StatusOr NetworkAttachmentsConnection::DeleteNetworkAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: DeleteNetworkAttachmentRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ NetworkAttachmentsConnection::DeleteNetworkAttachment( future> NetworkAttachmentsConnection::DeleteNetworkAttachment( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -98,7 +97,7 @@ NetworkAttachmentsConnection::InsertNetworkAttachment( StatusOr NetworkAttachmentsConnection::InsertNetworkAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: InsertNetworkAttachmentRequest const&) { return StatusOr( @@ -107,8 +106,7 @@ NetworkAttachmentsConnection::InsertNetworkAttachment( future> NetworkAttachmentsConnection::InsertNetworkAttachment( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -133,7 +131,7 @@ NetworkAttachmentsConnection::PatchNetworkAttachment( StatusOr NetworkAttachmentsConnection::PatchNetworkAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: PatchNetworkAttachmentRequest const&) { return StatusOr( @@ -142,8 +140,7 @@ NetworkAttachmentsConnection::PatchNetworkAttachment( future> NetworkAttachmentsConnection::PatchNetworkAttachment( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/network_attachments/v1/network_attachments_connection.h b/google/cloud/compute/network_attachments/v1/network_attachments_connection.h index 95380faaa55fb..5edc03df3b962 100644 --- a/google/cloud/compute/network_attachments/v1/network_attachments_connection.h +++ b/google/cloud/compute/network_attachments/v1/network_attachments_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/network_attachments/v1/internal/network_attachments_retry_traits.h" #include "google/cloud/compute/network_attachments/v1/network_attachments_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -202,14 +202,13 @@ class NetworkAttachmentsConnection { DeleteNetworkAttachmentRequest const& request); virtual StatusOr - DeleteNetworkAttachment(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteNetworkAttachment(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: DeleteNetworkAttachmentRequest const& request); virtual future> DeleteNetworkAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -225,14 +224,13 @@ class NetworkAttachmentsConnection { InsertNetworkAttachmentRequest const& request); virtual StatusOr - InsertNetworkAttachment(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertNetworkAttachment(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: InsertNetworkAttachmentRequest const& request); virtual future> InsertNetworkAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -244,14 +242,13 @@ class NetworkAttachmentsConnection { PatchNetworkAttachmentRequest const& request); virtual StatusOr - PatchNetworkAttachment(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + PatchNetworkAttachment(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: PatchNetworkAttachmentRequest const& request); virtual future> PatchNetworkAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr SetIamPolicy( diff --git a/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_rest_connection_impl.cc b/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_rest_connection_impl.cc index 5ef9c1b40d04a..21bd07939712f 100644 --- a/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_rest_connection_impl.cc +++ b/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_rest_connection_impl.cc @@ -160,7 +160,7 @@ NetworkEdgeSecurityServicesRestConnectionImpl::DeleteNetworkEdgeSecurityService( StatusOr NetworkEdgeSecurityServicesRestConnectionImpl::DeleteNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: DeleteNetworkEdgeSecurityServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -178,7 +178,7 @@ NetworkEdgeSecurityServicesRestConnectionImpl::DeleteNetworkEdgeSecurityService( future> NetworkEdgeSecurityServicesRestConnectionImpl::DeleteNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -312,7 +312,7 @@ NetworkEdgeSecurityServicesRestConnectionImpl::InsertNetworkEdgeSecurityService( StatusOr NetworkEdgeSecurityServicesRestConnectionImpl::InsertNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: InsertNetworkEdgeSecurityServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -330,7 +330,7 @@ NetworkEdgeSecurityServicesRestConnectionImpl::InsertNetworkEdgeSecurityService( future> NetworkEdgeSecurityServicesRestConnectionImpl::InsertNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -447,7 +447,7 @@ NetworkEdgeSecurityServicesRestConnectionImpl::PatchNetworkEdgeSecurityService( StatusOr NetworkEdgeSecurityServicesRestConnectionImpl::PatchNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: PatchNetworkEdgeSecurityServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -465,7 +465,7 @@ NetworkEdgeSecurityServicesRestConnectionImpl::PatchNetworkEdgeSecurityService( future> NetworkEdgeSecurityServicesRestConnectionImpl::PatchNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_rest_connection_impl.h b/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_rest_connection_impl.h index 74269cd7db4d7..9144ad3c9ffdb 100644 --- a/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_rest_connection_impl.h +++ b/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_rest_connection_impl.h @@ -67,13 +67,13 @@ class NetworkEdgeSecurityServicesRestConnectionImpl StatusOr DeleteNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: DeleteNetworkEdgeSecurityServiceRequest const& request) override; future> DeleteNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -88,13 +88,13 @@ class NetworkEdgeSecurityServicesRestConnectionImpl StatusOr InsertNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: InsertNetworkEdgeSecurityServiceRequest const& request) override; future> InsertNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -104,13 +104,13 @@ class NetworkEdgeSecurityServicesRestConnectionImpl StatusOr PatchNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: PatchNetworkEdgeSecurityServiceRequest const& request) override; future> PatchNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_tracing_connection.cc b/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_tracing_connection.cc index 1dc3265900948..55684abed2f0b 100644 --- a/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_tracing_connection.cc +++ b/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_tracing_connection.cc @@ -78,7 +78,7 @@ NetworkEdgeSecurityServicesTracingConnection::DeleteNetworkEdgeSecurityService( "compute_network_edge_security_services_v1::" "NetworkEdgeSecurityServicesConnection::" "DeleteNetworkEdgeSecurityService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteNetworkEdgeSecurityService( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -132,7 +132,7 @@ NetworkEdgeSecurityServicesTracingConnection::InsertNetworkEdgeSecurityService( "compute_network_edge_security_services_v1::" "NetworkEdgeSecurityServicesConnection::" "InsertNetworkEdgeSecurityService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertNetworkEdgeSecurityService( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -172,7 +172,7 @@ NetworkEdgeSecurityServicesTracingConnection::PatchNetworkEdgeSecurityService( auto span = internal::MakeSpan( "compute_network_edge_security_services_v1::" "NetworkEdgeSecurityServicesConnection::PatchNetworkEdgeSecurityService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchNetworkEdgeSecurityService( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection.cc b/google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection.cc index 82ea832de572d..34215c8fe32ce 100644 --- a/google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection.cc +++ b/google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection.cc @@ -59,7 +59,7 @@ NetworkEdgeSecurityServicesConnection::DeleteNetworkEdgeSecurityService( StatusOr NetworkEdgeSecurityServicesConnection::DeleteNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: DeleteNetworkEdgeSecurityServiceRequest const&) { return StatusOr( @@ -68,8 +68,7 @@ NetworkEdgeSecurityServicesConnection::DeleteNetworkEdgeSecurityService( future> NetworkEdgeSecurityServicesConnection::DeleteNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -93,7 +92,7 @@ NetworkEdgeSecurityServicesConnection::InsertNetworkEdgeSecurityService( StatusOr NetworkEdgeSecurityServicesConnection::InsertNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: InsertNetworkEdgeSecurityServiceRequest const&) { return StatusOr( @@ -102,8 +101,7 @@ NetworkEdgeSecurityServicesConnection::InsertNetworkEdgeSecurityService( future> NetworkEdgeSecurityServicesConnection::InsertNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -120,7 +118,7 @@ NetworkEdgeSecurityServicesConnection::PatchNetworkEdgeSecurityService( StatusOr NetworkEdgeSecurityServicesConnection::PatchNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: PatchNetworkEdgeSecurityServiceRequest const&) { return StatusOr( @@ -129,8 +127,7 @@ NetworkEdgeSecurityServicesConnection::PatchNetworkEdgeSecurityService( future> NetworkEdgeSecurityServicesConnection::PatchNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection.h b/google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection.h index ab0cec691eca2..6ec152bbf7aca 100644 --- a/google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection.h +++ b/google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_retry_traits.h" #include "google/cloud/compute/network_edge_security_services/v1/network_edge_security_services_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -220,13 +220,13 @@ class NetworkEdgeSecurityServicesConnection { virtual StatusOr DeleteNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: DeleteNetworkEdgeSecurityServiceRequest const& request); virtual future> DeleteNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -241,13 +241,13 @@ class NetworkEdgeSecurityServicesConnection { virtual StatusOr InsertNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: InsertNetworkEdgeSecurityServiceRequest const& request); virtual future> InsertNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -257,13 +257,13 @@ class NetworkEdgeSecurityServicesConnection { virtual StatusOr PatchNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: PatchNetworkEdgeSecurityServiceRequest const& request); virtual future> PatchNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_rest_connection_impl.cc b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_rest_connection_impl.cc index 4b231d619acc3..40dead8cc27a3 100644 --- a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_rest_connection_impl.cc +++ b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_rest_connection_impl.cc @@ -156,7 +156,7 @@ NetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( StatusOr NetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -173,7 +173,7 @@ NetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( future> NetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -289,7 +289,7 @@ NetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( StatusOr NetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -307,7 +307,7 @@ NetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( future> NetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -423,7 +423,7 @@ NetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( StatusOr NetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -440,7 +440,7 @@ NetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( future> NetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -572,7 +572,7 @@ NetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( StatusOr NetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -590,7 +590,7 @@ NetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( future> NetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_rest_connection_impl.h b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_rest_connection_impl.h index 7aa78e5861534..4cdeb07be540f 100644 --- a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_rest_connection_impl.h +++ b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_rest_connection_impl.h @@ -66,13 +66,13 @@ class NetworkEndpointGroupsRestConnectionImpl AttachNetworkEndpointsRequest const& request) override; StatusOr AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) override; future> AttachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -82,13 +82,13 @@ class NetworkEndpointGroupsRestConnectionImpl StatusOr DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) override; future> DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -97,13 +97,13 @@ class NetworkEndpointGroupsRestConnectionImpl DetachNetworkEndpointsRequest const& request) override; StatusOr DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) override; future> DetachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -118,13 +118,13 @@ class NetworkEndpointGroupsRestConnectionImpl StatusOr InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) override; future> InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.cc b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.cc index 55dc376037aaf..1ffcacaac129f 100644 --- a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.cc +++ b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.cc @@ -73,7 +73,7 @@ NetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( auto span = internal::MakeSpan( "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" "AttachNetworkEndpoints"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->AttachNetworkEndpoints( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -112,7 +112,7 @@ NetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( auto span = internal::MakeSpan( "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" "DeleteNetworkEndpointGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteNetworkEndpointGroup( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -151,7 +151,7 @@ NetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( auto span = internal::MakeSpan( "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" "DetachNetworkEndpoints"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DetachNetworkEndpoints( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -201,7 +201,7 @@ NetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( auto span = internal::MakeSpan( "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" "InsertNetworkEndpointGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertNetworkEndpointGroup( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection.cc b/google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection.cc index 830ff273c9500..fdb36b50f845c 100644 --- a/google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection.cc +++ b/google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection.cc @@ -59,7 +59,7 @@ NetworkEndpointGroupsConnection::AttachNetworkEndpoints( StatusOr NetworkEndpointGroupsConnection::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const&) { return StatusOr( @@ -68,8 +68,7 @@ NetworkEndpointGroupsConnection::AttachNetworkEndpoints( future> NetworkEndpointGroupsConnection::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +85,7 @@ NetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( StatusOr NetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const&) { return StatusOr( @@ -95,8 +94,7 @@ NetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( future> NetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -113,7 +111,7 @@ NetworkEndpointGroupsConnection::DetachNetworkEndpoints( StatusOr NetworkEndpointGroupsConnection::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const&) { return StatusOr( @@ -122,8 +120,7 @@ NetworkEndpointGroupsConnection::DetachNetworkEndpoints( future> NetworkEndpointGroupsConnection::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -147,7 +144,7 @@ NetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( StatusOr NetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const&) { return StatusOr( @@ -156,8 +153,7 @@ NetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( future> NetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection.h b/google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection.h index 961b91c3a0e02..612e3e739672a 100644 --- a/google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection.h +++ b/google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_retry_traits.h" #include "google/cloud/compute/network_endpoint_groups/v1/network_endpoint_groups_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -208,14 +208,13 @@ class NetworkEndpointGroupsConnection { v1::AttachNetworkEndpointsRequest const& request); virtual StatusOr - AttachNetworkEndpoints(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + AttachNetworkEndpoints(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups:: v1::AttachNetworkEndpointsRequest const& request); virtual future> AttachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -225,13 +224,13 @@ class NetworkEndpointGroupsConnection { virtual StatusOr DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request); virtual future> DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -239,14 +238,13 @@ class NetworkEndpointGroupsConnection { v1::DetachNetworkEndpointsRequest const& request); virtual StatusOr - DetachNetworkEndpoints(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DetachNetworkEndpoints(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups:: v1::DetachNetworkEndpointsRequest const& request); virtual future> DetachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -261,13 +259,13 @@ class NetworkEndpointGroupsConnection { virtual StatusOr InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request); virtual future> InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange diff --git a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_rest_connection_impl.cc b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_rest_connection_impl.cc index 3d282f44cc1e5..c67ef1820c8b7 100644 --- a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_rest_connection_impl.cc +++ b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_rest_connection_impl.cc @@ -107,7 +107,7 @@ NetworkFirewallPoliciesRestConnectionImpl::AddAssociation( StatusOr NetworkFirewallPoliciesRestConnectionImpl::AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: AddAssociationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -124,7 +124,7 @@ NetworkFirewallPoliciesRestConnectionImpl::AddAssociation( future> NetworkFirewallPoliciesRestConnectionImpl::AddAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -236,7 +236,7 @@ NetworkFirewallPoliciesRestConnectionImpl::AddRule( StatusOr NetworkFirewallPoliciesRestConnectionImpl::AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: AddRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -253,7 +253,7 @@ NetworkFirewallPoliciesRestConnectionImpl::AddRule( future> NetworkFirewallPoliciesRestConnectionImpl::AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -365,7 +365,7 @@ NetworkFirewallPoliciesRestConnectionImpl::CloneRules( StatusOr NetworkFirewallPoliciesRestConnectionImpl::CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: CloneRulesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -382,7 +382,7 @@ NetworkFirewallPoliciesRestConnectionImpl::CloneRules( future> NetworkFirewallPoliciesRestConnectionImpl::CloneRules( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -494,7 +494,7 @@ NetworkFirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( StatusOr NetworkFirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -511,7 +511,7 @@ NetworkFirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( future> NetworkFirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -687,7 +687,7 @@ NetworkFirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( StatusOr NetworkFirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: InsertFirewallPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -704,7 +704,7 @@ NetworkFirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( future> NetworkFirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -856,7 +856,7 @@ NetworkFirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( StatusOr NetworkFirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: PatchFirewallPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -873,7 +873,7 @@ NetworkFirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( future> NetworkFirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -985,7 +985,7 @@ NetworkFirewallPoliciesRestConnectionImpl::PatchRule( StatusOr NetworkFirewallPoliciesRestConnectionImpl::PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: PatchRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1002,7 +1002,7 @@ NetworkFirewallPoliciesRestConnectionImpl::PatchRule( future> NetworkFirewallPoliciesRestConnectionImpl::PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1114,7 +1114,7 @@ NetworkFirewallPoliciesRestConnectionImpl::RemoveAssociation( StatusOr NetworkFirewallPoliciesRestConnectionImpl::RemoveAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveAssociationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1131,7 +1131,7 @@ NetworkFirewallPoliciesRestConnectionImpl::RemoveAssociation( future> NetworkFirewallPoliciesRestConnectionImpl::RemoveAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1243,7 +1243,7 @@ NetworkFirewallPoliciesRestConnectionImpl::RemoveRule( StatusOr NetworkFirewallPoliciesRestConnectionImpl::RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1260,7 +1260,7 @@ NetworkFirewallPoliciesRestConnectionImpl::RemoveRule( future> NetworkFirewallPoliciesRestConnectionImpl::RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_rest_connection_impl.h b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_rest_connection_impl.h index 2b2909d1b758b..295c1543ea980 100644 --- a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_rest_connection_impl.h +++ b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_rest_connection_impl.h @@ -59,12 +59,12 @@ class NetworkFirewallPoliciesRestConnectionImpl AddAssociationRequest const& request) override; StatusOr AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: AddAssociationRequest const& request) override; future> AddAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> AddRule( @@ -72,12 +72,12 @@ class NetworkFirewallPoliciesRestConnectionImpl AddRuleRequest const& request) override; StatusOr AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: AddRuleRequest const& request) override; future> AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> CloneRules( @@ -85,12 +85,12 @@ class NetworkFirewallPoliciesRestConnectionImpl CloneRulesRequest const& request) override; StatusOr CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: CloneRulesRequest const& request) override; future> CloneRules( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -99,13 +99,13 @@ class NetworkFirewallPoliciesRestConnectionImpl DeleteFirewallPolicyRequest const& request) override; StatusOr DeleteFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) override; future> DeleteFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetFirewallPolicy( @@ -130,13 +130,13 @@ class NetworkFirewallPoliciesRestConnectionImpl InsertFirewallPolicyRequest const& request) override; StatusOr InsertFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: InsertFirewallPolicyRequest const& request) override; future> InsertFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -150,13 +150,13 @@ class NetworkFirewallPoliciesRestConnectionImpl PatchFirewallPolicyRequest const& request) override; StatusOr PatchFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: PatchFirewallPolicyRequest const& request) override; future> PatchFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> PatchRule( @@ -164,12 +164,12 @@ class NetworkFirewallPoliciesRestConnectionImpl PatchRuleRequest const& request) override; StatusOr PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: PatchRuleRequest const& request) override; future> PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -177,13 +177,13 @@ class NetworkFirewallPoliciesRestConnectionImpl RemoveAssociationRequest const& request) override; StatusOr RemoveAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveAssociationRequest const& request) override; future> RemoveAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> RemoveRule( @@ -191,12 +191,12 @@ class NetworkFirewallPoliciesRestConnectionImpl RemoveRuleRequest const& request) override; StatusOr RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveRuleRequest const& request) override; future> RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( diff --git a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.cc b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.cc index 3ca035c92f6d0..fc57d7c80e3a5 100644 --- a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.cc +++ b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.cc @@ -56,7 +56,7 @@ NetworkFirewallPoliciesTracingConnection::AddAssociation( auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":AddAssociation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddAssociation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -94,7 +94,7 @@ NetworkFirewallPoliciesTracingConnection::AddRule( auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":AddRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -132,7 +132,7 @@ NetworkFirewallPoliciesTracingConnection::CloneRules( auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":CloneRules"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CloneRules(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -171,7 +171,7 @@ NetworkFirewallPoliciesTracingConnection::DeleteFirewallPolicy( auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":DeleteFirewallPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteFirewallPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -254,7 +254,7 @@ NetworkFirewallPoliciesTracingConnection::InsertFirewallPolicy( auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":InsertFirewallPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertFirewallPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -307,7 +307,7 @@ NetworkFirewallPoliciesTracingConnection::PatchFirewallPolicy( auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":PatchFirewallPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchFirewallPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -345,7 +345,7 @@ NetworkFirewallPoliciesTracingConnection::PatchRule( auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":PatchRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -383,7 +383,7 @@ NetworkFirewallPoliciesTracingConnection::RemoveAssociation( auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":RemoveAssociation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RemoveAssociation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -421,7 +421,7 @@ NetworkFirewallPoliciesTracingConnection::RemoveRule( auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":RemoveRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RemoveRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection.cc b/google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection.cc index be58b763364b3..074b4140f8e04 100644 --- a/google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection.cc +++ b/google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection.cc @@ -49,7 +49,7 @@ NetworkFirewallPoliciesConnection::AddAssociation( StatusOr NetworkFirewallPoliciesConnection::AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: AddAssociationRequest const&) { return StatusOr( @@ -58,8 +58,7 @@ NetworkFirewallPoliciesConnection::AddAssociation( future> NetworkFirewallPoliciesConnection::AddAssociation( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -76,7 +75,7 @@ NetworkFirewallPoliciesConnection::AddRule( StatusOr NetworkFirewallPoliciesConnection::AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: AddRuleRequest const&) { return StatusOr( @@ -85,8 +84,7 @@ NetworkFirewallPoliciesConnection::AddRule( future> NetworkFirewallPoliciesConnection::AddRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -103,7 +101,7 @@ NetworkFirewallPoliciesConnection::CloneRules( StatusOr NetworkFirewallPoliciesConnection::CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: CloneRulesRequest const&) { return StatusOr( @@ -112,8 +110,7 @@ NetworkFirewallPoliciesConnection::CloneRules( future> NetworkFirewallPoliciesConnection::CloneRules( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -130,7 +127,7 @@ NetworkFirewallPoliciesConnection::DeleteFirewallPolicy( StatusOr NetworkFirewallPoliciesConnection::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: DeleteFirewallPolicyRequest const&) { return StatusOr( @@ -139,8 +136,7 @@ NetworkFirewallPoliciesConnection::DeleteFirewallPolicy( future> NetworkFirewallPoliciesConnection::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -185,7 +181,7 @@ NetworkFirewallPoliciesConnection::InsertFirewallPolicy( StatusOr NetworkFirewallPoliciesConnection::InsertFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: InsertFirewallPolicyRequest const&) { return StatusOr( @@ -194,8 +190,7 @@ NetworkFirewallPoliciesConnection::InsertFirewallPolicy( future> NetworkFirewallPoliciesConnection::InsertFirewallPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -220,7 +215,7 @@ NetworkFirewallPoliciesConnection::PatchFirewallPolicy( StatusOr NetworkFirewallPoliciesConnection::PatchFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: PatchFirewallPolicyRequest const&) { return StatusOr( @@ -229,8 +224,7 @@ NetworkFirewallPoliciesConnection::PatchFirewallPolicy( future> NetworkFirewallPoliciesConnection::PatchFirewallPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -247,7 +241,7 @@ NetworkFirewallPoliciesConnection::PatchRule( StatusOr NetworkFirewallPoliciesConnection::PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: PatchRuleRequest const&) { return StatusOr( @@ -256,8 +250,7 @@ NetworkFirewallPoliciesConnection::PatchRule( future> NetworkFirewallPoliciesConnection::PatchRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -274,7 +267,7 @@ NetworkFirewallPoliciesConnection::RemoveAssociation( StatusOr NetworkFirewallPoliciesConnection::RemoveAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveAssociationRequest const&) { return StatusOr( @@ -283,8 +276,7 @@ NetworkFirewallPoliciesConnection::RemoveAssociation( future> NetworkFirewallPoliciesConnection::RemoveAssociation( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -301,7 +293,7 @@ NetworkFirewallPoliciesConnection::RemoveRule( StatusOr NetworkFirewallPoliciesConnection::RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveRuleRequest const&) { return StatusOr( @@ -310,8 +302,7 @@ NetworkFirewallPoliciesConnection::RemoveRule( future> NetworkFirewallPoliciesConnection::RemoveRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection.h b/google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection.h index f8a6d9c69172e..9def12347878e 100644 --- a/google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection.h +++ b/google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_retry_traits.h" #include "google/cloud/compute/network_firewall_policies/v1/network_firewall_policies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -202,12 +202,12 @@ class NetworkFirewallPoliciesConnection { AddAssociationRequest const& request); virtual StatusOr AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: AddAssociationRequest const& request); virtual future> - AddAssociation(google::cloud::ExperimentalTag, + AddAssociation(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> AddRule( @@ -215,12 +215,12 @@ class NetworkFirewallPoliciesConnection { AddRuleRequest const& request); virtual StatusOr AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: AddRuleRequest const& request); virtual future> AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -228,12 +228,12 @@ class NetworkFirewallPoliciesConnection { CloneRulesRequest const& request); virtual StatusOr CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: CloneRulesRequest const& request); virtual future> - CloneRules(google::cloud::ExperimentalTag, + CloneRules(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -241,14 +241,13 @@ class NetworkFirewallPoliciesConnection { v1::DeleteFirewallPolicyRequest const& request); virtual StatusOr - DeleteFirewallPolicy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteFirewallPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies:: v1::DeleteFirewallPolicyRequest const& request); virtual future> DeleteFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -272,14 +271,13 @@ class NetworkFirewallPoliciesConnection { v1::InsertFirewallPolicyRequest const& request); virtual StatusOr - InsertFirewallPolicy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertFirewallPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies:: v1::InsertFirewallPolicyRequest const& request); virtual future> InsertFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -292,13 +290,13 @@ class NetworkFirewallPoliciesConnection { v1::PatchFirewallPolicyRequest const& request); virtual StatusOr - PatchFirewallPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + PatchFirewallPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies:: v1::PatchFirewallPolicyRequest const& request); virtual future> PatchFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -306,12 +304,12 @@ class NetworkFirewallPoliciesConnection { PatchRuleRequest const& request); virtual StatusOr PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: PatchRuleRequest const& request); virtual future> - PatchRule(google::cloud::ExperimentalTag, + PatchRule(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -319,13 +317,13 @@ class NetworkFirewallPoliciesConnection { RemoveAssociationRequest const& request); virtual StatusOr - RemoveAssociation(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + RemoveAssociation(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveAssociationRequest const& request); virtual future> RemoveAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -333,12 +331,12 @@ class NetworkFirewallPoliciesConnection { RemoveRuleRequest const& request); virtual StatusOr RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveRuleRequest const& request); virtual future> - RemoveRule(google::cloud::ExperimentalTag, + RemoveRule(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr SetIamPolicy( diff --git a/google/cloud/compute/networks/v1/internal/networks_rest_connection_impl.cc b/google/cloud/compute/networks/v1/internal/networks_rest_connection_impl.cc index d0632fef245e4..dac3dda60a2a5 100644 --- a/google/cloud/compute/networks/v1/internal/networks_rest_connection_impl.cc +++ b/google/cloud/compute/networks/v1/internal/networks_rest_connection_impl.cc @@ -104,7 +104,7 @@ NetworksRestConnectionImpl::AddPeering( StatusOr NetworksRestConnectionImpl::AddPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::AddPeeringRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -121,7 +121,7 @@ NetworksRestConnectionImpl::AddPeering( future> NetworksRestConnectionImpl::AddPeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -234,7 +234,7 @@ NetworksRestConnectionImpl::DeleteNetwork( StatusOr NetworksRestConnectionImpl::DeleteNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -252,7 +252,7 @@ NetworksRestConnectionImpl::DeleteNetwork( future> NetworksRestConnectionImpl::DeleteNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -397,7 +397,7 @@ NetworksRestConnectionImpl::InsertNetwork( StatusOr NetworksRestConnectionImpl::InsertNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -415,7 +415,7 @@ NetworksRestConnectionImpl::InsertNetwork( future> NetworksRestConnectionImpl::InsertNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -600,7 +600,7 @@ NetworksRestConnectionImpl::PatchNetwork( StatusOr NetworksRestConnectionImpl::PatchNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -618,7 +618,7 @@ NetworksRestConnectionImpl::PatchNetwork( future> NetworksRestConnectionImpl::PatchNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -731,7 +731,7 @@ NetworksRestConnectionImpl::RemovePeering( StatusOr NetworksRestConnectionImpl::RemovePeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -749,7 +749,7 @@ NetworksRestConnectionImpl::RemovePeering( future> NetworksRestConnectionImpl::RemovePeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -861,7 +861,7 @@ NetworksRestConnectionImpl::SwitchToCustomMode( StatusOr NetworksRestConnectionImpl::SwitchToCustomMode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::SwitchToCustomModeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -878,7 +878,7 @@ NetworksRestConnectionImpl::SwitchToCustomMode( future> NetworksRestConnectionImpl::SwitchToCustomMode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -991,7 +991,7 @@ NetworksRestConnectionImpl::UpdatePeering( StatusOr NetworksRestConnectionImpl::UpdatePeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1009,7 +1009,7 @@ NetworksRestConnectionImpl::UpdatePeering( future> NetworksRestConnectionImpl::UpdatePeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/networks/v1/internal/networks_rest_connection_impl.h b/google/cloud/compute/networks/v1/internal/networks_rest_connection_impl.h index 9e702f1d2b2ea..d64bfbe79e78f 100644 --- a/google/cloud/compute/networks/v1/internal/networks_rest_connection_impl.h +++ b/google/cloud/compute/networks/v1/internal/networks_rest_connection_impl.h @@ -55,12 +55,12 @@ class NetworksRestConnectionImpl request) override; StatusOr AddPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::AddPeeringRequest const& request) override; future> AddPeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> DeleteNetwork( @@ -68,12 +68,12 @@ class NetworksRestConnectionImpl request) override; StatusOr DeleteNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& request) override; future> DeleteNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetNetwork( @@ -91,12 +91,12 @@ class NetworksRestConnectionImpl request) override; StatusOr InsertNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const& request) override; future> InsertNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListNetworks( @@ -113,12 +113,12 @@ class NetworksRestConnectionImpl request) override; StatusOr PatchNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const& request) override; future> PatchNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> RemovePeering( @@ -126,12 +126,12 @@ class NetworksRestConnectionImpl request) override; StatusOr RemovePeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& request) override; future> RemovePeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -139,13 +139,13 @@ class NetworksRestConnectionImpl SwitchToCustomModeRequest const& request) override; StatusOr SwitchToCustomMode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1:: SwitchToCustomModeRequest const& request) override; future> SwitchToCustomMode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> UpdatePeering( @@ -153,12 +153,12 @@ class NetworksRestConnectionImpl request) override; StatusOr UpdatePeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& request) override; future> UpdatePeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/networks/v1/internal/networks_tracing_connection.cc b/google/cloud/compute/networks/v1/internal/networks_tracing_connection.cc index a6cda04813e36..13dd2bb47a8d1 100644 --- a/google/cloud/compute/networks/v1/internal/networks_tracing_connection.cc +++ b/google/cloud/compute/networks/v1/internal/networks_tracing_connection.cc @@ -50,7 +50,7 @@ NetworksTracingConnection::AddPeering( request) { auto span = internal::MakeSpan("compute_networks_v1::NetworksConnection::AddPeering"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddPeering(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -85,7 +85,7 @@ NetworksTracingConnection::DeleteNetwork( request) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::DeleteNetwork"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteNetwork(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -140,7 +140,7 @@ NetworksTracingConnection::InsertNetwork( request) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::InsertNetwork"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertNetwork(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -199,7 +199,7 @@ NetworksTracingConnection::PatchNetwork( request) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::PatchNetwork"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchNetwork(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -234,7 +234,7 @@ NetworksTracingConnection::RemovePeering( request) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::RemovePeering"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RemovePeering(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -270,7 +270,7 @@ NetworksTracingConnection::SwitchToCustomMode( request) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::SwitchToCustomMode"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SwitchToCustomMode(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -305,7 +305,7 @@ NetworksTracingConnection::UpdatePeering( request) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::UpdatePeering"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdatePeering(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/networks/v1/networks_connection.cc b/google/cloud/compute/networks/v1/networks_connection.cc index ec790f94f9306..483ef180fd96c 100644 --- a/google/cloud/compute/networks/v1/networks_connection.cc +++ b/google/cloud/compute/networks/v1/networks_connection.cc @@ -46,7 +46,7 @@ NetworksConnection::AddPeering( StatusOr NetworksConnection::AddPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::AddPeeringRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -54,8 +54,7 @@ NetworksConnection::AddPeering( future> NetworksConnection::AddPeering( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -71,7 +70,7 @@ NetworksConnection::DeleteNetwork( StatusOr NetworksConnection::DeleteNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -79,8 +78,7 @@ NetworksConnection::DeleteNetwork( future> NetworksConnection::DeleteNetwork( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -109,7 +107,7 @@ NetworksConnection::InsertNetwork( StatusOr NetworksConnection::InsertNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -117,8 +115,7 @@ NetworksConnection::InsertNetwork( future> NetworksConnection::InsertNetwork( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -150,7 +147,7 @@ NetworksConnection::PatchNetwork( StatusOr NetworksConnection::PatchNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -158,8 +155,7 @@ NetworksConnection::PatchNetwork( future> NetworksConnection::PatchNetwork( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -175,7 +171,7 @@ NetworksConnection::RemovePeering( StatusOr NetworksConnection::RemovePeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -183,8 +179,7 @@ NetworksConnection::RemovePeering( future> NetworksConnection::RemovePeering( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -201,7 +196,7 @@ NetworksConnection::SwitchToCustomMode( StatusOr NetworksConnection::SwitchToCustomMode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1:: SwitchToCustomModeRequest const&) { return StatusOr( @@ -210,8 +205,7 @@ NetworksConnection::SwitchToCustomMode( future> NetworksConnection::SwitchToCustomMode( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -227,7 +221,7 @@ NetworksConnection::UpdatePeering( StatusOr NetworksConnection::UpdatePeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -235,8 +229,7 @@ NetworksConnection::UpdatePeering( future> NetworksConnection::UpdatePeering( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/networks/v1/networks_connection.h b/google/cloud/compute/networks/v1/networks_connection.h index a5f68871e4562..69e86056c3394 100644 --- a/google/cloud/compute/networks/v1/networks_connection.h +++ b/google/cloud/compute/networks/v1/networks_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/networks/v1/internal/networks_retry_traits.h" #include "google/cloud/compute/networks/v1/networks_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -188,12 +188,12 @@ class NetworksConnection { request); virtual StatusOr AddPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::AddPeeringRequest const& request); virtual future> - AddPeering(google::cloud::ExperimentalTag, + AddPeering(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -202,12 +202,12 @@ class NetworksConnection { request); virtual StatusOr DeleteNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& request); virtual future> - DeleteNetwork(google::cloud::ExperimentalTag, + DeleteNetwork(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetNetwork( @@ -225,12 +225,12 @@ class NetworksConnection { request); virtual StatusOr InsertNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const& request); virtual future> - InsertNetwork(google::cloud::ExperimentalTag, + InsertNetwork(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange ListNetworks( @@ -247,12 +247,12 @@ class NetworksConnection { request); virtual StatusOr PatchNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const& request); virtual future> - PatchNetwork(google::cloud::ExperimentalTag, + PatchNetwork(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -261,12 +261,12 @@ class NetworksConnection { request); virtual StatusOr RemovePeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& request); virtual future> - RemovePeering(google::cloud::ExperimentalTag, + RemovePeering(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -274,13 +274,13 @@ class NetworksConnection { SwitchToCustomModeRequest const& request); virtual StatusOr - SwitchToCustomMode(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SwitchToCustomMode(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1:: SwitchToCustomModeRequest const& request); virtual future> SwitchToCustomMode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -289,12 +289,12 @@ class NetworksConnection { request); virtual StatusOr UpdatePeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& request); virtual future> - UpdatePeering(google::cloud::ExperimentalTag, + UpdatePeering(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.cc b/google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.cc index de79e6123263c..ce26eac0f412a 100644 --- a/google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.cc +++ b/google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.cc @@ -106,7 +106,7 @@ NodeGroupsRestConnectionImpl::AddNodes( StatusOr NodeGroupsRestConnectionImpl::AddNodes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -124,7 +124,7 @@ NodeGroupsRestConnectionImpl::AddNodes( future> NodeGroupsRestConnectionImpl::AddNodes( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -281,7 +281,7 @@ NodeGroupsRestConnectionImpl::DeleteNodeGroup( StatusOr NodeGroupsRestConnectionImpl::DeleteNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::DeleteNodeGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -298,7 +298,7 @@ NodeGroupsRestConnectionImpl::DeleteNodeGroup( future> NodeGroupsRestConnectionImpl::DeleteNodeGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -414,7 +414,7 @@ NodeGroupsRestConnectionImpl::DeleteNodes( StatusOr NodeGroupsRestConnectionImpl::DeleteNodes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -431,7 +431,7 @@ NodeGroupsRestConnectionImpl::DeleteNodes( future> NodeGroupsRestConnectionImpl::DeleteNodes( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -579,7 +579,7 @@ NodeGroupsRestConnectionImpl::InsertNodeGroup( StatusOr NodeGroupsRestConnectionImpl::InsertNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::InsertNodeGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -596,7 +596,7 @@ NodeGroupsRestConnectionImpl::InsertNodeGroup( future> NodeGroupsRestConnectionImpl::InsertNodeGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -784,7 +784,7 @@ NodeGroupsRestConnectionImpl::PatchNodeGroup( StatusOr NodeGroupsRestConnectionImpl::PatchNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::PatchNodeGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -801,7 +801,7 @@ NodeGroupsRestConnectionImpl::PatchNodeGroup( future> NodeGroupsRestConnectionImpl::PatchNodeGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -917,7 +917,7 @@ NodeGroupsRestConnectionImpl::PerformMaintenance( StatusOr NodeGroupsRestConnectionImpl::PerformMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: PerformMaintenanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -934,7 +934,7 @@ NodeGroupsRestConnectionImpl::PerformMaintenance( future> NodeGroupsRestConnectionImpl::PerformMaintenance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1066,7 +1066,7 @@ NodeGroupsRestConnectionImpl::SetNodeTemplate( StatusOr NodeGroupsRestConnectionImpl::SetNodeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::SetNodeTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1083,7 +1083,7 @@ NodeGroupsRestConnectionImpl::SetNodeTemplate( future> NodeGroupsRestConnectionImpl::SetNodeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1199,7 +1199,7 @@ NodeGroupsRestConnectionImpl::SimulateMaintenanceEvent( StatusOr NodeGroupsRestConnectionImpl::SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: SimulateMaintenanceEventRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1216,7 +1216,7 @@ NodeGroupsRestConnectionImpl::SimulateMaintenanceEvent( future> NodeGroupsRestConnectionImpl::SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.h b/google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.h index fbd63c3961801..4e6fc18d2dd2c 100644 --- a/google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.h +++ b/google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.h @@ -55,12 +55,12 @@ class NodeGroupsRestConnectionImpl request) override; StatusOr AddNodes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const& request) override; future> AddNodes( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange DeleteNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: DeleteNodeGroupRequest const& request) override; future> DeleteNodeGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> DeleteNodes( @@ -87,12 +87,12 @@ class NodeGroupsRestConnectionImpl request) override; StatusOr DeleteNodes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& request) override; future> DeleteNodes( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetNodeGroup( @@ -108,12 +108,12 @@ class NodeGroupsRestConnectionImpl InsertNodeGroupRequest const& request) override; StatusOr InsertNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: InsertNodeGroupRequest const& request) override; future> InsertNodeGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListNodeGroups( @@ -129,12 +129,12 @@ class NodeGroupsRestConnectionImpl request) override; StatusOr PatchNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::PatchNodeGroupRequest const& request) override; future> PatchNodeGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -142,13 +142,13 @@ class NodeGroupsRestConnectionImpl PerformMaintenanceRequest const& request) override; StatusOr PerformMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: PerformMaintenanceRequest const& request) override; future> PerformMaintenance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -160,12 +160,12 @@ class NodeGroupsRestConnectionImpl SetNodeTemplateRequest const& request) override; StatusOr SetNodeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: SetNodeTemplateRequest const& request) override; future> SetNodeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -174,13 +174,13 @@ class NodeGroupsRestConnectionImpl SimulateMaintenanceEventRequest const& request) override; StatusOr SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: SimulateMaintenanceEventRequest const& request) override; future> SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr diff --git a/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.cc b/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.cc index 864f660f335e7..4a4ba9bce7bd3 100644 --- a/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.cc +++ b/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.cc @@ -50,7 +50,7 @@ NodeGroupsTracingConnection::AddNodes( request) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::AddNodes"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddNodes(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -99,7 +99,7 @@ NodeGroupsTracingConnection::DeleteNodeGroup( request) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::DeleteNodeGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteNodeGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -134,7 +134,7 @@ NodeGroupsTracingConnection::DeleteNodes( request) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::DeleteNodes"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteNodes(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -189,7 +189,7 @@ NodeGroupsTracingConnection::InsertNodeGroup( request) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::InsertNodeGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertNodeGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -249,7 +249,7 @@ NodeGroupsTracingConnection::PatchNodeGroup( request) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::PatchNodeGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchNodeGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -285,7 +285,7 @@ NodeGroupsTracingConnection::PerformMaintenance( PerformMaintenanceRequest const& request) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::PerformMaintenance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PerformMaintenance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -330,7 +330,7 @@ NodeGroupsTracingConnection::SetNodeTemplate( request) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::SetNodeTemplate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetNodeTemplate(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -366,7 +366,7 @@ NodeGroupsTracingConnection::SimulateMaintenanceEvent( SimulateMaintenanceEventRequest const& request) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::SimulateMaintenanceEvent"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SimulateMaintenanceEvent( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/node_groups/v1/node_groups_connection.cc b/google/cloud/compute/node_groups/v1/node_groups_connection.cc index f187ba3c0fda4..30f8e92123165 100644 --- a/google/cloud/compute/node_groups/v1/node_groups_connection.cc +++ b/google/cloud/compute/node_groups/v1/node_groups_connection.cc @@ -46,7 +46,7 @@ NodeGroupsConnection::AddNodes( StatusOr NodeGroupsConnection::AddNodes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -54,8 +54,7 @@ NodeGroupsConnection::AddNodes( future> NodeGroupsConnection::AddNodes( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -80,8 +79,7 @@ NodeGroupsConnection::DeleteNodeGroup(google::cloud::cpp::compute::node_groups:: } StatusOr -NodeGroupsConnection::DeleteNodeGroup(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, +NodeGroupsConnection::DeleteNodeGroup(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups:: v1::DeleteNodeGroupRequest const&) { return StatusOr( @@ -90,8 +88,7 @@ NodeGroupsConnection::DeleteNodeGroup(google::cloud::ExperimentalTag, future> NodeGroupsConnection::DeleteNodeGroup( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -107,7 +104,7 @@ NodeGroupsConnection::DeleteNodes( StatusOr NodeGroupsConnection::DeleteNodes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -115,8 +112,7 @@ NodeGroupsConnection::DeleteNodes( future> NodeGroupsConnection::DeleteNodes( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -143,8 +139,7 @@ NodeGroupsConnection::InsertNodeGroup(google::cloud::cpp::compute::node_groups:: } StatusOr -NodeGroupsConnection::InsertNodeGroup(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, +NodeGroupsConnection::InsertNodeGroup(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups:: v1::InsertNodeGroupRequest const&) { return StatusOr( @@ -153,8 +148,7 @@ NodeGroupsConnection::InsertNodeGroup(google::cloud::ExperimentalTag, future> NodeGroupsConnection::InsertNodeGroup( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -185,8 +179,7 @@ NodeGroupsConnection::PatchNodeGroup(google::cloud::cpp::compute::node_groups:: } StatusOr -NodeGroupsConnection::PatchNodeGroup(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, +NodeGroupsConnection::PatchNodeGroup(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups:: v1::PatchNodeGroupRequest const&) { return StatusOr( @@ -195,8 +188,7 @@ NodeGroupsConnection::PatchNodeGroup(google::cloud::ExperimentalTag, future> NodeGroupsConnection::PatchNodeGroup( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -213,7 +205,7 @@ NodeGroupsConnection::PerformMaintenance( StatusOr NodeGroupsConnection::PerformMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: PerformMaintenanceRequest const&) { return StatusOr( @@ -222,8 +214,7 @@ NodeGroupsConnection::PerformMaintenance( future> NodeGroupsConnection::PerformMaintenance( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -244,8 +235,7 @@ NodeGroupsConnection::SetNodeTemplate(google::cloud::cpp::compute::node_groups:: } StatusOr -NodeGroupsConnection::SetNodeTemplate(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, +NodeGroupsConnection::SetNodeTemplate(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups:: v1::SetNodeTemplateRequest const&) { return StatusOr( @@ -254,8 +244,7 @@ NodeGroupsConnection::SetNodeTemplate(google::cloud::ExperimentalTag, future> NodeGroupsConnection::SetNodeTemplate( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -272,7 +261,7 @@ NodeGroupsConnection::SimulateMaintenanceEvent( StatusOr NodeGroupsConnection::SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: SimulateMaintenanceEventRequest const&) { return StatusOr( @@ -281,8 +270,7 @@ NodeGroupsConnection::SimulateMaintenanceEvent( future> NodeGroupsConnection::SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/node_groups/v1/node_groups_connection.h b/google/cloud/compute/node_groups/v1/node_groups_connection.h index 090817e655d10..7d03f0efe81b7 100644 --- a/google/cloud/compute/node_groups/v1/node_groups_connection.h +++ b/google/cloud/compute/node_groups/v1/node_groups_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/node_groups/v1/internal/node_groups_retry_traits.h" #include "google/cloud/compute/node_groups/v1/node_groups_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -190,12 +190,12 @@ class NodeGroupsConnection { request); virtual StatusOr AddNodes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const& request); virtual future> AddNodes( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange DeleteNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: DeleteNodeGroupRequest const& request); virtual future> - DeleteNodeGroup(google::cloud::ExperimentalTag, + DeleteNodeGroup(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -222,12 +222,12 @@ class NodeGroupsConnection { request); virtual StatusOr DeleteNodes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& request); virtual future> - DeleteNodes(google::cloud::ExperimentalTag, + DeleteNodes(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetNodeGroup( @@ -243,12 +243,12 @@ class NodeGroupsConnection { InsertNodeGroupRequest const& request); virtual StatusOr InsertNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: InsertNodeGroupRequest const& request); virtual future> - InsertNodeGroup(google::cloud::ExperimentalTag, + InsertNodeGroup(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -265,12 +265,12 @@ class NodeGroupsConnection { request); virtual StatusOr PatchNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::PatchNodeGroupRequest const& request); virtual future> - PatchNodeGroup(google::cloud::ExperimentalTag, + PatchNodeGroup(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -278,13 +278,13 @@ class NodeGroupsConnection { PerformMaintenanceRequest const& request); virtual StatusOr - PerformMaintenance(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + PerformMaintenance(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: PerformMaintenanceRequest const& request); virtual future> PerformMaintenance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr SetIamPolicy( @@ -296,12 +296,12 @@ class NodeGroupsConnection { SetNodeTemplateRequest const& request); virtual StatusOr SetNodeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: SetNodeTemplateRequest const& request); virtual future> - SetNodeTemplate(google::cloud::ExperimentalTag, + SetNodeTemplate(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -309,14 +309,13 @@ class NodeGroupsConnection { SimulateMaintenanceEventRequest const& request); virtual StatusOr - SimulateMaintenanceEvent(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + SimulateMaintenanceEvent(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: SimulateMaintenanceEventRequest const& request); virtual future> SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr diff --git a/google/cloud/compute/node_templates/v1/internal/node_templates_rest_connection_impl.cc b/google/cloud/compute/node_templates/v1/internal/node_templates_rest_connection_impl.cc index 737e60efbf042..f5eea3e2cb3e5 100644 --- a/google/cloud/compute/node_templates/v1/internal/node_templates_rest_connection_impl.cc +++ b/google/cloud/compute/node_templates/v1/internal/node_templates_rest_connection_impl.cc @@ -149,7 +149,7 @@ NodeTemplatesRestConnectionImpl::DeleteNodeTemplate( StatusOr NodeTemplatesRestConnectionImpl::DeleteNodeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_templates::v1:: DeleteNodeTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -166,7 +166,7 @@ NodeTemplatesRestConnectionImpl::DeleteNodeTemplate( future> NodeTemplatesRestConnectionImpl::DeleteNodeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -314,7 +314,7 @@ NodeTemplatesRestConnectionImpl::InsertNodeTemplate( StatusOr NodeTemplatesRestConnectionImpl::InsertNodeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_templates::v1:: InsertNodeTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -331,7 +331,7 @@ NodeTemplatesRestConnectionImpl::InsertNodeTemplate( future> NodeTemplatesRestConnectionImpl::InsertNodeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/node_templates/v1/internal/node_templates_rest_connection_impl.h b/google/cloud/compute/node_templates/v1/internal/node_templates_rest_connection_impl.h index 93f3d455d97ae..ce216f6f2db1c 100644 --- a/google/cloud/compute/node_templates/v1/internal/node_templates_rest_connection_impl.h +++ b/google/cloud/compute/node_templates/v1/internal/node_templates_rest_connection_impl.h @@ -62,13 +62,13 @@ class NodeTemplatesRestConnectionImpl DeleteNodeTemplateRequest const& request) override; StatusOr DeleteNodeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_templates::v1:: DeleteNodeTemplateRequest const& request) override; future> DeleteNodeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetNodeTemplate( @@ -84,13 +84,13 @@ class NodeTemplatesRestConnectionImpl InsertNodeTemplateRequest const& request) override; StatusOr InsertNodeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_templates::v1:: InsertNodeTemplateRequest const& request) override; future> InsertNodeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListNodeTemplates( diff --git a/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.cc b/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.cc index bf640b28121f8..ca3ffba06b9ad 100644 --- a/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.cc +++ b/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.cc @@ -66,7 +66,7 @@ NodeTemplatesTracingConnection::DeleteNodeTemplate( DeleteNodeTemplateRequest const& request) { auto span = internal::MakeSpan( "compute_node_templates_v1::NodeTemplatesConnection::DeleteNodeTemplate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteNodeTemplate(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -122,7 +122,7 @@ NodeTemplatesTracingConnection::InsertNodeTemplate( InsertNodeTemplateRequest const& request) { auto span = internal::MakeSpan( "compute_node_templates_v1::NodeTemplatesConnection::InsertNodeTemplate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertNodeTemplate(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/node_templates/v1/node_templates_connection.cc b/google/cloud/compute/node_templates/v1/node_templates_connection.cc index 9aaf29c6bb649..25f826ee20516 100644 --- a/google/cloud/compute/node_templates/v1/node_templates_connection.cc +++ b/google/cloud/compute/node_templates/v1/node_templates_connection.cc @@ -57,7 +57,7 @@ NodeTemplatesConnection::DeleteNodeTemplate( StatusOr NodeTemplatesConnection::DeleteNodeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_templates::v1:: DeleteNodeTemplateRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ NodeTemplatesConnection::DeleteNodeTemplate( future> NodeTemplatesConnection::DeleteNodeTemplate( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -98,7 +97,7 @@ NodeTemplatesConnection::InsertNodeTemplate( StatusOr NodeTemplatesConnection::InsertNodeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_templates::v1:: InsertNodeTemplateRequest const&) { return StatusOr( @@ -107,8 +106,7 @@ NodeTemplatesConnection::InsertNodeTemplate( future> NodeTemplatesConnection::InsertNodeTemplate( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/node_templates/v1/node_templates_connection.h b/google/cloud/compute/node_templates/v1/node_templates_connection.h index 4be3227e5c092..95005aa00b851 100644 --- a/google/cloud/compute/node_templates/v1/node_templates_connection.h +++ b/google/cloud/compute/node_templates/v1/node_templates_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/node_templates/v1/internal/node_templates_retry_traits.h" #include "google/cloud/compute/node_templates/v1/node_templates_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,13 +197,13 @@ class NodeTemplatesConnection { DeleteNodeTemplateRequest const& request); virtual StatusOr - DeleteNodeTemplate(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + DeleteNodeTemplate(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_templates::v1:: DeleteNodeTemplateRequest const& request); virtual future> DeleteNodeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -219,13 +219,13 @@ class NodeTemplatesConnection { InsertNodeTemplateRequest const& request); virtual StatusOr - InsertNodeTemplate(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + InsertNodeTemplate(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_templates::v1:: InsertNodeTemplateRequest const& request); virtual future> InsertNodeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange diff --git a/google/cloud/compute/node_types/v1/node_types_connection.h b/google/cloud/compute/node_types/v1/node_types_connection.h index 1761d8847ef12..965a17380c707 100644 --- a/google/cloud/compute/node_types/v1/node_types_connection.h +++ b/google/cloud/compute/node_types/v1/node_types_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/compute/node_types/v1/internal/node_types_retry_traits.h" #include "google/cloud/compute/node_types/v1/node_types_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_rest_connection_impl.cc b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_rest_connection_impl.cc index 8a9d21e24b50e..ba2d4420605a3 100644 --- a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_rest_connection_impl.cc +++ b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_rest_connection_impl.cc @@ -150,7 +150,7 @@ PacketMirroringsRestConnectionImpl::DeletePacketMirroring( StatusOr PacketMirroringsRestConnectionImpl::DeletePacketMirroring( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: DeletePacketMirroringRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -167,7 +167,7 @@ PacketMirroringsRestConnectionImpl::DeletePacketMirroring( future> PacketMirroringsRestConnectionImpl::DeletePacketMirroring( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -299,7 +299,7 @@ PacketMirroringsRestConnectionImpl::InsertPacketMirroring( StatusOr PacketMirroringsRestConnectionImpl::InsertPacketMirroring( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: InsertPacketMirroringRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -316,7 +316,7 @@ PacketMirroringsRestConnectionImpl::InsertPacketMirroring( future> PacketMirroringsRestConnectionImpl::InsertPacketMirroring( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -471,7 +471,7 @@ PacketMirroringsRestConnectionImpl::PatchPacketMirroring( StatusOr PacketMirroringsRestConnectionImpl::PatchPacketMirroring( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: PatchPacketMirroringRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -488,7 +488,7 @@ PacketMirroringsRestConnectionImpl::PatchPacketMirroring( future> PacketMirroringsRestConnectionImpl::PatchPacketMirroring( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_rest_connection_impl.h b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_rest_connection_impl.h index 6c8738a707672..15ab662033f87 100644 --- a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_rest_connection_impl.h +++ b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_rest_connection_impl.h @@ -64,13 +64,13 @@ class PacketMirroringsRestConnectionImpl DeletePacketMirroringRequest const& request) override; StatusOr DeletePacketMirroring( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: DeletePacketMirroringRequest const& request) override; future> DeletePacketMirroring( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetPacketMirroring( @@ -83,13 +83,13 @@ class PacketMirroringsRestConnectionImpl InsertPacketMirroringRequest const& request) override; StatusOr InsertPacketMirroring( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: InsertPacketMirroringRequest const& request) override; future> InsertPacketMirroring( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -101,13 +101,13 @@ class PacketMirroringsRestConnectionImpl PatchPacketMirroringRequest const& request) override; StatusOr PatchPacketMirroring( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: PatchPacketMirroringRequest const& request) override; future> PatchPacketMirroring( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr diff --git a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.cc b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.cc index aee77a0c83177..41059312d02c8 100644 --- a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.cc +++ b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.cc @@ -70,7 +70,7 @@ PacketMirroringsTracingConnection::DeletePacketMirroring( auto span = internal::MakeSpan( "compute_packet_mirrorings_v1::PacketMirroringsConnection::" "DeletePacketMirroring"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeletePacketMirroring( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -120,7 +120,7 @@ PacketMirroringsTracingConnection::InsertPacketMirroring( auto span = internal::MakeSpan( "compute_packet_mirrorings_v1::PacketMirroringsConnection::" "InsertPacketMirroring"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertPacketMirroring( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -173,7 +173,7 @@ PacketMirroringsTracingConnection::PatchPacketMirroring( auto span = internal::MakeSpan( "compute_packet_mirrorings_v1::PacketMirroringsConnection::" "PatchPacketMirroring"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchPacketMirroring( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection.cc b/google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection.cc index d917822fae9c8..6e47cdfa1656c 100644 --- a/google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection.cc +++ b/google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection.cc @@ -57,7 +57,7 @@ PacketMirroringsConnection::DeletePacketMirroring( StatusOr PacketMirroringsConnection::DeletePacketMirroring( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: DeletePacketMirroringRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ PacketMirroringsConnection::DeletePacketMirroring( future> PacketMirroringsConnection::DeletePacketMirroring( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -91,7 +90,7 @@ PacketMirroringsConnection::InsertPacketMirroring( StatusOr PacketMirroringsConnection::InsertPacketMirroring( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: InsertPacketMirroringRequest const&) { return StatusOr( @@ -100,8 +99,7 @@ PacketMirroringsConnection::InsertPacketMirroring( future> PacketMirroringsConnection::InsertPacketMirroring( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -126,7 +124,7 @@ PacketMirroringsConnection::PatchPacketMirroring( StatusOr PacketMirroringsConnection::PatchPacketMirroring( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: PatchPacketMirroringRequest const&) { return StatusOr( @@ -135,8 +133,7 @@ PacketMirroringsConnection::PatchPacketMirroring( future> PacketMirroringsConnection::PatchPacketMirroring( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection.h b/google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection.h index cf41aed87072f..acfcdcc682fcb 100644 --- a/google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection.h +++ b/google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_retry_traits.h" #include "google/cloud/compute/packet_mirrorings/v1/packet_mirrorings_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,14 +199,13 @@ class PacketMirroringsConnection { DeletePacketMirroringRequest const& request); virtual StatusOr - DeletePacketMirroring(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeletePacketMirroring(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: DeletePacketMirroringRequest const& request); virtual future> DeletePacketMirroring( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -218,14 +217,13 @@ class PacketMirroringsConnection { InsertPacketMirroringRequest const& request); virtual StatusOr - InsertPacketMirroring(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertPacketMirroring(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: InsertPacketMirroringRequest const& request); virtual future> InsertPacketMirroring( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -237,14 +235,13 @@ class PacketMirroringsConnection { PatchPacketMirroringRequest const& request); virtual StatusOr - PatchPacketMirroring(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + PatchPacketMirroring(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: PatchPacketMirroringRequest const& request); virtual future> PatchPacketMirroring( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr diff --git a/google/cloud/compute/projects/v1/internal/projects_rest_connection_impl.cc b/google/cloud/compute/projects/v1/internal/projects_rest_connection_impl.cc index 9cd75e096f92f..01ccbc671a4e8 100644 --- a/google/cloud/compute/projects/v1/internal/projects_rest_connection_impl.cc +++ b/google/cloud/compute/projects/v1/internal/projects_rest_connection_impl.cc @@ -103,7 +103,7 @@ ProjectsRestConnectionImpl::DisableXpnHost( StatusOr ProjectsRestConnectionImpl::DisableXpnHost( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -120,7 +120,7 @@ ProjectsRestConnectionImpl::DisableXpnHost( future> ProjectsRestConnectionImpl::DisableXpnHost( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -232,7 +232,7 @@ ProjectsRestConnectionImpl::DisableXpnResource( StatusOr ProjectsRestConnectionImpl::DisableXpnResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::DisableXpnResourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -249,7 +249,7 @@ ProjectsRestConnectionImpl::DisableXpnResource( future> ProjectsRestConnectionImpl::DisableXpnResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -362,7 +362,7 @@ ProjectsRestConnectionImpl::EnableXpnHost( StatusOr ProjectsRestConnectionImpl::EnableXpnHost( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -380,7 +380,7 @@ ProjectsRestConnectionImpl::EnableXpnHost( future> ProjectsRestConnectionImpl::EnableXpnHost( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -492,7 +492,7 @@ ProjectsRestConnectionImpl::EnableXpnResource( StatusOr ProjectsRestConnectionImpl::EnableXpnResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -509,7 +509,7 @@ ProjectsRestConnectionImpl::EnableXpnResource( future> ProjectsRestConnectionImpl::EnableXpnResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -705,7 +705,7 @@ ProjectsRestConnectionImpl::MoveDisk( StatusOr ProjectsRestConnectionImpl::MoveDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -721,7 +721,7 @@ ProjectsRestConnectionImpl::MoveDisk( future> ProjectsRestConnectionImpl::MoveDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -834,7 +834,7 @@ ProjectsRestConnectionImpl::MoveInstance( StatusOr ProjectsRestConnectionImpl::MoveInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -852,7 +852,7 @@ ProjectsRestConnectionImpl::MoveInstance( future> ProjectsRestConnectionImpl::MoveInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -964,7 +964,7 @@ ProjectsRestConnectionImpl::SetCloudArmorTier( StatusOr ProjectsRestConnectionImpl::SetCloudArmorTier( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -981,7 +981,7 @@ ProjectsRestConnectionImpl::SetCloudArmorTier( future> ProjectsRestConnectionImpl::SetCloudArmorTier( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1093,7 +1093,7 @@ ProjectsRestConnectionImpl::SetCommonInstanceMetadata( StatusOr ProjectsRestConnectionImpl::SetCommonInstanceMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetCommonInstanceMetadataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1110,7 +1110,7 @@ ProjectsRestConnectionImpl::SetCommonInstanceMetadata( future> ProjectsRestConnectionImpl::SetCommonInstanceMetadata( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1222,7 +1222,7 @@ ProjectsRestConnectionImpl::SetDefaultNetworkTier( StatusOr ProjectsRestConnectionImpl::SetDefaultNetworkTier( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetDefaultNetworkTierRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1239,7 +1239,7 @@ ProjectsRestConnectionImpl::SetDefaultNetworkTier( future> ProjectsRestConnectionImpl::SetDefaultNetworkTier( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1351,7 +1351,7 @@ ProjectsRestConnectionImpl::SetUsageExportBucket( StatusOr ProjectsRestConnectionImpl::SetUsageExportBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetUsageExportBucketRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1368,7 +1368,7 @@ ProjectsRestConnectionImpl::SetUsageExportBucket( future> ProjectsRestConnectionImpl::SetUsageExportBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/projects/v1/internal/projects_rest_connection_impl.h b/google/cloud/compute/projects/v1/internal/projects_rest_connection_impl.h index 1aea005ef92d5..e1ee603ee36df 100644 --- a/google/cloud/compute/projects/v1/internal/projects_rest_connection_impl.h +++ b/google/cloud/compute/projects/v1/internal/projects_rest_connection_impl.h @@ -55,12 +55,12 @@ class ProjectsRestConnectionImpl request) override; StatusOr DisableXpnHost( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const& request) override; future> DisableXpnHost( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -68,13 +68,13 @@ class ProjectsRestConnectionImpl DisableXpnResourceRequest const& request) override; StatusOr DisableXpnResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: DisableXpnResourceRequest const& request) override; future> DisableXpnResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> EnableXpnHost( @@ -82,12 +82,12 @@ class ProjectsRestConnectionImpl request) override; StatusOr EnableXpnHost( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& request) override; future> EnableXpnHost( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -96,13 +96,13 @@ class ProjectsRestConnectionImpl request) override; StatusOr EnableXpnResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const& request) override; future> EnableXpnResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetProject( @@ -127,12 +127,12 @@ class ProjectsRestConnectionImpl override; StatusOr MoveDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& request) override; future> MoveDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> MoveInstance( @@ -140,12 +140,12 @@ class ProjectsRestConnectionImpl request) override; StatusOr MoveInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& request) override; future> MoveInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -154,13 +154,13 @@ class ProjectsRestConnectionImpl request) override; StatusOr SetCloudArmorTier( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const& request) override; future> SetCloudArmorTier( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -170,13 +170,13 @@ class ProjectsRestConnectionImpl StatusOr SetCommonInstanceMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetCommonInstanceMetadataRequest const& request) override; future> SetCommonInstanceMetadata( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -185,13 +185,13 @@ class ProjectsRestConnectionImpl SetDefaultNetworkTierRequest const& request) override; StatusOr SetDefaultNetworkTier( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetDefaultNetworkTierRequest const& request) override; future> SetDefaultNetworkTier( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -199,13 +199,13 @@ class ProjectsRestConnectionImpl SetUsageExportBucketRequest const& request) override; StatusOr SetUsageExportBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetUsageExportBucketRequest const& request) override; future> SetUsageExportBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/projects/v1/internal/projects_tracing_connection.cc b/google/cloud/compute/projects/v1/internal/projects_tracing_connection.cc index 08620d42fbb83..07fb423706043 100644 --- a/google/cloud/compute/projects/v1/internal/projects_tracing_connection.cc +++ b/google/cloud/compute/projects/v1/internal/projects_tracing_connection.cc @@ -50,7 +50,7 @@ ProjectsTracingConnection::DisableXpnHost( request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::DisableXpnHost"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DisableXpnHost(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -86,7 +86,7 @@ ProjectsTracingConnection::DisableXpnResource( request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::DisableXpnResource"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DisableXpnResource(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -121,7 +121,7 @@ ProjectsTracingConnection::EnableXpnHost( request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::EnableXpnHost"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->EnableXpnHost(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -156,7 +156,7 @@ ProjectsTracingConnection::EnableXpnResource( request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::EnableXpnResource"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->EnableXpnResource(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -230,7 +230,7 @@ ProjectsTracingConnection::MoveDisk( google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& request) { auto span = internal::MakeSpan("compute_projects_v1::ProjectsConnection::MoveDisk"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->MoveDisk(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -265,7 +265,7 @@ ProjectsTracingConnection::MoveInstance( request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::MoveInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->MoveInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -300,7 +300,7 @@ ProjectsTracingConnection::SetCloudArmorTier( request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::SetCloudArmorTier"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetCloudArmorTier(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -336,7 +336,7 @@ ProjectsTracingConnection::SetCommonInstanceMetadata( SetCommonInstanceMetadataRequest const& request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::SetCommonInstanceMetadata"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SetCommonInstanceMetadata( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -372,7 +372,7 @@ ProjectsTracingConnection::SetDefaultNetworkTier( SetDefaultNetworkTierRequest const& request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::SetDefaultNetworkTier"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SetDefaultNetworkTier( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -408,7 +408,7 @@ ProjectsTracingConnection::SetUsageExportBucket( SetUsageExportBucketRequest const& request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::SetUsageExportBucket"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SetUsageExportBucket( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/projects/v1/projects_connection.cc b/google/cloud/compute/projects/v1/projects_connection.cc index 41d2d4f4cfb4c..2433d6e2c6dc1 100644 --- a/google/cloud/compute/projects/v1/projects_connection.cc +++ b/google/cloud/compute/projects/v1/projects_connection.cc @@ -46,7 +46,7 @@ ProjectsConnection::DisableXpnHost( StatusOr ProjectsConnection::DisableXpnHost( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -54,8 +54,7 @@ ProjectsConnection::DisableXpnHost( future> ProjectsConnection::DisableXpnHost( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -72,7 +71,7 @@ ProjectsConnection::DisableXpnResource( StatusOr ProjectsConnection::DisableXpnResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: DisableXpnResourceRequest const&) { return StatusOr( @@ -81,8 +80,7 @@ ProjectsConnection::DisableXpnResource( future> ProjectsConnection::DisableXpnResource( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -98,7 +96,7 @@ ProjectsConnection::EnableXpnHost( StatusOr ProjectsConnection::EnableXpnHost( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -106,8 +104,7 @@ ProjectsConnection::EnableXpnHost( future> ProjectsConnection::EnableXpnHost( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -122,8 +119,7 @@ ProjectsConnection::EnableXpnResource(google::cloud::cpp::compute::projects:: } StatusOr -ProjectsConnection::EnableXpnResource(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, +ProjectsConnection::EnableXpnResource(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects:: v1::EnableXpnResourceRequest const&) { return StatusOr( @@ -132,8 +128,7 @@ ProjectsConnection::EnableXpnResource(google::cloud::ExperimentalTag, future> ProjectsConnection::EnableXpnResource( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -175,7 +170,7 @@ ProjectsConnection::MoveDisk( StatusOr ProjectsConnection::MoveDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveDiskRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -183,8 +178,7 @@ ProjectsConnection::MoveDisk( future> ProjectsConnection::MoveDisk( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -200,7 +194,7 @@ ProjectsConnection::MoveInstance( StatusOr ProjectsConnection::MoveInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -208,8 +202,7 @@ ProjectsConnection::MoveInstance( future> ProjectsConnection::MoveInstance( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -224,8 +217,7 @@ ProjectsConnection::SetCloudArmorTier(google::cloud::cpp::compute::projects:: } StatusOr -ProjectsConnection::SetCloudArmorTier(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, +ProjectsConnection::SetCloudArmorTier(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects:: v1::SetCloudArmorTierRequest const&) { return StatusOr( @@ -234,8 +226,7 @@ ProjectsConnection::SetCloudArmorTier(google::cloud::ExperimentalTag, future> ProjectsConnection::SetCloudArmorTier( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -252,7 +243,7 @@ ProjectsConnection::SetCommonInstanceMetadata( StatusOr ProjectsConnection::SetCommonInstanceMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetCommonInstanceMetadataRequest const&) { return StatusOr( @@ -261,8 +252,7 @@ ProjectsConnection::SetCommonInstanceMetadata( future> ProjectsConnection::SetCommonInstanceMetadata( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -279,7 +269,7 @@ ProjectsConnection::SetDefaultNetworkTier( StatusOr ProjectsConnection::SetDefaultNetworkTier( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetDefaultNetworkTierRequest const&) { return StatusOr( @@ -288,8 +278,7 @@ ProjectsConnection::SetDefaultNetworkTier( future> ProjectsConnection::SetDefaultNetworkTier( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -306,7 +295,7 @@ ProjectsConnection::SetUsageExportBucket( StatusOr ProjectsConnection::SetUsageExportBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetUsageExportBucketRequest const&) { return StatusOr( @@ -315,8 +304,7 @@ ProjectsConnection::SetUsageExportBucket( future> ProjectsConnection::SetUsageExportBucket( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/projects/v1/projects_connection.h b/google/cloud/compute/projects/v1/projects_connection.h index c51ab816d76b0..33a408b45fad5 100644 --- a/google/cloud/compute/projects/v1/projects_connection.h +++ b/google/cloud/compute/projects/v1/projects_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/projects/v1/internal/projects_retry_traits.h" #include "google/cloud/compute/projects/v1/projects_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -189,12 +189,12 @@ class ProjectsConnection { request); virtual StatusOr DisableXpnHost( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const& request); virtual future> - DisableXpnHost(google::cloud::ExperimentalTag, + DisableXpnHost(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -202,13 +202,13 @@ class ProjectsConnection { DisableXpnResourceRequest const& request); virtual StatusOr - DisableXpnResource(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + DisableXpnResource(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: DisableXpnResourceRequest const& request); virtual future> DisableXpnResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -217,12 +217,12 @@ class ProjectsConnection { request); virtual StatusOr EnableXpnHost( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& request); virtual future> - EnableXpnHost(google::cloud::ExperimentalTag, + EnableXpnHost(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -232,13 +232,13 @@ class ProjectsConnection { virtual StatusOr EnableXpnResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const& request); virtual future> EnableXpnResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetProject( @@ -262,12 +262,12 @@ class ProjectsConnection { request); virtual StatusOr MoveDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& request); virtual future> MoveDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -276,12 +276,12 @@ class ProjectsConnection { request); virtual StatusOr MoveInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& request); virtual future> - MoveInstance(google::cloud::ExperimentalTag, + MoveInstance(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -291,13 +291,13 @@ class ProjectsConnection { virtual StatusOr SetCloudArmorTier( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const& request); virtual future> SetCloudArmorTier( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -307,13 +307,13 @@ class ProjectsConnection { virtual StatusOr SetCommonInstanceMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetCommonInstanceMetadataRequest const& request); virtual future> SetCommonInstanceMetadata( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -321,14 +321,13 @@ class ProjectsConnection { SetDefaultNetworkTierRequest const& request); virtual StatusOr - SetDefaultNetworkTier(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + SetDefaultNetworkTier(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetDefaultNetworkTierRequest const& request); virtual future> SetDefaultNetworkTier( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -336,14 +335,13 @@ class ProjectsConnection { SetUsageExportBucketRequest const& request); virtual StatusOr - SetUsageExportBucket(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + SetUsageExportBucket(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetUsageExportBucketRequest const& request); virtual future> SetUsageExportBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_rest_connection_impl.cc b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_rest_connection_impl.cc index a8b3883cf174b..0467eb660397b 100644 --- a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_rest_connection_impl.cc +++ b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_rest_connection_impl.cc @@ -107,7 +107,7 @@ PublicAdvertisedPrefixesRestConnectionImpl::Announce( StatusOr PublicAdvertisedPrefixesRestConnectionImpl::Announce( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: AnnounceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -124,7 +124,7 @@ PublicAdvertisedPrefixesRestConnectionImpl::Announce( future> PublicAdvertisedPrefixesRestConnectionImpl::Announce( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -237,7 +237,7 @@ PublicAdvertisedPrefixesRestConnectionImpl::DeletePublicAdvertisedPrefix( StatusOr PublicAdvertisedPrefixesRestConnectionImpl::DeletePublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: DeletePublicAdvertisedPrefixRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -255,7 +255,7 @@ PublicAdvertisedPrefixesRestConnectionImpl::DeletePublicAdvertisedPrefix( future> PublicAdvertisedPrefixesRestConnectionImpl::DeletePublicAdvertisedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -384,7 +384,7 @@ PublicAdvertisedPrefixesRestConnectionImpl::InsertPublicAdvertisedPrefix( StatusOr PublicAdvertisedPrefixesRestConnectionImpl::InsertPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: InsertPublicAdvertisedPrefixRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -402,7 +402,7 @@ PublicAdvertisedPrefixesRestConnectionImpl::InsertPublicAdvertisedPrefix( future> PublicAdvertisedPrefixesRestConnectionImpl::InsertPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -555,7 +555,7 @@ PublicAdvertisedPrefixesRestConnectionImpl::PatchPublicAdvertisedPrefix( StatusOr PublicAdvertisedPrefixesRestConnectionImpl::PatchPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: PatchPublicAdvertisedPrefixRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -573,7 +573,7 @@ PublicAdvertisedPrefixesRestConnectionImpl::PatchPublicAdvertisedPrefix( future> PublicAdvertisedPrefixesRestConnectionImpl::PatchPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -685,7 +685,7 @@ PublicAdvertisedPrefixesRestConnectionImpl::Withdraw( StatusOr PublicAdvertisedPrefixesRestConnectionImpl::Withdraw( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: WithdrawRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -702,7 +702,7 @@ PublicAdvertisedPrefixesRestConnectionImpl::Withdraw( future> PublicAdvertisedPrefixesRestConnectionImpl::Withdraw( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_rest_connection_impl.h b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_rest_connection_impl.h index a871c070ae74f..ca0d859f695cc 100644 --- a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_rest_connection_impl.h +++ b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_rest_connection_impl.h @@ -59,12 +59,12 @@ class PublicAdvertisedPrefixesRestConnectionImpl AnnounceRequest const& request) override; StatusOr Announce( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: AnnounceRequest const& request) override; future> Announce( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -74,13 +74,13 @@ class PublicAdvertisedPrefixesRestConnectionImpl StatusOr DeletePublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: DeletePublicAdvertisedPrefixRequest const& request) override; future> DeletePublicAdvertisedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -95,13 +95,13 @@ class PublicAdvertisedPrefixesRestConnectionImpl StatusOr InsertPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: InsertPublicAdvertisedPrefixRequest const& request) override; future> InsertPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -116,13 +116,13 @@ class PublicAdvertisedPrefixesRestConnectionImpl StatusOr PatchPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: PatchPublicAdvertisedPrefixRequest const& request) override; future> PatchPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Withdraw( @@ -130,12 +130,12 @@ class PublicAdvertisedPrefixesRestConnectionImpl WithdrawRequest const& request) override; StatusOr Withdraw( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: WithdrawRequest const& request) override; future> Withdraw( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.cc b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.cc index 1cc262a6c0653..ea7ad425264db 100644 --- a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.cc +++ b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.cc @@ -56,7 +56,7 @@ PublicAdvertisedPrefixesTracingConnection::Announce( auto span = internal::MakeSpan( "compute_public_advertised_prefixes_v1::" "PublicAdvertisedPrefixesConnection::Announce"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->Announce(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -95,7 +95,7 @@ PublicAdvertisedPrefixesTracingConnection::DeletePublicAdvertisedPrefix( auto span = internal::MakeSpan( "compute_public_advertised_prefixes_v1::" "PublicAdvertisedPrefixesConnection::DeletePublicAdvertisedPrefix"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeletePublicAdvertisedPrefix( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -145,7 +145,7 @@ PublicAdvertisedPrefixesTracingConnection::InsertPublicAdvertisedPrefix( auto span = internal::MakeSpan( "compute_public_advertised_prefixes_v1::" "PublicAdvertisedPrefixesConnection::InsertPublicAdvertisedPrefix"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertPublicAdvertisedPrefix( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -198,7 +198,7 @@ PublicAdvertisedPrefixesTracingConnection::PatchPublicAdvertisedPrefix( auto span = internal::MakeSpan( "compute_public_advertised_prefixes_v1::" "PublicAdvertisedPrefixesConnection::PatchPublicAdvertisedPrefix"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchPublicAdvertisedPrefix( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -236,7 +236,7 @@ PublicAdvertisedPrefixesTracingConnection::Withdraw( auto span = internal::MakeSpan( "compute_public_advertised_prefixes_v1::" "PublicAdvertisedPrefixesConnection::Withdraw"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->Withdraw(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection.cc b/google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection.cc index f4f1a79f09a0c..67296cbc23055 100644 --- a/google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection.cc +++ b/google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection.cc @@ -49,7 +49,7 @@ PublicAdvertisedPrefixesConnection::Announce( StatusOr PublicAdvertisedPrefixesConnection::Announce( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: AnnounceRequest const&) { return StatusOr( @@ -58,8 +58,7 @@ PublicAdvertisedPrefixesConnection::Announce( future> PublicAdvertisedPrefixesConnection::Announce( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -76,7 +75,7 @@ PublicAdvertisedPrefixesConnection::DeletePublicAdvertisedPrefix( StatusOr PublicAdvertisedPrefixesConnection::DeletePublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: DeletePublicAdvertisedPrefixRequest const&) { return StatusOr( @@ -85,8 +84,7 @@ PublicAdvertisedPrefixesConnection::DeletePublicAdvertisedPrefix( future> PublicAdvertisedPrefixesConnection::DeletePublicAdvertisedPrefix( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +108,7 @@ PublicAdvertisedPrefixesConnection::InsertPublicAdvertisedPrefix( StatusOr PublicAdvertisedPrefixesConnection::InsertPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: InsertPublicAdvertisedPrefixRequest const&) { return StatusOr( @@ -119,8 +117,7 @@ PublicAdvertisedPrefixesConnection::InsertPublicAdvertisedPrefix( future> PublicAdvertisedPrefixesConnection::InsertPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -145,7 +142,7 @@ PublicAdvertisedPrefixesConnection::PatchPublicAdvertisedPrefix( StatusOr PublicAdvertisedPrefixesConnection::PatchPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: PatchPublicAdvertisedPrefixRequest const&) { return StatusOr( @@ -154,8 +151,7 @@ PublicAdvertisedPrefixesConnection::PatchPublicAdvertisedPrefix( future> PublicAdvertisedPrefixesConnection::PatchPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -172,7 +168,7 @@ PublicAdvertisedPrefixesConnection::Withdraw( StatusOr PublicAdvertisedPrefixesConnection::Withdraw( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: WithdrawRequest const&) { return StatusOr( @@ -181,8 +177,7 @@ PublicAdvertisedPrefixesConnection::Withdraw( future> PublicAdvertisedPrefixesConnection::Withdraw( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection.h b/google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection.h index 343219a022918..f15a0c44bdd11 100644 --- a/google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection.h +++ b/google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_retry_traits.h" #include "google/cloud/compute/public_advertised_prefixes/v1/public_advertised_prefixes_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -208,12 +208,12 @@ class PublicAdvertisedPrefixesConnection { AnnounceRequest const& request); virtual StatusOr Announce( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: AnnounceRequest const& request); virtual future> Announce( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -223,13 +223,13 @@ class PublicAdvertisedPrefixesConnection { virtual StatusOr DeletePublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: DeletePublicAdvertisedPrefixRequest const& request); virtual future> DeletePublicAdvertisedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -244,13 +244,13 @@ class PublicAdvertisedPrefixesConnection { virtual StatusOr InsertPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: InsertPublicAdvertisedPrefixRequest const& request); virtual future> InsertPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -265,13 +265,13 @@ class PublicAdvertisedPrefixesConnection { virtual StatusOr PatchPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: PatchPublicAdvertisedPrefixRequest const& request); virtual future> PatchPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> Withdraw( @@ -279,12 +279,12 @@ class PublicAdvertisedPrefixesConnection { WithdrawRequest const& request); virtual StatusOr Withdraw( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: WithdrawRequest const& request); virtual future> Withdraw( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_rest_connection_impl.cc b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_rest_connection_impl.cc index 5aede3fbb515b..c361595fb3997 100644 --- a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_rest_connection_impl.cc +++ b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_rest_connection_impl.cc @@ -157,7 +157,7 @@ PublicDelegatedPrefixesRestConnectionImpl::Announce( StatusOr PublicDelegatedPrefixesRestConnectionImpl::Announce( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: AnnounceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -174,7 +174,7 @@ PublicDelegatedPrefixesRestConnectionImpl::Announce( future> PublicDelegatedPrefixesRestConnectionImpl::Announce( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -291,7 +291,7 @@ PublicDelegatedPrefixesRestConnectionImpl::DeletePublicDelegatedPrefix( StatusOr PublicDelegatedPrefixesRestConnectionImpl::DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -309,7 +309,7 @@ PublicDelegatedPrefixesRestConnectionImpl::DeletePublicDelegatedPrefix( future> PublicDelegatedPrefixesRestConnectionImpl::DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -442,7 +442,7 @@ PublicDelegatedPrefixesRestConnectionImpl::InsertPublicDelegatedPrefix( StatusOr PublicDelegatedPrefixesRestConnectionImpl::InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -460,7 +460,7 @@ PublicDelegatedPrefixesRestConnectionImpl::InsertPublicDelegatedPrefix( future> PublicDelegatedPrefixesRestConnectionImpl::InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -616,7 +616,7 @@ PublicDelegatedPrefixesRestConnectionImpl::PatchPublicDelegatedPrefix( StatusOr PublicDelegatedPrefixesRestConnectionImpl::PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -634,7 +634,7 @@ PublicDelegatedPrefixesRestConnectionImpl::PatchPublicDelegatedPrefix( future> PublicDelegatedPrefixesRestConnectionImpl::PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -750,7 +750,7 @@ PublicDelegatedPrefixesRestConnectionImpl::Withdraw( StatusOr PublicDelegatedPrefixesRestConnectionImpl::Withdraw( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: WithdrawRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -767,7 +767,7 @@ PublicDelegatedPrefixesRestConnectionImpl::Withdraw( future> PublicDelegatedPrefixesRestConnectionImpl::Withdraw( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_rest_connection_impl.h b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_rest_connection_impl.h index 990607022b419..6ea8a1883c901 100644 --- a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_rest_connection_impl.h +++ b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_rest_connection_impl.h @@ -65,12 +65,12 @@ class PublicDelegatedPrefixesRestConnectionImpl AnnounceRequest const& request) override; StatusOr Announce( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: AnnounceRequest const& request) override; future> Announce( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -80,13 +80,13 @@ class PublicDelegatedPrefixesRestConnectionImpl StatusOr DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request) override; future> DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -101,13 +101,13 @@ class PublicDelegatedPrefixesRestConnectionImpl StatusOr InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request) override; future> InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -122,13 +122,13 @@ class PublicDelegatedPrefixesRestConnectionImpl StatusOr PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request) override; future> PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Withdraw( @@ -136,12 +136,12 @@ class PublicDelegatedPrefixesRestConnectionImpl WithdrawRequest const& request) override; StatusOr Withdraw( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: WithdrawRequest const& request) override; future> Withdraw( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.cc b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.cc index 8924cd39cf3be..9e2d62baee49e 100644 --- a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.cc +++ b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.cc @@ -72,7 +72,7 @@ PublicDelegatedPrefixesTracingConnection::Announce( auto span = internal::MakeSpan( "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" ":Announce"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->Announce(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -111,7 +111,7 @@ PublicDelegatedPrefixesTracingConnection::DeletePublicDelegatedPrefix( auto span = internal::MakeSpan( "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" ":DeletePublicDelegatedPrefix"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeletePublicDelegatedPrefix( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -161,7 +161,7 @@ PublicDelegatedPrefixesTracingConnection::InsertPublicDelegatedPrefix( auto span = internal::MakeSpan( "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" ":InsertPublicDelegatedPrefix"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertPublicDelegatedPrefix( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -214,7 +214,7 @@ PublicDelegatedPrefixesTracingConnection::PatchPublicDelegatedPrefix( auto span = internal::MakeSpan( "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" ":PatchPublicDelegatedPrefix"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchPublicDelegatedPrefix( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -252,7 +252,7 @@ PublicDelegatedPrefixesTracingConnection::Withdraw( auto span = internal::MakeSpan( "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" ":Withdraw"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->Withdraw(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection.cc b/google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection.cc index 0d081d1ee016f..f53ab9db93392 100644 --- a/google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection.cc +++ b/google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection.cc @@ -59,7 +59,7 @@ PublicDelegatedPrefixesConnection::Announce( StatusOr PublicDelegatedPrefixesConnection::Announce( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: AnnounceRequest const&) { return StatusOr( @@ -68,8 +68,7 @@ PublicDelegatedPrefixesConnection::Announce( future> PublicDelegatedPrefixesConnection::Announce( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +85,7 @@ PublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix( StatusOr PublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const&) { return StatusOr( @@ -95,8 +94,7 @@ PublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix( future> PublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -120,7 +118,7 @@ PublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix( StatusOr PublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const&) { return StatusOr( @@ -129,8 +127,7 @@ PublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix( future> PublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -155,7 +152,7 @@ PublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix( StatusOr PublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const&) { return StatusOr( @@ -164,8 +161,7 @@ PublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix( future> PublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -182,7 +178,7 @@ PublicDelegatedPrefixesConnection::Withdraw( StatusOr PublicDelegatedPrefixesConnection::Withdraw( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: WithdrawRequest const&) { return StatusOr( @@ -191,8 +187,7 @@ PublicDelegatedPrefixesConnection::Withdraw( future> PublicDelegatedPrefixesConnection::Withdraw( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection.h b/google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection.h index 66c751757c180..a0a254515c038 100644 --- a/google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection.h +++ b/google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_retry_traits.h" #include "google/cloud/compute/public_delegated_prefixes/v1/public_delegated_prefixes_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -209,12 +209,12 @@ class PublicDelegatedPrefixesConnection { AnnounceRequest const& request); virtual StatusOr Announce( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: AnnounceRequest const& request); virtual future> Announce( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -224,13 +224,13 @@ class PublicDelegatedPrefixesConnection { virtual StatusOr DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request); virtual future> DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -245,13 +245,13 @@ class PublicDelegatedPrefixesConnection { virtual StatusOr InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request); virtual future> InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -266,13 +266,13 @@ class PublicDelegatedPrefixesConnection { virtual StatusOr PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request); virtual future> PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> Withdraw( @@ -280,12 +280,12 @@ class PublicDelegatedPrefixesConnection { WithdrawRequest const& request); virtual StatusOr Withdraw( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: WithdrawRequest const& request); virtual future> Withdraw( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_rest_connection_impl.cc b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_rest_connection_impl.cc index c22c0cf398f7c..899271394a172 100644 --- a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_rest_connection_impl.cc +++ b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_rest_connection_impl.cc @@ -107,7 +107,7 @@ RegionAutoscalersRestConnectionImpl::DeleteAutoscaler( StatusOr RegionAutoscalersRestConnectionImpl::DeleteAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: DeleteAutoscalerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -124,7 +124,7 @@ RegionAutoscalersRestConnectionImpl::DeleteAutoscaler( future> RegionAutoscalersRestConnectionImpl::DeleteAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -256,7 +256,7 @@ RegionAutoscalersRestConnectionImpl::InsertAutoscaler( StatusOr RegionAutoscalersRestConnectionImpl::InsertAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: InsertAutoscalerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -273,7 +273,7 @@ RegionAutoscalersRestConnectionImpl::InsertAutoscaler( future> RegionAutoscalersRestConnectionImpl::InsertAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -429,7 +429,7 @@ RegionAutoscalersRestConnectionImpl::PatchAutoscaler( StatusOr RegionAutoscalersRestConnectionImpl::PatchAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: PatchAutoscalerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -446,7 +446,7 @@ RegionAutoscalersRestConnectionImpl::PatchAutoscaler( future> RegionAutoscalersRestConnectionImpl::PatchAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -562,7 +562,7 @@ RegionAutoscalersRestConnectionImpl::UpdateAutoscaler( StatusOr RegionAutoscalersRestConnectionImpl::UpdateAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: UpdateAutoscalerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -579,7 +579,7 @@ RegionAutoscalersRestConnectionImpl::UpdateAutoscaler( future> RegionAutoscalersRestConnectionImpl::UpdateAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_rest_connection_impl.h b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_rest_connection_impl.h index b3e19ee009b1a..440eb5f66cc93 100644 --- a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_rest_connection_impl.h +++ b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_rest_connection_impl.h @@ -57,12 +57,12 @@ class RegionAutoscalersRestConnectionImpl DeleteAutoscalerRequest const& request) override; StatusOr DeleteAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: DeleteAutoscalerRequest const& request) override; future> DeleteAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetAutoscaler( @@ -74,12 +74,12 @@ class RegionAutoscalersRestConnectionImpl InsertAutoscalerRequest const& request) override; StatusOr InsertAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: InsertAutoscalerRequest const& request) override; future> InsertAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -91,12 +91,12 @@ class RegionAutoscalersRestConnectionImpl PatchAutoscalerRequest const& request) override; StatusOr PatchAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: PatchAutoscalerRequest const& request) override; future> PatchAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> UpdateAutoscaler( @@ -104,12 +104,12 @@ class RegionAutoscalersRestConnectionImpl UpdateAutoscalerRequest const& request) override; StatusOr UpdateAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: UpdateAutoscalerRequest const& request) override; future> UpdateAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.cc b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.cc index c71178b5b93e6..7c699937885c3 100644 --- a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.cc +++ b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.cc @@ -53,7 +53,7 @@ RegionAutoscalersTracingConnection::DeleteAutoscaler( auto span = internal::MakeSpan( "compute_region_autoscalers_v1::RegionAutoscalersConnection::" "DeleteAutoscaler"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAutoscaler(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -102,7 +102,7 @@ RegionAutoscalersTracingConnection::InsertAutoscaler( auto span = internal::MakeSpan( "compute_region_autoscalers_v1::RegionAutoscalersConnection::" "InsertAutoscaler"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertAutoscaler(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -154,7 +154,7 @@ RegionAutoscalersTracingConnection::PatchAutoscaler( auto span = internal::MakeSpan( "compute_region_autoscalers_v1::RegionAutoscalersConnection::" "PatchAutoscaler"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchAutoscaler(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -192,7 +192,7 @@ RegionAutoscalersTracingConnection::UpdateAutoscaler( auto span = internal::MakeSpan( "compute_region_autoscalers_v1::RegionAutoscalersConnection::" "UpdateAutoscaler"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateAutoscaler(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection.cc b/google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection.cc index 6dfc166dc8ef5..011d79199da58 100644 --- a/google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection.cc +++ b/google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection.cc @@ -47,7 +47,7 @@ RegionAutoscalersConnection::DeleteAutoscaler( StatusOr RegionAutoscalersConnection::DeleteAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: DeleteAutoscalerRequest const&) { return StatusOr( @@ -56,8 +56,7 @@ RegionAutoscalersConnection::DeleteAutoscaler( future> RegionAutoscalersConnection::DeleteAutoscaler( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -81,7 +80,7 @@ RegionAutoscalersConnection::InsertAutoscaler( StatusOr RegionAutoscalersConnection::InsertAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: InsertAutoscalerRequest const&) { return StatusOr( @@ -90,8 +89,7 @@ RegionAutoscalersConnection::InsertAutoscaler( future> RegionAutoscalersConnection::InsertAutoscaler( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -116,7 +114,7 @@ RegionAutoscalersConnection::PatchAutoscaler( StatusOr RegionAutoscalersConnection::PatchAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: PatchAutoscalerRequest const&) { return StatusOr( @@ -125,8 +123,7 @@ RegionAutoscalersConnection::PatchAutoscaler( future> RegionAutoscalersConnection::PatchAutoscaler( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -143,7 +140,7 @@ RegionAutoscalersConnection::UpdateAutoscaler( StatusOr RegionAutoscalersConnection::UpdateAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: UpdateAutoscalerRequest const&) { return StatusOr( @@ -152,8 +149,7 @@ RegionAutoscalersConnection::UpdateAutoscaler( future> RegionAutoscalersConnection::UpdateAutoscaler( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection.h b/google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection.h index 3f7d66200a866..c48481247832a 100644 --- a/google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection.h +++ b/google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_retry_traits.h" #include "google/cloud/compute/region_autoscalers/v1/region_autoscalers_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,12 +193,12 @@ class RegionAutoscalersConnection { DeleteAutoscalerRequest const& request); virtual StatusOr DeleteAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: DeleteAutoscalerRequest const& request); virtual future> - DeleteAutoscaler(google::cloud::ExperimentalTag, + DeleteAutoscaler(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetAutoscaler( @@ -210,12 +210,12 @@ class RegionAutoscalersConnection { InsertAutoscalerRequest const& request); virtual StatusOr InsertAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: InsertAutoscalerRequest const& request); virtual future> - InsertAutoscaler(google::cloud::ExperimentalTag, + InsertAutoscaler(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -227,12 +227,12 @@ class RegionAutoscalersConnection { PatchAutoscalerRequest const& request); virtual StatusOr PatchAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: PatchAutoscalerRequest const& request); virtual future> - PatchAutoscaler(google::cloud::ExperimentalTag, + PatchAutoscaler(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -240,12 +240,12 @@ class RegionAutoscalersConnection { UpdateAutoscalerRequest const& request); virtual StatusOr UpdateAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: UpdateAutoscalerRequest const& request); virtual future> - UpdateAutoscaler(google::cloud::ExperimentalTag, + UpdateAutoscaler(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_rest_connection_impl.cc b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_rest_connection_impl.cc index 2b74c3063506a..82c61bc1ffcd0 100644 --- a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_rest_connection_impl.cc +++ b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_rest_connection_impl.cc @@ -109,7 +109,7 @@ RegionBackendServicesRestConnectionImpl::DeleteBackendService( StatusOr RegionBackendServicesRestConnectionImpl::DeleteBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: DeleteBackendServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -126,7 +126,7 @@ RegionBackendServicesRestConnectionImpl::DeleteBackendService( future> RegionBackendServicesRestConnectionImpl::DeleteBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -290,7 +290,7 @@ RegionBackendServicesRestConnectionImpl::InsertBackendService( StatusOr RegionBackendServicesRestConnectionImpl::InsertBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: InsertBackendServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -307,7 +307,7 @@ RegionBackendServicesRestConnectionImpl::InsertBackendService( future> RegionBackendServicesRestConnectionImpl::InsertBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -501,7 +501,7 @@ RegionBackendServicesRestConnectionImpl::PatchBackendService( StatusOr RegionBackendServicesRestConnectionImpl::PatchBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: PatchBackendServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -518,7 +518,7 @@ RegionBackendServicesRestConnectionImpl::PatchBackendService( future> RegionBackendServicesRestConnectionImpl::PatchBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -650,7 +650,7 @@ RegionBackendServicesRestConnectionImpl::SetSecurityPolicy( StatusOr RegionBackendServicesRestConnectionImpl::SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: SetSecurityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -667,7 +667,7 @@ RegionBackendServicesRestConnectionImpl::SetSecurityPolicy( future> RegionBackendServicesRestConnectionImpl::SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -799,7 +799,7 @@ RegionBackendServicesRestConnectionImpl::UpdateBackendService( StatusOr RegionBackendServicesRestConnectionImpl::UpdateBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: UpdateBackendServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -816,7 +816,7 @@ RegionBackendServicesRestConnectionImpl::UpdateBackendService( future> RegionBackendServicesRestConnectionImpl::UpdateBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_rest_connection_impl.h b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_rest_connection_impl.h index 7e3c9b5f82060..ac18c57b59ece 100644 --- a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_rest_connection_impl.h +++ b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_rest_connection_impl.h @@ -60,13 +60,13 @@ class RegionBackendServicesRestConnectionImpl DeleteBackendServiceRequest const& request) override; StatusOr DeleteBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: DeleteBackendServiceRequest const& request) override; future> DeleteBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetBackendService( @@ -87,13 +87,13 @@ class RegionBackendServicesRestConnectionImpl InsertBackendServiceRequest const& request) override; StatusOr InsertBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: InsertBackendServiceRequest const& request) override; future> InsertBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -110,13 +110,13 @@ class RegionBackendServicesRestConnectionImpl PatchBackendServiceRequest const& request) override; StatusOr PatchBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: PatchBackendServiceRequest const& request) override; future> PatchBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -128,13 +128,13 @@ class RegionBackendServicesRestConnectionImpl SetSecurityPolicyRequest const& request) override; StatusOr SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: SetSecurityPolicyRequest const& request) override; future> SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -147,13 +147,13 @@ class RegionBackendServicesRestConnectionImpl UpdateBackendServiceRequest const& request) override; StatusOr UpdateBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: UpdateBackendServiceRequest const& request) override; future> UpdateBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.cc b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.cc index 34c1e4510f9e8..241ab78aea42e 100644 --- a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.cc +++ b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.cc @@ -56,7 +56,7 @@ RegionBackendServicesTracingConnection::DeleteBackendService( auto span = internal::MakeSpan( "compute_region_backend_services_v1::RegionBackendServicesConnection::" "DeleteBackendService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteBackendService( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -128,7 +128,7 @@ RegionBackendServicesTracingConnection::InsertBackendService( auto span = internal::MakeSpan( "compute_region_backend_services_v1::RegionBackendServicesConnection::" "InsertBackendService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertBackendService( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -195,7 +195,7 @@ RegionBackendServicesTracingConnection::PatchBackendService( auto span = internal::MakeSpan( "compute_region_backend_services_v1::RegionBackendServicesConnection::" "PatchBackendService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchBackendService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -244,7 +244,7 @@ RegionBackendServicesTracingConnection::SetSecurityPolicy( auto span = internal::MakeSpan( "compute_region_backend_services_v1::RegionBackendServicesConnection::" "SetSecurityPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -294,7 +294,7 @@ RegionBackendServicesTracingConnection::UpdateBackendService( auto span = internal::MakeSpan( "compute_region_backend_services_v1::RegionBackendServicesConnection::" "UpdateBackendService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateBackendService( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_backend_services/v1/region_backend_services_connection.cc b/google/cloud/compute/region_backend_services/v1/region_backend_services_connection.cc index 890fee1bc3a5a..122ea2707f04c 100644 --- a/google/cloud/compute/region_backend_services/v1/region_backend_services_connection.cc +++ b/google/cloud/compute/region_backend_services/v1/region_backend_services_connection.cc @@ -48,7 +48,7 @@ RegionBackendServicesConnection::DeleteBackendService( StatusOr RegionBackendServicesConnection::DeleteBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: DeleteBackendServiceRequest const&) { return StatusOr( @@ -57,8 +57,7 @@ RegionBackendServicesConnection::DeleteBackendService( future> RegionBackendServicesConnection::DeleteBackendService( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -96,7 +95,7 @@ RegionBackendServicesConnection::InsertBackendService( StatusOr RegionBackendServicesConnection::InsertBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: InsertBackendServiceRequest const&) { return StatusOr( @@ -105,8 +104,7 @@ RegionBackendServicesConnection::InsertBackendService( future> RegionBackendServicesConnection::InsertBackendService( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -139,7 +137,7 @@ RegionBackendServicesConnection::PatchBackendService( StatusOr RegionBackendServicesConnection::PatchBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: PatchBackendServiceRequest const&) { return StatusOr( @@ -148,8 +146,7 @@ RegionBackendServicesConnection::PatchBackendService( future> RegionBackendServicesConnection::PatchBackendService( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -173,7 +170,7 @@ RegionBackendServicesConnection::SetSecurityPolicy( StatusOr RegionBackendServicesConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: SetSecurityPolicyRequest const&) { return StatusOr( @@ -182,8 +179,7 @@ RegionBackendServicesConnection::SetSecurityPolicy( future> RegionBackendServicesConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -207,7 +203,7 @@ RegionBackendServicesConnection::UpdateBackendService( StatusOr RegionBackendServicesConnection::UpdateBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: UpdateBackendServiceRequest const&) { return StatusOr( @@ -216,8 +212,7 @@ RegionBackendServicesConnection::UpdateBackendService( future> RegionBackendServicesConnection::UpdateBackendService( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_backend_services/v1/region_backend_services_connection.h b/google/cloud/compute/region_backend_services/v1/region_backend_services_connection.h index 67ca3e0296d1d..5e39ae01d136c 100644 --- a/google/cloud/compute/region_backend_services/v1/region_backend_services_connection.h +++ b/google/cloud/compute/region_backend_services/v1/region_backend_services_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/region_backend_services/v1/internal/region_backend_services_retry_traits.h" #include "google/cloud/compute/region_backend_services/v1/region_backend_services_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -201,14 +201,13 @@ class RegionBackendServicesConnection { v1::DeleteBackendServiceRequest const& request); virtual StatusOr - DeleteBackendService(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteBackendService(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services:: v1::DeleteBackendServiceRequest const& request); virtual future> DeleteBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -228,14 +227,13 @@ class RegionBackendServicesConnection { v1::InsertBackendServiceRequest const& request); virtual StatusOr - InsertBackendService(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertBackendService(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services:: v1::InsertBackendServiceRequest const& request); virtual future> InsertBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -252,13 +250,13 @@ class RegionBackendServicesConnection { PatchBackendServiceRequest const& request); virtual StatusOr - PatchBackendService(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + PatchBackendService(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: PatchBackendServiceRequest const& request); virtual future> PatchBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr SetIamPolicy( @@ -270,13 +268,13 @@ class RegionBackendServicesConnection { SetSecurityPolicyRequest const& request); virtual StatusOr - SetSecurityPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetSecurityPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: SetSecurityPolicyRequest const& request); virtual future> SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -288,14 +286,13 @@ class RegionBackendServicesConnection { v1::UpdateBackendServiceRequest const& request); virtual StatusOr - UpdateBackendService(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + UpdateBackendService(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services:: v1::UpdateBackendServiceRequest const& request); virtual future> UpdateBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/region_commitments/v1/internal/region_commitments_rest_connection_impl.cc b/google/cloud/compute/region_commitments/v1/internal/region_commitments_rest_connection_impl.cc index 90897b0655ad2..164d41105eeac 100644 --- a/google/cloud/compute/region_commitments/v1/internal/region_commitments_rest_connection_impl.cc +++ b/google/cloud/compute/region_commitments/v1/internal/region_commitments_rest_connection_impl.cc @@ -166,7 +166,7 @@ RegionCommitmentsRestConnectionImpl::InsertCommitment( StatusOr RegionCommitmentsRestConnectionImpl::InsertCommitment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_commitments::v1:: InsertCommitmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -183,7 +183,7 @@ RegionCommitmentsRestConnectionImpl::InsertCommitment( future> RegionCommitmentsRestConnectionImpl::InsertCommitment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -339,7 +339,7 @@ RegionCommitmentsRestConnectionImpl::UpdateCommitment( StatusOr RegionCommitmentsRestConnectionImpl::UpdateCommitment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_commitments::v1:: UpdateCommitmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -356,7 +356,7 @@ RegionCommitmentsRestConnectionImpl::UpdateCommitment( future> RegionCommitmentsRestConnectionImpl::UpdateCommitment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_commitments/v1/internal/region_commitments_rest_connection_impl.h b/google/cloud/compute/region_commitments/v1/internal/region_commitments_rest_connection_impl.h index 1e1d9530c831d..02598a07392c3 100644 --- a/google/cloud/compute/region_commitments/v1/internal/region_commitments_rest_connection_impl.h +++ b/google/cloud/compute/region_commitments/v1/internal/region_commitments_rest_connection_impl.h @@ -67,12 +67,12 @@ class RegionCommitmentsRestConnectionImpl InsertCommitmentRequest const& request) override; StatusOr InsertCommitment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_commitments::v1:: InsertCommitmentRequest const& request) override; future> InsertCommitment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -84,12 +84,12 @@ class RegionCommitmentsRestConnectionImpl UpdateCommitmentRequest const& request) override; StatusOr UpdateCommitment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_commitments::v1:: UpdateCommitmentRequest const& request) override; future> UpdateCommitment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.cc b/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.cc index 1c1d73c4aeb43..60660a0a578b9 100644 --- a/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.cc +++ b/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.cc @@ -79,7 +79,7 @@ RegionCommitmentsTracingConnection::InsertCommitment( auto span = internal::MakeSpan( "compute_region_commitments_v1::RegionCommitmentsConnection::" "InsertCommitment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertCommitment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -131,7 +131,7 @@ RegionCommitmentsTracingConnection::UpdateCommitment( auto span = internal::MakeSpan( "compute_region_commitments_v1::RegionCommitmentsConnection::" "UpdateCommitment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateCommitment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_commitments/v1/region_commitments_connection.cc b/google/cloud/compute/region_commitments/v1/region_commitments_connection.cc index 86d20c1d8ce67..784967b7700a0 100644 --- a/google/cloud/compute/region_commitments/v1/region_commitments_connection.cc +++ b/google/cloud/compute/region_commitments/v1/region_commitments_connection.cc @@ -64,7 +64,7 @@ RegionCommitmentsConnection::InsertCommitment( StatusOr RegionCommitmentsConnection::InsertCommitment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_commitments::v1:: InsertCommitmentRequest const&) { return StatusOr( @@ -73,8 +73,7 @@ RegionCommitmentsConnection::InsertCommitment( future> RegionCommitmentsConnection::InsertCommitment( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -99,7 +98,7 @@ RegionCommitmentsConnection::UpdateCommitment( StatusOr RegionCommitmentsConnection::UpdateCommitment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_commitments::v1:: UpdateCommitmentRequest const&) { return StatusOr( @@ -108,8 +107,7 @@ RegionCommitmentsConnection::UpdateCommitment( future> RegionCommitmentsConnection::UpdateCommitment( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_commitments/v1/region_commitments_connection.h b/google/cloud/compute/region_commitments/v1/region_commitments_connection.h index ec161588713c5..cc3c25f2e7209 100644 --- a/google/cloud/compute/region_commitments/v1/region_commitments_connection.h +++ b/google/cloud/compute/region_commitments/v1/region_commitments_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/region_commitments/v1/internal/region_commitments_retry_traits.h" #include "google/cloud/compute/region_commitments/v1/region_commitments_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -203,12 +203,12 @@ class RegionCommitmentsConnection { InsertCommitmentRequest const& request); virtual StatusOr InsertCommitment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_commitments::v1:: InsertCommitmentRequest const& request); virtual future> - InsertCommitment(google::cloud::ExperimentalTag, + InsertCommitment(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -220,12 +220,12 @@ class RegionCommitmentsConnection { UpdateCommitmentRequest const& request); virtual StatusOr UpdateCommitment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_commitments::v1:: UpdateCommitmentRequest const& request); virtual future> - UpdateCommitment(google::cloud::ExperimentalTag, + UpdateCommitment(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/region_disk_types/v1/region_disk_types_connection.h b/google/cloud/compute/region_disk_types/v1/region_disk_types_connection.h index 2530e40b5be57..853ec2744420b 100644 --- a/google/cloud/compute/region_disk_types/v1/region_disk_types_connection.h +++ b/google/cloud/compute/region_disk_types/v1/region_disk_types_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/compute/region_disk_types/v1/internal/region_disk_types_retry_traits.h" #include "google/cloud/compute/region_disk_types/v1/region_disk_types_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/compute/region_disks/v1/internal/region_disks_rest_connection_impl.cc b/google/cloud/compute/region_disks/v1/internal/region_disks_rest_connection_impl.cc index 3c10d3a7740a5..38e83686708f6 100644 --- a/google/cloud/compute/region_disks/v1/internal/region_disks_rest_connection_impl.cc +++ b/google/cloud/compute/region_disks/v1/internal/region_disks_rest_connection_impl.cc @@ -105,7 +105,7 @@ RegionDisksRestConnectionImpl::AddResourcePolicies( StatusOr RegionDisksRestConnectionImpl::AddResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: AddResourcePoliciesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -122,7 +122,7 @@ RegionDisksRestConnectionImpl::AddResourcePolicies( future> RegionDisksRestConnectionImpl::AddResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -238,7 +238,7 @@ RegionDisksRestConnectionImpl::BulkInsert( StatusOr RegionDisksRestConnectionImpl::BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -255,7 +255,7 @@ RegionDisksRestConnectionImpl::BulkInsert( future> RegionDisksRestConnectionImpl::BulkInsert( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -371,7 +371,7 @@ RegionDisksRestConnectionImpl::CreateSnapshot( StatusOr RegionDisksRestConnectionImpl::CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::CreateSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -388,7 +388,7 @@ RegionDisksRestConnectionImpl::CreateSnapshot( future> RegionDisksRestConnectionImpl::CreateSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -504,7 +504,7 @@ RegionDisksRestConnectionImpl::DeleteDisk( StatusOr RegionDisksRestConnectionImpl::DeleteDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -521,7 +521,7 @@ RegionDisksRestConnectionImpl::DeleteDisk( future> RegionDisksRestConnectionImpl::DeleteDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -670,7 +670,7 @@ RegionDisksRestConnectionImpl::InsertDisk( StatusOr RegionDisksRestConnectionImpl::InsertDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -687,7 +687,7 @@ RegionDisksRestConnectionImpl::InsertDisk( future> RegionDisksRestConnectionImpl::InsertDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -839,7 +839,7 @@ RegionDisksRestConnectionImpl::RemoveResourcePolicies( StatusOr RegionDisksRestConnectionImpl::RemoveResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: RemoveResourcePoliciesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -856,7 +856,7 @@ RegionDisksRestConnectionImpl::RemoveResourcePolicies( future> RegionDisksRestConnectionImpl::RemoveResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -973,7 +973,7 @@ RegionDisksRestConnectionImpl::Resize( StatusOr RegionDisksRestConnectionImpl::Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -990,7 +990,7 @@ RegionDisksRestConnectionImpl::Resize( future> RegionDisksRestConnectionImpl::Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1123,7 +1123,7 @@ RegionDisksRestConnectionImpl::SetLabels( StatusOr RegionDisksRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1141,7 +1141,7 @@ RegionDisksRestConnectionImpl::SetLabels( future> RegionDisksRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1257,7 +1257,7 @@ RegionDisksRestConnectionImpl::StartAsyncReplication( StatusOr RegionDisksRestConnectionImpl::StartAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StartAsyncReplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1274,7 +1274,7 @@ RegionDisksRestConnectionImpl::StartAsyncReplication( future> RegionDisksRestConnectionImpl::StartAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1390,7 +1390,7 @@ RegionDisksRestConnectionImpl::StopAsyncReplication( StatusOr RegionDisksRestConnectionImpl::StopAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StopAsyncReplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1407,7 +1407,7 @@ RegionDisksRestConnectionImpl::StopAsyncReplication( future> RegionDisksRestConnectionImpl::StopAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1523,7 +1523,7 @@ RegionDisksRestConnectionImpl::StopGroupAsyncReplication( StatusOr RegionDisksRestConnectionImpl::StopGroupAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StopGroupAsyncReplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1540,7 +1540,7 @@ RegionDisksRestConnectionImpl::StopGroupAsyncReplication( future> RegionDisksRestConnectionImpl::StopGroupAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1672,7 +1672,7 @@ RegionDisksRestConnectionImpl::UpdateDisk( StatusOr RegionDisksRestConnectionImpl::UpdateDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1689,7 +1689,7 @@ RegionDisksRestConnectionImpl::UpdateDisk( future> RegionDisksRestConnectionImpl::UpdateDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_disks/v1/internal/region_disks_rest_connection_impl.h b/google/cloud/compute/region_disks/v1/internal/region_disks_rest_connection_impl.h index 471ccae1b7169..dfa8b164d4695 100644 --- a/google/cloud/compute/region_disks/v1/internal/region_disks_rest_connection_impl.h +++ b/google/cloud/compute/region_disks/v1/internal/region_disks_rest_connection_impl.h @@ -56,13 +56,13 @@ class RegionDisksRestConnectionImpl AddResourcePoliciesRequest const& request) override; StatusOr AddResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: AddResourcePoliciesRequest const& request) override; future> AddResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> BulkInsert( @@ -70,12 +70,12 @@ class RegionDisksRestConnectionImpl request) override; StatusOr BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& request) override; future> BulkInsert( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> CreateSnapshot( @@ -83,12 +83,12 @@ class RegionDisksRestConnectionImpl CreateSnapshotRequest const& request) override; StatusOr CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: CreateSnapshotRequest const& request) override; future> CreateSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> DeleteDisk( @@ -96,12 +96,12 @@ class RegionDisksRestConnectionImpl request) override; StatusOr DeleteDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& request) override; future> DeleteDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetDisk( @@ -117,12 +117,12 @@ class RegionDisksRestConnectionImpl request) override; StatusOr InsertDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const& request) override; future> InsertDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListRegionDisks( @@ -135,13 +135,13 @@ class RegionDisksRestConnectionImpl RemoveResourcePoliciesRequest const& request) override; StatusOr RemoveResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: RemoveResourcePoliciesRequest const& request) override; future> RemoveResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Resize( @@ -149,12 +149,12 @@ class RegionDisksRestConnectionImpl request) override; StatusOr Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& request) override; future> Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -166,12 +166,12 @@ class RegionDisksRestConnectionImpl request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -180,13 +180,13 @@ class RegionDisksRestConnectionImpl StartAsyncReplicationRequest const& request) override; StatusOr StartAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StartAsyncReplicationRequest const& request) override; future> StartAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -194,13 +194,13 @@ class RegionDisksRestConnectionImpl StopAsyncReplicationRequest const& request) override; StatusOr StopAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StopAsyncReplicationRequest const& request) override; future> StopAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -210,13 +210,13 @@ class RegionDisksRestConnectionImpl StatusOr StopGroupAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StopGroupAsyncReplicationRequest const& request) override; future> StopGroupAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -228,12 +228,12 @@ class RegionDisksRestConnectionImpl request) override; StatusOr UpdateDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const& request) override; future> UpdateDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.cc b/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.cc index 9604e45b9b7ee..85b8d9c984773 100644 --- a/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.cc +++ b/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.cc @@ -51,7 +51,7 @@ RegionDisksTracingConnection::AddResourcePolicies( AddResourcePoliciesRequest const& request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::AddResourcePolicies"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddResourcePolicies(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -86,7 +86,7 @@ RegionDisksTracingConnection::BulkInsert( request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::BulkInsert"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BulkInsert(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -121,7 +121,7 @@ RegionDisksTracingConnection::CreateSnapshot( request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::CreateSnapshot"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateSnapshot(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -156,7 +156,7 @@ RegionDisksTracingConnection::DeleteDisk( request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::DeleteDisk"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteDisk(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -211,7 +211,7 @@ RegionDisksTracingConnection::InsertDisk( request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::InsertDisk"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertDisk(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -259,7 +259,7 @@ RegionDisksTracingConnection::RemoveResourcePolicies( RemoveResourcePoliciesRequest const& request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::RemoveResourcePolicies"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RemoveResourcePolicies( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -294,7 +294,7 @@ RegionDisksTracingConnection::Resize( request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::Resize"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->Resize(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -339,7 +339,7 @@ RegionDisksTracingConnection::SetLabels( request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::SetLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -375,7 +375,7 @@ RegionDisksTracingConnection::StartAsyncReplication( StartAsyncReplicationRequest const& request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::StartAsyncReplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->StartAsyncReplication( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -411,7 +411,7 @@ RegionDisksTracingConnection::StopAsyncReplication( StopAsyncReplicationRequest const& request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::StopAsyncReplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->StopAsyncReplication( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -449,7 +449,7 @@ RegionDisksTracingConnection::StopGroupAsyncReplication( auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::" "StopGroupAsyncReplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->StopGroupAsyncReplication( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -495,7 +495,7 @@ RegionDisksTracingConnection::UpdateDisk( request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::UpdateDisk"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateDisk(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_disks/v1/region_disks_connection.cc b/google/cloud/compute/region_disks/v1/region_disks_connection.cc index f3635e72ee184..4401cbea2b762 100644 --- a/google/cloud/compute/region_disks/v1/region_disks_connection.cc +++ b/google/cloud/compute/region_disks/v1/region_disks_connection.cc @@ -47,7 +47,7 @@ RegionDisksConnection::AddResourcePolicies( StatusOr RegionDisksConnection::AddResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: AddResourcePoliciesRequest const&) { return StatusOr( @@ -56,8 +56,7 @@ RegionDisksConnection::AddResourcePolicies( future> RegionDisksConnection::AddResourcePolicies( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -73,7 +72,7 @@ RegionDisksConnection::BulkInsert( StatusOr RegionDisksConnection::BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -81,8 +80,7 @@ RegionDisksConnection::BulkInsert( future> RegionDisksConnection::BulkInsert( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -99,7 +97,7 @@ RegionDisksConnection::CreateSnapshot( StatusOr RegionDisksConnection::CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: CreateSnapshotRequest const&) { return StatusOr( @@ -108,8 +106,7 @@ RegionDisksConnection::CreateSnapshot( future> RegionDisksConnection::CreateSnapshot( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -125,7 +122,7 @@ RegionDisksConnection::DeleteDisk( StatusOr RegionDisksConnection::DeleteDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -133,8 +130,7 @@ RegionDisksConnection::DeleteDisk( future> RegionDisksConnection::DeleteDisk( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -161,7 +157,7 @@ RegionDisksConnection::InsertDisk( StatusOr RegionDisksConnection::InsertDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -169,8 +165,7 @@ RegionDisksConnection::InsertDisk( future> RegionDisksConnection::InsertDisk( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -195,7 +190,7 @@ RegionDisksConnection::RemoveResourcePolicies( StatusOr RegionDisksConnection::RemoveResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: RemoveResourcePoliciesRequest const&) { return StatusOr( @@ -204,8 +199,7 @@ RegionDisksConnection::RemoveResourcePolicies( future> RegionDisksConnection::RemoveResourcePolicies( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -221,7 +215,7 @@ RegionDisksConnection::Resize( StatusOr RegionDisksConnection::Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::ResizeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -229,8 +223,7 @@ RegionDisksConnection::Resize( future> RegionDisksConnection::Resize( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -252,7 +245,7 @@ RegionDisksConnection::SetLabels( StatusOr RegionDisksConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -260,8 +253,7 @@ RegionDisksConnection::SetLabels( future> RegionDisksConnection::SetLabels( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -278,7 +270,7 @@ RegionDisksConnection::StartAsyncReplication( StatusOr RegionDisksConnection::StartAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StartAsyncReplicationRequest const&) { return StatusOr( @@ -287,8 +279,7 @@ RegionDisksConnection::StartAsyncReplication( future> RegionDisksConnection::StartAsyncReplication( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -305,7 +296,7 @@ RegionDisksConnection::StopAsyncReplication( StatusOr RegionDisksConnection::StopAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StopAsyncReplicationRequest const&) { return StatusOr( @@ -314,8 +305,7 @@ RegionDisksConnection::StopAsyncReplication( future> RegionDisksConnection::StopAsyncReplication( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -332,7 +322,7 @@ RegionDisksConnection::StopGroupAsyncReplication( StatusOr RegionDisksConnection::StopGroupAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StopGroupAsyncReplicationRequest const&) { return StatusOr( @@ -341,8 +331,7 @@ RegionDisksConnection::StopGroupAsyncReplication( future> RegionDisksConnection::StopGroupAsyncReplication( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -365,7 +354,7 @@ RegionDisksConnection::UpdateDisk( StatusOr RegionDisksConnection::UpdateDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -373,8 +362,7 @@ RegionDisksConnection::UpdateDisk( future> RegionDisksConnection::UpdateDisk( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_disks/v1/region_disks_connection.h b/google/cloud/compute/region_disks/v1/region_disks_connection.h index 8c2bff324d479..379645e7d5b93 100644 --- a/google/cloud/compute/region_disks/v1/region_disks_connection.h +++ b/google/cloud/compute/region_disks/v1/region_disks_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/region_disks/v1/internal/region_disks_retry_traits.h" #include "google/cloud/compute/region_disks/v1/region_disks_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -190,13 +190,13 @@ class RegionDisksConnection { AddResourcePoliciesRequest const& request); virtual StatusOr - AddResourcePolicies(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + AddResourcePolicies(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: AddResourcePoliciesRequest const& request); virtual future> AddResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -205,12 +205,12 @@ class RegionDisksConnection { request); virtual StatusOr BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& request); virtual future> - BulkInsert(google::cloud::ExperimentalTag, + BulkInsert(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -218,12 +218,12 @@ class RegionDisksConnection { CreateSnapshotRequest const& request); virtual StatusOr CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: CreateSnapshotRequest const& request); virtual future> - CreateSnapshot(google::cloud::ExperimentalTag, + CreateSnapshot(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -232,12 +232,12 @@ class RegionDisksConnection { request); virtual StatusOr DeleteDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& request); virtual future> - DeleteDisk(google::cloud::ExperimentalTag, + DeleteDisk(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetDisk( @@ -254,12 +254,12 @@ class RegionDisksConnection { request); virtual StatusOr InsertDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const& request); virtual future> - InsertDisk(google::cloud::ExperimentalTag, + InsertDisk(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange ListRegionDisks( @@ -271,14 +271,13 @@ class RegionDisksConnection { RemoveResourcePoliciesRequest const& request); virtual StatusOr - RemoveResourcePolicies(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + RemoveResourcePolicies(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: RemoveResourcePoliciesRequest const& request); virtual future> RemoveResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> Resize( @@ -286,12 +285,12 @@ class RegionDisksConnection { request); virtual StatusOr Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& request); virtual future> Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr SetIamPolicy( @@ -304,12 +303,12 @@ class RegionDisksConnection { request); virtual StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const& request); virtual future> - SetLabels(google::cloud::ExperimentalTag, + SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -317,14 +316,13 @@ class RegionDisksConnection { StartAsyncReplicationRequest const& request); virtual StatusOr - StartAsyncReplication(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + StartAsyncReplication(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StartAsyncReplicationRequest const& request); virtual future> StartAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -332,14 +330,13 @@ class RegionDisksConnection { StopAsyncReplicationRequest const& request); virtual StatusOr - StopAsyncReplication(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + StopAsyncReplication(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StopAsyncReplicationRequest const& request); virtual future> StopAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -349,13 +346,13 @@ class RegionDisksConnection { virtual StatusOr StopGroupAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StopGroupAsyncReplicationRequest const& request); virtual future> StopGroupAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -368,12 +365,12 @@ class RegionDisksConnection { request); virtual StatusOr UpdateDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const& request); virtual future> - UpdateDisk(google::cloud::ExperimentalTag, + UpdateDisk(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_rest_connection_impl.cc b/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_rest_connection_impl.cc index f749ab15af345..c024dfdb10713 100644 --- a/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_rest_connection_impl.cc +++ b/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_rest_connection_impl.cc @@ -110,7 +110,7 @@ RegionHealthCheckServicesRestConnectionImpl::DeleteHealthCheckService( StatusOr RegionHealthCheckServicesRestConnectionImpl::DeleteHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: DeleteHealthCheckServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -127,7 +127,7 @@ RegionHealthCheckServicesRestConnectionImpl::DeleteHealthCheckService( future> RegionHealthCheckServicesRestConnectionImpl::DeleteHealthCheckService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -259,7 +259,7 @@ RegionHealthCheckServicesRestConnectionImpl::InsertHealthCheckService( StatusOr RegionHealthCheckServicesRestConnectionImpl::InsertHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: InsertHealthCheckServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -276,7 +276,7 @@ RegionHealthCheckServicesRestConnectionImpl::InsertHealthCheckService( future> RegionHealthCheckServicesRestConnectionImpl::InsertHealthCheckService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -433,7 +433,7 @@ RegionHealthCheckServicesRestConnectionImpl::PatchHealthCheckService( StatusOr RegionHealthCheckServicesRestConnectionImpl::PatchHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: PatchHealthCheckServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -450,7 +450,7 @@ RegionHealthCheckServicesRestConnectionImpl::PatchHealthCheckService( future> RegionHealthCheckServicesRestConnectionImpl::PatchHealthCheckService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_rest_connection_impl.h b/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_rest_connection_impl.h index 374883c40510a..f409fc37968e4 100644 --- a/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_rest_connection_impl.h +++ b/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_rest_connection_impl.h @@ -60,13 +60,13 @@ class RegionHealthCheckServicesRestConnectionImpl DeleteHealthCheckServiceRequest const& request) override; StatusOr DeleteHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: DeleteHealthCheckServiceRequest const& request) override; future> DeleteHealthCheckService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -80,13 +80,13 @@ class RegionHealthCheckServicesRestConnectionImpl InsertHealthCheckServiceRequest const& request) override; StatusOr InsertHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: InsertHealthCheckServiceRequest const& request) override; future> InsertHealthCheckService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -100,13 +100,13 @@ class RegionHealthCheckServicesRestConnectionImpl PatchHealthCheckServiceRequest const& request) override; StatusOr PatchHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: PatchHealthCheckServiceRequest const& request) override; future> PatchHealthCheckService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_tracing_connection.cc b/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_tracing_connection.cc index 0a82b190cfe18..6ae872acb28e7 100644 --- a/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_tracing_connection.cc +++ b/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_tracing_connection.cc @@ -57,7 +57,7 @@ RegionHealthCheckServicesTracingConnection::DeleteHealthCheckService( auto span = internal::MakeSpan( "compute_region_health_check_services_v1::" "RegionHealthCheckServicesConnection::DeleteHealthCheckService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteHealthCheckService( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -107,7 +107,7 @@ RegionHealthCheckServicesTracingConnection::InsertHealthCheckService( auto span = internal::MakeSpan( "compute_region_health_check_services_v1::" "RegionHealthCheckServicesConnection::InsertHealthCheckService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertHealthCheckService( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -160,7 +160,7 @@ RegionHealthCheckServicesTracingConnection::PatchHealthCheckService( auto span = internal::MakeSpan( "compute_region_health_check_services_v1::" "RegionHealthCheckServicesConnection::PatchHealthCheckService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchHealthCheckService( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection.cc b/google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection.cc index af8804d6d4a3d..0be495c9dff76 100644 --- a/google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection.cc +++ b/google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection.cc @@ -49,7 +49,7 @@ RegionHealthCheckServicesConnection::DeleteHealthCheckService( StatusOr RegionHealthCheckServicesConnection::DeleteHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: DeleteHealthCheckServiceRequest const&) { return StatusOr( @@ -58,8 +58,7 @@ RegionHealthCheckServicesConnection::DeleteHealthCheckService( future> RegionHealthCheckServicesConnection::DeleteHealthCheckService( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -83,7 +82,7 @@ RegionHealthCheckServicesConnection::InsertHealthCheckService( StatusOr RegionHealthCheckServicesConnection::InsertHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: InsertHealthCheckServiceRequest const&) { return StatusOr( @@ -92,8 +91,7 @@ RegionHealthCheckServicesConnection::InsertHealthCheckService( future> RegionHealthCheckServicesConnection::InsertHealthCheckService( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +116,7 @@ RegionHealthCheckServicesConnection::PatchHealthCheckService( StatusOr RegionHealthCheckServicesConnection::PatchHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: PatchHealthCheckServiceRequest const&) { return StatusOr( @@ -127,8 +125,7 @@ RegionHealthCheckServicesConnection::PatchHealthCheckService( future> RegionHealthCheckServicesConnection::PatchHealthCheckService( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection.h b/google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection.h index f6489ea5df946..31085c7308c48 100644 --- a/google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection.h +++ b/google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_retry_traits.h" #include "google/cloud/compute/region_health_check_services/v1/region_health_check_services_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -210,13 +210,13 @@ class RegionHealthCheckServicesConnection { virtual StatusOr DeleteHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: DeleteHealthCheckServiceRequest const& request); virtual future> DeleteHealthCheckService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -231,13 +231,13 @@ class RegionHealthCheckServicesConnection { virtual StatusOr InsertHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: InsertHealthCheckServiceRequest const& request); virtual future> InsertHealthCheckService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -252,13 +252,13 @@ class RegionHealthCheckServicesConnection { virtual StatusOr PatchHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: PatchHealthCheckServiceRequest const& request); virtual future> PatchHealthCheckService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_rest_connection_impl.cc b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_rest_connection_impl.cc index d316800724b5f..2cba8481aadf8 100644 --- a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_rest_connection_impl.cc +++ b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_rest_connection_impl.cc @@ -108,7 +108,7 @@ RegionHealthChecksRestConnectionImpl::DeleteHealthCheck( StatusOr RegionHealthChecksRestConnectionImpl::DeleteHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: DeleteHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -125,7 +125,7 @@ RegionHealthChecksRestConnectionImpl::DeleteHealthCheck( future> RegionHealthChecksRestConnectionImpl::DeleteHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -257,7 +257,7 @@ RegionHealthChecksRestConnectionImpl::InsertHealthCheck( StatusOr RegionHealthChecksRestConnectionImpl::InsertHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: InsertHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -274,7 +274,7 @@ RegionHealthChecksRestConnectionImpl::InsertHealthCheck( future> RegionHealthChecksRestConnectionImpl::InsertHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -430,7 +430,7 @@ RegionHealthChecksRestConnectionImpl::PatchHealthCheck( StatusOr RegionHealthChecksRestConnectionImpl::PatchHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: PatchHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -447,7 +447,7 @@ RegionHealthChecksRestConnectionImpl::PatchHealthCheck( future> RegionHealthChecksRestConnectionImpl::PatchHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -563,7 +563,7 @@ RegionHealthChecksRestConnectionImpl::UpdateHealthCheck( StatusOr RegionHealthChecksRestConnectionImpl::UpdateHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: UpdateHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -580,7 +580,7 @@ RegionHealthChecksRestConnectionImpl::UpdateHealthCheck( future> RegionHealthChecksRestConnectionImpl::UpdateHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_rest_connection_impl.h b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_rest_connection_impl.h index 6d2bf2c161654..26dac6e06b4ee 100644 --- a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_rest_connection_impl.h +++ b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_rest_connection_impl.h @@ -58,13 +58,13 @@ class RegionHealthChecksRestConnectionImpl DeleteHealthCheckRequest const& request) override; StatusOr DeleteHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: DeleteHealthCheckRequest const& request) override; future> DeleteHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetHealthCheck( @@ -76,13 +76,13 @@ class RegionHealthChecksRestConnectionImpl InsertHealthCheckRequest const& request) override; StatusOr InsertHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: InsertHealthCheckRequest const& request) override; future> InsertHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -94,12 +94,12 @@ class RegionHealthChecksRestConnectionImpl PatchHealthCheckRequest const& request) override; StatusOr PatchHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: PatchHealthCheckRequest const& request) override; future> PatchHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -107,13 +107,13 @@ class RegionHealthChecksRestConnectionImpl UpdateHealthCheckRequest const& request) override; StatusOr UpdateHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: UpdateHealthCheckRequest const& request) override; future> UpdateHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.cc b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.cc index 2033038d0824f..9eac62a4e3600 100644 --- a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.cc +++ b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.cc @@ -55,7 +55,7 @@ RegionHealthChecksTracingConnection::DeleteHealthCheck( auto span = internal::MakeSpan( "compute_region_health_checks_v1::RegionHealthChecksConnection::" "DeleteHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteHealthCheck(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -104,7 +104,7 @@ RegionHealthChecksTracingConnection::InsertHealthCheck( auto span = internal::MakeSpan( "compute_region_health_checks_v1::RegionHealthChecksConnection::" "InsertHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertHealthCheck(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -156,7 +156,7 @@ RegionHealthChecksTracingConnection::PatchHealthCheck( auto span = internal::MakeSpan( "compute_region_health_checks_v1::RegionHealthChecksConnection::" "PatchHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchHealthCheck(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -194,7 +194,7 @@ RegionHealthChecksTracingConnection::UpdateHealthCheck( auto span = internal::MakeSpan( "compute_region_health_checks_v1::RegionHealthChecksConnection::" "UpdateHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateHealthCheck(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_health_checks/v1/region_health_checks_connection.cc b/google/cloud/compute/region_health_checks/v1/region_health_checks_connection.cc index 59c1511fb3852..4f431adb6eb3c 100644 --- a/google/cloud/compute/region_health_checks/v1/region_health_checks_connection.cc +++ b/google/cloud/compute/region_health_checks/v1/region_health_checks_connection.cc @@ -48,7 +48,7 @@ RegionHealthChecksConnection::DeleteHealthCheck( StatusOr RegionHealthChecksConnection::DeleteHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: DeleteHealthCheckRequest const&) { return StatusOr( @@ -57,8 +57,7 @@ RegionHealthChecksConnection::DeleteHealthCheck( future> RegionHealthChecksConnection::DeleteHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -82,7 +81,7 @@ RegionHealthChecksConnection::InsertHealthCheck( StatusOr RegionHealthChecksConnection::InsertHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: InsertHealthCheckRequest const&) { return StatusOr( @@ -91,8 +90,7 @@ RegionHealthChecksConnection::InsertHealthCheck( future> RegionHealthChecksConnection::InsertHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -117,7 +115,7 @@ RegionHealthChecksConnection::PatchHealthCheck( StatusOr RegionHealthChecksConnection::PatchHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: PatchHealthCheckRequest const&) { return StatusOr( @@ -126,8 +124,7 @@ RegionHealthChecksConnection::PatchHealthCheck( future> RegionHealthChecksConnection::PatchHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -144,7 +141,7 @@ RegionHealthChecksConnection::UpdateHealthCheck( StatusOr RegionHealthChecksConnection::UpdateHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: UpdateHealthCheckRequest const&) { return StatusOr( @@ -153,8 +150,7 @@ RegionHealthChecksConnection::UpdateHealthCheck( future> RegionHealthChecksConnection::UpdateHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_health_checks/v1/region_health_checks_connection.h b/google/cloud/compute/region_health_checks/v1/region_health_checks_connection.h index 2797d8a55bda4..24508570677e8 100644 --- a/google/cloud/compute/region_health_checks/v1/region_health_checks_connection.h +++ b/google/cloud/compute/region_health_checks/v1/region_health_checks_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/region_health_checks/v1/internal/region_health_checks_retry_traits.h" #include "google/cloud/compute/region_health_checks/v1/region_health_checks_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -196,13 +196,13 @@ class RegionHealthChecksConnection { DeleteHealthCheckRequest const& request); virtual StatusOr - DeleteHealthCheck(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + DeleteHealthCheck(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: DeleteHealthCheckRequest const& request); virtual future> DeleteHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetHealthCheck( @@ -214,13 +214,13 @@ class RegionHealthChecksConnection { InsertHealthCheckRequest const& request); virtual StatusOr - InsertHealthCheck(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + InsertHealthCheck(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: InsertHealthCheckRequest const& request); virtual future> InsertHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -232,12 +232,12 @@ class RegionHealthChecksConnection { PatchHealthCheckRequest const& request); virtual StatusOr PatchHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: PatchHealthCheckRequest const& request); virtual future> - PatchHealthCheck(google::cloud::ExperimentalTag, + PatchHealthCheck(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -245,13 +245,13 @@ class RegionHealthChecksConnection { UpdateHealthCheckRequest const& request); virtual StatusOr - UpdateHealthCheck(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + UpdateHealthCheck(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: UpdateHealthCheckRequest const& request); virtual future> UpdateHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_rest_connection_impl.cc b/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_rest_connection_impl.cc index dc732b228a66d..f2701dce15290 100644 --- a/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_rest_connection_impl.cc +++ b/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_rest_connection_impl.cc @@ -111,7 +111,7 @@ RegionInstanceGroupManagersRestConnectionImpl::AbandonInstances( StatusOr RegionInstanceGroupManagersRestConnectionImpl::AbandonInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: AbandonInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -128,7 +128,7 @@ RegionInstanceGroupManagersRestConnectionImpl::AbandonInstances( future> RegionInstanceGroupManagersRestConnectionImpl::AbandonInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -245,7 +245,7 @@ RegionInstanceGroupManagersRestConnectionImpl::ApplyUpdatesToInstances( StatusOr RegionInstanceGroupManagersRestConnectionImpl::ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -262,7 +262,7 @@ RegionInstanceGroupManagersRestConnectionImpl::ApplyUpdatesToInstances( future> RegionInstanceGroupManagersRestConnectionImpl::ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -379,7 +379,7 @@ RegionInstanceGroupManagersRestConnectionImpl::CreateInstances( StatusOr RegionInstanceGroupManagersRestConnectionImpl::CreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: CreateInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -396,7 +396,7 @@ RegionInstanceGroupManagersRestConnectionImpl::CreateInstances( future> RegionInstanceGroupManagersRestConnectionImpl::CreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -513,7 +513,7 @@ RegionInstanceGroupManagersRestConnectionImpl::DeleteInstanceGroupManager( StatusOr RegionInstanceGroupManagersRestConnectionImpl::DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -531,7 +531,7 @@ RegionInstanceGroupManagersRestConnectionImpl::DeleteInstanceGroupManager( future> RegionInstanceGroupManagersRestConnectionImpl::DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -648,7 +648,7 @@ RegionInstanceGroupManagersRestConnectionImpl::DeleteInstances( StatusOr RegionInstanceGroupManagersRestConnectionImpl::DeleteInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -665,7 +665,7 @@ RegionInstanceGroupManagersRestConnectionImpl::DeleteInstances( future> RegionInstanceGroupManagersRestConnectionImpl::DeleteInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -782,7 +782,7 @@ RegionInstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( StatusOr RegionInstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -799,7 +799,7 @@ RegionInstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( future> RegionInstanceGroupManagersRestConnectionImpl::DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -932,7 +932,7 @@ RegionInstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( StatusOr RegionInstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -950,7 +950,7 @@ RegionInstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( future> RegionInstanceGroupManagersRestConnectionImpl::InsertInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1205,7 +1205,7 @@ RegionInstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( StatusOr RegionInstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1222,7 +1222,7 @@ RegionInstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( future> RegionInstanceGroupManagersRestConnectionImpl::PatchInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1339,7 +1339,7 @@ RegionInstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( StatusOr RegionInstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1356,7 +1356,7 @@ RegionInstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( future> RegionInstanceGroupManagersRestConnectionImpl::PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1473,7 +1473,7 @@ RegionInstanceGroupManagersRestConnectionImpl::RecreateInstances( StatusOr RegionInstanceGroupManagersRestConnectionImpl::RecreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: RecreateInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1490,7 +1490,7 @@ RegionInstanceGroupManagersRestConnectionImpl::RecreateInstances( future> RegionInstanceGroupManagersRestConnectionImpl::RecreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1607,7 +1607,7 @@ RegionInstanceGroupManagersRestConnectionImpl::Resize( StatusOr RegionInstanceGroupManagersRestConnectionImpl::Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: ResizeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1624,7 +1624,7 @@ RegionInstanceGroupManagersRestConnectionImpl::Resize( future> RegionInstanceGroupManagersRestConnectionImpl::Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1741,7 +1741,7 @@ RegionInstanceGroupManagersRestConnectionImpl::SetInstanceTemplate( StatusOr RegionInstanceGroupManagersRestConnectionImpl::SetInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: SetInstanceTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1758,7 +1758,7 @@ RegionInstanceGroupManagersRestConnectionImpl::SetInstanceTemplate( future> RegionInstanceGroupManagersRestConnectionImpl::SetInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1875,7 +1875,7 @@ RegionInstanceGroupManagersRestConnectionImpl::SetTargetPools( StatusOr RegionInstanceGroupManagersRestConnectionImpl::SetTargetPools( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: SetTargetPoolsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1892,7 +1892,7 @@ RegionInstanceGroupManagersRestConnectionImpl::SetTargetPools( future> RegionInstanceGroupManagersRestConnectionImpl::SetTargetPools( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -2009,7 +2009,7 @@ RegionInstanceGroupManagersRestConnectionImpl::UpdatePerInstanceConfigs( StatusOr RegionInstanceGroupManagersRestConnectionImpl::UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2026,7 +2026,7 @@ RegionInstanceGroupManagersRestConnectionImpl::UpdatePerInstanceConfigs( future> RegionInstanceGroupManagersRestConnectionImpl::UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_rest_connection_impl.h b/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_rest_connection_impl.h index faf26138135cc..98ae32c58a0c9 100644 --- a/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_rest_connection_impl.h +++ b/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_rest_connection_impl.h @@ -59,12 +59,12 @@ class RegionInstanceGroupManagersRestConnectionImpl AbandonInstancesRequest const& request) override; StatusOr AbandonInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: AbandonInstancesRequest const& request) override; future> AbandonInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -73,13 +73,13 @@ class RegionInstanceGroupManagersRestConnectionImpl ApplyUpdatesToInstancesRequest const& request) override; StatusOr ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request) override; future> ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> CreateInstances( @@ -87,12 +87,12 @@ class RegionInstanceGroupManagersRestConnectionImpl CreateInstancesRequest const& request) override; StatusOr CreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: CreateInstancesRequest const& request) override; future> CreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -102,13 +102,13 @@ class RegionInstanceGroupManagersRestConnectionImpl StatusOr DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request) override; future> DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> DeleteInstances( @@ -116,12 +116,12 @@ class RegionInstanceGroupManagersRestConnectionImpl DeleteInstancesRequest const& request) override; StatusOr DeleteInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstancesRequest const& request) override; future> DeleteInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -130,13 +130,13 @@ class RegionInstanceGroupManagersRestConnectionImpl DeletePerInstanceConfigsRequest const& request) override; StatusOr DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request) override; future> DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -151,13 +151,13 @@ class RegionInstanceGroupManagersRestConnectionImpl StatusOr InsertInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request) override; future> InsertInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -187,13 +187,13 @@ class RegionInstanceGroupManagersRestConnectionImpl StatusOr PatchInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request) override; future> PatchInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -202,13 +202,13 @@ class RegionInstanceGroupManagersRestConnectionImpl PatchPerInstanceConfigsRequest const& request) override; StatusOr PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request) override; future> PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -217,13 +217,13 @@ class RegionInstanceGroupManagersRestConnectionImpl RecreateInstancesRequest const& request) override; StatusOr RecreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: RecreateInstancesRequest const& request) override; future> RecreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Resize( @@ -231,12 +231,12 @@ class RegionInstanceGroupManagersRestConnectionImpl ResizeRequest const& request) override; StatusOr Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: ResizeRequest const& request) override; future> Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -245,13 +245,13 @@ class RegionInstanceGroupManagersRestConnectionImpl SetInstanceTemplateRequest const& request) override; StatusOr SetInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: SetInstanceTemplateRequest const& request) override; future> SetInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetTargetPools( @@ -259,12 +259,12 @@ class RegionInstanceGroupManagersRestConnectionImpl SetTargetPoolsRequest const& request) override; StatusOr SetTargetPools( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: SetTargetPoolsRequest const& request) override; future> SetTargetPools( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -273,13 +273,13 @@ class RegionInstanceGroupManagersRestConnectionImpl UpdatePerInstanceConfigsRequest const& request) override; StatusOr UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request) override; future> UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_tracing_connection.cc b/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_tracing_connection.cc index 85696dcd9a845..344517b358c0a 100644 --- a/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_tracing_connection.cc +++ b/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_tracing_connection.cc @@ -56,7 +56,7 @@ RegionInstanceGroupManagersTracingConnection::AbandonInstances( auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::AbandonInstances"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AbandonInstances(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -95,7 +95,7 @@ RegionInstanceGroupManagersTracingConnection::ApplyUpdatesToInstances( auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::ApplyUpdatesToInstances"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ApplyUpdatesToInstances( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -133,7 +133,7 @@ RegionInstanceGroupManagersTracingConnection::CreateInstances( auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::CreateInstances"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateInstances(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -172,7 +172,7 @@ RegionInstanceGroupManagersTracingConnection::DeleteInstanceGroupManager( auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::DeleteInstanceGroupManager"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteInstanceGroupManager( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -210,7 +210,7 @@ RegionInstanceGroupManagersTracingConnection::DeleteInstances( auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::DeleteInstances"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteInstances(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -249,7 +249,7 @@ RegionInstanceGroupManagersTracingConnection::DeletePerInstanceConfigs( auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::DeletePerInstanceConfigs"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeletePerInstanceConfigs( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -299,7 +299,7 @@ RegionInstanceGroupManagersTracingConnection::InsertInstanceGroupManager( auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::InsertInstanceGroupManager"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertInstanceGroupManager( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -392,7 +392,7 @@ RegionInstanceGroupManagersTracingConnection::PatchInstanceGroupManager( auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::PatchInstanceGroupManager"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchInstanceGroupManager( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -431,7 +431,7 @@ RegionInstanceGroupManagersTracingConnection::PatchPerInstanceConfigs( auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::PatchPerInstanceConfigs"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchPerInstanceConfigs( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -469,7 +469,7 @@ RegionInstanceGroupManagersTracingConnection::RecreateInstances( auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::RecreateInstances"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RecreateInstances(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -507,7 +507,7 @@ RegionInstanceGroupManagersTracingConnection::Resize( auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::Resize"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->Resize(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -546,7 +546,7 @@ RegionInstanceGroupManagersTracingConnection::SetInstanceTemplate( auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::SetInstanceTemplate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetInstanceTemplate(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -584,7 +584,7 @@ RegionInstanceGroupManagersTracingConnection::SetTargetPools( auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::SetTargetPools"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetTargetPools(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -623,7 +623,7 @@ RegionInstanceGroupManagersTracingConnection::UpdatePerInstanceConfigs( auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::UpdatePerInstanceConfigs"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdatePerInstanceConfigs( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection.cc b/google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection.cc index f72a6232b9b42..687eaa12822f8 100644 --- a/google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection.cc +++ b/google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection.cc @@ -49,7 +49,7 @@ RegionInstanceGroupManagersConnection::AbandonInstances( StatusOr RegionInstanceGroupManagersConnection::AbandonInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: AbandonInstancesRequest const&) { return StatusOr( @@ -58,8 +58,7 @@ RegionInstanceGroupManagersConnection::AbandonInstances( future> RegionInstanceGroupManagersConnection::AbandonInstances( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -76,7 +75,7 @@ RegionInstanceGroupManagersConnection::ApplyUpdatesToInstances( StatusOr RegionInstanceGroupManagersConnection::ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const&) { return StatusOr( @@ -85,8 +84,7 @@ RegionInstanceGroupManagersConnection::ApplyUpdatesToInstances( future> RegionInstanceGroupManagersConnection::ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -103,7 +101,7 @@ RegionInstanceGroupManagersConnection::CreateInstances( StatusOr RegionInstanceGroupManagersConnection::CreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: CreateInstancesRequest const&) { return StatusOr( @@ -112,8 +110,7 @@ RegionInstanceGroupManagersConnection::CreateInstances( future> RegionInstanceGroupManagersConnection::CreateInstances( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -130,7 +127,7 @@ RegionInstanceGroupManagersConnection::DeleteInstanceGroupManager( StatusOr RegionInstanceGroupManagersConnection::DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const&) { return StatusOr( @@ -139,8 +136,7 @@ RegionInstanceGroupManagersConnection::DeleteInstanceGroupManager( future> RegionInstanceGroupManagersConnection::DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -157,7 +153,7 @@ RegionInstanceGroupManagersConnection::DeleteInstances( StatusOr RegionInstanceGroupManagersConnection::DeleteInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstancesRequest const&) { return StatusOr( @@ -166,8 +162,7 @@ RegionInstanceGroupManagersConnection::DeleteInstances( future> RegionInstanceGroupManagersConnection::DeleteInstances( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -184,7 +179,7 @@ RegionInstanceGroupManagersConnection::DeletePerInstanceConfigs( StatusOr RegionInstanceGroupManagersConnection::DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeletePerInstanceConfigsRequest const&) { return StatusOr( @@ -193,8 +188,7 @@ RegionInstanceGroupManagersConnection::DeletePerInstanceConfigs( future> RegionInstanceGroupManagersConnection::DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -218,7 +212,7 @@ RegionInstanceGroupManagersConnection::InsertInstanceGroupManager( StatusOr RegionInstanceGroupManagersConnection::InsertInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: InsertInstanceGroupManagerRequest const&) { return StatusOr( @@ -227,8 +221,7 @@ RegionInstanceGroupManagersConnection::InsertInstanceGroupManager( future> RegionInstanceGroupManagersConnection::InsertInstanceGroupManager( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -277,7 +270,7 @@ RegionInstanceGroupManagersConnection::PatchInstanceGroupManager( StatusOr RegionInstanceGroupManagersConnection::PatchInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchInstanceGroupManagerRequest const&) { return StatusOr( @@ -286,8 +279,7 @@ RegionInstanceGroupManagersConnection::PatchInstanceGroupManager( future> RegionInstanceGroupManagersConnection::PatchInstanceGroupManager( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -304,7 +296,7 @@ RegionInstanceGroupManagersConnection::PatchPerInstanceConfigs( StatusOr RegionInstanceGroupManagersConnection::PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchPerInstanceConfigsRequest const&) { return StatusOr( @@ -313,8 +305,7 @@ RegionInstanceGroupManagersConnection::PatchPerInstanceConfigs( future> RegionInstanceGroupManagersConnection::PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -331,7 +322,7 @@ RegionInstanceGroupManagersConnection::RecreateInstances( StatusOr RegionInstanceGroupManagersConnection::RecreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: RecreateInstancesRequest const&) { return StatusOr( @@ -340,8 +331,7 @@ RegionInstanceGroupManagersConnection::RecreateInstances( future> RegionInstanceGroupManagersConnection::RecreateInstances( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -358,7 +348,7 @@ RegionInstanceGroupManagersConnection::Resize( StatusOr RegionInstanceGroupManagersConnection::Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: ResizeRequest const&) { return StatusOr( @@ -367,8 +357,7 @@ RegionInstanceGroupManagersConnection::Resize( future> RegionInstanceGroupManagersConnection::Resize( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -385,7 +374,7 @@ RegionInstanceGroupManagersConnection::SetInstanceTemplate( StatusOr RegionInstanceGroupManagersConnection::SetInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: SetInstanceTemplateRequest const&) { return StatusOr( @@ -394,8 +383,7 @@ RegionInstanceGroupManagersConnection::SetInstanceTemplate( future> RegionInstanceGroupManagersConnection::SetInstanceTemplate( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -412,7 +400,7 @@ RegionInstanceGroupManagersConnection::SetTargetPools( StatusOr RegionInstanceGroupManagersConnection::SetTargetPools( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: SetTargetPoolsRequest const&) { return StatusOr( @@ -421,8 +409,7 @@ RegionInstanceGroupManagersConnection::SetTargetPools( future> RegionInstanceGroupManagersConnection::SetTargetPools( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -439,7 +426,7 @@ RegionInstanceGroupManagersConnection::UpdatePerInstanceConfigs( StatusOr RegionInstanceGroupManagersConnection::UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const&) { return StatusOr( @@ -448,8 +435,7 @@ RegionInstanceGroupManagersConnection::UpdatePerInstanceConfigs( future> RegionInstanceGroupManagersConnection::UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection.h b/google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection.h index 9295b3e6f1728..61760c85b06ad 100644 --- a/google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection.h +++ b/google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_retry_traits.h" #include "google/cloud/compute/region_instance_group_managers/v1/region_instance_group_managers_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -211,12 +211,12 @@ class RegionInstanceGroupManagersConnection { v1::AbandonInstancesRequest const& request); virtual StatusOr AbandonInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: AbandonInstancesRequest const& request); virtual future> - AbandonInstances(google::cloud::ExperimentalTag, + AbandonInstances(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -226,13 +226,13 @@ class RegionInstanceGroupManagersConnection { virtual StatusOr ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request); virtual future> ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -240,12 +240,12 @@ class RegionInstanceGroupManagersConnection { v1::CreateInstancesRequest const& request); virtual StatusOr CreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: CreateInstancesRequest const& request); virtual future> - CreateInstances(google::cloud::ExperimentalTag, + CreateInstances(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -255,13 +255,13 @@ class RegionInstanceGroupManagersConnection { virtual StatusOr DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request); virtual future> DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -269,12 +269,12 @@ class RegionInstanceGroupManagersConnection { v1::DeleteInstancesRequest const& request); virtual StatusOr DeleteInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstancesRequest const& request); virtual future> - DeleteInstances(google::cloud::ExperimentalTag, + DeleteInstances(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -284,13 +284,13 @@ class RegionInstanceGroupManagersConnection { virtual StatusOr DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request); virtual future> DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -305,13 +305,13 @@ class RegionInstanceGroupManagersConnection { virtual StatusOr InsertInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request); virtual future> InsertInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -342,13 +342,13 @@ class RegionInstanceGroupManagersConnection { virtual StatusOr PatchInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request); virtual future> PatchInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -358,13 +358,13 @@ class RegionInstanceGroupManagersConnection { virtual StatusOr PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request); virtual future> PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -374,13 +374,13 @@ class RegionInstanceGroupManagersConnection { virtual StatusOr RecreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: RecreateInstancesRequest const& request); virtual future> RecreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> Resize( @@ -388,12 +388,12 @@ class RegionInstanceGroupManagersConnection { ResizeRequest const& request); virtual StatusOr Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: ResizeRequest const& request); virtual future> Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -403,13 +403,13 @@ class RegionInstanceGroupManagersConnection { virtual StatusOr SetInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: SetInstanceTemplateRequest const& request); virtual future> SetInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -417,12 +417,12 @@ class RegionInstanceGroupManagersConnection { v1::SetTargetPoolsRequest const& request); virtual StatusOr SetTargetPools( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: SetTargetPoolsRequest const& request); virtual future> - SetTargetPools(google::cloud::ExperimentalTag, + SetTargetPools(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -432,13 +432,13 @@ class RegionInstanceGroupManagersConnection { virtual StatusOr UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request); virtual future> UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_rest_connection_impl.cc b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_rest_connection_impl.cc index f536ec948559a..bedf514cd6eac 100644 --- a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_rest_connection_impl.cc +++ b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_rest_connection_impl.cc @@ -202,7 +202,7 @@ RegionInstanceGroupsRestConnectionImpl::SetNamedPorts( StatusOr RegionInstanceGroupsRestConnectionImpl::SetNamedPorts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_groups::v1:: SetNamedPortsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -219,7 +219,7 @@ RegionInstanceGroupsRestConnectionImpl::SetNamedPorts( future> RegionInstanceGroupsRestConnectionImpl::SetNamedPorts( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_rest_connection_impl.h b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_rest_connection_impl.h index 60a1b1a896b24..f204739f8646a 100644 --- a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_rest_connection_impl.h +++ b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_rest_connection_impl.h @@ -71,12 +71,12 @@ class RegionInstanceGroupsRestConnectionImpl SetNamedPortsRequest const& request) override; StatusOr SetNamedPorts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_groups::v1:: SetNamedPortsRequest const& request) override; future> SetNamedPorts( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.cc b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.cc index 1c1357bf9f9f7..abc20b19023ea 100644 --- a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.cc +++ b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.cc @@ -94,7 +94,7 @@ RegionInstanceGroupsTracingConnection::SetNamedPorts( auto span = internal::MakeSpan( "compute_region_instance_groups_v1::RegionInstanceGroupsConnection::" "SetNamedPorts"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetNamedPorts(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection.cc b/google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection.cc index 0b7d0ee16ef79..4eca5c166659b 100644 --- a/google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection.cc +++ b/google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection.cc @@ -71,7 +71,7 @@ RegionInstanceGroupsConnection::SetNamedPorts( StatusOr RegionInstanceGroupsConnection::SetNamedPorts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_groups::v1:: SetNamedPortsRequest const&) { return StatusOr( @@ -80,8 +80,7 @@ RegionInstanceGroupsConnection::SetNamedPorts( future> RegionInstanceGroupsConnection::SetNamedPorts( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection.h b/google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection.h index 25cdbb6669893..8d6e002524b1c 100644 --- a/google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection.h +++ b/google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_retry_traits.h" #include "google/cloud/compute/region_instance_groups/v1/region_instance_groups_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -211,12 +211,12 @@ class RegionInstanceGroupsConnection { SetNamedPortsRequest const& request); virtual StatusOr SetNamedPorts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_groups::v1:: SetNamedPortsRequest const& request); virtual future> - SetNamedPorts(google::cloud::ExperimentalTag, + SetNamedPorts(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_rest_connection_impl.cc b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_rest_connection_impl.cc index 5c65612f22a0b..ca9a673769ba6 100644 --- a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_rest_connection_impl.cc +++ b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_rest_connection_impl.cc @@ -109,7 +109,7 @@ RegionInstanceTemplatesRestConnectionImpl::DeleteInstanceTemplate( StatusOr RegionInstanceTemplatesRestConnectionImpl::DeleteInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_templates::v1:: DeleteInstanceTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -126,7 +126,7 @@ RegionInstanceTemplatesRestConnectionImpl::DeleteInstanceTemplate( future> RegionInstanceTemplatesRestConnectionImpl::DeleteInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -258,7 +258,7 @@ RegionInstanceTemplatesRestConnectionImpl::InsertInstanceTemplate( StatusOr RegionInstanceTemplatesRestConnectionImpl::InsertInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_templates::v1:: InsertInstanceTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -275,7 +275,7 @@ RegionInstanceTemplatesRestConnectionImpl::InsertInstanceTemplate( future> RegionInstanceTemplatesRestConnectionImpl::InsertInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_rest_connection_impl.h b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_rest_connection_impl.h index 7696208178150..1bd2f0659d599 100644 --- a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_rest_connection_impl.h +++ b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_rest_connection_impl.h @@ -60,13 +60,13 @@ class RegionInstanceTemplatesRestConnectionImpl DeleteInstanceTemplateRequest const& request) override; StatusOr DeleteInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_templates::v1:: DeleteInstanceTemplateRequest const& request) override; future> DeleteInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -80,13 +80,13 @@ class RegionInstanceTemplatesRestConnectionImpl InsertInstanceTemplateRequest const& request) override; StatusOr InsertInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_templates::v1:: InsertInstanceTemplateRequest const& request) override; future> InsertInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.cc b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.cc index 9c899933b0371..fb82c4095a6ed 100644 --- a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.cc +++ b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.cc @@ -57,7 +57,7 @@ RegionInstanceTemplatesTracingConnection::DeleteInstanceTemplate( auto span = internal::MakeSpan( "compute_region_instance_templates_v1::RegionInstanceTemplatesConnection:" ":DeleteInstanceTemplate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteInstanceTemplate( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -107,7 +107,7 @@ RegionInstanceTemplatesTracingConnection::InsertInstanceTemplate( auto span = internal::MakeSpan( "compute_region_instance_templates_v1::RegionInstanceTemplatesConnection:" ":InsertInstanceTemplate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertInstanceTemplate( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection.cc b/google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection.cc index 3c791a54f383e..0b332de090274 100644 --- a/google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection.cc +++ b/google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection.cc @@ -49,7 +49,7 @@ RegionInstanceTemplatesConnection::DeleteInstanceTemplate( StatusOr RegionInstanceTemplatesConnection::DeleteInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_templates::v1:: DeleteInstanceTemplateRequest const&) { return StatusOr( @@ -58,8 +58,7 @@ RegionInstanceTemplatesConnection::DeleteInstanceTemplate( future> RegionInstanceTemplatesConnection::DeleteInstanceTemplate( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -83,7 +82,7 @@ RegionInstanceTemplatesConnection::InsertInstanceTemplate( StatusOr RegionInstanceTemplatesConnection::InsertInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_templates::v1:: InsertInstanceTemplateRequest const&) { return StatusOr( @@ -92,8 +91,7 @@ RegionInstanceTemplatesConnection::InsertInstanceTemplate( future> RegionInstanceTemplatesConnection::InsertInstanceTemplate( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection.h b/google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection.h index 7bf3ea97f8a1d..dcf4f27f75d5b 100644 --- a/google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection.h +++ b/google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_retry_traits.h" #include "google/cloud/compute/region_instance_templates/v1/region_instance_templates_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -204,13 +204,13 @@ class RegionInstanceTemplatesConnection { virtual StatusOr DeleteInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_templates::v1:: DeleteInstanceTemplateRequest const& request); virtual future> DeleteInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -224,13 +224,13 @@ class RegionInstanceTemplatesConnection { virtual StatusOr InsertInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_templates::v1:: InsertInstanceTemplateRequest const& request); virtual future> InsertInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange diff --git a/google/cloud/compute/region_instances/v1/internal/region_instances_rest_connection_impl.cc b/google/cloud/compute/region_instances/v1/internal/region_instances_rest_connection_impl.cc index 3b9632b3ac8fb..e7b9598c0c5e0 100644 --- a/google/cloud/compute/region_instances/v1/internal/region_instances_rest_connection_impl.cc +++ b/google/cloud/compute/region_instances/v1/internal/region_instances_rest_connection_impl.cc @@ -106,7 +106,7 @@ RegionInstancesRestConnectionImpl::BulkInsert( StatusOr RegionInstancesRestConnectionImpl::BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instances::v1::BulkInsertRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -123,7 +123,7 @@ RegionInstancesRestConnectionImpl::BulkInsert( future> RegionInstancesRestConnectionImpl::BulkInsert( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_instances/v1/internal/region_instances_rest_connection_impl.h b/google/cloud/compute/region_instances/v1/internal/region_instances_rest_connection_impl.h index fd5940803c3e3..dc04e24c9b8d3 100644 --- a/google/cloud/compute/region_instances/v1/internal/region_instances_rest_connection_impl.h +++ b/google/cloud/compute/region_instances/v1/internal/region_instances_rest_connection_impl.h @@ -56,12 +56,12 @@ class RegionInstancesRestConnectionImpl BulkInsertRequest const& request) override; StatusOr BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instances::v1:: BulkInsertRequest const& request) override; future> BulkInsert( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.cc b/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.cc index 7891ba1290c28..f8d1607663ff6 100644 --- a/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.cc +++ b/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.cc @@ -50,7 +50,7 @@ RegionInstancesTracingConnection::BulkInsert( request) { auto span = internal::MakeSpan( "compute_region_instances_v1::RegionInstancesConnection::BulkInsert"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BulkInsert(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_instances/v1/region_instances_connection.cc b/google/cloud/compute/region_instances/v1/region_instances_connection.cc index 82730439fcd37..2e82c4b9a5758 100644 --- a/google/cloud/compute/region_instances/v1/region_instances_connection.cc +++ b/google/cloud/compute/region_instances/v1/region_instances_connection.cc @@ -46,7 +46,7 @@ RegionInstancesConnection::BulkInsert( StatusOr RegionInstancesConnection::BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instances::v1:: BulkInsertRequest const&) { return StatusOr( @@ -55,8 +55,7 @@ RegionInstancesConnection::BulkInsert( future> RegionInstancesConnection::BulkInsert( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_instances/v1/region_instances_connection.h b/google/cloud/compute/region_instances/v1/region_instances_connection.h index 82591e2348cd0..d835941651578 100644 --- a/google/cloud/compute/region_instances/v1/region_instances_connection.h +++ b/google/cloud/compute/region_instances/v1/region_instances_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/region_instances/v1/internal/region_instances_retry_traits.h" #include "google/cloud/compute/region_instances/v1/region_instances_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,12 +192,12 @@ class RegionInstancesConnection { BulkInsertRequest const& request); virtual StatusOr BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instances::v1:: BulkInsertRequest const& request); virtual future> - BulkInsert(google::cloud::ExperimentalTag, + BulkInsert(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_rest_connection_impl.cc b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_rest_connection_impl.cc index affe79f2b4a33..93f59ffee27ac 100644 --- a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_rest_connection_impl.cc +++ b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_rest_connection_impl.cc @@ -111,7 +111,7 @@ RegionNetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( StatusOr RegionNetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -128,7 +128,7 @@ RegionNetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( future> RegionNetworkEndpointGroupsRestConnectionImpl::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -245,7 +245,7 @@ RegionNetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( StatusOr RegionNetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -263,7 +263,7 @@ RegionNetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( future> RegionNetworkEndpointGroupsRestConnectionImpl::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -380,7 +380,7 @@ RegionNetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( StatusOr RegionNetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -397,7 +397,7 @@ RegionNetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( future> RegionNetworkEndpointGroupsRestConnectionImpl::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -530,7 +530,7 @@ RegionNetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( StatusOr RegionNetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -548,7 +548,7 @@ RegionNetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( future> RegionNetworkEndpointGroupsRestConnectionImpl::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_rest_connection_impl.h b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_rest_connection_impl.h index 55849a6192039..1cffdce493615 100644 --- a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_rest_connection_impl.h +++ b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_rest_connection_impl.h @@ -60,13 +60,13 @@ class RegionNetworkEndpointGroupsRestConnectionImpl AttachNetworkEndpointsRequest const& request) override; StatusOr AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) override; future> AttachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -76,13 +76,13 @@ class RegionNetworkEndpointGroupsRestConnectionImpl StatusOr DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) override; future> DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -91,13 +91,13 @@ class RegionNetworkEndpointGroupsRestConnectionImpl DetachNetworkEndpointsRequest const& request) override; StatusOr DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) override; future> DetachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -112,13 +112,13 @@ class RegionNetworkEndpointGroupsRestConnectionImpl StatusOr InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) override; future> InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.cc b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.cc index bfcc84f7dc70b..4e8382661547d 100644 --- a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.cc +++ b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.cc @@ -57,7 +57,7 @@ RegionNetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( auto span = internal::MakeSpan( "compute_region_network_endpoint_groups_v1::" "RegionNetworkEndpointGroupsConnection::AttachNetworkEndpoints"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->AttachNetworkEndpoints( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -96,7 +96,7 @@ RegionNetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( auto span = internal::MakeSpan( "compute_region_network_endpoint_groups_v1::" "RegionNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteNetworkEndpointGroup( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ RegionNetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( auto span = internal::MakeSpan( "compute_region_network_endpoint_groups_v1::" "RegionNetworkEndpointGroupsConnection::DetachNetworkEndpoints"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DetachNetworkEndpoints( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -185,7 +185,7 @@ RegionNetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( auto span = internal::MakeSpan( "compute_region_network_endpoint_groups_v1::" "RegionNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertNetworkEndpointGroup( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection.cc b/google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection.cc index e3db52f8ed979..f337cace48d89 100644 --- a/google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection.cc +++ b/google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection.cc @@ -49,7 +49,7 @@ RegionNetworkEndpointGroupsConnection::AttachNetworkEndpoints( StatusOr RegionNetworkEndpointGroupsConnection::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const&) { return StatusOr( @@ -58,8 +58,7 @@ RegionNetworkEndpointGroupsConnection::AttachNetworkEndpoints( future> RegionNetworkEndpointGroupsConnection::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -76,7 +75,7 @@ RegionNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( StatusOr RegionNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const&) { return StatusOr( @@ -85,8 +84,7 @@ RegionNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( future> RegionNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -103,7 +101,7 @@ RegionNetworkEndpointGroupsConnection::DetachNetworkEndpoints( StatusOr RegionNetworkEndpointGroupsConnection::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const&) { return StatusOr( @@ -112,8 +110,7 @@ RegionNetworkEndpointGroupsConnection::DetachNetworkEndpoints( future> RegionNetworkEndpointGroupsConnection::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -137,7 +134,7 @@ RegionNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( StatusOr RegionNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const&) { return StatusOr( @@ -146,8 +143,7 @@ RegionNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( future> RegionNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection.h b/google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection.h index 50e51bf84675b..a476be17a473c 100644 --- a/google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection.h +++ b/google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_retry_traits.h" #include "google/cloud/compute/region_network_endpoint_groups/v1/region_network_endpoint_groups_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -213,13 +213,13 @@ class RegionNetworkEndpointGroupsConnection { virtual StatusOr AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request); virtual future> AttachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -229,13 +229,13 @@ class RegionNetworkEndpointGroupsConnection { virtual StatusOr DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request); virtual future> DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -245,13 +245,13 @@ class RegionNetworkEndpointGroupsConnection { virtual StatusOr DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request); virtual future> DetachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -266,13 +266,13 @@ class RegionNetworkEndpointGroupsConnection { virtual StatusOr InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request); virtual future> InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange diff --git a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_rest_connection_impl.cc b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_rest_connection_impl.cc index 1f75ced954bdc..e09fbf285b9b8 100644 --- a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_rest_connection_impl.cc +++ b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_rest_connection_impl.cc @@ -111,7 +111,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::AddAssociation( StatusOr RegionNetworkFirewallPoliciesRestConnectionImpl::AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddAssociationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -128,7 +128,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::AddAssociation( future> RegionNetworkFirewallPoliciesRestConnectionImpl::AddAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -245,7 +245,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::AddRule( StatusOr RegionNetworkFirewallPoliciesRestConnectionImpl::AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -262,7 +262,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::AddRule( future> RegionNetworkFirewallPoliciesRestConnectionImpl::AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -379,7 +379,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::CloneRules( StatusOr RegionNetworkFirewallPoliciesRestConnectionImpl::CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: CloneRulesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -396,7 +396,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::CloneRules( future> RegionNetworkFirewallPoliciesRestConnectionImpl::CloneRules( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -513,7 +513,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( StatusOr RegionNetworkFirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -530,7 +530,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( future> RegionNetworkFirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -728,7 +728,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( StatusOr RegionNetworkFirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: InsertFirewallPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -745,7 +745,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( future> RegionNetworkFirewallPoliciesRestConnectionImpl::InsertFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -905,7 +905,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( StatusOr RegionNetworkFirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchFirewallPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -922,7 +922,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( future> RegionNetworkFirewallPoliciesRestConnectionImpl::PatchFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1039,7 +1039,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::PatchRule( StatusOr RegionNetworkFirewallPoliciesRestConnectionImpl::PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1056,7 +1056,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::PatchRule( future> RegionNetworkFirewallPoliciesRestConnectionImpl::PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1173,7 +1173,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::RemoveAssociation( StatusOr RegionNetworkFirewallPoliciesRestConnectionImpl::RemoveAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveAssociationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1190,7 +1190,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::RemoveAssociation( future> RegionNetworkFirewallPoliciesRestConnectionImpl::RemoveAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1307,7 +1307,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::RemoveRule( StatusOr RegionNetworkFirewallPoliciesRestConnectionImpl::RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1324,7 +1324,7 @@ RegionNetworkFirewallPoliciesRestConnectionImpl::RemoveRule( future> RegionNetworkFirewallPoliciesRestConnectionImpl::RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_rest_connection_impl.h b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_rest_connection_impl.h index 35137d001bbbb..8df9a3d7659ca 100644 --- a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_rest_connection_impl.h +++ b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_rest_connection_impl.h @@ -59,12 +59,12 @@ class RegionNetworkFirewallPoliciesRestConnectionImpl AddAssociationRequest const& request) override; StatusOr AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddAssociationRequest const& request) override; future> AddAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> AddRule( @@ -72,12 +72,12 @@ class RegionNetworkFirewallPoliciesRestConnectionImpl AddRuleRequest const& request) override; StatusOr AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddRuleRequest const& request) override; future> AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> CloneRules( @@ -85,12 +85,12 @@ class RegionNetworkFirewallPoliciesRestConnectionImpl CloneRulesRequest const& request) override; StatusOr CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: CloneRulesRequest const& request) override; future> CloneRules( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -99,13 +99,13 @@ class RegionNetworkFirewallPoliciesRestConnectionImpl DeleteFirewallPolicyRequest const& request) override; StatusOr DeleteFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) override; future> DeleteFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetFirewallPolicy( @@ -136,13 +136,13 @@ class RegionNetworkFirewallPoliciesRestConnectionImpl InsertFirewallPolicyRequest const& request) override; StatusOr InsertFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: InsertFirewallPolicyRequest const& request) override; future> InsertFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -156,13 +156,13 @@ class RegionNetworkFirewallPoliciesRestConnectionImpl PatchFirewallPolicyRequest const& request) override; StatusOr PatchFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchFirewallPolicyRequest const& request) override; future> PatchFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> PatchRule( @@ -170,12 +170,12 @@ class RegionNetworkFirewallPoliciesRestConnectionImpl PatchRuleRequest const& request) override; StatusOr PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchRuleRequest const& request) override; future> PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -184,13 +184,13 @@ class RegionNetworkFirewallPoliciesRestConnectionImpl RemoveAssociationRequest const& request) override; StatusOr RemoveAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveAssociationRequest const& request) override; future> RemoveAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> RemoveRule( @@ -198,12 +198,12 @@ class RegionNetworkFirewallPoliciesRestConnectionImpl RemoveRuleRequest const& request) override; StatusOr RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveRuleRequest const& request) override; future> RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( diff --git a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.cc b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.cc index 97a29bc3ce3c9..36b2a82501c3c 100644 --- a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.cc +++ b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.cc @@ -56,7 +56,7 @@ RegionNetworkFirewallPoliciesTracingConnection::AddAssociation( auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::AddAssociation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddAssociation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -94,7 +94,7 @@ RegionNetworkFirewallPoliciesTracingConnection::AddRule( auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::AddRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -132,7 +132,7 @@ RegionNetworkFirewallPoliciesTracingConnection::CloneRules( auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::CloneRules"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CloneRules(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -171,7 +171,7 @@ RegionNetworkFirewallPoliciesTracingConnection::DeleteFirewallPolicy( auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::DeleteFirewallPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteFirewallPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -266,7 +266,7 @@ RegionNetworkFirewallPoliciesTracingConnection::InsertFirewallPolicy( auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::InsertFirewallPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertFirewallPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -321,7 +321,7 @@ RegionNetworkFirewallPoliciesTracingConnection::PatchFirewallPolicy( auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::PatchFirewallPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchFirewallPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -359,7 +359,7 @@ RegionNetworkFirewallPoliciesTracingConnection::PatchRule( auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::PatchRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -397,7 +397,7 @@ RegionNetworkFirewallPoliciesTracingConnection::RemoveAssociation( auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::RemoveAssociation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RemoveAssociation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -435,7 +435,7 @@ RegionNetworkFirewallPoliciesTracingConnection::RemoveRule( auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::RemoveRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RemoveRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection.cc b/google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection.cc index 1379668acce95..20d6237a7b06d 100644 --- a/google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection.cc +++ b/google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection.cc @@ -49,7 +49,7 @@ RegionNetworkFirewallPoliciesConnection::AddAssociation( StatusOr RegionNetworkFirewallPoliciesConnection::AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddAssociationRequest const&) { return StatusOr( @@ -58,8 +58,7 @@ RegionNetworkFirewallPoliciesConnection::AddAssociation( future> RegionNetworkFirewallPoliciesConnection::AddAssociation( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -76,7 +75,7 @@ RegionNetworkFirewallPoliciesConnection::AddRule( StatusOr RegionNetworkFirewallPoliciesConnection::AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddRuleRequest const&) { return StatusOr( @@ -85,8 +84,7 @@ RegionNetworkFirewallPoliciesConnection::AddRule( future> RegionNetworkFirewallPoliciesConnection::AddRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -103,7 +101,7 @@ RegionNetworkFirewallPoliciesConnection::CloneRules( StatusOr RegionNetworkFirewallPoliciesConnection::CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: CloneRulesRequest const&) { return StatusOr( @@ -112,8 +110,7 @@ RegionNetworkFirewallPoliciesConnection::CloneRules( future> RegionNetworkFirewallPoliciesConnection::CloneRules( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -130,7 +127,7 @@ RegionNetworkFirewallPoliciesConnection::DeleteFirewallPolicy( StatusOr RegionNetworkFirewallPoliciesConnection::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: DeleteFirewallPolicyRequest const&) { return StatusOr( @@ -139,8 +136,7 @@ RegionNetworkFirewallPoliciesConnection::DeleteFirewallPolicy( future> RegionNetworkFirewallPoliciesConnection::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -193,7 +189,7 @@ RegionNetworkFirewallPoliciesConnection::InsertFirewallPolicy( StatusOr RegionNetworkFirewallPoliciesConnection::InsertFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: InsertFirewallPolicyRequest const&) { return StatusOr( @@ -202,8 +198,7 @@ RegionNetworkFirewallPoliciesConnection::InsertFirewallPolicy( future> RegionNetworkFirewallPoliciesConnection::InsertFirewallPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -228,7 +223,7 @@ RegionNetworkFirewallPoliciesConnection::PatchFirewallPolicy( StatusOr RegionNetworkFirewallPoliciesConnection::PatchFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchFirewallPolicyRequest const&) { return StatusOr( @@ -237,8 +232,7 @@ RegionNetworkFirewallPoliciesConnection::PatchFirewallPolicy( future> RegionNetworkFirewallPoliciesConnection::PatchFirewallPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -255,7 +249,7 @@ RegionNetworkFirewallPoliciesConnection::PatchRule( StatusOr RegionNetworkFirewallPoliciesConnection::PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchRuleRequest const&) { return StatusOr( @@ -264,8 +258,7 @@ RegionNetworkFirewallPoliciesConnection::PatchRule( future> RegionNetworkFirewallPoliciesConnection::PatchRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -282,7 +275,7 @@ RegionNetworkFirewallPoliciesConnection::RemoveAssociation( StatusOr RegionNetworkFirewallPoliciesConnection::RemoveAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveAssociationRequest const&) { return StatusOr( @@ -291,8 +284,7 @@ RegionNetworkFirewallPoliciesConnection::RemoveAssociation( future> RegionNetworkFirewallPoliciesConnection::RemoveAssociation( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -309,7 +301,7 @@ RegionNetworkFirewallPoliciesConnection::RemoveRule( StatusOr RegionNetworkFirewallPoliciesConnection::RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveRuleRequest const&) { return StatusOr( @@ -318,8 +310,7 @@ RegionNetworkFirewallPoliciesConnection::RemoveRule( future> RegionNetworkFirewallPoliciesConnection::RemoveRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection.h b/google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection.h index 0dbb10ca8e165..6c2deb1b938e3 100644 --- a/google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection.h +++ b/google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_retry_traits.h" #include "google/cloud/compute/region_network_firewall_policies/v1/region_network_firewall_policies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -212,12 +212,12 @@ class RegionNetworkFirewallPoliciesConnection { v1::AddAssociationRequest const& request); virtual StatusOr AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddAssociationRequest const& request); virtual future> - AddAssociation(google::cloud::ExperimentalTag, + AddAssociation(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> AddRule( @@ -225,12 +225,12 @@ class RegionNetworkFirewallPoliciesConnection { AddRuleRequest const& request); virtual StatusOr AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddRuleRequest const& request); virtual future> AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -238,12 +238,12 @@ class RegionNetworkFirewallPoliciesConnection { CloneRulesRequest const& request); virtual StatusOr CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: CloneRulesRequest const& request); virtual future> - CloneRules(google::cloud::ExperimentalTag, + CloneRules(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -253,13 +253,13 @@ class RegionNetworkFirewallPoliciesConnection { virtual StatusOr DeleteFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: DeleteFirewallPolicyRequest const& request); virtual future> DeleteFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -293,13 +293,13 @@ class RegionNetworkFirewallPoliciesConnection { virtual StatusOr InsertFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: InsertFirewallPolicyRequest const& request); virtual future> InsertFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -314,13 +314,13 @@ class RegionNetworkFirewallPoliciesConnection { virtual StatusOr PatchFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchFirewallPolicyRequest const& request); virtual future> PatchFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -328,12 +328,12 @@ class RegionNetworkFirewallPoliciesConnection { PatchRuleRequest const& request); virtual StatusOr PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchRuleRequest const& request); virtual future> - PatchRule(google::cloud::ExperimentalTag, + PatchRule(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -343,13 +343,13 @@ class RegionNetworkFirewallPoliciesConnection { virtual StatusOr RemoveAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveAssociationRequest const& request); virtual future> RemoveAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -357,12 +357,12 @@ class RegionNetworkFirewallPoliciesConnection { RemoveRuleRequest const& request); virtual StatusOr RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveRuleRequest const& request); virtual future> - RemoveRule(google::cloud::ExperimentalTag, + RemoveRule(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr SetIamPolicy( diff --git a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_rest_connection_impl.cc b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_rest_connection_impl.cc index 26ff58839f69a..5b5453ae5b9cd 100644 --- a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_rest_connection_impl.cc +++ b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_rest_connection_impl.cc @@ -111,7 +111,7 @@ RegionNotificationEndpointsRestConnectionImpl::DeleteNotificationEndpoint( StatusOr RegionNotificationEndpointsRestConnectionImpl::DeleteNotificationEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_notification_endpoints::v1:: DeleteNotificationEndpointRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -129,7 +129,7 @@ RegionNotificationEndpointsRestConnectionImpl::DeleteNotificationEndpoint( future> RegionNotificationEndpointsRestConnectionImpl::DeleteNotificationEndpoint( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -262,7 +262,7 @@ RegionNotificationEndpointsRestConnectionImpl::InsertNotificationEndpoint( StatusOr RegionNotificationEndpointsRestConnectionImpl::InsertNotificationEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_notification_endpoints::v1:: InsertNotificationEndpointRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -280,7 +280,7 @@ RegionNotificationEndpointsRestConnectionImpl::InsertNotificationEndpoint( future> RegionNotificationEndpointsRestConnectionImpl::InsertNotificationEndpoint( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_rest_connection_impl.h b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_rest_connection_impl.h index 3b17f631ef110..cbffe27066756 100644 --- a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_rest_connection_impl.h +++ b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_rest_connection_impl.h @@ -61,13 +61,13 @@ class RegionNotificationEndpointsRestConnectionImpl StatusOr DeleteNotificationEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_notification_endpoints::v1:: DeleteNotificationEndpointRequest const& request) override; future> DeleteNotificationEndpoint( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -82,13 +82,13 @@ class RegionNotificationEndpointsRestConnectionImpl StatusOr InsertNotificationEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_notification_endpoints::v1:: InsertNotificationEndpointRequest const& request) override; future> InsertNotificationEndpoint( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.cc b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.cc index 32b282295d1dd..860e29ed89b2d 100644 --- a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.cc +++ b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.cc @@ -57,7 +57,7 @@ RegionNotificationEndpointsTracingConnection::DeleteNotificationEndpoint( auto span = internal::MakeSpan( "compute_region_notification_endpoints_v1::" "RegionNotificationEndpointsConnection::DeleteNotificationEndpoint"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteNotificationEndpoint( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -107,7 +107,7 @@ RegionNotificationEndpointsTracingConnection::InsertNotificationEndpoint( auto span = internal::MakeSpan( "compute_region_notification_endpoints_v1::" "RegionNotificationEndpointsConnection::InsertNotificationEndpoint"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertNotificationEndpoint( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection.cc b/google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection.cc index 90703239cb44f..c2d39a3c45320 100644 --- a/google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection.cc +++ b/google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection.cc @@ -49,7 +49,7 @@ RegionNotificationEndpointsConnection::DeleteNotificationEndpoint( StatusOr RegionNotificationEndpointsConnection::DeleteNotificationEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_notification_endpoints::v1:: DeleteNotificationEndpointRequest const&) { return StatusOr( @@ -58,8 +58,7 @@ RegionNotificationEndpointsConnection::DeleteNotificationEndpoint( future> RegionNotificationEndpointsConnection::DeleteNotificationEndpoint( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -83,7 +82,7 @@ RegionNotificationEndpointsConnection::InsertNotificationEndpoint( StatusOr RegionNotificationEndpointsConnection::InsertNotificationEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_notification_endpoints::v1:: InsertNotificationEndpointRequest const&) { return StatusOr( @@ -92,8 +91,7 @@ RegionNotificationEndpointsConnection::InsertNotificationEndpoint( future> RegionNotificationEndpointsConnection::InsertNotificationEndpoint( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection.h b/google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection.h index d0aa82c29aecc..32920bdad0aac 100644 --- a/google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection.h +++ b/google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_retry_traits.h" #include "google/cloud/compute/region_notification_endpoints/v1/region_notification_endpoints_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -213,13 +213,13 @@ class RegionNotificationEndpointsConnection { virtual StatusOr DeleteNotificationEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_notification_endpoints::v1:: DeleteNotificationEndpointRequest const& request); virtual future> DeleteNotificationEndpoint( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -234,13 +234,13 @@ class RegionNotificationEndpointsConnection { virtual StatusOr InsertNotificationEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_notification_endpoints::v1:: InsertNotificationEndpointRequest const& request); virtual future> InsertNotificationEndpoint( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange diff --git a/google/cloud/compute/region_operations/v1/region_operations_connection.h b/google/cloud/compute/region_operations/v1/region_operations_connection.h index ccd51672c78b4..043414f5a9a9e 100644 --- a/google/cloud/compute/region_operations/v1/region_operations_connection.h +++ b/google/cloud/compute/region_operations/v1/region_operations_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/compute/region_operations/v1/internal/region_operations_retry_traits.h" #include "google/cloud/compute/region_operations/v1/region_operations_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_rest_connection_impl.cc b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_rest_connection_impl.cc index 9a09448154ac6..8abb88eff3872 100644 --- a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_rest_connection_impl.cc +++ b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_rest_connection_impl.cc @@ -109,7 +109,7 @@ RegionSecurityPoliciesRestConnectionImpl::AddRule( StatusOr RegionSecurityPoliciesRestConnectionImpl::AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: AddRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -126,7 +126,7 @@ RegionSecurityPoliciesRestConnectionImpl::AddRule( future> RegionSecurityPoliciesRestConnectionImpl::AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -242,7 +242,7 @@ RegionSecurityPoliciesRestConnectionImpl::DeleteSecurityPolicy( StatusOr RegionSecurityPoliciesRestConnectionImpl::DeleteSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: DeleteSecurityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -259,7 +259,7 @@ RegionSecurityPoliciesRestConnectionImpl::DeleteSecurityPolicy( future> RegionSecurityPoliciesRestConnectionImpl::DeleteSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -407,7 +407,7 @@ RegionSecurityPoliciesRestConnectionImpl::InsertSecurityPolicy( StatusOr RegionSecurityPoliciesRestConnectionImpl::InsertSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: InsertSecurityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -424,7 +424,7 @@ RegionSecurityPoliciesRestConnectionImpl::InsertSecurityPolicy( future> RegionSecurityPoliciesRestConnectionImpl::InsertSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -580,7 +580,7 @@ RegionSecurityPoliciesRestConnectionImpl::PatchSecurityPolicy( StatusOr RegionSecurityPoliciesRestConnectionImpl::PatchSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: PatchSecurityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -597,7 +597,7 @@ RegionSecurityPoliciesRestConnectionImpl::PatchSecurityPolicy( future> RegionSecurityPoliciesRestConnectionImpl::PatchSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -713,7 +713,7 @@ RegionSecurityPoliciesRestConnectionImpl::PatchRule( StatusOr RegionSecurityPoliciesRestConnectionImpl::PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: PatchRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -730,7 +730,7 @@ RegionSecurityPoliciesRestConnectionImpl::PatchRule( future> RegionSecurityPoliciesRestConnectionImpl::PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -846,7 +846,7 @@ RegionSecurityPoliciesRestConnectionImpl::RemoveRule( StatusOr RegionSecurityPoliciesRestConnectionImpl::RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: RemoveRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -863,7 +863,7 @@ RegionSecurityPoliciesRestConnectionImpl::RemoveRule( future> RegionSecurityPoliciesRestConnectionImpl::RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_rest_connection_impl.h b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_rest_connection_impl.h index 2feb35689a9ed..2b1ce1ac22846 100644 --- a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_rest_connection_impl.h +++ b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_rest_connection_impl.h @@ -59,12 +59,12 @@ class RegionSecurityPoliciesRestConnectionImpl AddRuleRequest const& request) override; StatusOr AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: AddRuleRequest const& request) override; future> AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -73,13 +73,13 @@ class RegionSecurityPoliciesRestConnectionImpl DeleteSecurityPolicyRequest const& request) override; StatusOr DeleteSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: DeleteSecurityPolicyRequest const& request) override; future> DeleteSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetSecurityPolicy( @@ -96,13 +96,13 @@ class RegionSecurityPoliciesRestConnectionImpl InsertSecurityPolicyRequest const& request) override; StatusOr InsertSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: InsertSecurityPolicyRequest const& request) override; future> InsertSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -116,13 +116,13 @@ class RegionSecurityPoliciesRestConnectionImpl PatchSecurityPolicyRequest const& request) override; StatusOr PatchSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: PatchSecurityPolicyRequest const& request) override; future> PatchSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> PatchRule( @@ -130,12 +130,12 @@ class RegionSecurityPoliciesRestConnectionImpl PatchRuleRequest const& request) override; StatusOr PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: PatchRuleRequest const& request) override; future> PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> RemoveRule( @@ -143,12 +143,12 @@ class RegionSecurityPoliciesRestConnectionImpl RemoveRuleRequest const& request) override; StatusOr RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: RemoveRuleRequest const& request) override; future> RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.cc b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.cc index 7a4ce7a5bdbfe..3988592a56637 100644 --- a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.cc +++ b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.cc @@ -56,7 +56,7 @@ RegionSecurityPoliciesTracingConnection::AddRule( auto span = internal::MakeSpan( "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" "AddRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -95,7 +95,7 @@ RegionSecurityPoliciesTracingConnection::DeleteSecurityPolicy( auto span = internal::MakeSpan( "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" "DeleteSecurityPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteSecurityPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -156,7 +156,7 @@ RegionSecurityPoliciesTracingConnection::InsertSecurityPolicy( auto span = internal::MakeSpan( "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" "InsertSecurityPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertSecurityPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -209,7 +209,7 @@ RegionSecurityPoliciesTracingConnection::PatchSecurityPolicy( auto span = internal::MakeSpan( "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" "PatchSecurityPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchSecurityPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -247,7 +247,7 @@ RegionSecurityPoliciesTracingConnection::PatchRule( auto span = internal::MakeSpan( "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" "PatchRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -285,7 +285,7 @@ RegionSecurityPoliciesTracingConnection::RemoveRule( auto span = internal::MakeSpan( "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" "RemoveRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RemoveRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_security_policies/v1/region_security_policies_connection.cc b/google/cloud/compute/region_security_policies/v1/region_security_policies_connection.cc index 96eb37ee044dd..de5d0638f78a5 100644 --- a/google/cloud/compute/region_security_policies/v1/region_security_policies_connection.cc +++ b/google/cloud/compute/region_security_policies/v1/region_security_policies_connection.cc @@ -48,7 +48,7 @@ RegionSecurityPoliciesConnection::AddRule( StatusOr RegionSecurityPoliciesConnection::AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: AddRuleRequest const&) { return StatusOr( @@ -57,8 +57,7 @@ RegionSecurityPoliciesConnection::AddRule( future> RegionSecurityPoliciesConnection::AddRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -75,7 +74,7 @@ RegionSecurityPoliciesConnection::DeleteSecurityPolicy( StatusOr RegionSecurityPoliciesConnection::DeleteSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: DeleteSecurityPolicyRequest const&) { return StatusOr( @@ -84,8 +83,7 @@ RegionSecurityPoliciesConnection::DeleteSecurityPolicy( future> RegionSecurityPoliciesConnection::DeleteSecurityPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -116,7 +114,7 @@ RegionSecurityPoliciesConnection::InsertSecurityPolicy( StatusOr RegionSecurityPoliciesConnection::InsertSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: InsertSecurityPolicyRequest const&) { return StatusOr( @@ -125,8 +123,7 @@ RegionSecurityPoliciesConnection::InsertSecurityPolicy( future> RegionSecurityPoliciesConnection::InsertSecurityPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -151,7 +148,7 @@ RegionSecurityPoliciesConnection::PatchSecurityPolicy( StatusOr RegionSecurityPoliciesConnection::PatchSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: PatchSecurityPolicyRequest const&) { return StatusOr( @@ -160,8 +157,7 @@ RegionSecurityPoliciesConnection::PatchSecurityPolicy( future> RegionSecurityPoliciesConnection::PatchSecurityPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -178,7 +174,7 @@ RegionSecurityPoliciesConnection::PatchRule( StatusOr RegionSecurityPoliciesConnection::PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: PatchRuleRequest const&) { return StatusOr( @@ -187,8 +183,7 @@ RegionSecurityPoliciesConnection::PatchRule( future> RegionSecurityPoliciesConnection::PatchRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -205,7 +200,7 @@ RegionSecurityPoliciesConnection::RemoveRule( StatusOr RegionSecurityPoliciesConnection::RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: RemoveRuleRequest const&) { return StatusOr( @@ -214,8 +209,7 @@ RegionSecurityPoliciesConnection::RemoveRule( future> RegionSecurityPoliciesConnection::RemoveRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_security_policies/v1/region_security_policies_connection.h b/google/cloud/compute/region_security_policies/v1/region_security_policies_connection.h index 901eabde1f72f..0a59382b6700b 100644 --- a/google/cloud/compute/region_security_policies/v1/region_security_policies_connection.h +++ b/google/cloud/compute/region_security_policies/v1/region_security_policies_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/region_security_policies/v1/internal/region_security_policies_retry_traits.h" #include "google/cloud/compute/region_security_policies/v1/region_security_policies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -201,12 +201,12 @@ class RegionSecurityPoliciesConnection { AddRuleRequest const& request); virtual StatusOr AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: AddRuleRequest const& request); virtual future> AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -214,14 +214,13 @@ class RegionSecurityPoliciesConnection { v1::DeleteSecurityPolicyRequest const& request); virtual StatusOr - DeleteSecurityPolicy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteSecurityPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies:: v1::DeleteSecurityPolicyRequest const& request); virtual future> DeleteSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -237,14 +236,13 @@ class RegionSecurityPoliciesConnection { v1::InsertSecurityPolicyRequest const& request); virtual StatusOr - InsertSecurityPolicy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertSecurityPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies:: v1::InsertSecurityPolicyRequest const& request); virtual future> InsertSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -257,13 +255,13 @@ class RegionSecurityPoliciesConnection { v1::PatchSecurityPolicyRequest const& request); virtual StatusOr - PatchSecurityPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + PatchSecurityPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies:: v1::PatchSecurityPolicyRequest const& request); virtual future> PatchSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -271,12 +269,12 @@ class RegionSecurityPoliciesConnection { PatchRuleRequest const& request); virtual StatusOr PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: PatchRuleRequest const& request); virtual future> - PatchRule(google::cloud::ExperimentalTag, + PatchRule(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -284,12 +282,12 @@ class RegionSecurityPoliciesConnection { RemoveRuleRequest const& request); virtual StatusOr RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: RemoveRuleRequest const& request); virtual future> - RemoveRule(google::cloud::ExperimentalTag, + RemoveRule(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_rest_connection_impl.cc b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_rest_connection_impl.cc index c7dbfed0fa930..57dcae1cdb2ac 100644 --- a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_rest_connection_impl.cc +++ b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_rest_connection_impl.cc @@ -109,7 +109,7 @@ RegionSslCertificatesRestConnectionImpl::DeleteSslCertificate( StatusOr RegionSslCertificatesRestConnectionImpl::DeleteSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_certificates::v1:: DeleteSslCertificateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -126,7 +126,7 @@ RegionSslCertificatesRestConnectionImpl::DeleteSslCertificate( future> RegionSslCertificatesRestConnectionImpl::DeleteSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -258,7 +258,7 @@ RegionSslCertificatesRestConnectionImpl::InsertSslCertificate( StatusOr RegionSslCertificatesRestConnectionImpl::InsertSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_certificates::v1:: InsertSslCertificateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -275,7 +275,7 @@ RegionSslCertificatesRestConnectionImpl::InsertSslCertificate( future> RegionSslCertificatesRestConnectionImpl::InsertSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_rest_connection_impl.h b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_rest_connection_impl.h index 9e7bfdcaa489b..985a05df8aa2b 100644 --- a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_rest_connection_impl.h +++ b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_rest_connection_impl.h @@ -60,13 +60,13 @@ class RegionSslCertificatesRestConnectionImpl DeleteSslCertificateRequest const& request) override; StatusOr DeleteSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_certificates::v1:: DeleteSslCertificateRequest const& request) override; future> DeleteSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetSslCertificate( @@ -79,13 +79,13 @@ class RegionSslCertificatesRestConnectionImpl InsertSslCertificateRequest const& request) override; StatusOr InsertSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_certificates::v1:: InsertSslCertificateRequest const& request) override; future> InsertSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.cc b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.cc index d497ec7af331f..156e21c5c9fe4 100644 --- a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.cc +++ b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.cc @@ -56,7 +56,7 @@ RegionSslCertificatesTracingConnection::DeleteSslCertificate( auto span = internal::MakeSpan( "compute_region_ssl_certificates_v1::RegionSslCertificatesConnection::" "DeleteSslCertificate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteSslCertificate( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -106,7 +106,7 @@ RegionSslCertificatesTracingConnection::InsertSslCertificate( auto span = internal::MakeSpan( "compute_region_ssl_certificates_v1::RegionSslCertificatesConnection::" "InsertSslCertificate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertSslCertificate( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection.cc b/google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection.cc index e15dc7aa5afc6..4a6d5258cf657 100644 --- a/google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection.cc +++ b/google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection.cc @@ -48,7 +48,7 @@ RegionSslCertificatesConnection::DeleteSslCertificate( StatusOr RegionSslCertificatesConnection::DeleteSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_certificates::v1:: DeleteSslCertificateRequest const&) { return StatusOr( @@ -57,8 +57,7 @@ RegionSslCertificatesConnection::DeleteSslCertificate( future> RegionSslCertificatesConnection::DeleteSslCertificate( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -82,7 +81,7 @@ RegionSslCertificatesConnection::InsertSslCertificate( StatusOr RegionSslCertificatesConnection::InsertSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_certificates::v1:: InsertSslCertificateRequest const&) { return StatusOr( @@ -91,8 +90,7 @@ RegionSslCertificatesConnection::InsertSslCertificate( future> RegionSslCertificatesConnection::InsertSslCertificate( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection.h b/google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection.h index c183f2c7e9ed4..9bf9d42545fac 100644 --- a/google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection.h +++ b/google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_retry_traits.h" #include "google/cloud/compute/region_ssl_certificates/v1/region_ssl_certificates_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -201,14 +201,13 @@ class RegionSslCertificatesConnection { v1::DeleteSslCertificateRequest const& request); virtual StatusOr - DeleteSslCertificate(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteSslCertificate(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_certificates:: v1::DeleteSslCertificateRequest const& request); virtual future> DeleteSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -220,14 +219,13 @@ class RegionSslCertificatesConnection { v1::InsertSslCertificateRequest const& request); virtual StatusOr - InsertSslCertificate(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertSslCertificate(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_certificates:: v1::InsertSslCertificateRequest const& request); virtual future> InsertSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange diff --git a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_rest_connection_impl.cc b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_rest_connection_impl.cc index 27f27f616161e..06db056f84f64 100644 --- a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_rest_connection_impl.cc +++ b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_rest_connection_impl.cc @@ -107,7 +107,7 @@ RegionSslPoliciesRestConnectionImpl::DeleteSslPolicy( StatusOr RegionSslPoliciesRestConnectionImpl::DeleteSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: DeleteSslPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -124,7 +124,7 @@ RegionSslPoliciesRestConnectionImpl::DeleteSslPolicy( future> RegionSslPoliciesRestConnectionImpl::DeleteSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -256,7 +256,7 @@ RegionSslPoliciesRestConnectionImpl::InsertSslPolicy( StatusOr RegionSslPoliciesRestConnectionImpl::InsertSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: InsertSslPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -273,7 +273,7 @@ RegionSslPoliciesRestConnectionImpl::InsertSslPolicy( future> RegionSslPoliciesRestConnectionImpl::InsertSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -446,7 +446,7 @@ RegionSslPoliciesRestConnectionImpl::PatchSslPolicy( StatusOr RegionSslPoliciesRestConnectionImpl::PatchSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: PatchSslPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -463,7 +463,7 @@ RegionSslPoliciesRestConnectionImpl::PatchSslPolicy( future> RegionSslPoliciesRestConnectionImpl::PatchSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_rest_connection_impl.h b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_rest_connection_impl.h index 2e1c12e72ac47..56c67537ce522 100644 --- a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_rest_connection_impl.h +++ b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_rest_connection_impl.h @@ -57,12 +57,12 @@ class RegionSslPoliciesRestConnectionImpl DeleteSslPolicyRequest const& request) override; StatusOr DeleteSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: DeleteSslPolicyRequest const& request) override; future> DeleteSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetSslPolicy( @@ -74,12 +74,12 @@ class RegionSslPoliciesRestConnectionImpl InsertSslPolicyRequest const& request) override; StatusOr InsertSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: InsertSslPolicyRequest const& request) override; future> InsertSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListRegionSslPolicies( @@ -97,12 +97,12 @@ class RegionSslPoliciesRestConnectionImpl PatchSslPolicyRequest const& request) override; StatusOr PatchSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: PatchSslPolicyRequest const& request) override; future> PatchSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.cc b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.cc index 59dcc40df39c4..a3e9e5595c08e 100644 --- a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.cc +++ b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.cc @@ -53,7 +53,7 @@ RegionSslPoliciesTracingConnection::DeleteSslPolicy( auto span = internal::MakeSpan( "compute_region_ssl_policies_v1::RegionSslPoliciesConnection::" "DeleteSslPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSslPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -102,7 +102,7 @@ RegionSslPoliciesTracingConnection::InsertSslPolicy( auto span = internal::MakeSpan( "compute_region_ssl_policies_v1::RegionSslPoliciesConnection::" "InsertSslPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertSslPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -166,7 +166,7 @@ RegionSslPoliciesTracingConnection::PatchSslPolicy( auto span = internal::MakeSpan( "compute_region_ssl_policies_v1::RegionSslPoliciesConnection::" "PatchSslPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchSslPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection.cc b/google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection.cc index 91c20afa8e515..b117c9d38018f 100644 --- a/google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection.cc +++ b/google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection.cc @@ -47,7 +47,7 @@ RegionSslPoliciesConnection::DeleteSslPolicy( StatusOr RegionSslPoliciesConnection::DeleteSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: DeleteSslPolicyRequest const&) { return StatusOr( @@ -56,8 +56,7 @@ RegionSslPoliciesConnection::DeleteSslPolicy( future> RegionSslPoliciesConnection::DeleteSslPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -81,7 +80,7 @@ RegionSslPoliciesConnection::InsertSslPolicy( StatusOr RegionSslPoliciesConnection::InsertSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: InsertSslPolicyRequest const&) { return StatusOr( @@ -90,8 +89,7 @@ RegionSslPoliciesConnection::InsertSslPolicy( future> RegionSslPoliciesConnection::InsertSslPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -124,7 +122,7 @@ RegionSslPoliciesConnection::PatchSslPolicy( StatusOr RegionSslPoliciesConnection::PatchSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: PatchSslPolicyRequest const&) { return StatusOr( @@ -133,8 +131,7 @@ RegionSslPoliciesConnection::PatchSslPolicy( future> RegionSslPoliciesConnection::PatchSslPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection.h b/google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection.h index 19584144aa0ec..ba94e27b0be6f 100644 --- a/google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection.h +++ b/google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_retry_traits.h" #include "google/cloud/compute/region_ssl_policies/v1/region_ssl_policies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,12 +193,12 @@ class RegionSslPoliciesConnection { DeleteSslPolicyRequest const& request); virtual StatusOr DeleteSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: DeleteSslPolicyRequest const& request); virtual future> - DeleteSslPolicy(google::cloud::ExperimentalTag, + DeleteSslPolicy(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetSslPolicy( @@ -210,12 +210,12 @@ class RegionSslPoliciesConnection { InsertSslPolicyRequest const& request); virtual StatusOr InsertSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: InsertSslPolicyRequest const& request); virtual future> - InsertSslPolicy(google::cloud::ExperimentalTag, + InsertSslPolicy(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -232,12 +232,12 @@ class RegionSslPoliciesConnection { PatchSslPolicyRequest const& request); virtual StatusOr PatchSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: PatchSslPolicyRequest const& request); virtual future> - PatchSslPolicy(google::cloud::ExperimentalTag, + PatchSslPolicy(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_rest_connection_impl.cc b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_rest_connection_impl.cc index 7130b4dd4761e..81b9389e281fc 100644 --- a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_rest_connection_impl.cc +++ b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_rest_connection_impl.cc @@ -109,7 +109,7 @@ RegionTargetHttpProxiesRestConnectionImpl::DeleteTargetHttpProxy( StatusOr RegionTargetHttpProxiesRestConnectionImpl::DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -126,7 +126,7 @@ RegionTargetHttpProxiesRestConnectionImpl::DeleteTargetHttpProxy( future> RegionTargetHttpProxiesRestConnectionImpl::DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -258,7 +258,7 @@ RegionTargetHttpProxiesRestConnectionImpl::InsertTargetHttpProxy( StatusOr RegionTargetHttpProxiesRestConnectionImpl::InsertTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -275,7 +275,7 @@ RegionTargetHttpProxiesRestConnectionImpl::InsertTargetHttpProxy( future> RegionTargetHttpProxiesRestConnectionImpl::InsertTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -431,7 +431,7 @@ RegionTargetHttpProxiesRestConnectionImpl::SetUrlMap( StatusOr RegionTargetHttpProxiesRestConnectionImpl::SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: SetUrlMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -448,7 +448,7 @@ RegionTargetHttpProxiesRestConnectionImpl::SetUrlMap( future> RegionTargetHttpProxiesRestConnectionImpl::SetUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_rest_connection_impl.h b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_rest_connection_impl.h index 1c00e468cd692..c1faf4256ca3d 100644 --- a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_rest_connection_impl.h +++ b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_rest_connection_impl.h @@ -60,13 +60,13 @@ class RegionTargetHttpProxiesRestConnectionImpl DeleteTargetHttpProxyRequest const& request) override; StatusOr DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request) override; future> DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetTargetHttpProxy( @@ -79,13 +79,13 @@ class RegionTargetHttpProxiesRestConnectionImpl InsertTargetHttpProxyRequest const& request) override; StatusOr InsertTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request) override; future> InsertTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -98,12 +98,12 @@ class RegionTargetHttpProxiesRestConnectionImpl SetUrlMapRequest const& request) override; StatusOr SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: SetUrlMapRequest const& request) override; future> SetUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.cc b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.cc index b24e936880d51..1ef419529de66 100644 --- a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.cc +++ b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.cc @@ -57,7 +57,7 @@ RegionTargetHttpProxiesTracingConnection::DeleteTargetHttpProxy( auto span = internal::MakeSpan( "compute_region_target_http_proxies_v1::" "RegionTargetHttpProxiesConnection::DeleteTargetHttpProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteTargetHttpProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -107,7 +107,7 @@ RegionTargetHttpProxiesTracingConnection::InsertTargetHttpProxy( auto span = internal::MakeSpan( "compute_region_target_http_proxies_v1::" "RegionTargetHttpProxiesConnection::InsertTargetHttpProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertTargetHttpProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -159,7 +159,7 @@ RegionTargetHttpProxiesTracingConnection::SetUrlMap( auto span = internal::MakeSpan( "compute_region_target_http_proxies_v1::" "RegionTargetHttpProxiesConnection::SetUrlMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetUrlMap(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection.cc b/google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection.cc index b5c3fbd18c951..06314a2638a5a 100644 --- a/google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection.cc +++ b/google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection.cc @@ -49,7 +49,7 @@ RegionTargetHttpProxiesConnection::DeleteTargetHttpProxy( StatusOr RegionTargetHttpProxiesConnection::DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: DeleteTargetHttpProxyRequest const&) { return StatusOr( @@ -58,8 +58,7 @@ RegionTargetHttpProxiesConnection::DeleteTargetHttpProxy( future> RegionTargetHttpProxiesConnection::DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -83,7 +82,7 @@ RegionTargetHttpProxiesConnection::InsertTargetHttpProxy( StatusOr RegionTargetHttpProxiesConnection::InsertTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: InsertTargetHttpProxyRequest const&) { return StatusOr( @@ -92,8 +91,7 @@ RegionTargetHttpProxiesConnection::InsertTargetHttpProxy( future> RegionTargetHttpProxiesConnection::InsertTargetHttpProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +116,7 @@ RegionTargetHttpProxiesConnection::SetUrlMap( StatusOr RegionTargetHttpProxiesConnection::SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: SetUrlMapRequest const&) { return StatusOr( @@ -127,8 +125,7 @@ RegionTargetHttpProxiesConnection::SetUrlMap( future> RegionTargetHttpProxiesConnection::SetUrlMap( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection.h b/google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection.h index 6b378cc723d6b..b8742c7dd18d3 100644 --- a/google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection.h +++ b/google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_retry_traits.h" #include "google/cloud/compute/region_target_http_proxies/v1/region_target_http_proxies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -204,13 +204,13 @@ class RegionTargetHttpProxiesConnection { virtual StatusOr DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request); virtual future> DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -224,13 +224,13 @@ class RegionTargetHttpProxiesConnection { virtual StatusOr InsertTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request); virtual future> InsertTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -243,12 +243,12 @@ class RegionTargetHttpProxiesConnection { SetUrlMapRequest const& request); virtual StatusOr SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: SetUrlMapRequest const& request); virtual future> - SetUrlMap(google::cloud::ExperimentalTag, + SetUrlMap(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_rest_connection_impl.cc b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_rest_connection_impl.cc index 4567a1a4894cc..8dec31e06aebe 100644 --- a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_rest_connection_impl.cc +++ b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_rest_connection_impl.cc @@ -109,7 +109,7 @@ RegionTargetHttpsProxiesRestConnectionImpl::DeleteTargetHttpsProxy( StatusOr RegionTargetHttpsProxiesRestConnectionImpl::DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -126,7 +126,7 @@ RegionTargetHttpsProxiesRestConnectionImpl::DeleteTargetHttpsProxy( future> RegionTargetHttpsProxiesRestConnectionImpl::DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -258,7 +258,7 @@ RegionTargetHttpsProxiesRestConnectionImpl::InsertTargetHttpsProxy( StatusOr RegionTargetHttpsProxiesRestConnectionImpl::InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -275,7 +275,7 @@ RegionTargetHttpsProxiesRestConnectionImpl::InsertTargetHttpsProxy( future> RegionTargetHttpsProxiesRestConnectionImpl::InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -431,7 +431,7 @@ RegionTargetHttpsProxiesRestConnectionImpl::PatchTargetHttpsProxy( StatusOr RegionTargetHttpsProxiesRestConnectionImpl::PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -448,7 +448,7 @@ RegionTargetHttpsProxiesRestConnectionImpl::PatchTargetHttpsProxy( future> RegionTargetHttpsProxiesRestConnectionImpl::PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -564,7 +564,7 @@ RegionTargetHttpsProxiesRestConnectionImpl::SetSslCertificates( StatusOr RegionTargetHttpsProxiesRestConnectionImpl::SetSslCertificates( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: SetSslCertificatesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -581,7 +581,7 @@ RegionTargetHttpsProxiesRestConnectionImpl::SetSslCertificates( future> RegionTargetHttpsProxiesRestConnectionImpl::SetSslCertificates( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -697,7 +697,7 @@ RegionTargetHttpsProxiesRestConnectionImpl::SetUrlMap( StatusOr RegionTargetHttpsProxiesRestConnectionImpl::SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: SetUrlMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -714,7 +714,7 @@ RegionTargetHttpsProxiesRestConnectionImpl::SetUrlMap( future> RegionTargetHttpsProxiesRestConnectionImpl::SetUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_rest_connection_impl.h b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_rest_connection_impl.h index efbbdaa03d4d9..1ac964c06775c 100644 --- a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_rest_connection_impl.h +++ b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_rest_connection_impl.h @@ -60,13 +60,13 @@ class RegionTargetHttpsProxiesRestConnectionImpl DeleteTargetHttpsProxyRequest const& request) override; StatusOr DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request) override; future> DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -80,13 +80,13 @@ class RegionTargetHttpsProxiesRestConnectionImpl InsertTargetHttpsProxyRequest const& request) override; StatusOr InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request) override; future> InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -100,13 +100,13 @@ class RegionTargetHttpsProxiesRestConnectionImpl PatchTargetHttpsProxyRequest const& request) override; StatusOr PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request) override; future> PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -114,13 +114,13 @@ class RegionTargetHttpsProxiesRestConnectionImpl v1::SetSslCertificatesRequest const& request) override; StatusOr SetSslCertificates( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: SetSslCertificatesRequest const& request) override; future> SetSslCertificates( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetUrlMap( @@ -128,12 +128,12 @@ class RegionTargetHttpsProxiesRestConnectionImpl SetUrlMapRequest const& request) override; StatusOr SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: SetUrlMapRequest const& request) override; future> SetUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.cc b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.cc index 751c84fb83cfa..27ef57cdd32f1 100644 --- a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.cc +++ b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.cc @@ -57,7 +57,7 @@ RegionTargetHttpsProxiesTracingConnection::DeleteTargetHttpsProxy( auto span = internal::MakeSpan( "compute_region_target_https_proxies_v1::" "RegionTargetHttpsProxiesConnection::DeleteTargetHttpsProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteTargetHttpsProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -107,7 +107,7 @@ RegionTargetHttpsProxiesTracingConnection::InsertTargetHttpsProxy( auto span = internal::MakeSpan( "compute_region_target_https_proxies_v1::" "RegionTargetHttpsProxiesConnection::InsertTargetHttpsProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertTargetHttpsProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -160,7 +160,7 @@ RegionTargetHttpsProxiesTracingConnection::PatchTargetHttpsProxy( auto span = internal::MakeSpan( "compute_region_target_https_proxies_v1::" "RegionTargetHttpsProxiesConnection::PatchTargetHttpsProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchTargetHttpsProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -199,7 +199,7 @@ RegionTargetHttpsProxiesTracingConnection::SetSslCertificates( auto span = internal::MakeSpan( "compute_region_target_https_proxies_v1::" "RegionTargetHttpsProxiesConnection::SetSslCertificates"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetSslCertificates(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -237,7 +237,7 @@ RegionTargetHttpsProxiesTracingConnection::SetUrlMap( auto span = internal::MakeSpan( "compute_region_target_https_proxies_v1::" "RegionTargetHttpsProxiesConnection::SetUrlMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetUrlMap(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection.cc b/google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection.cc index a53d15a7769a3..6863d96e93160 100644 --- a/google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection.cc +++ b/google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection.cc @@ -49,7 +49,7 @@ RegionTargetHttpsProxiesConnection::DeleteTargetHttpsProxy( StatusOr RegionTargetHttpsProxiesConnection::DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const&) { return StatusOr( @@ -58,8 +58,7 @@ RegionTargetHttpsProxiesConnection::DeleteTargetHttpsProxy( future> RegionTargetHttpsProxiesConnection::DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -83,7 +82,7 @@ RegionTargetHttpsProxiesConnection::InsertTargetHttpsProxy( StatusOr RegionTargetHttpsProxiesConnection::InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: InsertTargetHttpsProxyRequest const&) { return StatusOr( @@ -92,8 +91,7 @@ RegionTargetHttpsProxiesConnection::InsertTargetHttpsProxy( future> RegionTargetHttpsProxiesConnection::InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +116,7 @@ RegionTargetHttpsProxiesConnection::PatchTargetHttpsProxy( StatusOr RegionTargetHttpsProxiesConnection::PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: PatchTargetHttpsProxyRequest const&) { return StatusOr( @@ -127,8 +125,7 @@ RegionTargetHttpsProxiesConnection::PatchTargetHttpsProxy( future> RegionTargetHttpsProxiesConnection::PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -145,7 +142,7 @@ RegionTargetHttpsProxiesConnection::SetSslCertificates( StatusOr RegionTargetHttpsProxiesConnection::SetSslCertificates( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: SetSslCertificatesRequest const&) { return StatusOr( @@ -154,8 +151,7 @@ RegionTargetHttpsProxiesConnection::SetSslCertificates( future> RegionTargetHttpsProxiesConnection::SetSslCertificates( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -172,7 +168,7 @@ RegionTargetHttpsProxiesConnection::SetUrlMap( StatusOr RegionTargetHttpsProxiesConnection::SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: SetUrlMapRequest const&) { return StatusOr( @@ -181,8 +177,7 @@ RegionTargetHttpsProxiesConnection::SetUrlMap( future> RegionTargetHttpsProxiesConnection::SetUrlMap( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection.h b/google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection.h index 9c7997aa8b417..aa06562acc74c 100644 --- a/google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection.h +++ b/google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_retry_traits.h" #include "google/cloud/compute/region_target_https_proxies/v1/region_target_https_proxies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -210,13 +210,13 @@ class RegionTargetHttpsProxiesConnection { virtual StatusOr DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request); virtual future> DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -230,13 +230,13 @@ class RegionTargetHttpsProxiesConnection { virtual StatusOr InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request); virtual future> InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -251,13 +251,13 @@ class RegionTargetHttpsProxiesConnection { virtual StatusOr PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request); virtual future> PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -265,13 +265,13 @@ class RegionTargetHttpsProxiesConnection { v1::SetSslCertificatesRequest const& request); virtual StatusOr - SetSslCertificates(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetSslCertificates(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies:: v1::SetSslCertificatesRequest const& request); virtual future> SetSslCertificates( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -279,12 +279,12 @@ class RegionTargetHttpsProxiesConnection { SetUrlMapRequest const& request); virtual StatusOr SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: SetUrlMapRequest const& request); virtual future> - SetUrlMap(google::cloud::ExperimentalTag, + SetUrlMap(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_rest_connection_impl.cc b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_rest_connection_impl.cc index dd965483303dd..1b47ca24df981 100644 --- a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_rest_connection_impl.cc +++ b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_rest_connection_impl.cc @@ -109,7 +109,7 @@ RegionTargetTcpProxiesRestConnectionImpl::DeleteTargetTcpProxy( StatusOr RegionTargetTcpProxiesRestConnectionImpl::DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -126,7 +126,7 @@ RegionTargetTcpProxiesRestConnectionImpl::DeleteTargetTcpProxy( future> RegionTargetTcpProxiesRestConnectionImpl::DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -258,7 +258,7 @@ RegionTargetTcpProxiesRestConnectionImpl::InsertTargetTcpProxy( StatusOr RegionTargetTcpProxiesRestConnectionImpl::InsertTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -275,7 +275,7 @@ RegionTargetTcpProxiesRestConnectionImpl::InsertTargetTcpProxy( future> RegionTargetTcpProxiesRestConnectionImpl::InsertTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_rest_connection_impl.h b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_rest_connection_impl.h index 6661326c6569d..1c4611cb1df98 100644 --- a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_rest_connection_impl.h +++ b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_rest_connection_impl.h @@ -60,13 +60,13 @@ class RegionTargetTcpProxiesRestConnectionImpl DeleteTargetTcpProxyRequest const& request) override; StatusOr DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const& request) override; future> DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetTargetTcpProxy( @@ -79,13 +79,13 @@ class RegionTargetTcpProxiesRestConnectionImpl InsertTargetTcpProxyRequest const& request) override; StatusOr InsertTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const& request) override; future> InsertTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.cc b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.cc index 5d34cd42de03f..90bc579101ceb 100644 --- a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.cc +++ b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.cc @@ -57,7 +57,7 @@ RegionTargetTcpProxiesTracingConnection::DeleteTargetTcpProxy( auto span = internal::MakeSpan( "compute_region_target_tcp_proxies_v1::RegionTargetTcpProxiesConnection::" "DeleteTargetTcpProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteTargetTcpProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -107,7 +107,7 @@ RegionTargetTcpProxiesTracingConnection::InsertTargetTcpProxy( auto span = internal::MakeSpan( "compute_region_target_tcp_proxies_v1::RegionTargetTcpProxiesConnection::" "InsertTargetTcpProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertTargetTcpProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection.cc b/google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection.cc index a9c7cd4276bd9..d3277ac7cec78 100644 --- a/google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection.cc +++ b/google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection.cc @@ -48,7 +48,7 @@ RegionTargetTcpProxiesConnection::DeleteTargetTcpProxy( StatusOr RegionTargetTcpProxiesConnection::DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const&) { return StatusOr( @@ -57,8 +57,7 @@ RegionTargetTcpProxiesConnection::DeleteTargetTcpProxy( future> RegionTargetTcpProxiesConnection::DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -82,7 +81,7 @@ RegionTargetTcpProxiesConnection::InsertTargetTcpProxy( StatusOr RegionTargetTcpProxiesConnection::InsertTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const&) { return StatusOr( @@ -91,8 +90,7 @@ RegionTargetTcpProxiesConnection::InsertTargetTcpProxy( future> RegionTargetTcpProxiesConnection::InsertTargetTcpProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection.h b/google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection.h index a22194fac45f8..e6eecc3281ec7 100644 --- a/google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection.h +++ b/google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_retry_traits.h" #include "google/cloud/compute/region_target_tcp_proxies/v1/region_target_tcp_proxies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -201,14 +201,13 @@ class RegionTargetTcpProxiesConnection { v1::DeleteTargetTcpProxyRequest const& request); virtual StatusOr - DeleteTargetTcpProxy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteTargetTcpProxy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_tcp_proxies:: v1::DeleteTargetTcpProxyRequest const& request); virtual future> DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -220,14 +219,13 @@ class RegionTargetTcpProxiesConnection { v1::InsertTargetTcpProxyRequest const& request); virtual StatusOr - InsertTargetTcpProxy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertTargetTcpProxy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_tcp_proxies:: v1::InsertTargetTcpProxyRequest const& request); virtual future> InsertTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange diff --git a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_rest_connection_impl.cc b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_rest_connection_impl.cc index 15dff2b109b97..ddf667b86df01 100644 --- a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_rest_connection_impl.cc +++ b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_rest_connection_impl.cc @@ -106,7 +106,7 @@ RegionUrlMapsRestConnectionImpl::DeleteUrlMap( StatusOr RegionUrlMapsRestConnectionImpl::DeleteUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1::DeleteUrlMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -123,7 +123,7 @@ RegionUrlMapsRestConnectionImpl::DeleteUrlMap( future> RegionUrlMapsRestConnectionImpl::DeleteUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -255,7 +255,7 @@ RegionUrlMapsRestConnectionImpl::InsertUrlMap( StatusOr RegionUrlMapsRestConnectionImpl::InsertUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1::InsertUrlMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -272,7 +272,7 @@ RegionUrlMapsRestConnectionImpl::InsertUrlMap( future> RegionUrlMapsRestConnectionImpl::InsertUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -425,7 +425,7 @@ RegionUrlMapsRestConnectionImpl::PatchUrlMap( StatusOr RegionUrlMapsRestConnectionImpl::PatchUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1::PatchUrlMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -442,7 +442,7 @@ RegionUrlMapsRestConnectionImpl::PatchUrlMap( future> RegionUrlMapsRestConnectionImpl::PatchUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -558,7 +558,7 @@ RegionUrlMapsRestConnectionImpl::UpdateUrlMap( StatusOr RegionUrlMapsRestConnectionImpl::UpdateUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1::UpdateUrlMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -575,7 +575,7 @@ RegionUrlMapsRestConnectionImpl::UpdateUrlMap( future> RegionUrlMapsRestConnectionImpl::UpdateUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_rest_connection_impl.h b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_rest_connection_impl.h index 2502c402bc73e..275d557904650 100644 --- a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_rest_connection_impl.h +++ b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_rest_connection_impl.h @@ -57,12 +57,12 @@ class RegionUrlMapsRestConnectionImpl DeleteUrlMapRequest const& request) override; StatusOr DeleteUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: DeleteUrlMapRequest const& request) override; future> DeleteUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetUrlMap( @@ -74,12 +74,12 @@ class RegionUrlMapsRestConnectionImpl InsertUrlMapRequest const& request) override; StatusOr InsertUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: InsertUrlMapRequest const& request) override; future> InsertUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListRegionUrlMaps( @@ -91,12 +91,12 @@ class RegionUrlMapsRestConnectionImpl PatchUrlMapRequest const& request) override; StatusOr PatchUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: PatchUrlMapRequest const& request) override; future> PatchUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> UpdateUrlMap( @@ -104,12 +104,12 @@ class RegionUrlMapsRestConnectionImpl UpdateUrlMapRequest const& request) override; StatusOr UpdateUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: UpdateUrlMapRequest const& request) override; future> UpdateUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr Validate( diff --git a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.cc b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.cc index 9b94e15814661..9144e1b58dcc7 100644 --- a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.cc +++ b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.cc @@ -50,7 +50,7 @@ RegionUrlMapsTracingConnection::DeleteUrlMap( request) { auto span = internal::MakeSpan( "compute_region_url_maps_v1::RegionUrlMapsConnection::DeleteUrlMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteUrlMap(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -95,7 +95,7 @@ RegionUrlMapsTracingConnection::InsertUrlMap( request) { auto span = internal::MakeSpan( "compute_region_url_maps_v1::RegionUrlMapsConnection::InsertUrlMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertUrlMap(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -142,7 +142,7 @@ RegionUrlMapsTracingConnection::PatchUrlMap( request) { auto span = internal::MakeSpan( "compute_region_url_maps_v1::RegionUrlMapsConnection::PatchUrlMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchUrlMap(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -177,7 +177,7 @@ RegionUrlMapsTracingConnection::UpdateUrlMap( request) { auto span = internal::MakeSpan( "compute_region_url_maps_v1::RegionUrlMapsConnection::UpdateUrlMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateUrlMap(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/region_url_maps/v1/region_url_maps_connection.cc b/google/cloud/compute/region_url_maps/v1/region_url_maps_connection.cc index 1e2223cac9300..1059b5f58fd98 100644 --- a/google/cloud/compute/region_url_maps/v1/region_url_maps_connection.cc +++ b/google/cloud/compute/region_url_maps/v1/region_url_maps_connection.cc @@ -47,7 +47,7 @@ RegionUrlMapsConnection::DeleteUrlMap( StatusOr RegionUrlMapsConnection::DeleteUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: DeleteUrlMapRequest const&) { return StatusOr( @@ -56,8 +56,7 @@ RegionUrlMapsConnection::DeleteUrlMap( future> RegionUrlMapsConnection::DeleteUrlMap( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -80,7 +79,7 @@ RegionUrlMapsConnection::InsertUrlMap( StatusOr RegionUrlMapsConnection::InsertUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: InsertUrlMapRequest const&) { return StatusOr( @@ -89,8 +88,7 @@ RegionUrlMapsConnection::InsertUrlMap( future> RegionUrlMapsConnection::InsertUrlMap( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -115,7 +113,7 @@ RegionUrlMapsConnection::PatchUrlMap( StatusOr RegionUrlMapsConnection::PatchUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: PatchUrlMapRequest const&) { return StatusOr( @@ -124,8 +122,7 @@ RegionUrlMapsConnection::PatchUrlMap( future> RegionUrlMapsConnection::PatchUrlMap( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +139,7 @@ RegionUrlMapsConnection::UpdateUrlMap( StatusOr RegionUrlMapsConnection::UpdateUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: UpdateUrlMapRequest const&) { return StatusOr( @@ -151,8 +148,7 @@ RegionUrlMapsConnection::UpdateUrlMap( future> RegionUrlMapsConnection::UpdateUrlMap( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/region_url_maps/v1/region_url_maps_connection.h b/google/cloud/compute/region_url_maps/v1/region_url_maps_connection.h index 5c3d678157a36..2df8007dbb715 100644 --- a/google/cloud/compute/region_url_maps/v1/region_url_maps_connection.h +++ b/google/cloud/compute/region_url_maps/v1/region_url_maps_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/region_url_maps/v1/internal/region_url_maps_retry_traits.h" #include "google/cloud/compute/region_url_maps/v1/region_url_maps_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,12 +192,12 @@ class RegionUrlMapsConnection { DeleteUrlMapRequest const& request); virtual StatusOr DeleteUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: DeleteUrlMapRequest const& request); virtual future> - DeleteUrlMap(google::cloud::ExperimentalTag, + DeleteUrlMap(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetUrlMap( @@ -209,12 +209,12 @@ class RegionUrlMapsConnection { InsertUrlMapRequest const& request); virtual StatusOr InsertUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: InsertUrlMapRequest const& request); virtual future> - InsertUrlMap(google::cloud::ExperimentalTag, + InsertUrlMap(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -227,12 +227,12 @@ class RegionUrlMapsConnection { PatchUrlMapRequest const& request); virtual StatusOr PatchUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: PatchUrlMapRequest const& request); virtual future> - PatchUrlMap(google::cloud::ExperimentalTag, + PatchUrlMap(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -240,12 +240,12 @@ class RegionUrlMapsConnection { UpdateUrlMapRequest const& request); virtual StatusOr UpdateUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: UpdateUrlMapRequest const& request); virtual future> - UpdateUrlMap(google::cloud::ExperimentalTag, + UpdateUrlMap(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr diff --git a/google/cloud/compute/region_zones/v1/region_zones_connection.h b/google/cloud/compute/region_zones/v1/region_zones_connection.h index 3d493e1a3012a..b5d4de0a7afa6 100644 --- a/google/cloud/compute/region_zones/v1/region_zones_connection.h +++ b/google/cloud/compute/region_zones/v1/region_zones_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/compute/region_zones/v1/internal/region_zones_retry_traits.h" #include "google/cloud/compute/region_zones/v1/region_zones_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/compute/regions/v1/regions_connection.h b/google/cloud/compute/regions/v1/regions_connection.h index 0ba0c0e80d9d9..b1b2793b8ddfe 100644 --- a/google/cloud/compute/regions/v1/regions_connection.h +++ b/google/cloud/compute/regions/v1/regions_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/compute/regions/v1/internal/regions_retry_traits.h" #include "google/cloud/compute/regions/v1/regions_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/compute/reservations/v1/internal/reservations_rest_connection_impl.cc b/google/cloud/compute/reservations/v1/internal/reservations_rest_connection_impl.cc index da697767b3c7b..0c13089aac693 100644 --- a/google/cloud/compute/reservations/v1/internal/reservations_rest_connection_impl.cc +++ b/google/cloud/compute/reservations/v1/internal/reservations_rest_connection_impl.cc @@ -149,7 +149,7 @@ ReservationsRestConnectionImpl::DeleteReservation( StatusOr ReservationsRestConnectionImpl::DeleteReservation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: DeleteReservationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -166,7 +166,7 @@ ReservationsRestConnectionImpl::DeleteReservation( future> ReservationsRestConnectionImpl::DeleteReservation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -314,7 +314,7 @@ ReservationsRestConnectionImpl::InsertReservation( StatusOr ReservationsRestConnectionImpl::InsertReservation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: InsertReservationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -331,7 +331,7 @@ ReservationsRestConnectionImpl::InsertReservation( future> ReservationsRestConnectionImpl::InsertReservation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -485,7 +485,7 @@ ReservationsRestConnectionImpl::Resize( StatusOr ReservationsRestConnectionImpl::Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1::ResizeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -502,7 +502,7 @@ ReservationsRestConnectionImpl::Resize( future> ReservationsRestConnectionImpl::Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -650,7 +650,7 @@ ReservationsRestConnectionImpl::UpdateReservation( StatusOr ReservationsRestConnectionImpl::UpdateReservation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: UpdateReservationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -667,7 +667,7 @@ ReservationsRestConnectionImpl::UpdateReservation( future> ReservationsRestConnectionImpl::UpdateReservation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/reservations/v1/internal/reservations_rest_connection_impl.h b/google/cloud/compute/reservations/v1/internal/reservations_rest_connection_impl.h index 46fc5967e0b4e..65c98a20b5438 100644 --- a/google/cloud/compute/reservations/v1/internal/reservations_rest_connection_impl.h +++ b/google/cloud/compute/reservations/v1/internal/reservations_rest_connection_impl.h @@ -62,13 +62,13 @@ class ReservationsRestConnectionImpl DeleteReservationRequest const& request) override; StatusOr DeleteReservation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: DeleteReservationRequest const& request) override; future> DeleteReservation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetReservation( @@ -84,13 +84,13 @@ class ReservationsRestConnectionImpl InsertReservationRequest const& request) override; StatusOr InsertReservation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: InsertReservationRequest const& request) override; future> InsertReservation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListReservations( @@ -102,12 +102,12 @@ class ReservationsRestConnectionImpl request) override; StatusOr Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1::ResizeRequest const& request) override; future> Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -123,13 +123,13 @@ class ReservationsRestConnectionImpl UpdateReservationRequest const& request) override; StatusOr UpdateReservation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: UpdateReservationRequest const& request) override; future> UpdateReservation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.cc b/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.cc index bd1973772b58f..f684a2fd16787 100644 --- a/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.cc +++ b/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.cc @@ -65,7 +65,7 @@ ReservationsTracingConnection::DeleteReservation( DeleteReservationRequest const& request) { auto span = internal::MakeSpan( "compute_reservations_v1::ReservationsConnection::DeleteReservation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteReservation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -120,7 +120,7 @@ ReservationsTracingConnection::InsertReservation( InsertReservationRequest const& request) { auto span = internal::MakeSpan( "compute_reservations_v1::ReservationsConnection::InsertReservation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertReservation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -168,7 +168,7 @@ ReservationsTracingConnection::Resize( request) { auto span = internal::MakeSpan( "compute_reservations_v1::ReservationsConnection::Resize"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->Resize(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -223,7 +223,7 @@ ReservationsTracingConnection::UpdateReservation( UpdateReservationRequest const& request) { auto span = internal::MakeSpan( "compute_reservations_v1::ReservationsConnection::UpdateReservation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateReservation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/reservations/v1/reservations_connection.cc b/google/cloud/compute/reservations/v1/reservations_connection.cc index ea3e930b13bb9..d4b1cc3d5c745 100644 --- a/google/cloud/compute/reservations/v1/reservations_connection.cc +++ b/google/cloud/compute/reservations/v1/reservations_connection.cc @@ -57,7 +57,7 @@ ReservationsConnection::DeleteReservation( StatusOr ReservationsConnection::DeleteReservation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: DeleteReservationRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ ReservationsConnection::DeleteReservation( future> ReservationsConnection::DeleteReservation( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -97,7 +96,7 @@ ReservationsConnection::InsertReservation( StatusOr ReservationsConnection::InsertReservation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: InsertReservationRequest const&) { return StatusOr( @@ -106,8 +105,7 @@ ReservationsConnection::InsertReservation( future> ReservationsConnection::InsertReservation( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -131,7 +129,7 @@ ReservationsConnection::Resize( StatusOr ReservationsConnection::Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1::ResizeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -139,8 +137,7 @@ ReservationsConnection::Resize( future> ReservationsConnection::Resize( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -170,7 +167,7 @@ ReservationsConnection::UpdateReservation( StatusOr ReservationsConnection::UpdateReservation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: UpdateReservationRequest const&) { return StatusOr( @@ -179,8 +176,7 @@ ReservationsConnection::UpdateReservation( future> ReservationsConnection::UpdateReservation( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/reservations/v1/reservations_connection.h b/google/cloud/compute/reservations/v1/reservations_connection.h index 41757472fb98f..1bad36f431b35 100644 --- a/google/cloud/compute/reservations/v1/reservations_connection.h +++ b/google/cloud/compute/reservations/v1/reservations_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/reservations/v1/internal/reservations_retry_traits.h" #include "google/cloud/compute/reservations/v1/reservations_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -196,13 +196,13 @@ class ReservationsConnection { DeleteReservationRequest const& request); virtual StatusOr - DeleteReservation(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + DeleteReservation(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: DeleteReservationRequest const& request); virtual future> DeleteReservation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetReservation( @@ -218,13 +218,13 @@ class ReservationsConnection { InsertReservationRequest const& request); virtual StatusOr - InsertReservation(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + InsertReservation(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: InsertReservationRequest const& request); virtual future> InsertReservation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -237,12 +237,12 @@ class ReservationsConnection { request); virtual StatusOr Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1::ResizeRequest const& request); virtual future> Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr SetIamPolicy( @@ -258,13 +258,13 @@ class ReservationsConnection { UpdateReservationRequest const& request); virtual StatusOr - UpdateReservation(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + UpdateReservation(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: UpdateReservationRequest const& request); virtual future> UpdateReservation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/resource_policies/v1/internal/resource_policies_rest_connection_impl.cc b/google/cloud/compute/resource_policies/v1/internal/resource_policies_rest_connection_impl.cc index 811fe6c17620e..562c380958a2a 100644 --- a/google/cloud/compute/resource_policies/v1/internal/resource_policies_rest_connection_impl.cc +++ b/google/cloud/compute/resource_policies/v1/internal/resource_policies_rest_connection_impl.cc @@ -150,7 +150,7 @@ ResourcePoliciesRestConnectionImpl::DeleteResourcePolicy( StatusOr ResourcePoliciesRestConnectionImpl::DeleteResourcePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: DeleteResourcePolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -167,7 +167,7 @@ ResourcePoliciesRestConnectionImpl::DeleteResourcePolicy( future> ResourcePoliciesRestConnectionImpl::DeleteResourcePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -315,7 +315,7 @@ ResourcePoliciesRestConnectionImpl::InsertResourcePolicy( StatusOr ResourcePoliciesRestConnectionImpl::InsertResourcePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: InsertResourcePolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -332,7 +332,7 @@ ResourcePoliciesRestConnectionImpl::InsertResourcePolicy( future> ResourcePoliciesRestConnectionImpl::InsertResourcePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -487,7 +487,7 @@ ResourcePoliciesRestConnectionImpl::PatchResourcePolicy( StatusOr ResourcePoliciesRestConnectionImpl::PatchResourcePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: PatchResourcePolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -504,7 +504,7 @@ ResourcePoliciesRestConnectionImpl::PatchResourcePolicy( future> ResourcePoliciesRestConnectionImpl::PatchResourcePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/resource_policies/v1/internal/resource_policies_rest_connection_impl.h b/google/cloud/compute/resource_policies/v1/internal/resource_policies_rest_connection_impl.h index 04de8987459ab..976ca2fb410f1 100644 --- a/google/cloud/compute/resource_policies/v1/internal/resource_policies_rest_connection_impl.h +++ b/google/cloud/compute/resource_policies/v1/internal/resource_policies_rest_connection_impl.h @@ -63,13 +63,13 @@ class ResourcePoliciesRestConnectionImpl DeleteResourcePolicyRequest const& request) override; StatusOr DeleteResourcePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: DeleteResourcePolicyRequest const& request) override; future> DeleteResourcePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetResourcePolicy( @@ -85,13 +85,13 @@ class ResourcePoliciesRestConnectionImpl InsertResourcePolicyRequest const& request) override; StatusOr InsertResourcePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: InsertResourcePolicyRequest const& request) override; future> InsertResourcePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -103,13 +103,13 @@ class ResourcePoliciesRestConnectionImpl PatchResourcePolicyRequest const& request) override; StatusOr PatchResourcePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: PatchResourcePolicyRequest const& request) override; future> PatchResourcePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( diff --git a/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.cc b/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.cc index 6894af4126ccf..d32ac847e6113 100644 --- a/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.cc +++ b/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.cc @@ -70,7 +70,7 @@ ResourcePoliciesTracingConnection::DeleteResourcePolicy( auto span = internal::MakeSpan( "compute_resource_policies_v1::ResourcePoliciesConnection::" "DeleteResourcePolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteResourcePolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -130,7 +130,7 @@ ResourcePoliciesTracingConnection::InsertResourcePolicy( auto span = internal::MakeSpan( "compute_resource_policies_v1::ResourcePoliciesConnection::" "InsertResourcePolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertResourcePolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -183,7 +183,7 @@ ResourcePoliciesTracingConnection::PatchResourcePolicy( auto span = internal::MakeSpan( "compute_resource_policies_v1::ResourcePoliciesConnection::" "PatchResourcePolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchResourcePolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/resource_policies/v1/resource_policies_connection.cc b/google/cloud/compute/resource_policies/v1/resource_policies_connection.cc index 23c13c9d12e73..b6d493b4b2d16 100644 --- a/google/cloud/compute/resource_policies/v1/resource_policies_connection.cc +++ b/google/cloud/compute/resource_policies/v1/resource_policies_connection.cc @@ -57,7 +57,7 @@ ResourcePoliciesConnection::DeleteResourcePolicy( StatusOr ResourcePoliciesConnection::DeleteResourcePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: DeleteResourcePolicyRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ ResourcePoliciesConnection::DeleteResourcePolicy( future> ResourcePoliciesConnection::DeleteResourcePolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -98,7 +97,7 @@ ResourcePoliciesConnection::InsertResourcePolicy( StatusOr ResourcePoliciesConnection::InsertResourcePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: InsertResourcePolicyRequest const&) { return StatusOr( @@ -107,8 +106,7 @@ ResourcePoliciesConnection::InsertResourcePolicy( future> ResourcePoliciesConnection::InsertResourcePolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -133,7 +131,7 @@ ResourcePoliciesConnection::PatchResourcePolicy( StatusOr ResourcePoliciesConnection::PatchResourcePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: PatchResourcePolicyRequest const&) { return StatusOr( @@ -142,8 +140,7 @@ ResourcePoliciesConnection::PatchResourcePolicy( future> ResourcePoliciesConnection::PatchResourcePolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/resource_policies/v1/resource_policies_connection.h b/google/cloud/compute/resource_policies/v1/resource_policies_connection.h index 784a555640e94..13601fa189c86 100644 --- a/google/cloud/compute/resource_policies/v1/resource_policies_connection.h +++ b/google/cloud/compute/resource_policies/v1/resource_policies_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/resource_policies/v1/internal/resource_policies_retry_traits.h" #include "google/cloud/compute/resource_policies/v1/resource_policies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,14 +199,13 @@ class ResourcePoliciesConnection { DeleteResourcePolicyRequest const& request); virtual StatusOr - DeleteResourcePolicy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteResourcePolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: DeleteResourcePolicyRequest const& request); virtual future> DeleteResourcePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -222,14 +221,13 @@ class ResourcePoliciesConnection { InsertResourcePolicyRequest const& request); virtual StatusOr - InsertResourcePolicy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertResourcePolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: InsertResourcePolicyRequest const& request); virtual future> InsertResourcePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -241,13 +239,13 @@ class ResourcePoliciesConnection { PatchResourcePolicyRequest const& request); virtual StatusOr - PatchResourcePolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + PatchResourcePolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: PatchResourcePolicyRequest const& request); virtual future> PatchResourcePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr SetIamPolicy( diff --git a/google/cloud/compute/routers/v1/internal/routers_rest_connection_impl.cc b/google/cloud/compute/routers/v1/internal/routers_rest_connection_impl.cc index 1c68c96adfa9a..bebd589b0afb1 100644 --- a/google/cloud/compute/routers/v1/internal/routers_rest_connection_impl.cc +++ b/google/cloud/compute/routers/v1/internal/routers_rest_connection_impl.cc @@ -146,7 +146,7 @@ RoutersRestConnectionImpl::DeleteRouter( StatusOr RoutersRestConnectionImpl::DeleteRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -164,7 +164,7 @@ RoutersRestConnectionImpl::DeleteRouter( future> RoutersRestConnectionImpl::DeleteRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -345,7 +345,7 @@ RoutersRestConnectionImpl::InsertRouter( StatusOr RoutersRestConnectionImpl::InsertRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::InsertRouterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -363,7 +363,7 @@ RoutersRestConnectionImpl::InsertRouter( future> RoutersRestConnectionImpl::InsertRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -516,7 +516,7 @@ RoutersRestConnectionImpl::PatchRouter( StatusOr RoutersRestConnectionImpl::PatchRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::PatchRouterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -533,7 +533,7 @@ RoutersRestConnectionImpl::PatchRouter( future> RoutersRestConnectionImpl::PatchRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -665,7 +665,7 @@ RoutersRestConnectionImpl::UpdateRouter( StatusOr RoutersRestConnectionImpl::UpdateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -683,7 +683,7 @@ RoutersRestConnectionImpl::UpdateRouter( future> RoutersRestConnectionImpl::UpdateRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/routers/v1/internal/routers_rest_connection_impl.h b/google/cloud/compute/routers/v1/internal/routers_rest_connection_impl.h index 1f5a05bfaa395..957d6919c5996 100644 --- a/google/cloud/compute/routers/v1/internal/routers_rest_connection_impl.h +++ b/google/cloud/compute/routers/v1/internal/routers_rest_connection_impl.h @@ -60,12 +60,12 @@ class RoutersRestConnectionImpl : public compute_routers_v1::RoutersConnection { request) override; StatusOr DeleteRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const& request) override; future> DeleteRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetRouter( @@ -91,12 +91,12 @@ class RoutersRestConnectionImpl : public compute_routers_v1::RoutersConnection { request) override; StatusOr InsertRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::InsertRouterRequest const& request) override; future> InsertRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListRouters( @@ -108,12 +108,12 @@ class RoutersRestConnectionImpl : public compute_routers_v1::RoutersConnection { request) override; StatusOr PatchRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::PatchRouterRequest const& request) override; future> PatchRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr Preview( @@ -125,12 +125,12 @@ class RoutersRestConnectionImpl : public compute_routers_v1::RoutersConnection { request) override; StatusOr UpdateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& request) override; future> UpdateRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/routers/v1/internal/routers_tracing_connection.cc b/google/cloud/compute/routers/v1/internal/routers_tracing_connection.cc index 20de8050b7a08..191c7726804e6 100644 --- a/google/cloud/compute/routers/v1/internal/routers_tracing_connection.cc +++ b/google/cloud/compute/routers/v1/internal/routers_tracing_connection.cc @@ -64,7 +64,7 @@ RoutersTracingConnection::DeleteRouter( request) { auto span = internal::MakeSpan("compute_routers_v1::RoutersConnection::DeleteRouter"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteRouter(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -138,7 +138,7 @@ RoutersTracingConnection::InsertRouter( request) { auto span = internal::MakeSpan("compute_routers_v1::RoutersConnection::InsertRouter"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertRouter(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -184,7 +184,7 @@ RoutersTracingConnection::PatchRouter( request) { auto span = internal::MakeSpan("compute_routers_v1::RoutersConnection::PatchRouter"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchRouter(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -228,7 +228,7 @@ RoutersTracingConnection::UpdateRouter( request) { auto span = internal::MakeSpan("compute_routers_v1::RoutersConnection::UpdateRouter"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateRouter(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/routers/v1/routers_connection.cc b/google/cloud/compute/routers/v1/routers_connection.cc index 452744e674a29..50c9157e4fdd3 100644 --- a/google/cloud/compute/routers/v1/routers_connection.cc +++ b/google/cloud/compute/routers/v1/routers_connection.cc @@ -56,7 +56,7 @@ RoutersConnection::DeleteRouter( StatusOr RoutersConnection::DeleteRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -64,8 +64,7 @@ RoutersConnection::DeleteRouter( future> RoutersConnection::DeleteRouter( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -104,7 +103,7 @@ RoutersConnection::InsertRouter( StatusOr RoutersConnection::InsertRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::InsertRouterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -112,8 +111,7 @@ RoutersConnection::InsertRouter( future> RoutersConnection::InsertRouter( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -137,7 +135,7 @@ RoutersConnection::PatchRouter( StatusOr RoutersConnection::PatchRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::PatchRouterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -145,8 +143,7 @@ RoutersConnection::PatchRouter( future> RoutersConnection::PatchRouter( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -168,7 +165,7 @@ RoutersConnection::UpdateRouter( StatusOr RoutersConnection::UpdateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -176,8 +173,7 @@ RoutersConnection::UpdateRouter( future> RoutersConnection::UpdateRouter( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/routers/v1/routers_connection.h b/google/cloud/compute/routers/v1/routers_connection.h index d2ae88ec81546..b366b328738d5 100644 --- a/google/cloud/compute/routers/v1/routers_connection.h +++ b/google/cloud/compute/routers/v1/routers_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/routers/v1/internal/routers_retry_traits.h" #include "google/cloud/compute/routers/v1/routers_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -195,12 +195,12 @@ class RoutersConnection { request); virtual StatusOr DeleteRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const& request); virtual future> - DeleteRouter(google::cloud::ExperimentalTag, + DeleteRouter(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetRouter( @@ -228,12 +228,12 @@ class RoutersConnection { request); virtual StatusOr InsertRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::InsertRouterRequest const& request); virtual future> - InsertRouter(google::cloud::ExperimentalTag, + InsertRouter(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange ListRouters( @@ -245,12 +245,12 @@ class RoutersConnection { request); virtual StatusOr PatchRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::PatchRouterRequest const& request); virtual future> - PatchRouter(google::cloud::ExperimentalTag, + PatchRouter(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -263,12 +263,12 @@ class RoutersConnection { request); virtual StatusOr UpdateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& request); virtual future> - UpdateRouter(google::cloud::ExperimentalTag, + UpdateRouter(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/routes/v1/internal/routes_rest_connection_impl.cc b/google/cloud/compute/routes/v1/internal/routes_rest_connection_impl.cc index 02ba11e5d2737..ec5b3c9ec8bfb 100644 --- a/google/cloud/compute/routes/v1/internal/routes_rest_connection_impl.cc +++ b/google/cloud/compute/routes/v1/internal/routes_rest_connection_impl.cc @@ -104,7 +104,7 @@ RoutesRestConnectionImpl::DeleteRoute( StatusOr RoutesRestConnectionImpl::DeleteRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -121,7 +121,7 @@ RoutesRestConnectionImpl::DeleteRoute( future> RoutesRestConnectionImpl::DeleteRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -249,7 +249,7 @@ RoutesRestConnectionImpl::InsertRoute( StatusOr RoutesRestConnectionImpl::InsertRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routes::v1::InsertRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -266,7 +266,7 @@ RoutesRestConnectionImpl::InsertRoute( future> RoutesRestConnectionImpl::InsertRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/routes/v1/internal/routes_rest_connection_impl.h b/google/cloud/compute/routes/v1/internal/routes_rest_connection_impl.h index 162bd0748ccf0..872729a86e5a3 100644 --- a/google/cloud/compute/routes/v1/internal/routes_rest_connection_impl.h +++ b/google/cloud/compute/routes/v1/internal/routes_rest_connection_impl.h @@ -54,12 +54,12 @@ class RoutesRestConnectionImpl : public compute_routes_v1::RoutesConnection { request) override; StatusOr DeleteRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const& request) override; future> DeleteRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetRoute( @@ -71,12 +71,12 @@ class RoutesRestConnectionImpl : public compute_routes_v1::RoutesConnection { request) override; StatusOr InsertRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routes::v1::InsertRouteRequest const& request) override; future> InsertRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListRoutes( diff --git a/google/cloud/compute/routes/v1/internal/routes_tracing_connection.cc b/google/cloud/compute/routes/v1/internal/routes_tracing_connection.cc index a07c99f701fbb..b62474f6df08e 100644 --- a/google/cloud/compute/routes/v1/internal/routes_tracing_connection.cc +++ b/google/cloud/compute/routes/v1/internal/routes_tracing_connection.cc @@ -50,7 +50,7 @@ RoutesTracingConnection::DeleteRoute( request) { auto span = internal::MakeSpan("compute_routes_v1::RoutesConnection::DeleteRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteRoute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -94,7 +94,7 @@ RoutesTracingConnection::InsertRoute( request) { auto span = internal::MakeSpan("compute_routes_v1::RoutesConnection::InsertRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertRoute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/routes/v1/routes_connection.cc b/google/cloud/compute/routes/v1/routes_connection.cc index 3b8740cd277cc..b52918849800e 100644 --- a/google/cloud/compute/routes/v1/routes_connection.cc +++ b/google/cloud/compute/routes/v1/routes_connection.cc @@ -46,7 +46,7 @@ RoutesConnection::DeleteRoute( StatusOr RoutesConnection::DeleteRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -54,8 +54,7 @@ RoutesConnection::DeleteRoute( future> RoutesConnection::DeleteRoute( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -76,7 +75,7 @@ RoutesConnection::InsertRoute( StatusOr RoutesConnection::InsertRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routes::v1::InsertRouteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -84,8 +83,7 @@ RoutesConnection::InsertRoute( future> RoutesConnection::InsertRoute( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/routes/v1/routes_connection.h b/google/cloud/compute/routes/v1/routes_connection.h index 315adf5f67f67..ce75f75fafc63 100644 --- a/google/cloud/compute/routes/v1/routes_connection.h +++ b/google/cloud/compute/routes/v1/routes_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/routes/v1/internal/routes_retry_traits.h" #include "google/cloud/compute/routes/v1/routes_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -187,12 +187,12 @@ class RoutesConnection { request); virtual StatusOr DeleteRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const& request); virtual future> - DeleteRoute(google::cloud::ExperimentalTag, + DeleteRoute(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetRoute( @@ -203,12 +203,12 @@ class RoutesConnection { request); virtual StatusOr InsertRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routes::v1::InsertRouteRequest const& request); virtual future> - InsertRoute(google::cloud::ExperimentalTag, + InsertRoute(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange ListRoutes( diff --git a/google/cloud/compute/security_policies/v1/internal/security_policies_rest_connection_impl.cc b/google/cloud/compute/security_policies/v1/internal/security_policies_rest_connection_impl.cc index 342283e4a1cdb..71dae59161355 100644 --- a/google/cloud/compute/security_policies/v1/internal/security_policies_rest_connection_impl.cc +++ b/google/cloud/compute/security_policies/v1/internal/security_policies_rest_connection_impl.cc @@ -105,7 +105,7 @@ SecurityPoliciesRestConnectionImpl::AddRule( StatusOr SecurityPoliciesRestConnectionImpl::AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -122,7 +122,7 @@ SecurityPoliciesRestConnectionImpl::AddRule( future> SecurityPoliciesRestConnectionImpl::AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -277,7 +277,7 @@ SecurityPoliciesRestConnectionImpl::DeleteSecurityPolicy( StatusOr SecurityPoliciesRestConnectionImpl::DeleteSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: DeleteSecurityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -294,7 +294,7 @@ SecurityPoliciesRestConnectionImpl::DeleteSecurityPolicy( future> SecurityPoliciesRestConnectionImpl::DeleteSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -438,7 +438,7 @@ SecurityPoliciesRestConnectionImpl::InsertSecurityPolicy( StatusOr SecurityPoliciesRestConnectionImpl::InsertSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: InsertSecurityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -455,7 +455,7 @@ SecurityPoliciesRestConnectionImpl::InsertSecurityPolicy( future> SecurityPoliciesRestConnectionImpl::InsertSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -624,7 +624,7 @@ SecurityPoliciesRestConnectionImpl::PatchSecurityPolicy( StatusOr SecurityPoliciesRestConnectionImpl::PatchSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: PatchSecurityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -641,7 +641,7 @@ SecurityPoliciesRestConnectionImpl::PatchSecurityPolicy( future> SecurityPoliciesRestConnectionImpl::PatchSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -753,7 +753,7 @@ SecurityPoliciesRestConnectionImpl::PatchRule( StatusOr SecurityPoliciesRestConnectionImpl::PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1::PatchRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -770,7 +770,7 @@ SecurityPoliciesRestConnectionImpl::PatchRule( future> SecurityPoliciesRestConnectionImpl::PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -882,7 +882,7 @@ SecurityPoliciesRestConnectionImpl::RemoveRule( StatusOr SecurityPoliciesRestConnectionImpl::RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1::RemoveRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -899,7 +899,7 @@ SecurityPoliciesRestConnectionImpl::RemoveRule( future> SecurityPoliciesRestConnectionImpl::RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1011,7 +1011,7 @@ SecurityPoliciesRestConnectionImpl::SetLabels( StatusOr SecurityPoliciesRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1::SetLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1028,7 +1028,7 @@ SecurityPoliciesRestConnectionImpl::SetLabels( future> SecurityPoliciesRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/security_policies/v1/internal/security_policies_rest_connection_impl.h b/google/cloud/compute/security_policies/v1/internal/security_policies_rest_connection_impl.h index 4dc22bed44670..497552294c6d9 100644 --- a/google/cloud/compute/security_policies/v1/internal/security_policies_rest_connection_impl.h +++ b/google/cloud/compute/security_policies/v1/internal/security_policies_rest_connection_impl.h @@ -57,12 +57,12 @@ class SecurityPoliciesRestConnectionImpl request) override; StatusOr AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const& request) override; future> AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange DeleteSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: DeleteSecurityPolicyRequest const& request) override; future> DeleteSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetSecurityPolicy( @@ -98,13 +98,13 @@ class SecurityPoliciesRestConnectionImpl InsertSecurityPolicyRequest const& request) override; StatusOr InsertSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: InsertSecurityPolicyRequest const& request) override; future> InsertSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -122,13 +122,13 @@ class SecurityPoliciesRestConnectionImpl PatchSecurityPolicyRequest const& request) override; StatusOr PatchSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: PatchSecurityPolicyRequest const& request) override; future> PatchSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> PatchRule( @@ -136,12 +136,12 @@ class SecurityPoliciesRestConnectionImpl PatchRuleRequest const& request) override; StatusOr PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: PatchRuleRequest const& request) override; future> PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> RemoveRule( @@ -149,12 +149,12 @@ class SecurityPoliciesRestConnectionImpl RemoveRuleRequest const& request) override; StatusOr RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: RemoveRuleRequest const& request) override; future> RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetLabels( @@ -162,12 +162,12 @@ class SecurityPoliciesRestConnectionImpl SetLabelsRequest const& request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.cc b/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.cc index 03368f012ccc3..cb9bc2403276c 100644 --- a/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.cc +++ b/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.cc @@ -51,7 +51,7 @@ SecurityPoliciesTracingConnection::AddRule( request) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::AddRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -105,7 +105,7 @@ SecurityPoliciesTracingConnection::DeleteSecurityPolicy( auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::" "DeleteSecurityPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteSecurityPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -165,7 +165,7 @@ SecurityPoliciesTracingConnection::InsertSecurityPolicy( auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::" "InsertSecurityPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertSecurityPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -231,7 +231,7 @@ SecurityPoliciesTracingConnection::PatchSecurityPolicy( auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::" "PatchSecurityPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchSecurityPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -267,7 +267,7 @@ SecurityPoliciesTracingConnection::PatchRule( request) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::PatchRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -302,7 +302,7 @@ SecurityPoliciesTracingConnection::RemoveRule( request) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::RemoveRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RemoveRule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -337,7 +337,7 @@ SecurityPoliciesTracingConnection::SetLabels( request) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::SetLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/security_policies/v1/security_policies_connection.cc b/google/cloud/compute/security_policies/v1/security_policies_connection.cc index 20adaf51b024f..7366981f704d7 100644 --- a/google/cloud/compute/security_policies/v1/security_policies_connection.cc +++ b/google/cloud/compute/security_policies/v1/security_policies_connection.cc @@ -46,7 +46,7 @@ SecurityPoliciesConnection::AddRule( StatusOr SecurityPoliciesConnection::AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -54,8 +54,7 @@ SecurityPoliciesConnection::AddRule( future> SecurityPoliciesConnection::AddRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -82,7 +81,7 @@ SecurityPoliciesConnection::DeleteSecurityPolicy( StatusOr SecurityPoliciesConnection::DeleteSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: DeleteSecurityPolicyRequest const&) { return StatusOr( @@ -91,8 +90,7 @@ SecurityPoliciesConnection::DeleteSecurityPolicy( future> SecurityPoliciesConnection::DeleteSecurityPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -122,7 +120,7 @@ SecurityPoliciesConnection::InsertSecurityPolicy( StatusOr SecurityPoliciesConnection::InsertSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: InsertSecurityPolicyRequest const&) { return StatusOr( @@ -131,8 +129,7 @@ SecurityPoliciesConnection::InsertSecurityPolicy( future> SecurityPoliciesConnection::InsertSecurityPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -165,7 +162,7 @@ SecurityPoliciesConnection::PatchSecurityPolicy( StatusOr SecurityPoliciesConnection::PatchSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: PatchSecurityPolicyRequest const&) { return StatusOr( @@ -174,8 +171,7 @@ SecurityPoliciesConnection::PatchSecurityPolicy( future> SecurityPoliciesConnection::PatchSecurityPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -192,7 +188,7 @@ SecurityPoliciesConnection::PatchRule( StatusOr SecurityPoliciesConnection::PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: PatchRuleRequest const&) { return StatusOr( @@ -201,8 +197,7 @@ SecurityPoliciesConnection::PatchRule( future> SecurityPoliciesConnection::PatchRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -219,7 +214,7 @@ SecurityPoliciesConnection::RemoveRule( StatusOr SecurityPoliciesConnection::RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: RemoveRuleRequest const&) { return StatusOr( @@ -228,8 +223,7 @@ SecurityPoliciesConnection::RemoveRule( future> SecurityPoliciesConnection::RemoveRule( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -246,7 +240,7 @@ SecurityPoliciesConnection::SetLabels( StatusOr SecurityPoliciesConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: SetLabelsRequest const&) { return StatusOr( @@ -255,8 +249,7 @@ SecurityPoliciesConnection::SetLabels( future> SecurityPoliciesConnection::SetLabels( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/security_policies/v1/security_policies_connection.h b/google/cloud/compute/security_policies/v1/security_policies_connection.h index 551bd2b3d0ee3..2dc1aaa83e2ef 100644 --- a/google/cloud/compute/security_policies/v1/security_policies_connection.h +++ b/google/cloud/compute/security_policies/v1/security_policies_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/security_policies/v1/internal/security_policies_retry_traits.h" #include "google/cloud/compute/security_policies/v1/security_policies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,12 +193,12 @@ class SecurityPoliciesConnection { request); virtual StatusOr AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const& request); virtual future> AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange - DeleteSecurityPolicy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteSecurityPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: DeleteSecurityPolicyRequest const& request); virtual future> DeleteSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -235,14 +234,13 @@ class SecurityPoliciesConnection { InsertSecurityPolicyRequest const& request); virtual StatusOr - InsertSecurityPolicy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertSecurityPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: InsertSecurityPolicyRequest const& request); virtual future> InsertSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -260,13 +258,13 @@ class SecurityPoliciesConnection { PatchSecurityPolicyRequest const& request); virtual StatusOr - PatchSecurityPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + PatchSecurityPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: PatchSecurityPolicyRequest const& request); virtual future> PatchSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -274,12 +272,12 @@ class SecurityPoliciesConnection { PatchRuleRequest const& request); virtual StatusOr PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: PatchRuleRequest const& request); virtual future> - PatchRule(google::cloud::ExperimentalTag, + PatchRule(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -287,12 +285,12 @@ class SecurityPoliciesConnection { RemoveRuleRequest const& request); virtual StatusOr RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: RemoveRuleRequest const& request); virtual future> - RemoveRule(google::cloud::ExperimentalTag, + RemoveRule(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -300,12 +298,12 @@ class SecurityPoliciesConnection { SetLabelsRequest const& request); virtual StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: SetLabelsRequest const& request); virtual future> - SetLabels(google::cloud::ExperimentalTag, + SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/service_attachments/v1/internal/service_attachments_rest_connection_impl.cc b/google/cloud/compute/service_attachments/v1/internal/service_attachments_rest_connection_impl.cc index aacb237038b09..dc56760b211ad 100644 --- a/google/cloud/compute/service_attachments/v1/internal/service_attachments_rest_connection_impl.cc +++ b/google/cloud/compute/service_attachments/v1/internal/service_attachments_rest_connection_impl.cc @@ -150,7 +150,7 @@ ServiceAttachmentsRestConnectionImpl::DeleteServiceAttachment( StatusOr ServiceAttachmentsRestConnectionImpl::DeleteServiceAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: DeleteServiceAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -167,7 +167,7 @@ ServiceAttachmentsRestConnectionImpl::DeleteServiceAttachment( future> ServiceAttachmentsRestConnectionImpl::DeleteServiceAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -315,7 +315,7 @@ ServiceAttachmentsRestConnectionImpl::InsertServiceAttachment( StatusOr ServiceAttachmentsRestConnectionImpl::InsertServiceAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: InsertServiceAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -332,7 +332,7 @@ ServiceAttachmentsRestConnectionImpl::InsertServiceAttachment( future> ServiceAttachmentsRestConnectionImpl::InsertServiceAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -488,7 +488,7 @@ ServiceAttachmentsRestConnectionImpl::PatchServiceAttachment( StatusOr ServiceAttachmentsRestConnectionImpl::PatchServiceAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: PatchServiceAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -505,7 +505,7 @@ ServiceAttachmentsRestConnectionImpl::PatchServiceAttachment( future> ServiceAttachmentsRestConnectionImpl::PatchServiceAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/service_attachments/v1/internal/service_attachments_rest_connection_impl.h b/google/cloud/compute/service_attachments/v1/internal/service_attachments_rest_connection_impl.h index 41bf8d7f66063..3393615e03511 100644 --- a/google/cloud/compute/service_attachments/v1/internal/service_attachments_rest_connection_impl.h +++ b/google/cloud/compute/service_attachments/v1/internal/service_attachments_rest_connection_impl.h @@ -65,13 +65,13 @@ class ServiceAttachmentsRestConnectionImpl DeleteServiceAttachmentRequest const& request) override; StatusOr DeleteServiceAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: DeleteServiceAttachmentRequest const& request) override; future> DeleteServiceAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -88,13 +88,13 @@ class ServiceAttachmentsRestConnectionImpl InsertServiceAttachmentRequest const& request) override; StatusOr InsertServiceAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: InsertServiceAttachmentRequest const& request) override; future> InsertServiceAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -107,13 +107,13 @@ class ServiceAttachmentsRestConnectionImpl PatchServiceAttachmentRequest const& request) override; StatusOr PatchServiceAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: PatchServiceAttachmentRequest const& request) override; future> PatchServiceAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( diff --git a/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.cc b/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.cc index 44b41b3da05f9..55f1a60fffafc 100644 --- a/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.cc +++ b/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.cc @@ -71,7 +71,7 @@ ServiceAttachmentsTracingConnection::DeleteServiceAttachment( auto span = internal::MakeSpan( "compute_service_attachments_v1::ServiceAttachmentsConnection::" "DeleteServiceAttachment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteServiceAttachment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -132,7 +132,7 @@ ServiceAttachmentsTracingConnection::InsertServiceAttachment( auto span = internal::MakeSpan( "compute_service_attachments_v1::ServiceAttachmentsConnection::" "InsertServiceAttachment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertServiceAttachment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -185,7 +185,7 @@ ServiceAttachmentsTracingConnection::PatchServiceAttachment( auto span = internal::MakeSpan( "compute_service_attachments_v1::ServiceAttachmentsConnection::" "PatchServiceAttachment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchServiceAttachment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/service_attachments/v1/service_attachments_connection.cc b/google/cloud/compute/service_attachments/v1/service_attachments_connection.cc index 10c27af1f9f56..491b174403e1b 100644 --- a/google/cloud/compute/service_attachments/v1/service_attachments_connection.cc +++ b/google/cloud/compute/service_attachments/v1/service_attachments_connection.cc @@ -57,7 +57,7 @@ ServiceAttachmentsConnection::DeleteServiceAttachment( StatusOr ServiceAttachmentsConnection::DeleteServiceAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: DeleteServiceAttachmentRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ ServiceAttachmentsConnection::DeleteServiceAttachment( future> ServiceAttachmentsConnection::DeleteServiceAttachment( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -98,7 +97,7 @@ ServiceAttachmentsConnection::InsertServiceAttachment( StatusOr ServiceAttachmentsConnection::InsertServiceAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: InsertServiceAttachmentRequest const&) { return StatusOr( @@ -107,8 +106,7 @@ ServiceAttachmentsConnection::InsertServiceAttachment( future> ServiceAttachmentsConnection::InsertServiceAttachment( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -133,7 +131,7 @@ ServiceAttachmentsConnection::PatchServiceAttachment( StatusOr ServiceAttachmentsConnection::PatchServiceAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: PatchServiceAttachmentRequest const&) { return StatusOr( @@ -142,8 +140,7 @@ ServiceAttachmentsConnection::PatchServiceAttachment( future> ServiceAttachmentsConnection::PatchServiceAttachment( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/service_attachments/v1/service_attachments_connection.h b/google/cloud/compute/service_attachments/v1/service_attachments_connection.h index e9fe7ebdc4fa5..f9f565f513315 100644 --- a/google/cloud/compute/service_attachments/v1/service_attachments_connection.h +++ b/google/cloud/compute/service_attachments/v1/service_attachments_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/service_attachments/v1/internal/service_attachments_retry_traits.h" #include "google/cloud/compute/service_attachments/v1/service_attachments_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -202,14 +202,13 @@ class ServiceAttachmentsConnection { DeleteServiceAttachmentRequest const& request); virtual StatusOr - DeleteServiceAttachment(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteServiceAttachment(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: DeleteServiceAttachmentRequest const& request); virtual future> DeleteServiceAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -225,14 +224,13 @@ class ServiceAttachmentsConnection { InsertServiceAttachmentRequest const& request); virtual StatusOr - InsertServiceAttachment(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertServiceAttachment(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: InsertServiceAttachmentRequest const& request); virtual future> InsertServiceAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -244,14 +242,13 @@ class ServiceAttachmentsConnection { PatchServiceAttachmentRequest const& request); virtual StatusOr - PatchServiceAttachment(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + PatchServiceAttachment(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: PatchServiceAttachmentRequest const& request); virtual future> PatchServiceAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr SetIamPolicy( diff --git a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_rest_connection_impl.cc b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_rest_connection_impl.cc index f55037bf877bb..481a917ab74d9 100644 --- a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_rest_connection_impl.cc +++ b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_rest_connection_impl.cc @@ -120,7 +120,7 @@ SnapshotSettingsRestConnectionImpl::PatchSnapshotSettings( StatusOr SnapshotSettingsRestConnectionImpl::PatchSnapshotSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshot_settings::v1:: PatchSnapshotSettingsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -137,7 +137,7 @@ SnapshotSettingsRestConnectionImpl::PatchSnapshotSettings( future> SnapshotSettingsRestConnectionImpl::PatchSnapshotSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_rest_connection_impl.h b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_rest_connection_impl.h index d41653473c48b..e2bde5e6882ad 100644 --- a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_rest_connection_impl.h +++ b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_rest_connection_impl.h @@ -61,13 +61,13 @@ class SnapshotSettingsRestConnectionImpl PatchSnapshotSettingsRequest const& request) override; StatusOr PatchSnapshotSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshot_settings::v1:: PatchSnapshotSettingsRequest const& request) override; future> PatchSnapshotSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.cc b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.cc index d796b21c3a833..43b03d45f2adc 100644 --- a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.cc +++ b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.cc @@ -64,7 +64,7 @@ SnapshotSettingsTracingConnection::PatchSnapshotSettings( auto span = internal::MakeSpan( "compute_snapshot_settings_v1::SnapshotSettingsConnection::" "PatchSnapshotSettings"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchSnapshotSettings( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection.cc b/google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection.cc index 6022528414817..479c4927eaea2 100644 --- a/google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection.cc +++ b/google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection.cc @@ -53,7 +53,7 @@ SnapshotSettingsConnection::PatchSnapshotSettings( StatusOr SnapshotSettingsConnection::PatchSnapshotSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshot_settings::v1:: PatchSnapshotSettingsRequest const&) { return StatusOr( @@ -62,8 +62,7 @@ SnapshotSettingsConnection::PatchSnapshotSettings( future> SnapshotSettingsConnection::PatchSnapshotSettings( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection.h b/google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection.h index 5e6451ef41949..16b602e5cacfa 100644 --- a/google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection.h +++ b/google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_retry_traits.h" #include "google/cloud/compute/snapshot_settings/v1/snapshot_settings_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -196,14 +196,13 @@ class SnapshotSettingsConnection { PatchSnapshotSettingsRequest const& request); virtual StatusOr - PatchSnapshotSettings(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + PatchSnapshotSettings(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshot_settings::v1:: PatchSnapshotSettingsRequest const& request); virtual future> PatchSnapshotSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/snapshots/v1/internal/snapshots_rest_connection_impl.cc b/google/cloud/compute/snapshots/v1/internal/snapshots_rest_connection_impl.cc index 50d9f543a168a..fc0eaa7c5a0e7 100644 --- a/google/cloud/compute/snapshots/v1/internal/snapshots_rest_connection_impl.cc +++ b/google/cloud/compute/snapshots/v1/internal/snapshots_rest_connection_impl.cc @@ -103,7 +103,7 @@ SnapshotsRestConnectionImpl::DeleteSnapshot( StatusOr SnapshotsRestConnectionImpl::DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -120,7 +120,7 @@ SnapshotsRestConnectionImpl::DeleteSnapshot( future> SnapshotsRestConnectionImpl::DeleteSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -266,7 +266,7 @@ SnapshotsRestConnectionImpl::InsertSnapshot( StatusOr SnapshotsRestConnectionImpl::InsertSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -283,7 +283,7 @@ SnapshotsRestConnectionImpl::InsertSnapshot( future> SnapshotsRestConnectionImpl::InsertSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -448,7 +448,7 @@ SnapshotsRestConnectionImpl::SetLabels( StatusOr SnapshotsRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -465,7 +465,7 @@ SnapshotsRestConnectionImpl::SetLabels( future> SnapshotsRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/snapshots/v1/internal/snapshots_rest_connection_impl.h b/google/cloud/compute/snapshots/v1/internal/snapshots_rest_connection_impl.h index 6306a1d9c3aa7..6fee1b09ead7d 100644 --- a/google/cloud/compute/snapshots/v1/internal/snapshots_rest_connection_impl.h +++ b/google/cloud/compute/snapshots/v1/internal/snapshots_rest_connection_impl.h @@ -55,12 +55,12 @@ class SnapshotsRestConnectionImpl request) override; StatusOr DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const& request) override; future> DeleteSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetSnapshot( @@ -76,12 +76,12 @@ class SnapshotsRestConnectionImpl request) override; StatusOr InsertSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const& request) override; future> InsertSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListSnapshots( @@ -97,12 +97,12 @@ class SnapshotsRestConnectionImpl request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr diff --git a/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.cc b/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.cc index a8cee89b91475..e0d0d9c6fbc25 100644 --- a/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.cc +++ b/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.cc @@ -50,7 +50,7 @@ SnapshotsTracingConnection::DeleteSnapshot( request) { auto span = internal::MakeSpan( "compute_snapshots_v1::SnapshotsConnection::DeleteSnapshot"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSnapshot(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -105,7 +105,7 @@ SnapshotsTracingConnection::InsertSnapshot( request) { auto span = internal::MakeSpan( "compute_snapshots_v1::SnapshotsConnection::InsertSnapshot"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertSnapshot(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -162,7 +162,7 @@ SnapshotsTracingConnection::SetLabels( request) { auto span = internal::MakeSpan( "compute_snapshots_v1::SnapshotsConnection::SetLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/snapshots/v1/snapshots_connection.cc b/google/cloud/compute/snapshots/v1/snapshots_connection.cc index 2d834dce20c1c..18a615c5a82d7 100644 --- a/google/cloud/compute/snapshots/v1/snapshots_connection.cc +++ b/google/cloud/compute/snapshots/v1/snapshots_connection.cc @@ -46,7 +46,7 @@ SnapshotsConnection::DeleteSnapshot( StatusOr SnapshotsConnection::DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -54,8 +54,7 @@ SnapshotsConnection::DeleteSnapshot( future> SnapshotsConnection::DeleteSnapshot( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -83,7 +82,7 @@ SnapshotsConnection::InsertSnapshot( StatusOr SnapshotsConnection::InsertSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -91,8 +90,7 @@ SnapshotsConnection::InsertSnapshot( future> SnapshotsConnection::InsertSnapshot( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -122,7 +120,7 @@ SnapshotsConnection::SetLabels( StatusOr SnapshotsConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -130,8 +128,7 @@ SnapshotsConnection::SetLabels( future> SnapshotsConnection::SetLabels( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/snapshots/v1/snapshots_connection.h b/google/cloud/compute/snapshots/v1/snapshots_connection.h index b3c5ea14b8042..bc156fefbb047 100644 --- a/google/cloud/compute/snapshots/v1/snapshots_connection.h +++ b/google/cloud/compute/snapshots/v1/snapshots_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/snapshots/v1/internal/snapshots_retry_traits.h" #include "google/cloud/compute/snapshots/v1/snapshots_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -191,12 +191,12 @@ class SnapshotsConnection { request); virtual StatusOr DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const& request); virtual future> - DeleteSnapshot(google::cloud::ExperimentalTag, + DeleteSnapshot(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetSnapshot( @@ -213,12 +213,12 @@ class SnapshotsConnection { request); virtual StatusOr InsertSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const& request); virtual future> - InsertSnapshot(google::cloud::ExperimentalTag, + InsertSnapshot(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange ListSnapshots( @@ -233,12 +233,12 @@ class SnapshotsConnection { request); virtual StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const& request); virtual future> - SetLabels(google::cloud::ExperimentalTag, + SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr diff --git a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_rest_connection_impl.cc b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_rest_connection_impl.cc index 8f47bd27d6e11..8d6d70f25429a 100644 --- a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_rest_connection_impl.cc +++ b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_rest_connection_impl.cc @@ -148,7 +148,7 @@ SslCertificatesRestConnectionImpl::DeleteSslCertificate( StatusOr SslCertificatesRestConnectionImpl::DeleteSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_certificates::v1:: DeleteSslCertificateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -165,7 +165,7 @@ SslCertificatesRestConnectionImpl::DeleteSslCertificate( future> SslCertificatesRestConnectionImpl::DeleteSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -293,7 +293,7 @@ SslCertificatesRestConnectionImpl::InsertSslCertificate( StatusOr SslCertificatesRestConnectionImpl::InsertSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_certificates::v1:: InsertSslCertificateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -310,7 +310,7 @@ SslCertificatesRestConnectionImpl::InsertSslCertificate( future> SslCertificatesRestConnectionImpl::InsertSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_rest_connection_impl.h b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_rest_connection_impl.h index 107eea04128a3..dccef8687b3e6 100644 --- a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_rest_connection_impl.h +++ b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_rest_connection_impl.h @@ -63,13 +63,13 @@ class SslCertificatesRestConnectionImpl DeleteSslCertificateRequest const& request) override; StatusOr DeleteSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_certificates::v1:: DeleteSslCertificateRequest const& request) override; future> DeleteSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetSslCertificate( @@ -81,13 +81,13 @@ class SslCertificatesRestConnectionImpl InsertSslCertificateRequest const& request) override; StatusOr InsertSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_certificates::v1:: InsertSslCertificateRequest const& request) override; future> InsertSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.cc b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.cc index 9be47ba6b9284..5b029f9adc288 100644 --- a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.cc +++ b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.cc @@ -69,7 +69,7 @@ SslCertificatesTracingConnection::DeleteSslCertificate( auto span = internal::MakeSpan( "compute_ssl_certificates_v1::SslCertificatesConnection::" "DeleteSslCertificate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteSslCertificate( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -119,7 +119,7 @@ SslCertificatesTracingConnection::InsertSslCertificate( auto span = internal::MakeSpan( "compute_ssl_certificates_v1::SslCertificatesConnection::" "InsertSslCertificate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertSslCertificate( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection.cc b/google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection.cc index 26cec0d448397..07b3a7fb961a5 100644 --- a/google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection.cc +++ b/google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection.cc @@ -57,7 +57,7 @@ SslCertificatesConnection::DeleteSslCertificate( StatusOr SslCertificatesConnection::DeleteSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_certificates::v1:: DeleteSslCertificateRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ SslCertificatesConnection::DeleteSslCertificate( future> SslCertificatesConnection::DeleteSslCertificate( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -91,7 +90,7 @@ SslCertificatesConnection::InsertSslCertificate( StatusOr SslCertificatesConnection::InsertSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_certificates::v1:: InsertSslCertificateRequest const&) { return StatusOr( @@ -100,8 +99,7 @@ SslCertificatesConnection::InsertSslCertificate( future> SslCertificatesConnection::InsertSslCertificate( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection.h b/google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection.h index f87d0917935d7..09442e2ea3f5d 100644 --- a/google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection.h +++ b/google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_retry_traits.h" #include "google/cloud/compute/ssl_certificates/v1/ssl_certificates_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,14 +199,13 @@ class SslCertificatesConnection { DeleteSslCertificateRequest const& request); virtual StatusOr - DeleteSslCertificate(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteSslCertificate(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_certificates::v1:: DeleteSslCertificateRequest const& request); virtual future> DeleteSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -218,14 +217,13 @@ class SslCertificatesConnection { InsertSslCertificateRequest const& request); virtual StatusOr - InsertSslCertificate(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertSslCertificate(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_certificates::v1:: InsertSslCertificateRequest const& request); virtual future> InsertSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange diff --git a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_rest_connection_impl.cc b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_rest_connection_impl.cc index 5e0f6d3d85c76..8a3f859ac11fb 100644 --- a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_rest_connection_impl.cc +++ b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_rest_connection_impl.cc @@ -145,7 +145,7 @@ SslPoliciesRestConnectionImpl::DeleteSslPolicy( StatusOr SslPoliciesRestConnectionImpl::DeleteSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1::DeleteSslPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -162,7 +162,7 @@ SslPoliciesRestConnectionImpl::DeleteSslPolicy( future> SslPoliciesRestConnectionImpl::DeleteSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -290,7 +290,7 @@ SslPoliciesRestConnectionImpl::InsertSslPolicy( StatusOr SslPoliciesRestConnectionImpl::InsertSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1::InsertSslPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -307,7 +307,7 @@ SslPoliciesRestConnectionImpl::InsertSslPolicy( future> SslPoliciesRestConnectionImpl::InsertSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -472,7 +472,7 @@ SslPoliciesRestConnectionImpl::PatchSslPolicy( StatusOr SslPoliciesRestConnectionImpl::PatchSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1::PatchSslPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -489,7 +489,7 @@ SslPoliciesRestConnectionImpl::PatchSslPolicy( future> SslPoliciesRestConnectionImpl::PatchSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_rest_connection_impl.h b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_rest_connection_impl.h index 7e747e5337033..501b3218c7b26 100644 --- a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_rest_connection_impl.h +++ b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_rest_connection_impl.h @@ -62,12 +62,12 @@ class SslPoliciesRestConnectionImpl DeleteSslPolicyRequest const& request) override; StatusOr DeleteSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1:: DeleteSslPolicyRequest const& request) override; future> DeleteSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetSslPolicy( @@ -79,12 +79,12 @@ class SslPoliciesRestConnectionImpl InsertSslPolicyRequest const& request) override; StatusOr InsertSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1:: InsertSslPolicyRequest const& request) override; future> InsertSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListSslPolicies( @@ -102,12 +102,12 @@ class SslPoliciesRestConnectionImpl PatchSslPolicyRequest const& request) override; StatusOr PatchSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1:: PatchSslPolicyRequest const& request) override; future> PatchSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.cc b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.cc index 6c67aadfa5006..005893f3d3135 100644 --- a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.cc +++ b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.cc @@ -65,7 +65,7 @@ SslPoliciesTracingConnection::DeleteSslPolicy( request) { auto span = internal::MakeSpan( "compute_ssl_policies_v1::SslPoliciesConnection::DeleteSslPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSslPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -110,7 +110,7 @@ SslPoliciesTracingConnection::InsertSslPolicy( request) { auto span = internal::MakeSpan( "compute_ssl_policies_v1::SslPoliciesConnection::InsertSslPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertSslPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -169,7 +169,7 @@ SslPoliciesTracingConnection::PatchSslPolicy( request) { auto span = internal::MakeSpan( "compute_ssl_policies_v1::SslPoliciesConnection::PatchSslPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchSslPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/ssl_policies/v1/ssl_policies_connection.cc b/google/cloud/compute/ssl_policies/v1/ssl_policies_connection.cc index 40e27e4b6f1e5..c95d020cc7321 100644 --- a/google/cloud/compute/ssl_policies/v1/ssl_policies_connection.cc +++ b/google/cloud/compute/ssl_policies/v1/ssl_policies_connection.cc @@ -57,7 +57,7 @@ SslPoliciesConnection::DeleteSslPolicy( StatusOr SslPoliciesConnection::DeleteSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1:: DeleteSslPolicyRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ SslPoliciesConnection::DeleteSslPolicy( future> SslPoliciesConnection::DeleteSslPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -90,7 +89,7 @@ SslPoliciesConnection::InsertSslPolicy( StatusOr SslPoliciesConnection::InsertSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1:: InsertSslPolicyRequest const&) { return StatusOr( @@ -99,8 +98,7 @@ SslPoliciesConnection::InsertSslPolicy( future> SslPoliciesConnection::InsertSslPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -133,7 +131,7 @@ SslPoliciesConnection::PatchSslPolicy( StatusOr SslPoliciesConnection::PatchSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1:: PatchSslPolicyRequest const&) { return StatusOr( @@ -142,8 +140,7 @@ SslPoliciesConnection::PatchSslPolicy( future> SslPoliciesConnection::PatchSslPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/ssl_policies/v1/ssl_policies_connection.h b/google/cloud/compute/ssl_policies/v1/ssl_policies_connection.h index ff31c62fa78fd..504d273c191f8 100644 --- a/google/cloud/compute/ssl_policies/v1/ssl_policies_connection.h +++ b/google/cloud/compute/ssl_policies/v1/ssl_policies_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/ssl_policies/v1/internal/ssl_policies_retry_traits.h" #include "google/cloud/compute/ssl_policies/v1/ssl_policies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -195,12 +195,12 @@ class SslPoliciesConnection { DeleteSslPolicyRequest const& request); virtual StatusOr DeleteSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1:: DeleteSslPolicyRequest const& request); virtual future> - DeleteSslPolicy(google::cloud::ExperimentalTag, + DeleteSslPolicy(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetSslPolicy( @@ -212,12 +212,12 @@ class SslPoliciesConnection { InsertSslPolicyRequest const& request); virtual StatusOr InsertSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1:: InsertSslPolicyRequest const& request); virtual future> - InsertSslPolicy(google::cloud::ExperimentalTag, + InsertSslPolicy(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -235,12 +235,12 @@ class SslPoliciesConnection { PatchSslPolicyRequest const& request); virtual StatusOr PatchSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1:: PatchSslPolicyRequest const& request); virtual future> - PatchSslPolicy(google::cloud::ExperimentalTag, + PatchSslPolicy(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/storage_pool_types/v1/storage_pool_types_connection.h b/google/cloud/compute/storage_pool_types/v1/storage_pool_types_connection.h index 877f043c42aaa..b751f224f9268 100644 --- a/google/cloud/compute/storage_pool_types/v1/storage_pool_types_connection.h +++ b/google/cloud/compute/storage_pool_types/v1/storage_pool_types_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/compute/storage_pool_types/v1/internal/storage_pool_types_retry_traits.h" #include "google/cloud/compute/storage_pool_types/v1/storage_pool_types_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/compute/storage_pools/v1/internal/storage_pools_rest_connection_impl.cc b/google/cloud/compute/storage_pools/v1/internal/storage_pools_rest_connection_impl.cc index 9fa28fae18678..a5e28d9f1c24e 100644 --- a/google/cloud/compute/storage_pools/v1/internal/storage_pools_rest_connection_impl.cc +++ b/google/cloud/compute/storage_pools/v1/internal/storage_pools_rest_connection_impl.cc @@ -149,7 +149,7 @@ StoragePoolsRestConnectionImpl::DeleteStoragePool( StatusOr StoragePoolsRestConnectionImpl::DeleteStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: DeleteStoragePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -166,7 +166,7 @@ StoragePoolsRestConnectionImpl::DeleteStoragePool( future> StoragePoolsRestConnectionImpl::DeleteStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -314,7 +314,7 @@ StoragePoolsRestConnectionImpl::InsertStoragePool( StatusOr StoragePoolsRestConnectionImpl::InsertStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: InsertStoragePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -331,7 +331,7 @@ StoragePoolsRestConnectionImpl::InsertStoragePool( future> StoragePoolsRestConnectionImpl::InsertStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -552,7 +552,7 @@ StoragePoolsRestConnectionImpl::UpdateStoragePool( StatusOr StoragePoolsRestConnectionImpl::UpdateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: UpdateStoragePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -569,7 +569,7 @@ StoragePoolsRestConnectionImpl::UpdateStoragePool( future> StoragePoolsRestConnectionImpl::UpdateStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/storage_pools/v1/internal/storage_pools_rest_connection_impl.h b/google/cloud/compute/storage_pools/v1/internal/storage_pools_rest_connection_impl.h index 02649e7f0b999..df7b1e7e95635 100644 --- a/google/cloud/compute/storage_pools/v1/internal/storage_pools_rest_connection_impl.h +++ b/google/cloud/compute/storage_pools/v1/internal/storage_pools_rest_connection_impl.h @@ -62,13 +62,13 @@ class StoragePoolsRestConnectionImpl DeleteStoragePoolRequest const& request) override; StatusOr DeleteStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: DeleteStoragePoolRequest const& request) override; future> DeleteStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetStoragePool( @@ -84,13 +84,13 @@ class StoragePoolsRestConnectionImpl InsertStoragePoolRequest const& request) override; StatusOr InsertStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: InsertStoragePoolRequest const& request) override; future> InsertStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListStoragePools( @@ -114,13 +114,13 @@ class StoragePoolsRestConnectionImpl UpdateStoragePoolRequest const& request) override; StatusOr UpdateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: UpdateStoragePoolRequest const& request) override; future> UpdateStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.cc b/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.cc index 5c369f461dbb2..dbeb4b54bc545 100644 --- a/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.cc +++ b/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.cc @@ -65,7 +65,7 @@ StoragePoolsTracingConnection::DeleteStoragePool( DeleteStoragePoolRequest const& request) { auto span = internal::MakeSpan( "compute_storage_pools_v1::StoragePoolsConnection::DeleteStoragePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteStoragePool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -120,7 +120,7 @@ StoragePoolsTracingConnection::InsertStoragePool( InsertStoragePoolRequest const& request) { auto span = internal::MakeSpan( "compute_storage_pools_v1::StoragePoolsConnection::InsertStoragePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertStoragePool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -200,7 +200,7 @@ StoragePoolsTracingConnection::UpdateStoragePool( UpdateStoragePoolRequest const& request) { auto span = internal::MakeSpan( "compute_storage_pools_v1::StoragePoolsConnection::UpdateStoragePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateStoragePool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/storage_pools/v1/storage_pools_connection.cc b/google/cloud/compute/storage_pools/v1/storage_pools_connection.cc index ca82b254e95fb..ac097831bd67f 100644 --- a/google/cloud/compute/storage_pools/v1/storage_pools_connection.cc +++ b/google/cloud/compute/storage_pools/v1/storage_pools_connection.cc @@ -57,7 +57,7 @@ StoragePoolsConnection::DeleteStoragePool( StatusOr StoragePoolsConnection::DeleteStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: DeleteStoragePoolRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ StoragePoolsConnection::DeleteStoragePool( future> StoragePoolsConnection::DeleteStoragePool( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -98,7 +97,7 @@ StoragePoolsConnection::InsertStoragePool( StatusOr StoragePoolsConnection::InsertStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: InsertStoragePoolRequest const&) { return StatusOr( @@ -107,8 +106,7 @@ StoragePoolsConnection::InsertStoragePool( future> StoragePoolsConnection::InsertStoragePool( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -155,7 +153,7 @@ StoragePoolsConnection::UpdateStoragePool( StatusOr StoragePoolsConnection::UpdateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: UpdateStoragePoolRequest const&) { return StatusOr( @@ -164,8 +162,7 @@ StoragePoolsConnection::UpdateStoragePool( future> StoragePoolsConnection::UpdateStoragePool( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/storage_pools/v1/storage_pools_connection.h b/google/cloud/compute/storage_pools/v1/storage_pools_connection.h index 5af083b3fbb4f..8d0e24ac9949c 100644 --- a/google/cloud/compute/storage_pools/v1/storage_pools_connection.h +++ b/google/cloud/compute/storage_pools/v1/storage_pools_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/storage_pools/v1/internal/storage_pools_retry_traits.h" #include "google/cloud/compute/storage_pools/v1/storage_pools_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,13 +197,13 @@ class StoragePoolsConnection { DeleteStoragePoolRequest const& request); virtual StatusOr - DeleteStoragePool(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + DeleteStoragePool(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: DeleteStoragePoolRequest const& request); virtual future> DeleteStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetStoragePool( @@ -219,13 +219,13 @@ class StoragePoolsConnection { InsertStoragePoolRequest const& request); virtual StatusOr - InsertStoragePool(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + InsertStoragePool(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: InsertStoragePoolRequest const& request); virtual future> InsertStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -250,13 +250,13 @@ class StoragePoolsConnection { UpdateStoragePoolRequest const& request); virtual StatusOr - UpdateStoragePool(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + UpdateStoragePool(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: UpdateStoragePoolRequest const& request); virtual future> UpdateStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/subnetworks/v1/internal/subnetworks_rest_connection_impl.cc b/google/cloud/compute/subnetworks/v1/internal/subnetworks_rest_connection_impl.cc index 96b747bfc0ca0..2b0da461eacf5 100644 --- a/google/cloud/compute/subnetworks/v1/internal/subnetworks_rest_connection_impl.cc +++ b/google/cloud/compute/subnetworks/v1/internal/subnetworks_rest_connection_impl.cc @@ -147,7 +147,7 @@ SubnetworksRestConnectionImpl::DeleteSubnetwork( StatusOr SubnetworksRestConnectionImpl::DeleteSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1::DeleteSubnetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -164,7 +164,7 @@ SubnetworksRestConnectionImpl::DeleteSubnetwork( future> SubnetworksRestConnectionImpl::DeleteSubnetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -280,7 +280,7 @@ SubnetworksRestConnectionImpl::ExpandIpCidrRange( StatusOr SubnetworksRestConnectionImpl::ExpandIpCidrRange( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: ExpandIpCidrRangeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -297,7 +297,7 @@ SubnetworksRestConnectionImpl::ExpandIpCidrRange( future> SubnetworksRestConnectionImpl::ExpandIpCidrRange( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -445,7 +445,7 @@ SubnetworksRestConnectionImpl::InsertSubnetwork( StatusOr SubnetworksRestConnectionImpl::InsertSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1::InsertSubnetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -462,7 +462,7 @@ SubnetworksRestConnectionImpl::InsertSubnetwork( future> SubnetworksRestConnectionImpl::InsertSubnetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -650,7 +650,7 @@ SubnetworksRestConnectionImpl::PatchSubnetwork( StatusOr SubnetworksRestConnectionImpl::PatchSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1::PatchSubnetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -667,7 +667,7 @@ SubnetworksRestConnectionImpl::PatchSubnetwork( future> SubnetworksRestConnectionImpl::PatchSubnetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -799,7 +799,7 @@ SubnetworksRestConnectionImpl::SetPrivateIpGoogleAccess( StatusOr SubnetworksRestConnectionImpl::SetPrivateIpGoogleAccess( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: SetPrivateIpGoogleAccessRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -816,7 +816,7 @@ SubnetworksRestConnectionImpl::SetPrivateIpGoogleAccess( future> SubnetworksRestConnectionImpl::SetPrivateIpGoogleAccess( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/subnetworks/v1/internal/subnetworks_rest_connection_impl.h b/google/cloud/compute/subnetworks/v1/internal/subnetworks_rest_connection_impl.h index ccfc69565cb1e..d9d339b29a082 100644 --- a/google/cloud/compute/subnetworks/v1/internal/subnetworks_rest_connection_impl.h +++ b/google/cloud/compute/subnetworks/v1/internal/subnetworks_rest_connection_impl.h @@ -62,12 +62,12 @@ class SubnetworksRestConnectionImpl DeleteSubnetworkRequest const& request) override; StatusOr DeleteSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: DeleteSubnetworkRequest const& request) override; future> DeleteSubnetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -75,13 +75,13 @@ class SubnetworksRestConnectionImpl ExpandIpCidrRangeRequest const& request) override; StatusOr ExpandIpCidrRange( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: ExpandIpCidrRangeRequest const& request) override; future> ExpandIpCidrRange( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetSubnetwork( @@ -97,12 +97,12 @@ class SubnetworksRestConnectionImpl InsertSubnetworkRequest const& request) override; StatusOr InsertSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: InsertSubnetworkRequest const& request) override; future> InsertSubnetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListSubnetworks( @@ -118,12 +118,12 @@ class SubnetworksRestConnectionImpl PatchSubnetworkRequest const& request) override; StatusOr PatchSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: PatchSubnetworkRequest const& request) override; future> PatchSubnetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -136,13 +136,13 @@ class SubnetworksRestConnectionImpl SetPrivateIpGoogleAccessRequest const& request) override; StatusOr SetPrivateIpGoogleAccess( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: SetPrivateIpGoogleAccessRequest const& request) override; future> SetPrivateIpGoogleAccess( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr diff --git a/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.cc b/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.cc index 881499fecad14..ea878df29080b 100644 --- a/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.cc +++ b/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.cc @@ -65,7 +65,7 @@ SubnetworksTracingConnection::DeleteSubnetwork( request) { auto span = internal::MakeSpan( "compute_subnetworks_v1::SubnetworksConnection::DeleteSubnetwork"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSubnetwork(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -100,7 +100,7 @@ SubnetworksTracingConnection::ExpandIpCidrRange( ExpandIpCidrRangeRequest const& request) { auto span = internal::MakeSpan( "compute_subnetworks_v1::SubnetworksConnection::ExpandIpCidrRange"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExpandIpCidrRange(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -155,7 +155,7 @@ SubnetworksTracingConnection::InsertSubnetwork( request) { auto span = internal::MakeSpan( "compute_subnetworks_v1::SubnetworksConnection::InsertSubnetwork"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertSubnetwork(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -215,7 +215,7 @@ SubnetworksTracingConnection::PatchSubnetwork( request) { auto span = internal::MakeSpan( "compute_subnetworks_v1::SubnetworksConnection::PatchSubnetwork"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchSubnetwork(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -263,7 +263,7 @@ SubnetworksTracingConnection::SetPrivateIpGoogleAccess( auto span = internal::MakeSpan( "compute_subnetworks_v1::SubnetworksConnection::" "SetPrivateIpGoogleAccess"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SetPrivateIpGoogleAccess( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/subnetworks/v1/subnetworks_connection.cc b/google/cloud/compute/subnetworks/v1/subnetworks_connection.cc index b535a235cc109..7e0fcee13b3c1 100644 --- a/google/cloud/compute/subnetworks/v1/subnetworks_connection.cc +++ b/google/cloud/compute/subnetworks/v1/subnetworks_connection.cc @@ -57,7 +57,7 @@ SubnetworksConnection::DeleteSubnetwork( StatusOr SubnetworksConnection::DeleteSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: DeleteSubnetworkRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ SubnetworksConnection::DeleteSubnetwork( future> SubnetworksConnection::DeleteSubnetwork( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -84,7 +83,7 @@ SubnetworksConnection::ExpandIpCidrRange( StatusOr SubnetworksConnection::ExpandIpCidrRange( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: ExpandIpCidrRangeRequest const&) { return StatusOr( @@ -93,8 +92,7 @@ SubnetworksConnection::ExpandIpCidrRange( future> SubnetworksConnection::ExpandIpCidrRange( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -123,7 +121,7 @@ SubnetworksConnection::InsertSubnetwork( StatusOr SubnetworksConnection::InsertSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: InsertSubnetworkRequest const&) { return StatusOr( @@ -132,8 +130,7 @@ SubnetworksConnection::InsertSubnetwork( future> SubnetworksConnection::InsertSubnetwork( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -166,7 +163,7 @@ SubnetworksConnection::PatchSubnetwork( StatusOr SubnetworksConnection::PatchSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: PatchSubnetworkRequest const&) { return StatusOr( @@ -175,8 +172,7 @@ SubnetworksConnection::PatchSubnetwork( future> SubnetworksConnection::PatchSubnetwork( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -199,7 +195,7 @@ SubnetworksConnection::SetPrivateIpGoogleAccess( StatusOr SubnetworksConnection::SetPrivateIpGoogleAccess( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: SetPrivateIpGoogleAccessRequest const&) { return StatusOr( @@ -208,8 +204,7 @@ SubnetworksConnection::SetPrivateIpGoogleAccess( future> SubnetworksConnection::SetPrivateIpGoogleAccess( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/subnetworks/v1/subnetworks_connection.h b/google/cloud/compute/subnetworks/v1/subnetworks_connection.h index 7b9b8820599d4..2674e73457920 100644 --- a/google/cloud/compute/subnetworks/v1/subnetworks_connection.h +++ b/google/cloud/compute/subnetworks/v1/subnetworks_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/subnetworks/v1/internal/subnetworks_retry_traits.h" #include "google/cloud/compute/subnetworks/v1/subnetworks_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -195,12 +195,12 @@ class SubnetworksConnection { DeleteSubnetworkRequest const& request); virtual StatusOr DeleteSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: DeleteSubnetworkRequest const& request); virtual future> - DeleteSubnetwork(google::cloud::ExperimentalTag, + DeleteSubnetwork(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -208,13 +208,13 @@ class SubnetworksConnection { ExpandIpCidrRangeRequest const& request); virtual StatusOr - ExpandIpCidrRange(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExpandIpCidrRange(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: ExpandIpCidrRangeRequest const& request); virtual future> ExpandIpCidrRange( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetSubnetwork( @@ -230,12 +230,12 @@ class SubnetworksConnection { InsertSubnetworkRequest const& request); virtual StatusOr InsertSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: InsertSubnetworkRequest const& request); virtual future> - InsertSubnetwork(google::cloud::ExperimentalTag, + InsertSubnetwork(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -252,12 +252,12 @@ class SubnetworksConnection { PatchSubnetworkRequest const& request); virtual StatusOr PatchSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: PatchSubnetworkRequest const& request); virtual future> - PatchSubnetwork(google::cloud::ExperimentalTag, + PatchSubnetwork(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr SetIamPolicy( @@ -269,14 +269,13 @@ class SubnetworksConnection { SetPrivateIpGoogleAccessRequest const& request); virtual StatusOr - SetPrivateIpGoogleAccess(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + SetPrivateIpGoogleAccess(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: SetPrivateIpGoogleAccessRequest const& request); virtual future> SetPrivateIpGoogleAccess( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr diff --git a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_rest_connection_impl.cc b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_rest_connection_impl.cc index 32c46eb7d8212..0be9651633d24 100644 --- a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_rest_connection_impl.cc +++ b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_rest_connection_impl.cc @@ -105,7 +105,7 @@ TargetGrpcProxiesRestConnectionImpl::DeleteTargetGrpcProxy( StatusOr TargetGrpcProxiesRestConnectionImpl::DeleteTargetGrpcProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: DeleteTargetGrpcProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -122,7 +122,7 @@ TargetGrpcProxiesRestConnectionImpl::DeleteTargetGrpcProxy( future> TargetGrpcProxiesRestConnectionImpl::DeleteTargetGrpcProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -250,7 +250,7 @@ TargetGrpcProxiesRestConnectionImpl::InsertTargetGrpcProxy( StatusOr TargetGrpcProxiesRestConnectionImpl::InsertTargetGrpcProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: InsertTargetGrpcProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -267,7 +267,7 @@ TargetGrpcProxiesRestConnectionImpl::InsertTargetGrpcProxy( future> TargetGrpcProxiesRestConnectionImpl::InsertTargetGrpcProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -419,7 +419,7 @@ TargetGrpcProxiesRestConnectionImpl::PatchTargetGrpcProxy( StatusOr TargetGrpcProxiesRestConnectionImpl::PatchTargetGrpcProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: PatchTargetGrpcProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -436,7 +436,7 @@ TargetGrpcProxiesRestConnectionImpl::PatchTargetGrpcProxy( future> TargetGrpcProxiesRestConnectionImpl::PatchTargetGrpcProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_rest_connection_impl.h b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_rest_connection_impl.h index b9324159c2722..80d56a20f583f 100644 --- a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_rest_connection_impl.h +++ b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_rest_connection_impl.h @@ -58,13 +58,13 @@ class TargetGrpcProxiesRestConnectionImpl DeleteTargetGrpcProxyRequest const& request) override; StatusOr DeleteTargetGrpcProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: DeleteTargetGrpcProxyRequest const& request) override; future> DeleteTargetGrpcProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetTargetGrpcProxy( @@ -77,13 +77,13 @@ class TargetGrpcProxiesRestConnectionImpl InsertTargetGrpcProxyRequest const& request) override; StatusOr InsertTargetGrpcProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: InsertTargetGrpcProxyRequest const& request) override; future> InsertTargetGrpcProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -95,13 +95,13 @@ class TargetGrpcProxiesRestConnectionImpl PatchTargetGrpcProxyRequest const& request) override; StatusOr PatchTargetGrpcProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: PatchTargetGrpcProxyRequest const& request) override; future> PatchTargetGrpcProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.cc b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.cc index f263452e7ea91..26c89e23324c2 100644 --- a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.cc +++ b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.cc @@ -54,7 +54,7 @@ TargetGrpcProxiesTracingConnection::DeleteTargetGrpcProxy( auto span = internal::MakeSpan( "compute_target_grpc_proxies_v1::TargetGrpcProxiesConnection::" "DeleteTargetGrpcProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteTargetGrpcProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -104,7 +104,7 @@ TargetGrpcProxiesTracingConnection::InsertTargetGrpcProxy( auto span = internal::MakeSpan( "compute_target_grpc_proxies_v1::TargetGrpcProxiesConnection::" "InsertTargetGrpcProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertTargetGrpcProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -157,7 +157,7 @@ TargetGrpcProxiesTracingConnection::PatchTargetGrpcProxy( auto span = internal::MakeSpan( "compute_target_grpc_proxies_v1::TargetGrpcProxiesConnection::" "PatchTargetGrpcProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchTargetGrpcProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection.cc b/google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection.cc index 022115caed35e..9782f95d0d825 100644 --- a/google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection.cc +++ b/google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection.cc @@ -47,7 +47,7 @@ TargetGrpcProxiesConnection::DeleteTargetGrpcProxy( StatusOr TargetGrpcProxiesConnection::DeleteTargetGrpcProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: DeleteTargetGrpcProxyRequest const&) { return StatusOr( @@ -56,8 +56,7 @@ TargetGrpcProxiesConnection::DeleteTargetGrpcProxy( future> TargetGrpcProxiesConnection::DeleteTargetGrpcProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -81,7 +80,7 @@ TargetGrpcProxiesConnection::InsertTargetGrpcProxy( StatusOr TargetGrpcProxiesConnection::InsertTargetGrpcProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: InsertTargetGrpcProxyRequest const&) { return StatusOr( @@ -90,8 +89,7 @@ TargetGrpcProxiesConnection::InsertTargetGrpcProxy( future> TargetGrpcProxiesConnection::InsertTargetGrpcProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -116,7 +114,7 @@ TargetGrpcProxiesConnection::PatchTargetGrpcProxy( StatusOr TargetGrpcProxiesConnection::PatchTargetGrpcProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: PatchTargetGrpcProxyRequest const&) { return StatusOr( @@ -125,8 +123,7 @@ TargetGrpcProxiesConnection::PatchTargetGrpcProxy( future> TargetGrpcProxiesConnection::PatchTargetGrpcProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection.h b/google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection.h index e1e7780bdfde1..6b6d43ca1cd61 100644 --- a/google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection.h +++ b/google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_retry_traits.h" #include "google/cloud/compute/target_grpc_proxies/v1/target_grpc_proxies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,14 +193,13 @@ class TargetGrpcProxiesConnection { DeleteTargetGrpcProxyRequest const& request); virtual StatusOr - DeleteTargetGrpcProxy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteTargetGrpcProxy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: DeleteTargetGrpcProxyRequest const& request); virtual future> DeleteTargetGrpcProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -212,14 +211,13 @@ class TargetGrpcProxiesConnection { InsertTargetGrpcProxyRequest const& request); virtual StatusOr - InsertTargetGrpcProxy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertTargetGrpcProxy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: InsertTargetGrpcProxyRequest const& request); virtual future> InsertTargetGrpcProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -231,14 +229,13 @@ class TargetGrpcProxiesConnection { PatchTargetGrpcProxyRequest const& request); virtual StatusOr - PatchTargetGrpcProxy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + PatchTargetGrpcProxy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: PatchTargetGrpcProxyRequest const& request); virtual future> PatchTargetGrpcProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_rest_connection_impl.cc b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_rest_connection_impl.cc index c959fa807a2c7..c61b47c7e8489 100644 --- a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_rest_connection_impl.cc +++ b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_rest_connection_impl.cc @@ -148,7 +148,7 @@ TargetHttpProxiesRestConnectionImpl::DeleteTargetHttpProxy( StatusOr TargetHttpProxiesRestConnectionImpl::DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -165,7 +165,7 @@ TargetHttpProxiesRestConnectionImpl::DeleteTargetHttpProxy( future> TargetHttpProxiesRestConnectionImpl::DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -293,7 +293,7 @@ TargetHttpProxiesRestConnectionImpl::InsertTargetHttpProxy( StatusOr TargetHttpProxiesRestConnectionImpl::InsertTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -310,7 +310,7 @@ TargetHttpProxiesRestConnectionImpl::InsertTargetHttpProxy( future> TargetHttpProxiesRestConnectionImpl::InsertTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -462,7 +462,7 @@ TargetHttpProxiesRestConnectionImpl::PatchTargetHttpProxy( StatusOr TargetHttpProxiesRestConnectionImpl::PatchTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: PatchTargetHttpProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -479,7 +479,7 @@ TargetHttpProxiesRestConnectionImpl::PatchTargetHttpProxy( future> TargetHttpProxiesRestConnectionImpl::PatchTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -591,7 +591,7 @@ TargetHttpProxiesRestConnectionImpl::SetUrlMap( StatusOr TargetHttpProxiesRestConnectionImpl::SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: SetUrlMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -608,7 +608,7 @@ TargetHttpProxiesRestConnectionImpl::SetUrlMap( future> TargetHttpProxiesRestConnectionImpl::SetUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_rest_connection_impl.h b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_rest_connection_impl.h index 89065020e52fe..2c9089e355ae9 100644 --- a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_rest_connection_impl.h +++ b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_rest_connection_impl.h @@ -65,13 +65,13 @@ class TargetHttpProxiesRestConnectionImpl DeleteTargetHttpProxyRequest const& request) override; StatusOr DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request) override; future> DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetTargetHttpProxy( @@ -84,13 +84,13 @@ class TargetHttpProxiesRestConnectionImpl InsertTargetHttpProxyRequest const& request) override; StatusOr InsertTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request) override; future> InsertTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -102,13 +102,13 @@ class TargetHttpProxiesRestConnectionImpl PatchTargetHttpProxyRequest const& request) override; StatusOr PatchTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: PatchTargetHttpProxyRequest const& request) override; future> PatchTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetUrlMap( @@ -116,12 +116,12 @@ class TargetHttpProxiesRestConnectionImpl SetUrlMapRequest const& request) override; StatusOr SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: SetUrlMapRequest const& request) override; future> SetUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.cc b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.cc index 7a753ef1ccfbc..dfe328a95368d 100644 --- a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.cc +++ b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.cc @@ -70,7 +70,7 @@ TargetHttpProxiesTracingConnection::DeleteTargetHttpProxy( auto span = internal::MakeSpan( "compute_target_http_proxies_v1::TargetHttpProxiesConnection::" "DeleteTargetHttpProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteTargetHttpProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -120,7 +120,7 @@ TargetHttpProxiesTracingConnection::InsertTargetHttpProxy( auto span = internal::MakeSpan( "compute_target_http_proxies_v1::TargetHttpProxiesConnection::" "InsertTargetHttpProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertTargetHttpProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -173,7 +173,7 @@ TargetHttpProxiesTracingConnection::PatchTargetHttpProxy( auto span = internal::MakeSpan( "compute_target_http_proxies_v1::TargetHttpProxiesConnection::" "PatchTargetHttpProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchTargetHttpProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -209,7 +209,7 @@ TargetHttpProxiesTracingConnection::SetUrlMap( SetUrlMapRequest const& request) { auto span = internal::MakeSpan( "compute_target_http_proxies_v1::TargetHttpProxiesConnection::SetUrlMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetUrlMap(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection.cc b/google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection.cc index 4f2b067063136..b5e9e272ec3a1 100644 --- a/google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection.cc +++ b/google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection.cc @@ -57,7 +57,7 @@ TargetHttpProxiesConnection::DeleteTargetHttpProxy( StatusOr TargetHttpProxiesConnection::DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: DeleteTargetHttpProxyRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ TargetHttpProxiesConnection::DeleteTargetHttpProxy( future> TargetHttpProxiesConnection::DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -91,7 +90,7 @@ TargetHttpProxiesConnection::InsertTargetHttpProxy( StatusOr TargetHttpProxiesConnection::InsertTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: InsertTargetHttpProxyRequest const&) { return StatusOr( @@ -100,8 +99,7 @@ TargetHttpProxiesConnection::InsertTargetHttpProxy( future> TargetHttpProxiesConnection::InsertTargetHttpProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -126,7 +124,7 @@ TargetHttpProxiesConnection::PatchTargetHttpProxy( StatusOr TargetHttpProxiesConnection::PatchTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: PatchTargetHttpProxyRequest const&) { return StatusOr( @@ -135,8 +133,7 @@ TargetHttpProxiesConnection::PatchTargetHttpProxy( future> TargetHttpProxiesConnection::PatchTargetHttpProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -153,7 +150,7 @@ TargetHttpProxiesConnection::SetUrlMap( StatusOr TargetHttpProxiesConnection::SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: SetUrlMapRequest const&) { return StatusOr( @@ -162,8 +159,7 @@ TargetHttpProxiesConnection::SetUrlMap( future> TargetHttpProxiesConnection::SetUrlMap( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection.h b/google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection.h index 0e7a7caf37b7c..b4c0576622f0a 100644 --- a/google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection.h +++ b/google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_retry_traits.h" #include "google/cloud/compute/target_http_proxies/v1/target_http_proxies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -200,14 +200,13 @@ class TargetHttpProxiesConnection { DeleteTargetHttpProxyRequest const& request); virtual StatusOr - DeleteTargetHttpProxy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteTargetHttpProxy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request); virtual future> DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -219,14 +218,13 @@ class TargetHttpProxiesConnection { InsertTargetHttpProxyRequest const& request); virtual StatusOr - InsertTargetHttpProxy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertTargetHttpProxy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request); virtual future> InsertTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -238,14 +236,13 @@ class TargetHttpProxiesConnection { PatchTargetHttpProxyRequest const& request); virtual StatusOr - PatchTargetHttpProxy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + PatchTargetHttpProxy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: PatchTargetHttpProxyRequest const& request); virtual future> PatchTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -253,12 +250,12 @@ class TargetHttpProxiesConnection { SetUrlMapRequest const& request); virtual StatusOr SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: SetUrlMapRequest const& request); virtual future> - SetUrlMap(google::cloud::ExperimentalTag, + SetUrlMap(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_rest_connection_impl.cc b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_rest_connection_impl.cc index ea10670797d9d..c0d9430804a74 100644 --- a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_rest_connection_impl.cc +++ b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_rest_connection_impl.cc @@ -149,7 +149,7 @@ TargetHttpsProxiesRestConnectionImpl::DeleteTargetHttpsProxy( StatusOr TargetHttpsProxiesRestConnectionImpl::DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -166,7 +166,7 @@ TargetHttpsProxiesRestConnectionImpl::DeleteTargetHttpsProxy( future> TargetHttpsProxiesRestConnectionImpl::DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -294,7 +294,7 @@ TargetHttpsProxiesRestConnectionImpl::InsertTargetHttpsProxy( StatusOr TargetHttpsProxiesRestConnectionImpl::InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -311,7 +311,7 @@ TargetHttpsProxiesRestConnectionImpl::InsertTargetHttpsProxy( future> TargetHttpsProxiesRestConnectionImpl::InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -463,7 +463,7 @@ TargetHttpsProxiesRestConnectionImpl::PatchTargetHttpsProxy( StatusOr TargetHttpsProxiesRestConnectionImpl::PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -480,7 +480,7 @@ TargetHttpsProxiesRestConnectionImpl::PatchTargetHttpsProxy( future> TargetHttpsProxiesRestConnectionImpl::PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -592,7 +592,7 @@ TargetHttpsProxiesRestConnectionImpl::SetCertificateMap( StatusOr TargetHttpsProxiesRestConnectionImpl::SetCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetCertificateMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -609,7 +609,7 @@ TargetHttpsProxiesRestConnectionImpl::SetCertificateMap( future> TargetHttpsProxiesRestConnectionImpl::SetCertificateMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -721,7 +721,7 @@ TargetHttpsProxiesRestConnectionImpl::SetQuicOverride( StatusOr TargetHttpsProxiesRestConnectionImpl::SetQuicOverride( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetQuicOverrideRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -738,7 +738,7 @@ TargetHttpsProxiesRestConnectionImpl::SetQuicOverride( future> TargetHttpsProxiesRestConnectionImpl::SetQuicOverride( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -850,7 +850,7 @@ TargetHttpsProxiesRestConnectionImpl::SetSslCertificates( StatusOr TargetHttpsProxiesRestConnectionImpl::SetSslCertificates( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetSslCertificatesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -867,7 +867,7 @@ TargetHttpsProxiesRestConnectionImpl::SetSslCertificates( future> TargetHttpsProxiesRestConnectionImpl::SetSslCertificates( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -979,7 +979,7 @@ TargetHttpsProxiesRestConnectionImpl::SetSslPolicy( StatusOr TargetHttpsProxiesRestConnectionImpl::SetSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetSslPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -996,7 +996,7 @@ TargetHttpsProxiesRestConnectionImpl::SetSslPolicy( future> TargetHttpsProxiesRestConnectionImpl::SetSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1108,7 +1108,7 @@ TargetHttpsProxiesRestConnectionImpl::SetUrlMap( StatusOr TargetHttpsProxiesRestConnectionImpl::SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetUrlMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1125,7 +1125,7 @@ TargetHttpsProxiesRestConnectionImpl::SetUrlMap( future> TargetHttpsProxiesRestConnectionImpl::SetUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_rest_connection_impl.h b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_rest_connection_impl.h index 1d3b47f7c54a9..a2a67288973e8 100644 --- a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_rest_connection_impl.h +++ b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_rest_connection_impl.h @@ -66,13 +66,13 @@ class TargetHttpsProxiesRestConnectionImpl DeleteTargetHttpsProxyRequest const& request) override; StatusOr DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request) override; future> DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -85,13 +85,13 @@ class TargetHttpsProxiesRestConnectionImpl InsertTargetHttpsProxyRequest const& request) override; StatusOr InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request) override; future> InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -104,13 +104,13 @@ class TargetHttpsProxiesRestConnectionImpl PatchTargetHttpsProxyRequest const& request) override; StatusOr PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request) override; future> PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -118,13 +118,13 @@ class TargetHttpsProxiesRestConnectionImpl SetCertificateMapRequest const& request) override; StatusOr SetCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetCertificateMapRequest const& request) override; future> SetCertificateMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetQuicOverride( @@ -132,12 +132,12 @@ class TargetHttpsProxiesRestConnectionImpl SetQuicOverrideRequest const& request) override; StatusOr SetQuicOverride( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetQuicOverrideRequest const& request) override; future> SetQuicOverride( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -145,13 +145,13 @@ class TargetHttpsProxiesRestConnectionImpl SetSslCertificatesRequest const& request) override; StatusOr SetSslCertificates( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetSslCertificatesRequest const& request) override; future> SetSslCertificates( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetSslPolicy( @@ -159,12 +159,12 @@ class TargetHttpsProxiesRestConnectionImpl SetSslPolicyRequest const& request) override; StatusOr SetSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetSslPolicyRequest const& request) override; future> SetSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetUrlMap( @@ -172,12 +172,12 @@ class TargetHttpsProxiesRestConnectionImpl SetUrlMapRequest const& request) override; StatusOr SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetUrlMapRequest const& request) override; future> SetUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.cc b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.cc index 6883166c994c9..a5e15e43834e2 100644 --- a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.cc +++ b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.cc @@ -72,7 +72,7 @@ TargetHttpsProxiesTracingConnection::DeleteTargetHttpsProxy( auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "DeleteTargetHttpsProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteTargetHttpsProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -122,7 +122,7 @@ TargetHttpsProxiesTracingConnection::InsertTargetHttpsProxy( auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "InsertTargetHttpsProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertTargetHttpsProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -175,7 +175,7 @@ TargetHttpsProxiesTracingConnection::PatchTargetHttpsProxy( auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "PatchTargetHttpsProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PatchTargetHttpsProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -213,7 +213,7 @@ TargetHttpsProxiesTracingConnection::SetCertificateMap( auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "SetCertificateMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetCertificateMap(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -251,7 +251,7 @@ TargetHttpsProxiesTracingConnection::SetQuicOverride( auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "SetQuicOverride"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetQuicOverride(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -290,7 +290,7 @@ TargetHttpsProxiesTracingConnection::SetSslCertificates( auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "SetSslCertificates"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetSslCertificates(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -328,7 +328,7 @@ TargetHttpsProxiesTracingConnection::SetSslPolicy( auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "SetSslPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetSslPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -366,7 +366,7 @@ TargetHttpsProxiesTracingConnection::SetUrlMap( auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "SetUrlMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetUrlMap(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection.cc b/google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection.cc index aa0cc5f622bcf..ac2641fbb579f 100644 --- a/google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection.cc +++ b/google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection.cc @@ -58,7 +58,7 @@ TargetHttpsProxiesConnection::DeleteTargetHttpsProxy( StatusOr TargetHttpsProxiesConnection::DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const&) { return StatusOr( @@ -67,8 +67,7 @@ TargetHttpsProxiesConnection::DeleteTargetHttpsProxy( future> TargetHttpsProxiesConnection::DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -92,7 +91,7 @@ TargetHttpsProxiesConnection::InsertTargetHttpsProxy( StatusOr TargetHttpsProxiesConnection::InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: InsertTargetHttpsProxyRequest const&) { return StatusOr( @@ -101,8 +100,7 @@ TargetHttpsProxiesConnection::InsertTargetHttpsProxy( future> TargetHttpsProxiesConnection::InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -127,7 +125,7 @@ TargetHttpsProxiesConnection::PatchTargetHttpsProxy( StatusOr TargetHttpsProxiesConnection::PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: PatchTargetHttpsProxyRequest const&) { return StatusOr( @@ -136,8 +134,7 @@ TargetHttpsProxiesConnection::PatchTargetHttpsProxy( future> TargetHttpsProxiesConnection::PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -154,7 +151,7 @@ TargetHttpsProxiesConnection::SetCertificateMap( StatusOr TargetHttpsProxiesConnection::SetCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetCertificateMapRequest const&) { return StatusOr( @@ -163,8 +160,7 @@ TargetHttpsProxiesConnection::SetCertificateMap( future> TargetHttpsProxiesConnection::SetCertificateMap( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -181,7 +177,7 @@ TargetHttpsProxiesConnection::SetQuicOverride( StatusOr TargetHttpsProxiesConnection::SetQuicOverride( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetQuicOverrideRequest const&) { return StatusOr( @@ -190,8 +186,7 @@ TargetHttpsProxiesConnection::SetQuicOverride( future> TargetHttpsProxiesConnection::SetQuicOverride( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -208,7 +203,7 @@ TargetHttpsProxiesConnection::SetSslCertificates( StatusOr TargetHttpsProxiesConnection::SetSslCertificates( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetSslCertificatesRequest const&) { return StatusOr( @@ -217,8 +212,7 @@ TargetHttpsProxiesConnection::SetSslCertificates( future> TargetHttpsProxiesConnection::SetSslCertificates( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -235,7 +229,7 @@ TargetHttpsProxiesConnection::SetSslPolicy( StatusOr TargetHttpsProxiesConnection::SetSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetSslPolicyRequest const&) { return StatusOr( @@ -244,8 +238,7 @@ TargetHttpsProxiesConnection::SetSslPolicy( future> TargetHttpsProxiesConnection::SetSslPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -262,7 +255,7 @@ TargetHttpsProxiesConnection::SetUrlMap( StatusOr TargetHttpsProxiesConnection::SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetUrlMapRequest const&) { return StatusOr( @@ -271,8 +264,7 @@ TargetHttpsProxiesConnection::SetUrlMap( future> TargetHttpsProxiesConnection::SetUrlMap( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection.h b/google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection.h index 20c2d76b9bf16..f313ae031b8c2 100644 --- a/google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection.h +++ b/google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_retry_traits.h" #include "google/cloud/compute/target_https_proxies/v1/target_https_proxies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -203,14 +203,13 @@ class TargetHttpsProxiesConnection { DeleteTargetHttpsProxyRequest const& request); virtual StatusOr - DeleteTargetHttpsProxy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteTargetHttpsProxy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request); virtual future> DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -222,14 +221,13 @@ class TargetHttpsProxiesConnection { InsertTargetHttpsProxyRequest const& request); virtual StatusOr - InsertTargetHttpsProxy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertTargetHttpsProxy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request); virtual future> InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -241,14 +239,13 @@ class TargetHttpsProxiesConnection { PatchTargetHttpsProxyRequest const& request); virtual StatusOr - PatchTargetHttpsProxy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + PatchTargetHttpsProxy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request); virtual future> PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -256,13 +253,13 @@ class TargetHttpsProxiesConnection { SetCertificateMapRequest const& request); virtual StatusOr - SetCertificateMap(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetCertificateMap(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetCertificateMapRequest const& request); virtual future> SetCertificateMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -270,12 +267,12 @@ class TargetHttpsProxiesConnection { SetQuicOverrideRequest const& request); virtual StatusOr SetQuicOverride( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetQuicOverrideRequest const& request); virtual future> - SetQuicOverride(google::cloud::ExperimentalTag, + SetQuicOverride(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -283,13 +280,13 @@ class TargetHttpsProxiesConnection { SetSslCertificatesRequest const& request); virtual StatusOr - SetSslCertificates(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetSslCertificates(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetSslCertificatesRequest const& request); virtual future> SetSslCertificates( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -297,12 +294,12 @@ class TargetHttpsProxiesConnection { SetSslPolicyRequest const& request); virtual StatusOr SetSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetSslPolicyRequest const& request); virtual future> - SetSslPolicy(google::cloud::ExperimentalTag, + SetSslPolicy(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -310,12 +307,12 @@ class TargetHttpsProxiesConnection { SetUrlMapRequest const& request); virtual StatusOr SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetUrlMapRequest const& request); virtual future> - SetUrlMap(google::cloud::ExperimentalTag, + SetUrlMap(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/target_instances/v1/internal/target_instances_rest_connection_impl.cc b/google/cloud/compute/target_instances/v1/internal/target_instances_rest_connection_impl.cc index c8bc39650a1a2..e019c6c232a9e 100644 --- a/google/cloud/compute/target_instances/v1/internal/target_instances_rest_connection_impl.cc +++ b/google/cloud/compute/target_instances/v1/internal/target_instances_rest_connection_impl.cc @@ -150,7 +150,7 @@ TargetInstancesRestConnectionImpl::DeleteTargetInstance( StatusOr TargetInstancesRestConnectionImpl::DeleteTargetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: DeleteTargetInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -167,7 +167,7 @@ TargetInstancesRestConnectionImpl::DeleteTargetInstance( future> TargetInstancesRestConnectionImpl::DeleteTargetInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -299,7 +299,7 @@ TargetInstancesRestConnectionImpl::InsertTargetInstance( StatusOr TargetInstancesRestConnectionImpl::InsertTargetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: InsertTargetInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -316,7 +316,7 @@ TargetInstancesRestConnectionImpl::InsertTargetInstance( future> TargetInstancesRestConnectionImpl::InsertTargetInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -470,7 +470,7 @@ TargetInstancesRestConnectionImpl::SetSecurityPolicy( StatusOr TargetInstancesRestConnectionImpl::SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: SetSecurityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -487,7 +487,7 @@ TargetInstancesRestConnectionImpl::SetSecurityPolicy( future> TargetInstancesRestConnectionImpl::SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/target_instances/v1/internal/target_instances_rest_connection_impl.h b/google/cloud/compute/target_instances/v1/internal/target_instances_rest_connection_impl.h index d2ee0233af298..b6036d20b0be0 100644 --- a/google/cloud/compute/target_instances/v1/internal/target_instances_rest_connection_impl.h +++ b/google/cloud/compute/target_instances/v1/internal/target_instances_rest_connection_impl.h @@ -63,13 +63,13 @@ class TargetInstancesRestConnectionImpl DeleteTargetInstanceRequest const& request) override; StatusOr DeleteTargetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: DeleteTargetInstanceRequest const& request) override; future> DeleteTargetInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetTargetInstance( @@ -81,13 +81,13 @@ class TargetInstancesRestConnectionImpl InsertTargetInstanceRequest const& request) override; StatusOr InsertTargetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: InsertTargetInstanceRequest const& request) override; future> InsertTargetInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -99,13 +99,13 @@ class TargetInstancesRestConnectionImpl SetSecurityPolicyRequest const& request) override; StatusOr SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: SetSecurityPolicyRequest const& request) override; future> SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.cc b/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.cc index db92955ef5999..3c9aa1c336300 100644 --- a/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.cc +++ b/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.cc @@ -69,7 +69,7 @@ TargetInstancesTracingConnection::DeleteTargetInstance( auto span = internal::MakeSpan( "compute_target_instances_v1::TargetInstancesConnection::" "DeleteTargetInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteTargetInstance( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -119,7 +119,7 @@ TargetInstancesTracingConnection::InsertTargetInstance( auto span = internal::MakeSpan( "compute_target_instances_v1::TargetInstancesConnection::" "InsertTargetInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertTargetInstance( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -171,7 +171,7 @@ TargetInstancesTracingConnection::SetSecurityPolicy( auto span = internal::MakeSpan( "compute_target_instances_v1::TargetInstancesConnection::" "SetSecurityPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/target_instances/v1/target_instances_connection.cc b/google/cloud/compute/target_instances/v1/target_instances_connection.cc index e5a3fac28c386..b5346eddf8a7b 100644 --- a/google/cloud/compute/target_instances/v1/target_instances_connection.cc +++ b/google/cloud/compute/target_instances/v1/target_instances_connection.cc @@ -57,7 +57,7 @@ TargetInstancesConnection::DeleteTargetInstance( StatusOr TargetInstancesConnection::DeleteTargetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: DeleteTargetInstanceRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ TargetInstancesConnection::DeleteTargetInstance( future> TargetInstancesConnection::DeleteTargetInstance( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -91,7 +90,7 @@ TargetInstancesConnection::InsertTargetInstance( StatusOr TargetInstancesConnection::InsertTargetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: InsertTargetInstanceRequest const&) { return StatusOr( @@ -100,8 +99,7 @@ TargetInstancesConnection::InsertTargetInstance( future> TargetInstancesConnection::InsertTargetInstance( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -126,7 +124,7 @@ TargetInstancesConnection::SetSecurityPolicy( StatusOr TargetInstancesConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: SetSecurityPolicyRequest const&) { return StatusOr( @@ -135,8 +133,7 @@ TargetInstancesConnection::SetSecurityPolicy( future> TargetInstancesConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/target_instances/v1/target_instances_connection.h b/google/cloud/compute/target_instances/v1/target_instances_connection.h index 2ae7438ecfe14..c86b961341d77 100644 --- a/google/cloud/compute/target_instances/v1/target_instances_connection.h +++ b/google/cloud/compute/target_instances/v1/target_instances_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/target_instances/v1/internal/target_instances_retry_traits.h" #include "google/cloud/compute/target_instances/v1/target_instances_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,14 +199,13 @@ class TargetInstancesConnection { DeleteTargetInstanceRequest const& request); virtual StatusOr - DeleteTargetInstance(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteTargetInstance(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: DeleteTargetInstanceRequest const& request); virtual future> DeleteTargetInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -218,14 +217,13 @@ class TargetInstancesConnection { InsertTargetInstanceRequest const& request); virtual StatusOr - InsertTargetInstance(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertTargetInstance(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: InsertTargetInstanceRequest const& request); virtual future> InsertTargetInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -237,13 +235,13 @@ class TargetInstancesConnection { SetSecurityPolicyRequest const& request); virtual StatusOr - SetSecurityPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetSecurityPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: SetSecurityPolicyRequest const& request); virtual future> SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/target_pools/v1/internal/target_pools_rest_connection_impl.cc b/google/cloud/compute/target_pools/v1/internal/target_pools_rest_connection_impl.cc index 3d6373d37ff26..18d8fba3ebfed 100644 --- a/google/cloud/compute/target_pools/v1/internal/target_pools_rest_connection_impl.cc +++ b/google/cloud/compute/target_pools/v1/internal/target_pools_rest_connection_impl.cc @@ -105,7 +105,7 @@ TargetPoolsRestConnectionImpl::AddHealthCheck( StatusOr TargetPoolsRestConnectionImpl::AddHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::AddHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -122,7 +122,7 @@ TargetPoolsRestConnectionImpl::AddHealthCheck( future> TargetPoolsRestConnectionImpl::AddHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -238,7 +238,7 @@ TargetPoolsRestConnectionImpl::AddInstance( StatusOr TargetPoolsRestConnectionImpl::AddInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -255,7 +255,7 @@ TargetPoolsRestConnectionImpl::AddInstance( future> TargetPoolsRestConnectionImpl::AddInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -413,7 +413,7 @@ TargetPoolsRestConnectionImpl::DeleteTargetPool( StatusOr TargetPoolsRestConnectionImpl::DeleteTargetPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: DeleteTargetPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -430,7 +430,7 @@ TargetPoolsRestConnectionImpl::DeleteTargetPool( future> TargetPoolsRestConnectionImpl::DeleteTargetPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -579,7 +579,7 @@ TargetPoolsRestConnectionImpl::InsertTargetPool( StatusOr TargetPoolsRestConnectionImpl::InsertTargetPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: InsertTargetPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -596,7 +596,7 @@ TargetPoolsRestConnectionImpl::InsertTargetPool( future> TargetPoolsRestConnectionImpl::InsertTargetPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -748,7 +748,7 @@ TargetPoolsRestConnectionImpl::RemoveHealthCheck( StatusOr TargetPoolsRestConnectionImpl::RemoveHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: RemoveHealthCheckRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -765,7 +765,7 @@ TargetPoolsRestConnectionImpl::RemoveHealthCheck( future> TargetPoolsRestConnectionImpl::RemoveHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -881,7 +881,7 @@ TargetPoolsRestConnectionImpl::RemoveInstance( StatusOr TargetPoolsRestConnectionImpl::RemoveInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::RemoveInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -898,7 +898,7 @@ TargetPoolsRestConnectionImpl::RemoveInstance( future> TargetPoolsRestConnectionImpl::RemoveInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1015,7 +1015,7 @@ TargetPoolsRestConnectionImpl::SetBackup( StatusOr TargetPoolsRestConnectionImpl::SetBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1033,7 +1033,7 @@ TargetPoolsRestConnectionImpl::SetBackup( future> TargetPoolsRestConnectionImpl::SetBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -1149,7 +1149,7 @@ TargetPoolsRestConnectionImpl::SetSecurityPolicy( StatusOr TargetPoolsRestConnectionImpl::SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: SetSecurityPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1166,7 +1166,7 @@ TargetPoolsRestConnectionImpl::SetSecurityPolicy( future> TargetPoolsRestConnectionImpl::SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/target_pools/v1/internal/target_pools_rest_connection_impl.h b/google/cloud/compute/target_pools/v1/internal/target_pools_rest_connection_impl.h index 25f05e388e91f..27ac0c726c7fe 100644 --- a/google/cloud/compute/target_pools/v1/internal/target_pools_rest_connection_impl.h +++ b/google/cloud/compute/target_pools/v1/internal/target_pools_rest_connection_impl.h @@ -56,12 +56,12 @@ class TargetPoolsRestConnectionImpl AddHealthCheckRequest const& request) override; StatusOr AddHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: AddHealthCheckRequest const& request) override; future> AddHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> AddInstance( @@ -69,12 +69,12 @@ class TargetPoolsRestConnectionImpl request) override; StatusOr AddInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& request) override; future> AddInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange DeleteTargetPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: DeleteTargetPoolRequest const& request) override; future> DeleteTargetPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetTargetPool( @@ -109,12 +109,12 @@ class TargetPoolsRestConnectionImpl InsertTargetPoolRequest const& request) override; StatusOr InsertTargetPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: InsertTargetPoolRequest const& request) override; future> InsertTargetPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListTargetPools( @@ -126,13 +126,13 @@ class TargetPoolsRestConnectionImpl RemoveHealthCheckRequest const& request) override; StatusOr RemoveHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: RemoveHealthCheckRequest const& request) override; future> RemoveHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> RemoveInstance( @@ -140,12 +140,12 @@ class TargetPoolsRestConnectionImpl RemoveInstanceRequest const& request) override; StatusOr RemoveInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: RemoveInstanceRequest const& request) override; future> RemoveInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetBackup( @@ -153,12 +153,12 @@ class TargetPoolsRestConnectionImpl request) override; StatusOr SetBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& request) override; future> SetBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -166,13 +166,13 @@ class TargetPoolsRestConnectionImpl SetSecurityPolicyRequest const& request) override; StatusOr SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: SetSecurityPolicyRequest const& request) override; future> SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.cc b/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.cc index c527285eeba7b..dc82695fbf55e 100644 --- a/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.cc +++ b/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.cc @@ -50,7 +50,7 @@ TargetPoolsTracingConnection::AddHealthCheck( request) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::AddHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddHealthCheck(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -85,7 +85,7 @@ TargetPoolsTracingConnection::AddInstance( request) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::AddInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ TargetPoolsTracingConnection::DeleteTargetPool( DeleteTargetPoolRequest const& request) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::DeleteTargetPool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteTargetPool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -190,7 +190,7 @@ TargetPoolsTracingConnection::InsertTargetPool( InsertTargetPoolRequest const& request) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::InsertTargetPool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertTargetPool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -238,7 +238,7 @@ TargetPoolsTracingConnection::RemoveHealthCheck( RemoveHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::RemoveHealthCheck"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RemoveHealthCheck(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -273,7 +273,7 @@ TargetPoolsTracingConnection::RemoveInstance( request) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::RemoveInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RemoveInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -308,7 +308,7 @@ TargetPoolsTracingConnection::SetBackup( request) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::SetBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -343,7 +343,7 @@ TargetPoolsTracingConnection::SetSecurityPolicy( SetSecurityPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::SetSecurityPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/target_pools/v1/target_pools_connection.cc b/google/cloud/compute/target_pools/v1/target_pools_connection.cc index 0e42d03e5cfc1..0c471c027f712 100644 --- a/google/cloud/compute/target_pools/v1/target_pools_connection.cc +++ b/google/cloud/compute/target_pools/v1/target_pools_connection.cc @@ -47,7 +47,7 @@ TargetPoolsConnection::AddHealthCheck( StatusOr TargetPoolsConnection::AddHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: AddHealthCheckRequest const&) { return StatusOr( @@ -56,8 +56,7 @@ TargetPoolsConnection::AddHealthCheck( future> TargetPoolsConnection::AddHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -73,7 +72,7 @@ TargetPoolsConnection::AddInstance( StatusOr TargetPoolsConnection::AddInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -81,8 +80,7 @@ TargetPoolsConnection::AddInstance( future> TargetPoolsConnection::AddInstance( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -109,7 +107,7 @@ TargetPoolsConnection::DeleteTargetPool( StatusOr TargetPoolsConnection::DeleteTargetPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: DeleteTargetPoolRequest const&) { return StatusOr( @@ -118,8 +116,7 @@ TargetPoolsConnection::DeleteTargetPool( future> TargetPoolsConnection::DeleteTargetPool( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -148,7 +145,7 @@ TargetPoolsConnection::InsertTargetPool( StatusOr TargetPoolsConnection::InsertTargetPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: InsertTargetPoolRequest const&) { return StatusOr( @@ -157,8 +154,7 @@ TargetPoolsConnection::InsertTargetPool( future> TargetPoolsConnection::InsertTargetPool( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -183,7 +179,7 @@ TargetPoolsConnection::RemoveHealthCheck( StatusOr TargetPoolsConnection::RemoveHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: RemoveHealthCheckRequest const&) { return StatusOr( @@ -192,8 +188,7 @@ TargetPoolsConnection::RemoveHealthCheck( future> TargetPoolsConnection::RemoveHealthCheck( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -210,7 +205,7 @@ TargetPoolsConnection::RemoveInstance( StatusOr TargetPoolsConnection::RemoveInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: RemoveInstanceRequest const&) { return StatusOr( @@ -219,8 +214,7 @@ TargetPoolsConnection::RemoveInstance( future> TargetPoolsConnection::RemoveInstance( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -236,7 +230,7 @@ TargetPoolsConnection::SetBackup( StatusOr TargetPoolsConnection::SetBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -244,8 +238,7 @@ TargetPoolsConnection::SetBackup( future> TargetPoolsConnection::SetBackup( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -262,7 +255,7 @@ TargetPoolsConnection::SetSecurityPolicy( StatusOr TargetPoolsConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: SetSecurityPolicyRequest const&) { return StatusOr( @@ -271,8 +264,7 @@ TargetPoolsConnection::SetSecurityPolicy( future> TargetPoolsConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/target_pools/v1/target_pools_connection.h b/google/cloud/compute/target_pools/v1/target_pools_connection.h index b972687520a40..2f0c1ad8bca88 100644 --- a/google/cloud/compute/target_pools/v1/target_pools_connection.h +++ b/google/cloud/compute/target_pools/v1/target_pools_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/target_pools/v1/internal/target_pools_retry_traits.h" #include "google/cloud/compute/target_pools/v1/target_pools_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -190,12 +190,12 @@ class TargetPoolsConnection { AddHealthCheckRequest const& request); virtual StatusOr AddHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: AddHealthCheckRequest const& request); virtual future> - AddHealthCheck(google::cloud::ExperimentalTag, + AddHealthCheck(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -204,12 +204,12 @@ class TargetPoolsConnection { request); virtual StatusOr AddInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& request); virtual future> - AddInstance(google::cloud::ExperimentalTag, + AddInstance(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange DeleteTargetPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: DeleteTargetPoolRequest const& request); virtual future> - DeleteTargetPool(google::cloud::ExperimentalTag, + DeleteTargetPool(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetTargetPool( @@ -244,12 +244,12 @@ class TargetPoolsConnection { InsertTargetPoolRequest const& request); virtual StatusOr InsertTargetPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: InsertTargetPoolRequest const& request); virtual future> - InsertTargetPool(google::cloud::ExperimentalTag, + InsertTargetPool(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -262,13 +262,13 @@ class TargetPoolsConnection { RemoveHealthCheckRequest const& request); virtual StatusOr - RemoveHealthCheck(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + RemoveHealthCheck(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: RemoveHealthCheckRequest const& request); virtual future> RemoveHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -276,12 +276,12 @@ class TargetPoolsConnection { RemoveInstanceRequest const& request); virtual StatusOr RemoveInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: RemoveInstanceRequest const& request); virtual future> - RemoveInstance(google::cloud::ExperimentalTag, + RemoveInstance(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -290,12 +290,12 @@ class TargetPoolsConnection { request); virtual StatusOr SetBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& request); virtual future> - SetBackup(google::cloud::ExperimentalTag, + SetBackup(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -303,13 +303,13 @@ class TargetPoolsConnection { SetSecurityPolicyRequest const& request); virtual StatusOr - SetSecurityPolicy(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetSecurityPolicy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: SetSecurityPolicyRequest const& request); virtual future> SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_rest_connection_impl.cc b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_rest_connection_impl.cc index 83818fbd161a0..2fddb72959476 100644 --- a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_rest_connection_impl.cc +++ b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_rest_connection_impl.cc @@ -105,7 +105,7 @@ TargetSslProxiesRestConnectionImpl::DeleteTargetSslProxy( StatusOr TargetSslProxiesRestConnectionImpl::DeleteTargetSslProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: DeleteTargetSslProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -122,7 +122,7 @@ TargetSslProxiesRestConnectionImpl::DeleteTargetSslProxy( future> TargetSslProxiesRestConnectionImpl::DeleteTargetSslProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -250,7 +250,7 @@ TargetSslProxiesRestConnectionImpl::InsertTargetSslProxy( StatusOr TargetSslProxiesRestConnectionImpl::InsertTargetSslProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: InsertTargetSslProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -267,7 +267,7 @@ TargetSslProxiesRestConnectionImpl::InsertTargetSslProxy( future> TargetSslProxiesRestConnectionImpl::InsertTargetSslProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -418,7 +418,7 @@ TargetSslProxiesRestConnectionImpl::SetBackendService( StatusOr TargetSslProxiesRestConnectionImpl::SetBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetBackendServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -435,7 +435,7 @@ TargetSslProxiesRestConnectionImpl::SetBackendService( future> TargetSslProxiesRestConnectionImpl::SetBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -547,7 +547,7 @@ TargetSslProxiesRestConnectionImpl::SetCertificateMap( StatusOr TargetSslProxiesRestConnectionImpl::SetCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetCertificateMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -564,7 +564,7 @@ TargetSslProxiesRestConnectionImpl::SetCertificateMap( future> TargetSslProxiesRestConnectionImpl::SetCertificateMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -676,7 +676,7 @@ TargetSslProxiesRestConnectionImpl::SetProxyHeader( StatusOr TargetSslProxiesRestConnectionImpl::SetProxyHeader( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetProxyHeaderRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -693,7 +693,7 @@ TargetSslProxiesRestConnectionImpl::SetProxyHeader( future> TargetSslProxiesRestConnectionImpl::SetProxyHeader( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -805,7 +805,7 @@ TargetSslProxiesRestConnectionImpl::SetSslCertificates( StatusOr TargetSslProxiesRestConnectionImpl::SetSslCertificates( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslCertificatesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -822,7 +822,7 @@ TargetSslProxiesRestConnectionImpl::SetSslCertificates( future> TargetSslProxiesRestConnectionImpl::SetSslCertificates( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -934,7 +934,7 @@ TargetSslProxiesRestConnectionImpl::SetSslPolicy( StatusOr TargetSslProxiesRestConnectionImpl::SetSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -951,7 +951,7 @@ TargetSslProxiesRestConnectionImpl::SetSslPolicy( future> TargetSslProxiesRestConnectionImpl::SetSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_rest_connection_impl.h b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_rest_connection_impl.h index ede6fe4b809e0..63fa2ba1e6b3a 100644 --- a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_rest_connection_impl.h +++ b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_rest_connection_impl.h @@ -57,13 +57,13 @@ class TargetSslProxiesRestConnectionImpl DeleteTargetSslProxyRequest const& request) override; StatusOr DeleteTargetSslProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: DeleteTargetSslProxyRequest const& request) override; future> DeleteTargetSslProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetTargetSslProxy( @@ -75,13 +75,13 @@ class TargetSslProxiesRestConnectionImpl InsertTargetSslProxyRequest const& request) override; StatusOr InsertTargetSslProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: InsertTargetSslProxyRequest const& request) override; future> InsertTargetSslProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -93,13 +93,13 @@ class TargetSslProxiesRestConnectionImpl SetBackendServiceRequest const& request) override; StatusOr SetBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetBackendServiceRequest const& request) override; future> SetBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -107,13 +107,13 @@ class TargetSslProxiesRestConnectionImpl SetCertificateMapRequest const& request) override; StatusOr SetCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetCertificateMapRequest const& request) override; future> SetCertificateMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetProxyHeader( @@ -121,12 +121,12 @@ class TargetSslProxiesRestConnectionImpl SetProxyHeaderRequest const& request) override; StatusOr SetProxyHeader( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetProxyHeaderRequest const& request) override; future> SetProxyHeader( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -134,13 +134,13 @@ class TargetSslProxiesRestConnectionImpl SetSslCertificatesRequest const& request) override; StatusOr SetSslCertificates( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslCertificatesRequest const& request) override; future> SetSslCertificates( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetSslPolicy( @@ -148,12 +148,12 @@ class TargetSslProxiesRestConnectionImpl SetSslPolicyRequest const& request) override; StatusOr SetSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslPolicyRequest const& request) override; future> SetSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.cc b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.cc index 87c10ce7de7a3..956ab446bb41e 100644 --- a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.cc +++ b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.cc @@ -54,7 +54,7 @@ TargetSslProxiesTracingConnection::DeleteTargetSslProxy( auto span = internal::MakeSpan( "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" "DeleteTargetSslProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteTargetSslProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -104,7 +104,7 @@ TargetSslProxiesTracingConnection::InsertTargetSslProxy( auto span = internal::MakeSpan( "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" "InsertTargetSslProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertTargetSslProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -156,7 +156,7 @@ TargetSslProxiesTracingConnection::SetBackendService( auto span = internal::MakeSpan( "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" "SetBackendService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetBackendService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -194,7 +194,7 @@ TargetSslProxiesTracingConnection::SetCertificateMap( auto span = internal::MakeSpan( "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" "SetCertificateMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetCertificateMap(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -232,7 +232,7 @@ TargetSslProxiesTracingConnection::SetProxyHeader( auto span = internal::MakeSpan( "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" "SetProxyHeader"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetProxyHeader(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -271,7 +271,7 @@ TargetSslProxiesTracingConnection::SetSslCertificates( auto span = internal::MakeSpan( "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" "SetSslCertificates"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetSslCertificates(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -309,7 +309,7 @@ TargetSslProxiesTracingConnection::SetSslPolicy( auto span = internal::MakeSpan( "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" "SetSslPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetSslPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection.cc b/google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection.cc index 3f0a75f8b6b6c..7fbe5bfc7d6c5 100644 --- a/google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection.cc +++ b/google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection.cc @@ -47,7 +47,7 @@ TargetSslProxiesConnection::DeleteTargetSslProxy( StatusOr TargetSslProxiesConnection::DeleteTargetSslProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: DeleteTargetSslProxyRequest const&) { return StatusOr( @@ -56,8 +56,7 @@ TargetSslProxiesConnection::DeleteTargetSslProxy( future> TargetSslProxiesConnection::DeleteTargetSslProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -81,7 +80,7 @@ TargetSslProxiesConnection::InsertTargetSslProxy( StatusOr TargetSslProxiesConnection::InsertTargetSslProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: InsertTargetSslProxyRequest const&) { return StatusOr( @@ -90,8 +89,7 @@ TargetSslProxiesConnection::InsertTargetSslProxy( future> TargetSslProxiesConnection::InsertTargetSslProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -116,7 +114,7 @@ TargetSslProxiesConnection::SetBackendService( StatusOr TargetSslProxiesConnection::SetBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetBackendServiceRequest const&) { return StatusOr( @@ -125,8 +123,7 @@ TargetSslProxiesConnection::SetBackendService( future> TargetSslProxiesConnection::SetBackendService( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -143,7 +140,7 @@ TargetSslProxiesConnection::SetCertificateMap( StatusOr TargetSslProxiesConnection::SetCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetCertificateMapRequest const&) { return StatusOr( @@ -152,8 +149,7 @@ TargetSslProxiesConnection::SetCertificateMap( future> TargetSslProxiesConnection::SetCertificateMap( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -170,7 +166,7 @@ TargetSslProxiesConnection::SetProxyHeader( StatusOr TargetSslProxiesConnection::SetProxyHeader( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetProxyHeaderRequest const&) { return StatusOr( @@ -179,8 +175,7 @@ TargetSslProxiesConnection::SetProxyHeader( future> TargetSslProxiesConnection::SetProxyHeader( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -197,7 +192,7 @@ TargetSslProxiesConnection::SetSslCertificates( StatusOr TargetSslProxiesConnection::SetSslCertificates( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslCertificatesRequest const&) { return StatusOr( @@ -206,8 +201,7 @@ TargetSslProxiesConnection::SetSslCertificates( future> TargetSslProxiesConnection::SetSslCertificates( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -224,7 +218,7 @@ TargetSslProxiesConnection::SetSslPolicy( StatusOr TargetSslProxiesConnection::SetSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslPolicyRequest const&) { return StatusOr( @@ -233,8 +227,7 @@ TargetSslProxiesConnection::SetSslPolicy( future> TargetSslProxiesConnection::SetSslPolicy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection.h b/google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection.h index dbf061994c5e9..534cb019ce861 100644 --- a/google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection.h +++ b/google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_retry_traits.h" #include "google/cloud/compute/target_ssl_proxies/v1/target_ssl_proxies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,14 +193,13 @@ class TargetSslProxiesConnection { DeleteTargetSslProxyRequest const& request); virtual StatusOr - DeleteTargetSslProxy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteTargetSslProxy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: DeleteTargetSslProxyRequest const& request); virtual future> DeleteTargetSslProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -212,14 +211,13 @@ class TargetSslProxiesConnection { InsertTargetSslProxyRequest const& request); virtual StatusOr - InsertTargetSslProxy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertTargetSslProxy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: InsertTargetSslProxyRequest const& request); virtual future> InsertTargetSslProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -231,13 +229,13 @@ class TargetSslProxiesConnection { SetBackendServiceRequest const& request); virtual StatusOr - SetBackendService(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetBackendService(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetBackendServiceRequest const& request); virtual future> SetBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -245,13 +243,13 @@ class TargetSslProxiesConnection { SetCertificateMapRequest const& request); virtual StatusOr - SetCertificateMap(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetCertificateMap(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetCertificateMapRequest const& request); virtual future> SetCertificateMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -259,12 +257,12 @@ class TargetSslProxiesConnection { SetProxyHeaderRequest const& request); virtual StatusOr SetProxyHeader( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetProxyHeaderRequest const& request); virtual future> - SetProxyHeader(google::cloud::ExperimentalTag, + SetProxyHeader(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -272,13 +270,13 @@ class TargetSslProxiesConnection { SetSslCertificatesRequest const& request); virtual StatusOr - SetSslCertificates(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetSslCertificates(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslCertificatesRequest const& request); virtual future> SetSslCertificates( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -286,12 +284,12 @@ class TargetSslProxiesConnection { SetSslPolicyRequest const& request); virtual StatusOr SetSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslPolicyRequest const& request); virtual future> - SetSslPolicy(google::cloud::ExperimentalTag, + SetSslPolicy(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_rest_connection_impl.cc b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_rest_connection_impl.cc index 411ce91a9a93f..ef0a8b1554e5a 100644 --- a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_rest_connection_impl.cc +++ b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_rest_connection_impl.cc @@ -148,7 +148,7 @@ TargetTcpProxiesRestConnectionImpl::DeleteTargetTcpProxy( StatusOr TargetTcpProxiesRestConnectionImpl::DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -165,7 +165,7 @@ TargetTcpProxiesRestConnectionImpl::DeleteTargetTcpProxy( future> TargetTcpProxiesRestConnectionImpl::DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -293,7 +293,7 @@ TargetTcpProxiesRestConnectionImpl::InsertTargetTcpProxy( StatusOr TargetTcpProxiesRestConnectionImpl::InsertTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -310,7 +310,7 @@ TargetTcpProxiesRestConnectionImpl::InsertTargetTcpProxy( future> TargetTcpProxiesRestConnectionImpl::InsertTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -461,7 +461,7 @@ TargetTcpProxiesRestConnectionImpl::SetBackendService( StatusOr TargetTcpProxiesRestConnectionImpl::SetBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: SetBackendServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -478,7 +478,7 @@ TargetTcpProxiesRestConnectionImpl::SetBackendService( future> TargetTcpProxiesRestConnectionImpl::SetBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -590,7 +590,7 @@ TargetTcpProxiesRestConnectionImpl::SetProxyHeader( StatusOr TargetTcpProxiesRestConnectionImpl::SetProxyHeader( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: SetProxyHeaderRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -607,7 +607,7 @@ TargetTcpProxiesRestConnectionImpl::SetProxyHeader( future> TargetTcpProxiesRestConnectionImpl::SetProxyHeader( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_rest_connection_impl.h b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_rest_connection_impl.h index 6513a83b7ca49..d1ed4a40abce7 100644 --- a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_rest_connection_impl.h +++ b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_rest_connection_impl.h @@ -63,13 +63,13 @@ class TargetTcpProxiesRestConnectionImpl DeleteTargetTcpProxyRequest const& request) override; StatusOr DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const& request) override; future> DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetTargetTcpProxy( @@ -81,13 +81,13 @@ class TargetTcpProxiesRestConnectionImpl InsertTargetTcpProxyRequest const& request) override; StatusOr InsertTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const& request) override; future> InsertTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -99,13 +99,13 @@ class TargetTcpProxiesRestConnectionImpl SetBackendServiceRequest const& request) override; StatusOr SetBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: SetBackendServiceRequest const& request) override; future> SetBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetProxyHeader( @@ -113,12 +113,12 @@ class TargetTcpProxiesRestConnectionImpl SetProxyHeaderRequest const& request) override; StatusOr SetProxyHeader( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: SetProxyHeaderRequest const& request) override; future> SetProxyHeader( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.cc b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.cc index 551d4acfc3025..9a6ac22bb7536 100644 --- a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.cc +++ b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.cc @@ -70,7 +70,7 @@ TargetTcpProxiesTracingConnection::DeleteTargetTcpProxy( auto span = internal::MakeSpan( "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" "DeleteTargetTcpProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteTargetTcpProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -120,7 +120,7 @@ TargetTcpProxiesTracingConnection::InsertTargetTcpProxy( auto span = internal::MakeSpan( "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" "InsertTargetTcpProxy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertTargetTcpProxy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -172,7 +172,7 @@ TargetTcpProxiesTracingConnection::SetBackendService( auto span = internal::MakeSpan( "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" "SetBackendService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetBackendService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -210,7 +210,7 @@ TargetTcpProxiesTracingConnection::SetProxyHeader( auto span = internal::MakeSpan( "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" "SetProxyHeader"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetProxyHeader(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection.cc b/google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection.cc index 46c393c8dfded..45bc7481428b5 100644 --- a/google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection.cc +++ b/google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection.cc @@ -57,7 +57,7 @@ TargetTcpProxiesConnection::DeleteTargetTcpProxy( StatusOr TargetTcpProxiesConnection::DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ TargetTcpProxiesConnection::DeleteTargetTcpProxy( future> TargetTcpProxiesConnection::DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -91,7 +90,7 @@ TargetTcpProxiesConnection::InsertTargetTcpProxy( StatusOr TargetTcpProxiesConnection::InsertTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const&) { return StatusOr( @@ -100,8 +99,7 @@ TargetTcpProxiesConnection::InsertTargetTcpProxy( future> TargetTcpProxiesConnection::InsertTargetTcpProxy( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -126,7 +124,7 @@ TargetTcpProxiesConnection::SetBackendService( StatusOr TargetTcpProxiesConnection::SetBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: SetBackendServiceRequest const&) { return StatusOr( @@ -135,8 +133,7 @@ TargetTcpProxiesConnection::SetBackendService( future> TargetTcpProxiesConnection::SetBackendService( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -153,7 +150,7 @@ TargetTcpProxiesConnection::SetProxyHeader( StatusOr TargetTcpProxiesConnection::SetProxyHeader( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: SetProxyHeaderRequest const&) { return StatusOr( @@ -162,8 +159,7 @@ TargetTcpProxiesConnection::SetProxyHeader( future> TargetTcpProxiesConnection::SetProxyHeader( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection.h b/google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection.h index e1d68583775f9..e98180bcfffb8 100644 --- a/google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection.h +++ b/google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_retry_traits.h" #include "google/cloud/compute/target_tcp_proxies/v1/target_tcp_proxies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,14 +199,13 @@ class TargetTcpProxiesConnection { DeleteTargetTcpProxyRequest const& request); virtual StatusOr - DeleteTargetTcpProxy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteTargetTcpProxy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const& request); virtual future> DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -218,14 +217,13 @@ class TargetTcpProxiesConnection { InsertTargetTcpProxyRequest const& request); virtual StatusOr - InsertTargetTcpProxy(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertTargetTcpProxy(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const& request); virtual future> InsertTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -237,13 +235,13 @@ class TargetTcpProxiesConnection { SetBackendServiceRequest const& request); virtual StatusOr - SetBackendService(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + SetBackendService(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: SetBackendServiceRequest const& request); virtual future> SetBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -251,12 +249,12 @@ class TargetTcpProxiesConnection { SetProxyHeaderRequest const& request); virtual StatusOr SetProxyHeader( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: SetProxyHeaderRequest const& request); virtual future> - SetProxyHeader(google::cloud::ExperimentalTag, + SetProxyHeader(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_rest_connection_impl.cc b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_rest_connection_impl.cc index bc504cbe684aa..9fb23efb841e2 100644 --- a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_rest_connection_impl.cc +++ b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_rest_connection_impl.cc @@ -150,7 +150,7 @@ TargetVpnGatewaysRestConnectionImpl::DeleteTargetVpnGateway( StatusOr TargetVpnGatewaysRestConnectionImpl::DeleteTargetVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: DeleteTargetVpnGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -167,7 +167,7 @@ TargetVpnGatewaysRestConnectionImpl::DeleteTargetVpnGateway( future> TargetVpnGatewaysRestConnectionImpl::DeleteTargetVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -299,7 +299,7 @@ TargetVpnGatewaysRestConnectionImpl::InsertTargetVpnGateway( StatusOr TargetVpnGatewaysRestConnectionImpl::InsertTargetVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: InsertTargetVpnGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -316,7 +316,7 @@ TargetVpnGatewaysRestConnectionImpl::InsertTargetVpnGateway( future> TargetVpnGatewaysRestConnectionImpl::InsertTargetVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -472,7 +472,7 @@ TargetVpnGatewaysRestConnectionImpl::SetLabels( StatusOr TargetVpnGatewaysRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: SetLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -489,7 +489,7 @@ TargetVpnGatewaysRestConnectionImpl::SetLabels( future> TargetVpnGatewaysRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_rest_connection_impl.h b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_rest_connection_impl.h index d18cb4855de14..024a25d2d6531 100644 --- a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_rest_connection_impl.h +++ b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_rest_connection_impl.h @@ -65,13 +65,13 @@ class TargetVpnGatewaysRestConnectionImpl DeleteTargetVpnGatewayRequest const& request) override; StatusOr DeleteTargetVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: DeleteTargetVpnGatewayRequest const& request) override; future> DeleteTargetVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -84,13 +84,13 @@ class TargetVpnGatewaysRestConnectionImpl InsertTargetVpnGatewayRequest const& request) override; StatusOr InsertTargetVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: InsertTargetVpnGatewayRequest const& request) override; future> InsertTargetVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -102,12 +102,12 @@ class TargetVpnGatewaysRestConnectionImpl SetLabelsRequest const& request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.cc b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.cc index 02170fa793d2a..8979579824eb4 100644 --- a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.cc +++ b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.cc @@ -70,7 +70,7 @@ TargetVpnGatewaysTracingConnection::DeleteTargetVpnGateway( auto span = internal::MakeSpan( "compute_target_vpn_gateways_v1::TargetVpnGatewaysConnection::" "DeleteTargetVpnGateway"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteTargetVpnGateway( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -120,7 +120,7 @@ TargetVpnGatewaysTracingConnection::InsertTargetVpnGateway( auto span = internal::MakeSpan( "compute_target_vpn_gateways_v1::TargetVpnGatewaysConnection::" "InsertTargetVpnGateway"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InsertTargetVpnGateway( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -170,7 +170,7 @@ TargetVpnGatewaysTracingConnection::SetLabels( SetLabelsRequest const& request) { auto span = internal::MakeSpan( "compute_target_vpn_gateways_v1::TargetVpnGatewaysConnection::SetLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection.cc b/google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection.cc index 172cec08a34f1..2018bea1a911e 100644 --- a/google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection.cc +++ b/google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection.cc @@ -57,7 +57,7 @@ TargetVpnGatewaysConnection::DeleteTargetVpnGateway( StatusOr TargetVpnGatewaysConnection::DeleteTargetVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: DeleteTargetVpnGatewayRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ TargetVpnGatewaysConnection::DeleteTargetVpnGateway( future> TargetVpnGatewaysConnection::DeleteTargetVpnGateway( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -91,7 +90,7 @@ TargetVpnGatewaysConnection::InsertTargetVpnGateway( StatusOr TargetVpnGatewaysConnection::InsertTargetVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: InsertTargetVpnGatewayRequest const&) { return StatusOr( @@ -100,8 +99,7 @@ TargetVpnGatewaysConnection::InsertTargetVpnGateway( future> TargetVpnGatewaysConnection::InsertTargetVpnGateway( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -126,7 +124,7 @@ TargetVpnGatewaysConnection::SetLabels( StatusOr TargetVpnGatewaysConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: SetLabelsRequest const&) { return StatusOr( @@ -135,8 +133,7 @@ TargetVpnGatewaysConnection::SetLabels( future> TargetVpnGatewaysConnection::SetLabels( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection.h b/google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection.h index 600255bd61cc7..8668342cf070a 100644 --- a/google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection.h +++ b/google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_retry_traits.h" #include "google/cloud/compute/target_vpn_gateways/v1/target_vpn_gateways_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -200,14 +200,13 @@ class TargetVpnGatewaysConnection { DeleteTargetVpnGatewayRequest const& request); virtual StatusOr - DeleteTargetVpnGateway(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + DeleteTargetVpnGateway(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: DeleteTargetVpnGatewayRequest const& request); virtual future> DeleteTargetVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr @@ -219,14 +218,13 @@ class TargetVpnGatewaysConnection { InsertTargetVpnGatewayRequest const& request); virtual StatusOr - InsertTargetVpnGateway(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, + InsertTargetVpnGateway(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: InsertTargetVpnGatewayRequest const& request); virtual future> InsertTargetVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -238,12 +236,12 @@ class TargetVpnGatewaysConnection { SetLabelsRequest const& request); virtual StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: SetLabelsRequest const& request); virtual future> - SetLabels(google::cloud::ExperimentalTag, + SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/url_maps/v1/internal/url_maps_rest_connection_impl.cc b/google/cloud/compute/url_maps/v1/internal/url_maps_rest_connection_impl.cc index 36b659df29d8b..0d9f3f2907b79 100644 --- a/google/cloud/compute/url_maps/v1/internal/url_maps_rest_connection_impl.cc +++ b/google/cloud/compute/url_maps/v1/internal/url_maps_rest_connection_impl.cc @@ -144,7 +144,7 @@ UrlMapsRestConnectionImpl::DeleteUrlMap( StatusOr UrlMapsRestConnectionImpl::DeleteUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -162,7 +162,7 @@ UrlMapsRestConnectionImpl::DeleteUrlMap( future> UrlMapsRestConnectionImpl::DeleteUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -291,7 +291,7 @@ UrlMapsRestConnectionImpl::InsertUrlMap( StatusOr UrlMapsRestConnectionImpl::InsertUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -309,7 +309,7 @@ UrlMapsRestConnectionImpl::InsertUrlMap( future> UrlMapsRestConnectionImpl::InsertUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -421,7 +421,7 @@ UrlMapsRestConnectionImpl::InvalidateCache( StatusOr UrlMapsRestConnectionImpl::InvalidateCache( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -438,7 +438,7 @@ UrlMapsRestConnectionImpl::InvalidateCache( future> UrlMapsRestConnectionImpl::InvalidateCache( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -587,7 +587,7 @@ UrlMapsRestConnectionImpl::PatchUrlMap( StatusOr UrlMapsRestConnectionImpl::PatchUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -605,7 +605,7 @@ UrlMapsRestConnectionImpl::PatchUrlMap( future> UrlMapsRestConnectionImpl::PatchUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -718,7 +718,7 @@ UrlMapsRestConnectionImpl::UpdateUrlMap( StatusOr UrlMapsRestConnectionImpl::UpdateUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -736,7 +736,7 @@ UrlMapsRestConnectionImpl::UpdateUrlMap( future> UrlMapsRestConnectionImpl::UpdateUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/url_maps/v1/internal/url_maps_rest_connection_impl.h b/google/cloud/compute/url_maps/v1/internal/url_maps_rest_connection_impl.h index a9341cbd51db7..a928854878366 100644 --- a/google/cloud/compute/url_maps/v1/internal/url_maps_rest_connection_impl.h +++ b/google/cloud/compute/url_maps/v1/internal/url_maps_rest_connection_impl.h @@ -61,12 +61,12 @@ class UrlMapsRestConnectionImpl request) override; StatusOr DeleteUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const& request) override; future> DeleteUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetUrlMap( @@ -78,12 +78,12 @@ class UrlMapsRestConnectionImpl request) override; StatusOr InsertUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const& request) override; future> InsertUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> InvalidateCache( @@ -91,12 +91,12 @@ class UrlMapsRestConnectionImpl request) override; StatusOr InvalidateCache( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& request) override; future> InvalidateCache( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListUrlMaps( @@ -108,12 +108,12 @@ class UrlMapsRestConnectionImpl request) override; StatusOr PatchUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const& request) override; future> PatchUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> UpdateUrlMap( @@ -121,12 +121,12 @@ class UrlMapsRestConnectionImpl request) override; StatusOr UpdateUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& request) override; future> UpdateUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr Validate( diff --git a/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.cc b/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.cc index 5a857139afa9e..8ee7e0d4532cc 100644 --- a/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.cc +++ b/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.cc @@ -64,7 +64,7 @@ UrlMapsTracingConnection::DeleteUrlMap( request) { auto span = internal::MakeSpan( "compute_url_maps_v1::UrlMapsConnection::DeleteUrlMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteUrlMap(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -109,7 +109,7 @@ UrlMapsTracingConnection::InsertUrlMap( request) { auto span = internal::MakeSpan( "compute_url_maps_v1::UrlMapsConnection::InsertUrlMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertUrlMap(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -144,7 +144,7 @@ UrlMapsTracingConnection::InvalidateCache( request) { auto span = internal::MakeSpan( "compute_url_maps_v1::UrlMapsConnection::InvalidateCache"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InvalidateCache(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -190,7 +190,7 @@ UrlMapsTracingConnection::PatchUrlMap( request) { auto span = internal::MakeSpan("compute_url_maps_v1::UrlMapsConnection::PatchUrlMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PatchUrlMap(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -225,7 +225,7 @@ UrlMapsTracingConnection::UpdateUrlMap( request) { auto span = internal::MakeSpan( "compute_url_maps_v1::UrlMapsConnection::UpdateUrlMap"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateUrlMap(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/url_maps/v1/url_maps_connection.cc b/google/cloud/compute/url_maps/v1/url_maps_connection.cc index 8cff7716123f1..27372524d1c44 100644 --- a/google/cloud/compute/url_maps/v1/url_maps_connection.cc +++ b/google/cloud/compute/url_maps/v1/url_maps_connection.cc @@ -56,7 +56,7 @@ UrlMapsConnection::DeleteUrlMap( StatusOr UrlMapsConnection::DeleteUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -64,8 +64,7 @@ UrlMapsConnection::DeleteUrlMap( future> UrlMapsConnection::DeleteUrlMap( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +85,7 @@ UrlMapsConnection::InsertUrlMap( StatusOr UrlMapsConnection::InsertUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,8 +93,7 @@ UrlMapsConnection::InsertUrlMap( future> UrlMapsConnection::InsertUrlMap( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -111,7 +109,7 @@ UrlMapsConnection::InvalidateCache( StatusOr UrlMapsConnection::InvalidateCache( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -119,8 +117,7 @@ UrlMapsConnection::InvalidateCache( future> UrlMapsConnection::InvalidateCache( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -144,7 +141,7 @@ UrlMapsConnection::PatchUrlMap( StatusOr UrlMapsConnection::PatchUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -152,8 +149,7 @@ UrlMapsConnection::PatchUrlMap( future> UrlMapsConnection::PatchUrlMap( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -169,7 +165,7 @@ UrlMapsConnection::UpdateUrlMap( StatusOr UrlMapsConnection::UpdateUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -177,8 +173,7 @@ UrlMapsConnection::UpdateUrlMap( future> UrlMapsConnection::UpdateUrlMap( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/url_maps/v1/url_maps_connection.h b/google/cloud/compute/url_maps/v1/url_maps_connection.h index 323be9727022d..ea01cb122b99d 100644 --- a/google/cloud/compute/url_maps/v1/url_maps_connection.h +++ b/google/cloud/compute/url_maps/v1/url_maps_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/url_maps/v1/internal/url_maps_retry_traits.h" #include "google/cloud/compute/url_maps/v1/url_maps_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -195,12 +195,12 @@ class UrlMapsConnection { request); virtual StatusOr DeleteUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const& request); virtual future> - DeleteUrlMap(google::cloud::ExperimentalTag, + DeleteUrlMap(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetUrlMap( @@ -213,12 +213,12 @@ class UrlMapsConnection { request); virtual StatusOr InsertUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const& request); virtual future> - InsertUrlMap(google::cloud::ExperimentalTag, + InsertUrlMap(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -227,12 +227,12 @@ class UrlMapsConnection { request); virtual StatusOr InvalidateCache( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& request); virtual future> - InvalidateCache(google::cloud::ExperimentalTag, + InvalidateCache(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange ListUrlMaps( @@ -244,12 +244,12 @@ class UrlMapsConnection { request); virtual StatusOr PatchUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const& request); virtual future> - PatchUrlMap(google::cloud::ExperimentalTag, + PatchUrlMap(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual future> @@ -258,12 +258,12 @@ class UrlMapsConnection { request); virtual StatusOr UpdateUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& request); virtual future> - UpdateUrlMap(google::cloud::ExperimentalTag, + UpdateUrlMap(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr diff --git a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_rest_connection_impl.cc b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_rest_connection_impl.cc index de80e0d616e48..04d2ca109655f 100644 --- a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_rest_connection_impl.cc +++ b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_rest_connection_impl.cc @@ -147,7 +147,7 @@ VpnGatewaysRestConnectionImpl::DeleteVpnGateway( StatusOr VpnGatewaysRestConnectionImpl::DeleteVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1:: DeleteVpnGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -164,7 +164,7 @@ VpnGatewaysRestConnectionImpl::DeleteVpnGateway( future> VpnGatewaysRestConnectionImpl::DeleteVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -313,7 +313,7 @@ VpnGatewaysRestConnectionImpl::InsertVpnGateway( StatusOr VpnGatewaysRestConnectionImpl::InsertVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1:: InsertVpnGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -330,7 +330,7 @@ VpnGatewaysRestConnectionImpl::InsertVpnGateway( future> VpnGatewaysRestConnectionImpl::InsertVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -483,7 +483,7 @@ VpnGatewaysRestConnectionImpl::SetLabels( StatusOr VpnGatewaysRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -501,7 +501,7 @@ VpnGatewaysRestConnectionImpl::SetLabels( future> VpnGatewaysRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_rest_connection_impl.h b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_rest_connection_impl.h index ff49c1cf32a96..1246b589e12e2 100644 --- a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_rest_connection_impl.h +++ b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_rest_connection_impl.h @@ -62,12 +62,12 @@ class VpnGatewaysRestConnectionImpl DeleteVpnGatewayRequest const& request) override; StatusOr DeleteVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1:: DeleteVpnGatewayRequest const& request) override; future> DeleteVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetVpnGateway( @@ -84,12 +84,12 @@ class VpnGatewaysRestConnectionImpl InsertVpnGatewayRequest const& request) override; StatusOr InsertVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1:: InsertVpnGatewayRequest const& request) override; future> InsertVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListVpnGateways( @@ -101,12 +101,12 @@ class VpnGatewaysRestConnectionImpl request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr diff --git a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.cc b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.cc index 082597a0fbaac..f27d725305952 100644 --- a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.cc +++ b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.cc @@ -65,7 +65,7 @@ VpnGatewaysTracingConnection::DeleteVpnGateway( DeleteVpnGatewayRequest const& request) { auto span = internal::MakeSpan( "compute_vpn_gateways_v1::VpnGatewaysConnection::DeleteVpnGateway"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteVpnGateway(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -120,7 +120,7 @@ VpnGatewaysTracingConnection::InsertVpnGateway( InsertVpnGatewayRequest const& request) { auto span = internal::MakeSpan( "compute_vpn_gateways_v1::VpnGatewaysConnection::InsertVpnGateway"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertVpnGateway(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -168,7 +168,7 @@ VpnGatewaysTracingConnection::SetLabels( request) { auto span = internal::MakeSpan( "compute_vpn_gateways_v1::VpnGatewaysConnection::SetLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection.cc b/google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection.cc index a6c4e17b35a1d..919ec3dfd6bb1 100644 --- a/google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection.cc +++ b/google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection.cc @@ -57,7 +57,7 @@ VpnGatewaysConnection::DeleteVpnGateway( StatusOr VpnGatewaysConnection::DeleteVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1:: DeleteVpnGatewayRequest const&) { return StatusOr( @@ -66,8 +66,7 @@ VpnGatewaysConnection::DeleteVpnGateway( future> VpnGatewaysConnection::DeleteVpnGateway( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -96,7 +95,7 @@ VpnGatewaysConnection::InsertVpnGateway( StatusOr VpnGatewaysConnection::InsertVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1:: InsertVpnGatewayRequest const&) { return StatusOr( @@ -105,8 +104,7 @@ VpnGatewaysConnection::InsertVpnGateway( future> VpnGatewaysConnection::InsertVpnGateway( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -130,7 +128,7 @@ VpnGatewaysConnection::SetLabels( StatusOr VpnGatewaysConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -138,8 +136,7 @@ VpnGatewaysConnection::SetLabels( future> VpnGatewaysConnection::SetLabels( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection.h b/google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection.h index ad6dbc9951ad2..61e6c863690cf 100644 --- a/google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection.h +++ b/google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_retry_traits.h" #include "google/cloud/compute/vpn_gateways/v1/vpn_gateways_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -195,12 +195,12 @@ class VpnGatewaysConnection { DeleteVpnGatewayRequest const& request); virtual StatusOr DeleteVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1:: DeleteVpnGatewayRequest const& request); virtual future> - DeleteVpnGateway(google::cloud::ExperimentalTag, + DeleteVpnGateway(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetVpnGateway( @@ -218,12 +218,12 @@ class VpnGatewaysConnection { InsertVpnGatewayRequest const& request); virtual StatusOr InsertVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1:: InsertVpnGatewayRequest const& request); virtual future> - InsertVpnGateway(google::cloud::ExperimentalTag, + InsertVpnGateway(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -237,12 +237,12 @@ class VpnGatewaysConnection { request); virtual StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const& request); virtual future> - SetLabels(google::cloud::ExperimentalTag, + SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr diff --git a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_rest_connection_impl.cc b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_rest_connection_impl.cc index 0c39b239b9480..c3f66093e7b66 100644 --- a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_rest_connection_impl.cc +++ b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_rest_connection_impl.cc @@ -146,7 +146,7 @@ VpnTunnelsRestConnectionImpl::DeleteVpnTunnel( StatusOr VpnTunnelsRestConnectionImpl::DeleteVpnTunnel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1::DeleteVpnTunnelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -163,7 +163,7 @@ VpnTunnelsRestConnectionImpl::DeleteVpnTunnel( future> VpnTunnelsRestConnectionImpl::DeleteVpnTunnel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -295,7 +295,7 @@ VpnTunnelsRestConnectionImpl::InsertVpnTunnel( StatusOr VpnTunnelsRestConnectionImpl::InsertVpnTunnel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1::InsertVpnTunnelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -312,7 +312,7 @@ VpnTunnelsRestConnectionImpl::InsertVpnTunnel( future> VpnTunnelsRestConnectionImpl::InsertVpnTunnel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< @@ -465,7 +465,7 @@ VpnTunnelsRestConnectionImpl::SetLabels( StatusOr VpnTunnelsRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -483,7 +483,7 @@ VpnTunnelsRestConnectionImpl::SetLabels( future> VpnTunnelsRestConnectionImpl::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); return rest_internal::AsyncRestAwaitLongRunningOperation< diff --git a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_rest_connection_impl.h b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_rest_connection_impl.h index f2e9f552d5954..5ae02aa9bea1b 100644 --- a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_rest_connection_impl.h +++ b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_rest_connection_impl.h @@ -61,12 +61,12 @@ class VpnTunnelsRestConnectionImpl DeleteVpnTunnelRequest const& request) override; StatusOr DeleteVpnTunnel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1:: DeleteVpnTunnelRequest const& request) override; future> DeleteVpnTunnel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetVpnTunnel( @@ -78,12 +78,12 @@ class VpnTunnelsRestConnectionImpl InsertVpnTunnelRequest const& request) override; StatusOr InsertVpnTunnel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1:: InsertVpnTunnelRequest const& request) override; future> InsertVpnTunnel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListVpnTunnels( @@ -95,12 +95,12 @@ class VpnTunnelsRestConnectionImpl request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.cc b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.cc index 9fd285e595c78..1c3e676bbebc4 100644 --- a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.cc +++ b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.cc @@ -64,7 +64,7 @@ VpnTunnelsTracingConnection::DeleteVpnTunnel( request) { auto span = internal::MakeSpan( "compute_vpn_tunnels_v1::VpnTunnelsConnection::DeleteVpnTunnel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteVpnTunnel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -109,7 +109,7 @@ VpnTunnelsTracingConnection::InsertVpnTunnel( request) { auto span = internal::MakeSpan( "compute_vpn_tunnels_v1::VpnTunnelsConnection::InsertVpnTunnel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->InsertVpnTunnel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -157,7 +157,7 @@ VpnTunnelsTracingConnection::SetLabels( request) { auto span = internal::MakeSpan( "compute_vpn_tunnels_v1::VpnTunnelsConnection::SetLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection.cc b/google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection.cc index a555b718dd1f9..54accd9a859c4 100644 --- a/google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection.cc +++ b/google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection.cc @@ -55,8 +55,7 @@ VpnTunnelsConnection::DeleteVpnTunnel(google::cloud::cpp::compute::vpn_tunnels:: } StatusOr -VpnTunnelsConnection::DeleteVpnTunnel(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, +VpnTunnelsConnection::DeleteVpnTunnel(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels:: v1::DeleteVpnTunnelRequest const&) { return StatusOr( @@ -65,8 +64,7 @@ VpnTunnelsConnection::DeleteVpnTunnel(google::cloud::ExperimentalTag, future> VpnTunnelsConnection::DeleteVpnTunnel( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -87,8 +85,7 @@ VpnTunnelsConnection::InsertVpnTunnel(google::cloud::cpp::compute::vpn_tunnels:: } StatusOr -VpnTunnelsConnection::InsertVpnTunnel(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, +VpnTunnelsConnection::InsertVpnTunnel(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels:: v1::InsertVpnTunnelRequest const&) { return StatusOr( @@ -97,8 +94,7 @@ VpnTunnelsConnection::InsertVpnTunnel(google::cloud::ExperimentalTag, future> VpnTunnelsConnection::InsertVpnTunnel( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -122,7 +118,7 @@ VpnTunnelsConnection::SetLabels( StatusOr VpnTunnelsConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -130,8 +126,7 @@ VpnTunnelsConnection::SetLabels( future> VpnTunnelsConnection::SetLabels( - google::cloud::ExperimentalTag, - google::cloud::cpp::compute::v1::Operation const&) { + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection.h b/google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection.h index 2bb7829e57c8d..872c3b1773f78 100644 --- a/google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection.h +++ b/google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_retry_traits.h" #include "google/cloud/compute/vpn_tunnels/v1/vpn_tunnels_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -195,12 +195,12 @@ class VpnTunnelsConnection { DeleteVpnTunnelRequest const& request); virtual StatusOr DeleteVpnTunnel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1:: DeleteVpnTunnelRequest const& request); virtual future> - DeleteVpnTunnel(google::cloud::ExperimentalTag, + DeleteVpnTunnel(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StatusOr GetVpnTunnel( @@ -212,12 +212,12 @@ class VpnTunnelsConnection { InsertVpnTunnelRequest const& request); virtual StatusOr InsertVpnTunnel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1:: InsertVpnTunnelRequest const& request); virtual future> - InsertVpnTunnel(google::cloud::ExperimentalTag, + InsertVpnTunnel(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); virtual StreamRange @@ -231,12 +231,12 @@ class VpnTunnelsConnection { request); virtual StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& request); virtual future> - SetLabels(google::cloud::ExperimentalTag, + SetLabels(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation); }; diff --git a/google/cloud/compute/zone_operations/v1/zone_operations_connection.h b/google/cloud/compute/zone_operations/v1/zone_operations_connection.h index a6b9568394ec6..169988962d07f 100644 --- a/google/cloud/compute/zone_operations/v1/zone_operations_connection.h +++ b/google/cloud/compute/zone_operations/v1/zone_operations_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/compute/zone_operations/v1/internal/zone_operations_retry_traits.h" #include "google/cloud/compute/zone_operations/v1/zone_operations_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/compute/zones/v1/zones_connection.h b/google/cloud/compute/zones/v1/zones_connection.h index 3247c95cc0b36..93577315d9a22 100644 --- a/google/cloud/compute/zones/v1/zones_connection.h +++ b/google/cloud/compute/zones/v1/zones_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/compute/zones/v1/internal/zones_retry_traits.h" #include "google/cloud/compute/zones/v1/zones_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/confidentialcomputing/v1/confidential_computing_connection.h b/google/cloud/confidentialcomputing/v1/confidential_computing_connection.h index 0e4ce88d2dda7..0dc89f2422436 100644 --- a/google/cloud/confidentialcomputing/v1/confidential_computing_connection.h +++ b/google/cloud/confidentialcomputing/v1/confidential_computing_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/confidentialcomputing/v1/confidential_computing_connection_idempotency_policy.h" #include "google/cloud/confidentialcomputing/v1/internal/confidential_computing_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/config/v1/config_connection.cc b/google/cloud/config/v1/config_connection.cc index fca84d9356a13..2873f29c107ec 100644 --- a/google/cloud/config/v1/config_connection.cc +++ b/google/cloud/config/v1/config_connection.cc @@ -60,14 +60,14 @@ ConfigConnection::CreateDeployment( } StatusOr ConfigConnection::CreateDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::CreateDeploymentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ConfigConnection::CreateDeployment(google::cloud::ExperimentalTag, +ConfigConnection::CreateDeployment(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -83,14 +83,14 @@ ConfigConnection::UpdateDeployment( } StatusOr ConfigConnection::UpdateDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::UpdateDeploymentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ConfigConnection::UpdateDeployment(google::cloud::ExperimentalTag, +ConfigConnection::UpdateDeployment(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -106,14 +106,14 @@ ConfigConnection::DeleteDeployment( } StatusOr ConfigConnection::DeleteDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::DeleteDeploymentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ConfigConnection::DeleteDeployment(google::cloud::ExperimentalTag, +ConfigConnection::DeleteDeployment(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -178,14 +178,14 @@ ConfigConnection::LockDeployment( } StatusOr ConfigConnection::LockDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::LockDeploymentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ConfigConnection::LockDeployment(google::cloud::ExperimentalTag, +ConfigConnection::LockDeployment(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -201,14 +201,14 @@ ConfigConnection::UnlockDeployment( } StatusOr ConfigConnection::UnlockDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::UnlockDeploymentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ConfigConnection::UnlockDeployment(google::cloud::ExperimentalTag, +ConfigConnection::UnlockDeployment(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -229,14 +229,14 @@ ConfigConnection::CreatePreview( } StatusOr ConfigConnection::CreatePreview( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::CreatePreviewRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ConfigConnection::CreatePreview(google::cloud::ExperimentalTag, +ConfigConnection::CreatePreview(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -264,14 +264,14 @@ ConfigConnection::DeletePreview( } StatusOr ConfigConnection::DeletePreview( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::DeletePreviewRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ConfigConnection::DeletePreview(google::cloud::ExperimentalTag, +ConfigConnection::DeletePreview(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/config/v1/config_connection.h b/google/cloud/config/v1/config_connection.h index 244313c3fe3a7..fde31fa95cb60 100644 --- a/google/cloud/config/v1/config_connection.h +++ b/google/cloud/config/v1/config_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/config/v1/config_connection_idempotency_policy.h" #include "google/cloud/config/v1/internal/config_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -194,11 +194,11 @@ class ConfigConnection { google::cloud::config::v1::CreateDeploymentRequest const& request); virtual StatusOr CreateDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::CreateDeploymentRequest const& request); virtual future> - CreateDeployment(google::cloud::ExperimentalTag, + CreateDeployment(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -206,11 +206,11 @@ class ConfigConnection { google::cloud::config::v1::UpdateDeploymentRequest const& request); virtual StatusOr UpdateDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::UpdateDeploymentRequest const& request); virtual future> - UpdateDeployment(google::cloud::ExperimentalTag, + UpdateDeployment(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -218,11 +218,11 @@ class ConfigConnection { google::cloud::config::v1::DeleteDeploymentRequest const& request); virtual StatusOr DeleteDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::DeleteDeploymentRequest const& request); virtual future> - DeleteDeployment(google::cloud::ExperimentalTag, + DeleteDeployment(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListRevisions( @@ -257,11 +257,11 @@ class ConfigConnection { google::cloud::config::v1::LockDeploymentRequest const& request); virtual StatusOr LockDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::LockDeploymentRequest const& request); virtual future> - LockDeployment(google::cloud::ExperimentalTag, + LockDeployment(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -269,11 +269,11 @@ class ConfigConnection { google::cloud::config::v1::UnlockDeploymentRequest const& request); virtual StatusOr UnlockDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::UnlockDeploymentRequest const& request); virtual future> - UnlockDeployment(google::cloud::ExperimentalTag, + UnlockDeployment(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr ExportLockInfo( @@ -283,12 +283,11 @@ class ConfigConnection { google::cloud::config::v1::CreatePreviewRequest const& request); virtual StatusOr CreatePreview( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::CreatePreviewRequest const& request); virtual future> CreatePreview( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetPreview( google::cloud::config::v1::GetPreviewRequest const& request); @@ -300,12 +299,11 @@ class ConfigConnection { google::cloud::config::v1::DeletePreviewRequest const& request); virtual StatusOr DeletePreview( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::DeletePreviewRequest const& request); virtual future> DeletePreview( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr ExportPreviewResult( diff --git a/google/cloud/config/v1/internal/config_tracing_connection.cc b/google/cloud/config/v1/internal/config_tracing_connection.cc index 2e51dc7592d3a..74393a4e808c7 100644 --- a/google/cloud/config/v1/internal/config_tracing_connection.cc +++ b/google/cloud/config/v1/internal/config_tracing_connection.cc @@ -67,7 +67,7 @@ ConfigTracingConnection::CreateDeployment( google::cloud::config::v1::CreateDeploymentRequest const& request) { auto span = internal::MakeSpan("config_v1::ConfigConnection::CreateDeployment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateDeployment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -100,7 +100,7 @@ ConfigTracingConnection::UpdateDeployment( google::cloud::config::v1::UpdateDeploymentRequest const& request) { auto span = internal::MakeSpan("config_v1::ConfigConnection::UpdateDeployment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateDeployment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -133,7 +133,7 @@ ConfigTracingConnection::DeleteDeployment( google::cloud::config::v1::DeleteDeploymentRequest const& request) { auto span = internal::MakeSpan("config_v1::ConfigConnection::DeleteDeployment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteDeployment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -236,7 +236,7 @@ ConfigTracingConnection::LockDeployment( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::config::v1::LockDeploymentRequest const& request) { auto span = internal::MakeSpan("config_v1::ConfigConnection::LockDeployment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->LockDeployment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -268,7 +268,7 @@ ConfigTracingConnection::UnlockDeployment( google::cloud::config::v1::UnlockDeploymentRequest const& request) { auto span = internal::MakeSpan("config_v1::ConfigConnection::UnlockDeployment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UnlockDeployment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -306,7 +306,7 @@ StatusOr ConfigTracingConnection::CreatePreview( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::config::v1::CreatePreviewRequest const& request) { auto span = internal::MakeSpan("config_v1::ConfigConnection::CreatePreview"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreatePreview(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -353,7 +353,7 @@ StatusOr ConfigTracingConnection::DeletePreview( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::config::v1::DeletePreviewRequest const& request) { auto span = internal::MakeSpan("config_v1::ConfigConnection::DeletePreview"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeletePreview(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/connectors/v1/connectors_connection.cc b/google/cloud/connectors/v1/connectors_connection.cc index 99342c6b00100..56abcf5dacd50 100644 --- a/google/cloud/connectors/v1/connectors_connection.cc +++ b/google/cloud/connectors/v1/connectors_connection.cc @@ -61,14 +61,14 @@ ConnectorsConnection::CreateConnection( } StatusOr ConnectorsConnection::CreateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::CreateConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ConnectorsConnection::CreateConnection(google::cloud::ExperimentalTag, +ConnectorsConnection::CreateConnection(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -84,14 +84,14 @@ ConnectorsConnection::UpdateConnection( } StatusOr ConnectorsConnection::UpdateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::UpdateConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ConnectorsConnection::UpdateConnection(google::cloud::ExperimentalTag, +ConnectorsConnection::UpdateConnection(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -107,14 +107,14 @@ ConnectorsConnection::DeleteConnection( } StatusOr ConnectorsConnection::DeleteConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::DeleteConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ConnectorsConnection::DeleteConnection(google::cloud::ExperimentalTag, +ConnectorsConnection::DeleteConnection(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -180,7 +180,7 @@ ConnectorsConnection::RefreshConnectionSchemaMetadata( StatusOr ConnectorsConnection::RefreshConnectionSchemaMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1:: RefreshConnectionSchemaMetadataRequest const&) { return StatusOr( @@ -189,7 +189,7 @@ ConnectorsConnection::RefreshConnectionSchemaMetadata( future> ConnectorsConnection::RefreshConnectionSchemaMetadata( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/connectors/v1/connectors_connection.h b/google/cloud/connectors/v1/connectors_connection.h index cf33694faa5f8..fb10493aeb032 100644 --- a/google/cloud/connectors/v1/connectors_connection.h +++ b/google/cloud/connectors/v1/connectors_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/connectors/v1/connectors_connection_idempotency_policy.h" #include "google/cloud/connectors/v1/internal/connectors_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -198,11 +198,11 @@ class ConnectorsConnection { google::cloud::connectors::v1::CreateConnectionRequest const& request); virtual StatusOr CreateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::CreateConnectionRequest const& request); virtual future> - CreateConnection(google::cloud::ExperimentalTag, + CreateConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -210,11 +210,11 @@ class ConnectorsConnection { google::cloud::connectors::v1::UpdateConnectionRequest const& request); virtual StatusOr UpdateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::UpdateConnectionRequest const& request); virtual future> - UpdateConnection(google::cloud::ExperimentalTag, + UpdateConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -222,11 +222,11 @@ class ConnectorsConnection { google::cloud::connectors::v1::DeleteConnectionRequest const& request); virtual StatusOr DeleteConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::DeleteConnectionRequest const& request); virtual future> - DeleteConnection(google::cloud::ExperimentalTag, + DeleteConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListProviders( @@ -262,15 +262,14 @@ class ConnectorsConnection { virtual StatusOr RefreshConnectionSchemaMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1:: RefreshConnectionSchemaMetadataRequest const& request); virtual future< StatusOr> RefreshConnectionSchemaMetadata( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListRuntimeEntitySchemas( diff --git a/google/cloud/connectors/v1/internal/connectors_tracing_connection.cc b/google/cloud/connectors/v1/internal/connectors_tracing_connection.cc index 285a471a695b5..5e51899c26cdb 100644 --- a/google/cloud/connectors/v1/internal/connectors_tracing_connection.cc +++ b/google/cloud/connectors/v1/internal/connectors_tracing_connection.cc @@ -69,7 +69,7 @@ ConnectorsTracingConnection::CreateConnection( google::cloud::connectors::v1::CreateConnectionRequest const& request) { auto span = internal::MakeSpan( "connectors_v1::ConnectorsConnection::CreateConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateConnection(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -102,7 +102,7 @@ ConnectorsTracingConnection::UpdateConnection( google::cloud::connectors::v1::UpdateConnectionRequest const& request) { auto span = internal::MakeSpan( "connectors_v1::ConnectorsConnection::UpdateConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateConnection(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ ConnectorsTracingConnection::DeleteConnection( google::cloud::connectors::v1::DeleteConnectionRequest const& request) { auto span = internal::MakeSpan( "connectors_v1::ConnectorsConnection::DeleteConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteConnection(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -242,7 +242,7 @@ ConnectorsTracingConnection::RefreshConnectionSchemaMetadata( request) { auto span = internal::MakeSpan( "connectors_v1::ConnectorsConnection::RefreshConnectionSchemaMetadata"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RefreshConnectionSchemaMetadata( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/contactcenterinsights/v1/contact_center_insights_connection.cc b/google/cloud/contactcenterinsights/v1/contact_center_insights_connection.cc index c04077e767e91..5b003d1211c77 100644 --- a/google/cloud/contactcenterinsights/v1/contact_center_insights_connection.cc +++ b/google/cloud/contactcenterinsights/v1/contact_center_insights_connection.cc @@ -56,7 +56,7 @@ ContactCenterInsightsConnection::UploadConversation( StatusOr ContactCenterInsightsConnection::UploadConversation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: UploadConversationRequest const&) { return StatusOr( @@ -65,7 +65,7 @@ ContactCenterInsightsConnection::UploadConversation( future> ContactCenterInsightsConnection::UploadConversation( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -108,7 +108,7 @@ ContactCenterInsightsConnection::CreateAnalysis( StatusOr ContactCenterInsightsConnection::CreateAnalysis( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -116,7 +116,7 @@ ContactCenterInsightsConnection::CreateAnalysis( future> ContactCenterInsightsConnection::CreateAnalysis( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -154,7 +154,7 @@ ContactCenterInsightsConnection::BulkAnalyzeConversations( StatusOr ContactCenterInsightsConnection::BulkAnalyzeConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: BulkAnalyzeConversationsRequest const&) { return StatusOr( @@ -164,7 +164,7 @@ ContactCenterInsightsConnection::BulkAnalyzeConversations( future> ContactCenterInsightsConnection::BulkAnalyzeConversations( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -184,7 +184,7 @@ ContactCenterInsightsConnection::BulkDeleteConversations( StatusOr ContactCenterInsightsConnection::BulkDeleteConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: BulkDeleteConversationsRequest const&) { return StatusOr( @@ -194,7 +194,7 @@ ContactCenterInsightsConnection::BulkDeleteConversations( future> ContactCenterInsightsConnection::BulkDeleteConversations( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -213,7 +213,7 @@ ContactCenterInsightsConnection::IngestConversations( StatusOr ContactCenterInsightsConnection::IngestConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: IngestConversationsRequest const&) { return StatusOr( @@ -223,7 +223,7 @@ ContactCenterInsightsConnection::IngestConversations( future> ContactCenterInsightsConnection::IngestConversations( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -241,7 +241,7 @@ ContactCenterInsightsConnection::ExportInsightsData( StatusOr ContactCenterInsightsConnection::ExportInsightsData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: ExportInsightsDataRequest const&) { return StatusOr( @@ -251,7 +251,7 @@ ContactCenterInsightsConnection::ExportInsightsData( future> ContactCenterInsightsConnection::ExportInsightsData( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -267,7 +267,7 @@ ContactCenterInsightsConnection::CreateIssueModel( StatusOr ContactCenterInsightsConnection::CreateIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -275,7 +275,7 @@ ContactCenterInsightsConnection::CreateIssueModel( future> ContactCenterInsightsConnection::CreateIssueModel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -310,7 +310,7 @@ ContactCenterInsightsConnection::DeleteIssueModel( StatusOr ContactCenterInsightsConnection::DeleteIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -319,7 +319,7 @@ ContactCenterInsightsConnection::DeleteIssueModel( future> ContactCenterInsightsConnection::DeleteIssueModel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -336,7 +336,7 @@ ContactCenterInsightsConnection::DeployIssueModel( StatusOr ContactCenterInsightsConnection::DeployIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -345,7 +345,7 @@ ContactCenterInsightsConnection::DeployIssueModel( future> ContactCenterInsightsConnection::DeployIssueModel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -363,7 +363,7 @@ ContactCenterInsightsConnection::UndeployIssueModel( StatusOr ContactCenterInsightsConnection::UndeployIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: UndeployIssueModelRequest const&) { return StatusOr( @@ -373,7 +373,7 @@ ContactCenterInsightsConnection::UndeployIssueModel( future> ContactCenterInsightsConnection::UndeployIssueModel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/contactcenterinsights/v1/contact_center_insights_connection.h b/google/cloud/contactcenterinsights/v1/contact_center_insights_connection.h index 76a7bdf9c3533..205943362ead9 100644 --- a/google/cloud/contactcenterinsights/v1/contact_center_insights_connection.h +++ b/google/cloud/contactcenterinsights/v1/contact_center_insights_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/contactcenterinsights/v1/contact_center_insights_connection_idempotency_policy.h" #include "google/cloud/contactcenterinsights/v1/internal/contact_center_insights_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -206,13 +206,13 @@ class ContactCenterInsightsConnection { request); virtual StatusOr UploadConversation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::UploadConversationRequest const& request); virtual future< StatusOr> - UploadConversation(google::cloud::ExperimentalTag, + UploadConversation(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -240,12 +240,12 @@ class ContactCenterInsightsConnection { request); virtual StatusOr CreateAnalysis( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& request); virtual future> - CreateAnalysis(google::cloud::ExperimentalTag, + CreateAnalysis(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -267,13 +267,13 @@ class ContactCenterInsightsConnection { BulkAnalyzeConversationsRequest const& request); virtual StatusOr BulkAnalyzeConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: BulkAnalyzeConversationsRequest const& request); virtual future> - BulkAnalyzeConversations(google::cloud::ExperimentalTag, + BulkAnalyzeConversations(ExperimentalTag, google::longrunning::Operation const& operation); virtual future BulkDeleteConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: BulkDeleteConversationsRequest const& request); virtual future> - BulkDeleteConversations(google::cloud::ExperimentalTag, + BulkDeleteConversations(ExperimentalTag, google::longrunning::Operation const& operation); virtual future IngestConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: IngestConversationsRequest const& request); virtual future> - IngestConversations(google::cloud::ExperimentalTag, + IngestConversations(ExperimentalTag, google::longrunning::Operation const& operation); virtual future ExportInsightsData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const& request); virtual future> - ExportInsightsData(google::cloud::ExperimentalTag, + ExportInsightsData(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -328,12 +328,12 @@ class ContactCenterInsightsConnection { request); virtual StatusOr CreateIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& request); virtual future> - CreateIssueModel(google::cloud::ExperimentalTag, + CreateIssueModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -359,13 +359,13 @@ class ContactCenterInsightsConnection { request); virtual StatusOr DeleteIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& request); virtual future> - DeleteIssueModel(google::cloud::ExperimentalTag, + DeleteIssueModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future DeployIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& request); virtual future> - DeployIssueModel(google::cloud::ExperimentalTag, + DeployIssueModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future UndeployIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const& request); virtual future> - UndeployIssueModel(google::cloud::ExperimentalTag, + UndeployIssueModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetIssue( diff --git a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.cc b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.cc index 019bb04fab78e..5b3892655f5f4 100644 --- a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.cc +++ b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.cc @@ -65,7 +65,7 @@ ContactCenterInsightsTracingConnection::UploadConversation( auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "UploadConversation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UploadConversation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -149,7 +149,7 @@ ContactCenterInsightsTracingConnection::CreateAnalysis( auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "CreateAnalysis"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateAnalysis(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -222,7 +222,7 @@ ContactCenterInsightsTracingConnection::BulkAnalyzeConversations( auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "BulkAnalyzeConversations"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->BulkAnalyzeConversations( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -263,7 +263,7 @@ ContactCenterInsightsTracingConnection::BulkDeleteConversations( auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "BulkDeleteConversations"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->BulkDeleteConversations( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -304,7 +304,7 @@ ContactCenterInsightsTracingConnection::IngestConversations( auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "IngestConversations"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->IngestConversations(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -345,7 +345,7 @@ ContactCenterInsightsTracingConnection::ExportInsightsData( auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "ExportInsightsData"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportInsightsData(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -384,7 +384,7 @@ ContactCenterInsightsTracingConnection::CreateIssueModel( auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "CreateIssueModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateIssueModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -456,7 +456,7 @@ ContactCenterInsightsTracingConnection::DeleteIssueModel( auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "DeleteIssueModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteIssueModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -496,7 +496,7 @@ ContactCenterInsightsTracingConnection::DeployIssueModel( auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "DeployIssueModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeployIssueModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -537,7 +537,7 @@ ContactCenterInsightsTracingConnection::UndeployIssueModel( auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "UndeployIssueModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UndeployIssueModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/container/v1/cluster_manager_connection.h b/google/cloud/container/v1/cluster_manager_connection.h index 1a0f592f3f587..054224f2433cc 100644 --- a/google/cloud/container/v1/cluster_manager_connection.h +++ b/google/cloud/container/v1/cluster_manager_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/container/v1/cluster_manager_connection_idempotency_policy.h" #include "google/cloud/container/v1/internal/cluster_manager_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/containeranalysis/v1/container_analysis_connection.h b/google/cloud/containeranalysis/v1/container_analysis_connection.h index 0a569e5d7cfca..4174f9009f827 100644 --- a/google/cloud/containeranalysis/v1/container_analysis_connection.h +++ b/google/cloud/containeranalysis/v1/container_analysis_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/containeranalysis/v1/container_analysis_connection_idempotency_policy.h" #include "google/cloud/containeranalysis/v1/internal/container_analysis_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/containeranalysis/v1/grafeas_connection.h b/google/cloud/containeranalysis/v1/grafeas_connection.h index eca7fb25e605d..72efa54e279de 100644 --- a/google/cloud/containeranalysis/v1/grafeas_connection.h +++ b/google/cloud/containeranalysis/v1/grafeas_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/containeranalysis/v1/grafeas_connection_idempotency_policy.h" #include "google/cloud/containeranalysis/v1/internal/grafeas_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/contentwarehouse/v1/document_connection.h b/google/cloud/contentwarehouse/v1/document_connection.h index 8b89765b3884a..8194bcec3b481 100644 --- a/google/cloud/contentwarehouse/v1/document_connection.h +++ b/google/cloud/contentwarehouse/v1/document_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/contentwarehouse/v1/document_connection_idempotency_policy.h" #include "google/cloud/contentwarehouse/v1/internal/document_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/contentwarehouse/v1/document_link_connection.h b/google/cloud/contentwarehouse/v1/document_link_connection.h index 1e9f47f08fad1..0526e52dde962 100644 --- a/google/cloud/contentwarehouse/v1/document_link_connection.h +++ b/google/cloud/contentwarehouse/v1/document_link_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/contentwarehouse/v1/document_link_connection_idempotency_policy.h" #include "google/cloud/contentwarehouse/v1/internal/document_link_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/contentwarehouse/v1/document_schema_connection.h b/google/cloud/contentwarehouse/v1/document_schema_connection.h index 9c9b5d95eb487..79ea6fab836cb 100644 --- a/google/cloud/contentwarehouse/v1/document_schema_connection.h +++ b/google/cloud/contentwarehouse/v1/document_schema_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/contentwarehouse/v1/document_schema_connection_idempotency_policy.h" #include "google/cloud/contentwarehouse/v1/internal/document_schema_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.cc b/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.cc index 54199adb60b6c..d9d92f1cd164b 100644 --- a/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.cc +++ b/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.cc @@ -47,7 +47,7 @@ PipelineServiceTracingConnection::RunPipeline( google::cloud::contentwarehouse::v1::RunPipelineRequest const& request) { auto span = internal::MakeSpan( "contentwarehouse_v1::PipelineServiceConnection::RunPipeline"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RunPipeline(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/contentwarehouse/v1/pipeline_connection.cc b/google/cloud/contentwarehouse/v1/pipeline_connection.cc index 96e1fb4d152a2..b078479fc475f 100644 --- a/google/cloud/contentwarehouse/v1/pipeline_connection.cc +++ b/google/cloud/contentwarehouse/v1/pipeline_connection.cc @@ -46,14 +46,14 @@ PipelineServiceConnection::RunPipeline( } StatusOr PipelineServiceConnection::RunPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contentwarehouse::v1::RunPipelineRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -PipelineServiceConnection::RunPipeline(google::cloud::ExperimentalTag, +PipelineServiceConnection::RunPipeline(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/contentwarehouse/v1/pipeline_connection.h b/google/cloud/contentwarehouse/v1/pipeline_connection.h index 7a0b9b07f92b3..825f09ddb8e45 100644 --- a/google/cloud/contentwarehouse/v1/pipeline_connection.h +++ b/google/cloud/contentwarehouse/v1/pipeline_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/contentwarehouse/v1/internal/pipeline_retry_traits.h" #include "google/cloud/contentwarehouse/v1/pipeline_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,13 +193,12 @@ class PipelineServiceConnection { google::cloud::contentwarehouse::v1::RunPipelineRequest const& request); virtual StatusOr RunPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contentwarehouse::v1::RunPipelineRequest const& request); virtual future< StatusOr> - RunPipeline(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + RunPipeline(ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/contentwarehouse/v1/rule_set_connection.h b/google/cloud/contentwarehouse/v1/rule_set_connection.h index 2c9a9f4e5337a..8f1b6f100d7c0 100644 --- a/google/cloud/contentwarehouse/v1/rule_set_connection.h +++ b/google/cloud/contentwarehouse/v1/rule_set_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/contentwarehouse/v1/internal/rule_set_retry_traits.h" #include "google/cloud/contentwarehouse/v1/rule_set_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/contentwarehouse/v1/synonym_set_connection.h b/google/cloud/contentwarehouse/v1/synonym_set_connection.h index 1737822498de0..f8abdc5b8f075 100644 --- a/google/cloud/contentwarehouse/v1/synonym_set_connection.h +++ b/google/cloud/contentwarehouse/v1/synonym_set_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/contentwarehouse/v1/internal/synonym_set_retry_traits.h" #include "google/cloud/contentwarehouse/v1/synonym_set_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.cc b/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.cc index 336216f4fd63d..f4ab738735c8b 100644 --- a/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.cc +++ b/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.cc @@ -102,7 +102,7 @@ LineageTracingConnection::DeleteProcess( request) { auto span = internal::MakeSpan( "datacatalog_lineage_v1::LineageConnection::DeleteProcess"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteProcess(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -173,7 +173,7 @@ StatusOr LineageTracingConnection::DeleteRun( google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request) { auto span = internal::MakeSpan( "datacatalog_lineage_v1::LineageConnection::DeleteRun"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteRun(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/datacatalog/lineage/v1/lineage_connection.cc b/google/cloud/datacatalog/lineage/v1/lineage_connection.cc index 8c7850362df3e..74422aaf9db28 100644 --- a/google/cloud/datacatalog/lineage/v1/lineage_connection.cc +++ b/google/cloud/datacatalog/lineage/v1/lineage_connection.cc @@ -81,14 +81,14 @@ LineageConnection::DeleteProcess( } StatusOr LineageConnection::DeleteProcess( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -LineageConnection::DeleteProcess(google::cloud::ExperimentalTag, +LineageConnection::DeleteProcess(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -130,14 +130,14 @@ LineageConnection::DeleteRun( } StatusOr LineageConnection::DeleteRun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::lineage::v1::DeleteRunRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -LineageConnection::DeleteRun(google::cloud::ExperimentalTag, +LineageConnection::DeleteRun(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/datacatalog/lineage/v1/lineage_connection.h b/google/cloud/datacatalog/lineage/v1/lineage_connection.h index 4839aaea7582e..bf88fb23f0ca1 100644 --- a/google/cloud/datacatalog/lineage/v1/lineage_connection.h +++ b/google/cloud/datacatalog/lineage/v1/lineage_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/datacatalog/lineage/v1/internal/lineage_retry_traits.h" #include "google/cloud/datacatalog/lineage/v1/lineage_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -215,13 +215,13 @@ class LineageConnection { request); virtual StatusOr DeleteProcess( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& request); virtual future< StatusOr> - DeleteProcess(google::cloud::ExperimentalTag, + DeleteProcess(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr CreateRun( @@ -242,13 +242,12 @@ class LineageConnection { google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request); virtual StatusOr DeleteRun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request); virtual future< StatusOr> - DeleteRun(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteRun(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr CreateLineageEvent( diff --git a/google/cloud/datacatalog/v1/data_catalog_connection.cc b/google/cloud/datacatalog/v1/data_catalog_connection.cc index 7db5451d54010..55e7ae28f2cf1 100644 --- a/google/cloud/datacatalog/v1/data_catalog_connection.cc +++ b/google/cloud/datacatalog/v1/data_catalog_connection.cc @@ -210,14 +210,14 @@ DataCatalogConnection::ReconcileTags( } StatusOr DataCatalogConnection::ReconcileTags( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::v1::ReconcileTagsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataCatalogConnection::ReconcileTags(google::cloud::ExperimentalTag, +DataCatalogConnection::ReconcileTags(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -261,14 +261,14 @@ DataCatalogConnection::ImportEntries( } StatusOr DataCatalogConnection::ImportEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::v1::ImportEntriesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataCatalogConnection::ImportEntries(google::cloud::ExperimentalTag, +DataCatalogConnection::ImportEntries(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/datacatalog/v1/data_catalog_connection.h b/google/cloud/datacatalog/v1/data_catalog_connection.h index efdc1ff81bd3d..0a343dfdde9ac 100644 --- a/google/cloud/datacatalog/v1/data_catalog_connection.h +++ b/google/cloud/datacatalog/v1/data_catalog_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/datacatalog/v1/data_catalog_connection_idempotency_policy.h" #include "google/cloud/datacatalog/v1/internal/data_catalog_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -289,12 +289,12 @@ class DataCatalogConnection { google::cloud::datacatalog::v1::ReconcileTagsRequest const& request); virtual StatusOr ReconcileTags( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::v1::ReconcileTagsRequest const& request); virtual future< StatusOr> - ReconcileTags(google::cloud::ExperimentalTag, + ReconcileTags(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr StarEntry( @@ -319,12 +319,12 @@ class DataCatalogConnection { google::cloud::datacatalog::v1::ImportEntriesRequest const& request); virtual StatusOr ImportEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::v1::ImportEntriesRequest const& request); virtual future< StatusOr> - ImportEntries(google::cloud::ExperimentalTag, + ImportEntries(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.cc b/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.cc index 02f0bd86faeef..153e7111855cc 100644 --- a/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.cc +++ b/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.cc @@ -302,7 +302,7 @@ DataCatalogTracingConnection::ReconcileTags( google::cloud::datacatalog::v1::ReconcileTagsRequest const& request) { auto span = internal::MakeSpan( "datacatalog_v1::DataCatalogConnection::ReconcileTags"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ReconcileTags(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -378,7 +378,7 @@ DataCatalogTracingConnection::ImportEntries( google::cloud::datacatalog::v1::ImportEntriesRequest const& request) { auto span = internal::MakeSpan( "datacatalog_v1::DataCatalogConnection::ImportEntries"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportEntries(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/datacatalog/v1/policy_tag_manager_connection.h b/google/cloud/datacatalog/v1/policy_tag_manager_connection.h index fa0fc0d5b1430..919db8697f98a 100644 --- a/google/cloud/datacatalog/v1/policy_tag_manager_connection.h +++ b/google/cloud/datacatalog/v1/policy_tag_manager_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/datacatalog/v1/internal/policy_tag_manager_retry_traits.h" #include "google/cloud/datacatalog/v1/policy_tag_manager_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/datacatalog/v1/policy_tag_manager_serialization_connection.h b/google/cloud/datacatalog/v1/policy_tag_manager_serialization_connection.h index 09e6652ff6e5b..8eb507766d4e7 100644 --- a/google/cloud/datacatalog/v1/policy_tag_manager_serialization_connection.h +++ b/google/cloud/datacatalog/v1/policy_tag_manager_serialization_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/datacatalog/v1/internal/policy_tag_manager_serialization_retry_traits.h" #include "google/cloud/datacatalog/v1/policy_tag_manager_serialization_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/datafusion/v1/data_fusion_connection.cc b/google/cloud/datafusion/v1/data_fusion_connection.cc index 522caa8b30e16..0f70ea89a2ec3 100644 --- a/google/cloud/datafusion/v1/data_fusion_connection.cc +++ b/google/cloud/datafusion/v1/data_fusion_connection.cc @@ -69,14 +69,14 @@ DataFusionConnection::CreateInstance( } StatusOr DataFusionConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::CreateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataFusionConnection::CreateInstance(google::cloud::ExperimentalTag, +DataFusionConnection::CreateInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -92,14 +92,14 @@ DataFusionConnection::DeleteInstance( } StatusOr DataFusionConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::DeleteInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataFusionConnection::DeleteInstance(google::cloud::ExperimentalTag, +DataFusionConnection::DeleteInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -115,14 +115,14 @@ DataFusionConnection::UpdateInstance( } StatusOr DataFusionConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::UpdateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataFusionConnection::UpdateInstance(google::cloud::ExperimentalTag, +DataFusionConnection::UpdateInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -138,14 +138,14 @@ DataFusionConnection::RestartInstance( } StatusOr DataFusionConnection::RestartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::RestartInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataFusionConnection::RestartInstance(google::cloud::ExperimentalTag, +DataFusionConnection::RestartInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/datafusion/v1/data_fusion_connection.h b/google/cloud/datafusion/v1/data_fusion_connection.h index 9a4c97fd1e6b6..fb0b2b17f5981 100644 --- a/google/cloud/datafusion/v1/data_fusion_connection.h +++ b/google/cloud/datafusion/v1/data_fusion_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/datafusion/v1/data_fusion_connection_idempotency_policy.h" #include "google/cloud/datafusion/v1/internal/data_fusion_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -201,11 +201,11 @@ class DataFusionConnection { google::cloud::datafusion::v1::CreateInstanceRequest const& request); virtual StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::CreateInstanceRequest const& request); virtual future> - CreateInstance(google::cloud::ExperimentalTag, + CreateInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -213,11 +213,11 @@ class DataFusionConnection { google::cloud::datafusion::v1::DeleteInstanceRequest const& request); virtual StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::DeleteInstanceRequest const& request); virtual future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -225,11 +225,11 @@ class DataFusionConnection { google::cloud::datafusion::v1::UpdateInstanceRequest const& request); virtual StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::UpdateInstanceRequest const& request); virtual future> - UpdateInstance(google::cloud::ExperimentalTag, + UpdateInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -237,11 +237,11 @@ class DataFusionConnection { google::cloud::datafusion::v1::RestartInstanceRequest const& request); virtual StatusOr RestartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::RestartInstanceRequest const& request); virtual future> - RestartInstance(google::cloud::ExperimentalTag, + RestartInstance(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.cc b/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.cc index 776e3aebe1ab7..b5950796abcb8 100644 --- a/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.cc +++ b/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.cc @@ -79,7 +79,7 @@ DataFusionTracingConnection::CreateInstance( google::cloud::datafusion::v1::CreateInstanceRequest const& request) { auto span = internal::MakeSpan("datafusion_v1::DataFusionConnection::CreateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -112,7 +112,7 @@ DataFusionTracingConnection::DeleteInstance( google::cloud::datafusion::v1::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan("datafusion_v1::DataFusionConnection::DeleteInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -145,7 +145,7 @@ DataFusionTracingConnection::UpdateInstance( google::cloud::datafusion::v1::UpdateInstanceRequest const& request) { auto span = internal::MakeSpan("datafusion_v1::DataFusionConnection::UpdateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -178,7 +178,7 @@ DataFusionTracingConnection::RestartInstance( google::cloud::datafusion::v1::RestartInstanceRequest const& request) { auto span = internal::MakeSpan( "datafusion_v1::DataFusionConnection::RestartInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RestartInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/datamigration/v1/data_migration_connection.cc b/google/cloud/datamigration/v1/data_migration_connection.cc index b63d981e7331d..e517cbe86d405 100644 --- a/google/cloud/datamigration/v1/data_migration_connection.cc +++ b/google/cloud/datamigration/v1/data_migration_connection.cc @@ -62,7 +62,7 @@ DataMigrationServiceConnection::CreateMigrationJob( StatusOr DataMigrationServiceConnection::CreateMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateMigrationJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ DataMigrationServiceConnection::CreateMigrationJob( future> DataMigrationServiceConnection::CreateMigrationJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ DataMigrationServiceConnection::UpdateMigrationJob( StatusOr DataMigrationServiceConnection::UpdateMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateMigrationJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ DataMigrationServiceConnection::UpdateMigrationJob( future> DataMigrationServiceConnection::UpdateMigrationJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ DataMigrationServiceConnection::DeleteMigrationJob( StatusOr DataMigrationServiceConnection::DeleteMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteMigrationJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ DataMigrationServiceConnection::DeleteMigrationJob( future> DataMigrationServiceConnection::DeleteMigrationJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,7 +134,7 @@ DataMigrationServiceConnection::StartMigrationJob( StatusOr DataMigrationServiceConnection::StartMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::StartMigrationJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +142,7 @@ DataMigrationServiceConnection::StartMigrationJob( future> DataMigrationServiceConnection::StartMigrationJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -158,7 +158,7 @@ DataMigrationServiceConnection::StopMigrationJob( StatusOr DataMigrationServiceConnection::StopMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::StopMigrationJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -166,7 +166,7 @@ DataMigrationServiceConnection::StopMigrationJob( future> DataMigrationServiceConnection::StopMigrationJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -182,7 +182,7 @@ DataMigrationServiceConnection::ResumeMigrationJob( StatusOr DataMigrationServiceConnection::ResumeMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ResumeMigrationJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -190,7 +190,7 @@ DataMigrationServiceConnection::ResumeMigrationJob( future> DataMigrationServiceConnection::ResumeMigrationJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -206,7 +206,7 @@ DataMigrationServiceConnection::PromoteMigrationJob( StatusOr DataMigrationServiceConnection::PromoteMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::PromoteMigrationJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -214,7 +214,7 @@ DataMigrationServiceConnection::PromoteMigrationJob( future> DataMigrationServiceConnection::PromoteMigrationJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -230,7 +230,7 @@ DataMigrationServiceConnection::VerifyMigrationJob( StatusOr DataMigrationServiceConnection::VerifyMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::VerifyMigrationJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -238,7 +238,7 @@ DataMigrationServiceConnection::VerifyMigrationJob( future> DataMigrationServiceConnection::VerifyMigrationJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -254,7 +254,7 @@ DataMigrationServiceConnection::RestartMigrationJob( StatusOr DataMigrationServiceConnection::RestartMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::RestartMigrationJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -262,7 +262,7 @@ DataMigrationServiceConnection::RestartMigrationJob( future> DataMigrationServiceConnection::RestartMigrationJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -304,7 +304,7 @@ DataMigrationServiceConnection::CreateConnectionProfile( StatusOr DataMigrationServiceConnection::CreateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateConnectionProfileRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -312,7 +312,7 @@ DataMigrationServiceConnection::CreateConnectionProfile( future> DataMigrationServiceConnection::CreateConnectionProfile( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -328,7 +328,7 @@ DataMigrationServiceConnection::UpdateConnectionProfile( StatusOr DataMigrationServiceConnection::UpdateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateConnectionProfileRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -336,7 +336,7 @@ DataMigrationServiceConnection::UpdateConnectionProfile( future> DataMigrationServiceConnection::UpdateConnectionProfile( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -352,7 +352,7 @@ DataMigrationServiceConnection::DeleteConnectionProfile( StatusOr DataMigrationServiceConnection::DeleteConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteConnectionProfileRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -360,7 +360,7 @@ DataMigrationServiceConnection::DeleteConnectionProfile( future> DataMigrationServiceConnection::DeleteConnectionProfile( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -376,7 +376,7 @@ DataMigrationServiceConnection::CreatePrivateConnection( StatusOr DataMigrationServiceConnection::CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreatePrivateConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -384,7 +384,7 @@ DataMigrationServiceConnection::CreatePrivateConnection( future> DataMigrationServiceConnection::CreatePrivateConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -414,7 +414,7 @@ DataMigrationServiceConnection::DeletePrivateConnection( StatusOr DataMigrationServiceConnection::DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeletePrivateConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -422,7 +422,7 @@ DataMigrationServiceConnection::DeletePrivateConnection( future> DataMigrationServiceConnection::DeletePrivateConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -452,7 +452,7 @@ DataMigrationServiceConnection::CreateConversionWorkspace( StatusOr DataMigrationServiceConnection::CreateConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -460,7 +460,7 @@ DataMigrationServiceConnection::CreateConversionWorkspace( future> DataMigrationServiceConnection::CreateConversionWorkspace( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -476,7 +476,7 @@ DataMigrationServiceConnection::UpdateConversionWorkspace( StatusOr DataMigrationServiceConnection::UpdateConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -484,7 +484,7 @@ DataMigrationServiceConnection::UpdateConversionWorkspace( future> DataMigrationServiceConnection::UpdateConversionWorkspace( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -500,7 +500,7 @@ DataMigrationServiceConnection::DeleteConversionWorkspace( StatusOr DataMigrationServiceConnection::DeleteConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -508,7 +508,7 @@ DataMigrationServiceConnection::DeleteConversionWorkspace( future> DataMigrationServiceConnection::DeleteConversionWorkspace( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -549,7 +549,7 @@ DataMigrationServiceConnection::SeedConversionWorkspace( StatusOr DataMigrationServiceConnection::SeedConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -557,7 +557,7 @@ DataMigrationServiceConnection::SeedConversionWorkspace( future> DataMigrationServiceConnection::SeedConversionWorkspace( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -573,7 +573,7 @@ DataMigrationServiceConnection::ImportMappingRules( StatusOr DataMigrationServiceConnection::ImportMappingRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ImportMappingRulesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -581,7 +581,7 @@ DataMigrationServiceConnection::ImportMappingRules( future> DataMigrationServiceConnection::ImportMappingRules( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -597,7 +597,7 @@ DataMigrationServiceConnection::ConvertConversionWorkspace( StatusOr DataMigrationServiceConnection::ConvertConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -605,7 +605,7 @@ DataMigrationServiceConnection::ConvertConversionWorkspace( future> DataMigrationServiceConnection::ConvertConversionWorkspace( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -621,7 +621,7 @@ DataMigrationServiceConnection::CommitConversionWorkspace( StatusOr DataMigrationServiceConnection::CommitConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -629,7 +629,7 @@ DataMigrationServiceConnection::CommitConversionWorkspace( future> DataMigrationServiceConnection::CommitConversionWorkspace( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -645,7 +645,7 @@ DataMigrationServiceConnection::RollbackConversionWorkspace( StatusOr DataMigrationServiceConnection::RollbackConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -653,7 +653,7 @@ DataMigrationServiceConnection::RollbackConversionWorkspace( future> DataMigrationServiceConnection::RollbackConversionWorkspace( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -669,7 +669,7 @@ DataMigrationServiceConnection::ApplyConversionWorkspace( StatusOr DataMigrationServiceConnection::ApplyConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -677,7 +677,7 @@ DataMigrationServiceConnection::ApplyConversionWorkspace( future> DataMigrationServiceConnection::ApplyConversionWorkspace( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/datamigration/v1/data_migration_connection.h b/google/cloud/datamigration/v1/data_migration_connection.h index a786b569a4c65..989ef3a2dc73c 100644 --- a/google/cloud/datamigration/v1/data_migration_connection.h +++ b/google/cloud/datamigration/v1/data_migration_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/datamigration/v1/data_migration_connection_idempotency_policy.h" #include "google/cloud/datamigration/v1/internal/data_migration_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -204,11 +204,11 @@ class DataMigrationServiceConnection { google::cloud::clouddms::v1::CreateMigrationJobRequest const& request); virtual StatusOr CreateMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateMigrationJobRequest const& request); virtual future> - CreateMigrationJob(google::cloud::ExperimentalTag, + CreateMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -216,11 +216,11 @@ class DataMigrationServiceConnection { google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request); virtual StatusOr UpdateMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request); virtual future> - UpdateMigrationJob(google::cloud::ExperimentalTag, + UpdateMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -228,11 +228,11 @@ class DataMigrationServiceConnection { google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request); virtual StatusOr DeleteMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request); virtual future> - DeleteMigrationJob(google::cloud::ExperimentalTag, + DeleteMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -240,11 +240,11 @@ class DataMigrationServiceConnection { google::cloud::clouddms::v1::StartMigrationJobRequest const& request); virtual StatusOr StartMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::StartMigrationJobRequest const& request); virtual future> - StartMigrationJob(google::cloud::ExperimentalTag, + StartMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -252,11 +252,11 @@ class DataMigrationServiceConnection { google::cloud::clouddms::v1::StopMigrationJobRequest const& request); virtual StatusOr StopMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::StopMigrationJobRequest const& request); virtual future> - StopMigrationJob(google::cloud::ExperimentalTag, + StopMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -264,11 +264,11 @@ class DataMigrationServiceConnection { google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request); virtual StatusOr ResumeMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request); virtual future> - ResumeMigrationJob(google::cloud::ExperimentalTag, + ResumeMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -276,11 +276,11 @@ class DataMigrationServiceConnection { google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request); virtual StatusOr PromoteMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request); virtual future> - PromoteMigrationJob(google::cloud::ExperimentalTag, + PromoteMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -288,11 +288,11 @@ class DataMigrationServiceConnection { google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request); virtual StatusOr VerifyMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request); virtual future> - VerifyMigrationJob(google::cloud::ExperimentalTag, + VerifyMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -300,11 +300,11 @@ class DataMigrationServiceConnection { google::cloud::clouddms::v1::RestartMigrationJobRequest const& request); virtual StatusOr RestartMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::RestartMigrationJobRequest const& request); virtual future> - RestartMigrationJob(google::cloud::ExperimentalTag, + RestartMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GenerateSshScript( @@ -329,12 +329,12 @@ class DataMigrationServiceConnection { request); virtual StatusOr CreateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateConnectionProfileRequest const& request); virtual future> - CreateConnectionProfile(google::cloud::ExperimentalTag, + CreateConnectionProfile(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -343,12 +343,12 @@ class DataMigrationServiceConnection { request); virtual StatusOr UpdateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& request); virtual future> - UpdateConnectionProfile(google::cloud::ExperimentalTag, + UpdateConnectionProfile(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -357,12 +357,12 @@ class DataMigrationServiceConnection { request); virtual StatusOr DeleteConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& request); virtual future> - DeleteConnectionProfile(google::cloud::ExperimentalTag, + DeleteConnectionProfile(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -371,12 +371,12 @@ class DataMigrationServiceConnection { request); virtual StatusOr CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& request); virtual future> - CreatePrivateConnection(google::cloud::ExperimentalTag, + CreatePrivateConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -393,12 +393,12 @@ class DataMigrationServiceConnection { request); virtual StatusOr DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& request); virtual future> - DeletePrivateConnection(google::cloud::ExperimentalTag, + DeletePrivateConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -416,12 +416,12 @@ class DataMigrationServiceConnection { request); virtual StatusOr CreateConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& request); virtual future> - CreateConversionWorkspace(google::cloud::ExperimentalTag, + CreateConversionWorkspace(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -430,12 +430,12 @@ class DataMigrationServiceConnection { request); virtual StatusOr UpdateConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& request); virtual future> - UpdateConversionWorkspace(google::cloud::ExperimentalTag, + UpdateConversionWorkspace(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -444,12 +444,12 @@ class DataMigrationServiceConnection { request); virtual StatusOr DeleteConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& request); virtual future> - DeleteConversionWorkspace(google::cloud::ExperimentalTag, + DeleteConversionWorkspace(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr CreateMappingRule( @@ -471,12 +471,12 @@ class DataMigrationServiceConnection { request); virtual StatusOr SeedConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& request); virtual future> - SeedConversionWorkspace(google::cloud::ExperimentalTag, + SeedConversionWorkspace(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -484,11 +484,11 @@ class DataMigrationServiceConnection { google::cloud::clouddms::v1::ImportMappingRulesRequest const& request); virtual StatusOr ImportMappingRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ImportMappingRulesRequest const& request); virtual future> - ImportMappingRules(google::cloud::ExperimentalTag, + ImportMappingRules(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -497,12 +497,12 @@ class DataMigrationServiceConnection { request); virtual StatusOr ConvertConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& request); virtual future> - ConvertConversionWorkspace(google::cloud::ExperimentalTag, + ConvertConversionWorkspace(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -511,12 +511,12 @@ class DataMigrationServiceConnection { request); virtual StatusOr CommitConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& request); virtual future> - CommitConversionWorkspace(google::cloud::ExperimentalTag, + CommitConversionWorkspace(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -525,12 +525,12 @@ class DataMigrationServiceConnection { request); virtual StatusOr RollbackConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& request); virtual future> - RollbackConversionWorkspace(google::cloud::ExperimentalTag, + RollbackConversionWorkspace(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -539,12 +539,12 @@ class DataMigrationServiceConnection { request); virtual StatusOr ApplyConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& request); virtual future> - ApplyConversionWorkspace(google::cloud::ExperimentalTag, + ApplyConversionWorkspace(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange diff --git a/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.cc b/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.cc index c157403999aa0..16727d6016dc8 100644 --- a/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.cc +++ b/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.cc @@ -70,7 +70,7 @@ DataMigrationServiceTracingConnection::CreateMigrationJob( google::cloud::clouddms::v1::CreateMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::CreateMigrationJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateMigrationJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -104,7 +104,7 @@ DataMigrationServiceTracingConnection::UpdateMigrationJob( google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::UpdateMigrationJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateMigrationJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -138,7 +138,7 @@ DataMigrationServiceTracingConnection::DeleteMigrationJob( google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::DeleteMigrationJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteMigrationJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -171,7 +171,7 @@ DataMigrationServiceTracingConnection::StartMigrationJob( google::cloud::clouddms::v1::StartMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::StartMigrationJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StartMigrationJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -204,7 +204,7 @@ DataMigrationServiceTracingConnection::StopMigrationJob( google::cloud::clouddms::v1::StopMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::StopMigrationJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StopMigrationJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -238,7 +238,7 @@ DataMigrationServiceTracingConnection::ResumeMigrationJob( google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::ResumeMigrationJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ResumeMigrationJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -272,7 +272,7 @@ DataMigrationServiceTracingConnection::PromoteMigrationJob( google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::PromoteMigrationJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PromoteMigrationJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -306,7 +306,7 @@ DataMigrationServiceTracingConnection::VerifyMigrationJob( google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::VerifyMigrationJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->VerifyMigrationJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -340,7 +340,7 @@ DataMigrationServiceTracingConnection::RestartMigrationJob( google::cloud::clouddms::v1::RestartMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::RestartMigrationJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RestartMigrationJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -419,7 +419,7 @@ DataMigrationServiceTracingConnection::CreateConnectionProfile( auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "CreateConnectionProfile"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateConnectionProfile( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -458,7 +458,7 @@ DataMigrationServiceTracingConnection::UpdateConnectionProfile( auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "UpdateConnectionProfile"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateConnectionProfile( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -497,7 +497,7 @@ DataMigrationServiceTracingConnection::DeleteConnectionProfile( auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "DeleteConnectionProfile"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteConnectionProfile( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -536,7 +536,7 @@ DataMigrationServiceTracingConnection::CreatePrivateConnection( auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "CreatePrivateConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreatePrivateConnection( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -597,7 +597,7 @@ DataMigrationServiceTracingConnection::DeletePrivateConnection( auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "DeletePrivateConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeletePrivateConnection( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -659,7 +659,7 @@ DataMigrationServiceTracingConnection::CreateConversionWorkspace( auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "CreateConversionWorkspace"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateConversionWorkspace( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -698,7 +698,7 @@ DataMigrationServiceTracingConnection::UpdateConversionWorkspace( auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "UpdateConversionWorkspace"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateConversionWorkspace( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -737,7 +737,7 @@ DataMigrationServiceTracingConnection::DeleteConversionWorkspace( auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "DeleteConversionWorkspace"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteConversionWorkspace( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -813,7 +813,7 @@ DataMigrationServiceTracingConnection::SeedConversionWorkspace( auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "SeedConversionWorkspace"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SeedConversionWorkspace( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -848,7 +848,7 @@ DataMigrationServiceTracingConnection::ImportMappingRules( google::cloud::clouddms::v1::ImportMappingRulesRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::ImportMappingRules"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportMappingRules(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -886,7 +886,7 @@ DataMigrationServiceTracingConnection::ConvertConversionWorkspace( auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "ConvertConversionWorkspace"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ConvertConversionWorkspace( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -925,7 +925,7 @@ DataMigrationServiceTracingConnection::CommitConversionWorkspace( auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "CommitConversionWorkspace"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CommitConversionWorkspace( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -964,7 +964,7 @@ DataMigrationServiceTracingConnection::RollbackConversionWorkspace( auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "RollbackConversionWorkspace"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RollbackConversionWorkspace( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1003,7 +1003,7 @@ DataMigrationServiceTracingConnection::ApplyConversionWorkspace( auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "ApplyConversionWorkspace"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ApplyConversionWorkspace( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dataplex/v1/catalog_connection.cc b/google/cloud/dataplex/v1/catalog_connection.cc index 1ff2c748bc396..7a5b0bd7bf9b7 100644 --- a/google/cloud/dataplex/v1/catalog_connection.cc +++ b/google/cloud/dataplex/v1/catalog_connection.cc @@ -48,7 +48,7 @@ CatalogServiceConnection::CreateEntryType( StatusOr CatalogServiceConnection::CreateEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEntryTypeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ CatalogServiceConnection::CreateEntryType( future> CatalogServiceConnection::CreateEntryType( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -72,7 +72,7 @@ CatalogServiceConnection::UpdateEntryType( StatusOr CatalogServiceConnection::UpdateEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEntryTypeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -80,7 +80,7 @@ CatalogServiceConnection::UpdateEntryType( future> CatalogServiceConnection::UpdateEntryType( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -96,7 +96,7 @@ CatalogServiceConnection::DeleteEntryType( StatusOr CatalogServiceConnection::DeleteEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEntryTypeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -104,7 +104,7 @@ CatalogServiceConnection::DeleteEntryType( future> CatalogServiceConnection::DeleteEntryType( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,7 +134,7 @@ CatalogServiceConnection::CreateAspectType( StatusOr CatalogServiceConnection::CreateAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateAspectTypeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +142,7 @@ CatalogServiceConnection::CreateAspectType( future> CatalogServiceConnection::CreateAspectType( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -158,7 +158,7 @@ CatalogServiceConnection::UpdateAspectType( StatusOr CatalogServiceConnection::UpdateAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateAspectTypeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -166,7 +166,7 @@ CatalogServiceConnection::UpdateAspectType( future> CatalogServiceConnection::UpdateAspectType( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -182,7 +182,7 @@ CatalogServiceConnection::DeleteAspectType( StatusOr CatalogServiceConnection::DeleteAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteAspectTypeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -190,7 +190,7 @@ CatalogServiceConnection::DeleteAspectType( future> CatalogServiceConnection::DeleteAspectType( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -220,7 +220,7 @@ CatalogServiceConnection::CreateEntryGroup( StatusOr CatalogServiceConnection::CreateEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEntryGroupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -228,7 +228,7 @@ CatalogServiceConnection::CreateEntryGroup( future> CatalogServiceConnection::CreateEntryGroup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -244,7 +244,7 @@ CatalogServiceConnection::UpdateEntryGroup( StatusOr CatalogServiceConnection::UpdateEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEntryGroupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -252,7 +252,7 @@ CatalogServiceConnection::UpdateEntryGroup( future> CatalogServiceConnection::UpdateEntryGroup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -268,7 +268,7 @@ CatalogServiceConnection::DeleteEntryGroup( StatusOr CatalogServiceConnection::DeleteEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEntryGroupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -276,7 +276,7 @@ CatalogServiceConnection::DeleteEntryGroup( future> CatalogServiceConnection::DeleteEntryGroup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/dataplex/v1/catalog_connection.h b/google/cloud/dataplex/v1/catalog_connection.h index 26822959c25be..cc6ed28021f40 100644 --- a/google/cloud/dataplex/v1/catalog_connection.h +++ b/google/cloud/dataplex/v1/catalog_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dataplex/v1/catalog_connection_idempotency_policy.h" #include "google/cloud/dataplex/v1/internal/catalog_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,11 +192,11 @@ class CatalogServiceConnection { google::cloud::dataplex::v1::CreateEntryTypeRequest const& request); virtual StatusOr CreateEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEntryTypeRequest const& request); virtual future> - CreateEntryType(google::cloud::ExperimentalTag, + CreateEntryType(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -204,11 +204,11 @@ class CatalogServiceConnection { google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request); virtual StatusOr UpdateEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request); virtual future> - UpdateEntryType(google::cloud::ExperimentalTag, + UpdateEntryType(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -216,11 +216,11 @@ class CatalogServiceConnection { google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request); virtual StatusOr DeleteEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request); virtual future> - DeleteEntryType(google::cloud::ExperimentalTag, + DeleteEntryType(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListEntryTypes( @@ -234,11 +234,11 @@ class CatalogServiceConnection { google::cloud::dataplex::v1::CreateAspectTypeRequest const& request); virtual StatusOr CreateAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateAspectTypeRequest const& request); virtual future> - CreateAspectType(google::cloud::ExperimentalTag, + CreateAspectType(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -246,11 +246,11 @@ class CatalogServiceConnection { google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request); virtual StatusOr UpdateAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request); virtual future> - UpdateAspectType(google::cloud::ExperimentalTag, + UpdateAspectType(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -258,11 +258,11 @@ class CatalogServiceConnection { google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request); virtual StatusOr DeleteAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request); virtual future> - DeleteAspectType(google::cloud::ExperimentalTag, + DeleteAspectType(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListAspectTypes( @@ -276,11 +276,11 @@ class CatalogServiceConnection { google::cloud::dataplex::v1::CreateEntryGroupRequest const& request); virtual StatusOr CreateEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEntryGroupRequest const& request); virtual future> - CreateEntryGroup(google::cloud::ExperimentalTag, + CreateEntryGroup(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -288,11 +288,11 @@ class CatalogServiceConnection { google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request); virtual StatusOr UpdateEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request); virtual future> - UpdateEntryGroup(google::cloud::ExperimentalTag, + UpdateEntryGroup(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -300,11 +300,11 @@ class CatalogServiceConnection { google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request); virtual StatusOr DeleteEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request); virtual future> - DeleteEntryGroup(google::cloud::ExperimentalTag, + DeleteEntryGroup(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListEntryGroups( diff --git a/google/cloud/dataplex/v1/content_connection.h b/google/cloud/dataplex/v1/content_connection.h index da40245953bd6..63ace970ceaa7 100644 --- a/google/cloud/dataplex/v1/content_connection.h +++ b/google/cloud/dataplex/v1/content_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dataplex/v1/content_connection_idempotency_policy.h" #include "google/cloud/dataplex/v1/internal/content_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dataplex/v1/data_scan_connection.cc b/google/cloud/dataplex/v1/data_scan_connection.cc index bcc57f1d83e37..c9df873c9fd55 100644 --- a/google/cloud/dataplex/v1/data_scan_connection.cc +++ b/google/cloud/dataplex/v1/data_scan_connection.cc @@ -48,7 +48,7 @@ DataScanServiceConnection::CreateDataScan( StatusOr DataScanServiceConnection::CreateDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataScanRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ DataScanServiceConnection::CreateDataScan( future> DataScanServiceConnection::CreateDataScan( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -72,7 +72,7 @@ DataScanServiceConnection::UpdateDataScan( StatusOr DataScanServiceConnection::UpdateDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataScanRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -80,7 +80,7 @@ DataScanServiceConnection::UpdateDataScan( future> DataScanServiceConnection::UpdateDataScan( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -96,7 +96,7 @@ DataScanServiceConnection::DeleteDataScan( StatusOr DataScanServiceConnection::DeleteDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataScanRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -104,7 +104,7 @@ DataScanServiceConnection::DeleteDataScan( future> DataScanServiceConnection::DeleteDataScan( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/dataplex/v1/data_scan_connection.h b/google/cloud/dataplex/v1/data_scan_connection.h index e45c5967a0439..1e801c2d6f299 100644 --- a/google/cloud/dataplex/v1/data_scan_connection.h +++ b/google/cloud/dataplex/v1/data_scan_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dataplex/v1/data_scan_connection_idempotency_policy.h" #include "google/cloud/dataplex/v1/internal/data_scan_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,11 +193,11 @@ class DataScanServiceConnection { google::cloud::dataplex::v1::CreateDataScanRequest const& request); virtual StatusOr CreateDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataScanRequest const& request); virtual future> - CreateDataScan(google::cloud::ExperimentalTag, + CreateDataScan(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -205,11 +205,11 @@ class DataScanServiceConnection { google::cloud::dataplex::v1::UpdateDataScanRequest const& request); virtual StatusOr UpdateDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataScanRequest const& request); virtual future> - UpdateDataScan(google::cloud::ExperimentalTag, + UpdateDataScan(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -217,11 +217,11 @@ class DataScanServiceConnection { google::cloud::dataplex::v1::DeleteDataScanRequest const& request); virtual StatusOr DeleteDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataScanRequest const& request); virtual future> - DeleteDataScan(google::cloud::ExperimentalTag, + DeleteDataScan(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetDataScan( diff --git a/google/cloud/dataplex/v1/data_taxonomy_connection.cc b/google/cloud/dataplex/v1/data_taxonomy_connection.cc index 5e193fcfe4aea..ff52bb39f63f1 100644 --- a/google/cloud/dataplex/v1/data_taxonomy_connection.cc +++ b/google/cloud/dataplex/v1/data_taxonomy_connection.cc @@ -48,7 +48,7 @@ DataTaxonomyServiceConnection::CreateDataTaxonomy( StatusOr DataTaxonomyServiceConnection::CreateDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataTaxonomyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ DataTaxonomyServiceConnection::CreateDataTaxonomy( future> DataTaxonomyServiceConnection::CreateDataTaxonomy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -72,7 +72,7 @@ DataTaxonomyServiceConnection::UpdateDataTaxonomy( StatusOr DataTaxonomyServiceConnection::UpdateDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -80,7 +80,7 @@ DataTaxonomyServiceConnection::UpdateDataTaxonomy( future> DataTaxonomyServiceConnection::UpdateDataTaxonomy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -96,7 +96,7 @@ DataTaxonomyServiceConnection::DeleteDataTaxonomy( StatusOr DataTaxonomyServiceConnection::DeleteDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -104,7 +104,7 @@ DataTaxonomyServiceConnection::DeleteDataTaxonomy( future> DataTaxonomyServiceConnection::DeleteDataTaxonomy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,7 +134,7 @@ DataTaxonomyServiceConnection::CreateDataAttributeBinding( StatusOr DataTaxonomyServiceConnection::CreateDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +142,7 @@ DataTaxonomyServiceConnection::CreateDataAttributeBinding( future> DataTaxonomyServiceConnection::CreateDataAttributeBinding( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -158,7 +158,7 @@ DataTaxonomyServiceConnection::UpdateDataAttributeBinding( StatusOr DataTaxonomyServiceConnection::UpdateDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -166,7 +166,7 @@ DataTaxonomyServiceConnection::UpdateDataAttributeBinding( future> DataTaxonomyServiceConnection::UpdateDataAttributeBinding( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -182,7 +182,7 @@ DataTaxonomyServiceConnection::DeleteDataAttributeBinding( StatusOr DataTaxonomyServiceConnection::DeleteDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -190,7 +190,7 @@ DataTaxonomyServiceConnection::DeleteDataAttributeBinding( future> DataTaxonomyServiceConnection::DeleteDataAttributeBinding( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -220,7 +220,7 @@ DataTaxonomyServiceConnection::CreateDataAttribute( StatusOr DataTaxonomyServiceConnection::CreateDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataAttributeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -228,7 +228,7 @@ DataTaxonomyServiceConnection::CreateDataAttribute( future> DataTaxonomyServiceConnection::CreateDataAttribute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -244,7 +244,7 @@ DataTaxonomyServiceConnection::UpdateDataAttribute( StatusOr DataTaxonomyServiceConnection::UpdateDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataAttributeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -252,7 +252,7 @@ DataTaxonomyServiceConnection::UpdateDataAttribute( future> DataTaxonomyServiceConnection::UpdateDataAttribute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -268,7 +268,7 @@ DataTaxonomyServiceConnection::DeleteDataAttribute( StatusOr DataTaxonomyServiceConnection::DeleteDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataAttributeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -276,7 +276,7 @@ DataTaxonomyServiceConnection::DeleteDataAttribute( future> DataTaxonomyServiceConnection::DeleteDataAttribute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/dataplex/v1/data_taxonomy_connection.h b/google/cloud/dataplex/v1/data_taxonomy_connection.h index 8adc4e3b5be07..d06391679349d 100644 --- a/google/cloud/dataplex/v1/data_taxonomy_connection.h +++ b/google/cloud/dataplex/v1/data_taxonomy_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dataplex/v1/data_taxonomy_connection_idempotency_policy.h" #include "google/cloud/dataplex/v1/internal/data_taxonomy_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -195,11 +195,11 @@ class DataTaxonomyServiceConnection { google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request); virtual StatusOr CreateDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request); virtual future> - CreateDataTaxonomy(google::cloud::ExperimentalTag, + CreateDataTaxonomy(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -207,11 +207,11 @@ class DataTaxonomyServiceConnection { google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request); virtual StatusOr UpdateDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request); virtual future> - UpdateDataTaxonomy(google::cloud::ExperimentalTag, + UpdateDataTaxonomy(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -219,11 +219,11 @@ class DataTaxonomyServiceConnection { google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request); virtual StatusOr DeleteDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request); virtual future> - DeleteDataTaxonomy(google::cloud::ExperimentalTag, + DeleteDataTaxonomy(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -239,12 +239,12 @@ class DataTaxonomyServiceConnection { request); virtual StatusOr CreateDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& request); virtual future> - CreateDataAttributeBinding(google::cloud::ExperimentalTag, + CreateDataAttributeBinding(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -253,12 +253,12 @@ class DataTaxonomyServiceConnection { request); virtual StatusOr UpdateDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& request); virtual future> - UpdateDataAttributeBinding(google::cloud::ExperimentalTag, + UpdateDataAttributeBinding(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -267,12 +267,12 @@ class DataTaxonomyServiceConnection { request); virtual StatusOr DeleteDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& request); virtual future> - DeleteDataAttributeBinding(google::cloud::ExperimentalTag, + DeleteDataAttributeBinding(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -289,11 +289,11 @@ class DataTaxonomyServiceConnection { google::cloud::dataplex::v1::CreateDataAttributeRequest const& request); virtual StatusOr CreateDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataAttributeRequest const& request); virtual future> - CreateDataAttribute(google::cloud::ExperimentalTag, + CreateDataAttribute(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -301,11 +301,11 @@ class DataTaxonomyServiceConnection { google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request); virtual StatusOr UpdateDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request); virtual future> - UpdateDataAttribute(google::cloud::ExperimentalTag, + UpdateDataAttribute(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -313,11 +313,11 @@ class DataTaxonomyServiceConnection { google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request); virtual StatusOr DeleteDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request); virtual future> - DeleteDataAttribute(google::cloud::ExperimentalTag, + DeleteDataAttribute(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange diff --git a/google/cloud/dataplex/v1/dataplex_connection.cc b/google/cloud/dataplex/v1/dataplex_connection.cc index a82850a2b02ff..5d20b9768345b 100644 --- a/google/cloud/dataplex/v1/dataplex_connection.cc +++ b/google/cloud/dataplex/v1/dataplex_connection.cc @@ -47,14 +47,14 @@ DataplexServiceConnection::CreateLake( } StatusOr DataplexServiceConnection::CreateLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateLakeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataplexServiceConnection::CreateLake(google::cloud::ExperimentalTag, +DataplexServiceConnection::CreateLake(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -70,14 +70,14 @@ DataplexServiceConnection::UpdateLake( } StatusOr DataplexServiceConnection::UpdateLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateLakeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataplexServiceConnection::UpdateLake(google::cloud::ExperimentalTag, +DataplexServiceConnection::UpdateLake(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -93,14 +93,14 @@ DataplexServiceConnection::DeleteLake( } StatusOr DataplexServiceConnection::DeleteLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteLakeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataplexServiceConnection::DeleteLake(google::cloud::ExperimentalTag, +DataplexServiceConnection::DeleteLake(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -137,14 +137,14 @@ DataplexServiceConnection::CreateZone( } StatusOr DataplexServiceConnection::CreateZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateZoneRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataplexServiceConnection::CreateZone(google::cloud::ExperimentalTag, +DataplexServiceConnection::CreateZone(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -160,14 +160,14 @@ DataplexServiceConnection::UpdateZone( } StatusOr DataplexServiceConnection::UpdateZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateZoneRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataplexServiceConnection::UpdateZone(google::cloud::ExperimentalTag, +DataplexServiceConnection::UpdateZone(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -183,14 +183,14 @@ DataplexServiceConnection::DeleteZone( } StatusOr DataplexServiceConnection::DeleteZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteZoneRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataplexServiceConnection::DeleteZone(google::cloud::ExperimentalTag, +DataplexServiceConnection::DeleteZone(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -227,14 +227,14 @@ DataplexServiceConnection::CreateAsset( } StatusOr DataplexServiceConnection::CreateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateAssetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataplexServiceConnection::CreateAsset(google::cloud::ExperimentalTag, +DataplexServiceConnection::CreateAsset(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -250,14 +250,14 @@ DataplexServiceConnection::UpdateAsset( } StatusOr DataplexServiceConnection::UpdateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateAssetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataplexServiceConnection::UpdateAsset(google::cloud::ExperimentalTag, +DataplexServiceConnection::UpdateAsset(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -273,14 +273,14 @@ DataplexServiceConnection::DeleteAsset( } StatusOr DataplexServiceConnection::DeleteAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteAssetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataplexServiceConnection::DeleteAsset(google::cloud::ExperimentalTag, +DataplexServiceConnection::DeleteAsset(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -318,14 +318,14 @@ DataplexServiceConnection::CreateTask( } StatusOr DataplexServiceConnection::CreateTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateTaskRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataplexServiceConnection::CreateTask(google::cloud::ExperimentalTag, +DataplexServiceConnection::CreateTask(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -341,14 +341,14 @@ DataplexServiceConnection::UpdateTask( } StatusOr DataplexServiceConnection::UpdateTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateTaskRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataplexServiceConnection::UpdateTask(google::cloud::ExperimentalTag, +DataplexServiceConnection::UpdateTask(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -364,14 +364,14 @@ DataplexServiceConnection::DeleteTask( } StatusOr DataplexServiceConnection::DeleteTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteTaskRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DataplexServiceConnection::DeleteTask(google::cloud::ExperimentalTag, +DataplexServiceConnection::DeleteTask(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -425,7 +425,7 @@ DataplexServiceConnection::CreateEnvironment( StatusOr DataplexServiceConnection::CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEnvironmentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -433,7 +433,7 @@ DataplexServiceConnection::CreateEnvironment( future> DataplexServiceConnection::CreateEnvironment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -449,7 +449,7 @@ DataplexServiceConnection::UpdateEnvironment( StatusOr DataplexServiceConnection::UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEnvironmentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -457,7 +457,7 @@ DataplexServiceConnection::UpdateEnvironment( future> DataplexServiceConnection::UpdateEnvironment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -473,7 +473,7 @@ DataplexServiceConnection::DeleteEnvironment( StatusOr DataplexServiceConnection::DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEnvironmentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -481,7 +481,7 @@ DataplexServiceConnection::DeleteEnvironment( future> DataplexServiceConnection::DeleteEnvironment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/dataplex/v1/dataplex_connection.h b/google/cloud/dataplex/v1/dataplex_connection.h index c65efed78d8d0..db3718f819df0 100644 --- a/google/cloud/dataplex/v1/dataplex_connection.h +++ b/google/cloud/dataplex/v1/dataplex_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dataplex/v1/dataplex_connection_idempotency_policy.h" #include "google/cloud/dataplex/v1/internal/dataplex_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,34 +192,31 @@ class DataplexServiceConnection { google::cloud::dataplex::v1::CreateLakeRequest const& request); virtual StatusOr CreateLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateLakeRequest const& request); virtual future> CreateLake( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateLake( google::cloud::dataplex::v1::UpdateLakeRequest const& request); virtual StatusOr UpdateLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateLakeRequest const& request); virtual future> UpdateLake( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteLake(google::cloud::dataplex::v1::DeleteLakeRequest const& request); virtual StatusOr DeleteLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteLakeRequest const& request); virtual future> - DeleteLake(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteLake(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListLakes( google::cloud::dataplex::v1::ListLakesRequest request); @@ -234,34 +231,31 @@ class DataplexServiceConnection { google::cloud::dataplex::v1::CreateZoneRequest const& request); virtual StatusOr CreateZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateZoneRequest const& request); virtual future> CreateZone( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateZone( google::cloud::dataplex::v1::UpdateZoneRequest const& request); virtual StatusOr UpdateZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateZoneRequest const& request); virtual future> UpdateZone( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteZone(google::cloud::dataplex::v1::DeleteZoneRequest const& request); virtual StatusOr DeleteZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteZoneRequest const& request); virtual future> - DeleteZone(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteZone(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListZones( google::cloud::dataplex::v1::ListZonesRequest request); @@ -276,34 +270,31 @@ class DataplexServiceConnection { google::cloud::dataplex::v1::CreateAssetRequest const& request); virtual StatusOr CreateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateAssetRequest const& request); virtual future> CreateAsset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateAsset( google::cloud::dataplex::v1::UpdateAssetRequest const& request); virtual StatusOr UpdateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateAssetRequest const& request); virtual future> UpdateAsset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteAsset(google::cloud::dataplex::v1::DeleteAssetRequest const& request); virtual StatusOr DeleteAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteAssetRequest const& request); virtual future> - DeleteAsset(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteAsset(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListAssets( google::cloud::dataplex::v1::ListAssetsRequest request); @@ -318,34 +309,31 @@ class DataplexServiceConnection { google::cloud::dataplex::v1::CreateTaskRequest const& request); virtual StatusOr CreateTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateTaskRequest const& request); virtual future> CreateTask( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateTask( google::cloud::dataplex::v1::UpdateTaskRequest const& request); virtual StatusOr UpdateTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateTaskRequest const& request); virtual future> UpdateTask( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteTask(google::cloud::dataplex::v1::DeleteTaskRequest const& request); virtual StatusOr DeleteTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteTaskRequest const& request); virtual future> - DeleteTask(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteTask(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListTasks( google::cloud::dataplex::v1::ListTasksRequest request); @@ -370,11 +358,11 @@ class DataplexServiceConnection { google::cloud::dataplex::v1::CreateEnvironmentRequest const& request); virtual StatusOr CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEnvironmentRequest const& request); virtual future> - CreateEnvironment(google::cloud::ExperimentalTag, + CreateEnvironment(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -382,11 +370,11 @@ class DataplexServiceConnection { google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request); virtual StatusOr UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request); virtual future> - UpdateEnvironment(google::cloud::ExperimentalTag, + UpdateEnvironment(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -394,11 +382,11 @@ class DataplexServiceConnection { google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request); virtual StatusOr DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request); virtual future> - DeleteEnvironment(google::cloud::ExperimentalTag, + DeleteEnvironment(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange diff --git a/google/cloud/dataplex/v1/internal/catalog_tracing_connection.cc b/google/cloud/dataplex/v1/internal/catalog_tracing_connection.cc index 8cac7b072d1c2..3d303ca19c4b1 100644 --- a/google/cloud/dataplex/v1/internal/catalog_tracing_connection.cc +++ b/google/cloud/dataplex/v1/internal/catalog_tracing_connection.cc @@ -48,7 +48,7 @@ CatalogServiceTracingConnection::CreateEntryType( google::cloud::dataplex::v1::CreateEntryTypeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::CreateEntryType"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateEntryType(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -81,7 +81,7 @@ CatalogServiceTracingConnection::UpdateEntryType( google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::UpdateEntryType"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateEntryType(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -114,7 +114,7 @@ CatalogServiceTracingConnection::DeleteEntryType( google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::DeleteEntryType"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteEntryType(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -167,7 +167,7 @@ CatalogServiceTracingConnection::CreateAspectType( google::cloud::dataplex::v1::CreateAspectTypeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::CreateAspectType"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateAspectType(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -200,7 +200,7 @@ CatalogServiceTracingConnection::UpdateAspectType( google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::UpdateAspectType"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateAspectType(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -233,7 +233,7 @@ CatalogServiceTracingConnection::DeleteAspectType( google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::DeleteAspectType"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAspectType(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -286,7 +286,7 @@ CatalogServiceTracingConnection::CreateEntryGroup( google::cloud::dataplex::v1::CreateEntryGroupRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::CreateEntryGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateEntryGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -319,7 +319,7 @@ CatalogServiceTracingConnection::UpdateEntryGroup( google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::UpdateEntryGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateEntryGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -352,7 +352,7 @@ CatalogServiceTracingConnection::DeleteEntryGroup( google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::DeleteEntryGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteEntryGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.cc b/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.cc index 8130217fc3760..286c429511ce2 100644 --- a/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.cc +++ b/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.cc @@ -48,7 +48,7 @@ DataScanServiceTracingConnection::CreateDataScan( google::cloud::dataplex::v1::CreateDataScanRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataScanServiceConnection::CreateDataScan"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateDataScan(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -81,7 +81,7 @@ DataScanServiceTracingConnection::UpdateDataScan( google::cloud::dataplex::v1::UpdateDataScanRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataScanServiceConnection::UpdateDataScan"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateDataScan(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -114,7 +114,7 @@ DataScanServiceTracingConnection::DeleteDataScan( google::cloud::dataplex::v1::DeleteDataScanRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataScanServiceConnection::DeleteDataScan"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteDataScan(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.cc b/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.cc index 305d024d22db4..1084e4cd14dc0 100644 --- a/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.cc +++ b/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.cc @@ -49,7 +49,7 @@ DataTaxonomyServiceTracingConnection::CreateDataTaxonomy( google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::CreateDataTaxonomy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateDataTaxonomy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -83,7 +83,7 @@ DataTaxonomyServiceTracingConnection::UpdateDataTaxonomy( google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::UpdateDataTaxonomy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateDataTaxonomy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -117,7 +117,7 @@ DataTaxonomyServiceTracingConnection::DeleteDataTaxonomy( google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::DeleteDataTaxonomy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteDataTaxonomy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -174,7 +174,7 @@ DataTaxonomyServiceTracingConnection::CreateDataAttributeBinding( request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::CreateDataAttributeBinding"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateDataAttributeBinding( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -210,7 +210,7 @@ DataTaxonomyServiceTracingConnection::UpdateDataAttributeBinding( request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::UpdateDataAttributeBinding"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateDataAttributeBinding( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -246,7 +246,7 @@ DataTaxonomyServiceTracingConnection::DeleteDataAttributeBinding( request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::DeleteDataAttributeBinding"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteDataAttributeBinding( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -302,7 +302,7 @@ DataTaxonomyServiceTracingConnection::CreateDataAttribute( google::cloud::dataplex::v1::CreateDataAttributeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::CreateDataAttribute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateDataAttribute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -336,7 +336,7 @@ DataTaxonomyServiceTracingConnection::UpdateDataAttribute( google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::UpdateDataAttribute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateDataAttribute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -370,7 +370,7 @@ DataTaxonomyServiceTracingConnection::DeleteDataAttribute( google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::DeleteDataAttribute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteDataAttribute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.cc b/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.cc index 90279ae18e5d6..76515a11aaf58 100644 --- a/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.cc +++ b/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.cc @@ -48,7 +48,7 @@ DataplexServiceTracingConnection::CreateLake( google::cloud::dataplex::v1::CreateLakeRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateLake"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateLake(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -81,7 +81,7 @@ DataplexServiceTracingConnection::UpdateLake( google::cloud::dataplex::v1::UpdateLakeRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateLake"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateLake(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -114,7 +114,7 @@ DataplexServiceTracingConnection::DeleteLake( google::cloud::dataplex::v1::DeleteLakeRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteLake"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteLake(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -178,7 +178,7 @@ DataplexServiceTracingConnection::CreateZone( google::cloud::dataplex::v1::CreateZoneRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateZone"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateZone(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -211,7 +211,7 @@ DataplexServiceTracingConnection::UpdateZone( google::cloud::dataplex::v1::UpdateZoneRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateZone"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateZone(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -244,7 +244,7 @@ DataplexServiceTracingConnection::DeleteZone( google::cloud::dataplex::v1::DeleteZoneRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteZone"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteZone(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -308,7 +308,7 @@ DataplexServiceTracingConnection::CreateAsset( google::cloud::dataplex::v1::CreateAssetRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateAsset"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateAsset(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -341,7 +341,7 @@ DataplexServiceTracingConnection::UpdateAsset( google::cloud::dataplex::v1::UpdateAssetRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateAsset"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateAsset(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -374,7 +374,7 @@ DataplexServiceTracingConnection::DeleteAsset( google::cloud::dataplex::v1::DeleteAssetRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteAsset"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAsset(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -438,7 +438,7 @@ DataplexServiceTracingConnection::CreateTask( google::cloud::dataplex::v1::CreateTaskRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateTask"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateTask(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -471,7 +471,7 @@ DataplexServiceTracingConnection::UpdateTask( google::cloud::dataplex::v1::UpdateTaskRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateTask"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateTask(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -504,7 +504,7 @@ DataplexServiceTracingConnection::DeleteTask( google::cloud::dataplex::v1::DeleteTaskRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteTask"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteTask(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -594,7 +594,7 @@ DataplexServiceTracingConnection::CreateEnvironment( google::cloud::dataplex::v1::CreateEnvironmentRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataplexServiceConnection::CreateEnvironment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateEnvironment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -627,7 +627,7 @@ DataplexServiceTracingConnection::UpdateEnvironment( google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataplexServiceConnection::UpdateEnvironment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateEnvironment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -660,7 +660,7 @@ DataplexServiceTracingConnection::DeleteEnvironment( google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataplexServiceConnection::DeleteEnvironment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteEnvironment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dataplex/v1/metadata_connection.h b/google/cloud/dataplex/v1/metadata_connection.h index 854d278175231..5268ede100db6 100644 --- a/google/cloud/dataplex/v1/metadata_connection.h +++ b/google/cloud/dataplex/v1/metadata_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dataplex/v1/internal/metadata_retry_traits.h" #include "google/cloud/dataplex/v1/metadata_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dataproc/v1/autoscaling_policy_connection.h b/google/cloud/dataproc/v1/autoscaling_policy_connection.h index 55ef7d9fdd6cd..f85427b218570 100644 --- a/google/cloud/dataproc/v1/autoscaling_policy_connection.h +++ b/google/cloud/dataproc/v1/autoscaling_policy_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dataproc/v1/autoscaling_policy_connection_idempotency_policy.h" #include "google/cloud/dataproc/v1/internal/autoscaling_policy_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dataproc/v1/batch_controller_connection.cc b/google/cloud/dataproc/v1/batch_controller_connection.cc index 93a9eddf68800..4db38a1203a94 100644 --- a/google/cloud/dataproc/v1/batch_controller_connection.cc +++ b/google/cloud/dataproc/v1/batch_controller_connection.cc @@ -47,14 +47,14 @@ BatchControllerConnection::CreateBatch( } StatusOr BatchControllerConnection::CreateBatch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateBatchRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -BatchControllerConnection::CreateBatch(google::cloud::ExperimentalTag, +BatchControllerConnection::CreateBatch(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/dataproc/v1/batch_controller_connection.h b/google/cloud/dataproc/v1/batch_controller_connection.h index 177e3ee82bd14..eb9b1bd134b49 100644 --- a/google/cloud/dataproc/v1/batch_controller_connection.h +++ b/google/cloud/dataproc/v1/batch_controller_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dataproc/v1/batch_controller_connection_idempotency_policy.h" #include "google/cloud/dataproc/v1/internal/batch_controller_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -194,12 +194,11 @@ class BatchControllerConnection { google::cloud::dataproc::v1::CreateBatchRequest const& request); virtual StatusOr CreateBatch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateBatchRequest const& request); virtual future> CreateBatch( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetBatch( google::cloud::dataproc::v1::GetBatchRequest const& request); diff --git a/google/cloud/dataproc/v1/cluster_controller_connection.cc b/google/cloud/dataproc/v1/cluster_controller_connection.cc index 5c58af1dc2342..abec4328aeeb4 100644 --- a/google/cloud/dataproc/v1/cluster_controller_connection.cc +++ b/google/cloud/dataproc/v1/cluster_controller_connection.cc @@ -48,7 +48,7 @@ ClusterControllerConnection::CreateCluster( StatusOr ClusterControllerConnection::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ ClusterControllerConnection::CreateCluster( future> ClusterControllerConnection::CreateCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -72,7 +72,7 @@ ClusterControllerConnection::UpdateCluster( StatusOr ClusterControllerConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::UpdateClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -80,7 +80,7 @@ ClusterControllerConnection::UpdateCluster( future> ClusterControllerConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -96,7 +96,7 @@ ClusterControllerConnection::StopCluster( StatusOr ClusterControllerConnection::StopCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::StopClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -104,7 +104,7 @@ ClusterControllerConnection::StopCluster( future> ClusterControllerConnection::StopCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -120,7 +120,7 @@ ClusterControllerConnection::StartCluster( StatusOr ClusterControllerConnection::StartCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::StartClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -128,7 +128,7 @@ ClusterControllerConnection::StartCluster( future> ClusterControllerConnection::StartCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -144,7 +144,7 @@ ClusterControllerConnection::DeleteCluster( StatusOr ClusterControllerConnection::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DeleteClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -152,7 +152,7 @@ ClusterControllerConnection::DeleteCluster( future> ClusterControllerConnection::DeleteCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -182,7 +182,7 @@ ClusterControllerConnection::DiagnoseCluster( StatusOr ClusterControllerConnection::DiagnoseCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DiagnoseClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -190,7 +190,7 @@ ClusterControllerConnection::DiagnoseCluster( future> ClusterControllerConnection::DiagnoseCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/dataproc/v1/cluster_controller_connection.h b/google/cloud/dataproc/v1/cluster_controller_connection.h index 7222d5ff3f529..5f3897ce532ff 100644 --- a/google/cloud/dataproc/v1/cluster_controller_connection.h +++ b/google/cloud/dataproc/v1/cluster_controller_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dataproc/v1/cluster_controller_connection_idempotency_policy.h" #include "google/cloud/dataproc/v1/internal/cluster_controller_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -194,45 +194,41 @@ class ClusterControllerConnection { google::cloud::dataproc::v1::CreateClusterRequest const& request); virtual StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateClusterRequest const& request); virtual future> CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateCluster( google::cloud::dataproc::v1::UpdateClusterRequest const& request); virtual StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::UpdateClusterRequest const& request); virtual future> UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> StopCluster( google::cloud::dataproc::v1::StopClusterRequest const& request); virtual StatusOr StopCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::StopClusterRequest const& request); virtual future> StopCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> StartCluster( google::cloud::dataproc::v1::StartClusterRequest const& request); virtual StatusOr StartCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::StartClusterRequest const& request); virtual future> StartCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> @@ -240,12 +236,12 @@ class ClusterControllerConnection { google::cloud::dataproc::v1::DeleteClusterRequest const& request); virtual StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DeleteClusterRequest const& request); virtual future< StatusOr> - DeleteCluster(google::cloud::ExperimentalTag, + DeleteCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetCluster( @@ -259,11 +255,11 @@ class ClusterControllerConnection { google::cloud::dataproc::v1::DiagnoseClusterRequest const& request); virtual StatusOr DiagnoseCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DiagnoseClusterRequest const& request); virtual future> - DiagnoseCluster(google::cloud::ExperimentalTag, + DiagnoseCluster(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.cc b/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.cc index abbf4854179c7..0ccbdd2db77e6 100644 --- a/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.cc @@ -48,7 +48,7 @@ BatchControllerTracingConnection::CreateBatch( google::cloud::dataproc::v1::CreateBatchRequest const& request) { auto span = internal::MakeSpan("dataproc_v1::BatchControllerConnection::CreateBatch"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateBatch(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.cc b/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.cc index b481c8570fcaf..0c490b25f4762 100644 --- a/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.cc @@ -48,7 +48,7 @@ ClusterControllerTracingConnection::CreateCluster( google::cloud::dataproc::v1::CreateClusterRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::CreateCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -81,7 +81,7 @@ ClusterControllerTracingConnection::UpdateCluster( google::cloud::dataproc::v1::UpdateClusterRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::UpdateCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -114,7 +114,7 @@ ClusterControllerTracingConnection::StopCluster( google::cloud::dataproc::v1::StopClusterRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::StopCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StopCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -147,7 +147,7 @@ ClusterControllerTracingConnection::StartCluster( google::cloud::dataproc::v1::StartClusterRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::StartCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StartCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -180,7 +180,7 @@ ClusterControllerTracingConnection::DeleteCluster( google::cloud::dataproc::v1::DeleteClusterRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::DeleteCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -233,7 +233,7 @@ ClusterControllerTracingConnection::DiagnoseCluster( google::cloud::dataproc::v1::DiagnoseClusterRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::DiagnoseCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DiagnoseCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.cc b/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.cc index f6202204c157e..f09ebeee340d1 100644 --- a/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.cc @@ -58,7 +58,7 @@ JobControllerTracingConnection::SubmitJobAsOperation( google::cloud::dataproc::v1::SubmitJobRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::JobControllerConnection::SubmitJobAsOperation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SubmitJobAsOperation( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.cc b/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.cc index e4d44ffd9e677..1ea1764bc1e6e 100644 --- a/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.cc @@ -47,7 +47,7 @@ NodeGroupControllerTracingConnection::CreateNodeGroup( google::cloud::dataproc::v1::CreateNodeGroupRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::NodeGroupControllerConnection::CreateNodeGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateNodeGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -80,7 +80,7 @@ NodeGroupControllerTracingConnection::ResizeNodeGroup( google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::NodeGroupControllerConnection::ResizeNodeGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ResizeNodeGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.cc b/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.cc index e5b5316a14f32..9ba9c1a119ad8 100644 --- a/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.cc @@ -48,7 +48,7 @@ SessionControllerTracingConnection::CreateSession( google::cloud::dataproc::v1::CreateSessionRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::SessionControllerConnection::CreateSession"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateSession(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ SessionControllerTracingConnection::TerminateSession( google::cloud::dataproc::v1::TerminateSessionRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::SessionControllerConnection::TerminateSession"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->TerminateSession(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -134,7 +134,7 @@ SessionControllerTracingConnection::DeleteSession( google::cloud::dataproc::v1::DeleteSessionRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::SessionControllerConnection::DeleteSession"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSession(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.cc b/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.cc index eac9b40c8eeea..6a978e1d4fe8a 100644 --- a/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.cc @@ -72,7 +72,7 @@ WorkflowTemplateServiceTracingConnection::InstantiateWorkflowTemplate( auto span = internal::MakeSpan( "dataproc_v1::WorkflowTemplateServiceConnection::" "InstantiateWorkflowTemplate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InstantiateWorkflowTemplate( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -111,7 +111,7 @@ WorkflowTemplateServiceTracingConnection::InstantiateInlineWorkflowTemplate( auto span = internal::MakeSpan( "dataproc_v1::WorkflowTemplateServiceConnection::" "InstantiateInlineWorkflowTemplate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->InstantiateInlineWorkflowTemplate( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dataproc/v1/job_controller_connection.cc b/google/cloud/dataproc/v1/job_controller_connection.cc index 0d4ba99b9de7e..41288a1662a3d 100644 --- a/google/cloud/dataproc/v1/job_controller_connection.cc +++ b/google/cloud/dataproc/v1/job_controller_connection.cc @@ -53,7 +53,7 @@ JobControllerConnection::SubmitJobAsOperation( StatusOr JobControllerConnection::SubmitJobAsOperation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::SubmitJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -61,7 +61,7 @@ JobControllerConnection::SubmitJobAsOperation( future> JobControllerConnection::SubmitJobAsOperation( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/dataproc/v1/job_controller_connection.h b/google/cloud/dataproc/v1/job_controller_connection.h index 5ad7bd97bb8e1..0e1d06d12612e 100644 --- a/google/cloud/dataproc/v1/job_controller_connection.h +++ b/google/cloud/dataproc/v1/job_controller_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dataproc/v1/internal/job_controller_retry_traits.h" #include "google/cloud/dataproc/v1/job_controller_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -196,11 +196,11 @@ class JobControllerConnection { google::cloud::dataproc::v1::SubmitJobRequest const& request); virtual StatusOr SubmitJobAsOperation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::SubmitJobRequest const& request); virtual future> - SubmitJobAsOperation(google::cloud::ExperimentalTag, + SubmitJobAsOperation(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetJob( diff --git a/google/cloud/dataproc/v1/node_group_controller_connection.cc b/google/cloud/dataproc/v1/node_group_controller_connection.cc index 03880afda4fb2..e2cb28f7af353 100644 --- a/google/cloud/dataproc/v1/node_group_controller_connection.cc +++ b/google/cloud/dataproc/v1/node_group_controller_connection.cc @@ -47,7 +47,7 @@ NodeGroupControllerConnection::CreateNodeGroup( StatusOr NodeGroupControllerConnection::CreateNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateNodeGroupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -55,7 +55,7 @@ NodeGroupControllerConnection::CreateNodeGroup( future> NodeGroupControllerConnection::CreateNodeGroup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -71,7 +71,7 @@ NodeGroupControllerConnection::ResizeNodeGroup( StatusOr NodeGroupControllerConnection::ResizeNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::ResizeNodeGroupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -79,7 +79,7 @@ NodeGroupControllerConnection::ResizeNodeGroup( future> NodeGroupControllerConnection::ResizeNodeGroup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/dataproc/v1/node_group_controller_connection.h b/google/cloud/dataproc/v1/node_group_controller_connection.h index 5fdffe2d2148e..93f7ae75085a1 100644 --- a/google/cloud/dataproc/v1/node_group_controller_connection.h +++ b/google/cloud/dataproc/v1/node_group_controller_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dataproc/v1/internal/node_group_controller_retry_traits.h" #include "google/cloud/dataproc/v1/node_group_controller_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -195,11 +195,11 @@ class NodeGroupControllerConnection { google::cloud::dataproc::v1::CreateNodeGroupRequest const& request); virtual StatusOr CreateNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateNodeGroupRequest const& request); virtual future> - CreateNodeGroup(google::cloud::ExperimentalTag, + CreateNodeGroup(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -207,11 +207,11 @@ class NodeGroupControllerConnection { google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request); virtual StatusOr ResizeNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request); virtual future> - ResizeNodeGroup(google::cloud::ExperimentalTag, + ResizeNodeGroup(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetNodeGroup( diff --git a/google/cloud/dataproc/v1/session_controller_connection.cc b/google/cloud/dataproc/v1/session_controller_connection.cc index 046fd37068835..6dc763ab7fb46 100644 --- a/google/cloud/dataproc/v1/session_controller_connection.cc +++ b/google/cloud/dataproc/v1/session_controller_connection.cc @@ -48,7 +48,7 @@ SessionControllerConnection::CreateSession( StatusOr SessionControllerConnection::CreateSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateSessionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ SessionControllerConnection::CreateSession( future> SessionControllerConnection::CreateSession( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ SessionControllerConnection::TerminateSession( StatusOr SessionControllerConnection::TerminateSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::TerminateSessionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ SessionControllerConnection::TerminateSession( future> SessionControllerConnection::TerminateSession( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ SessionControllerConnection::DeleteSession( StatusOr SessionControllerConnection::DeleteSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DeleteSessionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ SessionControllerConnection::DeleteSession( future> SessionControllerConnection::DeleteSession( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/dataproc/v1/session_controller_connection.h b/google/cloud/dataproc/v1/session_controller_connection.h index e9fc588eb0dce..2d71e74a6b577 100644 --- a/google/cloud/dataproc/v1/session_controller_connection.h +++ b/google/cloud/dataproc/v1/session_controller_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dataproc/v1/internal/session_controller_retry_traits.h" #include "google/cloud/dataproc/v1/session_controller_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -194,12 +194,11 @@ class SessionControllerConnection { google::cloud::dataproc::v1::CreateSessionRequest const& request); virtual StatusOr CreateSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateSessionRequest const& request); virtual future> CreateSession( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetSession( google::cloud::dataproc::v1::GetSessionRequest const& request); @@ -212,23 +211,22 @@ class SessionControllerConnection { google::cloud::dataproc::v1::TerminateSessionRequest const& request); virtual StatusOr TerminateSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::TerminateSessionRequest const& request); virtual future> - TerminateSession(google::cloud::ExperimentalTag, + TerminateSession(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteSession( google::cloud::dataproc::v1::DeleteSessionRequest const& request); virtual StatusOr DeleteSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DeleteSessionRequest const& request); virtual future> DeleteSession( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dataproc/v1/session_template_controller_connection.h b/google/cloud/dataproc/v1/session_template_controller_connection.h index 12d495d136af7..4607c6dd96db7 100644 --- a/google/cloud/dataproc/v1/session_template_controller_connection.h +++ b/google/cloud/dataproc/v1/session_template_controller_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dataproc/v1/internal/session_template_controller_retry_traits.h" #include "google/cloud/dataproc/v1/session_template_controller_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dataproc/v1/workflow_template_connection.cc b/google/cloud/dataproc/v1/workflow_template_connection.cc index b4099416b9348..a307ed255803a 100644 --- a/google/cloud/dataproc/v1/workflow_template_connection.cc +++ b/google/cloud/dataproc/v1/workflow_template_connection.cc @@ -61,7 +61,7 @@ WorkflowTemplateServiceConnection::InstantiateWorkflowTemplate( StatusOr WorkflowTemplateServiceConnection::InstantiateWorkflowTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -69,7 +69,7 @@ WorkflowTemplateServiceConnection::InstantiateWorkflowTemplate( future> WorkflowTemplateServiceConnection::InstantiateWorkflowTemplate( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ WorkflowTemplateServiceConnection::InstantiateInlineWorkflowTemplate( StatusOr WorkflowTemplateServiceConnection::InstantiateInlineWorkflowTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1:: InstantiateInlineWorkflowTemplateRequest const&) { return StatusOr( @@ -95,7 +95,7 @@ WorkflowTemplateServiceConnection::InstantiateInlineWorkflowTemplate( future> WorkflowTemplateServiceConnection::InstantiateInlineWorkflowTemplate( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/dataproc/v1/workflow_template_connection.h b/google/cloud/dataproc/v1/workflow_template_connection.h index 6e281e8200467..9b595da231c3a 100644 --- a/google/cloud/dataproc/v1/workflow_template_connection.h +++ b/google/cloud/dataproc/v1/workflow_template_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dataproc/v1/internal/workflow_template_retry_traits.h" #include "google/cloud/dataproc/v1/workflow_template_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -210,12 +210,12 @@ class WorkflowTemplateServiceConnection { request); virtual StatusOr InstantiateWorkflowTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& request); virtual future> - InstantiateWorkflowTemplate(google::cloud::ExperimentalTag, + InstantiateWorkflowTemplate(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -225,14 +225,13 @@ class WorkflowTemplateServiceConnection { virtual StatusOr InstantiateInlineWorkflowTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1:: InstantiateInlineWorkflowTemplateRequest const& request); virtual future> InstantiateInlineWorkflowTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr UpdateWorkflowTemplate( diff --git a/google/cloud/datastore/admin/v1/datastore_admin_connection.cc b/google/cloud/datastore/admin/v1/datastore_admin_connection.cc index b79af70cc9a11..26aea4568c25d 100644 --- a/google/cloud/datastore/admin/v1/datastore_admin_connection.cc +++ b/google/cloud/datastore/admin/v1/datastore_admin_connection.cc @@ -48,7 +48,7 @@ DatastoreAdminConnection::ExportEntities( StatusOr DatastoreAdminConnection::ExportEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::ExportEntitiesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ DatastoreAdminConnection::ExportEntities( future> DatastoreAdminConnection::ExportEntities( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -72,7 +72,7 @@ DatastoreAdminConnection::ImportEntities( StatusOr DatastoreAdminConnection::ImportEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::ImportEntitiesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -80,7 +80,7 @@ DatastoreAdminConnection::ImportEntities( future> DatastoreAdminConnection::ImportEntities( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -95,14 +95,14 @@ DatastoreAdminConnection::CreateIndex( } StatusOr DatastoreAdminConnection::CreateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::CreateIndexRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DatastoreAdminConnection::CreateIndex(google::cloud::ExperimentalTag, +DatastoreAdminConnection::CreateIndex(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -118,14 +118,14 @@ DatastoreAdminConnection::DeleteIndex( } StatusOr DatastoreAdminConnection::DeleteIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::DeleteIndexRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DatastoreAdminConnection::DeleteIndex(google::cloud::ExperimentalTag, +DatastoreAdminConnection::DeleteIndex(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/datastore/admin/v1/datastore_admin_connection.h b/google/cloud/datastore/admin/v1/datastore_admin_connection.h index df5b3cf8c997f..72f0a7cb05f15 100644 --- a/google/cloud/datastore/admin/v1/datastore_admin_connection.h +++ b/google/cloud/datastore/admin/v1/datastore_admin_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/datastore/admin/v1/datastore_admin_connection_idempotency_policy.h" #include "google/cloud/datastore/admin/v1/internal/datastore_admin_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,11 +192,11 @@ class DatastoreAdminConnection { google::datastore::admin::v1::ExportEntitiesRequest const& request); virtual StatusOr ExportEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::ExportEntitiesRequest const& request); virtual future> - ExportEntities(google::cloud::ExperimentalTag, + ExportEntities(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -204,34 +204,32 @@ class DatastoreAdminConnection { google::datastore::admin::v1::ImportEntitiesRequest const& request); virtual StatusOr ImportEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::ImportEntitiesRequest const& request); virtual future> - ImportEntities(google::cloud::ExperimentalTag, + ImportEntities(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CreateIndex( google::datastore::admin::v1::CreateIndexRequest const& request); virtual StatusOr CreateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::CreateIndexRequest const& request); virtual future> CreateIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteIndex( google::datastore::admin::v1::DeleteIndexRequest const& request); virtual StatusOr DeleteIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::DeleteIndexRequest const& request); virtual future> DeleteIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetIndex( google::datastore::admin::v1::GetIndexRequest const& request); diff --git a/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.cc b/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.cc index 88e60558100bc..b25b80ea386d4 100644 --- a/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.cc +++ b/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.cc @@ -48,7 +48,7 @@ DatastoreAdminTracingConnection::ExportEntities( google::datastore::admin::v1::ExportEntitiesRequest const& request) { auto span = internal::MakeSpan( "datastore_admin_v1::DatastoreAdminConnection::ExportEntities"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportEntities(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -81,7 +81,7 @@ DatastoreAdminTracingConnection::ImportEntities( google::datastore::admin::v1::ImportEntitiesRequest const& request) { auto span = internal::MakeSpan( "datastore_admin_v1::DatastoreAdminConnection::ImportEntities"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportEntities(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -114,7 +114,7 @@ DatastoreAdminTracingConnection::CreateIndex( google::datastore::admin::v1::CreateIndexRequest const& request) { auto span = internal::MakeSpan( "datastore_admin_v1::DatastoreAdminConnection::CreateIndex"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateIndex(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -147,7 +147,7 @@ DatastoreAdminTracingConnection::DeleteIndex( google::datastore::admin::v1::DeleteIndexRequest const& request) { auto span = internal::MakeSpan( "datastore_admin_v1::DatastoreAdminConnection::DeleteIndex"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteIndex(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/datastore/v1/datastore_connection.h b/google/cloud/datastore/v1/datastore_connection.h index 52f17b9d2a5ff..2e7b4594090d6 100644 --- a/google/cloud/datastore/v1/datastore_connection.h +++ b/google/cloud/datastore/v1/datastore_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/datastore/v1/datastore_connection_idempotency_policy.h" #include "google/cloud/datastore/v1/internal/datastore_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/datastream/v1/datastream_connection.cc b/google/cloud/datastream/v1/datastream_connection.cc index d30cf30e0cad1..1960efdcf26dd 100644 --- a/google/cloud/datastream/v1/datastream_connection.cc +++ b/google/cloud/datastream/v1/datastream_connection.cc @@ -62,7 +62,7 @@ DatastreamConnection::CreateConnectionProfile( StatusOr DatastreamConnection::CreateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateConnectionProfileRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ DatastreamConnection::CreateConnectionProfile( future> DatastreamConnection::CreateConnectionProfile( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ DatastreamConnection::UpdateConnectionProfile( StatusOr DatastreamConnection::UpdateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::UpdateConnectionProfileRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ DatastreamConnection::UpdateConnectionProfile( future> DatastreamConnection::UpdateConnectionProfile( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ DatastreamConnection::DeleteConnectionProfile( StatusOr DatastreamConnection::DeleteConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteConnectionProfileRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ DatastreamConnection::DeleteConnectionProfile( future> DatastreamConnection::DeleteConnectionProfile( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -152,14 +152,14 @@ DatastreamConnection::CreateStream( } StatusOr DatastreamConnection::CreateStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateStreamRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DatastreamConnection::CreateStream(google::cloud::ExperimentalTag, +DatastreamConnection::CreateStream(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -175,14 +175,14 @@ DatastreamConnection::UpdateStream( } StatusOr DatastreamConnection::UpdateStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::UpdateStreamRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DatastreamConnection::UpdateStream(google::cloud::ExperimentalTag, +DatastreamConnection::UpdateStream(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -198,14 +198,14 @@ DatastreamConnection::DeleteStream( } StatusOr DatastreamConnection::DeleteStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteStreamRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DatastreamConnection::DeleteStream(google::cloud::ExperimentalTag, +DatastreamConnection::DeleteStream(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -261,7 +261,7 @@ DatastreamConnection::CreatePrivateConnection( StatusOr DatastreamConnection::CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreatePrivateConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -269,7 +269,7 @@ DatastreamConnection::CreatePrivateConnection( future> DatastreamConnection::CreatePrivateConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -299,7 +299,7 @@ DatastreamConnection::DeletePrivateConnection( StatusOr DatastreamConnection::DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeletePrivateConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -307,7 +307,7 @@ DatastreamConnection::DeletePrivateConnection( future> DatastreamConnection::DeletePrivateConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -322,14 +322,14 @@ DatastreamConnection::CreateRoute( } StatusOr DatastreamConnection::CreateRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateRouteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DatastreamConnection::CreateRoute(google::cloud::ExperimentalTag, +DatastreamConnection::CreateRoute(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -358,14 +358,14 @@ DatastreamConnection::DeleteRoute( } StatusOr DatastreamConnection::DeleteRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteRouteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DatastreamConnection::DeleteRoute(google::cloud::ExperimentalTag, +DatastreamConnection::DeleteRoute(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/datastream/v1/datastream_connection.h b/google/cloud/datastream/v1/datastream_connection.h index 9fde32cc8c483..39750b8db0cfc 100644 --- a/google/cloud/datastream/v1/datastream_connection.h +++ b/google/cloud/datastream/v1/datastream_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/datastream/v1/datastream_connection_idempotency_policy.h" #include "google/cloud/datastream/v1/internal/datastream_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -201,12 +201,12 @@ class DatastreamConnection { request); virtual StatusOr CreateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateConnectionProfileRequest const& request); virtual future> - CreateConnectionProfile(google::cloud::ExperimentalTag, + CreateConnectionProfile(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -215,12 +215,12 @@ class DatastreamConnection { request); virtual StatusOr UpdateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::UpdateConnectionProfileRequest const& request); virtual future> - UpdateConnectionProfile(google::cloud::ExperimentalTag, + UpdateConnectionProfile(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -229,12 +229,12 @@ class DatastreamConnection { request); virtual StatusOr DeleteConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteConnectionProfileRequest const& request); virtual future> - DeleteConnectionProfile(google::cloud::ExperimentalTag, + DeleteConnectionProfile(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< @@ -253,34 +253,32 @@ class DatastreamConnection { google::cloud::datastream::v1::CreateStreamRequest const& request); virtual StatusOr CreateStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateStreamRequest const& request); virtual future> CreateStream( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateStream( google::cloud::datastream::v1::UpdateStreamRequest const& request); virtual StatusOr UpdateStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::UpdateStreamRequest const& request); virtual future> UpdateStream( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteStream( google::cloud::datastream::v1::DeleteStreamRequest const& request); virtual StatusOr DeleteStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteStreamRequest const& request); virtual future> - DeleteStream(google::cloud::ExperimentalTag, + DeleteStream(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetStreamObject( @@ -311,12 +309,12 @@ class DatastreamConnection { request); virtual StatusOr CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreatePrivateConnectionRequest const& request); virtual future> - CreatePrivateConnection(google::cloud::ExperimentalTag, + CreatePrivateConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -334,24 +332,23 @@ class DatastreamConnection { request); virtual StatusOr DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeletePrivateConnectionRequest const& request); virtual future> - DeletePrivateConnection(google::cloud::ExperimentalTag, + DeletePrivateConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CreateRoute( google::cloud::datastream::v1::CreateRouteRequest const& request); virtual StatusOr CreateRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateRouteRequest const& request); virtual future> CreateRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetRoute( google::cloud::datastream::v1::GetRouteRequest const& request); @@ -363,12 +360,11 @@ class DatastreamConnection { DeleteRoute(google::cloud::datastream::v1::DeleteRouteRequest const& request); virtual StatusOr DeleteRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteRouteRequest const& request); virtual future> - DeleteRoute(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteRoute(ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/datastream/v1/internal/datastream_tracing_connection.cc b/google/cloud/datastream/v1/internal/datastream_tracing_connection.cc index a889083b63dde..481d69e77b396 100644 --- a/google/cloud/datastream/v1/internal/datastream_tracing_connection.cc +++ b/google/cloud/datastream/v1/internal/datastream_tracing_connection.cc @@ -72,7 +72,7 @@ DatastreamTracingConnection::CreateConnectionProfile( request) { auto span = internal::MakeSpan( "datastream_v1::DatastreamConnection::CreateConnectionProfile"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateConnectionProfile( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -108,7 +108,7 @@ DatastreamTracingConnection::UpdateConnectionProfile( request) { auto span = internal::MakeSpan( "datastream_v1::DatastreamConnection::UpdateConnectionProfile"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateConnectionProfile( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -144,7 +144,7 @@ DatastreamTracingConnection::DeleteConnectionProfile( request) { auto span = internal::MakeSpan( "datastream_v1::DatastreamConnection::DeleteConnectionProfile"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteConnectionProfile( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -207,7 +207,7 @@ DatastreamTracingConnection::CreateStream( google::cloud::datastream::v1::CreateStreamRequest const& request) { auto span = internal::MakeSpan("datastream_v1::DatastreamConnection::CreateStream"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateStream(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -240,7 +240,7 @@ DatastreamTracingConnection::UpdateStream( google::cloud::datastream::v1::UpdateStreamRequest const& request) { auto span = internal::MakeSpan("datastream_v1::DatastreamConnection::UpdateStream"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateStream(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -273,7 +273,7 @@ DatastreamTracingConnection::DeleteStream( google::cloud::datastream::v1::DeleteStreamRequest const& request) { auto span = internal::MakeSpan("datastream_v1::DatastreamConnection::DeleteStream"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteStream(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -367,7 +367,7 @@ DatastreamTracingConnection::CreatePrivateConnection( request) { auto span = internal::MakeSpan( "datastream_v1::DatastreamConnection::CreatePrivateConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreatePrivateConnection( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -424,7 +424,7 @@ DatastreamTracingConnection::DeletePrivateConnection( request) { auto span = internal::MakeSpan( "datastream_v1::DatastreamConnection::DeletePrivateConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeletePrivateConnection( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -457,7 +457,7 @@ DatastreamTracingConnection::CreateRoute( google::cloud::datastream::v1::CreateRouteRequest const& request) { auto span = internal::MakeSpan("datastream_v1::DatastreamConnection::CreateRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateRoute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -510,7 +510,7 @@ DatastreamTracingConnection::DeleteRoute( google::cloud::datastream::v1::DeleteRouteRequest const& request) { auto span = internal::MakeSpan("datastream_v1::DatastreamConnection::DeleteRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteRoute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/deploy/v1/cloud_deploy_connection.cc b/google/cloud/deploy/v1/cloud_deploy_connection.cc index 1b3a9a925f839..9e2dc1b3f3f0c 100644 --- a/google/cloud/deploy/v1/cloud_deploy_connection.cc +++ b/google/cloud/deploy/v1/cloud_deploy_connection.cc @@ -62,7 +62,7 @@ CloudDeployConnection::CreateDeliveryPipeline( StatusOr CloudDeployConnection::CreateDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateDeliveryPipelineRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ CloudDeployConnection::CreateDeliveryPipeline( future> CloudDeployConnection::CreateDeliveryPipeline( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ CloudDeployConnection::UpdateDeliveryPipeline( StatusOr CloudDeployConnection::UpdateDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ CloudDeployConnection::UpdateDeliveryPipeline( future> CloudDeployConnection::UpdateDeliveryPipeline( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ CloudDeployConnection::DeleteDeliveryPipeline( StatusOr CloudDeployConnection::DeleteDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ CloudDeployConnection::DeleteDeliveryPipeline( future> CloudDeployConnection::DeleteDeliveryPipeline( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -152,14 +152,14 @@ CloudDeployConnection::CreateTarget( } StatusOr CloudDeployConnection::CreateTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateTargetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudDeployConnection::CreateTarget(google::cloud::ExperimentalTag, +CloudDeployConnection::CreateTarget(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -175,14 +175,14 @@ CloudDeployConnection::UpdateTarget( } StatusOr CloudDeployConnection::UpdateTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateTargetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudDeployConnection::UpdateTarget(google::cloud::ExperimentalTag, +CloudDeployConnection::UpdateTarget(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -198,14 +198,14 @@ CloudDeployConnection::DeleteTarget( } StatusOr CloudDeployConnection::DeleteTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteTargetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudDeployConnection::DeleteTarget(google::cloud::ExperimentalTag, +CloudDeployConnection::DeleteTarget(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -236,7 +236,7 @@ CloudDeployConnection::CreateCustomTargetType( StatusOr CloudDeployConnection::CreateCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateCustomTargetTypeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -244,7 +244,7 @@ CloudDeployConnection::CreateCustomTargetType( future> CloudDeployConnection::CreateCustomTargetType( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -260,7 +260,7 @@ CloudDeployConnection::UpdateCustomTargetType( StatusOr CloudDeployConnection::UpdateCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -268,7 +268,7 @@ CloudDeployConnection::UpdateCustomTargetType( future> CloudDeployConnection::UpdateCustomTargetType( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -284,7 +284,7 @@ CloudDeployConnection::DeleteCustomTargetType( StatusOr CloudDeployConnection::DeleteCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -292,7 +292,7 @@ CloudDeployConnection::DeleteCustomTargetType( future> CloudDeployConnection::DeleteCustomTargetType( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -320,14 +320,14 @@ CloudDeployConnection::CreateRelease( } StatusOr CloudDeployConnection::CreateRelease( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateReleaseRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudDeployConnection::CreateRelease(google::cloud::ExperimentalTag, +CloudDeployConnection::CreateRelease(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -380,14 +380,14 @@ CloudDeployConnection::CreateRollout( } StatusOr CloudDeployConnection::CreateRollout( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateRolloutRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudDeployConnection::CreateRollout(google::cloud::ExperimentalTag, +CloudDeployConnection::CreateRollout(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -440,14 +440,14 @@ CloudDeployConnection::CreateAutomation( StatusOr CloudDeployConnection::CreateAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateAutomationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudDeployConnection::CreateAutomation(google::cloud::ExperimentalTag, +CloudDeployConnection::CreateAutomation(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -464,14 +464,14 @@ CloudDeployConnection::UpdateAutomation( StatusOr CloudDeployConnection::UpdateAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateAutomationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudDeployConnection::UpdateAutomation(google::cloud::ExperimentalTag, +CloudDeployConnection::UpdateAutomation(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -488,14 +488,14 @@ CloudDeployConnection::DeleteAutomation( StatusOr CloudDeployConnection::DeleteAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteAutomationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudDeployConnection::DeleteAutomation(google::cloud::ExperimentalTag, +CloudDeployConnection::DeleteAutomation(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/deploy/v1/cloud_deploy_connection.h b/google/cloud/deploy/v1/cloud_deploy_connection.h index fe71f59cf9d06..8d945f9f6bc91 100644 --- a/google/cloud/deploy/v1/cloud_deploy_connection.h +++ b/google/cloud/deploy/v1/cloud_deploy_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/deploy/v1/cloud_deploy_connection_idempotency_policy.h" #include "google/cloud/deploy/v1/internal/cloud_deploy_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,11 +199,11 @@ class CloudDeployConnection { google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request); virtual StatusOr CreateDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request); virtual future> - CreateDeliveryPipeline(google::cloud::ExperimentalTag, + CreateDeliveryPipeline(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -211,11 +211,11 @@ class CloudDeployConnection { google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request); virtual StatusOr UpdateDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request); virtual future> - UpdateDeliveryPipeline(google::cloud::ExperimentalTag, + UpdateDeliveryPipeline(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -223,11 +223,11 @@ class CloudDeployConnection { google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request); virtual StatusOr DeleteDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request); virtual future> - DeleteDeliveryPipeline(google::cloud::ExperimentalTag, + DeleteDeliveryPipeline(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListTargets( @@ -244,33 +244,31 @@ class CloudDeployConnection { google::cloud::deploy::v1::CreateTargetRequest const& request); virtual StatusOr CreateTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateTargetRequest const& request); virtual future> CreateTarget( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateTarget( google::cloud::deploy::v1::UpdateTargetRequest const& request); virtual StatusOr UpdateTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateTargetRequest const& request); virtual future> UpdateTarget( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteTarget(google::cloud::deploy::v1::DeleteTargetRequest const& request); virtual StatusOr DeleteTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteTargetRequest const& request); virtual future> - DeleteTarget(google::cloud::ExperimentalTag, + DeleteTarget(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -286,11 +284,11 @@ class CloudDeployConnection { google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request); virtual StatusOr CreateCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request); virtual future> - CreateCustomTargetType(google::cloud::ExperimentalTag, + CreateCustomTargetType(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -298,11 +296,11 @@ class CloudDeployConnection { google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request); virtual StatusOr UpdateCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request); virtual future> - UpdateCustomTargetType(google::cloud::ExperimentalTag, + UpdateCustomTargetType(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -310,11 +308,11 @@ class CloudDeployConnection { google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request); virtual StatusOr DeleteCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request); virtual future> - DeleteCustomTargetType(google::cloud::ExperimentalTag, + DeleteCustomTargetType(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListReleases( @@ -327,12 +325,11 @@ class CloudDeployConnection { google::cloud::deploy::v1::CreateReleaseRequest const& request); virtual StatusOr CreateRelease( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateReleaseRequest const& request); virtual future> CreateRelease( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr AbandonRelease( @@ -359,12 +356,11 @@ class CloudDeployConnection { google::cloud::deploy::v1::CreateRolloutRequest const& request); virtual StatusOr CreateRollout( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateRolloutRequest const& request); virtual future> CreateRollout( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr IgnoreJob( google::cloud::deploy::v1::IgnoreJobRequest const& request); @@ -390,11 +386,11 @@ class CloudDeployConnection { google::cloud::deploy::v1::CreateAutomationRequest const& request); virtual StatusOr CreateAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateAutomationRequest const& request); virtual future> - CreateAutomation(google::cloud::ExperimentalTag, + CreateAutomation(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -402,11 +398,11 @@ class CloudDeployConnection { google::cloud::deploy::v1::UpdateAutomationRequest const& request); virtual StatusOr UpdateAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateAutomationRequest const& request); virtual future> - UpdateAutomation(google::cloud::ExperimentalTag, + UpdateAutomation(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -414,11 +410,11 @@ class CloudDeployConnection { google::cloud::deploy::v1::DeleteAutomationRequest const& request); virtual StatusOr DeleteAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteAutomationRequest const& request); virtual future> - DeleteAutomation(google::cloud::ExperimentalTag, + DeleteAutomation(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetAutomation( diff --git a/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.cc b/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.cc index 7fa7fb116ffa9..54c37084a40f7 100644 --- a/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.cc +++ b/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.cc @@ -70,7 +70,7 @@ CloudDeployTracingConnection::CreateDeliveryPipeline( google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::CreateDeliveryPipeline"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateDeliveryPipeline( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -104,7 +104,7 @@ CloudDeployTracingConnection::UpdateDeliveryPipeline( google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::UpdateDeliveryPipeline"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateDeliveryPipeline( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -138,7 +138,7 @@ CloudDeployTracingConnection::DeleteDeliveryPipeline( google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::DeleteDeliveryPipeline"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteDeliveryPipeline( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -199,7 +199,7 @@ CloudDeployTracingConnection::CreateTarget( google::cloud::deploy::v1::CreateTargetRequest const& request) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateTarget"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateTarget(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -232,7 +232,7 @@ CloudDeployTracingConnection::UpdateTarget( google::cloud::deploy::v1::UpdateTargetRequest const& request) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::UpdateTarget"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateTarget(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -265,7 +265,7 @@ CloudDeployTracingConnection::DeleteTarget( google::cloud::deploy::v1::DeleteTargetRequest const& request) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::DeleteTarget"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteTarget(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -320,7 +320,7 @@ CloudDeployTracingConnection::CreateCustomTargetType( google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::CreateCustomTargetType"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateCustomTargetType( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -354,7 +354,7 @@ CloudDeployTracingConnection::UpdateCustomTargetType( google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::UpdateCustomTargetType"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateCustomTargetType( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -388,7 +388,7 @@ CloudDeployTracingConnection::DeleteCustomTargetType( google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::DeleteCustomTargetType"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteCustomTargetType( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -441,7 +441,7 @@ CloudDeployTracingConnection::CreateRelease( google::cloud::deploy::v1::CreateReleaseRequest const& request) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateRelease"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateRelease(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -530,7 +530,7 @@ CloudDeployTracingConnection::CreateRollout( google::cloud::deploy::v1::CreateRolloutRequest const& request) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateRollout"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateRollout(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -615,7 +615,7 @@ CloudDeployTracingConnection::CreateAutomation( google::cloud::deploy::v1::CreateAutomationRequest const& request) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateAutomation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateAutomation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -648,7 +648,7 @@ CloudDeployTracingConnection::UpdateAutomation( google::cloud::deploy::v1::UpdateAutomationRequest const& request) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::UpdateAutomation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateAutomation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -681,7 +681,7 @@ CloudDeployTracingConnection::DeleteAutomation( google::cloud::deploy::v1::DeleteAutomationRequest const& request) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::DeleteAutomation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAutomation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dialogflow_cx/agents_connection.cc b/google/cloud/dialogflow_cx/agents_connection.cc index 46cdce6aafc33..2218fc2acb4b6 100644 --- a/google/cloud/dialogflow_cx/agents_connection.cc +++ b/google/cloud/dialogflow_cx/agents_connection.cc @@ -77,14 +77,14 @@ AgentsConnection::ExportAgent( } StatusOr AgentsConnection::ExportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportAgentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AgentsConnection::ExportAgent(google::cloud::ExperimentalTag, +AgentsConnection::ExportAgent(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -98,14 +98,14 @@ future> AgentsConnection::RestoreAgent( } StatusOr AgentsConnection::RestoreAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RestoreAgentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> AgentsConnection::RestoreAgent( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } diff --git a/google/cloud/dialogflow_cx/agents_connection.h b/google/cloud/dialogflow_cx/agents_connection.h index 1dca7ef297941..ca4c63e33719a 100644 --- a/google/cloud/dialogflow_cx/agents_connection.h +++ b/google/cloud/dialogflow_cx/agents_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dialogflow_cx/agents_connection_idempotency_policy.h" #include "google/cloud/dialogflow_cx/internal/agents_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -206,24 +206,22 @@ class AgentsConnection { google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request); virtual StatusOr ExportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request); virtual future< StatusOr> - ExportAgent(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExportAgent(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> RestoreAgent( google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request); virtual StatusOr RestoreAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request); virtual future> RestoreAgent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr ValidateAgent( diff --git a/google/cloud/dialogflow_cx/changelogs_connection.h b/google/cloud/dialogflow_cx/changelogs_connection.h index 84466fb7371c2..02bab89039526 100644 --- a/google/cloud/dialogflow_cx/changelogs_connection.h +++ b/google/cloud/dialogflow_cx/changelogs_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_cx/changelogs_connection_idempotency_policy.h" #include "google/cloud/dialogflow_cx/internal/changelogs_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dialogflow_cx/deployments_connection.h b/google/cloud/dialogflow_cx/deployments_connection.h index 58eb88f312b70..7e200a621915a 100644 --- a/google/cloud/dialogflow_cx/deployments_connection.h +++ b/google/cloud/dialogflow_cx/deployments_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_cx/deployments_connection_idempotency_policy.h" #include "google/cloud/dialogflow_cx/internal/deployments_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dialogflow_cx/entity_types_connection.cc b/google/cloud/dialogflow_cx/entity_types_connection.cc index 4eefcb117843b..3d4ca1f483054 100644 --- a/google/cloud/dialogflow_cx/entity_types_connection.cc +++ b/google/cloud/dialogflow_cx/entity_types_connection.cc @@ -79,7 +79,7 @@ EntityTypesConnection::ExportEntityTypes( StatusOr EntityTypesConnection::ExportEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -87,7 +87,7 @@ EntityTypesConnection::ExportEntityTypes( future> EntityTypesConnection::ExportEntityTypes( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -103,7 +103,7 @@ EntityTypesConnection::ImportEntityTypes( StatusOr EntityTypesConnection::ImportEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -111,7 +111,7 @@ EntityTypesConnection::ImportEntityTypes( future> EntityTypesConnection::ImportEntityTypes( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/dialogflow_cx/entity_types_connection.h b/google/cloud/dialogflow_cx/entity_types_connection.h index 414c2c1d5ca5a..f3188c72c7686 100644 --- a/google/cloud/dialogflow_cx/entity_types_connection.h +++ b/google/cloud/dialogflow_cx/entity_types_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dialogflow_cx/entity_types_connection_idempotency_policy.h" #include "google/cloud/dialogflow_cx/internal/entity_types_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -215,13 +215,13 @@ class EntityTypesConnection { request); virtual StatusOr ExportEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& request); virtual future< StatusOr> - ExportEntityTypes(google::cloud::ExperimentalTag, + ExportEntityTypes(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -231,13 +231,13 @@ class EntityTypesConnection { request); virtual StatusOr ImportEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& request); virtual future< StatusOr> - ImportEntityTypes(google::cloud::ExperimentalTag, + ImportEntityTypes(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/dialogflow_cx/environments_connection.cc b/google/cloud/dialogflow_cx/environments_connection.cc index e2a12dc2d2cbc..48ff116fb5509 100644 --- a/google/cloud/dialogflow_cx/environments_connection.cc +++ b/google/cloud/dialogflow_cx/environments_connection.cc @@ -62,7 +62,7 @@ EnvironmentsConnection::CreateEnvironment( StatusOr EnvironmentsConnection::CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ EnvironmentsConnection::CreateEnvironment( future> EnvironmentsConnection::CreateEnvironment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ EnvironmentsConnection::UpdateEnvironment( StatusOr EnvironmentsConnection::UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ EnvironmentsConnection::UpdateEnvironment( future> EnvironmentsConnection::UpdateEnvironment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -123,7 +123,7 @@ EnvironmentsConnection::RunContinuousTest( StatusOr EnvironmentsConnection::RunContinuousTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -131,7 +131,7 @@ EnvironmentsConnection::RunContinuousTest( future> EnvironmentsConnection::RunContinuousTest( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -154,14 +154,14 @@ EnvironmentsConnection::DeployFlow( } StatusOr EnvironmentsConnection::DeployFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::DeployFlowRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EnvironmentsConnection::DeployFlow(google::cloud::ExperimentalTag, +EnvironmentsConnection::DeployFlow(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/dialogflow_cx/environments_connection.h b/google/cloud/dialogflow_cx/environments_connection.h index 34c444aed752c..d6d10a3f8f39a 100644 --- a/google/cloud/dialogflow_cx/environments_connection.h +++ b/google/cloud/dialogflow_cx/environments_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dialogflow_cx/environments_connection_idempotency_policy.h" #include "google/cloud/dialogflow_cx/internal/environments_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -203,12 +203,12 @@ class EnvironmentsConnection { request); virtual StatusOr CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& request); virtual future> - CreateEnvironment(google::cloud::ExperimentalTag, + CreateEnvironment(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -217,12 +217,12 @@ class EnvironmentsConnection { request); virtual StatusOr UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& request); virtual future> - UpdateEnvironment(google::cloud::ExperimentalTag, + UpdateEnvironment(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status DeleteEnvironment( @@ -241,13 +241,13 @@ class EnvironmentsConnection { request); virtual StatusOr RunContinuousTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& request); virtual future< StatusOr> - RunContinuousTest(google::cloud::ExperimentalTag, + RunContinuousTest(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -261,13 +261,12 @@ class EnvironmentsConnection { google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request); virtual StatusOr DeployFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request); virtual future< StatusOr> - DeployFlow(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeployFlow(ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dialogflow_cx/experiments_connection.h b/google/cloud/dialogflow_cx/experiments_connection.h index 220f14df17f29..248e6f59dd648 100644 --- a/google/cloud/dialogflow_cx/experiments_connection.h +++ b/google/cloud/dialogflow_cx/experiments_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_cx/experiments_connection_idempotency_policy.h" #include "google/cloud/dialogflow_cx/internal/experiments_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dialogflow_cx/flows_connection.cc b/google/cloud/dialogflow_cx/flows_connection.cc index c90ee366e442d..19d68e1cf0dc3 100644 --- a/google/cloud/dialogflow_cx/flows_connection.cc +++ b/google/cloud/dialogflow_cx/flows_connection.cc @@ -72,14 +72,14 @@ future> FlowsConnection::TrainFlow( } StatusOr FlowsConnection::TrainFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::TrainFlowRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> FlowsConnection::TrainFlow( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } @@ -105,14 +105,14 @@ FlowsConnection::ImportFlow( } StatusOr FlowsConnection::ImportFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportFlowRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -FlowsConnection::ImportFlow(google::cloud::ExperimentalTag, +FlowsConnection::ImportFlow(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -128,14 +128,14 @@ FlowsConnection::ExportFlow( } StatusOr FlowsConnection::ExportFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportFlowRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -FlowsConnection::ExportFlow(google::cloud::ExperimentalTag, +FlowsConnection::ExportFlow(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/dialogflow_cx/flows_connection.h b/google/cloud/dialogflow_cx/flows_connection.h index 4377d111a02f3..18364fa8616dd 100644 --- a/google/cloud/dialogflow_cx/flows_connection.h +++ b/google/cloud/dialogflow_cx/flows_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dialogflow_cx/flows_connection_idempotency_policy.h" #include "google/cloud/dialogflow_cx/internal/flows_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -204,12 +204,11 @@ class FlowsConnection { google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request); virtual StatusOr TrainFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request); virtual future> TrainFlow( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr ValidateFlow( @@ -226,13 +225,12 @@ class FlowsConnection { google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request); virtual StatusOr ImportFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request); virtual future< StatusOr> - ImportFlow(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ImportFlow(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> @@ -240,13 +238,12 @@ class FlowsConnection { google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request); virtual StatusOr ExportFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request); virtual future< StatusOr> - ExportFlow(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExportFlow(ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dialogflow_cx/generators_connection.h b/google/cloud/dialogflow_cx/generators_connection.h index 125fe61e6cc40..08c78800a3f3e 100644 --- a/google/cloud/dialogflow_cx/generators_connection.h +++ b/google/cloud/dialogflow_cx/generators_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_cx/generators_connection_idempotency_policy.h" #include "google/cloud/dialogflow_cx/internal/generators_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dialogflow_cx/intents_connection.cc b/google/cloud/dialogflow_cx/intents_connection.cc index 98763181290fd..c447892088bcb 100644 --- a/google/cloud/dialogflow_cx/intents_connection.cc +++ b/google/cloud/dialogflow_cx/intents_connection.cc @@ -78,14 +78,14 @@ IntentsConnection::ImportIntents( } StatusOr IntentsConnection::ImportIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportIntentsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -IntentsConnection::ImportIntents(google::cloud::ExperimentalTag, +IntentsConnection::ImportIntents(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -101,14 +101,14 @@ IntentsConnection::ExportIntents( } StatusOr IntentsConnection::ExportIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportIntentsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -IntentsConnection::ExportIntents(google::cloud::ExperimentalTag, +IntentsConnection::ExportIntents(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/dialogflow_cx/intents_connection.h b/google/cloud/dialogflow_cx/intents_connection.h index 76e8a2db27de8..4e18f562d6f02 100644 --- a/google/cloud/dialogflow_cx/intents_connection.h +++ b/google/cloud/dialogflow_cx/intents_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dialogflow_cx/intents_connection_idempotency_policy.h" #include "google/cloud/dialogflow_cx/internal/intents_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -206,12 +206,12 @@ class IntentsConnection { google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request); virtual StatusOr ImportIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request); virtual future< StatusOr> - ImportIntents(google::cloud::ExperimentalTag, + ImportIntents(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -220,12 +220,12 @@ class IntentsConnection { google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request); virtual StatusOr ExportIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request); virtual future< StatusOr> - ExportIntents(google::cloud::ExperimentalTag, + ExportIntents(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/dialogflow_cx/internal/agents_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/agents_tracing_connection.cc index a860e5a28fe93..766571e5b9f66 100644 --- a/google/cloud/dialogflow_cx/internal/agents_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/agents_tracing_connection.cc @@ -91,7 +91,7 @@ StatusOr AgentsTracingConnection::ExportAgent( google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::AgentsConnection::ExportAgent"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportAgent(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -123,7 +123,7 @@ StatusOr AgentsTracingConnection::RestoreAgent( google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::AgentsConnection::RestoreAgent"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RestoreAgent(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.cc index 0bb64749e1c2d..0c84ebe744061 100644 --- a/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.cc @@ -97,7 +97,7 @@ EntityTypesTracingConnection::ExportEntityTypes( request) { auto span = internal::MakeSpan( "dialogflow_cx::EntityTypesConnection::ExportEntityTypes"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportEntityTypes(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -132,7 +132,7 @@ EntityTypesTracingConnection::ImportEntityTypes( request) { auto span = internal::MakeSpan( "dialogflow_cx::EntityTypesConnection::ImportEntityTypes"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportEntityTypes(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dialogflow_cx/internal/environments_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/environments_tracing_connection.cc index ac5341bd34438..5c6b29ce5f1b2 100644 --- a/google/cloud/dialogflow_cx/internal/environments_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/environments_tracing_connection.cc @@ -71,7 +71,7 @@ EnvironmentsTracingConnection::CreateEnvironment( request) { auto span = internal::MakeSpan( "dialogflow_cx::EnvironmentsConnection::CreateEnvironment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateEnvironment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -106,7 +106,7 @@ EnvironmentsTracingConnection::UpdateEnvironment( request) { auto span = internal::MakeSpan( "dialogflow_cx::EnvironmentsConnection::UpdateEnvironment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateEnvironment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -163,7 +163,7 @@ EnvironmentsTracingConnection::RunContinuousTest( request) { auto span = internal::MakeSpan( "dialogflow_cx::EnvironmentsConnection::RunContinuousTest"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RunContinuousTest(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -209,7 +209,7 @@ EnvironmentsTracingConnection::DeployFlow( google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::EnvironmentsConnection::DeployFlow"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeployFlow(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dialogflow_cx/internal/flows_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/flows_tracing_connection.cc index 413a45003ff5b..dd53deb1be1c3 100644 --- a/google/cloud/dialogflow_cx/internal/flows_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/flows_tracing_connection.cc @@ -85,7 +85,7 @@ StatusOr FlowsTracingConnection::TrainFlow( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::FlowsConnection::TrainFlow"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->TrainFlow(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -132,7 +132,7 @@ StatusOr FlowsTracingConnection::ImportFlow( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::FlowsConnection::ImportFlow"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportFlow(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -161,7 +161,7 @@ StatusOr FlowsTracingConnection::ExportFlow( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::FlowsConnection::ExportFlow"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportFlow(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dialogflow_cx/internal/intents_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/intents_tracing_connection.cc index ba3dab215afa5..e4ddebc80a8f6 100644 --- a/google/cloud/dialogflow_cx/internal/intents_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/intents_tracing_connection.cc @@ -94,7 +94,7 @@ IntentsTracingConnection::ImportIntents( google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::IntentsConnection::ImportIntents"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportIntents(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -127,7 +127,7 @@ IntentsTracingConnection::ExportIntents( google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::IntentsConnection::ExportIntents"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportIntents(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.cc index 191cc140de40f..51805bf617978 100644 --- a/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.cc @@ -96,7 +96,7 @@ TestCasesTracingConnection::RunTestCase( google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::TestCasesConnection::RunTestCase"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RunTestCase(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -131,7 +131,7 @@ TestCasesTracingConnection::BatchRunTestCases( request) { auto span = internal::MakeSpan( "dialogflow_cx::TestCasesConnection::BatchRunTestCases"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BatchRunTestCases(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -174,7 +174,7 @@ TestCasesTracingConnection::ImportTestCases( google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::TestCasesConnection::ImportTestCases"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportTestCases(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -207,7 +207,7 @@ TestCasesTracingConnection::ExportTestCases( google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::TestCasesConnection::ExportTestCases"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportTestCases(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dialogflow_cx/internal/versions_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/versions_tracing_connection.cc index e16b4ccd423bb..59be8f23e3f82 100644 --- a/google/cloud/dialogflow_cx/internal/versions_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/versions_tracing_connection.cc @@ -69,7 +69,7 @@ VersionsTracingConnection::CreateVersion( google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::VersionsConnection::CreateVersion"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateVersion(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -118,7 +118,7 @@ StatusOr VersionsTracingConnection::LoadVersion( google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::VersionsConnection::LoadVersion"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->LoadVersion(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dialogflow_cx/pages_connection.h b/google/cloud/dialogflow_cx/pages_connection.h index 8b2f6454ac161..cde1a72279c31 100644 --- a/google/cloud/dialogflow_cx/pages_connection.h +++ b/google/cloud/dialogflow_cx/pages_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_cx/internal/pages_retry_traits.h" #include "google/cloud/dialogflow_cx/pages_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dialogflow_cx/security_settings_connection.h b/google/cloud/dialogflow_cx/security_settings_connection.h index 15ae1f4e1767c..9c0333c36a2df 100644 --- a/google/cloud/dialogflow_cx/security_settings_connection.h +++ b/google/cloud/dialogflow_cx/security_settings_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_cx/internal/security_settings_retry_traits.h" #include "google/cloud/dialogflow_cx/security_settings_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dialogflow_cx/session_entity_types_connection.h b/google/cloud/dialogflow_cx/session_entity_types_connection.h index 25688e67efa95..7c407514c3540 100644 --- a/google/cloud/dialogflow_cx/session_entity_types_connection.h +++ b/google/cloud/dialogflow_cx/session_entity_types_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_cx/internal/session_entity_types_retry_traits.h" #include "google/cloud/dialogflow_cx/session_entity_types_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dialogflow_cx/sessions_connection.h b/google/cloud/dialogflow_cx/sessions_connection.h index 27c0b52b95247..2cb9a48dd4945 100644 --- a/google/cloud/dialogflow_cx/sessions_connection.h +++ b/google/cloud/dialogflow_cx/sessions_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_cx/internal/sessions_retry_traits.h" #include "google/cloud/dialogflow_cx/sessions_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/async_read_write_stream_impl.h" diff --git a/google/cloud/dialogflow_cx/test_cases_connection.cc b/google/cloud/dialogflow_cx/test_cases_connection.cc index d4354775e506e..2774d1a176674 100644 --- a/google/cloud/dialogflow_cx/test_cases_connection.cc +++ b/google/cloud/dialogflow_cx/test_cases_connection.cc @@ -78,14 +78,14 @@ TestCasesConnection::RunTestCase( } StatusOr TestCasesConnection::RunTestCase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RunTestCaseRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -TestCasesConnection::RunTestCase(google::cloud::ExperimentalTag, +TestCasesConnection::RunTestCase(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -101,14 +101,14 @@ TestCasesConnection::BatchRunTestCases( } StatusOr TestCasesConnection::BatchRunTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -TestCasesConnection::BatchRunTestCases(google::cloud::ExperimentalTag, +TestCasesConnection::BatchRunTestCases(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -130,14 +130,14 @@ TestCasesConnection::ImportTestCases( } StatusOr TestCasesConnection::ImportTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -TestCasesConnection::ImportTestCases(google::cloud::ExperimentalTag, +TestCasesConnection::ImportTestCases(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -153,14 +153,14 @@ TestCasesConnection::ExportTestCases( } StatusOr TestCasesConnection::ExportTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -TestCasesConnection::ExportTestCases(google::cloud::ExperimentalTag, +TestCasesConnection::ExportTestCases(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/dialogflow_cx/test_cases_connection.h b/google/cloud/dialogflow_cx/test_cases_connection.h index c387a2773781a..cb5f06688a009 100644 --- a/google/cloud/dialogflow_cx/test_cases_connection.h +++ b/google/cloud/dialogflow_cx/test_cases_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dialogflow_cx/internal/test_cases_retry_traits.h" #include "google/cloud/dialogflow_cx/test_cases_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -210,13 +210,12 @@ class TestCasesConnection { google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request); virtual StatusOr RunTestCase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request); virtual future< StatusOr> - RunTestCase(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + RunTestCase(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> @@ -225,13 +224,13 @@ class TestCasesConnection { request); virtual StatusOr BatchRunTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& request); virtual future< StatusOr> - BatchRunTestCases(google::cloud::ExperimentalTag, + BatchRunTestCases(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -245,12 +244,12 @@ class TestCasesConnection { google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request); virtual StatusOr ImportTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request); virtual future< StatusOr> - ImportTestCases(google::cloud::ExperimentalTag, + ImportTestCases(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -259,12 +258,12 @@ class TestCasesConnection { google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request); virtual StatusOr ExportTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request); virtual future< StatusOr> - ExportTestCases(google::cloud::ExperimentalTag, + ExportTestCases(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange diff --git a/google/cloud/dialogflow_cx/transition_route_groups_connection.h b/google/cloud/dialogflow_cx/transition_route_groups_connection.h index a35eb321a9156..395295fb6a831 100644 --- a/google/cloud/dialogflow_cx/transition_route_groups_connection.h +++ b/google/cloud/dialogflow_cx/transition_route_groups_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_cx/internal/transition_route_groups_retry_traits.h" #include "google/cloud/dialogflow_cx/transition_route_groups_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dialogflow_cx/versions_connection.cc b/google/cloud/dialogflow_cx/versions_connection.cc index 4e52b6895ee8a..4aaf61bda93e0 100644 --- a/google/cloud/dialogflow_cx/versions_connection.cc +++ b/google/cloud/dialogflow_cx/versions_connection.cc @@ -61,14 +61,14 @@ VersionsConnection::CreateVersion( } StatusOr VersionsConnection::CreateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::CreateVersionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VersionsConnection::CreateVersion(google::cloud::ExperimentalTag, +VersionsConnection::CreateVersion(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -93,14 +93,14 @@ future> VersionsConnection::LoadVersion( } StatusOr VersionsConnection::LoadVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::LoadVersionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> VersionsConnection::LoadVersion( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } diff --git a/google/cloud/dialogflow_cx/versions_connection.h b/google/cloud/dialogflow_cx/versions_connection.h index 6a4d246bc0f38..b0d7b9a62ac0c 100644 --- a/google/cloud/dialogflow_cx/versions_connection.h +++ b/google/cloud/dialogflow_cx/versions_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dialogflow_cx/internal/versions_retry_traits.h" #include "google/cloud/dialogflow_cx/versions_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,11 +197,11 @@ class VersionsConnection { google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request); virtual StatusOr CreateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request); virtual future> - CreateVersion(google::cloud::ExperimentalTag, + CreateVersion(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr UpdateVersion( @@ -214,12 +214,11 @@ class VersionsConnection { google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request); virtual StatusOr LoadVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request); virtual future> LoadVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr CompareVersions( diff --git a/google/cloud/dialogflow_cx/webhooks_connection.h b/google/cloud/dialogflow_cx/webhooks_connection.h index 75159ff74d7b4..7da57cf689219 100644 --- a/google/cloud/dialogflow_cx/webhooks_connection.h +++ b/google/cloud/dialogflow_cx/webhooks_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_cx/internal/webhooks_retry_traits.h" #include "google/cloud/dialogflow_cx/webhooks_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dialogflow_es/agents_connection.cc b/google/cloud/dialogflow_es/agents_connection.cc index 3826e021484d0..9a81664b132f6 100644 --- a/google/cloud/dialogflow_es/agents_connection.cc +++ b/google/cloud/dialogflow_es/agents_connection.cc @@ -68,14 +68,14 @@ future> AgentsConnection::TrainAgent( } StatusOr AgentsConnection::TrainAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::TrainAgentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> AgentsConnection::TrainAgent( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } @@ -89,14 +89,14 @@ AgentsConnection::ExportAgent( } StatusOr AgentsConnection::ExportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ExportAgentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AgentsConnection::ExportAgent(google::cloud::ExperimentalTag, +AgentsConnection::ExportAgent(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -110,14 +110,14 @@ future> AgentsConnection::ImportAgent( } StatusOr AgentsConnection::ImportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportAgentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> AgentsConnection::ImportAgent( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } @@ -129,14 +129,14 @@ future> AgentsConnection::RestoreAgent( } StatusOr AgentsConnection::RestoreAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::RestoreAgentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> AgentsConnection::RestoreAgent( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } diff --git a/google/cloud/dialogflow_es/agents_connection.h b/google/cloud/dialogflow_es/agents_connection.h index 95526c52e3b8e..d8dd6be80b5f5 100644 --- a/google/cloud/dialogflow_es/agents_connection.h +++ b/google/cloud/dialogflow_es/agents_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dialogflow_es/agents_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/agents_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -201,45 +201,41 @@ class AgentsConnection { google::cloud::dialogflow::v2::TrainAgentRequest const& request); virtual StatusOr TrainAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::TrainAgentRequest const& request); virtual future> TrainAgent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ExportAgent(google::cloud::dialogflow::v2::ExportAgentRequest const& request); virtual StatusOr ExportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ExportAgentRequest const& request); virtual future> - ExportAgent(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExportAgent(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ImportAgent( google::cloud::dialogflow::v2::ImportAgentRequest const& request); virtual StatusOr ImportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportAgentRequest const& request); virtual future> ImportAgent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> RestoreAgent( google::cloud::dialogflow::v2::RestoreAgentRequest const& request); virtual StatusOr RestoreAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::RestoreAgentRequest const& request); virtual future> RestoreAgent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetValidationResult( diff --git a/google/cloud/dialogflow_es/answer_records_connection.h b/google/cloud/dialogflow_es/answer_records_connection.h index e8a0c94b2d22c..11168386108fd 100644 --- a/google/cloud/dialogflow_es/answer_records_connection.h +++ b/google/cloud/dialogflow_es/answer_records_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_es/answer_records_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/answer_records_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dialogflow_es/contexts_connection.h b/google/cloud/dialogflow_es/contexts_connection.h index fe0a3ed14e357..ccd4af9f8c51a 100644 --- a/google/cloud/dialogflow_es/contexts_connection.h +++ b/google/cloud/dialogflow_es/contexts_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_es/contexts_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/contexts_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dialogflow_es/conversation_datasets_connection.cc b/google/cloud/dialogflow_es/conversation_datasets_connection.cc index 7dfff38faf541..281b41214e0c1 100644 --- a/google/cloud/dialogflow_es/conversation_datasets_connection.cc +++ b/google/cloud/dialogflow_es/conversation_datasets_connection.cc @@ -48,7 +48,7 @@ ConversationDatasetsConnection::CreateConversationDataset( StatusOr ConversationDatasetsConnection::CreateConversationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateConversationDatasetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ ConversationDatasetsConnection::CreateConversationDataset( future> ConversationDatasetsConnection::CreateConversationDataset( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -88,7 +88,7 @@ ConversationDatasetsConnection::DeleteConversationDataset( StatusOr ConversationDatasetsConnection::DeleteConversationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -97,7 +97,7 @@ ConversationDatasetsConnection::DeleteConversationDataset( future> ConversationDatasetsConnection::DeleteConversationDataset( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -115,7 +115,7 @@ ConversationDatasetsConnection::ImportConversationData( StatusOr ConversationDatasetsConnection::ImportConversationData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportConversationDataRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -124,7 +124,7 @@ ConversationDatasetsConnection::ImportConversationData( future> ConversationDatasetsConnection::ImportConversationData( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/dialogflow_es/conversation_datasets_connection.h b/google/cloud/dialogflow_es/conversation_datasets_connection.h index ce4753650eef7..b5930bdbd1f63 100644 --- a/google/cloud/dialogflow_es/conversation_datasets_connection.h +++ b/google/cloud/dialogflow_es/conversation_datasets_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dialogflow_es/conversation_datasets_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/conversation_datasets_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -198,12 +198,12 @@ class ConversationDatasetsConnection { request); virtual StatusOr CreateConversationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& request); virtual future> - CreateConversationDataset(google::cloud::ExperimentalTag, + CreateConversationDataset(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -222,13 +222,13 @@ class ConversationDatasetsConnection { request); virtual StatusOr DeleteConversationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& request); virtual future> - DeleteConversationDataset(google::cloud::ExperimentalTag, + DeleteConversationDataset(ExperimentalTag, google::longrunning::Operation const& operation); virtual future ImportConversationData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportConversationDataRequest const& request); virtual future> - ImportConversationData(google::cloud::ExperimentalTag, + ImportConversationData(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/dialogflow_es/conversation_models_connection.cc b/google/cloud/dialogflow_es/conversation_models_connection.cc index 7b24357644648..d437fc2d7891c 100644 --- a/google/cloud/dialogflow_es/conversation_models_connection.cc +++ b/google/cloud/dialogflow_es/conversation_models_connection.cc @@ -48,7 +48,7 @@ ConversationModelsConnection::CreateConversationModel( StatusOr ConversationModelsConnection::CreateConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateConversationModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ ConversationModelsConnection::CreateConversationModel( future> ConversationModelsConnection::CreateConversationModel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -87,7 +87,7 @@ ConversationModelsConnection::DeleteConversationModel( StatusOr ConversationModelsConnection::DeleteConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteConversationModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -96,7 +96,7 @@ ConversationModelsConnection::DeleteConversationModel( future> ConversationModelsConnection::DeleteConversationModel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -113,7 +113,7 @@ ConversationModelsConnection::DeployConversationModel( StatusOr ConversationModelsConnection::DeployConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeployConversationModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -122,7 +122,7 @@ ConversationModelsConnection::DeployConversationModel( future> ConversationModelsConnection::DeployConversationModel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -140,7 +140,7 @@ ConversationModelsConnection::UndeployConversationModel( StatusOr ConversationModelsConnection::UndeployConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::UndeployConversationModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -149,7 +149,7 @@ ConversationModelsConnection::UndeployConversationModel( future> ConversationModelsConnection::UndeployConversationModel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -182,7 +182,7 @@ ConversationModelsConnection::CreateConversationModelEvaluation( StatusOr ConversationModelsConnection::CreateConversationModelEvaluation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2:: CreateConversationModelEvaluationRequest const&) { return StatusOr( @@ -191,7 +191,7 @@ ConversationModelsConnection::CreateConversationModelEvaluation( future> ConversationModelsConnection::CreateConversationModelEvaluation( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/dialogflow_es/conversation_models_connection.h b/google/cloud/dialogflow_es/conversation_models_connection.h index 74f07c706bc8e..cbec736682b56 100644 --- a/google/cloud/dialogflow_es/conversation_models_connection.h +++ b/google/cloud/dialogflow_es/conversation_models_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dialogflow_es/conversation_models_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/conversation_models_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,12 +197,12 @@ class ConversationModelsConnection { request); virtual StatusOr CreateConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateConversationModelRequest const& request); virtual future> - CreateConversationModel(google::cloud::ExperimentalTag, + CreateConversationModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -221,13 +221,13 @@ class ConversationModelsConnection { request); virtual StatusOr DeleteConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteConversationModelRequest const& request); virtual future> - DeleteConversationModel(google::cloud::ExperimentalTag, + DeleteConversationModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future DeployConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeployConversationModelRequest const& request); virtual future> - DeployConversationModel(google::cloud::ExperimentalTag, + DeployConversationModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future UndeployConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::UndeployConversationModelRequest const& request); virtual future> - UndeployConversationModel(google::cloud::ExperimentalTag, + UndeployConversationModel(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -281,15 +281,14 @@ class ConversationModelsConnection { virtual StatusOr CreateConversationModelEvaluation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2:: CreateConversationModelEvaluationRequest const& request); virtual future< StatusOr> CreateConversationModelEvaluation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dialogflow_es/conversation_profiles_connection.cc b/google/cloud/dialogflow_es/conversation_profiles_connection.cc index 663180eb60c10..0169b4002df82 100644 --- a/google/cloud/dialogflow_es/conversation_profiles_connection.cc +++ b/google/cloud/dialogflow_es/conversation_profiles_connection.cc @@ -79,7 +79,7 @@ ConversationProfilesConnection::SetSuggestionFeatureConfig( StatusOr ConversationProfilesConnection::SetSuggestionFeatureConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -87,7 +87,7 @@ ConversationProfilesConnection::SetSuggestionFeatureConfig( future> ConversationProfilesConnection::SetSuggestionFeatureConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -103,7 +103,7 @@ ConversationProfilesConnection::ClearSuggestionFeatureConfig( StatusOr ConversationProfilesConnection::ClearSuggestionFeatureConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -111,7 +111,7 @@ ConversationProfilesConnection::ClearSuggestionFeatureConfig( future> ConversationProfilesConnection::ClearSuggestionFeatureConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/dialogflow_es/conversation_profiles_connection.h b/google/cloud/dialogflow_es/conversation_profiles_connection.h index 6d95a438e7dc7..8f9bc9456a469 100644 --- a/google/cloud/dialogflow_es/conversation_profiles_connection.h +++ b/google/cloud/dialogflow_es/conversation_profiles_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dialogflow_es/conversation_profiles_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/conversation_profiles_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -221,12 +221,12 @@ class ConversationProfilesConnection { request); virtual StatusOr SetSuggestionFeatureConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& request); virtual future> - SetSuggestionFeatureConfig(google::cloud::ExperimentalTag, + SetSuggestionFeatureConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -235,12 +235,12 @@ class ConversationProfilesConnection { request); virtual StatusOr ClearSuggestionFeatureConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& request); virtual future> - ClearSuggestionFeatureConfig(google::cloud::ExperimentalTag, + ClearSuggestionFeatureConfig(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/dialogflow_es/conversations_connection.h b/google/cloud/dialogflow_es/conversations_connection.h index 479385053f521..1c394196a2730 100644 --- a/google/cloud/dialogflow_es/conversations_connection.h +++ b/google/cloud/dialogflow_es/conversations_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_es/conversations_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/conversations_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dialogflow_es/documents_connection.cc b/google/cloud/dialogflow_es/documents_connection.cc index 3c073a858764c..d5bf383b87808 100644 --- a/google/cloud/dialogflow_es/documents_connection.cc +++ b/google/cloud/dialogflow_es/documents_connection.cc @@ -61,14 +61,14 @@ DocumentsConnection::CreateDocument( } StatusOr DocumentsConnection::CreateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateDocumentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DocumentsConnection::CreateDocument(google::cloud::ExperimentalTag, +DocumentsConnection::CreateDocument(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -84,14 +84,14 @@ DocumentsConnection::ImportDocuments( } StatusOr DocumentsConnection::ImportDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportDocumentsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DocumentsConnection::ImportDocuments(google::cloud::ExperimentalTag, +DocumentsConnection::ImportDocuments(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -107,14 +107,14 @@ DocumentsConnection::DeleteDocument( } StatusOr DocumentsConnection::DeleteDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteDocumentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DocumentsConnection::DeleteDocument(google::cloud::ExperimentalTag, +DocumentsConnection::DeleteDocument(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -130,14 +130,14 @@ DocumentsConnection::UpdateDocument( } StatusOr DocumentsConnection::UpdateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::UpdateDocumentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DocumentsConnection::UpdateDocument(google::cloud::ExperimentalTag, +DocumentsConnection::UpdateDocument(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -153,14 +153,14 @@ DocumentsConnection::ReloadDocument( } StatusOr DocumentsConnection::ReloadDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ReloadDocumentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DocumentsConnection::ReloadDocument(google::cloud::ExperimentalTag, +DocumentsConnection::ReloadDocument(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -176,14 +176,14 @@ DocumentsConnection::ExportDocument( } StatusOr DocumentsConnection::ExportDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ExportDocumentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DocumentsConnection::ExportDocument(google::cloud::ExperimentalTag, +DocumentsConnection::ExportDocument(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/dialogflow_es/documents_connection.h b/google/cloud/dialogflow_es/documents_connection.h index 331e4052bae81..7f23e3ee0f331 100644 --- a/google/cloud/dialogflow_es/documents_connection.h +++ b/google/cloud/dialogflow_es/documents_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dialogflow_es/documents_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/documents_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -198,11 +198,11 @@ class DocumentsConnection { google::cloud::dialogflow::v2::CreateDocumentRequest const& request); virtual StatusOr CreateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateDocumentRequest const& request); virtual future> - CreateDocument(google::cloud::ExperimentalTag, + CreateDocument(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -211,12 +211,12 @@ class DocumentsConnection { google::cloud::dialogflow::v2::ImportDocumentsRequest const& request); virtual StatusOr ImportDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportDocumentsRequest const& request); virtual future< StatusOr> - ImportDocuments(google::cloud::ExperimentalTag, + ImportDocuments(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -225,12 +225,12 @@ class DocumentsConnection { google::cloud::dialogflow::v2::DeleteDocumentRequest const& request); virtual StatusOr DeleteDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteDocumentRequest const& request); virtual future< StatusOr> - DeleteDocument(google::cloud::ExperimentalTag, + DeleteDocument(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -238,11 +238,11 @@ class DocumentsConnection { google::cloud::dialogflow::v2::UpdateDocumentRequest const& request); virtual StatusOr UpdateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::UpdateDocumentRequest const& request); virtual future> - UpdateDocument(google::cloud::ExperimentalTag, + UpdateDocument(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -250,11 +250,11 @@ class DocumentsConnection { google::cloud::dialogflow::v2::ReloadDocumentRequest const& request); virtual StatusOr ReloadDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ReloadDocumentRequest const& request); virtual future> - ReloadDocument(google::cloud::ExperimentalTag, + ReloadDocument(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -262,11 +262,11 @@ class DocumentsConnection { google::cloud::dialogflow::v2::ExportDocumentRequest const& request); virtual StatusOr ExportDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ExportDocumentRequest const& request); virtual future> - ExportDocument(google::cloud::ExperimentalTag, + ExportDocument(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/dialogflow_es/entity_types_connection.cc b/google/cloud/dialogflow_es/entity_types_connection.cc index b1bc324930573..661007a432ba5 100644 --- a/google/cloud/dialogflow_es/entity_types_connection.cc +++ b/google/cloud/dialogflow_es/entity_types_connection.cc @@ -79,7 +79,7 @@ EntityTypesConnection::BatchUpdateEntityTypes( StatusOr EntityTypesConnection::BatchUpdateEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -87,7 +87,7 @@ EntityTypesConnection::BatchUpdateEntityTypes( future> EntityTypesConnection::BatchUpdateEntityTypes( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -102,7 +102,7 @@ EntityTypesConnection::BatchDeleteEntityTypes( StatusOr EntityTypesConnection::BatchDeleteEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ EntityTypesConnection::BatchDeleteEntityTypes( future> EntityTypesConnection::BatchDeleteEntityTypes( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } @@ -124,7 +124,7 @@ EntityTypesConnection::BatchCreateEntities( StatusOr EntityTypesConnection::BatchCreateEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -132,7 +132,7 @@ EntityTypesConnection::BatchCreateEntities( future> EntityTypesConnection::BatchCreateEntities( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } @@ -146,7 +146,7 @@ EntityTypesConnection::BatchUpdateEntities( StatusOr EntityTypesConnection::BatchUpdateEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -154,7 +154,7 @@ EntityTypesConnection::BatchUpdateEntities( future> EntityTypesConnection::BatchUpdateEntities( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } @@ -168,7 +168,7 @@ EntityTypesConnection::BatchDeleteEntities( StatusOr EntityTypesConnection::BatchDeleteEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -176,7 +176,7 @@ EntityTypesConnection::BatchDeleteEntities( future> EntityTypesConnection::BatchDeleteEntities( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } diff --git a/google/cloud/dialogflow_es/entity_types_connection.h b/google/cloud/dialogflow_es/entity_types_connection.h index dd0e8d7df0482..dd7e3770b80b1 100644 --- a/google/cloud/dialogflow_es/entity_types_connection.h +++ b/google/cloud/dialogflow_es/entity_types_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dialogflow_es/entity_types_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/entity_types_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -211,13 +211,13 @@ class EntityTypesConnection { request); virtual StatusOr BatchUpdateEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& request); virtual future< StatusOr> - BatchUpdateEntityTypes(google::cloud::ExperimentalTag, + BatchUpdateEntityTypes(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> BatchDeleteEntityTypes( @@ -225,46 +225,42 @@ class EntityTypesConnection { request); virtual StatusOr BatchDeleteEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& request); virtual future> BatchDeleteEntityTypes( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> BatchCreateEntities( google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request); virtual StatusOr BatchCreateEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request); virtual future> BatchCreateEntities( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> BatchUpdateEntities( google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request); virtual StatusOr BatchUpdateEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request); virtual future> BatchUpdateEntities( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> BatchDeleteEntities( google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request); virtual StatusOr BatchDeleteEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request); virtual future> BatchDeleteEntities( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dialogflow_es/environments_connection.h b/google/cloud/dialogflow_es/environments_connection.h index a7b92b32eaadd..662042a93249c 100644 --- a/google/cloud/dialogflow_es/environments_connection.h +++ b/google/cloud/dialogflow_es/environments_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_es/environments_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/environments_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dialogflow_es/fulfillments_connection.h b/google/cloud/dialogflow_es/fulfillments_connection.h index cfc4b2f08b3ce..e92cc99a31dab 100644 --- a/google/cloud/dialogflow_es/fulfillments_connection.h +++ b/google/cloud/dialogflow_es/fulfillments_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_es/fulfillments_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/fulfillments_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dialogflow_es/intents_connection.cc b/google/cloud/dialogflow_es/intents_connection.cc index a1c2477674c17..c6e5cfc2cc3e9 100644 --- a/google/cloud/dialogflow_es/intents_connection.cc +++ b/google/cloud/dialogflow_es/intents_connection.cc @@ -75,14 +75,14 @@ IntentsConnection::BatchUpdateIntents( } StatusOr IntentsConnection::BatchUpdateIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -IntentsConnection::BatchUpdateIntents(google::cloud::ExperimentalTag, +IntentsConnection::BatchUpdateIntents(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -97,14 +97,14 @@ IntentsConnection::BatchDeleteIntents( } StatusOr IntentsConnection::BatchDeleteIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -IntentsConnection::BatchDeleteIntents(google::cloud::ExperimentalTag, +IntentsConnection::BatchDeleteIntents(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/dialogflow_es/intents_connection.h b/google/cloud/dialogflow_es/intents_connection.h index 5566e40e37843..e38304a59f91d 100644 --- a/google/cloud/dialogflow_es/intents_connection.h +++ b/google/cloud/dialogflow_es/intents_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/dialogflow_es/intents_connection_idempotency_policy.h" #include "google/cloud/dialogflow_es/internal/intents_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -207,24 +207,23 @@ class IntentsConnection { google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request); virtual StatusOr BatchUpdateIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request); virtual future< StatusOr> - BatchUpdateIntents(google::cloud::ExperimentalTag, + BatchUpdateIntents(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> BatchDeleteIntents( google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request); virtual StatusOr BatchDeleteIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request); virtual future> BatchDeleteIntents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/dialogflow_es/internal/agents_tracing_connection.cc b/google/cloud/dialogflow_es/internal/agents_tracing_connection.cc index c5b7458009a18..2bee73fa3234c 100644 --- a/google/cloud/dialogflow_es/internal/agents_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/agents_tracing_connection.cc @@ -79,7 +79,7 @@ StatusOr AgentsTracingConnection::TrainAgent( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::dialogflow::v2::TrainAgentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::AgentsConnection::TrainAgent"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->TrainAgent(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -109,7 +109,7 @@ StatusOr AgentsTracingConnection::ExportAgent( google::cloud::dialogflow::v2::ExportAgentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::AgentsConnection::ExportAgent"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportAgent(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -140,7 +140,7 @@ StatusOr AgentsTracingConnection::ImportAgent( google::cloud::dialogflow::v2::ImportAgentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::AgentsConnection::ImportAgent"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportAgent(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -171,7 +171,7 @@ StatusOr AgentsTracingConnection::RestoreAgent( google::cloud::dialogflow::v2::RestoreAgentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::AgentsConnection::RestoreAgent"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RestoreAgent(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.cc b/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.cc index 15169e60daec8..0daf57ded94b0 100644 --- a/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.cc @@ -53,7 +53,7 @@ ConversationDatasetsTracingConnection::CreateConversationDataset( auto span = internal::MakeSpan( "dialogflow_es::ConversationDatasetsConnection::" "CreateConversationDataset"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateConversationDataset( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -116,7 +116,7 @@ ConversationDatasetsTracingConnection::DeleteConversationDataset( auto span = internal::MakeSpan( "dialogflow_es::ConversationDatasetsConnection::" "DeleteConversationDataset"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteConversationDataset( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -155,7 +155,7 @@ ConversationDatasetsTracingConnection::ImportConversationData( request) { auto span = internal::MakeSpan( "dialogflow_es::ConversationDatasetsConnection::ImportConversationData"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ImportConversationData( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.cc b/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.cc index d72ed9e4776cb..c591fd632939e 100644 --- a/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.cc @@ -51,7 +51,7 @@ ConversationModelsTracingConnection::CreateConversationModel( request) { auto span = internal::MakeSpan( "dialogflow_es::ConversationModelsConnection::CreateConversationModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateConversationModel( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -109,7 +109,7 @@ ConversationModelsTracingConnection::DeleteConversationModel( request) { auto span = internal::MakeSpan( "dialogflow_es::ConversationModelsConnection::DeleteConversationModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteConversationModel( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -147,7 +147,7 @@ ConversationModelsTracingConnection::DeployConversationModel( request) { auto span = internal::MakeSpan( "dialogflow_es::ConversationModelsConnection::DeployConversationModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeployConversationModel( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -185,7 +185,7 @@ ConversationModelsTracingConnection::UndeployConversationModel( request) { auto span = internal::MakeSpan( "dialogflow_es::ConversationModelsConnection::UndeployConversationModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UndeployConversationModel( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -250,7 +250,7 @@ ConversationModelsTracingConnection::CreateConversationModelEvaluation( auto span = internal::MakeSpan( "dialogflow_es::ConversationModelsConnection::" "CreateConversationModelEvaluation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateConversationModelEvaluation( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.cc b/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.cc index d947abd7f27dc..64d34db6d4628 100644 --- a/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.cc @@ -108,7 +108,7 @@ ConversationProfilesTracingConnection::SetSuggestionFeatureConfig( auto span = internal::MakeSpan( "dialogflow_es::ConversationProfilesConnection::" "SetSuggestionFeatureConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SetSuggestionFeatureConfig( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -147,7 +147,7 @@ ConversationProfilesTracingConnection::ClearSuggestionFeatureConfig( auto span = internal::MakeSpan( "dialogflow_es::ConversationProfilesConnection::" "ClearSuggestionFeatureConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ClearSuggestionFeatureConfig( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dialogflow_es/internal/documents_tracing_connection.cc b/google/cloud/dialogflow_es/internal/documents_tracing_connection.cc index 65ba931f5bcc1..23694f688a594 100644 --- a/google/cloud/dialogflow_es/internal/documents_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/documents_tracing_connection.cc @@ -68,7 +68,7 @@ DocumentsTracingConnection::CreateDocument( google::cloud::dialogflow::v2::CreateDocumentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::CreateDocument"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateDocument(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ DocumentsTracingConnection::ImportDocuments( google::cloud::dialogflow::v2::ImportDocumentsRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::ImportDocuments"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportDocuments(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -134,7 +134,7 @@ DocumentsTracingConnection::DeleteDocument( google::cloud::dialogflow::v2::DeleteDocumentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::DeleteDocument"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteDocument(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -167,7 +167,7 @@ DocumentsTracingConnection::UpdateDocument( google::cloud::dialogflow::v2::UpdateDocumentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::UpdateDocument"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateDocument(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -200,7 +200,7 @@ DocumentsTracingConnection::ReloadDocument( google::cloud::dialogflow::v2::ReloadDocumentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::ReloadDocument"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ReloadDocument(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -233,7 +233,7 @@ DocumentsTracingConnection::ExportDocument( google::cloud::dialogflow::v2::ExportDocumentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::ExportDocument"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportDocument(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.cc b/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.cc index 8adc584965daf..4ec53dc196453 100644 --- a/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.cc @@ -98,7 +98,7 @@ EntityTypesTracingConnection::BatchUpdateEntityTypes( request) { auto span = internal::MakeSpan( "dialogflow_es::EntityTypesConnection::BatchUpdateEntityTypes"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->BatchUpdateEntityTypes( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -134,7 +134,7 @@ EntityTypesTracingConnection::BatchDeleteEntityTypes( request) { auto span = internal::MakeSpan( "dialogflow_es::EntityTypesConnection::BatchDeleteEntityTypes"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->BatchDeleteEntityTypes( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -168,7 +168,7 @@ EntityTypesTracingConnection::BatchCreateEntities( google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::EntityTypesConnection::BatchCreateEntities"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BatchCreateEntities(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -202,7 +202,7 @@ EntityTypesTracingConnection::BatchUpdateEntities( google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::EntityTypesConnection::BatchUpdateEntities"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BatchUpdateEntities(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -236,7 +236,7 @@ EntityTypesTracingConnection::BatchDeleteEntities( google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::EntityTypesConnection::BatchDeleteEntities"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BatchDeleteEntities(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dialogflow_es/internal/intents_tracing_connection.cc b/google/cloud/dialogflow_es/internal/intents_tracing_connection.cc index 5510c973b623e..4d4755c7a19ae 100644 --- a/google/cloud/dialogflow_es/internal/intents_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/intents_tracing_connection.cc @@ -94,7 +94,7 @@ IntentsTracingConnection::BatchUpdateIntents( google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::IntentsConnection::BatchUpdateIntents"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BatchUpdateIntents(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -128,7 +128,7 @@ IntentsTracingConnection::BatchDeleteIntents( google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::IntentsConnection::BatchDeleteIntents"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BatchDeleteIntents(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/dialogflow_es/knowledge_bases_connection.h b/google/cloud/dialogflow_es/knowledge_bases_connection.h index 484b405f12fd1..89e8d3ee1b5fb 100644 --- a/google/cloud/dialogflow_es/knowledge_bases_connection.h +++ b/google/cloud/dialogflow_es/knowledge_bases_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_es/internal/knowledge_bases_retry_traits.h" #include "google/cloud/dialogflow_es/knowledge_bases_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dialogflow_es/participants_connection.h b/google/cloud/dialogflow_es/participants_connection.h index 2c56423cd974d..34a398106175e 100644 --- a/google/cloud/dialogflow_es/participants_connection.h +++ b/google/cloud/dialogflow_es/participants_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_es/internal/participants_retry_traits.h" #include "google/cloud/dialogflow_es/participants_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/async_read_write_stream_impl.h" diff --git a/google/cloud/dialogflow_es/session_entity_types_connection.h b/google/cloud/dialogflow_es/session_entity_types_connection.h index 69727100c8a21..894fd5e7d4987 100644 --- a/google/cloud/dialogflow_es/session_entity_types_connection.h +++ b/google/cloud/dialogflow_es/session_entity_types_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_es/internal/session_entity_types_retry_traits.h" #include "google/cloud/dialogflow_es/session_entity_types_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/dialogflow_es/sessions_connection.h b/google/cloud/dialogflow_es/sessions_connection.h index a9f847ce620e1..9b6b45e0881e0 100644 --- a/google/cloud/dialogflow_es/sessions_connection.h +++ b/google/cloud/dialogflow_es/sessions_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_es/internal/sessions_retry_traits.h" #include "google/cloud/dialogflow_es/sessions_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/async_read_write_stream_impl.h" diff --git a/google/cloud/dialogflow_es/versions_connection.h b/google/cloud/dialogflow_es/versions_connection.h index 8517a01a428e8..9a3f8616ad18c 100644 --- a/google/cloud/dialogflow_es/versions_connection.h +++ b/google/cloud/dialogflow_es/versions_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dialogflow_es/internal/versions_retry_traits.h" #include "google/cloud/dialogflow_es/versions_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/discoveryengine/v1/completion_connection.cc b/google/cloud/discoveryengine/v1/completion_connection.cc index c4f4ae42ac7a7..33a8e52cdc97e 100644 --- a/google/cloud/discoveryengine/v1/completion_connection.cc +++ b/google/cloud/discoveryengine/v1/completion_connection.cc @@ -56,7 +56,7 @@ CompletionServiceConnection::ImportSuggestionDenyListEntries( StatusOr CompletionServiceConnection::ImportSuggestionDenyListEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: ImportSuggestionDenyListEntriesRequest const&) { return StatusOr( @@ -66,7 +66,7 @@ CompletionServiceConnection::ImportSuggestionDenyListEntries( future> CompletionServiceConnection::ImportSuggestionDenyListEntries( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -86,7 +86,7 @@ CompletionServiceConnection::PurgeSuggestionDenyListEntries( StatusOr CompletionServiceConnection::PurgeSuggestionDenyListEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: PurgeSuggestionDenyListEntriesRequest const&) { return StatusOr( @@ -96,7 +96,7 @@ CompletionServiceConnection::PurgeSuggestionDenyListEntries( future> CompletionServiceConnection::PurgeSuggestionDenyListEntries( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/discoveryengine/v1/completion_connection.h b/google/cloud/discoveryengine/v1/completion_connection.h index ab3f73c7c6a1f..b940c4214a8f5 100644 --- a/google/cloud/discoveryengine/v1/completion_connection.h +++ b/google/cloud/discoveryengine/v1/completion_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/discoveryengine/v1/completion_connection_idempotency_policy.h" #include "google/cloud/discoveryengine/v1/internal/completion_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,15 +199,14 @@ class CompletionServiceConnection { virtual StatusOr ImportSuggestionDenyListEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: ImportSuggestionDenyListEntriesRequest const& request); virtual future> ImportSuggestionDenyListEntries( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -217,15 +216,14 @@ class CompletionServiceConnection { virtual StatusOr PurgeSuggestionDenyListEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: PurgeSuggestionDenyListEntriesRequest const& request); virtual future> PurgeSuggestionDenyListEntries( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/discoveryengine/v1/control_connection.h b/google/cloud/discoveryengine/v1/control_connection.h index 96ed195d04ac1..a6b7b75d8d6c7 100644 --- a/google/cloud/discoveryengine/v1/control_connection.h +++ b/google/cloud/discoveryengine/v1/control_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/discoveryengine/v1/control_connection_idempotency_policy.h" #include "google/cloud/discoveryengine/v1/internal/control_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/discoveryengine/v1/conversational_search_connection.h b/google/cloud/discoveryengine/v1/conversational_search_connection.h index d8e56bc1be953..0baa30748b17b 100644 --- a/google/cloud/discoveryengine/v1/conversational_search_connection.h +++ b/google/cloud/discoveryengine/v1/conversational_search_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/discoveryengine/v1/conversational_search_connection_idempotency_policy.h" #include "google/cloud/discoveryengine/v1/internal/conversational_search_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/discoveryengine/v1/data_store_connection.cc b/google/cloud/discoveryengine/v1/data_store_connection.cc index 86947efe4a00b..744ab3dae638c 100644 --- a/google/cloud/discoveryengine/v1/data_store_connection.cc +++ b/google/cloud/discoveryengine/v1/data_store_connection.cc @@ -48,7 +48,7 @@ DataStoreServiceConnection::CreateDataStore( StatusOr DataStoreServiceConnection::CreateDataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateDataStoreRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ DataStoreServiceConnection::CreateDataStore( future> DataStoreServiceConnection::CreateDataStore( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ DataStoreServiceConnection::DeleteDataStore( StatusOr DataStoreServiceConnection::DeleteDataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteDataStoreRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ DataStoreServiceConnection::DeleteDataStore( future> DataStoreServiceConnection::DeleteDataStore( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/discoveryengine/v1/data_store_connection.h b/google/cloud/discoveryengine/v1/data_store_connection.h index dd93d5cb42667..ee93794914aec 100644 --- a/google/cloud/discoveryengine/v1/data_store_connection.h +++ b/google/cloud/discoveryengine/v1/data_store_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/discoveryengine/v1/data_store_connection_idempotency_policy.h" #include "google/cloud/discoveryengine/v1/internal/data_store_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -194,12 +194,12 @@ class DataStoreServiceConnection { request); virtual StatusOr CreateDataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateDataStoreRequest const& request); virtual future> - CreateDataStore(google::cloud::ExperimentalTag, + CreateDataStore(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetDataStore( @@ -216,13 +216,13 @@ class DataStoreServiceConnection { request); virtual StatusOr DeleteDataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& request); virtual future< StatusOr> - DeleteDataStore(google::cloud::ExperimentalTag, + DeleteDataStore(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/discoveryengine/v1/document_connection.cc b/google/cloud/discoveryengine/v1/document_connection.cc index c9dd71b3611e6..73305a279a371 100644 --- a/google/cloud/discoveryengine/v1/document_connection.cc +++ b/google/cloud/discoveryengine/v1/document_connection.cc @@ -79,7 +79,7 @@ DocumentServiceConnection::ImportDocuments( StatusOr DocumentServiceConnection::ImportDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ImportDocumentsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -87,7 +87,7 @@ DocumentServiceConnection::ImportDocuments( future> DocumentServiceConnection::ImportDocuments( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -103,7 +103,7 @@ DocumentServiceConnection::PurgeDocuments( StatusOr DocumentServiceConnection::PurgeDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::PurgeDocumentsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -111,7 +111,7 @@ DocumentServiceConnection::PurgeDocuments( future> DocumentServiceConnection::PurgeDocuments( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/discoveryengine/v1/document_connection.h b/google/cloud/discoveryengine/v1/document_connection.h index cb903b39ef666..58973a7311a09 100644 --- a/google/cloud/discoveryengine/v1/document_connection.h +++ b/google/cloud/discoveryengine/v1/document_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/discoveryengine/v1/document_connection_idempotency_policy.h" #include "google/cloud/discoveryengine/v1/internal/document_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -211,13 +211,13 @@ class DocumentServiceConnection { request); virtual StatusOr ImportDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ImportDocumentsRequest const& request); virtual future< StatusOr> - ImportDocuments(google::cloud::ExperimentalTag, + ImportDocuments(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -226,12 +226,12 @@ class DocumentServiceConnection { google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request); virtual StatusOr PurgeDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request); virtual future< StatusOr> - PurgeDocuments(google::cloud::ExperimentalTag, + PurgeDocuments(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/discoveryengine/v1/engine_connection.cc b/google/cloud/discoveryengine/v1/engine_connection.cc index ae9e2dee1a4f5..7717d7aef78ac 100644 --- a/google/cloud/discoveryengine/v1/engine_connection.cc +++ b/google/cloud/discoveryengine/v1/engine_connection.cc @@ -47,14 +47,14 @@ EngineServiceConnection::CreateEngine( } StatusOr EngineServiceConnection::CreateEngine( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateEngineRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EngineServiceConnection::CreateEngine(google::cloud::ExperimentalTag, +EngineServiceConnection::CreateEngine(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -70,14 +70,14 @@ EngineServiceConnection::DeleteEngine( } StatusOr EngineServiceConnection::DeleteEngine( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteEngineRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EngineServiceConnection::DeleteEngine(google::cloud::ExperimentalTag, +EngineServiceConnection::DeleteEngine(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/discoveryengine/v1/engine_connection.h b/google/cloud/discoveryengine/v1/engine_connection.h index 017aa1f4c9d89..df317048b19e4 100644 --- a/google/cloud/discoveryengine/v1/engine_connection.h +++ b/google/cloud/discoveryengine/v1/engine_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/discoveryengine/v1/engine_connection_idempotency_policy.h" #include "google/cloud/discoveryengine/v1/internal/engine_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,11 +192,11 @@ class EngineServiceConnection { google::cloud::discoveryengine::v1::CreateEngineRequest const& request); virtual StatusOr CreateEngine( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateEngineRequest const& request); virtual future> - CreateEngine(google::cloud::ExperimentalTag, + CreateEngine(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -205,12 +205,12 @@ class EngineServiceConnection { google::cloud::discoveryengine::v1::DeleteEngineRequest const& request); virtual StatusOr DeleteEngine( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteEngineRequest const& request); virtual future< StatusOr> - DeleteEngine(google::cloud::ExperimentalTag, + DeleteEngine(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr UpdateEngine( diff --git a/google/cloud/discoveryengine/v1/grounded_generation_connection.h b/google/cloud/discoveryengine/v1/grounded_generation_connection.h index 6b9ff70e3c847..bc0eb935e41a8 100644 --- a/google/cloud/discoveryengine/v1/grounded_generation_connection.h +++ b/google/cloud/discoveryengine/v1/grounded_generation_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/discoveryengine/v1/grounded_generation_connection_idempotency_policy.h" #include "google/cloud/discoveryengine/v1/internal/grounded_generation_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.cc index e5d3fb0a41fd9..3e673a060b108 100644 --- a/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.cc @@ -62,7 +62,7 @@ CompletionServiceTracingConnection::ImportSuggestionDenyListEntries( auto span = internal::MakeSpan( "discoveryengine_v1::CompletionServiceConnection::" "ImportSuggestionDenyListEntries"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ImportSuggestionDenyListEntries( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -103,7 +103,7 @@ CompletionServiceTracingConnection::PurgeSuggestionDenyListEntries( auto span = internal::MakeSpan( "discoveryengine_v1::CompletionServiceConnection::" "PurgeSuggestionDenyListEntries"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->PurgeSuggestionDenyListEntries( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.cc index 6a6dc2cbcc3ae..e2315cdd800eb 100644 --- a/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.cc @@ -48,7 +48,7 @@ DataStoreServiceTracingConnection::CreateDataStore( google::cloud::discoveryengine::v1::CreateDataStoreRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::DataStoreServiceConnection::CreateDataStore"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateDataStore(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -102,7 +102,7 @@ DataStoreServiceTracingConnection::DeleteDataStore( google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::DataStoreServiceConnection::DeleteDataStore"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteDataStore(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/discoveryengine/v1/internal/document_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/document_tracing_connection.cc index 3817051f1a208..e02c8efe2deb7 100644 --- a/google/cloud/discoveryengine/v1/internal/document_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/document_tracing_connection.cc @@ -95,7 +95,7 @@ DocumentServiceTracingConnection::ImportDocuments( google::cloud::discoveryengine::v1::ImportDocumentsRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::DocumentServiceConnection::ImportDocuments"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportDocuments(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -128,7 +128,7 @@ DocumentServiceTracingConnection::PurgeDocuments( google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::DocumentServiceConnection::PurgeDocuments"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PurgeDocuments(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.cc index d625b4757c819..18b0e0e5db53a 100644 --- a/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.cc @@ -48,7 +48,7 @@ EngineServiceTracingConnection::CreateEngine( google::cloud::discoveryengine::v1::CreateEngineRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::EngineServiceConnection::CreateEngine"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateEngine(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -81,7 +81,7 @@ EngineServiceTracingConnection::DeleteEngine( google::cloud::discoveryengine::v1::DeleteEngineRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::EngineServiceConnection::DeleteEngine"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteEngine(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/discoveryengine/v1/internal/project_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/project_tracing_connection.cc index 672d9655926be..fc94c4ee9cb88 100644 --- a/google/cloud/discoveryengine/v1/internal/project_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/project_tracing_connection.cc @@ -49,7 +49,7 @@ ProjectServiceTracingConnection::ProvisionProject( request) { auto span = internal::MakeSpan( "discoveryengine_v1::ProjectServiceConnection::ProvisionProject"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ProvisionProject(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.cc index e533b686dbdfe..994e465dcd601 100644 --- a/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.cc @@ -69,7 +69,7 @@ SchemaServiceTracingConnection::CreateSchema( google::cloud::discoveryengine::v1::CreateSchemaRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::SchemaServiceConnection::CreateSchema"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateSchema(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -102,7 +102,7 @@ SchemaServiceTracingConnection::UpdateSchema( google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::SchemaServiceConnection::UpdateSchema"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateSchema(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ SchemaServiceTracingConnection::DeleteSchema( google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::SchemaServiceConnection::DeleteSchema"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSchema(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.cc index 8922bd6508984..829c6ab5ec035 100644 --- a/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.cc @@ -65,7 +65,7 @@ SiteSearchEngineServiceTracingConnection::CreateTargetSite( auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "CreateTargetSite"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateTargetSite(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -105,7 +105,7 @@ SiteSearchEngineServiceTracingConnection::BatchCreateTargetSites( auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "BatchCreateTargetSites"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->BatchCreateTargetSites( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -153,7 +153,7 @@ SiteSearchEngineServiceTracingConnection::UpdateTargetSite( auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "UpdateTargetSite"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateTargetSite(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -191,7 +191,7 @@ SiteSearchEngineServiceTracingConnection::DeleteTargetSite( auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "DeleteTargetSite"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteTargetSite(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -243,7 +243,7 @@ SiteSearchEngineServiceTracingConnection::EnableAdvancedSiteSearch( auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "EnableAdvancedSiteSearch"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->EnableAdvancedSiteSearch( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -284,7 +284,7 @@ SiteSearchEngineServiceTracingConnection::DisableAdvancedSiteSearch( auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "DisableAdvancedSiteSearch"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DisableAdvancedSiteSearch( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -319,7 +319,7 @@ SiteSearchEngineServiceTracingConnection::RecrawlUris( google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::RecrawlUris"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RecrawlUris(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -358,7 +358,7 @@ SiteSearchEngineServiceTracingConnection::BatchVerifyTargetSites( auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "BatchVerifyTargetSites"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->BatchVerifyTargetSites( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.cc index 038d67d1de125..3294b8ef8144c 100644 --- a/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.cc @@ -68,7 +68,7 @@ UserEventServiceTracingConnection::ImportUserEvents( request) { auto span = internal::MakeSpan( "discoveryengine_v1::UserEventServiceConnection::ImportUserEvents"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportUserEvents(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/discoveryengine/v1/project_connection.cc b/google/cloud/discoveryengine/v1/project_connection.cc index ce1836de86aaa..0ab77d190bf82 100644 --- a/google/cloud/discoveryengine/v1/project_connection.cc +++ b/google/cloud/discoveryengine/v1/project_connection.cc @@ -47,7 +47,7 @@ ProjectServiceConnection::ProvisionProject( StatusOr ProjectServiceConnection::ProvisionProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ProvisionProjectRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -55,7 +55,7 @@ ProjectServiceConnection::ProvisionProject( future> ProjectServiceConnection::ProvisionProject( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/discoveryengine/v1/project_connection.h b/google/cloud/discoveryengine/v1/project_connection.h index 246c0a208c1bd..8a38be2134336 100644 --- a/google/cloud/discoveryengine/v1/project_connection.h +++ b/google/cloud/discoveryengine/v1/project_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/discoveryengine/v1/internal/project_retry_traits.h" #include "google/cloud/discoveryengine/v1/project_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,12 +192,12 @@ class ProjectServiceConnection { request); virtual StatusOr ProvisionProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ProvisionProjectRequest const& request); virtual future> - ProvisionProject(google::cloud::ExperimentalTag, + ProvisionProject(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/discoveryengine/v1/rank_connection.h b/google/cloud/discoveryengine/v1/rank_connection.h index 221bf1a923c69..86d2afa33aaba 100644 --- a/google/cloud/discoveryengine/v1/rank_connection.h +++ b/google/cloud/discoveryengine/v1/rank_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/discoveryengine/v1/internal/rank_retry_traits.h" #include "google/cloud/discoveryengine/v1/rank_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/discoveryengine/v1/recommendation_connection.h b/google/cloud/discoveryengine/v1/recommendation_connection.h index 222b1b7f80c18..0d578ff457fa9 100644 --- a/google/cloud/discoveryengine/v1/recommendation_connection.h +++ b/google/cloud/discoveryengine/v1/recommendation_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/discoveryengine/v1/internal/recommendation_retry_traits.h" #include "google/cloud/discoveryengine/v1/recommendation_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/discoveryengine/v1/schema_connection.cc b/google/cloud/discoveryengine/v1/schema_connection.cc index 6304c8d2018e8..bbb0377d5705c 100644 --- a/google/cloud/discoveryengine/v1/schema_connection.cc +++ b/google/cloud/discoveryengine/v1/schema_connection.cc @@ -61,14 +61,14 @@ SchemaServiceConnection::CreateSchema( } StatusOr SchemaServiceConnection::CreateSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateSchemaRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SchemaServiceConnection::CreateSchema(google::cloud::ExperimentalTag, +SchemaServiceConnection::CreateSchema(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -84,14 +84,14 @@ SchemaServiceConnection::UpdateSchema( } StatusOr SchemaServiceConnection::UpdateSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::UpdateSchemaRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SchemaServiceConnection::UpdateSchema(google::cloud::ExperimentalTag, +SchemaServiceConnection::UpdateSchema(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -107,14 +107,14 @@ SchemaServiceConnection::DeleteSchema( } StatusOr SchemaServiceConnection::DeleteSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteSchemaRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SchemaServiceConnection::DeleteSchema(google::cloud::ExperimentalTag, +SchemaServiceConnection::DeleteSchema(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/discoveryengine/v1/schema_connection.h b/google/cloud/discoveryengine/v1/schema_connection.h index 888c19f3e001b..9792688688e10 100644 --- a/google/cloud/discoveryengine/v1/schema_connection.h +++ b/google/cloud/discoveryengine/v1/schema_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/discoveryengine/v1/internal/schema_retry_traits.h" #include "google/cloud/discoveryengine/v1/schema_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -198,11 +198,11 @@ class SchemaServiceConnection { google::cloud::discoveryengine::v1::CreateSchemaRequest const& request); virtual StatusOr CreateSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateSchemaRequest const& request); virtual future> - CreateSchema(google::cloud::ExperimentalTag, + CreateSchema(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -210,11 +210,11 @@ class SchemaServiceConnection { google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request); virtual StatusOr UpdateSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request); virtual future> - UpdateSchema(google::cloud::ExperimentalTag, + UpdateSchema(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -223,12 +223,12 @@ class SchemaServiceConnection { google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request); virtual StatusOr DeleteSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request); virtual future< StatusOr> - DeleteSchema(google::cloud::ExperimentalTag, + DeleteSchema(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/discoveryengine/v1/search_connection.h b/google/cloud/discoveryengine/v1/search_connection.h index 16cd85019edcd..88ad4f20cee65 100644 --- a/google/cloud/discoveryengine/v1/search_connection.h +++ b/google/cloud/discoveryengine/v1/search_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/discoveryengine/v1/internal/search_retry_traits.h" #include "google/cloud/discoveryengine/v1/search_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/discoveryengine/v1/site_search_engine_connection.cc b/google/cloud/discoveryengine/v1/site_search_engine_connection.cc index 0df95dc4a027f..cc8faefd3edb5 100644 --- a/google/cloud/discoveryengine/v1/site_search_engine_connection.cc +++ b/google/cloud/discoveryengine/v1/site_search_engine_connection.cc @@ -55,7 +55,7 @@ SiteSearchEngineServiceConnection::CreateTargetSite( StatusOr SiteSearchEngineServiceConnection::CreateTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateTargetSiteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -63,7 +63,7 @@ SiteSearchEngineServiceConnection::CreateTargetSite( future> SiteSearchEngineServiceConnection::CreateTargetSite( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -80,7 +80,7 @@ SiteSearchEngineServiceConnection::BatchCreateTargetSites( StatusOr SiteSearchEngineServiceConnection::BatchCreateTargetSites( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -89,7 +89,7 @@ SiteSearchEngineServiceConnection::BatchCreateTargetSites( future> SiteSearchEngineServiceConnection::BatchCreateTargetSites( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -111,7 +111,7 @@ SiteSearchEngineServiceConnection::UpdateTargetSite( StatusOr SiteSearchEngineServiceConnection::UpdateTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -119,7 +119,7 @@ SiteSearchEngineServiceConnection::UpdateTargetSite( future> SiteSearchEngineServiceConnection::UpdateTargetSite( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -135,7 +135,7 @@ SiteSearchEngineServiceConnection::DeleteTargetSite( StatusOr SiteSearchEngineServiceConnection::DeleteTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -143,7 +143,7 @@ SiteSearchEngineServiceConnection::DeleteTargetSite( future> SiteSearchEngineServiceConnection::DeleteTargetSite( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -169,7 +169,7 @@ SiteSearchEngineServiceConnection::EnableAdvancedSiteSearch( StatusOr SiteSearchEngineServiceConnection::EnableAdvancedSiteSearch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: EnableAdvancedSiteSearchRequest const&) { return StatusOr( @@ -179,7 +179,7 @@ SiteSearchEngineServiceConnection::EnableAdvancedSiteSearch( future> SiteSearchEngineServiceConnection::EnableAdvancedSiteSearch( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -197,7 +197,7 @@ SiteSearchEngineServiceConnection::DisableAdvancedSiteSearch( StatusOr SiteSearchEngineServiceConnection::DisableAdvancedSiteSearch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: DisableAdvancedSiteSearchRequest const&) { return StatusOr( @@ -207,7 +207,7 @@ SiteSearchEngineServiceConnection::DisableAdvancedSiteSearch( future> SiteSearchEngineServiceConnection::DisableAdvancedSiteSearch( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -223,7 +223,7 @@ SiteSearchEngineServiceConnection::RecrawlUris( StatusOr SiteSearchEngineServiceConnection::RecrawlUris( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::RecrawlUrisRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -231,7 +231,7 @@ SiteSearchEngineServiceConnection::RecrawlUris( future> SiteSearchEngineServiceConnection::RecrawlUris( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -248,7 +248,7 @@ SiteSearchEngineServiceConnection::BatchVerifyTargetSites( StatusOr SiteSearchEngineServiceConnection::BatchVerifyTargetSites( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -257,7 +257,7 @@ SiteSearchEngineServiceConnection::BatchVerifyTargetSites( future> SiteSearchEngineServiceConnection::BatchVerifyTargetSites( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/discoveryengine/v1/site_search_engine_connection.h b/google/cloud/discoveryengine/v1/site_search_engine_connection.h index 53b09669a4da8..b3b89e2842eea 100644 --- a/google/cloud/discoveryengine/v1/site_search_engine_connection.h +++ b/google/cloud/discoveryengine/v1/site_search_engine_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/discoveryengine/v1/internal/site_search_engine_retry_traits.h" #include "google/cloud/discoveryengine/v1/site_search_engine_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -206,12 +206,12 @@ class SiteSearchEngineServiceConnection { request); virtual StatusOr CreateTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& request); virtual future> - CreateTargetSite(google::cloud::ExperimentalTag, + CreateTargetSite(ExperimentalTag, google::longrunning::Operation const& operation); virtual future BatchCreateTargetSites( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& request); virtual future> - BatchCreateTargetSites(google::cloud::ExperimentalTag, + BatchCreateTargetSites(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -240,12 +240,12 @@ class SiteSearchEngineServiceConnection { request); virtual StatusOr UpdateTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& request); virtual future> - UpdateTargetSite(google::cloud::ExperimentalTag, + UpdateTargetSite(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -255,13 +255,13 @@ class SiteSearchEngineServiceConnection { request); virtual StatusOr DeleteTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& request); virtual future< StatusOr> - DeleteTargetSite(google::cloud::ExperimentalTag, + DeleteTargetSite(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -275,13 +275,13 @@ class SiteSearchEngineServiceConnection { request); virtual StatusOr EnableAdvancedSiteSearch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const& request); virtual future> - EnableAdvancedSiteSearch(google::cloud::ExperimentalTag, + EnableAdvancedSiteSearch(ExperimentalTag, google::longrunning::Operation const& operation); virtual future DisableAdvancedSiteSearch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: DisableAdvancedSiteSearchRequest const& request); virtual future> - DisableAdvancedSiteSearch(google::cloud::ExperimentalTag, + DisableAdvancedSiteSearch(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -306,13 +306,12 @@ class SiteSearchEngineServiceConnection { google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request); virtual StatusOr RecrawlUris( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request); virtual future< StatusOr> - RecrawlUris(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + RecrawlUris(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -321,13 +320,13 @@ class SiteSearchEngineServiceConnection { request); virtual StatusOr BatchVerifyTargetSites( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& request); virtual future> - BatchVerifyTargetSites(google::cloud::ExperimentalTag, + BatchVerifyTargetSites(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange diff --git a/google/cloud/discoveryengine/v1/user_event_connection.cc b/google/cloud/discoveryengine/v1/user_event_connection.cc index 307308eb00b2c..882be8a56b716 100644 --- a/google/cloud/discoveryengine/v1/user_event_connection.cc +++ b/google/cloud/discoveryengine/v1/user_event_connection.cc @@ -58,7 +58,7 @@ UserEventServiceConnection::ImportUserEvents( StatusOr UserEventServiceConnection::ImportUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ImportUserEventsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -66,7 +66,7 @@ UserEventServiceConnection::ImportUserEvents( future> UserEventServiceConnection::ImportUserEvents( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/discoveryengine/v1/user_event_connection.h b/google/cloud/discoveryengine/v1/user_event_connection.h index b065d681f503b..f2b3f7b982bed 100644 --- a/google/cloud/discoveryengine/v1/user_event_connection.h +++ b/google/cloud/discoveryengine/v1/user_event_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/discoveryengine/v1/internal/user_event_retry_traits.h" #include "google/cloud/discoveryengine/v1/user_event_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -202,13 +202,13 @@ class UserEventServiceConnection { request); virtual StatusOr ImportUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ImportUserEventsRequest const& request); virtual future< StatusOr> - ImportUserEvents(google::cloud::ExperimentalTag, + ImportUserEvents(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/dlp/v2/dlp_connection.h b/google/cloud/dlp/v2/dlp_connection.h index 22b097a55cf79..3dc609cd64fab 100644 --- a/google/cloud/dlp/v2/dlp_connection.h +++ b/google/cloud/dlp/v2/dlp_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/dlp/v2/dlp_connection_idempotency_policy.h" #include "google/cloud/dlp/v2/internal/dlp_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/documentai/v1/document_processor_connection.cc b/google/cloud/documentai/v1/document_processor_connection.cc index f345b5ea96eea..96420cccbd9a5 100644 --- a/google/cloud/documentai/v1/document_processor_connection.cc +++ b/google/cloud/documentai/v1/document_processor_connection.cc @@ -55,7 +55,7 @@ DocumentProcessorServiceConnection::BatchProcessDocuments( StatusOr DocumentProcessorServiceConnection::BatchProcessDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::BatchProcessRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -63,7 +63,7 @@ DocumentProcessorServiceConnection::BatchProcessDocuments( future> DocumentProcessorServiceConnection::BatchProcessDocuments( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -113,7 +113,7 @@ DocumentProcessorServiceConnection::TrainProcessorVersion( StatusOr DocumentProcessorServiceConnection::TrainProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::TrainProcessorVersionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -121,7 +121,7 @@ DocumentProcessorServiceConnection::TrainProcessorVersion( future> DocumentProcessorServiceConnection::TrainProcessorVersion( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -151,7 +151,7 @@ DocumentProcessorServiceConnection::DeleteProcessorVersion( StatusOr DocumentProcessorServiceConnection::DeleteProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeleteProcessorVersionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -159,7 +159,7 @@ DocumentProcessorServiceConnection::DeleteProcessorVersion( future> DocumentProcessorServiceConnection::DeleteProcessorVersion( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -175,7 +175,7 @@ DocumentProcessorServiceConnection::DeployProcessorVersion( StatusOr DocumentProcessorServiceConnection::DeployProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeployProcessorVersionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -183,7 +183,7 @@ DocumentProcessorServiceConnection::DeployProcessorVersion( future> DocumentProcessorServiceConnection::DeployProcessorVersion( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -200,7 +200,7 @@ DocumentProcessorServiceConnection::UndeployProcessorVersion( StatusOr DocumentProcessorServiceConnection::UndeployProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::UndeployProcessorVersionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -209,7 +209,7 @@ DocumentProcessorServiceConnection::UndeployProcessorVersion( future< StatusOr> DocumentProcessorServiceConnection::UndeployProcessorVersion( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -231,7 +231,7 @@ DocumentProcessorServiceConnection::DeleteProcessor( StatusOr DocumentProcessorServiceConnection::DeleteProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeleteProcessorRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -239,7 +239,7 @@ DocumentProcessorServiceConnection::DeleteProcessor( future> DocumentProcessorServiceConnection::DeleteProcessor( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -255,7 +255,7 @@ DocumentProcessorServiceConnection::EnableProcessor( StatusOr DocumentProcessorServiceConnection::EnableProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::EnableProcessorRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -263,7 +263,7 @@ DocumentProcessorServiceConnection::EnableProcessor( future> DocumentProcessorServiceConnection::EnableProcessor( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -279,7 +279,7 @@ DocumentProcessorServiceConnection::DisableProcessor( StatusOr DocumentProcessorServiceConnection::DisableProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DisableProcessorRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -287,7 +287,7 @@ DocumentProcessorServiceConnection::DisableProcessor( future> DocumentProcessorServiceConnection::DisableProcessor( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -304,7 +304,7 @@ DocumentProcessorServiceConnection::SetDefaultProcessorVersion( StatusOr DocumentProcessorServiceConnection::SetDefaultProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -313,7 +313,7 @@ DocumentProcessorServiceConnection::SetDefaultProcessorVersion( future< StatusOr> DocumentProcessorServiceConnection::SetDefaultProcessorVersion( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -329,7 +329,7 @@ DocumentProcessorServiceConnection::ReviewDocument( StatusOr DocumentProcessorServiceConnection::ReviewDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::ReviewDocumentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -337,7 +337,7 @@ DocumentProcessorServiceConnection::ReviewDocument( future> DocumentProcessorServiceConnection::ReviewDocument( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -354,7 +354,7 @@ DocumentProcessorServiceConnection::EvaluateProcessorVersion( StatusOr DocumentProcessorServiceConnection::EvaluateProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::EvaluateProcessorVersionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -363,7 +363,7 @@ DocumentProcessorServiceConnection::EvaluateProcessorVersion( future< StatusOr> DocumentProcessorServiceConnection::EvaluateProcessorVersion( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/documentai/v1/document_processor_connection.h b/google/cloud/documentai/v1/document_processor_connection.h index 62540acf400de..f6a293be9afcd 100644 --- a/google/cloud/documentai/v1/document_processor_connection.h +++ b/google/cloud/documentai/v1/document_processor_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/documentai/v1/document_processor_connection_idempotency_policy.h" #include "google/cloud/documentai/v1/internal/document_processor_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -210,11 +210,11 @@ class DocumentProcessorServiceConnection { google::cloud::documentai::v1::BatchProcessRequest const& request); virtual StatusOr BatchProcessDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::BatchProcessRequest const& request); virtual future> - BatchProcessDocuments(google::cloud::ExperimentalTag, + BatchProcessDocuments(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -242,13 +242,13 @@ class DocumentProcessorServiceConnection { request); virtual StatusOr TrainProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::TrainProcessorVersionRequest const& request); virtual future< StatusOr> - TrainProcessorVersion(google::cloud::ExperimentalTag, + TrainProcessorVersion(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -266,13 +266,13 @@ class DocumentProcessorServiceConnection { request); virtual StatusOr DeleteProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeleteProcessorVersionRequest const& request); virtual future< StatusOr> - DeleteProcessorVersion(google::cloud::ExperimentalTag, + DeleteProcessorVersion(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -282,13 +282,13 @@ class DocumentProcessorServiceConnection { request); virtual StatusOr DeployProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeployProcessorVersionRequest const& request); virtual future< StatusOr> - DeployProcessorVersion(google::cloud::ExperimentalTag, + DeployProcessorVersion(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -298,13 +298,13 @@ class DocumentProcessorServiceConnection { request); virtual StatusOr UndeployProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::UndeployProcessorVersionRequest const& request); virtual future< StatusOr> - UndeployProcessorVersion(google::cloud::ExperimentalTag, + UndeployProcessorVersion(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr CreateProcessor( @@ -316,12 +316,12 @@ class DocumentProcessorServiceConnection { google::cloud::documentai::v1::DeleteProcessorRequest const& request); virtual StatusOr DeleteProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeleteProcessorRequest const& request); virtual future< StatusOr> - DeleteProcessor(google::cloud::ExperimentalTag, + DeleteProcessor(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -330,12 +330,12 @@ class DocumentProcessorServiceConnection { google::cloud::documentai::v1::EnableProcessorRequest const& request); virtual StatusOr EnableProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::EnableProcessorRequest const& request); virtual future< StatusOr> - EnableProcessor(google::cloud::ExperimentalTag, + EnableProcessor(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -344,12 +344,12 @@ class DocumentProcessorServiceConnection { google::cloud::documentai::v1::DisableProcessorRequest const& request); virtual StatusOr DisableProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DisableProcessorRequest const& request); virtual future< StatusOr> - DisableProcessor(google::cloud::ExperimentalTag, + DisableProcessor(ExperimentalTag, google::longrunning::Operation const& operation); virtual future SetDefaultProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& request); virtual future> - SetDefaultProcessorVersion(google::cloud::ExperimentalTag, + SetDefaultProcessorVersion(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -374,12 +374,12 @@ class DocumentProcessorServiceConnection { google::cloud::documentai::v1::ReviewDocumentRequest const& request); virtual StatusOr ReviewDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::ReviewDocumentRequest const& request); virtual future< StatusOr> - ReviewDocument(google::cloud::ExperimentalTag, + ReviewDocument(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -389,13 +389,13 @@ class DocumentProcessorServiceConnection { request); virtual StatusOr EvaluateProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& request); virtual future< StatusOr> - EvaluateProcessorVersion(google::cloud::ExperimentalTag, + EvaluateProcessorVersion(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetEvaluation( diff --git a/google/cloud/documentai/v1/internal/document_processor_tracing_connection.cc b/google/cloud/documentai/v1/internal/document_processor_tracing_connection.cc index 802875c7fa47f..8072239b35ede 100644 --- a/google/cloud/documentai/v1/internal/document_processor_tracing_connection.cc +++ b/google/cloud/documentai/v1/internal/document_processor_tracing_connection.cc @@ -62,7 +62,7 @@ DocumentProcessorServiceTracingConnection::BatchProcessDocuments( auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "BatchProcessDocuments"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->BatchProcessDocuments( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -151,7 +151,7 @@ DocumentProcessorServiceTracingConnection::TrainProcessorVersion( auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "TrainProcessorVersion"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->TrainProcessorVersion( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -212,7 +212,7 @@ DocumentProcessorServiceTracingConnection::DeleteProcessorVersion( auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "DeleteProcessorVersion"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteProcessorVersion( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -251,7 +251,7 @@ DocumentProcessorServiceTracingConnection::DeployProcessorVersion( auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "DeployProcessorVersion"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeployProcessorVersion( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -291,7 +291,7 @@ DocumentProcessorServiceTracingConnection::UndeployProcessorVersion( auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "UndeployProcessorVersion"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UndeployProcessorVersion( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -335,7 +335,7 @@ DocumentProcessorServiceTracingConnection::DeleteProcessor( google::cloud::documentai::v1::DeleteProcessorRequest const& request) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::DeleteProcessor"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteProcessor(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -368,7 +368,7 @@ DocumentProcessorServiceTracingConnection::EnableProcessor( google::cloud::documentai::v1::EnableProcessorRequest const& request) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::EnableProcessor"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->EnableProcessor(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -401,7 +401,7 @@ DocumentProcessorServiceTracingConnection::DisableProcessor( google::cloud::documentai::v1::DisableProcessorRequest const& request) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::DisableProcessor"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DisableProcessor(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -440,7 +440,7 @@ DocumentProcessorServiceTracingConnection::SetDefaultProcessorVersion( auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "SetDefaultProcessorVersion"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SetDefaultProcessorVersion( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -475,7 +475,7 @@ DocumentProcessorServiceTracingConnection::ReviewDocument( google::cloud::documentai::v1::ReviewDocumentRequest const& request) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::ReviewDocument"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ReviewDocument(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -514,7 +514,7 @@ DocumentProcessorServiceTracingConnection::EvaluateProcessorVersion( auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "EvaluateProcessorVersion"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->EvaluateProcessorVersion( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/domains/v1/domains_connection.cc b/google/cloud/domains/v1/domains_connection.cc index dfaeafec29cbd..df8cac040b6e2 100644 --- a/google/cloud/domains/v1/domains_connection.cc +++ b/google/cloud/domains/v1/domains_connection.cc @@ -59,14 +59,14 @@ DomainsConnection::RegisterDomain( } StatusOr DomainsConnection::RegisterDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::RegisterDomainRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DomainsConnection::RegisterDomain(google::cloud::ExperimentalTag, +DomainsConnection::RegisterDomain(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -88,14 +88,14 @@ DomainsConnection::TransferDomain( } StatusOr DomainsConnection::TransferDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::TransferDomainRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DomainsConnection::TransferDomain(google::cloud::ExperimentalTag, +DomainsConnection::TransferDomain(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -125,14 +125,14 @@ DomainsConnection::UpdateRegistration( } StatusOr DomainsConnection::UpdateRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::UpdateRegistrationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DomainsConnection::UpdateRegistration(google::cloud::ExperimentalTag, +DomainsConnection::UpdateRegistration(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -149,7 +149,7 @@ DomainsConnection::ConfigureManagementSettings( StatusOr DomainsConnection::ConfigureManagementSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureManagementSettingsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -157,7 +157,7 @@ DomainsConnection::ConfigureManagementSettings( future> DomainsConnection::ConfigureManagementSettings( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -173,14 +173,14 @@ DomainsConnection::ConfigureDnsSettings( StatusOr DomainsConnection::ConfigureDnsSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureDnsSettingsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DomainsConnection::ConfigureDnsSettings(google::cloud::ExperimentalTag, +DomainsConnection::ConfigureDnsSettings(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -197,7 +197,7 @@ DomainsConnection::ConfigureContactSettings( StatusOr DomainsConnection::ConfigureContactSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureContactSettingsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -205,7 +205,7 @@ DomainsConnection::ConfigureContactSettings( future> DomainsConnection::ConfigureContactSettings( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -220,14 +220,14 @@ DomainsConnection::ExportRegistration( } StatusOr DomainsConnection::ExportRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ExportRegistrationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DomainsConnection::ExportRegistration(google::cloud::ExperimentalTag, +DomainsConnection::ExportRegistration(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -243,14 +243,14 @@ DomainsConnection::DeleteRegistration( } StatusOr DomainsConnection::DeleteRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::DeleteRegistrationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DomainsConnection::DeleteRegistration(google::cloud::ExperimentalTag, +DomainsConnection::DeleteRegistration(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/domains/v1/domains_connection.h b/google/cloud/domains/v1/domains_connection.h index 58c307d2d4621..d83641830c486 100644 --- a/google/cloud/domains/v1/domains_connection.h +++ b/google/cloud/domains/v1/domains_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/domains/v1/domains_connection_idempotency_policy.h" #include "google/cloud/domains/v1/internal/domains_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,11 +199,11 @@ class DomainsConnection { google::cloud::domains::v1::RegisterDomainRequest const& request); virtual StatusOr RegisterDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::RegisterDomainRequest const& request); virtual future> - RegisterDomain(google::cloud::ExperimentalTag, + RegisterDomain(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< @@ -217,11 +217,11 @@ class DomainsConnection { google::cloud::domains::v1::TransferDomainRequest const& request); virtual StatusOr TransferDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::TransferDomainRequest const& request); virtual future> - TransferDomain(google::cloud::ExperimentalTag, + TransferDomain(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -236,11 +236,11 @@ class DomainsConnection { google::cloud::domains::v1::UpdateRegistrationRequest const& request); virtual StatusOr UpdateRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::UpdateRegistrationRequest const& request); virtual future> - UpdateRegistration(google::cloud::ExperimentalTag, + UpdateRegistration(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -249,12 +249,12 @@ class DomainsConnection { request); virtual StatusOr ConfigureManagementSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureManagementSettingsRequest const& request); virtual future> - ConfigureManagementSettings(google::cloud::ExperimentalTag, + ConfigureManagementSettings(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -262,11 +262,11 @@ class DomainsConnection { google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request); virtual StatusOr ConfigureDnsSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request); virtual future> - ConfigureDnsSettings(google::cloud::ExperimentalTag, + ConfigureDnsSettings(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -275,12 +275,12 @@ class DomainsConnection { request); virtual StatusOr ConfigureContactSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureContactSettingsRequest const& request); virtual future> - ConfigureContactSettings(google::cloud::ExperimentalTag, + ConfigureContactSettings(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -288,11 +288,11 @@ class DomainsConnection { google::cloud::domains::v1::ExportRegistrationRequest const& request); virtual StatusOr ExportRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ExportRegistrationRequest const& request); virtual future> - ExportRegistration(google::cloud::ExperimentalTag, + ExportRegistration(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -300,11 +300,11 @@ class DomainsConnection { google::cloud::domains::v1::DeleteRegistrationRequest const& request); virtual StatusOr DeleteRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::DeleteRegistrationRequest const& request); virtual future> - DeleteRegistration(google::cloud::ExperimentalTag, + DeleteRegistration(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/domains/v1/internal/domains_tracing_connection.cc b/google/cloud/domains/v1/internal/domains_tracing_connection.cc index 72a90398a800b..bceed950753e9 100644 --- a/google/cloud/domains/v1/internal/domains_tracing_connection.cc +++ b/google/cloud/domains/v1/internal/domains_tracing_connection.cc @@ -67,7 +67,7 @@ DomainsTracingConnection::RegisterDomain( google::cloud::domains::v1::RegisterDomainRequest const& request) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::RegisterDomain"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RegisterDomain(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -110,7 +110,7 @@ DomainsTracingConnection::TransferDomain( google::cloud::domains::v1::TransferDomainRequest const& request) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::TransferDomain"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->TransferDomain(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -164,7 +164,7 @@ DomainsTracingConnection::UpdateRegistration( google::cloud::domains::v1::UpdateRegistrationRequest const& request) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::UpdateRegistration"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateRegistration(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -200,7 +200,7 @@ DomainsTracingConnection::ConfigureManagementSettings( request) { auto span = internal::MakeSpan( "domains_v1::DomainsConnection::ConfigureManagementSettings"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ConfigureManagementSettings( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -234,7 +234,7 @@ DomainsTracingConnection::ConfigureDnsSettings( google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::ConfigureDnsSettings"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ConfigureDnsSettings( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -270,7 +270,7 @@ DomainsTracingConnection::ConfigureContactSettings( request) { auto span = internal::MakeSpan( "domains_v1::DomainsConnection::ConfigureContactSettings"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ConfigureContactSettings( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -304,7 +304,7 @@ DomainsTracingConnection::ExportRegistration( google::cloud::domains::v1::ExportRegistrationRequest const& request) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::ExportRegistration"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportRegistration(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -338,7 +338,7 @@ DomainsTracingConnection::DeleteRegistration( google::cloud::domains::v1::DeleteRegistrationRequest const& request) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::DeleteRegistration"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteRegistration(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/edgecontainer/v1/edge_container_connection.cc b/google/cloud/edgecontainer/v1/edge_container_connection.cc index 3c245be58c0f5..9dc5380650f80 100644 --- a/google/cloud/edgecontainer/v1/edge_container_connection.cc +++ b/google/cloud/edgecontainer/v1/edge_container_connection.cc @@ -61,14 +61,14 @@ EdgeContainerConnection::CreateCluster( } StatusOr EdgeContainerConnection::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EdgeContainerConnection::CreateCluster(google::cloud::ExperimentalTag, +EdgeContainerConnection::CreateCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -84,14 +84,14 @@ EdgeContainerConnection::UpdateCluster( } StatusOr EdgeContainerConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpdateClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EdgeContainerConnection::UpdateCluster(google::cloud::ExperimentalTag, +EdgeContainerConnection::UpdateCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -108,14 +108,14 @@ EdgeContainerConnection::UpgradeCluster( StatusOr EdgeContainerConnection::UpgradeCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpgradeClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EdgeContainerConnection::UpgradeCluster(google::cloud::ExperimentalTag, +EdgeContainerConnection::UpgradeCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -131,14 +131,14 @@ EdgeContainerConnection::DeleteCluster( } StatusOr EdgeContainerConnection::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EdgeContainerConnection::DeleteCluster(google::cloud::ExperimentalTag, +EdgeContainerConnection::DeleteCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -181,14 +181,14 @@ EdgeContainerConnection::CreateNodePool( StatusOr EdgeContainerConnection::CreateNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateNodePoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EdgeContainerConnection::CreateNodePool(google::cloud::ExperimentalTag, +EdgeContainerConnection::CreateNodePool(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -205,14 +205,14 @@ EdgeContainerConnection::UpdateNodePool( StatusOr EdgeContainerConnection::UpdateNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpdateNodePoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EdgeContainerConnection::UpdateNodePool(google::cloud::ExperimentalTag, +EdgeContainerConnection::UpdateNodePool(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -229,14 +229,14 @@ EdgeContainerConnection::DeleteNodePool( StatusOr EdgeContainerConnection::DeleteNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteNodePoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EdgeContainerConnection::DeleteNodePool(google::cloud::ExperimentalTag, +EdgeContainerConnection::DeleteNodePool(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -281,7 +281,7 @@ EdgeContainerConnection::CreateVpnConnection( StatusOr EdgeContainerConnection::CreateVpnConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -289,7 +289,7 @@ EdgeContainerConnection::CreateVpnConnection( future> EdgeContainerConnection::CreateVpnConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -305,7 +305,7 @@ EdgeContainerConnection::DeleteVpnConnection( StatusOr EdgeContainerConnection::DeleteVpnConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -313,7 +313,7 @@ EdgeContainerConnection::DeleteVpnConnection( future> EdgeContainerConnection::DeleteVpnConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/edgecontainer/v1/edge_container_connection.h b/google/cloud/edgecontainer/v1/edge_container_connection.h index 05b3bad45bb21..f2d3563122ff2 100644 --- a/google/cloud/edgecontainer/v1/edge_container_connection.h +++ b/google/cloud/edgecontainer/v1/edge_container_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/edgecontainer/v1/edge_container_connection_idempotency_policy.h" #include "google/cloud/edgecontainer/v1/internal/edge_container_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -198,11 +198,11 @@ class EdgeContainerConnection { google::cloud::edgecontainer::v1::CreateClusterRequest const& request); virtual StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateClusterRequest const& request); virtual future> - CreateCluster(google::cloud::ExperimentalTag, + CreateCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -210,11 +210,11 @@ class EdgeContainerConnection { google::cloud::edgecontainer::v1::UpdateClusterRequest const& request); virtual StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpdateClusterRequest const& request); virtual future> - UpdateCluster(google::cloud::ExperimentalTag, + UpdateCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -222,11 +222,11 @@ class EdgeContainerConnection { google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request); virtual StatusOr UpgradeCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request); virtual future> - UpgradeCluster(google::cloud::ExperimentalTag, + UpgradeCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -234,11 +234,11 @@ class EdgeContainerConnection { google::cloud::edgecontainer::v1::DeleteClusterRequest const& request); virtual StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteClusterRequest const& request); virtual future> - DeleteCluster(google::cloud::ExperimentalTag, + DeleteCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< @@ -264,11 +264,11 @@ class EdgeContainerConnection { google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request); virtual StatusOr CreateNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request); virtual future> - CreateNodePool(google::cloud::ExperimentalTag, + CreateNodePool(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -276,11 +276,11 @@ class EdgeContainerConnection { google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request); virtual StatusOr UpdateNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request); virtual future> - UpdateNodePool(google::cloud::ExperimentalTag, + UpdateNodePool(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -288,11 +288,11 @@ class EdgeContainerConnection { google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request); virtual StatusOr DeleteNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request); virtual future> - DeleteNodePool(google::cloud::ExperimentalTag, + DeleteNodePool(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListMachines( @@ -315,12 +315,12 @@ class EdgeContainerConnection { request); virtual StatusOr CreateVpnConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& request); virtual future> - CreateVpnConnection(google::cloud::ExperimentalTag, + CreateVpnConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -329,12 +329,12 @@ class EdgeContainerConnection { request); virtual StatusOr DeleteVpnConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& request); virtual future> - DeleteVpnConnection(google::cloud::ExperimentalTag, + DeleteVpnConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.cc b/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.cc index 125c791782e1c..468b32bb17722 100644 --- a/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.cc +++ b/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.cc @@ -69,7 +69,7 @@ EdgeContainerTracingConnection::CreateCluster( google::cloud::edgecontainer::v1::CreateClusterRequest const& request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::CreateCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -102,7 +102,7 @@ EdgeContainerTracingConnection::UpdateCluster( google::cloud::edgecontainer::v1::UpdateClusterRequest const& request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::UpdateCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ EdgeContainerTracingConnection::UpgradeCluster( google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::UpgradeCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpgradeCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -168,7 +168,7 @@ EdgeContainerTracingConnection::DeleteCluster( google::cloud::edgecontainer::v1::DeleteClusterRequest const& request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::DeleteCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -242,7 +242,7 @@ EdgeContainerTracingConnection::CreateNodePool( google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::CreateNodePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateNodePool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -275,7 +275,7 @@ EdgeContainerTracingConnection::UpdateNodePool( google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::UpdateNodePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateNodePool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -308,7 +308,7 @@ EdgeContainerTracingConnection::DeleteNodePool( google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::DeleteNodePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteNodePool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -386,7 +386,7 @@ EdgeContainerTracingConnection::CreateVpnConnection( request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::CreateVpnConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateVpnConnection(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -422,7 +422,7 @@ EdgeContainerTracingConnection::DeleteVpnConnection( request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::DeleteVpnConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteVpnConnection(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/edgenetwork/v1/edge_network_connection.cc b/google/cloud/edgenetwork/v1/edge_network_connection.cc index 9cdfbbcbfdd25..95250cc44cad1 100644 --- a/google/cloud/edgenetwork/v1/edge_network_connection.cc +++ b/google/cloud/edgenetwork/v1/edge_network_connection.cc @@ -86,14 +86,14 @@ EdgeNetworkConnection::CreateNetwork( } StatusOr EdgeNetworkConnection::CreateNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateNetworkRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EdgeNetworkConnection::CreateNetwork(google::cloud::ExperimentalTag, +EdgeNetworkConnection::CreateNetwork(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -109,14 +109,14 @@ EdgeNetworkConnection::DeleteNetwork( } StatusOr EdgeNetworkConnection::DeleteNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteNetworkRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EdgeNetworkConnection::DeleteNetwork(google::cloud::ExperimentalTag, +EdgeNetworkConnection::DeleteNetwork(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -146,14 +146,14 @@ EdgeNetworkConnection::CreateSubnet( } StatusOr EdgeNetworkConnection::CreateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateSubnetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EdgeNetworkConnection::CreateSubnet(google::cloud::ExperimentalTag, +EdgeNetworkConnection::CreateSubnet(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -169,14 +169,14 @@ EdgeNetworkConnection::UpdateSubnet( } StatusOr EdgeNetworkConnection::UpdateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::UpdateSubnetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EdgeNetworkConnection::UpdateSubnet(google::cloud::ExperimentalTag, +EdgeNetworkConnection::UpdateSubnet(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -192,14 +192,14 @@ EdgeNetworkConnection::DeleteSubnet( } StatusOr EdgeNetworkConnection::DeleteSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteSubnetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EdgeNetworkConnection::DeleteSubnet(google::cloud::ExperimentalTag, +EdgeNetworkConnection::DeleteSubnet(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -251,7 +251,7 @@ EdgeNetworkConnection::CreateInterconnectAttachment( StatusOr EdgeNetworkConnection::CreateInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1:: CreateInterconnectAttachmentRequest const&) { return StatusOr( @@ -260,7 +260,7 @@ EdgeNetworkConnection::CreateInterconnectAttachment( future> EdgeNetworkConnection::CreateInterconnectAttachment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -277,7 +277,7 @@ EdgeNetworkConnection::DeleteInterconnectAttachment( StatusOr EdgeNetworkConnection::DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1:: DeleteInterconnectAttachmentRequest const&) { return StatusOr( @@ -286,7 +286,7 @@ EdgeNetworkConnection::DeleteInterconnectAttachment( future> EdgeNetworkConnection::DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -321,14 +321,14 @@ EdgeNetworkConnection::CreateRouter( } StatusOr EdgeNetworkConnection::CreateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateRouterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EdgeNetworkConnection::CreateRouter(google::cloud::ExperimentalTag, +EdgeNetworkConnection::CreateRouter(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -344,14 +344,14 @@ EdgeNetworkConnection::UpdateRouter( } StatusOr EdgeNetworkConnection::UpdateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::UpdateRouterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EdgeNetworkConnection::UpdateRouter(google::cloud::ExperimentalTag, +EdgeNetworkConnection::UpdateRouter(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -367,14 +367,14 @@ EdgeNetworkConnection::DeleteRouter( } StatusOr EdgeNetworkConnection::DeleteRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteRouterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EdgeNetworkConnection::DeleteRouter(google::cloud::ExperimentalTag, +EdgeNetworkConnection::DeleteRouter(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/edgenetwork/v1/edge_network_connection.h b/google/cloud/edgenetwork/v1/edge_network_connection.h index 865f1bc1198ce..c128efeccba43 100644 --- a/google/cloud/edgenetwork/v1/edge_network_connection.h +++ b/google/cloud/edgenetwork/v1/edge_network_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/edgenetwork/v1/edge_network_connection_idempotency_policy.h" #include "google/cloud/edgenetwork/v1/internal/edge_network_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -211,11 +211,11 @@ class EdgeNetworkConnection { google::cloud::edgenetwork::v1::CreateNetworkRequest const& request); virtual StatusOr CreateNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateNetworkRequest const& request); virtual future> - CreateNetwork(google::cloud::ExperimentalTag, + CreateNetwork(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -223,11 +223,11 @@ class EdgeNetworkConnection { google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request); virtual StatusOr DeleteNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request); virtual future> - DeleteNetwork(google::cloud::ExperimentalTag, + DeleteNetwork(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListSubnets( @@ -240,34 +240,32 @@ class EdgeNetworkConnection { google::cloud::edgenetwork::v1::CreateSubnetRequest const& request); virtual StatusOr CreateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateSubnetRequest const& request); virtual future> CreateSubnet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateSubnet( google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request); virtual StatusOr UpdateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request); virtual future> UpdateSubnet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteSubnet( google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request); virtual StatusOr DeleteSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request); virtual future> - DeleteSubnet(google::cloud::ExperimentalTag, + DeleteSubnet(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -300,13 +298,13 @@ class EdgeNetworkConnection { request); virtual StatusOr CreateInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const& request); virtual future< StatusOr> - CreateInterconnectAttachment(google::cloud::ExperimentalTag, + CreateInterconnectAttachment(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -315,12 +313,12 @@ class EdgeNetworkConnection { request); virtual StatusOr DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& request); virtual future> - DeleteInterconnectAttachment(google::cloud::ExperimentalTag, + DeleteInterconnectAttachment(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListRouters( @@ -337,34 +335,32 @@ class EdgeNetworkConnection { google::cloud::edgenetwork::v1::CreateRouterRequest const& request); virtual StatusOr CreateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateRouterRequest const& request); virtual future> CreateRouter( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateRouter( google::cloud::edgenetwork::v1::UpdateRouterRequest const& request); virtual StatusOr UpdateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::UpdateRouterRequest const& request); virtual future> UpdateRouter( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteRouter( google::cloud::edgenetwork::v1::DeleteRouterRequest const& request); virtual StatusOr DeleteRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteRouterRequest const& request); virtual future> - DeleteRouter(google::cloud::ExperimentalTag, + DeleteRouter(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.cc b/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.cc index 056899216e6be..39961d5b0eb83 100644 --- a/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.cc +++ b/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.cc @@ -106,7 +106,7 @@ EdgeNetworkTracingConnection::CreateNetwork( google::cloud::edgenetwork::v1::CreateNetworkRequest const& request) { auto span = internal::MakeSpan( "edgenetwork_v1::EdgeNetworkConnection::CreateNetwork"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateNetwork(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -139,7 +139,7 @@ EdgeNetworkTracingConnection::DeleteNetwork( google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request) { auto span = internal::MakeSpan( "edgenetwork_v1::EdgeNetworkConnection::DeleteNetwork"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteNetwork(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -192,7 +192,7 @@ EdgeNetworkTracingConnection::CreateSubnet( google::cloud::edgenetwork::v1::CreateSubnetRequest const& request) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::CreateSubnet"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateSubnet(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -225,7 +225,7 @@ EdgeNetworkTracingConnection::UpdateSubnet( google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::UpdateSubnet"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateSubnet(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -258,7 +258,7 @@ EdgeNetworkTracingConnection::DeleteSubnet( google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::DeleteSubnet"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSubnet(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -348,7 +348,7 @@ EdgeNetworkTracingConnection::CreateInterconnectAttachment( request) { auto span = internal::MakeSpan( "edgenetwork_v1::EdgeNetworkConnection::CreateInterconnectAttachment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateInterconnectAttachment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -384,7 +384,7 @@ EdgeNetworkTracingConnection::DeleteInterconnectAttachment( request) { auto span = internal::MakeSpan( "edgenetwork_v1::EdgeNetworkConnection::DeleteInterconnectAttachment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteInterconnectAttachment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -446,7 +446,7 @@ EdgeNetworkTracingConnection::CreateRouter( google::cloud::edgenetwork::v1::CreateRouterRequest const& request) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::CreateRouter"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateRouter(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -479,7 +479,7 @@ EdgeNetworkTracingConnection::UpdateRouter( google::cloud::edgenetwork::v1::UpdateRouterRequest const& request) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::UpdateRouter"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateRouter(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -512,7 +512,7 @@ EdgeNetworkTracingConnection::DeleteRouter( google::cloud::edgenetwork::v1::DeleteRouterRequest const& request) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::DeleteRouter"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteRouter(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/essentialcontacts/v1/essential_contacts_connection.h b/google/cloud/essentialcontacts/v1/essential_contacts_connection.h index a8e59d183c730..2e9114cfe841f 100644 --- a/google/cloud/essentialcontacts/v1/essential_contacts_connection.h +++ b/google/cloud/essentialcontacts/v1/essential_contacts_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/essentialcontacts/v1/essential_contacts_connection_idempotency_policy.h" #include "google/cloud/essentialcontacts/v1/internal/essential_contacts_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/eventarc/publishing/v1/publisher_connection.h b/google/cloud/eventarc/publishing/v1/publisher_connection.h index cf480f95c34b7..de067552b103a 100644 --- a/google/cloud/eventarc/publishing/v1/publisher_connection.h +++ b/google/cloud/eventarc/publishing/v1/publisher_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/eventarc/publishing/v1/internal/publisher_retry_traits.h" #include "google/cloud/eventarc/publishing/v1/publisher_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/eventarc/v1/eventarc_connection.cc b/google/cloud/eventarc/v1/eventarc_connection.cc index d6de39f0aaa0c..74789e64fdee7 100644 --- a/google/cloud/eventarc/v1/eventarc_connection.cc +++ b/google/cloud/eventarc/v1/eventarc_connection.cc @@ -60,14 +60,14 @@ EventarcConnection::CreateTrigger( } StatusOr EventarcConnection::CreateTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateTriggerRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EventarcConnection::CreateTrigger(google::cloud::ExperimentalTag, +EventarcConnection::CreateTrigger(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -83,14 +83,14 @@ EventarcConnection::UpdateTrigger( } StatusOr EventarcConnection::UpdateTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::UpdateTriggerRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EventarcConnection::UpdateTrigger(google::cloud::ExperimentalTag, +EventarcConnection::UpdateTrigger(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -106,14 +106,14 @@ EventarcConnection::DeleteTrigger( } StatusOr EventarcConnection::DeleteTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteTriggerRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EventarcConnection::DeleteTrigger(google::cloud::ExperimentalTag, +EventarcConnection::DeleteTrigger(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -142,14 +142,14 @@ EventarcConnection::CreateChannel( } StatusOr EventarcConnection::CreateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateChannelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EventarcConnection::CreateChannel(google::cloud::ExperimentalTag, +EventarcConnection::CreateChannel(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -165,14 +165,14 @@ EventarcConnection::UpdateChannel( } StatusOr EventarcConnection::UpdateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::UpdateChannelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EventarcConnection::UpdateChannel(google::cloud::ExperimentalTag, +EventarcConnection::UpdateChannel(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -188,14 +188,14 @@ EventarcConnection::DeleteChannel( } StatusOr EventarcConnection::DeleteChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteChannelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -EventarcConnection::DeleteChannel(google::cloud::ExperimentalTag, +EventarcConnection::DeleteChannel(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -239,7 +239,7 @@ EventarcConnection::CreateChannelConnection( StatusOr EventarcConnection::CreateChannelConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateChannelConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -247,7 +247,7 @@ EventarcConnection::CreateChannelConnection( future> EventarcConnection::CreateChannelConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -263,7 +263,7 @@ EventarcConnection::DeleteChannelConnection( StatusOr EventarcConnection::DeleteChannelConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteChannelConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -271,7 +271,7 @@ EventarcConnection::DeleteChannelConnection( future> EventarcConnection::DeleteChannelConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/eventarc/v1/eventarc_connection.h b/google/cloud/eventarc/v1/eventarc_connection.h index 179e67a70f69c..8f70788625dc2 100644 --- a/google/cloud/eventarc/v1/eventarc_connection.h +++ b/google/cloud/eventarc/v1/eventarc_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/eventarc/v1/eventarc_connection_idempotency_policy.h" #include "google/cloud/eventarc/v1/internal/eventarc_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -196,34 +196,31 @@ class EventarcConnection { google::cloud::eventarc::v1::CreateTriggerRequest const& request); virtual StatusOr CreateTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateTriggerRequest const& request); virtual future> CreateTrigger( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateTrigger( google::cloud::eventarc::v1::UpdateTriggerRequest const& request); virtual StatusOr UpdateTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::UpdateTriggerRequest const& request); virtual future> UpdateTrigger( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteTrigger( google::cloud::eventarc::v1::DeleteTriggerRequest const& request); virtual StatusOr DeleteTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteTriggerRequest const& request); virtual future> DeleteTrigger( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetChannel( google::cloud::eventarc::v1::GetChannelRequest const& request); @@ -235,34 +232,31 @@ class EventarcConnection { google::cloud::eventarc::v1::CreateChannelRequest const& request); virtual StatusOr CreateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateChannelRequest const& request); virtual future> CreateChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateChannel( google::cloud::eventarc::v1::UpdateChannelRequest const& request); virtual StatusOr UpdateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::UpdateChannelRequest const& request); virtual future> UpdateChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteChannel( google::cloud::eventarc::v1::DeleteChannelRequest const& request); virtual StatusOr DeleteChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteChannelRequest const& request); virtual future> DeleteChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetProvider( google::cloud::eventarc::v1::GetProviderRequest const& request); @@ -284,12 +278,12 @@ class EventarcConnection { request); virtual StatusOr CreateChannelConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateChannelConnectionRequest const& request); virtual future> - CreateChannelConnection(google::cloud::ExperimentalTag, + CreateChannelConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -298,12 +292,12 @@ class EventarcConnection { request); virtual StatusOr DeleteChannelConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& request); virtual future> - DeleteChannelConnection(google::cloud::ExperimentalTag, + DeleteChannelConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.cc b/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.cc index 70ecf02f0e212..5bab7f6febc53 100644 --- a/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.cc +++ b/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.cc @@ -67,7 +67,7 @@ EventarcTracingConnection::CreateTrigger( google::cloud::eventarc::v1::CreateTriggerRequest const& request) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::CreateTrigger"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateTrigger(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -100,7 +100,7 @@ EventarcTracingConnection::UpdateTrigger( google::cloud::eventarc::v1::UpdateTriggerRequest const& request) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::UpdateTrigger"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateTrigger(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -133,7 +133,7 @@ EventarcTracingConnection::DeleteTrigger( google::cloud::eventarc::v1::DeleteTriggerRequest const& request) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::DeleteTrigger"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteTrigger(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -185,7 +185,7 @@ EventarcTracingConnection::CreateChannel( google::cloud::eventarc::v1::CreateChannelRequest const& request) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::CreateChannel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateChannel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -218,7 +218,7 @@ EventarcTracingConnection::UpdateChannel( google::cloud::eventarc::v1::UpdateChannelRequest const& request) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::UpdateChannel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateChannel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -251,7 +251,7 @@ EventarcTracingConnection::DeleteChannel( google::cloud::eventarc::v1::DeleteChannelRequest const& request) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::DeleteChannel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteChannel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -328,7 +328,7 @@ EventarcTracingConnection::CreateChannelConnection( request) { auto span = internal::MakeSpan( "eventarc_v1::EventarcConnection::CreateChannelConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateChannelConnection( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -364,7 +364,7 @@ EventarcTracingConnection::DeleteChannelConnection( request) { auto span = internal::MakeSpan( "eventarc_v1::EventarcConnection::DeleteChannelConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteChannelConnection( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/filestore/v1/cloud_filestore_manager_connection.cc b/google/cloud/filestore/v1/cloud_filestore_manager_connection.cc index 14695b2e83e44..3235b784d00dc 100644 --- a/google/cloud/filestore/v1/cloud_filestore_manager_connection.cc +++ b/google/cloud/filestore/v1/cloud_filestore_manager_connection.cc @@ -62,7 +62,7 @@ CloudFilestoreManagerConnection::CreateInstance( StatusOr CloudFilestoreManagerConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ CloudFilestoreManagerConnection::CreateInstance( future> CloudFilestoreManagerConnection::CreateInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ CloudFilestoreManagerConnection::UpdateInstance( StatusOr CloudFilestoreManagerConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ CloudFilestoreManagerConnection::UpdateInstance( future> CloudFilestoreManagerConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ CloudFilestoreManagerConnection::RestoreInstance( StatusOr CloudFilestoreManagerConnection::RestoreInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::RestoreInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ CloudFilestoreManagerConnection::RestoreInstance( future> CloudFilestoreManagerConnection::RestoreInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,7 +134,7 @@ CloudFilestoreManagerConnection::RevertInstance( StatusOr CloudFilestoreManagerConnection::RevertInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::RevertInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +142,7 @@ CloudFilestoreManagerConnection::RevertInstance( future> CloudFilestoreManagerConnection::RevertInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -158,7 +158,7 @@ CloudFilestoreManagerConnection::DeleteInstance( StatusOr CloudFilestoreManagerConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -166,7 +166,7 @@ CloudFilestoreManagerConnection::DeleteInstance( future> CloudFilestoreManagerConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -196,7 +196,7 @@ CloudFilestoreManagerConnection::CreateSnapshot( StatusOr CloudFilestoreManagerConnection::CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateSnapshotRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -204,7 +204,7 @@ CloudFilestoreManagerConnection::CreateSnapshot( future> CloudFilestoreManagerConnection::CreateSnapshot( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -220,7 +220,7 @@ CloudFilestoreManagerConnection::DeleteSnapshot( StatusOr CloudFilestoreManagerConnection::DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteSnapshotRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -228,7 +228,7 @@ CloudFilestoreManagerConnection::DeleteSnapshot( future> CloudFilestoreManagerConnection::DeleteSnapshot( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -244,7 +244,7 @@ CloudFilestoreManagerConnection::UpdateSnapshot( StatusOr CloudFilestoreManagerConnection::UpdateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateSnapshotRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -252,7 +252,7 @@ CloudFilestoreManagerConnection::UpdateSnapshot( future> CloudFilestoreManagerConnection::UpdateSnapshot( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -282,7 +282,7 @@ CloudFilestoreManagerConnection::CreateBackup( StatusOr CloudFilestoreManagerConnection::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -290,7 +290,7 @@ CloudFilestoreManagerConnection::CreateBackup( future> CloudFilestoreManagerConnection::CreateBackup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -306,7 +306,7 @@ CloudFilestoreManagerConnection::DeleteBackup( StatusOr CloudFilestoreManagerConnection::DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -314,7 +314,7 @@ CloudFilestoreManagerConnection::DeleteBackup( future> CloudFilestoreManagerConnection::DeleteBackup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -330,7 +330,7 @@ CloudFilestoreManagerConnection::UpdateBackup( StatusOr CloudFilestoreManagerConnection::UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -338,7 +338,7 @@ CloudFilestoreManagerConnection::UpdateBackup( future> CloudFilestoreManagerConnection::UpdateBackup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/filestore/v1/cloud_filestore_manager_connection.h b/google/cloud/filestore/v1/cloud_filestore_manager_connection.h index 7f74e4ce00b30..59e6a5532fc57 100644 --- a/google/cloud/filestore/v1/cloud_filestore_manager_connection.h +++ b/google/cloud/filestore/v1/cloud_filestore_manager_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/filestore/v1/cloud_filestore_manager_connection_idempotency_policy.h" #include "google/cloud/filestore/v1/internal/cloud_filestore_manager_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -204,11 +204,11 @@ class CloudFilestoreManagerConnection { google::cloud::filestore::v1::CreateInstanceRequest const& request); virtual StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateInstanceRequest const& request); virtual future> - CreateInstance(google::cloud::ExperimentalTag, + CreateInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -216,11 +216,11 @@ class CloudFilestoreManagerConnection { google::cloud::filestore::v1::UpdateInstanceRequest const& request); virtual StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateInstanceRequest const& request); virtual future> - UpdateInstance(google::cloud::ExperimentalTag, + UpdateInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -228,11 +228,11 @@ class CloudFilestoreManagerConnection { google::cloud::filestore::v1::RestoreInstanceRequest const& request); virtual StatusOr RestoreInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::RestoreInstanceRequest const& request); virtual future> - RestoreInstance(google::cloud::ExperimentalTag, + RestoreInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -240,11 +240,11 @@ class CloudFilestoreManagerConnection { google::cloud::filestore::v1::RevertInstanceRequest const& request); virtual StatusOr RevertInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::RevertInstanceRequest const& request); virtual future> - RevertInstance(google::cloud::ExperimentalTag, + RevertInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -252,11 +252,11 @@ class CloudFilestoreManagerConnection { google::cloud::filestore::v1::DeleteInstanceRequest const& request); virtual StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteInstanceRequest const& request); virtual future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListSnapshots( @@ -270,11 +270,11 @@ class CloudFilestoreManagerConnection { google::cloud::filestore::v1::CreateSnapshotRequest const& request); virtual StatusOr CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateSnapshotRequest const& request); virtual future> - CreateSnapshot(google::cloud::ExperimentalTag, + CreateSnapshot(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -282,11 +282,11 @@ class CloudFilestoreManagerConnection { google::cloud::filestore::v1::DeleteSnapshotRequest const& request); virtual StatusOr DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteSnapshotRequest const& request); virtual future> - DeleteSnapshot(google::cloud::ExperimentalTag, + DeleteSnapshot(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -294,11 +294,11 @@ class CloudFilestoreManagerConnection { google::cloud::filestore::v1::UpdateSnapshotRequest const& request); virtual StatusOr UpdateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateSnapshotRequest const& request); virtual future> - UpdateSnapshot(google::cloud::ExperimentalTag, + UpdateSnapshot(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListBackups( @@ -311,35 +311,33 @@ class CloudFilestoreManagerConnection { google::cloud::filestore::v1::CreateBackupRequest const& request); virtual StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateBackupRequest const& request); virtual future> CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteBackup( google::cloud::filestore::v1::DeleteBackupRequest const& request); virtual StatusOr DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteBackupRequest const& request); virtual future> - DeleteBackup(google::cloud::ExperimentalTag, + DeleteBackup(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateBackup( google::cloud::filestore::v1::UpdateBackupRequest const& request); virtual StatusOr UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateBackupRequest const& request); virtual future> UpdateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.cc b/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.cc index f2663aa969875..330ed7bab11aa 100644 --- a/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.cc +++ b/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.cc @@ -68,7 +68,7 @@ CloudFilestoreManagerTracingConnection::CreateInstance( google::cloud::filestore::v1::CreateInstanceRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::CreateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ CloudFilestoreManagerTracingConnection::UpdateInstance( google::cloud::filestore::v1::UpdateInstanceRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::UpdateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -134,7 +134,7 @@ CloudFilestoreManagerTracingConnection::RestoreInstance( google::cloud::filestore::v1::RestoreInstanceRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::RestoreInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RestoreInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -167,7 +167,7 @@ CloudFilestoreManagerTracingConnection::RevertInstance( google::cloud::filestore::v1::RevertInstanceRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::RevertInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RevertInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -200,7 +200,7 @@ CloudFilestoreManagerTracingConnection::DeleteInstance( google::cloud::filestore::v1::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::DeleteInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -253,7 +253,7 @@ CloudFilestoreManagerTracingConnection::CreateSnapshot( google::cloud::filestore::v1::CreateSnapshotRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::CreateSnapshot"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateSnapshot(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -286,7 +286,7 @@ CloudFilestoreManagerTracingConnection::DeleteSnapshot( google::cloud::filestore::v1::DeleteSnapshotRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::DeleteSnapshot"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSnapshot(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -319,7 +319,7 @@ CloudFilestoreManagerTracingConnection::UpdateSnapshot( google::cloud::filestore::v1::UpdateSnapshotRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::UpdateSnapshot"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateSnapshot(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -372,7 +372,7 @@ CloudFilestoreManagerTracingConnection::CreateBackup( google::cloud::filestore::v1::CreateBackupRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::CreateBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -405,7 +405,7 @@ CloudFilestoreManagerTracingConnection::DeleteBackup( google::cloud::filestore::v1::DeleteBackupRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::DeleteBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -438,7 +438,7 @@ CloudFilestoreManagerTracingConnection::UpdateBackup( google::cloud::filestore::v1::UpdateBackupRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::UpdateBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/functions/v1/cloud_functions_connection.cc b/google/cloud/functions/v1/cloud_functions_connection.cc index 24f37c0eb9111..7ba9909ae6a5a 100644 --- a/google/cloud/functions/v1/cloud_functions_connection.cc +++ b/google/cloud/functions/v1/cloud_functions_connection.cc @@ -62,7 +62,7 @@ CloudFunctionsServiceConnection::CreateFunction( StatusOr CloudFunctionsServiceConnection::CreateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::CreateFunctionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ CloudFunctionsServiceConnection::CreateFunction( future> CloudFunctionsServiceConnection::CreateFunction( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ CloudFunctionsServiceConnection::UpdateFunction( StatusOr CloudFunctionsServiceConnection::UpdateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::UpdateFunctionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ CloudFunctionsServiceConnection::UpdateFunction( future> CloudFunctionsServiceConnection::UpdateFunction( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ CloudFunctionsServiceConnection::DeleteFunction( StatusOr CloudFunctionsServiceConnection::DeleteFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::DeleteFunctionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ CloudFunctionsServiceConnection::DeleteFunction( future> CloudFunctionsServiceConnection::DeleteFunction( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/functions/v1/cloud_functions_connection.h b/google/cloud/functions/v1/cloud_functions_connection.h index 21002c989bb5c..e49bc2645f111 100644 --- a/google/cloud/functions/v1/cloud_functions_connection.h +++ b/google/cloud/functions/v1/cloud_functions_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/functions/v1/cloud_functions_connection_idempotency_policy.h" #include "google/cloud/functions/v1/internal/cloud_functions_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -205,11 +205,11 @@ class CloudFunctionsServiceConnection { google::cloud::functions::v1::CreateFunctionRequest const& request); virtual StatusOr CreateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::CreateFunctionRequest const& request); virtual future> - CreateFunction(google::cloud::ExperimentalTag, + CreateFunction(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -217,11 +217,11 @@ class CloudFunctionsServiceConnection { google::cloud::functions::v1::UpdateFunctionRequest const& request); virtual StatusOr UpdateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::UpdateFunctionRequest const& request); virtual future> - UpdateFunction(google::cloud::ExperimentalTag, + UpdateFunction(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -229,11 +229,11 @@ class CloudFunctionsServiceConnection { google::cloud::functions::v1::DeleteFunctionRequest const& request); virtual StatusOr DeleteFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::DeleteFunctionRequest const& request); virtual future> - DeleteFunction(google::cloud::ExperimentalTag, + DeleteFunction(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.cc b/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.cc index 2e270d6da3256..a88ef63138041 100644 --- a/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.cc +++ b/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.cc @@ -69,7 +69,7 @@ CloudFunctionsServiceTracingConnection::CreateFunction( google::cloud::functions::v1::CreateFunctionRequest const& request) { auto span = internal::MakeSpan( "functions_v1::CloudFunctionsServiceConnection::CreateFunction"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateFunction(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -102,7 +102,7 @@ CloudFunctionsServiceTracingConnection::UpdateFunction( google::cloud::functions::v1::UpdateFunctionRequest const& request) { auto span = internal::MakeSpan( "functions_v1::CloudFunctionsServiceConnection::UpdateFunction"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateFunction(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ CloudFunctionsServiceTracingConnection::DeleteFunction( google::cloud::functions::v1::DeleteFunctionRequest const& request) { auto span = internal::MakeSpan( "functions_v1::CloudFunctionsServiceConnection::DeleteFunction"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteFunction(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/functions/v2/function_connection.cc b/google/cloud/functions/v2/function_connection.cc index 676de6099b599..d63183b50e82e 100644 --- a/google/cloud/functions/v2/function_connection.cc +++ b/google/cloud/functions/v2/function_connection.cc @@ -62,7 +62,7 @@ FunctionServiceConnection::CreateFunction( StatusOr FunctionServiceConnection::CreateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::CreateFunctionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ FunctionServiceConnection::CreateFunction( future> FunctionServiceConnection::CreateFunction( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ FunctionServiceConnection::UpdateFunction( StatusOr FunctionServiceConnection::UpdateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::UpdateFunctionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ FunctionServiceConnection::UpdateFunction( future> FunctionServiceConnection::UpdateFunction( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ FunctionServiceConnection::DeleteFunction( StatusOr FunctionServiceConnection::DeleteFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::DeleteFunctionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ FunctionServiceConnection::DeleteFunction( future> FunctionServiceConnection::DeleteFunction( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/functions/v2/function_connection.h b/google/cloud/functions/v2/function_connection.h index 7f5cea99d6470..c13092aca52b5 100644 --- a/google/cloud/functions/v2/function_connection.h +++ b/google/cloud/functions/v2/function_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/functions/v2/function_connection_idempotency_policy.h" #include "google/cloud/functions/v2/internal/function_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,11 +199,11 @@ class FunctionServiceConnection { google::cloud::functions::v2::CreateFunctionRequest const& request); virtual StatusOr CreateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::CreateFunctionRequest const& request); virtual future> - CreateFunction(google::cloud::ExperimentalTag, + CreateFunction(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -211,11 +211,11 @@ class FunctionServiceConnection { google::cloud::functions::v2::UpdateFunctionRequest const& request); virtual StatusOr UpdateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::UpdateFunctionRequest const& request); virtual future> - UpdateFunction(google::cloud::ExperimentalTag, + UpdateFunction(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -223,11 +223,11 @@ class FunctionServiceConnection { google::cloud::functions::v2::DeleteFunctionRequest const& request); virtual StatusOr DeleteFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::DeleteFunctionRequest const& request); virtual future> - DeleteFunction(google::cloud::ExperimentalTag, + DeleteFunction(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/functions/v2/internal/function_tracing_connection.cc b/google/cloud/functions/v2/internal/function_tracing_connection.cc index a5aaf7f991761..f10a4b8f6d49a 100644 --- a/google/cloud/functions/v2/internal/function_tracing_connection.cc +++ b/google/cloud/functions/v2/internal/function_tracing_connection.cc @@ -68,7 +68,7 @@ FunctionServiceTracingConnection::CreateFunction( google::cloud::functions::v2::CreateFunctionRequest const& request) { auto span = internal::MakeSpan( "functions_v2::FunctionServiceConnection::CreateFunction"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateFunction(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ FunctionServiceTracingConnection::UpdateFunction( google::cloud::functions::v2::UpdateFunctionRequest const& request) { auto span = internal::MakeSpan( "functions_v2::FunctionServiceConnection::UpdateFunction"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateFunction(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -134,7 +134,7 @@ FunctionServiceTracingConnection::DeleteFunction( google::cloud::functions::v2::DeleteFunctionRequest const& request) { auto span = internal::MakeSpan( "functions_v2::FunctionServiceConnection::DeleteFunction"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteFunction(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/gkebackup/v1/backup_for_gke_connection.cc b/google/cloud/gkebackup/v1/backup_for_gke_connection.cc index bfd9ea009c9a3..300b592eb5cb7 100644 --- a/google/cloud/gkebackup/v1/backup_for_gke_connection.cc +++ b/google/cloud/gkebackup/v1/backup_for_gke_connection.cc @@ -48,7 +48,7 @@ BackupForGKEConnection::CreateBackupPlan( StatusOr BackupForGKEConnection::CreateBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupPlanRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ BackupForGKEConnection::CreateBackupPlan( future> BackupForGKEConnection::CreateBackupPlan( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ BackupForGKEConnection::UpdateBackupPlan( StatusOr BackupForGKEConnection::UpdateBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupPlanRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ BackupForGKEConnection::UpdateBackupPlan( future> BackupForGKEConnection::UpdateBackupPlan( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ BackupForGKEConnection::DeleteBackupPlan( StatusOr BackupForGKEConnection::DeleteBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupPlanRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ BackupForGKEConnection::DeleteBackupPlan( future> BackupForGKEConnection::DeleteBackupPlan( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -133,14 +133,14 @@ BackupForGKEConnection::CreateBackup( } StatusOr BackupForGKEConnection::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -BackupForGKEConnection::CreateBackup(google::cloud::ExperimentalTag, +BackupForGKEConnection::CreateBackup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -170,14 +170,14 @@ BackupForGKEConnection::UpdateBackup( } StatusOr BackupForGKEConnection::UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -BackupForGKEConnection::UpdateBackup(google::cloud::ExperimentalTag, +BackupForGKEConnection::UpdateBackup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -193,14 +193,14 @@ BackupForGKEConnection::DeleteBackup( } StatusOr BackupForGKEConnection::DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -BackupForGKEConnection::DeleteBackup(google::cloud::ExperimentalTag, +BackupForGKEConnection::DeleteBackup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -231,7 +231,7 @@ BackupForGKEConnection::CreateRestorePlan( StatusOr BackupForGKEConnection::CreateRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateRestorePlanRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -239,7 +239,7 @@ BackupForGKEConnection::CreateRestorePlan( future> BackupForGKEConnection::CreateRestorePlan( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -269,7 +269,7 @@ BackupForGKEConnection::UpdateRestorePlan( StatusOr BackupForGKEConnection::UpdateRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestorePlanRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -277,7 +277,7 @@ BackupForGKEConnection::UpdateRestorePlan( future> BackupForGKEConnection::UpdateRestorePlan( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -293,7 +293,7 @@ BackupForGKEConnection::DeleteRestorePlan( StatusOr BackupForGKEConnection::DeleteRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestorePlanRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -301,7 +301,7 @@ BackupForGKEConnection::DeleteRestorePlan( future> BackupForGKEConnection::DeleteRestorePlan( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -316,14 +316,14 @@ BackupForGKEConnection::CreateRestore( } StatusOr BackupForGKEConnection::CreateRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateRestoreRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -BackupForGKEConnection::CreateRestore(google::cloud::ExperimentalTag, +BackupForGKEConnection::CreateRestore(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -353,14 +353,14 @@ BackupForGKEConnection::UpdateRestore( } StatusOr BackupForGKEConnection::UpdateRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestoreRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -BackupForGKEConnection::UpdateRestore(google::cloud::ExperimentalTag, +BackupForGKEConnection::UpdateRestore(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -376,14 +376,14 @@ BackupForGKEConnection::DeleteRestore( } StatusOr BackupForGKEConnection::DeleteRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestoreRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -BackupForGKEConnection::DeleteRestore(google::cloud::ExperimentalTag, +BackupForGKEConnection::DeleteRestore(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/gkebackup/v1/backup_for_gke_connection.h b/google/cloud/gkebackup/v1/backup_for_gke_connection.h index 10f646c204752..517752a4ccb05 100644 --- a/google/cloud/gkebackup/v1/backup_for_gke_connection.h +++ b/google/cloud/gkebackup/v1/backup_for_gke_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/gkebackup/v1/backup_for_gke_connection_idempotency_policy.h" #include "google/cloud/gkebackup/v1/internal/backup_for_gke_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,11 +192,11 @@ class BackupForGKEConnection { google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request); virtual StatusOr CreateBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request); virtual future> - CreateBackupPlan(google::cloud::ExperimentalTag, + CreateBackupPlan(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListBackupPlans( @@ -210,11 +210,11 @@ class BackupForGKEConnection { google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request); virtual StatusOr UpdateBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request); virtual future> - UpdateBackupPlan(google::cloud::ExperimentalTag, + UpdateBackupPlan(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -222,23 +222,22 @@ class BackupForGKEConnection { google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request); virtual StatusOr DeleteBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request); virtual future> - DeleteBackupPlan(google::cloud::ExperimentalTag, + DeleteBackupPlan(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CreateBackup( google::cloud::gkebackup::v1::CreateBackupRequest const& request); virtual StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupRequest const& request); virtual future> CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListBackups( google::cloud::gkebackup::v1::ListBackupsRequest request); @@ -250,23 +249,22 @@ class BackupForGKEConnection { google::cloud::gkebackup::v1::UpdateBackupRequest const& request); virtual StatusOr UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupRequest const& request); virtual future> UpdateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteBackup( google::cloud::gkebackup::v1::DeleteBackupRequest const& request); virtual StatusOr DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupRequest const& request); virtual future> - DeleteBackup(google::cloud::ExperimentalTag, + DeleteBackup(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -281,11 +279,11 @@ class BackupForGKEConnection { google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request); virtual StatusOr CreateRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request); virtual future> - CreateRestorePlan(google::cloud::ExperimentalTag, + CreateRestorePlan(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -300,11 +298,11 @@ class BackupForGKEConnection { google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request); virtual StatusOr UpdateRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request); virtual future> - UpdateRestorePlan(google::cloud::ExperimentalTag, + UpdateRestorePlan(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -312,23 +310,22 @@ class BackupForGKEConnection { google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request); virtual StatusOr DeleteRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request); virtual future> - DeleteRestorePlan(google::cloud::ExperimentalTag, + DeleteRestorePlan(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CreateRestore( google::cloud::gkebackup::v1::CreateRestoreRequest const& request); virtual StatusOr CreateRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateRestoreRequest const& request); virtual future> CreateRestore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListRestores( google::cloud::gkebackup::v1::ListRestoresRequest request); @@ -340,23 +337,22 @@ class BackupForGKEConnection { google::cloud::gkebackup::v1::UpdateRestoreRequest const& request); virtual StatusOr UpdateRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestoreRequest const& request); virtual future> UpdateRestore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteRestore( google::cloud::gkebackup::v1::DeleteRestoreRequest const& request); virtual StatusOr DeleteRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestoreRequest const& request); virtual future> - DeleteRestore(google::cloud::ExperimentalTag, + DeleteRestore(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange diff --git a/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.cc b/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.cc index 1fccc1542d145..e70a32f95641a 100644 --- a/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.cc +++ b/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.cc @@ -48,7 +48,7 @@ BackupForGKETracingConnection::CreateBackupPlan( google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::CreateBackupPlan"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateBackupPlan(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ BackupForGKETracingConnection::UpdateBackupPlan( google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::UpdateBackupPlan"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateBackupPlan(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -134,7 +134,7 @@ BackupForGKETracingConnection::DeleteBackupPlan( google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::DeleteBackupPlan"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteBackupPlan(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -167,7 +167,7 @@ BackupForGKETracingConnection::CreateBackup( google::cloud::gkebackup::v1::CreateBackupRequest const& request) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::CreateBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -220,7 +220,7 @@ BackupForGKETracingConnection::UpdateBackup( google::cloud::gkebackup::v1::UpdateBackupRequest const& request) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::UpdateBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -253,7 +253,7 @@ BackupForGKETracingConnection::DeleteBackup( google::cloud::gkebackup::v1::DeleteBackupRequest const& request) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::DeleteBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -307,7 +307,7 @@ BackupForGKETracingConnection::CreateRestorePlan( google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::CreateRestorePlan"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateRestorePlan(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -361,7 +361,7 @@ BackupForGKETracingConnection::UpdateRestorePlan( google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::UpdateRestorePlan"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateRestorePlan(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -394,7 +394,7 @@ BackupForGKETracingConnection::DeleteRestorePlan( google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::DeleteRestorePlan"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteRestorePlan(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -427,7 +427,7 @@ BackupForGKETracingConnection::CreateRestore( google::cloud::gkebackup::v1::CreateRestoreRequest const& request) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::CreateRestore"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateRestore(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -480,7 +480,7 @@ BackupForGKETracingConnection::UpdateRestore( google::cloud::gkebackup::v1::UpdateRestoreRequest const& request) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::UpdateRestore"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateRestore(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -513,7 +513,7 @@ BackupForGKETracingConnection::DeleteRestore( google::cloud::gkebackup::v1::DeleteRestoreRequest const& request) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::DeleteRestore"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteRestore(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/gkehub/v1/gke_hub_connection.cc b/google/cloud/gkehub/v1/gke_hub_connection.cc index 19a96df0074a9..222cb06822918 100644 --- a/google/cloud/gkehub/v1/gke_hub_connection.cc +++ b/google/cloud/gkehub/v1/gke_hub_connection.cc @@ -72,14 +72,14 @@ GkeHubConnection::CreateMembership( } StatusOr GkeHubConnection::CreateMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::CreateMembershipRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -GkeHubConnection::CreateMembership(google::cloud::ExperimentalTag, +GkeHubConnection::CreateMembership(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -95,14 +95,14 @@ GkeHubConnection::CreateFeature( } StatusOr GkeHubConnection::CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::CreateFeatureRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -GkeHubConnection::CreateFeature(google::cloud::ExperimentalTag, +GkeHubConnection::CreateFeature(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -118,14 +118,14 @@ GkeHubConnection::DeleteMembership( } StatusOr GkeHubConnection::DeleteMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::DeleteMembershipRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -GkeHubConnection::DeleteMembership(google::cloud::ExperimentalTag, +GkeHubConnection::DeleteMembership(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -141,14 +141,14 @@ GkeHubConnection::DeleteFeature( } StatusOr GkeHubConnection::DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::DeleteFeatureRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -GkeHubConnection::DeleteFeature(google::cloud::ExperimentalTag, +GkeHubConnection::DeleteFeature(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -164,14 +164,14 @@ GkeHubConnection::UpdateMembership( } StatusOr GkeHubConnection::UpdateMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::UpdateMembershipRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -GkeHubConnection::UpdateMembership(google::cloud::ExperimentalTag, +GkeHubConnection::UpdateMembership(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -187,14 +187,14 @@ GkeHubConnection::UpdateFeature( } StatusOr GkeHubConnection::UpdateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::UpdateFeatureRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -GkeHubConnection::UpdateFeature(google::cloud::ExperimentalTag, +GkeHubConnection::UpdateFeature(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/gkehub/v1/gke_hub_connection.h b/google/cloud/gkehub/v1/gke_hub_connection.h index 9ab55a98832a6..1bd8f27cc9402 100644 --- a/google/cloud/gkehub/v1/gke_hub_connection.h +++ b/google/cloud/gkehub/v1/gke_hub_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/gkehub/v1/gke_hub_connection_idempotency_policy.h" #include "google/cloud/gkehub/v1/internal/gke_hub_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -200,45 +200,44 @@ class GkeHubConnection { google::cloud::gkehub::v1::CreateMembershipRequest const& request); virtual StatusOr CreateMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::CreateMembershipRequest const& request); virtual future> - CreateMembership(google::cloud::ExperimentalTag, + CreateMembership(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CreateFeature( google::cloud::gkehub::v1::CreateFeatureRequest const& request); virtual StatusOr CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::CreateFeatureRequest const& request); virtual future> CreateFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteMembership( google::cloud::gkehub::v1::DeleteMembershipRequest const& request); virtual StatusOr DeleteMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::DeleteMembershipRequest const& request); virtual future> - DeleteMembership(google::cloud::ExperimentalTag, + DeleteMembership(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteFeature(google::cloud::gkehub::v1::DeleteFeatureRequest const& request); virtual StatusOr DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::DeleteFeatureRequest const& request); virtual future> - DeleteFeature(google::cloud::ExperimentalTag, + DeleteFeature(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -246,23 +245,22 @@ class GkeHubConnection { google::cloud::gkehub::v1::UpdateMembershipRequest const& request); virtual StatusOr UpdateMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::UpdateMembershipRequest const& request); virtual future> - UpdateMembership(google::cloud::ExperimentalTag, + UpdateMembership(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateFeature( google::cloud::gkehub::v1::UpdateFeatureRequest const& request); virtual StatusOr UpdateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::UpdateFeatureRequest const& request); virtual future> UpdateFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GenerateConnectManifest( diff --git a/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.cc b/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.cc index bfc486c514f9e..0554e94a53a62 100644 --- a/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.cc +++ b/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.cc @@ -85,7 +85,7 @@ GkeHubTracingConnection::CreateMembership( google::cloud::gkehub::v1::CreateMembershipRequest const& request) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::CreateMembership"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateMembership(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -115,7 +115,7 @@ StatusOr GkeHubTracingConnection::CreateFeature( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::gkehub::v1::CreateFeatureRequest const& request) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::CreateFeature"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateFeature(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -147,7 +147,7 @@ GkeHubTracingConnection::DeleteMembership( google::cloud::gkehub::v1::DeleteMembershipRequest const& request) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::DeleteMembership"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteMembership(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -177,7 +177,7 @@ StatusOr GkeHubTracingConnection::DeleteFeature( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::gkehub::v1::DeleteFeatureRequest const& request) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::DeleteFeature"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteFeature(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -209,7 +209,7 @@ GkeHubTracingConnection::UpdateMembership( google::cloud::gkehub::v1::UpdateMembershipRequest const& request) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::UpdateMembership"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateMembership(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -239,7 +239,7 @@ StatusOr GkeHubTracingConnection::UpdateFeature( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::gkehub::v1::UpdateFeatureRequest const& request) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::UpdateFeature"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateFeature(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/gkemulticloud/v1/attached_clusters_connection.cc b/google/cloud/gkemulticloud/v1/attached_clusters_connection.cc index 2e0b8bd444380..9057eb0572fd9 100644 --- a/google/cloud/gkemulticloud/v1/attached_clusters_connection.cc +++ b/google/cloud/gkemulticloud/v1/attached_clusters_connection.cc @@ -48,7 +48,7 @@ AttachedClustersConnection::CreateAttachedCluster( StatusOr AttachedClustersConnection::CreateAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ AttachedClustersConnection::CreateAttachedCluster( future> AttachedClustersConnection::CreateAttachedCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -72,7 +72,7 @@ AttachedClustersConnection::UpdateAttachedCluster( StatusOr AttachedClustersConnection::UpdateAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -80,7 +80,7 @@ AttachedClustersConnection::UpdateAttachedCluster( future> AttachedClustersConnection::UpdateAttachedCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -96,7 +96,7 @@ AttachedClustersConnection::ImportAttachedCluster( StatusOr AttachedClustersConnection::ImportAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -104,7 +104,7 @@ AttachedClustersConnection::ImportAttachedCluster( future> AttachedClustersConnection::ImportAttachedCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,7 +134,7 @@ AttachedClustersConnection::DeleteAttachedCluster( StatusOr AttachedClustersConnection::DeleteAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +142,7 @@ AttachedClustersConnection::DeleteAttachedCluster( future> AttachedClustersConnection::DeleteAttachedCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/gkemulticloud/v1/attached_clusters_connection.h b/google/cloud/gkemulticloud/v1/attached_clusters_connection.h index cee3e4b1a529f..ca6855c6fbd51 100644 --- a/google/cloud/gkemulticloud/v1/attached_clusters_connection.h +++ b/google/cloud/gkemulticloud/v1/attached_clusters_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/gkemulticloud/v1/attached_clusters_connection_idempotency_policy.h" #include "google/cloud/gkemulticloud/v1/internal/attached_clusters_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -195,12 +195,12 @@ class AttachedClustersConnection { request); virtual StatusOr CreateAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& request); virtual future> - CreateAttachedCluster(google::cloud::ExperimentalTag, + CreateAttachedCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -209,12 +209,12 @@ class AttachedClustersConnection { request); virtual StatusOr UpdateAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& request); virtual future> - UpdateAttachedCluster(google::cloud::ExperimentalTag, + UpdateAttachedCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -223,12 +223,12 @@ class AttachedClustersConnection { request); virtual StatusOr ImportAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& request); virtual future> - ImportAttachedCluster(google::cloud::ExperimentalTag, + ImportAttachedCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -246,12 +246,12 @@ class AttachedClustersConnection { request); virtual StatusOr DeleteAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& request); virtual future> - DeleteAttachedCluster(google::cloud::ExperimentalTag, + DeleteAttachedCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/gkemulticloud/v1/aws_clusters_connection.cc b/google/cloud/gkemulticloud/v1/aws_clusters_connection.cc index 6f8783c32ca00..1859cdee3ff29 100644 --- a/google/cloud/gkemulticloud/v1/aws_clusters_connection.cc +++ b/google/cloud/gkemulticloud/v1/aws_clusters_connection.cc @@ -48,14 +48,14 @@ AwsClustersConnection::CreateAwsCluster( StatusOr AwsClustersConnection::CreateAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AwsClustersConnection::CreateAwsCluster(google::cloud::ExperimentalTag, +AwsClustersConnection::CreateAwsCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -72,14 +72,14 @@ AwsClustersConnection::UpdateAwsCluster( StatusOr AwsClustersConnection::UpdateAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AwsClustersConnection::UpdateAwsCluster(google::cloud::ExperimentalTag, +AwsClustersConnection::UpdateAwsCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -110,14 +110,14 @@ AwsClustersConnection::DeleteAwsCluster( StatusOr AwsClustersConnection::DeleteAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AwsClustersConnection::DeleteAwsCluster(google::cloud::ExperimentalTag, +AwsClustersConnection::DeleteAwsCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -147,7 +147,7 @@ AwsClustersConnection::CreateAwsNodePool( StatusOr AwsClustersConnection::CreateAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -155,7 +155,7 @@ AwsClustersConnection::CreateAwsNodePool( future> AwsClustersConnection::CreateAwsNodePool( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -171,7 +171,7 @@ AwsClustersConnection::UpdateAwsNodePool( StatusOr AwsClustersConnection::UpdateAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -179,7 +179,7 @@ AwsClustersConnection::UpdateAwsNodePool( future> AwsClustersConnection::UpdateAwsNodePool( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -195,7 +195,7 @@ AwsClustersConnection::RollbackAwsNodePoolUpdate( StatusOr AwsClustersConnection::RollbackAwsNodePoolUpdate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -203,7 +203,7 @@ AwsClustersConnection::RollbackAwsNodePoolUpdate( future> AwsClustersConnection::RollbackAwsNodePoolUpdate( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -233,7 +233,7 @@ AwsClustersConnection::DeleteAwsNodePool( StatusOr AwsClustersConnection::DeleteAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -241,7 +241,7 @@ AwsClustersConnection::DeleteAwsNodePool( future> AwsClustersConnection::DeleteAwsNodePool( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/gkemulticloud/v1/aws_clusters_connection.h b/google/cloud/gkemulticloud/v1/aws_clusters_connection.h index 6281d2d1cf20c..e70b5a80e097d 100644 --- a/google/cloud/gkemulticloud/v1/aws_clusters_connection.h +++ b/google/cloud/gkemulticloud/v1/aws_clusters_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/gkemulticloud/v1/aws_clusters_connection_idempotency_policy.h" #include "google/cloud/gkemulticloud/v1/internal/aws_clusters_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,11 +192,11 @@ class AwsClustersConnection { google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request); virtual StatusOr CreateAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request); virtual future> - CreateAwsCluster(google::cloud::ExperimentalTag, + CreateAwsCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -204,11 +204,11 @@ class AwsClustersConnection { google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request); virtual StatusOr UpdateAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request); virtual future> - UpdateAwsCluster(google::cloud::ExperimentalTag, + UpdateAwsCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetAwsCluster( @@ -223,11 +223,11 @@ class AwsClustersConnection { google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request); virtual StatusOr DeleteAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request); virtual future> - DeleteAwsCluster(google::cloud::ExperimentalTag, + DeleteAwsCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< @@ -248,12 +248,12 @@ class AwsClustersConnection { request); virtual StatusOr CreateAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& request); virtual future> - CreateAwsNodePool(google::cloud::ExperimentalTag, + CreateAwsNodePool(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -262,12 +262,12 @@ class AwsClustersConnection { request); virtual StatusOr UpdateAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request); virtual future> - UpdateAwsNodePool(google::cloud::ExperimentalTag, + UpdateAwsNodePool(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -276,12 +276,12 @@ class AwsClustersConnection { request); virtual StatusOr RollbackAwsNodePoolUpdate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& request); virtual future> - RollbackAwsNodePoolUpdate(google::cloud::ExperimentalTag, + RollbackAwsNodePoolUpdate(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -298,12 +298,12 @@ class AwsClustersConnection { request); virtual StatusOr DeleteAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& request); virtual future> - DeleteAwsNodePool(google::cloud::ExperimentalTag, + DeleteAwsNodePool(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/gkemulticloud/v1/azure_clusters_connection.cc b/google/cloud/gkemulticloud/v1/azure_clusters_connection.cc index e320df59d53ec..a2ef295b21906 100644 --- a/google/cloud/gkemulticloud/v1/azure_clusters_connection.cc +++ b/google/cloud/gkemulticloud/v1/azure_clusters_connection.cc @@ -48,7 +48,7 @@ AzureClustersConnection::CreateAzureClient( StatusOr AzureClustersConnection::CreateAzureClient( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureClientRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ AzureClustersConnection::CreateAzureClient( future> AzureClustersConnection::CreateAzureClient( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ AzureClustersConnection::DeleteAzureClient( StatusOr AzureClustersConnection::DeleteAzureClient( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ AzureClustersConnection::DeleteAzureClient( future> AzureClustersConnection::DeleteAzureClient( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ AzureClustersConnection::CreateAzureCluster( StatusOr AzureClustersConnection::CreateAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ AzureClustersConnection::CreateAzureCluster( future> AzureClustersConnection::CreateAzureCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,7 +134,7 @@ AzureClustersConnection::UpdateAzureCluster( StatusOr AzureClustersConnection::UpdateAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +142,7 @@ AzureClustersConnection::UpdateAzureCluster( future> AzureClustersConnection::UpdateAzureCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -172,7 +172,7 @@ AzureClustersConnection::DeleteAzureCluster( StatusOr AzureClustersConnection::DeleteAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -180,7 +180,7 @@ AzureClustersConnection::DeleteAzureCluster( future> AzureClustersConnection::DeleteAzureCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -210,7 +210,7 @@ AzureClustersConnection::CreateAzureNodePool( StatusOr AzureClustersConnection::CreateAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -218,7 +218,7 @@ AzureClustersConnection::CreateAzureNodePool( future> AzureClustersConnection::CreateAzureNodePool( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -234,7 +234,7 @@ AzureClustersConnection::UpdateAzureNodePool( StatusOr AzureClustersConnection::UpdateAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -242,7 +242,7 @@ AzureClustersConnection::UpdateAzureNodePool( future> AzureClustersConnection::UpdateAzureNodePool( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -272,7 +272,7 @@ AzureClustersConnection::DeleteAzureNodePool( StatusOr AzureClustersConnection::DeleteAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -280,7 +280,7 @@ AzureClustersConnection::DeleteAzureNodePool( future> AzureClustersConnection::DeleteAzureNodePool( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/gkemulticloud/v1/azure_clusters_connection.h b/google/cloud/gkemulticloud/v1/azure_clusters_connection.h index f9eb7e1a3b660..4d6e070c23869 100644 --- a/google/cloud/gkemulticloud/v1/azure_clusters_connection.h +++ b/google/cloud/gkemulticloud/v1/azure_clusters_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/gkemulticloud/v1/azure_clusters_connection_idempotency_policy.h" #include "google/cloud/gkemulticloud/v1/internal/azure_clusters_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -194,12 +194,12 @@ class AzureClustersConnection { request); virtual StatusOr CreateAzureClient( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& request); virtual future> - CreateAzureClient(google::cloud::ExperimentalTag, + CreateAzureClient(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -216,12 +216,12 @@ class AzureClustersConnection { request); virtual StatusOr DeleteAzureClient( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& request); virtual future> - DeleteAzureClient(google::cloud::ExperimentalTag, + DeleteAzureClient(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -230,12 +230,12 @@ class AzureClustersConnection { request); virtual StatusOr CreateAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& request); virtual future> - CreateAzureCluster(google::cloud::ExperimentalTag, + CreateAzureCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -244,12 +244,12 @@ class AzureClustersConnection { request); virtual StatusOr UpdateAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& request); virtual future> - UpdateAzureCluster(google::cloud::ExperimentalTag, + UpdateAzureCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -266,12 +266,12 @@ class AzureClustersConnection { request); virtual StatusOr DeleteAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& request); virtual future> - DeleteAzureCluster(google::cloud::ExperimentalTag, + DeleteAzureCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< @@ -292,12 +292,12 @@ class AzureClustersConnection { request); virtual StatusOr CreateAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& request); virtual future> - CreateAzureNodePool(google::cloud::ExperimentalTag, + CreateAzureNodePool(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -306,12 +306,12 @@ class AzureClustersConnection { request); virtual StatusOr UpdateAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& request); virtual future> - UpdateAzureNodePool(google::cloud::ExperimentalTag, + UpdateAzureNodePool(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -328,12 +328,12 @@ class AzureClustersConnection { request); virtual StatusOr DeleteAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& request); virtual future> - DeleteAzureNodePool(google::cloud::ExperimentalTag, + DeleteAzureNodePool(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.cc b/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.cc index 4b4705086bf3d..ee1d9ff9bb7d9 100644 --- a/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.cc +++ b/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.cc @@ -51,7 +51,7 @@ AttachedClustersTracingConnection::CreateAttachedCluster( request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AttachedClustersConnection::CreateAttachedCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateAttachedCluster( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -87,7 +87,7 @@ AttachedClustersTracingConnection::UpdateAttachedCluster( request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AttachedClustersConnection::UpdateAttachedCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateAttachedCluster( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -123,7 +123,7 @@ AttachedClustersTracingConnection::ImportAttachedCluster( request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AttachedClustersConnection::ImportAttachedCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ImportAttachedCluster( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -181,7 +181,7 @@ AttachedClustersTracingConnection::DeleteAttachedCluster( request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AttachedClustersConnection::DeleteAttachedCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteAttachedCluster( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.cc b/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.cc index f216a1031c758..420b2629ce582 100644 --- a/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.cc +++ b/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.cc @@ -48,7 +48,7 @@ AwsClustersTracingConnection::CreateAwsCluster( google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::CreateAwsCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateAwsCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -81,7 +81,7 @@ AwsClustersTracingConnection::UpdateAwsCluster( google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::UpdateAwsCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateAwsCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ AwsClustersTracingConnection::DeleteAwsCluster( google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::DeleteAwsCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAwsCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -189,7 +189,7 @@ AwsClustersTracingConnection::CreateAwsNodePool( google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::CreateAwsNodePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateAwsNodePool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -222,7 +222,7 @@ AwsClustersTracingConnection::UpdateAwsNodePool( google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::UpdateAwsNodePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateAwsNodePool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -258,7 +258,7 @@ AwsClustersTracingConnection::RollbackAwsNodePoolUpdate( request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::RollbackAwsNodePoolUpdate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RollbackAwsNodePoolUpdate( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -312,7 +312,7 @@ AwsClustersTracingConnection::DeleteAwsNodePool( google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::DeleteAwsNodePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAwsNodePool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.cc b/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.cc index 65cb955fb5819..75de9d98bdd1d 100644 --- a/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.cc +++ b/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.cc @@ -48,7 +48,7 @@ AzureClustersTracingConnection::CreateAzureClient( google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::CreateAzureClient"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateAzureClient(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -102,7 +102,7 @@ AzureClustersTracingConnection::DeleteAzureClient( google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::DeleteAzureClient"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAzureClient(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -138,7 +138,7 @@ AzureClustersTracingConnection::CreateAzureCluster( request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::CreateAzureCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateAzureCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -174,7 +174,7 @@ AzureClustersTracingConnection::UpdateAzureCluster( request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::UpdateAzureCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateAzureCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -231,7 +231,7 @@ AzureClustersTracingConnection::DeleteAzureCluster( request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::DeleteAzureCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAzureCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -290,7 +290,7 @@ AzureClustersTracingConnection::CreateAzureNodePool( request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::CreateAzureNodePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateAzureNodePool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -326,7 +326,7 @@ AzureClustersTracingConnection::UpdateAzureNodePool( request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::UpdateAzureNodePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateAzureNodePool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -383,7 +383,7 @@ AzureClustersTracingConnection::DeleteAzureNodePool( request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::DeleteAzureNodePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAzureNodePool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/iam/admin/v1/iam_connection.h b/google/cloud/iam/admin/v1/iam_connection.h index 016a4cd67fedc..13faf388cf741 100644 --- a/google/cloud/iam/admin/v1/iam_connection.h +++ b/google/cloud/iam/admin/v1/iam_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/iam/admin/v1/iam_connection_idempotency_policy.h" #include "google/cloud/iam/admin/v1/internal/iam_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/iam/credentials/v1/iam_credentials_connection.h b/google/cloud/iam/credentials/v1/iam_credentials_connection.h index fe90da521056a..7b69d8362e644 100644 --- a/google/cloud/iam/credentials/v1/iam_credentials_connection.h +++ b/google/cloud/iam/credentials/v1/iam_credentials_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/iam/credentials/v1/iam_credentials_connection_idempotency_policy.h" #include "google/cloud/iam/credentials/v1/internal/iam_credentials_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/iam/v1/iam_policy_connection.h b/google/cloud/iam/v1/iam_policy_connection.h index ba500fbe55a64..487d7596cbed3 100644 --- a/google/cloud/iam/v1/iam_policy_connection.h +++ b/google/cloud/iam/v1/iam_policy_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/iam/v1/iam_policy_connection_idempotency_policy.h" #include "google/cloud/iam/v1/internal/iam_policy_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/iam/v2/internal/policies_tracing_connection.cc b/google/cloud/iam/v2/internal/policies_tracing_connection.cc index 9f382cb3641ae..e8c2148751fec 100644 --- a/google/cloud/iam/v2/internal/policies_tracing_connection.cc +++ b/google/cloud/iam/v2/internal/policies_tracing_connection.cc @@ -62,7 +62,7 @@ PoliciesTracingConnection::CreatePolicy( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::iam::v2::CreatePolicyRequest const& request) { auto span = internal::MakeSpan("iam_v2::PoliciesConnection::CreatePolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreatePolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -92,7 +92,7 @@ PoliciesTracingConnection::UpdatePolicy( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::iam::v2::UpdatePolicyRequest const& request) { auto span = internal::MakeSpan("iam_v2::PoliciesConnection::UpdatePolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdatePolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -122,7 +122,7 @@ PoliciesTracingConnection::DeletePolicy( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::iam::v2::DeletePolicyRequest const& request) { auto span = internal::MakeSpan("iam_v2::PoliciesConnection::DeletePolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeletePolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/iam/v2/policies_connection.cc b/google/cloud/iam/v2/policies_connection.cc index 1545cb509b131..c01dad009dbb3 100644 --- a/google/cloud/iam/v2/policies_connection.cc +++ b/google/cloud/iam/v2/policies_connection.cc @@ -57,14 +57,13 @@ future> PoliciesConnection::CreatePolicy( } StatusOr PoliciesConnection::CreatePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, - google::iam::v2::CreatePolicyRequest const&) { + ExperimentalTag, NoAwaitTag, google::iam::v2::CreatePolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> PoliciesConnection::CreatePolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } @@ -76,14 +75,13 @@ future> PoliciesConnection::UpdatePolicy( } StatusOr PoliciesConnection::UpdatePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, - google::iam::v2::UpdatePolicyRequest const&) { + ExperimentalTag, NoAwaitTag, google::iam::v2::UpdatePolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> PoliciesConnection::UpdatePolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } @@ -95,14 +93,13 @@ future> PoliciesConnection::DeletePolicy( } StatusOr PoliciesConnection::DeletePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, - google::iam::v2::DeletePolicyRequest const&) { + ExperimentalTag, NoAwaitTag, google::iam::v2::DeletePolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> PoliciesConnection::DeletePolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } diff --git a/google/cloud/iam/v2/policies_connection.h b/google/cloud/iam/v2/policies_connection.h index e370ad83b1fab..c8f7ffc90dd94 100644 --- a/google/cloud/iam/v2/policies_connection.h +++ b/google/cloud/iam/v2/policies_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/iam/v2/internal/policies_retry_traits.h" #include "google/cloud/iam/v2/policies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -194,34 +194,31 @@ class PoliciesConnection { google::iam::v2::CreatePolicyRequest const& request); virtual StatusOr CreatePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::iam::v2::CreatePolicyRequest const& request); virtual future> CreatePolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdatePolicy( google::iam::v2::UpdatePolicyRequest const& request); virtual StatusOr UpdatePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::iam::v2::UpdatePolicyRequest const& request); virtual future> UpdatePolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeletePolicy( google::iam::v2::DeletePolicyRequest const& request); virtual StatusOr DeletePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::iam::v2::DeletePolicyRequest const& request); virtual future> DeletePolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/iap/v1/identity_aware_proxy_admin_connection.h b/google/cloud/iap/v1/identity_aware_proxy_admin_connection.h index a81ddae87377d..fd798d4a8ceca 100644 --- a/google/cloud/iap/v1/identity_aware_proxy_admin_connection.h +++ b/google/cloud/iap/v1/identity_aware_proxy_admin_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/iap/v1/identity_aware_proxy_admin_connection_idempotency_policy.h" #include "google/cloud/iap/v1/internal/identity_aware_proxy_admin_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/iap/v1/identity_aware_proxy_o_auth_connection.h b/google/cloud/iap/v1/identity_aware_proxy_o_auth_connection.h index a717715a264f3..7edb1e8b1e11d 100644 --- a/google/cloud/iap/v1/identity_aware_proxy_o_auth_connection.h +++ b/google/cloud/iap/v1/identity_aware_proxy_o_auth_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/iap/v1/identity_aware_proxy_o_auth_connection_idempotency_policy.h" #include "google/cloud/iap/v1/internal/identity_aware_proxy_o_auth_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/ids/v1/ids_connection.cc b/google/cloud/ids/v1/ids_connection.cc index eb866dc03ada0..020b3bb75af6c 100644 --- a/google/cloud/ids/v1/ids_connection.cc +++ b/google/cloud/ids/v1/ids_connection.cc @@ -59,14 +59,14 @@ IDSConnection::CreateEndpoint( } StatusOr IDSConnection::CreateEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::ids::v1::CreateEndpointRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -IDSConnection::CreateEndpoint(google::cloud::ExperimentalTag, +IDSConnection::CreateEndpoint(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -82,14 +82,14 @@ IDSConnection::DeleteEndpoint( } StatusOr IDSConnection::DeleteEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::ids::v1::DeleteEndpointRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -IDSConnection::DeleteEndpoint(google::cloud::ExperimentalTag, +IDSConnection::DeleteEndpoint(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/ids/v1/ids_connection.h b/google/cloud/ids/v1/ids_connection.h index ec73e8e234a1d..373e323c784fe 100644 --- a/google/cloud/ids/v1/ids_connection.h +++ b/google/cloud/ids/v1/ids_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/ids/v1/ids_connection_idempotency_policy.h" #include "google/cloud/ids/v1/internal/ids_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,22 +193,21 @@ class IDSConnection { google::cloud::ids::v1::CreateEndpointRequest const& request); virtual StatusOr CreateEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::ids::v1::CreateEndpointRequest const& request); virtual future> CreateEndpoint( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteEndpoint(google::cloud::ids::v1::DeleteEndpointRequest const& request); virtual StatusOr DeleteEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::ids::v1::DeleteEndpointRequest const& request); virtual future> - DeleteEndpoint(google::cloud::ExperimentalTag, + DeleteEndpoint(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/ids/v1/internal/ids_tracing_connection.cc b/google/cloud/ids/v1/internal/ids_tracing_connection.cc index 4445fc23df679..17d9f60a13275 100644 --- a/google/cloud/ids/v1/internal/ids_tracing_connection.cc +++ b/google/cloud/ids/v1/internal/ids_tracing_connection.cc @@ -62,7 +62,7 @@ StatusOr IDSTracingConnection::CreateEndpoint( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::ids::v1::CreateEndpointRequest const& request) { auto span = internal::MakeSpan("ids_v1::IDSConnection::CreateEndpoint"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateEndpoint(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -91,7 +91,7 @@ StatusOr IDSTracingConnection::DeleteEndpoint( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::ids::v1::DeleteEndpointRequest const& request) { auto span = internal::MakeSpan("ids_v1::IDSConnection::DeleteEndpoint"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteEndpoint(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/kms/inventory/v1/key_dashboard_connection.h b/google/cloud/kms/inventory/v1/key_dashboard_connection.h index 7bbe136ec1a04..00302cc2f724b 100644 --- a/google/cloud/kms/inventory/v1/key_dashboard_connection.h +++ b/google/cloud/kms/inventory/v1/key_dashboard_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/kms/inventory/v1/internal/key_dashboard_retry_traits.h" #include "google/cloud/kms/inventory/v1/key_dashboard_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/kms/inventory/v1/key_tracking_connection.h b/google/cloud/kms/inventory/v1/key_tracking_connection.h index f2602cc6eac5e..b0eb4692c2b35 100644 --- a/google/cloud/kms/inventory/v1/key_tracking_connection.h +++ b/google/cloud/kms/inventory/v1/key_tracking_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/kms/inventory/v1/internal/key_tracking_retry_traits.h" #include "google/cloud/kms/inventory/v1/key_tracking_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/kms/v1/autokey_admin_connection.h b/google/cloud/kms/v1/autokey_admin_connection.h index 7d21d0b717e59..5b8ae7b613d3e 100644 --- a/google/cloud/kms/v1/autokey_admin_connection.h +++ b/google/cloud/kms/v1/autokey_admin_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/kms/v1/autokey_admin_connection_idempotency_policy.h" #include "google/cloud/kms/v1/internal/autokey_admin_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/kms/v1/autokey_connection.cc b/google/cloud/kms/v1/autokey_connection.cc index e76bf8505cb24..7d1f4f3cebe23 100644 --- a/google/cloud/kms/v1/autokey_connection.cc +++ b/google/cloud/kms/v1/autokey_connection.cc @@ -46,14 +46,14 @@ AutokeyConnection::CreateKeyHandle( } StatusOr AutokeyConnection::CreateKeyHandle( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::kms::v1::CreateKeyHandleRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -AutokeyConnection::CreateKeyHandle(google::cloud::ExperimentalTag, +AutokeyConnection::CreateKeyHandle(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/kms/v1/autokey_connection.h b/google/cloud/kms/v1/autokey_connection.h index f66dfb43820d2..b21347955b31a 100644 --- a/google/cloud/kms/v1/autokey_connection.h +++ b/google/cloud/kms/v1/autokey_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/kms/v1/autokey_connection_idempotency_policy.h" #include "google/cloud/kms/v1/internal/autokey_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -187,12 +187,11 @@ class AutokeyConnection { google::cloud::kms::v1::CreateKeyHandleRequest const& request); virtual StatusOr CreateKeyHandle( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::kms::v1::CreateKeyHandleRequest const& request); virtual future> CreateKeyHandle( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetKeyHandle( google::cloud::kms::v1::GetKeyHandleRequest const& request); diff --git a/google/cloud/kms/v1/ekm_connection.h b/google/cloud/kms/v1/ekm_connection.h index 97b6b14ab136d..de3fcd24e714e 100644 --- a/google/cloud/kms/v1/ekm_connection.h +++ b/google/cloud/kms/v1/ekm_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/kms/v1/ekm_connection_idempotency_policy.h" #include "google/cloud/kms/v1/internal/ekm_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/kms/v1/internal/autokey_tracing_connection.cc b/google/cloud/kms/v1/internal/autokey_tracing_connection.cc index d9d98edf80ebe..0b4b0fd2d8cc5 100644 --- a/google/cloud/kms/v1/internal/autokey_tracing_connection.cc +++ b/google/cloud/kms/v1/internal/autokey_tracing_connection.cc @@ -45,7 +45,7 @@ AutokeyTracingConnection::CreateKeyHandle( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::kms::v1::CreateKeyHandleRequest const& request) { auto span = internal::MakeSpan("kms_v1::AutokeyConnection::CreateKeyHandle"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateKeyHandle(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/kms/v1/key_management_connection.h b/google/cloud/kms/v1/key_management_connection.h index 40c4e105fff3b..0a85f94607f58 100644 --- a/google/cloud/kms/v1/key_management_connection.h +++ b/google/cloud/kms/v1/key_management_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/kms/v1/internal/key_management_retry_traits.h" #include "google/cloud/kms/v1/key_management_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/language/v1/language_connection.h b/google/cloud/language/v1/language_connection.h index ee1a017a822ed..ff74f92ef67c0 100644 --- a/google/cloud/language/v1/language_connection.h +++ b/google/cloud/language/v1/language_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/language/v1/internal/language_retry_traits.h" #include "google/cloud/language/v1/language_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/language/v2/language_connection.h b/google/cloud/language/v2/language_connection.h index 0cd66c4b0c624..4f9d8658980a5 100644 --- a/google/cloud/language/v2/language_connection.h +++ b/google/cloud/language/v2/language_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/language/v2/internal/language_retry_traits.h" #include "google/cloud/language/v2/language_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/logging/v2/config_service_v2_connection.cc b/google/cloud/logging/v2/config_service_v2_connection.cc index 25194b0494a98..5312494a55c04 100644 --- a/google/cloud/logging/v2/config_service_v2_connection.cc +++ b/google/cloud/logging/v2/config_service_v2_connection.cc @@ -61,7 +61,7 @@ ConfigServiceV2Connection::CreateBucketAsync( StatusOr ConfigServiceV2Connection::CreateBucketAsync( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CreateBucketRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -69,7 +69,7 @@ ConfigServiceV2Connection::CreateBucketAsync( future> ConfigServiceV2Connection::CreateBucketAsync( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -85,7 +85,7 @@ ConfigServiceV2Connection::UpdateBucketAsync( StatusOr ConfigServiceV2Connection::UpdateBucketAsync( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::UpdateBucketRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -93,7 +93,7 @@ ConfigServiceV2Connection::UpdateBucketAsync( future> ConfigServiceV2Connection::UpdateBucketAsync( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -183,14 +183,14 @@ ConfigServiceV2Connection::CreateLink( } StatusOr ConfigServiceV2Connection::CreateLink( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CreateLinkRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ConfigServiceV2Connection::CreateLink(google::cloud::ExperimentalTag, +ConfigServiceV2Connection::CreateLink(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -205,14 +205,14 @@ ConfigServiceV2Connection::DeleteLink( } StatusOr ConfigServiceV2Connection::DeleteLink( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::DeleteLinkRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ConfigServiceV2Connection::DeleteLink(google::cloud::ExperimentalTag, +ConfigServiceV2Connection::DeleteLink(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -295,7 +295,7 @@ ConfigServiceV2Connection::CopyLogEntries( StatusOr ConfigServiceV2Connection::CopyLogEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CopyLogEntriesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -303,7 +303,7 @@ ConfigServiceV2Connection::CopyLogEntries( future> ConfigServiceV2Connection::CopyLogEntries( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/logging/v2/config_service_v2_connection.h b/google/cloud/logging/v2/config_service_v2_connection.h index 3cc7e18e9378d..f78e83511321c 100644 --- a/google/cloud/logging/v2/config_service_v2_connection.h +++ b/google/cloud/logging/v2/config_service_v2_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/logging/v2/config_service_v2_connection_idempotency_policy.h" #include "google/cloud/logging/v2/internal/config_service_v2_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -198,23 +198,21 @@ class ConfigServiceV2Connection { google::logging::v2::CreateBucketRequest const& request); virtual StatusOr CreateBucketAsync( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CreateBucketRequest const& request); virtual future> CreateBucketAsync( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateBucketAsync( google::logging::v2::UpdateBucketRequest const& request); virtual StatusOr UpdateBucketAsync( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::UpdateBucketRequest const& request); virtual future> UpdateBucketAsync( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr CreateBucket( google::logging::v2::CreateBucketRequest const& request); @@ -262,23 +260,21 @@ class ConfigServiceV2Connection { google::logging::v2::CreateLinkRequest const& request); virtual StatusOr CreateLink( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CreateLinkRequest const& request); virtual future> CreateLink( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteLink( google::logging::v2::DeleteLinkRequest const& request); virtual StatusOr DeleteLink( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::DeleteLinkRequest const& request); virtual future> DeleteLink( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListLinks( google::logging::v2::ListLinksRequest request); @@ -317,11 +313,11 @@ class ConfigServiceV2Connection { CopyLogEntries(google::logging::v2::CopyLogEntriesRequest const& request); virtual StatusOr CopyLogEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CopyLogEntriesRequest const& request); virtual future> - CopyLogEntries(google::cloud::ExperimentalTag, + CopyLogEntries(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.cc b/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.cc index 2cffb08e39af3..94c193c0ca3f0 100644 --- a/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.cc +++ b/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.cc @@ -68,7 +68,7 @@ ConfigServiceV2TracingConnection::CreateBucketAsync( google::logging::v2::CreateBucketRequest const& request) { auto span = internal::MakeSpan( "logging_v2::ConfigServiceV2Connection::CreateBucketAsync"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateBucketAsync(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ ConfigServiceV2TracingConnection::UpdateBucketAsync( google::logging::v2::UpdateBucketRequest const& request) { auto span = internal::MakeSpan( "logging_v2::ConfigServiceV2Connection::UpdateBucketAsync"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateBucketAsync(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -260,7 +260,7 @@ ConfigServiceV2TracingConnection::CreateLink( google::logging::v2::CreateLinkRequest const& request) { auto span = internal::MakeSpan("logging_v2::ConfigServiceV2Connection::CreateLink"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateLink(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -293,7 +293,7 @@ ConfigServiceV2TracingConnection::DeleteLink( google::logging::v2::DeleteLinkRequest const& request) { auto span = internal::MakeSpan("logging_v2::ConfigServiceV2Connection::DeleteLink"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteLink(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -427,7 +427,7 @@ ConfigServiceV2TracingConnection::CopyLogEntries( google::logging::v2::CopyLogEntriesRequest const& request) { auto span = internal::MakeSpan( "logging_v2::ConfigServiceV2Connection::CopyLogEntries"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CopyLogEntries(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/logging/v2/logging_service_v2_connection.h b/google/cloud/logging/v2/logging_service_v2_connection.h index 5eba660850549..0d02f4f67942c 100644 --- a/google/cloud/logging/v2/logging_service_v2_connection.h +++ b/google/cloud/logging/v2/logging_service_v2_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/logging/v2/internal/logging_service_v2_retry_traits.h" #include "google/cloud/logging/v2/logging_service_v2_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" diff --git a/google/cloud/logging/v2/metrics_service_v2_connection.h b/google/cloud/logging/v2/metrics_service_v2_connection.h index b3a5dc37c37fc..5253b59a4ae8a 100644 --- a/google/cloud/logging/v2/metrics_service_v2_connection.h +++ b/google/cloud/logging/v2/metrics_service_v2_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/logging/v2/internal/metrics_service_v2_retry_traits.h" #include "google/cloud/logging/v2/metrics_service_v2_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.cc b/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.cc index 5dc3a289bb4be..b321d7f910035 100644 --- a/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.cc +++ b/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.cc @@ -56,7 +56,7 @@ ManagedIdentitiesServiceTracingConnection::CreateMicrosoftAdDomain( auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::" "CreateMicrosoftAdDomain"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateMicrosoftAdDomain( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -122,7 +122,7 @@ ManagedIdentitiesServiceTracingConnection::UpdateDomain( google::cloud::managedidentities::v1::UpdateDomainRequest const& request) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::UpdateDomain"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateDomain(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -155,7 +155,7 @@ ManagedIdentitiesServiceTracingConnection::DeleteDomain( google::cloud::managedidentities::v1::DeleteDomainRequest const& request) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::DeleteDomain"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteDomain(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -188,7 +188,7 @@ ManagedIdentitiesServiceTracingConnection::AttachTrust( google::cloud::managedidentities::v1::AttachTrustRequest const& request) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::AttachTrust"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AttachTrust(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -225,7 +225,7 @@ ManagedIdentitiesServiceTracingConnection::ReconfigureTrust( auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::" "ReconfigureTrust"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ReconfigureTrust(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -259,7 +259,7 @@ ManagedIdentitiesServiceTracingConnection::DetachTrust( google::cloud::managedidentities::v1::DetachTrustRequest const& request) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::DetachTrust"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DetachTrust(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -294,7 +294,7 @@ ManagedIdentitiesServiceTracingConnection::ValidateTrust( auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::" "ValidateTrust"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ValidateTrust(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/managedidentities/v1/managed_identities_connection.cc b/google/cloud/managedidentities/v1/managed_identities_connection.cc index b1b3462e7a2f1..308a1746b84bd 100644 --- a/google/cloud/managedidentities/v1/managed_identities_connection.cc +++ b/google/cloud/managedidentities/v1/managed_identities_connection.cc @@ -50,7 +50,7 @@ ManagedIdentitiesServiceConnection::CreateMicrosoftAdDomain( StatusOr ManagedIdentitiesServiceConnection::CreateMicrosoftAdDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1:: CreateMicrosoftAdDomainRequest const&) { return StatusOr( @@ -59,7 +59,7 @@ ManagedIdentitiesServiceConnection::CreateMicrosoftAdDomain( future> ManagedIdentitiesServiceConnection::CreateMicrosoftAdDomain( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -95,7 +95,7 @@ ManagedIdentitiesServiceConnection::UpdateDomain( StatusOr ManagedIdentitiesServiceConnection::UpdateDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::UpdateDomainRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -103,7 +103,7 @@ ManagedIdentitiesServiceConnection::UpdateDomain( future> ManagedIdentitiesServiceConnection::UpdateDomain( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -119,7 +119,7 @@ ManagedIdentitiesServiceConnection::DeleteDomain( StatusOr ManagedIdentitiesServiceConnection::DeleteDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::DeleteDomainRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -127,7 +127,7 @@ ManagedIdentitiesServiceConnection::DeleteDomain( future> ManagedIdentitiesServiceConnection::DeleteDomain( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -143,7 +143,7 @@ ManagedIdentitiesServiceConnection::AttachTrust( StatusOr ManagedIdentitiesServiceConnection::AttachTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::AttachTrustRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -151,7 +151,7 @@ ManagedIdentitiesServiceConnection::AttachTrust( future> ManagedIdentitiesServiceConnection::AttachTrust( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -167,7 +167,7 @@ ManagedIdentitiesServiceConnection::ReconfigureTrust( StatusOr ManagedIdentitiesServiceConnection::ReconfigureTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::ReconfigureTrustRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -175,7 +175,7 @@ ManagedIdentitiesServiceConnection::ReconfigureTrust( future> ManagedIdentitiesServiceConnection::ReconfigureTrust( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -191,7 +191,7 @@ ManagedIdentitiesServiceConnection::DetachTrust( StatusOr ManagedIdentitiesServiceConnection::DetachTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::DetachTrustRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -199,7 +199,7 @@ ManagedIdentitiesServiceConnection::DetachTrust( future> ManagedIdentitiesServiceConnection::DetachTrust( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -215,7 +215,7 @@ ManagedIdentitiesServiceConnection::ValidateTrust( StatusOr ManagedIdentitiesServiceConnection::ValidateTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::ValidateTrustRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -223,7 +223,7 @@ ManagedIdentitiesServiceConnection::ValidateTrust( future> ManagedIdentitiesServiceConnection::ValidateTrust( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/managedidentities/v1/managed_identities_connection.h b/google/cloud/managedidentities/v1/managed_identities_connection.h index cf2e7f1cab219..6be8a813850b6 100644 --- a/google/cloud/managedidentities/v1/managed_identities_connection.h +++ b/google/cloud/managedidentities/v1/managed_identities_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/managedidentities/v1/internal/managed_identities_retry_traits.h" #include "google/cloud/managedidentities/v1/managed_identities_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -206,12 +206,12 @@ class ManagedIdentitiesServiceConnection { CreateMicrosoftAdDomainRequest const& request); virtual StatusOr CreateMicrosoftAdDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1:: CreateMicrosoftAdDomainRequest const& request); virtual future> - CreateMicrosoftAdDomain(google::cloud::ExperimentalTag, + CreateMicrosoftAdDomain(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< @@ -231,11 +231,11 @@ class ManagedIdentitiesServiceConnection { google::cloud::managedidentities::v1::UpdateDomainRequest const& request); virtual StatusOr UpdateDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::UpdateDomainRequest const& request); virtual future> - UpdateDomain(google::cloud::ExperimentalTag, + UpdateDomain(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -243,11 +243,11 @@ class ManagedIdentitiesServiceConnection { google::cloud::managedidentities::v1::DeleteDomainRequest const& request); virtual StatusOr DeleteDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::DeleteDomainRequest const& request); virtual future> - DeleteDomain(google::cloud::ExperimentalTag, + DeleteDomain(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -255,12 +255,11 @@ class ManagedIdentitiesServiceConnection { google::cloud::managedidentities::v1::AttachTrustRequest const& request); virtual StatusOr AttachTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::AttachTrustRequest const& request); virtual future> - AttachTrust(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + AttachTrust(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ReconfigureTrust( @@ -268,12 +267,12 @@ class ManagedIdentitiesServiceConnection { request); virtual StatusOr ReconfigureTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::ReconfigureTrustRequest const& request); virtual future> - ReconfigureTrust(google::cloud::ExperimentalTag, + ReconfigureTrust(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -281,12 +280,11 @@ class ManagedIdentitiesServiceConnection { google::cloud::managedidentities::v1::DetachTrustRequest const& request); virtual StatusOr DetachTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::DetachTrustRequest const& request); virtual future> - DetachTrust(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DetachTrust(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ValidateTrust( @@ -294,12 +292,12 @@ class ManagedIdentitiesServiceConnection { request); virtual StatusOr ValidateTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::ValidateTrustRequest const& request); virtual future> - ValidateTrust(google::cloud::ExperimentalTag, + ValidateTrust(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.cc b/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.cc index 56abb66611064..a92f3c12a4f1f 100644 --- a/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.cc +++ b/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.cc @@ -68,7 +68,7 @@ ManagedKafkaTracingConnection::CreateCluster( google::cloud::managedkafka::v1::CreateClusterRequest const& request) { auto span = internal::MakeSpan( "managedkafka_v1::ManagedKafkaConnection::CreateCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ ManagedKafkaTracingConnection::UpdateCluster( google::cloud::managedkafka::v1::UpdateClusterRequest const& request) { auto span = internal::MakeSpan( "managedkafka_v1::ManagedKafkaConnection::UpdateCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -134,7 +134,7 @@ ManagedKafkaTracingConnection::DeleteCluster( google::cloud::managedkafka::v1::DeleteClusterRequest const& request) { auto span = internal::MakeSpan( "managedkafka_v1::ManagedKafkaConnection::DeleteCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/managedkafka/v1/managed_kafka_connection.cc b/google/cloud/managedkafka/v1/managed_kafka_connection.cc index 9f6b9139f1f85..8f8e1cd1cd1b2 100644 --- a/google/cloud/managedkafka/v1/managed_kafka_connection.cc +++ b/google/cloud/managedkafka/v1/managed_kafka_connection.cc @@ -61,14 +61,14 @@ ManagedKafkaConnection::CreateCluster( } StatusOr ManagedKafkaConnection::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::CreateClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ManagedKafkaConnection::CreateCluster(google::cloud::ExperimentalTag, +ManagedKafkaConnection::CreateCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -84,14 +84,14 @@ ManagedKafkaConnection::UpdateCluster( } StatusOr ManagedKafkaConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::UpdateClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ManagedKafkaConnection::UpdateCluster(google::cloud::ExperimentalTag, +ManagedKafkaConnection::UpdateCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -107,14 +107,14 @@ ManagedKafkaConnection::DeleteCluster( } StatusOr ManagedKafkaConnection::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::DeleteClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ManagedKafkaConnection::DeleteCluster(google::cloud::ExperimentalTag, +ManagedKafkaConnection::DeleteCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/managedkafka/v1/managed_kafka_connection.h b/google/cloud/managedkafka/v1/managed_kafka_connection.h index 7a1324392532d..1f8530b4ff404 100644 --- a/google/cloud/managedkafka/v1/managed_kafka_connection.h +++ b/google/cloud/managedkafka/v1/managed_kafka_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/managedkafka/v1/internal/managed_kafka_retry_traits.h" #include "google/cloud/managedkafka/v1/managed_kafka_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -198,11 +198,11 @@ class ManagedKafkaConnection { google::cloud::managedkafka::v1::CreateClusterRequest const& request); virtual StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::CreateClusterRequest const& request); virtual future> - CreateCluster(google::cloud::ExperimentalTag, + CreateCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -210,11 +210,11 @@ class ManagedKafkaConnection { google::cloud::managedkafka::v1::UpdateClusterRequest const& request); virtual StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::UpdateClusterRequest const& request); virtual future> - UpdateCluster(google::cloud::ExperimentalTag, + UpdateCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -222,11 +222,11 @@ class ManagedKafkaConnection { google::cloud::managedkafka::v1::DeleteClusterRequest const& request); virtual StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::DeleteClusterRequest const& request); virtual future> - DeleteCluster(google::cloud::ExperimentalTag, + DeleteCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListTopics( diff --git a/google/cloud/memcache/v1/cloud_memcache_connection.cc b/google/cloud/memcache/v1/cloud_memcache_connection.cc index 96b6abbab56e8..c749459646ba8 100644 --- a/google/cloud/memcache/v1/cloud_memcache_connection.cc +++ b/google/cloud/memcache/v1/cloud_memcache_connection.cc @@ -62,14 +62,14 @@ CloudMemcacheConnection::CreateInstance( StatusOr CloudMemcacheConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::CreateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudMemcacheConnection::CreateInstance(google::cloud::ExperimentalTag, +CloudMemcacheConnection::CreateInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -86,14 +86,14 @@ CloudMemcacheConnection::UpdateInstance( StatusOr CloudMemcacheConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::UpdateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudMemcacheConnection::UpdateInstance(google::cloud::ExperimentalTag, +CloudMemcacheConnection::UpdateInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -110,7 +110,7 @@ CloudMemcacheConnection::UpdateParameters( StatusOr CloudMemcacheConnection::UpdateParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::UpdateParametersRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ CloudMemcacheConnection::UpdateParameters( future> CloudMemcacheConnection::UpdateParameters( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,14 +134,14 @@ CloudMemcacheConnection::DeleteInstance( StatusOr CloudMemcacheConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::DeleteInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudMemcacheConnection::DeleteInstance(google::cloud::ExperimentalTag, +CloudMemcacheConnection::DeleteInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -158,7 +158,7 @@ CloudMemcacheConnection::ApplyParameters( StatusOr CloudMemcacheConnection::ApplyParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::ApplyParametersRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -166,7 +166,7 @@ CloudMemcacheConnection::ApplyParameters( future> CloudMemcacheConnection::ApplyParameters( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -182,7 +182,7 @@ CloudMemcacheConnection::RescheduleMaintenance( StatusOr CloudMemcacheConnection::RescheduleMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::RescheduleMaintenanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -190,7 +190,7 @@ CloudMemcacheConnection::RescheduleMaintenance( future> CloudMemcacheConnection::RescheduleMaintenance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/memcache/v1/cloud_memcache_connection.h b/google/cloud/memcache/v1/cloud_memcache_connection.h index 69bcafd47111f..403bed2782162 100644 --- a/google/cloud/memcache/v1/cloud_memcache_connection.h +++ b/google/cloud/memcache/v1/cloud_memcache_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/memcache/v1/cloud_memcache_connection_idempotency_policy.h" #include "google/cloud/memcache/v1/internal/cloud_memcache_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -198,11 +198,11 @@ class CloudMemcacheConnection { google::cloud::memcache::v1::CreateInstanceRequest const& request); virtual StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::CreateInstanceRequest const& request); virtual future> - CreateInstance(google::cloud::ExperimentalTag, + CreateInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -210,11 +210,11 @@ class CloudMemcacheConnection { google::cloud::memcache::v1::UpdateInstanceRequest const& request); virtual StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::UpdateInstanceRequest const& request); virtual future> - UpdateInstance(google::cloud::ExperimentalTag, + UpdateInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -222,11 +222,11 @@ class CloudMemcacheConnection { google::cloud::memcache::v1::UpdateParametersRequest const& request); virtual StatusOr UpdateParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::UpdateParametersRequest const& request); virtual future> - UpdateParameters(google::cloud::ExperimentalTag, + UpdateParameters(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -234,11 +234,11 @@ class CloudMemcacheConnection { google::cloud::memcache::v1::DeleteInstanceRequest const& request); virtual StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::DeleteInstanceRequest const& request); virtual future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -246,11 +246,11 @@ class CloudMemcacheConnection { google::cloud::memcache::v1::ApplyParametersRequest const& request); virtual StatusOr ApplyParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::ApplyParametersRequest const& request); virtual future> - ApplyParameters(google::cloud::ExperimentalTag, + ApplyParameters(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -258,11 +258,11 @@ class CloudMemcacheConnection { google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request); virtual StatusOr RescheduleMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request); virtual future> - RescheduleMaintenance(google::cloud::ExperimentalTag, + RescheduleMaintenance(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.cc b/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.cc index b6320c9c408e9..89bf823f2174d 100644 --- a/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.cc +++ b/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.cc @@ -68,7 +68,7 @@ CloudMemcacheTracingConnection::CreateInstance( google::cloud::memcache::v1::CreateInstanceRequest const& request) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::CreateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ CloudMemcacheTracingConnection::UpdateInstance( google::cloud::memcache::v1::UpdateInstanceRequest const& request) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::UpdateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -134,7 +134,7 @@ CloudMemcacheTracingConnection::UpdateParameters( google::cloud::memcache::v1::UpdateParametersRequest const& request) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::UpdateParameters"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateParameters(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -167,7 +167,7 @@ CloudMemcacheTracingConnection::DeleteInstance( google::cloud::memcache::v1::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::DeleteInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -200,7 +200,7 @@ CloudMemcacheTracingConnection::ApplyParameters( google::cloud::memcache::v1::ApplyParametersRequest const& request) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::ApplyParameters"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ApplyParameters(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -234,7 +234,7 @@ CloudMemcacheTracingConnection::RescheduleMaintenance( google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::RescheduleMaintenance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RescheduleMaintenance( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/metastore/v1/dataproc_metastore_connection.cc b/google/cloud/metastore/v1/dataproc_metastore_connection.cc index a7e57cf138b1c..9a38ffc211ba6 100644 --- a/google/cloud/metastore/v1/dataproc_metastore_connection.cc +++ b/google/cloud/metastore/v1/dataproc_metastore_connection.cc @@ -62,7 +62,7 @@ DataprocMetastoreConnection::CreateService( StatusOr DataprocMetastoreConnection::CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ DataprocMetastoreConnection::CreateService( future> DataprocMetastoreConnection::CreateService( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ DataprocMetastoreConnection::UpdateService( StatusOr DataprocMetastoreConnection::UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ DataprocMetastoreConnection::UpdateService( future> DataprocMetastoreConnection::UpdateService( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ DataprocMetastoreConnection::DeleteService( StatusOr DataprocMetastoreConnection::DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ DataprocMetastoreConnection::DeleteService( future> DataprocMetastoreConnection::DeleteService( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -148,7 +148,7 @@ DataprocMetastoreConnection::CreateMetadataImport( StatusOr DataprocMetastoreConnection::CreateMetadataImport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateMetadataImportRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -156,7 +156,7 @@ DataprocMetastoreConnection::CreateMetadataImport( future> DataprocMetastoreConnection::CreateMetadataImport( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -172,7 +172,7 @@ DataprocMetastoreConnection::UpdateMetadataImport( StatusOr DataprocMetastoreConnection::UpdateMetadataImport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateMetadataImportRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -180,7 +180,7 @@ DataprocMetastoreConnection::UpdateMetadataImport( future> DataprocMetastoreConnection::UpdateMetadataImport( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -196,7 +196,7 @@ DataprocMetastoreConnection::ExportMetadata( StatusOr DataprocMetastoreConnection::ExportMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::ExportMetadataRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -204,7 +204,7 @@ DataprocMetastoreConnection::ExportMetadata( future> DataprocMetastoreConnection::ExportMetadata( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -220,7 +220,7 @@ DataprocMetastoreConnection::RestoreService( StatusOr DataprocMetastoreConnection::RestoreService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::RestoreServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -228,7 +228,7 @@ DataprocMetastoreConnection::RestoreService( future> DataprocMetastoreConnection::RestoreService( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -258,7 +258,7 @@ DataprocMetastoreConnection::CreateBackup( StatusOr DataprocMetastoreConnection::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -266,7 +266,7 @@ DataprocMetastoreConnection::CreateBackup( future> DataprocMetastoreConnection::CreateBackup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -282,7 +282,7 @@ DataprocMetastoreConnection::DeleteBackup( StatusOr DataprocMetastoreConnection::DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -290,7 +290,7 @@ DataprocMetastoreConnection::DeleteBackup( future> DataprocMetastoreConnection::DeleteBackup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -306,7 +306,7 @@ DataprocMetastoreConnection::QueryMetadata( StatusOr DataprocMetastoreConnection::QueryMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::QueryMetadataRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -314,7 +314,7 @@ DataprocMetastoreConnection::QueryMetadata( future> DataprocMetastoreConnection::QueryMetadata( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -330,7 +330,7 @@ DataprocMetastoreConnection::MoveTableToDatabase( StatusOr DataprocMetastoreConnection::MoveTableToDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::MoveTableToDatabaseRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -338,7 +338,7 @@ DataprocMetastoreConnection::MoveTableToDatabase( future> DataprocMetastoreConnection::MoveTableToDatabase( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -355,7 +355,7 @@ DataprocMetastoreConnection::AlterMetadataResourceLocation( StatusOr DataprocMetastoreConnection::AlterMetadataResourceLocation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -364,7 +364,7 @@ DataprocMetastoreConnection::AlterMetadataResourceLocation( future> DataprocMetastoreConnection::AlterMetadataResourceLocation( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/metastore/v1/dataproc_metastore_connection.h b/google/cloud/metastore/v1/dataproc_metastore_connection.h index 57d6318c859b1..42bce20761196 100644 --- a/google/cloud/metastore/v1/dataproc_metastore_connection.h +++ b/google/cloud/metastore/v1/dataproc_metastore_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/metastore/v1/dataproc_metastore_connection_idempotency_policy.h" #include "google/cloud/metastore/v1/internal/dataproc_metastore_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -198,34 +198,32 @@ class DataprocMetastoreConnection { google::cloud::metastore::v1::CreateServiceRequest const& request); virtual StatusOr CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateServiceRequest const& request); virtual future> CreateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateService( google::cloud::metastore::v1::UpdateServiceRequest const& request); virtual StatusOr UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateServiceRequest const& request); virtual future> UpdateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteService( google::cloud::metastore::v1::DeleteServiceRequest const& request); virtual StatusOr DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteServiceRequest const& request); virtual future> - DeleteService(google::cloud::ExperimentalTag, + DeleteService(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -241,11 +239,11 @@ class DataprocMetastoreConnection { google::cloud::metastore::v1::CreateMetadataImportRequest const& request); virtual StatusOr CreateMetadataImport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateMetadataImportRequest const& request); virtual future> - CreateMetadataImport(google::cloud::ExperimentalTag, + CreateMetadataImport(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -253,11 +251,11 @@ class DataprocMetastoreConnection { google::cloud::metastore::v1::UpdateMetadataImportRequest const& request); virtual StatusOr UpdateMetadataImport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateMetadataImportRequest const& request); virtual future> - UpdateMetadataImport(google::cloud::ExperimentalTag, + UpdateMetadataImport(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -265,11 +263,11 @@ class DataprocMetastoreConnection { google::cloud::metastore::v1::ExportMetadataRequest const& request); virtual StatusOr ExportMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::ExportMetadataRequest const& request); virtual future> - ExportMetadata(google::cloud::ExperimentalTag, + ExportMetadata(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -277,11 +275,11 @@ class DataprocMetastoreConnection { google::cloud::metastore::v1::RestoreServiceRequest const& request); virtual StatusOr RestoreService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::RestoreServiceRequest const& request); virtual future> - RestoreService(google::cloud::ExperimentalTag, + RestoreService(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListBackups( @@ -294,23 +292,22 @@ class DataprocMetastoreConnection { google::cloud::metastore::v1::CreateBackupRequest const& request); virtual StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateBackupRequest const& request); virtual future> CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteBackup( google::cloud::metastore::v1::DeleteBackupRequest const& request); virtual StatusOr DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteBackupRequest const& request); virtual future> - DeleteBackup(google::cloud::ExperimentalTag, + DeleteBackup(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -318,11 +315,11 @@ class DataprocMetastoreConnection { google::cloud::metastore::v1::QueryMetadataRequest const& request); virtual StatusOr QueryMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::QueryMetadataRequest const& request); virtual future> - QueryMetadata(google::cloud::ExperimentalTag, + QueryMetadata(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -331,12 +328,12 @@ class DataprocMetastoreConnection { google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request); virtual StatusOr MoveTableToDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request); virtual future< StatusOr> - MoveTableToDatabase(google::cloud::ExperimentalTag, + MoveTableToDatabase(ExperimentalTag, google::longrunning::Operation const& operation); virtual future AlterMetadataResourceLocation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& request); virtual future> AlterMetadataResourceLocation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/metastore/v1/dataproc_metastore_federation_connection.cc b/google/cloud/metastore/v1/dataproc_metastore_federation_connection.cc index 72700339a48bb..16016f05e2168 100644 --- a/google/cloud/metastore/v1/dataproc_metastore_federation_connection.cc +++ b/google/cloud/metastore/v1/dataproc_metastore_federation_connection.cc @@ -63,7 +63,7 @@ DataprocMetastoreFederationConnection::CreateFederation( StatusOr DataprocMetastoreFederationConnection::CreateFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateFederationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -71,7 +71,7 @@ DataprocMetastoreFederationConnection::CreateFederation( future> DataprocMetastoreFederationConnection::CreateFederation( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -87,7 +87,7 @@ DataprocMetastoreFederationConnection::UpdateFederation( StatusOr DataprocMetastoreFederationConnection::UpdateFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateFederationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -95,7 +95,7 @@ DataprocMetastoreFederationConnection::UpdateFederation( future> DataprocMetastoreFederationConnection::UpdateFederation( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -111,7 +111,7 @@ DataprocMetastoreFederationConnection::DeleteFederation( StatusOr DataprocMetastoreFederationConnection::DeleteFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteFederationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -119,7 +119,7 @@ DataprocMetastoreFederationConnection::DeleteFederation( future> DataprocMetastoreFederationConnection::DeleteFederation( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/metastore/v1/dataproc_metastore_federation_connection.h b/google/cloud/metastore/v1/dataproc_metastore_federation_connection.h index 74603227a054d..dcabf154ca697 100644 --- a/google/cloud/metastore/v1/dataproc_metastore_federation_connection.h +++ b/google/cloud/metastore/v1/dataproc_metastore_federation_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/metastore/v1/dataproc_metastore_federation_connection_idempotency_policy.h" #include "google/cloud/metastore/v1/internal/dataproc_metastore_federation_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -215,11 +215,11 @@ class DataprocMetastoreFederationConnection { google::cloud::metastore::v1::CreateFederationRequest const& request); virtual StatusOr CreateFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateFederationRequest const& request); virtual future> - CreateFederation(google::cloud::ExperimentalTag, + CreateFederation(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -227,11 +227,11 @@ class DataprocMetastoreFederationConnection { google::cloud::metastore::v1::UpdateFederationRequest const& request); virtual StatusOr UpdateFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateFederationRequest const& request); virtual future> - UpdateFederation(google::cloud::ExperimentalTag, + UpdateFederation(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -239,11 +239,11 @@ class DataprocMetastoreFederationConnection { google::cloud::metastore::v1::DeleteFederationRequest const& request); virtual StatusOr DeleteFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteFederationRequest const& request); virtual future> - DeleteFederation(google::cloud::ExperimentalTag, + DeleteFederation(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.cc b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.cc index 3f284df1e159f..bca690890c95e 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.cc +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.cc @@ -70,7 +70,7 @@ DataprocMetastoreFederationTracingConnection::CreateFederation( google::cloud::metastore::v1::CreateFederationRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreFederationConnection::CreateFederation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateFederation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -103,7 +103,7 @@ DataprocMetastoreFederationTracingConnection::UpdateFederation( google::cloud::metastore::v1::UpdateFederationRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreFederationConnection::UpdateFederation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateFederation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -136,7 +136,7 @@ DataprocMetastoreFederationTracingConnection::DeleteFederation( google::cloud::metastore::v1::DeleteFederationRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreFederationConnection::DeleteFederation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteFederation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.cc b/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.cc index 86af388894074..8100e004cee8e 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.cc +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.cc @@ -68,7 +68,7 @@ DataprocMetastoreTracingConnection::CreateService( google::cloud::metastore::v1::CreateServiceRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::CreateService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ DataprocMetastoreTracingConnection::UpdateService( google::cloud::metastore::v1::UpdateServiceRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::UpdateService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -134,7 +134,7 @@ DataprocMetastoreTracingConnection::DeleteService( google::cloud::metastore::v1::DeleteServiceRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::DeleteService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -189,7 +189,7 @@ DataprocMetastoreTracingConnection::CreateMetadataImport( google::cloud::metastore::v1::CreateMetadataImportRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::CreateMetadataImport"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateMetadataImport( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -223,7 +223,7 @@ DataprocMetastoreTracingConnection::UpdateMetadataImport( google::cloud::metastore::v1::UpdateMetadataImportRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::UpdateMetadataImport"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateMetadataImport( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -256,7 +256,7 @@ DataprocMetastoreTracingConnection::ExportMetadata( google::cloud::metastore::v1::ExportMetadataRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::ExportMetadata"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportMetadata(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -289,7 +289,7 @@ DataprocMetastoreTracingConnection::RestoreService( google::cloud::metastore::v1::RestoreServiceRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::RestoreService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RestoreService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -342,7 +342,7 @@ DataprocMetastoreTracingConnection::CreateBackup( google::cloud::metastore::v1::CreateBackupRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::CreateBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -375,7 +375,7 @@ DataprocMetastoreTracingConnection::DeleteBackup( google::cloud::metastore::v1::DeleteBackupRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::DeleteBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -408,7 +408,7 @@ DataprocMetastoreTracingConnection::QueryMetadata( google::cloud::metastore::v1::QueryMetadataRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::QueryMetadata"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->QueryMetadata(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -442,7 +442,7 @@ DataprocMetastoreTracingConnection::MoveTableToDatabase( google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::MoveTableToDatabase"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->MoveTableToDatabase(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -481,7 +481,7 @@ DataprocMetastoreTracingConnection::AlterMetadataResourceLocation( auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::" "AlterMetadataResourceLocation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->AlterMetadataResourceLocation( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.cc b/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.cc index f6c9989f270f6..f129523e84e6b 100644 --- a/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.cc +++ b/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.cc @@ -125,7 +125,7 @@ MigrationCenterTracingConnection::CreateImportJob( google::cloud::migrationcenter::v1::CreateImportJobRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateImportJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateImportJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -179,7 +179,7 @@ MigrationCenterTracingConnection::DeleteImportJob( google::cloud::migrationcenter::v1::DeleteImportJobRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteImportJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteImportJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -212,7 +212,7 @@ MigrationCenterTracingConnection::UpdateImportJob( google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::UpdateImportJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateImportJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -247,7 +247,7 @@ MigrationCenterTracingConnection::ValidateImportJob( request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::ValidateImportJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ValidateImportJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -280,7 +280,7 @@ MigrationCenterTracingConnection::RunImportJob( google::cloud::migrationcenter::v1::RunImportJobRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::RunImportJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RunImportJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -338,7 +338,7 @@ MigrationCenterTracingConnection::CreateImportDataFile( request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateImportDataFile"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateImportDataFile( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -374,7 +374,7 @@ MigrationCenterTracingConnection::DeleteImportDataFile( request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteImportDataFile"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteImportDataFile( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -428,7 +428,7 @@ MigrationCenterTracingConnection::CreateGroup( google::cloud::migrationcenter::v1::CreateGroupRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -461,7 +461,7 @@ MigrationCenterTracingConnection::UpdateGroup( google::cloud::migrationcenter::v1::UpdateGroupRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::UpdateGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -494,7 +494,7 @@ MigrationCenterTracingConnection::DeleteGroup( google::cloud::migrationcenter::v1::DeleteGroupRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -529,7 +529,7 @@ MigrationCenterTracingConnection::AddAssetsToGroup( request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::AddAssetsToGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddAssetsToGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -565,7 +565,7 @@ MigrationCenterTracingConnection::RemoveAssetsFromGroup( request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::RemoveAssetsFromGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RemoveAssetsFromGroup( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -640,7 +640,7 @@ MigrationCenterTracingConnection::CreateSource( google::cloud::migrationcenter::v1::CreateSourceRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateSource"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateSource(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -673,7 +673,7 @@ MigrationCenterTracingConnection::UpdateSource( google::cloud::migrationcenter::v1::UpdateSourceRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::UpdateSource"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateSource(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -706,7 +706,7 @@ MigrationCenterTracingConnection::DeleteSource( google::cloud::migrationcenter::v1::DeleteSourceRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteSource"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSource(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -764,7 +764,7 @@ MigrationCenterTracingConnection::CreatePreferenceSet( request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreatePreferenceSet"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreatePreferenceSet(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -800,7 +800,7 @@ MigrationCenterTracingConnection::UpdatePreferenceSet( request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::UpdatePreferenceSet"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdatePreferenceSet(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -836,7 +836,7 @@ MigrationCenterTracingConnection::DeletePreferenceSet( request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeletePreferenceSet"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeletePreferenceSet(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -878,7 +878,7 @@ MigrationCenterTracingConnection::UpdateSettings( google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::UpdateSettings"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateSettings(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -914,7 +914,7 @@ MigrationCenterTracingConnection::CreateReportConfig( request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateReportConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateReportConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -971,7 +971,7 @@ MigrationCenterTracingConnection::DeleteReportConfig( request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteReportConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteReportConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1004,7 +1004,7 @@ MigrationCenterTracingConnection::CreateReport( google::cloud::migrationcenter::v1::CreateReportRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateReport"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateReport(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1058,7 +1058,7 @@ MigrationCenterTracingConnection::DeleteReport( google::cloud::migrationcenter::v1::DeleteReportRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteReport"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteReport(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/migrationcenter/v1/migration_center_connection.cc b/google/cloud/migrationcenter/v1/migration_center_connection.cc index d78bfcb6a8af8..d98ca05f3a9c7 100644 --- a/google/cloud/migrationcenter/v1/migration_center_connection.cc +++ b/google/cloud/migrationcenter/v1/migration_center_connection.cc @@ -96,7 +96,7 @@ MigrationCenterConnection::CreateImportJob( StatusOr MigrationCenterConnection::CreateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateImportJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -104,7 +104,7 @@ MigrationCenterConnection::CreateImportJob( future> MigrationCenterConnection::CreateImportJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,7 +134,7 @@ MigrationCenterConnection::DeleteImportJob( StatusOr MigrationCenterConnection::DeleteImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteImportJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +142,7 @@ MigrationCenterConnection::DeleteImportJob( future> MigrationCenterConnection::DeleteImportJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -158,7 +158,7 @@ MigrationCenterConnection::UpdateImportJob( StatusOr MigrationCenterConnection::UpdateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateImportJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -166,7 +166,7 @@ MigrationCenterConnection::UpdateImportJob( future> MigrationCenterConnection::UpdateImportJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -182,7 +182,7 @@ MigrationCenterConnection::ValidateImportJob( StatusOr MigrationCenterConnection::ValidateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::ValidateImportJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -190,7 +190,7 @@ MigrationCenterConnection::ValidateImportJob( future> MigrationCenterConnection::ValidateImportJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -206,14 +206,14 @@ MigrationCenterConnection::RunImportJob( StatusOr MigrationCenterConnection::RunImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::RunImportJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -MigrationCenterConnection::RunImportJob(google::cloud::ExperimentalTag, +MigrationCenterConnection::RunImportJob(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -244,7 +244,7 @@ MigrationCenterConnection::CreateImportDataFile( StatusOr MigrationCenterConnection::CreateImportDataFile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateImportDataFileRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -252,7 +252,7 @@ MigrationCenterConnection::CreateImportDataFile( future> MigrationCenterConnection::CreateImportDataFile( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -268,7 +268,7 @@ MigrationCenterConnection::DeleteImportDataFile( StatusOr MigrationCenterConnection::DeleteImportDataFile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -276,7 +276,7 @@ MigrationCenterConnection::DeleteImportDataFile( future> MigrationCenterConnection::DeleteImportDataFile( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -305,14 +305,14 @@ MigrationCenterConnection::CreateGroup( } StatusOr MigrationCenterConnection::CreateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateGroupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -MigrationCenterConnection::CreateGroup(google::cloud::ExperimentalTag, +MigrationCenterConnection::CreateGroup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -328,14 +328,14 @@ MigrationCenterConnection::UpdateGroup( } StatusOr MigrationCenterConnection::UpdateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateGroupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -MigrationCenterConnection::UpdateGroup(google::cloud::ExperimentalTag, +MigrationCenterConnection::UpdateGroup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -351,14 +351,14 @@ MigrationCenterConnection::DeleteGroup( } StatusOr MigrationCenterConnection::DeleteGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteGroupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -MigrationCenterConnection::DeleteGroup(google::cloud::ExperimentalTag, +MigrationCenterConnection::DeleteGroup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -375,7 +375,7 @@ MigrationCenterConnection::AddAssetsToGroup( StatusOr MigrationCenterConnection::AddAssetsToGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -383,7 +383,7 @@ MigrationCenterConnection::AddAssetsToGroup( future> MigrationCenterConnection::AddAssetsToGroup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -399,7 +399,7 @@ MigrationCenterConnection::RemoveAssetsFromGroup( StatusOr MigrationCenterConnection::RemoveAssetsFromGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -407,7 +407,7 @@ MigrationCenterConnection::RemoveAssetsFromGroup( future> MigrationCenterConnection::RemoveAssetsFromGroup( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -451,14 +451,14 @@ MigrationCenterConnection::CreateSource( StatusOr MigrationCenterConnection::CreateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateSourceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -MigrationCenterConnection::CreateSource(google::cloud::ExperimentalTag, +MigrationCenterConnection::CreateSource(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -475,14 +475,14 @@ MigrationCenterConnection::UpdateSource( StatusOr MigrationCenterConnection::UpdateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateSourceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -MigrationCenterConnection::UpdateSource(google::cloud::ExperimentalTag, +MigrationCenterConnection::UpdateSource(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -499,14 +499,14 @@ MigrationCenterConnection::DeleteSource( StatusOr MigrationCenterConnection::DeleteSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteSourceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -MigrationCenterConnection::DeleteSource(google::cloud::ExperimentalTag, +MigrationCenterConnection::DeleteSource(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -537,7 +537,7 @@ MigrationCenterConnection::CreatePreferenceSet( StatusOr MigrationCenterConnection::CreatePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -545,7 +545,7 @@ MigrationCenterConnection::CreatePreferenceSet( future> MigrationCenterConnection::CreatePreferenceSet( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -561,7 +561,7 @@ MigrationCenterConnection::UpdatePreferenceSet( StatusOr MigrationCenterConnection::UpdatePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -569,7 +569,7 @@ MigrationCenterConnection::UpdatePreferenceSet( future> MigrationCenterConnection::UpdatePreferenceSet( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -585,7 +585,7 @@ MigrationCenterConnection::DeletePreferenceSet( StatusOr MigrationCenterConnection::DeletePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -593,7 +593,7 @@ MigrationCenterConnection::DeletePreferenceSet( future> MigrationCenterConnection::DeletePreferenceSet( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -615,7 +615,7 @@ MigrationCenterConnection::UpdateSettings( StatusOr MigrationCenterConnection::UpdateSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateSettingsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -623,7 +623,7 @@ MigrationCenterConnection::UpdateSettings( future> MigrationCenterConnection::UpdateSettings( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -639,7 +639,7 @@ MigrationCenterConnection::CreateReportConfig( StatusOr MigrationCenterConnection::CreateReportConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateReportConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -647,7 +647,7 @@ MigrationCenterConnection::CreateReportConfig( future> MigrationCenterConnection::CreateReportConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -677,7 +677,7 @@ MigrationCenterConnection::DeleteReportConfig( StatusOr MigrationCenterConnection::DeleteReportConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteReportConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -685,7 +685,7 @@ MigrationCenterConnection::DeleteReportConfig( future> MigrationCenterConnection::DeleteReportConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -701,14 +701,14 @@ MigrationCenterConnection::CreateReport( StatusOr MigrationCenterConnection::CreateReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateReportRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -MigrationCenterConnection::CreateReport(google::cloud::ExperimentalTag, +MigrationCenterConnection::CreateReport(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -739,14 +739,14 @@ MigrationCenterConnection::DeleteReport( StatusOr MigrationCenterConnection::DeleteReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteReportRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -MigrationCenterConnection::DeleteReport(google::cloud::ExperimentalTag, +MigrationCenterConnection::DeleteReport(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/migrationcenter/v1/migration_center_connection.h b/google/cloud/migrationcenter/v1/migration_center_connection.h index ef6915705489e..f1618a4f068cd 100644 --- a/google/cloud/migrationcenter/v1/migration_center_connection.h +++ b/google/cloud/migrationcenter/v1/migration_center_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/migrationcenter/v1/internal/migration_center_retry_traits.h" #include "google/cloud/migrationcenter/v1/migration_center_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -228,12 +228,12 @@ class MigrationCenterConnection { request); virtual StatusOr CreateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateImportJobRequest const& request); virtual future> - CreateImportJob(google::cloud::ExperimentalTag, + CreateImportJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -250,13 +250,13 @@ class MigrationCenterConnection { request); virtual StatusOr DeleteImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteImportJobRequest const& request); virtual future< StatusOr> - DeleteImportJob(google::cloud::ExperimentalTag, + DeleteImportJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -265,12 +265,12 @@ class MigrationCenterConnection { request); virtual StatusOr UpdateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request); virtual future> - UpdateImportJob(google::cloud::ExperimentalTag, + UpdateImportJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -280,13 +280,13 @@ class MigrationCenterConnection { request); virtual StatusOr ValidateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::ValidateImportJobRequest const& request); virtual future< StatusOr> - ValidateImportJob(google::cloud::ExperimentalTag, + ValidateImportJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -295,12 +295,12 @@ class MigrationCenterConnection { google::cloud::migrationcenter::v1::RunImportJobRequest const& request); virtual StatusOr RunImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::RunImportJobRequest const& request); virtual future< StatusOr> - RunImportJob(google::cloud::ExperimentalTag, + RunImportJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -318,12 +318,12 @@ class MigrationCenterConnection { request); virtual StatusOr CreateImportDataFile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& request); virtual future> - CreateImportDataFile(google::cloud::ExperimentalTag, + CreateImportDataFile(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -333,13 +333,13 @@ class MigrationCenterConnection { request); virtual StatusOr DeleteImportDataFile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& request); virtual future< StatusOr> - DeleteImportDataFile(google::cloud::ExperimentalTag, + DeleteImportDataFile(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListGroups( @@ -353,24 +353,22 @@ class MigrationCenterConnection { google::cloud::migrationcenter::v1::CreateGroupRequest const& request); virtual StatusOr CreateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateGroupRequest const& request); virtual future> - CreateGroup(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + CreateGroup(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateGroup( google::cloud::migrationcenter::v1::UpdateGroupRequest const& request); virtual StatusOr UpdateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateGroupRequest const& request); virtual future> - UpdateGroup(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + UpdateGroup(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> @@ -378,13 +376,12 @@ class MigrationCenterConnection { google::cloud::migrationcenter::v1::DeleteGroupRequest const& request); virtual StatusOr DeleteGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteGroupRequest const& request); virtual future< StatusOr> - DeleteGroup(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteGroup(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> AddAssetsToGroup( @@ -392,12 +389,12 @@ class MigrationCenterConnection { request); virtual StatusOr AddAssetsToGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& request); virtual future> - AddAssetsToGroup(google::cloud::ExperimentalTag, + AddAssetsToGroup(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -406,12 +403,12 @@ class MigrationCenterConnection { request); virtual StatusOr RemoveAssetsFromGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& request); virtual future> - RemoveAssetsFromGroup(google::cloud::ExperimentalTag, + RemoveAssetsFromGroup(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -433,11 +430,11 @@ class MigrationCenterConnection { google::cloud::migrationcenter::v1::CreateSourceRequest const& request); virtual StatusOr CreateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateSourceRequest const& request); virtual future> - CreateSource(google::cloud::ExperimentalTag, + CreateSource(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -445,11 +442,11 @@ class MigrationCenterConnection { google::cloud::migrationcenter::v1::UpdateSourceRequest const& request); virtual StatusOr UpdateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateSourceRequest const& request); virtual future> - UpdateSource(google::cloud::ExperimentalTag, + UpdateSource(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -458,12 +455,12 @@ class MigrationCenterConnection { google::cloud::migrationcenter::v1::DeleteSourceRequest const& request); virtual StatusOr DeleteSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteSourceRequest const& request); virtual future< StatusOr> - DeleteSource(google::cloud::ExperimentalTag, + DeleteSource(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -481,12 +478,12 @@ class MigrationCenterConnection { request); virtual StatusOr CreatePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& request); virtual future> - CreatePreferenceSet(google::cloud::ExperimentalTag, + CreatePreferenceSet(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -495,12 +492,12 @@ class MigrationCenterConnection { request); virtual StatusOr UpdatePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& request); virtual future> - UpdatePreferenceSet(google::cloud::ExperimentalTag, + UpdatePreferenceSet(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -510,13 +507,13 @@ class MigrationCenterConnection { request); virtual StatusOr DeletePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& request); virtual future< StatusOr> - DeletePreferenceSet(google::cloud::ExperimentalTag, + DeletePreferenceSet(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetSettings( @@ -527,11 +524,11 @@ class MigrationCenterConnection { google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request); virtual StatusOr UpdateSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request); virtual future> - UpdateSettings(google::cloud::ExperimentalTag, + UpdateSettings(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -540,12 +537,12 @@ class MigrationCenterConnection { request); virtual StatusOr CreateReportConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateReportConfigRequest const& request); virtual future> - CreateReportConfig(google::cloud::ExperimentalTag, + CreateReportConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -564,13 +561,13 @@ class MigrationCenterConnection { request); virtual StatusOr DeleteReportConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& request); virtual future< StatusOr> - DeleteReportConfig(google::cloud::ExperimentalTag, + DeleteReportConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -578,11 +575,11 @@ class MigrationCenterConnection { google::cloud::migrationcenter::v1::CreateReportRequest const& request); virtual StatusOr CreateReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateReportRequest const& request); virtual future> - CreateReport(google::cloud::ExperimentalTag, + CreateReport(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetReport( @@ -597,12 +594,12 @@ class MigrationCenterConnection { google::cloud::migrationcenter::v1::DeleteReportRequest const& request); virtual StatusOr DeleteReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteReportRequest const& request); virtual future< StatusOr> - DeleteReport(google::cloud::ExperimentalTag, + DeleteReport(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/monitoring/dashboard/v1/dashboards_connection.h b/google/cloud/monitoring/dashboard/v1/dashboards_connection.h index 87374e85bc6d5..8e1ac2a302e3f 100644 --- a/google/cloud/monitoring/dashboard/v1/dashboards_connection.h +++ b/google/cloud/monitoring/dashboard/v1/dashboards_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/monitoring/dashboard/v1/dashboards_connection_idempotency_policy.h" #include "google/cloud/monitoring/dashboard/v1/internal/dashboards_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.cc b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.cc index e6f5c068d2cab..65f69cf001f0f 100644 --- a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.cc +++ b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.cc @@ -75,7 +75,7 @@ MetricsScopesTracingConnection::CreateMonitoredProject( auto span = internal::MakeSpan( "monitoring_metricsscope_v1::MetricsScopesConnection::" "CreateMonitoredProject"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateMonitoredProject( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -114,7 +114,7 @@ MetricsScopesTracingConnection::DeleteMonitoredProject( auto span = internal::MakeSpan( "monitoring_metricsscope_v1::MetricsScopesConnection::" "DeleteMonitoredProject"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteMonitoredProject( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/monitoring/metricsscope/v1/metrics_scopes_connection.cc b/google/cloud/monitoring/metricsscope/v1/metrics_scopes_connection.cc index 55e3b804d99fa..69a13e2055fbb 100644 --- a/google/cloud/monitoring/metricsscope/v1/metrics_scopes_connection.cc +++ b/google/cloud/monitoring/metricsscope/v1/metrics_scopes_connection.cc @@ -62,7 +62,7 @@ MetricsScopesConnection::CreateMonitoredProject( StatusOr MetricsScopesConnection::CreateMonitoredProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::monitoring::metricsscope::v1:: CreateMonitoredProjectRequest const&) { return StatusOr( @@ -71,7 +71,7 @@ MetricsScopesConnection::CreateMonitoredProject( future> MetricsScopesConnection::CreateMonitoredProject( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -88,7 +88,7 @@ MetricsScopesConnection::DeleteMonitoredProject( StatusOr MetricsScopesConnection::DeleteMonitoredProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::monitoring::metricsscope::v1:: DeleteMonitoredProjectRequest const&) { return StatusOr( @@ -97,7 +97,7 @@ MetricsScopesConnection::DeleteMonitoredProject( future> MetricsScopesConnection::DeleteMonitoredProject( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/monitoring/metricsscope/v1/metrics_scopes_connection.h b/google/cloud/monitoring/metricsscope/v1/metrics_scopes_connection.h index e2550796b9630..dae9ceca493cd 100644 --- a/google/cloud/monitoring/metricsscope/v1/metrics_scopes_connection.h +++ b/google/cloud/monitoring/metricsscope/v1/metrics_scopes_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_retry_traits.h" #include "google/cloud/monitoring/metricsscope/v1/metrics_scopes_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -205,13 +205,13 @@ class MetricsScopesConnection { request); virtual StatusOr CreateMonitoredProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const& request); virtual future< StatusOr> - CreateMonitoredProject(google::cloud::ExperimentalTag, + CreateMonitoredProject(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -221,13 +221,13 @@ class MetricsScopesConnection { request); virtual StatusOr DeleteMonitoredProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& request); virtual future< StatusOr> - DeleteMonitoredProject(google::cloud::ExperimentalTag, + DeleteMonitoredProject(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/monitoring/v3/alert_policy_connection.h b/google/cloud/monitoring/v3/alert_policy_connection.h index 6d7172a73dd2e..2b52db5db1224 100644 --- a/google/cloud/monitoring/v3/alert_policy_connection.h +++ b/google/cloud/monitoring/v3/alert_policy_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/monitoring/v3/alert_policy_connection_idempotency_policy.h" #include "google/cloud/monitoring/v3/internal/alert_policy_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/monitoring/v3/group_connection.h b/google/cloud/monitoring/v3/group_connection.h index df01e86d0be55..993d51ef64493 100644 --- a/google/cloud/monitoring/v3/group_connection.h +++ b/google/cloud/monitoring/v3/group_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/monitoring/v3/group_connection_idempotency_policy.h" #include "google/cloud/monitoring/v3/internal/group_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/monitoring/v3/metric_connection.h b/google/cloud/monitoring/v3/metric_connection.h index b8d61b5b758ea..83e552331e248 100644 --- a/google/cloud/monitoring/v3/metric_connection.h +++ b/google/cloud/monitoring/v3/metric_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/monitoring/v3/internal/metric_retry_traits.h" #include "google/cloud/monitoring/v3/metric_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" diff --git a/google/cloud/monitoring/v3/notification_channel_connection.h b/google/cloud/monitoring/v3/notification_channel_connection.h index 2b17118d23987..54f1254fe6a3c 100644 --- a/google/cloud/monitoring/v3/notification_channel_connection.h +++ b/google/cloud/monitoring/v3/notification_channel_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/monitoring/v3/internal/notification_channel_retry_traits.h" #include "google/cloud/monitoring/v3/notification_channel_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/monitoring/v3/query_connection.h b/google/cloud/monitoring/v3/query_connection.h index 76f23f761a9aa..9f0c398432046 100644 --- a/google/cloud/monitoring/v3/query_connection.h +++ b/google/cloud/monitoring/v3/query_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/monitoring/v3/internal/query_retry_traits.h" #include "google/cloud/monitoring/v3/query_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/monitoring/v3/service_monitoring_connection.h b/google/cloud/monitoring/v3/service_monitoring_connection.h index a9d165bedd052..2f0fe0d0f6893 100644 --- a/google/cloud/monitoring/v3/service_monitoring_connection.h +++ b/google/cloud/monitoring/v3/service_monitoring_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/monitoring/v3/internal/service_monitoring_retry_traits.h" #include "google/cloud/monitoring/v3/service_monitoring_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/monitoring/v3/snooze_connection.h b/google/cloud/monitoring/v3/snooze_connection.h index 4e977e2e5ba06..ac3eb50f9fca4 100644 --- a/google/cloud/monitoring/v3/snooze_connection.h +++ b/google/cloud/monitoring/v3/snooze_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/monitoring/v3/internal/snooze_retry_traits.h" #include "google/cloud/monitoring/v3/snooze_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/monitoring/v3/uptime_check_connection.h b/google/cloud/monitoring/v3/uptime_check_connection.h index 5d47a6b0a866e..bfdd5051ebab7 100644 --- a/google/cloud/monitoring/v3/uptime_check_connection.h +++ b/google/cloud/monitoring/v3/uptime_check_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/monitoring/v3/internal/uptime_check_retry_traits.h" #include "google/cloud/monitoring/v3/uptime_check_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/netapp/v1/internal/net_app_tracing_connection.cc b/google/cloud/netapp/v1/internal/net_app_tracing_connection.cc index da8674dc58f51..0974d08a2296f 100644 --- a/google/cloud/netapp/v1/internal/net_app_tracing_connection.cc +++ b/google/cloud/netapp/v1/internal/net_app_tracing_connection.cc @@ -59,7 +59,7 @@ NetAppTracingConnection::CreateStoragePool( google::cloud::netapp::v1::CreateStoragePoolRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateStoragePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateStoragePool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -100,7 +100,7 @@ NetAppTracingConnection::UpdateStoragePool( google::cloud::netapp::v1::UpdateStoragePoolRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateStoragePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateStoragePool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -133,7 +133,7 @@ NetAppTracingConnection::DeleteStoragePool( google::cloud::netapp::v1::DeleteStoragePoolRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteStoragePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteStoragePool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -180,7 +180,7 @@ StatusOr NetAppTracingConnection::CreateVolume( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::netapp::v1::CreateVolumeRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateVolume"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateVolume(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -209,7 +209,7 @@ StatusOr NetAppTracingConnection::UpdateVolume( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::netapp::v1::UpdateVolumeRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateVolume"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateVolume(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -238,7 +238,7 @@ StatusOr NetAppTracingConnection::DeleteVolume( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::netapp::v1::DeleteVolumeRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteVolume"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteVolume(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -267,7 +267,7 @@ StatusOr NetAppTracingConnection::RevertVolume( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::netapp::v1::RevertVolumeRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::RevertVolume"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RevertVolume(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -315,7 +315,7 @@ NetAppTracingConnection::CreateSnapshot( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::netapp::v1::CreateSnapshotRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateSnapshot"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateSnapshot(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -345,7 +345,7 @@ NetAppTracingConnection::DeleteSnapshot( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::netapp::v1::DeleteSnapshotRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteSnapshot"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSnapshot(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -375,7 +375,7 @@ NetAppTracingConnection::UpdateSnapshot( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::netapp::v1::UpdateSnapshotRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateSnapshot"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateSnapshot(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -429,7 +429,7 @@ NetAppTracingConnection::CreateActiveDirectory( google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateActiveDirectory"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateActiveDirectory( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -463,7 +463,7 @@ NetAppTracingConnection::UpdateActiveDirectory( google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateActiveDirectory"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateActiveDirectory( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -497,7 +497,7 @@ NetAppTracingConnection::DeleteActiveDirectory( google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteActiveDirectory"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteActiveDirectory( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -540,7 +540,7 @@ NetAppTracingConnection::CreateKmsConfig( google::cloud::netapp::v1::CreateKmsConfigRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateKmsConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateKmsConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -581,7 +581,7 @@ NetAppTracingConnection::UpdateKmsConfig( google::cloud::netapp::v1::UpdateKmsConfigRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateKmsConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateKmsConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -612,7 +612,7 @@ NetAppTracingConnection::EncryptVolumes( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::netapp::v1::EncryptVolumesRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::EncryptVolumes"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->EncryptVolumes(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -653,7 +653,7 @@ NetAppTracingConnection::DeleteKmsConfig( google::cloud::netapp::v1::DeleteKmsConfigRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteKmsConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteKmsConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -705,7 +705,7 @@ NetAppTracingConnection::CreateReplication( google::cloud::netapp::v1::CreateReplicationRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateReplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateReplication(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -738,7 +738,7 @@ NetAppTracingConnection::DeleteReplication( google::cloud::netapp::v1::DeleteReplicationRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteReplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteReplication(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -771,7 +771,7 @@ NetAppTracingConnection::UpdateReplication( google::cloud::netapp::v1::UpdateReplicationRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateReplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateReplication(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -804,7 +804,7 @@ NetAppTracingConnection::StopReplication( google::cloud::netapp::v1::StopReplicationRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::StopReplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StopReplication(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -837,7 +837,7 @@ NetAppTracingConnection::ResumeReplication( google::cloud::netapp::v1::ResumeReplicationRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::ResumeReplication"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ResumeReplication(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -873,7 +873,7 @@ NetAppTracingConnection::ReverseReplicationDirection( request) { auto span = internal::MakeSpan( "netapp_v1::NetAppConnection::ReverseReplicationDirection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ReverseReplicationDirection( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -906,7 +906,7 @@ NetAppTracingConnection::CreateBackupVault( google::cloud::netapp::v1::CreateBackupVaultRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateBackupVault"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateBackupVault(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -958,7 +958,7 @@ NetAppTracingConnection::UpdateBackupVault( google::cloud::netapp::v1::UpdateBackupVaultRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateBackupVault"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateBackupVault(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -991,7 +991,7 @@ NetAppTracingConnection::DeleteBackupVault( google::cloud::netapp::v1::DeleteBackupVaultRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteBackupVault"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteBackupVault(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1021,7 +1021,7 @@ StatusOr NetAppTracingConnection::CreateBackup( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::netapp::v1::CreateBackupRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1067,7 +1067,7 @@ StatusOr NetAppTracingConnection::DeleteBackup( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::netapp::v1::DeleteBackupRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1096,7 +1096,7 @@ StatusOr NetAppTracingConnection::UpdateBackup( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::netapp::v1::UpdateBackupRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1129,7 +1129,7 @@ NetAppTracingConnection::CreateBackupPolicy( google::cloud::netapp::v1::CreateBackupPolicyRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateBackupPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateBackupPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1183,7 +1183,7 @@ NetAppTracingConnection::UpdateBackupPolicy( google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateBackupPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateBackupPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1217,7 +1217,7 @@ NetAppTracingConnection::DeleteBackupPolicy( google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteBackupPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteBackupPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/netapp/v1/net_app_connection.cc b/google/cloud/netapp/v1/net_app_connection.cc index f90e340622276..c8438ea4f3801 100644 --- a/google/cloud/netapp/v1/net_app_connection.cc +++ b/google/cloud/netapp/v1/net_app_connection.cc @@ -55,14 +55,14 @@ NetAppConnection::CreateStoragePool( } StatusOr NetAppConnection::CreateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateStoragePoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::CreateStoragePool(google::cloud::ExperimentalTag, +NetAppConnection::CreateStoragePool(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -84,14 +84,14 @@ NetAppConnection::UpdateStoragePool( } StatusOr NetAppConnection::UpdateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateStoragePoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::UpdateStoragePool(google::cloud::ExperimentalTag, +NetAppConnection::UpdateStoragePool(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -107,14 +107,14 @@ NetAppConnection::DeleteStoragePool( } StatusOr NetAppConnection::DeleteStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteStoragePoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::DeleteStoragePool(google::cloud::ExperimentalTag, +NetAppConnection::DeleteStoragePool(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -142,14 +142,14 @@ NetAppConnection::CreateVolume( } StatusOr NetAppConnection::CreateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateVolumeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::CreateVolume(google::cloud::ExperimentalTag, +NetAppConnection::CreateVolume(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -165,14 +165,14 @@ NetAppConnection::UpdateVolume( } StatusOr NetAppConnection::UpdateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateVolumeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::UpdateVolume(google::cloud::ExperimentalTag, +NetAppConnection::UpdateVolume(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -188,14 +188,14 @@ NetAppConnection::DeleteVolume( } StatusOr NetAppConnection::DeleteVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteVolumeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::DeleteVolume(google::cloud::ExperimentalTag, +NetAppConnection::DeleteVolume(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -211,14 +211,14 @@ NetAppConnection::RevertVolume( } StatusOr NetAppConnection::RevertVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::RevertVolumeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::RevertVolume(google::cloud::ExperimentalTag, +NetAppConnection::RevertVolume(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -247,14 +247,14 @@ NetAppConnection::CreateSnapshot( } StatusOr NetAppConnection::CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateSnapshotRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::CreateSnapshot(google::cloud::ExperimentalTag, +NetAppConnection::CreateSnapshot(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -270,14 +270,14 @@ NetAppConnection::DeleteSnapshot( } StatusOr NetAppConnection::DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteSnapshotRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::DeleteSnapshot(google::cloud::ExperimentalTag, +NetAppConnection::DeleteSnapshot(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -293,14 +293,14 @@ NetAppConnection::UpdateSnapshot( } StatusOr NetAppConnection::UpdateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateSnapshotRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::UpdateSnapshot(google::cloud::ExperimentalTag, +NetAppConnection::UpdateSnapshot(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -331,14 +331,14 @@ NetAppConnection::CreateActiveDirectory( StatusOr NetAppConnection::CreateActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateActiveDirectoryRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::CreateActiveDirectory(google::cloud::ExperimentalTag, +NetAppConnection::CreateActiveDirectory(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -355,14 +355,14 @@ NetAppConnection::UpdateActiveDirectory( StatusOr NetAppConnection::UpdateActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateActiveDirectoryRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::UpdateActiveDirectory(google::cloud::ExperimentalTag, +NetAppConnection::UpdateActiveDirectory(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -379,14 +379,14 @@ NetAppConnection::DeleteActiveDirectory( StatusOr NetAppConnection::DeleteActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteActiveDirectoryRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::DeleteActiveDirectory(google::cloud::ExperimentalTag, +NetAppConnection::DeleteActiveDirectory(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -410,14 +410,14 @@ NetAppConnection::CreateKmsConfig( } StatusOr NetAppConnection::CreateKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateKmsConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::CreateKmsConfig(google::cloud::ExperimentalTag, +NetAppConnection::CreateKmsConfig(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -438,14 +438,14 @@ NetAppConnection::UpdateKmsConfig( } StatusOr NetAppConnection::UpdateKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateKmsConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::UpdateKmsConfig(google::cloud::ExperimentalTag, +NetAppConnection::UpdateKmsConfig(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -461,14 +461,14 @@ NetAppConnection::EncryptVolumes( } StatusOr NetAppConnection::EncryptVolumes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::EncryptVolumesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::EncryptVolumes(google::cloud::ExperimentalTag, +NetAppConnection::EncryptVolumes(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -490,14 +490,14 @@ NetAppConnection::DeleteKmsConfig( } StatusOr NetAppConnection::DeleteKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteKmsConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::DeleteKmsConfig(google::cloud::ExperimentalTag, +NetAppConnection::DeleteKmsConfig(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -527,14 +527,14 @@ NetAppConnection::CreateReplication( } StatusOr NetAppConnection::CreateReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateReplicationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::CreateReplication(google::cloud::ExperimentalTag, +NetAppConnection::CreateReplication(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -550,14 +550,14 @@ NetAppConnection::DeleteReplication( } StatusOr NetAppConnection::DeleteReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteReplicationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::DeleteReplication(google::cloud::ExperimentalTag, +NetAppConnection::DeleteReplication(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -573,14 +573,14 @@ NetAppConnection::UpdateReplication( } StatusOr NetAppConnection::UpdateReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateReplicationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::UpdateReplication(google::cloud::ExperimentalTag, +NetAppConnection::UpdateReplication(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -596,14 +596,14 @@ NetAppConnection::StopReplication( } StatusOr NetAppConnection::StopReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::StopReplicationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::StopReplication(google::cloud::ExperimentalTag, +NetAppConnection::StopReplication(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -619,14 +619,14 @@ NetAppConnection::ResumeReplication( } StatusOr NetAppConnection::ResumeReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::ResumeReplicationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::ResumeReplication(google::cloud::ExperimentalTag, +NetAppConnection::ResumeReplication(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -643,7 +643,7 @@ NetAppConnection::ReverseReplicationDirection( StatusOr NetAppConnection::ReverseReplicationDirection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::ReverseReplicationDirectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -651,7 +651,7 @@ NetAppConnection::ReverseReplicationDirection( future> NetAppConnection::ReverseReplicationDirection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -666,14 +666,14 @@ NetAppConnection::CreateBackupVault( } StatusOr NetAppConnection::CreateBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupVaultRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::CreateBackupVault(google::cloud::ExperimentalTag, +NetAppConnection::CreateBackupVault(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -703,14 +703,14 @@ NetAppConnection::UpdateBackupVault( } StatusOr NetAppConnection::UpdateBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupVaultRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::UpdateBackupVault(google::cloud::ExperimentalTag, +NetAppConnection::UpdateBackupVault(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -726,14 +726,14 @@ NetAppConnection::DeleteBackupVault( } StatusOr NetAppConnection::DeleteBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupVaultRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::DeleteBackupVault(google::cloud::ExperimentalTag, +NetAppConnection::DeleteBackupVault(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -749,14 +749,14 @@ NetAppConnection::CreateBackup( } StatusOr NetAppConnection::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::CreateBackup(google::cloud::ExperimentalTag, +NetAppConnection::CreateBackup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -784,14 +784,14 @@ NetAppConnection::DeleteBackup( } StatusOr NetAppConnection::DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::DeleteBackup(google::cloud::ExperimentalTag, +NetAppConnection::DeleteBackup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -807,14 +807,14 @@ NetAppConnection::UpdateBackup( } StatusOr NetAppConnection::UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::UpdateBackup(google::cloud::ExperimentalTag, +NetAppConnection::UpdateBackup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -830,14 +830,14 @@ NetAppConnection::CreateBackupPolicy( } StatusOr NetAppConnection::CreateBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupPolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::CreateBackupPolicy(google::cloud::ExperimentalTag, +NetAppConnection::CreateBackupPolicy(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -867,14 +867,14 @@ NetAppConnection::UpdateBackupPolicy( } StatusOr NetAppConnection::UpdateBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupPolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::UpdateBackupPolicy(google::cloud::ExperimentalTag, +NetAppConnection::UpdateBackupPolicy(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -890,14 +890,14 @@ NetAppConnection::DeleteBackupPolicy( } StatusOr NetAppConnection::DeleteBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupPolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetAppConnection::DeleteBackupPolicy(google::cloud::ExperimentalTag, +NetAppConnection::DeleteBackupPolicy(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/netapp/v1/net_app_connection.h b/google/cloud/netapp/v1/net_app_connection.h index ef6d5efe8c738..3340282304994 100644 --- a/google/cloud/netapp/v1/net_app_connection.h +++ b/google/cloud/netapp/v1/net_app_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/netapp/v1/internal/net_app_retry_traits.h" #include "google/cloud/netapp/v1/net_app_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -191,11 +191,11 @@ class NetAppConnection { google::cloud::netapp::v1::CreateStoragePoolRequest const& request); virtual StatusOr CreateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateStoragePoolRequest const& request); virtual future> - CreateStoragePool(google::cloud::ExperimentalTag, + CreateStoragePool(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetStoragePool( @@ -206,11 +206,11 @@ class NetAppConnection { google::cloud::netapp::v1::UpdateStoragePoolRequest const& request); virtual StatusOr UpdateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateStoragePoolRequest const& request); virtual future> - UpdateStoragePool(google::cloud::ExperimentalTag, + UpdateStoragePool(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -218,11 +218,11 @@ class NetAppConnection { google::cloud::netapp::v1::DeleteStoragePoolRequest const& request); virtual StatusOr DeleteStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteStoragePoolRequest const& request); virtual future> - DeleteStoragePool(google::cloud::ExperimentalTag, + DeleteStoragePool(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListVolumes( @@ -235,45 +235,42 @@ class NetAppConnection { google::cloud::netapp::v1::CreateVolumeRequest const& request); virtual StatusOr CreateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateVolumeRequest const& request); virtual future> CreateVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateVolume( google::cloud::netapp::v1::UpdateVolumeRequest const& request); virtual StatusOr UpdateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateVolumeRequest const& request); virtual future> UpdateVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteVolume(google::cloud::netapp::v1::DeleteVolumeRequest const& request); virtual StatusOr DeleteVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteVolumeRequest const& request); virtual future> - DeleteVolume(google::cloud::ExperimentalTag, + DeleteVolume(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> RevertVolume( google::cloud::netapp::v1::RevertVolumeRequest const& request); virtual StatusOr RevertVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::RevertVolumeRequest const& request); virtual future> RevertVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListSnapshots( google::cloud::netapp::v1::ListSnapshotsRequest request); @@ -285,35 +282,33 @@ class NetAppConnection { google::cloud::netapp::v1::CreateSnapshotRequest const& request); virtual StatusOr CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateSnapshotRequest const& request); virtual future> CreateSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteSnapshot( google::cloud::netapp::v1::DeleteSnapshotRequest const& request); virtual StatusOr DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteSnapshotRequest const& request); virtual future> - DeleteSnapshot(google::cloud::ExperimentalTag, + DeleteSnapshot(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateSnapshot( google::cloud::netapp::v1::UpdateSnapshotRequest const& request); virtual StatusOr UpdateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateSnapshotRequest const& request); virtual future> UpdateSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListActiveDirectories( @@ -328,11 +323,11 @@ class NetAppConnection { google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request); virtual StatusOr CreateActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request); virtual future> - CreateActiveDirectory(google::cloud::ExperimentalTag, + CreateActiveDirectory(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -340,11 +335,11 @@ class NetAppConnection { google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request); virtual StatusOr UpdateActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request); virtual future> - UpdateActiveDirectory(google::cloud::ExperimentalTag, + UpdateActiveDirectory(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -352,11 +347,11 @@ class NetAppConnection { google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request); virtual StatusOr DeleteActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request); virtual future> - DeleteActiveDirectory(google::cloud::ExperimentalTag, + DeleteActiveDirectory(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListKmsConfigs( @@ -367,11 +362,11 @@ class NetAppConnection { google::cloud::netapp::v1::CreateKmsConfigRequest const& request); virtual StatusOr CreateKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateKmsConfigRequest const& request); virtual future> - CreateKmsConfig(google::cloud::ExperimentalTag, + CreateKmsConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetKmsConfig( @@ -382,23 +377,22 @@ class NetAppConnection { google::cloud::netapp::v1::UpdateKmsConfigRequest const& request); virtual StatusOr UpdateKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateKmsConfigRequest const& request); virtual future> - UpdateKmsConfig(google::cloud::ExperimentalTag, + UpdateKmsConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> EncryptVolumes( google::cloud::netapp::v1::EncryptVolumesRequest const& request); virtual StatusOr EncryptVolumes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::EncryptVolumesRequest const& request); virtual future> EncryptVolumes( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr VerifyKmsConfig( @@ -409,11 +403,11 @@ class NetAppConnection { google::cloud::netapp::v1::DeleteKmsConfigRequest const& request); virtual StatusOr DeleteKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteKmsConfigRequest const& request); virtual future> - DeleteKmsConfig(google::cloud::ExperimentalTag, + DeleteKmsConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListReplications( @@ -427,11 +421,11 @@ class NetAppConnection { google::cloud::netapp::v1::CreateReplicationRequest const& request); virtual StatusOr CreateReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateReplicationRequest const& request); virtual future> - CreateReplication(google::cloud::ExperimentalTag, + CreateReplication(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -439,11 +433,11 @@ class NetAppConnection { google::cloud::netapp::v1::DeleteReplicationRequest const& request); virtual StatusOr DeleteReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteReplicationRequest const& request); virtual future> - DeleteReplication(google::cloud::ExperimentalTag, + DeleteReplication(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -451,11 +445,11 @@ class NetAppConnection { google::cloud::netapp::v1::UpdateReplicationRequest const& request); virtual StatusOr UpdateReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateReplicationRequest const& request); virtual future> - UpdateReplication(google::cloud::ExperimentalTag, + UpdateReplication(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -463,11 +457,11 @@ class NetAppConnection { google::cloud::netapp::v1::StopReplicationRequest const& request); virtual StatusOr StopReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::StopReplicationRequest const& request); virtual future> - StopReplication(google::cloud::ExperimentalTag, + StopReplication(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -475,11 +469,11 @@ class NetAppConnection { google::cloud::netapp::v1::ResumeReplicationRequest const& request); virtual StatusOr ResumeReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::ResumeReplicationRequest const& request); virtual future> - ResumeReplication(google::cloud::ExperimentalTag, + ResumeReplication(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -488,12 +482,12 @@ class NetAppConnection { request); virtual StatusOr ReverseReplicationDirection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& request); virtual future> - ReverseReplicationDirection(google::cloud::ExperimentalTag, + ReverseReplicationDirection(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -501,11 +495,11 @@ class NetAppConnection { google::cloud::netapp::v1::CreateBackupVaultRequest const& request); virtual StatusOr CreateBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupVaultRequest const& request); virtual future> - CreateBackupVault(google::cloud::ExperimentalTag, + CreateBackupVault(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetBackupVault( @@ -519,11 +513,11 @@ class NetAppConnection { google::cloud::netapp::v1::UpdateBackupVaultRequest const& request); virtual StatusOr UpdateBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupVaultRequest const& request); virtual future> - UpdateBackupVault(google::cloud::ExperimentalTag, + UpdateBackupVault(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -531,23 +525,22 @@ class NetAppConnection { google::cloud::netapp::v1::DeleteBackupVaultRequest const& request); virtual StatusOr DeleteBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupVaultRequest const& request); virtual future> - DeleteBackupVault(google::cloud::ExperimentalTag, + DeleteBackupVault(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CreateBackup( google::cloud::netapp::v1::CreateBackupRequest const& request); virtual StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupRequest const& request); virtual future> CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetBackup( google::cloud::netapp::v1::GetBackupRequest const& request); @@ -559,34 +552,33 @@ class NetAppConnection { DeleteBackup(google::cloud::netapp::v1::DeleteBackupRequest const& request); virtual StatusOr DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupRequest const& request); virtual future> - DeleteBackup(google::cloud::ExperimentalTag, + DeleteBackup(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateBackup( google::cloud::netapp::v1::UpdateBackupRequest const& request); virtual StatusOr UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupRequest const& request); virtual future> UpdateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CreateBackupPolicy( google::cloud::netapp::v1::CreateBackupPolicyRequest const& request); virtual StatusOr CreateBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupPolicyRequest const& request); virtual future> - CreateBackupPolicy(google::cloud::ExperimentalTag, + CreateBackupPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetBackupPolicy( @@ -601,11 +593,11 @@ class NetAppConnection { google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request); virtual StatusOr UpdateBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request); virtual future> - UpdateBackupPolicy(google::cloud::ExperimentalTag, + UpdateBackupPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -613,11 +605,11 @@ class NetAppConnection { google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request); virtual StatusOr DeleteBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request); virtual future> - DeleteBackupPolicy(google::cloud::ExperimentalTag, + DeleteBackupPolicy(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/networkconnectivity/v1/hub_connection.cc b/google/cloud/networkconnectivity/v1/hub_connection.cc index c800ca5068701..9185224d08466 100644 --- a/google/cloud/networkconnectivity/v1/hub_connection.cc +++ b/google/cloud/networkconnectivity/v1/hub_connection.cc @@ -61,14 +61,14 @@ HubServiceConnection::CreateHub( } StatusOr HubServiceConnection::CreateHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::CreateHubRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -HubServiceConnection::CreateHub(google::cloud::ExperimentalTag, +HubServiceConnection::CreateHub(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -84,14 +84,14 @@ HubServiceConnection::UpdateHub( } StatusOr HubServiceConnection::UpdateHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::UpdateHubRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -HubServiceConnection::UpdateHub(google::cloud::ExperimentalTag, +HubServiceConnection::UpdateHub(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -107,14 +107,14 @@ HubServiceConnection::DeleteHub( } StatusOr HubServiceConnection::DeleteHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::DeleteHubRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -HubServiceConnection::DeleteHub(google::cloud::ExperimentalTag, +HubServiceConnection::DeleteHub(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -152,14 +152,14 @@ HubServiceConnection::CreateSpoke( } StatusOr HubServiceConnection::CreateSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::CreateSpokeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -HubServiceConnection::CreateSpoke(google::cloud::ExperimentalTag, +HubServiceConnection::CreateSpoke(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -175,14 +175,14 @@ HubServiceConnection::UpdateSpoke( } StatusOr HubServiceConnection::UpdateSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::UpdateSpokeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -HubServiceConnection::UpdateSpoke(google::cloud::ExperimentalTag, +HubServiceConnection::UpdateSpoke(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -198,14 +198,14 @@ HubServiceConnection::RejectHubSpoke( } StatusOr HubServiceConnection::RejectHubSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -HubServiceConnection::RejectHubSpoke(google::cloud::ExperimentalTag, +HubServiceConnection::RejectHubSpoke(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -221,14 +221,14 @@ HubServiceConnection::AcceptHubSpoke( } StatusOr HubServiceConnection::AcceptHubSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -HubServiceConnection::AcceptHubSpoke(google::cloud::ExperimentalTag, +HubServiceConnection::AcceptHubSpoke(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -244,14 +244,14 @@ HubServiceConnection::DeleteSpoke( } StatusOr HubServiceConnection::DeleteSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::DeleteSpokeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -HubServiceConnection::DeleteSpoke(google::cloud::ExperimentalTag, +HubServiceConnection::DeleteSpoke(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/networkconnectivity/v1/hub_connection.h b/google/cloud/networkconnectivity/v1/hub_connection.h index 29acfe92823d4..773b2b97ca979 100644 --- a/google/cloud/networkconnectivity/v1/hub_connection.h +++ b/google/cloud/networkconnectivity/v1/hub_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/networkconnectivity/v1/hub_connection_idempotency_policy.h" #include "google/cloud/networkconnectivity/v1/internal/hub_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -198,24 +198,22 @@ class HubServiceConnection { google::cloud::networkconnectivity::v1::CreateHubRequest const& request); virtual StatusOr CreateHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::CreateHubRequest const& request); virtual future> - CreateHub(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + CreateHub(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateHub( google::cloud::networkconnectivity::v1::UpdateHubRequest const& request); virtual StatusOr UpdateHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::UpdateHubRequest const& request); virtual future> - UpdateHub(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + UpdateHub(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> @@ -223,13 +221,12 @@ class HubServiceConnection { google::cloud::networkconnectivity::v1::DeleteHubRequest const& request); virtual StatusOr DeleteHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::DeleteHubRequest const& request); virtual future< StatusOr> - DeleteHub(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteHub(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListHubSpokes( @@ -246,26 +243,24 @@ class HubServiceConnection { request); virtual StatusOr CreateSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::CreateSpokeRequest const& request); virtual future> - CreateSpoke(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + CreateSpoke(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateSpoke(google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request); virtual StatusOr UpdateSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request); virtual future> - UpdateSpoke(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + UpdateSpoke(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> @@ -274,13 +269,13 @@ class HubServiceConnection { request); virtual StatusOr RejectHubSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& request); virtual future< StatusOr> - RejectHubSpoke(google::cloud::ExperimentalTag, + RejectHubSpoke(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -290,13 +285,13 @@ class HubServiceConnection { request); virtual StatusOr AcceptHubSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& request); virtual future< StatusOr> - AcceptHubSpoke(google::cloud::ExperimentalTag, + AcceptHubSpoke(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -305,14 +300,13 @@ class HubServiceConnection { request); virtual StatusOr DeleteSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request); virtual future< StatusOr> - DeleteSpoke(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteSpoke(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetRouteTable( diff --git a/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.cc b/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.cc index 6981f6ddbaaf1..b5472b12d9311 100644 --- a/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.cc +++ b/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.cc @@ -68,7 +68,7 @@ StatusOr HubServiceTracingConnection::CreateHub( google::cloud::networkconnectivity::v1::CreateHubRequest const& request) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::CreateHub"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateHub(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -100,7 +100,7 @@ StatusOr HubServiceTracingConnection::UpdateHub( google::cloud::networkconnectivity::v1::UpdateHubRequest const& request) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::UpdateHub"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateHub(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -132,7 +132,7 @@ StatusOr HubServiceTracingConnection::DeleteHub( google::cloud::networkconnectivity::v1::DeleteHubRequest const& request) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::DeleteHub"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteHub(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -198,7 +198,7 @@ HubServiceTracingConnection::CreateSpoke( google::cloud::networkconnectivity::v1::CreateSpokeRequest const& request) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::CreateSpoke"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateSpoke(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -231,7 +231,7 @@ HubServiceTracingConnection::UpdateSpoke( google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::UpdateSpoke"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateSpoke(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -266,7 +266,7 @@ HubServiceTracingConnection::RejectHubSpoke( request) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::RejectHubSpoke"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RejectHubSpoke(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -301,7 +301,7 @@ HubServiceTracingConnection::AcceptHubSpoke( request) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::AcceptHubSpoke"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AcceptHubSpoke(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -334,7 +334,7 @@ HubServiceTracingConnection::DeleteSpoke( google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::DeleteSpoke"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSpoke(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.cc b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.cc index ac56585da9d06..c0fe592b45a3d 100644 --- a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.cc +++ b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.cc @@ -81,7 +81,7 @@ PolicyBasedRoutingServiceTracingConnection::CreatePolicyBasedRoute( auto span = internal::MakeSpan( "networkconnectivity_v1::PolicyBasedRoutingServiceConnection::" "CreatePolicyBasedRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreatePolicyBasedRoute( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -120,7 +120,7 @@ PolicyBasedRoutingServiceTracingConnection::DeletePolicyBasedRoute( auto span = internal::MakeSpan( "networkconnectivity_v1::PolicyBasedRoutingServiceConnection::" "DeletePolicyBasedRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeletePolicyBasedRoute( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/networkconnectivity/v1/policy_based_routing_connection.cc b/google/cloud/networkconnectivity/v1/policy_based_routing_connection.cc index 713b7c173808f..8f6004078790b 100644 --- a/google/cloud/networkconnectivity/v1/policy_based_routing_connection.cc +++ b/google/cloud/networkconnectivity/v1/policy_based_routing_connection.cc @@ -64,7 +64,7 @@ PolicyBasedRoutingServiceConnection::CreatePolicyBasedRoute( StatusOr PolicyBasedRoutingServiceConnection::CreatePolicyBasedRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1:: CreatePolicyBasedRouteRequest const&) { return StatusOr( @@ -73,7 +73,7 @@ PolicyBasedRoutingServiceConnection::CreatePolicyBasedRoute( future> PolicyBasedRoutingServiceConnection::CreatePolicyBasedRoute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -90,7 +90,7 @@ PolicyBasedRoutingServiceConnection::DeletePolicyBasedRoute( StatusOr PolicyBasedRoutingServiceConnection::DeletePolicyBasedRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1:: DeletePolicyBasedRouteRequest const&) { return StatusOr( @@ -99,7 +99,7 @@ PolicyBasedRoutingServiceConnection::DeletePolicyBasedRoute( future> PolicyBasedRoutingServiceConnection::DeletePolicyBasedRoute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/networkconnectivity/v1/policy_based_routing_connection.h b/google/cloud/networkconnectivity/v1/policy_based_routing_connection.h index e437975de1bd5..d548634058007 100644 --- a/google/cloud/networkconnectivity/v1/policy_based_routing_connection.h +++ b/google/cloud/networkconnectivity/v1/policy_based_routing_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/networkconnectivity/v1/internal/policy_based_routing_retry_traits.h" #include "google/cloud/networkconnectivity/v1/policy_based_routing_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -217,13 +217,13 @@ class PolicyBasedRoutingServiceConnection { CreatePolicyBasedRouteRequest const& request); virtual StatusOr CreatePolicyBasedRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1:: CreatePolicyBasedRouteRequest const& request); virtual future< StatusOr> - CreatePolicyBasedRoute(google::cloud::ExperimentalTag, + CreatePolicyBasedRoute(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -232,13 +232,13 @@ class PolicyBasedRoutingServiceConnection { DeletePolicyBasedRouteRequest const& request); virtual StatusOr DeletePolicyBasedRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1:: DeletePolicyBasedRouteRequest const& request); virtual future< StatusOr> - DeletePolicyBasedRoute(google::cloud::ExperimentalTag, + DeletePolicyBasedRoute(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.cc b/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.cc index 460441dc48551..b9d1ffd1797ba 100644 --- a/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.cc +++ b/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.cc @@ -78,7 +78,7 @@ ReachabilityServiceTracingConnection::CreateConnectivityTest( auto span = internal::MakeSpan( "networkmanagement_v1::ReachabilityServiceConnection::" "CreateConnectivityTest"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateConnectivityTest( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -117,7 +117,7 @@ ReachabilityServiceTracingConnection::UpdateConnectivityTest( auto span = internal::MakeSpan( "networkmanagement_v1::ReachabilityServiceConnection::" "UpdateConnectivityTest"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateConnectivityTest( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -156,7 +156,7 @@ ReachabilityServiceTracingConnection::RerunConnectivityTest( auto span = internal::MakeSpan( "networkmanagement_v1::ReachabilityServiceConnection::" "RerunConnectivityTest"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RerunConnectivityTest( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -195,7 +195,7 @@ ReachabilityServiceTracingConnection::DeleteConnectivityTest( auto span = internal::MakeSpan( "networkmanagement_v1::ReachabilityServiceConnection::" "DeleteConnectivityTest"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteConnectivityTest( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/networkmanagement/v1/reachability_connection.cc b/google/cloud/networkmanagement/v1/reachability_connection.cc index 11eb273120a8a..3d88a4d0a0275 100644 --- a/google/cloud/networkmanagement/v1/reachability_connection.cc +++ b/google/cloud/networkmanagement/v1/reachability_connection.cc @@ -63,7 +63,7 @@ ReachabilityServiceConnection::CreateConnectivityTest( StatusOr ReachabilityServiceConnection::CreateConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1:: CreateConnectivityTestRequest const&) { return StatusOr( @@ -72,7 +72,7 @@ ReachabilityServiceConnection::CreateConnectivityTest( future> ReachabilityServiceConnection::CreateConnectivityTest( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -89,7 +89,7 @@ ReachabilityServiceConnection::UpdateConnectivityTest( StatusOr ReachabilityServiceConnection::UpdateConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1:: UpdateConnectivityTestRequest const&) { return StatusOr( @@ -98,7 +98,7 @@ ReachabilityServiceConnection::UpdateConnectivityTest( future> ReachabilityServiceConnection::UpdateConnectivityTest( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -114,7 +114,7 @@ ReachabilityServiceConnection::RerunConnectivityTest( StatusOr ReachabilityServiceConnection::RerunConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -122,7 +122,7 @@ ReachabilityServiceConnection::RerunConnectivityTest( future> ReachabilityServiceConnection::RerunConnectivityTest( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -139,7 +139,7 @@ ReachabilityServiceConnection::DeleteConnectivityTest( StatusOr ReachabilityServiceConnection::DeleteConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1:: DeleteConnectivityTestRequest const&) { return StatusOr( @@ -148,7 +148,7 @@ ReachabilityServiceConnection::DeleteConnectivityTest( future> ReachabilityServiceConnection::DeleteConnectivityTest( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/networkmanagement/v1/reachability_connection.h b/google/cloud/networkmanagement/v1/reachability_connection.h index 89c5720eb5127..9224c00ffc619 100644 --- a/google/cloud/networkmanagement/v1/reachability_connection.h +++ b/google/cloud/networkmanagement/v1/reachability_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/networkmanagement/v1/internal/reachability_retry_traits.h" #include "google/cloud/networkmanagement/v1/reachability_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -208,13 +208,13 @@ class ReachabilityServiceConnection { request); virtual StatusOr CreateConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::CreateConnectivityTestRequest const& request); virtual future< StatusOr> - CreateConnectivityTest(google::cloud::ExperimentalTag, + CreateConnectivityTest(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -224,13 +224,13 @@ class ReachabilityServiceConnection { request); virtual StatusOr UpdateConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& request); virtual future< StatusOr> - UpdateConnectivityTest(google::cloud::ExperimentalTag, + UpdateConnectivityTest(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -240,13 +240,13 @@ class ReachabilityServiceConnection { request); virtual StatusOr RerunConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& request); virtual future< StatusOr> - RerunConnectivityTest(google::cloud::ExperimentalTag, + RerunConnectivityTest(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -256,13 +256,13 @@ class ReachabilityServiceConnection { request); virtual StatusOr DeleteConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& request); virtual future< StatusOr> - DeleteConnectivityTest(google::cloud::ExperimentalTag, + DeleteConnectivityTest(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.cc b/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.cc index 6d5a7cd623139..4b16bd37cf356 100644 --- a/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.cc +++ b/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.cc @@ -77,7 +77,7 @@ NetworkSecurityTracingConnection::CreateAuthorizationPolicy( auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::" "CreateAuthorizationPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateAuthorizationPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -116,7 +116,7 @@ NetworkSecurityTracingConnection::UpdateAuthorizationPolicy( auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::" "UpdateAuthorizationPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateAuthorizationPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -155,7 +155,7 @@ NetworkSecurityTracingConnection::DeleteAuthorizationPolicy( auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::" "DeleteAuthorizationPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteAuthorizationPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -214,7 +214,7 @@ NetworkSecurityTracingConnection::CreateServerTlsPolicy( request) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::CreateServerTlsPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateServerTlsPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -250,7 +250,7 @@ NetworkSecurityTracingConnection::UpdateServerTlsPolicy( request) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::UpdateServerTlsPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateServerTlsPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -286,7 +286,7 @@ NetworkSecurityTracingConnection::DeleteServerTlsPolicy( request) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::DeleteServerTlsPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteServerTlsPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -344,7 +344,7 @@ NetworkSecurityTracingConnection::CreateClientTlsPolicy( request) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::CreateClientTlsPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateClientTlsPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -380,7 +380,7 @@ NetworkSecurityTracingConnection::UpdateClientTlsPolicy( request) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::UpdateClientTlsPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateClientTlsPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -416,7 +416,7 @@ NetworkSecurityTracingConnection::DeleteClientTlsPolicy( request) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::DeleteClientTlsPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteClientTlsPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/networksecurity/v1/network_security_connection.cc b/google/cloud/networksecurity/v1/network_security_connection.cc index ccd88a3c13f62..a360d19e60cb5 100644 --- a/google/cloud/networksecurity/v1/network_security_connection.cc +++ b/google/cloud/networksecurity/v1/network_security_connection.cc @@ -63,7 +63,7 @@ NetworkSecurityConnection::CreateAuthorizationPolicy( StatusOr NetworkSecurityConnection::CreateAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1:: CreateAuthorizationPolicyRequest const&) { return StatusOr( @@ -72,7 +72,7 @@ NetworkSecurityConnection::CreateAuthorizationPolicy( future> NetworkSecurityConnection::CreateAuthorizationPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -89,7 +89,7 @@ NetworkSecurityConnection::UpdateAuthorizationPolicy( StatusOr NetworkSecurityConnection::UpdateAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1:: UpdateAuthorizationPolicyRequest const&) { return StatusOr( @@ -98,7 +98,7 @@ NetworkSecurityConnection::UpdateAuthorizationPolicy( future> NetworkSecurityConnection::UpdateAuthorizationPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -115,7 +115,7 @@ NetworkSecurityConnection::DeleteAuthorizationPolicy( StatusOr NetworkSecurityConnection::DeleteAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1:: DeleteAuthorizationPolicyRequest const&) { return StatusOr( @@ -124,7 +124,7 @@ NetworkSecurityConnection::DeleteAuthorizationPolicy( future> NetworkSecurityConnection::DeleteAuthorizationPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -154,7 +154,7 @@ NetworkSecurityConnection::CreateServerTlsPolicy( StatusOr NetworkSecurityConnection::CreateServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -162,7 +162,7 @@ NetworkSecurityConnection::CreateServerTlsPolicy( future> NetworkSecurityConnection::CreateServerTlsPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -178,7 +178,7 @@ NetworkSecurityConnection::UpdateServerTlsPolicy( StatusOr NetworkSecurityConnection::UpdateServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -186,7 +186,7 @@ NetworkSecurityConnection::UpdateServerTlsPolicy( future> NetworkSecurityConnection::UpdateServerTlsPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -202,7 +202,7 @@ NetworkSecurityConnection::DeleteServerTlsPolicy( StatusOr NetworkSecurityConnection::DeleteServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -210,7 +210,7 @@ NetworkSecurityConnection::DeleteServerTlsPolicy( future> NetworkSecurityConnection::DeleteServerTlsPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -240,7 +240,7 @@ NetworkSecurityConnection::CreateClientTlsPolicy( StatusOr NetworkSecurityConnection::CreateClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -248,7 +248,7 @@ NetworkSecurityConnection::CreateClientTlsPolicy( future> NetworkSecurityConnection::CreateClientTlsPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -264,7 +264,7 @@ NetworkSecurityConnection::UpdateClientTlsPolicy( StatusOr NetworkSecurityConnection::UpdateClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -272,7 +272,7 @@ NetworkSecurityConnection::UpdateClientTlsPolicy( future> NetworkSecurityConnection::UpdateClientTlsPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -288,7 +288,7 @@ NetworkSecurityConnection::DeleteClientTlsPolicy( StatusOr NetworkSecurityConnection::DeleteClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -296,7 +296,7 @@ NetworkSecurityConnection::DeleteClientTlsPolicy( future> NetworkSecurityConnection::DeleteClientTlsPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/networksecurity/v1/network_security_connection.h b/google/cloud/networksecurity/v1/network_security_connection.h index 46bf547c8239b..3c7975dc0e38c 100644 --- a/google/cloud/networksecurity/v1/network_security_connection.h +++ b/google/cloud/networksecurity/v1/network_security_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/networksecurity/v1/internal/network_security_retry_traits.h" #include "google/cloud/networksecurity/v1/network_security_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -206,13 +206,13 @@ class NetworkSecurityConnection { CreateAuthorizationPolicyRequest const& request); virtual StatusOr CreateAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1:: CreateAuthorizationPolicyRequest const& request); virtual future< StatusOr> - CreateAuthorizationPolicy(google::cloud::ExperimentalTag, + CreateAuthorizationPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -222,13 +222,13 @@ class NetworkSecurityConnection { UpdateAuthorizationPolicyRequest const& request); virtual StatusOr UpdateAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1:: UpdateAuthorizationPolicyRequest const& request); virtual future< StatusOr> - UpdateAuthorizationPolicy(google::cloud::ExperimentalTag, + UpdateAuthorizationPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -238,13 +238,13 @@ class NetworkSecurityConnection { DeleteAuthorizationPolicyRequest const& request); virtual StatusOr DeleteAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1:: DeleteAuthorizationPolicyRequest const& request); virtual future< StatusOr> - DeleteAuthorizationPolicy(google::cloud::ExperimentalTag, + DeleteAuthorizationPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -262,12 +262,12 @@ class NetworkSecurityConnection { request); virtual StatusOr CreateServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& request); virtual future> - CreateServerTlsPolicy(google::cloud::ExperimentalTag, + CreateServerTlsPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -276,12 +276,12 @@ class NetworkSecurityConnection { request); virtual StatusOr UpdateServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& request); virtual future> - UpdateServerTlsPolicy(google::cloud::ExperimentalTag, + UpdateServerTlsPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -291,13 +291,13 @@ class NetworkSecurityConnection { request); virtual StatusOr DeleteServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& request); virtual future< StatusOr> - DeleteServerTlsPolicy(google::cloud::ExperimentalTag, + DeleteServerTlsPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -315,12 +315,12 @@ class NetworkSecurityConnection { request); virtual StatusOr CreateClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& request); virtual future> - CreateClientTlsPolicy(google::cloud::ExperimentalTag, + CreateClientTlsPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -329,12 +329,12 @@ class NetworkSecurityConnection { request); virtual StatusOr UpdateClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& request); virtual future> - UpdateClientTlsPolicy(google::cloud::ExperimentalTag, + UpdateClientTlsPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -344,13 +344,13 @@ class NetworkSecurityConnection { request); virtual StatusOr DeleteClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& request); virtual future< StatusOr> - DeleteClientTlsPolicy(google::cloud::ExperimentalTag, + DeleteClientTlsPolicy(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/networkservices/v1/dep_connection.cc b/google/cloud/networkservices/v1/dep_connection.cc index d9850b12b83a7..c709c8b2aa230 100644 --- a/google/cloud/networkservices/v1/dep_connection.cc +++ b/google/cloud/networkservices/v1/dep_connection.cc @@ -63,7 +63,7 @@ DepServiceConnection::CreateLbTrafficExtension( StatusOr DepServiceConnection::CreateLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1:: CreateLbTrafficExtensionRequest const&) { return StatusOr( @@ -72,7 +72,7 @@ DepServiceConnection::CreateLbTrafficExtension( future> DepServiceConnection::CreateLbTrafficExtension( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -89,7 +89,7 @@ DepServiceConnection::UpdateLbTrafficExtension( StatusOr DepServiceConnection::UpdateLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1:: UpdateLbTrafficExtensionRequest const&) { return StatusOr( @@ -98,7 +98,7 @@ DepServiceConnection::UpdateLbTrafficExtension( future> DepServiceConnection::UpdateLbTrafficExtension( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -115,7 +115,7 @@ DepServiceConnection::DeleteLbTrafficExtension( StatusOr DepServiceConnection::DeleteLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1:: DeleteLbTrafficExtensionRequest const&) { return StatusOr( @@ -124,7 +124,7 @@ DepServiceConnection::DeleteLbTrafficExtension( future> DepServiceConnection::DeleteLbTrafficExtension( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -154,7 +154,7 @@ DepServiceConnection::CreateLbRouteExtension( StatusOr DepServiceConnection::CreateLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -162,7 +162,7 @@ DepServiceConnection::CreateLbRouteExtension( future> DepServiceConnection::CreateLbRouteExtension( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -178,7 +178,7 @@ DepServiceConnection::UpdateLbRouteExtension( StatusOr DepServiceConnection::UpdateLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -186,7 +186,7 @@ DepServiceConnection::UpdateLbRouteExtension( future> DepServiceConnection::UpdateLbRouteExtension( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -202,7 +202,7 @@ DepServiceConnection::DeleteLbRouteExtension( StatusOr DepServiceConnection::DeleteLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -210,7 +210,7 @@ DepServiceConnection::DeleteLbRouteExtension( future> DepServiceConnection::DeleteLbRouteExtension( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/networkservices/v1/dep_connection.h b/google/cloud/networkservices/v1/dep_connection.h index 1ab4e6e7e503c..478a84b0c1cd8 100644 --- a/google/cloud/networkservices/v1/dep_connection.h +++ b/google/cloud/networkservices/v1/dep_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/networkservices/v1/dep_connection_idempotency_policy.h" #include "google/cloud/networkservices/v1/internal/dep_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -203,13 +203,13 @@ class DepServiceConnection { request); virtual StatusOr CreateLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateLbTrafficExtensionRequest const& request); virtual future< StatusOr> - CreateLbTrafficExtension(google::cloud::ExperimentalTag, + CreateLbTrafficExtension(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -219,13 +219,13 @@ class DepServiceConnection { request); virtual StatusOr UpdateLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& request); virtual future< StatusOr> - UpdateLbTrafficExtension(google::cloud::ExperimentalTag, + UpdateLbTrafficExtension(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -235,13 +235,13 @@ class DepServiceConnection { request); virtual StatusOr DeleteLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& request); virtual future< StatusOr> - DeleteLbTrafficExtension(google::cloud::ExperimentalTag, + DeleteLbTrafficExtension(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -259,12 +259,12 @@ class DepServiceConnection { request); virtual StatusOr CreateLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& request); virtual future> - CreateLbRouteExtension(google::cloud::ExperimentalTag, + CreateLbRouteExtension(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -273,12 +273,12 @@ class DepServiceConnection { request); virtual StatusOr UpdateLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& request); virtual future> - UpdateLbRouteExtension(google::cloud::ExperimentalTag, + UpdateLbRouteExtension(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -288,13 +288,13 @@ class DepServiceConnection { request); virtual StatusOr DeleteLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& request); virtual future< StatusOr> - DeleteLbRouteExtension(google::cloud::ExperimentalTag, + DeleteLbRouteExtension(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/networkservices/v1/internal/dep_tracing_connection.cc b/google/cloud/networkservices/v1/internal/dep_tracing_connection.cc index 158024bbaee9a..db98c3f13cfb5 100644 --- a/google/cloud/networkservices/v1/internal/dep_tracing_connection.cc +++ b/google/cloud/networkservices/v1/internal/dep_tracing_connection.cc @@ -74,7 +74,7 @@ DepServiceTracingConnection::CreateLbTrafficExtension( request) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::CreateLbTrafficExtension"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateLbTrafficExtension( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -110,7 +110,7 @@ DepServiceTracingConnection::UpdateLbTrafficExtension( request) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::UpdateLbTrafficExtension"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateLbTrafficExtension( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -146,7 +146,7 @@ DepServiceTracingConnection::DeleteLbTrafficExtension( request) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::DeleteLbTrafficExtension"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteLbTrafficExtension( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -204,7 +204,7 @@ DepServiceTracingConnection::CreateLbRouteExtension( request) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::CreateLbRouteExtension"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateLbRouteExtension( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -240,7 +240,7 @@ DepServiceTracingConnection::UpdateLbRouteExtension( request) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::UpdateLbRouteExtension"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateLbRouteExtension( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -276,7 +276,7 @@ DepServiceTracingConnection::DeleteLbRouteExtension( request) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::DeleteLbRouteExtension"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteLbRouteExtension( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/networkservices/v1/internal/network_services_tracing_connection.cc b/google/cloud/networkservices/v1/internal/network_services_tracing_connection.cc index b989e9b4aa2c0..43a126d1206b2 100644 --- a/google/cloud/networkservices/v1/internal/network_services_tracing_connection.cc +++ b/google/cloud/networkservices/v1/internal/network_services_tracing_connection.cc @@ -73,7 +73,7 @@ NetworkServicesTracingConnection::CreateEndpointPolicy( request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateEndpointPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateEndpointPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -109,7 +109,7 @@ NetworkServicesTracingConnection::UpdateEndpointPolicy( request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateEndpointPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateEndpointPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -145,7 +145,7 @@ NetworkServicesTracingConnection::DeleteEndpointPolicy( request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteEndpointPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteEndpointPolicy( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -199,7 +199,7 @@ NetworkServicesTracingConnection::CreateGateway( google::cloud::networkservices::v1::CreateGatewayRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateGateway"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateGateway(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -232,7 +232,7 @@ NetworkServicesTracingConnection::UpdateGateway( google::cloud::networkservices::v1::UpdateGatewayRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateGateway"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateGateway(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -265,7 +265,7 @@ NetworkServicesTracingConnection::DeleteGateway( google::cloud::networkservices::v1::DeleteGatewayRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteGateway"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteGateway(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -319,7 +319,7 @@ NetworkServicesTracingConnection::CreateGrpcRoute( google::cloud::networkservices::v1::CreateGrpcRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateGrpcRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateGrpcRoute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -352,7 +352,7 @@ NetworkServicesTracingConnection::UpdateGrpcRoute( google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateGrpcRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateGrpcRoute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -385,7 +385,7 @@ NetworkServicesTracingConnection::DeleteGrpcRoute( google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteGrpcRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteGrpcRoute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -439,7 +439,7 @@ NetworkServicesTracingConnection::CreateHttpRoute( google::cloud::networkservices::v1::CreateHttpRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateHttpRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateHttpRoute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -472,7 +472,7 @@ NetworkServicesTracingConnection::UpdateHttpRoute( google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateHttpRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateHttpRoute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -505,7 +505,7 @@ NetworkServicesTracingConnection::DeleteHttpRoute( google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteHttpRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteHttpRoute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -559,7 +559,7 @@ NetworkServicesTracingConnection::CreateTcpRoute( google::cloud::networkservices::v1::CreateTcpRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateTcpRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateTcpRoute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -592,7 +592,7 @@ NetworkServicesTracingConnection::UpdateTcpRoute( google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateTcpRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateTcpRoute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -625,7 +625,7 @@ NetworkServicesTracingConnection::DeleteTcpRoute( google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteTcpRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteTcpRoute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -679,7 +679,7 @@ NetworkServicesTracingConnection::CreateTlsRoute( google::cloud::networkservices::v1::CreateTlsRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateTlsRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateTlsRoute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -712,7 +712,7 @@ NetworkServicesTracingConnection::UpdateTlsRoute( google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateTlsRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateTlsRoute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -745,7 +745,7 @@ NetworkServicesTracingConnection::DeleteTlsRoute( google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteTlsRoute"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteTlsRoute(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -803,7 +803,7 @@ NetworkServicesTracingConnection::CreateServiceBinding( request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateServiceBinding"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateServiceBinding( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -839,7 +839,7 @@ NetworkServicesTracingConnection::DeleteServiceBinding( request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteServiceBinding"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteServiceBinding( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -892,7 +892,7 @@ NetworkServicesTracingConnection::CreateMesh( google::cloud::networkservices::v1::CreateMeshRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateMesh"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateMesh(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -925,7 +925,7 @@ NetworkServicesTracingConnection::UpdateMesh( google::cloud::networkservices::v1::UpdateMeshRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateMesh"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateMesh(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -958,7 +958,7 @@ NetworkServicesTracingConnection::DeleteMesh( google::cloud::networkservices::v1::DeleteMeshRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteMesh"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteMesh(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/networkservices/v1/network_services_connection.cc b/google/cloud/networkservices/v1/network_services_connection.cc index 5cafe8af50cff..bc5a2663d4bc9 100644 --- a/google/cloud/networkservices/v1/network_services_connection.cc +++ b/google/cloud/networkservices/v1/network_services_connection.cc @@ -62,7 +62,7 @@ NetworkServicesConnection::CreateEndpointPolicy( StatusOr NetworkServicesConnection::CreateEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateEndpointPolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ NetworkServicesConnection::CreateEndpointPolicy( future> NetworkServicesConnection::CreateEndpointPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ NetworkServicesConnection::UpdateEndpointPolicy( StatusOr NetworkServicesConnection::UpdateEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ NetworkServicesConnection::UpdateEndpointPolicy( future> NetworkServicesConnection::UpdateEndpointPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ NetworkServicesConnection::DeleteEndpointPolicy( StatusOr NetworkServicesConnection::DeleteEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ NetworkServicesConnection::DeleteEndpointPolicy( future> NetworkServicesConnection::DeleteEndpointPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -148,7 +148,7 @@ NetworkServicesConnection::CreateGateway( StatusOr NetworkServicesConnection::CreateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateGatewayRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -156,7 +156,7 @@ NetworkServicesConnection::CreateGateway( future> NetworkServicesConnection::CreateGateway( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -172,7 +172,7 @@ NetworkServicesConnection::UpdateGateway( StatusOr NetworkServicesConnection::UpdateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateGatewayRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -180,7 +180,7 @@ NetworkServicesConnection::UpdateGateway( future> NetworkServicesConnection::UpdateGateway( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -196,7 +196,7 @@ NetworkServicesConnection::DeleteGateway( StatusOr NetworkServicesConnection::DeleteGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteGatewayRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -204,7 +204,7 @@ NetworkServicesConnection::DeleteGateway( future> NetworkServicesConnection::DeleteGateway( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -234,7 +234,7 @@ NetworkServicesConnection::CreateGrpcRoute( StatusOr NetworkServicesConnection::CreateGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateGrpcRouteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -242,7 +242,7 @@ NetworkServicesConnection::CreateGrpcRoute( future> NetworkServicesConnection::CreateGrpcRoute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -258,7 +258,7 @@ NetworkServicesConnection::UpdateGrpcRoute( StatusOr NetworkServicesConnection::UpdateGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateGrpcRouteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -266,7 +266,7 @@ NetworkServicesConnection::UpdateGrpcRoute( future> NetworkServicesConnection::UpdateGrpcRoute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -282,7 +282,7 @@ NetworkServicesConnection::DeleteGrpcRoute( StatusOr NetworkServicesConnection::DeleteGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteGrpcRouteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -290,7 +290,7 @@ NetworkServicesConnection::DeleteGrpcRoute( future> NetworkServicesConnection::DeleteGrpcRoute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -320,7 +320,7 @@ NetworkServicesConnection::CreateHttpRoute( StatusOr NetworkServicesConnection::CreateHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateHttpRouteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -328,7 +328,7 @@ NetworkServicesConnection::CreateHttpRoute( future> NetworkServicesConnection::CreateHttpRoute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -344,7 +344,7 @@ NetworkServicesConnection::UpdateHttpRoute( StatusOr NetworkServicesConnection::UpdateHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateHttpRouteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -352,7 +352,7 @@ NetworkServicesConnection::UpdateHttpRoute( future> NetworkServicesConnection::UpdateHttpRoute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -368,7 +368,7 @@ NetworkServicesConnection::DeleteHttpRoute( StatusOr NetworkServicesConnection::DeleteHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteHttpRouteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -376,7 +376,7 @@ NetworkServicesConnection::DeleteHttpRoute( future> NetworkServicesConnection::DeleteHttpRoute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -406,7 +406,7 @@ NetworkServicesConnection::CreateTcpRoute( StatusOr NetworkServicesConnection::CreateTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateTcpRouteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -414,7 +414,7 @@ NetworkServicesConnection::CreateTcpRoute( future> NetworkServicesConnection::CreateTcpRoute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -430,7 +430,7 @@ NetworkServicesConnection::UpdateTcpRoute( StatusOr NetworkServicesConnection::UpdateTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateTcpRouteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -438,7 +438,7 @@ NetworkServicesConnection::UpdateTcpRoute( future> NetworkServicesConnection::UpdateTcpRoute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -454,7 +454,7 @@ NetworkServicesConnection::DeleteTcpRoute( StatusOr NetworkServicesConnection::DeleteTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteTcpRouteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -462,7 +462,7 @@ NetworkServicesConnection::DeleteTcpRoute( future> NetworkServicesConnection::DeleteTcpRoute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -492,7 +492,7 @@ NetworkServicesConnection::CreateTlsRoute( StatusOr NetworkServicesConnection::CreateTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateTlsRouteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -500,7 +500,7 @@ NetworkServicesConnection::CreateTlsRoute( future> NetworkServicesConnection::CreateTlsRoute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -516,7 +516,7 @@ NetworkServicesConnection::UpdateTlsRoute( StatusOr NetworkServicesConnection::UpdateTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateTlsRouteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -524,7 +524,7 @@ NetworkServicesConnection::UpdateTlsRoute( future> NetworkServicesConnection::UpdateTlsRoute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -540,7 +540,7 @@ NetworkServicesConnection::DeleteTlsRoute( StatusOr NetworkServicesConnection::DeleteTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteTlsRouteRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -548,7 +548,7 @@ NetworkServicesConnection::DeleteTlsRoute( future> NetworkServicesConnection::DeleteTlsRoute( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -578,7 +578,7 @@ NetworkServicesConnection::CreateServiceBinding( StatusOr NetworkServicesConnection::CreateServiceBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateServiceBindingRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -586,7 +586,7 @@ NetworkServicesConnection::CreateServiceBinding( future> NetworkServicesConnection::CreateServiceBinding( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -602,7 +602,7 @@ NetworkServicesConnection::DeleteServiceBinding( StatusOr NetworkServicesConnection::DeleteServiceBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteServiceBindingRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -610,7 +610,7 @@ NetworkServicesConnection::DeleteServiceBinding( future> NetworkServicesConnection::DeleteServiceBinding( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -639,14 +639,14 @@ NetworkServicesConnection::CreateMesh( } StatusOr NetworkServicesConnection::CreateMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateMeshRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetworkServicesConnection::CreateMesh(google::cloud::ExperimentalTag, +NetworkServicesConnection::CreateMesh(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -662,14 +662,14 @@ NetworkServicesConnection::UpdateMesh( } StatusOr NetworkServicesConnection::UpdateMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateMeshRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetworkServicesConnection::UpdateMesh(google::cloud::ExperimentalTag, +NetworkServicesConnection::UpdateMesh(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -685,14 +685,14 @@ NetworkServicesConnection::DeleteMesh( } StatusOr NetworkServicesConnection::DeleteMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteMeshRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NetworkServicesConnection::DeleteMesh(google::cloud::ExperimentalTag, +NetworkServicesConnection::DeleteMesh(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/networkservices/v1/network_services_connection.h b/google/cloud/networkservices/v1/network_services_connection.h index 83af93b9737ab..8579f2d834828 100644 --- a/google/cloud/networkservices/v1/network_services_connection.h +++ b/google/cloud/networkservices/v1/network_services_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/networkservices/v1/internal/network_services_retry_traits.h" #include "google/cloud/networkservices/v1/network_services_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -203,12 +203,12 @@ class NetworkServicesConnection { request); virtual StatusOr CreateEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& request); virtual future> - CreateEndpointPolicy(google::cloud::ExperimentalTag, + CreateEndpointPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -217,12 +217,12 @@ class NetworkServicesConnection { request); virtual StatusOr UpdateEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& request); virtual future> - UpdateEndpointPolicy(google::cloud::ExperimentalTag, + UpdateEndpointPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -232,13 +232,13 @@ class NetworkServicesConnection { request); virtual StatusOr DeleteEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& request); virtual future< StatusOr> - DeleteEndpointPolicy(google::cloud::ExperimentalTag, + DeleteEndpointPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListGateways( @@ -252,11 +252,11 @@ class NetworkServicesConnection { google::cloud::networkservices::v1::CreateGatewayRequest const& request); virtual StatusOr CreateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateGatewayRequest const& request); virtual future> - CreateGateway(google::cloud::ExperimentalTag, + CreateGateway(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -264,11 +264,11 @@ class NetworkServicesConnection { google::cloud::networkservices::v1::UpdateGatewayRequest const& request); virtual StatusOr UpdateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateGatewayRequest const& request); virtual future> - UpdateGateway(google::cloud::ExperimentalTag, + UpdateGateway(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -277,12 +277,12 @@ class NetworkServicesConnection { google::cloud::networkservices::v1::DeleteGatewayRequest const& request); virtual StatusOr DeleteGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteGatewayRequest const& request); virtual future< StatusOr> - DeleteGateway(google::cloud::ExperimentalTag, + DeleteGateway(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -298,12 +298,12 @@ class NetworkServicesConnection { request); virtual StatusOr CreateGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateGrpcRouteRequest const& request); virtual future> - CreateGrpcRoute(google::cloud::ExperimentalTag, + CreateGrpcRoute(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -312,12 +312,12 @@ class NetworkServicesConnection { request); virtual StatusOr UpdateGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request); virtual future> - UpdateGrpcRoute(google::cloud::ExperimentalTag, + UpdateGrpcRoute(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -327,13 +327,13 @@ class NetworkServicesConnection { request); virtual StatusOr DeleteGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request); virtual future< StatusOr> - DeleteGrpcRoute(google::cloud::ExperimentalTag, + DeleteGrpcRoute(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -349,12 +349,12 @@ class NetworkServicesConnection { request); virtual StatusOr CreateHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateHttpRouteRequest const& request); virtual future> - CreateHttpRoute(google::cloud::ExperimentalTag, + CreateHttpRoute(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -363,12 +363,12 @@ class NetworkServicesConnection { request); virtual StatusOr UpdateHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request); virtual future> - UpdateHttpRoute(google::cloud::ExperimentalTag, + UpdateHttpRoute(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -378,13 +378,13 @@ class NetworkServicesConnection { request); virtual StatusOr DeleteHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request); virtual future< StatusOr> - DeleteHttpRoute(google::cloud::ExperimentalTag, + DeleteHttpRoute(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -399,11 +399,11 @@ class NetworkServicesConnection { google::cloud::networkservices::v1::CreateTcpRouteRequest const& request); virtual StatusOr CreateTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateTcpRouteRequest const& request); virtual future> - CreateTcpRoute(google::cloud::ExperimentalTag, + CreateTcpRoute(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -411,11 +411,11 @@ class NetworkServicesConnection { google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request); virtual StatusOr UpdateTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request); virtual future> - UpdateTcpRoute(google::cloud::ExperimentalTag, + UpdateTcpRoute(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -424,12 +424,12 @@ class NetworkServicesConnection { google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request); virtual StatusOr DeleteTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request); virtual future< StatusOr> - DeleteTcpRoute(google::cloud::ExperimentalTag, + DeleteTcpRoute(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -444,11 +444,11 @@ class NetworkServicesConnection { google::cloud::networkservices::v1::CreateTlsRouteRequest const& request); virtual StatusOr CreateTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateTlsRouteRequest const& request); virtual future> - CreateTlsRoute(google::cloud::ExperimentalTag, + CreateTlsRoute(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -456,11 +456,11 @@ class NetworkServicesConnection { google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request); virtual StatusOr UpdateTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request); virtual future> - UpdateTlsRoute(google::cloud::ExperimentalTag, + UpdateTlsRoute(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -469,12 +469,12 @@ class NetworkServicesConnection { google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request); virtual StatusOr DeleteTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request); virtual future< StatusOr> - DeleteTlsRoute(google::cloud::ExperimentalTag, + DeleteTlsRoute(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -492,12 +492,12 @@ class NetworkServicesConnection { request); virtual StatusOr CreateServiceBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateServiceBindingRequest const& request); virtual future> - CreateServiceBinding(google::cloud::ExperimentalTag, + CreateServiceBinding(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -507,13 +507,13 @@ class NetworkServicesConnection { request); virtual StatusOr DeleteServiceBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteServiceBindingRequest const& request); virtual future< StatusOr> - DeleteServiceBinding(google::cloud::ExperimentalTag, + DeleteServiceBinding(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListMeshes( @@ -526,23 +526,21 @@ class NetworkServicesConnection { google::cloud::networkservices::v1::CreateMeshRequest const& request); virtual StatusOr CreateMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateMeshRequest const& request); virtual future> CreateMesh( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateMesh( google::cloud::networkservices::v1::UpdateMeshRequest const& request); virtual StatusOr UpdateMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateMeshRequest const& request); virtual future> UpdateMesh( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> @@ -550,13 +548,12 @@ class NetworkServicesConnection { google::cloud::networkservices::v1::DeleteMeshRequest const& request); virtual StatusOr DeleteMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteMeshRequest const& request); virtual future< StatusOr> - DeleteMesh(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteMesh(ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.cc b/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.cc index d9a572cbedbb0..5430170e9c236 100644 --- a/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.cc +++ b/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.cc @@ -69,7 +69,7 @@ ManagedNotebookServiceTracingConnection::CreateRuntime( google::cloud::notebooks::v1::CreateRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::CreateRuntime"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateRuntime(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -102,7 +102,7 @@ ManagedNotebookServiceTracingConnection::UpdateRuntime( google::cloud::notebooks::v1::UpdateRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::UpdateRuntime"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateRuntime(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ ManagedNotebookServiceTracingConnection::DeleteRuntime( google::cloud::notebooks::v1::DeleteRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::DeleteRuntime"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteRuntime(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -168,7 +168,7 @@ ManagedNotebookServiceTracingConnection::StartRuntime( google::cloud::notebooks::v1::StartRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::StartRuntime"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StartRuntime(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -201,7 +201,7 @@ ManagedNotebookServiceTracingConnection::StopRuntime( google::cloud::notebooks::v1::StopRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::StopRuntime"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StopRuntime(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -234,7 +234,7 @@ ManagedNotebookServiceTracingConnection::SwitchRuntime( google::cloud::notebooks::v1::SwitchRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::SwitchRuntime"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SwitchRuntime(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -267,7 +267,7 @@ ManagedNotebookServiceTracingConnection::ResetRuntime( google::cloud::notebooks::v1::ResetRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::ResetRuntime"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ResetRuntime(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -300,7 +300,7 @@ ManagedNotebookServiceTracingConnection::UpgradeRuntime( google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::UpgradeRuntime"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpgradeRuntime(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -334,7 +334,7 @@ ManagedNotebookServiceTracingConnection::ReportRuntimeEvent( google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::ReportRuntimeEvent"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ReportRuntimeEvent(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -378,7 +378,7 @@ ManagedNotebookServiceTracingConnection::DiagnoseRuntime( google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::DiagnoseRuntime"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DiagnoseRuntime(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/notebooks/v1/internal/notebook_tracing_connection.cc b/google/cloud/notebooks/v1/internal/notebook_tracing_connection.cc index cc4a3b93c9569..5705c1ce2b36e 100644 --- a/google/cloud/notebooks/v1/internal/notebook_tracing_connection.cc +++ b/google/cloud/notebooks/v1/internal/notebook_tracing_connection.cc @@ -68,7 +68,7 @@ NotebookServiceTracingConnection::CreateInstance( google::cloud::notebooks::v1::CreateInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::CreateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ NotebookServiceTracingConnection::RegisterInstance( google::cloud::notebooks::v1::RegisterInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::RegisterInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RegisterInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -137,7 +137,7 @@ NotebookServiceTracingConnection::SetInstanceAccelerator( request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::SetInstanceAccelerator"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SetInstanceAccelerator( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -173,7 +173,7 @@ NotebookServiceTracingConnection::SetInstanceMachineType( request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::SetInstanceMachineType"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->SetInstanceMachineType( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -207,7 +207,7 @@ NotebookServiceTracingConnection::UpdateInstanceConfig( google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::UpdateInstanceConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateInstanceConfig( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -243,7 +243,7 @@ NotebookServiceTracingConnection::UpdateShieldedInstanceConfig( request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::UpdateShieldedInstanceConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateShieldedInstanceConfig( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -276,7 +276,7 @@ NotebookServiceTracingConnection::SetInstanceLabels( google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::SetInstanceLabels"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetInstanceLabels(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -319,7 +319,7 @@ NotebookServiceTracingConnection::DeleteInstance( google::cloud::notebooks::v1::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::DeleteInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -352,7 +352,7 @@ NotebookServiceTracingConnection::StartInstance( google::cloud::notebooks::v1::StartInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::StartInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StartInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -385,7 +385,7 @@ NotebookServiceTracingConnection::StopInstance( google::cloud::notebooks::v1::StopInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::StopInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StopInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -418,7 +418,7 @@ NotebookServiceTracingConnection::ResetInstance( google::cloud::notebooks::v1::ResetInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::ResetInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ResetInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -452,7 +452,7 @@ NotebookServiceTracingConnection::ReportInstanceInfo( google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::ReportInstanceInfo"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ReportInstanceInfo(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -503,7 +503,7 @@ NotebookServiceTracingConnection::UpgradeInstance( google::cloud::notebooks::v1::UpgradeInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::UpgradeInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpgradeInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -536,7 +536,7 @@ NotebookServiceTracingConnection::RollbackInstance( google::cloud::notebooks::v1::RollbackInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::RollbackInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RollbackInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -569,7 +569,7 @@ NotebookServiceTracingConnection::DiagnoseInstance( google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::DiagnoseInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DiagnoseInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -605,7 +605,7 @@ NotebookServiceTracingConnection::UpgradeInstanceInternal( request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::UpgradeInstanceInternal"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpgradeInstanceInternal( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -659,7 +659,7 @@ NotebookServiceTracingConnection::CreateEnvironment( google::cloud::notebooks::v1::CreateEnvironmentRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::CreateEnvironment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateEnvironment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -692,7 +692,7 @@ NotebookServiceTracingConnection::DeleteEnvironment( google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::DeleteEnvironment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteEnvironment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -745,7 +745,7 @@ NotebookServiceTracingConnection::DeleteSchedule( google::cloud::notebooks::v1::DeleteScheduleRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::DeleteSchedule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSchedule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -778,7 +778,7 @@ NotebookServiceTracingConnection::CreateSchedule( google::cloud::notebooks::v1::CreateScheduleRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::CreateSchedule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateSchedule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -811,7 +811,7 @@ NotebookServiceTracingConnection::TriggerSchedule( google::cloud::notebooks::v1::TriggerScheduleRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::TriggerSchedule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->TriggerSchedule(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -864,7 +864,7 @@ NotebookServiceTracingConnection::DeleteExecution( google::cloud::notebooks::v1::DeleteExecutionRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::DeleteExecution"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteExecution(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -897,7 +897,7 @@ NotebookServiceTracingConnection::CreateExecution( google::cloud::notebooks::v1::CreateExecutionRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::CreateExecution"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateExecution(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/notebooks/v1/managed_notebook_connection.cc b/google/cloud/notebooks/v1/managed_notebook_connection.cc index 41cd76779a560..c37ebbb2857c6 100644 --- a/google/cloud/notebooks/v1/managed_notebook_connection.cc +++ b/google/cloud/notebooks/v1/managed_notebook_connection.cc @@ -62,7 +62,7 @@ ManagedNotebookServiceConnection::CreateRuntime( StatusOr ManagedNotebookServiceConnection::CreateRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateRuntimeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ ManagedNotebookServiceConnection::CreateRuntime( future> ManagedNotebookServiceConnection::CreateRuntime( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ ManagedNotebookServiceConnection::UpdateRuntime( StatusOr ManagedNotebookServiceConnection::UpdateRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateRuntimeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ ManagedNotebookServiceConnection::UpdateRuntime( future> ManagedNotebookServiceConnection::UpdateRuntime( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ ManagedNotebookServiceConnection::DeleteRuntime( StatusOr ManagedNotebookServiceConnection::DeleteRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteRuntimeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ ManagedNotebookServiceConnection::DeleteRuntime( future> ManagedNotebookServiceConnection::DeleteRuntime( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,7 +134,7 @@ ManagedNotebookServiceConnection::StartRuntime( StatusOr ManagedNotebookServiceConnection::StartRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StartRuntimeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +142,7 @@ ManagedNotebookServiceConnection::StartRuntime( future> ManagedNotebookServiceConnection::StartRuntime( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -158,7 +158,7 @@ ManagedNotebookServiceConnection::StopRuntime( StatusOr ManagedNotebookServiceConnection::StopRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StopRuntimeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -166,7 +166,7 @@ ManagedNotebookServiceConnection::StopRuntime( future> ManagedNotebookServiceConnection::StopRuntime( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -182,7 +182,7 @@ ManagedNotebookServiceConnection::SwitchRuntime( StatusOr ManagedNotebookServiceConnection::SwitchRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SwitchRuntimeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -190,7 +190,7 @@ ManagedNotebookServiceConnection::SwitchRuntime( future> ManagedNotebookServiceConnection::SwitchRuntime( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -206,7 +206,7 @@ ManagedNotebookServiceConnection::ResetRuntime( StatusOr ManagedNotebookServiceConnection::ResetRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ResetRuntimeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -214,7 +214,7 @@ ManagedNotebookServiceConnection::ResetRuntime( future> ManagedNotebookServiceConnection::ResetRuntime( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -230,7 +230,7 @@ ManagedNotebookServiceConnection::UpgradeRuntime( StatusOr ManagedNotebookServiceConnection::UpgradeRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeRuntimeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -238,7 +238,7 @@ ManagedNotebookServiceConnection::UpgradeRuntime( future> ManagedNotebookServiceConnection::UpgradeRuntime( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -254,7 +254,7 @@ ManagedNotebookServiceConnection::ReportRuntimeEvent( StatusOr ManagedNotebookServiceConnection::ReportRuntimeEvent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ReportRuntimeEventRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -262,7 +262,7 @@ ManagedNotebookServiceConnection::ReportRuntimeEvent( future> ManagedNotebookServiceConnection::ReportRuntimeEvent( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -284,7 +284,7 @@ ManagedNotebookServiceConnection::DiagnoseRuntime( StatusOr ManagedNotebookServiceConnection::DiagnoseRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DiagnoseRuntimeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -292,7 +292,7 @@ ManagedNotebookServiceConnection::DiagnoseRuntime( future> ManagedNotebookServiceConnection::DiagnoseRuntime( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/notebooks/v1/managed_notebook_connection.h b/google/cloud/notebooks/v1/managed_notebook_connection.h index 2e47b6ee5ee27..8a9eca0f0231e 100644 --- a/google/cloud/notebooks/v1/managed_notebook_connection.h +++ b/google/cloud/notebooks/v1/managed_notebook_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/notebooks/v1/internal/managed_notebook_retry_traits.h" #include "google/cloud/notebooks/v1/managed_notebook_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -204,90 +204,84 @@ class ManagedNotebookServiceConnection { google::cloud::notebooks::v1::CreateRuntimeRequest const& request); virtual StatusOr CreateRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateRuntimeRequest const& request); virtual future> CreateRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateRuntime( google::cloud::notebooks::v1::UpdateRuntimeRequest const& request); virtual StatusOr UpdateRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateRuntimeRequest const& request); virtual future> UpdateRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteRuntime( google::cloud::notebooks::v1::DeleteRuntimeRequest const& request); virtual StatusOr DeleteRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteRuntimeRequest const& request); virtual future> - DeleteRuntime(google::cloud::ExperimentalTag, + DeleteRuntime(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> StartRuntime( google::cloud::notebooks::v1::StartRuntimeRequest const& request); virtual StatusOr StartRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StartRuntimeRequest const& request); virtual future> StartRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> StopRuntime( google::cloud::notebooks::v1::StopRuntimeRequest const& request); virtual StatusOr StopRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StopRuntimeRequest const& request); virtual future> StopRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> SwitchRuntime( google::cloud::notebooks::v1::SwitchRuntimeRequest const& request); virtual StatusOr SwitchRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SwitchRuntimeRequest const& request); virtual future> SwitchRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ResetRuntime( google::cloud::notebooks::v1::ResetRuntimeRequest const& request); virtual StatusOr ResetRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ResetRuntimeRequest const& request); virtual future> ResetRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpgradeRuntime( google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request); virtual StatusOr UpgradeRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request); virtual future> - UpgradeRuntime(google::cloud::ExperimentalTag, + UpgradeRuntime(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -295,11 +289,11 @@ class ManagedNotebookServiceConnection { google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request); virtual StatusOr ReportRuntimeEvent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request); virtual future> - ReportRuntimeEvent(google::cloud::ExperimentalTag, + ReportRuntimeEvent(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< @@ -313,11 +307,11 @@ class ManagedNotebookServiceConnection { google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request); virtual StatusOr DiagnoseRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request); virtual future> - DiagnoseRuntime(google::cloud::ExperimentalTag, + DiagnoseRuntime(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/notebooks/v1/notebook_connection.cc b/google/cloud/notebooks/v1/notebook_connection.cc index 77f93cf0a79a4..ffca39f9e9378 100644 --- a/google/cloud/notebooks/v1/notebook_connection.cc +++ b/google/cloud/notebooks/v1/notebook_connection.cc @@ -62,7 +62,7 @@ NotebookServiceConnection::CreateInstance( StatusOr NotebookServiceConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ NotebookServiceConnection::CreateInstance( future> NotebookServiceConnection::CreateInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ NotebookServiceConnection::RegisterInstance( StatusOr NotebookServiceConnection::RegisterInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::RegisterInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ NotebookServiceConnection::RegisterInstance( future> NotebookServiceConnection::RegisterInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ NotebookServiceConnection::SetInstanceAccelerator( StatusOr NotebookServiceConnection::SetInstanceAccelerator( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ NotebookServiceConnection::SetInstanceAccelerator( future> NotebookServiceConnection::SetInstanceAccelerator( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,7 +134,7 @@ NotebookServiceConnection::SetInstanceMachineType( StatusOr NotebookServiceConnection::SetInstanceMachineType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +142,7 @@ NotebookServiceConnection::SetInstanceMachineType( future> NotebookServiceConnection::SetInstanceMachineType( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -158,7 +158,7 @@ NotebookServiceConnection::UpdateInstanceConfig( StatusOr NotebookServiceConnection::UpdateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateInstanceConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -166,7 +166,7 @@ NotebookServiceConnection::UpdateInstanceConfig( future> NotebookServiceConnection::UpdateInstanceConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -182,7 +182,7 @@ NotebookServiceConnection::UpdateShieldedInstanceConfig( StatusOr NotebookServiceConnection::UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -190,7 +190,7 @@ NotebookServiceConnection::UpdateShieldedInstanceConfig( future> NotebookServiceConnection::UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -206,7 +206,7 @@ NotebookServiceConnection::SetInstanceLabels( StatusOr NotebookServiceConnection::SetInstanceLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceLabelsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -214,7 +214,7 @@ NotebookServiceConnection::SetInstanceLabels( future> NotebookServiceConnection::SetInstanceLabels( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -236,7 +236,7 @@ NotebookServiceConnection::DeleteInstance( StatusOr NotebookServiceConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -244,7 +244,7 @@ NotebookServiceConnection::DeleteInstance( future> NotebookServiceConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -260,7 +260,7 @@ NotebookServiceConnection::StartInstance( StatusOr NotebookServiceConnection::StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StartInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -268,7 +268,7 @@ NotebookServiceConnection::StartInstance( future> NotebookServiceConnection::StartInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -284,14 +284,14 @@ NotebookServiceConnection::StopInstance( StatusOr NotebookServiceConnection::StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StopInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NotebookServiceConnection::StopInstance(google::cloud::ExperimentalTag, +NotebookServiceConnection::StopInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -308,7 +308,7 @@ NotebookServiceConnection::ResetInstance( StatusOr NotebookServiceConnection::ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ResetInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -316,7 +316,7 @@ NotebookServiceConnection::ResetInstance( future> NotebookServiceConnection::ResetInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -332,7 +332,7 @@ NotebookServiceConnection::ReportInstanceInfo( StatusOr NotebookServiceConnection::ReportInstanceInfo( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ReportInstanceInfoRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -340,7 +340,7 @@ NotebookServiceConnection::ReportInstanceInfo( future> NotebookServiceConnection::ReportInstanceInfo( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -368,7 +368,7 @@ NotebookServiceConnection::UpgradeInstance( StatusOr NotebookServiceConnection::UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -376,7 +376,7 @@ NotebookServiceConnection::UpgradeInstance( future> NotebookServiceConnection::UpgradeInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -392,7 +392,7 @@ NotebookServiceConnection::RollbackInstance( StatusOr NotebookServiceConnection::RollbackInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::RollbackInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -400,7 +400,7 @@ NotebookServiceConnection::RollbackInstance( future> NotebookServiceConnection::RollbackInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -416,7 +416,7 @@ NotebookServiceConnection::DiagnoseInstance( StatusOr NotebookServiceConnection::DiagnoseInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DiagnoseInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -424,7 +424,7 @@ NotebookServiceConnection::DiagnoseInstance( future> NotebookServiceConnection::DiagnoseInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -440,7 +440,7 @@ NotebookServiceConnection::UpgradeInstanceInternal( StatusOr NotebookServiceConnection::UpgradeInstanceInternal( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -448,7 +448,7 @@ NotebookServiceConnection::UpgradeInstanceInternal( future> NotebookServiceConnection::UpgradeInstanceInternal( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -478,7 +478,7 @@ NotebookServiceConnection::CreateEnvironment( StatusOr NotebookServiceConnection::CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateEnvironmentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -486,7 +486,7 @@ NotebookServiceConnection::CreateEnvironment( future> NotebookServiceConnection::CreateEnvironment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -502,7 +502,7 @@ NotebookServiceConnection::DeleteEnvironment( StatusOr NotebookServiceConnection::DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteEnvironmentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -510,7 +510,7 @@ NotebookServiceConnection::DeleteEnvironment( future> NotebookServiceConnection::DeleteEnvironment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -540,7 +540,7 @@ NotebookServiceConnection::DeleteSchedule( StatusOr NotebookServiceConnection::DeleteSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteScheduleRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -548,7 +548,7 @@ NotebookServiceConnection::DeleteSchedule( future> NotebookServiceConnection::DeleteSchedule( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -564,7 +564,7 @@ NotebookServiceConnection::CreateSchedule( StatusOr NotebookServiceConnection::CreateSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateScheduleRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -572,7 +572,7 @@ NotebookServiceConnection::CreateSchedule( future> NotebookServiceConnection::CreateSchedule( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -588,7 +588,7 @@ NotebookServiceConnection::TriggerSchedule( StatusOr NotebookServiceConnection::TriggerSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::TriggerScheduleRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -596,7 +596,7 @@ NotebookServiceConnection::TriggerSchedule( future> NotebookServiceConnection::TriggerSchedule( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -626,7 +626,7 @@ NotebookServiceConnection::DeleteExecution( StatusOr NotebookServiceConnection::DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteExecutionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -634,7 +634,7 @@ NotebookServiceConnection::DeleteExecution( future> NotebookServiceConnection::DeleteExecution( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -650,7 +650,7 @@ NotebookServiceConnection::CreateExecution( StatusOr NotebookServiceConnection::CreateExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateExecutionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -658,7 +658,7 @@ NotebookServiceConnection::CreateExecution( future> NotebookServiceConnection::CreateExecution( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/notebooks/v1/notebook_connection.h b/google/cloud/notebooks/v1/notebook_connection.h index e03855a9c3b0a..c95d88a7ca9f7 100644 --- a/google/cloud/notebooks/v1/notebook_connection.h +++ b/google/cloud/notebooks/v1/notebook_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/notebooks/v1/internal/notebook_retry_traits.h" #include "google/cloud/notebooks/v1/notebook_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,11 +199,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::CreateInstanceRequest const& request); virtual StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateInstanceRequest const& request); virtual future> - CreateInstance(google::cloud::ExperimentalTag, + CreateInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -211,11 +211,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::RegisterInstanceRequest const& request); virtual StatusOr RegisterInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::RegisterInstanceRequest const& request); virtual future> - RegisterInstance(google::cloud::ExperimentalTag, + RegisterInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -224,12 +224,12 @@ class NotebookServiceConnection { request); virtual StatusOr SetInstanceAccelerator( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& request); virtual future> - SetInstanceAccelerator(google::cloud::ExperimentalTag, + SetInstanceAccelerator(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -238,12 +238,12 @@ class NotebookServiceConnection { request); virtual StatusOr SetInstanceMachineType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& request); virtual future> - SetInstanceMachineType(google::cloud::ExperimentalTag, + SetInstanceMachineType(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -251,11 +251,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request); virtual StatusOr UpdateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request); virtual future> - UpdateInstanceConfig(google::cloud::ExperimentalTag, + UpdateInstanceConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -264,12 +264,12 @@ class NotebookServiceConnection { request); virtual StatusOr UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& request); virtual future> - UpdateShieldedInstanceConfig(google::cloud::ExperimentalTag, + UpdateShieldedInstanceConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -277,11 +277,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request); virtual StatusOr SetInstanceLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request); virtual future> - SetInstanceLabels(google::cloud::ExperimentalTag, + SetInstanceLabels(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< @@ -295,11 +295,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::DeleteInstanceRequest const& request); virtual StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteInstanceRequest const& request); virtual future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -307,34 +307,33 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::StartInstanceRequest const& request); virtual StatusOr StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StartInstanceRequest const& request); virtual future> - StartInstance(google::cloud::ExperimentalTag, + StartInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> StopInstance( google::cloud::notebooks::v1::StopInstanceRequest const& request); virtual StatusOr StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StopInstanceRequest const& request); virtual future> StopInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ResetInstance( google::cloud::notebooks::v1::ResetInstanceRequest const& request); virtual StatusOr ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ResetInstanceRequest const& request); virtual future> - ResetInstance(google::cloud::ExperimentalTag, + ResetInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -342,11 +341,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request); virtual StatusOr ReportInstanceInfo( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request); virtual future> - ReportInstanceInfo(google::cloud::ExperimentalTag, + ReportInstanceInfo(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -363,11 +362,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::UpgradeInstanceRequest const& request); virtual StatusOr UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceRequest const& request); virtual future> - UpgradeInstance(google::cloud::ExperimentalTag, + UpgradeInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -375,11 +374,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::RollbackInstanceRequest const& request); virtual StatusOr RollbackInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::RollbackInstanceRequest const& request); virtual future> - RollbackInstance(google::cloud::ExperimentalTag, + RollbackInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -387,11 +386,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request); virtual StatusOr DiagnoseInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request); virtual future> - DiagnoseInstance(google::cloud::ExperimentalTag, + DiagnoseInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -400,12 +399,12 @@ class NotebookServiceConnection { request); virtual StatusOr UpgradeInstanceInternal( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& request); virtual future> - UpgradeInstanceInternal(google::cloud::ExperimentalTag, + UpgradeInstanceInternal(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -420,11 +419,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::CreateEnvironmentRequest const& request); virtual StatusOr CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateEnvironmentRequest const& request); virtual future> - CreateEnvironment(google::cloud::ExperimentalTag, + CreateEnvironment(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -432,11 +431,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request); virtual StatusOr DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request); virtual future> - DeleteEnvironment(google::cloud::ExperimentalTag, + DeleteEnvironment(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListSchedules( @@ -450,11 +449,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::DeleteScheduleRequest const& request); virtual StatusOr DeleteSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteScheduleRequest const& request); virtual future> - DeleteSchedule(google::cloud::ExperimentalTag, + DeleteSchedule(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -462,11 +461,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::CreateScheduleRequest const& request); virtual StatusOr CreateSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateScheduleRequest const& request); virtual future> - CreateSchedule(google::cloud::ExperimentalTag, + CreateSchedule(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -474,11 +473,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::TriggerScheduleRequest const& request); virtual StatusOr TriggerSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::TriggerScheduleRequest const& request); virtual future> - TriggerSchedule(google::cloud::ExperimentalTag, + TriggerSchedule(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListExecutions( @@ -492,11 +491,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::DeleteExecutionRequest const& request); virtual StatusOr DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteExecutionRequest const& request); virtual future> - DeleteExecution(google::cloud::ExperimentalTag, + DeleteExecution(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -504,11 +503,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v1::CreateExecutionRequest const& request); virtual StatusOr CreateExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateExecutionRequest const& request); virtual future> - CreateExecution(google::cloud::ExperimentalTag, + CreateExecution(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/notebooks/v2/internal/notebook_tracing_connection.cc b/google/cloud/notebooks/v2/internal/notebook_tracing_connection.cc index aad1fc46e37a4..d15fe797a28f4 100644 --- a/google/cloud/notebooks/v2/internal/notebook_tracing_connection.cc +++ b/google/cloud/notebooks/v2/internal/notebook_tracing_connection.cc @@ -68,7 +68,7 @@ NotebookServiceTracingConnection::CreateInstance( google::cloud::notebooks::v2::CreateInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::CreateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ NotebookServiceTracingConnection::UpdateInstance( google::cloud::notebooks::v2::UpdateInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::UpdateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -134,7 +134,7 @@ NotebookServiceTracingConnection::DeleteInstance( google::cloud::notebooks::v2::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::DeleteInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -167,7 +167,7 @@ NotebookServiceTracingConnection::StartInstance( google::cloud::notebooks::v2::StartInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::StartInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StartInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -200,7 +200,7 @@ NotebookServiceTracingConnection::StopInstance( google::cloud::notebooks::v2::StopInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::StopInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StopInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -233,7 +233,7 @@ NotebookServiceTracingConnection::ResetInstance( google::cloud::notebooks::v2::ResetInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::ResetInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ResetInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -276,7 +276,7 @@ NotebookServiceTracingConnection::UpgradeInstance( google::cloud::notebooks::v2::UpgradeInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::UpgradeInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpgradeInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -309,7 +309,7 @@ NotebookServiceTracingConnection::RollbackInstance( google::cloud::notebooks::v2::RollbackInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::RollbackInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RollbackInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -342,7 +342,7 @@ NotebookServiceTracingConnection::DiagnoseInstance( google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::DiagnoseInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DiagnoseInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/notebooks/v2/notebook_connection.cc b/google/cloud/notebooks/v2/notebook_connection.cc index e1f2f1c69a613..84de0b48086e4 100644 --- a/google/cloud/notebooks/v2/notebook_connection.cc +++ b/google/cloud/notebooks/v2/notebook_connection.cc @@ -62,7 +62,7 @@ NotebookServiceConnection::CreateInstance( StatusOr NotebookServiceConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::CreateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ NotebookServiceConnection::CreateInstance( future> NotebookServiceConnection::CreateInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ NotebookServiceConnection::UpdateInstance( StatusOr NotebookServiceConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::UpdateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ NotebookServiceConnection::UpdateInstance( future> NotebookServiceConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ NotebookServiceConnection::DeleteInstance( StatusOr NotebookServiceConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::DeleteInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ NotebookServiceConnection::DeleteInstance( future> NotebookServiceConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,7 +134,7 @@ NotebookServiceConnection::StartInstance( StatusOr NotebookServiceConnection::StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::StartInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +142,7 @@ NotebookServiceConnection::StartInstance( future> NotebookServiceConnection::StartInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -158,14 +158,14 @@ NotebookServiceConnection::StopInstance( StatusOr NotebookServiceConnection::StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::StopInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -NotebookServiceConnection::StopInstance(google::cloud::ExperimentalTag, +NotebookServiceConnection::StopInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -182,7 +182,7 @@ NotebookServiceConnection::ResetInstance( StatusOr NotebookServiceConnection::ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::ResetInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -190,7 +190,7 @@ NotebookServiceConnection::ResetInstance( future> NotebookServiceConnection::ResetInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -212,7 +212,7 @@ NotebookServiceConnection::UpgradeInstance( StatusOr NotebookServiceConnection::UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::UpgradeInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -220,7 +220,7 @@ NotebookServiceConnection::UpgradeInstance( future> NotebookServiceConnection::UpgradeInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -236,7 +236,7 @@ NotebookServiceConnection::RollbackInstance( StatusOr NotebookServiceConnection::RollbackInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::RollbackInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -244,7 +244,7 @@ NotebookServiceConnection::RollbackInstance( future> NotebookServiceConnection::RollbackInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -260,7 +260,7 @@ NotebookServiceConnection::DiagnoseInstance( StatusOr NotebookServiceConnection::DiagnoseInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::DiagnoseInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -268,7 +268,7 @@ NotebookServiceConnection::DiagnoseInstance( future> NotebookServiceConnection::DiagnoseInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/notebooks/v2/notebook_connection.h b/google/cloud/notebooks/v2/notebook_connection.h index 72331136e7493..5e0fac2dcdd11 100644 --- a/google/cloud/notebooks/v2/notebook_connection.h +++ b/google/cloud/notebooks/v2/notebook_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/notebooks/v2/internal/notebook_retry_traits.h" #include "google/cloud/notebooks/v2/notebook_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,11 +199,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v2::CreateInstanceRequest const& request); virtual StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::CreateInstanceRequest const& request); virtual future> - CreateInstance(google::cloud::ExperimentalTag, + CreateInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -211,11 +211,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v2::UpdateInstanceRequest const& request); virtual StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::UpdateInstanceRequest const& request); virtual future> - UpdateInstance(google::cloud::ExperimentalTag, + UpdateInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -223,11 +223,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v2::DeleteInstanceRequest const& request); virtual StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::DeleteInstanceRequest const& request); virtual future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -235,34 +235,33 @@ class NotebookServiceConnection { google::cloud::notebooks::v2::StartInstanceRequest const& request); virtual StatusOr StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::StartInstanceRequest const& request); virtual future> - StartInstance(google::cloud::ExperimentalTag, + StartInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> StopInstance( google::cloud::notebooks::v2::StopInstanceRequest const& request); virtual StatusOr StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::StopInstanceRequest const& request); virtual future> StopInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ResetInstance( google::cloud::notebooks::v2::ResetInstanceRequest const& request); virtual StatusOr ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::ResetInstanceRequest const& request); virtual future> - ResetInstance(google::cloud::ExperimentalTag, + ResetInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< @@ -276,11 +275,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v2::UpgradeInstanceRequest const& request); virtual StatusOr UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::UpgradeInstanceRequest const& request); virtual future> - UpgradeInstance(google::cloud::ExperimentalTag, + UpgradeInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -288,11 +287,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v2::RollbackInstanceRequest const& request); virtual StatusOr RollbackInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::RollbackInstanceRequest const& request); virtual future> - RollbackInstance(google::cloud::ExperimentalTag, + RollbackInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -300,11 +299,11 @@ class NotebookServiceConnection { google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request); virtual StatusOr DiagnoseInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request); virtual future> - DiagnoseInstance(google::cloud::ExperimentalTag, + DiagnoseInstance(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/optimization/v1/fleet_routing_connection.cc b/google/cloud/optimization/v1/fleet_routing_connection.cc index d9901d4d1316e..55c5d6cf3c0a8 100644 --- a/google/cloud/optimization/v1/fleet_routing_connection.cc +++ b/google/cloud/optimization/v1/fleet_routing_connection.cc @@ -53,7 +53,7 @@ FleetRoutingConnection::BatchOptimizeTours( StatusOr FleetRoutingConnection::BatchOptimizeTours( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::optimization::v1::BatchOptimizeToursRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -61,7 +61,7 @@ FleetRoutingConnection::BatchOptimizeTours( future> FleetRoutingConnection::BatchOptimizeTours( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/optimization/v1/fleet_routing_connection.h b/google/cloud/optimization/v1/fleet_routing_connection.h index e330e2a1415a1..87c69e5510fb0 100644 --- a/google/cloud/optimization/v1/fleet_routing_connection.h +++ b/google/cloud/optimization/v1/fleet_routing_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/optimization/v1/fleet_routing_connection_idempotency_policy.h" #include "google/cloud/optimization/v1/internal/fleet_routing_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,13 +197,13 @@ class FleetRoutingConnection { request); virtual StatusOr BatchOptimizeTours( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::optimization::v1::BatchOptimizeToursRequest const& request); virtual future< StatusOr> - BatchOptimizeTours(google::cloud::ExperimentalTag, + BatchOptimizeTours(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.cc b/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.cc index 2a390977d7b41..a2832316f0d08 100644 --- a/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.cc +++ b/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.cc @@ -57,7 +57,7 @@ FleetRoutingTracingConnection::BatchOptimizeTours( google::cloud::optimization::v1::BatchOptimizeToursRequest const& request) { auto span = internal::MakeSpan( "optimization_v1::FleetRoutingConnection::BatchOptimizeTours"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BatchOptimizeTours(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/orgpolicy/v2/org_policy_connection.h b/google/cloud/orgpolicy/v2/org_policy_connection.h index 1d0f8cd8a4a8d..0e66eda8035a5 100644 --- a/google/cloud/orgpolicy/v2/org_policy_connection.h +++ b/google/cloud/orgpolicy/v2/org_policy_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/orgpolicy/v2/internal/org_policy_retry_traits.h" #include "google/cloud/orgpolicy/v2/org_policy_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/osconfig/agentendpoint/v1/agent_endpoint_connection.h b/google/cloud/osconfig/agentendpoint/v1/agent_endpoint_connection.h index 2fecb249762c5..56accde2eea8b 100644 --- a/google/cloud/osconfig/agentendpoint/v1/agent_endpoint_connection.h +++ b/google/cloud/osconfig/agentendpoint/v1/agent_endpoint_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/osconfig/agentendpoint/v1/agent_endpoint_connection_idempotency_policy.h" #include "google/cloud/osconfig/agentendpoint/v1/internal/agent_endpoint_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.cc b/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.cc index fd2b431b4c103..6d96e936c2f9d 100644 --- a/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.cc +++ b/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.cc @@ -51,7 +51,7 @@ OsConfigZonalServiceTracingConnection::CreateOSPolicyAssignment( request) { auto span = internal::MakeSpan( "osconfig_v1::OsConfigZonalServiceConnection::CreateOSPolicyAssignment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateOSPolicyAssignment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -87,7 +87,7 @@ OsConfigZonalServiceTracingConnection::UpdateOSPolicyAssignment( request) { auto span = internal::MakeSpan( "osconfig_v1::OsConfigZonalServiceConnection::UpdateOSPolicyAssignment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateOSPolicyAssignment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -159,7 +159,7 @@ OsConfigZonalServiceTracingConnection::DeleteOSPolicyAssignment( request) { auto span = internal::MakeSpan( "osconfig_v1::OsConfigZonalServiceConnection::DeleteOSPolicyAssignment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteOSPolicyAssignment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/osconfig/v1/os_config_connection.h b/google/cloud/osconfig/v1/os_config_connection.h index c07738b5003ca..8a08ef6d8a699 100644 --- a/google/cloud/osconfig/v1/os_config_connection.h +++ b/google/cloud/osconfig/v1/os_config_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/osconfig/v1/internal/os_config_retry_traits.h" #include "google/cloud/osconfig/v1/os_config_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/osconfig/v1/os_config_zonal_connection.cc b/google/cloud/osconfig/v1/os_config_zonal_connection.cc index 24873a3398bff..9960a4c3282ec 100644 --- a/google/cloud/osconfig/v1/os_config_zonal_connection.cc +++ b/google/cloud/osconfig/v1/os_config_zonal_connection.cc @@ -48,7 +48,7 @@ OsConfigZonalServiceConnection::CreateOSPolicyAssignment( StatusOr OsConfigZonalServiceConnection::CreateOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ OsConfigZonalServiceConnection::CreateOSPolicyAssignment( future> OsConfigZonalServiceConnection::CreateOSPolicyAssignment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -72,7 +72,7 @@ OsConfigZonalServiceConnection::UpdateOSPolicyAssignment( StatusOr OsConfigZonalServiceConnection::UpdateOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -80,7 +80,7 @@ OsConfigZonalServiceConnection::UpdateOSPolicyAssignment( future> OsConfigZonalServiceConnection::UpdateOSPolicyAssignment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -119,7 +119,7 @@ OsConfigZonalServiceConnection::DeleteOSPolicyAssignment( StatusOr OsConfigZonalServiceConnection::DeleteOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -128,7 +128,7 @@ OsConfigZonalServiceConnection::DeleteOSPolicyAssignment( future< StatusOr> OsConfigZonalServiceConnection::DeleteOSPolicyAssignment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/osconfig/v1/os_config_zonal_connection.h b/google/cloud/osconfig/v1/os_config_zonal_connection.h index 03508880b835a..81db8b19b6238 100644 --- a/google/cloud/osconfig/v1/os_config_zonal_connection.h +++ b/google/cloud/osconfig/v1/os_config_zonal_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/osconfig/v1/internal/os_config_zonal_retry_traits.h" #include "google/cloud/osconfig/v1/os_config_zonal_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,12 +197,12 @@ class OsConfigZonalServiceConnection { request); virtual StatusOr CreateOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& request); virtual future> - CreateOSPolicyAssignment(google::cloud::ExperimentalTag, + CreateOSPolicyAssignment(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -211,12 +211,12 @@ class OsConfigZonalServiceConnection { request); virtual StatusOr UpdateOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& request); virtual future> - UpdateOSPolicyAssignment(google::cloud::ExperimentalTag, + UpdateOSPolicyAssignment(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -239,13 +239,13 @@ class OsConfigZonalServiceConnection { request); virtual StatusOr DeleteOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& request); virtual future> - DeleteOSPolicyAssignment(google::cloud::ExperimentalTag, + DeleteOSPolicyAssignment(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/oslogin/v1/os_login_connection.h b/google/cloud/oslogin/v1/os_login_connection.h index 2c4df6ac2a766..681108a1e6760 100644 --- a/google/cloud/oslogin/v1/os_login_connection.h +++ b/google/cloud/oslogin/v1/os_login_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/oslogin/v1/internal/os_login_retry_traits.h" #include "google/cloud/oslogin/v1/os_login_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.cc b/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.cc index 4bf9b5b7bcf54..e36c88502d32d 100644 --- a/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.cc +++ b/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.cc @@ -57,7 +57,7 @@ SimulatorTracingConnection::CreateReplay( google::cloud::policysimulator::v1::CreateReplayRequest const& request) { auto span = internal::MakeSpan( "policysimulator_v1::SimulatorConnection::CreateReplay"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateReplay(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/policysimulator/v1/simulator_connection.cc b/google/cloud/policysimulator/v1/simulator_connection.cc index 79467f79f9fe2..8eecd2ff96c23 100644 --- a/google/cloud/policysimulator/v1/simulator_connection.cc +++ b/google/cloud/policysimulator/v1/simulator_connection.cc @@ -53,14 +53,14 @@ SimulatorConnection::CreateReplay( } StatusOr SimulatorConnection::CreateReplay( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::policysimulator::v1::CreateReplayRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SimulatorConnection::CreateReplay(google::cloud::ExperimentalTag, +SimulatorConnection::CreateReplay(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/policysimulator/v1/simulator_connection.h b/google/cloud/policysimulator/v1/simulator_connection.h index a6317950b42b7..d143ecbf6ee45 100644 --- a/google/cloud/policysimulator/v1/simulator_connection.h +++ b/google/cloud/policysimulator/v1/simulator_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/policysimulator/v1/internal/simulator_retry_traits.h" #include "google/cloud/policysimulator/v1/simulator_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -194,11 +194,11 @@ class SimulatorConnection { google::cloud::policysimulator::v1::CreateReplayRequest const& request); virtual StatusOr CreateReplay( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::policysimulator::v1::CreateReplayRequest const& request); virtual future> - CreateReplay(google::cloud::ExperimentalTag, + CreateReplay(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange diff --git a/google/cloud/policytroubleshooter/iam/v3/policy_troubleshooter_connection.h b/google/cloud/policytroubleshooter/iam/v3/policy_troubleshooter_connection.h index 07cf0f361e7fe..e42476acc3576 100644 --- a/google/cloud/policytroubleshooter/iam/v3/policy_troubleshooter_connection.h +++ b/google/cloud/policytroubleshooter/iam/v3/policy_troubleshooter_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/policytroubleshooter/iam/v3/internal/policy_troubleshooter_retry_traits.h" #include "google/cloud/policytroubleshooter/iam/v3/policy_troubleshooter_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/policytroubleshooter/v1/iam_checker_connection.h b/google/cloud/policytroubleshooter/v1/iam_checker_connection.h index fd53636a79f12..743ee119da5c3 100644 --- a/google/cloud/policytroubleshooter/v1/iam_checker_connection.h +++ b/google/cloud/policytroubleshooter/v1/iam_checker_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/policytroubleshooter/v1/iam_checker_connection_idempotency_policy.h" #include "google/cloud/policytroubleshooter/v1/internal/iam_checker_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/privateca/v1/certificate_authority_connection.cc b/google/cloud/privateca/v1/certificate_authority_connection.cc index 142c4302d6d38..2d803518e67c7 100644 --- a/google/cloud/privateca/v1/certificate_authority_connection.cc +++ b/google/cloud/privateca/v1/certificate_authority_connection.cc @@ -82,7 +82,7 @@ CertificateAuthorityServiceConnection::ActivateCertificateAuthority( StatusOr CertificateAuthorityServiceConnection::ActivateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: ActivateCertificateAuthorityRequest const&) { return StatusOr( @@ -91,7 +91,7 @@ CertificateAuthorityServiceConnection::ActivateCertificateAuthority( future> CertificateAuthorityServiceConnection::ActivateCertificateAuthority( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -108,7 +108,7 @@ CertificateAuthorityServiceConnection::CreateCertificateAuthority( StatusOr CertificateAuthorityServiceConnection::CreateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: CreateCertificateAuthorityRequest const&) { return StatusOr( @@ -117,7 +117,7 @@ CertificateAuthorityServiceConnection::CreateCertificateAuthority( future> CertificateAuthorityServiceConnection::CreateCertificateAuthority( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,7 +134,7 @@ CertificateAuthorityServiceConnection::DisableCertificateAuthority( StatusOr CertificateAuthorityServiceConnection::DisableCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DisableCertificateAuthorityRequest const&) { return StatusOr( @@ -143,7 +143,7 @@ CertificateAuthorityServiceConnection::DisableCertificateAuthority( future> CertificateAuthorityServiceConnection::DisableCertificateAuthority( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -160,7 +160,7 @@ CertificateAuthorityServiceConnection::EnableCertificateAuthority( StatusOr CertificateAuthorityServiceConnection::EnableCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: EnableCertificateAuthorityRequest const&) { return StatusOr( @@ -169,7 +169,7 @@ CertificateAuthorityServiceConnection::EnableCertificateAuthority( future> CertificateAuthorityServiceConnection::EnableCertificateAuthority( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -209,7 +209,7 @@ CertificateAuthorityServiceConnection::UndeleteCertificateAuthority( StatusOr CertificateAuthorityServiceConnection::UndeleteCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UndeleteCertificateAuthorityRequest const&) { return StatusOr( @@ -218,7 +218,7 @@ CertificateAuthorityServiceConnection::UndeleteCertificateAuthority( future> CertificateAuthorityServiceConnection::UndeleteCertificateAuthority( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -235,7 +235,7 @@ CertificateAuthorityServiceConnection::DeleteCertificateAuthority( StatusOr CertificateAuthorityServiceConnection::DeleteCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DeleteCertificateAuthorityRequest const&) { return StatusOr( @@ -244,7 +244,7 @@ CertificateAuthorityServiceConnection::DeleteCertificateAuthority( future> CertificateAuthorityServiceConnection::DeleteCertificateAuthority( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -261,7 +261,7 @@ CertificateAuthorityServiceConnection::UpdateCertificateAuthority( StatusOr CertificateAuthorityServiceConnection::UpdateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateAuthorityRequest const&) { return StatusOr( @@ -270,7 +270,7 @@ CertificateAuthorityServiceConnection::UpdateCertificateAuthority( future> CertificateAuthorityServiceConnection::UpdateCertificateAuthority( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -286,7 +286,7 @@ CertificateAuthorityServiceConnection::CreateCaPool( StatusOr CertificateAuthorityServiceConnection::CreateCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::CreateCaPoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -294,7 +294,7 @@ CertificateAuthorityServiceConnection::CreateCaPool( future> CertificateAuthorityServiceConnection::CreateCaPool( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -310,7 +310,7 @@ CertificateAuthorityServiceConnection::UpdateCaPool( StatusOr CertificateAuthorityServiceConnection::UpdateCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::UpdateCaPoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -318,7 +318,7 @@ CertificateAuthorityServiceConnection::UpdateCaPool( future> CertificateAuthorityServiceConnection::UpdateCaPool( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -348,7 +348,7 @@ CertificateAuthorityServiceConnection::DeleteCaPool( StatusOr CertificateAuthorityServiceConnection::DeleteCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::DeleteCaPoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -356,7 +356,7 @@ CertificateAuthorityServiceConnection::DeleteCaPool( future> CertificateAuthorityServiceConnection::DeleteCaPool( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -395,7 +395,7 @@ CertificateAuthorityServiceConnection::UpdateCertificateRevocationList( StatusOr CertificateAuthorityServiceConnection::UpdateCertificateRevocationList( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateRevocationListRequest const&) { return StatusOr( @@ -405,7 +405,7 @@ CertificateAuthorityServiceConnection::UpdateCertificateRevocationList( future< StatusOr> CertificateAuthorityServiceConnection::UpdateCertificateRevocationList( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -422,7 +422,7 @@ CertificateAuthorityServiceConnection::CreateCertificateTemplate( StatusOr CertificateAuthorityServiceConnection::CreateCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: CreateCertificateTemplateRequest const&) { return StatusOr( @@ -431,7 +431,7 @@ CertificateAuthorityServiceConnection::CreateCertificateTemplate( future> CertificateAuthorityServiceConnection::CreateCertificateTemplate( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -448,7 +448,7 @@ CertificateAuthorityServiceConnection::DeleteCertificateTemplate( StatusOr CertificateAuthorityServiceConnection::DeleteCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DeleteCertificateTemplateRequest const&) { return StatusOr( @@ -457,7 +457,7 @@ CertificateAuthorityServiceConnection::DeleteCertificateTemplate( future> CertificateAuthorityServiceConnection::DeleteCertificateTemplate( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -489,7 +489,7 @@ CertificateAuthorityServiceConnection::UpdateCertificateTemplate( StatusOr CertificateAuthorityServiceConnection::UpdateCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateTemplateRequest const&) { return StatusOr( @@ -498,7 +498,7 @@ CertificateAuthorityServiceConnection::UpdateCertificateTemplate( future> CertificateAuthorityServiceConnection::UpdateCertificateTemplate( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/privateca/v1/certificate_authority_connection.h b/google/cloud/privateca/v1/certificate_authority_connection.h index 9fb2ba7078d6f..8edf58de36995 100644 --- a/google/cloud/privateca/v1/certificate_authority_connection.h +++ b/google/cloud/privateca/v1/certificate_authority_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/privateca/v1/certificate_authority_connection_idempotency_policy.h" #include "google/cloud/privateca/v1/internal/certificate_authority_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -237,13 +237,13 @@ class CertificateAuthorityServiceConnection { ActivateCertificateAuthorityRequest const& request); virtual StatusOr ActivateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: ActivateCertificateAuthorityRequest const& request); virtual future< StatusOr> - ActivateCertificateAuthority(google::cloud::ExperimentalTag, + ActivateCertificateAuthority(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -253,13 +253,13 @@ class CertificateAuthorityServiceConnection { CreateCertificateAuthorityRequest const& request); virtual StatusOr CreateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: CreateCertificateAuthorityRequest const& request); virtual future< StatusOr> - CreateCertificateAuthority(google::cloud::ExperimentalTag, + CreateCertificateAuthority(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -269,13 +269,13 @@ class CertificateAuthorityServiceConnection { DisableCertificateAuthorityRequest const& request); virtual StatusOr DisableCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DisableCertificateAuthorityRequest const& request); virtual future< StatusOr> - DisableCertificateAuthority(google::cloud::ExperimentalTag, + DisableCertificateAuthority(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -285,13 +285,13 @@ class CertificateAuthorityServiceConnection { EnableCertificateAuthorityRequest const& request); virtual StatusOr EnableCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: EnableCertificateAuthorityRequest const& request); virtual future< StatusOr> - EnableCertificateAuthority(google::cloud::ExperimentalTag, + EnableCertificateAuthority(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr UndeleteCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UndeleteCertificateAuthorityRequest const& request); virtual future< StatusOr> - UndeleteCertificateAuthority(google::cloud::ExperimentalTag, + UndeleteCertificateAuthority(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -333,13 +333,13 @@ class CertificateAuthorityServiceConnection { DeleteCertificateAuthorityRequest const& request); virtual StatusOr DeleteCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DeleteCertificateAuthorityRequest const& request); virtual future< StatusOr> - DeleteCertificateAuthority(google::cloud::ExperimentalTag, + DeleteCertificateAuthority(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -349,13 +349,13 @@ class CertificateAuthorityServiceConnection { UpdateCertificateAuthorityRequest const& request); virtual StatusOr UpdateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateAuthorityRequest const& request); virtual future< StatusOr> - UpdateCertificateAuthority(google::cloud::ExperimentalTag, + UpdateCertificateAuthority(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -364,12 +364,12 @@ class CertificateAuthorityServiceConnection { request); virtual StatusOr CreateCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::CreateCaPoolRequest const& request); virtual future> - CreateCaPool(google::cloud::ExperimentalTag, + CreateCaPool(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -378,12 +378,12 @@ class CertificateAuthorityServiceConnection { request); virtual StatusOr UpdateCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::UpdateCaPoolRequest const& request); virtual future> - UpdateCaPool(google::cloud::ExperimentalTag, + UpdateCaPool(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetCaPool( @@ -400,13 +400,13 @@ class CertificateAuthorityServiceConnection { request); virtual StatusOr DeleteCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::DeleteCaPoolRequest const& request); virtual future< StatusOr> - DeleteCaPool(google::cloud::ExperimentalTag, + DeleteCaPool(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -434,15 +434,14 @@ class CertificateAuthorityServiceConnection { virtual StatusOr UpdateCertificateRevocationList( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateRevocationListRequest const& request); virtual future> UpdateCertificateRevocationList( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> @@ -451,13 +450,13 @@ class CertificateAuthorityServiceConnection { CreateCertificateTemplateRequest const& request); virtual StatusOr CreateCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: CreateCertificateTemplateRequest const& request); virtual future< StatusOr> - CreateCertificateTemplate(google::cloud::ExperimentalTag, + CreateCertificateTemplate(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -467,13 +466,13 @@ class CertificateAuthorityServiceConnection { DeleteCertificateTemplateRequest const& request); virtual StatusOr DeleteCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DeleteCertificateTemplateRequest const& request); virtual future< StatusOr> - DeleteCertificateTemplate(google::cloud::ExperimentalTag, + DeleteCertificateTemplate(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -493,13 +492,13 @@ class CertificateAuthorityServiceConnection { UpdateCertificateTemplateRequest const& request); virtual StatusOr UpdateCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateTemplateRequest const& request); virtual future< StatusOr> - UpdateCertificateTemplate(google::cloud::ExperimentalTag, + UpdateCertificateTemplate(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.cc b/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.cc index 723100578e62a..975483c512ac0 100644 --- a/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.cc +++ b/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.cc @@ -107,7 +107,7 @@ CertificateAuthorityServiceTracingConnection::ActivateCertificateAuthority( auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "ActivateCertificateAuthority"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ActivateCertificateAuthority( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -146,7 +146,7 @@ CertificateAuthorityServiceTracingConnection::CreateCertificateAuthority( auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "CreateCertificateAuthority"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateCertificateAuthority( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -185,7 +185,7 @@ CertificateAuthorityServiceTracingConnection::DisableCertificateAuthority( auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "DisableCertificateAuthority"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DisableCertificateAuthority( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -224,7 +224,7 @@ CertificateAuthorityServiceTracingConnection::EnableCertificateAuthority( auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "EnableCertificateAuthority"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->EnableCertificateAuthority( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -301,7 +301,7 @@ CertificateAuthorityServiceTracingConnection::UndeleteCertificateAuthority( auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "UndeleteCertificateAuthority"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UndeleteCertificateAuthority( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -340,7 +340,7 @@ CertificateAuthorityServiceTracingConnection::DeleteCertificateAuthority( auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "DeleteCertificateAuthority"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteCertificateAuthority( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -379,7 +379,7 @@ CertificateAuthorityServiceTracingConnection::UpdateCertificateAuthority( auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "UpdateCertificateAuthority"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateCertificateAuthority( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -415,7 +415,7 @@ CertificateAuthorityServiceTracingConnection::CreateCaPool( request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::CreateCaPool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateCaPool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -450,7 +450,7 @@ CertificateAuthorityServiceTracingConnection::UpdateCaPool( request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::UpdateCaPool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateCaPool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -506,7 +506,7 @@ CertificateAuthorityServiceTracingConnection::DeleteCaPool( request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::DeleteCaPool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteCaPool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -581,7 +581,7 @@ CertificateAuthorityServiceTracingConnection::UpdateCertificateRevocationList( auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "UpdateCertificateRevocationList"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateCertificateRevocationList( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -621,7 +621,7 @@ CertificateAuthorityServiceTracingConnection::CreateCertificateTemplate( auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "CreateCertificateTemplate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateCertificateTemplate( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -660,7 +660,7 @@ CertificateAuthorityServiceTracingConnection::DeleteCertificateTemplate( auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "DeleteCertificateTemplate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteCertificateTemplate( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -724,7 +724,7 @@ CertificateAuthorityServiceTracingConnection::UpdateCertificateTemplate( auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "UpdateCertificateTemplate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateCertificateTemplate( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/profiler/v2/export_connection.h b/google/cloud/profiler/v2/export_connection.h index 98f17d981dd25..83ff2caf82159 100644 --- a/google/cloud/profiler/v2/export_connection.h +++ b/google/cloud/profiler/v2/export_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/profiler/v2/export_connection_idempotency_policy.h" #include "google/cloud/profiler/v2/internal/export_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/profiler/v2/profiler_connection.h b/google/cloud/profiler/v2/profiler_connection.h index fd5c4ec7fc2d9..f23b9a607d76d 100644 --- a/google/cloud/profiler/v2/profiler_connection.h +++ b/google/cloud/profiler/v2/profiler_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/profiler/v2/internal/profiler_retry_traits.h" #include "google/cloud/profiler/v2/profiler_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/publicca/v1/public_certificate_authority_connection.h b/google/cloud/publicca/v1/public_certificate_authority_connection.h index 19fc0d8790c46..ec6a72206e6f5 100644 --- a/google/cloud/publicca/v1/public_certificate_authority_connection.h +++ b/google/cloud/publicca/v1/public_certificate_authority_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/publicca/v1/internal/public_certificate_authority_retry_traits.h" #include "google/cloud/publicca/v1/public_certificate_authority_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/pubsub/admin/subscription_admin_connection.h b/google/cloud/pubsub/admin/subscription_admin_connection.h index d0f921af6bd11..f1106d6f8f3e6 100644 --- a/google/cloud/pubsub/admin/subscription_admin_connection.h +++ b/google/cloud/pubsub/admin/subscription_admin_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/pubsub/admin/internal/subscription_admin_retry_traits.h" #include "google/cloud/pubsub/admin/subscription_admin_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/pubsub/admin/topic_admin_connection.h b/google/cloud/pubsub/admin/topic_admin_connection.h index af8b6b63fbbf4..7c9febfbd596e 100644 --- a/google/cloud/pubsub/admin/topic_admin_connection.h +++ b/google/cloud/pubsub/admin/topic_admin_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/pubsub/admin/internal/topic_admin_retry_traits.h" #include "google/cloud/pubsub/admin/topic_admin_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/pubsub/schema_connection.h b/google/cloud/pubsub/schema_connection.h index a28301314bacc..01722e736ce85 100644 --- a/google/cloud/pubsub/schema_connection.h +++ b/google/cloud/pubsub/schema_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/pubsub/internal/schema_retry_traits.h" #include "google/cloud/pubsub/schema_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/pubsublite/admin_connection.cc b/google/cloud/pubsublite/admin_connection.cc index a2be6bc7df704..af5a5fdb30ef5 100644 --- a/google/cloud/pubsublite/admin_connection.cc +++ b/google/cloud/pubsublite/admin_connection.cc @@ -122,7 +122,7 @@ AdminServiceConnection::SeekSubscription( StatusOr AdminServiceConnection::SeekSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::pubsublite::v1::SeekSubscriptionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -130,7 +130,7 @@ AdminServiceConnection::SeekSubscription( future> AdminServiceConnection::SeekSubscription( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/pubsublite/admin_connection.h b/google/cloud/pubsublite/admin_connection.h index 45125ce841f22..8d2fd79baa0b9 100644 --- a/google/cloud/pubsublite/admin_connection.h +++ b/google/cloud/pubsublite/admin_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/pubsublite/admin_connection_idempotency_policy.h" #include "google/cloud/pubsublite/internal/admin_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -235,12 +235,12 @@ class AdminServiceConnection { google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request); virtual StatusOr SeekSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request); virtual future< StatusOr> - SeekSubscription(google::cloud::ExperimentalTag, + SeekSubscription(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/pubsublite/internal/admin_tracing_connection.cc b/google/cloud/pubsublite/internal/admin_tracing_connection.cc index 44a96db1ae408..ff276746c2729 100644 --- a/google/cloud/pubsublite/internal/admin_tracing_connection.cc +++ b/google/cloud/pubsublite/internal/admin_tracing_connection.cc @@ -160,7 +160,7 @@ AdminServiceTracingConnection::SeekSubscription( google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request) { auto span = internal::MakeSpan( "pubsublite::AdminServiceConnection::SeekSubscription"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SeekSubscription(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/pubsublite/topic_stats_connection.h b/google/cloud/pubsublite/topic_stats_connection.h index 7ec7b5c1ab24b..eebb5a65b0a8a 100644 --- a/google/cloud/pubsublite/topic_stats_connection.h +++ b/google/cloud/pubsublite/topic_stats_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/pubsublite/internal/topic_stats_retry_traits.h" #include "google/cloud/pubsublite/topic_stats_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.cc b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.cc index 90cffd631a80f..0c495e8da4bf1 100644 --- a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.cc +++ b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.cc @@ -56,7 +56,7 @@ RapidMigrationAssessmentTracingConnection::CreateCollector( auto span = internal::MakeSpan( "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" "CreateCollector"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateCollector(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -94,7 +94,7 @@ RapidMigrationAssessmentTracingConnection::CreateAnnotation( auto span = internal::MakeSpan( "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" "CreateAnnotation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateAnnotation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -168,7 +168,7 @@ RapidMigrationAssessmentTracingConnection::UpdateCollector( auto span = internal::MakeSpan( "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" "UpdateCollector"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateCollector(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -206,7 +206,7 @@ RapidMigrationAssessmentTracingConnection::DeleteCollector( auto span = internal::MakeSpan( "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" "DeleteCollector"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteCollector(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -244,7 +244,7 @@ RapidMigrationAssessmentTracingConnection::ResumeCollector( auto span = internal::MakeSpan( "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" "ResumeCollector"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ResumeCollector(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -282,7 +282,7 @@ RapidMigrationAssessmentTracingConnection::RegisterCollector( auto span = internal::MakeSpan( "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" "RegisterCollector"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RegisterCollector(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -320,7 +320,7 @@ RapidMigrationAssessmentTracingConnection::PauseCollector( auto span = internal::MakeSpan( "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" "PauseCollector"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PauseCollector(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection.cc b/google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection.cc index f84e5419536b3..f7e4c413d6950 100644 --- a/google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection.cc +++ b/google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection.cc @@ -51,7 +51,7 @@ RapidMigrationAssessmentConnection::CreateCollector( StatusOr RapidMigrationAssessmentConnection::CreateCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: CreateCollectorRequest const&) { return StatusOr( @@ -60,7 +60,7 @@ RapidMigrationAssessmentConnection::CreateCollector( future> RapidMigrationAssessmentConnection::CreateCollector( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -77,7 +77,7 @@ RapidMigrationAssessmentConnection::CreateAnnotation( StatusOr RapidMigrationAssessmentConnection::CreateAnnotation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: CreateAnnotationRequest const&) { return StatusOr( @@ -86,7 +86,7 @@ RapidMigrationAssessmentConnection::CreateAnnotation( future> RapidMigrationAssessmentConnection::CreateAnnotation( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -123,7 +123,7 @@ RapidMigrationAssessmentConnection::UpdateCollector( StatusOr RapidMigrationAssessmentConnection::UpdateCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: UpdateCollectorRequest const&) { return StatusOr( @@ -132,7 +132,7 @@ RapidMigrationAssessmentConnection::UpdateCollector( future> RapidMigrationAssessmentConnection::UpdateCollector( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -149,7 +149,7 @@ RapidMigrationAssessmentConnection::DeleteCollector( StatusOr RapidMigrationAssessmentConnection::DeleteCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: DeleteCollectorRequest const&) { return StatusOr( @@ -158,7 +158,7 @@ RapidMigrationAssessmentConnection::DeleteCollector( future> RapidMigrationAssessmentConnection::DeleteCollector( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -175,7 +175,7 @@ RapidMigrationAssessmentConnection::ResumeCollector( StatusOr RapidMigrationAssessmentConnection::ResumeCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: ResumeCollectorRequest const&) { return StatusOr( @@ -184,7 +184,7 @@ RapidMigrationAssessmentConnection::ResumeCollector( future> RapidMigrationAssessmentConnection::ResumeCollector( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -201,7 +201,7 @@ RapidMigrationAssessmentConnection::RegisterCollector( StatusOr RapidMigrationAssessmentConnection::RegisterCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: RegisterCollectorRequest const&) { return StatusOr( @@ -210,7 +210,7 @@ RapidMigrationAssessmentConnection::RegisterCollector( future> RapidMigrationAssessmentConnection::RegisterCollector( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -226,7 +226,7 @@ RapidMigrationAssessmentConnection::PauseCollector( StatusOr RapidMigrationAssessmentConnection::PauseCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -234,7 +234,7 @@ RapidMigrationAssessmentConnection::PauseCollector( future> RapidMigrationAssessmentConnection::PauseCollector( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection.h b/google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection.h index 834673ffdb8f2..1a2177590ba75 100644 --- a/google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection.h +++ b/google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection.h @@ -22,11 +22,11 @@ #include "google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_retry_traits.h" #include "google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -209,13 +209,13 @@ class RapidMigrationAssessmentConnection { request); virtual StatusOr CreateCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::CreateCollectorRequest const& request); virtual future< StatusOr> - CreateCollector(google::cloud::ExperimentalTag, + CreateCollector(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -224,13 +224,13 @@ class RapidMigrationAssessmentConnection { CreateAnnotationRequest const& request); virtual StatusOr CreateAnnotation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: CreateAnnotationRequest const& request); virtual future< StatusOr> - CreateAnnotation(google::cloud::ExperimentalTag, + CreateAnnotation(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -255,13 +255,13 @@ class RapidMigrationAssessmentConnection { request); virtual StatusOr UpdateCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::UpdateCollectorRequest const& request); virtual future< StatusOr> - UpdateCollector(google::cloud::ExperimentalTag, + UpdateCollector(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -271,13 +271,13 @@ class RapidMigrationAssessmentConnection { request); virtual StatusOr DeleteCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& request); virtual future< StatusOr> - DeleteCollector(google::cloud::ExperimentalTag, + DeleteCollector(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -287,13 +287,13 @@ class RapidMigrationAssessmentConnection { request); virtual StatusOr ResumeCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& request); virtual future< StatusOr> - ResumeCollector(google::cloud::ExperimentalTag, + ResumeCollector(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -302,13 +302,13 @@ class RapidMigrationAssessmentConnection { RegisterCollectorRequest const& request); virtual StatusOr RegisterCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: RegisterCollectorRequest const& request); virtual future< StatusOr> - RegisterCollector(google::cloud::ExperimentalTag, + RegisterCollector(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -318,13 +318,13 @@ class RapidMigrationAssessmentConnection { request); virtual StatusOr PauseCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& request); virtual future< StatusOr> - PauseCollector(google::cloud::ExperimentalTag, + PauseCollector(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/recaptchaenterprise/v1/recaptcha_enterprise_connection.h b/google/cloud/recaptchaenterprise/v1/recaptcha_enterprise_connection.h index c7ef923e71f9a..24a1acec531c6 100644 --- a/google/cloud/recaptchaenterprise/v1/recaptcha_enterprise_connection.h +++ b/google/cloud/recaptchaenterprise/v1/recaptcha_enterprise_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/recaptchaenterprise/v1/internal/recaptcha_enterprise_retry_traits.h" #include "google/cloud/recaptchaenterprise/v1/recaptcha_enterprise_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/recommender/v1/recommender_connection.h b/google/cloud/recommender/v1/recommender_connection.h index 602a9db0d5450..a10035155b5fd 100644 --- a/google/cloud/recommender/v1/recommender_connection.h +++ b/google/cloud/recommender/v1/recommender_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/recommender/v1/internal/recommender_retry_traits.h" #include "google/cloud/recommender/v1/recommender_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/redis/cluster/v1/cloud_redis_cluster_connection.cc b/google/cloud/redis/cluster/v1/cloud_redis_cluster_connection.cc index fe960191b9792..ad39ef64bdd4b 100644 --- a/google/cloud/redis/cluster/v1/cloud_redis_cluster_connection.cc +++ b/google/cloud/redis/cluster/v1/cloud_redis_cluster_connection.cc @@ -62,7 +62,7 @@ CloudRedisClusterConnection::UpdateCluster( StatusOr CloudRedisClusterConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::UpdateClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ CloudRedisClusterConnection::UpdateCluster( future> CloudRedisClusterConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -85,7 +85,7 @@ CloudRedisClusterConnection::DeleteCluster( StatusOr CloudRedisClusterConnection::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::DeleteClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -93,7 +93,7 @@ CloudRedisClusterConnection::DeleteCluster( future> CloudRedisClusterConnection::DeleteCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); } @@ -108,7 +108,7 @@ CloudRedisClusterConnection::CreateCluster( StatusOr CloudRedisClusterConnection::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::CreateClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -116,7 +116,7 @@ CloudRedisClusterConnection::CreateCluster( future> CloudRedisClusterConnection::CreateCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/redis/cluster/v1/cloud_redis_cluster_connection.h b/google/cloud/redis/cluster/v1/cloud_redis_cluster_connection.h index fba07e14c2d8d..5df9dbce7e17e 100644 --- a/google/cloud/redis/cluster/v1/cloud_redis_cluster_connection.h +++ b/google/cloud/redis/cluster/v1/cloud_redis_cluster_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/redis/cluster/v1/cloud_redis_cluster_connection_idempotency_policy.h" #include "google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,34 +199,33 @@ class CloudRedisClusterConnection { google::cloud::redis::cluster::v1::UpdateClusterRequest const& request); virtual StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::UpdateClusterRequest const& request); virtual future> - UpdateCluster(google::cloud::ExperimentalTag, + UpdateCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteCluster( google::cloud::redis::cluster::v1::DeleteClusterRequest const& request); virtual StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::DeleteClusterRequest const& request); virtual future> DeleteCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CreateCluster( google::cloud::redis::cluster::v1::CreateClusterRequest const& request); virtual StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::CreateClusterRequest const& request); virtual future> - CreateCluster(google::cloud::ExperimentalTag, + CreateCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.cc b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.cc index d65d235ffed4c..f87273aae1d12 100644 --- a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.cc +++ b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.cc @@ -69,7 +69,7 @@ CloudRedisClusterTracingConnection::UpdateCluster( google::cloud::redis::cluster::v1::UpdateClusterRequest const& request) { auto span = internal::MakeSpan( "redis_cluster_v1::CloudRedisClusterConnection::UpdateCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -102,7 +102,7 @@ CloudRedisClusterTracingConnection::DeleteCluster( google::cloud::redis::cluster::v1::DeleteClusterRequest const& request) { auto span = internal::MakeSpan( "redis_cluster_v1::CloudRedisClusterConnection::DeleteCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ CloudRedisClusterTracingConnection::CreateCluster( google::cloud::redis::cluster::v1::CreateClusterRequest const& request) { auto span = internal::MakeSpan( "redis_cluster_v1::CloudRedisClusterConnection::CreateCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/redis/v1/cloud_redis_connection.cc b/google/cloud/redis/v1/cloud_redis_connection.cc index 53ffc03e6a4fe..91d3bcb76b3b1 100644 --- a/google/cloud/redis/v1/cloud_redis_connection.cc +++ b/google/cloud/redis/v1/cloud_redis_connection.cc @@ -66,14 +66,14 @@ CloudRedisConnection::CreateInstance( } StatusOr CloudRedisConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::CreateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudRedisConnection::CreateInstance(google::cloud::ExperimentalTag, +CloudRedisConnection::CreateInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -89,14 +89,14 @@ CloudRedisConnection::UpdateInstance( } StatusOr CloudRedisConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::UpdateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudRedisConnection::UpdateInstance(google::cloud::ExperimentalTag, +CloudRedisConnection::UpdateInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -112,14 +112,14 @@ CloudRedisConnection::UpgradeInstance( } StatusOr CloudRedisConnection::UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::UpgradeInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudRedisConnection::UpgradeInstance(google::cloud::ExperimentalTag, +CloudRedisConnection::UpgradeInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -135,14 +135,14 @@ CloudRedisConnection::ImportInstance( } StatusOr CloudRedisConnection::ImportInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::ImportInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudRedisConnection::ImportInstance(google::cloud::ExperimentalTag, +CloudRedisConnection::ImportInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -158,14 +158,14 @@ CloudRedisConnection::ExportInstance( } StatusOr CloudRedisConnection::ExportInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::ExportInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudRedisConnection::ExportInstance(google::cloud::ExperimentalTag, +CloudRedisConnection::ExportInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -181,14 +181,14 @@ CloudRedisConnection::FailoverInstance( } StatusOr CloudRedisConnection::FailoverInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::FailoverInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudRedisConnection::FailoverInstance(google::cloud::ExperimentalTag, +CloudRedisConnection::FailoverInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -204,14 +204,14 @@ CloudRedisConnection::DeleteInstance( } StatusOr CloudRedisConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::DeleteInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -CloudRedisConnection::DeleteInstance(google::cloud::ExperimentalTag, +CloudRedisConnection::DeleteInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -228,7 +228,7 @@ CloudRedisConnection::RescheduleMaintenance( StatusOr CloudRedisConnection::RescheduleMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::RescheduleMaintenanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -236,7 +236,7 @@ CloudRedisConnection::RescheduleMaintenance( future> CloudRedisConnection::RescheduleMaintenance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/redis/v1/cloud_redis_connection.h b/google/cloud/redis/v1/cloud_redis_connection.h index 219200ded3804..43df7dff95593 100644 --- a/google/cloud/redis/v1/cloud_redis_connection.h +++ b/google/cloud/redis/v1/cloud_redis_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/redis/v1/cloud_redis_connection_idempotency_policy.h" #include "google/cloud/redis/v1/internal/cloud_redis_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -200,78 +200,72 @@ class CloudRedisConnection { google::cloud::redis::v1::CreateInstanceRequest const& request); virtual StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::CreateInstanceRequest const& request); virtual future> CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateInstance( google::cloud::redis::v1::UpdateInstanceRequest const& request); virtual StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::UpdateInstanceRequest const& request); virtual future> UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpgradeInstance( google::cloud::redis::v1::UpgradeInstanceRequest const& request); virtual StatusOr UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::UpgradeInstanceRequest const& request); virtual future> UpgradeInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ImportInstance( google::cloud::redis::v1::ImportInstanceRequest const& request); virtual StatusOr ImportInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::ImportInstanceRequest const& request); virtual future> ImportInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ExportInstance( google::cloud::redis::v1::ExportInstanceRequest const& request); virtual StatusOr ExportInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::ExportInstanceRequest const& request); virtual future> ExportInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> FailoverInstance( google::cloud::redis::v1::FailoverInstanceRequest const& request); virtual StatusOr FailoverInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::FailoverInstanceRequest const& request); virtual future> FailoverInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteInstance( google::cloud::redis::v1::DeleteInstanceRequest const& request); virtual StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::DeleteInstanceRequest const& request); virtual future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -279,11 +273,11 @@ class CloudRedisConnection { google::cloud::redis::v1::RescheduleMaintenanceRequest const& request); virtual StatusOr RescheduleMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::RescheduleMaintenanceRequest const& request); virtual future> - RescheduleMaintenance(google::cloud::ExperimentalTag, + RescheduleMaintenance(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.cc b/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.cc index 78d4c6e5f6a46..e400867767ca2 100644 --- a/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.cc +++ b/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.cc @@ -76,7 +76,7 @@ CloudRedisTracingConnection::CreateInstance( google::cloud::redis::v1::CreateInstanceRequest const& request) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::CreateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -109,7 +109,7 @@ CloudRedisTracingConnection::UpdateInstance( google::cloud::redis::v1::UpdateInstanceRequest const& request) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::UpdateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -142,7 +142,7 @@ CloudRedisTracingConnection::UpgradeInstance( google::cloud::redis::v1::UpgradeInstanceRequest const& request) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::UpgradeInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpgradeInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -175,7 +175,7 @@ CloudRedisTracingConnection::ImportInstance( google::cloud::redis::v1::ImportInstanceRequest const& request) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::ImportInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -208,7 +208,7 @@ CloudRedisTracingConnection::ExportInstance( google::cloud::redis::v1::ExportInstanceRequest const& request) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::ExportInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ExportInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -241,7 +241,7 @@ CloudRedisTracingConnection::FailoverInstance( google::cloud::redis::v1::FailoverInstanceRequest const& request) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::FailoverInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->FailoverInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -274,7 +274,7 @@ CloudRedisTracingConnection::DeleteInstance( google::cloud::redis::v1::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::DeleteInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -308,7 +308,7 @@ CloudRedisTracingConnection::RescheduleMaintenance( google::cloud::redis::v1::RescheduleMaintenanceRequest const& request) { auto span = internal::MakeSpan( "redis_v1::CloudRedisConnection::RescheduleMaintenance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RescheduleMaintenance( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/resourcemanager/v3/folders_connection.cc b/google/cloud/resourcemanager/v3/folders_connection.cc index 69bcf97ba95e8..a426ba614273a 100644 --- a/google/cloud/resourcemanager/v3/folders_connection.cc +++ b/google/cloud/resourcemanager/v3/folders_connection.cc @@ -69,14 +69,14 @@ FoldersConnection::CreateFolder( } StatusOr FoldersConnection::CreateFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateFolderRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -FoldersConnection::CreateFolder(google::cloud::ExperimentalTag, +FoldersConnection::CreateFolder(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -92,14 +92,14 @@ FoldersConnection::UpdateFolder( } StatusOr FoldersConnection::UpdateFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateFolderRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -FoldersConnection::UpdateFolder(google::cloud::ExperimentalTag, +FoldersConnection::UpdateFolder(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -115,14 +115,14 @@ FoldersConnection::MoveFolder( } StatusOr FoldersConnection::MoveFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::MoveFolderRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -FoldersConnection::MoveFolder(google::cloud::ExperimentalTag, +FoldersConnection::MoveFolder(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -138,14 +138,14 @@ FoldersConnection::DeleteFolder( } StatusOr FoldersConnection::DeleteFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteFolderRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -FoldersConnection::DeleteFolder(google::cloud::ExperimentalTag, +FoldersConnection::DeleteFolder(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -161,14 +161,14 @@ FoldersConnection::UndeleteFolder( } StatusOr FoldersConnection::UndeleteFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UndeleteFolderRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -FoldersConnection::UndeleteFolder(google::cloud::ExperimentalTag, +FoldersConnection::UndeleteFolder(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/resourcemanager/v3/folders_connection.h b/google/cloud/resourcemanager/v3/folders_connection.h index caa12e4e5bbae..0b40a539a9668 100644 --- a/google/cloud/resourcemanager/v3/folders_connection.h +++ b/google/cloud/resourcemanager/v3/folders_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/resourcemanager/v3/folders_connection_idempotency_policy.h" #include "google/cloud/resourcemanager/v3/internal/folders_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -198,11 +198,11 @@ class FoldersConnection { google::cloud::resourcemanager::v3::CreateFolderRequest const& request); virtual StatusOr CreateFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateFolderRequest const& request); virtual future> - CreateFolder(google::cloud::ExperimentalTag, + CreateFolder(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -210,11 +210,11 @@ class FoldersConnection { google::cloud::resourcemanager::v3::UpdateFolderRequest const& request); virtual StatusOr UpdateFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateFolderRequest const& request); virtual future> - UpdateFolder(google::cloud::ExperimentalTag, + UpdateFolder(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -222,23 +222,22 @@ class FoldersConnection { google::cloud::resourcemanager::v3::MoveFolderRequest const& request); virtual StatusOr MoveFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::MoveFolderRequest const& request); virtual future> - MoveFolder(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + MoveFolder(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteFolder( google::cloud::resourcemanager::v3::DeleteFolderRequest const& request); virtual StatusOr DeleteFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteFolderRequest const& request); virtual future> - DeleteFolder(google::cloud::ExperimentalTag, + DeleteFolder(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -246,11 +245,11 @@ class FoldersConnection { google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request); virtual StatusOr UndeleteFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request); virtual future> - UndeleteFolder(google::cloud::ExperimentalTag, + UndeleteFolder(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetIamPolicy( diff --git a/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.cc index 172226a747ccc..0ff2e167c6c26 100644 --- a/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.cc @@ -80,7 +80,7 @@ StatusOr FoldersTracingConnection::CreateFolder( google::cloud::resourcemanager::v3::CreateFolderRequest const& request) { auto span = internal::MakeSpan("resourcemanager_v3::FoldersConnection::CreateFolder"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateFolder(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -112,7 +112,7 @@ StatusOr FoldersTracingConnection::UpdateFolder( google::cloud::resourcemanager::v3::UpdateFolderRequest const& request) { auto span = internal::MakeSpan("resourcemanager_v3::FoldersConnection::UpdateFolder"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateFolder(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -144,7 +144,7 @@ StatusOr FoldersTracingConnection::MoveFolder( google::cloud::resourcemanager::v3::MoveFolderRequest const& request) { auto span = internal::MakeSpan("resourcemanager_v3::FoldersConnection::MoveFolder"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->MoveFolder(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -176,7 +176,7 @@ StatusOr FoldersTracingConnection::DeleteFolder( google::cloud::resourcemanager::v3::DeleteFolderRequest const& request) { auto span = internal::MakeSpan("resourcemanager_v3::FoldersConnection::DeleteFolder"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteFolder(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -209,7 +209,7 @@ FoldersTracingConnection::UndeleteFolder( google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::FoldersConnection::UndeleteFolder"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UndeleteFolder(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.cc index 7ed3ba84793f0..5887bdcd4f98c 100644 --- a/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.cc @@ -81,7 +81,7 @@ ProjectsTracingConnection::CreateProject( google::cloud::resourcemanager::v3::CreateProjectRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::ProjectsConnection::CreateProject"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateProject(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -114,7 +114,7 @@ ProjectsTracingConnection::UpdateProject( google::cloud::resourcemanager::v3::UpdateProjectRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::ProjectsConnection::UpdateProject"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateProject(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -146,7 +146,7 @@ StatusOr ProjectsTracingConnection::MoveProject( google::cloud::resourcemanager::v3::MoveProjectRequest const& request) { auto span = internal::MakeSpan("resourcemanager_v3::ProjectsConnection::MoveProject"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->MoveProject(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -179,7 +179,7 @@ ProjectsTracingConnection::DeleteProject( google::cloud::resourcemanager::v3::DeleteProjectRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::ProjectsConnection::DeleteProject"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteProject(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -212,7 +212,7 @@ ProjectsTracingConnection::UndeleteProject( google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::ProjectsConnection::UndeleteProject"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UndeleteProject(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.cc index 6858dfa53660b..cc64a2e651288 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.cc @@ -62,7 +62,7 @@ TagBindingsTracingConnection::CreateTagBinding( request) { auto span = internal::MakeSpan( "resourcemanager_v3::TagBindingsConnection::CreateTagBinding"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateTagBinding(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -97,7 +97,7 @@ TagBindingsTracingConnection::DeleteTagBinding( request) { auto span = internal::MakeSpan( "resourcemanager_v3::TagBindingsConnection::DeleteTagBinding"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteTagBinding(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.cc index 126e642ef9ddc..addfec089cffc 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.cc @@ -48,7 +48,7 @@ TagHoldsTracingConnection::CreateTagHold( google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::TagHoldsConnection::CreateTagHold"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateTagHold(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -81,7 +81,7 @@ TagHoldsTracingConnection::DeleteTagHold( google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::TagHoldsConnection::DeleteTagHold"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteTagHold(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.cc index 9b0d436b20650..d440d41d0f40d 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.cc @@ -78,7 +78,7 @@ StatusOr TagKeysTracingConnection::CreateTagKey( google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request) { auto span = internal::MakeSpan("resourcemanager_v3::TagKeysConnection::CreateTagKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateTagKey(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -110,7 +110,7 @@ StatusOr TagKeysTracingConnection::UpdateTagKey( google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request) { auto span = internal::MakeSpan("resourcemanager_v3::TagKeysConnection::UpdateTagKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateTagKey(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -142,7 +142,7 @@ StatusOr TagKeysTracingConnection::DeleteTagKey( google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request) { auto span = internal::MakeSpan("resourcemanager_v3::TagKeysConnection::DeleteTagKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteTagKey(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.cc index cf43a40f5356c..112c46073d4b0 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.cc @@ -79,7 +79,7 @@ TagValuesTracingConnection::CreateTagValue( google::cloud::resourcemanager::v3::CreateTagValueRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::TagValuesConnection::CreateTagValue"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateTagValue(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -112,7 +112,7 @@ TagValuesTracingConnection::UpdateTagValue( google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::TagValuesConnection::UpdateTagValue"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateTagValue(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -145,7 +145,7 @@ TagValuesTracingConnection::DeleteTagValue( google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::TagValuesConnection::DeleteTagValue"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteTagValue(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/resourcemanager/v3/organizations_connection.h b/google/cloud/resourcemanager/v3/organizations_connection.h index 075f27c30140d..b4bc6b919c529 100644 --- a/google/cloud/resourcemanager/v3/organizations_connection.h +++ b/google/cloud/resourcemanager/v3/organizations_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/resourcemanager/v3/internal/organizations_retry_traits.h" #include "google/cloud/resourcemanager/v3/organizations_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/resourcemanager/v3/projects_connection.cc b/google/cloud/resourcemanager/v3/projects_connection.cc index c446d17bba8d9..b086c5c99e330 100644 --- a/google/cloud/resourcemanager/v3/projects_connection.cc +++ b/google/cloud/resourcemanager/v3/projects_connection.cc @@ -69,14 +69,14 @@ ProjectsConnection::CreateProject( } StatusOr ProjectsConnection::CreateProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateProjectRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ProjectsConnection::CreateProject(google::cloud::ExperimentalTag, +ProjectsConnection::CreateProject(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -92,14 +92,14 @@ ProjectsConnection::UpdateProject( } StatusOr ProjectsConnection::UpdateProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateProjectRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ProjectsConnection::UpdateProject(google::cloud::ExperimentalTag, +ProjectsConnection::UpdateProject(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -115,14 +115,14 @@ ProjectsConnection::MoveProject( } StatusOr ProjectsConnection::MoveProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::MoveProjectRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ProjectsConnection::MoveProject(google::cloud::ExperimentalTag, +ProjectsConnection::MoveProject(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -138,14 +138,14 @@ ProjectsConnection::DeleteProject( } StatusOr ProjectsConnection::DeleteProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteProjectRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ProjectsConnection::DeleteProject(google::cloud::ExperimentalTag, +ProjectsConnection::DeleteProject(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -161,14 +161,14 @@ ProjectsConnection::UndeleteProject( } StatusOr ProjectsConnection::UndeleteProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UndeleteProjectRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ProjectsConnection::UndeleteProject(google::cloud::ExperimentalTag, +ProjectsConnection::UndeleteProject(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/resourcemanager/v3/projects_connection.h b/google/cloud/resourcemanager/v3/projects_connection.h index e74ddc6e5b246..0e05332a54d15 100644 --- a/google/cloud/resourcemanager/v3/projects_connection.h +++ b/google/cloud/resourcemanager/v3/projects_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/resourcemanager/v3/internal/projects_retry_traits.h" #include "google/cloud/resourcemanager/v3/projects_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,11 +199,11 @@ class ProjectsConnection { google::cloud::resourcemanager::v3::CreateProjectRequest const& request); virtual StatusOr CreateProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateProjectRequest const& request); virtual future> - CreateProject(google::cloud::ExperimentalTag, + CreateProject(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -211,11 +211,11 @@ class ProjectsConnection { google::cloud::resourcemanager::v3::UpdateProjectRequest const& request); virtual StatusOr UpdateProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateProjectRequest const& request); virtual future> - UpdateProject(google::cloud::ExperimentalTag, + UpdateProject(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -223,23 +223,22 @@ class ProjectsConnection { google::cloud::resourcemanager::v3::MoveProjectRequest const& request); virtual StatusOr MoveProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::MoveProjectRequest const& request); virtual future> - MoveProject(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + MoveProject(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteProject( google::cloud::resourcemanager::v3::DeleteProjectRequest const& request); virtual StatusOr DeleteProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteProjectRequest const& request); virtual future> - DeleteProject(google::cloud::ExperimentalTag, + DeleteProject(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -248,12 +247,12 @@ class ProjectsConnection { request); virtual StatusOr UndeleteProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request); virtual future> - UndeleteProject(google::cloud::ExperimentalTag, + UndeleteProject(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetIamPolicy( diff --git a/google/cloud/resourcemanager/v3/tag_bindings_connection.cc b/google/cloud/resourcemanager/v3/tag_bindings_connection.cc index a11ea2b3195a2..e36b597d9baae 100644 --- a/google/cloud/resourcemanager/v3/tag_bindings_connection.cc +++ b/google/cloud/resourcemanager/v3/tag_bindings_connection.cc @@ -56,14 +56,14 @@ TagBindingsConnection::CreateTagBinding( StatusOr TagBindingsConnection::CreateTagBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagBindingRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -TagBindingsConnection::CreateTagBinding(google::cloud::ExperimentalTag, +TagBindingsConnection::CreateTagBinding(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -80,14 +80,14 @@ TagBindingsConnection::DeleteTagBinding( StatusOr TagBindingsConnection::DeleteTagBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagBindingRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -TagBindingsConnection::DeleteTagBinding(google::cloud::ExperimentalTag, +TagBindingsConnection::DeleteTagBinding(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/resourcemanager/v3/tag_bindings_connection.h b/google/cloud/resourcemanager/v3/tag_bindings_connection.h index ca8434703f7f3..acf98918efa3e 100644 --- a/google/cloud/resourcemanager/v3/tag_bindings_connection.h +++ b/google/cloud/resourcemanager/v3/tag_bindings_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/resourcemanager/v3/internal/tag_bindings_retry_traits.h" #include "google/cloud/resourcemanager/v3/tag_bindings_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -196,12 +196,12 @@ class TagBindingsConnection { request); virtual StatusOr CreateTagBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagBindingRequest const& request); virtual future> - CreateTagBinding(google::cloud::ExperimentalTag, + CreateTagBinding(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -211,13 +211,13 @@ class TagBindingsConnection { request); virtual StatusOr DeleteTagBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& request); virtual future< StatusOr> - DeleteTagBinding(google::cloud::ExperimentalTag, + DeleteTagBinding(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange diff --git a/google/cloud/resourcemanager/v3/tag_holds_connection.cc b/google/cloud/resourcemanager/v3/tag_holds_connection.cc index 4cbb60c3f749e..903b2d02b7d20 100644 --- a/google/cloud/resourcemanager/v3/tag_holds_connection.cc +++ b/google/cloud/resourcemanager/v3/tag_holds_connection.cc @@ -47,14 +47,14 @@ TagHoldsConnection::CreateTagHold( } StatusOr TagHoldsConnection::CreateTagHold( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagHoldRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -TagHoldsConnection::CreateTagHold(google::cloud::ExperimentalTag, +TagHoldsConnection::CreateTagHold(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -70,14 +70,14 @@ TagHoldsConnection::DeleteTagHold( } StatusOr TagHoldsConnection::DeleteTagHold( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagHoldRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -TagHoldsConnection::DeleteTagHold(google::cloud::ExperimentalTag, +TagHoldsConnection::DeleteTagHold(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/resourcemanager/v3/tag_holds_connection.h b/google/cloud/resourcemanager/v3/tag_holds_connection.h index 9ef49de9f5186..32cf7a5352bc3 100644 --- a/google/cloud/resourcemanager/v3/tag_holds_connection.h +++ b/google/cloud/resourcemanager/v3/tag_holds_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/resourcemanager/v3/internal/tag_holds_retry_traits.h" #include "google/cloud/resourcemanager/v3/tag_holds_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -189,11 +189,11 @@ class TagHoldsConnection { google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request); virtual StatusOr CreateTagHold( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request); virtual future> - CreateTagHold(google::cloud::ExperimentalTag, + CreateTagHold(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -202,12 +202,12 @@ class TagHoldsConnection { google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request); virtual StatusOr DeleteTagHold( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request); virtual future< StatusOr> - DeleteTagHold(google::cloud::ExperimentalTag, + DeleteTagHold(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListTagHolds( diff --git a/google/cloud/resourcemanager/v3/tag_keys_connection.cc b/google/cloud/resourcemanager/v3/tag_keys_connection.cc index 34fe7779dce5e..0d7168c3228fa 100644 --- a/google/cloud/resourcemanager/v3/tag_keys_connection.cc +++ b/google/cloud/resourcemanager/v3/tag_keys_connection.cc @@ -67,14 +67,14 @@ TagKeysConnection::CreateTagKey( } StatusOr TagKeysConnection::CreateTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagKeyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -TagKeysConnection::CreateTagKey(google::cloud::ExperimentalTag, +TagKeysConnection::CreateTagKey(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -90,14 +90,14 @@ TagKeysConnection::UpdateTagKey( } StatusOr TagKeysConnection::UpdateTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateTagKeyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -TagKeysConnection::UpdateTagKey(google::cloud::ExperimentalTag, +TagKeysConnection::UpdateTagKey(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -113,14 +113,14 @@ TagKeysConnection::DeleteTagKey( } StatusOr TagKeysConnection::DeleteTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagKeyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -TagKeysConnection::DeleteTagKey(google::cloud::ExperimentalTag, +TagKeysConnection::DeleteTagKey(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/resourcemanager/v3/tag_keys_connection.h b/google/cloud/resourcemanager/v3/tag_keys_connection.h index 0df4b3c33b5d1..139390fb89e1c 100644 --- a/google/cloud/resourcemanager/v3/tag_keys_connection.h +++ b/google/cloud/resourcemanager/v3/tag_keys_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/resourcemanager/v3/internal/tag_keys_retry_traits.h" #include "google/cloud/resourcemanager/v3/tag_keys_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -200,11 +200,11 @@ class TagKeysConnection { google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request); virtual StatusOr CreateTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request); virtual future> - CreateTagKey(google::cloud::ExperimentalTag, + CreateTagKey(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -212,11 +212,11 @@ class TagKeysConnection { google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request); virtual StatusOr UpdateTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request); virtual future> - UpdateTagKey(google::cloud::ExperimentalTag, + UpdateTagKey(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -224,11 +224,11 @@ class TagKeysConnection { google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request); virtual StatusOr DeleteTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request); virtual future> - DeleteTagKey(google::cloud::ExperimentalTag, + DeleteTagKey(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetIamPolicy( diff --git a/google/cloud/resourcemanager/v3/tag_values_connection.cc b/google/cloud/resourcemanager/v3/tag_values_connection.cc index 3251060ff59ce..6a9d7ba5f696b 100644 --- a/google/cloud/resourcemanager/v3/tag_values_connection.cc +++ b/google/cloud/resourcemanager/v3/tag_values_connection.cc @@ -67,14 +67,14 @@ TagValuesConnection::CreateTagValue( } StatusOr TagValuesConnection::CreateTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagValueRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -TagValuesConnection::CreateTagValue(google::cloud::ExperimentalTag, +TagValuesConnection::CreateTagValue(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -90,14 +90,14 @@ TagValuesConnection::UpdateTagValue( } StatusOr TagValuesConnection::UpdateTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateTagValueRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -TagValuesConnection::UpdateTagValue(google::cloud::ExperimentalTag, +TagValuesConnection::UpdateTagValue(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -113,14 +113,14 @@ TagValuesConnection::DeleteTagValue( } StatusOr TagValuesConnection::DeleteTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagValueRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -TagValuesConnection::DeleteTagValue(google::cloud::ExperimentalTag, +TagValuesConnection::DeleteTagValue(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/resourcemanager/v3/tag_values_connection.h b/google/cloud/resourcemanager/v3/tag_values_connection.h index 8da15cf6f95a8..1e032f69e9df3 100644 --- a/google/cloud/resourcemanager/v3/tag_values_connection.h +++ b/google/cloud/resourcemanager/v3/tag_values_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/resourcemanager/v3/internal/tag_values_retry_traits.h" #include "google/cloud/resourcemanager/v3/tag_values_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -203,11 +203,11 @@ class TagValuesConnection { google::cloud::resourcemanager::v3::CreateTagValueRequest const& request); virtual StatusOr CreateTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagValueRequest const& request); virtual future> - CreateTagValue(google::cloud::ExperimentalTag, + CreateTagValue(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -215,11 +215,11 @@ class TagValuesConnection { google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request); virtual StatusOr UpdateTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request); virtual future> - UpdateTagValue(google::cloud::ExperimentalTag, + UpdateTagValue(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -227,11 +227,11 @@ class TagValuesConnection { google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request); virtual StatusOr DeleteTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request); virtual future> - DeleteTagValue(google::cloud::ExperimentalTag, + DeleteTagValue(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetIamPolicy( diff --git a/google/cloud/resourcesettings/v1/resource_settings_connection.h b/google/cloud/resourcesettings/v1/resource_settings_connection.h index 8489687f0b228..67c511ed5f525 100644 --- a/google/cloud/resourcesettings/v1/resource_settings_connection.h +++ b/google/cloud/resourcesettings/v1/resource_settings_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/resourcesettings/v1/internal/resource_settings_retry_traits.h" #include "google/cloud/resourcesettings/v1/resource_settings_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/retail/v2/analytics_connection.cc b/google/cloud/retail/v2/analytics_connection.cc index bd196a5468c7a..e088434ae53ff 100644 --- a/google/cloud/retail/v2/analytics_connection.cc +++ b/google/cloud/retail/v2/analytics_connection.cc @@ -47,7 +47,7 @@ AnalyticsServiceConnection::ExportAnalyticsMetrics( StatusOr AnalyticsServiceConnection::ExportAnalyticsMetrics( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ExportAnalyticsMetricsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -55,7 +55,7 @@ AnalyticsServiceConnection::ExportAnalyticsMetrics( future> AnalyticsServiceConnection::ExportAnalyticsMetrics( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/retail/v2/analytics_connection.h b/google/cloud/retail/v2/analytics_connection.h index 147dcec2be142..6fb85098d1f3d 100644 --- a/google/cloud/retail/v2/analytics_connection.h +++ b/google/cloud/retail/v2/analytics_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/retail/v2/analytics_connection_idempotency_policy.h" #include "google/cloud/retail/v2/internal/analytics_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,12 +193,12 @@ class AnalyticsServiceConnection { google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request); virtual StatusOr ExportAnalyticsMetrics( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request); virtual future< StatusOr> - ExportAnalyticsMetrics(google::cloud::ExperimentalTag, + ExportAnalyticsMetrics(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/retail/v2/catalog_connection.h b/google/cloud/retail/v2/catalog_connection.h index 0c15df93e5b58..b29c81cb8d44d 100644 --- a/google/cloud/retail/v2/catalog_connection.h +++ b/google/cloud/retail/v2/catalog_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/retail/v2/catalog_connection_idempotency_policy.h" #include "google/cloud/retail/v2/internal/catalog_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/retail/v2/completion_connection.cc b/google/cloud/retail/v2/completion_connection.cc index 1b507992d6581..a6c3ecd1ffc9e 100644 --- a/google/cloud/retail/v2/completion_connection.cc +++ b/google/cloud/retail/v2/completion_connection.cc @@ -53,7 +53,7 @@ CompletionServiceConnection::ImportCompletionData( StatusOr CompletionServiceConnection::ImportCompletionData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportCompletionDataRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -61,7 +61,7 @@ CompletionServiceConnection::ImportCompletionData( future> CompletionServiceConnection::ImportCompletionData( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/retail/v2/completion_connection.h b/google/cloud/retail/v2/completion_connection.h index 5d812d91d2220..0a11fc4188ecc 100644 --- a/google/cloud/retail/v2/completion_connection.h +++ b/google/cloud/retail/v2/completion_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/retail/v2/completion_connection_idempotency_policy.h" #include "google/cloud/retail/v2/internal/completion_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -196,12 +196,12 @@ class CompletionServiceConnection { google::cloud::retail::v2::ImportCompletionDataRequest const& request); virtual StatusOr ImportCompletionData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportCompletionDataRequest const& request); virtual future< StatusOr> - ImportCompletionData(google::cloud::ExperimentalTag, + ImportCompletionData(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/retail/v2/control_connection.h b/google/cloud/retail/v2/control_connection.h index 2a59a23ca65d4..45fef1106cd0d 100644 --- a/google/cloud/retail/v2/control_connection.h +++ b/google/cloud/retail/v2/control_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/retail/v2/control_connection_idempotency_policy.h" #include "google/cloud/retail/v2/internal/control_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/retail/v2/internal/analytics_tracing_connection.cc b/google/cloud/retail/v2/internal/analytics_tracing_connection.cc index 4aa7518be3903..639ee530bd621 100644 --- a/google/cloud/retail/v2/internal/analytics_tracing_connection.cc +++ b/google/cloud/retail/v2/internal/analytics_tracing_connection.cc @@ -48,7 +48,7 @@ AnalyticsServiceTracingConnection::ExportAnalyticsMetrics( google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request) { auto span = internal::MakeSpan( "retail_v2::AnalyticsServiceConnection::ExportAnalyticsMetrics"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ExportAnalyticsMetrics( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/retail/v2/internal/completion_tracing_connection.cc b/google/cloud/retail/v2/internal/completion_tracing_connection.cc index 33d428a9e6d17..1a03d92c4a14b 100644 --- a/google/cloud/retail/v2/internal/completion_tracing_connection.cc +++ b/google/cloud/retail/v2/internal/completion_tracing_connection.cc @@ -57,7 +57,7 @@ CompletionServiceTracingConnection::ImportCompletionData( google::cloud::retail::v2::ImportCompletionDataRequest const& request) { auto span = internal::MakeSpan( "retail_v2::CompletionServiceConnection::ImportCompletionData"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ImportCompletionData( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/retail/v2/internal/model_tracing_connection.cc b/google/cloud/retail/v2/internal/model_tracing_connection.cc index c3afdd09a9fdc..4fca1a861fffd 100644 --- a/google/cloud/retail/v2/internal/model_tracing_connection.cc +++ b/google/cloud/retail/v2/internal/model_tracing_connection.cc @@ -48,7 +48,7 @@ ModelServiceTracingConnection::CreateModel( google::cloud::retail::v2::CreateModelRequest const& request) { auto span = internal::MakeSpan("retail_v2::ModelServiceConnection::CreateModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ ModelServiceTracingConnection::TuneModel( google::cloud::retail::v2::TuneModelRequest const& request) { auto span = internal::MakeSpan("retail_v2::ModelServiceConnection::TuneModel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->TuneModel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/retail/v2/internal/product_tracing_connection.cc b/google/cloud/retail/v2/internal/product_tracing_connection.cc index e23728796b2a6..8abbded57df95 100644 --- a/google/cloud/retail/v2/internal/product_tracing_connection.cc +++ b/google/cloud/retail/v2/internal/product_tracing_connection.cc @@ -94,7 +94,7 @@ ProductServiceTracingConnection::PurgeProducts( google::cloud::retail::v2::PurgeProductsRequest const& request) { auto span = internal::MakeSpan("retail_v2::ProductServiceConnection::PurgeProducts"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PurgeProducts(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -127,7 +127,7 @@ ProductServiceTracingConnection::ImportProducts( google::cloud::retail::v2::ImportProductsRequest const& request) { auto span = internal::MakeSpan("retail_v2::ProductServiceConnection::ImportProducts"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportProducts(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -160,7 +160,7 @@ ProductServiceTracingConnection::SetInventory( google::cloud::retail::v2::SetInventoryRequest const& request) { auto span = internal::MakeSpan("retail_v2::ProductServiceConnection::SetInventory"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SetInventory(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -194,7 +194,7 @@ ProductServiceTracingConnection::AddFulfillmentPlaces( google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request) { auto span = internal::MakeSpan( "retail_v2::ProductServiceConnection::AddFulfillmentPlaces"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->AddFulfillmentPlaces( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -228,7 +228,7 @@ ProductServiceTracingConnection::RemoveFulfillmentPlaces( google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request) { auto span = internal::MakeSpan( "retail_v2::ProductServiceConnection::RemoveFulfillmentPlaces"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RemoveFulfillmentPlaces( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -262,7 +262,7 @@ ProductServiceTracingConnection::AddLocalInventories( google::cloud::retail::v2::AddLocalInventoriesRequest const& request) { auto span = internal::MakeSpan( "retail_v2::ProductServiceConnection::AddLocalInventories"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddLocalInventories(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -296,7 +296,7 @@ ProductServiceTracingConnection::RemoveLocalInventories( google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request) { auto span = internal::MakeSpan( "retail_v2::ProductServiceConnection::RemoveLocalInventories"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RemoveLocalInventories( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/retail/v2/internal/user_event_tracing_connection.cc b/google/cloud/retail/v2/internal/user_event_tracing_connection.cc index 480d6313fd7c3..7e8c0b962c201 100644 --- a/google/cloud/retail/v2/internal/user_event_tracing_connection.cc +++ b/google/cloud/retail/v2/internal/user_event_tracing_connection.cc @@ -65,7 +65,7 @@ UserEventServiceTracingConnection::PurgeUserEvents( google::cloud::retail::v2::PurgeUserEventsRequest const& request) { auto span = internal::MakeSpan( "retail_v2::UserEventServiceConnection::PurgeUserEvents"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PurgeUserEvents(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -98,7 +98,7 @@ UserEventServiceTracingConnection::ImportUserEvents( google::cloud::retail::v2::ImportUserEventsRequest const& request) { auto span = internal::MakeSpan( "retail_v2::UserEventServiceConnection::ImportUserEvents"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportUserEvents(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -131,7 +131,7 @@ UserEventServiceTracingConnection::RejoinUserEvents( google::cloud::retail::v2::RejoinUserEventsRequest const& request) { auto span = internal::MakeSpan( "retail_v2::UserEventServiceConnection::RejoinUserEvents"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RejoinUserEvents(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/retail/v2/model_connection.cc b/google/cloud/retail/v2/model_connection.cc index 4a1759dfb5658..9399732a78a02 100644 --- a/google/cloud/retail/v2/model_connection.cc +++ b/google/cloud/retail/v2/model_connection.cc @@ -47,14 +47,14 @@ ModelServiceConnection::CreateModel( } StatusOr ModelServiceConnection::CreateModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::CreateModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ModelServiceConnection::CreateModel(google::cloud::ExperimentalTag, +ModelServiceConnection::CreateModel(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -103,14 +103,14 @@ ModelServiceConnection::TuneModel( } StatusOr ModelServiceConnection::TuneModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::TuneModelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ModelServiceConnection::TuneModel(google::cloud::ExperimentalTag, +ModelServiceConnection::TuneModel(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/retail/v2/model_connection.h b/google/cloud/retail/v2/model_connection.h index 0921b6e07adb5..5aa440e425949 100644 --- a/google/cloud/retail/v2/model_connection.h +++ b/google/cloud/retail/v2/model_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/retail/v2/internal/model_retry_traits.h" #include "google/cloud/retail/v2/model_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -191,12 +191,11 @@ class ModelServiceConnection { google::cloud::retail::v2::CreateModelRequest const& request); virtual StatusOr CreateModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::CreateModelRequest const& request); virtual future> CreateModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetModel( google::cloud::retail::v2::GetModelRequest const& request); @@ -220,12 +219,11 @@ class ModelServiceConnection { TuneModel(google::cloud::retail::v2::TuneModelRequest const& request); virtual StatusOr TuneModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::TuneModelRequest const& request); virtual future> - TuneModel(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + TuneModel(ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/retail/v2/prediction_connection.h b/google/cloud/retail/v2/prediction_connection.h index 0fa964705787b..e2ee3ff428de9 100644 --- a/google/cloud/retail/v2/prediction_connection.h +++ b/google/cloud/retail/v2/prediction_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/retail/v2/internal/prediction_retry_traits.h" #include "google/cloud/retail/v2/prediction_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/retail/v2/product_connection.cc b/google/cloud/retail/v2/product_connection.cc index c56e4e5ded38f..898a268a4c8bd 100644 --- a/google/cloud/retail/v2/product_connection.cc +++ b/google/cloud/retail/v2/product_connection.cc @@ -79,14 +79,14 @@ ProductServiceConnection::PurgeProducts( StatusOr ProductServiceConnection::PurgeProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::PurgeProductsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ProductServiceConnection::PurgeProducts(google::cloud::ExperimentalTag, +ProductServiceConnection::PurgeProducts(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -103,7 +103,7 @@ ProductServiceConnection::ImportProducts( StatusOr ProductServiceConnection::ImportProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportProductsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -111,7 +111,7 @@ ProductServiceConnection::ImportProducts( future> ProductServiceConnection::ImportProducts( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -126,14 +126,14 @@ ProductServiceConnection::SetInventory( } StatusOr ProductServiceConnection::SetInventory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::SetInventoryRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ProductServiceConnection::SetInventory(google::cloud::ExperimentalTag, +ProductServiceConnection::SetInventory(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -150,7 +150,7 @@ ProductServiceConnection::AddFulfillmentPlaces( StatusOr ProductServiceConnection::AddFulfillmentPlaces( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::AddFulfillmentPlacesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -158,7 +158,7 @@ ProductServiceConnection::AddFulfillmentPlaces( future> ProductServiceConnection::AddFulfillmentPlaces( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -174,7 +174,7 @@ ProductServiceConnection::RemoveFulfillmentPlaces( StatusOr ProductServiceConnection::RemoveFulfillmentPlaces( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -182,7 +182,7 @@ ProductServiceConnection::RemoveFulfillmentPlaces( future> ProductServiceConnection::RemoveFulfillmentPlaces( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -198,7 +198,7 @@ ProductServiceConnection::AddLocalInventories( StatusOr ProductServiceConnection::AddLocalInventories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::AddLocalInventoriesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -206,7 +206,7 @@ ProductServiceConnection::AddLocalInventories( future> ProductServiceConnection::AddLocalInventories( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -222,7 +222,7 @@ ProductServiceConnection::RemoveLocalInventories( StatusOr ProductServiceConnection::RemoveLocalInventories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RemoveLocalInventoriesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -230,7 +230,7 @@ ProductServiceConnection::RemoveLocalInventories( future> ProductServiceConnection::RemoveLocalInventories( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/retail/v2/product_connection.h b/google/cloud/retail/v2/product_connection.h index d9fda8be274ff..b8828db8b9ee5 100644 --- a/google/cloud/retail/v2/product_connection.h +++ b/google/cloud/retail/v2/product_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/retail/v2/internal/product_retry_traits.h" #include "google/cloud/retail/v2/product_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -206,11 +206,11 @@ class ProductServiceConnection { PurgeProducts(google::cloud::retail::v2::PurgeProductsRequest const& request); virtual StatusOr PurgeProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::PurgeProductsRequest const& request); virtual future> - PurgeProducts(google::cloud::ExperimentalTag, + PurgeProducts(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -218,22 +218,22 @@ class ProductServiceConnection { google::cloud::retail::v2::ImportProductsRequest const& request); virtual StatusOr ImportProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportProductsRequest const& request); virtual future> - ImportProducts(google::cloud::ExperimentalTag, + ImportProducts(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> SetInventory(google::cloud::retail::v2::SetInventoryRequest const& request); virtual StatusOr SetInventory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::SetInventoryRequest const& request); virtual future> - SetInventory(google::cloud::ExperimentalTag, + SetInventory(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -242,12 +242,12 @@ class ProductServiceConnection { google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request); virtual StatusOr AddFulfillmentPlaces( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request); virtual future< StatusOr> - AddFulfillmentPlaces(google::cloud::ExperimentalTag, + AddFulfillmentPlaces(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -256,12 +256,12 @@ class ProductServiceConnection { google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request); virtual StatusOr RemoveFulfillmentPlaces( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request); virtual future< StatusOr> - RemoveFulfillmentPlaces(google::cloud::ExperimentalTag, + RemoveFulfillmentPlaces(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -270,12 +270,12 @@ class ProductServiceConnection { google::cloud::retail::v2::AddLocalInventoriesRequest const& request); virtual StatusOr AddLocalInventories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::AddLocalInventoriesRequest const& request); virtual future< StatusOr> - AddLocalInventories(google::cloud::ExperimentalTag, + AddLocalInventories(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -284,12 +284,12 @@ class ProductServiceConnection { google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request); virtual StatusOr RemoveLocalInventories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request); virtual future< StatusOr> - RemoveLocalInventories(google::cloud::ExperimentalTag, + RemoveLocalInventories(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/retail/v2/search_connection.h b/google/cloud/retail/v2/search_connection.h index 717faf59a2ffb..a7ffb29c75704 100644 --- a/google/cloud/retail/v2/search_connection.h +++ b/google/cloud/retail/v2/search_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/retail/v2/internal/search_retry_traits.h" #include "google/cloud/retail/v2/search_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/retail/v2/serving_config_connection.h b/google/cloud/retail/v2/serving_config_connection.h index 9af2fa2986979..5e6d534e31ff4 100644 --- a/google/cloud/retail/v2/serving_config_connection.h +++ b/google/cloud/retail/v2/serving_config_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/retail/v2/internal/serving_config_retry_traits.h" #include "google/cloud/retail/v2/serving_config_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/retail/v2/user_event_connection.cc b/google/cloud/retail/v2/user_event_connection.cc index c106944235e5b..441bede1f24dd 100644 --- a/google/cloud/retail/v2/user_event_connection.cc +++ b/google/cloud/retail/v2/user_event_connection.cc @@ -58,7 +58,7 @@ UserEventServiceConnection::PurgeUserEvents( StatusOr UserEventServiceConnection::PurgeUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::PurgeUserEventsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -66,7 +66,7 @@ UserEventServiceConnection::PurgeUserEvents( future> UserEventServiceConnection::PurgeUserEvents( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -82,7 +82,7 @@ UserEventServiceConnection::ImportUserEvents( StatusOr UserEventServiceConnection::ImportUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportUserEventsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -90,7 +90,7 @@ UserEventServiceConnection::ImportUserEvents( future> UserEventServiceConnection::ImportUserEvents( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -106,7 +106,7 @@ UserEventServiceConnection::RejoinUserEvents( StatusOr UserEventServiceConnection::RejoinUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RejoinUserEventsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -114,7 +114,7 @@ UserEventServiceConnection::RejoinUserEvents( future> UserEventServiceConnection::RejoinUserEvents( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/retail/v2/user_event_connection.h b/google/cloud/retail/v2/user_event_connection.h index 4d78d3daffd36..ebcfb1b884628 100644 --- a/google/cloud/retail/v2/user_event_connection.h +++ b/google/cloud/retail/v2/user_event_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/retail/v2/internal/user_event_retry_traits.h" #include "google/cloud/retail/v2/user_event_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -198,11 +198,11 @@ class UserEventServiceConnection { google::cloud::retail::v2::PurgeUserEventsRequest const& request); virtual StatusOr PurgeUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::PurgeUserEventsRequest const& request); virtual future> - PurgeUserEvents(google::cloud::ExperimentalTag, + PurgeUserEvents(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -210,11 +210,11 @@ class UserEventServiceConnection { google::cloud::retail::v2::ImportUserEventsRequest const& request); virtual StatusOr ImportUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportUserEventsRequest const& request); virtual future> - ImportUserEvents(google::cloud::ExperimentalTag, + ImportUserEvents(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -222,11 +222,11 @@ class UserEventServiceConnection { google::cloud::retail::v2::RejoinUserEventsRequest const& request); virtual StatusOr RejoinUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RejoinUserEventsRequest const& request); virtual future> - RejoinUserEvents(google::cloud::ExperimentalTag, + RejoinUserEvents(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/run/v2/executions_connection.cc b/google/cloud/run/v2/executions_connection.cc index 2ae1b6454cafb..6af80b70ee075 100644 --- a/google/cloud/run/v2/executions_connection.cc +++ b/google/cloud/run/v2/executions_connection.cc @@ -60,14 +60,14 @@ ExecutionsConnection::DeleteExecution( } StatusOr ExecutionsConnection::DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteExecutionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ExecutionsConnection::DeleteExecution(google::cloud::ExperimentalTag, +ExecutionsConnection::DeleteExecution(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -83,14 +83,14 @@ ExecutionsConnection::CancelExecution( } StatusOr ExecutionsConnection::CancelExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CancelExecutionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ExecutionsConnection::CancelExecution(google::cloud::ExperimentalTag, +ExecutionsConnection::CancelExecution(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/run/v2/executions_connection.h b/google/cloud/run/v2/executions_connection.h index 6c62ab58f7d79..1e409ca2e5461 100644 --- a/google/cloud/run/v2/executions_connection.h +++ b/google/cloud/run/v2/executions_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/run/v2/executions_connection_idempotency_policy.h" #include "google/cloud/run/v2/internal/executions_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -196,23 +196,21 @@ class ExecutionsConnection { google::cloud::run::v2::DeleteExecutionRequest const& request); virtual StatusOr DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteExecutionRequest const& request); virtual future> DeleteExecution( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CancelExecution( google::cloud::run::v2::CancelExecutionRequest const& request); virtual StatusOr CancelExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CancelExecutionRequest const& request); virtual future> CancelExecution( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/run/v2/internal/executions_tracing_connection.cc b/google/cloud/run/v2/internal/executions_tracing_connection.cc index ae965e291c74f..df3b4e9177e64 100644 --- a/google/cloud/run/v2/internal/executions_tracing_connection.cc +++ b/google/cloud/run/v2/internal/executions_tracing_connection.cc @@ -67,7 +67,7 @@ ExecutionsTracingConnection::DeleteExecution( google::cloud::run::v2::DeleteExecutionRequest const& request) { auto span = internal::MakeSpan("run_v2::ExecutionsConnection::DeleteExecution"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteExecution(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -100,7 +100,7 @@ ExecutionsTracingConnection::CancelExecution( google::cloud::run::v2::CancelExecutionRequest const& request) { auto span = internal::MakeSpan("run_v2::ExecutionsConnection::CancelExecution"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CancelExecution(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/run/v2/internal/jobs_tracing_connection.cc b/google/cloud/run/v2/internal/jobs_tracing_connection.cc index 6c87bf8892ddd..891d5ebeaa34a 100644 --- a/google/cloud/run/v2/internal/jobs_tracing_connection.cc +++ b/google/cloud/run/v2/internal/jobs_tracing_connection.cc @@ -44,7 +44,7 @@ StatusOr JobsTracingConnection::CreateJob( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::run::v2::CreateJobRequest const& request) { auto span = internal::MakeSpan("run_v2::JobsConnection::CreateJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -87,7 +87,7 @@ StatusOr JobsTracingConnection::UpdateJob( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::run::v2::UpdateJobRequest const& request) { auto span = internal::MakeSpan("run_v2::JobsConnection::UpdateJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -114,7 +114,7 @@ StatusOr JobsTracingConnection::DeleteJob( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::run::v2::DeleteJobRequest const& request) { auto span = internal::MakeSpan("run_v2::JobsConnection::DeleteJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -142,7 +142,7 @@ StatusOr JobsTracingConnection::RunJob( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::run::v2::RunJobRequest const& request) { auto span = internal::MakeSpan("run_v2::JobsConnection::RunJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RunJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/run/v2/internal/revisions_tracing_connection.cc b/google/cloud/run/v2/internal/revisions_tracing_connection.cc index acdce0baa25fb..11e401445bd99 100644 --- a/google/cloud/run/v2/internal/revisions_tracing_connection.cc +++ b/google/cloud/run/v2/internal/revisions_tracing_connection.cc @@ -64,7 +64,7 @@ RevisionsTracingConnection::DeleteRevision( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::run::v2::DeleteRevisionRequest const& request) { auto span = internal::MakeSpan("run_v2::RevisionsConnection::DeleteRevision"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteRevision(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/run/v2/internal/services_tracing_connection.cc b/google/cloud/run/v2/internal/services_tracing_connection.cc index 4a3aed92159e4..180e27b424ad1 100644 --- a/google/cloud/run/v2/internal/services_tracing_connection.cc +++ b/google/cloud/run/v2/internal/services_tracing_connection.cc @@ -46,7 +46,7 @@ ServicesTracingConnection::CreateService( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::run::v2::CreateServiceRequest const& request) { auto span = internal::MakeSpan("run_v2::ServicesConnection::CreateService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -93,7 +93,7 @@ ServicesTracingConnection::UpdateService( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::run::v2::UpdateServiceRequest const& request) { auto span = internal::MakeSpan("run_v2::ServicesConnection::UpdateService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -123,7 +123,7 @@ ServicesTracingConnection::DeleteService( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::run::v2::DeleteServiceRequest const& request) { auto span = internal::MakeSpan("run_v2::ServicesConnection::DeleteService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/run/v2/jobs_connection.cc b/google/cloud/run/v2/jobs_connection.cc index 250d9f9b74f80..c59c5e1dd3237 100644 --- a/google/cloud/run/v2/jobs_connection.cc +++ b/google/cloud/run/v2/jobs_connection.cc @@ -46,14 +46,14 @@ future> JobsConnection::CreateJob( } StatusOr JobsConnection::CreateJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CreateJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> JobsConnection::CreateJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -79,14 +79,14 @@ future> JobsConnection::UpdateJob( } StatusOr JobsConnection::UpdateJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::UpdateJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> JobsConnection::UpdateJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -100,14 +100,14 @@ future> JobsConnection::DeleteJob( } StatusOr JobsConnection::DeleteJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> JobsConnection::DeleteJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -121,14 +121,13 @@ future> JobsConnection::RunJob( } StatusOr JobsConnection::RunJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, - google::cloud::run::v2::RunJobRequest const&) { + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::RunJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> JobsConnection::RunJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/run/v2/jobs_connection.h b/google/cloud/run/v2/jobs_connection.h index 899fa88524249..089fc6ff27107 100644 --- a/google/cloud/run/v2/jobs_connection.h +++ b/google/cloud/run/v2/jobs_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/run/v2/internal/jobs_retry_traits.h" #include "google/cloud/run/v2/jobs_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -187,12 +187,11 @@ class JobsConnection { google::cloud::run::v2::CreateJobRequest const& request); virtual StatusOr CreateJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CreateJobRequest const& request); virtual future> CreateJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetJob( google::cloud::run::v2::GetJobRequest const& request); @@ -204,34 +203,31 @@ class JobsConnection { google::cloud::run::v2::UpdateJobRequest const& request); virtual StatusOr UpdateJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::UpdateJobRequest const& request); virtual future> UpdateJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteJob( google::cloud::run::v2::DeleteJobRequest const& request); virtual StatusOr DeleteJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteJobRequest const& request); virtual future> DeleteJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> RunJob( google::cloud::run::v2::RunJobRequest const& request); virtual StatusOr RunJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::RunJobRequest const& request); virtual future> RunJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request); diff --git a/google/cloud/run/v2/revisions_connection.cc b/google/cloud/run/v2/revisions_connection.cc index de41074028c38..daa7e9e8d31fd 100644 --- a/google/cloud/run/v2/revisions_connection.cc +++ b/google/cloud/run/v2/revisions_connection.cc @@ -60,14 +60,14 @@ RevisionsConnection::DeleteRevision( } StatusOr RevisionsConnection::DeleteRevision( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteRevisionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -RevisionsConnection::DeleteRevision(google::cloud::ExperimentalTag, +RevisionsConnection::DeleteRevision(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/run/v2/revisions_connection.h b/google/cloud/run/v2/revisions_connection.h index 20396527d8543..ab14fea484490 100644 --- a/google/cloud/run/v2/revisions_connection.h +++ b/google/cloud/run/v2/revisions_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/run/v2/internal/revisions_retry_traits.h" #include "google/cloud/run/v2/revisions_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -196,12 +196,11 @@ class RevisionsConnection { google::cloud::run::v2::DeleteRevisionRequest const& request); virtual StatusOr DeleteRevision( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteRevisionRequest const& request); virtual future> DeleteRevision( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/run/v2/services_connection.cc b/google/cloud/run/v2/services_connection.cc index aee16249412df..5852773e84426 100644 --- a/google/cloud/run/v2/services_connection.cc +++ b/google/cloud/run/v2/services_connection.cc @@ -47,14 +47,14 @@ ServicesConnection::CreateService( } StatusOr ServicesConnection::CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CreateServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ServicesConnection::CreateService(google::cloud::ExperimentalTag, +ServicesConnection::CreateService(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -82,14 +82,14 @@ ServicesConnection::UpdateService( } StatusOr ServicesConnection::UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::UpdateServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ServicesConnection::UpdateService(google::cloud::ExperimentalTag, +ServicesConnection::UpdateService(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -105,14 +105,14 @@ ServicesConnection::DeleteService( } StatusOr ServicesConnection::DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ServicesConnection::DeleteService(google::cloud::ExperimentalTag, +ServicesConnection::DeleteService(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/run/v2/services_connection.h b/google/cloud/run/v2/services_connection.h index 0867e1bb26cce..88c354dbd9bb3 100644 --- a/google/cloud/run/v2/services_connection.h +++ b/google/cloud/run/v2/services_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/run/v2/internal/services_retry_traits.h" #include "google/cloud/run/v2/services_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -188,12 +188,11 @@ class ServicesConnection { google::cloud::run::v2::CreateServiceRequest const& request); virtual StatusOr CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CreateServiceRequest const& request); virtual future> CreateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetService( google::cloud::run::v2::GetServiceRequest const& request); @@ -205,23 +204,21 @@ class ServicesConnection { google::cloud::run::v2::UpdateServiceRequest const& request); virtual StatusOr UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::UpdateServiceRequest const& request); virtual future> UpdateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteService( google::cloud::run::v2::DeleteServiceRequest const& request); virtual StatusOr DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteServiceRequest const& request); virtual future> DeleteService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetIamPolicy( google::iam::v1::GetIamPolicyRequest const& request); diff --git a/google/cloud/run/v2/tasks_connection.h b/google/cloud/run/v2/tasks_connection.h index 148d3f374302b..bda42cd5dadde 100644 --- a/google/cloud/run/v2/tasks_connection.h +++ b/google/cloud/run/v2/tasks_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/run/v2/internal/tasks_retry_traits.h" #include "google/cloud/run/v2/tasks_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/scheduler/v1/cloud_scheduler_connection.h b/google/cloud/scheduler/v1/cloud_scheduler_connection.h index 1cd88f8101d97..f104e66124258 100644 --- a/google/cloud/scheduler/v1/cloud_scheduler_connection.h +++ b/google/cloud/scheduler/v1/cloud_scheduler_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/scheduler/v1/cloud_scheduler_connection_idempotency_policy.h" #include "google/cloud/scheduler/v1/internal/cloud_scheduler_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/secretmanager/v1/secret_manager_connection.h b/google/cloud/secretmanager/v1/secret_manager_connection.h index cf425c33962b6..2ad113ca8acd8 100644 --- a/google/cloud/secretmanager/v1/secret_manager_connection.h +++ b/google/cloud/secretmanager/v1/secret_manager_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/secretmanager/v1/internal/secret_manager_retry_traits.h" #include "google/cloud/secretmanager/v1/secret_manager_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.cc b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.cc index f1d87f76c6b3d..57c470741ab31 100644 --- a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.cc +++ b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.cc @@ -72,7 +72,7 @@ SecureSourceManagerTracingConnection::CreateInstance( request) { auto span = internal::MakeSpan( "securesourcemanager_v1::SecureSourceManagerConnection::CreateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -107,7 +107,7 @@ SecureSourceManagerTracingConnection::DeleteInstance( request) { auto span = internal::MakeSpan( "securesourcemanager_v1::SecureSourceManagerConnection::DeleteInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -167,7 +167,7 @@ SecureSourceManagerTracingConnection::CreateRepository( auto span = internal::MakeSpan( "securesourcemanager_v1::SecureSourceManagerConnection::" "CreateRepository"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateRepository(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -205,7 +205,7 @@ SecureSourceManagerTracingConnection::DeleteRepository( auto span = internal::MakeSpan( "securesourcemanager_v1::SecureSourceManagerConnection::" "DeleteRepository"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteRepository(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/securesourcemanager/v1/secure_source_manager_connection.cc b/google/cloud/securesourcemanager/v1/secure_source_manager_connection.cc index d5cf20c4b65cf..30331812c6499 100644 --- a/google/cloud/securesourcemanager/v1/secure_source_manager_connection.cc +++ b/google/cloud/securesourcemanager/v1/secure_source_manager_connection.cc @@ -62,7 +62,7 @@ SecureSourceManagerConnection::CreateInstance( StatusOr SecureSourceManagerConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::CreateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ SecureSourceManagerConnection::CreateInstance( future> SecureSourceManagerConnection::CreateInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ SecureSourceManagerConnection::DeleteInstance( StatusOr SecureSourceManagerConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::DeleteInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ SecureSourceManagerConnection::DeleteInstance( future> SecureSourceManagerConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -124,7 +124,7 @@ SecureSourceManagerConnection::CreateRepository( StatusOr SecureSourceManagerConnection::CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::CreateRepositoryRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -132,7 +132,7 @@ SecureSourceManagerConnection::CreateRepository( future> SecureSourceManagerConnection::CreateRepository( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -148,7 +148,7 @@ SecureSourceManagerConnection::DeleteRepository( StatusOr SecureSourceManagerConnection::DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -156,7 +156,7 @@ SecureSourceManagerConnection::DeleteRepository( future> SecureSourceManagerConnection::DeleteRepository( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/securesourcemanager/v1/secure_source_manager_connection.h b/google/cloud/securesourcemanager/v1/secure_source_manager_connection.h index 514004092ff9c..28e3b0a4ccb1e 100644 --- a/google/cloud/securesourcemanager/v1/secure_source_manager_connection.h +++ b/google/cloud/securesourcemanager/v1/secure_source_manager_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/securesourcemanager/v1/internal/secure_source_manager_retry_traits.h" #include "google/cloud/securesourcemanager/v1/secure_source_manager_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -205,12 +205,12 @@ class SecureSourceManagerConnection { request); virtual StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::CreateInstanceRequest const& request); virtual future> - CreateInstance(google::cloud::ExperimentalTag, + CreateInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -220,13 +220,13 @@ class SecureSourceManagerConnection { request); virtual StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& request); virtual future< StatusOr> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -244,12 +244,12 @@ class SecureSourceManagerConnection { request); virtual StatusOr CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& request); virtual future> - CreateRepository(google::cloud::ExperimentalTag, + CreateRepository(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -259,13 +259,13 @@ class SecureSourceManagerConnection { request); virtual StatusOr DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& request); virtual future< StatusOr> - DeleteRepository(google::cloud::ExperimentalTag, + DeleteRepository(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetIamPolicyRepo( diff --git a/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.cc b/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.cc index e3aecdb657a83..cfddd701b8db3 100644 --- a/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.cc +++ b/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.cc @@ -48,7 +48,7 @@ SecurityCenterTracingConnection::BulkMuteFindings( google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& request) { auto span = internal::MakeSpan( "securitycenter_v1::SecurityCenterConnection::BulkMuteFindings"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BulkMuteFindings(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -381,7 +381,7 @@ SecurityCenterTracingConnection::RunAssetDiscovery( request) { auto span = internal::MakeSpan( "securitycenter_v1::SecurityCenterConnection::RunAssetDiscovery"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RunAssetDiscovery(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/securitycenter/v1/security_center_connection.cc b/google/cloud/securitycenter/v1/security_center_connection.cc index 9457c37c93c57..c582c962eb02e 100644 --- a/google/cloud/securitycenter/v1/security_center_connection.cc +++ b/google/cloud/securitycenter/v1/security_center_connection.cc @@ -48,7 +48,7 @@ SecurityCenterConnection::BulkMuteFindings( StatusOr SecurityCenterConnection::BulkMuteFindings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v1::BulkMuteFindingsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ SecurityCenterConnection::BulkMuteFindings( future> SecurityCenterConnection::BulkMuteFindings( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -259,7 +259,7 @@ SecurityCenterConnection::RunAssetDiscovery( StatusOr SecurityCenterConnection::RunAssetDiscovery( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -267,7 +267,7 @@ SecurityCenterConnection::RunAssetDiscovery( future> SecurityCenterConnection::RunAssetDiscovery( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/securitycenter/v1/security_center_connection.h b/google/cloud/securitycenter/v1/security_center_connection.h index efc04d7591236..0fa112b2bf4ae 100644 --- a/google/cloud/securitycenter/v1/security_center_connection.h +++ b/google/cloud/securitycenter/v1/security_center_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/securitycenter/v1/internal/security_center_retry_traits.h" #include "google/cloud/securitycenter/v1/security_center_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -194,13 +194,13 @@ class SecurityCenterConnection { request); virtual StatusOr BulkMuteFindings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& request); virtual future< StatusOr> - BulkMuteFindings(google::cloud::ExperimentalTag, + BulkMuteFindings(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< @@ -326,13 +326,13 @@ class SecurityCenterConnection { request); virtual StatusOr RunAssetDiscovery( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& request); virtual future< StatusOr> - RunAssetDiscovery(google::cloud::ExperimentalTag, + RunAssetDiscovery(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr SetFindingState( diff --git a/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.cc b/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.cc index 1e6a072d3dfd5..138fb6235a6a2 100644 --- a/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.cc +++ b/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.cc @@ -61,7 +61,7 @@ SecurityCenterTracingConnection::BulkMuteFindings( google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& request) { auto span = internal::MakeSpan( "securitycenter_v2::SecurityCenterConnection::BulkMuteFindings"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BulkMuteFindings(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/securitycenter/v2/security_center_connection.cc b/google/cloud/securitycenter/v2/security_center_connection.cc index d0672b5c754d4..050e8938bc895 100644 --- a/google/cloud/securitycenter/v2/security_center_connection.cc +++ b/google/cloud/securitycenter/v2/security_center_connection.cc @@ -56,7 +56,7 @@ SecurityCenterConnection::BulkMuteFindings( StatusOr SecurityCenterConnection::BulkMuteFindings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v2::BulkMuteFindingsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -64,7 +64,7 @@ SecurityCenterConnection::BulkMuteFindings( future> SecurityCenterConnection::BulkMuteFindings( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/securitycenter/v2/security_center_connection.h b/google/cloud/securitycenter/v2/security_center_connection.h index 140a9cd4c1ba6..7a301302c7640 100644 --- a/google/cloud/securitycenter/v2/security_center_connection.h +++ b/google/cloud/securitycenter/v2/security_center_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/securitycenter/v2/internal/security_center_retry_traits.h" #include "google/cloud/securitycenter/v2/security_center_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -200,13 +200,13 @@ class SecurityCenterConnection { request); virtual StatusOr BulkMuteFindings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& request); virtual future< StatusOr> - BulkMuteFindings(google::cloud::ExperimentalTag, + BulkMuteFindings(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/securitycentermanagement/v1/security_center_management_connection.h b/google/cloud/securitycentermanagement/v1/security_center_management_connection.h index 79ca1fefb607a..6ebc558d86c3d 100644 --- a/google/cloud/securitycentermanagement/v1/security_center_management_connection.h +++ b/google/cloud/securitycentermanagement/v1/security_center_management_connection.h @@ -22,7 +22,6 @@ #include "google/cloud/securitycentermanagement/v1/internal/security_center_management_retry_traits.h" #include "google/cloud/securitycentermanagement/v1/security_center_management_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/servicecontrol/v1/quota_controller_connection.h b/google/cloud/servicecontrol/v1/quota_controller_connection.h index ce6c4eaf10873..a6064639ddc15 100644 --- a/google/cloud/servicecontrol/v1/quota_controller_connection.h +++ b/google/cloud/servicecontrol/v1/quota_controller_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/servicecontrol/v1/internal/quota_controller_retry_traits.h" #include "google/cloud/servicecontrol/v1/quota_controller_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/servicecontrol/v1/service_controller_connection.h b/google/cloud/servicecontrol/v1/service_controller_connection.h index 0924ce85bc165..144b2b5a41a42 100644 --- a/google/cloud/servicecontrol/v1/service_controller_connection.h +++ b/google/cloud/servicecontrol/v1/service_controller_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/servicecontrol/v1/internal/service_controller_retry_traits.h" #include "google/cloud/servicecontrol/v1/service_controller_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/servicecontrol/v2/service_controller_connection.h b/google/cloud/servicecontrol/v2/service_controller_connection.h index 4b67c0161e93b..69f4b5f3026ae 100644 --- a/google/cloud/servicecontrol/v2/service_controller_connection.h +++ b/google/cloud/servicecontrol/v2/service_controller_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/servicecontrol/v2/internal/service_controller_retry_traits.h" #include "google/cloud/servicecontrol/v2/service_controller_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/servicedirectory/v1/lookup_connection.h b/google/cloud/servicedirectory/v1/lookup_connection.h index e0cb45154de5a..67bf163baa30c 100644 --- a/google/cloud/servicedirectory/v1/lookup_connection.h +++ b/google/cloud/servicedirectory/v1/lookup_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/servicedirectory/v1/internal/lookup_retry_traits.h" #include "google/cloud/servicedirectory/v1/lookup_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/servicedirectory/v1/registration_connection.h b/google/cloud/servicedirectory/v1/registration_connection.h index 7809cedf058bf..c6406f01abfa8 100644 --- a/google/cloud/servicedirectory/v1/registration_connection.h +++ b/google/cloud/servicedirectory/v1/registration_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/servicedirectory/v1/internal/registration_retry_traits.h" #include "google/cloud/servicedirectory/v1/registration_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/servicehealth/v1/service_health_connection.h b/google/cloud/servicehealth/v1/service_health_connection.h index 3800541f4cc34..a0f914f0bc305 100644 --- a/google/cloud/servicehealth/v1/service_health_connection.h +++ b/google/cloud/servicehealth/v1/service_health_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/servicehealth/v1/internal/service_health_retry_traits.h" #include "google/cloud/servicehealth/v1/service_health_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.cc b/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.cc index d7a40262c7eb0..61fa9ac9eb07c 100644 --- a/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.cc +++ b/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.cc @@ -69,7 +69,7 @@ ServiceManagerTracingConnection::CreateService( google::api::servicemanagement::v1::CreateServiceRequest const& request) { auto span = internal::MakeSpan( "servicemanagement_v1::ServiceManagerConnection::CreateService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -102,7 +102,7 @@ ServiceManagerTracingConnection::DeleteService( google::api::servicemanagement::v1::DeleteServiceRequest const& request) { auto span = internal::MakeSpan( "servicemanagement_v1::ServiceManagerConnection::DeleteService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ ServiceManagerTracingConnection::UndeleteService( google::api::servicemanagement::v1::UndeleteServiceRequest const& request) { auto span = internal::MakeSpan( "servicemanagement_v1::ServiceManagerConnection::UndeleteService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UndeleteService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -202,7 +202,7 @@ ServiceManagerTracingConnection::SubmitConfigSource( request) { auto span = internal::MakeSpan( "servicemanagement_v1::ServiceManagerConnection::SubmitConfigSource"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SubmitConfigSource(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -260,7 +260,7 @@ ServiceManagerTracingConnection::CreateServiceRollout( request) { auto span = internal::MakeSpan( "servicemanagement_v1::ServiceManagerConnection::CreateServiceRollout"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateServiceRollout( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/servicemanagement/v1/service_manager_connection.cc b/google/cloud/servicemanagement/v1/service_manager_connection.cc index 55e9818ef415f..613e72e0b4db4 100644 --- a/google/cloud/servicemanagement/v1/service_manager_connection.cc +++ b/google/cloud/servicemanagement/v1/service_manager_connection.cc @@ -62,14 +62,14 @@ ServiceManagerConnection::CreateService( StatusOr ServiceManagerConnection::CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::CreateServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ServiceManagerConnection::CreateService(google::cloud::ExperimentalTag, +ServiceManagerConnection::CreateService(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -86,14 +86,14 @@ ServiceManagerConnection::DeleteService( StatusOr ServiceManagerConnection::DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::DeleteServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ServiceManagerConnection::DeleteService(google::cloud::ExperimentalTag, +ServiceManagerConnection::DeleteService(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -110,7 +110,7 @@ ServiceManagerConnection::UndeleteService( StatusOr ServiceManagerConnection::UndeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::UndeleteServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ ServiceManagerConnection::UndeleteService( future> ServiceManagerConnection::UndeleteService( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -151,7 +151,7 @@ ServiceManagerConnection::SubmitConfigSource( StatusOr ServiceManagerConnection::SubmitConfigSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::SubmitConfigSourceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -159,7 +159,7 @@ ServiceManagerConnection::SubmitConfigSource( future> ServiceManagerConnection::SubmitConfigSource( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -189,7 +189,7 @@ ServiceManagerConnection::CreateServiceRollout( StatusOr ServiceManagerConnection::CreateServiceRollout( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::CreateServiceRolloutRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -197,7 +197,7 @@ ServiceManagerConnection::CreateServiceRollout( future> ServiceManagerConnection::CreateServiceRollout( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/servicemanagement/v1/service_manager_connection.h b/google/cloud/servicemanagement/v1/service_manager_connection.h index a5f2d46ac82d4..fd7ba6628b8c6 100644 --- a/google/cloud/servicemanagement/v1/service_manager_connection.h +++ b/google/cloud/servicemanagement/v1/service_manager_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/servicemanagement/v1/internal/service_manager_retry_traits.h" #include "google/cloud/servicemanagement/v1/service_manager_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -199,11 +199,11 @@ class ServiceManagerConnection { google::api::servicemanagement::v1::CreateServiceRequest const& request); virtual StatusOr CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::CreateServiceRequest const& request); virtual future> - CreateService(google::cloud::ExperimentalTag, + CreateService(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -212,12 +212,12 @@ class ServiceManagerConnection { google::api::servicemanagement::v1::DeleteServiceRequest const& request); virtual StatusOr DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::DeleteServiceRequest const& request); virtual future< StatusOr> - DeleteService(google::cloud::ExperimentalTag, + DeleteService(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -227,13 +227,13 @@ class ServiceManagerConnection { request); virtual StatusOr UndeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::UndeleteServiceRequest const& request); virtual future< StatusOr> - UndeleteService(google::cloud::ExperimentalTag, + UndeleteService(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListServiceConfigs( @@ -254,13 +254,13 @@ class ServiceManagerConnection { request); virtual StatusOr SubmitConfigSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::SubmitConfigSourceRequest const& request); virtual future< StatusOr> - SubmitConfigSource(google::cloud::ExperimentalTag, + SubmitConfigSource(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -278,12 +278,12 @@ class ServiceManagerConnection { request); virtual StatusOr CreateServiceRollout( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::CreateServiceRolloutRequest const& request); virtual future> - CreateServiceRollout(google::cloud::ExperimentalTag, + CreateServiceRollout(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr< diff --git a/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.cc b/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.cc index d57d8f479492e..9e5653bc86228 100644 --- a/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.cc +++ b/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.cc @@ -48,7 +48,7 @@ ServiceUsageTracingConnection::EnableService( google::api::serviceusage::v1::EnableServiceRequest const& request) { auto span = internal::MakeSpan( "serviceusage_v1::ServiceUsageConnection::EnableService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->EnableService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -81,7 +81,7 @@ ServiceUsageTracingConnection::DisableService( google::api::serviceusage::v1::DisableServiceRequest const& request) { auto span = internal::MakeSpan( "serviceusage_v1::ServiceUsageConnection::DisableService"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DisableService(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ ServiceUsageTracingConnection::BatchEnableServices( google::api::serviceusage::v1::BatchEnableServicesRequest const& request) { auto span = internal::MakeSpan( "serviceusage_v1::ServiceUsageConnection::BatchEnableServices"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BatchEnableServices(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/serviceusage/v1/service_usage_connection.cc b/google/cloud/serviceusage/v1/service_usage_connection.cc index 2ea9ed4b08285..6abb10f1ea006 100644 --- a/google/cloud/serviceusage/v1/service_usage_connection.cc +++ b/google/cloud/serviceusage/v1/service_usage_connection.cc @@ -47,14 +47,14 @@ ServiceUsageConnection::EnableService( } StatusOr ServiceUsageConnection::EnableService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::EnableServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ServiceUsageConnection::EnableService(google::cloud::ExperimentalTag, +ServiceUsageConnection::EnableService(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -70,14 +70,14 @@ ServiceUsageConnection::DisableService( } StatusOr ServiceUsageConnection::DisableService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::DisableServiceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ServiceUsageConnection::DisableService(google::cloud::ExperimentalTag, +ServiceUsageConnection::DisableService(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -108,7 +108,7 @@ ServiceUsageConnection::BatchEnableServices( StatusOr ServiceUsageConnection::BatchEnableServices( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::BatchEnableServicesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -116,7 +116,7 @@ ServiceUsageConnection::BatchEnableServices( future> ServiceUsageConnection::BatchEnableServices( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/serviceusage/v1/service_usage_connection.h b/google/cloud/serviceusage/v1/service_usage_connection.h index be9f9e1d412b7..336751d036030 100644 --- a/google/cloud/serviceusage/v1/service_usage_connection.h +++ b/google/cloud/serviceusage/v1/service_usage_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/serviceusage/v1/internal/service_usage_retry_traits.h" #include "google/cloud/serviceusage/v1/service_usage_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,11 +192,11 @@ class ServiceUsageConnection { google::api::serviceusage::v1::EnableServiceRequest const& request); virtual StatusOr EnableService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::EnableServiceRequest const& request); virtual future> - EnableService(google::cloud::ExperimentalTag, + EnableService(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -205,12 +205,12 @@ class ServiceUsageConnection { google::api::serviceusage::v1::DisableServiceRequest const& request); virtual StatusOr DisableService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::DisableServiceRequest const& request); virtual future< StatusOr> - DisableService(google::cloud::ExperimentalTag, + DisableService(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetService( @@ -225,12 +225,12 @@ class ServiceUsageConnection { google::api::serviceusage::v1::BatchEnableServicesRequest const& request); virtual StatusOr BatchEnableServices( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::BatchEnableServicesRequest const& request); virtual future< StatusOr> - BatchEnableServices(google::cloud::ExperimentalTag, + BatchEnableServices(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/shell/v1/cloud_shell_connection.cc b/google/cloud/shell/v1/cloud_shell_connection.cc index bf92bf900d45c..23b28b77503ed 100644 --- a/google/cloud/shell/v1/cloud_shell_connection.cc +++ b/google/cloud/shell/v1/cloud_shell_connection.cc @@ -53,7 +53,7 @@ CloudShellServiceConnection::StartEnvironment( StatusOr CloudShellServiceConnection::StartEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::StartEnvironmentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -61,7 +61,7 @@ CloudShellServiceConnection::StartEnvironment( future> CloudShellServiceConnection::StartEnvironment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -77,7 +77,7 @@ CloudShellServiceConnection::AuthorizeEnvironment( StatusOr CloudShellServiceConnection::AuthorizeEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::AuthorizeEnvironmentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -85,7 +85,7 @@ CloudShellServiceConnection::AuthorizeEnvironment( future> CloudShellServiceConnection::AuthorizeEnvironment( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -101,7 +101,7 @@ CloudShellServiceConnection::AddPublicKey( StatusOr CloudShellServiceConnection::AddPublicKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::AddPublicKeyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -109,7 +109,7 @@ CloudShellServiceConnection::AddPublicKey( future> CloudShellServiceConnection::AddPublicKey( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -125,7 +125,7 @@ CloudShellServiceConnection::RemovePublicKey( StatusOr CloudShellServiceConnection::RemovePublicKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::RemovePublicKeyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -133,7 +133,7 @@ CloudShellServiceConnection::RemovePublicKey( future> CloudShellServiceConnection::RemovePublicKey( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/shell/v1/cloud_shell_connection.h b/google/cloud/shell/v1/cloud_shell_connection.h index 2502d0eb7afbc..fcbe324151388 100644 --- a/google/cloud/shell/v1/cloud_shell_connection.h +++ b/google/cloud/shell/v1/cloud_shell_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/shell/v1/cloud_shell_connection_idempotency_policy.h" #include "google/cloud/shell/v1/internal/cloud_shell_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,11 +197,11 @@ class CloudShellServiceConnection { google::cloud::shell::v1::StartEnvironmentRequest const& request); virtual StatusOr StartEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::StartEnvironmentRequest const& request); virtual future> - StartEnvironment(google::cloud::ExperimentalTag, + StartEnvironment(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -210,23 +210,23 @@ class CloudShellServiceConnection { google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request); virtual StatusOr AuthorizeEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request); virtual future< StatusOr> - AuthorizeEnvironment(google::cloud::ExperimentalTag, + AuthorizeEnvironment(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> AddPublicKey(google::cloud::shell::v1::AddPublicKeyRequest const& request); virtual StatusOr AddPublicKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::AddPublicKeyRequest const& request); virtual future> - AddPublicKey(google::cloud::ExperimentalTag, + AddPublicKey(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -234,11 +234,11 @@ class CloudShellServiceConnection { google::cloud::shell::v1::RemovePublicKeyRequest const& request); virtual StatusOr RemovePublicKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::RemovePublicKeyRequest const& request); virtual future> - RemovePublicKey(google::cloud::ExperimentalTag, + RemovePublicKey(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.cc b/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.cc index c31e336313033..debb3d972be15 100644 --- a/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.cc +++ b/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.cc @@ -56,7 +56,7 @@ CloudShellServiceTracingConnection::StartEnvironment( google::cloud::shell::v1::StartEnvironmentRequest const& request) { auto span = internal::MakeSpan( "shell_v1::CloudShellServiceConnection::StartEnvironment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StartEnvironment(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -90,7 +90,7 @@ CloudShellServiceTracingConnection::AuthorizeEnvironment( google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request) { auto span = internal::MakeSpan( "shell_v1::CloudShellServiceConnection::AuthorizeEnvironment"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->AuthorizeEnvironment( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -123,7 +123,7 @@ CloudShellServiceTracingConnection::AddPublicKey( google::cloud::shell::v1::AddPublicKeyRequest const& request) { auto span = internal::MakeSpan("shell_v1::CloudShellServiceConnection::AddPublicKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddPublicKey(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -156,7 +156,7 @@ CloudShellServiceTracingConnection::RemovePublicKey( google::cloud::shell::v1::RemovePublicKeyRequest const& request) { auto span = internal::MakeSpan( "shell_v1::CloudShellServiceConnection::RemovePublicKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RemovePublicKey(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/spanner/admin/database_admin_connection.cc b/google/cloud/spanner/admin/database_admin_connection.cc index d0997ec10fb4e..36977b0583e45 100644 --- a/google/cloud/spanner/admin/database_admin_connection.cc +++ b/google/cloud/spanner/admin/database_admin_connection.cc @@ -56,14 +56,14 @@ DatabaseAdminConnection::CreateDatabase( StatusOr DatabaseAdminConnection::CreateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateDatabaseRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DatabaseAdminConnection::CreateDatabase(google::cloud::ExperimentalTag, +DatabaseAdminConnection::CreateDatabase(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -86,14 +86,14 @@ DatabaseAdminConnection::UpdateDatabase( StatusOr DatabaseAdminConnection::UpdateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DatabaseAdminConnection::UpdateDatabase(google::cloud::ExperimentalTag, +DatabaseAdminConnection::UpdateDatabase(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -111,7 +111,7 @@ DatabaseAdminConnection::UpdateDatabaseDdl( StatusOr DatabaseAdminConnection::UpdateDatabaseDdl( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -120,7 +120,7 @@ DatabaseAdminConnection::UpdateDatabaseDdl( future< StatusOr> DatabaseAdminConnection::UpdateDatabaseDdl( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -162,14 +162,14 @@ DatabaseAdminConnection::CreateBackup( } StatusOr DatabaseAdminConnection::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DatabaseAdminConnection::CreateBackup(google::cloud::ExperimentalTag, +DatabaseAdminConnection::CreateBackup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -185,14 +185,14 @@ DatabaseAdminConnection::CopyBackup( } StatusOr DatabaseAdminConnection::CopyBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CopyBackupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -DatabaseAdminConnection::CopyBackup(google::cloud::ExperimentalTag, +DatabaseAdminConnection::CopyBackup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -234,7 +234,7 @@ DatabaseAdminConnection::RestoreDatabase( StatusOr DatabaseAdminConnection::RestoreDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::RestoreDatabaseRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -242,7 +242,7 @@ DatabaseAdminConnection::RestoreDatabase( future> DatabaseAdminConnection::RestoreDatabase( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/spanner/admin/database_admin_connection.h b/google/cloud/spanner/admin/database_admin_connection.h index 17a37b74c28a8..80225e7c4bc1b 100644 --- a/google/cloud/spanner/admin/database_admin_connection.h +++ b/google/cloud/spanner/admin/database_admin_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/spanner/admin/database_admin_connection_idempotency_policy.h" #include "google/cloud/spanner/admin/internal/database_admin_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,12 +197,12 @@ class DatabaseAdminConnection { request); virtual StatusOr CreateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateDatabaseRequest const& request); virtual future> - CreateDatabase(google::cloud::ExperimentalTag, + CreateDatabase(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetDatabase( @@ -214,12 +214,12 @@ class DatabaseAdminConnection { request); virtual StatusOr UpdateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseRequest const& request); virtual future> - UpdateDatabase(google::cloud::ExperimentalTag, + UpdateDatabase(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -229,13 +229,13 @@ class DatabaseAdminConnection { request); virtual StatusOr UpdateDatabaseDdl( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& request); virtual future< StatusOr> - UpdateDatabaseDdl(google::cloud::ExperimentalTag, + UpdateDatabaseDdl(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status DropDatabase( @@ -260,11 +260,11 @@ class DatabaseAdminConnection { google::spanner::admin::database::v1::CreateBackupRequest const& request); virtual StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateBackupRequest const& request); virtual future> - CreateBackup(google::cloud::ExperimentalTag, + CreateBackup(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -272,12 +272,11 @@ class DatabaseAdminConnection { google::spanner::admin::database::v1::CopyBackupRequest const& request); virtual StatusOr CopyBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CopyBackupRequest const& request); virtual future> - CopyBackup(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + CopyBackup(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetBackup( google::spanner::admin::database::v1::GetBackupRequest const& request); @@ -297,12 +296,12 @@ class DatabaseAdminConnection { request); virtual StatusOr RestoreDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::RestoreDatabaseRequest const& request); virtual future> - RestoreDatabase(google::cloud::ExperimentalTag, + RestoreDatabase(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListDatabaseOperations( diff --git a/google/cloud/spanner/admin/instance_admin_connection.cc b/google/cloud/spanner/admin/instance_admin_connection.cc index 4425e25658ddd..711c6871e4901 100644 --- a/google/cloud/spanner/admin/instance_admin_connection.cc +++ b/google/cloud/spanner/admin/instance_admin_connection.cc @@ -62,7 +62,7 @@ InstanceAdminConnection::CreateInstanceConfig( StatusOr InstanceAdminConnection::CreateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ InstanceAdminConnection::CreateInstanceConfig( future> InstanceAdminConnection::CreateInstanceConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ InstanceAdminConnection::UpdateInstanceConfig( StatusOr InstanceAdminConnection::UpdateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ InstanceAdminConnection::UpdateInstanceConfig( future> InstanceAdminConnection::UpdateInstanceConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -145,14 +145,14 @@ InstanceAdminConnection::CreateInstance( StatusOr InstanceAdminConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -InstanceAdminConnection::CreateInstance(google::cloud::ExperimentalTag, +InstanceAdminConnection::CreateInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -169,14 +169,14 @@ InstanceAdminConnection::UpdateInstance( StatusOr InstanceAdminConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -InstanceAdminConnection::UpdateInstance(google::cloud::ExperimentalTag, +InstanceAdminConnection::UpdateInstance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -221,7 +221,7 @@ InstanceAdminConnection::CreateInstancePartition( StatusOr InstanceAdminConnection::CreateInstancePartition( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1:: CreateInstancePartitionRequest const&) { return StatusOr( @@ -230,7 +230,7 @@ InstanceAdminConnection::CreateInstancePartition( future> InstanceAdminConnection::CreateInstancePartition( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -253,7 +253,7 @@ InstanceAdminConnection::UpdateInstancePartition( StatusOr InstanceAdminConnection::UpdateInstancePartition( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1:: UpdateInstancePartitionRequest const&) { return StatusOr( @@ -262,7 +262,7 @@ InstanceAdminConnection::UpdateInstancePartition( future> InstanceAdminConnection::UpdateInstancePartition( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/spanner/admin/instance_admin_connection.h b/google/cloud/spanner/admin/instance_admin_connection.h index 25ba388a0c344..63499aa616c70 100644 --- a/google/cloud/spanner/admin/instance_admin_connection.h +++ b/google/cloud/spanner/admin/instance_admin_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/spanner/admin/instance_admin_connection_idempotency_policy.h" #include "google/cloud/spanner/admin/internal/instance_admin_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -202,12 +202,12 @@ class InstanceAdminConnection { request); virtual StatusOr CreateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& request); virtual future> - CreateInstanceConfig(google::cloud::ExperimentalTag, + CreateInstanceConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -216,12 +216,12 @@ class InstanceAdminConnection { request); virtual StatusOr UpdateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& request); virtual future> - UpdateInstanceConfig(google::cloud::ExperimentalTag, + UpdateInstanceConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status DeleteInstanceConfig( @@ -251,12 +251,12 @@ class InstanceAdminConnection { request); virtual StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceRequest const& request); virtual future> - CreateInstance(google::cloud::ExperimentalTag, + CreateInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -265,12 +265,12 @@ class InstanceAdminConnection { request); virtual StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceRequest const& request); virtual future> - UpdateInstance(google::cloud::ExperimentalTag, + UpdateInstance(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status DeleteInstance( @@ -297,13 +297,13 @@ class InstanceAdminConnection { CreateInstancePartitionRequest const& request); virtual StatusOr CreateInstancePartition( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1:: CreateInstancePartitionRequest const& request); virtual future< StatusOr> - CreateInstancePartition(google::cloud::ExperimentalTag, + CreateInstancePartition(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status DeleteInstancePartition( @@ -316,13 +316,13 @@ class InstanceAdminConnection { UpdateInstancePartitionRequest const& request); virtual StatusOr UpdateInstancePartition( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1:: UpdateInstancePartitionRequest const& request); virtual future< StatusOr> - UpdateInstancePartition(google::cloud::ExperimentalTag, + UpdateInstancePartition(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange diff --git a/google/cloud/spanner/admin/internal/database_admin_rest_connection_impl.cc b/google/cloud/spanner/admin/internal/database_admin_rest_connection_impl.cc index 1d97f7b7568f0..b24fde70a7719 100644 --- a/google/cloud/spanner/admin/internal/database_admin_rest_connection_impl.cc +++ b/google/cloud/spanner/admin/internal/database_admin_rest_connection_impl.cc @@ -118,7 +118,7 @@ DatabaseAdminRestConnectionImpl::CreateDatabase( StatusOr DatabaseAdminRestConnectionImpl::CreateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -135,8 +135,7 @@ DatabaseAdminRestConnectionImpl::CreateDatabase( future> DatabaseAdminRestConnectionImpl::CreateDatabase( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatabaseAdminRestConnectionImpl::UpdateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -244,8 +243,7 @@ DatabaseAdminRestConnectionImpl::UpdateDatabase( future> DatabaseAdminRestConnectionImpl::UpdateDatabase( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatabaseAdminRestConnectionImpl::UpdateDatabaseDdl( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -341,8 +339,7 @@ DatabaseAdminRestConnectionImpl::UpdateDatabaseDdl( future< StatusOr> DatabaseAdminRestConnectionImpl::UpdateDatabaseDdl( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatabaseAdminRestConnectionImpl::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -503,8 +500,7 @@ DatabaseAdminRestConnectionImpl::CreateBackup( future> DatabaseAdminRestConnectionImpl::CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatabaseAdminRestConnectionImpl::CopyBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CopyBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::rest_internal::RestRetryLoop( @@ -595,8 +591,7 @@ DatabaseAdminRestConnectionImpl::CopyBackup( future> DatabaseAdminRestConnectionImpl::CopyBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatabaseAdminRestConnectionImpl::RestoreDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::RestoreDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -769,8 +764,7 @@ DatabaseAdminRestConnectionImpl::RestoreDatabase( future> DatabaseAdminRestConnectionImpl::RestoreDatabase( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateDatabaseRequest const& request) override; future> - CreateDatabase(google::cloud::ExperimentalTag, + CreateDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetDatabase( @@ -78,12 +78,12 @@ class DatabaseAdminRestConnectionImpl request) override; StatusOr UpdateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseRequest const& request) override; future> - UpdateDatabase(google::cloud::ExperimentalTag, + UpdateDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -93,13 +93,13 @@ class DatabaseAdminRestConnectionImpl request) override; StatusOr UpdateDatabaseDdl( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; future< StatusOr> - UpdateDatabaseDdl(google::cloud::ExperimentalTag, + UpdateDatabaseDdl(ExperimentalTag, google::longrunning::Operation const& operation) override; Status DropDatabase( @@ -125,12 +125,12 @@ class DatabaseAdminRestConnectionImpl override; StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateBackupRequest const& request) override; future> CreateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CopyBackup( @@ -138,12 +138,12 @@ class DatabaseAdminRestConnectionImpl override; StatusOr CopyBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CopyBackupRequest const& request) override; future> CopyBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetBackup( @@ -168,12 +168,12 @@ class DatabaseAdminRestConnectionImpl request) override; StatusOr RestoreDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::RestoreDatabaseRequest const& request) override; future> - RestoreDatabase(google::cloud::ExperimentalTag, + RestoreDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListDatabaseOperations( diff --git a/google/cloud/spanner/admin/internal/database_admin_tracing_connection.cc b/google/cloud/spanner/admin/internal/database_admin_tracing_connection.cc index 72cba56cfcb6b..26dd98254478f 100644 --- a/google/cloud/spanner/admin/internal/database_admin_tracing_connection.cc +++ b/google/cloud/spanner/admin/internal/database_admin_tracing_connection.cc @@ -62,7 +62,7 @@ DatabaseAdminTracingConnection::CreateDatabase( request) { auto span = internal::MakeSpan( "spanner_admin::DatabaseAdminConnection::CreateDatabase"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateDatabase(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -106,7 +106,7 @@ DatabaseAdminTracingConnection::UpdateDatabase( request) { auto span = internal::MakeSpan( "spanner_admin::DatabaseAdminConnection::UpdateDatabase"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateDatabase(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -142,7 +142,7 @@ DatabaseAdminTracingConnection::UpdateDatabaseDdl( request) { auto span = internal::MakeSpan( "spanner_admin::DatabaseAdminConnection::UpdateDatabaseDdl"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateDatabaseDdl(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -219,7 +219,7 @@ DatabaseAdminTracingConnection::CreateBackup( google::spanner::admin::database::v1::CreateBackupRequest const& request) { auto span = internal::MakeSpan( "spanner_admin::DatabaseAdminConnection::CreateBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -252,7 +252,7 @@ DatabaseAdminTracingConnection::CopyBackup( google::spanner::admin::database::v1::CopyBackupRequest const& request) { auto span = internal::MakeSpan("spanner_admin::DatabaseAdminConnection::CopyBackup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CopyBackup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -325,7 +325,7 @@ DatabaseAdminTracingConnection::RestoreDatabase( request) { auto span = internal::MakeSpan( "spanner_admin::DatabaseAdminConnection::RestoreDatabase"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RestoreDatabase(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/spanner/admin/internal/instance_admin_rest_connection_impl.cc b/google/cloud/spanner/admin/internal/instance_admin_rest_connection_impl.cc index b545fce7a0fc0..a6f1498b739eb 100644 --- a/google/cloud/spanner/admin/internal/instance_admin_rest_connection_impl.cc +++ b/google/cloud/spanner/admin/internal/instance_admin_rest_connection_impl.cc @@ -134,7 +134,7 @@ InstanceAdminRestConnectionImpl::CreateInstanceConfig( StatusOr InstanceAdminRestConnectionImpl::CreateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -151,8 +151,7 @@ InstanceAdminRestConnectionImpl::CreateInstanceConfig( future> InstanceAdminRestConnectionImpl::CreateInstanceConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is InstanceAdminRestConnectionImpl::UpdateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -244,8 +243,7 @@ InstanceAdminRestConnectionImpl::UpdateInstanceConfig( future> InstanceAdminRestConnectionImpl::UpdateInstanceConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is InstanceAdminRestConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -482,8 +480,7 @@ InstanceAdminRestConnectionImpl::CreateInstance( future> InstanceAdminRestConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is InstanceAdminRestConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -576,8 +573,7 @@ InstanceAdminRestConnectionImpl::UpdateInstance( future> InstanceAdminRestConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is InstanceAdminRestConnectionImpl::CreateInstancePartition( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstancePartitionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -740,8 +736,7 @@ InstanceAdminRestConnectionImpl::CreateInstancePartition( future> InstanceAdminRestConnectionImpl::CreateInstancePartition( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is InstanceAdminRestConnectionImpl::UpdateInstancePartition( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstancePartitionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -848,8 +843,7 @@ InstanceAdminRestConnectionImpl::UpdateInstancePartition( future> InstanceAdminRestConnectionImpl::UpdateInstancePartition( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& request) override; future> CreateInstanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -81,13 +81,13 @@ class InstanceAdminRestConnectionImpl request) override; StatusOr UpdateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& request) override; future> UpdateInstanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteInstanceConfig( @@ -117,12 +117,12 @@ class InstanceAdminRestConnectionImpl request) override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceRequest const& request) override; future> - CreateInstance(google::cloud::ExperimentalTag, + CreateInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -131,12 +131,12 @@ class InstanceAdminRestConnectionImpl request) override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceRequest const& request) override; future> - UpdateInstance(google::cloud::ExperimentalTag, + UpdateInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteInstance( @@ -163,13 +163,13 @@ class InstanceAdminRestConnectionImpl CreateInstancePartitionRequest const& request) override; StatusOr CreateInstancePartition( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1:: CreateInstancePartitionRequest const& request) override; future> CreateInstancePartition( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteInstancePartition( @@ -182,13 +182,13 @@ class InstanceAdminRestConnectionImpl UpdateInstancePartitionRequest const& request) override; StatusOr UpdateInstancePartition( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1:: UpdateInstancePartitionRequest const& request) override; future> UpdateInstancePartition( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListInstancePartitionOperations( diff --git a/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.cc b/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.cc index 23329f7418af0..b77281d3627de 100644 --- a/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.cc +++ b/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.cc @@ -73,7 +73,7 @@ InstanceAdminTracingConnection::CreateInstanceConfig( request) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::CreateInstanceConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateInstanceConfig( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -109,7 +109,7 @@ InstanceAdminTracingConnection::UpdateInstanceConfig( request) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::UpdateInstanceConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateInstanceConfig( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -199,7 +199,7 @@ InstanceAdminTracingConnection::CreateInstance( request) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::CreateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -234,7 +234,7 @@ InstanceAdminTracingConnection::UpdateInstance( request) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::UpdateInstance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -314,7 +314,7 @@ InstanceAdminTracingConnection::CreateInstancePartition( request) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::CreateInstancePartition"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateInstancePartition( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -359,7 +359,7 @@ InstanceAdminTracingConnection::UpdateInstancePartition( request) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::UpdateInstancePartition"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateInstancePartition( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/speech/v1/adaptation_connection.h b/google/cloud/speech/v1/adaptation_connection.h index c2f8deaaaefc5..58d1863ea92b5 100644 --- a/google/cloud/speech/v1/adaptation_connection.h +++ b/google/cloud/speech/v1/adaptation_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/speech/v1/adaptation_connection_idempotency_policy.h" #include "google/cloud/speech/v1/internal/adaptation_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/speech/v1/internal/speech_tracing_connection.cc b/google/cloud/speech/v1/internal/speech_tracing_connection.cc index 518d8f6dc10ec..afa2328eb0e48 100644 --- a/google/cloud/speech/v1/internal/speech_tracing_connection.cc +++ b/google/cloud/speech/v1/internal/speech_tracing_connection.cc @@ -56,7 +56,7 @@ SpeechTracingConnection::LongRunningRecognize( google::cloud::speech::v1::LongRunningRecognizeRequest const& request) { auto span = internal::MakeSpan("speech_v1::SpeechConnection::LongRunningRecognize"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->LongRunningRecognize( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/speech/v1/speech_connection.cc b/google/cloud/speech/v1/speech_connection.cc index 54b62e556a54c..4bfcc1e249e88 100644 --- a/google/cloud/speech/v1/speech_connection.cc +++ b/google/cloud/speech/v1/speech_connection.cc @@ -52,14 +52,14 @@ SpeechConnection::LongRunningRecognize( } StatusOr SpeechConnection::LongRunningRecognize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v1::LongRunningRecognizeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SpeechConnection::LongRunningRecognize(google::cloud::ExperimentalTag, +SpeechConnection::LongRunningRecognize(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/speech/v1/speech_connection.h b/google/cloud/speech/v1/speech_connection.h index ef7d9d63ce9dd..1da9555e80cfe 100644 --- a/google/cloud/speech/v1/speech_connection.h +++ b/google/cloud/speech/v1/speech_connection.h @@ -21,12 +21,12 @@ #include "google/cloud/speech/v1/internal/speech_retry_traits.h" #include "google/cloud/speech/v1/speech_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/async_read_write_stream_impl.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -192,12 +192,12 @@ class SpeechConnection { google::cloud::speech::v1::LongRunningRecognizeRequest const& request); virtual StatusOr LongRunningRecognize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v1::LongRunningRecognizeRequest const& request); virtual future< StatusOr> - LongRunningRecognize(google::cloud::ExperimentalTag, + LongRunningRecognize(ExperimentalTag, google::longrunning::Operation const& operation); virtual std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< diff --git a/google/cloud/speech/v2/internal/speech_tracing_connection.cc b/google/cloud/speech/v2/internal/speech_tracing_connection.cc index bbfa6806dd0d8..64e9ea3b191b7 100644 --- a/google/cloud/speech/v2/internal/speech_tracing_connection.cc +++ b/google/cloud/speech/v2/internal/speech_tracing_connection.cc @@ -48,7 +48,7 @@ SpeechTracingConnection::CreateRecognizer( google::cloud::speech::v2::CreateRecognizerRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::CreateRecognizer"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateRecognizer(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -100,7 +100,7 @@ SpeechTracingConnection::UpdateRecognizer( google::cloud::speech::v2::UpdateRecognizerRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UpdateRecognizer"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateRecognizer(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -133,7 +133,7 @@ SpeechTracingConnection::DeleteRecognizer( google::cloud::speech::v2::DeleteRecognizerRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::DeleteRecognizer"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteRecognizer(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -167,7 +167,7 @@ SpeechTracingConnection::UndeleteRecognizer( google::cloud::speech::v2::UndeleteRecognizerRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UndeleteRecognizer"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UndeleteRecognizer(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -213,7 +213,7 @@ SpeechTracingConnection::BatchRecognize( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::speech::v2::BatchRecognizeRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::BatchRecognize"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BatchRecognize(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -260,7 +260,7 @@ SpeechTracingConnection::CreateCustomClass( google::cloud::speech::v2::CreateCustomClassRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::CreateCustomClass"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateCustomClass(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -312,7 +312,7 @@ SpeechTracingConnection::UpdateCustomClass( google::cloud::speech::v2::UpdateCustomClassRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UpdateCustomClass"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateCustomClass(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -345,7 +345,7 @@ SpeechTracingConnection::DeleteCustomClass( google::cloud::speech::v2::DeleteCustomClassRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::DeleteCustomClass"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteCustomClass(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -379,7 +379,7 @@ SpeechTracingConnection::UndeleteCustomClass( google::cloud::speech::v2::UndeleteCustomClassRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UndeleteCustomClass"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UndeleteCustomClass(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -412,7 +412,7 @@ SpeechTracingConnection::CreatePhraseSet( google::cloud::speech::v2::CreatePhraseSetRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::CreatePhraseSet"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreatePhraseSet(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -463,7 +463,7 @@ SpeechTracingConnection::UpdatePhraseSet( google::cloud::speech::v2::UpdatePhraseSetRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UpdatePhraseSet"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdatePhraseSet(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -496,7 +496,7 @@ SpeechTracingConnection::DeletePhraseSet( google::cloud::speech::v2::DeletePhraseSetRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::DeletePhraseSet"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeletePhraseSet(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -529,7 +529,7 @@ SpeechTracingConnection::UndeletePhraseSet( google::cloud::speech::v2::UndeletePhraseSetRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UndeletePhraseSet"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UndeletePhraseSet(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/speech/v2/speech_connection.cc b/google/cloud/speech/v2/speech_connection.cc index 2d37b1f51a406..4647e75327f77 100644 --- a/google/cloud/speech/v2/speech_connection.cc +++ b/google/cloud/speech/v2/speech_connection.cc @@ -47,14 +47,14 @@ SpeechConnection::CreateRecognizer( } StatusOr SpeechConnection::CreateRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreateRecognizerRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SpeechConnection::CreateRecognizer(google::cloud::ExperimentalTag, +SpeechConnection::CreateRecognizer(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -83,14 +83,14 @@ SpeechConnection::UpdateRecognizer( } StatusOr SpeechConnection::UpdateRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdateRecognizerRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SpeechConnection::UpdateRecognizer(google::cloud::ExperimentalTag, +SpeechConnection::UpdateRecognizer(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -106,14 +106,14 @@ SpeechConnection::DeleteRecognizer( } StatusOr SpeechConnection::DeleteRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeleteRecognizerRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SpeechConnection::DeleteRecognizer(google::cloud::ExperimentalTag, +SpeechConnection::DeleteRecognizer(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -129,14 +129,14 @@ SpeechConnection::UndeleteRecognizer( } StatusOr SpeechConnection::UndeleteRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeleteRecognizerRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SpeechConnection::UndeleteRecognizer(google::cloud::ExperimentalTag, +SpeechConnection::UndeleteRecognizer(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -169,14 +169,14 @@ SpeechConnection::BatchRecognize( } StatusOr SpeechConnection::BatchRecognize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::BatchRecognizeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SpeechConnection::BatchRecognize(google::cloud::ExperimentalTag, +SpeechConnection::BatchRecognize(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -202,14 +202,14 @@ SpeechConnection::CreateCustomClass( } StatusOr SpeechConnection::CreateCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreateCustomClassRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SpeechConnection::CreateCustomClass(google::cloud::ExperimentalTag, +SpeechConnection::CreateCustomClass(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -239,14 +239,14 @@ SpeechConnection::UpdateCustomClass( } StatusOr SpeechConnection::UpdateCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdateCustomClassRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SpeechConnection::UpdateCustomClass(google::cloud::ExperimentalTag, +SpeechConnection::UpdateCustomClass(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -262,14 +262,14 @@ SpeechConnection::DeleteCustomClass( } StatusOr SpeechConnection::DeleteCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeleteCustomClassRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SpeechConnection::DeleteCustomClass(google::cloud::ExperimentalTag, +SpeechConnection::DeleteCustomClass(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -285,14 +285,14 @@ SpeechConnection::UndeleteCustomClass( } StatusOr SpeechConnection::UndeleteCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeleteCustomClassRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SpeechConnection::UndeleteCustomClass(google::cloud::ExperimentalTag, +SpeechConnection::UndeleteCustomClass(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -308,14 +308,14 @@ SpeechConnection::CreatePhraseSet( } StatusOr SpeechConnection::CreatePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreatePhraseSetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SpeechConnection::CreatePhraseSet(google::cloud::ExperimentalTag, +SpeechConnection::CreatePhraseSet(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -344,14 +344,14 @@ SpeechConnection::UpdatePhraseSet( } StatusOr SpeechConnection::UpdatePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdatePhraseSetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SpeechConnection::UpdatePhraseSet(google::cloud::ExperimentalTag, +SpeechConnection::UpdatePhraseSet(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -367,14 +367,14 @@ SpeechConnection::DeletePhraseSet( } StatusOr SpeechConnection::DeletePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeletePhraseSetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SpeechConnection::DeletePhraseSet(google::cloud::ExperimentalTag, +SpeechConnection::DeletePhraseSet(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -390,14 +390,14 @@ SpeechConnection::UndeletePhraseSet( } StatusOr SpeechConnection::UndeletePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeletePhraseSetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -SpeechConnection::UndeletePhraseSet(google::cloud::ExperimentalTag, +SpeechConnection::UndeletePhraseSet(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/speech/v2/speech_connection.h b/google/cloud/speech/v2/speech_connection.h index 1b8ab9214dab1..797acc677e46f 100644 --- a/google/cloud/speech/v2/speech_connection.h +++ b/google/cloud/speech/v2/speech_connection.h @@ -21,12 +21,12 @@ #include "google/cloud/speech/v2/internal/speech_retry_traits.h" #include "google/cloud/speech/v2/speech_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/async_read_write_stream_impl.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -190,11 +190,11 @@ class SpeechConnection { google::cloud::speech::v2::CreateRecognizerRequest const& request); virtual StatusOr CreateRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreateRecognizerRequest const& request); virtual future> - CreateRecognizer(google::cloud::ExperimentalTag, + CreateRecognizer(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListRecognizers( @@ -208,11 +208,11 @@ class SpeechConnection { google::cloud::speech::v2::UpdateRecognizerRequest const& request); virtual StatusOr UpdateRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdateRecognizerRequest const& request); virtual future> - UpdateRecognizer(google::cloud::ExperimentalTag, + UpdateRecognizer(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -220,11 +220,11 @@ class SpeechConnection { google::cloud::speech::v2::DeleteRecognizerRequest const& request); virtual StatusOr DeleteRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeleteRecognizerRequest const& request); virtual future> - DeleteRecognizer(google::cloud::ExperimentalTag, + DeleteRecognizer(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -232,11 +232,11 @@ class SpeechConnection { google::cloud::speech::v2::UndeleteRecognizerRequest const& request); virtual StatusOr UndeleteRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeleteRecognizerRequest const& request); virtual future> - UndeleteRecognizer(google::cloud::ExperimentalTag, + UndeleteRecognizer(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr Recognize( @@ -252,11 +252,11 @@ class SpeechConnection { google::cloud::speech::v2::BatchRecognizeRequest const& request); virtual StatusOr BatchRecognize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::BatchRecognizeRequest const& request); virtual future> - BatchRecognize(google::cloud::ExperimentalTag, + BatchRecognize(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetConfig( @@ -270,11 +270,11 @@ class SpeechConnection { google::cloud::speech::v2::CreateCustomClassRequest const& request); virtual StatusOr CreateCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreateCustomClassRequest const& request); virtual future> - CreateCustomClass(google::cloud::ExperimentalTag, + CreateCustomClass(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListCustomClasses( @@ -288,11 +288,11 @@ class SpeechConnection { google::cloud::speech::v2::UpdateCustomClassRequest const& request); virtual StatusOr UpdateCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdateCustomClassRequest const& request); virtual future> - UpdateCustomClass(google::cloud::ExperimentalTag, + UpdateCustomClass(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -300,11 +300,11 @@ class SpeechConnection { google::cloud::speech::v2::DeleteCustomClassRequest const& request); virtual StatusOr DeleteCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeleteCustomClassRequest const& request); virtual future> - DeleteCustomClass(google::cloud::ExperimentalTag, + DeleteCustomClass(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -312,11 +312,11 @@ class SpeechConnection { google::cloud::speech::v2::UndeleteCustomClassRequest const& request); virtual StatusOr UndeleteCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeleteCustomClassRequest const& request); virtual future> - UndeleteCustomClass(google::cloud::ExperimentalTag, + UndeleteCustomClass(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -324,11 +324,11 @@ class SpeechConnection { google::cloud::speech::v2::CreatePhraseSetRequest const& request); virtual StatusOr CreatePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreatePhraseSetRequest const& request); virtual future> - CreatePhraseSet(google::cloud::ExperimentalTag, + CreatePhraseSet(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListPhraseSets( @@ -342,11 +342,11 @@ class SpeechConnection { google::cloud::speech::v2::UpdatePhraseSetRequest const& request); virtual StatusOr UpdatePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdatePhraseSetRequest const& request); virtual future> - UpdatePhraseSet(google::cloud::ExperimentalTag, + UpdatePhraseSet(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -354,11 +354,11 @@ class SpeechConnection { google::cloud::speech::v2::DeletePhraseSetRequest const& request); virtual StatusOr DeletePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeletePhraseSetRequest const& request); virtual future> - DeletePhraseSet(google::cloud::ExperimentalTag, + DeletePhraseSet(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -366,11 +366,11 @@ class SpeechConnection { google::cloud::speech::v2::UndeletePhraseSetRequest const& request); virtual StatusOr UndeletePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeletePhraseSetRequest const& request); virtual future> - UndeletePhraseSet(google::cloud::ExperimentalTag, + UndeletePhraseSet(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/sql/v1/sql_available_database_versions_connection.h b/google/cloud/sql/v1/sql_available_database_versions_connection.h index fd043d8bb58c5..cc0bb5f7e5105 100644 --- a/google/cloud/sql/v1/sql_available_database_versions_connection.h +++ b/google/cloud/sql/v1/sql_available_database_versions_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/sql/v1/internal/sql_available_database_versions_retry_traits.h" #include "google/cloud/sql/v1/sql_available_database_versions_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/sql/v1/sql_backup_runs_connection.h b/google/cloud/sql/v1/sql_backup_runs_connection.h index f850396b999d3..c9300a96f5711 100644 --- a/google/cloud/sql/v1/sql_backup_runs_connection.h +++ b/google/cloud/sql/v1/sql_backup_runs_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/sql/v1/internal/sql_backup_runs_retry_traits.h" #include "google/cloud/sql/v1/sql_backup_runs_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/sql/v1/sql_connect_connection.h b/google/cloud/sql/v1/sql_connect_connection.h index 121f877f0b833..7250621410741 100644 --- a/google/cloud/sql/v1/sql_connect_connection.h +++ b/google/cloud/sql/v1/sql_connect_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/sql/v1/internal/sql_connect_retry_traits.h" #include "google/cloud/sql/v1/sql_connect_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/sql/v1/sql_databases_connection.h b/google/cloud/sql/v1/sql_databases_connection.h index e8fa5cec3a6a8..1c275ccb30d76 100644 --- a/google/cloud/sql/v1/sql_databases_connection.h +++ b/google/cloud/sql/v1/sql_databases_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/sql/v1/internal/sql_databases_retry_traits.h" #include "google/cloud/sql/v1/sql_databases_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/sql/v1/sql_events_connection.h b/google/cloud/sql/v1/sql_events_connection.h index 90c821f68a7bc..35e7c39c7d371 100644 --- a/google/cloud/sql/v1/sql_events_connection.h +++ b/google/cloud/sql/v1/sql_events_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/sql/v1/internal/sql_events_retry_traits.h" #include "google/cloud/sql/v1/sql_events_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/sql/v1/sql_flags_connection.h b/google/cloud/sql/v1/sql_flags_connection.h index 3d0e738031106..c1248577d062a 100644 --- a/google/cloud/sql/v1/sql_flags_connection.h +++ b/google/cloud/sql/v1/sql_flags_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/sql/v1/internal/sql_flags_retry_traits.h" #include "google/cloud/sql/v1/sql_flags_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/sql/v1/sql_iam_policies_connection.h b/google/cloud/sql/v1/sql_iam_policies_connection.h index 55f706e9d60c4..670c2abbf4e96 100644 --- a/google/cloud/sql/v1/sql_iam_policies_connection.h +++ b/google/cloud/sql/v1/sql_iam_policies_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/sql/v1/internal/sql_iam_policies_retry_traits.h" #include "google/cloud/sql/v1/sql_iam_policies_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/sql/v1/sql_instance_names_connection.h b/google/cloud/sql/v1/sql_instance_names_connection.h index c1a8a1fd00444..5116bb5900b2a 100644 --- a/google/cloud/sql/v1/sql_instance_names_connection.h +++ b/google/cloud/sql/v1/sql_instance_names_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/sql/v1/internal/sql_instance_names_retry_traits.h" #include "google/cloud/sql/v1/sql_instance_names_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/sql/v1/sql_instances_connection.h b/google/cloud/sql/v1/sql_instances_connection.h index 8769e87be9ee4..030a41bdcffe2 100644 --- a/google/cloud/sql/v1/sql_instances_connection.h +++ b/google/cloud/sql/v1/sql_instances_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/sql/v1/internal/sql_instances_retry_traits.h" #include "google/cloud/sql/v1/sql_instances_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/sql/v1/sql_operations_connection.h b/google/cloud/sql/v1/sql_operations_connection.h index 43cf2fc145c96..95729f8440d24 100644 --- a/google/cloud/sql/v1/sql_operations_connection.h +++ b/google/cloud/sql/v1/sql_operations_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/sql/v1/internal/sql_operations_retry_traits.h" #include "google/cloud/sql/v1/sql_operations_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/sql/v1/sql_regions_connection.h b/google/cloud/sql/v1/sql_regions_connection.h index 542579d780963..82a177645b61f 100644 --- a/google/cloud/sql/v1/sql_regions_connection.h +++ b/google/cloud/sql/v1/sql_regions_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/sql/v1/internal/sql_regions_retry_traits.h" #include "google/cloud/sql/v1/sql_regions_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/sql/v1/sql_ssl_certs_connection.h b/google/cloud/sql/v1/sql_ssl_certs_connection.h index d14bccbc4542f..ab5bbb20636fc 100644 --- a/google/cloud/sql/v1/sql_ssl_certs_connection.h +++ b/google/cloud/sql/v1/sql_ssl_certs_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/sql/v1/internal/sql_ssl_certs_retry_traits.h" #include "google/cloud/sql/v1/sql_ssl_certs_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/sql/v1/sql_tiers_connection.h b/google/cloud/sql/v1/sql_tiers_connection.h index 014ba1ed5a4d8..158b3e99249a9 100644 --- a/google/cloud/sql/v1/sql_tiers_connection.h +++ b/google/cloud/sql/v1/sql_tiers_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/sql/v1/internal/sql_tiers_retry_traits.h" #include "google/cloud/sql/v1/sql_tiers_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/sql/v1/sql_users_connection.h b/google/cloud/sql/v1/sql_users_connection.h index 186dca2c0cf68..64d831f56ed15 100644 --- a/google/cloud/sql/v1/sql_users_connection.h +++ b/google/cloud/sql/v1/sql_users_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/sql/v1/internal/sql_users_retry_traits.h" #include "google/cloud/sql/v1/sql_users_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.cc b/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.cc index 0e4453d25f68d..0cd00be0a800c 100644 --- a/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.cc +++ b/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.cc @@ -85,7 +85,7 @@ StorageControlTracingConnection::RenameFolder( google::storage::control::v2::RenameFolderRequest const& request) { auto span = internal::MakeSpan( "storagecontrol_v2::StorageControlConnection::RenameFolder"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RenameFolder(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/storagecontrol/v2/storage_control_connection.cc b/google/cloud/storagecontrol/v2/storage_control_connection.cc index 433799ee5b697..fe82fa76e1a19 100644 --- a/google/cloud/storagecontrol/v2/storage_control_connection.cc +++ b/google/cloud/storagecontrol/v2/storage_control_connection.cc @@ -72,14 +72,14 @@ StorageControlConnection::RenameFolder( } StatusOr StorageControlConnection::RenameFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::storage::control::v2::RenameFolderRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -StorageControlConnection::RenameFolder(google::cloud::ExperimentalTag, +StorageControlConnection::RenameFolder(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/storagecontrol/v2/storage_control_connection.h b/google/cloud/storagecontrol/v2/storage_control_connection.h index 2682d38fe3faa..a201fea506bcd 100644 --- a/google/cloud/storagecontrol/v2/storage_control_connection.h +++ b/google/cloud/storagecontrol/v2/storage_control_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/storagecontrol/v2/internal/storage_control_retry_traits.h" #include "google/cloud/storagecontrol/v2/storage_control_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -211,12 +211,11 @@ class StorageControlConnection { google::storage::control::v2::RenameFolderRequest const& request); virtual StatusOr RenameFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::storage::control::v2::RenameFolderRequest const& request); virtual future> RenameFolder( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetStorageLayout( diff --git a/google/cloud/storageinsights/v1/storage_insights_connection.h b/google/cloud/storageinsights/v1/storage_insights_connection.h index 80b41a0091284..ea2bddbb1cf88 100644 --- a/google/cloud/storageinsights/v1/storage_insights_connection.h +++ b/google/cloud/storageinsights/v1/storage_insights_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/storageinsights/v1/internal/storage_insights_retry_traits.h" #include "google/cloud/storageinsights/v1/storage_insights_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.cc b/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.cc index 331a31e573af1..0781efc926e03 100644 --- a/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.cc +++ b/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.cc @@ -120,7 +120,7 @@ StorageTransferServiceTracingConnection::RunTransferJob( google::storagetransfer::v1::RunTransferJobRequest const& request) { auto span = internal::MakeSpan( "storagetransfer_v1::StorageTransferServiceConnection::RunTransferJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->RunTransferJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/storagetransfer/v1/storage_transfer_connection.cc b/google/cloud/storagetransfer/v1/storage_transfer_connection.cc index a5ad28f6a68bf..bc8462faa859d 100644 --- a/google/cloud/storagetransfer/v1/storage_transfer_connection.cc +++ b/google/cloud/storagetransfer/v1/storage_transfer_connection.cc @@ -90,7 +90,7 @@ StorageTransferServiceConnection::RunTransferJob( StatusOr StorageTransferServiceConnection::RunTransferJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::storagetransfer::v1::RunTransferJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -98,7 +98,7 @@ StorageTransferServiceConnection::RunTransferJob( future> StorageTransferServiceConnection::RunTransferJob( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/storagetransfer/v1/storage_transfer_connection.h b/google/cloud/storagetransfer/v1/storage_transfer_connection.h index 49860abfac82c..cc8580c237b70 100644 --- a/google/cloud/storagetransfer/v1/storage_transfer_connection.h +++ b/google/cloud/storagetransfer/v1/storage_transfer_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/storagetransfer/v1/internal/storage_transfer_retry_traits.h" #include "google/cloud/storagetransfer/v1/storage_transfer_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -225,11 +225,11 @@ class StorageTransferServiceConnection { google::storagetransfer::v1::RunTransferJobRequest const& request); virtual StatusOr RunTransferJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::storagetransfer::v1::RunTransferJobRequest const& request); virtual future> - RunTransferJob(google::cloud::ExperimentalTag, + RunTransferJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status DeleteTransferJob( diff --git a/google/cloud/support/v2/case_attachment_connection.h b/google/cloud/support/v2/case_attachment_connection.h index f9d9b17e880e4..261974a8b890c 100644 --- a/google/cloud/support/v2/case_attachment_connection.h +++ b/google/cloud/support/v2/case_attachment_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/support/v2/case_attachment_connection_idempotency_policy.h" #include "google/cloud/support/v2/internal/case_attachment_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/support/v2/case_connection.h b/google/cloud/support/v2/case_connection.h index 33381b1723c8d..988705d3b4bf8 100644 --- a/google/cloud/support/v2/case_connection.h +++ b/google/cloud/support/v2/case_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/support/v2/case_connection_idempotency_policy.h" #include "google/cloud/support/v2/internal/case_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/support/v2/comment_connection.h b/google/cloud/support/v2/comment_connection.h index 71f8e26ede12e..4d1561808a8f9 100644 --- a/google/cloud/support/v2/comment_connection.h +++ b/google/cloud/support/v2/comment_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/support/v2/comment_connection_idempotency_policy.h" #include "google/cloud/support/v2/internal/comment_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/talent/v4/company_connection.h b/google/cloud/talent/v4/company_connection.h index 56f965f2b0448..3c8744d54916c 100644 --- a/google/cloud/talent/v4/company_connection.h +++ b/google/cloud/talent/v4/company_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/talent/v4/company_connection_idempotency_policy.h" #include "google/cloud/talent/v4/internal/company_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/talent/v4/completion_connection.h b/google/cloud/talent/v4/completion_connection.h index c1d59e34bc6c8..78d62749762e9 100644 --- a/google/cloud/talent/v4/completion_connection.h +++ b/google/cloud/talent/v4/completion_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/talent/v4/completion_connection_idempotency_policy.h" #include "google/cloud/talent/v4/internal/completion_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/talent/v4/event_connection.h b/google/cloud/talent/v4/event_connection.h index 231795a2ae807..9d1563e9707fe 100644 --- a/google/cloud/talent/v4/event_connection.h +++ b/google/cloud/talent/v4/event_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/talent/v4/event_connection_idempotency_policy.h" #include "google/cloud/talent/v4/internal/event_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/talent/v4/internal/job_tracing_connection.cc b/google/cloud/talent/v4/internal/job_tracing_connection.cc index 7f6d67e85e0f5..53bcb3e8b4f56 100644 --- a/google/cloud/talent/v4/internal/job_tracing_connection.cc +++ b/google/cloud/talent/v4/internal/job_tracing_connection.cc @@ -55,7 +55,7 @@ JobServiceTracingConnection::BatchCreateJobs( google::cloud::talent::v4::BatchCreateJobsRequest const& request) { auto span = internal::MakeSpan("talent_v4::JobServiceConnection::BatchCreateJobs"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BatchCreateJobs(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -102,7 +102,7 @@ JobServiceTracingConnection::BatchUpdateJobs( google::cloud::talent::v4::BatchUpdateJobsRequest const& request) { auto span = internal::MakeSpan("talent_v4::JobServiceConnection::BatchUpdateJobs"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BatchUpdateJobs(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -142,7 +142,7 @@ JobServiceTracingConnection::BatchDeleteJobs( google::cloud::talent::v4::BatchDeleteJobsRequest const& request) { auto span = internal::MakeSpan("talent_v4::JobServiceConnection::BatchDeleteJobs"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BatchDeleteJobs(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/talent/v4/job_connection.cc b/google/cloud/talent/v4/job_connection.cc index a4a52fff59e77..b7556002dd061 100644 --- a/google/cloud/talent/v4/job_connection.cc +++ b/google/cloud/talent/v4/job_connection.cc @@ -52,14 +52,14 @@ JobServiceConnection::BatchCreateJobs( } StatusOr JobServiceConnection::BatchCreateJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchCreateJobsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -JobServiceConnection::BatchCreateJobs(google::cloud::ExperimentalTag, +JobServiceConnection::BatchCreateJobs(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -85,14 +85,14 @@ JobServiceConnection::BatchUpdateJobs( } StatusOr JobServiceConnection::BatchUpdateJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchUpdateJobsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -JobServiceConnection::BatchUpdateJobs(google::cloud::ExperimentalTag, +JobServiceConnection::BatchUpdateJobs(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -113,14 +113,14 @@ JobServiceConnection::BatchDeleteJobs( } StatusOr JobServiceConnection::BatchDeleteJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchDeleteJobsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -JobServiceConnection::BatchDeleteJobs(google::cloud::ExperimentalTag, +JobServiceConnection::BatchDeleteJobs(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/talent/v4/job_connection.h b/google/cloud/talent/v4/job_connection.h index bd9086ceb9152..2511b4e9d76e2 100644 --- a/google/cloud/talent/v4/job_connection.h +++ b/google/cloud/talent/v4/job_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/talent/v4/internal/job_retry_traits.h" #include "google/cloud/talent/v4/job_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -194,11 +194,11 @@ class JobServiceConnection { google::cloud::talent::v4::BatchCreateJobsRequest const& request); virtual StatusOr BatchCreateJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchCreateJobsRequest const& request); virtual future> - BatchCreateJobs(google::cloud::ExperimentalTag, + BatchCreateJobs(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetJob( @@ -212,11 +212,11 @@ class JobServiceConnection { google::cloud::talent::v4::BatchUpdateJobsRequest const& request); virtual StatusOr BatchUpdateJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchUpdateJobsRequest const& request); virtual future> - BatchUpdateJobs(google::cloud::ExperimentalTag, + BatchUpdateJobs(ExperimentalTag, google::longrunning::Operation const& operation); virtual Status DeleteJob( @@ -227,11 +227,11 @@ class JobServiceConnection { google::cloud::talent::v4::BatchDeleteJobsRequest const& request); virtual StatusOr BatchDeleteJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchDeleteJobsRequest const& request); virtual future> - BatchDeleteJobs(google::cloud::ExperimentalTag, + BatchDeleteJobs(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListJobs( diff --git a/google/cloud/talent/v4/tenant_connection.h b/google/cloud/talent/v4/tenant_connection.h index 1ec58c1ad0ee5..39786eec4c7a0 100644 --- a/google/cloud/talent/v4/tenant_connection.h +++ b/google/cloud/talent/v4/tenant_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/talent/v4/internal/tenant_retry_traits.h" #include "google/cloud/talent/v4/tenant_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/tasks/v2/cloud_tasks_connection.h b/google/cloud/tasks/v2/cloud_tasks_connection.h index dedfe0b2e901f..c7972b9e2074d 100644 --- a/google/cloud/tasks/v2/cloud_tasks_connection.h +++ b/google/cloud/tasks/v2/cloud_tasks_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/tasks/v2/cloud_tasks_connection_idempotency_policy.h" #include "google/cloud/tasks/v2/internal/cloud_tasks_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.cc b/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.cc index 8e898635244e4..4275dbbcb06ae 100644 --- a/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.cc +++ b/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.cc @@ -77,7 +77,7 @@ TelcoAutomationTracingConnection::CreateOrchestrationCluster( auto span = internal::MakeSpan( "telcoautomation_v1::TelcoAutomationConnection::" "CreateOrchestrationCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateOrchestrationCluster( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -116,7 +116,7 @@ TelcoAutomationTracingConnection::DeleteOrchestrationCluster( auto span = internal::MakeSpan( "telcoautomation_v1::TelcoAutomationConnection::" "DeleteOrchestrationCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteOrchestrationCluster( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -171,7 +171,7 @@ TelcoAutomationTracingConnection::CreateEdgeSlm( google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request) { auto span = internal::MakeSpan( "telcoautomation_v1::TelcoAutomationConnection::CreateEdgeSlm"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateEdgeSlm(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -204,7 +204,7 @@ TelcoAutomationTracingConnection::DeleteEdgeSlm( google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request) { auto span = internal::MakeSpan( "telcoautomation_v1::TelcoAutomationConnection::DeleteEdgeSlm"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteEdgeSlm(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/telcoautomation/v1/telco_automation_connection.cc b/google/cloud/telcoautomation/v1/telco_automation_connection.cc index d663604ee7589..12376b01b7f78 100644 --- a/google/cloud/telcoautomation/v1/telco_automation_connection.cc +++ b/google/cloud/telcoautomation/v1/telco_automation_connection.cc @@ -63,7 +63,7 @@ TelcoAutomationConnection::CreateOrchestrationCluster( StatusOr TelcoAutomationConnection::CreateOrchestrationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1:: CreateOrchestrationClusterRequest const&) { return StatusOr( @@ -72,7 +72,7 @@ TelcoAutomationConnection::CreateOrchestrationCluster( future> TelcoAutomationConnection::CreateOrchestrationCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -89,7 +89,7 @@ TelcoAutomationConnection::DeleteOrchestrationCluster( StatusOr TelcoAutomationConnection::DeleteOrchestrationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1:: DeleteOrchestrationClusterRequest const&) { return StatusOr( @@ -98,7 +98,7 @@ TelcoAutomationConnection::DeleteOrchestrationCluster( future> TelcoAutomationConnection::DeleteOrchestrationCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -128,7 +128,7 @@ TelcoAutomationConnection::CreateEdgeSlm( StatusOr TelcoAutomationConnection::CreateEdgeSlm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -136,7 +136,7 @@ TelcoAutomationConnection::CreateEdgeSlm( future> TelcoAutomationConnection::CreateEdgeSlm( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -152,7 +152,7 @@ TelcoAutomationConnection::DeleteEdgeSlm( StatusOr TelcoAutomationConnection::DeleteEdgeSlm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -160,7 +160,7 @@ TelcoAutomationConnection::DeleteEdgeSlm( future> TelcoAutomationConnection::DeleteEdgeSlm( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/telcoautomation/v1/telco_automation_connection.h b/google/cloud/telcoautomation/v1/telco_automation_connection.h index fa2f915cbc8df..8f75431c98fcd 100644 --- a/google/cloud/telcoautomation/v1/telco_automation_connection.h +++ b/google/cloud/telcoautomation/v1/telco_automation_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/telcoautomation/v1/internal/telco_automation_retry_traits.h" #include "google/cloud/telcoautomation/v1/telco_automation_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -205,13 +205,13 @@ class TelcoAutomationConnection { CreateOrchestrationClusterRequest const& request); virtual StatusOr CreateOrchestrationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1:: CreateOrchestrationClusterRequest const& request); virtual future< StatusOr> - CreateOrchestrationCluster(google::cloud::ExperimentalTag, + CreateOrchestrationCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -221,13 +221,13 @@ class TelcoAutomationConnection { DeleteOrchestrationClusterRequest const& request); virtual StatusOr DeleteOrchestrationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1:: DeleteOrchestrationClusterRequest const& request); virtual future< StatusOr> - DeleteOrchestrationCluster(google::cloud::ExperimentalTag, + DeleteOrchestrationCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListEdgeSlms( @@ -241,11 +241,11 @@ class TelcoAutomationConnection { google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request); virtual StatusOr CreateEdgeSlm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request); virtual future> - CreateEdgeSlm(google::cloud::ExperimentalTag, + CreateEdgeSlm(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -254,12 +254,12 @@ class TelcoAutomationConnection { google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request); virtual StatusOr DeleteEdgeSlm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request); virtual future< StatusOr> - DeleteEdgeSlm(google::cloud::ExperimentalTag, + DeleteEdgeSlm(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/texttospeech/v1/text_to_speech_connection.h b/google/cloud/texttospeech/v1/text_to_speech_connection.h index 8a3fcfb375381..4490e83738f43 100644 --- a/google/cloud/texttospeech/v1/text_to_speech_connection.h +++ b/google/cloud/texttospeech/v1/text_to_speech_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/texttospeech/v1/internal/text_to_speech_retry_traits.h" #include "google/cloud/texttospeech/v1/text_to_speech_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/timeseriesinsights/v1/timeseries_insights_controller_connection.h b/google/cloud/timeseriesinsights/v1/timeseries_insights_controller_connection.h index 9f02db9b94b8f..a3f3dfaebb0c2 100644 --- a/google/cloud/timeseriesinsights/v1/timeseries_insights_controller_connection.h +++ b/google/cloud/timeseriesinsights/v1/timeseries_insights_controller_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/timeseriesinsights/v1/internal/timeseries_insights_controller_retry_traits.h" #include "google/cloud/timeseriesinsights/v1/timeseries_insights_controller_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/tpu/v1/internal/tpu_tracing_connection.cc b/google/cloud/tpu/v1/internal/tpu_tracing_connection.cc index 16151f65e996c..0529f7374a19d 100644 --- a/google/cloud/tpu/v1/internal/tpu_tracing_connection.cc +++ b/google/cloud/tpu/v1/internal/tpu_tracing_connection.cc @@ -60,7 +60,7 @@ StatusOr TpuTracingConnection::CreateNode( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::tpu::v1::CreateNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::CreateNode"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateNode(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -87,7 +87,7 @@ StatusOr TpuTracingConnection::DeleteNode( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::tpu::v1::DeleteNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::DeleteNode"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteNode(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -115,7 +115,7 @@ StatusOr TpuTracingConnection::ReimageNode( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::tpu::v1::ReimageNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::ReimageNode"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ReimageNode(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -143,7 +143,7 @@ StatusOr TpuTracingConnection::StopNode( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::tpu::v1::StopNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::StopNode"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StopNode(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -170,7 +170,7 @@ StatusOr TpuTracingConnection::StartNode( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::tpu::v1::StartNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::StartNode"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StartNode(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/tpu/v1/tpu_connection.cc b/google/cloud/tpu/v1/tpu_connection.cc index 1395c8da4e52e..938d7ab12ce35 100644 --- a/google/cloud/tpu/v1/tpu_connection.cc +++ b/google/cloud/tpu/v1/tpu_connection.cc @@ -58,14 +58,14 @@ future> TpuConnection::CreateNode( } StatusOr TpuConnection::CreateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::CreateNodeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> TpuConnection::CreateNode( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -79,14 +79,14 @@ future> TpuConnection::DeleteNode( } StatusOr TpuConnection::DeleteNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::DeleteNodeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> TpuConnection::DeleteNode( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -100,14 +100,14 @@ future> TpuConnection::ReimageNode( } StatusOr TpuConnection::ReimageNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::ReimageNodeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> TpuConnection::ReimageNode( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -121,14 +121,14 @@ future> TpuConnection::StopNode( } StatusOr TpuConnection::StopNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::StopNodeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> TpuConnection::StopNode( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,14 +142,14 @@ future> TpuConnection::StartNode( } StatusOr TpuConnection::StartNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::StartNodeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> TpuConnection::StartNode( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/tpu/v1/tpu_connection.h b/google/cloud/tpu/v1/tpu_connection.h index 227678552d809..30d85a9e1d7b8 100644 --- a/google/cloud/tpu/v1/tpu_connection.h +++ b/google/cloud/tpu/v1/tpu_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/tpu/v1/internal/tpu_retry_traits.h" #include "google/cloud/tpu/v1/tpu_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,56 +193,51 @@ class TpuConnection { google::cloud::tpu::v1::CreateNodeRequest const& request); virtual StatusOr CreateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::CreateNodeRequest const& request); virtual future> CreateNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteNode( google::cloud::tpu::v1::DeleteNodeRequest const& request); virtual StatusOr DeleteNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::DeleteNodeRequest const& request); virtual future> DeleteNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> ReimageNode( google::cloud::tpu::v1::ReimageNodeRequest const& request); virtual StatusOr ReimageNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::ReimageNodeRequest const& request); virtual future> ReimageNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> StopNode( google::cloud::tpu::v1::StopNodeRequest const& request); virtual StatusOr StopNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::StopNodeRequest const& request); virtual future> StopNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> StartNode( google::cloud::tpu::v1::StartNodeRequest const& request); virtual StatusOr StartNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::StartNodeRequest const& request); virtual future> StartNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListTensorFlowVersions( diff --git a/google/cloud/tpu/v2/internal/tpu_tracing_connection.cc b/google/cloud/tpu/v2/internal/tpu_tracing_connection.cc index 09b5c6fc4b452..2025ed23e9c62 100644 --- a/google/cloud/tpu/v2/internal/tpu_tracing_connection.cc +++ b/google/cloud/tpu/v2/internal/tpu_tracing_connection.cc @@ -60,7 +60,7 @@ StatusOr TpuTracingConnection::CreateNode( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::tpu::v2::CreateNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::CreateNode"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateNode(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -88,7 +88,7 @@ StatusOr TpuTracingConnection::DeleteNode( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::tpu::v2::DeleteNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::DeleteNode"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteNode(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -116,7 +116,7 @@ StatusOr TpuTracingConnection::StopNode( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::tpu::v2::StopNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::StopNode"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StopNode(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -143,7 +143,7 @@ StatusOr TpuTracingConnection::StartNode( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::tpu::v2::StartNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::StartNode"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StartNode(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -170,7 +170,7 @@ StatusOr TpuTracingConnection::UpdateNode( google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, google::cloud::tpu::v2::UpdateNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::UpdateNode"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateNode(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/tpu/v2/tpu_connection.cc b/google/cloud/tpu/v2/tpu_connection.cc index f652bce71fb14..6011b25d34f82 100644 --- a/google/cloud/tpu/v2/tpu_connection.cc +++ b/google/cloud/tpu/v2/tpu_connection.cc @@ -58,14 +58,14 @@ future> TpuConnection::CreateNode( } StatusOr TpuConnection::CreateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::CreateNodeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> TpuConnection::CreateNode( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -79,14 +79,14 @@ TpuConnection::DeleteNode(google::cloud::tpu::v2::DeleteNodeRequest const&) { } StatusOr TpuConnection::DeleteNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::DeleteNodeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -TpuConnection::DeleteNode(google::cloud::ExperimentalTag, +TpuConnection::DeleteNode(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -101,14 +101,14 @@ future> TpuConnection::StopNode( } StatusOr TpuConnection::StopNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::StopNodeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> TpuConnection::StopNode( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -122,14 +122,14 @@ future> TpuConnection::StartNode( } StatusOr TpuConnection::StartNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::StartNodeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> TpuConnection::StartNode( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -143,14 +143,14 @@ future> TpuConnection::UpdateNode( } StatusOr TpuConnection::UpdateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::UpdateNodeRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> TpuConnection::UpdateNode( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/tpu/v2/tpu_connection.h b/google/cloud/tpu/v2/tpu_connection.h index ac3a5dc0edbde..62de1e1bdefd8 100644 --- a/google/cloud/tpu/v2/tpu_connection.h +++ b/google/cloud/tpu/v2/tpu_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/tpu/v2/internal/tpu_retry_traits.h" #include "google/cloud/tpu/v2/tpu_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -193,56 +193,51 @@ class TpuConnection { google::cloud::tpu::v2::CreateNodeRequest const& request); virtual StatusOr CreateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::CreateNodeRequest const& request); virtual future> CreateNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteNode(google::cloud::tpu::v2::DeleteNodeRequest const& request); virtual StatusOr DeleteNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::DeleteNodeRequest const& request); virtual future> - DeleteNode(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteNode(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> StopNode( google::cloud::tpu::v2::StopNodeRequest const& request); virtual StatusOr StopNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::StopNodeRequest const& request); virtual future> StopNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> StartNode( google::cloud::tpu::v2::StartNodeRequest const& request); virtual StatusOr StartNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::StartNodeRequest const& request); virtual future> StartNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateNode( google::cloud::tpu::v2::UpdateNodeRequest const& request); virtual StatusOr UpdateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::UpdateNodeRequest const& request); virtual future> UpdateNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GenerateServiceIdentity( diff --git a/google/cloud/trace/v1/trace_connection.h b/google/cloud/trace/v1/trace_connection.h index 0041d34b12f4b..4d2e7bbb21a71 100644 --- a/google/cloud/trace/v1/trace_connection.h +++ b/google/cloud/trace/v1/trace_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/trace/v1/internal/trace_retry_traits.h" #include "google/cloud/trace/v1/trace_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/trace/v2/trace_connection.h b/google/cloud/trace/v2/trace_connection.h index b841d5c099272..40869295f002c 100644 --- a/google/cloud/trace/v2/trace_connection.h +++ b/google/cloud/trace/v2/trace_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/trace/v2/internal/trace_retry_traits.h" #include "google/cloud/trace/v2/trace_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/translate/v3/internal/translation_tracing_connection.cc b/google/cloud/translate/v3/internal/translation_tracing_connection.cc index c7c824d00e868..0389cacb68d5d 100644 --- a/google/cloud/translate/v3/internal/translation_tracing_connection.cc +++ b/google/cloud/translate/v3/internal/translation_tracing_connection.cc @@ -86,7 +86,7 @@ TranslationServiceTracingConnection::BatchTranslateText( google::cloud::translation::v3::BatchTranslateTextRequest const& request) { auto span = internal::MakeSpan( "translate_v3::TranslationServiceConnection::BatchTranslateText"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->BatchTranslateText(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -122,7 +122,7 @@ TranslationServiceTracingConnection::BatchTranslateDocument( request) { auto span = internal::MakeSpan( "translate_v3::TranslationServiceConnection::BatchTranslateDocument"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->BatchTranslateDocument( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -155,7 +155,7 @@ TranslationServiceTracingConnection::CreateGlossary( google::cloud::translation::v3::CreateGlossaryRequest const& request) { auto span = internal::MakeSpan( "translate_v3::TranslationServiceConnection::CreateGlossary"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateGlossary(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -208,7 +208,7 @@ TranslationServiceTracingConnection::DeleteGlossary( google::cloud::translation::v3::DeleteGlossaryRequest const& request) { auto span = internal::MakeSpan( "translate_v3::TranslationServiceConnection::DeleteGlossary"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteGlossary(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/translate/v3/translation_connection.cc b/google/cloud/translate/v3/translation_connection.cc index 6d0c382ef1759..07a4a3f8c831a 100644 --- a/google/cloud/translate/v3/translation_connection.cc +++ b/google/cloud/translate/v3/translation_connection.cc @@ -72,7 +72,7 @@ TranslationServiceConnection::BatchTranslateText( StatusOr TranslationServiceConnection::BatchTranslateText( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::BatchTranslateTextRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -80,7 +80,7 @@ TranslationServiceConnection::BatchTranslateText( future> TranslationServiceConnection::BatchTranslateText( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -96,7 +96,7 @@ TranslationServiceConnection::BatchTranslateDocument( StatusOr TranslationServiceConnection::BatchTranslateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::BatchTranslateDocumentRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -104,7 +104,7 @@ TranslationServiceConnection::BatchTranslateDocument( future> TranslationServiceConnection::BatchTranslateDocument( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -120,7 +120,7 @@ TranslationServiceConnection::CreateGlossary( StatusOr TranslationServiceConnection::CreateGlossary( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::CreateGlossaryRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -128,7 +128,7 @@ TranslationServiceConnection::CreateGlossary( future> TranslationServiceConnection::CreateGlossary( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -158,7 +158,7 @@ TranslationServiceConnection::DeleteGlossary( StatusOr TranslationServiceConnection::DeleteGlossary( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::DeleteGlossaryRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -166,7 +166,7 @@ TranslationServiceConnection::DeleteGlossary( future> TranslationServiceConnection::DeleteGlossary( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/translate/v3/translation_connection.h b/google/cloud/translate/v3/translation_connection.h index 662ad9f4d9b52..a9a660a09eb1f 100644 --- a/google/cloud/translate/v3/translation_connection.h +++ b/google/cloud/translate/v3/translation_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/translate/v3/internal/translation_retry_traits.h" #include "google/cloud/translate/v3/translation_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -213,12 +213,12 @@ class TranslationServiceConnection { google::cloud::translation::v3::BatchTranslateTextRequest const& request); virtual StatusOr BatchTranslateText( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::BatchTranslateTextRequest const& request); virtual future< StatusOr> - BatchTranslateText(google::cloud::ExperimentalTag, + BatchTranslateText(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -228,13 +228,13 @@ class TranslationServiceConnection { request); virtual StatusOr BatchTranslateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::BatchTranslateDocumentRequest const& request); virtual future< StatusOr> - BatchTranslateDocument(google::cloud::ExperimentalTag, + BatchTranslateDocument(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -242,11 +242,11 @@ class TranslationServiceConnection { google::cloud::translation::v3::CreateGlossaryRequest const& request); virtual StatusOr CreateGlossary( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::CreateGlossaryRequest const& request); virtual future> - CreateGlossary(google::cloud::ExperimentalTag, + CreateGlossary(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListGlossaries( @@ -261,12 +261,12 @@ class TranslationServiceConnection { google::cloud::translation::v3::DeleteGlossaryRequest const& request); virtual StatusOr DeleteGlossary( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::DeleteGlossaryRequest const& request); virtual future< StatusOr> - DeleteGlossary(google::cloud::ExperimentalTag, + DeleteGlossary(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr diff --git a/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.cc b/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.cc index f06a5fc9950bb..a1bc11924ad16 100644 --- a/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.cc +++ b/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.cc @@ -48,7 +48,7 @@ LivestreamServiceTracingConnection::CreateChannel( google::cloud::video::livestream::v1::CreateChannelRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::CreateChannel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateChannel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -102,7 +102,7 @@ LivestreamServiceTracingConnection::DeleteChannel( google::cloud::video::livestream::v1::DeleteChannelRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::DeleteChannel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteChannel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ LivestreamServiceTracingConnection::UpdateChannel( google::cloud::video::livestream::v1::UpdateChannelRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::UpdateChannel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateChannel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -168,7 +168,7 @@ LivestreamServiceTracingConnection::StartChannel( google::cloud::video::livestream::v1::StartChannelRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::StartChannel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StartChannel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -201,7 +201,7 @@ LivestreamServiceTracingConnection::StopChannel( google::cloud::video::livestream::v1::StopChannelRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::StopChannel"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StopChannel(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -234,7 +234,7 @@ LivestreamServiceTracingConnection::CreateInput( google::cloud::video::livestream::v1::CreateInputRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::CreateInput"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateInput(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -288,7 +288,7 @@ LivestreamServiceTracingConnection::DeleteInput( google::cloud::video::livestream::v1::DeleteInputRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::DeleteInput"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteInput(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -321,7 +321,7 @@ LivestreamServiceTracingConnection::UpdateInput( google::cloud::video::livestream::v1::UpdateInputRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::UpdateInput"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateInput(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -392,7 +392,7 @@ LivestreamServiceTracingConnection::CreateAsset( google::cloud::video::livestream::v1::CreateAssetRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::CreateAsset"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateAsset(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -425,7 +425,7 @@ LivestreamServiceTracingConnection::DeleteAsset( google::cloud::video::livestream::v1::DeleteAssetRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::DeleteAsset"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteAsset(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -488,7 +488,7 @@ LivestreamServiceTracingConnection::UpdatePool( google::cloud::video::livestream::v1::UpdatePoolRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::UpdatePool"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdatePool(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/video/livestream/v1/livestream_connection.cc b/google/cloud/video/livestream/v1/livestream_connection.cc index d7edc51e5ea79..6cc8eade5225f 100644 --- a/google/cloud/video/livestream/v1/livestream_connection.cc +++ b/google/cloud/video/livestream/v1/livestream_connection.cc @@ -48,7 +48,7 @@ LivestreamServiceConnection::CreateChannel( StatusOr LivestreamServiceConnection::CreateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateChannelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ LivestreamServiceConnection::CreateChannel( future> LivestreamServiceConnection::CreateChannel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ LivestreamServiceConnection::DeleteChannel( StatusOr LivestreamServiceConnection::DeleteChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteChannelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ LivestreamServiceConnection::DeleteChannel( future> LivestreamServiceConnection::DeleteChannel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ LivestreamServiceConnection::UpdateChannel( StatusOr LivestreamServiceConnection::UpdateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdateChannelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ LivestreamServiceConnection::UpdateChannel( future> LivestreamServiceConnection::UpdateChannel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,7 +134,7 @@ LivestreamServiceConnection::StartChannel( StatusOr LivestreamServiceConnection::StartChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::StartChannelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +142,7 @@ LivestreamServiceConnection::StartChannel( future> LivestreamServiceConnection::StartChannel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -158,7 +158,7 @@ LivestreamServiceConnection::StopChannel( StatusOr LivestreamServiceConnection::StopChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::StopChannelRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -166,7 +166,7 @@ LivestreamServiceConnection::StopChannel( future> LivestreamServiceConnection::StopChannel( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -182,7 +182,7 @@ LivestreamServiceConnection::CreateInput( StatusOr LivestreamServiceConnection::CreateInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateInputRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -190,7 +190,7 @@ LivestreamServiceConnection::CreateInput( future> LivestreamServiceConnection::CreateInput( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -220,7 +220,7 @@ LivestreamServiceConnection::DeleteInput( StatusOr LivestreamServiceConnection::DeleteInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteInputRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -228,7 +228,7 @@ LivestreamServiceConnection::DeleteInput( future> LivestreamServiceConnection::DeleteInput( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -244,7 +244,7 @@ LivestreamServiceConnection::UpdateInput( StatusOr LivestreamServiceConnection::UpdateInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdateInputRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -252,7 +252,7 @@ LivestreamServiceConnection::UpdateInput( future> LivestreamServiceConnection::UpdateInput( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -293,7 +293,7 @@ LivestreamServiceConnection::CreateAsset( StatusOr LivestreamServiceConnection::CreateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateAssetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -301,7 +301,7 @@ LivestreamServiceConnection::CreateAsset( future> LivestreamServiceConnection::CreateAsset( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -317,7 +317,7 @@ LivestreamServiceConnection::DeleteAsset( StatusOr LivestreamServiceConnection::DeleteAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteAssetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -325,7 +325,7 @@ LivestreamServiceConnection::DeleteAsset( future> LivestreamServiceConnection::DeleteAsset( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -361,14 +361,14 @@ LivestreamServiceConnection::UpdatePool( StatusOr LivestreamServiceConnection::UpdatePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdatePoolRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -LivestreamServiceConnection::UpdatePool(google::cloud::ExperimentalTag, +LivestreamServiceConnection::UpdatePool(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/video/livestream/v1/livestream_connection.h b/google/cloud/video/livestream/v1/livestream_connection.h index bf10a8f885be0..cd5aba2dff9bf 100644 --- a/google/cloud/video/livestream/v1/livestream_connection.h +++ b/google/cloud/video/livestream/v1/livestream_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/video/livestream/v1/internal/livestream_retry_traits.h" #include "google/cloud/video/livestream/v1/livestream_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -195,12 +195,12 @@ class LivestreamServiceConnection { request); virtual StatusOr CreateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateChannelRequest const& request); virtual future> - CreateChannel(google::cloud::ExperimentalTag, + CreateChannel(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -217,13 +217,13 @@ class LivestreamServiceConnection { request); virtual StatusOr DeleteChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteChannelRequest const& request); virtual future< StatusOr> - DeleteChannel(google::cloud::ExperimentalTag, + DeleteChannel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -232,12 +232,12 @@ class LivestreamServiceConnection { request); virtual StatusOr UpdateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdateChannelRequest const& request); virtual future> - UpdateChannel(google::cloud::ExperimentalTag, + UpdateChannel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -246,12 +246,12 @@ class LivestreamServiceConnection { google::cloud::video::livestream::v1::StartChannelRequest const& request); virtual StatusOr StartChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::StartChannelRequest const& request); virtual future< StatusOr> - StartChannel(google::cloud::ExperimentalTag, + StartChannel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -260,25 +260,23 @@ class LivestreamServiceConnection { google::cloud::video::livestream::v1::StopChannelRequest const& request); virtual StatusOr StopChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::StopChannelRequest const& request); virtual future< StatusOr> - StopChannel(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + StopChannel(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CreateInput( google::cloud::video::livestream::v1::CreateInputRequest const& request); virtual StatusOr CreateInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateInputRequest const& request); virtual future> - CreateInput(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + CreateInput(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListInputs( google::cloud::video::livestream::v1::ListInputsRequest request); @@ -292,25 +290,23 @@ class LivestreamServiceConnection { google::cloud::video::livestream::v1::DeleteInputRequest const& request); virtual StatusOr DeleteInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteInputRequest const& request); virtual future< StatusOr> - DeleteInput(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteInput(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateInput( google::cloud::video::livestream::v1::UpdateInputRequest const& request); virtual StatusOr UpdateInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdateInputRequest const& request); virtual future> - UpdateInput(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + UpdateInput(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr CreateEvent( google::cloud::video::livestream::v1::CreateEventRequest const& request); @@ -329,12 +325,11 @@ class LivestreamServiceConnection { google::cloud::video::livestream::v1::CreateAssetRequest const& request); virtual StatusOr CreateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateAssetRequest const& request); virtual future> - CreateAsset(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + CreateAsset(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> @@ -342,13 +337,12 @@ class LivestreamServiceConnection { google::cloud::video::livestream::v1::DeleteAssetRequest const& request); virtual StatusOr DeleteAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteAssetRequest const& request); virtual future< StatusOr> - DeleteAsset(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteAsset(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetAsset( google::cloud::video::livestream::v1::GetAssetRequest const& request); @@ -364,12 +358,11 @@ class LivestreamServiceConnection { google::cloud::video::livestream::v1::UpdatePoolRequest const& request); virtual StatusOr UpdatePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdatePoolRequest const& request); virtual future> - UpdatePool(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + UpdatePool(ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.cc b/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.cc index 54dfc07fd122b..980b8ee378291 100644 --- a/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.cc +++ b/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.cc @@ -48,7 +48,7 @@ VideoStitcherServiceTracingConnection::CreateCdnKey( google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::CreateCdnKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateCdnKey(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -102,7 +102,7 @@ VideoStitcherServiceTracingConnection::DeleteCdnKey( google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::DeleteCdnKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteCdnKey(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -135,7 +135,7 @@ VideoStitcherServiceTracingConnection::UpdateCdnKey( google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::UpdateCdnKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateCdnKey(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -255,7 +255,7 @@ VideoStitcherServiceTracingConnection::CreateSlate( google::cloud::video::stitcher::v1::CreateSlateRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::CreateSlate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateSlate(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -309,7 +309,7 @@ VideoStitcherServiceTracingConnection::UpdateSlate( google::cloud::video::stitcher::v1::UpdateSlateRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::UpdateSlate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateSlate(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -342,7 +342,7 @@ VideoStitcherServiceTracingConnection::DeleteSlate( google::cloud::video::stitcher::v1::DeleteSlateRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::DeleteSlate"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSlate(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -396,7 +396,7 @@ VideoStitcherServiceTracingConnection::CreateLiveConfig( request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::CreateLiveConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateLiveConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -452,7 +452,7 @@ VideoStitcherServiceTracingConnection::DeleteLiveConfig( request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::DeleteLiveConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteLiveConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -487,7 +487,7 @@ VideoStitcherServiceTracingConnection::UpdateLiveConfig( request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::UpdateLiveConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateLiveConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -520,7 +520,7 @@ VideoStitcherServiceTracingConnection::CreateVodConfig( google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::CreateVodConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateVodConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -574,7 +574,7 @@ VideoStitcherServiceTracingConnection::DeleteVodConfig( google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::DeleteVodConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteVodConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -607,7 +607,7 @@ VideoStitcherServiceTracingConnection::UpdateVodConfig( google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::UpdateVodConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateVodConfig(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/video/stitcher/v1/video_stitcher_connection.cc b/google/cloud/video/stitcher/v1/video_stitcher_connection.cc index cd3e505ec612c..2d353e60d4d33 100644 --- a/google/cloud/video/stitcher/v1/video_stitcher_connection.cc +++ b/google/cloud/video/stitcher/v1/video_stitcher_connection.cc @@ -48,7 +48,7 @@ VideoStitcherServiceConnection::CreateCdnKey( StatusOr VideoStitcherServiceConnection::CreateCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateCdnKeyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ VideoStitcherServiceConnection::CreateCdnKey( future> VideoStitcherServiceConnection::CreateCdnKey( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ VideoStitcherServiceConnection::DeleteCdnKey( StatusOr VideoStitcherServiceConnection::DeleteCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ VideoStitcherServiceConnection::DeleteCdnKey( future> VideoStitcherServiceConnection::DeleteCdnKey( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ VideoStitcherServiceConnection::UpdateCdnKey( StatusOr VideoStitcherServiceConnection::UpdateCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ VideoStitcherServiceConnection::UpdateCdnKey( future> VideoStitcherServiceConnection::UpdateCdnKey( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -188,7 +188,7 @@ VideoStitcherServiceConnection::CreateSlate( StatusOr VideoStitcherServiceConnection::CreateSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateSlateRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -196,7 +196,7 @@ VideoStitcherServiceConnection::CreateSlate( future> VideoStitcherServiceConnection::CreateSlate( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -226,7 +226,7 @@ VideoStitcherServiceConnection::UpdateSlate( StatusOr VideoStitcherServiceConnection::UpdateSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateSlateRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -234,7 +234,7 @@ VideoStitcherServiceConnection::UpdateSlate( future> VideoStitcherServiceConnection::UpdateSlate( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -250,7 +250,7 @@ VideoStitcherServiceConnection::DeleteSlate( StatusOr VideoStitcherServiceConnection::DeleteSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteSlateRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -258,7 +258,7 @@ VideoStitcherServiceConnection::DeleteSlate( future> VideoStitcherServiceConnection::DeleteSlate( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -286,7 +286,7 @@ VideoStitcherServiceConnection::CreateLiveConfig( StatusOr VideoStitcherServiceConnection::CreateLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateLiveConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -294,7 +294,7 @@ VideoStitcherServiceConnection::CreateLiveConfig( future> VideoStitcherServiceConnection::CreateLiveConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -324,7 +324,7 @@ VideoStitcherServiceConnection::DeleteLiveConfig( StatusOr VideoStitcherServiceConnection::DeleteLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -332,7 +332,7 @@ VideoStitcherServiceConnection::DeleteLiveConfig( future> VideoStitcherServiceConnection::DeleteLiveConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -348,7 +348,7 @@ VideoStitcherServiceConnection::UpdateLiveConfig( StatusOr VideoStitcherServiceConnection::UpdateLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -356,7 +356,7 @@ VideoStitcherServiceConnection::UpdateLiveConfig( future> VideoStitcherServiceConnection::UpdateLiveConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -372,7 +372,7 @@ VideoStitcherServiceConnection::CreateVodConfig( StatusOr VideoStitcherServiceConnection::CreateVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateVodConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -380,7 +380,7 @@ VideoStitcherServiceConnection::CreateVodConfig( future> VideoStitcherServiceConnection::CreateVodConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -410,7 +410,7 @@ VideoStitcherServiceConnection::DeleteVodConfig( StatusOr VideoStitcherServiceConnection::DeleteVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteVodConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -418,7 +418,7 @@ VideoStitcherServiceConnection::DeleteVodConfig( future> VideoStitcherServiceConnection::DeleteVodConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -434,7 +434,7 @@ VideoStitcherServiceConnection::UpdateVodConfig( StatusOr VideoStitcherServiceConnection::UpdateVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateVodConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -442,7 +442,7 @@ VideoStitcherServiceConnection::UpdateVodConfig( future> VideoStitcherServiceConnection::UpdateVodConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/video/stitcher/v1/video_stitcher_connection.h b/google/cloud/video/stitcher/v1/video_stitcher_connection.h index 8fc078edc84aa..3b69304047964 100644 --- a/google/cloud/video/stitcher/v1/video_stitcher_connection.h +++ b/google/cloud/video/stitcher/v1/video_stitcher_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/video/stitcher/v1/internal/video_stitcher_retry_traits.h" #include "google/cloud/video/stitcher/v1/video_stitcher_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,11 +197,11 @@ class VideoStitcherServiceConnection { google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request); virtual StatusOr CreateCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request); virtual future> - CreateCdnKey(google::cloud::ExperimentalTag, + CreateCdnKey(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListCdnKeys( @@ -216,12 +216,12 @@ class VideoStitcherServiceConnection { google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request); virtual StatusOr DeleteCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request); virtual future< StatusOr> - DeleteCdnKey(google::cloud::ExperimentalTag, + DeleteCdnKey(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -229,11 +229,11 @@ class VideoStitcherServiceConnection { google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request); virtual StatusOr UpdateCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request); virtual future> - UpdateCdnKey(google::cloud::ExperimentalTag, + UpdateCdnKey(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -277,12 +277,11 @@ class VideoStitcherServiceConnection { google::cloud::video::stitcher::v1::CreateSlateRequest const& request); virtual StatusOr CreateSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateSlateRequest const& request); virtual future> - CreateSlate(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + CreateSlate(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListSlates( google::cloud::video::stitcher::v1::ListSlatesRequest request); @@ -295,12 +294,11 @@ class VideoStitcherServiceConnection { google::cloud::video::stitcher::v1::UpdateSlateRequest const& request); virtual StatusOr UpdateSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateSlateRequest const& request); virtual future> - UpdateSlate(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + UpdateSlate(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> @@ -308,13 +306,12 @@ class VideoStitcherServiceConnection { google::cloud::video::stitcher::v1::DeleteSlateRequest const& request); virtual StatusOr DeleteSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteSlateRequest const& request); virtual future< StatusOr> - DeleteSlate(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteSlate(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr CreateLiveSession( @@ -331,12 +328,12 @@ class VideoStitcherServiceConnection { request); virtual StatusOr CreateLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& request); virtual future> - CreateLiveConfig(google::cloud::ExperimentalTag, + CreateLiveConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -354,13 +351,13 @@ class VideoStitcherServiceConnection { request); virtual StatusOr DeleteLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& request); virtual future< StatusOr> - DeleteLiveConfig(google::cloud::ExperimentalTag, + DeleteLiveConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -369,12 +366,12 @@ class VideoStitcherServiceConnection { request); virtual StatusOr UpdateLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& request); virtual future> - UpdateLiveConfig(google::cloud::ExperimentalTag, + UpdateLiveConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -383,12 +380,12 @@ class VideoStitcherServiceConnection { request); virtual StatusOr CreateVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request); virtual future> - CreateVodConfig(google::cloud::ExperimentalTag, + CreateVodConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -405,13 +402,13 @@ class VideoStitcherServiceConnection { request); virtual StatusOr DeleteVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& request); virtual future< StatusOr> - DeleteVodConfig(google::cloud::ExperimentalTag, + DeleteVodConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -420,12 +417,12 @@ class VideoStitcherServiceConnection { request); virtual StatusOr UpdateVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request); virtual future> - UpdateVodConfig(google::cloud::ExperimentalTag, + UpdateVodConfig(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/video/transcoder/v1/transcoder_connection.h b/google/cloud/video/transcoder/v1/transcoder_connection.h index 35698e31d9d33..ed23a8846ad36 100644 --- a/google/cloud/video/transcoder/v1/transcoder_connection.h +++ b/google/cloud/video/transcoder/v1/transcoder_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/video/transcoder/v1/internal/transcoder_retry_traits.h" #include "google/cloud/video/transcoder/v1/transcoder_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.cc b/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.cc index 66ed3baf89051..63c4b9bc405de 100644 --- a/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.cc +++ b/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.cc @@ -52,7 +52,7 @@ VideoIntelligenceServiceTracingConnection::AnnotateVideo( auto span = internal::MakeSpan( "videointelligence_v1::VideoIntelligenceServiceConnection::" "AnnotateVideo"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AnnotateVideo(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/videointelligence/v1/video_intelligence_connection.cc b/google/cloud/videointelligence/v1/video_intelligence_connection.cc index 8ded2a657ce9a..74aa47893dc23 100644 --- a/google/cloud/videointelligence/v1/video_intelligence_connection.cc +++ b/google/cloud/videointelligence/v1/video_intelligence_connection.cc @@ -48,7 +48,7 @@ VideoIntelligenceServiceConnection::AnnotateVideo( StatusOr VideoIntelligenceServiceConnection::AnnotateVideo( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::videointelligence::v1::AnnotateVideoRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ VideoIntelligenceServiceConnection::AnnotateVideo( future> VideoIntelligenceServiceConnection::AnnotateVideo( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/videointelligence/v1/video_intelligence_connection.h b/google/cloud/videointelligence/v1/video_intelligence_connection.h index 8ddb044654d45..3c2e803d1e414 100644 --- a/google/cloud/videointelligence/v1/video_intelligence_connection.h +++ b/google/cloud/videointelligence/v1/video_intelligence_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/videointelligence/v1/internal/video_intelligence_retry_traits.h" #include "google/cloud/videointelligence/v1/video_intelligence_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -207,13 +207,13 @@ class VideoIntelligenceServiceConnection { request); virtual StatusOr AnnotateVideo( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::videointelligence::v1::AnnotateVideoRequest const& request); virtual future< StatusOr> - AnnotateVideo(google::cloud::ExperimentalTag, + AnnotateVideo(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/vision/v1/image_annotator_connection.cc b/google/cloud/vision/v1/image_annotator_connection.cc index c89864c3f1d68..607ab066adb31 100644 --- a/google/cloud/vision/v1/image_annotator_connection.cc +++ b/google/cloud/vision/v1/image_annotator_connection.cc @@ -59,7 +59,7 @@ ImageAnnotatorConnection::AsyncBatchAnnotateImages( StatusOr ImageAnnotatorConnection::AsyncBatchAnnotateImages( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -67,7 +67,7 @@ ImageAnnotatorConnection::AsyncBatchAnnotateImages( future> ImageAnnotatorConnection::AsyncBatchAnnotateImages( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -83,7 +83,7 @@ ImageAnnotatorConnection::AsyncBatchAnnotateFiles( StatusOr ImageAnnotatorConnection::AsyncBatchAnnotateFiles( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -91,7 +91,7 @@ ImageAnnotatorConnection::AsyncBatchAnnotateFiles( future> ImageAnnotatorConnection::AsyncBatchAnnotateFiles( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/vision/v1/image_annotator_connection.h b/google/cloud/vision/v1/image_annotator_connection.h index b772f1cfe4c85..1605df46c8fe0 100644 --- a/google/cloud/vision/v1/image_annotator_connection.h +++ b/google/cloud/vision/v1/image_annotator_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/vision/v1/image_annotator_connection_idempotency_policy.h" #include "google/cloud/vision/v1/internal/image_annotator_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -201,13 +201,13 @@ class ImageAnnotatorConnection { request); virtual StatusOr AsyncBatchAnnotateImages( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& request); virtual future< StatusOr> - AsyncBatchAnnotateImages(google::cloud::ExperimentalTag, + AsyncBatchAnnotateImages(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -216,12 +216,12 @@ class ImageAnnotatorConnection { google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request); virtual StatusOr AsyncBatchAnnotateFiles( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request); virtual future< StatusOr> - AsyncBatchAnnotateFiles(google::cloud::ExperimentalTag, + AsyncBatchAnnotateFiles(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/vision/v1/internal/image_annotator_tracing_connection.cc b/google/cloud/vision/v1/internal/image_annotator_tracing_connection.cc index dd45955bcc188..82dde5d60d5be 100644 --- a/google/cloud/vision/v1/internal/image_annotator_tracing_connection.cc +++ b/google/cloud/vision/v1/internal/image_annotator_tracing_connection.cc @@ -66,7 +66,7 @@ ImageAnnotatorTracingConnection::AsyncBatchAnnotateImages( google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& request) { auto span = internal::MakeSpan( "vision_v1::ImageAnnotatorConnection::AsyncBatchAnnotateImages"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->AsyncBatchAnnotateImages( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -100,7 +100,7 @@ ImageAnnotatorTracingConnection::AsyncBatchAnnotateFiles( google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request) { auto span = internal::MakeSpan( "vision_v1::ImageAnnotatorConnection::AsyncBatchAnnotateFiles"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->AsyncBatchAnnotateFiles( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/vision/v1/internal/product_search_tracing_connection.cc b/google/cloud/vision/v1/internal/product_search_tracing_connection.cc index 3a218c8b4fdd5..53700d8e9f381 100644 --- a/google/cloud/vision/v1/internal/product_search_tracing_connection.cc +++ b/google/cloud/vision/v1/internal/product_search_tracing_connection.cc @@ -206,7 +206,7 @@ ProductSearchTracingConnection::ImportProductSets( google::cloud::vision::v1::ImportProductSetsRequest const& request) { auto span = internal::MakeSpan( "vision_v1::ProductSearchConnection::ImportProductSets"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ImportProductSets(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -239,7 +239,7 @@ ProductSearchTracingConnection::PurgeProducts( google::cloud::vision::v1::PurgeProductsRequest const& request) { auto span = internal::MakeSpan("vision_v1::ProductSearchConnection::PurgeProducts"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PurgeProducts(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/vision/v1/product_search_connection.cc b/google/cloud/vision/v1/product_search_connection.cc index 531fe6247d832..cce67e6b007ab 100644 --- a/google/cloud/vision/v1/product_search_connection.cc +++ b/google/cloud/vision/v1/product_search_connection.cc @@ -153,7 +153,7 @@ ProductSearchConnection::ImportProductSets( StatusOr ProductSearchConnection::ImportProductSets( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::ImportProductSetsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -161,7 +161,7 @@ ProductSearchConnection::ImportProductSets( future> ProductSearchConnection::ImportProductSets( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -176,14 +176,14 @@ ProductSearchConnection::PurgeProducts( } StatusOr ProductSearchConnection::PurgeProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::PurgeProductsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -ProductSearchConnection::PurgeProducts(google::cloud::ExperimentalTag, +ProductSearchConnection::PurgeProducts(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/vision/v1/product_search_connection.h b/google/cloud/vision/v1/product_search_connection.h index 3889b8befec74..cc8672b94d6b9 100644 --- a/google/cloud/vision/v1/product_search_connection.h +++ b/google/cloud/vision/v1/product_search_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/vision/v1/internal/product_search_retry_traits.h" #include "google/cloud/vision/v1/product_search_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -247,22 +247,22 @@ class ProductSearchConnection { google::cloud::vision::v1::ImportProductSetsRequest const& request); virtual StatusOr ImportProductSets( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::ImportProductSetsRequest const& request); virtual future> - ImportProductSets(google::cloud::ExperimentalTag, + ImportProductSets(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> PurgeProducts(google::cloud::vision::v1::PurgeProductsRequest const& request); virtual StatusOr PurgeProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::PurgeProductsRequest const& request); virtual future> - PurgeProducts(google::cloud::ExperimentalTag, + PurgeProducts(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.cc b/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.cc index 6ca543ceace11..25552090bffe0 100644 --- a/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.cc +++ b/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.cc @@ -68,7 +68,7 @@ VmMigrationTracingConnection::CreateSource( google::cloud::vmmigration::v1::CreateSourceRequest const& request) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::CreateSource"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateSource(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ VmMigrationTracingConnection::UpdateSource( google::cloud::vmmigration::v1::UpdateSourceRequest const& request) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::UpdateSource"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateSource(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -134,7 +134,7 @@ VmMigrationTracingConnection::DeleteSource( google::cloud::vmmigration::v1::DeleteSourceRequest const& request) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::DeleteSource"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteSource(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -201,7 +201,7 @@ VmMigrationTracingConnection::CreateUtilizationReport( request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateUtilizationReport"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateUtilizationReport( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -237,7 +237,7 @@ VmMigrationTracingConnection::DeleteUtilizationReport( request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::DeleteUtilizationReport"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteUtilizationReport( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -295,7 +295,7 @@ VmMigrationTracingConnection::CreateDatacenterConnector( request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateDatacenterConnector"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateDatacenterConnector( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -331,7 +331,7 @@ VmMigrationTracingConnection::DeleteDatacenterConnector( request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::DeleteDatacenterConnector"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteDatacenterConnector( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -364,7 +364,7 @@ VmMigrationTracingConnection::UpgradeAppliance( google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::UpgradeAppliance"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpgradeAppliance(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -397,7 +397,7 @@ VmMigrationTracingConnection::CreateMigratingVm( google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateMigratingVm"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateMigratingVm(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -451,7 +451,7 @@ VmMigrationTracingConnection::UpdateMigratingVm( google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::UpdateMigratingVm"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateMigratingVm(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -484,7 +484,7 @@ VmMigrationTracingConnection::DeleteMigratingVm( google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::DeleteMigratingVm"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteMigratingVm(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -517,7 +517,7 @@ VmMigrationTracingConnection::StartMigration( google::cloud::vmmigration::v1::StartMigrationRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::StartMigration"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StartMigration(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -550,7 +550,7 @@ VmMigrationTracingConnection::ResumeMigration( google::cloud::vmmigration::v1::ResumeMigrationRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::ResumeMigration"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ResumeMigration(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -583,7 +583,7 @@ VmMigrationTracingConnection::PauseMigration( google::cloud::vmmigration::v1::PauseMigrationRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::PauseMigration"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->PauseMigration(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -616,7 +616,7 @@ VmMigrationTracingConnection::FinalizeMigration( google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::FinalizeMigration"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->FinalizeMigration(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -649,7 +649,7 @@ VmMigrationTracingConnection::CreateCloneJob( google::cloud::vmmigration::v1::CreateCloneJobRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateCloneJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateCloneJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -682,7 +682,7 @@ VmMigrationTracingConnection::CancelCloneJob( google::cloud::vmmigration::v1::CancelCloneJobRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CancelCloneJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CancelCloneJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -735,7 +735,7 @@ VmMigrationTracingConnection::CreateCutoverJob( google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateCutoverJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateCutoverJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -768,7 +768,7 @@ VmMigrationTracingConnection::CancelCutoverJob( google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CancelCutoverJob"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CancelCutoverJob(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -842,7 +842,7 @@ VmMigrationTracingConnection::CreateGroup( google::cloud::vmmigration::v1::CreateGroupRequest const& request) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::CreateGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -875,7 +875,7 @@ VmMigrationTracingConnection::UpdateGroup( google::cloud::vmmigration::v1::UpdateGroupRequest const& request) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::UpdateGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -908,7 +908,7 @@ VmMigrationTracingConnection::DeleteGroup( google::cloud::vmmigration::v1::DeleteGroupRequest const& request) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::DeleteGroup"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteGroup(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -941,7 +941,7 @@ VmMigrationTracingConnection::AddGroupMigration( google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::AddGroupMigration"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->AddGroupMigration(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -977,7 +977,7 @@ VmMigrationTracingConnection::RemoveGroupMigration( request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::RemoveGroupMigration"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RemoveGroupMigration( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1032,7 +1032,7 @@ VmMigrationTracingConnection::CreateTargetProject( google::cloud::vmmigration::v1::CreateTargetProjectRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateTargetProject"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateTargetProject(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1066,7 +1066,7 @@ VmMigrationTracingConnection::UpdateTargetProject( google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::UpdateTargetProject"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateTargetProject(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1100,7 +1100,7 @@ VmMigrationTracingConnection::DeleteTargetProject( google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::DeleteTargetProject"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteTargetProject(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/vmmigration/v1/vm_migration_connection.cc b/google/cloud/vmmigration/v1/vm_migration_connection.cc index fcf01fb808fe0..9448243f993c1 100644 --- a/google/cloud/vmmigration/v1/vm_migration_connection.cc +++ b/google/cloud/vmmigration/v1/vm_migration_connection.cc @@ -61,14 +61,14 @@ VmMigrationConnection::CreateSource( } StatusOr VmMigrationConnection::CreateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateSourceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmMigrationConnection::CreateSource(google::cloud::ExperimentalTag, +VmMigrationConnection::CreateSource(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -84,14 +84,14 @@ VmMigrationConnection::UpdateSource( } StatusOr VmMigrationConnection::UpdateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateSourceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmMigrationConnection::UpdateSource(google::cloud::ExperimentalTag, +VmMigrationConnection::UpdateSource(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -107,14 +107,14 @@ VmMigrationConnection::DeleteSource( } StatusOr VmMigrationConnection::DeleteSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteSourceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmMigrationConnection::DeleteSource(google::cloud::ExperimentalTag, +VmMigrationConnection::DeleteSource(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -151,7 +151,7 @@ VmMigrationConnection::CreateUtilizationReport( StatusOr VmMigrationConnection::CreateUtilizationReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateUtilizationReportRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -159,7 +159,7 @@ VmMigrationConnection::CreateUtilizationReport( future> VmMigrationConnection::CreateUtilizationReport( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -175,7 +175,7 @@ VmMigrationConnection::DeleteUtilizationReport( StatusOr VmMigrationConnection::DeleteUtilizationReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -183,7 +183,7 @@ VmMigrationConnection::DeleteUtilizationReport( future> VmMigrationConnection::DeleteUtilizationReport( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -213,7 +213,7 @@ VmMigrationConnection::CreateDatacenterConnector( StatusOr VmMigrationConnection::CreateDatacenterConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -221,7 +221,7 @@ VmMigrationConnection::CreateDatacenterConnector( future> VmMigrationConnection::CreateDatacenterConnector( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -237,7 +237,7 @@ VmMigrationConnection::DeleteDatacenterConnector( StatusOr VmMigrationConnection::DeleteDatacenterConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -245,7 +245,7 @@ VmMigrationConnection::DeleteDatacenterConnector( future> VmMigrationConnection::DeleteDatacenterConnector( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -261,14 +261,14 @@ VmMigrationConnection::UpgradeAppliance( StatusOr VmMigrationConnection::UpgradeAppliance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpgradeApplianceRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmMigrationConnection::UpgradeAppliance(google::cloud::ExperimentalTag, +VmMigrationConnection::UpgradeAppliance(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -285,7 +285,7 @@ VmMigrationConnection::CreateMigratingVm( StatusOr VmMigrationConnection::CreateMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateMigratingVmRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -293,7 +293,7 @@ VmMigrationConnection::CreateMigratingVm( future> VmMigrationConnection::CreateMigratingVm( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -323,7 +323,7 @@ VmMigrationConnection::UpdateMigratingVm( StatusOr VmMigrationConnection::UpdateMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateMigratingVmRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -331,7 +331,7 @@ VmMigrationConnection::UpdateMigratingVm( future> VmMigrationConnection::UpdateMigratingVm( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -347,7 +347,7 @@ VmMigrationConnection::DeleteMigratingVm( StatusOr VmMigrationConnection::DeleteMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteMigratingVmRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -355,7 +355,7 @@ VmMigrationConnection::DeleteMigratingVm( future> VmMigrationConnection::DeleteMigratingVm( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -370,14 +370,14 @@ VmMigrationConnection::StartMigration( } StatusOr VmMigrationConnection::StartMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::StartMigrationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmMigrationConnection::StartMigration(google::cloud::ExperimentalTag, +VmMigrationConnection::StartMigration(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -393,14 +393,14 @@ VmMigrationConnection::ResumeMigration( } StatusOr VmMigrationConnection::ResumeMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::ResumeMigrationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmMigrationConnection::ResumeMigration(google::cloud::ExperimentalTag, +VmMigrationConnection::ResumeMigration(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -416,14 +416,14 @@ VmMigrationConnection::PauseMigration( } StatusOr VmMigrationConnection::PauseMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::PauseMigrationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmMigrationConnection::PauseMigration(google::cloud::ExperimentalTag, +VmMigrationConnection::PauseMigration(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -440,7 +440,7 @@ VmMigrationConnection::FinalizeMigration( StatusOr VmMigrationConnection::FinalizeMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::FinalizeMigrationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -448,7 +448,7 @@ VmMigrationConnection::FinalizeMigration( future> VmMigrationConnection::FinalizeMigration( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -463,14 +463,14 @@ VmMigrationConnection::CreateCloneJob( } StatusOr VmMigrationConnection::CreateCloneJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateCloneJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmMigrationConnection::CreateCloneJob(google::cloud::ExperimentalTag, +VmMigrationConnection::CreateCloneJob(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -486,14 +486,14 @@ VmMigrationConnection::CancelCloneJob( } StatusOr VmMigrationConnection::CancelCloneJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CancelCloneJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmMigrationConnection::CancelCloneJob(google::cloud::ExperimentalTag, +VmMigrationConnection::CancelCloneJob(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -524,14 +524,14 @@ VmMigrationConnection::CreateCutoverJob( StatusOr VmMigrationConnection::CreateCutoverJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateCutoverJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmMigrationConnection::CreateCutoverJob(google::cloud::ExperimentalTag, +VmMigrationConnection::CreateCutoverJob(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -548,14 +548,14 @@ VmMigrationConnection::CancelCutoverJob( StatusOr VmMigrationConnection::CancelCutoverJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CancelCutoverJobRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmMigrationConnection::CancelCutoverJob(google::cloud::ExperimentalTag, +VmMigrationConnection::CancelCutoverJob(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -598,14 +598,14 @@ VmMigrationConnection::CreateGroup( } StatusOr VmMigrationConnection::CreateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateGroupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmMigrationConnection::CreateGroup(google::cloud::ExperimentalTag, +VmMigrationConnection::CreateGroup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -621,14 +621,14 @@ VmMigrationConnection::UpdateGroup( } StatusOr VmMigrationConnection::UpdateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateGroupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmMigrationConnection::UpdateGroup(google::cloud::ExperimentalTag, +VmMigrationConnection::UpdateGroup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -644,14 +644,14 @@ VmMigrationConnection::DeleteGroup( } StatusOr VmMigrationConnection::DeleteGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteGroupRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmMigrationConnection::DeleteGroup(google::cloud::ExperimentalTag, +VmMigrationConnection::DeleteGroup(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -668,7 +668,7 @@ VmMigrationConnection::AddGroupMigration( StatusOr VmMigrationConnection::AddGroupMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::AddGroupMigrationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -676,7 +676,7 @@ VmMigrationConnection::AddGroupMigration( future> VmMigrationConnection::AddGroupMigration( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -692,7 +692,7 @@ VmMigrationConnection::RemoveGroupMigration( StatusOr VmMigrationConnection::RemoveGroupMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -700,7 +700,7 @@ VmMigrationConnection::RemoveGroupMigration( future> VmMigrationConnection::RemoveGroupMigration( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -730,7 +730,7 @@ VmMigrationConnection::CreateTargetProject( StatusOr VmMigrationConnection::CreateTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateTargetProjectRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -738,7 +738,7 @@ VmMigrationConnection::CreateTargetProject( future> VmMigrationConnection::CreateTargetProject( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -754,7 +754,7 @@ VmMigrationConnection::UpdateTargetProject( StatusOr VmMigrationConnection::UpdateTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateTargetProjectRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -762,7 +762,7 @@ VmMigrationConnection::UpdateTargetProject( future> VmMigrationConnection::UpdateTargetProject( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -778,7 +778,7 @@ VmMigrationConnection::DeleteTargetProject( StatusOr VmMigrationConnection::DeleteTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteTargetProjectRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -786,7 +786,7 @@ VmMigrationConnection::DeleteTargetProject( future> VmMigrationConnection::DeleteTargetProject( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/vmmigration/v1/vm_migration_connection.h b/google/cloud/vmmigration/v1/vm_migration_connection.h index 7892e5294fdbc..6649e116f3532 100644 --- a/google/cloud/vmmigration/v1/vm_migration_connection.h +++ b/google/cloud/vmmigration/v1/vm_migration_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/vmmigration/v1/internal/vm_migration_retry_traits.h" #include "google/cloud/vmmigration/v1/vm_migration_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -196,34 +196,32 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::CreateSourceRequest const& request); virtual StatusOr CreateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateSourceRequest const& request); virtual future> CreateSource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateSource( google::cloud::vmmigration::v1::UpdateSourceRequest const& request); virtual StatusOr UpdateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateSourceRequest const& request); virtual future> UpdateSource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteSource( google::cloud::vmmigration::v1::DeleteSourceRequest const& request); virtual StatusOr DeleteSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteSourceRequest const& request); virtual future> - DeleteSource(google::cloud::ExperimentalTag, + DeleteSource(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -245,12 +243,12 @@ class VmMigrationConnection { request); virtual StatusOr CreateUtilizationReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& request); virtual future> - CreateUtilizationReport(google::cloud::ExperimentalTag, + CreateUtilizationReport(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -259,12 +257,12 @@ class VmMigrationConnection { request); virtual StatusOr DeleteUtilizationReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& request); virtual future> - DeleteUtilizationReport(google::cloud::ExperimentalTag, + DeleteUtilizationReport(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -282,12 +280,12 @@ class VmMigrationConnection { request); virtual StatusOr CreateDatacenterConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& request); virtual future> - CreateDatacenterConnector(google::cloud::ExperimentalTag, + CreateDatacenterConnector(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -296,12 +294,12 @@ class VmMigrationConnection { request); virtual StatusOr DeleteDatacenterConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& request); virtual future> - DeleteDatacenterConnector(google::cloud::ExperimentalTag, + DeleteDatacenterConnector(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -310,12 +308,12 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request); virtual StatusOr UpgradeAppliance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request); virtual future< StatusOr> - UpgradeAppliance(google::cloud::ExperimentalTag, + UpgradeAppliance(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -323,11 +321,11 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request); virtual StatusOr CreateMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request); virtual future> - CreateMigratingVm(google::cloud::ExperimentalTag, + CreateMigratingVm(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -342,11 +340,11 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request); virtual StatusOr UpdateMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request); virtual future> - UpdateMigratingVm(google::cloud::ExperimentalTag, + UpdateMigratingVm(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -354,11 +352,11 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request); virtual StatusOr DeleteMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request); virtual future> - DeleteMigratingVm(google::cloud::ExperimentalTag, + DeleteMigratingVm(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -367,12 +365,12 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::StartMigrationRequest const& request); virtual StatusOr StartMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::StartMigrationRequest const& request); virtual future< StatusOr> - StartMigration(google::cloud::ExperimentalTag, + StartMigration(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -381,12 +379,12 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::ResumeMigrationRequest const& request); virtual StatusOr ResumeMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::ResumeMigrationRequest const& request); virtual future< StatusOr> - ResumeMigration(google::cloud::ExperimentalTag, + ResumeMigration(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -395,12 +393,12 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::PauseMigrationRequest const& request); virtual StatusOr PauseMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::PauseMigrationRequest const& request); virtual future< StatusOr> - PauseMigration(google::cloud::ExperimentalTag, + PauseMigration(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -409,12 +407,12 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request); virtual StatusOr FinalizeMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request); virtual future< StatusOr> - FinalizeMigration(google::cloud::ExperimentalTag, + FinalizeMigration(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -422,11 +420,11 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::CreateCloneJobRequest const& request); virtual StatusOr CreateCloneJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateCloneJobRequest const& request); virtual future> - CreateCloneJob(google::cloud::ExperimentalTag, + CreateCloneJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -435,12 +433,12 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::CancelCloneJobRequest const& request); virtual StatusOr CancelCloneJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CancelCloneJobRequest const& request); virtual future< StatusOr> - CancelCloneJob(google::cloud::ExperimentalTag, + CancelCloneJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListCloneJobs( @@ -454,11 +452,11 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request); virtual StatusOr CreateCutoverJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request); virtual future> - CreateCutoverJob(google::cloud::ExperimentalTag, + CreateCutoverJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -467,12 +465,12 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request); virtual StatusOr CancelCutoverJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request); virtual future< StatusOr> - CancelCutoverJob(google::cloud::ExperimentalTag, + CancelCutoverJob(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -492,35 +490,32 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::CreateGroupRequest const& request); virtual StatusOr CreateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateGroupRequest const& request); virtual future> CreateGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> UpdateGroup( google::cloud::vmmigration::v1::UpdateGroupRequest const& request); virtual StatusOr UpdateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateGroupRequest const& request); virtual future> UpdateGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteGroup( google::cloud::vmmigration::v1::DeleteGroupRequest const& request); virtual StatusOr DeleteGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteGroupRequest const& request); virtual future> - DeleteGroup(google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + DeleteGroup(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> @@ -528,12 +523,12 @@ class VmMigrationConnection { google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request); virtual StatusOr AddGroupMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request); virtual future< StatusOr> - AddGroupMigration(google::cloud::ExperimentalTag, + AddGroupMigration(ExperimentalTag, google::longrunning::Operation const& operation); virtual future< @@ -543,13 +538,13 @@ class VmMigrationConnection { request); virtual StatusOr RemoveGroupMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& request); virtual future< StatusOr> - RemoveGroupMigration(google::cloud::ExperimentalTag, + RemoveGroupMigration(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -566,12 +561,12 @@ class VmMigrationConnection { request); virtual StatusOr CreateTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateTargetProjectRequest const& request); virtual future> - CreateTargetProject(google::cloud::ExperimentalTag, + CreateTargetProject(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -580,12 +575,12 @@ class VmMigrationConnection { request); virtual StatusOr UpdateTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request); virtual future> - UpdateTargetProject(google::cloud::ExperimentalTag, + UpdateTargetProject(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -594,12 +589,12 @@ class VmMigrationConnection { request); virtual StatusOr DeleteTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request); virtual future> - DeleteTargetProject(google::cloud::ExperimentalTag, + DeleteTargetProject(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange diff --git a/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.cc b/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.cc index 45f7dcb4f6555..49a0d6673add9 100644 --- a/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.cc +++ b/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.cc @@ -70,7 +70,7 @@ VmwareEngineTracingConnection::CreatePrivateCloud( google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreatePrivateCloud"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreatePrivateCloud(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -104,7 +104,7 @@ VmwareEngineTracingConnection::UpdatePrivateCloud( google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdatePrivateCloud"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdatePrivateCloud(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -138,7 +138,7 @@ VmwareEngineTracingConnection::DeletePrivateCloud( google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeletePrivateCloud"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeletePrivateCloud(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -174,7 +174,7 @@ VmwareEngineTracingConnection::UndeletePrivateCloud( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UndeletePrivateCloud"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UndeletePrivateCloud( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -227,7 +227,7 @@ VmwareEngineTracingConnection::CreateCluster( google::cloud::vmwareengine::v1::CreateClusterRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -260,7 +260,7 @@ VmwareEngineTracingConnection::UpdateCluster( google::cloud::vmwareengine::v1::UpdateClusterRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -293,7 +293,7 @@ VmwareEngineTracingConnection::DeleteCluster( google::cloud::vmwareengine::v1::DeleteClusterRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -384,7 +384,7 @@ VmwareEngineTracingConnection::CreateExternalAddress( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateExternalAddress"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateExternalAddress( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -420,7 +420,7 @@ VmwareEngineTracingConnection::UpdateExternalAddress( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateExternalAddress"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateExternalAddress( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -456,7 +456,7 @@ VmwareEngineTracingConnection::DeleteExternalAddress( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteExternalAddress"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteExternalAddress( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -509,7 +509,7 @@ VmwareEngineTracingConnection::UpdateSubnet( google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateSubnet"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateSubnet(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -567,7 +567,7 @@ VmwareEngineTracingConnection::CreateExternalAccessRule( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateExternalAccessRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateExternalAccessRule( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -603,7 +603,7 @@ VmwareEngineTracingConnection::UpdateExternalAccessRule( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateExternalAccessRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateExternalAccessRule( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -639,7 +639,7 @@ VmwareEngineTracingConnection::DeleteExternalAccessRule( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteExternalAccessRule"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteExternalAccessRule( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -696,7 +696,7 @@ VmwareEngineTracingConnection::CreateLoggingServer( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateLoggingServer"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateLoggingServer(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -732,7 +732,7 @@ VmwareEngineTracingConnection::UpdateLoggingServer( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateLoggingServer"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateLoggingServer(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -768,7 +768,7 @@ VmwareEngineTracingConnection::DeleteLoggingServer( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteLoggingServer"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteLoggingServer(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -844,7 +844,7 @@ VmwareEngineTracingConnection::ResetNsxCredentials( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::ResetNsxCredentials"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->ResetNsxCredentials(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -880,7 +880,7 @@ VmwareEngineTracingConnection::ResetVcenterCredentials( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::ResetVcenterCredentials"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->ResetVcenterCredentials( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -925,7 +925,7 @@ VmwareEngineTracingConnection::UpdateDnsForwarding( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateDnsForwarding"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateDnsForwarding(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -982,7 +982,7 @@ VmwareEngineTracingConnection::CreateNetworkPeering( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateNetworkPeering"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateNetworkPeering( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1018,7 +1018,7 @@ VmwareEngineTracingConnection::DeleteNetworkPeering( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteNetworkPeering"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteNetworkPeering( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1054,7 +1054,7 @@ VmwareEngineTracingConnection::UpdateNetworkPeering( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateNetworkPeering"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateNetworkPeering( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1102,7 +1102,7 @@ VmwareEngineTracingConnection::CreateHcxActivationKey( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateHcxActivationKey"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateHcxActivationKey( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1181,7 +1181,7 @@ VmwareEngineTracingConnection::CreateNetworkPolicy( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateNetworkPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateNetworkPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1217,7 +1217,7 @@ VmwareEngineTracingConnection::UpdateNetworkPolicy( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateNetworkPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateNetworkPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1253,7 +1253,7 @@ VmwareEngineTracingConnection::DeleteNetworkPolicy( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteNetworkPolicy"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteNetworkPolicy(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1314,7 +1314,7 @@ VmwareEngineTracingConnection::CreateManagementDnsZoneBinding( auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::" "CreateManagementDnsZoneBinding"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateManagementDnsZoneBinding( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1353,7 +1353,7 @@ VmwareEngineTracingConnection::UpdateManagementDnsZoneBinding( auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::" "UpdateManagementDnsZoneBinding"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateManagementDnsZoneBinding( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1392,7 +1392,7 @@ VmwareEngineTracingConnection::DeleteManagementDnsZoneBinding( auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::" "DeleteManagementDnsZoneBinding"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteManagementDnsZoneBinding( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1431,7 +1431,7 @@ VmwareEngineTracingConnection::RepairManagementDnsZoneBinding( auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::" "RepairManagementDnsZoneBinding"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RepairManagementDnsZoneBinding( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1468,7 +1468,7 @@ VmwareEngineTracingConnection::CreateVmwareEngineNetwork( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateVmwareEngineNetwork"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateVmwareEngineNetwork( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1504,7 +1504,7 @@ VmwareEngineTracingConnection::UpdateVmwareEngineNetwork( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateVmwareEngineNetwork"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateVmwareEngineNetwork( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1540,7 +1540,7 @@ VmwareEngineTracingConnection::DeleteVmwareEngineNetwork( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteVmwareEngineNetwork"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteVmwareEngineNetwork( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1598,7 +1598,7 @@ VmwareEngineTracingConnection::CreatePrivateConnection( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreatePrivateConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreatePrivateConnection( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1656,7 +1656,7 @@ VmwareEngineTracingConnection::UpdatePrivateConnection( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdatePrivateConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdatePrivateConnection( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1692,7 +1692,7 @@ VmwareEngineTracingConnection::DeletePrivateConnection( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeletePrivateConnection"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeletePrivateConnection( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1742,7 +1742,7 @@ VmwareEngineTracingConnection::GrantDnsBindPermission( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::GrantDnsBindPermission"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->GrantDnsBindPermission( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -1788,7 +1788,7 @@ VmwareEngineTracingConnection::RevokeDnsBindPermission( request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::RevokeDnsBindPermission"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RevokeDnsBindPermission( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/vmwareengine/v1/vmware_engine_connection.cc b/google/cloud/vmwareengine/v1/vmware_engine_connection.cc index 291abe017218c..2b32b9ec8dfbd 100644 --- a/google/cloud/vmwareengine/v1/vmware_engine_connection.cc +++ b/google/cloud/vmwareengine/v1/vmware_engine_connection.cc @@ -62,7 +62,7 @@ VmwareEngineConnection::CreatePrivateCloud( StatusOr VmwareEngineConnection::CreatePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ VmwareEngineConnection::CreatePrivateCloud( future> VmwareEngineConnection::CreatePrivateCloud( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ VmwareEngineConnection::UpdatePrivateCloud( StatusOr VmwareEngineConnection::UpdatePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ VmwareEngineConnection::UpdatePrivateCloud( future> VmwareEngineConnection::UpdatePrivateCloud( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ VmwareEngineConnection::DeletePrivateCloud( StatusOr VmwareEngineConnection::DeletePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ VmwareEngineConnection::DeletePrivateCloud( future> VmwareEngineConnection::DeletePrivateCloud( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -134,7 +134,7 @@ VmwareEngineConnection::UndeletePrivateCloud( StatusOr VmwareEngineConnection::UndeletePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -142,7 +142,7 @@ VmwareEngineConnection::UndeletePrivateCloud( future> VmwareEngineConnection::UndeletePrivateCloud( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -171,14 +171,14 @@ VmwareEngineConnection::CreateCluster( } StatusOr VmwareEngineConnection::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmwareEngineConnection::CreateCluster(google::cloud::ExperimentalTag, +VmwareEngineConnection::CreateCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -194,14 +194,14 @@ VmwareEngineConnection::UpdateCluster( } StatusOr VmwareEngineConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmwareEngineConnection::UpdateCluster(google::cloud::ExperimentalTag, +VmwareEngineConnection::UpdateCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -217,14 +217,14 @@ VmwareEngineConnection::DeleteCluster( } StatusOr VmwareEngineConnection::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmwareEngineConnection::DeleteCluster(google::cloud::ExperimentalTag, +VmwareEngineConnection::DeleteCluster(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -276,7 +276,7 @@ VmwareEngineConnection::CreateExternalAddress( StatusOr VmwareEngineConnection::CreateExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateExternalAddressRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -284,7 +284,7 @@ VmwareEngineConnection::CreateExternalAddress( future> VmwareEngineConnection::CreateExternalAddress( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -300,7 +300,7 @@ VmwareEngineConnection::UpdateExternalAddress( StatusOr VmwareEngineConnection::UpdateExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -308,7 +308,7 @@ VmwareEngineConnection::UpdateExternalAddress( future> VmwareEngineConnection::UpdateExternalAddress( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -324,7 +324,7 @@ VmwareEngineConnection::DeleteExternalAddress( StatusOr VmwareEngineConnection::DeleteExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -332,7 +332,7 @@ VmwareEngineConnection::DeleteExternalAddress( future> VmwareEngineConnection::DeleteExternalAddress( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -361,14 +361,14 @@ VmwareEngineConnection::UpdateSubnet( } StatusOr VmwareEngineConnection::UpdateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateSubnetRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -VmwareEngineConnection::UpdateSubnet(google::cloud::ExperimentalTag, +VmwareEngineConnection::UpdateSubnet(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -399,7 +399,7 @@ VmwareEngineConnection::CreateExternalAccessRule( StatusOr VmwareEngineConnection::CreateExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -407,7 +407,7 @@ VmwareEngineConnection::CreateExternalAccessRule( future> VmwareEngineConnection::CreateExternalAccessRule( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -423,7 +423,7 @@ VmwareEngineConnection::UpdateExternalAccessRule( StatusOr VmwareEngineConnection::UpdateExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -431,7 +431,7 @@ VmwareEngineConnection::UpdateExternalAccessRule( future> VmwareEngineConnection::UpdateExternalAccessRule( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -447,7 +447,7 @@ VmwareEngineConnection::DeleteExternalAccessRule( StatusOr VmwareEngineConnection::DeleteExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -455,7 +455,7 @@ VmwareEngineConnection::DeleteExternalAccessRule( future> VmwareEngineConnection::DeleteExternalAccessRule( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -485,7 +485,7 @@ VmwareEngineConnection::CreateLoggingServer( StatusOr VmwareEngineConnection::CreateLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateLoggingServerRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -493,7 +493,7 @@ VmwareEngineConnection::CreateLoggingServer( future> VmwareEngineConnection::CreateLoggingServer( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -509,7 +509,7 @@ VmwareEngineConnection::UpdateLoggingServer( StatusOr VmwareEngineConnection::UpdateLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -517,7 +517,7 @@ VmwareEngineConnection::UpdateLoggingServer( future> VmwareEngineConnection::UpdateLoggingServer( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -533,7 +533,7 @@ VmwareEngineConnection::DeleteLoggingServer( StatusOr VmwareEngineConnection::DeleteLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -541,7 +541,7 @@ VmwareEngineConnection::DeleteLoggingServer( future> VmwareEngineConnection::DeleteLoggingServer( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -583,7 +583,7 @@ VmwareEngineConnection::ResetNsxCredentials( StatusOr VmwareEngineConnection::ResetNsxCredentials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -591,7 +591,7 @@ VmwareEngineConnection::ResetNsxCredentials( future> VmwareEngineConnection::ResetNsxCredentials( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -607,7 +607,7 @@ VmwareEngineConnection::ResetVcenterCredentials( StatusOr VmwareEngineConnection::ResetVcenterCredentials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -615,7 +615,7 @@ VmwareEngineConnection::ResetVcenterCredentials( future> VmwareEngineConnection::ResetVcenterCredentials( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -637,7 +637,7 @@ VmwareEngineConnection::UpdateDnsForwarding( StatusOr VmwareEngineConnection::UpdateDnsForwarding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -645,7 +645,7 @@ VmwareEngineConnection::UpdateDnsForwarding( future> VmwareEngineConnection::UpdateDnsForwarding( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -675,7 +675,7 @@ VmwareEngineConnection::CreateNetworkPeering( StatusOr VmwareEngineConnection::CreateNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -683,7 +683,7 @@ VmwareEngineConnection::CreateNetworkPeering( future> VmwareEngineConnection::CreateNetworkPeering( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -699,7 +699,7 @@ VmwareEngineConnection::DeleteNetworkPeering( StatusOr VmwareEngineConnection::DeleteNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -707,7 +707,7 @@ VmwareEngineConnection::DeleteNetworkPeering( future> VmwareEngineConnection::DeleteNetworkPeering( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -723,7 +723,7 @@ VmwareEngineConnection::UpdateNetworkPeering( StatusOr VmwareEngineConnection::UpdateNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -731,7 +731,7 @@ VmwareEngineConnection::UpdateNetworkPeering( future> VmwareEngineConnection::UpdateNetworkPeering( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -755,7 +755,7 @@ VmwareEngineConnection::CreateHcxActivationKey( StatusOr VmwareEngineConnection::CreateHcxActivationKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -763,7 +763,7 @@ VmwareEngineConnection::CreateHcxActivationKey( future> VmwareEngineConnection::CreateHcxActivationKey( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -807,7 +807,7 @@ VmwareEngineConnection::CreateNetworkPolicy( StatusOr VmwareEngineConnection::CreateNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -815,7 +815,7 @@ VmwareEngineConnection::CreateNetworkPolicy( future> VmwareEngineConnection::CreateNetworkPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -831,7 +831,7 @@ VmwareEngineConnection::UpdateNetworkPolicy( StatusOr VmwareEngineConnection::UpdateNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -839,7 +839,7 @@ VmwareEngineConnection::UpdateNetworkPolicy( future> VmwareEngineConnection::UpdateNetworkPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -855,7 +855,7 @@ VmwareEngineConnection::DeleteNetworkPolicy( StatusOr VmwareEngineConnection::DeleteNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -863,7 +863,7 @@ VmwareEngineConnection::DeleteNetworkPolicy( future> VmwareEngineConnection::DeleteNetworkPolicy( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -895,7 +895,7 @@ VmwareEngineConnection::CreateManagementDnsZoneBinding( StatusOr VmwareEngineConnection::CreateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: CreateManagementDnsZoneBindingRequest const&) { return StatusOr( @@ -904,7 +904,7 @@ VmwareEngineConnection::CreateManagementDnsZoneBinding( future> VmwareEngineConnection::CreateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -921,7 +921,7 @@ VmwareEngineConnection::UpdateManagementDnsZoneBinding( StatusOr VmwareEngineConnection::UpdateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: UpdateManagementDnsZoneBindingRequest const&) { return StatusOr( @@ -930,7 +930,7 @@ VmwareEngineConnection::UpdateManagementDnsZoneBinding( future> VmwareEngineConnection::UpdateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -947,7 +947,7 @@ VmwareEngineConnection::DeleteManagementDnsZoneBinding( StatusOr VmwareEngineConnection::DeleteManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: DeleteManagementDnsZoneBindingRequest const&) { return StatusOr( @@ -956,7 +956,7 @@ VmwareEngineConnection::DeleteManagementDnsZoneBinding( future> VmwareEngineConnection::DeleteManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -973,7 +973,7 @@ VmwareEngineConnection::RepairManagementDnsZoneBinding( StatusOr VmwareEngineConnection::RepairManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: RepairManagementDnsZoneBindingRequest const&) { return StatusOr( @@ -982,7 +982,7 @@ VmwareEngineConnection::RepairManagementDnsZoneBinding( future> VmwareEngineConnection::RepairManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -998,7 +998,7 @@ VmwareEngineConnection::CreateVmwareEngineNetwork( StatusOr VmwareEngineConnection::CreateVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -1006,7 +1006,7 @@ VmwareEngineConnection::CreateVmwareEngineNetwork( future> VmwareEngineConnection::CreateVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -1022,7 +1022,7 @@ VmwareEngineConnection::UpdateVmwareEngineNetwork( StatusOr VmwareEngineConnection::UpdateVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -1030,7 +1030,7 @@ VmwareEngineConnection::UpdateVmwareEngineNetwork( future> VmwareEngineConnection::UpdateVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -1046,7 +1046,7 @@ VmwareEngineConnection::DeleteVmwareEngineNetwork( StatusOr VmwareEngineConnection::DeleteVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -1054,7 +1054,7 @@ VmwareEngineConnection::DeleteVmwareEngineNetwork( future> VmwareEngineConnection::DeleteVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -1084,7 +1084,7 @@ VmwareEngineConnection::CreatePrivateConnection( StatusOr VmwareEngineConnection::CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -1092,7 +1092,7 @@ VmwareEngineConnection::CreatePrivateConnection( future> VmwareEngineConnection::CreatePrivateConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -1122,7 +1122,7 @@ VmwareEngineConnection::UpdatePrivateConnection( StatusOr VmwareEngineConnection::UpdatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -1130,7 +1130,7 @@ VmwareEngineConnection::UpdatePrivateConnection( future> VmwareEngineConnection::UpdatePrivateConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -1146,7 +1146,7 @@ VmwareEngineConnection::DeletePrivateConnection( StatusOr VmwareEngineConnection::DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -1154,7 +1154,7 @@ VmwareEngineConnection::DeletePrivateConnection( future> VmwareEngineConnection::DeletePrivateConnection( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -1178,7 +1178,7 @@ VmwareEngineConnection::GrantDnsBindPermission( StatusOr VmwareEngineConnection::GrantDnsBindPermission( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -1186,7 +1186,7 @@ VmwareEngineConnection::GrantDnsBindPermission( future> VmwareEngineConnection::GrantDnsBindPermission( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -1208,7 +1208,7 @@ VmwareEngineConnection::RevokeDnsBindPermission( StatusOr VmwareEngineConnection::RevokeDnsBindPermission( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -1216,7 +1216,7 @@ VmwareEngineConnection::RevokeDnsBindPermission( future> VmwareEngineConnection::RevokeDnsBindPermission( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/vmwareengine/v1/vmware_engine_connection.h b/google/cloud/vmwareengine/v1/vmware_engine_connection.h index 78043406a6e02..aeb22d11a0f27 100644 --- a/google/cloud/vmwareengine/v1/vmware_engine_connection.h +++ b/google/cloud/vmwareengine/v1/vmware_engine_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/vmwareengine/v1/internal/vmware_engine_retry_traits.h" #include "google/cloud/vmwareengine/v1/vmware_engine_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -201,12 +201,12 @@ class VmwareEngineConnection { request); virtual StatusOr CreatePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& request); virtual future> - CreatePrivateCloud(google::cloud::ExperimentalTag, + CreatePrivateCloud(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -215,12 +215,12 @@ class VmwareEngineConnection { request); virtual StatusOr UpdatePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request); virtual future> - UpdatePrivateCloud(google::cloud::ExperimentalTag, + UpdatePrivateCloud(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -229,12 +229,12 @@ class VmwareEngineConnection { request); virtual StatusOr DeletePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request); virtual future> - DeletePrivateCloud(google::cloud::ExperimentalTag, + DeletePrivateCloud(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -243,12 +243,12 @@ class VmwareEngineConnection { request); virtual StatusOr UndeletePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& request); virtual future> - UndeletePrivateCloud(google::cloud::ExperimentalTag, + UndeletePrivateCloud(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListClusters( @@ -262,11 +262,11 @@ class VmwareEngineConnection { google::cloud::vmwareengine::v1::CreateClusterRequest const& request); virtual StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateClusterRequest const& request); virtual future> - CreateCluster(google::cloud::ExperimentalTag, + CreateCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -274,11 +274,11 @@ class VmwareEngineConnection { google::cloud::vmwareengine::v1::UpdateClusterRequest const& request); virtual StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateClusterRequest const& request); virtual future> - UpdateCluster(google::cloud::ExperimentalTag, + UpdateCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -286,11 +286,11 @@ class VmwareEngineConnection { google::cloud::vmwareengine::v1::DeleteClusterRequest const& request); virtual StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteClusterRequest const& request); virtual future> - DeleteCluster(google::cloud::ExperimentalTag, + DeleteCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListNodes( @@ -319,12 +319,12 @@ class VmwareEngineConnection { request); virtual StatusOr CreateExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& request); virtual future> - CreateExternalAddress(google::cloud::ExperimentalTag, + CreateExternalAddress(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -333,12 +333,12 @@ class VmwareEngineConnection { request); virtual StatusOr UpdateExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& request); virtual future> - UpdateExternalAddress(google::cloud::ExperimentalTag, + UpdateExternalAddress(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -347,12 +347,12 @@ class VmwareEngineConnection { request); virtual StatusOr DeleteExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& request); virtual future> - DeleteExternalAddress(google::cloud::ExperimentalTag, + DeleteExternalAddress(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListSubnets( @@ -366,11 +366,11 @@ class VmwareEngineConnection { google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request); virtual StatusOr UpdateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request); virtual future> - UpdateSubnet(google::cloud::ExperimentalTag, + UpdateSubnet(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -388,12 +388,12 @@ class VmwareEngineConnection { request); virtual StatusOr CreateExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& request); virtual future> - CreateExternalAccessRule(google::cloud::ExperimentalTag, + CreateExternalAccessRule(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -402,12 +402,12 @@ class VmwareEngineConnection { request); virtual StatusOr UpdateExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& request); virtual future> - UpdateExternalAccessRule(google::cloud::ExperimentalTag, + UpdateExternalAccessRule(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -416,12 +416,12 @@ class VmwareEngineConnection { request); virtual StatusOr DeleteExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& request); virtual future> - DeleteExternalAccessRule(google::cloud::ExperimentalTag, + DeleteExternalAccessRule(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -438,12 +438,12 @@ class VmwareEngineConnection { request); virtual StatusOr CreateLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& request); virtual future> - CreateLoggingServer(google::cloud::ExperimentalTag, + CreateLoggingServer(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -452,12 +452,12 @@ class VmwareEngineConnection { request); virtual StatusOr UpdateLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& request); virtual future> - UpdateLoggingServer(google::cloud::ExperimentalTag, + UpdateLoggingServer(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -466,12 +466,12 @@ class VmwareEngineConnection { request); virtual StatusOr DeleteLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& request); virtual future> - DeleteLoggingServer(google::cloud::ExperimentalTag, + DeleteLoggingServer(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange ListNodeTypes( @@ -496,12 +496,12 @@ class VmwareEngineConnection { request); virtual StatusOr ResetNsxCredentials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& request); virtual future> - ResetNsxCredentials(google::cloud::ExperimentalTag, + ResetNsxCredentials(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -510,12 +510,12 @@ class VmwareEngineConnection { request); virtual StatusOr ResetVcenterCredentials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& request); virtual future> - ResetVcenterCredentials(google::cloud::ExperimentalTag, + ResetVcenterCredentials(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -528,12 +528,12 @@ class VmwareEngineConnection { request); virtual StatusOr UpdateDnsForwarding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& request); virtual future> - UpdateDnsForwarding(google::cloud::ExperimentalTag, + UpdateDnsForwarding(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -550,12 +550,12 @@ class VmwareEngineConnection { request); virtual StatusOr CreateNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& request); virtual future> - CreateNetworkPeering(google::cloud::ExperimentalTag, + CreateNetworkPeering(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -564,12 +564,12 @@ class VmwareEngineConnection { request); virtual StatusOr DeleteNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& request); virtual future> - DeleteNetworkPeering(google::cloud::ExperimentalTag, + DeleteNetworkPeering(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -578,12 +578,12 @@ class VmwareEngineConnection { request); virtual StatusOr UpdateNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& request); virtual future> - UpdateNetworkPeering(google::cloud::ExperimentalTag, + UpdateNetworkPeering(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -596,12 +596,12 @@ class VmwareEngineConnection { request); virtual StatusOr CreateHcxActivationKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& request); virtual future> - CreateHcxActivationKey(google::cloud::ExperimentalTag, + CreateHcxActivationKey(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -627,12 +627,12 @@ class VmwareEngineConnection { request); virtual StatusOr CreateNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& request); virtual future> - CreateNetworkPolicy(google::cloud::ExperimentalTag, + CreateNetworkPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -641,12 +641,12 @@ class VmwareEngineConnection { request); virtual StatusOr UpdateNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& request); virtual future> - UpdateNetworkPolicy(google::cloud::ExperimentalTag, + UpdateNetworkPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -655,12 +655,12 @@ class VmwareEngineConnection { request); virtual StatusOr DeleteNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& request); virtual future> - DeleteNetworkPolicy(google::cloud::ExperimentalTag, + DeleteNetworkPolicy(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -681,15 +681,14 @@ class VmwareEngineConnection { virtual StatusOr CreateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: CreateManagementDnsZoneBindingRequest const& request); virtual future< StatusOr> CreateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> @@ -699,15 +698,14 @@ class VmwareEngineConnection { virtual StatusOr UpdateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: UpdateManagementDnsZoneBindingRequest const& request); virtual future< StatusOr> UpdateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> DeleteManagementDnsZoneBinding( @@ -716,14 +714,13 @@ class VmwareEngineConnection { virtual StatusOr DeleteManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: DeleteManagementDnsZoneBindingRequest const& request); virtual future> DeleteManagementDnsZoneBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future< StatusOr> @@ -733,15 +730,14 @@ class VmwareEngineConnection { virtual StatusOr RepairManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: RepairManagementDnsZoneBindingRequest const& request); virtual future< StatusOr> RepairManagementDnsZoneBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); virtual future> CreateVmwareEngineNetwork( @@ -749,12 +745,12 @@ class VmwareEngineConnection { request); virtual StatusOr CreateVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& request); virtual future> - CreateVmwareEngineNetwork(google::cloud::ExperimentalTag, + CreateVmwareEngineNetwork(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -763,12 +759,12 @@ class VmwareEngineConnection { request); virtual StatusOr UpdateVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& request); virtual future> - UpdateVmwareEngineNetwork(google::cloud::ExperimentalTag, + UpdateVmwareEngineNetwork(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -777,12 +773,12 @@ class VmwareEngineConnection { request); virtual StatusOr DeleteVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& request); virtual future> - DeleteVmwareEngineNetwork(google::cloud::ExperimentalTag, + DeleteVmwareEngineNetwork(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -800,12 +796,12 @@ class VmwareEngineConnection { request); virtual StatusOr CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& request); virtual future> - CreatePrivateConnection(google::cloud::ExperimentalTag, + CreatePrivateConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -823,12 +819,12 @@ class VmwareEngineConnection { request); virtual StatusOr UpdatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& request); virtual future> - UpdatePrivateConnection(google::cloud::ExperimentalTag, + UpdatePrivateConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -837,12 +833,12 @@ class VmwareEngineConnection { request); virtual StatusOr DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& request); virtual future> - DeletePrivateConnection(google::cloud::ExperimentalTag, + DeletePrivateConnection(ExperimentalTag, google::longrunning::Operation const& operation); virtual StreamRange @@ -856,12 +852,12 @@ class VmwareEngineConnection { request); virtual StatusOr GrantDnsBindPermission( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& request); virtual future> - GrantDnsBindPermission(google::cloud::ExperimentalTag, + GrantDnsBindPermission(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -875,12 +871,12 @@ class VmwareEngineConnection { request); virtual StatusOr RevokeDnsBindPermission( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& request); virtual future> - RevokeDnsBindPermission(google::cloud::ExperimentalTag, + RevokeDnsBindPermission(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.cc b/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.cc index e495df330c432..9dbd5593b8029 100644 --- a/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.cc +++ b/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.cc @@ -48,7 +48,7 @@ VpcAccessServiceTracingConnection::CreateConnector( google::cloud::vpcaccess::v1::CreateConnectorRequest const& request) { auto span = internal::MakeSpan( "vpcaccess_v1::VpcAccessServiceConnection::CreateConnector"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateConnector(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ VpcAccessServiceTracingConnection::DeleteConnector( google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request) { auto span = internal::MakeSpan( "vpcaccess_v1::VpcAccessServiceConnection::DeleteConnector"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteConnector(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/vpcaccess/v1/vpc_access_connection.cc b/google/cloud/vpcaccess/v1/vpc_access_connection.cc index 67efd78a3a789..686b9e3d85811 100644 --- a/google/cloud/vpcaccess/v1/vpc_access_connection.cc +++ b/google/cloud/vpcaccess/v1/vpc_access_connection.cc @@ -48,7 +48,7 @@ VpcAccessServiceConnection::CreateConnector( StatusOr VpcAccessServiceConnection::CreateConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vpcaccess::v1::CreateConnectorRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -56,7 +56,7 @@ VpcAccessServiceConnection::CreateConnector( future> VpcAccessServiceConnection::CreateConnector( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ VpcAccessServiceConnection::DeleteConnector( StatusOr VpcAccessServiceConnection::DeleteConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vpcaccess::v1::DeleteConnectorRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ VpcAccessServiceConnection::DeleteConnector( future> VpcAccessServiceConnection::DeleteConnector( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); diff --git a/google/cloud/vpcaccess/v1/vpc_access_connection.h b/google/cloud/vpcaccess/v1/vpc_access_connection.h index 74f57148a19bd..c7bb05da0b022 100644 --- a/google/cloud/vpcaccess/v1/vpc_access_connection.h +++ b/google/cloud/vpcaccess/v1/vpc_access_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/vpcaccess/v1/internal/vpc_access_retry_traits.h" #include "google/cloud/vpcaccess/v1/vpc_access_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -195,11 +195,11 @@ class VpcAccessServiceConnection { google::cloud::vpcaccess::v1::CreateConnectorRequest const& request); virtual StatusOr CreateConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vpcaccess::v1::CreateConnectorRequest const& request); virtual future> - CreateConnector(google::cloud::ExperimentalTag, + CreateConnector(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetConnector( @@ -213,11 +213,11 @@ class VpcAccessServiceConnection { google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request); virtual StatusOr DeleteConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request); virtual future> - DeleteConnector(google::cloud::ExperimentalTag, + DeleteConnector(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.cc b/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.cc index cc3d0982d48dc..0e41e04afa923 100644 --- a/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.cc +++ b/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.cc @@ -83,7 +83,7 @@ WebRiskServiceTracingConnection::SubmitUri( google::cloud::webrisk::v1::SubmitUriRequest const& request) { auto span = internal::MakeSpan("webrisk_v1::WebRiskServiceConnection::SubmitUri"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->SubmitUri(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/webrisk/v1/web_risk_connection.cc b/google/cloud/webrisk/v1/web_risk_connection.cc index 355f08cff5456..a7682e5084df1 100644 --- a/google/cloud/webrisk/v1/web_risk_connection.cc +++ b/google/cloud/webrisk/v1/web_risk_connection.cc @@ -70,14 +70,14 @@ WebRiskServiceConnection::SubmitUri( } StatusOr WebRiskServiceConnection::SubmitUri( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::webrisk::v1::SubmitUriRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -WebRiskServiceConnection::SubmitUri(google::cloud::ExperimentalTag, +WebRiskServiceConnection::SubmitUri(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/webrisk/v1/web_risk_connection.h b/google/cloud/webrisk/v1/web_risk_connection.h index 11d5f74021998..7a37a3d721074 100644 --- a/google/cloud/webrisk/v1/web_risk_connection.h +++ b/google/cloud/webrisk/v1/web_risk_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/webrisk/v1/internal/web_risk_retry_traits.h" #include "google/cloud/webrisk/v1/web_risk_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -203,12 +203,11 @@ class WebRiskServiceConnection { google::cloud::webrisk::v1::SubmitUriRequest const& request); virtual StatusOr SubmitUri( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::webrisk::v1::SubmitUriRequest const& request); virtual future> SubmitUri( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation); + ExperimentalTag, google::longrunning::Operation const& operation); }; /** diff --git a/google/cloud/websecurityscanner/v1/web_security_scanner_connection.h b/google/cloud/websecurityscanner/v1/web_security_scanner_connection.h index 1d4ec7d60077b..a4fb63e946a5d 100644 --- a/google/cloud/websecurityscanner/v1/web_security_scanner_connection.h +++ b/google/cloud/websecurityscanner/v1/web_security_scanner_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/websecurityscanner/v1/internal/web_security_scanner_retry_traits.h" #include "google/cloud/websecurityscanner/v1/web_security_scanner_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/workflows/executions/v1/executions_connection.h b/google/cloud/workflows/executions/v1/executions_connection.h index 30e4c64842c28..7af2191793036 100644 --- a/google/cloud/workflows/executions/v1/executions_connection.h +++ b/google/cloud/workflows/executions/v1/executions_connection.h @@ -21,7 +21,6 @@ #include "google/cloud/workflows/executions/v1/executions_connection_idempotency_policy.h" #include "google/cloud/workflows/executions/v1/internal/executions_retry_traits.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/internal/retry_policy_impl.h" diff --git a/google/cloud/workflows/v1/internal/workflows_tracing_connection.cc b/google/cloud/workflows/v1/internal/workflows_tracing_connection.cc index 01b3a3e81574c..53dd23c713257 100644 --- a/google/cloud/workflows/v1/internal/workflows_tracing_connection.cc +++ b/google/cloud/workflows/v1/internal/workflows_tracing_connection.cc @@ -68,7 +68,7 @@ WorkflowsTracingConnection::CreateWorkflow( google::cloud::workflows::v1::CreateWorkflowRequest const& request) { auto span = internal::MakeSpan("workflows_v1::WorkflowsConnection::CreateWorkflow"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateWorkflow(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -101,7 +101,7 @@ WorkflowsTracingConnection::DeleteWorkflow( google::cloud::workflows::v1::DeleteWorkflowRequest const& request) { auto span = internal::MakeSpan("workflows_v1::WorkflowsConnection::DeleteWorkflow"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteWorkflow(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -134,7 +134,7 @@ WorkflowsTracingConnection::UpdateWorkflow( google::cloud::workflows::v1::UpdateWorkflowRequest const& request) { auto span = internal::MakeSpan("workflows_v1::WorkflowsConnection::UpdateWorkflow"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateWorkflow(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/workflows/v1/workflows_connection.cc b/google/cloud/workflows/v1/workflows_connection.cc index 6ed736f9e6c14..d27eed68f9d67 100644 --- a/google/cloud/workflows/v1/workflows_connection.cc +++ b/google/cloud/workflows/v1/workflows_connection.cc @@ -61,14 +61,14 @@ WorkflowsConnection::CreateWorkflow( } StatusOr WorkflowsConnection::CreateWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::CreateWorkflowRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -WorkflowsConnection::CreateWorkflow(google::cloud::ExperimentalTag, +WorkflowsConnection::CreateWorkflow(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -84,14 +84,14 @@ WorkflowsConnection::DeleteWorkflow( } StatusOr WorkflowsConnection::DeleteWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::DeleteWorkflowRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -WorkflowsConnection::DeleteWorkflow(google::cloud::ExperimentalTag, +WorkflowsConnection::DeleteWorkflow(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( @@ -107,14 +107,14 @@ WorkflowsConnection::UpdateWorkflow( } StatusOr WorkflowsConnection::UpdateWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::UpdateWorkflowRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -WorkflowsConnection::UpdateWorkflow(google::cloud::ExperimentalTag, +WorkflowsConnection::UpdateWorkflow(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/workflows/v1/workflows_connection.h b/google/cloud/workflows/v1/workflows_connection.h index c7e0b2323c340..13cc51456134b 100644 --- a/google/cloud/workflows/v1/workflows_connection.h +++ b/google/cloud/workflows/v1/workflows_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/workflows/v1/internal/workflows_retry_traits.h" #include "google/cloud/workflows/v1/workflows_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -197,11 +197,11 @@ class WorkflowsConnection { google::cloud::workflows::v1::CreateWorkflowRequest const& request); virtual StatusOr CreateWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::CreateWorkflowRequest const& request); virtual future> - CreateWorkflow(google::cloud::ExperimentalTag, + CreateWorkflow(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -209,11 +209,11 @@ class WorkflowsConnection { google::cloud::workflows::v1::DeleteWorkflowRequest const& request); virtual StatusOr DeleteWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::DeleteWorkflowRequest const& request); virtual future> - DeleteWorkflow(google::cloud::ExperimentalTag, + DeleteWorkflow(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -221,11 +221,11 @@ class WorkflowsConnection { google::cloud::workflows::v1::UpdateWorkflowRequest const& request); virtual StatusOr UpdateWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::UpdateWorkflowRequest const& request); virtual future> - UpdateWorkflow(google::cloud::ExperimentalTag, + UpdateWorkflow(ExperimentalTag, google::longrunning::Operation const& operation); }; diff --git a/google/cloud/workstations/v1/internal/workstations_tracing_connection.cc b/google/cloud/workstations/v1/internal/workstations_tracing_connection.cc index 20d30e82197aa..662a0cfe3fb44 100644 --- a/google/cloud/workstations/v1/internal/workstations_tracing_connection.cc +++ b/google/cloud/workstations/v1/internal/workstations_tracing_connection.cc @@ -73,7 +73,7 @@ WorkstationsTracingConnection::CreateWorkstationCluster( request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::CreateWorkstationCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateWorkstationCluster( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -109,7 +109,7 @@ WorkstationsTracingConnection::UpdateWorkstationCluster( request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::UpdateWorkstationCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateWorkstationCluster( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -145,7 +145,7 @@ WorkstationsTracingConnection::DeleteWorkstationCluster( request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::DeleteWorkstationCluster"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteWorkstationCluster( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -216,7 +216,7 @@ WorkstationsTracingConnection::CreateWorkstationConfig( request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::CreateWorkstationConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateWorkstationConfig( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -252,7 +252,7 @@ WorkstationsTracingConnection::UpdateWorkstationConfig( request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::UpdateWorkstationConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateWorkstationConfig( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -288,7 +288,7 @@ WorkstationsTracingConnection::DeleteWorkstationConfig( request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::DeleteWorkstationConfig"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->DeleteWorkstationConfig( google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -354,7 +354,7 @@ WorkstationsTracingConnection::CreateWorkstation( google::cloud::workstations::v1::CreateWorkstationRequest const& request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::CreateWorkstation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->CreateWorkstation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -387,7 +387,7 @@ WorkstationsTracingConnection::UpdateWorkstation( google::cloud::workstations::v1::UpdateWorkstationRequest const& request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::UpdateWorkstation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->UpdateWorkstation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -420,7 +420,7 @@ WorkstationsTracingConnection::DeleteWorkstation( google::cloud::workstations::v1::DeleteWorkstationRequest const& request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::DeleteWorkstation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->DeleteWorkstation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -453,7 +453,7 @@ WorkstationsTracingConnection::StartWorkstation( google::cloud::workstations::v1::StartWorkstationRequest const& request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::StartWorkstation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StartWorkstation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); @@ -486,7 +486,7 @@ WorkstationsTracingConnection::StopWorkstation( google::cloud::workstations::v1::StopWorkstationRequest const& request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::StopWorkstation"); - internal::OTelScope scope(span); + opentelemetry::trace::Scope scope(span); return internal::EndSpan( *span, child_->StopWorkstation(google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); diff --git a/google/cloud/workstations/v1/workstations_connection.cc b/google/cloud/workstations/v1/workstations_connection.cc index a6ac340881fa0..a35a0b6bf9867 100644 --- a/google/cloud/workstations/v1/workstations_connection.cc +++ b/google/cloud/workstations/v1/workstations_connection.cc @@ -62,7 +62,7 @@ WorkstationsConnection::CreateWorkstationCluster( StatusOr WorkstationsConnection::CreateWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -70,7 +70,7 @@ WorkstationsConnection::CreateWorkstationCluster( future> WorkstationsConnection::CreateWorkstationCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -86,7 +86,7 @@ WorkstationsConnection::UpdateWorkstationCluster( StatusOr WorkstationsConnection::UpdateWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -94,7 +94,7 @@ WorkstationsConnection::UpdateWorkstationCluster( future> WorkstationsConnection::UpdateWorkstationCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -110,7 +110,7 @@ WorkstationsConnection::DeleteWorkstationCluster( StatusOr WorkstationsConnection::DeleteWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationClusterRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -118,7 +118,7 @@ WorkstationsConnection::DeleteWorkstationCluster( future> WorkstationsConnection::DeleteWorkstationCluster( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -156,7 +156,7 @@ WorkstationsConnection::CreateWorkstationConfig( StatusOr WorkstationsConnection::CreateWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -164,7 +164,7 @@ WorkstationsConnection::CreateWorkstationConfig( future> WorkstationsConnection::CreateWorkstationConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -180,7 +180,7 @@ WorkstationsConnection::UpdateWorkstationConfig( StatusOr WorkstationsConnection::UpdateWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -188,7 +188,7 @@ WorkstationsConnection::UpdateWorkstationConfig( future> WorkstationsConnection::UpdateWorkstationConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -204,7 +204,7 @@ WorkstationsConnection::DeleteWorkstationConfig( StatusOr WorkstationsConnection::DeleteWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationConfigRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -212,7 +212,7 @@ WorkstationsConnection::DeleteWorkstationConfig( future> WorkstationsConnection::DeleteWorkstationConfig( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -250,7 +250,7 @@ WorkstationsConnection::CreateWorkstation( StatusOr WorkstationsConnection::CreateWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -258,7 +258,7 @@ WorkstationsConnection::CreateWorkstation( future> WorkstationsConnection::CreateWorkstation( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -274,7 +274,7 @@ WorkstationsConnection::UpdateWorkstation( StatusOr WorkstationsConnection::UpdateWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -282,7 +282,7 @@ WorkstationsConnection::UpdateWorkstation( future> WorkstationsConnection::UpdateWorkstation( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -298,7 +298,7 @@ WorkstationsConnection::DeleteWorkstation( StatusOr WorkstationsConnection::DeleteWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -306,7 +306,7 @@ WorkstationsConnection::DeleteWorkstation( future> WorkstationsConnection::DeleteWorkstation( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -322,7 +322,7 @@ WorkstationsConnection::StartWorkstation( StatusOr WorkstationsConnection::StartWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::StartWorkstationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); @@ -330,7 +330,7 @@ WorkstationsConnection::StartWorkstation( future> WorkstationsConnection::StartWorkstation( - google::cloud::ExperimentalTag, google::longrunning::Operation const&) { + ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( Status(StatusCode::kUnimplemented, "not implemented")); @@ -346,14 +346,14 @@ WorkstationsConnection::StopWorkstation( StatusOr WorkstationsConnection::StopWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::StopWorkstationRequest const&) { return StatusOr( Status(StatusCode::kUnimplemented, "not implemented")); } future> -WorkstationsConnection::StopWorkstation(google::cloud::ExperimentalTag, +WorkstationsConnection::StopWorkstation(ExperimentalTag, google::longrunning::Operation const&) { return google::cloud::make_ready_future< StatusOr>( diff --git a/google/cloud/workstations/v1/workstations_connection.h b/google/cloud/workstations/v1/workstations_connection.h index 50d3910aca9ab..b1cf87d3e61b3 100644 --- a/google/cloud/workstations/v1/workstations_connection.h +++ b/google/cloud/workstations/v1/workstations_connection.h @@ -21,11 +21,11 @@ #include "google/cloud/workstations/v1/internal/workstations_retry_traits.h" #include "google/cloud/workstations/v1/workstations_connection_idempotency_policy.h" -#include "google/cloud/await_tag.h" #include "google/cloud/backoff_policy.h" #include "google/cloud/experimental_tag.h" #include "google/cloud/future.h" #include "google/cloud/internal/retry_policy_impl.h" +#include "google/cloud/no_await_tag.h" #include "google/cloud/options.h" #include "google/cloud/polling_policy.h" #include "google/cloud/status_or.h" @@ -202,12 +202,12 @@ class WorkstationsConnection { request); virtual StatusOr CreateWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationClusterRequest const& request); virtual future> - CreateWorkstationCluster(google::cloud::ExperimentalTag, + CreateWorkstationCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -216,12 +216,12 @@ class WorkstationsConnection { request); virtual StatusOr UpdateWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& request); virtual future> - UpdateWorkstationCluster(google::cloud::ExperimentalTag, + UpdateWorkstationCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -230,12 +230,12 @@ class WorkstationsConnection { request); virtual StatusOr DeleteWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& request); virtual future> - DeleteWorkstationCluster(google::cloud::ExperimentalTag, + DeleteWorkstationCluster(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr @@ -258,12 +258,12 @@ class WorkstationsConnection { request); virtual StatusOr CreateWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationConfigRequest const& request); virtual future> - CreateWorkstationConfig(google::cloud::ExperimentalTag, + CreateWorkstationConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -272,12 +272,12 @@ class WorkstationsConnection { request); virtual StatusOr UpdateWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& request); virtual future> - UpdateWorkstationConfig(google::cloud::ExperimentalTag, + UpdateWorkstationConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -286,12 +286,12 @@ class WorkstationsConnection { request); virtual StatusOr DeleteWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& request); virtual future> - DeleteWorkstationConfig(google::cloud::ExperimentalTag, + DeleteWorkstationConfig(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr GetWorkstation( @@ -310,11 +310,11 @@ class WorkstationsConnection { google::cloud::workstations::v1::CreateWorkstationRequest const& request); virtual StatusOr CreateWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationRequest const& request); virtual future> - CreateWorkstation(google::cloud::ExperimentalTag, + CreateWorkstation(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -322,11 +322,11 @@ class WorkstationsConnection { google::cloud::workstations::v1::UpdateWorkstationRequest const& request); virtual StatusOr UpdateWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationRequest const& request); virtual future> - UpdateWorkstation(google::cloud::ExperimentalTag, + UpdateWorkstation(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -334,11 +334,11 @@ class WorkstationsConnection { google::cloud::workstations::v1::DeleteWorkstationRequest const& request); virtual StatusOr DeleteWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationRequest const& request); virtual future> - DeleteWorkstation(google::cloud::ExperimentalTag, + DeleteWorkstation(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -346,11 +346,11 @@ class WorkstationsConnection { google::cloud::workstations::v1::StartWorkstationRequest const& request); virtual StatusOr StartWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::StartWorkstationRequest const& request); virtual future> - StartWorkstation(google::cloud::ExperimentalTag, + StartWorkstation(ExperimentalTag, google::longrunning::Operation const& operation); virtual future> @@ -358,11 +358,11 @@ class WorkstationsConnection { google::cloud::workstations::v1::StopWorkstationRequest const& request); virtual StatusOr StopWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::StopWorkstationRequest const& request); virtual future> - StopWorkstation(google::cloud::ExperimentalTag, + StopWorkstation(ExperimentalTag, google::longrunning::Operation const& operation); virtual StatusOr From 34797ef82335ea40830535b193cc6cb371c663d7 Mon Sep 17 00:00:00 2001 From: Scott Hart Date: Tue, 25 Jun 2024 12:34:12 -0400 Subject: [PATCH 09/11] really remove the namespace qualifier for tags --- .../internal/connection_impl_generator.cc | 14 ++++++------ .../internal/mock_connection_generator.cc | 4 ++-- generator/internal/sample_generator.cc | 22 +++++++++---------- .../internal/tracing_connection_generator.cc | 18 +++++++-------- 4 files changed, 29 insertions(+), 29 deletions(-) diff --git a/generator/internal/connection_impl_generator.cc b/generator/internal/connection_impl_generator.cc index fa700d2339296..af0512d299268 100644 --- a/generator/internal/connection_impl_generator.cc +++ b/generator/internal/connection_impl_generator.cc @@ -284,11 +284,11 @@ std::string ConnectionImplGenerator::MethodDeclaration( $method_name$($request_type$ const& request) override; StatusOr<$longrunning_operation_type$> - $method_name$(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + $method_name$(ExperimentalTag, NoAwaitlTag, $request_type$ const& request) override; future - $method_name$(google::cloud::ExperimentalTag, + $method_name$(ExperimentalTag, $longrunning_operation_type$ const& operation) override; )"""; } @@ -298,11 +298,11 @@ std::string ConnectionImplGenerator::MethodDeclaration( $method_name$($request_type$ const& request) override; StatusOr<$longrunning_operation_type$> - $method_name$(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + $method_name$(ExperimentalTag, NoAwaitlTag, $request_type$ const& request) override; future> - $method_name$(google::cloud::ExperimentalTag, + $method_name$(ExperimentalTag, $longrunning_operation_type$ const& operation) override; )"""; } @@ -490,8 +490,8 @@ StreamRange<$range_output_type$> // TODO(#14344): Remove experimental tag. std::string start_function = absl::StrCat("StatusOr<$longrunning_operation_type$>", R"""( -$connection_class_name$Impl::$method_name$(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, $request_type$ const& request) { +$connection_class_name$Impl::$method_name$(ExperimentalTag, + NoAwaitlTag, $request_type$ const& request) { auto current = google::cloud::internal::SaveCurrentOptions();)""", R"""( return google::cloud::internal::RetryLoop( @@ -509,7 +509,7 @@ StreamRange<$range_output_type$> // TODO(#14344): Remove experimental tag. std::string await_function = absl::StrCat(return_fragment, R"""( -$connection_class_name$Impl::$method_name$(google::cloud::ExperimentalTag, +$connection_class_name$Impl::$method_name$(ExperimentalTag, $longrunning_operation_type$ const& operation) { auto current = google::cloud::internal::SaveCurrentOptions();)""", R"""( diff --git a/generator/internal/mock_connection_generator.cc b/generator/internal/mock_connection_generator.cc index e69dfafeb4a06..368801df3d2c3 100644 --- a/generator/internal/mock_connection_generator.cc +++ b/generator/internal/mock_connection_generator.cc @@ -115,7 +115,7 @@ class $mock_connection_class_name$ : public $product_namespace$::$connection_cla " MOCK_METHOD(Status,\n", " MOCK_METHOD(StatusOr<$longrunning_operation_type$>,\n"}, // TODO(#14344): Remove experimental tag. - {" $method_name$, (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag,\n" + {" $method_name$, (ExperimentalTag, NoAwaitTag,\n" " $request_type$ const& request), (override));\n\n"}, // clang-format on {IsResponseTypeEmpty, @@ -123,7 +123,7 @@ class $mock_connection_class_name$ : public $product_namespace$::$connection_cla " MOCK_METHOD(future,\n", " MOCK_METHOD(future>,\n"}, // TODO(#14344): Remove experimental tag. - {" $method_name$, (google::cloud::ExperimentalTag,\n" + {" $method_name$, (ExperimentalTag,\n" " $longrunning_operation_type$ const& operation), (override));\n"} // clang-format on }, diff --git a/generator/internal/sample_generator.cc b/generator/internal/sample_generator.cc index 2f170a53d3a54..40c45182b051a 100644 --- a/generator/internal/sample_generator.cc +++ b/generator/internal/sample_generator.cc @@ -74,7 +74,7 @@ void SetClientEndpoint(std::vector const& argv) { auto options = google::cloud::Options{}.set( "private.googleapis.com"); auto client = google::cloud::$product_namespace$::$client_class_name$()"""); - if (IsExperimental()) HeaderPrint("google::cloud::ExperimentalTag{},"); + if (IsExperimental()) HeaderPrint("ExperimentalTag{},"); if (HasGenerateGrpcTransport()) { HeaderPrint(R"""( google::cloud::$product_namespace$::Make$connection_class_name$()"""); @@ -82,7 +82,7 @@ void SetClientEndpoint(std::vector const& argv) { HeaderPrint(R"""( google::cloud::$product_namespace$::Make$connection_class_name$Rest()"""); } - if (IsExperimental()) HeaderPrint("google::cloud::ExperimentalTag{},"); + if (IsExperimental()) HeaderPrint("ExperimentalTag{},"); switch (endpoint_location_style) { case ServiceConfiguration::LOCATION_DEPENDENT: HeaderPrint(R"""("unused", )"""); @@ -129,7 +129,7 @@ void SetRetryPolicy(std::vector const& argv) { HeaderPrint(R"""( auto connection = google::cloud::$product_namespace$::Make$connection_class_name$Rest()"""); } - if (IsExperimental()) HeaderPrint("google::cloud::ExperimentalTag{}, "); + if (IsExperimental()) HeaderPrint("ExperimentalTag{}, "); switch (endpoint_location_style) { case ServiceConfiguration::LOCATION_DEPENDENT: HeaderPrint(R"""("location-unused-in-this-example", )"""); @@ -144,14 +144,14 @@ void SetRetryPolicy(std::vector const& argv) { // c1 and c2 share the same retry policies auto c1 = google::cloud::$product_namespace$::$client_class_name$( - google::cloud::ExperimentalTag{}, connection); + ExperimentalTag{}, connection); auto c2 = google::cloud::$product_namespace$::$client_class_name$( - google::cloud::ExperimentalTag{}, connection); + ExperimentalTag{}, connection); // You can override any of the policies in a new client. This new client // will share the policies from c1 (or c2) *except* for the retry policy. auto c3 = google::cloud::$product_namespace$::$client_class_name$( - google::cloud::ExperimentalTag{}, connection, + ExperimentalTag{}, connection, google::cloud::Options{}.set( google::cloud::$product_namespace$::$limited_time_retry_policy_name$(std::chrono::minutes(5)).clone())); @@ -218,7 +218,7 @@ void SetPollingPolicy(std::vector const& argv) { HeaderPrint(R"""( auto connection = google::cloud::$product_namespace$::Make$connection_class_name$Rest()"""); } - if (IsExperimental()) HeaderPrint("google::cloud::ExperimentalTag{}, "); + if (IsExperimental()) HeaderPrint("ExperimentalTag{}, "); switch (endpoint_location_style) { case ServiceConfiguration::LOCATION_DEPENDENT: HeaderPrint(R"""("location-unused-in-this-example", )"""); @@ -233,9 +233,9 @@ void SetPollingPolicy(std::vector const& argv) { // c1 and c2 share the same polling policies. auto c1 = google::cloud::$product_namespace$::$client_class_name$( - google::cloud::ExperimentalTag{}, connection); + ExperimentalTag{}, connection); auto c2 = google::cloud::$product_namespace$::$client_class_name$( - google::cloud::ExperimentalTag{}, connection); + ExperimentalTag{}, connection); //! [set-polling-policy] } )"""); @@ -263,7 +263,7 @@ void WithServiceAccount(std::vector const& argv) { google::cloud::Options{}.set( google::cloud::MakeServiceAccountCredentials(contents)); return google::cloud::$product_namespace$::$client_class_name$()"""); - if (IsExperimental()) HeaderPrint("google::cloud::ExperimentalTag{},"); + if (IsExperimental()) HeaderPrint("ExperimentalTag{},"); if (HasGenerateGrpcTransport()) { HeaderPrint(R"""( google::cloud::$product_namespace$::Make$connection_class_name$()"""); @@ -271,7 +271,7 @@ void WithServiceAccount(std::vector const& argv) { HeaderPrint(R"""( google::cloud::$product_namespace$::Make$connection_class_name$Rest()"""); } - if (IsExperimental()) HeaderPrint("google::cloud::ExperimentalTag{},"); + if (IsExperimental()) HeaderPrint("ExperimentalTag{},"); switch (endpoint_location_style) { case ServiceConfiguration::LOCATION_DEPENDENT: HeaderPrint(R"""("us-west1" /* regional service region */, )"""); diff --git a/generator/internal/tracing_connection_generator.cc b/generator/internal/tracing_connection_generator.cc index 1b5f8d61e9009..57e6d898b103d 100644 --- a/generator/internal/tracing_connection_generator.cc +++ b/generator/internal/tracing_connection_generator.cc @@ -204,11 +204,11 @@ std::string TracingConnectionGenerator::MethodDeclaration( $method_name$($request_type$ const& request) override; StatusOr<$longrunning_operation_type$> - $method_name$(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + $method_name$(ExperimentalTag, NoAwaitTag, $request_type$ const& request) override; future - $method_name$(google::cloud::ExperimentalTag, + $method_name$(ExperimentalTag, $longrunning_operation_type$ const& operation) override; )"""; } @@ -218,11 +218,11 @@ std::string TracingConnectionGenerator::MethodDeclaration( $method_name$($request_type$ const& request) override; StatusOr<$longrunning_operation_type$> - $method_name$(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + $method_name$(ExperimentalTag, NoAwaitTag, $request_type$ const& request) override; future> - $method_name$(google::cloud::ExperimentalTag, + $method_name$(ExperimentalTag, $longrunning_operation_type$ const& operation) override; )"""; } @@ -320,13 +320,13 @@ future>)""", StatusOr<$longrunning_operation_type$>)""", // TODO(#14344): Remove experimental tag. R"""( -$tracing_connection_class_name$::$method_name$(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, $request_type$ const& request) { +$tracing_connection_class_name$::$method_name$(ExperimentalTag, + NoAwaitTag, $request_type$ const& request) { auto span = internal::MakeSpan( "$product_namespace$::$connection_class_name$::$method_name$"); opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->$method_name$( - google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); + ExperimentalTag{}, NoAwaitTag{}, request)); } )""", IsResponseTypeEmpty(method) ? @@ -337,13 +337,13 @@ future)""" future>)""", // TODO(#14344): Remove experimental tag. R"""( -$tracing_connection_class_name$::$method_name$(google::cloud::ExperimentalTag, +$tracing_connection_class_name$::$method_name$(ExperimentalTag, $longrunning_operation_type$ const& operation) { auto span = internal::MakeSpan( "$product_namespace$::$connection_class_name$::$method_name$"); internal::OTelScope scope(span); return internal::EndSpan(std::move(span), - child_->$method_name$(google::cloud::ExperimentalTag{}, operation)); + child_->$method_name$(ExperimentalTag{}, operation)); } )"""); } From 81ef80b503182f0f3a1a2d9e54be9301414a0d7b Mon Sep 17 00:00:00 2001 From: Scott Hart Date: Tue, 25 Jun 2024 12:43:17 -0400 Subject: [PATCH 10/11] regenerated code --- .../golden_thing_admin_connection_impl.cc | 30 +- .../golden_thing_admin_connection_impl.h | 20 +- .../golden_thing_admin_tracing_connection.cc | 50 +- .../golden_thing_admin_tracing_connection.h | 20 +- .../v1/internal/request_id_connection_impl.cc | 6 +- .../v1/internal/request_id_connection_impl.h | 4 +- .../internal/request_id_tracing_connection.cc | 10 +- .../internal/request_id_tracing_connection.h | 4 +- .../mock_golden_thing_admin_connection.h | 20 +- .../v1/mocks/mock_request_id_connection.h | 4 +- .../access_context_manager_connection_impl.cc | 75 +-- .../access_context_manager_connection_impl.h | 60 +- ...cess_context_manager_tracing_connection.cc | 220 +++---- ...ccess_context_manager_tracing_connection.h | 60 +- .../mock_access_context_manager_connection.h | 68 +- .../v1/internal/dataset_connection_impl.cc | 40 +- .../v1/internal/dataset_connection_impl.h | 32 +- .../v1/internal/dataset_tracing_connection.cc | 112 ++-- .../v1/internal/dataset_tracing_connection.h | 32 +- ...eployment_resource_pool_connection_impl.cc | 10 +- ...deployment_resource_pool_connection_impl.h | 8 +- ...oyment_resource_pool_tracing_connection.cc | 34 +- ...loyment_resource_pool_tracing_connection.h | 8 +- .../v1/internal/endpoint_connection_impl.cc | 25 +- .../v1/internal/endpoint_connection_impl.h | 20 +- .../internal/endpoint_tracing_connection.cc | 62 +- .../v1/internal/endpoint_tracing_connection.h | 20 +- ...ture_online_store_admin_connection_impl.cc | 30 +- ...ature_online_store_admin_connection_impl.h | 24 +- ...e_online_store_admin_tracing_connection.cc | 84 ++- ...re_online_store_admin_tracing_connection.h | 24 +- .../feature_registry_connection_impl.cc | 30 +- .../feature_registry_connection_impl.h | 24 +- .../feature_registry_tracing_connection.cc | 81 +-- .../feature_registry_tracing_connection.h | 24 +- .../internal/featurestore_connection_impl.cc | 60 +- .../internal/featurestore_connection_impl.h | 48 +- .../featurestore_tracing_connection.cc | 164 ++--- .../featurestore_tracing_connection.h | 48 +- .../v1/internal/index_connection_impl.cc | 15 +- .../v1/internal/index_connection_impl.h | 12 +- .../index_endpoint_connection_impl.cc | 25 +- .../internal/index_endpoint_connection_impl.h | 20 +- .../index_endpoint_tracing_connection.cc | 68 +- .../index_endpoint_tracing_connection.h | 20 +- .../v1/internal/index_tracing_connection.cc | 39 +- .../v1/internal/index_tracing_connection.h | 12 +- .../v1/internal/job_connection_impl.cc | 35 +- .../v1/internal/job_connection_impl.h | 28 +- .../v1/internal/job_tracing_connection.cc | 107 ++-- .../v1/internal/job_tracing_connection.h | 28 +- .../v1/internal/metadata_connection_impl.cc | 40 +- .../v1/internal/metadata_connection_impl.h | 32 +- .../internal/metadata_tracing_connection.cc | 98 ++- .../v1/internal/metadata_tracing_connection.h | 32 +- .../v1/internal/migration_connection_impl.cc | 5 +- .../v1/internal/migration_connection_impl.h | 4 +- .../internal/migration_tracing_connection.cc | 16 +- .../internal/migration_tracing_connection.h | 4 +- .../v1/internal/model_connection_impl.cc | 30 +- .../v1/internal/model_connection_impl.h | 24 +- .../v1/internal/model_tracing_connection.cc | 82 +-- .../v1/internal/model_tracing_connection.h | 24 +- .../v1/internal/notebook_connection_impl.cc | 30 +- .../v1/internal/notebook_connection_impl.h | 24 +- .../internal/notebook_tracing_connection.cc | 98 ++- .../v1/internal/notebook_tracing_connection.h | 24 +- .../persistent_resource_connection_impl.cc | 20 +- .../persistent_resource_connection_impl.h | 16 +- .../persistent_resource_tracing_connection.cc | 64 +- .../persistent_resource_tracing_connection.h | 16 +- .../v1/internal/pipeline_connection_impl.cc | 20 +- .../v1/internal/pipeline_connection_impl.h | 16 +- .../internal/pipeline_tracing_connection.cc | 60 +- .../v1/internal/pipeline_tracing_connection.h | 16 +- .../v1/internal/schedule_connection_impl.cc | 5 +- .../v1/internal/schedule_connection_impl.h | 4 +- .../internal/schedule_tracing_connection.cc | 11 +- .../v1/internal/schedule_tracing_connection.h | 4 +- .../specialist_pool_connection_impl.cc | 15 +- .../specialist_pool_connection_impl.h | 12 +- .../specialist_pool_tracing_connection.cc | 48 +- .../specialist_pool_tracing_connection.h | 12 +- .../internal/tensorboard_connection_impl.cc | 30 +- .../v1/internal/tensorboard_connection_impl.h | 24 +- .../tensorboard_tracing_connection.cc | 84 ++- .../internal/tensorboard_tracing_connection.h | 24 +- .../v1/internal/vizier_connection_impl.cc | 10 +- .../v1/internal/vizier_connection_impl.h | 8 +- .../v1/internal/vizier_tracing_connection.cc | 30 +- .../v1/internal/vizier_tracing_connection.h | 8 +- .../v1/mocks/mock_dataset_connection.h | 37 +- ...mock_deployment_resource_pool_connection.h | 10 +- .../v1/mocks/mock_endpoint_connection.h | 24 +- ...ck_feature_online_store_admin_connection.h | 28 +- .../mocks/mock_feature_registry_connection.h | 26 +- .../v1/mocks/mock_featurestore_connection.h | 56 +- .../v1/mocks/mock_index_connection.h | 13 +- .../v1/mocks/mock_index_endpoint_connection.h | 24 +- .../aiplatform/v1/mocks/mock_job_connection.h | 34 +- .../v1/mocks/mock_metadata_connection.h | 39 +- .../v1/mocks/mock_migration_connection.h | 5 +- .../v1/mocks/mock_model_connection.h | 30 +- .../v1/mocks/mock_notebook_connection.h | 28 +- .../mock_persistent_resource_connection.h | 20 +- .../v1/mocks/mock_pipeline_connection.h | 20 +- .../v1/mocks/mock_schedule_connection.h | 5 +- .../mocks/mock_specialist_pool_connection.h | 13 +- .../v1/mocks/mock_tensorboard_connection.h | 28 +- .../v1/mocks/mock_vizier_connection.h | 10 +- .../alloy_db_admin_connection_impl.cc | 85 +-- .../internal/alloy_db_admin_connection_impl.h | 68 +- .../alloy_db_admin_tracing_connection.cc | 217 +++---- .../alloy_db_admin_tracing_connection.h | 68 +- .../v1/mocks/mock_alloy_db_admin_connection.h | 69 +- .../internal/api_gateway_connection_impl.cc | 45 +- .../v1/internal/api_gateway_connection_impl.h | 36 +- .../api_gateway_tracing_connection.cc | 111 ++-- .../internal/api_gateway_tracing_connection.h | 36 +- .../v1/mocks/mock_api_gateway_connection.h | 39 +- .../v2/internal/api_keys_connection_impl.cc | 20 +- .../v2/internal/api_keys_connection_impl.h | 16 +- .../internal/api_keys_tracing_connection.cc | 52 +- .../v2/internal/api_keys_tracing_connection.h | 16 +- .../v2/mocks/mock_api_keys_connection.h | 16 +- .../internal/applications_connection_impl.cc | 15 +- .../internal/applications_connection_impl.h | 12 +- .../applications_tracing_connection.cc | 36 +- .../applications_tracing_connection.h | 12 +- .../domain_mappings_connection_impl.cc | 15 +- .../domain_mappings_connection_impl.h | 12 +- .../domain_mappings_tracing_connection.cc | 42 +- .../domain_mappings_tracing_connection.h | 12 +- .../v1/internal/instances_connection_impl.cc | 10 +- .../v1/internal/instances_connection_impl.h | 8 +- .../internal/instances_tracing_connection.cc | 24 +- .../internal/instances_tracing_connection.h | 8 +- .../v1/internal/services_connection_impl.cc | 10 +- .../v1/internal/services_connection_impl.h | 8 +- .../internal/services_tracing_connection.cc | 26 +- .../v1/internal/services_tracing_connection.h | 8 +- .../v1/internal/versions_connection_impl.cc | 15 +- .../v1/internal/versions_connection_impl.h | 12 +- .../internal/versions_tracing_connection.cc | 39 +- .../v1/internal/versions_tracing_connection.h | 12 +- .../v1/mocks/mock_applications_connection.h | 12 +- .../mocks/mock_domain_mappings_connection.h | 12 +- .../v1/mocks/mock_instances_connection.h | 8 +- .../v1/mocks/mock_services_connection.h | 8 +- .../v1/mocks/mock_versions_connection.h | 12 +- .../v1/internal/app_hub_connection_impl.cc | 55 +- .../v1/internal/app_hub_connection_impl.h | 44 +- .../v1/internal/app_hub_tracing_connection.cc | 142 ++--- .../v1/internal/app_hub_tracing_connection.h | 44 +- .../apphub/v1/mocks/mock_app_hub_connection.h | 45 +- .../artifact_registry_connection_impl.cc | 35 +- .../artifact_registry_connection_impl.h | 28 +- .../artifact_registry_tracing_connection.cc | 92 ++- .../artifact_registry_tracing_connection.h | 28 +- .../mocks/mock_artifact_registry_connection.h | 35 +- .../v1/internal/asset_connection_impl.cc | 10 +- .../asset/v1/internal/asset_connection_impl.h | 8 +- .../v1/internal/asset_tracing_connection.cc | 29 +- .../v1/internal/asset_tracing_connection.h | 8 +- .../asset/v1/mocks/mock_asset_connection.h | 9 +- .../assured_workloads_connection_impl.cc | 5 +- .../assured_workloads_connection_impl.h | 4 +- .../assured_workloads_tracing_connection.cc | 11 +- .../assured_workloads_tracing_connection.h | 4 +- .../mocks/mock_assured_workloads_connection.h | 4 +- .../v1/internal/auto_ml_connection_impl.cc | 45 +- .../v1/internal/auto_ml_connection_impl.h | 36 +- .../v1/internal/auto_ml_tracing_connection.cc | 117 ++-- .../v1/internal/auto_ml_tracing_connection.h | 36 +- .../v1/internal/prediction_connection_impl.cc | 5 +- .../v1/internal/prediction_connection_impl.h | 4 +- .../internal/prediction_tracing_connection.cc | 13 +- .../internal/prediction_tracing_connection.h | 4 +- .../automl/v1/mocks/mock_auto_ml_connection.h | 36 +- .../v1/mocks/mock_prediction_connection.h | 4 +- .../v1/internal/backup_dr_connection_impl.cc | 10 +- .../v1/internal/backup_dr_connection_impl.h | 8 +- .../internal/backup_dr_tracing_connection.cc | 32 +- .../internal/backup_dr_tracing_connection.h | 8 +- .../v1/mocks/mock_backup_dr_connection.h | 8 +- .../bare_metal_solution_connection_impl.cc | 80 +-- .../bare_metal_solution_connection_impl.h | 64 +- .../bare_metal_solution_tracing_connection.cc | 211 +++---- .../bare_metal_solution_tracing_connection.h | 64 +- .../mock_bare_metal_solution_connection.h | 69 +- .../v1/internal/batch_connection_impl.cc | 5 +- .../batch/v1/internal/batch_connection_impl.h | 4 +- .../v1/internal/batch_tracing_connection.cc | 13 +- .../v1/internal/batch_tracing_connection.h | 4 +- .../batch/v1/mocks/mock_batch_connection.h | 4 +- .../app_connections_connection_impl.cc | 15 +- .../app_connections_connection_impl.h | 12 +- .../app_connections_tracing_connection.cc | 42 +- .../app_connections_tracing_connection.h | 12 +- .../mocks/mock_app_connections_connection.h | 14 +- .../app_connectors_connection_impl.cc | 20 +- .../internal/app_connectors_connection_impl.h | 16 +- .../app_connectors_tracing_connection.cc | 55 +- .../app_connectors_tracing_connection.h | 16 +- .../v1/mocks/mock_app_connectors_connection.h | 19 +- .../internal/app_gateways_connection_impl.cc | 10 +- .../internal/app_gateways_connection_impl.h | 8 +- .../app_gateways_tracing_connection.cc | 24 +- .../app_gateways_tracing_connection.h | 8 +- .../v1/mocks/mock_app_gateways_connection.h | 9 +- .../internal/analytics_hub_connection_impl.cc | 15 +- .../internal/analytics_hub_connection_impl.h | 12 +- .../analytics_hub_tracing_connection.cc | 44 +- .../analytics_hub_tracing_connection.h | 12 +- .../v1/mocks/mock_analytics_hub_connection.h | 13 +- ...bigtable_instance_admin_connection_impl.cc | 30 +- .../bigtable_instance_admin_connection_impl.h | 24 +- ...table_instance_admin_tracing_connection.cc | 81 +-- ...gtable_instance_admin_tracing_connection.h | 24 +- .../bigtable_table_admin_connection_impl.cc | 35 +- .../bigtable_table_admin_connection_impl.h | 28 +- ...bigtable_table_admin_tracing_connection.cc | 97 ++- .../bigtable_table_admin_tracing_connection.h | 28 +- .../mock_bigtable_instance_admin_connection.h | 24 +- .../mock_bigtable_table_admin_connection.h | 28 +- .../certificate_manager_connection_impl.cc | 85 +-- .../certificate_manager_connection_impl.h | 68 +- .../certificate_manager_tracing_connection.cc | 250 ++++---- .../certificate_manager_tracing_connection.h | 68 +- .../mock_certificate_manager_connection.h | 85 +-- .../internal/cloud_channel_connection_impl.cc | 55 +- .../internal/cloud_channel_connection_impl.h | 44 +- .../cloud_channel_reports_connection_impl.cc | 5 +- .../cloud_channel_reports_connection_impl.h | 4 +- ...loud_channel_reports_tracing_connection.cc | 13 +- ...cloud_channel_reports_tracing_connection.h | 4 +- .../cloud_channel_tracing_connection.cc | 154 ++--- .../cloud_channel_tracing_connection.h | 44 +- .../v1/mocks/mock_cloud_channel_connection.h | 45 +- .../mock_cloud_channel_reports_connection.h | 5 +- .../internal/cloud_build_connection_impl.cc | 35 +- .../v1/internal/cloud_build_connection_impl.h | 28 +- .../cloud_build_tracing_connection.cc | 86 +-- .../internal/cloud_build_tracing_connection.h | 28 +- .../v1/mocks/mock_cloud_build_connection.h | 29 +- .../repository_manager_connection_impl.cc | 30 +- .../repository_manager_connection_impl.h | 24 +- .../repository_manager_tracing_connection.cc | 76 +-- .../repository_manager_tracing_connection.h | 24 +- .../mock_repository_manager_connection.h | 27 +- .../consumer_procurement_connection_impl.cc | 5 +- .../consumer_procurement_connection_impl.h | 4 +- ...consumer_procurement_tracing_connection.cc | 13 +- .../consumer_procurement_tracing_connection.h | 4 +- .../mock_consumer_procurement_connection.h | 5 +- .../internal/environments_connection_impl.cc | 30 +- .../internal/environments_connection_impl.h | 24 +- .../environments_tracing_connection.cc | 74 +-- .../environments_tracing_connection.h | 24 +- .../v1/mocks/mock_environments_connection.h | 26 +- .../internal/addresses_tracing_connection.cc | 50 +- .../internal/addresses_tracing_connection.h | 16 +- .../v1/mocks/mock_addresses_connection.h | 16 +- .../autoscalers_tracing_connection.cc | 43 +- .../internal/autoscalers_tracing_connection.h | 16 +- .../v1/mocks/mock_autoscalers_connection.h | 16 +- .../backend_buckets_tracing_connection.cc | 90 ++- .../backend_buckets_tracing_connection.h | 28 +- .../mocks/mock_backend_buckets_connection.h | 28 +- .../backend_services_tracing_connection.cc | 107 ++-- .../backend_services_tracing_connection.h | 32 +- .../mocks/mock_backend_services_connection.h | 32 +- .../v1/internal/disks_tracing_connection.cc | 155 ++--- .../v1/internal/disks_tracing_connection.h | 48 +- .../disks/v1/mocks/mock_disks_connection.h | 48 +- ...xternal_vpn_gateways_tracing_connection.cc | 42 +- ...external_vpn_gateways_tracing_connection.h | 12 +- .../mock_external_vpn_gateways_connection.h | 12 +- .../firewall_policies_tracing_connection.cc | 126 ++-- .../firewall_policies_tracing_connection.h | 40 +- .../mocks/mock_firewall_policies_connection.h | 40 +- .../internal/firewalls_tracing_connection.cc | 42 +- .../internal/firewalls_tracing_connection.h | 16 +- .../v1/mocks/mock_firewalls_connection.h | 16 +- .../forwarding_rules_tracing_connection.cc | 67 +- .../forwarding_rules_tracing_connection.h | 20 +- .../mocks/mock_forwarding_rules_connection.h | 20 +- .../global_addresses_tracing_connection.cc | 50 +- .../global_addresses_tracing_connection.h | 16 +- .../mocks/mock_global_addresses_connection.h | 16 +- ...bal_forwarding_rules_tracing_connection.cc | 67 +- ...obal_forwarding_rules_tracing_connection.h | 20 +- .../mock_global_forwarding_rules_connection.h | 20 +- ...work_endpoint_groups_tracing_connection.cc | 60 +- ...twork_endpoint_groups_tracing_connection.h | 16 +- ...lobal_network_endpoint_groups_connection.h | 16 +- ...c_delegated_prefixes_tracing_connection.cc | 45 +- ...ic_delegated_prefixes_tracing_connection.h | 12 +- ...bal_public_delegated_prefixes_connection.h | 12 +- .../health_checks_tracing_connection.cc | 44 +- .../health_checks_tracing_connection.h | 16 +- .../v1/mocks/mock_health_checks_connection.h | 16 +- .../http_health_checks_tracing_connection.cc | 60 +- .../http_health_checks_tracing_connection.h | 16 +- .../mock_http_health_checks_connection.h | 16 +- .../https_health_checks_tracing_connection.cc | 60 +- .../https_health_checks_tracing_connection.h | 16 +- .../mock_https_health_checks_connection.h | 16 +- .../v1/internal/images_tracing_connection.cc | 60 +- .../v1/internal/images_tracing_connection.h | 20 +- .../images/v1/mocks/mock_images_connection.h | 20 +- ...ager_resize_requests_tracing_connection.cc | 38 +- ...nager_resize_requests_tracing_connection.h | 12 +- ...group_manager_resize_requests_connection.h | 12 +- ...tance_group_managers_tracing_connection.cc | 182 +++--- ...stance_group_managers_tracing_connection.h | 56 +- .../mock_instance_group_managers_connection.h | 56 +- .../instance_groups_tracing_connection.cc | 60 +- .../instance_groups_tracing_connection.h | 20 +- .../mocks/mock_instance_groups_connection.h | 20 +- .../instance_settings_tracing_connection.cc | 15 +- .../instance_settings_tracing_connection.h | 4 +- .../mocks/mock_instance_settings_connection.h | 4 +- .../instance_templates_tracing_connection.cc | 30 +- .../instance_templates_tracing_connection.h | 8 +- .../mock_instance_templates_connection.h | 8 +- .../internal/instances_tracing_connection.cc | 441 ++++++------- .../internal/instances_tracing_connection.h | 140 ++--- .../v1/mocks/mock_instances_connection.h | 140 ++--- ...rconnect_attachments_tracing_connection.cc | 59 +- ...erconnect_attachments_tracing_connection.h | 16 +- ...mock_interconnect_attachments_connection.h | 16 +- .../interconnects_tracing_connection.cc | 49 +- .../interconnects_tracing_connection.h | 16 +- .../v1/mocks/mock_interconnects_connection.h | 16 +- .../internal/licenses_tracing_connection.cc | 24 +- .../v1/internal/licenses_tracing_connection.h | 8 +- .../v1/mocks/mock_licenses_connection.h | 8 +- .../machine_images_tracing_connection.cc | 26 +- .../machine_images_tracing_connection.h | 8 +- .../v1/mocks/mock_machine_images_connection.h | 8 +- .../network_attachments_tracing_connection.cc | 45 +- .../network_attachments_tracing_connection.h | 12 +- .../mock_network_attachments_connection.h | 12 +- ...ge_security_services_tracing_connection.cc | 48 +- ...dge_security_services_tracing_connection.h | 12 +- ...etwork_edge_security_services_connection.h | 12 +- ...work_endpoint_groups_tracing_connection.cc | 60 +- ...twork_endpoint_groups_tracing_connection.h | 16 +- .../mock_network_endpoint_groups_connection.h | 16 +- ...rk_firewall_policies_tracing_connection.cc | 112 ++-- ...ork_firewall_policies_tracing_connection.h | 36 +- ...ock_network_firewall_policies_connection.h | 36 +- .../internal/networks_tracing_connection.cc | 85 ++- .../v1/internal/networks_tracing_connection.h | 28 +- .../v1/mocks/mock_networks_connection.h | 28 +- .../node_groups_tracing_connection.cc | 92 ++- .../internal/node_groups_tracing_connection.h | 32 +- .../v1/mocks/mock_node_groups_connection.h | 32 +- .../node_templates_tracing_connection.cc | 26 +- .../node_templates_tracing_connection.h | 8 +- .../v1/mocks/mock_node_templates_connection.h | 8 +- .../packet_mirrorings_tracing_connection.cc | 45 +- .../packet_mirrorings_tracing_connection.h | 12 +- .../mocks/mock_packet_mirrorings_connection.h | 12 +- .../internal/projects_tracing_connection.cc | 126 ++-- .../v1/internal/projects_tracing_connection.h | 40 +- .../v1/mocks/mock_projects_connection.h | 40 +- ..._advertised_prefixes_tracing_connection.cc | 71 +-- ...c_advertised_prefixes_tracing_connection.h | 20 +- ...ck_public_advertised_prefixes_connection.h | 20 +- ...c_delegated_prefixes_tracing_connection.cc | 69 +- ...ic_delegated_prefixes_tracing_connection.h | 20 +- ...ock_public_delegated_prefixes_connection.h | 20 +- .../region_autoscalers_tracing_connection.cc | 43 +- .../region_autoscalers_tracing_connection.h | 16 +- .../mock_region_autoscalers_connection.h | 16 +- ...ion_backend_services_tracing_connection.cc | 69 +- ...gion_backend_services_tracing_connection.h | 20 +- .../mock_region_backend_services_connection.h | 20 +- .../region_commitments_tracing_connection.cc | 22 +- .../region_commitments_tracing_connection.h | 8 +- .../mock_region_commitments_connection.h | 8 +- .../region_disks_tracing_connection.cc | 155 ++--- .../region_disks_tracing_connection.h | 48 +- .../v1/mocks/mock_region_disks_connection.h | 48 +- ...ealth_check_services_tracing_connection.cc | 45 +- ...health_check_services_tracing_connection.h | 12 +- ..._region_health_check_services_connection.h | 12 +- ...region_health_checks_tracing_connection.cc | 44 +- .../region_health_checks_tracing_connection.h | 16 +- .../mock_region_health_checks_connection.h | 16 +- ...tance_group_managers_tracing_connection.cc | 182 +++--- ...stance_group_managers_tracing_connection.h | 56 +- ...egion_instance_group_managers_connection.h | 56 +- ...gion_instance_groups_tracing_connection.cc | 12 +- ...egion_instance_groups_tracing_connection.h | 4 +- .../mock_region_instance_groups_connection.h | 4 +- ...n_instance_templates_tracing_connection.cc | 30 +- ...on_instance_templates_tracing_connection.h | 8 +- ...ock_region_instance_templates_connection.h | 8 +- .../region_instances_tracing_connection.cc | 12 +- .../region_instances_tracing_connection.h | 4 +- .../mocks/mock_region_instances_connection.h | 4 +- ...work_endpoint_groups_tracing_connection.cc | 60 +- ...twork_endpoint_groups_tracing_connection.h | 16 +- ...egion_network_endpoint_groups_connection.h | 16 +- ...rk_firewall_policies_tracing_connection.cc | 112 ++-- ...ork_firewall_policies_tracing_connection.h | 36 +- ...ion_network_firewall_policies_connection.h | 36 +- ...tification_endpoints_tracing_connection.cc | 30 +- ...otification_endpoints_tracing_connection.h | 8 +- ...region_notification_endpoints_connection.h | 8 +- ...on_security_policies_tracing_connection.cc | 79 ++- ...ion_security_policies_tracing_connection.h | 24 +- ...mock_region_security_policies_connection.h | 24 +- ...ion_ssl_certificates_tracing_connection.cc | 30 +- ...gion_ssl_certificates_tracing_connection.h | 8 +- .../mock_region_ssl_certificates_connection.h | 8 +- .../region_ssl_policies_tracing_connection.cc | 30 +- .../region_ssl_policies_tracing_connection.h | 12 +- .../mock_region_ssl_policies_connection.h | 12 +- ..._target_http_proxies_tracing_connection.cc | 42 +- ...n_target_http_proxies_tracing_connection.h | 12 +- ...ck_region_target_http_proxies_connection.h | 12 +- ...target_https_proxies_tracing_connection.cc | 70 +-- ..._target_https_proxies_tracing_connection.h | 20 +- ...k_region_target_https_proxies_connection.h | 20 +- ...n_target_tcp_proxies_tracing_connection.cc | 30 +- ...on_target_tcp_proxies_tracing_connection.h | 8 +- ...ock_region_target_tcp_proxies_connection.h | 8 +- .../region_url_maps_tracing_connection.cc | 48 +- .../region_url_maps_tracing_connection.h | 16 +- .../mocks/mock_region_url_maps_connection.h | 16 +- .../reservations_tracing_connection.cc | 45 +- .../reservations_tracing_connection.h | 16 +- .../v1/mocks/mock_reservations_connection.h | 16 +- .../resource_policies_tracing_connection.cc | 43 +- .../resource_policies_tracing_connection.h | 12 +- .../mocks/mock_resource_policies_connection.h | 12 +- .../v1/internal/routers_tracing_connection.cc | 48 +- .../v1/internal/routers_tracing_connection.h | 16 +- .../v1/mocks/mock_routers_connection.h | 16 +- .../v1/internal/routes_tracing_connection.cc | 24 +- .../v1/internal/routes_tracing_connection.h | 8 +- .../routes/v1/mocks/mock_routes_connection.h | 8 +- .../security_policies_tracing_connection.cc | 91 ++- .../security_policies_tracing_connection.h | 28 +- .../mocks/mock_security_policies_connection.h | 28 +- .../service_attachments_tracing_connection.cc | 45 +- .../service_attachments_tracing_connection.h | 12 +- .../mock_service_attachments_connection.h | 12 +- .../snapshot_settings_tracing_connection.cc | 15 +- .../snapshot_settings_tracing_connection.h | 4 +- .../mocks/mock_snapshot_settings_connection.h | 4 +- .../internal/snapshots_tracing_connection.cc | 32 +- .../internal/snapshots_tracing_connection.h | 12 +- .../v1/mocks/mock_snapshots_connection.h | 12 +- .../ssl_certificates_tracing_connection.cc | 30 +- .../ssl_certificates_tracing_connection.h | 8 +- .../mocks/mock_ssl_certificates_connection.h | 8 +- .../ssl_policies_tracing_connection.cc | 30 +- .../ssl_policies_tracing_connection.h | 12 +- .../v1/mocks/mock_ssl_policies_connection.h | 12 +- .../storage_pools_tracing_connection.cc | 33 +- .../storage_pools_tracing_connection.h | 12 +- .../v1/mocks/mock_storage_pools_connection.h | 12 +- .../subnetworks_tracing_connection.cc | 58 +- .../internal/subnetworks_tracing_connection.h | 20 +- .../v1/mocks/mock_subnetworks_connection.h | 20 +- .../target_grpc_proxies_tracing_connection.cc | 45 +- .../target_grpc_proxies_tracing_connection.h | 12 +- .../mock_target_grpc_proxies_connection.h | 12 +- .../target_http_proxies_tracing_connection.cc | 57 +- .../target_http_proxies_tracing_connection.h | 16 +- .../mock_target_http_proxies_connection.h | 16 +- ...target_https_proxies_tracing_connection.cc | 103 ++- .../target_https_proxies_tracing_connection.h | 32 +- .../mock_target_https_proxies_connection.h | 32 +- .../target_instances_tracing_connection.cc | 41 +- .../target_instances_tracing_connection.h | 12 +- .../mocks/mock_target_instances_connection.h | 12 +- .../target_pools_tracing_connection.cc | 88 ++- .../target_pools_tracing_connection.h | 32 +- .../v1/mocks/mock_target_pools_connection.h | 32 +- .../target_ssl_proxies_tracing_connection.cc | 87 ++- .../target_ssl_proxies_tracing_connection.h | 28 +- .../mock_target_ssl_proxies_connection.h | 28 +- .../target_tcp_proxies_tracing_connection.cc | 51 +- .../target_tcp_proxies_tracing_connection.h | 16 +- .../mock_target_tcp_proxies_connection.h | 16 +- .../target_vpn_gateways_tracing_connection.cc | 42 +- .../target_vpn_gateways_tracing_connection.h | 12 +- .../mock_target_vpn_gateways_connection.h | 12 +- .../internal/url_maps_tracing_connection.cc | 58 +- .../v1/internal/url_maps_tracing_connection.h | 20 +- .../v1/mocks/mock_url_maps_connection.h | 20 +- .../vpn_gateways_tracing_connection.cc | 34 +- .../vpn_gateways_tracing_connection.h | 12 +- .../v1/mocks/mock_vpn_gateways_connection.h | 12 +- .../vpn_tunnels_tracing_connection.cc | 32 +- .../internal/vpn_tunnels_tracing_connection.h | 12 +- .../v1/mocks/mock_vpn_tunnels_connection.h | 12 +- .../v1/internal/config_connection_impl.cc | 35 +- .../v1/internal/config_connection_impl.h | 28 +- .../v1/internal/config_tracing_connection.cc | 85 +-- .../v1/internal/config_tracing_connection.h | 28 +- .../config/v1/mocks/mock_config_connection.h | 28 +- .../v1/internal/connectors_connection_impl.cc | 20 +- .../v1/internal/connectors_connection_impl.h | 16 +- .../internal/connectors_tracing_connection.cc | 53 +- .../internal/connectors_tracing_connection.h | 16 +- .../v1/mocks/mock_connectors_connection.h | 18 +- ...contact_center_insights_connection_impl.cc | 50 +- .../contact_center_insights_connection_impl.h | 40 +- ...tact_center_insights_tracing_connection.cc | 135 ++-- ...ntact_center_insights_tracing_connection.h | 40 +- .../mock_contact_center_insights_connection.h | 45 +- .../v1/internal/pipeline_connection_impl.cc | 5 +- .../v1/internal/pipeline_connection_impl.h | 4 +- .../internal/pipeline_tracing_connection.cc | 13 +- .../v1/internal/pipeline_tracing_connection.h | 4 +- .../v1/mocks/mock_pipeline_connection.h | 5 +- .../v1/internal/lineage_connection_impl.cc | 10 +- .../v1/internal/lineage_connection_impl.h | 8 +- .../v1/internal/lineage_tracing_connection.cc | 26 +- .../v1/internal/lineage_tracing_connection.h | 8 +- .../v1/mocks/mock_lineage_connection.h | 10 +- .../internal/data_catalog_connection_impl.cc | 10 +- .../internal/data_catalog_connection_impl.h | 8 +- .../data_catalog_tracing_connection.cc | 26 +- .../data_catalog_tracing_connection.h | 8 +- .../v1/mocks/mock_data_catalog_connection.h | 10 +- .../internal/data_fusion_connection_impl.cc | 20 +- .../v1/internal/data_fusion_connection_impl.h | 16 +- .../data_fusion_tracing_connection.cc | 44 +- .../internal/data_fusion_tracing_connection.h | 16 +- .../v1/mocks/mock_data_fusion_connection.h | 17 +- .../data_migration_connection_impl.cc | 115 ++-- .../internal/data_migration_connection_impl.h | 92 +-- .../data_migration_tracing_connection.cc | 344 +++++----- .../data_migration_tracing_connection.h | 92 +-- .../v1/mocks/mock_data_migration_connection.h | 100 ++- .../v1/internal/catalog_connection_impl.cc | 45 +- .../v1/internal/catalog_connection_impl.h | 36 +- .../v1/internal/catalog_tracing_connection.cc | 105 ++-- .../v1/internal/catalog_tracing_connection.h | 36 +- .../v1/internal/data_scan_connection_impl.cc | 15 +- .../v1/internal/data_scan_connection_impl.h | 12 +- .../internal/data_scan_tracing_connection.cc | 33 +- .../internal/data_scan_tracing_connection.h | 12 +- .../internal/data_taxonomy_connection_impl.cc | 45 +- .../internal/data_taxonomy_connection_impl.h | 36 +- .../data_taxonomy_tracing_connection.cc | 132 ++-- .../data_taxonomy_tracing_connection.h | 36 +- .../v1/internal/dataplex_connection_impl.cc | 75 +-- .../v1/internal/dataplex_connection_impl.h | 60 +- .../internal/dataplex_tracing_connection.cc | 192 +++--- .../v1/internal/dataplex_tracing_connection.h | 60 +- .../v1/mocks/mock_catalog_connection.h | 36 +- .../v1/mocks/mock_data_scan_connection.h | 12 +- .../v1/mocks/mock_data_taxonomy_connection.h | 38 +- .../v1/mocks/mock_dataplex_connection.h | 60 +- .../batch_controller_connection_impl.cc | 5 +- .../batch_controller_connection_impl.h | 4 +- .../batch_controller_tracing_connection.cc | 13 +- .../batch_controller_tracing_connection.h | 4 +- .../cluster_controller_connection_impl.cc | 30 +- .../cluster_controller_connection_impl.h | 24 +- .../cluster_controller_tracing_connection.cc | 76 +-- .../cluster_controller_tracing_connection.h | 24 +- .../job_controller_connection_impl.cc | 5 +- .../internal/job_controller_connection_impl.h | 4 +- .../job_controller_tracing_connection.cc | 16 +- .../job_controller_tracing_connection.h | 4 +- .../node_group_controller_connection_impl.cc | 10 +- .../node_group_controller_connection_impl.h | 8 +- ...ode_group_controller_tracing_connection.cc | 22 +- ...node_group_controller_tracing_connection.h | 8 +- .../session_controller_connection_impl.cc | 15 +- .../session_controller_connection_impl.h | 12 +- .../session_controller_tracing_connection.cc | 38 +- .../session_controller_tracing_connection.h | 12 +- .../workflow_template_connection_impl.cc | 10 +- .../workflow_template_connection_impl.h | 8 +- .../workflow_template_tracing_connection.cc | 33 +- .../workflow_template_tracing_connection.h | 8 +- .../mocks/mock_batch_controller_connection.h | 4 +- .../mock_cluster_controller_connection.h | 26 +- .../v1/mocks/mock_job_controller_connection.h | 4 +- .../mock_node_group_controller_connection.h | 8 +- .../mock_session_controller_connection.h | 12 +- .../mocks/mock_workflow_template_connection.h | 8 +- .../datastore_admin_connection_impl.cc | 20 +- .../datastore_admin_connection_impl.h | 16 +- .../datastore_admin_tracing_connection.cc | 48 +- .../datastore_admin_tracing_connection.h | 16 +- .../mocks/mock_datastore_admin_connection.h | 18 +- .../v1/internal/datastream_connection_impl.cc | 50 +- .../v1/internal/datastream_connection_impl.h | 40 +- .../internal/datastream_tracing_connection.cc | 145 ++--- .../internal/datastream_tracing_connection.h | 40 +- .../v1/mocks/mock_datastream_connection.h | 47 +- .../internal/cloud_deploy_connection_impl.cc | 70 +-- .../internal/cloud_deploy_connection_impl.h | 56 +- .../cloud_deploy_tracing_connection.cc | 197 +++--- .../cloud_deploy_tracing_connection.h | 56 +- .../v1/mocks/mock_cloud_deploy_connection.h | 56 +- .../internal/agents_connection_impl.cc | 10 +- .../internal/agents_connection_impl.h | 8 +- .../internal/agents_tracing_connection.cc | 26 +- .../internal/agents_tracing_connection.h | 8 +- .../internal/entity_types_connection_impl.cc | 10 +- .../internal/entity_types_connection_impl.h | 8 +- .../entity_types_tracing_connection.cc | 24 +- .../entity_types_tracing_connection.h | 8 +- .../internal/environments_connection_impl.cc | 20 +- .../internal/environments_connection_impl.h | 16 +- .../environments_tracing_connection.cc | 49 +- .../environments_tracing_connection.h | 16 +- .../internal/flows_connection_impl.cc | 15 +- .../internal/flows_connection_impl.h | 12 +- .../internal/flows_tracing_connection.cc | 39 +- .../internal/flows_tracing_connection.h | 12 +- .../internal/intents_connection_impl.cc | 10 +- .../internal/intents_connection_impl.h | 8 +- .../internal/intents_tracing_connection.cc | 26 +- .../internal/intents_tracing_connection.h | 8 +- .../internal/test_cases_connection_impl.cc | 20 +- .../internal/test_cases_connection_impl.h | 16 +- .../internal/test_cases_tracing_connection.cc | 47 +- .../internal/test_cases_tracing_connection.h | 16 +- .../internal/versions_connection_impl.cc | 10 +- .../internal/versions_connection_impl.h | 8 +- .../internal/versions_tracing_connection.cc | 26 +- .../internal/versions_tracing_connection.h | 8 +- .../mocks/mock_agents_connection.h | 9 +- .../mocks/mock_entity_types_connection.h | 10 +- .../mocks/mock_environments_connection.h | 18 +- .../mocks/mock_flows_connection.h | 14 +- .../mocks/mock_intents_connection.h | 10 +- .../mocks/mock_test_cases_connection.h | 20 +- .../mocks/mock_versions_connection.h | 8 +- .../internal/agents_connection_impl.cc | 20 +- .../internal/agents_connection_impl.h | 16 +- .../internal/agents_tracing_connection.cc | 52 +- .../internal/agents_tracing_connection.h | 16 +- .../conversation_datasets_connection_impl.cc | 15 +- .../conversation_datasets_connection_impl.h | 12 +- ...onversation_datasets_tracing_connection.cc | 48 +- ...conversation_datasets_tracing_connection.h | 12 +- .../conversation_models_connection_impl.cc | 25 +- .../conversation_models_connection_impl.h | 20 +- .../conversation_models_tracing_connection.cc | 81 ++- .../conversation_models_tracing_connection.h | 20 +- .../conversation_profiles_connection_impl.cc | 10 +- .../conversation_profiles_connection_impl.h | 8 +- ...onversation_profiles_tracing_connection.cc | 33 +- ...conversation_profiles_tracing_connection.h | 8 +- .../internal/documents_connection_impl.cc | 30 +- .../internal/documents_connection_impl.h | 24 +- .../internal/documents_tracing_connection.cc | 66 +- .../internal/documents_tracing_connection.h | 24 +- .../internal/entity_types_connection_impl.cc | 25 +- .../internal/entity_types_connection_impl.h | 20 +- .../entity_types_tracing_connection.cc | 74 +-- .../entity_types_tracing_connection.h | 20 +- .../internal/intents_connection_impl.cc | 10 +- .../internal/intents_connection_impl.h | 8 +- .../internal/intents_tracing_connection.cc | 28 +- .../internal/intents_tracing_connection.h | 8 +- .../mocks/mock_agents_connection.h | 17 +- .../mock_conversation_datasets_connection.h | 13 +- .../mock_conversation_models_connection.h | 22 +- .../mock_conversation_profiles_connection.h | 10 +- .../mocks/mock_documents_connection.h | 26 +- .../mocks/mock_entity_types_connection.h | 21 +- .../mocks/mock_intents_connection.h | 9 +- .../v1/internal/completion_connection_impl.cc | 10 +- .../v1/internal/completion_connection_impl.h | 8 +- .../internal/completion_tracing_connection.cc | 34 +- .../internal/completion_tracing_connection.h | 8 +- .../v1/internal/data_store_connection_impl.cc | 10 +- .../v1/internal/data_store_connection_impl.h | 8 +- .../internal/data_store_tracing_connection.cc | 22 +- .../internal/data_store_tracing_connection.h | 8 +- .../v1/internal/document_connection_impl.cc | 10 +- .../v1/internal/document_connection_impl.h | 8 +- .../internal/document_tracing_connection.cc | 22 +- .../v1/internal/document_tracing_connection.h | 8 +- .../v1/internal/engine_connection_impl.cc | 10 +- .../v1/internal/engine_connection_impl.h | 8 +- .../v1/internal/engine_tracing_connection.cc | 26 +- .../v1/internal/engine_tracing_connection.h | 8 +- .../v1/internal/project_connection_impl.cc | 5 +- .../v1/internal/project_connection_impl.h | 4 +- .../v1/internal/project_tracing_connection.cc | 12 +- .../v1/internal/project_tracing_connection.h | 4 +- .../v1/internal/schema_connection_impl.cc | 15 +- .../v1/internal/schema_connection_impl.h | 12 +- .../v1/internal/schema_tracing_connection.cc | 39 +- .../v1/internal/schema_tracing_connection.h | 12 +- .../site_search_engine_connection_impl.cc | 40 +- .../site_search_engine_connection_impl.h | 32 +- .../site_search_engine_tracing_connection.cc | 113 ++-- .../site_search_engine_tracing_connection.h | 32 +- .../v1/internal/user_event_connection_impl.cc | 5 +- .../v1/internal/user_event_connection_impl.h | 4 +- .../internal/user_event_tracing_connection.cc | 12 +- .../internal/user_event_tracing_connection.h | 4 +- .../v1/mocks/mock_completion_connection.h | 8 +- .../v1/mocks/mock_data_store_connection.h | 8 +- .../v1/mocks/mock_document_connection.h | 9 +- .../v1/mocks/mock_engine_connection.h | 9 +- .../v1/mocks/mock_project_connection.h | 4 +- .../v1/mocks/mock_schema_connection.h | 13 +- .../mock_site_search_engine_connection.h | 36 +- .../v1/mocks/mock_user_event_connection.h | 5 +- .../document_processor_connection_impl.cc | 55 +- .../document_processor_connection_impl.h | 44 +- .../document_processor_tracing_connection.cc | 157 ++--- .../document_processor_tracing_connection.h | 44 +- .../mock_document_processor_connection.h | 55 +- .../v1/internal/domains_connection_impl.cc | 40 +- .../v1/internal/domains_connection_impl.h | 32 +- .../v1/internal/domains_tracing_connection.cc | 112 ++-- .../v1/internal/domains_tracing_connection.h | 32 +- .../v1/mocks/mock_domains_connection.h | 32 +- .../edge_container_connection_impl.cc | 45 +- .../internal/edge_container_connection_impl.h | 36 +- .../edge_container_tracing_connection.cc | 111 ++-- .../edge_container_tracing_connection.h | 36 +- .../v1/mocks/mock_edge_container_connection.h | 39 +- .../internal/edge_network_connection_impl.cc | 50 +- .../internal/edge_network_connection_impl.h | 40 +- .../edge_network_tracing_connection.cc | 138 ++-- .../edge_network_tracing_connection.h | 40 +- .../v1/mocks/mock_edge_network_connection.h | 45 +- .../v1/internal/eventarc_connection_impl.cc | 40 +- .../v1/internal/eventarc_connection_impl.h | 32 +- .../internal/eventarc_tracing_connection.cc | 110 ++-- .../v1/internal/eventarc_tracing_connection.h | 32 +- .../v1/mocks/mock_eventarc_connection.h | 32 +- ...cloud_filestore_manager_connection_impl.cc | 55 +- .../cloud_filestore_manager_connection_impl.h | 44 +- ...ud_filestore_manager_tracing_connection.cc | 127 ++-- ...oud_filestore_manager_tracing_connection.h | 44 +- .../mock_cloud_filestore_manager_connection.h | 44 +- .../cloud_functions_connection_impl.cc | 15 +- .../cloud_functions_connection_impl.h | 12 +- .../cloud_functions_tracing_connection.cc | 33 +- .../cloud_functions_tracing_connection.h | 12 +- .../mocks/mock_cloud_functions_connection.h | 13 +- .../v2/internal/function_connection_impl.cc | 15 +- .../v2/internal/function_connection_impl.h | 12 +- .../internal/function_tracing_connection.cc | 33 +- .../v2/internal/function_tracing_connection.h | 12 +- .../v2/mocks/mock_function_connection.h | 12 +- .../backup_for_gke_connection_impl.cc | 60 +- .../internal/backup_for_gke_connection_impl.h | 48 +- .../backup_for_gke_tracing_connection.cc | 150 ++--- .../backup_for_gke_tracing_connection.h | 48 +- .../v1/mocks/mock_backup_for_gke_connection.h | 48 +- .../v1/internal/gke_hub_connection_impl.cc | 30 +- .../v1/internal/gke_hub_connection_impl.h | 24 +- .../v1/internal/gke_hub_tracing_connection.cc | 75 +-- .../v1/internal/gke_hub_tracing_connection.h | 24 +- .../gkehub/v1/mocks/mock_gke_hub_connection.h | 24 +- .../attached_clusters_connection_impl.cc | 20 +- .../attached_clusters_connection_impl.h | 16 +- .../attached_clusters_tracing_connection.cc | 64 +- .../attached_clusters_tracing_connection.h | 16 +- .../internal/aws_clusters_connection_impl.cc | 35 +- .../internal/aws_clusters_connection_impl.h | 28 +- .../aws_clusters_tracing_connection.cc | 88 ++- .../aws_clusters_tracing_connection.h | 28 +- .../azure_clusters_connection_impl.cc | 40 +- .../internal/azure_clusters_connection_impl.h | 32 +- .../azure_clusters_tracing_connection.cc | 108 ++-- .../azure_clusters_tracing_connection.h | 32 +- .../mocks/mock_attached_clusters_connection.h | 20 +- .../v1/mocks/mock_aws_clusters_connection.h | 30 +- .../v1/mocks/mock_azure_clusters_connection.h | 35 +- .../v2/internal/policies_connection_impl.cc | 15 +- .../v2/internal/policies_connection_impl.h | 12 +- .../internal/policies_tracing_connection.cc | 39 +- .../v2/internal/policies_tracing_connection.h | 12 +- .../iam/v2/mocks/mock_policies_connection.h | 12 +- .../ids/v1/internal/ids_connection_impl.cc | 10 +- .../ids/v1/internal/ids_connection_impl.h | 8 +- .../ids/v1/internal/ids_tracing_connection.cc | 22 +- .../ids/v1/internal/ids_tracing_connection.h | 8 +- .../cloud/ids/v1/mocks/mock_ids_connection.h | 8 +- .../v1/internal/autokey_connection_impl.cc | 5 +- .../kms/v1/internal/autokey_connection_impl.h | 4 +- .../v1/internal/autokey_tracing_connection.cc | 11 +- .../v1/internal/autokey_tracing_connection.h | 4 +- .../kms/v1/mocks/mock_autokey_connection.h | 4 +- .../config_service_v2_connection_impl.cc | 25 +- .../config_service_v2_connection_impl.h | 20 +- .../config_service_v2_tracing_connection.cc | 61 +- .../config_service_v2_tracing_connection.h | 20 +- .../mocks/mock_config_service_v2_connection.h | 20 +- .../managed_identities_connection_impl.cc | 35 +- .../managed_identities_connection_impl.h | 28 +- .../managed_identities_tracing_connection.cc | 93 ++- .../managed_identities_tracing_connection.h | 28 +- .../mock_managed_identities_connection.h | 29 +- .../internal/managed_kafka_connection_impl.cc | 15 +- .../internal/managed_kafka_connection_impl.h | 12 +- .../managed_kafka_tracing_connection.cc | 39 +- .../managed_kafka_tracing_connection.h | 12 +- .../v1/mocks/mock_managed_kafka_connection.h | 13 +- .../cloud_memcache_connection_impl.cc | 30 +- .../internal/cloud_memcache_connection_impl.h | 24 +- .../cloud_memcache_tracing_connection.cc | 72 +-- .../cloud_memcache_tracing_connection.h | 24 +- .../v1/mocks/mock_cloud_memcache_connection.h | 24 +- .../dataproc_metastore_connection_impl.cc | 60 +- .../dataproc_metastore_connection_impl.h | 48 +- ...oc_metastore_federation_connection_impl.cc | 15 +- ...roc_metastore_federation_connection_impl.h | 12 +- ...metastore_federation_tracing_connection.cc | 36 +- ..._metastore_federation_tracing_connection.h | 12 +- .../dataproc_metastore_tracing_connection.cc | 163 ++--- .../dataproc_metastore_tracing_connection.h | 48 +- .../mock_dataproc_metastore_connection.h | 51 +- ...dataproc_metastore_federation_connection.h | 12 +- .../migration_center_connection_impl.cc | 115 ++-- .../migration_center_connection_impl.h | 92 +-- .../migration_center_tracing_connection.cc | 303 ++++----- .../migration_center_tracing_connection.h | 92 +-- .../mocks/mock_migration_center_connection.h | 105 ++-- .../metrics_scopes_connection_impl.cc | 10 +- .../internal/metrics_scopes_connection_impl.h | 8 +- .../metrics_scopes_tracing_connection.cc | 32 +- .../metrics_scopes_tracing_connection.h | 8 +- .../v1/mocks/mock_metrics_scopes_connection.h | 10 +- .../v1/internal/net_app_connection_impl.cc | 160 ++--- .../v1/internal/net_app_connection_impl.h | 128 ++-- .../v1/internal/net_app_tracing_connection.cc | 405 +++++------- .../v1/internal/net_app_tracing_connection.h | 128 ++-- .../netapp/v1/mocks/mock_net_app_connection.h | 128 ++-- .../v1/internal/hub_connection_impl.cc | 40 +- .../v1/internal/hub_connection_impl.h | 32 +- .../v1/internal/hub_tracing_connection.cc | 100 ++- .../v1/internal/hub_tracing_connection.h | 32 +- .../policy_based_routing_connection_impl.cc | 10 +- .../policy_based_routing_connection_impl.h | 8 +- ...policy_based_routing_tracing_connection.cc | 32 +- .../policy_based_routing_tracing_connection.h | 8 +- .../v1/mocks/mock_hub_connection.h | 36 +- .../mock_policy_based_routing_connection.h | 10 +- .../internal/reachability_connection_impl.cc | 20 +- .../internal/reachability_connection_impl.h | 16 +- .../reachability_tracing_connection.cc | 64 +- .../reachability_tracing_connection.h | 16 +- .../v1/mocks/mock_reachability_connection.h | 20 +- .../network_security_connection_impl.cc | 45 +- .../network_security_connection_impl.h | 36 +- .../network_security_tracing_connection.cc | 144 ++--- .../network_security_tracing_connection.h | 36 +- .../mocks/mock_network_security_connection.h | 45 +- .../v1/internal/dep_connection_impl.cc | 30 +- .../v1/internal/dep_connection_impl.h | 24 +- .../v1/internal/dep_tracing_connection.cc | 96 ++- .../v1/internal/dep_tracing_connection.h | 24 +- .../network_services_connection_impl.cc | 115 ++-- .../network_services_connection_impl.h | 92 +-- .../network_services_tracing_connection.cc | 290 ++++----- .../network_services_tracing_connection.h | 92 +-- .../v1/mocks/mock_dep_connection.h | 30 +- .../mocks/mock_network_services_connection.h | 103 ++- .../managed_notebook_connection_impl.cc | 50 +- .../managed_notebook_connection_impl.h | 40 +- .../managed_notebook_tracing_connection.cc | 127 ++-- .../managed_notebook_tracing_connection.h | 40 +- .../v1/internal/notebook_connection_impl.cc | 115 ++-- .../v1/internal/notebook_connection_impl.h | 92 +-- .../internal/notebook_tracing_connection.cc | 294 ++++----- .../v1/internal/notebook_tracing_connection.h | 92 +-- .../mocks/mock_managed_notebook_connection.h | 40 +- .../v1/mocks/mock_notebook_connection.h | 92 +-- .../v2/internal/notebook_connection_impl.cc | 45 +- .../v2/internal/notebook_connection_impl.h | 36 +- .../internal/notebook_tracing_connection.cc | 107 ++-- .../v2/internal/notebook_tracing_connection.h | 36 +- .../v2/mocks/mock_notebook_connection.h | 36 +- .../internal/fleet_routing_connection_impl.cc | 5 +- .../internal/fleet_routing_connection_impl.h | 4 +- .../fleet_routing_tracing_connection.cc | 14 +- .../fleet_routing_tracing_connection.h | 4 +- .../v1/mocks/mock_fleet_routing_connection.h | 4 +- .../os_config_zonal_connection_impl.cc | 15 +- .../os_config_zonal_connection_impl.h | 12 +- .../os_config_zonal_tracing_connection.cc | 48 +- .../os_config_zonal_tracing_connection.h | 12 +- .../mocks/mock_os_config_zonal_connection.h | 13 +- .../v1/internal/simulator_connection_impl.cc | 5 +- .../v1/internal/simulator_connection_impl.h | 4 +- .../internal/simulator_tracing_connection.cc | 13 +- .../internal/simulator_tracing_connection.h | 4 +- .../v1/mocks/mock_simulator_connection.h | 4 +- .../certificate_authority_connection_impl.cc | 70 +-- .../certificate_authority_connection_impl.h | 56 +- ...ertificate_authority_tracing_connection.cc | 218 +++---- ...certificate_authority_tracing_connection.h | 56 +- .../mock_certificate_authority_connection.h | 66 +- .../internal/admin_connection_impl.cc | 5 +- .../internal/admin_connection_impl.h | 4 +- .../internal/admin_tracing_connection.cc | 12 +- .../internal/admin_tracing_connection.h | 4 +- .../pubsublite/mocks/mock_admin_connection.h | 5 +- ...id_migration_assessment_connection_impl.cc | 35 +- ...pid_migration_assessment_connection_impl.h | 28 +- ...migration_assessment_tracing_connection.cc | 79 +-- ..._migration_assessment_tracing_connection.h | 28 +- ...ck_rapid_migration_assessment_connection.h | 35 +- .../cloud_redis_cluster_connection_impl.cc | 15 +- .../cloud_redis_cluster_connection_impl.h | 12 +- .../cloud_redis_cluster_tracing_connection.cc | 39 +- .../cloud_redis_cluster_tracing_connection.h | 12 +- .../mock_cloud_redis_cluster_connection.h | 12 +- .../internal/cloud_redis_connection_impl.cc | 40 +- .../v1/internal/cloud_redis_connection_impl.h | 32 +- .../cloud_redis_tracing_connection.cc | 94 ++- .../internal/cloud_redis_tracing_connection.h | 32 +- .../v1/mocks/mock_cloud_redis_connection.h | 32 +- .../v3/internal/folders_connection_impl.cc | 25 +- .../v3/internal/folders_connection_impl.h | 20 +- .../v3/internal/folders_tracing_connection.cc | 63 +- .../v3/internal/folders_tracing_connection.h | 20 +- .../v3/internal/projects_connection_impl.cc | 25 +- .../v3/internal/projects_connection_impl.h | 20 +- .../internal/projects_tracing_connection.cc | 63 +- .../v3/internal/projects_tracing_connection.h | 20 +- .../internal/tag_bindings_connection_impl.cc | 10 +- .../internal/tag_bindings_connection_impl.h | 8 +- .../tag_bindings_tracing_connection.cc | 24 +- .../tag_bindings_tracing_connection.h | 8 +- .../v3/internal/tag_holds_connection_impl.cc | 10 +- .../v3/internal/tag_holds_connection_impl.h | 8 +- .../internal/tag_holds_tracing_connection.cc | 26 +- .../internal/tag_holds_tracing_connection.h | 8 +- .../v3/internal/tag_keys_connection_impl.cc | 15 +- .../v3/internal/tag_keys_connection_impl.h | 12 +- .../internal/tag_keys_tracing_connection.cc | 39 +- .../v3/internal/tag_keys_tracing_connection.h | 12 +- .../v3/internal/tag_values_connection_impl.cc | 15 +- .../v3/internal/tag_values_connection_impl.h | 12 +- .../internal/tag_values_tracing_connection.cc | 33 +- .../internal/tag_values_tracing_connection.h | 12 +- .../v3/mocks/mock_folders_connection.h | 20 +- .../v3/mocks/mock_projects_connection.h | 20 +- .../v3/mocks/mock_tag_bindings_connection.h | 9 +- .../v3/mocks/mock_tag_holds_connection.h | 9 +- .../v3/mocks/mock_tag_keys_connection.h | 12 +- .../v3/mocks/mock_tag_values_connection.h | 12 +- .../v2/internal/analytics_connection_impl.cc | 5 +- .../v2/internal/analytics_connection_impl.h | 4 +- .../internal/analytics_tracing_connection.cc | 16 +- .../internal/analytics_tracing_connection.h | 4 +- .../v2/internal/completion_connection_impl.cc | 5 +- .../v2/internal/completion_connection_impl.h | 4 +- .../internal/completion_tracing_connection.cc | 16 +- .../internal/completion_tracing_connection.h | 4 +- .../v2/internal/model_connection_impl.cc | 10 +- .../v2/internal/model_connection_impl.h | 8 +- .../v2/internal/model_tracing_connection.cc | 26 +- .../v2/internal/model_tracing_connection.h | 8 +- .../v2/internal/product_connection_impl.cc | 35 +- .../v2/internal/product_connection_impl.h | 28 +- .../v2/internal/product_tracing_connection.cc | 99 ++- .../v2/internal/product_tracing_connection.h | 28 +- .../v2/internal/user_event_connection_impl.cc | 15 +- .../v2/internal/user_event_connection_impl.h | 12 +- .../internal/user_event_tracing_connection.cc | 35 +- .../internal/user_event_tracing_connection.h | 12 +- .../v2/mocks/mock_analytics_connection.h | 5 +- .../v2/mocks/mock_completion_connection.h | 5 +- .../retail/v2/mocks/mock_model_connection.h | 8 +- .../retail/v2/mocks/mock_product_connection.h | 34 +- .../v2/mocks/mock_user_event_connection.h | 15 +- .../v2/internal/executions_connection_impl.cc | 10 +- .../v2/internal/executions_connection_impl.h | 8 +- .../internal/executions_tracing_connection.cc | 22 +- .../internal/executions_tracing_connection.h | 8 +- .../run/v2/internal/jobs_connection_impl.cc | 20 +- .../run/v2/internal/jobs_connection_impl.h | 16 +- .../v2/internal/jobs_tracing_connection.cc | 51 +- .../run/v2/internal/jobs_tracing_connection.h | 16 +- .../v2/internal/revisions_connection_impl.cc | 5 +- .../v2/internal/revisions_connection_impl.h | 4 +- .../internal/revisions_tracing_connection.cc | 11 +- .../internal/revisions_tracing_connection.h | 4 +- .../v2/internal/services_connection_impl.cc | 15 +- .../v2/internal/services_connection_impl.h | 12 +- .../internal/services_tracing_connection.cc | 39 +- .../v2/internal/services_tracing_connection.h | 12 +- .../run/v2/mocks/mock_executions_connection.h | 8 +- .../cloud/run/v2/mocks/mock_jobs_connection.h | 16 +- .../run/v2/mocks/mock_revisions_connection.h | 4 +- .../run/v2/mocks/mock_services_connection.h | 12 +- .../secure_source_manager_connection_impl.cc | 20 +- .../secure_source_manager_connection_impl.h | 16 +- ...ecure_source_manager_tracing_connection.cc | 46 +- ...secure_source_manager_tracing_connection.h | 16 +- .../mock_secure_source_manager_connection.h | 20 +- .../security_center_connection_impl.cc | 10 +- .../security_center_connection_impl.h | 8 +- .../security_center_tracing_connection.cc | 24 +- .../security_center_tracing_connection.h | 8 +- .../mocks/mock_security_center_connection.h | 9 +- .../security_center_connection_impl.cc | 5 +- .../security_center_connection_impl.h | 4 +- .../security_center_tracing_connection.cc | 12 +- .../security_center_tracing_connection.h | 4 +- .../mocks/mock_security_center_connection.h | 4 +- .../service_manager_connection_impl.cc | 25 +- .../service_manager_connection_impl.h | 20 +- .../service_manager_tracing_connection.cc | 67 +- .../service_manager_tracing_connection.h | 20 +- .../mocks/mock_service_manager_connection.h | 23 +- .../internal/service_usage_connection_impl.cc | 15 +- .../internal/service_usage_connection_impl.h | 12 +- .../service_usage_tracing_connection.cc | 38 +- .../service_usage_tracing_connection.h | 12 +- .../v1/mocks/mock_service_usage_connection.h | 15 +- .../internal/cloud_shell_connection_impl.cc | 20 +- .../v1/internal/cloud_shell_connection_impl.h | 16 +- .../cloud_shell_tracing_connection.cc | 52 +- .../internal/cloud_shell_tracing_connection.h | 16 +- .../v1/mocks/mock_cloud_shell_connection.h | 19 +- .../database_admin_connection_impl.cc | 30 +- .../internal/database_admin_connection_impl.h | 24 +- .../database_admin_tracing_connection.cc | 71 +-- .../database_admin_tracing_connection.h | 24 +- .../instance_admin_connection_impl.cc | 30 +- .../internal/instance_admin_connection_impl.h | 24 +- .../instance_admin_tracing_connection.cc | 86 ++- .../instance_admin_tracing_connection.h | 24 +- .../mocks/mock_database_admin_connection.h | 25 +- .../mocks/mock_instance_admin_connection.h | 28 +- .../v1/internal/speech_connection_impl.cc | 5 +- .../v1/internal/speech_connection_impl.h | 4 +- .../v1/internal/speech_tracing_connection.cc | 16 +- .../v1/internal/speech_tracing_connection.h | 4 +- .../speech/v1/mocks/mock_speech_connection.h | 5 +- .../v2/internal/speech_connection_impl.cc | 65 +- .../v2/internal/speech_connection_impl.h | 52 +- .../v2/internal/speech_tracing_connection.cc | 156 ++--- .../v2/internal/speech_tracing_connection.h | 52 +- .../speech/v2/mocks/mock_speech_connection.h | 53 +- .../storage_control_connection_impl.cc | 5 +- .../storage_control_connection_impl.h | 4 +- .../storage_control_tracing_connection.cc | 13 +- .../storage_control_tracing_connection.h | 4 +- .../mocks/mock_storage_control_connection.h | 4 +- .../storage_transfer_connection_impl.cc | 5 +- .../storage_transfer_connection_impl.h | 4 +- .../storage_transfer_tracing_connection.cc | 11 +- .../storage_transfer_tracing_connection.h | 4 +- .../mocks/mock_storage_transfer_connection.h | 4 +- .../talent/v4/internal/job_connection_impl.cc | 15 +- .../talent/v4/internal/job_connection_impl.h | 12 +- .../v4/internal/job_tracing_connection.cc | 33 +- .../v4/internal/job_tracing_connection.h | 12 +- .../talent/v4/mocks/mock_job_connection.h | 15 +- .../telco_automation_connection_impl.cc | 20 +- .../telco_automation_connection_impl.h | 16 +- .../telco_automation_tracing_connection.cc | 58 +- .../telco_automation_tracing_connection.h | 16 +- .../mocks/mock_telco_automation_connection.h | 19 +- .../tpu/v1/internal/tpu_connection_impl.cc | 25 +- .../tpu/v1/internal/tpu_connection_impl.h | 20 +- .../tpu/v1/internal/tpu_tracing_connection.cc | 65 +- .../tpu/v1/internal/tpu_tracing_connection.h | 20 +- .../cloud/tpu/v1/mocks/mock_tpu_connection.h | 20 +- .../tpu/v2/internal/tpu_connection_impl.cc | 24 +- .../tpu/v2/internal/tpu_connection_impl.h | 20 +- .../tpu/v2/internal/tpu_tracing_connection.cc | 65 +- .../tpu/v2/internal/tpu_tracing_connection.h | 20 +- .../cloud/tpu/v2/mocks/mock_tpu_connection.h | 20 +- .../internal/translation_connection_impl.cc | 20 +- .../v3/internal/translation_connection_impl.h | 16 +- .../translation_tracing_connection.cc | 52 +- .../internal/translation_tracing_connection.h | 16 +- .../v3/mocks/mock_translation_connection.h | 19 +- .../v1/internal/livestream_connection_impl.cc | 55 +- .../v1/internal/livestream_connection_impl.h | 44 +- .../internal/livestream_tracing_connection.cc | 143 ++--- .../internal/livestream_tracing_connection.h | 44 +- .../v1/mocks/mock_livestream_connection.h | 49 +- .../video_stitcher_connection_impl.cc | 60 +- .../internal/video_stitcher_connection_impl.h | 48 +- .../video_stitcher_tracing_connection.cc | 147 ++--- .../video_stitcher_tracing_connection.h | 48 +- .../v1/mocks/mock_video_stitcher_connection.h | 52 +- .../video_intelligence_connection_impl.cc | 5 +- .../video_intelligence_connection_impl.h | 4 +- .../video_intelligence_tracing_connection.cc | 13 +- .../video_intelligence_tracing_connection.h | 4 +- .../mock_video_intelligence_connection.h | 4 +- .../image_annotator_connection_impl.cc | 10 +- .../image_annotator_connection_impl.h | 8 +- .../image_annotator_tracing_connection.cc | 32 +- .../image_annotator_tracing_connection.h | 8 +- .../product_search_connection_impl.cc | 10 +- .../internal/product_search_connection_impl.h | 8 +- .../product_search_tracing_connection.cc | 25 +- .../product_search_tracing_connection.h | 8 +- .../mocks/mock_image_annotator_connection.h | 9 +- .../v1/mocks/mock_product_search_connection.h | 10 +- .../internal/vm_migration_connection_impl.cc | 135 ++-- .../internal/vm_migration_connection_impl.h | 108 ++-- .../vm_migration_tracing_connection.cc | 351 +++++------ .../vm_migration_tracing_connection.h | 108 ++-- .../v1/mocks/mock_vm_migration_connection.h | 125 ++-- .../internal/vmware_engine_connection_impl.cc | 195 +++--- .../internal/vmware_engine_connection_impl.h | 156 ++--- .../vmware_engine_tracing_connection.cc | 594 ++++++++---------- .../vmware_engine_tracing_connection.h | 156 ++--- .../v1/mocks/mock_vmware_engine_connection.h | 179 +++--- .../v1/internal/vpc_access_connection_impl.cc | 10 +- .../v1/internal/vpc_access_connection_impl.h | 8 +- .../internal/vpc_access_tracing_connection.cc | 22 +- .../internal/vpc_access_tracing_connection.h | 8 +- .../v1/mocks/mock_vpc_access_connection.h | 8 +- .../v1/internal/web_risk_connection_impl.cc | 5 +- .../v1/internal/web_risk_connection_impl.h | 4 +- .../internal/web_risk_tracing_connection.cc | 13 +- .../v1/internal/web_risk_tracing_connection.h | 4 +- .../v1/mocks/mock_web_risk_connection.h | 4 +- .../v1/internal/workflows_connection_impl.cc | 15 +- .../v1/internal/workflows_connection_impl.h | 12 +- .../internal/workflows_tracing_connection.cc | 33 +- .../internal/workflows_tracing_connection.h | 12 +- .../v1/mocks/mock_workflows_connection.h | 12 +- .../internal/workstations_connection_impl.cc | 55 +- .../internal/workstations_connection_impl.h | 44 +- .../workstations_tracing_connection.cc | 155 ++--- .../workstations_tracing_connection.h | 44 +- .../v1/mocks/mock_workstations_connection.h | 50 +- 1143 files changed, 17837 insertions(+), 22349 deletions(-) diff --git a/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.cc b/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.cc index 1e7eddc23ac15..2e27b98ddb286 100644 --- a/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.cc +++ b/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.cc @@ -127,8 +127,8 @@ GoldenThingAdminConnectionImpl::CreateDatabase(google::test::admin::database::v1 } StatusOr -GoldenThingAdminConnectionImpl::CreateDatabase(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) { +GoldenThingAdminConnectionImpl::CreateDatabase(ExperimentalTag, + NoAwaitlTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( retry_policy(*current), backoff_policy(*current), @@ -142,7 +142,7 @@ GoldenThingAdminConnectionImpl::CreateDatabase(google::cloud::ExperimentalTag, } future> -GoldenThingAdminConnectionImpl::CreateDatabase(google::cloud::ExperimentalTag, +GoldenThingAdminConnectionImpl::CreateDatabase(ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { @@ -219,8 +219,8 @@ GoldenThingAdminConnectionImpl::UpdateDatabaseDdl(google::test::admin::database: } StatusOr -GoldenThingAdminConnectionImpl::UpdateDatabaseDdl(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) { +GoldenThingAdminConnectionImpl::UpdateDatabaseDdl(ExperimentalTag, + NoAwaitlTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( retry_policy(*current), backoff_policy(*current), @@ -234,7 +234,7 @@ GoldenThingAdminConnectionImpl::UpdateDatabaseDdl(google::cloud::ExperimentalTag } future> -GoldenThingAdminConnectionImpl::UpdateDatabaseDdl(google::cloud::ExperimentalTag, +GoldenThingAdminConnectionImpl::UpdateDatabaseDdl(ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { @@ -363,8 +363,8 @@ GoldenThingAdminConnectionImpl::CreateBackup(google::test::admin::database::v1:: } StatusOr -GoldenThingAdminConnectionImpl::CreateBackup(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request) { +GoldenThingAdminConnectionImpl::CreateBackup(ExperimentalTag, + NoAwaitlTag, google::test::admin::database::v1::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( retry_policy(*current), backoff_policy(*current), @@ -378,7 +378,7 @@ GoldenThingAdminConnectionImpl::CreateBackup(google::cloud::ExperimentalTag, } future> -GoldenThingAdminConnectionImpl::CreateBackup(google::cloud::ExperimentalTag, +GoldenThingAdminConnectionImpl::CreateBackup(ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { @@ -509,8 +509,8 @@ GoldenThingAdminConnectionImpl::RestoreDatabase(google::test::admin::database::v } StatusOr -GoldenThingAdminConnectionImpl::RestoreDatabase(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { +GoldenThingAdminConnectionImpl::RestoreDatabase(ExperimentalTag, + NoAwaitlTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( retry_policy(*current), backoff_policy(*current), @@ -524,7 +524,7 @@ GoldenThingAdminConnectionImpl::RestoreDatabase(google::cloud::ExperimentalTag, } future> -GoldenThingAdminConnectionImpl::RestoreDatabase(google::cloud::ExperimentalTag, +GoldenThingAdminConnectionImpl::RestoreDatabase(ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { @@ -644,8 +644,8 @@ GoldenThingAdminConnectionImpl::LongRunningWithoutRouting(google::test::admin::d } StatusOr -GoldenThingAdminConnectionImpl::LongRunningWithoutRouting(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { +GoldenThingAdminConnectionImpl::LongRunningWithoutRouting(ExperimentalTag, + NoAwaitlTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( retry_policy(*current), backoff_policy(*current), @@ -659,7 +659,7 @@ GoldenThingAdminConnectionImpl::LongRunningWithoutRouting(google::cloud::Experim } future> -GoldenThingAdminConnectionImpl::LongRunningWithoutRouting(google::cloud::ExperimentalTag, +GoldenThingAdminConnectionImpl::LongRunningWithoutRouting(ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { diff --git a/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.h b/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.h index 07692e967a73d..9d5d13eebdf00 100644 --- a/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.h +++ b/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.h @@ -59,11 +59,11 @@ class GoldenThingAdminConnectionImpl CreateDatabase(google::test::admin::database::v1::CreateDatabaseRequest const& request) override; StatusOr - CreateDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + CreateDatabase(ExperimentalTag, NoAwaitlTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) override; future> - CreateDatabase(google::cloud::ExperimentalTag, + CreateDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -73,11 +73,11 @@ class GoldenThingAdminConnectionImpl UpdateDatabaseDdl(google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; StatusOr - UpdateDatabaseDdl(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + UpdateDatabaseDdl(ExperimentalTag, NoAwaitlTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; future> - UpdateDatabaseDdl(google::cloud::ExperimentalTag, + UpdateDatabaseDdl(ExperimentalTag, google::longrunning::Operation const& operation) override; Status @@ -99,11 +99,11 @@ class GoldenThingAdminConnectionImpl CreateBackup(google::test::admin::database::v1::CreateBackupRequest const& request) override; StatusOr - CreateBackup(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + CreateBackup(ExperimentalTag, NoAwaitlTag, google::test::admin::database::v1::CreateBackupRequest const& request) override; future> - CreateBackup(google::cloud::ExperimentalTag, + CreateBackup(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -122,11 +122,11 @@ class GoldenThingAdminConnectionImpl RestoreDatabase(google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; StatusOr - RestoreDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + RestoreDatabase(ExperimentalTag, NoAwaitlTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; future> - RestoreDatabase(google::cloud::ExperimentalTag, + RestoreDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -139,11 +139,11 @@ class GoldenThingAdminConnectionImpl LongRunningWithoutRouting(google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; StatusOr - LongRunningWithoutRouting(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + LongRunningWithoutRouting(ExperimentalTag, NoAwaitlTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; future> - LongRunningWithoutRouting(google::cloud::ExperimentalTag, + LongRunningWithoutRouting(ExperimentalTag, google::longrunning::Operation const& operation) override; future> diff --git a/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.cc b/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.cc index b8de05c5fee3c..14bca9e584b3f 100644 --- a/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.cc +++ b/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.cc @@ -51,23 +51,23 @@ GoldenThingAdminTracingConnection::CreateDatabase(google::test::admin::database: } StatusOr -GoldenThingAdminTracingConnection::CreateDatabase(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) { +GoldenThingAdminTracingConnection::CreateDatabase(ExperimentalTag, + NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) { auto span = internal::MakeSpan( "golden_v1::GoldenThingAdminConnection::CreateDatabase"); opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateDatabase( - google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); + ExperimentalTag{}, NoAwaitTag{}, request)); } future> -GoldenThingAdminTracingConnection::CreateDatabase(google::cloud::ExperimentalTag, +GoldenThingAdminTracingConnection::CreateDatabase(ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "golden_v1::GoldenThingAdminConnection::CreateDatabase"); internal::OTelScope scope(span); return internal::EndSpan(std::move(span), - child_->CreateDatabase(google::cloud::ExperimentalTag{}, operation)); + child_->CreateDatabase(ExperimentalTag{}, operation)); } StatusOr @@ -86,23 +86,23 @@ GoldenThingAdminTracingConnection::UpdateDatabaseDdl(google::test::admin::databa } StatusOr -GoldenThingAdminTracingConnection::UpdateDatabaseDdl(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) { +GoldenThingAdminTracingConnection::UpdateDatabaseDdl(ExperimentalTag, + NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) { auto span = internal::MakeSpan( "golden_v1::GoldenThingAdminConnection::UpdateDatabaseDdl"); opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->UpdateDatabaseDdl( - google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); + ExperimentalTag{}, NoAwaitTag{}, request)); } future> -GoldenThingAdminTracingConnection::UpdateDatabaseDdl(google::cloud::ExperimentalTag, +GoldenThingAdminTracingConnection::UpdateDatabaseDdl(ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "golden_v1::GoldenThingAdminConnection::UpdateDatabaseDdl"); internal::OTelScope scope(span); return internal::EndSpan(std::move(span), - child_->UpdateDatabaseDdl(google::cloud::ExperimentalTag{}, operation)); + child_->UpdateDatabaseDdl(ExperimentalTag{}, operation)); } Status @@ -149,23 +149,23 @@ GoldenThingAdminTracingConnection::CreateBackup(google::test::admin::database::v } StatusOr -GoldenThingAdminTracingConnection::CreateBackup(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request) { +GoldenThingAdminTracingConnection::CreateBackup(ExperimentalTag, + NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request) { auto span = internal::MakeSpan( "golden_v1::GoldenThingAdminConnection::CreateBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->CreateBackup( - google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); + ExperimentalTag{}, NoAwaitTag{}, request)); } future> -GoldenThingAdminTracingConnection::CreateBackup(google::cloud::ExperimentalTag, +GoldenThingAdminTracingConnection::CreateBackup(ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "golden_v1::GoldenThingAdminConnection::CreateBackup"); internal::OTelScope scope(span); return internal::EndSpan(std::move(span), - child_->CreateBackup(google::cloud::ExperimentalTag{}, operation)); + child_->CreateBackup(ExperimentalTag{}, operation)); } StatusOr @@ -207,23 +207,23 @@ GoldenThingAdminTracingConnection::RestoreDatabase(google::test::admin::database } StatusOr -GoldenThingAdminTracingConnection::RestoreDatabase(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { +GoldenThingAdminTracingConnection::RestoreDatabase(ExperimentalTag, + NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { auto span = internal::MakeSpan( "golden_v1::GoldenThingAdminConnection::RestoreDatabase"); opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RestoreDatabase( - google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); + ExperimentalTag{}, NoAwaitTag{}, request)); } future> -GoldenThingAdminTracingConnection::RestoreDatabase(google::cloud::ExperimentalTag, +GoldenThingAdminTracingConnection::RestoreDatabase(ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "golden_v1::GoldenThingAdminConnection::RestoreDatabase"); internal::OTelScope scope(span); return internal::EndSpan(std::move(span), - child_->RestoreDatabase(google::cloud::ExperimentalTag{}, operation)); + child_->RestoreDatabase(ExperimentalTag{}, operation)); } StreamRange @@ -253,23 +253,23 @@ GoldenThingAdminTracingConnection::LongRunningWithoutRouting(google::test::admin } StatusOr -GoldenThingAdminTracingConnection::LongRunningWithoutRouting(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { +GoldenThingAdminTracingConnection::LongRunningWithoutRouting(ExperimentalTag, + NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { auto span = internal::MakeSpan( "golden_v1::GoldenThingAdminConnection::LongRunningWithoutRouting"); opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->LongRunningWithoutRouting( - google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); + ExperimentalTag{}, NoAwaitTag{}, request)); } future> -GoldenThingAdminTracingConnection::LongRunningWithoutRouting(google::cloud::ExperimentalTag, +GoldenThingAdminTracingConnection::LongRunningWithoutRouting(ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "golden_v1::GoldenThingAdminConnection::LongRunningWithoutRouting"); internal::OTelScope scope(span); return internal::EndSpan(std::move(span), - child_->LongRunningWithoutRouting(google::cloud::ExperimentalTag{}, operation)); + child_->LongRunningWithoutRouting(ExperimentalTag{}, operation)); } future> diff --git a/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.h b/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.h index 5716f1e7b2055..81ba3c19c51e3 100644 --- a/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.h +++ b/generator/integration_tests/golden/v1/internal/golden_thing_admin_tracing_connection.h @@ -47,11 +47,11 @@ class GoldenThingAdminTracingConnection CreateDatabase(google::test::admin::database::v1::CreateDatabaseRequest const& request) override; StatusOr - CreateDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + CreateDatabase(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) override; future> - CreateDatabase(google::cloud::ExperimentalTag, + CreateDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -61,11 +61,11 @@ class GoldenThingAdminTracingConnection UpdateDatabaseDdl(google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; StatusOr - UpdateDatabaseDdl(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + UpdateDatabaseDdl(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; future> - UpdateDatabaseDdl(google::cloud::ExperimentalTag, + UpdateDatabaseDdl(ExperimentalTag, google::longrunning::Operation const& operation) override; Status @@ -87,11 +87,11 @@ class GoldenThingAdminTracingConnection CreateBackup(google::test::admin::database::v1::CreateBackupRequest const& request) override; StatusOr - CreateBackup(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + CreateBackup(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request) override; future> - CreateBackup(google::cloud::ExperimentalTag, + CreateBackup(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -110,11 +110,11 @@ class GoldenThingAdminTracingConnection RestoreDatabase(google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; StatusOr - RestoreDatabase(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + RestoreDatabase(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; future> - RestoreDatabase(google::cloud::ExperimentalTag, + RestoreDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -127,11 +127,11 @@ class GoldenThingAdminTracingConnection LongRunningWithoutRouting(google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; StatusOr - LongRunningWithoutRouting(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + LongRunningWithoutRouting(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; future> - LongRunningWithoutRouting(google::cloud::ExperimentalTag, + LongRunningWithoutRouting(ExperimentalTag, google::longrunning::Operation const& operation) override; future> diff --git a/generator/integration_tests/golden/v1/internal/request_id_connection_impl.cc b/generator/integration_tests/golden/v1/internal/request_id_connection_impl.cc index 4967ffe4b02c2..5c1938d4ea3bb 100644 --- a/generator/integration_tests/golden/v1/internal/request_id_connection_impl.cc +++ b/generator/integration_tests/golden/v1/internal/request_id_connection_impl.cc @@ -119,8 +119,8 @@ RequestIdServiceConnectionImpl::RenameFoo(google::test::requestid::v1::RenameFoo } StatusOr -RequestIdServiceConnectionImpl::RenameFoo(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, google::test::requestid::v1::RenameFooRequest const& request) { +RequestIdServiceConnectionImpl::RenameFoo(ExperimentalTag, + NoAwaitlTag, google::test::requestid::v1::RenameFooRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( retry_policy(*current), backoff_policy(*current), @@ -134,7 +134,7 @@ RequestIdServiceConnectionImpl::RenameFoo(google::cloud::ExperimentalTag, } future> -RequestIdServiceConnectionImpl::RenameFoo(google::cloud::ExperimentalTag, +RequestIdServiceConnectionImpl::RenameFoo(ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { diff --git a/generator/integration_tests/golden/v1/internal/request_id_connection_impl.h b/generator/integration_tests/golden/v1/internal/request_id_connection_impl.h index 90febda5bd513..281b99fa6c078 100644 --- a/generator/integration_tests/golden/v1/internal/request_id_connection_impl.h +++ b/generator/integration_tests/golden/v1/internal/request_id_connection_impl.h @@ -60,11 +60,11 @@ class RequestIdServiceConnectionImpl RenameFoo(google::test::requestid::v1::RenameFooRequest const& request) override; StatusOr - RenameFoo(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + RenameFoo(ExperimentalTag, NoAwaitlTag, google::test::requestid::v1::RenameFooRequest const& request) override; future> - RenameFoo(google::cloud::ExperimentalTag, + RenameFoo(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.cc b/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.cc index 700cde0274121..a419a1b541edc 100644 --- a/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.cc +++ b/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.cc @@ -49,23 +49,23 @@ RequestIdServiceTracingConnection::RenameFoo(google::test::requestid::v1::Rename } StatusOr -RequestIdServiceTracingConnection::RenameFoo(google::cloud::ExperimentalTag, - google::cloud::NoAwaitTag, google::test::requestid::v1::RenameFooRequest const& request) { +RequestIdServiceTracingConnection::RenameFoo(ExperimentalTag, + NoAwaitTag, google::test::requestid::v1::RenameFooRequest const& request) { auto span = internal::MakeSpan( "golden_v1::RequestIdServiceConnection::RenameFoo"); opentelemetry::trace::Scope scope(span); return internal::EndSpan(*span, child_->RenameFoo( - google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, request)); + ExperimentalTag{}, NoAwaitTag{}, request)); } future> -RequestIdServiceTracingConnection::RenameFoo(google::cloud::ExperimentalTag, +RequestIdServiceTracingConnection::RenameFoo(ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "golden_v1::RequestIdServiceConnection::RenameFoo"); internal::OTelScope scope(span); return internal::EndSpan(std::move(span), - child_->RenameFoo(google::cloud::ExperimentalTag{}, operation)); + child_->RenameFoo(ExperimentalTag{}, operation)); } StreamRange diff --git a/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.h b/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.h index 32a5a167d922c..0730ba879b2f8 100644 --- a/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.h +++ b/generator/integration_tests/golden/v1/internal/request_id_tracing_connection.h @@ -47,11 +47,11 @@ class RequestIdServiceTracingConnection RenameFoo(google::test::requestid::v1::RenameFooRequest const& request) override; StatusOr - RenameFoo(google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + RenameFoo(ExperimentalTag, NoAwaitTag, google::test::requestid::v1::RenameFooRequest const& request) override; future> - RenameFoo(google::cloud::ExperimentalTag, + RenameFoo(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/generator/integration_tests/golden/v1/mocks/mock_golden_thing_admin_connection.h b/generator/integration_tests/golden/v1/mocks/mock_golden_thing_admin_connection.h index 237e3d6ab0d43..345ce4ec11d85 100644 --- a/generator/integration_tests/golden/v1/mocks/mock_golden_thing_admin_connection.h +++ b/generator/integration_tests/golden/v1/mocks/mock_golden_thing_admin_connection.h @@ -55,11 +55,11 @@ class MockGoldenThingAdminConnection : public golden_v1::GoldenThingAdminConnect (google::test::admin::database::v1::CreateDatabaseRequest const& request), (override)); MOCK_METHOD(StatusOr, - CreateDatabase, (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + CreateDatabase, (ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request), (override)); MOCK_METHOD(future>, - CreateDatabase, (google::cloud::ExperimentalTag, + CreateDatabase, (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, @@ -71,11 +71,11 @@ class MockGoldenThingAdminConnection : public golden_v1::GoldenThingAdminConnect (google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request), (override)); MOCK_METHOD(StatusOr, - UpdateDatabaseDdl, (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + UpdateDatabaseDdl, (ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request), (override)); MOCK_METHOD(future>, - UpdateDatabaseDdl, (google::cloud::ExperimentalTag, + UpdateDatabaseDdl, (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(Status, @@ -103,11 +103,11 @@ class MockGoldenThingAdminConnection : public golden_v1::GoldenThingAdminConnect (google::test::admin::database::v1::CreateBackupRequest const& request), (override)); MOCK_METHOD(StatusOr, - CreateBackup, (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + CreateBackup, (ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request), (override)); MOCK_METHOD(future>, - CreateBackup, (google::cloud::ExperimentalTag, + CreateBackup, (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, @@ -131,11 +131,11 @@ class MockGoldenThingAdminConnection : public golden_v1::GoldenThingAdminConnect (google::test::admin::database::v1::RestoreDatabaseRequest const& request), (override)); MOCK_METHOD(StatusOr, - RestoreDatabase, (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + RestoreDatabase, (ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request), (override)); MOCK_METHOD(future>, - RestoreDatabase, (google::cloud::ExperimentalTag, + RestoreDatabase, (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), @@ -151,11 +151,11 @@ class MockGoldenThingAdminConnection : public golden_v1::GoldenThingAdminConnect (google::test::admin::database::v1::RestoreDatabaseRequest const& request), (override)); MOCK_METHOD(StatusOr, - LongRunningWithoutRouting, (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + LongRunningWithoutRouting, (ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request), (override)); MOCK_METHOD(future>, - LongRunningWithoutRouting, (google::cloud::ExperimentalTag, + LongRunningWithoutRouting, (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future>, diff --git a/generator/integration_tests/golden/v1/mocks/mock_request_id_connection.h b/generator/integration_tests/golden/v1/mocks/mock_request_id_connection.h index 5b9d765fe95fa..d96361b7df627 100644 --- a/generator/integration_tests/golden/v1/mocks/mock_request_id_connection.h +++ b/generator/integration_tests/golden/v1/mocks/mock_request_id_connection.h @@ -55,11 +55,11 @@ class MockRequestIdServiceConnection : public golden_v1::RequestIdServiceConnect (google::test::requestid::v1::RenameFooRequest const& request), (override)); MOCK_METHOD(StatusOr, - RenameFoo, (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + RenameFoo, (ExperimentalTag, NoAwaitTag, google::test::requestid::v1::RenameFooRequest const& request), (override)); MOCK_METHOD(future>, - RenameFoo, (google::cloud::ExperimentalTag, + RenameFoo, (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), diff --git a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.cc b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.cc index 9300246eca74e..d8c07ec478ec4 100644 --- a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.cc +++ b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.cc @@ -168,7 +168,7 @@ AccessContextManagerConnectionImpl::CreateAccessPolicy( StatusOr AccessContextManagerConnectionImpl::CreateAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1::AccessPolicy const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -184,8 +184,7 @@ AccessContextManagerConnectionImpl::CreateAccessPolicy( future> AccessContextManagerConnectionImpl::CreateAccessPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AccessContextManagerConnectionImpl::UpdateAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1::UpdateAccessPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -280,8 +279,7 @@ AccessContextManagerConnectionImpl::UpdateAccessPolicy( future> AccessContextManagerConnectionImpl::UpdateAccessPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AccessContextManagerConnectionImpl::DeleteAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1::DeleteAccessPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -380,8 +378,7 @@ AccessContextManagerConnectionImpl::DeleteAccessPolicy( future> AccessContextManagerConnectionImpl::DeleteAccessPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AccessContextManagerConnectionImpl::CreateAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1::CreateAccessLevelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -532,8 +529,7 @@ AccessContextManagerConnectionImpl::CreateAccessLevel( future> AccessContextManagerConnectionImpl::CreateAccessLevel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AccessContextManagerConnectionImpl::UpdateAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1::UpdateAccessLevelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -628,8 +624,7 @@ AccessContextManagerConnectionImpl::UpdateAccessLevel( future> AccessContextManagerConnectionImpl::UpdateAccessLevel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AccessContextManagerConnectionImpl::DeleteAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1::DeleteAccessLevelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -728,8 +723,7 @@ AccessContextManagerConnectionImpl::DeleteAccessLevel( future> AccessContextManagerConnectionImpl::DeleteAccessLevel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AccessContextManagerConnectionImpl::ReplaceAccessLevels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: ReplaceAccessLevelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -830,8 +824,7 @@ AccessContextManagerConnectionImpl::ReplaceAccessLevels( future> AccessContextManagerConnectionImpl::ReplaceAccessLevels( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AccessContextManagerConnectionImpl::CreateServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: CreateServicePerimeterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -982,8 +975,7 @@ AccessContextManagerConnectionImpl::CreateServicePerimeter( future> AccessContextManagerConnectionImpl::CreateServicePerimeter( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AccessContextManagerConnectionImpl::UpdateServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: UpdateServicePerimeterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1078,8 +1070,7 @@ AccessContextManagerConnectionImpl::UpdateServicePerimeter( future> AccessContextManagerConnectionImpl::UpdateServicePerimeter( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AccessContextManagerConnectionImpl::DeleteServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: DeleteServicePerimeterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1178,8 +1169,7 @@ AccessContextManagerConnectionImpl::DeleteServicePerimeter( future> AccessContextManagerConnectionImpl::DeleteServicePerimeter( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AccessContextManagerConnectionImpl::ReplaceServicePerimeters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: ReplaceServicePerimetersRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1281,8 +1271,7 @@ AccessContextManagerConnectionImpl::ReplaceServicePerimeters( future> AccessContextManagerConnectionImpl::ReplaceServicePerimeters( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AccessContextManagerConnectionImpl::CommitServicePerimeters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: CommitServicePerimetersRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1384,8 +1373,7 @@ AccessContextManagerConnectionImpl::CommitServicePerimeters( future> AccessContextManagerConnectionImpl::CommitServicePerimeters( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AccessContextManagerConnectionImpl::CreateGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: CreateGcpUserAccessBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1540,8 +1528,7 @@ AccessContextManagerConnectionImpl::CreateGcpUserAccessBinding( future< StatusOr> AccessContextManagerConnectionImpl::CreateGcpUserAccessBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AccessContextManagerConnectionImpl::UpdateGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: UpdateGcpUserAccessBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1638,8 +1625,7 @@ AccessContextManagerConnectionImpl::UpdateGcpUserAccessBinding( future< StatusOr> AccessContextManagerConnectionImpl::UpdateGcpUserAccessBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AccessContextManagerConnectionImpl::DeleteGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: DeleteGcpUserAccessBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1738,8 +1724,7 @@ AccessContextManagerConnectionImpl::DeleteGcpUserAccessBinding( future> AccessContextManagerConnectionImpl::DeleteGcpUserAccessBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1::AccessPolicy const& request) override; future> - CreateAccessPolicy(google::cloud::ExperimentalTag, + CreateAccessPolicy(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -83,12 +83,12 @@ class AccessContextManagerConnectionImpl UpdateAccessPolicyRequest const& request) override; StatusOr UpdateAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: UpdateAccessPolicyRequest const& request) override; future> - UpdateAccessPolicy(google::cloud::ExperimentalTag, + UpdateAccessPolicy(ExperimentalTag, google::longrunning::Operation const& operation) override; future DeleteAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: DeleteAccessPolicyRequest const& request) override; future> - DeleteAccessPolicy(google::cloud::ExperimentalTag, + DeleteAccessPolicy(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -121,12 +121,12 @@ class AccessContextManagerConnectionImpl CreateAccessLevelRequest const& request) override; StatusOr CreateAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: CreateAccessLevelRequest const& request) override; future> - CreateAccessLevel(google::cloud::ExperimentalTag, + CreateAccessLevel(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -134,12 +134,12 @@ class AccessContextManagerConnectionImpl UpdateAccessLevelRequest const& request) override; StatusOr UpdateAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: UpdateAccessLevelRequest const& request) override; future> - UpdateAccessLevel(google::cloud::ExperimentalTag, + UpdateAccessLevel(ExperimentalTag, google::longrunning::Operation const& operation) override; future DeleteAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: DeleteAccessLevelRequest const& request) override; future> - DeleteAccessLevel(google::cloud::ExperimentalTag, + DeleteAccessLevel(ExperimentalTag, google::longrunning::Operation const& operation) override; future ReplaceAccessLevels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: ReplaceAccessLevelsRequest const& request) override; future> - ReplaceAccessLevels(google::cloud::ExperimentalTag, + ReplaceAccessLevels(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -187,13 +187,13 @@ class AccessContextManagerConnectionImpl CreateServicePerimeterRequest const& request) override; StatusOr CreateServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: CreateServicePerimeterRequest const& request) override; future> CreateServicePerimeter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -202,13 +202,13 @@ class AccessContextManagerConnectionImpl UpdateServicePerimeterRequest const& request) override; StatusOr UpdateServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: UpdateServicePerimeterRequest const& request) override; future> UpdateServicePerimeter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future DeleteServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: DeleteServicePerimeterRequest const& request) override; future> DeleteServicePerimeter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future ReplaceServicePerimeters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: ReplaceServicePerimetersRequest const& request) override; future> ReplaceServicePerimeters( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future CommitServicePerimeters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: CommitServicePerimetersRequest const& request) override; future> CommitServicePerimeters( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -279,14 +279,14 @@ class AccessContextManagerConnectionImpl CreateGcpUserAccessBindingRequest const& request) override; StatusOr CreateGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: CreateGcpUserAccessBindingRequest const& request) override; future> CreateGcpUserAccessBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future UpdateGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: UpdateGcpUserAccessBindingRequest const& request) override; future> UpdateGcpUserAccessBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future DeleteGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::identity::accesscontextmanager::v1:: DeleteGcpUserAccessBindingRequest const& request) override; future> DeleteGcpUserAccessBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr SetIamPolicy( diff --git a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.cc b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.cc index 5f6f8fc0be436..0047247957a16 100644 --- a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.cc +++ b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.cc @@ -72,28 +72,26 @@ AccessContextManagerTracingConnection::CreateAccessPolicy( StatusOr AccessContextManagerTracingConnection::CreateAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::AccessPolicy const& request) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "CreateAccessPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateAccessPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateAccessPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AccessContextManagerTracingConnection::CreateAccessPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "CreateAccessPolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateAccessPolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateAccessPolicy( + ExperimentalTag{}, operation)); } future> @@ -110,7 +108,7 @@ AccessContextManagerTracingConnection::UpdateAccessPolicy( StatusOr AccessContextManagerTracingConnection::UpdateAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::UpdateAccessPolicyRequest const& request) { auto span = internal::MakeSpan( @@ -118,21 +116,19 @@ AccessContextManagerTracingConnection::UpdateAccessPolicy( "UpdateAccessPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateAccessPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateAccessPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AccessContextManagerTracingConnection::UpdateAccessPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "UpdateAccessPolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateAccessPolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateAccessPolicy( + ExperimentalTag{}, operation)); } future AccessContextManagerTracingConnection::DeleteAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::DeleteAccessPolicyRequest const& request) { auto span = internal::MakeSpan( @@ -158,22 +154,20 @@ AccessContextManagerTracingConnection::DeleteAccessPolicy( "DeleteAccessPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAccessPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteAccessPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AccessContextManagerTracingConnection::DeleteAccessPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "DeleteAccessPolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteAccessPolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteAccessPolicy( + ExperimentalTag{}, operation)); } StreamRange @@ -214,7 +208,7 @@ AccessContextManagerTracingConnection::CreateAccessLevel( StatusOr AccessContextManagerTracingConnection::CreateAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::CreateAccessLevelRequest const& request) { auto span = internal::MakeSpan( @@ -222,21 +216,19 @@ AccessContextManagerTracingConnection::CreateAccessLevel( "CreateAccessLevel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateAccessLevel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateAccessLevel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AccessContextManagerTracingConnection::CreateAccessLevel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "CreateAccessLevel"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateAccessLevel(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateAccessLevel(ExperimentalTag{}, operation)); } future> @@ -252,7 +244,7 @@ AccessContextManagerTracingConnection::UpdateAccessLevel( StatusOr AccessContextManagerTracingConnection::UpdateAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::UpdateAccessLevelRequest const& request) { auto span = internal::MakeSpan( @@ -260,21 +252,19 @@ AccessContextManagerTracingConnection::UpdateAccessLevel( "UpdateAccessLevel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateAccessLevel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateAccessLevel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AccessContextManagerTracingConnection::UpdateAccessLevel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "UpdateAccessLevel"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateAccessLevel(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateAccessLevel(ExperimentalTag{}, operation)); } future AccessContextManagerTracingConnection::DeleteAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::DeleteAccessLevelRequest const& request) { auto span = internal::MakeSpan( @@ -299,22 +289,20 @@ AccessContextManagerTracingConnection::DeleteAccessLevel( "DeleteAccessLevel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAccessLevel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteAccessLevel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AccessContextManagerTracingConnection::DeleteAccessLevel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "DeleteAccessLevel"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteAccessLevel(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteAccessLevel(ExperimentalTag{}, operation)); } future AccessContextManagerTracingConnection::ReplaceAccessLevels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: ReplaceAccessLevelsRequest const& request) { auto span = internal::MakeSpan( @@ -340,22 +328,20 @@ AccessContextManagerTracingConnection::ReplaceAccessLevels( "ReplaceAccessLevels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ReplaceAccessLevels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ReplaceAccessLevels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AccessContextManagerTracingConnection::ReplaceAccessLevels( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "ReplaceAccessLevels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ReplaceAccessLevels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ReplaceAccessLevels( + ExperimentalTag{}, operation)); } StreamRange @@ -397,29 +383,27 @@ AccessContextManagerTracingConnection::CreateServicePerimeter( StatusOr AccessContextManagerTracingConnection::CreateServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateServicePerimeterRequest const& request) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "CreateServicePerimeter"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateServicePerimeter( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateServicePerimeter(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AccessContextManagerTracingConnection::CreateServicePerimeter( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "CreateServicePerimeter"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateServicePerimeter( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateServicePerimeter( + ExperimentalTag{}, operation)); } future> @@ -436,29 +420,27 @@ AccessContextManagerTracingConnection::UpdateServicePerimeter( StatusOr AccessContextManagerTracingConnection::UpdateServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateServicePerimeterRequest const& request) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "UpdateServicePerimeter"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateServicePerimeter( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateServicePerimeter(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AccessContextManagerTracingConnection::UpdateServicePerimeter( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "UpdateServicePerimeter"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateServicePerimeter( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateServicePerimeter( + ExperimentalTag{}, operation)); } future AccessContextManagerTracingConnection::DeleteServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteServicePerimeterRequest const& request) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "DeleteServicePerimeter"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteServicePerimeter( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteServicePerimeter(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AccessContextManagerTracingConnection::DeleteServicePerimeter( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "DeleteServicePerimeter"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteServicePerimeter( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteServicePerimeter( + ExperimentalTag{}, operation)); } future AccessContextManagerTracingConnection::ReplaceServicePerimeters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: ReplaceServicePerimetersRequest const& request) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "ReplaceServicePerimeters"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ReplaceServicePerimeters( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->ReplaceServicePerimeters(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> AccessContextManagerTracingConnection::ReplaceServicePerimeters( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "ReplaceServicePerimeters"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ReplaceServicePerimeters( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ReplaceServicePerimeters( + ExperimentalTag{}, operation)); } future AccessContextManagerTracingConnection::CommitServicePerimeters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CommitServicePerimetersRequest const& request) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "CommitServicePerimeters"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CommitServicePerimeters( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CommitServicePerimeters(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> AccessContextManagerTracingConnection::CommitServicePerimeters( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "CommitServicePerimeters"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CommitServicePerimeters( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CommitServicePerimeters( + ExperimentalTag{}, operation)); } StreamRange @@ -624,30 +600,28 @@ AccessContextManagerTracingConnection::CreateGcpUserAccessBinding( StatusOr AccessContextManagerTracingConnection::CreateGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateGcpUserAccessBindingRequest const& request) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "CreateGcpUserAccessBinding"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateGcpUserAccessBinding( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateGcpUserAccessBinding(ExperimentalTag{}, NoAwaitTag{}, + request)); } future< StatusOr> AccessContextManagerTracingConnection::CreateGcpUserAccessBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "CreateGcpUserAccessBinding"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateGcpUserAccessBinding( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateGcpUserAccessBinding( + ExperimentalTag{}, operation)); } future< @@ -665,30 +639,28 @@ AccessContextManagerTracingConnection::UpdateGcpUserAccessBinding( StatusOr AccessContextManagerTracingConnection::UpdateGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateGcpUserAccessBindingRequest const& request) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "UpdateGcpUserAccessBinding"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateGcpUserAccessBinding( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateGcpUserAccessBinding(ExperimentalTag{}, NoAwaitTag{}, + request)); } future< StatusOr> AccessContextManagerTracingConnection::UpdateGcpUserAccessBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "UpdateGcpUserAccessBinding"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateGcpUserAccessBinding( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateGcpUserAccessBinding( + ExperimentalTag{}, operation)); } future AccessContextManagerTracingConnection::DeleteGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteGcpUserAccessBindingRequest const& request) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "DeleteGcpUserAccessBinding"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteGcpUserAccessBinding( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteGcpUserAccessBinding(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> AccessContextManagerTracingConnection::DeleteGcpUserAccessBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "accesscontextmanager_v1::AccessContextManagerConnection::" "DeleteGcpUserAccessBinding"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteGcpUserAccessBinding( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteGcpUserAccessBinding( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.h b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.h index 92543a74292c1..b299304b19381 100644 --- a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.h +++ b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_tracing_connection.h @@ -57,12 +57,12 @@ class AccessContextManagerTracingConnection override; StatusOr CreateAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::AccessPolicy const& request) override; future> - CreateAccessPolicy(google::cloud::ExperimentalTag, + CreateAccessPolicy(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -70,12 +70,12 @@ class AccessContextManagerTracingConnection UpdateAccessPolicyRequest const& request) override; StatusOr UpdateAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateAccessPolicyRequest const& request) override; future> - UpdateAccessPolicy(google::cloud::ExperimentalTag, + UpdateAccessPolicy(ExperimentalTag, google::longrunning::Operation const& operation) override; future DeleteAccessPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteAccessPolicyRequest const& request) override; future> - DeleteAccessPolicy(google::cloud::ExperimentalTag, + DeleteAccessPolicy(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -108,12 +108,12 @@ class AccessContextManagerTracingConnection CreateAccessLevelRequest const& request) override; StatusOr CreateAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateAccessLevelRequest const& request) override; future> - CreateAccessLevel(google::cloud::ExperimentalTag, + CreateAccessLevel(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -121,12 +121,12 @@ class AccessContextManagerTracingConnection UpdateAccessLevelRequest const& request) override; StatusOr UpdateAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateAccessLevelRequest const& request) override; future> - UpdateAccessLevel(google::cloud::ExperimentalTag, + UpdateAccessLevel(ExperimentalTag, google::longrunning::Operation const& operation) override; future DeleteAccessLevel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteAccessLevelRequest const& request) override; future> - DeleteAccessLevel(google::cloud::ExperimentalTag, + DeleteAccessLevel(ExperimentalTag, google::longrunning::Operation const& operation) override; future ReplaceAccessLevels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: ReplaceAccessLevelsRequest const& request) override; future> - ReplaceAccessLevels(google::cloud::ExperimentalTag, + ReplaceAccessLevels(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -174,13 +174,13 @@ class AccessContextManagerTracingConnection CreateServicePerimeterRequest const& request) override; StatusOr CreateServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateServicePerimeterRequest const& request) override; future> CreateServicePerimeter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -189,13 +189,13 @@ class AccessContextManagerTracingConnection UpdateServicePerimeterRequest const& request) override; StatusOr UpdateServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateServicePerimeterRequest const& request) override; future> UpdateServicePerimeter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future DeleteServicePerimeter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteServicePerimeterRequest const& request) override; future> DeleteServicePerimeter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future ReplaceServicePerimeters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: ReplaceServicePerimetersRequest const& request) override; future> ReplaceServicePerimeters( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future CommitServicePerimeters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CommitServicePerimetersRequest const& request) override; future> CommitServicePerimeters( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -266,14 +266,14 @@ class AccessContextManagerTracingConnection CreateGcpUserAccessBindingRequest const& request) override; StatusOr CreateGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateGcpUserAccessBindingRequest const& request) override; future> CreateGcpUserAccessBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future UpdateGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateGcpUserAccessBindingRequest const& request) override; future> UpdateGcpUserAccessBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future DeleteGcpUserAccessBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteGcpUserAccessBindingRequest const& request) override; future> DeleteGcpUserAccessBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr SetIamPolicy( diff --git a/google/cloud/accesscontextmanager/v1/mocks/mock_access_context_manager_connection.h b/google/cloud/accesscontextmanager/v1/mocks/mock_access_context_manager_connection.h index 10b64840fc8ae..52593f38a305d 100644 --- a/google/cloud/accesscontextmanager/v1/mocks/mock_access_context_manager_connection.h +++ b/google/cloud/accesscontextmanager/v1/mocks/mock_access_context_manager_connection.h @@ -70,7 +70,7 @@ class MockAccessContextManagerConnection MOCK_METHOD( StatusOr, CreateAccessPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::AccessPolicy const& request), (override)); @@ -78,8 +78,7 @@ class MockAccessContextManagerConnection future< StatusOr>, CreateAccessPolicy, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -91,7 +90,7 @@ class MockAccessContextManagerConnection (override)); MOCK_METHOD(StatusOr, UpdateAccessPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateAccessPolicyRequest const& request), (override)); @@ -100,8 +99,7 @@ class MockAccessContextManagerConnection future< StatusOr>, UpdateAccessPolicy, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future, DeleteAccessPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteAccessPolicyRequest const& request), (override)); @@ -120,7 +118,7 @@ class MockAccessContextManagerConnection MOCK_METHOD(future>, DeleteAccessPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -146,7 +144,7 @@ class MockAccessContextManagerConnection (override)); MOCK_METHOD(StatusOr, CreateAccessLevel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateAccessLevelRequest const& request), (override)); @@ -154,8 +152,7 @@ class MockAccessContextManagerConnection MOCK_METHOD( future>, CreateAccessLevel, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -166,7 +163,7 @@ class MockAccessContextManagerConnection (override)); MOCK_METHOD(StatusOr, UpdateAccessLevel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateAccessLevelRequest const& request), (override)); @@ -174,8 +171,7 @@ class MockAccessContextManagerConnection MOCK_METHOD( future>, UpdateAccessLevel, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future, DeleteAccessLevel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteAccessLevelRequest const& request), (override)); @@ -194,7 +190,7 @@ class MockAccessContextManagerConnection MOCK_METHOD(future>, DeleteAccessLevel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -206,7 +202,7 @@ class MockAccessContextManagerConnection (override)); MOCK_METHOD(StatusOr, ReplaceAccessLevels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: ReplaceAccessLevelsRequest const& request), (override)); @@ -214,7 +210,7 @@ class MockAccessContextManagerConnection MOCK_METHOD(future>, ReplaceAccessLevels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -242,7 +238,7 @@ class MockAccessContextManagerConnection (override)); MOCK_METHOD(StatusOr, CreateServicePerimeter, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateServicePerimeterRequest const& request), (override)); @@ -251,8 +247,7 @@ class MockAccessContextManagerConnection future>, CreateServicePerimeter, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -264,7 +259,7 @@ class MockAccessContextManagerConnection (override)); MOCK_METHOD(StatusOr, UpdateServicePerimeter, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateServicePerimeterRequest const& request), (override)); @@ -273,8 +268,7 @@ class MockAccessContextManagerConnection future>, UpdateServicePerimeter, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future, DeleteServicePerimeter, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteServicePerimeterRequest const& request), (override)); @@ -293,7 +287,7 @@ class MockAccessContextManagerConnection MOCK_METHOD(future>, DeleteServicePerimeter, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -306,7 +300,7 @@ class MockAccessContextManagerConnection MOCK_METHOD(StatusOr, ReplaceServicePerimeters, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: ReplaceServicePerimetersRequest const& request), (override)); @@ -314,7 +308,7 @@ class MockAccessContextManagerConnection MOCK_METHOD(future>, ReplaceServicePerimeters, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -326,7 +320,7 @@ class MockAccessContextManagerConnection (override)); MOCK_METHOD(StatusOr, CommitServicePerimeters, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CommitServicePerimetersRequest const& request), (override)); @@ -334,7 +328,7 @@ class MockAccessContextManagerConnection MOCK_METHOD(future>, CommitServicePerimeters, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -364,7 +358,7 @@ class MockAccessContextManagerConnection MOCK_METHOD(StatusOr, CreateGcpUserAccessBinding, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateGcpUserAccessBindingRequest const& request), (override)); @@ -373,8 +367,7 @@ class MockAccessContextManagerConnection future>, CreateGcpUserAccessBinding, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -387,7 +380,7 @@ class MockAccessContextManagerConnection MOCK_METHOD(StatusOr, UpdateGcpUserAccessBinding, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateGcpUserAccessBindingRequest const& request), (override)); @@ -396,8 +389,7 @@ class MockAccessContextManagerConnection future>, UpdateGcpUserAccessBinding, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future, DeleteGcpUserAccessBinding, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteGcpUserAccessBindingRequest const& request), (override)); @@ -417,7 +409,7 @@ class MockAccessContextManagerConnection MOCK_METHOD(future>, DeleteGcpUserAccessBinding, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/aiplatform/v1/internal/dataset_connection_impl.cc b/google/cloud/aiplatform/v1/internal/dataset_connection_impl.cc index 2deb42b93781b..ebd4d8b512ef8 100644 --- a/google/cloud/aiplatform/v1/internal/dataset_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/dataset_connection_impl.cc @@ -107,7 +107,7 @@ DatasetServiceConnectionImpl::CreateDataset( StatusOr DatasetServiceConnectionImpl::CreateDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateDatasetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -123,8 +123,7 @@ DatasetServiceConnectionImpl::CreateDataset( future> DatasetServiceConnectionImpl::CreateDataset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatasetServiceConnectionImpl::DeleteDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteDatasetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -279,8 +278,7 @@ DatasetServiceConnectionImpl::DeleteDataset( future> DatasetServiceConnectionImpl::DeleteDataset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatasetServiceConnectionImpl::ImportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::ImportDataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -372,8 +370,7 @@ DatasetServiceConnectionImpl::ImportData( future> DatasetServiceConnectionImpl::ImportData( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatasetServiceConnectionImpl::ExportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::ExportDataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -465,8 +462,7 @@ DatasetServiceConnectionImpl::ExportData( future> DatasetServiceConnectionImpl::ExportData( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatasetServiceConnectionImpl::CreateDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -560,8 +556,7 @@ DatasetServiceConnectionImpl::CreateDatasetVersion( future> DatasetServiceConnectionImpl::CreateDatasetVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatasetServiceConnectionImpl::DeleteDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -670,8 +665,7 @@ DatasetServiceConnectionImpl::DeleteDatasetVersion( future> DatasetServiceConnectionImpl::DeleteDatasetVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatasetServiceConnectionImpl::RestoreDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -817,8 +811,7 @@ DatasetServiceConnectionImpl::RestoreDatasetVersion( future> DatasetServiceConnectionImpl::RestoreDatasetVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatasetServiceConnectionImpl::DeleteSavedQuery( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1014,8 +1007,7 @@ DatasetServiceConnectionImpl::DeleteSavedQuery( future> DatasetServiceConnectionImpl::DeleteSavedQuery( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateDatasetRequest const& request) override; future> CreateDataset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetDataset( @@ -80,12 +80,12 @@ class DatasetServiceConnectionImpl request) override; StatusOr DeleteDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteDatasetRequest const& request) override; future> - DeleteDataset(google::cloud::ExperimentalTag, + DeleteDataset(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -93,11 +93,11 @@ class DatasetServiceConnectionImpl google::cloud::aiplatform::v1::ImportDataRequest const& request) override; StatusOr ImportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::ImportDataRequest const& request) override; future> - ImportData(google::cloud::ExperimentalTag, + ImportData(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -105,11 +105,11 @@ class DatasetServiceConnectionImpl google::cloud::aiplatform::v1::ExportDataRequest const& request) override; StatusOr ExportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::ExportDataRequest const& request) override; future> - ExportData(google::cloud::ExperimentalTag, + ExportData(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -118,13 +118,13 @@ class DatasetServiceConnectionImpl override; StatusOr CreateDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request) override; future> CreateDatasetVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr UpdateDatasetVersion( @@ -137,13 +137,13 @@ class DatasetServiceConnectionImpl override; StatusOr DeleteDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& request) override; future> DeleteDatasetVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetDatasetVersion( @@ -160,13 +160,13 @@ class DatasetServiceConnectionImpl request) override; StatusOr RestoreDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& request) override; future> RestoreDatasetVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListDataItems( @@ -183,12 +183,12 @@ class DatasetServiceConnectionImpl request) override; StatusOr DeleteSavedQuery( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request) override; future> - DeleteSavedQuery(google::cloud::ExperimentalTag, + DeleteSavedQuery(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAnnotationSpec( diff --git a/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.cc index 3d37e3d4eb71c..b15619218b1cd 100644 --- a/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.cc @@ -44,26 +44,23 @@ DatasetServiceTracingConnection::CreateDataset( StatusOr DatasetServiceTracingConnection::CreateDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDatasetRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::CreateDataset"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateDataset(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateDataset(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatasetServiceTracingConnection::CreateDataset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::CreateDataset"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateDataset(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateDataset(ExperimentalTag{}, operation)); } StatusOr @@ -106,26 +103,23 @@ DatasetServiceTracingConnection::DeleteDataset( StatusOr DatasetServiceTracingConnection::DeleteDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDatasetRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::DeleteDataset"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteDataset(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteDataset(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatasetServiceTracingConnection::DeleteDataset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::DeleteDataset"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteDataset(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteDataset(ExperimentalTag{}, operation)); } future> @@ -139,26 +133,23 @@ DatasetServiceTracingConnection::ImportData( StatusOr DatasetServiceTracingConnection::ImportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ImportDataRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::DatasetServiceConnection::ImportData"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportData(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ImportData(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatasetServiceTracingConnection::ImportData( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("aiplatform_v1::DatasetServiceConnection::ImportData"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ImportData(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ImportData(ExperimentalTag{}, operation)); } future> @@ -172,26 +163,23 @@ DatasetServiceTracingConnection::ExportData( StatusOr DatasetServiceTracingConnection::ExportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportDataRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::DatasetServiceConnection::ExportData"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportData(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ExportData(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatasetServiceTracingConnection::ExportData( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("aiplatform_v1::DatasetServiceConnection::ExportData"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ExportData(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ExportData(ExperimentalTag{}, operation)); } future> @@ -206,26 +194,24 @@ DatasetServiceTracingConnection::CreateDatasetVersion( StatusOr DatasetServiceTracingConnection::CreateDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::CreateDatasetVersion"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateDatasetVersion( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateDatasetVersion(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatasetServiceTracingConnection::CreateDatasetVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::CreateDatasetVersion"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateDatasetVersion( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateDatasetVersion( + ExperimentalTag{}, operation)); } StatusOr @@ -249,26 +235,24 @@ DatasetServiceTracingConnection::DeleteDatasetVersion( StatusOr DatasetServiceTracingConnection::DeleteDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::DeleteDatasetVersion"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteDatasetVersion( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteDatasetVersion(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatasetServiceTracingConnection::DeleteDatasetVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::DeleteDatasetVersion"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteDatasetVersion( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteDatasetVersion( + ExperimentalTag{}, operation)); } StatusOr @@ -305,27 +289,25 @@ DatasetServiceTracingConnection::RestoreDatasetVersion( StatusOr DatasetServiceTracingConnection::RestoreDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::RestoreDatasetVersion"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RestoreDatasetVersion( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->RestoreDatasetVersion(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatasetServiceTracingConnection::RestoreDatasetVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::RestoreDatasetVersion"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RestoreDatasetVersion( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RestoreDatasetVersion( + ExperimentalTag{}, operation)); } StreamRange @@ -374,26 +356,24 @@ DatasetServiceTracingConnection::DeleteSavedQuery( StatusOr DatasetServiceTracingConnection::DeleteSavedQuery( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::DeleteSavedQuery"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSavedQuery(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteSavedQuery(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatasetServiceTracingConnection::DeleteSavedQuery( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::DatasetServiceConnection::DeleteSavedQuery"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteSavedQuery(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteSavedQuery(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.h b/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.h index f065c230c26ac..168d363b59972 100644 --- a/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/dataset_tracing_connection.h @@ -45,12 +45,12 @@ class DatasetServiceTracingConnection override; StatusOr CreateDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDatasetRequest const& request) override; future> CreateDataset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetDataset( @@ -68,12 +68,12 @@ class DatasetServiceTracingConnection request) override; StatusOr DeleteDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDatasetRequest const& request) override; future> - DeleteDataset(google::cloud::ExperimentalTag, + DeleteDataset(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -81,11 +81,11 @@ class DatasetServiceTracingConnection google::cloud::aiplatform::v1::ImportDataRequest const& request) override; StatusOr ImportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ImportDataRequest const& request) override; future> - ImportData(google::cloud::ExperimentalTag, + ImportData(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -93,11 +93,11 @@ class DatasetServiceTracingConnection google::cloud::aiplatform::v1::ExportDataRequest const& request) override; StatusOr ExportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportDataRequest const& request) override; future> - ExportData(google::cloud::ExperimentalTag, + ExportData(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -106,13 +106,13 @@ class DatasetServiceTracingConnection override; StatusOr CreateDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request) override; future> CreateDatasetVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr UpdateDatasetVersion( @@ -125,13 +125,13 @@ class DatasetServiceTracingConnection override; StatusOr DeleteDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& request) override; future> DeleteDatasetVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetDatasetVersion( @@ -148,13 +148,13 @@ class DatasetServiceTracingConnection request) override; StatusOr RestoreDatasetVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& request) override; future> RestoreDatasetVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListDataItems( @@ -171,12 +171,12 @@ class DatasetServiceTracingConnection request) override; StatusOr DeleteSavedQuery( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request) override; future> - DeleteSavedQuery(google::cloud::ExperimentalTag, + DeleteSavedQuery(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAnnotationSpec( diff --git a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.cc b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.cc index e56bac0101628..3a66f74ce3a90 100644 --- a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.cc @@ -118,7 +118,7 @@ DeploymentResourcePoolServiceConnectionImpl::CreateDeploymentResourcePool( StatusOr DeploymentResourcePoolServiceConnectionImpl::CreateDeploymentResourcePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -135,8 +135,7 @@ DeploymentResourcePoolServiceConnectionImpl::CreateDeploymentResourcePool( future> DeploymentResourcePoolServiceConnectionImpl::CreateDeploymentResourcePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DeploymentResourcePoolServiceConnectionImpl::DeleteDeploymentResourcePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -286,8 +285,7 @@ DeploymentResourcePoolServiceConnectionImpl::DeleteDeploymentResourcePool( future> DeploymentResourcePoolServiceConnectionImpl::DeleteDeploymentResourcePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateDeploymentResourcePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& request) override; future> CreateDeploymentResourcePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -84,13 +84,13 @@ class DeploymentResourcePoolServiceConnectionImpl request) override; StatusOr DeleteDeploymentResourcePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& request) override; future> DeleteDeploymentResourcePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.cc index 371f9bbe2ffad..e987ae4639e4d 100644 --- a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.cc @@ -49,29 +49,28 @@ DeploymentResourcePoolServiceTracingConnection::CreateDeploymentResourcePool( StatusOr DeploymentResourcePoolServiceTracingConnection::CreateDeploymentResourcePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::DeploymentResourcePoolServiceConnection::" "CreateDeploymentResourcePool"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateDeploymentResourcePool( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateDeploymentResourcePool(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> DeploymentResourcePoolServiceTracingConnection::CreateDeploymentResourcePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::DeploymentResourcePoolServiceConnection::" "CreateDeploymentResourcePool"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateDeploymentResourcePool( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->CreateDeploymentResourcePool(ExperimentalTag{}, operation)); } StatusOr @@ -112,29 +111,28 @@ DeploymentResourcePoolServiceTracingConnection::DeleteDeploymentResourcePool( StatusOr DeploymentResourcePoolServiceTracingConnection::DeleteDeploymentResourcePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::DeploymentResourcePoolServiceConnection::" "DeleteDeploymentResourcePool"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteDeploymentResourcePool( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteDeploymentResourcePool(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> DeploymentResourcePoolServiceTracingConnection::DeleteDeploymentResourcePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::DeploymentResourcePoolServiceConnection::" "DeleteDeploymentResourcePool"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteDeploymentResourcePool( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->DeleteDeploymentResourcePool(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.h b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.h index b90f049d520c1..646489b27e67d 100644 --- a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_tracing_connection.h @@ -47,13 +47,13 @@ class DeploymentResourcePoolServiceTracingConnection request) override; StatusOr CreateDeploymentResourcePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& request) override; future> CreateDeploymentResourcePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -72,13 +72,13 @@ class DeploymentResourcePoolServiceTracingConnection request) override; StatusOr DeleteDeploymentResourcePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& request) override; future> DeleteDeploymentResourcePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.cc b/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.cc index efef88d741d81..32b9ea2ce42a5 100644 --- a/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.cc @@ -108,7 +108,7 @@ EndpointServiceConnectionImpl::CreateEndpoint( StatusOr EndpointServiceConnectionImpl::CreateEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateEndpointRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -124,8 +124,7 @@ EndpointServiceConnectionImpl::CreateEndpoint( future> EndpointServiceConnectionImpl::CreateEndpoint( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EndpointServiceConnectionImpl::DeleteEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteEndpointRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -280,8 +279,7 @@ EndpointServiceConnectionImpl::DeleteEndpoint( future> EndpointServiceConnectionImpl::DeleteEndpoint( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EndpointServiceConnectionImpl::DeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeployModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -373,8 +371,7 @@ EndpointServiceConnectionImpl::DeployModel( future> EndpointServiceConnectionImpl::DeployModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EndpointServiceConnectionImpl::UndeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UndeployModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -467,8 +464,7 @@ EndpointServiceConnectionImpl::UndeployModel( future> EndpointServiceConnectionImpl::UndeployModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EndpointServiceConnectionImpl::MutateDeployedModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -562,8 +558,7 @@ EndpointServiceConnectionImpl::MutateDeployedModel( future> EndpointServiceConnectionImpl::MutateDeployedModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateEndpointRequest const& request) override; future> CreateEndpoint( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetEndpoint( @@ -81,12 +81,12 @@ class EndpointServiceConnectionImpl request) override; StatusOr DeleteEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteEndpointRequest const& request) override; future> - DeleteEndpoint(google::cloud::ExperimentalTag, + DeleteEndpoint(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -94,12 +94,12 @@ class EndpointServiceConnectionImpl override; StatusOr DeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeployModelRequest const& request) override; future> - DeployModel(google::cloud::ExperimentalTag, + DeployModel(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -107,12 +107,12 @@ class EndpointServiceConnectionImpl request) override; StatusOr UndeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UndeployModelRequest const& request) override; future> - UndeployModel(google::cloud::ExperimentalTag, + UndeployModel(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -121,12 +121,12 @@ class EndpointServiceConnectionImpl override; StatusOr MutateDeployedModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request) override; future> - MutateDeployedModel(google::cloud::ExperimentalTag, + MutateDeployedModel(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.cc index 21ab95b11b1c7..d405ac895b8c7 100644 --- a/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.cc @@ -44,26 +44,23 @@ EndpointServiceTracingConnection::CreateEndpoint( StatusOr EndpointServiceTracingConnection::CreateEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateEndpointRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::EndpointServiceConnection::CreateEndpoint"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateEndpoint(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateEndpoint(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EndpointServiceTracingConnection::CreateEndpoint( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::EndpointServiceConnection::CreateEndpoint"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateEndpoint(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateEndpoint(ExperimentalTag{}, operation)); } StatusOr @@ -106,26 +103,23 @@ EndpointServiceTracingConnection::DeleteEndpoint( StatusOr EndpointServiceTracingConnection::DeleteEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteEndpointRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::EndpointServiceConnection::DeleteEndpoint"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteEndpoint(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteEndpoint(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EndpointServiceTracingConnection::DeleteEndpoint( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::EndpointServiceConnection::DeleteEndpoint"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteEndpoint(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteEndpoint(ExperimentalTag{}, operation)); } future> @@ -139,26 +133,23 @@ EndpointServiceTracingConnection::DeployModel( StatusOr EndpointServiceTracingConnection::DeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeployModelRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::EndpointServiceConnection::DeployModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeployModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeployModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EndpointServiceTracingConnection::DeployModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::EndpointServiceConnection::DeployModel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeployModel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeployModel(ExperimentalTag{}, operation)); } future> @@ -172,26 +163,23 @@ EndpointServiceTracingConnection::UndeployModel( StatusOr EndpointServiceTracingConnection::UndeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UndeployModelRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::EndpointServiceConnection::UndeployModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UndeployModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UndeployModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EndpointServiceTracingConnection::UndeployModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::EndpointServiceConnection::UndeployModel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UndeployModel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UndeployModel(ExperimentalTag{}, operation)); } future> @@ -206,26 +194,24 @@ EndpointServiceTracingConnection::MutateDeployedModel( StatusOr EndpointServiceTracingConnection::MutateDeployedModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::EndpointServiceConnection::MutateDeployedModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->MutateDeployedModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->MutateDeployedModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EndpointServiceTracingConnection::MutateDeployedModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::EndpointServiceConnection::MutateDeployedModel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->MutateDeployedModel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->MutateDeployedModel( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.h b/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.h index 4c904d0dce4c1..2301361deab72 100644 --- a/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/endpoint_tracing_connection.h @@ -45,12 +45,12 @@ class EndpointServiceTracingConnection override; StatusOr CreateEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateEndpointRequest const& request) override; future> CreateEndpoint( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetEndpoint( @@ -69,12 +69,12 @@ class EndpointServiceTracingConnection request) override; StatusOr DeleteEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteEndpointRequest const& request) override; future> - DeleteEndpoint(google::cloud::ExperimentalTag, + DeleteEndpoint(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -82,12 +82,12 @@ class EndpointServiceTracingConnection override; StatusOr DeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeployModelRequest const& request) override; future> - DeployModel(google::cloud::ExperimentalTag, + DeployModel(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -95,12 +95,12 @@ class EndpointServiceTracingConnection request) override; StatusOr UndeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UndeployModelRequest const& request) override; future> - UndeployModel(google::cloud::ExperimentalTag, + UndeployModel(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -109,12 +109,12 @@ class EndpointServiceTracingConnection override; StatusOr MutateDeployedModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request) override; future> - MutateDeployedModel(google::cloud::ExperimentalTag, + MutateDeployedModel(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.cc b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.cc index efbc4d78ebd5f..fd5f04e48fafc 100644 --- a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.cc @@ -120,7 +120,7 @@ FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureOnlineStore( StatusOr FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -138,8 +138,7 @@ FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureOnlineStore( future> FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureOnlineStore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeatureOnlineStoreAdminServiceConnectionImpl::UpdateFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -289,8 +288,7 @@ FeatureOnlineStoreAdminServiceConnectionImpl::UpdateFeatureOnlineStore( future> FeatureOnlineStoreAdminServiceConnectionImpl::UpdateFeatureOnlineStore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -387,8 +385,7 @@ FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureOnlineStore( future> FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureOnlineStore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -482,8 +479,7 @@ FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureView( future> FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureView( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeatureOnlineStoreAdminServiceConnectionImpl::UpdateFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -627,8 +623,7 @@ FeatureOnlineStoreAdminServiceConnectionImpl::UpdateFeatureView( future> FeatureOnlineStoreAdminServiceConnectionImpl::UpdateFeatureView( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -722,8 +717,7 @@ FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureView( future> FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureView( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& request) override; future> CreateFeatureOnlineStore( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -85,13 +85,13 @@ class FeatureOnlineStoreAdminServiceConnectionImpl request) override; StatusOr UpdateFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& request) override; future> UpdateFeatureOnlineStore( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -100,13 +100,13 @@ class FeatureOnlineStoreAdminServiceConnectionImpl request) override; StatusOr DeleteFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& request) override; future> DeleteFeatureOnlineStore( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -115,12 +115,12 @@ class FeatureOnlineStoreAdminServiceConnectionImpl override; StatusOr CreateFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request) override; future> - CreateFeatureView(google::cloud::ExperimentalTag, + CreateFeatureView(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetFeatureView( @@ -136,12 +136,12 @@ class FeatureOnlineStoreAdminServiceConnectionImpl override; StatusOr UpdateFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request) override; future> - UpdateFeatureView(google::cloud::ExperimentalTag, + UpdateFeatureView(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -150,12 +150,12 @@ class FeatureOnlineStoreAdminServiceConnectionImpl override; StatusOr DeleteFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request) override; future> - DeleteFeatureView(google::cloud::ExperimentalTag, + DeleteFeatureView(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.cc index ac2771458aa69..5dc6b854c8965 100644 --- a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.cc @@ -49,29 +49,27 @@ FeatureOnlineStoreAdminServiceTracingConnection::CreateFeatureOnlineStore( StatusOr FeatureOnlineStoreAdminServiceTracingConnection::CreateFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "CreateFeatureOnlineStore"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateFeatureOnlineStore( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateFeatureOnlineStore(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> FeatureOnlineStoreAdminServiceTracingConnection::CreateFeatureOnlineStore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "CreateFeatureOnlineStore"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateFeatureOnlineStore( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateFeatureOnlineStore( + ExperimentalTag{}, operation)); } StatusOr @@ -112,29 +110,27 @@ FeatureOnlineStoreAdminServiceTracingConnection::UpdateFeatureOnlineStore( StatusOr FeatureOnlineStoreAdminServiceTracingConnection::UpdateFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "UpdateFeatureOnlineStore"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateFeatureOnlineStore( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateFeatureOnlineStore(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> FeatureOnlineStoreAdminServiceTracingConnection::UpdateFeatureOnlineStore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "UpdateFeatureOnlineStore"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateFeatureOnlineStore( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateFeatureOnlineStore( + ExperimentalTag{}, operation)); } future> @@ -151,29 +147,27 @@ FeatureOnlineStoreAdminServiceTracingConnection::DeleteFeatureOnlineStore( StatusOr FeatureOnlineStoreAdminServiceTracingConnection::DeleteFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "DeleteFeatureOnlineStore"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteFeatureOnlineStore( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteFeatureOnlineStore(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> FeatureOnlineStoreAdminServiceTracingConnection::DeleteFeatureOnlineStore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "DeleteFeatureOnlineStore"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteFeatureOnlineStore( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteFeatureOnlineStore( + ExperimentalTag{}, operation)); } future> @@ -188,28 +182,26 @@ FeatureOnlineStoreAdminServiceTracingConnection::CreateFeatureView( StatusOr FeatureOnlineStoreAdminServiceTracingConnection::CreateFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "CreateFeatureView"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateFeatureView(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateFeatureView(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeatureOnlineStoreAdminServiceTracingConnection::CreateFeatureView( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "CreateFeatureView"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateFeatureView(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateFeatureView(ExperimentalTag{}, operation)); } StatusOr @@ -247,28 +239,26 @@ FeatureOnlineStoreAdminServiceTracingConnection::UpdateFeatureView( StatusOr FeatureOnlineStoreAdminServiceTracingConnection::UpdateFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "UpdateFeatureView"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateFeatureView(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateFeatureView(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeatureOnlineStoreAdminServiceTracingConnection::UpdateFeatureView( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "UpdateFeatureView"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateFeatureView(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateFeatureView(ExperimentalTag{}, operation)); } future> @@ -283,28 +273,26 @@ FeatureOnlineStoreAdminServiceTracingConnection::DeleteFeatureView( StatusOr FeatureOnlineStoreAdminServiceTracingConnection::DeleteFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "DeleteFeatureView"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteFeatureView(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteFeatureView(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeatureOnlineStoreAdminServiceTracingConnection::DeleteFeatureView( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureOnlineStoreAdminServiceConnection::" "DeleteFeatureView"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteFeatureView(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteFeatureView(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.h b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.h index 35b3141236cfd..e2bb0de28eca0 100644 --- a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_tracing_connection.h @@ -47,13 +47,13 @@ class FeatureOnlineStoreAdminServiceTracingConnection request) override; StatusOr CreateFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& request) override; future> CreateFeatureOnlineStore( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -72,13 +72,13 @@ class FeatureOnlineStoreAdminServiceTracingConnection request) override; StatusOr UpdateFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& request) override; future> UpdateFeatureOnlineStore( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -87,13 +87,13 @@ class FeatureOnlineStoreAdminServiceTracingConnection request) override; StatusOr DeleteFeatureOnlineStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& request) override; future> DeleteFeatureOnlineStore( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -102,12 +102,12 @@ class FeatureOnlineStoreAdminServiceTracingConnection override; StatusOr CreateFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request) override; future> - CreateFeatureView(google::cloud::ExperimentalTag, + CreateFeatureView(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetFeatureView( @@ -123,12 +123,12 @@ class FeatureOnlineStoreAdminServiceTracingConnection override; StatusOr UpdateFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request) override; future> - UpdateFeatureView(google::cloud::ExperimentalTag, + UpdateFeatureView(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -137,12 +137,12 @@ class FeatureOnlineStoreAdminServiceTracingConnection override; StatusOr DeleteFeatureView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request) override; future> - DeleteFeatureView(google::cloud::ExperimentalTag, + DeleteFeatureView(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.cc b/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.cc index aed657218644b..22edf6bf7dc73 100644 --- a/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.cc @@ -113,7 +113,7 @@ FeatureRegistryServiceConnectionImpl::CreateFeatureGroup( StatusOr FeatureRegistryServiceConnectionImpl::CreateFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -129,8 +129,7 @@ FeatureRegistryServiceConnectionImpl::CreateFeatureGroup( future> FeatureRegistryServiceConnectionImpl::CreateFeatureGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeatureRegistryServiceConnectionImpl::UpdateFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -275,8 +274,7 @@ FeatureRegistryServiceConnectionImpl::UpdateFeatureGroup( future> FeatureRegistryServiceConnectionImpl::UpdateFeatureGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeatureRegistryServiceConnectionImpl::DeleteFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -370,8 +368,7 @@ FeatureRegistryServiceConnectionImpl::DeleteFeatureGroup( future> FeatureRegistryServiceConnectionImpl::DeleteFeatureGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeatureRegistryServiceConnectionImpl::CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -464,8 +461,7 @@ FeatureRegistryServiceConnectionImpl::CreateFeature( future> FeatureRegistryServiceConnectionImpl::CreateFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeatureRegistryServiceConnectionImpl::UpdateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateFeatureRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -606,8 +602,7 @@ FeatureRegistryServiceConnectionImpl::UpdateFeature( future> FeatureRegistryServiceConnectionImpl::UpdateFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeatureRegistryServiceConnectionImpl::DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -699,8 +694,7 @@ FeatureRegistryServiceConnectionImpl::DeleteFeature( future> FeatureRegistryServiceConnectionImpl::DeleteFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request) override; future> - CreateFeatureGroup(google::cloud::ExperimentalTag, + CreateFeatureGroup(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetFeatureGroup( @@ -79,12 +79,12 @@ class FeatureRegistryServiceConnectionImpl override; StatusOr UpdateFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request) override; future> - UpdateFeatureGroup(google::cloud::ExperimentalTag, + UpdateFeatureGroup(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -93,12 +93,12 @@ class FeatureRegistryServiceConnectionImpl override; StatusOr DeleteFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request) override; future> - DeleteFeatureGroup(google::cloud::ExperimentalTag, + DeleteFeatureGroup(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateFeature( @@ -106,12 +106,12 @@ class FeatureRegistryServiceConnectionImpl override; StatusOr CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateFeatureRequest const& request) override; future> CreateFeature( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetFeature( @@ -125,12 +125,12 @@ class FeatureRegistryServiceConnectionImpl override; StatusOr UpdateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateFeatureRequest const& request) override; future> UpdateFeature( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -138,12 +138,12 @@ class FeatureRegistryServiceConnectionImpl request) override; StatusOr DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) override; future> - DeleteFeature(google::cloud::ExperimentalTag, + DeleteFeature(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.cc index 9ee0b8370b8c6..6c043bd6205d0 100644 --- a/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.cc @@ -46,26 +46,24 @@ FeatureRegistryServiceTracingConnection::CreateFeatureGroup( StatusOr FeatureRegistryServiceTracingConnection::CreateFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::CreateFeatureGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateFeatureGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateFeatureGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeatureRegistryServiceTracingConnection::CreateFeatureGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::CreateFeatureGroup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateFeatureGroup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateFeatureGroup( + ExperimentalTag{}, operation)); } StatusOr @@ -101,26 +99,24 @@ FeatureRegistryServiceTracingConnection::UpdateFeatureGroup( StatusOr FeatureRegistryServiceTracingConnection::UpdateFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::UpdateFeatureGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateFeatureGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateFeatureGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeatureRegistryServiceTracingConnection::UpdateFeatureGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::UpdateFeatureGroup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateFeatureGroup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateFeatureGroup( + ExperimentalTag{}, operation)); } future> @@ -135,26 +131,24 @@ FeatureRegistryServiceTracingConnection::DeleteFeatureGroup( StatusOr FeatureRegistryServiceTracingConnection::DeleteFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::DeleteFeatureGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteFeatureGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteFeatureGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeatureRegistryServiceTracingConnection::DeleteFeatureGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::DeleteFeatureGroup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteFeatureGroup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteFeatureGroup( + ExperimentalTag{}, operation)); } future> @@ -168,26 +162,23 @@ FeatureRegistryServiceTracingConnection::CreateFeature( StatusOr FeatureRegistryServiceTracingConnection::CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::CreateFeature"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateFeature(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateFeature(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeatureRegistryServiceTracingConnection::CreateFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::CreateFeature"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateFeature(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateFeature(ExperimentalTag{}, operation)); } StatusOr @@ -221,26 +212,23 @@ FeatureRegistryServiceTracingConnection::UpdateFeature( StatusOr FeatureRegistryServiceTracingConnection::UpdateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::UpdateFeature"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateFeature(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateFeature(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeatureRegistryServiceTracingConnection::UpdateFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::UpdateFeature"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateFeature(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateFeature(ExperimentalTag{}, operation)); } future> @@ -254,26 +242,23 @@ FeatureRegistryServiceTracingConnection::DeleteFeature( StatusOr FeatureRegistryServiceTracingConnection::DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::DeleteFeature"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteFeature(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteFeature(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeatureRegistryServiceTracingConnection::DeleteFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeatureRegistryServiceConnection::DeleteFeature"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteFeature(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteFeature(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.h b/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.h index e2dad1679d9f7..e99a12d3d53bc 100644 --- a/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/feature_registry_tracing_connection.h @@ -46,12 +46,12 @@ class FeatureRegistryServiceTracingConnection override; StatusOr CreateFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request) override; future> - CreateFeatureGroup(google::cloud::ExperimentalTag, + CreateFeatureGroup(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetFeatureGroup( @@ -67,12 +67,12 @@ class FeatureRegistryServiceTracingConnection override; StatusOr UpdateFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request) override; future> - UpdateFeatureGroup(google::cloud::ExperimentalTag, + UpdateFeatureGroup(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -81,12 +81,12 @@ class FeatureRegistryServiceTracingConnection override; StatusOr DeleteFeatureGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request) override; future> - DeleteFeatureGroup(google::cloud::ExperimentalTag, + DeleteFeatureGroup(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateFeature( @@ -94,12 +94,12 @@ class FeatureRegistryServiceTracingConnection override; StatusOr CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureRequest const& request) override; future> CreateFeature( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetFeature( @@ -113,12 +113,12 @@ class FeatureRegistryServiceTracingConnection override; StatusOr UpdateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureRequest const& request) override; future> UpdateFeature( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -126,12 +126,12 @@ class FeatureRegistryServiceTracingConnection request) override; StatusOr DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) override; future> - DeleteFeature(google::cloud::ExperimentalTag, + DeleteFeature(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.cc b/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.cc index 0a30efaf6d4b2..b3f8e8434e9d0 100644 --- a/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.cc @@ -110,7 +110,7 @@ FeaturestoreServiceConnectionImpl::CreateFeaturestore( StatusOr FeaturestoreServiceConnectionImpl::CreateFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -126,8 +126,7 @@ FeaturestoreServiceConnectionImpl::CreateFeaturestore( future> FeaturestoreServiceConnectionImpl::CreateFeaturestore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeaturestoreServiceConnectionImpl::UpdateFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -271,8 +270,7 @@ FeaturestoreServiceConnectionImpl::UpdateFeaturestore( future> FeaturestoreServiceConnectionImpl::UpdateFeaturestore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeaturestoreServiceConnectionImpl::DeleteFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -366,8 +364,7 @@ FeaturestoreServiceConnectionImpl::DeleteFeaturestore( future> FeaturestoreServiceConnectionImpl::DeleteFeaturestore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeaturestoreServiceConnectionImpl::CreateEntityType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -461,8 +458,7 @@ FeaturestoreServiceConnectionImpl::CreateEntityType( future> FeaturestoreServiceConnectionImpl::CreateEntityType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeaturestoreServiceConnectionImpl::DeleteEntityType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -620,8 +616,7 @@ FeaturestoreServiceConnectionImpl::DeleteEntityType( future> FeaturestoreServiceConnectionImpl::DeleteEntityType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeaturestoreServiceConnectionImpl::CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -714,8 +709,7 @@ FeaturestoreServiceConnectionImpl::CreateFeature( future> FeaturestoreServiceConnectionImpl::CreateFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeaturestoreServiceConnectionImpl::BatchCreateFeatures( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -808,8 +802,7 @@ FeaturestoreServiceConnectionImpl::BatchCreateFeatures( future> FeaturestoreServiceConnectionImpl::BatchCreateFeatures( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeaturestoreServiceConnectionImpl::DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -965,8 +958,7 @@ FeaturestoreServiceConnectionImpl::DeleteFeature( future> FeaturestoreServiceConnectionImpl::DeleteFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeaturestoreServiceConnectionImpl::ImportFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1060,8 +1052,7 @@ FeaturestoreServiceConnectionImpl::ImportFeatureValues( future> FeaturestoreServiceConnectionImpl::ImportFeatureValues( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeaturestoreServiceConnectionImpl::BatchReadFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1157,8 +1148,7 @@ FeaturestoreServiceConnectionImpl::BatchReadFeatureValues( future> FeaturestoreServiceConnectionImpl::BatchReadFeatureValues( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeaturestoreServiceConnectionImpl::ExportFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1252,8 +1242,7 @@ FeaturestoreServiceConnectionImpl::ExportFeatureValues( future> FeaturestoreServiceConnectionImpl::ExportFeatureValues( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FeaturestoreServiceConnectionImpl::DeleteFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1347,8 +1336,7 @@ FeaturestoreServiceConnectionImpl::DeleteFeatureValues( future> FeaturestoreServiceConnectionImpl::DeleteFeatureValues( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request) override; future> - CreateFeaturestore(google::cloud::ExperimentalTag, + CreateFeaturestore(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetFeaturestore( @@ -79,12 +79,12 @@ class FeaturestoreServiceConnectionImpl override; StatusOr UpdateFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request) override; future> - UpdateFeaturestore(google::cloud::ExperimentalTag, + UpdateFeaturestore(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -93,12 +93,12 @@ class FeaturestoreServiceConnectionImpl override; StatusOr DeleteFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request) override; future> - DeleteFeaturestore(google::cloud::ExperimentalTag, + DeleteFeaturestore(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateEntityType( @@ -106,12 +106,12 @@ class FeaturestoreServiceConnectionImpl override; StatusOr CreateEntityType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request) override; future> CreateEntityType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetEntityType( @@ -130,12 +130,12 @@ class FeaturestoreServiceConnectionImpl request) override; StatusOr DeleteEntityType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request) override; future> - DeleteEntityType(google::cloud::ExperimentalTag, + DeleteEntityType(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateFeature( @@ -143,12 +143,12 @@ class FeaturestoreServiceConnectionImpl override; StatusOr CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateFeatureRequest const& request) override; future> CreateFeature( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -157,12 +157,12 @@ class FeaturestoreServiceConnectionImpl override; StatusOr BatchCreateFeatures( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request) override; future> - BatchCreateFeatures(google::cloud::ExperimentalTag, + BatchCreateFeatures(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetFeature( @@ -180,12 +180,12 @@ class FeaturestoreServiceConnectionImpl request) override; StatusOr DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) override; future> - DeleteFeature(google::cloud::ExperimentalTag, + DeleteFeature(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -194,12 +194,12 @@ class FeaturestoreServiceConnectionImpl override; StatusOr ImportFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request) override; future> - ImportFeatureValues(google::cloud::ExperimentalTag, + ImportFeatureValues(ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -209,14 +209,14 @@ class FeaturestoreServiceConnectionImpl request) override; StatusOr BatchReadFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& request) override; future< StatusOr> BatchReadFeatureValues( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -225,12 +225,12 @@ class FeaturestoreServiceConnectionImpl override; StatusOr ExportFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request) override; future> - ExportFeatureValues(google::cloud::ExperimentalTag, + ExportFeatureValues(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -239,12 +239,12 @@ class FeaturestoreServiceConnectionImpl override; StatusOr DeleteFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request) override; future> - DeleteFeatureValues(google::cloud::ExperimentalTag, + DeleteFeatureValues(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange SearchFeatures( diff --git a/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.cc index de5015785ce5a..a8688415e77c1 100644 --- a/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.cc @@ -45,26 +45,24 @@ FeaturestoreServiceTracingConnection::CreateFeaturestore( StatusOr FeaturestoreServiceTracingConnection::CreateFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::CreateFeaturestore"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateFeaturestore(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateFeaturestore(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeaturestoreServiceTracingConnection::CreateFeaturestore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::CreateFeaturestore"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateFeaturestore(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateFeaturestore( + ExperimentalTag{}, operation)); } StatusOr @@ -100,26 +98,24 @@ FeaturestoreServiceTracingConnection::UpdateFeaturestore( StatusOr FeaturestoreServiceTracingConnection::UpdateFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::UpdateFeaturestore"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateFeaturestore(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateFeaturestore(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeaturestoreServiceTracingConnection::UpdateFeaturestore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::UpdateFeaturestore"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateFeaturestore(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateFeaturestore( + ExperimentalTag{}, operation)); } future> @@ -134,26 +130,24 @@ FeaturestoreServiceTracingConnection::DeleteFeaturestore( StatusOr FeaturestoreServiceTracingConnection::DeleteFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::DeleteFeaturestore"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteFeaturestore(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteFeaturestore(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeaturestoreServiceTracingConnection::DeleteFeaturestore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::DeleteFeaturestore"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteFeaturestore(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteFeaturestore( + ExperimentalTag{}, operation)); } future> @@ -167,26 +161,24 @@ FeaturestoreServiceTracingConnection::CreateEntityType( StatusOr FeaturestoreServiceTracingConnection::CreateEntityType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::CreateEntityType"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateEntityType(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateEntityType(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeaturestoreServiceTracingConnection::CreateEntityType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::CreateEntityType"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateEntityType(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateEntityType(ExperimentalTag{}, operation)); } StatusOr @@ -230,26 +222,24 @@ FeaturestoreServiceTracingConnection::DeleteEntityType( StatusOr FeaturestoreServiceTracingConnection::DeleteEntityType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::DeleteEntityType"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteEntityType(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteEntityType(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeaturestoreServiceTracingConnection::DeleteEntityType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::DeleteEntityType"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteEntityType(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteEntityType(ExperimentalTag{}, operation)); } future> @@ -263,26 +253,23 @@ FeaturestoreServiceTracingConnection::CreateFeature( StatusOr FeaturestoreServiceTracingConnection::CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::CreateFeature"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateFeature(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateFeature(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeaturestoreServiceTracingConnection::CreateFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::CreateFeature"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateFeature(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateFeature(ExperimentalTag{}, operation)); } future> @@ -297,26 +284,24 @@ FeaturestoreServiceTracingConnection::BatchCreateFeatures( StatusOr FeaturestoreServiceTracingConnection::BatchCreateFeatures( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::BatchCreateFeatures"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BatchCreateFeatures(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->BatchCreateFeatures(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeaturestoreServiceTracingConnection::BatchCreateFeatures( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::BatchCreateFeatures"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->BatchCreateFeatures(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchCreateFeatures( + ExperimentalTag{}, operation)); } StatusOr @@ -359,26 +344,23 @@ FeaturestoreServiceTracingConnection::DeleteFeature( StatusOr FeaturestoreServiceTracingConnection::DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::DeleteFeature"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteFeature(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteFeature(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeaturestoreServiceTracingConnection::DeleteFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::DeleteFeature"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteFeature(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteFeature(ExperimentalTag{}, operation)); } future> @@ -393,26 +375,24 @@ FeaturestoreServiceTracingConnection::ImportFeatureValues( StatusOr FeaturestoreServiceTracingConnection::ImportFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::ImportFeatureValues"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportFeatureValues(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ImportFeatureValues(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeaturestoreServiceTracingConnection::ImportFeatureValues( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::ImportFeatureValues"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ImportFeatureValues(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ImportFeatureValues( + ExperimentalTag{}, operation)); } future> @@ -428,27 +408,25 @@ FeaturestoreServiceTracingConnection::BatchReadFeatureValues( StatusOr FeaturestoreServiceTracingConnection::BatchReadFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::BatchReadFeatureValues"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->BatchReadFeatureValues( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->BatchReadFeatureValues(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeaturestoreServiceTracingConnection::BatchReadFeatureValues( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::BatchReadFeatureValues"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->BatchReadFeatureValues( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchReadFeatureValues( + ExperimentalTag{}, operation)); } future> @@ -463,26 +441,24 @@ FeaturestoreServiceTracingConnection::ExportFeatureValues( StatusOr FeaturestoreServiceTracingConnection::ExportFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::ExportFeatureValues"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportFeatureValues(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ExportFeatureValues(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeaturestoreServiceTracingConnection::ExportFeatureValues( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::ExportFeatureValues"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ExportFeatureValues(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ExportFeatureValues( + ExperimentalTag{}, operation)); } future> @@ -497,26 +473,24 @@ FeaturestoreServiceTracingConnection::DeleteFeatureValues( StatusOr FeaturestoreServiceTracingConnection::DeleteFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::DeleteFeatureValues"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteFeatureValues(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteFeatureValues(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FeaturestoreServiceTracingConnection::DeleteFeatureValues( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::FeaturestoreServiceConnection::DeleteFeatureValues"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteFeatureValues(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteFeatureValues( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.h b/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.h index 86739d56b868f..627f9ead20d6e 100644 --- a/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/featurestore_tracing_connection.h @@ -46,12 +46,12 @@ class FeaturestoreServiceTracingConnection override; StatusOr CreateFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request) override; future> - CreateFeaturestore(google::cloud::ExperimentalTag, + CreateFeaturestore(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetFeaturestore( @@ -67,12 +67,12 @@ class FeaturestoreServiceTracingConnection override; StatusOr UpdateFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request) override; future> - UpdateFeaturestore(google::cloud::ExperimentalTag, + UpdateFeaturestore(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -81,12 +81,12 @@ class FeaturestoreServiceTracingConnection override; StatusOr DeleteFeaturestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request) override; future> - DeleteFeaturestore(google::cloud::ExperimentalTag, + DeleteFeaturestore(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateEntityType( @@ -94,12 +94,12 @@ class FeaturestoreServiceTracingConnection override; StatusOr CreateEntityType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request) override; future> CreateEntityType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetEntityType( @@ -118,12 +118,12 @@ class FeaturestoreServiceTracingConnection request) override; StatusOr DeleteEntityType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request) override; future> - DeleteEntityType(google::cloud::ExperimentalTag, + DeleteEntityType(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateFeature( @@ -131,12 +131,12 @@ class FeaturestoreServiceTracingConnection override; StatusOr CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureRequest const& request) override; future> CreateFeature( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -145,12 +145,12 @@ class FeaturestoreServiceTracingConnection override; StatusOr BatchCreateFeatures( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request) override; future> - BatchCreateFeatures(google::cloud::ExperimentalTag, + BatchCreateFeatures(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetFeature( @@ -168,12 +168,12 @@ class FeaturestoreServiceTracingConnection request) override; StatusOr DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) override; future> - DeleteFeature(google::cloud::ExperimentalTag, + DeleteFeature(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -182,12 +182,12 @@ class FeaturestoreServiceTracingConnection override; StatusOr ImportFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request) override; future> - ImportFeatureValues(google::cloud::ExperimentalTag, + ImportFeatureValues(ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -197,14 +197,14 @@ class FeaturestoreServiceTracingConnection request) override; StatusOr BatchReadFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& request) override; future< StatusOr> BatchReadFeatureValues( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -213,12 +213,12 @@ class FeaturestoreServiceTracingConnection override; StatusOr ExportFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request) override; future> - ExportFeatureValues(google::cloud::ExperimentalTag, + ExportFeatureValues(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -227,12 +227,12 @@ class FeaturestoreServiceTracingConnection override; StatusOr DeleteFeatureValues( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request) override; future> - DeleteFeatureValues(google::cloud::ExperimentalTag, + DeleteFeatureValues(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange SearchFeatures( diff --git a/google/cloud/aiplatform/v1/internal/index_connection_impl.cc b/google/cloud/aiplatform/v1/internal/index_connection_impl.cc index d46a6800e9b26..3659d25b9d454 100644 --- a/google/cloud/aiplatform/v1/internal/index_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/index_connection_impl.cc @@ -105,7 +105,7 @@ IndexServiceConnectionImpl::CreateIndex( StatusOr IndexServiceConnectionImpl::CreateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateIndexRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -120,8 +120,7 @@ IndexServiceConnectionImpl::CreateIndex( future> IndexServiceConnectionImpl::CreateIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is IndexServiceConnectionImpl::UpdateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateIndexRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -260,8 +259,7 @@ IndexServiceConnectionImpl::UpdateIndex( future> IndexServiceConnectionImpl::UpdateIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is IndexServiceConnectionImpl::DeleteIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteIndexRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -352,8 +350,7 @@ IndexServiceConnectionImpl::DeleteIndex( future> IndexServiceConnectionImpl::DeleteIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateIndexRequest const& request) override; future> CreateIndex( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIndex( @@ -76,12 +76,12 @@ class IndexServiceConnectionImpl override; StatusOr UpdateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateIndexRequest const& request) override; future> UpdateIndex( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -89,12 +89,12 @@ class IndexServiceConnectionImpl override; StatusOr DeleteIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteIndexRequest const& request) override; future> - DeleteIndex(google::cloud::ExperimentalTag, + DeleteIndex(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.cc b/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.cc index a95c56767e236..400152c5f8ca1 100644 --- a/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.cc @@ -110,7 +110,7 @@ IndexEndpointServiceConnectionImpl::CreateIndexEndpoint( StatusOr IndexEndpointServiceConnectionImpl::CreateIndexEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -126,8 +126,7 @@ IndexEndpointServiceConnectionImpl::CreateIndexEndpoint( future> IndexEndpointServiceConnectionImpl::CreateIndexEndpoint( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is IndexEndpointServiceConnectionImpl::DeleteIndexEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -286,8 +285,7 @@ IndexEndpointServiceConnectionImpl::DeleteIndexEndpoint( future> IndexEndpointServiceConnectionImpl::DeleteIndexEndpoint( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is IndexEndpointServiceConnectionImpl::DeployIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeployIndexRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -379,8 +377,7 @@ IndexEndpointServiceConnectionImpl::DeployIndex( future> IndexEndpointServiceConnectionImpl::DeployIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is IndexEndpointServiceConnectionImpl::UndeployIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UndeployIndexRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -473,8 +470,7 @@ IndexEndpointServiceConnectionImpl::UndeployIndex( future> IndexEndpointServiceConnectionImpl::UndeployIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is IndexEndpointServiceConnectionImpl::MutateDeployedIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -568,8 +564,7 @@ IndexEndpointServiceConnectionImpl::MutateDeployedIndex( future> IndexEndpointServiceConnectionImpl::MutateDeployedIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateIndexEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request) override; future> - CreateIndexEndpoint(google::cloud::ExperimentalTag, + CreateIndexEndpoint(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIndexEndpoint( @@ -84,12 +84,12 @@ class IndexEndpointServiceConnectionImpl override; StatusOr DeleteIndexEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request) override; future> - DeleteIndexEndpoint(google::cloud::ExperimentalTag, + DeleteIndexEndpoint(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -97,12 +97,12 @@ class IndexEndpointServiceConnectionImpl override; StatusOr DeployIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeployIndexRequest const& request) override; future> - DeployIndex(google::cloud::ExperimentalTag, + DeployIndex(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -110,12 +110,12 @@ class IndexEndpointServiceConnectionImpl request) override; StatusOr UndeployIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UndeployIndexRequest const& request) override; future> - UndeployIndex(google::cloud::ExperimentalTag, + UndeployIndex(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -124,12 +124,12 @@ class IndexEndpointServiceConnectionImpl override; StatusOr MutateDeployedIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request) override; future> - MutateDeployedIndex(google::cloud::ExperimentalTag, + MutateDeployedIndex(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.cc index cf8b80f666901..1398926ca6d4e 100644 --- a/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.cc @@ -45,26 +45,24 @@ IndexEndpointServiceTracingConnection::CreateIndexEndpoint( StatusOr IndexEndpointServiceTracingConnection::CreateIndexEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::IndexEndpointServiceConnection::CreateIndexEndpoint"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateIndexEndpoint(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateIndexEndpoint(ExperimentalTag{}, NoAwaitTag{}, request)); } future> IndexEndpointServiceTracingConnection::CreateIndexEndpoint( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::IndexEndpointServiceConnection::CreateIndexEndpoint"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateIndexEndpoint(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateIndexEndpoint( + ExperimentalTag{}, operation)); } StatusOr @@ -109,26 +107,24 @@ IndexEndpointServiceTracingConnection::DeleteIndexEndpoint( StatusOr IndexEndpointServiceTracingConnection::DeleteIndexEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::IndexEndpointServiceConnection::DeleteIndexEndpoint"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteIndexEndpoint(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteIndexEndpoint(ExperimentalTag{}, NoAwaitTag{}, request)); } future> IndexEndpointServiceTracingConnection::DeleteIndexEndpoint( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::IndexEndpointServiceConnection::DeleteIndexEndpoint"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteIndexEndpoint(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteIndexEndpoint( + ExperimentalTag{}, operation)); } future> @@ -142,26 +138,23 @@ IndexEndpointServiceTracingConnection::DeployIndex( StatusOr IndexEndpointServiceTracingConnection::DeployIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeployIndexRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::IndexEndpointServiceConnection::DeployIndex"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeployIndex(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeployIndex(ExperimentalTag{}, NoAwaitTag{}, request)); } future> IndexEndpointServiceTracingConnection::DeployIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::IndexEndpointServiceConnection::DeployIndex"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeployIndex(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeployIndex(ExperimentalTag{}, operation)); } future> @@ -175,26 +168,23 @@ IndexEndpointServiceTracingConnection::UndeployIndex( StatusOr IndexEndpointServiceTracingConnection::UndeployIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UndeployIndexRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::IndexEndpointServiceConnection::UndeployIndex"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UndeployIndex(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UndeployIndex(ExperimentalTag{}, NoAwaitTag{}, request)); } future> IndexEndpointServiceTracingConnection::UndeployIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::IndexEndpointServiceConnection::UndeployIndex"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UndeployIndex(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UndeployIndex(ExperimentalTag{}, operation)); } future> @@ -209,26 +199,24 @@ IndexEndpointServiceTracingConnection::MutateDeployedIndex( StatusOr IndexEndpointServiceTracingConnection::MutateDeployedIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::IndexEndpointServiceConnection::MutateDeployedIndex"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->MutateDeployedIndex(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->MutateDeployedIndex(ExperimentalTag{}, NoAwaitTag{}, request)); } future> IndexEndpointServiceTracingConnection::MutateDeployedIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::IndexEndpointServiceConnection::MutateDeployedIndex"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->MutateDeployedIndex(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->MutateDeployedIndex( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.h b/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.h index fb176f93e30b2..c0c49db96bbf8 100644 --- a/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/index_endpoint_tracing_connection.h @@ -46,12 +46,12 @@ class IndexEndpointServiceTracingConnection override; StatusOr CreateIndexEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request) override; future> - CreateIndexEndpoint(google::cloud::ExperimentalTag, + CreateIndexEndpoint(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIndexEndpoint( @@ -72,12 +72,12 @@ class IndexEndpointServiceTracingConnection override; StatusOr DeleteIndexEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request) override; future> - DeleteIndexEndpoint(google::cloud::ExperimentalTag, + DeleteIndexEndpoint(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -85,12 +85,12 @@ class IndexEndpointServiceTracingConnection override; StatusOr DeployIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeployIndexRequest const& request) override; future> - DeployIndex(google::cloud::ExperimentalTag, + DeployIndex(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -98,12 +98,12 @@ class IndexEndpointServiceTracingConnection request) override; StatusOr UndeployIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UndeployIndexRequest const& request) override; future> - UndeployIndex(google::cloud::ExperimentalTag, + UndeployIndex(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -112,12 +112,12 @@ class IndexEndpointServiceTracingConnection override; StatusOr MutateDeployedIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request) override; future> - MutateDeployedIndex(google::cloud::ExperimentalTag, + MutateDeployedIndex(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/index_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/index_tracing_connection.cc index fa5227e48ec5e..24198573c9b8f 100644 --- a/google/cloud/aiplatform/v1/internal/index_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/index_tracing_connection.cc @@ -44,26 +44,23 @@ IndexServiceTracingConnection::CreateIndex( StatusOr IndexServiceTracingConnection::CreateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateIndexRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::IndexServiceConnection::CreateIndex"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateIndex(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateIndex(ExperimentalTag{}, NoAwaitTag{}, request)); } future> IndexServiceTracingConnection::CreateIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("aiplatform_v1::IndexServiceConnection::CreateIndex"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateIndex(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateIndex(ExperimentalTag{}, operation)); } StatusOr @@ -97,26 +94,23 @@ IndexServiceTracingConnection::UpdateIndex( StatusOr IndexServiceTracingConnection::UpdateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateIndexRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::IndexServiceConnection::UpdateIndex"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateIndex(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateIndex(ExperimentalTag{}, NoAwaitTag{}, request)); } future> IndexServiceTracingConnection::UpdateIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("aiplatform_v1::IndexServiceConnection::UpdateIndex"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateIndex(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateIndex(ExperimentalTag{}, operation)); } future> @@ -130,26 +124,23 @@ IndexServiceTracingConnection::DeleteIndex( StatusOr IndexServiceTracingConnection::DeleteIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteIndexRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::IndexServiceConnection::DeleteIndex"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteIndex(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteIndex(ExperimentalTag{}, NoAwaitTag{}, request)); } future> IndexServiceTracingConnection::DeleteIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("aiplatform_v1::IndexServiceConnection::DeleteIndex"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteIndex(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteIndex(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/aiplatform/v1/internal/index_tracing_connection.h b/google/cloud/aiplatform/v1/internal/index_tracing_connection.h index 057288579a6ee..b0282b9b53740 100644 --- a/google/cloud/aiplatform/v1/internal/index_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/index_tracing_connection.h @@ -45,12 +45,12 @@ class IndexServiceTracingConnection override; StatusOr CreateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateIndexRequest const& request) override; future> CreateIndex( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIndex( @@ -64,12 +64,12 @@ class IndexServiceTracingConnection override; StatusOr UpdateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateIndexRequest const& request) override; future> UpdateIndex( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -77,12 +77,12 @@ class IndexServiceTracingConnection override; StatusOr DeleteIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteIndexRequest const& request) override; future> - DeleteIndex(google::cloud::ExperimentalTag, + DeleteIndex(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/aiplatform/v1/internal/job_connection_impl.cc b/google/cloud/aiplatform/v1/internal/job_connection_impl.cc index d3f99a30087d0..69c535f203418 100644 --- a/google/cloud/aiplatform/v1/internal/job_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/job_connection_impl.cc @@ -170,7 +170,7 @@ JobServiceConnectionImpl::DeleteCustomJob( StatusOr JobServiceConnectionImpl::DeleteCustomJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -186,8 +186,7 @@ JobServiceConnectionImpl::DeleteCustomJob( future> JobServiceConnectionImpl::DeleteCustomJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is JobServiceConnectionImpl::DeleteDataLabelingJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -363,8 +362,7 @@ JobServiceConnectionImpl::DeleteDataLabelingJob( future> JobServiceConnectionImpl::DeleteDataLabelingJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is JobServiceConnectionImpl::DeleteHyperparameterTuningJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteHyperparameterTuningJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -545,8 +543,7 @@ JobServiceConnectionImpl::DeleteHyperparameterTuningJob( future> JobServiceConnectionImpl::DeleteHyperparameterTuningJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is JobServiceConnectionImpl::DeleteNasJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteNasJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -716,8 +713,7 @@ StatusOr JobServiceConnectionImpl::DeleteNasJob( future> JobServiceConnectionImpl::DeleteNasJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is JobServiceConnectionImpl::DeleteBatchPredictionJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -947,8 +943,7 @@ JobServiceConnectionImpl::DeleteBatchPredictionJob( future> JobServiceConnectionImpl::DeleteBatchPredictionJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is JobServiceConnectionImpl::UpdateModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1:: UpdateModelDeploymentMonitoringJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1179,8 +1174,7 @@ JobServiceConnectionImpl::UpdateModelDeploymentMonitoringJob( future> JobServiceConnectionImpl::UpdateModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is JobServiceConnectionImpl::DeleteModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1:: DeleteModelDeploymentMonitoringJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1279,8 +1273,7 @@ JobServiceConnectionImpl::DeleteModelDeploymentMonitoringJob( future> JobServiceConnectionImpl::DeleteModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DeleteCustomJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request) override; future> - DeleteCustomJob(google::cloud::ExperimentalTag, + DeleteCustomJob(ExperimentalTag, google::longrunning::Operation const& operation) override; Status CancelCustomJob( @@ -99,13 +99,13 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { request) override; StatusOr DeleteDataLabelingJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& request) override; future> DeleteDataLabelingJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status CancelDataLabelingJob( @@ -133,13 +133,13 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { request) override; StatusOr DeleteHyperparameterTuningJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteHyperparameterTuningJobRequest const& request) override; future> DeleteHyperparameterTuningJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status CancelHyperparameterTuningJob( @@ -161,12 +161,12 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { request) override; StatusOr DeleteNasJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteNasJobRequest const& request) override; future> - DeleteNasJob(google::cloud::ExperimentalTag, + DeleteNasJob(ExperimentalTag, google::longrunning::Operation const& operation) override; Status CancelNasJob(google::cloud::aiplatform::v1::CancelNasJobRequest const& @@ -201,13 +201,13 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { request) override; StatusOr DeleteBatchPredictionJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& request) override; future> DeleteBatchPredictionJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status CancelBatchPredictionJob( @@ -241,13 +241,13 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { UpdateModelDeploymentMonitoringJobRequest const& request) override; StatusOr UpdateModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1:: UpdateModelDeploymentMonitoringJobRequest const& request) override; future> UpdateModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -256,13 +256,13 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { DeleteModelDeploymentMonitoringJobRequest const& request) override; StatusOr DeleteModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1:: DeleteModelDeploymentMonitoringJobRequest const& request) override; future> DeleteModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status PauseModelDeploymentMonitoringJob( diff --git a/google/cloud/aiplatform/v1/internal/job_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/job_tracing_connection.cc index d2d39cbcc6ee5..e144a2069e915 100644 --- a/google/cloud/aiplatform/v1/internal/job_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/job_tracing_connection.cc @@ -73,26 +73,23 @@ JobServiceTracingConnection::DeleteCustomJob( StatusOr JobServiceTracingConnection::DeleteCustomJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::DeleteCustomJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteCustomJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteCustomJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> JobServiceTracingConnection::DeleteCustomJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::DeleteCustomJob"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteCustomJob(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteCustomJob(ExperimentalTag{}, operation)); } Status JobServiceTracingConnection::CancelCustomJob( @@ -147,27 +144,25 @@ JobServiceTracingConnection::DeleteDataLabelingJob( StatusOr JobServiceTracingConnection::DeleteDataLabelingJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::DeleteDataLabelingJob"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteDataLabelingJob( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteDataLabelingJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> JobServiceTracingConnection::DeleteDataLabelingJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::DeleteDataLabelingJob"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteDataLabelingJob( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteDataLabelingJob( + ExperimentalTag{}, operation)); } Status JobServiceTracingConnection::CancelDataLabelingJob( @@ -226,27 +221,26 @@ JobServiceTracingConnection::DeleteHyperparameterTuningJob( StatusOr JobServiceTracingConnection::DeleteHyperparameterTuningJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteHyperparameterTuningJobRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::DeleteHyperparameterTuningJob"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteHyperparameterTuningJob( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteHyperparameterTuningJob(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> JobServiceTracingConnection::DeleteHyperparameterTuningJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::DeleteHyperparameterTuningJob"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteHyperparameterTuningJob( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->DeleteHyperparameterTuningJob(ExperimentalTag{}, operation)); } Status JobServiceTracingConnection::CancelHyperparameterTuningJob( @@ -299,26 +293,23 @@ JobServiceTracingConnection::DeleteNasJob( StatusOr JobServiceTracingConnection::DeleteNasJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNasJobRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::JobServiceConnection::DeleteNasJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteNasJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteNasJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> JobServiceTracingConnection::DeleteNasJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("aiplatform_v1::JobServiceConnection::DeleteNasJob"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteNasJob(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteNasJob(ExperimentalTag{}, operation)); } Status JobServiceTracingConnection::CancelNasJob( @@ -395,27 +386,25 @@ JobServiceTracingConnection::DeleteBatchPredictionJob( StatusOr JobServiceTracingConnection::DeleteBatchPredictionJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::DeleteBatchPredictionJob"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteBatchPredictionJob( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteBatchPredictionJob(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> JobServiceTracingConnection::DeleteBatchPredictionJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::DeleteBatchPredictionJob"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteBatchPredictionJob( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteBatchPredictionJob( + ExperimentalTag{}, operation)); } Status JobServiceTracingConnection::CancelBatchPredictionJob( @@ -492,29 +481,28 @@ JobServiceTracingConnection::UpdateModelDeploymentMonitoringJob( StatusOr JobServiceTracingConnection::UpdateModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: UpdateModelDeploymentMonitoringJobRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::" "UpdateModelDeploymentMonitoringJob"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateModelDeploymentMonitoringJob(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> JobServiceTracingConnection::UpdateModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::" "UpdateModelDeploymentMonitoringJob"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->UpdateModelDeploymentMonitoringJob(ExperimentalTag{}, operation)); } future> @@ -531,29 +519,28 @@ JobServiceTracingConnection::DeleteModelDeploymentMonitoringJob( StatusOr JobServiceTracingConnection::DeleteModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: DeleteModelDeploymentMonitoringJobRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::" "DeleteModelDeploymentMonitoringJob"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteModelDeploymentMonitoringJob(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> JobServiceTracingConnection::DeleteModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::JobServiceConnection::" "DeleteModelDeploymentMonitoringJob"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->DeleteModelDeploymentMonitoringJob(ExperimentalTag{}, operation)); } Status JobServiceTracingConnection::PauseModelDeploymentMonitoringJob( diff --git a/google/cloud/aiplatform/v1/internal/job_tracing_connection.h b/google/cloud/aiplatform/v1/internal/job_tracing_connection.h index d23be77942f9a..fe73e4b684b93 100644 --- a/google/cloud/aiplatform/v1/internal/job_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/job_tracing_connection.h @@ -55,12 +55,12 @@ class JobServiceTracingConnection : public aiplatform_v1::JobServiceConnection { request) override; StatusOr DeleteCustomJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request) override; future> - DeleteCustomJob(google::cloud::ExperimentalTag, + DeleteCustomJob(ExperimentalTag, google::longrunning::Operation const& operation) override; Status CancelCustomJob( @@ -87,13 +87,13 @@ class JobServiceTracingConnection : public aiplatform_v1::JobServiceConnection { request) override; StatusOr DeleteDataLabelingJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& request) override; future> DeleteDataLabelingJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status CancelDataLabelingJob( @@ -121,13 +121,13 @@ class JobServiceTracingConnection : public aiplatform_v1::JobServiceConnection { request) override; StatusOr DeleteHyperparameterTuningJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteHyperparameterTuningJobRequest const& request) override; future> DeleteHyperparameterTuningJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status CancelHyperparameterTuningJob( @@ -149,12 +149,12 @@ class JobServiceTracingConnection : public aiplatform_v1::JobServiceConnection { request) override; StatusOr DeleteNasJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNasJobRequest const& request) override; future> - DeleteNasJob(google::cloud::ExperimentalTag, + DeleteNasJob(ExperimentalTag, google::longrunning::Operation const& operation) override; Status CancelNasJob(google::cloud::aiplatform::v1::CancelNasJobRequest const& @@ -189,13 +189,13 @@ class JobServiceTracingConnection : public aiplatform_v1::JobServiceConnection { request) override; StatusOr DeleteBatchPredictionJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& request) override; future> DeleteBatchPredictionJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status CancelBatchPredictionJob( @@ -229,13 +229,13 @@ class JobServiceTracingConnection : public aiplatform_v1::JobServiceConnection { UpdateModelDeploymentMonitoringJobRequest const& request) override; StatusOr UpdateModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: UpdateModelDeploymentMonitoringJobRequest const& request) override; future> UpdateModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -244,13 +244,13 @@ class JobServiceTracingConnection : public aiplatform_v1::JobServiceConnection { DeleteModelDeploymentMonitoringJobRequest const& request) override; StatusOr DeleteModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: DeleteModelDeploymentMonitoringJobRequest const& request) override; future> DeleteModelDeploymentMonitoringJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status PauseModelDeploymentMonitoringJob( diff --git a/google/cloud/aiplatform/v1/internal/metadata_connection_impl.cc b/google/cloud/aiplatform/v1/internal/metadata_connection_impl.cc index 395d5d63c4c21..24ac0d4723bce 100644 --- a/google/cloud/aiplatform/v1/internal/metadata_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/metadata_connection_impl.cc @@ -109,7 +109,7 @@ MetadataServiceConnectionImpl::CreateMetadataStore( StatusOr MetadataServiceConnectionImpl::CreateMetadataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -125,8 +125,7 @@ MetadataServiceConnectionImpl::CreateMetadataStore( future> MetadataServiceConnectionImpl::CreateMetadataStore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MetadataServiceConnectionImpl::DeleteMetadataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -272,8 +271,7 @@ MetadataServiceConnectionImpl::DeleteMetadataStore( future> MetadataServiceConnectionImpl::DeleteMetadataStore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MetadataServiceConnectionImpl::DeleteArtifact( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteArtifactRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -444,8 +442,7 @@ MetadataServiceConnectionImpl::DeleteArtifact( future> MetadataServiceConnectionImpl::DeleteArtifact( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MetadataServiceConnectionImpl::PurgeArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -538,8 +535,7 @@ MetadataServiceConnectionImpl::PurgeArtifacts( future> MetadataServiceConnectionImpl::PurgeArtifacts( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MetadataServiceConnectionImpl::DeleteContext( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteContextRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -710,8 +706,7 @@ MetadataServiceConnectionImpl::DeleteContext( future> MetadataServiceConnectionImpl::DeleteContext( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MetadataServiceConnectionImpl::PurgeContexts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::PurgeContextsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -804,8 +799,7 @@ MetadataServiceConnectionImpl::PurgeContexts( future> MetadataServiceConnectionImpl::PurgeContexts( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MetadataServiceConnectionImpl::DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteExecutionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1043,8 +1037,7 @@ MetadataServiceConnectionImpl::DeleteExecution( future> MetadataServiceConnectionImpl::DeleteExecution( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MetadataServiceConnectionImpl::PurgeExecutions( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1138,8 +1131,7 @@ MetadataServiceConnectionImpl::PurgeExecutions( future> MetadataServiceConnectionImpl::PurgeExecutions( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateMetadataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request) override; future> - CreateMetadataStore(google::cloud::ExperimentalTag, + CreateMetadataStore(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetMetadataStore( @@ -81,13 +81,13 @@ class MetadataServiceConnectionImpl override; StatusOr DeleteMetadataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request) override; future> - DeleteMetadataStore(google::cloud::ExperimentalTag, + DeleteMetadataStore(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateArtifact( @@ -110,12 +110,12 @@ class MetadataServiceConnectionImpl request) override; StatusOr DeleteArtifact( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteArtifactRequest const& request) override; future> - DeleteArtifact(google::cloud::ExperimentalTag, + DeleteArtifact(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -123,12 +123,12 @@ class MetadataServiceConnectionImpl request) override; StatusOr PurgeArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request) override; future> - PurgeArtifacts(google::cloud::ExperimentalTag, + PurgeArtifacts(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateContext( @@ -150,12 +150,12 @@ class MetadataServiceConnectionImpl request) override; StatusOr DeleteContext( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteContextRequest const& request) override; future> - DeleteContext(google::cloud::ExperimentalTag, + DeleteContext(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -163,12 +163,12 @@ class MetadataServiceConnectionImpl request) override; StatusOr PurgeContexts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::PurgeContextsRequest const& request) override; future> - PurgeContexts(google::cloud::ExperimentalTag, + PurgeContexts(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr< @@ -212,12 +212,12 @@ class MetadataServiceConnectionImpl request) override; StatusOr DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteExecutionRequest const& request) override; future> - DeleteExecution(google::cloud::ExperimentalTag, + DeleteExecution(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -225,12 +225,12 @@ class MetadataServiceConnectionImpl request) override; StatusOr PurgeExecutions( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request) override; future> - PurgeExecutions(google::cloud::ExperimentalTag, + PurgeExecutions(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.cc index 7ed420d5b3ff6..f69531f763ab8 100644 --- a/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.cc @@ -45,26 +45,24 @@ MetadataServiceTracingConnection::CreateMetadataStore( StatusOr MetadataServiceTracingConnection::CreateMetadataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::CreateMetadataStore"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateMetadataStore(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateMetadataStore(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MetadataServiceTracingConnection::CreateMetadataStore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::CreateMetadataStore"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateMetadataStore(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateMetadataStore( + ExperimentalTag{}, operation)); } StatusOr @@ -101,27 +99,25 @@ MetadataServiceTracingConnection::DeleteMetadataStore( StatusOr MetadataServiceTracingConnection::DeleteMetadataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::DeleteMetadataStore"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteMetadataStore(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteMetadataStore(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MetadataServiceTracingConnection::DeleteMetadataStore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::DeleteMetadataStore"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteMetadataStore(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteMetadataStore( + ExperimentalTag{}, operation)); } StatusOr @@ -173,26 +169,23 @@ MetadataServiceTracingConnection::DeleteArtifact( StatusOr MetadataServiceTracingConnection::DeleteArtifact( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteArtifactRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::DeleteArtifact"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteArtifact(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteArtifact(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MetadataServiceTracingConnection::DeleteArtifact( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::DeleteArtifact"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteArtifact(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteArtifact(ExperimentalTag{}, operation)); } future> @@ -206,26 +199,23 @@ MetadataServiceTracingConnection::PurgeArtifacts( StatusOr MetadataServiceTracingConnection::PurgeArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::PurgeArtifacts"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PurgeArtifacts(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PurgeArtifacts(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MetadataServiceTracingConnection::PurgeArtifacts( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::PurgeArtifacts"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->PurgeArtifacts(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->PurgeArtifacts(ExperimentalTag{}, operation)); } StatusOr @@ -277,26 +267,23 @@ MetadataServiceTracingConnection::DeleteContext( StatusOr MetadataServiceTracingConnection::DeleteContext( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteContextRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::DeleteContext"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteContext(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteContext(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MetadataServiceTracingConnection::DeleteContext( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::DeleteContext"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteContext(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteContext(ExperimentalTag{}, operation)); } future> @@ -310,26 +297,23 @@ MetadataServiceTracingConnection::PurgeContexts( StatusOr MetadataServiceTracingConnection::PurgeContexts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeContextsRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::PurgeContexts"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PurgeContexts(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PurgeContexts(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MetadataServiceTracingConnection::PurgeContexts( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::PurgeContexts"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PurgeContexts(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->PurgeContexts(ExperimentalTag{}, operation)); } StatusOr< @@ -423,26 +407,23 @@ MetadataServiceTracingConnection::DeleteExecution( StatusOr MetadataServiceTracingConnection::DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteExecutionRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::DeleteExecution"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteExecution(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteExecution(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MetadataServiceTracingConnection::DeleteExecution( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::DeleteExecution"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteExecution(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteExecution(ExperimentalTag{}, operation)); } future> @@ -456,26 +437,23 @@ MetadataServiceTracingConnection::PurgeExecutions( StatusOr MetadataServiceTracingConnection::PurgeExecutions( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::PurgeExecutions"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PurgeExecutions(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PurgeExecutions(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MetadataServiceTracingConnection::PurgeExecutions( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::MetadataServiceConnection::PurgeExecutions"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->PurgeExecutions(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->PurgeExecutions(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.h b/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.h index 0bebd69f6f483..25733d7e748d2 100644 --- a/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/metadata_tracing_connection.h @@ -46,12 +46,12 @@ class MetadataServiceTracingConnection override; StatusOr CreateMetadataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request) override; future> - CreateMetadataStore(google::cloud::ExperimentalTag, + CreateMetadataStore(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetMetadataStore( @@ -69,13 +69,13 @@ class MetadataServiceTracingConnection override; StatusOr DeleteMetadataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request) override; future> - DeleteMetadataStore(google::cloud::ExperimentalTag, + DeleteMetadataStore(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateArtifact( @@ -98,12 +98,12 @@ class MetadataServiceTracingConnection request) override; StatusOr DeleteArtifact( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteArtifactRequest const& request) override; future> - DeleteArtifact(google::cloud::ExperimentalTag, + DeleteArtifact(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -111,12 +111,12 @@ class MetadataServiceTracingConnection request) override; StatusOr PurgeArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request) override; future> - PurgeArtifacts(google::cloud::ExperimentalTag, + PurgeArtifacts(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateContext( @@ -138,12 +138,12 @@ class MetadataServiceTracingConnection request) override; StatusOr DeleteContext( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteContextRequest const& request) override; future> - DeleteContext(google::cloud::ExperimentalTag, + DeleteContext(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -151,12 +151,12 @@ class MetadataServiceTracingConnection request) override; StatusOr PurgeContexts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeContextsRequest const& request) override; future> - PurgeContexts(google::cloud::ExperimentalTag, + PurgeContexts(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr< @@ -200,12 +200,12 @@ class MetadataServiceTracingConnection request) override; StatusOr DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteExecutionRequest const& request) override; future> - DeleteExecution(google::cloud::ExperimentalTag, + DeleteExecution(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -213,12 +213,12 @@ class MetadataServiceTracingConnection request) override; StatusOr PurgeExecutions( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request) override; future> - PurgeExecutions(google::cloud::ExperimentalTag, + PurgeExecutions(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/aiplatform/v1/internal/migration_connection_impl.cc b/google/cloud/aiplatform/v1/internal/migration_connection_impl.cc index 33488c26be94e..f27c9edf1fd55 100644 --- a/google/cloud/aiplatform/v1/internal/migration_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/migration_connection_impl.cc @@ -146,7 +146,7 @@ MigrationServiceConnectionImpl::BatchMigrateResources( StatusOr MigrationServiceConnectionImpl::BatchMigrateResources( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -163,8 +163,7 @@ MigrationServiceConnectionImpl::BatchMigrateResources( future> MigrationServiceConnectionImpl::BatchMigrateResources( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BatchMigrateResources( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& request) override; future> BatchMigrateResources( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/migration_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/migration_tracing_connection.cc index fa44e84f284d2..4e2e04de657c6 100644 --- a/google/cloud/aiplatform/v1/internal/migration_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/migration_tracing_connection.cc @@ -58,27 +58,25 @@ MigrationServiceTracingConnection::BatchMigrateResources( StatusOr MigrationServiceTracingConnection::BatchMigrateResources( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::MigrationServiceConnection::BatchMigrateResources"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->BatchMigrateResources( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->BatchMigrateResources(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationServiceTracingConnection::BatchMigrateResources( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::MigrationServiceConnection::BatchMigrateResources"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->BatchMigrateResources( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchMigrateResources( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/aiplatform/v1/internal/migration_tracing_connection.h b/google/cloud/aiplatform/v1/internal/migration_tracing_connection.h index e657971bd6386..27902ad08912c 100644 --- a/google/cloud/aiplatform/v1/internal/migration_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/migration_tracing_connection.h @@ -51,13 +51,13 @@ class MigrationServiceTracingConnection request) override; StatusOr BatchMigrateResources( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& request) override; future> BatchMigrateResources( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/model_connection_impl.cc b/google/cloud/aiplatform/v1/internal/model_connection_impl.cc index 8b848e5ddbf33..42541a3e3d06f 100644 --- a/google/cloud/aiplatform/v1/internal/model_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/model_connection_impl.cc @@ -105,7 +105,7 @@ ModelServiceConnectionImpl::UploadModel( StatusOr ModelServiceConnectionImpl::UploadModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UploadModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -120,8 +120,7 @@ ModelServiceConnectionImpl::UploadModel( future> ModelServiceConnectionImpl::UploadModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ModelServiceConnectionImpl::UpdateExplanationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -317,8 +316,7 @@ ModelServiceConnectionImpl::UpdateExplanationDataset( future< StatusOr> ModelServiceConnectionImpl::UpdateExplanationDataset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ModelServiceConnectionImpl::DeleteModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -410,8 +408,7 @@ ModelServiceConnectionImpl::DeleteModel( future> ModelServiceConnectionImpl::DeleteModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ModelServiceConnectionImpl::DeleteModelVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -505,8 +502,7 @@ ModelServiceConnectionImpl::DeleteModelVersion( future> ModelServiceConnectionImpl::DeleteModelVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ModelServiceConnectionImpl::ExportModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::ExportModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -613,8 +609,7 @@ ModelServiceConnectionImpl::ExportModel( future> ModelServiceConnectionImpl::ExportModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ModelServiceConnectionImpl::CopyModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CopyModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -704,8 +699,7 @@ StatusOr ModelServiceConnectionImpl::CopyModel( future> ModelServiceConnectionImpl::CopyModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is UploadModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UploadModelRequest const& request) override; future> - UploadModel(google::cloud::ExperimentalTag, + UploadModel(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetModel( @@ -85,14 +85,14 @@ class ModelServiceConnectionImpl request) override; StatusOr UpdateExplanationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& request) override; future< StatusOr> UpdateExplanationDataset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -100,12 +100,12 @@ class ModelServiceConnectionImpl override; StatusOr DeleteModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteModelRequest const& request) override; future> - DeleteModel(google::cloud::ExperimentalTag, + DeleteModel(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -114,12 +114,12 @@ class ModelServiceConnectionImpl override; StatusOr DeleteModelVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request) override; future> - DeleteModelVersion(google::cloud::ExperimentalTag, + DeleteModelVersion(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr MergeVersionAliases( @@ -131,23 +131,23 @@ class ModelServiceConnectionImpl override; StatusOr ExportModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::ExportModelRequest const& request) override; future> - ExportModel(google::cloud::ExperimentalTag, + ExportModel(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CopyModel( google::cloud::aiplatform::v1::CopyModelRequest const& request) override; StatusOr CopyModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CopyModelRequest const& request) override; future> CopyModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/aiplatform/v1/internal/model_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/model_tracing_connection.cc index b0c2192c189f1..c8859bc05bc92 100644 --- a/google/cloud/aiplatform/v1/internal/model_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/model_tracing_connection.cc @@ -44,26 +44,23 @@ ModelServiceTracingConnection::UploadModel( StatusOr ModelServiceTracingConnection::UploadModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UploadModelRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::ModelServiceConnection::UploadModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UploadModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UploadModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ModelServiceTracingConnection::UploadModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("aiplatform_v1::ModelServiceConnection::UploadModel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UploadModel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UploadModel(ExperimentalTag{}, operation)); } StatusOr @@ -120,28 +117,26 @@ ModelServiceTracingConnection::UpdateExplanationDataset( StatusOr ModelServiceTracingConnection::UpdateExplanationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::ModelServiceConnection::UpdateExplanationDataset"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateExplanationDataset( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateExplanationDataset(ExperimentalTag{}, NoAwaitTag{}, + request)); } future< StatusOr> ModelServiceTracingConnection::UpdateExplanationDataset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::ModelServiceConnection::UpdateExplanationDataset"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateExplanationDataset( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateExplanationDataset( + ExperimentalTag{}, operation)); } future> @@ -155,26 +150,23 @@ ModelServiceTracingConnection::DeleteModel( StatusOr ModelServiceTracingConnection::DeleteModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteModelRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::ModelServiceConnection::DeleteModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ModelServiceTracingConnection::DeleteModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("aiplatform_v1::ModelServiceConnection::DeleteModel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteModel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteModel(ExperimentalTag{}, operation)); } future> @@ -189,26 +181,24 @@ ModelServiceTracingConnection::DeleteModelVersion( StatusOr ModelServiceTracingConnection::DeleteModelVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::ModelServiceConnection::DeleteModelVersion"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteModelVersion(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteModelVersion(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ModelServiceTracingConnection::DeleteModelVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::ModelServiceConnection::DeleteModelVersion"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteModelVersion(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteModelVersion( + ExperimentalTag{}, operation)); } StatusOr @@ -231,26 +221,23 @@ ModelServiceTracingConnection::ExportModel( StatusOr ModelServiceTracingConnection::ExportModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportModelRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::ModelServiceConnection::ExportModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ExportModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ModelServiceTracingConnection::ExportModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("aiplatform_v1::ModelServiceConnection::ExportModel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ExportModel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ExportModel(ExperimentalTag{}, operation)); } future> @@ -264,26 +251,23 @@ ModelServiceTracingConnection::CopyModel( StatusOr ModelServiceTracingConnection::CopyModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CopyModelRequest const& request) { auto span = internal::MakeSpan("aiplatform_v1::ModelServiceConnection::CopyModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CopyModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CopyModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ModelServiceTracingConnection::CopyModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("aiplatform_v1::ModelServiceConnection::CopyModel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CopyModel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CopyModel(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/aiplatform/v1/internal/model_tracing_connection.h b/google/cloud/aiplatform/v1/internal/model_tracing_connection.h index 1155165aa1357..84d95183c8d2a 100644 --- a/google/cloud/aiplatform/v1/internal/model_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/model_tracing_connection.h @@ -45,12 +45,12 @@ class ModelServiceTracingConnection override; StatusOr UploadModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UploadModelRequest const& request) override; future> - UploadModel(google::cloud::ExperimentalTag, + UploadModel(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetModel( @@ -73,14 +73,14 @@ class ModelServiceTracingConnection request) override; StatusOr UpdateExplanationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& request) override; future< StatusOr> UpdateExplanationDataset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -88,12 +88,12 @@ class ModelServiceTracingConnection override; StatusOr DeleteModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteModelRequest const& request) override; future> - DeleteModel(google::cloud::ExperimentalTag, + DeleteModel(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -102,12 +102,12 @@ class ModelServiceTracingConnection override; StatusOr DeleteModelVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request) override; future> - DeleteModelVersion(google::cloud::ExperimentalTag, + DeleteModelVersion(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr MergeVersionAliases( @@ -119,23 +119,23 @@ class ModelServiceTracingConnection override; StatusOr ExportModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportModelRequest const& request) override; future> - ExportModel(google::cloud::ExperimentalTag, + ExportModel(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CopyModel( google::cloud::aiplatform::v1::CopyModelRequest const& request) override; StatusOr CopyModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CopyModelRequest const& request) override; future> CopyModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/aiplatform/v1/internal/notebook_connection_impl.cc b/google/cloud/aiplatform/v1/internal/notebook_connection_impl.cc index cb872ec6071dd..9ef5a1a685fd0 100644 --- a/google/cloud/aiplatform/v1/internal/notebook_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/notebook_connection_impl.cc @@ -109,7 +109,7 @@ NotebookServiceConnectionImpl::CreateNotebookRuntimeTemplate( StatusOr NotebookServiceConnectionImpl::CreateNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateNotebookRuntimeTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -126,8 +126,7 @@ NotebookServiceConnectionImpl::CreateNotebookRuntimeTemplate( future> NotebookServiceConnectionImpl::CreateNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NotebookServiceConnectionImpl::DeleteNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteNotebookRuntimeTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -277,8 +276,7 @@ NotebookServiceConnectionImpl::DeleteNotebookRuntimeTemplate( future> NotebookServiceConnectionImpl::DeleteNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NotebookServiceConnectionImpl::AssignNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -390,8 +388,7 @@ NotebookServiceConnectionImpl::AssignNotebookRuntime( future> NotebookServiceConnectionImpl::AssignNotebookRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NotebookServiceConnectionImpl::DeleteNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -537,8 +534,7 @@ NotebookServiceConnectionImpl::DeleteNotebookRuntime( future> NotebookServiceConnectionImpl::DeleteNotebookRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NotebookServiceConnectionImpl::UpgradeNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -634,8 +630,7 @@ NotebookServiceConnectionImpl::UpgradeNotebookRuntime( future> NotebookServiceConnectionImpl::UpgradeNotebookRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NotebookServiceConnectionImpl::StartNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -729,8 +724,7 @@ NotebookServiceConnectionImpl::StartNotebookRuntime( future> NotebookServiceConnectionImpl::StartNotebookRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateNotebookRuntimeTemplateRequest const& request) override; future> CreateNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -83,13 +83,13 @@ class NotebookServiceConnectionImpl request) override; StatusOr DeleteNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteNotebookRuntimeTemplateRequest const& request) override; future> DeleteNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -103,13 +103,13 @@ class NotebookServiceConnectionImpl request) override; StatusOr AssignNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& request) override; future> AssignNotebookRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetNotebookRuntime( @@ -127,13 +127,13 @@ class NotebookServiceConnectionImpl request) override; StatusOr DeleteNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& request) override; future> DeleteNotebookRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -143,14 +143,14 @@ class NotebookServiceConnectionImpl request) override; StatusOr UpgradeNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& request) override; future< StatusOr> UpgradeNotebookRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -159,13 +159,13 @@ class NotebookServiceConnectionImpl override; StatusOr StartNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request) override; future> StartNotebookRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.cc index 040cdf04605af..1f065fb6c2057 100644 --- a/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.cc @@ -47,29 +47,28 @@ NotebookServiceTracingConnection::CreateNotebookRuntimeTemplate( StatusOr NotebookServiceTracingConnection::CreateNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateNotebookRuntimeTemplateRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::" "CreateNotebookRuntimeTemplate"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateNotebookRuntimeTemplate( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateNotebookRuntimeTemplate(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::CreateNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::" "CreateNotebookRuntimeTemplate"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateNotebookRuntimeTemplate( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->CreateNotebookRuntimeTemplate(ExperimentalTag{}, operation)); } StatusOr @@ -109,29 +108,28 @@ NotebookServiceTracingConnection::DeleteNotebookRuntimeTemplate( StatusOr NotebookServiceTracingConnection::DeleteNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNotebookRuntimeTemplateRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::" "DeleteNotebookRuntimeTemplate"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteNotebookRuntimeTemplate( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteNotebookRuntimeTemplate(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::DeleteNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::" "DeleteNotebookRuntimeTemplate"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteNotebookRuntimeTemplate( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->DeleteNotebookRuntimeTemplate(ExperimentalTag{}, operation)); } StatusOr @@ -159,27 +157,25 @@ NotebookServiceTracingConnection::AssignNotebookRuntime( StatusOr NotebookServiceTracingConnection::AssignNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::AssignNotebookRuntime"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->AssignNotebookRuntime( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->AssignNotebookRuntime(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::AssignNotebookRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::AssignNotebookRuntime"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->AssignNotebookRuntime( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->AssignNotebookRuntime( + ExperimentalTag{}, operation)); } StatusOr @@ -216,27 +212,25 @@ NotebookServiceTracingConnection::DeleteNotebookRuntime( StatusOr NotebookServiceTracingConnection::DeleteNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::DeleteNotebookRuntime"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteNotebookRuntime( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteNotebookRuntime(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::DeleteNotebookRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::DeleteNotebookRuntime"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteNotebookRuntime( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteNotebookRuntime( + ExperimentalTag{}, operation)); } future> @@ -252,27 +246,25 @@ NotebookServiceTracingConnection::UpgradeNotebookRuntime( StatusOr NotebookServiceTracingConnection::UpgradeNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::UpgradeNotebookRuntime"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpgradeNotebookRuntime( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpgradeNotebookRuntime(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::UpgradeNotebookRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::UpgradeNotebookRuntime"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpgradeNotebookRuntime( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpgradeNotebookRuntime( + ExperimentalTag{}, operation)); } future> @@ -287,26 +279,24 @@ NotebookServiceTracingConnection::StartNotebookRuntime( StatusOr NotebookServiceTracingConnection::StartNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::StartNotebookRuntime"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->StartNotebookRuntime( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->StartNotebookRuntime(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::StartNotebookRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::NotebookServiceConnection::StartNotebookRuntime"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->StartNotebookRuntime( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->StartNotebookRuntime( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.h b/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.h index 5ca881ceb2fe2..8a545209d63a8 100644 --- a/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/notebook_tracing_connection.h @@ -46,13 +46,13 @@ class NotebookServiceTracingConnection request) override; StatusOr CreateNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateNotebookRuntimeTemplateRequest const& request) override; future> CreateNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -71,13 +71,13 @@ class NotebookServiceTracingConnection request) override; StatusOr DeleteNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNotebookRuntimeTemplateRequest const& request) override; future> DeleteNotebookRuntimeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -91,13 +91,13 @@ class NotebookServiceTracingConnection request) override; StatusOr AssignNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& request) override; future> AssignNotebookRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetNotebookRuntime( @@ -115,13 +115,13 @@ class NotebookServiceTracingConnection request) override; StatusOr DeleteNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& request) override; future> DeleteNotebookRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -131,14 +131,14 @@ class NotebookServiceTracingConnection request) override; StatusOr UpgradeNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& request) override; future< StatusOr> UpgradeNotebookRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -147,13 +147,13 @@ class NotebookServiceTracingConnection override; StatusOr StartNotebookRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request) override; future> StartNotebookRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.cc b/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.cc index 77ce2d3cb1c1a..036d1dccaf8f3 100644 --- a/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.cc @@ -118,7 +118,7 @@ PersistentResourceServiceConnectionImpl::CreatePersistentResource( StatusOr PersistentResourceServiceConnectionImpl::CreatePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -136,8 +136,7 @@ PersistentResourceServiceConnectionImpl::CreatePersistentResource( future> PersistentResourceServiceConnectionImpl::CreatePersistentResource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is PersistentResourceServiceConnectionImpl::DeletePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -287,8 +286,7 @@ PersistentResourceServiceConnectionImpl::DeletePersistentResource( future> PersistentResourceServiceConnectionImpl::DeletePersistentResource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is PersistentResourceServiceConnectionImpl::UpdatePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -385,8 +383,7 @@ PersistentResourceServiceConnectionImpl::UpdatePersistentResource( future> PersistentResourceServiceConnectionImpl::UpdatePersistentResource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is PersistentResourceServiceConnectionImpl::RebootPersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -483,8 +480,7 @@ PersistentResourceServiceConnectionImpl::RebootPersistentResource( future> PersistentResourceServiceConnectionImpl::RebootPersistentResource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreatePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& request) override; future> CreatePersistentResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -84,13 +84,13 @@ class PersistentResourceServiceConnectionImpl request) override; StatusOr DeletePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& request) override; future> DeletePersistentResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -99,13 +99,13 @@ class PersistentResourceServiceConnectionImpl request) override; StatusOr UpdatePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& request) override; future> UpdatePersistentResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -114,13 +114,13 @@ class PersistentResourceServiceConnectionImpl request) override; StatusOr RebootPersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& request) override; future> RebootPersistentResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.cc index a57c6c39abbf8..1babba5d2688f 100644 --- a/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.cc @@ -49,29 +49,27 @@ PersistentResourceServiceTracingConnection::CreatePersistentResource( StatusOr PersistentResourceServiceTracingConnection::CreatePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::PersistentResourceServiceConnection::" "CreatePersistentResource"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreatePersistentResource( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreatePersistentResource(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> PersistentResourceServiceTracingConnection::CreatePersistentResource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::PersistentResourceServiceConnection::" "CreatePersistentResource"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreatePersistentResource( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreatePersistentResource( + ExperimentalTag{}, operation)); } StatusOr @@ -112,29 +110,27 @@ PersistentResourceServiceTracingConnection::DeletePersistentResource( StatusOr PersistentResourceServiceTracingConnection::DeletePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::PersistentResourceServiceConnection::" "DeletePersistentResource"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeletePersistentResource( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeletePersistentResource(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> PersistentResourceServiceTracingConnection::DeletePersistentResource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::PersistentResourceServiceConnection::" "DeletePersistentResource"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeletePersistentResource( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeletePersistentResource( + ExperimentalTag{}, operation)); } future> @@ -151,29 +147,27 @@ PersistentResourceServiceTracingConnection::UpdatePersistentResource( StatusOr PersistentResourceServiceTracingConnection::UpdatePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::PersistentResourceServiceConnection::" "UpdatePersistentResource"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdatePersistentResource( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdatePersistentResource(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> PersistentResourceServiceTracingConnection::UpdatePersistentResource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::PersistentResourceServiceConnection::" "UpdatePersistentResource"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdatePersistentResource( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdatePersistentResource( + ExperimentalTag{}, operation)); } future> @@ -190,29 +184,27 @@ PersistentResourceServiceTracingConnection::RebootPersistentResource( StatusOr PersistentResourceServiceTracingConnection::RebootPersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::PersistentResourceServiceConnection::" "RebootPersistentResource"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RebootPersistentResource( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->RebootPersistentResource(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> PersistentResourceServiceTracingConnection::RebootPersistentResource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::PersistentResourceServiceConnection::" "RebootPersistentResource"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RebootPersistentResource( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RebootPersistentResource( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.h b/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.h index d215275982f6d..6a7991b4a8c37 100644 --- a/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/persistent_resource_tracing_connection.h @@ -47,13 +47,13 @@ class PersistentResourceServiceTracingConnection request) override; StatusOr CreatePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& request) override; future> CreatePersistentResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -72,13 +72,13 @@ class PersistentResourceServiceTracingConnection request) override; StatusOr DeletePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& request) override; future> DeletePersistentResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -87,13 +87,13 @@ class PersistentResourceServiceTracingConnection request) override; StatusOr UpdatePersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& request) override; future> UpdatePersistentResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -102,13 +102,13 @@ class PersistentResourceServiceTracingConnection request) override; StatusOr RebootPersistentResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& request) override; future> RebootPersistentResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.cc b/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.cc index 34f47a79b5a14..970fe8cd2c606 100644 --- a/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.cc @@ -177,7 +177,7 @@ PipelineServiceConnectionImpl::DeleteTrainingPipeline( StatusOr PipelineServiceConnectionImpl::DeleteTrainingPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -194,8 +194,7 @@ PipelineServiceConnectionImpl::DeleteTrainingPipeline( future> PipelineServiceConnectionImpl::DeleteTrainingPipeline( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is PipelineServiceConnectionImpl::DeletePipelineJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -368,8 +367,7 @@ PipelineServiceConnectionImpl::DeletePipelineJob( future> PipelineServiceConnectionImpl::DeletePipelineJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is PipelineServiceConnectionImpl::BatchDeletePipelineJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -466,8 +464,7 @@ PipelineServiceConnectionImpl::BatchDeletePipelineJobs( future> PipelineServiceConnectionImpl::BatchDeletePipelineJobs( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is PipelineServiceConnectionImpl::BatchCancelPipelineJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -578,8 +575,7 @@ PipelineServiceConnectionImpl::BatchCancelPipelineJobs( future> PipelineServiceConnectionImpl::BatchCancelPipelineJobs( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DeleteTrainingPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& request) override; future> DeleteTrainingPipeline( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status CancelTrainingPipeline( @@ -102,12 +102,12 @@ class PipelineServiceConnectionImpl override; StatusOr DeletePipelineJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request) override; future> - DeletePipelineJob(google::cloud::ExperimentalTag, + DeletePipelineJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -117,14 +117,14 @@ class PipelineServiceConnectionImpl request) override; StatusOr BatchDeletePipelineJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& request) override; future< StatusOr> BatchDeletePipelineJobs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status CancelPipelineJob( @@ -138,14 +138,14 @@ class PipelineServiceConnectionImpl request) override; StatusOr BatchCancelPipelineJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& request) override; future< StatusOr> BatchCancelPipelineJobs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.cc index 43e60e80e172d..1223bf158fb40 100644 --- a/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.cc @@ -77,27 +77,25 @@ PipelineServiceTracingConnection::DeleteTrainingPipeline( StatusOr PipelineServiceTracingConnection::DeleteTrainingPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::PipelineServiceConnection::DeleteTrainingPipeline"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteTrainingPipeline( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteTrainingPipeline(ExperimentalTag{}, NoAwaitTag{}, request)); } future> PipelineServiceTracingConnection::DeleteTrainingPipeline( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::PipelineServiceConnection::DeleteTrainingPipeline"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteTrainingPipeline( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteTrainingPipeline( + ExperimentalTag{}, operation)); } Status PipelineServiceTracingConnection::CancelTrainingPipeline( @@ -150,26 +148,24 @@ PipelineServiceTracingConnection::DeletePipelineJob( StatusOr PipelineServiceTracingConnection::DeletePipelineJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::PipelineServiceConnection::DeletePipelineJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeletePipelineJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeletePipelineJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> PipelineServiceTracingConnection::DeletePipelineJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::PipelineServiceConnection::DeletePipelineJob"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeletePipelineJob(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeletePipelineJob(ExperimentalTag{}, operation)); } future> @@ -185,27 +181,25 @@ PipelineServiceTracingConnection::BatchDeletePipelineJobs( StatusOr PipelineServiceTracingConnection::BatchDeletePipelineJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::PipelineServiceConnection::BatchDeletePipelineJobs"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->BatchDeletePipelineJobs( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->BatchDeletePipelineJobs(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> PipelineServiceTracingConnection::BatchDeletePipelineJobs( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::PipelineServiceConnection::BatchDeletePipelineJobs"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->BatchDeletePipelineJobs( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchDeletePipelineJobs( + ExperimentalTag{}, operation)); } Status PipelineServiceTracingConnection::CancelPipelineJob( @@ -229,27 +223,25 @@ PipelineServiceTracingConnection::BatchCancelPipelineJobs( StatusOr PipelineServiceTracingConnection::BatchCancelPipelineJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::PipelineServiceConnection::BatchCancelPipelineJobs"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->BatchCancelPipelineJobs( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->BatchCancelPipelineJobs(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> PipelineServiceTracingConnection::BatchCancelPipelineJobs( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::PipelineServiceConnection::BatchCancelPipelineJobs"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->BatchCancelPipelineJobs( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchCancelPipelineJobs( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.h b/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.h index 672d43822d5cd..be8c3ce8382a4 100644 --- a/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/pipeline_tracing_connection.h @@ -60,13 +60,13 @@ class PipelineServiceTracingConnection request) override; StatusOr DeleteTrainingPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& request) override; future> DeleteTrainingPipeline( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status CancelTrainingPipeline( @@ -90,12 +90,12 @@ class PipelineServiceTracingConnection override; StatusOr DeletePipelineJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request) override; future> - DeletePipelineJob(google::cloud::ExperimentalTag, + DeletePipelineJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -105,14 +105,14 @@ class PipelineServiceTracingConnection request) override; StatusOr BatchDeletePipelineJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& request) override; future< StatusOr> BatchDeletePipelineJobs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status CancelPipelineJob( @@ -126,14 +126,14 @@ class PipelineServiceTracingConnection request) override; StatusOr BatchCancelPipelineJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& request) override; future< StatusOr> BatchCancelPipelineJobs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/schedule_connection_impl.cc b/google/cloud/aiplatform/v1/internal/schedule_connection_impl.cc index 23d136abce495..46d560d921493 100644 --- a/google/cloud/aiplatform/v1/internal/schedule_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/schedule_connection_impl.cc @@ -123,7 +123,7 @@ ScheduleServiceConnectionImpl::DeleteSchedule( StatusOr ScheduleServiceConnectionImpl::DeleteSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteScheduleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -139,8 +139,7 @@ ScheduleServiceConnectionImpl::DeleteSchedule( future> ScheduleServiceConnectionImpl::DeleteSchedule( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DeleteSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteScheduleRequest const& request) override; future> - DeleteSchedule(google::cloud::ExperimentalTag, + DeleteSchedule(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetSchedule( diff --git a/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.cc index 09fad91fe2627..acc6aac6794f1 100644 --- a/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.cc @@ -53,26 +53,23 @@ ScheduleServiceTracingConnection::DeleteSchedule( StatusOr ScheduleServiceTracingConnection::DeleteSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteScheduleRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::ScheduleServiceConnection::DeleteSchedule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSchedule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteSchedule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ScheduleServiceTracingConnection::DeleteSchedule( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::ScheduleServiceConnection::DeleteSchedule"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteSchedule(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteSchedule(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.h b/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.h index 9882711627821..2b683a0d903bc 100644 --- a/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/schedule_tracing_connection.h @@ -49,12 +49,12 @@ class ScheduleServiceTracingConnection request) override; StatusOr DeleteSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteScheduleRequest const& request) override; future> - DeleteSchedule(google::cloud::ExperimentalTag, + DeleteSchedule(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetSchedule( diff --git a/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.cc b/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.cc index dc7999c2216ba..8d792bad63d86 100644 --- a/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.cc @@ -110,7 +110,7 @@ SpecialistPoolServiceConnectionImpl::CreateSpecialistPool( StatusOr SpecialistPoolServiceConnectionImpl::CreateSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -126,8 +126,7 @@ SpecialistPoolServiceConnectionImpl::CreateSpecialistPool( future> SpecialistPoolServiceConnectionImpl::CreateSpecialistPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SpecialistPoolServiceConnectionImpl::DeleteSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -271,8 +270,7 @@ SpecialistPoolServiceConnectionImpl::DeleteSpecialistPool( future> SpecialistPoolServiceConnectionImpl::DeleteSpecialistPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SpecialistPoolServiceConnectionImpl::UpdateSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -366,8 +364,7 @@ SpecialistPoolServiceConnectionImpl::UpdateSpecialistPool( future> SpecialistPoolServiceConnectionImpl::UpdateSpecialistPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& request) override; future> CreateSpecialistPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetSpecialistPool( @@ -81,13 +81,13 @@ class SpecialistPoolServiceConnectionImpl override; StatusOr DeleteSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& request) override; future> DeleteSpecialistPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -96,13 +96,13 @@ class SpecialistPoolServiceConnectionImpl override; StatusOr UpdateSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request) override; future> UpdateSpecialistPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.cc index 337dd4fa9aa2b..1e218933590a9 100644 --- a/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.cc @@ -45,26 +45,24 @@ SpecialistPoolServiceTracingConnection::CreateSpecialistPool( StatusOr SpecialistPoolServiceTracingConnection::CreateSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::SpecialistPoolServiceConnection::CreateSpecialistPool"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateSpecialistPool( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateSpecialistPool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpecialistPoolServiceTracingConnection::CreateSpecialistPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::SpecialistPoolServiceConnection::CreateSpecialistPool"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateSpecialistPool( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateSpecialistPool( + ExperimentalTag{}, operation)); } StatusOr @@ -100,26 +98,24 @@ SpecialistPoolServiceTracingConnection::DeleteSpecialistPool( StatusOr SpecialistPoolServiceTracingConnection::DeleteSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::SpecialistPoolServiceConnection::DeleteSpecialistPool"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteSpecialistPool( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteSpecialistPool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpecialistPoolServiceTracingConnection::DeleteSpecialistPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::SpecialistPoolServiceConnection::DeleteSpecialistPool"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteSpecialistPool( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteSpecialistPool( + ExperimentalTag{}, operation)); } future> @@ -134,26 +130,24 @@ SpecialistPoolServiceTracingConnection::UpdateSpecialistPool( StatusOr SpecialistPoolServiceTracingConnection::UpdateSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::SpecialistPoolServiceConnection::UpdateSpecialistPool"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateSpecialistPool( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateSpecialistPool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpecialistPoolServiceTracingConnection::UpdateSpecialistPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::SpecialistPoolServiceConnection::UpdateSpecialistPool"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateSpecialistPool( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateSpecialistPool( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.h b/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.h index 6a04309d39080..e160f0a9304e6 100644 --- a/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/specialist_pool_tracing_connection.h @@ -46,13 +46,13 @@ class SpecialistPoolServiceTracingConnection override; StatusOr CreateSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& request) override; future> CreateSpecialistPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetSpecialistPool( @@ -69,13 +69,13 @@ class SpecialistPoolServiceTracingConnection override; StatusOr DeleteSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& request) override; future> DeleteSpecialistPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -84,13 +84,13 @@ class SpecialistPoolServiceTracingConnection override; StatusOr UpdateSpecialistPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request) override; future> UpdateSpecialistPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.cc b/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.cc index ad0e674e35a94..57652c3da3ad7 100644 --- a/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.cc @@ -115,7 +115,7 @@ TensorboardServiceConnectionImpl::CreateTensorboard( StatusOr TensorboardServiceConnectionImpl::CreateTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateTensorboardRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -131,8 +131,7 @@ TensorboardServiceConnectionImpl::CreateTensorboard( future> TensorboardServiceConnectionImpl::CreateTensorboard( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TensorboardServiceConnectionImpl::UpdateTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -241,8 +240,7 @@ TensorboardServiceConnectionImpl::UpdateTensorboard( future> TensorboardServiceConnectionImpl::UpdateTensorboard( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TensorboardServiceConnectionImpl::DeleteTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -370,8 +368,7 @@ TensorboardServiceConnectionImpl::DeleteTensorboard( future> TensorboardServiceConnectionImpl::DeleteTensorboard( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TensorboardServiceConnectionImpl::DeleteTensorboardExperiment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -582,8 +579,7 @@ TensorboardServiceConnectionImpl::DeleteTensorboardExperiment( future> TensorboardServiceConnectionImpl::DeleteTensorboardExperiment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TensorboardServiceConnectionImpl::DeleteTensorboardRun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -773,8 +769,7 @@ TensorboardServiceConnectionImpl::DeleteTensorboardRun( future> TensorboardServiceConnectionImpl::DeleteTensorboardRun( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TensorboardServiceConnectionImpl::DeleteTensorboardTimeSeries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -972,8 +967,7 @@ TensorboardServiceConnectionImpl::DeleteTensorboardTimeSeries( future> TensorboardServiceConnectionImpl::DeleteTensorboardTimeSeries( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CreateTensorboardRequest const& request) override; future> - CreateTensorboard(google::cloud::ExperimentalTag, + CreateTensorboard(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetTensorboard( @@ -81,12 +81,12 @@ class TensorboardServiceConnectionImpl override; StatusOr UpdateTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request) override; future> - UpdateTensorboard(google::cloud::ExperimentalTag, + UpdateTensorboard(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTensorboards( @@ -98,12 +98,12 @@ class TensorboardServiceConnectionImpl override; StatusOr DeleteTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request) override; future> - DeleteTensorboard(google::cloud::ExperimentalTag, + DeleteTensorboard(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -142,13 +142,13 @@ class TensorboardServiceConnectionImpl request) override; StatusOr DeleteTensorboardExperiment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& request) override; future> DeleteTensorboardExperiment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateTensorboardRun( @@ -178,13 +178,13 @@ class TensorboardServiceConnectionImpl override; StatusOr DeleteTensorboardRun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& request) override; future> DeleteTensorboardRun( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr< @@ -219,13 +219,13 @@ class TensorboardServiceConnectionImpl request) override; StatusOr DeleteTensorboardTimeSeries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& request) override; future> DeleteTensorboardTimeSeries( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr< diff --git a/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.cc index 52976fe431dea..726ff771943a6 100644 --- a/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.cc @@ -44,26 +44,24 @@ TensorboardServiceTracingConnection::CreateTensorboard( StatusOr TensorboardServiceTracingConnection::CreateTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateTensorboardRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::CreateTensorboard"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateTensorboard(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateTensorboard(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TensorboardServiceTracingConnection::CreateTensorboard( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::CreateTensorboard"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateTensorboard(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateTensorboard(ExperimentalTag{}, operation)); } StatusOr @@ -86,26 +84,24 @@ TensorboardServiceTracingConnection::UpdateTensorboard( StatusOr TensorboardServiceTracingConnection::UpdateTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::UpdateTensorboard"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateTensorboard(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateTensorboard(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TensorboardServiceTracingConnection::UpdateTensorboard( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::UpdateTensorboard"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateTensorboard(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateTensorboard(ExperimentalTag{}, operation)); } StreamRange @@ -131,26 +127,24 @@ TensorboardServiceTracingConnection::DeleteTensorboard( StatusOr TensorboardServiceTracingConnection::DeleteTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::DeleteTensorboard"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteTensorboard(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteTensorboard(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TensorboardServiceTracingConnection::DeleteTensorboard( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::DeleteTensorboard"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteTensorboard(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteTensorboard(ExperimentalTag{}, operation)); } StatusOr @@ -230,29 +224,27 @@ TensorboardServiceTracingConnection::DeleteTensorboardExperiment( StatusOr TensorboardServiceTracingConnection::DeleteTensorboardExperiment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::" "DeleteTensorboardExperiment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteTensorboardExperiment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteTensorboardExperiment(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> TensorboardServiceTracingConnection::DeleteTensorboardExperiment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::" "DeleteTensorboardExperiment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteTensorboardExperiment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteTensorboardExperiment( + ExperimentalTag{}, operation)); } StatusOr @@ -317,26 +309,24 @@ TensorboardServiceTracingConnection::DeleteTensorboardRun( StatusOr TensorboardServiceTracingConnection::DeleteTensorboardRun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::DeleteTensorboardRun"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteTensorboardRun( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteTensorboardRun(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TensorboardServiceTracingConnection::DeleteTensorboardRun( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::DeleteTensorboardRun"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteTensorboardRun( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteTensorboardRun( + ExperimentalTag{}, operation)); } StatusOr< @@ -410,29 +400,27 @@ TensorboardServiceTracingConnection::DeleteTensorboardTimeSeries( StatusOr TensorboardServiceTracingConnection::DeleteTensorboardTimeSeries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::" "DeleteTensorboardTimeSeries"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteTensorboardTimeSeries( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteTensorboardTimeSeries(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> TensorboardServiceTracingConnection::DeleteTensorboardTimeSeries( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::TensorboardServiceConnection::" "DeleteTensorboardTimeSeries"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteTensorboardTimeSeries( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteTensorboardTimeSeries( + ExperimentalTag{}, operation)); } StatusOr< diff --git a/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.h b/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.h index b5a9fbe0fe205..dfb328954d2a4 100644 --- a/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/tensorboard_tracing_connection.h @@ -46,12 +46,12 @@ class TensorboardServiceTracingConnection override; StatusOr CreateTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateTensorboardRequest const& request) override; future> - CreateTensorboard(google::cloud::ExperimentalTag, + CreateTensorboard(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetTensorboard( @@ -64,12 +64,12 @@ class TensorboardServiceTracingConnection override; StatusOr UpdateTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request) override; future> - UpdateTensorboard(google::cloud::ExperimentalTag, + UpdateTensorboard(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTensorboards( @@ -81,12 +81,12 @@ class TensorboardServiceTracingConnection override; StatusOr DeleteTensorboard( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request) override; future> - DeleteTensorboard(google::cloud::ExperimentalTag, + DeleteTensorboard(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -125,13 +125,13 @@ class TensorboardServiceTracingConnection request) override; StatusOr DeleteTensorboardExperiment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& request) override; future> DeleteTensorboardExperiment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateTensorboardRun( @@ -161,13 +161,13 @@ class TensorboardServiceTracingConnection override; StatusOr DeleteTensorboardRun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& request) override; future> DeleteTensorboardRun( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr< @@ -202,13 +202,13 @@ class TensorboardServiceTracingConnection request) override; StatusOr DeleteTensorboardTimeSeries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& request) override; future> DeleteTensorboardTimeSeries( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr< diff --git a/google/cloud/aiplatform/v1/internal/vizier_connection_impl.cc b/google/cloud/aiplatform/v1/internal/vizier_connection_impl.cc index 4a2c3f88bac67..79e613996a310 100644 --- a/google/cloud/aiplatform/v1/internal/vizier_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/vizier_connection_impl.cc @@ -196,7 +196,7 @@ VizierServiceConnectionImpl::SuggestTrials( StatusOr VizierServiceConnectionImpl::SuggestTrials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::SuggestTrialsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -212,8 +212,7 @@ VizierServiceConnectionImpl::SuggestTrials( future> VizierServiceConnectionImpl::SuggestTrials( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is VizierServiceConnectionImpl::CheckTrialEarlyStoppingState( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -415,8 +414,7 @@ VizierServiceConnectionImpl::CheckTrialEarlyStoppingState( future> VizierServiceConnectionImpl::CheckTrialEarlyStoppingState( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SuggestTrials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::SuggestTrialsRequest const& request) override; future> - SuggestTrials(google::cloud::ExperimentalTag, + SuggestTrials(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateTrial( @@ -110,14 +110,14 @@ class VizierServiceConnectionImpl request) override; StatusOr CheckTrialEarlyStoppingState( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& request) override; future> CheckTrialEarlyStoppingState( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr StopTrial( diff --git a/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.cc b/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.cc index eb5142f27b7d7..db81a226a526e 100644 --- a/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.cc +++ b/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.cc @@ -90,26 +90,23 @@ VizierServiceTracingConnection::SuggestTrials( StatusOr VizierServiceTracingConnection::SuggestTrials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::SuggestTrialsRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::VizierServiceConnection::SuggestTrials"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SuggestTrials(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SuggestTrials(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VizierServiceTracingConnection::SuggestTrials( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::VizierServiceConnection::SuggestTrials"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SuggestTrials(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SuggestTrials(ExperimentalTag{}, operation)); } StatusOr @@ -181,28 +178,27 @@ VizierServiceTracingConnection::CheckTrialEarlyStoppingState( StatusOr VizierServiceTracingConnection::CheckTrialEarlyStoppingState( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& request) { auto span = internal::MakeSpan( "aiplatform_v1::VizierServiceConnection::CheckTrialEarlyStoppingState"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CheckTrialEarlyStoppingState( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CheckTrialEarlyStoppingState(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> VizierServiceTracingConnection::CheckTrialEarlyStoppingState( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "aiplatform_v1::VizierServiceConnection::CheckTrialEarlyStoppingState"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CheckTrialEarlyStoppingState( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->CheckTrialEarlyStoppingState(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.h b/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.h index 55b93be3afc3a..7a0bdef762be7 100644 --- a/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.h +++ b/google/cloud/aiplatform/v1/internal/vizier_tracing_connection.h @@ -62,12 +62,12 @@ class VizierServiceTracingConnection request) override; StatusOr SuggestTrials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::SuggestTrialsRequest const& request) override; future> - SuggestTrials(google::cloud::ExperimentalTag, + SuggestTrials(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateTrial( @@ -98,14 +98,14 @@ class VizierServiceTracingConnection request) override; StatusOr CheckTrialEarlyStoppingState( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& request) override; future> CheckTrialEarlyStoppingState( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr StopTrial( diff --git a/google/cloud/aiplatform/v1/mocks/mock_dataset_connection.h b/google/cloud/aiplatform/v1/mocks/mock_dataset_connection.h index f7c776b904e2c..4f3f2b791cf00 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_dataset_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_dataset_connection.h @@ -54,13 +54,13 @@ class MockDatasetServiceConnection MOCK_METHOD( StatusOr, CreateDataset, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDatasetRequest const& request), (override)); MOCK_METHOD(future>, CreateDataset, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -86,15 +86,14 @@ class MockDatasetServiceConnection MOCK_METHOD( StatusOr, DeleteDataset, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDatasetRequest const& request), (override)); MOCK_METHOD( future>, DeleteDataset, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -104,15 +103,14 @@ class MockDatasetServiceConnection (override)); MOCK_METHOD(StatusOr, ImportData, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ImportDataRequest const& request), (override)); MOCK_METHOD( future>, ImportData, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -122,15 +120,14 @@ class MockDatasetServiceConnection (override)); MOCK_METHOD(StatusOr, ExportData, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportDataRequest const& request), (override)); MOCK_METHOD( future>, ExportData, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future>, @@ -140,14 +137,14 @@ class MockDatasetServiceConnection (override)); MOCK_METHOD(StatusOr, CreateDatasetVersion, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request), (override)); MOCK_METHOD(future>, CreateDatasetVersion, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -165,7 +162,7 @@ class MockDatasetServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteDatasetVersion, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& request), (override)); @@ -173,8 +170,7 @@ class MockDatasetServiceConnection MOCK_METHOD( future>, DeleteDatasetVersion, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -198,14 +194,14 @@ class MockDatasetServiceConnection MOCK_METHOD( StatusOr, RestoreDatasetVersion, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& request), (override)); MOCK_METHOD(future>, RestoreDatasetVersion, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -232,15 +228,14 @@ class MockDatasetServiceConnection MOCK_METHOD( StatusOr, DeleteSavedQuery, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request), (override)); MOCK_METHOD( future>, DeleteSavedQuery, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/aiplatform/v1/mocks/mock_deployment_resource_pool_connection.h b/google/cloud/aiplatform/v1/mocks/mock_deployment_resource_pool_connection.h index ebdb439a8564c..ce96b37b0c3bc 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_deployment_resource_pool_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_deployment_resource_pool_connection.h @@ -56,7 +56,7 @@ class MockDeploymentResourcePoolServiceConnection MOCK_METHOD( StatusOr, CreateDeploymentResourcePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& request), (override)); @@ -64,8 +64,7 @@ class MockDeploymentResourcePoolServiceConnection MOCK_METHOD( future>, CreateDeploymentResourcePool, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -91,7 +90,7 @@ class MockDeploymentResourcePoolServiceConnection MOCK_METHOD( StatusOr, DeleteDeploymentResourcePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& request), (override)); @@ -99,8 +98,7 @@ class MockDeploymentResourcePoolServiceConnection MOCK_METHOD( future>, DeleteDeploymentResourcePool, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/aiplatform/v1/mocks/mock_endpoint_connection.h b/google/cloud/aiplatform/v1/mocks/mock_endpoint_connection.h index 40a78bcc85f0f..65700e90b995b 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_endpoint_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_endpoint_connection.h @@ -54,13 +54,13 @@ class MockEndpointServiceConnection MOCK_METHOD( StatusOr, CreateEndpoint, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateEndpointRequest const& request), (override)); MOCK_METHOD(future>, CreateEndpoint, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -87,15 +87,14 @@ class MockEndpointServiceConnection MOCK_METHOD( StatusOr, DeleteEndpoint, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteEndpointRequest const& request), (override)); MOCK_METHOD( future>, DeleteEndpoint, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -106,15 +105,14 @@ class MockEndpointServiceConnection MOCK_METHOD( StatusOr, DeployModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeployModelRequest const& request), (override)); MOCK_METHOD( future>, DeployModel, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -125,15 +123,14 @@ class MockEndpointServiceConnection MOCK_METHOD( StatusOr, UndeployModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UndeployModelRequest const& request), (override)); MOCK_METHOD( future>, UndeployModel, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -145,7 +142,7 @@ class MockEndpointServiceConnection (override)); MOCK_METHOD(StatusOr, MutateDeployedModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request), (override)); @@ -154,8 +151,7 @@ class MockEndpointServiceConnection future< StatusOr>, MutateDeployedModel, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/aiplatform/v1/mocks/mock_feature_online_store_admin_connection.h b/google/cloud/aiplatform/v1/mocks/mock_feature_online_store_admin_connection.h index cb707bddb6830..2c3051052847f 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_feature_online_store_admin_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_feature_online_store_admin_connection.h @@ -56,7 +56,7 @@ class MockFeatureOnlineStoreAdminServiceConnection MOCK_METHOD( StatusOr, CreateFeatureOnlineStore, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& request), (override)); @@ -64,8 +64,7 @@ class MockFeatureOnlineStoreAdminServiceConnection MOCK_METHOD( future>, CreateFeatureOnlineStore, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -90,7 +89,7 @@ class MockFeatureOnlineStoreAdminServiceConnection MOCK_METHOD( StatusOr, UpdateFeatureOnlineStore, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& request), (override)); @@ -98,8 +97,7 @@ class MockFeatureOnlineStoreAdminServiceConnection MOCK_METHOD( future>, UpdateFeatureOnlineStore, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -111,7 +109,7 @@ class MockFeatureOnlineStoreAdminServiceConnection MOCK_METHOD( StatusOr, DeleteFeatureOnlineStore, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& request), (override)); @@ -119,8 +117,7 @@ class MockFeatureOnlineStoreAdminServiceConnection MOCK_METHOD( future>, DeleteFeatureOnlineStore, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -131,13 +128,13 @@ class MockFeatureOnlineStoreAdminServiceConnection MOCK_METHOD( StatusOr, CreateFeatureView, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request), (override)); MOCK_METHOD(future>, CreateFeatureView, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -159,13 +156,13 @@ class MockFeatureOnlineStoreAdminServiceConnection MOCK_METHOD( StatusOr, UpdateFeatureView, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request), (override)); MOCK_METHOD(future>, UpdateFeatureView, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -177,15 +174,14 @@ class MockFeatureOnlineStoreAdminServiceConnection MOCK_METHOD( StatusOr, DeleteFeatureView, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request), (override)); MOCK_METHOD( future>, DeleteFeatureView, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/aiplatform/v1/mocks/mock_feature_registry_connection.h b/google/cloud/aiplatform/v1/mocks/mock_feature_registry_connection.h index bf4e4f4a263c9..f95b34522ecdb 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_feature_registry_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_feature_registry_connection.h @@ -55,13 +55,13 @@ class MockFeatureRegistryServiceConnection MOCK_METHOD( StatusOr, CreateFeatureGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request), (override)); MOCK_METHOD(future>, CreateFeatureGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -83,13 +83,13 @@ class MockFeatureRegistryServiceConnection MOCK_METHOD( StatusOr, UpdateFeatureGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request), (override)); MOCK_METHOD(future>, UpdateFeatureGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -101,15 +101,14 @@ class MockFeatureRegistryServiceConnection MOCK_METHOD( StatusOr, DeleteFeatureGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request), (override)); MOCK_METHOD( future>, DeleteFeatureGroup, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -119,13 +118,13 @@ class MockFeatureRegistryServiceConnection MOCK_METHOD( StatusOr, CreateFeature, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureRequest const& request), (override)); MOCK_METHOD(future>, CreateFeature, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -145,13 +144,13 @@ class MockFeatureRegistryServiceConnection MOCK_METHOD( StatusOr, UpdateFeature, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureRequest const& request), (override)); MOCK_METHOD(future>, UpdateFeature, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -163,15 +162,14 @@ class MockFeatureRegistryServiceConnection MOCK_METHOD( StatusOr, DeleteFeature, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const& request), (override)); MOCK_METHOD( future>, DeleteFeature, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/aiplatform/v1/mocks/mock_featurestore_connection.h b/google/cloud/aiplatform/v1/mocks/mock_featurestore_connection.h index 4d8386ac20464..998db9400506c 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_featurestore_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_featurestore_connection.h @@ -55,13 +55,13 @@ class MockFeaturestoreServiceConnection MOCK_METHOD( StatusOr, CreateFeaturestore, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request), (override)); MOCK_METHOD(future>, CreateFeaturestore, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -83,13 +83,13 @@ class MockFeaturestoreServiceConnection MOCK_METHOD( StatusOr, UpdateFeaturestore, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request), (override)); MOCK_METHOD(future>, UpdateFeaturestore, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -101,15 +101,14 @@ class MockFeaturestoreServiceConnection MOCK_METHOD( StatusOr, DeleteFeaturestore, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request), (override)); MOCK_METHOD( future>, DeleteFeaturestore, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -120,13 +119,13 @@ class MockFeaturestoreServiceConnection MOCK_METHOD( StatusOr, CreateEntityType, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request), (override)); MOCK_METHOD(future>, CreateEntityType, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -153,15 +152,14 @@ class MockFeaturestoreServiceConnection MOCK_METHOD( StatusOr, DeleteEntityType, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request), (override)); MOCK_METHOD( future>, DeleteEntityType, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -171,13 +169,13 @@ class MockFeaturestoreServiceConnection MOCK_METHOD( StatusOr, CreateFeature, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureRequest const& request), (override)); MOCK_METHOD(future>, CreateFeature, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -190,7 +188,7 @@ class MockFeaturestoreServiceConnection (override)); MOCK_METHOD(StatusOr, BatchCreateFeatures, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request), (override)); @@ -199,8 +197,7 @@ class MockFeaturestoreServiceConnection future< StatusOr>, BatchCreateFeatures, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, GetFeature, @@ -225,15 +222,14 @@ class MockFeaturestoreServiceConnection MOCK_METHOD( StatusOr, DeleteFeature, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const& request), (override)); MOCK_METHOD( future>, DeleteFeature, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -245,7 +241,7 @@ class MockFeaturestoreServiceConnection (override)); MOCK_METHOD(StatusOr, ImportFeatureValues, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request), (override)); @@ -254,8 +250,7 @@ class MockFeaturestoreServiceConnection future< StatusOr>, ImportFeatureValues, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -268,7 +263,7 @@ class MockFeaturestoreServiceConnection MOCK_METHOD( StatusOr, BatchReadFeatureValues, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& request), (override)); @@ -277,8 +272,7 @@ class MockFeaturestoreServiceConnection future>, BatchReadFeatureValues, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -290,7 +284,7 @@ class MockFeaturestoreServiceConnection (override)); MOCK_METHOD(StatusOr, ExportFeatureValues, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request), (override)); @@ -299,8 +293,7 @@ class MockFeaturestoreServiceConnection future< StatusOr>, ExportFeatureValues, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -312,7 +305,7 @@ class MockFeaturestoreServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteFeatureValues, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request), (override)); @@ -321,8 +314,7 @@ class MockFeaturestoreServiceConnection future< StatusOr>, DeleteFeatureValues, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), diff --git a/google/cloud/aiplatform/v1/mocks/mock_index_connection.h b/google/cloud/aiplatform/v1/mocks/mock_index_connection.h index b676447fa6eca..6f04fbb73b7f1 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_index_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_index_connection.h @@ -54,13 +54,13 @@ class MockIndexServiceConnection MOCK_METHOD( StatusOr, CreateIndex, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateIndexRequest const& request), (override)); MOCK_METHOD(future>, CreateIndex, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -79,13 +79,13 @@ class MockIndexServiceConnection MOCK_METHOD( StatusOr, UpdateIndex, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateIndexRequest const& request), (override)); MOCK_METHOD(future>, UpdateIndex, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -97,15 +97,14 @@ class MockIndexServiceConnection MOCK_METHOD( StatusOr, DeleteIndex, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteIndexRequest const& request), (override)); MOCK_METHOD( future>, DeleteIndex, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/aiplatform/v1/mocks/mock_index_endpoint_connection.h b/google/cloud/aiplatform/v1/mocks/mock_index_endpoint_connection.h index e84563294c3fe..ab9b06a809533 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_index_endpoint_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_index_endpoint_connection.h @@ -54,14 +54,14 @@ class MockIndexEndpointServiceConnection (override)); MOCK_METHOD(StatusOr, CreateIndexEndpoint, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request), (override)); MOCK_METHOD(future>, CreateIndexEndpoint, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -90,7 +90,7 @@ class MockIndexEndpointServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteIndexEndpoint, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request), (override)); @@ -98,8 +98,7 @@ class MockIndexEndpointServiceConnection MOCK_METHOD( future>, DeleteIndexEndpoint, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -110,15 +109,14 @@ class MockIndexEndpointServiceConnection MOCK_METHOD( StatusOr, DeployIndex, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeployIndexRequest const& request), (override)); MOCK_METHOD( future>, DeployIndex, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -129,15 +127,14 @@ class MockIndexEndpointServiceConnection MOCK_METHOD( StatusOr, UndeployIndex, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UndeployIndexRequest const& request), (override)); MOCK_METHOD( future>, UndeployIndex, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -149,7 +146,7 @@ class MockIndexEndpointServiceConnection (override)); MOCK_METHOD(StatusOr, MutateDeployedIndex, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request), (override)); @@ -158,8 +155,7 @@ class MockIndexEndpointServiceConnection future< StatusOr>, MutateDeployedIndex, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/aiplatform/v1/mocks/mock_job_connection.h b/google/cloud/aiplatform/v1/mocks/mock_job_connection.h index 25f8b97ef290f..91811be7be44d 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_job_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_job_connection.h @@ -69,15 +69,14 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { MOCK_METHOD( StatusOr, DeleteCustomJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request), (override)); MOCK_METHOD( future>, DeleteCustomJob, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -113,7 +112,7 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { MOCK_METHOD( StatusOr, DeleteDataLabelingJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& request), (override)); @@ -121,8 +120,7 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { MOCK_METHOD( future>, DeleteDataLabelingJob, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -160,7 +158,7 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { MOCK_METHOD(StatusOr, DeleteHyperparameterTuningJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: DeleteHyperparameterTuningJobRequest const& request), (override)); @@ -168,8 +166,7 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { MOCK_METHOD( future>, DeleteHyperparameterTuningJob, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(Status, CancelHyperparameterTuningJob, @@ -198,15 +195,14 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { MOCK_METHOD( StatusOr, DeleteNasJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNasJobRequest const& request), (override)); MOCK_METHOD( future>, DeleteNasJob, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -255,7 +251,7 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { MOCK_METHOD( StatusOr, DeleteBatchPredictionJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& request), (override)); @@ -263,8 +259,7 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { MOCK_METHOD( future>, DeleteBatchPredictionJob, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -312,7 +307,7 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { MOCK_METHOD(StatusOr, UpdateModelDeploymentMonitoringJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: UpdateModelDeploymentMonitoringJobRequest const& request), (override)); @@ -320,7 +315,7 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { MOCK_METHOD(future>, UpdateModelDeploymentMonitoringJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -333,7 +328,7 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { MOCK_METHOD(StatusOr, DeleteModelDeploymentMonitoringJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: DeleteModelDeploymentMonitoringJobRequest const& request), (override)); @@ -341,8 +336,7 @@ class MockJobServiceConnection : public aiplatform_v1::JobServiceConnection { MOCK_METHOD( future>, DeleteModelDeploymentMonitoringJob, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(Status, PauseModelDeploymentMonitoringJob, diff --git a/google/cloud/aiplatform/v1/mocks/mock_metadata_connection.h b/google/cloud/aiplatform/v1/mocks/mock_metadata_connection.h index 36d66a06bb72a..e4cbaad92f4b5 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_metadata_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_metadata_connection.h @@ -54,14 +54,14 @@ class MockMetadataServiceConnection (override)); MOCK_METHOD(StatusOr, CreateMetadataStore, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request), (override)); MOCK_METHOD(future>, CreateMetadataStore, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -85,7 +85,7 @@ class MockMetadataServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteMetadataStore, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request), (override)); @@ -94,8 +94,7 @@ class MockMetadataServiceConnection future>, DeleteMetadataStore, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -126,15 +125,14 @@ class MockMetadataServiceConnection MOCK_METHOD( StatusOr, DeleteArtifact, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteArtifactRequest const& request), (override)); MOCK_METHOD( future>, DeleteArtifact, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -145,15 +143,14 @@ class MockMetadataServiceConnection MOCK_METHOD( StatusOr, PurgeArtifacts, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request), (override)); MOCK_METHOD( future>, PurgeArtifacts, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -183,15 +180,14 @@ class MockMetadataServiceConnection MOCK_METHOD( StatusOr, DeleteContext, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteContextRequest const& request), (override)); MOCK_METHOD( future>, DeleteContext, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -202,15 +198,14 @@ class MockMetadataServiceConnection MOCK_METHOD( StatusOr, PurgeContexts, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeContextsRequest const& request), (override)); MOCK_METHOD( future>, PurgeContexts, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, DeleteExecution, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteExecutionRequest const& request), (override)); MOCK_METHOD( future>, DeleteExecution, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -287,15 +281,14 @@ class MockMetadataServiceConnection MOCK_METHOD( StatusOr, PurgeExecutions, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request), (override)); MOCK_METHOD( future>, PurgeExecutions, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/aiplatform/v1/mocks/mock_migration_connection.h b/google/cloud/aiplatform/v1/mocks/mock_migration_connection.h index 093d37e70b250..b41ded76111e8 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_migration_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_migration_connection.h @@ -63,7 +63,7 @@ class MockMigrationServiceConnection MOCK_METHOD( StatusOr, BatchMigrateResources, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& request), (override)); @@ -72,8 +72,7 @@ class MockMigrationServiceConnection future>, BatchMigrateResources, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/aiplatform/v1/mocks/mock_model_connection.h b/google/cloud/aiplatform/v1/mocks/mock_model_connection.h index 7aeba23518c85..449b4ac458fe6 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_model_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_model_connection.h @@ -55,15 +55,14 @@ class MockModelServiceConnection MOCK_METHOD( StatusOr, UploadModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UploadModelRequest const& request), (override)); MOCK_METHOD( future>, UploadModel, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, GetModel, @@ -94,7 +93,7 @@ class MockModelServiceConnection MOCK_METHOD( StatusOr, UpdateExplanationDataset, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& request), (override)); @@ -103,8 +102,7 @@ class MockModelServiceConnection future>, UpdateExplanationDataset, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -115,15 +113,14 @@ class MockModelServiceConnection MOCK_METHOD( StatusOr, DeleteModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteModelRequest const& request), (override)); MOCK_METHOD( future>, DeleteModel, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -134,15 +131,14 @@ class MockModelServiceConnection MOCK_METHOD( StatusOr, DeleteModelVersion, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request), (override)); MOCK_METHOD( future>, DeleteModelVersion, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, @@ -159,15 +155,14 @@ class MockModelServiceConnection MOCK_METHOD( StatusOr, ExportModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportModelRequest const& request), (override)); MOCK_METHOD( future>, ExportModel, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -177,15 +172,14 @@ class MockModelServiceConnection (override)); MOCK_METHOD(StatusOr, CopyModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CopyModelRequest const& request), (override)); MOCK_METHOD( future>, CopyModel, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/aiplatform/v1/mocks/mock_notebook_connection.h b/google/cloud/aiplatform/v1/mocks/mock_notebook_connection.h index c34bcc955fa33..87f90a51c2565 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_notebook_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_notebook_connection.h @@ -56,7 +56,7 @@ class MockNotebookServiceConnection MOCK_METHOD(StatusOr, CreateNotebookRuntimeTemplate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: CreateNotebookRuntimeTemplateRequest const& request), (override)); @@ -64,8 +64,7 @@ class MockNotebookServiceConnection MOCK_METHOD( future>, CreateNotebookRuntimeTemplate, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -91,7 +90,7 @@ class MockNotebookServiceConnection MOCK_METHOD(StatusOr, DeleteNotebookRuntimeTemplate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: DeleteNotebookRuntimeTemplateRequest const& request), (override)); @@ -99,8 +98,7 @@ class MockNotebookServiceConnection MOCK_METHOD( future>, DeleteNotebookRuntimeTemplate, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, @@ -118,14 +116,14 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, AssignNotebookRuntime, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& request), (override)); MOCK_METHOD(future>, AssignNotebookRuntime, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -150,7 +148,7 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, DeleteNotebookRuntime, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& request), (override)); @@ -158,8 +156,7 @@ class MockNotebookServiceConnection MOCK_METHOD( future>, DeleteNotebookRuntime, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -172,7 +169,7 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, UpgradeNotebookRuntime, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& request), (override)); @@ -181,8 +178,7 @@ class MockNotebookServiceConnection future>, UpgradeNotebookRuntime, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future, StartNotebookRuntime, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request), (override)); @@ -201,7 +197,7 @@ class MockNotebookServiceConnection MOCK_METHOD(future>, StartNotebookRuntime, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/aiplatform/v1/mocks/mock_persistent_resource_connection.h b/google/cloud/aiplatform/v1/mocks/mock_persistent_resource_connection.h index c7cb477699830..2ba9a88b2c6cc 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_persistent_resource_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_persistent_resource_connection.h @@ -56,7 +56,7 @@ class MockPersistentResourceServiceConnection MOCK_METHOD( StatusOr, CreatePersistentResource, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& request), (override)); @@ -64,8 +64,7 @@ class MockPersistentResourceServiceConnection MOCK_METHOD( future>, CreatePersistentResource, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -90,7 +89,7 @@ class MockPersistentResourceServiceConnection MOCK_METHOD( StatusOr, DeletePersistentResource, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& request), (override)); @@ -98,8 +97,7 @@ class MockPersistentResourceServiceConnection MOCK_METHOD( future>, DeletePersistentResource, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -111,7 +109,7 @@ class MockPersistentResourceServiceConnection MOCK_METHOD( StatusOr, UpdatePersistentResource, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& request), (override)); @@ -119,8 +117,7 @@ class MockPersistentResourceServiceConnection MOCK_METHOD( future>, UpdatePersistentResource, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -132,7 +129,7 @@ class MockPersistentResourceServiceConnection MOCK_METHOD( StatusOr, RebootPersistentResource, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& request), (override)); @@ -140,8 +137,7 @@ class MockPersistentResourceServiceConnection MOCK_METHOD( future>, RebootPersistentResource, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/aiplatform/v1/mocks/mock_pipeline_connection.h b/google/cloud/aiplatform/v1/mocks/mock_pipeline_connection.h index 694489cd3b0a7..7adf57816228d 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_pipeline_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_pipeline_connection.h @@ -75,7 +75,7 @@ class MockPipelineServiceConnection MOCK_METHOD( StatusOr, DeleteTrainingPipeline, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& request), (override)); @@ -83,8 +83,7 @@ class MockPipelineServiceConnection MOCK_METHOD( future>, DeleteTrainingPipeline, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -116,15 +115,14 @@ class MockPipelineServiceConnection MOCK_METHOD( StatusOr, DeletePipelineJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request), (override)); MOCK_METHOD( future>, DeletePipelineJob, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -137,7 +135,7 @@ class MockPipelineServiceConnection MOCK_METHOD( StatusOr, BatchDeletePipelineJobs, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& request), (override)); @@ -146,8 +144,7 @@ class MockPipelineServiceConnection future>, BatchDeletePipelineJobs, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -165,7 +162,7 @@ class MockPipelineServiceConnection MOCK_METHOD( StatusOr, BatchCancelPipelineJobs, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& request), (override)); @@ -174,8 +171,7 @@ class MockPipelineServiceConnection future>, BatchCancelPipelineJobs, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/aiplatform/v1/mocks/mock_schedule_connection.h b/google/cloud/aiplatform/v1/mocks/mock_schedule_connection.h index 0815cdf0b21f6..d89aaa4f5fef2 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_schedule_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_schedule_connection.h @@ -60,15 +60,14 @@ class MockScheduleServiceConnection MOCK_METHOD( StatusOr, DeleteSchedule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteScheduleRequest const& request), (override)); MOCK_METHOD( future>, DeleteSchedule, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/aiplatform/v1/mocks/mock_specialist_pool_connection.h b/google/cloud/aiplatform/v1/mocks/mock_specialist_pool_connection.h index 6f651624bfddd..8e8e9414d48d5 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_specialist_pool_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_specialist_pool_connection.h @@ -54,14 +54,14 @@ class MockSpecialistPoolServiceConnection (override)); MOCK_METHOD(StatusOr, CreateSpecialistPool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& request), (override)); MOCK_METHOD(future>, CreateSpecialistPool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -85,7 +85,7 @@ class MockSpecialistPoolServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteSpecialistPool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& request), (override)); @@ -93,8 +93,7 @@ class MockSpecialistPoolServiceConnection MOCK_METHOD( future>, DeleteSpecialistPool, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future>, @@ -104,14 +103,14 @@ class MockSpecialistPoolServiceConnection (override)); MOCK_METHOD(StatusOr, UpdateSpecialistPool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request), (override)); MOCK_METHOD(future>, UpdateSpecialistPool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/aiplatform/v1/mocks/mock_tensorboard_connection.h b/google/cloud/aiplatform/v1/mocks/mock_tensorboard_connection.h index 8bc2626acb841..df23fe7956ed8 100644 --- a/google/cloud/aiplatform/v1/mocks/mock_tensorboard_connection.h +++ b/google/cloud/aiplatform/v1/mocks/mock_tensorboard_connection.h @@ -55,13 +55,13 @@ class MockTensorboardServiceConnection MOCK_METHOD( StatusOr, CreateTensorboard, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateTensorboardRequest const& request), (override)); MOCK_METHOD(future>, CreateTensorboard, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -78,13 +78,13 @@ class MockTensorboardServiceConnection MOCK_METHOD( StatusOr, UpdateTensorboard, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request), (override)); MOCK_METHOD(future>, UpdateTensorboard, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -101,15 +101,14 @@ class MockTensorboardServiceConnection MOCK_METHOD( StatusOr, DeleteTensorboard, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request), (override)); MOCK_METHOD( future>, DeleteTensorboard, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -163,7 +162,7 @@ class MockTensorboardServiceConnection MOCK_METHOD( StatusOr, DeleteTensorboardExperiment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& request), (override)); @@ -171,8 +170,7 @@ class MockTensorboardServiceConnection MOCK_METHOD( future>, DeleteTensorboardExperiment, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, @@ -215,7 +213,7 @@ class MockTensorboardServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteTensorboardRun, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& request), (override)); @@ -223,8 +221,7 @@ class MockTensorboardServiceConnection MOCK_METHOD( future>, DeleteTensorboardRun, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, DeleteTensorboardTimeSeries, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& request), (override)); @@ -278,8 +275,7 @@ class MockTensorboardServiceConnection MOCK_METHOD( future>, DeleteTensorboardTimeSeries, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, SuggestTrials, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::SuggestTrialsRequest const& request), (override)); MOCK_METHOD( future>, SuggestTrials, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -128,7 +127,7 @@ class MockVizierServiceConnection MOCK_METHOD( StatusOr, CheckTrialEarlyStoppingState, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& request), (override)); @@ -137,8 +136,7 @@ class MockVizierServiceConnection future>, CheckTrialEarlyStoppingState, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, StopTrial, diff --git a/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.cc b/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.cc index 61d4a02b39b8b..a983d36d70989 100644 --- a/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.cc +++ b/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.cc @@ -153,7 +153,7 @@ AlloyDBAdminConnectionImpl::CreateCluster( StatusOr AlloyDBAdminConnectionImpl::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::CreateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -168,8 +168,7 @@ AlloyDBAdminConnectionImpl::CreateCluster( future> AlloyDBAdminConnectionImpl::CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -244,7 +243,7 @@ AlloyDBAdminConnectionImpl::UpdateCluster( StatusOr AlloyDBAdminConnectionImpl::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::UpdateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -259,8 +258,7 @@ AlloyDBAdminConnectionImpl::UpdateCluster( future> AlloyDBAdminConnectionImpl::UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -335,7 +333,7 @@ AlloyDBAdminConnectionImpl::DeleteCluster( StatusOr AlloyDBAdminConnectionImpl::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::DeleteClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -350,8 +348,7 @@ AlloyDBAdminConnectionImpl::DeleteCluster( future> AlloyDBAdminConnectionImpl::DeleteCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -427,7 +424,7 @@ AlloyDBAdminConnectionImpl::PromoteCluster( StatusOr AlloyDBAdminConnectionImpl::PromoteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::PromoteClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -442,8 +439,7 @@ AlloyDBAdminConnectionImpl::PromoteCluster( future> AlloyDBAdminConnectionImpl::PromoteCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -518,7 +514,7 @@ AlloyDBAdminConnectionImpl::RestoreCluster( StatusOr AlloyDBAdminConnectionImpl::RestoreCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::RestoreClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -533,8 +529,7 @@ AlloyDBAdminConnectionImpl::RestoreCluster( future> AlloyDBAdminConnectionImpl::RestoreCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -610,7 +605,7 @@ AlloyDBAdminConnectionImpl::CreateSecondaryCluster( StatusOr AlloyDBAdminConnectionImpl::CreateSecondaryCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -626,8 +621,7 @@ AlloyDBAdminConnectionImpl::CreateSecondaryCluster( future> AlloyDBAdminConnectionImpl::CreateSecondaryCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -750,7 +744,7 @@ AlloyDBAdminConnectionImpl::CreateInstance( StatusOr AlloyDBAdminConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -765,8 +759,7 @@ AlloyDBAdminConnectionImpl::CreateInstance( future> AlloyDBAdminConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -842,7 +835,7 @@ AlloyDBAdminConnectionImpl::CreateSecondaryInstance( StatusOr AlloyDBAdminConnectionImpl::CreateSecondaryInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -858,8 +851,7 @@ AlloyDBAdminConnectionImpl::CreateSecondaryInstance( future> AlloyDBAdminConnectionImpl::CreateSecondaryInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -935,7 +927,7 @@ AlloyDBAdminConnectionImpl::BatchCreateInstances( StatusOr AlloyDBAdminConnectionImpl::BatchCreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -951,8 +943,7 @@ AlloyDBAdminConnectionImpl::BatchCreateInstances( future> AlloyDBAdminConnectionImpl::BatchCreateInstances( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1028,7 +1019,7 @@ AlloyDBAdminConnectionImpl::UpdateInstance( StatusOr AlloyDBAdminConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1043,8 +1034,7 @@ AlloyDBAdminConnectionImpl::UpdateInstance( future> AlloyDBAdminConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1119,7 +1109,7 @@ AlloyDBAdminConnectionImpl::DeleteInstance( StatusOr AlloyDBAdminConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1134,8 +1124,7 @@ AlloyDBAdminConnectionImpl::DeleteInstance( future> AlloyDBAdminConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1211,7 +1200,7 @@ AlloyDBAdminConnectionImpl::FailoverInstance( StatusOr AlloyDBAdminConnectionImpl::FailoverInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::FailoverInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1227,8 +1216,7 @@ AlloyDBAdminConnectionImpl::FailoverInstance( future> AlloyDBAdminConnectionImpl::FailoverInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1303,7 +1291,7 @@ AlloyDBAdminConnectionImpl::InjectFault( StatusOr AlloyDBAdminConnectionImpl::InjectFault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::InjectFaultRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1318,8 +1306,7 @@ AlloyDBAdminConnectionImpl::InjectFault( future> AlloyDBAdminConnectionImpl::InjectFault( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1394,7 +1381,7 @@ AlloyDBAdminConnectionImpl::RestartInstance( StatusOr AlloyDBAdminConnectionImpl::RestartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::RestartInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1410,8 +1397,7 @@ AlloyDBAdminConnectionImpl::RestartInstance( future> AlloyDBAdminConnectionImpl::RestartInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1534,7 +1520,7 @@ AlloyDBAdminConnectionImpl::CreateBackup( StatusOr AlloyDBAdminConnectionImpl::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1549,8 +1535,7 @@ AlloyDBAdminConnectionImpl::CreateBackup( future> AlloyDBAdminConnectionImpl::CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1625,7 +1610,7 @@ AlloyDBAdminConnectionImpl::UpdateBackup( StatusOr AlloyDBAdminConnectionImpl::UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::UpdateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1640,8 +1625,7 @@ AlloyDBAdminConnectionImpl::UpdateBackup( future> AlloyDBAdminConnectionImpl::UpdateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1716,7 +1700,7 @@ AlloyDBAdminConnectionImpl::DeleteBackup( StatusOr AlloyDBAdminConnectionImpl::DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::DeleteBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1731,8 +1715,7 @@ AlloyDBAdminConnectionImpl::DeleteBackup( future> AlloyDBAdminConnectionImpl::DeleteBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.h b/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.h index 3841a5759b645..b928f0486a6b6 100644 --- a/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.h +++ b/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.h @@ -61,33 +61,33 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { google::cloud::alloydb::v1::CreateClusterRequest const& request) override; StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::CreateClusterRequest const& request) override; future> CreateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateCluster( google::cloud::alloydb::v1::UpdateClusterRequest const& request) override; StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::UpdateClusterRequest const& request) override; future> UpdateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteCluster( google::cloud::alloydb::v1::DeleteClusterRequest const& request) override; StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::DeleteClusterRequest const& request) override; future> DeleteCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> PromoteCluster( @@ -95,12 +95,12 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr PromoteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::PromoteClusterRequest const& request) override; future> PromoteCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RestoreCluster( @@ -108,12 +108,12 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr RestoreCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::RestoreClusterRequest const& request) override; future> RestoreCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateSecondaryCluster( @@ -121,12 +121,12 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr CreateSecondaryCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request) override; future> CreateSecondaryCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListInstances( @@ -140,12 +140,12 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::CreateInstanceRequest const& request) override; future> CreateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -154,13 +154,13 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr CreateSecondaryInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request) override; future> CreateSecondaryInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -169,13 +169,13 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr BatchCreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request) override; future> BatchCreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateInstance( @@ -183,12 +183,12 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::UpdateInstanceRequest const& request) override; future> UpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -196,12 +196,12 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::DeleteInstanceRequest const& request) override; future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> FailoverInstance( @@ -209,23 +209,23 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr FailoverInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::FailoverInstanceRequest const& request) override; future> FailoverInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> InjectFault( google::cloud::alloydb::v1::InjectFaultRequest const& request) override; StatusOr InjectFault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::InjectFaultRequest const& request) override; future> InjectFault( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RestartInstance( @@ -233,12 +233,12 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr RestartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::RestartInstanceRequest const& request) override; future> RestartInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListBackups( @@ -251,33 +251,33 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { google::cloud::alloydb::v1::CreateBackupRequest const& request) override; StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::CreateBackupRequest const& request) override; future> CreateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateBackup( google::cloud::alloydb::v1::UpdateBackupRequest const& request) override; StatusOr UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::UpdateBackupRequest const& request) override; future> UpdateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteBackup( google::cloud::alloydb::v1::DeleteBackupRequest const& request) override; StatusOr DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::alloydb::v1::DeleteBackupRequest const& request) override; future> DeleteBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.cc b/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.cc index dbe5a35ad7e07..02e6efaa230ef 100644 --- a/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.cc +++ b/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.cc @@ -64,26 +64,23 @@ AlloyDBAdminTracingConnection::CreateCluster( StatusOr AlloyDBAdminTracingConnection::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateClusterRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::CreateCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AlloyDBAdminTracingConnection::CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::CreateCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateCluster(ExperimentalTag{}, operation)); } future> @@ -97,26 +94,23 @@ AlloyDBAdminTracingConnection::UpdateCluster( StatusOr AlloyDBAdminTracingConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateClusterRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::UpdateCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AlloyDBAdminTracingConnection::UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::UpdateCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateCluster(ExperimentalTag{}, operation)); } future> @@ -130,26 +124,23 @@ AlloyDBAdminTracingConnection::DeleteCluster( StatusOr AlloyDBAdminTracingConnection::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteClusterRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::DeleteCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AlloyDBAdminTracingConnection::DeleteCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::DeleteCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteCluster(ExperimentalTag{}, operation)); } future> @@ -163,26 +154,23 @@ AlloyDBAdminTracingConnection::PromoteCluster( StatusOr AlloyDBAdminTracingConnection::PromoteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::PromoteClusterRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::PromoteCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PromoteCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PromoteCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AlloyDBAdminTracingConnection::PromoteCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::PromoteCluster"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->PromoteCluster(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->PromoteCluster(ExperimentalTag{}, operation)); } future> @@ -196,26 +184,23 @@ AlloyDBAdminTracingConnection::RestoreCluster( StatusOr AlloyDBAdminTracingConnection::RestoreCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::RestoreClusterRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::RestoreCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RestoreCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RestoreCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AlloyDBAdminTracingConnection::RestoreCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::RestoreCluster"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RestoreCluster(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RestoreCluster(ExperimentalTag{}, operation)); } future> @@ -230,26 +215,24 @@ AlloyDBAdminTracingConnection::CreateSecondaryCluster( StatusOr AlloyDBAdminTracingConnection::CreateSecondaryCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request) { auto span = internal::MakeSpan( "alloydb_v1::AlloyDBAdminConnection::CreateSecondaryCluster"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateSecondaryCluster( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateSecondaryCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AlloyDBAdminTracingConnection::CreateSecondaryCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "alloydb_v1::AlloyDBAdminConnection::CreateSecondaryCluster"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateSecondaryCluster( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateSecondaryCluster( + ExperimentalTag{}, operation)); } StreamRange @@ -283,26 +266,23 @@ AlloyDBAdminTracingConnection::CreateInstance( StatusOr AlloyDBAdminTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateInstanceRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::CreateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AlloyDBAdminTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::CreateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateInstance(ExperimentalTag{}, operation)); } future> @@ -317,26 +297,24 @@ AlloyDBAdminTracingConnection::CreateSecondaryInstance( StatusOr AlloyDBAdminTracingConnection::CreateSecondaryInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request) { auto span = internal::MakeSpan( "alloydb_v1::AlloyDBAdminConnection::CreateSecondaryInstance"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateSecondaryInstance( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateSecondaryInstance(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> AlloyDBAdminTracingConnection::CreateSecondaryInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "alloydb_v1::AlloyDBAdminConnection::CreateSecondaryInstance"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateSecondaryInstance( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateSecondaryInstance( + ExperimentalTag{}, operation)); } future> @@ -351,26 +329,24 @@ AlloyDBAdminTracingConnection::BatchCreateInstances( StatusOr AlloyDBAdminTracingConnection::BatchCreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request) { auto span = internal::MakeSpan( "alloydb_v1::AlloyDBAdminConnection::BatchCreateInstances"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->BatchCreateInstances( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->BatchCreateInstances(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AlloyDBAdminTracingConnection::BatchCreateInstances( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "alloydb_v1::AlloyDBAdminConnection::BatchCreateInstances"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->BatchCreateInstances( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchCreateInstances( + ExperimentalTag{}, operation)); } future> @@ -384,26 +360,23 @@ AlloyDBAdminTracingConnection::UpdateInstance( StatusOr AlloyDBAdminTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateInstanceRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::UpdateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AlloyDBAdminTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::UpdateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateInstance(ExperimentalTag{}, operation)); } future> @@ -417,26 +390,23 @@ AlloyDBAdminTracingConnection::DeleteInstance( StatusOr AlloyDBAdminTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::DeleteInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AlloyDBAdminTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::DeleteInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteInstance(ExperimentalTag{}, operation)); } future> @@ -450,26 +420,24 @@ AlloyDBAdminTracingConnection::FailoverInstance( StatusOr AlloyDBAdminTracingConnection::FailoverInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::FailoverInstanceRequest const& request) { auto span = internal::MakeSpan( "alloydb_v1::AlloyDBAdminConnection::FailoverInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->FailoverInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->FailoverInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AlloyDBAdminTracingConnection::FailoverInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "alloydb_v1::AlloyDBAdminConnection::FailoverInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->FailoverInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->FailoverInstance(ExperimentalTag{}, operation)); } future> @@ -483,26 +451,23 @@ AlloyDBAdminTracingConnection::InjectFault( StatusOr AlloyDBAdminTracingConnection::InjectFault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::InjectFaultRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::InjectFault"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InjectFault(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InjectFault(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AlloyDBAdminTracingConnection::InjectFault( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::InjectFault"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InjectFault(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->InjectFault(ExperimentalTag{}, operation)); } future> @@ -516,26 +481,23 @@ AlloyDBAdminTracingConnection::RestartInstance( StatusOr AlloyDBAdminTracingConnection::RestartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::RestartInstanceRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::RestartInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RestartInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RestartInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AlloyDBAdminTracingConnection::RestartInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::RestartInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RestartInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RestartInstance(ExperimentalTag{}, operation)); } StreamRange @@ -569,26 +531,23 @@ AlloyDBAdminTracingConnection::CreateBackup( StatusOr AlloyDBAdminTracingConnection::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateBackupRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::CreateBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AlloyDBAdminTracingConnection::CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::CreateBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateBackup(ExperimentalTag{}, operation)); } future> @@ -602,26 +561,23 @@ AlloyDBAdminTracingConnection::UpdateBackup( StatusOr AlloyDBAdminTracingConnection::UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateBackupRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::UpdateBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AlloyDBAdminTracingConnection::UpdateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::UpdateBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateBackup(ExperimentalTag{}, operation)); } future> @@ -635,26 +591,23 @@ AlloyDBAdminTracingConnection::DeleteBackup( StatusOr AlloyDBAdminTracingConnection::DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteBackupRequest const& request) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::DeleteBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AlloyDBAdminTracingConnection::DeleteBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("alloydb_v1::AlloyDBAdminConnection::DeleteBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteBackup(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.h b/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.h index 1ab875348ebf8..0e6b62baee4d9 100644 --- a/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.h +++ b/google/cloud/alloydb/v1/internal/alloy_db_admin_tracing_connection.h @@ -50,33 +50,33 @@ class AlloyDBAdminTracingConnection google::cloud::alloydb::v1::CreateClusterRequest const& request) override; StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateClusterRequest const& request) override; future> CreateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateCluster( google::cloud::alloydb::v1::UpdateClusterRequest const& request) override; StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateClusterRequest const& request) override; future> UpdateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteCluster( google::cloud::alloydb::v1::DeleteClusterRequest const& request) override; StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteClusterRequest const& request) override; future> DeleteCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> PromoteCluster( @@ -84,12 +84,12 @@ class AlloyDBAdminTracingConnection override; StatusOr PromoteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::PromoteClusterRequest const& request) override; future> PromoteCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RestoreCluster( @@ -97,12 +97,12 @@ class AlloyDBAdminTracingConnection override; StatusOr RestoreCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::RestoreClusterRequest const& request) override; future> RestoreCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateSecondaryCluster( @@ -110,12 +110,12 @@ class AlloyDBAdminTracingConnection override; StatusOr CreateSecondaryCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request) override; future> CreateSecondaryCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListInstances( @@ -129,12 +129,12 @@ class AlloyDBAdminTracingConnection override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateInstanceRequest const& request) override; future> CreateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -143,13 +143,13 @@ class AlloyDBAdminTracingConnection override; StatusOr CreateSecondaryInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request) override; future> CreateSecondaryInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -158,13 +158,13 @@ class AlloyDBAdminTracingConnection override; StatusOr BatchCreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request) override; future> BatchCreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateInstance( @@ -172,12 +172,12 @@ class AlloyDBAdminTracingConnection override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateInstanceRequest const& request) override; future> UpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -185,12 +185,12 @@ class AlloyDBAdminTracingConnection request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteInstanceRequest const& request) override; future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> FailoverInstance( @@ -198,23 +198,23 @@ class AlloyDBAdminTracingConnection override; StatusOr FailoverInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::FailoverInstanceRequest const& request) override; future> FailoverInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> InjectFault( google::cloud::alloydb::v1::InjectFaultRequest const& request) override; StatusOr InjectFault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::InjectFaultRequest const& request) override; future> InjectFault( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RestartInstance( @@ -222,12 +222,12 @@ class AlloyDBAdminTracingConnection override; StatusOr RestartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::RestartInstanceRequest const& request) override; future> RestartInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListBackups( @@ -240,33 +240,33 @@ class AlloyDBAdminTracingConnection google::cloud::alloydb::v1::CreateBackupRequest const& request) override; StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateBackupRequest const& request) override; future> CreateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateBackup( google::cloud::alloydb::v1::UpdateBackupRequest const& request) override; StatusOr UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateBackupRequest const& request) override; future> UpdateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteBackup( google::cloud::alloydb::v1::DeleteBackupRequest const& request) override; StatusOr DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteBackupRequest const& request) override; future> DeleteBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/alloydb/v1/mocks/mock_alloy_db_admin_connection.h b/google/cloud/alloydb/v1/mocks/mock_alloy_db_admin_connection.h index f531cd485d41b..52b94d9950810 100644 --- a/google/cloud/alloydb/v1/mocks/mock_alloy_db_admin_connection.h +++ b/google/cloud/alloydb/v1/mocks/mock_alloy_db_admin_connection.h @@ -60,13 +60,13 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { (override)); MOCK_METHOD(StatusOr, CreateCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateClusterRequest const& request), (override)); MOCK_METHOD(future>, CreateCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -76,13 +76,13 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { (override)); MOCK_METHOD(StatusOr, UpdateCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateClusterRequest const& request), (override)); MOCK_METHOD(future>, UpdateCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -92,13 +92,13 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { (override)); MOCK_METHOD(StatusOr, DeleteCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteClusterRequest const& request), (override)); MOCK_METHOD(future>, DeleteCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -109,13 +109,13 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { MOCK_METHOD( StatusOr, PromoteCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::PromoteClusterRequest const& request), (override)); MOCK_METHOD(future>, PromoteCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -126,13 +126,13 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { MOCK_METHOD( StatusOr, RestoreCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::RestoreClusterRequest const& request), (override)); MOCK_METHOD(future>, RestoreCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -143,14 +143,14 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { (override)); MOCK_METHOD(StatusOr, CreateSecondaryCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request), (override)); MOCK_METHOD(future>, CreateSecondaryCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -170,13 +170,13 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { MOCK_METHOD( StatusOr, CreateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateInstanceRequest const& request), (override)); MOCK_METHOD(future>, CreateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -187,14 +187,14 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { (override)); MOCK_METHOD(StatusOr, CreateSecondaryInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request), (override)); MOCK_METHOD(future>, CreateSecondaryInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -207,7 +207,7 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { MOCK_METHOD( StatusOr, BatchCreateInstances, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request), (override)); @@ -215,8 +215,7 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { future< StatusOr>, BatchCreateInstances, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -226,13 +225,13 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { MOCK_METHOD( StatusOr, UpdateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateInstanceRequest const& request), (override)); MOCK_METHOD(future>, UpdateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -244,13 +243,13 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { MOCK_METHOD( StatusOr, DeleteInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteInstanceRequest const& request), (override)); MOCK_METHOD(future>, DeleteInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -261,13 +260,13 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { MOCK_METHOD( StatusOr, FailoverInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::FailoverInstanceRequest const& request), (override)); MOCK_METHOD(future>, FailoverInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -277,13 +276,13 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { (override)); MOCK_METHOD(StatusOr, InjectFault, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::InjectFaultRequest const& request), (override)); MOCK_METHOD(future>, InjectFault, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -294,13 +293,13 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { MOCK_METHOD( StatusOr, RestartInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::RestartInstanceRequest const& request), (override)); MOCK_METHOD(future>, RestartInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -318,13 +317,13 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { (override)); MOCK_METHOD(StatusOr, CreateBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateBackupRequest const& request), (override)); MOCK_METHOD(future>, CreateBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -334,13 +333,13 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { (override)); MOCK_METHOD(StatusOr, UpdateBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateBackupRequest const& request), (override)); MOCK_METHOD(future>, UpdateBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -350,13 +349,13 @@ class MockAlloyDBAdminConnection : public alloydb_v1::AlloyDBAdminConnection { (override)); MOCK_METHOD(StatusOr, DeleteBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteBackupRequest const& request), (override)); MOCK_METHOD(future>, DeleteBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.cc b/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.cc index 29b7f6e18a915..ebd9b98b0009d 100644 --- a/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.cc +++ b/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.cc @@ -156,7 +156,7 @@ ApiGatewayServiceConnectionImpl::CreateGateway( StatusOr ApiGatewayServiceConnectionImpl::CreateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::CreateGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -172,8 +172,7 @@ ApiGatewayServiceConnectionImpl::CreateGateway( future> ApiGatewayServiceConnectionImpl::CreateGateway( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -248,7 +247,7 @@ ApiGatewayServiceConnectionImpl::UpdateGateway( StatusOr ApiGatewayServiceConnectionImpl::UpdateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::UpdateGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -264,8 +263,7 @@ ApiGatewayServiceConnectionImpl::UpdateGateway( future> ApiGatewayServiceConnectionImpl::UpdateGateway( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -340,7 +338,7 @@ ApiGatewayServiceConnectionImpl::DeleteGateway( StatusOr ApiGatewayServiceConnectionImpl::DeleteGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::DeleteGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -356,8 +354,7 @@ ApiGatewayServiceConnectionImpl::DeleteGateway( future> ApiGatewayServiceConnectionImpl::DeleteGateway( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -479,7 +476,7 @@ ApiGatewayServiceConnectionImpl::CreateApi( StatusOr ApiGatewayServiceConnectionImpl::CreateApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::CreateApiRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -494,8 +491,7 @@ ApiGatewayServiceConnectionImpl::CreateApi( future> ApiGatewayServiceConnectionImpl::CreateApi( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -569,7 +565,7 @@ ApiGatewayServiceConnectionImpl::UpdateApi( StatusOr ApiGatewayServiceConnectionImpl::UpdateApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::UpdateApiRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -584,8 +580,7 @@ ApiGatewayServiceConnectionImpl::UpdateApi( future> ApiGatewayServiceConnectionImpl::UpdateApi( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -659,7 +654,7 @@ ApiGatewayServiceConnectionImpl::DeleteApi( StatusOr ApiGatewayServiceConnectionImpl::DeleteApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::DeleteApiRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -674,8 +669,7 @@ ApiGatewayServiceConnectionImpl::DeleteApi( future> ApiGatewayServiceConnectionImpl::DeleteApi( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -801,7 +795,7 @@ ApiGatewayServiceConnectionImpl::CreateApiConfig( StatusOr ApiGatewayServiceConnectionImpl::CreateApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::CreateApiConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -817,8 +811,7 @@ ApiGatewayServiceConnectionImpl::CreateApiConfig( future> ApiGatewayServiceConnectionImpl::CreateApiConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -895,7 +888,7 @@ ApiGatewayServiceConnectionImpl::UpdateApiConfig( StatusOr ApiGatewayServiceConnectionImpl::UpdateApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::UpdateApiConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -911,8 +904,7 @@ ApiGatewayServiceConnectionImpl::UpdateApiConfig( future> ApiGatewayServiceConnectionImpl::UpdateApiConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -989,7 +981,7 @@ ApiGatewayServiceConnectionImpl::DeleteApiConfig( StatusOr ApiGatewayServiceConnectionImpl::DeleteApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::DeleteApiConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1005,8 +997,7 @@ ApiGatewayServiceConnectionImpl::DeleteApiConfig( future> ApiGatewayServiceConnectionImpl::DeleteApiConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.h b/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.h index 7844eedd33ee3..88c9c4342e8c9 100644 --- a/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.h +++ b/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.h @@ -63,12 +63,12 @@ class ApiGatewayServiceConnectionImpl override; StatusOr CreateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::CreateGatewayRequest const& request) override; future> CreateGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateGateway( @@ -76,12 +76,12 @@ class ApiGatewayServiceConnectionImpl override; StatusOr UpdateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::UpdateGatewayRequest const& request) override; future> UpdateGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -89,12 +89,12 @@ class ApiGatewayServiceConnectionImpl request) override; StatusOr DeleteGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::DeleteGatewayRequest const& request) override; future> - DeleteGateway(google::cloud::ExperimentalTag, + DeleteGateway(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListApis( @@ -107,33 +107,33 @@ class ApiGatewayServiceConnectionImpl google::cloud::apigateway::v1::CreateApiRequest const& request) override; StatusOr CreateApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::CreateApiRequest const& request) override; future> CreateApi( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateApi( google::cloud::apigateway::v1::UpdateApiRequest const& request) override; StatusOr UpdateApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::UpdateApiRequest const& request) override; future> UpdateApi( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteApi( google::cloud::apigateway::v1::DeleteApiRequest const& request) override; StatusOr DeleteApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::DeleteApiRequest const& request) override; future> DeleteApi( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListApiConfigs( @@ -148,12 +148,12 @@ class ApiGatewayServiceConnectionImpl override; StatusOr CreateApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::CreateApiConfigRequest const& request) override; future> CreateApiConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateApiConfig( @@ -161,12 +161,12 @@ class ApiGatewayServiceConnectionImpl override; StatusOr UpdateApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::UpdateApiConfigRequest const& request) override; future> UpdateApiConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -174,12 +174,12 @@ class ApiGatewayServiceConnectionImpl request) override; StatusOr DeleteApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apigateway::v1::DeleteApiConfigRequest const& request) override; future> - DeleteApiConfig(google::cloud::ExperimentalTag, + DeleteApiConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.cc b/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.cc index affaf9d865755..823ab5d7e781a 100644 --- a/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.cc +++ b/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.cc @@ -64,26 +64,23 @@ ApiGatewayServiceTracingConnection::CreateGateway( StatusOr ApiGatewayServiceTracingConnection::CreateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateGatewayRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::CreateGateway"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateGateway(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateGateway(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ApiGatewayServiceTracingConnection::CreateGateway( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::CreateGateway"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateGateway(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateGateway(ExperimentalTag{}, operation)); } future> @@ -97,26 +94,23 @@ ApiGatewayServiceTracingConnection::UpdateGateway( StatusOr ApiGatewayServiceTracingConnection::UpdateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateGatewayRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::UpdateGateway"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateGateway(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateGateway(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ApiGatewayServiceTracingConnection::UpdateGateway( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::UpdateGateway"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateGateway(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateGateway(ExperimentalTag{}, operation)); } future> @@ -130,26 +124,23 @@ ApiGatewayServiceTracingConnection::DeleteGateway( StatusOr ApiGatewayServiceTracingConnection::DeleteGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteGatewayRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::DeleteGateway"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteGateway(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteGateway(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ApiGatewayServiceTracingConnection::DeleteGateway( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::DeleteGateway"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteGateway(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteGateway(ExperimentalTag{}, operation)); } StreamRange @@ -183,26 +174,23 @@ ApiGatewayServiceTracingConnection::CreateApi( StatusOr ApiGatewayServiceTracingConnection::CreateApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateApiRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::CreateApi"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateApi(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateApi(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ApiGatewayServiceTracingConnection::CreateApi( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::CreateApi"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateApi(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateApi(ExperimentalTag{}, operation)); } future> @@ -216,26 +204,23 @@ ApiGatewayServiceTracingConnection::UpdateApi( StatusOr ApiGatewayServiceTracingConnection::UpdateApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateApiRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::UpdateApi"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateApi(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateApi(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ApiGatewayServiceTracingConnection::UpdateApi( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::UpdateApi"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateApi(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateApi(ExperimentalTag{}, operation)); } future> @@ -249,26 +234,23 @@ ApiGatewayServiceTracingConnection::DeleteApi( StatusOr ApiGatewayServiceTracingConnection::DeleteApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteApiRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::DeleteApi"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteApi(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteApi(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ApiGatewayServiceTracingConnection::DeleteApi( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::DeleteApi"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteApi(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteApi(ExperimentalTag{}, operation)); } StreamRange @@ -302,26 +284,23 @@ ApiGatewayServiceTracingConnection::CreateApiConfig( StatusOr ApiGatewayServiceTracingConnection::CreateApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateApiConfigRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::CreateApiConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateApiConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateApiConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ApiGatewayServiceTracingConnection::CreateApiConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::CreateApiConfig"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateApiConfig(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateApiConfig(ExperimentalTag{}, operation)); } future> @@ -335,26 +314,23 @@ ApiGatewayServiceTracingConnection::UpdateApiConfig( StatusOr ApiGatewayServiceTracingConnection::UpdateApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateApiConfigRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::UpdateApiConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateApiConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateApiConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ApiGatewayServiceTracingConnection::UpdateApiConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::UpdateApiConfig"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateApiConfig(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateApiConfig(ExperimentalTag{}, operation)); } future> @@ -368,26 +344,23 @@ ApiGatewayServiceTracingConnection::DeleteApiConfig( StatusOr ApiGatewayServiceTracingConnection::DeleteApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteApiConfigRequest const& request) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::DeleteApiConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteApiConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteApiConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ApiGatewayServiceTracingConnection::DeleteApiConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "apigateway_v1::ApiGatewayServiceConnection::DeleteApiConfig"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteApiConfig(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteApiConfig(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.h b/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.h index 712635da6db9d..052034a0f2b1a 100644 --- a/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.h +++ b/google/cloud/apigateway/v1/internal/api_gateway_tracing_connection.h @@ -51,12 +51,12 @@ class ApiGatewayServiceTracingConnection override; StatusOr CreateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateGatewayRequest const& request) override; future> CreateGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateGateway( @@ -64,12 +64,12 @@ class ApiGatewayServiceTracingConnection override; StatusOr UpdateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateGatewayRequest const& request) override; future> UpdateGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -77,12 +77,12 @@ class ApiGatewayServiceTracingConnection request) override; StatusOr DeleteGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteGatewayRequest const& request) override; future> - DeleteGateway(google::cloud::ExperimentalTag, + DeleteGateway(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListApis( @@ -95,33 +95,33 @@ class ApiGatewayServiceTracingConnection google::cloud::apigateway::v1::CreateApiRequest const& request) override; StatusOr CreateApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateApiRequest const& request) override; future> CreateApi( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateApi( google::cloud::apigateway::v1::UpdateApiRequest const& request) override; StatusOr UpdateApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateApiRequest const& request) override; future> UpdateApi( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteApi( google::cloud::apigateway::v1::DeleteApiRequest const& request) override; StatusOr DeleteApi( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteApiRequest const& request) override; future> DeleteApi( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListApiConfigs( @@ -136,12 +136,12 @@ class ApiGatewayServiceTracingConnection override; StatusOr CreateApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateApiConfigRequest const& request) override; future> CreateApiConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateApiConfig( @@ -149,12 +149,12 @@ class ApiGatewayServiceTracingConnection override; StatusOr UpdateApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateApiConfigRequest const& request) override; future> UpdateApiConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -162,12 +162,12 @@ class ApiGatewayServiceTracingConnection request) override; StatusOr DeleteApiConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteApiConfigRequest const& request) override; future> - DeleteApiConfig(google::cloud::ExperimentalTag, + DeleteApiConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/apigateway/v1/mocks/mock_api_gateway_connection.h b/google/cloud/apigateway/v1/mocks/mock_api_gateway_connection.h index 361dd15e1fcf2..3e910c38332a0 100644 --- a/google/cloud/apigateway/v1/mocks/mock_api_gateway_connection.h +++ b/google/cloud/apigateway/v1/mocks/mock_api_gateway_connection.h @@ -63,13 +63,13 @@ class MockApiGatewayServiceConnection MOCK_METHOD( StatusOr, CreateGateway, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateGatewayRequest const& request), (override)); MOCK_METHOD(future>, CreateGateway, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -80,13 +80,13 @@ class MockApiGatewayServiceConnection MOCK_METHOD( StatusOr, UpdateGateway, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateGatewayRequest const& request), (override)); MOCK_METHOD(future>, UpdateGateway, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -98,15 +98,14 @@ class MockApiGatewayServiceConnection MOCK_METHOD( StatusOr, DeleteGateway, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteGatewayRequest const& request), (override)); MOCK_METHOD( future>, DeleteGateway, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), ListApis, @@ -122,12 +121,12 @@ class MockApiGatewayServiceConnection (override)); MOCK_METHOD(StatusOr, CreateApi, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateApiRequest const& request), (override)); MOCK_METHOD(future>, CreateApi, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -136,12 +135,12 @@ class MockApiGatewayServiceConnection (override)); MOCK_METHOD(StatusOr, UpdateApi, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateApiRequest const& request), (override)); MOCK_METHOD(future>, UpdateApi, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -152,15 +151,14 @@ class MockApiGatewayServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteApi, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteApiRequest const& request), (override)); MOCK_METHOD( future>, DeleteApi, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), @@ -181,13 +179,13 @@ class MockApiGatewayServiceConnection MOCK_METHOD( StatusOr, CreateApiConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateApiConfigRequest const& request), (override)); MOCK_METHOD(future>, CreateApiConfig, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -199,13 +197,13 @@ class MockApiGatewayServiceConnection MOCK_METHOD( StatusOr, UpdateApiConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateApiConfigRequest const& request), (override)); MOCK_METHOD(future>, UpdateApiConfig, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -217,15 +215,14 @@ class MockApiGatewayServiceConnection MOCK_METHOD( StatusOr, DeleteApiConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteApiConfigRequest const& request), (override)); MOCK_METHOD( future>, DeleteApiConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/apikeys/v2/internal/api_keys_connection_impl.cc b/google/cloud/apikeys/v2/internal/api_keys_connection_impl.cc index a50c8cea90d9f..9bd8c7f595d66 100644 --- a/google/cloud/apikeys/v2/internal/api_keys_connection_impl.cc +++ b/google/cloud/apikeys/v2/internal/api_keys_connection_impl.cc @@ -101,7 +101,7 @@ ApiKeysConnectionImpl::CreateKey( } StatusOr ApiKeysConnectionImpl::CreateKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::apikeys::v2::CreateKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -116,8 +116,7 @@ StatusOr ApiKeysConnectionImpl::CreateKey( future> ApiKeysConnectionImpl::CreateKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -247,7 +246,7 @@ ApiKeysConnectionImpl::UpdateKey( } StatusOr ApiKeysConnectionImpl::UpdateKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::apikeys::v2::UpdateKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -262,8 +261,7 @@ StatusOr ApiKeysConnectionImpl::UpdateKey( future> ApiKeysConnectionImpl::UpdateKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -335,7 +333,7 @@ ApiKeysConnectionImpl::DeleteKey( } StatusOr ApiKeysConnectionImpl::DeleteKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::apikeys::v2::DeleteKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -350,8 +348,7 @@ StatusOr ApiKeysConnectionImpl::DeleteKey( future> ApiKeysConnectionImpl::DeleteKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -424,7 +421,7 @@ ApiKeysConnectionImpl::UndeleteKey( } StatusOr ApiKeysConnectionImpl::UndeleteKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::apikeys::v2::UndeleteKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -439,8 +436,7 @@ StatusOr ApiKeysConnectionImpl::UndeleteKey( future> ApiKeysConnectionImpl::UndeleteKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( diff --git a/google/cloud/apikeys/v2/internal/api_keys_connection_impl.h b/google/cloud/apikeys/v2/internal/api_keys_connection_impl.h index d58e3546c85c5..eef2f33310da3 100644 --- a/google/cloud/apikeys/v2/internal/api_keys_connection_impl.h +++ b/google/cloud/apikeys/v2/internal/api_keys_connection_impl.h @@ -54,11 +54,11 @@ class ApiKeysConnectionImpl : public apikeys_v2::ApiKeysConnection { google::api::apikeys::v2::CreateKeyRequest const& request) override; StatusOr CreateKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::apikeys::v2::CreateKeyRequest const& request) override; future> CreateKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListKeys( @@ -74,33 +74,33 @@ class ApiKeysConnectionImpl : public apikeys_v2::ApiKeysConnection { google::api::apikeys::v2::UpdateKeyRequest const& request) override; StatusOr UpdateKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::apikeys::v2::UpdateKeyRequest const& request) override; future> UpdateKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteKey( google::api::apikeys::v2::DeleteKeyRequest const& request) override; StatusOr DeleteKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::apikeys::v2::DeleteKeyRequest const& request) override; future> DeleteKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UndeleteKey( google::api::apikeys::v2::UndeleteKeyRequest const& request) override; StatusOr UndeleteKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::apikeys::v2::UndeleteKeyRequest const& request) override; future> UndeleteKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr LookupKey( diff --git a/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.cc b/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.cc index f54ac01a31b25..0afc50bd42d02 100644 --- a/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.cc +++ b/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.cc @@ -42,24 +42,21 @@ ApiKeysTracingConnection::CreateKey( } StatusOr ApiKeysTracingConnection::CreateKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::CreateKeyRequest const& request) { auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::CreateKey"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateKey(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ApiKeysTracingConnection::CreateKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::CreateKey"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateKey(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateKey(ExperimentalTag{}, operation)); } StreamRange ApiKeysTracingConnection::ListKeys( @@ -95,24 +92,21 @@ ApiKeysTracingConnection::UpdateKey( } StatusOr ApiKeysTracingConnection::UpdateKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::UpdateKeyRequest const& request) { auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::UpdateKey"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateKey(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ApiKeysTracingConnection::UpdateKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::UpdateKey"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateKey(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateKey(ExperimentalTag{}, operation)); } future> @@ -124,24 +118,21 @@ ApiKeysTracingConnection::DeleteKey( } StatusOr ApiKeysTracingConnection::DeleteKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::DeleteKeyRequest const& request) { auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::DeleteKey"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteKey(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ApiKeysTracingConnection::DeleteKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::DeleteKey"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteKey(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteKey(ExperimentalTag{}, operation)); } future> @@ -153,24 +144,21 @@ ApiKeysTracingConnection::UndeleteKey( } StatusOr ApiKeysTracingConnection::UndeleteKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::UndeleteKeyRequest const& request) { auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::UndeleteKey"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UndeleteKey(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UndeleteKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ApiKeysTracingConnection::UndeleteKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("apikeys_v2::ApiKeysConnection::UndeleteKey"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UndeleteKey(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UndeleteKey(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.h b/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.h index 7c18ff4c74e98..01de9205839e5 100644 --- a/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.h +++ b/google/cloud/apikeys/v2/internal/api_keys_tracing_connection.h @@ -43,11 +43,11 @@ class ApiKeysTracingConnection : public apikeys_v2::ApiKeysConnection { google::api::apikeys::v2::CreateKeyRequest const& request) override; StatusOr CreateKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::CreateKeyRequest const& request) override; future> CreateKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListKeys( @@ -63,33 +63,33 @@ class ApiKeysTracingConnection : public apikeys_v2::ApiKeysConnection { google::api::apikeys::v2::UpdateKeyRequest const& request) override; StatusOr UpdateKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::UpdateKeyRequest const& request) override; future> UpdateKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteKey( google::api::apikeys::v2::DeleteKeyRequest const& request) override; StatusOr DeleteKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::DeleteKeyRequest const& request) override; future> DeleteKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UndeleteKey( google::api::apikeys::v2::UndeleteKeyRequest const& request) override; StatusOr UndeleteKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::UndeleteKeyRequest const& request) override; future> UndeleteKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr LookupKey( diff --git a/google/cloud/apikeys/v2/mocks/mock_api_keys_connection.h b/google/cloud/apikeys/v2/mocks/mock_api_keys_connection.h index ed5e449665477..cf799b6541b0b 100644 --- a/google/cloud/apikeys/v2/mocks/mock_api_keys_connection.h +++ b/google/cloud/apikeys/v2/mocks/mock_api_keys_connection.h @@ -51,12 +51,12 @@ class MockApiKeysConnection : public apikeys_v2::ApiKeysConnection { (override)); MOCK_METHOD(StatusOr, CreateKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::CreateKeyRequest const& request), (override)); MOCK_METHOD(future>, CreateKey, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -77,12 +77,12 @@ class MockApiKeysConnection : public apikeys_v2::ApiKeysConnection { (override)); MOCK_METHOD(StatusOr, UpdateKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::UpdateKeyRequest const& request), (override)); MOCK_METHOD(future>, UpdateKey, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -91,12 +91,12 @@ class MockApiKeysConnection : public apikeys_v2::ApiKeysConnection { (override)); MOCK_METHOD(StatusOr, DeleteKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::DeleteKeyRequest const& request), (override)); MOCK_METHOD(future>, DeleteKey, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -105,12 +105,12 @@ class MockApiKeysConnection : public apikeys_v2::ApiKeysConnection { (override)); MOCK_METHOD(StatusOr, UndeleteKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::UndeleteKeyRequest const& request), (override)); MOCK_METHOD(future>, UndeleteKey, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/appengine/v1/internal/applications_connection_impl.cc b/google/cloud/appengine/v1/internal/applications_connection_impl.cc index 43cb344a4720c..9802b82c5dd9a 100644 --- a/google/cloud/appengine/v1/internal/applications_connection_impl.cc +++ b/google/cloud/appengine/v1/internal/applications_connection_impl.cc @@ -118,7 +118,7 @@ ApplicationsConnectionImpl::CreateApplication( StatusOr ApplicationsConnectionImpl::CreateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::CreateApplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -133,8 +133,7 @@ ApplicationsConnectionImpl::CreateApplication( future> ApplicationsConnectionImpl::CreateApplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -209,7 +208,7 @@ ApplicationsConnectionImpl::UpdateApplication( StatusOr ApplicationsConnectionImpl::UpdateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::UpdateApplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -224,8 +223,7 @@ ApplicationsConnectionImpl::UpdateApplication( future> ApplicationsConnectionImpl::UpdateApplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -300,7 +298,7 @@ ApplicationsConnectionImpl::RepairApplication( StatusOr ApplicationsConnectionImpl::RepairApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::RepairApplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -315,8 +313,7 @@ ApplicationsConnectionImpl::RepairApplication( future> ApplicationsConnectionImpl::RepairApplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/appengine/v1/internal/applications_connection_impl.h b/google/cloud/appengine/v1/internal/applications_connection_impl.h index d1f5b92b84082..91ee5c435afe9 100644 --- a/google/cloud/appengine/v1/internal/applications_connection_impl.h +++ b/google/cloud/appengine/v1/internal/applications_connection_impl.h @@ -57,33 +57,33 @@ class ApplicationsConnectionImpl : public appengine_v1::ApplicationsConnection { google::appengine::v1::CreateApplicationRequest const& request) override; StatusOr CreateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::CreateApplicationRequest const& request) override; future> CreateApplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateApplication( google::appengine::v1::UpdateApplicationRequest const& request) override; StatusOr UpdateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::UpdateApplicationRequest const& request) override; future> UpdateApplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RepairApplication( google::appengine::v1::RepairApplicationRequest const& request) override; StatusOr RepairApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::RepairApplicationRequest const& request) override; future> RepairApplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/appengine/v1/internal/applications_tracing_connection.cc b/google/cloud/appengine/v1/internal/applications_tracing_connection.cc index 86ecbc8b40800..f097701d814ca 100644 --- a/google/cloud/appengine/v1/internal/applications_tracing_connection.cc +++ b/google/cloud/appengine/v1/internal/applications_tracing_connection.cc @@ -52,26 +52,24 @@ ApplicationsTracingConnection::CreateApplication( StatusOr ApplicationsTracingConnection::CreateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateApplicationRequest const& request) { auto span = internal::MakeSpan( "appengine_v1::ApplicationsConnection::CreateApplication"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateApplication(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateApplication(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ApplicationsTracingConnection::CreateApplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "appengine_v1::ApplicationsConnection::CreateApplication"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateApplication(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateApplication(ExperimentalTag{}, operation)); } future> @@ -85,26 +83,24 @@ ApplicationsTracingConnection::UpdateApplication( StatusOr ApplicationsTracingConnection::UpdateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateApplicationRequest const& request) { auto span = internal::MakeSpan( "appengine_v1::ApplicationsConnection::UpdateApplication"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateApplication(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateApplication(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ApplicationsTracingConnection::UpdateApplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "appengine_v1::ApplicationsConnection::UpdateApplication"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateApplication(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateApplication(ExperimentalTag{}, operation)); } future> @@ -118,26 +114,24 @@ ApplicationsTracingConnection::RepairApplication( StatusOr ApplicationsTracingConnection::RepairApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::RepairApplicationRequest const& request) { auto span = internal::MakeSpan( "appengine_v1::ApplicationsConnection::RepairApplication"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RepairApplication(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->RepairApplication(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ApplicationsTracingConnection::RepairApplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "appengine_v1::ApplicationsConnection::RepairApplication"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RepairApplication(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RepairApplication(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/appengine/v1/internal/applications_tracing_connection.h b/google/cloud/appengine/v1/internal/applications_tracing_connection.h index b7876488de269..c4cffc8858436 100644 --- a/google/cloud/appengine/v1/internal/applications_tracing_connection.h +++ b/google/cloud/appengine/v1/internal/applications_tracing_connection.h @@ -47,33 +47,33 @@ class ApplicationsTracingConnection google::appengine::v1::CreateApplicationRequest const& request) override; StatusOr CreateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateApplicationRequest const& request) override; future> CreateApplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateApplication( google::appengine::v1::UpdateApplicationRequest const& request) override; StatusOr UpdateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateApplicationRequest const& request) override; future> UpdateApplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RepairApplication( google::appengine::v1::RepairApplicationRequest const& request) override; StatusOr RepairApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::RepairApplicationRequest const& request) override; future> RepairApplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.cc b/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.cc index 5a7326ebab960..bb86912bc3179 100644 --- a/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.cc +++ b/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.cc @@ -155,7 +155,7 @@ DomainMappingsConnectionImpl::CreateDomainMapping( StatusOr DomainMappingsConnectionImpl::CreateDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::CreateDomainMappingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -170,8 +170,7 @@ DomainMappingsConnectionImpl::CreateDomainMapping( future> DomainMappingsConnectionImpl::CreateDomainMapping( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -246,7 +245,7 @@ DomainMappingsConnectionImpl::UpdateDomainMapping( StatusOr DomainMappingsConnectionImpl::UpdateDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::UpdateDomainMappingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -261,8 +260,7 @@ DomainMappingsConnectionImpl::UpdateDomainMapping( future> DomainMappingsConnectionImpl::UpdateDomainMapping( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -337,7 +335,7 @@ DomainMappingsConnectionImpl::DeleteDomainMapping( StatusOr DomainMappingsConnectionImpl::DeleteDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::DeleteDomainMappingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -352,8 +350,7 @@ DomainMappingsConnectionImpl::DeleteDomainMapping( future> DomainMappingsConnectionImpl::DeleteDomainMapping( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.h b/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.h index 69709821434e6..5b7bcdc3b1a29 100644 --- a/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.h +++ b/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.h @@ -63,12 +63,12 @@ class DomainMappingsConnectionImpl override; StatusOr CreateDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::CreateDomainMappingRequest const& request) override; future> CreateDomainMapping( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateDomainMapping( @@ -76,12 +76,12 @@ class DomainMappingsConnectionImpl override; StatusOr UpdateDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::UpdateDomainMappingRequest const& request) override; future> UpdateDomainMapping( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -89,12 +89,12 @@ class DomainMappingsConnectionImpl request) override; StatusOr DeleteDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::DeleteDomainMappingRequest const& request) override; future> - DeleteDomainMapping(google::cloud::ExperimentalTag, + DeleteDomainMapping(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.cc b/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.cc index b0e7a1043c691..58625a37ed99d 100644 --- a/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.cc +++ b/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.cc @@ -65,26 +65,24 @@ DomainMappingsTracingConnection::CreateDomainMapping( StatusOr DomainMappingsTracingConnection::CreateDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateDomainMappingRequest const& request) { auto span = internal::MakeSpan( "appengine_v1::DomainMappingsConnection::CreateDomainMapping"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateDomainMapping(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateDomainMapping(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DomainMappingsTracingConnection::CreateDomainMapping( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "appengine_v1::DomainMappingsConnection::CreateDomainMapping"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateDomainMapping(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateDomainMapping( + ExperimentalTag{}, operation)); } future> @@ -99,26 +97,24 @@ DomainMappingsTracingConnection::UpdateDomainMapping( StatusOr DomainMappingsTracingConnection::UpdateDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateDomainMappingRequest const& request) { auto span = internal::MakeSpan( "appengine_v1::DomainMappingsConnection::UpdateDomainMapping"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateDomainMapping(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateDomainMapping(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DomainMappingsTracingConnection::UpdateDomainMapping( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "appengine_v1::DomainMappingsConnection::UpdateDomainMapping"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateDomainMapping(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateDomainMapping( + ExperimentalTag{}, operation)); } future> @@ -133,26 +129,24 @@ DomainMappingsTracingConnection::DeleteDomainMapping( StatusOr DomainMappingsTracingConnection::DeleteDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteDomainMappingRequest const& request) { auto span = internal::MakeSpan( "appengine_v1::DomainMappingsConnection::DeleteDomainMapping"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteDomainMapping(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteDomainMapping(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DomainMappingsTracingConnection::DeleteDomainMapping( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "appengine_v1::DomainMappingsConnection::DeleteDomainMapping"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteDomainMapping(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteDomainMapping( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.h b/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.h index c96a7d949379d..0b28d8974b7c0 100644 --- a/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.h +++ b/google/cloud/appengine/v1/internal/domain_mappings_tracing_connection.h @@ -51,12 +51,12 @@ class DomainMappingsTracingConnection override; StatusOr CreateDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateDomainMappingRequest const& request) override; future> CreateDomainMapping( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateDomainMapping( @@ -64,12 +64,12 @@ class DomainMappingsTracingConnection override; StatusOr UpdateDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateDomainMappingRequest const& request) override; future> UpdateDomainMapping( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -77,12 +77,12 @@ class DomainMappingsTracingConnection request) override; StatusOr DeleteDomainMapping( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteDomainMappingRequest const& request) override; future> - DeleteDomainMapping(google::cloud::ExperimentalTag, + DeleteDomainMapping(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/appengine/v1/internal/instances_connection_impl.cc b/google/cloud/appengine/v1/internal/instances_connection_impl.cc index 5ded17966a0a1..fddaaa4180cee 100644 --- a/google/cloud/appengine/v1/internal/instances_connection_impl.cc +++ b/google/cloud/appengine/v1/internal/instances_connection_impl.cc @@ -150,7 +150,7 @@ InstancesConnectionImpl::DeleteInstance( StatusOr InstancesConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -165,8 +165,7 @@ InstancesConnectionImpl::DeleteInstance( future> InstancesConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -241,7 +240,7 @@ InstancesConnectionImpl::DebugInstance( } StatusOr InstancesConnectionImpl::DebugInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::DebugInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -256,8 +255,7 @@ StatusOr InstancesConnectionImpl::DebugInstance( future> InstancesConnectionImpl::DebugInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/appengine/v1/internal/instances_connection_impl.h b/google/cloud/appengine/v1/internal/instances_connection_impl.h index 36159a256745e..b65eb858d1837 100644 --- a/google/cloud/appengine/v1/internal/instances_connection_impl.h +++ b/google/cloud/appengine/v1/internal/instances_connection_impl.h @@ -61,22 +61,22 @@ class InstancesConnectionImpl : public appengine_v1::InstancesConnection { google::appengine::v1::DeleteInstanceRequest const& request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::DeleteInstanceRequest const& request) override; future> DeleteInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DebugInstance( google::appengine::v1::DebugInstanceRequest const& request) override; StatusOr DebugInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::DebugInstanceRequest const& request) override; future> DebugInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/appengine/v1/internal/instances_tracing_connection.cc b/google/cloud/appengine/v1/internal/instances_tracing_connection.cc index 30079472846d9..80c1ef30f2038 100644 --- a/google/cloud/appengine/v1/internal/instances_tracing_connection.cc +++ b/google/cloud/appengine/v1/internal/instances_tracing_connection.cc @@ -64,26 +64,23 @@ InstancesTracingConnection::DeleteInstance( StatusOr InstancesTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan("appengine_v1::InstancesConnection::DeleteInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("appengine_v1::InstancesConnection::DeleteInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteInstance(ExperimentalTag{}, operation)); } future> @@ -97,26 +94,23 @@ InstancesTracingConnection::DebugInstance( StatusOr InstancesTracingConnection::DebugInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DebugInstanceRequest const& request) { auto span = internal::MakeSpan("appengine_v1::InstancesConnection::DebugInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DebugInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DebugInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::DebugInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("appengine_v1::InstancesConnection::DebugInstance"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DebugInstance(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DebugInstance(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/appengine/v1/internal/instances_tracing_connection.h b/google/cloud/appengine/v1/internal/instances_tracing_connection.h index 9d9251e9c12e3..4cc2ec18ef33a 100644 --- a/google/cloud/appengine/v1/internal/instances_tracing_connection.h +++ b/google/cloud/appengine/v1/internal/instances_tracing_connection.h @@ -49,22 +49,22 @@ class InstancesTracingConnection : public appengine_v1::InstancesConnection { google::appengine::v1::DeleteInstanceRequest const& request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteInstanceRequest const& request) override; future> DeleteInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DebugInstance( google::appengine::v1::DebugInstanceRequest const& request) override; StatusOr DebugInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DebugInstanceRequest const& request) override; future> DebugInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/appengine/v1/internal/services_connection_impl.cc b/google/cloud/appengine/v1/internal/services_connection_impl.cc index 23d0f48d33455..2b91471a16231 100644 --- a/google/cloud/appengine/v1/internal/services_connection_impl.cc +++ b/google/cloud/appengine/v1/internal/services_connection_impl.cc @@ -147,7 +147,7 @@ ServicesConnectionImpl::UpdateService( } StatusOr ServicesConnectionImpl::UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::UpdateServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -162,8 +162,7 @@ StatusOr ServicesConnectionImpl::UpdateService( future> ServicesConnectionImpl::UpdateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -237,7 +236,7 @@ ServicesConnectionImpl::DeleteService( } StatusOr ServicesConnectionImpl::DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::DeleteServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -252,8 +251,7 @@ StatusOr ServicesConnectionImpl::DeleteService( future> ServicesConnectionImpl::DeleteService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/appengine/v1/internal/services_connection_impl.h b/google/cloud/appengine/v1/internal/services_connection_impl.h index fc19ee6bc5782..0fd8742116078 100644 --- a/google/cloud/appengine/v1/internal/services_connection_impl.h +++ b/google/cloud/appengine/v1/internal/services_connection_impl.h @@ -61,22 +61,22 @@ class ServicesConnectionImpl : public appengine_v1::ServicesConnection { google::appengine::v1::UpdateServiceRequest const& request) override; StatusOr UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::UpdateServiceRequest const& request) override; future> UpdateService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteService( google::appengine::v1::DeleteServiceRequest const& request) override; StatusOr DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::DeleteServiceRequest const& request) override; future> DeleteService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/appengine/v1/internal/services_tracing_connection.cc b/google/cloud/appengine/v1/internal/services_tracing_connection.cc index a74cea8f97e73..e0c8c02b37b6b 100644 --- a/google/cloud/appengine/v1/internal/services_tracing_connection.cc +++ b/google/cloud/appengine/v1/internal/services_tracing_connection.cc @@ -63,26 +63,23 @@ ServicesTracingConnection::UpdateService( StatusOr ServicesTracingConnection::UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateServiceRequest const& request) { auto span = internal::MakeSpan("appengine_v1::ServicesConnection::UpdateService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ServicesTracingConnection::UpdateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("appengine_v1::ServicesConnection::UpdateService"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateService(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateService(ExperimentalTag{}, operation)); } future> @@ -96,26 +93,23 @@ ServicesTracingConnection::DeleteService( StatusOr ServicesTracingConnection::DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteServiceRequest const& request) { auto span = internal::MakeSpan("appengine_v1::ServicesConnection::DeleteService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ServicesTracingConnection::DeleteService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("appengine_v1::ServicesConnection::DeleteService"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteService(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteService(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/appengine/v1/internal/services_tracing_connection.h b/google/cloud/appengine/v1/internal/services_tracing_connection.h index e2f027332b299..d752f26e49a45 100644 --- a/google/cloud/appengine/v1/internal/services_tracing_connection.h +++ b/google/cloud/appengine/v1/internal/services_tracing_connection.h @@ -49,22 +49,22 @@ class ServicesTracingConnection : public appengine_v1::ServicesConnection { google::appengine::v1::UpdateServiceRequest const& request) override; StatusOr UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateServiceRequest const& request) override; future> UpdateService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteService( google::appengine::v1::DeleteServiceRequest const& request) override; StatusOr DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteServiceRequest const& request) override; future> DeleteService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/appengine/v1/internal/versions_connection_impl.cc b/google/cloud/appengine/v1/internal/versions_connection_impl.cc index 38e4d918e9812..ada520234adf7 100644 --- a/google/cloud/appengine/v1/internal/versions_connection_impl.cc +++ b/google/cloud/appengine/v1/internal/versions_connection_impl.cc @@ -147,7 +147,7 @@ VersionsConnectionImpl::CreateVersion( } StatusOr VersionsConnectionImpl::CreateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::CreateVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -162,8 +162,7 @@ StatusOr VersionsConnectionImpl::CreateVersion( future> VersionsConnectionImpl::CreateVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -237,7 +236,7 @@ VersionsConnectionImpl::UpdateVersion( } StatusOr VersionsConnectionImpl::UpdateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::UpdateVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -252,8 +251,7 @@ StatusOr VersionsConnectionImpl::UpdateVersion( future> VersionsConnectionImpl::UpdateVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -327,7 +325,7 @@ VersionsConnectionImpl::DeleteVersion( } StatusOr VersionsConnectionImpl::DeleteVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::DeleteVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -342,8 +340,7 @@ StatusOr VersionsConnectionImpl::DeleteVersion( future> VersionsConnectionImpl::DeleteVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/appengine/v1/internal/versions_connection_impl.h b/google/cloud/appengine/v1/internal/versions_connection_impl.h index 14bfdfb39eb52..e593ba62c5280 100644 --- a/google/cloud/appengine/v1/internal/versions_connection_impl.h +++ b/google/cloud/appengine/v1/internal/versions_connection_impl.h @@ -61,33 +61,33 @@ class VersionsConnectionImpl : public appengine_v1::VersionsConnection { google::appengine::v1::CreateVersionRequest const& request) override; StatusOr CreateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::CreateVersionRequest const& request) override; future> CreateVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateVersion( google::appengine::v1::UpdateVersionRequest const& request) override; StatusOr UpdateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::UpdateVersionRequest const& request) override; future> UpdateVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteVersion( google::appengine::v1::DeleteVersionRequest const& request) override; StatusOr DeleteVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::appengine::v1::DeleteVersionRequest const& request) override; future> DeleteVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/appengine/v1/internal/versions_tracing_connection.cc b/google/cloud/appengine/v1/internal/versions_tracing_connection.cc index 160d635eb950c..8642a42de1aff 100644 --- a/google/cloud/appengine/v1/internal/versions_tracing_connection.cc +++ b/google/cloud/appengine/v1/internal/versions_tracing_connection.cc @@ -63,26 +63,23 @@ VersionsTracingConnection::CreateVersion( StatusOr VersionsTracingConnection::CreateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateVersionRequest const& request) { auto span = internal::MakeSpan("appengine_v1::VersionsConnection::CreateVersion"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateVersion(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateVersion(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VersionsTracingConnection::CreateVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("appengine_v1::VersionsConnection::CreateVersion"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateVersion(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateVersion(ExperimentalTag{}, operation)); } future> @@ -96,26 +93,23 @@ VersionsTracingConnection::UpdateVersion( StatusOr VersionsTracingConnection::UpdateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateVersionRequest const& request) { auto span = internal::MakeSpan("appengine_v1::VersionsConnection::UpdateVersion"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateVersion(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateVersion(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VersionsTracingConnection::UpdateVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("appengine_v1::VersionsConnection::UpdateVersion"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateVersion(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateVersion(ExperimentalTag{}, operation)); } future> @@ -129,26 +123,23 @@ VersionsTracingConnection::DeleteVersion( StatusOr VersionsTracingConnection::DeleteVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteVersionRequest const& request) { auto span = internal::MakeSpan("appengine_v1::VersionsConnection::DeleteVersion"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteVersion(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteVersion(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VersionsTracingConnection::DeleteVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("appengine_v1::VersionsConnection::DeleteVersion"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteVersion(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteVersion(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/appengine/v1/internal/versions_tracing_connection.h b/google/cloud/appengine/v1/internal/versions_tracing_connection.h index a7a270eef4c59..5708189cb04f3 100644 --- a/google/cloud/appengine/v1/internal/versions_tracing_connection.h +++ b/google/cloud/appengine/v1/internal/versions_tracing_connection.h @@ -49,33 +49,33 @@ class VersionsTracingConnection : public appengine_v1::VersionsConnection { google::appengine::v1::CreateVersionRequest const& request) override; StatusOr CreateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateVersionRequest const& request) override; future> CreateVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateVersion( google::appengine::v1::UpdateVersionRequest const& request) override; StatusOr UpdateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateVersionRequest const& request) override; future> UpdateVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteVersion( google::appengine::v1::DeleteVersionRequest const& request) override; StatusOr DeleteVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteVersionRequest const& request) override; future> DeleteVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/appengine/v1/mocks/mock_applications_connection.h b/google/cloud/appengine/v1/mocks/mock_applications_connection.h index b136fe4ee2700..932dacbdd7b56 100644 --- a/google/cloud/appengine/v1/mocks/mock_applications_connection.h +++ b/google/cloud/appengine/v1/mocks/mock_applications_connection.h @@ -56,13 +56,13 @@ class MockApplicationsConnection : public appengine_v1::ApplicationsConnection { (override)); MOCK_METHOD(StatusOr, CreateApplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateApplicationRequest const& request), (override)); MOCK_METHOD(future>, CreateApplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -72,13 +72,13 @@ class MockApplicationsConnection : public appengine_v1::ApplicationsConnection { (override)); MOCK_METHOD(StatusOr, UpdateApplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateApplicationRequest const& request), (override)); MOCK_METHOD(future>, UpdateApplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -88,13 +88,13 @@ class MockApplicationsConnection : public appengine_v1::ApplicationsConnection { (override)); MOCK_METHOD(StatusOr, RepairApplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::appengine::v1::RepairApplicationRequest const& request), (override)); MOCK_METHOD(future>, RepairApplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/appengine/v1/mocks/mock_domain_mappings_connection.h b/google/cloud/appengine/v1/mocks/mock_domain_mappings_connection.h index 4cea5f92656a1..6c1408198c344 100644 --- a/google/cloud/appengine/v1/mocks/mock_domain_mappings_connection.h +++ b/google/cloud/appengine/v1/mocks/mock_domain_mappings_connection.h @@ -64,13 +64,13 @@ class MockDomainMappingsConnection MOCK_METHOD( StatusOr, CreateDomainMapping, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateDomainMappingRequest const& request), (override)); MOCK_METHOD(future>, CreateDomainMapping, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -82,13 +82,13 @@ class MockDomainMappingsConnection MOCK_METHOD( StatusOr, UpdateDomainMapping, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateDomainMappingRequest const& request), (override)); MOCK_METHOD(future>, UpdateDomainMapping, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -100,13 +100,13 @@ class MockDomainMappingsConnection MOCK_METHOD( StatusOr, DeleteDomainMapping, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteDomainMappingRequest const& request), (override)); MOCK_METHOD(future>, DeleteDomainMapping, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/appengine/v1/mocks/mock_instances_connection.h b/google/cloud/appengine/v1/mocks/mock_instances_connection.h index f0b4e62426a7e..9f151f37ef114 100644 --- a/google/cloud/appengine/v1/mocks/mock_instances_connection.h +++ b/google/cloud/appengine/v1/mocks/mock_instances_connection.h @@ -60,13 +60,13 @@ class MockInstancesConnection : public appengine_v1::InstancesConnection { (override)); MOCK_METHOD(StatusOr, DeleteInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteInstanceRequest const& request), (override)); MOCK_METHOD(future>, DeleteInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -75,12 +75,12 @@ class MockInstancesConnection : public appengine_v1::InstancesConnection { (override)); MOCK_METHOD(StatusOr, DebugInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::appengine::v1::DebugInstanceRequest const& request), (override)); MOCK_METHOD(future>, DebugInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/appengine/v1/mocks/mock_services_connection.h b/google/cloud/appengine/v1/mocks/mock_services_connection.h index 6c778ac40510d..2d4c81cca6c10 100644 --- a/google/cloud/appengine/v1/mocks/mock_services_connection.h +++ b/google/cloud/appengine/v1/mocks/mock_services_connection.h @@ -58,12 +58,12 @@ class MockServicesConnection : public appengine_v1::ServicesConnection { (override)); MOCK_METHOD(StatusOr, UpdateService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateServiceRequest const& request), (override)); MOCK_METHOD(future>, UpdateService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -73,13 +73,13 @@ class MockServicesConnection : public appengine_v1::ServicesConnection { (override)); MOCK_METHOD(StatusOr, DeleteService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteServiceRequest const& request), (override)); MOCK_METHOD(future>, DeleteService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/appengine/v1/mocks/mock_versions_connection.h b/google/cloud/appengine/v1/mocks/mock_versions_connection.h index 0354af854e0d2..734d53ea68e86 100644 --- a/google/cloud/appengine/v1/mocks/mock_versions_connection.h +++ b/google/cloud/appengine/v1/mocks/mock_versions_connection.h @@ -58,12 +58,12 @@ class MockVersionsConnection : public appengine_v1::VersionsConnection { (override)); MOCK_METHOD(StatusOr, CreateVersion, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateVersionRequest const& request), (override)); MOCK_METHOD(future>, CreateVersion, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -72,12 +72,12 @@ class MockVersionsConnection : public appengine_v1::VersionsConnection { (override)); MOCK_METHOD(StatusOr, UpdateVersion, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateVersionRequest const& request), (override)); MOCK_METHOD(future>, UpdateVersion, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -87,13 +87,13 @@ class MockVersionsConnection : public appengine_v1::VersionsConnection { (override)); MOCK_METHOD(StatusOr, DeleteVersion, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteVersionRequest const& request), (override)); MOCK_METHOD(future>, DeleteVersion, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/apphub/v1/internal/app_hub_connection_impl.cc b/google/cloud/apphub/v1/internal/app_hub_connection_impl.cc index 39a213cdd909a..26fba0b67a671 100644 --- a/google/cloud/apphub/v1/internal/app_hub_connection_impl.cc +++ b/google/cloud/apphub/v1/internal/app_hub_connection_impl.cc @@ -158,7 +158,7 @@ AppHubConnectionImpl::CreateServiceProjectAttachment( StatusOr AppHubConnectionImpl::CreateServiceProjectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -175,8 +175,7 @@ AppHubConnectionImpl::CreateServiceProjectAttachment( future> AppHubConnectionImpl::CreateServiceProjectAttachment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -271,7 +270,7 @@ AppHubConnectionImpl::DeleteServiceProjectAttachment( StatusOr AppHubConnectionImpl::DeleteServiceProjectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -288,8 +287,7 @@ AppHubConnectionImpl::DeleteServiceProjectAttachment( future> AppHubConnectionImpl::DeleteServiceProjectAttachment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -480,7 +478,7 @@ AppHubConnectionImpl::CreateService( } StatusOr AppHubConnectionImpl::CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::CreateServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -495,8 +493,7 @@ StatusOr AppHubConnectionImpl::CreateService( future> AppHubConnectionImpl::CreateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -583,7 +580,7 @@ AppHubConnectionImpl::UpdateService( } StatusOr AppHubConnectionImpl::UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::UpdateServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -598,8 +595,7 @@ StatusOr AppHubConnectionImpl::UpdateService( future> AppHubConnectionImpl::UpdateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -673,7 +669,7 @@ AppHubConnectionImpl::DeleteService( } StatusOr AppHubConnectionImpl::DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::DeleteServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -688,8 +684,7 @@ StatusOr AppHubConnectionImpl::DeleteService( future> AppHubConnectionImpl::DeleteService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -864,7 +859,7 @@ AppHubConnectionImpl::CreateWorkload( } StatusOr AppHubConnectionImpl::CreateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::CreateWorkloadRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -879,8 +874,7 @@ StatusOr AppHubConnectionImpl::CreateWorkload( future> AppHubConnectionImpl::CreateWorkload( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -967,7 +961,7 @@ AppHubConnectionImpl::UpdateWorkload( } StatusOr AppHubConnectionImpl::UpdateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::UpdateWorkloadRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -982,8 +976,7 @@ StatusOr AppHubConnectionImpl::UpdateWorkload( future> AppHubConnectionImpl::UpdateWorkload( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1057,7 +1050,7 @@ AppHubConnectionImpl::DeleteWorkload( } StatusOr AppHubConnectionImpl::DeleteWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::DeleteWorkloadRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1072,8 +1065,7 @@ StatusOr AppHubConnectionImpl::DeleteWorkload( future> AppHubConnectionImpl::DeleteWorkload( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1183,7 +1175,7 @@ AppHubConnectionImpl::CreateApplication( StatusOr AppHubConnectionImpl::CreateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::CreateApplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1199,8 +1191,7 @@ AppHubConnectionImpl::CreateApplication( future> AppHubConnectionImpl::CreateApplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1289,7 +1280,7 @@ AppHubConnectionImpl::UpdateApplication( StatusOr AppHubConnectionImpl::UpdateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::UpdateApplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1305,8 +1296,7 @@ AppHubConnectionImpl::UpdateApplication( future> AppHubConnectionImpl::UpdateApplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1381,7 +1371,7 @@ AppHubConnectionImpl::DeleteApplication( StatusOr AppHubConnectionImpl::DeleteApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::DeleteApplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1397,8 +1387,7 @@ AppHubConnectionImpl::DeleteApplication( future> AppHubConnectionImpl::DeleteApplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/apphub/v1/internal/app_hub_connection_impl.h b/google/cloud/apphub/v1/internal/app_hub_connection_impl.h index 983c5e867fb77..36abf99fb2008 100644 --- a/google/cloud/apphub/v1/internal/app_hub_connection_impl.h +++ b/google/cloud/apphub/v1/internal/app_hub_connection_impl.h @@ -66,13 +66,13 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { request) override; StatusOr CreateServiceProjectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const& request) override; future> CreateServiceProjectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -86,13 +86,13 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { request) override; StatusOr DeleteServiceProjectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& request) override; future> DeleteServiceProjectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -121,11 +121,11 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::CreateServiceRequest const& request) override; StatusOr CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::CreateServiceRequest const& request) override; future> CreateService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetService( @@ -135,22 +135,22 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::UpdateServiceRequest const& request) override; StatusOr UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::UpdateServiceRequest const& request) override; future> UpdateService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteService( google::cloud::apphub::v1::DeleteServiceRequest const& request) override; StatusOr DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::DeleteServiceRequest const& request) override; future> DeleteService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -174,11 +174,11 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::CreateWorkloadRequest const& request) override; StatusOr CreateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::CreateWorkloadRequest const& request) override; future> CreateWorkload( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetWorkload( @@ -188,22 +188,22 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::UpdateWorkloadRequest const& request) override; StatusOr UpdateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::UpdateWorkloadRequest const& request) override; future> UpdateWorkload( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteWorkload( google::cloud::apphub::v1::DeleteWorkloadRequest const& request) override; StatusOr DeleteWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::DeleteWorkloadRequest const& request) override; future> DeleteWorkload( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListApplications( @@ -214,12 +214,12 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { override; StatusOr CreateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::CreateApplicationRequest const& request) override; future> CreateApplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetApplication( @@ -230,12 +230,12 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { override; StatusOr UpdateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::UpdateApplicationRequest const& request) override; future> UpdateApplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -243,12 +243,12 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { request) override; StatusOr DeleteApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::apphub::v1::DeleteApplicationRequest const& request) override; future> - DeleteApplication(google::cloud::ExperimentalTag, + DeleteApplication(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/apphub/v1/internal/app_hub_tracing_connection.cc b/google/cloud/apphub/v1/internal/app_hub_tracing_connection.cc index ce004f88a7df3..b052bb8a8e9d6 100644 --- a/google/cloud/apphub/v1/internal/app_hub_tracing_connection.cc +++ b/google/cloud/apphub/v1/internal/app_hub_tracing_connection.cc @@ -69,27 +69,26 @@ AppHubTracingConnection::CreateServiceProjectAttachment( StatusOr AppHubTracingConnection::CreateServiceProjectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const& request) { auto span = internal::MakeSpan( "apphub_v1::AppHubConnection::CreateServiceProjectAttachment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateServiceProjectAttachment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateServiceProjectAttachment(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> AppHubTracingConnection::CreateServiceProjectAttachment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "apphub_v1::AppHubConnection::CreateServiceProjectAttachment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateServiceProjectAttachment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->CreateServiceProjectAttachment(ExperimentalTag{}, operation)); } StatusOr @@ -115,27 +114,26 @@ AppHubTracingConnection::DeleteServiceProjectAttachment( StatusOr AppHubTracingConnection::DeleteServiceProjectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& request) { auto span = internal::MakeSpan( "apphub_v1::AppHubConnection::DeleteServiceProjectAttachment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteServiceProjectAttachment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteServiceProjectAttachment(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> AppHubTracingConnection::DeleteServiceProjectAttachment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "apphub_v1::AppHubConnection::DeleteServiceProjectAttachment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteServiceProjectAttachment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->DeleteServiceProjectAttachment(ExperimentalTag{}, operation)); } StatusOr @@ -198,24 +196,21 @@ AppHubTracingConnection::CreateService( } StatusOr AppHubTracingConnection::CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateServiceRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::CreateService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppHubTracingConnection::CreateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::CreateService"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateService(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateService(ExperimentalTag{}, operation)); } StatusOr @@ -235,24 +230,21 @@ AppHubTracingConnection::UpdateService( } StatusOr AppHubTracingConnection::UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateServiceRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::UpdateService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppHubTracingConnection::UpdateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::UpdateService"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateService(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateService(ExperimentalTag{}, operation)); } future> @@ -264,24 +256,21 @@ AppHubTracingConnection::DeleteService( } StatusOr AppHubTracingConnection::DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteServiceRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::DeleteService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppHubTracingConnection::DeleteService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::DeleteService"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteService(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteService(ExperimentalTag{}, operation)); } StreamRange @@ -334,24 +323,21 @@ AppHubTracingConnection::CreateWorkload( StatusOr AppHubTracingConnection::CreateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateWorkloadRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::CreateWorkload"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateWorkload(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateWorkload(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppHubTracingConnection::CreateWorkload( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::CreateWorkload"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateWorkload(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateWorkload(ExperimentalTag{}, operation)); } StatusOr @@ -372,24 +358,21 @@ AppHubTracingConnection::UpdateWorkload( StatusOr AppHubTracingConnection::UpdateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateWorkloadRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::UpdateWorkload"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateWorkload(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateWorkload(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppHubTracingConnection::UpdateWorkload( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::UpdateWorkload"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateWorkload(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateWorkload(ExperimentalTag{}, operation)); } future> @@ -402,24 +385,21 @@ AppHubTracingConnection::DeleteWorkload( StatusOr AppHubTracingConnection::DeleteWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteWorkloadRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::DeleteWorkload"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteWorkload(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteWorkload(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppHubTracingConnection::DeleteWorkload( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::DeleteWorkload"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteWorkload(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteWorkload(ExperimentalTag{}, operation)); } StreamRange @@ -444,26 +424,24 @@ AppHubTracingConnection::CreateApplication( StatusOr AppHubTracingConnection::CreateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateApplicationRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::CreateApplication"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateApplication(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateApplication(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppHubTracingConnection::CreateApplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::CreateApplication"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateApplication(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateApplication(ExperimentalTag{}, operation)); } StatusOr @@ -485,26 +463,24 @@ AppHubTracingConnection::UpdateApplication( StatusOr AppHubTracingConnection::UpdateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateApplicationRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::UpdateApplication"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateApplication(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateApplication(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppHubTracingConnection::UpdateApplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::UpdateApplication"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateApplication(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateApplication(ExperimentalTag{}, operation)); } future> @@ -518,26 +494,24 @@ AppHubTracingConnection::DeleteApplication( StatusOr AppHubTracingConnection::DeleteApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteApplicationRequest const& request) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::DeleteApplication"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteApplication(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteApplication(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppHubTracingConnection::DeleteApplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("apphub_v1::AppHubConnection::DeleteApplication"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteApplication(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteApplication(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/apphub/v1/internal/app_hub_tracing_connection.h b/google/cloud/apphub/v1/internal/app_hub_tracing_connection.h index 0ba54a1b4105e..c34768c6acfda 100644 --- a/google/cloud/apphub/v1/internal/app_hub_tracing_connection.h +++ b/google/cloud/apphub/v1/internal/app_hub_tracing_connection.h @@ -55,13 +55,13 @@ class AppHubTracingConnection : public apphub_v1::AppHubConnection { request) override; StatusOr CreateServiceProjectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const& request) override; future> CreateServiceProjectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -75,13 +75,13 @@ class AppHubTracingConnection : public apphub_v1::AppHubConnection { request) override; StatusOr DeleteServiceProjectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& request) override; future> DeleteServiceProjectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -110,11 +110,11 @@ class AppHubTracingConnection : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::CreateServiceRequest const& request) override; StatusOr CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateServiceRequest const& request) override; future> CreateService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetService( @@ -124,22 +124,22 @@ class AppHubTracingConnection : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::UpdateServiceRequest const& request) override; StatusOr UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateServiceRequest const& request) override; future> UpdateService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteService( google::cloud::apphub::v1::DeleteServiceRequest const& request) override; StatusOr DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteServiceRequest const& request) override; future> DeleteService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -163,11 +163,11 @@ class AppHubTracingConnection : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::CreateWorkloadRequest const& request) override; StatusOr CreateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateWorkloadRequest const& request) override; future> CreateWorkload( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetWorkload( @@ -177,22 +177,22 @@ class AppHubTracingConnection : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::UpdateWorkloadRequest const& request) override; StatusOr UpdateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateWorkloadRequest const& request) override; future> UpdateWorkload( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteWorkload( google::cloud::apphub::v1::DeleteWorkloadRequest const& request) override; StatusOr DeleteWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteWorkloadRequest const& request) override; future> DeleteWorkload( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListApplications( @@ -203,12 +203,12 @@ class AppHubTracingConnection : public apphub_v1::AppHubConnection { override; StatusOr CreateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateApplicationRequest const& request) override; future> CreateApplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetApplication( @@ -219,12 +219,12 @@ class AppHubTracingConnection : public apphub_v1::AppHubConnection { override; StatusOr UpdateApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateApplicationRequest const& request) override; future> UpdateApplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -232,12 +232,12 @@ class AppHubTracingConnection : public apphub_v1::AppHubConnection { request) override; StatusOr DeleteApplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteApplicationRequest const& request) override; future> - DeleteApplication(google::cloud::ExperimentalTag, + DeleteApplication(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/apphub/v1/mocks/mock_app_hub_connection.h b/google/cloud/apphub/v1/mocks/mock_app_hub_connection.h index 4723e95620178..70998c85df6cd 100644 --- a/google/cloud/apphub/v1/mocks/mock_app_hub_connection.h +++ b/google/cloud/apphub/v1/mocks/mock_app_hub_connection.h @@ -69,7 +69,7 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { MOCK_METHOD( StatusOr, CreateServiceProjectAttachment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const& request), (override)); @@ -77,8 +77,7 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { MOCK_METHOD( future>, CreateServiceProjectAttachment, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -97,14 +96,14 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { MOCK_METHOD( StatusOr, DeleteServiceProjectAttachment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& request), (override)); MOCK_METHOD(future>, DeleteServiceProjectAttachment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -145,13 +144,13 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { (override)); MOCK_METHOD(StatusOr, CreateService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateServiceRequest const& request), (override)); MOCK_METHOD(future>, CreateService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -165,13 +164,13 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { (override)); MOCK_METHOD(StatusOr, UpdateService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateServiceRequest const& request), (override)); MOCK_METHOD(future>, UpdateService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -181,13 +180,13 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { (override)); MOCK_METHOD(StatusOr, DeleteService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteServiceRequest const& request), (override)); MOCK_METHOD(future>, DeleteService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -220,13 +219,13 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { (override)); MOCK_METHOD(StatusOr, CreateWorkload, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateWorkloadRequest const& request), (override)); MOCK_METHOD(future>, CreateWorkload, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -240,13 +239,13 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { (override)); MOCK_METHOD(StatusOr, UpdateWorkload, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateWorkloadRequest const& request), (override)); MOCK_METHOD(future>, UpdateWorkload, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -256,13 +255,13 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { (override)); MOCK_METHOD(StatusOr, DeleteWorkload, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteWorkloadRequest const& request), (override)); MOCK_METHOD(future>, DeleteWorkload, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -279,13 +278,13 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { MOCK_METHOD( StatusOr, CreateApplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateApplicationRequest const& request), (override)); MOCK_METHOD(future>, CreateApplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -301,13 +300,13 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { MOCK_METHOD( StatusOr, UpdateApplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateApplicationRequest const& request), (override)); MOCK_METHOD(future>, UpdateApplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -319,13 +318,13 @@ class MockAppHubConnection : public apphub_v1::AppHubConnection { MOCK_METHOD( StatusOr, DeleteApplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteApplicationRequest const& request), (override)); MOCK_METHOD(future>, DeleteApplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.cc b/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.cc index c2652fd35fe1e..c6a9502f2639b 100644 --- a/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.cc +++ b/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.cc @@ -323,7 +323,7 @@ ArtifactRegistryConnectionImpl::ImportAptArtifacts( StatusOr ArtifactRegistryConnectionImpl::ImportAptArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -341,8 +341,7 @@ ArtifactRegistryConnectionImpl::ImportAptArtifacts( future> ArtifactRegistryConnectionImpl::ImportAptArtifacts( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ArtifactRegistryConnectionImpl::ImportYumArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -439,8 +438,7 @@ ArtifactRegistryConnectionImpl::ImportYumArtifacts( future> ArtifactRegistryConnectionImpl::ImportYumArtifacts( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ArtifactRegistryConnectionImpl::CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::artifactregistry::v1::CreateRepositoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -589,8 +587,7 @@ ArtifactRegistryConnectionImpl::CreateRepository( future> ArtifactRegistryConnectionImpl::CreateRepository( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ArtifactRegistryConnectionImpl::DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -704,8 +701,7 @@ ArtifactRegistryConnectionImpl::DeleteRepository( future> ArtifactRegistryConnectionImpl::DeleteRepository( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ArtifactRegistryConnectionImpl::DeletePackage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::artifactregistry::v1::DeletePackageRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -852,8 +848,7 @@ ArtifactRegistryConnectionImpl::DeletePackage( future> ArtifactRegistryConnectionImpl::DeletePackage( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ArtifactRegistryConnectionImpl::DeleteVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::artifactregistry::v1::DeleteVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1000,8 +995,7 @@ ArtifactRegistryConnectionImpl::DeleteVersion( future> ArtifactRegistryConnectionImpl::DeleteVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ArtifactRegistryConnectionImpl::BatchDeleteVersions( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1098,8 +1092,7 @@ ArtifactRegistryConnectionImpl::BatchDeleteVersions( future> ArtifactRegistryConnectionImpl::BatchDeleteVersions( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ImportAptArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& request) override; future> - ImportAptArtifacts(google::cloud::ExperimentalTag, + ImportAptArtifacts(ExperimentalTag, google::longrunning::Operation const& operation) override; future ImportYumArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& request) override; future> - ImportYumArtifacts(google::cloud::ExperimentalTag, + ImportYumArtifacts(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -136,12 +136,12 @@ class ArtifactRegistryConnectionImpl request) override; StatusOr CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::artifactregistry::v1::CreateRepositoryRequest const& request) override; future> - CreateRepository(google::cloud::ExperimentalTag, + CreateRepository(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr UpdateRepository( @@ -154,12 +154,12 @@ class ArtifactRegistryConnectionImpl request) override; StatusOr DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& request) override; future> - DeleteRepository(google::cloud::ExperimentalTag, + DeleteRepository(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListPackages( @@ -176,12 +176,12 @@ class ArtifactRegistryConnectionImpl request) override; StatusOr DeletePackage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::artifactregistry::v1::DeletePackageRequest const& request) override; future> - DeletePackage(google::cloud::ExperimentalTag, + DeletePackage(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListVersions( @@ -198,12 +198,12 @@ class ArtifactRegistryConnectionImpl request) override; StatusOr DeleteVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::artifactregistry::v1::DeleteVersionRequest const& request) override; future> - DeleteVersion(google::cloud::ExperimentalTag, + DeleteVersion(ExperimentalTag, google::longrunning::Operation const& operation) override; future BatchDeleteVersions( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& request) override; future> - BatchDeleteVersions(google::cloud::ExperimentalTag, + BatchDeleteVersions(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListFiles( diff --git a/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.cc b/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.cc index 6a85fc69f5d55..5d4758318854e 100644 --- a/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.cc +++ b/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.cc @@ -135,28 +135,26 @@ ArtifactRegistryTracingConnection::ImportAptArtifacts( StatusOr ArtifactRegistryTracingConnection::ImportAptArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& request) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::ImportAptArtifacts"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportAptArtifacts(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ImportAptArtifacts(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ArtifactRegistryTracingConnection::ImportAptArtifacts( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::ImportAptArtifacts"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ImportAptArtifacts(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ImportAptArtifacts( + ExperimentalTag{}, operation)); } future ArtifactRegistryTracingConnection::ImportYumArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& request) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::ImportYumArtifacts"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportYumArtifacts(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ImportYumArtifacts(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ArtifactRegistryTracingConnection::ImportYumArtifacts( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::ImportYumArtifacts"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ImportYumArtifacts(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ImportYumArtifacts( + ExperimentalTag{}, operation)); } StreamRange @@ -231,27 +227,25 @@ ArtifactRegistryTracingConnection::CreateRepository( StatusOr ArtifactRegistryTracingConnection::CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::CreateRepositoryRequest const& request) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::CreateRepository"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateRepository(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateRepository(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ArtifactRegistryTracingConnection::CreateRepository( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::CreateRepository"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateRepository(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateRepository(ExperimentalTag{}, operation)); } StatusOr @@ -276,27 +270,25 @@ ArtifactRegistryTracingConnection::DeleteRepository( StatusOr ArtifactRegistryTracingConnection::DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& request) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::DeleteRepository"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteRepository(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteRepository(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ArtifactRegistryTracingConnection::DeleteRepository( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::DeleteRepository"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteRepository(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteRepository(ExperimentalTag{}, operation)); } StreamRange @@ -332,27 +324,24 @@ ArtifactRegistryTracingConnection::DeletePackage( StatusOr ArtifactRegistryTracingConnection::DeletePackage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeletePackageRequest const& request) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::DeletePackage"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeletePackage(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeletePackage(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ArtifactRegistryTracingConnection::DeletePackage( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::DeletePackage"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeletePackage(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeletePackage(ExperimentalTag{}, operation)); } StreamRange @@ -388,27 +377,24 @@ ArtifactRegistryTracingConnection::DeleteVersion( StatusOr ArtifactRegistryTracingConnection::DeleteVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeleteVersionRequest const& request) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::DeleteVersion"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteVersion(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteVersion(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ArtifactRegistryTracingConnection::DeleteVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::DeleteVersion"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteVersion(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteVersion(ExperimentalTag{}, operation)); } future ArtifactRegistryTracingConnection::BatchDeleteVersions( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& request) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::BatchDeleteVersions"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BatchDeleteVersions(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->BatchDeleteVersions(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ArtifactRegistryTracingConnection::BatchDeleteVersions( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "artifactregistry_v1::ArtifactRegistryConnection::BatchDeleteVersions"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->BatchDeleteVersions(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchDeleteVersions( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.h b/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.h index 838da540df6d0..250bffc5ab224 100644 --- a/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.h +++ b/google/cloud/artifactregistry/v1/internal/artifact_registry_tracing_connection.h @@ -84,13 +84,13 @@ class ArtifactRegistryTracingConnection request) override; StatusOr ImportAptArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& request) override; future> - ImportAptArtifacts(google::cloud::ExperimentalTag, + ImportAptArtifacts(ExperimentalTag, google::longrunning::Operation const& operation) override; future ImportYumArtifacts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& request) override; future> - ImportYumArtifacts(google::cloud::ExperimentalTag, + ImportYumArtifacts(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -124,12 +124,12 @@ class ArtifactRegistryTracingConnection request) override; StatusOr CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::CreateRepositoryRequest const& request) override; future> - CreateRepository(google::cloud::ExperimentalTag, + CreateRepository(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr UpdateRepository( @@ -142,12 +142,12 @@ class ArtifactRegistryTracingConnection request) override; StatusOr DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& request) override; future> - DeleteRepository(google::cloud::ExperimentalTag, + DeleteRepository(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListPackages( @@ -164,12 +164,12 @@ class ArtifactRegistryTracingConnection request) override; StatusOr DeletePackage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeletePackageRequest const& request) override; future> - DeletePackage(google::cloud::ExperimentalTag, + DeletePackage(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListVersions( @@ -186,12 +186,12 @@ class ArtifactRegistryTracingConnection request) override; StatusOr DeleteVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeleteVersionRequest const& request) override; future> - DeleteVersion(google::cloud::ExperimentalTag, + DeleteVersion(ExperimentalTag, google::longrunning::Operation const& operation) override; future BatchDeleteVersions( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& request) override; future> - BatchDeleteVersions(google::cloud::ExperimentalTag, + BatchDeleteVersions(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListFiles( diff --git a/google/cloud/artifactregistry/v1/mocks/mock_artifact_registry_connection.h b/google/cloud/artifactregistry/v1/mocks/mock_artifact_registry_connection.h index c7689a7648310..08551817c37f5 100644 --- a/google/cloud/artifactregistry/v1/mocks/mock_artifact_registry_connection.h +++ b/google/cloud/artifactregistry/v1/mocks/mock_artifact_registry_connection.h @@ -111,7 +111,7 @@ class MockArtifactRegistryConnection MOCK_METHOD( StatusOr, ImportAptArtifacts, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& request), (override)); @@ -120,8 +120,7 @@ class MockArtifactRegistryConnection future>, ImportAptArtifacts, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -134,7 +133,7 @@ class MockArtifactRegistryConnection MOCK_METHOD( StatusOr, ImportYumArtifacts, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& request), (override)); @@ -143,8 +142,7 @@ class MockArtifactRegistryConnection future>, ImportYumArtifacts, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -169,7 +167,7 @@ class MockArtifactRegistryConnection MOCK_METHOD( StatusOr, CreateRepository, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::CreateRepositoryRequest const& request), (override)); @@ -177,8 +175,7 @@ class MockArtifactRegistryConnection MOCK_METHOD( future>, CreateRepository, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -198,7 +195,7 @@ class MockArtifactRegistryConnection MOCK_METHOD( StatusOr, DeleteRepository, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& request), (override)); @@ -207,8 +204,7 @@ class MockArtifactRegistryConnection future< StatusOr>, DeleteRepository, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -233,7 +229,7 @@ class MockArtifactRegistryConnection MOCK_METHOD( StatusOr, DeletePackage, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeletePackageRequest const& request), (override)); @@ -242,8 +238,7 @@ class MockArtifactRegistryConnection future< StatusOr>, DeletePackage, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -268,7 +263,7 @@ class MockArtifactRegistryConnection MOCK_METHOD( StatusOr, DeleteVersion, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeleteVersionRequest const& request), (override)); @@ -277,8 +272,7 @@ class MockArtifactRegistryConnection future< StatusOr>, DeleteVersion, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -291,7 +285,7 @@ class MockArtifactRegistryConnection MOCK_METHOD( StatusOr, BatchDeleteVersions, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& request), (override)); @@ -300,8 +294,7 @@ class MockArtifactRegistryConnection future>, BatchDeleteVersions, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/asset/v1/internal/asset_connection_impl.cc b/google/cloud/asset/v1/internal/asset_connection_impl.cc index 5acfb7b2df06d..2d683ec9a028b 100644 --- a/google/cloud/asset/v1/internal/asset_connection_impl.cc +++ b/google/cloud/asset/v1/internal/asset_connection_impl.cc @@ -103,7 +103,7 @@ AssetServiceConnectionImpl::ExportAssets( StatusOr AssetServiceConnectionImpl::ExportAssets( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::asset::v1::ExportAssetsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -118,8 +118,7 @@ AssetServiceConnectionImpl::ExportAssets( future> AssetServiceConnectionImpl::ExportAssets( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -393,7 +392,7 @@ AssetServiceConnectionImpl::AnalyzeIamPolicyLongrunning( StatusOr AssetServiceConnectionImpl::AnalyzeIamPolicyLongrunning( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -410,8 +409,7 @@ AssetServiceConnectionImpl::AnalyzeIamPolicyLongrunning( future> AssetServiceConnectionImpl::AnalyzeIamPolicyLongrunning( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ExportAssets( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::asset::v1::ExportAssetsRequest const& request) override; future> ExportAssets( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListAssets( @@ -104,14 +104,14 @@ class AssetServiceConnectionImpl : public asset_v1::AssetServiceConnection { request) override; StatusOr AnalyzeIamPolicyLongrunning( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& request) override; future< StatusOr> AnalyzeIamPolicyLongrunning( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr AnalyzeMove( diff --git a/google/cloud/asset/v1/internal/asset_tracing_connection.cc b/google/cloud/asset/v1/internal/asset_tracing_connection.cc index e162af438b9a8..8c76af7eb8881 100644 --- a/google/cloud/asset/v1/internal/asset_tracing_connection.cc +++ b/google/cloud/asset/v1/internal/asset_tracing_connection.cc @@ -44,26 +44,23 @@ AssetServiceTracingConnection::ExportAssets( StatusOr AssetServiceTracingConnection::ExportAssets( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::asset::v1::ExportAssetsRequest const& request) { auto span = internal::MakeSpan("asset_v1::AssetServiceConnection::ExportAssets"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportAssets(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ExportAssets(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AssetServiceTracingConnection::ExportAssets( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("asset_v1::AssetServiceConnection::ExportAssets"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ExportAssets(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ExportAssets(ExperimentalTag{}, operation)); } StreamRange @@ -173,27 +170,25 @@ AssetServiceTracingConnection::AnalyzeIamPolicyLongrunning( StatusOr AssetServiceTracingConnection::AnalyzeIamPolicyLongrunning( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& request) { auto span = internal::MakeSpan( "asset_v1::AssetServiceConnection::AnalyzeIamPolicyLongrunning"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->AnalyzeIamPolicyLongrunning( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->AnalyzeIamPolicyLongrunning(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> AssetServiceTracingConnection::AnalyzeIamPolicyLongrunning( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "asset_v1::AssetServiceConnection::AnalyzeIamPolicyLongrunning"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->AnalyzeIamPolicyLongrunning( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->AnalyzeIamPolicyLongrunning( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/asset/v1/internal/asset_tracing_connection.h b/google/cloud/asset/v1/internal/asset_tracing_connection.h index dca13627d5647..f7ef3e9abbb70 100644 --- a/google/cloud/asset/v1/internal/asset_tracing_connection.h +++ b/google/cloud/asset/v1/internal/asset_tracing_connection.h @@ -43,11 +43,11 @@ class AssetServiceTracingConnection : public asset_v1::AssetServiceConnection { google::cloud::asset::v1::ExportAssetsRequest const& request) override; StatusOr ExportAssets( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::asset::v1::ExportAssetsRequest const& request) override; future> ExportAssets( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListAssets( @@ -92,14 +92,14 @@ class AssetServiceTracingConnection : public asset_v1::AssetServiceConnection { request) override; StatusOr AnalyzeIamPolicyLongrunning( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& request) override; future< StatusOr> AnalyzeIamPolicyLongrunning( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr AnalyzeMove( diff --git a/google/cloud/asset/v1/mocks/mock_asset_connection.h b/google/cloud/asset/v1/mocks/mock_asset_connection.h index c883869877a5c..a9352227dbe61 100644 --- a/google/cloud/asset/v1/mocks/mock_asset_connection.h +++ b/google/cloud/asset/v1/mocks/mock_asset_connection.h @@ -52,13 +52,13 @@ class MockAssetServiceConnection : public asset_v1::AssetServiceConnection { (override)); MOCK_METHOD(StatusOr, ExportAssets, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::asset::v1::ExportAssetsRequest const& request), (override)); MOCK_METHOD(future>, ExportAssets, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -118,7 +118,7 @@ class MockAssetServiceConnection : public asset_v1::AssetServiceConnection { MOCK_METHOD( StatusOr, AnalyzeIamPolicyLongrunning, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& request), (override)); @@ -127,8 +127,7 @@ class MockAssetServiceConnection : public asset_v1::AssetServiceConnection { future>, AnalyzeIamPolicyLongrunning, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, diff --git a/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.cc b/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.cc index 8c87b963ad2e6..584c2a6c3ad51 100644 --- a/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.cc +++ b/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.cc @@ -115,7 +115,7 @@ AssuredWorkloadsServiceConnectionImpl::CreateWorkload( StatusOr AssuredWorkloadsServiceConnectionImpl::CreateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -131,8 +131,7 @@ AssuredWorkloadsServiceConnectionImpl::CreateWorkload( future> AssuredWorkloadsServiceConnectionImpl::CreateWorkload( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& request) override; future> - CreateWorkload(google::cloud::ExperimentalTag, + CreateWorkload(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr UpdateWorkload( diff --git a/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.cc b/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.cc index 76329f445ab87..2a17fe3b724da 100644 --- a/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.cc +++ b/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.cc @@ -46,26 +46,23 @@ AssuredWorkloadsServiceTracingConnection::CreateWorkload( StatusOr AssuredWorkloadsServiceTracingConnection::CreateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& request) { auto span = internal::MakeSpan( "assuredworkloads_v1::AssuredWorkloadsServiceConnection::CreateWorkload"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateWorkload(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateWorkload(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AssuredWorkloadsServiceTracingConnection::CreateWorkload( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "assuredworkloads_v1::AssuredWorkloadsServiceConnection::CreateWorkload"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateWorkload(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateWorkload(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.h b/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.h index 59a1a72560a74..7d93914d52676 100644 --- a/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.h +++ b/google/cloud/assuredworkloads/v1/internal/assured_workloads_tracing_connection.h @@ -47,12 +47,12 @@ class AssuredWorkloadsServiceTracingConnection override; StatusOr CreateWorkload( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& request) override; future> - CreateWorkload(google::cloud::ExperimentalTag, + CreateWorkload(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr UpdateWorkload( diff --git a/google/cloud/assuredworkloads/v1/mocks/mock_assured_workloads_connection.h b/google/cloud/assuredworkloads/v1/mocks/mock_assured_workloads_connection.h index a7d51e5cffcd9..6eaf19e6473fe 100644 --- a/google/cloud/assuredworkloads/v1/mocks/mock_assured_workloads_connection.h +++ b/google/cloud/assuredworkloads/v1/mocks/mock_assured_workloads_connection.h @@ -54,14 +54,14 @@ class MockAssuredWorkloadsServiceConnection (override)); MOCK_METHOD(StatusOr, CreateWorkload, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& request), (override)); MOCK_METHOD(future>, CreateWorkload, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/automl/v1/internal/auto_ml_connection_impl.cc b/google/cloud/automl/v1/internal/auto_ml_connection_impl.cc index a0a8338b95605..f406613a4bf8a 100644 --- a/google/cloud/automl/v1/internal/auto_ml_connection_impl.cc +++ b/google/cloud/automl/v1/internal/auto_ml_connection_impl.cc @@ -102,7 +102,7 @@ AutoMlConnectionImpl::CreateDataset( } StatusOr AutoMlConnectionImpl::CreateDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::CreateDatasetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -117,8 +117,7 @@ StatusOr AutoMlConnectionImpl::CreateDataset( future> AutoMlConnectionImpl::CreateDataset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -253,7 +252,7 @@ AutoMlConnectionImpl::DeleteDataset( } StatusOr AutoMlConnectionImpl::DeleteDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::DeleteDatasetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -268,8 +267,7 @@ StatusOr AutoMlConnectionImpl::DeleteDataset( future> AutoMlConnectionImpl::DeleteDataset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -344,7 +342,7 @@ AutoMlConnectionImpl::ImportData( } StatusOr AutoMlConnectionImpl::ImportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::ImportDataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -359,8 +357,7 @@ StatusOr AutoMlConnectionImpl::ImportData( future> AutoMlConnectionImpl::ImportData( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -435,7 +432,7 @@ AutoMlConnectionImpl::ExportData( } StatusOr AutoMlConnectionImpl::ExportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::ExportDataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -450,8 +447,7 @@ StatusOr AutoMlConnectionImpl::ExportData( future> AutoMlConnectionImpl::ExportData( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -541,7 +537,7 @@ AutoMlConnectionImpl::CreateModel( } StatusOr AutoMlConnectionImpl::CreateModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::CreateModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -556,8 +552,7 @@ StatusOr AutoMlConnectionImpl::CreateModel( future> AutoMlConnectionImpl::CreateModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -676,7 +671,7 @@ AutoMlConnectionImpl::DeleteModel( } StatusOr AutoMlConnectionImpl::DeleteModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::DeleteModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -691,8 +686,7 @@ StatusOr AutoMlConnectionImpl::DeleteModel( future> AutoMlConnectionImpl::DeleteModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -780,7 +774,7 @@ AutoMlConnectionImpl::DeployModel( } StatusOr AutoMlConnectionImpl::DeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::DeployModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -795,8 +789,7 @@ StatusOr AutoMlConnectionImpl::DeployModel( future> AutoMlConnectionImpl::DeployModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -871,7 +864,7 @@ AutoMlConnectionImpl::UndeployModel( } StatusOr AutoMlConnectionImpl::UndeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::UndeployModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -886,8 +879,7 @@ StatusOr AutoMlConnectionImpl::UndeployModel( future> AutoMlConnectionImpl::UndeployModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -962,7 +954,7 @@ AutoMlConnectionImpl::ExportModel( } StatusOr AutoMlConnectionImpl::ExportModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::ExportModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -977,8 +969,7 @@ StatusOr AutoMlConnectionImpl::ExportModel( future> AutoMlConnectionImpl::ExportModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/automl/v1/internal/auto_ml_connection_impl.h b/google/cloud/automl/v1/internal/auto_ml_connection_impl.h index 14ff7a470bacb..478a935a2a96c 100644 --- a/google/cloud/automl/v1/internal/auto_ml_connection_impl.h +++ b/google/cloud/automl/v1/internal/auto_ml_connection_impl.h @@ -54,11 +54,11 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { google::cloud::automl::v1::CreateDatasetRequest const& request) override; StatusOr CreateDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::CreateDatasetRequest const& request) override; future> CreateDataset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetDataset( @@ -74,33 +74,33 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { google::cloud::automl::v1::DeleteDatasetRequest const& request) override; StatusOr DeleteDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::DeleteDatasetRequest const& request) override; future> DeleteDataset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ImportData( google::cloud::automl::v1::ImportDataRequest const& request) override; StatusOr ImportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::ImportDataRequest const& request) override; future> ImportData( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ExportData( google::cloud::automl::v1::ExportDataRequest const& request) override; StatusOr ExportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::ExportDataRequest const& request) override; future> ExportData( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAnnotationSpec( @@ -111,11 +111,11 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { google::cloud::automl::v1::CreateModelRequest const& request) override; StatusOr CreateModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::CreateModelRequest const& request) override; future> CreateModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetModel( @@ -128,11 +128,11 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { google::cloud::automl::v1::DeleteModelRequest const& request) override; StatusOr DeleteModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::DeleteModelRequest const& request) override; future> DeleteModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr UpdateModel( @@ -142,33 +142,33 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { google::cloud::automl::v1::DeployModelRequest const& request) override; StatusOr DeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::DeployModelRequest const& request) override; future> DeployModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UndeployModel( google::cloud::automl::v1::UndeployModelRequest const& request) override; StatusOr UndeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::UndeployModelRequest const& request) override; future> UndeployModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ExportModel( google::cloud::automl::v1::ExportModelRequest const& request) override; StatusOr ExportModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::ExportModelRequest const& request) override; future> ExportModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetModelEvaluation( diff --git a/google/cloud/automl/v1/internal/auto_ml_tracing_connection.cc b/google/cloud/automl/v1/internal/auto_ml_tracing_connection.cc index fb887822e7954..8268eef5c7041 100644 --- a/google/cloud/automl/v1/internal/auto_ml_tracing_connection.cc +++ b/google/cloud/automl/v1/internal/auto_ml_tracing_connection.cc @@ -42,24 +42,21 @@ AutoMlTracingConnection::CreateDataset( } StatusOr AutoMlTracingConnection::CreateDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::CreateDatasetRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::CreateDataset"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateDataset(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateDataset(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AutoMlTracingConnection::CreateDataset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::CreateDataset"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateDataset(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateDataset(ExperimentalTag{}, operation)); } StatusOr @@ -97,24 +94,21 @@ AutoMlTracingConnection::DeleteDataset( } StatusOr AutoMlTracingConnection::DeleteDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeleteDatasetRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::DeleteDataset"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteDataset(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteDataset(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AutoMlTracingConnection::DeleteDataset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::DeleteDataset"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteDataset(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteDataset(ExperimentalTag{}, operation)); } future> @@ -126,24 +120,21 @@ AutoMlTracingConnection::ImportData( } StatusOr AutoMlTracingConnection::ImportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ImportDataRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::ImportData"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportData(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ImportData(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AutoMlTracingConnection::ImportData( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::ImportData"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ImportData(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ImportData(ExperimentalTag{}, operation)); } future> @@ -155,24 +146,21 @@ AutoMlTracingConnection::ExportData( } StatusOr AutoMlTracingConnection::ExportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ExportDataRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::ExportData"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportData(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ExportData(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AutoMlTracingConnection::ExportData( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::ExportData"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ExportData(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ExportData(ExperimentalTag{}, operation)); } StatusOr @@ -193,24 +181,21 @@ AutoMlTracingConnection::CreateModel( } StatusOr AutoMlTracingConnection::CreateModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::CreateModelRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::CreateModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AutoMlTracingConnection::CreateModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::CreateModel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateModel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateModel(ExperimentalTag{}, operation)); } StatusOr AutoMlTracingConnection::GetModel( @@ -239,24 +224,21 @@ AutoMlTracingConnection::DeleteModel( } StatusOr AutoMlTracingConnection::DeleteModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeleteModelRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::DeleteModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AutoMlTracingConnection::DeleteModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::DeleteModel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteModel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteModel(ExperimentalTag{}, operation)); } StatusOr AutoMlTracingConnection::UpdateModel( @@ -275,24 +257,21 @@ AutoMlTracingConnection::DeployModel( } StatusOr AutoMlTracingConnection::DeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeployModelRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::DeployModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeployModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeployModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AutoMlTracingConnection::DeployModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::DeployModel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeployModel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeployModel(ExperimentalTag{}, operation)); } future> @@ -304,24 +283,21 @@ AutoMlTracingConnection::UndeployModel( } StatusOr AutoMlTracingConnection::UndeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::UndeployModelRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::UndeployModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UndeployModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UndeployModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AutoMlTracingConnection::UndeployModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::UndeployModel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UndeployModel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UndeployModel(ExperimentalTag{}, operation)); } future> @@ -333,24 +309,21 @@ AutoMlTracingConnection::ExportModel( } StatusOr AutoMlTracingConnection::ExportModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ExportModelRequest const& request) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::ExportModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ExportModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AutoMlTracingConnection::ExportModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("automl_v1::AutoMlConnection::ExportModel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ExportModel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ExportModel(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/automl/v1/internal/auto_ml_tracing_connection.h b/google/cloud/automl/v1/internal/auto_ml_tracing_connection.h index 195a38909e3e2..0cd1bff29d1ec 100644 --- a/google/cloud/automl/v1/internal/auto_ml_tracing_connection.h +++ b/google/cloud/automl/v1/internal/auto_ml_tracing_connection.h @@ -43,11 +43,11 @@ class AutoMlTracingConnection : public automl_v1::AutoMlConnection { google::cloud::automl::v1::CreateDatasetRequest const& request) override; StatusOr CreateDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::CreateDatasetRequest const& request) override; future> CreateDataset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetDataset( @@ -63,33 +63,33 @@ class AutoMlTracingConnection : public automl_v1::AutoMlConnection { google::cloud::automl::v1::DeleteDatasetRequest const& request) override; StatusOr DeleteDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeleteDatasetRequest const& request) override; future> DeleteDataset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ImportData( google::cloud::automl::v1::ImportDataRequest const& request) override; StatusOr ImportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ImportDataRequest const& request) override; future> ImportData( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ExportData( google::cloud::automl::v1::ExportDataRequest const& request) override; StatusOr ExportData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ExportDataRequest const& request) override; future> ExportData( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAnnotationSpec( @@ -100,11 +100,11 @@ class AutoMlTracingConnection : public automl_v1::AutoMlConnection { google::cloud::automl::v1::CreateModelRequest const& request) override; StatusOr CreateModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::CreateModelRequest const& request) override; future> CreateModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetModel( @@ -117,11 +117,11 @@ class AutoMlTracingConnection : public automl_v1::AutoMlConnection { google::cloud::automl::v1::DeleteModelRequest const& request) override; StatusOr DeleteModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeleteModelRequest const& request) override; future> DeleteModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr UpdateModel( @@ -131,33 +131,33 @@ class AutoMlTracingConnection : public automl_v1::AutoMlConnection { google::cloud::automl::v1::DeployModelRequest const& request) override; StatusOr DeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeployModelRequest const& request) override; future> DeployModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UndeployModel( google::cloud::automl::v1::UndeployModelRequest const& request) override; StatusOr UndeployModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::UndeployModelRequest const& request) override; future> UndeployModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ExportModel( google::cloud::automl::v1::ExportModelRequest const& request) override; StatusOr ExportModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ExportModelRequest const& request) override; future> ExportModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetModelEvaluation( diff --git a/google/cloud/automl/v1/internal/prediction_connection_impl.cc b/google/cloud/automl/v1/internal/prediction_connection_impl.cc index ae91c26577a49..2804a1add7abe 100644 --- a/google/cloud/automl/v1/internal/prediction_connection_impl.cc +++ b/google/cloud/automl/v1/internal/prediction_connection_impl.cc @@ -120,7 +120,7 @@ PredictionServiceConnectionImpl::BatchPredict( StatusOr PredictionServiceConnectionImpl::BatchPredict( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::BatchPredictRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -135,8 +135,7 @@ PredictionServiceConnectionImpl::BatchPredict( future> PredictionServiceConnectionImpl::BatchPredict( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/automl/v1/internal/prediction_connection_impl.h b/google/cloud/automl/v1/internal/prediction_connection_impl.h index 202af096c98b5..527008a639d75 100644 --- a/google/cloud/automl/v1/internal/prediction_connection_impl.h +++ b/google/cloud/automl/v1/internal/prediction_connection_impl.h @@ -58,11 +58,11 @@ class PredictionServiceConnectionImpl google::cloud::automl::v1::BatchPredictRequest const& request) override; StatusOr BatchPredict( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::automl::v1::BatchPredictRequest const& request) override; future> BatchPredict( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/automl/v1/internal/prediction_tracing_connection.cc b/google/cloud/automl/v1/internal/prediction_tracing_connection.cc index ee97e461c905b..c2a57ef6026d7 100644 --- a/google/cloud/automl/v1/internal/prediction_tracing_connection.cc +++ b/google/cloud/automl/v1/internal/prediction_tracing_connection.cc @@ -52,26 +52,23 @@ PredictionServiceTracingConnection::BatchPredict( StatusOr PredictionServiceTracingConnection::BatchPredict( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::BatchPredictRequest const& request) { auto span = internal::MakeSpan( "automl_v1::PredictionServiceConnection::BatchPredict"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BatchPredict(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->BatchPredict(ExperimentalTag{}, NoAwaitTag{}, request)); } future> PredictionServiceTracingConnection::BatchPredict( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "automl_v1::PredictionServiceConnection::BatchPredict"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->BatchPredict(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->BatchPredict(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/automl/v1/internal/prediction_tracing_connection.h b/google/cloud/automl/v1/internal/prediction_tracing_connection.h index 08798b281d149..aafc5479e0c1f 100644 --- a/google/cloud/automl/v1/internal/prediction_tracing_connection.h +++ b/google/cloud/automl/v1/internal/prediction_tracing_connection.h @@ -47,11 +47,11 @@ class PredictionServiceTracingConnection google::cloud::automl::v1::BatchPredictRequest const& request) override; StatusOr BatchPredict( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::BatchPredictRequest const& request) override; future> BatchPredict( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/automl/v1/mocks/mock_auto_ml_connection.h b/google/cloud/automl/v1/mocks/mock_auto_ml_connection.h index 994eae0b8f65d..c8367a2136747 100644 --- a/google/cloud/automl/v1/mocks/mock_auto_ml_connection.h +++ b/google/cloud/automl/v1/mocks/mock_auto_ml_connection.h @@ -52,13 +52,13 @@ class MockAutoMlConnection : public automl_v1::AutoMlConnection { (override)); MOCK_METHOD(StatusOr, CreateDataset, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::CreateDatasetRequest const& request), (override)); MOCK_METHOD(future>, CreateDataset, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -80,13 +80,13 @@ class MockAutoMlConnection : public automl_v1::AutoMlConnection { (override)); MOCK_METHOD(StatusOr, DeleteDataset, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeleteDatasetRequest const& request), (override)); MOCK_METHOD(future>, DeleteDataset, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -96,13 +96,13 @@ class MockAutoMlConnection : public automl_v1::AutoMlConnection { (override)); MOCK_METHOD(StatusOr, ImportData, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ImportDataRequest const& request), (override)); MOCK_METHOD(future>, ImportData, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -112,13 +112,13 @@ class MockAutoMlConnection : public automl_v1::AutoMlConnection { (override)); MOCK_METHOD(StatusOr, ExportData, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ExportDataRequest const& request), (override)); MOCK_METHOD(future>, ExportData, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -132,12 +132,12 @@ class MockAutoMlConnection : public automl_v1::AutoMlConnection { (override)); MOCK_METHOD(StatusOr, CreateModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::CreateModelRequest const& request), (override)); MOCK_METHOD(future>, CreateModel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -155,13 +155,13 @@ class MockAutoMlConnection : public automl_v1::AutoMlConnection { (override)); MOCK_METHOD(StatusOr, DeleteModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeleteModelRequest const& request), (override)); MOCK_METHOD(future>, DeleteModel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -175,13 +175,13 @@ class MockAutoMlConnection : public automl_v1::AutoMlConnection { (override)); MOCK_METHOD(StatusOr, DeployModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeployModelRequest const& request), (override)); MOCK_METHOD(future>, DeployModel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -191,13 +191,13 @@ class MockAutoMlConnection : public automl_v1::AutoMlConnection { (override)); MOCK_METHOD(StatusOr, UndeployModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::UndeployModelRequest const& request), (override)); MOCK_METHOD(future>, UndeployModel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -207,13 +207,13 @@ class MockAutoMlConnection : public automl_v1::AutoMlConnection { (override)); MOCK_METHOD(StatusOr, ExportModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ExportModelRequest const& request), (override)); MOCK_METHOD(future>, ExportModel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/automl/v1/mocks/mock_prediction_connection.h b/google/cloud/automl/v1/mocks/mock_prediction_connection.h index 5e4671d451060..65150d881dc94 100644 --- a/google/cloud/automl/v1/mocks/mock_prediction_connection.h +++ b/google/cloud/automl/v1/mocks/mock_prediction_connection.h @@ -57,13 +57,13 @@ class MockPredictionServiceConnection (override)); MOCK_METHOD(StatusOr, BatchPredict, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::BatchPredictRequest const& request), (override)); MOCK_METHOD(future>, BatchPredict, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.cc b/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.cc index e72060bf400ba..aef18310cfd6b 100644 --- a/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.cc +++ b/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.cc @@ -155,7 +155,7 @@ BackupDRConnectionImpl::CreateManagementServer( StatusOr BackupDRConnectionImpl::CreateManagementServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::backupdr::v1::CreateManagementServerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -171,8 +171,7 @@ BackupDRConnectionImpl::CreateManagementServer( future> BackupDRConnectionImpl::CreateManagementServer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -249,7 +248,7 @@ BackupDRConnectionImpl::DeleteManagementServer( StatusOr BackupDRConnectionImpl::DeleteManagementServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::backupdr::v1::DeleteManagementServerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -265,8 +264,7 @@ BackupDRConnectionImpl::DeleteManagementServer( future> BackupDRConnectionImpl::DeleteManagementServer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.h b/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.h index 49db26bdddd4e..0070ad778272c 100644 --- a/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.h +++ b/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.h @@ -66,13 +66,13 @@ class BackupDRConnectionImpl : public backupdr_v1::BackupDRConnection { override; StatusOr CreateManagementServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::backupdr::v1::CreateManagementServerRequest const& request) override; future> CreateManagementServer( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -81,13 +81,13 @@ class BackupDRConnectionImpl : public backupdr_v1::BackupDRConnection { override; StatusOr DeleteManagementServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::backupdr::v1::DeleteManagementServerRequest const& request) override; future> DeleteManagementServer( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.cc b/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.cc index 83903a20d6cd2..25252303d1933 100644 --- a/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.cc +++ b/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.cc @@ -66,26 +66,24 @@ BackupDRTracingConnection::CreateManagementServer( StatusOr BackupDRTracingConnection::CreateManagementServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::backupdr::v1::CreateManagementServerRequest const& request) { auto span = internal::MakeSpan( "backupdr_v1::BackupDRConnection::CreateManagementServer"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateManagementServer( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateManagementServer(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackupDRTracingConnection::CreateManagementServer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "backupdr_v1::BackupDRConnection::CreateManagementServer"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateManagementServer( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateManagementServer( + ExperimentalTag{}, operation)); } future> @@ -100,26 +98,24 @@ BackupDRTracingConnection::DeleteManagementServer( StatusOr BackupDRTracingConnection::DeleteManagementServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::backupdr::v1::DeleteManagementServerRequest const& request) { auto span = internal::MakeSpan( "backupdr_v1::BackupDRConnection::DeleteManagementServer"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteManagementServer( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteManagementServer(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackupDRTracingConnection::DeleteManagementServer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "backupdr_v1::BackupDRConnection::DeleteManagementServer"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteManagementServer( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteManagementServer( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.h b/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.h index 83c61ae177a42..3429196fc821e 100644 --- a/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.h +++ b/google/cloud/backupdr/v1/internal/backup_dr_tracing_connection.h @@ -54,13 +54,13 @@ class BackupDRTracingConnection : public backupdr_v1::BackupDRConnection { override; StatusOr CreateManagementServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::backupdr::v1::CreateManagementServerRequest const& request) override; future> CreateManagementServer( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -69,13 +69,13 @@ class BackupDRTracingConnection : public backupdr_v1::BackupDRConnection { override; StatusOr DeleteManagementServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::backupdr::v1::DeleteManagementServerRequest const& request) override; future> DeleteManagementServer( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/backupdr/v1/mocks/mock_backup_dr_connection.h b/google/cloud/backupdr/v1/mocks/mock_backup_dr_connection.h index bdca5ee9f9d02..c14d3c39427b2 100644 --- a/google/cloud/backupdr/v1/mocks/mock_backup_dr_connection.h +++ b/google/cloud/backupdr/v1/mocks/mock_backup_dr_connection.h @@ -65,14 +65,14 @@ class MockBackupDRConnection : public backupdr_v1::BackupDRConnection { (override)); MOCK_METHOD(StatusOr, CreateManagementServer, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::backupdr::v1::CreateManagementServerRequest const& request), (override)); MOCK_METHOD(future>, CreateManagementServer, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -83,14 +83,14 @@ class MockBackupDRConnection : public backupdr_v1::BackupDRConnection { (override)); MOCK_METHOD(StatusOr, DeleteManagementServer, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::backupdr::v1::DeleteManagementServerRequest const& request), (override)); MOCK_METHOD(future>, DeleteManagementServer, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.cc b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.cc index c12e95c4662b9..ccae421f29a26 100644 --- a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.cc +++ b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.cc @@ -165,7 +165,7 @@ BareMetalSolutionConnectionImpl::UpdateInstance( StatusOr BareMetalSolutionConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -182,8 +182,7 @@ BareMetalSolutionConnectionImpl::UpdateInstance( future> BareMetalSolutionConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BareMetalSolutionConnectionImpl::ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::ResetInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -293,8 +292,7 @@ BareMetalSolutionConnectionImpl::ResetInstance( future> BareMetalSolutionConnectionImpl::ResetInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BareMetalSolutionConnectionImpl::StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::StartInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -388,8 +386,7 @@ BareMetalSolutionConnectionImpl::StartInstance( future> BareMetalSolutionConnectionImpl::StartInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BareMetalSolutionConnectionImpl::StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::StopInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -483,8 +480,7 @@ BareMetalSolutionConnectionImpl::StopInstance( future> BareMetalSolutionConnectionImpl::StopInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BareMetalSolutionConnectionImpl::EnableInteractiveSerialConsole( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2:: EnableInteractiveSerialConsoleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -584,8 +580,7 @@ BareMetalSolutionConnectionImpl::EnableInteractiveSerialConsole( future> BareMetalSolutionConnectionImpl::EnableInteractiveSerialConsole( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BareMetalSolutionConnectionImpl::DisableInteractiveSerialConsole( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2:: DisableInteractiveSerialConsoleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -690,8 +685,7 @@ BareMetalSolutionConnectionImpl::DisableInteractiveSerialConsole( future> BareMetalSolutionConnectionImpl::DisableInteractiveSerialConsole( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BareMetalSolutionConnectionImpl::DetachLun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::DetachLunRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -787,8 +781,7 @@ BareMetalSolutionConnectionImpl::DetachLun( future> BareMetalSolutionConnectionImpl::DetachLun( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BareMetalSolutionConnectionImpl::UpdateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -998,8 +991,7 @@ BareMetalSolutionConnectionImpl::UpdateVolume( future> BareMetalSolutionConnectionImpl::UpdateVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BareMetalSolutionConnectionImpl::EvictVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1108,8 +1100,7 @@ BareMetalSolutionConnectionImpl::EvictVolume( future> BareMetalSolutionConnectionImpl::EvictVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BareMetalSolutionConnectionImpl::ResizeVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1203,8 +1194,7 @@ BareMetalSolutionConnectionImpl::ResizeVolume( future> BareMetalSolutionConnectionImpl::ResizeVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BareMetalSolutionConnectionImpl::UpdateNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1366,8 +1356,7 @@ BareMetalSolutionConnectionImpl::UpdateNetwork( future> BareMetalSolutionConnectionImpl::UpdateNetwork( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BareMetalSolutionConnectionImpl::RestoreVolumeSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1478,8 +1467,7 @@ BareMetalSolutionConnectionImpl::RestoreVolumeSnapshot( future> BareMetalSolutionConnectionImpl::RestoreVolumeSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BareMetalSolutionConnectionImpl::EvictLun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::EvictLunRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1689,8 +1677,7 @@ BareMetalSolutionConnectionImpl::EvictLun( future> BareMetalSolutionConnectionImpl::EvictLun( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BareMetalSolutionConnectionImpl::UpdateNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1836,8 +1823,7 @@ BareMetalSolutionConnectionImpl::UpdateNfsShare( future> BareMetalSolutionConnectionImpl::UpdateNfsShare( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BareMetalSolutionConnectionImpl::CreateNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1933,8 +1919,7 @@ BareMetalSolutionConnectionImpl::CreateNfsShare( future> BareMetalSolutionConnectionImpl::CreateNfsShare( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BareMetalSolutionConnectionImpl::DeleteNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2046,8 +2031,7 @@ BareMetalSolutionConnectionImpl::DeleteNfsShare( future> BareMetalSolutionConnectionImpl::DeleteNfsShare( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& request) override; future> - UpdateInstance(google::cloud::ExperimentalTag, + UpdateInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr RenameInstance( @@ -85,12 +85,12 @@ class BareMetalSolutionConnectionImpl override; StatusOr ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::ResetInstanceRequest const& request) override; future> - ResetInstance(google::cloud::ExperimentalTag, + ResetInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -99,12 +99,12 @@ class BareMetalSolutionConnectionImpl override; StatusOr StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::StartInstanceRequest const& request) override; future> - StartInstance(google::cloud::ExperimentalTag, + StartInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -112,12 +112,12 @@ class BareMetalSolutionConnectionImpl request) override; StatusOr StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::StopInstanceRequest const& request) override; future> - StopInstance(google::cloud::ExperimentalTag, + StopInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future EnableInteractiveSerialConsole( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2:: EnableInteractiveSerialConsoleRequest const& request) override; future> EnableInteractiveSerialConsole( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future DisableInteractiveSerialConsole( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2:: DisableInteractiveSerialConsoleRequest const& request) override; future> DisableInteractiveSerialConsole( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DetachLun( @@ -159,12 +159,12 @@ class BareMetalSolutionConnectionImpl override; StatusOr DetachLun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::DetachLunRequest const& request) override; future> DetachLun( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListSSHKeys( @@ -192,12 +192,12 @@ class BareMetalSolutionConnectionImpl override; StatusOr UpdateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request) override; future> UpdateVolume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr RenameVolume( @@ -209,12 +209,12 @@ class BareMetalSolutionConnectionImpl request) override; StatusOr EvictVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request) override; future> - EvictVolume(google::cloud::ExperimentalTag, + EvictVolume(ExperimentalTag, google::longrunning::Operation const& operation) override; future> ResizeVolume( @@ -222,12 +222,12 @@ class BareMetalSolutionConnectionImpl override; StatusOr ResizeVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request) override; future> ResizeVolume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListNetworks( @@ -248,12 +248,12 @@ class BareMetalSolutionConnectionImpl override; StatusOr UpdateNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& request) override; future> UpdateNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -267,13 +267,13 @@ class BareMetalSolutionConnectionImpl request) override; StatusOr RestoreVolumeSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& request) override; future> RestoreVolumeSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteVolumeSnapshot( @@ -302,12 +302,12 @@ class BareMetalSolutionConnectionImpl override; StatusOr EvictLun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::EvictLunRequest const& request) override; future> - EvictLun(google::cloud::ExperimentalTag, + EvictLun(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetNfsShare( @@ -324,12 +324,12 @@ class BareMetalSolutionConnectionImpl request) override; StatusOr UpdateNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& request) override; future> - UpdateNfsShare(google::cloud::ExperimentalTag, + UpdateNfsShare(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -338,12 +338,12 @@ class BareMetalSolutionConnectionImpl request) override; StatusOr CreateNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& request) override; future> - CreateNfsShare(google::cloud::ExperimentalTag, + CreateNfsShare(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr RenameNfsShare( @@ -356,12 +356,12 @@ class BareMetalSolutionConnectionImpl request) override; StatusOr DeleteNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& request) override; future> - DeleteNfsShare(google::cloud::ExperimentalTag, + DeleteNfsShare(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.cc b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.cc index 160f54d6b390b..f24ce36d75765 100644 --- a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.cc +++ b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.cc @@ -66,27 +66,24 @@ BareMetalSolutionTracingConnection::UpdateInstance( StatusOr BareMetalSolutionTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::UpdateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BareMetalSolutionTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::UpdateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateInstance(ExperimentalTag{}, operation)); } StatusOr @@ -110,26 +107,23 @@ BareMetalSolutionTracingConnection::ResetInstance( StatusOr BareMetalSolutionTracingConnection::ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::ResetInstanceRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::ResetInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ResetInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ResetInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BareMetalSolutionTracingConnection::ResetInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::ResetInstance"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ResetInstance(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ResetInstance(ExperimentalTag{}, operation)); } future> @@ -143,26 +137,23 @@ BareMetalSolutionTracingConnection::StartInstance( StatusOr BareMetalSolutionTracingConnection::StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::StartInstanceRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::StartInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StartInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StartInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BareMetalSolutionTracingConnection::StartInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::StartInstance"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->StartInstance(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->StartInstance(ExperimentalTag{}, operation)); } future> @@ -176,26 +167,23 @@ BareMetalSolutionTracingConnection::StopInstance( StatusOr BareMetalSolutionTracingConnection::StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::StopInstanceRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::StopInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StopInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StopInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BareMetalSolutionTracingConnection::StopInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::StopInstance"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->StopInstance(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->StopInstance(ExperimentalTag{}, operation)); } future BareMetalSolutionTracingConnection::EnableInteractiveSerialConsole( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2:: EnableInteractiveSerialConsoleRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::" "EnableInteractiveSerialConsole"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->EnableInteractiveSerialConsole( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->EnableInteractiveSerialConsole(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> BareMetalSolutionTracingConnection::EnableInteractiveSerialConsole( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::" "EnableInteractiveSerialConsole"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->EnableInteractiveSerialConsole( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->EnableInteractiveSerialConsole(ExperimentalTag{}, operation)); } future BareMetalSolutionTracingConnection::DisableInteractiveSerialConsole( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2:: DisableInteractiveSerialConsoleRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::" "DisableInteractiveSerialConsole"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DisableInteractiveSerialConsole( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DisableInteractiveSerialConsole(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> BareMetalSolutionTracingConnection::DisableInteractiveSerialConsole( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::" "DisableInteractiveSerialConsole"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DisableInteractiveSerialConsole( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->DisableInteractiveSerialConsole(ExperimentalTag{}, operation)); } future> @@ -291,26 +277,23 @@ BareMetalSolutionTracingConnection::DetachLun( StatusOr BareMetalSolutionTracingConnection::DetachLun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::DetachLunRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::DetachLun"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DetachLun(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DetachLun(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BareMetalSolutionTracingConnection::DetachLun( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::DetachLun"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DetachLun(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DetachLun(ExperimentalTag{}, operation)); } StreamRange @@ -374,26 +357,23 @@ BareMetalSolutionTracingConnection::UpdateVolume( StatusOr BareMetalSolutionTracingConnection::UpdateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::UpdateVolume"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateVolume(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateVolume(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BareMetalSolutionTracingConnection::UpdateVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::UpdateVolume"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateVolume(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateVolume(ExperimentalTag{}, operation)); } StatusOr @@ -416,26 +396,23 @@ BareMetalSolutionTracingConnection::EvictVolume( StatusOr BareMetalSolutionTracingConnection::EvictVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::EvictVolume"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->EvictVolume(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->EvictVolume(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BareMetalSolutionTracingConnection::EvictVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::EvictVolume"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->EvictVolume(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->EvictVolume(ExperimentalTag{}, operation)); } future> @@ -449,26 +426,23 @@ BareMetalSolutionTracingConnection::ResizeVolume( StatusOr BareMetalSolutionTracingConnection::ResizeVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::ResizeVolume"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ResizeVolume(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ResizeVolume(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BareMetalSolutionTracingConnection::ResizeVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::ResizeVolume"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ResizeVolume(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ResizeVolume(ExperimentalTag{}, operation)); } StreamRange @@ -513,26 +487,23 @@ BareMetalSolutionTracingConnection::UpdateNetwork( StatusOr BareMetalSolutionTracingConnection::UpdateNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::UpdateNetwork"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateNetwork(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateNetwork(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BareMetalSolutionTracingConnection::UpdateNetwork( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::UpdateNetwork"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateNetwork(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateNetwork(ExperimentalTag{}, operation)); } StatusOr @@ -560,29 +531,27 @@ BareMetalSolutionTracingConnection::RestoreVolumeSnapshot( StatusOr BareMetalSolutionTracingConnection::RestoreVolumeSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::" "RestoreVolumeSnapshot"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RestoreVolumeSnapshot( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->RestoreVolumeSnapshot(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BareMetalSolutionTracingConnection::RestoreVolumeSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::" "RestoreVolumeSnapshot"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RestoreVolumeSnapshot( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RestoreVolumeSnapshot( + ExperimentalTag{}, operation)); } Status BareMetalSolutionTracingConnection::DeleteVolumeSnapshot( @@ -649,26 +618,23 @@ BareMetalSolutionTracingConnection::EvictLun( StatusOr BareMetalSolutionTracingConnection::EvictLun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::EvictLunRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::EvictLun"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->EvictLun(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->EvictLun(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BareMetalSolutionTracingConnection::EvictLun( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::EvictLun"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->EvictLun(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->EvictLun(ExperimentalTag{}, operation)); } StatusOr @@ -704,27 +670,24 @@ BareMetalSolutionTracingConnection::UpdateNfsShare( StatusOr BareMetalSolutionTracingConnection::UpdateNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::UpdateNfsShare"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateNfsShare(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateNfsShare(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BareMetalSolutionTracingConnection::UpdateNfsShare( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::UpdateNfsShare"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateNfsShare(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateNfsShare(ExperimentalTag{}, operation)); } future> @@ -739,27 +702,24 @@ BareMetalSolutionTracingConnection::CreateNfsShare( StatusOr BareMetalSolutionTracingConnection::CreateNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::CreateNfsShare"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateNfsShare(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateNfsShare(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BareMetalSolutionTracingConnection::CreateNfsShare( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::CreateNfsShare"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateNfsShare(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateNfsShare(ExperimentalTag{}, operation)); } StatusOr @@ -784,27 +744,24 @@ BareMetalSolutionTracingConnection::DeleteNfsShare( StatusOr BareMetalSolutionTracingConnection::DeleteNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& request) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::DeleteNfsShare"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteNfsShare(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteNfsShare(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BareMetalSolutionTracingConnection::DeleteNfsShare( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "baremetalsolution_v2::BareMetalSolutionConnection::DeleteNfsShare"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteNfsShare(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteNfsShare(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.h b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.h index 510c9018eb997..01b8eb23c6f81 100644 --- a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.h +++ b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_tracing_connection.h @@ -54,12 +54,12 @@ class BareMetalSolutionTracingConnection request) override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& request) override; future> - UpdateInstance(google::cloud::ExperimentalTag, + UpdateInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr RenameInstance( @@ -72,12 +72,12 @@ class BareMetalSolutionTracingConnection override; StatusOr ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::ResetInstanceRequest const& request) override; future> - ResetInstance(google::cloud::ExperimentalTag, + ResetInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -86,12 +86,12 @@ class BareMetalSolutionTracingConnection override; StatusOr StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::StartInstanceRequest const& request) override; future> - StartInstance(google::cloud::ExperimentalTag, + StartInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -99,12 +99,12 @@ class BareMetalSolutionTracingConnection request) override; StatusOr StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::StopInstanceRequest const& request) override; future> - StopInstance(google::cloud::ExperimentalTag, + StopInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future EnableInteractiveSerialConsole( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2:: EnableInteractiveSerialConsoleRequest const& request) override; future> EnableInteractiveSerialConsole( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future DisableInteractiveSerialConsole( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2:: DisableInteractiveSerialConsoleRequest const& request) override; future> DisableInteractiveSerialConsole( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DetachLun( @@ -146,12 +146,12 @@ class BareMetalSolutionTracingConnection override; StatusOr DetachLun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::DetachLunRequest const& request) override; future> DetachLun( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListSSHKeys( @@ -179,12 +179,12 @@ class BareMetalSolutionTracingConnection override; StatusOr UpdateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request) override; future> UpdateVolume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr RenameVolume( @@ -196,12 +196,12 @@ class BareMetalSolutionTracingConnection request) override; StatusOr EvictVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request) override; future> - EvictVolume(google::cloud::ExperimentalTag, + EvictVolume(ExperimentalTag, google::longrunning::Operation const& operation) override; future> ResizeVolume( @@ -209,12 +209,12 @@ class BareMetalSolutionTracingConnection override; StatusOr ResizeVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request) override; future> ResizeVolume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListNetworks( @@ -235,12 +235,12 @@ class BareMetalSolutionTracingConnection override; StatusOr UpdateNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& request) override; future> UpdateNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -254,13 +254,13 @@ class BareMetalSolutionTracingConnection request) override; StatusOr RestoreVolumeSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& request) override; future> RestoreVolumeSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteVolumeSnapshot( @@ -289,12 +289,12 @@ class BareMetalSolutionTracingConnection override; StatusOr EvictLun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::EvictLunRequest const& request) override; future> - EvictLun(google::cloud::ExperimentalTag, + EvictLun(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetNfsShare( @@ -311,12 +311,12 @@ class BareMetalSolutionTracingConnection request) override; StatusOr UpdateNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& request) override; future> - UpdateNfsShare(google::cloud::ExperimentalTag, + UpdateNfsShare(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -325,12 +325,12 @@ class BareMetalSolutionTracingConnection request) override; StatusOr CreateNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& request) override; future> - CreateNfsShare(google::cloud::ExperimentalTag, + CreateNfsShare(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr RenameNfsShare( @@ -343,12 +343,12 @@ class BareMetalSolutionTracingConnection request) override; StatusOr DeleteNfsShare( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& request) override; future> - DeleteNfsShare(google::cloud::ExperimentalTag, + DeleteNfsShare(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/baremetalsolution/v2/mocks/mock_bare_metal_solution_connection.h b/google/cloud/baremetalsolution/v2/mocks/mock_bare_metal_solution_connection.h index 03ec100ef4de9..fe88600a36c11 100644 --- a/google/cloud/baremetalsolution/v2/mocks/mock_bare_metal_solution_connection.h +++ b/google/cloud/baremetalsolution/v2/mocks/mock_bare_metal_solution_connection.h @@ -67,14 +67,14 @@ class MockBareMetalSolutionConnection MOCK_METHOD( StatusOr, UpdateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& request), (override)); MOCK_METHOD(future>, UpdateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -92,7 +92,7 @@ class MockBareMetalSolutionConnection (override)); MOCK_METHOD(StatusOr, ResetInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::ResetInstanceRequest const& request), (override)); @@ -100,7 +100,7 @@ class MockBareMetalSolutionConnection MOCK_METHOD(future>, ResetInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -112,7 +112,7 @@ class MockBareMetalSolutionConnection (override)); MOCK_METHOD(StatusOr, StartInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::StartInstanceRequest const& request), (override)); @@ -120,7 +120,7 @@ class MockBareMetalSolutionConnection MOCK_METHOD(future>, StartInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -133,7 +133,7 @@ class MockBareMetalSolutionConnection (override)); MOCK_METHOD(StatusOr, StopInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::StopInstanceRequest const& request), (override)); @@ -142,8 +142,7 @@ class MockBareMetalSolutionConnection future< StatusOr>, StopInstance, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future, EnableInteractiveSerialConsole, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2:: EnableInteractiveSerialConsoleRequest const& request), (override)); @@ -163,7 +162,7 @@ class MockBareMetalSolutionConnection MOCK_METHOD(future>, EnableInteractiveSerialConsole, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -176,7 +175,7 @@ class MockBareMetalSolutionConnection MOCK_METHOD(StatusOr, DisableInteractiveSerialConsole, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2:: DisableInteractiveSerialConsoleRequest const& request), (override)); @@ -184,7 +183,7 @@ class MockBareMetalSolutionConnection MOCK_METHOD(future>, DisableInteractiveSerialConsole, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -196,13 +195,13 @@ class MockBareMetalSolutionConnection MOCK_METHOD( StatusOr, DetachLun, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::DetachLunRequest const& request), (override)); MOCK_METHOD(future>, DetachLun, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -239,14 +238,14 @@ class MockBareMetalSolutionConnection (override)); MOCK_METHOD(StatusOr, UpdateVolume, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request), (override)); MOCK_METHOD(future>, UpdateVolume, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -264,15 +263,14 @@ class MockBareMetalSolutionConnection MOCK_METHOD( StatusOr, EvictVolume, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request), (override)); MOCK_METHOD( future>, EvictVolume, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future>, @@ -282,14 +280,14 @@ class MockBareMetalSolutionConnection (override)); MOCK_METHOD(StatusOr, ResizeVolume, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request), (override)); MOCK_METHOD(future>, ResizeVolume, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -318,14 +316,14 @@ class MockBareMetalSolutionConnection (override)); MOCK_METHOD(StatusOr, UpdateNetwork, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& request), (override)); MOCK_METHOD(future>, UpdateNetwork, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -345,7 +343,7 @@ class MockBareMetalSolutionConnection MOCK_METHOD( StatusOr, RestoreVolumeSnapshot, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& request), (override)); @@ -353,8 +351,7 @@ class MockBareMetalSolutionConnection MOCK_METHOD( future>, RestoreVolumeSnapshot, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -395,15 +392,14 @@ class MockBareMetalSolutionConnection MOCK_METHOD( StatusOr, EvictLun, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::EvictLunRequest const& request), (override)); MOCK_METHOD( future>, EvictLun, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -426,14 +422,14 @@ class MockBareMetalSolutionConnection MOCK_METHOD( StatusOr, UpdateNfsShare, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& request), (override)); MOCK_METHOD(future>, UpdateNfsShare, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -446,14 +442,14 @@ class MockBareMetalSolutionConnection MOCK_METHOD( StatusOr, CreateNfsShare, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& request), (override)); MOCK_METHOD(future>, CreateNfsShare, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -472,7 +468,7 @@ class MockBareMetalSolutionConnection MOCK_METHOD( StatusOr, DeleteNfsShare, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& request), (override)); @@ -480,8 +476,7 @@ class MockBareMetalSolutionConnection MOCK_METHOD( future>, DeleteNfsShare, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/batch/v1/internal/batch_connection_impl.cc b/google/cloud/batch/v1/internal/batch_connection_impl.cc index cf7a517bfafc0..2b2accd5e1f31 100644 --- a/google/cloud/batch/v1/internal/batch_connection_impl.cc +++ b/google/cloud/batch/v1/internal/batch_connection_impl.cc @@ -127,7 +127,7 @@ BatchServiceConnectionImpl::DeleteJob( } StatusOr BatchServiceConnectionImpl::DeleteJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::batch::v1::DeleteJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -142,8 +142,7 @@ StatusOr BatchServiceConnectionImpl::DeleteJob( future> BatchServiceConnectionImpl::DeleteJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/batch/v1/internal/batch_connection_impl.h b/google/cloud/batch/v1/internal/batch_connection_impl.h index 43463bdfe8484..3c6b8477e3d66 100644 --- a/google/cloud/batch/v1/internal/batch_connection_impl.h +++ b/google/cloud/batch/v1/internal/batch_connection_impl.h @@ -61,11 +61,11 @@ class BatchServiceConnectionImpl : public batch_v1::BatchServiceConnection { google::cloud::batch::v1::DeleteJobRequest const& request) override; StatusOr DeleteJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::batch::v1::DeleteJobRequest const& request) override; future> DeleteJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListJobs( diff --git a/google/cloud/batch/v1/internal/batch_tracing_connection.cc b/google/cloud/batch/v1/internal/batch_tracing_connection.cc index c3498453bc8da..5891ed38e428d 100644 --- a/google/cloud/batch/v1/internal/batch_tracing_connection.cc +++ b/google/cloud/batch/v1/internal/batch_tracing_connection.cc @@ -58,24 +58,21 @@ BatchServiceTracingConnection::DeleteJob( StatusOr BatchServiceTracingConnection::DeleteJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::batch::v1::DeleteJobRequest const& request) { auto span = internal::MakeSpan("batch_v1::BatchServiceConnection::DeleteJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BatchServiceTracingConnection::DeleteJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("batch_v1::BatchServiceConnection::DeleteJob"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteJob(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteJob(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/batch/v1/internal/batch_tracing_connection.h b/google/cloud/batch/v1/internal/batch_tracing_connection.h index 19c77c4ca515a..a8ea113e93e45 100644 --- a/google/cloud/batch/v1/internal/batch_tracing_connection.h +++ b/google/cloud/batch/v1/internal/batch_tracing_connection.h @@ -49,11 +49,11 @@ class BatchServiceTracingConnection : public batch_v1::BatchServiceConnection { google::cloud::batch::v1::DeleteJobRequest const& request) override; StatusOr DeleteJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::batch::v1::DeleteJobRequest const& request) override; future> DeleteJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListJobs( diff --git a/google/cloud/batch/v1/mocks/mock_batch_connection.h b/google/cloud/batch/v1/mocks/mock_batch_connection.h index a1a5e7c279944..94530d976187e 100644 --- a/google/cloud/batch/v1/mocks/mock_batch_connection.h +++ b/google/cloud/batch/v1/mocks/mock_batch_connection.h @@ -60,13 +60,13 @@ class MockBatchServiceConnection : public batch_v1::BatchServiceConnection { (override)); MOCK_METHOD(StatusOr, DeleteJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::batch::v1::DeleteJobRequest const& request), (override)); MOCK_METHOD(future>, DeleteJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.cc b/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.cc index 020393917b73b..4214f876d8b6e 100644 --- a/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.cc +++ b/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.cc @@ -174,7 +174,7 @@ AppConnectionsServiceConnectionImpl::CreateAppConnection( StatusOr AppConnectionsServiceConnectionImpl::CreateAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appconnections::v1:: CreateAppConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -191,8 +191,7 @@ AppConnectionsServiceConnectionImpl::CreateAppConnection( future> AppConnectionsServiceConnectionImpl::CreateAppConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AppConnectionsServiceConnectionImpl::UpdateAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appconnections::v1:: UpdateAppConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -287,8 +286,7 @@ AppConnectionsServiceConnectionImpl::UpdateAppConnection( future> AppConnectionsServiceConnectionImpl::UpdateAppConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AppConnectionsServiceConnectionImpl::DeleteAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appconnections::v1:: DeleteAppConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -387,8 +385,7 @@ AppConnectionsServiceConnectionImpl::DeleteAppConnection( future> AppConnectionsServiceConnectionImpl::DeleteAppConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appconnections::v1:: CreateAppConnectionRequest const& request) override; future> - CreateAppConnection(google::cloud::ExperimentalTag, + CreateAppConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -82,12 +82,12 @@ class AppConnectionsServiceConnectionImpl UpdateAppConnectionRequest const& request) override; StatusOr UpdateAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appconnections::v1:: UpdateAppConnectionRequest const& request) override; future> - UpdateAppConnection(google::cloud::ExperimentalTag, + UpdateAppConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; future DeleteAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appconnections::v1:: DeleteAppConnectionRequest const& request) override; future> - DeleteAppConnection(google::cloud::ExperimentalTag, + DeleteAppConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange AppConnectionsServiceTracingConnection::CreateAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: CreateAppConnectionRequest const& request) { auto span = internal::MakeSpan( @@ -83,21 +83,19 @@ AppConnectionsServiceTracingConnection::CreateAppConnection( "CreateAppConnection"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateAppConnection(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateAppConnection(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppConnectionsServiceTracingConnection::CreateAppConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "beyondcorp_appconnections_v1::AppConnectionsServiceConnection::" "CreateAppConnection"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateAppConnection(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateAppConnection( + ExperimentalTag{}, operation)); } future> @@ -114,7 +112,7 @@ AppConnectionsServiceTracingConnection::UpdateAppConnection( StatusOr AppConnectionsServiceTracingConnection::UpdateAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: UpdateAppConnectionRequest const& request) { auto span = internal::MakeSpan( @@ -122,21 +120,19 @@ AppConnectionsServiceTracingConnection::UpdateAppConnection( "UpdateAppConnection"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateAppConnection(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateAppConnection(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppConnectionsServiceTracingConnection::UpdateAppConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "beyondcorp_appconnections_v1::AppConnectionsServiceConnection::" "UpdateAppConnection"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateAppConnection(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateAppConnection( + ExperimentalTag{}, operation)); } future AppConnectionsServiceTracingConnection::DeleteAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: DeleteAppConnectionRequest const& request) { auto span = internal::MakeSpan( @@ -162,22 +158,20 @@ AppConnectionsServiceTracingConnection::DeleteAppConnection( "DeleteAppConnection"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAppConnection(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteAppConnection(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppConnectionsServiceTracingConnection::DeleteAppConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "beyondcorp_appconnections_v1::AppConnectionsServiceConnection::" "DeleteAppConnection"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteAppConnection(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteAppConnection( + ExperimentalTag{}, operation)); } StreamRange CreateAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: CreateAppConnectionRequest const& request) override; future> - CreateAppConnection(google::cloud::ExperimentalTag, + CreateAppConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -70,12 +70,12 @@ class AppConnectionsServiceTracingConnection UpdateAppConnectionRequest const& request) override; StatusOr UpdateAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: UpdateAppConnectionRequest const& request) override; future> - UpdateAppConnection(google::cloud::ExperimentalTag, + UpdateAppConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; future DeleteAppConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: DeleteAppConnectionRequest const& request) override; future> - DeleteAppConnection(google::cloud::ExperimentalTag, + DeleteAppConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange, CreateAppConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: CreateAppConnectionRequest const& request), (override)); @@ -81,8 +81,7 @@ class MockAppConnectionsServiceConnection future>, CreateAppConnection, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -94,7 +93,7 @@ class MockAppConnectionsServiceConnection (override)); MOCK_METHOD(StatusOr, UpdateAppConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: UpdateAppConnectionRequest const& request), (override)); @@ -103,8 +102,7 @@ class MockAppConnectionsServiceConnection future>, UpdateAppConnection, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future, DeleteAppConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: DeleteAppConnectionRequest const& request), (override)); @@ -123,7 +121,7 @@ class MockAppConnectionsServiceConnection MOCK_METHOD(future>, DeleteAppConnection, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.cc b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.cc index 9184efb7712bb..db035d8ac1ad4 100644 --- a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.cc +++ b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.cc @@ -171,7 +171,7 @@ AppConnectorsServiceConnectionImpl::CreateAppConnector( StatusOr AppConnectorsServiceConnectionImpl::CreateAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appconnectors::v1:: CreateAppConnectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -188,8 +188,7 @@ AppConnectorsServiceConnectionImpl::CreateAppConnector( future> AppConnectorsServiceConnectionImpl::CreateAppConnector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AppConnectorsServiceConnectionImpl::UpdateAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appconnectors::v1:: UpdateAppConnectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -284,8 +283,7 @@ AppConnectorsServiceConnectionImpl::UpdateAppConnector( future> AppConnectorsServiceConnectionImpl::UpdateAppConnector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AppConnectorsServiceConnectionImpl::DeleteAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appconnectors::v1:: DeleteAppConnectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -384,8 +382,7 @@ AppConnectorsServiceConnectionImpl::DeleteAppConnector( future> AppConnectorsServiceConnectionImpl::DeleteAppConnector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AppConnectorsServiceConnectionImpl::ReportStatus( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -482,8 +479,7 @@ AppConnectorsServiceConnectionImpl::ReportStatus( future> AppConnectorsServiceConnectionImpl::ReportStatus( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appconnectors::v1:: CreateAppConnectorRequest const& request) override; future> - CreateAppConnector(google::cloud::ExperimentalTag, + CreateAppConnector(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -81,12 +81,12 @@ class AppConnectorsServiceConnectionImpl UpdateAppConnectorRequest const& request) override; StatusOr UpdateAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appconnectors::v1:: UpdateAppConnectorRequest const& request) override; future> - UpdateAppConnector(google::cloud::ExperimentalTag, + UpdateAppConnector(ExperimentalTag, google::longrunning::Operation const& operation) override; future DeleteAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appconnectors::v1:: DeleteAppConnectorRequest const& request) override; future> - DeleteAppConnector(google::cloud::ExperimentalTag, + DeleteAppConnector(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -110,12 +110,12 @@ class AppConnectorsServiceConnectionImpl request) override; StatusOr ReportStatus( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& request) override; future> - ReportStatus(google::cloud::ExperimentalTag, + ReportStatus(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.cc b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.cc index ef3b52d3de9b6..38ac4f64cf33e 100644 --- a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.cc +++ b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.cc @@ -73,7 +73,7 @@ AppConnectorsServiceTracingConnection::CreateAppConnector( StatusOr AppConnectorsServiceTracingConnection::CreateAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: CreateAppConnectorRequest const& request) { auto span = internal::MakeSpan( @@ -81,21 +81,19 @@ AppConnectorsServiceTracingConnection::CreateAppConnector( "CreateAppConnector"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateAppConnector(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateAppConnector(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppConnectorsServiceTracingConnection::CreateAppConnector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "beyondcorp_appconnectors_v1::AppConnectorsServiceConnection::" "CreateAppConnector"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateAppConnector(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateAppConnector( + ExperimentalTag{}, operation)); } future> @@ -112,7 +110,7 @@ AppConnectorsServiceTracingConnection::UpdateAppConnector( StatusOr AppConnectorsServiceTracingConnection::UpdateAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: UpdateAppConnectorRequest const& request) { auto span = internal::MakeSpan( @@ -120,21 +118,19 @@ AppConnectorsServiceTracingConnection::UpdateAppConnector( "UpdateAppConnector"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateAppConnector(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateAppConnector(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppConnectorsServiceTracingConnection::UpdateAppConnector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "beyondcorp_appconnectors_v1::AppConnectorsServiceConnection::" "UpdateAppConnector"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateAppConnector(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateAppConnector( + ExperimentalTag{}, operation)); } future AppConnectorsServiceTracingConnection::DeleteAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: DeleteAppConnectorRequest const& request) { auto span = internal::MakeSpan( @@ -160,22 +156,20 @@ AppConnectorsServiceTracingConnection::DeleteAppConnector( "DeleteAppConnector"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAppConnector(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteAppConnector(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppConnectorsServiceTracingConnection::DeleteAppConnector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "beyondcorp_appconnectors_v1::AppConnectorsServiceConnection::" "DeleteAppConnector"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteAppConnector(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteAppConnector( + ExperimentalTag{}, operation)); } future> @@ -191,7 +185,7 @@ AppConnectorsServiceTracingConnection::ReportStatus( StatusOr AppConnectorsServiceTracingConnection::ReportStatus( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& request) { auto span = internal::MakeSpan( @@ -199,21 +193,18 @@ AppConnectorsServiceTracingConnection::ReportStatus( "ReportStatus"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ReportStatus(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ReportStatus(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppConnectorsServiceTracingConnection::ReportStatus( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "beyondcorp_appconnectors_v1::AppConnectorsServiceConnection::" "ReportStatus"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ReportStatus(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ReportStatus(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.h b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.h index 0b011bfc52210..7b36d98a163c5 100644 --- a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.h +++ b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_tracing_connection.h @@ -56,12 +56,12 @@ class AppConnectorsServiceTracingConnection CreateAppConnectorRequest const& request) override; StatusOr CreateAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: CreateAppConnectorRequest const& request) override; future> - CreateAppConnector(google::cloud::ExperimentalTag, + CreateAppConnector(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -69,12 +69,12 @@ class AppConnectorsServiceTracingConnection UpdateAppConnectorRequest const& request) override; StatusOr UpdateAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: UpdateAppConnectorRequest const& request) override; future> - UpdateAppConnector(google::cloud::ExperimentalTag, + UpdateAppConnector(ExperimentalTag, google::longrunning::Operation const& operation) override; future DeleteAppConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: DeleteAppConnectorRequest const& request) override; future> - DeleteAppConnector(google::cloud::ExperimentalTag, + DeleteAppConnector(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -98,12 +98,12 @@ class AppConnectorsServiceTracingConnection request) override; StatusOr ReportStatus( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& request) override; future> - ReportStatus(google::cloud::ExperimentalTag, + ReportStatus(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/beyondcorp/appconnectors/v1/mocks/mock_app_connectors_connection.h b/google/cloud/beyondcorp/appconnectors/v1/mocks/mock_app_connectors_connection.h index 45b33fdb87f68..55dd0de75d8ad 100644 --- a/google/cloud/beyondcorp/appconnectors/v1/mocks/mock_app_connectors_connection.h +++ b/google/cloud/beyondcorp/appconnectors/v1/mocks/mock_app_connectors_connection.h @@ -70,7 +70,7 @@ class MockAppConnectorsServiceConnection (override)); MOCK_METHOD(StatusOr, CreateAppConnector, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: CreateAppConnectorRequest const& request), (override)); @@ -79,8 +79,7 @@ class MockAppConnectorsServiceConnection future< StatusOr>, CreateAppConnector, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -92,7 +91,7 @@ class MockAppConnectorsServiceConnection (override)); MOCK_METHOD(StatusOr, UpdateAppConnector, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: UpdateAppConnectorRequest const& request), (override)); @@ -101,8 +100,7 @@ class MockAppConnectorsServiceConnection future< StatusOr>, UpdateAppConnector, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future, DeleteAppConnector, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: DeleteAppConnectorRequest const& request), (override)); @@ -121,7 +119,7 @@ class MockAppConnectorsServiceConnection MOCK_METHOD(future>, DeleteAppConnector, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -135,7 +133,7 @@ class MockAppConnectorsServiceConnection MOCK_METHOD( StatusOr, ReportStatus, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& request), (override)); @@ -144,8 +142,7 @@ class MockAppConnectorsServiceConnection future< StatusOr>, ReportStatus, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.cc b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.cc index 86f257830dca8..371c1ebfd3ac9 100644 --- a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.cc +++ b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.cc @@ -168,7 +168,7 @@ AppGatewaysServiceConnectionImpl::CreateAppGateway( StatusOr AppGatewaysServiceConnectionImpl::CreateAppGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appgateways::v1::CreateAppGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -185,8 +185,7 @@ AppGatewaysServiceConnectionImpl::CreateAppGateway( future> AppGatewaysServiceConnectionImpl::CreateAppGateway( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AppGatewaysServiceConnectionImpl::DeleteAppGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appgateways::v1::DeleteAppGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -284,8 +283,7 @@ AppGatewaysServiceConnectionImpl::DeleteAppGateway( future> AppGatewaysServiceConnectionImpl::DeleteAppGateway( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateAppGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appgateways::v1::CreateAppGatewayRequest const& request) override; future> - CreateAppGateway(google::cloud::ExperimentalTag, + CreateAppGateway(ExperimentalTag, google::longrunning::Operation const& operation) override; future DeleteAppGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::beyondcorp::appgateways::v1::DeleteAppGatewayRequest const& request) override; future> - DeleteAppGateway(google::cloud::ExperimentalTag, + DeleteAppGateway(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.cc b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.cc index 42c58e5adc7d0..8a9f1449ac957 100644 --- a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.cc +++ b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.cc @@ -71,7 +71,7 @@ AppGatewaysServiceTracingConnection::CreateAppGateway( StatusOr AppGatewaysServiceTracingConnection::CreateAppGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appgateways::v1::CreateAppGatewayRequest const& request) { auto span = internal::MakeSpan( @@ -79,21 +79,19 @@ AppGatewaysServiceTracingConnection::CreateAppGateway( "CreateAppGateway"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateAppGateway(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateAppGateway(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppGatewaysServiceTracingConnection::CreateAppGateway( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "beyondcorp_appgateways_v1::AppGatewaysServiceConnection::" "CreateAppGateway"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateAppGateway(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateAppGateway(ExperimentalTag{}, operation)); } future AppGatewaysServiceTracingConnection::DeleteAppGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appgateways::v1::DeleteAppGatewayRequest const& request) { auto span = internal::MakeSpan( @@ -118,22 +116,20 @@ AppGatewaysServiceTracingConnection::DeleteAppGateway( "DeleteAppGateway"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAppGateway(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteAppGateway(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AppGatewaysServiceTracingConnection::DeleteAppGateway( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "beyondcorp_appgateways_v1::AppGatewaysServiceConnection::" "DeleteAppGateway"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteAppGateway(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteAppGateway(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.h b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.h index ecf904cab344e..a1f7f9c50d410 100644 --- a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.h +++ b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_tracing_connection.h @@ -57,12 +57,12 @@ class AppGatewaysServiceTracingConnection request) override; StatusOr CreateAppGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appgateways::v1::CreateAppGatewayRequest const& request) override; future> - CreateAppGateway(google::cloud::ExperimentalTag, + CreateAppGateway(ExperimentalTag, google::longrunning::Operation const& operation) override; future DeleteAppGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appgateways::v1::DeleteAppGatewayRequest const& request) override; future> - DeleteAppGateway(google::cloud::ExperimentalTag, + DeleteAppGateway(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/beyondcorp/appgateways/v1/mocks/mock_app_gateways_connection.h b/google/cloud/beyondcorp/appgateways/v1/mocks/mock_app_gateways_connection.h index 0ea4768a742bd..cb5f5f5085ce8 100644 --- a/google/cloud/beyondcorp/appgateways/v1/mocks/mock_app_gateways_connection.h +++ b/google/cloud/beyondcorp/appgateways/v1/mocks/mock_app_gateways_connection.h @@ -69,7 +69,7 @@ class MockAppGatewaysServiceConnection (override)); MOCK_METHOD(StatusOr, CreateAppGateway, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appgateways::v1:: CreateAppGatewayRequest const& request), (override)); @@ -77,8 +77,7 @@ class MockAppGatewaysServiceConnection MOCK_METHOD( future>, CreateAppGateway, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future, DeleteAppGateway, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appgateways::v1:: DeleteAppGatewayRequest const& request), (override)); @@ -97,7 +96,7 @@ class MockAppGatewaysServiceConnection MOCK_METHOD(future>, DeleteAppGateway, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.cc b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.cc index cccfd56f1c0f3..babf4aaca5504 100644 --- a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.cc +++ b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.cc @@ -373,7 +373,7 @@ AnalyticsHubServiceConnectionImpl::SubscribeDataExchange( StatusOr AnalyticsHubServiceConnectionImpl::SubscribeDataExchange( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::bigquery::analyticshub::v1:: SubscribeDataExchangeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -391,8 +391,7 @@ AnalyticsHubServiceConnectionImpl::SubscribeDataExchange( future> AnalyticsHubServiceConnectionImpl::SubscribeDataExchange( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AnalyticsHubServiceConnectionImpl::RefreshSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::bigquery::analyticshub::v1::RefreshSubscriptionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -491,8 +490,7 @@ AnalyticsHubServiceConnectionImpl::RefreshSubscription( future> AnalyticsHubServiceConnectionImpl::RefreshSubscription( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AnalyticsHubServiceConnectionImpl::DeleteSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::bigquery::analyticshub::v1::DeleteSubscriptionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -697,8 +695,7 @@ AnalyticsHubServiceConnectionImpl::DeleteSubscription( future> AnalyticsHubServiceConnectionImpl::DeleteSubscription( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SubscribeDataExchange( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::bigquery::analyticshub::v1:: SubscribeDataExchangeRequest const& request) override; future> SubscribeDataExchange( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future RefreshSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::bigquery::analyticshub::v1:: RefreshSubscriptionRequest const& request) override; future> - RefreshSubscription(google::cloud::ExperimentalTag, + RefreshSubscription(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -163,12 +163,12 @@ class AnalyticsHubServiceConnectionImpl DeleteSubscriptionRequest const& request) override; StatusOr DeleteSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::bigquery::analyticshub::v1:: DeleteSubscriptionRequest const& request) override; future> - DeleteSubscription(google::cloud::ExperimentalTag, + DeleteSubscription(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicy( diff --git a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.cc b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.cc index fdb2a0e49fa28..67a2955a4df0d 100644 --- a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.cc +++ b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.cc @@ -182,30 +182,28 @@ AnalyticsHubServiceTracingConnection::SubscribeDataExchange( StatusOr AnalyticsHubServiceTracingConnection::SubscribeDataExchange( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: SubscribeDataExchangeRequest const& request) { auto span = internal::MakeSpan( "bigquery_analyticshub_v1::AnalyticsHubServiceConnection::" "SubscribeDataExchange"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SubscribeDataExchange( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->SubscribeDataExchange(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AnalyticsHubServiceTracingConnection::SubscribeDataExchange( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "bigquery_analyticshub_v1::AnalyticsHubServiceConnection::" "SubscribeDataExchange"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SubscribeDataExchange( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SubscribeDataExchange( + ExperimentalTag{}, operation)); } future AnalyticsHubServiceTracingConnection::RefreshSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1::RefreshSubscriptionRequest const& request) { auto span = internal::MakeSpan( @@ -231,22 +229,20 @@ AnalyticsHubServiceTracingConnection::RefreshSubscription( "RefreshSubscription"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RefreshSubscription(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->RefreshSubscription(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AnalyticsHubServiceTracingConnection::RefreshSubscription( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "bigquery_analyticshub_v1::AnalyticsHubServiceConnection::" "RefreshSubscription"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RefreshSubscription(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RefreshSubscription( + ExperimentalTag{}, operation)); } StatusOr @@ -313,7 +309,7 @@ AnalyticsHubServiceTracingConnection::DeleteSubscription( StatusOr AnalyticsHubServiceTracingConnection::DeleteSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1::DeleteSubscriptionRequest const& request) { auto span = internal::MakeSpan( @@ -321,21 +317,19 @@ AnalyticsHubServiceTracingConnection::DeleteSubscription( "DeleteSubscription"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSubscription(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteSubscription(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AnalyticsHubServiceTracingConnection::DeleteSubscription( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "bigquery_analyticshub_v1::AnalyticsHubServiceConnection::" "DeleteSubscription"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteSubscription(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteSubscription( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.h b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.h index 91ce60e5c86ca..691d195695d66 100644 --- a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.h +++ b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_tracing_connection.h @@ -100,14 +100,14 @@ class AnalyticsHubServiceTracingConnection SubscribeDataExchangeRequest const& request) override; StatusOr SubscribeDataExchange( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: SubscribeDataExchangeRequest const& request) override; future> SubscribeDataExchange( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future RefreshSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: RefreshSubscriptionRequest const& request) override; future> - RefreshSubscription(google::cloud::ExperimentalTag, + RefreshSubscription(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -150,12 +150,12 @@ class AnalyticsHubServiceTracingConnection DeleteSubscriptionRequest const& request) override; StatusOr DeleteSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: DeleteSubscriptionRequest const& request) override; future> - DeleteSubscription(google::cloud::ExperimentalTag, + DeleteSubscription(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicy( diff --git a/google/cloud/bigquery/analyticshub/v1/mocks/mock_analytics_hub_connection.h b/google/cloud/bigquery/analyticshub/v1/mocks/mock_analytics_hub_connection.h index 50c94dd1de199..568d6deebd3e5 100644 --- a/google/cloud/bigquery/analyticshub/v1/mocks/mock_analytics_hub_connection.h +++ b/google/cloud/bigquery/analyticshub/v1/mocks/mock_analytics_hub_connection.h @@ -133,7 +133,7 @@ class MockAnalyticsHubServiceConnection (override)); MOCK_METHOD(StatusOr, SubscribeDataExchange, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: SubscribeDataExchangeRequest const& request), (override)); @@ -141,7 +141,7 @@ class MockAnalyticsHubServiceConnection MOCK_METHOD(future>, SubscribeDataExchange, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -153,7 +153,7 @@ class MockAnalyticsHubServiceConnection (override)); MOCK_METHOD(StatusOr, RefreshSubscription, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: RefreshSubscriptionRequest const& request), (override)); @@ -161,7 +161,7 @@ class MockAnalyticsHubServiceConnection MOCK_METHOD(future>, RefreshSubscription, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -202,7 +202,7 @@ class MockAnalyticsHubServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteSubscription, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: DeleteSubscriptionRequest const& request), (override)); @@ -211,8 +211,7 @@ class MockAnalyticsHubServiceConnection future>, DeleteSubscription, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, GetIamPolicy, diff --git a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.cc b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.cc index bb7f83c16df5b..b9bd60134f3dd 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.cc +++ b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.cc @@ -112,7 +112,7 @@ BigtableInstanceAdminConnectionImpl::CreateInstance( StatusOr BigtableInstanceAdminConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -128,8 +128,7 @@ BigtableInstanceAdminConnectionImpl::CreateInstance( future> BigtableInstanceAdminConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BigtableInstanceAdminConnectionImpl::PartialUpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -264,8 +263,7 @@ BigtableInstanceAdminConnectionImpl::PartialUpdateInstance( future> BigtableInstanceAdminConnectionImpl::PartialUpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BigtableInstanceAdminConnectionImpl::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::CreateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -370,8 +368,7 @@ BigtableInstanceAdminConnectionImpl::CreateCluster( future> BigtableInstanceAdminConnectionImpl::CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -473,7 +470,7 @@ BigtableInstanceAdminConnectionImpl::UpdateCluster( StatusOr BigtableInstanceAdminConnectionImpl::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::Cluster const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -488,8 +485,7 @@ BigtableInstanceAdminConnectionImpl::UpdateCluster( future> BigtableInstanceAdminConnectionImpl::UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -565,7 +561,7 @@ BigtableInstanceAdminConnectionImpl::PartialUpdateCluster( StatusOr BigtableInstanceAdminConnectionImpl::PartialUpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::PartialUpdateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -581,8 +577,7 @@ BigtableInstanceAdminConnectionImpl::PartialUpdateCluster( future> BigtableInstanceAdminConnectionImpl::PartialUpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BigtableInstanceAdminConnectionImpl::UpdateAppProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::UpdateAppProfileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -751,8 +746,7 @@ BigtableInstanceAdminConnectionImpl::UpdateAppProfile( future> BigtableInstanceAdminConnectionImpl::UpdateAppProfile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::CreateInstanceRequest const& request) override; future> CreateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetInstance( @@ -80,12 +80,12 @@ class BigtableInstanceAdminConnectionImpl override; StatusOr PartialUpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request) override; future> PartialUpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteInstance( @@ -97,12 +97,12 @@ class BigtableInstanceAdminConnectionImpl override; StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::CreateClusterRequest const& request) override; future> CreateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetCluster( @@ -115,11 +115,11 @@ class BigtableInstanceAdminConnectionImpl google::bigtable::admin::v2::Cluster const& request) override; StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::Cluster const& request) override; future> UpdateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> PartialUpdateCluster( @@ -127,12 +127,12 @@ class BigtableInstanceAdminConnectionImpl override; StatusOr PartialUpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::PartialUpdateClusterRequest const& request) override; future> PartialUpdateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteCluster(google::bigtable::admin::v2::DeleteClusterRequest const& @@ -154,12 +154,12 @@ class BigtableInstanceAdminConnectionImpl override; StatusOr UpdateAppProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::UpdateAppProfileRequest const& request) override; future> UpdateAppProfile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteAppProfile( diff --git a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.cc b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.cc index aba9627852e2e..a0837805ad410 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.cc +++ b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.cc @@ -44,26 +44,23 @@ BigtableInstanceAdminTracingConnection::CreateInstance( StatusOr BigtableInstanceAdminTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateInstanceRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::CreateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BigtableInstanceAdminTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::CreateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateInstance(ExperimentalTag{}, operation)); } StatusOr @@ -105,26 +102,24 @@ BigtableInstanceAdminTracingConnection::PartialUpdateInstance( StatusOr BigtableInstanceAdminTracingConnection::PartialUpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::PartialUpdateInstance"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PartialUpdateInstance( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->PartialUpdateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BigtableInstanceAdminTracingConnection::PartialUpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::PartialUpdateInstance"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PartialUpdateInstance( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PartialUpdateInstance( + ExperimentalTag{}, operation)); } Status BigtableInstanceAdminTracingConnection::DeleteInstance( @@ -146,26 +141,23 @@ BigtableInstanceAdminTracingConnection::CreateCluster( StatusOr BigtableInstanceAdminTracingConnection::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateClusterRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::CreateCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BigtableInstanceAdminTracingConnection::CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::CreateCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateCluster(ExperimentalTag{}, operation)); } StatusOr @@ -197,26 +189,23 @@ BigtableInstanceAdminTracingConnection::UpdateCluster( StatusOr BigtableInstanceAdminTracingConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::Cluster const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::UpdateCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BigtableInstanceAdminTracingConnection::UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::UpdateCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateCluster(ExperimentalTag{}, operation)); } future> @@ -231,26 +220,24 @@ BigtableInstanceAdminTracingConnection::PartialUpdateCluster( StatusOr BigtableInstanceAdminTracingConnection::PartialUpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::PartialUpdateClusterRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::PartialUpdateCluster"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PartialUpdateCluster( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->PartialUpdateCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BigtableInstanceAdminTracingConnection::PartialUpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::PartialUpdateCluster"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PartialUpdateCluster( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PartialUpdateCluster( + ExperimentalTag{}, operation)); } Status BigtableInstanceAdminTracingConnection::DeleteCluster( @@ -301,26 +288,24 @@ BigtableInstanceAdminTracingConnection::UpdateAppProfile( StatusOr BigtableInstanceAdminTracingConnection::UpdateAppProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateAppProfileRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::UpdateAppProfile"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateAppProfile(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateAppProfile(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BigtableInstanceAdminTracingConnection::UpdateAppProfile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "bigtable_admin::BigtableInstanceAdminConnection::UpdateAppProfile"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateAppProfile(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateAppProfile(ExperimentalTag{}, operation)); } Status BigtableInstanceAdminTracingConnection::DeleteAppProfile( diff --git a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.h b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.h index 958cfc6de6c40..1b0582ab9be79 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.h +++ b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_tracing_connection.h @@ -45,12 +45,12 @@ class BigtableInstanceAdminTracingConnection override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateInstanceRequest const& request) override; future> CreateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetInstance( @@ -68,12 +68,12 @@ class BigtableInstanceAdminTracingConnection override; StatusOr PartialUpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request) override; future> PartialUpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteInstance( @@ -85,12 +85,12 @@ class BigtableInstanceAdminTracingConnection override; StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateClusterRequest const& request) override; future> CreateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetCluster( @@ -103,11 +103,11 @@ class BigtableInstanceAdminTracingConnection google::bigtable::admin::v2::Cluster const& request) override; StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::Cluster const& request) override; future> UpdateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> PartialUpdateCluster( @@ -115,12 +115,12 @@ class BigtableInstanceAdminTracingConnection override; StatusOr PartialUpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::PartialUpdateClusterRequest const& request) override; future> PartialUpdateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteCluster(google::bigtable::admin::v2::DeleteClusterRequest const& @@ -142,12 +142,12 @@ class BigtableInstanceAdminTracingConnection override; StatusOr UpdateAppProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateAppProfileRequest const& request) override; future> UpdateAppProfile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteAppProfile( diff --git a/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.cc b/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.cc index cd53f4ffa6ffb..d9b593aa22343 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.cc +++ b/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.cc @@ -172,7 +172,7 @@ BigtableTableAdminConnectionImpl::UpdateTable( StatusOr BigtableTableAdminConnectionImpl::UpdateTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::UpdateTableRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -187,8 +187,7 @@ BigtableTableAdminConnectionImpl::UpdateTable( future> BigtableTableAdminConnectionImpl::UpdateTable( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -276,7 +275,7 @@ BigtableTableAdminConnectionImpl::UndeleteTable( StatusOr BigtableTableAdminConnectionImpl::UndeleteTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::UndeleteTableRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -291,8 +290,7 @@ BigtableTableAdminConnectionImpl::UndeleteTable( future> BigtableTableAdminConnectionImpl::UndeleteTable( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -368,7 +366,7 @@ BigtableTableAdminConnectionImpl::CreateAuthorizedView( StatusOr BigtableTableAdminConnectionImpl::CreateAuthorizedView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -384,8 +382,7 @@ BigtableTableAdminConnectionImpl::CreateAuthorizedView( future> BigtableTableAdminConnectionImpl::CreateAuthorizedView( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BigtableTableAdminConnectionImpl::UpdateAuthorizedView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -529,8 +526,7 @@ BigtableTableAdminConnectionImpl::UpdateAuthorizedView( future> BigtableTableAdminConnectionImpl::UpdateAuthorizedView( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BigtableTableAdminConnectionImpl::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -695,8 +691,7 @@ BigtableTableAdminConnectionImpl::CreateBackup( future> BigtableTableAdminConnectionImpl::CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -846,7 +841,7 @@ BigtableTableAdminConnectionImpl::RestoreTable( StatusOr BigtableTableAdminConnectionImpl::RestoreTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::RestoreTableRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -861,8 +856,7 @@ BigtableTableAdminConnectionImpl::RestoreTable( future> BigtableTableAdminConnectionImpl::RestoreTable( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -937,7 +931,7 @@ BigtableTableAdminConnectionImpl::CopyBackup( StatusOr BigtableTableAdminConnectionImpl::CopyBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::CopyBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -952,8 +946,7 @@ BigtableTableAdminConnectionImpl::CopyBackup( future> BigtableTableAdminConnectionImpl::CopyBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.h b/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.h index a3d3c3164348b..0111dd532e855 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.h +++ b/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.h @@ -65,11 +65,11 @@ class BigtableTableAdminConnectionImpl google::bigtable::admin::v2::UpdateTableRequest const& request) override; StatusOr UpdateTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::UpdateTableRequest const& request) override; future> UpdateTable( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteTable( @@ -80,12 +80,12 @@ class BigtableTableAdminConnectionImpl override; StatusOr UndeleteTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::UndeleteTableRequest const& request) override; future> UndeleteTable( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -94,13 +94,13 @@ class BigtableTableAdminConnectionImpl override; StatusOr CreateAuthorizedView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request) override; future> CreateAuthorizedView( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListAuthorizedViews( @@ -116,13 +116,13 @@ class BigtableTableAdminConnectionImpl override; StatusOr UpdateAuthorizedView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request) override; future> UpdateAuthorizedView( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteAuthorizedView( @@ -149,11 +149,11 @@ class BigtableTableAdminConnectionImpl google::bigtable::admin::v2::CreateBackupRequest const& request) override; StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::CreateBackupRequest const& request) override; future> CreateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetBackup( @@ -172,22 +172,22 @@ class BigtableTableAdminConnectionImpl google::bigtable::admin::v2::RestoreTableRequest const& request) override; StatusOr RestoreTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::RestoreTableRequest const& request) override; future> RestoreTable( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CopyBackup( google::bigtable::admin::v2::CopyBackupRequest const& request) override; StatusOr CopyBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::bigtable::admin::v2::CopyBackupRequest const& request) override; future> CopyBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicy( diff --git a/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.cc b/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.cc index 43aa9119b8159..c98af9f60f065 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.cc +++ b/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.cc @@ -73,26 +73,23 @@ BigtableTableAdminTracingConnection::UpdateTable( StatusOr BigtableTableAdminTracingConnection::UpdateTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateTableRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::UpdateTable"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateTable(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateTable(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BigtableTableAdminTracingConnection::UpdateTable( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::UpdateTable"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateTable(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateTable(ExperimentalTag{}, operation)); } Status BigtableTableAdminTracingConnection::DeleteTable( @@ -114,26 +111,23 @@ BigtableTableAdminTracingConnection::UndeleteTable( StatusOr BigtableTableAdminTracingConnection::UndeleteTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UndeleteTableRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::UndeleteTable"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UndeleteTable(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UndeleteTable(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BigtableTableAdminTracingConnection::UndeleteTable( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::UndeleteTable"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UndeleteTable(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UndeleteTable(ExperimentalTag{}, operation)); } future> @@ -148,26 +142,24 @@ BigtableTableAdminTracingConnection::CreateAuthorizedView( StatusOr BigtableTableAdminTracingConnection::CreateAuthorizedView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::CreateAuthorizedView"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateAuthorizedView( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateAuthorizedView(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BigtableTableAdminTracingConnection::CreateAuthorizedView( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::CreateAuthorizedView"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateAuthorizedView( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateAuthorizedView( + ExperimentalTag{}, operation)); } StreamRange @@ -203,26 +195,24 @@ BigtableTableAdminTracingConnection::UpdateAuthorizedView( StatusOr BigtableTableAdminTracingConnection::UpdateAuthorizedView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::UpdateAuthorizedView"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateAuthorizedView( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateAuthorizedView(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BigtableTableAdminTracingConnection::UpdateAuthorizedView( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::UpdateAuthorizedView"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateAuthorizedView( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateAuthorizedView( + ExperimentalTag{}, operation)); } Status BigtableTableAdminTracingConnection::DeleteAuthorizedView( @@ -280,26 +270,23 @@ BigtableTableAdminTracingConnection::CreateBackup( StatusOr BigtableTableAdminTracingConnection::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateBackupRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::CreateBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BigtableTableAdminTracingConnection::CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::CreateBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateBackup(ExperimentalTag{}, operation)); } StatusOr @@ -350,26 +337,23 @@ BigtableTableAdminTracingConnection::RestoreTable( StatusOr BigtableTableAdminTracingConnection::RestoreTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::RestoreTableRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::RestoreTable"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RestoreTable(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RestoreTable(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BigtableTableAdminTracingConnection::RestoreTable( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::RestoreTable"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RestoreTable(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RestoreTable(ExperimentalTag{}, operation)); } future> @@ -383,26 +367,23 @@ BigtableTableAdminTracingConnection::CopyBackup( StatusOr BigtableTableAdminTracingConnection::CopyBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CopyBackupRequest const& request) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::CopyBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CopyBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CopyBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BigtableTableAdminTracingConnection::CopyBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "bigtable_admin::BigtableTableAdminConnection::CopyBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CopyBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CopyBackup(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.h b/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.h index d1a355e98a856..0f0a0f84d5bb2 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.h +++ b/google/cloud/bigtable/admin/internal/bigtable_table_admin_tracing_connection.h @@ -53,11 +53,11 @@ class BigtableTableAdminTracingConnection google::bigtable::admin::v2::UpdateTableRequest const& request) override; StatusOr UpdateTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateTableRequest const& request) override; future> UpdateTable( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteTable( @@ -68,12 +68,12 @@ class BigtableTableAdminTracingConnection override; StatusOr UndeleteTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UndeleteTableRequest const& request) override; future> UndeleteTable( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -82,13 +82,13 @@ class BigtableTableAdminTracingConnection override; StatusOr CreateAuthorizedView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request) override; future> CreateAuthorizedView( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListAuthorizedViews( @@ -104,13 +104,13 @@ class BigtableTableAdminTracingConnection override; StatusOr UpdateAuthorizedView( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request) override; future> UpdateAuthorizedView( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteAuthorizedView( @@ -137,11 +137,11 @@ class BigtableTableAdminTracingConnection google::bigtable::admin::v2::CreateBackupRequest const& request) override; StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateBackupRequest const& request) override; future> CreateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetBackup( @@ -160,22 +160,22 @@ class BigtableTableAdminTracingConnection google::bigtable::admin::v2::RestoreTableRequest const& request) override; StatusOr RestoreTable( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::RestoreTableRequest const& request) override; future> RestoreTable( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CopyBackup( google::bigtable::admin::v2::CopyBackupRequest const& request) override; StatusOr CopyBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CopyBackupRequest const& request) override; future> CopyBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicy( diff --git a/google/cloud/bigtable/admin/mocks/mock_bigtable_instance_admin_connection.h b/google/cloud/bigtable/admin/mocks/mock_bigtable_instance_admin_connection.h index 102dafa63b0f0..f95cf8f23f0f8 100644 --- a/google/cloud/bigtable/admin/mocks/mock_bigtable_instance_admin_connection.h +++ b/google/cloud/bigtable/admin/mocks/mock_bigtable_instance_admin_connection.h @@ -54,13 +54,13 @@ class MockBigtableInstanceAdminConnection MOCK_METHOD( StatusOr, CreateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateInstanceRequest const& request), (override)); MOCK_METHOD(future>, CreateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -85,14 +85,14 @@ class MockBigtableInstanceAdminConnection (override)); MOCK_METHOD(StatusOr, PartialUpdateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request), (override)); MOCK_METHOD(future>, PartialUpdateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -108,13 +108,13 @@ class MockBigtableInstanceAdminConnection MOCK_METHOD( StatusOr, CreateCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateClusterRequest const& request), (override)); MOCK_METHOD(future>, CreateCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -133,13 +133,13 @@ class MockBigtableInstanceAdminConnection (override)); MOCK_METHOD(StatusOr, UpdateCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::Cluster const& request), (override)); MOCK_METHOD(future>, UpdateCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -151,13 +151,13 @@ class MockBigtableInstanceAdminConnection MOCK_METHOD( StatusOr, PartialUpdateCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::PartialUpdateClusterRequest const& request), (override)); MOCK_METHOD(future>, PartialUpdateCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -189,13 +189,13 @@ class MockBigtableInstanceAdminConnection MOCK_METHOD( StatusOr, UpdateAppProfile, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateAppProfileRequest const& request), (override)); MOCK_METHOD(future>, UpdateAppProfile, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/bigtable/admin/mocks/mock_bigtable_table_admin_connection.h b/google/cloud/bigtable/admin/mocks/mock_bigtable_table_admin_connection.h index 9cfee483623a1..8281216e8bfc3 100644 --- a/google/cloud/bigtable/admin/mocks/mock_bigtable_table_admin_connection.h +++ b/google/cloud/bigtable/admin/mocks/mock_bigtable_table_admin_connection.h @@ -64,12 +64,12 @@ class MockBigtableTableAdminConnection (override)); MOCK_METHOD(StatusOr, UpdateTable, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateTableRequest const& request), (override)); MOCK_METHOD(future>, UpdateTable, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -84,13 +84,13 @@ class MockBigtableTableAdminConnection MOCK_METHOD( StatusOr, UndeleteTable, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UndeleteTableRequest const& request), (override)); MOCK_METHOD(future>, UndeleteTable, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -102,13 +102,13 @@ class MockBigtableTableAdminConnection MOCK_METHOD( StatusOr, CreateAuthorizedView, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request), (override)); MOCK_METHOD(future>, CreateAuthorizedView, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -130,13 +130,13 @@ class MockBigtableTableAdminConnection MOCK_METHOD( StatusOr, UpdateAuthorizedView, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request), (override)); MOCK_METHOD(future>, UpdateAuthorizedView, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -173,13 +173,13 @@ class MockBigtableTableAdminConnection (override)); MOCK_METHOD(StatusOr, CreateBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateBackupRequest const& request), (override)); MOCK_METHOD(future>, CreateBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -205,13 +205,13 @@ class MockBigtableTableAdminConnection (override)); MOCK_METHOD(StatusOr, RestoreTable, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::RestoreTableRequest const& request), (override)); MOCK_METHOD(future>, RestoreTable, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -220,12 +220,12 @@ class MockBigtableTableAdminConnection (override)); MOCK_METHOD(StatusOr, CopyBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CopyBackupRequest const& request), (override)); MOCK_METHOD(future>, CopyBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.cc b/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.cc index 749a756f884f1..2dd82aa6a82fb 100644 --- a/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.cc +++ b/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.cc @@ -168,7 +168,7 @@ CertificateManagerConnectionImpl::CreateCertificate( StatusOr CertificateManagerConnectionImpl::CreateCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::CreateCertificateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -186,8 +186,7 @@ CertificateManagerConnectionImpl::CreateCertificate( future> CertificateManagerConnectionImpl::CreateCertificate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateManagerConnectionImpl::UpdateCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::UpdateCertificateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -284,8 +283,7 @@ CertificateManagerConnectionImpl::UpdateCertificate( future> CertificateManagerConnectionImpl::UpdateCertificate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateManagerConnectionImpl::DeleteCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::DeleteCertificateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -382,8 +380,7 @@ CertificateManagerConnectionImpl::DeleteCertificate( future> CertificateManagerConnectionImpl::DeleteCertificate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateManagerConnectionImpl::CreateCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -530,8 +527,7 @@ CertificateManagerConnectionImpl::CreateCertificateMap( future> CertificateManagerConnectionImpl::CreateCertificateMap( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateManagerConnectionImpl::UpdateCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -626,8 +622,7 @@ CertificateManagerConnectionImpl::UpdateCertificateMap( future> CertificateManagerConnectionImpl::UpdateCertificateMap( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateManagerConnectionImpl::DeleteCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -722,8 +717,7 @@ CertificateManagerConnectionImpl::DeleteCertificateMap( future> CertificateManagerConnectionImpl::DeleteCertificateMap( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateManagerConnectionImpl::CreateCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1:: CreateCertificateMapEntryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -873,8 +867,7 @@ CertificateManagerConnectionImpl::CreateCertificateMapEntry( future> CertificateManagerConnectionImpl::CreateCertificateMapEntry( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateManagerConnectionImpl::UpdateCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1:: UpdateCertificateMapEntryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -969,8 +962,7 @@ CertificateManagerConnectionImpl::UpdateCertificateMapEntry( future> CertificateManagerConnectionImpl::UpdateCertificateMapEntry( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateManagerConnectionImpl::DeleteCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1:: DeleteCertificateMapEntryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1065,8 +1057,7 @@ CertificateManagerConnectionImpl::DeleteCertificateMapEntry( future> CertificateManagerConnectionImpl::DeleteCertificateMapEntry( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateManagerConnectionImpl::CreateDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::CreateDnsAuthorizationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1215,8 +1206,7 @@ CertificateManagerConnectionImpl::CreateDnsAuthorization( future> CertificateManagerConnectionImpl::CreateDnsAuthorization( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateManagerConnectionImpl::UpdateDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::UpdateDnsAuthorizationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1311,8 +1301,7 @@ CertificateManagerConnectionImpl::UpdateDnsAuthorization( future> CertificateManagerConnectionImpl::UpdateDnsAuthorization( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateManagerConnectionImpl::DeleteDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::DeleteDnsAuthorizationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1407,8 +1396,7 @@ CertificateManagerConnectionImpl::DeleteDnsAuthorization( future> CertificateManagerConnectionImpl::DeleteDnsAuthorization( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateManagerConnectionImpl::CreateCertificateIssuanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1:: CreateCertificateIssuanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1565,8 +1553,7 @@ CertificateManagerConnectionImpl::CreateCertificateIssuanceConfig( future< StatusOr> CertificateManagerConnectionImpl::CreateCertificateIssuanceConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateManagerConnectionImpl::DeleteCertificateIssuanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1:: DeleteCertificateIssuanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1664,8 +1651,7 @@ CertificateManagerConnectionImpl::DeleteCertificateIssuanceConfig( future> CertificateManagerConnectionImpl::DeleteCertificateIssuanceConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateManagerConnectionImpl::CreateTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1814,8 +1800,7 @@ CertificateManagerConnectionImpl::CreateTrustConfig( future> CertificateManagerConnectionImpl::CreateTrustConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateManagerConnectionImpl::UpdateTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1912,8 +1897,7 @@ CertificateManagerConnectionImpl::UpdateTrustConfig( future> CertificateManagerConnectionImpl::UpdateTrustConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateManagerConnectionImpl::DeleteTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2010,8 +1994,7 @@ CertificateManagerConnectionImpl::DeleteTrustConfig( future> CertificateManagerConnectionImpl::DeleteTrustConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::CreateCertificateRequest const& request) override; future> - CreateCertificate(google::cloud::ExperimentalTag, + CreateCertificate(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -82,12 +82,12 @@ class CertificateManagerConnectionImpl request) override; StatusOr UpdateCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::UpdateCertificateRequest const& request) override; future> - UpdateCertificate(google::cloud::ExperimentalTag, + UpdateCertificate(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -96,12 +96,12 @@ class CertificateManagerConnectionImpl request) override; StatusOr DeleteCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::DeleteCertificateRequest const& request) override; future> - DeleteCertificate(google::cloud::ExperimentalTag, + DeleteCertificate(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -120,13 +120,13 @@ class CertificateManagerConnectionImpl request) override; StatusOr CreateCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& request) override; future> CreateCertificateMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -135,13 +135,13 @@ class CertificateManagerConnectionImpl request) override; StatusOr UpdateCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& request) override; future> UpdateCertificateMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -150,13 +150,13 @@ class CertificateManagerConnectionImpl request) override; StatusOr DeleteCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& request) override; future> DeleteCertificateMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -175,13 +175,13 @@ class CertificateManagerConnectionImpl CreateCertificateMapEntryRequest const& request) override; StatusOr CreateCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1:: CreateCertificateMapEntryRequest const& request) override; future> CreateCertificateMapEntry( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -190,13 +190,13 @@ class CertificateManagerConnectionImpl UpdateCertificateMapEntryRequest const& request) override; StatusOr UpdateCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1:: UpdateCertificateMapEntryRequest const& request) override; future> UpdateCertificateMapEntry( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -205,13 +205,13 @@ class CertificateManagerConnectionImpl DeleteCertificateMapEntryRequest const& request) override; StatusOr DeleteCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1:: DeleteCertificateMapEntryRequest const& request) override; future> DeleteCertificateMapEntry( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -230,13 +230,13 @@ class CertificateManagerConnectionImpl CreateDnsAuthorizationRequest const& request) override; StatusOr CreateDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1:: CreateDnsAuthorizationRequest const& request) override; future> CreateDnsAuthorization( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -245,13 +245,13 @@ class CertificateManagerConnectionImpl UpdateDnsAuthorizationRequest const& request) override; StatusOr UpdateDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1:: UpdateDnsAuthorizationRequest const& request) override; future> UpdateDnsAuthorization( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -260,13 +260,13 @@ class CertificateManagerConnectionImpl DeleteDnsAuthorizationRequest const& request) override; StatusOr DeleteDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1:: DeleteDnsAuthorizationRequest const& request) override; future> DeleteDnsAuthorization( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -286,14 +286,14 @@ class CertificateManagerConnectionImpl CreateCertificateIssuanceConfigRequest const& request) override; StatusOr CreateCertificateIssuanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1:: CreateCertificateIssuanceConfigRequest const& request) override; future> CreateCertificateIssuanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -302,13 +302,13 @@ class CertificateManagerConnectionImpl DeleteCertificateIssuanceConfigRequest const& request) override; StatusOr DeleteCertificateIssuanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1:: DeleteCertificateIssuanceConfigRequest const& request) override; future> DeleteCertificateIssuanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -326,12 +326,12 @@ class CertificateManagerConnectionImpl request) override; StatusOr CreateTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& request) override; future> - CreateTrustConfig(google::cloud::ExperimentalTag, + CreateTrustConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -340,12 +340,12 @@ class CertificateManagerConnectionImpl request) override; StatusOr UpdateTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& request) override; future> - UpdateTrustConfig(google::cloud::ExperimentalTag, + UpdateTrustConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -354,12 +354,12 @@ class CertificateManagerConnectionImpl request) override; StatusOr DeleteTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& request) override; future> - DeleteTrustConfig(google::cloud::ExperimentalTag, + DeleteTrustConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.cc b/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.cc index 8c2a008bce8be..6e11e9811b8dc 100644 --- a/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.cc +++ b/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.cc @@ -67,27 +67,25 @@ CertificateManagerTracingConnection::CreateCertificate( StatusOr CertificateManagerTracingConnection::CreateCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateCertificateRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::CreateCertificate"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateCertificate(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateCertificate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CertificateManagerTracingConnection::CreateCertificate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::CreateCertificate"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateCertificate(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateCertificate(ExperimentalTag{}, operation)); } future> @@ -102,27 +100,25 @@ CertificateManagerTracingConnection::UpdateCertificate( StatusOr CertificateManagerTracingConnection::UpdateCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateCertificateRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::UpdateCertificate"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateCertificate(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateCertificate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CertificateManagerTracingConnection::UpdateCertificate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::UpdateCertificate"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateCertificate(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateCertificate(ExperimentalTag{}, operation)); } future> @@ -137,27 +133,25 @@ CertificateManagerTracingConnection::DeleteCertificate( StatusOr CertificateManagerTracingConnection::DeleteCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteCertificateRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::DeleteCertificate"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteCertificate(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteCertificate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CertificateManagerTracingConnection::DeleteCertificate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::DeleteCertificate"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteCertificate(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteCertificate(ExperimentalTag{}, operation)); } StreamRange @@ -197,29 +191,27 @@ CertificateManagerTracingConnection::CreateCertificateMap( StatusOr CertificateManagerTracingConnection::CreateCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "CreateCertificateMap"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateCertificateMap( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateCertificateMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CertificateManagerTracingConnection::CreateCertificateMap( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "CreateCertificateMap"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateCertificateMap( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateCertificateMap( + ExperimentalTag{}, operation)); } future> @@ -236,29 +228,27 @@ CertificateManagerTracingConnection::UpdateCertificateMap( StatusOr CertificateManagerTracingConnection::UpdateCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "UpdateCertificateMap"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateCertificateMap( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateCertificateMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CertificateManagerTracingConnection::UpdateCertificateMap( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "UpdateCertificateMap"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateCertificateMap( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateCertificateMap( + ExperimentalTag{}, operation)); } future> @@ -275,29 +265,27 @@ CertificateManagerTracingConnection::DeleteCertificateMap( StatusOr CertificateManagerTracingConnection::DeleteCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "DeleteCertificateMap"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteCertificateMap( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteCertificateMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CertificateManagerTracingConnection::DeleteCertificateMap( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "DeleteCertificateMap"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteCertificateMap( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteCertificateMap( + ExperimentalTag{}, operation)); } StreamRange @@ -339,29 +327,27 @@ CertificateManagerTracingConnection::CreateCertificateMapEntry( StatusOr CertificateManagerTracingConnection::CreateCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateCertificateMapEntryRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "CreateCertificateMapEntry"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateCertificateMapEntry( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateCertificateMapEntry(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> CertificateManagerTracingConnection::CreateCertificateMapEntry( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "CreateCertificateMapEntry"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateCertificateMapEntry( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateCertificateMapEntry( + ExperimentalTag{}, operation)); } future> @@ -378,29 +364,27 @@ CertificateManagerTracingConnection::UpdateCertificateMapEntry( StatusOr CertificateManagerTracingConnection::UpdateCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: UpdateCertificateMapEntryRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "UpdateCertificateMapEntry"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateCertificateMapEntry( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateCertificateMapEntry(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> CertificateManagerTracingConnection::UpdateCertificateMapEntry( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "UpdateCertificateMapEntry"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateCertificateMapEntry( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateCertificateMapEntry( + ExperimentalTag{}, operation)); } future> @@ -417,29 +401,27 @@ CertificateManagerTracingConnection::DeleteCertificateMapEntry( StatusOr CertificateManagerTracingConnection::DeleteCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteCertificateMapEntryRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "DeleteCertificateMapEntry"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteCertificateMapEntry( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteCertificateMapEntry(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> CertificateManagerTracingConnection::DeleteCertificateMapEntry( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "DeleteCertificateMapEntry"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteCertificateMapEntry( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteCertificateMapEntry( + ExperimentalTag{}, operation)); } StreamRange @@ -481,29 +463,27 @@ CertificateManagerTracingConnection::CreateDnsAuthorization( StatusOr CertificateManagerTracingConnection::CreateDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateDnsAuthorizationRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "CreateDnsAuthorization"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateDnsAuthorization( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateDnsAuthorization(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CertificateManagerTracingConnection::CreateDnsAuthorization( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "CreateDnsAuthorization"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateDnsAuthorization( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateDnsAuthorization( + ExperimentalTag{}, operation)); } future> @@ -520,29 +500,27 @@ CertificateManagerTracingConnection::UpdateDnsAuthorization( StatusOr CertificateManagerTracingConnection::UpdateDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateDnsAuthorizationRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "UpdateDnsAuthorization"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateDnsAuthorization( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateDnsAuthorization(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CertificateManagerTracingConnection::UpdateDnsAuthorization( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "UpdateDnsAuthorization"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateDnsAuthorization( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateDnsAuthorization( + ExperimentalTag{}, operation)); } future> @@ -559,29 +537,27 @@ CertificateManagerTracingConnection::DeleteDnsAuthorization( StatusOr CertificateManagerTracingConnection::DeleteDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteDnsAuthorizationRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "DeleteDnsAuthorization"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteDnsAuthorization( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteDnsAuthorization(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CertificateManagerTracingConnection::DeleteDnsAuthorization( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "DeleteDnsAuthorization"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteDnsAuthorization( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteDnsAuthorization( + ExperimentalTag{}, operation)); } StreamRange @@ -625,30 +601,29 @@ CertificateManagerTracingConnection::CreateCertificateIssuanceConfig( StatusOr CertificateManagerTracingConnection::CreateCertificateIssuanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateCertificateIssuanceConfigRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "CreateCertificateIssuanceConfig"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateCertificateIssuanceConfig( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateCertificateIssuanceConfig(ExperimentalTag{}, + NoAwaitTag{}, request)); } future< StatusOr> CertificateManagerTracingConnection::CreateCertificateIssuanceConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "CreateCertificateIssuanceConfig"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateCertificateIssuanceConfig( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->CreateCertificateIssuanceConfig(ExperimentalTag{}, operation)); } future> @@ -665,29 +640,28 @@ CertificateManagerTracingConnection::DeleteCertificateIssuanceConfig( StatusOr CertificateManagerTracingConnection::DeleteCertificateIssuanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteCertificateIssuanceConfigRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "DeleteCertificateIssuanceConfig"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteCertificateIssuanceConfig( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteCertificateIssuanceConfig(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> CertificateManagerTracingConnection::DeleteCertificateIssuanceConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::" "DeleteCertificateIssuanceConfig"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteCertificateIssuanceConfig( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->DeleteCertificateIssuanceConfig(ExperimentalTag{}, operation)); } StreamRange @@ -724,27 +698,25 @@ CertificateManagerTracingConnection::CreateTrustConfig( StatusOr CertificateManagerTracingConnection::CreateTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::CreateTrustConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateTrustConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateTrustConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CertificateManagerTracingConnection::CreateTrustConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::CreateTrustConfig"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateTrustConfig(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateTrustConfig(ExperimentalTag{}, operation)); } future> @@ -759,27 +731,25 @@ CertificateManagerTracingConnection::UpdateTrustConfig( StatusOr CertificateManagerTracingConnection::UpdateTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::UpdateTrustConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateTrustConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateTrustConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CertificateManagerTracingConnection::UpdateTrustConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::UpdateTrustConfig"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateTrustConfig(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateTrustConfig(ExperimentalTag{}, operation)); } future> @@ -794,27 +764,25 @@ CertificateManagerTracingConnection::DeleteTrustConfig( StatusOr CertificateManagerTracingConnection::DeleteTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& request) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::DeleteTrustConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteTrustConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteTrustConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CertificateManagerTracingConnection::DeleteTrustConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "certificatemanager_v1::CertificateManagerConnection::DeleteTrustConfig"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteTrustConfig(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteTrustConfig(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.h b/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.h index c10ad3b7c68f5..3251dec695f7d 100644 --- a/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.h +++ b/google/cloud/certificatemanager/v1/internal/certificate_manager_tracing_connection.h @@ -56,12 +56,12 @@ class CertificateManagerTracingConnection request) override; StatusOr CreateCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateCertificateRequest const& request) override; future> - CreateCertificate(google::cloud::ExperimentalTag, + CreateCertificate(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -70,12 +70,12 @@ class CertificateManagerTracingConnection request) override; StatusOr UpdateCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateCertificateRequest const& request) override; future> - UpdateCertificate(google::cloud::ExperimentalTag, + UpdateCertificate(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -84,12 +84,12 @@ class CertificateManagerTracingConnection request) override; StatusOr DeleteCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteCertificateRequest const& request) override; future> - DeleteCertificate(google::cloud::ExperimentalTag, + DeleteCertificate(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -108,13 +108,13 @@ class CertificateManagerTracingConnection request) override; StatusOr CreateCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& request) override; future> CreateCertificateMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -123,13 +123,13 @@ class CertificateManagerTracingConnection request) override; StatusOr UpdateCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& request) override; future> UpdateCertificateMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -138,13 +138,13 @@ class CertificateManagerTracingConnection request) override; StatusOr DeleteCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& request) override; future> DeleteCertificateMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -163,13 +163,13 @@ class CertificateManagerTracingConnection CreateCertificateMapEntryRequest const& request) override; StatusOr CreateCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateCertificateMapEntryRequest const& request) override; future> CreateCertificateMapEntry( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -178,13 +178,13 @@ class CertificateManagerTracingConnection UpdateCertificateMapEntryRequest const& request) override; StatusOr UpdateCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: UpdateCertificateMapEntryRequest const& request) override; future> UpdateCertificateMapEntry( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -193,13 +193,13 @@ class CertificateManagerTracingConnection DeleteCertificateMapEntryRequest const& request) override; StatusOr DeleteCertificateMapEntry( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteCertificateMapEntryRequest const& request) override; future> DeleteCertificateMapEntry( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -218,13 +218,13 @@ class CertificateManagerTracingConnection CreateDnsAuthorizationRequest const& request) override; StatusOr CreateDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateDnsAuthorizationRequest const& request) override; future> CreateDnsAuthorization( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -233,13 +233,13 @@ class CertificateManagerTracingConnection UpdateDnsAuthorizationRequest const& request) override; StatusOr UpdateDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: UpdateDnsAuthorizationRequest const& request) override; future> UpdateDnsAuthorization( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -248,13 +248,13 @@ class CertificateManagerTracingConnection DeleteDnsAuthorizationRequest const& request) override; StatusOr DeleteDnsAuthorization( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteDnsAuthorizationRequest const& request) override; future> DeleteDnsAuthorization( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -274,14 +274,14 @@ class CertificateManagerTracingConnection CreateCertificateIssuanceConfigRequest const& request) override; StatusOr CreateCertificateIssuanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateCertificateIssuanceConfigRequest const& request) override; future> CreateCertificateIssuanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -290,13 +290,13 @@ class CertificateManagerTracingConnection DeleteCertificateIssuanceConfigRequest const& request) override; StatusOr DeleteCertificateIssuanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteCertificateIssuanceConfigRequest const& request) override; future> DeleteCertificateIssuanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -314,12 +314,12 @@ class CertificateManagerTracingConnection request) override; StatusOr CreateTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& request) override; future> - CreateTrustConfig(google::cloud::ExperimentalTag, + CreateTrustConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -328,12 +328,12 @@ class CertificateManagerTracingConnection request) override; StatusOr UpdateTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& request) override; future> - UpdateTrustConfig(google::cloud::ExperimentalTag, + UpdateTrustConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -342,12 +342,12 @@ class CertificateManagerTracingConnection request) override; StatusOr DeleteTrustConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& request) override; future> - DeleteTrustConfig(google::cloud::ExperimentalTag, + DeleteTrustConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/certificatemanager/v1/mocks/mock_certificate_manager_connection.h b/google/cloud/certificatemanager/v1/mocks/mock_certificate_manager_connection.h index 41c301d645391..7fc928b0de6a9 100644 --- a/google/cloud/certificatemanager/v1/mocks/mock_certificate_manager_connection.h +++ b/google/cloud/certificatemanager/v1/mocks/mock_certificate_manager_connection.h @@ -69,7 +69,7 @@ class MockCertificateManagerConnection MOCK_METHOD( StatusOr, CreateCertificate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateCertificateRequest const& request), (override)); @@ -77,8 +77,7 @@ class MockCertificateManagerConnection MOCK_METHOD( future>, CreateCertificate, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -90,7 +89,7 @@ class MockCertificateManagerConnection MOCK_METHOD( StatusOr, UpdateCertificate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateCertificateRequest const& request), (override)); @@ -98,8 +97,7 @@ class MockCertificateManagerConnection MOCK_METHOD( future>, UpdateCertificate, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -112,7 +110,7 @@ class MockCertificateManagerConnection MOCK_METHOD( StatusOr, DeleteCertificate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteCertificateRequest const& request), (override)); @@ -121,8 +119,7 @@ class MockCertificateManagerConnection future< StatusOr>, DeleteCertificate, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -148,7 +145,7 @@ class MockCertificateManagerConnection MOCK_METHOD( StatusOr, CreateCertificateMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& request), (override)); @@ -156,8 +153,7 @@ class MockCertificateManagerConnection MOCK_METHOD( future>, CreateCertificateMap, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -169,7 +165,7 @@ class MockCertificateManagerConnection MOCK_METHOD( StatusOr, UpdateCertificateMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& request), (override)); @@ -177,8 +173,7 @@ class MockCertificateManagerConnection MOCK_METHOD( future>, UpdateCertificateMap, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -191,7 +186,7 @@ class MockCertificateManagerConnection MOCK_METHOD( StatusOr, DeleteCertificateMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& request), (override)); @@ -200,8 +195,7 @@ class MockCertificateManagerConnection future< StatusOr>, DeleteCertificateMap, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -228,7 +222,7 @@ class MockCertificateManagerConnection MOCK_METHOD(StatusOr, CreateCertificateMapEntry, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateCertificateMapEntryRequest const& request), (override)); @@ -237,8 +231,7 @@ class MockCertificateManagerConnection future< StatusOr>, CreateCertificateMapEntry, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -251,7 +244,7 @@ class MockCertificateManagerConnection MOCK_METHOD(StatusOr, UpdateCertificateMapEntry, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: UpdateCertificateMapEntryRequest const& request), (override)); @@ -260,8 +253,7 @@ class MockCertificateManagerConnection future< StatusOr>, UpdateCertificateMapEntry, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -274,7 +266,7 @@ class MockCertificateManagerConnection MOCK_METHOD(StatusOr, DeleteCertificateMapEntry, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteCertificateMapEntryRequest const& request), (override)); @@ -283,8 +275,7 @@ class MockCertificateManagerConnection future< StatusOr>, DeleteCertificateMapEntry, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -309,7 +300,7 @@ class MockCertificateManagerConnection (override)); MOCK_METHOD(StatusOr, CreateDnsAuthorization, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateDnsAuthorizationRequest const& request), (override)); @@ -317,8 +308,7 @@ class MockCertificateManagerConnection MOCK_METHOD( future>, CreateDnsAuthorization, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -329,7 +319,7 @@ class MockCertificateManagerConnection (override)); MOCK_METHOD(StatusOr, UpdateDnsAuthorization, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: UpdateDnsAuthorizationRequest const& request), (override)); @@ -337,8 +327,7 @@ class MockCertificateManagerConnection MOCK_METHOD( future>, UpdateDnsAuthorization, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -350,7 +339,7 @@ class MockCertificateManagerConnection (override)); MOCK_METHOD(StatusOr, DeleteDnsAuthorization, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteDnsAuthorizationRequest const& request), (override)); @@ -359,8 +348,7 @@ class MockCertificateManagerConnection future< StatusOr>, DeleteDnsAuthorization, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -389,7 +377,7 @@ class MockCertificateManagerConnection MOCK_METHOD(StatusOr, CreateCertificateIssuanceConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateCertificateIssuanceConfigRequest const& request), (override)); @@ -398,8 +386,7 @@ class MockCertificateManagerConnection future>, CreateCertificateIssuanceConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -412,7 +399,7 @@ class MockCertificateManagerConnection MOCK_METHOD(StatusOr, DeleteCertificateIssuanceConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteCertificateIssuanceConfigRequest const& request), (override)); @@ -421,8 +408,7 @@ class MockCertificateManagerConnection future< StatusOr>, DeleteCertificateIssuanceConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -447,7 +433,7 @@ class MockCertificateManagerConnection MOCK_METHOD( StatusOr, CreateTrustConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& request), (override)); @@ -455,8 +441,7 @@ class MockCertificateManagerConnection MOCK_METHOD( future>, CreateTrustConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -468,7 +453,7 @@ class MockCertificateManagerConnection MOCK_METHOD( StatusOr, UpdateTrustConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& request), (override)); @@ -476,8 +461,7 @@ class MockCertificateManagerConnection MOCK_METHOD( future>, UpdateTrustConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -490,7 +474,7 @@ class MockCertificateManagerConnection MOCK_METHOD( StatusOr, DeleteTrustConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& request), (override)); @@ -499,8 +483,7 @@ class MockCertificateManagerConnection future< StatusOr>, DeleteTrustConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/channel/v1/internal/cloud_channel_connection_impl.cc b/google/cloud/channel/v1/internal/cloud_channel_connection_impl.cc index 3d06bb2958044..67df8ff779c77 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_connection_impl.cc +++ b/google/cloud/channel/v1/internal/cloud_channel_connection_impl.cc @@ -229,7 +229,7 @@ CloudChannelServiceConnectionImpl::ProvisionCloudIdentity( StatusOr CloudChannelServiceConnectionImpl::ProvisionCloudIdentity( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -245,8 +245,7 @@ CloudChannelServiceConnectionImpl::ProvisionCloudIdentity( future> CloudChannelServiceConnectionImpl::ProvisionCloudIdentity( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -441,7 +440,7 @@ CloudChannelServiceConnectionImpl::CreateEntitlement( StatusOr CloudChannelServiceConnectionImpl::CreateEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::CreateEntitlementRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -457,8 +456,7 @@ CloudChannelServiceConnectionImpl::CreateEntitlement( future> CloudChannelServiceConnectionImpl::CreateEntitlement( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -533,7 +531,7 @@ CloudChannelServiceConnectionImpl::ChangeParameters( StatusOr CloudChannelServiceConnectionImpl::ChangeParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::ChangeParametersRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -549,8 +547,7 @@ CloudChannelServiceConnectionImpl::ChangeParameters( future> CloudChannelServiceConnectionImpl::ChangeParameters( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -626,7 +623,7 @@ CloudChannelServiceConnectionImpl::ChangeRenewalSettings( StatusOr CloudChannelServiceConnectionImpl::ChangeRenewalSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -642,8 +639,7 @@ CloudChannelServiceConnectionImpl::ChangeRenewalSettings( future> CloudChannelServiceConnectionImpl::ChangeRenewalSettings( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -718,7 +714,7 @@ CloudChannelServiceConnectionImpl::ChangeOffer( StatusOr CloudChannelServiceConnectionImpl::ChangeOffer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::ChangeOfferRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -733,8 +729,7 @@ CloudChannelServiceConnectionImpl::ChangeOffer( future> CloudChannelServiceConnectionImpl::ChangeOffer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -809,7 +804,7 @@ CloudChannelServiceConnectionImpl::StartPaidService( StatusOr CloudChannelServiceConnectionImpl::StartPaidService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::StartPaidServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -825,8 +820,7 @@ CloudChannelServiceConnectionImpl::StartPaidService( future> CloudChannelServiceConnectionImpl::StartPaidService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -902,7 +896,7 @@ CloudChannelServiceConnectionImpl::SuspendEntitlement( StatusOr CloudChannelServiceConnectionImpl::SuspendEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::SuspendEntitlementRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -918,8 +912,7 @@ CloudChannelServiceConnectionImpl::SuspendEntitlement( future> CloudChannelServiceConnectionImpl::SuspendEntitlement( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -994,7 +987,7 @@ CloudChannelServiceConnectionImpl::CancelEntitlement( StatusOr CloudChannelServiceConnectionImpl::CancelEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::CancelEntitlementRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1010,8 +1003,7 @@ CloudChannelServiceConnectionImpl::CancelEntitlement( future> CloudChannelServiceConnectionImpl::CancelEntitlement( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1088,7 +1080,7 @@ CloudChannelServiceConnectionImpl::ActivateEntitlement( StatusOr CloudChannelServiceConnectionImpl::ActivateEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::ActivateEntitlementRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1104,8 +1096,7 @@ CloudChannelServiceConnectionImpl::ActivateEntitlement( future> CloudChannelServiceConnectionImpl::ActivateEntitlement( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1181,7 +1172,7 @@ CloudChannelServiceConnectionImpl::TransferEntitlements( StatusOr CloudChannelServiceConnectionImpl::TransferEntitlements( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::TransferEntitlementsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1197,8 +1188,7 @@ CloudChannelServiceConnectionImpl::TransferEntitlements( future> CloudChannelServiceConnectionImpl::TransferEntitlements( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1276,7 +1266,7 @@ CloudChannelServiceConnectionImpl::TransferEntitlementsToGoogle( StatusOr CloudChannelServiceConnectionImpl::TransferEntitlementsToGoogle( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1294,8 +1284,7 @@ CloudChannelServiceConnectionImpl::TransferEntitlementsToGoogle( future> CloudChannelServiceConnectionImpl::TransferEntitlementsToGoogle( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/channel/v1/internal/cloud_channel_connection_impl.h b/google/cloud/channel/v1/internal/cloud_channel_connection_impl.h index 3127c6eb04456..7989354696bc0 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_connection_impl.h +++ b/google/cloud/channel/v1/internal/cloud_channel_connection_impl.h @@ -83,12 +83,12 @@ class CloudChannelServiceConnectionImpl override; StatusOr ProvisionCloudIdentity( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request) override; future> ProvisionCloudIdentity( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListEntitlements( @@ -111,12 +111,12 @@ class CloudChannelServiceConnectionImpl override; StatusOr CreateEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::CreateEntitlementRequest const& request) override; future> CreateEntitlement( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ChangeParameters( @@ -124,12 +124,12 @@ class CloudChannelServiceConnectionImpl override; StatusOr ChangeParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::ChangeParametersRequest const& request) override; future> ChangeParameters( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -138,24 +138,24 @@ class CloudChannelServiceConnectionImpl override; StatusOr ChangeRenewalSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request) override; future> ChangeRenewalSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ChangeOffer( google::cloud::channel::v1::ChangeOfferRequest const& request) override; StatusOr ChangeOffer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::ChangeOfferRequest const& request) override; future> ChangeOffer( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StartPaidService( @@ -163,12 +163,12 @@ class CloudChannelServiceConnectionImpl override; StatusOr StartPaidService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::StartPaidServiceRequest const& request) override; future> StartPaidService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> SuspendEntitlement( @@ -176,12 +176,12 @@ class CloudChannelServiceConnectionImpl override; StatusOr SuspendEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::SuspendEntitlementRequest const& request) override; future> SuspendEntitlement( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -189,12 +189,12 @@ class CloudChannelServiceConnectionImpl request) override; StatusOr CancelEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::CancelEntitlementRequest const& request) override; future> - CancelEntitlement(google::cloud::ExperimentalTag, + CancelEntitlement(ExperimentalTag, google::longrunning::Operation const& operation) override; future> ActivateEntitlement( @@ -202,12 +202,12 @@ class CloudChannelServiceConnectionImpl override; StatusOr ActivateEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::ActivateEntitlementRequest const& request) override; future> ActivateEntitlement( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -216,13 +216,13 @@ class CloudChannelServiceConnectionImpl override; StatusOr TransferEntitlements( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::TransferEntitlementsRequest const& request) override; future> TransferEntitlements( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -231,13 +231,13 @@ class CloudChannelServiceConnectionImpl request) override; StatusOr TransferEntitlementsToGoogle( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& request) override; future> TransferEntitlementsToGoogle( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.cc b/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.cc index 41ce404862076..e574ea25ebdf8 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.cc +++ b/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.cc @@ -115,7 +115,7 @@ CloudChannelReportsServiceConnectionImpl::RunReportJob( StatusOr CloudChannelReportsServiceConnectionImpl::RunReportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::RunReportJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -130,8 +130,7 @@ CloudChannelReportsServiceConnectionImpl::RunReportJob( future> CloudChannelReportsServiceConnectionImpl::RunReportJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.h b/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.h index b8a2356888947..f2d28e9b1e822 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.h +++ b/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.h @@ -57,11 +57,11 @@ class CloudChannelReportsServiceConnectionImpl google::cloud::channel::v1::RunReportJobRequest const& request) override; StatusOr RunReportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::channel::v1::RunReportJobRequest const& request) override; future> - RunReportJob(google::cloud::ExperimentalTag, + RunReportJob(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange FetchReportResults( diff --git a/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.cc b/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.cc index 835e408f3b763..ee5f3f8e1fc66 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.cc +++ b/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.cc @@ -45,26 +45,23 @@ CloudChannelReportsServiceTracingConnection::RunReportJob( StatusOr CloudChannelReportsServiceTracingConnection::RunReportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::RunReportJobRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelReportsServiceConnection::RunReportJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RunReportJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RunReportJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudChannelReportsServiceTracingConnection::RunReportJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "channel_v1::CloudChannelReportsServiceConnection::RunReportJob"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RunReportJob(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RunReportJob(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.h b/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.h index 1f625df7f13bb..da96924e4a672 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.h +++ b/google/cloud/channel/v1/internal/cloud_channel_reports_tracing_connection.h @@ -45,11 +45,11 @@ class CloudChannelReportsServiceTracingConnection google::cloud::channel::v1::RunReportJobRequest const& request) override; StatusOr RunReportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::RunReportJobRequest const& request) override; future> - RunReportJob(google::cloud::ExperimentalTag, + RunReportJob(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange FetchReportResults( diff --git a/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.cc b/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.cc index 96e9ce3302fd5..2bb4033300723 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.cc +++ b/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.cc @@ -112,26 +112,24 @@ CloudChannelServiceTracingConnection::ProvisionCloudIdentity( StatusOr CloudChannelServiceTracingConnection::ProvisionCloudIdentity( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::ProvisionCloudIdentity"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ProvisionCloudIdentity( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->ProvisionCloudIdentity(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudChannelServiceTracingConnection::ProvisionCloudIdentity( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::ProvisionCloudIdentity"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ProvisionCloudIdentity( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ProvisionCloudIdentity( + ExperimentalTag{}, operation)); } StreamRange @@ -189,26 +187,24 @@ CloudChannelServiceTracingConnection::CreateEntitlement( StatusOr CloudChannelServiceTracingConnection::CreateEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::CreateEntitlementRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::CreateEntitlement"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateEntitlement(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateEntitlement(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudChannelServiceTracingConnection::CreateEntitlement( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::CreateEntitlement"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateEntitlement(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateEntitlement(ExperimentalTag{}, operation)); } future> @@ -222,26 +218,24 @@ CloudChannelServiceTracingConnection::ChangeParameters( StatusOr CloudChannelServiceTracingConnection::ChangeParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeParametersRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::ChangeParameters"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ChangeParameters(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ChangeParameters(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudChannelServiceTracingConnection::ChangeParameters( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::ChangeParameters"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ChangeParameters(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ChangeParameters(ExperimentalTag{}, operation)); } future> @@ -256,26 +250,24 @@ CloudChannelServiceTracingConnection::ChangeRenewalSettings( StatusOr CloudChannelServiceTracingConnection::ChangeRenewalSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::ChangeRenewalSettings"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ChangeRenewalSettings( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->ChangeRenewalSettings(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudChannelServiceTracingConnection::ChangeRenewalSettings( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::ChangeRenewalSettings"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ChangeRenewalSettings( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ChangeRenewalSettings( + ExperimentalTag{}, operation)); } future> @@ -289,26 +281,23 @@ CloudChannelServiceTracingConnection::ChangeOffer( StatusOr CloudChannelServiceTracingConnection::ChangeOffer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeOfferRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::ChangeOffer"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ChangeOffer(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ChangeOffer(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudChannelServiceTracingConnection::ChangeOffer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::ChangeOffer"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ChangeOffer(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ChangeOffer(ExperimentalTag{}, operation)); } future> @@ -322,26 +311,24 @@ CloudChannelServiceTracingConnection::StartPaidService( StatusOr CloudChannelServiceTracingConnection::StartPaidService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::StartPaidServiceRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::StartPaidService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StartPaidService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->StartPaidService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudChannelServiceTracingConnection::StartPaidService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::StartPaidService"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->StartPaidService(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->StartPaidService(ExperimentalTag{}, operation)); } future> @@ -356,26 +343,24 @@ CloudChannelServiceTracingConnection::SuspendEntitlement( StatusOr CloudChannelServiceTracingConnection::SuspendEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::SuspendEntitlementRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::SuspendEntitlement"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SuspendEntitlement(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SuspendEntitlement(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudChannelServiceTracingConnection::SuspendEntitlement( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::SuspendEntitlement"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SuspendEntitlement(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SuspendEntitlement( + ExperimentalTag{}, operation)); } future> @@ -389,26 +374,24 @@ CloudChannelServiceTracingConnection::CancelEntitlement( StatusOr CloudChannelServiceTracingConnection::CancelEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::CancelEntitlementRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::CancelEntitlement"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CancelEntitlement(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CancelEntitlement(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudChannelServiceTracingConnection::CancelEntitlement( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::CancelEntitlement"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CancelEntitlement(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CancelEntitlement(ExperimentalTag{}, operation)); } future> @@ -423,26 +406,24 @@ CloudChannelServiceTracingConnection::ActivateEntitlement( StatusOr CloudChannelServiceTracingConnection::ActivateEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ActivateEntitlementRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::ActivateEntitlement"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ActivateEntitlement(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ActivateEntitlement(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudChannelServiceTracingConnection::ActivateEntitlement( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::ActivateEntitlement"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ActivateEntitlement(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ActivateEntitlement( + ExperimentalTag{}, operation)); } future> @@ -457,26 +438,24 @@ CloudChannelServiceTracingConnection::TransferEntitlements( StatusOr CloudChannelServiceTracingConnection::TransferEntitlements( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::TransferEntitlementsRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::TransferEntitlements"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->TransferEntitlements( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->TransferEntitlements(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudChannelServiceTracingConnection::TransferEntitlements( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::TransferEntitlements"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->TransferEntitlements( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->TransferEntitlements( + ExperimentalTag{}, operation)); } future> @@ -493,29 +472,28 @@ CloudChannelServiceTracingConnection::TransferEntitlementsToGoogle( StatusOr CloudChannelServiceTracingConnection::TransferEntitlementsToGoogle( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& request) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::" "TransferEntitlementsToGoogle"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->TransferEntitlementsToGoogle( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->TransferEntitlementsToGoogle(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> CloudChannelServiceTracingConnection::TransferEntitlementsToGoogle( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "channel_v1::CloudChannelServiceConnection::" "TransferEntitlementsToGoogle"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->TransferEntitlementsToGoogle( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->TransferEntitlementsToGoogle(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.h b/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.h index ca7ed64779e54..52589cf09842b 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.h +++ b/google/cloud/channel/v1/internal/cloud_channel_tracing_connection.h @@ -71,12 +71,12 @@ class CloudChannelServiceTracingConnection override; StatusOr ProvisionCloudIdentity( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request) override; future> ProvisionCloudIdentity( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListEntitlements( @@ -99,12 +99,12 @@ class CloudChannelServiceTracingConnection override; StatusOr CreateEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::CreateEntitlementRequest const& request) override; future> CreateEntitlement( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ChangeParameters( @@ -112,12 +112,12 @@ class CloudChannelServiceTracingConnection override; StatusOr ChangeParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeParametersRequest const& request) override; future> ChangeParameters( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -126,24 +126,24 @@ class CloudChannelServiceTracingConnection override; StatusOr ChangeRenewalSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request) override; future> ChangeRenewalSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ChangeOffer( google::cloud::channel::v1::ChangeOfferRequest const& request) override; StatusOr ChangeOffer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeOfferRequest const& request) override; future> ChangeOffer( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StartPaidService( @@ -151,12 +151,12 @@ class CloudChannelServiceTracingConnection override; StatusOr StartPaidService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::StartPaidServiceRequest const& request) override; future> StartPaidService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> SuspendEntitlement( @@ -164,12 +164,12 @@ class CloudChannelServiceTracingConnection override; StatusOr SuspendEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::SuspendEntitlementRequest const& request) override; future> SuspendEntitlement( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -177,12 +177,12 @@ class CloudChannelServiceTracingConnection request) override; StatusOr CancelEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::CancelEntitlementRequest const& request) override; future> - CancelEntitlement(google::cloud::ExperimentalTag, + CancelEntitlement(ExperimentalTag, google::longrunning::Operation const& operation) override; future> ActivateEntitlement( @@ -190,12 +190,12 @@ class CloudChannelServiceTracingConnection override; StatusOr ActivateEntitlement( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ActivateEntitlementRequest const& request) override; future> ActivateEntitlement( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -204,13 +204,13 @@ class CloudChannelServiceTracingConnection override; StatusOr TransferEntitlements( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::TransferEntitlementsRequest const& request) override; future> TransferEntitlements( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -219,13 +219,13 @@ class CloudChannelServiceTracingConnection request) override; StatusOr TransferEntitlementsToGoogle( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& request) override; future> TransferEntitlementsToGoogle( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/channel/v1/mocks/mock_cloud_channel_connection.h b/google/cloud/channel/v1/mocks/mock_cloud_channel_connection.h index 42a57f90d02e8..b859a46c568ed 100644 --- a/google/cloud/channel/v1/mocks/mock_cloud_channel_connection.h +++ b/google/cloud/channel/v1/mocks/mock_cloud_channel_connection.h @@ -91,14 +91,14 @@ class MockCloudChannelServiceConnection (override)); MOCK_METHOD(StatusOr, ProvisionCloudIdentity, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request), (override)); MOCK_METHOD(future>, ProvisionCloudIdentity, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -131,13 +131,13 @@ class MockCloudChannelServiceConnection MOCK_METHOD( StatusOr, CreateEntitlement, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::CreateEntitlementRequest const& request), (override)); MOCK_METHOD(future>, CreateEntitlement, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -149,13 +149,13 @@ class MockCloudChannelServiceConnection MOCK_METHOD( StatusOr, ChangeParameters, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeParametersRequest const& request), (override)); MOCK_METHOD(future>, ChangeParameters, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -167,13 +167,13 @@ class MockCloudChannelServiceConnection MOCK_METHOD( StatusOr, ChangeRenewalSettings, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request), (override)); MOCK_METHOD(future>, ChangeRenewalSettings, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -183,13 +183,13 @@ class MockCloudChannelServiceConnection (override)); MOCK_METHOD(StatusOr, ChangeOffer, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeOfferRequest const& request), (override)); MOCK_METHOD(future>, ChangeOffer, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -201,13 +201,13 @@ class MockCloudChannelServiceConnection MOCK_METHOD( StatusOr, StartPaidService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::StartPaidServiceRequest const& request), (override)); MOCK_METHOD(future>, StartPaidService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -219,13 +219,13 @@ class MockCloudChannelServiceConnection MOCK_METHOD( StatusOr, SuspendEntitlement, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::SuspendEntitlementRequest const& request), (override)); MOCK_METHOD(future>, SuspendEntitlement, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -237,13 +237,13 @@ class MockCloudChannelServiceConnection MOCK_METHOD( StatusOr, CancelEntitlement, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::CancelEntitlementRequest const& request), (override)); MOCK_METHOD(future>, CancelEntitlement, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -255,13 +255,13 @@ class MockCloudChannelServiceConnection MOCK_METHOD( StatusOr, ActivateEntitlement, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ActivateEntitlementRequest const& request), (override)); MOCK_METHOD(future>, ActivateEntitlement, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -274,7 +274,7 @@ class MockCloudChannelServiceConnection MOCK_METHOD( StatusOr, TransferEntitlements, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::TransferEntitlementsRequest const& request), (override)); @@ -282,8 +282,7 @@ class MockCloudChannelServiceConnection future< StatusOr>, TransferEntitlements, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -295,14 +294,14 @@ class MockCloudChannelServiceConnection MOCK_METHOD( StatusOr, TransferEntitlementsToGoogle, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& request), (override)); MOCK_METHOD(future>, TransferEntitlementsToGoogle, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/channel/v1/mocks/mock_cloud_channel_reports_connection.h b/google/cloud/channel/v1/mocks/mock_cloud_channel_reports_connection.h index 21305499bb603..be633db33d264 100644 --- a/google/cloud/channel/v1/mocks/mock_cloud_channel_reports_connection.h +++ b/google/cloud/channel/v1/mocks/mock_cloud_channel_reports_connection.h @@ -54,15 +54,14 @@ class MockCloudChannelReportsServiceConnection (override)); MOCK_METHOD(StatusOr, RunReportJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::RunReportJobRequest const& request), (override)); MOCK_METHOD( future>, RunReportJob, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), diff --git a/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.cc b/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.cc index da594f7b79143..49347309781f0 100644 --- a/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.cc +++ b/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.cc @@ -104,7 +104,7 @@ CloudBuildConnectionImpl::CreateBuild( } StatusOr CloudBuildConnectionImpl::CreateBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v1::CreateBuildRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -120,8 +120,7 @@ StatusOr CloudBuildConnectionImpl::CreateBuild( future> CloudBuildConnectionImpl::CreateBuild( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CloudBuildConnectionImpl::RetryBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v1::RetryBuildRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -275,8 +274,7 @@ StatusOr CloudBuildConnectionImpl::RetryBuild( future> CloudBuildConnectionImpl::RetryBuild( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CloudBuildConnectionImpl::ApproveBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v1::ApproveBuildRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -368,8 +366,7 @@ StatusOr CloudBuildConnectionImpl::ApproveBuild( future> CloudBuildConnectionImpl::ApproveBuild( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CloudBuildConnectionImpl::RunBuildTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -558,8 +555,7 @@ CloudBuildConnectionImpl::RunBuildTrigger( future> CloudBuildConnectionImpl::RunBuildTrigger( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CloudBuildConnectionImpl::CreateWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -669,8 +665,7 @@ CloudBuildConnectionImpl::CreateWorkerPool( future> CloudBuildConnectionImpl::CreateWorkerPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CloudBuildConnectionImpl::DeleteWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -781,8 +776,7 @@ CloudBuildConnectionImpl::DeleteWorkerPool( future> CloudBuildConnectionImpl::DeleteWorkerPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CloudBuildConnectionImpl::UpdateWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -876,8 +870,7 @@ CloudBuildConnectionImpl::UpdateWorkerPool( future> CloudBuildConnectionImpl::UpdateWorkerPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v1::CreateBuildRequest const& request) override; future> CreateBuild( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetBuild( @@ -80,12 +80,12 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { override; StatusOr RetryBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v1::RetryBuildRequest const& request) override; future> RetryBuild( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ApproveBuild( @@ -93,12 +93,12 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { override; StatusOr ApproveBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v1::ApproveBuildRequest const& request) override; future> ApproveBuild( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateBuildTrigger( @@ -126,12 +126,12 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { override; StatusOr RunBuildTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request) override; future> RunBuildTrigger( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -145,12 +145,12 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { override; StatusOr CreateWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request) override; future> - CreateWorkerPool(google::cloud::ExperimentalTag, + CreateWorkerPool(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetWorkerPool( @@ -164,13 +164,13 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { override; StatusOr DeleteWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request) override; future> - DeleteWorkerPool(google::cloud::ExperimentalTag, + DeleteWorkerPool(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -179,12 +179,12 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { override; StatusOr UpdateWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request) override; future> - UpdateWorkerPool(google::cloud::ExperimentalTag, + UpdateWorkerPool(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListWorkerPools( diff --git a/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.cc b/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.cc index 06e02b13dc55d..bdf6de0efa9c6 100644 --- a/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.cc +++ b/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.cc @@ -44,26 +44,23 @@ CloudBuildTracingConnection::CreateBuild( StatusOr CloudBuildTracingConnection::CreateBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::CreateBuildRequest const& request) { auto span = internal::MakeSpan("cloudbuild_v1::CloudBuildConnection::CreateBuild"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateBuild(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateBuild(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudBuildTracingConnection::CreateBuild( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("cloudbuild_v1::CloudBuildConnection::CreateBuild"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateBuild(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateBuild(ExperimentalTag{}, operation)); } StatusOr @@ -106,26 +103,23 @@ CloudBuildTracingConnection::RetryBuild( StatusOr CloudBuildTracingConnection::RetryBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::RetryBuildRequest const& request) { auto span = internal::MakeSpan("cloudbuild_v1::CloudBuildConnection::RetryBuild"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RetryBuild(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RetryBuild(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudBuildTracingConnection::RetryBuild( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("cloudbuild_v1::CloudBuildConnection::RetryBuild"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RetryBuild(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RetryBuild(ExperimentalTag{}, operation)); } future> @@ -139,26 +133,23 @@ CloudBuildTracingConnection::ApproveBuild( StatusOr CloudBuildTracingConnection::ApproveBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::ApproveBuildRequest const& request) { auto span = internal::MakeSpan("cloudbuild_v1::CloudBuildConnection::ApproveBuild"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ApproveBuild(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ApproveBuild(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudBuildTracingConnection::ApproveBuild( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("cloudbuild_v1::CloudBuildConnection::ApproveBuild"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ApproveBuild(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ApproveBuild(ExperimentalTag{}, operation)); } StatusOr @@ -222,26 +213,23 @@ CloudBuildTracingConnection::RunBuildTrigger( StatusOr CloudBuildTracingConnection::RunBuildTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v1::CloudBuildConnection::RunBuildTrigger"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RunBuildTrigger(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RunBuildTrigger(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudBuildTracingConnection::RunBuildTrigger( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "cloudbuild_v1::CloudBuildConnection::RunBuildTrigger"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RunBuildTrigger(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RunBuildTrigger(ExperimentalTag{}, operation)); } StatusOr @@ -265,26 +253,24 @@ CloudBuildTracingConnection::CreateWorkerPool( StatusOr CloudBuildTracingConnection::CreateWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v1::CloudBuildConnection::CreateWorkerPool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateWorkerPool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateWorkerPool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudBuildTracingConnection::CreateWorkerPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "cloudbuild_v1::CloudBuildConnection::CreateWorkerPool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateWorkerPool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateWorkerPool(ExperimentalTag{}, operation)); } StatusOr @@ -308,27 +294,25 @@ CloudBuildTracingConnection::DeleteWorkerPool( StatusOr CloudBuildTracingConnection::DeleteWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v1::CloudBuildConnection::DeleteWorkerPool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteWorkerPool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteWorkerPool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudBuildTracingConnection::DeleteWorkerPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "cloudbuild_v1::CloudBuildConnection::DeleteWorkerPool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteWorkerPool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteWorkerPool(ExperimentalTag{}, operation)); } future> @@ -342,26 +326,24 @@ CloudBuildTracingConnection::UpdateWorkerPool( StatusOr CloudBuildTracingConnection::UpdateWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v1::CloudBuildConnection::UpdateWorkerPool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateWorkerPool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateWorkerPool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudBuildTracingConnection::UpdateWorkerPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "cloudbuild_v1::CloudBuildConnection::UpdateWorkerPool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateWorkerPool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateWorkerPool(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.h b/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.h index 82a8d721528ac..9e38b98f2dd82 100644 --- a/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.h +++ b/google/cloud/cloudbuild/v1/internal/cloud_build_tracing_connection.h @@ -44,12 +44,12 @@ class CloudBuildTracingConnection : public cloudbuild_v1::CloudBuildConnection { override; StatusOr CreateBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::CreateBuildRequest const& request) override; future> CreateBuild( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetBuild( @@ -68,12 +68,12 @@ class CloudBuildTracingConnection : public cloudbuild_v1::CloudBuildConnection { override; StatusOr RetryBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::RetryBuildRequest const& request) override; future> RetryBuild( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ApproveBuild( @@ -81,12 +81,12 @@ class CloudBuildTracingConnection : public cloudbuild_v1::CloudBuildConnection { override; StatusOr ApproveBuild( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::ApproveBuildRequest const& request) override; future> ApproveBuild( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateBuildTrigger( @@ -114,12 +114,12 @@ class CloudBuildTracingConnection : public cloudbuild_v1::CloudBuildConnection { override; StatusOr RunBuildTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request) override; future> RunBuildTrigger( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -133,12 +133,12 @@ class CloudBuildTracingConnection : public cloudbuild_v1::CloudBuildConnection { override; StatusOr CreateWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request) override; future> - CreateWorkerPool(google::cloud::ExperimentalTag, + CreateWorkerPool(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetWorkerPool( @@ -152,13 +152,13 @@ class CloudBuildTracingConnection : public cloudbuild_v1::CloudBuildConnection { override; StatusOr DeleteWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request) override; future> - DeleteWorkerPool(google::cloud::ExperimentalTag, + DeleteWorkerPool(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -167,12 +167,12 @@ class CloudBuildTracingConnection : public cloudbuild_v1::CloudBuildConnection { override; StatusOr UpdateWorkerPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request) override; future> - UpdateWorkerPool(google::cloud::ExperimentalTag, + UpdateWorkerPool(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListWorkerPools( diff --git a/google/cloud/cloudbuild/v1/mocks/mock_cloud_build_connection.h b/google/cloud/cloudbuild/v1/mocks/mock_cloud_build_connection.h index 8fbab190a83d9..75fa6bef1196b 100644 --- a/google/cloud/cloudbuild/v1/mocks/mock_cloud_build_connection.h +++ b/google/cloud/cloudbuild/v1/mocks/mock_cloud_build_connection.h @@ -53,13 +53,13 @@ class MockCloudBuildConnection : public cloudbuild_v1::CloudBuildConnection { MOCK_METHOD( StatusOr, CreateBuild, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::CreateBuildRequest const& request), (override)); MOCK_METHOD(future>, CreateBuild, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -85,13 +85,13 @@ class MockCloudBuildConnection : public cloudbuild_v1::CloudBuildConnection { MOCK_METHOD( StatusOr, RetryBuild, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::RetryBuildRequest const& request), (override)); MOCK_METHOD(future>, RetryBuild, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -102,13 +102,13 @@ class MockCloudBuildConnection : public cloudbuild_v1::CloudBuildConnection { MOCK_METHOD( StatusOr, ApproveBuild, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::ApproveBuildRequest const& request), (override)); MOCK_METHOD(future>, ApproveBuild, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -151,13 +151,13 @@ class MockCloudBuildConnection : public cloudbuild_v1::CloudBuildConnection { MOCK_METHOD( StatusOr, RunBuildTrigger, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request), (override)); MOCK_METHOD(future>, RunBuildTrigger, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -175,14 +175,14 @@ class MockCloudBuildConnection : public cloudbuild_v1::CloudBuildConnection { (override)); MOCK_METHOD(StatusOr, CreateWorkerPool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request), (override)); MOCK_METHOD(future>, CreateWorkerPool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -200,7 +200,7 @@ class MockCloudBuildConnection : public cloudbuild_v1::CloudBuildConnection { (override)); MOCK_METHOD(StatusOr, DeleteWorkerPool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request), (override)); @@ -209,8 +209,7 @@ class MockCloudBuildConnection : public cloudbuild_v1::CloudBuildConnection { future>, DeleteWorkerPool, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future>, @@ -220,14 +219,14 @@ class MockCloudBuildConnection : public cloudbuild_v1::CloudBuildConnection { (override)); MOCK_METHOD(StatusOr, UpdateWorkerPool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request), (override)); MOCK_METHOD(future>, UpdateWorkerPool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.cc b/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.cc index 2f18a74c16ac5..4837291d3d76e 100644 --- a/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.cc +++ b/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.cc @@ -109,7 +109,7 @@ RepositoryManagerConnectionImpl::CreateConnection( StatusOr RepositoryManagerConnectionImpl::CreateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v2::CreateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -125,8 +125,7 @@ RepositoryManagerConnectionImpl::CreateConnection( future> RepositoryManagerConnectionImpl::CreateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is RepositoryManagerConnectionImpl::UpdateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -270,8 +269,7 @@ RepositoryManagerConnectionImpl::UpdateConnection( future> RepositoryManagerConnectionImpl::UpdateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is RepositoryManagerConnectionImpl::DeleteConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -365,8 +363,7 @@ RepositoryManagerConnectionImpl::DeleteConnection( future> RepositoryManagerConnectionImpl::DeleteConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is RepositoryManagerConnectionImpl::CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -460,8 +457,7 @@ RepositoryManagerConnectionImpl::CreateRepository( future> RepositoryManagerConnectionImpl::CreateRepository( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is RepositoryManagerConnectionImpl::BatchCreateRepositories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -558,8 +554,7 @@ RepositoryManagerConnectionImpl::BatchCreateRepositories( future< StatusOr> RepositoryManagerConnectionImpl::BatchCreateRepositories( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is RepositoryManagerConnectionImpl::DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -703,8 +698,7 @@ RepositoryManagerConnectionImpl::DeleteRepository( future> RepositoryManagerConnectionImpl::DeleteRepository( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v2::CreateConnectionRequest const& request) override; future> - CreateConnection(google::cloud::ExperimentalTag, + CreateConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetConnection( @@ -80,12 +80,12 @@ class RepositoryManagerConnectionImpl override; StatusOr UpdateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request) override; future> - UpdateConnection(google::cloud::ExperimentalTag, + UpdateConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -94,12 +94,12 @@ class RepositoryManagerConnectionImpl override; StatusOr DeleteConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request) override; future> - DeleteConnection(google::cloud::ExperimentalTag, + DeleteConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -108,12 +108,12 @@ class RepositoryManagerConnectionImpl override; StatusOr CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request) override; future> - CreateRepository(google::cloud::ExperimentalTag, + CreateRepository(ExperimentalTag, google::longrunning::Operation const& operation) override; future BatchCreateRepositories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& request) override; future> BatchCreateRepositories( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetRepository( @@ -147,12 +147,12 @@ class RepositoryManagerConnectionImpl override; StatusOr DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request) override; future> - DeleteRepository(google::cloud::ExperimentalTag, + DeleteRepository(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.cc b/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.cc index fca105afcead6..7fd4089d6ca77 100644 --- a/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.cc +++ b/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.cc @@ -44,26 +44,24 @@ RepositoryManagerTracingConnection::CreateConnection( StatusOr RepositoryManagerTracingConnection::CreateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::CreateConnectionRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::CreateConnection"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateConnection(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateConnection(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RepositoryManagerTracingConnection::CreateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::CreateConnection"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateConnection(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateConnection(ExperimentalTag{}, operation)); } StatusOr @@ -98,26 +96,24 @@ RepositoryManagerTracingConnection::UpdateConnection( StatusOr RepositoryManagerTracingConnection::UpdateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::UpdateConnection"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateConnection(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateConnection(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RepositoryManagerTracingConnection::UpdateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::UpdateConnection"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateConnection(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateConnection(ExperimentalTag{}, operation)); } future> @@ -131,26 +127,24 @@ RepositoryManagerTracingConnection::DeleteConnection( StatusOr RepositoryManagerTracingConnection::DeleteConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::DeleteConnection"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteConnection(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteConnection(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RepositoryManagerTracingConnection::DeleteConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::DeleteConnection"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteConnection(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteConnection(ExperimentalTag{}, operation)); } future> @@ -164,26 +158,24 @@ RepositoryManagerTracingConnection::CreateRepository( StatusOr RepositoryManagerTracingConnection::CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::CreateRepository"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateRepository(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateRepository(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RepositoryManagerTracingConnection::CreateRepository( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::CreateRepository"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateRepository(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateRepository(ExperimentalTag{}, operation)); } future< @@ -200,28 +192,26 @@ RepositoryManagerTracingConnection::BatchCreateRepositories( StatusOr RepositoryManagerTracingConnection::BatchCreateRepositories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::BatchCreateRepositories"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->BatchCreateRepositories( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->BatchCreateRepositories(ExperimentalTag{}, NoAwaitTag{}, + request)); } future< StatusOr> RepositoryManagerTracingConnection::BatchCreateRepositories( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::BatchCreateRepositories"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->BatchCreateRepositories( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchCreateRepositories( + ExperimentalTag{}, operation)); } StatusOr @@ -256,26 +246,24 @@ RepositoryManagerTracingConnection::DeleteRepository( StatusOr RepositoryManagerTracingConnection::DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::DeleteRepository"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteRepository(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteRepository(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RepositoryManagerTracingConnection::DeleteRepository( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "cloudbuild_v2::RepositoryManagerConnection::DeleteRepository"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteRepository(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteRepository(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.h b/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.h index 4e777a34392be..756188442128e 100644 --- a/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.h +++ b/google/cloud/cloudbuild/v2/internal/repository_manager_tracing_connection.h @@ -46,12 +46,12 @@ class RepositoryManagerTracingConnection override; StatusOr CreateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::CreateConnectionRequest const& request) override; future> - CreateConnection(google::cloud::ExperimentalTag, + CreateConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetConnection( @@ -68,12 +68,12 @@ class RepositoryManagerTracingConnection override; StatusOr UpdateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request) override; future> - UpdateConnection(google::cloud::ExperimentalTag, + UpdateConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -82,12 +82,12 @@ class RepositoryManagerTracingConnection override; StatusOr DeleteConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request) override; future> - DeleteConnection(google::cloud::ExperimentalTag, + DeleteConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -96,12 +96,12 @@ class RepositoryManagerTracingConnection override; StatusOr CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request) override; future> - CreateRepository(google::cloud::ExperimentalTag, + CreateRepository(ExperimentalTag, google::longrunning::Operation const& operation) override; future BatchCreateRepositories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& request) override; future> BatchCreateRepositories( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetRepository( @@ -135,12 +135,12 @@ class RepositoryManagerTracingConnection override; StatusOr DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request) override; future> - DeleteRepository(google::cloud::ExperimentalTag, + DeleteRepository(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/cloudbuild/v2/mocks/mock_repository_manager_connection.h b/google/cloud/cloudbuild/v2/mocks/mock_repository_manager_connection.h index 9e2584c2b1a61..0ddd0ff21f03d 100644 --- a/google/cloud/cloudbuild/v2/mocks/mock_repository_manager_connection.h +++ b/google/cloud/cloudbuild/v2/mocks/mock_repository_manager_connection.h @@ -54,14 +54,14 @@ class MockRepositoryManagerConnection (override)); MOCK_METHOD(StatusOr, CreateConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::CreateConnectionRequest const& request), (override)); MOCK_METHOD(future>, CreateConnection, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -83,14 +83,14 @@ class MockRepositoryManagerConnection (override)); MOCK_METHOD(StatusOr, UpdateConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request), (override)); MOCK_METHOD(future>, UpdateConnection, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -102,7 +102,7 @@ class MockRepositoryManagerConnection (override)); MOCK_METHOD(StatusOr, DeleteConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request), (override)); @@ -110,8 +110,7 @@ class MockRepositoryManagerConnection MOCK_METHOD( future>, DeleteConnection, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future>, @@ -121,14 +120,14 @@ class MockRepositoryManagerConnection (override)); MOCK_METHOD(StatusOr, CreateRepository, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request), (override)); MOCK_METHOD(future>, CreateRepository, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -142,7 +141,7 @@ class MockRepositoryManagerConnection MOCK_METHOD( StatusOr, BatchCreateRepositories, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& request), (override)); @@ -151,8 +150,7 @@ class MockRepositoryManagerConnection future>, BatchCreateRepositories, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -174,7 +172,7 @@ class MockRepositoryManagerConnection (override)); MOCK_METHOD(StatusOr, DeleteRepository, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request), (override)); @@ -182,8 +180,7 @@ class MockRepositoryManagerConnection MOCK_METHOD( future>, DeleteRepository, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.cc b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.cc index 8d41e3c0bd1c1..7fb568ece1b99 100644 --- a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.cc +++ b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.cc @@ -123,7 +123,7 @@ ConsumerProcurementServiceConnectionImpl::PlaceOrder( StatusOr ConsumerProcurementServiceConnectionImpl::PlaceOrder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::commerce::consumer::procurement::v1::PlaceOrderRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -140,8 +140,7 @@ ConsumerProcurementServiceConnectionImpl::PlaceOrder( future> ConsumerProcurementServiceConnectionImpl::PlaceOrder( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is PlaceOrder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::commerce::consumer::procurement::v1:: PlaceOrderRequest const& request) override; future> - PlaceOrder(google::cloud::ExperimentalTag, + PlaceOrder(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetOrder( diff --git a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.cc b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.cc index 2df9a66c40077..ede4ec82ac47a 100644 --- a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.cc +++ b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.cc @@ -50,7 +50,7 @@ ConsumerProcurementServiceTracingConnection::PlaceOrder( StatusOr ConsumerProcurementServiceTracingConnection::PlaceOrder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::commerce::consumer::procurement::v1::PlaceOrderRequest const& request) { auto span = internal::MakeSpan( @@ -58,21 +58,18 @@ ConsumerProcurementServiceTracingConnection::PlaceOrder( "PlaceOrder"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PlaceOrder(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PlaceOrder(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConsumerProcurementServiceTracingConnection::PlaceOrder( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "commerce_consumer_procurement_v1::ConsumerProcurementServiceConnection::" "PlaceOrder"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PlaceOrder(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->PlaceOrder(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.h b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.h index 7e362d76a9889..9041ada913e8a 100644 --- a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.h +++ b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_tracing_connection.h @@ -49,12 +49,12 @@ class ConsumerProcurementServiceTracingConnection PlaceOrderRequest const& request) override; StatusOr PlaceOrder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::commerce::consumer::procurement::v1:: PlaceOrderRequest const& request) override; future> - PlaceOrder(google::cloud::ExperimentalTag, + PlaceOrder(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetOrder( diff --git a/google/cloud/commerce/consumer/procurement/v1/mocks/mock_consumer_procurement_connection.h b/google/cloud/commerce/consumer/procurement/v1/mocks/mock_consumer_procurement_connection.h index 581ca00cb6bcf..67060e8434498 100644 --- a/google/cloud/commerce/consumer/procurement/v1/mocks/mock_consumer_procurement_connection.h +++ b/google/cloud/commerce/consumer/procurement/v1/mocks/mock_consumer_procurement_connection.h @@ -58,7 +58,7 @@ class MockConsumerProcurementServiceConnection (override)); MOCK_METHOD(StatusOr, PlaceOrder, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::commerce::consumer::procurement::v1:: PlaceOrderRequest const& request), (override)); @@ -67,8 +67,7 @@ class MockConsumerProcurementServiceConnection future< StatusOr>, PlaceOrder, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/composer/v1/internal/environments_connection_impl.cc b/google/cloud/composer/v1/internal/environments_connection_impl.cc index c912e897ae3a1..bfae2ed3a21af 100644 --- a/google/cloud/composer/v1/internal/environments_connection_impl.cc +++ b/google/cloud/composer/v1/internal/environments_connection_impl.cc @@ -107,7 +107,7 @@ EnvironmentsConnectionImpl::CreateEnvironment( StatusOr EnvironmentsConnectionImpl::CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::orchestration::airflow::service::v1:: CreateEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -125,8 +125,7 @@ EnvironmentsConnectionImpl::CreateEnvironment( future< StatusOr> EnvironmentsConnectionImpl::CreateEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EnvironmentsConnectionImpl::UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::orchestration::airflow::service::v1:: UpdateEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -277,8 +276,7 @@ EnvironmentsConnectionImpl::UpdateEnvironment( future< StatusOr> EnvironmentsConnectionImpl::UpdateEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EnvironmentsConnectionImpl::DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::orchestration::airflow::service::v1:: DeleteEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -376,8 +374,7 @@ EnvironmentsConnectionImpl::DeleteEnvironment( future> EnvironmentsConnectionImpl::DeleteEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EnvironmentsConnectionImpl::SaveSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::orchestration::airflow::service::v1:: SaveSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -781,8 +778,7 @@ EnvironmentsConnectionImpl::SaveSnapshot( future> EnvironmentsConnectionImpl::SaveSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EnvironmentsConnectionImpl::LoadSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::orchestration::airflow::service::v1:: LoadSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -881,8 +877,7 @@ EnvironmentsConnectionImpl::LoadSnapshot( future> EnvironmentsConnectionImpl::LoadSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EnvironmentsConnectionImpl::DatabaseFailover( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::orchestration::airflow::service::v1:: DatabaseFailoverRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -982,8 +977,7 @@ EnvironmentsConnectionImpl::DatabaseFailover( future> EnvironmentsConnectionImpl::DatabaseFailover( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::orchestration::airflow::service::v1:: CreateEnvironmentRequest const& request) override; future< StatusOr> - CreateEnvironment(google::cloud::ExperimentalTag, + CreateEnvironment(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -80,13 +80,13 @@ class EnvironmentsConnectionImpl : public composer_v1::EnvironmentsConnection { UpdateEnvironmentRequest const& request) override; StatusOr UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::orchestration::airflow::service::v1:: UpdateEnvironmentRequest const& request) override; future< StatusOr> - UpdateEnvironment(google::cloud::ExperimentalTag, + UpdateEnvironment(ExperimentalTag, google::longrunning::Operation const& operation) override; future DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::orchestration::airflow::service::v1:: DeleteEnvironmentRequest const& request) override; future> - DeleteEnvironment(google::cloud::ExperimentalTag, + DeleteEnvironment(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr SaveSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::orchestration::airflow::service::v1:: SaveSnapshotRequest const& request) override; future> - SaveSnapshot(google::cloud::ExperimentalTag, + SaveSnapshot(ExperimentalTag, google::longrunning::Operation const& operation) override; future LoadSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::orchestration::airflow::service::v1:: LoadSnapshotRequest const& request) override; future> - LoadSnapshot(google::cloud::ExperimentalTag, + LoadSnapshot(ExperimentalTag, google::longrunning::Operation const& operation) override; future DatabaseFailover( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::orchestration::airflow::service::v1:: DatabaseFailoverRequest const& request) override; future> - DatabaseFailover(google::cloud::ExperimentalTag, + DatabaseFailover(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr EnvironmentsTracingConnection::CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: CreateEnvironmentRequest const& request) { auto span = internal::MakeSpan( "composer_v1::EnvironmentsConnection::CreateEnvironment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateEnvironment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateEnvironment(ExperimentalTag{}, NoAwaitTag{}, request)); } future< StatusOr> EnvironmentsTracingConnection::CreateEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "composer_v1::EnvironmentsConnection::CreateEnvironment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateEnvironment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateEnvironment(ExperimentalTag{}, operation)); } StatusOr @@ -106,28 +104,26 @@ EnvironmentsTracingConnection::UpdateEnvironment( StatusOr EnvironmentsTracingConnection::UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: UpdateEnvironmentRequest const& request) { auto span = internal::MakeSpan( "composer_v1::EnvironmentsConnection::UpdateEnvironment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateEnvironment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateEnvironment(ExperimentalTag{}, NoAwaitTag{}, request)); } future< StatusOr> EnvironmentsTracingConnection::UpdateEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "composer_v1::EnvironmentsConnection::UpdateEnvironment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateEnvironment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateEnvironment(ExperimentalTag{}, operation)); } future EnvironmentsTracingConnection::DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: DeleteEnvironmentRequest const& request) { auto span = internal::MakeSpan( "composer_v1::EnvironmentsConnection::DeleteEnvironment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteEnvironment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteEnvironment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EnvironmentsTracingConnection::DeleteEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "composer_v1::EnvironmentsConnection::DeleteEnvironment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteEnvironment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteEnvironment(ExperimentalTag{}, operation)); } StatusOr EnvironmentsTracingConnection::SaveSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: SaveSnapshotRequest const& request) { auto span = internal::MakeSpan("composer_v1::EnvironmentsConnection::SaveSnapshot"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SaveSnapshot(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SaveSnapshot(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EnvironmentsTracingConnection::SaveSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("composer_v1::EnvironmentsConnection::SaveSnapshot"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SaveSnapshot(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SaveSnapshot(ExperimentalTag{}, operation)); } future EnvironmentsTracingConnection::LoadSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: LoadSnapshotRequest const& request) { auto span = internal::MakeSpan("composer_v1::EnvironmentsConnection::LoadSnapshot"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->LoadSnapshot(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->LoadSnapshot(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EnvironmentsTracingConnection::LoadSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("composer_v1::EnvironmentsConnection::LoadSnapshot"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->LoadSnapshot(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->LoadSnapshot(ExperimentalTag{}, operation)); } future EnvironmentsTracingConnection::DatabaseFailover( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: DatabaseFailoverRequest const& request) { auto span = internal::MakeSpan( "composer_v1::EnvironmentsConnection::DatabaseFailover"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DatabaseFailover(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DatabaseFailover(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EnvironmentsTracingConnection::DatabaseFailover( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "composer_v1::EnvironmentsConnection::DatabaseFailover"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DatabaseFailover(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DatabaseFailover(ExperimentalTag{}, operation)); } StatusOr CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: CreateEnvironmentRequest const& request) override; future< StatusOr> - CreateEnvironment(google::cloud::ExperimentalTag, + CreateEnvironment(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -69,13 +69,13 @@ class EnvironmentsTracingConnection UpdateEnvironmentRequest const& request) override; StatusOr UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: UpdateEnvironmentRequest const& request) override; future< StatusOr> - UpdateEnvironment(google::cloud::ExperimentalTag, + UpdateEnvironment(ExperimentalTag, google::longrunning::Operation const& operation) override; future DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: DeleteEnvironmentRequest const& request) override; future> - DeleteEnvironment(google::cloud::ExperimentalTag, + DeleteEnvironment(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr SaveSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: SaveSnapshotRequest const& request) override; future> - SaveSnapshot(google::cloud::ExperimentalTag, + SaveSnapshot(ExperimentalTag, google::longrunning::Operation const& operation) override; future LoadSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: LoadSnapshotRequest const& request) override; future> - LoadSnapshot(google::cloud::ExperimentalTag, + LoadSnapshot(ExperimentalTag, google::longrunning::Operation const& operation) override; future DatabaseFailover( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: DatabaseFailoverRequest const& request) override; future> - DatabaseFailover(google::cloud::ExperimentalTag, + DatabaseFailover(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr, CreateEnvironment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: CreateEnvironmentRequest const& request), (override)); @@ -64,8 +64,7 @@ class MockEnvironmentsConnection : public composer_v1::EnvironmentsConnection { future>, CreateEnvironment, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -92,7 +91,7 @@ class MockEnvironmentsConnection : public composer_v1::EnvironmentsConnection { (override)); MOCK_METHOD(StatusOr, UpdateEnvironment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: UpdateEnvironmentRequest const& request), (override)); @@ -101,8 +100,7 @@ class MockEnvironmentsConnection : public composer_v1::EnvironmentsConnection { future>, UpdateEnvironment, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future, DeleteEnvironment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: DeleteEnvironmentRequest const& request), (override)); @@ -121,7 +119,7 @@ class MockEnvironmentsConnection : public composer_v1::EnvironmentsConnection { MOCK_METHOD(future>, DeleteEnvironment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -228,7 +226,7 @@ class MockEnvironmentsConnection : public composer_v1::EnvironmentsConnection { (override)); MOCK_METHOD(StatusOr, SaveSnapshot, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: SaveSnapshotRequest const& request), (override)); @@ -236,7 +234,7 @@ class MockEnvironmentsConnection : public composer_v1::EnvironmentsConnection { MOCK_METHOD(future>, SaveSnapshot, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -248,7 +246,7 @@ class MockEnvironmentsConnection : public composer_v1::EnvironmentsConnection { (override)); MOCK_METHOD(StatusOr, LoadSnapshot, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: LoadSnapshotRequest const& request), (override)); @@ -256,7 +254,7 @@ class MockEnvironmentsConnection : public composer_v1::EnvironmentsConnection { MOCK_METHOD(future>, LoadSnapshot, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -268,7 +266,7 @@ class MockEnvironmentsConnection : public composer_v1::EnvironmentsConnection { (override)); MOCK_METHOD(StatusOr, DatabaseFailover, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: DatabaseFailoverRequest const& request), (override)); @@ -276,7 +274,7 @@ class MockEnvironmentsConnection : public composer_v1::EnvironmentsConnection { MOCK_METHOD(future>, DatabaseFailover, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.cc b/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.cc index 5c911948552c5..00a137fdb4d95 100644 --- a/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.cc +++ b/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.cc @@ -59,27 +59,25 @@ AddressesTracingConnection::DeleteAddress( StatusOr AddressesTracingConnection::DeleteAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const& request) { auto span = internal::MakeSpan( "compute_addresses_v1::AddressesConnection::DeleteAddress"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAddress(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteAddress(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AddressesTracingConnection::DeleteAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_addresses_v1::AddressesConnection::DeleteAddress"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteAddress(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteAddress(ExperimentalTag{}, operation)); } StatusOr @@ -104,27 +102,25 @@ AddressesTracingConnection::InsertAddress( StatusOr AddressesTracingConnection::InsertAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const& request) { auto span = internal::MakeSpan( "compute_addresses_v1::AddressesConnection::InsertAddress"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertAddress(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertAddress(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AddressesTracingConnection::InsertAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_addresses_v1::AddressesConnection::InsertAddress"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InsertAddress(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->InsertAddress(ExperimentalTag{}, operation)); } StreamRange @@ -149,26 +145,24 @@ AddressesTracingConnection::Move( StatusOr AddressesTracingConnection::Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::MoveRequest const& request) { auto span = internal::MakeSpan("compute_addresses_v1::AddressesConnection::Move"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, - child_->Move(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->Move(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AddressesTracingConnection::Move( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_addresses_v1::AddressesConnection::Move"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Move(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Move(ExperimentalTag{}, operation)); } future> @@ -183,27 +177,25 @@ AddressesTracingConnection::SetLabels( StatusOr AddressesTracingConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& request) { auto span = internal::MakeSpan( "compute_addresses_v1::AddressesConnection::SetLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AddressesTracingConnection::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_addresses_v1::AddressesConnection::SetLabels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetLabels(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.h b/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.h index e310f8ca98b65..7a73571fd0dc9 100644 --- a/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.h +++ b/google/cloud/compute/addresses/v1/internal/addresses_tracing_connection.h @@ -51,12 +51,12 @@ class AddressesTracingConnection request) override; StatusOr DeleteAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const& request) override; future> DeleteAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetAddress( @@ -68,12 +68,12 @@ class AddressesTracingConnection request) override; StatusOr InsertAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const& request) override; future> InsertAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListAddresses( @@ -85,12 +85,12 @@ class AddressesTracingConnection override; StatusOr Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::MoveRequest const& request) override; future> Move( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetLabels( @@ -98,12 +98,12 @@ class AddressesTracingConnection request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/addresses/v1/mocks/mock_addresses_connection.h b/google/cloud/compute/addresses/v1/mocks/mock_addresses_connection.h index 3b6e75b686020..e80bd46c93c8f 100644 --- a/google/cloud/compute/addresses/v1/mocks/mock_addresses_connection.h +++ b/google/cloud/compute/addresses/v1/mocks/mock_addresses_connection.h @@ -64,14 +64,14 @@ class MockAddressesConnection MOCK_METHOD( StatusOr, DeleteAddress, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::DeleteAddressRequest const& request), (override)); MOCK_METHOD(future>, DeleteAddress, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -90,14 +90,14 @@ class MockAddressesConnection MOCK_METHOD( StatusOr, InsertAddress, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::InsertAddressRequest const& request), (override)); MOCK_METHOD(future>, InsertAddress, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -114,13 +114,13 @@ class MockAddressesConnection MOCK_METHOD( StatusOr, Move, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::MoveRequest const& request), (override)); MOCK_METHOD(future>, Move, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -132,14 +132,14 @@ class MockAddressesConnection MOCK_METHOD( StatusOr, SetLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::addresses::v1::SetLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.cc b/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.cc index d9db9ab066eeb..023095741141d 100644 --- a/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.cc +++ b/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.cc @@ -60,27 +60,26 @@ AutoscalersTracingConnection::DeleteAutoscaler( StatusOr AutoscalersTracingConnection::DeleteAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1::DeleteAutoscalerRequest const& request) { auto span = internal::MakeSpan( "compute_autoscalers_v1::AutoscalersConnection::DeleteAutoscaler"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAutoscaler(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteAutoscaler(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AutoscalersTracingConnection::DeleteAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_autoscalers_v1::AutoscalersConnection::DeleteAutoscaler"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteAutoscaler(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteAutoscaler(ExperimentalTag{}, operation)); } StatusOr @@ -105,27 +104,26 @@ AutoscalersTracingConnection::InsertAutoscaler( StatusOr AutoscalersTracingConnection::InsertAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1::InsertAutoscalerRequest const& request) { auto span = internal::MakeSpan( "compute_autoscalers_v1::AutoscalersConnection::InsertAutoscaler"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertAutoscaler(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->InsertAutoscaler(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AutoscalersTracingConnection::InsertAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_autoscalers_v1::AutoscalersConnection::InsertAutoscaler"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertAutoscaler(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertAutoscaler(ExperimentalTag{}, operation)); } StreamRange @@ -153,27 +151,25 @@ AutoscalersTracingConnection::PatchAutoscaler( StatusOr AutoscalersTracingConnection::PatchAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1::PatchAutoscalerRequest const& request) { auto span = internal::MakeSpan( "compute_autoscalers_v1::AutoscalersConnection::PatchAutoscaler"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchAutoscaler(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchAutoscaler(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AutoscalersTracingConnection::PatchAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_autoscalers_v1::AutoscalersConnection::PatchAutoscaler"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->PatchAutoscaler(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->PatchAutoscaler(ExperimentalTag{}, operation)); } future> @@ -188,27 +184,26 @@ AutoscalersTracingConnection::UpdateAutoscaler( StatusOr AutoscalersTracingConnection::UpdateAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1::UpdateAutoscalerRequest const& request) { auto span = internal::MakeSpan( "compute_autoscalers_v1::AutoscalersConnection::UpdateAutoscaler"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateAutoscaler(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateAutoscaler(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AutoscalersTracingConnection::UpdateAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_autoscalers_v1::AutoscalersConnection::UpdateAutoscaler"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateAutoscaler(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateAutoscaler(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.h b/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.h index 22c9d3133f6f9..260e65bc397bf 100644 --- a/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.h +++ b/google/cloud/compute/autoscalers/v1/internal/autoscalers_tracing_connection.h @@ -51,12 +51,12 @@ class AutoscalersTracingConnection DeleteAutoscalerRequest const& request) override; StatusOr DeleteAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: DeleteAutoscalerRequest const& request) override; future> DeleteAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetAutoscaler( @@ -68,12 +68,12 @@ class AutoscalersTracingConnection InsertAutoscalerRequest const& request) override; StatusOr InsertAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: InsertAutoscalerRequest const& request) override; future> InsertAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListAutoscalers( @@ -85,12 +85,12 @@ class AutoscalersTracingConnection PatchAutoscalerRequest const& request) override; StatusOr PatchAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: PatchAutoscalerRequest const& request) override; future> PatchAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> UpdateAutoscaler( @@ -98,12 +98,12 @@ class AutoscalersTracingConnection UpdateAutoscalerRequest const& request) override; StatusOr UpdateAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: UpdateAutoscalerRequest const& request) override; future> UpdateAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/autoscalers/v1/mocks/mock_autoscalers_connection.h b/google/cloud/compute/autoscalers/v1/mocks/mock_autoscalers_connection.h index eb236958cbd07..af5721382c3de 100644 --- a/google/cloud/compute/autoscalers/v1/mocks/mock_autoscalers_connection.h +++ b/google/cloud/compute/autoscalers/v1/mocks/mock_autoscalers_connection.h @@ -64,14 +64,14 @@ class MockAutoscalersConnection MOCK_METHOD(StatusOr, DeleteAutoscaler, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: DeleteAutoscalerRequest const& request), (override)); MOCK_METHOD(future>, DeleteAutoscaler, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -89,14 +89,14 @@ class MockAutoscalersConnection MOCK_METHOD(StatusOr, InsertAutoscaler, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: InsertAutoscalerRequest const& request), (override)); MOCK_METHOD(future>, InsertAutoscaler, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -115,14 +115,14 @@ class MockAutoscalersConnection MOCK_METHOD(StatusOr, PatchAutoscaler, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: PatchAutoscalerRequest const& request), (override)); MOCK_METHOD(future>, PatchAutoscaler, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -134,14 +134,14 @@ class MockAutoscalersConnection MOCK_METHOD(StatusOr, UpdateAutoscaler, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::autoscalers::v1:: UpdateAutoscalerRequest const& request), (override)); MOCK_METHOD(future>, UpdateAutoscaler, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.cc b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.cc index 31417e521e370..6c99c92106052 100644 --- a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.cc +++ b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.cc @@ -45,27 +45,25 @@ BackendBucketsTracingConnection::AddSignedUrlKey( StatusOr BackendBucketsTracingConnection::AddSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: AddSignedUrlKeyRequest const& request) { auto span = internal::MakeSpan( "compute_backend_buckets_v1::BackendBucketsConnection::AddSignedUrlKey"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddSignedUrlKey(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddSignedUrlKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackendBucketsTracingConnection::AddSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_backend_buckets_v1::BackendBucketsConnection::AddSignedUrlKey"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->AddSignedUrlKey(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->AddSignedUrlKey(ExperimentalTag{}, operation)); } future> @@ -82,7 +80,7 @@ BackendBucketsTracingConnection::DeleteBackendBucket( StatusOr BackendBucketsTracingConnection::DeleteBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: DeleteBackendBucketRequest const& request) { auto span = internal::MakeSpan( @@ -90,21 +88,20 @@ BackendBucketsTracingConnection::DeleteBackendBucket( "DeleteBackendBucket"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteBackendBucket(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteBackendBucket(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackendBucketsTracingConnection::DeleteBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_backend_buckets_v1::BackendBucketsConnection::" "DeleteBackendBucket"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteBackendBucket(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteBackendBucket( + ExperimentalTag{}, operation)); } future> @@ -121,7 +118,7 @@ BackendBucketsTracingConnection::DeleteSignedUrlKey( StatusOr BackendBucketsTracingConnection::DeleteSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: DeleteSignedUrlKeyRequest const& request) { auto span = internal::MakeSpan( @@ -129,21 +126,20 @@ BackendBucketsTracingConnection::DeleteSignedUrlKey( "DeleteSignedUrlKey"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSignedUrlKey(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteSignedUrlKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackendBucketsTracingConnection::DeleteSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_backend_buckets_v1::BackendBucketsConnection::" "DeleteSignedUrlKey"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteSignedUrlKey(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteSignedUrlKey( + ExperimentalTag{}, operation)); } StatusOr @@ -180,7 +176,7 @@ BackendBucketsTracingConnection::InsertBackendBucket( StatusOr BackendBucketsTracingConnection::InsertBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: InsertBackendBucketRequest const& request) { auto span = internal::MakeSpan( @@ -188,21 +184,20 @@ BackendBucketsTracingConnection::InsertBackendBucket( "InsertBackendBucket"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertBackendBucket(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->InsertBackendBucket(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackendBucketsTracingConnection::InsertBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_backend_buckets_v1::BackendBucketsConnection::" "InsertBackendBucket"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InsertBackendBucket(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertBackendBucket( + ExperimentalTag{}, operation)); } StreamRange @@ -233,7 +228,7 @@ BackendBucketsTracingConnection::PatchBackendBucket( StatusOr BackendBucketsTracingConnection::PatchBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: PatchBackendBucketRequest const& request) { auto span = internal::MakeSpan( @@ -241,21 +236,20 @@ BackendBucketsTracingConnection::PatchBackendBucket( "PatchBackendBucket"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchBackendBucket(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PatchBackendBucket(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackendBucketsTracingConnection::PatchBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_backend_buckets_v1::BackendBucketsConnection::" "PatchBackendBucket"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchBackendBucket(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchBackendBucket( + ExperimentalTag{}, operation)); } future> @@ -272,29 +266,28 @@ BackendBucketsTracingConnection::SetEdgeSecurityPolicy( StatusOr BackendBucketsTracingConnection::SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: SetEdgeSecurityPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_backend_buckets_v1::BackendBucketsConnection::" "SetEdgeSecurityPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->SetEdgeSecurityPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackendBucketsTracingConnection::SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_backend_buckets_v1::BackendBucketsConnection::" "SetEdgeSecurityPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetEdgeSecurityPolicy( + ExperimentalTag{}, operation)); } StatusOr @@ -332,7 +325,7 @@ BackendBucketsTracingConnection::UpdateBackendBucket( StatusOr BackendBucketsTracingConnection::UpdateBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: UpdateBackendBucketRequest const& request) { auto span = internal::MakeSpan( @@ -340,21 +333,20 @@ BackendBucketsTracingConnection::UpdateBackendBucket( "UpdateBackendBucket"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateBackendBucket(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateBackendBucket(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackendBucketsTracingConnection::UpdateBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_backend_buckets_v1::BackendBucketsConnection::" "UpdateBackendBucket"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateBackendBucket(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateBackendBucket( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.h b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.h index ae709620b524a..cd8fc5ac9b6fd 100644 --- a/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.h +++ b/google/cloud/compute/backend_buckets/v1/internal/backend_buckets_tracing_connection.h @@ -46,12 +46,12 @@ class BackendBucketsTracingConnection AddSignedUrlKeyRequest const& request) override; StatusOr AddSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: AddSignedUrlKeyRequest const& request) override; future> AddSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -59,13 +59,13 @@ class BackendBucketsTracingConnection DeleteBackendBucketRequest const& request) override; StatusOr DeleteBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: DeleteBackendBucketRequest const& request) override; future> DeleteBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -73,13 +73,13 @@ class BackendBucketsTracingConnection DeleteSignedUrlKeyRequest const& request) override; StatusOr DeleteSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: DeleteSignedUrlKeyRequest const& request) override; future> DeleteSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetBackendBucket( @@ -95,13 +95,13 @@ class BackendBucketsTracingConnection InsertBackendBucketRequest const& request) override; StatusOr InsertBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: InsertBackendBucketRequest const& request) override; future> InsertBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -113,13 +113,13 @@ class BackendBucketsTracingConnection PatchBackendBucketRequest const& request) override; StatusOr PatchBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: PatchBackendBucketRequest const& request) override; future> PatchBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -128,13 +128,13 @@ class BackendBucketsTracingConnection SetEdgeSecurityPolicyRequest const& request) override; StatusOr SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: SetEdgeSecurityPolicyRequest const& request) override; future> SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -150,13 +150,13 @@ class BackendBucketsTracingConnection UpdateBackendBucketRequest const& request) override; StatusOr UpdateBackendBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: UpdateBackendBucketRequest const& request) override; future> UpdateBackendBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/backend_buckets/v1/mocks/mock_backend_buckets_connection.h b/google/cloud/compute/backend_buckets/v1/mocks/mock_backend_buckets_connection.h index 19a5140ee58bc..f71d92a4c6ccf 100644 --- a/google/cloud/compute/backend_buckets/v1/mocks/mock_backend_buckets_connection.h +++ b/google/cloud/compute/backend_buckets/v1/mocks/mock_backend_buckets_connection.h @@ -55,14 +55,14 @@ class MockBackendBucketsConnection MOCK_METHOD(StatusOr, AddSignedUrlKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: AddSignedUrlKeyRequest const& request), (override)); MOCK_METHOD(future>, AddSignedUrlKey, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -74,14 +74,14 @@ class MockBackendBucketsConnection MOCK_METHOD(StatusOr, DeleteBackendBucket, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: DeleteBackendBucketRequest const& request), (override)); MOCK_METHOD(future>, DeleteBackendBucket, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -93,14 +93,14 @@ class MockBackendBucketsConnection MOCK_METHOD(StatusOr, DeleteSignedUrlKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: DeleteSignedUrlKeyRequest const& request), (override)); MOCK_METHOD(future>, DeleteSignedUrlKey, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -123,14 +123,14 @@ class MockBackendBucketsConnection MOCK_METHOD(StatusOr, InsertBackendBucket, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: InsertBackendBucketRequest const& request), (override)); MOCK_METHOD(future>, InsertBackendBucket, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -148,14 +148,14 @@ class MockBackendBucketsConnection MOCK_METHOD(StatusOr, PatchBackendBucket, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: PatchBackendBucketRequest const& request), (override)); MOCK_METHOD(future>, PatchBackendBucket, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -167,14 +167,14 @@ class MockBackendBucketsConnection MOCK_METHOD(StatusOr, SetEdgeSecurityPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: SetEdgeSecurityPolicyRequest const& request), (override)); MOCK_METHOD(future>, SetEdgeSecurityPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -198,14 +198,14 @@ class MockBackendBucketsConnection MOCK_METHOD(StatusOr, UpdateBackendBucket, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_buckets::v1:: UpdateBackendBucketRequest const& request), (override)); MOCK_METHOD(future>, UpdateBackendBucket, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.cc b/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.cc index 0c38d1c02c537..a53404ff0e3f1 100644 --- a/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.cc +++ b/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.cc @@ -47,7 +47,7 @@ BackendServicesTracingConnection::AddSignedUrlKey( StatusOr BackendServicesTracingConnection::AddSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: AddSignedUrlKeyRequest const& request) { auto span = internal::MakeSpan( @@ -55,21 +55,19 @@ BackendServicesTracingConnection::AddSignedUrlKey( "AddSignedUrlKey"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddSignedUrlKey(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddSignedUrlKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackendServicesTracingConnection::AddSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "AddSignedUrlKey"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->AddSignedUrlKey(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->AddSignedUrlKey(ExperimentalTag{}, operation)); } StreamRange BackendServicesTracingConnection::DeleteBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: DeleteBackendServiceRequest const& request) { auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "DeleteBackendService"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteBackendService( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteBackendService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackendServicesTracingConnection::DeleteBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "DeleteBackendService"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteBackendService( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteBackendService( + ExperimentalTag{}, operation)); } future> @@ -140,7 +137,7 @@ BackendServicesTracingConnection::DeleteSignedUrlKey( StatusOr BackendServicesTracingConnection::DeleteSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: DeleteSignedUrlKeyRequest const& request) { auto span = internal::MakeSpan( @@ -148,21 +145,20 @@ BackendServicesTracingConnection::DeleteSignedUrlKey( "DeleteSignedUrlKey"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSignedUrlKey(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteSignedUrlKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackendServicesTracingConnection::DeleteSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "DeleteSignedUrlKey"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteSignedUrlKey(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteSignedUrlKey( + ExperimentalTag{}, operation)); } StatusOr @@ -210,29 +206,28 @@ BackendServicesTracingConnection::InsertBackendService( StatusOr BackendServicesTracingConnection::InsertBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: InsertBackendServiceRequest const& request) { auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "InsertBackendService"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertBackendService( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertBackendService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackendServicesTracingConnection::InsertBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "InsertBackendService"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertBackendService( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertBackendService( + ExperimentalTag{}, operation)); } StreamRange @@ -276,7 +271,7 @@ BackendServicesTracingConnection::PatchBackendService( StatusOr BackendServicesTracingConnection::PatchBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: PatchBackendServiceRequest const& request) { auto span = internal::MakeSpan( @@ -284,21 +279,20 @@ BackendServicesTracingConnection::PatchBackendService( "PatchBackendService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchBackendService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PatchBackendService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackendServicesTracingConnection::PatchBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "PatchBackendService"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchBackendService(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchBackendService( + ExperimentalTag{}, operation)); } future> @@ -315,29 +309,28 @@ BackendServicesTracingConnection::SetEdgeSecurityPolicy( StatusOr BackendServicesTracingConnection::SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: SetEdgeSecurityPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "SetEdgeSecurityPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->SetEdgeSecurityPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackendServicesTracingConnection::SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "SetEdgeSecurityPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetEdgeSecurityPolicy( + ExperimentalTag{}, operation)); } StatusOr @@ -363,7 +356,7 @@ BackendServicesTracingConnection::SetSecurityPolicy( StatusOr BackendServicesTracingConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: SetSecurityPolicyRequest const& request) { auto span = internal::MakeSpan( @@ -371,21 +364,20 @@ BackendServicesTracingConnection::SetSecurityPolicy( "SetSecurityPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetSecurityPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackendServicesTracingConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "SetSecurityPolicy"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetSecurityPolicy(ExperimentalTag{}, operation)); } StatusOr @@ -413,29 +405,28 @@ BackendServicesTracingConnection::UpdateBackendService( StatusOr BackendServicesTracingConnection::UpdateBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: UpdateBackendServiceRequest const& request) { auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "UpdateBackendService"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateBackendService( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateBackendService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackendServicesTracingConnection::UpdateBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_backend_services_v1::BackendServicesConnection::" "UpdateBackendService"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateBackendService( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateBackendService( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.h b/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.h index a79618afede28..948723d11d637 100644 --- a/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.h +++ b/google/cloud/compute/backend_services/v1/internal/backend_services_tracing_connection.h @@ -46,12 +46,12 @@ class BackendServicesTracingConnection AddSignedUrlKeyRequest const& request) override; StatusOr AddSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: AddSignedUrlKeyRequest const& request) override; future> AddSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange DeleteBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: DeleteBackendServiceRequest const& request) override; future> DeleteBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -79,13 +79,13 @@ class BackendServicesTracingConnection DeleteSignedUrlKeyRequest const& request) override; StatusOr DeleteSignedUrlKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: DeleteSignedUrlKeyRequest const& request) override; future> DeleteSignedUrlKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetBackendService( @@ -106,13 +106,13 @@ class BackendServicesTracingConnection InsertBackendServiceRequest const& request) override; StatusOr InsertBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: InsertBackendServiceRequest const& request) override; future> InsertBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -128,13 +128,13 @@ class BackendServicesTracingConnection PatchBackendServiceRequest const& request) override; StatusOr PatchBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: PatchBackendServiceRequest const& request) override; future> PatchBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -143,13 +143,13 @@ class BackendServicesTracingConnection SetEdgeSecurityPolicyRequest const& request) override; StatusOr SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: SetEdgeSecurityPolicyRequest const& request) override; future> SetEdgeSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -161,13 +161,13 @@ class BackendServicesTracingConnection SetSecurityPolicyRequest const& request) override; StatusOr SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: SetSecurityPolicyRequest const& request) override; future> SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -179,13 +179,13 @@ class BackendServicesTracingConnection UpdateBackendServiceRequest const& request) override; StatusOr UpdateBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: UpdateBackendServiceRequest const& request) override; future> UpdateBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/backend_services/v1/mocks/mock_backend_services_connection.h b/google/cloud/compute/backend_services/v1/mocks/mock_backend_services_connection.h index 47023f0b4615c..c36eadced264a 100644 --- a/google/cloud/compute/backend_services/v1/mocks/mock_backend_services_connection.h +++ b/google/cloud/compute/backend_services/v1/mocks/mock_backend_services_connection.h @@ -55,14 +55,14 @@ class MockBackendServicesConnection MOCK_METHOD(StatusOr, AddSignedUrlKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: AddSignedUrlKeyRequest const& request), (override)); MOCK_METHOD(future>, AddSignedUrlKey, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -82,14 +82,14 @@ class MockBackendServicesConnection MOCK_METHOD(StatusOr, DeleteBackendService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: DeleteBackendServiceRequest const& request), (override)); MOCK_METHOD(future>, DeleteBackendService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -101,14 +101,14 @@ class MockBackendServicesConnection MOCK_METHOD(StatusOr, DeleteSignedUrlKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: DeleteSignedUrlKeyRequest const& request), (override)); MOCK_METHOD(future>, DeleteSignedUrlKey, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -138,14 +138,14 @@ class MockBackendServicesConnection MOCK_METHOD(StatusOr, InsertBackendService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: InsertBackendServiceRequest const& request), (override)); MOCK_METHOD(future>, InsertBackendService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -170,14 +170,14 @@ class MockBackendServicesConnection MOCK_METHOD(StatusOr, PatchBackendService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: PatchBackendServiceRequest const& request), (override)); MOCK_METHOD(future>, PatchBackendService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -189,14 +189,14 @@ class MockBackendServicesConnection MOCK_METHOD(StatusOr, SetEdgeSecurityPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: SetEdgeSecurityPolicyRequest const& request), (override)); MOCK_METHOD(future>, SetEdgeSecurityPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -213,14 +213,14 @@ class MockBackendServicesConnection MOCK_METHOD(StatusOr, SetSecurityPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: SetSecurityPolicyRequest const& request), (override)); MOCK_METHOD(future>, SetSecurityPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -239,14 +239,14 @@ class MockBackendServicesConnection MOCK_METHOD(StatusOr, UpdateBackendService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::backend_services::v1:: UpdateBackendServiceRequest const& request), (override)); MOCK_METHOD(future>, UpdateBackendService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/disks/v1/internal/disks_tracing_connection.cc b/google/cloud/compute/disks/v1/internal/disks_tracing_connection.cc index 08ea12934c332..9213599d1cc5b 100644 --- a/google/cloud/compute/disks/v1/internal/disks_tracing_connection.cc +++ b/google/cloud/compute/disks/v1/internal/disks_tracing_connection.cc @@ -46,27 +46,26 @@ DisksTracingConnection::AddResourcePolicies( StatusOr DisksTracingConnection::AddResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const& request) { auto span = internal::MakeSpan( "compute_disks_v1::DisksConnection::AddResourcePolicies"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddResourcePolicies(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->AddResourcePolicies(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DisksTracingConnection::AddResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_disks_v1::DisksConnection::AddResourcePolicies"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AddResourcePolicies(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->AddResourcePolicies( + ExperimentalTag{}, operation)); } StreamRange< @@ -94,26 +93,24 @@ DisksTracingConnection::BulkInsert( StatusOr DisksTracingConnection::BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& request) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::BulkInsert"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BulkInsert(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->BulkInsert(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DisksTracingConnection::BulkInsert( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::BulkInsert"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->BulkInsert(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->BulkInsert(ExperimentalTag{}, operation)); } future> @@ -128,27 +125,25 @@ DisksTracingConnection::CreateSnapshot( StatusOr DisksTracingConnection::CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& request) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::CreateSnapshot"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateSnapshot(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateSnapshot(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DisksTracingConnection::CreateSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::CreateSnapshot"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateSnapshot(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateSnapshot(ExperimentalTag{}, operation)); } future> @@ -162,26 +157,24 @@ DisksTracingConnection::DeleteDisk( StatusOr DisksTracingConnection::DeleteDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::DeleteDisk"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteDisk(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteDisk(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DisksTracingConnection::DeleteDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::DeleteDisk"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteDisk(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteDisk(ExperimentalTag{}, operation)); } StatusOr DisksTracingConnection::GetDisk( @@ -212,26 +205,24 @@ DisksTracingConnection::InsertDisk( StatusOr DisksTracingConnection::InsertDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& request) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::InsertDisk"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertDisk(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertDisk(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DisksTracingConnection::InsertDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::InsertDisk"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InsertDisk(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->InsertDisk(ExperimentalTag{}, operation)); } StreamRange @@ -258,27 +249,26 @@ DisksTracingConnection::RemoveResourcePolicies( StatusOr DisksTracingConnection::RemoveResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::RemoveResourcePoliciesRequest const& request) { auto span = internal::MakeSpan( "compute_disks_v1::DisksConnection::RemoveResourcePolicies"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RemoveResourcePolicies( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->RemoveResourcePolicies(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DisksTracingConnection::RemoveResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_disks_v1::DisksConnection::RemoveResourcePolicies"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RemoveResourcePolicies( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RemoveResourcePolicies( + ExperimentalTag{}, operation)); } future> @@ -291,24 +281,22 @@ DisksTracingConnection::Resize( StatusOr DisksTracingConnection::Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::ResizeRequest const& request) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::Resize"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->Resize(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->Resize(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DisksTracingConnection::Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::Resize"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Resize(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Resize(ExperimentalTag{}, operation)); } StatusOr @@ -332,26 +320,24 @@ DisksTracingConnection::SetLabels( StatusOr DisksTracingConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::SetLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DisksTracingConnection::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::SetLabels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetLabels(ExperimentalTag{}, operation)); } future> @@ -367,27 +353,26 @@ DisksTracingConnection::StartAsyncReplication( StatusOr DisksTracingConnection::StartAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::StartAsyncReplicationRequest const& request) { auto span = internal::MakeSpan( "compute_disks_v1::DisksConnection::StartAsyncReplication"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->StartAsyncReplication( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->StartAsyncReplication(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DisksTracingConnection::StartAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_disks_v1::DisksConnection::StartAsyncReplication"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->StartAsyncReplication( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->StartAsyncReplication( + ExperimentalTag{}, operation)); } future> @@ -403,27 +388,26 @@ DisksTracingConnection::StopAsyncReplication( StatusOr DisksTracingConnection::StopAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const& request) { auto span = internal::MakeSpan( "compute_disks_v1::DisksConnection::StopAsyncReplication"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->StopAsyncReplication( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->StopAsyncReplication(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DisksTracingConnection::StopAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_disks_v1::DisksConnection::StopAsyncReplication"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->StopAsyncReplication( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->StopAsyncReplication( + ExperimentalTag{}, operation)); } future> @@ -439,27 +423,26 @@ DisksTracingConnection::StopGroupAsyncReplication( StatusOr DisksTracingConnection::StopGroupAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: StopGroupAsyncReplicationRequest const& request) { auto span = internal::MakeSpan( "compute_disks_v1::DisksConnection::StopGroupAsyncReplication"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->StopGroupAsyncReplication( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->StopGroupAsyncReplication(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DisksTracingConnection::StopGroupAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_disks_v1::DisksConnection::StopGroupAsyncReplication"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->StopGroupAsyncReplication( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->StopGroupAsyncReplication( + ExperimentalTag{}, operation)); } StatusOr @@ -483,26 +466,24 @@ DisksTracingConnection::UpdateDisk( StatusOr DisksTracingConnection::UpdateDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::UpdateDisk"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateDisk(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateDisk(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DisksTracingConnection::UpdateDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_disks_v1::DisksConnection::UpdateDisk"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateDisk(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateDisk(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/disks/v1/internal/disks_tracing_connection.h b/google/cloud/compute/disks/v1/internal/disks_tracing_connection.h index 777ad2880918d..a6df0f21bfe20 100644 --- a/google/cloud/compute/disks/v1/internal/disks_tracing_connection.h +++ b/google/cloud/compute/disks/v1/internal/disks_tracing_connection.h @@ -45,13 +45,13 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { request) override; StatusOr AddResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const& request) override; future> AddResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange< @@ -65,12 +65,12 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { override; StatusOr BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& request) override; future> BulkInsert( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> CreateSnapshot( @@ -78,12 +78,12 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { request) override; StatusOr CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& request) override; future> CreateSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> DeleteDisk( @@ -91,12 +91,12 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { override; StatusOr DeleteDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request) override; future> DeleteDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetDisk( @@ -112,12 +112,12 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { override; StatusOr InsertDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& request) override; future> InsertDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListDisks( @@ -130,13 +130,13 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { RemoveResourcePoliciesRequest const& request) override; StatusOr RemoveResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: RemoveResourcePoliciesRequest const& request) override; future> RemoveResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Resize( @@ -144,12 +144,12 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { override; StatusOr Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::ResizeRequest const& request) override; future> Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -161,12 +161,12 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -175,13 +175,13 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { StartAsyncReplicationRequest const& request) override; StatusOr StartAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: StartAsyncReplicationRequest const& request) override; future> StartAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -190,13 +190,13 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { request) override; StatusOr StopAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const& request) override; future> StopAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -206,13 +206,13 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { StatusOr StopGroupAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: StopGroupAsyncReplicationRequest const& request) override; future> StopGroupAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -225,12 +225,12 @@ class DisksTracingConnection : public compute_disks_v1::DisksConnection { override; StatusOr UpdateDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request) override; future> UpdateDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/disks/v1/mocks/mock_disks_connection.h b/google/cloud/compute/disks/v1/mocks/mock_disks_connection.h index e30019297a2dc..064dec2aca1f8 100644 --- a/google/cloud/compute/disks/v1/mocks/mock_disks_connection.h +++ b/google/cloud/compute/disks/v1/mocks/mock_disks_connection.h @@ -55,14 +55,14 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { MOCK_METHOD( StatusOr, AddResourcePolicies, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const& request), (override)); MOCK_METHOD(future>, AddResourcePolicies, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -81,14 +81,14 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { (override)); MOCK_METHOD(StatusOr, BulkInsert, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::BulkInsertRequest const& request), (override)); MOCK_METHOD(future>, BulkInsert, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -101,14 +101,14 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { MOCK_METHOD( StatusOr, CreateSnapshot, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const& request), (override)); MOCK_METHOD(future>, CreateSnapshot, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -119,14 +119,14 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { (override)); MOCK_METHOD(StatusOr, DeleteDisk, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const& request), (override)); MOCK_METHOD(future>, DeleteDisk, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -148,14 +148,14 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { (override)); MOCK_METHOD(StatusOr, InsertDisk, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::InsertDiskRequest const& request), (override)); MOCK_METHOD(future>, InsertDisk, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -172,14 +172,14 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { MOCK_METHOD(StatusOr, RemoveResourcePolicies, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: RemoveResourcePoliciesRequest const& request), (override)); MOCK_METHOD(future>, RemoveResourcePolicies, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -190,13 +190,13 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { MOCK_METHOD( StatusOr, Resize, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::ResizeRequest const& request), (override)); MOCK_METHOD(future>, Resize, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -213,13 +213,13 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { MOCK_METHOD( StatusOr, SetLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::SetLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -231,14 +231,14 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { MOCK_METHOD(StatusOr, StartAsyncReplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: StartAsyncReplicationRequest const& request), (override)); MOCK_METHOD(future>, StartAsyncReplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -250,14 +250,14 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { MOCK_METHOD(StatusOr, StopAsyncReplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: StopAsyncReplicationRequest const& request), (override)); MOCK_METHOD(future>, StopAsyncReplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -269,14 +269,14 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { MOCK_METHOD(StatusOr, StopGroupAsyncReplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1:: StopGroupAsyncReplicationRequest const& request), (override)); MOCK_METHOD(future>, StopGroupAsyncReplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -294,14 +294,14 @@ class MockDisksConnection : public compute_disks_v1::DisksConnection { (override)); MOCK_METHOD(StatusOr, UpdateDisk, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const& request), (override)); MOCK_METHOD(future>, UpdateDisk, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.cc b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.cc index c8228298d2761..a492c9eaa3950 100644 --- a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.cc +++ b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.cc @@ -50,29 +50,28 @@ ExternalVpnGatewaysTracingConnection::DeleteExternalVpnGateway( StatusOr ExternalVpnGatewaysTracingConnection::DeleteExternalVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: DeleteExternalVpnGatewayRequest const& request) { auto span = internal::MakeSpan( "compute_external_vpn_gateways_v1::ExternalVpnGatewaysConnection::" "DeleteExternalVpnGateway"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteExternalVpnGateway( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteExternalVpnGateway(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ExternalVpnGatewaysTracingConnection::DeleteExternalVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_external_vpn_gateways_v1::ExternalVpnGatewaysConnection::" "DeleteExternalVpnGateway"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteExternalVpnGateway( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteExternalVpnGateway( + ExperimentalTag{}, operation)); } StatusOr @@ -100,29 +99,28 @@ ExternalVpnGatewaysTracingConnection::InsertExternalVpnGateway( StatusOr ExternalVpnGatewaysTracingConnection::InsertExternalVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: InsertExternalVpnGatewayRequest const& request) { auto span = internal::MakeSpan( "compute_external_vpn_gateways_v1::ExternalVpnGatewaysConnection::" "InsertExternalVpnGateway"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertExternalVpnGateway( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InsertExternalVpnGateway(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ExternalVpnGatewaysTracingConnection::InsertExternalVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_external_vpn_gateways_v1::ExternalVpnGatewaysConnection::" "InsertExternalVpnGateway"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertExternalVpnGateway( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertExternalVpnGateway( + ExperimentalTag{}, operation)); } StreamRange @@ -152,7 +150,7 @@ ExternalVpnGatewaysTracingConnection::SetLabels( StatusOr ExternalVpnGatewaysTracingConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: SetLabelsRequest const& request) { auto span = internal::MakeSpan( @@ -160,21 +158,19 @@ ExternalVpnGatewaysTracingConnection::SetLabels( "SetLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ExternalVpnGatewaysTracingConnection::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_external_vpn_gateways_v1::ExternalVpnGatewaysConnection::" "SetLabels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetLabels(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.h b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.h index 59a34762c1731..19271f407ac44 100644 --- a/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.h +++ b/google/cloud/compute/external_vpn_gateways/v1/internal/external_vpn_gateways_tracing_connection.h @@ -49,13 +49,13 @@ class ExternalVpnGatewaysTracingConnection DeleteExternalVpnGatewayRequest const& request) override; StatusOr DeleteExternalVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: DeleteExternalVpnGatewayRequest const& request) override; future> DeleteExternalVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -69,13 +69,13 @@ class ExternalVpnGatewaysTracingConnection InsertExternalVpnGatewayRequest const& request) override; StatusOr InsertExternalVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: InsertExternalVpnGatewayRequest const& request) override; future> InsertExternalVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -88,12 +88,12 @@ class ExternalVpnGatewaysTracingConnection SetLabelsRequest const& request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr diff --git a/google/cloud/compute/external_vpn_gateways/v1/mocks/mock_external_vpn_gateways_connection.h b/google/cloud/compute/external_vpn_gateways/v1/mocks/mock_external_vpn_gateways_connection.h index 9cebb1513d1f1..7bf12b16f397a 100644 --- a/google/cloud/compute/external_vpn_gateways/v1/mocks/mock_external_vpn_gateways_connection.h +++ b/google/cloud/compute/external_vpn_gateways/v1/mocks/mock_external_vpn_gateways_connection.h @@ -56,14 +56,14 @@ class MockExternalVpnGatewaysConnection MOCK_METHOD(StatusOr, DeleteExternalVpnGateway, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: DeleteExternalVpnGatewayRequest const& request), (override)); MOCK_METHOD(future>, DeleteExternalVpnGateway, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -81,14 +81,14 @@ class MockExternalVpnGatewaysConnection MOCK_METHOD(StatusOr, InsertExternalVpnGateway, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: InsertExternalVpnGatewayRequest const& request), (override)); MOCK_METHOD(future>, InsertExternalVpnGateway, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -106,14 +106,14 @@ class MockExternalVpnGatewaysConnection (override)); MOCK_METHOD(StatusOr, SetLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::external_vpn_gateways::v1:: SetLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.cc b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.cc index 5590d540a2aa3..44929de0fba82 100644 --- a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.cc +++ b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.cc @@ -47,7 +47,7 @@ FirewallPoliciesTracingConnection::AddAssociation( StatusOr FirewallPoliciesTracingConnection::AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: AddAssociationRequest const& request) { auto span = internal::MakeSpan( @@ -55,21 +55,19 @@ FirewallPoliciesTracingConnection::AddAssociation( "AddAssociation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddAssociation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddAssociation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FirewallPoliciesTracingConnection::AddAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::" "AddAssociation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->AddAssociation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->AddAssociation(ExperimentalTag{}, operation)); } future> @@ -84,27 +82,25 @@ FirewallPoliciesTracingConnection::AddRule( StatusOr FirewallPoliciesTracingConnection::AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& request) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::AddRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FirewallPoliciesTracingConnection::AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::AddRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AddRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->AddRule(ExperimentalTag{}, operation)); } future> @@ -119,27 +115,25 @@ FirewallPoliciesTracingConnection::CloneRules( StatusOr FirewallPoliciesTracingConnection::CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::CloneRulesRequest const& request) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::CloneRules"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CloneRules(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CloneRules(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FirewallPoliciesTracingConnection::CloneRules( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::CloneRules"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CloneRules(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CloneRules(ExperimentalTag{}, operation)); } future> @@ -156,29 +150,28 @@ FirewallPoliciesTracingConnection::DeleteFirewallPolicy( StatusOr FirewallPoliciesTracingConnection::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::" "DeleteFirewallPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteFirewallPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteFirewallPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FirewallPoliciesTracingConnection::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::" "DeleteFirewallPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteFirewallPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteFirewallPolicy( + ExperimentalTag{}, operation)); } StatusOr @@ -237,29 +230,28 @@ FirewallPoliciesTracingConnection::InsertFirewallPolicy( StatusOr FirewallPoliciesTracingConnection::InsertFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: InsertFirewallPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::" "InsertFirewallPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertFirewallPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertFirewallPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FirewallPoliciesTracingConnection::InsertFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::" "InsertFirewallPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertFirewallPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertFirewallPolicy( + ExperimentalTag{}, operation)); } StreamRange @@ -300,27 +292,25 @@ FirewallPoliciesTracingConnection::Move( StatusOr FirewallPoliciesTracingConnection::Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const& request) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::Move"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, - child_->Move(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->Move(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FirewallPoliciesTracingConnection::Move( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::Move"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Move(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Move(ExperimentalTag{}, operation)); } future> @@ -337,7 +327,7 @@ FirewallPoliciesTracingConnection::PatchFirewallPolicy( StatusOr FirewallPoliciesTracingConnection::PatchFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: PatchFirewallPolicyRequest const& request) { auto span = internal::MakeSpan( @@ -345,21 +335,20 @@ FirewallPoliciesTracingConnection::PatchFirewallPolicy( "PatchFirewallPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchFirewallPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PatchFirewallPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FirewallPoliciesTracingConnection::PatchFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::" "PatchFirewallPolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchFirewallPolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchFirewallPolicy( + ExperimentalTag{}, operation)); } future> @@ -374,27 +363,25 @@ FirewallPoliciesTracingConnection::PatchRule( StatusOr FirewallPoliciesTracingConnection::PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::PatchRuleRequest const& request) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::PatchRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FirewallPoliciesTracingConnection::PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::PatchRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->PatchRule(ExperimentalTag{}, operation)); } future> @@ -410,7 +397,7 @@ FirewallPoliciesTracingConnection::RemoveAssociation( StatusOr FirewallPoliciesTracingConnection::RemoveAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: RemoveAssociationRequest const& request) { auto span = internal::MakeSpan( @@ -418,21 +405,20 @@ FirewallPoliciesTracingConnection::RemoveAssociation( "RemoveAssociation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RemoveAssociation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->RemoveAssociation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FirewallPoliciesTracingConnection::RemoveAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::" "RemoveAssociation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RemoveAssociation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RemoveAssociation(ExperimentalTag{}, operation)); } future> @@ -447,27 +433,25 @@ FirewallPoliciesTracingConnection::RemoveRule( StatusOr FirewallPoliciesTracingConnection::RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::RemoveRuleRequest const& request) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::RemoveRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RemoveRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RemoveRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FirewallPoliciesTracingConnection::RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_firewall_policies_v1::FirewallPoliciesConnection::RemoveRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RemoveRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RemoveRule(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.h b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.h index ea7583e8be6b0..17eb85b99231d 100644 --- a/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.h +++ b/google/cloud/compute/firewall_policies/v1/internal/firewall_policies_tracing_connection.h @@ -46,12 +46,12 @@ class FirewallPoliciesTracingConnection AddAssociationRequest const& request) override; StatusOr AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: AddAssociationRequest const& request) override; future> AddAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> AddRule( @@ -59,12 +59,12 @@ class FirewallPoliciesTracingConnection request) override; StatusOr AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& request) override; future> AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> CloneRules( @@ -72,12 +72,12 @@ class FirewallPoliciesTracingConnection CloneRulesRequest const& request) override; StatusOr CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: CloneRulesRequest const& request) override; future> CloneRules( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -85,13 +85,13 @@ class FirewallPoliciesTracingConnection DeleteFirewallPolicyRequest const& request) override; StatusOr DeleteFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) override; future> DeleteFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetFirewallPolicy( @@ -115,13 +115,13 @@ class FirewallPoliciesTracingConnection InsertFirewallPolicyRequest const& request) override; StatusOr InsertFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: InsertFirewallPolicyRequest const& request) override; future> InsertFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -138,12 +138,12 @@ class FirewallPoliciesTracingConnection request) override; StatusOr Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const& request) override; future> Move( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -151,13 +151,13 @@ class FirewallPoliciesTracingConnection PatchFirewallPolicyRequest const& request) override; StatusOr PatchFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: PatchFirewallPolicyRequest const& request) override; future> PatchFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> PatchRule( @@ -165,12 +165,12 @@ class FirewallPoliciesTracingConnection PatchRuleRequest const& request) override; StatusOr PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: PatchRuleRequest const& request) override; future> PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -178,13 +178,13 @@ class FirewallPoliciesTracingConnection RemoveAssociationRequest const& request) override; StatusOr RemoveAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: RemoveAssociationRequest const& request) override; future> RemoveAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> RemoveRule( @@ -192,12 +192,12 @@ class FirewallPoliciesTracingConnection RemoveRuleRequest const& request) override; StatusOr RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: RemoveRuleRequest const& request) override; future> RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( diff --git a/google/cloud/compute/firewall_policies/v1/mocks/mock_firewall_policies_connection.h b/google/cloud/compute/firewall_policies/v1/mocks/mock_firewall_policies_connection.h index e8fe3d0b7277c..c125c39da42ea 100644 --- a/google/cloud/compute/firewall_policies/v1/mocks/mock_firewall_policies_connection.h +++ b/google/cloud/compute/firewall_policies/v1/mocks/mock_firewall_policies_connection.h @@ -55,14 +55,14 @@ class MockFirewallPoliciesConnection MOCK_METHOD(StatusOr, AddAssociation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: AddAssociationRequest const& request), (override)); MOCK_METHOD(future>, AddAssociation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -74,14 +74,14 @@ class MockFirewallPoliciesConnection MOCK_METHOD( StatusOr, AddRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::AddRuleRequest const& request), (override)); MOCK_METHOD(future>, AddRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -92,14 +92,14 @@ class MockFirewallPoliciesConnection (override)); MOCK_METHOD(StatusOr, CloneRules, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: CloneRulesRequest const& request), (override)); MOCK_METHOD(future>, CloneRules, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -111,14 +111,14 @@ class MockFirewallPoliciesConnection MOCK_METHOD(StatusOr, DeleteFirewallPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: DeleteFirewallPolicyRequest const& request), (override)); MOCK_METHOD(future>, DeleteFirewallPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -154,14 +154,14 @@ class MockFirewallPoliciesConnection MOCK_METHOD(StatusOr, InsertFirewallPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: InsertFirewallPolicyRequest const& request), (override)); MOCK_METHOD(future>, InsertFirewallPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -186,14 +186,14 @@ class MockFirewallPoliciesConnection MOCK_METHOD( StatusOr, Move, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1::MoveRequest const& request), (override)); MOCK_METHOD(future>, Move, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -205,14 +205,14 @@ class MockFirewallPoliciesConnection MOCK_METHOD(StatusOr, PatchFirewallPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: PatchFirewallPolicyRequest const& request), (override)); MOCK_METHOD(future>, PatchFirewallPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -223,14 +223,14 @@ class MockFirewallPoliciesConnection (override)); MOCK_METHOD(StatusOr, PatchRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: PatchRuleRequest const& request), (override)); MOCK_METHOD(future>, PatchRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -242,14 +242,14 @@ class MockFirewallPoliciesConnection MOCK_METHOD(StatusOr, RemoveAssociation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: RemoveAssociationRequest const& request), (override)); MOCK_METHOD(future>, RemoveAssociation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -260,14 +260,14 @@ class MockFirewallPoliciesConnection (override)); MOCK_METHOD(StatusOr, RemoveRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewall_policies::v1:: RemoveRuleRequest const& request), (override)); MOCK_METHOD(future>, RemoveRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.cc b/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.cc index e21e4a2320e97..d96336cf08a10 100644 --- a/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.cc +++ b/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.cc @@ -45,27 +45,25 @@ FirewallsTracingConnection::DeleteFirewall( StatusOr FirewallsTracingConnection::DeleteFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const& request) { auto span = internal::MakeSpan( "compute_firewalls_v1::FirewallsConnection::DeleteFirewall"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteFirewall(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteFirewall(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FirewallsTracingConnection::DeleteFirewall( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_firewalls_v1::FirewallsConnection::DeleteFirewall"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteFirewall(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteFirewall(ExperimentalTag{}, operation)); } StatusOr @@ -90,27 +88,25 @@ FirewallsTracingConnection::InsertFirewall( StatusOr FirewallsTracingConnection::InsertFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const& request) { auto span = internal::MakeSpan( "compute_firewalls_v1::FirewallsConnection::InsertFirewall"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertFirewall(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertFirewall(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FirewallsTracingConnection::InsertFirewall( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_firewalls_v1::FirewallsConnection::InsertFirewall"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertFirewall(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertFirewall(ExperimentalTag{}, operation)); } StreamRange @@ -137,27 +133,25 @@ FirewallsTracingConnection::PatchFirewall( StatusOr FirewallsTracingConnection::PatchFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const& request) { auto span = internal::MakeSpan( "compute_firewalls_v1::FirewallsConnection::PatchFirewall"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchFirewall(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchFirewall(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FirewallsTracingConnection::PatchFirewall( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_firewalls_v1::FirewallsConnection::PatchFirewall"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchFirewall(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->PatchFirewall(ExperimentalTag{}, operation)); } future> @@ -172,27 +166,25 @@ FirewallsTracingConnection::UpdateFirewall( StatusOr FirewallsTracingConnection::UpdateFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& request) { auto span = internal::MakeSpan( "compute_firewalls_v1::FirewallsConnection::UpdateFirewall"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateFirewall(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateFirewall(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FirewallsTracingConnection::UpdateFirewall( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_firewalls_v1::FirewallsConnection::UpdateFirewall"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateFirewall(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateFirewall(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.h b/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.h index 0ea3124ed9860..6d18a90c848d6 100644 --- a/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.h +++ b/google/cloud/compute/firewalls/v1/internal/firewalls_tracing_connection.h @@ -45,12 +45,12 @@ class FirewallsTracingConnection request) override; StatusOr DeleteFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const& request) override; future> DeleteFirewall( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetFirewall( @@ -62,12 +62,12 @@ class FirewallsTracingConnection request) override; StatusOr InsertFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const& request) override; future> InsertFirewall( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListFirewalls( @@ -79,12 +79,12 @@ class FirewallsTracingConnection request) override; StatusOr PatchFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const& request) override; future> PatchFirewall( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> UpdateFirewall( @@ -92,12 +92,12 @@ class FirewallsTracingConnection request) override; StatusOr UpdateFirewall( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& request) override; future> UpdateFirewall( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/firewalls/v1/mocks/mock_firewalls_connection.h b/google/cloud/compute/firewalls/v1/mocks/mock_firewalls_connection.h index 5e5585fb0a89e..2314c5eb9cfb6 100644 --- a/google/cloud/compute/firewalls/v1/mocks/mock_firewalls_connection.h +++ b/google/cloud/compute/firewalls/v1/mocks/mock_firewalls_connection.h @@ -56,14 +56,14 @@ class MockFirewallsConnection MOCK_METHOD( StatusOr, DeleteFirewall, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::DeleteFirewallRequest const& request), (override)); MOCK_METHOD(future>, DeleteFirewall, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -82,14 +82,14 @@ class MockFirewallsConnection MOCK_METHOD( StatusOr, InsertFirewall, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::InsertFirewallRequest const& request), (override)); MOCK_METHOD(future>, InsertFirewall, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -108,14 +108,14 @@ class MockFirewallsConnection MOCK_METHOD( StatusOr, PatchFirewall, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::PatchFirewallRequest const& request), (override)); MOCK_METHOD(future>, PatchFirewall, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -128,14 +128,14 @@ class MockFirewallsConnection MOCK_METHOD( StatusOr, UpdateFirewall, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::firewalls::v1::UpdateFirewallRequest const& request), (override)); MOCK_METHOD(future>, UpdateFirewall, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.cc b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.cc index 0f5c08ae049bd..5259b880bd389 100644 --- a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.cc +++ b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.cc @@ -63,29 +63,28 @@ ForwardingRulesTracingConnection::DeleteForwardingRule( StatusOr ForwardingRulesTracingConnection::DeleteForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: DeleteForwardingRuleRequest const& request) { auto span = internal::MakeSpan( "compute_forwarding_rules_v1::ForwardingRulesConnection::" "DeleteForwardingRule"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteForwardingRule( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteForwardingRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ForwardingRulesTracingConnection::DeleteForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_forwarding_rules_v1::ForwardingRulesConnection::" "DeleteForwardingRule"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteForwardingRule( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteForwardingRule( + ExperimentalTag{}, operation)); } StatusOr @@ -113,29 +112,28 @@ ForwardingRulesTracingConnection::InsertForwardingRule( StatusOr ForwardingRulesTracingConnection::InsertForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: InsertForwardingRuleRequest const& request) { auto span = internal::MakeSpan( "compute_forwarding_rules_v1::ForwardingRulesConnection::" "InsertForwardingRule"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertForwardingRule( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertForwardingRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ForwardingRulesTracingConnection::InsertForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_forwarding_rules_v1::ForwardingRulesConnection::" "InsertForwardingRule"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertForwardingRule( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertForwardingRule( + ExperimentalTag{}, operation)); } StreamRange @@ -166,7 +164,7 @@ ForwardingRulesTracingConnection::PatchForwardingRule( StatusOr ForwardingRulesTracingConnection::PatchForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: PatchForwardingRuleRequest const& request) { auto span = internal::MakeSpan( @@ -174,21 +172,20 @@ ForwardingRulesTracingConnection::PatchForwardingRule( "PatchForwardingRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchForwardingRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PatchForwardingRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ForwardingRulesTracingConnection::PatchForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_forwarding_rules_v1::ForwardingRulesConnection::" "PatchForwardingRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchForwardingRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchForwardingRule( + ExperimentalTag{}, operation)); } future> @@ -203,27 +200,25 @@ ForwardingRulesTracingConnection::SetLabels( StatusOr ForwardingRulesTracingConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1::SetLabelsRequest const& request) { auto span = internal::MakeSpan( "compute_forwarding_rules_v1::ForwardingRulesConnection::SetLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ForwardingRulesTracingConnection::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_forwarding_rules_v1::ForwardingRulesConnection::SetLabels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetLabels(ExperimentalTag{}, operation)); } future> @@ -238,27 +233,25 @@ ForwardingRulesTracingConnection::SetTarget( StatusOr ForwardingRulesTracingConnection::SetTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1::SetTargetRequest const& request) { auto span = internal::MakeSpan( "compute_forwarding_rules_v1::ForwardingRulesConnection::SetTarget"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetTarget(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetTarget(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ForwardingRulesTracingConnection::SetTarget( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_forwarding_rules_v1::ForwardingRulesConnection::SetTarget"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetTarget(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetTarget(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.h b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.h index 65ea93318d6cc..6ad89df7db366 100644 --- a/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.h +++ b/google/cloud/compute/forwarding_rules/v1/internal/forwarding_rules_tracing_connection.h @@ -52,13 +52,13 @@ class ForwardingRulesTracingConnection DeleteForwardingRuleRequest const& request) override; StatusOr DeleteForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: DeleteForwardingRuleRequest const& request) override; future> DeleteForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetForwardingRule( @@ -70,13 +70,13 @@ class ForwardingRulesTracingConnection InsertForwardingRuleRequest const& request) override; StatusOr InsertForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: InsertForwardingRuleRequest const& request) override; future> InsertForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -88,13 +88,13 @@ class ForwardingRulesTracingConnection PatchForwardingRuleRequest const& request) override; StatusOr PatchForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: PatchForwardingRuleRequest const& request) override; future> PatchForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetLabels( @@ -102,12 +102,12 @@ class ForwardingRulesTracingConnection request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetTarget( @@ -115,12 +115,12 @@ class ForwardingRulesTracingConnection request) override; StatusOr SetTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1::SetTargetRequest const& request) override; future> SetTarget( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/forwarding_rules/v1/mocks/mock_forwarding_rules_connection.h b/google/cloud/compute/forwarding_rules/v1/mocks/mock_forwarding_rules_connection.h index 8ec03ba5638b4..c1927a22f8269 100644 --- a/google/cloud/compute/forwarding_rules/v1/mocks/mock_forwarding_rules_connection.h +++ b/google/cloud/compute/forwarding_rules/v1/mocks/mock_forwarding_rules_connection.h @@ -63,14 +63,14 @@ class MockForwardingRulesConnection MOCK_METHOD(StatusOr, DeleteForwardingRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: DeleteForwardingRuleRequest const& request), (override)); MOCK_METHOD(future>, DeleteForwardingRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -88,14 +88,14 @@ class MockForwardingRulesConnection MOCK_METHOD(StatusOr, InsertForwardingRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: InsertForwardingRuleRequest const& request), (override)); MOCK_METHOD(future>, InsertForwardingRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -113,14 +113,14 @@ class MockForwardingRulesConnection MOCK_METHOD(StatusOr, PatchForwardingRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: PatchForwardingRuleRequest const& request), (override)); MOCK_METHOD(future>, PatchForwardingRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -131,14 +131,14 @@ class MockForwardingRulesConnection (override)); MOCK_METHOD(StatusOr, SetLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: SetLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -149,14 +149,14 @@ class MockForwardingRulesConnection (override)); MOCK_METHOD(StatusOr, SetTarget, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::forwarding_rules::v1:: SetTargetRequest const& request), (override)); MOCK_METHOD(future>, SetTarget, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.cc b/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.cc index 46c5e303397e9..6a14e27a3832a 100644 --- a/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.cc +++ b/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.cc @@ -46,27 +46,25 @@ GlobalAddressesTracingConnection::DeleteAddress( StatusOr GlobalAddressesTracingConnection::DeleteAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1:: DeleteAddressRequest const& request) { auto span = internal::MakeSpan( "compute_global_addresses_v1::GlobalAddressesConnection::DeleteAddress"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAddress(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteAddress(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GlobalAddressesTracingConnection::DeleteAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_global_addresses_v1::GlobalAddressesConnection::DeleteAddress"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteAddress(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteAddress(ExperimentalTag{}, operation)); } StatusOr @@ -91,27 +89,25 @@ GlobalAddressesTracingConnection::InsertAddress( StatusOr GlobalAddressesTracingConnection::InsertAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1:: InsertAddressRequest const& request) { auto span = internal::MakeSpan( "compute_global_addresses_v1::GlobalAddressesConnection::InsertAddress"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertAddress(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertAddress(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GlobalAddressesTracingConnection::InsertAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_global_addresses_v1::GlobalAddressesConnection::InsertAddress"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InsertAddress(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->InsertAddress(ExperimentalTag{}, operation)); } StreamRange @@ -139,27 +135,25 @@ GlobalAddressesTracingConnection::Move( StatusOr GlobalAddressesTracingConnection::Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1::MoveRequest const& request) { auto span = internal::MakeSpan( "compute_global_addresses_v1::GlobalAddressesConnection::Move"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, - child_->Move(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->Move(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GlobalAddressesTracingConnection::Move( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_global_addresses_v1::GlobalAddressesConnection::Move"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Move(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Move(ExperimentalTag{}, operation)); } future> @@ -174,27 +168,25 @@ GlobalAddressesTracingConnection::SetLabels( StatusOr GlobalAddressesTracingConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const& request) { auto span = internal::MakeSpan( "compute_global_addresses_v1::GlobalAddressesConnection::SetLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GlobalAddressesTracingConnection::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_global_addresses_v1::GlobalAddressesConnection::SetLabels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetLabels(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.h b/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.h index 47d942ba940e0..e755ded5fbc81 100644 --- a/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.h +++ b/google/cloud/compute/global_addresses/v1/internal/global_addresses_tracing_connection.h @@ -46,12 +46,12 @@ class GlobalAddressesTracingConnection DeleteAddressRequest const& request) override; StatusOr DeleteAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1:: DeleteAddressRequest const& request) override; future> DeleteAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetAddress( @@ -63,12 +63,12 @@ class GlobalAddressesTracingConnection InsertAddressRequest const& request) override; StatusOr InsertAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1:: InsertAddressRequest const& request) override; future> InsertAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListGlobalAddresses( @@ -80,12 +80,12 @@ class GlobalAddressesTracingConnection request) override; StatusOr Move( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1::MoveRequest const& request) override; future> Move( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetLabels( @@ -93,12 +93,12 @@ class GlobalAddressesTracingConnection request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/global_addresses/v1/mocks/mock_global_addresses_connection.h b/google/cloud/compute/global_addresses/v1/mocks/mock_global_addresses_connection.h index edfb2ecdd18a4..468c6061e0842 100644 --- a/google/cloud/compute/global_addresses/v1/mocks/mock_global_addresses_connection.h +++ b/google/cloud/compute/global_addresses/v1/mocks/mock_global_addresses_connection.h @@ -55,14 +55,14 @@ class MockGlobalAddressesConnection MOCK_METHOD(StatusOr, DeleteAddress, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1:: DeleteAddressRequest const& request), (override)); MOCK_METHOD(future>, DeleteAddress, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -79,14 +79,14 @@ class MockGlobalAddressesConnection MOCK_METHOD(StatusOr, InsertAddress, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1:: InsertAddressRequest const& request), (override)); MOCK_METHOD(future>, InsertAddress, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -104,14 +104,14 @@ class MockGlobalAddressesConnection MOCK_METHOD( StatusOr, Move, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1::MoveRequest const& request), (override)); MOCK_METHOD(future>, Move, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -122,14 +122,14 @@ class MockGlobalAddressesConnection (override)); MOCK_METHOD(StatusOr, SetLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1:: SetLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.cc b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.cc index 14c9d3272ef66..b4a991a9d0b7b 100644 --- a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.cc +++ b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.cc @@ -50,29 +50,28 @@ GlobalForwardingRulesTracingConnection::DeleteForwardingRule( StatusOr GlobalForwardingRulesTracingConnection::DeleteForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: DeleteForwardingRuleRequest const& request) { auto span = internal::MakeSpan( "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" "DeleteForwardingRule"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteForwardingRule( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteForwardingRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GlobalForwardingRulesTracingConnection::DeleteForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" "DeleteForwardingRule"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteForwardingRule( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteForwardingRule( + ExperimentalTag{}, operation)); } StatusOr @@ -100,29 +99,28 @@ GlobalForwardingRulesTracingConnection::InsertForwardingRule( StatusOr GlobalForwardingRulesTracingConnection::InsertForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: InsertForwardingRuleRequest const& request) { auto span = internal::MakeSpan( "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" "InsertForwardingRule"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertForwardingRule( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertForwardingRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GlobalForwardingRulesTracingConnection::InsertForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" "InsertForwardingRule"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertForwardingRule( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertForwardingRule( + ExperimentalTag{}, operation)); } StreamRange @@ -153,7 +151,7 @@ GlobalForwardingRulesTracingConnection::PatchForwardingRule( StatusOr GlobalForwardingRulesTracingConnection::PatchForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: PatchForwardingRuleRequest const& request) { auto span = internal::MakeSpan( @@ -161,21 +159,20 @@ GlobalForwardingRulesTracingConnection::PatchForwardingRule( "PatchForwardingRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchForwardingRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PatchForwardingRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GlobalForwardingRulesTracingConnection::PatchForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" "PatchForwardingRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchForwardingRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchForwardingRule( + ExperimentalTag{}, operation)); } future> @@ -191,7 +188,7 @@ GlobalForwardingRulesTracingConnection::SetLabels( StatusOr GlobalForwardingRulesTracingConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: SetLabelsRequest const& request) { auto span = internal::MakeSpan( @@ -199,21 +196,19 @@ GlobalForwardingRulesTracingConnection::SetLabels( "SetLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GlobalForwardingRulesTracingConnection::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" "SetLabels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetLabels(ExperimentalTag{}, operation)); } future> @@ -229,7 +224,7 @@ GlobalForwardingRulesTracingConnection::SetTarget( StatusOr GlobalForwardingRulesTracingConnection::SetTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: SetTargetRequest const& request) { auto span = internal::MakeSpan( @@ -237,21 +232,19 @@ GlobalForwardingRulesTracingConnection::SetTarget( "SetTarget"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetTarget(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetTarget(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GlobalForwardingRulesTracingConnection::SetTarget( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_global_forwarding_rules_v1::GlobalForwardingRulesConnection::" "SetTarget"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetTarget(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetTarget(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.h b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.h index 0602b26e60efe..0ec50b10ea617 100644 --- a/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.h +++ b/google/cloud/compute/global_forwarding_rules/v1/internal/global_forwarding_rules_tracing_connection.h @@ -50,13 +50,13 @@ class GlobalForwardingRulesTracingConnection DeleteForwardingRuleRequest const& request) override; StatusOr DeleteForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: DeleteForwardingRuleRequest const& request) override; future> DeleteForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetForwardingRule( @@ -69,13 +69,13 @@ class GlobalForwardingRulesTracingConnection InsertForwardingRuleRequest const& request) override; StatusOr InsertForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: InsertForwardingRuleRequest const& request) override; future> InsertForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -88,13 +88,13 @@ class GlobalForwardingRulesTracingConnection PatchForwardingRuleRequest const& request) override; StatusOr PatchForwardingRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: PatchForwardingRuleRequest const& request) override; future> PatchForwardingRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetLabels( @@ -102,12 +102,12 @@ class GlobalForwardingRulesTracingConnection SetLabelsRequest const& request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetTarget( @@ -115,12 +115,12 @@ class GlobalForwardingRulesTracingConnection SetTargetRequest const& request) override; StatusOr SetTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: SetTargetRequest const& request) override; future> SetTarget( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/global_forwarding_rules/v1/mocks/mock_global_forwarding_rules_connection.h b/google/cloud/compute/global_forwarding_rules/v1/mocks/mock_global_forwarding_rules_connection.h index ed7edaf2380e0..599f879d8834d 100644 --- a/google/cloud/compute/global_forwarding_rules/v1/mocks/mock_global_forwarding_rules_connection.h +++ b/google/cloud/compute/global_forwarding_rules/v1/mocks/mock_global_forwarding_rules_connection.h @@ -57,14 +57,14 @@ class MockGlobalForwardingRulesConnection MOCK_METHOD(StatusOr, DeleteForwardingRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: DeleteForwardingRuleRequest const& request), (override)); MOCK_METHOD(future>, DeleteForwardingRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -82,14 +82,14 @@ class MockGlobalForwardingRulesConnection MOCK_METHOD(StatusOr, InsertForwardingRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: InsertForwardingRuleRequest const& request), (override)); MOCK_METHOD(future>, InsertForwardingRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -107,14 +107,14 @@ class MockGlobalForwardingRulesConnection MOCK_METHOD(StatusOr, PatchForwardingRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: PatchForwardingRuleRequest const& request), (override)); MOCK_METHOD(future>, PatchForwardingRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -125,14 +125,14 @@ class MockGlobalForwardingRulesConnection (override)); MOCK_METHOD(StatusOr, SetLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: SetLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -143,14 +143,14 @@ class MockGlobalForwardingRulesConnection (override)); MOCK_METHOD(StatusOr, SetTarget, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_forwarding_rules::v1:: SetTargetRequest const& request), (override)); MOCK_METHOD(future>, SetTarget, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.cc b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.cc index bca4b7e94d578..b3ff0b1e04ebe 100644 --- a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.cc +++ b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.cc @@ -51,29 +51,28 @@ GlobalNetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( StatusOr GlobalNetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) { auto span = internal::MakeSpan( "compute_global_network_endpoint_groups_v1::" "GlobalNetworkEndpointGroupsConnection::AttachNetworkEndpoints"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->AttachNetworkEndpoints( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->AttachNetworkEndpoints(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GlobalNetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_global_network_endpoint_groups_v1::" "GlobalNetworkEndpointGroupsConnection::AttachNetworkEndpoints"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->AttachNetworkEndpoints( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->AttachNetworkEndpoints( + ExperimentalTag{}, operation)); } future> @@ -90,29 +89,28 @@ GlobalNetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( StatusOr GlobalNetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) { auto span = internal::MakeSpan( "compute_global_network_endpoint_groups_v1::" "GlobalNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteNetworkEndpointGroup(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> GlobalNetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_global_network_endpoint_groups_v1::" "GlobalNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteNetworkEndpointGroup( + ExperimentalTag{}, operation)); } future> @@ -129,29 +127,28 @@ GlobalNetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( StatusOr GlobalNetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) { auto span = internal::MakeSpan( "compute_global_network_endpoint_groups_v1::" "GlobalNetworkEndpointGroupsConnection::DetachNetworkEndpoints"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DetachNetworkEndpoints( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DetachNetworkEndpoints(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GlobalNetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_global_network_endpoint_groups_v1::" "GlobalNetworkEndpointGroupsConnection::DetachNetworkEndpoints"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DetachNetworkEndpoints( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DetachNetworkEndpoints( + ExperimentalTag{}, operation)); } StatusOr @@ -179,29 +176,28 @@ GlobalNetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( StatusOr GlobalNetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) { auto span = internal::MakeSpan( "compute_global_network_endpoint_groups_v1::" "GlobalNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InsertNetworkEndpointGroup(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> GlobalNetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_global_network_endpoint_groups_v1::" "GlobalNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertNetworkEndpointGroup( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.h b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.h index 84674294c0680..0a2e1397d437f 100644 --- a/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.h +++ b/google/cloud/compute/global_network_endpoint_groups/v1/internal/global_network_endpoint_groups_tracing_connection.h @@ -50,13 +50,13 @@ class GlobalNetworkEndpointGroupsTracingConnection AttachNetworkEndpointsRequest const& request) override; StatusOr AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) override; future> AttachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -66,13 +66,13 @@ class GlobalNetworkEndpointGroupsTracingConnection StatusOr DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) override; future> DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -81,13 +81,13 @@ class GlobalNetworkEndpointGroupsTracingConnection DetachNetworkEndpointsRequest const& request) override; StatusOr DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) override; future> DetachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -102,13 +102,13 @@ class GlobalNetworkEndpointGroupsTracingConnection StatusOr InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) override; future> InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/global_network_endpoint_groups/v1/mocks/mock_global_network_endpoint_groups_connection.h b/google/cloud/compute/global_network_endpoint_groups/v1/mocks/mock_global_network_endpoint_groups_connection.h index ba7c3dbf720d1..e6ab4c9646bce 100644 --- a/google/cloud/compute/global_network_endpoint_groups/v1/mocks/mock_global_network_endpoint_groups_connection.h +++ b/google/cloud/compute/global_network_endpoint_groups/v1/mocks/mock_global_network_endpoint_groups_connection.h @@ -57,14 +57,14 @@ class MockGlobalNetworkEndpointGroupsConnection MOCK_METHOD(StatusOr, AttachNetworkEndpoints, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request), (override)); MOCK_METHOD(future>, AttachNetworkEndpoints, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -76,14 +76,14 @@ class MockGlobalNetworkEndpointGroupsConnection MOCK_METHOD(StatusOr, DeleteNetworkEndpointGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request), (override)); MOCK_METHOD(future>, DeleteNetworkEndpointGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -95,14 +95,14 @@ class MockGlobalNetworkEndpointGroupsConnection MOCK_METHOD(StatusOr, DetachNetworkEndpoints, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request), (override)); MOCK_METHOD(future>, DetachNetworkEndpoints, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -120,14 +120,14 @@ class MockGlobalNetworkEndpointGroupsConnection MOCK_METHOD(StatusOr, InsertNetworkEndpointGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request), (override)); MOCK_METHOD(future>, InsertNetworkEndpointGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_tracing_connection.cc b/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_tracing_connection.cc index cbdc2e36ec419..c028c0e994b23 100644 --- a/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_tracing_connection.cc +++ b/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_tracing_connection.cc @@ -51,29 +51,28 @@ GlobalPublicDelegatedPrefixesTracingConnection::DeletePublicDelegatedPrefix( StatusOr GlobalPublicDelegatedPrefixesTracingConnection::DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request) { auto span = internal::MakeSpan( "compute_global_public_delegated_prefixes_v1::" "GlobalPublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeletePublicDelegatedPrefix(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> GlobalPublicDelegatedPrefixesTracingConnection::DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_global_public_delegated_prefixes_v1::" "GlobalPublicDelegatedPrefixesConnection::DeletePublicDelegatedPrefix"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeletePublicDelegatedPrefix( + ExperimentalTag{}, operation)); } StatusOr @@ -101,29 +100,28 @@ GlobalPublicDelegatedPrefixesTracingConnection::InsertPublicDelegatedPrefix( StatusOr GlobalPublicDelegatedPrefixesTracingConnection::InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request) { auto span = internal::MakeSpan( "compute_global_public_delegated_prefixes_v1::" "GlobalPublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InsertPublicDelegatedPrefix(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> GlobalPublicDelegatedPrefixesTracingConnection::InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_global_public_delegated_prefixes_v1::" "GlobalPublicDelegatedPrefixesConnection::InsertPublicDelegatedPrefix"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertPublicDelegatedPrefix( + ExperimentalTag{}, operation)); } StreamRange @@ -156,29 +154,28 @@ GlobalPublicDelegatedPrefixesTracingConnection::PatchPublicDelegatedPrefix( StatusOr GlobalPublicDelegatedPrefixesTracingConnection::PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request) { auto span = internal::MakeSpan( "compute_global_public_delegated_prefixes_v1::" "GlobalPublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->PatchPublicDelegatedPrefix(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> GlobalPublicDelegatedPrefixesTracingConnection::PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_global_public_delegated_prefixes_v1::" "GlobalPublicDelegatedPrefixesConnection::PatchPublicDelegatedPrefix"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchPublicDelegatedPrefix( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_tracing_connection.h b/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_tracing_connection.h index 920c5d8d82309..7689cd87eb988 100644 --- a/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_tracing_connection.h +++ b/google/cloud/compute/global_public_delegated_prefixes/v1/internal/global_public_delegated_prefixes_tracing_connection.h @@ -51,13 +51,13 @@ class GlobalPublicDelegatedPrefixesTracingConnection StatusOr DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request) override; future> DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -72,13 +72,13 @@ class GlobalPublicDelegatedPrefixesTracingConnection StatusOr InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request) override; future> InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -93,13 +93,13 @@ class GlobalPublicDelegatedPrefixesTracingConnection StatusOr PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request) override; future> PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/global_public_delegated_prefixes/v1/mocks/mock_global_public_delegated_prefixes_connection.h b/google/cloud/compute/global_public_delegated_prefixes/v1/mocks/mock_global_public_delegated_prefixes_connection.h index 562be4945a958..d511725b5d4b7 100644 --- a/google/cloud/compute/global_public_delegated_prefixes/v1/mocks/mock_global_public_delegated_prefixes_connection.h +++ b/google/cloud/compute/global_public_delegated_prefixes/v1/mocks/mock_global_public_delegated_prefixes_connection.h @@ -57,14 +57,14 @@ class MockGlobalPublicDelegatedPrefixesConnection MOCK_METHOD(StatusOr, DeletePublicDelegatedPrefix, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes:: v1::DeletePublicDelegatedPrefixRequest const& request), (override)); MOCK_METHOD(future>, DeletePublicDelegatedPrefix, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -82,14 +82,14 @@ class MockGlobalPublicDelegatedPrefixesConnection MOCK_METHOD(StatusOr, InsertPublicDelegatedPrefix, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes:: v1::InsertPublicDelegatedPrefixRequest const& request), (override)); MOCK_METHOD(future>, InsertPublicDelegatedPrefix, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -108,14 +108,14 @@ class MockGlobalPublicDelegatedPrefixesConnection MOCK_METHOD(StatusOr, PatchPublicDelegatedPrefix, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::global_public_delegated_prefixes:: v1::PatchPublicDelegatedPrefixRequest const& request), (override)); MOCK_METHOD(future>, PatchPublicDelegatedPrefix, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.cc b/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.cc index 17d71ad968987..57ade757aa3c9 100644 --- a/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.cc +++ b/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.cc @@ -60,27 +60,26 @@ HealthChecksTracingConnection::DeleteHealthCheck( StatusOr HealthChecksTracingConnection::DeleteHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: DeleteHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_health_checks_v1::HealthChecksConnection::DeleteHealthCheck"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteHealthCheck(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HealthChecksTracingConnection::DeleteHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_health_checks_v1::HealthChecksConnection::DeleteHealthCheck"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteHealthCheck(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteHealthCheck(ExperimentalTag{}, operation)); } StatusOr @@ -105,27 +104,26 @@ HealthChecksTracingConnection::InsertHealthCheck( StatusOr HealthChecksTracingConnection::InsertHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: InsertHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_health_checks_v1::HealthChecksConnection::InsertHealthCheck"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertHealthCheck(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->InsertHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HealthChecksTracingConnection::InsertHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_health_checks_v1::HealthChecksConnection::InsertHealthCheck"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertHealthCheck(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertHealthCheck(ExperimentalTag{}, operation)); } StreamRange @@ -153,27 +151,26 @@ HealthChecksTracingConnection::PatchHealthCheck( StatusOr HealthChecksTracingConnection::PatchHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: PatchHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_health_checks_v1::HealthChecksConnection::PatchHealthCheck"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchHealthCheck(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PatchHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HealthChecksTracingConnection::PatchHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_health_checks_v1::HealthChecksConnection::PatchHealthCheck"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->PatchHealthCheck(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->PatchHealthCheck(ExperimentalTag{}, operation)); } future> @@ -188,27 +185,26 @@ HealthChecksTracingConnection::UpdateHealthCheck( StatusOr HealthChecksTracingConnection::UpdateHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: UpdateHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_health_checks_v1::HealthChecksConnection::UpdateHealthCheck"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateHealthCheck(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HealthChecksTracingConnection::UpdateHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_health_checks_v1::HealthChecksConnection::UpdateHealthCheck"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateHealthCheck(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateHealthCheck(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.h b/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.h index c196fd102c685..f5724b555a477 100644 --- a/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.h +++ b/google/cloud/compute/health_checks/v1/internal/health_checks_tracing_connection.h @@ -51,13 +51,13 @@ class HealthChecksTracingConnection DeleteHealthCheckRequest const& request) override; StatusOr DeleteHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: DeleteHealthCheckRequest const& request) override; future> DeleteHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetHealthCheck( @@ -69,13 +69,13 @@ class HealthChecksTracingConnection InsertHealthCheckRequest const& request) override; StatusOr InsertHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: InsertHealthCheckRequest const& request) override; future> InsertHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListHealthChecks( @@ -87,12 +87,12 @@ class HealthChecksTracingConnection PatchHealthCheckRequest const& request) override; StatusOr PatchHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: PatchHealthCheckRequest const& request) override; future> PatchHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -100,13 +100,13 @@ class HealthChecksTracingConnection UpdateHealthCheckRequest const& request) override; StatusOr UpdateHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: UpdateHealthCheckRequest const& request) override; future> UpdateHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/health_checks/v1/mocks/mock_health_checks_connection.h b/google/cloud/compute/health_checks/v1/mocks/mock_health_checks_connection.h index 7831284be2968..ed64e57a41be4 100644 --- a/google/cloud/compute/health_checks/v1/mocks/mock_health_checks_connection.h +++ b/google/cloud/compute/health_checks/v1/mocks/mock_health_checks_connection.h @@ -64,14 +64,14 @@ class MockHealthChecksConnection MOCK_METHOD(StatusOr, DeleteHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: DeleteHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, DeleteHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -89,14 +89,14 @@ class MockHealthChecksConnection MOCK_METHOD(StatusOr, InsertHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: InsertHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, InsertHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -115,14 +115,14 @@ class MockHealthChecksConnection MOCK_METHOD(StatusOr, PatchHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: PatchHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, PatchHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -134,14 +134,14 @@ class MockHealthChecksConnection MOCK_METHOD(StatusOr, UpdateHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::health_checks::v1:: UpdateHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, UpdateHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.cc b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.cc index fdafa41b9b9be..38093ddc3507a 100644 --- a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.cc +++ b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.cc @@ -48,29 +48,28 @@ HttpHealthChecksTracingConnection::DeleteHttpHealthCheck( StatusOr HttpHealthChecksTracingConnection::DeleteHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: DeleteHttpHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_http_health_checks_v1::HttpHealthChecksConnection::" "DeleteHttpHealthCheck"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteHttpHealthCheck( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteHttpHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HttpHealthChecksTracingConnection::DeleteHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_http_health_checks_v1::HttpHealthChecksConnection::" "DeleteHttpHealthCheck"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteHttpHealthCheck( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteHttpHealthCheck( + ExperimentalTag{}, operation)); } StatusOr @@ -98,29 +97,28 @@ HttpHealthChecksTracingConnection::InsertHttpHealthCheck( StatusOr HttpHealthChecksTracingConnection::InsertHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: InsertHttpHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_http_health_checks_v1::HttpHealthChecksConnection::" "InsertHttpHealthCheck"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertHttpHealthCheck( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertHttpHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HttpHealthChecksTracingConnection::InsertHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_http_health_checks_v1::HttpHealthChecksConnection::" "InsertHttpHealthCheck"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertHttpHealthCheck( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertHttpHealthCheck( + ExperimentalTag{}, operation)); } StreamRange @@ -151,29 +149,28 @@ HttpHealthChecksTracingConnection::PatchHttpHealthCheck( StatusOr HttpHealthChecksTracingConnection::PatchHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: PatchHttpHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_http_health_checks_v1::HttpHealthChecksConnection::" "PatchHttpHealthCheck"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchHttpHealthCheck( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->PatchHttpHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HttpHealthChecksTracingConnection::PatchHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_http_health_checks_v1::HttpHealthChecksConnection::" "PatchHttpHealthCheck"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchHttpHealthCheck( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchHttpHealthCheck( + ExperimentalTag{}, operation)); } future> @@ -190,29 +187,28 @@ HttpHealthChecksTracingConnection::UpdateHttpHealthCheck( StatusOr HttpHealthChecksTracingConnection::UpdateHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: UpdateHttpHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_http_health_checks_v1::HttpHealthChecksConnection::" "UpdateHttpHealthCheck"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateHttpHealthCheck( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateHttpHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HttpHealthChecksTracingConnection::UpdateHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_http_health_checks_v1::HttpHealthChecksConnection::" "UpdateHttpHealthCheck"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateHttpHealthCheck( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateHttpHealthCheck( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.h b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.h index 4f9a7f1a92dfc..3b71cfb551c81 100644 --- a/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.h +++ b/google/cloud/compute/http_health_checks/v1/internal/http_health_checks_tracing_connection.h @@ -47,13 +47,13 @@ class HttpHealthChecksTracingConnection DeleteHttpHealthCheckRequest const& request) override; StatusOr DeleteHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: DeleteHttpHealthCheckRequest const& request) override; future> DeleteHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetHttpHealthCheck( @@ -66,13 +66,13 @@ class HttpHealthChecksTracingConnection InsertHttpHealthCheckRequest const& request) override; StatusOr InsertHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: InsertHttpHealthCheckRequest const& request) override; future> InsertHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -84,13 +84,13 @@ class HttpHealthChecksTracingConnection PatchHttpHealthCheckRequest const& request) override; StatusOr PatchHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: PatchHttpHealthCheckRequest const& request) override; future> PatchHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -99,13 +99,13 @@ class HttpHealthChecksTracingConnection UpdateHttpHealthCheckRequest const& request) override; StatusOr UpdateHttpHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: UpdateHttpHealthCheckRequest const& request) override; future> UpdateHttpHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/http_health_checks/v1/mocks/mock_http_health_checks_connection.h b/google/cloud/compute/http_health_checks/v1/mocks/mock_http_health_checks_connection.h index 9ccf6c26951a2..9badc1405c56b 100644 --- a/google/cloud/compute/http_health_checks/v1/mocks/mock_http_health_checks_connection.h +++ b/google/cloud/compute/http_health_checks/v1/mocks/mock_http_health_checks_connection.h @@ -55,14 +55,14 @@ class MockHttpHealthChecksConnection MOCK_METHOD(StatusOr, DeleteHttpHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: DeleteHttpHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, DeleteHttpHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -80,14 +80,14 @@ class MockHttpHealthChecksConnection MOCK_METHOD(StatusOr, InsertHttpHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: InsertHttpHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, InsertHttpHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -105,14 +105,14 @@ class MockHttpHealthChecksConnection MOCK_METHOD(StatusOr, PatchHttpHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: PatchHttpHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, PatchHttpHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -124,14 +124,14 @@ class MockHttpHealthChecksConnection MOCK_METHOD(StatusOr, UpdateHttpHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::http_health_checks::v1:: UpdateHttpHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, UpdateHttpHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.cc b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.cc index 76e155f5a773c..c3a38aa717208 100644 --- a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.cc +++ b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.cc @@ -48,29 +48,28 @@ HttpsHealthChecksTracingConnection::DeleteHttpsHealthCheck( StatusOr HttpsHealthChecksTracingConnection::DeleteHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: DeleteHttpsHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_https_health_checks_v1::HttpsHealthChecksConnection::" "DeleteHttpsHealthCheck"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteHttpsHealthCheck( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteHttpsHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HttpsHealthChecksTracingConnection::DeleteHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_https_health_checks_v1::HttpsHealthChecksConnection::" "DeleteHttpsHealthCheck"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteHttpsHealthCheck( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteHttpsHealthCheck( + ExperimentalTag{}, operation)); } StatusOr @@ -98,29 +97,28 @@ HttpsHealthChecksTracingConnection::InsertHttpsHealthCheck( StatusOr HttpsHealthChecksTracingConnection::InsertHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: InsertHttpsHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_https_health_checks_v1::HttpsHealthChecksConnection::" "InsertHttpsHealthCheck"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertHttpsHealthCheck( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertHttpsHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HttpsHealthChecksTracingConnection::InsertHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_https_health_checks_v1::HttpsHealthChecksConnection::" "InsertHttpsHealthCheck"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertHttpsHealthCheck( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertHttpsHealthCheck( + ExperimentalTag{}, operation)); } StreamRange @@ -151,29 +149,28 @@ HttpsHealthChecksTracingConnection::PatchHttpsHealthCheck( StatusOr HttpsHealthChecksTracingConnection::PatchHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: PatchHttpsHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_https_health_checks_v1::HttpsHealthChecksConnection::" "PatchHttpsHealthCheck"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchHttpsHealthCheck( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->PatchHttpsHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HttpsHealthChecksTracingConnection::PatchHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_https_health_checks_v1::HttpsHealthChecksConnection::" "PatchHttpsHealthCheck"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchHttpsHealthCheck( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchHttpsHealthCheck( + ExperimentalTag{}, operation)); } future> @@ -190,29 +187,28 @@ HttpsHealthChecksTracingConnection::UpdateHttpsHealthCheck( StatusOr HttpsHealthChecksTracingConnection::UpdateHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: UpdateHttpsHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_https_health_checks_v1::HttpsHealthChecksConnection::" "UpdateHttpsHealthCheck"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateHttpsHealthCheck( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateHttpsHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HttpsHealthChecksTracingConnection::UpdateHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_https_health_checks_v1::HttpsHealthChecksConnection::" "UpdateHttpsHealthCheck"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateHttpsHealthCheck( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateHttpsHealthCheck( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.h b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.h index b2a1eea1e8e5f..a7ce43fb22524 100644 --- a/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.h +++ b/google/cloud/compute/https_health_checks/v1/internal/https_health_checks_tracing_connection.h @@ -48,13 +48,13 @@ class HttpsHealthChecksTracingConnection DeleteHttpsHealthCheckRequest const& request) override; StatusOr DeleteHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: DeleteHttpsHealthCheckRequest const& request) override; future> DeleteHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -67,13 +67,13 @@ class HttpsHealthChecksTracingConnection InsertHttpsHealthCheckRequest const& request) override; StatusOr InsertHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: InsertHttpsHealthCheckRequest const& request) override; future> InsertHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -86,13 +86,13 @@ class HttpsHealthChecksTracingConnection PatchHttpsHealthCheckRequest const& request) override; StatusOr PatchHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: PatchHttpsHealthCheckRequest const& request) override; future> PatchHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -101,13 +101,13 @@ class HttpsHealthChecksTracingConnection UpdateHttpsHealthCheckRequest const& request) override; StatusOr UpdateHttpsHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: UpdateHttpsHealthCheckRequest const& request) override; future> UpdateHttpsHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/https_health_checks/v1/mocks/mock_https_health_checks_connection.h b/google/cloud/compute/https_health_checks/v1/mocks/mock_https_health_checks_connection.h index 771a270fe8f51..5960ab191f428 100644 --- a/google/cloud/compute/https_health_checks/v1/mocks/mock_https_health_checks_connection.h +++ b/google/cloud/compute/https_health_checks/v1/mocks/mock_https_health_checks_connection.h @@ -55,14 +55,14 @@ class MockHttpsHealthChecksConnection MOCK_METHOD(StatusOr, DeleteHttpsHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: DeleteHttpsHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, DeleteHttpsHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -80,14 +80,14 @@ class MockHttpsHealthChecksConnection MOCK_METHOD(StatusOr, InsertHttpsHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: InsertHttpsHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, InsertHttpsHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -105,14 +105,14 @@ class MockHttpsHealthChecksConnection MOCK_METHOD(StatusOr, PatchHttpsHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: PatchHttpsHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, PatchHttpsHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -124,14 +124,14 @@ class MockHttpsHealthChecksConnection MOCK_METHOD(StatusOr, UpdateHttpsHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::https_health_checks::v1:: UpdateHttpsHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, UpdateHttpsHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/images/v1/internal/images_tracing_connection.cc b/google/cloud/compute/images/v1/internal/images_tracing_connection.cc index 0d649f70cf3eb..52e20ee58dd49 100644 --- a/google/cloud/compute/images/v1/internal/images_tracing_connection.cc +++ b/google/cloud/compute/images/v1/internal/images_tracing_connection.cc @@ -45,27 +45,25 @@ ImagesTracingConnection::DeleteImage( StatusOr ImagesTracingConnection::DeleteImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::DeleteImageRequest const& request) { auto span = internal::MakeSpan("compute_images_v1::ImagesConnection::DeleteImage"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteImage(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteImage(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ImagesTracingConnection::DeleteImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_images_v1::ImagesConnection::DeleteImage"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteImage(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteImage(ExperimentalTag{}, operation)); } future> @@ -79,26 +77,24 @@ ImagesTracingConnection::Deprecate( StatusOr ImagesTracingConnection::Deprecate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::DeprecateRequest const& request) { auto span = internal::MakeSpan("compute_images_v1::ImagesConnection::Deprecate"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->Deprecate(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->Deprecate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ImagesTracingConnection::Deprecate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_images_v1::ImagesConnection::Deprecate"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Deprecate(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Deprecate(ExperimentalTag{}, operation)); } StatusOr @@ -142,27 +138,25 @@ ImagesTracingConnection::InsertImage( StatusOr ImagesTracingConnection::InsertImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::InsertImageRequest const& request) { auto span = internal::MakeSpan("compute_images_v1::ImagesConnection::InsertImage"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertImage(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertImage(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ImagesTracingConnection::InsertImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_images_v1::ImagesConnection::InsertImage"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InsertImage(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->InsertImage(ExperimentalTag{}, operation)); } StreamRange @@ -187,26 +181,24 @@ ImagesTracingConnection::PatchImage( StatusOr ImagesTracingConnection::PatchImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::PatchImageRequest const& request) { auto span = internal::MakeSpan("compute_images_v1::ImagesConnection::PatchImage"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchImage(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchImage(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ImagesTracingConnection::PatchImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_images_v1::ImagesConnection::PatchImage"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchImage(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->PatchImage(ExperimentalTag{}, operation)); } StatusOr @@ -230,26 +222,24 @@ ImagesTracingConnection::SetLabels( StatusOr ImagesTracingConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::SetLabelsRequest const& request) { auto span = internal::MakeSpan("compute_images_v1::ImagesConnection::SetLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ImagesTracingConnection::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_images_v1::ImagesConnection::SetLabels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetLabels(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/compute/images/v1/internal/images_tracing_connection.h b/google/cloud/compute/images/v1/internal/images_tracing_connection.h index 1a4d039b88cbc..261256ef318b9 100644 --- a/google/cloud/compute/images/v1/internal/images_tracing_connection.h +++ b/google/cloud/compute/images/v1/internal/images_tracing_connection.h @@ -44,12 +44,12 @@ class ImagesTracingConnection : public compute_images_v1::ImagesConnection { request) override; StatusOr DeleteImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::DeleteImageRequest const& request) override; future> DeleteImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Deprecate( @@ -57,12 +57,12 @@ class ImagesTracingConnection : public compute_images_v1::ImagesConnection { override; StatusOr Deprecate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::DeprecateRequest const& request) override; future> Deprecate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetImage( @@ -82,12 +82,12 @@ class ImagesTracingConnection : public compute_images_v1::ImagesConnection { request) override; StatusOr InsertImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::InsertImageRequest const& request) override; future> InsertImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListImages( @@ -99,12 +99,12 @@ class ImagesTracingConnection : public compute_images_v1::ImagesConnection { override; StatusOr PatchImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::PatchImageRequest const& request) override; future> PatchImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -116,12 +116,12 @@ class ImagesTracingConnection : public compute_images_v1::ImagesConnection { override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr diff --git a/google/cloud/compute/images/v1/mocks/mock_images_connection.h b/google/cloud/compute/images/v1/mocks/mock_images_connection.h index 9f61ebd4455f1..e483cac0cbdb5 100644 --- a/google/cloud/compute/images/v1/mocks/mock_images_connection.h +++ b/google/cloud/compute/images/v1/mocks/mock_images_connection.h @@ -54,14 +54,14 @@ class MockImagesConnection : public compute_images_v1::ImagesConnection { MOCK_METHOD( StatusOr, DeleteImage, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::DeleteImageRequest const& request), (override)); MOCK_METHOD(future>, DeleteImage, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -72,14 +72,14 @@ class MockImagesConnection : public compute_images_v1::ImagesConnection { (override)); MOCK_METHOD(StatusOr, Deprecate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::DeprecateRequest const& request), (override)); MOCK_METHOD(future>, Deprecate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -108,14 +108,14 @@ class MockImagesConnection : public compute_images_v1::ImagesConnection { MOCK_METHOD( StatusOr, InsertImage, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::InsertImageRequest const& request), (override)); MOCK_METHOD(future>, InsertImage, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -131,14 +131,14 @@ class MockImagesConnection : public compute_images_v1::ImagesConnection { (override)); MOCK_METHOD(StatusOr, PatchImage, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::PatchImageRequest const& request), (override)); MOCK_METHOD(future>, PatchImage, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -155,14 +155,14 @@ class MockImagesConnection : public compute_images_v1::ImagesConnection { (override)); MOCK_METHOD(StatusOr, SetLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::images::v1::SetLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.cc b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.cc index 3732a250788ab..291605af76fe1 100644 --- a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.cc +++ b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.cc @@ -50,7 +50,7 @@ InstanceGroupManagerResizeRequestsTracingConnection::Cancel( StatusOr InstanceGroupManagerResizeRequestsTracingConnection::Cancel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: CancelRequest const& request) { auto span = internal::MakeSpan( @@ -58,21 +58,19 @@ InstanceGroupManagerResizeRequestsTracingConnection::Cancel( "InstanceGroupManagerResizeRequestsConnection::Cancel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->Cancel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->Cancel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceGroupManagerResizeRequestsTracingConnection::Cancel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_manager_resize_requests_v1::" "InstanceGroupManagerResizeRequestsConnection::Cancel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Cancel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Cancel(ExperimentalTag{}, operation)); } future> @@ -93,7 +91,7 @@ InstanceGroupManagerResizeRequestsTracingConnection:: StatusOr InstanceGroupManagerResizeRequestsTracingConnection:: DeleteInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests:: v1::DeleteInstanceGroupManagerResizeRequestRequest const& request) { auto span = internal::MakeSpan( @@ -101,16 +99,15 @@ InstanceGroupManagerResizeRequestsTracingConnection:: "InstanceGroupManagerResizeRequestsConnection::" "DeleteInstanceGroupManagerResizeRequest"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan( - *span, child_->DeleteInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, - request)); + return internal::EndSpan(*span, + child_->DeleteInstanceGroupManagerResizeRequest( + ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceGroupManagerResizeRequestsTracingConnection:: DeleteInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_manager_resize_requests_v1::" @@ -119,7 +116,7 @@ InstanceGroupManagerResizeRequestsTracingConnection:: internal::OTelScope scope(span); return internal::EndSpan(std::move(span), child_->DeleteInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag{}, operation)); + ExperimentalTag{}, operation)); } StatusOr @@ -154,7 +151,7 @@ InstanceGroupManagerResizeRequestsTracingConnection:: StatusOr InstanceGroupManagerResizeRequestsTracingConnection:: InsertInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests:: v1::InsertInstanceGroupManagerResizeRequestRequest const& request) { auto span = internal::MakeSpan( @@ -162,16 +159,15 @@ InstanceGroupManagerResizeRequestsTracingConnection:: "InstanceGroupManagerResizeRequestsConnection::" "InsertInstanceGroupManagerResizeRequest"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan( - *span, child_->InsertInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag{}, google::cloud::NoAwaitTag{}, - request)); + return internal::EndSpan(*span, + child_->InsertInstanceGroupManagerResizeRequest( + ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceGroupManagerResizeRequestsTracingConnection:: InsertInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_manager_resize_requests_v1::" @@ -180,7 +176,7 @@ InstanceGroupManagerResizeRequestsTracingConnection:: internal::OTelScope scope(span); return internal::EndSpan(std::move(span), child_->InsertInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag{}, operation)); + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.h b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.h index 5be18e2705390..3909de065939f 100644 --- a/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.h +++ b/google/cloud/compute/instance_group_manager_resize_requests/v1/internal/instance_group_manager_resize_requests_tracing_connection.h @@ -49,12 +49,12 @@ class InstanceGroupManagerResizeRequestsTracingConnection CancelRequest const& request) override; StatusOr Cancel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: CancelRequest const& request) override; future> Cancel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -65,14 +65,14 @@ class InstanceGroupManagerResizeRequestsTracingConnection StatusOr DeleteInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: DeleteInstanceGroupManagerResizeRequestRequest const& request) override; future> DeleteInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -88,14 +88,14 @@ class InstanceGroupManagerResizeRequestsTracingConnection StatusOr InsertInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: InsertInstanceGroupManagerResizeRequestRequest const& request) override; future> InsertInstanceGroupManagerResizeRequest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange< diff --git a/google/cloud/compute/instance_group_manager_resize_requests/v1/mocks/mock_instance_group_manager_resize_requests_connection.h b/google/cloud/compute/instance_group_manager_resize_requests/v1/mocks/mock_instance_group_manager_resize_requests_connection.h index 92ae02b91ebb8..246abd0e2f20d 100644 --- a/google/cloud/compute/instance_group_manager_resize_requests/v1/mocks/mock_instance_group_manager_resize_requests_connection.h +++ b/google/cloud/compute/instance_group_manager_resize_requests/v1/mocks/mock_instance_group_manager_resize_requests_connection.h @@ -58,14 +58,14 @@ class MockInstanceGroupManagerResizeRequestsConnection MOCK_METHOD( StatusOr, Cancel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: CancelRequest const& request), (override)); MOCK_METHOD(future>, Cancel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -79,14 +79,14 @@ class MockInstanceGroupManagerResizeRequestsConnection MOCK_METHOD( StatusOr, DeleteInstanceGroupManagerResizeRequest, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: DeleteInstanceGroupManagerResizeRequestRequest const& request), (override)); MOCK_METHOD(future>, DeleteInstanceGroupManagerResizeRequest, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -108,14 +108,14 @@ class MockInstanceGroupManagerResizeRequestsConnection MOCK_METHOD( StatusOr, InsertInstanceGroupManagerResizeRequest, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_manager_resize_requests::v1:: InsertInstanceGroupManagerResizeRequestRequest const& request), (override)); MOCK_METHOD(future>, InsertInstanceGroupManagerResizeRequest, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.cc b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.cc index a0f22297696f5..55d151f835a15 100644 --- a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.cc +++ b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.cc @@ -49,7 +49,7 @@ InstanceGroupManagersTracingConnection::AbandonInstances( StatusOr InstanceGroupManagersTracingConnection::AbandonInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: AbandonInstancesRequest const& request) { auto span = internal::MakeSpan( @@ -57,21 +57,20 @@ InstanceGroupManagersTracingConnection::AbandonInstances( "AbandonInstances"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AbandonInstances(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->AbandonInstances(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceGroupManagersTracingConnection::AbandonInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "AbandonInstances"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->AbandonInstances(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->AbandonInstances(ExperimentalTag{}, operation)); } StreamRange< @@ -105,29 +104,28 @@ InstanceGroupManagersTracingConnection::ApplyUpdatesToInstances( StatusOr InstanceGroupManagersTracingConnection::ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "ApplyUpdatesToInstances"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ApplyUpdatesToInstances( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->ApplyUpdatesToInstances(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> InstanceGroupManagersTracingConnection::ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "ApplyUpdatesToInstances"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ApplyUpdatesToInstances( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ApplyUpdatesToInstances( + ExperimentalTag{}, operation)); } future> @@ -143,7 +141,7 @@ InstanceGroupManagersTracingConnection::CreateInstances( StatusOr InstanceGroupManagersTracingConnection::CreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: CreateInstancesRequest const& request) { auto span = internal::MakeSpan( @@ -151,21 +149,19 @@ InstanceGroupManagersTracingConnection::CreateInstances( "CreateInstances"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateInstances(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateInstances(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceGroupManagersTracingConnection::CreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "CreateInstances"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateInstances(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateInstances(ExperimentalTag{}, operation)); } future> @@ -182,29 +178,28 @@ InstanceGroupManagersTracingConnection::DeleteInstanceGroupManager( StatusOr InstanceGroupManagersTracingConnection::DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "DeleteInstanceGroupManager"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteInstanceGroupManager( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteInstanceGroupManager(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> InstanceGroupManagersTracingConnection::DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "DeleteInstanceGroupManager"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteInstanceGroupManager( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteInstanceGroupManager( + ExperimentalTag{}, operation)); } future> @@ -220,7 +215,7 @@ InstanceGroupManagersTracingConnection::DeleteInstances( StatusOr InstanceGroupManagersTracingConnection::DeleteInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstancesRequest const& request) { auto span = internal::MakeSpan( @@ -228,21 +223,19 @@ InstanceGroupManagersTracingConnection::DeleteInstances( "DeleteInstances"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteInstances(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteInstances(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceGroupManagersTracingConnection::DeleteInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "DeleteInstances"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteInstances(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteInstances(ExperimentalTag{}, operation)); } future> @@ -259,29 +252,28 @@ InstanceGroupManagersTracingConnection::DeletePerInstanceConfigs( StatusOr InstanceGroupManagersTracingConnection::DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "DeletePerInstanceConfigs"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeletePerInstanceConfigs( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeletePerInstanceConfigs(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> InstanceGroupManagersTracingConnection::DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "DeletePerInstanceConfigs"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeletePerInstanceConfigs( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeletePerInstanceConfigs( + ExperimentalTag{}, operation)); } StatusOr @@ -309,29 +301,28 @@ InstanceGroupManagersTracingConnection::InsertInstanceGroupManager( StatusOr InstanceGroupManagersTracingConnection::InsertInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "InsertInstanceGroupManager"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertInstanceGroupManager( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InsertInstanceGroupManager(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> InstanceGroupManagersTracingConnection::InsertInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "InsertInstanceGroupManager"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertInstanceGroupManager( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertInstanceGroupManager( + ExperimentalTag{}, operation)); } StreamRange @@ -402,29 +393,28 @@ InstanceGroupManagersTracingConnection::PatchInstanceGroupManager( StatusOr InstanceGroupManagersTracingConnection::PatchInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "PatchInstanceGroupManager"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchInstanceGroupManager( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->PatchInstanceGroupManager(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> InstanceGroupManagersTracingConnection::PatchInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "PatchInstanceGroupManager"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchInstanceGroupManager( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchInstanceGroupManager( + ExperimentalTag{}, operation)); } future> @@ -441,29 +431,28 @@ InstanceGroupManagersTracingConnection::PatchPerInstanceConfigs( StatusOr InstanceGroupManagersTracingConnection::PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "PatchPerInstanceConfigs"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchPerInstanceConfigs( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->PatchPerInstanceConfigs(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> InstanceGroupManagersTracingConnection::PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "PatchPerInstanceConfigs"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchPerInstanceConfigs( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchPerInstanceConfigs( + ExperimentalTag{}, operation)); } future> @@ -479,7 +468,7 @@ InstanceGroupManagersTracingConnection::RecreateInstances( StatusOr InstanceGroupManagersTracingConnection::RecreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: RecreateInstancesRequest const& request) { auto span = internal::MakeSpan( @@ -487,21 +476,20 @@ InstanceGroupManagersTracingConnection::RecreateInstances( "RecreateInstances"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RecreateInstances(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->RecreateInstances(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceGroupManagersTracingConnection::RecreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "RecreateInstances"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RecreateInstances(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RecreateInstances(ExperimentalTag{}, operation)); } future> @@ -517,7 +505,7 @@ InstanceGroupManagersTracingConnection::Resize( StatusOr InstanceGroupManagersTracingConnection::Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: ResizeRequest const& request) { auto span = internal::MakeSpan( @@ -525,21 +513,19 @@ InstanceGroupManagersTracingConnection::Resize( "Resize"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->Resize(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->Resize(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceGroupManagersTracingConnection::Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "Resize"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Resize(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Resize(ExperimentalTag{}, operation)); } future> @@ -556,7 +542,7 @@ InstanceGroupManagersTracingConnection::SetInstanceTemplate( StatusOr InstanceGroupManagersTracingConnection::SetInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: SetInstanceTemplateRequest const& request) { auto span = internal::MakeSpan( @@ -564,21 +550,20 @@ InstanceGroupManagersTracingConnection::SetInstanceTemplate( "SetInstanceTemplate"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetInstanceTemplate(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetInstanceTemplate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceGroupManagersTracingConnection::SetInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "SetInstanceTemplate"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetInstanceTemplate(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetInstanceTemplate( + ExperimentalTag{}, operation)); } future> @@ -594,7 +579,7 @@ InstanceGroupManagersTracingConnection::SetTargetPools( StatusOr InstanceGroupManagersTracingConnection::SetTargetPools( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: SetTargetPoolsRequest const& request) { auto span = internal::MakeSpan( @@ -602,21 +587,19 @@ InstanceGroupManagersTracingConnection::SetTargetPools( "SetTargetPools"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetTargetPools(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetTargetPools(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceGroupManagersTracingConnection::SetTargetPools( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "SetTargetPools"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetTargetPools(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetTargetPools(ExperimentalTag{}, operation)); } future> @@ -633,29 +616,28 @@ InstanceGroupManagersTracingConnection::UpdatePerInstanceConfigs( StatusOr InstanceGroupManagersTracingConnection::UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "UpdatePerInstanceConfigs"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdatePerInstanceConfigs(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> InstanceGroupManagersTracingConnection::UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_group_managers_v1::InstanceGroupManagersConnection::" "UpdatePerInstanceConfigs"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdatePerInstanceConfigs( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.h b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.h index 5159eed1c18cc..4892da9a39cb6 100644 --- a/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.h +++ b/google/cloud/compute/instance_group_managers/v1/internal/instance_group_managers_tracing_connection.h @@ -49,12 +49,12 @@ class InstanceGroupManagersTracingConnection AbandonInstancesRequest const& request) override; StatusOr AbandonInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: AbandonInstancesRequest const& request) override; future> AbandonInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request) override; future> ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> CreateInstances( @@ -83,12 +83,12 @@ class InstanceGroupManagersTracingConnection CreateInstancesRequest const& request) override; StatusOr CreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: CreateInstancesRequest const& request) override; future> CreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -98,13 +98,13 @@ class InstanceGroupManagersTracingConnection StatusOr DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request) override; future> DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> DeleteInstances( @@ -112,12 +112,12 @@ class InstanceGroupManagersTracingConnection DeleteInstancesRequest const& request) override; StatusOr DeleteInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstancesRequest const& request) override; future> DeleteInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -126,13 +126,13 @@ class InstanceGroupManagersTracingConnection DeletePerInstanceConfigsRequest const& request) override; StatusOr DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request) override; future> DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -147,13 +147,13 @@ class InstanceGroupManagersTracingConnection StatusOr InsertInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request) override; future> InsertInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -183,13 +183,13 @@ class InstanceGroupManagersTracingConnection StatusOr PatchInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request) override; future> PatchInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -198,13 +198,13 @@ class InstanceGroupManagersTracingConnection PatchPerInstanceConfigsRequest const& request) override; StatusOr PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request) override; future> PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -212,13 +212,13 @@ class InstanceGroupManagersTracingConnection RecreateInstancesRequest const& request) override; StatusOr RecreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: RecreateInstancesRequest const& request) override; future> RecreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Resize( @@ -226,12 +226,12 @@ class InstanceGroupManagersTracingConnection ResizeRequest const& request) override; StatusOr Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: ResizeRequest const& request) override; future> Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -239,13 +239,13 @@ class InstanceGroupManagersTracingConnection SetInstanceTemplateRequest const& request) override; StatusOr SetInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: SetInstanceTemplateRequest const& request) override; future> SetInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetTargetPools( @@ -253,12 +253,12 @@ class InstanceGroupManagersTracingConnection SetTargetPoolsRequest const& request) override; StatusOr SetTargetPools( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: SetTargetPoolsRequest const& request) override; future> SetTargetPools( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -267,13 +267,13 @@ class InstanceGroupManagersTracingConnection UpdatePerInstanceConfigsRequest const& request) override; StatusOr UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request) override; future> UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/instance_group_managers/v1/mocks/mock_instance_group_managers_connection.h b/google/cloud/compute/instance_group_managers/v1/mocks/mock_instance_group_managers_connection.h index feb18eff550b4..d2c572f88dad6 100644 --- a/google/cloud/compute/instance_group_managers/v1/mocks/mock_instance_group_managers_connection.h +++ b/google/cloud/compute/instance_group_managers/v1/mocks/mock_instance_group_managers_connection.h @@ -57,14 +57,14 @@ class MockInstanceGroupManagersConnection MOCK_METHOD(StatusOr, AbandonInstances, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: AbandonInstancesRequest const& request), (override)); MOCK_METHOD(future>, AbandonInstances, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -85,14 +85,14 @@ class MockInstanceGroupManagersConnection MOCK_METHOD(StatusOr, ApplyUpdatesToInstances, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request), (override)); MOCK_METHOD(future>, ApplyUpdatesToInstances, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -104,14 +104,14 @@ class MockInstanceGroupManagersConnection MOCK_METHOD(StatusOr, CreateInstances, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: CreateInstancesRequest const& request), (override)); MOCK_METHOD(future>, CreateInstances, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -123,14 +123,14 @@ class MockInstanceGroupManagersConnection MOCK_METHOD(StatusOr, DeleteInstanceGroupManager, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request), (override)); MOCK_METHOD(future>, DeleteInstanceGroupManager, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -142,14 +142,14 @@ class MockInstanceGroupManagersConnection MOCK_METHOD(StatusOr, DeleteInstances, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeleteInstancesRequest const& request), (override)); MOCK_METHOD(future>, DeleteInstances, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -161,14 +161,14 @@ class MockInstanceGroupManagersConnection MOCK_METHOD(StatusOr, DeletePerInstanceConfigs, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request), (override)); MOCK_METHOD(future>, DeletePerInstanceConfigs, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -186,14 +186,14 @@ class MockInstanceGroupManagersConnection MOCK_METHOD(StatusOr, InsertInstanceGroupManager, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request), (override)); MOCK_METHOD(future>, InsertInstanceGroupManager, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -232,14 +232,14 @@ class MockInstanceGroupManagersConnection MOCK_METHOD(StatusOr, PatchInstanceGroupManager, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request), (override)); MOCK_METHOD(future>, PatchInstanceGroupManager, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -251,14 +251,14 @@ class MockInstanceGroupManagersConnection MOCK_METHOD(StatusOr, PatchPerInstanceConfigs, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request), (override)); MOCK_METHOD(future>, PatchPerInstanceConfigs, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -270,14 +270,14 @@ class MockInstanceGroupManagersConnection MOCK_METHOD(StatusOr, RecreateInstances, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: RecreateInstancesRequest const& request), (override)); MOCK_METHOD(future>, RecreateInstances, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -288,14 +288,14 @@ class MockInstanceGroupManagersConnection (override)); MOCK_METHOD(StatusOr, Resize, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: ResizeRequest const& request), (override)); MOCK_METHOD(future>, Resize, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -307,14 +307,14 @@ class MockInstanceGroupManagersConnection MOCK_METHOD(StatusOr, SetInstanceTemplate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: SetInstanceTemplateRequest const& request), (override)); MOCK_METHOD(future>, SetInstanceTemplate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -326,14 +326,14 @@ class MockInstanceGroupManagersConnection MOCK_METHOD(StatusOr, SetTargetPools, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: SetTargetPoolsRequest const& request), (override)); MOCK_METHOD(future>, SetTargetPools, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -345,14 +345,14 @@ class MockInstanceGroupManagersConnection MOCK_METHOD(StatusOr, UpdatePerInstanceConfigs, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request), (override)); MOCK_METHOD(future>, UpdatePerInstanceConfigs, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.cc b/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.cc index bb32658866520..383285a09f3ef 100644 --- a/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.cc +++ b/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.cc @@ -45,27 +45,25 @@ InstanceGroupsTracingConnection::AddInstances( StatusOr InstanceGroupsTracingConnection::AddInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1::AddInstancesRequest const& request) { auto span = internal::MakeSpan( "compute_instance_groups_v1::InstanceGroupsConnection::AddInstances"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddInstances(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddInstances(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceGroupsTracingConnection::AddInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_groups_v1::InstanceGroupsConnection::AddInstances"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AddInstances(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->AddInstances(ExperimentalTag{}, operation)); } StreamRange InstanceGroupsTracingConnection::DeleteInstanceGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: DeleteInstanceGroupRequest const& request) { auto span = internal::MakeSpan( @@ -105,21 +103,20 @@ InstanceGroupsTracingConnection::DeleteInstanceGroup( "DeleteInstanceGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteInstanceGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteInstanceGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceGroupsTracingConnection::DeleteInstanceGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_groups_v1::InstanceGroupsConnection::" "DeleteInstanceGroup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteInstanceGroup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteInstanceGroup( + ExperimentalTag{}, operation)); } StatusOr @@ -146,7 +143,7 @@ InstanceGroupsTracingConnection::InsertInstanceGroup( StatusOr InstanceGroupsTracingConnection::InsertInstanceGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: InsertInstanceGroupRequest const& request) { auto span = internal::MakeSpan( @@ -154,21 +151,20 @@ InstanceGroupsTracingConnection::InsertInstanceGroup( "InsertInstanceGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertInstanceGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->InsertInstanceGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceGroupsTracingConnection::InsertInstanceGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_groups_v1::InstanceGroupsConnection::" "InsertInstanceGroup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InsertInstanceGroup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertInstanceGroup( + ExperimentalTag{}, operation)); } StreamRange @@ -210,27 +206,25 @@ InstanceGroupsTracingConnection::RemoveInstances( StatusOr InstanceGroupsTracingConnection::RemoveInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: RemoveInstancesRequest const& request) { auto span = internal::MakeSpan( "compute_instance_groups_v1::InstanceGroupsConnection::RemoveInstances"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RemoveInstances(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RemoveInstances(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceGroupsTracingConnection::RemoveInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_groups_v1::InstanceGroupsConnection::RemoveInstances"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RemoveInstances(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RemoveInstances(ExperimentalTag{}, operation)); } future> @@ -245,27 +239,25 @@ InstanceGroupsTracingConnection::SetNamedPorts( StatusOr InstanceGroupsTracingConnection::SetNamedPorts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: SetNamedPortsRequest const& request) { auto span = internal::MakeSpan( "compute_instance_groups_v1::InstanceGroupsConnection::SetNamedPorts"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetNamedPorts(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetNamedPorts(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceGroupsTracingConnection::SetNamedPorts( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_groups_v1::InstanceGroupsConnection::SetNamedPorts"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetNamedPorts(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetNamedPorts(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.h b/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.h index 223c74ce85b7a..6ce75b73668b9 100644 --- a/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.h +++ b/google/cloud/compute/instance_groups/v1/internal/instance_groups_tracing_connection.h @@ -46,12 +46,12 @@ class InstanceGroupsTracingConnection AddInstancesRequest const& request) override; StatusOr AddInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: AddInstancesRequest const& request) override; future> AddInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange DeleteInstanceGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: DeleteInstanceGroupRequest const& request) override; future> DeleteInstanceGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetInstanceGroup( @@ -83,13 +83,13 @@ class InstanceGroupsTracingConnection InsertInstanceGroupRequest const& request) override; StatusOr InsertInstanceGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: InsertInstanceGroupRequest const& request) override; future> InsertInstanceGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -106,12 +106,12 @@ class InstanceGroupsTracingConnection RemoveInstancesRequest const& request) override; StatusOr RemoveInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: RemoveInstancesRequest const& request) override; future> RemoveInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetNamedPorts( @@ -119,12 +119,12 @@ class InstanceGroupsTracingConnection SetNamedPortsRequest const& request) override; StatusOr SetNamedPorts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: SetNamedPortsRequest const& request) override; future> SetNamedPorts( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/instance_groups/v1/mocks/mock_instance_groups_connection.h b/google/cloud/compute/instance_groups/v1/mocks/mock_instance_groups_connection.h index e151e66f2f674..b3194b789ee4d 100644 --- a/google/cloud/compute/instance_groups/v1/mocks/mock_instance_groups_connection.h +++ b/google/cloud/compute/instance_groups/v1/mocks/mock_instance_groups_connection.h @@ -55,14 +55,14 @@ class MockInstanceGroupsConnection MOCK_METHOD(StatusOr, AddInstances, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: AddInstancesRequest const& request), (override)); MOCK_METHOD(future>, AddInstances, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -82,14 +82,14 @@ class MockInstanceGroupsConnection MOCK_METHOD(StatusOr, DeleteInstanceGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: DeleteInstanceGroupRequest const& request), (override)); MOCK_METHOD(future>, DeleteInstanceGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -107,14 +107,14 @@ class MockInstanceGroupsConnection MOCK_METHOD(StatusOr, InsertInstanceGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: InsertInstanceGroupRequest const& request), (override)); MOCK_METHOD(future>, InsertInstanceGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -139,14 +139,14 @@ class MockInstanceGroupsConnection MOCK_METHOD(StatusOr, RemoveInstances, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: RemoveInstancesRequest const& request), (override)); MOCK_METHOD(future>, RemoveInstances, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -158,14 +158,14 @@ class MockInstanceGroupsConnection MOCK_METHOD(StatusOr, SetNamedPorts, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_groups::v1:: SetNamedPortsRequest const& request), (override)); MOCK_METHOD(future>, SetNamedPorts, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.cc b/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.cc index 50918f063160e..8eb245cf39b4e 100644 --- a/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.cc +++ b/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.cc @@ -58,29 +58,28 @@ InstanceSettingsTracingConnection::PatchInstanceSettings( StatusOr InstanceSettingsTracingConnection::PatchInstanceSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_settings::v1:: PatchInstanceSettingsRequest const& request) { auto span = internal::MakeSpan( "compute_instance_settings_v1::InstanceSettingsConnection::" "PatchInstanceSettings"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchInstanceSettings( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->PatchInstanceSettings(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceSettingsTracingConnection::PatchInstanceSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_settings_v1::InstanceSettingsConnection::" "PatchInstanceSettings"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchInstanceSettings( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchInstanceSettings( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.h b/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.h index 4a0e7074d12c4..e063f1af3b22e 100644 --- a/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.h +++ b/google/cloud/compute/instance_settings/v1/internal/instance_settings_tracing_connection.h @@ -51,13 +51,13 @@ class InstanceSettingsTracingConnection PatchInstanceSettingsRequest const& request) override; StatusOr PatchInstanceSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_settings::v1:: PatchInstanceSettingsRequest const& request) override; future> PatchInstanceSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/instance_settings/v1/mocks/mock_instance_settings_connection.h b/google/cloud/compute/instance_settings/v1/mocks/mock_instance_settings_connection.h index 05c1247e93aa8..8e0612872dbea 100644 --- a/google/cloud/compute/instance_settings/v1/mocks/mock_instance_settings_connection.h +++ b/google/cloud/compute/instance_settings/v1/mocks/mock_instance_settings_connection.h @@ -61,14 +61,14 @@ class MockInstanceSettingsConnection MOCK_METHOD(StatusOr, PatchInstanceSettings, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_settings::v1:: PatchInstanceSettingsRequest const& request), (override)); MOCK_METHOD(future>, PatchInstanceSettings, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.cc b/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.cc index b90a083e92ede..b08a31f27a6cb 100644 --- a/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.cc +++ b/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.cc @@ -64,29 +64,28 @@ InstanceTemplatesTracingConnection::DeleteInstanceTemplate( StatusOr InstanceTemplatesTracingConnection::DeleteInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_templates::v1:: DeleteInstanceTemplateRequest const& request) { auto span = internal::MakeSpan( "compute_instance_templates_v1::InstanceTemplatesConnection::" "DeleteInstanceTemplate"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteInstanceTemplate( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteInstanceTemplate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceTemplatesTracingConnection::DeleteInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_templates_v1::InstanceTemplatesConnection::" "DeleteInstanceTemplate"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteInstanceTemplate( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteInstanceTemplate( + ExperimentalTag{}, operation)); } StatusOr @@ -125,29 +124,28 @@ InstanceTemplatesTracingConnection::InsertInstanceTemplate( StatusOr InstanceTemplatesTracingConnection::InsertInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_templates::v1:: InsertInstanceTemplateRequest const& request) { auto span = internal::MakeSpan( "compute_instance_templates_v1::InstanceTemplatesConnection::" "InsertInstanceTemplate"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertInstanceTemplate( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertInstanceTemplate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceTemplatesTracingConnection::InsertInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instance_templates_v1::InstanceTemplatesConnection::" "InsertInstanceTemplate"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertInstanceTemplate( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertInstanceTemplate( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.h b/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.h index b1f50f262299a..7f09087c707a1 100644 --- a/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.h +++ b/google/cloud/compute/instance_templates/v1/internal/instance_templates_tracing_connection.h @@ -55,13 +55,13 @@ class InstanceTemplatesTracingConnection DeleteInstanceTemplateRequest const& request) override; StatusOr DeleteInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_templates::v1:: DeleteInstanceTemplateRequest const& request) override; future> DeleteInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -78,13 +78,13 @@ class InstanceTemplatesTracingConnection InsertInstanceTemplateRequest const& request) override; StatusOr InsertInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_templates::v1:: InsertInstanceTemplateRequest const& request) override; future> InsertInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/instance_templates/v1/mocks/mock_instance_templates_connection.h b/google/cloud/compute/instance_templates/v1/mocks/mock_instance_templates_connection.h index a4bdec791fd3e..81754decafa74 100644 --- a/google/cloud/compute/instance_templates/v1/mocks/mock_instance_templates_connection.h +++ b/google/cloud/compute/instance_templates/v1/mocks/mock_instance_templates_connection.h @@ -63,14 +63,14 @@ class MockInstanceTemplatesConnection MOCK_METHOD(StatusOr, DeleteInstanceTemplate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_templates::v1:: DeleteInstanceTemplateRequest const& request), (override)); MOCK_METHOD(future>, DeleteInstanceTemplate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -93,14 +93,14 @@ class MockInstanceTemplatesConnection MOCK_METHOD(StatusOr, InsertInstanceTemplate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instance_templates::v1:: InsertInstanceTemplateRequest const& request), (override)); MOCK_METHOD(future>, InsertInstanceTemplate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/instances/v1/internal/instances_tracing_connection.cc b/google/cloud/compute/instances/v1/internal/instances_tracing_connection.cc index a72a82d4100ae..ceb93c3a69510 100644 --- a/google/cloud/compute/instances/v1/internal/instances_tracing_connection.cc +++ b/google/cloud/compute/instances/v1/internal/instances_tracing_connection.cc @@ -45,27 +45,25 @@ InstancesTracingConnection::AddAccessConfig( StatusOr InstancesTracingConnection::AddAccessConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::AddAccessConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddAccessConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddAccessConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::AddAccessConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::AddAccessConfig"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->AddAccessConfig(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->AddAccessConfig(ExperimentalTag{}, operation)); } future> @@ -81,27 +79,26 @@ InstancesTracingConnection::AddResourcePolicies( StatusOr InstancesTracingConnection::AddResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: AddResourcePoliciesRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::AddResourcePolicies"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddResourcePolicies(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->AddResourcePolicies(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::AddResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::AddResourcePolicies"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AddResourcePolicies(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->AddResourcePolicies( + ExperimentalTag{}, operation)); } StreamRange InstancesTracingConnection::AttachDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::AttachDiskRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::AttachDisk"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AttachDisk(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AttachDisk(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::AttachDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::AttachDisk"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AttachDisk(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->AttachDisk(ExperimentalTag{}, operation)); } future> @@ -165,27 +160,25 @@ InstancesTracingConnection::BulkInsert( StatusOr InstancesTracingConnection::BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::BulkInsert"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BulkInsert(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->BulkInsert(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::BulkInsert( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::BulkInsert"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->BulkInsert(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->BulkInsert(ExperimentalTag{}, operation)); } future> @@ -200,27 +193,25 @@ InstancesTracingConnection::DeleteInstance( StatusOr InstancesTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::DeleteInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::DeleteInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteInstance(ExperimentalTag{}, operation)); } future> @@ -236,27 +227,26 @@ InstancesTracingConnection::DeleteAccessConfig( StatusOr InstancesTracingConnection::DeleteAccessConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::DeleteAccessConfigRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::DeleteAccessConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAccessConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteAccessConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::DeleteAccessConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::DeleteAccessConfig"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteAccessConfig(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteAccessConfig( + ExperimentalTag{}, operation)); } future> @@ -271,27 +261,25 @@ InstancesTracingConnection::DetachDisk( StatusOr InstancesTracingConnection::DetachDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::DetachDisk"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DetachDisk(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DetachDisk(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::DetachDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::DetachDisk"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DetachDisk(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DetachDisk(ExperimentalTag{}, operation)); } StatusOr @@ -377,27 +365,25 @@ InstancesTracingConnection::InsertInstance( StatusOr InstancesTracingConnection::InsertInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::InsertInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::InsertInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::InsertInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertInstance(ExperimentalTag{}, operation)); } StreamRange @@ -437,27 +423,26 @@ InstancesTracingConnection::PerformMaintenance( StatusOr InstancesTracingConnection::PerformMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::PerformMaintenanceRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::PerformMaintenance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PerformMaintenance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PerformMaintenance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::PerformMaintenance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::PerformMaintenance"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PerformMaintenance(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PerformMaintenance( + ExperimentalTag{}, operation)); } future> @@ -473,27 +458,26 @@ InstancesTracingConnection::RemoveResourcePolicies( StatusOr InstancesTracingConnection::RemoveResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: RemoveResourcePoliciesRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::RemoveResourcePolicies"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RemoveResourcePolicies( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->RemoveResourcePolicies(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::RemoveResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::RemoveResourcePolicies"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RemoveResourcePolicies( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RemoveResourcePolicies( + ExperimentalTag{}, operation)); } future> @@ -507,26 +491,24 @@ InstancesTracingConnection::Reset( StatusOr InstancesTracingConnection::Reset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::ResetRequest const& request) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::Reset"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, - child_->Reset(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->Reset(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::Reset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::Reset"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Reset(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Reset(ExperimentalTag{}, operation)); } future> @@ -540,26 +522,24 @@ InstancesTracingConnection::Resume( StatusOr InstancesTracingConnection::Resume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::ResumeRequest const& request) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::Resume"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->Resume(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->Resume(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::Resume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::Resume"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Resume(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Resume(ExperimentalTag{}, operation)); } Status InstancesTracingConnection::SendDiagnosticInterrupt( @@ -584,27 +564,26 @@ InstancesTracingConnection::SetDeletionProtection( StatusOr InstancesTracingConnection::SetDeletionProtection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetDeletionProtectionRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetDeletionProtection"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SetDeletionProtection( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->SetDeletionProtection(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::SetDeletionProtection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetDeletionProtection"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SetDeletionProtection( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetDeletionProtection( + ExperimentalTag{}, operation)); } future> @@ -619,27 +598,26 @@ InstancesTracingConnection::SetDiskAutoDelete( StatusOr InstancesTracingConnection::SetDiskAutoDelete( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetDiskAutoDeleteRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetDiskAutoDelete"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetDiskAutoDelete(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetDiskAutoDelete(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::SetDiskAutoDelete( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetDiskAutoDelete"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetDiskAutoDelete(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetDiskAutoDelete(ExperimentalTag{}, operation)); } StatusOr @@ -664,27 +642,25 @@ InstancesTracingConnection::SetLabels( StatusOr InstancesTracingConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetLabels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetLabels(ExperimentalTag{}, operation)); } future> @@ -700,27 +676,26 @@ InstancesTracingConnection::SetMachineResources( StatusOr InstancesTracingConnection::SetMachineResources( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetMachineResourcesRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetMachineResources"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetMachineResources(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetMachineResources(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::SetMachineResources( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetMachineResources"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetMachineResources(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetMachineResources( + ExperimentalTag{}, operation)); } future> @@ -735,27 +710,25 @@ InstancesTracingConnection::SetMachineType( StatusOr InstancesTracingConnection::SetMachineType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetMachineType"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetMachineType(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetMachineType(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::SetMachineType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetMachineType"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetMachineType(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetMachineType(ExperimentalTag{}, operation)); } future> @@ -770,27 +743,25 @@ InstancesTracingConnection::SetMetadata( StatusOr InstancesTracingConnection::SetMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetMetadata"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetMetadata(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetMetadata(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::SetMetadata( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetMetadata"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetMetadata(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetMetadata(ExperimentalTag{}, operation)); } future> @@ -805,27 +776,26 @@ InstancesTracingConnection::SetMinCpuPlatform( StatusOr InstancesTracingConnection::SetMinCpuPlatform( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMinCpuPlatformRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetMinCpuPlatform"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetMinCpuPlatform(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetMinCpuPlatform(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::SetMinCpuPlatform( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetMinCpuPlatform"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetMinCpuPlatform(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetMinCpuPlatform(ExperimentalTag{}, operation)); } future> @@ -839,26 +809,24 @@ InstancesTracingConnection::SetName( StatusOr InstancesTracingConnection::SetName( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetNameRequest const& request) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::SetName"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetName(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetName(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::SetName( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::SetName"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetName(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetName(ExperimentalTag{}, operation)); } future> @@ -873,27 +841,25 @@ InstancesTracingConnection::SetScheduling( StatusOr InstancesTracingConnection::SetScheduling( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetScheduling"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetScheduling(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetScheduling(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::SetScheduling( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetScheduling"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetScheduling(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetScheduling(ExperimentalTag{}, operation)); } future> @@ -908,27 +874,26 @@ InstancesTracingConnection::SetSecurityPolicy( StatusOr InstancesTracingConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetSecurityPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetSecurityPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetSecurityPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetSecurityPolicy"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetSecurityPolicy(ExperimentalTag{}, operation)); } future> @@ -943,27 +908,26 @@ InstancesTracingConnection::SetServiceAccount( StatusOr InstancesTracingConnection::SetServiceAccount( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetServiceAccountRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetServiceAccount"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetServiceAccount(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetServiceAccount(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::SetServiceAccount( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SetServiceAccount"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetServiceAccount(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetServiceAccount(ExperimentalTag{}, operation)); } future> @@ -980,29 +944,29 @@ InstancesTracingConnection::SetShieldedInstanceIntegrityPolicy( StatusOr InstancesTracingConnection::SetShieldedInstanceIntegrityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetShieldedInstanceIntegrityPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::" "SetShieldedInstanceIntegrityPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SetShieldedInstanceIntegrityPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->SetShieldedInstanceIntegrityPolicy(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> InstancesTracingConnection::SetShieldedInstanceIntegrityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::" "SetShieldedInstanceIntegrityPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SetShieldedInstanceIntegrityPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->SetShieldedInstanceIntegrityPolicy(ExperimentalTag{}, operation)); } future> @@ -1016,26 +980,24 @@ InstancesTracingConnection::SetTags( StatusOr InstancesTracingConnection::SetTags( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::SetTags"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetTags(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetTags(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::SetTags( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::SetTags"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetTags(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetTags(ExperimentalTag{}, operation)); } future> @@ -1051,27 +1013,26 @@ InstancesTracingConnection::SimulateMaintenanceEvent( StatusOr InstancesTracingConnection::SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SimulateMaintenanceEventRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SimulateMaintenanceEvent"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SimulateMaintenanceEvent( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->SimulateMaintenanceEvent(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> InstancesTracingConnection::SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::SimulateMaintenanceEvent"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SimulateMaintenanceEvent( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SimulateMaintenanceEvent( + ExperimentalTag{}, operation)); } future> @@ -1085,26 +1046,24 @@ InstancesTracingConnection::Start( StatusOr InstancesTracingConnection::Start( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::StartRequest const& request) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::Start"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, - child_->Start(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->Start(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::Start( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::Start"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Start(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Start(ExperimentalTag{}, operation)); } future> @@ -1120,27 +1079,26 @@ InstancesTracingConnection::StartWithEncryptionKey( StatusOr InstancesTracingConnection::StartWithEncryptionKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: StartWithEncryptionKeyRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::StartWithEncryptionKey"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->StartWithEncryptionKey( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->StartWithEncryptionKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::StartWithEncryptionKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::StartWithEncryptionKey"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->StartWithEncryptionKey( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->StartWithEncryptionKey( + ExperimentalTag{}, operation)); } future> @@ -1154,26 +1112,24 @@ InstancesTracingConnection::Stop( StatusOr InstancesTracingConnection::Stop( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::StopRequest const& request) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::Stop"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, - child_->Stop(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->Stop(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::Stop( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::Stop"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Stop(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Stop(ExperimentalTag{}, operation)); } future> @@ -1187,26 +1143,24 @@ InstancesTracingConnection::Suspend( StatusOr InstancesTracingConnection::Suspend( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SuspendRequest const& request) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::Suspend"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->Suspend(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->Suspend(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::Suspend( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_instances_v1::InstancesConnection::Suspend"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Suspend(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Suspend(ExperimentalTag{}, operation)); } StatusOr @@ -1231,27 +1185,25 @@ InstancesTracingConnection::UpdateInstance( StatusOr InstancesTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::UpdateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::UpdateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateInstance(ExperimentalTag{}, operation)); } future> @@ -1267,27 +1219,26 @@ InstancesTracingConnection::UpdateAccessConfig( StatusOr InstancesTracingConnection::UpdateAccessConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::UpdateAccessConfigRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::UpdateAccessConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateAccessConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateAccessConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::UpdateAccessConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::UpdateAccessConfig"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateAccessConfig(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateAccessConfig( + ExperimentalTag{}, operation)); } future> @@ -1303,27 +1254,26 @@ InstancesTracingConnection::UpdateDisplayDevice( StatusOr InstancesTracingConnection::UpdateDisplayDevice( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateDisplayDeviceRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::UpdateDisplayDevice"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateDisplayDevice(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateDisplayDevice(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::UpdateDisplayDevice( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::UpdateDisplayDevice"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateDisplayDevice(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateDisplayDevice( + ExperimentalTag{}, operation)); } future> @@ -1339,27 +1289,26 @@ InstancesTracingConnection::UpdateNetworkInterface( StatusOr InstancesTracingConnection::UpdateNetworkInterface( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateNetworkInterfaceRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::UpdateNetworkInterface"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateNetworkInterface( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateNetworkInterface(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstancesTracingConnection::UpdateNetworkInterface( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::UpdateNetworkInterface"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateNetworkInterface( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateNetworkInterface( + ExperimentalTag{}, operation)); } future> @@ -1376,29 +1325,29 @@ InstancesTracingConnection::UpdateShieldedInstanceConfig( StatusOr InstancesTracingConnection::UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateShieldedInstanceConfigRequest const& request) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::" "UpdateShieldedInstanceConfig"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateShieldedInstanceConfig(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> InstancesTracingConnection::UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_instances_v1::InstancesConnection::" "UpdateShieldedInstanceConfig"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->UpdateShieldedInstanceConfig(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/instances/v1/internal/instances_tracing_connection.h b/google/cloud/compute/instances/v1/internal/instances_tracing_connection.h index d427194c5734a..87827a8451dff 100644 --- a/google/cloud/compute/instances/v1/internal/instances_tracing_connection.h +++ b/google/cloud/compute/instances/v1/internal/instances_tracing_connection.h @@ -45,12 +45,12 @@ class InstancesTracingConnection request) override; StatusOr AddAccessConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const& request) override; future> AddAccessConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -58,13 +58,13 @@ class InstancesTracingConnection AddResourcePoliciesRequest const& request) override; StatusOr AddResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: AddResourcePoliciesRequest const& request) override; future> AddResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange AttachDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::AttachDiskRequest const& request) override; future> AttachDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> BulkInsert( @@ -91,12 +91,12 @@ class InstancesTracingConnection request) override; StatusOr BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& request) override; future> BulkInsert( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> DeleteInstance( @@ -104,12 +104,12 @@ class InstancesTracingConnection request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& request) override; future> DeleteInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -117,13 +117,13 @@ class InstancesTracingConnection DeleteAccessConfigRequest const& request) override; StatusOr DeleteAccessConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: DeleteAccessConfigRequest const& request) override; future> DeleteAccessConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> DetachDisk( @@ -131,12 +131,12 @@ class InstancesTracingConnection request) override; StatusOr DetachDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& request) override; future> DetachDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetInstance( @@ -175,12 +175,12 @@ class InstancesTracingConnection request) override; StatusOr InsertInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& request) override; future> InsertInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListInstances( @@ -196,13 +196,13 @@ class InstancesTracingConnection PerformMaintenanceRequest const& request) override; StatusOr PerformMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: PerformMaintenanceRequest const& request) override; future> PerformMaintenance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -211,13 +211,13 @@ class InstancesTracingConnection RemoveResourcePoliciesRequest const& request) override; StatusOr RemoveResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: RemoveResourcePoliciesRequest const& request) override; future> RemoveResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Reset( @@ -225,12 +225,12 @@ class InstancesTracingConnection override; StatusOr Reset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::ResetRequest const& request) override; future> Reset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Resume( @@ -238,12 +238,12 @@ class InstancesTracingConnection override; StatusOr Resume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::ResumeRequest const& request) override; future> Resume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; Status SendDiagnosticInterrupt( @@ -256,13 +256,13 @@ class InstancesTracingConnection SetDeletionProtectionRequest const& request) override; StatusOr SetDeletionProtection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetDeletionProtectionRequest const& request) override; future> SetDeletionProtection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -270,13 +270,13 @@ class InstancesTracingConnection SetDiskAutoDeleteRequest const& request) override; StatusOr SetDiskAutoDelete( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetDiskAutoDeleteRequest const& request) override; future> SetDiskAutoDelete( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -288,12 +288,12 @@ class InstancesTracingConnection request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -301,13 +301,13 @@ class InstancesTracingConnection SetMachineResourcesRequest const& request) override; StatusOr SetMachineResources( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetMachineResourcesRequest const& request) override; future> SetMachineResources( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetMachineType( @@ -315,12 +315,12 @@ class InstancesTracingConnection request) override; StatusOr SetMachineType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& request) override; future> SetMachineType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetMetadata( @@ -328,12 +328,12 @@ class InstancesTracingConnection request) override; StatusOr SetMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& request) override; future> SetMetadata( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -341,13 +341,13 @@ class InstancesTracingConnection SetMinCpuPlatformRequest const& request) override; StatusOr SetMinCpuPlatform( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetMinCpuPlatformRequest const& request) override; future> SetMinCpuPlatform( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetName( @@ -355,12 +355,12 @@ class InstancesTracingConnection override; StatusOr SetName( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetNameRequest const& request) override; future> SetName( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetScheduling( @@ -368,12 +368,12 @@ class InstancesTracingConnection request) override; StatusOr SetScheduling( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& request) override; future> SetScheduling( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -381,13 +381,13 @@ class InstancesTracingConnection SetSecurityPolicyRequest const& request) override; StatusOr SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetSecurityPolicyRequest const& request) override; future> SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -395,13 +395,13 @@ class InstancesTracingConnection SetServiceAccountRequest const& request) override; StatusOr SetServiceAccount( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetServiceAccountRequest const& request) override; future> SetServiceAccount( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -411,13 +411,13 @@ class InstancesTracingConnection StatusOr SetShieldedInstanceIntegrityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetShieldedInstanceIntegrityPolicyRequest const& request) override; future> SetShieldedInstanceIntegrityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetTags( @@ -425,12 +425,12 @@ class InstancesTracingConnection override; StatusOr SetTags( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request) override; future> SetTags( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -439,13 +439,13 @@ class InstancesTracingConnection SimulateMaintenanceEventRequest const& request) override; StatusOr SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SimulateMaintenanceEventRequest const& request) override; future> SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Start( @@ -453,12 +453,12 @@ class InstancesTracingConnection override; StatusOr Start( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::StartRequest const& request) override; future> Start( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -467,13 +467,13 @@ class InstancesTracingConnection StartWithEncryptionKeyRequest const& request) override; StatusOr StartWithEncryptionKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: StartWithEncryptionKeyRequest const& request) override; future> StartWithEncryptionKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Stop( @@ -481,12 +481,12 @@ class InstancesTracingConnection override; StatusOr Stop( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::StopRequest const& request) override; future> Stop( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Suspend( @@ -494,12 +494,12 @@ class InstancesTracingConnection override; StatusOr Suspend( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SuspendRequest const& request) override; future> Suspend( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -511,12 +511,12 @@ class InstancesTracingConnection request) override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& request) override; future> UpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -524,13 +524,13 @@ class InstancesTracingConnection UpdateAccessConfigRequest const& request) override; StatusOr UpdateAccessConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateAccessConfigRequest const& request) override; future> UpdateAccessConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -538,13 +538,13 @@ class InstancesTracingConnection UpdateDisplayDeviceRequest const& request) override; StatusOr UpdateDisplayDevice( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateDisplayDeviceRequest const& request) override; future> UpdateDisplayDevice( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -553,13 +553,13 @@ class InstancesTracingConnection UpdateNetworkInterfaceRequest const& request) override; StatusOr UpdateNetworkInterface( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateNetworkInterfaceRequest const& request) override; future> UpdateNetworkInterface( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -569,13 +569,13 @@ class InstancesTracingConnection StatusOr UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateShieldedInstanceConfigRequest const& request) override; future> UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/instances/v1/mocks/mock_instances_connection.h b/google/cloud/compute/instances/v1/mocks/mock_instances_connection.h index e8d805e9599da..40876775f251a 100644 --- a/google/cloud/compute/instances/v1/mocks/mock_instances_connection.h +++ b/google/cloud/compute/instances/v1/mocks/mock_instances_connection.h @@ -56,14 +56,14 @@ class MockInstancesConnection MOCK_METHOD( StatusOr, AddAccessConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::AddAccessConfigRequest const& request), (override)); MOCK_METHOD(future>, AddAccessConfig, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -75,14 +75,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, AddResourcePolicies, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: AddResourcePoliciesRequest const& request), (override)); MOCK_METHOD(future>, AddResourcePolicies, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -102,14 +102,14 @@ class MockInstancesConnection MOCK_METHOD( StatusOr, AttachDisk, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::AttachDiskRequest const& request), (override)); MOCK_METHOD(future>, AttachDisk, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -121,14 +121,14 @@ class MockInstancesConnection MOCK_METHOD( StatusOr, BulkInsert, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::BulkInsertRequest const& request), (override)); MOCK_METHOD(future>, BulkInsert, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -141,14 +141,14 @@ class MockInstancesConnection MOCK_METHOD( StatusOr, DeleteInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::DeleteInstanceRequest const& request), (override)); MOCK_METHOD(future>, DeleteInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -160,14 +160,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, DeleteAccessConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: DeleteAccessConfigRequest const& request), (override)); MOCK_METHOD(future>, DeleteAccessConfig, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -179,14 +179,14 @@ class MockInstancesConnection MOCK_METHOD( StatusOr, DetachDisk, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::DetachDiskRequest const& request), (override)); MOCK_METHOD(future>, DetachDisk, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -243,14 +243,14 @@ class MockInstancesConnection MOCK_METHOD( StatusOr, InsertInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::InsertInstanceRequest const& request), (override)); MOCK_METHOD(future>, InsertInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -274,14 +274,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, PerformMaintenance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: PerformMaintenanceRequest const& request), (override)); MOCK_METHOD(future>, PerformMaintenance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -293,14 +293,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, RemoveResourcePolicies, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: RemoveResourcePoliciesRequest const& request), (override)); MOCK_METHOD(future>, RemoveResourcePolicies, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -311,13 +311,13 @@ class MockInstancesConnection MOCK_METHOD( StatusOr, Reset, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::ResetRequest const& request), (override)); MOCK_METHOD(future>, Reset, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -328,14 +328,14 @@ class MockInstancesConnection (override)); MOCK_METHOD(StatusOr, Resume, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::ResumeRequest const& request), (override)); MOCK_METHOD(future>, Resume, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -352,14 +352,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, SetDeletionProtection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetDeletionProtectionRequest const& request), (override)); MOCK_METHOD(future>, SetDeletionProtection, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -371,14 +371,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, SetDiskAutoDelete, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetDiskAutoDeleteRequest const& request), (override)); MOCK_METHOD(future>, SetDiskAutoDelete, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -396,14 +396,14 @@ class MockInstancesConnection MOCK_METHOD( StatusOr, SetLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -415,14 +415,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, SetMachineResources, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetMachineResourcesRequest const& request), (override)); MOCK_METHOD(future>, SetMachineResources, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -435,14 +435,14 @@ class MockInstancesConnection MOCK_METHOD( StatusOr, SetMachineType, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMachineTypeRequest const& request), (override)); MOCK_METHOD(future>, SetMachineType, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -454,14 +454,14 @@ class MockInstancesConnection MOCK_METHOD( StatusOr, SetMetadata, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetMetadataRequest const& request), (override)); MOCK_METHOD(future>, SetMetadata, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -473,14 +473,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, SetMinCpuPlatform, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetMinCpuPlatformRequest const& request), (override)); MOCK_METHOD(future>, SetMinCpuPlatform, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -491,14 +491,14 @@ class MockInstancesConnection (override)); MOCK_METHOD(StatusOr, SetName, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetNameRequest const& request), (override)); MOCK_METHOD(future>, SetName, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -511,14 +511,14 @@ class MockInstancesConnection MOCK_METHOD( StatusOr, SetScheduling, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetSchedulingRequest const& request), (override)); MOCK_METHOD(future>, SetScheduling, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -530,14 +530,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, SetSecurityPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetSecurityPolicyRequest const& request), (override)); MOCK_METHOD(future>, SetSecurityPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -549,14 +549,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, SetServiceAccount, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetServiceAccountRequest const& request), (override)); MOCK_METHOD(future>, SetServiceAccount, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -568,14 +568,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, SetShieldedInstanceIntegrityPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SetShieldedInstanceIntegrityPolicyRequest const& request), (override)); MOCK_METHOD(future>, SetShieldedInstanceIntegrityPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -586,14 +586,14 @@ class MockInstancesConnection (override)); MOCK_METHOD(StatusOr, SetTags, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SetTagsRequest const& request), (override)); MOCK_METHOD(future>, SetTags, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -605,14 +605,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, SimulateMaintenanceEvent, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: SimulateMaintenanceEventRequest const& request), (override)); MOCK_METHOD(future>, SimulateMaintenanceEvent, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -623,13 +623,13 @@ class MockInstancesConnection MOCK_METHOD( StatusOr, Start, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::StartRequest const& request), (override)); MOCK_METHOD(future>, Start, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -641,14 +641,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, StartWithEncryptionKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: StartWithEncryptionKeyRequest const& request), (override)); MOCK_METHOD(future>, StartWithEncryptionKey, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -659,13 +659,13 @@ class MockInstancesConnection MOCK_METHOD( StatusOr, Stop, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::StopRequest const& request), (override)); MOCK_METHOD(future>, Stop, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -676,14 +676,14 @@ class MockInstancesConnection (override)); MOCK_METHOD(StatusOr, Suspend, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::SuspendRequest const& request), (override)); MOCK_METHOD(future>, Suspend, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -703,14 +703,14 @@ class MockInstancesConnection MOCK_METHOD( StatusOr, UpdateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1::UpdateInstanceRequest const& request), (override)); MOCK_METHOD(future>, UpdateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -722,14 +722,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, UpdateAccessConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateAccessConfigRequest const& request), (override)); MOCK_METHOD(future>, UpdateAccessConfig, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -741,14 +741,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, UpdateDisplayDevice, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateDisplayDeviceRequest const& request), (override)); MOCK_METHOD(future>, UpdateDisplayDevice, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -760,14 +760,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, UpdateNetworkInterface, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateNetworkInterfaceRequest const& request), (override)); MOCK_METHOD(future>, UpdateNetworkInterface, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -779,14 +779,14 @@ class MockInstancesConnection MOCK_METHOD(StatusOr, UpdateShieldedInstanceConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::instances::v1:: UpdateShieldedInstanceConfigRequest const& request), (override)); MOCK_METHOD(future>, UpdateShieldedInstanceConfig, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.cc b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.cc index ed4f58cb0720c..f7d7844a334ef 100644 --- a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.cc +++ b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.cc @@ -67,29 +67,29 @@ InterconnectAttachmentsTracingConnection::DeleteInterconnectAttachment( StatusOr InterconnectAttachmentsTracingConnection::DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: DeleteInterconnectAttachmentRequest const& request) { auto span = internal::MakeSpan( "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" "DeleteInterconnectAttachment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteInterconnectAttachment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteInterconnectAttachment(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> InterconnectAttachmentsTracingConnection::DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" "DeleteInterconnectAttachment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteInterconnectAttachment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->DeleteInterconnectAttachment(ExperimentalTag{}, operation)); } StatusOr @@ -117,29 +117,29 @@ InterconnectAttachmentsTracingConnection::InsertInterconnectAttachment( StatusOr InterconnectAttachmentsTracingConnection::InsertInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: InsertInterconnectAttachmentRequest const& request) { auto span = internal::MakeSpan( "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" "InsertInterconnectAttachment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertInterconnectAttachment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InsertInterconnectAttachment(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> InterconnectAttachmentsTracingConnection::InsertInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" "InsertInterconnectAttachment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertInterconnectAttachment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->InsertInterconnectAttachment(ExperimentalTag{}, operation)); } StreamRange @@ -170,29 +170,28 @@ InterconnectAttachmentsTracingConnection::PatchInterconnectAttachment( StatusOr InterconnectAttachmentsTracingConnection::PatchInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: PatchInterconnectAttachmentRequest const& request) { auto span = internal::MakeSpan( "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" "PatchInterconnectAttachment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchInterconnectAttachment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->PatchInterconnectAttachment(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> InterconnectAttachmentsTracingConnection::PatchInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" "PatchInterconnectAttachment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchInterconnectAttachment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchInterconnectAttachment( + ExperimentalTag{}, operation)); } future> @@ -208,7 +207,7 @@ InterconnectAttachmentsTracingConnection::SetLabels( StatusOr InterconnectAttachmentsTracingConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: SetLabelsRequest const& request) { auto span = internal::MakeSpan( @@ -216,21 +215,19 @@ InterconnectAttachmentsTracingConnection::SetLabels( "SetLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InterconnectAttachmentsTracingConnection::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_interconnect_attachments_v1::InterconnectAttachmentsConnection::" "SetLabels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetLabels(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.h b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.h index da91e01372170..e1b028a6af9a0 100644 --- a/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.h +++ b/google/cloud/compute/interconnect_attachments/v1/internal/interconnect_attachments_tracing_connection.h @@ -57,13 +57,13 @@ class InterconnectAttachmentsTracingConnection StatusOr DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: DeleteInterconnectAttachmentRequest const& request) override; future> DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -78,13 +78,13 @@ class InterconnectAttachmentsTracingConnection StatusOr InsertInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: InsertInterconnectAttachmentRequest const& request) override; future> InsertInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -99,13 +99,13 @@ class InterconnectAttachmentsTracingConnection StatusOr PatchInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: PatchInterconnectAttachmentRequest const& request) override; future> PatchInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetLabels( @@ -113,12 +113,12 @@ class InterconnectAttachmentsTracingConnection SetLabelsRequest const& request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/interconnect_attachments/v1/mocks/mock_interconnect_attachments_connection.h b/google/cloud/compute/interconnect_attachments/v1/mocks/mock_interconnect_attachments_connection.h index 4cd3f9d515393..e834a9ce5ac65 100644 --- a/google/cloud/compute/interconnect_attachments/v1/mocks/mock_interconnect_attachments_connection.h +++ b/google/cloud/compute/interconnect_attachments/v1/mocks/mock_interconnect_attachments_connection.h @@ -65,14 +65,14 @@ class MockInterconnectAttachmentsConnection MOCK_METHOD(StatusOr, DeleteInterconnectAttachment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: DeleteInterconnectAttachmentRequest const& request), (override)); MOCK_METHOD(future>, DeleteInterconnectAttachment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -90,14 +90,14 @@ class MockInterconnectAttachmentsConnection MOCK_METHOD(StatusOr, InsertInterconnectAttachment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: InsertInterconnectAttachmentRequest const& request), (override)); MOCK_METHOD(future>, InsertInterconnectAttachment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -116,14 +116,14 @@ class MockInterconnectAttachmentsConnection MOCK_METHOD(StatusOr, PatchInterconnectAttachment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: PatchInterconnectAttachmentRequest const& request), (override)); MOCK_METHOD(future>, PatchInterconnectAttachment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -134,14 +134,14 @@ class MockInterconnectAttachmentsConnection (override)); MOCK_METHOD(StatusOr, SetLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnect_attachments::v1:: SetLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.cc b/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.cc index bab3da06d545c..7ad6f06a186ae 100644 --- a/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.cc +++ b/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.cc @@ -46,27 +46,26 @@ InterconnectsTracingConnection::DeleteInterconnect( StatusOr InterconnectsTracingConnection::DeleteInterconnect( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: DeleteInterconnectRequest const& request) { auto span = internal::MakeSpan( "compute_interconnects_v1::InterconnectsConnection::DeleteInterconnect"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteInterconnect(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteInterconnect(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InterconnectsTracingConnection::DeleteInterconnect( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_interconnects_v1::InterconnectsConnection::DeleteInterconnect"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteInterconnect(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteInterconnect( + ExperimentalTag{}, operation)); } StatusOr @@ -112,27 +111,26 @@ InterconnectsTracingConnection::InsertInterconnect( StatusOr InterconnectsTracingConnection::InsertInterconnect( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: InsertInterconnectRequest const& request) { auto span = internal::MakeSpan( "compute_interconnects_v1::InterconnectsConnection::InsertInterconnect"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertInterconnect(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->InsertInterconnect(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InterconnectsTracingConnection::InsertInterconnect( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_interconnects_v1::InterconnectsConnection::InsertInterconnect"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InsertInterconnect(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertInterconnect( + ExperimentalTag{}, operation)); } StreamRange @@ -160,27 +158,26 @@ InterconnectsTracingConnection::PatchInterconnect( StatusOr InterconnectsTracingConnection::PatchInterconnect( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: PatchInterconnectRequest const& request) { auto span = internal::MakeSpan( "compute_interconnects_v1::InterconnectsConnection::PatchInterconnect"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchInterconnect(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PatchInterconnect(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InterconnectsTracingConnection::PatchInterconnect( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_interconnects_v1::InterconnectsConnection::PatchInterconnect"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->PatchInterconnect(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->PatchInterconnect(ExperimentalTag{}, operation)); } future> @@ -195,27 +192,25 @@ InterconnectsTracingConnection::SetLabels( StatusOr InterconnectsTracingConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& request) { auto span = internal::MakeSpan( "compute_interconnects_v1::InterconnectsConnection::SetLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InterconnectsTracingConnection::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_interconnects_v1::InterconnectsConnection::SetLabels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetLabels(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.h b/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.h index 4a614ee21b041..bacddcc4593ac 100644 --- a/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.h +++ b/google/cloud/compute/interconnects/v1/internal/interconnects_tracing_connection.h @@ -45,13 +45,13 @@ class InterconnectsTracingConnection DeleteInterconnectRequest const& request) override; StatusOr DeleteInterconnect( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: DeleteInterconnectRequest const& request) override; future> DeleteInterconnect( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetInterconnect( @@ -72,13 +72,13 @@ class InterconnectsTracingConnection InsertInterconnectRequest const& request) override; StatusOr InsertInterconnect( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: InsertInterconnectRequest const& request) override; future> InsertInterconnect( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListInterconnects( @@ -90,13 +90,13 @@ class InterconnectsTracingConnection PatchInterconnectRequest const& request) override; StatusOr PatchInterconnect( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: PatchInterconnectRequest const& request) override; future> PatchInterconnect( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetLabels( @@ -104,12 +104,12 @@ class InterconnectsTracingConnection request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/interconnects/v1/mocks/mock_interconnects_connection.h b/google/cloud/compute/interconnects/v1/mocks/mock_interconnects_connection.h index be42f95efeeb9..b702399b993d9 100644 --- a/google/cloud/compute/interconnects/v1/mocks/mock_interconnects_connection.h +++ b/google/cloud/compute/interconnects/v1/mocks/mock_interconnects_connection.h @@ -55,14 +55,14 @@ class MockInterconnectsConnection MOCK_METHOD(StatusOr, DeleteInterconnect, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: DeleteInterconnectRequest const& request), (override)); MOCK_METHOD(future>, DeleteInterconnect, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -95,14 +95,14 @@ class MockInterconnectsConnection MOCK_METHOD(StatusOr, InsertInterconnect, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: InsertInterconnectRequest const& request), (override)); MOCK_METHOD(future>, InsertInterconnect, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -121,14 +121,14 @@ class MockInterconnectsConnection MOCK_METHOD(StatusOr, PatchInterconnect, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1:: PatchInterconnectRequest const& request), (override)); MOCK_METHOD(future>, PatchInterconnect, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -140,14 +140,14 @@ class MockInterconnectsConnection MOCK_METHOD( StatusOr, SetLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::interconnects::v1::SetLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.cc b/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.cc index 1cefd2994129a..3a9ea809eefd0 100644 --- a/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.cc +++ b/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.cc @@ -45,27 +45,25 @@ LicensesTracingConnection::DeleteLicense( StatusOr LicensesTracingConnection::DeleteLicense( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const& request) { auto span = internal::MakeSpan( "compute_licenses_v1::LicensesConnection::DeleteLicense"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteLicense(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteLicense(ExperimentalTag{}, NoAwaitTag{}, request)); } future> LicensesTracingConnection::DeleteLicense( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_licenses_v1::LicensesConnection::DeleteLicense"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteLicense(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteLicense(ExperimentalTag{}, operation)); } StatusOr @@ -100,27 +98,25 @@ LicensesTracingConnection::InsertLicense( StatusOr LicensesTracingConnection::InsertLicense( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const& request) { auto span = internal::MakeSpan( "compute_licenses_v1::LicensesConnection::InsertLicense"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertLicense(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertLicense(ExperimentalTag{}, NoAwaitTag{}, request)); } future> LicensesTracingConnection::InsertLicense( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_licenses_v1::LicensesConnection::InsertLicense"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InsertLicense(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->InsertLicense(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.h b/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.h index 3c600a759e46d..297c867faa3c3 100644 --- a/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.h +++ b/google/cloud/compute/licenses/v1/internal/licenses_tracing_connection.h @@ -45,12 +45,12 @@ class LicensesTracingConnection request) override; StatusOr DeleteLicense( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const& request) override; future> DeleteLicense( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetLicense( @@ -66,12 +66,12 @@ class LicensesTracingConnection request) override; StatusOr InsertLicense( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const& request) override; future> InsertLicense( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListLicenses( diff --git a/google/cloud/compute/licenses/v1/mocks/mock_licenses_connection.h b/google/cloud/compute/licenses/v1/mocks/mock_licenses_connection.h index 9fb4403e9e5de..b262c8a0b588f 100644 --- a/google/cloud/compute/licenses/v1/mocks/mock_licenses_connection.h +++ b/google/cloud/compute/licenses/v1/mocks/mock_licenses_connection.h @@ -55,14 +55,14 @@ class MockLicensesConnection : public compute_licenses_v1::LicensesConnection { MOCK_METHOD( StatusOr, DeleteLicense, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const& request), (override)); MOCK_METHOD(future>, DeleteLicense, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -87,14 +87,14 @@ class MockLicensesConnection : public compute_licenses_v1::LicensesConnection { MOCK_METHOD( StatusOr, InsertLicense, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const& request), (override)); MOCK_METHOD(future>, InsertLicense, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.cc b/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.cc index 6b916864b88fe..56366e3fc7e9b 100644 --- a/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.cc +++ b/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.cc @@ -46,27 +46,26 @@ MachineImagesTracingConnection::DeleteMachineImage( StatusOr MachineImagesTracingConnection::DeleteMachineImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::machine_images::v1:: DeleteMachineImageRequest const& request) { auto span = internal::MakeSpan( "compute_machine_images_v1::MachineImagesConnection::DeleteMachineImage"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteMachineImage(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteMachineImage(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MachineImagesTracingConnection::DeleteMachineImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_machine_images_v1::MachineImagesConnection::DeleteMachineImage"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteMachineImage(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteMachineImage( + ExperimentalTag{}, operation)); } StatusOr @@ -102,27 +101,26 @@ MachineImagesTracingConnection::InsertMachineImage( StatusOr MachineImagesTracingConnection::InsertMachineImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::machine_images::v1:: InsertMachineImageRequest const& request) { auto span = internal::MakeSpan( "compute_machine_images_v1::MachineImagesConnection::InsertMachineImage"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertMachineImage(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->InsertMachineImage(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MachineImagesTracingConnection::InsertMachineImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_machine_images_v1::MachineImagesConnection::InsertMachineImage"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InsertMachineImage(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertMachineImage( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.h b/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.h index ebf957a9da701..2fbdbb77184a6 100644 --- a/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.h +++ b/google/cloud/compute/machine_images/v1/internal/machine_images_tracing_connection.h @@ -46,13 +46,13 @@ class MachineImagesTracingConnection DeleteMachineImageRequest const& request) override; StatusOr DeleteMachineImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::machine_images::v1:: DeleteMachineImageRequest const& request) override; future> DeleteMachineImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetMachineImage( @@ -68,13 +68,13 @@ class MachineImagesTracingConnection InsertMachineImageRequest const& request) override; StatusOr InsertMachineImage( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::machine_images::v1:: InsertMachineImageRequest const& request) override; future> InsertMachineImage( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListMachineImages( diff --git a/google/cloud/compute/machine_images/v1/mocks/mock_machine_images_connection.h b/google/cloud/compute/machine_images/v1/mocks/mock_machine_images_connection.h index 6921398d0d101..2deea9f9ece54 100644 --- a/google/cloud/compute/machine_images/v1/mocks/mock_machine_images_connection.h +++ b/google/cloud/compute/machine_images/v1/mocks/mock_machine_images_connection.h @@ -55,14 +55,14 @@ class MockMachineImagesConnection MOCK_METHOD(StatusOr, DeleteMachineImage, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::machine_images::v1:: DeleteMachineImageRequest const& request), (override)); MOCK_METHOD(future>, DeleteMachineImage, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -85,14 +85,14 @@ class MockMachineImagesConnection MOCK_METHOD(StatusOr, InsertMachineImage, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::machine_images::v1:: InsertMachineImageRequest const& request), (override)); MOCK_METHOD(future>, InsertMachineImage, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.cc b/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.cc index 579320c7be11c..f330dff008d64 100644 --- a/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.cc +++ b/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.cc @@ -65,29 +65,28 @@ NetworkAttachmentsTracingConnection::DeleteNetworkAttachment( StatusOr NetworkAttachmentsTracingConnection::DeleteNetworkAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: DeleteNetworkAttachmentRequest const& request) { auto span = internal::MakeSpan( "compute_network_attachments_v1::NetworkAttachmentsConnection::" "DeleteNetworkAttachment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteNetworkAttachment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteNetworkAttachment(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> NetworkAttachmentsTracingConnection::DeleteNetworkAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_attachments_v1::NetworkAttachmentsConnection::" "DeleteNetworkAttachment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteNetworkAttachment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteNetworkAttachment( + ExperimentalTag{}, operation)); } StatusOr @@ -126,29 +125,28 @@ NetworkAttachmentsTracingConnection::InsertNetworkAttachment( StatusOr NetworkAttachmentsTracingConnection::InsertNetworkAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: InsertNetworkAttachmentRequest const& request) { auto span = internal::MakeSpan( "compute_network_attachments_v1::NetworkAttachmentsConnection::" "InsertNetworkAttachment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertNetworkAttachment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InsertNetworkAttachment(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> NetworkAttachmentsTracingConnection::InsertNetworkAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_attachments_v1::NetworkAttachmentsConnection::" "InsertNetworkAttachment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertNetworkAttachment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertNetworkAttachment( + ExperimentalTag{}, operation)); } StreamRange @@ -179,29 +177,28 @@ NetworkAttachmentsTracingConnection::PatchNetworkAttachment( StatusOr NetworkAttachmentsTracingConnection::PatchNetworkAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: PatchNetworkAttachmentRequest const& request) { auto span = internal::MakeSpan( "compute_network_attachments_v1::NetworkAttachmentsConnection::" "PatchNetworkAttachment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchNetworkAttachment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->PatchNetworkAttachment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkAttachmentsTracingConnection::PatchNetworkAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_attachments_v1::NetworkAttachmentsConnection::" "PatchNetworkAttachment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchNetworkAttachment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchNetworkAttachment( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.h b/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.h index f5983691814ff..be79a5ea2282c 100644 --- a/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.h +++ b/google/cloud/compute/network_attachments/v1/internal/network_attachments_tracing_connection.h @@ -55,13 +55,13 @@ class NetworkAttachmentsTracingConnection DeleteNetworkAttachmentRequest const& request) override; StatusOr DeleteNetworkAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: DeleteNetworkAttachmentRequest const& request) override; future> DeleteNetworkAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -78,13 +78,13 @@ class NetworkAttachmentsTracingConnection InsertNetworkAttachmentRequest const& request) override; StatusOr InsertNetworkAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: InsertNetworkAttachmentRequest const& request) override; future> InsertNetworkAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -97,13 +97,13 @@ class NetworkAttachmentsTracingConnection PatchNetworkAttachmentRequest const& request) override; StatusOr PatchNetworkAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: PatchNetworkAttachmentRequest const& request) override; future> PatchNetworkAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( diff --git a/google/cloud/compute/network_attachments/v1/mocks/mock_network_attachments_connection.h b/google/cloud/compute/network_attachments/v1/mocks/mock_network_attachments_connection.h index 6676f35bdb083..de300759287e1 100644 --- a/google/cloud/compute/network_attachments/v1/mocks/mock_network_attachments_connection.h +++ b/google/cloud/compute/network_attachments/v1/mocks/mock_network_attachments_connection.h @@ -63,14 +63,14 @@ class MockNetworkAttachmentsConnection MOCK_METHOD(StatusOr, DeleteNetworkAttachment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: DeleteNetworkAttachmentRequest const& request), (override)); MOCK_METHOD(future>, DeleteNetworkAttachment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -93,14 +93,14 @@ class MockNetworkAttachmentsConnection MOCK_METHOD(StatusOr, InsertNetworkAttachment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: InsertNetworkAttachmentRequest const& request), (override)); MOCK_METHOD(future>, InsertNetworkAttachment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -118,14 +118,14 @@ class MockNetworkAttachmentsConnection MOCK_METHOD(StatusOr, PatchNetworkAttachment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_attachments::v1:: PatchNetworkAttachmentRequest const& request), (override)); MOCK_METHOD(future>, PatchNetworkAttachment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_tracing_connection.cc b/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_tracing_connection.cc index 55684abed2f0b..158ffbd250c37 100644 --- a/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_tracing_connection.cc +++ b/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_tracing_connection.cc @@ -71,7 +71,7 @@ NetworkEdgeSecurityServicesTracingConnection::DeleteNetworkEdgeSecurityService( StatusOr NetworkEdgeSecurityServicesTracingConnection::DeleteNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: DeleteNetworkEdgeSecurityServiceRequest const& request) { auto span = internal::MakeSpan( @@ -79,23 +79,23 @@ NetworkEdgeSecurityServicesTracingConnection::DeleteNetworkEdgeSecurityService( "NetworkEdgeSecurityServicesConnection::" "DeleteNetworkEdgeSecurityService"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteNetworkEdgeSecurityService( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteNetworkEdgeSecurityService(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> NetworkEdgeSecurityServicesTracingConnection::DeleteNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_edge_security_services_v1::" "NetworkEdgeSecurityServicesConnection::" "DeleteNetworkEdgeSecurityService"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteNetworkEdgeSecurityService( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->DeleteNetworkEdgeSecurityService(ExperimentalTag{}, operation)); } StatusOr @@ -125,7 +125,7 @@ NetworkEdgeSecurityServicesTracingConnection::InsertNetworkEdgeSecurityService( StatusOr NetworkEdgeSecurityServicesTracingConnection::InsertNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: InsertNetworkEdgeSecurityServiceRequest const& request) { auto span = internal::MakeSpan( @@ -133,23 +133,23 @@ NetworkEdgeSecurityServicesTracingConnection::InsertNetworkEdgeSecurityService( "NetworkEdgeSecurityServicesConnection::" "InsertNetworkEdgeSecurityService"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertNetworkEdgeSecurityService( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InsertNetworkEdgeSecurityService(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> NetworkEdgeSecurityServicesTracingConnection::InsertNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_edge_security_services_v1::" "NetworkEdgeSecurityServicesConnection::" "InsertNetworkEdgeSecurityService"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertNetworkEdgeSecurityService( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->InsertNetworkEdgeSecurityService(ExperimentalTag{}, operation)); } future> @@ -166,29 +166,29 @@ NetworkEdgeSecurityServicesTracingConnection::PatchNetworkEdgeSecurityService( StatusOr NetworkEdgeSecurityServicesTracingConnection::PatchNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: PatchNetworkEdgeSecurityServiceRequest const& request) { auto span = internal::MakeSpan( "compute_network_edge_security_services_v1::" "NetworkEdgeSecurityServicesConnection::PatchNetworkEdgeSecurityService"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchNetworkEdgeSecurityService( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->PatchNetworkEdgeSecurityService(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> NetworkEdgeSecurityServicesTracingConnection::PatchNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_edge_security_services_v1::" "NetworkEdgeSecurityServicesConnection::PatchNetworkEdgeSecurityService"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchNetworkEdgeSecurityService( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->PatchNetworkEdgeSecurityService(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_tracing_connection.h b/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_tracing_connection.h index c0bfb6035a1ad..aab25423cbab6 100644 --- a/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_tracing_connection.h +++ b/google/cloud/compute/network_edge_security_services/v1/internal/network_edge_security_services_tracing_connection.h @@ -57,13 +57,13 @@ class NetworkEdgeSecurityServicesTracingConnection StatusOr DeleteNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: DeleteNetworkEdgeSecurityServiceRequest const& request) override; future> DeleteNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -78,13 +78,13 @@ class NetworkEdgeSecurityServicesTracingConnection StatusOr InsertNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: InsertNetworkEdgeSecurityServiceRequest const& request) override; future> InsertNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -94,13 +94,13 @@ class NetworkEdgeSecurityServicesTracingConnection StatusOr PatchNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: PatchNetworkEdgeSecurityServiceRequest const& request) override; future> PatchNetworkEdgeSecurityService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/network_edge_security_services/v1/mocks/mock_network_edge_security_services_connection.h b/google/cloud/compute/network_edge_security_services/v1/mocks/mock_network_edge_security_services_connection.h index 4c24929fafdb7..a43f606f8c334 100644 --- a/google/cloud/compute/network_edge_security_services/v1/mocks/mock_network_edge_security_services_connection.h +++ b/google/cloud/compute/network_edge_security_services/v1/mocks/mock_network_edge_security_services_connection.h @@ -66,14 +66,14 @@ class MockNetworkEdgeSecurityServicesConnection MOCK_METHOD(StatusOr, DeleteNetworkEdgeSecurityService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: DeleteNetworkEdgeSecurityServiceRequest const& request), (override)); MOCK_METHOD(future>, DeleteNetworkEdgeSecurityService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -92,14 +92,14 @@ class MockNetworkEdgeSecurityServicesConnection MOCK_METHOD(StatusOr, InsertNetworkEdgeSecurityService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: InsertNetworkEdgeSecurityServiceRequest const& request), (override)); MOCK_METHOD(future>, InsertNetworkEdgeSecurityService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -111,14 +111,14 @@ class MockNetworkEdgeSecurityServicesConnection MOCK_METHOD(StatusOr, PatchNetworkEdgeSecurityService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_edge_security_services::v1:: PatchNetworkEdgeSecurityServiceRequest const& request), (override)); MOCK_METHOD(future>, PatchNetworkEdgeSecurityService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.cc b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.cc index 1ffcacaac129f..c8fda1e17bdf8 100644 --- a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.cc +++ b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.cc @@ -67,29 +67,28 @@ NetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( StatusOr NetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) { auto span = internal::MakeSpan( "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" "AttachNetworkEndpoints"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->AttachNetworkEndpoints( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->AttachNetworkEndpoints(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" "AttachNetworkEndpoints"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->AttachNetworkEndpoints( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->AttachNetworkEndpoints( + ExperimentalTag{}, operation)); } future> @@ -106,29 +105,28 @@ NetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( StatusOr NetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) { auto span = internal::MakeSpan( "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" "DeleteNetworkEndpointGroup"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteNetworkEndpointGroup(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> NetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" "DeleteNetworkEndpointGroup"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteNetworkEndpointGroup( + ExperimentalTag{}, operation)); } future> @@ -145,29 +143,28 @@ NetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( StatusOr NetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) { auto span = internal::MakeSpan( "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" "DetachNetworkEndpoints"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DetachNetworkEndpoints( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DetachNetworkEndpoints(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" "DetachNetworkEndpoints"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DetachNetworkEndpoints( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DetachNetworkEndpoints( + ExperimentalTag{}, operation)); } StatusOr @@ -195,29 +192,28 @@ NetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( StatusOr NetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) { auto span = internal::MakeSpan( "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" "InsertNetworkEndpointGroup"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InsertNetworkEndpointGroup(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> NetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_endpoint_groups_v1::NetworkEndpointGroupsConnection::" "InsertNetworkEndpointGroup"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertNetworkEndpointGroup( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.h b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.h index 24c3b0d3f1080..9c7a984f72e95 100644 --- a/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.h +++ b/google/cloud/compute/network_endpoint_groups/v1/internal/network_endpoint_groups_tracing_connection.h @@ -56,13 +56,13 @@ class NetworkEndpointGroupsTracingConnection AttachNetworkEndpointsRequest const& request) override; StatusOr AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) override; future> AttachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -72,13 +72,13 @@ class NetworkEndpointGroupsTracingConnection StatusOr DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) override; future> DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -87,13 +87,13 @@ class NetworkEndpointGroupsTracingConnection DetachNetworkEndpointsRequest const& request) override; StatusOr DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) override; future> DetachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -108,13 +108,13 @@ class NetworkEndpointGroupsTracingConnection StatusOr InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) override; future> InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/network_endpoint_groups/v1/mocks/mock_network_endpoint_groups_connection.h b/google/cloud/compute/network_endpoint_groups/v1/mocks/mock_network_endpoint_groups_connection.h index 457e1fdfb61c7..bd6dbe8d277cb 100644 --- a/google/cloud/compute/network_endpoint_groups/v1/mocks/mock_network_endpoint_groups_connection.h +++ b/google/cloud/compute/network_endpoint_groups/v1/mocks/mock_network_endpoint_groups_connection.h @@ -66,14 +66,14 @@ class MockNetworkEndpointGroupsConnection MOCK_METHOD(StatusOr, AttachNetworkEndpoints, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request), (override)); MOCK_METHOD(future>, AttachNetworkEndpoints, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -85,14 +85,14 @@ class MockNetworkEndpointGroupsConnection MOCK_METHOD(StatusOr, DeleteNetworkEndpointGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request), (override)); MOCK_METHOD(future>, DeleteNetworkEndpointGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -104,14 +104,14 @@ class MockNetworkEndpointGroupsConnection MOCK_METHOD(StatusOr, DetachNetworkEndpoints, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request), (override)); MOCK_METHOD(future>, DetachNetworkEndpoints, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -129,14 +129,14 @@ class MockNetworkEndpointGroupsConnection MOCK_METHOD(StatusOr, InsertNetworkEndpointGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request), (override)); MOCK_METHOD(future>, InsertNetworkEndpointGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.cc b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.cc index fc57d7c80e3a5..417761fddbb41 100644 --- a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.cc +++ b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.cc @@ -50,7 +50,7 @@ NetworkFirewallPoliciesTracingConnection::AddAssociation( StatusOr NetworkFirewallPoliciesTracingConnection::AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: AddAssociationRequest const& request) { auto span = internal::MakeSpan( @@ -58,21 +58,19 @@ NetworkFirewallPoliciesTracingConnection::AddAssociation( ":AddAssociation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddAssociation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddAssociation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkFirewallPoliciesTracingConnection::AddAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":AddAssociation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->AddAssociation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->AddAssociation(ExperimentalTag{}, operation)); } future> @@ -88,7 +86,7 @@ NetworkFirewallPoliciesTracingConnection::AddRule( StatusOr NetworkFirewallPoliciesTracingConnection::AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: AddRuleRequest const& request) { auto span = internal::MakeSpan( @@ -96,21 +94,19 @@ NetworkFirewallPoliciesTracingConnection::AddRule( ":AddRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkFirewallPoliciesTracingConnection::AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":AddRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AddRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->AddRule(ExperimentalTag{}, operation)); } future> @@ -126,7 +122,7 @@ NetworkFirewallPoliciesTracingConnection::CloneRules( StatusOr NetworkFirewallPoliciesTracingConnection::CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: CloneRulesRequest const& request) { auto span = internal::MakeSpan( @@ -134,21 +130,19 @@ NetworkFirewallPoliciesTracingConnection::CloneRules( ":CloneRules"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CloneRules(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CloneRules(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkFirewallPoliciesTracingConnection::CloneRules( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":CloneRules"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CloneRules(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CloneRules(ExperimentalTag{}, operation)); } future> @@ -165,29 +159,28 @@ NetworkFirewallPoliciesTracingConnection::DeleteFirewallPolicy( StatusOr NetworkFirewallPoliciesTracingConnection::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":DeleteFirewallPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteFirewallPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteFirewallPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkFirewallPoliciesTracingConnection::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":DeleteFirewallPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteFirewallPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteFirewallPolicy( + ExperimentalTag{}, operation)); } StatusOr @@ -248,29 +241,28 @@ NetworkFirewallPoliciesTracingConnection::InsertFirewallPolicy( StatusOr NetworkFirewallPoliciesTracingConnection::InsertFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: InsertFirewallPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":InsertFirewallPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertFirewallPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertFirewallPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkFirewallPoliciesTracingConnection::InsertFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":InsertFirewallPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertFirewallPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertFirewallPolicy( + ExperimentalTag{}, operation)); } StreamRange @@ -301,7 +293,7 @@ NetworkFirewallPoliciesTracingConnection::PatchFirewallPolicy( StatusOr NetworkFirewallPoliciesTracingConnection::PatchFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: PatchFirewallPolicyRequest const& request) { auto span = internal::MakeSpan( @@ -309,21 +301,20 @@ NetworkFirewallPoliciesTracingConnection::PatchFirewallPolicy( ":PatchFirewallPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchFirewallPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PatchFirewallPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkFirewallPoliciesTracingConnection::PatchFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":PatchFirewallPolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchFirewallPolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchFirewallPolicy( + ExperimentalTag{}, operation)); } future> @@ -339,7 +330,7 @@ NetworkFirewallPoliciesTracingConnection::PatchRule( StatusOr NetworkFirewallPoliciesTracingConnection::PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: PatchRuleRequest const& request) { auto span = internal::MakeSpan( @@ -347,21 +338,19 @@ NetworkFirewallPoliciesTracingConnection::PatchRule( ":PatchRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkFirewallPoliciesTracingConnection::PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":PatchRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->PatchRule(ExperimentalTag{}, operation)); } future> @@ -377,7 +366,7 @@ NetworkFirewallPoliciesTracingConnection::RemoveAssociation( StatusOr NetworkFirewallPoliciesTracingConnection::RemoveAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveAssociationRequest const& request) { auto span = internal::MakeSpan( @@ -385,21 +374,20 @@ NetworkFirewallPoliciesTracingConnection::RemoveAssociation( ":RemoveAssociation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RemoveAssociation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->RemoveAssociation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkFirewallPoliciesTracingConnection::RemoveAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":RemoveAssociation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RemoveAssociation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RemoveAssociation(ExperimentalTag{}, operation)); } future> @@ -415,7 +403,7 @@ NetworkFirewallPoliciesTracingConnection::RemoveRule( StatusOr NetworkFirewallPoliciesTracingConnection::RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveRuleRequest const& request) { auto span = internal::MakeSpan( @@ -423,21 +411,19 @@ NetworkFirewallPoliciesTracingConnection::RemoveRule( ":RemoveRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RemoveRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RemoveRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkFirewallPoliciesTracingConnection::RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_network_firewall_policies_v1::NetworkFirewallPoliciesConnection:" ":RemoveRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RemoveRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RemoveRule(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.h b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.h index 5e13dc97a5fa2..d09f0831f516f 100644 --- a/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.h +++ b/google/cloud/compute/network_firewall_policies/v1/internal/network_firewall_policies_tracing_connection.h @@ -49,12 +49,12 @@ class NetworkFirewallPoliciesTracingConnection AddAssociationRequest const& request) override; StatusOr AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: AddAssociationRequest const& request) override; future> AddAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> AddRule( @@ -62,12 +62,12 @@ class NetworkFirewallPoliciesTracingConnection AddRuleRequest const& request) override; StatusOr AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: AddRuleRequest const& request) override; future> AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> CloneRules( @@ -75,12 +75,12 @@ class NetworkFirewallPoliciesTracingConnection CloneRulesRequest const& request) override; StatusOr CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: CloneRulesRequest const& request) override; future> CloneRules( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -89,13 +89,13 @@ class NetworkFirewallPoliciesTracingConnection DeleteFirewallPolicyRequest const& request) override; StatusOr DeleteFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) override; future> DeleteFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetFirewallPolicy( @@ -120,13 +120,13 @@ class NetworkFirewallPoliciesTracingConnection InsertFirewallPolicyRequest const& request) override; StatusOr InsertFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: InsertFirewallPolicyRequest const& request) override; future> InsertFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -140,13 +140,13 @@ class NetworkFirewallPoliciesTracingConnection PatchFirewallPolicyRequest const& request) override; StatusOr PatchFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: PatchFirewallPolicyRequest const& request) override; future> PatchFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> PatchRule( @@ -154,12 +154,12 @@ class NetworkFirewallPoliciesTracingConnection PatchRuleRequest const& request) override; StatusOr PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: PatchRuleRequest const& request) override; future> PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -167,13 +167,13 @@ class NetworkFirewallPoliciesTracingConnection RemoveAssociationRequest const& request) override; StatusOr RemoveAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveAssociationRequest const& request) override; future> RemoveAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> RemoveRule( @@ -181,12 +181,12 @@ class NetworkFirewallPoliciesTracingConnection RemoveRuleRequest const& request) override; StatusOr RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveRuleRequest const& request) override; future> RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( diff --git a/google/cloud/compute/network_firewall_policies/v1/mocks/mock_network_firewall_policies_connection.h b/google/cloud/compute/network_firewall_policies/v1/mocks/mock_network_firewall_policies_connection.h index cc1d30693c50b..e05adba527bec 100644 --- a/google/cloud/compute/network_firewall_policies/v1/mocks/mock_network_firewall_policies_connection.h +++ b/google/cloud/compute/network_firewall_policies/v1/mocks/mock_network_firewall_policies_connection.h @@ -57,14 +57,14 @@ class MockNetworkFirewallPoliciesConnection MOCK_METHOD(StatusOr, AddAssociation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: AddAssociationRequest const& request), (override)); MOCK_METHOD(future>, AddAssociation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -75,14 +75,14 @@ class MockNetworkFirewallPoliciesConnection (override)); MOCK_METHOD(StatusOr, AddRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: AddRuleRequest const& request), (override)); MOCK_METHOD(future>, AddRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -93,14 +93,14 @@ class MockNetworkFirewallPoliciesConnection (override)); MOCK_METHOD(StatusOr, CloneRules, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: CloneRulesRequest const& request), (override)); MOCK_METHOD(future>, CloneRules, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -112,14 +112,14 @@ class MockNetworkFirewallPoliciesConnection MOCK_METHOD(StatusOr, DeleteFirewallPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: DeleteFirewallPolicyRequest const& request), (override)); MOCK_METHOD(future>, DeleteFirewallPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -155,14 +155,14 @@ class MockNetworkFirewallPoliciesConnection MOCK_METHOD(StatusOr, InsertFirewallPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: InsertFirewallPolicyRequest const& request), (override)); MOCK_METHOD(future>, InsertFirewallPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -180,14 +180,14 @@ class MockNetworkFirewallPoliciesConnection MOCK_METHOD(StatusOr, PatchFirewallPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: PatchFirewallPolicyRequest const& request), (override)); MOCK_METHOD(future>, PatchFirewallPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -198,14 +198,14 @@ class MockNetworkFirewallPoliciesConnection (override)); MOCK_METHOD(StatusOr, PatchRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: PatchRuleRequest const& request), (override)); MOCK_METHOD(future>, PatchRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -217,14 +217,14 @@ class MockNetworkFirewallPoliciesConnection MOCK_METHOD(StatusOr, RemoveAssociation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveAssociationRequest const& request), (override)); MOCK_METHOD(future>, RemoveAssociation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -235,14 +235,14 @@ class MockNetworkFirewallPoliciesConnection (override)); MOCK_METHOD(StatusOr, RemoveRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1:: RemoveRuleRequest const& request), (override)); MOCK_METHOD(future>, RemoveRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/networks/v1/internal/networks_tracing_connection.cc b/google/cloud/compute/networks/v1/internal/networks_tracing_connection.cc index 13dd2bb47a8d1..3a6536169801c 100644 --- a/google/cloud/compute/networks/v1/internal/networks_tracing_connection.cc +++ b/google/cloud/compute/networks/v1/internal/networks_tracing_connection.cc @@ -45,27 +45,25 @@ NetworksTracingConnection::AddPeering( StatusOr NetworksTracingConnection::AddPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::AddPeeringRequest const& request) { auto span = internal::MakeSpan("compute_networks_v1::NetworksConnection::AddPeering"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddPeering(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddPeering(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworksTracingConnection::AddPeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_networks_v1::NetworksConnection::AddPeering"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AddPeering(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->AddPeering(ExperimentalTag{}, operation)); } future> @@ -80,27 +78,25 @@ NetworksTracingConnection::DeleteNetwork( StatusOr NetworksTracingConnection::DeleteNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& request) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::DeleteNetwork"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteNetwork(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteNetwork(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworksTracingConnection::DeleteNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::DeleteNetwork"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteNetwork(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteNetwork(ExperimentalTag{}, operation)); } StatusOr @@ -135,27 +131,25 @@ NetworksTracingConnection::InsertNetwork( StatusOr NetworksTracingConnection::InsertNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const& request) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::InsertNetwork"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertNetwork(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertNetwork(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworksTracingConnection::InsertNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::InsertNetwork"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InsertNetwork(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->InsertNetwork(ExperimentalTag{}, operation)); } StreamRange @@ -194,27 +188,25 @@ NetworksTracingConnection::PatchNetwork( StatusOr NetworksTracingConnection::PatchNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const& request) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::PatchNetwork"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchNetwork(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchNetwork(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworksTracingConnection::PatchNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::PatchNetwork"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchNetwork(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->PatchNetwork(ExperimentalTag{}, operation)); } future> @@ -229,27 +221,25 @@ NetworksTracingConnection::RemovePeering( StatusOr NetworksTracingConnection::RemovePeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& request) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::RemovePeering"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RemovePeering(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RemovePeering(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworksTracingConnection::RemovePeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::RemovePeering"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RemovePeering(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RemovePeering(ExperimentalTag{}, operation)); } future> @@ -265,27 +255,26 @@ NetworksTracingConnection::SwitchToCustomMode( StatusOr NetworksTracingConnection::SwitchToCustomMode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::SwitchToCustomModeRequest const& request) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::SwitchToCustomMode"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SwitchToCustomMode(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SwitchToCustomMode(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworksTracingConnection::SwitchToCustomMode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::SwitchToCustomMode"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SwitchToCustomMode(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SwitchToCustomMode( + ExperimentalTag{}, operation)); } future> @@ -300,27 +289,25 @@ NetworksTracingConnection::UpdatePeering( StatusOr NetworksTracingConnection::UpdatePeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& request) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::UpdatePeering"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdatePeering(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdatePeering(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworksTracingConnection::UpdatePeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_networks_v1::NetworksConnection::UpdatePeering"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdatePeering(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdatePeering(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/networks/v1/internal/networks_tracing_connection.h b/google/cloud/compute/networks/v1/internal/networks_tracing_connection.h index 8b2587e0cba78..a26b24207b7ed 100644 --- a/google/cloud/compute/networks/v1/internal/networks_tracing_connection.h +++ b/google/cloud/compute/networks/v1/internal/networks_tracing_connection.h @@ -45,12 +45,12 @@ class NetworksTracingConnection request) override; StatusOr AddPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::AddPeeringRequest const& request) override; future> AddPeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> DeleteNetwork( @@ -58,12 +58,12 @@ class NetworksTracingConnection request) override; StatusOr DeleteNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& request) override; future> DeleteNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetNetwork( @@ -81,12 +81,12 @@ class NetworksTracingConnection request) override; StatusOr InsertNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const& request) override; future> InsertNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListNetworks( @@ -103,12 +103,12 @@ class NetworksTracingConnection request) override; StatusOr PatchNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const& request) override; future> PatchNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> RemovePeering( @@ -116,12 +116,12 @@ class NetworksTracingConnection request) override; StatusOr RemovePeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& request) override; future> RemovePeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -129,13 +129,13 @@ class NetworksTracingConnection SwitchToCustomModeRequest const& request) override; StatusOr SwitchToCustomMode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1:: SwitchToCustomModeRequest const& request) override; future> SwitchToCustomMode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> UpdatePeering( @@ -143,12 +143,12 @@ class NetworksTracingConnection request) override; StatusOr UpdatePeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& request) override; future> UpdatePeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/networks/v1/mocks/mock_networks_connection.h b/google/cloud/compute/networks/v1/mocks/mock_networks_connection.h index 27eed3ba8271e..f2af63b139bd7 100644 --- a/google/cloud/compute/networks/v1/mocks/mock_networks_connection.h +++ b/google/cloud/compute/networks/v1/mocks/mock_networks_connection.h @@ -54,14 +54,14 @@ class MockNetworksConnection : public compute_networks_v1::NetworksConnection { MOCK_METHOD( StatusOr, AddPeering, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::AddPeeringRequest const& request), (override)); MOCK_METHOD(future>, AddPeering, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -74,14 +74,14 @@ class MockNetworksConnection : public compute_networks_v1::NetworksConnection { MOCK_METHOD( StatusOr, DeleteNetwork, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::DeleteNetworkRequest const& request), (override)); MOCK_METHOD(future>, DeleteNetwork, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -107,14 +107,14 @@ class MockNetworksConnection : public compute_networks_v1::NetworksConnection { MOCK_METHOD( StatusOr, InsertNetwork, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::InsertNetworkRequest const& request), (override)); MOCK_METHOD(future>, InsertNetwork, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -139,14 +139,14 @@ class MockNetworksConnection : public compute_networks_v1::NetworksConnection { MOCK_METHOD( StatusOr, PatchNetwork, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::PatchNetworkRequest const& request), (override)); MOCK_METHOD(future>, PatchNetwork, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -159,14 +159,14 @@ class MockNetworksConnection : public compute_networks_v1::NetworksConnection { MOCK_METHOD( StatusOr, RemovePeering, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::RemovePeeringRequest const& request), (override)); MOCK_METHOD(future>, RemovePeering, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -178,14 +178,14 @@ class MockNetworksConnection : public compute_networks_v1::NetworksConnection { MOCK_METHOD(StatusOr, SwitchToCustomMode, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1:: SwitchToCustomModeRequest const& request), (override)); MOCK_METHOD(future>, SwitchToCustomMode, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -198,14 +198,14 @@ class MockNetworksConnection : public compute_networks_v1::NetworksConnection { MOCK_METHOD( StatusOr, UpdatePeering, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::networks::v1::UpdatePeeringRequest const& request), (override)); MOCK_METHOD(future>, UpdatePeering, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.cc b/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.cc index 4a4ba9bce7bd3..d5510bbf44f07 100644 --- a/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.cc +++ b/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.cc @@ -45,27 +45,25 @@ NodeGroupsTracingConnection::AddNodes( StatusOr NodeGroupsTracingConnection::AddNodes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const& request) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::AddNodes"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddNodes(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddNodes(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NodeGroupsTracingConnection::AddNodes( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::AddNodes"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AddNodes(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->AddNodes(ExperimentalTag{}, operation)); } StreamRange NodeGroupsTracingConnection::DeleteNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::DeleteNodeGroupRequest const& request) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::DeleteNodeGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteNodeGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteNodeGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NodeGroupsTracingConnection::DeleteNodeGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::DeleteNodeGroup"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteNodeGroup(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteNodeGroup(ExperimentalTag{}, operation)); } future> @@ -129,27 +125,25 @@ NodeGroupsTracingConnection::DeleteNodes( StatusOr NodeGroupsTracingConnection::DeleteNodes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& request) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::DeleteNodes"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteNodes(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteNodes(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NodeGroupsTracingConnection::DeleteNodes( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::DeleteNodes"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteNodes(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteNodes(ExperimentalTag{}, operation)); } StatusOr @@ -184,27 +178,25 @@ NodeGroupsTracingConnection::InsertNodeGroup( StatusOr NodeGroupsTracingConnection::InsertNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::InsertNodeGroupRequest const& request) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::InsertNodeGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertNodeGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertNodeGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NodeGroupsTracingConnection::InsertNodeGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::InsertNodeGroup"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertNodeGroup(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertNodeGroup(ExperimentalTag{}, operation)); } StreamRange @@ -244,27 +236,25 @@ NodeGroupsTracingConnection::PatchNodeGroup( StatusOr NodeGroupsTracingConnection::PatchNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::PatchNodeGroupRequest const& request) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::PatchNodeGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchNodeGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchNodeGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NodeGroupsTracingConnection::PatchNodeGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::PatchNodeGroup"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->PatchNodeGroup(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->PatchNodeGroup(ExperimentalTag{}, operation)); } future> @@ -280,27 +270,26 @@ NodeGroupsTracingConnection::PerformMaintenance( StatusOr NodeGroupsTracingConnection::PerformMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: PerformMaintenanceRequest const& request) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::PerformMaintenance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PerformMaintenance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PerformMaintenance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NodeGroupsTracingConnection::PerformMaintenance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::PerformMaintenance"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PerformMaintenance(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PerformMaintenance( + ExperimentalTag{}, operation)); } StatusOr @@ -325,27 +314,25 @@ NodeGroupsTracingConnection::SetNodeTemplate( StatusOr NodeGroupsTracingConnection::SetNodeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::SetNodeTemplateRequest const& request) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::SetNodeTemplate"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetNodeTemplate(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetNodeTemplate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NodeGroupsTracingConnection::SetNodeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::SetNodeTemplate"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetNodeTemplate(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetNodeTemplate(ExperimentalTag{}, operation)); } future> @@ -361,27 +348,26 @@ NodeGroupsTracingConnection::SimulateMaintenanceEvent( StatusOr NodeGroupsTracingConnection::SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: SimulateMaintenanceEventRequest const& request) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::SimulateMaintenanceEvent"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SimulateMaintenanceEvent( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->SimulateMaintenanceEvent(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> NodeGroupsTracingConnection::SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_node_groups_v1::NodeGroupsConnection::SimulateMaintenanceEvent"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SimulateMaintenanceEvent( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SimulateMaintenanceEvent( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.h b/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.h index 03d40900de0a2..a4fd5c05a7d67 100644 --- a/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.h +++ b/google/cloud/compute/node_groups/v1/internal/node_groups_tracing_connection.h @@ -45,12 +45,12 @@ class NodeGroupsTracingConnection request) override; StatusOr AddNodes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const& request) override; future> AddNodes( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange DeleteNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: DeleteNodeGroupRequest const& request) override; future> DeleteNodeGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> DeleteNodes( @@ -77,12 +77,12 @@ class NodeGroupsTracingConnection request) override; StatusOr DeleteNodes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& request) override; future> DeleteNodes( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetNodeGroup( @@ -98,12 +98,12 @@ class NodeGroupsTracingConnection InsertNodeGroupRequest const& request) override; StatusOr InsertNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: InsertNodeGroupRequest const& request) override; future> InsertNodeGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListNodeGroups( @@ -119,12 +119,12 @@ class NodeGroupsTracingConnection request) override; StatusOr PatchNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::PatchNodeGroupRequest const& request) override; future> PatchNodeGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -132,13 +132,13 @@ class NodeGroupsTracingConnection PerformMaintenanceRequest const& request) override; StatusOr PerformMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: PerformMaintenanceRequest const& request) override; future> PerformMaintenance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -150,12 +150,12 @@ class NodeGroupsTracingConnection SetNodeTemplateRequest const& request) override; StatusOr SetNodeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: SetNodeTemplateRequest const& request) override; future> SetNodeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -164,13 +164,13 @@ class NodeGroupsTracingConnection SimulateMaintenanceEventRequest const& request) override; StatusOr SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: SimulateMaintenanceEventRequest const& request) override; future> SimulateMaintenanceEvent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr diff --git a/google/cloud/compute/node_groups/v1/mocks/mock_node_groups_connection.h b/google/cloud/compute/node_groups/v1/mocks/mock_node_groups_connection.h index 402d3c4c48351..014f9fdeaa2cf 100644 --- a/google/cloud/compute/node_groups/v1/mocks/mock_node_groups_connection.h +++ b/google/cloud/compute/node_groups/v1/mocks/mock_node_groups_connection.h @@ -55,14 +55,14 @@ class MockNodeGroupsConnection MOCK_METHOD( StatusOr, AddNodes, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::AddNodesRequest const& request), (override)); MOCK_METHOD(future>, AddNodes, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -83,14 +83,14 @@ class MockNodeGroupsConnection MOCK_METHOD(StatusOr, DeleteNodeGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: DeleteNodeGroupRequest const& request), (override)); MOCK_METHOD(future>, DeleteNodeGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -102,14 +102,14 @@ class MockNodeGroupsConnection MOCK_METHOD( StatusOr, DeleteNodes, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1::DeleteNodesRequest const& request), (override)); MOCK_METHOD(future>, DeleteNodes, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -133,14 +133,14 @@ class MockNodeGroupsConnection MOCK_METHOD(StatusOr, InsertNodeGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: InsertNodeGroupRequest const& request), (override)); MOCK_METHOD(future>, InsertNodeGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -163,14 +163,14 @@ class MockNodeGroupsConnection MOCK_METHOD(StatusOr, PatchNodeGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: PatchNodeGroupRequest const& request), (override)); MOCK_METHOD(future>, PatchNodeGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -182,14 +182,14 @@ class MockNodeGroupsConnection MOCK_METHOD(StatusOr, PerformMaintenance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: PerformMaintenanceRequest const& request), (override)); MOCK_METHOD(future>, PerformMaintenance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -207,14 +207,14 @@ class MockNodeGroupsConnection MOCK_METHOD(StatusOr, SetNodeTemplate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: SetNodeTemplateRequest const& request), (override)); MOCK_METHOD(future>, SetNodeTemplate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -226,14 +226,14 @@ class MockNodeGroupsConnection MOCK_METHOD(StatusOr, SimulateMaintenanceEvent, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_groups::v1:: SimulateMaintenanceEventRequest const& request), (override)); MOCK_METHOD(future>, SimulateMaintenanceEvent, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.cc b/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.cc index ca3ffba06b9ad..f54ee349c3332 100644 --- a/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.cc +++ b/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.cc @@ -61,27 +61,26 @@ NodeTemplatesTracingConnection::DeleteNodeTemplate( StatusOr NodeTemplatesTracingConnection::DeleteNodeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_templates::v1:: DeleteNodeTemplateRequest const& request) { auto span = internal::MakeSpan( "compute_node_templates_v1::NodeTemplatesConnection::DeleteNodeTemplate"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteNodeTemplate(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteNodeTemplate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NodeTemplatesTracingConnection::DeleteNodeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_node_templates_v1::NodeTemplatesConnection::DeleteNodeTemplate"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteNodeTemplate(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteNodeTemplate( + ExperimentalTag{}, operation)); } StatusOr @@ -117,27 +116,26 @@ NodeTemplatesTracingConnection::InsertNodeTemplate( StatusOr NodeTemplatesTracingConnection::InsertNodeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_templates::v1:: InsertNodeTemplateRequest const& request) { auto span = internal::MakeSpan( "compute_node_templates_v1::NodeTemplatesConnection::InsertNodeTemplate"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertNodeTemplate(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->InsertNodeTemplate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NodeTemplatesTracingConnection::InsertNodeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_node_templates_v1::NodeTemplatesConnection::InsertNodeTemplate"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InsertNodeTemplate(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertNodeTemplate( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.h b/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.h index b437c430dd89a..8d26f1a3e1cd6 100644 --- a/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.h +++ b/google/cloud/compute/node_templates/v1/internal/node_templates_tracing_connection.h @@ -52,13 +52,13 @@ class NodeTemplatesTracingConnection DeleteNodeTemplateRequest const& request) override; StatusOr DeleteNodeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_templates::v1:: DeleteNodeTemplateRequest const& request) override; future> DeleteNodeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetNodeTemplate( @@ -74,13 +74,13 @@ class NodeTemplatesTracingConnection InsertNodeTemplateRequest const& request) override; StatusOr InsertNodeTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_templates::v1:: InsertNodeTemplateRequest const& request) override; future> InsertNodeTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListNodeTemplates( diff --git a/google/cloud/compute/node_templates/v1/mocks/mock_node_templates_connection.h b/google/cloud/compute/node_templates/v1/mocks/mock_node_templates_connection.h index ad70ac49baec4..6f061286ba3e1 100644 --- a/google/cloud/compute/node_templates/v1/mocks/mock_node_templates_connection.h +++ b/google/cloud/compute/node_templates/v1/mocks/mock_node_templates_connection.h @@ -64,14 +64,14 @@ class MockNodeTemplatesConnection MOCK_METHOD(StatusOr, DeleteNodeTemplate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_templates::v1:: DeleteNodeTemplateRequest const& request), (override)); MOCK_METHOD(future>, DeleteNodeTemplate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -94,14 +94,14 @@ class MockNodeTemplatesConnection MOCK_METHOD(StatusOr, InsertNodeTemplate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::node_templates::v1:: InsertNodeTemplateRequest const& request), (override)); MOCK_METHOD(future>, InsertNodeTemplate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.cc b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.cc index 41059312d02c8..5e43de7cc38c1 100644 --- a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.cc +++ b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.cc @@ -64,29 +64,28 @@ PacketMirroringsTracingConnection::DeletePacketMirroring( StatusOr PacketMirroringsTracingConnection::DeletePacketMirroring( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: DeletePacketMirroringRequest const& request) { auto span = internal::MakeSpan( "compute_packet_mirrorings_v1::PacketMirroringsConnection::" "DeletePacketMirroring"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeletePacketMirroring( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeletePacketMirroring(ExperimentalTag{}, NoAwaitTag{}, request)); } future> PacketMirroringsTracingConnection::DeletePacketMirroring( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_packet_mirrorings_v1::PacketMirroringsConnection::" "DeletePacketMirroring"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeletePacketMirroring( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeletePacketMirroring( + ExperimentalTag{}, operation)); } StatusOr @@ -114,29 +113,28 @@ PacketMirroringsTracingConnection::InsertPacketMirroring( StatusOr PacketMirroringsTracingConnection::InsertPacketMirroring( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: InsertPacketMirroringRequest const& request) { auto span = internal::MakeSpan( "compute_packet_mirrorings_v1::PacketMirroringsConnection::" "InsertPacketMirroring"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertPacketMirroring( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertPacketMirroring(ExperimentalTag{}, NoAwaitTag{}, request)); } future> PacketMirroringsTracingConnection::InsertPacketMirroring( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_packet_mirrorings_v1::PacketMirroringsConnection::" "InsertPacketMirroring"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertPacketMirroring( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertPacketMirroring( + ExperimentalTag{}, operation)); } StreamRange @@ -167,29 +165,28 @@ PacketMirroringsTracingConnection::PatchPacketMirroring( StatusOr PacketMirroringsTracingConnection::PatchPacketMirroring( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: PatchPacketMirroringRequest const& request) { auto span = internal::MakeSpan( "compute_packet_mirrorings_v1::PacketMirroringsConnection::" "PatchPacketMirroring"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchPacketMirroring( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->PatchPacketMirroring(ExperimentalTag{}, NoAwaitTag{}, request)); } future> PacketMirroringsTracingConnection::PatchPacketMirroring( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_packet_mirrorings_v1::PacketMirroringsConnection::" "PatchPacketMirroring"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchPacketMirroring( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchPacketMirroring( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.h b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.h index 0a009a92ea765..7517a03684a05 100644 --- a/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.h +++ b/google/cloud/compute/packet_mirrorings/v1/internal/packet_mirrorings_tracing_connection.h @@ -53,13 +53,13 @@ class PacketMirroringsTracingConnection DeletePacketMirroringRequest const& request) override; StatusOr DeletePacketMirroring( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: DeletePacketMirroringRequest const& request) override; future> DeletePacketMirroring( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetPacketMirroring( @@ -72,13 +72,13 @@ class PacketMirroringsTracingConnection InsertPacketMirroringRequest const& request) override; StatusOr InsertPacketMirroring( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: InsertPacketMirroringRequest const& request) override; future> InsertPacketMirroring( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -90,13 +90,13 @@ class PacketMirroringsTracingConnection PatchPacketMirroringRequest const& request) override; StatusOr PatchPacketMirroring( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: PatchPacketMirroringRequest const& request) override; future> PatchPacketMirroring( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr diff --git a/google/cloud/compute/packet_mirrorings/v1/mocks/mock_packet_mirrorings_connection.h b/google/cloud/compute/packet_mirrorings/v1/mocks/mock_packet_mirrorings_connection.h index 57351e0e51fd7..6f354b093be29 100644 --- a/google/cloud/compute/packet_mirrorings/v1/mocks/mock_packet_mirrorings_connection.h +++ b/google/cloud/compute/packet_mirrorings/v1/mocks/mock_packet_mirrorings_connection.h @@ -63,14 +63,14 @@ class MockPacketMirroringsConnection MOCK_METHOD(StatusOr, DeletePacketMirroring, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: DeletePacketMirroringRequest const& request), (override)); MOCK_METHOD(future>, DeletePacketMirroring, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -88,14 +88,14 @@ class MockPacketMirroringsConnection MOCK_METHOD(StatusOr, InsertPacketMirroring, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: InsertPacketMirroringRequest const& request), (override)); MOCK_METHOD(future>, InsertPacketMirroring, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -113,14 +113,14 @@ class MockPacketMirroringsConnection MOCK_METHOD(StatusOr, PatchPacketMirroring, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::packet_mirrorings::v1:: PatchPacketMirroringRequest const& request), (override)); MOCK_METHOD(future>, PatchPacketMirroring, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/projects/v1/internal/projects_tracing_connection.cc b/google/cloud/compute/projects/v1/internal/projects_tracing_connection.cc index 07fb423706043..44daa6263ac82 100644 --- a/google/cloud/compute/projects/v1/internal/projects_tracing_connection.cc +++ b/google/cloud/compute/projects/v1/internal/projects_tracing_connection.cc @@ -45,27 +45,25 @@ ProjectsTracingConnection::DisableXpnHost( StatusOr ProjectsTracingConnection::DisableXpnHost( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const& request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::DisableXpnHost"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DisableXpnHost(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DisableXpnHost(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProjectsTracingConnection::DisableXpnHost( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::DisableXpnHost"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DisableXpnHost(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DisableXpnHost(ExperimentalTag{}, operation)); } future> @@ -81,27 +79,26 @@ ProjectsTracingConnection::DisableXpnResource( StatusOr ProjectsTracingConnection::DisableXpnResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::DisableXpnResourceRequest const& request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::DisableXpnResource"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DisableXpnResource(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DisableXpnResource(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProjectsTracingConnection::DisableXpnResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::DisableXpnResource"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DisableXpnResource(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DisableXpnResource( + ExperimentalTag{}, operation)); } future> @@ -116,27 +113,25 @@ ProjectsTracingConnection::EnableXpnHost( StatusOr ProjectsTracingConnection::EnableXpnHost( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::EnableXpnHost"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->EnableXpnHost(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->EnableXpnHost(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProjectsTracingConnection::EnableXpnHost( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::EnableXpnHost"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->EnableXpnHost(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->EnableXpnHost(ExperimentalTag{}, operation)); } future> @@ -151,27 +146,26 @@ ProjectsTracingConnection::EnableXpnResource( StatusOr ProjectsTracingConnection::EnableXpnResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const& request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::EnableXpnResource"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->EnableXpnResource(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->EnableXpnResource(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProjectsTracingConnection::EnableXpnResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::EnableXpnResource"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->EnableXpnResource(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->EnableXpnResource(ExperimentalTag{}, operation)); } StatusOr @@ -226,26 +220,24 @@ ProjectsTracingConnection::MoveDisk( StatusOr ProjectsTracingConnection::MoveDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& request) { auto span = internal::MakeSpan("compute_projects_v1::ProjectsConnection::MoveDisk"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->MoveDisk(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->MoveDisk(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProjectsTracingConnection::MoveDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_projects_v1::ProjectsConnection::MoveDisk"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->MoveDisk(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->MoveDisk(ExperimentalTag{}, operation)); } future> @@ -260,27 +252,25 @@ ProjectsTracingConnection::MoveInstance( StatusOr ProjectsTracingConnection::MoveInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::MoveInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->MoveInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->MoveInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProjectsTracingConnection::MoveInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::MoveInstance"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->MoveInstance(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->MoveInstance(ExperimentalTag{}, operation)); } future> @@ -295,27 +285,26 @@ ProjectsTracingConnection::SetCloudArmorTier( StatusOr ProjectsTracingConnection::SetCloudArmorTier( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const& request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::SetCloudArmorTier"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetCloudArmorTier(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetCloudArmorTier(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProjectsTracingConnection::SetCloudArmorTier( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::SetCloudArmorTier"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetCloudArmorTier(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetCloudArmorTier(ExperimentalTag{}, operation)); } future> @@ -331,27 +320,26 @@ ProjectsTracingConnection::SetCommonInstanceMetadata( StatusOr ProjectsTracingConnection::SetCommonInstanceMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetCommonInstanceMetadataRequest const& request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::SetCommonInstanceMetadata"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SetCommonInstanceMetadata( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->SetCommonInstanceMetadata(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ProjectsTracingConnection::SetCommonInstanceMetadata( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::SetCommonInstanceMetadata"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SetCommonInstanceMetadata( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetCommonInstanceMetadata( + ExperimentalTag{}, operation)); } future> @@ -367,27 +355,26 @@ ProjectsTracingConnection::SetDefaultNetworkTier( StatusOr ProjectsTracingConnection::SetDefaultNetworkTier( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetDefaultNetworkTierRequest const& request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::SetDefaultNetworkTier"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SetDefaultNetworkTier( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->SetDefaultNetworkTier(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProjectsTracingConnection::SetDefaultNetworkTier( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::SetDefaultNetworkTier"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SetDefaultNetworkTier( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetDefaultNetworkTier( + ExperimentalTag{}, operation)); } future> @@ -403,27 +390,26 @@ ProjectsTracingConnection::SetUsageExportBucket( StatusOr ProjectsTracingConnection::SetUsageExportBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetUsageExportBucketRequest const& request) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::SetUsageExportBucket"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SetUsageExportBucket( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->SetUsageExportBucket(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProjectsTracingConnection::SetUsageExportBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_projects_v1::ProjectsConnection::SetUsageExportBucket"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SetUsageExportBucket( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetUsageExportBucket( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/projects/v1/internal/projects_tracing_connection.h b/google/cloud/compute/projects/v1/internal/projects_tracing_connection.h index 2101f9cfd17e2..ebad2c775638c 100644 --- a/google/cloud/compute/projects/v1/internal/projects_tracing_connection.h +++ b/google/cloud/compute/projects/v1/internal/projects_tracing_connection.h @@ -45,12 +45,12 @@ class ProjectsTracingConnection request) override; StatusOr DisableXpnHost( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const& request) override; future> DisableXpnHost( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -58,13 +58,13 @@ class ProjectsTracingConnection DisableXpnResourceRequest const& request) override; StatusOr DisableXpnResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: DisableXpnResourceRequest const& request) override; future> DisableXpnResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> EnableXpnHost( @@ -72,12 +72,12 @@ class ProjectsTracingConnection request) override; StatusOr EnableXpnHost( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& request) override; future> EnableXpnHost( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -86,13 +86,13 @@ class ProjectsTracingConnection request) override; StatusOr EnableXpnResource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const& request) override; future> EnableXpnResource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetProject( @@ -117,12 +117,12 @@ class ProjectsTracingConnection override; StatusOr MoveDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& request) override; future> MoveDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> MoveInstance( @@ -130,12 +130,12 @@ class ProjectsTracingConnection request) override; StatusOr MoveInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& request) override; future> MoveInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -144,13 +144,13 @@ class ProjectsTracingConnection request) override; StatusOr SetCloudArmorTier( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const& request) override; future> SetCloudArmorTier( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -160,13 +160,13 @@ class ProjectsTracingConnection StatusOr SetCommonInstanceMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetCommonInstanceMetadataRequest const& request) override; future> SetCommonInstanceMetadata( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -175,13 +175,13 @@ class ProjectsTracingConnection SetDefaultNetworkTierRequest const& request) override; StatusOr SetDefaultNetworkTier( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetDefaultNetworkTierRequest const& request) override; future> SetDefaultNetworkTier( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -189,13 +189,13 @@ class ProjectsTracingConnection SetUsageExportBucketRequest const& request) override; StatusOr SetUsageExportBucket( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetUsageExportBucketRequest const& request) override; future> SetUsageExportBucket( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/projects/v1/mocks/mock_projects_connection.h b/google/cloud/compute/projects/v1/mocks/mock_projects_connection.h index 49af5106d561c..05a4537d05085 100644 --- a/google/cloud/compute/projects/v1/mocks/mock_projects_connection.h +++ b/google/cloud/compute/projects/v1/mocks/mock_projects_connection.h @@ -55,14 +55,14 @@ class MockProjectsConnection : public compute_projects_v1::ProjectsConnection { MOCK_METHOD( StatusOr, DisableXpnHost, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const& request), (override)); MOCK_METHOD(future>, DisableXpnHost, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -74,14 +74,14 @@ class MockProjectsConnection : public compute_projects_v1::ProjectsConnection { MOCK_METHOD(StatusOr, DisableXpnResource, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: DisableXpnResourceRequest const& request), (override)); MOCK_METHOD(future>, DisableXpnResource, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -94,14 +94,14 @@ class MockProjectsConnection : public compute_projects_v1::ProjectsConnection { MOCK_METHOD( StatusOr, EnableXpnHost, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const& request), (override)); MOCK_METHOD(future>, EnableXpnHost, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -113,14 +113,14 @@ class MockProjectsConnection : public compute_projects_v1::ProjectsConnection { MOCK_METHOD(StatusOr, EnableXpnResource, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: EnableXpnResourceRequest const& request), (override)); MOCK_METHOD(future>, EnableXpnResource, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -155,14 +155,14 @@ class MockProjectsConnection : public compute_projects_v1::ProjectsConnection { (override)); MOCK_METHOD(StatusOr, MoveDisk, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveDiskRequest const& request), (override)); MOCK_METHOD(future>, MoveDisk, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -175,14 +175,14 @@ class MockProjectsConnection : public compute_projects_v1::ProjectsConnection { MOCK_METHOD( StatusOr, MoveInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const& request), (override)); MOCK_METHOD(future>, MoveInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -194,14 +194,14 @@ class MockProjectsConnection : public compute_projects_v1::ProjectsConnection { MOCK_METHOD(StatusOr, SetCloudArmorTier, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetCloudArmorTierRequest const& request), (override)); MOCK_METHOD(future>, SetCloudArmorTier, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -213,14 +213,14 @@ class MockProjectsConnection : public compute_projects_v1::ProjectsConnection { MOCK_METHOD(StatusOr, SetCommonInstanceMetadata, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetCommonInstanceMetadataRequest const& request), (override)); MOCK_METHOD(future>, SetCommonInstanceMetadata, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -232,14 +232,14 @@ class MockProjectsConnection : public compute_projects_v1::ProjectsConnection { MOCK_METHOD(StatusOr, SetDefaultNetworkTier, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetDefaultNetworkTierRequest const& request), (override)); MOCK_METHOD(future>, SetDefaultNetworkTier, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -251,14 +251,14 @@ class MockProjectsConnection : public compute_projects_v1::ProjectsConnection { MOCK_METHOD(StatusOr, SetUsageExportBucket, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1:: SetUsageExportBucketRequest const& request), (override)); MOCK_METHOD(future>, SetUsageExportBucket, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.cc b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.cc index ea7ad425264db..0999ce53c31b3 100644 --- a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.cc +++ b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.cc @@ -50,7 +50,7 @@ PublicAdvertisedPrefixesTracingConnection::Announce( StatusOr PublicAdvertisedPrefixesTracingConnection::Announce( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: AnnounceRequest const& request) { auto span = internal::MakeSpan( @@ -58,21 +58,19 @@ PublicAdvertisedPrefixesTracingConnection::Announce( "PublicAdvertisedPrefixesConnection::Announce"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->Announce(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->Announce(ExperimentalTag{}, NoAwaitTag{}, request)); } future> PublicAdvertisedPrefixesTracingConnection::Announce( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_public_advertised_prefixes_v1::" "PublicAdvertisedPrefixesConnection::Announce"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Announce(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Announce(ExperimentalTag{}, operation)); } future> @@ -89,29 +87,29 @@ PublicAdvertisedPrefixesTracingConnection::DeletePublicAdvertisedPrefix( StatusOr PublicAdvertisedPrefixesTracingConnection::DeletePublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: DeletePublicAdvertisedPrefixRequest const& request) { auto span = internal::MakeSpan( "compute_public_advertised_prefixes_v1::" "PublicAdvertisedPrefixesConnection::DeletePublicAdvertisedPrefix"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeletePublicAdvertisedPrefix( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeletePublicAdvertisedPrefix(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> PublicAdvertisedPrefixesTracingConnection::DeletePublicAdvertisedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_public_advertised_prefixes_v1::" "PublicAdvertisedPrefixesConnection::DeletePublicAdvertisedPrefix"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeletePublicAdvertisedPrefix( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->DeletePublicAdvertisedPrefix(ExperimentalTag{}, operation)); } StatusOr @@ -139,29 +137,29 @@ PublicAdvertisedPrefixesTracingConnection::InsertPublicAdvertisedPrefix( StatusOr PublicAdvertisedPrefixesTracingConnection::InsertPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: InsertPublicAdvertisedPrefixRequest const& request) { auto span = internal::MakeSpan( "compute_public_advertised_prefixes_v1::" "PublicAdvertisedPrefixesConnection::InsertPublicAdvertisedPrefix"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertPublicAdvertisedPrefix( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InsertPublicAdvertisedPrefix(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> PublicAdvertisedPrefixesTracingConnection::InsertPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_public_advertised_prefixes_v1::" "PublicAdvertisedPrefixesConnection::InsertPublicAdvertisedPrefix"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertPublicAdvertisedPrefix( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->InsertPublicAdvertisedPrefix(ExperimentalTag{}, operation)); } StreamRange @@ -192,29 +190,28 @@ PublicAdvertisedPrefixesTracingConnection::PatchPublicAdvertisedPrefix( StatusOr PublicAdvertisedPrefixesTracingConnection::PatchPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: PatchPublicAdvertisedPrefixRequest const& request) { auto span = internal::MakeSpan( "compute_public_advertised_prefixes_v1::" "PublicAdvertisedPrefixesConnection::PatchPublicAdvertisedPrefix"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchPublicAdvertisedPrefix( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->PatchPublicAdvertisedPrefix(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> PublicAdvertisedPrefixesTracingConnection::PatchPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_public_advertised_prefixes_v1::" "PublicAdvertisedPrefixesConnection::PatchPublicAdvertisedPrefix"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchPublicAdvertisedPrefix( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchPublicAdvertisedPrefix( + ExperimentalTag{}, operation)); } future> @@ -230,7 +227,7 @@ PublicAdvertisedPrefixesTracingConnection::Withdraw( StatusOr PublicAdvertisedPrefixesTracingConnection::Withdraw( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: WithdrawRequest const& request) { auto span = internal::MakeSpan( @@ -238,21 +235,19 @@ PublicAdvertisedPrefixesTracingConnection::Withdraw( "PublicAdvertisedPrefixesConnection::Withdraw"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->Withdraw(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->Withdraw(ExperimentalTag{}, NoAwaitTag{}, request)); } future> PublicAdvertisedPrefixesTracingConnection::Withdraw( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_public_advertised_prefixes_v1::" "PublicAdvertisedPrefixesConnection::Withdraw"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Withdraw(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Withdraw(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.h b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.h index 172381d3c2c31..775e7f84b852f 100644 --- a/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.h +++ b/google/cloud/compute/public_advertised_prefixes/v1/internal/public_advertised_prefixes_tracing_connection.h @@ -49,12 +49,12 @@ class PublicAdvertisedPrefixesTracingConnection AnnounceRequest const& request) override; StatusOr Announce( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: AnnounceRequest const& request) override; future> Announce( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -64,13 +64,13 @@ class PublicAdvertisedPrefixesTracingConnection StatusOr DeletePublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: DeletePublicAdvertisedPrefixRequest const& request) override; future> DeletePublicAdvertisedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -85,13 +85,13 @@ class PublicAdvertisedPrefixesTracingConnection StatusOr InsertPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: InsertPublicAdvertisedPrefixRequest const& request) override; future> InsertPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -106,13 +106,13 @@ class PublicAdvertisedPrefixesTracingConnection StatusOr PatchPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: PatchPublicAdvertisedPrefixRequest const& request) override; future> PatchPublicAdvertisedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Withdraw( @@ -120,12 +120,12 @@ class PublicAdvertisedPrefixesTracingConnection WithdrawRequest const& request) override; StatusOr Withdraw( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: WithdrawRequest const& request) override; future> Withdraw( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/public_advertised_prefixes/v1/mocks/mock_public_advertised_prefixes_connection.h b/google/cloud/compute/public_advertised_prefixes/v1/mocks/mock_public_advertised_prefixes_connection.h index 60f33bb44c9c1..c730d083ec5b5 100644 --- a/google/cloud/compute/public_advertised_prefixes/v1/mocks/mock_public_advertised_prefixes_connection.h +++ b/google/cloud/compute/public_advertised_prefixes/v1/mocks/mock_public_advertised_prefixes_connection.h @@ -56,14 +56,14 @@ class MockPublicAdvertisedPrefixesConnection (override)); MOCK_METHOD(StatusOr, Announce, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: AnnounceRequest const& request), (override)); MOCK_METHOD(future>, Announce, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -75,14 +75,14 @@ class MockPublicAdvertisedPrefixesConnection MOCK_METHOD(StatusOr, DeletePublicAdvertisedPrefix, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: DeletePublicAdvertisedPrefixRequest const& request), (override)); MOCK_METHOD(future>, DeletePublicAdvertisedPrefix, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -100,14 +100,14 @@ class MockPublicAdvertisedPrefixesConnection MOCK_METHOD(StatusOr, InsertPublicAdvertisedPrefix, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: InsertPublicAdvertisedPrefixRequest const& request), (override)); MOCK_METHOD(future>, InsertPublicAdvertisedPrefix, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -126,14 +126,14 @@ class MockPublicAdvertisedPrefixesConnection MOCK_METHOD(StatusOr, PatchPublicAdvertisedPrefix, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: PatchPublicAdvertisedPrefixRequest const& request), (override)); MOCK_METHOD(future>, PatchPublicAdvertisedPrefix, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -144,14 +144,14 @@ class MockPublicAdvertisedPrefixesConnection (override)); MOCK_METHOD(StatusOr, Withdraw, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_advertised_prefixes::v1:: WithdrawRequest const& request), (override)); MOCK_METHOD(future>, Withdraw, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.cc b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.cc index 9e2d62baee49e..ab73497ad5193 100644 --- a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.cc +++ b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.cc @@ -66,7 +66,7 @@ PublicDelegatedPrefixesTracingConnection::Announce( StatusOr PublicDelegatedPrefixesTracingConnection::Announce( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: AnnounceRequest const& request) { auto span = internal::MakeSpan( @@ -74,21 +74,19 @@ PublicDelegatedPrefixesTracingConnection::Announce( ":Announce"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->Announce(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->Announce(ExperimentalTag{}, NoAwaitTag{}, request)); } future> PublicDelegatedPrefixesTracingConnection::Announce( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" ":Announce"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Announce(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Announce(ExperimentalTag{}, operation)); } future> @@ -105,29 +103,28 @@ PublicDelegatedPrefixesTracingConnection::DeletePublicDelegatedPrefix( StatusOr PublicDelegatedPrefixesTracingConnection::DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request) { auto span = internal::MakeSpan( "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" ":DeletePublicDelegatedPrefix"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeletePublicDelegatedPrefix(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> PublicDelegatedPrefixesTracingConnection::DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" ":DeletePublicDelegatedPrefix"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeletePublicDelegatedPrefix( + ExperimentalTag{}, operation)); } StatusOr @@ -155,29 +152,28 @@ PublicDelegatedPrefixesTracingConnection::InsertPublicDelegatedPrefix( StatusOr PublicDelegatedPrefixesTracingConnection::InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request) { auto span = internal::MakeSpan( "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" ":InsertPublicDelegatedPrefix"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InsertPublicDelegatedPrefix(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> PublicDelegatedPrefixesTracingConnection::InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" ":InsertPublicDelegatedPrefix"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertPublicDelegatedPrefix( + ExperimentalTag{}, operation)); } StreamRange @@ -208,29 +204,28 @@ PublicDelegatedPrefixesTracingConnection::PatchPublicDelegatedPrefix( StatusOr PublicDelegatedPrefixesTracingConnection::PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request) { auto span = internal::MakeSpan( "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" ":PatchPublicDelegatedPrefix"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->PatchPublicDelegatedPrefix(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> PublicDelegatedPrefixesTracingConnection::PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" ":PatchPublicDelegatedPrefix"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchPublicDelegatedPrefix( + ExperimentalTag{}, operation)); } future> @@ -246,7 +241,7 @@ PublicDelegatedPrefixesTracingConnection::Withdraw( StatusOr PublicDelegatedPrefixesTracingConnection::Withdraw( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: WithdrawRequest const& request) { auto span = internal::MakeSpan( @@ -254,21 +249,19 @@ PublicDelegatedPrefixesTracingConnection::Withdraw( ":Withdraw"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->Withdraw(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->Withdraw(ExperimentalTag{}, NoAwaitTag{}, request)); } future> PublicDelegatedPrefixesTracingConnection::Withdraw( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_public_delegated_prefixes_v1::PublicDelegatedPrefixesConnection:" ":Withdraw"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Withdraw(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Withdraw(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.h b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.h index 05ef1062d1f24..18add7f098a2a 100644 --- a/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.h +++ b/google/cloud/compute/public_delegated_prefixes/v1/internal/public_delegated_prefixes_tracing_connection.h @@ -55,12 +55,12 @@ class PublicDelegatedPrefixesTracingConnection AnnounceRequest const& request) override; StatusOr Announce( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: AnnounceRequest const& request) override; future> Announce( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -70,13 +70,13 @@ class PublicDelegatedPrefixesTracingConnection StatusOr DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request) override; future> DeletePublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -91,13 +91,13 @@ class PublicDelegatedPrefixesTracingConnection StatusOr InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request) override; future> InsertPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -112,13 +112,13 @@ class PublicDelegatedPrefixesTracingConnection StatusOr PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request) override; future> PatchPublicDelegatedPrefix( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Withdraw( @@ -126,12 +126,12 @@ class PublicDelegatedPrefixesTracingConnection WithdrawRequest const& request) override; StatusOr Withdraw( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: WithdrawRequest const& request) override; future> Withdraw( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/public_delegated_prefixes/v1/mocks/mock_public_delegated_prefixes_connection.h b/google/cloud/compute/public_delegated_prefixes/v1/mocks/mock_public_delegated_prefixes_connection.h index 10225df53adc3..52d038beb2646 100644 --- a/google/cloud/compute/public_delegated_prefixes/v1/mocks/mock_public_delegated_prefixes_connection.h +++ b/google/cloud/compute/public_delegated_prefixes/v1/mocks/mock_public_delegated_prefixes_connection.h @@ -64,14 +64,14 @@ class MockPublicDelegatedPrefixesConnection (override)); MOCK_METHOD(StatusOr, Announce, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: AnnounceRequest const& request), (override)); MOCK_METHOD(future>, Announce, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -83,14 +83,14 @@ class MockPublicDelegatedPrefixesConnection MOCK_METHOD(StatusOr, DeletePublicDelegatedPrefix, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: DeletePublicDelegatedPrefixRequest const& request), (override)); MOCK_METHOD(future>, DeletePublicDelegatedPrefix, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -108,14 +108,14 @@ class MockPublicDelegatedPrefixesConnection MOCK_METHOD(StatusOr, InsertPublicDelegatedPrefix, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: InsertPublicDelegatedPrefixRequest const& request), (override)); MOCK_METHOD(future>, InsertPublicDelegatedPrefix, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -134,14 +134,14 @@ class MockPublicDelegatedPrefixesConnection MOCK_METHOD(StatusOr, PatchPublicDelegatedPrefix, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: PatchPublicDelegatedPrefixRequest const& request), (override)); MOCK_METHOD(future>, PatchPublicDelegatedPrefix, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -152,14 +152,14 @@ class MockPublicDelegatedPrefixesConnection (override)); MOCK_METHOD(StatusOr, Withdraw, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::public_delegated_prefixes::v1:: WithdrawRequest const& request), (override)); MOCK_METHOD(future>, Withdraw, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.cc b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.cc index 7c699937885c3..3fd14b1192527 100644 --- a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.cc +++ b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.cc @@ -47,7 +47,7 @@ RegionAutoscalersTracingConnection::DeleteAutoscaler( StatusOr RegionAutoscalersTracingConnection::DeleteAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: DeleteAutoscalerRequest const& request) { auto span = internal::MakeSpan( @@ -55,21 +55,20 @@ RegionAutoscalersTracingConnection::DeleteAutoscaler( "DeleteAutoscaler"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAutoscaler(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteAutoscaler(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionAutoscalersTracingConnection::DeleteAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_autoscalers_v1::RegionAutoscalersConnection::" "DeleteAutoscaler"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteAutoscaler(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteAutoscaler(ExperimentalTag{}, operation)); } StatusOr @@ -96,7 +95,7 @@ RegionAutoscalersTracingConnection::InsertAutoscaler( StatusOr RegionAutoscalersTracingConnection::InsertAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: InsertAutoscalerRequest const& request) { auto span = internal::MakeSpan( @@ -104,21 +103,20 @@ RegionAutoscalersTracingConnection::InsertAutoscaler( "InsertAutoscaler"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertAutoscaler(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->InsertAutoscaler(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionAutoscalersTracingConnection::InsertAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_autoscalers_v1::RegionAutoscalersConnection::" "InsertAutoscaler"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertAutoscaler(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertAutoscaler(ExperimentalTag{}, operation)); } StreamRange @@ -148,7 +146,7 @@ RegionAutoscalersTracingConnection::PatchAutoscaler( StatusOr RegionAutoscalersTracingConnection::PatchAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: PatchAutoscalerRequest const& request) { auto span = internal::MakeSpan( @@ -156,21 +154,19 @@ RegionAutoscalersTracingConnection::PatchAutoscaler( "PatchAutoscaler"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchAutoscaler(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchAutoscaler(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionAutoscalersTracingConnection::PatchAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_autoscalers_v1::RegionAutoscalersConnection::" "PatchAutoscaler"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->PatchAutoscaler(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->PatchAutoscaler(ExperimentalTag{}, operation)); } future> @@ -186,7 +182,7 @@ RegionAutoscalersTracingConnection::UpdateAutoscaler( StatusOr RegionAutoscalersTracingConnection::UpdateAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: UpdateAutoscalerRequest const& request) { auto span = internal::MakeSpan( @@ -194,21 +190,20 @@ RegionAutoscalersTracingConnection::UpdateAutoscaler( "UpdateAutoscaler"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateAutoscaler(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateAutoscaler(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionAutoscalersTracingConnection::UpdateAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_autoscalers_v1::RegionAutoscalersConnection::" "UpdateAutoscaler"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateAutoscaler(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateAutoscaler(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.h b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.h index 1ea468cc9a563..7c8321f136d00 100644 --- a/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.h +++ b/google/cloud/compute/region_autoscalers/v1/internal/region_autoscalers_tracing_connection.h @@ -47,12 +47,12 @@ class RegionAutoscalersTracingConnection DeleteAutoscalerRequest const& request) override; StatusOr DeleteAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: DeleteAutoscalerRequest const& request) override; future> DeleteAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetAutoscaler( @@ -64,12 +64,12 @@ class RegionAutoscalersTracingConnection InsertAutoscalerRequest const& request) override; StatusOr InsertAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: InsertAutoscalerRequest const& request) override; future> InsertAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -81,12 +81,12 @@ class RegionAutoscalersTracingConnection PatchAutoscalerRequest const& request) override; StatusOr PatchAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: PatchAutoscalerRequest const& request) override; future> PatchAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> UpdateAutoscaler( @@ -94,12 +94,12 @@ class RegionAutoscalersTracingConnection UpdateAutoscalerRequest const& request) override; StatusOr UpdateAutoscaler( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: UpdateAutoscalerRequest const& request) override; future> UpdateAutoscaler( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_autoscalers/v1/mocks/mock_region_autoscalers_connection.h b/google/cloud/compute/region_autoscalers/v1/mocks/mock_region_autoscalers_connection.h index e6a5c7dfef6d3..83c5a2544929d 100644 --- a/google/cloud/compute/region_autoscalers/v1/mocks/mock_region_autoscalers_connection.h +++ b/google/cloud/compute/region_autoscalers/v1/mocks/mock_region_autoscalers_connection.h @@ -55,14 +55,14 @@ class MockRegionAutoscalersConnection MOCK_METHOD(StatusOr, DeleteAutoscaler, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: DeleteAutoscalerRequest const& request), (override)); MOCK_METHOD(future>, DeleteAutoscaler, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -80,14 +80,14 @@ class MockRegionAutoscalersConnection MOCK_METHOD(StatusOr, InsertAutoscaler, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: InsertAutoscalerRequest const& request), (override)); MOCK_METHOD(future>, InsertAutoscaler, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -105,14 +105,14 @@ class MockRegionAutoscalersConnection MOCK_METHOD(StatusOr, PatchAutoscaler, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: PatchAutoscalerRequest const& request), (override)); MOCK_METHOD(future>, PatchAutoscaler, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -124,14 +124,14 @@ class MockRegionAutoscalersConnection MOCK_METHOD(StatusOr, UpdateAutoscaler, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_autoscalers::v1:: UpdateAutoscalerRequest const& request), (override)); MOCK_METHOD(future>, UpdateAutoscaler, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.cc b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.cc index 241ab78aea42e..d01f733632415 100644 --- a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.cc +++ b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.cc @@ -50,29 +50,28 @@ RegionBackendServicesTracingConnection::DeleteBackendService( StatusOr RegionBackendServicesTracingConnection::DeleteBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: DeleteBackendServiceRequest const& request) { auto span = internal::MakeSpan( "compute_region_backend_services_v1::RegionBackendServicesConnection::" "DeleteBackendService"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteBackendService( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteBackendService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionBackendServicesTracingConnection::DeleteBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_backend_services_v1::RegionBackendServicesConnection::" "DeleteBackendService"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteBackendService( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteBackendService( + ExperimentalTag{}, operation)); } StatusOr @@ -122,29 +121,28 @@ RegionBackendServicesTracingConnection::InsertBackendService( StatusOr RegionBackendServicesTracingConnection::InsertBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: InsertBackendServiceRequest const& request) { auto span = internal::MakeSpan( "compute_region_backend_services_v1::RegionBackendServicesConnection::" "InsertBackendService"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertBackendService( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertBackendService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionBackendServicesTracingConnection::InsertBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_backend_services_v1::RegionBackendServicesConnection::" "InsertBackendService"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertBackendService( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertBackendService( + ExperimentalTag{}, operation)); } StreamRange @@ -189,7 +187,7 @@ RegionBackendServicesTracingConnection::PatchBackendService( StatusOr RegionBackendServicesTracingConnection::PatchBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: PatchBackendServiceRequest const& request) { auto span = internal::MakeSpan( @@ -197,21 +195,20 @@ RegionBackendServicesTracingConnection::PatchBackendService( "PatchBackendService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchBackendService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PatchBackendService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionBackendServicesTracingConnection::PatchBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_backend_services_v1::RegionBackendServicesConnection::" "PatchBackendService"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchBackendService(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchBackendService( + ExperimentalTag{}, operation)); } StatusOr @@ -238,7 +235,7 @@ RegionBackendServicesTracingConnection::SetSecurityPolicy( StatusOr RegionBackendServicesTracingConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: SetSecurityPolicyRequest const& request) { auto span = internal::MakeSpan( @@ -246,21 +243,20 @@ RegionBackendServicesTracingConnection::SetSecurityPolicy( "SetSecurityPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetSecurityPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionBackendServicesTracingConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_backend_services_v1::RegionBackendServicesConnection::" "SetSecurityPolicy"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetSecurityPolicy(ExperimentalTag{}, operation)); } StatusOr @@ -288,29 +284,28 @@ RegionBackendServicesTracingConnection::UpdateBackendService( StatusOr RegionBackendServicesTracingConnection::UpdateBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: UpdateBackendServiceRequest const& request) { auto span = internal::MakeSpan( "compute_region_backend_services_v1::RegionBackendServicesConnection::" "UpdateBackendService"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateBackendService( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateBackendService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionBackendServicesTracingConnection::UpdateBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_backend_services_v1::RegionBackendServicesConnection::" "UpdateBackendService"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateBackendService( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateBackendService( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.h b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.h index 686d27b2934dc..4798f78392859 100644 --- a/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.h +++ b/google/cloud/compute/region_backend_services/v1/internal/region_backend_services_tracing_connection.h @@ -50,13 +50,13 @@ class RegionBackendServicesTracingConnection DeleteBackendServiceRequest const& request) override; StatusOr DeleteBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: DeleteBackendServiceRequest const& request) override; future> DeleteBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetBackendService( @@ -77,13 +77,13 @@ class RegionBackendServicesTracingConnection InsertBackendServiceRequest const& request) override; StatusOr InsertBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: InsertBackendServiceRequest const& request) override; future> InsertBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -100,13 +100,13 @@ class RegionBackendServicesTracingConnection PatchBackendServiceRequest const& request) override; StatusOr PatchBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: PatchBackendServiceRequest const& request) override; future> PatchBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -118,13 +118,13 @@ class RegionBackendServicesTracingConnection SetSecurityPolicyRequest const& request) override; StatusOr SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: SetSecurityPolicyRequest const& request) override; future> SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -137,13 +137,13 @@ class RegionBackendServicesTracingConnection UpdateBackendServiceRequest const& request) override; StatusOr UpdateBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: UpdateBackendServiceRequest const& request) override; future> UpdateBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_backend_services/v1/mocks/mock_region_backend_services_connection.h b/google/cloud/compute/region_backend_services/v1/mocks/mock_region_backend_services_connection.h index 16cfc06a7d6b9..ae9b042e91205 100644 --- a/google/cloud/compute/region_backend_services/v1/mocks/mock_region_backend_services_connection.h +++ b/google/cloud/compute/region_backend_services/v1/mocks/mock_region_backend_services_connection.h @@ -57,14 +57,14 @@ class MockRegionBackendServicesConnection MOCK_METHOD(StatusOr, DeleteBackendService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: DeleteBackendServiceRequest const& request), (override)); MOCK_METHOD(future>, DeleteBackendService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -94,14 +94,14 @@ class MockRegionBackendServicesConnection MOCK_METHOD(StatusOr, InsertBackendService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: InsertBackendServiceRequest const& request), (override)); MOCK_METHOD(future>, InsertBackendService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -125,14 +125,14 @@ class MockRegionBackendServicesConnection MOCK_METHOD(StatusOr, PatchBackendService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: PatchBackendServiceRequest const& request), (override)); MOCK_METHOD(future>, PatchBackendService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -149,14 +149,14 @@ class MockRegionBackendServicesConnection MOCK_METHOD(StatusOr, SetSecurityPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: SetSecurityPolicyRequest const& request), (override)); MOCK_METHOD(future>, SetSecurityPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -175,14 +175,14 @@ class MockRegionBackendServicesConnection MOCK_METHOD(StatusOr, UpdateBackendService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_backend_services::v1:: UpdateBackendServiceRequest const& request), (override)); MOCK_METHOD(future>, UpdateBackendService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.cc b/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.cc index 60660a0a578b9..7120106bb17e0 100644 --- a/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.cc +++ b/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.cc @@ -73,7 +73,7 @@ RegionCommitmentsTracingConnection::InsertCommitment( StatusOr RegionCommitmentsTracingConnection::InsertCommitment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_commitments::v1:: InsertCommitmentRequest const& request) { auto span = internal::MakeSpan( @@ -81,21 +81,20 @@ RegionCommitmentsTracingConnection::InsertCommitment( "InsertCommitment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertCommitment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->InsertCommitment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionCommitmentsTracingConnection::InsertCommitment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_commitments_v1::RegionCommitmentsConnection::" "InsertCommitment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertCommitment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertCommitment(ExperimentalTag{}, operation)); } StreamRange @@ -125,7 +124,7 @@ RegionCommitmentsTracingConnection::UpdateCommitment( StatusOr RegionCommitmentsTracingConnection::UpdateCommitment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_commitments::v1:: UpdateCommitmentRequest const& request) { auto span = internal::MakeSpan( @@ -133,21 +132,20 @@ RegionCommitmentsTracingConnection::UpdateCommitment( "UpdateCommitment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateCommitment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateCommitment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionCommitmentsTracingConnection::UpdateCommitment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_commitments_v1::RegionCommitmentsConnection::" "UpdateCommitment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateCommitment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateCommitment(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.h b/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.h index b1bb017cf4246..322e2cfa7a808 100644 --- a/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.h +++ b/google/cloud/compute/region_commitments/v1/internal/region_commitments_tracing_connection.h @@ -57,12 +57,12 @@ class RegionCommitmentsTracingConnection InsertCommitmentRequest const& request) override; StatusOr InsertCommitment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_commitments::v1:: InsertCommitmentRequest const& request) override; future> InsertCommitment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -74,12 +74,12 @@ class RegionCommitmentsTracingConnection UpdateCommitmentRequest const& request) override; StatusOr UpdateCommitment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_commitments::v1:: UpdateCommitmentRequest const& request) override; future> UpdateCommitment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_commitments/v1/mocks/mock_region_commitments_connection.h b/google/cloud/compute/region_commitments/v1/mocks/mock_region_commitments_connection.h index 212310f1e4cc2..f64af78e7ef6d 100644 --- a/google/cloud/compute/region_commitments/v1/mocks/mock_region_commitments_connection.h +++ b/google/cloud/compute/region_commitments/v1/mocks/mock_region_commitments_connection.h @@ -70,14 +70,14 @@ class MockRegionCommitmentsConnection MOCK_METHOD(StatusOr, InsertCommitment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_commitments::v1:: InsertCommitmentRequest const& request), (override)); MOCK_METHOD(future>, InsertCommitment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -95,14 +95,14 @@ class MockRegionCommitmentsConnection MOCK_METHOD(StatusOr, UpdateCommitment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_commitments::v1:: UpdateCommitmentRequest const& request), (override)); MOCK_METHOD(future>, UpdateCommitment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.cc b/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.cc index 85b8d9c984773..55d09099cd9d4 100644 --- a/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.cc +++ b/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.cc @@ -46,27 +46,26 @@ RegionDisksTracingConnection::AddResourcePolicies( StatusOr RegionDisksTracingConnection::AddResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: AddResourcePoliciesRequest const& request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::AddResourcePolicies"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddResourcePolicies(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->AddResourcePolicies(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionDisksTracingConnection::AddResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::AddResourcePolicies"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AddResourcePolicies(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->AddResourcePolicies( + ExperimentalTag{}, operation)); } future> @@ -81,27 +80,25 @@ RegionDisksTracingConnection::BulkInsert( StatusOr RegionDisksTracingConnection::BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::BulkInsert"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BulkInsert(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->BulkInsert(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionDisksTracingConnection::BulkInsert( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::BulkInsert"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->BulkInsert(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->BulkInsert(ExperimentalTag{}, operation)); } future> @@ -116,27 +113,25 @@ RegionDisksTracingConnection::CreateSnapshot( StatusOr RegionDisksTracingConnection::CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::CreateSnapshotRequest const& request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::CreateSnapshot"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateSnapshot(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateSnapshot(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionDisksTracingConnection::CreateSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::CreateSnapshot"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateSnapshot(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateSnapshot(ExperimentalTag{}, operation)); } future> @@ -151,27 +146,25 @@ RegionDisksTracingConnection::DeleteDisk( StatusOr RegionDisksTracingConnection::DeleteDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::DeleteDisk"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteDisk(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteDisk(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionDisksTracingConnection::DeleteDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::DeleteDisk"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteDisk(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteDisk(ExperimentalTag{}, operation)); } StatusOr @@ -206,27 +199,25 @@ RegionDisksTracingConnection::InsertDisk( StatusOr RegionDisksTracingConnection::InsertDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const& request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::InsertDisk"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertDisk(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertDisk(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionDisksTracingConnection::InsertDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::InsertDisk"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InsertDisk(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->InsertDisk(ExperimentalTag{}, operation)); } StreamRange @@ -254,27 +245,26 @@ RegionDisksTracingConnection::RemoveResourcePolicies( StatusOr RegionDisksTracingConnection::RemoveResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: RemoveResourcePoliciesRequest const& request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::RemoveResourcePolicies"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RemoveResourcePolicies( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->RemoveResourcePolicies(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionDisksTracingConnection::RemoveResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::RemoveResourcePolicies"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RemoveResourcePolicies( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RemoveResourcePolicies( + ExperimentalTag{}, operation)); } future> @@ -289,27 +279,25 @@ RegionDisksTracingConnection::Resize( StatusOr RegionDisksTracingConnection::Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::Resize"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->Resize(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->Resize(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionDisksTracingConnection::Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::Resize"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Resize(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Resize(ExperimentalTag{}, operation)); } StatusOr @@ -334,27 +322,25 @@ RegionDisksTracingConnection::SetLabels( StatusOr RegionDisksTracingConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const& request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::SetLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionDisksTracingConnection::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::SetLabels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetLabels(ExperimentalTag{}, operation)); } future> @@ -370,27 +356,26 @@ RegionDisksTracingConnection::StartAsyncReplication( StatusOr RegionDisksTracingConnection::StartAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StartAsyncReplicationRequest const& request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::StartAsyncReplication"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->StartAsyncReplication( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->StartAsyncReplication(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionDisksTracingConnection::StartAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::StartAsyncReplication"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->StartAsyncReplication( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->StartAsyncReplication( + ExperimentalTag{}, operation)); } future> @@ -406,27 +391,26 @@ RegionDisksTracingConnection::StopAsyncReplication( StatusOr RegionDisksTracingConnection::StopAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StopAsyncReplicationRequest const& request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::StopAsyncReplication"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->StopAsyncReplication( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->StopAsyncReplication(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionDisksTracingConnection::StopAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::StopAsyncReplication"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->StopAsyncReplication( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->StopAsyncReplication( + ExperimentalTag{}, operation)); } future> @@ -443,29 +427,28 @@ RegionDisksTracingConnection::StopGroupAsyncReplication( StatusOr RegionDisksTracingConnection::StopGroupAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StopGroupAsyncReplicationRequest const& request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::" "StopGroupAsyncReplication"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->StopGroupAsyncReplication( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->StopGroupAsyncReplication(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> RegionDisksTracingConnection::StopGroupAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::" "StopGroupAsyncReplication"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->StopGroupAsyncReplication( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->StopGroupAsyncReplication( + ExperimentalTag{}, operation)); } StatusOr @@ -490,27 +473,25 @@ RegionDisksTracingConnection::UpdateDisk( StatusOr RegionDisksTracingConnection::UpdateDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const& request) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::UpdateDisk"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateDisk(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateDisk(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionDisksTracingConnection::UpdateDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_disks_v1::RegionDisksConnection::UpdateDisk"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateDisk(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateDisk(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.h b/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.h index 3c0046cee838c..fab1835089608 100644 --- a/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.h +++ b/google/cloud/compute/region_disks/v1/internal/region_disks_tracing_connection.h @@ -45,13 +45,13 @@ class RegionDisksTracingConnection AddResourcePoliciesRequest const& request) override; StatusOr AddResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: AddResourcePoliciesRequest const& request) override; future> AddResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> BulkInsert( @@ -59,12 +59,12 @@ class RegionDisksTracingConnection request) override; StatusOr BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& request) override; future> BulkInsert( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> CreateSnapshot( @@ -72,12 +72,12 @@ class RegionDisksTracingConnection CreateSnapshotRequest const& request) override; StatusOr CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: CreateSnapshotRequest const& request) override; future> CreateSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> DeleteDisk( @@ -85,12 +85,12 @@ class RegionDisksTracingConnection request) override; StatusOr DeleteDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& request) override; future> DeleteDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetDisk( @@ -106,12 +106,12 @@ class RegionDisksTracingConnection request) override; StatusOr InsertDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const& request) override; future> InsertDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListRegionDisks( @@ -124,13 +124,13 @@ class RegionDisksTracingConnection RemoveResourcePoliciesRequest const& request) override; StatusOr RemoveResourcePolicies( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: RemoveResourcePoliciesRequest const& request) override; future> RemoveResourcePolicies( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Resize( @@ -138,12 +138,12 @@ class RegionDisksTracingConnection request) override; StatusOr Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& request) override; future> Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -155,12 +155,12 @@ class RegionDisksTracingConnection request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -169,13 +169,13 @@ class RegionDisksTracingConnection StartAsyncReplicationRequest const& request) override; StatusOr StartAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StartAsyncReplicationRequest const& request) override; future> StartAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -183,13 +183,13 @@ class RegionDisksTracingConnection StopAsyncReplicationRequest const& request) override; StatusOr StopAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StopAsyncReplicationRequest const& request) override; future> StopAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -199,13 +199,13 @@ class RegionDisksTracingConnection StatusOr StopGroupAsyncReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StopGroupAsyncReplicationRequest const& request) override; future> StopGroupAsyncReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -217,12 +217,12 @@ class RegionDisksTracingConnection request) override; StatusOr UpdateDisk( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const& request) override; future> UpdateDisk( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_disks/v1/mocks/mock_region_disks_connection.h b/google/cloud/compute/region_disks/v1/mocks/mock_region_disks_connection.h index 53eb843c25d4e..8d108b764c1f3 100644 --- a/google/cloud/compute/region_disks/v1/mocks/mock_region_disks_connection.h +++ b/google/cloud/compute/region_disks/v1/mocks/mock_region_disks_connection.h @@ -55,14 +55,14 @@ class MockRegionDisksConnection MOCK_METHOD(StatusOr, AddResourcePolicies, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: AddResourcePoliciesRequest const& request), (override)); MOCK_METHOD(future>, AddResourcePolicies, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -74,14 +74,14 @@ class MockRegionDisksConnection MOCK_METHOD( StatusOr, BulkInsert, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::BulkInsertRequest const& request), (override)); MOCK_METHOD(future>, BulkInsert, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -93,14 +93,14 @@ class MockRegionDisksConnection MOCK_METHOD(StatusOr, CreateSnapshot, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: CreateSnapshotRequest const& request), (override)); MOCK_METHOD(future>, CreateSnapshot, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -112,14 +112,14 @@ class MockRegionDisksConnection MOCK_METHOD( StatusOr, DeleteDisk, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::DeleteDiskRequest const& request), (override)); MOCK_METHOD(future>, DeleteDisk, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -143,14 +143,14 @@ class MockRegionDisksConnection MOCK_METHOD( StatusOr, InsertDisk, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::InsertDiskRequest const& request), (override)); MOCK_METHOD(future>, InsertDisk, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -168,14 +168,14 @@ class MockRegionDisksConnection MOCK_METHOD(StatusOr, RemoveResourcePolicies, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: RemoveResourcePoliciesRequest const& request), (override)); MOCK_METHOD(future>, RemoveResourcePolicies, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -187,14 +187,14 @@ class MockRegionDisksConnection MOCK_METHOD( StatusOr, Resize, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::ResizeRequest const& request), (override)); MOCK_METHOD(future>, Resize, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -212,14 +212,14 @@ class MockRegionDisksConnection MOCK_METHOD( StatusOr, SetLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::SetLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -231,14 +231,14 @@ class MockRegionDisksConnection MOCK_METHOD(StatusOr, StartAsyncReplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StartAsyncReplicationRequest const& request), (override)); MOCK_METHOD(future>, StartAsyncReplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -250,14 +250,14 @@ class MockRegionDisksConnection MOCK_METHOD(StatusOr, StopAsyncReplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StopAsyncReplicationRequest const& request), (override)); MOCK_METHOD(future>, StopAsyncReplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -269,14 +269,14 @@ class MockRegionDisksConnection MOCK_METHOD(StatusOr, StopGroupAsyncReplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1:: StopGroupAsyncReplicationRequest const& request), (override)); MOCK_METHOD(future>, StopGroupAsyncReplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -295,14 +295,14 @@ class MockRegionDisksConnection MOCK_METHOD( StatusOr, UpdateDisk, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_disks::v1::UpdateDiskRequest const& request), (override)); MOCK_METHOD(future>, UpdateDisk, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_tracing_connection.cc b/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_tracing_connection.cc index 6ae872acb28e7..846a3f852bf74 100644 --- a/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_tracing_connection.cc +++ b/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_tracing_connection.cc @@ -51,29 +51,28 @@ RegionHealthCheckServicesTracingConnection::DeleteHealthCheckService( StatusOr RegionHealthCheckServicesTracingConnection::DeleteHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: DeleteHealthCheckServiceRequest const& request) { auto span = internal::MakeSpan( "compute_region_health_check_services_v1::" "RegionHealthCheckServicesConnection::DeleteHealthCheckService"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteHealthCheckService( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteHealthCheckService(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> RegionHealthCheckServicesTracingConnection::DeleteHealthCheckService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_health_check_services_v1::" "RegionHealthCheckServicesConnection::DeleteHealthCheckService"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteHealthCheckService( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteHealthCheckService( + ExperimentalTag{}, operation)); } StatusOr @@ -101,29 +100,28 @@ RegionHealthCheckServicesTracingConnection::InsertHealthCheckService( StatusOr RegionHealthCheckServicesTracingConnection::InsertHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: InsertHealthCheckServiceRequest const& request) { auto span = internal::MakeSpan( "compute_region_health_check_services_v1::" "RegionHealthCheckServicesConnection::InsertHealthCheckService"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertHealthCheckService( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InsertHealthCheckService(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> RegionHealthCheckServicesTracingConnection::InsertHealthCheckService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_health_check_services_v1::" "RegionHealthCheckServicesConnection::InsertHealthCheckService"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertHealthCheckService( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertHealthCheckService( + ExperimentalTag{}, operation)); } StreamRange @@ -154,29 +152,28 @@ RegionHealthCheckServicesTracingConnection::PatchHealthCheckService( StatusOr RegionHealthCheckServicesTracingConnection::PatchHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: PatchHealthCheckServiceRequest const& request) { auto span = internal::MakeSpan( "compute_region_health_check_services_v1::" "RegionHealthCheckServicesConnection::PatchHealthCheckService"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchHealthCheckService( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->PatchHealthCheckService(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> RegionHealthCheckServicesTracingConnection::PatchHealthCheckService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_health_check_services_v1::" "RegionHealthCheckServicesConnection::PatchHealthCheckService"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchHealthCheckService( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchHealthCheckService( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_tracing_connection.h b/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_tracing_connection.h index 1f5e8afedcb2e..592d8e0b6a503 100644 --- a/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_tracing_connection.h +++ b/google/cloud/compute/region_health_check_services/v1/internal/region_health_check_services_tracing_connection.h @@ -50,13 +50,13 @@ class RegionHealthCheckServicesTracingConnection DeleteHealthCheckServiceRequest const& request) override; StatusOr DeleteHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: DeleteHealthCheckServiceRequest const& request) override; future> DeleteHealthCheckService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -70,13 +70,13 @@ class RegionHealthCheckServicesTracingConnection InsertHealthCheckServiceRequest const& request) override; StatusOr InsertHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: InsertHealthCheckServiceRequest const& request) override; future> InsertHealthCheckService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -90,13 +90,13 @@ class RegionHealthCheckServicesTracingConnection PatchHealthCheckServiceRequest const& request) override; StatusOr PatchHealthCheckService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: PatchHealthCheckServiceRequest const& request) override; future> PatchHealthCheckService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_health_check_services/v1/mocks/mock_region_health_check_services_connection.h b/google/cloud/compute/region_health_check_services/v1/mocks/mock_region_health_check_services_connection.h index 4247d21e3fde6..73349fc9a86c2 100644 --- a/google/cloud/compute/region_health_check_services/v1/mocks/mock_region_health_check_services_connection.h +++ b/google/cloud/compute/region_health_check_services/v1/mocks/mock_region_health_check_services_connection.h @@ -57,14 +57,14 @@ class MockRegionHealthCheckServicesConnection MOCK_METHOD(StatusOr, DeleteHealthCheckService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: DeleteHealthCheckServiceRequest const& request), (override)); MOCK_METHOD(future>, DeleteHealthCheckService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -82,14 +82,14 @@ class MockRegionHealthCheckServicesConnection MOCK_METHOD(StatusOr, InsertHealthCheckService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: InsertHealthCheckServiceRequest const& request), (override)); MOCK_METHOD(future>, InsertHealthCheckService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -108,14 +108,14 @@ class MockRegionHealthCheckServicesConnection MOCK_METHOD(StatusOr, PatchHealthCheckService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_check_services::v1:: PatchHealthCheckServiceRequest const& request), (override)); MOCK_METHOD(future>, PatchHealthCheckService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.cc b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.cc index 9eac62a4e3600..445f4f65d572b 100644 --- a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.cc +++ b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.cc @@ -49,7 +49,7 @@ RegionHealthChecksTracingConnection::DeleteHealthCheck( StatusOr RegionHealthChecksTracingConnection::DeleteHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: DeleteHealthCheckRequest const& request) { auto span = internal::MakeSpan( @@ -57,21 +57,20 @@ RegionHealthChecksTracingConnection::DeleteHealthCheck( "DeleteHealthCheck"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteHealthCheck(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionHealthChecksTracingConnection::DeleteHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_health_checks_v1::RegionHealthChecksConnection::" "DeleteHealthCheck"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteHealthCheck(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteHealthCheck(ExperimentalTag{}, operation)); } StatusOr @@ -98,7 +97,7 @@ RegionHealthChecksTracingConnection::InsertHealthCheck( StatusOr RegionHealthChecksTracingConnection::InsertHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: InsertHealthCheckRequest const& request) { auto span = internal::MakeSpan( @@ -106,21 +105,20 @@ RegionHealthChecksTracingConnection::InsertHealthCheck( "InsertHealthCheck"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertHealthCheck(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->InsertHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionHealthChecksTracingConnection::InsertHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_health_checks_v1::RegionHealthChecksConnection::" "InsertHealthCheck"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertHealthCheck(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertHealthCheck(ExperimentalTag{}, operation)); } StreamRange @@ -150,7 +148,7 @@ RegionHealthChecksTracingConnection::PatchHealthCheck( StatusOr RegionHealthChecksTracingConnection::PatchHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: PatchHealthCheckRequest const& request) { auto span = internal::MakeSpan( @@ -158,21 +156,20 @@ RegionHealthChecksTracingConnection::PatchHealthCheck( "PatchHealthCheck"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchHealthCheck(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PatchHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionHealthChecksTracingConnection::PatchHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_health_checks_v1::RegionHealthChecksConnection::" "PatchHealthCheck"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->PatchHealthCheck(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->PatchHealthCheck(ExperimentalTag{}, operation)); } future> @@ -188,7 +185,7 @@ RegionHealthChecksTracingConnection::UpdateHealthCheck( StatusOr RegionHealthChecksTracingConnection::UpdateHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: UpdateHealthCheckRequest const& request) { auto span = internal::MakeSpan( @@ -196,21 +193,20 @@ RegionHealthChecksTracingConnection::UpdateHealthCheck( "UpdateHealthCheck"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateHealthCheck(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionHealthChecksTracingConnection::UpdateHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_health_checks_v1::RegionHealthChecksConnection::" "UpdateHealthCheck"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateHealthCheck(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateHealthCheck(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.h b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.h index 5e84715b25a4b..ae3c6532335e0 100644 --- a/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.h +++ b/google/cloud/compute/region_health_checks/v1/internal/region_health_checks_tracing_connection.h @@ -48,13 +48,13 @@ class RegionHealthChecksTracingConnection DeleteHealthCheckRequest const& request) override; StatusOr DeleteHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: DeleteHealthCheckRequest const& request) override; future> DeleteHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetHealthCheck( @@ -66,13 +66,13 @@ class RegionHealthChecksTracingConnection InsertHealthCheckRequest const& request) override; StatusOr InsertHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: InsertHealthCheckRequest const& request) override; future> InsertHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -84,12 +84,12 @@ class RegionHealthChecksTracingConnection PatchHealthCheckRequest const& request) override; StatusOr PatchHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: PatchHealthCheckRequest const& request) override; future> PatchHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -97,13 +97,13 @@ class RegionHealthChecksTracingConnection UpdateHealthCheckRequest const& request) override; StatusOr UpdateHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: UpdateHealthCheckRequest const& request) override; future> UpdateHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_health_checks/v1/mocks/mock_region_health_checks_connection.h b/google/cloud/compute/region_health_checks/v1/mocks/mock_region_health_checks_connection.h index 0f4c9f9fd0c93..de1632bfd2a15 100644 --- a/google/cloud/compute/region_health_checks/v1/mocks/mock_region_health_checks_connection.h +++ b/google/cloud/compute/region_health_checks/v1/mocks/mock_region_health_checks_connection.h @@ -56,14 +56,14 @@ class MockRegionHealthChecksConnection MOCK_METHOD(StatusOr, DeleteHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: DeleteHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, DeleteHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -81,14 +81,14 @@ class MockRegionHealthChecksConnection MOCK_METHOD(StatusOr, InsertHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: InsertHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, InsertHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -106,14 +106,14 @@ class MockRegionHealthChecksConnection MOCK_METHOD(StatusOr, PatchHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: PatchHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, PatchHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -125,14 +125,14 @@ class MockRegionHealthChecksConnection MOCK_METHOD(StatusOr, UpdateHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_health_checks::v1:: UpdateHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, UpdateHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_tracing_connection.cc b/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_tracing_connection.cc index 344517b358c0a..6d0d8684cb876 100644 --- a/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_tracing_connection.cc +++ b/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_tracing_connection.cc @@ -50,7 +50,7 @@ RegionInstanceGroupManagersTracingConnection::AbandonInstances( StatusOr RegionInstanceGroupManagersTracingConnection::AbandonInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: AbandonInstancesRequest const& request) { auto span = internal::MakeSpan( @@ -58,21 +58,20 @@ RegionInstanceGroupManagersTracingConnection::AbandonInstances( "RegionInstanceGroupManagersConnection::AbandonInstances"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AbandonInstances(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->AbandonInstances(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionInstanceGroupManagersTracingConnection::AbandonInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::AbandonInstances"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->AbandonInstances(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->AbandonInstances(ExperimentalTag{}, operation)); } future> @@ -89,29 +88,28 @@ RegionInstanceGroupManagersTracingConnection::ApplyUpdatesToInstances( StatusOr RegionInstanceGroupManagersTracingConnection::ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::ApplyUpdatesToInstances"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ApplyUpdatesToInstances( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->ApplyUpdatesToInstances(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> RegionInstanceGroupManagersTracingConnection::ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::ApplyUpdatesToInstances"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ApplyUpdatesToInstances( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ApplyUpdatesToInstances( + ExperimentalTag{}, operation)); } future> @@ -127,7 +125,7 @@ RegionInstanceGroupManagersTracingConnection::CreateInstances( StatusOr RegionInstanceGroupManagersTracingConnection::CreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: CreateInstancesRequest const& request) { auto span = internal::MakeSpan( @@ -135,21 +133,19 @@ RegionInstanceGroupManagersTracingConnection::CreateInstances( "RegionInstanceGroupManagersConnection::CreateInstances"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateInstances(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateInstances(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionInstanceGroupManagersTracingConnection::CreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::CreateInstances"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateInstances(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateInstances(ExperimentalTag{}, operation)); } future> @@ -166,29 +162,28 @@ RegionInstanceGroupManagersTracingConnection::DeleteInstanceGroupManager( StatusOr RegionInstanceGroupManagersTracingConnection::DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::DeleteInstanceGroupManager"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteInstanceGroupManager( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteInstanceGroupManager(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> RegionInstanceGroupManagersTracingConnection::DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::DeleteInstanceGroupManager"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteInstanceGroupManager( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteInstanceGroupManager( + ExperimentalTag{}, operation)); } future> @@ -204,7 +199,7 @@ RegionInstanceGroupManagersTracingConnection::DeleteInstances( StatusOr RegionInstanceGroupManagersTracingConnection::DeleteInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstancesRequest const& request) { auto span = internal::MakeSpan( @@ -212,21 +207,19 @@ RegionInstanceGroupManagersTracingConnection::DeleteInstances( "RegionInstanceGroupManagersConnection::DeleteInstances"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteInstances(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteInstances(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionInstanceGroupManagersTracingConnection::DeleteInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::DeleteInstances"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteInstances(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteInstances(ExperimentalTag{}, operation)); } future> @@ -243,29 +236,28 @@ RegionInstanceGroupManagersTracingConnection::DeletePerInstanceConfigs( StatusOr RegionInstanceGroupManagersTracingConnection::DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::DeletePerInstanceConfigs"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeletePerInstanceConfigs( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeletePerInstanceConfigs(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> RegionInstanceGroupManagersTracingConnection::DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::DeletePerInstanceConfigs"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeletePerInstanceConfigs( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeletePerInstanceConfigs( + ExperimentalTag{}, operation)); } StatusOr @@ -293,29 +285,28 @@ RegionInstanceGroupManagersTracingConnection::InsertInstanceGroupManager( StatusOr RegionInstanceGroupManagersTracingConnection::InsertInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::InsertInstanceGroupManager"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertInstanceGroupManager( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InsertInstanceGroupManager(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> RegionInstanceGroupManagersTracingConnection::InsertInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::InsertInstanceGroupManager"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertInstanceGroupManager( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertInstanceGroupManager( + ExperimentalTag{}, operation)); } StreamRange @@ -386,29 +377,28 @@ RegionInstanceGroupManagersTracingConnection::PatchInstanceGroupManager( StatusOr RegionInstanceGroupManagersTracingConnection::PatchInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::PatchInstanceGroupManager"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchInstanceGroupManager( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->PatchInstanceGroupManager(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> RegionInstanceGroupManagersTracingConnection::PatchInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::PatchInstanceGroupManager"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchInstanceGroupManager( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchInstanceGroupManager( + ExperimentalTag{}, operation)); } future> @@ -425,29 +415,28 @@ RegionInstanceGroupManagersTracingConnection::PatchPerInstanceConfigs( StatusOr RegionInstanceGroupManagersTracingConnection::PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::PatchPerInstanceConfigs"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchPerInstanceConfigs( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->PatchPerInstanceConfigs(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> RegionInstanceGroupManagersTracingConnection::PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::PatchPerInstanceConfigs"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchPerInstanceConfigs( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchPerInstanceConfigs( + ExperimentalTag{}, operation)); } future> @@ -463,7 +452,7 @@ RegionInstanceGroupManagersTracingConnection::RecreateInstances( StatusOr RegionInstanceGroupManagersTracingConnection::RecreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: RecreateInstancesRequest const& request) { auto span = internal::MakeSpan( @@ -471,21 +460,20 @@ RegionInstanceGroupManagersTracingConnection::RecreateInstances( "RegionInstanceGroupManagersConnection::RecreateInstances"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RecreateInstances(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->RecreateInstances(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionInstanceGroupManagersTracingConnection::RecreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::RecreateInstances"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RecreateInstances(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RecreateInstances(ExperimentalTag{}, operation)); } future> @@ -501,7 +489,7 @@ RegionInstanceGroupManagersTracingConnection::Resize( StatusOr RegionInstanceGroupManagersTracingConnection::Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: ResizeRequest const& request) { auto span = internal::MakeSpan( @@ -509,21 +497,19 @@ RegionInstanceGroupManagersTracingConnection::Resize( "RegionInstanceGroupManagersConnection::Resize"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->Resize(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->Resize(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionInstanceGroupManagersTracingConnection::Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::Resize"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Resize(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Resize(ExperimentalTag{}, operation)); } future> @@ -540,7 +526,7 @@ RegionInstanceGroupManagersTracingConnection::SetInstanceTemplate( StatusOr RegionInstanceGroupManagersTracingConnection::SetInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: SetInstanceTemplateRequest const& request) { auto span = internal::MakeSpan( @@ -548,21 +534,20 @@ RegionInstanceGroupManagersTracingConnection::SetInstanceTemplate( "RegionInstanceGroupManagersConnection::SetInstanceTemplate"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetInstanceTemplate(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetInstanceTemplate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionInstanceGroupManagersTracingConnection::SetInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::SetInstanceTemplate"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetInstanceTemplate(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetInstanceTemplate( + ExperimentalTag{}, operation)); } future> @@ -578,7 +563,7 @@ RegionInstanceGroupManagersTracingConnection::SetTargetPools( StatusOr RegionInstanceGroupManagersTracingConnection::SetTargetPools( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: SetTargetPoolsRequest const& request) { auto span = internal::MakeSpan( @@ -586,21 +571,19 @@ RegionInstanceGroupManagersTracingConnection::SetTargetPools( "RegionInstanceGroupManagersConnection::SetTargetPools"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetTargetPools(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetTargetPools(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionInstanceGroupManagersTracingConnection::SetTargetPools( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::SetTargetPools"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetTargetPools(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetTargetPools(ExperimentalTag{}, operation)); } future> @@ -617,29 +600,28 @@ RegionInstanceGroupManagersTracingConnection::UpdatePerInstanceConfigs( StatusOr RegionInstanceGroupManagersTracingConnection::UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::UpdatePerInstanceConfigs"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdatePerInstanceConfigs(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> RegionInstanceGroupManagersTracingConnection::UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_group_managers_v1::" "RegionInstanceGroupManagersConnection::UpdatePerInstanceConfigs"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdatePerInstanceConfigs( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_tracing_connection.h b/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_tracing_connection.h index d015306e1dfd0..607b8820d7ca5 100644 --- a/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_tracing_connection.h +++ b/google/cloud/compute/region_instance_group_managers/v1/internal/region_instance_group_managers_tracing_connection.h @@ -49,12 +49,12 @@ class RegionInstanceGroupManagersTracingConnection AbandonInstancesRequest const& request) override; StatusOr AbandonInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: AbandonInstancesRequest const& request) override; future> AbandonInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -63,13 +63,13 @@ class RegionInstanceGroupManagersTracingConnection ApplyUpdatesToInstancesRequest const& request) override; StatusOr ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request) override; future> ApplyUpdatesToInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> CreateInstances( @@ -77,12 +77,12 @@ class RegionInstanceGroupManagersTracingConnection CreateInstancesRequest const& request) override; StatusOr CreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: CreateInstancesRequest const& request) override; future> CreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -92,13 +92,13 @@ class RegionInstanceGroupManagersTracingConnection StatusOr DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request) override; future> DeleteInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> DeleteInstances( @@ -106,12 +106,12 @@ class RegionInstanceGroupManagersTracingConnection DeleteInstancesRequest const& request) override; StatusOr DeleteInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstancesRequest const& request) override; future> DeleteInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -120,13 +120,13 @@ class RegionInstanceGroupManagersTracingConnection DeletePerInstanceConfigsRequest const& request) override; StatusOr DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request) override; future> DeletePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -141,13 +141,13 @@ class RegionInstanceGroupManagersTracingConnection StatusOr InsertInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request) override; future> InsertInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -177,13 +177,13 @@ class RegionInstanceGroupManagersTracingConnection StatusOr PatchInstanceGroupManager( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request) override; future> PatchInstanceGroupManager( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -192,13 +192,13 @@ class RegionInstanceGroupManagersTracingConnection PatchPerInstanceConfigsRequest const& request) override; StatusOr PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request) override; future> PatchPerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -207,13 +207,13 @@ class RegionInstanceGroupManagersTracingConnection RecreateInstancesRequest const& request) override; StatusOr RecreateInstances( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: RecreateInstancesRequest const& request) override; future> RecreateInstances( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> Resize( @@ -221,12 +221,12 @@ class RegionInstanceGroupManagersTracingConnection ResizeRequest const& request) override; StatusOr Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: ResizeRequest const& request) override; future> Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -235,13 +235,13 @@ class RegionInstanceGroupManagersTracingConnection SetInstanceTemplateRequest const& request) override; StatusOr SetInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: SetInstanceTemplateRequest const& request) override; future> SetInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetTargetPools( @@ -249,12 +249,12 @@ class RegionInstanceGroupManagersTracingConnection SetTargetPoolsRequest const& request) override; StatusOr SetTargetPools( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: SetTargetPoolsRequest const& request) override; future> SetTargetPools( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -263,13 +263,13 @@ class RegionInstanceGroupManagersTracingConnection UpdatePerInstanceConfigsRequest const& request) override; StatusOr UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request) override; future> UpdatePerInstanceConfigs( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_instance_group_managers/v1/mocks/mock_region_instance_group_managers_connection.h b/google/cloud/compute/region_instance_group_managers/v1/mocks/mock_region_instance_group_managers_connection.h index 3930fb2870766..09a616abd3877 100644 --- a/google/cloud/compute/region_instance_group_managers/v1/mocks/mock_region_instance_group_managers_connection.h +++ b/google/cloud/compute/region_instance_group_managers/v1/mocks/mock_region_instance_group_managers_connection.h @@ -57,14 +57,14 @@ class MockRegionInstanceGroupManagersConnection MOCK_METHOD(StatusOr, AbandonInstances, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: AbandonInstancesRequest const& request), (override)); MOCK_METHOD(future>, AbandonInstances, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -76,14 +76,14 @@ class MockRegionInstanceGroupManagersConnection MOCK_METHOD(StatusOr, ApplyUpdatesToInstances, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: ApplyUpdatesToInstancesRequest const& request), (override)); MOCK_METHOD(future>, ApplyUpdatesToInstances, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -95,14 +95,14 @@ class MockRegionInstanceGroupManagersConnection MOCK_METHOD(StatusOr, CreateInstances, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: CreateInstancesRequest const& request), (override)); MOCK_METHOD(future>, CreateInstances, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -114,14 +114,14 @@ class MockRegionInstanceGroupManagersConnection MOCK_METHOD(StatusOr, DeleteInstanceGroupManager, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstanceGroupManagerRequest const& request), (override)); MOCK_METHOD(future>, DeleteInstanceGroupManager, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -133,14 +133,14 @@ class MockRegionInstanceGroupManagersConnection MOCK_METHOD(StatusOr, DeleteInstances, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeleteInstancesRequest const& request), (override)); MOCK_METHOD(future>, DeleteInstances, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -152,14 +152,14 @@ class MockRegionInstanceGroupManagersConnection MOCK_METHOD(StatusOr, DeletePerInstanceConfigs, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: DeletePerInstanceConfigsRequest const& request), (override)); MOCK_METHOD(future>, DeletePerInstanceConfigs, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -177,14 +177,14 @@ class MockRegionInstanceGroupManagersConnection MOCK_METHOD(StatusOr, InsertInstanceGroupManager, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: InsertInstanceGroupManagerRequest const& request), (override)); MOCK_METHOD(future>, InsertInstanceGroupManager, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -223,14 +223,14 @@ class MockRegionInstanceGroupManagersConnection MOCK_METHOD(StatusOr, PatchInstanceGroupManager, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchInstanceGroupManagerRequest const& request), (override)); MOCK_METHOD(future>, PatchInstanceGroupManager, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -242,14 +242,14 @@ class MockRegionInstanceGroupManagersConnection MOCK_METHOD(StatusOr, PatchPerInstanceConfigs, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: PatchPerInstanceConfigsRequest const& request), (override)); MOCK_METHOD(future>, PatchPerInstanceConfigs, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -261,14 +261,14 @@ class MockRegionInstanceGroupManagersConnection MOCK_METHOD(StatusOr, RecreateInstances, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: RecreateInstancesRequest const& request), (override)); MOCK_METHOD(future>, RecreateInstances, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -279,14 +279,14 @@ class MockRegionInstanceGroupManagersConnection (override)); MOCK_METHOD(StatusOr, Resize, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: ResizeRequest const& request), (override)); MOCK_METHOD(future>, Resize, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -298,14 +298,14 @@ class MockRegionInstanceGroupManagersConnection MOCK_METHOD(StatusOr, SetInstanceTemplate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: SetInstanceTemplateRequest const& request), (override)); MOCK_METHOD(future>, SetInstanceTemplate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -317,14 +317,14 @@ class MockRegionInstanceGroupManagersConnection MOCK_METHOD(StatusOr, SetTargetPools, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: SetTargetPoolsRequest const& request), (override)); MOCK_METHOD(future>, SetTargetPools, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -336,14 +336,14 @@ class MockRegionInstanceGroupManagersConnection MOCK_METHOD(StatusOr, UpdatePerInstanceConfigs, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_group_managers::v1:: UpdatePerInstanceConfigsRequest const& request), (override)); MOCK_METHOD(future>, UpdatePerInstanceConfigs, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.cc b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.cc index abc20b19023ea..8e37fabd3e369 100644 --- a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.cc +++ b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.cc @@ -88,7 +88,7 @@ RegionInstanceGroupsTracingConnection::SetNamedPorts( StatusOr RegionInstanceGroupsTracingConnection::SetNamedPorts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_groups::v1:: SetNamedPortsRequest const& request) { auto span = internal::MakeSpan( @@ -96,21 +96,19 @@ RegionInstanceGroupsTracingConnection::SetNamedPorts( "SetNamedPorts"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetNamedPorts(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetNamedPorts(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionInstanceGroupsTracingConnection::SetNamedPorts( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_groups_v1::RegionInstanceGroupsConnection::" "SetNamedPorts"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetNamedPorts(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetNamedPorts(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.h b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.h index 89cd856368ab7..d818c99429633 100644 --- a/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.h +++ b/google/cloud/compute/region_instance_groups/v1/internal/region_instance_groups_tracing_connection.h @@ -61,12 +61,12 @@ class RegionInstanceGroupsTracingConnection SetNamedPortsRequest const& request) override; StatusOr SetNamedPorts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_groups::v1:: SetNamedPortsRequest const& request) override; future> SetNamedPorts( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_instance_groups/v1/mocks/mock_region_instance_groups_connection.h b/google/cloud/compute/region_instance_groups/v1/mocks/mock_region_instance_groups_connection.h index 54049e7077597..0a37f0a6bb4b5 100644 --- a/google/cloud/compute/region_instance_groups/v1/mocks/mock_region_instance_groups_connection.h +++ b/google/cloud/compute/region_instance_groups/v1/mocks/mock_region_instance_groups_connection.h @@ -75,14 +75,14 @@ class MockRegionInstanceGroupsConnection MOCK_METHOD(StatusOr, SetNamedPorts, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_groups::v1:: SetNamedPortsRequest const& request), (override)); MOCK_METHOD(future>, SetNamedPorts, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.cc b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.cc index fb82c4095a6ed..09da0120879ec 100644 --- a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.cc +++ b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.cc @@ -51,29 +51,28 @@ RegionInstanceTemplatesTracingConnection::DeleteInstanceTemplate( StatusOr RegionInstanceTemplatesTracingConnection::DeleteInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_templates::v1:: DeleteInstanceTemplateRequest const& request) { auto span = internal::MakeSpan( "compute_region_instance_templates_v1::RegionInstanceTemplatesConnection:" ":DeleteInstanceTemplate"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteInstanceTemplate( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteInstanceTemplate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionInstanceTemplatesTracingConnection::DeleteInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_templates_v1::RegionInstanceTemplatesConnection:" ":DeleteInstanceTemplate"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteInstanceTemplate( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteInstanceTemplate( + ExperimentalTag{}, operation)); } StatusOr @@ -101,29 +100,28 @@ RegionInstanceTemplatesTracingConnection::InsertInstanceTemplate( StatusOr RegionInstanceTemplatesTracingConnection::InsertInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_templates::v1:: InsertInstanceTemplateRequest const& request) { auto span = internal::MakeSpan( "compute_region_instance_templates_v1::RegionInstanceTemplatesConnection:" ":InsertInstanceTemplate"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertInstanceTemplate( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertInstanceTemplate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionInstanceTemplatesTracingConnection::InsertInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instance_templates_v1::RegionInstanceTemplatesConnection:" ":InsertInstanceTemplate"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertInstanceTemplate( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertInstanceTemplate( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.h b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.h index 59404763c1dba..4d211b6042021 100644 --- a/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.h +++ b/google/cloud/compute/region_instance_templates/v1/internal/region_instance_templates_tracing_connection.h @@ -50,13 +50,13 @@ class RegionInstanceTemplatesTracingConnection DeleteInstanceTemplateRequest const& request) override; StatusOr DeleteInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_templates::v1:: DeleteInstanceTemplateRequest const& request) override; future> DeleteInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -70,13 +70,13 @@ class RegionInstanceTemplatesTracingConnection InsertInstanceTemplateRequest const& request) override; StatusOr InsertInstanceTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_templates::v1:: InsertInstanceTemplateRequest const& request) override; future> InsertInstanceTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/region_instance_templates/v1/mocks/mock_region_instance_templates_connection.h b/google/cloud/compute/region_instance_templates/v1/mocks/mock_region_instance_templates_connection.h index eb39a51247448..54944bee7f2c1 100644 --- a/google/cloud/compute/region_instance_templates/v1/mocks/mock_region_instance_templates_connection.h +++ b/google/cloud/compute/region_instance_templates/v1/mocks/mock_region_instance_templates_connection.h @@ -57,14 +57,14 @@ class MockRegionInstanceTemplatesConnection MOCK_METHOD(StatusOr, DeleteInstanceTemplate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_templates::v1:: DeleteInstanceTemplateRequest const& request), (override)); MOCK_METHOD(future>, DeleteInstanceTemplate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -82,14 +82,14 @@ class MockRegionInstanceTemplatesConnection MOCK_METHOD(StatusOr, InsertInstanceTemplate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instance_templates::v1:: InsertInstanceTemplateRequest const& request), (override)); MOCK_METHOD(future>, InsertInstanceTemplate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.cc b/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.cc index f8d1607663ff6..e11c00bb8aa94 100644 --- a/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.cc +++ b/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.cc @@ -45,27 +45,25 @@ RegionInstancesTracingConnection::BulkInsert( StatusOr RegionInstancesTracingConnection::BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instances::v1::BulkInsertRequest const& request) { auto span = internal::MakeSpan( "compute_region_instances_v1::RegionInstancesConnection::BulkInsert"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BulkInsert(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->BulkInsert(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionInstancesTracingConnection::BulkInsert( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_instances_v1::RegionInstancesConnection::BulkInsert"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->BulkInsert(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->BulkInsert(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.h b/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.h index 8b55f01f5f320..19eafe79bce6a 100644 --- a/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.h +++ b/google/cloud/compute/region_instances/v1/internal/region_instances_tracing_connection.h @@ -46,12 +46,12 @@ class RegionInstancesTracingConnection BulkInsertRequest const& request) override; StatusOr BulkInsert( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instances::v1:: BulkInsertRequest const& request) override; future> BulkInsert( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_instances/v1/mocks/mock_region_instances_connection.h b/google/cloud/compute/region_instances/v1/mocks/mock_region_instances_connection.h index 8a7603e83740e..5d7c35860359b 100644 --- a/google/cloud/compute/region_instances/v1/mocks/mock_region_instances_connection.h +++ b/google/cloud/compute/region_instances/v1/mocks/mock_region_instances_connection.h @@ -54,14 +54,14 @@ class MockRegionInstancesConnection (override)); MOCK_METHOD(StatusOr, BulkInsert, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_instances::v1:: BulkInsertRequest const& request), (override)); MOCK_METHOD(future>, BulkInsert, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.cc b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.cc index 4e8382661547d..32c6eb645cf56 100644 --- a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.cc +++ b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.cc @@ -51,29 +51,28 @@ RegionNetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( StatusOr RegionNetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) { auto span = internal::MakeSpan( "compute_region_network_endpoint_groups_v1::" "RegionNetworkEndpointGroupsConnection::AttachNetworkEndpoints"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->AttachNetworkEndpoints( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->AttachNetworkEndpoints(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionNetworkEndpointGroupsTracingConnection::AttachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_network_endpoint_groups_v1::" "RegionNetworkEndpointGroupsConnection::AttachNetworkEndpoints"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->AttachNetworkEndpoints( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->AttachNetworkEndpoints( + ExperimentalTag{}, operation)); } future> @@ -90,29 +89,28 @@ RegionNetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( StatusOr RegionNetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) { auto span = internal::MakeSpan( "compute_region_network_endpoint_groups_v1::" "RegionNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteNetworkEndpointGroup(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> RegionNetworkEndpointGroupsTracingConnection::DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_network_endpoint_groups_v1::" "RegionNetworkEndpointGroupsConnection::DeleteNetworkEndpointGroup"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteNetworkEndpointGroup( + ExperimentalTag{}, operation)); } future> @@ -129,29 +127,28 @@ RegionNetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( StatusOr RegionNetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) { auto span = internal::MakeSpan( "compute_region_network_endpoint_groups_v1::" "RegionNetworkEndpointGroupsConnection::DetachNetworkEndpoints"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DetachNetworkEndpoints( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DetachNetworkEndpoints(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionNetworkEndpointGroupsTracingConnection::DetachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_network_endpoint_groups_v1::" "RegionNetworkEndpointGroupsConnection::DetachNetworkEndpoints"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DetachNetworkEndpoints( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DetachNetworkEndpoints( + ExperimentalTag{}, operation)); } StatusOr @@ -179,29 +176,28 @@ RegionNetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( StatusOr RegionNetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) { auto span = internal::MakeSpan( "compute_region_network_endpoint_groups_v1::" "RegionNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InsertNetworkEndpointGroup(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> RegionNetworkEndpointGroupsTracingConnection::InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_network_endpoint_groups_v1::" "RegionNetworkEndpointGroupsConnection::InsertNetworkEndpointGroup"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertNetworkEndpointGroup( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.h b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.h index 034c329f1f20f..804804f9fa06b 100644 --- a/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.h +++ b/google/cloud/compute/region_network_endpoint_groups/v1/internal/region_network_endpoint_groups_tracing_connection.h @@ -50,13 +50,13 @@ class RegionNetworkEndpointGroupsTracingConnection AttachNetworkEndpointsRequest const& request) override; StatusOr AttachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request) override; future> AttachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -66,13 +66,13 @@ class RegionNetworkEndpointGroupsTracingConnection StatusOr DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request) override; future> DeleteNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -81,13 +81,13 @@ class RegionNetworkEndpointGroupsTracingConnection DetachNetworkEndpointsRequest const& request) override; StatusOr DetachNetworkEndpoints( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request) override; future> DetachNetworkEndpoints( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -102,13 +102,13 @@ class RegionNetworkEndpointGroupsTracingConnection StatusOr InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request) override; future> InsertNetworkEndpointGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/region_network_endpoint_groups/v1/mocks/mock_region_network_endpoint_groups_connection.h b/google/cloud/compute/region_network_endpoint_groups/v1/mocks/mock_region_network_endpoint_groups_connection.h index 63e2951fee316..a973cf394b3b3 100644 --- a/google/cloud/compute/region_network_endpoint_groups/v1/mocks/mock_region_network_endpoint_groups_connection.h +++ b/google/cloud/compute/region_network_endpoint_groups/v1/mocks/mock_region_network_endpoint_groups_connection.h @@ -57,14 +57,14 @@ class MockRegionNetworkEndpointGroupsConnection MOCK_METHOD(StatusOr, AttachNetworkEndpoints, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: AttachNetworkEndpointsRequest const& request), (override)); MOCK_METHOD(future>, AttachNetworkEndpoints, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -76,14 +76,14 @@ class MockRegionNetworkEndpointGroupsConnection MOCK_METHOD(StatusOr, DeleteNetworkEndpointGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DeleteNetworkEndpointGroupRequest const& request), (override)); MOCK_METHOD(future>, DeleteNetworkEndpointGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -95,14 +95,14 @@ class MockRegionNetworkEndpointGroupsConnection MOCK_METHOD(StatusOr, DetachNetworkEndpoints, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: DetachNetworkEndpointsRequest const& request), (override)); MOCK_METHOD(future>, DetachNetworkEndpoints, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -120,14 +120,14 @@ class MockRegionNetworkEndpointGroupsConnection MOCK_METHOD(StatusOr, InsertNetworkEndpointGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_endpoint_groups::v1:: InsertNetworkEndpointGroupRequest const& request), (override)); MOCK_METHOD(future>, InsertNetworkEndpointGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.cc b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.cc index 36b2a82501c3c..0bf527396aba4 100644 --- a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.cc +++ b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.cc @@ -50,7 +50,7 @@ RegionNetworkFirewallPoliciesTracingConnection::AddAssociation( StatusOr RegionNetworkFirewallPoliciesTracingConnection::AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddAssociationRequest const& request) { auto span = internal::MakeSpan( @@ -58,21 +58,19 @@ RegionNetworkFirewallPoliciesTracingConnection::AddAssociation( "RegionNetworkFirewallPoliciesConnection::AddAssociation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddAssociation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddAssociation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionNetworkFirewallPoliciesTracingConnection::AddAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::AddAssociation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->AddAssociation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->AddAssociation(ExperimentalTag{}, operation)); } future> @@ -88,7 +86,7 @@ RegionNetworkFirewallPoliciesTracingConnection::AddRule( StatusOr RegionNetworkFirewallPoliciesTracingConnection::AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddRuleRequest const& request) { auto span = internal::MakeSpan( @@ -96,21 +94,19 @@ RegionNetworkFirewallPoliciesTracingConnection::AddRule( "RegionNetworkFirewallPoliciesConnection::AddRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionNetworkFirewallPoliciesTracingConnection::AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::AddRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AddRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->AddRule(ExperimentalTag{}, operation)); } future> @@ -126,7 +122,7 @@ RegionNetworkFirewallPoliciesTracingConnection::CloneRules( StatusOr RegionNetworkFirewallPoliciesTracingConnection::CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: CloneRulesRequest const& request) { auto span = internal::MakeSpan( @@ -134,21 +130,19 @@ RegionNetworkFirewallPoliciesTracingConnection::CloneRules( "RegionNetworkFirewallPoliciesConnection::CloneRules"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CloneRules(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CloneRules(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionNetworkFirewallPoliciesTracingConnection::CloneRules( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::CloneRules"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CloneRules(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CloneRules(ExperimentalTag{}, operation)); } future> @@ -165,29 +159,28 @@ RegionNetworkFirewallPoliciesTracingConnection::DeleteFirewallPolicy( StatusOr RegionNetworkFirewallPoliciesTracingConnection::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::DeleteFirewallPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteFirewallPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteFirewallPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionNetworkFirewallPoliciesTracingConnection::DeleteFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::DeleteFirewallPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteFirewallPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteFirewallPolicy( + ExperimentalTag{}, operation)); } StatusOr @@ -260,29 +253,28 @@ RegionNetworkFirewallPoliciesTracingConnection::InsertFirewallPolicy( StatusOr RegionNetworkFirewallPoliciesTracingConnection::InsertFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: InsertFirewallPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::InsertFirewallPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertFirewallPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertFirewallPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionNetworkFirewallPoliciesTracingConnection::InsertFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::InsertFirewallPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertFirewallPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertFirewallPolicy( + ExperimentalTag{}, operation)); } StreamRange @@ -315,7 +307,7 @@ RegionNetworkFirewallPoliciesTracingConnection::PatchFirewallPolicy( StatusOr RegionNetworkFirewallPoliciesTracingConnection::PatchFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchFirewallPolicyRequest const& request) { auto span = internal::MakeSpan( @@ -323,21 +315,20 @@ RegionNetworkFirewallPoliciesTracingConnection::PatchFirewallPolicy( "RegionNetworkFirewallPoliciesConnection::PatchFirewallPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchFirewallPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PatchFirewallPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionNetworkFirewallPoliciesTracingConnection::PatchFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::PatchFirewallPolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchFirewallPolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchFirewallPolicy( + ExperimentalTag{}, operation)); } future> @@ -353,7 +344,7 @@ RegionNetworkFirewallPoliciesTracingConnection::PatchRule( StatusOr RegionNetworkFirewallPoliciesTracingConnection::PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchRuleRequest const& request) { auto span = internal::MakeSpan( @@ -361,21 +352,19 @@ RegionNetworkFirewallPoliciesTracingConnection::PatchRule( "RegionNetworkFirewallPoliciesConnection::PatchRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionNetworkFirewallPoliciesTracingConnection::PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::PatchRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->PatchRule(ExperimentalTag{}, operation)); } future> @@ -391,7 +380,7 @@ RegionNetworkFirewallPoliciesTracingConnection::RemoveAssociation( StatusOr RegionNetworkFirewallPoliciesTracingConnection::RemoveAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveAssociationRequest const& request) { auto span = internal::MakeSpan( @@ -399,21 +388,20 @@ RegionNetworkFirewallPoliciesTracingConnection::RemoveAssociation( "RegionNetworkFirewallPoliciesConnection::RemoveAssociation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RemoveAssociation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->RemoveAssociation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionNetworkFirewallPoliciesTracingConnection::RemoveAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::RemoveAssociation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RemoveAssociation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RemoveAssociation(ExperimentalTag{}, operation)); } future> @@ -429,7 +417,7 @@ RegionNetworkFirewallPoliciesTracingConnection::RemoveRule( StatusOr RegionNetworkFirewallPoliciesTracingConnection::RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveRuleRequest const& request) { auto span = internal::MakeSpan( @@ -437,21 +425,19 @@ RegionNetworkFirewallPoliciesTracingConnection::RemoveRule( "RegionNetworkFirewallPoliciesConnection::RemoveRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RemoveRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RemoveRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionNetworkFirewallPoliciesTracingConnection::RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_network_firewall_policies_v1::" "RegionNetworkFirewallPoliciesConnection::RemoveRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RemoveRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RemoveRule(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.h b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.h index 3f05d6f74a037..4af683d7dfc31 100644 --- a/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.h +++ b/google/cloud/compute/region_network_firewall_policies/v1/internal/region_network_firewall_policies_tracing_connection.h @@ -49,12 +49,12 @@ class RegionNetworkFirewallPoliciesTracingConnection AddAssociationRequest const& request) override; StatusOr AddAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddAssociationRequest const& request) override; future> AddAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> AddRule( @@ -62,12 +62,12 @@ class RegionNetworkFirewallPoliciesTracingConnection AddRuleRequest const& request) override; StatusOr AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: AddRuleRequest const& request) override; future> AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> CloneRules( @@ -75,12 +75,12 @@ class RegionNetworkFirewallPoliciesTracingConnection CloneRulesRequest const& request) override; StatusOr CloneRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: CloneRulesRequest const& request) override; future> CloneRules( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -89,13 +89,13 @@ class RegionNetworkFirewallPoliciesTracingConnection DeleteFirewallPolicyRequest const& request) override; StatusOr DeleteFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: DeleteFirewallPolicyRequest const& request) override; future> DeleteFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetFirewallPolicy( @@ -126,13 +126,13 @@ class RegionNetworkFirewallPoliciesTracingConnection InsertFirewallPolicyRequest const& request) override; StatusOr InsertFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: InsertFirewallPolicyRequest const& request) override; future> InsertFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -146,13 +146,13 @@ class RegionNetworkFirewallPoliciesTracingConnection PatchFirewallPolicyRequest const& request) override; StatusOr PatchFirewallPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchFirewallPolicyRequest const& request) override; future> PatchFirewallPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> PatchRule( @@ -160,12 +160,12 @@ class RegionNetworkFirewallPoliciesTracingConnection PatchRuleRequest const& request) override; StatusOr PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: PatchRuleRequest const& request) override; future> PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -174,13 +174,13 @@ class RegionNetworkFirewallPoliciesTracingConnection RemoveAssociationRequest const& request) override; StatusOr RemoveAssociation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveAssociationRequest const& request) override; future> RemoveAssociation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> RemoveRule( @@ -188,12 +188,12 @@ class RegionNetworkFirewallPoliciesTracingConnection RemoveRuleRequest const& request) override; StatusOr RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies::v1:: RemoveRuleRequest const& request) override; future> RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( diff --git a/google/cloud/compute/region_network_firewall_policies/v1/mocks/mock_region_network_firewall_policies_connection.h b/google/cloud/compute/region_network_firewall_policies/v1/mocks/mock_region_network_firewall_policies_connection.h index 5353d64421210..06cb561b5959f 100644 --- a/google/cloud/compute/region_network_firewall_policies/v1/mocks/mock_region_network_firewall_policies_connection.h +++ b/google/cloud/compute/region_network_firewall_policies/v1/mocks/mock_region_network_firewall_policies_connection.h @@ -57,14 +57,14 @@ class MockRegionNetworkFirewallPoliciesConnection MOCK_METHOD(StatusOr, AddAssociation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies:: v1::AddAssociationRequest const& request), (override)); MOCK_METHOD(future>, AddAssociation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -75,14 +75,14 @@ class MockRegionNetworkFirewallPoliciesConnection (override)); MOCK_METHOD(StatusOr, AddRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies:: v1::AddRuleRequest const& request), (override)); MOCK_METHOD(future>, AddRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -93,14 +93,14 @@ class MockRegionNetworkFirewallPoliciesConnection (override)); MOCK_METHOD(StatusOr, CloneRules, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies:: v1::CloneRulesRequest const& request), (override)); MOCK_METHOD(future>, CloneRules, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -112,14 +112,14 @@ class MockRegionNetworkFirewallPoliciesConnection MOCK_METHOD(StatusOr, DeleteFirewallPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies:: v1::DeleteFirewallPolicyRequest const& request), (override)); MOCK_METHOD(future>, DeleteFirewallPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -163,14 +163,14 @@ class MockRegionNetworkFirewallPoliciesConnection MOCK_METHOD(StatusOr, InsertFirewallPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies:: v1::InsertFirewallPolicyRequest const& request), (override)); MOCK_METHOD(future>, InsertFirewallPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -188,14 +188,14 @@ class MockRegionNetworkFirewallPoliciesConnection MOCK_METHOD(StatusOr, PatchFirewallPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies:: v1::PatchFirewallPolicyRequest const& request), (override)); MOCK_METHOD(future>, PatchFirewallPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -206,14 +206,14 @@ class MockRegionNetworkFirewallPoliciesConnection (override)); MOCK_METHOD(StatusOr, PatchRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies:: v1::PatchRuleRequest const& request), (override)); MOCK_METHOD(future>, PatchRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -225,14 +225,14 @@ class MockRegionNetworkFirewallPoliciesConnection MOCK_METHOD(StatusOr, RemoveAssociation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies:: v1::RemoveAssociationRequest const& request), (override)); MOCK_METHOD(future>, RemoveAssociation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -243,14 +243,14 @@ class MockRegionNetworkFirewallPoliciesConnection (override)); MOCK_METHOD(StatusOr, RemoveRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_network_firewall_policies:: v1::RemoveRuleRequest const& request), (override)); MOCK_METHOD(future>, RemoveRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.cc b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.cc index 860e29ed89b2d..7998b5ca23c5b 100644 --- a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.cc +++ b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.cc @@ -51,29 +51,28 @@ RegionNotificationEndpointsTracingConnection::DeleteNotificationEndpoint( StatusOr RegionNotificationEndpointsTracingConnection::DeleteNotificationEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_notification_endpoints::v1:: DeleteNotificationEndpointRequest const& request) { auto span = internal::MakeSpan( "compute_region_notification_endpoints_v1::" "RegionNotificationEndpointsConnection::DeleteNotificationEndpoint"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteNotificationEndpoint( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteNotificationEndpoint(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> RegionNotificationEndpointsTracingConnection::DeleteNotificationEndpoint( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_notification_endpoints_v1::" "RegionNotificationEndpointsConnection::DeleteNotificationEndpoint"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteNotificationEndpoint( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteNotificationEndpoint( + ExperimentalTag{}, operation)); } StatusOr @@ -101,29 +100,28 @@ RegionNotificationEndpointsTracingConnection::InsertNotificationEndpoint( StatusOr RegionNotificationEndpointsTracingConnection::InsertNotificationEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_notification_endpoints::v1:: InsertNotificationEndpointRequest const& request) { auto span = internal::MakeSpan( "compute_region_notification_endpoints_v1::" "RegionNotificationEndpointsConnection::InsertNotificationEndpoint"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertNotificationEndpoint( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InsertNotificationEndpoint(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> RegionNotificationEndpointsTracingConnection::InsertNotificationEndpoint( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_notification_endpoints_v1::" "RegionNotificationEndpointsConnection::InsertNotificationEndpoint"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertNotificationEndpoint( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertNotificationEndpoint( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.h b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.h index 45f07fb1176eb..25ec67b859a61 100644 --- a/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.h +++ b/google/cloud/compute/region_notification_endpoints/v1/internal/region_notification_endpoints_tracing_connection.h @@ -51,13 +51,13 @@ class RegionNotificationEndpointsTracingConnection StatusOr DeleteNotificationEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_notification_endpoints::v1:: DeleteNotificationEndpointRequest const& request) override; future> DeleteNotificationEndpoint( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -72,13 +72,13 @@ class RegionNotificationEndpointsTracingConnection StatusOr InsertNotificationEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_notification_endpoints::v1:: InsertNotificationEndpointRequest const& request) override; future> InsertNotificationEndpoint( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/region_notification_endpoints/v1/mocks/mock_region_notification_endpoints_connection.h b/google/cloud/compute/region_notification_endpoints/v1/mocks/mock_region_notification_endpoints_connection.h index 4032b4b8018bc..5da8fc4f5d200 100644 --- a/google/cloud/compute/region_notification_endpoints/v1/mocks/mock_region_notification_endpoints_connection.h +++ b/google/cloud/compute/region_notification_endpoints/v1/mocks/mock_region_notification_endpoints_connection.h @@ -57,14 +57,14 @@ class MockRegionNotificationEndpointsConnection MOCK_METHOD(StatusOr, DeleteNotificationEndpoint, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_notification_endpoints::v1:: DeleteNotificationEndpointRequest const& request), (override)); MOCK_METHOD(future>, DeleteNotificationEndpoint, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -82,14 +82,14 @@ class MockRegionNotificationEndpointsConnection MOCK_METHOD(StatusOr, InsertNotificationEndpoint, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_notification_endpoints::v1:: InsertNotificationEndpointRequest const& request), (override)); MOCK_METHOD(future>, InsertNotificationEndpoint, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.cc b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.cc index 3988592a56637..f7a30fba83b58 100644 --- a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.cc +++ b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.cc @@ -50,7 +50,7 @@ RegionSecurityPoliciesTracingConnection::AddRule( StatusOr RegionSecurityPoliciesTracingConnection::AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: AddRuleRequest const& request) { auto span = internal::MakeSpan( @@ -58,21 +58,19 @@ RegionSecurityPoliciesTracingConnection::AddRule( "AddRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionSecurityPoliciesTracingConnection::AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" "AddRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AddRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->AddRule(ExperimentalTag{}, operation)); } future> @@ -89,29 +87,28 @@ RegionSecurityPoliciesTracingConnection::DeleteSecurityPolicy( StatusOr RegionSecurityPoliciesTracingConnection::DeleteSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: DeleteSecurityPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" "DeleteSecurityPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteSecurityPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteSecurityPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionSecurityPoliciesTracingConnection::DeleteSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" "DeleteSecurityPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteSecurityPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteSecurityPolicy( + ExperimentalTag{}, operation)); } StatusOr @@ -150,29 +147,28 @@ RegionSecurityPoliciesTracingConnection::InsertSecurityPolicy( StatusOr RegionSecurityPoliciesTracingConnection::InsertSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: InsertSecurityPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" "InsertSecurityPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertSecurityPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertSecurityPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionSecurityPoliciesTracingConnection::InsertSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" "InsertSecurityPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertSecurityPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertSecurityPolicy( + ExperimentalTag{}, operation)); } StreamRange @@ -203,7 +199,7 @@ RegionSecurityPoliciesTracingConnection::PatchSecurityPolicy( StatusOr RegionSecurityPoliciesTracingConnection::PatchSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: PatchSecurityPolicyRequest const& request) { auto span = internal::MakeSpan( @@ -211,21 +207,20 @@ RegionSecurityPoliciesTracingConnection::PatchSecurityPolicy( "PatchSecurityPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchSecurityPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PatchSecurityPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionSecurityPoliciesTracingConnection::PatchSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" "PatchSecurityPolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchSecurityPolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchSecurityPolicy( + ExperimentalTag{}, operation)); } future> @@ -241,7 +236,7 @@ RegionSecurityPoliciesTracingConnection::PatchRule( StatusOr RegionSecurityPoliciesTracingConnection::PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: PatchRuleRequest const& request) { auto span = internal::MakeSpan( @@ -249,21 +244,19 @@ RegionSecurityPoliciesTracingConnection::PatchRule( "PatchRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionSecurityPoliciesTracingConnection::PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" "PatchRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->PatchRule(ExperimentalTag{}, operation)); } future> @@ -279,7 +272,7 @@ RegionSecurityPoliciesTracingConnection::RemoveRule( StatusOr RegionSecurityPoliciesTracingConnection::RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: RemoveRuleRequest const& request) { auto span = internal::MakeSpan( @@ -287,21 +280,19 @@ RegionSecurityPoliciesTracingConnection::RemoveRule( "RemoveRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RemoveRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RemoveRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionSecurityPoliciesTracingConnection::RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_security_policies_v1::RegionSecurityPoliciesConnection::" "RemoveRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RemoveRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RemoveRule(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.h b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.h index 4f164aea71525..64943553adaad 100644 --- a/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.h +++ b/google/cloud/compute/region_security_policies/v1/internal/region_security_policies_tracing_connection.h @@ -49,12 +49,12 @@ class RegionSecurityPoliciesTracingConnection AddRuleRequest const& request) override; StatusOr AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: AddRuleRequest const& request) override; future> AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -63,13 +63,13 @@ class RegionSecurityPoliciesTracingConnection DeleteSecurityPolicyRequest const& request) override; StatusOr DeleteSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: DeleteSecurityPolicyRequest const& request) override; future> DeleteSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetSecurityPolicy( @@ -86,13 +86,13 @@ class RegionSecurityPoliciesTracingConnection InsertSecurityPolicyRequest const& request) override; StatusOr InsertSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: InsertSecurityPolicyRequest const& request) override; future> InsertSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -106,13 +106,13 @@ class RegionSecurityPoliciesTracingConnection PatchSecurityPolicyRequest const& request) override; StatusOr PatchSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: PatchSecurityPolicyRequest const& request) override; future> PatchSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> PatchRule( @@ -120,12 +120,12 @@ class RegionSecurityPoliciesTracingConnection PatchRuleRequest const& request) override; StatusOr PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: PatchRuleRequest const& request) override; future> PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> RemoveRule( @@ -133,12 +133,12 @@ class RegionSecurityPoliciesTracingConnection RemoveRuleRequest const& request) override; StatusOr RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: RemoveRuleRequest const& request) override; future> RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_security_policies/v1/mocks/mock_region_security_policies_connection.h b/google/cloud/compute/region_security_policies/v1/mocks/mock_region_security_policies_connection.h index 483e8087ad264..1a2f6be8c3a76 100644 --- a/google/cloud/compute/region_security_policies/v1/mocks/mock_region_security_policies_connection.h +++ b/google/cloud/compute/region_security_policies/v1/mocks/mock_region_security_policies_connection.h @@ -56,14 +56,14 @@ class MockRegionSecurityPoliciesConnection (override)); MOCK_METHOD(StatusOr, AddRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: AddRuleRequest const& request), (override)); MOCK_METHOD(future>, AddRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -75,14 +75,14 @@ class MockRegionSecurityPoliciesConnection MOCK_METHOD(StatusOr, DeleteSecurityPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: DeleteSecurityPolicyRequest const& request), (override)); MOCK_METHOD(future>, DeleteSecurityPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -106,14 +106,14 @@ class MockRegionSecurityPoliciesConnection MOCK_METHOD(StatusOr, InsertSecurityPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: InsertSecurityPolicyRequest const& request), (override)); MOCK_METHOD(future>, InsertSecurityPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -131,14 +131,14 @@ class MockRegionSecurityPoliciesConnection MOCK_METHOD(StatusOr, PatchSecurityPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: PatchSecurityPolicyRequest const& request), (override)); MOCK_METHOD(future>, PatchSecurityPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -149,14 +149,14 @@ class MockRegionSecurityPoliciesConnection (override)); MOCK_METHOD(StatusOr, PatchRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: PatchRuleRequest const& request), (override)); MOCK_METHOD(future>, PatchRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -167,14 +167,14 @@ class MockRegionSecurityPoliciesConnection (override)); MOCK_METHOD(StatusOr, RemoveRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_security_policies::v1:: RemoveRuleRequest const& request), (override)); MOCK_METHOD(future>, RemoveRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.cc b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.cc index 156e21c5c9fe4..203936c0842ca 100644 --- a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.cc +++ b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.cc @@ -50,29 +50,28 @@ RegionSslCertificatesTracingConnection::DeleteSslCertificate( StatusOr RegionSslCertificatesTracingConnection::DeleteSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_certificates::v1:: DeleteSslCertificateRequest const& request) { auto span = internal::MakeSpan( "compute_region_ssl_certificates_v1::RegionSslCertificatesConnection::" "DeleteSslCertificate"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteSslCertificate( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteSslCertificate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionSslCertificatesTracingConnection::DeleteSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_ssl_certificates_v1::RegionSslCertificatesConnection::" "DeleteSslCertificate"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteSslCertificate( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteSslCertificate( + ExperimentalTag{}, operation)); } StatusOr @@ -100,29 +99,28 @@ RegionSslCertificatesTracingConnection::InsertSslCertificate( StatusOr RegionSslCertificatesTracingConnection::InsertSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_certificates::v1:: InsertSslCertificateRequest const& request) { auto span = internal::MakeSpan( "compute_region_ssl_certificates_v1::RegionSslCertificatesConnection::" "InsertSslCertificate"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertSslCertificate( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertSslCertificate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionSslCertificatesTracingConnection::InsertSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_ssl_certificates_v1::RegionSslCertificatesConnection::" "InsertSslCertificate"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertSslCertificate( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertSslCertificate( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.h b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.h index 2519fd7c1948d..915a9d75fef2e 100644 --- a/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.h +++ b/google/cloud/compute/region_ssl_certificates/v1/internal/region_ssl_certificates_tracing_connection.h @@ -50,13 +50,13 @@ class RegionSslCertificatesTracingConnection DeleteSslCertificateRequest const& request) override; StatusOr DeleteSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_certificates::v1:: DeleteSslCertificateRequest const& request) override; future> DeleteSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetSslCertificate( @@ -69,13 +69,13 @@ class RegionSslCertificatesTracingConnection InsertSslCertificateRequest const& request) override; StatusOr InsertSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_certificates::v1:: InsertSslCertificateRequest const& request) override; future> InsertSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/region_ssl_certificates/v1/mocks/mock_region_ssl_certificates_connection.h b/google/cloud/compute/region_ssl_certificates/v1/mocks/mock_region_ssl_certificates_connection.h index d2d735aaa9b03..a5e6bda4a395b 100644 --- a/google/cloud/compute/region_ssl_certificates/v1/mocks/mock_region_ssl_certificates_connection.h +++ b/google/cloud/compute/region_ssl_certificates/v1/mocks/mock_region_ssl_certificates_connection.h @@ -57,14 +57,14 @@ class MockRegionSslCertificatesConnection MOCK_METHOD(StatusOr, DeleteSslCertificate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_certificates::v1:: DeleteSslCertificateRequest const& request), (override)); MOCK_METHOD(future>, DeleteSslCertificate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -82,14 +82,14 @@ class MockRegionSslCertificatesConnection MOCK_METHOD(StatusOr, InsertSslCertificate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_certificates::v1:: InsertSslCertificateRequest const& request), (override)); MOCK_METHOD(future>, InsertSslCertificate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.cc b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.cc index a3e9e5595c08e..6ddbaf5e37dc3 100644 --- a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.cc +++ b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.cc @@ -47,7 +47,7 @@ RegionSslPoliciesTracingConnection::DeleteSslPolicy( StatusOr RegionSslPoliciesTracingConnection::DeleteSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: DeleteSslPolicyRequest const& request) { auto span = internal::MakeSpan( @@ -55,21 +55,19 @@ RegionSslPoliciesTracingConnection::DeleteSslPolicy( "DeleteSslPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSslPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteSslPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionSslPoliciesTracingConnection::DeleteSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_ssl_policies_v1::RegionSslPoliciesConnection::" "DeleteSslPolicy"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteSslPolicy(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteSslPolicy(ExperimentalTag{}, operation)); } StatusOr @@ -96,7 +94,7 @@ RegionSslPoliciesTracingConnection::InsertSslPolicy( StatusOr RegionSslPoliciesTracingConnection::InsertSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: InsertSslPolicyRequest const& request) { auto span = internal::MakeSpan( @@ -104,21 +102,19 @@ RegionSslPoliciesTracingConnection::InsertSslPolicy( "InsertSslPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertSslPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertSslPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionSslPoliciesTracingConnection::InsertSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_ssl_policies_v1::RegionSslPoliciesConnection::" "InsertSslPolicy"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertSslPolicy(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertSslPolicy(ExperimentalTag{}, operation)); } StreamRange @@ -160,7 +156,7 @@ RegionSslPoliciesTracingConnection::PatchSslPolicy( StatusOr RegionSslPoliciesTracingConnection::PatchSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: PatchSslPolicyRequest const& request) { auto span = internal::MakeSpan( @@ -168,21 +164,19 @@ RegionSslPoliciesTracingConnection::PatchSslPolicy( "PatchSslPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchSslPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchSslPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionSslPoliciesTracingConnection::PatchSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_ssl_policies_v1::RegionSslPoliciesConnection::" "PatchSslPolicy"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->PatchSslPolicy(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->PatchSslPolicy(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.h b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.h index 69fceff64c5bc..deaccebe7acb3 100644 --- a/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.h +++ b/google/cloud/compute/region_ssl_policies/v1/internal/region_ssl_policies_tracing_connection.h @@ -47,12 +47,12 @@ class RegionSslPoliciesTracingConnection DeleteSslPolicyRequest const& request) override; StatusOr DeleteSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: DeleteSslPolicyRequest const& request) override; future> DeleteSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetSslPolicy( @@ -64,12 +64,12 @@ class RegionSslPoliciesTracingConnection InsertSslPolicyRequest const& request) override; StatusOr InsertSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: InsertSslPolicyRequest const& request) override; future> InsertSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListRegionSslPolicies( @@ -87,12 +87,12 @@ class RegionSslPoliciesTracingConnection PatchSslPolicyRequest const& request) override; StatusOr PatchSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: PatchSslPolicyRequest const& request) override; future> PatchSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_ssl_policies/v1/mocks/mock_region_ssl_policies_connection.h b/google/cloud/compute/region_ssl_policies/v1/mocks/mock_region_ssl_policies_connection.h index f200744361fb5..64e249278792d 100644 --- a/google/cloud/compute/region_ssl_policies/v1/mocks/mock_region_ssl_policies_connection.h +++ b/google/cloud/compute/region_ssl_policies/v1/mocks/mock_region_ssl_policies_connection.h @@ -55,14 +55,14 @@ class MockRegionSslPoliciesConnection MOCK_METHOD(StatusOr, DeleteSslPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: DeleteSslPolicyRequest const& request), (override)); MOCK_METHOD(future>, DeleteSslPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -80,14 +80,14 @@ class MockRegionSslPoliciesConnection MOCK_METHOD(StatusOr, InsertSslPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: InsertSslPolicyRequest const& request), (override)); MOCK_METHOD(future>, InsertSslPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -112,14 +112,14 @@ class MockRegionSslPoliciesConnection MOCK_METHOD(StatusOr, PatchSslPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_ssl_policies::v1:: PatchSslPolicyRequest const& request), (override)); MOCK_METHOD(future>, PatchSslPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.cc b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.cc index 1ef419529de66..932262aae7a39 100644 --- a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.cc +++ b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.cc @@ -51,29 +51,28 @@ RegionTargetHttpProxiesTracingConnection::DeleteTargetHttpProxy( StatusOr RegionTargetHttpProxiesTracingConnection::DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request) { auto span = internal::MakeSpan( "compute_region_target_http_proxies_v1::" "RegionTargetHttpProxiesConnection::DeleteTargetHttpProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteTargetHttpProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteTargetHttpProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionTargetHttpProxiesTracingConnection::DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_target_http_proxies_v1::" "RegionTargetHttpProxiesConnection::DeleteTargetHttpProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteTargetHttpProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteTargetHttpProxy( + ExperimentalTag{}, operation)); } StatusOr @@ -101,29 +100,28 @@ RegionTargetHttpProxiesTracingConnection::InsertTargetHttpProxy( StatusOr RegionTargetHttpProxiesTracingConnection::InsertTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request) { auto span = internal::MakeSpan( "compute_region_target_http_proxies_v1::" "RegionTargetHttpProxiesConnection::InsertTargetHttpProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertTargetHttpProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertTargetHttpProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionTargetHttpProxiesTracingConnection::InsertTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_target_http_proxies_v1::" "RegionTargetHttpProxiesConnection::InsertTargetHttpProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertTargetHttpProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertTargetHttpProxy( + ExperimentalTag{}, operation)); } StreamRange @@ -153,7 +151,7 @@ RegionTargetHttpProxiesTracingConnection::SetUrlMap( StatusOr RegionTargetHttpProxiesTracingConnection::SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: SetUrlMapRequest const& request) { auto span = internal::MakeSpan( @@ -161,21 +159,19 @@ RegionTargetHttpProxiesTracingConnection::SetUrlMap( "RegionTargetHttpProxiesConnection::SetUrlMap"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetUrlMap(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetUrlMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionTargetHttpProxiesTracingConnection::SetUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_target_http_proxies_v1::" "RegionTargetHttpProxiesConnection::SetUrlMap"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetUrlMap(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetUrlMap(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.h b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.h index 1c2688e0e27c6..f88f2c74b26ab 100644 --- a/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.h +++ b/google/cloud/compute/region_target_http_proxies/v1/internal/region_target_http_proxies_tracing_connection.h @@ -50,13 +50,13 @@ class RegionTargetHttpProxiesTracingConnection DeleteTargetHttpProxyRequest const& request) override; StatusOr DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request) override; future> DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetTargetHttpProxy( @@ -69,13 +69,13 @@ class RegionTargetHttpProxiesTracingConnection InsertTargetHttpProxyRequest const& request) override; StatusOr InsertTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request) override; future> InsertTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -88,12 +88,12 @@ class RegionTargetHttpProxiesTracingConnection SetUrlMapRequest const& request) override; StatusOr SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: SetUrlMapRequest const& request) override; future> SetUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_target_http_proxies/v1/mocks/mock_region_target_http_proxies_connection.h b/google/cloud/compute/region_target_http_proxies/v1/mocks/mock_region_target_http_proxies_connection.h index 544e65f0830fb..0bfb0dbc2c3a0 100644 --- a/google/cloud/compute/region_target_http_proxies/v1/mocks/mock_region_target_http_proxies_connection.h +++ b/google/cloud/compute/region_target_http_proxies/v1/mocks/mock_region_target_http_proxies_connection.h @@ -57,14 +57,14 @@ class MockRegionTargetHttpProxiesConnection MOCK_METHOD(StatusOr, DeleteTargetHttpProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request), (override)); MOCK_METHOD(future>, DeleteTargetHttpProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -82,14 +82,14 @@ class MockRegionTargetHttpProxiesConnection MOCK_METHOD(StatusOr, InsertTargetHttpProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request), (override)); MOCK_METHOD(future>, InsertTargetHttpProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -106,14 +106,14 @@ class MockRegionTargetHttpProxiesConnection (override)); MOCK_METHOD(StatusOr, SetUrlMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_http_proxies::v1:: SetUrlMapRequest const& request), (override)); MOCK_METHOD(future>, SetUrlMap, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.cc b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.cc index 27ef57cdd32f1..0170938c9b069 100644 --- a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.cc +++ b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.cc @@ -51,29 +51,28 @@ RegionTargetHttpsProxiesTracingConnection::DeleteTargetHttpsProxy( StatusOr RegionTargetHttpsProxiesTracingConnection::DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request) { auto span = internal::MakeSpan( "compute_region_target_https_proxies_v1::" "RegionTargetHttpsProxiesConnection::DeleteTargetHttpsProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteTargetHttpsProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionTargetHttpsProxiesTracingConnection::DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_target_https_proxies_v1::" "RegionTargetHttpsProxiesConnection::DeleteTargetHttpsProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteTargetHttpsProxy( + ExperimentalTag{}, operation)); } StatusOr @@ -101,29 +100,28 @@ RegionTargetHttpsProxiesTracingConnection::InsertTargetHttpsProxy( StatusOr RegionTargetHttpsProxiesTracingConnection::InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request) { auto span = internal::MakeSpan( "compute_region_target_https_proxies_v1::" "RegionTargetHttpsProxiesConnection::InsertTargetHttpsProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertTargetHttpsProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertTargetHttpsProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionTargetHttpsProxiesTracingConnection::InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_target_https_proxies_v1::" "RegionTargetHttpsProxiesConnection::InsertTargetHttpsProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertTargetHttpsProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertTargetHttpsProxy( + ExperimentalTag{}, operation)); } StreamRange @@ -154,29 +152,28 @@ RegionTargetHttpsProxiesTracingConnection::PatchTargetHttpsProxy( StatusOr RegionTargetHttpsProxiesTracingConnection::PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request) { auto span = internal::MakeSpan( "compute_region_target_https_proxies_v1::" "RegionTargetHttpsProxiesConnection::PatchTargetHttpsProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchTargetHttpsProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->PatchTargetHttpsProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionTargetHttpsProxiesTracingConnection::PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_target_https_proxies_v1::" "RegionTargetHttpsProxiesConnection::PatchTargetHttpsProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchTargetHttpsProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchTargetHttpsProxy( + ExperimentalTag{}, operation)); } future> @@ -193,7 +190,7 @@ RegionTargetHttpsProxiesTracingConnection::SetSslCertificates( StatusOr RegionTargetHttpsProxiesTracingConnection::SetSslCertificates( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: SetSslCertificatesRequest const& request) { auto span = internal::MakeSpan( @@ -201,21 +198,20 @@ RegionTargetHttpsProxiesTracingConnection::SetSslCertificates( "RegionTargetHttpsProxiesConnection::SetSslCertificates"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetSslCertificates(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetSslCertificates(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionTargetHttpsProxiesTracingConnection::SetSslCertificates( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_target_https_proxies_v1::" "RegionTargetHttpsProxiesConnection::SetSslCertificates"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetSslCertificates(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetSslCertificates( + ExperimentalTag{}, operation)); } future> @@ -231,7 +227,7 @@ RegionTargetHttpsProxiesTracingConnection::SetUrlMap( StatusOr RegionTargetHttpsProxiesTracingConnection::SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: SetUrlMapRequest const& request) { auto span = internal::MakeSpan( @@ -239,21 +235,19 @@ RegionTargetHttpsProxiesTracingConnection::SetUrlMap( "RegionTargetHttpsProxiesConnection::SetUrlMap"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetUrlMap(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetUrlMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionTargetHttpsProxiesTracingConnection::SetUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_target_https_proxies_v1::" "RegionTargetHttpsProxiesConnection::SetUrlMap"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetUrlMap(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetUrlMap(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.h b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.h index 526492fce4360..0f6c28928aca8 100644 --- a/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.h +++ b/google/cloud/compute/region_target_https_proxies/v1/internal/region_target_https_proxies_tracing_connection.h @@ -50,13 +50,13 @@ class RegionTargetHttpsProxiesTracingConnection DeleteTargetHttpsProxyRequest const& request) override; StatusOr DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request) override; future> DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -70,13 +70,13 @@ class RegionTargetHttpsProxiesTracingConnection InsertTargetHttpsProxyRequest const& request) override; StatusOr InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request) override; future> InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -90,13 +90,13 @@ class RegionTargetHttpsProxiesTracingConnection PatchTargetHttpsProxyRequest const& request) override; StatusOr PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request) override; future> PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -104,13 +104,13 @@ class RegionTargetHttpsProxiesTracingConnection v1::SetSslCertificatesRequest const& request) override; StatusOr SetSslCertificates( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: SetSslCertificatesRequest const& request) override; future> SetSslCertificates( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetUrlMap( @@ -118,12 +118,12 @@ class RegionTargetHttpsProxiesTracingConnection SetUrlMapRequest const& request) override; StatusOr SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: SetUrlMapRequest const& request) override; future> SetUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/region_target_https_proxies/v1/mocks/mock_region_target_https_proxies_connection.h b/google/cloud/compute/region_target_https_proxies/v1/mocks/mock_region_target_https_proxies_connection.h index 7f46415f77f56..3898ccc662a6b 100644 --- a/google/cloud/compute/region_target_https_proxies/v1/mocks/mock_region_target_https_proxies_connection.h +++ b/google/cloud/compute/region_target_https_proxies/v1/mocks/mock_region_target_https_proxies_connection.h @@ -57,14 +57,14 @@ class MockRegionTargetHttpsProxiesConnection MOCK_METHOD(StatusOr, DeleteTargetHttpsProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request), (override)); MOCK_METHOD(future>, DeleteTargetHttpsProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -82,14 +82,14 @@ class MockRegionTargetHttpsProxiesConnection MOCK_METHOD(StatusOr, InsertTargetHttpsProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request), (override)); MOCK_METHOD(future>, InsertTargetHttpsProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -107,14 +107,14 @@ class MockRegionTargetHttpsProxiesConnection MOCK_METHOD(StatusOr, PatchTargetHttpsProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request), (override)); MOCK_METHOD(future>, PatchTargetHttpsProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -126,14 +126,14 @@ class MockRegionTargetHttpsProxiesConnection MOCK_METHOD(StatusOr, SetSslCertificates, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: SetSslCertificatesRequest const& request), (override)); MOCK_METHOD(future>, SetSslCertificates, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -144,14 +144,14 @@ class MockRegionTargetHttpsProxiesConnection (override)); MOCK_METHOD(StatusOr, SetUrlMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_https_proxies::v1:: SetUrlMapRequest const& request), (override)); MOCK_METHOD(future>, SetUrlMap, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.cc b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.cc index 90bc579101ceb..f0bccd0e42809 100644 --- a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.cc +++ b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.cc @@ -51,29 +51,28 @@ RegionTargetTcpProxiesTracingConnection::DeleteTargetTcpProxy( StatusOr RegionTargetTcpProxiesTracingConnection::DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const& request) { auto span = internal::MakeSpan( "compute_region_target_tcp_proxies_v1::RegionTargetTcpProxiesConnection::" "DeleteTargetTcpProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteTargetTcpProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteTargetTcpProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionTargetTcpProxiesTracingConnection::DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_target_tcp_proxies_v1::RegionTargetTcpProxiesConnection::" "DeleteTargetTcpProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteTargetTcpProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteTargetTcpProxy( + ExperimentalTag{}, operation)); } StatusOr @@ -101,29 +100,28 @@ RegionTargetTcpProxiesTracingConnection::InsertTargetTcpProxy( StatusOr RegionTargetTcpProxiesTracingConnection::InsertTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const& request) { auto span = internal::MakeSpan( "compute_region_target_tcp_proxies_v1::RegionTargetTcpProxiesConnection::" "InsertTargetTcpProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertTargetTcpProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertTargetTcpProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionTargetTcpProxiesTracingConnection::InsertTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_target_tcp_proxies_v1::RegionTargetTcpProxiesConnection::" "InsertTargetTcpProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertTargetTcpProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertTargetTcpProxy( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.h b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.h index 63dae1cf1347e..a101ba7adac1d 100644 --- a/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.h +++ b/google/cloud/compute/region_target_tcp_proxies/v1/internal/region_target_tcp_proxies_tracing_connection.h @@ -50,13 +50,13 @@ class RegionTargetTcpProxiesTracingConnection DeleteTargetTcpProxyRequest const& request) override; StatusOr DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const& request) override; future> DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetTargetTcpProxy( @@ -69,13 +69,13 @@ class RegionTargetTcpProxiesTracingConnection InsertTargetTcpProxyRequest const& request) override; StatusOr InsertTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const& request) override; future> InsertTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/region_target_tcp_proxies/v1/mocks/mock_region_target_tcp_proxies_connection.h b/google/cloud/compute/region_target_tcp_proxies/v1/mocks/mock_region_target_tcp_proxies_connection.h index 23895271ade00..975ce5e15ecd4 100644 --- a/google/cloud/compute/region_target_tcp_proxies/v1/mocks/mock_region_target_tcp_proxies_connection.h +++ b/google/cloud/compute/region_target_tcp_proxies/v1/mocks/mock_region_target_tcp_proxies_connection.h @@ -57,14 +57,14 @@ class MockRegionTargetTcpProxiesConnection MOCK_METHOD(StatusOr, DeleteTargetTcpProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const& request), (override)); MOCK_METHOD(future>, DeleteTargetTcpProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -82,14 +82,14 @@ class MockRegionTargetTcpProxiesConnection MOCK_METHOD(StatusOr, InsertTargetTcpProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const& request), (override)); MOCK_METHOD(future>, InsertTargetTcpProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.cc b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.cc index 9144e1b58dcc7..3a6d0858fa8e5 100644 --- a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.cc +++ b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.cc @@ -45,27 +45,25 @@ RegionUrlMapsTracingConnection::DeleteUrlMap( StatusOr RegionUrlMapsTracingConnection::DeleteUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1::DeleteUrlMapRequest const& request) { auto span = internal::MakeSpan( "compute_region_url_maps_v1::RegionUrlMapsConnection::DeleteUrlMap"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteUrlMap(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteUrlMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionUrlMapsTracingConnection::DeleteUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_url_maps_v1::RegionUrlMapsConnection::DeleteUrlMap"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteUrlMap(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteUrlMap(ExperimentalTag{}, operation)); } StatusOr @@ -90,27 +88,25 @@ RegionUrlMapsTracingConnection::InsertUrlMap( StatusOr RegionUrlMapsTracingConnection::InsertUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1::InsertUrlMapRequest const& request) { auto span = internal::MakeSpan( "compute_region_url_maps_v1::RegionUrlMapsConnection::InsertUrlMap"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertUrlMap(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertUrlMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionUrlMapsTracingConnection::InsertUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_url_maps_v1::RegionUrlMapsConnection::InsertUrlMap"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InsertUrlMap(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->InsertUrlMap(ExperimentalTag{}, operation)); } StreamRange @@ -137,27 +133,25 @@ RegionUrlMapsTracingConnection::PatchUrlMap( StatusOr RegionUrlMapsTracingConnection::PatchUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1::PatchUrlMapRequest const& request) { auto span = internal::MakeSpan( "compute_region_url_maps_v1::RegionUrlMapsConnection::PatchUrlMap"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchUrlMap(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchUrlMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionUrlMapsTracingConnection::PatchUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_url_maps_v1::RegionUrlMapsConnection::PatchUrlMap"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchUrlMap(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->PatchUrlMap(ExperimentalTag{}, operation)); } future> @@ -172,27 +166,25 @@ RegionUrlMapsTracingConnection::UpdateUrlMap( StatusOr RegionUrlMapsTracingConnection::UpdateUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1::UpdateUrlMapRequest const& request) { auto span = internal::MakeSpan( "compute_region_url_maps_v1::RegionUrlMapsConnection::UpdateUrlMap"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateUrlMap(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateUrlMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RegionUrlMapsTracingConnection::UpdateUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_region_url_maps_v1::RegionUrlMapsConnection::UpdateUrlMap"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateUrlMap(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateUrlMap(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.h b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.h index ee891b7cb8f0f..d51c55757ce1b 100644 --- a/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.h +++ b/google/cloud/compute/region_url_maps/v1/internal/region_url_maps_tracing_connection.h @@ -46,12 +46,12 @@ class RegionUrlMapsTracingConnection DeleteUrlMapRequest const& request) override; StatusOr DeleteUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: DeleteUrlMapRequest const& request) override; future> DeleteUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetUrlMap( @@ -63,12 +63,12 @@ class RegionUrlMapsTracingConnection InsertUrlMapRequest const& request) override; StatusOr InsertUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: InsertUrlMapRequest const& request) override; future> InsertUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListRegionUrlMaps( @@ -80,12 +80,12 @@ class RegionUrlMapsTracingConnection PatchUrlMapRequest const& request) override; StatusOr PatchUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: PatchUrlMapRequest const& request) override; future> PatchUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> UpdateUrlMap( @@ -93,12 +93,12 @@ class RegionUrlMapsTracingConnection UpdateUrlMapRequest const& request) override; StatusOr UpdateUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: UpdateUrlMapRequest const& request) override; future> UpdateUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr Validate( diff --git a/google/cloud/compute/region_url_maps/v1/mocks/mock_region_url_maps_connection.h b/google/cloud/compute/region_url_maps/v1/mocks/mock_region_url_maps_connection.h index 336936e28e527..ff4ba9c9dc3d6 100644 --- a/google/cloud/compute/region_url_maps/v1/mocks/mock_region_url_maps_connection.h +++ b/google/cloud/compute/region_url_maps/v1/mocks/mock_region_url_maps_connection.h @@ -55,14 +55,14 @@ class MockRegionUrlMapsConnection MOCK_METHOD(StatusOr, DeleteUrlMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: DeleteUrlMapRequest const& request), (override)); MOCK_METHOD(future>, DeleteUrlMap, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -80,14 +80,14 @@ class MockRegionUrlMapsConnection MOCK_METHOD(StatusOr, InsertUrlMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: InsertUrlMapRequest const& request), (override)); MOCK_METHOD(future>, InsertUrlMap, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -104,14 +104,14 @@ class MockRegionUrlMapsConnection (override)); MOCK_METHOD(StatusOr, PatchUrlMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: PatchUrlMapRequest const& request), (override)); MOCK_METHOD(future>, PatchUrlMap, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -123,14 +123,14 @@ class MockRegionUrlMapsConnection MOCK_METHOD(StatusOr, UpdateUrlMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::region_url_maps::v1:: UpdateUrlMapRequest const& request), (override)); MOCK_METHOD(future>, UpdateUrlMap, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.cc b/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.cc index f684a2fd16787..258029a63e018 100644 --- a/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.cc +++ b/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.cc @@ -60,27 +60,26 @@ ReservationsTracingConnection::DeleteReservation( StatusOr ReservationsTracingConnection::DeleteReservation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: DeleteReservationRequest const& request) { auto span = internal::MakeSpan( "compute_reservations_v1::ReservationsConnection::DeleteReservation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteReservation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteReservation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ReservationsTracingConnection::DeleteReservation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_reservations_v1::ReservationsConnection::DeleteReservation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteReservation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteReservation(ExperimentalTag{}, operation)); } StatusOr @@ -115,27 +114,26 @@ ReservationsTracingConnection::InsertReservation( StatusOr ReservationsTracingConnection::InsertReservation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: InsertReservationRequest const& request) { auto span = internal::MakeSpan( "compute_reservations_v1::ReservationsConnection::InsertReservation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertReservation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->InsertReservation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ReservationsTracingConnection::InsertReservation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_reservations_v1::ReservationsConnection::InsertReservation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertReservation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertReservation(ExperimentalTag{}, operation)); } StreamRange @@ -163,27 +161,25 @@ ReservationsTracingConnection::Resize( StatusOr ReservationsTracingConnection::Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1::ResizeRequest const& request) { auto span = internal::MakeSpan( "compute_reservations_v1::ReservationsConnection::Resize"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->Resize(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->Resize(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ReservationsTracingConnection::Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_reservations_v1::ReservationsConnection::Resize"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->Resize(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->Resize(ExperimentalTag{}, operation)); } StatusOr @@ -218,27 +214,26 @@ ReservationsTracingConnection::UpdateReservation( StatusOr ReservationsTracingConnection::UpdateReservation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: UpdateReservationRequest const& request) { auto span = internal::MakeSpan( "compute_reservations_v1::ReservationsConnection::UpdateReservation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateReservation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateReservation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ReservationsTracingConnection::UpdateReservation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_reservations_v1::ReservationsConnection::UpdateReservation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateReservation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateReservation(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.h b/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.h index c6a4380e7f2cd..c79a58ef6ee7e 100644 --- a/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.h +++ b/google/cloud/compute/reservations/v1/internal/reservations_tracing_connection.h @@ -51,13 +51,13 @@ class ReservationsTracingConnection DeleteReservationRequest const& request) override; StatusOr DeleteReservation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: DeleteReservationRequest const& request) override; future> DeleteReservation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetReservation( @@ -73,13 +73,13 @@ class ReservationsTracingConnection InsertReservationRequest const& request) override; StatusOr InsertReservation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: InsertReservationRequest const& request) override; future> InsertReservation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListReservations( @@ -91,12 +91,12 @@ class ReservationsTracingConnection request) override; StatusOr Resize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1::ResizeRequest const& request) override; future> Resize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -112,13 +112,13 @@ class ReservationsTracingConnection UpdateReservationRequest const& request) override; StatusOr UpdateReservation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: UpdateReservationRequest const& request) override; future> UpdateReservation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/reservations/v1/mocks/mock_reservations_connection.h b/google/cloud/compute/reservations/v1/mocks/mock_reservations_connection.h index 601f96ce7f01b..0a3a83a364f55 100644 --- a/google/cloud/compute/reservations/v1/mocks/mock_reservations_connection.h +++ b/google/cloud/compute/reservations/v1/mocks/mock_reservations_connection.h @@ -64,14 +64,14 @@ class MockReservationsConnection MOCK_METHOD(StatusOr, DeleteReservation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: DeleteReservationRequest const& request), (override)); MOCK_METHOD(future>, DeleteReservation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -95,14 +95,14 @@ class MockReservationsConnection MOCK_METHOD(StatusOr, InsertReservation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: InsertReservationRequest const& request), (override)); MOCK_METHOD(future>, InsertReservation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -121,14 +121,14 @@ class MockReservationsConnection MOCK_METHOD( StatusOr, Resize, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1::ResizeRequest const& request), (override)); MOCK_METHOD(future>, Resize, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -153,14 +153,14 @@ class MockReservationsConnection MOCK_METHOD(StatusOr, UpdateReservation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::reservations::v1:: UpdateReservationRequest const& request), (override)); MOCK_METHOD(future>, UpdateReservation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.cc b/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.cc index d32ac847e6113..297ac9272fed5 100644 --- a/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.cc +++ b/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.cc @@ -64,29 +64,28 @@ ResourcePoliciesTracingConnection::DeleteResourcePolicy( StatusOr ResourcePoliciesTracingConnection::DeleteResourcePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: DeleteResourcePolicyRequest const& request) { auto span = internal::MakeSpan( "compute_resource_policies_v1::ResourcePoliciesConnection::" "DeleteResourcePolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteResourcePolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteResourcePolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ResourcePoliciesTracingConnection::DeleteResourcePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_resource_policies_v1::ResourcePoliciesConnection::" "DeleteResourcePolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteResourcePolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteResourcePolicy( + ExperimentalTag{}, operation)); } StatusOr @@ -124,29 +123,28 @@ ResourcePoliciesTracingConnection::InsertResourcePolicy( StatusOr ResourcePoliciesTracingConnection::InsertResourcePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: InsertResourcePolicyRequest const& request) { auto span = internal::MakeSpan( "compute_resource_policies_v1::ResourcePoliciesConnection::" "InsertResourcePolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertResourcePolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertResourcePolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ResourcePoliciesTracingConnection::InsertResourcePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_resource_policies_v1::ResourcePoliciesConnection::" "InsertResourcePolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertResourcePolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertResourcePolicy( + ExperimentalTag{}, operation)); } StreamRange @@ -177,7 +175,7 @@ ResourcePoliciesTracingConnection::PatchResourcePolicy( StatusOr ResourcePoliciesTracingConnection::PatchResourcePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: PatchResourcePolicyRequest const& request) { auto span = internal::MakeSpan( @@ -185,21 +183,20 @@ ResourcePoliciesTracingConnection::PatchResourcePolicy( "PatchResourcePolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchResourcePolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PatchResourcePolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ResourcePoliciesTracingConnection::PatchResourcePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_resource_policies_v1::ResourcePoliciesConnection::" "PatchResourcePolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchResourcePolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchResourcePolicy( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.h b/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.h index db40670fbe5c2..a004f8fe712d5 100644 --- a/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.h +++ b/google/cloud/compute/resource_policies/v1/internal/resource_policies_tracing_connection.h @@ -52,13 +52,13 @@ class ResourcePoliciesTracingConnection DeleteResourcePolicyRequest const& request) override; StatusOr DeleteResourcePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: DeleteResourcePolicyRequest const& request) override; future> DeleteResourcePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetResourcePolicy( @@ -74,13 +74,13 @@ class ResourcePoliciesTracingConnection InsertResourcePolicyRequest const& request) override; StatusOr InsertResourcePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: InsertResourcePolicyRequest const& request) override; future> InsertResourcePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -92,13 +92,13 @@ class ResourcePoliciesTracingConnection PatchResourcePolicyRequest const& request) override; StatusOr PatchResourcePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: PatchResourcePolicyRequest const& request) override; future> PatchResourcePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( diff --git a/google/cloud/compute/resource_policies/v1/mocks/mock_resource_policies_connection.h b/google/cloud/compute/resource_policies/v1/mocks/mock_resource_policies_connection.h index 7699035f97a00..f6ca050b6ac1d 100644 --- a/google/cloud/compute/resource_policies/v1/mocks/mock_resource_policies_connection.h +++ b/google/cloud/compute/resource_policies/v1/mocks/mock_resource_policies_connection.h @@ -63,14 +63,14 @@ class MockResourcePoliciesConnection MOCK_METHOD(StatusOr, DeleteResourcePolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: DeleteResourcePolicyRequest const& request), (override)); MOCK_METHOD(future>, DeleteResourcePolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -93,14 +93,14 @@ class MockResourcePoliciesConnection MOCK_METHOD(StatusOr, InsertResourcePolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: InsertResourcePolicyRequest const& request), (override)); MOCK_METHOD(future>, InsertResourcePolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -118,14 +118,14 @@ class MockResourcePoliciesConnection MOCK_METHOD(StatusOr, PatchResourcePolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::resource_policies::v1:: PatchResourcePolicyRequest const& request), (override)); MOCK_METHOD(future>, PatchResourcePolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/routers/v1/internal/routers_tracing_connection.cc b/google/cloud/compute/routers/v1/internal/routers_tracing_connection.cc index 191c7726804e6..10bb0a5f6b513 100644 --- a/google/cloud/compute/routers/v1/internal/routers_tracing_connection.cc +++ b/google/cloud/compute/routers/v1/internal/routers_tracing_connection.cc @@ -59,27 +59,25 @@ RoutersTracingConnection::DeleteRouter( StatusOr RoutersTracingConnection::DeleteRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const& request) { auto span = internal::MakeSpan("compute_routers_v1::RoutersConnection::DeleteRouter"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteRouter(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteRouter(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RoutersTracingConnection::DeleteRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_routers_v1::RoutersConnection::DeleteRouter"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteRouter(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteRouter(ExperimentalTag{}, operation)); } StatusOr @@ -133,27 +131,25 @@ RoutersTracingConnection::InsertRouter( StatusOr RoutersTracingConnection::InsertRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::InsertRouterRequest const& request) { auto span = internal::MakeSpan("compute_routers_v1::RoutersConnection::InsertRouter"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertRouter(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertRouter(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RoutersTracingConnection::InsertRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_routers_v1::RoutersConnection::InsertRouter"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InsertRouter(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->InsertRouter(ExperimentalTag{}, operation)); } StreamRange @@ -179,27 +175,25 @@ RoutersTracingConnection::PatchRouter( StatusOr RoutersTracingConnection::PatchRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::PatchRouterRequest const& request) { auto span = internal::MakeSpan("compute_routers_v1::RoutersConnection::PatchRouter"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchRouter(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchRouter(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RoutersTracingConnection::PatchRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_routers_v1::RoutersConnection::PatchRouter"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchRouter(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->PatchRouter(ExperimentalTag{}, operation)); } StatusOr @@ -223,27 +217,25 @@ RoutersTracingConnection::UpdateRouter( StatusOr RoutersTracingConnection::UpdateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& request) { auto span = internal::MakeSpan("compute_routers_v1::RoutersConnection::UpdateRouter"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateRouter(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateRouter(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RoutersTracingConnection::UpdateRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_routers_v1::RoutersConnection::UpdateRouter"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateRouter(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateRouter(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/routers/v1/internal/routers_tracing_connection.h b/google/cloud/compute/routers/v1/internal/routers_tracing_connection.h index 0972ca7be4bf6..1c60bedf90b18 100644 --- a/google/cloud/compute/routers/v1/internal/routers_tracing_connection.h +++ b/google/cloud/compute/routers/v1/internal/routers_tracing_connection.h @@ -50,12 +50,12 @@ class RoutersTracingConnection : public compute_routers_v1::RoutersConnection { request) override; StatusOr DeleteRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const& request) override; future> DeleteRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetRouter( @@ -81,12 +81,12 @@ class RoutersTracingConnection : public compute_routers_v1::RoutersConnection { request) override; StatusOr InsertRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::InsertRouterRequest const& request) override; future> InsertRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListRouters( @@ -98,12 +98,12 @@ class RoutersTracingConnection : public compute_routers_v1::RoutersConnection { request) override; StatusOr PatchRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::PatchRouterRequest const& request) override; future> PatchRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr Preview( @@ -115,12 +115,12 @@ class RoutersTracingConnection : public compute_routers_v1::RoutersConnection { request) override; StatusOr UpdateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& request) override; future> UpdateRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/routers/v1/mocks/mock_routers_connection.h b/google/cloud/compute/routers/v1/mocks/mock_routers_connection.h index 14af34006ed07..2440c426a8a70 100644 --- a/google/cloud/compute/routers/v1/mocks/mock_routers_connection.h +++ b/google/cloud/compute/routers/v1/mocks/mock_routers_connection.h @@ -63,14 +63,14 @@ class MockRoutersConnection : public compute_routers_v1::RoutersConnection { MOCK_METHOD( StatusOr, DeleteRouter, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::DeleteRouterRequest const& request), (override)); MOCK_METHOD(future>, DeleteRouter, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -109,14 +109,14 @@ class MockRoutersConnection : public compute_routers_v1::RoutersConnection { MOCK_METHOD( StatusOr, InsertRouter, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::InsertRouterRequest const& request), (override)); MOCK_METHOD(future>, InsertRouter, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -133,14 +133,14 @@ class MockRoutersConnection : public compute_routers_v1::RoutersConnection { MOCK_METHOD( StatusOr, PatchRouter, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::PatchRouterRequest const& request), (override)); MOCK_METHOD(future>, PatchRouter, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -159,14 +159,14 @@ class MockRoutersConnection : public compute_routers_v1::RoutersConnection { MOCK_METHOD( StatusOr, UpdateRouter, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routers::v1::UpdateRouterRequest const& request), (override)); MOCK_METHOD(future>, UpdateRouter, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/routes/v1/internal/routes_tracing_connection.cc b/google/cloud/compute/routes/v1/internal/routes_tracing_connection.cc index b62474f6df08e..e2634d6953288 100644 --- a/google/cloud/compute/routes/v1/internal/routes_tracing_connection.cc +++ b/google/cloud/compute/routes/v1/internal/routes_tracing_connection.cc @@ -45,27 +45,25 @@ RoutesTracingConnection::DeleteRoute( StatusOr RoutesTracingConnection::DeleteRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const& request) { auto span = internal::MakeSpan("compute_routes_v1::RoutesConnection::DeleteRoute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteRoute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RoutesTracingConnection::DeleteRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_routes_v1::RoutesConnection::DeleteRoute"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteRoute(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteRoute(ExperimentalTag{}, operation)); } StatusOr @@ -89,27 +87,25 @@ RoutesTracingConnection::InsertRoute( StatusOr RoutesTracingConnection::InsertRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routes::v1::InsertRouteRequest const& request) { auto span = internal::MakeSpan("compute_routes_v1::RoutesConnection::InsertRoute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertRoute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RoutesTracingConnection::InsertRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_routes_v1::RoutesConnection::InsertRoute"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InsertRoute(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->InsertRoute(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/compute/routes/v1/internal/routes_tracing_connection.h b/google/cloud/compute/routes/v1/internal/routes_tracing_connection.h index 8c673aa569a08..e6714f69bdb4e 100644 --- a/google/cloud/compute/routes/v1/internal/routes_tracing_connection.h +++ b/google/cloud/compute/routes/v1/internal/routes_tracing_connection.h @@ -44,12 +44,12 @@ class RoutesTracingConnection : public compute_routes_v1::RoutesConnection { request) override; StatusOr DeleteRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const& request) override; future> DeleteRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetRoute( @@ -61,12 +61,12 @@ class RoutesTracingConnection : public compute_routes_v1::RoutesConnection { request) override; StatusOr InsertRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routes::v1::InsertRouteRequest const& request) override; future> InsertRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListRoutes( diff --git a/google/cloud/compute/routes/v1/mocks/mock_routes_connection.h b/google/cloud/compute/routes/v1/mocks/mock_routes_connection.h index 38334e3aec8d6..e234d0c0b23a3 100644 --- a/google/cloud/compute/routes/v1/mocks/mock_routes_connection.h +++ b/google/cloud/compute/routes/v1/mocks/mock_routes_connection.h @@ -54,14 +54,14 @@ class MockRoutesConnection : public compute_routes_v1::RoutesConnection { MOCK_METHOD( StatusOr, DeleteRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routes::v1::DeleteRouteRequest const& request), (override)); MOCK_METHOD(future>, DeleteRoute, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -78,14 +78,14 @@ class MockRoutesConnection : public compute_routes_v1::RoutesConnection { MOCK_METHOD( StatusOr, InsertRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::routes::v1::InsertRouteRequest const& request), (override)); MOCK_METHOD(future>, InsertRoute, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.cc b/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.cc index cb9bc2403276c..08ed246cee68f 100644 --- a/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.cc +++ b/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.cc @@ -46,27 +46,25 @@ SecurityPoliciesTracingConnection::AddRule( StatusOr SecurityPoliciesTracingConnection::AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const& request) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::AddRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SecurityPoliciesTracingConnection::AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::AddRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AddRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->AddRule(ExperimentalTag{}, operation)); } StreamRange SecurityPoliciesTracingConnection::DeleteSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: DeleteSecurityPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::" "DeleteSecurityPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteSecurityPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteSecurityPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SecurityPoliciesTracingConnection::DeleteSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::" "DeleteSecurityPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteSecurityPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteSecurityPolicy( + ExperimentalTag{}, operation)); } StatusOr @@ -159,29 +156,28 @@ SecurityPoliciesTracingConnection::InsertSecurityPolicy( StatusOr SecurityPoliciesTracingConnection::InsertSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: InsertSecurityPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::" "InsertSecurityPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertSecurityPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertSecurityPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SecurityPoliciesTracingConnection::InsertSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::" "InsertSecurityPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertSecurityPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertSecurityPolicy( + ExperimentalTag{}, operation)); } StreamRange @@ -225,7 +221,7 @@ SecurityPoliciesTracingConnection::PatchSecurityPolicy( StatusOr SecurityPoliciesTracingConnection::PatchSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: PatchSecurityPolicyRequest const& request) { auto span = internal::MakeSpan( @@ -233,21 +229,20 @@ SecurityPoliciesTracingConnection::PatchSecurityPolicy( "PatchSecurityPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchSecurityPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PatchSecurityPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SecurityPoliciesTracingConnection::PatchSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::" "PatchSecurityPolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchSecurityPolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchSecurityPolicy( + ExperimentalTag{}, operation)); } future> @@ -262,27 +257,25 @@ SecurityPoliciesTracingConnection::PatchRule( StatusOr SecurityPoliciesTracingConnection::PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1::PatchRuleRequest const& request) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::PatchRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SecurityPoliciesTracingConnection::PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::PatchRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->PatchRule(ExperimentalTag{}, operation)); } future> @@ -297,27 +290,25 @@ SecurityPoliciesTracingConnection::RemoveRule( StatusOr SecurityPoliciesTracingConnection::RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1::RemoveRuleRequest const& request) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::RemoveRule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RemoveRule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RemoveRule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SecurityPoliciesTracingConnection::RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::RemoveRule"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RemoveRule(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RemoveRule(ExperimentalTag{}, operation)); } future> @@ -332,27 +323,25 @@ SecurityPoliciesTracingConnection::SetLabels( StatusOr SecurityPoliciesTracingConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1::SetLabelsRequest const& request) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::SetLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SecurityPoliciesTracingConnection::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_security_policies_v1::SecurityPoliciesConnection::SetLabels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetLabels(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.h b/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.h index 3d4b189cfcc22..61a8184709c2b 100644 --- a/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.h +++ b/google/cloud/compute/security_policies/v1/internal/security_policies_tracing_connection.h @@ -46,12 +46,12 @@ class SecurityPoliciesTracingConnection request) override; StatusOr AddRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const& request) override; future> AddRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange DeleteSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: DeleteSecurityPolicyRequest const& request) override; future> DeleteSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetSecurityPolicy( @@ -87,13 +87,13 @@ class SecurityPoliciesTracingConnection InsertSecurityPolicyRequest const& request) override; StatusOr InsertSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: InsertSecurityPolicyRequest const& request) override; future> InsertSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -111,13 +111,13 @@ class SecurityPoliciesTracingConnection PatchSecurityPolicyRequest const& request) override; StatusOr PatchSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: PatchSecurityPolicyRequest const& request) override; future> PatchSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> PatchRule( @@ -125,12 +125,12 @@ class SecurityPoliciesTracingConnection PatchRuleRequest const& request) override; StatusOr PatchRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: PatchRuleRequest const& request) override; future> PatchRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> RemoveRule( @@ -138,12 +138,12 @@ class SecurityPoliciesTracingConnection RemoveRuleRequest const& request) override; StatusOr RemoveRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: RemoveRuleRequest const& request) override; future> RemoveRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetLabels( @@ -151,12 +151,12 @@ class SecurityPoliciesTracingConnection SetLabelsRequest const& request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/security_policies/v1/mocks/mock_security_policies_connection.h b/google/cloud/compute/security_policies/v1/mocks/mock_security_policies_connection.h index 3812132218d16..07c74f99f03f7 100644 --- a/google/cloud/compute/security_policies/v1/mocks/mock_security_policies_connection.h +++ b/google/cloud/compute/security_policies/v1/mocks/mock_security_policies_connection.h @@ -55,14 +55,14 @@ class MockSecurityPoliciesConnection MOCK_METHOD( StatusOr, AddRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1::AddRuleRequest const& request), (override)); MOCK_METHOD(future>, AddRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -82,14 +82,14 @@ class MockSecurityPoliciesConnection MOCK_METHOD(StatusOr, DeleteSecurityPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: DeleteSecurityPolicyRequest const& request), (override)); MOCK_METHOD(future>, DeleteSecurityPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -113,14 +113,14 @@ class MockSecurityPoliciesConnection MOCK_METHOD(StatusOr, InsertSecurityPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: InsertSecurityPolicyRequest const& request), (override)); MOCK_METHOD(future>, InsertSecurityPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -146,14 +146,14 @@ class MockSecurityPoliciesConnection MOCK_METHOD(StatusOr, PatchSecurityPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: PatchSecurityPolicyRequest const& request), (override)); MOCK_METHOD(future>, PatchSecurityPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -164,14 +164,14 @@ class MockSecurityPoliciesConnection (override)); MOCK_METHOD(StatusOr, PatchRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: PatchRuleRequest const& request), (override)); MOCK_METHOD(future>, PatchRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -182,14 +182,14 @@ class MockSecurityPoliciesConnection (override)); MOCK_METHOD(StatusOr, RemoveRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: RemoveRuleRequest const& request), (override)); MOCK_METHOD(future>, RemoveRule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -200,14 +200,14 @@ class MockSecurityPoliciesConnection (override)); MOCK_METHOD(StatusOr, SetLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::security_policies::v1:: SetLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.cc b/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.cc index 55f1a60fffafc..7e8833ffabf0b 100644 --- a/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.cc +++ b/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.cc @@ -65,29 +65,28 @@ ServiceAttachmentsTracingConnection::DeleteServiceAttachment( StatusOr ServiceAttachmentsTracingConnection::DeleteServiceAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: DeleteServiceAttachmentRequest const& request) { auto span = internal::MakeSpan( "compute_service_attachments_v1::ServiceAttachmentsConnection::" "DeleteServiceAttachment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteServiceAttachment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteServiceAttachment(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ServiceAttachmentsTracingConnection::DeleteServiceAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_service_attachments_v1::ServiceAttachmentsConnection::" "DeleteServiceAttachment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteServiceAttachment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteServiceAttachment( + ExperimentalTag{}, operation)); } StatusOr @@ -126,29 +125,28 @@ ServiceAttachmentsTracingConnection::InsertServiceAttachment( StatusOr ServiceAttachmentsTracingConnection::InsertServiceAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: InsertServiceAttachmentRequest const& request) { auto span = internal::MakeSpan( "compute_service_attachments_v1::ServiceAttachmentsConnection::" "InsertServiceAttachment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertServiceAttachment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InsertServiceAttachment(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ServiceAttachmentsTracingConnection::InsertServiceAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_service_attachments_v1::ServiceAttachmentsConnection::" "InsertServiceAttachment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertServiceAttachment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertServiceAttachment( + ExperimentalTag{}, operation)); } StreamRange @@ -179,29 +177,28 @@ ServiceAttachmentsTracingConnection::PatchServiceAttachment( StatusOr ServiceAttachmentsTracingConnection::PatchServiceAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: PatchServiceAttachmentRequest const& request) { auto span = internal::MakeSpan( "compute_service_attachments_v1::ServiceAttachmentsConnection::" "PatchServiceAttachment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchServiceAttachment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->PatchServiceAttachment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ServiceAttachmentsTracingConnection::PatchServiceAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_service_attachments_v1::ServiceAttachmentsConnection::" "PatchServiceAttachment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchServiceAttachment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchServiceAttachment( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.h b/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.h index 22941467e4dda..02f341c176997 100644 --- a/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.h +++ b/google/cloud/compute/service_attachments/v1/internal/service_attachments_tracing_connection.h @@ -55,13 +55,13 @@ class ServiceAttachmentsTracingConnection DeleteServiceAttachmentRequest const& request) override; StatusOr DeleteServiceAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: DeleteServiceAttachmentRequest const& request) override; future> DeleteServiceAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -78,13 +78,13 @@ class ServiceAttachmentsTracingConnection InsertServiceAttachmentRequest const& request) override; StatusOr InsertServiceAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: InsertServiceAttachmentRequest const& request) override; future> InsertServiceAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -97,13 +97,13 @@ class ServiceAttachmentsTracingConnection PatchServiceAttachmentRequest const& request) override; StatusOr PatchServiceAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: PatchServiceAttachmentRequest const& request) override; future> PatchServiceAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( diff --git a/google/cloud/compute/service_attachments/v1/mocks/mock_service_attachments_connection.h b/google/cloud/compute/service_attachments/v1/mocks/mock_service_attachments_connection.h index 4ae7f35118e7e..a24f3041614e6 100644 --- a/google/cloud/compute/service_attachments/v1/mocks/mock_service_attachments_connection.h +++ b/google/cloud/compute/service_attachments/v1/mocks/mock_service_attachments_connection.h @@ -63,14 +63,14 @@ class MockServiceAttachmentsConnection MOCK_METHOD(StatusOr, DeleteServiceAttachment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: DeleteServiceAttachmentRequest const& request), (override)); MOCK_METHOD(future>, DeleteServiceAttachment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -93,14 +93,14 @@ class MockServiceAttachmentsConnection MOCK_METHOD(StatusOr, InsertServiceAttachment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: InsertServiceAttachmentRequest const& request), (override)); MOCK_METHOD(future>, InsertServiceAttachment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -118,14 +118,14 @@ class MockServiceAttachmentsConnection MOCK_METHOD(StatusOr, PatchServiceAttachment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::service_attachments::v1:: PatchServiceAttachmentRequest const& request), (override)); MOCK_METHOD(future>, PatchServiceAttachment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.cc b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.cc index 43b03d45f2adc..9e7022a944511 100644 --- a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.cc +++ b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.cc @@ -58,29 +58,28 @@ SnapshotSettingsTracingConnection::PatchSnapshotSettings( StatusOr SnapshotSettingsTracingConnection::PatchSnapshotSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshot_settings::v1:: PatchSnapshotSettingsRequest const& request) { auto span = internal::MakeSpan( "compute_snapshot_settings_v1::SnapshotSettingsConnection::" "PatchSnapshotSettings"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchSnapshotSettings( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->PatchSnapshotSettings(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SnapshotSettingsTracingConnection::PatchSnapshotSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_snapshot_settings_v1::SnapshotSettingsConnection::" "PatchSnapshotSettings"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchSnapshotSettings( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchSnapshotSettings( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.h b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.h index fba77b029742c..6d94e6a8cf920 100644 --- a/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.h +++ b/google/cloud/compute/snapshot_settings/v1/internal/snapshot_settings_tracing_connection.h @@ -51,13 +51,13 @@ class SnapshotSettingsTracingConnection PatchSnapshotSettingsRequest const& request) override; StatusOr PatchSnapshotSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshot_settings::v1:: PatchSnapshotSettingsRequest const& request) override; future> PatchSnapshotSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/snapshot_settings/v1/mocks/mock_snapshot_settings_connection.h b/google/cloud/compute/snapshot_settings/v1/mocks/mock_snapshot_settings_connection.h index c2d260c5a0682..b0e65e75459de 100644 --- a/google/cloud/compute/snapshot_settings/v1/mocks/mock_snapshot_settings_connection.h +++ b/google/cloud/compute/snapshot_settings/v1/mocks/mock_snapshot_settings_connection.h @@ -61,14 +61,14 @@ class MockSnapshotSettingsConnection MOCK_METHOD(StatusOr, PatchSnapshotSettings, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshot_settings::v1:: PatchSnapshotSettingsRequest const& request), (override)); MOCK_METHOD(future>, PatchSnapshotSettings, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.cc b/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.cc index e0d0d9c6fbc25..4fadc1686fbf9 100644 --- a/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.cc +++ b/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.cc @@ -45,27 +45,25 @@ SnapshotsTracingConnection::DeleteSnapshot( StatusOr SnapshotsTracingConnection::DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const& request) { auto span = internal::MakeSpan( "compute_snapshots_v1::SnapshotsConnection::DeleteSnapshot"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSnapshot(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteSnapshot(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SnapshotsTracingConnection::DeleteSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_snapshots_v1::SnapshotsConnection::DeleteSnapshot"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteSnapshot(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteSnapshot(ExperimentalTag{}, operation)); } StatusOr @@ -100,27 +98,25 @@ SnapshotsTracingConnection::InsertSnapshot( StatusOr SnapshotsTracingConnection::InsertSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const& request) { auto span = internal::MakeSpan( "compute_snapshots_v1::SnapshotsConnection::InsertSnapshot"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertSnapshot(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertSnapshot(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SnapshotsTracingConnection::InsertSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_snapshots_v1::SnapshotsConnection::InsertSnapshot"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertSnapshot(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertSnapshot(ExperimentalTag{}, operation)); } StreamRange @@ -157,27 +153,25 @@ SnapshotsTracingConnection::SetLabels( StatusOr SnapshotsTracingConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const& request) { auto span = internal::MakeSpan( "compute_snapshots_v1::SnapshotsConnection::SetLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SnapshotsTracingConnection::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_snapshots_v1::SnapshotsConnection::SetLabels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetLabels(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.h b/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.h index 69b4cee95016b..b0335c26999ba 100644 --- a/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.h +++ b/google/cloud/compute/snapshots/v1/internal/snapshots_tracing_connection.h @@ -45,12 +45,12 @@ class SnapshotsTracingConnection request) override; StatusOr DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const& request) override; future> DeleteSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetSnapshot( @@ -66,12 +66,12 @@ class SnapshotsTracingConnection request) override; StatusOr InsertSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const& request) override; future> InsertSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListSnapshots( @@ -87,12 +87,12 @@ class SnapshotsTracingConnection request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr diff --git a/google/cloud/compute/snapshots/v1/mocks/mock_snapshots_connection.h b/google/cloud/compute/snapshots/v1/mocks/mock_snapshots_connection.h index 4f5b0e84e8896..b5b2c3bf07119 100644 --- a/google/cloud/compute/snapshots/v1/mocks/mock_snapshots_connection.h +++ b/google/cloud/compute/snapshots/v1/mocks/mock_snapshots_connection.h @@ -56,14 +56,14 @@ class MockSnapshotsConnection MOCK_METHOD( StatusOr, DeleteSnapshot, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::DeleteSnapshotRequest const& request), (override)); MOCK_METHOD(future>, DeleteSnapshot, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -88,14 +88,14 @@ class MockSnapshotsConnection MOCK_METHOD( StatusOr, InsertSnapshot, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::InsertSnapshotRequest const& request), (override)); MOCK_METHOD(future>, InsertSnapshot, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -119,14 +119,14 @@ class MockSnapshotsConnection MOCK_METHOD( StatusOr, SetLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::snapshots::v1::SetLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.cc b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.cc index 5b029f9adc288..6b4e5822b8e8a 100644 --- a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.cc +++ b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.cc @@ -63,29 +63,28 @@ SslCertificatesTracingConnection::DeleteSslCertificate( StatusOr SslCertificatesTracingConnection::DeleteSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_certificates::v1:: DeleteSslCertificateRequest const& request) { auto span = internal::MakeSpan( "compute_ssl_certificates_v1::SslCertificatesConnection::" "DeleteSslCertificate"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteSslCertificate( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteSslCertificate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SslCertificatesTracingConnection::DeleteSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_ssl_certificates_v1::SslCertificatesConnection::" "DeleteSslCertificate"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteSslCertificate( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteSslCertificate( + ExperimentalTag{}, operation)); } StatusOr @@ -113,29 +112,28 @@ SslCertificatesTracingConnection::InsertSslCertificate( StatusOr SslCertificatesTracingConnection::InsertSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_certificates::v1:: InsertSslCertificateRequest const& request) { auto span = internal::MakeSpan( "compute_ssl_certificates_v1::SslCertificatesConnection::" "InsertSslCertificate"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertSslCertificate( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertSslCertificate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SslCertificatesTracingConnection::InsertSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_ssl_certificates_v1::SslCertificatesConnection::" "InsertSslCertificate"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertSslCertificate( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertSslCertificate( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.h b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.h index e096de607c44f..822838dbadde1 100644 --- a/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.h +++ b/google/cloud/compute/ssl_certificates/v1/internal/ssl_certificates_tracing_connection.h @@ -52,13 +52,13 @@ class SslCertificatesTracingConnection DeleteSslCertificateRequest const& request) override; StatusOr DeleteSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_certificates::v1:: DeleteSslCertificateRequest const& request) override; future> DeleteSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetSslCertificate( @@ -70,13 +70,13 @@ class SslCertificatesTracingConnection InsertSslCertificateRequest const& request) override; StatusOr InsertSslCertificate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_certificates::v1:: InsertSslCertificateRequest const& request) override; future> InsertSslCertificate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange diff --git a/google/cloud/compute/ssl_certificates/v1/mocks/mock_ssl_certificates_connection.h b/google/cloud/compute/ssl_certificates/v1/mocks/mock_ssl_certificates_connection.h index e0e8586681450..3815cff732f3e 100644 --- a/google/cloud/compute/ssl_certificates/v1/mocks/mock_ssl_certificates_connection.h +++ b/google/cloud/compute/ssl_certificates/v1/mocks/mock_ssl_certificates_connection.h @@ -63,14 +63,14 @@ class MockSslCertificatesConnection MOCK_METHOD(StatusOr, DeleteSslCertificate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_certificates::v1:: DeleteSslCertificateRequest const& request), (override)); MOCK_METHOD(future>, DeleteSslCertificate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -88,14 +88,14 @@ class MockSslCertificatesConnection MOCK_METHOD(StatusOr, InsertSslCertificate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_certificates::v1:: InsertSslCertificateRequest const& request), (override)); MOCK_METHOD(future>, InsertSslCertificate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.cc b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.cc index 005893f3d3135..5c9aca89f938c 100644 --- a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.cc +++ b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.cc @@ -60,27 +60,25 @@ SslPoliciesTracingConnection::DeleteSslPolicy( StatusOr SslPoliciesTracingConnection::DeleteSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1::DeleteSslPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_ssl_policies_v1::SslPoliciesConnection::DeleteSslPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSslPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteSslPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SslPoliciesTracingConnection::DeleteSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_ssl_policies_v1::SslPoliciesConnection::DeleteSslPolicy"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteSslPolicy(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteSslPolicy(ExperimentalTag{}, operation)); } StatusOr @@ -105,27 +103,25 @@ SslPoliciesTracingConnection::InsertSslPolicy( StatusOr SslPoliciesTracingConnection::InsertSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1::InsertSslPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_ssl_policies_v1::SslPoliciesConnection::InsertSslPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertSslPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertSslPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SslPoliciesTracingConnection::InsertSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_ssl_policies_v1::SslPoliciesConnection::InsertSslPolicy"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertSslPolicy(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertSslPolicy(ExperimentalTag{}, operation)); } StreamRange @@ -164,27 +160,25 @@ SslPoliciesTracingConnection::PatchSslPolicy( StatusOr SslPoliciesTracingConnection::PatchSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1::PatchSslPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_ssl_policies_v1::SslPoliciesConnection::PatchSslPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchSslPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchSslPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SslPoliciesTracingConnection::PatchSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_ssl_policies_v1::SslPoliciesConnection::PatchSslPolicy"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->PatchSslPolicy(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->PatchSslPolicy(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.h b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.h index f4d27582518ca..6f3d8750431e3 100644 --- a/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.h +++ b/google/cloud/compute/ssl_policies/v1/internal/ssl_policies_tracing_connection.h @@ -51,12 +51,12 @@ class SslPoliciesTracingConnection DeleteSslPolicyRequest const& request) override; StatusOr DeleteSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1:: DeleteSslPolicyRequest const& request) override; future> DeleteSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetSslPolicy( @@ -68,12 +68,12 @@ class SslPoliciesTracingConnection InsertSslPolicyRequest const& request) override; StatusOr InsertSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1:: InsertSslPolicyRequest const& request) override; future> InsertSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListSslPolicies( @@ -91,12 +91,12 @@ class SslPoliciesTracingConnection PatchSslPolicyRequest const& request) override; StatusOr PatchSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1:: PatchSslPolicyRequest const& request) override; future> PatchSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/ssl_policies/v1/mocks/mock_ssl_policies_connection.h b/google/cloud/compute/ssl_policies/v1/mocks/mock_ssl_policies_connection.h index 68b63538dccec..c077d3ea58d07 100644 --- a/google/cloud/compute/ssl_policies/v1/mocks/mock_ssl_policies_connection.h +++ b/google/cloud/compute/ssl_policies/v1/mocks/mock_ssl_policies_connection.h @@ -64,14 +64,14 @@ class MockSslPoliciesConnection MOCK_METHOD(StatusOr, DeleteSslPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1:: DeleteSslPolicyRequest const& request), (override)); MOCK_METHOD(future>, DeleteSslPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -89,14 +89,14 @@ class MockSslPoliciesConnection MOCK_METHOD(StatusOr, InsertSslPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1:: InsertSslPolicyRequest const& request), (override)); MOCK_METHOD(future>, InsertSslPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -122,14 +122,14 @@ class MockSslPoliciesConnection MOCK_METHOD(StatusOr, PatchSslPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::ssl_policies::v1:: PatchSslPolicyRequest const& request), (override)); MOCK_METHOD(future>, PatchSslPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.cc b/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.cc index dbeb4b54bc545..7795a3d30a608 100644 --- a/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.cc +++ b/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.cc @@ -60,27 +60,26 @@ StoragePoolsTracingConnection::DeleteStoragePool( StatusOr StoragePoolsTracingConnection::DeleteStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: DeleteStoragePoolRequest const& request) { auto span = internal::MakeSpan( "compute_storage_pools_v1::StoragePoolsConnection::DeleteStoragePool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteStoragePool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteStoragePool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> StoragePoolsTracingConnection::DeleteStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_storage_pools_v1::StoragePoolsConnection::DeleteStoragePool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteStoragePool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteStoragePool(ExperimentalTag{}, operation)); } StatusOr @@ -115,27 +114,26 @@ StoragePoolsTracingConnection::InsertStoragePool( StatusOr StoragePoolsTracingConnection::InsertStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: InsertStoragePoolRequest const& request) { auto span = internal::MakeSpan( "compute_storage_pools_v1::StoragePoolsConnection::InsertStoragePool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertStoragePool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->InsertStoragePool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> StoragePoolsTracingConnection::InsertStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_storage_pools_v1::StoragePoolsConnection::InsertStoragePool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertStoragePool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertStoragePool(ExperimentalTag{}, operation)); } StreamRange @@ -195,27 +193,26 @@ StoragePoolsTracingConnection::UpdateStoragePool( StatusOr StoragePoolsTracingConnection::UpdateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: UpdateStoragePoolRequest const& request) { auto span = internal::MakeSpan( "compute_storage_pools_v1::StoragePoolsConnection::UpdateStoragePool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateStoragePool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateStoragePool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> StoragePoolsTracingConnection::UpdateStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_storage_pools_v1::StoragePoolsConnection::UpdateStoragePool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateStoragePool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateStoragePool(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.h b/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.h index 326e92bad0054..a67eb879be71f 100644 --- a/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.h +++ b/google/cloud/compute/storage_pools/v1/internal/storage_pools_tracing_connection.h @@ -51,13 +51,13 @@ class StoragePoolsTracingConnection DeleteStoragePoolRequest const& request) override; StatusOr DeleteStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: DeleteStoragePoolRequest const& request) override; future> DeleteStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetStoragePool( @@ -73,13 +73,13 @@ class StoragePoolsTracingConnection InsertStoragePoolRequest const& request) override; StatusOr InsertStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: InsertStoragePoolRequest const& request) override; future> InsertStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListStoragePools( @@ -103,13 +103,13 @@ class StoragePoolsTracingConnection UpdateStoragePoolRequest const& request) override; StatusOr UpdateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: UpdateStoragePoolRequest const& request) override; future> UpdateStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/storage_pools/v1/mocks/mock_storage_pools_connection.h b/google/cloud/compute/storage_pools/v1/mocks/mock_storage_pools_connection.h index cd2df449fc400..2b0141a5f8199 100644 --- a/google/cloud/compute/storage_pools/v1/mocks/mock_storage_pools_connection.h +++ b/google/cloud/compute/storage_pools/v1/mocks/mock_storage_pools_connection.h @@ -64,14 +64,14 @@ class MockStoragePoolsConnection MOCK_METHOD(StatusOr, DeleteStoragePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: DeleteStoragePoolRequest const& request), (override)); MOCK_METHOD(future>, DeleteStoragePool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -94,14 +94,14 @@ class MockStoragePoolsConnection MOCK_METHOD(StatusOr, InsertStoragePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: InsertStoragePoolRequest const& request), (override)); MOCK_METHOD(future>, InsertStoragePool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -138,14 +138,14 @@ class MockStoragePoolsConnection MOCK_METHOD(StatusOr, UpdateStoragePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::storage_pools::v1:: UpdateStoragePoolRequest const& request), (override)); MOCK_METHOD(future>, UpdateStoragePool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.cc b/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.cc index ea878df29080b..745aa5314a3cc 100644 --- a/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.cc +++ b/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.cc @@ -60,27 +60,26 @@ SubnetworksTracingConnection::DeleteSubnetwork( StatusOr SubnetworksTracingConnection::DeleteSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1::DeleteSubnetworkRequest const& request) { auto span = internal::MakeSpan( "compute_subnetworks_v1::SubnetworksConnection::DeleteSubnetwork"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSubnetwork(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteSubnetwork(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SubnetworksTracingConnection::DeleteSubnetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_subnetworks_v1::SubnetworksConnection::DeleteSubnetwork"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteSubnetwork(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteSubnetwork(ExperimentalTag{}, operation)); } future> @@ -95,27 +94,26 @@ SubnetworksTracingConnection::ExpandIpCidrRange( StatusOr SubnetworksTracingConnection::ExpandIpCidrRange( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: ExpandIpCidrRangeRequest const& request) { auto span = internal::MakeSpan( "compute_subnetworks_v1::SubnetworksConnection::ExpandIpCidrRange"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExpandIpCidrRange(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ExpandIpCidrRange(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SubnetworksTracingConnection::ExpandIpCidrRange( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_subnetworks_v1::SubnetworksConnection::ExpandIpCidrRange"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ExpandIpCidrRange(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ExpandIpCidrRange(ExperimentalTag{}, operation)); } StatusOr @@ -150,27 +148,26 @@ SubnetworksTracingConnection::InsertSubnetwork( StatusOr SubnetworksTracingConnection::InsertSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1::InsertSubnetworkRequest const& request) { auto span = internal::MakeSpan( "compute_subnetworks_v1::SubnetworksConnection::InsertSubnetwork"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertSubnetwork(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->InsertSubnetwork(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SubnetworksTracingConnection::InsertSubnetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_subnetworks_v1::SubnetworksConnection::InsertSubnetwork"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertSubnetwork(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertSubnetwork(ExperimentalTag{}, operation)); } StreamRange @@ -210,27 +207,25 @@ SubnetworksTracingConnection::PatchSubnetwork( StatusOr SubnetworksTracingConnection::PatchSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1::PatchSubnetworkRequest const& request) { auto span = internal::MakeSpan( "compute_subnetworks_v1::SubnetworksConnection::PatchSubnetwork"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchSubnetwork(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchSubnetwork(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SubnetworksTracingConnection::PatchSubnetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_subnetworks_v1::SubnetworksConnection::PatchSubnetwork"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->PatchSubnetwork(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->PatchSubnetwork(ExperimentalTag{}, operation)); } StatusOr @@ -257,29 +252,28 @@ SubnetworksTracingConnection::SetPrivateIpGoogleAccess( StatusOr SubnetworksTracingConnection::SetPrivateIpGoogleAccess( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: SetPrivateIpGoogleAccessRequest const& request) { auto span = internal::MakeSpan( "compute_subnetworks_v1::SubnetworksConnection::" "SetPrivateIpGoogleAccess"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SetPrivateIpGoogleAccess( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->SetPrivateIpGoogleAccess(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> SubnetworksTracingConnection::SetPrivateIpGoogleAccess( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_subnetworks_v1::SubnetworksConnection::" "SetPrivateIpGoogleAccess"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SetPrivateIpGoogleAccess( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetPrivateIpGoogleAccess( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.h b/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.h index b23b3651bda54..f7350d9750225 100644 --- a/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.h +++ b/google/cloud/compute/subnetworks/v1/internal/subnetworks_tracing_connection.h @@ -51,12 +51,12 @@ class SubnetworksTracingConnection DeleteSubnetworkRequest const& request) override; StatusOr DeleteSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: DeleteSubnetworkRequest const& request) override; future> DeleteSubnetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -64,13 +64,13 @@ class SubnetworksTracingConnection ExpandIpCidrRangeRequest const& request) override; StatusOr ExpandIpCidrRange( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: ExpandIpCidrRangeRequest const& request) override; future> ExpandIpCidrRange( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetSubnetwork( @@ -86,12 +86,12 @@ class SubnetworksTracingConnection InsertSubnetworkRequest const& request) override; StatusOr InsertSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: InsertSubnetworkRequest const& request) override; future> InsertSubnetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListSubnetworks( @@ -107,12 +107,12 @@ class SubnetworksTracingConnection PatchSubnetworkRequest const& request) override; StatusOr PatchSubnetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: PatchSubnetworkRequest const& request) override; future> PatchSubnetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr SetIamPolicy( @@ -125,13 +125,13 @@ class SubnetworksTracingConnection SetPrivateIpGoogleAccessRequest const& request) override; StatusOr SetPrivateIpGoogleAccess( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: SetPrivateIpGoogleAccessRequest const& request) override; future> SetPrivateIpGoogleAccess( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr diff --git a/google/cloud/compute/subnetworks/v1/mocks/mock_subnetworks_connection.h b/google/cloud/compute/subnetworks/v1/mocks/mock_subnetworks_connection.h index cebbc8a55e269..cf7b5d88ac913 100644 --- a/google/cloud/compute/subnetworks/v1/mocks/mock_subnetworks_connection.h +++ b/google/cloud/compute/subnetworks/v1/mocks/mock_subnetworks_connection.h @@ -64,14 +64,14 @@ class MockSubnetworksConnection MOCK_METHOD(StatusOr, DeleteSubnetwork, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: DeleteSubnetworkRequest const& request), (override)); MOCK_METHOD(future>, DeleteSubnetwork, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -83,14 +83,14 @@ class MockSubnetworksConnection MOCK_METHOD(StatusOr, ExpandIpCidrRange, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: ExpandIpCidrRangeRequest const& request), (override)); MOCK_METHOD(future>, ExpandIpCidrRange, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -114,14 +114,14 @@ class MockSubnetworksConnection MOCK_METHOD(StatusOr, InsertSubnetwork, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: InsertSubnetworkRequest const& request), (override)); MOCK_METHOD(future>, InsertSubnetwork, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -146,14 +146,14 @@ class MockSubnetworksConnection MOCK_METHOD(StatusOr, PatchSubnetwork, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: PatchSubnetworkRequest const& request), (override)); MOCK_METHOD(future>, PatchSubnetwork, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -171,14 +171,14 @@ class MockSubnetworksConnection MOCK_METHOD(StatusOr, SetPrivateIpGoogleAccess, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::subnetworks::v1:: SetPrivateIpGoogleAccessRequest const& request), (override)); MOCK_METHOD(future>, SetPrivateIpGoogleAccess, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.cc b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.cc index 26c89e23324c2..bd694b698980f 100644 --- a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.cc +++ b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.cc @@ -48,29 +48,28 @@ TargetGrpcProxiesTracingConnection::DeleteTargetGrpcProxy( StatusOr TargetGrpcProxiesTracingConnection::DeleteTargetGrpcProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: DeleteTargetGrpcProxyRequest const& request) { auto span = internal::MakeSpan( "compute_target_grpc_proxies_v1::TargetGrpcProxiesConnection::" "DeleteTargetGrpcProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteTargetGrpcProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteTargetGrpcProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetGrpcProxiesTracingConnection::DeleteTargetGrpcProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_grpc_proxies_v1::TargetGrpcProxiesConnection::" "DeleteTargetGrpcProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteTargetGrpcProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteTargetGrpcProxy( + ExperimentalTag{}, operation)); } StatusOr @@ -98,29 +97,28 @@ TargetGrpcProxiesTracingConnection::InsertTargetGrpcProxy( StatusOr TargetGrpcProxiesTracingConnection::InsertTargetGrpcProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: InsertTargetGrpcProxyRequest const& request) { auto span = internal::MakeSpan( "compute_target_grpc_proxies_v1::TargetGrpcProxiesConnection::" "InsertTargetGrpcProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertTargetGrpcProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertTargetGrpcProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetGrpcProxiesTracingConnection::InsertTargetGrpcProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_grpc_proxies_v1::TargetGrpcProxiesConnection::" "InsertTargetGrpcProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertTargetGrpcProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertTargetGrpcProxy( + ExperimentalTag{}, operation)); } StreamRange @@ -151,29 +149,28 @@ TargetGrpcProxiesTracingConnection::PatchTargetGrpcProxy( StatusOr TargetGrpcProxiesTracingConnection::PatchTargetGrpcProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: PatchTargetGrpcProxyRequest const& request) { auto span = internal::MakeSpan( "compute_target_grpc_proxies_v1::TargetGrpcProxiesConnection::" "PatchTargetGrpcProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchTargetGrpcProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->PatchTargetGrpcProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetGrpcProxiesTracingConnection::PatchTargetGrpcProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_grpc_proxies_v1::TargetGrpcProxiesConnection::" "PatchTargetGrpcProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchTargetGrpcProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchTargetGrpcProxy( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.h b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.h index aa93dee6269f2..9e1cafa009816 100644 --- a/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.h +++ b/google/cloud/compute/target_grpc_proxies/v1/internal/target_grpc_proxies_tracing_connection.h @@ -48,13 +48,13 @@ class TargetGrpcProxiesTracingConnection DeleteTargetGrpcProxyRequest const& request) override; StatusOr DeleteTargetGrpcProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: DeleteTargetGrpcProxyRequest const& request) override; future> DeleteTargetGrpcProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetTargetGrpcProxy( @@ -67,13 +67,13 @@ class TargetGrpcProxiesTracingConnection InsertTargetGrpcProxyRequest const& request) override; StatusOr InsertTargetGrpcProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: InsertTargetGrpcProxyRequest const& request) override; future> InsertTargetGrpcProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -85,13 +85,13 @@ class TargetGrpcProxiesTracingConnection PatchTargetGrpcProxyRequest const& request) override; StatusOr PatchTargetGrpcProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: PatchTargetGrpcProxyRequest const& request) override; future> PatchTargetGrpcProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/target_grpc_proxies/v1/mocks/mock_target_grpc_proxies_connection.h b/google/cloud/compute/target_grpc_proxies/v1/mocks/mock_target_grpc_proxies_connection.h index 6cca4af02e56d..f251c327d6287 100644 --- a/google/cloud/compute/target_grpc_proxies/v1/mocks/mock_target_grpc_proxies_connection.h +++ b/google/cloud/compute/target_grpc_proxies/v1/mocks/mock_target_grpc_proxies_connection.h @@ -55,14 +55,14 @@ class MockTargetGrpcProxiesConnection MOCK_METHOD(StatusOr, DeleteTargetGrpcProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: DeleteTargetGrpcProxyRequest const& request), (override)); MOCK_METHOD(future>, DeleteTargetGrpcProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -80,14 +80,14 @@ class MockTargetGrpcProxiesConnection MOCK_METHOD(StatusOr, InsertTargetGrpcProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: InsertTargetGrpcProxyRequest const& request), (override)); MOCK_METHOD(future>, InsertTargetGrpcProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -105,14 +105,14 @@ class MockTargetGrpcProxiesConnection MOCK_METHOD(StatusOr, PatchTargetGrpcProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_grpc_proxies::v1:: PatchTargetGrpcProxyRequest const& request), (override)); MOCK_METHOD(future>, PatchTargetGrpcProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.cc b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.cc index dfe328a95368d..c59dabdff3b4f 100644 --- a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.cc +++ b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.cc @@ -64,29 +64,28 @@ TargetHttpProxiesTracingConnection::DeleteTargetHttpProxy( StatusOr TargetHttpProxiesTracingConnection::DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request) { auto span = internal::MakeSpan( "compute_target_http_proxies_v1::TargetHttpProxiesConnection::" "DeleteTargetHttpProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteTargetHttpProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteTargetHttpProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetHttpProxiesTracingConnection::DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_http_proxies_v1::TargetHttpProxiesConnection::" "DeleteTargetHttpProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteTargetHttpProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteTargetHttpProxy( + ExperimentalTag{}, operation)); } StatusOr @@ -114,29 +113,28 @@ TargetHttpProxiesTracingConnection::InsertTargetHttpProxy( StatusOr TargetHttpProxiesTracingConnection::InsertTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request) { auto span = internal::MakeSpan( "compute_target_http_proxies_v1::TargetHttpProxiesConnection::" "InsertTargetHttpProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertTargetHttpProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertTargetHttpProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetHttpProxiesTracingConnection::InsertTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_http_proxies_v1::TargetHttpProxiesConnection::" "InsertTargetHttpProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertTargetHttpProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertTargetHttpProxy( + ExperimentalTag{}, operation)); } StreamRange @@ -167,29 +165,28 @@ TargetHttpProxiesTracingConnection::PatchTargetHttpProxy( StatusOr TargetHttpProxiesTracingConnection::PatchTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: PatchTargetHttpProxyRequest const& request) { auto span = internal::MakeSpan( "compute_target_http_proxies_v1::TargetHttpProxiesConnection::" "PatchTargetHttpProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchTargetHttpProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->PatchTargetHttpProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetHttpProxiesTracingConnection::PatchTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_http_proxies_v1::TargetHttpProxiesConnection::" "PatchTargetHttpProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchTargetHttpProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchTargetHttpProxy( + ExperimentalTag{}, operation)); } future> @@ -204,27 +201,25 @@ TargetHttpProxiesTracingConnection::SetUrlMap( StatusOr TargetHttpProxiesTracingConnection::SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: SetUrlMapRequest const& request) { auto span = internal::MakeSpan( "compute_target_http_proxies_v1::TargetHttpProxiesConnection::SetUrlMap"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetUrlMap(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetUrlMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetHttpProxiesTracingConnection::SetUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_http_proxies_v1::TargetHttpProxiesConnection::SetUrlMap"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetUrlMap(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetUrlMap(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.h b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.h index 9cdfc2647df2e..6ec111e53470b 100644 --- a/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.h +++ b/google/cloud/compute/target_http_proxies/v1/internal/target_http_proxies_tracing_connection.h @@ -55,13 +55,13 @@ class TargetHttpProxiesTracingConnection DeleteTargetHttpProxyRequest const& request) override; StatusOr DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request) override; future> DeleteTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetTargetHttpProxy( @@ -74,13 +74,13 @@ class TargetHttpProxiesTracingConnection InsertTargetHttpProxyRequest const& request) override; StatusOr InsertTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request) override; future> InsertTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -92,13 +92,13 @@ class TargetHttpProxiesTracingConnection PatchTargetHttpProxyRequest const& request) override; StatusOr PatchTargetHttpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: PatchTargetHttpProxyRequest const& request) override; future> PatchTargetHttpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetUrlMap( @@ -106,12 +106,12 @@ class TargetHttpProxiesTracingConnection SetUrlMapRequest const& request) override; StatusOr SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: SetUrlMapRequest const& request) override; future> SetUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/target_http_proxies/v1/mocks/mock_target_http_proxies_connection.h b/google/cloud/compute/target_http_proxies/v1/mocks/mock_target_http_proxies_connection.h index a4c28472384e5..a52fcbbb88bd9 100644 --- a/google/cloud/compute/target_http_proxies/v1/mocks/mock_target_http_proxies_connection.h +++ b/google/cloud/compute/target_http_proxies/v1/mocks/mock_target_http_proxies_connection.h @@ -63,14 +63,14 @@ class MockTargetHttpProxiesConnection MOCK_METHOD(StatusOr, DeleteTargetHttpProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: DeleteTargetHttpProxyRequest const& request), (override)); MOCK_METHOD(future>, DeleteTargetHttpProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -88,14 +88,14 @@ class MockTargetHttpProxiesConnection MOCK_METHOD(StatusOr, InsertTargetHttpProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: InsertTargetHttpProxyRequest const& request), (override)); MOCK_METHOD(future>, InsertTargetHttpProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -113,14 +113,14 @@ class MockTargetHttpProxiesConnection MOCK_METHOD(StatusOr, PatchTargetHttpProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: PatchTargetHttpProxyRequest const& request), (override)); MOCK_METHOD(future>, PatchTargetHttpProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -131,14 +131,14 @@ class MockTargetHttpProxiesConnection (override)); MOCK_METHOD(StatusOr, SetUrlMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_http_proxies::v1:: SetUrlMapRequest const& request), (override)); MOCK_METHOD(future>, SetUrlMap, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.cc b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.cc index a5e15e43834e2..9f46638dd8113 100644 --- a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.cc +++ b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.cc @@ -66,29 +66,28 @@ TargetHttpsProxiesTracingConnection::DeleteTargetHttpsProxy( StatusOr TargetHttpsProxiesTracingConnection::DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request) { auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "DeleteTargetHttpsProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteTargetHttpsProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetHttpsProxiesTracingConnection::DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "DeleteTargetHttpsProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteTargetHttpsProxy( + ExperimentalTag{}, operation)); } StatusOr @@ -116,29 +115,28 @@ TargetHttpsProxiesTracingConnection::InsertTargetHttpsProxy( StatusOr TargetHttpsProxiesTracingConnection::InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request) { auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "InsertTargetHttpsProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertTargetHttpsProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertTargetHttpsProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetHttpsProxiesTracingConnection::InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "InsertTargetHttpsProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertTargetHttpsProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertTargetHttpsProxy( + ExperimentalTag{}, operation)); } StreamRange @@ -169,29 +167,28 @@ TargetHttpsProxiesTracingConnection::PatchTargetHttpsProxy( StatusOr TargetHttpsProxiesTracingConnection::PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request) { auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "PatchTargetHttpsProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PatchTargetHttpsProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->PatchTargetHttpsProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetHttpsProxiesTracingConnection::PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "PatchTargetHttpsProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PatchTargetHttpsProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PatchTargetHttpsProxy( + ExperimentalTag{}, operation)); } future> @@ -207,7 +204,7 @@ TargetHttpsProxiesTracingConnection::SetCertificateMap( StatusOr TargetHttpsProxiesTracingConnection::SetCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetCertificateMapRequest const& request) { auto span = internal::MakeSpan( @@ -215,21 +212,20 @@ TargetHttpsProxiesTracingConnection::SetCertificateMap( "SetCertificateMap"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetCertificateMap(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetCertificateMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetHttpsProxiesTracingConnection::SetCertificateMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "SetCertificateMap"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetCertificateMap(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetCertificateMap(ExperimentalTag{}, operation)); } future> @@ -245,7 +241,7 @@ TargetHttpsProxiesTracingConnection::SetQuicOverride( StatusOr TargetHttpsProxiesTracingConnection::SetQuicOverride( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetQuicOverrideRequest const& request) { auto span = internal::MakeSpan( @@ -253,21 +249,19 @@ TargetHttpsProxiesTracingConnection::SetQuicOverride( "SetQuicOverride"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetQuicOverride(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetQuicOverride(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetHttpsProxiesTracingConnection::SetQuicOverride( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "SetQuicOverride"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetQuicOverride(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetQuicOverride(ExperimentalTag{}, operation)); } future> @@ -284,7 +278,7 @@ TargetHttpsProxiesTracingConnection::SetSslCertificates( StatusOr TargetHttpsProxiesTracingConnection::SetSslCertificates( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetSslCertificatesRequest const& request) { auto span = internal::MakeSpan( @@ -292,21 +286,20 @@ TargetHttpsProxiesTracingConnection::SetSslCertificates( "SetSslCertificates"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetSslCertificates(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetSslCertificates(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetHttpsProxiesTracingConnection::SetSslCertificates( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "SetSslCertificates"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetSslCertificates(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetSslCertificates( + ExperimentalTag{}, operation)); } future> @@ -322,7 +315,7 @@ TargetHttpsProxiesTracingConnection::SetSslPolicy( StatusOr TargetHttpsProxiesTracingConnection::SetSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetSslPolicyRequest const& request) { auto span = internal::MakeSpan( @@ -330,21 +323,19 @@ TargetHttpsProxiesTracingConnection::SetSslPolicy( "SetSslPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetSslPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetSslPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetHttpsProxiesTracingConnection::SetSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "SetSslPolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetSslPolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetSslPolicy(ExperimentalTag{}, operation)); } future> @@ -360,7 +351,7 @@ TargetHttpsProxiesTracingConnection::SetUrlMap( StatusOr TargetHttpsProxiesTracingConnection::SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetUrlMapRequest const& request) { auto span = internal::MakeSpan( @@ -368,21 +359,19 @@ TargetHttpsProxiesTracingConnection::SetUrlMap( "SetUrlMap"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetUrlMap(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetUrlMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetHttpsProxiesTracingConnection::SetUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_https_proxies_v1::TargetHttpsProxiesConnection::" "SetUrlMap"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetUrlMap(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetUrlMap(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.h b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.h index a31407d46b54b..503e5bc65c63a 100644 --- a/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.h +++ b/google/cloud/compute/target_https_proxies/v1/internal/target_https_proxies_tracing_connection.h @@ -56,13 +56,13 @@ class TargetHttpsProxiesTracingConnection DeleteTargetHttpsProxyRequest const& request) override; StatusOr DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request) override; future> DeleteTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -75,13 +75,13 @@ class TargetHttpsProxiesTracingConnection InsertTargetHttpsProxyRequest const& request) override; StatusOr InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request) override; future> InsertTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -94,13 +94,13 @@ class TargetHttpsProxiesTracingConnection PatchTargetHttpsProxyRequest const& request) override; StatusOr PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request) override; future> PatchTargetHttpsProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -108,13 +108,13 @@ class TargetHttpsProxiesTracingConnection SetCertificateMapRequest const& request) override; StatusOr SetCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetCertificateMapRequest const& request) override; future> SetCertificateMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetQuicOverride( @@ -122,12 +122,12 @@ class TargetHttpsProxiesTracingConnection SetQuicOverrideRequest const& request) override; StatusOr SetQuicOverride( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetQuicOverrideRequest const& request) override; future> SetQuicOverride( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -135,13 +135,13 @@ class TargetHttpsProxiesTracingConnection SetSslCertificatesRequest const& request) override; StatusOr SetSslCertificates( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetSslCertificatesRequest const& request) override; future> SetSslCertificates( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetSslPolicy( @@ -149,12 +149,12 @@ class TargetHttpsProxiesTracingConnection SetSslPolicyRequest const& request) override; StatusOr SetSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetSslPolicyRequest const& request) override; future> SetSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetUrlMap( @@ -162,12 +162,12 @@ class TargetHttpsProxiesTracingConnection SetUrlMapRequest const& request) override; StatusOr SetUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetUrlMapRequest const& request) override; future> SetUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/target_https_proxies/v1/mocks/mock_target_https_proxies_connection.h b/google/cloud/compute/target_https_proxies/v1/mocks/mock_target_https_proxies_connection.h index cb15faaab5f9e..c45e59270eca2 100644 --- a/google/cloud/compute/target_https_proxies/v1/mocks/mock_target_https_proxies_connection.h +++ b/google/cloud/compute/target_https_proxies/v1/mocks/mock_target_https_proxies_connection.h @@ -64,14 +64,14 @@ class MockTargetHttpsProxiesConnection MOCK_METHOD(StatusOr, DeleteTargetHttpsProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: DeleteTargetHttpsProxyRequest const& request), (override)); MOCK_METHOD(future>, DeleteTargetHttpsProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -89,14 +89,14 @@ class MockTargetHttpsProxiesConnection MOCK_METHOD(StatusOr, InsertTargetHttpsProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: InsertTargetHttpsProxyRequest const& request), (override)); MOCK_METHOD(future>, InsertTargetHttpsProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -114,14 +114,14 @@ class MockTargetHttpsProxiesConnection MOCK_METHOD(StatusOr, PatchTargetHttpsProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: PatchTargetHttpsProxyRequest const& request), (override)); MOCK_METHOD(future>, PatchTargetHttpsProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -133,14 +133,14 @@ class MockTargetHttpsProxiesConnection MOCK_METHOD(StatusOr, SetCertificateMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetCertificateMapRequest const& request), (override)); MOCK_METHOD(future>, SetCertificateMap, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -152,14 +152,14 @@ class MockTargetHttpsProxiesConnection MOCK_METHOD(StatusOr, SetQuicOverride, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetQuicOverrideRequest const& request), (override)); MOCK_METHOD(future>, SetQuicOverride, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -171,14 +171,14 @@ class MockTargetHttpsProxiesConnection MOCK_METHOD(StatusOr, SetSslCertificates, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetSslCertificatesRequest const& request), (override)); MOCK_METHOD(future>, SetSslCertificates, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -190,14 +190,14 @@ class MockTargetHttpsProxiesConnection MOCK_METHOD(StatusOr, SetSslPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetSslPolicyRequest const& request), (override)); MOCK_METHOD(future>, SetSslPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -208,14 +208,14 @@ class MockTargetHttpsProxiesConnection (override)); MOCK_METHOD(StatusOr, SetUrlMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_https_proxies::v1:: SetUrlMapRequest const& request), (override)); MOCK_METHOD(future>, SetUrlMap, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.cc b/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.cc index 3c9aa1c336300..d103b44b2017b 100644 --- a/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.cc +++ b/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.cc @@ -63,29 +63,28 @@ TargetInstancesTracingConnection::DeleteTargetInstance( StatusOr TargetInstancesTracingConnection::DeleteTargetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: DeleteTargetInstanceRequest const& request) { auto span = internal::MakeSpan( "compute_target_instances_v1::TargetInstancesConnection::" "DeleteTargetInstance"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteTargetInstance( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteTargetInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetInstancesTracingConnection::DeleteTargetInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_instances_v1::TargetInstancesConnection::" "DeleteTargetInstance"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteTargetInstance( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteTargetInstance( + ExperimentalTag{}, operation)); } StatusOr @@ -113,29 +112,28 @@ TargetInstancesTracingConnection::InsertTargetInstance( StatusOr TargetInstancesTracingConnection::InsertTargetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: InsertTargetInstanceRequest const& request) { auto span = internal::MakeSpan( "compute_target_instances_v1::TargetInstancesConnection::" "InsertTargetInstance"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertTargetInstance( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertTargetInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetInstancesTracingConnection::InsertTargetInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_instances_v1::TargetInstancesConnection::" "InsertTargetInstance"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertTargetInstance( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertTargetInstance( + ExperimentalTag{}, operation)); } StreamRange @@ -165,7 +163,7 @@ TargetInstancesTracingConnection::SetSecurityPolicy( StatusOr TargetInstancesTracingConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: SetSecurityPolicyRequest const& request) { auto span = internal::MakeSpan( @@ -173,21 +171,20 @@ TargetInstancesTracingConnection::SetSecurityPolicy( "SetSecurityPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetSecurityPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetInstancesTracingConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_instances_v1::TargetInstancesConnection::" "SetSecurityPolicy"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetSecurityPolicy(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.h b/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.h index f7ee2c0b6c335..3fce5cbe094db 100644 --- a/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.h +++ b/google/cloud/compute/target_instances/v1/internal/target_instances_tracing_connection.h @@ -52,13 +52,13 @@ class TargetInstancesTracingConnection DeleteTargetInstanceRequest const& request) override; StatusOr DeleteTargetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: DeleteTargetInstanceRequest const& request) override; future> DeleteTargetInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetTargetInstance( @@ -70,13 +70,13 @@ class TargetInstancesTracingConnection InsertTargetInstanceRequest const& request) override; StatusOr InsertTargetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: InsertTargetInstanceRequest const& request) override; future> InsertTargetInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -88,13 +88,13 @@ class TargetInstancesTracingConnection SetSecurityPolicyRequest const& request) override; StatusOr SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: SetSecurityPolicyRequest const& request) override; future> SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/target_instances/v1/mocks/mock_target_instances_connection.h b/google/cloud/compute/target_instances/v1/mocks/mock_target_instances_connection.h index 4318219215b76..879d20853c957 100644 --- a/google/cloud/compute/target_instances/v1/mocks/mock_target_instances_connection.h +++ b/google/cloud/compute/target_instances/v1/mocks/mock_target_instances_connection.h @@ -63,14 +63,14 @@ class MockTargetInstancesConnection MOCK_METHOD(StatusOr, DeleteTargetInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: DeleteTargetInstanceRequest const& request), (override)); MOCK_METHOD(future>, DeleteTargetInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -88,14 +88,14 @@ class MockTargetInstancesConnection MOCK_METHOD(StatusOr, InsertTargetInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: InsertTargetInstanceRequest const& request), (override)); MOCK_METHOD(future>, InsertTargetInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -113,14 +113,14 @@ class MockTargetInstancesConnection MOCK_METHOD(StatusOr, SetSecurityPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_instances::v1:: SetSecurityPolicyRequest const& request), (override)); MOCK_METHOD(future>, SetSecurityPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.cc b/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.cc index dc82695fbf55e..2bc11c97202ae 100644 --- a/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.cc +++ b/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.cc @@ -45,27 +45,25 @@ TargetPoolsTracingConnection::AddHealthCheck( StatusOr TargetPoolsTracingConnection::AddHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::AddHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::AddHealthCheck"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddHealthCheck(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetPoolsTracingConnection::AddHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::AddHealthCheck"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->AddHealthCheck(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->AddHealthCheck(ExperimentalTag{}, operation)); } future> @@ -80,27 +78,25 @@ TargetPoolsTracingConnection::AddInstance( StatusOr TargetPoolsTracingConnection::AddInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& request) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::AddInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetPoolsTracingConnection::AddInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::AddInstance"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AddInstance(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->AddInstance(ExperimentalTag{}, operation)); } StreamRange TargetPoolsTracingConnection::DeleteTargetPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: DeleteTargetPoolRequest const& request) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::DeleteTargetPool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteTargetPool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteTargetPool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetPoolsTracingConnection::DeleteTargetPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::DeleteTargetPool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteTargetPool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteTargetPool(ExperimentalTag{}, operation)); } StatusOr @@ -185,27 +180,26 @@ TargetPoolsTracingConnection::InsertTargetPool( StatusOr TargetPoolsTracingConnection::InsertTargetPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: InsertTargetPoolRequest const& request) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::InsertTargetPool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertTargetPool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->InsertTargetPool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetPoolsTracingConnection::InsertTargetPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::InsertTargetPool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertTargetPool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertTargetPool(ExperimentalTag{}, operation)); } StreamRange @@ -233,27 +227,26 @@ TargetPoolsTracingConnection::RemoveHealthCheck( StatusOr TargetPoolsTracingConnection::RemoveHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: RemoveHealthCheckRequest const& request) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::RemoveHealthCheck"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RemoveHealthCheck(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->RemoveHealthCheck(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetPoolsTracingConnection::RemoveHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::RemoveHealthCheck"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RemoveHealthCheck(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RemoveHealthCheck(ExperimentalTag{}, operation)); } future> @@ -268,27 +261,25 @@ TargetPoolsTracingConnection::RemoveInstance( StatusOr TargetPoolsTracingConnection::RemoveInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::RemoveInstanceRequest const& request) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::RemoveInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RemoveInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RemoveInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetPoolsTracingConnection::RemoveInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::RemoveInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RemoveInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RemoveInstance(ExperimentalTag{}, operation)); } future> @@ -303,27 +294,25 @@ TargetPoolsTracingConnection::SetBackup( StatusOr TargetPoolsTracingConnection::SetBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& request) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::SetBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetPoolsTracingConnection::SetBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::SetBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetBackup(ExperimentalTag{}, operation)); } future> @@ -338,27 +327,26 @@ TargetPoolsTracingConnection::SetSecurityPolicy( StatusOr TargetPoolsTracingConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: SetSecurityPolicyRequest const& request) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::SetSecurityPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetSecurityPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetPoolsTracingConnection::SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_pools_v1::TargetPoolsConnection::SetSecurityPolicy"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetSecurityPolicy(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetSecurityPolicy(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.h b/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.h index 6b47eb7918209..836aec5d606b5 100644 --- a/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.h +++ b/google/cloud/compute/target_pools/v1/internal/target_pools_tracing_connection.h @@ -45,12 +45,12 @@ class TargetPoolsTracingConnection AddHealthCheckRequest const& request) override; StatusOr AddHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: AddHealthCheckRequest const& request) override; future> AddHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> AddInstance( @@ -58,12 +58,12 @@ class TargetPoolsTracingConnection request) override; StatusOr AddInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& request) override; future> AddInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange DeleteTargetPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: DeleteTargetPoolRequest const& request) override; future> DeleteTargetPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetTargetPool( @@ -98,12 +98,12 @@ class TargetPoolsTracingConnection InsertTargetPoolRequest const& request) override; StatusOr InsertTargetPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: InsertTargetPoolRequest const& request) override; future> InsertTargetPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListTargetPools( @@ -115,13 +115,13 @@ class TargetPoolsTracingConnection RemoveHealthCheckRequest const& request) override; StatusOr RemoveHealthCheck( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: RemoveHealthCheckRequest const& request) override; future> RemoveHealthCheck( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> RemoveInstance( @@ -129,12 +129,12 @@ class TargetPoolsTracingConnection RemoveInstanceRequest const& request) override; StatusOr RemoveInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: RemoveInstanceRequest const& request) override; future> RemoveInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetBackup( @@ -142,12 +142,12 @@ class TargetPoolsTracingConnection request) override; StatusOr SetBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& request) override; future> SetBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -155,13 +155,13 @@ class TargetPoolsTracingConnection SetSecurityPolicyRequest const& request) override; StatusOr SetSecurityPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: SetSecurityPolicyRequest const& request) override; future> SetSecurityPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/target_pools/v1/mocks/mock_target_pools_connection.h b/google/cloud/compute/target_pools/v1/mocks/mock_target_pools_connection.h index 02932a9a2c529..f4ef193ac0e8d 100644 --- a/google/cloud/compute/target_pools/v1/mocks/mock_target_pools_connection.h +++ b/google/cloud/compute/target_pools/v1/mocks/mock_target_pools_connection.h @@ -55,14 +55,14 @@ class MockTargetPoolsConnection MOCK_METHOD(StatusOr, AddHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: AddHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, AddHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -74,14 +74,14 @@ class MockTargetPoolsConnection MOCK_METHOD( StatusOr, AddInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const& request), (override)); MOCK_METHOD(future>, AddInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -102,14 +102,14 @@ class MockTargetPoolsConnection MOCK_METHOD(StatusOr, DeleteTargetPool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: DeleteTargetPoolRequest const& request), (override)); MOCK_METHOD(future>, DeleteTargetPool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -134,14 +134,14 @@ class MockTargetPoolsConnection MOCK_METHOD(StatusOr, InsertTargetPool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: InsertTargetPoolRequest const& request), (override)); MOCK_METHOD(future>, InsertTargetPool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -160,14 +160,14 @@ class MockTargetPoolsConnection MOCK_METHOD(StatusOr, RemoveHealthCheck, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: RemoveHealthCheckRequest const& request), (override)); MOCK_METHOD(future>, RemoveHealthCheck, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -179,14 +179,14 @@ class MockTargetPoolsConnection MOCK_METHOD(StatusOr, RemoveInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: RemoveInstanceRequest const& request), (override)); MOCK_METHOD(future>, RemoveInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -198,14 +198,14 @@ class MockTargetPoolsConnection MOCK_METHOD( StatusOr, SetBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const& request), (override)); MOCK_METHOD(future>, SetBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -217,14 +217,14 @@ class MockTargetPoolsConnection MOCK_METHOD(StatusOr, SetSecurityPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_pools::v1:: SetSecurityPolicyRequest const& request), (override)); MOCK_METHOD(future>, SetSecurityPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.cc b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.cc index 956ab446bb41e..3bd863f0fd00d 100644 --- a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.cc +++ b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.cc @@ -48,29 +48,28 @@ TargetSslProxiesTracingConnection::DeleteTargetSslProxy( StatusOr TargetSslProxiesTracingConnection::DeleteTargetSslProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: DeleteTargetSslProxyRequest const& request) { auto span = internal::MakeSpan( "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" "DeleteTargetSslProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteTargetSslProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteTargetSslProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetSslProxiesTracingConnection::DeleteTargetSslProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" "DeleteTargetSslProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteTargetSslProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteTargetSslProxy( + ExperimentalTag{}, operation)); } StatusOr @@ -98,29 +97,28 @@ TargetSslProxiesTracingConnection::InsertTargetSslProxy( StatusOr TargetSslProxiesTracingConnection::InsertTargetSslProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: InsertTargetSslProxyRequest const& request) { auto span = internal::MakeSpan( "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" "InsertTargetSslProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertTargetSslProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertTargetSslProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetSslProxiesTracingConnection::InsertTargetSslProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" "InsertTargetSslProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertTargetSslProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertTargetSslProxy( + ExperimentalTag{}, operation)); } StreamRange @@ -150,7 +148,7 @@ TargetSslProxiesTracingConnection::SetBackendService( StatusOr TargetSslProxiesTracingConnection::SetBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetBackendServiceRequest const& request) { auto span = internal::MakeSpan( @@ -158,21 +156,20 @@ TargetSslProxiesTracingConnection::SetBackendService( "SetBackendService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetBackendService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetBackendService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetSslProxiesTracingConnection::SetBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" "SetBackendService"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetBackendService(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetBackendService(ExperimentalTag{}, operation)); } future> @@ -188,7 +185,7 @@ TargetSslProxiesTracingConnection::SetCertificateMap( StatusOr TargetSslProxiesTracingConnection::SetCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetCertificateMapRequest const& request) { auto span = internal::MakeSpan( @@ -196,21 +193,20 @@ TargetSslProxiesTracingConnection::SetCertificateMap( "SetCertificateMap"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetCertificateMap(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetCertificateMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetSslProxiesTracingConnection::SetCertificateMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" "SetCertificateMap"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetCertificateMap(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetCertificateMap(ExperimentalTag{}, operation)); } future> @@ -226,7 +222,7 @@ TargetSslProxiesTracingConnection::SetProxyHeader( StatusOr TargetSslProxiesTracingConnection::SetProxyHeader( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetProxyHeaderRequest const& request) { auto span = internal::MakeSpan( @@ -234,21 +230,19 @@ TargetSslProxiesTracingConnection::SetProxyHeader( "SetProxyHeader"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetProxyHeader(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetProxyHeader(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetSslProxiesTracingConnection::SetProxyHeader( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" "SetProxyHeader"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetProxyHeader(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetProxyHeader(ExperimentalTag{}, operation)); } future> @@ -265,7 +259,7 @@ TargetSslProxiesTracingConnection::SetSslCertificates( StatusOr TargetSslProxiesTracingConnection::SetSslCertificates( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslCertificatesRequest const& request) { auto span = internal::MakeSpan( @@ -273,21 +267,20 @@ TargetSslProxiesTracingConnection::SetSslCertificates( "SetSslCertificates"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetSslCertificates(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetSslCertificates(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetSslProxiesTracingConnection::SetSslCertificates( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" "SetSslCertificates"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetSslCertificates(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetSslCertificates( + ExperimentalTag{}, operation)); } future> @@ -303,7 +296,7 @@ TargetSslProxiesTracingConnection::SetSslPolicy( StatusOr TargetSslProxiesTracingConnection::SetSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslPolicyRequest const& request) { auto span = internal::MakeSpan( @@ -311,21 +304,19 @@ TargetSslProxiesTracingConnection::SetSslPolicy( "SetSslPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetSslPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetSslPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetSslProxiesTracingConnection::SetSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_ssl_proxies_v1::TargetSslProxiesConnection::" "SetSslPolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetSslPolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetSslPolicy(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.h b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.h index df882e54c10fd..5e91893187a8d 100644 --- a/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.h +++ b/google/cloud/compute/target_ssl_proxies/v1/internal/target_ssl_proxies_tracing_connection.h @@ -46,13 +46,13 @@ class TargetSslProxiesTracingConnection DeleteTargetSslProxyRequest const& request) override; StatusOr DeleteTargetSslProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: DeleteTargetSslProxyRequest const& request) override; future> DeleteTargetSslProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetTargetSslProxy( @@ -64,13 +64,13 @@ class TargetSslProxiesTracingConnection InsertTargetSslProxyRequest const& request) override; StatusOr InsertTargetSslProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: InsertTargetSslProxyRequest const& request) override; future> InsertTargetSslProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -82,13 +82,13 @@ class TargetSslProxiesTracingConnection SetBackendServiceRequest const& request) override; StatusOr SetBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetBackendServiceRequest const& request) override; future> SetBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -96,13 +96,13 @@ class TargetSslProxiesTracingConnection SetCertificateMapRequest const& request) override; StatusOr SetCertificateMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetCertificateMapRequest const& request) override; future> SetCertificateMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetProxyHeader( @@ -110,12 +110,12 @@ class TargetSslProxiesTracingConnection SetProxyHeaderRequest const& request) override; StatusOr SetProxyHeader( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetProxyHeaderRequest const& request) override; future> SetProxyHeader( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> @@ -123,13 +123,13 @@ class TargetSslProxiesTracingConnection SetSslCertificatesRequest const& request) override; StatusOr SetSslCertificates( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslCertificatesRequest const& request) override; future> SetSslCertificates( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetSslPolicy( @@ -137,12 +137,12 @@ class TargetSslProxiesTracingConnection SetSslPolicyRequest const& request) override; StatusOr SetSslPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslPolicyRequest const& request) override; future> SetSslPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/target_ssl_proxies/v1/mocks/mock_target_ssl_proxies_connection.h b/google/cloud/compute/target_ssl_proxies/v1/mocks/mock_target_ssl_proxies_connection.h index 28c44646a0c7d..b3d52793c66ad 100644 --- a/google/cloud/compute/target_ssl_proxies/v1/mocks/mock_target_ssl_proxies_connection.h +++ b/google/cloud/compute/target_ssl_proxies/v1/mocks/mock_target_ssl_proxies_connection.h @@ -55,14 +55,14 @@ class MockTargetSslProxiesConnection MOCK_METHOD(StatusOr, DeleteTargetSslProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: DeleteTargetSslProxyRequest const& request), (override)); MOCK_METHOD(future>, DeleteTargetSslProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -80,14 +80,14 @@ class MockTargetSslProxiesConnection MOCK_METHOD(StatusOr, InsertTargetSslProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: InsertTargetSslProxyRequest const& request), (override)); MOCK_METHOD(future>, InsertTargetSslProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -105,14 +105,14 @@ class MockTargetSslProxiesConnection MOCK_METHOD(StatusOr, SetBackendService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetBackendServiceRequest const& request), (override)); MOCK_METHOD(future>, SetBackendService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -124,14 +124,14 @@ class MockTargetSslProxiesConnection MOCK_METHOD(StatusOr, SetCertificateMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetCertificateMapRequest const& request), (override)); MOCK_METHOD(future>, SetCertificateMap, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -143,14 +143,14 @@ class MockTargetSslProxiesConnection MOCK_METHOD(StatusOr, SetProxyHeader, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetProxyHeaderRequest const& request), (override)); MOCK_METHOD(future>, SetProxyHeader, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -162,14 +162,14 @@ class MockTargetSslProxiesConnection MOCK_METHOD(StatusOr, SetSslCertificates, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslCertificatesRequest const& request), (override)); MOCK_METHOD(future>, SetSslCertificates, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -181,14 +181,14 @@ class MockTargetSslProxiesConnection MOCK_METHOD(StatusOr, SetSslPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_ssl_proxies::v1:: SetSslPolicyRequest const& request), (override)); MOCK_METHOD(future>, SetSslPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.cc b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.cc index 9a6ac22bb7536..9957fd8af73be 100644 --- a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.cc +++ b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.cc @@ -64,29 +64,28 @@ TargetTcpProxiesTracingConnection::DeleteTargetTcpProxy( StatusOr TargetTcpProxiesTracingConnection::DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const& request) { auto span = internal::MakeSpan( "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" "DeleteTargetTcpProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteTargetTcpProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteTargetTcpProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetTcpProxiesTracingConnection::DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" "DeleteTargetTcpProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteTargetTcpProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteTargetTcpProxy( + ExperimentalTag{}, operation)); } StatusOr @@ -114,29 +113,28 @@ TargetTcpProxiesTracingConnection::InsertTargetTcpProxy( StatusOr TargetTcpProxiesTracingConnection::InsertTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const& request) { auto span = internal::MakeSpan( "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" "InsertTargetTcpProxy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertTargetTcpProxy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertTargetTcpProxy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetTcpProxiesTracingConnection::InsertTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" "InsertTargetTcpProxy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertTargetTcpProxy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertTargetTcpProxy( + ExperimentalTag{}, operation)); } StreamRange @@ -166,7 +164,7 @@ TargetTcpProxiesTracingConnection::SetBackendService( StatusOr TargetTcpProxiesTracingConnection::SetBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: SetBackendServiceRequest const& request) { auto span = internal::MakeSpan( @@ -174,21 +172,20 @@ TargetTcpProxiesTracingConnection::SetBackendService( "SetBackendService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetBackendService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetBackendService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetTcpProxiesTracingConnection::SetBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" "SetBackendService"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetBackendService(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetBackendService(ExperimentalTag{}, operation)); } future> @@ -204,7 +201,7 @@ TargetTcpProxiesTracingConnection::SetProxyHeader( StatusOr TargetTcpProxiesTracingConnection::SetProxyHeader( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: SetProxyHeaderRequest const& request) { auto span = internal::MakeSpan( @@ -212,21 +209,19 @@ TargetTcpProxiesTracingConnection::SetProxyHeader( "SetProxyHeader"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetProxyHeader(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetProxyHeader(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetTcpProxiesTracingConnection::SetProxyHeader( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_tcp_proxies_v1::TargetTcpProxiesConnection::" "SetProxyHeader"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetProxyHeader(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetProxyHeader(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.h b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.h index edca94792512f..97a0fdc28a7af 100644 --- a/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.h +++ b/google/cloud/compute/target_tcp_proxies/v1/internal/target_tcp_proxies_tracing_connection.h @@ -52,13 +52,13 @@ class TargetTcpProxiesTracingConnection DeleteTargetTcpProxyRequest const& request) override; StatusOr DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const& request) override; future> DeleteTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetTargetTcpProxy( @@ -70,13 +70,13 @@ class TargetTcpProxiesTracingConnection InsertTargetTcpProxyRequest const& request) override; StatusOr InsertTargetTcpProxy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const& request) override; future> InsertTargetTcpProxy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -88,13 +88,13 @@ class TargetTcpProxiesTracingConnection SetBackendServiceRequest const& request) override; StatusOr SetBackendService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: SetBackendServiceRequest const& request) override; future> SetBackendService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> SetProxyHeader( @@ -102,12 +102,12 @@ class TargetTcpProxiesTracingConnection SetProxyHeaderRequest const& request) override; StatusOr SetProxyHeader( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: SetProxyHeaderRequest const& request) override; future> SetProxyHeader( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/target_tcp_proxies/v1/mocks/mock_target_tcp_proxies_connection.h b/google/cloud/compute/target_tcp_proxies/v1/mocks/mock_target_tcp_proxies_connection.h index a5f9f04ca336a..b3bef2911c810 100644 --- a/google/cloud/compute/target_tcp_proxies/v1/mocks/mock_target_tcp_proxies_connection.h +++ b/google/cloud/compute/target_tcp_proxies/v1/mocks/mock_target_tcp_proxies_connection.h @@ -63,14 +63,14 @@ class MockTargetTcpProxiesConnection MOCK_METHOD(StatusOr, DeleteTargetTcpProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: DeleteTargetTcpProxyRequest const& request), (override)); MOCK_METHOD(future>, DeleteTargetTcpProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -88,14 +88,14 @@ class MockTargetTcpProxiesConnection MOCK_METHOD(StatusOr, InsertTargetTcpProxy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: InsertTargetTcpProxyRequest const& request), (override)); MOCK_METHOD(future>, InsertTargetTcpProxy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -113,14 +113,14 @@ class MockTargetTcpProxiesConnection MOCK_METHOD(StatusOr, SetBackendService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: SetBackendServiceRequest const& request), (override)); MOCK_METHOD(future>, SetBackendService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -132,14 +132,14 @@ class MockTargetTcpProxiesConnection MOCK_METHOD(StatusOr, SetProxyHeader, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_tcp_proxies::v1:: SetProxyHeaderRequest const& request), (override)); MOCK_METHOD(future>, SetProxyHeader, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.cc b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.cc index 8979579824eb4..884702b9455ea 100644 --- a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.cc +++ b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.cc @@ -64,29 +64,28 @@ TargetVpnGatewaysTracingConnection::DeleteTargetVpnGateway( StatusOr TargetVpnGatewaysTracingConnection::DeleteTargetVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: DeleteTargetVpnGatewayRequest const& request) { auto span = internal::MakeSpan( "compute_target_vpn_gateways_v1::TargetVpnGatewaysConnection::" "DeleteTargetVpnGateway"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteTargetVpnGateway( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteTargetVpnGateway(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetVpnGatewaysTracingConnection::DeleteTargetVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_vpn_gateways_v1::TargetVpnGatewaysConnection::" "DeleteTargetVpnGateway"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteTargetVpnGateway( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteTargetVpnGateway( + ExperimentalTag{}, operation)); } StatusOr @@ -114,29 +113,28 @@ TargetVpnGatewaysTracingConnection::InsertTargetVpnGateway( StatusOr TargetVpnGatewaysTracingConnection::InsertTargetVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: InsertTargetVpnGatewayRequest const& request) { auto span = internal::MakeSpan( "compute_target_vpn_gateways_v1::TargetVpnGatewaysConnection::" "InsertTargetVpnGateway"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InsertTargetVpnGateway( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->InsertTargetVpnGateway(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetVpnGatewaysTracingConnection::InsertTargetVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_vpn_gateways_v1::TargetVpnGatewaysConnection::" "InsertTargetVpnGateway"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InsertTargetVpnGateway( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InsertTargetVpnGateway( + ExperimentalTag{}, operation)); } StreamRange @@ -165,27 +163,25 @@ TargetVpnGatewaysTracingConnection::SetLabels( StatusOr TargetVpnGatewaysTracingConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: SetLabelsRequest const& request) { auto span = internal::MakeSpan( "compute_target_vpn_gateways_v1::TargetVpnGatewaysConnection::SetLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TargetVpnGatewaysTracingConnection::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_target_vpn_gateways_v1::TargetVpnGatewaysConnection::SetLabels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetLabels(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.h b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.h index 844bee84bace6..01ee23ff5765c 100644 --- a/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.h +++ b/google/cloud/compute/target_vpn_gateways/v1/internal/target_vpn_gateways_tracing_connection.h @@ -55,13 +55,13 @@ class TargetVpnGatewaysTracingConnection DeleteTargetVpnGatewayRequest const& request) override; StatusOr DeleteTargetVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: DeleteTargetVpnGatewayRequest const& request) override; future> DeleteTargetVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr @@ -74,13 +74,13 @@ class TargetVpnGatewaysTracingConnection InsertTargetVpnGatewayRequest const& request) override; StatusOr InsertTargetVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: InsertTargetVpnGatewayRequest const& request) override; future> InsertTargetVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange @@ -92,12 +92,12 @@ class TargetVpnGatewaysTracingConnection SetLabelsRequest const& request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/target_vpn_gateways/v1/mocks/mock_target_vpn_gateways_connection.h b/google/cloud/compute/target_vpn_gateways/v1/mocks/mock_target_vpn_gateways_connection.h index 486a688f02da0..a7569302ab1ef 100644 --- a/google/cloud/compute/target_vpn_gateways/v1/mocks/mock_target_vpn_gateways_connection.h +++ b/google/cloud/compute/target_vpn_gateways/v1/mocks/mock_target_vpn_gateways_connection.h @@ -63,14 +63,14 @@ class MockTargetVpnGatewaysConnection MOCK_METHOD(StatusOr, DeleteTargetVpnGateway, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: DeleteTargetVpnGatewayRequest const& request), (override)); MOCK_METHOD(future>, DeleteTargetVpnGateway, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -88,14 +88,14 @@ class MockTargetVpnGatewaysConnection MOCK_METHOD(StatusOr, InsertTargetVpnGateway, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: InsertTargetVpnGatewayRequest const& request), (override)); MOCK_METHOD(future>, InsertTargetVpnGateway, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -112,14 +112,14 @@ class MockTargetVpnGatewaysConnection (override)); MOCK_METHOD(StatusOr, SetLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::target_vpn_gateways::v1:: SetLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.cc b/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.cc index 8ee7e0d4532cc..28bca1a4e0508 100644 --- a/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.cc +++ b/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.cc @@ -59,27 +59,25 @@ UrlMapsTracingConnection::DeleteUrlMap( StatusOr UrlMapsTracingConnection::DeleteUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const& request) { auto span = internal::MakeSpan( "compute_url_maps_v1::UrlMapsConnection::DeleteUrlMap"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteUrlMap(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteUrlMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> UrlMapsTracingConnection::DeleteUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_url_maps_v1::UrlMapsConnection::DeleteUrlMap"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteUrlMap(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteUrlMap(ExperimentalTag{}, operation)); } StatusOr @@ -104,27 +102,25 @@ UrlMapsTracingConnection::InsertUrlMap( StatusOr UrlMapsTracingConnection::InsertUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const& request) { auto span = internal::MakeSpan( "compute_url_maps_v1::UrlMapsConnection::InsertUrlMap"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertUrlMap(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertUrlMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> UrlMapsTracingConnection::InsertUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_url_maps_v1::UrlMapsConnection::InsertUrlMap"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->InsertUrlMap(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->InsertUrlMap(ExperimentalTag{}, operation)); } future> @@ -139,27 +135,25 @@ UrlMapsTracingConnection::InvalidateCache( StatusOr UrlMapsTracingConnection::InvalidateCache( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& request) { auto span = internal::MakeSpan( "compute_url_maps_v1::UrlMapsConnection::InvalidateCache"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InvalidateCache(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InvalidateCache(ExperimentalTag{}, NoAwaitTag{}, request)); } future> UrlMapsTracingConnection::InvalidateCache( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_url_maps_v1::UrlMapsConnection::InvalidateCache"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InvalidateCache(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InvalidateCache(ExperimentalTag{}, operation)); } StreamRange @@ -185,27 +179,25 @@ UrlMapsTracingConnection::PatchUrlMap( StatusOr UrlMapsTracingConnection::PatchUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const& request) { auto span = internal::MakeSpan("compute_url_maps_v1::UrlMapsConnection::PatchUrlMap"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PatchUrlMap(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PatchUrlMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> UrlMapsTracingConnection::PatchUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan("compute_url_maps_v1::UrlMapsConnection::PatchUrlMap"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PatchUrlMap(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->PatchUrlMap(ExperimentalTag{}, operation)); } future> @@ -220,27 +212,25 @@ UrlMapsTracingConnection::UpdateUrlMap( StatusOr UrlMapsTracingConnection::UpdateUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& request) { auto span = internal::MakeSpan( "compute_url_maps_v1::UrlMapsConnection::UpdateUrlMap"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateUrlMap(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateUrlMap(ExperimentalTag{}, NoAwaitTag{}, request)); } future> UrlMapsTracingConnection::UpdateUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_url_maps_v1::UrlMapsConnection::UpdateUrlMap"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateUrlMap(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateUrlMap(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.h b/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.h index 80ee8edb31688..8a4c537641ba8 100644 --- a/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.h +++ b/google/cloud/compute/url_maps/v1/internal/url_maps_tracing_connection.h @@ -50,12 +50,12 @@ class UrlMapsTracingConnection : public compute_url_maps_v1::UrlMapsConnection { request) override; StatusOr DeleteUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const& request) override; future> DeleteUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetUrlMap( @@ -67,12 +67,12 @@ class UrlMapsTracingConnection : public compute_url_maps_v1::UrlMapsConnection { request) override; StatusOr InsertUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const& request) override; future> InsertUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> InvalidateCache( @@ -80,12 +80,12 @@ class UrlMapsTracingConnection : public compute_url_maps_v1::UrlMapsConnection { request) override; StatusOr InvalidateCache( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& request) override; future> InvalidateCache( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListUrlMaps( @@ -97,12 +97,12 @@ class UrlMapsTracingConnection : public compute_url_maps_v1::UrlMapsConnection { request) override; StatusOr PatchUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const& request) override; future> PatchUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; future> UpdateUrlMap( @@ -110,12 +110,12 @@ class UrlMapsTracingConnection : public compute_url_maps_v1::UrlMapsConnection { request) override; StatusOr UpdateUrlMap( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& request) override; future> UpdateUrlMap( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr Validate( diff --git a/google/cloud/compute/url_maps/v1/mocks/mock_url_maps_connection.h b/google/cloud/compute/url_maps/v1/mocks/mock_url_maps_connection.h index c4aa097b31c4f..319b29a05b47b 100644 --- a/google/cloud/compute/url_maps/v1/mocks/mock_url_maps_connection.h +++ b/google/cloud/compute/url_maps/v1/mocks/mock_url_maps_connection.h @@ -63,14 +63,14 @@ class MockUrlMapsConnection : public compute_url_maps_v1::UrlMapsConnection { MOCK_METHOD( StatusOr, DeleteUrlMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::DeleteUrlMapRequest const& request), (override)); MOCK_METHOD(future>, DeleteUrlMap, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -89,14 +89,14 @@ class MockUrlMapsConnection : public compute_url_maps_v1::UrlMapsConnection { MOCK_METHOD( StatusOr, InsertUrlMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::InsertUrlMapRequest const& request), (override)); MOCK_METHOD(future>, InsertUrlMap, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -109,14 +109,14 @@ class MockUrlMapsConnection : public compute_url_maps_v1::UrlMapsConnection { MOCK_METHOD( StatusOr, InvalidateCache, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::InvalidateCacheRequest const& request), (override)); MOCK_METHOD(future>, InvalidateCache, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -133,14 +133,14 @@ class MockUrlMapsConnection : public compute_url_maps_v1::UrlMapsConnection { MOCK_METHOD( StatusOr, PatchUrlMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::PatchUrlMapRequest const& request), (override)); MOCK_METHOD(future>, PatchUrlMap, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -153,14 +153,14 @@ class MockUrlMapsConnection : public compute_url_maps_v1::UrlMapsConnection { MOCK_METHOD( StatusOr, UpdateUrlMap, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::url_maps::v1::UpdateUrlMapRequest const& request), (override)); MOCK_METHOD(future>, UpdateUrlMap, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.cc b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.cc index f27d725305952..8e4b28a6bf235 100644 --- a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.cc +++ b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.cc @@ -60,27 +60,26 @@ VpnGatewaysTracingConnection::DeleteVpnGateway( StatusOr VpnGatewaysTracingConnection::DeleteVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1:: DeleteVpnGatewayRequest const& request) { auto span = internal::MakeSpan( "compute_vpn_gateways_v1::VpnGatewaysConnection::DeleteVpnGateway"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteVpnGateway(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteVpnGateway(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VpnGatewaysTracingConnection::DeleteVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_vpn_gateways_v1::VpnGatewaysConnection::DeleteVpnGateway"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteVpnGateway(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteVpnGateway(ExperimentalTag{}, operation)); } StatusOr @@ -115,27 +114,26 @@ VpnGatewaysTracingConnection::InsertVpnGateway( StatusOr VpnGatewaysTracingConnection::InsertVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1:: InsertVpnGatewayRequest const& request) { auto span = internal::MakeSpan( "compute_vpn_gateways_v1::VpnGatewaysConnection::InsertVpnGateway"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertVpnGateway(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->InsertVpnGateway(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VpnGatewaysTracingConnection::InsertVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_vpn_gateways_v1::VpnGatewaysConnection::InsertVpnGateway"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertVpnGateway(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertVpnGateway(ExperimentalTag{}, operation)); } StreamRange @@ -163,27 +161,25 @@ VpnGatewaysTracingConnection::SetLabels( StatusOr VpnGatewaysTracingConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const& request) { auto span = internal::MakeSpan( "compute_vpn_gateways_v1::VpnGatewaysConnection::SetLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VpnGatewaysTracingConnection::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_vpn_gateways_v1::VpnGatewaysConnection::SetLabels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetLabels(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.h b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.h index 59fde28412ae3..aea1bec1fcd10 100644 --- a/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.h +++ b/google/cloud/compute/vpn_gateways/v1/internal/vpn_gateways_tracing_connection.h @@ -51,12 +51,12 @@ class VpnGatewaysTracingConnection DeleteVpnGatewayRequest const& request) override; StatusOr DeleteVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1:: DeleteVpnGatewayRequest const& request) override; future> DeleteVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetVpnGateway( @@ -73,12 +73,12 @@ class VpnGatewaysTracingConnection InsertVpnGatewayRequest const& request) override; StatusOr InsertVpnGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1:: InsertVpnGatewayRequest const& request) override; future> InsertVpnGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListVpnGateways( @@ -90,12 +90,12 @@ class VpnGatewaysTracingConnection request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr diff --git a/google/cloud/compute/vpn_gateways/v1/mocks/mock_vpn_gateways_connection.h b/google/cloud/compute/vpn_gateways/v1/mocks/mock_vpn_gateways_connection.h index b2d204b10b9d8..85e914934acd5 100644 --- a/google/cloud/compute/vpn_gateways/v1/mocks/mock_vpn_gateways_connection.h +++ b/google/cloud/compute/vpn_gateways/v1/mocks/mock_vpn_gateways_connection.h @@ -64,14 +64,14 @@ class MockVpnGatewaysConnection MOCK_METHOD(StatusOr, DeleteVpnGateway, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1:: DeleteVpnGatewayRequest const& request), (override)); MOCK_METHOD(future>, DeleteVpnGateway, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -96,14 +96,14 @@ class MockVpnGatewaysConnection MOCK_METHOD(StatusOr, InsertVpnGateway, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1:: InsertVpnGatewayRequest const& request), (override)); MOCK_METHOD(future>, InsertVpnGateway, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -122,14 +122,14 @@ class MockVpnGatewaysConnection MOCK_METHOD( StatusOr, SetLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_gateways::v1::SetLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); diff --git a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.cc b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.cc index 1c3e676bbebc4..ca44e041f6550 100644 --- a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.cc +++ b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.cc @@ -59,27 +59,25 @@ VpnTunnelsTracingConnection::DeleteVpnTunnel( StatusOr VpnTunnelsTracingConnection::DeleteVpnTunnel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1::DeleteVpnTunnelRequest const& request) { auto span = internal::MakeSpan( "compute_vpn_tunnels_v1::VpnTunnelsConnection::DeleteVpnTunnel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteVpnTunnel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteVpnTunnel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VpnTunnelsTracingConnection::DeleteVpnTunnel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_vpn_tunnels_v1::VpnTunnelsConnection::DeleteVpnTunnel"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteVpnTunnel(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteVpnTunnel(ExperimentalTag{}, operation)); } StatusOr @@ -104,27 +102,25 @@ VpnTunnelsTracingConnection::InsertVpnTunnel( StatusOr VpnTunnelsTracingConnection::InsertVpnTunnel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1::InsertVpnTunnelRequest const& request) { auto span = internal::MakeSpan( "compute_vpn_tunnels_v1::VpnTunnelsConnection::InsertVpnTunnel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->InsertVpnTunnel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->InsertVpnTunnel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VpnTunnelsTracingConnection::InsertVpnTunnel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_vpn_tunnels_v1::VpnTunnelsConnection::InsertVpnTunnel"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->InsertVpnTunnel(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->InsertVpnTunnel(ExperimentalTag{}, operation)); } StreamRange @@ -152,27 +148,25 @@ VpnTunnelsTracingConnection::SetLabels( StatusOr VpnTunnelsTracingConnection::SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& request) { auto span = internal::MakeSpan( "compute_vpn_tunnels_v1::VpnTunnelsConnection::SetLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VpnTunnelsTracingConnection::SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) { auto span = internal::MakeSpan( "compute_vpn_tunnels_v1::VpnTunnelsConnection::SetLabels"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetLabels(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetLabels(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.h b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.h index 14735cf2762c1..f776a93a3d0c7 100644 --- a/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.h +++ b/google/cloud/compute/vpn_tunnels/v1/internal/vpn_tunnels_tracing_connection.h @@ -51,12 +51,12 @@ class VpnTunnelsTracingConnection DeleteVpnTunnelRequest const& request) override; StatusOr DeleteVpnTunnel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1:: DeleteVpnTunnelRequest const& request) override; future> DeleteVpnTunnel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StatusOr GetVpnTunnel( @@ -68,12 +68,12 @@ class VpnTunnelsTracingConnection InsertVpnTunnelRequest const& request) override; StatusOr InsertVpnTunnel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1:: InsertVpnTunnelRequest const& request) override; future> InsertVpnTunnel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; StreamRange ListVpnTunnels( @@ -85,12 +85,12 @@ class VpnTunnelsTracingConnection request) override; StatusOr SetLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& request) override; future> SetLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation) override; private: diff --git a/google/cloud/compute/vpn_tunnels/v1/mocks/mock_vpn_tunnels_connection.h b/google/cloud/compute/vpn_tunnels/v1/mocks/mock_vpn_tunnels_connection.h index ff8c2ef1d055d..98d5d4a82b24f 100644 --- a/google/cloud/compute/vpn_tunnels/v1/mocks/mock_vpn_tunnels_connection.h +++ b/google/cloud/compute/vpn_tunnels/v1/mocks/mock_vpn_tunnels_connection.h @@ -64,14 +64,14 @@ class MockVpnTunnelsConnection MOCK_METHOD(StatusOr, DeleteVpnTunnel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1:: DeleteVpnTunnelRequest const& request), (override)); MOCK_METHOD(future>, DeleteVpnTunnel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -89,14 +89,14 @@ class MockVpnTunnelsConnection MOCK_METHOD(StatusOr, InsertVpnTunnel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1:: InsertVpnTunnelRequest const& request), (override)); MOCK_METHOD(future>, InsertVpnTunnel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); @@ -114,14 +114,14 @@ class MockVpnTunnelsConnection MOCK_METHOD( StatusOr, SetLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::vpn_tunnels::v1::SetLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::cloud::cpp::compute::v1::Operation const& operation), (override)); }; diff --git a/google/cloud/config/v1/internal/config_connection_impl.cc b/google/cloud/config/v1/internal/config_connection_impl.cc index 2f7f3586a64ff..471ed495cb837 100644 --- a/google/cloud/config/v1/internal/config_connection_impl.cc +++ b/google/cloud/config/v1/internal/config_connection_impl.cc @@ -150,7 +150,7 @@ ConfigConnectionImpl::CreateDeployment( } StatusOr ConfigConnectionImpl::CreateDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::config::v1::CreateDeploymentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -166,8 +166,7 @@ StatusOr ConfigConnectionImpl::CreateDeployment( future> ConfigConnectionImpl::CreateDeployment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -241,7 +240,7 @@ ConfigConnectionImpl::UpdateDeployment( } StatusOr ConfigConnectionImpl::UpdateDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::config::v1::UpdateDeploymentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -257,8 +256,7 @@ StatusOr ConfigConnectionImpl::UpdateDeployment( future> ConfigConnectionImpl::UpdateDeployment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -332,7 +330,7 @@ ConfigConnectionImpl::DeleteDeployment( } StatusOr ConfigConnectionImpl::DeleteDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::config::v1::DeleteDeploymentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -348,8 +346,7 @@ StatusOr ConfigConnectionImpl::DeleteDeployment( future> ConfigConnectionImpl::DeleteDeployment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -575,7 +572,7 @@ ConfigConnectionImpl::LockDeployment( } StatusOr ConfigConnectionImpl::LockDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::config::v1::LockDeploymentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -590,8 +587,7 @@ StatusOr ConfigConnectionImpl::LockDeployment( future> ConfigConnectionImpl::LockDeployment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -665,7 +661,7 @@ ConfigConnectionImpl::UnlockDeployment( } StatusOr ConfigConnectionImpl::UnlockDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::config::v1::UnlockDeploymentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -681,8 +677,7 @@ StatusOr ConfigConnectionImpl::UnlockDeployment( future> ConfigConnectionImpl::UnlockDeployment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -770,7 +765,7 @@ ConfigConnectionImpl::CreatePreview( } StatusOr ConfigConnectionImpl::CreatePreview( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::config::v1::CreatePreviewRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -785,8 +780,7 @@ StatusOr ConfigConnectionImpl::CreatePreview( future> ConfigConnectionImpl::CreatePreview( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -907,7 +901,7 @@ ConfigConnectionImpl::DeletePreview( } StatusOr ConfigConnectionImpl::DeletePreview( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::config::v1::DeletePreviewRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -922,8 +916,7 @@ StatusOr ConfigConnectionImpl::DeletePreview( future> ConfigConnectionImpl::DeletePreview( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/config/v1/internal/config_connection_impl.h b/google/cloud/config/v1/internal/config_connection_impl.h index ddf3e229b700a..b6186ccdfcf2f 100644 --- a/google/cloud/config/v1/internal/config_connection_impl.h +++ b/google/cloud/config/v1/internal/config_connection_impl.h @@ -61,12 +61,12 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { override; StatusOr CreateDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::config::v1::CreateDeploymentRequest const& request) override; future> CreateDeployment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateDeployment( @@ -74,12 +74,12 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { override; StatusOr UpdateDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::config::v1::UpdateDeploymentRequest const& request) override; future> UpdateDeployment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteDeployment( @@ -87,12 +87,12 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { override; StatusOr DeleteDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::config::v1::DeleteDeploymentRequest const& request) override; future> DeleteDeployment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListRevisions( @@ -127,11 +127,11 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { google::cloud::config::v1::LockDeploymentRequest const& request) override; StatusOr LockDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::config::v1::LockDeploymentRequest const& request) override; future> LockDeployment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UnlockDeployment( @@ -139,12 +139,12 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { override; StatusOr UnlockDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::config::v1::UnlockDeploymentRequest const& request) override; future> UnlockDeployment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr ExportLockInfo( @@ -154,11 +154,11 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { google::cloud::config::v1::CreatePreviewRequest const& request) override; StatusOr CreatePreview( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::config::v1::CreatePreviewRequest const& request) override; future> CreatePreview( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetPreview( @@ -171,11 +171,11 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { google::cloud::config::v1::DeletePreviewRequest const& request) override; StatusOr DeletePreview( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::config::v1::DeletePreviewRequest const& request) override; future> DeletePreview( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/config/v1/internal/config_tracing_connection.cc b/google/cloud/config/v1/internal/config_tracing_connection.cc index 74393a4e808c7..212a6beeb2c3c 100644 --- a/google/cloud/config/v1/internal/config_tracing_connection.cc +++ b/google/cloud/config/v1/internal/config_tracing_connection.cc @@ -63,26 +63,24 @@ ConfigTracingConnection::CreateDeployment( StatusOr ConfigTracingConnection::CreateDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::CreateDeploymentRequest const& request) { auto span = internal::MakeSpan("config_v1::ConfigConnection::CreateDeployment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateDeployment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateDeployment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConfigTracingConnection::CreateDeployment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("config_v1::ConfigConnection::CreateDeployment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateDeployment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateDeployment(ExperimentalTag{}, operation)); } future> @@ -96,26 +94,24 @@ ConfigTracingConnection::UpdateDeployment( StatusOr ConfigTracingConnection::UpdateDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::UpdateDeploymentRequest const& request) { auto span = internal::MakeSpan("config_v1::ConfigConnection::UpdateDeployment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateDeployment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateDeployment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConfigTracingConnection::UpdateDeployment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("config_v1::ConfigConnection::UpdateDeployment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateDeployment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateDeployment(ExperimentalTag{}, operation)); } future> @@ -129,26 +125,24 @@ ConfigTracingConnection::DeleteDeployment( StatusOr ConfigTracingConnection::DeleteDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::DeleteDeploymentRequest const& request) { auto span = internal::MakeSpan("config_v1::ConfigConnection::DeleteDeployment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteDeployment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteDeployment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConfigTracingConnection::DeleteDeployment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("config_v1::ConfigConnection::DeleteDeployment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteDeployment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteDeployment(ExperimentalTag{}, operation)); } StreamRange @@ -233,24 +227,21 @@ ConfigTracingConnection::LockDeployment( StatusOr ConfigTracingConnection::LockDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::LockDeploymentRequest const& request) { auto span = internal::MakeSpan("config_v1::ConfigConnection::LockDeployment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->LockDeployment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->LockDeployment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConfigTracingConnection::LockDeployment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("config_v1::ConfigConnection::LockDeployment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->LockDeployment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->LockDeployment(ExperimentalTag{}, operation)); } future> @@ -264,26 +255,24 @@ ConfigTracingConnection::UnlockDeployment( StatusOr ConfigTracingConnection::UnlockDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::UnlockDeploymentRequest const& request) { auto span = internal::MakeSpan("config_v1::ConfigConnection::UnlockDeployment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UnlockDeployment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UnlockDeployment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConfigTracingConnection::UnlockDeployment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("config_v1::ConfigConnection::UnlockDeployment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UnlockDeployment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UnlockDeployment(ExperimentalTag{}, operation)); } StatusOr @@ -303,24 +292,21 @@ ConfigTracingConnection::CreatePreview( } StatusOr ConfigTracingConnection::CreatePreview( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::CreatePreviewRequest const& request) { auto span = internal::MakeSpan("config_v1::ConfigConnection::CreatePreview"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreatePreview(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreatePreview(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConfigTracingConnection::CreatePreview( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("config_v1::ConfigConnection::CreatePreview"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreatePreview(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreatePreview(ExperimentalTag{}, operation)); } StatusOr @@ -350,24 +336,21 @@ ConfigTracingConnection::DeletePreview( } StatusOr ConfigTracingConnection::DeletePreview( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::DeletePreviewRequest const& request) { auto span = internal::MakeSpan("config_v1::ConfigConnection::DeletePreview"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeletePreview(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeletePreview(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConfigTracingConnection::DeletePreview( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("config_v1::ConfigConnection::DeletePreview"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeletePreview(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeletePreview(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/config/v1/internal/config_tracing_connection.h b/google/cloud/config/v1/internal/config_tracing_connection.h index 10b67f8a1194f..adf2129923694 100644 --- a/google/cloud/config/v1/internal/config_tracing_connection.h +++ b/google/cloud/config/v1/internal/config_tracing_connection.h @@ -50,12 +50,12 @@ class ConfigTracingConnection : public config_v1::ConfigConnection { override; StatusOr CreateDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::CreateDeploymentRequest const& request) override; future> CreateDeployment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateDeployment( @@ -63,12 +63,12 @@ class ConfigTracingConnection : public config_v1::ConfigConnection { override; StatusOr UpdateDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::UpdateDeploymentRequest const& request) override; future> UpdateDeployment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteDeployment( @@ -76,12 +76,12 @@ class ConfigTracingConnection : public config_v1::ConfigConnection { override; StatusOr DeleteDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::DeleteDeploymentRequest const& request) override; future> DeleteDeployment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListRevisions( @@ -116,11 +116,11 @@ class ConfigTracingConnection : public config_v1::ConfigConnection { google::cloud::config::v1::LockDeploymentRequest const& request) override; StatusOr LockDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::LockDeploymentRequest const& request) override; future> LockDeployment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UnlockDeployment( @@ -128,12 +128,12 @@ class ConfigTracingConnection : public config_v1::ConfigConnection { override; StatusOr UnlockDeployment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::UnlockDeploymentRequest const& request) override; future> UnlockDeployment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr ExportLockInfo( @@ -143,11 +143,11 @@ class ConfigTracingConnection : public config_v1::ConfigConnection { google::cloud::config::v1::CreatePreviewRequest const& request) override; StatusOr CreatePreview( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::CreatePreviewRequest const& request) override; future> CreatePreview( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetPreview( @@ -160,11 +160,11 @@ class ConfigTracingConnection : public config_v1::ConfigConnection { google::cloud::config::v1::DeletePreviewRequest const& request) override; StatusOr DeletePreview( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::DeletePreviewRequest const& request) override; future> DeletePreview( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/config/v1/mocks/mock_config_connection.h b/google/cloud/config/v1/mocks/mock_config_connection.h index 7966dd905008a..9767f6a7bac41 100644 --- a/google/cloud/config/v1/mocks/mock_config_connection.h +++ b/google/cloud/config/v1/mocks/mock_config_connection.h @@ -62,13 +62,13 @@ class MockConfigConnection : public config_v1::ConfigConnection { MOCK_METHOD( StatusOr, CreateDeployment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::config::v1::CreateDeploymentRequest const& request), (override)); MOCK_METHOD(future>, CreateDeployment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -79,13 +79,13 @@ class MockConfigConnection : public config_v1::ConfigConnection { MOCK_METHOD( StatusOr, UpdateDeployment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::config::v1::UpdateDeploymentRequest const& request), (override)); MOCK_METHOD(future>, UpdateDeployment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -96,13 +96,13 @@ class MockConfigConnection : public config_v1::ConfigConnection { MOCK_METHOD( StatusOr, DeleteDeployment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::config::v1::DeleteDeploymentRequest const& request), (override)); MOCK_METHOD(future>, DeleteDeployment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -150,13 +150,13 @@ class MockConfigConnection : public config_v1::ConfigConnection { (override)); MOCK_METHOD(StatusOr, LockDeployment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::config::v1::LockDeploymentRequest const& request), (override)); MOCK_METHOD(future>, LockDeployment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -167,13 +167,13 @@ class MockConfigConnection : public config_v1::ConfigConnection { MOCK_METHOD( StatusOr, UnlockDeployment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::config::v1::UnlockDeploymentRequest const& request), (override)); MOCK_METHOD(future>, UnlockDeployment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -187,13 +187,13 @@ class MockConfigConnection : public config_v1::ConfigConnection { (override)); MOCK_METHOD(StatusOr, CreatePreview, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::config::v1::CreatePreviewRequest const& request), (override)); MOCK_METHOD(future>, CreatePreview, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -211,13 +211,13 @@ class MockConfigConnection : public config_v1::ConfigConnection { (override)); MOCK_METHOD(StatusOr, DeletePreview, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::config::v1::DeletePreviewRequest const& request), (override)); MOCK_METHOD(future>, DeletePreview, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/connectors/v1/internal/connectors_connection_impl.cc b/google/cloud/connectors/v1/internal/connectors_connection_impl.cc index 5255fcba295d8..e51047cc15c71 100644 --- a/google/cloud/connectors/v1/internal/connectors_connection_impl.cc +++ b/google/cloud/connectors/v1/internal/connectors_connection_impl.cc @@ -155,7 +155,7 @@ ConnectorsConnectionImpl::CreateConnection( StatusOr ConnectorsConnectionImpl::CreateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::connectors::v1::CreateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -171,8 +171,7 @@ ConnectorsConnectionImpl::CreateConnection( future> ConnectorsConnectionImpl::CreateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -249,7 +248,7 @@ ConnectorsConnectionImpl::UpdateConnection( StatusOr ConnectorsConnectionImpl::UpdateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::connectors::v1::UpdateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -265,8 +264,7 @@ ConnectorsConnectionImpl::UpdateConnection( future> ConnectorsConnectionImpl::UpdateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -343,7 +341,7 @@ ConnectorsConnectionImpl::DeleteConnection( StatusOr ConnectorsConnectionImpl::DeleteConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::connectors::v1::DeleteConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -359,8 +357,7 @@ ConnectorsConnectionImpl::DeleteConnection( future> ConnectorsConnectionImpl::DeleteConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -603,7 +600,7 @@ ConnectorsConnectionImpl::RefreshConnectionSchemaMetadata( StatusOr ConnectorsConnectionImpl::RefreshConnectionSchemaMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::connectors::v1::RefreshConnectionSchemaMetadataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -621,8 +618,7 @@ ConnectorsConnectionImpl::RefreshConnectionSchemaMetadata( future> ConnectorsConnectionImpl::RefreshConnectionSchemaMetadata( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/connectors/v1/internal/connectors_connection_impl.h b/google/cloud/connectors/v1/internal/connectors_connection_impl.h index debb3c892ff53..23032b1b603e9 100644 --- a/google/cloud/connectors/v1/internal/connectors_connection_impl.h +++ b/google/cloud/connectors/v1/internal/connectors_connection_impl.h @@ -63,12 +63,12 @@ class ConnectorsConnectionImpl : public connectors_v1::ConnectorsConnection { override; StatusOr CreateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::connectors::v1::CreateConnectionRequest const& request) override; future> CreateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateConnection( @@ -76,12 +76,12 @@ class ConnectorsConnectionImpl : public connectors_v1::ConnectorsConnection { override; StatusOr UpdateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::connectors::v1::UpdateConnectionRequest const& request) override; future> UpdateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -89,12 +89,12 @@ class ConnectorsConnectionImpl : public connectors_v1::ConnectorsConnection { request) override; StatusOr DeleteConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::connectors::v1::DeleteConnectionRequest const& request) override; future> - DeleteConnection(google::cloud::ExperimentalTag, + DeleteConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListProviders( @@ -131,13 +131,13 @@ class ConnectorsConnectionImpl : public connectors_v1::ConnectorsConnection { RefreshConnectionSchemaMetadataRequest const& request) override; StatusOr RefreshConnectionSchemaMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::connectors::v1:: RefreshConnectionSchemaMetadataRequest const& request) override; future> RefreshConnectionSchemaMetadata( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/connectors/v1/internal/connectors_tracing_connection.cc b/google/cloud/connectors/v1/internal/connectors_tracing_connection.cc index 5e51899c26cdb..66c0394e36f4a 100644 --- a/google/cloud/connectors/v1/internal/connectors_tracing_connection.cc +++ b/google/cloud/connectors/v1/internal/connectors_tracing_connection.cc @@ -65,26 +65,24 @@ ConnectorsTracingConnection::CreateConnection( StatusOr ConnectorsTracingConnection::CreateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::CreateConnectionRequest const& request) { auto span = internal::MakeSpan( "connectors_v1::ConnectorsConnection::CreateConnection"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateConnection(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateConnection(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConnectorsTracingConnection::CreateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "connectors_v1::ConnectorsConnection::CreateConnection"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateConnection(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateConnection(ExperimentalTag{}, operation)); } future> @@ -98,26 +96,24 @@ ConnectorsTracingConnection::UpdateConnection( StatusOr ConnectorsTracingConnection::UpdateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::UpdateConnectionRequest const& request) { auto span = internal::MakeSpan( "connectors_v1::ConnectorsConnection::UpdateConnection"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateConnection(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateConnection(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConnectorsTracingConnection::UpdateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "connectors_v1::ConnectorsConnection::UpdateConnection"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateConnection(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateConnection(ExperimentalTag{}, operation)); } future> @@ -131,26 +127,24 @@ ConnectorsTracingConnection::DeleteConnection( StatusOr ConnectorsTracingConnection::DeleteConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::DeleteConnectionRequest const& request) { auto span = internal::MakeSpan( "connectors_v1::ConnectorsConnection::DeleteConnection"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteConnection(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteConnection(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConnectorsTracingConnection::DeleteConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "connectors_v1::ConnectorsConnection::DeleteConnection"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteConnection(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteConnection(ExperimentalTag{}, operation)); } StreamRange @@ -237,27 +231,26 @@ ConnectorsTracingConnection::RefreshConnectionSchemaMetadata( StatusOr ConnectorsTracingConnection::RefreshConnectionSchemaMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::RefreshConnectionSchemaMetadataRequest const& request) { auto span = internal::MakeSpan( "connectors_v1::ConnectorsConnection::RefreshConnectionSchemaMetadata"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RefreshConnectionSchemaMetadata( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->RefreshConnectionSchemaMetadata(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> ConnectorsTracingConnection::RefreshConnectionSchemaMetadata( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "connectors_v1::ConnectorsConnection::RefreshConnectionSchemaMetadata"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RefreshConnectionSchemaMetadata( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->RefreshConnectionSchemaMetadata(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/connectors/v1/internal/connectors_tracing_connection.h b/google/cloud/connectors/v1/internal/connectors_tracing_connection.h index fbabb88d1013c..6eafcbaf80d6a 100644 --- a/google/cloud/connectors/v1/internal/connectors_tracing_connection.h +++ b/google/cloud/connectors/v1/internal/connectors_tracing_connection.h @@ -51,12 +51,12 @@ class ConnectorsTracingConnection : public connectors_v1::ConnectorsConnection { override; StatusOr CreateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::CreateConnectionRequest const& request) override; future> CreateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateConnection( @@ -64,12 +64,12 @@ class ConnectorsTracingConnection : public connectors_v1::ConnectorsConnection { override; StatusOr UpdateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::UpdateConnectionRequest const& request) override; future> UpdateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -77,12 +77,12 @@ class ConnectorsTracingConnection : public connectors_v1::ConnectorsConnection { request) override; StatusOr DeleteConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::DeleteConnectionRequest const& request) override; future> - DeleteConnection(google::cloud::ExperimentalTag, + DeleteConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListProviders( @@ -119,13 +119,13 @@ class ConnectorsTracingConnection : public connectors_v1::ConnectorsConnection { RefreshConnectionSchemaMetadataRequest const& request) override; StatusOr RefreshConnectionSchemaMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1:: RefreshConnectionSchemaMetadataRequest const& request) override; future> RefreshConnectionSchemaMetadata( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/connectors/v1/mocks/mock_connectors_connection.h b/google/cloud/connectors/v1/mocks/mock_connectors_connection.h index fb5994023b61c..4acb12b944fb9 100644 --- a/google/cloud/connectors/v1/mocks/mock_connectors_connection.h +++ b/google/cloud/connectors/v1/mocks/mock_connectors_connection.h @@ -64,13 +64,13 @@ class MockConnectorsConnection : public connectors_v1::ConnectorsConnection { MOCK_METHOD( StatusOr, CreateConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::CreateConnectionRequest const& request), (override)); MOCK_METHOD(future>, CreateConnection, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -82,13 +82,13 @@ class MockConnectorsConnection : public connectors_v1::ConnectorsConnection { MOCK_METHOD( StatusOr, UpdateConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::UpdateConnectionRequest const& request), (override)); MOCK_METHOD(future>, UpdateConnection, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -100,15 +100,14 @@ class MockConnectorsConnection : public connectors_v1::ConnectorsConnection { MOCK_METHOD( StatusOr, DeleteConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::DeleteConnectionRequest const& request), (override)); MOCK_METHOD( future>, DeleteConnection, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), @@ -159,7 +158,7 @@ class MockConnectorsConnection : public connectors_v1::ConnectorsConnection { MOCK_METHOD(StatusOr, RefreshConnectionSchemaMetadata, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1:: RefreshConnectionSchemaMetadataRequest const& request), (override)); @@ -167,8 +166,7 @@ class MockConnectorsConnection : public connectors_v1::ConnectorsConnection { MOCK_METHOD( future>, RefreshConnectionSchemaMetadata, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.cc b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.cc index 28a28f18f5f31..8cd7154b02543 100644 --- a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.cc +++ b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.cc @@ -132,7 +132,7 @@ ContactCenterInsightsConnectionImpl::UploadConversation( StatusOr ContactCenterInsightsConnectionImpl::UploadConversation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1::UploadConversationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -149,8 +149,7 @@ ContactCenterInsightsConnectionImpl::UploadConversation( future> ContactCenterInsightsConnectionImpl::UploadConversation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ContactCenterInsightsConnectionImpl::CreateAnalysis( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -331,8 +330,7 @@ ContactCenterInsightsConnectionImpl::CreateAnalysis( future> ContactCenterInsightsConnectionImpl::CreateAnalysis( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ContactCenterInsightsConnectionImpl::BulkAnalyzeConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1:: BulkAnalyzeConversationsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -499,8 +497,7 @@ ContactCenterInsightsConnectionImpl::BulkAnalyzeConversations( future> ContactCenterInsightsConnectionImpl::BulkAnalyzeConversations( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ContactCenterInsightsConnectionImpl::BulkDeleteConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1:: BulkDeleteConversationsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -601,8 +598,7 @@ ContactCenterInsightsConnectionImpl::BulkDeleteConversations( future> ContactCenterInsightsConnectionImpl::BulkDeleteConversations( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ContactCenterInsightsConnectionImpl::IngestConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1::IngestConversationsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -702,8 +698,7 @@ ContactCenterInsightsConnectionImpl::IngestConversations( future> ContactCenterInsightsConnectionImpl::IngestConversations( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ContactCenterInsightsConnectionImpl::ExportInsightsData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -801,8 +796,7 @@ ContactCenterInsightsConnectionImpl::ExportInsightsData( future> ContactCenterInsightsConnectionImpl::ExportInsightsData( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ContactCenterInsightsConnectionImpl::CreateIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -897,8 +891,7 @@ ContactCenterInsightsConnectionImpl::CreateIssueModel( future> ContactCenterInsightsConnectionImpl::CreateIssueModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ContactCenterInsightsConnectionImpl::DeleteIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1044,8 +1037,7 @@ ContactCenterInsightsConnectionImpl::DeleteIssueModel( future> ContactCenterInsightsConnectionImpl::DeleteIssueModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ContactCenterInsightsConnectionImpl::DeployIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1142,8 +1134,7 @@ ContactCenterInsightsConnectionImpl::DeployIssueModel( future> ContactCenterInsightsConnectionImpl::DeployIssueModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ContactCenterInsightsConnectionImpl::UndeployIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1240,8 +1231,7 @@ ContactCenterInsightsConnectionImpl::UndeployIssueModel( future> ContactCenterInsightsConnectionImpl::UndeployIssueModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is UploadConversation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1::UploadConversationRequest const& request) override; future> - UploadConversation(google::cloud::ExperimentalTag, + UploadConversation(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -98,12 +98,12 @@ class ContactCenterInsightsConnectionImpl request) override; StatusOr CreateAnalysis( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& request) override; future> - CreateAnalysis(google::cloud::ExperimentalTag, + CreateAnalysis(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAnalysis( @@ -125,14 +125,14 @@ class ContactCenterInsightsConnectionImpl BulkAnalyzeConversationsRequest const& request) override; StatusOr BulkAnalyzeConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1:: BulkAnalyzeConversationsRequest const& request) override; future> BulkAnalyzeConversations( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future BulkDeleteConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1:: BulkDeleteConversationsRequest const& request) override; future> BulkDeleteConversations( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future IngestConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1:: IngestConversationsRequest const& request) override; future> - IngestConversations(google::cloud::ExperimentalTag, + IngestConversations(ExperimentalTag, google::longrunning::Operation const& operation) override; future ExportInsightsData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const& request) override; future> - ExportInsightsData(google::cloud::ExperimentalTag, + ExportInsightsData(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -189,12 +189,12 @@ class ContactCenterInsightsConnectionImpl request) override; StatusOr CreateIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& request) override; future> - CreateIssueModel(google::cloud::ExperimentalTag, + CreateIssueModel(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -218,13 +218,13 @@ class ContactCenterInsightsConnectionImpl request) override; StatusOr DeleteIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& request) override; future> - DeleteIssueModel(google::cloud::ExperimentalTag, + DeleteIssueModel(ExperimentalTag, google::longrunning::Operation const& operation) override; future DeployIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& request) override; future> - DeployIssueModel(google::cloud::ExperimentalTag, + DeployIssueModel(ExperimentalTag, google::longrunning::Operation const& operation) override; future UndeployIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const& request) override; future> - UndeployIssueModel(google::cloud::ExperimentalTag, + UndeployIssueModel(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIssue( diff --git a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.cc b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.cc index 5b3892655f5f4..30a142391c416 100644 --- a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.cc +++ b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.cc @@ -59,7 +59,7 @@ ContactCenterInsightsTracingConnection::UploadConversation( StatusOr ContactCenterInsightsTracingConnection::UploadConversation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::UploadConversationRequest const& request) { auto span = internal::MakeSpan( @@ -67,21 +67,19 @@ ContactCenterInsightsTracingConnection::UploadConversation( "UploadConversation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UploadConversation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UploadConversation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ContactCenterInsightsTracingConnection::UploadConversation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "UploadConversation"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UploadConversation(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UploadConversation( + ExperimentalTag{}, operation)); } StatusOr @@ -143,7 +141,7 @@ ContactCenterInsightsTracingConnection::CreateAnalysis( StatusOr ContactCenterInsightsTracingConnection::CreateAnalysis( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& request) { auto span = internal::MakeSpan( @@ -151,21 +149,18 @@ ContactCenterInsightsTracingConnection::CreateAnalysis( "CreateAnalysis"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateAnalysis(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateAnalysis(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ContactCenterInsightsTracingConnection::CreateAnalysis( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "CreateAnalysis"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateAnalysis(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateAnalysis(ExperimentalTag{}, operation)); } StatusOr @@ -216,30 +211,28 @@ ContactCenterInsightsTracingConnection::BulkAnalyzeConversations( StatusOr ContactCenterInsightsTracingConnection::BulkAnalyzeConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: BulkAnalyzeConversationsRequest const& request) { auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "BulkAnalyzeConversations"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->BulkAnalyzeConversations( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->BulkAnalyzeConversations(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ContactCenterInsightsTracingConnection::BulkAnalyzeConversations( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "BulkAnalyzeConversations"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->BulkAnalyzeConversations( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BulkAnalyzeConversations( + ExperimentalTag{}, operation)); } future ContactCenterInsightsTracingConnection::BulkDeleteConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: BulkDeleteConversationsRequest const& request) { auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "BulkDeleteConversations"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->BulkDeleteConversations( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->BulkDeleteConversations(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ContactCenterInsightsTracingConnection::BulkDeleteConversations( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "BulkDeleteConversations"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->BulkDeleteConversations( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BulkDeleteConversations( + ExperimentalTag{}, operation)); } future ContactCenterInsightsTracingConnection::IngestConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::IngestConversationsRequest const& request) { auto span = internal::MakeSpan( @@ -306,22 +297,20 @@ ContactCenterInsightsTracingConnection::IngestConversations( "IngestConversations"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->IngestConversations(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->IngestConversations(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ContactCenterInsightsTracingConnection::IngestConversations( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "IngestConversations"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->IngestConversations(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->IngestConversations( + ExperimentalTag{}, operation)); } future ContactCenterInsightsTracingConnection::ExportInsightsData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const& request) { auto span = internal::MakeSpan( @@ -347,22 +336,20 @@ ContactCenterInsightsTracingConnection::ExportInsightsData( "ExportInsightsData"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportInsightsData(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ExportInsightsData(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ContactCenterInsightsTracingConnection::ExportInsightsData( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "ExportInsightsData"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ExportInsightsData(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ExportInsightsData( + ExperimentalTag{}, operation)); } future> @@ -378,7 +365,7 @@ ContactCenterInsightsTracingConnection::CreateIssueModel( StatusOr ContactCenterInsightsTracingConnection::CreateIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& request) { auto span = internal::MakeSpan( @@ -386,21 +373,19 @@ ContactCenterInsightsTracingConnection::CreateIssueModel( "CreateIssueModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateIssueModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateIssueModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ContactCenterInsightsTracingConnection::CreateIssueModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "CreateIssueModel"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateIssueModel(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateIssueModel(ExperimentalTag{}, operation)); } StatusOr @@ -450,7 +435,7 @@ ContactCenterInsightsTracingConnection::DeleteIssueModel( StatusOr ContactCenterInsightsTracingConnection::DeleteIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& request) { auto span = internal::MakeSpan( @@ -458,22 +443,20 @@ ContactCenterInsightsTracingConnection::DeleteIssueModel( "DeleteIssueModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteIssueModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteIssueModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ContactCenterInsightsTracingConnection::DeleteIssueModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "DeleteIssueModel"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteIssueModel(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteIssueModel(ExperimentalTag{}, operation)); } future ContactCenterInsightsTracingConnection::DeployIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& request) { auto span = internal::MakeSpan( @@ -498,22 +481,20 @@ ContactCenterInsightsTracingConnection::DeployIssueModel( "DeployIssueModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeployIssueModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeployIssueModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ContactCenterInsightsTracingConnection::DeployIssueModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "DeployIssueModel"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeployIssueModel(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeployIssueModel(ExperimentalTag{}, operation)); } future ContactCenterInsightsTracingConnection::UndeployIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const& request) { auto span = internal::MakeSpan( @@ -539,22 +520,20 @@ ContactCenterInsightsTracingConnection::UndeployIssueModel( "UndeployIssueModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UndeployIssueModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UndeployIssueModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ContactCenterInsightsTracingConnection::UndeployIssueModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "contactcenterinsights_v1::ContactCenterInsightsConnection::" "UndeployIssueModel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UndeployIssueModel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UndeployIssueModel( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.h b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.h index ce1af9cbce1d0..6826136bed294 100644 --- a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.h +++ b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_tracing_connection.h @@ -52,12 +52,12 @@ class ContactCenterInsightsTracingConnection request) override; StatusOr UploadConversation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::UploadConversationRequest const& request) override; future> - UploadConversation(google::cloud::ExperimentalTag, + UploadConversation(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -85,12 +85,12 @@ class ContactCenterInsightsTracingConnection request) override; StatusOr CreateAnalysis( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& request) override; future> - CreateAnalysis(google::cloud::ExperimentalTag, + CreateAnalysis(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAnalysis( @@ -112,14 +112,14 @@ class ContactCenterInsightsTracingConnection BulkAnalyzeConversationsRequest const& request) override; StatusOr BulkAnalyzeConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: BulkAnalyzeConversationsRequest const& request) override; future> BulkAnalyzeConversations( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future BulkDeleteConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: BulkDeleteConversationsRequest const& request) override; future> BulkDeleteConversations( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future IngestConversations( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: IngestConversationsRequest const& request) override; future> - IngestConversations(google::cloud::ExperimentalTag, + IngestConversations(ExperimentalTag, google::longrunning::Operation const& operation) override; future ExportInsightsData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const& request) override; future> - ExportInsightsData(google::cloud::ExperimentalTag, + ExportInsightsData(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -176,12 +176,12 @@ class ContactCenterInsightsTracingConnection request) override; StatusOr CreateIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& request) override; future> - CreateIssueModel(google::cloud::ExperimentalTag, + CreateIssueModel(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -205,13 +205,13 @@ class ContactCenterInsightsTracingConnection request) override; StatusOr DeleteIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& request) override; future> - DeleteIssueModel(google::cloud::ExperimentalTag, + DeleteIssueModel(ExperimentalTag, google::longrunning::Operation const& operation) override; future DeployIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& request) override; future> - DeployIssueModel(google::cloud::ExperimentalTag, + DeployIssueModel(ExperimentalTag, google::longrunning::Operation const& operation) override; future UndeployIssueModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const& request) override; future> - UndeployIssueModel(google::cloud::ExperimentalTag, + UndeployIssueModel(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIssue( diff --git a/google/cloud/contactcenterinsights/v1/mocks/mock_contact_center_insights_connection.h b/google/cloud/contactcenterinsights/v1/mocks/mock_contact_center_insights_connection.h index decc307e5fb34..200694eecbd0b 100644 --- a/google/cloud/contactcenterinsights/v1/mocks/mock_contact_center_insights_connection.h +++ b/google/cloud/contactcenterinsights/v1/mocks/mock_contact_center_insights_connection.h @@ -61,7 +61,7 @@ class MockContactCenterInsightsConnection (override)); MOCK_METHOD(StatusOr, UploadConversation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: UploadConversationRequest const& request), (override)); @@ -69,8 +69,7 @@ class MockContactCenterInsightsConnection MOCK_METHOD( future>, UploadConversation, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, @@ -107,7 +106,7 @@ class MockContactCenterInsightsConnection MOCK_METHOD( StatusOr, CreateAnalysis, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& request), (override)); @@ -115,8 +114,7 @@ class MockContactCenterInsightsConnection MOCK_METHOD( future>, CreateAnalysis, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -146,7 +144,7 @@ class MockContactCenterInsightsConnection MOCK_METHOD(StatusOr, BulkAnalyzeConversations, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: BulkAnalyzeConversationsRequest const& request), (override)); @@ -154,7 +152,7 @@ class MockContactCenterInsightsConnection MOCK_METHOD(future>, BulkAnalyzeConversations, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -166,7 +164,7 @@ class MockContactCenterInsightsConnection (override)); MOCK_METHOD(StatusOr, BulkDeleteConversations, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: BulkDeleteConversationsRequest const& request), (override)); @@ -174,7 +172,7 @@ class MockContactCenterInsightsConnection MOCK_METHOD(future>, BulkDeleteConversations, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -186,7 +184,7 @@ class MockContactCenterInsightsConnection (override)); MOCK_METHOD(StatusOr, IngestConversations, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: IngestConversationsRequest const& request), (override)); @@ -194,7 +192,7 @@ class MockContactCenterInsightsConnection MOCK_METHOD(future>, IngestConversations, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -206,7 +204,7 @@ class MockContactCenterInsightsConnection (override)); MOCK_METHOD(StatusOr, ExportInsightsData, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: ExportInsightsDataRequest const& request), (override)); @@ -214,7 +212,7 @@ class MockContactCenterInsightsConnection MOCK_METHOD(future>, ExportInsightsData, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -227,7 +225,7 @@ class MockContactCenterInsightsConnection MOCK_METHOD( StatusOr, CreateIssueModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& request), (override)); @@ -235,8 +233,7 @@ class MockContactCenterInsightsConnection MOCK_METHOD( future>, CreateIssueModel, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -271,7 +268,7 @@ class MockContactCenterInsightsConnection MOCK_METHOD( StatusOr, DeleteIssueModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& request), (override)); @@ -280,8 +277,7 @@ class MockContactCenterInsightsConnection future>, DeleteIssueModel, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -294,7 +290,7 @@ class MockContactCenterInsightsConnection MOCK_METHOD( StatusOr, DeployIssueModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& request), (override)); @@ -303,8 +299,7 @@ class MockContactCenterInsightsConnection future>, DeployIssueModel, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future, UndeployIssueModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: UndeployIssueModelRequest const& request), (override)); @@ -323,7 +318,7 @@ class MockContactCenterInsightsConnection MOCK_METHOD(future>, UndeployIssueModel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.cc b/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.cc index f0c7d24681082..3f281272db693 100644 --- a/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.cc +++ b/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.cc @@ -109,7 +109,7 @@ PipelineServiceConnectionImpl::RunPipeline( StatusOr PipelineServiceConnectionImpl::RunPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contentwarehouse::v1::RunPipelineRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -125,8 +125,7 @@ PipelineServiceConnectionImpl::RunPipeline( future> PipelineServiceConnectionImpl::RunPipeline( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is RunPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::contentwarehouse::v1::RunPipelineRequest const& request) override; future> - RunPipeline(google::cloud::ExperimentalTag, + RunPipeline(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.cc b/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.cc index d9d92f1cd164b..7b5c18eed0877 100644 --- a/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.cc +++ b/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.cc @@ -43,26 +43,23 @@ PipelineServiceTracingConnection::RunPipeline( StatusOr PipelineServiceTracingConnection::RunPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contentwarehouse::v1::RunPipelineRequest const& request) { auto span = internal::MakeSpan( "contentwarehouse_v1::PipelineServiceConnection::RunPipeline"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RunPipeline(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RunPipeline(ExperimentalTag{}, NoAwaitTag{}, request)); } future> PipelineServiceTracingConnection::RunPipeline( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "contentwarehouse_v1::PipelineServiceConnection::RunPipeline"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RunPipeline(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RunPipeline(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.h b/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.h index 70cd82a315e35..19d3a31b88cf4 100644 --- a/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.h +++ b/google/cloud/contentwarehouse/v1/internal/pipeline_tracing_connection.h @@ -45,12 +45,12 @@ class PipelineServiceTracingConnection request) override; StatusOr RunPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::contentwarehouse::v1::RunPipelineRequest const& request) override; future> - RunPipeline(google::cloud::ExperimentalTag, + RunPipeline(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/contentwarehouse/v1/mocks/mock_pipeline_connection.h b/google/cloud/contentwarehouse/v1/mocks/mock_pipeline_connection.h index dbf2b3346bd04..b632b469c29b3 100644 --- a/google/cloud/contentwarehouse/v1/mocks/mock_pipeline_connection.h +++ b/google/cloud/contentwarehouse/v1/mocks/mock_pipeline_connection.h @@ -56,7 +56,7 @@ class MockPipelineServiceConnection MOCK_METHOD( StatusOr, RunPipeline, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::contentwarehouse::v1::RunPipelineRequest const& request), (override)); @@ -64,8 +64,7 @@ class MockPipelineServiceConnection future< StatusOr>, RunPipeline, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.cc b/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.cc index 46dbbbca867a6..0ef5e88ed6823 100644 --- a/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.cc +++ b/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.cc @@ -210,7 +210,7 @@ LineageConnectionImpl::DeleteProcess( } StatusOr LineageConnectionImpl::DeleteProcess( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -228,8 +228,7 @@ StatusOr LineageConnectionImpl::DeleteProcess( future> LineageConnectionImpl::DeleteProcess( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is LineageConnectionImpl::DeleteRun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -399,8 +398,7 @@ StatusOr LineageConnectionImpl::DeleteRun( future> LineageConnectionImpl::DeleteRun( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DeleteProcess( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& request) override; future> - DeleteProcess(google::cloud::ExperimentalTag, + DeleteProcess(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateRun( @@ -108,12 +108,12 @@ class LineageConnectionImpl : public datacatalog_lineage_v1::LineageConnection { request) override; StatusOr DeleteRun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request) override; future> - DeleteRun(google::cloud::ExperimentalTag, + DeleteRun(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.cc b/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.cc index f4ab738735c8b..0e29ca82ab204 100644 --- a/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.cc +++ b/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.cc @@ -97,27 +97,24 @@ LineageTracingConnection::DeleteProcess( StatusOr LineageTracingConnection::DeleteProcess( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& request) { auto span = internal::MakeSpan( "datacatalog_lineage_v1::LineageConnection::DeleteProcess"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteProcess(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteProcess(ExperimentalTag{}, NoAwaitTag{}, request)); } future> LineageTracingConnection::DeleteProcess( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datacatalog_lineage_v1::LineageConnection::DeleteProcess"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteProcess(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteProcess(ExperimentalTag{}, operation)); } StatusOr @@ -169,26 +166,23 @@ LineageTracingConnection::DeleteRun( } StatusOr LineageTracingConnection::DeleteRun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request) { auto span = internal::MakeSpan( "datacatalog_lineage_v1::LineageConnection::DeleteRun"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteRun(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteRun(ExperimentalTag{}, NoAwaitTag{}, request)); } future> LineageTracingConnection::DeleteRun( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datacatalog_lineage_v1::LineageConnection::DeleteRun"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteRun(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteRun(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.h b/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.h index 810c29124ce86..1c8339eceda4e 100644 --- a/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.h +++ b/google/cloud/datacatalog/lineage/v1/internal/lineage_tracing_connection.h @@ -68,12 +68,12 @@ class LineageTracingConnection request) override; StatusOr DeleteProcess( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& request) override; future> - DeleteProcess(google::cloud::ExperimentalTag, + DeleteProcess(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateRun( @@ -97,12 +97,12 @@ class LineageTracingConnection request) override; StatusOr DeleteRun( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request) override; future> - DeleteRun(google::cloud::ExperimentalTag, + DeleteRun(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/datacatalog/lineage/v1/mocks/mock_lineage_connection.h b/google/cloud/datacatalog/lineage/v1/mocks/mock_lineage_connection.h index d97a8bfc02a82..5a766783219ba 100644 --- a/google/cloud/datacatalog/lineage/v1/mocks/mock_lineage_connection.h +++ b/google/cloud/datacatalog/lineage/v1/mocks/mock_lineage_connection.h @@ -87,7 +87,7 @@ class MockLineageConnection : public datacatalog_lineage_v1::LineageConnection { MOCK_METHOD( StatusOr, DeleteProcess, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& request), (override)); @@ -96,8 +96,7 @@ class MockLineageConnection : public datacatalog_lineage_v1::LineageConnection { future< StatusOr>, DeleteProcess, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, CreateRun, @@ -129,7 +128,7 @@ class MockLineageConnection : public datacatalog_lineage_v1::LineageConnection { (override)); MOCK_METHOD(StatusOr, DeleteRun, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request), (override)); @@ -138,8 +137,7 @@ class MockLineageConnection : public datacatalog_lineage_v1::LineageConnection { future< StatusOr>, DeleteRun, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.cc b/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.cc index fa44659d86d84..ddd4822945d96 100644 --- a/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.cc +++ b/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.cc @@ -587,7 +587,7 @@ DataCatalogConnectionImpl::ReconcileTags( StatusOr DataCatalogConnectionImpl::ReconcileTags( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datacatalog::v1::ReconcileTagsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -603,8 +603,7 @@ DataCatalogConnectionImpl::ReconcileTags( future> DataCatalogConnectionImpl::ReconcileTags( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DataCatalogConnectionImpl::ImportEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datacatalog::v1::ImportEntriesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -766,8 +765,7 @@ DataCatalogConnectionImpl::ImportEntries( future> DataCatalogConnectionImpl::ImportEntries( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ReconcileTags( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datacatalog::v1::ReconcileTagsRequest const& request) override; future> - ReconcileTags(google::cloud::ExperimentalTag, + ReconcileTags(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr StarEntry( @@ -189,12 +189,12 @@ class DataCatalogConnectionImpl : public datacatalog_v1::DataCatalogConnection { request) override; StatusOr ImportEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datacatalog::v1::ImportEntriesRequest const& request) override; future> - ImportEntries(google::cloud::ExperimentalTag, + ImportEntries(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.cc b/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.cc index 153e7111855cc..e376c631248d8 100644 --- a/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.cc +++ b/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.cc @@ -298,26 +298,23 @@ DataCatalogTracingConnection::ReconcileTags( StatusOr DataCatalogTracingConnection::ReconcileTags( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::v1::ReconcileTagsRequest const& request) { auto span = internal::MakeSpan( "datacatalog_v1::DataCatalogConnection::ReconcileTags"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ReconcileTags(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ReconcileTags(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataCatalogTracingConnection::ReconcileTags( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datacatalog_v1::DataCatalogConnection::ReconcileTags"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ReconcileTags(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ReconcileTags(ExperimentalTag{}, operation)); } StatusOr @@ -374,26 +371,23 @@ DataCatalogTracingConnection::ImportEntries( StatusOr DataCatalogTracingConnection::ImportEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::v1::ImportEntriesRequest const& request) { auto span = internal::MakeSpan( "datacatalog_v1::DataCatalogConnection::ImportEntries"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportEntries(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ImportEntries(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataCatalogTracingConnection::ImportEntries( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datacatalog_v1::DataCatalogConnection::ImportEntries"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ImportEntries(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ImportEntries(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.h b/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.h index 8df3a9f4b35ed..ba9235443de50 100644 --- a/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.h +++ b/google/cloud/datacatalog/v1/internal/data_catalog_tracing_connection.h @@ -149,12 +149,12 @@ class DataCatalogTracingConnection request) override; StatusOr ReconcileTags( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::v1::ReconcileTagsRequest const& request) override; future> - ReconcileTags(google::cloud::ExperimentalTag, + ReconcileTags(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr StarEntry( @@ -178,12 +178,12 @@ class DataCatalogTracingConnection request) override; StatusOr ImportEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::v1::ImportEntriesRequest const& request) override; future> - ImportEntries(google::cloud::ExperimentalTag, + ImportEntries(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/datacatalog/v1/mocks/mock_data_catalog_connection.h b/google/cloud/datacatalog/v1/mocks/mock_data_catalog_connection.h index eb1f8a36a14e0..88604a506da57 100644 --- a/google/cloud/datacatalog/v1/mocks/mock_data_catalog_connection.h +++ b/google/cloud/datacatalog/v1/mocks/mock_data_catalog_connection.h @@ -194,15 +194,14 @@ class MockDataCatalogConnection : public datacatalog_v1::DataCatalogConnection { MOCK_METHOD( StatusOr, ReconcileTags, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::v1::ReconcileTagsRequest const& request), (override)); MOCK_METHOD( future>, ReconcileTags, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, @@ -237,15 +236,14 @@ class MockDataCatalogConnection : public datacatalog_v1::DataCatalogConnection { MOCK_METHOD( StatusOr, ImportEntries, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::v1::ImportEntriesRequest const& request), (override)); MOCK_METHOD( future>, ImportEntries, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.cc b/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.cc index 4559fbfba3767..8c25a582a24b6 100644 --- a/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.cc +++ b/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.cc @@ -189,7 +189,7 @@ DataFusionConnectionImpl::CreateInstance( StatusOr DataFusionConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datafusion::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -205,8 +205,7 @@ DataFusionConnectionImpl::CreateInstance( future> DataFusionConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -281,7 +280,7 @@ DataFusionConnectionImpl::DeleteInstance( StatusOr DataFusionConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datafusion::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -297,8 +296,7 @@ DataFusionConnectionImpl::DeleteInstance( future> DataFusionConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -374,7 +372,7 @@ DataFusionConnectionImpl::UpdateInstance( StatusOr DataFusionConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datafusion::v1::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -390,8 +388,7 @@ DataFusionConnectionImpl::UpdateInstance( future> DataFusionConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -467,7 +464,7 @@ DataFusionConnectionImpl::RestartInstance( StatusOr DataFusionConnectionImpl::RestartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datafusion::v1::RestartInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -483,8 +480,7 @@ DataFusionConnectionImpl::RestartInstance( future> DataFusionConnectionImpl::RestartInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.h b/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.h index 42624b2cb8c11..0269e954bee20 100644 --- a/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.h +++ b/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.h @@ -67,12 +67,12 @@ class DataFusionConnectionImpl : public datafusion_v1::DataFusionConnection { override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datafusion::v1::CreateInstanceRequest const& request) override; future> CreateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -80,12 +80,12 @@ class DataFusionConnectionImpl : public datafusion_v1::DataFusionConnection { request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datafusion::v1::DeleteInstanceRequest const& request) override; future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateInstance( @@ -93,12 +93,12 @@ class DataFusionConnectionImpl : public datafusion_v1::DataFusionConnection { override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datafusion::v1::UpdateInstanceRequest const& request) override; future> UpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RestartInstance( @@ -106,12 +106,12 @@ class DataFusionConnectionImpl : public datafusion_v1::DataFusionConnection { override; StatusOr RestartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datafusion::v1::RestartInstanceRequest const& request) override; future> RestartInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.cc b/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.cc index b5950796abcb8..a03f8bb48d61c 100644 --- a/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.cc +++ b/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.cc @@ -75,26 +75,23 @@ DataFusionTracingConnection::CreateInstance( StatusOr DataFusionTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::CreateInstanceRequest const& request) { auto span = internal::MakeSpan("datafusion_v1::DataFusionConnection::CreateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataFusionTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("datafusion_v1::DataFusionConnection::CreateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateInstance(ExperimentalTag{}, operation)); } future> @@ -108,26 +105,23 @@ DataFusionTracingConnection::DeleteInstance( StatusOr DataFusionTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan("datafusion_v1::DataFusionConnection::DeleteInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataFusionTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("datafusion_v1::DataFusionConnection::DeleteInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteInstance(ExperimentalTag{}, operation)); } future> @@ -141,26 +135,23 @@ DataFusionTracingConnection::UpdateInstance( StatusOr DataFusionTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::UpdateInstanceRequest const& request) { auto span = internal::MakeSpan("datafusion_v1::DataFusionConnection::UpdateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataFusionTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("datafusion_v1::DataFusionConnection::UpdateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateInstance(ExperimentalTag{}, operation)); } future> @@ -174,26 +165,23 @@ DataFusionTracingConnection::RestartInstance( StatusOr DataFusionTracingConnection::RestartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::RestartInstanceRequest const& request) { auto span = internal::MakeSpan( "datafusion_v1::DataFusionConnection::RestartInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RestartInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RestartInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataFusionTracingConnection::RestartInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datafusion_v1::DataFusionConnection::RestartInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RestartInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RestartInstance(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.h b/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.h index 74063b43726d6..24acdef8b598e 100644 --- a/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.h +++ b/google/cloud/datafusion/v1/internal/data_fusion_tracing_connection.h @@ -55,12 +55,12 @@ class DataFusionTracingConnection : public datafusion_v1::DataFusionConnection { override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::CreateInstanceRequest const& request) override; future> CreateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -68,12 +68,12 @@ class DataFusionTracingConnection : public datafusion_v1::DataFusionConnection { request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::DeleteInstanceRequest const& request) override; future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateInstance( @@ -81,12 +81,12 @@ class DataFusionTracingConnection : public datafusion_v1::DataFusionConnection { override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::UpdateInstanceRequest const& request) override; future> UpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RestartInstance( @@ -94,12 +94,12 @@ class DataFusionTracingConnection : public datafusion_v1::DataFusionConnection { override; StatusOr RestartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::RestartInstanceRequest const& request) override; future> RestartInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/datafusion/v1/mocks/mock_data_fusion_connection.h b/google/cloud/datafusion/v1/mocks/mock_data_fusion_connection.h index 8160f82223bf6..66273eca99bc2 100644 --- a/google/cloud/datafusion/v1/mocks/mock_data_fusion_connection.h +++ b/google/cloud/datafusion/v1/mocks/mock_data_fusion_connection.h @@ -69,13 +69,13 @@ class MockDataFusionConnection : public datafusion_v1::DataFusionConnection { MOCK_METHOD( StatusOr, CreateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::CreateInstanceRequest const& request), (override)); MOCK_METHOD(future>, CreateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -87,15 +87,14 @@ class MockDataFusionConnection : public datafusion_v1::DataFusionConnection { MOCK_METHOD( StatusOr, DeleteInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::DeleteInstanceRequest const& request), (override)); MOCK_METHOD( future>, DeleteInstance, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -105,13 +104,13 @@ class MockDataFusionConnection : public datafusion_v1::DataFusionConnection { MOCK_METHOD( StatusOr, UpdateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::UpdateInstanceRequest const& request), (override)); MOCK_METHOD(future>, UpdateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -123,13 +122,13 @@ class MockDataFusionConnection : public datafusion_v1::DataFusionConnection { MOCK_METHOD( StatusOr, RestartInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::RestartInstanceRequest const& request), (override)); MOCK_METHOD(future>, RestartInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/datamigration/v1/internal/data_migration_connection_impl.cc b/google/cloud/datamigration/v1/internal/data_migration_connection_impl.cc index b0ed20ad3b6eb..d3cf8fe47e86d 100644 --- a/google/cloud/datamigration/v1/internal/data_migration_connection_impl.cc +++ b/google/cloud/datamigration/v1/internal/data_migration_connection_impl.cc @@ -163,7 +163,7 @@ DataMigrationServiceConnectionImpl::CreateMigrationJob( StatusOr DataMigrationServiceConnectionImpl::CreateMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::CreateMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -179,8 +179,7 @@ DataMigrationServiceConnectionImpl::CreateMigrationJob( future> DataMigrationServiceConnectionImpl::CreateMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -257,7 +256,7 @@ DataMigrationServiceConnectionImpl::UpdateMigrationJob( StatusOr DataMigrationServiceConnectionImpl::UpdateMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -273,8 +272,7 @@ DataMigrationServiceConnectionImpl::UpdateMigrationJob( future> DataMigrationServiceConnectionImpl::UpdateMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -351,7 +349,7 @@ DataMigrationServiceConnectionImpl::DeleteMigrationJob( StatusOr DataMigrationServiceConnectionImpl::DeleteMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -367,8 +365,7 @@ DataMigrationServiceConnectionImpl::DeleteMigrationJob( future> DataMigrationServiceConnectionImpl::DeleteMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -445,7 +442,7 @@ DataMigrationServiceConnectionImpl::StartMigrationJob( StatusOr DataMigrationServiceConnectionImpl::StartMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::StartMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -461,8 +458,7 @@ DataMigrationServiceConnectionImpl::StartMigrationJob( future> DataMigrationServiceConnectionImpl::StartMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -538,7 +534,7 @@ DataMigrationServiceConnectionImpl::StopMigrationJob( StatusOr DataMigrationServiceConnectionImpl::StopMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::StopMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -554,8 +550,7 @@ DataMigrationServiceConnectionImpl::StopMigrationJob( future> DataMigrationServiceConnectionImpl::StopMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -632,7 +627,7 @@ DataMigrationServiceConnectionImpl::ResumeMigrationJob( StatusOr DataMigrationServiceConnectionImpl::ResumeMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -648,8 +643,7 @@ DataMigrationServiceConnectionImpl::ResumeMigrationJob( future> DataMigrationServiceConnectionImpl::ResumeMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -726,7 +720,7 @@ DataMigrationServiceConnectionImpl::PromoteMigrationJob( StatusOr DataMigrationServiceConnectionImpl::PromoteMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -742,8 +736,7 @@ DataMigrationServiceConnectionImpl::PromoteMigrationJob( future> DataMigrationServiceConnectionImpl::PromoteMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -820,7 +813,7 @@ DataMigrationServiceConnectionImpl::VerifyMigrationJob( StatusOr DataMigrationServiceConnectionImpl::VerifyMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -836,8 +829,7 @@ DataMigrationServiceConnectionImpl::VerifyMigrationJob( future> DataMigrationServiceConnectionImpl::VerifyMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -914,7 +906,7 @@ DataMigrationServiceConnectionImpl::RestartMigrationJob( StatusOr DataMigrationServiceConnectionImpl::RestartMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::RestartMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -930,8 +922,7 @@ DataMigrationServiceConnectionImpl::RestartMigrationJob( future> DataMigrationServiceConnectionImpl::RestartMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1090,7 +1081,7 @@ DataMigrationServiceConnectionImpl::CreateConnectionProfile( StatusOr DataMigrationServiceConnectionImpl::CreateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::CreateConnectionProfileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1107,8 +1098,7 @@ DataMigrationServiceConnectionImpl::CreateConnectionProfile( future> DataMigrationServiceConnectionImpl::CreateConnectionProfile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1186,7 +1176,7 @@ DataMigrationServiceConnectionImpl::UpdateConnectionProfile( StatusOr DataMigrationServiceConnectionImpl::UpdateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1203,8 +1193,7 @@ DataMigrationServiceConnectionImpl::UpdateConnectionProfile( future> DataMigrationServiceConnectionImpl::UpdateConnectionProfile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1282,7 +1271,7 @@ DataMigrationServiceConnectionImpl::DeleteConnectionProfile( StatusOr DataMigrationServiceConnectionImpl::DeleteConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1299,8 +1288,7 @@ DataMigrationServiceConnectionImpl::DeleteConnectionProfile( future> DataMigrationServiceConnectionImpl::DeleteConnectionProfile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1378,7 +1366,7 @@ DataMigrationServiceConnectionImpl::CreatePrivateConnection( StatusOr DataMigrationServiceConnectionImpl::CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1395,8 +1383,7 @@ DataMigrationServiceConnectionImpl::CreatePrivateConnection( future> DataMigrationServiceConnectionImpl::CreatePrivateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1525,7 +1512,7 @@ DataMigrationServiceConnectionImpl::DeletePrivateConnection( StatusOr DataMigrationServiceConnectionImpl::DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1542,8 +1529,7 @@ DataMigrationServiceConnectionImpl::DeletePrivateConnection( future> DataMigrationServiceConnectionImpl::DeletePrivateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1673,7 +1659,7 @@ DataMigrationServiceConnectionImpl::CreateConversionWorkspace( StatusOr DataMigrationServiceConnectionImpl::CreateConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1691,8 +1677,7 @@ DataMigrationServiceConnectionImpl::CreateConversionWorkspace( future> DataMigrationServiceConnectionImpl::CreateConversionWorkspace( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1770,7 +1755,7 @@ DataMigrationServiceConnectionImpl::UpdateConversionWorkspace( StatusOr DataMigrationServiceConnectionImpl::UpdateConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1788,8 +1773,7 @@ DataMigrationServiceConnectionImpl::UpdateConversionWorkspace( future> DataMigrationServiceConnectionImpl::UpdateConversionWorkspace( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1867,7 +1851,7 @@ DataMigrationServiceConnectionImpl::DeleteConversionWorkspace( StatusOr DataMigrationServiceConnectionImpl::DeleteConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1885,8 +1869,7 @@ DataMigrationServiceConnectionImpl::DeleteConversionWorkspace( future> DataMigrationServiceConnectionImpl::DeleteConversionWorkspace( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2043,7 +2026,7 @@ DataMigrationServiceConnectionImpl::SeedConversionWorkspace( StatusOr DataMigrationServiceConnectionImpl::SeedConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2060,8 +2043,7 @@ DataMigrationServiceConnectionImpl::SeedConversionWorkspace( future> DataMigrationServiceConnectionImpl::SeedConversionWorkspace( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2138,7 +2120,7 @@ DataMigrationServiceConnectionImpl::ImportMappingRules( StatusOr DataMigrationServiceConnectionImpl::ImportMappingRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::ImportMappingRulesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2154,8 +2136,7 @@ DataMigrationServiceConnectionImpl::ImportMappingRules( future> DataMigrationServiceConnectionImpl::ImportMappingRules( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2233,7 +2214,7 @@ DataMigrationServiceConnectionImpl::ConvertConversionWorkspace( StatusOr DataMigrationServiceConnectionImpl::ConvertConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2251,8 +2232,7 @@ DataMigrationServiceConnectionImpl::ConvertConversionWorkspace( future> DataMigrationServiceConnectionImpl::ConvertConversionWorkspace( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2330,7 +2310,7 @@ DataMigrationServiceConnectionImpl::CommitConversionWorkspace( StatusOr DataMigrationServiceConnectionImpl::CommitConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2348,8 +2328,7 @@ DataMigrationServiceConnectionImpl::CommitConversionWorkspace( future> DataMigrationServiceConnectionImpl::CommitConversionWorkspace( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2427,7 +2406,7 @@ DataMigrationServiceConnectionImpl::RollbackConversionWorkspace( StatusOr DataMigrationServiceConnectionImpl::RollbackConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2445,8 +2424,7 @@ DataMigrationServiceConnectionImpl::RollbackConversionWorkspace( future> DataMigrationServiceConnectionImpl::RollbackConversionWorkspace( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2524,7 +2502,7 @@ DataMigrationServiceConnectionImpl::ApplyConversionWorkspace( StatusOr DataMigrationServiceConnectionImpl::ApplyConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2541,8 +2519,7 @@ DataMigrationServiceConnectionImpl::ApplyConversionWorkspace( future> DataMigrationServiceConnectionImpl::ApplyConversionWorkspace( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/datamigration/v1/internal/data_migration_connection_impl.h b/google/cloud/datamigration/v1/internal/data_migration_connection_impl.h index 9d87e4dba2499..52f91448188b8 100644 --- a/google/cloud/datamigration/v1/internal/data_migration_connection_impl.h +++ b/google/cloud/datamigration/v1/internal/data_migration_connection_impl.h @@ -65,12 +65,12 @@ class DataMigrationServiceConnectionImpl override; StatusOr CreateMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::CreateMigrationJobRequest const& request) override; future> - CreateMigrationJob(google::cloud::ExperimentalTag, + CreateMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -79,12 +79,12 @@ class DataMigrationServiceConnectionImpl override; StatusOr UpdateMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request) override; future> - UpdateMigrationJob(google::cloud::ExperimentalTag, + UpdateMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -93,12 +93,12 @@ class DataMigrationServiceConnectionImpl override; StatusOr DeleteMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request) override; future> - DeleteMigrationJob(google::cloud::ExperimentalTag, + DeleteMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> StartMigrationJob( @@ -106,12 +106,12 @@ class DataMigrationServiceConnectionImpl override; StatusOr StartMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::StartMigrationJobRequest const& request) override; future> StartMigrationJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StopMigrationJob( @@ -119,12 +119,12 @@ class DataMigrationServiceConnectionImpl override; StatusOr StopMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::StopMigrationJobRequest const& request) override; future> StopMigrationJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -133,12 +133,12 @@ class DataMigrationServiceConnectionImpl override; StatusOr ResumeMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request) override; future> - ResumeMigrationJob(google::cloud::ExperimentalTag, + ResumeMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -147,12 +147,12 @@ class DataMigrationServiceConnectionImpl override; StatusOr PromoteMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request) override; future> - PromoteMigrationJob(google::cloud::ExperimentalTag, + PromoteMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -161,12 +161,12 @@ class DataMigrationServiceConnectionImpl override; StatusOr VerifyMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request) override; future> - VerifyMigrationJob(google::cloud::ExperimentalTag, + VerifyMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -175,12 +175,12 @@ class DataMigrationServiceConnectionImpl override; StatusOr RestartMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::RestartMigrationJobRequest const& request) override; future> - RestartMigrationJob(google::cloud::ExperimentalTag, + RestartMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GenerateSshScript( @@ -206,13 +206,13 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr CreateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::CreateConnectionProfileRequest const& request) override; future> CreateConnectionProfile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -221,13 +221,13 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr UpdateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& request) override; future> UpdateConnectionProfile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -236,13 +236,13 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr DeleteConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& request) override; future> DeleteConnectionProfile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -251,13 +251,13 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& request) override; future> CreatePrivateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetPrivateConnection( @@ -275,13 +275,13 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& request) override; future> DeletePrivateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -300,13 +300,13 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr CreateConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& request) override; future> CreateConversionWorkspace( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -315,13 +315,13 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr UpdateConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& request) override; future> UpdateConversionWorkspace( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -330,13 +330,13 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr DeleteConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& request) override; future> DeleteConversionWorkspace( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateMappingRule( @@ -360,13 +360,13 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr SeedConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& request) override; future> SeedConversionWorkspace( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -375,12 +375,12 @@ class DataMigrationServiceConnectionImpl override; StatusOr ImportMappingRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::ImportMappingRulesRequest const& request) override; future> - ImportMappingRules(google::cloud::ExperimentalTag, + ImportMappingRules(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -389,13 +389,13 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr ConvertConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& request) override; future> ConvertConversionWorkspace( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -404,13 +404,13 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr CommitConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& request) override; future> CommitConversionWorkspace( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -419,13 +419,13 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr RollbackConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& request) override; future> RollbackConversionWorkspace( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -434,13 +434,13 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr ApplyConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& request) override; future> ApplyConversionWorkspace( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.cc b/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.cc index 16727d6016dc8..58a0a5d3d9e7e 100644 --- a/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.cc +++ b/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.cc @@ -66,26 +66,24 @@ DataMigrationServiceTracingConnection::CreateMigrationJob( StatusOr DataMigrationServiceTracingConnection::CreateMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::CreateMigrationJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateMigrationJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateMigrationJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataMigrationServiceTracingConnection::CreateMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::CreateMigrationJob"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateMigrationJob(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateMigrationJob( + ExperimentalTag{}, operation)); } future> @@ -100,26 +98,24 @@ DataMigrationServiceTracingConnection::UpdateMigrationJob( StatusOr DataMigrationServiceTracingConnection::UpdateMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::UpdateMigrationJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateMigrationJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateMigrationJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataMigrationServiceTracingConnection::UpdateMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::UpdateMigrationJob"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateMigrationJob(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateMigrationJob( + ExperimentalTag{}, operation)); } future> @@ -134,26 +130,24 @@ DataMigrationServiceTracingConnection::DeleteMigrationJob( StatusOr DataMigrationServiceTracingConnection::DeleteMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::DeleteMigrationJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteMigrationJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteMigrationJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataMigrationServiceTracingConnection::DeleteMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::DeleteMigrationJob"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteMigrationJob(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteMigrationJob( + ExperimentalTag{}, operation)); } future> @@ -167,26 +161,24 @@ DataMigrationServiceTracingConnection::StartMigrationJob( StatusOr DataMigrationServiceTracingConnection::StartMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::StartMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::StartMigrationJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StartMigrationJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->StartMigrationJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataMigrationServiceTracingConnection::StartMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::StartMigrationJob"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->StartMigrationJob(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->StartMigrationJob(ExperimentalTag{}, operation)); } future> @@ -200,26 +192,24 @@ DataMigrationServiceTracingConnection::StopMigrationJob( StatusOr DataMigrationServiceTracingConnection::StopMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::StopMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::StopMigrationJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StopMigrationJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->StopMigrationJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataMigrationServiceTracingConnection::StopMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::StopMigrationJob"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->StopMigrationJob(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->StopMigrationJob(ExperimentalTag{}, operation)); } future> @@ -234,26 +224,24 @@ DataMigrationServiceTracingConnection::ResumeMigrationJob( StatusOr DataMigrationServiceTracingConnection::ResumeMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::ResumeMigrationJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ResumeMigrationJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ResumeMigrationJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataMigrationServiceTracingConnection::ResumeMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::ResumeMigrationJob"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ResumeMigrationJob(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ResumeMigrationJob( + ExperimentalTag{}, operation)); } future> @@ -268,26 +256,24 @@ DataMigrationServiceTracingConnection::PromoteMigrationJob( StatusOr DataMigrationServiceTracingConnection::PromoteMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::PromoteMigrationJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PromoteMigrationJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->PromoteMigrationJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataMigrationServiceTracingConnection::PromoteMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::PromoteMigrationJob"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PromoteMigrationJob(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->PromoteMigrationJob( + ExperimentalTag{}, operation)); } future> @@ -302,26 +288,24 @@ DataMigrationServiceTracingConnection::VerifyMigrationJob( StatusOr DataMigrationServiceTracingConnection::VerifyMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::VerifyMigrationJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->VerifyMigrationJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->VerifyMigrationJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataMigrationServiceTracingConnection::VerifyMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::VerifyMigrationJob"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->VerifyMigrationJob(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->VerifyMigrationJob( + ExperimentalTag{}, operation)); } future> @@ -336,26 +320,24 @@ DataMigrationServiceTracingConnection::RestartMigrationJob( StatusOr DataMigrationServiceTracingConnection::RestartMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::RestartMigrationJobRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::RestartMigrationJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RestartMigrationJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->RestartMigrationJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataMigrationServiceTracingConnection::RestartMigrationJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::RestartMigrationJob"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RestartMigrationJob(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RestartMigrationJob( + ExperimentalTag{}, operation)); } StatusOr @@ -413,29 +395,27 @@ DataMigrationServiceTracingConnection::CreateConnectionProfile( StatusOr DataMigrationServiceTracingConnection::CreateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateConnectionProfileRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "CreateConnectionProfile"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateConnectionProfile( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateConnectionProfile(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DataMigrationServiceTracingConnection::CreateConnectionProfile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "CreateConnectionProfile"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateConnectionProfile( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateConnectionProfile( + ExperimentalTag{}, operation)); } future> @@ -452,29 +432,27 @@ DataMigrationServiceTracingConnection::UpdateConnectionProfile( StatusOr DataMigrationServiceTracingConnection::UpdateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "UpdateConnectionProfile"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateConnectionProfile( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateConnectionProfile(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DataMigrationServiceTracingConnection::UpdateConnectionProfile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "UpdateConnectionProfile"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateConnectionProfile( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateConnectionProfile( + ExperimentalTag{}, operation)); } future> @@ -491,29 +469,27 @@ DataMigrationServiceTracingConnection::DeleteConnectionProfile( StatusOr DataMigrationServiceTracingConnection::DeleteConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "DeleteConnectionProfile"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteConnectionProfile( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteConnectionProfile(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DataMigrationServiceTracingConnection::DeleteConnectionProfile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "DeleteConnectionProfile"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteConnectionProfile( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteConnectionProfile( + ExperimentalTag{}, operation)); } future> @@ -530,29 +506,27 @@ DataMigrationServiceTracingConnection::CreatePrivateConnection( StatusOr DataMigrationServiceTracingConnection::CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "CreatePrivateConnection"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreatePrivateConnection( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreatePrivateConnection(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DataMigrationServiceTracingConnection::CreatePrivateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "CreatePrivateConnection"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreatePrivateConnection( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreatePrivateConnection( + ExperimentalTag{}, operation)); } StatusOr @@ -591,29 +565,27 @@ DataMigrationServiceTracingConnection::DeletePrivateConnection( StatusOr DataMigrationServiceTracingConnection::DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "DeletePrivateConnection"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeletePrivateConnection( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeletePrivateConnection(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DataMigrationServiceTracingConnection::DeletePrivateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "DeletePrivateConnection"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeletePrivateConnection( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeletePrivateConnection( + ExperimentalTag{}, operation)); } StatusOr @@ -653,29 +625,27 @@ DataMigrationServiceTracingConnection::CreateConversionWorkspace( StatusOr DataMigrationServiceTracingConnection::CreateConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "CreateConversionWorkspace"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateConversionWorkspace( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateConversionWorkspace(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DataMigrationServiceTracingConnection::CreateConversionWorkspace( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "CreateConversionWorkspace"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateConversionWorkspace( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateConversionWorkspace( + ExperimentalTag{}, operation)); } future> @@ -692,29 +662,27 @@ DataMigrationServiceTracingConnection::UpdateConversionWorkspace( StatusOr DataMigrationServiceTracingConnection::UpdateConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "UpdateConversionWorkspace"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateConversionWorkspace( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateConversionWorkspace(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DataMigrationServiceTracingConnection::UpdateConversionWorkspace( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "UpdateConversionWorkspace"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateConversionWorkspace( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateConversionWorkspace( + ExperimentalTag{}, operation)); } future> @@ -731,29 +699,27 @@ DataMigrationServiceTracingConnection::DeleteConversionWorkspace( StatusOr DataMigrationServiceTracingConnection::DeleteConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "DeleteConversionWorkspace"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteConversionWorkspace( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteConversionWorkspace(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DataMigrationServiceTracingConnection::DeleteConversionWorkspace( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "DeleteConversionWorkspace"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteConversionWorkspace( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteConversionWorkspace( + ExperimentalTag{}, operation)); } StatusOr @@ -807,29 +773,27 @@ DataMigrationServiceTracingConnection::SeedConversionWorkspace( StatusOr DataMigrationServiceTracingConnection::SeedConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "SeedConversionWorkspace"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SeedConversionWorkspace( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->SeedConversionWorkspace(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DataMigrationServiceTracingConnection::SeedConversionWorkspace( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "SeedConversionWorkspace"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SeedConversionWorkspace( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SeedConversionWorkspace( + ExperimentalTag{}, operation)); } future> @@ -844,26 +808,24 @@ DataMigrationServiceTracingConnection::ImportMappingRules( StatusOr DataMigrationServiceTracingConnection::ImportMappingRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ImportMappingRulesRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::ImportMappingRules"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportMappingRules(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ImportMappingRules(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataMigrationServiceTracingConnection::ImportMappingRules( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::ImportMappingRules"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ImportMappingRules(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ImportMappingRules( + ExperimentalTag{}, operation)); } future> @@ -880,29 +842,27 @@ DataMigrationServiceTracingConnection::ConvertConversionWorkspace( StatusOr DataMigrationServiceTracingConnection::ConvertConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "ConvertConversionWorkspace"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ConvertConversionWorkspace( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->ConvertConversionWorkspace(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DataMigrationServiceTracingConnection::ConvertConversionWorkspace( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "ConvertConversionWorkspace"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ConvertConversionWorkspace( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ConvertConversionWorkspace( + ExperimentalTag{}, operation)); } future> @@ -919,29 +879,27 @@ DataMigrationServiceTracingConnection::CommitConversionWorkspace( StatusOr DataMigrationServiceTracingConnection::CommitConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "CommitConversionWorkspace"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CommitConversionWorkspace( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CommitConversionWorkspace(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DataMigrationServiceTracingConnection::CommitConversionWorkspace( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "CommitConversionWorkspace"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CommitConversionWorkspace( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CommitConversionWorkspace( + ExperimentalTag{}, operation)); } future> @@ -958,29 +916,27 @@ DataMigrationServiceTracingConnection::RollbackConversionWorkspace( StatusOr DataMigrationServiceTracingConnection::RollbackConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "RollbackConversionWorkspace"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RollbackConversionWorkspace( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->RollbackConversionWorkspace(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> DataMigrationServiceTracingConnection::RollbackConversionWorkspace( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "RollbackConversionWorkspace"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RollbackConversionWorkspace( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RollbackConversionWorkspace( + ExperimentalTag{}, operation)); } future> @@ -997,29 +953,27 @@ DataMigrationServiceTracingConnection::ApplyConversionWorkspace( StatusOr DataMigrationServiceTracingConnection::ApplyConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& request) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "ApplyConversionWorkspace"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ApplyConversionWorkspace( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->ApplyConversionWorkspace(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DataMigrationServiceTracingConnection::ApplyConversionWorkspace( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datamigration_v1::DataMigrationServiceConnection::" "ApplyConversionWorkspace"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ApplyConversionWorkspace( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ApplyConversionWorkspace( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.h b/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.h index 2eabc705df082..019c2a0ad33fb 100644 --- a/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.h +++ b/google/cloud/datamigration/v1/internal/data_migration_tracing_connection.h @@ -53,12 +53,12 @@ class DataMigrationServiceTracingConnection override; StatusOr CreateMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateMigrationJobRequest const& request) override; future> - CreateMigrationJob(google::cloud::ExperimentalTag, + CreateMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -67,12 +67,12 @@ class DataMigrationServiceTracingConnection override; StatusOr UpdateMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request) override; future> - UpdateMigrationJob(google::cloud::ExperimentalTag, + UpdateMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -81,12 +81,12 @@ class DataMigrationServiceTracingConnection override; StatusOr DeleteMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request) override; future> - DeleteMigrationJob(google::cloud::ExperimentalTag, + DeleteMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> StartMigrationJob( @@ -94,12 +94,12 @@ class DataMigrationServiceTracingConnection override; StatusOr StartMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::StartMigrationJobRequest const& request) override; future> StartMigrationJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StopMigrationJob( @@ -107,12 +107,12 @@ class DataMigrationServiceTracingConnection override; StatusOr StopMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::StopMigrationJobRequest const& request) override; future> StopMigrationJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -121,12 +121,12 @@ class DataMigrationServiceTracingConnection override; StatusOr ResumeMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request) override; future> - ResumeMigrationJob(google::cloud::ExperimentalTag, + ResumeMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -135,12 +135,12 @@ class DataMigrationServiceTracingConnection override; StatusOr PromoteMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request) override; future> - PromoteMigrationJob(google::cloud::ExperimentalTag, + PromoteMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -149,12 +149,12 @@ class DataMigrationServiceTracingConnection override; StatusOr VerifyMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request) override; future> - VerifyMigrationJob(google::cloud::ExperimentalTag, + VerifyMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -163,12 +163,12 @@ class DataMigrationServiceTracingConnection override; StatusOr RestartMigrationJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::RestartMigrationJobRequest const& request) override; future> - RestartMigrationJob(google::cloud::ExperimentalTag, + RestartMigrationJob(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GenerateSshScript( @@ -194,13 +194,13 @@ class DataMigrationServiceTracingConnection request) override; StatusOr CreateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateConnectionProfileRequest const& request) override; future> CreateConnectionProfile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -209,13 +209,13 @@ class DataMigrationServiceTracingConnection request) override; StatusOr UpdateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& request) override; future> UpdateConnectionProfile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -224,13 +224,13 @@ class DataMigrationServiceTracingConnection request) override; StatusOr DeleteConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& request) override; future> DeleteConnectionProfile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -239,13 +239,13 @@ class DataMigrationServiceTracingConnection request) override; StatusOr CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& request) override; future> CreatePrivateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetPrivateConnection( @@ -263,13 +263,13 @@ class DataMigrationServiceTracingConnection request) override; StatusOr DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& request) override; future> DeletePrivateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -288,13 +288,13 @@ class DataMigrationServiceTracingConnection request) override; StatusOr CreateConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& request) override; future> CreateConversionWorkspace( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -303,13 +303,13 @@ class DataMigrationServiceTracingConnection request) override; StatusOr UpdateConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& request) override; future> UpdateConversionWorkspace( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -318,13 +318,13 @@ class DataMigrationServiceTracingConnection request) override; StatusOr DeleteConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& request) override; future> DeleteConversionWorkspace( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateMappingRule( @@ -348,13 +348,13 @@ class DataMigrationServiceTracingConnection request) override; StatusOr SeedConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& request) override; future> SeedConversionWorkspace( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -363,12 +363,12 @@ class DataMigrationServiceTracingConnection override; StatusOr ImportMappingRules( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ImportMappingRulesRequest const& request) override; future> - ImportMappingRules(google::cloud::ExperimentalTag, + ImportMappingRules(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -377,13 +377,13 @@ class DataMigrationServiceTracingConnection request) override; StatusOr ConvertConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& request) override; future> ConvertConversionWorkspace( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -392,13 +392,13 @@ class DataMigrationServiceTracingConnection request) override; StatusOr CommitConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& request) override; future> CommitConversionWorkspace( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -407,13 +407,13 @@ class DataMigrationServiceTracingConnection request) override; StatusOr RollbackConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& request) override; future> RollbackConversionWorkspace( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -422,13 +422,13 @@ class DataMigrationServiceTracingConnection request) override; StatusOr ApplyConversionWorkspace( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& request) override; future> ApplyConversionWorkspace( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/datamigration/v1/mocks/mock_data_migration_connection.h b/google/cloud/datamigration/v1/mocks/mock_data_migration_connection.h index 32aa7d309d90b..c58951bd2fe2e 100644 --- a/google/cloud/datamigration/v1/mocks/mock_data_migration_connection.h +++ b/google/cloud/datamigration/v1/mocks/mock_data_migration_connection.h @@ -65,13 +65,13 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, CreateMigrationJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateMigrationJobRequest const& request), (override)); MOCK_METHOD(future>, CreateMigrationJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -83,13 +83,13 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, UpdateMigrationJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request), (override)); MOCK_METHOD(future>, UpdateMigrationJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -101,13 +101,13 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, DeleteMigrationJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request), (override)); MOCK_METHOD(future>, DeleteMigrationJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -119,13 +119,13 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, StartMigrationJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::StartMigrationJobRequest const& request), (override)); MOCK_METHOD(future>, StartMigrationJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -137,13 +137,13 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, StopMigrationJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::StopMigrationJobRequest const& request), (override)); MOCK_METHOD(future>, StopMigrationJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -155,13 +155,13 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, ResumeMigrationJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request), (override)); MOCK_METHOD(future>, ResumeMigrationJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -173,13 +173,13 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, PromoteMigrationJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request), (override)); MOCK_METHOD(future>, PromoteMigrationJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -191,13 +191,13 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, VerifyMigrationJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request), (override)); MOCK_METHOD(future>, VerifyMigrationJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -209,13 +209,13 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, RestartMigrationJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::RestartMigrationJobRequest const& request), (override)); MOCK_METHOD(future>, RestartMigrationJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -251,14 +251,14 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, CreateConnectionProfile, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateConnectionProfileRequest const& request), (override)); MOCK_METHOD(future>, CreateConnectionProfile, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -271,14 +271,14 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, UpdateConnectionProfile, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& request), (override)); MOCK_METHOD(future>, UpdateConnectionProfile, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -291,14 +291,14 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, DeleteConnectionProfile, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& request), (override)); MOCK_METHOD(future>, DeleteConnectionProfile, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -311,14 +311,14 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, CreatePrivateConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& request), (override)); MOCK_METHOD(future>, CreatePrivateConnection, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -343,14 +343,14 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, DeletePrivateConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& request), (override)); MOCK_METHOD(future>, DeletePrivateConnection, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -375,7 +375,7 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, CreateConversionWorkspace, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& request), (override)); @@ -383,8 +383,7 @@ class MockDataMigrationServiceConnection MOCK_METHOD( future>, CreateConversionWorkspace, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -396,7 +395,7 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, UpdateConversionWorkspace, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& request), (override)); @@ -404,8 +403,7 @@ class MockDataMigrationServiceConnection MOCK_METHOD( future>, UpdateConversionWorkspace, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -417,14 +415,14 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, DeleteConversionWorkspace, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& request), (override)); MOCK_METHOD(future>, DeleteConversionWorkspace, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -457,7 +455,7 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, SeedConversionWorkspace, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& request), (override)); @@ -465,8 +463,7 @@ class MockDataMigrationServiceConnection MOCK_METHOD( future>, SeedConversionWorkspace, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -477,15 +474,14 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, ImportMappingRules, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ImportMappingRulesRequest const& request), (override)); MOCK_METHOD( future>, ImportMappingRules, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -497,7 +493,7 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, ConvertConversionWorkspace, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& request), (override)); @@ -505,8 +501,7 @@ class MockDataMigrationServiceConnection MOCK_METHOD( future>, ConvertConversionWorkspace, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -518,7 +513,7 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, CommitConversionWorkspace, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& request), (override)); @@ -526,8 +521,7 @@ class MockDataMigrationServiceConnection MOCK_METHOD( future>, CommitConversionWorkspace, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -539,7 +533,7 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, RollbackConversionWorkspace, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& request), (override)); @@ -547,8 +541,7 @@ class MockDataMigrationServiceConnection MOCK_METHOD( future>, RollbackConversionWorkspace, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -560,7 +553,7 @@ class MockDataMigrationServiceConnection MOCK_METHOD( StatusOr, ApplyConversionWorkspace, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& request), (override)); @@ -568,8 +561,7 @@ class MockDataMigrationServiceConnection MOCK_METHOD( future>, ApplyConversionWorkspace, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/dataplex/v1/internal/catalog_connection_impl.cc b/google/cloud/dataplex/v1/internal/catalog_connection_impl.cc index 2138c4a8a86a6..a1f26a9a52a39 100644 --- a/google/cloud/dataplex/v1/internal/catalog_connection_impl.cc +++ b/google/cloud/dataplex/v1/internal/catalog_connection_impl.cc @@ -105,7 +105,7 @@ CatalogServiceConnectionImpl::CreateEntryType( StatusOr CatalogServiceConnectionImpl::CreateEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateEntryTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -121,8 +121,7 @@ CatalogServiceConnectionImpl::CreateEntryType( future> CatalogServiceConnectionImpl::CreateEntryType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -197,7 +196,7 @@ CatalogServiceConnectionImpl::UpdateEntryType( StatusOr CatalogServiceConnectionImpl::UpdateEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -213,8 +212,7 @@ CatalogServiceConnectionImpl::UpdateEntryType( future> CatalogServiceConnectionImpl::UpdateEntryType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -289,7 +287,7 @@ CatalogServiceConnectionImpl::DeleteEntryType( StatusOr CatalogServiceConnectionImpl::DeleteEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -305,8 +303,7 @@ CatalogServiceConnectionImpl::DeleteEntryType( future> CatalogServiceConnectionImpl::DeleteEntryType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -430,7 +427,7 @@ CatalogServiceConnectionImpl::CreateAspectType( StatusOr CatalogServiceConnectionImpl::CreateAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateAspectTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -446,8 +443,7 @@ CatalogServiceConnectionImpl::CreateAspectType( future> CatalogServiceConnectionImpl::CreateAspectType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -522,7 +518,7 @@ CatalogServiceConnectionImpl::UpdateAspectType( StatusOr CatalogServiceConnectionImpl::UpdateAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -538,8 +534,7 @@ CatalogServiceConnectionImpl::UpdateAspectType( future> CatalogServiceConnectionImpl::UpdateAspectType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -614,7 +609,7 @@ CatalogServiceConnectionImpl::DeleteAspectType( StatusOr CatalogServiceConnectionImpl::DeleteAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -630,8 +625,7 @@ CatalogServiceConnectionImpl::DeleteAspectType( future> CatalogServiceConnectionImpl::DeleteAspectType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -755,7 +749,7 @@ CatalogServiceConnectionImpl::CreateEntryGroup( StatusOr CatalogServiceConnectionImpl::CreateEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateEntryGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -771,8 +765,7 @@ CatalogServiceConnectionImpl::CreateEntryGroup( future> CatalogServiceConnectionImpl::CreateEntryGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -847,7 +840,7 @@ CatalogServiceConnectionImpl::UpdateEntryGroup( StatusOr CatalogServiceConnectionImpl::UpdateEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -863,8 +856,7 @@ CatalogServiceConnectionImpl::UpdateEntryGroup( future> CatalogServiceConnectionImpl::UpdateEntryGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -939,7 +931,7 @@ CatalogServiceConnectionImpl::DeleteEntryGroup( StatusOr CatalogServiceConnectionImpl::DeleteEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -955,8 +947,7 @@ CatalogServiceConnectionImpl::DeleteEntryGroup( future> CatalogServiceConnectionImpl::DeleteEntryGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/dataplex/v1/internal/catalog_connection_impl.h b/google/cloud/dataplex/v1/internal/catalog_connection_impl.h index 8632082491746..6601011a832de 100644 --- a/google/cloud/dataplex/v1/internal/catalog_connection_impl.h +++ b/google/cloud/dataplex/v1/internal/catalog_connection_impl.h @@ -57,12 +57,12 @@ class CatalogServiceConnectionImpl override; StatusOr CreateEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateEntryTypeRequest const& request) override; future> CreateEntryType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateEntryType( @@ -70,12 +70,12 @@ class CatalogServiceConnectionImpl override; StatusOr UpdateEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request) override; future> UpdateEntryType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -83,12 +83,12 @@ class CatalogServiceConnectionImpl request) override; StatusOr DeleteEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request) override; future> - DeleteEntryType(google::cloud::ExperimentalTag, + DeleteEntryType(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListEntryTypes( @@ -102,12 +102,12 @@ class CatalogServiceConnectionImpl override; StatusOr CreateAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateAspectTypeRequest const& request) override; future> CreateAspectType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateAspectType( @@ -115,12 +115,12 @@ class CatalogServiceConnectionImpl override; StatusOr UpdateAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request) override; future> UpdateAspectType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -128,12 +128,12 @@ class CatalogServiceConnectionImpl request) override; StatusOr DeleteAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request) override; future> - DeleteAspectType(google::cloud::ExperimentalTag, + DeleteAspectType(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListAspectTypes( @@ -148,12 +148,12 @@ class CatalogServiceConnectionImpl override; StatusOr CreateEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateEntryGroupRequest const& request) override; future> CreateEntryGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateEntryGroup( @@ -161,12 +161,12 @@ class CatalogServiceConnectionImpl override; StatusOr UpdateEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request) override; future> UpdateEntryGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -174,12 +174,12 @@ class CatalogServiceConnectionImpl request) override; StatusOr DeleteEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request) override; future> - DeleteEntryGroup(google::cloud::ExperimentalTag, + DeleteEntryGroup(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListEntryGroups( diff --git a/google/cloud/dataplex/v1/internal/catalog_tracing_connection.cc b/google/cloud/dataplex/v1/internal/catalog_tracing_connection.cc index 3d303ca19c4b1..de9186c0275f0 100644 --- a/google/cloud/dataplex/v1/internal/catalog_tracing_connection.cc +++ b/google/cloud/dataplex/v1/internal/catalog_tracing_connection.cc @@ -44,26 +44,23 @@ CatalogServiceTracingConnection::CreateEntryType( StatusOr CatalogServiceTracingConnection::CreateEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEntryTypeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::CreateEntryType"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateEntryType(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateEntryType(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CatalogServiceTracingConnection::CreateEntryType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::CreateEntryType"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateEntryType(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateEntryType(ExperimentalTag{}, operation)); } future> @@ -77,26 +74,23 @@ CatalogServiceTracingConnection::UpdateEntryType( StatusOr CatalogServiceTracingConnection::UpdateEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::UpdateEntryType"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateEntryType(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateEntryType(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CatalogServiceTracingConnection::UpdateEntryType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::UpdateEntryType"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateEntryType(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateEntryType(ExperimentalTag{}, operation)); } future> @@ -110,26 +104,23 @@ CatalogServiceTracingConnection::DeleteEntryType( StatusOr CatalogServiceTracingConnection::DeleteEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::DeleteEntryType"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteEntryType(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteEntryType(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CatalogServiceTracingConnection::DeleteEntryType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::DeleteEntryType"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteEntryType(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteEntryType(ExperimentalTag{}, operation)); } StreamRange @@ -163,26 +154,24 @@ CatalogServiceTracingConnection::CreateAspectType( StatusOr CatalogServiceTracingConnection::CreateAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateAspectTypeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::CreateAspectType"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateAspectType(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateAspectType(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CatalogServiceTracingConnection::CreateAspectType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::CreateAspectType"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateAspectType(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateAspectType(ExperimentalTag{}, operation)); } future> @@ -196,26 +185,24 @@ CatalogServiceTracingConnection::UpdateAspectType( StatusOr CatalogServiceTracingConnection::UpdateAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::UpdateAspectType"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateAspectType(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateAspectType(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CatalogServiceTracingConnection::UpdateAspectType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::UpdateAspectType"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateAspectType(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateAspectType(ExperimentalTag{}, operation)); } future> @@ -229,26 +216,24 @@ CatalogServiceTracingConnection::DeleteAspectType( StatusOr CatalogServiceTracingConnection::DeleteAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::DeleteAspectType"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAspectType(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteAspectType(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CatalogServiceTracingConnection::DeleteAspectType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::DeleteAspectType"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteAspectType(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteAspectType(ExperimentalTag{}, operation)); } StreamRange @@ -282,26 +267,24 @@ CatalogServiceTracingConnection::CreateEntryGroup( StatusOr CatalogServiceTracingConnection::CreateEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEntryGroupRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::CreateEntryGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateEntryGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateEntryGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CatalogServiceTracingConnection::CreateEntryGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::CreateEntryGroup"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateEntryGroup(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateEntryGroup(ExperimentalTag{}, operation)); } future> @@ -315,26 +298,24 @@ CatalogServiceTracingConnection::UpdateEntryGroup( StatusOr CatalogServiceTracingConnection::UpdateEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::UpdateEntryGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateEntryGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateEntryGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CatalogServiceTracingConnection::UpdateEntryGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::UpdateEntryGroup"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateEntryGroup(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateEntryGroup(ExperimentalTag{}, operation)); } future> @@ -348,26 +329,24 @@ CatalogServiceTracingConnection::DeleteEntryGroup( StatusOr CatalogServiceTracingConnection::DeleteEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::DeleteEntryGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteEntryGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteEntryGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CatalogServiceTracingConnection::DeleteEntryGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::CatalogServiceConnection::DeleteEntryGroup"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteEntryGroup(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteEntryGroup(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/dataplex/v1/internal/catalog_tracing_connection.h b/google/cloud/dataplex/v1/internal/catalog_tracing_connection.h index e1e7ccd3e5f5c..73a95851a5805 100644 --- a/google/cloud/dataplex/v1/internal/catalog_tracing_connection.h +++ b/google/cloud/dataplex/v1/internal/catalog_tracing_connection.h @@ -45,12 +45,12 @@ class CatalogServiceTracingConnection override; StatusOr CreateEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEntryTypeRequest const& request) override; future> CreateEntryType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateEntryType( @@ -58,12 +58,12 @@ class CatalogServiceTracingConnection override; StatusOr UpdateEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request) override; future> UpdateEntryType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -71,12 +71,12 @@ class CatalogServiceTracingConnection request) override; StatusOr DeleteEntryType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request) override; future> - DeleteEntryType(google::cloud::ExperimentalTag, + DeleteEntryType(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListEntryTypes( @@ -90,12 +90,12 @@ class CatalogServiceTracingConnection override; StatusOr CreateAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateAspectTypeRequest const& request) override; future> CreateAspectType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateAspectType( @@ -103,12 +103,12 @@ class CatalogServiceTracingConnection override; StatusOr UpdateAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request) override; future> UpdateAspectType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -116,12 +116,12 @@ class CatalogServiceTracingConnection request) override; StatusOr DeleteAspectType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request) override; future> - DeleteAspectType(google::cloud::ExperimentalTag, + DeleteAspectType(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListAspectTypes( @@ -136,12 +136,12 @@ class CatalogServiceTracingConnection override; StatusOr CreateEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEntryGroupRequest const& request) override; future> CreateEntryGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateEntryGroup( @@ -149,12 +149,12 @@ class CatalogServiceTracingConnection override; StatusOr UpdateEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request) override; future> UpdateEntryGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -162,12 +162,12 @@ class CatalogServiceTracingConnection request) override; StatusOr DeleteEntryGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request) override; future> - DeleteEntryGroup(google::cloud::ExperimentalTag, + DeleteEntryGroup(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListEntryGroups( diff --git a/google/cloud/dataplex/v1/internal/data_scan_connection_impl.cc b/google/cloud/dataplex/v1/internal/data_scan_connection_impl.cc index 2ce8970165ef2..6039313bd3f68 100644 --- a/google/cloud/dataplex/v1/internal/data_scan_connection_impl.cc +++ b/google/cloud/dataplex/v1/internal/data_scan_connection_impl.cc @@ -107,7 +107,7 @@ DataScanServiceConnectionImpl::CreateDataScan( StatusOr DataScanServiceConnectionImpl::CreateDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateDataScanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -123,8 +123,7 @@ DataScanServiceConnectionImpl::CreateDataScan( future> DataScanServiceConnectionImpl::CreateDataScan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -199,7 +198,7 @@ DataScanServiceConnectionImpl::UpdateDataScan( StatusOr DataScanServiceConnectionImpl::UpdateDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateDataScanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -215,8 +214,7 @@ DataScanServiceConnectionImpl::UpdateDataScan( future> DataScanServiceConnectionImpl::UpdateDataScan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -291,7 +289,7 @@ DataScanServiceConnectionImpl::DeleteDataScan( StatusOr DataScanServiceConnectionImpl::DeleteDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteDataScanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -307,8 +305,7 @@ DataScanServiceConnectionImpl::DeleteDataScan( future> DataScanServiceConnectionImpl::DeleteDataScan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/dataplex/v1/internal/data_scan_connection_impl.h b/google/cloud/dataplex/v1/internal/data_scan_connection_impl.h index df213962220ff..9158c262018a8 100644 --- a/google/cloud/dataplex/v1/internal/data_scan_connection_impl.h +++ b/google/cloud/dataplex/v1/internal/data_scan_connection_impl.h @@ -57,12 +57,12 @@ class DataScanServiceConnectionImpl override; StatusOr CreateDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateDataScanRequest const& request) override; future> CreateDataScan( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateDataScan( @@ -70,12 +70,12 @@ class DataScanServiceConnectionImpl override; StatusOr UpdateDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateDataScanRequest const& request) override; future> UpdateDataScan( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -83,12 +83,12 @@ class DataScanServiceConnectionImpl request) override; StatusOr DeleteDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteDataScanRequest const& request) override; future> - DeleteDataScan(google::cloud::ExperimentalTag, + DeleteDataScan(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetDataScan( diff --git a/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.cc b/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.cc index 286c429511ce2..4bede380be683 100644 --- a/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.cc +++ b/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.cc @@ -44,26 +44,23 @@ DataScanServiceTracingConnection::CreateDataScan( StatusOr DataScanServiceTracingConnection::CreateDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataScanRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataScanServiceConnection::CreateDataScan"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateDataScan(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateDataScan(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataScanServiceTracingConnection::CreateDataScan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::DataScanServiceConnection::CreateDataScan"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateDataScan(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateDataScan(ExperimentalTag{}, operation)); } future> @@ -77,26 +74,23 @@ DataScanServiceTracingConnection::UpdateDataScan( StatusOr DataScanServiceTracingConnection::UpdateDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataScanRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataScanServiceConnection::UpdateDataScan"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateDataScan(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateDataScan(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataScanServiceTracingConnection::UpdateDataScan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::DataScanServiceConnection::UpdateDataScan"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateDataScan(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateDataScan(ExperimentalTag{}, operation)); } future> @@ -110,26 +104,23 @@ DataScanServiceTracingConnection::DeleteDataScan( StatusOr DataScanServiceTracingConnection::DeleteDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataScanRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataScanServiceConnection::DeleteDataScan"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteDataScan(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteDataScan(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataScanServiceTracingConnection::DeleteDataScan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::DataScanServiceConnection::DeleteDataScan"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteDataScan(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteDataScan(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.h b/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.h index 86751b3e9ab58..cafc03ff37f5e 100644 --- a/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.h +++ b/google/cloud/dataplex/v1/internal/data_scan_tracing_connection.h @@ -45,12 +45,12 @@ class DataScanServiceTracingConnection override; StatusOr CreateDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataScanRequest const& request) override; future> CreateDataScan( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateDataScan( @@ -58,12 +58,12 @@ class DataScanServiceTracingConnection override; StatusOr UpdateDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataScanRequest const& request) override; future> UpdateDataScan( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -71,12 +71,12 @@ class DataScanServiceTracingConnection request) override; StatusOr DeleteDataScan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataScanRequest const& request) override; future> - DeleteDataScan(google::cloud::ExperimentalTag, + DeleteDataScan(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetDataScan( diff --git a/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.cc b/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.cc index aabe9197bae3a..dd6ce312502df 100644 --- a/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.cc +++ b/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.cc @@ -109,7 +109,7 @@ DataTaxonomyServiceConnectionImpl::CreateDataTaxonomy( StatusOr DataTaxonomyServiceConnectionImpl::CreateDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -125,8 +125,7 @@ DataTaxonomyServiceConnectionImpl::CreateDataTaxonomy( future> DataTaxonomyServiceConnectionImpl::CreateDataTaxonomy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -203,7 +202,7 @@ DataTaxonomyServiceConnectionImpl::UpdateDataTaxonomy( StatusOr DataTaxonomyServiceConnectionImpl::UpdateDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -219,8 +218,7 @@ DataTaxonomyServiceConnectionImpl::UpdateDataTaxonomy( future> DataTaxonomyServiceConnectionImpl::UpdateDataTaxonomy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -297,7 +295,7 @@ DataTaxonomyServiceConnectionImpl::DeleteDataTaxonomy( StatusOr DataTaxonomyServiceConnectionImpl::DeleteDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -313,8 +311,7 @@ DataTaxonomyServiceConnectionImpl::DeleteDataTaxonomy( future> DataTaxonomyServiceConnectionImpl::DeleteDataTaxonomy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -441,7 +438,7 @@ DataTaxonomyServiceConnectionImpl::CreateDataAttributeBinding( StatusOr DataTaxonomyServiceConnectionImpl::CreateDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -459,8 +456,7 @@ DataTaxonomyServiceConnectionImpl::CreateDataAttributeBinding( future> DataTaxonomyServiceConnectionImpl::CreateDataAttributeBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -538,7 +534,7 @@ DataTaxonomyServiceConnectionImpl::UpdateDataAttributeBinding( StatusOr DataTaxonomyServiceConnectionImpl::UpdateDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -556,8 +552,7 @@ DataTaxonomyServiceConnectionImpl::UpdateDataAttributeBinding( future> DataTaxonomyServiceConnectionImpl::UpdateDataAttributeBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -635,7 +630,7 @@ DataTaxonomyServiceConnectionImpl::DeleteDataAttributeBinding( StatusOr DataTaxonomyServiceConnectionImpl::DeleteDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -653,8 +648,7 @@ DataTaxonomyServiceConnectionImpl::DeleteDataAttributeBinding( future> DataTaxonomyServiceConnectionImpl::DeleteDataAttributeBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -783,7 +777,7 @@ DataTaxonomyServiceConnectionImpl::CreateDataAttribute( StatusOr DataTaxonomyServiceConnectionImpl::CreateDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateDataAttributeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -799,8 +793,7 @@ DataTaxonomyServiceConnectionImpl::CreateDataAttribute( future> DataTaxonomyServiceConnectionImpl::CreateDataAttribute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -877,7 +870,7 @@ DataTaxonomyServiceConnectionImpl::UpdateDataAttribute( StatusOr DataTaxonomyServiceConnectionImpl::UpdateDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -893,8 +886,7 @@ DataTaxonomyServiceConnectionImpl::UpdateDataAttribute( future> DataTaxonomyServiceConnectionImpl::UpdateDataAttribute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -971,7 +963,7 @@ DataTaxonomyServiceConnectionImpl::DeleteDataAttribute( StatusOr DataTaxonomyServiceConnectionImpl::DeleteDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -987,8 +979,7 @@ DataTaxonomyServiceConnectionImpl::DeleteDataAttribute( future> DataTaxonomyServiceConnectionImpl::DeleteDataAttribute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.h b/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.h index d66954d1a5cf5..5c97c24b58067 100644 --- a/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.h +++ b/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.h @@ -58,12 +58,12 @@ class DataTaxonomyServiceConnectionImpl override; StatusOr CreateDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request) override; future> - CreateDataTaxonomy(google::cloud::ExperimentalTag, + CreateDataTaxonomy(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -72,12 +72,12 @@ class DataTaxonomyServiceConnectionImpl override; StatusOr UpdateDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request) override; future> - UpdateDataTaxonomy(google::cloud::ExperimentalTag, + UpdateDataTaxonomy(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -86,12 +86,12 @@ class DataTaxonomyServiceConnectionImpl override; StatusOr DeleteDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request) override; future> - DeleteDataTaxonomy(google::cloud::ExperimentalTag, + DeleteDataTaxonomy(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListDataTaxonomies( @@ -107,13 +107,13 @@ class DataTaxonomyServiceConnectionImpl request) override; StatusOr CreateDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& request) override; future> CreateDataAttributeBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -122,13 +122,13 @@ class DataTaxonomyServiceConnectionImpl request) override; StatusOr UpdateDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& request) override; future> UpdateDataAttributeBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -137,13 +137,13 @@ class DataTaxonomyServiceConnectionImpl request) override; StatusOr DeleteDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& request) override; future> DeleteDataAttributeBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -162,12 +162,12 @@ class DataTaxonomyServiceConnectionImpl override; StatusOr CreateDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateDataAttributeRequest const& request) override; future> - CreateDataAttribute(google::cloud::ExperimentalTag, + CreateDataAttribute(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -176,12 +176,12 @@ class DataTaxonomyServiceConnectionImpl override; StatusOr UpdateDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request) override; future> - UpdateDataAttribute(google::cloud::ExperimentalTag, + UpdateDataAttribute(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -190,12 +190,12 @@ class DataTaxonomyServiceConnectionImpl override; StatusOr DeleteDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request) override; future> - DeleteDataAttribute(google::cloud::ExperimentalTag, + DeleteDataAttribute(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListDataAttributes( diff --git a/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.cc b/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.cc index 1084e4cd14dc0..70f341a2612a8 100644 --- a/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.cc +++ b/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.cc @@ -45,26 +45,24 @@ DataTaxonomyServiceTracingConnection::CreateDataTaxonomy( StatusOr DataTaxonomyServiceTracingConnection::CreateDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::CreateDataTaxonomy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateDataTaxonomy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateDataTaxonomy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataTaxonomyServiceTracingConnection::CreateDataTaxonomy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::CreateDataTaxonomy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateDataTaxonomy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateDataTaxonomy( + ExperimentalTag{}, operation)); } future> @@ -79,26 +77,24 @@ DataTaxonomyServiceTracingConnection::UpdateDataTaxonomy( StatusOr DataTaxonomyServiceTracingConnection::UpdateDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::UpdateDataTaxonomy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateDataTaxonomy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateDataTaxonomy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataTaxonomyServiceTracingConnection::UpdateDataTaxonomy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::UpdateDataTaxonomy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateDataTaxonomy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateDataTaxonomy( + ExperimentalTag{}, operation)); } future> @@ -113,26 +109,24 @@ DataTaxonomyServiceTracingConnection::DeleteDataTaxonomy( StatusOr DataTaxonomyServiceTracingConnection::DeleteDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::DeleteDataTaxonomy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteDataTaxonomy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteDataTaxonomy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataTaxonomyServiceTracingConnection::DeleteDataTaxonomy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::DeleteDataTaxonomy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteDataTaxonomy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteDataTaxonomy( + ExperimentalTag{}, operation)); } StreamRange @@ -169,27 +163,25 @@ DataTaxonomyServiceTracingConnection::CreateDataAttributeBinding( StatusOr DataTaxonomyServiceTracingConnection::CreateDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::CreateDataAttributeBinding"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateDataAttributeBinding( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateDataAttributeBinding(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DataTaxonomyServiceTracingConnection::CreateDataAttributeBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::CreateDataAttributeBinding"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateDataAttributeBinding( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateDataAttributeBinding( + ExperimentalTag{}, operation)); } future> @@ -205,27 +197,25 @@ DataTaxonomyServiceTracingConnection::UpdateDataAttributeBinding( StatusOr DataTaxonomyServiceTracingConnection::UpdateDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::UpdateDataAttributeBinding"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateDataAttributeBinding( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateDataAttributeBinding(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DataTaxonomyServiceTracingConnection::UpdateDataAttributeBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::UpdateDataAttributeBinding"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateDataAttributeBinding( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateDataAttributeBinding( + ExperimentalTag{}, operation)); } future> @@ -241,27 +231,25 @@ DataTaxonomyServiceTracingConnection::DeleteDataAttributeBinding( StatusOr DataTaxonomyServiceTracingConnection::DeleteDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::DeleteDataAttributeBinding"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteDataAttributeBinding( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteDataAttributeBinding(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DataTaxonomyServiceTracingConnection::DeleteDataAttributeBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::DeleteDataAttributeBinding"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteDataAttributeBinding( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteDataAttributeBinding( + ExperimentalTag{}, operation)); } StreamRange @@ -298,26 +286,24 @@ DataTaxonomyServiceTracingConnection::CreateDataAttribute( StatusOr DataTaxonomyServiceTracingConnection::CreateDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataAttributeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::CreateDataAttribute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateDataAttribute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateDataAttribute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataTaxonomyServiceTracingConnection::CreateDataAttribute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::CreateDataAttribute"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateDataAttribute(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateDataAttribute( + ExperimentalTag{}, operation)); } future> @@ -332,26 +318,24 @@ DataTaxonomyServiceTracingConnection::UpdateDataAttribute( StatusOr DataTaxonomyServiceTracingConnection::UpdateDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::UpdateDataAttribute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateDataAttribute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateDataAttribute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataTaxonomyServiceTracingConnection::UpdateDataAttribute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::UpdateDataAttribute"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateDataAttribute(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateDataAttribute( + ExperimentalTag{}, operation)); } future> @@ -366,26 +350,24 @@ DataTaxonomyServiceTracingConnection::DeleteDataAttribute( StatusOr DataTaxonomyServiceTracingConnection::DeleteDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::DeleteDataAttribute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteDataAttribute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteDataAttribute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataTaxonomyServiceTracingConnection::DeleteDataAttribute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::DataTaxonomyServiceConnection::DeleteDataAttribute"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteDataAttribute(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteDataAttribute( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.h b/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.h index 506092beccf2e..0e8aa3965e82f 100644 --- a/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.h +++ b/google/cloud/dataplex/v1/internal/data_taxonomy_tracing_connection.h @@ -46,12 +46,12 @@ class DataTaxonomyServiceTracingConnection override; StatusOr CreateDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request) override; future> - CreateDataTaxonomy(google::cloud::ExperimentalTag, + CreateDataTaxonomy(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -60,12 +60,12 @@ class DataTaxonomyServiceTracingConnection override; StatusOr UpdateDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request) override; future> - UpdateDataTaxonomy(google::cloud::ExperimentalTag, + UpdateDataTaxonomy(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -74,12 +74,12 @@ class DataTaxonomyServiceTracingConnection override; StatusOr DeleteDataTaxonomy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request) override; future> - DeleteDataTaxonomy(google::cloud::ExperimentalTag, + DeleteDataTaxonomy(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListDataTaxonomies( @@ -95,13 +95,13 @@ class DataTaxonomyServiceTracingConnection request) override; StatusOr CreateDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& request) override; future> CreateDataAttributeBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -110,13 +110,13 @@ class DataTaxonomyServiceTracingConnection request) override; StatusOr UpdateDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& request) override; future> UpdateDataAttributeBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -125,13 +125,13 @@ class DataTaxonomyServiceTracingConnection request) override; StatusOr DeleteDataAttributeBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& request) override; future> DeleteDataAttributeBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -150,12 +150,12 @@ class DataTaxonomyServiceTracingConnection override; StatusOr CreateDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataAttributeRequest const& request) override; future> - CreateDataAttribute(google::cloud::ExperimentalTag, + CreateDataAttribute(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -164,12 +164,12 @@ class DataTaxonomyServiceTracingConnection override; StatusOr UpdateDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request) override; future> - UpdateDataAttribute(google::cloud::ExperimentalTag, + UpdateDataAttribute(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -178,12 +178,12 @@ class DataTaxonomyServiceTracingConnection override; StatusOr DeleteDataAttribute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request) override; future> - DeleteDataAttribute(google::cloud::ExperimentalTag, + DeleteDataAttribute(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListDataAttributes( diff --git a/google/cloud/dataplex/v1/internal/dataplex_connection_impl.cc b/google/cloud/dataplex/v1/internal/dataplex_connection_impl.cc index 43b6330f84fea..ff8892bb5ad03 100644 --- a/google/cloud/dataplex/v1/internal/dataplex_connection_impl.cc +++ b/google/cloud/dataplex/v1/internal/dataplex_connection_impl.cc @@ -107,7 +107,7 @@ DataplexServiceConnectionImpl::CreateLake( StatusOr DataplexServiceConnectionImpl::CreateLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateLakeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -122,8 +122,7 @@ DataplexServiceConnectionImpl::CreateLake( future> DataplexServiceConnectionImpl::CreateLake( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -198,7 +197,7 @@ DataplexServiceConnectionImpl::UpdateLake( StatusOr DataplexServiceConnectionImpl::UpdateLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateLakeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -213,8 +212,7 @@ DataplexServiceConnectionImpl::UpdateLake( future> DataplexServiceConnectionImpl::UpdateLake( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -289,7 +287,7 @@ DataplexServiceConnectionImpl::DeleteLake( StatusOr DataplexServiceConnectionImpl::DeleteLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteLakeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -304,8 +302,7 @@ DataplexServiceConnectionImpl::DeleteLake( future> DataplexServiceConnectionImpl::DeleteLake( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -462,7 +459,7 @@ DataplexServiceConnectionImpl::CreateZone( StatusOr DataplexServiceConnectionImpl::CreateZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateZoneRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -477,8 +474,7 @@ DataplexServiceConnectionImpl::CreateZone( future> DataplexServiceConnectionImpl::CreateZone( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -553,7 +549,7 @@ DataplexServiceConnectionImpl::UpdateZone( StatusOr DataplexServiceConnectionImpl::UpdateZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateZoneRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -568,8 +564,7 @@ DataplexServiceConnectionImpl::UpdateZone( future> DataplexServiceConnectionImpl::UpdateZone( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -644,7 +639,7 @@ DataplexServiceConnectionImpl::DeleteZone( StatusOr DataplexServiceConnectionImpl::DeleteZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteZoneRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -659,8 +654,7 @@ DataplexServiceConnectionImpl::DeleteZone( future> DataplexServiceConnectionImpl::DeleteZone( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -817,7 +811,7 @@ DataplexServiceConnectionImpl::CreateAsset( StatusOr DataplexServiceConnectionImpl::CreateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateAssetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -832,8 +826,7 @@ DataplexServiceConnectionImpl::CreateAsset( future> DataplexServiceConnectionImpl::CreateAsset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -908,7 +901,7 @@ DataplexServiceConnectionImpl::UpdateAsset( StatusOr DataplexServiceConnectionImpl::UpdateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateAssetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -923,8 +916,7 @@ DataplexServiceConnectionImpl::UpdateAsset( future> DataplexServiceConnectionImpl::UpdateAsset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -999,7 +991,7 @@ DataplexServiceConnectionImpl::DeleteAsset( StatusOr DataplexServiceConnectionImpl::DeleteAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteAssetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1014,8 +1006,7 @@ DataplexServiceConnectionImpl::DeleteAsset( future> DataplexServiceConnectionImpl::DeleteAsset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1173,7 +1164,7 @@ DataplexServiceConnectionImpl::CreateTask( StatusOr DataplexServiceConnectionImpl::CreateTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateTaskRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1188,8 +1179,7 @@ DataplexServiceConnectionImpl::CreateTask( future> DataplexServiceConnectionImpl::CreateTask( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1264,7 +1254,7 @@ DataplexServiceConnectionImpl::UpdateTask( StatusOr DataplexServiceConnectionImpl::UpdateTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateTaskRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1279,8 +1269,7 @@ DataplexServiceConnectionImpl::UpdateTask( future> DataplexServiceConnectionImpl::UpdateTask( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1355,7 +1344,7 @@ DataplexServiceConnectionImpl::DeleteTask( StatusOr DataplexServiceConnectionImpl::DeleteTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteTaskRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1370,8 +1359,7 @@ DataplexServiceConnectionImpl::DeleteTask( future> DataplexServiceConnectionImpl::DeleteTask( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1569,7 +1557,7 @@ DataplexServiceConnectionImpl::CreateEnvironment( StatusOr DataplexServiceConnectionImpl::CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1585,8 +1573,7 @@ DataplexServiceConnectionImpl::CreateEnvironment( future> DataplexServiceConnectionImpl::CreateEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1663,7 +1650,7 @@ DataplexServiceConnectionImpl::UpdateEnvironment( StatusOr DataplexServiceConnectionImpl::UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1679,8 +1666,7 @@ DataplexServiceConnectionImpl::UpdateEnvironment( future> DataplexServiceConnectionImpl::UpdateEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1757,7 +1743,7 @@ DataplexServiceConnectionImpl::DeleteEnvironment( StatusOr DataplexServiceConnectionImpl::DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1773,8 +1759,7 @@ DataplexServiceConnectionImpl::DeleteEnvironment( future> DataplexServiceConnectionImpl::DeleteEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/dataplex/v1/internal/dataplex_connection_impl.h b/google/cloud/dataplex/v1/internal/dataplex_connection_impl.h index 9bea46e1cd64c..5d1acc38e0853 100644 --- a/google/cloud/dataplex/v1/internal/dataplex_connection_impl.h +++ b/google/cloud/dataplex/v1/internal/dataplex_connection_impl.h @@ -56,33 +56,33 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::CreateLakeRequest const& request) override; StatusOr CreateLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateLakeRequest const& request) override; future> CreateLake( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateLake( google::cloud::dataplex::v1::UpdateLakeRequest const& request) override; StatusOr UpdateLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateLakeRequest const& request) override; future> UpdateLake( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteLake( google::cloud::dataplex::v1::DeleteLakeRequest const& request) override; StatusOr DeleteLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteLakeRequest const& request) override; future> DeleteLake( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListLakes( @@ -98,33 +98,33 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::CreateZoneRequest const& request) override; StatusOr CreateZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateZoneRequest const& request) override; future> CreateZone( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateZone( google::cloud::dataplex::v1::UpdateZoneRequest const& request) override; StatusOr UpdateZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateZoneRequest const& request) override; future> UpdateZone( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteZone( google::cloud::dataplex::v1::DeleteZoneRequest const& request) override; StatusOr DeleteZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteZoneRequest const& request) override; future> DeleteZone( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListZones( @@ -140,33 +140,33 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::CreateAssetRequest const& request) override; StatusOr CreateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateAssetRequest const& request) override; future> CreateAsset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateAsset( google::cloud::dataplex::v1::UpdateAssetRequest const& request) override; StatusOr UpdateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateAssetRequest const& request) override; future> UpdateAsset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteAsset( google::cloud::dataplex::v1::DeleteAssetRequest const& request) override; StatusOr DeleteAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteAssetRequest const& request) override; future> DeleteAsset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListAssets( @@ -182,33 +182,33 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::CreateTaskRequest const& request) override; StatusOr CreateTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateTaskRequest const& request) override; future> CreateTask( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateTask( google::cloud::dataplex::v1::UpdateTaskRequest const& request) override; StatusOr UpdateTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateTaskRequest const& request) override; future> UpdateTask( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteTask( google::cloud::dataplex::v1::DeleteTaskRequest const& request) override; StatusOr DeleteTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteTaskRequest const& request) override; future> DeleteTask( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTasks( @@ -234,12 +234,12 @@ class DataplexServiceConnectionImpl override; StatusOr CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::CreateEnvironmentRequest const& request) override; future> CreateEnvironment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateEnvironment( @@ -247,12 +247,12 @@ class DataplexServiceConnectionImpl override; StatusOr UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request) override; future> UpdateEnvironment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -260,12 +260,12 @@ class DataplexServiceConnectionImpl request) override; StatusOr DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request) override; future> - DeleteEnvironment(google::cloud::ExperimentalTag, + DeleteEnvironment(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListEnvironments( diff --git a/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.cc b/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.cc index 76515a11aaf58..231132271743c 100644 --- a/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.cc +++ b/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.cc @@ -44,26 +44,23 @@ DataplexServiceTracingConnection::CreateLake( StatusOr DataplexServiceTracingConnection::CreateLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateLakeRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateLake"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateLake(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateLake(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataplexServiceTracingConnection::CreateLake( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateLake"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateLake(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateLake(ExperimentalTag{}, operation)); } future> @@ -77,26 +74,23 @@ DataplexServiceTracingConnection::UpdateLake( StatusOr DataplexServiceTracingConnection::UpdateLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateLakeRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateLake"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateLake(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateLake(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataplexServiceTracingConnection::UpdateLake( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateLake"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateLake(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateLake(ExperimentalTag{}, operation)); } future> @@ -110,26 +104,23 @@ DataplexServiceTracingConnection::DeleteLake( StatusOr DataplexServiceTracingConnection::DeleteLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteLakeRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteLake"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteLake(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteLake(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataplexServiceTracingConnection::DeleteLake( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteLake"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteLake(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteLake(ExperimentalTag{}, operation)); } StreamRange @@ -174,26 +165,23 @@ DataplexServiceTracingConnection::CreateZone( StatusOr DataplexServiceTracingConnection::CreateZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateZoneRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateZone"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateZone(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateZone(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataplexServiceTracingConnection::CreateZone( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateZone"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateZone(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateZone(ExperimentalTag{}, operation)); } future> @@ -207,26 +195,23 @@ DataplexServiceTracingConnection::UpdateZone( StatusOr DataplexServiceTracingConnection::UpdateZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateZoneRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateZone"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateZone(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateZone(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataplexServiceTracingConnection::UpdateZone( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateZone"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateZone(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateZone(ExperimentalTag{}, operation)); } future> @@ -240,26 +225,23 @@ DataplexServiceTracingConnection::DeleteZone( StatusOr DataplexServiceTracingConnection::DeleteZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteZoneRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteZone"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteZone(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteZone(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataplexServiceTracingConnection::DeleteZone( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteZone"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteZone(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteZone(ExperimentalTag{}, operation)); } StreamRange @@ -304,26 +286,23 @@ DataplexServiceTracingConnection::CreateAsset( StatusOr DataplexServiceTracingConnection::CreateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateAssetRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateAsset"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateAsset(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateAsset(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataplexServiceTracingConnection::CreateAsset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateAsset"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateAsset(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateAsset(ExperimentalTag{}, operation)); } future> @@ -337,26 +316,23 @@ DataplexServiceTracingConnection::UpdateAsset( StatusOr DataplexServiceTracingConnection::UpdateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateAssetRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateAsset"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateAsset(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateAsset(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataplexServiceTracingConnection::UpdateAsset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateAsset"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateAsset(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateAsset(ExperimentalTag{}, operation)); } future> @@ -370,26 +346,23 @@ DataplexServiceTracingConnection::DeleteAsset( StatusOr DataplexServiceTracingConnection::DeleteAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteAssetRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteAsset"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAsset(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteAsset(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataplexServiceTracingConnection::DeleteAsset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteAsset"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteAsset(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteAsset(ExperimentalTag{}, operation)); } StreamRange @@ -434,26 +407,23 @@ DataplexServiceTracingConnection::CreateTask( StatusOr DataplexServiceTracingConnection::CreateTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateTaskRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateTask"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateTask(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateTask(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataplexServiceTracingConnection::CreateTask( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::CreateTask"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateTask(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateTask(ExperimentalTag{}, operation)); } future> @@ -467,26 +437,23 @@ DataplexServiceTracingConnection::UpdateTask( StatusOr DataplexServiceTracingConnection::UpdateTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateTaskRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateTask"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateTask(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateTask(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataplexServiceTracingConnection::UpdateTask( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::UpdateTask"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateTask(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateTask(ExperimentalTag{}, operation)); } future> @@ -500,26 +467,23 @@ DataplexServiceTracingConnection::DeleteTask( StatusOr DataplexServiceTracingConnection::DeleteTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteTaskRequest const& request) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteTask"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteTask(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteTask(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataplexServiceTracingConnection::DeleteTask( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dataplex_v1::DataplexServiceConnection::DeleteTask"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteTask(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteTask(ExperimentalTag{}, operation)); } StreamRange @@ -590,26 +554,24 @@ DataplexServiceTracingConnection::CreateEnvironment( StatusOr DataplexServiceTracingConnection::CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEnvironmentRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataplexServiceConnection::CreateEnvironment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateEnvironment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateEnvironment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataplexServiceTracingConnection::CreateEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::DataplexServiceConnection::CreateEnvironment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateEnvironment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateEnvironment(ExperimentalTag{}, operation)); } future> @@ -623,26 +585,24 @@ DataplexServiceTracingConnection::UpdateEnvironment( StatusOr DataplexServiceTracingConnection::UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataplexServiceConnection::UpdateEnvironment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateEnvironment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateEnvironment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataplexServiceTracingConnection::UpdateEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::DataplexServiceConnection::UpdateEnvironment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateEnvironment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateEnvironment(ExperimentalTag{}, operation)); } future> @@ -656,26 +616,24 @@ DataplexServiceTracingConnection::DeleteEnvironment( StatusOr DataplexServiceTracingConnection::DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request) { auto span = internal::MakeSpan( "dataplex_v1::DataplexServiceConnection::DeleteEnvironment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteEnvironment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteEnvironment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataplexServiceTracingConnection::DeleteEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataplex_v1::DataplexServiceConnection::DeleteEnvironment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteEnvironment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteEnvironment(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.h b/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.h index 426f864ef452d..e0c93e25fa0e4 100644 --- a/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.h +++ b/google/cloud/dataplex/v1/internal/dataplex_tracing_connection.h @@ -44,33 +44,33 @@ class DataplexServiceTracingConnection google::cloud::dataplex::v1::CreateLakeRequest const& request) override; StatusOr CreateLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateLakeRequest const& request) override; future> CreateLake( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateLake( google::cloud::dataplex::v1::UpdateLakeRequest const& request) override; StatusOr UpdateLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateLakeRequest const& request) override; future> UpdateLake( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteLake( google::cloud::dataplex::v1::DeleteLakeRequest const& request) override; StatusOr DeleteLake( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteLakeRequest const& request) override; future> DeleteLake( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListLakes( @@ -86,33 +86,33 @@ class DataplexServiceTracingConnection google::cloud::dataplex::v1::CreateZoneRequest const& request) override; StatusOr CreateZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateZoneRequest const& request) override; future> CreateZone( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateZone( google::cloud::dataplex::v1::UpdateZoneRequest const& request) override; StatusOr UpdateZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateZoneRequest const& request) override; future> UpdateZone( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteZone( google::cloud::dataplex::v1::DeleteZoneRequest const& request) override; StatusOr DeleteZone( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteZoneRequest const& request) override; future> DeleteZone( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListZones( @@ -128,33 +128,33 @@ class DataplexServiceTracingConnection google::cloud::dataplex::v1::CreateAssetRequest const& request) override; StatusOr CreateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateAssetRequest const& request) override; future> CreateAsset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateAsset( google::cloud::dataplex::v1::UpdateAssetRequest const& request) override; StatusOr UpdateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateAssetRequest const& request) override; future> UpdateAsset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteAsset( google::cloud::dataplex::v1::DeleteAssetRequest const& request) override; StatusOr DeleteAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteAssetRequest const& request) override; future> DeleteAsset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListAssets( @@ -170,33 +170,33 @@ class DataplexServiceTracingConnection google::cloud::dataplex::v1::CreateTaskRequest const& request) override; StatusOr CreateTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateTaskRequest const& request) override; future> CreateTask( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateTask( google::cloud::dataplex::v1::UpdateTaskRequest const& request) override; StatusOr UpdateTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateTaskRequest const& request) override; future> UpdateTask( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteTask( google::cloud::dataplex::v1::DeleteTaskRequest const& request) override; StatusOr DeleteTask( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteTaskRequest const& request) override; future> DeleteTask( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTasks( @@ -222,12 +222,12 @@ class DataplexServiceTracingConnection override; StatusOr CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEnvironmentRequest const& request) override; future> CreateEnvironment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateEnvironment( @@ -235,12 +235,12 @@ class DataplexServiceTracingConnection override; StatusOr UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request) override; future> UpdateEnvironment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -248,12 +248,12 @@ class DataplexServiceTracingConnection request) override; StatusOr DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request) override; future> - DeleteEnvironment(google::cloud::ExperimentalTag, + DeleteEnvironment(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListEnvironments( diff --git a/google/cloud/dataplex/v1/mocks/mock_catalog_connection.h b/google/cloud/dataplex/v1/mocks/mock_catalog_connection.h index 9d759590d4889..716f3a63f440e 100644 --- a/google/cloud/dataplex/v1/mocks/mock_catalog_connection.h +++ b/google/cloud/dataplex/v1/mocks/mock_catalog_connection.h @@ -54,13 +54,13 @@ class MockCatalogServiceConnection MOCK_METHOD( StatusOr, CreateEntryType, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEntryTypeRequest const& request), (override)); MOCK_METHOD(future>, CreateEntryType, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -71,13 +71,13 @@ class MockCatalogServiceConnection MOCK_METHOD( StatusOr, UpdateEntryType, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request), (override)); MOCK_METHOD(future>, UpdateEntryType, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -89,13 +89,13 @@ class MockCatalogServiceConnection MOCK_METHOD( StatusOr, DeleteEntryType, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request), (override)); MOCK_METHOD(future>, DeleteEntryType, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -116,13 +116,13 @@ class MockCatalogServiceConnection MOCK_METHOD( StatusOr, CreateAspectType, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateAspectTypeRequest const& request), (override)); MOCK_METHOD(future>, CreateAspectType, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -134,13 +134,13 @@ class MockCatalogServiceConnection MOCK_METHOD( StatusOr, UpdateAspectType, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request), (override)); MOCK_METHOD(future>, UpdateAspectType, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -152,13 +152,13 @@ class MockCatalogServiceConnection MOCK_METHOD( StatusOr, DeleteAspectType, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request), (override)); MOCK_METHOD(future>, DeleteAspectType, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -180,13 +180,13 @@ class MockCatalogServiceConnection MOCK_METHOD( StatusOr, CreateEntryGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEntryGroupRequest const& request), (override)); MOCK_METHOD(future>, CreateEntryGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -198,13 +198,13 @@ class MockCatalogServiceConnection MOCK_METHOD( StatusOr, UpdateEntryGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request), (override)); MOCK_METHOD(future>, UpdateEntryGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -216,13 +216,13 @@ class MockCatalogServiceConnection MOCK_METHOD( StatusOr, DeleteEntryGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request), (override)); MOCK_METHOD(future>, DeleteEntryGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/dataplex/v1/mocks/mock_data_scan_connection.h b/google/cloud/dataplex/v1/mocks/mock_data_scan_connection.h index 39e547fabc9dd..47f0f32873742 100644 --- a/google/cloud/dataplex/v1/mocks/mock_data_scan_connection.h +++ b/google/cloud/dataplex/v1/mocks/mock_data_scan_connection.h @@ -54,13 +54,13 @@ class MockDataScanServiceConnection MOCK_METHOD( StatusOr, CreateDataScan, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataScanRequest const& request), (override)); MOCK_METHOD(future>, CreateDataScan, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -71,13 +71,13 @@ class MockDataScanServiceConnection MOCK_METHOD( StatusOr, UpdateDataScan, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataScanRequest const& request), (override)); MOCK_METHOD(future>, UpdateDataScan, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -89,13 +89,13 @@ class MockDataScanServiceConnection MOCK_METHOD( StatusOr, DeleteDataScan, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataScanRequest const& request), (override)); MOCK_METHOD(future>, DeleteDataScan, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/dataplex/v1/mocks/mock_data_taxonomy_connection.h b/google/cloud/dataplex/v1/mocks/mock_data_taxonomy_connection.h index c320dfda32fda..082fc1bab0016 100644 --- a/google/cloud/dataplex/v1/mocks/mock_data_taxonomy_connection.h +++ b/google/cloud/dataplex/v1/mocks/mock_data_taxonomy_connection.h @@ -55,13 +55,13 @@ class MockDataTaxonomyServiceConnection MOCK_METHOD( StatusOr, CreateDataTaxonomy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request), (override)); MOCK_METHOD(future>, CreateDataTaxonomy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -73,13 +73,13 @@ class MockDataTaxonomyServiceConnection MOCK_METHOD( StatusOr, UpdateDataTaxonomy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request), (override)); MOCK_METHOD(future>, UpdateDataTaxonomy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -91,13 +91,13 @@ class MockDataTaxonomyServiceConnection MOCK_METHOD( StatusOr, DeleteDataTaxonomy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request), (override)); MOCK_METHOD(future>, DeleteDataTaxonomy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -120,7 +120,7 @@ class MockDataTaxonomyServiceConnection MOCK_METHOD( StatusOr, CreateDataAttributeBinding, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& request), (override)); @@ -128,8 +128,7 @@ class MockDataTaxonomyServiceConnection MOCK_METHOD( future>, CreateDataAttributeBinding, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -141,7 +140,7 @@ class MockDataTaxonomyServiceConnection MOCK_METHOD( StatusOr, UpdateDataAttributeBinding, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& request), (override)); @@ -149,8 +148,7 @@ class MockDataTaxonomyServiceConnection MOCK_METHOD( future>, UpdateDataAttributeBinding, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -162,14 +160,14 @@ class MockDataTaxonomyServiceConnection MOCK_METHOD( StatusOr, DeleteDataAttributeBinding, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& request), (override)); MOCK_METHOD(future>, DeleteDataAttributeBinding, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -194,13 +192,13 @@ class MockDataTaxonomyServiceConnection MOCK_METHOD( StatusOr, CreateDataAttribute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataAttributeRequest const& request), (override)); MOCK_METHOD(future>, CreateDataAttribute, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -212,13 +210,13 @@ class MockDataTaxonomyServiceConnection MOCK_METHOD( StatusOr, UpdateDataAttribute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request), (override)); MOCK_METHOD(future>, UpdateDataAttribute, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -230,13 +228,13 @@ class MockDataTaxonomyServiceConnection MOCK_METHOD( StatusOr, DeleteDataAttribute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request), (override)); MOCK_METHOD(future>, DeleteDataAttribute, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/dataplex/v1/mocks/mock_dataplex_connection.h b/google/cloud/dataplex/v1/mocks/mock_dataplex_connection.h index 30d9c123205cf..b2dfaccafadba 100644 --- a/google/cloud/dataplex/v1/mocks/mock_dataplex_connection.h +++ b/google/cloud/dataplex/v1/mocks/mock_dataplex_connection.h @@ -52,12 +52,12 @@ class MockDataplexServiceConnection (override)); MOCK_METHOD(StatusOr, CreateLake, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateLakeRequest const& request), (override)); MOCK_METHOD(future>, CreateLake, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -66,12 +66,12 @@ class MockDataplexServiceConnection (override)); MOCK_METHOD(StatusOr, UpdateLake, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateLakeRequest const& request), (override)); MOCK_METHOD(future>, UpdateLake, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -81,13 +81,13 @@ class MockDataplexServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteLake, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteLakeRequest const& request), (override)); MOCK_METHOD(future>, DeleteLake, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -109,12 +109,12 @@ class MockDataplexServiceConnection (override)); MOCK_METHOD(StatusOr, CreateZone, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateZoneRequest const& request), (override)); MOCK_METHOD(future>, CreateZone, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -123,12 +123,12 @@ class MockDataplexServiceConnection (override)); MOCK_METHOD(StatusOr, UpdateZone, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateZoneRequest const& request), (override)); MOCK_METHOD(future>, UpdateZone, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -138,13 +138,13 @@ class MockDataplexServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteZone, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteZoneRequest const& request), (override)); MOCK_METHOD(future>, DeleteZone, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -166,12 +166,12 @@ class MockDataplexServiceConnection (override)); MOCK_METHOD(StatusOr, CreateAsset, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateAssetRequest const& request), (override)); MOCK_METHOD(future>, CreateAsset, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -180,12 +180,12 @@ class MockDataplexServiceConnection (override)); MOCK_METHOD(StatusOr, UpdateAsset, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateAssetRequest const& request), (override)); MOCK_METHOD(future>, UpdateAsset, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -195,13 +195,13 @@ class MockDataplexServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteAsset, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteAssetRequest const& request), (override)); MOCK_METHOD(future>, DeleteAsset, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -223,12 +223,12 @@ class MockDataplexServiceConnection (override)); MOCK_METHOD(StatusOr, CreateTask, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateTaskRequest const& request), (override)); MOCK_METHOD(future>, CreateTask, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -237,12 +237,12 @@ class MockDataplexServiceConnection (override)); MOCK_METHOD(StatusOr, UpdateTask, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateTaskRequest const& request), (override)); MOCK_METHOD(future>, UpdateTask, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -252,13 +252,13 @@ class MockDataplexServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteTask, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteTaskRequest const& request), (override)); MOCK_METHOD(future>, DeleteTask, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -294,13 +294,13 @@ class MockDataplexServiceConnection MOCK_METHOD( StatusOr, CreateEnvironment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEnvironmentRequest const& request), (override)); MOCK_METHOD(future>, CreateEnvironment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -312,13 +312,13 @@ class MockDataplexServiceConnection MOCK_METHOD( StatusOr, UpdateEnvironment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request), (override)); MOCK_METHOD(future>, UpdateEnvironment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -330,13 +330,13 @@ class MockDataplexServiceConnection MOCK_METHOD( StatusOr, DeleteEnvironment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request), (override)); MOCK_METHOD(future>, DeleteEnvironment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.cc b/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.cc index c303ae1156a71..db14ad8c7a574 100644 --- a/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.cc @@ -107,7 +107,7 @@ BatchControllerConnectionImpl::CreateBatch( StatusOr BatchControllerConnectionImpl::CreateBatch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::CreateBatchRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -122,8 +122,7 @@ BatchControllerConnectionImpl::CreateBatch( future> BatchControllerConnectionImpl::CreateBatch( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateBatch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::CreateBatchRequest const& request) override; future> CreateBatch( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetBatch( diff --git a/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.cc b/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.cc index 0ccbdd2db77e6..56a3a6e7c41b4 100644 --- a/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.cc @@ -44,26 +44,23 @@ BatchControllerTracingConnection::CreateBatch( StatusOr BatchControllerTracingConnection::CreateBatch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateBatchRequest const& request) { auto span = internal::MakeSpan("dataproc_v1::BatchControllerConnection::CreateBatch"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateBatch(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateBatch(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BatchControllerTracingConnection::CreateBatch( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dataproc_v1::BatchControllerConnection::CreateBatch"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateBatch(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateBatch(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.h b/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.h index 8da0e8dec83a2..8a3f224488f8f 100644 --- a/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.h +++ b/google/cloud/dataproc/v1/internal/batch_controller_tracing_connection.h @@ -44,11 +44,11 @@ class BatchControllerTracingConnection google::cloud::dataproc::v1::CreateBatchRequest const& request) override; StatusOr CreateBatch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateBatchRequest const& request) override; future> CreateBatch( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetBatch( diff --git a/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.cc b/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.cc index 47b4cf6e72aef..a9aa1c1b44ffd 100644 --- a/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.cc @@ -108,7 +108,7 @@ ClusterControllerConnectionImpl::CreateCluster( StatusOr ClusterControllerConnectionImpl::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::CreateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -123,8 +123,7 @@ ClusterControllerConnectionImpl::CreateCluster( future> ClusterControllerConnectionImpl::CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ClusterControllerConnectionImpl::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::UpdateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -215,8 +214,7 @@ ClusterControllerConnectionImpl::UpdateCluster( future> ClusterControllerConnectionImpl::UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ClusterControllerConnectionImpl::StopCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::StopClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -307,8 +305,7 @@ ClusterControllerConnectionImpl::StopCluster( future> ClusterControllerConnectionImpl::StopCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ClusterControllerConnectionImpl::StartCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::StartClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -399,8 +396,7 @@ ClusterControllerConnectionImpl::StartCluster( future> ClusterControllerConnectionImpl::StartCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ClusterControllerConnectionImpl::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::DeleteClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -491,8 +487,7 @@ ClusterControllerConnectionImpl::DeleteCluster( future> ClusterControllerConnectionImpl::DeleteCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ClusterControllerConnectionImpl::DiagnoseCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::DiagnoseClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -633,8 +628,7 @@ ClusterControllerConnectionImpl::DiagnoseCluster( future> ClusterControllerConnectionImpl::DiagnoseCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::CreateClusterRequest const& request) override; future> CreateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateCluster( @@ -70,34 +70,34 @@ class ClusterControllerConnectionImpl override; StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::UpdateClusterRequest const& request) override; future> UpdateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StopCluster( google::cloud::dataproc::v1::StopClusterRequest const& request) override; StatusOr StopCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::StopClusterRequest const& request) override; future> StopCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StartCluster( google::cloud::dataproc::v1::StartClusterRequest const& request) override; StatusOr StartCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::StartClusterRequest const& request) override; future> StartCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -105,12 +105,12 @@ class ClusterControllerConnectionImpl request) override; StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::DeleteClusterRequest const& request) override; future> - DeleteCluster(google::cloud::ExperimentalTag, + DeleteCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetCluster( @@ -124,12 +124,12 @@ class ClusterControllerConnectionImpl request) override; StatusOr DiagnoseCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::DiagnoseClusterRequest const& request) override; future> - DiagnoseCluster(google::cloud::ExperimentalTag, + DiagnoseCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.cc b/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.cc index 0c490b25f4762..1a6202f885f90 100644 --- a/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.cc @@ -44,26 +44,23 @@ ClusterControllerTracingConnection::CreateCluster( StatusOr ClusterControllerTracingConnection::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateClusterRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::CreateCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ClusterControllerTracingConnection::CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::CreateCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateCluster(ExperimentalTag{}, operation)); } future> @@ -77,26 +74,23 @@ ClusterControllerTracingConnection::UpdateCluster( StatusOr ClusterControllerTracingConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::UpdateClusterRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::UpdateCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ClusterControllerTracingConnection::UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::UpdateCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateCluster(ExperimentalTag{}, operation)); } future> @@ -110,26 +104,23 @@ ClusterControllerTracingConnection::StopCluster( StatusOr ClusterControllerTracingConnection::StopCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::StopClusterRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::StopCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StopCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StopCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ClusterControllerTracingConnection::StopCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::StopCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->StopCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->StopCluster(ExperimentalTag{}, operation)); } future> @@ -143,26 +134,23 @@ ClusterControllerTracingConnection::StartCluster( StatusOr ClusterControllerTracingConnection::StartCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::StartClusterRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::StartCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StartCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StartCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ClusterControllerTracingConnection::StartCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::StartCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->StartCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->StartCluster(ExperimentalTag{}, operation)); } future> @@ -176,26 +164,23 @@ ClusterControllerTracingConnection::DeleteCluster( StatusOr ClusterControllerTracingConnection::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DeleteClusterRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::DeleteCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ClusterControllerTracingConnection::DeleteCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::DeleteCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteCluster(ExperimentalTag{}, operation)); } StatusOr @@ -229,26 +214,23 @@ ClusterControllerTracingConnection::DiagnoseCluster( StatusOr ClusterControllerTracingConnection::DiagnoseCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DiagnoseClusterRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::DiagnoseCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DiagnoseCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DiagnoseCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ClusterControllerTracingConnection::DiagnoseCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataproc_v1::ClusterControllerConnection::DiagnoseCluster"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DiagnoseCluster(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DiagnoseCluster(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.h b/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.h index 52253aa9cfc24..6573b61facf6f 100644 --- a/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.h +++ b/google/cloud/dataproc/v1/internal/cluster_controller_tracing_connection.h @@ -45,12 +45,12 @@ class ClusterControllerTracingConnection override; StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateClusterRequest const& request) override; future> CreateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateCluster( @@ -58,34 +58,34 @@ class ClusterControllerTracingConnection override; StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::UpdateClusterRequest const& request) override; future> UpdateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StopCluster( google::cloud::dataproc::v1::StopClusterRequest const& request) override; StatusOr StopCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::StopClusterRequest const& request) override; future> StopCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StartCluster( google::cloud::dataproc::v1::StartClusterRequest const& request) override; StatusOr StartCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::StartClusterRequest const& request) override; future> StartCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -93,12 +93,12 @@ class ClusterControllerTracingConnection request) override; StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DeleteClusterRequest const& request) override; future> - DeleteCluster(google::cloud::ExperimentalTag, + DeleteCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetCluster( @@ -112,12 +112,12 @@ class ClusterControllerTracingConnection request) override; StatusOr DiagnoseCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DiagnoseClusterRequest const& request) override; future> - DiagnoseCluster(google::cloud::ExperimentalTag, + DiagnoseCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dataproc/v1/internal/job_controller_connection_impl.cc b/google/cloud/dataproc/v1/internal/job_controller_connection_impl.cc index 2a4bbd1b560e6..915ad6224304d 100644 --- a/google/cloud/dataproc/v1/internal/job_controller_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/job_controller_connection_impl.cc @@ -119,7 +119,7 @@ JobControllerConnectionImpl::SubmitJobAsOperation( StatusOr JobControllerConnectionImpl::SubmitJobAsOperation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::SubmitJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -134,8 +134,7 @@ JobControllerConnectionImpl::SubmitJobAsOperation( future> JobControllerConnectionImpl::SubmitJobAsOperation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/dataproc/v1/internal/job_controller_connection_impl.h b/google/cloud/dataproc/v1/internal/job_controller_connection_impl.h index ff370184ae2ae..2266281ece0f7 100644 --- a/google/cloud/dataproc/v1/internal/job_controller_connection_impl.h +++ b/google/cloud/dataproc/v1/internal/job_controller_connection_impl.h @@ -59,11 +59,11 @@ class JobControllerConnectionImpl google::cloud::dataproc::v1::SubmitJobRequest const& request) override; StatusOr SubmitJobAsOperation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::SubmitJobRequest const& request) override; future> SubmitJobAsOperation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetJob( diff --git a/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.cc b/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.cc index f09ebeee340d1..ba00438570504 100644 --- a/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.cc @@ -54,26 +54,24 @@ JobControllerTracingConnection::SubmitJobAsOperation( StatusOr JobControllerTracingConnection::SubmitJobAsOperation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::SubmitJobRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::JobControllerConnection::SubmitJobAsOperation"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SubmitJobAsOperation( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->SubmitJobAsOperation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> JobControllerTracingConnection::SubmitJobAsOperation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataproc_v1::JobControllerConnection::SubmitJobAsOperation"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SubmitJobAsOperation( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SubmitJobAsOperation( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.h b/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.h index a329589256918..5e62a558a87e7 100644 --- a/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.h +++ b/google/cloud/dataproc/v1/internal/job_controller_tracing_connection.h @@ -47,11 +47,11 @@ class JobControllerTracingConnection google::cloud::dataproc::v1::SubmitJobRequest const& request) override; StatusOr SubmitJobAsOperation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::SubmitJobRequest const& request) override; future> SubmitJobAsOperation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetJob( diff --git a/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.cc b/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.cc index 6d335740bfcc3..13d81b1a070e0 100644 --- a/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.cc @@ -107,7 +107,7 @@ NodeGroupControllerConnectionImpl::CreateNodeGroup( StatusOr NodeGroupControllerConnectionImpl::CreateNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::CreateNodeGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -123,8 +123,7 @@ NodeGroupControllerConnectionImpl::CreateNodeGroup( future> NodeGroupControllerConnectionImpl::CreateNodeGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NodeGroupControllerConnectionImpl::ResizeNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -216,8 +215,7 @@ NodeGroupControllerConnectionImpl::ResizeNodeGroup( future> NodeGroupControllerConnectionImpl::ResizeNodeGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::CreateNodeGroupRequest const& request) override; future> CreateNodeGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ResizeNodeGroup( @@ -69,12 +69,12 @@ class NodeGroupControllerConnectionImpl override; StatusOr ResizeNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request) override; future> ResizeNodeGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetNodeGroup( diff --git a/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.cc b/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.cc index 1ea1764bc1e6e..5ed99d6ed166e 100644 --- a/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.cc @@ -43,26 +43,23 @@ NodeGroupControllerTracingConnection::CreateNodeGroup( StatusOr NodeGroupControllerTracingConnection::CreateNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateNodeGroupRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::NodeGroupControllerConnection::CreateNodeGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateNodeGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateNodeGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NodeGroupControllerTracingConnection::CreateNodeGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataproc_v1::NodeGroupControllerConnection::CreateNodeGroup"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateNodeGroup(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateNodeGroup(ExperimentalTag{}, operation)); } future> @@ -76,26 +73,23 @@ NodeGroupControllerTracingConnection::ResizeNodeGroup( StatusOr NodeGroupControllerTracingConnection::ResizeNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::NodeGroupControllerConnection::ResizeNodeGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ResizeNodeGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ResizeNodeGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NodeGroupControllerTracingConnection::ResizeNodeGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataproc_v1::NodeGroupControllerConnection::ResizeNodeGroup"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ResizeNodeGroup(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ResizeNodeGroup(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.h b/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.h index 84fed2303a87a..1b120bda1b6c1 100644 --- a/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.h +++ b/google/cloud/dataproc/v1/internal/node_group_controller_tracing_connection.h @@ -45,12 +45,12 @@ class NodeGroupControllerTracingConnection override; StatusOr CreateNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateNodeGroupRequest const& request) override; future> CreateNodeGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ResizeNodeGroup( @@ -58,12 +58,12 @@ class NodeGroupControllerTracingConnection override; StatusOr ResizeNodeGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request) override; future> ResizeNodeGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetNodeGroup( diff --git a/google/cloud/dataproc/v1/internal/session_controller_connection_impl.cc b/google/cloud/dataproc/v1/internal/session_controller_connection_impl.cc index 94f1a35089b76..e671f6bb94b49 100644 --- a/google/cloud/dataproc/v1/internal/session_controller_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/session_controller_connection_impl.cc @@ -108,7 +108,7 @@ SessionControllerConnectionImpl::CreateSession( StatusOr SessionControllerConnectionImpl::CreateSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::CreateSessionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -123,8 +123,7 @@ SessionControllerConnectionImpl::CreateSession( future> SessionControllerConnectionImpl::CreateSession( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SessionControllerConnectionImpl::TerminateSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::TerminateSessionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -264,8 +263,7 @@ SessionControllerConnectionImpl::TerminateSession( future> SessionControllerConnectionImpl::TerminateSession( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SessionControllerConnectionImpl::DeleteSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::DeleteSessionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -356,8 +354,7 @@ SessionControllerConnectionImpl::DeleteSession( future> SessionControllerConnectionImpl::DeleteSession( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::CreateSessionRequest const& request) override; future> CreateSession( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetSession( @@ -76,12 +76,12 @@ class SessionControllerConnectionImpl override; StatusOr TerminateSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::TerminateSessionRequest const& request) override; future> TerminateSession( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteSession( @@ -89,12 +89,12 @@ class SessionControllerConnectionImpl override; StatusOr DeleteSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::DeleteSessionRequest const& request) override; future> DeleteSession( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.cc b/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.cc index 9ba9c1a119ad8..ed5445fd7fd7a 100644 --- a/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.cc @@ -44,26 +44,23 @@ SessionControllerTracingConnection::CreateSession( StatusOr SessionControllerTracingConnection::CreateSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateSessionRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::SessionControllerConnection::CreateSession"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateSession(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateSession(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SessionControllerTracingConnection::CreateSession( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataproc_v1::SessionControllerConnection::CreateSession"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateSession(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateSession(ExperimentalTag{}, operation)); } StatusOr @@ -97,26 +94,24 @@ SessionControllerTracingConnection::TerminateSession( StatusOr SessionControllerTracingConnection::TerminateSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::TerminateSessionRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::SessionControllerConnection::TerminateSession"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->TerminateSession(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->TerminateSession(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SessionControllerTracingConnection::TerminateSession( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataproc_v1::SessionControllerConnection::TerminateSession"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->TerminateSession(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->TerminateSession(ExperimentalTag{}, operation)); } future> @@ -130,26 +125,23 @@ SessionControllerTracingConnection::DeleteSession( StatusOr SessionControllerTracingConnection::DeleteSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DeleteSessionRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::SessionControllerConnection::DeleteSession"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSession(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteSession(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SessionControllerTracingConnection::DeleteSession( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataproc_v1::SessionControllerConnection::DeleteSession"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteSession(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteSession(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.h b/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.h index 459e0648869f3..e279793463f5c 100644 --- a/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.h +++ b/google/cloud/dataproc/v1/internal/session_controller_tracing_connection.h @@ -45,12 +45,12 @@ class SessionControllerTracingConnection override; StatusOr CreateSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateSessionRequest const& request) override; future> CreateSession( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetSession( @@ -64,12 +64,12 @@ class SessionControllerTracingConnection override; StatusOr TerminateSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::TerminateSessionRequest const& request) override; future> TerminateSession( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteSession( @@ -77,12 +77,12 @@ class SessionControllerTracingConnection override; StatusOr DeleteSession( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DeleteSessionRequest const& request) override; future> DeleteSession( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.cc b/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.cc index ec976e988303b..4cea684040913 100644 --- a/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.cc @@ -141,7 +141,7 @@ WorkflowTemplateServiceConnectionImpl::InstantiateWorkflowTemplate( StatusOr WorkflowTemplateServiceConnectionImpl::InstantiateWorkflowTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -159,8 +159,7 @@ WorkflowTemplateServiceConnectionImpl::InstantiateWorkflowTemplate( future> WorkflowTemplateServiceConnectionImpl::InstantiateWorkflowTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -239,7 +238,7 @@ WorkflowTemplateServiceConnectionImpl::InstantiateInlineWorkflowTemplate( StatusOr WorkflowTemplateServiceConnectionImpl::InstantiateInlineWorkflowTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::InstantiateInlineWorkflowTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -257,8 +256,7 @@ WorkflowTemplateServiceConnectionImpl::InstantiateInlineWorkflowTemplate( future> WorkflowTemplateServiceConnectionImpl::InstantiateInlineWorkflowTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.h b/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.h index 312b36e7af28e..67befaa15f8b1 100644 --- a/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.h +++ b/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.h @@ -67,13 +67,13 @@ class WorkflowTemplateServiceConnectionImpl request) override; StatusOr InstantiateWorkflowTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& request) override; future> InstantiateWorkflowTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -82,13 +82,13 @@ class WorkflowTemplateServiceConnectionImpl InstantiateInlineWorkflowTemplateRequest const& request) override; StatusOr InstantiateInlineWorkflowTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dataproc::v1:: InstantiateInlineWorkflowTemplateRequest const& request) override; future> InstantiateInlineWorkflowTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.cc b/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.cc index 6a978e1d4fe8a..55ba3d799aabc 100644 --- a/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.cc +++ b/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.cc @@ -66,29 +66,27 @@ WorkflowTemplateServiceTracingConnection::InstantiateWorkflowTemplate( StatusOr WorkflowTemplateServiceTracingConnection::InstantiateWorkflowTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::WorkflowTemplateServiceConnection::" "InstantiateWorkflowTemplate"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InstantiateWorkflowTemplate( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InstantiateWorkflowTemplate(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> WorkflowTemplateServiceTracingConnection::InstantiateWorkflowTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataproc_v1::WorkflowTemplateServiceConnection::" "InstantiateWorkflowTemplate"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InstantiateWorkflowTemplate( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->InstantiateWorkflowTemplate( + ExperimentalTag{}, operation)); } future> @@ -105,29 +103,28 @@ WorkflowTemplateServiceTracingConnection::InstantiateInlineWorkflowTemplate( StatusOr WorkflowTemplateServiceTracingConnection::InstantiateInlineWorkflowTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::InstantiateInlineWorkflowTemplateRequest const& request) { auto span = internal::MakeSpan( "dataproc_v1::WorkflowTemplateServiceConnection::" "InstantiateInlineWorkflowTemplate"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->InstantiateInlineWorkflowTemplate( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->InstantiateInlineWorkflowTemplate(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> WorkflowTemplateServiceTracingConnection::InstantiateInlineWorkflowTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dataproc_v1::WorkflowTemplateServiceConnection::" "InstantiateInlineWorkflowTemplate"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->InstantiateInlineWorkflowTemplate( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->InstantiateInlineWorkflowTemplate(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.h b/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.h index 63ab125d1a5b1..cfac2f0a5fb4a 100644 --- a/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.h +++ b/google/cloud/dataproc/v1/internal/workflow_template_tracing_connection.h @@ -55,13 +55,13 @@ class WorkflowTemplateServiceTracingConnection request) override; StatusOr InstantiateWorkflowTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& request) override; future> InstantiateWorkflowTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -70,13 +70,13 @@ class WorkflowTemplateServiceTracingConnection InstantiateInlineWorkflowTemplateRequest const& request) override; StatusOr InstantiateInlineWorkflowTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1:: InstantiateInlineWorkflowTemplateRequest const& request) override; future> InstantiateInlineWorkflowTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/dataproc/v1/mocks/mock_batch_controller_connection.h b/google/cloud/dataproc/v1/mocks/mock_batch_controller_connection.h index 8044973abc55e..4a0c8787ce09b 100644 --- a/google/cloud/dataproc/v1/mocks/mock_batch_controller_connection.h +++ b/google/cloud/dataproc/v1/mocks/mock_batch_controller_connection.h @@ -52,12 +52,12 @@ class MockBatchControllerConnection (override)); MOCK_METHOD(StatusOr, CreateBatch, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateBatchRequest const& request), (override)); MOCK_METHOD(future>, CreateBatch, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/dataproc/v1/mocks/mock_cluster_controller_connection.h b/google/cloud/dataproc/v1/mocks/mock_cluster_controller_connection.h index 049fbc21988fb..478f4ef42cbcb 100644 --- a/google/cloud/dataproc/v1/mocks/mock_cluster_controller_connection.h +++ b/google/cloud/dataproc/v1/mocks/mock_cluster_controller_connection.h @@ -54,13 +54,13 @@ class MockClusterControllerConnection MOCK_METHOD( StatusOr, CreateCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateClusterRequest const& request), (override)); MOCK_METHOD(future>, CreateCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -71,13 +71,13 @@ class MockClusterControllerConnection MOCK_METHOD( StatusOr, UpdateCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::UpdateClusterRequest const& request), (override)); MOCK_METHOD(future>, UpdateCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -87,13 +87,13 @@ class MockClusterControllerConnection (override)); MOCK_METHOD(StatusOr, StopCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::StopClusterRequest const& request), (override)); MOCK_METHOD(future>, StopCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -103,13 +103,13 @@ class MockClusterControllerConnection (override)); MOCK_METHOD(StatusOr, StartCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::StartClusterRequest const& request), (override)); MOCK_METHOD(future>, StartCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -121,15 +121,14 @@ class MockClusterControllerConnection MOCK_METHOD( StatusOr, DeleteCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DeleteClusterRequest const& request), (override)); MOCK_METHOD( future>, DeleteCluster, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, GetCluster, @@ -148,15 +147,14 @@ class MockClusterControllerConnection MOCK_METHOD( StatusOr, DiagnoseCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DiagnoseClusterRequest const& request), (override)); MOCK_METHOD( future>, DiagnoseCluster, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/dataproc/v1/mocks/mock_job_controller_connection.h b/google/cloud/dataproc/v1/mocks/mock_job_controller_connection.h index 1eac3e0a2a77a..e608faeb9dbc3 100644 --- a/google/cloud/dataproc/v1/mocks/mock_job_controller_connection.h +++ b/google/cloud/dataproc/v1/mocks/mock_job_controller_connection.h @@ -57,13 +57,13 @@ class MockJobControllerConnection (override)); MOCK_METHOD(StatusOr, SubmitJobAsOperation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::SubmitJobRequest const& request), (override)); MOCK_METHOD(future>, SubmitJobAsOperation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/dataproc/v1/mocks/mock_node_group_controller_connection.h b/google/cloud/dataproc/v1/mocks/mock_node_group_controller_connection.h index 2b7d5941ca34f..37dd46e8dc153 100644 --- a/google/cloud/dataproc/v1/mocks/mock_node_group_controller_connection.h +++ b/google/cloud/dataproc/v1/mocks/mock_node_group_controller_connection.h @@ -54,13 +54,13 @@ class MockNodeGroupControllerConnection MOCK_METHOD( StatusOr, CreateNodeGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateNodeGroupRequest const& request), (override)); MOCK_METHOD(future>, CreateNodeGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -71,13 +71,13 @@ class MockNodeGroupControllerConnection MOCK_METHOD( StatusOr, ResizeNodeGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request), (override)); MOCK_METHOD(future>, ResizeNodeGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/dataproc/v1/mocks/mock_session_controller_connection.h b/google/cloud/dataproc/v1/mocks/mock_session_controller_connection.h index 0c92169d183c6..971ff8be57d2f 100644 --- a/google/cloud/dataproc/v1/mocks/mock_session_controller_connection.h +++ b/google/cloud/dataproc/v1/mocks/mock_session_controller_connection.h @@ -54,13 +54,13 @@ class MockSessionControllerConnection MOCK_METHOD( StatusOr, CreateSession, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateSessionRequest const& request), (override)); MOCK_METHOD(future>, CreateSession, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -79,13 +79,13 @@ class MockSessionControllerConnection MOCK_METHOD( StatusOr, TerminateSession, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::TerminateSessionRequest const& request), (override)); MOCK_METHOD(future>, TerminateSession, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -96,13 +96,13 @@ class MockSessionControllerConnection MOCK_METHOD( StatusOr, DeleteSession, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DeleteSessionRequest const& request), (override)); MOCK_METHOD(future>, DeleteSession, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/dataproc/v1/mocks/mock_workflow_template_connection.h b/google/cloud/dataproc/v1/mocks/mock_workflow_template_connection.h index bb1e321a3484b..57325980e1cf7 100644 --- a/google/cloud/dataproc/v1/mocks/mock_workflow_template_connection.h +++ b/google/cloud/dataproc/v1/mocks/mock_workflow_template_connection.h @@ -68,14 +68,14 @@ class MockWorkflowTemplateServiceConnection MOCK_METHOD( StatusOr, InstantiateWorkflowTemplate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& request), (override)); MOCK_METHOD(future>, InstantiateWorkflowTemplate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -87,14 +87,14 @@ class MockWorkflowTemplateServiceConnection MOCK_METHOD(StatusOr, InstantiateInlineWorkflowTemplate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1:: InstantiateInlineWorkflowTemplateRequest const& request), (override)); MOCK_METHOD(future>, InstantiateInlineWorkflowTemplate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.cc b/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.cc index e294b2d23cd54..7e719203f96a7 100644 --- a/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.cc +++ b/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.cc @@ -109,7 +109,7 @@ DatastoreAdminConnectionImpl::ExportEntities( StatusOr DatastoreAdminConnectionImpl::ExportEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::datastore::admin::v1::ExportEntitiesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -125,8 +125,7 @@ DatastoreAdminConnectionImpl::ExportEntities( future> DatastoreAdminConnectionImpl::ExportEntities( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatastoreAdminConnectionImpl::ImportEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::datastore::admin::v1::ImportEntitiesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -219,8 +218,7 @@ DatastoreAdminConnectionImpl::ImportEntities( future> DatastoreAdminConnectionImpl::ImportEntities( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatastoreAdminConnectionImpl::CreateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::datastore::admin::v1::CreateIndexRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -312,8 +310,7 @@ DatastoreAdminConnectionImpl::CreateIndex( future> DatastoreAdminConnectionImpl::CreateIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatastoreAdminConnectionImpl::DeleteIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::datastore::admin::v1::DeleteIndexRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -404,8 +401,7 @@ DatastoreAdminConnectionImpl::DeleteIndex( future> DatastoreAdminConnectionImpl::DeleteIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ExportEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::datastore::admin::v1::ExportEntitiesRequest const& request) override; future> - ExportEntities(google::cloud::ExperimentalTag, + ExportEntities(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -70,34 +70,34 @@ class DatastoreAdminConnectionImpl request) override; StatusOr ImportEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::datastore::admin::v1::ImportEntitiesRequest const& request) override; future> - ImportEntities(google::cloud::ExperimentalTag, + ImportEntities(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateIndex( google::datastore::admin::v1::CreateIndexRequest const& request) override; StatusOr CreateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::datastore::admin::v1::CreateIndexRequest const& request) override; future> CreateIndex( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteIndex( google::datastore::admin::v1::DeleteIndexRequest const& request) override; StatusOr DeleteIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::datastore::admin::v1::DeleteIndexRequest const& request) override; future> DeleteIndex( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIndex( diff --git a/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.cc b/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.cc index b25b80ea386d4..729605e1da333 100644 --- a/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.cc +++ b/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.cc @@ -44,26 +44,23 @@ DatastoreAdminTracingConnection::ExportEntities( StatusOr DatastoreAdminTracingConnection::ExportEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::ExportEntitiesRequest const& request) { auto span = internal::MakeSpan( "datastore_admin_v1::DatastoreAdminConnection::ExportEntities"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportEntities(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ExportEntities(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatastoreAdminTracingConnection::ExportEntities( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datastore_admin_v1::DatastoreAdminConnection::ExportEntities"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ExportEntities(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ExportEntities(ExperimentalTag{}, operation)); } future> @@ -77,26 +74,23 @@ DatastoreAdminTracingConnection::ImportEntities( StatusOr DatastoreAdminTracingConnection::ImportEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::ImportEntitiesRequest const& request) { auto span = internal::MakeSpan( "datastore_admin_v1::DatastoreAdminConnection::ImportEntities"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportEntities(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ImportEntities(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatastoreAdminTracingConnection::ImportEntities( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datastore_admin_v1::DatastoreAdminConnection::ImportEntities"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ImportEntities(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ImportEntities(ExperimentalTag{}, operation)); } future> @@ -110,26 +104,23 @@ DatastoreAdminTracingConnection::CreateIndex( StatusOr DatastoreAdminTracingConnection::CreateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::CreateIndexRequest const& request) { auto span = internal::MakeSpan( "datastore_admin_v1::DatastoreAdminConnection::CreateIndex"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateIndex(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateIndex(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatastoreAdminTracingConnection::CreateIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datastore_admin_v1::DatastoreAdminConnection::CreateIndex"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateIndex(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateIndex(ExperimentalTag{}, operation)); } future> @@ -143,26 +134,23 @@ DatastoreAdminTracingConnection::DeleteIndex( StatusOr DatastoreAdminTracingConnection::DeleteIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::DeleteIndexRequest const& request) { auto span = internal::MakeSpan( "datastore_admin_v1::DatastoreAdminConnection::DeleteIndex"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteIndex(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteIndex(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatastoreAdminTracingConnection::DeleteIndex( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datastore_admin_v1::DatastoreAdminConnection::DeleteIndex"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteIndex(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteIndex(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.h b/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.h index a0815939b7717..939d9e9bbe387 100644 --- a/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.h +++ b/google/cloud/datastore/admin/v1/internal/datastore_admin_tracing_connection.h @@ -45,12 +45,12 @@ class DatastoreAdminTracingConnection request) override; StatusOr ExportEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::ExportEntitiesRequest const& request) override; future> - ExportEntities(google::cloud::ExperimentalTag, + ExportEntities(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -58,34 +58,34 @@ class DatastoreAdminTracingConnection request) override; StatusOr ImportEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::ImportEntitiesRequest const& request) override; future> - ImportEntities(google::cloud::ExperimentalTag, + ImportEntities(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateIndex( google::datastore::admin::v1::CreateIndexRequest const& request) override; StatusOr CreateIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::CreateIndexRequest const& request) override; future> CreateIndex( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteIndex( google::datastore::admin::v1::DeleteIndexRequest const& request) override; StatusOr DeleteIndex( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::DeleteIndexRequest const& request) override; future> DeleteIndex( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIndex( diff --git a/google/cloud/datastore/admin/v1/mocks/mock_datastore_admin_connection.h b/google/cloud/datastore/admin/v1/mocks/mock_datastore_admin_connection.h index 13e50fb1a91a9..a5ab048f548db 100644 --- a/google/cloud/datastore/admin/v1/mocks/mock_datastore_admin_connection.h +++ b/google/cloud/datastore/admin/v1/mocks/mock_datastore_admin_connection.h @@ -55,15 +55,14 @@ class MockDatastoreAdminConnection MOCK_METHOD( StatusOr, ExportEntities, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::ExportEntitiesRequest const& request), (override)); MOCK_METHOD( future>, ExportEntities, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -74,15 +73,14 @@ class MockDatastoreAdminConnection MOCK_METHOD( StatusOr, ImportEntities, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::ImportEntitiesRequest const& request), (override)); MOCK_METHOD( future>, ImportEntities, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future>, @@ -91,13 +89,13 @@ class MockDatastoreAdminConnection (override)); MOCK_METHOD(StatusOr, CreateIndex, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::CreateIndexRequest const& request), (override)); MOCK_METHOD(future>, CreateIndex, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -107,13 +105,13 @@ class MockDatastoreAdminConnection (override)); MOCK_METHOD(StatusOr, DeleteIndex, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::DeleteIndexRequest const& request), (override)); MOCK_METHOD(future>, DeleteIndex, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/datastream/v1/internal/datastream_connection_impl.cc b/google/cloud/datastream/v1/internal/datastream_connection_impl.cc index e456f7b2e52e9..b13795067c663 100644 --- a/google/cloud/datastream/v1/internal/datastream_connection_impl.cc +++ b/google/cloud/datastream/v1/internal/datastream_connection_impl.cc @@ -158,7 +158,7 @@ DatastreamConnectionImpl::CreateConnectionProfile( StatusOr DatastreamConnectionImpl::CreateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::CreateConnectionProfileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -176,8 +176,7 @@ DatastreamConnectionImpl::CreateConnectionProfile( future> DatastreamConnectionImpl::CreateConnectionProfile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -255,7 +254,7 @@ DatastreamConnectionImpl::UpdateConnectionProfile( StatusOr DatastreamConnectionImpl::UpdateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::UpdateConnectionProfileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -273,8 +272,7 @@ DatastreamConnectionImpl::UpdateConnectionProfile( future> DatastreamConnectionImpl::UpdateConnectionProfile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -352,7 +350,7 @@ DatastreamConnectionImpl::DeleteConnectionProfile( StatusOr DatastreamConnectionImpl::DeleteConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::DeleteConnectionProfileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -370,8 +368,7 @@ DatastreamConnectionImpl::DeleteConnectionProfile( future> DatastreamConnectionImpl::DeleteConnectionProfile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -511,7 +508,7 @@ DatastreamConnectionImpl::CreateStream( } StatusOr DatastreamConnectionImpl::CreateStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::CreateStreamRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -527,8 +524,7 @@ StatusOr DatastreamConnectionImpl::CreateStream( future> DatastreamConnectionImpl::CreateStream( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -602,7 +598,7 @@ DatastreamConnectionImpl::UpdateStream( } StatusOr DatastreamConnectionImpl::UpdateStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::UpdateStreamRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -618,8 +614,7 @@ StatusOr DatastreamConnectionImpl::UpdateStream( future> DatastreamConnectionImpl::UpdateStream( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -693,7 +688,7 @@ DatastreamConnectionImpl::DeleteStream( } StatusOr DatastreamConnectionImpl::DeleteStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::DeleteStreamRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -709,8 +704,7 @@ StatusOr DatastreamConnectionImpl::DeleteStream( future> DatastreamConnectionImpl::DeleteStream( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -914,7 +908,7 @@ DatastreamConnectionImpl::CreatePrivateConnection( StatusOr DatastreamConnectionImpl::CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::CreatePrivateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -932,8 +926,7 @@ DatastreamConnectionImpl::CreatePrivateConnection( future> DatastreamConnectionImpl::CreatePrivateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1062,7 +1055,7 @@ DatastreamConnectionImpl::DeletePrivateConnection( StatusOr DatastreamConnectionImpl::DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::DeletePrivateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1080,8 +1073,7 @@ DatastreamConnectionImpl::DeletePrivateConnection( future> DatastreamConnectionImpl::DeletePrivateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1156,7 +1148,7 @@ DatastreamConnectionImpl::CreateRoute( } StatusOr DatastreamConnectionImpl::CreateRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::CreateRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1171,8 +1163,7 @@ StatusOr DatastreamConnectionImpl::CreateRoute( future> DatastreamConnectionImpl::CreateRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1294,7 +1285,7 @@ DatastreamConnectionImpl::DeleteRoute( } StatusOr DatastreamConnectionImpl::DeleteRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::DeleteRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1309,8 +1300,7 @@ StatusOr DatastreamConnectionImpl::DeleteRoute( future> DatastreamConnectionImpl::DeleteRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/datastream/v1/internal/datastream_connection_impl.h b/google/cloud/datastream/v1/internal/datastream_connection_impl.h index 6c01bb9578fb9..12320b9fde195 100644 --- a/google/cloud/datastream/v1/internal/datastream_connection_impl.h +++ b/google/cloud/datastream/v1/internal/datastream_connection_impl.h @@ -67,13 +67,13 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { request) override; StatusOr CreateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::CreateConnectionProfileRequest const& request) override; future> CreateConnectionProfile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -82,13 +82,13 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { request) override; StatusOr UpdateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::UpdateConnectionProfileRequest const& request) override; future> UpdateConnectionProfile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -97,13 +97,13 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { request) override; StatusOr DeleteConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::DeleteConnectionProfileRequest const& request) override; future> DeleteConnectionProfile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -122,12 +122,12 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { override; StatusOr CreateStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::CreateStreamRequest const& request) override; future> CreateStream( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateStream( @@ -135,12 +135,12 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { override; StatusOr UpdateStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::UpdateStreamRequest const& request) override; future> UpdateStream( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -148,12 +148,12 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { request) override; StatusOr DeleteStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::DeleteStreamRequest const& request) override; future> - DeleteStream(google::cloud::ExperimentalTag, + DeleteStream(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetStreamObject( @@ -184,13 +184,13 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { request) override; StatusOr CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::CreatePrivateConnectionRequest const& request) override; future> CreatePrivateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -209,13 +209,13 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { request) override; StatusOr DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::DeletePrivateConnectionRequest const& request) override; future> DeletePrivateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateRoute( @@ -223,12 +223,12 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { override; StatusOr CreateRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::CreateRouteRequest const& request) override; future> CreateRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetRoute( @@ -242,12 +242,12 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { override; StatusOr DeleteRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::datastream::v1::DeleteRouteRequest const& request) override; future> - DeleteRoute(google::cloud::ExperimentalTag, + DeleteRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/datastream/v1/internal/datastream_tracing_connection.cc b/google/cloud/datastream/v1/internal/datastream_tracing_connection.cc index 481d69e77b396..63e90ec7db886 100644 --- a/google/cloud/datastream/v1/internal/datastream_tracing_connection.cc +++ b/google/cloud/datastream/v1/internal/datastream_tracing_connection.cc @@ -67,27 +67,25 @@ DatastreamTracingConnection::CreateConnectionProfile( StatusOr DatastreamTracingConnection::CreateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateConnectionProfileRequest const& request) { auto span = internal::MakeSpan( "datastream_v1::DatastreamConnection::CreateConnectionProfile"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateConnectionProfile( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateConnectionProfile(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DatastreamTracingConnection::CreateConnectionProfile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datastream_v1::DatastreamConnection::CreateConnectionProfile"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateConnectionProfile( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateConnectionProfile( + ExperimentalTag{}, operation)); } future> @@ -103,27 +101,25 @@ DatastreamTracingConnection::UpdateConnectionProfile( StatusOr DatastreamTracingConnection::UpdateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::UpdateConnectionProfileRequest const& request) { auto span = internal::MakeSpan( "datastream_v1::DatastreamConnection::UpdateConnectionProfile"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateConnectionProfile( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateConnectionProfile(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DatastreamTracingConnection::UpdateConnectionProfile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datastream_v1::DatastreamConnection::UpdateConnectionProfile"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateConnectionProfile( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateConnectionProfile( + ExperimentalTag{}, operation)); } future> @@ -139,27 +135,25 @@ DatastreamTracingConnection::DeleteConnectionProfile( StatusOr DatastreamTracingConnection::DeleteConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteConnectionProfileRequest const& request) { auto span = internal::MakeSpan( "datastream_v1::DatastreamConnection::DeleteConnectionProfile"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteConnectionProfile( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteConnectionProfile(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DatastreamTracingConnection::DeleteConnectionProfile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datastream_v1::DatastreamConnection::DeleteConnectionProfile"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteConnectionProfile( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteConnectionProfile( + ExperimentalTag{}, operation)); } StatusOr @@ -203,26 +197,23 @@ DatastreamTracingConnection::CreateStream( StatusOr DatastreamTracingConnection::CreateStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateStreamRequest const& request) { auto span = internal::MakeSpan("datastream_v1::DatastreamConnection::CreateStream"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateStream(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateStream(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatastreamTracingConnection::CreateStream( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("datastream_v1::DatastreamConnection::CreateStream"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateStream(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateStream(ExperimentalTag{}, operation)); } future> @@ -236,26 +227,23 @@ DatastreamTracingConnection::UpdateStream( StatusOr DatastreamTracingConnection::UpdateStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::UpdateStreamRequest const& request) { auto span = internal::MakeSpan("datastream_v1::DatastreamConnection::UpdateStream"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateStream(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateStream(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatastreamTracingConnection::UpdateStream( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("datastream_v1::DatastreamConnection::UpdateStream"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateStream(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateStream(ExperimentalTag{}, operation)); } future> @@ -269,26 +257,23 @@ DatastreamTracingConnection::DeleteStream( StatusOr DatastreamTracingConnection::DeleteStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteStreamRequest const& request) { auto span = internal::MakeSpan("datastream_v1::DatastreamConnection::DeleteStream"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteStream(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteStream(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatastreamTracingConnection::DeleteStream( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("datastream_v1::DatastreamConnection::DeleteStream"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteStream(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteStream(ExperimentalTag{}, operation)); } StatusOr @@ -362,27 +347,25 @@ DatastreamTracingConnection::CreatePrivateConnection( StatusOr DatastreamTracingConnection::CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreatePrivateConnectionRequest const& request) { auto span = internal::MakeSpan( "datastream_v1::DatastreamConnection::CreatePrivateConnection"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreatePrivateConnection( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreatePrivateConnection(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DatastreamTracingConnection::CreatePrivateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datastream_v1::DatastreamConnection::CreatePrivateConnection"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreatePrivateConnection( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreatePrivateConnection( + ExperimentalTag{}, operation)); } StatusOr @@ -419,27 +402,25 @@ DatastreamTracingConnection::DeletePrivateConnection( StatusOr DatastreamTracingConnection::DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeletePrivateConnectionRequest const& request) { auto span = internal::MakeSpan( "datastream_v1::DatastreamConnection::DeletePrivateConnection"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeletePrivateConnection( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeletePrivateConnection(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DatastreamTracingConnection::DeletePrivateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "datastream_v1::DatastreamConnection::DeletePrivateConnection"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeletePrivateConnection( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeletePrivateConnection( + ExperimentalTag{}, operation)); } future> @@ -453,26 +434,23 @@ DatastreamTracingConnection::CreateRoute( StatusOr DatastreamTracingConnection::CreateRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateRouteRequest const& request) { auto span = internal::MakeSpan("datastream_v1::DatastreamConnection::CreateRoute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateRoute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatastreamTracingConnection::CreateRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("datastream_v1::DatastreamConnection::CreateRoute"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateRoute(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateRoute(ExperimentalTag{}, operation)); } StatusOr @@ -506,26 +484,23 @@ DatastreamTracingConnection::DeleteRoute( StatusOr DatastreamTracingConnection::DeleteRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteRouteRequest const& request) { auto span = internal::MakeSpan("datastream_v1::DatastreamConnection::DeleteRoute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteRoute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatastreamTracingConnection::DeleteRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("datastream_v1::DatastreamConnection::DeleteRoute"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteRoute(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteRoute(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/datastream/v1/internal/datastream_tracing_connection.h b/google/cloud/datastream/v1/internal/datastream_tracing_connection.h index 1be6829ee6b75..56ad7647bb200 100644 --- a/google/cloud/datastream/v1/internal/datastream_tracing_connection.h +++ b/google/cloud/datastream/v1/internal/datastream_tracing_connection.h @@ -55,13 +55,13 @@ class DatastreamTracingConnection : public datastream_v1::DatastreamConnection { request) override; StatusOr CreateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateConnectionProfileRequest const& request) override; future> CreateConnectionProfile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -70,13 +70,13 @@ class DatastreamTracingConnection : public datastream_v1::DatastreamConnection { request) override; StatusOr UpdateConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::UpdateConnectionProfileRequest const& request) override; future> UpdateConnectionProfile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -85,13 +85,13 @@ class DatastreamTracingConnection : public datastream_v1::DatastreamConnection { request) override; StatusOr DeleteConnectionProfile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteConnectionProfileRequest const& request) override; future> DeleteConnectionProfile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -110,12 +110,12 @@ class DatastreamTracingConnection : public datastream_v1::DatastreamConnection { override; StatusOr CreateStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateStreamRequest const& request) override; future> CreateStream( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateStream( @@ -123,12 +123,12 @@ class DatastreamTracingConnection : public datastream_v1::DatastreamConnection { override; StatusOr UpdateStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::UpdateStreamRequest const& request) override; future> UpdateStream( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -136,12 +136,12 @@ class DatastreamTracingConnection : public datastream_v1::DatastreamConnection { request) override; StatusOr DeleteStream( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteStreamRequest const& request) override; future> - DeleteStream(google::cloud::ExperimentalTag, + DeleteStream(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetStreamObject( @@ -172,13 +172,13 @@ class DatastreamTracingConnection : public datastream_v1::DatastreamConnection { request) override; StatusOr CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreatePrivateConnectionRequest const& request) override; future> CreatePrivateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -197,13 +197,13 @@ class DatastreamTracingConnection : public datastream_v1::DatastreamConnection { request) override; StatusOr DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeletePrivateConnectionRequest const& request) override; future> DeletePrivateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateRoute( @@ -211,12 +211,12 @@ class DatastreamTracingConnection : public datastream_v1::DatastreamConnection { override; StatusOr CreateRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateRouteRequest const& request) override; future> CreateRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetRoute( @@ -230,12 +230,12 @@ class DatastreamTracingConnection : public datastream_v1::DatastreamConnection { override; StatusOr DeleteRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteRouteRequest const& request) override; future> - DeleteRoute(google::cloud::ExperimentalTag, + DeleteRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/datastream/v1/mocks/mock_datastream_connection.h b/google/cloud/datastream/v1/mocks/mock_datastream_connection.h index 5dccb64be09a0..380a94ade1073 100644 --- a/google/cloud/datastream/v1/mocks/mock_datastream_connection.h +++ b/google/cloud/datastream/v1/mocks/mock_datastream_connection.h @@ -67,7 +67,7 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { MOCK_METHOD( StatusOr, CreateConnectionProfile, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateConnectionProfileRequest const& request), (override)); @@ -75,8 +75,7 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { MOCK_METHOD( future>, CreateConnectionProfile, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -88,7 +87,7 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { MOCK_METHOD( StatusOr, UpdateConnectionProfile, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::UpdateConnectionProfileRequest const& request), (override)); @@ -96,8 +95,7 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { MOCK_METHOD( future>, UpdateConnectionProfile, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -109,7 +107,7 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { MOCK_METHOD( StatusOr, DeleteConnectionProfile, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteConnectionProfileRequest const& request), (override)); @@ -117,8 +115,7 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { MOCK_METHOD( future>, DeleteConnectionProfile, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -144,13 +141,13 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { MOCK_METHOD( StatusOr, CreateStream, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateStreamRequest const& request), (override)); MOCK_METHOD(future>, CreateStream, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -161,13 +158,13 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { MOCK_METHOD( StatusOr, UpdateStream, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::UpdateStreamRequest const& request), (override)); MOCK_METHOD(future>, UpdateStream, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -179,15 +176,14 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { MOCK_METHOD( StatusOr, DeleteStream, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteStreamRequest const& request), (override)); MOCK_METHOD( future>, DeleteStream, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -230,7 +226,7 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { MOCK_METHOD( StatusOr, CreatePrivateConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreatePrivateConnectionRequest const& request), (override)); @@ -238,8 +234,7 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { MOCK_METHOD( future>, CreatePrivateConnection, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, @@ -263,7 +258,7 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { MOCK_METHOD( StatusOr, DeletePrivateConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeletePrivateConnectionRequest const& request), (override)); @@ -271,8 +266,7 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { MOCK_METHOD( future>, DeletePrivateConnection, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -282,13 +276,13 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { MOCK_METHOD( StatusOr, CreateRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateRouteRequest const& request), (override)); MOCK_METHOD(future>, CreateRoute, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -308,15 +302,14 @@ class MockDatastreamConnection : public datastream_v1::DatastreamConnection { MOCK_METHOD( StatusOr, DeleteRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteRouteRequest const& request), (override)); MOCK_METHOD( future>, DeleteRoute, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.cc b/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.cc index aa7d1717d3253..e89dae89cb927 100644 --- a/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.cc +++ b/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.cc @@ -155,7 +155,7 @@ CloudDeployConnectionImpl::CreateDeliveryPipeline( StatusOr CloudDeployConnectionImpl::CreateDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -171,8 +171,7 @@ CloudDeployConnectionImpl::CreateDeliveryPipeline( future> CloudDeployConnectionImpl::CreateDeliveryPipeline( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -249,7 +248,7 @@ CloudDeployConnectionImpl::UpdateDeliveryPipeline( StatusOr CloudDeployConnectionImpl::UpdateDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -265,8 +264,7 @@ CloudDeployConnectionImpl::UpdateDeliveryPipeline( future> CloudDeployConnectionImpl::UpdateDeliveryPipeline( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -343,7 +341,7 @@ CloudDeployConnectionImpl::DeleteDeliveryPipeline( StatusOr CloudDeployConnectionImpl::DeleteDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -359,8 +357,7 @@ CloudDeployConnectionImpl::DeleteDeliveryPipeline( future> CloudDeployConnectionImpl::DeleteDeliveryPipeline( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -498,7 +495,7 @@ CloudDeployConnectionImpl::CreateTarget( StatusOr CloudDeployConnectionImpl::CreateTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::CreateTargetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -513,8 +510,7 @@ CloudDeployConnectionImpl::CreateTarget( future> CloudDeployConnectionImpl::CreateTarget( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -589,7 +585,7 @@ CloudDeployConnectionImpl::UpdateTarget( StatusOr CloudDeployConnectionImpl::UpdateTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::UpdateTargetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -604,8 +600,7 @@ CloudDeployConnectionImpl::UpdateTarget( future> CloudDeployConnectionImpl::UpdateTarget( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -680,7 +675,7 @@ CloudDeployConnectionImpl::DeleteTarget( StatusOr CloudDeployConnectionImpl::DeleteTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::DeleteTargetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -695,8 +690,7 @@ CloudDeployConnectionImpl::DeleteTarget( future> CloudDeployConnectionImpl::DeleteTarget( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -824,7 +818,7 @@ CloudDeployConnectionImpl::CreateCustomTargetType( StatusOr CloudDeployConnectionImpl::CreateCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -840,8 +834,7 @@ CloudDeployConnectionImpl::CreateCustomTargetType( future> CloudDeployConnectionImpl::CreateCustomTargetType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -918,7 +911,7 @@ CloudDeployConnectionImpl::UpdateCustomTargetType( StatusOr CloudDeployConnectionImpl::UpdateCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -934,8 +927,7 @@ CloudDeployConnectionImpl::UpdateCustomTargetType( future> CloudDeployConnectionImpl::UpdateCustomTargetType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1012,7 +1004,7 @@ CloudDeployConnectionImpl::DeleteCustomTargetType( StatusOr CloudDeployConnectionImpl::DeleteCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1028,8 +1020,7 @@ CloudDeployConnectionImpl::DeleteCustomTargetType( future> CloudDeployConnectionImpl::DeleteCustomTargetType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1153,7 +1144,7 @@ CloudDeployConnectionImpl::CreateRelease( StatusOr CloudDeployConnectionImpl::CreateRelease( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::CreateReleaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1168,8 +1159,7 @@ CloudDeployConnectionImpl::CreateRelease( future> CloudDeployConnectionImpl::CreateRelease( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1348,7 +1338,7 @@ CloudDeployConnectionImpl::CreateRollout( StatusOr CloudDeployConnectionImpl::CreateRollout( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::CreateRolloutRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1363,8 +1353,7 @@ CloudDeployConnectionImpl::CreateRollout( future> CloudDeployConnectionImpl::CreateRollout( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1543,7 +1532,7 @@ CloudDeployConnectionImpl::CreateAutomation( StatusOr CloudDeployConnectionImpl::CreateAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::CreateAutomationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1559,8 +1548,7 @@ CloudDeployConnectionImpl::CreateAutomation( future> CloudDeployConnectionImpl::CreateAutomation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1635,7 +1623,7 @@ CloudDeployConnectionImpl::UpdateAutomation( StatusOr CloudDeployConnectionImpl::UpdateAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::UpdateAutomationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1651,8 +1639,7 @@ CloudDeployConnectionImpl::UpdateAutomation( future> CloudDeployConnectionImpl::UpdateAutomation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1727,7 +1714,7 @@ CloudDeployConnectionImpl::DeleteAutomation( StatusOr CloudDeployConnectionImpl::DeleteAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::DeleteAutomationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1743,8 +1730,7 @@ CloudDeployConnectionImpl::DeleteAutomation( future> CloudDeployConnectionImpl::DeleteAutomation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.h b/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.h index 8564f2767cbc5..215f463d16828 100644 --- a/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.h +++ b/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.h @@ -65,13 +65,13 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { override; StatusOr CreateDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request) override; future> CreateDeliveryPipeline( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -80,13 +80,13 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { override; StatusOr UpdateDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request) override; future> UpdateDeliveryPipeline( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -95,13 +95,13 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { override; StatusOr DeleteDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request) override; future> DeleteDeliveryPipeline( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTargets( @@ -117,33 +117,33 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::CreateTargetRequest const& request) override; StatusOr CreateTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::CreateTargetRequest const& request) override; future> CreateTarget( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateTarget( google::cloud::deploy::v1::UpdateTargetRequest const& request) override; StatusOr UpdateTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::UpdateTargetRequest const& request) override; future> UpdateTarget( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteTarget( google::cloud::deploy::v1::DeleteTargetRequest const& request) override; StatusOr DeleteTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::DeleteTargetRequest const& request) override; future> DeleteTarget( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -160,13 +160,13 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { override; StatusOr CreateCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request) override; future> CreateCustomTargetType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -175,13 +175,13 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { override; StatusOr UpdateCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request) override; future> UpdateCustomTargetType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -190,13 +190,13 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { override; StatusOr DeleteCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request) override; future> DeleteCustomTargetType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListReleases( @@ -209,11 +209,11 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::CreateReleaseRequest const& request) override; StatusOr CreateRelease( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::CreateReleaseRequest const& request) override; future> CreateRelease( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr AbandonRelease( @@ -238,11 +238,11 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::CreateRolloutRequest const& request) override; StatusOr CreateRollout( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::CreateRolloutRequest const& request) override; future> CreateRollout( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr IgnoreJob( @@ -269,12 +269,12 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { override; StatusOr CreateAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::CreateAutomationRequest const& request) override; future> CreateAutomation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateAutomation( @@ -282,12 +282,12 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { override; StatusOr UpdateAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::UpdateAutomationRequest const& request) override; future> UpdateAutomation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -295,12 +295,12 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { request) override; StatusOr DeleteAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::deploy::v1::DeleteAutomationRequest const& request) override; future> - DeleteAutomation(google::cloud::ExperimentalTag, + DeleteAutomation(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAutomation( diff --git a/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.cc b/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.cc index 54c37084a40f7..65a59f57175ab 100644 --- a/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.cc +++ b/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.cc @@ -66,26 +66,24 @@ CloudDeployTracingConnection::CreateDeliveryPipeline( StatusOr CloudDeployTracingConnection::CreateDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::CreateDeliveryPipeline"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateDeliveryPipeline( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateDeliveryPipeline(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudDeployTracingConnection::CreateDeliveryPipeline( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::CreateDeliveryPipeline"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateDeliveryPipeline( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateDeliveryPipeline( + ExperimentalTag{}, operation)); } future> @@ -100,26 +98,24 @@ CloudDeployTracingConnection::UpdateDeliveryPipeline( StatusOr CloudDeployTracingConnection::UpdateDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::UpdateDeliveryPipeline"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateDeliveryPipeline( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateDeliveryPipeline(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudDeployTracingConnection::UpdateDeliveryPipeline( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::UpdateDeliveryPipeline"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateDeliveryPipeline( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateDeliveryPipeline( + ExperimentalTag{}, operation)); } future> @@ -134,26 +130,24 @@ CloudDeployTracingConnection::DeleteDeliveryPipeline( StatusOr CloudDeployTracingConnection::DeleteDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::DeleteDeliveryPipeline"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteDeliveryPipeline( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteDeliveryPipeline(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudDeployTracingConnection::DeleteDeliveryPipeline( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::DeleteDeliveryPipeline"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteDeliveryPipeline( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteDeliveryPipeline( + ExperimentalTag{}, operation)); } StreamRange @@ -195,26 +189,23 @@ CloudDeployTracingConnection::CreateTarget( StatusOr CloudDeployTracingConnection::CreateTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateTargetRequest const& request) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateTarget"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateTarget(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateTarget(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudDeployTracingConnection::CreateTarget( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateTarget"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateTarget(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateTarget(ExperimentalTag{}, operation)); } future> @@ -228,26 +219,23 @@ CloudDeployTracingConnection::UpdateTarget( StatusOr CloudDeployTracingConnection::UpdateTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateTargetRequest const& request) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::UpdateTarget"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateTarget(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateTarget(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudDeployTracingConnection::UpdateTarget( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::UpdateTarget"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateTarget(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateTarget(ExperimentalTag{}, operation)); } future> @@ -261,26 +249,23 @@ CloudDeployTracingConnection::DeleteTarget( StatusOr CloudDeployTracingConnection::DeleteTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteTargetRequest const& request) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::DeleteTarget"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteTarget(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteTarget(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudDeployTracingConnection::DeleteTarget( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::DeleteTarget"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteTarget(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteTarget(ExperimentalTag{}, operation)); } StreamRange @@ -316,26 +301,24 @@ CloudDeployTracingConnection::CreateCustomTargetType( StatusOr CloudDeployTracingConnection::CreateCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::CreateCustomTargetType"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateCustomTargetType( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateCustomTargetType(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudDeployTracingConnection::CreateCustomTargetType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::CreateCustomTargetType"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateCustomTargetType( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateCustomTargetType( + ExperimentalTag{}, operation)); } future> @@ -350,26 +333,24 @@ CloudDeployTracingConnection::UpdateCustomTargetType( StatusOr CloudDeployTracingConnection::UpdateCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::UpdateCustomTargetType"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateCustomTargetType( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateCustomTargetType(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudDeployTracingConnection::UpdateCustomTargetType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::UpdateCustomTargetType"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateCustomTargetType( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateCustomTargetType( + ExperimentalTag{}, operation)); } future> @@ -384,26 +365,24 @@ CloudDeployTracingConnection::DeleteCustomTargetType( StatusOr CloudDeployTracingConnection::DeleteCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::DeleteCustomTargetType"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteCustomTargetType( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteCustomTargetType(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudDeployTracingConnection::DeleteCustomTargetType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "deploy_v1::CloudDeployConnection::DeleteCustomTargetType"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteCustomTargetType( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteCustomTargetType( + ExperimentalTag{}, operation)); } StreamRange @@ -437,26 +416,23 @@ CloudDeployTracingConnection::CreateRelease( StatusOr CloudDeployTracingConnection::CreateRelease( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateReleaseRequest const& request) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateRelease"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateRelease(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateRelease(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudDeployTracingConnection::CreateRelease( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateRelease"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateRelease(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateRelease(ExperimentalTag{}, operation)); } StatusOr @@ -526,26 +502,23 @@ CloudDeployTracingConnection::CreateRollout( StatusOr CloudDeployTracingConnection::CreateRollout( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateRolloutRequest const& request) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateRollout"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateRollout(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateRollout(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudDeployTracingConnection::CreateRollout( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateRollout"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateRollout(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateRollout(ExperimentalTag{}, operation)); } StatusOr @@ -611,26 +584,24 @@ CloudDeployTracingConnection::CreateAutomation( StatusOr CloudDeployTracingConnection::CreateAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateAutomationRequest const& request) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateAutomation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateAutomation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateAutomation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudDeployTracingConnection::CreateAutomation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::CreateAutomation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateAutomation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateAutomation(ExperimentalTag{}, operation)); } future> @@ -644,26 +615,24 @@ CloudDeployTracingConnection::UpdateAutomation( StatusOr CloudDeployTracingConnection::UpdateAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateAutomationRequest const& request) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::UpdateAutomation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateAutomation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateAutomation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudDeployTracingConnection::UpdateAutomation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::UpdateAutomation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateAutomation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateAutomation(ExperimentalTag{}, operation)); } future> @@ -677,26 +646,24 @@ CloudDeployTracingConnection::DeleteAutomation( StatusOr CloudDeployTracingConnection::DeleteAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteAutomationRequest const& request) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::DeleteAutomation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAutomation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteAutomation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudDeployTracingConnection::DeleteAutomation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("deploy_v1::CloudDeployConnection::DeleteAutomation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteAutomation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteAutomation(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.h b/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.h index 96869cd3432b4..f05e23b6894c2 100644 --- a/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.h +++ b/google/cloud/deploy/v1/internal/cloud_deploy_tracing_connection.h @@ -53,13 +53,13 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { override; StatusOr CreateDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request) override; future> CreateDeliveryPipeline( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -68,13 +68,13 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { override; StatusOr UpdateDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request) override; future> UpdateDeliveryPipeline( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -83,13 +83,13 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { override; StatusOr DeleteDeliveryPipeline( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request) override; future> DeleteDeliveryPipeline( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTargets( @@ -105,33 +105,33 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::CreateTargetRequest const& request) override; StatusOr CreateTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateTargetRequest const& request) override; future> CreateTarget( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateTarget( google::cloud::deploy::v1::UpdateTargetRequest const& request) override; StatusOr UpdateTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateTargetRequest const& request) override; future> UpdateTarget( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteTarget( google::cloud::deploy::v1::DeleteTargetRequest const& request) override; StatusOr DeleteTarget( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteTargetRequest const& request) override; future> DeleteTarget( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -148,13 +148,13 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { override; StatusOr CreateCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request) override; future> CreateCustomTargetType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -163,13 +163,13 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { override; StatusOr UpdateCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request) override; future> UpdateCustomTargetType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -178,13 +178,13 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { override; StatusOr DeleteCustomTargetType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request) override; future> DeleteCustomTargetType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListReleases( @@ -197,11 +197,11 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::CreateReleaseRequest const& request) override; StatusOr CreateRelease( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateReleaseRequest const& request) override; future> CreateRelease( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr AbandonRelease( @@ -226,11 +226,11 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::CreateRolloutRequest const& request) override; StatusOr CreateRollout( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateRolloutRequest const& request) override; future> CreateRollout( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr IgnoreJob( @@ -257,12 +257,12 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { override; StatusOr CreateAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateAutomationRequest const& request) override; future> CreateAutomation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateAutomation( @@ -270,12 +270,12 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { override; StatusOr UpdateAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateAutomationRequest const& request) override; future> UpdateAutomation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -283,12 +283,12 @@ class CloudDeployTracingConnection : public deploy_v1::CloudDeployConnection { request) override; StatusOr DeleteAutomation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteAutomationRequest const& request) override; future> - DeleteAutomation(google::cloud::ExperimentalTag, + DeleteAutomation(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAutomation( diff --git a/google/cloud/deploy/v1/mocks/mock_cloud_deploy_connection.h b/google/cloud/deploy/v1/mocks/mock_cloud_deploy_connection.h index ba3c8525a4eb6..2934cbbc73d05 100644 --- a/google/cloud/deploy/v1/mocks/mock_cloud_deploy_connection.h +++ b/google/cloud/deploy/v1/mocks/mock_cloud_deploy_connection.h @@ -65,13 +65,13 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { MOCK_METHOD( StatusOr, CreateDeliveryPipeline, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request), (override)); MOCK_METHOD(future>, CreateDeliveryPipeline, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -83,13 +83,13 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { MOCK_METHOD( StatusOr, UpdateDeliveryPipeline, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request), (override)); MOCK_METHOD(future>, UpdateDeliveryPipeline, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -101,13 +101,13 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { MOCK_METHOD( StatusOr, DeleteDeliveryPipeline, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request), (override)); MOCK_METHOD(future>, DeleteDeliveryPipeline, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -129,12 +129,12 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { (override)); MOCK_METHOD(StatusOr, CreateTarget, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateTargetRequest const& request), (override)); MOCK_METHOD(future>, CreateTarget, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -143,12 +143,12 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { (override)); MOCK_METHOD(StatusOr, UpdateTarget, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateTargetRequest const& request), (override)); MOCK_METHOD(future>, UpdateTarget, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -158,13 +158,13 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { (override)); MOCK_METHOD(StatusOr, DeleteTarget, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteTargetRequest const& request), (override)); MOCK_METHOD(future>, DeleteTarget, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -187,13 +187,13 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { MOCK_METHOD( StatusOr, CreateCustomTargetType, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request), (override)); MOCK_METHOD(future>, CreateCustomTargetType, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -205,13 +205,13 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { MOCK_METHOD( StatusOr, UpdateCustomTargetType, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request), (override)); MOCK_METHOD(future>, UpdateCustomTargetType, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -223,13 +223,13 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { MOCK_METHOD( StatusOr, DeleteCustomTargetType, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request), (override)); MOCK_METHOD(future>, DeleteCustomTargetType, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -247,13 +247,13 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { (override)); MOCK_METHOD(StatusOr, CreateRelease, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateReleaseRequest const& request), (override)); MOCK_METHOD(future>, CreateRelease, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -291,13 +291,13 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { (override)); MOCK_METHOD(StatusOr, CreateRollout, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateRolloutRequest const& request), (override)); MOCK_METHOD(future>, CreateRollout, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -334,13 +334,13 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { MOCK_METHOD( StatusOr, CreateAutomation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateAutomationRequest const& request), (override)); MOCK_METHOD(future>, CreateAutomation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -351,13 +351,13 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { MOCK_METHOD( StatusOr, UpdateAutomation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateAutomationRequest const& request), (override)); MOCK_METHOD(future>, UpdateAutomation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -369,13 +369,13 @@ class MockCloudDeployConnection : public deploy_v1::CloudDeployConnection { MOCK_METHOD( StatusOr, DeleteAutomation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteAutomationRequest const& request), (override)); MOCK_METHOD(future>, DeleteAutomation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/dialogflow_cx/internal/agents_connection_impl.cc b/google/cloud/dialogflow_cx/internal/agents_connection_impl.cc index a0b56ecc10e73..1e7817171de74 100644 --- a/google/cloud/dialogflow_cx/internal/agents_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/agents_connection_impl.cc @@ -196,7 +196,7 @@ AgentsConnectionImpl::ExportAgent( } StatusOr AgentsConnectionImpl::ExportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -212,8 +212,7 @@ StatusOr AgentsConnectionImpl::ExportAgent( future> AgentsConnectionImpl::ExportAgent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future< @@ -287,7 +286,7 @@ future> AgentsConnectionImpl::RestoreAgent( } StatusOr AgentsConnectionImpl::RestoreAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -302,8 +301,7 @@ StatusOr AgentsConnectionImpl::RestoreAgent( } future> AgentsConnectionImpl::RestoreAgent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( diff --git a/google/cloud/dialogflow_cx/internal/agents_connection_impl.h b/google/cloud/dialogflow_cx/internal/agents_connection_impl.h index 15d4595623b06..c8d1a0f8c3ab7 100644 --- a/google/cloud/dialogflow_cx/internal/agents_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/agents_connection_impl.h @@ -75,12 +75,12 @@ class AgentsConnectionImpl : public dialogflow_cx::AgentsConnection { request) override; StatusOr ExportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request) override; future> - ExportAgent(google::cloud::ExperimentalTag, + ExportAgent(ExperimentalTag, google::longrunning::Operation const& operation) override; future> RestoreAgent( @@ -88,12 +88,12 @@ class AgentsConnectionImpl : public dialogflow_cx::AgentsConnection { override; StatusOr RestoreAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request) override; future> RestoreAgent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/dialogflow_cx/internal/agents_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/agents_tracing_connection.cc index 766571e5b9f66..9321fbc1edca0 100644 --- a/google/cloud/dialogflow_cx/internal/agents_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/agents_tracing_connection.cc @@ -87,26 +87,23 @@ AgentsTracingConnection::ExportAgent( } StatusOr AgentsTracingConnection::ExportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::AgentsConnection::ExportAgent"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportAgent(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ExportAgent(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AgentsTracingConnection::ExportAgent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_cx::AgentsConnection::ExportAgent"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ExportAgent(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ExportAgent(ExperimentalTag{}, operation)); } future> @@ -119,26 +116,23 @@ AgentsTracingConnection::RestoreAgent( } StatusOr AgentsTracingConnection::RestoreAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::AgentsConnection::RestoreAgent"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RestoreAgent(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RestoreAgent(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AgentsTracingConnection::RestoreAgent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_cx::AgentsConnection::RestoreAgent"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RestoreAgent(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RestoreAgent(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/dialogflow_cx/internal/agents_tracing_connection.h b/google/cloud/dialogflow_cx/internal/agents_tracing_connection.h index 39e23bd81d8b7..0c20c7a205092 100644 --- a/google/cloud/dialogflow_cx/internal/agents_tracing_connection.h +++ b/google/cloud/dialogflow_cx/internal/agents_tracing_connection.h @@ -63,12 +63,12 @@ class AgentsTracingConnection : public dialogflow_cx::AgentsConnection { request) override; StatusOr ExportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request) override; future> - ExportAgent(google::cloud::ExperimentalTag, + ExportAgent(ExperimentalTag, google::longrunning::Operation const& operation) override; future> RestoreAgent( @@ -76,12 +76,12 @@ class AgentsTracingConnection : public dialogflow_cx::AgentsConnection { override; StatusOr RestoreAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request) override; future> RestoreAgent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.cc b/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.cc index b782ce71334d0..4175764ebaf28 100644 --- a/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.cc @@ -201,7 +201,7 @@ EntityTypesConnectionImpl::ExportEntityTypes( StatusOr EntityTypesConnectionImpl::ExportEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -218,8 +218,7 @@ EntityTypesConnectionImpl::ExportEntityTypes( future> EntityTypesConnectionImpl::ExportEntityTypes( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EntityTypesConnectionImpl::ImportEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -315,8 +314,7 @@ EntityTypesConnectionImpl::ImportEntityTypes( future> EntityTypesConnectionImpl::ImportEntityTypes( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ExportEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& request) override; future> - ExportEntityTypes(google::cloud::ExperimentalTag, + ExportEntityTypes(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -91,12 +91,12 @@ class EntityTypesConnectionImpl : public dialogflow_cx::EntityTypesConnection { request) override; StatusOr ImportEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& request) override; future> - ImportEntityTypes(google::cloud::ExperimentalTag, + ImportEntityTypes(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.cc index 0c84ebe744061..80abca167a625 100644 --- a/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.cc @@ -92,27 +92,25 @@ EntityTypesTracingConnection::ExportEntityTypes( StatusOr EntityTypesTracingConnection::ExportEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& request) { auto span = internal::MakeSpan( "dialogflow_cx::EntityTypesConnection::ExportEntityTypes"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportEntityTypes(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ExportEntityTypes(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EntityTypesTracingConnection::ExportEntityTypes( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_cx::EntityTypesConnection::ExportEntityTypes"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ExportEntityTypes(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ExportEntityTypes(ExperimentalTag{}, operation)); } future> @@ -127,27 +125,25 @@ EntityTypesTracingConnection::ImportEntityTypes( StatusOr EntityTypesTracingConnection::ImportEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& request) { auto span = internal::MakeSpan( "dialogflow_cx::EntityTypesConnection::ImportEntityTypes"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportEntityTypes(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ImportEntityTypes(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EntityTypesTracingConnection::ImportEntityTypes( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_cx::EntityTypesConnection::ImportEntityTypes"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ImportEntityTypes(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ImportEntityTypes(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.h b/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.h index af79d75da9494..ac517497fa1f4 100644 --- a/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.h +++ b/google/cloud/dialogflow_cx/internal/entity_types_tracing_connection.h @@ -66,12 +66,12 @@ class EntityTypesTracingConnection request) override; StatusOr ExportEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& request) override; future> - ExportEntityTypes(google::cloud::ExperimentalTag, + ExportEntityTypes(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -80,12 +80,12 @@ class EntityTypesTracingConnection request) override; StatusOr ImportEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& request) override; future> - ImportEntityTypes(google::cloud::ExperimentalTag, + ImportEntityTypes(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_cx/internal/environments_connection_impl.cc b/google/cloud/dialogflow_cx/internal/environments_connection_impl.cc index 5e53f84354edf..ce9ad3a39e6b5 100644 --- a/google/cloud/dialogflow_cx/internal/environments_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/environments_connection_impl.cc @@ -156,7 +156,7 @@ EnvironmentsConnectionImpl::CreateEnvironment( StatusOr EnvironmentsConnectionImpl::CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -173,8 +173,7 @@ EnvironmentsConnectionImpl::CreateEnvironment( future> EnvironmentsConnectionImpl::CreateEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future< @@ -251,7 +250,7 @@ EnvironmentsConnectionImpl::UpdateEnvironment( StatusOr EnvironmentsConnectionImpl::UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -268,8 +267,7 @@ EnvironmentsConnectionImpl::UpdateEnvironment( future> EnvironmentsConnectionImpl::UpdateEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future< @@ -399,7 +397,7 @@ EnvironmentsConnectionImpl::RunContinuousTest( StatusOr EnvironmentsConnectionImpl::RunContinuousTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -416,8 +414,7 @@ EnvironmentsConnectionImpl::RunContinuousTest( future> EnvironmentsConnectionImpl::RunContinuousTest( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EnvironmentsConnectionImpl::DeployFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -547,8 +544,7 @@ StatusOr EnvironmentsConnectionImpl::DeployFlow( future> EnvironmentsConnectionImpl::DeployFlow( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& request) override; future> - CreateEnvironment(google::cloud::ExperimentalTag, + CreateEnvironment(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -80,12 +80,12 @@ class EnvironmentsConnectionImpl request) override; StatusOr UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& request) override; future> - UpdateEnvironment(google::cloud::ExperimentalTag, + UpdateEnvironment(ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteEnvironment( @@ -103,12 +103,12 @@ class EnvironmentsConnectionImpl request) override; StatusOr RunContinuousTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& request) override; future> - RunContinuousTest(google::cloud::ExperimentalTag, + RunContinuousTest(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -121,12 +121,12 @@ class EnvironmentsConnectionImpl request) override; StatusOr DeployFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request) override; future> - DeployFlow(google::cloud::ExperimentalTag, + DeployFlow(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_cx/internal/environments_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/environments_tracing_connection.cc index 5c6b29ce5f1b2..373024222f091 100644 --- a/google/cloud/dialogflow_cx/internal/environments_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/environments_tracing_connection.cc @@ -66,27 +66,25 @@ EnvironmentsTracingConnection::CreateEnvironment( StatusOr EnvironmentsTracingConnection::CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& request) { auto span = internal::MakeSpan( "dialogflow_cx::EnvironmentsConnection::CreateEnvironment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateEnvironment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateEnvironment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EnvironmentsTracingConnection::CreateEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_cx::EnvironmentsConnection::CreateEnvironment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateEnvironment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateEnvironment(ExperimentalTag{}, operation)); } future> @@ -101,27 +99,25 @@ EnvironmentsTracingConnection::UpdateEnvironment( StatusOr EnvironmentsTracingConnection::UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& request) { auto span = internal::MakeSpan( "dialogflow_cx::EnvironmentsConnection::UpdateEnvironment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateEnvironment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateEnvironment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EnvironmentsTracingConnection::UpdateEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_cx::EnvironmentsConnection::UpdateEnvironment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateEnvironment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateEnvironment(ExperimentalTag{}, operation)); } Status EnvironmentsTracingConnection::DeleteEnvironment( @@ -158,27 +154,25 @@ EnvironmentsTracingConnection::RunContinuousTest( StatusOr EnvironmentsTracingConnection::RunContinuousTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& request) { auto span = internal::MakeSpan( "dialogflow_cx::EnvironmentsConnection::RunContinuousTest"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RunContinuousTest(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->RunContinuousTest(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EnvironmentsTracingConnection::RunContinuousTest( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_cx::EnvironmentsConnection::RunContinuousTest"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RunContinuousTest(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RunContinuousTest(ExperimentalTag{}, operation)); } StreamRange @@ -205,26 +199,23 @@ EnvironmentsTracingConnection::DeployFlow( StatusOr EnvironmentsTracingConnection::DeployFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::EnvironmentsConnection::DeployFlow"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeployFlow(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeployFlow(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EnvironmentsTracingConnection::DeployFlow( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_cx::EnvironmentsConnection::DeployFlow"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeployFlow(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeployFlow(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/dialogflow_cx/internal/environments_tracing_connection.h b/google/cloud/dialogflow_cx/internal/environments_tracing_connection.h index 62a901512d479..8017c2dbd17d2 100644 --- a/google/cloud/dialogflow_cx/internal/environments_tracing_connection.h +++ b/google/cloud/dialogflow_cx/internal/environments_tracing_connection.h @@ -54,12 +54,12 @@ class EnvironmentsTracingConnection request) override; StatusOr CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& request) override; future> - CreateEnvironment(google::cloud::ExperimentalTag, + CreateEnvironment(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -68,12 +68,12 @@ class EnvironmentsTracingConnection request) override; StatusOr UpdateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& request) override; future> - UpdateEnvironment(google::cloud::ExperimentalTag, + UpdateEnvironment(ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteEnvironment( @@ -91,12 +91,12 @@ class EnvironmentsTracingConnection request) override; StatusOr RunContinuousTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& request) override; future> - RunContinuousTest(google::cloud::ExperimentalTag, + RunContinuousTest(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -109,12 +109,12 @@ class EnvironmentsTracingConnection request) override; StatusOr DeployFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request) override; future> - DeployFlow(google::cloud::ExperimentalTag, + DeployFlow(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_cx/internal/flows_connection_impl.cc b/google/cloud/dialogflow_cx/internal/flows_connection_impl.cc index 5e35e0e8982c7..dc0126d3b09b0 100644 --- a/google/cloud/dialogflow_cx/internal/flows_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/flows_connection_impl.cc @@ -191,7 +191,7 @@ future> FlowsConnectionImpl::TrainFlow( } StatusOr FlowsConnectionImpl::TrainFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -206,8 +206,7 @@ StatusOr FlowsConnectionImpl::TrainFlow( } future> FlowsConnectionImpl::TrainFlow( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -311,7 +310,7 @@ FlowsConnectionImpl::ImportFlow( } StatusOr FlowsConnectionImpl::ImportFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -327,8 +326,7 @@ StatusOr FlowsConnectionImpl::ImportFlow( future> FlowsConnectionImpl::ImportFlow( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future< @@ -402,7 +400,7 @@ FlowsConnectionImpl::ExportFlow( } StatusOr FlowsConnectionImpl::ExportFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -418,8 +416,7 @@ StatusOr FlowsConnectionImpl::ExportFlow( future> FlowsConnectionImpl::ExportFlow( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future< diff --git a/google/cloud/dialogflow_cx/internal/flows_connection_impl.h b/google/cloud/dialogflow_cx/internal/flows_connection_impl.h index 49aa1f6ed6785..937d6b4dd5bb9 100644 --- a/google/cloud/dialogflow_cx/internal/flows_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/flows_connection_impl.h @@ -73,12 +73,12 @@ class FlowsConnectionImpl : public dialogflow_cx::FlowsConnection { override; StatusOr TrainFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request) override; future> TrainFlow( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -95,12 +95,12 @@ class FlowsConnectionImpl : public dialogflow_cx::FlowsConnection { request) override; StatusOr ImportFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request) override; future> - ImportFlow(google::cloud::ExperimentalTag, + ImportFlow(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -108,12 +108,12 @@ class FlowsConnectionImpl : public dialogflow_cx::FlowsConnection { request) override; StatusOr ExportFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request) override; future> - ExportFlow(google::cloud::ExperimentalTag, + ExportFlow(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_cx/internal/flows_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/flows_tracing_connection.cc index dd53deb1be1c3..d4e9abe3a3af4 100644 --- a/google/cloud/dialogflow_cx/internal/flows_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/flows_tracing_connection.cc @@ -82,23 +82,20 @@ future> FlowsTracingConnection::TrainFlow( } StatusOr FlowsTracingConnection::TrainFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::FlowsConnection::TrainFlow"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->TrainFlow(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->TrainFlow(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FlowsTracingConnection::TrainFlow( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_cx::FlowsConnection::TrainFlow"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->TrainFlow(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->TrainFlow(ExperimentalTag{}, operation)); } StatusOr @@ -129,24 +126,21 @@ FlowsTracingConnection::ImportFlow( } StatusOr FlowsTracingConnection::ImportFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::FlowsConnection::ImportFlow"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportFlow(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ImportFlow(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FlowsTracingConnection::ImportFlow( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_cx::FlowsConnection::ImportFlow"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ImportFlow(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ImportFlow(ExperimentalTag{}, operation)); } future> @@ -158,24 +152,21 @@ FlowsTracingConnection::ExportFlow( } StatusOr FlowsTracingConnection::ExportFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::FlowsConnection::ExportFlow"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportFlow(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ExportFlow(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FlowsTracingConnection::ExportFlow( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_cx::FlowsConnection::ExportFlow"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ExportFlow(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ExportFlow(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/dialogflow_cx/internal/flows_tracing_connection.h b/google/cloud/dialogflow_cx/internal/flows_tracing_connection.h index 403d246a9d6dd..9e9d4b5a22efd 100644 --- a/google/cloud/dialogflow_cx/internal/flows_tracing_connection.h +++ b/google/cloud/dialogflow_cx/internal/flows_tracing_connection.h @@ -62,12 +62,12 @@ class FlowsTracingConnection : public dialogflow_cx::FlowsConnection { override; StatusOr TrainFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request) override; future> TrainFlow( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -84,12 +84,12 @@ class FlowsTracingConnection : public dialogflow_cx::FlowsConnection { request) override; StatusOr ImportFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request) override; future> - ImportFlow(google::cloud::ExperimentalTag, + ImportFlow(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -97,12 +97,12 @@ class FlowsTracingConnection : public dialogflow_cx::FlowsConnection { request) override; StatusOr ExportFlow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request) override; future> - ExportFlow(google::cloud::ExperimentalTag, + ExportFlow(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_cx/internal/intents_connection_impl.cc b/google/cloud/dialogflow_cx/internal/intents_connection_impl.cc index 04a0442e35b2b..efffea5247904 100644 --- a/google/cloud/dialogflow_cx/internal/intents_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/intents_connection_impl.cc @@ -196,7 +196,7 @@ IntentsConnectionImpl::ImportIntents( } StatusOr IntentsConnectionImpl::ImportIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -212,8 +212,7 @@ StatusOr IntentsConnectionImpl::ImportIntents( future> IntentsConnectionImpl::ImportIntents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is IntentsConnectionImpl::ExportIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -306,8 +305,7 @@ StatusOr IntentsConnectionImpl::ExportIntents( future> IntentsConnectionImpl::ExportIntents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ImportIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request) override; future> - ImportIntents(google::cloud::ExperimentalTag, + ImportIntents(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -88,12 +88,12 @@ class IntentsConnectionImpl : public dialogflow_cx::IntentsConnection { request) override; StatusOr ExportIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request) override; future> - ExportIntents(google::cloud::ExperimentalTag, + ExportIntents(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_cx/internal/intents_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/intents_tracing_connection.cc index e4ddebc80a8f6..e6f3d9c53ff65 100644 --- a/google/cloud/dialogflow_cx/internal/intents_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/intents_tracing_connection.cc @@ -90,26 +90,23 @@ IntentsTracingConnection::ImportIntents( StatusOr IntentsTracingConnection::ImportIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::IntentsConnection::ImportIntents"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportIntents(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ImportIntents(ExperimentalTag{}, NoAwaitTag{}, request)); } future> IntentsTracingConnection::ImportIntents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_cx::IntentsConnection::ImportIntents"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ImportIntents(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ImportIntents(ExperimentalTag{}, operation)); } future> @@ -123,26 +120,23 @@ IntentsTracingConnection::ExportIntents( StatusOr IntentsTracingConnection::ExportIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::IntentsConnection::ExportIntents"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportIntents(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ExportIntents(ExperimentalTag{}, NoAwaitTag{}, request)); } future> IntentsTracingConnection::ExportIntents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_cx::IntentsConnection::ExportIntents"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ExportIntents(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ExportIntents(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/dialogflow_cx/internal/intents_tracing_connection.h b/google/cloud/dialogflow_cx/internal/intents_tracing_connection.h index a5d05eb3e3bcf..6d6473e9a9728 100644 --- a/google/cloud/dialogflow_cx/internal/intents_tracing_connection.h +++ b/google/cloud/dialogflow_cx/internal/intents_tracing_connection.h @@ -63,12 +63,12 @@ class IntentsTracingConnection : public dialogflow_cx::IntentsConnection { request) override; StatusOr ImportIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request) override; future> - ImportIntents(google::cloud::ExperimentalTag, + ImportIntents(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -76,12 +76,12 @@ class IntentsTracingConnection : public dialogflow_cx::IntentsConnection { request) override; StatusOr ExportIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request) override; future> - ExportIntents(google::cloud::ExperimentalTag, + ExportIntents(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.cc b/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.cc index 9ecc2a3026a90..f8f05bc78d58c 100644 --- a/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.cc @@ -201,7 +201,7 @@ TestCasesConnectionImpl::RunTestCase( } StatusOr TestCasesConnectionImpl::RunTestCase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -217,8 +217,7 @@ StatusOr TestCasesConnectionImpl::RunTestCase( future> TestCasesConnectionImpl::RunTestCase( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TestCasesConnectionImpl::BatchRunTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -314,8 +313,7 @@ TestCasesConnectionImpl::BatchRunTestCases( future> TestCasesConnectionImpl::BatchRunTestCases( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TestCasesConnectionImpl::ImportTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -425,8 +423,7 @@ TestCasesConnectionImpl::ImportTestCases( future> TestCasesConnectionImpl::ImportTestCases( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TestCasesConnectionImpl::ExportTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -520,8 +517,7 @@ TestCasesConnectionImpl::ExportTestCases( future> TestCasesConnectionImpl::ExportTestCases( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is RunTestCase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request) override; future> - RunTestCase(google::cloud::ExperimentalTag, + RunTestCase(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -89,12 +89,12 @@ class TestCasesConnectionImpl : public dialogflow_cx::TestCasesConnection { request) override; StatusOr BatchRunTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& request) override; future> - BatchRunTestCases(google::cloud::ExperimentalTag, + BatchRunTestCases(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -108,12 +108,12 @@ class TestCasesConnectionImpl : public dialogflow_cx::TestCasesConnection { override; StatusOr ImportTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request) override; future> - ImportTestCases(google::cloud::ExperimentalTag, + ImportTestCases(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -122,12 +122,12 @@ class TestCasesConnectionImpl : public dialogflow_cx::TestCasesConnection { override; StatusOr ExportTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request) override; future> - ExportTestCases(google::cloud::ExperimentalTag, + ExportTestCases(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.cc index 51805bf617978..322d3d1b625be 100644 --- a/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.cc @@ -92,26 +92,23 @@ TestCasesTracingConnection::RunTestCase( StatusOr TestCasesTracingConnection::RunTestCase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::TestCasesConnection::RunTestCase"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RunTestCase(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RunTestCase(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TestCasesTracingConnection::RunTestCase( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_cx::TestCasesConnection::RunTestCase"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RunTestCase(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RunTestCase(ExperimentalTag{}, operation)); } future> @@ -126,27 +123,25 @@ TestCasesTracingConnection::BatchRunTestCases( StatusOr TestCasesTracingConnection::BatchRunTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& request) { auto span = internal::MakeSpan( "dialogflow_cx::TestCasesConnection::BatchRunTestCases"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BatchRunTestCases(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->BatchRunTestCases(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TestCasesTracingConnection::BatchRunTestCases( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_cx::TestCasesConnection::BatchRunTestCases"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->BatchRunTestCases(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->BatchRunTestCases(ExperimentalTag{}, operation)); } StatusOr @@ -170,26 +165,23 @@ TestCasesTracingConnection::ImportTestCases( StatusOr TestCasesTracingConnection::ImportTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::TestCasesConnection::ImportTestCases"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportTestCases(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ImportTestCases(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TestCasesTracingConnection::ImportTestCases( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_cx::TestCasesConnection::ImportTestCases"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ImportTestCases(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ImportTestCases(ExperimentalTag{}, operation)); } future> @@ -203,26 +195,23 @@ TestCasesTracingConnection::ExportTestCases( StatusOr TestCasesTracingConnection::ExportTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::TestCasesConnection::ExportTestCases"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportTestCases(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ExportTestCases(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TestCasesTracingConnection::ExportTestCases( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_cx::TestCasesConnection::ExportTestCases"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ExportTestCases(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ExportTestCases(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.h b/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.h index 4e02184f3d8d3..77a4c597f508f 100644 --- a/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.h +++ b/google/cloud/dialogflow_cx/internal/test_cases_tracing_connection.h @@ -63,12 +63,12 @@ class TestCasesTracingConnection : public dialogflow_cx::TestCasesConnection { request) override; StatusOr RunTestCase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request) override; future> - RunTestCase(google::cloud::ExperimentalTag, + RunTestCase(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -77,12 +77,12 @@ class TestCasesTracingConnection : public dialogflow_cx::TestCasesConnection { request) override; StatusOr BatchRunTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& request) override; future> - BatchRunTestCases(google::cloud::ExperimentalTag, + BatchRunTestCases(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -96,12 +96,12 @@ class TestCasesTracingConnection : public dialogflow_cx::TestCasesConnection { override; StatusOr ImportTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request) override; future> - ImportTestCases(google::cloud::ExperimentalTag, + ImportTestCases(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -110,12 +110,12 @@ class TestCasesTracingConnection : public dialogflow_cx::TestCasesConnection { override; StatusOr ExportTestCases( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request) override; future> - ExportTestCases(google::cloud::ExperimentalTag, + ExportTestCases(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/dialogflow_cx/internal/versions_connection_impl.cc b/google/cloud/dialogflow_cx/internal/versions_connection_impl.cc index 756c3b50baec0..4aa541a378a6d 100644 --- a/google/cloud/dialogflow_cx/internal/versions_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/versions_connection_impl.cc @@ -153,7 +153,7 @@ VersionsConnectionImpl::CreateVersion( } StatusOr VersionsConnectionImpl::CreateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -169,8 +169,7 @@ StatusOr VersionsConnectionImpl::CreateVersion( future> VersionsConnectionImpl::CreateVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is> VersionsConnectionImpl::LoadVersion( } StatusOr VersionsConnectionImpl::LoadVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -290,8 +289,7 @@ StatusOr VersionsConnectionImpl::LoadVersion( } future> VersionsConnectionImpl::LoadVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( diff --git a/google/cloud/dialogflow_cx/internal/versions_connection_impl.h b/google/cloud/dialogflow_cx/internal/versions_connection_impl.h index dedc874b5db53..11d6f0a77f575 100644 --- a/google/cloud/dialogflow_cx/internal/versions_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/versions_connection_impl.h @@ -63,12 +63,12 @@ class VersionsConnectionImpl : public dialogflow_cx::VersionsConnection { override; StatusOr CreateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request) override; future> CreateVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr UpdateVersion( @@ -84,12 +84,12 @@ class VersionsConnectionImpl : public dialogflow_cx::VersionsConnection { override; StatusOr LoadVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request) override; future> LoadVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/dialogflow_cx/internal/versions_tracing_connection.cc b/google/cloud/dialogflow_cx/internal/versions_tracing_connection.cc index 59be8f23e3f82..86ca51bdd0374 100644 --- a/google/cloud/dialogflow_cx/internal/versions_tracing_connection.cc +++ b/google/cloud/dialogflow_cx/internal/versions_tracing_connection.cc @@ -65,26 +65,23 @@ VersionsTracingConnection::CreateVersion( StatusOr VersionsTracingConnection::CreateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::VersionsConnection::CreateVersion"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateVersion(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateVersion(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VersionsTracingConnection::CreateVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_cx::VersionsConnection::CreateVersion"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateVersion(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateVersion(ExperimentalTag{}, operation)); } StatusOr @@ -114,26 +111,23 @@ VersionsTracingConnection::LoadVersion( } StatusOr VersionsTracingConnection::LoadVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request) { auto span = internal::MakeSpan("dialogflow_cx::VersionsConnection::LoadVersion"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->LoadVersion(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->LoadVersion(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VersionsTracingConnection::LoadVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_cx::VersionsConnection::LoadVersion"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->LoadVersion(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->LoadVersion(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/dialogflow_cx/internal/versions_tracing_connection.h b/google/cloud/dialogflow_cx/internal/versions_tracing_connection.h index 192ed00b8803a..1e3d13a05dea4 100644 --- a/google/cloud/dialogflow_cx/internal/versions_tracing_connection.h +++ b/google/cloud/dialogflow_cx/internal/versions_tracing_connection.h @@ -51,12 +51,12 @@ class VersionsTracingConnection : public dialogflow_cx::VersionsConnection { override; StatusOr CreateVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request) override; future> CreateVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr UpdateVersion( @@ -72,12 +72,12 @@ class VersionsTracingConnection : public dialogflow_cx::VersionsConnection { override; StatusOr LoadVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request) override; future> LoadVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/dialogflow_cx/mocks/mock_agents_connection.h b/google/cloud/dialogflow_cx/mocks/mock_agents_connection.h index 8deab9ed8b5f8..9c8fba14edabc 100644 --- a/google/cloud/dialogflow_cx/mocks/mock_agents_connection.h +++ b/google/cloud/dialogflow_cx/mocks/mock_agents_connection.h @@ -79,15 +79,14 @@ class MockAgentsConnection : public dialogflow_cx::AgentsConnection { MOCK_METHOD( StatusOr, ExportAgent, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request), (override)); MOCK_METHOD( future>, ExportAgent, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -97,12 +96,12 @@ class MockAgentsConnection : public dialogflow_cx::AgentsConnection { MOCK_METHOD( StatusOr, RestoreAgent, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request), (override)); MOCK_METHOD(future>, RestoreAgent, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/dialogflow_cx/mocks/mock_entity_types_connection.h b/google/cloud/dialogflow_cx/mocks/mock_entity_types_connection.h index 4b016023ce7cf..29cafcc592e32 100644 --- a/google/cloud/dialogflow_cx/mocks/mock_entity_types_connection.h +++ b/google/cloud/dialogflow_cx/mocks/mock_entity_types_connection.h @@ -84,7 +84,7 @@ class MockEntityTypesConnection : public dialogflow_cx::EntityTypesConnection { MOCK_METHOD( StatusOr, ExportEntityTypes, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& request), (override)); @@ -93,8 +93,7 @@ class MockEntityTypesConnection : public dialogflow_cx::EntityTypesConnection { future>, ExportEntityTypes, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -107,7 +106,7 @@ class MockEntityTypesConnection : public dialogflow_cx::EntityTypesConnection { MOCK_METHOD( StatusOr, ImportEntityTypes, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& request), (override)); @@ -116,8 +115,7 @@ class MockEntityTypesConnection : public dialogflow_cx::EntityTypesConnection { future>, ImportEntityTypes, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/dialogflow_cx/mocks/mock_environments_connection.h b/google/cloud/dialogflow_cx/mocks/mock_environments_connection.h index 6d7788fabc7f1..d5015ebdead73 100644 --- a/google/cloud/dialogflow_cx/mocks/mock_environments_connection.h +++ b/google/cloud/dialogflow_cx/mocks/mock_environments_connection.h @@ -67,14 +67,14 @@ class MockEnvironmentsConnection MOCK_METHOD( StatusOr, CreateEnvironment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& request), (override)); MOCK_METHOD(future>, CreateEnvironment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -87,14 +87,14 @@ class MockEnvironmentsConnection MOCK_METHOD( StatusOr, UpdateEnvironment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& request), (override)); MOCK_METHOD(future>, UpdateEnvironment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -121,7 +121,7 @@ class MockEnvironmentsConnection MOCK_METHOD( StatusOr, RunContinuousTest, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& request), (override)); @@ -130,8 +130,7 @@ class MockEnvironmentsConnection future>, RunContinuousTest, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -149,15 +148,14 @@ class MockEnvironmentsConnection MOCK_METHOD( StatusOr, DeployFlow, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request), (override)); MOCK_METHOD( future>, DeployFlow, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/dialogflow_cx/mocks/mock_flows_connection.h b/google/cloud/dialogflow_cx/mocks/mock_flows_connection.h index f4b5e4f860287..d382c1b93d54f 100644 --- a/google/cloud/dialogflow_cx/mocks/mock_flows_connection.h +++ b/google/cloud/dialogflow_cx/mocks/mock_flows_connection.h @@ -77,12 +77,12 @@ class MockFlowsConnection : public dialogflow_cx::FlowsConnection { MOCK_METHOD( StatusOr, TrainFlow, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request), (override)); MOCK_METHOD(future>, TrainFlow, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -107,15 +107,14 @@ class MockFlowsConnection : public dialogflow_cx::FlowsConnection { MOCK_METHOD( StatusOr, ImportFlow, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request), (override)); MOCK_METHOD( future>, ImportFlow, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -126,15 +125,14 @@ class MockFlowsConnection : public dialogflow_cx::FlowsConnection { MOCK_METHOD( StatusOr, ExportFlow, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request), (override)); MOCK_METHOD( future>, ExportFlow, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/dialogflow_cx/mocks/mock_intents_connection.h b/google/cloud/dialogflow_cx/mocks/mock_intents_connection.h index c5b80e094fa21..a796674f3564d 100644 --- a/google/cloud/dialogflow_cx/mocks/mock_intents_connection.h +++ b/google/cloud/dialogflow_cx/mocks/mock_intents_connection.h @@ -80,7 +80,7 @@ class MockIntentsConnection : public dialogflow_cx::IntentsConnection { MOCK_METHOD( StatusOr, ImportIntents, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request), (override)); @@ -88,8 +88,7 @@ class MockIntentsConnection : public dialogflow_cx::IntentsConnection { future< StatusOr>, ImportIntents, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -101,7 +100,7 @@ class MockIntentsConnection : public dialogflow_cx::IntentsConnection { MOCK_METHOD( StatusOr, ExportIntents, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request), (override)); @@ -109,8 +108,7 @@ class MockIntentsConnection : public dialogflow_cx::IntentsConnection { future< StatusOr>, ExportIntents, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/dialogflow_cx/mocks/mock_test_cases_connection.h b/google/cloud/dialogflow_cx/mocks/mock_test_cases_connection.h index 5bb6f6c09f133..441e5058bacbf 100644 --- a/google/cloud/dialogflow_cx/mocks/mock_test_cases_connection.h +++ b/google/cloud/dialogflow_cx/mocks/mock_test_cases_connection.h @@ -80,15 +80,14 @@ class MockTestCasesConnection : public dialogflow_cx::TestCasesConnection { MOCK_METHOD( StatusOr, RunTestCase, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request), (override)); MOCK_METHOD( future>, RunTestCase, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -101,7 +100,7 @@ class MockTestCasesConnection : public dialogflow_cx::TestCasesConnection { MOCK_METHOD( StatusOr, BatchRunTestCases, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& request), (override)); @@ -110,8 +109,7 @@ class MockTestCasesConnection : public dialogflow_cx::TestCasesConnection { future>, BatchRunTestCases, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -130,7 +128,7 @@ class MockTestCasesConnection : public dialogflow_cx::TestCasesConnection { (override)); MOCK_METHOD(StatusOr, ImportTestCases, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request), (override)); @@ -139,8 +137,7 @@ class MockTestCasesConnection : public dialogflow_cx::TestCasesConnection { future< StatusOr>, ImportTestCases, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -152,7 +149,7 @@ class MockTestCasesConnection : public dialogflow_cx::TestCasesConnection { (override)); MOCK_METHOD(StatusOr, ExportTestCases, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request), (override)); @@ -161,8 +158,7 @@ class MockTestCasesConnection : public dialogflow_cx::TestCasesConnection { future< StatusOr>, ExportTestCases, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/dialogflow_cx/mocks/mock_versions_connection.h b/google/cloud/dialogflow_cx/mocks/mock_versions_connection.h index 84fbc7e10ff70..95d481e9f4dd4 100644 --- a/google/cloud/dialogflow_cx/mocks/mock_versions_connection.h +++ b/google/cloud/dialogflow_cx/mocks/mock_versions_connection.h @@ -64,13 +64,13 @@ class MockVersionsConnection : public dialogflow_cx::VersionsConnection { MOCK_METHOD( StatusOr, CreateVersion, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request), (override)); MOCK_METHOD(future>, CreateVersion, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -91,12 +91,12 @@ class MockVersionsConnection : public dialogflow_cx::VersionsConnection { MOCK_METHOD( StatusOr, LoadVersion, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request), (override)); MOCK_METHOD(future>, LoadVersion, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/dialogflow_es/internal/agents_connection_impl.cc b/google/cloud/dialogflow_es/internal/agents_connection_impl.cc index 5b0bb51a30f35..412124a117686 100644 --- a/google/cloud/dialogflow_es/internal/agents_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/agents_connection_impl.cc @@ -174,7 +174,7 @@ future> AgentsConnectionImpl::TrainAgent( } StatusOr AgentsConnectionImpl::TrainAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::TrainAgentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -188,8 +188,7 @@ StatusOr AgentsConnectionImpl::TrainAgent( } future> AgentsConnectionImpl::TrainAgent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -262,7 +261,7 @@ AgentsConnectionImpl::ExportAgent( } StatusOr AgentsConnectionImpl::ExportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::ExportAgentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -277,8 +276,7 @@ StatusOr AgentsConnectionImpl::ExportAgent( future> AgentsConnectionImpl::ExportAgent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future< @@ -351,7 +349,7 @@ future> AgentsConnectionImpl::ImportAgent( } StatusOr AgentsConnectionImpl::ImportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::ImportAgentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -365,8 +363,7 @@ StatusOr AgentsConnectionImpl::ImportAgent( } future> AgentsConnectionImpl::ImportAgent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -438,7 +435,7 @@ future> AgentsConnectionImpl::RestoreAgent( } StatusOr AgentsConnectionImpl::RestoreAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::RestoreAgentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -453,8 +450,7 @@ StatusOr AgentsConnectionImpl::RestoreAgent( } future> AgentsConnectionImpl::RestoreAgent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( diff --git a/google/cloud/dialogflow_es/internal/agents_connection_impl.h b/google/cloud/dialogflow_es/internal/agents_connection_impl.h index c2480b6c1e167..df7cb55f4eb3a 100644 --- a/google/cloud/dialogflow_es/internal/agents_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/agents_connection_impl.h @@ -67,11 +67,11 @@ class AgentsConnectionImpl : public dialogflow_es::AgentsConnection { google::cloud::dialogflow::v2::TrainAgentRequest const& request) override; StatusOr TrainAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::TrainAgentRequest const& request) override; future> TrainAgent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -79,12 +79,12 @@ class AgentsConnectionImpl : public dialogflow_es::AgentsConnection { override; StatusOr ExportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::ExportAgentRequest const& request) override; future> - ExportAgent(google::cloud::ExperimentalTag, + ExportAgent(ExperimentalTag, google::longrunning::Operation const& operation) override; future> ImportAgent( @@ -92,12 +92,12 @@ class AgentsConnectionImpl : public dialogflow_es::AgentsConnection { override; StatusOr ImportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::ImportAgentRequest const& request) override; future> ImportAgent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RestoreAgent( @@ -105,12 +105,12 @@ class AgentsConnectionImpl : public dialogflow_es::AgentsConnection { override; StatusOr RestoreAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::RestoreAgentRequest const& request) override; future> RestoreAgent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetValidationResult( diff --git a/google/cloud/dialogflow_es/internal/agents_tracing_connection.cc b/google/cloud/dialogflow_es/internal/agents_tracing_connection.cc index 2bee73fa3234c..2de2782b2569a 100644 --- a/google/cloud/dialogflow_es/internal/agents_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/agents_tracing_connection.cc @@ -76,23 +76,20 @@ future> AgentsTracingConnection::TrainAgent( } StatusOr AgentsTracingConnection::TrainAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::TrainAgentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::AgentsConnection::TrainAgent"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->TrainAgent(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->TrainAgent(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AgentsTracingConnection::TrainAgent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_es::AgentsConnection::TrainAgent"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->TrainAgent(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->TrainAgent(ExperimentalTag{}, operation)); } future> @@ -105,26 +102,23 @@ AgentsTracingConnection::ExportAgent( } StatusOr AgentsTracingConnection::ExportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ExportAgentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::AgentsConnection::ExportAgent"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportAgent(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ExportAgent(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AgentsTracingConnection::ExportAgent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_es::AgentsConnection::ExportAgent"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ExportAgent(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ExportAgent(ExperimentalTag{}, operation)); } future> AgentsTracingConnection::ImportAgent( @@ -136,25 +130,22 @@ future> AgentsTracingConnection::ImportAgent( } StatusOr AgentsTracingConnection::ImportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportAgentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::AgentsConnection::ImportAgent"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportAgent(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ImportAgent(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AgentsTracingConnection::ImportAgent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_es::AgentsConnection::ImportAgent"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ImportAgent(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ImportAgent(ExperimentalTag{}, operation)); } future> @@ -167,26 +158,23 @@ AgentsTracingConnection::RestoreAgent( } StatusOr AgentsTracingConnection::RestoreAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::RestoreAgentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::AgentsConnection::RestoreAgent"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RestoreAgent(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RestoreAgent(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AgentsTracingConnection::RestoreAgent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_es::AgentsConnection::RestoreAgent"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RestoreAgent(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RestoreAgent(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/dialogflow_es/internal/agents_tracing_connection.h b/google/cloud/dialogflow_es/internal/agents_tracing_connection.h index 6d50a451dc5ba..851a245b4aa10 100644 --- a/google/cloud/dialogflow_es/internal/agents_tracing_connection.h +++ b/google/cloud/dialogflow_es/internal/agents_tracing_connection.h @@ -55,11 +55,11 @@ class AgentsTracingConnection : public dialogflow_es::AgentsConnection { google::cloud::dialogflow::v2::TrainAgentRequest const& request) override; StatusOr TrainAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::TrainAgentRequest const& request) override; future> TrainAgent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -67,12 +67,12 @@ class AgentsTracingConnection : public dialogflow_es::AgentsConnection { override; StatusOr ExportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ExportAgentRequest const& request) override; future> - ExportAgent(google::cloud::ExperimentalTag, + ExportAgent(ExperimentalTag, google::longrunning::Operation const& operation) override; future> ImportAgent( @@ -80,12 +80,12 @@ class AgentsTracingConnection : public dialogflow_es::AgentsConnection { override; StatusOr ImportAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportAgentRequest const& request) override; future> ImportAgent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RestoreAgent( @@ -93,12 +93,12 @@ class AgentsTracingConnection : public dialogflow_es::AgentsConnection { override; StatusOr RestoreAgent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::RestoreAgentRequest const& request) override; future> RestoreAgent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetValidationResult( diff --git a/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.cc b/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.cc index 350589f5b5062..736fa45e62d8b 100644 --- a/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.cc @@ -111,7 +111,7 @@ ConversationDatasetsConnectionImpl::CreateConversationDataset( StatusOr ConversationDatasetsConnectionImpl::CreateConversationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -129,8 +129,7 @@ ConversationDatasetsConnectionImpl::CreateConversationDataset( future> ConversationDatasetsConnectionImpl::CreateConversationDataset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ConversationDatasetsConnectionImpl::DeleteConversationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -283,8 +282,7 @@ ConversationDatasetsConnectionImpl::DeleteConversationDataset( future> ConversationDatasetsConnectionImpl::DeleteConversationDataset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ConversationDatasetsConnectionImpl::ImportConversationData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::ImportConversationDataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -386,8 +384,7 @@ ConversationDatasetsConnectionImpl::ImportConversationData( future> ConversationDatasetsConnectionImpl::ImportConversationData( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateConversationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& request) override; future> CreateConversationDataset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -84,14 +84,14 @@ class ConversationDatasetsConnectionImpl request) override; StatusOr DeleteConversationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& request) override; future> DeleteConversationDataset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future ImportConversationData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::ImportConversationDataRequest const& request) override; future> ImportConversationData( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.cc b/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.cc index 0daf57ded94b0..2cf8e593f058d 100644 --- a/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.cc @@ -47,29 +47,27 @@ ConversationDatasetsTracingConnection::CreateConversationDataset( StatusOr ConversationDatasetsTracingConnection::CreateConversationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::ConversationDatasetsConnection::" "CreateConversationDataset"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateConversationDataset( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateConversationDataset(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ConversationDatasetsTracingConnection::CreateConversationDataset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::ConversationDatasetsConnection::" "CreateConversationDataset"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateConversationDataset( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateConversationDataset( + ExperimentalTag{}, operation)); } StatusOr @@ -110,30 +108,28 @@ ConversationDatasetsTracingConnection::DeleteConversationDataset( StatusOr ConversationDatasetsTracingConnection::DeleteConversationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::ConversationDatasetsConnection::" "DeleteConversationDataset"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteConversationDataset( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteConversationDataset(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ConversationDatasetsTracingConnection::DeleteConversationDataset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::ConversationDatasetsConnection::" "DeleteConversationDataset"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteConversationDataset( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteConversationDataset( + ExperimentalTag{}, operation)); } future ConversationDatasetsTracingConnection::ImportConversationData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportConversationDataRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::ConversationDatasetsConnection::ImportConversationData"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ImportConversationData( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->ImportConversationData(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConversationDatasetsTracingConnection::ImportConversationData( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::ConversationDatasetsConnection::ImportConversationData"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ImportConversationData( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ImportConversationData( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.h b/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.h index d11b025fed6ad..7c3bb7d20de6e 100644 --- a/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.h +++ b/google/cloud/dialogflow_es/internal/conversation_datasets_tracing_connection.h @@ -46,13 +46,13 @@ class ConversationDatasetsTracingConnection request) override; StatusOr CreateConversationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& request) override; future> CreateConversationDataset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -72,14 +72,14 @@ class ConversationDatasetsTracingConnection request) override; StatusOr DeleteConversationDataset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& request) override; future> DeleteConversationDataset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future ImportConversationData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportConversationDataRequest const& request) override; future> ImportConversationData( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.cc b/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.cc index 66cb969b15c84..f6fc2ca3acf18 100644 --- a/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.cc @@ -110,7 +110,7 @@ ConversationModelsConnectionImpl::CreateConversationModel( StatusOr ConversationModelsConnectionImpl::CreateConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::CreateConversationModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -128,8 +128,7 @@ ConversationModelsConnectionImpl::CreateConversationModel( future> ConversationModelsConnectionImpl::CreateConversationModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ConversationModelsConnectionImpl::DeleteConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::DeleteConversationModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -280,8 +279,7 @@ ConversationModelsConnectionImpl::DeleteConversationModel( future> ConversationModelsConnectionImpl::DeleteConversationModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ConversationModelsConnectionImpl::DeployConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::DeployConversationModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -383,8 +381,7 @@ ConversationModelsConnectionImpl::DeployConversationModel( future> ConversationModelsConnectionImpl::DeployConversationModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ConversationModelsConnectionImpl::UndeployConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::UndeployConversationModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -487,8 +484,7 @@ ConversationModelsConnectionImpl::UndeployConversationModel( future> ConversationModelsConnectionImpl::UndeployConversationModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ConversationModelsConnectionImpl::CreateConversationModelEvaluation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2:: CreateConversationModelEvaluationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -644,8 +640,7 @@ ConversationModelsConnectionImpl::CreateConversationModelEvaluation( future> ConversationModelsConnectionImpl::CreateConversationModelEvaluation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::CreateConversationModelRequest const& request) override; future> CreateConversationModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -84,14 +84,14 @@ class ConversationModelsConnectionImpl request) override; StatusOr DeleteConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::DeleteConversationModelRequest const& request) override; future> DeleteConversationModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future DeployConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::DeployConversationModelRequest const& request) override; future> DeployConversationModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future UndeployConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::UndeployConversationModelRequest const& request) override; future> UndeployConversationModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -144,13 +144,13 @@ class ConversationModelsConnectionImpl CreateConversationModelEvaluationRequest const& request) override; StatusOr CreateConversationModelEvaluation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2:: CreateConversationModelEvaluationRequest const& request) override; future> CreateConversationModelEvaluation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.cc b/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.cc index c591fd632939e..624d2c033a515 100644 --- a/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.cc @@ -46,27 +46,25 @@ ConversationModelsTracingConnection::CreateConversationModel( StatusOr ConversationModelsTracingConnection::CreateConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateConversationModelRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::ConversationModelsConnection::CreateConversationModel"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateConversationModel( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateConversationModel(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ConversationModelsTracingConnection::CreateConversationModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::ConversationModelsConnection::CreateConversationModel"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateConversationModel( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateConversationModel( + ExperimentalTag{}, operation)); } StatusOr @@ -104,28 +102,26 @@ ConversationModelsTracingConnection::DeleteConversationModel( StatusOr ConversationModelsTracingConnection::DeleteConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteConversationModelRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::ConversationModelsConnection::DeleteConversationModel"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteConversationModel( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteConversationModel(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ConversationModelsTracingConnection::DeleteConversationModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::ConversationModelsConnection::DeleteConversationModel"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteConversationModel( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteConversationModel( + ExperimentalTag{}, operation)); } future ConversationModelsTracingConnection::DeployConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeployConversationModelRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::ConversationModelsConnection::DeployConversationModel"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeployConversationModel( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeployConversationModel(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ConversationModelsTracingConnection::DeployConversationModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::ConversationModelsConnection::DeployConversationModel"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeployConversationModel( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeployConversationModel( + ExperimentalTag{}, operation)); } future ConversationModelsTracingConnection::UndeployConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::UndeployConversationModelRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::ConversationModelsConnection::UndeployConversationModel"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UndeployConversationModel( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UndeployConversationModel(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ConversationModelsTracingConnection::UndeployConversationModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::ConversationModelsConnection::UndeployConversationModel"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UndeployConversationModel( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UndeployConversationModel( + ExperimentalTag{}, operation)); } StatusOr @@ -244,29 +236,28 @@ ConversationModelsTracingConnection::CreateConversationModelEvaluation( StatusOr ConversationModelsTracingConnection::CreateConversationModelEvaluation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2:: CreateConversationModelEvaluationRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::ConversationModelsConnection::" "CreateConversationModelEvaluation"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateConversationModelEvaluation( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateConversationModelEvaluation(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> ConversationModelsTracingConnection::CreateConversationModelEvaluation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::ConversationModelsConnection::" "CreateConversationModelEvaluation"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateConversationModelEvaluation( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->CreateConversationModelEvaluation(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.h b/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.h index a3707f171668e..d51b5a605d64b 100644 --- a/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.h +++ b/google/cloud/dialogflow_es/internal/conversation_models_tracing_connection.h @@ -46,13 +46,13 @@ class ConversationModelsTracingConnection request) override; StatusOr CreateConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateConversationModelRequest const& request) override; future> CreateConversationModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -72,14 +72,14 @@ class ConversationModelsTracingConnection request) override; StatusOr DeleteConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteConversationModelRequest const& request) override; future> DeleteConversationModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future DeployConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeployConversationModelRequest const& request) override; future> DeployConversationModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future UndeployConversationModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::UndeployConversationModelRequest const& request) override; future> UndeployConversationModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -132,13 +132,13 @@ class ConversationModelsTracingConnection CreateConversationModelEvaluationRequest const& request) override; StatusOr CreateConversationModelEvaluation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2:: CreateConversationModelEvaluationRequest const& request) override; future> CreateConversationModelEvaluation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.cc b/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.cc index 01e8e4eb9deb8..1030ec23db083 100644 --- a/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.cc @@ -212,7 +212,7 @@ ConversationProfilesConnectionImpl::SetSuggestionFeatureConfig( StatusOr ConversationProfilesConnectionImpl::SetSuggestionFeatureConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -229,8 +229,7 @@ ConversationProfilesConnectionImpl::SetSuggestionFeatureConfig( future> ConversationProfilesConnectionImpl::SetSuggestionFeatureConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ConversationProfilesConnectionImpl::ClearSuggestionFeatureConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -325,8 +324,7 @@ ConversationProfilesConnectionImpl::ClearSuggestionFeatureConfig( future> ConversationProfilesConnectionImpl::ClearSuggestionFeatureConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SetSuggestionFeatureConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& request) override; future> SetSuggestionFeatureConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -97,13 +97,13 @@ class ConversationProfilesConnectionImpl request) override; StatusOr ClearSuggestionFeatureConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& request) override; future> ClearSuggestionFeatureConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.cc b/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.cc index 64d34db6d4628..961e8648dd78b 100644 --- a/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.cc @@ -102,29 +102,27 @@ ConversationProfilesTracingConnection::SetSuggestionFeatureConfig( StatusOr ConversationProfilesTracingConnection::SetSuggestionFeatureConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::ConversationProfilesConnection::" "SetSuggestionFeatureConfig"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SetSuggestionFeatureConfig( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->SetSuggestionFeatureConfig(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ConversationProfilesTracingConnection::SetSuggestionFeatureConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::ConversationProfilesConnection::" "SetSuggestionFeatureConfig"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SetSuggestionFeatureConfig( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetSuggestionFeatureConfig( + ExperimentalTag{}, operation)); } future> @@ -141,29 +139,28 @@ ConversationProfilesTracingConnection::ClearSuggestionFeatureConfig( StatusOr ConversationProfilesTracingConnection::ClearSuggestionFeatureConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::ConversationProfilesConnection::" "ClearSuggestionFeatureConfig"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ClearSuggestionFeatureConfig( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->ClearSuggestionFeatureConfig(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> ConversationProfilesTracingConnection::ClearSuggestionFeatureConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::ConversationProfilesConnection::" "ClearSuggestionFeatureConfig"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ClearSuggestionFeatureConfig( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->ClearSuggestionFeatureConfig(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.h b/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.h index 11e812dcf459e..e10035ad01992 100644 --- a/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.h +++ b/google/cloud/dialogflow_es/internal/conversation_profiles_tracing_connection.h @@ -70,13 +70,13 @@ class ConversationProfilesTracingConnection request) override; StatusOr SetSuggestionFeatureConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& request) override; future> SetSuggestionFeatureConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -85,13 +85,13 @@ class ConversationProfilesTracingConnection request) override; StatusOr ClearSuggestionFeatureConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& request) override; future> ClearSuggestionFeatureConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_es/internal/documents_connection_impl.cc b/google/cloud/dialogflow_es/internal/documents_connection_impl.cc index f561756ac395f..95a6419601f25 100644 --- a/google/cloud/dialogflow_es/internal/documents_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/documents_connection_impl.cc @@ -153,7 +153,7 @@ DocumentsConnectionImpl::CreateDocument( StatusOr DocumentsConnectionImpl::CreateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::CreateDocumentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -169,8 +169,7 @@ DocumentsConnectionImpl::CreateDocument( future> DocumentsConnectionImpl::CreateDocument( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DocumentsConnectionImpl::ImportDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::ImportDocumentsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -263,8 +262,7 @@ DocumentsConnectionImpl::ImportDocuments( future> DocumentsConnectionImpl::ImportDocuments( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DocumentsConnectionImpl::DeleteDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::DeleteDocumentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -357,8 +355,7 @@ DocumentsConnectionImpl::DeleteDocument( future> DocumentsConnectionImpl::DeleteDocument( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DocumentsConnectionImpl::UpdateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::UpdateDocumentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -451,8 +448,7 @@ DocumentsConnectionImpl::UpdateDocument( future> DocumentsConnectionImpl::UpdateDocument( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DocumentsConnectionImpl::ReloadDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::ReloadDocumentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -544,8 +540,7 @@ DocumentsConnectionImpl::ReloadDocument( future> DocumentsConnectionImpl::ReloadDocument( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DocumentsConnectionImpl::ExportDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::ExportDocumentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -637,8 +632,7 @@ DocumentsConnectionImpl::ExportDocument( future> DocumentsConnectionImpl::ExportDocument( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::CreateDocumentRequest const& request) override; future> CreateDocument( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -76,12 +76,12 @@ class DocumentsConnectionImpl : public dialogflow_es::DocumentsConnection { request) override; StatusOr ImportDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::ImportDocumentsRequest const& request) override; future> - ImportDocuments(google::cloud::ExperimentalTag, + ImportDocuments(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -89,12 +89,12 @@ class DocumentsConnectionImpl : public dialogflow_es::DocumentsConnection { request) override; StatusOr DeleteDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::DeleteDocumentRequest const& request) override; future> - DeleteDocument(google::cloud::ExperimentalTag, + DeleteDocument(ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateDocument( @@ -102,12 +102,12 @@ class DocumentsConnectionImpl : public dialogflow_es::DocumentsConnection { override; StatusOr UpdateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::UpdateDocumentRequest const& request) override; future> UpdateDocument( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ReloadDocument( @@ -115,12 +115,12 @@ class DocumentsConnectionImpl : public dialogflow_es::DocumentsConnection { override; StatusOr ReloadDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::ReloadDocumentRequest const& request) override; future> ReloadDocument( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ExportDocument( @@ -128,12 +128,12 @@ class DocumentsConnectionImpl : public dialogflow_es::DocumentsConnection { override; StatusOr ExportDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::ExportDocumentRequest const& request) override; future> ExportDocument( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_es/internal/documents_tracing_connection.cc b/google/cloud/dialogflow_es/internal/documents_tracing_connection.cc index 23694f688a594..8f3e4b61bc323 100644 --- a/google/cloud/dialogflow_es/internal/documents_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/documents_tracing_connection.cc @@ -64,26 +64,23 @@ DocumentsTracingConnection::CreateDocument( StatusOr DocumentsTracingConnection::CreateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateDocumentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::CreateDocument"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateDocument(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateDocument(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DocumentsTracingConnection::CreateDocument( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::CreateDocument"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateDocument(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateDocument(ExperimentalTag{}, operation)); } future> @@ -97,26 +94,23 @@ DocumentsTracingConnection::ImportDocuments( StatusOr DocumentsTracingConnection::ImportDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportDocumentsRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::ImportDocuments"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportDocuments(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ImportDocuments(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DocumentsTracingConnection::ImportDocuments( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::ImportDocuments"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ImportDocuments(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ImportDocuments(ExperimentalTag{}, operation)); } future> @@ -130,26 +124,23 @@ DocumentsTracingConnection::DeleteDocument( StatusOr DocumentsTracingConnection::DeleteDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteDocumentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::DeleteDocument"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteDocument(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteDocument(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DocumentsTracingConnection::DeleteDocument( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::DeleteDocument"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteDocument(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteDocument(ExperimentalTag{}, operation)); } future> @@ -163,26 +154,23 @@ DocumentsTracingConnection::UpdateDocument( StatusOr DocumentsTracingConnection::UpdateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::UpdateDocumentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::UpdateDocument"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateDocument(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateDocument(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DocumentsTracingConnection::UpdateDocument( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::UpdateDocument"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateDocument(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateDocument(ExperimentalTag{}, operation)); } future> @@ -196,26 +184,23 @@ DocumentsTracingConnection::ReloadDocument( StatusOr DocumentsTracingConnection::ReloadDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ReloadDocumentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::ReloadDocument"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ReloadDocument(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ReloadDocument(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DocumentsTracingConnection::ReloadDocument( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::ReloadDocument"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ReloadDocument(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ReloadDocument(ExperimentalTag{}, operation)); } future> @@ -229,26 +214,23 @@ DocumentsTracingConnection::ExportDocument( StatusOr DocumentsTracingConnection::ExportDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ExportDocumentRequest const& request) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::ExportDocument"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportDocument(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ExportDocument(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DocumentsTracingConnection::ExportDocument( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("dialogflow_es::DocumentsConnection::ExportDocument"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ExportDocument(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ExportDocument(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/dialogflow_es/internal/documents_tracing_connection.h b/google/cloud/dialogflow_es/internal/documents_tracing_connection.h index 4a289f5c7f717..5e0cee3ba755b 100644 --- a/google/cloud/dialogflow_es/internal/documents_tracing_connection.h +++ b/google/cloud/dialogflow_es/internal/documents_tracing_connection.h @@ -51,12 +51,12 @@ class DocumentsTracingConnection : public dialogflow_es::DocumentsConnection { override; StatusOr CreateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateDocumentRequest const& request) override; future> CreateDocument( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -64,12 +64,12 @@ class DocumentsTracingConnection : public dialogflow_es::DocumentsConnection { request) override; StatusOr ImportDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportDocumentsRequest const& request) override; future> - ImportDocuments(google::cloud::ExperimentalTag, + ImportDocuments(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -77,12 +77,12 @@ class DocumentsTracingConnection : public dialogflow_es::DocumentsConnection { request) override; StatusOr DeleteDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteDocumentRequest const& request) override; future> - DeleteDocument(google::cloud::ExperimentalTag, + DeleteDocument(ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateDocument( @@ -90,12 +90,12 @@ class DocumentsTracingConnection : public dialogflow_es::DocumentsConnection { override; StatusOr UpdateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::UpdateDocumentRequest const& request) override; future> UpdateDocument( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ReloadDocument( @@ -103,12 +103,12 @@ class DocumentsTracingConnection : public dialogflow_es::DocumentsConnection { override; StatusOr ReloadDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ReloadDocumentRequest const& request) override; future> ReloadDocument( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ExportDocument( @@ -116,12 +116,12 @@ class DocumentsTracingConnection : public dialogflow_es::DocumentsConnection { override; StatusOr ExportDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ExportDocumentRequest const& request) override; future> ExportDocument( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_es/internal/entity_types_connection_impl.cc b/google/cloud/dialogflow_es/internal/entity_types_connection_impl.cc index b42b73fe4d867..1cf1ce68d94e2 100644 --- a/google/cloud/dialogflow_es/internal/entity_types_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/entity_types_connection_impl.cc @@ -200,7 +200,7 @@ EntityTypesConnectionImpl::BatchUpdateEntityTypes( StatusOr EntityTypesConnectionImpl::BatchUpdateEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -217,8 +217,7 @@ EntityTypesConnectionImpl::BatchUpdateEntityTypes( future> EntityTypesConnectionImpl::BatchUpdateEntityTypes( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future EntityTypesConnectionImpl::BatchDeleteEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -312,8 +311,7 @@ EntityTypesConnectionImpl::BatchDeleteEntityTypes( future> EntityTypesConnectionImpl::BatchDeleteEntityTypes( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -388,7 +386,7 @@ EntityTypesConnectionImpl::BatchCreateEntities( StatusOr EntityTypesConnectionImpl::BatchCreateEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -404,8 +402,7 @@ EntityTypesConnectionImpl::BatchCreateEntities( future> EntityTypesConnectionImpl::BatchCreateEntities( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -480,7 +477,7 @@ EntityTypesConnectionImpl::BatchUpdateEntities( StatusOr EntityTypesConnectionImpl::BatchUpdateEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -496,8 +493,7 @@ EntityTypesConnectionImpl::BatchUpdateEntities( future> EntityTypesConnectionImpl::BatchUpdateEntities( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -572,7 +568,7 @@ EntityTypesConnectionImpl::BatchDeleteEntities( StatusOr EntityTypesConnectionImpl::BatchDeleteEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -588,8 +584,7 @@ EntityTypesConnectionImpl::BatchDeleteEntities( future> EntityTypesConnectionImpl::BatchDeleteEntities( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( diff --git a/google/cloud/dialogflow_es/internal/entity_types_connection_impl.h b/google/cloud/dialogflow_es/internal/entity_types_connection_impl.h index 71c18c31bde00..e2fa1dd923ea3 100644 --- a/google/cloud/dialogflow_es/internal/entity_types_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/entity_types_connection_impl.h @@ -77,14 +77,14 @@ class EntityTypesConnectionImpl : public dialogflow_es::EntityTypesConnection { request) override; StatusOr BatchUpdateEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& request) override; future< StatusOr> BatchUpdateEntityTypes( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> BatchDeleteEntityTypes( @@ -92,12 +92,12 @@ class EntityTypesConnectionImpl : public dialogflow_es::EntityTypesConnection { request) override; StatusOr BatchDeleteEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& request) override; future> BatchDeleteEntityTypes( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> BatchCreateEntities( @@ -105,12 +105,12 @@ class EntityTypesConnectionImpl : public dialogflow_es::EntityTypesConnection { override; StatusOr BatchCreateEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request) override; future> BatchCreateEntities( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> BatchUpdateEntities( @@ -118,12 +118,12 @@ class EntityTypesConnectionImpl : public dialogflow_es::EntityTypesConnection { override; StatusOr BatchUpdateEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request) override; future> BatchUpdateEntities( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> BatchDeleteEntities( @@ -131,12 +131,12 @@ class EntityTypesConnectionImpl : public dialogflow_es::EntityTypesConnection { override; StatusOr BatchDeleteEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request) override; future> BatchDeleteEntities( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.cc b/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.cc index 4ec53dc196453..9c7b217d8a4ec 100644 --- a/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.cc @@ -93,27 +93,25 @@ EntityTypesTracingConnection::BatchUpdateEntityTypes( StatusOr EntityTypesTracingConnection::BatchUpdateEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::EntityTypesConnection::BatchUpdateEntityTypes"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->BatchUpdateEntityTypes( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->BatchUpdateEntityTypes(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EntityTypesTracingConnection::BatchUpdateEntityTypes( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::EntityTypesConnection::BatchUpdateEntityTypes"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->BatchUpdateEntityTypes( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchUpdateEntityTypes( + ExperimentalTag{}, operation)); } future> @@ -129,27 +127,25 @@ EntityTypesTracingConnection::BatchDeleteEntityTypes( StatusOr EntityTypesTracingConnection::BatchDeleteEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::EntityTypesConnection::BatchDeleteEntityTypes"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->BatchDeleteEntityTypes( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->BatchDeleteEntityTypes(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EntityTypesTracingConnection::BatchDeleteEntityTypes( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::EntityTypesConnection::BatchDeleteEntityTypes"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->BatchDeleteEntityTypes( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchDeleteEntityTypes( + ExperimentalTag{}, operation)); } future> @@ -164,26 +160,24 @@ EntityTypesTracingConnection::BatchCreateEntities( StatusOr EntityTypesTracingConnection::BatchCreateEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::EntityTypesConnection::BatchCreateEntities"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BatchCreateEntities(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->BatchCreateEntities(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EntityTypesTracingConnection::BatchCreateEntities( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::EntityTypesConnection::BatchCreateEntities"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->BatchCreateEntities(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchCreateEntities( + ExperimentalTag{}, operation)); } future> @@ -198,26 +192,24 @@ EntityTypesTracingConnection::BatchUpdateEntities( StatusOr EntityTypesTracingConnection::BatchUpdateEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::EntityTypesConnection::BatchUpdateEntities"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BatchUpdateEntities(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->BatchUpdateEntities(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EntityTypesTracingConnection::BatchUpdateEntities( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::EntityTypesConnection::BatchUpdateEntities"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->BatchUpdateEntities(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchUpdateEntities( + ExperimentalTag{}, operation)); } future> @@ -232,26 +224,24 @@ EntityTypesTracingConnection::BatchDeleteEntities( StatusOr EntityTypesTracingConnection::BatchDeleteEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::EntityTypesConnection::BatchDeleteEntities"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BatchDeleteEntities(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->BatchDeleteEntities(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EntityTypesTracingConnection::BatchDeleteEntities( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::EntityTypesConnection::BatchDeleteEntities"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->BatchDeleteEntities(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchDeleteEntities( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.h b/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.h index b3b67c85030fe..4d90903a2777b 100644 --- a/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.h +++ b/google/cloud/dialogflow_es/internal/entity_types_tracing_connection.h @@ -66,14 +66,14 @@ class EntityTypesTracingConnection request) override; StatusOr BatchUpdateEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& request) override; future< StatusOr> BatchUpdateEntityTypes( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> BatchDeleteEntityTypes( @@ -81,12 +81,12 @@ class EntityTypesTracingConnection request) override; StatusOr BatchDeleteEntityTypes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& request) override; future> BatchDeleteEntityTypes( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> BatchCreateEntities( @@ -94,12 +94,12 @@ class EntityTypesTracingConnection override; StatusOr BatchCreateEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request) override; future> BatchCreateEntities( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> BatchUpdateEntities( @@ -107,12 +107,12 @@ class EntityTypesTracingConnection override; StatusOr BatchUpdateEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request) override; future> BatchUpdateEntities( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> BatchDeleteEntities( @@ -120,12 +120,12 @@ class EntityTypesTracingConnection override; StatusOr BatchDeleteEntities( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request) override; future> BatchDeleteEntities( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_es/internal/intents_connection_impl.cc b/google/cloud/dialogflow_es/internal/intents_connection_impl.cc index 221cbaa43a72b..71b501ff2cb82 100644 --- a/google/cloud/dialogflow_es/internal/intents_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/intents_connection_impl.cc @@ -196,7 +196,7 @@ IntentsConnectionImpl::BatchUpdateIntents( StatusOr IntentsConnectionImpl::BatchUpdateIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -212,8 +212,7 @@ IntentsConnectionImpl::BatchUpdateIntents( future> IntentsConnectionImpl::BatchUpdateIntents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future< @@ -289,7 +288,7 @@ IntentsConnectionImpl::BatchDeleteIntents( StatusOr IntentsConnectionImpl::BatchDeleteIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -305,8 +304,7 @@ IntentsConnectionImpl::BatchDeleteIntents( future> IntentsConnectionImpl::BatchDeleteIntents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( diff --git a/google/cloud/dialogflow_es/internal/intents_connection_impl.h b/google/cloud/dialogflow_es/internal/intents_connection_impl.h index 89ba0bc47d4cd..d4dd99f034116 100644 --- a/google/cloud/dialogflow_es/internal/intents_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/intents_connection_impl.h @@ -74,12 +74,12 @@ class IntentsConnectionImpl : public dialogflow_es::IntentsConnection { override; StatusOr BatchUpdateIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request) override; future> - BatchUpdateIntents(google::cloud::ExperimentalTag, + BatchUpdateIntents(ExperimentalTag, google::longrunning::Operation const& operation) override; future> BatchDeleteIntents( @@ -87,12 +87,12 @@ class IntentsConnectionImpl : public dialogflow_es::IntentsConnection { override; StatusOr BatchDeleteIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request) override; future> BatchDeleteIntents( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_es/internal/intents_tracing_connection.cc b/google/cloud/dialogflow_es/internal/intents_tracing_connection.cc index 4d4755c7a19ae..d8dccf420d788 100644 --- a/google/cloud/dialogflow_es/internal/intents_tracing_connection.cc +++ b/google/cloud/dialogflow_es/internal/intents_tracing_connection.cc @@ -90,26 +90,24 @@ IntentsTracingConnection::BatchUpdateIntents( StatusOr IntentsTracingConnection::BatchUpdateIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::IntentsConnection::BatchUpdateIntents"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BatchUpdateIntents(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->BatchUpdateIntents(ExperimentalTag{}, NoAwaitTag{}, request)); } future> IntentsTracingConnection::BatchUpdateIntents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::IntentsConnection::BatchUpdateIntents"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->BatchUpdateIntents(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchUpdateIntents( + ExperimentalTag{}, operation)); } future> @@ -124,26 +122,24 @@ IntentsTracingConnection::BatchDeleteIntents( StatusOr IntentsTracingConnection::BatchDeleteIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request) { auto span = internal::MakeSpan( "dialogflow_es::IntentsConnection::BatchDeleteIntents"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BatchDeleteIntents(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->BatchDeleteIntents(ExperimentalTag{}, NoAwaitTag{}, request)); } future> IntentsTracingConnection::BatchDeleteIntents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "dialogflow_es::IntentsConnection::BatchDeleteIntents"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->BatchDeleteIntents(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchDeleteIntents( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/dialogflow_es/internal/intents_tracing_connection.h b/google/cloud/dialogflow_es/internal/intents_tracing_connection.h index 92e802f3e4844..e9a315f6d44f0 100644 --- a/google/cloud/dialogflow_es/internal/intents_tracing_connection.h +++ b/google/cloud/dialogflow_es/internal/intents_tracing_connection.h @@ -62,12 +62,12 @@ class IntentsTracingConnection : public dialogflow_es::IntentsConnection { override; StatusOr BatchUpdateIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request) override; future> - BatchUpdateIntents(google::cloud::ExperimentalTag, + BatchUpdateIntents(ExperimentalTag, google::longrunning::Operation const& operation) override; future> BatchDeleteIntents( @@ -75,12 +75,12 @@ class IntentsTracingConnection : public dialogflow_es::IntentsConnection { override; StatusOr BatchDeleteIntents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request) override; future> BatchDeleteIntents( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/dialogflow_es/mocks/mock_agents_connection.h b/google/cloud/dialogflow_es/mocks/mock_agents_connection.h index 253e04d8f2ebd..f21d8f862ae07 100644 --- a/google/cloud/dialogflow_es/mocks/mock_agents_connection.h +++ b/google/cloud/dialogflow_es/mocks/mock_agents_connection.h @@ -68,12 +68,12 @@ class MockAgentsConnection : public dialogflow_es::AgentsConnection { (override)); MOCK_METHOD(StatusOr, TrainAgent, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::TrainAgentRequest const& request), (override)); MOCK_METHOD(future>, TrainAgent, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -85,15 +85,14 @@ class MockAgentsConnection : public dialogflow_es::AgentsConnection { MOCK_METHOD( StatusOr, ExportAgent, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ExportAgentRequest const& request), (override)); MOCK_METHOD( future>, ExportAgent, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -103,12 +102,12 @@ class MockAgentsConnection : public dialogflow_es::AgentsConnection { MOCK_METHOD( StatusOr, ImportAgent, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportAgentRequest const& request), (override)); MOCK_METHOD(future>, ImportAgent, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -119,12 +118,12 @@ class MockAgentsConnection : public dialogflow_es::AgentsConnection { MOCK_METHOD( StatusOr, RestoreAgent, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::RestoreAgentRequest const& request), (override)); MOCK_METHOD(future>, RestoreAgent, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/dialogflow_es/mocks/mock_conversation_datasets_connection.h b/google/cloud/dialogflow_es/mocks/mock_conversation_datasets_connection.h index 64e9e60c50c91..9b80beaf7acd9 100644 --- a/google/cloud/dialogflow_es/mocks/mock_conversation_datasets_connection.h +++ b/google/cloud/dialogflow_es/mocks/mock_conversation_datasets_connection.h @@ -56,7 +56,7 @@ class MockConversationDatasetsConnection MOCK_METHOD( StatusOr, CreateConversationDataset, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& request), (override)); @@ -64,8 +64,7 @@ class MockConversationDatasetsConnection MOCK_METHOD( future>, CreateConversationDataset, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -91,7 +90,7 @@ class MockConversationDatasetsConnection MOCK_METHOD( StatusOr, DeleteConversationDataset, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& request), (override)); @@ -99,7 +98,7 @@ class MockConversationDatasetsConnection MOCK_METHOD(future>, DeleteConversationDataset, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -113,7 +112,7 @@ class MockConversationDatasetsConnection MOCK_METHOD( StatusOr, ImportConversationData, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportConversationDataRequest const& request), (override)); @@ -121,7 +120,7 @@ class MockConversationDatasetsConnection MOCK_METHOD(future>, ImportConversationData, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/dialogflow_es/mocks/mock_conversation_models_connection.h b/google/cloud/dialogflow_es/mocks/mock_conversation_models_connection.h index e0c253d2176cc..b2366254aa7c5 100644 --- a/google/cloud/dialogflow_es/mocks/mock_conversation_models_connection.h +++ b/google/cloud/dialogflow_es/mocks/mock_conversation_models_connection.h @@ -56,7 +56,7 @@ class MockConversationModelsConnection MOCK_METHOD( StatusOr, CreateConversationModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateConversationModelRequest const& request), (override)); @@ -64,8 +64,7 @@ class MockConversationModelsConnection MOCK_METHOD( future>, CreateConversationModel, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, @@ -90,7 +89,7 @@ class MockConversationModelsConnection MOCK_METHOD( StatusOr, DeleteConversationModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteConversationModelRequest const& request), (override)); @@ -98,7 +97,7 @@ class MockConversationModelsConnection MOCK_METHOD(future>, DeleteConversationModel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -112,7 +111,7 @@ class MockConversationModelsConnection MOCK_METHOD( StatusOr, DeployConversationModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeployConversationModelRequest const& request), (override)); @@ -120,7 +119,7 @@ class MockConversationModelsConnection MOCK_METHOD(future>, DeployConversationModel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -134,7 +133,7 @@ class MockConversationModelsConnection MOCK_METHOD( StatusOr, UndeployConversationModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::UndeployConversationModelRequest const& request), (override)); @@ -142,7 +141,7 @@ class MockConversationModelsConnection MOCK_METHOD(future>, UndeployConversationModel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -170,7 +169,7 @@ class MockConversationModelsConnection MOCK_METHOD(StatusOr, CreateConversationModelEvaluation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2:: CreateConversationModelEvaluationRequest const& request), (override)); @@ -179,8 +178,7 @@ class MockConversationModelsConnection future< StatusOr>, CreateConversationModelEvaluation, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/dialogflow_es/mocks/mock_conversation_profiles_connection.h b/google/cloud/dialogflow_es/mocks/mock_conversation_profiles_connection.h index e716fa602496e..c7eb4a17b1bff 100644 --- a/google/cloud/dialogflow_es/mocks/mock_conversation_profiles_connection.h +++ b/google/cloud/dialogflow_es/mocks/mock_conversation_profiles_connection.h @@ -89,7 +89,7 @@ class MockConversationProfilesConnection MOCK_METHOD( StatusOr, SetSuggestionFeatureConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& request), (override)); @@ -97,8 +97,7 @@ class MockConversationProfilesConnection MOCK_METHOD( future>, SetSuggestionFeatureConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -110,7 +109,7 @@ class MockConversationProfilesConnection MOCK_METHOD( StatusOr, ClearSuggestionFeatureConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& request), (override)); @@ -118,8 +117,7 @@ class MockConversationProfilesConnection MOCK_METHOD( future>, ClearSuggestionFeatureConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/dialogflow_es/mocks/mock_documents_connection.h b/google/cloud/dialogflow_es/mocks/mock_documents_connection.h index 016eae2b751f3..c163f8d4a0e10 100644 --- a/google/cloud/dialogflow_es/mocks/mock_documents_connection.h +++ b/google/cloud/dialogflow_es/mocks/mock_documents_connection.h @@ -63,13 +63,13 @@ class MockDocumentsConnection : public dialogflow_es::DocumentsConnection { MOCK_METHOD( StatusOr, CreateDocument, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateDocumentRequest const& request), (override)); MOCK_METHOD(future>, CreateDocument, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -81,15 +81,14 @@ class MockDocumentsConnection : public dialogflow_es::DocumentsConnection { MOCK_METHOD( StatusOr, ImportDocuments, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportDocumentsRequest const& request), (override)); MOCK_METHOD( future>, ImportDocuments, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -101,7 +100,7 @@ class MockDocumentsConnection : public dialogflow_es::DocumentsConnection { MOCK_METHOD( StatusOr, DeleteDocument, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteDocumentRequest const& request), (override)); @@ -109,8 +108,7 @@ class MockDocumentsConnection : public dialogflow_es::DocumentsConnection { future< StatusOr>, DeleteDocument, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -120,13 +118,13 @@ class MockDocumentsConnection : public dialogflow_es::DocumentsConnection { MOCK_METHOD( StatusOr, UpdateDocument, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::UpdateDocumentRequest const& request), (override)); MOCK_METHOD(future>, UpdateDocument, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -137,13 +135,13 @@ class MockDocumentsConnection : public dialogflow_es::DocumentsConnection { MOCK_METHOD( StatusOr, ReloadDocument, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ReloadDocumentRequest const& request), (override)); MOCK_METHOD(future>, ReloadDocument, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -154,13 +152,13 @@ class MockDocumentsConnection : public dialogflow_es::DocumentsConnection { MOCK_METHOD( StatusOr, ExportDocument, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ExportDocumentRequest const& request), (override)); MOCK_METHOD(future>, ExportDocument, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/dialogflow_es/mocks/mock_entity_types_connection.h b/google/cloud/dialogflow_es/mocks/mock_entity_types_connection.h index 761ebcdc58240..b1a8bb66d3a9f 100644 --- a/google/cloud/dialogflow_es/mocks/mock_entity_types_connection.h +++ b/google/cloud/dialogflow_es/mocks/mock_entity_types_connection.h @@ -81,7 +81,7 @@ class MockEntityTypesConnection : public dialogflow_es::EntityTypesConnection { MOCK_METHOD( StatusOr, BatchUpdateEntityTypes, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& request), (override)); @@ -90,8 +90,7 @@ class MockEntityTypesConnection : public dialogflow_es::EntityTypesConnection { future>, BatchUpdateEntityTypes, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -102,14 +101,14 @@ class MockEntityTypesConnection : public dialogflow_es::EntityTypesConnection { MOCK_METHOD( StatusOr, BatchDeleteEntityTypes, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& request), (override)); MOCK_METHOD(future>, BatchDeleteEntityTypes, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -119,13 +118,13 @@ class MockEntityTypesConnection : public dialogflow_es::EntityTypesConnection { (override)); MOCK_METHOD(StatusOr, BatchCreateEntities, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request), (override)); MOCK_METHOD(future>, BatchCreateEntities, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -135,13 +134,13 @@ class MockEntityTypesConnection : public dialogflow_es::EntityTypesConnection { (override)); MOCK_METHOD(StatusOr, BatchUpdateEntities, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request), (override)); MOCK_METHOD(future>, BatchUpdateEntities, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -151,13 +150,13 @@ class MockEntityTypesConnection : public dialogflow_es::EntityTypesConnection { (override)); MOCK_METHOD(StatusOr, BatchDeleteEntities, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request), (override)); MOCK_METHOD(future>, BatchDeleteEntities, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/dialogflow_es/mocks/mock_intents_connection.h b/google/cloud/dialogflow_es/mocks/mock_intents_connection.h index 033ec3f5c871d..ae7a71e1aaef2 100644 --- a/google/cloud/dialogflow_es/mocks/mock_intents_connection.h +++ b/google/cloud/dialogflow_es/mocks/mock_intents_connection.h @@ -78,7 +78,7 @@ class MockIntentsConnection : public dialogflow_es::IntentsConnection { MOCK_METHOD( StatusOr, BatchUpdateIntents, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request), (override)); @@ -86,8 +86,7 @@ class MockIntentsConnection : public dialogflow_es::IntentsConnection { future< StatusOr>, BatchUpdateIntents, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -97,12 +96,12 @@ class MockIntentsConnection : public dialogflow_es::IntentsConnection { MOCK_METHOD( StatusOr, BatchDeleteIntents, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request), (override)); MOCK_METHOD(future>, BatchDeleteIntents, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/discoveryengine/v1/internal/completion_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/completion_connection_impl.cc index b39a4a4b3ae1a..c43e781ae98ab 100644 --- a/google/cloud/discoveryengine/v1/internal/completion_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/completion_connection_impl.cc @@ -132,7 +132,7 @@ CompletionServiceConnectionImpl::ImportSuggestionDenyListEntries( StatusOr CompletionServiceConnectionImpl::ImportSuggestionDenyListEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1:: ImportSuggestionDenyListEntriesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -151,8 +151,7 @@ CompletionServiceConnectionImpl::ImportSuggestionDenyListEntries( future> CompletionServiceConnectionImpl::ImportSuggestionDenyListEntries( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CompletionServiceConnectionImpl::PurgeSuggestionDenyListEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1:: PurgeSuggestionDenyListEntriesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -255,8 +254,7 @@ CompletionServiceConnectionImpl::PurgeSuggestionDenyListEntries( future> CompletionServiceConnectionImpl::PurgeSuggestionDenyListEntries( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ImportSuggestionDenyListEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1:: ImportSuggestionDenyListEntriesRequest const& request) override; future> ImportSuggestionDenyListEntries( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future PurgeSuggestionDenyListEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1:: PurgeSuggestionDenyListEntriesRequest const& request) override; future> PurgeSuggestionDenyListEntries( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.cc index 3e673a060b108..7ce3fd1299ad1 100644 --- a/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.cc @@ -56,30 +56,29 @@ CompletionServiceTracingConnection::ImportSuggestionDenyListEntries( StatusOr CompletionServiceTracingConnection::ImportSuggestionDenyListEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: ImportSuggestionDenyListEntriesRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::CompletionServiceConnection::" "ImportSuggestionDenyListEntries"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ImportSuggestionDenyListEntries( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->ImportSuggestionDenyListEntries(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> CompletionServiceTracingConnection::ImportSuggestionDenyListEntries( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::CompletionServiceConnection::" "ImportSuggestionDenyListEntries"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ImportSuggestionDenyListEntries( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->ImportSuggestionDenyListEntries(ExperimentalTag{}, operation)); } future CompletionServiceTracingConnection::PurgeSuggestionDenyListEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: PurgeSuggestionDenyListEntriesRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::CompletionServiceConnection::" "PurgeSuggestionDenyListEntries"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->PurgeSuggestionDenyListEntries( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->PurgeSuggestionDenyListEntries(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> CompletionServiceTracingConnection::PurgeSuggestionDenyListEntries( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::CompletionServiceConnection::" "PurgeSuggestionDenyListEntries"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->PurgeSuggestionDenyListEntries( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->PurgeSuggestionDenyListEntries(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.h b/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.h index 549d523c7abff..3e7f1780c84bd 100644 --- a/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.h +++ b/google/cloud/discoveryengine/v1/internal/completion_tracing_connection.h @@ -51,14 +51,14 @@ class CompletionServiceTracingConnection ImportSuggestionDenyListEntriesRequest const& request) override; StatusOr ImportSuggestionDenyListEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: ImportSuggestionDenyListEntriesRequest const& request) override; future> ImportSuggestionDenyListEntries( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future PurgeSuggestionDenyListEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: PurgeSuggestionDenyListEntriesRequest const& request) override; future> PurgeSuggestionDenyListEntries( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.cc index 4ae47276b74f2..0d2a1f47e7972 100644 --- a/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.cc @@ -110,7 +110,7 @@ DataStoreServiceConnectionImpl::CreateDataStore( StatusOr DataStoreServiceConnectionImpl::CreateDataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::CreateDataStoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -126,8 +126,7 @@ DataStoreServiceConnectionImpl::CreateDataStore( future> DataStoreServiceConnectionImpl::CreateDataStore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DataStoreServiceConnectionImpl::DeleteDataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -271,8 +270,7 @@ DataStoreServiceConnectionImpl::DeleteDataStore( future> DataStoreServiceConnectionImpl::DeleteDataStore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateDataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::CreateDataStoreRequest const& request) override; future> - CreateDataStore(google::cloud::ExperimentalTag, + CreateDataStore(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetDataStore( @@ -80,12 +80,12 @@ class DataStoreServiceConnectionImpl override; StatusOr DeleteDataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& request) override; future> - DeleteDataStore(google::cloud::ExperimentalTag, + DeleteDataStore(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr UpdateDataStore( diff --git a/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.cc index e2315cdd800eb..2aa3191ef2340 100644 --- a/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.cc @@ -44,26 +44,23 @@ DataStoreServiceTracingConnection::CreateDataStore( StatusOr DataStoreServiceTracingConnection::CreateDataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateDataStoreRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::DataStoreServiceConnection::CreateDataStore"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateDataStore(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateDataStore(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataStoreServiceTracingConnection::CreateDataStore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::DataStoreServiceConnection::CreateDataStore"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateDataStore(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateDataStore(ExperimentalTag{}, operation)); } StatusOr @@ -98,26 +95,23 @@ DataStoreServiceTracingConnection::DeleteDataStore( StatusOr DataStoreServiceTracingConnection::DeleteDataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::DataStoreServiceConnection::DeleteDataStore"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteDataStore(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteDataStore(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataStoreServiceTracingConnection::DeleteDataStore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::DataStoreServiceConnection::DeleteDataStore"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteDataStore(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteDataStore(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.h b/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.h index 7fd8b5f155ff3..ddb2d607093d2 100644 --- a/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.h +++ b/google/cloud/discoveryengine/v1/internal/data_store_tracing_connection.h @@ -46,12 +46,12 @@ class DataStoreServiceTracingConnection override; StatusOr CreateDataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateDataStoreRequest const& request) override; future> - CreateDataStore(google::cloud::ExperimentalTag, + CreateDataStore(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetDataStore( @@ -68,12 +68,12 @@ class DataStoreServiceTracingConnection override; StatusOr DeleteDataStore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& request) override; future> - DeleteDataStore(google::cloud::ExperimentalTag, + DeleteDataStore(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr UpdateDataStore( diff --git a/google/cloud/discoveryengine/v1/internal/document_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/document_connection_impl.cc index 5f789f8a37b5a..3dfd05d0e456a 100644 --- a/google/cloud/discoveryengine/v1/internal/document_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/document_connection_impl.cc @@ -204,7 +204,7 @@ DocumentServiceConnectionImpl::ImportDocuments( StatusOr DocumentServiceConnectionImpl::ImportDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::ImportDocumentsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -220,8 +220,7 @@ DocumentServiceConnectionImpl::ImportDocuments( future> DocumentServiceConnectionImpl::ImportDocuments( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DocumentServiceConnectionImpl::PurgeDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -315,8 +314,7 @@ DocumentServiceConnectionImpl::PurgeDocuments( future> DocumentServiceConnectionImpl::PurgeDocuments( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ImportDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::ImportDocumentsRequest const& request) override; future> - ImportDocuments(google::cloud::ExperimentalTag, + ImportDocuments(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -92,12 +92,12 @@ class DocumentServiceConnectionImpl override; StatusOr PurgeDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request) override; future> - PurgeDocuments(google::cloud::ExperimentalTag, + PurgeDocuments(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/discoveryengine/v1/internal/document_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/document_tracing_connection.cc index e02c8efe2deb7..98eff0d05c9b2 100644 --- a/google/cloud/discoveryengine/v1/internal/document_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/document_tracing_connection.cc @@ -91,26 +91,23 @@ DocumentServiceTracingConnection::ImportDocuments( StatusOr DocumentServiceTracingConnection::ImportDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ImportDocumentsRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::DocumentServiceConnection::ImportDocuments"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportDocuments(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ImportDocuments(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DocumentServiceTracingConnection::ImportDocuments( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::DocumentServiceConnection::ImportDocuments"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ImportDocuments(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ImportDocuments(ExperimentalTag{}, operation)); } future> @@ -124,26 +121,23 @@ DocumentServiceTracingConnection::PurgeDocuments( StatusOr DocumentServiceTracingConnection::PurgeDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::DocumentServiceConnection::PurgeDocuments"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PurgeDocuments(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PurgeDocuments(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DocumentServiceTracingConnection::PurgeDocuments( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::DocumentServiceConnection::PurgeDocuments"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->PurgeDocuments(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->PurgeDocuments(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/discoveryengine/v1/internal/document_tracing_connection.h b/google/cloud/discoveryengine/v1/internal/document_tracing_connection.h index 096e929058530..af38e0b5c1d77 100644 --- a/google/cloud/discoveryengine/v1/internal/document_tracing_connection.h +++ b/google/cloud/discoveryengine/v1/internal/document_tracing_connection.h @@ -66,12 +66,12 @@ class DocumentServiceTracingConnection override; StatusOr ImportDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ImportDocumentsRequest const& request) override; future> - ImportDocuments(google::cloud::ExperimentalTag, + ImportDocuments(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -80,12 +80,12 @@ class DocumentServiceTracingConnection override; StatusOr PurgeDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request) override; future> - PurgeDocuments(google::cloud::ExperimentalTag, + PurgeDocuments(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/discoveryengine/v1/internal/engine_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/engine_connection_impl.cc index 3d7e29d08c14f..6a0d47cd03ab3 100644 --- a/google/cloud/discoveryengine/v1/internal/engine_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/engine_connection_impl.cc @@ -109,7 +109,7 @@ EngineServiceConnectionImpl::CreateEngine( StatusOr EngineServiceConnectionImpl::CreateEngine( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::CreateEngineRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -125,8 +125,7 @@ EngineServiceConnectionImpl::CreateEngine( future> EngineServiceConnectionImpl::CreateEngine( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EngineServiceConnectionImpl::DeleteEngine( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::DeleteEngineRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -220,8 +219,7 @@ EngineServiceConnectionImpl::DeleteEngine( future> EngineServiceConnectionImpl::DeleteEngine( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateEngine( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::CreateEngineRequest const& request) override; future> CreateEngine( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -70,12 +70,12 @@ class EngineServiceConnectionImpl request) override; StatusOr DeleteEngine( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::DeleteEngineRequest const& request) override; future> - DeleteEngine(google::cloud::ExperimentalTag, + DeleteEngine(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr UpdateEngine( diff --git a/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.cc index 18b0e0e5db53a..c9af2306f0e86 100644 --- a/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.cc @@ -44,26 +44,23 @@ EngineServiceTracingConnection::CreateEngine( StatusOr EngineServiceTracingConnection::CreateEngine( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateEngineRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::EngineServiceConnection::CreateEngine"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateEngine(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateEngine(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EngineServiceTracingConnection::CreateEngine( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::EngineServiceConnection::CreateEngine"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateEngine(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateEngine(ExperimentalTag{}, operation)); } future> @@ -77,26 +74,23 @@ EngineServiceTracingConnection::DeleteEngine( StatusOr EngineServiceTracingConnection::DeleteEngine( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteEngineRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::EngineServiceConnection::DeleteEngine"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteEngine(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteEngine(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EngineServiceTracingConnection::DeleteEngine( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::EngineServiceConnection::DeleteEngine"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteEngine(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteEngine(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.h b/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.h index b6bf680d58ae5..3194cdf922288 100644 --- a/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.h +++ b/google/cloud/discoveryengine/v1/internal/engine_tracing_connection.h @@ -45,12 +45,12 @@ class EngineServiceTracingConnection override; StatusOr CreateEngine( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateEngineRequest const& request) override; future> CreateEngine( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -58,12 +58,12 @@ class EngineServiceTracingConnection request) override; StatusOr DeleteEngine( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteEngineRequest const& request) override; future> - DeleteEngine(google::cloud::ExperimentalTag, + DeleteEngine(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr UpdateEngine( diff --git a/google/cloud/discoveryengine/v1/internal/project_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/project_connection_impl.cc index 9d3202b167773..148ebb116a960 100644 --- a/google/cloud/discoveryengine/v1/internal/project_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/project_connection_impl.cc @@ -110,7 +110,7 @@ ProjectServiceConnectionImpl::ProvisionProject( StatusOr ProjectServiceConnectionImpl::ProvisionProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::ProvisionProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -127,8 +127,7 @@ ProjectServiceConnectionImpl::ProvisionProject( future> ProjectServiceConnectionImpl::ProvisionProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ProvisionProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::ProvisionProjectRequest const& request) override; future> - ProvisionProject(google::cloud::ExperimentalTag, + ProvisionProject(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/discoveryengine/v1/internal/project_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/project_tracing_connection.cc index fc94c4ee9cb88..4c0a5177b5b78 100644 --- a/google/cloud/discoveryengine/v1/internal/project_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/project_tracing_connection.cc @@ -44,27 +44,25 @@ ProjectServiceTracingConnection::ProvisionProject( StatusOr ProjectServiceTracingConnection::ProvisionProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ProvisionProjectRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::ProjectServiceConnection::ProvisionProject"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ProvisionProject(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ProvisionProject(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProjectServiceTracingConnection::ProvisionProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::ProjectServiceConnection::ProvisionProject"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ProvisionProject(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ProvisionProject(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/discoveryengine/v1/internal/project_tracing_connection.h b/google/cloud/discoveryengine/v1/internal/project_tracing_connection.h index fe1af5cb25c97..7c3115af837f0 100644 --- a/google/cloud/discoveryengine/v1/internal/project_tracing_connection.h +++ b/google/cloud/discoveryengine/v1/internal/project_tracing_connection.h @@ -46,12 +46,12 @@ class ProjectServiceTracingConnection request) override; StatusOr ProvisionProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ProvisionProjectRequest const& request) override; future> - ProvisionProject(google::cloud::ExperimentalTag, + ProvisionProject(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/discoveryengine/v1/internal/schema_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/schema_connection_impl.cc index 6304decbc18f7..f308121786d62 100644 --- a/google/cloud/discoveryengine/v1/internal/schema_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/schema_connection_impl.cc @@ -158,7 +158,7 @@ SchemaServiceConnectionImpl::CreateSchema( StatusOr SchemaServiceConnectionImpl::CreateSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::CreateSchemaRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -174,8 +174,7 @@ SchemaServiceConnectionImpl::CreateSchema( future> SchemaServiceConnectionImpl::CreateSchema( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SchemaServiceConnectionImpl::UpdateSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -269,8 +268,7 @@ SchemaServiceConnectionImpl::UpdateSchema( future> SchemaServiceConnectionImpl::UpdateSchema( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SchemaServiceConnectionImpl::DeleteSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -364,8 +362,7 @@ SchemaServiceConnectionImpl::DeleteSchema( future> SchemaServiceConnectionImpl::DeleteSchema( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::CreateSchemaRequest const& request) override; future> CreateSchema( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateSchema( @@ -77,12 +77,12 @@ class SchemaServiceConnectionImpl override; StatusOr UpdateSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request) override; future> UpdateSchema( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -90,12 +90,12 @@ class SchemaServiceConnectionImpl request) override; StatusOr DeleteSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request) override; future> - DeleteSchema(google::cloud::ExperimentalTag, + DeleteSchema(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.cc index 994e465dcd601..576214bd3c605 100644 --- a/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.cc @@ -65,26 +65,23 @@ SchemaServiceTracingConnection::CreateSchema( StatusOr SchemaServiceTracingConnection::CreateSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateSchemaRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::SchemaServiceConnection::CreateSchema"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateSchema(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateSchema(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SchemaServiceTracingConnection::CreateSchema( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::SchemaServiceConnection::CreateSchema"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateSchema(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateSchema(ExperimentalTag{}, operation)); } future> @@ -98,26 +95,23 @@ SchemaServiceTracingConnection::UpdateSchema( StatusOr SchemaServiceTracingConnection::UpdateSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::SchemaServiceConnection::UpdateSchema"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateSchema(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateSchema(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SchemaServiceTracingConnection::UpdateSchema( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::SchemaServiceConnection::UpdateSchema"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateSchema(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateSchema(ExperimentalTag{}, operation)); } future> @@ -131,26 +125,23 @@ SchemaServiceTracingConnection::DeleteSchema( StatusOr SchemaServiceTracingConnection::DeleteSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::SchemaServiceConnection::DeleteSchema"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSchema(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteSchema(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SchemaServiceTracingConnection::DeleteSchema( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::SchemaServiceConnection::DeleteSchema"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteSchema(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteSchema(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.h b/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.h index 89847082024a9..620c572a3d2df 100644 --- a/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.h +++ b/google/cloud/discoveryengine/v1/internal/schema_tracing_connection.h @@ -52,12 +52,12 @@ class SchemaServiceTracingConnection override; StatusOr CreateSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateSchemaRequest const& request) override; future> CreateSchema( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateSchema( @@ -65,12 +65,12 @@ class SchemaServiceTracingConnection override; StatusOr UpdateSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request) override; future> UpdateSchema( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -78,12 +78,12 @@ class SchemaServiceTracingConnection request) override; StatusOr DeleteSchema( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request) override; future> - DeleteSchema(google::cloud::ExperimentalTag, + DeleteSchema(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.cc index 326aaeab37f5c..fa54c42bd102f 100644 --- a/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.cc @@ -133,7 +133,7 @@ SiteSearchEngineServiceConnectionImpl::CreateTargetSite( StatusOr SiteSearchEngineServiceConnectionImpl::CreateTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -150,8 +150,7 @@ SiteSearchEngineServiceConnectionImpl::CreateTargetSite( future> SiteSearchEngineServiceConnectionImpl::CreateTargetSite( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SiteSearchEngineServiceConnectionImpl::BatchCreateTargetSites( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -248,8 +247,7 @@ SiteSearchEngineServiceConnectionImpl::BatchCreateTargetSites( future> SiteSearchEngineServiceConnectionImpl::BatchCreateTargetSites( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SiteSearchEngineServiceConnectionImpl::UpdateTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -360,8 +358,7 @@ SiteSearchEngineServiceConnectionImpl::UpdateTargetSite( future> SiteSearchEngineServiceConnectionImpl::UpdateTargetSite( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SiteSearchEngineServiceConnectionImpl::DeleteTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -457,8 +454,7 @@ SiteSearchEngineServiceConnectionImpl::DeleteTargetSite( future> SiteSearchEngineServiceConnectionImpl::DeleteTargetSite( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SiteSearchEngineServiceConnectionImpl::EnableAdvancedSiteSearch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -590,8 +586,7 @@ SiteSearchEngineServiceConnectionImpl::EnableAdvancedSiteSearch( future> SiteSearchEngineServiceConnectionImpl::EnableAdvancedSiteSearch( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SiteSearchEngineServiceConnectionImpl::DisableAdvancedSiteSearch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::DisableAdvancedSiteSearchRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -689,8 +684,7 @@ SiteSearchEngineServiceConnectionImpl::DisableAdvancedSiteSearch( future> SiteSearchEngineServiceConnectionImpl::DisableAdvancedSiteSearch( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SiteSearchEngineServiceConnectionImpl::RecrawlUris( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -785,8 +779,7 @@ SiteSearchEngineServiceConnectionImpl::RecrawlUris( future> SiteSearchEngineServiceConnectionImpl::RecrawlUris( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SiteSearchEngineServiceConnectionImpl::BatchVerifyTargetSites( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -883,8 +876,7 @@ SiteSearchEngineServiceConnectionImpl::BatchVerifyTargetSites( future> SiteSearchEngineServiceConnectionImpl::BatchVerifyTargetSites( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& request) override; future> - CreateTargetSite(google::cloud::ExperimentalTag, + CreateTargetSite(ExperimentalTag, google::longrunning::Operation const& operation) override; future BatchCreateTargetSites( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& request) override; future> BatchCreateTargetSites( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetTargetSite( @@ -99,12 +99,12 @@ class SiteSearchEngineServiceConnectionImpl request) override; StatusOr UpdateTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& request) override; future> - UpdateTargetSite(google::cloud::ExperimentalTag, + UpdateTargetSite(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -113,12 +113,12 @@ class SiteSearchEngineServiceConnectionImpl request) override; StatusOr DeleteTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& request) override; future> - DeleteTargetSite(google::cloud::ExperimentalTag, + DeleteTargetSite(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTargetSites( @@ -132,14 +132,14 @@ class SiteSearchEngineServiceConnectionImpl request) override; StatusOr EnableAdvancedSiteSearch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const& request) override; future> EnableAdvancedSiteSearch( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future DisableAdvancedSiteSearch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1:: DisableAdvancedSiteSearchRequest const& request) override; future> DisableAdvancedSiteSearch( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -164,12 +164,12 @@ class SiteSearchEngineServiceConnectionImpl request) override; StatusOr RecrawlUris( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request) override; future> - RecrawlUris(google::cloud::ExperimentalTag, + RecrawlUris(ExperimentalTag, google::longrunning::Operation const& operation) override; future BatchVerifyTargetSites( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& request) override; future> BatchVerifyTargetSites( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.cc index 829c6ab5ec035..b23f8ca8e6486 100644 --- a/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.cc @@ -59,7 +59,7 @@ SiteSearchEngineServiceTracingConnection::CreateTargetSite( StatusOr SiteSearchEngineServiceTracingConnection::CreateTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& request) { auto span = internal::MakeSpan( @@ -67,21 +67,19 @@ SiteSearchEngineServiceTracingConnection::CreateTargetSite( "CreateTargetSite"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateTargetSite(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateTargetSite(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SiteSearchEngineServiceTracingConnection::CreateTargetSite( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "CreateTargetSite"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateTargetSite(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateTargetSite(ExperimentalTag{}, operation)); } future SiteSearchEngineServiceTracingConnection::BatchCreateTargetSites( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "BatchCreateTargetSites"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->BatchCreateTargetSites( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->BatchCreateTargetSites(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SiteSearchEngineServiceTracingConnection::BatchCreateTargetSites( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "BatchCreateTargetSites"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->BatchCreateTargetSites( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchCreateTargetSites( + ExperimentalTag{}, operation)); } StatusOr @@ -147,7 +143,7 @@ SiteSearchEngineServiceTracingConnection::UpdateTargetSite( StatusOr SiteSearchEngineServiceTracingConnection::UpdateTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& request) { auto span = internal::MakeSpan( @@ -155,21 +151,19 @@ SiteSearchEngineServiceTracingConnection::UpdateTargetSite( "UpdateTargetSite"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateTargetSite(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateTargetSite(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SiteSearchEngineServiceTracingConnection::UpdateTargetSite( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "UpdateTargetSite"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateTargetSite(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateTargetSite(ExperimentalTag{}, operation)); } future> @@ -185,7 +179,7 @@ SiteSearchEngineServiceTracingConnection::DeleteTargetSite( StatusOr SiteSearchEngineServiceTracingConnection::DeleteTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& request) { auto span = internal::MakeSpan( @@ -193,21 +187,19 @@ SiteSearchEngineServiceTracingConnection::DeleteTargetSite( "DeleteTargetSite"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteTargetSite(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteTargetSite(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SiteSearchEngineServiceTracingConnection::DeleteTargetSite( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "DeleteTargetSite"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteTargetSite(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteTargetSite(ExperimentalTag{}, operation)); } StreamRange @@ -237,30 +229,28 @@ SiteSearchEngineServiceTracingConnection::EnableAdvancedSiteSearch( StatusOr SiteSearchEngineServiceTracingConnection::EnableAdvancedSiteSearch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "EnableAdvancedSiteSearch"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->EnableAdvancedSiteSearch( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->EnableAdvancedSiteSearch(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> SiteSearchEngineServiceTracingConnection::EnableAdvancedSiteSearch( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "EnableAdvancedSiteSearch"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->EnableAdvancedSiteSearch( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->EnableAdvancedSiteSearch( + ExperimentalTag{}, operation)); } future SiteSearchEngineServiceTracingConnection::DisableAdvancedSiteSearch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DisableAdvancedSiteSearchRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "DisableAdvancedSiteSearch"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DisableAdvancedSiteSearch( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DisableAdvancedSiteSearch(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> SiteSearchEngineServiceTracingConnection::DisableAdvancedSiteSearch( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "DisableAdvancedSiteSearch"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DisableAdvancedSiteSearch( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DisableAdvancedSiteSearch( + ExperimentalTag{}, operation)); } future> @@ -315,26 +303,23 @@ SiteSearchEngineServiceTracingConnection::RecrawlUris( StatusOr SiteSearchEngineServiceTracingConnection::RecrawlUris( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::RecrawlUris"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RecrawlUris(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RecrawlUris(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SiteSearchEngineServiceTracingConnection::RecrawlUris( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::RecrawlUris"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RecrawlUris(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RecrawlUris(ExperimentalTag{}, operation)); } future SiteSearchEngineServiceTracingConnection::BatchVerifyTargetSites( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "BatchVerifyTargetSites"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->BatchVerifyTargetSites( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->BatchVerifyTargetSites(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SiteSearchEngineServiceTracingConnection::BatchVerifyTargetSites( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::SiteSearchEngineServiceConnection::" "BatchVerifyTargetSites"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->BatchVerifyTargetSites( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchVerifyTargetSites( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.h b/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.h index 9637e4bb77e90..3012145b22494 100644 --- a/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.h +++ b/google/cloud/discoveryengine/v1/internal/site_search_engine_tracing_connection.h @@ -52,12 +52,12 @@ class SiteSearchEngineServiceTracingConnection request) override; StatusOr CreateTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& request) override; future> - CreateTargetSite(google::cloud::ExperimentalTag, + CreateTargetSite(ExperimentalTag, google::longrunning::Operation const& operation) override; future BatchCreateTargetSites( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& request) override; future> BatchCreateTargetSites( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetTargetSite( @@ -87,12 +87,12 @@ class SiteSearchEngineServiceTracingConnection request) override; StatusOr UpdateTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& request) override; future> - UpdateTargetSite(google::cloud::ExperimentalTag, + UpdateTargetSite(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -101,12 +101,12 @@ class SiteSearchEngineServiceTracingConnection request) override; StatusOr DeleteTargetSite( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& request) override; future> - DeleteTargetSite(google::cloud::ExperimentalTag, + DeleteTargetSite(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTargetSites( @@ -120,14 +120,14 @@ class SiteSearchEngineServiceTracingConnection request) override; StatusOr EnableAdvancedSiteSearch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const& request) override; future> EnableAdvancedSiteSearch( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future DisableAdvancedSiteSearch( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: DisableAdvancedSiteSearchRequest const& request) override; future> DisableAdvancedSiteSearch( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -152,12 +152,12 @@ class SiteSearchEngineServiceTracingConnection request) override; StatusOr RecrawlUris( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request) override; future> - RecrawlUris(google::cloud::ExperimentalTag, + RecrawlUris(ExperimentalTag, google::longrunning::Operation const& operation) override; future BatchVerifyTargetSites( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& request) override; future> BatchVerifyTargetSites( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.cc index aefcb55d75c6b..d56384f0c8734 100644 --- a/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.cc @@ -141,7 +141,7 @@ UserEventServiceConnectionImpl::ImportUserEvents( StatusOr UserEventServiceConnectionImpl::ImportUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::ImportUserEventsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -158,8 +158,7 @@ UserEventServiceConnectionImpl::ImportUserEvents( future> UserEventServiceConnectionImpl::ImportUserEvents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ImportUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::discoveryengine::v1::ImportUserEventsRequest const& request) override; future> - ImportUserEvents(google::cloud::ExperimentalTag, + ImportUserEvents(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.cc b/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.cc index 3294b8ef8144c..c31e6132fde2e 100644 --- a/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.cc +++ b/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.cc @@ -63,27 +63,25 @@ UserEventServiceTracingConnection::ImportUserEvents( StatusOr UserEventServiceTracingConnection::ImportUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ImportUserEventsRequest const& request) { auto span = internal::MakeSpan( "discoveryengine_v1::UserEventServiceConnection::ImportUserEvents"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportUserEvents(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ImportUserEvents(ExperimentalTag{}, NoAwaitTag{}, request)); } future> UserEventServiceTracingConnection::ImportUserEvents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "discoveryengine_v1::UserEventServiceConnection::ImportUserEvents"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ImportUserEvents(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ImportUserEvents(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.h b/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.h index a4a05db423479..8ee6499b874f2 100644 --- a/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.h +++ b/google/cloud/discoveryengine/v1/internal/user_event_tracing_connection.h @@ -54,12 +54,12 @@ class UserEventServiceTracingConnection request) override; StatusOr ImportUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ImportUserEventsRequest const& request) override; future> - ImportUserEvents(google::cloud::ExperimentalTag, + ImportUserEvents(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/discoveryengine/v1/mocks/mock_completion_connection.h b/google/cloud/discoveryengine/v1/mocks/mock_completion_connection.h index 3792b7abeba59..94e2f8127ea6e 100644 --- a/google/cloud/discoveryengine/v1/mocks/mock_completion_connection.h +++ b/google/cloud/discoveryengine/v1/mocks/mock_completion_connection.h @@ -62,7 +62,7 @@ class MockCompletionServiceConnection MOCK_METHOD(StatusOr, ImportSuggestionDenyListEntries, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: ImportSuggestionDenyListEntriesRequest const& request), (override)); @@ -70,7 +70,7 @@ class MockCompletionServiceConnection MOCK_METHOD(future>, ImportSuggestionDenyListEntries, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -83,7 +83,7 @@ class MockCompletionServiceConnection MOCK_METHOD(StatusOr, PurgeSuggestionDenyListEntries, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: PurgeSuggestionDenyListEntriesRequest const& request), (override)); @@ -91,7 +91,7 @@ class MockCompletionServiceConnection MOCK_METHOD(future>, PurgeSuggestionDenyListEntries, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/discoveryengine/v1/mocks/mock_data_store_connection.h b/google/cloud/discoveryengine/v1/mocks/mock_data_store_connection.h index fb53802e4c3d1..b14053b0838f2 100644 --- a/google/cloud/discoveryengine/v1/mocks/mock_data_store_connection.h +++ b/google/cloud/discoveryengine/v1/mocks/mock_data_store_connection.h @@ -54,14 +54,14 @@ class MockDataStoreServiceConnection (override)); MOCK_METHOD(StatusOr, CreateDataStore, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateDataStoreRequest const& request), (override)); MOCK_METHOD(future>, CreateDataStore, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -84,7 +84,7 @@ class MockDataStoreServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteDataStore, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& request), (override)); @@ -92,7 +92,7 @@ class MockDataStoreServiceConnection MOCK_METHOD(future>, DeleteDataStore, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/discoveryengine/v1/mocks/mock_document_connection.h b/google/cloud/discoveryengine/v1/mocks/mock_document_connection.h index 982d3f422c57b..4e88923df96e8 100644 --- a/google/cloud/discoveryengine/v1/mocks/mock_document_connection.h +++ b/google/cloud/discoveryengine/v1/mocks/mock_document_connection.h @@ -83,7 +83,7 @@ class MockDocumentServiceConnection (override)); MOCK_METHOD(StatusOr, ImportDocuments, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ImportDocumentsRequest const& request), (override)); @@ -91,7 +91,7 @@ class MockDocumentServiceConnection MOCK_METHOD(future>, ImportDocuments, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -104,7 +104,7 @@ class MockDocumentServiceConnection (override)); MOCK_METHOD(StatusOr, PurgeDocuments, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request), (override)); @@ -113,8 +113,7 @@ class MockDocumentServiceConnection future< StatusOr>, PurgeDocuments, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/discoveryengine/v1/mocks/mock_engine_connection.h b/google/cloud/discoveryengine/v1/mocks/mock_engine_connection.h index d763be5135aa0..b3cc338168542 100644 --- a/google/cloud/discoveryengine/v1/mocks/mock_engine_connection.h +++ b/google/cloud/discoveryengine/v1/mocks/mock_engine_connection.h @@ -55,13 +55,13 @@ class MockEngineServiceConnection MOCK_METHOD( StatusOr, CreateEngine, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateEngineRequest const& request), (override)); MOCK_METHOD(future>, CreateEngine, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -74,7 +74,7 @@ class MockEngineServiceConnection MOCK_METHOD( StatusOr, DeleteEngine, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteEngineRequest const& request), (override)); @@ -82,8 +82,7 @@ class MockEngineServiceConnection future< StatusOr>, DeleteEngine, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/discoveryengine/v1/mocks/mock_project_connection.h b/google/cloud/discoveryengine/v1/mocks/mock_project_connection.h index 5ac7773bf7316..f3e1e4a7155c4 100644 --- a/google/cloud/discoveryengine/v1/mocks/mock_project_connection.h +++ b/google/cloud/discoveryengine/v1/mocks/mock_project_connection.h @@ -56,14 +56,14 @@ class MockProjectServiceConnection MOCK_METHOD( StatusOr, ProvisionProject, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ProvisionProjectRequest const& request), (override)); MOCK_METHOD(future>, ProvisionProject, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/discoveryengine/v1/mocks/mock_schema_connection.h b/google/cloud/discoveryengine/v1/mocks/mock_schema_connection.h index 6b3d4f3a18213..51481f6aea49c 100644 --- a/google/cloud/discoveryengine/v1/mocks/mock_schema_connection.h +++ b/google/cloud/discoveryengine/v1/mocks/mock_schema_connection.h @@ -65,13 +65,13 @@ class MockSchemaServiceConnection MOCK_METHOD( StatusOr, CreateSchema, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateSchemaRequest const& request), (override)); MOCK_METHOD(future>, CreateSchema, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -83,13 +83,13 @@ class MockSchemaServiceConnection MOCK_METHOD( StatusOr, UpdateSchema, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request), (override)); MOCK_METHOD(future>, UpdateSchema, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -102,7 +102,7 @@ class MockSchemaServiceConnection MOCK_METHOD( StatusOr, DeleteSchema, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request), (override)); @@ -110,8 +110,7 @@ class MockSchemaServiceConnection future< StatusOr>, DeleteSchema, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/discoveryengine/v1/mocks/mock_site_search_engine_connection.h b/google/cloud/discoveryengine/v1/mocks/mock_site_search_engine_connection.h index 8213e6fd5d5d3..60b04a617174c 100644 --- a/google/cloud/discoveryengine/v1/mocks/mock_site_search_engine_connection.h +++ b/google/cloud/discoveryengine/v1/mocks/mock_site_search_engine_connection.h @@ -63,14 +63,14 @@ class MockSiteSearchEngineServiceConnection MOCK_METHOD( StatusOr, CreateTargetSite, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& request), (override)); MOCK_METHOD(future>, CreateTargetSite, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -84,7 +84,7 @@ class MockSiteSearchEngineServiceConnection MOCK_METHOD( StatusOr, BatchCreateTargetSites, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& request), (override)); @@ -93,8 +93,7 @@ class MockSiteSearchEngineServiceConnection future>, BatchCreateTargetSites, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -111,14 +110,14 @@ class MockSiteSearchEngineServiceConnection MOCK_METHOD( StatusOr, UpdateTargetSite, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& request), (override)); MOCK_METHOD(future>, UpdateTargetSite, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -132,7 +131,7 @@ class MockSiteSearchEngineServiceConnection MOCK_METHOD( StatusOr, DeleteTargetSite, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& request), (override)); @@ -141,8 +140,7 @@ class MockSiteSearchEngineServiceConnection future>, DeleteTargetSite, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -160,7 +158,7 @@ class MockSiteSearchEngineServiceConnection MOCK_METHOD(StatusOr, EnableAdvancedSiteSearch, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: EnableAdvancedSiteSearchRequest const& request), (override)); @@ -168,7 +166,7 @@ class MockSiteSearchEngineServiceConnection MOCK_METHOD(future>, EnableAdvancedSiteSearch, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -181,7 +179,7 @@ class MockSiteSearchEngineServiceConnection MOCK_METHOD(StatusOr, DisableAdvancedSiteSearch, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: DisableAdvancedSiteSearchRequest const& request), (override)); @@ -189,7 +187,7 @@ class MockSiteSearchEngineServiceConnection MOCK_METHOD(future>, DisableAdvancedSiteSearch, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -201,15 +199,14 @@ class MockSiteSearchEngineServiceConnection MOCK_METHOD( StatusOr, RecrawlUris, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request), (override)); MOCK_METHOD( future>, RecrawlUris, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -222,7 +219,7 @@ class MockSiteSearchEngineServiceConnection MOCK_METHOD( StatusOr, BatchVerifyTargetSites, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& request), (override)); @@ -231,8 +228,7 @@ class MockSiteSearchEngineServiceConnection future>, BatchVerifyTargetSites, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/discoveryengine/v1/mocks/mock_user_event_connection.h b/google/cloud/discoveryengine/v1/mocks/mock_user_event_connection.h index f3afa42d06a15..005cbaee541ba 100644 --- a/google/cloud/discoveryengine/v1/mocks/mock_user_event_connection.h +++ b/google/cloud/discoveryengine/v1/mocks/mock_user_event_connection.h @@ -69,7 +69,7 @@ class MockUserEventServiceConnection MOCK_METHOD( StatusOr, ImportUserEvents, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ImportUserEventsRequest const& request), (override)); @@ -78,8 +78,7 @@ class MockUserEventServiceConnection future>, ImportUserEvents, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/documentai/v1/internal/document_processor_connection_impl.cc b/google/cloud/documentai/v1/internal/document_processor_connection_impl.cc index 9ef8023428d22..86a9bb1c30586 100644 --- a/google/cloud/documentai/v1/internal/document_processor_connection_impl.cc +++ b/google/cloud/documentai/v1/internal/document_processor_connection_impl.cc @@ -127,7 +127,7 @@ DocumentProcessorServiceConnectionImpl::BatchProcessDocuments( StatusOr DocumentProcessorServiceConnectionImpl::BatchProcessDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::BatchProcessRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -143,8 +143,7 @@ DocumentProcessorServiceConnectionImpl::BatchProcessDocuments( future> DocumentProcessorServiceConnectionImpl::BatchProcessDocuments( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DocumentProcessorServiceConnectionImpl::TrainProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::TrainProcessorVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -356,8 +355,7 @@ DocumentProcessorServiceConnectionImpl::TrainProcessorVersion( future> DocumentProcessorServiceConnectionImpl::TrainProcessorVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DocumentProcessorServiceConnectionImpl::DeleteProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::DeleteProcessorVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -505,8 +503,7 @@ DocumentProcessorServiceConnectionImpl::DeleteProcessorVersion( future> DocumentProcessorServiceConnectionImpl::DeleteProcessorVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DocumentProcessorServiceConnectionImpl::DeployProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::DeployProcessorVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -602,8 +599,7 @@ DocumentProcessorServiceConnectionImpl::DeployProcessorVersion( future> DocumentProcessorServiceConnectionImpl::DeployProcessorVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DocumentProcessorServiceConnectionImpl::UndeployProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::UndeployProcessorVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -702,8 +698,7 @@ DocumentProcessorServiceConnectionImpl::UndeployProcessorVersion( future< StatusOr> DocumentProcessorServiceConnectionImpl::UndeployProcessorVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DocumentProcessorServiceConnectionImpl::DeleteProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::DeleteProcessorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -812,8 +807,7 @@ DocumentProcessorServiceConnectionImpl::DeleteProcessor( future> DocumentProcessorServiceConnectionImpl::DeleteProcessor( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DocumentProcessorServiceConnectionImpl::EnableProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::EnableProcessorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -907,8 +901,7 @@ DocumentProcessorServiceConnectionImpl::EnableProcessor( future> DocumentProcessorServiceConnectionImpl::EnableProcessor( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DocumentProcessorServiceConnectionImpl::DisableProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::DisableProcessorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1002,8 +995,7 @@ DocumentProcessorServiceConnectionImpl::DisableProcessor( future> DocumentProcessorServiceConnectionImpl::DisableProcessor( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DocumentProcessorServiceConnectionImpl::SetDefaultProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1100,8 +1092,7 @@ DocumentProcessorServiceConnectionImpl::SetDefaultProcessorVersion( future< StatusOr> DocumentProcessorServiceConnectionImpl::SetDefaultProcessorVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DocumentProcessorServiceConnectionImpl::ReviewDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::ReviewDocumentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1194,8 +1185,7 @@ DocumentProcessorServiceConnectionImpl::ReviewDocument( future> DocumentProcessorServiceConnectionImpl::ReviewDocument( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DocumentProcessorServiceConnectionImpl::EvaluateProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1294,8 +1284,7 @@ DocumentProcessorServiceConnectionImpl::EvaluateProcessorVersion( future< StatusOr> DocumentProcessorServiceConnectionImpl::EvaluateProcessorVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BatchProcessDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::BatchProcessRequest const& request) override; future> BatchProcessDocuments( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -97,13 +97,13 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr TrainProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::TrainProcessorVersionRequest const& request) override; future> TrainProcessorVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetProcessorVersion( @@ -122,14 +122,14 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr DeleteProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::DeleteProcessorVersionRequest const& request) override; future< StatusOr> DeleteProcessorVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -139,14 +139,14 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr DeployProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::DeployProcessorVersionRequest const& request) override; future< StatusOr> DeployProcessorVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -156,14 +156,14 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr UndeployProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::UndeployProcessorVersionRequest const& request) override; future< StatusOr> UndeployProcessorVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateProcessor( @@ -175,12 +175,12 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr DeleteProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::DeleteProcessorRequest const& request) override; future> - DeleteProcessor(google::cloud::ExperimentalTag, + DeleteProcessor(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -188,12 +188,12 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr EnableProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::EnableProcessorRequest const& request) override; future> - EnableProcessor(google::cloud::ExperimentalTag, + EnableProcessor(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -201,12 +201,12 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr DisableProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::DisableProcessorRequest const& request) override; future> - DisableProcessor(google::cloud::ExperimentalTag, + DisableProcessor(ExperimentalTag, google::longrunning::Operation const& operation) override; future SetDefaultProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& request) override; future> SetDefaultProcessorVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -231,12 +231,12 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr ReviewDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::ReviewDocumentRequest const& request) override; future> - ReviewDocument(google::cloud::ExperimentalTag, + ReviewDocument(ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -246,14 +246,14 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr EvaluateProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& request) override; future< StatusOr> EvaluateProcessorVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetEvaluation( diff --git a/google/cloud/documentai/v1/internal/document_processor_tracing_connection.cc b/google/cloud/documentai/v1/internal/document_processor_tracing_connection.cc index 8072239b35ede..ad90caaef7613 100644 --- a/google/cloud/documentai/v1/internal/document_processor_tracing_connection.cc +++ b/google/cloud/documentai/v1/internal/document_processor_tracing_connection.cc @@ -57,28 +57,26 @@ DocumentProcessorServiceTracingConnection::BatchProcessDocuments( StatusOr DocumentProcessorServiceTracingConnection::BatchProcessDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::BatchProcessRequest const& request) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "BatchProcessDocuments"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->BatchProcessDocuments( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->BatchProcessDocuments(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DocumentProcessorServiceTracingConnection::BatchProcessDocuments( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "BatchProcessDocuments"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->BatchProcessDocuments( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchProcessDocuments( + ExperimentalTag{}, operation)); } StatusOr @@ -145,29 +143,27 @@ DocumentProcessorServiceTracingConnection::TrainProcessorVersion( StatusOr DocumentProcessorServiceTracingConnection::TrainProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::TrainProcessorVersionRequest const& request) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "TrainProcessorVersion"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->TrainProcessorVersion( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->TrainProcessorVersion(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DocumentProcessorServiceTracingConnection::TrainProcessorVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "TrainProcessorVersion"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->TrainProcessorVersion( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->TrainProcessorVersion( + ExperimentalTag{}, operation)); } StatusOr @@ -206,29 +202,27 @@ DocumentProcessorServiceTracingConnection::DeleteProcessorVersion( StatusOr DocumentProcessorServiceTracingConnection::DeleteProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeleteProcessorVersionRequest const& request) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "DeleteProcessorVersion"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteProcessorVersion( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteProcessorVersion(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DocumentProcessorServiceTracingConnection::DeleteProcessorVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "DeleteProcessorVersion"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteProcessorVersion( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteProcessorVersion( + ExperimentalTag{}, operation)); } future> @@ -245,29 +239,27 @@ DocumentProcessorServiceTracingConnection::DeployProcessorVersion( StatusOr DocumentProcessorServiceTracingConnection::DeployProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeployProcessorVersionRequest const& request) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "DeployProcessorVersion"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeployProcessorVersion( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeployProcessorVersion(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DocumentProcessorServiceTracingConnection::DeployProcessorVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "DeployProcessorVersion"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeployProcessorVersion( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeployProcessorVersion( + ExperimentalTag{}, operation)); } future< @@ -285,30 +277,28 @@ DocumentProcessorServiceTracingConnection::UndeployProcessorVersion( StatusOr DocumentProcessorServiceTracingConnection::UndeployProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::UndeployProcessorVersionRequest const& request) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "UndeployProcessorVersion"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UndeployProcessorVersion( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UndeployProcessorVersion(ExperimentalTag{}, NoAwaitTag{}, + request)); } future< StatusOr> DocumentProcessorServiceTracingConnection::UndeployProcessorVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "UndeployProcessorVersion"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UndeployProcessorVersion( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UndeployProcessorVersion( + ExperimentalTag{}, operation)); } StatusOr @@ -331,26 +321,23 @@ DocumentProcessorServiceTracingConnection::DeleteProcessor( StatusOr DocumentProcessorServiceTracingConnection::DeleteProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeleteProcessorRequest const& request) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::DeleteProcessor"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteProcessor(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteProcessor(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DocumentProcessorServiceTracingConnection::DeleteProcessor( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::DeleteProcessor"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteProcessor(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteProcessor(ExperimentalTag{}, operation)); } future> @@ -364,26 +351,23 @@ DocumentProcessorServiceTracingConnection::EnableProcessor( StatusOr DocumentProcessorServiceTracingConnection::EnableProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::EnableProcessorRequest const& request) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::EnableProcessor"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->EnableProcessor(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->EnableProcessor(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DocumentProcessorServiceTracingConnection::EnableProcessor( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::EnableProcessor"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->EnableProcessor(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->EnableProcessor(ExperimentalTag{}, operation)); } future> @@ -397,26 +381,24 @@ DocumentProcessorServiceTracingConnection::DisableProcessor( StatusOr DocumentProcessorServiceTracingConnection::DisableProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DisableProcessorRequest const& request) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::DisableProcessor"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DisableProcessor(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DisableProcessor(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DocumentProcessorServiceTracingConnection::DisableProcessor( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::DisableProcessor"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DisableProcessor(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DisableProcessor(ExperimentalTag{}, operation)); } future< @@ -434,30 +416,28 @@ DocumentProcessorServiceTracingConnection::SetDefaultProcessorVersion( StatusOr DocumentProcessorServiceTracingConnection::SetDefaultProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& request) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "SetDefaultProcessorVersion"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SetDefaultProcessorVersion( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->SetDefaultProcessorVersion(ExperimentalTag{}, NoAwaitTag{}, + request)); } future< StatusOr> DocumentProcessorServiceTracingConnection::SetDefaultProcessorVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "SetDefaultProcessorVersion"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SetDefaultProcessorVersion( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetDefaultProcessorVersion( + ExperimentalTag{}, operation)); } future> @@ -471,26 +451,23 @@ DocumentProcessorServiceTracingConnection::ReviewDocument( StatusOr DocumentProcessorServiceTracingConnection::ReviewDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::ReviewDocumentRequest const& request) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::ReviewDocument"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ReviewDocument(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ReviewDocument(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DocumentProcessorServiceTracingConnection::ReviewDocument( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::ReviewDocument"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ReviewDocument(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ReviewDocument(ExperimentalTag{}, operation)); } future< @@ -508,30 +485,28 @@ DocumentProcessorServiceTracingConnection::EvaluateProcessorVersion( StatusOr DocumentProcessorServiceTracingConnection::EvaluateProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& request) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "EvaluateProcessorVersion"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->EvaluateProcessorVersion( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->EvaluateProcessorVersion(ExperimentalTag{}, NoAwaitTag{}, + request)); } future< StatusOr> DocumentProcessorServiceTracingConnection::EvaluateProcessorVersion( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "documentai_v1::DocumentProcessorServiceConnection::" "EvaluateProcessorVersion"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->EvaluateProcessorVersion( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->EvaluateProcessorVersion( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/documentai/v1/internal/document_processor_tracing_connection.h b/google/cloud/documentai/v1/internal/document_processor_tracing_connection.h index 3be12585e6ae1..8b389d353f5e3 100644 --- a/google/cloud/documentai/v1/internal/document_processor_tracing_connection.h +++ b/google/cloud/documentai/v1/internal/document_processor_tracing_connection.h @@ -49,13 +49,13 @@ class DocumentProcessorServiceTracingConnection override; StatusOr BatchProcessDocuments( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::BatchProcessRequest const& request) override; future> BatchProcessDocuments( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -84,13 +84,13 @@ class DocumentProcessorServiceTracingConnection request) override; StatusOr TrainProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::TrainProcessorVersionRequest const& request) override; future> TrainProcessorVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetProcessorVersion( @@ -109,14 +109,14 @@ class DocumentProcessorServiceTracingConnection request) override; StatusOr DeleteProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeleteProcessorVersionRequest const& request) override; future< StatusOr> DeleteProcessorVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -126,14 +126,14 @@ class DocumentProcessorServiceTracingConnection request) override; StatusOr DeployProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeployProcessorVersionRequest const& request) override; future< StatusOr> DeployProcessorVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -143,14 +143,14 @@ class DocumentProcessorServiceTracingConnection request) override; StatusOr UndeployProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::UndeployProcessorVersionRequest const& request) override; future< StatusOr> UndeployProcessorVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateProcessor( @@ -162,12 +162,12 @@ class DocumentProcessorServiceTracingConnection request) override; StatusOr DeleteProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeleteProcessorRequest const& request) override; future> - DeleteProcessor(google::cloud::ExperimentalTag, + DeleteProcessor(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -175,12 +175,12 @@ class DocumentProcessorServiceTracingConnection request) override; StatusOr EnableProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::EnableProcessorRequest const& request) override; future> - EnableProcessor(google::cloud::ExperimentalTag, + EnableProcessor(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -188,12 +188,12 @@ class DocumentProcessorServiceTracingConnection request) override; StatusOr DisableProcessor( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DisableProcessorRequest const& request) override; future> - DisableProcessor(google::cloud::ExperimentalTag, + DisableProcessor(ExperimentalTag, google::longrunning::Operation const& operation) override; future SetDefaultProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& request) override; future> SetDefaultProcessorVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -218,12 +218,12 @@ class DocumentProcessorServiceTracingConnection request) override; StatusOr ReviewDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::ReviewDocumentRequest const& request) override; future> - ReviewDocument(google::cloud::ExperimentalTag, + ReviewDocument(ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -233,14 +233,14 @@ class DocumentProcessorServiceTracingConnection request) override; StatusOr EvaluateProcessorVersion( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& request) override; future< StatusOr> EvaluateProcessorVersion( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetEvaluation( diff --git a/google/cloud/documentai/v1/mocks/mock_document_processor_connection.h b/google/cloud/documentai/v1/mocks/mock_document_processor_connection.h index 429ad4d359526..64cbad6266834 100644 --- a/google/cloud/documentai/v1/mocks/mock_document_processor_connection.h +++ b/google/cloud/documentai/v1/mocks/mock_document_processor_connection.h @@ -60,15 +60,14 @@ class MockDocumentProcessorServiceConnection MOCK_METHOD( StatusOr, BatchProcessDocuments, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::BatchProcessRequest const& request), (override)); MOCK_METHOD( future>, BatchProcessDocuments, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -109,7 +108,7 @@ class MockDocumentProcessorServiceConnection MOCK_METHOD( StatusOr, TrainProcessorVersion, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::TrainProcessorVersionRequest const& request), (override)); @@ -118,8 +117,7 @@ class MockDocumentProcessorServiceConnection future>, TrainProcessorVersion, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, @@ -144,7 +142,7 @@ class MockDocumentProcessorServiceConnection MOCK_METHOD( StatusOr, DeleteProcessorVersion, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeleteProcessorVersionRequest const& request), (override)); @@ -153,8 +151,7 @@ class MockDocumentProcessorServiceConnection future>, DeleteProcessorVersion, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -167,7 +164,7 @@ class MockDocumentProcessorServiceConnection MOCK_METHOD( StatusOr, DeployProcessorVersion, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeployProcessorVersionRequest const& request), (override)); @@ -176,8 +173,7 @@ class MockDocumentProcessorServiceConnection future>, DeployProcessorVersion, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -190,7 +186,7 @@ class MockDocumentProcessorServiceConnection MOCK_METHOD( StatusOr, UndeployProcessorVersion, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::UndeployProcessorVersionRequest const& request), (override)); @@ -199,8 +195,7 @@ class MockDocumentProcessorServiceConnection future>, UndeployProcessorVersion, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -216,15 +211,14 @@ class MockDocumentProcessorServiceConnection MOCK_METHOD( StatusOr, DeleteProcessor, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeleteProcessorRequest const& request), (override)); MOCK_METHOD( future>, DeleteProcessor, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -235,15 +229,14 @@ class MockDocumentProcessorServiceConnection MOCK_METHOD( StatusOr, EnableProcessor, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::EnableProcessorRequest const& request), (override)); MOCK_METHOD( future>, EnableProcessor, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -254,15 +247,14 @@ class MockDocumentProcessorServiceConnection MOCK_METHOD( StatusOr, DisableProcessor, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DisableProcessorRequest const& request), (override)); MOCK_METHOD( future>, DisableProcessor, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -275,7 +267,7 @@ class MockDocumentProcessorServiceConnection MOCK_METHOD( StatusOr, SetDefaultProcessorVersion, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& request), (override)); @@ -284,8 +276,7 @@ class MockDocumentProcessorServiceConnection future>, SetDefaultProcessorVersion, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -296,15 +287,14 @@ class MockDocumentProcessorServiceConnection MOCK_METHOD( StatusOr, ReviewDocument, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::ReviewDocumentRequest const& request), (override)); MOCK_METHOD( future>, ReviewDocument, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -317,7 +307,7 @@ class MockDocumentProcessorServiceConnection MOCK_METHOD( StatusOr, EvaluateProcessorVersion, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& request), (override)); @@ -326,8 +316,7 @@ class MockDocumentProcessorServiceConnection future>, EvaluateProcessorVersion, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/domains/v1/internal/domains_connection_impl.cc b/google/cloud/domains/v1/internal/domains_connection_impl.cc index 3379fd9d3e037..9ed4285f828aa 100644 --- a/google/cloud/domains/v1/internal/domains_connection_impl.cc +++ b/google/cloud/domains/v1/internal/domains_connection_impl.cc @@ -133,7 +133,7 @@ DomainsConnectionImpl::RegisterDomain( } StatusOr DomainsConnectionImpl::RegisterDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::domains::v1::RegisterDomainRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -148,8 +148,7 @@ StatusOr DomainsConnectionImpl::RegisterDomain( future> DomainsConnectionImpl::RegisterDomain( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -241,7 +240,7 @@ DomainsConnectionImpl::TransferDomain( } StatusOr DomainsConnectionImpl::TransferDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::domains::v1::TransferDomainRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -256,8 +255,7 @@ StatusOr DomainsConnectionImpl::TransferDomain( future> DomainsConnectionImpl::TransferDomain( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -383,7 +381,7 @@ DomainsConnectionImpl::UpdateRegistration( StatusOr DomainsConnectionImpl::UpdateRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::domains::v1::UpdateRegistrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -399,8 +397,7 @@ DomainsConnectionImpl::UpdateRegistration( future> DomainsConnectionImpl::UpdateRegistration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -478,7 +475,7 @@ DomainsConnectionImpl::ConfigureManagementSettings( StatusOr DomainsConnectionImpl::ConfigureManagementSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::domains::v1::ConfigureManagementSettingsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -496,8 +493,7 @@ DomainsConnectionImpl::ConfigureManagementSettings( future> DomainsConnectionImpl::ConfigureManagementSettings( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -574,7 +570,7 @@ DomainsConnectionImpl::ConfigureDnsSettings( StatusOr DomainsConnectionImpl::ConfigureDnsSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -590,8 +586,7 @@ DomainsConnectionImpl::ConfigureDnsSettings( future> DomainsConnectionImpl::ConfigureDnsSettings( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -669,7 +664,7 @@ DomainsConnectionImpl::ConfigureContactSettings( StatusOr DomainsConnectionImpl::ConfigureContactSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::domains::v1::ConfigureContactSettingsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -686,8 +681,7 @@ DomainsConnectionImpl::ConfigureContactSettings( future> DomainsConnectionImpl::ConfigureContactSettings( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -764,7 +758,7 @@ DomainsConnectionImpl::ExportRegistration( StatusOr DomainsConnectionImpl::ExportRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::domains::v1::ExportRegistrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -780,8 +774,7 @@ DomainsConnectionImpl::ExportRegistration( future> DomainsConnectionImpl::ExportRegistration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -858,7 +851,7 @@ DomainsConnectionImpl::DeleteRegistration( StatusOr DomainsConnectionImpl::DeleteRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::domains::v1::DeleteRegistrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -874,8 +867,7 @@ DomainsConnectionImpl::DeleteRegistration( future> DomainsConnectionImpl::DeleteRegistration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/domains/v1/internal/domains_connection_impl.h b/google/cloud/domains/v1/internal/domains_connection_impl.h index e4720e77179a1..c7b1421647681 100644 --- a/google/cloud/domains/v1/internal/domains_connection_impl.h +++ b/google/cloud/domains/v1/internal/domains_connection_impl.h @@ -63,12 +63,12 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { override; StatusOr RegisterDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::domains::v1::RegisterDomainRequest const& request) override; future> RegisterDomain( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -81,12 +81,12 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { override; StatusOr TransferDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::domains::v1::TransferDomainRequest const& request) override; future> TransferDomain( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListRegistrations( @@ -101,12 +101,12 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { override; StatusOr UpdateRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::domains::v1::UpdateRegistrationRequest const& request) override; future> UpdateRegistration( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -115,13 +115,13 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { request) override; StatusOr ConfigureManagementSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::domains::v1::ConfigureManagementSettingsRequest const& request) override; future> ConfigureManagementSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -130,13 +130,13 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { override; StatusOr ConfigureDnsSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request) override; future> ConfigureDnsSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -145,13 +145,13 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { request) override; StatusOr ConfigureContactSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::domains::v1::ConfigureContactSettingsRequest const& request) override; future> ConfigureContactSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ExportRegistration( @@ -159,12 +159,12 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { override; StatusOr ExportRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::domains::v1::ExportRegistrationRequest const& request) override; future> ExportRegistration( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -173,12 +173,12 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { override; StatusOr DeleteRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::domains::v1::DeleteRegistrationRequest const& request) override; future> - DeleteRegistration(google::cloud::ExperimentalTag, + DeleteRegistration(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/domains/v1/internal/domains_tracing_connection.cc b/google/cloud/domains/v1/internal/domains_tracing_connection.cc index bceed950753e9..ed75bda284621 100644 --- a/google/cloud/domains/v1/internal/domains_tracing_connection.cc +++ b/google/cloud/domains/v1/internal/domains_tracing_connection.cc @@ -63,26 +63,23 @@ DomainsTracingConnection::RegisterDomain( StatusOr DomainsTracingConnection::RegisterDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::RegisterDomainRequest const& request) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::RegisterDomain"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RegisterDomain(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RegisterDomain(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DomainsTracingConnection::RegisterDomain( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::RegisterDomain"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RegisterDomain(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RegisterDomain(ExperimentalTag{}, operation)); } StatusOr @@ -106,26 +103,23 @@ DomainsTracingConnection::TransferDomain( StatusOr DomainsTracingConnection::TransferDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::TransferDomainRequest const& request) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::TransferDomain"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->TransferDomain(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->TransferDomain(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DomainsTracingConnection::TransferDomain( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::TransferDomain"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->TransferDomain(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->TransferDomain(ExperimentalTag{}, operation)); } StreamRange @@ -160,26 +154,24 @@ DomainsTracingConnection::UpdateRegistration( StatusOr DomainsTracingConnection::UpdateRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::UpdateRegistrationRequest const& request) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::UpdateRegistration"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateRegistration(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateRegistration(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DomainsTracingConnection::UpdateRegistration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::UpdateRegistration"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateRegistration(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateRegistration( + ExperimentalTag{}, operation)); } future> @@ -195,27 +187,25 @@ DomainsTracingConnection::ConfigureManagementSettings( StatusOr DomainsTracingConnection::ConfigureManagementSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureManagementSettingsRequest const& request) { auto span = internal::MakeSpan( "domains_v1::DomainsConnection::ConfigureManagementSettings"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ConfigureManagementSettings( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->ConfigureManagementSettings(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> DomainsTracingConnection::ConfigureManagementSettings( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "domains_v1::DomainsConnection::ConfigureManagementSettings"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ConfigureManagementSettings( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ConfigureManagementSettings( + ExperimentalTag{}, operation)); } future> @@ -230,26 +220,24 @@ DomainsTracingConnection::ConfigureDnsSettings( StatusOr DomainsTracingConnection::ConfigureDnsSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::ConfigureDnsSettings"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ConfigureDnsSettings( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->ConfigureDnsSettings(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DomainsTracingConnection::ConfigureDnsSettings( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::ConfigureDnsSettings"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ConfigureDnsSettings( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ConfigureDnsSettings( + ExperimentalTag{}, operation)); } future> @@ -265,27 +253,25 @@ DomainsTracingConnection::ConfigureContactSettings( StatusOr DomainsTracingConnection::ConfigureContactSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureContactSettingsRequest const& request) { auto span = internal::MakeSpan( "domains_v1::DomainsConnection::ConfigureContactSettings"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ConfigureContactSettings( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->ConfigureContactSettings(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DomainsTracingConnection::ConfigureContactSettings( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "domains_v1::DomainsConnection::ConfigureContactSettings"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ConfigureContactSettings( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ConfigureContactSettings( + ExperimentalTag{}, operation)); } future> @@ -300,26 +286,24 @@ DomainsTracingConnection::ExportRegistration( StatusOr DomainsTracingConnection::ExportRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ExportRegistrationRequest const& request) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::ExportRegistration"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportRegistration(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ExportRegistration(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DomainsTracingConnection::ExportRegistration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::ExportRegistration"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ExportRegistration(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ExportRegistration( + ExperimentalTag{}, operation)); } future> @@ -334,26 +318,24 @@ DomainsTracingConnection::DeleteRegistration( StatusOr DomainsTracingConnection::DeleteRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::DeleteRegistrationRequest const& request) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::DeleteRegistration"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteRegistration(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteRegistration(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DomainsTracingConnection::DeleteRegistration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("domains_v1::DomainsConnection::DeleteRegistration"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteRegistration(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteRegistration( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/domains/v1/internal/domains_tracing_connection.h b/google/cloud/domains/v1/internal/domains_tracing_connection.h index ec9645e262449..ceb17bed3b14f 100644 --- a/google/cloud/domains/v1/internal/domains_tracing_connection.h +++ b/google/cloud/domains/v1/internal/domains_tracing_connection.h @@ -52,12 +52,12 @@ class DomainsTracingConnection : public domains_v1::DomainsConnection { override; StatusOr RegisterDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::RegisterDomainRequest const& request) override; future> RegisterDomain( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -70,12 +70,12 @@ class DomainsTracingConnection : public domains_v1::DomainsConnection { override; StatusOr TransferDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::TransferDomainRequest const& request) override; future> TransferDomain( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListRegistrations( @@ -90,12 +90,12 @@ class DomainsTracingConnection : public domains_v1::DomainsConnection { override; StatusOr UpdateRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::UpdateRegistrationRequest const& request) override; future> UpdateRegistration( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -104,13 +104,13 @@ class DomainsTracingConnection : public domains_v1::DomainsConnection { request) override; StatusOr ConfigureManagementSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureManagementSettingsRequest const& request) override; future> ConfigureManagementSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -119,13 +119,13 @@ class DomainsTracingConnection : public domains_v1::DomainsConnection { override; StatusOr ConfigureDnsSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request) override; future> ConfigureDnsSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -134,13 +134,13 @@ class DomainsTracingConnection : public domains_v1::DomainsConnection { request) override; StatusOr ConfigureContactSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureContactSettingsRequest const& request) override; future> ConfigureContactSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ExportRegistration( @@ -148,12 +148,12 @@ class DomainsTracingConnection : public domains_v1::DomainsConnection { override; StatusOr ExportRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ExportRegistrationRequest const& request) override; future> ExportRegistration( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -162,12 +162,12 @@ class DomainsTracingConnection : public domains_v1::DomainsConnection { override; StatusOr DeleteRegistration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::DeleteRegistrationRequest const& request) override; future> - DeleteRegistration(google::cloud::ExperimentalTag, + DeleteRegistration(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/domains/v1/mocks/mock_domains_connection.h b/google/cloud/domains/v1/mocks/mock_domains_connection.h index 86fe6ec3f6c21..e93b35174dae9 100644 --- a/google/cloud/domains/v1/mocks/mock_domains_connection.h +++ b/google/cloud/domains/v1/mocks/mock_domains_connection.h @@ -66,13 +66,13 @@ class MockDomainsConnection : public domains_v1::DomainsConnection { MOCK_METHOD( StatusOr, RegisterDomain, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::RegisterDomainRequest const& request), (override)); MOCK_METHOD(future>, RegisterDomain, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -91,13 +91,13 @@ class MockDomainsConnection : public domains_v1::DomainsConnection { MOCK_METHOD( StatusOr, TransferDomain, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::TransferDomainRequest const& request), (override)); MOCK_METHOD(future>, TransferDomain, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -119,13 +119,13 @@ class MockDomainsConnection : public domains_v1::DomainsConnection { MOCK_METHOD( StatusOr, UpdateRegistration, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::UpdateRegistrationRequest const& request), (override)); MOCK_METHOD(future>, UpdateRegistration, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -138,14 +138,14 @@ class MockDomainsConnection : public domains_v1::DomainsConnection { MOCK_METHOD( StatusOr, ConfigureManagementSettings, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureManagementSettingsRequest const& request), (override)); MOCK_METHOD(future>, ConfigureManagementSettings, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -157,13 +157,13 @@ class MockDomainsConnection : public domains_v1::DomainsConnection { MOCK_METHOD( StatusOr, ConfigureDnsSettings, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request), (override)); MOCK_METHOD(future>, ConfigureDnsSettings, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -176,14 +176,14 @@ class MockDomainsConnection : public domains_v1::DomainsConnection { MOCK_METHOD( StatusOr, ConfigureContactSettings, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureContactSettingsRequest const& request), (override)); MOCK_METHOD(future>, ConfigureContactSettings, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -195,13 +195,13 @@ class MockDomainsConnection : public domains_v1::DomainsConnection { MOCK_METHOD( StatusOr, ExportRegistration, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ExportRegistrationRequest const& request), (override)); MOCK_METHOD(future>, ExportRegistration, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -213,13 +213,13 @@ class MockDomainsConnection : public domains_v1::DomainsConnection { MOCK_METHOD( StatusOr, DeleteRegistration, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::DeleteRegistrationRequest const& request), (override)); MOCK_METHOD(future>, DeleteRegistration, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.cc b/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.cc index b30be8fd77f34..2fd1394a57c54 100644 --- a/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.cc +++ b/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.cc @@ -158,7 +158,7 @@ EdgeContainerConnectionImpl::CreateCluster( StatusOr EdgeContainerConnectionImpl::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::CreateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -174,8 +174,7 @@ EdgeContainerConnectionImpl::CreateCluster( future> EdgeContainerConnectionImpl::CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EdgeContainerConnectionImpl::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::UpdateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -269,8 +268,7 @@ EdgeContainerConnectionImpl::UpdateCluster( future> EdgeContainerConnectionImpl::UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EdgeContainerConnectionImpl::UpgradeCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -364,8 +362,7 @@ EdgeContainerConnectionImpl::UpgradeCluster( future> EdgeContainerConnectionImpl::UpgradeCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EdgeContainerConnectionImpl::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::DeleteClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -459,8 +456,7 @@ EdgeContainerConnectionImpl::DeleteCluster( future> EdgeContainerConnectionImpl::DeleteCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EdgeContainerConnectionImpl::CreateNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -635,8 +631,7 @@ EdgeContainerConnectionImpl::CreateNodePool( future> EdgeContainerConnectionImpl::CreateNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EdgeContainerConnectionImpl::UpdateNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -730,8 +725,7 @@ EdgeContainerConnectionImpl::UpdateNodePool( future> EdgeContainerConnectionImpl::UpdateNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EdgeContainerConnectionImpl::DeleteNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -825,8 +819,7 @@ EdgeContainerConnectionImpl::DeleteNodePool( future> EdgeContainerConnectionImpl::DeleteNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EdgeContainerConnectionImpl::CreateVpnConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1021,8 +1014,7 @@ EdgeContainerConnectionImpl::CreateVpnConnection( future> EdgeContainerConnectionImpl::CreateVpnConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is EdgeContainerConnectionImpl::DeleteVpnConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1118,8 +1110,7 @@ EdgeContainerConnectionImpl::DeleteVpnConnection( future> EdgeContainerConnectionImpl::DeleteVpnConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::CreateClusterRequest const& request) override; future> CreateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateCluster( @@ -77,12 +77,12 @@ class EdgeContainerConnectionImpl override; StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::UpdateClusterRequest const& request) override; future> UpdateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpgradeCluster( @@ -90,12 +90,12 @@ class EdgeContainerConnectionImpl override; StatusOr UpgradeCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request) override; future> UpgradeCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -103,12 +103,12 @@ class EdgeContainerConnectionImpl request) override; StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::DeleteClusterRequest const& request) override; future> - DeleteCluster(google::cloud::ExperimentalTag, + DeleteCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -133,12 +133,12 @@ class EdgeContainerConnectionImpl override; StatusOr CreateNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request) override; future> CreateNodePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateNodePool( @@ -146,12 +146,12 @@ class EdgeContainerConnectionImpl override; StatusOr UpdateNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request) override; future> UpdateNodePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -159,12 +159,12 @@ class EdgeContainerConnectionImpl request) override; StatusOr DeleteNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request) override; future> - DeleteNodePool(google::cloud::ExperimentalTag, + DeleteNodePool(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListMachines( @@ -188,12 +188,12 @@ class EdgeContainerConnectionImpl request) override; StatusOr CreateVpnConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& request) override; future> - CreateVpnConnection(google::cloud::ExperimentalTag, + CreateVpnConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -202,12 +202,12 @@ class EdgeContainerConnectionImpl request) override; StatusOr DeleteVpnConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& request) override; future> - DeleteVpnConnection(google::cloud::ExperimentalTag, + DeleteVpnConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetServerConfig( diff --git a/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.cc b/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.cc index 468b32bb17722..083f2b834cd96 100644 --- a/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.cc +++ b/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.cc @@ -65,26 +65,23 @@ EdgeContainerTracingConnection::CreateCluster( StatusOr EdgeContainerTracingConnection::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateClusterRequest const& request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::CreateCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeContainerTracingConnection::CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::CreateCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateCluster(ExperimentalTag{}, operation)); } future> @@ -98,26 +95,23 @@ EdgeContainerTracingConnection::UpdateCluster( StatusOr EdgeContainerTracingConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpdateClusterRequest const& request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::UpdateCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeContainerTracingConnection::UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::UpdateCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateCluster(ExperimentalTag{}, operation)); } future> @@ -131,26 +125,23 @@ EdgeContainerTracingConnection::UpgradeCluster( StatusOr EdgeContainerTracingConnection::UpgradeCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::UpgradeCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpgradeCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpgradeCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeContainerTracingConnection::UpgradeCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::UpgradeCluster"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpgradeCluster(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpgradeCluster(ExperimentalTag{}, operation)); } future> @@ -164,26 +155,23 @@ EdgeContainerTracingConnection::DeleteCluster( StatusOr EdgeContainerTracingConnection::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteClusterRequest const& request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::DeleteCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeContainerTracingConnection::DeleteCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::DeleteCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteCluster(ExperimentalTag{}, operation)); } StatusOr @@ -238,26 +226,23 @@ EdgeContainerTracingConnection::CreateNodePool( StatusOr EdgeContainerTracingConnection::CreateNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::CreateNodePool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateNodePool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateNodePool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeContainerTracingConnection::CreateNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::CreateNodePool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateNodePool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateNodePool(ExperimentalTag{}, operation)); } future> @@ -271,26 +256,23 @@ EdgeContainerTracingConnection::UpdateNodePool( StatusOr EdgeContainerTracingConnection::UpdateNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::UpdateNodePool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateNodePool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateNodePool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeContainerTracingConnection::UpdateNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::UpdateNodePool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateNodePool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateNodePool(ExperimentalTag{}, operation)); } future> @@ -304,26 +286,23 @@ EdgeContainerTracingConnection::DeleteNodePool( StatusOr EdgeContainerTracingConnection::DeleteNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::DeleteNodePool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteNodePool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteNodePool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeContainerTracingConnection::DeleteNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::DeleteNodePool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteNodePool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteNodePool(ExperimentalTag{}, operation)); } StreamRange @@ -381,27 +360,25 @@ EdgeContainerTracingConnection::CreateVpnConnection( StatusOr EdgeContainerTracingConnection::CreateVpnConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::CreateVpnConnection"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateVpnConnection(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateVpnConnection(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeContainerTracingConnection::CreateVpnConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::CreateVpnConnection"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateVpnConnection(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateVpnConnection( + ExperimentalTag{}, operation)); } future> @@ -417,27 +394,25 @@ EdgeContainerTracingConnection::DeleteVpnConnection( StatusOr EdgeContainerTracingConnection::DeleteVpnConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& request) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::DeleteVpnConnection"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteVpnConnection(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteVpnConnection(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeContainerTracingConnection::DeleteVpnConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "edgecontainer_v1::EdgeContainerConnection::DeleteVpnConnection"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteVpnConnection(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteVpnConnection( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.h b/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.h index 50fa59350e97c..b39ee073f1eb6 100644 --- a/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.h +++ b/google/cloud/edgecontainer/v1/internal/edge_container_tracing_connection.h @@ -52,12 +52,12 @@ class EdgeContainerTracingConnection override; StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateClusterRequest const& request) override; future> CreateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateCluster( @@ -65,12 +65,12 @@ class EdgeContainerTracingConnection override; StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpdateClusterRequest const& request) override; future> UpdateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpgradeCluster( @@ -78,12 +78,12 @@ class EdgeContainerTracingConnection override; StatusOr UpgradeCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request) override; future> UpgradeCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -91,12 +91,12 @@ class EdgeContainerTracingConnection request) override; StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteClusterRequest const& request) override; future> - DeleteCluster(google::cloud::ExperimentalTag, + DeleteCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -121,12 +121,12 @@ class EdgeContainerTracingConnection override; StatusOr CreateNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request) override; future> CreateNodePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateNodePool( @@ -134,12 +134,12 @@ class EdgeContainerTracingConnection override; StatusOr UpdateNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request) override; future> UpdateNodePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -147,12 +147,12 @@ class EdgeContainerTracingConnection request) override; StatusOr DeleteNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request) override; future> - DeleteNodePool(google::cloud::ExperimentalTag, + DeleteNodePool(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListMachines( @@ -176,12 +176,12 @@ class EdgeContainerTracingConnection request) override; StatusOr CreateVpnConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& request) override; future> - CreateVpnConnection(google::cloud::ExperimentalTag, + CreateVpnConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -190,12 +190,12 @@ class EdgeContainerTracingConnection request) override; StatusOr DeleteVpnConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& request) override; future> - DeleteVpnConnection(google::cloud::ExperimentalTag, + DeleteVpnConnection(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetServerConfig( diff --git a/google/cloud/edgecontainer/v1/mocks/mock_edge_container_connection.h b/google/cloud/edgecontainer/v1/mocks/mock_edge_container_connection.h index 47dc0ac675668..1bf20b377e3f2 100644 --- a/google/cloud/edgecontainer/v1/mocks/mock_edge_container_connection.h +++ b/google/cloud/edgecontainer/v1/mocks/mock_edge_container_connection.h @@ -65,13 +65,13 @@ class MockEdgeContainerConnection MOCK_METHOD( StatusOr, CreateCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateClusterRequest const& request), (override)); MOCK_METHOD(future>, CreateCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -83,13 +83,13 @@ class MockEdgeContainerConnection MOCK_METHOD( StatusOr, UpdateCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpdateClusterRequest const& request), (override)); MOCK_METHOD(future>, UpdateCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -101,13 +101,13 @@ class MockEdgeContainerConnection MOCK_METHOD( StatusOr, UpgradeCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request), (override)); MOCK_METHOD(future>, UpgradeCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -119,15 +119,14 @@ class MockEdgeContainerConnection MOCK_METHOD( StatusOr, DeleteCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteClusterRequest const& request), (override)); MOCK_METHOD( future>, DeleteCluster, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -163,13 +162,13 @@ class MockEdgeContainerConnection MOCK_METHOD( StatusOr, CreateNodePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request), (override)); MOCK_METHOD(future>, CreateNodePool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -181,13 +180,13 @@ class MockEdgeContainerConnection MOCK_METHOD( StatusOr, UpdateNodePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request), (override)); MOCK_METHOD(future>, UpdateNodePool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -199,15 +198,14 @@ class MockEdgeContainerConnection MOCK_METHOD( StatusOr, DeleteNodePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request), (override)); MOCK_METHOD( future>, DeleteNodePool, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), @@ -241,14 +239,14 @@ class MockEdgeContainerConnection MOCK_METHOD( StatusOr, CreateVpnConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& request), (override)); MOCK_METHOD(future>, CreateVpnConnection, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -261,7 +259,7 @@ class MockEdgeContainerConnection MOCK_METHOD( StatusOr, DeleteVpnConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& request), (override)); @@ -269,8 +267,7 @@ class MockEdgeContainerConnection MOCK_METHOD( future>, DeleteVpnConnection, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.cc b/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.cc index e964da375933e..7583d63e9c041 100644 --- a/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.cc +++ b/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.cc @@ -231,7 +231,7 @@ EdgeNetworkConnectionImpl::CreateNetwork( StatusOr EdgeNetworkConnectionImpl::CreateNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::CreateNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -247,8 +247,7 @@ EdgeNetworkConnectionImpl::CreateNetwork( future> EdgeNetworkConnectionImpl::CreateNetwork( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -323,7 +322,7 @@ EdgeNetworkConnectionImpl::DeleteNetwork( StatusOr EdgeNetworkConnectionImpl::DeleteNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -339,8 +338,7 @@ EdgeNetworkConnectionImpl::DeleteNetwork( future> EdgeNetworkConnectionImpl::DeleteNetwork( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -464,7 +462,7 @@ EdgeNetworkConnectionImpl::CreateSubnet( StatusOr EdgeNetworkConnectionImpl::CreateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::CreateSubnetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -480,8 +478,7 @@ EdgeNetworkConnectionImpl::CreateSubnet( future> EdgeNetworkConnectionImpl::CreateSubnet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -556,7 +553,7 @@ EdgeNetworkConnectionImpl::UpdateSubnet( StatusOr EdgeNetworkConnectionImpl::UpdateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -572,8 +569,7 @@ EdgeNetworkConnectionImpl::UpdateSubnet( future> EdgeNetworkConnectionImpl::UpdateSubnet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -648,7 +644,7 @@ EdgeNetworkConnectionImpl::DeleteSubnet( StatusOr EdgeNetworkConnectionImpl::DeleteSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -664,8 +660,7 @@ EdgeNetworkConnectionImpl::DeleteSubnet( future> EdgeNetworkConnectionImpl::DeleteSubnet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -863,7 +858,7 @@ EdgeNetworkConnectionImpl::CreateInterconnectAttachment( StatusOr EdgeNetworkConnectionImpl::CreateInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -880,8 +875,7 @@ EdgeNetworkConnectionImpl::CreateInterconnectAttachment( future> EdgeNetworkConnectionImpl::CreateInterconnectAttachment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -958,7 +952,7 @@ EdgeNetworkConnectionImpl::DeleteInterconnectAttachment( StatusOr EdgeNetworkConnectionImpl::DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -975,8 +969,7 @@ EdgeNetworkConnectionImpl::DeleteInterconnectAttachment( future> EdgeNetworkConnectionImpl::DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1115,7 +1108,7 @@ EdgeNetworkConnectionImpl::CreateRouter( StatusOr EdgeNetworkConnectionImpl::CreateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::CreateRouterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1131,8 +1124,7 @@ EdgeNetworkConnectionImpl::CreateRouter( future> EdgeNetworkConnectionImpl::CreateRouter( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1207,7 +1199,7 @@ EdgeNetworkConnectionImpl::UpdateRouter( StatusOr EdgeNetworkConnectionImpl::UpdateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::UpdateRouterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1223,8 +1215,7 @@ EdgeNetworkConnectionImpl::UpdateRouter( future> EdgeNetworkConnectionImpl::UpdateRouter( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1299,7 +1290,7 @@ EdgeNetworkConnectionImpl::DeleteRouter( StatusOr EdgeNetworkConnectionImpl::DeleteRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::DeleteRouterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1315,8 +1306,7 @@ EdgeNetworkConnectionImpl::DeleteRouter( future> EdgeNetworkConnectionImpl::DeleteRouter( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.h b/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.h index 0f9dad24dcd6c..ee54be80ec140 100644 --- a/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.h +++ b/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.h @@ -77,12 +77,12 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { override; StatusOr CreateNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::CreateNetworkRequest const& request) override; future> CreateNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -90,12 +90,12 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { request) override; StatusOr DeleteNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request) override; future> - DeleteNetwork(google::cloud::ExperimentalTag, + DeleteNetwork(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListSubnets( @@ -109,12 +109,12 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { override; StatusOr CreateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::CreateSubnetRequest const& request) override; future> CreateSubnet( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateSubnet( @@ -122,12 +122,12 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { override; StatusOr UpdateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request) override; future> UpdateSubnet( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -135,12 +135,12 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { request) override; StatusOr DeleteSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request) override; future> - DeleteSubnet(google::cloud::ExperimentalTag, + DeleteSubnet(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListInterconnects( @@ -172,13 +172,13 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { request) override; StatusOr CreateInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const& request) override; future> CreateInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -187,13 +187,13 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { request) override; StatusOr DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& request) override; future> DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListRouters( @@ -211,12 +211,12 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { override; StatusOr CreateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::CreateRouterRequest const& request) override; future> CreateRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateRouter( @@ -224,12 +224,12 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { override; StatusOr UpdateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::UpdateRouterRequest const& request) override; future> UpdateRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -237,12 +237,12 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { request) override; StatusOr DeleteRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::edgenetwork::v1::DeleteRouterRequest const& request) override; future> - DeleteRouter(google::cloud::ExperimentalTag, + DeleteRouter(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.cc b/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.cc index 39961d5b0eb83..cb4fb62912943 100644 --- a/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.cc +++ b/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.cc @@ -102,26 +102,23 @@ EdgeNetworkTracingConnection::CreateNetwork( StatusOr EdgeNetworkTracingConnection::CreateNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateNetworkRequest const& request) { auto span = internal::MakeSpan( "edgenetwork_v1::EdgeNetworkConnection::CreateNetwork"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateNetwork(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateNetwork(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeNetworkTracingConnection::CreateNetwork( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "edgenetwork_v1::EdgeNetworkConnection::CreateNetwork"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateNetwork(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateNetwork(ExperimentalTag{}, operation)); } future> @@ -135,26 +132,23 @@ EdgeNetworkTracingConnection::DeleteNetwork( StatusOr EdgeNetworkTracingConnection::DeleteNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request) { auto span = internal::MakeSpan( "edgenetwork_v1::EdgeNetworkConnection::DeleteNetwork"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteNetwork(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteNetwork(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeNetworkTracingConnection::DeleteNetwork( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "edgenetwork_v1::EdgeNetworkConnection::DeleteNetwork"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteNetwork(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteNetwork(ExperimentalTag{}, operation)); } StreamRange @@ -188,26 +182,23 @@ EdgeNetworkTracingConnection::CreateSubnet( StatusOr EdgeNetworkTracingConnection::CreateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateSubnetRequest const& request) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::CreateSubnet"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateSubnet(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateSubnet(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeNetworkTracingConnection::CreateSubnet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::CreateSubnet"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateSubnet(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateSubnet(ExperimentalTag{}, operation)); } future> @@ -221,26 +212,23 @@ EdgeNetworkTracingConnection::UpdateSubnet( StatusOr EdgeNetworkTracingConnection::UpdateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::UpdateSubnet"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateSubnet(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateSubnet(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeNetworkTracingConnection::UpdateSubnet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::UpdateSubnet"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateSubnet(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateSubnet(ExperimentalTag{}, operation)); } future> @@ -254,26 +242,23 @@ EdgeNetworkTracingConnection::DeleteSubnet( StatusOr EdgeNetworkTracingConnection::DeleteSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::DeleteSubnet"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSubnet(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteSubnet(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeNetworkTracingConnection::DeleteSubnet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::DeleteSubnet"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteSubnet(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteSubnet(ExperimentalTag{}, operation)); } StreamRange @@ -343,27 +328,26 @@ EdgeNetworkTracingConnection::CreateInterconnectAttachment( StatusOr EdgeNetworkTracingConnection::CreateInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const& request) { auto span = internal::MakeSpan( "edgenetwork_v1::EdgeNetworkConnection::CreateInterconnectAttachment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateInterconnectAttachment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateInterconnectAttachment(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> EdgeNetworkTracingConnection::CreateInterconnectAttachment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "edgenetwork_v1::EdgeNetworkConnection::CreateInterconnectAttachment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateInterconnectAttachment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->CreateInterconnectAttachment(ExperimentalTag{}, operation)); } future> @@ -379,27 +363,26 @@ EdgeNetworkTracingConnection::DeleteInterconnectAttachment( StatusOr EdgeNetworkTracingConnection::DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& request) { auto span = internal::MakeSpan( "edgenetwork_v1::EdgeNetworkConnection::DeleteInterconnectAttachment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteInterconnectAttachment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteInterconnectAttachment(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> EdgeNetworkTracingConnection::DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "edgenetwork_v1::EdgeNetworkConnection::DeleteInterconnectAttachment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteInterconnectAttachment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->DeleteInterconnectAttachment(ExperimentalTag{}, operation)); } StreamRange @@ -442,26 +425,23 @@ EdgeNetworkTracingConnection::CreateRouter( StatusOr EdgeNetworkTracingConnection::CreateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateRouterRequest const& request) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::CreateRouter"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateRouter(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateRouter(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeNetworkTracingConnection::CreateRouter( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::CreateRouter"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateRouter(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateRouter(ExperimentalTag{}, operation)); } future> @@ -475,26 +455,23 @@ EdgeNetworkTracingConnection::UpdateRouter( StatusOr EdgeNetworkTracingConnection::UpdateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::UpdateRouterRequest const& request) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::UpdateRouter"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateRouter(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateRouter(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeNetworkTracingConnection::UpdateRouter( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::UpdateRouter"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateRouter(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateRouter(ExperimentalTag{}, operation)); } future> @@ -508,26 +485,23 @@ EdgeNetworkTracingConnection::DeleteRouter( StatusOr EdgeNetworkTracingConnection::DeleteRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteRouterRequest const& request) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::DeleteRouter"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteRouter(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteRouter(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EdgeNetworkTracingConnection::DeleteRouter( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("edgenetwork_v1::EdgeNetworkConnection::DeleteRouter"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteRouter(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteRouter(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.h b/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.h index 2c03ac0e906b3..1bbf47dae6a12 100644 --- a/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.h +++ b/google/cloud/edgenetwork/v1/internal/edge_network_tracing_connection.h @@ -66,12 +66,12 @@ class EdgeNetworkTracingConnection override; StatusOr CreateNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateNetworkRequest const& request) override; future> CreateNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -79,12 +79,12 @@ class EdgeNetworkTracingConnection request) override; StatusOr DeleteNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request) override; future> - DeleteNetwork(google::cloud::ExperimentalTag, + DeleteNetwork(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListSubnets( @@ -98,12 +98,12 @@ class EdgeNetworkTracingConnection override; StatusOr CreateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateSubnetRequest const& request) override; future> CreateSubnet( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateSubnet( @@ -111,12 +111,12 @@ class EdgeNetworkTracingConnection override; StatusOr UpdateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request) override; future> UpdateSubnet( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -124,12 +124,12 @@ class EdgeNetworkTracingConnection request) override; StatusOr DeleteSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request) override; future> - DeleteSubnet(google::cloud::ExperimentalTag, + DeleteSubnet(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListInterconnects( @@ -161,13 +161,13 @@ class EdgeNetworkTracingConnection request) override; StatusOr CreateInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const& request) override; future> CreateInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -176,13 +176,13 @@ class EdgeNetworkTracingConnection request) override; StatusOr DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& request) override; future> DeleteInterconnectAttachment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListRouters( @@ -200,12 +200,12 @@ class EdgeNetworkTracingConnection override; StatusOr CreateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateRouterRequest const& request) override; future> CreateRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateRouter( @@ -213,12 +213,12 @@ class EdgeNetworkTracingConnection override; StatusOr UpdateRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::UpdateRouterRequest const& request) override; future> UpdateRouter( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -226,12 +226,12 @@ class EdgeNetworkTracingConnection request) override; StatusOr DeleteRouter( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteRouterRequest const& request) override; future> - DeleteRouter(google::cloud::ExperimentalTag, + DeleteRouter(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/edgenetwork/v1/mocks/mock_edge_network_connection.h b/google/cloud/edgenetwork/v1/mocks/mock_edge_network_connection.h index ac6f238ac204a..4480dbd841afd 100644 --- a/google/cloud/edgenetwork/v1/mocks/mock_edge_network_connection.h +++ b/google/cloud/edgenetwork/v1/mocks/mock_edge_network_connection.h @@ -83,13 +83,13 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { MOCK_METHOD( StatusOr, CreateNetwork, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateNetworkRequest const& request), (override)); MOCK_METHOD(future>, CreateNetwork, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -101,15 +101,14 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { MOCK_METHOD( StatusOr, DeleteNetwork, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request), (override)); MOCK_METHOD( future>, DeleteNetwork, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), @@ -128,13 +127,13 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { MOCK_METHOD( StatusOr, CreateSubnet, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateSubnetRequest const& request), (override)); MOCK_METHOD(future>, CreateSubnet, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -145,13 +144,13 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { MOCK_METHOD( StatusOr, UpdateSubnet, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request), (override)); MOCK_METHOD(future>, UpdateSubnet, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -163,15 +162,14 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { MOCK_METHOD( StatusOr, DeleteSubnet, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request), (override)); MOCK_METHOD( future>, DeleteSubnet, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -215,7 +213,7 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { MOCK_METHOD(StatusOr, CreateInterconnectAttachment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1:: CreateInterconnectAttachmentRequest const& request), (override)); @@ -223,8 +221,7 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { MOCK_METHOD( future>, CreateInterconnectAttachment, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -236,7 +233,7 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { MOCK_METHOD(StatusOr, DeleteInterconnectAttachment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1:: DeleteInterconnectAttachmentRequest const& request), (override)); @@ -244,8 +241,7 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { MOCK_METHOD( future>, DeleteInterconnectAttachment, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), @@ -270,13 +266,13 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { MOCK_METHOD( StatusOr, CreateRouter, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateRouterRequest const& request), (override)); MOCK_METHOD(future>, CreateRouter, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -287,13 +283,13 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { MOCK_METHOD( StatusOr, UpdateRouter, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::UpdateRouterRequest const& request), (override)); MOCK_METHOD(future>, UpdateRouter, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -305,15 +301,14 @@ class MockEdgeNetworkConnection : public edgenetwork_v1::EdgeNetworkConnection { MOCK_METHOD( StatusOr, DeleteRouter, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteRouterRequest const& request), (override)); MOCK_METHOD( future>, DeleteRouter, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/eventarc/v1/internal/eventarc_connection_impl.cc b/google/cloud/eventarc/v1/internal/eventarc_connection_impl.cc index 81e466839e7d7..a1ed2920947aa 100644 --- a/google/cloud/eventarc/v1/internal/eventarc_connection_impl.cc +++ b/google/cloud/eventarc/v1/internal/eventarc_connection_impl.cc @@ -150,7 +150,7 @@ EventarcConnectionImpl::CreateTrigger( } StatusOr EventarcConnectionImpl::CreateTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::eventarc::v1::CreateTriggerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -165,8 +165,7 @@ StatusOr EventarcConnectionImpl::CreateTrigger( future> EventarcConnectionImpl::CreateTrigger( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -240,7 +239,7 @@ EventarcConnectionImpl::UpdateTrigger( } StatusOr EventarcConnectionImpl::UpdateTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::eventarc::v1::UpdateTriggerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -255,8 +254,7 @@ StatusOr EventarcConnectionImpl::UpdateTrigger( future> EventarcConnectionImpl::UpdateTrigger( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -330,7 +328,7 @@ EventarcConnectionImpl::DeleteTrigger( } StatusOr EventarcConnectionImpl::DeleteTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::eventarc::v1::DeleteTriggerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -345,8 +343,7 @@ StatusOr EventarcConnectionImpl::DeleteTrigger( future> EventarcConnectionImpl::DeleteTrigger( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -468,7 +465,7 @@ EventarcConnectionImpl::CreateChannel( } StatusOr EventarcConnectionImpl::CreateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::eventarc::v1::CreateChannelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -483,8 +480,7 @@ StatusOr EventarcConnectionImpl::CreateChannel( future> EventarcConnectionImpl::CreateChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -558,7 +554,7 @@ EventarcConnectionImpl::UpdateChannel( } StatusOr EventarcConnectionImpl::UpdateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::eventarc::v1::UpdateChannelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -573,8 +569,7 @@ StatusOr EventarcConnectionImpl::UpdateChannel( future> EventarcConnectionImpl::UpdateChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -648,7 +643,7 @@ EventarcConnectionImpl::DeleteChannel( } StatusOr EventarcConnectionImpl::DeleteChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::eventarc::v1::DeleteChannelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -663,8 +658,7 @@ StatusOr EventarcConnectionImpl::DeleteChannel( future> EventarcConnectionImpl::DeleteChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -839,7 +833,7 @@ EventarcConnectionImpl::CreateChannelConnection( StatusOr EventarcConnectionImpl::CreateChannelConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::eventarc::v1::CreateChannelConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -856,8 +850,7 @@ EventarcConnectionImpl::CreateChannelConnection( future> EventarcConnectionImpl::CreateChannelConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -935,7 +928,7 @@ EventarcConnectionImpl::DeleteChannelConnection( StatusOr EventarcConnectionImpl::DeleteChannelConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -952,8 +945,7 @@ EventarcConnectionImpl::DeleteChannelConnection( future> EventarcConnectionImpl::DeleteChannelConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/eventarc/v1/internal/eventarc_connection_impl.h b/google/cloud/eventarc/v1/internal/eventarc_connection_impl.h index 31b1b5592600d..7a9c5afb9bc6a 100644 --- a/google/cloud/eventarc/v1/internal/eventarc_connection_impl.h +++ b/google/cloud/eventarc/v1/internal/eventarc_connection_impl.h @@ -62,12 +62,12 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { override; StatusOr CreateTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::eventarc::v1::CreateTriggerRequest const& request) override; future> CreateTrigger( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateTrigger( @@ -75,12 +75,12 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { override; StatusOr UpdateTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::eventarc::v1::UpdateTriggerRequest const& request) override; future> UpdateTrigger( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteTrigger( @@ -88,12 +88,12 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { override; StatusOr DeleteTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::eventarc::v1::DeleteTriggerRequest const& request) override; future> DeleteTrigger( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetChannel( @@ -107,12 +107,12 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { override; StatusOr CreateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::eventarc::v1::CreateChannelRequest const& request) override; future> CreateChannel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateChannel( @@ -120,12 +120,12 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { override; StatusOr UpdateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::eventarc::v1::UpdateChannelRequest const& request) override; future> UpdateChannel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteChannel( @@ -133,12 +133,12 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { override; StatusOr DeleteChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::eventarc::v1::DeleteChannelRequest const& request) override; future> DeleteChannel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetProvider( @@ -162,13 +162,13 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { request) override; StatusOr CreateChannelConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::eventarc::v1::CreateChannelConnectionRequest const& request) override; future> CreateChannelConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -177,13 +177,13 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { request) override; StatusOr DeleteChannelConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& request) override; future> DeleteChannelConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.cc b/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.cc index 5bab7f6febc53..3566f23dd964e 100644 --- a/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.cc +++ b/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.cc @@ -63,26 +63,23 @@ EventarcTracingConnection::CreateTrigger( StatusOr EventarcTracingConnection::CreateTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateTriggerRequest const& request) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::CreateTrigger"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateTrigger(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateTrigger(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EventarcTracingConnection::CreateTrigger( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::CreateTrigger"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateTrigger(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateTrigger(ExperimentalTag{}, operation)); } future> @@ -96,26 +93,23 @@ EventarcTracingConnection::UpdateTrigger( StatusOr EventarcTracingConnection::UpdateTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::UpdateTriggerRequest const& request) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::UpdateTrigger"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateTrigger(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateTrigger(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EventarcTracingConnection::UpdateTrigger( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::UpdateTrigger"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateTrigger(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateTrigger(ExperimentalTag{}, operation)); } future> @@ -129,26 +123,23 @@ EventarcTracingConnection::DeleteTrigger( StatusOr EventarcTracingConnection::DeleteTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteTriggerRequest const& request) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::DeleteTrigger"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteTrigger(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteTrigger(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EventarcTracingConnection::DeleteTrigger( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::DeleteTrigger"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteTrigger(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteTrigger(ExperimentalTag{}, operation)); } StatusOr @@ -181,26 +172,23 @@ EventarcTracingConnection::CreateChannel( StatusOr EventarcTracingConnection::CreateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateChannelRequest const& request) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::CreateChannel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateChannel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateChannel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EventarcTracingConnection::CreateChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::CreateChannel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateChannel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateChannel(ExperimentalTag{}, operation)); } future> @@ -214,26 +202,23 @@ EventarcTracingConnection::UpdateChannel( StatusOr EventarcTracingConnection::UpdateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::UpdateChannelRequest const& request) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::UpdateChannel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateChannel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateChannel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EventarcTracingConnection::UpdateChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::UpdateChannel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateChannel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateChannel(ExperimentalTag{}, operation)); } future> @@ -247,26 +232,23 @@ EventarcTracingConnection::DeleteChannel( StatusOr EventarcTracingConnection::DeleteChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteChannelRequest const& request) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::DeleteChannel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteChannel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteChannel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> EventarcTracingConnection::DeleteChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("eventarc_v1::EventarcConnection::DeleteChannel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteChannel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteChannel(ExperimentalTag{}, operation)); } StatusOr @@ -323,27 +305,25 @@ EventarcTracingConnection::CreateChannelConnection( StatusOr EventarcTracingConnection::CreateChannelConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateChannelConnectionRequest const& request) { auto span = internal::MakeSpan( "eventarc_v1::EventarcConnection::CreateChannelConnection"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateChannelConnection( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateChannelConnection(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> EventarcTracingConnection::CreateChannelConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "eventarc_v1::EventarcConnection::CreateChannelConnection"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateChannelConnection( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateChannelConnection( + ExperimentalTag{}, operation)); } future> @@ -359,27 +339,25 @@ EventarcTracingConnection::DeleteChannelConnection( StatusOr EventarcTracingConnection::DeleteChannelConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& request) { auto span = internal::MakeSpan( "eventarc_v1::EventarcConnection::DeleteChannelConnection"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteChannelConnection( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteChannelConnection(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> EventarcTracingConnection::DeleteChannelConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "eventarc_v1::EventarcConnection::DeleteChannelConnection"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteChannelConnection( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteChannelConnection( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.h b/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.h index e282b125a52f7..5368c04fd5d4c 100644 --- a/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.h +++ b/google/cloud/eventarc/v1/internal/eventarc_tracing_connection.h @@ -50,12 +50,12 @@ class EventarcTracingConnection : public eventarc_v1::EventarcConnection { override; StatusOr CreateTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateTriggerRequest const& request) override; future> CreateTrigger( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateTrigger( @@ -63,12 +63,12 @@ class EventarcTracingConnection : public eventarc_v1::EventarcConnection { override; StatusOr UpdateTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::UpdateTriggerRequest const& request) override; future> UpdateTrigger( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteTrigger( @@ -76,12 +76,12 @@ class EventarcTracingConnection : public eventarc_v1::EventarcConnection { override; StatusOr DeleteTrigger( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteTriggerRequest const& request) override; future> DeleteTrigger( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetChannel( @@ -95,12 +95,12 @@ class EventarcTracingConnection : public eventarc_v1::EventarcConnection { override; StatusOr CreateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateChannelRequest const& request) override; future> CreateChannel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateChannel( @@ -108,12 +108,12 @@ class EventarcTracingConnection : public eventarc_v1::EventarcConnection { override; StatusOr UpdateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::UpdateChannelRequest const& request) override; future> UpdateChannel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteChannel( @@ -121,12 +121,12 @@ class EventarcTracingConnection : public eventarc_v1::EventarcConnection { override; StatusOr DeleteChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteChannelRequest const& request) override; future> DeleteChannel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetProvider( @@ -150,13 +150,13 @@ class EventarcTracingConnection : public eventarc_v1::EventarcConnection { request) override; StatusOr CreateChannelConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateChannelConnectionRequest const& request) override; future> CreateChannelConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -165,13 +165,13 @@ class EventarcTracingConnection : public eventarc_v1::EventarcConnection { request) override; StatusOr DeleteChannelConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& request) override; future> DeleteChannelConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/eventarc/v1/mocks/mock_eventarc_connection.h b/google/cloud/eventarc/v1/mocks/mock_eventarc_connection.h index c711e89351907..4961cd64903d6 100644 --- a/google/cloud/eventarc/v1/mocks/mock_eventarc_connection.h +++ b/google/cloud/eventarc/v1/mocks/mock_eventarc_connection.h @@ -61,13 +61,13 @@ class MockEventarcConnection : public eventarc_v1::EventarcConnection { MOCK_METHOD( StatusOr, CreateTrigger, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateTriggerRequest const& request), (override)); MOCK_METHOD(future>, CreateTrigger, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -78,13 +78,13 @@ class MockEventarcConnection : public eventarc_v1::EventarcConnection { MOCK_METHOD( StatusOr, UpdateTrigger, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::UpdateTriggerRequest const& request), (override)); MOCK_METHOD(future>, UpdateTrigger, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -95,13 +95,13 @@ class MockEventarcConnection : public eventarc_v1::EventarcConnection { MOCK_METHOD( StatusOr, DeleteTrigger, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteTriggerRequest const& request), (override)); MOCK_METHOD(future>, DeleteTrigger, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -120,13 +120,13 @@ class MockEventarcConnection : public eventarc_v1::EventarcConnection { MOCK_METHOD( StatusOr, CreateChannel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateChannelRequest const& request), (override)); MOCK_METHOD(future>, CreateChannel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -137,13 +137,13 @@ class MockEventarcConnection : public eventarc_v1::EventarcConnection { MOCK_METHOD( StatusOr, UpdateChannel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::UpdateChannelRequest const& request), (override)); MOCK_METHOD(future>, UpdateChannel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -154,13 +154,13 @@ class MockEventarcConnection : public eventarc_v1::EventarcConnection { MOCK_METHOD( StatusOr, DeleteChannel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteChannelRequest const& request), (override)); MOCK_METHOD(future>, DeleteChannel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -194,14 +194,14 @@ class MockEventarcConnection : public eventarc_v1::EventarcConnection { MOCK_METHOD( StatusOr, CreateChannelConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateChannelConnectionRequest const& request), (override)); MOCK_METHOD(future>, CreateChannelConnection, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -214,14 +214,14 @@ class MockEventarcConnection : public eventarc_v1::EventarcConnection { MOCK_METHOD( StatusOr, DeleteChannelConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& request), (override)); MOCK_METHOD(future>, DeleteChannelConnection, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.cc b/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.cc index d201a67f4df3e..eb050d3a56f20 100644 --- a/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.cc +++ b/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.cc @@ -157,7 +157,7 @@ CloudFilestoreManagerConnectionImpl::CreateInstance( StatusOr CloudFilestoreManagerConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -173,8 +173,7 @@ CloudFilestoreManagerConnectionImpl::CreateInstance( future> CloudFilestoreManagerConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -249,7 +248,7 @@ CloudFilestoreManagerConnectionImpl::UpdateInstance( StatusOr CloudFilestoreManagerConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -265,8 +264,7 @@ CloudFilestoreManagerConnectionImpl::UpdateInstance( future> CloudFilestoreManagerConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -341,7 +339,7 @@ CloudFilestoreManagerConnectionImpl::RestoreInstance( StatusOr CloudFilestoreManagerConnectionImpl::RestoreInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::RestoreInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -357,8 +355,7 @@ CloudFilestoreManagerConnectionImpl::RestoreInstance( future> CloudFilestoreManagerConnectionImpl::RestoreInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -433,7 +430,7 @@ CloudFilestoreManagerConnectionImpl::RevertInstance( StatusOr CloudFilestoreManagerConnectionImpl::RevertInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::RevertInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -449,8 +446,7 @@ CloudFilestoreManagerConnectionImpl::RevertInstance( future> CloudFilestoreManagerConnectionImpl::RevertInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -525,7 +521,7 @@ CloudFilestoreManagerConnectionImpl::DeleteInstance( StatusOr CloudFilestoreManagerConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -541,8 +537,7 @@ CloudFilestoreManagerConnectionImpl::DeleteInstance( future> CloudFilestoreManagerConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -666,7 +661,7 @@ CloudFilestoreManagerConnectionImpl::CreateSnapshot( StatusOr CloudFilestoreManagerConnectionImpl::CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::CreateSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -682,8 +677,7 @@ CloudFilestoreManagerConnectionImpl::CreateSnapshot( future> CloudFilestoreManagerConnectionImpl::CreateSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -758,7 +752,7 @@ CloudFilestoreManagerConnectionImpl::DeleteSnapshot( StatusOr CloudFilestoreManagerConnectionImpl::DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::DeleteSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -774,8 +768,7 @@ CloudFilestoreManagerConnectionImpl::DeleteSnapshot( future> CloudFilestoreManagerConnectionImpl::DeleteSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -851,7 +844,7 @@ CloudFilestoreManagerConnectionImpl::UpdateSnapshot( StatusOr CloudFilestoreManagerConnectionImpl::UpdateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::UpdateSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -867,8 +860,7 @@ CloudFilestoreManagerConnectionImpl::UpdateSnapshot( future> CloudFilestoreManagerConnectionImpl::UpdateSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -991,7 +983,7 @@ CloudFilestoreManagerConnectionImpl::CreateBackup( StatusOr CloudFilestoreManagerConnectionImpl::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1006,8 +998,7 @@ CloudFilestoreManagerConnectionImpl::CreateBackup( future> CloudFilestoreManagerConnectionImpl::CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1082,7 +1073,7 @@ CloudFilestoreManagerConnectionImpl::DeleteBackup( StatusOr CloudFilestoreManagerConnectionImpl::DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::DeleteBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1097,8 +1088,7 @@ CloudFilestoreManagerConnectionImpl::DeleteBackup( future> CloudFilestoreManagerConnectionImpl::DeleteBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1174,7 +1164,7 @@ CloudFilestoreManagerConnectionImpl::UpdateBackup( StatusOr CloudFilestoreManagerConnectionImpl::UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::UpdateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1189,8 +1179,7 @@ CloudFilestoreManagerConnectionImpl::UpdateBackup( future> CloudFilestoreManagerConnectionImpl::UpdateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.h b/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.h index 414b90bfd9aca..c9d71b24f113f 100644 --- a/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.h +++ b/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.h @@ -63,12 +63,12 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::CreateInstanceRequest const& request) override; future> CreateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateInstance( @@ -76,12 +76,12 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::UpdateInstanceRequest const& request) override; future> UpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RestoreInstance( @@ -89,12 +89,12 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr RestoreInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::RestoreInstanceRequest const& request) override; future> RestoreInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RevertInstance( @@ -102,12 +102,12 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr RevertInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::RevertInstanceRequest const& request) override; future> RevertInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteInstance( @@ -115,12 +115,12 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::DeleteInstanceRequest const& request) override; future> DeleteInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListSnapshots( @@ -134,12 +134,12 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::CreateSnapshotRequest const& request) override; future> CreateSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteSnapshot( @@ -147,12 +147,12 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::DeleteSnapshotRequest const& request) override; future> DeleteSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateSnapshot( @@ -160,12 +160,12 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr UpdateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::UpdateSnapshotRequest const& request) override; future> UpdateSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListBackups( @@ -179,12 +179,12 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::CreateBackupRequest const& request) override; future> CreateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteBackup( @@ -192,12 +192,12 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::DeleteBackupRequest const& request) override; future> DeleteBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateBackup( @@ -205,12 +205,12 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::filestore::v1::UpdateBackupRequest const& request) override; future> UpdateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.cc b/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.cc index 330ed7bab11aa..fbb9bad72deab 100644 --- a/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.cc +++ b/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.cc @@ -64,26 +64,23 @@ CloudFilestoreManagerTracingConnection::CreateInstance( StatusOr CloudFilestoreManagerTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateInstanceRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::CreateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudFilestoreManagerTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::CreateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateInstance(ExperimentalTag{}, operation)); } future> @@ -97,26 +94,23 @@ CloudFilestoreManagerTracingConnection::UpdateInstance( StatusOr CloudFilestoreManagerTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateInstanceRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::UpdateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudFilestoreManagerTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::UpdateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateInstance(ExperimentalTag{}, operation)); } future> @@ -130,26 +124,23 @@ CloudFilestoreManagerTracingConnection::RestoreInstance( StatusOr CloudFilestoreManagerTracingConnection::RestoreInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::RestoreInstanceRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::RestoreInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RestoreInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RestoreInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudFilestoreManagerTracingConnection::RestoreInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::RestoreInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RestoreInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RestoreInstance(ExperimentalTag{}, operation)); } future> @@ -163,26 +154,23 @@ CloudFilestoreManagerTracingConnection::RevertInstance( StatusOr CloudFilestoreManagerTracingConnection::RevertInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::RevertInstanceRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::RevertInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RevertInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RevertInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudFilestoreManagerTracingConnection::RevertInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::RevertInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RevertInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RevertInstance(ExperimentalTag{}, operation)); } future> @@ -196,26 +184,23 @@ CloudFilestoreManagerTracingConnection::DeleteInstance( StatusOr CloudFilestoreManagerTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::DeleteInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudFilestoreManagerTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::DeleteInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteInstance(ExperimentalTag{}, operation)); } StreamRange @@ -249,26 +234,23 @@ CloudFilestoreManagerTracingConnection::CreateSnapshot( StatusOr CloudFilestoreManagerTracingConnection::CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateSnapshotRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::CreateSnapshot"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateSnapshot(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateSnapshot(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudFilestoreManagerTracingConnection::CreateSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::CreateSnapshot"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateSnapshot(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateSnapshot(ExperimentalTag{}, operation)); } future> @@ -282,26 +264,23 @@ CloudFilestoreManagerTracingConnection::DeleteSnapshot( StatusOr CloudFilestoreManagerTracingConnection::DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteSnapshotRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::DeleteSnapshot"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSnapshot(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteSnapshot(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudFilestoreManagerTracingConnection::DeleteSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::DeleteSnapshot"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteSnapshot(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteSnapshot(ExperimentalTag{}, operation)); } future> @@ -315,26 +294,23 @@ CloudFilestoreManagerTracingConnection::UpdateSnapshot( StatusOr CloudFilestoreManagerTracingConnection::UpdateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateSnapshotRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::UpdateSnapshot"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateSnapshot(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateSnapshot(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudFilestoreManagerTracingConnection::UpdateSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::UpdateSnapshot"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateSnapshot(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateSnapshot(ExperimentalTag{}, operation)); } StreamRange @@ -368,26 +344,23 @@ CloudFilestoreManagerTracingConnection::CreateBackup( StatusOr CloudFilestoreManagerTracingConnection::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateBackupRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::CreateBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudFilestoreManagerTracingConnection::CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::CreateBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateBackup(ExperimentalTag{}, operation)); } future> @@ -401,26 +374,23 @@ CloudFilestoreManagerTracingConnection::DeleteBackup( StatusOr CloudFilestoreManagerTracingConnection::DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteBackupRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::DeleteBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudFilestoreManagerTracingConnection::DeleteBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::DeleteBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteBackup(ExperimentalTag{}, operation)); } future> @@ -434,26 +404,23 @@ CloudFilestoreManagerTracingConnection::UpdateBackup( StatusOr CloudFilestoreManagerTracingConnection::UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateBackupRequest const& request) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::UpdateBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudFilestoreManagerTracingConnection::UpdateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "filestore_v1::CloudFilestoreManagerConnection::UpdateBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateBackup(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.h b/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.h index 30174c4b59364..484851a5330e3 100644 --- a/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.h +++ b/google/cloud/filestore/v1/internal/cloud_filestore_manager_tracing_connection.h @@ -51,12 +51,12 @@ class CloudFilestoreManagerTracingConnection override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateInstanceRequest const& request) override; future> CreateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateInstance( @@ -64,12 +64,12 @@ class CloudFilestoreManagerTracingConnection override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateInstanceRequest const& request) override; future> UpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RestoreInstance( @@ -77,12 +77,12 @@ class CloudFilestoreManagerTracingConnection override; StatusOr RestoreInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::RestoreInstanceRequest const& request) override; future> RestoreInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RevertInstance( @@ -90,12 +90,12 @@ class CloudFilestoreManagerTracingConnection override; StatusOr RevertInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::RevertInstanceRequest const& request) override; future> RevertInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteInstance( @@ -103,12 +103,12 @@ class CloudFilestoreManagerTracingConnection override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteInstanceRequest const& request) override; future> DeleteInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListSnapshots( @@ -122,12 +122,12 @@ class CloudFilestoreManagerTracingConnection override; StatusOr CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateSnapshotRequest const& request) override; future> CreateSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteSnapshot( @@ -135,12 +135,12 @@ class CloudFilestoreManagerTracingConnection override; StatusOr DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteSnapshotRequest const& request) override; future> DeleteSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateSnapshot( @@ -148,12 +148,12 @@ class CloudFilestoreManagerTracingConnection override; StatusOr UpdateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateSnapshotRequest const& request) override; future> UpdateSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListBackups( @@ -167,12 +167,12 @@ class CloudFilestoreManagerTracingConnection override; StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateBackupRequest const& request) override; future> CreateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteBackup( @@ -180,12 +180,12 @@ class CloudFilestoreManagerTracingConnection override; StatusOr DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteBackupRequest const& request) override; future> DeleteBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateBackup( @@ -193,12 +193,12 @@ class CloudFilestoreManagerTracingConnection override; StatusOr UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateBackupRequest const& request) override; future> UpdateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/filestore/v1/mocks/mock_cloud_filestore_manager_connection.h b/google/cloud/filestore/v1/mocks/mock_cloud_filestore_manager_connection.h index 4dbcae00a84ff..afe3a7af83fc3 100644 --- a/google/cloud/filestore/v1/mocks/mock_cloud_filestore_manager_connection.h +++ b/google/cloud/filestore/v1/mocks/mock_cloud_filestore_manager_connection.h @@ -63,13 +63,13 @@ class MockCloudFilestoreManagerConnection MOCK_METHOD( StatusOr, CreateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateInstanceRequest const& request), (override)); MOCK_METHOD(future>, CreateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -80,13 +80,13 @@ class MockCloudFilestoreManagerConnection MOCK_METHOD( StatusOr, UpdateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateInstanceRequest const& request), (override)); MOCK_METHOD(future>, UpdateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -97,13 +97,13 @@ class MockCloudFilestoreManagerConnection MOCK_METHOD( StatusOr, RestoreInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::RestoreInstanceRequest const& request), (override)); MOCK_METHOD(future>, RestoreInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -114,13 +114,13 @@ class MockCloudFilestoreManagerConnection MOCK_METHOD( StatusOr, RevertInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::RevertInstanceRequest const& request), (override)); MOCK_METHOD(future>, RevertInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -132,13 +132,13 @@ class MockCloudFilestoreManagerConnection MOCK_METHOD( StatusOr, DeleteInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteInstanceRequest const& request), (override)); MOCK_METHOD(future>, DeleteInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -158,13 +158,13 @@ class MockCloudFilestoreManagerConnection MOCK_METHOD( StatusOr, CreateSnapshot, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateSnapshotRequest const& request), (override)); MOCK_METHOD(future>, CreateSnapshot, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -176,13 +176,13 @@ class MockCloudFilestoreManagerConnection MOCK_METHOD( StatusOr, DeleteSnapshot, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteSnapshotRequest const& request), (override)); MOCK_METHOD(future>, DeleteSnapshot, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -193,13 +193,13 @@ class MockCloudFilestoreManagerConnection MOCK_METHOD( StatusOr, UpdateSnapshot, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateSnapshotRequest const& request), (override)); MOCK_METHOD(future>, UpdateSnapshot, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -218,13 +218,13 @@ class MockCloudFilestoreManagerConnection MOCK_METHOD( StatusOr, CreateBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateBackupRequest const& request), (override)); MOCK_METHOD(future>, CreateBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -235,13 +235,13 @@ class MockCloudFilestoreManagerConnection MOCK_METHOD( StatusOr, DeleteBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteBackupRequest const& request), (override)); MOCK_METHOD(future>, DeleteBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -252,13 +252,13 @@ class MockCloudFilestoreManagerConnection MOCK_METHOD( StatusOr, UpdateBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateBackupRequest const& request), (override)); MOCK_METHOD(future>, UpdateBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/functions/v1/internal/cloud_functions_connection_impl.cc b/google/cloud/functions/v1/internal/cloud_functions_connection_impl.cc index d5fba6148d92a..dd87b38899a11 100644 --- a/google/cloud/functions/v1/internal/cloud_functions_connection_impl.cc +++ b/google/cloud/functions/v1/internal/cloud_functions_connection_impl.cc @@ -157,7 +157,7 @@ CloudFunctionsServiceConnectionImpl::CreateFunction( StatusOr CloudFunctionsServiceConnectionImpl::CreateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::functions::v1::CreateFunctionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -173,8 +173,7 @@ CloudFunctionsServiceConnectionImpl::CreateFunction( future> CloudFunctionsServiceConnectionImpl::CreateFunction( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -250,7 +249,7 @@ CloudFunctionsServiceConnectionImpl::UpdateFunction( StatusOr CloudFunctionsServiceConnectionImpl::UpdateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::functions::v1::UpdateFunctionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -266,8 +265,7 @@ CloudFunctionsServiceConnectionImpl::UpdateFunction( future> CloudFunctionsServiceConnectionImpl::UpdateFunction( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -343,7 +341,7 @@ CloudFunctionsServiceConnectionImpl::DeleteFunction( StatusOr CloudFunctionsServiceConnectionImpl::DeleteFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::functions::v1::DeleteFunctionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -359,8 +357,7 @@ CloudFunctionsServiceConnectionImpl::DeleteFunction( future> CloudFunctionsServiceConnectionImpl::DeleteFunction( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/functions/v1/internal/cloud_functions_connection_impl.h b/google/cloud/functions/v1/internal/cloud_functions_connection_impl.h index 38ffd1e3b3fd6..226e67e565f79 100644 --- a/google/cloud/functions/v1/internal/cloud_functions_connection_impl.h +++ b/google/cloud/functions/v1/internal/cloud_functions_connection_impl.h @@ -63,12 +63,12 @@ class CloudFunctionsServiceConnectionImpl override; StatusOr CreateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::functions::v1::CreateFunctionRequest const& request) override; future> CreateFunction( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateFunction( @@ -76,12 +76,12 @@ class CloudFunctionsServiceConnectionImpl override; StatusOr UpdateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::functions::v1::UpdateFunctionRequest const& request) override; future> UpdateFunction( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -89,12 +89,12 @@ class CloudFunctionsServiceConnectionImpl request) override; StatusOr DeleteFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::functions::v1::DeleteFunctionRequest const& request) override; future> - DeleteFunction(google::cloud::ExperimentalTag, + DeleteFunction(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CallFunction( diff --git a/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.cc b/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.cc index a88ef63138041..e2e74fcd6a69b 100644 --- a/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.cc +++ b/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.cc @@ -65,26 +65,23 @@ CloudFunctionsServiceTracingConnection::CreateFunction( StatusOr CloudFunctionsServiceTracingConnection::CreateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::CreateFunctionRequest const& request) { auto span = internal::MakeSpan( "functions_v1::CloudFunctionsServiceConnection::CreateFunction"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateFunction(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateFunction(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudFunctionsServiceTracingConnection::CreateFunction( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "functions_v1::CloudFunctionsServiceConnection::CreateFunction"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateFunction(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateFunction(ExperimentalTag{}, operation)); } future> @@ -98,26 +95,23 @@ CloudFunctionsServiceTracingConnection::UpdateFunction( StatusOr CloudFunctionsServiceTracingConnection::UpdateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::UpdateFunctionRequest const& request) { auto span = internal::MakeSpan( "functions_v1::CloudFunctionsServiceConnection::UpdateFunction"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateFunction(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateFunction(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudFunctionsServiceTracingConnection::UpdateFunction( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "functions_v1::CloudFunctionsServiceConnection::UpdateFunction"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateFunction(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateFunction(ExperimentalTag{}, operation)); } future> @@ -131,26 +125,23 @@ CloudFunctionsServiceTracingConnection::DeleteFunction( StatusOr CloudFunctionsServiceTracingConnection::DeleteFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::DeleteFunctionRequest const& request) { auto span = internal::MakeSpan( "functions_v1::CloudFunctionsServiceConnection::DeleteFunction"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteFunction(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteFunction(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudFunctionsServiceTracingConnection::DeleteFunction( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "functions_v1::CloudFunctionsServiceConnection::DeleteFunction"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteFunction(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteFunction(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.h b/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.h index a3deb9201570c..b78085294b693 100644 --- a/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.h +++ b/google/cloud/functions/v1/internal/cloud_functions_tracing_connection.h @@ -51,12 +51,12 @@ class CloudFunctionsServiceTracingConnection override; StatusOr CreateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::CreateFunctionRequest const& request) override; future> CreateFunction( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateFunction( @@ -64,12 +64,12 @@ class CloudFunctionsServiceTracingConnection override; StatusOr UpdateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::UpdateFunctionRequest const& request) override; future> UpdateFunction( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -77,12 +77,12 @@ class CloudFunctionsServiceTracingConnection request) override; StatusOr DeleteFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::DeleteFunctionRequest const& request) override; future> - DeleteFunction(google::cloud::ExperimentalTag, + DeleteFunction(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CallFunction( diff --git a/google/cloud/functions/v1/mocks/mock_cloud_functions_connection.h b/google/cloud/functions/v1/mocks/mock_cloud_functions_connection.h index ac20f57c46ce9..10a5c9bf58fb5 100644 --- a/google/cloud/functions/v1/mocks/mock_cloud_functions_connection.h +++ b/google/cloud/functions/v1/mocks/mock_cloud_functions_connection.h @@ -65,13 +65,13 @@ class MockCloudFunctionsServiceConnection MOCK_METHOD( StatusOr, CreateFunction, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::CreateFunctionRequest const& request), (override)); MOCK_METHOD(future>, CreateFunction, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -83,13 +83,13 @@ class MockCloudFunctionsServiceConnection MOCK_METHOD( StatusOr, UpdateFunction, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::UpdateFunctionRequest const& request), (override)); MOCK_METHOD(future>, UpdateFunction, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -101,15 +101,14 @@ class MockCloudFunctionsServiceConnection MOCK_METHOD( StatusOr, DeleteFunction, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::DeleteFunctionRequest const& request), (override)); MOCK_METHOD( future>, DeleteFunction, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/functions/v2/internal/function_connection_impl.cc b/google/cloud/functions/v2/internal/function_connection_impl.cc index 7f4e9cc0f2028..bf4e6c9b7957a 100644 --- a/google/cloud/functions/v2/internal/function_connection_impl.cc +++ b/google/cloud/functions/v2/internal/function_connection_impl.cc @@ -155,7 +155,7 @@ FunctionServiceConnectionImpl::CreateFunction( StatusOr FunctionServiceConnectionImpl::CreateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::functions::v2::CreateFunctionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -171,8 +171,7 @@ FunctionServiceConnectionImpl::CreateFunction( future> FunctionServiceConnectionImpl::CreateFunction( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -247,7 +246,7 @@ FunctionServiceConnectionImpl::UpdateFunction( StatusOr FunctionServiceConnectionImpl::UpdateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::functions::v2::UpdateFunctionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -263,8 +262,7 @@ FunctionServiceConnectionImpl::UpdateFunction( future> FunctionServiceConnectionImpl::UpdateFunction( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -339,7 +337,7 @@ FunctionServiceConnectionImpl::DeleteFunction( StatusOr FunctionServiceConnectionImpl::DeleteFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::functions::v2::DeleteFunctionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -355,8 +353,7 @@ FunctionServiceConnectionImpl::DeleteFunction( future> FunctionServiceConnectionImpl::DeleteFunction( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/functions/v2/internal/function_connection_impl.h b/google/cloud/functions/v2/internal/function_connection_impl.h index 11afa3d1cfb69..f7a0367b3888d 100644 --- a/google/cloud/functions/v2/internal/function_connection_impl.h +++ b/google/cloud/functions/v2/internal/function_connection_impl.h @@ -63,12 +63,12 @@ class FunctionServiceConnectionImpl override; StatusOr CreateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::functions::v2::CreateFunctionRequest const& request) override; future> CreateFunction( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateFunction( @@ -76,12 +76,12 @@ class FunctionServiceConnectionImpl override; StatusOr UpdateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::functions::v2::UpdateFunctionRequest const& request) override; future> UpdateFunction( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -89,12 +89,12 @@ class FunctionServiceConnectionImpl request) override; StatusOr DeleteFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::functions::v2::DeleteFunctionRequest const& request) override; future> - DeleteFunction(google::cloud::ExperimentalTag, + DeleteFunction(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/functions/v2/internal/function_tracing_connection.cc b/google/cloud/functions/v2/internal/function_tracing_connection.cc index f10a4b8f6d49a..f73c431cba0fc 100644 --- a/google/cloud/functions/v2/internal/function_tracing_connection.cc +++ b/google/cloud/functions/v2/internal/function_tracing_connection.cc @@ -64,26 +64,23 @@ FunctionServiceTracingConnection::CreateFunction( StatusOr FunctionServiceTracingConnection::CreateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::CreateFunctionRequest const& request) { auto span = internal::MakeSpan( "functions_v2::FunctionServiceConnection::CreateFunction"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateFunction(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateFunction(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FunctionServiceTracingConnection::CreateFunction( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "functions_v2::FunctionServiceConnection::CreateFunction"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateFunction(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateFunction(ExperimentalTag{}, operation)); } future> @@ -97,26 +94,23 @@ FunctionServiceTracingConnection::UpdateFunction( StatusOr FunctionServiceTracingConnection::UpdateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::UpdateFunctionRequest const& request) { auto span = internal::MakeSpan( "functions_v2::FunctionServiceConnection::UpdateFunction"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateFunction(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateFunction(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FunctionServiceTracingConnection::UpdateFunction( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "functions_v2::FunctionServiceConnection::UpdateFunction"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateFunction(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateFunction(ExperimentalTag{}, operation)); } future> @@ -130,26 +124,23 @@ FunctionServiceTracingConnection::DeleteFunction( StatusOr FunctionServiceTracingConnection::DeleteFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::DeleteFunctionRequest const& request) { auto span = internal::MakeSpan( "functions_v2::FunctionServiceConnection::DeleteFunction"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteFunction(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteFunction(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FunctionServiceTracingConnection::DeleteFunction( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "functions_v2::FunctionServiceConnection::DeleteFunction"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteFunction(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteFunction(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/functions/v2/internal/function_tracing_connection.h b/google/cloud/functions/v2/internal/function_tracing_connection.h index 534abf94d747a..b0c77645d9a41 100644 --- a/google/cloud/functions/v2/internal/function_tracing_connection.h +++ b/google/cloud/functions/v2/internal/function_tracing_connection.h @@ -51,12 +51,12 @@ class FunctionServiceTracingConnection override; StatusOr CreateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::CreateFunctionRequest const& request) override; future> CreateFunction( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateFunction( @@ -64,12 +64,12 @@ class FunctionServiceTracingConnection override; StatusOr UpdateFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::UpdateFunctionRequest const& request) override; future> UpdateFunction( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -77,12 +77,12 @@ class FunctionServiceTracingConnection request) override; StatusOr DeleteFunction( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::DeleteFunctionRequest const& request) override; future> - DeleteFunction(google::cloud::ExperimentalTag, + DeleteFunction(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/functions/v2/mocks/mock_function_connection.h b/google/cloud/functions/v2/mocks/mock_function_connection.h index 7dfad04cc0fd2..d1ae5e6756c95 100644 --- a/google/cloud/functions/v2/mocks/mock_function_connection.h +++ b/google/cloud/functions/v2/mocks/mock_function_connection.h @@ -63,13 +63,13 @@ class MockFunctionServiceConnection MOCK_METHOD( StatusOr, CreateFunction, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::CreateFunctionRequest const& request), (override)); MOCK_METHOD(future>, CreateFunction, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -80,13 +80,13 @@ class MockFunctionServiceConnection MOCK_METHOD( StatusOr, UpdateFunction, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::UpdateFunctionRequest const& request), (override)); MOCK_METHOD(future>, UpdateFunction, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -98,13 +98,13 @@ class MockFunctionServiceConnection MOCK_METHOD( StatusOr, DeleteFunction, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::DeleteFunctionRequest const& request), (override)); MOCK_METHOD(future>, DeleteFunction, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.cc b/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.cc index d1123f111c840..fe9beb2720010 100644 --- a/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.cc +++ b/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.cc @@ -106,7 +106,7 @@ BackupForGKEConnectionImpl::CreateBackupPlan( StatusOr BackupForGKEConnectionImpl::CreateBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -122,8 +122,7 @@ BackupForGKEConnectionImpl::CreateBackupPlan( future> BackupForGKEConnectionImpl::CreateBackupPlan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -249,7 +248,7 @@ BackupForGKEConnectionImpl::UpdateBackupPlan( StatusOr BackupForGKEConnectionImpl::UpdateBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -265,8 +264,7 @@ BackupForGKEConnectionImpl::UpdateBackupPlan( future> BackupForGKEConnectionImpl::UpdateBackupPlan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -343,7 +341,7 @@ BackupForGKEConnectionImpl::DeleteBackupPlan( StatusOr BackupForGKEConnectionImpl::DeleteBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -359,8 +357,7 @@ BackupForGKEConnectionImpl::DeleteBackupPlan( future> BackupForGKEConnectionImpl::DeleteBackupPlan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -436,7 +433,7 @@ BackupForGKEConnectionImpl::CreateBackup( StatusOr BackupForGKEConnectionImpl::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -451,8 +448,7 @@ BackupForGKEConnectionImpl::CreateBackup( future> BackupForGKEConnectionImpl::CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -575,7 +571,7 @@ BackupForGKEConnectionImpl::UpdateBackup( StatusOr BackupForGKEConnectionImpl::UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::UpdateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -590,8 +586,7 @@ BackupForGKEConnectionImpl::UpdateBackup( future> BackupForGKEConnectionImpl::UpdateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -666,7 +661,7 @@ BackupForGKEConnectionImpl::DeleteBackup( StatusOr BackupForGKEConnectionImpl::DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::DeleteBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -681,8 +676,7 @@ BackupForGKEConnectionImpl::DeleteBackup( future> BackupForGKEConnectionImpl::DeleteBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -808,7 +802,7 @@ BackupForGKEConnectionImpl::CreateRestorePlan( StatusOr BackupForGKEConnectionImpl::CreateRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -824,8 +818,7 @@ BackupForGKEConnectionImpl::CreateRestorePlan( future> BackupForGKEConnectionImpl::CreateRestorePlan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -951,7 +944,7 @@ BackupForGKEConnectionImpl::UpdateRestorePlan( StatusOr BackupForGKEConnectionImpl::UpdateRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -967,8 +960,7 @@ BackupForGKEConnectionImpl::UpdateRestorePlan( future> BackupForGKEConnectionImpl::UpdateRestorePlan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1045,7 +1037,7 @@ BackupForGKEConnectionImpl::DeleteRestorePlan( StatusOr BackupForGKEConnectionImpl::DeleteRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1061,8 +1053,7 @@ BackupForGKEConnectionImpl::DeleteRestorePlan( future> BackupForGKEConnectionImpl::DeleteRestorePlan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1138,7 +1129,7 @@ BackupForGKEConnectionImpl::CreateRestore( StatusOr BackupForGKEConnectionImpl::CreateRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::CreateRestoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1154,8 +1145,7 @@ BackupForGKEConnectionImpl::CreateRestore( future> BackupForGKEConnectionImpl::CreateRestore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1278,7 +1268,7 @@ BackupForGKEConnectionImpl::UpdateRestore( StatusOr BackupForGKEConnectionImpl::UpdateRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::UpdateRestoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1294,8 +1284,7 @@ BackupForGKEConnectionImpl::UpdateRestore( future> BackupForGKEConnectionImpl::UpdateRestore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1370,7 +1359,7 @@ BackupForGKEConnectionImpl::DeleteRestore( StatusOr BackupForGKEConnectionImpl::DeleteRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::DeleteRestoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1386,8 +1375,7 @@ BackupForGKEConnectionImpl::DeleteRestore( future> BackupForGKEConnectionImpl::DeleteRestore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.h b/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.h index 44702cb0f72b1..7f06b2710ca94 100644 --- a/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.h +++ b/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.h @@ -56,12 +56,12 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr CreateBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request) override; future> CreateBackupPlan( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListBackupPlans( @@ -76,12 +76,12 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr UpdateBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request) override; future> UpdateBackupPlan( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -89,12 +89,12 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { request) override; StatusOr DeleteBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request) override; future> - DeleteBackupPlan(google::cloud::ExperimentalTag, + DeleteBackupPlan(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateBackup( @@ -102,12 +102,12 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::CreateBackupRequest const& request) override; future> CreateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListBackups( @@ -121,12 +121,12 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::UpdateBackupRequest const& request) override; future> UpdateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -134,12 +134,12 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::DeleteBackupRequest const& request) override; future> - DeleteBackup(google::cloud::ExperimentalTag, + DeleteBackup(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListVolumeBackups( @@ -154,12 +154,12 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr CreateRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request) override; future> CreateRestorePlan( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListRestorePlans( @@ -174,12 +174,12 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr UpdateRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request) override; future> UpdateRestorePlan( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -188,12 +188,12 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr DeleteRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request) override; future> - DeleteRestorePlan(google::cloud::ExperimentalTag, + DeleteRestorePlan(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateRestore( @@ -201,12 +201,12 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr CreateRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::CreateRestoreRequest const& request) override; future> CreateRestore( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListRestores( @@ -220,12 +220,12 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr UpdateRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::UpdateRestoreRequest const& request) override; future> UpdateRestore( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -233,12 +233,12 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { request) override; StatusOr DeleteRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkebackup::v1::DeleteRestoreRequest const& request) override; future> - DeleteRestore(google::cloud::ExperimentalTag, + DeleteRestore(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListVolumeRestores( diff --git a/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.cc b/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.cc index e70a32f95641a..1b1e91f52af7a 100644 --- a/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.cc +++ b/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.cc @@ -44,26 +44,24 @@ BackupForGKETracingConnection::CreateBackupPlan( StatusOr BackupForGKETracingConnection::CreateBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::CreateBackupPlan"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateBackupPlan(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateBackupPlan(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackupForGKETracingConnection::CreateBackupPlan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::CreateBackupPlan"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateBackupPlan(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateBackupPlan(ExperimentalTag{}, operation)); } StreamRange @@ -97,26 +95,24 @@ BackupForGKETracingConnection::UpdateBackupPlan( StatusOr BackupForGKETracingConnection::UpdateBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::UpdateBackupPlan"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateBackupPlan(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateBackupPlan(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackupForGKETracingConnection::UpdateBackupPlan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::UpdateBackupPlan"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateBackupPlan(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateBackupPlan(ExperimentalTag{}, operation)); } future> @@ -130,26 +126,24 @@ BackupForGKETracingConnection::DeleteBackupPlan( StatusOr BackupForGKETracingConnection::DeleteBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::DeleteBackupPlan"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteBackupPlan(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteBackupPlan(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackupForGKETracingConnection::DeleteBackupPlan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::DeleteBackupPlan"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteBackupPlan(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteBackupPlan(ExperimentalTag{}, operation)); } future> @@ -163,26 +157,23 @@ BackupForGKETracingConnection::CreateBackup( StatusOr BackupForGKETracingConnection::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupRequest const& request) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::CreateBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackupForGKETracingConnection::CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::CreateBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateBackup(ExperimentalTag{}, operation)); } StreamRange @@ -216,26 +207,23 @@ BackupForGKETracingConnection::UpdateBackup( StatusOr BackupForGKETracingConnection::UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupRequest const& request) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::UpdateBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackupForGKETracingConnection::UpdateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::UpdateBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateBackup(ExperimentalTag{}, operation)); } future> @@ -249,26 +237,23 @@ BackupForGKETracingConnection::DeleteBackup( StatusOr BackupForGKETracingConnection::DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupRequest const& request) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::DeleteBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackupForGKETracingConnection::DeleteBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::DeleteBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteBackup(ExperimentalTag{}, operation)); } StreamRange @@ -303,26 +288,24 @@ BackupForGKETracingConnection::CreateRestorePlan( StatusOr BackupForGKETracingConnection::CreateRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::CreateRestorePlan"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateRestorePlan(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateRestorePlan(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackupForGKETracingConnection::CreateRestorePlan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::CreateRestorePlan"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateRestorePlan(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateRestorePlan(ExperimentalTag{}, operation)); } StreamRange @@ -357,26 +340,24 @@ BackupForGKETracingConnection::UpdateRestorePlan( StatusOr BackupForGKETracingConnection::UpdateRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::UpdateRestorePlan"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateRestorePlan(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateRestorePlan(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackupForGKETracingConnection::UpdateRestorePlan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::UpdateRestorePlan"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateRestorePlan(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateRestorePlan(ExperimentalTag{}, operation)); } future> @@ -390,26 +371,24 @@ BackupForGKETracingConnection::DeleteRestorePlan( StatusOr BackupForGKETracingConnection::DeleteRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::DeleteRestorePlan"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteRestorePlan(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteRestorePlan(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackupForGKETracingConnection::DeleteRestorePlan( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkebackup_v1::BackupForGKEConnection::DeleteRestorePlan"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteRestorePlan(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteRestorePlan(ExperimentalTag{}, operation)); } future> @@ -423,26 +402,23 @@ BackupForGKETracingConnection::CreateRestore( StatusOr BackupForGKETracingConnection::CreateRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateRestoreRequest const& request) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::CreateRestore"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateRestore(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateRestore(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackupForGKETracingConnection::CreateRestore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::CreateRestore"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateRestore(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateRestore(ExperimentalTag{}, operation)); } StreamRange @@ -476,26 +452,23 @@ BackupForGKETracingConnection::UpdateRestore( StatusOr BackupForGKETracingConnection::UpdateRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestoreRequest const& request) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::UpdateRestore"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateRestore(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateRestore(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackupForGKETracingConnection::UpdateRestore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::UpdateRestore"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateRestore(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateRestore(ExperimentalTag{}, operation)); } future> @@ -509,26 +482,23 @@ BackupForGKETracingConnection::DeleteRestore( StatusOr BackupForGKETracingConnection::DeleteRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestoreRequest const& request) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::DeleteRestore"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteRestore(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteRestore(ExperimentalTag{}, NoAwaitTag{}, request)); } future> BackupForGKETracingConnection::DeleteRestore( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("gkebackup_v1::BackupForGKEConnection::DeleteRestore"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteRestore(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteRestore(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.h b/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.h index 432b418e5c1b5..8974618de4194 100644 --- a/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.h +++ b/google/cloud/gkebackup/v1/internal/backup_for_gke_tracing_connection.h @@ -45,12 +45,12 @@ class BackupForGKETracingConnection override; StatusOr CreateBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request) override; future> CreateBackupPlan( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListBackupPlans( @@ -65,12 +65,12 @@ class BackupForGKETracingConnection override; StatusOr UpdateBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request) override; future> UpdateBackupPlan( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -78,12 +78,12 @@ class BackupForGKETracingConnection request) override; StatusOr DeleteBackupPlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request) override; future> - DeleteBackupPlan(google::cloud::ExperimentalTag, + DeleteBackupPlan(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateBackup( @@ -91,12 +91,12 @@ class BackupForGKETracingConnection override; StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupRequest const& request) override; future> CreateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListBackups( @@ -110,12 +110,12 @@ class BackupForGKETracingConnection override; StatusOr UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupRequest const& request) override; future> UpdateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -123,12 +123,12 @@ class BackupForGKETracingConnection override; StatusOr DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupRequest const& request) override; future> - DeleteBackup(google::cloud::ExperimentalTag, + DeleteBackup(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListVolumeBackups( @@ -143,12 +143,12 @@ class BackupForGKETracingConnection override; StatusOr CreateRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request) override; future> CreateRestorePlan( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListRestorePlans( @@ -163,12 +163,12 @@ class BackupForGKETracingConnection override; StatusOr UpdateRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request) override; future> UpdateRestorePlan( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -177,12 +177,12 @@ class BackupForGKETracingConnection override; StatusOr DeleteRestorePlan( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request) override; future> - DeleteRestorePlan(google::cloud::ExperimentalTag, + DeleteRestorePlan(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateRestore( @@ -190,12 +190,12 @@ class BackupForGKETracingConnection override; StatusOr CreateRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateRestoreRequest const& request) override; future> CreateRestore( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListRestores( @@ -209,12 +209,12 @@ class BackupForGKETracingConnection override; StatusOr UpdateRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestoreRequest const& request) override; future> UpdateRestore( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -222,12 +222,12 @@ class BackupForGKETracingConnection request) override; StatusOr DeleteRestore( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestoreRequest const& request) override; future> - DeleteRestore(google::cloud::ExperimentalTag, + DeleteRestore(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListVolumeRestores( diff --git a/google/cloud/gkebackup/v1/mocks/mock_backup_for_gke_connection.h b/google/cloud/gkebackup/v1/mocks/mock_backup_for_gke_connection.h index d1b86a900def5..f02ced58b65e4 100644 --- a/google/cloud/gkebackup/v1/mocks/mock_backup_for_gke_connection.h +++ b/google/cloud/gkebackup/v1/mocks/mock_backup_for_gke_connection.h @@ -54,13 +54,13 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { MOCK_METHOD( StatusOr, CreateBackupPlan, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request), (override)); MOCK_METHOD(future>, CreateBackupPlan, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -82,13 +82,13 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { MOCK_METHOD( StatusOr, UpdateBackupPlan, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request), (override)); MOCK_METHOD(future>, UpdateBackupPlan, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -100,13 +100,13 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { MOCK_METHOD( StatusOr, DeleteBackupPlan, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request), (override)); MOCK_METHOD(future>, DeleteBackupPlan, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -117,13 +117,13 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { MOCK_METHOD( StatusOr, CreateBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupRequest const& request), (override)); MOCK_METHOD(future>, CreateBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -142,13 +142,13 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { MOCK_METHOD( StatusOr, UpdateBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupRequest const& request), (override)); MOCK_METHOD(future>, UpdateBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -160,13 +160,13 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { MOCK_METHOD( StatusOr, DeleteBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupRequest const& request), (override)); MOCK_METHOD(future>, DeleteBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -188,13 +188,13 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { MOCK_METHOD( StatusOr, CreateRestorePlan, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request), (override)); MOCK_METHOD(future>, CreateRestorePlan, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -216,13 +216,13 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { MOCK_METHOD( StatusOr, UpdateRestorePlan, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request), (override)); MOCK_METHOD(future>, UpdateRestorePlan, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -234,13 +234,13 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { MOCK_METHOD( StatusOr, DeleteRestorePlan, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request), (override)); MOCK_METHOD(future>, DeleteRestorePlan, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -251,13 +251,13 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { MOCK_METHOD( StatusOr, CreateRestore, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateRestoreRequest const& request), (override)); MOCK_METHOD(future>, CreateRestore, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -277,13 +277,13 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { MOCK_METHOD( StatusOr, UpdateRestore, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestoreRequest const& request), (override)); MOCK_METHOD(future>, UpdateRestore, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -295,13 +295,13 @@ class MockBackupForGKEConnection : public gkebackup_v1::BackupForGKEConnection { MOCK_METHOD( StatusOr, DeleteRestore, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestoreRequest const& request), (override)); MOCK_METHOD(future>, DeleteRestore, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.cc b/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.cc index 9946b2eb3ede9..07bc5ca1d9e85 100644 --- a/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.cc +++ b/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.cc @@ -197,7 +197,7 @@ GkeHubConnectionImpl::CreateMembership( } StatusOr GkeHubConnectionImpl::CreateMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkehub::v1::CreateMembershipRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -213,8 +213,7 @@ StatusOr GkeHubConnectionImpl::CreateMembership( future> GkeHubConnectionImpl::CreateMembership( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -288,7 +287,7 @@ GkeHubConnectionImpl::CreateFeature( } StatusOr GkeHubConnectionImpl::CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkehub::v1::CreateFeatureRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -303,8 +302,7 @@ StatusOr GkeHubConnectionImpl::CreateFeature( future> GkeHubConnectionImpl::CreateFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -378,7 +376,7 @@ GkeHubConnectionImpl::DeleteMembership( } StatusOr GkeHubConnectionImpl::DeleteMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkehub::v1::DeleteMembershipRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -394,8 +392,7 @@ StatusOr GkeHubConnectionImpl::DeleteMembership( future> GkeHubConnectionImpl::DeleteMembership( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -470,7 +467,7 @@ GkeHubConnectionImpl::DeleteFeature( } StatusOr GkeHubConnectionImpl::DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkehub::v1::DeleteFeatureRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -485,8 +482,7 @@ StatusOr GkeHubConnectionImpl::DeleteFeature( future> GkeHubConnectionImpl::DeleteFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -561,7 +557,7 @@ GkeHubConnectionImpl::UpdateMembership( } StatusOr GkeHubConnectionImpl::UpdateMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkehub::v1::UpdateMembershipRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -577,8 +573,7 @@ StatusOr GkeHubConnectionImpl::UpdateMembership( future> GkeHubConnectionImpl::UpdateMembership( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -652,7 +647,7 @@ GkeHubConnectionImpl::UpdateFeature( } StatusOr GkeHubConnectionImpl::UpdateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkehub::v1::UpdateFeatureRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -667,8 +662,7 @@ StatusOr GkeHubConnectionImpl::UpdateFeature( future> GkeHubConnectionImpl::UpdateFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.h b/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.h index 17dce9d5f3cea..495f18511e00c 100644 --- a/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.h +++ b/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.h @@ -67,23 +67,23 @@ class GkeHubConnectionImpl : public gkehub_v1::GkeHubConnection { override; StatusOr CreateMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkehub::v1::CreateMembershipRequest const& request) override; future> CreateMembership( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateFeature( google::cloud::gkehub::v1::CreateFeatureRequest const& request) override; StatusOr CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkehub::v1::CreateFeatureRequest const& request) override; future> CreateFeature( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -91,23 +91,23 @@ class GkeHubConnectionImpl : public gkehub_v1::GkeHubConnection { request) override; StatusOr DeleteMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkehub::v1::DeleteMembershipRequest const& request) override; future> - DeleteMembership(google::cloud::ExperimentalTag, + DeleteMembership(ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteFeature( google::cloud::gkehub::v1::DeleteFeatureRequest const& request) override; StatusOr DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkehub::v1::DeleteFeatureRequest const& request) override; future> DeleteFeature( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateMembership( @@ -115,23 +115,23 @@ class GkeHubConnectionImpl : public gkehub_v1::GkeHubConnection { override; StatusOr UpdateMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkehub::v1::UpdateMembershipRequest const& request) override; future> UpdateMembership( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateFeature( google::cloud::gkehub::v1::UpdateFeatureRequest const& request) override; StatusOr UpdateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkehub::v1::UpdateFeatureRequest const& request) override; future> UpdateFeature( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.cc b/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.cc index 0554e94a53a62..7f839e82769fb 100644 --- a/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.cc +++ b/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.cc @@ -81,26 +81,24 @@ GkeHubTracingConnection::CreateMembership( StatusOr GkeHubTracingConnection::CreateMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::CreateMembershipRequest const& request) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::CreateMembership"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateMembership(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateMembership(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GkeHubTracingConnection::CreateMembership( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::CreateMembership"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateMembership(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateMembership(ExperimentalTag{}, operation)); } future> @@ -112,24 +110,21 @@ GkeHubTracingConnection::CreateFeature( } StatusOr GkeHubTracingConnection::CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::CreateFeatureRequest const& request) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::CreateFeature"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateFeature(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateFeature(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GkeHubTracingConnection::CreateFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::CreateFeature"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateFeature(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateFeature(ExperimentalTag{}, operation)); } future> @@ -143,26 +138,24 @@ GkeHubTracingConnection::DeleteMembership( StatusOr GkeHubTracingConnection::DeleteMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::DeleteMembershipRequest const& request) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::DeleteMembership"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteMembership(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteMembership(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GkeHubTracingConnection::DeleteMembership( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::DeleteMembership"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteMembership(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteMembership(ExperimentalTag{}, operation)); } future> @@ -174,24 +167,21 @@ GkeHubTracingConnection::DeleteFeature( } StatusOr GkeHubTracingConnection::DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::DeleteFeatureRequest const& request) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::DeleteFeature"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteFeature(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteFeature(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GkeHubTracingConnection::DeleteFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::DeleteFeature"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteFeature(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteFeature(ExperimentalTag{}, operation)); } future> @@ -205,26 +195,24 @@ GkeHubTracingConnection::UpdateMembership( StatusOr GkeHubTracingConnection::UpdateMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::UpdateMembershipRequest const& request) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::UpdateMembership"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateMembership(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateMembership(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GkeHubTracingConnection::UpdateMembership( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::UpdateMembership"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateMembership(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateMembership(ExperimentalTag{}, operation)); } future> @@ -236,24 +224,21 @@ GkeHubTracingConnection::UpdateFeature( } StatusOr GkeHubTracingConnection::UpdateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::UpdateFeatureRequest const& request) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::UpdateFeature"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateFeature(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateFeature(ExperimentalTag{}, NoAwaitTag{}, request)); } future> GkeHubTracingConnection::UpdateFeature( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("gkehub_v1::GkeHubConnection::UpdateFeature"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateFeature(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateFeature(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.h b/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.h index 9fef83fd3edfc..8a7015d71aebd 100644 --- a/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.h +++ b/google/cloud/gkehub/v1/internal/gke_hub_tracing_connection.h @@ -56,23 +56,23 @@ class GkeHubTracingConnection : public gkehub_v1::GkeHubConnection { override; StatusOr CreateMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::CreateMembershipRequest const& request) override; future> CreateMembership( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateFeature( google::cloud::gkehub::v1::CreateFeatureRequest const& request) override; StatusOr CreateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::CreateFeatureRequest const& request) override; future> CreateFeature( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -80,23 +80,23 @@ class GkeHubTracingConnection : public gkehub_v1::GkeHubConnection { request) override; StatusOr DeleteMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::DeleteMembershipRequest const& request) override; future> - DeleteMembership(google::cloud::ExperimentalTag, + DeleteMembership(ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteFeature( google::cloud::gkehub::v1::DeleteFeatureRequest const& request) override; StatusOr DeleteFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::DeleteFeatureRequest const& request) override; future> DeleteFeature( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateMembership( @@ -104,23 +104,23 @@ class GkeHubTracingConnection : public gkehub_v1::GkeHubConnection { override; StatusOr UpdateMembership( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::UpdateMembershipRequest const& request) override; future> UpdateMembership( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateFeature( google::cloud::gkehub::v1::UpdateFeatureRequest const& request) override; StatusOr UpdateFeature( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::UpdateFeatureRequest const& request) override; future> UpdateFeature( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/gkehub/v1/mocks/mock_gke_hub_connection.h b/google/cloud/gkehub/v1/mocks/mock_gke_hub_connection.h index fe3ae5c4a961e..7f2877e3ed9c6 100644 --- a/google/cloud/gkehub/v1/mocks/mock_gke_hub_connection.h +++ b/google/cloud/gkehub/v1/mocks/mock_gke_hub_connection.h @@ -70,13 +70,13 @@ class MockGkeHubConnection : public gkehub_v1::GkeHubConnection { MOCK_METHOD( StatusOr, CreateMembership, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::CreateMembershipRequest const& request), (override)); MOCK_METHOD(future>, CreateMembership, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -86,13 +86,13 @@ class MockGkeHubConnection : public gkehub_v1::GkeHubConnection { (override)); MOCK_METHOD(StatusOr, CreateFeature, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::CreateFeatureRequest const& request), (override)); MOCK_METHOD(future>, CreateFeature, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -104,13 +104,13 @@ class MockGkeHubConnection : public gkehub_v1::GkeHubConnection { MOCK_METHOD( StatusOr, DeleteMembership, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::DeleteMembershipRequest const& request), (override)); MOCK_METHOD(future>, DeleteMembership, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -120,13 +120,13 @@ class MockGkeHubConnection : public gkehub_v1::GkeHubConnection { (override)); MOCK_METHOD(StatusOr, DeleteFeature, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::DeleteFeatureRequest const& request), (override)); MOCK_METHOD(future>, DeleteFeature, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -137,13 +137,13 @@ class MockGkeHubConnection : public gkehub_v1::GkeHubConnection { MOCK_METHOD( StatusOr, UpdateMembership, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::UpdateMembershipRequest const& request), (override)); MOCK_METHOD(future>, UpdateMembership, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -153,13 +153,13 @@ class MockGkeHubConnection : public gkehub_v1::GkeHubConnection { (override)); MOCK_METHOD(StatusOr, UpdateFeature, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::UpdateFeatureRequest const& request), (override)); MOCK_METHOD(future>, UpdateFeature, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.cc b/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.cc index d91a4a02a0e5c..eb17711377aff 100644 --- a/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.cc +++ b/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.cc @@ -111,7 +111,7 @@ AttachedClustersConnectionImpl::CreateAttachedCluster( StatusOr AttachedClustersConnectionImpl::CreateAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -129,8 +129,7 @@ AttachedClustersConnectionImpl::CreateAttachedCluster( future> AttachedClustersConnectionImpl::CreateAttachedCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AttachedClustersConnectionImpl::UpdateAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -227,8 +226,7 @@ AttachedClustersConnectionImpl::UpdateAttachedCluster( future> AttachedClustersConnectionImpl::UpdateAttachedCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AttachedClustersConnectionImpl::ImportAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -325,8 +323,7 @@ AttachedClustersConnectionImpl::ImportAttachedCluster( future> AttachedClustersConnectionImpl::ImportAttachedCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AttachedClustersConnectionImpl::DeleteAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -475,8 +472,7 @@ AttachedClustersConnectionImpl::DeleteAttachedCluster( future> AttachedClustersConnectionImpl::DeleteAttachedCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& request) override; future> CreateAttachedCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -73,13 +73,13 @@ class AttachedClustersConnectionImpl request) override; StatusOr UpdateAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& request) override; future> UpdateAttachedCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -88,13 +88,13 @@ class AttachedClustersConnectionImpl request) override; StatusOr ImportAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& request) override; future> ImportAttachedCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -113,13 +113,13 @@ class AttachedClustersConnectionImpl request) override; StatusOr DeleteAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& request) override; future> DeleteAttachedCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.cc b/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.cc index ee1d9ff9bb7d9..012ae43950c15 100644 --- a/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.cc +++ b/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.cc @@ -46,27 +46,25 @@ AttachedClustersTracingConnection::CreateAttachedCluster( StatusOr AttachedClustersTracingConnection::CreateAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AttachedClustersConnection::CreateAttachedCluster"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateAttachedCluster( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateAttachedCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AttachedClustersTracingConnection::CreateAttachedCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AttachedClustersConnection::CreateAttachedCluster"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateAttachedCluster( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateAttachedCluster( + ExperimentalTag{}, operation)); } future> @@ -82,27 +80,25 @@ AttachedClustersTracingConnection::UpdateAttachedCluster( StatusOr AttachedClustersTracingConnection::UpdateAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AttachedClustersConnection::UpdateAttachedCluster"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateAttachedCluster( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateAttachedCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AttachedClustersTracingConnection::UpdateAttachedCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AttachedClustersConnection::UpdateAttachedCluster"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateAttachedCluster( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateAttachedCluster( + ExperimentalTag{}, operation)); } future> @@ -118,27 +114,25 @@ AttachedClustersTracingConnection::ImportAttachedCluster( StatusOr AttachedClustersTracingConnection::ImportAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AttachedClustersConnection::ImportAttachedCluster"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ImportAttachedCluster( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->ImportAttachedCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AttachedClustersTracingConnection::ImportAttachedCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AttachedClustersConnection::ImportAttachedCluster"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ImportAttachedCluster( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ImportAttachedCluster( + ExperimentalTag{}, operation)); } StatusOr @@ -176,27 +170,25 @@ AttachedClustersTracingConnection::DeleteAttachedCluster( StatusOr AttachedClustersTracingConnection::DeleteAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AttachedClustersConnection::DeleteAttachedCluster"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteAttachedCluster( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteAttachedCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AttachedClustersTracingConnection::DeleteAttachedCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AttachedClustersConnection::DeleteAttachedCluster"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteAttachedCluster( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteAttachedCluster( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.h b/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.h index 872be4d4b31e9..08c54bdd49dac 100644 --- a/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.h +++ b/google/cloud/gkemulticloud/v1/internal/attached_clusters_tracing_connection.h @@ -46,13 +46,13 @@ class AttachedClustersTracingConnection request) override; StatusOr CreateAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& request) override; future> CreateAttachedCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -61,13 +61,13 @@ class AttachedClustersTracingConnection request) override; StatusOr UpdateAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& request) override; future> UpdateAttachedCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -76,13 +76,13 @@ class AttachedClustersTracingConnection request) override; StatusOr ImportAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& request) override; future> ImportAttachedCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -101,13 +101,13 @@ class AttachedClustersTracingConnection request) override; StatusOr DeleteAttachedCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& request) override; future> DeleteAttachedCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.cc b/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.cc index 30afac4173216..faea6f1d260e1 100644 --- a/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.cc +++ b/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.cc @@ -108,7 +108,7 @@ AwsClustersConnectionImpl::CreateAwsCluster( StatusOr AwsClustersConnectionImpl::CreateAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -124,8 +124,7 @@ AwsClustersConnectionImpl::CreateAwsCluster( future> AwsClustersConnectionImpl::CreateAwsCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AwsClustersConnectionImpl::UpdateAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -219,8 +218,7 @@ AwsClustersConnectionImpl::UpdateAwsCluster( future> AwsClustersConnectionImpl::UpdateAwsCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AwsClustersConnectionImpl::DeleteAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -364,8 +362,7 @@ AwsClustersConnectionImpl::DeleteAwsCluster( future> AwsClustersConnectionImpl::DeleteAwsCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AwsClustersConnectionImpl::CreateAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -492,8 +489,7 @@ AwsClustersConnectionImpl::CreateAwsNodePool( future> AwsClustersConnectionImpl::CreateAwsNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AwsClustersConnectionImpl::UpdateAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -587,8 +583,7 @@ AwsClustersConnectionImpl::UpdateAwsNodePool( future> AwsClustersConnectionImpl::UpdateAwsNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AwsClustersConnectionImpl::RollbackAwsNodePoolUpdate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -683,8 +678,7 @@ AwsClustersConnectionImpl::RollbackAwsNodePoolUpdate( future> AwsClustersConnectionImpl::RollbackAwsNodePoolUpdate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AwsClustersConnectionImpl::DeleteAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -828,8 +822,7 @@ AwsClustersConnectionImpl::DeleteAwsNodePool( future> AwsClustersConnectionImpl::DeleteAwsNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request) override; future> - CreateAwsCluster(google::cloud::ExperimentalTag, + CreateAwsCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -72,12 +72,12 @@ class AwsClustersConnectionImpl override; StatusOr UpdateAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request) override; future> - UpdateAwsCluster(google::cloud::ExperimentalTag, + UpdateAwsCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAwsCluster( @@ -94,12 +94,12 @@ class AwsClustersConnectionImpl override; StatusOr DeleteAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request) override; future> - DeleteAwsCluster(google::cloud::ExperimentalTag, + DeleteAwsCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr< @@ -119,12 +119,12 @@ class AwsClustersConnectionImpl override; StatusOr CreateAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& request) override; future> - CreateAwsNodePool(google::cloud::ExperimentalTag, + CreateAwsNodePool(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -133,12 +133,12 @@ class AwsClustersConnectionImpl override; StatusOr UpdateAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request) override; future> - UpdateAwsNodePool(google::cloud::ExperimentalTag, + UpdateAwsNodePool(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -147,13 +147,13 @@ class AwsClustersConnectionImpl request) override; StatusOr RollbackAwsNodePoolUpdate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& request) override; future> RollbackAwsNodePoolUpdate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAwsNodePool( @@ -170,12 +170,12 @@ class AwsClustersConnectionImpl override; StatusOr DeleteAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& request) override; future> - DeleteAwsNodePool(google::cloud::ExperimentalTag, + DeleteAwsNodePool(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.cc b/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.cc index 420b2629ce582..4a1e12834b124 100644 --- a/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.cc +++ b/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.cc @@ -44,26 +44,24 @@ AwsClustersTracingConnection::CreateAwsCluster( StatusOr AwsClustersTracingConnection::CreateAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::CreateAwsCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateAwsCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateAwsCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AwsClustersTracingConnection::CreateAwsCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::CreateAwsCluster"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateAwsCluster(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateAwsCluster(ExperimentalTag{}, operation)); } future> @@ -77,26 +75,24 @@ AwsClustersTracingConnection::UpdateAwsCluster( StatusOr AwsClustersTracingConnection::UpdateAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::UpdateAwsCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateAwsCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateAwsCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AwsClustersTracingConnection::UpdateAwsCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::UpdateAwsCluster"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateAwsCluster(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateAwsCluster(ExperimentalTag{}, operation)); } StatusOr @@ -131,26 +127,24 @@ AwsClustersTracingConnection::DeleteAwsCluster( StatusOr AwsClustersTracingConnection::DeleteAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::DeleteAwsCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAwsCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteAwsCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AwsClustersTracingConnection::DeleteAwsCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::DeleteAwsCluster"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteAwsCluster(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteAwsCluster(ExperimentalTag{}, operation)); } StatusOr @@ -185,26 +179,24 @@ AwsClustersTracingConnection::CreateAwsNodePool( StatusOr AwsClustersTracingConnection::CreateAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::CreateAwsNodePool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateAwsNodePool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateAwsNodePool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AwsClustersTracingConnection::CreateAwsNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::CreateAwsNodePool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateAwsNodePool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateAwsNodePool(ExperimentalTag{}, operation)); } future> @@ -218,26 +210,24 @@ AwsClustersTracingConnection::UpdateAwsNodePool( StatusOr AwsClustersTracingConnection::UpdateAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::UpdateAwsNodePool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateAwsNodePool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateAwsNodePool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AwsClustersTracingConnection::UpdateAwsNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::UpdateAwsNodePool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateAwsNodePool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateAwsNodePool(ExperimentalTag{}, operation)); } future> @@ -253,27 +243,25 @@ AwsClustersTracingConnection::RollbackAwsNodePoolUpdate( StatusOr AwsClustersTracingConnection::RollbackAwsNodePoolUpdate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::RollbackAwsNodePoolUpdate"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RollbackAwsNodePoolUpdate( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->RollbackAwsNodePoolUpdate(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> AwsClustersTracingConnection::RollbackAwsNodePoolUpdate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::RollbackAwsNodePoolUpdate"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RollbackAwsNodePoolUpdate( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RollbackAwsNodePoolUpdate( + ExperimentalTag{}, operation)); } StatusOr @@ -308,26 +296,24 @@ AwsClustersTracingConnection::DeleteAwsNodePool( StatusOr AwsClustersTracingConnection::DeleteAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::DeleteAwsNodePool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAwsNodePool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteAwsNodePool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AwsClustersTracingConnection::DeleteAwsNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AwsClustersConnection::DeleteAwsNodePool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteAwsNodePool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteAwsNodePool(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.h b/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.h index 7a884d9ad6afa..a5765486a13bd 100644 --- a/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.h +++ b/google/cloud/gkemulticloud/v1/internal/aws_clusters_tracing_connection.h @@ -46,12 +46,12 @@ class AwsClustersTracingConnection override; StatusOr CreateAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request) override; future> - CreateAwsCluster(google::cloud::ExperimentalTag, + CreateAwsCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -60,12 +60,12 @@ class AwsClustersTracingConnection override; StatusOr UpdateAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request) override; future> - UpdateAwsCluster(google::cloud::ExperimentalTag, + UpdateAwsCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAwsCluster( @@ -82,12 +82,12 @@ class AwsClustersTracingConnection override; StatusOr DeleteAwsCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request) override; future> - DeleteAwsCluster(google::cloud::ExperimentalTag, + DeleteAwsCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr< @@ -107,12 +107,12 @@ class AwsClustersTracingConnection override; StatusOr CreateAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& request) override; future> - CreateAwsNodePool(google::cloud::ExperimentalTag, + CreateAwsNodePool(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -121,12 +121,12 @@ class AwsClustersTracingConnection override; StatusOr UpdateAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request) override; future> - UpdateAwsNodePool(google::cloud::ExperimentalTag, + UpdateAwsNodePool(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -135,13 +135,13 @@ class AwsClustersTracingConnection request) override; StatusOr RollbackAwsNodePoolUpdate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& request) override; future> RollbackAwsNodePoolUpdate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAwsNodePool( @@ -158,12 +158,12 @@ class AwsClustersTracingConnection override; StatusOr DeleteAwsNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& request) override; future> - DeleteAwsNodePool(google::cloud::ExperimentalTag, + DeleteAwsNodePool(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.cc b/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.cc index a7a4fd726c8b7..0ec8c37b463f3 100644 --- a/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.cc +++ b/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.cc @@ -109,7 +109,7 @@ AzureClustersConnectionImpl::CreateAzureClient( StatusOr AzureClustersConnectionImpl::CreateAzureClient( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -125,8 +125,7 @@ AzureClustersConnectionImpl::CreateAzureClient( future> AzureClustersConnectionImpl::CreateAzureClient( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AzureClustersConnectionImpl::DeleteAzureClient( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -270,8 +269,7 @@ AzureClustersConnectionImpl::DeleteAzureClient( future> AzureClustersConnectionImpl::DeleteAzureClient( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AzureClustersConnectionImpl::CreateAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -367,8 +365,7 @@ AzureClustersConnectionImpl::CreateAzureCluster( future> AzureClustersConnectionImpl::CreateAzureCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AzureClustersConnectionImpl::UpdateAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -464,8 +461,7 @@ AzureClustersConnectionImpl::UpdateAzureCluster( future> AzureClustersConnectionImpl::UpdateAzureCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AzureClustersConnectionImpl::DeleteAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -610,8 +606,7 @@ AzureClustersConnectionImpl::DeleteAzureCluster( future> AzureClustersConnectionImpl::DeleteAzureCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AzureClustersConnectionImpl::CreateAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -740,8 +735,7 @@ AzureClustersConnectionImpl::CreateAzureNodePool( future> AzureClustersConnectionImpl::CreateAzureNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AzureClustersConnectionImpl::UpdateAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -837,8 +831,7 @@ AzureClustersConnectionImpl::UpdateAzureNodePool( future> AzureClustersConnectionImpl::UpdateAzureNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AzureClustersConnectionImpl::DeleteAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -984,8 +977,7 @@ AzureClustersConnectionImpl::DeleteAzureNodePool( future> AzureClustersConnectionImpl::DeleteAzureNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateAzureClient( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& request) override; future> - CreateAzureClient(google::cloud::ExperimentalTag, + CreateAzureClient(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAzureClient( @@ -80,12 +80,12 @@ class AzureClustersConnectionImpl override; StatusOr DeleteAzureClient( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& request) override; future> - DeleteAzureClient(google::cloud::ExperimentalTag, + DeleteAzureClient(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -94,12 +94,12 @@ class AzureClustersConnectionImpl request) override; StatusOr CreateAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& request) override; future> - CreateAzureCluster(google::cloud::ExperimentalTag, + CreateAzureCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -108,12 +108,12 @@ class AzureClustersConnectionImpl request) override; StatusOr UpdateAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& request) override; future> - UpdateAzureCluster(google::cloud::ExperimentalTag, + UpdateAzureCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAzureCluster( @@ -130,12 +130,12 @@ class AzureClustersConnectionImpl request) override; StatusOr DeleteAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& request) override; future> - DeleteAzureCluster(google::cloud::ExperimentalTag, + DeleteAzureCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr< @@ -155,12 +155,12 @@ class AzureClustersConnectionImpl request) override; StatusOr CreateAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& request) override; future> - CreateAzureNodePool(google::cloud::ExperimentalTag, + CreateAzureNodePool(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -169,12 +169,12 @@ class AzureClustersConnectionImpl request) override; StatusOr UpdateAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& request) override; future> - UpdateAzureNodePool(google::cloud::ExperimentalTag, + UpdateAzureNodePool(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAzureNodePool( @@ -191,12 +191,12 @@ class AzureClustersConnectionImpl request) override; StatusOr DeleteAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& request) override; future> - DeleteAzureNodePool(google::cloud::ExperimentalTag, + DeleteAzureNodePool(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.cc b/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.cc index 75de9d98bdd1d..fe100197cab00 100644 --- a/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.cc +++ b/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.cc @@ -44,26 +44,24 @@ AzureClustersTracingConnection::CreateAzureClient( StatusOr AzureClustersTracingConnection::CreateAzureClient( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::CreateAzureClient"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateAzureClient(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateAzureClient(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AzureClustersTracingConnection::CreateAzureClient( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::CreateAzureClient"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateAzureClient(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateAzureClient(ExperimentalTag{}, operation)); } StatusOr @@ -98,26 +96,24 @@ AzureClustersTracingConnection::DeleteAzureClient( StatusOr AzureClustersTracingConnection::DeleteAzureClient( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::DeleteAzureClient"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAzureClient(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteAzureClient(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AzureClustersTracingConnection::DeleteAzureClient( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::DeleteAzureClient"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteAzureClient(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteAzureClient(ExperimentalTag{}, operation)); } future> @@ -133,27 +129,25 @@ AzureClustersTracingConnection::CreateAzureCluster( StatusOr AzureClustersTracingConnection::CreateAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::CreateAzureCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateAzureCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateAzureCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AzureClustersTracingConnection::CreateAzureCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::CreateAzureCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateAzureCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateAzureCluster( + ExperimentalTag{}, operation)); } future> @@ -169,27 +163,25 @@ AzureClustersTracingConnection::UpdateAzureCluster( StatusOr AzureClustersTracingConnection::UpdateAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::UpdateAzureCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateAzureCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateAzureCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AzureClustersTracingConnection::UpdateAzureCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::UpdateAzureCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateAzureCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateAzureCluster( + ExperimentalTag{}, operation)); } StatusOr @@ -226,27 +218,25 @@ AzureClustersTracingConnection::DeleteAzureCluster( StatusOr AzureClustersTracingConnection::DeleteAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::DeleteAzureCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAzureCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteAzureCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AzureClustersTracingConnection::DeleteAzureCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::DeleteAzureCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteAzureCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteAzureCluster( + ExperimentalTag{}, operation)); } StatusOr< @@ -285,27 +275,25 @@ AzureClustersTracingConnection::CreateAzureNodePool( StatusOr AzureClustersTracingConnection::CreateAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::CreateAzureNodePool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateAzureNodePool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateAzureNodePool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AzureClustersTracingConnection::CreateAzureNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::CreateAzureNodePool"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateAzureNodePool(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateAzureNodePool( + ExperimentalTag{}, operation)); } future> @@ -321,27 +309,25 @@ AzureClustersTracingConnection::UpdateAzureNodePool( StatusOr AzureClustersTracingConnection::UpdateAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::UpdateAzureNodePool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateAzureNodePool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateAzureNodePool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AzureClustersTracingConnection::UpdateAzureNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::UpdateAzureNodePool"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateAzureNodePool(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateAzureNodePool( + ExperimentalTag{}, operation)); } StatusOr @@ -378,27 +364,25 @@ AzureClustersTracingConnection::DeleteAzureNodePool( StatusOr AzureClustersTracingConnection::DeleteAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& request) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::DeleteAzureNodePool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAzureNodePool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteAzureNodePool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AzureClustersTracingConnection::DeleteAzureNodePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "gkemulticloud_v1::AzureClustersConnection::DeleteAzureNodePool"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteAzureNodePool(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteAzureNodePool( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.h b/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.h index b683f0635155d..a08a8bdd50c90 100644 --- a/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.h +++ b/google/cloud/gkemulticloud/v1/internal/azure_clusters_tracing_connection.h @@ -46,12 +46,12 @@ class AzureClustersTracingConnection override; StatusOr CreateAzureClient( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& request) override; future> - CreateAzureClient(google::cloud::ExperimentalTag, + CreateAzureClient(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAzureClient( @@ -68,12 +68,12 @@ class AzureClustersTracingConnection override; StatusOr DeleteAzureClient( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& request) override; future> - DeleteAzureClient(google::cloud::ExperimentalTag, + DeleteAzureClient(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -82,12 +82,12 @@ class AzureClustersTracingConnection request) override; StatusOr CreateAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& request) override; future> - CreateAzureCluster(google::cloud::ExperimentalTag, + CreateAzureCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -96,12 +96,12 @@ class AzureClustersTracingConnection request) override; StatusOr UpdateAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& request) override; future> - UpdateAzureCluster(google::cloud::ExperimentalTag, + UpdateAzureCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAzureCluster( @@ -118,12 +118,12 @@ class AzureClustersTracingConnection request) override; StatusOr DeleteAzureCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& request) override; future> - DeleteAzureCluster(google::cloud::ExperimentalTag, + DeleteAzureCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr< @@ -143,12 +143,12 @@ class AzureClustersTracingConnection request) override; StatusOr CreateAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& request) override; future> - CreateAzureNodePool(google::cloud::ExperimentalTag, + CreateAzureNodePool(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -157,12 +157,12 @@ class AzureClustersTracingConnection request) override; StatusOr UpdateAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& request) override; future> - UpdateAzureNodePool(google::cloud::ExperimentalTag, + UpdateAzureNodePool(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAzureNodePool( @@ -179,12 +179,12 @@ class AzureClustersTracingConnection request) override; StatusOr DeleteAzureNodePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& request) override; future> - DeleteAzureNodePool(google::cloud::ExperimentalTag, + DeleteAzureNodePool(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/gkemulticloud/v1/mocks/mock_attached_clusters_connection.h b/google/cloud/gkemulticloud/v1/mocks/mock_attached_clusters_connection.h index cfa3f46bc38bc..d641a7c03c841 100644 --- a/google/cloud/gkemulticloud/v1/mocks/mock_attached_clusters_connection.h +++ b/google/cloud/gkemulticloud/v1/mocks/mock_attached_clusters_connection.h @@ -56,7 +56,7 @@ class MockAttachedClustersConnection MOCK_METHOD( StatusOr, CreateAttachedCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& request), (override)); @@ -64,8 +64,7 @@ class MockAttachedClustersConnection MOCK_METHOD( future>, CreateAttachedCluster, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -77,7 +76,7 @@ class MockAttachedClustersConnection MOCK_METHOD( StatusOr, UpdateAttachedCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& request), (override)); @@ -85,8 +84,7 @@ class MockAttachedClustersConnection MOCK_METHOD( future>, UpdateAttachedCluster, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -98,7 +96,7 @@ class MockAttachedClustersConnection MOCK_METHOD( StatusOr, ImportAttachedCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& request), (override)); @@ -106,8 +104,7 @@ class MockAttachedClustersConnection MOCK_METHOD( future>, ImportAttachedCluster, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -132,7 +129,7 @@ class MockAttachedClustersConnection MOCK_METHOD( StatusOr, DeleteAttachedCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& request), (override)); @@ -140,8 +137,7 @@ class MockAttachedClustersConnection MOCK_METHOD( future>, DeleteAttachedCluster, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/gkemulticloud/v1/mocks/mock_aws_clusters_connection.h b/google/cloud/gkemulticloud/v1/mocks/mock_aws_clusters_connection.h index abb9c03134598..80a4058456ea7 100644 --- a/google/cloud/gkemulticloud/v1/mocks/mock_aws_clusters_connection.h +++ b/google/cloud/gkemulticloud/v1/mocks/mock_aws_clusters_connection.h @@ -54,14 +54,14 @@ class MockAwsClustersConnection (override)); MOCK_METHOD(StatusOr, CreateAwsCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request), (override)); MOCK_METHOD(future>, CreateAwsCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -72,14 +72,14 @@ class MockAwsClustersConnection (override)); MOCK_METHOD(StatusOr, UpdateAwsCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request), (override)); MOCK_METHOD(future>, UpdateAwsCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -102,7 +102,7 @@ class MockAwsClustersConnection (override)); MOCK_METHOD(StatusOr, DeleteAwsCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request), (override)); @@ -110,8 +110,7 @@ class MockAwsClustersConnection MOCK_METHOD( future>, DeleteAwsCluster, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, CreateAwsNodePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& request), (override)); MOCK_METHOD(future>, CreateAwsNodePool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -154,14 +153,14 @@ class MockAwsClustersConnection (override)); MOCK_METHOD(StatusOr, UpdateAwsNodePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request), (override)); MOCK_METHOD(future>, UpdateAwsNodePool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -174,14 +173,14 @@ class MockAwsClustersConnection MOCK_METHOD( StatusOr, RollbackAwsNodePoolUpdate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& request), (override)); MOCK_METHOD(future>, RollbackAwsNodePoolUpdate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -204,7 +203,7 @@ class MockAwsClustersConnection (override)); MOCK_METHOD(StatusOr, DeleteAwsNodePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& request), (override)); @@ -212,8 +211,7 @@ class MockAwsClustersConnection MOCK_METHOD( future>, DeleteAwsNodePool, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/gkemulticloud/v1/mocks/mock_azure_clusters_connection.h b/google/cloud/gkemulticloud/v1/mocks/mock_azure_clusters_connection.h index 9611165ce81f4..2651a63073c36 100644 --- a/google/cloud/gkemulticloud/v1/mocks/mock_azure_clusters_connection.h +++ b/google/cloud/gkemulticloud/v1/mocks/mock_azure_clusters_connection.h @@ -54,14 +54,14 @@ class MockAzureClustersConnection (override)); MOCK_METHOD(StatusOr, CreateAzureClient, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& request), (override)); MOCK_METHOD(future>, CreateAzureClient, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -84,7 +84,7 @@ class MockAzureClustersConnection (override)); MOCK_METHOD(StatusOr, DeleteAzureClient, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& request), (override)); @@ -92,8 +92,7 @@ class MockAzureClustersConnection MOCK_METHOD( future>, DeleteAzureClient, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -105,14 +104,14 @@ class MockAzureClustersConnection MOCK_METHOD( StatusOr, CreateAzureCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& request), (override)); MOCK_METHOD(future>, CreateAzureCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -125,14 +124,14 @@ class MockAzureClustersConnection MOCK_METHOD( StatusOr, UpdateAzureCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& request), (override)); MOCK_METHOD(future>, UpdateAzureCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -156,7 +155,7 @@ class MockAzureClustersConnection MOCK_METHOD( StatusOr, DeleteAzureCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& request), (override)); @@ -164,8 +163,7 @@ class MockAzureClustersConnection MOCK_METHOD( future>, DeleteAzureCluster, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, CreateAzureNodePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& request), (override)); MOCK_METHOD(future>, CreateAzureNodePool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -212,14 +210,14 @@ class MockAzureClustersConnection MOCK_METHOD( StatusOr, UpdateAzureNodePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& request), (override)); MOCK_METHOD(future>, UpdateAzureNodePool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -244,7 +242,7 @@ class MockAzureClustersConnection MOCK_METHOD( StatusOr, DeleteAzureNodePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& request), (override)); @@ -252,8 +250,7 @@ class MockAzureClustersConnection MOCK_METHOD( future>, DeleteAzureNodePool, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/iam/v2/internal/policies_connection_impl.cc b/google/cloud/iam/v2/internal/policies_connection_impl.cc index f5d6b10fde148..60554dfd538eb 100644 --- a/google/cloud/iam/v2/internal/policies_connection_impl.cc +++ b/google/cloud/iam/v2/internal/policies_connection_impl.cc @@ -144,7 +144,7 @@ future> PoliciesConnectionImpl::CreatePolicy( } StatusOr PoliciesConnectionImpl::CreatePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::iam::v2::CreatePolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -158,8 +158,7 @@ StatusOr PoliciesConnectionImpl::CreatePolicy( } future> PoliciesConnectionImpl::CreatePolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -231,7 +230,7 @@ future> PoliciesConnectionImpl::UpdatePolicy( } StatusOr PoliciesConnectionImpl::UpdatePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::iam::v2::UpdatePolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -245,8 +244,7 @@ StatusOr PoliciesConnectionImpl::UpdatePolicy( } future> PoliciesConnectionImpl::UpdatePolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -318,7 +316,7 @@ future> PoliciesConnectionImpl::DeletePolicy( } StatusOr PoliciesConnectionImpl::DeletePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::iam::v2::DeletePolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -332,8 +330,7 @@ StatusOr PoliciesConnectionImpl::DeletePolicy( } future> PoliciesConnectionImpl::DeletePolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/iam/v2/internal/policies_connection_impl.h b/google/cloud/iam/v2/internal/policies_connection_impl.h index 418d9fa6e2214..b90448644c149 100644 --- a/google/cloud/iam/v2/internal/policies_connection_impl.h +++ b/google/cloud/iam/v2/internal/policies_connection_impl.h @@ -60,33 +60,33 @@ class PoliciesConnectionImpl : public iam_v2::PoliciesConnection { google::iam::v2::CreatePolicyRequest const& request) override; StatusOr CreatePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::iam::v2::CreatePolicyRequest const& request) override; future> CreatePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdatePolicy( google::iam::v2::UpdatePolicyRequest const& request) override; StatusOr UpdatePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::iam::v2::UpdatePolicyRequest const& request) override; future> UpdatePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeletePolicy( google::iam::v2::DeletePolicyRequest const& request) override; StatusOr DeletePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::iam::v2::DeletePolicyRequest const& request) override; future> DeletePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/iam/v2/internal/policies_tracing_connection.cc b/google/cloud/iam/v2/internal/policies_tracing_connection.cc index e8c2148751fec..9a9a90f1d89b1 100644 --- a/google/cloud/iam/v2/internal/policies_tracing_connection.cc +++ b/google/cloud/iam/v2/internal/policies_tracing_connection.cc @@ -59,24 +59,21 @@ PoliciesTracingConnection::CreatePolicy( StatusOr PoliciesTracingConnection::CreatePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::iam::v2::CreatePolicyRequest const& request) { auto span = internal::MakeSpan("iam_v2::PoliciesConnection::CreatePolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreatePolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreatePolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> PoliciesTracingConnection::CreatePolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("iam_v2::PoliciesConnection::CreatePolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreatePolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreatePolicy(ExperimentalTag{}, operation)); } future> @@ -89,24 +86,21 @@ PoliciesTracingConnection::UpdatePolicy( StatusOr PoliciesTracingConnection::UpdatePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::iam::v2::UpdatePolicyRequest const& request) { auto span = internal::MakeSpan("iam_v2::PoliciesConnection::UpdatePolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdatePolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdatePolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> PoliciesTracingConnection::UpdatePolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("iam_v2::PoliciesConnection::UpdatePolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdatePolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdatePolicy(ExperimentalTag{}, operation)); } future> @@ -119,24 +113,21 @@ PoliciesTracingConnection::DeletePolicy( StatusOr PoliciesTracingConnection::DeletePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::iam::v2::DeletePolicyRequest const& request) { auto span = internal::MakeSpan("iam_v2::PoliciesConnection::DeletePolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeletePolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeletePolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> PoliciesTracingConnection::DeletePolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("iam_v2::PoliciesConnection::DeletePolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeletePolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeletePolicy(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/iam/v2/internal/policies_tracing_connection.h b/google/cloud/iam/v2/internal/policies_tracing_connection.h index 45069fffb04c0..233d41a207bbd 100644 --- a/google/cloud/iam/v2/internal/policies_tracing_connection.h +++ b/google/cloud/iam/v2/internal/policies_tracing_connection.h @@ -49,33 +49,33 @@ class PoliciesTracingConnection : public iam_v2::PoliciesConnection { google::iam::v2::CreatePolicyRequest const& request) override; StatusOr CreatePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::iam::v2::CreatePolicyRequest const& request) override; future> CreatePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdatePolicy( google::iam::v2::UpdatePolicyRequest const& request) override; StatusOr UpdatePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::iam::v2::UpdatePolicyRequest const& request) override; future> UpdatePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeletePolicy( google::iam::v2::DeletePolicyRequest const& request) override; StatusOr DeletePolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::iam::v2::DeletePolicyRequest const& request) override; future> DeletePolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/iam/v2/mocks/mock_policies_connection.h b/google/cloud/iam/v2/mocks/mock_policies_connection.h index 485cba1de80c3..f6429652384b1 100644 --- a/google/cloud/iam/v2/mocks/mock_policies_connection.h +++ b/google/cloud/iam/v2/mocks/mock_policies_connection.h @@ -57,12 +57,12 @@ class MockPoliciesConnection : public iam_v2::PoliciesConnection { (override)); MOCK_METHOD(StatusOr, CreatePolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::iam::v2::CreatePolicyRequest const& request), (override)); MOCK_METHOD(future>, CreatePolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -71,12 +71,12 @@ class MockPoliciesConnection : public iam_v2::PoliciesConnection { (override)); MOCK_METHOD(StatusOr, UpdatePolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::iam::v2::UpdatePolicyRequest const& request), (override)); MOCK_METHOD(future>, UpdatePolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -85,12 +85,12 @@ class MockPoliciesConnection : public iam_v2::PoliciesConnection { (override)); MOCK_METHOD(StatusOr, DeletePolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::iam::v2::DeletePolicyRequest const& request), (override)); MOCK_METHOD(future>, DeletePolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/ids/v1/internal/ids_connection_impl.cc b/google/cloud/ids/v1/internal/ids_connection_impl.cc index 931b765eb45db..b61cd6e652225 100644 --- a/google/cloud/ids/v1/internal/ids_connection_impl.cc +++ b/google/cloud/ids/v1/internal/ids_connection_impl.cc @@ -145,7 +145,7 @@ IDSConnectionImpl::CreateEndpoint( } StatusOr IDSConnectionImpl::CreateEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::ids::v1::CreateEndpointRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -160,8 +160,7 @@ StatusOr IDSConnectionImpl::CreateEndpoint( future> IDSConnectionImpl::CreateEndpoint( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -235,7 +234,7 @@ IDSConnectionImpl::DeleteEndpoint( } StatusOr IDSConnectionImpl::DeleteEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::ids::v1::DeleteEndpointRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -250,8 +249,7 @@ StatusOr IDSConnectionImpl::DeleteEndpoint( future> IDSConnectionImpl::DeleteEndpoint( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/ids/v1/internal/ids_connection_impl.h b/google/cloud/ids/v1/internal/ids_connection_impl.h index d276454eefc61..b7be54a3b897f 100644 --- a/google/cloud/ids/v1/internal/ids_connection_impl.h +++ b/google/cloud/ids/v1/internal/ids_connection_impl.h @@ -60,22 +60,22 @@ class IDSConnectionImpl : public ids_v1::IDSConnection { google::cloud::ids::v1::CreateEndpointRequest const& request) override; StatusOr CreateEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::ids::v1::CreateEndpointRequest const& request) override; future> CreateEndpoint( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteEndpoint( google::cloud::ids::v1::DeleteEndpointRequest const& request) override; StatusOr DeleteEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::ids::v1::DeleteEndpointRequest const& request) override; future> DeleteEndpoint( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/ids/v1/internal/ids_tracing_connection.cc b/google/cloud/ids/v1/internal/ids_tracing_connection.cc index 17d9f60a13275..7bd67abef3514 100644 --- a/google/cloud/ids/v1/internal/ids_tracing_connection.cc +++ b/google/cloud/ids/v1/internal/ids_tracing_connection.cc @@ -59,24 +59,21 @@ IDSTracingConnection::CreateEndpoint( } StatusOr IDSTracingConnection::CreateEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::ids::v1::CreateEndpointRequest const& request) { auto span = internal::MakeSpan("ids_v1::IDSConnection::CreateEndpoint"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateEndpoint(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateEndpoint(ExperimentalTag{}, NoAwaitTag{}, request)); } future> IDSTracingConnection::CreateEndpoint( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("ids_v1::IDSConnection::CreateEndpoint"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateEndpoint(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateEndpoint(ExperimentalTag{}, operation)); } future> @@ -88,24 +85,21 @@ IDSTracingConnection::DeleteEndpoint( } StatusOr IDSTracingConnection::DeleteEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::ids::v1::DeleteEndpointRequest const& request) { auto span = internal::MakeSpan("ids_v1::IDSConnection::DeleteEndpoint"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteEndpoint(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteEndpoint(ExperimentalTag{}, NoAwaitTag{}, request)); } future> IDSTracingConnection::DeleteEndpoint( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("ids_v1::IDSConnection::DeleteEndpoint"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteEndpoint(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteEndpoint(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/ids/v1/internal/ids_tracing_connection.h b/google/cloud/ids/v1/internal/ids_tracing_connection.h index 8d64df7f4fa83..4111a98a11bfe 100644 --- a/google/cloud/ids/v1/internal/ids_tracing_connection.h +++ b/google/cloud/ids/v1/internal/ids_tracing_connection.h @@ -48,22 +48,22 @@ class IDSTracingConnection : public ids_v1::IDSConnection { google::cloud::ids::v1::CreateEndpointRequest const& request) override; StatusOr CreateEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::ids::v1::CreateEndpointRequest const& request) override; future> CreateEndpoint( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteEndpoint( google::cloud::ids::v1::DeleteEndpointRequest const& request) override; StatusOr DeleteEndpoint( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::ids::v1::DeleteEndpointRequest const& request) override; future> DeleteEndpoint( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/ids/v1/mocks/mock_ids_connection.h b/google/cloud/ids/v1/mocks/mock_ids_connection.h index 5c5fa832bed24..a29de2ef642ef 100644 --- a/google/cloud/ids/v1/mocks/mock_ids_connection.h +++ b/google/cloud/ids/v1/mocks/mock_ids_connection.h @@ -60,13 +60,13 @@ class MockIDSConnection : public ids_v1::IDSConnection { (override)); MOCK_METHOD(StatusOr, CreateEndpoint, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::ids::v1::CreateEndpointRequest const& request), (override)); MOCK_METHOD(future>, CreateEndpoint, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -76,13 +76,13 @@ class MockIDSConnection : public ids_v1::IDSConnection { (override)); MOCK_METHOD(StatusOr, DeleteEndpoint, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::ids::v1::DeleteEndpointRequest const& request), (override)); MOCK_METHOD(future>, DeleteEndpoint, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/kms/v1/internal/autokey_connection_impl.cc b/google/cloud/kms/v1/internal/autokey_connection_impl.cc index d61c765049c1d..d93063bc8ed31 100644 --- a/google/cloud/kms/v1/internal/autokey_connection_impl.cc +++ b/google/cloud/kms/v1/internal/autokey_connection_impl.cc @@ -101,7 +101,7 @@ AutokeyConnectionImpl::CreateKeyHandle( } StatusOr AutokeyConnectionImpl::CreateKeyHandle( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::kms::v1::CreateKeyHandleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -116,8 +116,7 @@ StatusOr AutokeyConnectionImpl::CreateKeyHandle( future> AutokeyConnectionImpl::CreateKeyHandle( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/kms/v1/internal/autokey_connection_impl.h b/google/cloud/kms/v1/internal/autokey_connection_impl.h index 56472e64b0a0d..e7872becb81a5 100644 --- a/google/cloud/kms/v1/internal/autokey_connection_impl.h +++ b/google/cloud/kms/v1/internal/autokey_connection_impl.h @@ -53,11 +53,11 @@ class AutokeyConnectionImpl : public kms_v1::AutokeyConnection { google::cloud::kms::v1::CreateKeyHandleRequest const& request) override; StatusOr CreateKeyHandle( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::kms::v1::CreateKeyHandleRequest const& request) override; future> CreateKeyHandle( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetKeyHandle( diff --git a/google/cloud/kms/v1/internal/autokey_tracing_connection.cc b/google/cloud/kms/v1/internal/autokey_tracing_connection.cc index 0b4b0fd2d8cc5..a995324678d32 100644 --- a/google/cloud/kms/v1/internal/autokey_tracing_connection.cc +++ b/google/cloud/kms/v1/internal/autokey_tracing_connection.cc @@ -42,24 +42,21 @@ AutokeyTracingConnection::CreateKeyHandle( StatusOr AutokeyTracingConnection::CreateKeyHandle( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::kms::v1::CreateKeyHandleRequest const& request) { auto span = internal::MakeSpan("kms_v1::AutokeyConnection::CreateKeyHandle"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateKeyHandle(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateKeyHandle(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AutokeyTracingConnection::CreateKeyHandle( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("kms_v1::AutokeyConnection::CreateKeyHandle"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateKeyHandle(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateKeyHandle(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/kms/v1/internal/autokey_tracing_connection.h b/google/cloud/kms/v1/internal/autokey_tracing_connection.h index 75ff2d2397d84..9edf7f9be9298 100644 --- a/google/cloud/kms/v1/internal/autokey_tracing_connection.h +++ b/google/cloud/kms/v1/internal/autokey_tracing_connection.h @@ -43,11 +43,11 @@ class AutokeyTracingConnection : public kms_v1::AutokeyConnection { google::cloud::kms::v1::CreateKeyHandleRequest const& request) override; StatusOr CreateKeyHandle( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::kms::v1::CreateKeyHandleRequest const& request) override; future> CreateKeyHandle( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetKeyHandle( diff --git a/google/cloud/kms/v1/mocks/mock_autokey_connection.h b/google/cloud/kms/v1/mocks/mock_autokey_connection.h index 06c57f66a777a..a4c0eab179420 100644 --- a/google/cloud/kms/v1/mocks/mock_autokey_connection.h +++ b/google/cloud/kms/v1/mocks/mock_autokey_connection.h @@ -52,13 +52,13 @@ class MockAutokeyConnection : public kms_v1::AutokeyConnection { (override)); MOCK_METHOD(StatusOr, CreateKeyHandle, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::kms::v1::CreateKeyHandleRequest const& request), (override)); MOCK_METHOD(future>, CreateKeyHandle, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/logging/v2/internal/config_service_v2_connection_impl.cc b/google/cloud/logging/v2/internal/config_service_v2_connection_impl.cc index 8a6be14d36b77..4874506e88818 100644 --- a/google/cloud/logging/v2/internal/config_service_v2_connection_impl.cc +++ b/google/cloud/logging/v2/internal/config_service_v2_connection_impl.cc @@ -150,7 +150,7 @@ ConfigServiceV2ConnectionImpl::CreateBucketAsync( StatusOr ConfigServiceV2ConnectionImpl::CreateBucketAsync( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::logging::v2::CreateBucketRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -165,8 +165,7 @@ ConfigServiceV2ConnectionImpl::CreateBucketAsync( future> ConfigServiceV2ConnectionImpl::CreateBucketAsync( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -240,7 +239,7 @@ ConfigServiceV2ConnectionImpl::UpdateBucketAsync( StatusOr ConfigServiceV2ConnectionImpl::UpdateBucketAsync( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::logging::v2::UpdateBucketRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -255,8 +254,7 @@ ConfigServiceV2ConnectionImpl::UpdateBucketAsync( future> ConfigServiceV2ConnectionImpl::UpdateBucketAsync( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -556,7 +554,7 @@ ConfigServiceV2ConnectionImpl::CreateLink( StatusOr ConfigServiceV2ConnectionImpl::CreateLink( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::logging::v2::CreateLinkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -571,8 +569,7 @@ ConfigServiceV2ConnectionImpl::CreateLink( future> ConfigServiceV2ConnectionImpl::CreateLink( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -645,7 +642,7 @@ ConfigServiceV2ConnectionImpl::DeleteLink( StatusOr ConfigServiceV2ConnectionImpl::DeleteLink( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::logging::v2::DeleteLinkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -660,8 +657,7 @@ ConfigServiceV2ConnectionImpl::DeleteLink( future> ConfigServiceV2ConnectionImpl::DeleteLink( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -923,7 +919,7 @@ ConfigServiceV2ConnectionImpl::CopyLogEntries( StatusOr ConfigServiceV2ConnectionImpl::CopyLogEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::logging::v2::CopyLogEntriesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -938,8 +934,7 @@ ConfigServiceV2ConnectionImpl::CopyLogEntries( future> ConfigServiceV2ConnectionImpl::CopyLogEntries( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/logging/v2/internal/config_service_v2_connection_impl.h b/google/cloud/logging/v2/internal/config_service_v2_connection_impl.h index 0e2b3be86a74c..fe90620fd1649 100644 --- a/google/cloud/logging/v2/internal/config_service_v2_connection_impl.h +++ b/google/cloud/logging/v2/internal/config_service_v2_connection_impl.h @@ -62,22 +62,22 @@ class ConfigServiceV2ConnectionImpl google::logging::v2::CreateBucketRequest const& request) override; StatusOr CreateBucketAsync( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::logging::v2::CreateBucketRequest const& request) override; future> CreateBucketAsync( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateBucketAsync( google::logging::v2::UpdateBucketRequest const& request) override; StatusOr UpdateBucketAsync( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::logging::v2::UpdateBucketRequest const& request) override; future> UpdateBucketAsync( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateBucket( @@ -126,22 +126,22 @@ class ConfigServiceV2ConnectionImpl google::logging::v2::CreateLinkRequest const& request) override; StatusOr CreateLink( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::logging::v2::CreateLinkRequest const& request) override; future> CreateLink( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteLink( google::logging::v2::DeleteLinkRequest const& request) override; StatusOr DeleteLink( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::logging::v2::DeleteLinkRequest const& request) override; future> DeleteLink( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListLinks( @@ -181,11 +181,11 @@ class ConfigServiceV2ConnectionImpl google::logging::v2::CopyLogEntriesRequest const& request) override; StatusOr CopyLogEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::logging::v2::CopyLogEntriesRequest const& request) override; future> CopyLogEntries( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.cc b/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.cc index 94c193c0ca3f0..872a7cf3e519a 100644 --- a/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.cc +++ b/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.cc @@ -64,26 +64,24 @@ ConfigServiceV2TracingConnection::CreateBucketAsync( StatusOr ConfigServiceV2TracingConnection::CreateBucketAsync( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CreateBucketRequest const& request) { auto span = internal::MakeSpan( "logging_v2::ConfigServiceV2Connection::CreateBucketAsync"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateBucketAsync(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateBucketAsync(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConfigServiceV2TracingConnection::CreateBucketAsync( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "logging_v2::ConfigServiceV2Connection::CreateBucketAsync"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateBucketAsync(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateBucketAsync(ExperimentalTag{}, operation)); } future> @@ -97,26 +95,24 @@ ConfigServiceV2TracingConnection::UpdateBucketAsync( StatusOr ConfigServiceV2TracingConnection::UpdateBucketAsync( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::UpdateBucketRequest const& request) { auto span = internal::MakeSpan( "logging_v2::ConfigServiceV2Connection::UpdateBucketAsync"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateBucketAsync(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateBucketAsync(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConfigServiceV2TracingConnection::UpdateBucketAsync( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "logging_v2::ConfigServiceV2Connection::UpdateBucketAsync"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateBucketAsync(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateBucketAsync(ExperimentalTag{}, operation)); } StatusOr @@ -256,26 +252,23 @@ ConfigServiceV2TracingConnection::CreateLink( StatusOr ConfigServiceV2TracingConnection::CreateLink( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CreateLinkRequest const& request) { auto span = internal::MakeSpan("logging_v2::ConfigServiceV2Connection::CreateLink"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateLink(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateLink(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConfigServiceV2TracingConnection::CreateLink( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("logging_v2::ConfigServiceV2Connection::CreateLink"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateLink(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateLink(ExperimentalTag{}, operation)); } future> @@ -289,26 +282,23 @@ ConfigServiceV2TracingConnection::DeleteLink( StatusOr ConfigServiceV2TracingConnection::DeleteLink( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::DeleteLinkRequest const& request) { auto span = internal::MakeSpan("logging_v2::ConfigServiceV2Connection::DeleteLink"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteLink(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteLink(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConfigServiceV2TracingConnection::DeleteLink( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("logging_v2::ConfigServiceV2Connection::DeleteLink"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteLink(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteLink(ExperimentalTag{}, operation)); } StreamRange @@ -423,26 +413,23 @@ ConfigServiceV2TracingConnection::CopyLogEntries( StatusOr ConfigServiceV2TracingConnection::CopyLogEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CopyLogEntriesRequest const& request) { auto span = internal::MakeSpan( "logging_v2::ConfigServiceV2Connection::CopyLogEntries"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CopyLogEntries(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CopyLogEntries(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ConfigServiceV2TracingConnection::CopyLogEntries( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "logging_v2::ConfigServiceV2Connection::CopyLogEntries"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CopyLogEntries(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CopyLogEntries(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.h b/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.h index 9406cb60b0cba..e10d0c4f7ab84 100644 --- a/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.h +++ b/google/cloud/logging/v2/internal/config_service_v2_tracing_connection.h @@ -50,22 +50,22 @@ class ConfigServiceV2TracingConnection google::logging::v2::CreateBucketRequest const& request) override; StatusOr CreateBucketAsync( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CreateBucketRequest const& request) override; future> CreateBucketAsync( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateBucketAsync( google::logging::v2::UpdateBucketRequest const& request) override; StatusOr UpdateBucketAsync( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::UpdateBucketRequest const& request) override; future> UpdateBucketAsync( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateBucket( @@ -114,22 +114,22 @@ class ConfigServiceV2TracingConnection google::logging::v2::CreateLinkRequest const& request) override; StatusOr CreateLink( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CreateLinkRequest const& request) override; future> CreateLink( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteLink( google::logging::v2::DeleteLinkRequest const& request) override; StatusOr DeleteLink( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::DeleteLinkRequest const& request) override; future> DeleteLink( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListLinks( @@ -169,11 +169,11 @@ class ConfigServiceV2TracingConnection google::logging::v2::CopyLogEntriesRequest const& request) override; StatusOr CopyLogEntries( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CopyLogEntriesRequest const& request) override; future> CopyLogEntries( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/logging/v2/mocks/mock_config_service_v2_connection.h b/google/cloud/logging/v2/mocks/mock_config_service_v2_connection.h index b70780c9b2099..e2f98e98d4c2b 100644 --- a/google/cloud/logging/v2/mocks/mock_config_service_v2_connection.h +++ b/google/cloud/logging/v2/mocks/mock_config_service_v2_connection.h @@ -60,13 +60,13 @@ class MockConfigServiceV2Connection (override)); MOCK_METHOD(StatusOr, CreateBucketAsync, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::logging::v2::CreateBucketRequest const& request), (override)); MOCK_METHOD(future>, CreateBucketAsync, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -76,13 +76,13 @@ class MockConfigServiceV2Connection (override)); MOCK_METHOD(StatusOr, UpdateBucketAsync, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::logging::v2::UpdateBucketRequest const& request), (override)); MOCK_METHOD(future>, UpdateBucketAsync, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -143,12 +143,12 @@ class MockConfigServiceV2Connection (override)); MOCK_METHOD(StatusOr, CreateLink, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::logging::v2::CreateLinkRequest const& request), (override)); MOCK_METHOD(future>, CreateLink, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -157,12 +157,12 @@ class MockConfigServiceV2Connection (override)); MOCK_METHOD(StatusOr, DeleteLink, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::logging::v2::DeleteLinkRequest const& request), (override)); MOCK_METHOD(future>, DeleteLink, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -213,13 +213,13 @@ class MockConfigServiceV2Connection (override)); MOCK_METHOD(StatusOr, CopyLogEntries, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::logging::v2::CopyLogEntriesRequest const& request), (override)); MOCK_METHOD(future>, CopyLogEntries, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.cc b/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.cc index 082e3f1f9f3a0..ed47f6b851404 100644 --- a/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.cc +++ b/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.cc @@ -115,7 +115,7 @@ ManagedIdentitiesServiceConnectionImpl::CreateMicrosoftAdDomain( StatusOr ManagedIdentitiesServiceConnectionImpl::CreateMicrosoftAdDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedidentities::v1::CreateMicrosoftAdDomainRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -132,8 +132,7 @@ ManagedIdentitiesServiceConnectionImpl::CreateMicrosoftAdDomain( future> ManagedIdentitiesServiceConnectionImpl::CreateMicrosoftAdDomain( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -278,7 +277,7 @@ ManagedIdentitiesServiceConnectionImpl::UpdateDomain( StatusOr ManagedIdentitiesServiceConnectionImpl::UpdateDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedidentities::v1::UpdateDomainRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -294,8 +293,7 @@ ManagedIdentitiesServiceConnectionImpl::UpdateDomain( future> ManagedIdentitiesServiceConnectionImpl::UpdateDomain( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -372,7 +370,7 @@ ManagedIdentitiesServiceConnectionImpl::DeleteDomain( StatusOr ManagedIdentitiesServiceConnectionImpl::DeleteDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedidentities::v1::DeleteDomainRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -388,8 +386,7 @@ ManagedIdentitiesServiceConnectionImpl::DeleteDomain( future> ManagedIdentitiesServiceConnectionImpl::DeleteDomain( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -466,7 +463,7 @@ ManagedIdentitiesServiceConnectionImpl::AttachTrust( StatusOr ManagedIdentitiesServiceConnectionImpl::AttachTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedidentities::v1::AttachTrustRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -482,8 +479,7 @@ ManagedIdentitiesServiceConnectionImpl::AttachTrust( future> ManagedIdentitiesServiceConnectionImpl::AttachTrust( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -561,7 +557,7 @@ ManagedIdentitiesServiceConnectionImpl::ReconfigureTrust( StatusOr ManagedIdentitiesServiceConnectionImpl::ReconfigureTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedidentities::v1::ReconfigureTrustRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -579,8 +575,7 @@ ManagedIdentitiesServiceConnectionImpl::ReconfigureTrust( future> ManagedIdentitiesServiceConnectionImpl::ReconfigureTrust( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -657,7 +652,7 @@ ManagedIdentitiesServiceConnectionImpl::DetachTrust( StatusOr ManagedIdentitiesServiceConnectionImpl::DetachTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedidentities::v1::DetachTrustRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -673,8 +668,7 @@ ManagedIdentitiesServiceConnectionImpl::DetachTrust( future> ManagedIdentitiesServiceConnectionImpl::DetachTrust( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -751,7 +745,7 @@ ManagedIdentitiesServiceConnectionImpl::ValidateTrust( StatusOr ManagedIdentitiesServiceConnectionImpl::ValidateTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedidentities::v1::ValidateTrustRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -767,8 +761,7 @@ ManagedIdentitiesServiceConnectionImpl::ValidateTrust( future> ManagedIdentitiesServiceConnectionImpl::ValidateTrust( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.h b/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.h index f37d6f12ffded..656766a6877d9 100644 --- a/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.h +++ b/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.h @@ -60,13 +60,13 @@ class ManagedIdentitiesServiceConnectionImpl CreateMicrosoftAdDomainRequest const& request) override; StatusOr CreateMicrosoftAdDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedidentities::v1:: CreateMicrosoftAdDomainRequest const& request) override; future> CreateMicrosoftAdDomain( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -87,12 +87,12 @@ class ManagedIdentitiesServiceConnectionImpl override; StatusOr UpdateDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedidentities::v1::UpdateDomainRequest const& request) override; future> UpdateDomain( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -100,12 +100,12 @@ class ManagedIdentitiesServiceConnectionImpl request) override; StatusOr DeleteDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedidentities::v1::DeleteDomainRequest const& request) override; future> - DeleteDomain(google::cloud::ExperimentalTag, + DeleteDomain(ExperimentalTag, google::longrunning::Operation const& operation) override; future> AttachTrust( @@ -113,12 +113,12 @@ class ManagedIdentitiesServiceConnectionImpl override; StatusOr AttachTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedidentities::v1::AttachTrustRequest const& request) override; future> AttachTrust( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -127,12 +127,12 @@ class ManagedIdentitiesServiceConnectionImpl request) override; StatusOr ReconfigureTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedidentities::v1::ReconfigureTrustRequest const& request) override; future> - ReconfigureTrust(google::cloud::ExperimentalTag, + ReconfigureTrust(ExperimentalTag, google::longrunning::Operation const& operation) override; future> DetachTrust( @@ -140,12 +140,12 @@ class ManagedIdentitiesServiceConnectionImpl override; StatusOr DetachTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedidentities::v1::DetachTrustRequest const& request) override; future> DetachTrust( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ValidateTrust( @@ -153,12 +153,12 @@ class ManagedIdentitiesServiceConnectionImpl override; StatusOr ValidateTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedidentities::v1::ValidateTrustRequest const& request) override; future> ValidateTrust( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.cc b/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.cc index b321d7f910035..7355bd5f4f510 100644 --- a/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.cc +++ b/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.cc @@ -50,29 +50,27 @@ ManagedIdentitiesServiceTracingConnection::CreateMicrosoftAdDomain( StatusOr ManagedIdentitiesServiceTracingConnection::CreateMicrosoftAdDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::CreateMicrosoftAdDomainRequest const& request) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::" "CreateMicrosoftAdDomain"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateMicrosoftAdDomain( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateMicrosoftAdDomain(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ManagedIdentitiesServiceTracingConnection::CreateMicrosoftAdDomain( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::" "CreateMicrosoftAdDomain"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateMicrosoftAdDomain( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateMicrosoftAdDomain( + ExperimentalTag{}, operation)); } StatusOr @@ -118,26 +116,23 @@ ManagedIdentitiesServiceTracingConnection::UpdateDomain( StatusOr ManagedIdentitiesServiceTracingConnection::UpdateDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::UpdateDomainRequest const& request) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::UpdateDomain"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateDomain(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateDomain(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedIdentitiesServiceTracingConnection::UpdateDomain( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::UpdateDomain"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateDomain(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateDomain(ExperimentalTag{}, operation)); } future> @@ -151,26 +146,23 @@ ManagedIdentitiesServiceTracingConnection::DeleteDomain( StatusOr ManagedIdentitiesServiceTracingConnection::DeleteDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::DeleteDomainRequest const& request) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::DeleteDomain"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteDomain(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteDomain(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedIdentitiesServiceTracingConnection::DeleteDomain( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::DeleteDomain"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteDomain(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteDomain(ExperimentalTag{}, operation)); } future> @@ -184,26 +176,23 @@ ManagedIdentitiesServiceTracingConnection::AttachTrust( StatusOr ManagedIdentitiesServiceTracingConnection::AttachTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::AttachTrustRequest const& request) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::AttachTrust"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AttachTrust(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AttachTrust(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedIdentitiesServiceTracingConnection::AttachTrust( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::AttachTrust"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AttachTrust(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->AttachTrust(ExperimentalTag{}, operation)); } future> @@ -219,7 +208,7 @@ ManagedIdentitiesServiceTracingConnection::ReconfigureTrust( StatusOr ManagedIdentitiesServiceTracingConnection::ReconfigureTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::ReconfigureTrustRequest const& request) { auto span = internal::MakeSpan( @@ -227,21 +216,19 @@ ManagedIdentitiesServiceTracingConnection::ReconfigureTrust( "ReconfigureTrust"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ReconfigureTrust(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ReconfigureTrust(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedIdentitiesServiceTracingConnection::ReconfigureTrust( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::" "ReconfigureTrust"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ReconfigureTrust(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ReconfigureTrust(ExperimentalTag{}, operation)); } future> @@ -255,26 +242,23 @@ ManagedIdentitiesServiceTracingConnection::DetachTrust( StatusOr ManagedIdentitiesServiceTracingConnection::DetachTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::DetachTrustRequest const& request) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::DetachTrust"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DetachTrust(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DetachTrust(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedIdentitiesServiceTracingConnection::DetachTrust( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::DetachTrust"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DetachTrust(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DetachTrust(ExperimentalTag{}, operation)); } future> @@ -289,28 +273,25 @@ ManagedIdentitiesServiceTracingConnection::ValidateTrust( StatusOr ManagedIdentitiesServiceTracingConnection::ValidateTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::ValidateTrustRequest const& request) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::" "ValidateTrust"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ValidateTrust(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ValidateTrust(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedIdentitiesServiceTracingConnection::ValidateTrust( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "managedidentities_v1::ManagedIdentitiesServiceConnection::" "ValidateTrust"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ValidateTrust(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ValidateTrust(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.h b/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.h index 156287c11beb2..517403a0c93e6 100644 --- a/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.h +++ b/google/cloud/managedidentities/v1/internal/managed_identities_tracing_connection.h @@ -47,13 +47,13 @@ class ManagedIdentitiesServiceTracingConnection CreateMicrosoftAdDomainRequest const& request) override; StatusOr CreateMicrosoftAdDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1:: CreateMicrosoftAdDomainRequest const& request) override; future> CreateMicrosoftAdDomain( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -74,12 +74,12 @@ class ManagedIdentitiesServiceTracingConnection override; StatusOr UpdateDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::UpdateDomainRequest const& request) override; future> UpdateDomain( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -87,12 +87,12 @@ class ManagedIdentitiesServiceTracingConnection request) override; StatusOr DeleteDomain( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::DeleteDomainRequest const& request) override; future> - DeleteDomain(google::cloud::ExperimentalTag, + DeleteDomain(ExperimentalTag, google::longrunning::Operation const& operation) override; future> AttachTrust( @@ -100,12 +100,12 @@ class ManagedIdentitiesServiceTracingConnection override; StatusOr AttachTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::AttachTrustRequest const& request) override; future> AttachTrust( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -114,12 +114,12 @@ class ManagedIdentitiesServiceTracingConnection request) override; StatusOr ReconfigureTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::ReconfigureTrustRequest const& request) override; future> - ReconfigureTrust(google::cloud::ExperimentalTag, + ReconfigureTrust(ExperimentalTag, google::longrunning::Operation const& operation) override; future> DetachTrust( @@ -127,12 +127,12 @@ class ManagedIdentitiesServiceTracingConnection override; StatusOr DetachTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::DetachTrustRequest const& request) override; future> DetachTrust( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ValidateTrust( @@ -140,12 +140,12 @@ class ManagedIdentitiesServiceTracingConnection override; StatusOr ValidateTrust( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::ValidateTrustRequest const& request) override; future> ValidateTrust( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/managedidentities/v1/mocks/mock_managed_identities_connection.h b/google/cloud/managedidentities/v1/mocks/mock_managed_identities_connection.h index 19de7a4c67b1a..8b0dc071032fc 100644 --- a/google/cloud/managedidentities/v1/mocks/mock_managed_identities_connection.h +++ b/google/cloud/managedidentities/v1/mocks/mock_managed_identities_connection.h @@ -54,14 +54,14 @@ class MockManagedIdentitiesServiceConnection (override)); MOCK_METHOD(StatusOr, CreateMicrosoftAdDomain, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1:: CreateMicrosoftAdDomainRequest const& request), (override)); MOCK_METHOD(future>, CreateMicrosoftAdDomain, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -90,14 +90,14 @@ class MockManagedIdentitiesServiceConnection (override)); MOCK_METHOD(StatusOr, UpdateDomain, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::UpdateDomainRequest const& request), (override)); MOCK_METHOD(future>, UpdateDomain, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -109,7 +109,7 @@ class MockManagedIdentitiesServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteDomain, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::DeleteDomainRequest const& request), (override)); @@ -117,8 +117,7 @@ class MockManagedIdentitiesServiceConnection MOCK_METHOD( future>, DeleteDomain, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -129,13 +128,13 @@ class MockManagedIdentitiesServiceConnection MOCK_METHOD( StatusOr, AttachTrust, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::AttachTrustRequest const& request), (override)); MOCK_METHOD(future>, AttachTrust, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -148,14 +147,14 @@ class MockManagedIdentitiesServiceConnection MOCK_METHOD( StatusOr, ReconfigureTrust, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::ReconfigureTrustRequest const& request), (override)); MOCK_METHOD(future>, ReconfigureTrust, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -167,13 +166,13 @@ class MockManagedIdentitiesServiceConnection MOCK_METHOD( StatusOr, DetachTrust, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::DetachTrustRequest const& request), (override)); MOCK_METHOD(future>, DetachTrust, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -184,14 +183,14 @@ class MockManagedIdentitiesServiceConnection (override)); MOCK_METHOD(StatusOr, ValidateTrust, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::ValidateTrustRequest const& request), (override)); MOCK_METHOD(future>, ValidateTrust, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.cc b/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.cc index 3630dda434a90..69f9405659414 100644 --- a/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.cc +++ b/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.cc @@ -157,7 +157,7 @@ ManagedKafkaConnectionImpl::CreateCluster( StatusOr ManagedKafkaConnectionImpl::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedkafka::v1::CreateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -173,8 +173,7 @@ ManagedKafkaConnectionImpl::CreateCluster( future> ManagedKafkaConnectionImpl::CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -251,7 +250,7 @@ ManagedKafkaConnectionImpl::UpdateCluster( StatusOr ManagedKafkaConnectionImpl::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedkafka::v1::UpdateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -267,8 +266,7 @@ ManagedKafkaConnectionImpl::UpdateCluster( future> ManagedKafkaConnectionImpl::UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -345,7 +343,7 @@ ManagedKafkaConnectionImpl::DeleteCluster( StatusOr ManagedKafkaConnectionImpl::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedkafka::v1::DeleteClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -361,8 +359,7 @@ ManagedKafkaConnectionImpl::DeleteCluster( future> ManagedKafkaConnectionImpl::DeleteCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.h b/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.h index 25fafde111d9e..98cd42cb53336 100644 --- a/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.h +++ b/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.h @@ -64,12 +64,12 @@ class ManagedKafkaConnectionImpl override; StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedkafka::v1::CreateClusterRequest const& request) override; future> CreateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateCluster( @@ -77,12 +77,12 @@ class ManagedKafkaConnectionImpl override; StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedkafka::v1::UpdateClusterRequest const& request) override; future> UpdateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -90,12 +90,12 @@ class ManagedKafkaConnectionImpl request) override; StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::managedkafka::v1::DeleteClusterRequest const& request) override; future> - DeleteCluster(google::cloud::ExperimentalTag, + DeleteCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTopics( diff --git a/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.cc b/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.cc index a92f3c12a4f1f..41bbd624b0cd9 100644 --- a/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.cc +++ b/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.cc @@ -64,26 +64,23 @@ ManagedKafkaTracingConnection::CreateCluster( StatusOr ManagedKafkaTracingConnection::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::CreateClusterRequest const& request) { auto span = internal::MakeSpan( "managedkafka_v1::ManagedKafkaConnection::CreateCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedKafkaTracingConnection::CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "managedkafka_v1::ManagedKafkaConnection::CreateCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateCluster(ExperimentalTag{}, operation)); } future> @@ -97,26 +94,23 @@ ManagedKafkaTracingConnection::UpdateCluster( StatusOr ManagedKafkaTracingConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::UpdateClusterRequest const& request) { auto span = internal::MakeSpan( "managedkafka_v1::ManagedKafkaConnection::UpdateCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedKafkaTracingConnection::UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "managedkafka_v1::ManagedKafkaConnection::UpdateCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateCluster(ExperimentalTag{}, operation)); } future> @@ -130,26 +124,23 @@ ManagedKafkaTracingConnection::DeleteCluster( StatusOr ManagedKafkaTracingConnection::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::DeleteClusterRequest const& request) { auto span = internal::MakeSpan( "managedkafka_v1::ManagedKafkaConnection::DeleteCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedKafkaTracingConnection::DeleteCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "managedkafka_v1::ManagedKafkaConnection::DeleteCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteCluster(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.h b/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.h index 97d5f3494de9d..0ec3187c358dc 100644 --- a/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.h +++ b/google/cloud/managedkafka/v1/internal/managed_kafka_tracing_connection.h @@ -52,12 +52,12 @@ class ManagedKafkaTracingConnection override; StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::CreateClusterRequest const& request) override; future> CreateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateCluster( @@ -65,12 +65,12 @@ class ManagedKafkaTracingConnection override; StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::UpdateClusterRequest const& request) override; future> UpdateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -78,12 +78,12 @@ class ManagedKafkaTracingConnection request) override; StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::DeleteClusterRequest const& request) override; future> - DeleteCluster(google::cloud::ExperimentalTag, + DeleteCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTopics( diff --git a/google/cloud/managedkafka/v1/mocks/mock_managed_kafka_connection.h b/google/cloud/managedkafka/v1/mocks/mock_managed_kafka_connection.h index 3e2524f4d5cad..757cdef6015b8 100644 --- a/google/cloud/managedkafka/v1/mocks/mock_managed_kafka_connection.h +++ b/google/cloud/managedkafka/v1/mocks/mock_managed_kafka_connection.h @@ -64,13 +64,13 @@ class MockManagedKafkaConnection MOCK_METHOD( StatusOr, CreateCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::CreateClusterRequest const& request), (override)); MOCK_METHOD(future>, CreateCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -81,13 +81,13 @@ class MockManagedKafkaConnection MOCK_METHOD( StatusOr, UpdateCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::UpdateClusterRequest const& request), (override)); MOCK_METHOD(future>, UpdateCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -99,15 +99,14 @@ class MockManagedKafkaConnection MOCK_METHOD( StatusOr, DeleteCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::DeleteClusterRequest const& request), (override)); MOCK_METHOD( future>, DeleteCluster, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), ListTopics, diff --git a/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.cc b/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.cc index 1ecf32460966f..69d81d40f0255 100644 --- a/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.cc +++ b/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.cc @@ -153,7 +153,7 @@ CloudMemcacheConnectionImpl::CreateInstance( StatusOr CloudMemcacheConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::memcache::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -169,8 +169,7 @@ CloudMemcacheConnectionImpl::CreateInstance( future> CloudMemcacheConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -245,7 +244,7 @@ CloudMemcacheConnectionImpl::UpdateInstance( StatusOr CloudMemcacheConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::memcache::v1::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -261,8 +260,7 @@ CloudMemcacheConnectionImpl::UpdateInstance( future> CloudMemcacheConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -337,7 +335,7 @@ CloudMemcacheConnectionImpl::UpdateParameters( StatusOr CloudMemcacheConnectionImpl::UpdateParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::memcache::v1::UpdateParametersRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -353,8 +351,7 @@ CloudMemcacheConnectionImpl::UpdateParameters( future> CloudMemcacheConnectionImpl::UpdateParameters( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -429,7 +426,7 @@ CloudMemcacheConnectionImpl::DeleteInstance( StatusOr CloudMemcacheConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::memcache::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -445,8 +442,7 @@ CloudMemcacheConnectionImpl::DeleteInstance( future> CloudMemcacheConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -522,7 +518,7 @@ CloudMemcacheConnectionImpl::ApplyParameters( StatusOr CloudMemcacheConnectionImpl::ApplyParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::memcache::v1::ApplyParametersRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -538,8 +534,7 @@ CloudMemcacheConnectionImpl::ApplyParameters( future> CloudMemcacheConnectionImpl::ApplyParameters( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -615,7 +610,7 @@ CloudMemcacheConnectionImpl::RescheduleMaintenance( StatusOr CloudMemcacheConnectionImpl::RescheduleMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -631,8 +626,7 @@ CloudMemcacheConnectionImpl::RescheduleMaintenance( future> CloudMemcacheConnectionImpl::RescheduleMaintenance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.h b/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.h index d110dc20cedc6..199d2f4e3f7a7 100644 --- a/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.h +++ b/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.h @@ -63,12 +63,12 @@ class CloudMemcacheConnectionImpl override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::memcache::v1::CreateInstanceRequest const& request) override; future> CreateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateInstance( @@ -76,12 +76,12 @@ class CloudMemcacheConnectionImpl override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::memcache::v1::UpdateInstanceRequest const& request) override; future> UpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateParameters( @@ -89,12 +89,12 @@ class CloudMemcacheConnectionImpl override; StatusOr UpdateParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::memcache::v1::UpdateParametersRequest const& request) override; future> UpdateParameters( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -102,12 +102,12 @@ class CloudMemcacheConnectionImpl request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::memcache::v1::DeleteInstanceRequest const& request) override; future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> ApplyParameters( @@ -115,12 +115,12 @@ class CloudMemcacheConnectionImpl override; StatusOr ApplyParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::memcache::v1::ApplyParametersRequest const& request) override; future> ApplyParameters( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RescheduleMaintenance( @@ -128,12 +128,12 @@ class CloudMemcacheConnectionImpl override; StatusOr RescheduleMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request) override; future> RescheduleMaintenance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.cc b/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.cc index 89bf823f2174d..e1d8db3aa309d 100644 --- a/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.cc +++ b/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.cc @@ -64,26 +64,23 @@ CloudMemcacheTracingConnection::CreateInstance( StatusOr CloudMemcacheTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::CreateInstanceRequest const& request) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::CreateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudMemcacheTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::CreateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateInstance(ExperimentalTag{}, operation)); } future> @@ -97,26 +94,23 @@ CloudMemcacheTracingConnection::UpdateInstance( StatusOr CloudMemcacheTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::UpdateInstanceRequest const& request) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::UpdateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudMemcacheTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::UpdateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateInstance(ExperimentalTag{}, operation)); } future> @@ -130,26 +124,24 @@ CloudMemcacheTracingConnection::UpdateParameters( StatusOr CloudMemcacheTracingConnection::UpdateParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::UpdateParametersRequest const& request) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::UpdateParameters"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateParameters(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateParameters(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudMemcacheTracingConnection::UpdateParameters( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::UpdateParameters"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateParameters(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateParameters(ExperimentalTag{}, operation)); } future> @@ -163,26 +155,23 @@ CloudMemcacheTracingConnection::DeleteInstance( StatusOr CloudMemcacheTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::DeleteInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudMemcacheTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::DeleteInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteInstance(ExperimentalTag{}, operation)); } future> @@ -196,26 +185,23 @@ CloudMemcacheTracingConnection::ApplyParameters( StatusOr CloudMemcacheTracingConnection::ApplyParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::ApplyParametersRequest const& request) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::ApplyParameters"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ApplyParameters(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ApplyParameters(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudMemcacheTracingConnection::ApplyParameters( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::ApplyParameters"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ApplyParameters(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ApplyParameters(ExperimentalTag{}, operation)); } future> @@ -230,26 +216,24 @@ CloudMemcacheTracingConnection::RescheduleMaintenance( StatusOr CloudMemcacheTracingConnection::RescheduleMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::RescheduleMaintenance"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RescheduleMaintenance( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->RescheduleMaintenance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudMemcacheTracingConnection::RescheduleMaintenance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "memcache_v1::CloudMemcacheConnection::RescheduleMaintenance"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RescheduleMaintenance( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RescheduleMaintenance( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.h b/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.h index b8196ea64b366..032d92f7001c6 100644 --- a/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.h +++ b/google/cloud/memcache/v1/internal/cloud_memcache_tracing_connection.h @@ -51,12 +51,12 @@ class CloudMemcacheTracingConnection override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::CreateInstanceRequest const& request) override; future> CreateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateInstance( @@ -64,12 +64,12 @@ class CloudMemcacheTracingConnection override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::UpdateInstanceRequest const& request) override; future> UpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateParameters( @@ -77,12 +77,12 @@ class CloudMemcacheTracingConnection override; StatusOr UpdateParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::UpdateParametersRequest const& request) override; future> UpdateParameters( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -90,12 +90,12 @@ class CloudMemcacheTracingConnection request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::DeleteInstanceRequest const& request) override; future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> ApplyParameters( @@ -103,12 +103,12 @@ class CloudMemcacheTracingConnection override; StatusOr ApplyParameters( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::ApplyParametersRequest const& request) override; future> ApplyParameters( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RescheduleMaintenance( @@ -116,12 +116,12 @@ class CloudMemcacheTracingConnection override; StatusOr RescheduleMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request) override; future> RescheduleMaintenance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/memcache/v1/mocks/mock_cloud_memcache_connection.h b/google/cloud/memcache/v1/mocks/mock_cloud_memcache_connection.h index d45263503cd5d..35736a86ae475 100644 --- a/google/cloud/memcache/v1/mocks/mock_cloud_memcache_connection.h +++ b/google/cloud/memcache/v1/mocks/mock_cloud_memcache_connection.h @@ -63,13 +63,13 @@ class MockCloudMemcacheConnection MOCK_METHOD( StatusOr, CreateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::CreateInstanceRequest const& request), (override)); MOCK_METHOD(future>, CreateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -80,13 +80,13 @@ class MockCloudMemcacheConnection MOCK_METHOD( StatusOr, UpdateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::UpdateInstanceRequest const& request), (override)); MOCK_METHOD(future>, UpdateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -97,13 +97,13 @@ class MockCloudMemcacheConnection MOCK_METHOD( StatusOr, UpdateParameters, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::UpdateParametersRequest const& request), (override)); MOCK_METHOD(future>, UpdateParameters, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -115,13 +115,13 @@ class MockCloudMemcacheConnection MOCK_METHOD( StatusOr, DeleteInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::DeleteInstanceRequest const& request), (override)); MOCK_METHOD(future>, DeleteInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -132,13 +132,13 @@ class MockCloudMemcacheConnection MOCK_METHOD( StatusOr, ApplyParameters, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::ApplyParametersRequest const& request), (override)); MOCK_METHOD(future>, ApplyParameters, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -149,14 +149,14 @@ class MockCloudMemcacheConnection (override)); MOCK_METHOD(StatusOr, RescheduleMaintenance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request), (override)); MOCK_METHOD(future>, RescheduleMaintenance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.cc b/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.cc index 89c3e01c76204..faacbd47f4673 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.cc +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.cc @@ -156,7 +156,7 @@ DataprocMetastoreConnectionImpl::CreateService( StatusOr DataprocMetastoreConnectionImpl::CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::CreateServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -172,8 +172,7 @@ DataprocMetastoreConnectionImpl::CreateService( future> DataprocMetastoreConnectionImpl::CreateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -248,7 +247,7 @@ DataprocMetastoreConnectionImpl::UpdateService( StatusOr DataprocMetastoreConnectionImpl::UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::UpdateServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -264,8 +263,7 @@ DataprocMetastoreConnectionImpl::UpdateService( future> DataprocMetastoreConnectionImpl::UpdateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -340,7 +338,7 @@ DataprocMetastoreConnectionImpl::DeleteService( StatusOr DataprocMetastoreConnectionImpl::DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::DeleteServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -356,8 +354,7 @@ DataprocMetastoreConnectionImpl::DeleteService( future> DataprocMetastoreConnectionImpl::DeleteService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -484,7 +481,7 @@ DataprocMetastoreConnectionImpl::CreateMetadataImport( StatusOr DataprocMetastoreConnectionImpl::CreateMetadataImport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::CreateMetadataImportRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -500,8 +497,7 @@ DataprocMetastoreConnectionImpl::CreateMetadataImport( future> DataprocMetastoreConnectionImpl::CreateMetadataImport( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -578,7 +574,7 @@ DataprocMetastoreConnectionImpl::UpdateMetadataImport( StatusOr DataprocMetastoreConnectionImpl::UpdateMetadataImport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::UpdateMetadataImportRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -594,8 +590,7 @@ DataprocMetastoreConnectionImpl::UpdateMetadataImport( future> DataprocMetastoreConnectionImpl::UpdateMetadataImport( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -671,7 +666,7 @@ DataprocMetastoreConnectionImpl::ExportMetadata( StatusOr DataprocMetastoreConnectionImpl::ExportMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::ExportMetadataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -687,8 +682,7 @@ DataprocMetastoreConnectionImpl::ExportMetadata( future> DataprocMetastoreConnectionImpl::ExportMetadata( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -764,7 +758,7 @@ DataprocMetastoreConnectionImpl::RestoreService( StatusOr DataprocMetastoreConnectionImpl::RestoreService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::RestoreServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -780,8 +774,7 @@ DataprocMetastoreConnectionImpl::RestoreService( future> DataprocMetastoreConnectionImpl::RestoreService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -904,7 +897,7 @@ DataprocMetastoreConnectionImpl::CreateBackup( StatusOr DataprocMetastoreConnectionImpl::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -919,8 +912,7 @@ DataprocMetastoreConnectionImpl::CreateBackup( future> DataprocMetastoreConnectionImpl::CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -995,7 +987,7 @@ DataprocMetastoreConnectionImpl::DeleteBackup( StatusOr DataprocMetastoreConnectionImpl::DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::DeleteBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1010,8 +1002,7 @@ DataprocMetastoreConnectionImpl::DeleteBackup( future> DataprocMetastoreConnectionImpl::DeleteBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1087,7 +1078,7 @@ DataprocMetastoreConnectionImpl::QueryMetadata( StatusOr DataprocMetastoreConnectionImpl::QueryMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::QueryMetadataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1103,8 +1094,7 @@ DataprocMetastoreConnectionImpl::QueryMetadata( future> DataprocMetastoreConnectionImpl::QueryMetadata( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1181,7 +1171,7 @@ DataprocMetastoreConnectionImpl::MoveTableToDatabase( StatusOr DataprocMetastoreConnectionImpl::MoveTableToDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1197,8 +1187,7 @@ DataprocMetastoreConnectionImpl::MoveTableToDatabase( future> DataprocMetastoreConnectionImpl::MoveTableToDatabase( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1276,7 +1265,7 @@ DataprocMetastoreConnectionImpl::AlterMetadataResourceLocation( StatusOr DataprocMetastoreConnectionImpl::AlterMetadataResourceLocation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1294,8 +1283,7 @@ DataprocMetastoreConnectionImpl::AlterMetadataResourceLocation( future> DataprocMetastoreConnectionImpl::AlterMetadataResourceLocation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.h b/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.h index 92f8003b410be..1a67a740968df 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.h +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.h @@ -63,12 +63,12 @@ class DataprocMetastoreConnectionImpl override; StatusOr CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::CreateServiceRequest const& request) override; future> CreateService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateService( @@ -76,12 +76,12 @@ class DataprocMetastoreConnectionImpl override; StatusOr UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::UpdateServiceRequest const& request) override; future> UpdateService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -89,12 +89,12 @@ class DataprocMetastoreConnectionImpl request) override; StatusOr DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::DeleteServiceRequest const& request) override; future> - DeleteService(google::cloud::ExperimentalTag, + DeleteService(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListMetadataImports( @@ -111,13 +111,13 @@ class DataprocMetastoreConnectionImpl override; StatusOr CreateMetadataImport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::CreateMetadataImportRequest const& request) override; future> CreateMetadataImport( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -126,13 +126,13 @@ class DataprocMetastoreConnectionImpl override; StatusOr UpdateMetadataImport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::UpdateMetadataImportRequest const& request) override; future> UpdateMetadataImport( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ExportMetadata( @@ -140,12 +140,12 @@ class DataprocMetastoreConnectionImpl override; StatusOr ExportMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::ExportMetadataRequest const& request) override; future> ExportMetadata( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RestoreService( @@ -153,12 +153,12 @@ class DataprocMetastoreConnectionImpl override; StatusOr RestoreService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::RestoreServiceRequest const& request) override; future> RestoreService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListBackups( @@ -172,12 +172,12 @@ class DataprocMetastoreConnectionImpl override; StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::CreateBackupRequest const& request) override; future> CreateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -185,12 +185,12 @@ class DataprocMetastoreConnectionImpl override; StatusOr DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::DeleteBackupRequest const& request) override; future> - DeleteBackup(google::cloud::ExperimentalTag, + DeleteBackup(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -198,12 +198,12 @@ class DataprocMetastoreConnectionImpl request) override; StatusOr QueryMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::QueryMetadataRequest const& request) override; future> - QueryMetadata(google::cloud::ExperimentalTag, + QueryMetadata(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -212,12 +212,12 @@ class DataprocMetastoreConnectionImpl override; StatusOr MoveTableToDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request) override; future> - MoveTableToDatabase(google::cloud::ExperimentalTag, + MoveTableToDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; future AlterMetadataResourceLocation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& request) override; future> AlterMetadataResourceLocation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.cc b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.cc index be1b100879ab6..a4bd56e0d529b 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.cc +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.cc @@ -167,7 +167,7 @@ DataprocMetastoreFederationConnectionImpl::CreateFederation( StatusOr DataprocMetastoreFederationConnectionImpl::CreateFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::CreateFederationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -183,8 +183,7 @@ DataprocMetastoreFederationConnectionImpl::CreateFederation( future> DataprocMetastoreFederationConnectionImpl::CreateFederation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -261,7 +260,7 @@ DataprocMetastoreFederationConnectionImpl::UpdateFederation( StatusOr DataprocMetastoreFederationConnectionImpl::UpdateFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::UpdateFederationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -277,8 +276,7 @@ DataprocMetastoreFederationConnectionImpl::UpdateFederation( future> DataprocMetastoreFederationConnectionImpl::UpdateFederation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -355,7 +353,7 @@ DataprocMetastoreFederationConnectionImpl::DeleteFederation( StatusOr DataprocMetastoreFederationConnectionImpl::DeleteFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::DeleteFederationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -371,8 +369,7 @@ DataprocMetastoreFederationConnectionImpl::DeleteFederation( future> DataprocMetastoreFederationConnectionImpl::DeleteFederation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.h b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.h index ae9cf91721320..58db81a7ac0c7 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.h +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.h @@ -65,12 +65,12 @@ class DataprocMetastoreFederationConnectionImpl override; StatusOr CreateFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::CreateFederationRequest const& request) override; future> CreateFederation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateFederation( @@ -78,12 +78,12 @@ class DataprocMetastoreFederationConnectionImpl override; StatusOr UpdateFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::UpdateFederationRequest const& request) override; future> UpdateFederation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -91,12 +91,12 @@ class DataprocMetastoreFederationConnectionImpl request) override; StatusOr DeleteFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::metastore::v1::DeleteFederationRequest const& request) override; future> - DeleteFederation(google::cloud::ExperimentalTag, + DeleteFederation(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.cc b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.cc index bca690890c95e..ac6b3127fa196 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.cc +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.cc @@ -66,26 +66,24 @@ DataprocMetastoreFederationTracingConnection::CreateFederation( StatusOr DataprocMetastoreFederationTracingConnection::CreateFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateFederationRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreFederationConnection::CreateFederation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateFederation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateFederation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataprocMetastoreFederationTracingConnection::CreateFederation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreFederationConnection::CreateFederation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateFederation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateFederation(ExperimentalTag{}, operation)); } future> @@ -99,26 +97,24 @@ DataprocMetastoreFederationTracingConnection::UpdateFederation( StatusOr DataprocMetastoreFederationTracingConnection::UpdateFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateFederationRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreFederationConnection::UpdateFederation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateFederation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateFederation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataprocMetastoreFederationTracingConnection::UpdateFederation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreFederationConnection::UpdateFederation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateFederation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateFederation(ExperimentalTag{}, operation)); } future> @@ -132,26 +128,24 @@ DataprocMetastoreFederationTracingConnection::DeleteFederation( StatusOr DataprocMetastoreFederationTracingConnection::DeleteFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteFederationRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreFederationConnection::DeleteFederation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteFederation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteFederation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataprocMetastoreFederationTracingConnection::DeleteFederation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreFederationConnection::DeleteFederation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteFederation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteFederation(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.h b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.h index d8442ee5eca3c..40c5d3a59b539 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.h +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_tracing_connection.h @@ -53,12 +53,12 @@ class DataprocMetastoreFederationTracingConnection override; StatusOr CreateFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateFederationRequest const& request) override; future> CreateFederation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateFederation( @@ -66,12 +66,12 @@ class DataprocMetastoreFederationTracingConnection override; StatusOr UpdateFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateFederationRequest const& request) override; future> UpdateFederation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -79,12 +79,12 @@ class DataprocMetastoreFederationTracingConnection request) override; StatusOr DeleteFederation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteFederationRequest const& request) override; future> - DeleteFederation(google::cloud::ExperimentalTag, + DeleteFederation(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.cc b/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.cc index 8100e004cee8e..6d47b87485a22 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.cc +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.cc @@ -64,26 +64,23 @@ DataprocMetastoreTracingConnection::CreateService( StatusOr DataprocMetastoreTracingConnection::CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateServiceRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::CreateService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataprocMetastoreTracingConnection::CreateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::CreateService"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateService(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateService(ExperimentalTag{}, operation)); } future> @@ -97,26 +94,23 @@ DataprocMetastoreTracingConnection::UpdateService( StatusOr DataprocMetastoreTracingConnection::UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateServiceRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::UpdateService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataprocMetastoreTracingConnection::UpdateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::UpdateService"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateService(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateService(ExperimentalTag{}, operation)); } future> @@ -130,26 +124,23 @@ DataprocMetastoreTracingConnection::DeleteService( StatusOr DataprocMetastoreTracingConnection::DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteServiceRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::DeleteService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataprocMetastoreTracingConnection::DeleteService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::DeleteService"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteService(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteService(ExperimentalTag{}, operation)); } StreamRange @@ -185,26 +176,24 @@ DataprocMetastoreTracingConnection::CreateMetadataImport( StatusOr DataprocMetastoreTracingConnection::CreateMetadataImport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateMetadataImportRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::CreateMetadataImport"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateMetadataImport( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateMetadataImport(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataprocMetastoreTracingConnection::CreateMetadataImport( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::CreateMetadataImport"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateMetadataImport( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateMetadataImport( + ExperimentalTag{}, operation)); } future> @@ -219,26 +208,24 @@ DataprocMetastoreTracingConnection::UpdateMetadataImport( StatusOr DataprocMetastoreTracingConnection::UpdateMetadataImport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateMetadataImportRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::UpdateMetadataImport"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateMetadataImport( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateMetadataImport(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataprocMetastoreTracingConnection::UpdateMetadataImport( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::UpdateMetadataImport"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateMetadataImport( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateMetadataImport( + ExperimentalTag{}, operation)); } future> @@ -252,26 +239,23 @@ DataprocMetastoreTracingConnection::ExportMetadata( StatusOr DataprocMetastoreTracingConnection::ExportMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::ExportMetadataRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::ExportMetadata"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportMetadata(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ExportMetadata(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataprocMetastoreTracingConnection::ExportMetadata( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::ExportMetadata"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ExportMetadata(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ExportMetadata(ExperimentalTag{}, operation)); } future> @@ -285,26 +269,23 @@ DataprocMetastoreTracingConnection::RestoreService( StatusOr DataprocMetastoreTracingConnection::RestoreService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::RestoreServiceRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::RestoreService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RestoreService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RestoreService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataprocMetastoreTracingConnection::RestoreService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::RestoreService"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RestoreService(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RestoreService(ExperimentalTag{}, operation)); } StreamRange @@ -338,26 +319,23 @@ DataprocMetastoreTracingConnection::CreateBackup( StatusOr DataprocMetastoreTracingConnection::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateBackupRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::CreateBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataprocMetastoreTracingConnection::CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::CreateBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateBackup(ExperimentalTag{}, operation)); } future> @@ -371,26 +349,23 @@ DataprocMetastoreTracingConnection::DeleteBackup( StatusOr DataprocMetastoreTracingConnection::DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteBackupRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::DeleteBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataprocMetastoreTracingConnection::DeleteBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::DeleteBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteBackup(ExperimentalTag{}, operation)); } future> @@ -404,26 +379,23 @@ DataprocMetastoreTracingConnection::QueryMetadata( StatusOr DataprocMetastoreTracingConnection::QueryMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::QueryMetadataRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::QueryMetadata"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->QueryMetadata(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->QueryMetadata(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataprocMetastoreTracingConnection::QueryMetadata( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::QueryMetadata"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->QueryMetadata(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->QueryMetadata(ExperimentalTag{}, operation)); } future> @@ -438,26 +410,24 @@ DataprocMetastoreTracingConnection::MoveTableToDatabase( StatusOr DataprocMetastoreTracingConnection::MoveTableToDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::MoveTableToDatabase"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->MoveTableToDatabase(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->MoveTableToDatabase(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DataprocMetastoreTracingConnection::MoveTableToDatabase( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::MoveTableToDatabase"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->MoveTableToDatabase(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->MoveTableToDatabase( + ExperimentalTag{}, operation)); } future DataprocMetastoreTracingConnection::AlterMetadataResourceLocation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& request) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::" "AlterMetadataResourceLocation"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->AlterMetadataResourceLocation( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->AlterMetadataResourceLocation(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> DataprocMetastoreTracingConnection::AlterMetadataResourceLocation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "metastore_v1::DataprocMetastoreConnection::" "AlterMetadataResourceLocation"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->AlterMetadataResourceLocation( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->AlterMetadataResourceLocation(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.h b/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.h index 200288a5b7e94..b856d023a100a 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.h +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_tracing_connection.h @@ -51,12 +51,12 @@ class DataprocMetastoreTracingConnection override; StatusOr CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateServiceRequest const& request) override; future> CreateService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateService( @@ -64,12 +64,12 @@ class DataprocMetastoreTracingConnection override; StatusOr UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateServiceRequest const& request) override; future> UpdateService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -77,12 +77,12 @@ class DataprocMetastoreTracingConnection request) override; StatusOr DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteServiceRequest const& request) override; future> - DeleteService(google::cloud::ExperimentalTag, + DeleteService(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListMetadataImports( @@ -99,13 +99,13 @@ class DataprocMetastoreTracingConnection override; StatusOr CreateMetadataImport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateMetadataImportRequest const& request) override; future> CreateMetadataImport( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -114,13 +114,13 @@ class DataprocMetastoreTracingConnection override; StatusOr UpdateMetadataImport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateMetadataImportRequest const& request) override; future> UpdateMetadataImport( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ExportMetadata( @@ -128,12 +128,12 @@ class DataprocMetastoreTracingConnection override; StatusOr ExportMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::ExportMetadataRequest const& request) override; future> ExportMetadata( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RestoreService( @@ -141,12 +141,12 @@ class DataprocMetastoreTracingConnection override; StatusOr RestoreService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::RestoreServiceRequest const& request) override; future> RestoreService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListBackups( @@ -160,12 +160,12 @@ class DataprocMetastoreTracingConnection override; StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateBackupRequest const& request) override; future> CreateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -173,12 +173,12 @@ class DataprocMetastoreTracingConnection override; StatusOr DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteBackupRequest const& request) override; future> - DeleteBackup(google::cloud::ExperimentalTag, + DeleteBackup(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -186,12 +186,12 @@ class DataprocMetastoreTracingConnection request) override; StatusOr QueryMetadata( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::QueryMetadataRequest const& request) override; future> - QueryMetadata(google::cloud::ExperimentalTag, + QueryMetadata(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -200,12 +200,12 @@ class DataprocMetastoreTracingConnection override; StatusOr MoveTableToDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request) override; future> - MoveTableToDatabase(google::cloud::ExperimentalTag, + MoveTableToDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; future AlterMetadataResourceLocation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& request) override; future> AlterMetadataResourceLocation( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/metastore/v1/mocks/mock_dataproc_metastore_connection.h b/google/cloud/metastore/v1/mocks/mock_dataproc_metastore_connection.h index c291e42a67e77..5024c11c2af2b 100644 --- a/google/cloud/metastore/v1/mocks/mock_dataproc_metastore_connection.h +++ b/google/cloud/metastore/v1/mocks/mock_dataproc_metastore_connection.h @@ -63,13 +63,13 @@ class MockDataprocMetastoreConnection MOCK_METHOD( StatusOr, CreateService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateServiceRequest const& request), (override)); MOCK_METHOD(future>, CreateService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -80,13 +80,13 @@ class MockDataprocMetastoreConnection MOCK_METHOD( StatusOr, UpdateService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateServiceRequest const& request), (override)); MOCK_METHOD(future>, UpdateService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -98,13 +98,13 @@ class MockDataprocMetastoreConnection MOCK_METHOD( StatusOr, DeleteService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteServiceRequest const& request), (override)); MOCK_METHOD(future>, DeleteService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -126,14 +126,14 @@ class MockDataprocMetastoreConnection (override)); MOCK_METHOD(StatusOr, CreateMetadataImport, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateMetadataImportRequest const& request), (override)); MOCK_METHOD(future>, CreateMetadataImport, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -144,14 +144,14 @@ class MockDataprocMetastoreConnection (override)); MOCK_METHOD(StatusOr, UpdateMetadataImport, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateMetadataImportRequest const& request), (override)); MOCK_METHOD(future>, UpdateMetadataImport, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -163,13 +163,13 @@ class MockDataprocMetastoreConnection MOCK_METHOD( StatusOr, ExportMetadata, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::ExportMetadataRequest const& request), (override)); MOCK_METHOD(future>, ExportMetadata, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -180,13 +180,13 @@ class MockDataprocMetastoreConnection MOCK_METHOD( StatusOr, RestoreService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::RestoreServiceRequest const& request), (override)); MOCK_METHOD(future>, RestoreService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -205,13 +205,13 @@ class MockDataprocMetastoreConnection MOCK_METHOD( StatusOr, CreateBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateBackupRequest const& request), (override)); MOCK_METHOD(future>, CreateBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -223,13 +223,13 @@ class MockDataprocMetastoreConnection MOCK_METHOD( StatusOr, DeleteBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteBackupRequest const& request), (override)); MOCK_METHOD(future>, DeleteBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -241,15 +241,14 @@ class MockDataprocMetastoreConnection MOCK_METHOD( StatusOr, QueryMetadata, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::QueryMetadataRequest const& request), (override)); MOCK_METHOD( future>, QueryMetadata, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -261,7 +260,7 @@ class MockDataprocMetastoreConnection MOCK_METHOD( StatusOr, MoveTableToDatabase, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request), (override)); @@ -269,8 +268,7 @@ class MockDataprocMetastoreConnection future< StatusOr>, MoveTableToDatabase, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -283,7 +281,7 @@ class MockDataprocMetastoreConnection MOCK_METHOD( StatusOr, AlterMetadataResourceLocation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& request), (override)); @@ -292,8 +290,7 @@ class MockDataprocMetastoreConnection future>, AlterMetadataResourceLocation, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/metastore/v1/mocks/mock_dataproc_metastore_federation_connection.h b/google/cloud/metastore/v1/mocks/mock_dataproc_metastore_federation_connection.h index bebaf3d9d9e25..2fea9c5ef9aa0 100644 --- a/google/cloud/metastore/v1/mocks/mock_dataproc_metastore_federation_connection.h +++ b/google/cloud/metastore/v1/mocks/mock_dataproc_metastore_federation_connection.h @@ -65,13 +65,13 @@ class MockDataprocMetastoreFederationConnection MOCK_METHOD( StatusOr, CreateFederation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateFederationRequest const& request), (override)); MOCK_METHOD(future>, CreateFederation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -83,13 +83,13 @@ class MockDataprocMetastoreFederationConnection MOCK_METHOD( StatusOr, UpdateFederation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateFederationRequest const& request), (override)); MOCK_METHOD(future>, UpdateFederation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -101,13 +101,13 @@ class MockDataprocMetastoreFederationConnection MOCK_METHOD( StatusOr, DeleteFederation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteFederationRequest const& request), (override)); MOCK_METHOD(future>, DeleteFederation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.cc b/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.cc index 97a88b435b20f..fa591bb5d94a1 100644 --- a/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.cc +++ b/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.cc @@ -251,7 +251,7 @@ MigrationCenterConnectionImpl::CreateImportJob( StatusOr MigrationCenterConnectionImpl::CreateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::CreateImportJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -267,8 +267,7 @@ MigrationCenterConnectionImpl::CreateImportJob( future> MigrationCenterConnectionImpl::CreateImportJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::DeleteImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::DeleteImportJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -412,8 +411,7 @@ MigrationCenterConnectionImpl::DeleteImportJob( future> MigrationCenterConnectionImpl::DeleteImportJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::UpdateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -507,8 +505,7 @@ MigrationCenterConnectionImpl::UpdateImportJob( future> MigrationCenterConnectionImpl::UpdateImportJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::ValidateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::ValidateImportJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -604,8 +601,7 @@ MigrationCenterConnectionImpl::ValidateImportJob( future> MigrationCenterConnectionImpl::ValidateImportJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::RunImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::RunImportJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -699,8 +695,7 @@ MigrationCenterConnectionImpl::RunImportJob( future> MigrationCenterConnectionImpl::RunImportJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::CreateImportDataFile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -848,8 +843,7 @@ MigrationCenterConnectionImpl::CreateImportDataFile( future> MigrationCenterConnectionImpl::CreateImportDataFile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::DeleteImportDataFile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -946,8 +940,7 @@ MigrationCenterConnectionImpl::DeleteImportDataFile( future> MigrationCenterConnectionImpl::DeleteImportDataFile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::CreateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::CreateGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1090,8 +1083,7 @@ MigrationCenterConnectionImpl::CreateGroup( future> MigrationCenterConnectionImpl::CreateGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::UpdateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::UpdateGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1185,8 +1177,7 @@ MigrationCenterConnectionImpl::UpdateGroup( future> MigrationCenterConnectionImpl::UpdateGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::DeleteGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::DeleteGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1280,8 +1271,7 @@ MigrationCenterConnectionImpl::DeleteGroup( future> MigrationCenterConnectionImpl::DeleteGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::AddAssetsToGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1377,8 +1367,7 @@ MigrationCenterConnectionImpl::AddAssetsToGroup( future> MigrationCenterConnectionImpl::AddAssetsToGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::RemoveAssetsFromGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1473,8 +1462,7 @@ MigrationCenterConnectionImpl::RemoveAssetsFromGroup( future> MigrationCenterConnectionImpl::RemoveAssetsFromGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::CreateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::CreateSourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1666,8 +1654,7 @@ MigrationCenterConnectionImpl::CreateSource( future> MigrationCenterConnectionImpl::CreateSource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::UpdateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::UpdateSourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1761,8 +1748,7 @@ MigrationCenterConnectionImpl::UpdateSource( future> MigrationCenterConnectionImpl::UpdateSource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::DeleteSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::DeleteSourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1856,8 +1842,7 @@ MigrationCenterConnectionImpl::DeleteSource( future> MigrationCenterConnectionImpl::DeleteSource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::CreatePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2005,8 +1990,7 @@ MigrationCenterConnectionImpl::CreatePreferenceSet( future> MigrationCenterConnectionImpl::CreatePreferenceSet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::UpdatePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2103,8 +2087,7 @@ MigrationCenterConnectionImpl::UpdatePreferenceSet( future> MigrationCenterConnectionImpl::UpdatePreferenceSet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::DeletePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2201,8 +2184,7 @@ MigrationCenterConnectionImpl::DeletePreferenceSet( future> MigrationCenterConnectionImpl::DeletePreferenceSet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::UpdateSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2311,8 +2293,7 @@ MigrationCenterConnectionImpl::UpdateSettings( future> MigrationCenterConnectionImpl::UpdateSettings( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::CreateReportConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::CreateReportConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2409,8 +2390,7 @@ MigrationCenterConnectionImpl::CreateReportConfig( future> MigrationCenterConnectionImpl::CreateReportConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::DeleteReportConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2557,8 +2537,7 @@ MigrationCenterConnectionImpl::DeleteReportConfig( future> MigrationCenterConnectionImpl::DeleteReportConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::CreateReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::CreateReportRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2652,8 +2631,7 @@ MigrationCenterConnectionImpl::CreateReport( future> MigrationCenterConnectionImpl::CreateReport( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MigrationCenterConnectionImpl::DeleteReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::DeleteReportRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2796,8 +2774,7 @@ MigrationCenterConnectionImpl::DeleteReport( future> MigrationCenterConnectionImpl::DeleteReport( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::CreateImportJobRequest const& request) override; future> - CreateImportJob(google::cloud::ExperimentalTag, + CreateImportJob(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListImportJobs( @@ -114,12 +114,12 @@ class MigrationCenterConnectionImpl override; StatusOr DeleteImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::DeleteImportJobRequest const& request) override; future> - DeleteImportJob(google::cloud::ExperimentalTag, + DeleteImportJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -128,12 +128,12 @@ class MigrationCenterConnectionImpl override; StatusOr UpdateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request) override; future> - UpdateImportJob(google::cloud::ExperimentalTag, + UpdateImportJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -142,12 +142,12 @@ class MigrationCenterConnectionImpl request) override; StatusOr ValidateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::ValidateImportJobRequest const& request) override; future> - ValidateImportJob(google::cloud::ExperimentalTag, + ValidateImportJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -155,12 +155,12 @@ class MigrationCenterConnectionImpl request) override; StatusOr RunImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::RunImportJobRequest const& request) override; future> - RunImportJob(google::cloud::ExperimentalTag, + RunImportJob(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -179,13 +179,13 @@ class MigrationCenterConnectionImpl request) override; StatusOr CreateImportDataFile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& request) override; future> CreateImportDataFile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -194,13 +194,13 @@ class MigrationCenterConnectionImpl request) override; StatusOr DeleteImportDataFile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& request) override; future> DeleteImportDataFile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListGroups( @@ -215,12 +215,12 @@ class MigrationCenterConnectionImpl override; StatusOr CreateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::CreateGroupRequest const& request) override; future> CreateGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateGroup( @@ -228,12 +228,12 @@ class MigrationCenterConnectionImpl override; StatusOr UpdateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::UpdateGroupRequest const& request) override; future> UpdateGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -241,12 +241,12 @@ class MigrationCenterConnectionImpl request) override; StatusOr DeleteGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::DeleteGroupRequest const& request) override; future> - DeleteGroup(google::cloud::ExperimentalTag, + DeleteGroup(ExperimentalTag, google::longrunning::Operation const& operation) override; future> AddAssetsToGroup( @@ -254,12 +254,12 @@ class MigrationCenterConnectionImpl request) override; StatusOr AddAssetsToGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& request) override; future> AddAssetsToGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -268,13 +268,13 @@ class MigrationCenterConnectionImpl request) override; StatusOr RemoveAssetsFromGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& request) override; future> RemoveAssetsFromGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListErrorFrames( @@ -297,12 +297,12 @@ class MigrationCenterConnectionImpl override; StatusOr CreateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::CreateSourceRequest const& request) override; future> CreateSource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateSource( @@ -310,12 +310,12 @@ class MigrationCenterConnectionImpl override; StatusOr UpdateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::UpdateSourceRequest const& request) override; future> UpdateSource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -323,12 +323,12 @@ class MigrationCenterConnectionImpl request) override; StatusOr DeleteSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::DeleteSourceRequest const& request) override; future> - DeleteSource(google::cloud::ExperimentalTag, + DeleteSource(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -346,12 +346,12 @@ class MigrationCenterConnectionImpl request) override; StatusOr CreatePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& request) override; future> - CreatePreferenceSet(google::cloud::ExperimentalTag, + CreatePreferenceSet(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -360,12 +360,12 @@ class MigrationCenterConnectionImpl request) override; StatusOr UpdatePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& request) override; future> - UpdatePreferenceSet(google::cloud::ExperimentalTag, + UpdatePreferenceSet(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -374,12 +374,12 @@ class MigrationCenterConnectionImpl request) override; StatusOr DeletePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& request) override; future> - DeletePreferenceSet(google::cloud::ExperimentalTag, + DeletePreferenceSet(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetSettings( @@ -391,12 +391,12 @@ class MigrationCenterConnectionImpl override; StatusOr UpdateSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request) override; future> UpdateSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -405,12 +405,12 @@ class MigrationCenterConnectionImpl request) override; StatusOr CreateReportConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::CreateReportConfigRequest const& request) override; future> - CreateReportConfig(google::cloud::ExperimentalTag, + CreateReportConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetReportConfig( @@ -427,12 +427,12 @@ class MigrationCenterConnectionImpl request) override; StatusOr DeleteReportConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& request) override; future> - DeleteReportConfig(google::cloud::ExperimentalTag, + DeleteReportConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateReport( @@ -440,12 +440,12 @@ class MigrationCenterConnectionImpl override; StatusOr CreateReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::CreateReportRequest const& request) override; future> CreateReport( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetReport( @@ -460,12 +460,12 @@ class MigrationCenterConnectionImpl request) override; StatusOr DeleteReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::migrationcenter::v1::DeleteReportRequest const& request) override; future> - DeleteReport(google::cloud::ExperimentalTag, + DeleteReport(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.cc b/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.cc index f129523e84e6b..789d03c2e6873 100644 --- a/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.cc +++ b/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.cc @@ -121,26 +121,23 @@ MigrationCenterTracingConnection::CreateImportJob( StatusOr MigrationCenterTracingConnection::CreateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateImportJobRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateImportJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateImportJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateImportJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::CreateImportJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateImportJob"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateImportJob(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateImportJob(ExperimentalTag{}, operation)); } StreamRange @@ -175,26 +172,23 @@ MigrationCenterTracingConnection::DeleteImportJob( StatusOr MigrationCenterTracingConnection::DeleteImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteImportJobRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteImportJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteImportJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteImportJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::DeleteImportJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteImportJob"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteImportJob(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteImportJob(ExperimentalTag{}, operation)); } future> @@ -208,26 +202,23 @@ MigrationCenterTracingConnection::UpdateImportJob( StatusOr MigrationCenterTracingConnection::UpdateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::UpdateImportJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateImportJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateImportJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::UpdateImportJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::UpdateImportJob"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateImportJob(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateImportJob(ExperimentalTag{}, operation)); } future> @@ -242,27 +233,25 @@ MigrationCenterTracingConnection::ValidateImportJob( StatusOr MigrationCenterTracingConnection::ValidateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::ValidateImportJobRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::ValidateImportJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ValidateImportJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ValidateImportJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::ValidateImportJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::ValidateImportJob"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ValidateImportJob(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ValidateImportJob(ExperimentalTag{}, operation)); } future> @@ -276,26 +265,23 @@ MigrationCenterTracingConnection::RunImportJob( StatusOr MigrationCenterTracingConnection::RunImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::RunImportJobRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::RunImportJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RunImportJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RunImportJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::RunImportJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::RunImportJob"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RunImportJob(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RunImportJob(ExperimentalTag{}, operation)); } StatusOr @@ -333,27 +319,25 @@ MigrationCenterTracingConnection::CreateImportDataFile( StatusOr MigrationCenterTracingConnection::CreateImportDataFile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateImportDataFile"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateImportDataFile( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateImportDataFile(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::CreateImportDataFile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateImportDataFile"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateImportDataFile( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateImportDataFile( + ExperimentalTag{}, operation)); } future> @@ -369,27 +353,25 @@ MigrationCenterTracingConnection::DeleteImportDataFile( StatusOr MigrationCenterTracingConnection::DeleteImportDataFile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteImportDataFile"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteImportDataFile( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteImportDataFile(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::DeleteImportDataFile( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteImportDataFile"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteImportDataFile( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteImportDataFile( + ExperimentalTag{}, operation)); } StreamRange @@ -424,26 +406,23 @@ MigrationCenterTracingConnection::CreateGroup( StatusOr MigrationCenterTracingConnection::CreateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateGroupRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::CreateGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateGroup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateGroup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateGroup(ExperimentalTag{}, operation)); } future> @@ -457,26 +436,23 @@ MigrationCenterTracingConnection::UpdateGroup( StatusOr MigrationCenterTracingConnection::UpdateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateGroupRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::UpdateGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::UpdateGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::UpdateGroup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateGroup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateGroup(ExperimentalTag{}, operation)); } future> @@ -490,26 +466,23 @@ MigrationCenterTracingConnection::DeleteGroup( StatusOr MigrationCenterTracingConnection::DeleteGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteGroupRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::DeleteGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteGroup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteGroup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteGroup(ExperimentalTag{}, operation)); } future> @@ -524,27 +497,25 @@ MigrationCenterTracingConnection::AddAssetsToGroup( StatusOr MigrationCenterTracingConnection::AddAssetsToGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::AddAssetsToGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddAssetsToGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->AddAssetsToGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::AddAssetsToGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::AddAssetsToGroup"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->AddAssetsToGroup(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->AddAssetsToGroup(ExperimentalTag{}, operation)); } future> @@ -560,27 +531,25 @@ MigrationCenterTracingConnection::RemoveAssetsFromGroup( StatusOr MigrationCenterTracingConnection::RemoveAssetsFromGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::RemoveAssetsFromGroup"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RemoveAssetsFromGroup( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->RemoveAssetsFromGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::RemoveAssetsFromGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::RemoveAssetsFromGroup"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RemoveAssetsFromGroup( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RemoveAssetsFromGroup( + ExperimentalTag{}, operation)); } StreamRange @@ -636,26 +605,23 @@ MigrationCenterTracingConnection::CreateSource( StatusOr MigrationCenterTracingConnection::CreateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateSourceRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateSource"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateSource(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateSource(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::CreateSource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateSource"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateSource(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateSource(ExperimentalTag{}, operation)); } future> @@ -669,26 +635,23 @@ MigrationCenterTracingConnection::UpdateSource( StatusOr MigrationCenterTracingConnection::UpdateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateSourceRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::UpdateSource"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateSource(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateSource(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::UpdateSource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::UpdateSource"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateSource(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateSource(ExperimentalTag{}, operation)); } future> @@ -702,26 +665,23 @@ MigrationCenterTracingConnection::DeleteSource( StatusOr MigrationCenterTracingConnection::DeleteSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteSourceRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteSource"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSource(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteSource(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::DeleteSource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteSource"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteSource(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteSource(ExperimentalTag{}, operation)); } StreamRange @@ -759,27 +719,25 @@ MigrationCenterTracingConnection::CreatePreferenceSet( StatusOr MigrationCenterTracingConnection::CreatePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreatePreferenceSet"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreatePreferenceSet(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreatePreferenceSet(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::CreatePreferenceSet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreatePreferenceSet"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreatePreferenceSet(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreatePreferenceSet( + ExperimentalTag{}, operation)); } future> @@ -795,27 +753,25 @@ MigrationCenterTracingConnection::UpdatePreferenceSet( StatusOr MigrationCenterTracingConnection::UpdatePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::UpdatePreferenceSet"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdatePreferenceSet(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdatePreferenceSet(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::UpdatePreferenceSet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::UpdatePreferenceSet"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdatePreferenceSet(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdatePreferenceSet( + ExperimentalTag{}, operation)); } future> @@ -831,27 +787,25 @@ MigrationCenterTracingConnection::DeletePreferenceSet( StatusOr MigrationCenterTracingConnection::DeletePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeletePreferenceSet"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeletePreferenceSet(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeletePreferenceSet(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::DeletePreferenceSet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeletePreferenceSet"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeletePreferenceSet(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeletePreferenceSet( + ExperimentalTag{}, operation)); } StatusOr @@ -874,26 +828,23 @@ MigrationCenterTracingConnection::UpdateSettings( StatusOr MigrationCenterTracingConnection::UpdateSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::UpdateSettings"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateSettings(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateSettings(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::UpdateSettings( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::UpdateSettings"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateSettings(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateSettings(ExperimentalTag{}, operation)); } future> @@ -909,27 +860,25 @@ MigrationCenterTracingConnection::CreateReportConfig( StatusOr MigrationCenterTracingConnection::CreateReportConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateReportConfigRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateReportConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateReportConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateReportConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::CreateReportConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateReportConfig"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateReportConfig(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateReportConfig( + ExperimentalTag{}, operation)); } StatusOr @@ -966,27 +915,25 @@ MigrationCenterTracingConnection::DeleteReportConfig( StatusOr MigrationCenterTracingConnection::DeleteReportConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteReportConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteReportConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteReportConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::DeleteReportConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteReportConfig"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteReportConfig(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteReportConfig( + ExperimentalTag{}, operation)); } future> @@ -1000,26 +947,23 @@ MigrationCenterTracingConnection::CreateReport( StatusOr MigrationCenterTracingConnection::CreateReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateReportRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateReport"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateReport(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateReport(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::CreateReport( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::CreateReport"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateReport(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateReport(ExperimentalTag{}, operation)); } StatusOr @@ -1054,26 +998,23 @@ MigrationCenterTracingConnection::DeleteReport( StatusOr MigrationCenterTracingConnection::DeleteReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteReportRequest const& request) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteReport"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteReport(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteReport(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MigrationCenterTracingConnection::DeleteReport( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "migrationcenter_v1::MigrationCenterConnection::DeleteReport"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteReport(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteReport(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.h b/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.h index 1ff355c289e23..bf9e74c6d2e61 100644 --- a/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.h +++ b/google/cloud/migrationcenter/v1/internal/migration_center_tracing_connection.h @@ -80,12 +80,12 @@ class MigrationCenterTracingConnection override; StatusOr CreateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateImportJobRequest const& request) override; future> - CreateImportJob(google::cloud::ExperimentalTag, + CreateImportJob(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListImportJobs( @@ -102,12 +102,12 @@ class MigrationCenterTracingConnection override; StatusOr DeleteImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteImportJobRequest const& request) override; future> - DeleteImportJob(google::cloud::ExperimentalTag, + DeleteImportJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -116,12 +116,12 @@ class MigrationCenterTracingConnection override; StatusOr UpdateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request) override; future> - UpdateImportJob(google::cloud::ExperimentalTag, + UpdateImportJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -130,12 +130,12 @@ class MigrationCenterTracingConnection request) override; StatusOr ValidateImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::ValidateImportJobRequest const& request) override; future> - ValidateImportJob(google::cloud::ExperimentalTag, + ValidateImportJob(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -143,12 +143,12 @@ class MigrationCenterTracingConnection request) override; StatusOr RunImportJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::RunImportJobRequest const& request) override; future> - RunImportJob(google::cloud::ExperimentalTag, + RunImportJob(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -167,13 +167,13 @@ class MigrationCenterTracingConnection request) override; StatusOr CreateImportDataFile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& request) override; future> CreateImportDataFile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -182,13 +182,13 @@ class MigrationCenterTracingConnection request) override; StatusOr DeleteImportDataFile( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& request) override; future> DeleteImportDataFile( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListGroups( @@ -203,12 +203,12 @@ class MigrationCenterTracingConnection override; StatusOr CreateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateGroupRequest const& request) override; future> CreateGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateGroup( @@ -216,12 +216,12 @@ class MigrationCenterTracingConnection override; StatusOr UpdateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateGroupRequest const& request) override; future> UpdateGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -229,12 +229,12 @@ class MigrationCenterTracingConnection request) override; StatusOr DeleteGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteGroupRequest const& request) override; future> - DeleteGroup(google::cloud::ExperimentalTag, + DeleteGroup(ExperimentalTag, google::longrunning::Operation const& operation) override; future> AddAssetsToGroup( @@ -242,12 +242,12 @@ class MigrationCenterTracingConnection request) override; StatusOr AddAssetsToGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& request) override; future> AddAssetsToGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -256,13 +256,13 @@ class MigrationCenterTracingConnection request) override; StatusOr RemoveAssetsFromGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& request) override; future> RemoveAssetsFromGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListErrorFrames( @@ -285,12 +285,12 @@ class MigrationCenterTracingConnection override; StatusOr CreateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateSourceRequest const& request) override; future> CreateSource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateSource( @@ -298,12 +298,12 @@ class MigrationCenterTracingConnection override; StatusOr UpdateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateSourceRequest const& request) override; future> UpdateSource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -311,12 +311,12 @@ class MigrationCenterTracingConnection request) override; StatusOr DeleteSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteSourceRequest const& request) override; future> - DeleteSource(google::cloud::ExperimentalTag, + DeleteSource(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -334,12 +334,12 @@ class MigrationCenterTracingConnection request) override; StatusOr CreatePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& request) override; future> - CreatePreferenceSet(google::cloud::ExperimentalTag, + CreatePreferenceSet(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -348,12 +348,12 @@ class MigrationCenterTracingConnection request) override; StatusOr UpdatePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& request) override; future> - UpdatePreferenceSet(google::cloud::ExperimentalTag, + UpdatePreferenceSet(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -362,12 +362,12 @@ class MigrationCenterTracingConnection request) override; StatusOr DeletePreferenceSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& request) override; future> - DeletePreferenceSet(google::cloud::ExperimentalTag, + DeletePreferenceSet(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetSettings( @@ -379,12 +379,12 @@ class MigrationCenterTracingConnection override; StatusOr UpdateSettings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request) override; future> UpdateSettings( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -393,12 +393,12 @@ class MigrationCenterTracingConnection request) override; StatusOr CreateReportConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateReportConfigRequest const& request) override; future> - CreateReportConfig(google::cloud::ExperimentalTag, + CreateReportConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetReportConfig( @@ -415,12 +415,12 @@ class MigrationCenterTracingConnection request) override; StatusOr DeleteReportConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& request) override; future> - DeleteReportConfig(google::cloud::ExperimentalTag, + DeleteReportConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateReport( @@ -428,12 +428,12 @@ class MigrationCenterTracingConnection override; StatusOr CreateReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateReportRequest const& request) override; future> CreateReport( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetReport( @@ -448,12 +448,12 @@ class MigrationCenterTracingConnection request) override; StatusOr DeleteReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteReportRequest const& request) override; future> - DeleteReport(google::cloud::ExperimentalTag, + DeleteReport(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/migrationcenter/v1/mocks/mock_migration_center_connection.h b/google/cloud/migrationcenter/v1/mocks/mock_migration_center_connection.h index 63382a29dee1e..7d19b23d1c09c 100644 --- a/google/cloud/migrationcenter/v1/mocks/mock_migration_center_connection.h +++ b/google/cloud/migrationcenter/v1/mocks/mock_migration_center_connection.h @@ -102,14 +102,14 @@ class MockMigrationCenterConnection (override)); MOCK_METHOD(StatusOr, CreateImportJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateImportJobRequest const& request), (override)); MOCK_METHOD(future>, CreateImportJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -132,7 +132,7 @@ class MockMigrationCenterConnection (override)); MOCK_METHOD(StatusOr, DeleteImportJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteImportJobRequest const& request), (override)); @@ -140,8 +140,7 @@ class MockMigrationCenterConnection MOCK_METHOD( future>, DeleteImportJob, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future>, @@ -151,14 +150,14 @@ class MockMigrationCenterConnection (override)); MOCK_METHOD(StatusOr, UpdateImportJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request), (override)); MOCK_METHOD(future>, UpdateImportJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -171,7 +170,7 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, ValidateImportJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::ValidateImportJobRequest const& request), (override)); @@ -179,8 +178,7 @@ class MockMigrationCenterConnection MOCK_METHOD( future>, ValidateImportJob, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -191,15 +189,14 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, RunImportJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::RunImportJobRequest const& request), (override)); MOCK_METHOD( future>, RunImportJob, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -224,7 +221,7 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, CreateImportDataFile, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& request), (override)); @@ -232,8 +229,7 @@ class MockMigrationCenterConnection MOCK_METHOD( future>, CreateImportDataFile, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -245,7 +241,7 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, DeleteImportDataFile, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& request), (override)); @@ -253,8 +249,7 @@ class MockMigrationCenterConnection MOCK_METHOD( future>, DeleteImportDataFile, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), @@ -274,13 +269,13 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, CreateGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateGroupRequest const& request), (override)); MOCK_METHOD(future>, CreateGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -291,13 +286,13 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, UpdateGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateGroupRequest const& request), (override)); MOCK_METHOD(future>, UpdateGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -309,15 +304,14 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, DeleteGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteGroupRequest const& request), (override)); MOCK_METHOD( future>, DeleteGroup, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -329,14 +323,14 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, AddAssetsToGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& request), (override)); MOCK_METHOD(future>, AddAssetsToGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -349,14 +343,14 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, RemoveAssetsFromGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& request), (override)); MOCK_METHOD(future>, RemoveAssetsFromGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -389,13 +383,13 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, CreateSource, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateSourceRequest const& request), (override)); MOCK_METHOD(future>, CreateSource, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -407,13 +401,13 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, UpdateSource, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateSourceRequest const& request), (override)); MOCK_METHOD(future>, UpdateSource, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -425,15 +419,14 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, DeleteSource, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteSourceRequest const& request), (override)); MOCK_METHOD( future>, DeleteSource, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -458,7 +451,7 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, CreatePreferenceSet, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& request), (override)); @@ -466,8 +459,7 @@ class MockMigrationCenterConnection MOCK_METHOD( future>, CreatePreferenceSet, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -479,7 +471,7 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, UpdatePreferenceSet, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& request), (override)); @@ -487,8 +479,7 @@ class MockMigrationCenterConnection MOCK_METHOD( future>, UpdatePreferenceSet, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -500,7 +491,7 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, DeletePreferenceSet, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& request), (override)); @@ -508,8 +499,7 @@ class MockMigrationCenterConnection MOCK_METHOD( future>, DeletePreferenceSet, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -524,14 +514,14 @@ class MockMigrationCenterConnection (override)); MOCK_METHOD(StatusOr, UpdateSettings, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request), (override)); MOCK_METHOD(future>, UpdateSettings, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -544,7 +534,7 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, CreateReportConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateReportConfigRequest const& request), (override)); @@ -552,8 +542,7 @@ class MockMigrationCenterConnection MOCK_METHOD( future>, CreateReportConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, @@ -577,7 +566,7 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, DeleteReportConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& request), (override)); @@ -585,8 +574,7 @@ class MockMigrationCenterConnection MOCK_METHOD( future>, DeleteReportConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -597,13 +585,13 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, CreateReport, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateReportRequest const& request), (override)); MOCK_METHOD(future>, CreateReport, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -625,15 +613,14 @@ class MockMigrationCenterConnection MOCK_METHOD( StatusOr, DeleteReport, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteReportRequest const& request), (override)); MOCK_METHOD( future>, DeleteReport, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.cc b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.cc index 5fcb0fb72b7ea..d37a12e473412 100644 --- a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.cc +++ b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.cc @@ -149,7 +149,7 @@ MetricsScopesConnectionImpl::CreateMonitoredProject( StatusOr MetricsScopesConnectionImpl::CreateMonitoredProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -166,8 +166,7 @@ MetricsScopesConnectionImpl::CreateMonitoredProject( future> MetricsScopesConnectionImpl::CreateMonitoredProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is MetricsScopesConnectionImpl::DeleteMonitoredProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -262,8 +261,7 @@ MetricsScopesConnectionImpl::DeleteMonitoredProject( future> MetricsScopesConnectionImpl::DeleteMonitoredProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateMonitoredProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const& request) override; future> CreateMonitoredProject( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -83,13 +83,13 @@ class MetricsScopesConnectionImpl request) override; StatusOr DeleteMonitoredProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& request) override; future> DeleteMonitoredProject( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.cc b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.cc index 65f69cf001f0f..37dc08f6dee24 100644 --- a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.cc +++ b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.cc @@ -69,29 +69,27 @@ MetricsScopesTracingConnection::CreateMonitoredProject( StatusOr MetricsScopesTracingConnection::CreateMonitoredProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const& request) { auto span = internal::MakeSpan( "monitoring_metricsscope_v1::MetricsScopesConnection::" "CreateMonitoredProject"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateMonitoredProject( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateMonitoredProject(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MetricsScopesTracingConnection::CreateMonitoredProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "monitoring_metricsscope_v1::MetricsScopesConnection::" "CreateMonitoredProject"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateMonitoredProject( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateMonitoredProject( + ExperimentalTag{}, operation)); } future> @@ -108,29 +106,27 @@ MetricsScopesTracingConnection::DeleteMonitoredProject( StatusOr MetricsScopesTracingConnection::DeleteMonitoredProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& request) { auto span = internal::MakeSpan( "monitoring_metricsscope_v1::MetricsScopesConnection::" "DeleteMonitoredProject"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteMonitoredProject( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteMonitoredProject(ExperimentalTag{}, NoAwaitTag{}, request)); } future> MetricsScopesTracingConnection::DeleteMonitoredProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "monitoring_metricsscope_v1::MetricsScopesConnection::" "DeleteMonitoredProject"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteMonitoredProject( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteMonitoredProject( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.h b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.h index adeebd0c7fa6a..f916a48510bad 100644 --- a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.h +++ b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_tracing_connection.h @@ -57,13 +57,13 @@ class MetricsScopesTracingConnection request) override; StatusOr CreateMonitoredProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const& request) override; future> CreateMonitoredProject( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -72,13 +72,13 @@ class MetricsScopesTracingConnection request) override; StatusOr DeleteMonitoredProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& request) override; future> DeleteMonitoredProject( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/monitoring/metricsscope/v1/mocks/mock_metrics_scopes_connection.h b/google/cloud/monitoring/metricsscope/v1/mocks/mock_metrics_scopes_connection.h index b079001bba0c4..069e15d978c9b 100644 --- a/google/cloud/monitoring/metricsscope/v1/mocks/mock_metrics_scopes_connection.h +++ b/google/cloud/monitoring/metricsscope/v1/mocks/mock_metrics_scopes_connection.h @@ -69,7 +69,7 @@ class MockMetricsScopesConnection (override)); MOCK_METHOD(StatusOr, CreateMonitoredProject, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::monitoring::metricsscope::v1:: CreateMonitoredProjectRequest const& request), (override)); @@ -77,8 +77,7 @@ class MockMetricsScopesConnection MOCK_METHOD( future>, CreateMonitoredProject, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -89,7 +88,7 @@ class MockMetricsScopesConnection (override)); MOCK_METHOD(StatusOr, DeleteMonitoredProject, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::monitoring::metricsscope::v1:: DeleteMonitoredProjectRequest const& request), (override)); @@ -97,8 +96,7 @@ class MockMetricsScopesConnection MOCK_METHOD( future>, DeleteMonitoredProject, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/netapp/v1/internal/net_app_connection_impl.cc b/google/cloud/netapp/v1/internal/net_app_connection_impl.cc index 5dd419083edda..843b2ac7807b1 100644 --- a/google/cloud/netapp/v1/internal/net_app_connection_impl.cc +++ b/google/cloud/netapp/v1/internal/net_app_connection_impl.cc @@ -137,7 +137,7 @@ NetAppConnectionImpl::CreateStoragePool( StatusOr NetAppConnectionImpl::CreateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateStoragePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -153,8 +153,7 @@ NetAppConnectionImpl::CreateStoragePool( future> NetAppConnectionImpl::CreateStoragePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -243,7 +242,7 @@ NetAppConnectionImpl::UpdateStoragePool( StatusOr NetAppConnectionImpl::UpdateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateStoragePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -259,8 +258,7 @@ NetAppConnectionImpl::UpdateStoragePool( future> NetAppConnectionImpl::UpdateStoragePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -335,7 +333,7 @@ NetAppConnectionImpl::DeleteStoragePool( StatusOr NetAppConnectionImpl::DeleteStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteStoragePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -351,8 +349,7 @@ NetAppConnectionImpl::DeleteStoragePool( future> NetAppConnectionImpl::DeleteStoragePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -474,7 +471,7 @@ NetAppConnectionImpl::CreateVolume( } StatusOr NetAppConnectionImpl::CreateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateVolumeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -489,8 +486,7 @@ StatusOr NetAppConnectionImpl::CreateVolume( future> NetAppConnectionImpl::CreateVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -564,7 +560,7 @@ NetAppConnectionImpl::UpdateVolume( } StatusOr NetAppConnectionImpl::UpdateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateVolumeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -579,8 +575,7 @@ StatusOr NetAppConnectionImpl::UpdateVolume( future> NetAppConnectionImpl::UpdateVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -654,7 +649,7 @@ NetAppConnectionImpl::DeleteVolume( } StatusOr NetAppConnectionImpl::DeleteVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteVolumeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -669,8 +664,7 @@ StatusOr NetAppConnectionImpl::DeleteVolume( future> NetAppConnectionImpl::DeleteVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -745,7 +739,7 @@ NetAppConnectionImpl::RevertVolume( } StatusOr NetAppConnectionImpl::RevertVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::RevertVolumeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -760,8 +754,7 @@ StatusOr NetAppConnectionImpl::RevertVolume( future> NetAppConnectionImpl::RevertVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -882,7 +875,7 @@ NetAppConnectionImpl::CreateSnapshot( } StatusOr NetAppConnectionImpl::CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -897,8 +890,7 @@ StatusOr NetAppConnectionImpl::CreateSnapshot( future> NetAppConnectionImpl::CreateSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -972,7 +964,7 @@ NetAppConnectionImpl::DeleteSnapshot( } StatusOr NetAppConnectionImpl::DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -987,8 +979,7 @@ StatusOr NetAppConnectionImpl::DeleteSnapshot( future> NetAppConnectionImpl::DeleteSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1063,7 +1054,7 @@ NetAppConnectionImpl::UpdateSnapshot( } StatusOr NetAppConnectionImpl::UpdateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1078,8 +1069,7 @@ StatusOr NetAppConnectionImpl::UpdateSnapshot( future> NetAppConnectionImpl::UpdateSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1206,7 +1196,7 @@ NetAppConnectionImpl::CreateActiveDirectory( StatusOr NetAppConnectionImpl::CreateActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1222,8 +1212,7 @@ NetAppConnectionImpl::CreateActiveDirectory( future> NetAppConnectionImpl::CreateActiveDirectory( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1300,7 +1289,7 @@ NetAppConnectionImpl::UpdateActiveDirectory( StatusOr NetAppConnectionImpl::UpdateActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1316,8 +1305,7 @@ NetAppConnectionImpl::UpdateActiveDirectory( future> NetAppConnectionImpl::UpdateActiveDirectory( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1394,7 +1382,7 @@ NetAppConnectionImpl::DeleteActiveDirectory( StatusOr NetAppConnectionImpl::DeleteActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1410,8 +1398,7 @@ NetAppConnectionImpl::DeleteActiveDirectory( future> NetAppConnectionImpl::DeleteActiveDirectory( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1520,7 +1507,7 @@ NetAppConnectionImpl::CreateKmsConfig( } StatusOr NetAppConnectionImpl::CreateKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateKmsConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1535,8 +1522,7 @@ StatusOr NetAppConnectionImpl::CreateKmsConfig( future> NetAppConnectionImpl::CreateKmsConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1624,7 +1610,7 @@ NetAppConnectionImpl::UpdateKmsConfig( } StatusOr NetAppConnectionImpl::UpdateKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateKmsConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1639,8 +1625,7 @@ StatusOr NetAppConnectionImpl::UpdateKmsConfig( future> NetAppConnectionImpl::UpdateKmsConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1714,7 +1699,7 @@ NetAppConnectionImpl::EncryptVolumes( } StatusOr NetAppConnectionImpl::EncryptVolumes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::EncryptVolumesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1729,8 +1714,7 @@ StatusOr NetAppConnectionImpl::EncryptVolumes( future> NetAppConnectionImpl::EncryptVolumes( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1818,7 +1802,7 @@ NetAppConnectionImpl::DeleteKmsConfig( } StatusOr NetAppConnectionImpl::DeleteKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteKmsConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1833,8 +1817,7 @@ StatusOr NetAppConnectionImpl::DeleteKmsConfig( future> NetAppConnectionImpl::DeleteKmsConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1958,7 +1941,7 @@ NetAppConnectionImpl::CreateReplication( StatusOr NetAppConnectionImpl::CreateReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateReplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1974,8 +1957,7 @@ NetAppConnectionImpl::CreateReplication( future> NetAppConnectionImpl::CreateReplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2050,7 +2032,7 @@ NetAppConnectionImpl::DeleteReplication( StatusOr NetAppConnectionImpl::DeleteReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteReplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2066,8 +2048,7 @@ NetAppConnectionImpl::DeleteReplication( future> NetAppConnectionImpl::DeleteReplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2143,7 +2124,7 @@ NetAppConnectionImpl::UpdateReplication( StatusOr NetAppConnectionImpl::UpdateReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateReplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2159,8 +2140,7 @@ NetAppConnectionImpl::UpdateReplication( future> NetAppConnectionImpl::UpdateReplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2234,7 +2214,7 @@ NetAppConnectionImpl::StopReplication( } StatusOr NetAppConnectionImpl::StopReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::StopReplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2249,8 +2229,7 @@ StatusOr NetAppConnectionImpl::StopReplication( future> NetAppConnectionImpl::StopReplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2325,7 +2304,7 @@ NetAppConnectionImpl::ResumeReplication( StatusOr NetAppConnectionImpl::ResumeReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::ResumeReplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2341,8 +2320,7 @@ NetAppConnectionImpl::ResumeReplication( future> NetAppConnectionImpl::ResumeReplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2419,7 +2397,7 @@ NetAppConnectionImpl::ReverseReplicationDirection( StatusOr NetAppConnectionImpl::ReverseReplicationDirection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2437,8 +2415,7 @@ NetAppConnectionImpl::ReverseReplicationDirection( future> NetAppConnectionImpl::ReverseReplicationDirection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2513,7 +2490,7 @@ NetAppConnectionImpl::CreateBackupVault( StatusOr NetAppConnectionImpl::CreateBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateBackupVaultRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2529,8 +2506,7 @@ NetAppConnectionImpl::CreateBackupVault( future> NetAppConnectionImpl::CreateBackupVault( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2653,7 +2629,7 @@ NetAppConnectionImpl::UpdateBackupVault( StatusOr NetAppConnectionImpl::UpdateBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateBackupVaultRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2669,8 +2645,7 @@ NetAppConnectionImpl::UpdateBackupVault( future> NetAppConnectionImpl::UpdateBackupVault( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2745,7 +2720,7 @@ NetAppConnectionImpl::DeleteBackupVault( StatusOr NetAppConnectionImpl::DeleteBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteBackupVaultRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2761,8 +2736,7 @@ NetAppConnectionImpl::DeleteBackupVault( future> NetAppConnectionImpl::DeleteBackupVault( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2837,7 +2811,7 @@ NetAppConnectionImpl::CreateBackup( } StatusOr NetAppConnectionImpl::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2852,8 +2826,7 @@ StatusOr NetAppConnectionImpl::CreateBackup( future> NetAppConnectionImpl::CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2974,7 +2947,7 @@ NetAppConnectionImpl::DeleteBackup( } StatusOr NetAppConnectionImpl::DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2989,8 +2962,7 @@ StatusOr NetAppConnectionImpl::DeleteBackup( future> NetAppConnectionImpl::DeleteBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -3065,7 +3037,7 @@ NetAppConnectionImpl::UpdateBackup( } StatusOr NetAppConnectionImpl::UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -3080,8 +3052,7 @@ StatusOr NetAppConnectionImpl::UpdateBackup( future> NetAppConnectionImpl::UpdateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -3156,7 +3127,7 @@ NetAppConnectionImpl::CreateBackupPolicy( StatusOr NetAppConnectionImpl::CreateBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateBackupPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -3172,8 +3143,7 @@ NetAppConnectionImpl::CreateBackupPolicy( future> NetAppConnectionImpl::CreateBackupPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -3296,7 +3266,7 @@ NetAppConnectionImpl::UpdateBackupPolicy( StatusOr NetAppConnectionImpl::UpdateBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -3312,8 +3282,7 @@ NetAppConnectionImpl::UpdateBackupPolicy( future> NetAppConnectionImpl::UpdateBackupPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -3388,7 +3357,7 @@ NetAppConnectionImpl::DeleteBackupPolicy( StatusOr NetAppConnectionImpl::DeleteBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -3404,8 +3373,7 @@ NetAppConnectionImpl::DeleteBackupPolicy( future> NetAppConnectionImpl::DeleteBackupPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/netapp/v1/internal/net_app_connection_impl.h b/google/cloud/netapp/v1/internal/net_app_connection_impl.h index 829de158107e9..daccfc348e2cc 100644 --- a/google/cloud/netapp/v1/internal/net_app_connection_impl.h +++ b/google/cloud/netapp/v1/internal/net_app_connection_impl.h @@ -58,12 +58,12 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr CreateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateStoragePoolRequest const& request) override; future> CreateStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetStoragePool( @@ -74,12 +74,12 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr UpdateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateStoragePoolRequest const& request) override; future> UpdateStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -87,12 +87,12 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { request) override; StatusOr DeleteStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteStoragePoolRequest const& request) override; future> - DeleteStoragePool(google::cloud::ExperimentalTag, + DeleteStoragePool(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListVolumes( @@ -105,44 +105,44 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::CreateVolumeRequest const& request) override; StatusOr CreateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateVolumeRequest const& request) override; future> CreateVolume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateVolume( google::cloud::netapp::v1::UpdateVolumeRequest const& request) override; StatusOr UpdateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateVolumeRequest const& request) override; future> UpdateVolume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteVolume( google::cloud::netapp::v1::DeleteVolumeRequest const& request) override; StatusOr DeleteVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteVolumeRequest const& request) override; future> DeleteVolume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RevertVolume( google::cloud::netapp::v1::RevertVolumeRequest const& request) override; StatusOr RevertVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::RevertVolumeRequest const& request) override; future> RevertVolume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListSnapshots( @@ -155,33 +155,33 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::CreateSnapshotRequest const& request) override; StatusOr CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateSnapshotRequest const& request) override; future> CreateSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteSnapshot( google::cloud::netapp::v1::DeleteSnapshotRequest const& request) override; StatusOr DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteSnapshotRequest const& request) override; future> DeleteSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateSnapshot( google::cloud::netapp::v1::UpdateSnapshotRequest const& request) override; StatusOr UpdateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateSnapshotRequest const& request) override; future> UpdateSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListActiveDirectories( @@ -197,13 +197,13 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr CreateActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request) override; future> CreateActiveDirectory( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -212,13 +212,13 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr UpdateActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request) override; future> UpdateActiveDirectory( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -227,13 +227,13 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr DeleteActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request) override; future> DeleteActiveDirectory( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListKmsConfigs( @@ -244,12 +244,12 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr CreateKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateKmsConfigRequest const& request) override; future> CreateKmsConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetKmsConfig( @@ -260,23 +260,23 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr UpdateKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateKmsConfigRequest const& request) override; future> UpdateKmsConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> EncryptVolumes( google::cloud::netapp::v1::EncryptVolumesRequest const& request) override; StatusOr EncryptVolumes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::EncryptVolumesRequest const& request) override; future> EncryptVolumes( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr VerifyKmsConfig( @@ -288,12 +288,12 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { request) override; StatusOr DeleteKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteKmsConfigRequest const& request) override; future> - DeleteKmsConfig(google::cloud::ExperimentalTag, + DeleteKmsConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListReplications( @@ -307,12 +307,12 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr CreateReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateReplicationRequest const& request) override; future> CreateReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -320,12 +320,12 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { request) override; StatusOr DeleteReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteReplicationRequest const& request) override; future> - DeleteReplication(google::cloud::ExperimentalTag, + DeleteReplication(ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateReplication( @@ -333,12 +333,12 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr UpdateReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateReplicationRequest const& request) override; future> UpdateReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StopReplication( @@ -346,12 +346,12 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr StopReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::StopReplicationRequest const& request) override; future> StopReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ResumeReplication( @@ -359,12 +359,12 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr ResumeReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::ResumeReplicationRequest const& request) override; future> ResumeReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -373,13 +373,13 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { request) override; StatusOr ReverseReplicationDirection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& request) override; future> ReverseReplicationDirection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateBackupVault( @@ -387,12 +387,12 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr CreateBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateBackupVaultRequest const& request) override; future> CreateBackupVault( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetBackupVault( @@ -406,12 +406,12 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr UpdateBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateBackupVaultRequest const& request) override; future> UpdateBackupVault( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -419,23 +419,23 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { request) override; StatusOr DeleteBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteBackupVaultRequest const& request) override; future> - DeleteBackupVault(google::cloud::ExperimentalTag, + DeleteBackupVault(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateBackup( google::cloud::netapp::v1::CreateBackupRequest const& request) override; StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateBackupRequest const& request) override; future> CreateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetBackup( @@ -448,22 +448,22 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::DeleteBackupRequest const& request) override; StatusOr DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteBackupRequest const& request) override; future> DeleteBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateBackup( google::cloud::netapp::v1::UpdateBackupRequest const& request) override; StatusOr UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateBackupRequest const& request) override; future> UpdateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateBackupPolicy( @@ -471,12 +471,12 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr CreateBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::CreateBackupPolicyRequest const& request) override; future> CreateBackupPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetBackupPolicy( @@ -491,12 +491,12 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr UpdateBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request) override; future> UpdateBackupPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -504,12 +504,12 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { request) override; StatusOr DeleteBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request) override; future> - DeleteBackupPolicy(google::cloud::ExperimentalTag, + DeleteBackupPolicy(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/netapp/v1/internal/net_app_tracing_connection.cc b/google/cloud/netapp/v1/internal/net_app_tracing_connection.cc index 0974d08a2296f..9de0735b410b4 100644 --- a/google/cloud/netapp/v1/internal/net_app_tracing_connection.cc +++ b/google/cloud/netapp/v1/internal/net_app_tracing_connection.cc @@ -55,26 +55,24 @@ NetAppTracingConnection::CreateStoragePool( StatusOr NetAppTracingConnection::CreateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateStoragePoolRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateStoragePool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateStoragePool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateStoragePool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::CreateStoragePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateStoragePool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateStoragePool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateStoragePool(ExperimentalTag{}, operation)); } StatusOr @@ -96,26 +94,24 @@ NetAppTracingConnection::UpdateStoragePool( StatusOr NetAppTracingConnection::UpdateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateStoragePoolRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateStoragePool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateStoragePool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateStoragePool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::UpdateStoragePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateStoragePool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateStoragePool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateStoragePool(ExperimentalTag{}, operation)); } future> @@ -129,26 +125,24 @@ NetAppTracingConnection::DeleteStoragePool( StatusOr NetAppTracingConnection::DeleteStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteStoragePoolRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteStoragePool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteStoragePool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteStoragePool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::DeleteStoragePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteStoragePool"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteStoragePool(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteStoragePool(ExperimentalTag{}, operation)); } StreamRange @@ -177,24 +171,21 @@ NetAppTracingConnection::CreateVolume( } StatusOr NetAppTracingConnection::CreateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateVolumeRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateVolume"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateVolume(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateVolume(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::CreateVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateVolume"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateVolume(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateVolume(ExperimentalTag{}, operation)); } future> @@ -206,24 +197,21 @@ NetAppTracingConnection::UpdateVolume( } StatusOr NetAppTracingConnection::UpdateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateVolumeRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateVolume"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateVolume(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateVolume(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::UpdateVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateVolume"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateVolume(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateVolume(ExperimentalTag{}, operation)); } future> @@ -235,24 +223,21 @@ NetAppTracingConnection::DeleteVolume( } StatusOr NetAppTracingConnection::DeleteVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteVolumeRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteVolume"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteVolume(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteVolume(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::DeleteVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteVolume"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteVolume(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteVolume(ExperimentalTag{}, operation)); } future> @@ -264,24 +249,21 @@ NetAppTracingConnection::RevertVolume( } StatusOr NetAppTracingConnection::RevertVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::RevertVolumeRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::RevertVolume"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RevertVolume(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RevertVolume(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::RevertVolume( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::RevertVolume"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RevertVolume(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RevertVolume(ExperimentalTag{}, operation)); } StreamRange @@ -312,24 +294,21 @@ NetAppTracingConnection::CreateSnapshot( StatusOr NetAppTracingConnection::CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateSnapshotRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateSnapshot"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateSnapshot(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateSnapshot(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::CreateSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateSnapshot"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateSnapshot(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateSnapshot(ExperimentalTag{}, operation)); } future> @@ -342,24 +321,21 @@ NetAppTracingConnection::DeleteSnapshot( StatusOr NetAppTracingConnection::DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteSnapshotRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteSnapshot"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSnapshot(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteSnapshot(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::DeleteSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteSnapshot"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteSnapshot(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteSnapshot(ExperimentalTag{}, operation)); } future> @@ -372,24 +348,21 @@ NetAppTracingConnection::UpdateSnapshot( StatusOr NetAppTracingConnection::UpdateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateSnapshotRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateSnapshot"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateSnapshot(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateSnapshot(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::UpdateSnapshot( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateSnapshot"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateSnapshot(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateSnapshot(ExperimentalTag{}, operation)); } StreamRange @@ -425,26 +398,24 @@ NetAppTracingConnection::CreateActiveDirectory( StatusOr NetAppTracingConnection::CreateActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateActiveDirectory"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateActiveDirectory( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateActiveDirectory(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::CreateActiveDirectory( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateActiveDirectory"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateActiveDirectory( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateActiveDirectory( + ExperimentalTag{}, operation)); } future> @@ -459,26 +430,24 @@ NetAppTracingConnection::UpdateActiveDirectory( StatusOr NetAppTracingConnection::UpdateActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateActiveDirectory"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateActiveDirectory( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateActiveDirectory(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::UpdateActiveDirectory( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateActiveDirectory"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateActiveDirectory( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateActiveDirectory( + ExperimentalTag{}, operation)); } future> @@ -493,26 +462,24 @@ NetAppTracingConnection::DeleteActiveDirectory( StatusOr NetAppTracingConnection::DeleteActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteActiveDirectory"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteActiveDirectory( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteActiveDirectory(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::DeleteActiveDirectory( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteActiveDirectory"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteActiveDirectory( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteActiveDirectory( + ExperimentalTag{}, operation)); } StreamRange @@ -536,26 +503,23 @@ NetAppTracingConnection::CreateKmsConfig( StatusOr NetAppTracingConnection::CreateKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateKmsConfigRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateKmsConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateKmsConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateKmsConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::CreateKmsConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateKmsConfig"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateKmsConfig(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateKmsConfig(ExperimentalTag{}, operation)); } StatusOr @@ -577,26 +541,23 @@ NetAppTracingConnection::UpdateKmsConfig( StatusOr NetAppTracingConnection::UpdateKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateKmsConfigRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateKmsConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateKmsConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateKmsConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::UpdateKmsConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateKmsConfig"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateKmsConfig(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateKmsConfig(ExperimentalTag{}, operation)); } future> @@ -609,24 +570,21 @@ NetAppTracingConnection::EncryptVolumes( StatusOr NetAppTracingConnection::EncryptVolumes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::EncryptVolumesRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::EncryptVolumes"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->EncryptVolumes(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->EncryptVolumes(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::EncryptVolumes( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::EncryptVolumes"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->EncryptVolumes(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->EncryptVolumes(ExperimentalTag{}, operation)); } StatusOr @@ -649,26 +607,23 @@ NetAppTracingConnection::DeleteKmsConfig( StatusOr NetAppTracingConnection::DeleteKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteKmsConfigRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteKmsConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteKmsConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteKmsConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::DeleteKmsConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteKmsConfig"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteKmsConfig(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteKmsConfig(ExperimentalTag{}, operation)); } StreamRange @@ -701,26 +656,24 @@ NetAppTracingConnection::CreateReplication( StatusOr NetAppTracingConnection::CreateReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateReplicationRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateReplication"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateReplication(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateReplication(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::CreateReplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateReplication"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateReplication(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateReplication(ExperimentalTag{}, operation)); } future> @@ -734,26 +687,24 @@ NetAppTracingConnection::DeleteReplication( StatusOr NetAppTracingConnection::DeleteReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteReplicationRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteReplication"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteReplication(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteReplication(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::DeleteReplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteReplication"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteReplication(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteReplication(ExperimentalTag{}, operation)); } future> @@ -767,26 +718,24 @@ NetAppTracingConnection::UpdateReplication( StatusOr NetAppTracingConnection::UpdateReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateReplicationRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateReplication"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateReplication(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateReplication(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::UpdateReplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateReplication"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateReplication(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateReplication(ExperimentalTag{}, operation)); } future> @@ -800,26 +749,23 @@ NetAppTracingConnection::StopReplication( StatusOr NetAppTracingConnection::StopReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::StopReplicationRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::StopReplication"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StopReplication(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StopReplication(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::StopReplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::StopReplication"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->StopReplication(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->StopReplication(ExperimentalTag{}, operation)); } future> @@ -833,26 +779,24 @@ NetAppTracingConnection::ResumeReplication( StatusOr NetAppTracingConnection::ResumeReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::ResumeReplicationRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::ResumeReplication"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ResumeReplication(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ResumeReplication(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::ResumeReplication( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::ResumeReplication"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ResumeReplication(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ResumeReplication(ExperimentalTag{}, operation)); } future> @@ -868,27 +812,25 @@ NetAppTracingConnection::ReverseReplicationDirection( StatusOr NetAppTracingConnection::ReverseReplicationDirection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& request) { auto span = internal::MakeSpan( "netapp_v1::NetAppConnection::ReverseReplicationDirection"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ReverseReplicationDirection( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->ReverseReplicationDirection(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> NetAppTracingConnection::ReverseReplicationDirection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "netapp_v1::NetAppConnection::ReverseReplicationDirection"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ReverseReplicationDirection( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ReverseReplicationDirection( + ExperimentalTag{}, operation)); } future> @@ -902,26 +844,24 @@ NetAppTracingConnection::CreateBackupVault( StatusOr NetAppTracingConnection::CreateBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupVaultRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateBackupVault"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateBackupVault(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateBackupVault(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::CreateBackupVault( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateBackupVault"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateBackupVault(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateBackupVault(ExperimentalTag{}, operation)); } StatusOr @@ -954,26 +894,24 @@ NetAppTracingConnection::UpdateBackupVault( StatusOr NetAppTracingConnection::UpdateBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupVaultRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateBackupVault"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateBackupVault(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateBackupVault(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::UpdateBackupVault( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateBackupVault"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateBackupVault(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateBackupVault(ExperimentalTag{}, operation)); } future> @@ -987,26 +925,24 @@ NetAppTracingConnection::DeleteBackupVault( StatusOr NetAppTracingConnection::DeleteBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupVaultRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteBackupVault"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteBackupVault(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteBackupVault(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::DeleteBackupVault( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteBackupVault"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteBackupVault(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteBackupVault(ExperimentalTag{}, operation)); } future> @@ -1018,24 +954,21 @@ NetAppTracingConnection::CreateBackup( } StatusOr NetAppTracingConnection::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateBackup(ExperimentalTag{}, operation)); } StatusOr NetAppTracingConnection::GetBackup( @@ -1064,24 +997,21 @@ NetAppTracingConnection::DeleteBackup( } StatusOr NetAppTracingConnection::DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::DeleteBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteBackup(ExperimentalTag{}, operation)); } future> @@ -1093,24 +1023,21 @@ NetAppTracingConnection::UpdateBackup( } StatusOr NetAppTracingConnection::UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::UpdateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateBackup(ExperimentalTag{}, operation)); } future> @@ -1125,26 +1052,24 @@ NetAppTracingConnection::CreateBackupPolicy( StatusOr NetAppTracingConnection::CreateBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupPolicyRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateBackupPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateBackupPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateBackupPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::CreateBackupPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::CreateBackupPolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateBackupPolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateBackupPolicy( + ExperimentalTag{}, operation)); } StatusOr @@ -1179,26 +1104,24 @@ NetAppTracingConnection::UpdateBackupPolicy( StatusOr NetAppTracingConnection::UpdateBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateBackupPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateBackupPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateBackupPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::UpdateBackupPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::UpdateBackupPolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateBackupPolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateBackupPolicy( + ExperimentalTag{}, operation)); } future> @@ -1213,26 +1136,24 @@ NetAppTracingConnection::DeleteBackupPolicy( StatusOr NetAppTracingConnection::DeleteBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteBackupPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteBackupPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteBackupPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetAppTracingConnection::DeleteBackupPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("netapp_v1::NetAppConnection::DeleteBackupPolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteBackupPolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteBackupPolicy( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/netapp/v1/internal/net_app_tracing_connection.h b/google/cloud/netapp/v1/internal/net_app_tracing_connection.h index 53a4ebe1b4716..de61a9a7af162 100644 --- a/google/cloud/netapp/v1/internal/net_app_tracing_connection.h +++ b/google/cloud/netapp/v1/internal/net_app_tracing_connection.h @@ -47,12 +47,12 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { override; StatusOr CreateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateStoragePoolRequest const& request) override; future> CreateStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetStoragePool( @@ -63,12 +63,12 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { override; StatusOr UpdateStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateStoragePoolRequest const& request) override; future> UpdateStoragePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -76,12 +76,12 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { request) override; StatusOr DeleteStoragePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteStoragePoolRequest const& request) override; future> - DeleteStoragePool(google::cloud::ExperimentalTag, + DeleteStoragePool(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListVolumes( @@ -94,44 +94,44 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::CreateVolumeRequest const& request) override; StatusOr CreateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateVolumeRequest const& request) override; future> CreateVolume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateVolume( google::cloud::netapp::v1::UpdateVolumeRequest const& request) override; StatusOr UpdateVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateVolumeRequest const& request) override; future> UpdateVolume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteVolume( google::cloud::netapp::v1::DeleteVolumeRequest const& request) override; StatusOr DeleteVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteVolumeRequest const& request) override; future> DeleteVolume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RevertVolume( google::cloud::netapp::v1::RevertVolumeRequest const& request) override; StatusOr RevertVolume( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::RevertVolumeRequest const& request) override; future> RevertVolume( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListSnapshots( @@ -144,33 +144,33 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::CreateSnapshotRequest const& request) override; StatusOr CreateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateSnapshotRequest const& request) override; future> CreateSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteSnapshot( google::cloud::netapp::v1::DeleteSnapshotRequest const& request) override; StatusOr DeleteSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteSnapshotRequest const& request) override; future> DeleteSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateSnapshot( google::cloud::netapp::v1::UpdateSnapshotRequest const& request) override; StatusOr UpdateSnapshot( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateSnapshotRequest const& request) override; future> UpdateSnapshot( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListActiveDirectories( @@ -186,13 +186,13 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { override; StatusOr CreateActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request) override; future> CreateActiveDirectory( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -201,13 +201,13 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { override; StatusOr UpdateActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request) override; future> UpdateActiveDirectory( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -216,13 +216,13 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { override; StatusOr DeleteActiveDirectory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request) override; future> DeleteActiveDirectory( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListKmsConfigs( @@ -233,12 +233,12 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { override; StatusOr CreateKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateKmsConfigRequest const& request) override; future> CreateKmsConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetKmsConfig( @@ -249,23 +249,23 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { override; StatusOr UpdateKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateKmsConfigRequest const& request) override; future> UpdateKmsConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> EncryptVolumes( google::cloud::netapp::v1::EncryptVolumesRequest const& request) override; StatusOr EncryptVolumes( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::EncryptVolumesRequest const& request) override; future> EncryptVolumes( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr VerifyKmsConfig( @@ -277,12 +277,12 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { request) override; StatusOr DeleteKmsConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteKmsConfigRequest const& request) override; future> - DeleteKmsConfig(google::cloud::ExperimentalTag, + DeleteKmsConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListReplications( @@ -296,12 +296,12 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { override; StatusOr CreateReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateReplicationRequest const& request) override; future> CreateReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -309,12 +309,12 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { request) override; StatusOr DeleteReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteReplicationRequest const& request) override; future> - DeleteReplication(google::cloud::ExperimentalTag, + DeleteReplication(ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateReplication( @@ -322,12 +322,12 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { override; StatusOr UpdateReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateReplicationRequest const& request) override; future> UpdateReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StopReplication( @@ -335,12 +335,12 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { override; StatusOr StopReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::StopReplicationRequest const& request) override; future> StopReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ResumeReplication( @@ -348,12 +348,12 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { override; StatusOr ResumeReplication( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::ResumeReplicationRequest const& request) override; future> ResumeReplication( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -362,13 +362,13 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { request) override; StatusOr ReverseReplicationDirection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& request) override; future> ReverseReplicationDirection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateBackupVault( @@ -376,12 +376,12 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { override; StatusOr CreateBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupVaultRequest const& request) override; future> CreateBackupVault( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetBackupVault( @@ -395,12 +395,12 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { override; StatusOr UpdateBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupVaultRequest const& request) override; future> UpdateBackupVault( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -408,23 +408,23 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { request) override; StatusOr DeleteBackupVault( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupVaultRequest const& request) override; future> - DeleteBackupVault(google::cloud::ExperimentalTag, + DeleteBackupVault(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateBackup( google::cloud::netapp::v1::CreateBackupRequest const& request) override; StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupRequest const& request) override; future> CreateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetBackup( @@ -437,22 +437,22 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::DeleteBackupRequest const& request) override; StatusOr DeleteBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupRequest const& request) override; future> DeleteBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateBackup( google::cloud::netapp::v1::UpdateBackupRequest const& request) override; StatusOr UpdateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupRequest const& request) override; future> UpdateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateBackupPolicy( @@ -460,12 +460,12 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { override; StatusOr CreateBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupPolicyRequest const& request) override; future> CreateBackupPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetBackupPolicy( @@ -480,12 +480,12 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { override; StatusOr UpdateBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request) override; future> UpdateBackupPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -493,12 +493,12 @@ class NetAppTracingConnection : public netapp_v1::NetAppConnection { request) override; StatusOr DeleteBackupPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request) override; future> - DeleteBackupPolicy(google::cloud::ExperimentalTag, + DeleteBackupPolicy(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/netapp/v1/mocks/mock_net_app_connection.h b/google/cloud/netapp/v1/mocks/mock_net_app_connection.h index bfe6d13eea1c1..87f244db9ee5a 100644 --- a/google/cloud/netapp/v1/mocks/mock_net_app_connection.h +++ b/google/cloud/netapp/v1/mocks/mock_net_app_connection.h @@ -59,13 +59,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, CreateStoragePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateStoragePoolRequest const& request), (override)); MOCK_METHOD(future>, CreateStoragePool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -81,13 +81,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, UpdateStoragePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateStoragePoolRequest const& request), (override)); MOCK_METHOD(future>, UpdateStoragePool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -99,13 +99,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, DeleteStoragePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteStoragePoolRequest const& request), (override)); MOCK_METHOD(future>, DeleteStoragePool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -122,12 +122,12 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (override)); MOCK_METHOD(StatusOr, CreateVolume, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateVolumeRequest const& request), (override)); MOCK_METHOD(future>, CreateVolume, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -136,12 +136,12 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (override)); MOCK_METHOD(StatusOr, UpdateVolume, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateVolumeRequest const& request), (override)); MOCK_METHOD(future>, UpdateVolume, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -151,13 +151,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (override)); MOCK_METHOD(StatusOr, DeleteVolume, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteVolumeRequest const& request), (override)); MOCK_METHOD(future>, DeleteVolume, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -166,12 +166,12 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (override)); MOCK_METHOD(StatusOr, RevertVolume, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::RevertVolumeRequest const& request), (override)); MOCK_METHOD(future>, RevertVolume, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -189,13 +189,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (override)); MOCK_METHOD(StatusOr, CreateSnapshot, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateSnapshotRequest const& request), (override)); MOCK_METHOD(future>, CreateSnapshot, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -205,13 +205,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (override)); MOCK_METHOD(StatusOr, DeleteSnapshot, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteSnapshotRequest const& request), (override)); MOCK_METHOD(future>, DeleteSnapshot, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -221,13 +221,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (override)); MOCK_METHOD(StatusOr, UpdateSnapshot, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateSnapshotRequest const& request), (override)); MOCK_METHOD(future>, UpdateSnapshot, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -249,13 +249,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, CreateActiveDirectory, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request), (override)); MOCK_METHOD(future>, CreateActiveDirectory, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -267,13 +267,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, UpdateActiveDirectory, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request), (override)); MOCK_METHOD(future>, UpdateActiveDirectory, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -285,13 +285,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, DeleteActiveDirectory, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request), (override)); MOCK_METHOD(future>, DeleteActiveDirectory, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -307,13 +307,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, CreateKmsConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateKmsConfigRequest const& request), (override)); MOCK_METHOD(future>, CreateKmsConfig, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -328,13 +328,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, UpdateKmsConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateKmsConfigRequest const& request), (override)); MOCK_METHOD(future>, UpdateKmsConfig, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -344,13 +344,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (override)); MOCK_METHOD(StatusOr, EncryptVolumes, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::EncryptVolumesRequest const& request), (override)); MOCK_METHOD(future>, EncryptVolumes, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -368,13 +368,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, DeleteKmsConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteKmsConfigRequest const& request), (override)); MOCK_METHOD(future>, DeleteKmsConfig, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -395,13 +395,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, CreateReplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateReplicationRequest const& request), (override)); MOCK_METHOD(future>, CreateReplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -413,13 +413,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, DeleteReplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteReplicationRequest const& request), (override)); MOCK_METHOD(future>, DeleteReplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -431,13 +431,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, UpdateReplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateReplicationRequest const& request), (override)); MOCK_METHOD(future>, UpdateReplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -448,13 +448,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, StopReplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::StopReplicationRequest const& request), (override)); MOCK_METHOD(future>, StopReplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -466,13 +466,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, ResumeReplication, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::ResumeReplicationRequest const& request), (override)); MOCK_METHOD(future>, ResumeReplication, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -485,14 +485,14 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, ReverseReplicationDirection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& request), (override)); MOCK_METHOD(future>, ReverseReplicationDirection, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -504,13 +504,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, CreateBackupVault, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupVaultRequest const& request), (override)); MOCK_METHOD(future>, CreateBackupVault, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -531,13 +531,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, UpdateBackupVault, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupVaultRequest const& request), (override)); MOCK_METHOD(future>, UpdateBackupVault, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -549,13 +549,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, DeleteBackupVault, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupVaultRequest const& request), (override)); MOCK_METHOD(future>, DeleteBackupVault, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -564,12 +564,12 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (override)); MOCK_METHOD(StatusOr, CreateBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupRequest const& request), (override)); MOCK_METHOD(future>, CreateBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -587,13 +587,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (override)); MOCK_METHOD(StatusOr, DeleteBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupRequest const& request), (override)); MOCK_METHOD(future>, DeleteBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -602,12 +602,12 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { (override)); MOCK_METHOD(StatusOr, UpdateBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupRequest const& request), (override)); MOCK_METHOD(future>, UpdateBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -619,13 +619,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, CreateBackupPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupPolicyRequest const& request), (override)); MOCK_METHOD(future>, CreateBackupPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -647,13 +647,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, UpdateBackupPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request), (override)); MOCK_METHOD(future>, UpdateBackupPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -665,13 +665,13 @@ class MockNetAppConnection : public netapp_v1::NetAppConnection { MOCK_METHOD( StatusOr, DeleteBackupPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request), (override)); MOCK_METHOD(future>, DeleteBackupPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.cc b/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.cc index 3acf0d3fd2891..1e7b9af5d17c7 100644 --- a/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.cc +++ b/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.cc @@ -156,7 +156,7 @@ HubServiceConnectionImpl::CreateHub( } StatusOr HubServiceConnectionImpl::CreateHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::CreateHubRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -172,8 +172,7 @@ StatusOr HubServiceConnectionImpl::CreateHub( future> HubServiceConnectionImpl::CreateHub( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is HubServiceConnectionImpl::UpdateHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::UpdateHubRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -265,8 +264,7 @@ StatusOr HubServiceConnectionImpl::UpdateHub( future> HubServiceConnectionImpl::UpdateHub( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is HubServiceConnectionImpl::DeleteHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::DeleteHubRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -358,8 +356,7 @@ StatusOr HubServiceConnectionImpl::DeleteHub( future> HubServiceConnectionImpl::DeleteHub( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is HubServiceConnectionImpl::CreateSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::CreateSpokeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -537,8 +534,7 @@ StatusOr HubServiceConnectionImpl::CreateSpoke( future> HubServiceConnectionImpl::CreateSpoke( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is HubServiceConnectionImpl::UpdateSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -631,8 +627,7 @@ StatusOr HubServiceConnectionImpl::UpdateSpoke( future> HubServiceConnectionImpl::UpdateSpoke( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is HubServiceConnectionImpl::RejectHubSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -729,8 +724,7 @@ HubServiceConnectionImpl::RejectHubSpoke( future> HubServiceConnectionImpl::RejectHubSpoke( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is HubServiceConnectionImpl::AcceptHubSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -827,8 +821,7 @@ HubServiceConnectionImpl::AcceptHubSpoke( future> HubServiceConnectionImpl::AcceptHubSpoke( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is HubServiceConnectionImpl::DeleteSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -921,8 +914,7 @@ StatusOr HubServiceConnectionImpl::DeleteSpoke( future> HubServiceConnectionImpl::DeleteSpoke( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::CreateHubRequest const& request) override; future> CreateHub( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateHub( @@ -77,12 +77,12 @@ class HubServiceConnectionImpl override; StatusOr UpdateHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::UpdateHubRequest const& request) override; future> UpdateHub( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -90,12 +90,12 @@ class HubServiceConnectionImpl request) override; StatusOr DeleteHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::DeleteHubRequest const& request) override; future> - DeleteHub(google::cloud::ExperimentalTag, + DeleteHub(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListHubSpokes( @@ -115,12 +115,12 @@ class HubServiceConnectionImpl override; StatusOr CreateSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::CreateSpokeRequest const& request) override; future> CreateSpoke( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateSpoke( @@ -128,12 +128,12 @@ class HubServiceConnectionImpl override; StatusOr UpdateSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request) override; future> UpdateSpoke( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -143,13 +143,13 @@ class HubServiceConnectionImpl request) override; StatusOr RejectHubSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& request) override; future< StatusOr> - RejectHubSpoke(google::cloud::ExperimentalTag, + RejectHubSpoke(ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -159,13 +159,13 @@ class HubServiceConnectionImpl request) override; StatusOr AcceptHubSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& request) override; future< StatusOr> - AcceptHubSpoke(google::cloud::ExperimentalTag, + AcceptHubSpoke(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -173,12 +173,12 @@ class HubServiceConnectionImpl request) override; StatusOr DeleteSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request) override; future> - DeleteSpoke(google::cloud::ExperimentalTag, + DeleteSpoke(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetRouteTable( diff --git a/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.cc b/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.cc index b5472b12d9311..a7b41dc402293 100644 --- a/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.cc +++ b/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.cc @@ -64,26 +64,23 @@ HubServiceTracingConnection::CreateHub( } StatusOr HubServiceTracingConnection::CreateHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::CreateHubRequest const& request) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::CreateHub"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateHub(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateHub(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HubServiceTracingConnection::CreateHub( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::CreateHub"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateHub(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateHub(ExperimentalTag{}, operation)); } future> @@ -96,26 +93,23 @@ HubServiceTracingConnection::UpdateHub( } StatusOr HubServiceTracingConnection::UpdateHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::UpdateHubRequest const& request) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::UpdateHub"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateHub(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateHub(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HubServiceTracingConnection::UpdateHub( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::UpdateHub"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateHub(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateHub(ExperimentalTag{}, operation)); } future> @@ -128,26 +122,23 @@ HubServiceTracingConnection::DeleteHub( } StatusOr HubServiceTracingConnection::DeleteHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::DeleteHubRequest const& request) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::DeleteHub"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteHub(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteHub(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HubServiceTracingConnection::DeleteHub( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::DeleteHub"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteHub(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteHub(ExperimentalTag{}, operation)); } StreamRange @@ -194,26 +185,23 @@ HubServiceTracingConnection::CreateSpoke( StatusOr HubServiceTracingConnection::CreateSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::CreateSpokeRequest const& request) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::CreateSpoke"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateSpoke(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateSpoke(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HubServiceTracingConnection::CreateSpoke( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::CreateSpoke"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateSpoke(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateSpoke(ExperimentalTag{}, operation)); } future> @@ -227,26 +215,23 @@ HubServiceTracingConnection::UpdateSpoke( StatusOr HubServiceTracingConnection::UpdateSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::UpdateSpoke"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateSpoke(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateSpoke(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HubServiceTracingConnection::UpdateSpoke( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::UpdateSpoke"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateSpoke(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateSpoke(ExperimentalTag{}, operation)); } future> @@ -261,27 +246,24 @@ HubServiceTracingConnection::RejectHubSpoke( StatusOr HubServiceTracingConnection::RejectHubSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& request) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::RejectHubSpoke"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RejectHubSpoke(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RejectHubSpoke(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HubServiceTracingConnection::RejectHubSpoke( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::RejectHubSpoke"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RejectHubSpoke(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RejectHubSpoke(ExperimentalTag{}, operation)); } future> @@ -296,27 +278,24 @@ HubServiceTracingConnection::AcceptHubSpoke( StatusOr HubServiceTracingConnection::AcceptHubSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& request) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::AcceptHubSpoke"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AcceptHubSpoke(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AcceptHubSpoke(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HubServiceTracingConnection::AcceptHubSpoke( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::AcceptHubSpoke"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->AcceptHubSpoke(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->AcceptHubSpoke(ExperimentalTag{}, operation)); } future> @@ -330,26 +309,23 @@ HubServiceTracingConnection::DeleteSpoke( StatusOr HubServiceTracingConnection::DeleteSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::DeleteSpoke"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSpoke(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteSpoke(ExperimentalTag{}, NoAwaitTag{}, request)); } future> HubServiceTracingConnection::DeleteSpoke( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkconnectivity_v1::HubServiceConnection::DeleteSpoke"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteSpoke(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteSpoke(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.h b/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.h index c3418dcc6d819..6a364d57cd4a6 100644 --- a/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.h +++ b/google/cloud/networkconnectivity/v1/internal/hub_tracing_connection.h @@ -52,12 +52,12 @@ class HubServiceTracingConnection override; StatusOr CreateHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::CreateHubRequest const& request) override; future> CreateHub( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateHub( @@ -65,12 +65,12 @@ class HubServiceTracingConnection override; StatusOr UpdateHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::UpdateHubRequest const& request) override; future> UpdateHub( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -78,12 +78,12 @@ class HubServiceTracingConnection request) override; StatusOr DeleteHub( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::DeleteHubRequest const& request) override; future> - DeleteHub(google::cloud::ExperimentalTag, + DeleteHub(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListHubSpokes( @@ -103,12 +103,12 @@ class HubServiceTracingConnection override; StatusOr CreateSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::CreateSpokeRequest const& request) override; future> CreateSpoke( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateSpoke( @@ -116,12 +116,12 @@ class HubServiceTracingConnection override; StatusOr UpdateSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request) override; future> UpdateSpoke( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -131,13 +131,13 @@ class HubServiceTracingConnection request) override; StatusOr RejectHubSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& request) override; future< StatusOr> - RejectHubSpoke(google::cloud::ExperimentalTag, + RejectHubSpoke(ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -147,13 +147,13 @@ class HubServiceTracingConnection request) override; StatusOr AcceptHubSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& request) override; future< StatusOr> - AcceptHubSpoke(google::cloud::ExperimentalTag, + AcceptHubSpoke(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -161,12 +161,12 @@ class HubServiceTracingConnection request) override; StatusOr DeleteSpoke( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request) override; future> - DeleteSpoke(google::cloud::ExperimentalTag, + DeleteSpoke(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetRouteTable( diff --git a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.cc b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.cc index 30ef17631ac4f..84f106d2effa7 100644 --- a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.cc +++ b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.cc @@ -174,7 +174,7 @@ PolicyBasedRoutingServiceConnectionImpl::CreatePolicyBasedRoute( StatusOr PolicyBasedRoutingServiceConnectionImpl::CreatePolicyBasedRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::CreatePolicyBasedRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -191,8 +191,7 @@ PolicyBasedRoutingServiceConnectionImpl::CreatePolicyBasedRoute( future> PolicyBasedRoutingServiceConnectionImpl::CreatePolicyBasedRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is PolicyBasedRoutingServiceConnectionImpl::DeletePolicyBasedRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1::DeletePolicyBasedRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -287,8 +286,7 @@ PolicyBasedRoutingServiceConnectionImpl::DeletePolicyBasedRoute( future> PolicyBasedRoutingServiceConnectionImpl::DeletePolicyBasedRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreatePolicyBasedRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1:: CreatePolicyBasedRouteRequest const& request) override; future> CreatePolicyBasedRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -85,13 +85,13 @@ class PolicyBasedRoutingServiceConnectionImpl DeletePolicyBasedRouteRequest const& request) override; StatusOr DeletePolicyBasedRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkconnectivity::v1:: DeletePolicyBasedRouteRequest const& request) override; future> DeletePolicyBasedRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.cc b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.cc index c0fe592b45a3d..489ce62da5e99 100644 --- a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.cc +++ b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.cc @@ -75,29 +75,27 @@ PolicyBasedRoutingServiceTracingConnection::CreatePolicyBasedRoute( StatusOr PolicyBasedRoutingServiceTracingConnection::CreatePolicyBasedRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::CreatePolicyBasedRouteRequest const& request) { auto span = internal::MakeSpan( "networkconnectivity_v1::PolicyBasedRoutingServiceConnection::" "CreatePolicyBasedRoute"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreatePolicyBasedRoute( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreatePolicyBasedRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> PolicyBasedRoutingServiceTracingConnection::CreatePolicyBasedRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkconnectivity_v1::PolicyBasedRoutingServiceConnection::" "CreatePolicyBasedRoute"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreatePolicyBasedRoute( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreatePolicyBasedRoute( + ExperimentalTag{}, operation)); } future> @@ -114,29 +112,27 @@ PolicyBasedRoutingServiceTracingConnection::DeletePolicyBasedRoute( StatusOr PolicyBasedRoutingServiceTracingConnection::DeletePolicyBasedRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::DeletePolicyBasedRouteRequest const& request) { auto span = internal::MakeSpan( "networkconnectivity_v1::PolicyBasedRoutingServiceConnection::" "DeletePolicyBasedRoute"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeletePolicyBasedRoute( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeletePolicyBasedRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> PolicyBasedRoutingServiceTracingConnection::DeletePolicyBasedRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkconnectivity_v1::PolicyBasedRoutingServiceConnection::" "DeletePolicyBasedRoute"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeletePolicyBasedRoute( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeletePolicyBasedRoute( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.h b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.h index 8d54b5a58b4e3..fb4d3015c473f 100644 --- a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.h +++ b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_tracing_connection.h @@ -58,13 +58,13 @@ class PolicyBasedRoutingServiceTracingConnection CreatePolicyBasedRouteRequest const& request) override; StatusOr CreatePolicyBasedRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1:: CreatePolicyBasedRouteRequest const& request) override; future> CreatePolicyBasedRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -73,13 +73,13 @@ class PolicyBasedRoutingServiceTracingConnection DeletePolicyBasedRouteRequest const& request) override; StatusOr DeletePolicyBasedRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1:: DeletePolicyBasedRouteRequest const& request) override; future> DeletePolicyBasedRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/networkconnectivity/v1/mocks/mock_hub_connection.h b/google/cloud/networkconnectivity/v1/mocks/mock_hub_connection.h index af52dbdf5b5f6..79e192d5350b2 100644 --- a/google/cloud/networkconnectivity/v1/mocks/mock_hub_connection.h +++ b/google/cloud/networkconnectivity/v1/mocks/mock_hub_connection.h @@ -64,13 +64,13 @@ class MockHubServiceConnection MOCK_METHOD( StatusOr, CreateHub, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::CreateHubRequest const& request), (override)); MOCK_METHOD(future>, CreateHub, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -81,13 +81,13 @@ class MockHubServiceConnection MOCK_METHOD( StatusOr, UpdateHub, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::UpdateHubRequest const& request), (override)); MOCK_METHOD(future>, UpdateHub, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -100,7 +100,7 @@ class MockHubServiceConnection MOCK_METHOD( StatusOr, DeleteHub, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::DeleteHubRequest const& request), (override)); @@ -108,8 +108,7 @@ class MockHubServiceConnection future< StatusOr>, DeleteHub, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -135,14 +134,14 @@ class MockHubServiceConnection (override)); MOCK_METHOD(StatusOr, CreateSpoke, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::CreateSpokeRequest const& request), (override)); MOCK_METHOD(future>, CreateSpoke, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -153,14 +152,14 @@ class MockHubServiceConnection (override)); MOCK_METHOD(StatusOr, UpdateSpoke, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request), (override)); MOCK_METHOD(future>, UpdateSpoke, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -174,7 +173,7 @@ class MockHubServiceConnection MOCK_METHOD( StatusOr, RejectHubSpoke, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& request), (override)); @@ -183,8 +182,7 @@ class MockHubServiceConnection future>, RejectHubSpoke, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -197,7 +195,7 @@ class MockHubServiceConnection MOCK_METHOD( StatusOr, AcceptHubSpoke, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& request), (override)); @@ -206,8 +204,7 @@ class MockHubServiceConnection future>, AcceptHubSpoke, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -219,7 +216,7 @@ class MockHubServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteSpoke, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request), (override)); @@ -228,8 +225,7 @@ class MockHubServiceConnection future< StatusOr>, DeleteSpoke, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/networkconnectivity/v1/mocks/mock_policy_based_routing_connection.h b/google/cloud/networkconnectivity/v1/mocks/mock_policy_based_routing_connection.h index d0987e2ca88be..7aa838cbcdb51 100644 --- a/google/cloud/networkconnectivity/v1/mocks/mock_policy_based_routing_connection.h +++ b/google/cloud/networkconnectivity/v1/mocks/mock_policy_based_routing_connection.h @@ -70,7 +70,7 @@ class MockPolicyBasedRoutingServiceConnection (override)); MOCK_METHOD(StatusOr, CreatePolicyBasedRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1:: CreatePolicyBasedRouteRequest const& request), (override)); @@ -79,8 +79,7 @@ class MockPolicyBasedRoutingServiceConnection future< StatusOr>, CreatePolicyBasedRoute, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -92,7 +91,7 @@ class MockPolicyBasedRoutingServiceConnection (override)); MOCK_METHOD(StatusOr, DeletePolicyBasedRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1:: DeletePolicyBasedRouteRequest const& request), (override)); @@ -101,8 +100,7 @@ class MockPolicyBasedRoutingServiceConnection future< StatusOr>, DeletePolicyBasedRoute, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.cc b/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.cc index 9f6c2f1f20060..eb8543e4c0b00 100644 --- a/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.cc +++ b/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.cc @@ -169,7 +169,7 @@ ReachabilityServiceConnectionImpl::CreateConnectivityTest( StatusOr ReachabilityServiceConnectionImpl::CreateConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkmanagement::v1::CreateConnectivityTestRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -186,8 +186,7 @@ ReachabilityServiceConnectionImpl::CreateConnectivityTest( future> ReachabilityServiceConnectionImpl::CreateConnectivityTest( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ReachabilityServiceConnectionImpl::UpdateConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -282,8 +281,7 @@ ReachabilityServiceConnectionImpl::UpdateConnectivityTest( future> ReachabilityServiceConnectionImpl::UpdateConnectivityTest( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ReachabilityServiceConnectionImpl::RerunConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -378,8 +376,7 @@ ReachabilityServiceConnectionImpl::RerunConnectivityTest( future> ReachabilityServiceConnectionImpl::RerunConnectivityTest( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ReachabilityServiceConnectionImpl::DeleteConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -474,8 +471,7 @@ ReachabilityServiceConnectionImpl::DeleteConnectivityTest( future> ReachabilityServiceConnectionImpl::DeleteConnectivityTest( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkmanagement::v1::CreateConnectivityTestRequest const& request) override; future> CreateConnectivityTest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -84,13 +84,13 @@ class ReachabilityServiceConnectionImpl request) override; StatusOr UpdateConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& request) override; future> UpdateConnectivityTest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -99,13 +99,13 @@ class ReachabilityServiceConnectionImpl request) override; StatusOr RerunConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& request) override; future> RerunConnectivityTest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -114,13 +114,13 @@ class ReachabilityServiceConnectionImpl request) override; StatusOr DeleteConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& request) override; future> DeleteConnectivityTest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.cc b/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.cc index b9d1ffd1797ba..b8f61dafff46a 100644 --- a/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.cc +++ b/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.cc @@ -72,29 +72,27 @@ ReachabilityServiceTracingConnection::CreateConnectivityTest( StatusOr ReachabilityServiceTracingConnection::CreateConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::CreateConnectivityTestRequest const& request) { auto span = internal::MakeSpan( "networkmanagement_v1::ReachabilityServiceConnection::" "CreateConnectivityTest"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateConnectivityTest( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateConnectivityTest(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ReachabilityServiceTracingConnection::CreateConnectivityTest( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkmanagement_v1::ReachabilityServiceConnection::" "CreateConnectivityTest"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateConnectivityTest( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateConnectivityTest( + ExperimentalTag{}, operation)); } future> @@ -111,29 +109,27 @@ ReachabilityServiceTracingConnection::UpdateConnectivityTest( StatusOr ReachabilityServiceTracingConnection::UpdateConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& request) { auto span = internal::MakeSpan( "networkmanagement_v1::ReachabilityServiceConnection::" "UpdateConnectivityTest"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateConnectivityTest( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateConnectivityTest(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ReachabilityServiceTracingConnection::UpdateConnectivityTest( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkmanagement_v1::ReachabilityServiceConnection::" "UpdateConnectivityTest"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateConnectivityTest( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateConnectivityTest( + ExperimentalTag{}, operation)); } future> @@ -150,29 +146,27 @@ ReachabilityServiceTracingConnection::RerunConnectivityTest( StatusOr ReachabilityServiceTracingConnection::RerunConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& request) { auto span = internal::MakeSpan( "networkmanagement_v1::ReachabilityServiceConnection::" "RerunConnectivityTest"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RerunConnectivityTest( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->RerunConnectivityTest(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ReachabilityServiceTracingConnection::RerunConnectivityTest( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkmanagement_v1::ReachabilityServiceConnection::" "RerunConnectivityTest"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RerunConnectivityTest( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RerunConnectivityTest( + ExperimentalTag{}, operation)); } future> @@ -189,29 +183,27 @@ ReachabilityServiceTracingConnection::DeleteConnectivityTest( StatusOr ReachabilityServiceTracingConnection::DeleteConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& request) { auto span = internal::MakeSpan( "networkmanagement_v1::ReachabilityServiceConnection::" "DeleteConnectivityTest"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteConnectivityTest( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteConnectivityTest(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ReachabilityServiceTracingConnection::DeleteConnectivityTest( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkmanagement_v1::ReachabilityServiceConnection::" "DeleteConnectivityTest"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteConnectivityTest( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteConnectivityTest( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.h b/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.h index f24807d5ac57f..6fa02ab078f3a 100644 --- a/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.h +++ b/google/cloud/networkmanagement/v1/internal/reachability_tracing_connection.h @@ -57,13 +57,13 @@ class ReachabilityServiceTracingConnection request) override; StatusOr CreateConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::CreateConnectivityTestRequest const& request) override; future> CreateConnectivityTest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -72,13 +72,13 @@ class ReachabilityServiceTracingConnection request) override; StatusOr UpdateConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& request) override; future> UpdateConnectivityTest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -87,13 +87,13 @@ class ReachabilityServiceTracingConnection request) override; StatusOr RerunConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& request) override; future> RerunConnectivityTest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -102,13 +102,13 @@ class ReachabilityServiceTracingConnection request) override; StatusOr DeleteConnectivityTest( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& request) override; future> DeleteConnectivityTest( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/networkmanagement/v1/mocks/mock_reachability_connection.h b/google/cloud/networkmanagement/v1/mocks/mock_reachability_connection.h index 455c478bd13a4..056ed460431e1 100644 --- a/google/cloud/networkmanagement/v1/mocks/mock_reachability_connection.h +++ b/google/cloud/networkmanagement/v1/mocks/mock_reachability_connection.h @@ -69,7 +69,7 @@ class MockReachabilityServiceConnection (override)); MOCK_METHOD(StatusOr, CreateConnectivityTest, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1:: CreateConnectivityTestRequest const& request), (override)); @@ -77,8 +77,7 @@ class MockReachabilityServiceConnection MOCK_METHOD( future>, CreateConnectivityTest, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -89,7 +88,7 @@ class MockReachabilityServiceConnection (override)); MOCK_METHOD(StatusOr, UpdateConnectivityTest, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1:: UpdateConnectivityTestRequest const& request), (override)); @@ -97,8 +96,7 @@ class MockReachabilityServiceConnection MOCK_METHOD( future>, UpdateConnectivityTest, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -110,7 +108,7 @@ class MockReachabilityServiceConnection MOCK_METHOD( StatusOr, RerunConnectivityTest, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& request), (override)); @@ -118,8 +116,7 @@ class MockReachabilityServiceConnection MOCK_METHOD( future>, RerunConnectivityTest, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -130,7 +127,7 @@ class MockReachabilityServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteConnectivityTest, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1:: DeleteConnectivityTestRequest const& request), (override)); @@ -138,8 +135,7 @@ class MockReachabilityServiceConnection MOCK_METHOD( future>, DeleteConnectivityTest, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/networksecurity/v1/internal/network_security_connection_impl.cc b/google/cloud/networksecurity/v1/internal/network_security_connection_impl.cc index ad5c3b6fa44ad..ea4973796318d 100644 --- a/google/cloud/networksecurity/v1/internal/network_security_connection_impl.cc +++ b/google/cloud/networksecurity/v1/internal/network_security_connection_impl.cc @@ -164,7 +164,7 @@ NetworkSecurityConnectionImpl::CreateAuthorizationPolicy( StatusOr NetworkSecurityConnectionImpl::CreateAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1::CreateAuthorizationPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -181,8 +181,7 @@ NetworkSecurityConnectionImpl::CreateAuthorizationPolicy( future> NetworkSecurityConnectionImpl::CreateAuthorizationPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkSecurityConnectionImpl::UpdateAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1::UpdateAuthorizationPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -277,8 +276,7 @@ NetworkSecurityConnectionImpl::UpdateAuthorizationPolicy( future> NetworkSecurityConnectionImpl::UpdateAuthorizationPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkSecurityConnectionImpl::DeleteAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1::DeleteAuthorizationPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -373,8 +371,7 @@ NetworkSecurityConnectionImpl::DeleteAuthorizationPolicy( future> NetworkSecurityConnectionImpl::DeleteAuthorizationPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkSecurityConnectionImpl::CreateServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -521,8 +518,7 @@ NetworkSecurityConnectionImpl::CreateServerTlsPolicy( future> NetworkSecurityConnectionImpl::CreateServerTlsPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkSecurityConnectionImpl::UpdateServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -617,8 +613,7 @@ NetworkSecurityConnectionImpl::UpdateServerTlsPolicy( future> NetworkSecurityConnectionImpl::UpdateServerTlsPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkSecurityConnectionImpl::DeleteServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -713,8 +708,7 @@ NetworkSecurityConnectionImpl::DeleteServerTlsPolicy( future> NetworkSecurityConnectionImpl::DeleteServerTlsPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkSecurityConnectionImpl::CreateClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -861,8 +855,7 @@ NetworkSecurityConnectionImpl::CreateClientTlsPolicy( future> NetworkSecurityConnectionImpl::CreateClientTlsPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkSecurityConnectionImpl::UpdateClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -957,8 +950,7 @@ NetworkSecurityConnectionImpl::UpdateClientTlsPolicy( future> NetworkSecurityConnectionImpl::UpdateClientTlsPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkSecurityConnectionImpl::DeleteClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1053,8 +1045,7 @@ NetworkSecurityConnectionImpl::DeleteClientTlsPolicy( future> NetworkSecurityConnectionImpl::DeleteClientTlsPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1:: CreateAuthorizationPolicyRequest const& request) override; future> CreateAuthorizationPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -83,13 +83,13 @@ class NetworkSecurityConnectionImpl UpdateAuthorizationPolicyRequest const& request) override; StatusOr UpdateAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1:: UpdateAuthorizationPolicyRequest const& request) override; future> UpdateAuthorizationPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -98,13 +98,13 @@ class NetworkSecurityConnectionImpl DeleteAuthorizationPolicyRequest const& request) override; StatusOr DeleteAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1:: DeleteAuthorizationPolicyRequest const& request) override; future> DeleteAuthorizationPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -123,13 +123,13 @@ class NetworkSecurityConnectionImpl request) override; StatusOr CreateServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& request) override; future> CreateServerTlsPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -138,13 +138,13 @@ class NetworkSecurityConnectionImpl request) override; StatusOr UpdateServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& request) override; future> UpdateServerTlsPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -153,13 +153,13 @@ class NetworkSecurityConnectionImpl request) override; StatusOr DeleteServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& request) override; future> DeleteServerTlsPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -178,13 +178,13 @@ class NetworkSecurityConnectionImpl request) override; StatusOr CreateClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& request) override; future> CreateClientTlsPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -193,13 +193,13 @@ class NetworkSecurityConnectionImpl request) override; StatusOr UpdateClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& request) override; future> UpdateClientTlsPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -208,13 +208,13 @@ class NetworkSecurityConnectionImpl request) override; StatusOr DeleteClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& request) override; future> DeleteClientTlsPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.cc b/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.cc index 4b16bd37cf356..68837d91116a6 100644 --- a/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.cc +++ b/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.cc @@ -71,29 +71,27 @@ NetworkSecurityTracingConnection::CreateAuthorizationPolicy( StatusOr NetworkSecurityTracingConnection::CreateAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::CreateAuthorizationPolicyRequest const& request) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::" "CreateAuthorizationPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateAuthorizationPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateAuthorizationPolicy(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> NetworkSecurityTracingConnection::CreateAuthorizationPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::" "CreateAuthorizationPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateAuthorizationPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateAuthorizationPolicy( + ExperimentalTag{}, operation)); } future> @@ -110,29 +108,27 @@ NetworkSecurityTracingConnection::UpdateAuthorizationPolicy( StatusOr NetworkSecurityTracingConnection::UpdateAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::UpdateAuthorizationPolicyRequest const& request) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::" "UpdateAuthorizationPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateAuthorizationPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateAuthorizationPolicy(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> NetworkSecurityTracingConnection::UpdateAuthorizationPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::" "UpdateAuthorizationPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateAuthorizationPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateAuthorizationPolicy( + ExperimentalTag{}, operation)); } future> @@ -149,29 +145,27 @@ NetworkSecurityTracingConnection::DeleteAuthorizationPolicy( StatusOr NetworkSecurityTracingConnection::DeleteAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::DeleteAuthorizationPolicyRequest const& request) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::" "DeleteAuthorizationPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteAuthorizationPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteAuthorizationPolicy(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> NetworkSecurityTracingConnection::DeleteAuthorizationPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::" "DeleteAuthorizationPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteAuthorizationPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteAuthorizationPolicy( + ExperimentalTag{}, operation)); } StreamRange @@ -209,27 +203,25 @@ NetworkSecurityTracingConnection::CreateServerTlsPolicy( StatusOr NetworkSecurityTracingConnection::CreateServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& request) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::CreateServerTlsPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateServerTlsPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateServerTlsPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkSecurityTracingConnection::CreateServerTlsPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::CreateServerTlsPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateServerTlsPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateServerTlsPolicy( + ExperimentalTag{}, operation)); } future> @@ -245,27 +237,25 @@ NetworkSecurityTracingConnection::UpdateServerTlsPolicy( StatusOr NetworkSecurityTracingConnection::UpdateServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& request) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::UpdateServerTlsPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateServerTlsPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateServerTlsPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkSecurityTracingConnection::UpdateServerTlsPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::UpdateServerTlsPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateServerTlsPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateServerTlsPolicy( + ExperimentalTag{}, operation)); } future> @@ -281,27 +271,25 @@ NetworkSecurityTracingConnection::DeleteServerTlsPolicy( StatusOr NetworkSecurityTracingConnection::DeleteServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& request) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::DeleteServerTlsPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteServerTlsPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteServerTlsPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkSecurityTracingConnection::DeleteServerTlsPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::DeleteServerTlsPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteServerTlsPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteServerTlsPolicy( + ExperimentalTag{}, operation)); } StreamRange @@ -339,27 +327,25 @@ NetworkSecurityTracingConnection::CreateClientTlsPolicy( StatusOr NetworkSecurityTracingConnection::CreateClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& request) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::CreateClientTlsPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateClientTlsPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateClientTlsPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkSecurityTracingConnection::CreateClientTlsPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::CreateClientTlsPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateClientTlsPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateClientTlsPolicy( + ExperimentalTag{}, operation)); } future> @@ -375,27 +361,25 @@ NetworkSecurityTracingConnection::UpdateClientTlsPolicy( StatusOr NetworkSecurityTracingConnection::UpdateClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& request) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::UpdateClientTlsPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateClientTlsPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateClientTlsPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkSecurityTracingConnection::UpdateClientTlsPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::UpdateClientTlsPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateClientTlsPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateClientTlsPolicy( + ExperimentalTag{}, operation)); } future> @@ -411,27 +395,25 @@ NetworkSecurityTracingConnection::DeleteClientTlsPolicy( StatusOr NetworkSecurityTracingConnection::DeleteClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& request) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::DeleteClientTlsPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteClientTlsPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteClientTlsPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkSecurityTracingConnection::DeleteClientTlsPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networksecurity_v1::NetworkSecurityConnection::DeleteClientTlsPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteClientTlsPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteClientTlsPolicy( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.h b/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.h index 844c0970eed57..155f3a0412ec8 100644 --- a/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.h +++ b/google/cloud/networksecurity/v1/internal/network_security_tracing_connection.h @@ -56,13 +56,13 @@ class NetworkSecurityTracingConnection CreateAuthorizationPolicyRequest const& request) override; StatusOr CreateAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1:: CreateAuthorizationPolicyRequest const& request) override; future> CreateAuthorizationPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -71,13 +71,13 @@ class NetworkSecurityTracingConnection UpdateAuthorizationPolicyRequest const& request) override; StatusOr UpdateAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1:: UpdateAuthorizationPolicyRequest const& request) override; future> UpdateAuthorizationPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -86,13 +86,13 @@ class NetworkSecurityTracingConnection DeleteAuthorizationPolicyRequest const& request) override; StatusOr DeleteAuthorizationPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1:: DeleteAuthorizationPolicyRequest const& request) override; future> DeleteAuthorizationPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -111,13 +111,13 @@ class NetworkSecurityTracingConnection request) override; StatusOr CreateServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& request) override; future> CreateServerTlsPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -126,13 +126,13 @@ class NetworkSecurityTracingConnection request) override; StatusOr UpdateServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& request) override; future> UpdateServerTlsPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -141,13 +141,13 @@ class NetworkSecurityTracingConnection request) override; StatusOr DeleteServerTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& request) override; future> DeleteServerTlsPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -166,13 +166,13 @@ class NetworkSecurityTracingConnection request) override; StatusOr CreateClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& request) override; future> CreateClientTlsPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -181,13 +181,13 @@ class NetworkSecurityTracingConnection request) override; StatusOr UpdateClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& request) override; future> UpdateClientTlsPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -196,13 +196,13 @@ class NetworkSecurityTracingConnection request) override; StatusOr DeleteClientTlsPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& request) override; future> DeleteClientTlsPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/networksecurity/v1/mocks/mock_network_security_connection.h b/google/cloud/networksecurity/v1/mocks/mock_network_security_connection.h index 20916a9bd7545..5a004bf76cd00 100644 --- a/google/cloud/networksecurity/v1/mocks/mock_network_security_connection.h +++ b/google/cloud/networksecurity/v1/mocks/mock_network_security_connection.h @@ -70,7 +70,7 @@ class MockNetworkSecurityConnection MOCK_METHOD(StatusOr, CreateAuthorizationPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1:: CreateAuthorizationPolicyRequest const& request), (override)); @@ -78,8 +78,7 @@ class MockNetworkSecurityConnection MOCK_METHOD( future>, CreateAuthorizationPolicy, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -91,7 +90,7 @@ class MockNetworkSecurityConnection MOCK_METHOD(StatusOr, UpdateAuthorizationPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1:: UpdateAuthorizationPolicyRequest const& request), (override)); @@ -99,8 +98,7 @@ class MockNetworkSecurityConnection MOCK_METHOD( future>, UpdateAuthorizationPolicy, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -112,7 +110,7 @@ class MockNetworkSecurityConnection MOCK_METHOD(StatusOr, DeleteAuthorizationPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1:: DeleteAuthorizationPolicyRequest const& request), (override)); @@ -120,8 +118,7 @@ class MockNetworkSecurityConnection MOCK_METHOD( future>, DeleteAuthorizationPolicy, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -147,7 +144,7 @@ class MockNetworkSecurityConnection MOCK_METHOD( StatusOr, CreateServerTlsPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& request), (override)); @@ -155,8 +152,7 @@ class MockNetworkSecurityConnection MOCK_METHOD( future>, CreateServerTlsPolicy, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -168,7 +164,7 @@ class MockNetworkSecurityConnection MOCK_METHOD( StatusOr, UpdateServerTlsPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& request), (override)); @@ -176,8 +172,7 @@ class MockNetworkSecurityConnection MOCK_METHOD( future>, UpdateServerTlsPolicy, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -189,7 +184,7 @@ class MockNetworkSecurityConnection MOCK_METHOD( StatusOr, DeleteServerTlsPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& request), (override)); @@ -197,8 +192,7 @@ class MockNetworkSecurityConnection MOCK_METHOD( future>, DeleteServerTlsPolicy, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -224,7 +218,7 @@ class MockNetworkSecurityConnection MOCK_METHOD( StatusOr, CreateClientTlsPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& request), (override)); @@ -232,8 +226,7 @@ class MockNetworkSecurityConnection MOCK_METHOD( future>, CreateClientTlsPolicy, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -245,7 +238,7 @@ class MockNetworkSecurityConnection MOCK_METHOD( StatusOr, UpdateClientTlsPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& request), (override)); @@ -253,8 +246,7 @@ class MockNetworkSecurityConnection MOCK_METHOD( future>, UpdateClientTlsPolicy, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -266,7 +258,7 @@ class MockNetworkSecurityConnection MOCK_METHOD( StatusOr, DeleteClientTlsPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& request), (override)); @@ -274,8 +266,7 @@ class MockNetworkSecurityConnection MOCK_METHOD( future>, DeleteClientTlsPolicy, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/networkservices/v1/internal/dep_connection_impl.cc b/google/cloud/networkservices/v1/internal/dep_connection_impl.cc index 1b90e1e7f94ce..a844afbfb987d 100644 --- a/google/cloud/networkservices/v1/internal/dep_connection_impl.cc +++ b/google/cloud/networkservices/v1/internal/dep_connection_impl.cc @@ -162,7 +162,7 @@ DepServiceConnectionImpl::CreateLbTrafficExtension( StatusOr DepServiceConnectionImpl::CreateLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateLbTrafficExtensionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -179,8 +179,7 @@ DepServiceConnectionImpl::CreateLbTrafficExtension( future> DepServiceConnectionImpl::CreateLbTrafficExtension( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DepServiceConnectionImpl::UpdateLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -275,8 +274,7 @@ DepServiceConnectionImpl::UpdateLbTrafficExtension( future> DepServiceConnectionImpl::UpdateLbTrafficExtension( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DepServiceConnectionImpl::DeleteLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -371,8 +369,7 @@ DepServiceConnectionImpl::DeleteLbTrafficExtension( future> DepServiceConnectionImpl::DeleteLbTrafficExtension( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DepServiceConnectionImpl::CreateLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -519,8 +516,7 @@ DepServiceConnectionImpl::CreateLbRouteExtension( future> DepServiceConnectionImpl::CreateLbRouteExtension( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DepServiceConnectionImpl::UpdateLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -615,8 +611,7 @@ DepServiceConnectionImpl::UpdateLbRouteExtension( future> DepServiceConnectionImpl::UpdateLbRouteExtension( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DepServiceConnectionImpl::DeleteLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -711,8 +706,7 @@ DepServiceConnectionImpl::DeleteLbRouteExtension( future> DepServiceConnectionImpl::DeleteLbRouteExtension( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateLbTrafficExtensionRequest const& request) override; future> CreateLbTrafficExtension( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -83,13 +83,13 @@ class DepServiceConnectionImpl request) override; StatusOr UpdateLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& request) override; future> UpdateLbTrafficExtension( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -98,13 +98,13 @@ class DepServiceConnectionImpl request) override; StatusOr DeleteLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& request) override; future> DeleteLbTrafficExtension( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -123,13 +123,13 @@ class DepServiceConnectionImpl request) override; StatusOr CreateLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& request) override; future> CreateLbRouteExtension( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -138,13 +138,13 @@ class DepServiceConnectionImpl request) override; StatusOr UpdateLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& request) override; future> UpdateLbRouteExtension( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -153,13 +153,13 @@ class DepServiceConnectionImpl request) override; StatusOr DeleteLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& request) override; future> DeleteLbRouteExtension( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/networkservices/v1/internal/dep_tracing_connection.cc b/google/cloud/networkservices/v1/internal/dep_tracing_connection.cc index db98c3f13cfb5..9d001abec094c 100644 --- a/google/cloud/networkservices/v1/internal/dep_tracing_connection.cc +++ b/google/cloud/networkservices/v1/internal/dep_tracing_connection.cc @@ -69,27 +69,25 @@ DepServiceTracingConnection::CreateLbTrafficExtension( StatusOr DepServiceTracingConnection::CreateLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateLbTrafficExtensionRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::CreateLbTrafficExtension"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateLbTrafficExtension( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateLbTrafficExtension(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DepServiceTracingConnection::CreateLbTrafficExtension( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::CreateLbTrafficExtension"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateLbTrafficExtension( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateLbTrafficExtension( + ExperimentalTag{}, operation)); } future> @@ -105,27 +103,25 @@ DepServiceTracingConnection::UpdateLbTrafficExtension( StatusOr DepServiceTracingConnection::UpdateLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::UpdateLbTrafficExtension"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateLbTrafficExtension( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateLbTrafficExtension(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DepServiceTracingConnection::UpdateLbTrafficExtension( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::UpdateLbTrafficExtension"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateLbTrafficExtension( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateLbTrafficExtension( + ExperimentalTag{}, operation)); } future> @@ -141,27 +137,25 @@ DepServiceTracingConnection::DeleteLbTrafficExtension( StatusOr DepServiceTracingConnection::DeleteLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::DeleteLbTrafficExtension"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteLbTrafficExtension( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteLbTrafficExtension(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> DepServiceTracingConnection::DeleteLbTrafficExtension( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::DeleteLbTrafficExtension"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteLbTrafficExtension( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteLbTrafficExtension( + ExperimentalTag{}, operation)); } StreamRange @@ -199,27 +193,25 @@ DepServiceTracingConnection::CreateLbRouteExtension( StatusOr DepServiceTracingConnection::CreateLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::CreateLbRouteExtension"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateLbRouteExtension( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateLbRouteExtension(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DepServiceTracingConnection::CreateLbRouteExtension( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::CreateLbRouteExtension"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateLbRouteExtension( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateLbRouteExtension( + ExperimentalTag{}, operation)); } future> @@ -235,27 +227,25 @@ DepServiceTracingConnection::UpdateLbRouteExtension( StatusOr DepServiceTracingConnection::UpdateLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::UpdateLbRouteExtension"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateLbRouteExtension( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateLbRouteExtension(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DepServiceTracingConnection::UpdateLbRouteExtension( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::UpdateLbRouteExtension"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateLbRouteExtension( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateLbRouteExtension( + ExperimentalTag{}, operation)); } future> @@ -271,27 +261,25 @@ DepServiceTracingConnection::DeleteLbRouteExtension( StatusOr DepServiceTracingConnection::DeleteLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::DeleteLbRouteExtension"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteLbRouteExtension( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteLbRouteExtension(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DepServiceTracingConnection::DeleteLbRouteExtension( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::DepServiceConnection::DeleteLbRouteExtension"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteLbRouteExtension( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteLbRouteExtension( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/networkservices/v1/internal/dep_tracing_connection.h b/google/cloud/networkservices/v1/internal/dep_tracing_connection.h index d975c4d6dddf7..f5df26c859796 100644 --- a/google/cloud/networkservices/v1/internal/dep_tracing_connection.h +++ b/google/cloud/networkservices/v1/internal/dep_tracing_connection.h @@ -56,13 +56,13 @@ class DepServiceTracingConnection request) override; StatusOr CreateLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateLbTrafficExtensionRequest const& request) override; future> CreateLbTrafficExtension( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -71,13 +71,13 @@ class DepServiceTracingConnection request) override; StatusOr UpdateLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& request) override; future> UpdateLbTrafficExtension( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -86,13 +86,13 @@ class DepServiceTracingConnection request) override; StatusOr DeleteLbTrafficExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& request) override; future> DeleteLbTrafficExtension( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -111,13 +111,13 @@ class DepServiceTracingConnection request) override; StatusOr CreateLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& request) override; future> CreateLbRouteExtension( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -126,13 +126,13 @@ class DepServiceTracingConnection request) override; StatusOr UpdateLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& request) override; future> UpdateLbRouteExtension( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -141,13 +141,13 @@ class DepServiceTracingConnection request) override; StatusOr DeleteLbRouteExtension( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& request) override; future> DeleteLbRouteExtension( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/networkservices/v1/internal/network_services_connection_impl.cc b/google/cloud/networkservices/v1/internal/network_services_connection_impl.cc index f6f18e14e0294..760e18b06810e 100644 --- a/google/cloud/networkservices/v1/internal/network_services_connection_impl.cc +++ b/google/cloud/networkservices/v1/internal/network_services_connection_impl.cc @@ -163,7 +163,7 @@ NetworkServicesConnectionImpl::CreateEndpointPolicy( StatusOr NetworkServicesConnectionImpl::CreateEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -181,8 +181,7 @@ NetworkServicesConnectionImpl::CreateEndpointPolicy( future> NetworkServicesConnectionImpl::CreateEndpointPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::UpdateEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -279,8 +278,7 @@ NetworkServicesConnectionImpl::UpdateEndpointPolicy( future> NetworkServicesConnectionImpl::UpdateEndpointPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::DeleteEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -377,8 +375,7 @@ NetworkServicesConnectionImpl::DeleteEndpointPolicy( future> NetworkServicesConnectionImpl::DeleteEndpointPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::CreateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -522,8 +519,7 @@ NetworkServicesConnectionImpl::CreateGateway( future> NetworkServicesConnectionImpl::CreateGateway( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::UpdateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -617,8 +613,7 @@ NetworkServicesConnectionImpl::UpdateGateway( future> NetworkServicesConnectionImpl::UpdateGateway( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::DeleteGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -712,8 +707,7 @@ NetworkServicesConnectionImpl::DeleteGateway( future> NetworkServicesConnectionImpl::DeleteGateway( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::CreateGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateGrpcRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -857,8 +851,7 @@ NetworkServicesConnectionImpl::CreateGrpcRoute( future> NetworkServicesConnectionImpl::CreateGrpcRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::UpdateGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -952,8 +945,7 @@ NetworkServicesConnectionImpl::UpdateGrpcRoute( future> NetworkServicesConnectionImpl::UpdateGrpcRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::DeleteGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1047,8 +1039,7 @@ NetworkServicesConnectionImpl::DeleteGrpcRoute( future> NetworkServicesConnectionImpl::DeleteGrpcRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::CreateHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateHttpRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1192,8 +1183,7 @@ NetworkServicesConnectionImpl::CreateHttpRoute( future> NetworkServicesConnectionImpl::CreateHttpRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::UpdateHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1287,8 +1277,7 @@ NetworkServicesConnectionImpl::UpdateHttpRoute( future> NetworkServicesConnectionImpl::UpdateHttpRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::DeleteHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1382,8 +1371,7 @@ NetworkServicesConnectionImpl::DeleteHttpRoute( future> NetworkServicesConnectionImpl::DeleteHttpRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::CreateTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateTcpRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1527,8 +1515,7 @@ NetworkServicesConnectionImpl::CreateTcpRoute( future> NetworkServicesConnectionImpl::CreateTcpRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::UpdateTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1622,8 +1609,7 @@ NetworkServicesConnectionImpl::UpdateTcpRoute( future> NetworkServicesConnectionImpl::UpdateTcpRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::DeleteTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1717,8 +1703,7 @@ NetworkServicesConnectionImpl::DeleteTcpRoute( future> NetworkServicesConnectionImpl::DeleteTcpRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::CreateTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateTlsRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1862,8 +1847,7 @@ NetworkServicesConnectionImpl::CreateTlsRoute( future> NetworkServicesConnectionImpl::CreateTlsRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::UpdateTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1957,8 +1941,7 @@ NetworkServicesConnectionImpl::UpdateTlsRoute( future> NetworkServicesConnectionImpl::UpdateTlsRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::DeleteTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2052,8 +2035,7 @@ NetworkServicesConnectionImpl::DeleteTlsRoute( future> NetworkServicesConnectionImpl::DeleteTlsRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::CreateServiceBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateServiceBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2201,8 +2183,7 @@ NetworkServicesConnectionImpl::CreateServiceBinding( future> NetworkServicesConnectionImpl::CreateServiceBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::DeleteServiceBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteServiceBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2299,8 +2280,7 @@ NetworkServicesConnectionImpl::DeleteServiceBinding( future> NetworkServicesConnectionImpl::DeleteServiceBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::CreateMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateMeshRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2443,8 +2423,7 @@ NetworkServicesConnectionImpl::CreateMesh( future> NetworkServicesConnectionImpl::CreateMesh( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::UpdateMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateMeshRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2538,8 +2517,7 @@ NetworkServicesConnectionImpl::UpdateMesh( future> NetworkServicesConnectionImpl::UpdateMesh( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is NetworkServicesConnectionImpl::DeleteMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteMeshRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2633,8 +2611,7 @@ NetworkServicesConnectionImpl::DeleteMesh( future> NetworkServicesConnectionImpl::DeleteMesh( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& request) override; future> CreateEndpointPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -83,13 +83,13 @@ class NetworkServicesConnectionImpl request) override; StatusOr UpdateEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& request) override; future> UpdateEndpointPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -98,13 +98,13 @@ class NetworkServicesConnectionImpl request) override; StatusOr DeleteEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& request) override; future> DeleteEndpointPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListGateways( @@ -119,12 +119,12 @@ class NetworkServicesConnectionImpl override; StatusOr CreateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateGatewayRequest const& request) override; future> CreateGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateGateway( @@ -132,12 +132,12 @@ class NetworkServicesConnectionImpl override; StatusOr UpdateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateGatewayRequest const& request) override; future> UpdateGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -145,12 +145,12 @@ class NetworkServicesConnectionImpl request) override; StatusOr DeleteGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteGatewayRequest const& request) override; future> - DeleteGateway(google::cloud::ExperimentalTag, + DeleteGateway(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListGrpcRoutes( @@ -167,12 +167,12 @@ class NetworkServicesConnectionImpl override; StatusOr CreateGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateGrpcRouteRequest const& request) override; future> - CreateGrpcRoute(google::cloud::ExperimentalTag, + CreateGrpcRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -181,12 +181,12 @@ class NetworkServicesConnectionImpl override; StatusOr UpdateGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request) override; future> - UpdateGrpcRoute(google::cloud::ExperimentalTag, + UpdateGrpcRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -195,12 +195,12 @@ class NetworkServicesConnectionImpl override; StatusOr DeleteGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request) override; future> - DeleteGrpcRoute(google::cloud::ExperimentalTag, + DeleteGrpcRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListHttpRoutes( @@ -217,12 +217,12 @@ class NetworkServicesConnectionImpl override; StatusOr CreateHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateHttpRouteRequest const& request) override; future> - CreateHttpRoute(google::cloud::ExperimentalTag, + CreateHttpRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -231,12 +231,12 @@ class NetworkServicesConnectionImpl override; StatusOr UpdateHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request) override; future> - UpdateHttpRoute(google::cloud::ExperimentalTag, + UpdateHttpRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -245,12 +245,12 @@ class NetworkServicesConnectionImpl override; StatusOr DeleteHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request) override; future> - DeleteHttpRoute(google::cloud::ExperimentalTag, + DeleteHttpRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTcpRoutes( @@ -266,12 +266,12 @@ class NetworkServicesConnectionImpl override; StatusOr CreateTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateTcpRouteRequest const& request) override; future> CreateTcpRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateTcpRoute( @@ -279,12 +279,12 @@ class NetworkServicesConnectionImpl override; StatusOr UpdateTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request) override; future> UpdateTcpRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -293,12 +293,12 @@ class NetworkServicesConnectionImpl override; StatusOr DeleteTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request) override; future> - DeleteTcpRoute(google::cloud::ExperimentalTag, + DeleteTcpRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTlsRoutes( @@ -314,12 +314,12 @@ class NetworkServicesConnectionImpl override; StatusOr CreateTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateTlsRouteRequest const& request) override; future> CreateTlsRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateTlsRoute( @@ -327,12 +327,12 @@ class NetworkServicesConnectionImpl override; StatusOr UpdateTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request) override; future> UpdateTlsRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -341,12 +341,12 @@ class NetworkServicesConnectionImpl override; StatusOr DeleteTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request) override; future> - DeleteTlsRoute(google::cloud::ExperimentalTag, + DeleteTlsRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -365,13 +365,13 @@ class NetworkServicesConnectionImpl request) override; StatusOr CreateServiceBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateServiceBindingRequest const& request) override; future> CreateServiceBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -380,13 +380,13 @@ class NetworkServicesConnectionImpl request) override; StatusOr DeleteServiceBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteServiceBindingRequest const& request) override; future> DeleteServiceBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListMeshes( @@ -401,12 +401,12 @@ class NetworkServicesConnectionImpl override; StatusOr CreateMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::CreateMeshRequest const& request) override; future> CreateMesh( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateMesh( @@ -414,12 +414,12 @@ class NetworkServicesConnectionImpl override; StatusOr UpdateMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::UpdateMeshRequest const& request) override; future> UpdateMesh( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -427,12 +427,12 @@ class NetworkServicesConnectionImpl request) override; StatusOr DeleteMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::networkservices::v1::DeleteMeshRequest const& request) override; future> - DeleteMesh(google::cloud::ExperimentalTag, + DeleteMesh(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/networkservices/v1/internal/network_services_tracing_connection.cc b/google/cloud/networkservices/v1/internal/network_services_tracing_connection.cc index 43a126d1206b2..c6ce8efefc5d8 100644 --- a/google/cloud/networkservices/v1/internal/network_services_tracing_connection.cc +++ b/google/cloud/networkservices/v1/internal/network_services_tracing_connection.cc @@ -68,27 +68,25 @@ NetworkServicesTracingConnection::CreateEndpointPolicy( StatusOr NetworkServicesTracingConnection::CreateEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateEndpointPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateEndpointPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateEndpointPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::CreateEndpointPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateEndpointPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateEndpointPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateEndpointPolicy( + ExperimentalTag{}, operation)); } future> @@ -104,27 +102,25 @@ NetworkServicesTracingConnection::UpdateEndpointPolicy( StatusOr NetworkServicesTracingConnection::UpdateEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateEndpointPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateEndpointPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateEndpointPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::UpdateEndpointPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateEndpointPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateEndpointPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateEndpointPolicy( + ExperimentalTag{}, operation)); } future> @@ -140,27 +136,25 @@ NetworkServicesTracingConnection::DeleteEndpointPolicy( StatusOr NetworkServicesTracingConnection::DeleteEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteEndpointPolicy"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteEndpointPolicy( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteEndpointPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::DeleteEndpointPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteEndpointPolicy"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteEndpointPolicy( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteEndpointPolicy( + ExperimentalTag{}, operation)); } StreamRange @@ -195,26 +189,23 @@ NetworkServicesTracingConnection::CreateGateway( StatusOr NetworkServicesTracingConnection::CreateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateGatewayRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateGateway"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateGateway(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateGateway(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::CreateGateway( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateGateway"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateGateway(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateGateway(ExperimentalTag{}, operation)); } future> @@ -228,26 +219,23 @@ NetworkServicesTracingConnection::UpdateGateway( StatusOr NetworkServicesTracingConnection::UpdateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateGatewayRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateGateway"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateGateway(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateGateway(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::UpdateGateway( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateGateway"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateGateway(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateGateway(ExperimentalTag{}, operation)); } future> @@ -261,26 +249,23 @@ NetworkServicesTracingConnection::DeleteGateway( StatusOr NetworkServicesTracingConnection::DeleteGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteGatewayRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteGateway"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteGateway(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteGateway(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::DeleteGateway( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteGateway"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteGateway(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteGateway(ExperimentalTag{}, operation)); } StreamRange @@ -315,26 +300,23 @@ NetworkServicesTracingConnection::CreateGrpcRoute( StatusOr NetworkServicesTracingConnection::CreateGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateGrpcRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateGrpcRoute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateGrpcRoute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateGrpcRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::CreateGrpcRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateGrpcRoute"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateGrpcRoute(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateGrpcRoute(ExperimentalTag{}, operation)); } future> @@ -348,26 +330,23 @@ NetworkServicesTracingConnection::UpdateGrpcRoute( StatusOr NetworkServicesTracingConnection::UpdateGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateGrpcRoute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateGrpcRoute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateGrpcRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::UpdateGrpcRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateGrpcRoute"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateGrpcRoute(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateGrpcRoute(ExperimentalTag{}, operation)); } future> @@ -381,26 +360,23 @@ NetworkServicesTracingConnection::DeleteGrpcRoute( StatusOr NetworkServicesTracingConnection::DeleteGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteGrpcRoute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteGrpcRoute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteGrpcRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::DeleteGrpcRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteGrpcRoute"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteGrpcRoute(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteGrpcRoute(ExperimentalTag{}, operation)); } StreamRange @@ -435,26 +411,23 @@ NetworkServicesTracingConnection::CreateHttpRoute( StatusOr NetworkServicesTracingConnection::CreateHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateHttpRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateHttpRoute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateHttpRoute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateHttpRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::CreateHttpRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateHttpRoute"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateHttpRoute(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateHttpRoute(ExperimentalTag{}, operation)); } future> @@ -468,26 +441,23 @@ NetworkServicesTracingConnection::UpdateHttpRoute( StatusOr NetworkServicesTracingConnection::UpdateHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateHttpRoute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateHttpRoute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateHttpRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::UpdateHttpRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateHttpRoute"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateHttpRoute(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateHttpRoute(ExperimentalTag{}, operation)); } future> @@ -501,26 +471,23 @@ NetworkServicesTracingConnection::DeleteHttpRoute( StatusOr NetworkServicesTracingConnection::DeleteHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteHttpRoute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteHttpRoute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteHttpRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::DeleteHttpRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteHttpRoute"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteHttpRoute(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteHttpRoute(ExperimentalTag{}, operation)); } StreamRange @@ -555,26 +522,23 @@ NetworkServicesTracingConnection::CreateTcpRoute( StatusOr NetworkServicesTracingConnection::CreateTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateTcpRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateTcpRoute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateTcpRoute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateTcpRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::CreateTcpRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateTcpRoute"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateTcpRoute(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateTcpRoute(ExperimentalTag{}, operation)); } future> @@ -588,26 +552,23 @@ NetworkServicesTracingConnection::UpdateTcpRoute( StatusOr NetworkServicesTracingConnection::UpdateTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateTcpRoute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateTcpRoute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateTcpRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::UpdateTcpRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateTcpRoute"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateTcpRoute(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateTcpRoute(ExperimentalTag{}, operation)); } future> @@ -621,26 +582,23 @@ NetworkServicesTracingConnection::DeleteTcpRoute( StatusOr NetworkServicesTracingConnection::DeleteTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteTcpRoute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteTcpRoute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteTcpRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::DeleteTcpRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteTcpRoute"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteTcpRoute(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteTcpRoute(ExperimentalTag{}, operation)); } StreamRange @@ -675,26 +633,23 @@ NetworkServicesTracingConnection::CreateTlsRoute( StatusOr NetworkServicesTracingConnection::CreateTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateTlsRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateTlsRoute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateTlsRoute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateTlsRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::CreateTlsRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateTlsRoute"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateTlsRoute(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateTlsRoute(ExperimentalTag{}, operation)); } future> @@ -708,26 +663,23 @@ NetworkServicesTracingConnection::UpdateTlsRoute( StatusOr NetworkServicesTracingConnection::UpdateTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateTlsRoute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateTlsRoute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateTlsRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::UpdateTlsRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateTlsRoute"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateTlsRoute(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateTlsRoute(ExperimentalTag{}, operation)); } future> @@ -741,26 +693,23 @@ NetworkServicesTracingConnection::DeleteTlsRoute( StatusOr NetworkServicesTracingConnection::DeleteTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteTlsRoute"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteTlsRoute(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteTlsRoute(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::DeleteTlsRoute( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteTlsRoute"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteTlsRoute(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteTlsRoute(ExperimentalTag{}, operation)); } StreamRange @@ -798,27 +747,25 @@ NetworkServicesTracingConnection::CreateServiceBinding( StatusOr NetworkServicesTracingConnection::CreateServiceBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateServiceBindingRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateServiceBinding"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateServiceBinding( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateServiceBinding(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::CreateServiceBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateServiceBinding"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateServiceBinding( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateServiceBinding( + ExperimentalTag{}, operation)); } future> @@ -834,27 +781,25 @@ NetworkServicesTracingConnection::DeleteServiceBinding( StatusOr NetworkServicesTracingConnection::DeleteServiceBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteServiceBindingRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteServiceBinding"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteServiceBinding( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteServiceBinding(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::DeleteServiceBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteServiceBinding"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteServiceBinding( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteServiceBinding( + ExperimentalTag{}, operation)); } StreamRange @@ -888,26 +833,23 @@ NetworkServicesTracingConnection::CreateMesh( StatusOr NetworkServicesTracingConnection::CreateMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateMeshRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateMesh"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateMesh(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateMesh(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::CreateMesh( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::CreateMesh"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateMesh(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateMesh(ExperimentalTag{}, operation)); } future> @@ -921,26 +863,23 @@ NetworkServicesTracingConnection::UpdateMesh( StatusOr NetworkServicesTracingConnection::UpdateMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateMeshRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateMesh"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateMesh(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateMesh(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::UpdateMesh( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::UpdateMesh"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateMesh(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateMesh(ExperimentalTag{}, operation)); } future> @@ -954,26 +893,23 @@ NetworkServicesTracingConnection::DeleteMesh( StatusOr NetworkServicesTracingConnection::DeleteMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteMeshRequest const& request) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteMesh"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteMesh(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteMesh(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NetworkServicesTracingConnection::DeleteMesh( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "networkservices_v1::NetworkServicesConnection::DeleteMesh"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteMesh(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteMesh(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/networkservices/v1/internal/network_services_tracing_connection.h b/google/cloud/networkservices/v1/internal/network_services_tracing_connection.h index d443948794a12..c20bcd3a5b587 100644 --- a/google/cloud/networkservices/v1/internal/network_services_tracing_connection.h +++ b/google/cloud/networkservices/v1/internal/network_services_tracing_connection.h @@ -56,13 +56,13 @@ class NetworkServicesTracingConnection request) override; StatusOr CreateEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& request) override; future> CreateEndpointPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -71,13 +71,13 @@ class NetworkServicesTracingConnection request) override; StatusOr UpdateEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& request) override; future> UpdateEndpointPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -86,13 +86,13 @@ class NetworkServicesTracingConnection request) override; StatusOr DeleteEndpointPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& request) override; future> DeleteEndpointPolicy( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListGateways( @@ -107,12 +107,12 @@ class NetworkServicesTracingConnection override; StatusOr CreateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateGatewayRequest const& request) override; future> CreateGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateGateway( @@ -120,12 +120,12 @@ class NetworkServicesTracingConnection override; StatusOr UpdateGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateGatewayRequest const& request) override; future> UpdateGateway( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -133,12 +133,12 @@ class NetworkServicesTracingConnection request) override; StatusOr DeleteGateway( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteGatewayRequest const& request) override; future> - DeleteGateway(google::cloud::ExperimentalTag, + DeleteGateway(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListGrpcRoutes( @@ -155,12 +155,12 @@ class NetworkServicesTracingConnection override; StatusOr CreateGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateGrpcRouteRequest const& request) override; future> - CreateGrpcRoute(google::cloud::ExperimentalTag, + CreateGrpcRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -169,12 +169,12 @@ class NetworkServicesTracingConnection override; StatusOr UpdateGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request) override; future> - UpdateGrpcRoute(google::cloud::ExperimentalTag, + UpdateGrpcRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -183,12 +183,12 @@ class NetworkServicesTracingConnection override; StatusOr DeleteGrpcRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request) override; future> - DeleteGrpcRoute(google::cloud::ExperimentalTag, + DeleteGrpcRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListHttpRoutes( @@ -205,12 +205,12 @@ class NetworkServicesTracingConnection override; StatusOr CreateHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateHttpRouteRequest const& request) override; future> - CreateHttpRoute(google::cloud::ExperimentalTag, + CreateHttpRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -219,12 +219,12 @@ class NetworkServicesTracingConnection override; StatusOr UpdateHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request) override; future> - UpdateHttpRoute(google::cloud::ExperimentalTag, + UpdateHttpRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -233,12 +233,12 @@ class NetworkServicesTracingConnection override; StatusOr DeleteHttpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request) override; future> - DeleteHttpRoute(google::cloud::ExperimentalTag, + DeleteHttpRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTcpRoutes( @@ -254,12 +254,12 @@ class NetworkServicesTracingConnection override; StatusOr CreateTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateTcpRouteRequest const& request) override; future> CreateTcpRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateTcpRoute( @@ -267,12 +267,12 @@ class NetworkServicesTracingConnection override; StatusOr UpdateTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request) override; future> UpdateTcpRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -281,12 +281,12 @@ class NetworkServicesTracingConnection override; StatusOr DeleteTcpRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request) override; future> - DeleteTcpRoute(google::cloud::ExperimentalTag, + DeleteTcpRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTlsRoutes( @@ -302,12 +302,12 @@ class NetworkServicesTracingConnection override; StatusOr CreateTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateTlsRouteRequest const& request) override; future> CreateTlsRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateTlsRoute( @@ -315,12 +315,12 @@ class NetworkServicesTracingConnection override; StatusOr UpdateTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request) override; future> UpdateTlsRoute( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -329,12 +329,12 @@ class NetworkServicesTracingConnection override; StatusOr DeleteTlsRoute( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request) override; future> - DeleteTlsRoute(google::cloud::ExperimentalTag, + DeleteTlsRoute(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -353,13 +353,13 @@ class NetworkServicesTracingConnection request) override; StatusOr CreateServiceBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateServiceBindingRequest const& request) override; future> CreateServiceBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -368,13 +368,13 @@ class NetworkServicesTracingConnection request) override; StatusOr DeleteServiceBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteServiceBindingRequest const& request) override; future> DeleteServiceBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListMeshes( @@ -389,12 +389,12 @@ class NetworkServicesTracingConnection override; StatusOr CreateMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateMeshRequest const& request) override; future> CreateMesh( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateMesh( @@ -402,12 +402,12 @@ class NetworkServicesTracingConnection override; StatusOr UpdateMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateMeshRequest const& request) override; future> UpdateMesh( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -415,12 +415,12 @@ class NetworkServicesTracingConnection request) override; StatusOr DeleteMesh( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteMeshRequest const& request) override; future> - DeleteMesh(google::cloud::ExperimentalTag, + DeleteMesh(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/networkservices/v1/mocks/mock_dep_connection.h b/google/cloud/networkservices/v1/mocks/mock_dep_connection.h index 3db9a09ffd03e..ba2ddf588220f 100644 --- a/google/cloud/networkservices/v1/mocks/mock_dep_connection.h +++ b/google/cloud/networkservices/v1/mocks/mock_dep_connection.h @@ -70,7 +70,7 @@ class MockDepServiceConnection MOCK_METHOD(StatusOr, CreateLbTrafficExtension, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1:: CreateLbTrafficExtensionRequest const& request), (override)); @@ -78,8 +78,7 @@ class MockDepServiceConnection MOCK_METHOD( future>, CreateLbTrafficExtension, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -91,7 +90,7 @@ class MockDepServiceConnection MOCK_METHOD(StatusOr, UpdateLbTrafficExtension, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1:: UpdateLbTrafficExtensionRequest const& request), (override)); @@ -99,8 +98,7 @@ class MockDepServiceConnection MOCK_METHOD( future>, UpdateLbTrafficExtension, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -112,7 +110,7 @@ class MockDepServiceConnection MOCK_METHOD(StatusOr, DeleteLbTrafficExtension, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1:: DeleteLbTrafficExtensionRequest const& request), (override)); @@ -120,8 +118,7 @@ class MockDepServiceConnection MOCK_METHOD( future>, DeleteLbTrafficExtension, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -147,7 +144,7 @@ class MockDepServiceConnection MOCK_METHOD( StatusOr, CreateLbRouteExtension, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& request), (override)); @@ -155,8 +152,7 @@ class MockDepServiceConnection MOCK_METHOD( future>, CreateLbRouteExtension, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -168,7 +164,7 @@ class MockDepServiceConnection MOCK_METHOD( StatusOr, UpdateLbRouteExtension, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& request), (override)); @@ -176,8 +172,7 @@ class MockDepServiceConnection MOCK_METHOD( future>, UpdateLbRouteExtension, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -189,7 +184,7 @@ class MockDepServiceConnection MOCK_METHOD( StatusOr, DeleteLbRouteExtension, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& request), (override)); @@ -197,8 +192,7 @@ class MockDepServiceConnection MOCK_METHOD( future>, DeleteLbRouteExtension, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/networkservices/v1/mocks/mock_network_services_connection.h b/google/cloud/networkservices/v1/mocks/mock_network_services_connection.h index 2c7cf0fccd7fe..a88c6d72ce89a 100644 --- a/google/cloud/networkservices/v1/mocks/mock_network_services_connection.h +++ b/google/cloud/networkservices/v1/mocks/mock_network_services_connection.h @@ -69,7 +69,7 @@ class MockNetworkServicesConnection MOCK_METHOD( StatusOr, CreateEndpointPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& request), (override)); @@ -77,8 +77,7 @@ class MockNetworkServicesConnection MOCK_METHOD( future>, CreateEndpointPolicy, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -90,7 +89,7 @@ class MockNetworkServicesConnection MOCK_METHOD( StatusOr, UpdateEndpointPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& request), (override)); @@ -98,8 +97,7 @@ class MockNetworkServicesConnection MOCK_METHOD( future>, UpdateEndpointPolicy, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -111,7 +109,7 @@ class MockNetworkServicesConnection MOCK_METHOD( StatusOr, DeleteEndpointPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& request), (override)); @@ -119,8 +117,7 @@ class MockNetworkServicesConnection MOCK_METHOD( future>, DeleteEndpointPolicy, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), @@ -141,13 +138,13 @@ class MockNetworkServicesConnection MOCK_METHOD( StatusOr, CreateGateway, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateGatewayRequest const& request), (override)); MOCK_METHOD(future>, CreateGateway, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -159,13 +156,13 @@ class MockNetworkServicesConnection MOCK_METHOD( StatusOr, UpdateGateway, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateGatewayRequest const& request), (override)); MOCK_METHOD(future>, UpdateGateway, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -177,15 +174,14 @@ class MockNetworkServicesConnection MOCK_METHOD( StatusOr, DeleteGateway, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteGatewayRequest const& request), (override)); MOCK_METHOD( future>, DeleteGateway, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -206,14 +202,14 @@ class MockNetworkServicesConnection (override)); MOCK_METHOD(StatusOr, CreateGrpcRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateGrpcRouteRequest const& request), (override)); MOCK_METHOD(future>, CreateGrpcRoute, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -224,14 +220,14 @@ class MockNetworkServicesConnection (override)); MOCK_METHOD(StatusOr, UpdateGrpcRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request), (override)); MOCK_METHOD(future>, UpdateGrpcRoute, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -243,7 +239,7 @@ class MockNetworkServicesConnection (override)); MOCK_METHOD(StatusOr, DeleteGrpcRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request), (override)); @@ -251,8 +247,7 @@ class MockNetworkServicesConnection MOCK_METHOD( future>, DeleteGrpcRoute, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -273,14 +268,14 @@ class MockNetworkServicesConnection (override)); MOCK_METHOD(StatusOr, CreateHttpRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateHttpRouteRequest const& request), (override)); MOCK_METHOD(future>, CreateHttpRoute, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -291,14 +286,14 @@ class MockNetworkServicesConnection (override)); MOCK_METHOD(StatusOr, UpdateHttpRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request), (override)); MOCK_METHOD(future>, UpdateHttpRoute, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -310,7 +305,7 @@ class MockNetworkServicesConnection (override)); MOCK_METHOD(StatusOr, DeleteHttpRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request), (override)); @@ -318,8 +313,7 @@ class MockNetworkServicesConnection MOCK_METHOD( future>, DeleteHttpRoute, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -340,14 +334,14 @@ class MockNetworkServicesConnection (override)); MOCK_METHOD(StatusOr, CreateTcpRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateTcpRouteRequest const& request), (override)); MOCK_METHOD(future>, CreateTcpRoute, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -358,14 +352,14 @@ class MockNetworkServicesConnection (override)); MOCK_METHOD(StatusOr, UpdateTcpRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request), (override)); MOCK_METHOD(future>, UpdateTcpRoute, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -377,7 +371,7 @@ class MockNetworkServicesConnection (override)); MOCK_METHOD(StatusOr, DeleteTcpRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request), (override)); @@ -385,8 +379,7 @@ class MockNetworkServicesConnection MOCK_METHOD( future>, DeleteTcpRoute, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -407,14 +400,14 @@ class MockNetworkServicesConnection (override)); MOCK_METHOD(StatusOr, CreateTlsRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateTlsRouteRequest const& request), (override)); MOCK_METHOD(future>, CreateTlsRoute, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -425,14 +418,14 @@ class MockNetworkServicesConnection (override)); MOCK_METHOD(StatusOr, UpdateTlsRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request), (override)); MOCK_METHOD(future>, UpdateTlsRoute, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -444,7 +437,7 @@ class MockNetworkServicesConnection (override)); MOCK_METHOD(StatusOr, DeleteTlsRoute, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request), (override)); @@ -452,8 +445,7 @@ class MockNetworkServicesConnection MOCK_METHOD( future>, DeleteTlsRoute, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -478,7 +470,7 @@ class MockNetworkServicesConnection MOCK_METHOD( StatusOr, CreateServiceBinding, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateServiceBindingRequest const& request), (override)); @@ -486,8 +478,7 @@ class MockNetworkServicesConnection MOCK_METHOD( future>, CreateServiceBinding, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -499,7 +490,7 @@ class MockNetworkServicesConnection MOCK_METHOD( StatusOr, DeleteServiceBinding, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteServiceBindingRequest const& request), (override)); @@ -507,8 +498,7 @@ class MockNetworkServicesConnection MOCK_METHOD( future>, DeleteServiceBinding, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), @@ -528,13 +518,13 @@ class MockNetworkServicesConnection MOCK_METHOD( StatusOr, CreateMesh, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateMeshRequest const& request), (override)); MOCK_METHOD(future>, CreateMesh, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -545,13 +535,13 @@ class MockNetworkServicesConnection MOCK_METHOD( StatusOr, UpdateMesh, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateMeshRequest const& request), (override)); MOCK_METHOD(future>, UpdateMesh, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -563,15 +553,14 @@ class MockNetworkServicesConnection MOCK_METHOD( StatusOr, DeleteMesh, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteMeshRequest const& request), (override)); MOCK_METHOD( future>, DeleteMesh, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.cc b/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.cc index 0247310d414f4..c283b55645058 100644 --- a/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.cc +++ b/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.cc @@ -157,7 +157,7 @@ ManagedNotebookServiceConnectionImpl::CreateRuntime( StatusOr ManagedNotebookServiceConnectionImpl::CreateRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::CreateRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -173,8 +173,7 @@ ManagedNotebookServiceConnectionImpl::CreateRuntime( future> ManagedNotebookServiceConnectionImpl::CreateRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -249,7 +248,7 @@ ManagedNotebookServiceConnectionImpl::UpdateRuntime( StatusOr ManagedNotebookServiceConnectionImpl::UpdateRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::UpdateRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -265,8 +264,7 @@ ManagedNotebookServiceConnectionImpl::UpdateRuntime( future> ManagedNotebookServiceConnectionImpl::UpdateRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -341,7 +339,7 @@ ManagedNotebookServiceConnectionImpl::DeleteRuntime( StatusOr ManagedNotebookServiceConnectionImpl::DeleteRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::DeleteRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -357,8 +355,7 @@ ManagedNotebookServiceConnectionImpl::DeleteRuntime( future> ManagedNotebookServiceConnectionImpl::DeleteRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -434,7 +431,7 @@ ManagedNotebookServiceConnectionImpl::StartRuntime( StatusOr ManagedNotebookServiceConnectionImpl::StartRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::StartRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -449,8 +446,7 @@ ManagedNotebookServiceConnectionImpl::StartRuntime( future> ManagedNotebookServiceConnectionImpl::StartRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -525,7 +521,7 @@ ManagedNotebookServiceConnectionImpl::StopRuntime( StatusOr ManagedNotebookServiceConnectionImpl::StopRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::StopRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -540,8 +536,7 @@ ManagedNotebookServiceConnectionImpl::StopRuntime( future> ManagedNotebookServiceConnectionImpl::StopRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -616,7 +611,7 @@ ManagedNotebookServiceConnectionImpl::SwitchRuntime( StatusOr ManagedNotebookServiceConnectionImpl::SwitchRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::SwitchRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -632,8 +627,7 @@ ManagedNotebookServiceConnectionImpl::SwitchRuntime( future> ManagedNotebookServiceConnectionImpl::SwitchRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -708,7 +702,7 @@ ManagedNotebookServiceConnectionImpl::ResetRuntime( StatusOr ManagedNotebookServiceConnectionImpl::ResetRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::ResetRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -723,8 +717,7 @@ ManagedNotebookServiceConnectionImpl::ResetRuntime( future> ManagedNotebookServiceConnectionImpl::ResetRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -799,7 +792,7 @@ ManagedNotebookServiceConnectionImpl::UpgradeRuntime( StatusOr ManagedNotebookServiceConnectionImpl::UpgradeRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -815,8 +808,7 @@ ManagedNotebookServiceConnectionImpl::UpgradeRuntime( future> ManagedNotebookServiceConnectionImpl::UpgradeRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -892,7 +884,7 @@ ManagedNotebookServiceConnectionImpl::ReportRuntimeEvent( StatusOr ManagedNotebookServiceConnectionImpl::ReportRuntimeEvent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -908,8 +900,7 @@ ManagedNotebookServiceConnectionImpl::ReportRuntimeEvent( future> ManagedNotebookServiceConnectionImpl::ReportRuntimeEvent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1000,7 +991,7 @@ ManagedNotebookServiceConnectionImpl::DiagnoseRuntime( StatusOr ManagedNotebookServiceConnectionImpl::DiagnoseRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1016,8 +1007,7 @@ ManagedNotebookServiceConnectionImpl::DiagnoseRuntime( future> ManagedNotebookServiceConnectionImpl::DiagnoseRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.h b/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.h index 0458e014ceb3d..8ee30c2ef4a7d 100644 --- a/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.h +++ b/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.h @@ -63,12 +63,12 @@ class ManagedNotebookServiceConnectionImpl override; StatusOr CreateRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::CreateRuntimeRequest const& request) override; future> CreateRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateRuntime( @@ -76,12 +76,12 @@ class ManagedNotebookServiceConnectionImpl override; StatusOr UpdateRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::UpdateRuntimeRequest const& request) override; future> UpdateRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -89,12 +89,12 @@ class ManagedNotebookServiceConnectionImpl request) override; StatusOr DeleteRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::DeleteRuntimeRequest const& request) override; future> - DeleteRuntime(google::cloud::ExperimentalTag, + DeleteRuntime(ExperimentalTag, google::longrunning::Operation const& operation) override; future> StartRuntime( @@ -102,23 +102,23 @@ class ManagedNotebookServiceConnectionImpl override; StatusOr StartRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::StartRuntimeRequest const& request) override; future> StartRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StopRuntime( google::cloud::notebooks::v1::StopRuntimeRequest const& request) override; StatusOr StopRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::StopRuntimeRequest const& request) override; future> StopRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> SwitchRuntime( @@ -126,12 +126,12 @@ class ManagedNotebookServiceConnectionImpl override; StatusOr SwitchRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::SwitchRuntimeRequest const& request) override; future> SwitchRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ResetRuntime( @@ -139,12 +139,12 @@ class ManagedNotebookServiceConnectionImpl override; StatusOr ResetRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::ResetRuntimeRequest const& request) override; future> ResetRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpgradeRuntime( @@ -152,12 +152,12 @@ class ManagedNotebookServiceConnectionImpl override; StatusOr UpgradeRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request) override; future> UpgradeRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ReportRuntimeEvent( @@ -165,12 +165,12 @@ class ManagedNotebookServiceConnectionImpl override; StatusOr ReportRuntimeEvent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request) override; future> ReportRuntimeEvent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -183,12 +183,12 @@ class ManagedNotebookServiceConnectionImpl override; StatusOr DiagnoseRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request) override; future> DiagnoseRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.cc b/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.cc index 5430170e9c236..304a5b6194cab 100644 --- a/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.cc +++ b/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.cc @@ -65,26 +65,23 @@ ManagedNotebookServiceTracingConnection::CreateRuntime( StatusOr ManagedNotebookServiceTracingConnection::CreateRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::CreateRuntime"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateRuntime(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateRuntime(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedNotebookServiceTracingConnection::CreateRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::CreateRuntime"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateRuntime(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateRuntime(ExperimentalTag{}, operation)); } future> @@ -98,26 +95,23 @@ ManagedNotebookServiceTracingConnection::UpdateRuntime( StatusOr ManagedNotebookServiceTracingConnection::UpdateRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::UpdateRuntime"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateRuntime(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateRuntime(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedNotebookServiceTracingConnection::UpdateRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::UpdateRuntime"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateRuntime(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateRuntime(ExperimentalTag{}, operation)); } future> @@ -131,26 +125,23 @@ ManagedNotebookServiceTracingConnection::DeleteRuntime( StatusOr ManagedNotebookServiceTracingConnection::DeleteRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::DeleteRuntime"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteRuntime(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteRuntime(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedNotebookServiceTracingConnection::DeleteRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::DeleteRuntime"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteRuntime(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteRuntime(ExperimentalTag{}, operation)); } future> @@ -164,26 +155,23 @@ ManagedNotebookServiceTracingConnection::StartRuntime( StatusOr ManagedNotebookServiceTracingConnection::StartRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StartRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::StartRuntime"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StartRuntime(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StartRuntime(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedNotebookServiceTracingConnection::StartRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::StartRuntime"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->StartRuntime(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->StartRuntime(ExperimentalTag{}, operation)); } future> @@ -197,26 +185,23 @@ ManagedNotebookServiceTracingConnection::StopRuntime( StatusOr ManagedNotebookServiceTracingConnection::StopRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StopRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::StopRuntime"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StopRuntime(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StopRuntime(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedNotebookServiceTracingConnection::StopRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::StopRuntime"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->StopRuntime(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->StopRuntime(ExperimentalTag{}, operation)); } future> @@ -230,26 +215,23 @@ ManagedNotebookServiceTracingConnection::SwitchRuntime( StatusOr ManagedNotebookServiceTracingConnection::SwitchRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SwitchRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::SwitchRuntime"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SwitchRuntime(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SwitchRuntime(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedNotebookServiceTracingConnection::SwitchRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::SwitchRuntime"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SwitchRuntime(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SwitchRuntime(ExperimentalTag{}, operation)); } future> @@ -263,26 +245,23 @@ ManagedNotebookServiceTracingConnection::ResetRuntime( StatusOr ManagedNotebookServiceTracingConnection::ResetRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ResetRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::ResetRuntime"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ResetRuntime(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ResetRuntime(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedNotebookServiceTracingConnection::ResetRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::ResetRuntime"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ResetRuntime(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ResetRuntime(ExperimentalTag{}, operation)); } future> @@ -296,26 +275,23 @@ ManagedNotebookServiceTracingConnection::UpgradeRuntime( StatusOr ManagedNotebookServiceTracingConnection::UpgradeRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::UpgradeRuntime"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpgradeRuntime(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpgradeRuntime(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedNotebookServiceTracingConnection::UpgradeRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::UpgradeRuntime"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpgradeRuntime(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpgradeRuntime(ExperimentalTag{}, operation)); } future> @@ -330,26 +306,24 @@ ManagedNotebookServiceTracingConnection::ReportRuntimeEvent( StatusOr ManagedNotebookServiceTracingConnection::ReportRuntimeEvent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::ReportRuntimeEvent"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ReportRuntimeEvent(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ReportRuntimeEvent(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedNotebookServiceTracingConnection::ReportRuntimeEvent( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::ReportRuntimeEvent"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ReportRuntimeEvent(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ReportRuntimeEvent( + ExperimentalTag{}, operation)); } StatusOr @@ -374,26 +348,23 @@ ManagedNotebookServiceTracingConnection::DiagnoseRuntime( StatusOr ManagedNotebookServiceTracingConnection::DiagnoseRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::DiagnoseRuntime"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DiagnoseRuntime(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DiagnoseRuntime(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ManagedNotebookServiceTracingConnection::DiagnoseRuntime( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::ManagedNotebookServiceConnection::DiagnoseRuntime"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DiagnoseRuntime(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DiagnoseRuntime(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.h b/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.h index a81746355bafe..1fbf7ed0d7adf 100644 --- a/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.h +++ b/google/cloud/notebooks/v1/internal/managed_notebook_tracing_connection.h @@ -51,12 +51,12 @@ class ManagedNotebookServiceTracingConnection override; StatusOr CreateRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateRuntimeRequest const& request) override; future> CreateRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateRuntime( @@ -64,12 +64,12 @@ class ManagedNotebookServiceTracingConnection override; StatusOr UpdateRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateRuntimeRequest const& request) override; future> UpdateRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -77,12 +77,12 @@ class ManagedNotebookServiceTracingConnection request) override; StatusOr DeleteRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteRuntimeRequest const& request) override; future> - DeleteRuntime(google::cloud::ExperimentalTag, + DeleteRuntime(ExperimentalTag, google::longrunning::Operation const& operation) override; future> StartRuntime( @@ -90,23 +90,23 @@ class ManagedNotebookServiceTracingConnection override; StatusOr StartRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StartRuntimeRequest const& request) override; future> StartRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StopRuntime( google::cloud::notebooks::v1::StopRuntimeRequest const& request) override; StatusOr StopRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StopRuntimeRequest const& request) override; future> StopRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> SwitchRuntime( @@ -114,12 +114,12 @@ class ManagedNotebookServiceTracingConnection override; StatusOr SwitchRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SwitchRuntimeRequest const& request) override; future> SwitchRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ResetRuntime( @@ -127,12 +127,12 @@ class ManagedNotebookServiceTracingConnection override; StatusOr ResetRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ResetRuntimeRequest const& request) override; future> ResetRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpgradeRuntime( @@ -140,12 +140,12 @@ class ManagedNotebookServiceTracingConnection override; StatusOr UpgradeRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request) override; future> UpgradeRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ReportRuntimeEvent( @@ -153,12 +153,12 @@ class ManagedNotebookServiceTracingConnection override; StatusOr ReportRuntimeEvent( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request) override; future> ReportRuntimeEvent( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -171,12 +171,12 @@ class ManagedNotebookServiceTracingConnection override; StatusOr DiagnoseRuntime( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request) override; future> DiagnoseRuntime( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/notebooks/v1/internal/notebook_connection_impl.cc b/google/cloud/notebooks/v1/internal/notebook_connection_impl.cc index 42885dec9b8b4..8d607e0cf3154 100644 --- a/google/cloud/notebooks/v1/internal/notebook_connection_impl.cc +++ b/google/cloud/notebooks/v1/internal/notebook_connection_impl.cc @@ -155,7 +155,7 @@ NotebookServiceConnectionImpl::CreateInstance( StatusOr NotebookServiceConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -171,8 +171,7 @@ NotebookServiceConnectionImpl::CreateInstance( future> NotebookServiceConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -248,7 +247,7 @@ NotebookServiceConnectionImpl::RegisterInstance( StatusOr NotebookServiceConnectionImpl::RegisterInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::RegisterInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -264,8 +263,7 @@ NotebookServiceConnectionImpl::RegisterInstance( future> NotebookServiceConnectionImpl::RegisterInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -342,7 +340,7 @@ NotebookServiceConnectionImpl::SetInstanceAccelerator( StatusOr NotebookServiceConnectionImpl::SetInstanceAccelerator( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -359,8 +357,7 @@ NotebookServiceConnectionImpl::SetInstanceAccelerator( future> NotebookServiceConnectionImpl::SetInstanceAccelerator( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -437,7 +434,7 @@ NotebookServiceConnectionImpl::SetInstanceMachineType( StatusOr NotebookServiceConnectionImpl::SetInstanceMachineType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -454,8 +451,7 @@ NotebookServiceConnectionImpl::SetInstanceMachineType( future> NotebookServiceConnectionImpl::SetInstanceMachineType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -531,7 +527,7 @@ NotebookServiceConnectionImpl::UpdateInstanceConfig( StatusOr NotebookServiceConnectionImpl::UpdateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -547,8 +543,7 @@ NotebookServiceConnectionImpl::UpdateInstanceConfig( future> NotebookServiceConnectionImpl::UpdateInstanceConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -624,7 +619,7 @@ NotebookServiceConnectionImpl::UpdateShieldedInstanceConfig( StatusOr NotebookServiceConnectionImpl::UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -641,8 +636,7 @@ NotebookServiceConnectionImpl::UpdateShieldedInstanceConfig( future> NotebookServiceConnectionImpl::UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -718,7 +712,7 @@ NotebookServiceConnectionImpl::SetInstanceLabels( StatusOr NotebookServiceConnectionImpl::SetInstanceLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -734,8 +728,7 @@ NotebookServiceConnectionImpl::SetInstanceLabels( future> NotebookServiceConnectionImpl::SetInstanceLabels( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -826,7 +819,7 @@ NotebookServiceConnectionImpl::DeleteInstance( StatusOr NotebookServiceConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -842,8 +835,7 @@ NotebookServiceConnectionImpl::DeleteInstance( future> NotebookServiceConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -919,7 +911,7 @@ NotebookServiceConnectionImpl::StartInstance( StatusOr NotebookServiceConnectionImpl::StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::StartInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -935,8 +927,7 @@ NotebookServiceConnectionImpl::StartInstance( future> NotebookServiceConnectionImpl::StartInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1011,7 +1002,7 @@ NotebookServiceConnectionImpl::StopInstance( StatusOr NotebookServiceConnectionImpl::StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::StopInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1026,8 +1017,7 @@ NotebookServiceConnectionImpl::StopInstance( future> NotebookServiceConnectionImpl::StopInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1102,7 +1092,7 @@ NotebookServiceConnectionImpl::ResetInstance( StatusOr NotebookServiceConnectionImpl::ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::ResetInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1118,8 +1108,7 @@ NotebookServiceConnectionImpl::ResetInstance( future> NotebookServiceConnectionImpl::ResetInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1195,7 +1184,7 @@ NotebookServiceConnectionImpl::ReportInstanceInfo( StatusOr NotebookServiceConnectionImpl::ReportInstanceInfo( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1211,8 +1200,7 @@ NotebookServiceConnectionImpl::ReportInstanceInfo( future> NotebookServiceConnectionImpl::ReportInstanceInfo( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1317,7 +1305,7 @@ NotebookServiceConnectionImpl::UpgradeInstance( StatusOr NotebookServiceConnectionImpl::UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::UpgradeInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1333,8 +1321,7 @@ NotebookServiceConnectionImpl::UpgradeInstance( future> NotebookServiceConnectionImpl::UpgradeInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1410,7 +1397,7 @@ NotebookServiceConnectionImpl::RollbackInstance( StatusOr NotebookServiceConnectionImpl::RollbackInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::RollbackInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1426,8 +1413,7 @@ NotebookServiceConnectionImpl::RollbackInstance( future> NotebookServiceConnectionImpl::RollbackInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1503,7 +1489,7 @@ NotebookServiceConnectionImpl::DiagnoseInstance( StatusOr NotebookServiceConnectionImpl::DiagnoseInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1519,8 +1505,7 @@ NotebookServiceConnectionImpl::DiagnoseInstance( future> NotebookServiceConnectionImpl::DiagnoseInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1597,7 +1582,7 @@ NotebookServiceConnectionImpl::UpgradeInstanceInternal( StatusOr NotebookServiceConnectionImpl::UpgradeInstanceInternal( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1614,8 +1599,7 @@ NotebookServiceConnectionImpl::UpgradeInstanceInternal( future> NotebookServiceConnectionImpl::UpgradeInstanceInternal( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1740,7 +1724,7 @@ NotebookServiceConnectionImpl::CreateEnvironment( StatusOr NotebookServiceConnectionImpl::CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::CreateEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1756,8 +1740,7 @@ NotebookServiceConnectionImpl::CreateEnvironment( future> NotebookServiceConnectionImpl::CreateEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1834,7 +1817,7 @@ NotebookServiceConnectionImpl::DeleteEnvironment( StatusOr NotebookServiceConnectionImpl::DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1850,8 +1833,7 @@ NotebookServiceConnectionImpl::DeleteEnvironment( future> NotebookServiceConnectionImpl::DeleteEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1975,7 +1957,7 @@ NotebookServiceConnectionImpl::DeleteSchedule( StatusOr NotebookServiceConnectionImpl::DeleteSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::DeleteScheduleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1991,8 +1973,7 @@ NotebookServiceConnectionImpl::DeleteSchedule( future> NotebookServiceConnectionImpl::DeleteSchedule( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2068,7 +2049,7 @@ NotebookServiceConnectionImpl::CreateSchedule( StatusOr NotebookServiceConnectionImpl::CreateSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::CreateScheduleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2084,8 +2065,7 @@ NotebookServiceConnectionImpl::CreateSchedule( future> NotebookServiceConnectionImpl::CreateSchedule( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2160,7 +2140,7 @@ NotebookServiceConnectionImpl::TriggerSchedule( StatusOr NotebookServiceConnectionImpl::TriggerSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::TriggerScheduleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2176,8 +2156,7 @@ NotebookServiceConnectionImpl::TriggerSchedule( future> NotebookServiceConnectionImpl::TriggerSchedule( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2300,7 +2279,7 @@ NotebookServiceConnectionImpl::DeleteExecution( StatusOr NotebookServiceConnectionImpl::DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::DeleteExecutionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2316,8 +2295,7 @@ NotebookServiceConnectionImpl::DeleteExecution( future> NotebookServiceConnectionImpl::DeleteExecution( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2393,7 +2371,7 @@ NotebookServiceConnectionImpl::CreateExecution( StatusOr NotebookServiceConnectionImpl::CreateExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::CreateExecutionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2409,8 +2387,7 @@ NotebookServiceConnectionImpl::CreateExecution( future> NotebookServiceConnectionImpl::CreateExecution( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/notebooks/v1/internal/notebook_connection_impl.h b/google/cloud/notebooks/v1/internal/notebook_connection_impl.h index 224326c776500..65483ef64931b 100644 --- a/google/cloud/notebooks/v1/internal/notebook_connection_impl.h +++ b/google/cloud/notebooks/v1/internal/notebook_connection_impl.h @@ -63,12 +63,12 @@ class NotebookServiceConnectionImpl override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::CreateInstanceRequest const& request) override; future> CreateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RegisterInstance( @@ -76,12 +76,12 @@ class NotebookServiceConnectionImpl override; StatusOr RegisterInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::RegisterInstanceRequest const& request) override; future> RegisterInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -90,13 +90,13 @@ class NotebookServiceConnectionImpl request) override; StatusOr SetInstanceAccelerator( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& request) override; future> SetInstanceAccelerator( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -105,13 +105,13 @@ class NotebookServiceConnectionImpl request) override; StatusOr SetInstanceMachineType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& request) override; future> SetInstanceMachineType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateInstanceConfig( @@ -119,12 +119,12 @@ class NotebookServiceConnectionImpl override; StatusOr UpdateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request) override; future> UpdateInstanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -133,13 +133,13 @@ class NotebookServiceConnectionImpl request) override; StatusOr UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& request) override; future> UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> SetInstanceLabels( @@ -147,12 +147,12 @@ class NotebookServiceConnectionImpl override; StatusOr SetInstanceLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request) override; future> SetInstanceLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -165,12 +165,12 @@ class NotebookServiceConnectionImpl request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::DeleteInstanceRequest const& request) override; future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> StartInstance( @@ -178,12 +178,12 @@ class NotebookServiceConnectionImpl override; StatusOr StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::StartInstanceRequest const& request) override; future> StartInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StopInstance( @@ -191,12 +191,12 @@ class NotebookServiceConnectionImpl override; StatusOr StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::StopInstanceRequest const& request) override; future> StopInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ResetInstance( @@ -204,12 +204,12 @@ class NotebookServiceConnectionImpl override; StatusOr ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::ResetInstanceRequest const& request) override; future> ResetInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ReportInstanceInfo( @@ -217,12 +217,12 @@ class NotebookServiceConnectionImpl override; StatusOr ReportInstanceInfo( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request) override; future> ReportInstanceInfo( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -240,12 +240,12 @@ class NotebookServiceConnectionImpl override; StatusOr UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::UpgradeInstanceRequest const& request) override; future> UpgradeInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RollbackInstance( @@ -253,12 +253,12 @@ class NotebookServiceConnectionImpl override; StatusOr RollbackInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::RollbackInstanceRequest const& request) override; future> RollbackInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DiagnoseInstance( @@ -266,12 +266,12 @@ class NotebookServiceConnectionImpl override; StatusOr DiagnoseInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request) override; future> DiagnoseInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -280,13 +280,13 @@ class NotebookServiceConnectionImpl request) override; StatusOr UpgradeInstanceInternal( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& request) override; future> UpgradeInstanceInternal( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListEnvironments( @@ -301,12 +301,12 @@ class NotebookServiceConnectionImpl override; StatusOr CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::CreateEnvironmentRequest const& request) override; future> CreateEnvironment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -315,12 +315,12 @@ class NotebookServiceConnectionImpl override; StatusOr DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request) override; future> - DeleteEnvironment(google::cloud::ExperimentalTag, + DeleteEnvironment(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListSchedules( @@ -334,12 +334,12 @@ class NotebookServiceConnectionImpl request) override; StatusOr DeleteSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::DeleteScheduleRequest const& request) override; future> - DeleteSchedule(google::cloud::ExperimentalTag, + DeleteSchedule(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateSchedule( @@ -347,12 +347,12 @@ class NotebookServiceConnectionImpl override; StatusOr CreateSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::CreateScheduleRequest const& request) override; future> CreateSchedule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> TriggerSchedule( @@ -360,12 +360,12 @@ class NotebookServiceConnectionImpl override; StatusOr TriggerSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::TriggerScheduleRequest const& request) override; future> TriggerSchedule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListExecutions( @@ -380,12 +380,12 @@ class NotebookServiceConnectionImpl request) override; StatusOr DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::DeleteExecutionRequest const& request) override; future> - DeleteExecution(google::cloud::ExperimentalTag, + DeleteExecution(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateExecution( @@ -393,12 +393,12 @@ class NotebookServiceConnectionImpl override; StatusOr CreateExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v1::CreateExecutionRequest const& request) override; future> CreateExecution( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/notebooks/v1/internal/notebook_tracing_connection.cc b/google/cloud/notebooks/v1/internal/notebook_tracing_connection.cc index 5705c1ce2b36e..075f0cf43e101 100644 --- a/google/cloud/notebooks/v1/internal/notebook_tracing_connection.cc +++ b/google/cloud/notebooks/v1/internal/notebook_tracing_connection.cc @@ -64,26 +64,23 @@ NotebookServiceTracingConnection::CreateInstance( StatusOr NotebookServiceTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::CreateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::CreateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateInstance(ExperimentalTag{}, operation)); } future> @@ -97,26 +94,24 @@ NotebookServiceTracingConnection::RegisterInstance( StatusOr NotebookServiceTracingConnection::RegisterInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::RegisterInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::RegisterInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RegisterInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->RegisterInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::RegisterInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::RegisterInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RegisterInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RegisterInstance(ExperimentalTag{}, operation)); } future> @@ -132,27 +127,25 @@ NotebookServiceTracingConnection::SetInstanceAccelerator( StatusOr NotebookServiceTracingConnection::SetInstanceAccelerator( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::SetInstanceAccelerator"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SetInstanceAccelerator( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->SetInstanceAccelerator(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::SetInstanceAccelerator( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::SetInstanceAccelerator"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SetInstanceAccelerator( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetInstanceAccelerator( + ExperimentalTag{}, operation)); } future> @@ -168,27 +161,25 @@ NotebookServiceTracingConnection::SetInstanceMachineType( StatusOr NotebookServiceTracingConnection::SetInstanceMachineType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::SetInstanceMachineType"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->SetInstanceMachineType( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->SetInstanceMachineType(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::SetInstanceMachineType( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::SetInstanceMachineType"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->SetInstanceMachineType( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SetInstanceMachineType( + ExperimentalTag{}, operation)); } future> @@ -203,26 +194,24 @@ NotebookServiceTracingConnection::UpdateInstanceConfig( StatusOr NotebookServiceTracingConnection::UpdateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::UpdateInstanceConfig"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateInstanceConfig( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateInstanceConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::UpdateInstanceConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::UpdateInstanceConfig"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateInstanceConfig( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateInstanceConfig( + ExperimentalTag{}, operation)); } future> @@ -238,27 +227,26 @@ NotebookServiceTracingConnection::UpdateShieldedInstanceConfig( StatusOr NotebookServiceTracingConnection::UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::UpdateShieldedInstanceConfig"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateShieldedInstanceConfig(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::UpdateShieldedInstanceConfig"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->UpdateShieldedInstanceConfig(ExperimentalTag{}, operation)); } future> @@ -272,26 +260,24 @@ NotebookServiceTracingConnection::SetInstanceLabels( StatusOr NotebookServiceTracingConnection::SetInstanceLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::SetInstanceLabels"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetInstanceLabels(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SetInstanceLabels(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::SetInstanceLabels( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::SetInstanceLabels"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SetInstanceLabels(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SetInstanceLabels(ExperimentalTag{}, operation)); } StatusOr @@ -315,26 +301,23 @@ NotebookServiceTracingConnection::DeleteInstance( StatusOr NotebookServiceTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::DeleteInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::DeleteInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteInstance(ExperimentalTag{}, operation)); } future> @@ -348,26 +331,23 @@ NotebookServiceTracingConnection::StartInstance( StatusOr NotebookServiceTracingConnection::StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StartInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::StartInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StartInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StartInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::StartInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::StartInstance"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->StartInstance(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->StartInstance(ExperimentalTag{}, operation)); } future> @@ -381,26 +361,23 @@ NotebookServiceTracingConnection::StopInstance( StatusOr NotebookServiceTracingConnection::StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StopInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::StopInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StopInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StopInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::StopInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::StopInstance"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->StopInstance(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->StopInstance(ExperimentalTag{}, operation)); } future> @@ -414,26 +391,23 @@ NotebookServiceTracingConnection::ResetInstance( StatusOr NotebookServiceTracingConnection::ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ResetInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::ResetInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ResetInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ResetInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::ResetInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::ResetInstance"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ResetInstance(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ResetInstance(ExperimentalTag{}, operation)); } future> @@ -448,26 +422,24 @@ NotebookServiceTracingConnection::ReportInstanceInfo( StatusOr NotebookServiceTracingConnection::ReportInstanceInfo( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::ReportInstanceInfo"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ReportInstanceInfo(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ReportInstanceInfo(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::ReportInstanceInfo( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::ReportInstanceInfo"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ReportInstanceInfo(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ReportInstanceInfo( + ExperimentalTag{}, operation)); } StatusOr @@ -499,26 +471,23 @@ NotebookServiceTracingConnection::UpgradeInstance( StatusOr NotebookServiceTracingConnection::UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::UpgradeInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpgradeInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpgradeInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::UpgradeInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::UpgradeInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpgradeInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpgradeInstance(ExperimentalTag{}, operation)); } future> @@ -532,26 +501,24 @@ NotebookServiceTracingConnection::RollbackInstance( StatusOr NotebookServiceTracingConnection::RollbackInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::RollbackInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::RollbackInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RollbackInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->RollbackInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::RollbackInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::RollbackInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RollbackInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RollbackInstance(ExperimentalTag{}, operation)); } future> @@ -565,26 +532,24 @@ NotebookServiceTracingConnection::DiagnoseInstance( StatusOr NotebookServiceTracingConnection::DiagnoseInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::DiagnoseInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DiagnoseInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DiagnoseInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::DiagnoseInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::DiagnoseInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DiagnoseInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DiagnoseInstance(ExperimentalTag{}, operation)); } future> @@ -600,27 +565,25 @@ NotebookServiceTracingConnection::UpgradeInstanceInternal( StatusOr NotebookServiceTracingConnection::UpgradeInstanceInternal( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::UpgradeInstanceInternal"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpgradeInstanceInternal( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpgradeInstanceInternal(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> NotebookServiceTracingConnection::UpgradeInstanceInternal( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::UpgradeInstanceInternal"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpgradeInstanceInternal( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpgradeInstanceInternal( + ExperimentalTag{}, operation)); } StreamRange @@ -655,26 +618,24 @@ NotebookServiceTracingConnection::CreateEnvironment( StatusOr NotebookServiceTracingConnection::CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateEnvironmentRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::CreateEnvironment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateEnvironment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateEnvironment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::CreateEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::CreateEnvironment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateEnvironment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateEnvironment(ExperimentalTag{}, operation)); } future> @@ -688,26 +649,24 @@ NotebookServiceTracingConnection::DeleteEnvironment( StatusOr NotebookServiceTracingConnection::DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::DeleteEnvironment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteEnvironment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteEnvironment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::DeleteEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::DeleteEnvironment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteEnvironment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteEnvironment(ExperimentalTag{}, operation)); } StreamRange @@ -741,26 +700,23 @@ NotebookServiceTracingConnection::DeleteSchedule( StatusOr NotebookServiceTracingConnection::DeleteSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteScheduleRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::DeleteSchedule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSchedule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteSchedule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::DeleteSchedule( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::DeleteSchedule"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteSchedule(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteSchedule(ExperimentalTag{}, operation)); } future> @@ -774,26 +730,23 @@ NotebookServiceTracingConnection::CreateSchedule( StatusOr NotebookServiceTracingConnection::CreateSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateScheduleRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::CreateSchedule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateSchedule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateSchedule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::CreateSchedule( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::CreateSchedule"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateSchedule(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateSchedule(ExperimentalTag{}, operation)); } future> @@ -807,26 +760,23 @@ NotebookServiceTracingConnection::TriggerSchedule( StatusOr NotebookServiceTracingConnection::TriggerSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::TriggerScheduleRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::TriggerSchedule"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->TriggerSchedule(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->TriggerSchedule(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::TriggerSchedule( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::TriggerSchedule"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->TriggerSchedule(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->TriggerSchedule(ExperimentalTag{}, operation)); } StreamRange @@ -860,26 +810,23 @@ NotebookServiceTracingConnection::DeleteExecution( StatusOr NotebookServiceTracingConnection::DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteExecutionRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::DeleteExecution"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteExecution(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteExecution(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::DeleteExecution( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::DeleteExecution"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteExecution(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteExecution(ExperimentalTag{}, operation)); } future> @@ -893,26 +840,23 @@ NotebookServiceTracingConnection::CreateExecution( StatusOr NotebookServiceTracingConnection::CreateExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateExecutionRequest const& request) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::CreateExecution"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateExecution(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateExecution(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::CreateExecution( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v1::NotebookServiceConnection::CreateExecution"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateExecution(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateExecution(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/notebooks/v1/internal/notebook_tracing_connection.h b/google/cloud/notebooks/v1/internal/notebook_tracing_connection.h index 231d39450393e..54789d4ea8a50 100644 --- a/google/cloud/notebooks/v1/internal/notebook_tracing_connection.h +++ b/google/cloud/notebooks/v1/internal/notebook_tracing_connection.h @@ -51,12 +51,12 @@ class NotebookServiceTracingConnection override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateInstanceRequest const& request) override; future> CreateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RegisterInstance( @@ -64,12 +64,12 @@ class NotebookServiceTracingConnection override; StatusOr RegisterInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::RegisterInstanceRequest const& request) override; future> RegisterInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -78,13 +78,13 @@ class NotebookServiceTracingConnection request) override; StatusOr SetInstanceAccelerator( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& request) override; future> SetInstanceAccelerator( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -93,13 +93,13 @@ class NotebookServiceTracingConnection request) override; StatusOr SetInstanceMachineType( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& request) override; future> SetInstanceMachineType( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateInstanceConfig( @@ -107,12 +107,12 @@ class NotebookServiceTracingConnection override; StatusOr UpdateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request) override; future> UpdateInstanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -121,13 +121,13 @@ class NotebookServiceTracingConnection request) override; StatusOr UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& request) override; future> UpdateShieldedInstanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> SetInstanceLabels( @@ -135,12 +135,12 @@ class NotebookServiceTracingConnection override; StatusOr SetInstanceLabels( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request) override; future> SetInstanceLabels( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -153,12 +153,12 @@ class NotebookServiceTracingConnection request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteInstanceRequest const& request) override; future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> StartInstance( @@ -166,12 +166,12 @@ class NotebookServiceTracingConnection override; StatusOr StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StartInstanceRequest const& request) override; future> StartInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StopInstance( @@ -179,12 +179,12 @@ class NotebookServiceTracingConnection override; StatusOr StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StopInstanceRequest const& request) override; future> StopInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ResetInstance( @@ -192,12 +192,12 @@ class NotebookServiceTracingConnection override; StatusOr ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ResetInstanceRequest const& request) override; future> ResetInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ReportInstanceInfo( @@ -205,12 +205,12 @@ class NotebookServiceTracingConnection override; StatusOr ReportInstanceInfo( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request) override; future> ReportInstanceInfo( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -228,12 +228,12 @@ class NotebookServiceTracingConnection override; StatusOr UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceRequest const& request) override; future> UpgradeInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RollbackInstance( @@ -241,12 +241,12 @@ class NotebookServiceTracingConnection override; StatusOr RollbackInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::RollbackInstanceRequest const& request) override; future> RollbackInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DiagnoseInstance( @@ -254,12 +254,12 @@ class NotebookServiceTracingConnection override; StatusOr DiagnoseInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request) override; future> DiagnoseInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -268,13 +268,13 @@ class NotebookServiceTracingConnection request) override; StatusOr UpgradeInstanceInternal( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& request) override; future> UpgradeInstanceInternal( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListEnvironments( @@ -289,12 +289,12 @@ class NotebookServiceTracingConnection override; StatusOr CreateEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateEnvironmentRequest const& request) override; future> CreateEnvironment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -303,12 +303,12 @@ class NotebookServiceTracingConnection override; StatusOr DeleteEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request) override; future> - DeleteEnvironment(google::cloud::ExperimentalTag, + DeleteEnvironment(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListSchedules( @@ -322,12 +322,12 @@ class NotebookServiceTracingConnection request) override; StatusOr DeleteSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteScheduleRequest const& request) override; future> - DeleteSchedule(google::cloud::ExperimentalTag, + DeleteSchedule(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateSchedule( @@ -335,12 +335,12 @@ class NotebookServiceTracingConnection override; StatusOr CreateSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateScheduleRequest const& request) override; future> CreateSchedule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> TriggerSchedule( @@ -348,12 +348,12 @@ class NotebookServiceTracingConnection override; StatusOr TriggerSchedule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::TriggerScheduleRequest const& request) override; future> TriggerSchedule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListExecutions( @@ -368,12 +368,12 @@ class NotebookServiceTracingConnection request) override; StatusOr DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteExecutionRequest const& request) override; future> - DeleteExecution(google::cloud::ExperimentalTag, + DeleteExecution(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateExecution( @@ -381,12 +381,12 @@ class NotebookServiceTracingConnection override; StatusOr CreateExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateExecutionRequest const& request) override; future> CreateExecution( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/notebooks/v1/mocks/mock_managed_notebook_connection.h b/google/cloud/notebooks/v1/mocks/mock_managed_notebook_connection.h index dad9c84645bb3..d94c531d91c90 100644 --- a/google/cloud/notebooks/v1/mocks/mock_managed_notebook_connection.h +++ b/google/cloud/notebooks/v1/mocks/mock_managed_notebook_connection.h @@ -63,13 +63,13 @@ class MockManagedNotebookServiceConnection MOCK_METHOD( StatusOr, CreateRuntime, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateRuntimeRequest const& request), (override)); MOCK_METHOD(future>, CreateRuntime, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -80,13 +80,13 @@ class MockManagedNotebookServiceConnection MOCK_METHOD( StatusOr, UpdateRuntime, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateRuntimeRequest const& request), (override)); MOCK_METHOD(future>, UpdateRuntime, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -98,13 +98,13 @@ class MockManagedNotebookServiceConnection MOCK_METHOD( StatusOr, DeleteRuntime, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteRuntimeRequest const& request), (override)); MOCK_METHOD(future>, DeleteRuntime, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -115,13 +115,13 @@ class MockManagedNotebookServiceConnection MOCK_METHOD( StatusOr, StartRuntime, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StartRuntimeRequest const& request), (override)); MOCK_METHOD(future>, StartRuntime, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -131,13 +131,13 @@ class MockManagedNotebookServiceConnection (override)); MOCK_METHOD(StatusOr, StopRuntime, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StopRuntimeRequest const& request), (override)); MOCK_METHOD(future>, StopRuntime, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -148,13 +148,13 @@ class MockManagedNotebookServiceConnection MOCK_METHOD( StatusOr, SwitchRuntime, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SwitchRuntimeRequest const& request), (override)); MOCK_METHOD(future>, SwitchRuntime, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -165,13 +165,13 @@ class MockManagedNotebookServiceConnection MOCK_METHOD( StatusOr, ResetRuntime, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ResetRuntimeRequest const& request), (override)); MOCK_METHOD(future>, ResetRuntime, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -182,13 +182,13 @@ class MockManagedNotebookServiceConnection MOCK_METHOD( StatusOr, UpgradeRuntime, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request), (override)); MOCK_METHOD(future>, UpgradeRuntime, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -200,13 +200,13 @@ class MockManagedNotebookServiceConnection MOCK_METHOD( StatusOr, ReportRuntimeEvent, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request), (override)); MOCK_METHOD(future>, ReportRuntimeEvent, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -225,13 +225,13 @@ class MockManagedNotebookServiceConnection MOCK_METHOD( StatusOr, DiagnoseRuntime, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request), (override)); MOCK_METHOD(future>, DiagnoseRuntime, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/notebooks/v1/mocks/mock_notebook_connection.h b/google/cloud/notebooks/v1/mocks/mock_notebook_connection.h index 8d7f790622d81..7c3a9892fa06e 100644 --- a/google/cloud/notebooks/v1/mocks/mock_notebook_connection.h +++ b/google/cloud/notebooks/v1/mocks/mock_notebook_connection.h @@ -63,13 +63,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, CreateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateInstanceRequest const& request), (override)); MOCK_METHOD(future>, CreateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -81,13 +81,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, RegisterInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::RegisterInstanceRequest const& request), (override)); MOCK_METHOD(future>, RegisterInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -100,14 +100,14 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, SetInstanceAccelerator, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& request), (override)); MOCK_METHOD(future>, SetInstanceAccelerator, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -120,14 +120,14 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, SetInstanceMachineType, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& request), (override)); MOCK_METHOD(future>, SetInstanceMachineType, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -138,14 +138,14 @@ class MockNotebookServiceConnection (override)); MOCK_METHOD(StatusOr, UpdateInstanceConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request), (override)); MOCK_METHOD(future>, UpdateInstanceConfig, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -158,14 +158,14 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, UpdateShieldedInstanceConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& request), (override)); MOCK_METHOD(future>, UpdateShieldedInstanceConfig, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -177,13 +177,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, SetInstanceLabels, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request), (override)); MOCK_METHOD(future>, SetInstanceLabels, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -203,13 +203,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, DeleteInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteInstanceRequest const& request), (override)); MOCK_METHOD(future>, DeleteInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -220,13 +220,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, StartInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StartInstanceRequest const& request), (override)); MOCK_METHOD(future>, StartInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -237,13 +237,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, StopInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StopInstanceRequest const& request), (override)); MOCK_METHOD(future>, StopInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -254,13 +254,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, ResetInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ResetInstanceRequest const& request), (override)); MOCK_METHOD(future>, ResetInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -272,13 +272,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, ReportInstanceInfo, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request), (override)); MOCK_METHOD(future>, ReportInstanceInfo, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -302,13 +302,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, UpgradeInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceRequest const& request), (override)); MOCK_METHOD(future>, UpgradeInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -320,13 +320,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, RollbackInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::RollbackInstanceRequest const& request), (override)); MOCK_METHOD(future>, RollbackInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -338,13 +338,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, DiagnoseInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request), (override)); MOCK_METHOD(future>, DiagnoseInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -357,14 +357,14 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, UpgradeInstanceInternal, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& request), (override)); MOCK_METHOD(future>, UpgradeInstanceInternal, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -386,13 +386,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, CreateEnvironment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateEnvironmentRequest const& request), (override)); MOCK_METHOD(future>, CreateEnvironment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -404,13 +404,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, DeleteEnvironment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request), (override)); MOCK_METHOD(future>, DeleteEnvironment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -431,13 +431,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, DeleteSchedule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteScheduleRequest const& request), (override)); MOCK_METHOD(future>, DeleteSchedule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -448,13 +448,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, CreateSchedule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateScheduleRequest const& request), (override)); MOCK_METHOD(future>, CreateSchedule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -465,13 +465,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, TriggerSchedule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::TriggerScheduleRequest const& request), (override)); MOCK_METHOD(future>, TriggerSchedule, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -493,13 +493,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, DeleteExecution, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteExecutionRequest const& request), (override)); MOCK_METHOD(future>, DeleteExecution, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -511,13 +511,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, CreateExecution, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateExecutionRequest const& request), (override)); MOCK_METHOD(future>, CreateExecution, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/notebooks/v2/internal/notebook_connection_impl.cc b/google/cloud/notebooks/v2/internal/notebook_connection_impl.cc index 01365da4d79e8..3b26920c2aeba 100644 --- a/google/cloud/notebooks/v2/internal/notebook_connection_impl.cc +++ b/google/cloud/notebooks/v2/internal/notebook_connection_impl.cc @@ -155,7 +155,7 @@ NotebookServiceConnectionImpl::CreateInstance( StatusOr NotebookServiceConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -171,8 +171,7 @@ NotebookServiceConnectionImpl::CreateInstance( future> NotebookServiceConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -247,7 +246,7 @@ NotebookServiceConnectionImpl::UpdateInstance( StatusOr NotebookServiceConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -263,8 +262,7 @@ NotebookServiceConnectionImpl::UpdateInstance( future> NotebookServiceConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -339,7 +337,7 @@ NotebookServiceConnectionImpl::DeleteInstance( StatusOr NotebookServiceConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -355,8 +353,7 @@ NotebookServiceConnectionImpl::DeleteInstance( future> NotebookServiceConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -432,7 +429,7 @@ NotebookServiceConnectionImpl::StartInstance( StatusOr NotebookServiceConnectionImpl::StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::StartInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -448,8 +445,7 @@ NotebookServiceConnectionImpl::StartInstance( future> NotebookServiceConnectionImpl::StartInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -524,7 +520,7 @@ NotebookServiceConnectionImpl::StopInstance( StatusOr NotebookServiceConnectionImpl::StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::StopInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -539,8 +535,7 @@ NotebookServiceConnectionImpl::StopInstance( future> NotebookServiceConnectionImpl::StopInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -615,7 +610,7 @@ NotebookServiceConnectionImpl::ResetInstance( StatusOr NotebookServiceConnectionImpl::ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::ResetInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -631,8 +626,7 @@ NotebookServiceConnectionImpl::ResetInstance( future> NotebookServiceConnectionImpl::ResetInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -724,7 +718,7 @@ NotebookServiceConnectionImpl::UpgradeInstance( StatusOr NotebookServiceConnectionImpl::UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::UpgradeInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -740,8 +734,7 @@ NotebookServiceConnectionImpl::UpgradeInstance( future> NotebookServiceConnectionImpl::UpgradeInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -817,7 +810,7 @@ NotebookServiceConnectionImpl::RollbackInstance( StatusOr NotebookServiceConnectionImpl::RollbackInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::RollbackInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -833,8 +826,7 @@ NotebookServiceConnectionImpl::RollbackInstance( future> NotebookServiceConnectionImpl::RollbackInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -910,7 +902,7 @@ NotebookServiceConnectionImpl::DiagnoseInstance( StatusOr NotebookServiceConnectionImpl::DiagnoseInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -926,8 +918,7 @@ NotebookServiceConnectionImpl::DiagnoseInstance( future> NotebookServiceConnectionImpl::DiagnoseInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/notebooks/v2/internal/notebook_connection_impl.h b/google/cloud/notebooks/v2/internal/notebook_connection_impl.h index 6e9f00d4e1272..b2190e69d1431 100644 --- a/google/cloud/notebooks/v2/internal/notebook_connection_impl.h +++ b/google/cloud/notebooks/v2/internal/notebook_connection_impl.h @@ -63,12 +63,12 @@ class NotebookServiceConnectionImpl override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::CreateInstanceRequest const& request) override; future> CreateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateInstance( @@ -76,12 +76,12 @@ class NotebookServiceConnectionImpl override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::UpdateInstanceRequest const& request) override; future> UpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -89,12 +89,12 @@ class NotebookServiceConnectionImpl request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::DeleteInstanceRequest const& request) override; future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> StartInstance( @@ -102,12 +102,12 @@ class NotebookServiceConnectionImpl override; StatusOr StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::StartInstanceRequest const& request) override; future> StartInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StopInstance( @@ -115,12 +115,12 @@ class NotebookServiceConnectionImpl override; StatusOr StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::StopInstanceRequest const& request) override; future> StopInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ResetInstance( @@ -128,12 +128,12 @@ class NotebookServiceConnectionImpl override; StatusOr ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::ResetInstanceRequest const& request) override; future> ResetInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -146,12 +146,12 @@ class NotebookServiceConnectionImpl override; StatusOr UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::UpgradeInstanceRequest const& request) override; future> UpgradeInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RollbackInstance( @@ -159,12 +159,12 @@ class NotebookServiceConnectionImpl override; StatusOr RollbackInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::RollbackInstanceRequest const& request) override; future> RollbackInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DiagnoseInstance( @@ -172,12 +172,12 @@ class NotebookServiceConnectionImpl override; StatusOr DiagnoseInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request) override; future> DiagnoseInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/notebooks/v2/internal/notebook_tracing_connection.cc b/google/cloud/notebooks/v2/internal/notebook_tracing_connection.cc index d15fe797a28f4..a6358abb2cbc2 100644 --- a/google/cloud/notebooks/v2/internal/notebook_tracing_connection.cc +++ b/google/cloud/notebooks/v2/internal/notebook_tracing_connection.cc @@ -64,26 +64,23 @@ NotebookServiceTracingConnection::CreateInstance( StatusOr NotebookServiceTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::CreateInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::CreateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::CreateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateInstance(ExperimentalTag{}, operation)); } future> @@ -97,26 +94,23 @@ NotebookServiceTracingConnection::UpdateInstance( StatusOr NotebookServiceTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::UpdateInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::UpdateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::UpdateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateInstance(ExperimentalTag{}, operation)); } future> @@ -130,26 +124,23 @@ NotebookServiceTracingConnection::DeleteInstance( StatusOr NotebookServiceTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::DeleteInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::DeleteInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteInstance(ExperimentalTag{}, operation)); } future> @@ -163,26 +154,23 @@ NotebookServiceTracingConnection::StartInstance( StatusOr NotebookServiceTracingConnection::StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::StartInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::StartInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StartInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StartInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::StartInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::StartInstance"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->StartInstance(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->StartInstance(ExperimentalTag{}, operation)); } future> @@ -196,26 +184,23 @@ NotebookServiceTracingConnection::StopInstance( StatusOr NotebookServiceTracingConnection::StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::StopInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::StopInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StopInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StopInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::StopInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::StopInstance"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->StopInstance(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->StopInstance(ExperimentalTag{}, operation)); } future> @@ -229,26 +214,23 @@ NotebookServiceTracingConnection::ResetInstance( StatusOr NotebookServiceTracingConnection::ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::ResetInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::ResetInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ResetInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ResetInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::ResetInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::ResetInstance"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ResetInstance(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ResetInstance(ExperimentalTag{}, operation)); } StatusOr @@ -272,26 +254,23 @@ NotebookServiceTracingConnection::UpgradeInstance( StatusOr NotebookServiceTracingConnection::UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::UpgradeInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::UpgradeInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpgradeInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpgradeInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::UpgradeInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::UpgradeInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpgradeInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpgradeInstance(ExperimentalTag{}, operation)); } future> @@ -305,26 +284,24 @@ NotebookServiceTracingConnection::RollbackInstance( StatusOr NotebookServiceTracingConnection::RollbackInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::RollbackInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::RollbackInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RollbackInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->RollbackInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::RollbackInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::RollbackInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RollbackInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RollbackInstance(ExperimentalTag{}, operation)); } future> @@ -338,26 +315,24 @@ NotebookServiceTracingConnection::DiagnoseInstance( StatusOr NotebookServiceTracingConnection::DiagnoseInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::DiagnoseInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DiagnoseInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DiagnoseInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> NotebookServiceTracingConnection::DiagnoseInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "notebooks_v2::NotebookServiceConnection::DiagnoseInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DiagnoseInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DiagnoseInstance(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/notebooks/v2/internal/notebook_tracing_connection.h b/google/cloud/notebooks/v2/internal/notebook_tracing_connection.h index 33ce4259f16f0..4649022aa8fc7 100644 --- a/google/cloud/notebooks/v2/internal/notebook_tracing_connection.h +++ b/google/cloud/notebooks/v2/internal/notebook_tracing_connection.h @@ -51,12 +51,12 @@ class NotebookServiceTracingConnection override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::CreateInstanceRequest const& request) override; future> CreateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateInstance( @@ -64,12 +64,12 @@ class NotebookServiceTracingConnection override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::UpdateInstanceRequest const& request) override; future> UpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -77,12 +77,12 @@ class NotebookServiceTracingConnection request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::DeleteInstanceRequest const& request) override; future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> StartInstance( @@ -90,12 +90,12 @@ class NotebookServiceTracingConnection override; StatusOr StartInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::StartInstanceRequest const& request) override; future> StartInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StopInstance( @@ -103,12 +103,12 @@ class NotebookServiceTracingConnection override; StatusOr StopInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::StopInstanceRequest const& request) override; future> StopInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ResetInstance( @@ -116,12 +116,12 @@ class NotebookServiceTracingConnection override; StatusOr ResetInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::ResetInstanceRequest const& request) override; future> ResetInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -134,12 +134,12 @@ class NotebookServiceTracingConnection override; StatusOr UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::UpgradeInstanceRequest const& request) override; future> UpgradeInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RollbackInstance( @@ -147,12 +147,12 @@ class NotebookServiceTracingConnection override; StatusOr RollbackInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::RollbackInstanceRequest const& request) override; future> RollbackInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DiagnoseInstance( @@ -160,12 +160,12 @@ class NotebookServiceTracingConnection override; StatusOr DiagnoseInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request) override; future> DiagnoseInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/notebooks/v2/mocks/mock_notebook_connection.h b/google/cloud/notebooks/v2/mocks/mock_notebook_connection.h index 8af01e14850bb..99715a27e604e 100644 --- a/google/cloud/notebooks/v2/mocks/mock_notebook_connection.h +++ b/google/cloud/notebooks/v2/mocks/mock_notebook_connection.h @@ -63,13 +63,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, CreateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::CreateInstanceRequest const& request), (override)); MOCK_METHOD(future>, CreateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -80,13 +80,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, UpdateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::UpdateInstanceRequest const& request), (override)); MOCK_METHOD(future>, UpdateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -98,13 +98,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, DeleteInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::DeleteInstanceRequest const& request), (override)); MOCK_METHOD(future>, DeleteInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -115,13 +115,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, StartInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::StartInstanceRequest const& request), (override)); MOCK_METHOD(future>, StartInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -132,13 +132,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, StopInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::StopInstanceRequest const& request), (override)); MOCK_METHOD(future>, StopInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -149,13 +149,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, ResetInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::ResetInstanceRequest const& request), (override)); MOCK_METHOD(future>, ResetInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -174,13 +174,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, UpgradeInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::UpgradeInstanceRequest const& request), (override)); MOCK_METHOD(future>, UpgradeInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -192,13 +192,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, RollbackInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::RollbackInstanceRequest const& request), (override)); MOCK_METHOD(future>, RollbackInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -210,13 +210,13 @@ class MockNotebookServiceConnection MOCK_METHOD( StatusOr, DiagnoseInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request), (override)); MOCK_METHOD(future>, DiagnoseInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.cc b/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.cc index b3a7097580242..81713a7eb335e 100644 --- a/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.cc +++ b/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.cc @@ -122,7 +122,7 @@ FleetRoutingConnectionImpl::BatchOptimizeTours( StatusOr FleetRoutingConnectionImpl::BatchOptimizeTours( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::optimization::v1::BatchOptimizeToursRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -138,8 +138,7 @@ FleetRoutingConnectionImpl::BatchOptimizeTours( future> FleetRoutingConnectionImpl::BatchOptimizeTours( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BatchOptimizeTours( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::optimization::v1::BatchOptimizeToursRequest const& request) override; future> - BatchOptimizeTours(google::cloud::ExperimentalTag, + BatchOptimizeTours(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.cc b/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.cc index a2832316f0d08..6bf86326aca07 100644 --- a/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.cc +++ b/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.cc @@ -53,26 +53,24 @@ FleetRoutingTracingConnection::BatchOptimizeTours( StatusOr FleetRoutingTracingConnection::BatchOptimizeTours( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::optimization::v1::BatchOptimizeToursRequest const& request) { auto span = internal::MakeSpan( "optimization_v1::FleetRoutingConnection::BatchOptimizeTours"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BatchOptimizeTours(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->BatchOptimizeTours(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FleetRoutingTracingConnection::BatchOptimizeTours( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "optimization_v1::FleetRoutingConnection::BatchOptimizeTours"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->BatchOptimizeTours(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchOptimizeTours( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.h b/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.h index 662036cba07e8..687448f3fb5c0 100644 --- a/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.h +++ b/google/cloud/optimization/v1/internal/fleet_routing_tracing_connection.h @@ -50,12 +50,12 @@ class FleetRoutingTracingConnection override; StatusOr BatchOptimizeTours( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::optimization::v1::BatchOptimizeToursRequest const& request) override; future> - BatchOptimizeTours(google::cloud::ExperimentalTag, + BatchOptimizeTours(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/optimization/v1/mocks/mock_fleet_routing_connection.h b/google/cloud/optimization/v1/mocks/mock_fleet_routing_connection.h index 3863405500d10..36f73eaaeeb74 100644 --- a/google/cloud/optimization/v1/mocks/mock_fleet_routing_connection.h +++ b/google/cloud/optimization/v1/mocks/mock_fleet_routing_connection.h @@ -61,7 +61,7 @@ class MockFleetRoutingConnection (override)); MOCK_METHOD(StatusOr, BatchOptimizeTours, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::optimization::v1::BatchOptimizeToursRequest const& request), (override)); @@ -69,7 +69,7 @@ class MockFleetRoutingConnection MOCK_METHOD(future>, BatchOptimizeTours, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.cc b/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.cc index e2a23b909947c..67e6f2ce5886d 100644 --- a/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.cc +++ b/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.cc @@ -110,7 +110,7 @@ OsConfigZonalServiceConnectionImpl::CreateOSPolicyAssignment( StatusOr OsConfigZonalServiceConnectionImpl::CreateOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -127,8 +127,7 @@ OsConfigZonalServiceConnectionImpl::CreateOSPolicyAssignment( future> OsConfigZonalServiceConnectionImpl::CreateOSPolicyAssignment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is OsConfigZonalServiceConnectionImpl::UpdateOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -224,8 +223,7 @@ OsConfigZonalServiceConnectionImpl::UpdateOSPolicyAssignment( future> OsConfigZonalServiceConnectionImpl::UpdateOSPolicyAssignment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is OsConfigZonalServiceConnectionImpl::DeleteOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -413,8 +411,7 @@ OsConfigZonalServiceConnectionImpl::DeleteOSPolicyAssignment( future< StatusOr> OsConfigZonalServiceConnectionImpl::DeleteOSPolicyAssignment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& request) override; future> CreateOSPolicyAssignment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -73,13 +73,13 @@ class OsConfigZonalServiceConnectionImpl request) override; StatusOr UpdateOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& request) override; future> UpdateOSPolicyAssignment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -104,14 +104,14 @@ class OsConfigZonalServiceConnectionImpl request) override; StatusOr DeleteOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& request) override; future> DeleteOSPolicyAssignment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.cc b/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.cc index 6d96e936c2f9d..ff28e11559a0f 100644 --- a/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.cc +++ b/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.cc @@ -46,27 +46,25 @@ OsConfigZonalServiceTracingConnection::CreateOSPolicyAssignment( StatusOr OsConfigZonalServiceTracingConnection::CreateOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& request) { auto span = internal::MakeSpan( "osconfig_v1::OsConfigZonalServiceConnection::CreateOSPolicyAssignment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateOSPolicyAssignment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateOSPolicyAssignment(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> OsConfigZonalServiceTracingConnection::CreateOSPolicyAssignment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "osconfig_v1::OsConfigZonalServiceConnection::CreateOSPolicyAssignment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateOSPolicyAssignment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateOSPolicyAssignment( + ExperimentalTag{}, operation)); } future> @@ -82,27 +80,25 @@ OsConfigZonalServiceTracingConnection::UpdateOSPolicyAssignment( StatusOr OsConfigZonalServiceTracingConnection::UpdateOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& request) { auto span = internal::MakeSpan( "osconfig_v1::OsConfigZonalServiceConnection::UpdateOSPolicyAssignment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateOSPolicyAssignment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateOSPolicyAssignment(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> OsConfigZonalServiceTracingConnection::UpdateOSPolicyAssignment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "osconfig_v1::OsConfigZonalServiceConnection::UpdateOSPolicyAssignment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateOSPolicyAssignment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateOSPolicyAssignment( + ExperimentalTag{}, operation)); } StatusOr @@ -154,28 +150,26 @@ OsConfigZonalServiceTracingConnection::DeleteOSPolicyAssignment( StatusOr OsConfigZonalServiceTracingConnection::DeleteOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& request) { auto span = internal::MakeSpan( "osconfig_v1::OsConfigZonalServiceConnection::DeleteOSPolicyAssignment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteOSPolicyAssignment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteOSPolicyAssignment(ExperimentalTag{}, NoAwaitTag{}, + request)); } future< StatusOr> OsConfigZonalServiceTracingConnection::DeleteOSPolicyAssignment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "osconfig_v1::OsConfigZonalServiceConnection::DeleteOSPolicyAssignment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteOSPolicyAssignment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteOSPolicyAssignment( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.h b/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.h index 7c95206f41513..c2b0dcbc42e39 100644 --- a/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.h +++ b/google/cloud/osconfig/v1/internal/os_config_zonal_tracing_connection.h @@ -46,13 +46,13 @@ class OsConfigZonalServiceTracingConnection request) override; StatusOr CreateOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& request) override; future> CreateOSPolicyAssignment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -61,13 +61,13 @@ class OsConfigZonalServiceTracingConnection request) override; StatusOr UpdateOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& request) override; future> UpdateOSPolicyAssignment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -92,14 +92,14 @@ class OsConfigZonalServiceTracingConnection request) override; StatusOr DeleteOSPolicyAssignment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& request) override; future> DeleteOSPolicyAssignment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/osconfig/v1/mocks/mock_os_config_zonal_connection.h b/google/cloud/osconfig/v1/mocks/mock_os_config_zonal_connection.h index 3fbacc8bd2b52..8d79336d45dea 100644 --- a/google/cloud/osconfig/v1/mocks/mock_os_config_zonal_connection.h +++ b/google/cloud/osconfig/v1/mocks/mock_os_config_zonal_connection.h @@ -56,14 +56,14 @@ class MockOsConfigZonalServiceConnection MOCK_METHOD( StatusOr, CreateOSPolicyAssignment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& request), (override)); MOCK_METHOD(future>, CreateOSPolicyAssignment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -76,14 +76,14 @@ class MockOsConfigZonalServiceConnection MOCK_METHOD( StatusOr, UpdateOSPolicyAssignment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& request), (override)); MOCK_METHOD(future>, UpdateOSPolicyAssignment, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -116,7 +116,7 @@ class MockOsConfigZonalServiceConnection MOCK_METHOD( StatusOr, DeleteOSPolicyAssignment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& request), (override)); @@ -125,8 +125,7 @@ class MockOsConfigZonalServiceConnection future>, DeleteOSPolicyAssignment, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/policysimulator/v1/internal/simulator_connection_impl.cc b/google/cloud/policysimulator/v1/internal/simulator_connection_impl.cc index 7eb9ad7af5585..b3857241101f9 100644 --- a/google/cloud/policysimulator/v1/internal/simulator_connection_impl.cc +++ b/google/cloud/policysimulator/v1/internal/simulator_connection_impl.cc @@ -122,7 +122,7 @@ SimulatorConnectionImpl::CreateReplay( } StatusOr SimulatorConnectionImpl::CreateReplay( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::policysimulator::v1::CreateReplayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -138,8 +138,7 @@ StatusOr SimulatorConnectionImpl::CreateReplay( future> SimulatorConnectionImpl::CreateReplay( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateReplay( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::policysimulator::v1::CreateReplayRequest const& request) override; future> CreateReplay( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.cc b/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.cc index e36c88502d32d..4915ae524c185 100644 --- a/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.cc +++ b/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.cc @@ -53,26 +53,23 @@ SimulatorTracingConnection::CreateReplay( StatusOr SimulatorTracingConnection::CreateReplay( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::policysimulator::v1::CreateReplayRequest const& request) { auto span = internal::MakeSpan( "policysimulator_v1::SimulatorConnection::CreateReplay"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateReplay(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateReplay(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SimulatorTracingConnection::CreateReplay( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "policysimulator_v1::SimulatorConnection::CreateReplay"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateReplay(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateReplay(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.h b/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.h index a94b2959eb139..d1fab5b7c324d 100644 --- a/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.h +++ b/google/cloud/policysimulator/v1/internal/simulator_tracing_connection.h @@ -49,12 +49,12 @@ class SimulatorTracingConnection override; StatusOr CreateReplay( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::policysimulator::v1::CreateReplayRequest const& request) override; future> CreateReplay( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/policysimulator/v1/mocks/mock_simulator_connection.h b/google/cloud/policysimulator/v1/mocks/mock_simulator_connection.h index 966f8310c74f2..ad1f1e9ce34ea 100644 --- a/google/cloud/policysimulator/v1/mocks/mock_simulator_connection.h +++ b/google/cloud/policysimulator/v1/mocks/mock_simulator_connection.h @@ -59,13 +59,13 @@ class MockSimulatorConnection : public policysimulator_v1::SimulatorConnection { MOCK_METHOD( StatusOr, CreateReplay, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::policysimulator::v1::CreateReplayRequest const& request), (override)); MOCK_METHOD(future>, CreateReplay, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.cc b/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.cc index ae376d885790d..be74192f8a764 100644 --- a/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.cc +++ b/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.cc @@ -218,7 +218,7 @@ CertificateAuthorityServiceConnectionImpl::ActivateCertificateAuthority( StatusOr CertificateAuthorityServiceConnectionImpl::ActivateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: ActivateCertificateAuthorityRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -235,8 +235,7 @@ CertificateAuthorityServiceConnectionImpl::ActivateCertificateAuthority( future> CertificateAuthorityServiceConnectionImpl::ActivateCertificateAuthority( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateAuthorityServiceConnectionImpl::CreateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: CreateCertificateAuthorityRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -331,8 +330,7 @@ CertificateAuthorityServiceConnectionImpl::CreateCertificateAuthority( future> CertificateAuthorityServiceConnectionImpl::CreateCertificateAuthority( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateAuthorityServiceConnectionImpl::DisableCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: DisableCertificateAuthorityRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -427,8 +425,7 @@ CertificateAuthorityServiceConnectionImpl::DisableCertificateAuthority( future> CertificateAuthorityServiceConnectionImpl::DisableCertificateAuthority( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateAuthorityServiceConnectionImpl::EnableCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: EnableCertificateAuthorityRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -523,8 +520,7 @@ CertificateAuthorityServiceConnectionImpl::EnableCertificateAuthority( future> CertificateAuthorityServiceConnectionImpl::EnableCertificateAuthority( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateAuthorityServiceConnectionImpl::UndeleteCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: UndeleteCertificateAuthorityRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -693,8 +689,7 @@ CertificateAuthorityServiceConnectionImpl::UndeleteCertificateAuthority( future> CertificateAuthorityServiceConnectionImpl::UndeleteCertificateAuthority( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateAuthorityServiceConnectionImpl::DeleteCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: DeleteCertificateAuthorityRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -789,8 +784,7 @@ CertificateAuthorityServiceConnectionImpl::DeleteCertificateAuthority( future> CertificateAuthorityServiceConnectionImpl::DeleteCertificateAuthority( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateAuthorityServiceConnectionImpl::UpdateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: UpdateCertificateAuthorityRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -885,8 +879,7 @@ CertificateAuthorityServiceConnectionImpl::UpdateCertificateAuthority( future> CertificateAuthorityServiceConnectionImpl::UpdateCertificateAuthority( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateAuthorityServiceConnectionImpl::CreateCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1::CreateCaPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -982,8 +975,7 @@ CertificateAuthorityServiceConnectionImpl::CreateCaPool( future> CertificateAuthorityServiceConnectionImpl::CreateCaPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateAuthorityServiceConnectionImpl::UpdateCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1::UpdateCaPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1079,8 +1071,7 @@ CertificateAuthorityServiceConnectionImpl::UpdateCaPool( future> CertificateAuthorityServiceConnectionImpl::UpdateCaPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateAuthorityServiceConnectionImpl::DeleteCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1::DeleteCaPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1226,8 +1217,7 @@ CertificateAuthorityServiceConnectionImpl::DeleteCaPool( future> CertificateAuthorityServiceConnectionImpl::DeleteCaPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateAuthorityServiceConnectionImpl::UpdateCertificateRevocationList( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: UpdateCertificateRevocationListRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1400,8 +1390,7 @@ CertificateAuthorityServiceConnectionImpl::UpdateCertificateRevocationList( future< StatusOr> CertificateAuthorityServiceConnectionImpl::UpdateCertificateRevocationList( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateAuthorityServiceConnectionImpl::CreateCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: CreateCertificateTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1496,8 +1485,7 @@ CertificateAuthorityServiceConnectionImpl::CreateCertificateTemplate( future> CertificateAuthorityServiceConnectionImpl::CreateCertificateTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateAuthorityServiceConnectionImpl::DeleteCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: DeleteCertificateTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1592,8 +1580,7 @@ CertificateAuthorityServiceConnectionImpl::DeleteCertificateTemplate( future> CertificateAuthorityServiceConnectionImpl::DeleteCertificateTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CertificateAuthorityServiceConnectionImpl::UpdateCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: UpdateCertificateTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1743,8 +1730,7 @@ CertificateAuthorityServiceConnectionImpl::UpdateCertificateTemplate( future> CertificateAuthorityServiceConnectionImpl::UpdateCertificateTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ActivateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: ActivateCertificateAuthorityRequest const& request) override; future> ActivateCertificateAuthority( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -98,13 +98,13 @@ class CertificateAuthorityServiceConnectionImpl CreateCertificateAuthorityRequest const& request) override; StatusOr CreateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: CreateCertificateAuthorityRequest const& request) override; future> CreateCertificateAuthority( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -113,13 +113,13 @@ class CertificateAuthorityServiceConnectionImpl DisableCertificateAuthorityRequest const& request) override; StatusOr DisableCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: DisableCertificateAuthorityRequest const& request) override; future> DisableCertificateAuthority( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -128,13 +128,13 @@ class CertificateAuthorityServiceConnectionImpl EnableCertificateAuthorityRequest const& request) override; StatusOr EnableCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: EnableCertificateAuthorityRequest const& request) override; future> EnableCertificateAuthority( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr UndeleteCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: UndeleteCertificateAuthorityRequest const& request) override; future> UndeleteCertificateAuthority( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -174,13 +174,13 @@ class CertificateAuthorityServiceConnectionImpl DeleteCertificateAuthorityRequest const& request) override; StatusOr DeleteCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: DeleteCertificateAuthorityRequest const& request) override; future> DeleteCertificateAuthority( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -189,13 +189,13 @@ class CertificateAuthorityServiceConnectionImpl UpdateCertificateAuthorityRequest const& request) override; StatusOr UpdateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: UpdateCertificateAuthorityRequest const& request) override; future> UpdateCertificateAuthority( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateCaPool( @@ -203,12 +203,12 @@ class CertificateAuthorityServiceConnectionImpl request) override; StatusOr CreateCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1::CreateCaPoolRequest const& request) override; future> CreateCaPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateCaPool( @@ -216,12 +216,12 @@ class CertificateAuthorityServiceConnectionImpl request) override; StatusOr UpdateCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1::UpdateCaPoolRequest const& request) override; future> UpdateCaPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetCaPool( @@ -238,12 +238,12 @@ class CertificateAuthorityServiceConnectionImpl request) override; StatusOr DeleteCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1::DeleteCaPoolRequest const& request) override; future> - DeleteCaPool(google::cloud::ExperimentalTag, + DeleteCaPool(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -268,14 +268,14 @@ class CertificateAuthorityServiceConnectionImpl UpdateCertificateRevocationListRequest const& request) override; StatusOr UpdateCertificateRevocationList( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: UpdateCertificateRevocationListRequest const& request) override; future> UpdateCertificateRevocationList( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -284,13 +284,13 @@ class CertificateAuthorityServiceConnectionImpl CreateCertificateTemplateRequest const& request) override; StatusOr CreateCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: CreateCertificateTemplateRequest const& request) override; future> CreateCertificateTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -299,13 +299,13 @@ class CertificateAuthorityServiceConnectionImpl DeleteCertificateTemplateRequest const& request) override; StatusOr DeleteCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: DeleteCertificateTemplateRequest const& request) override; future> DeleteCertificateTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -324,13 +324,13 @@ class CertificateAuthorityServiceConnectionImpl UpdateCertificateTemplateRequest const& request) override; StatusOr UpdateCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::security::privateca::v1:: UpdateCertificateTemplateRequest const& request) override; future> UpdateCertificateTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.cc b/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.cc index 975483c512ac0..7460d28debdcc 100644 --- a/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.cc +++ b/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.cc @@ -101,29 +101,28 @@ CertificateAuthorityServiceTracingConnection::ActivateCertificateAuthority( StatusOr CertificateAuthorityServiceTracingConnection::ActivateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: ActivateCertificateAuthorityRequest const& request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "ActivateCertificateAuthority"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ActivateCertificateAuthority( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->ActivateCertificateAuthority(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> CertificateAuthorityServiceTracingConnection::ActivateCertificateAuthority( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "ActivateCertificateAuthority"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ActivateCertificateAuthority( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->ActivateCertificateAuthority(ExperimentalTag{}, operation)); } future> @@ -140,29 +139,27 @@ CertificateAuthorityServiceTracingConnection::CreateCertificateAuthority( StatusOr CertificateAuthorityServiceTracingConnection::CreateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: CreateCertificateAuthorityRequest const& request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "CreateCertificateAuthority"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateCertificateAuthority( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateCertificateAuthority(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> CertificateAuthorityServiceTracingConnection::CreateCertificateAuthority( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "CreateCertificateAuthority"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateCertificateAuthority( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateCertificateAuthority( + ExperimentalTag{}, operation)); } future> @@ -179,29 +176,27 @@ CertificateAuthorityServiceTracingConnection::DisableCertificateAuthority( StatusOr CertificateAuthorityServiceTracingConnection::DisableCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DisableCertificateAuthorityRequest const& request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "DisableCertificateAuthority"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DisableCertificateAuthority( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DisableCertificateAuthority(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> CertificateAuthorityServiceTracingConnection::DisableCertificateAuthority( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "DisableCertificateAuthority"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DisableCertificateAuthority( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DisableCertificateAuthority( + ExperimentalTag{}, operation)); } future> @@ -218,29 +213,27 @@ CertificateAuthorityServiceTracingConnection::EnableCertificateAuthority( StatusOr CertificateAuthorityServiceTracingConnection::EnableCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: EnableCertificateAuthorityRequest const& request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "EnableCertificateAuthority"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->EnableCertificateAuthority( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->EnableCertificateAuthority(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> CertificateAuthorityServiceTracingConnection::EnableCertificateAuthority( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "EnableCertificateAuthority"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->EnableCertificateAuthority( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->EnableCertificateAuthority( + ExperimentalTag{}, operation)); } StatusOr CertificateAuthorityServiceTracingConnection::UndeleteCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UndeleteCertificateAuthorityRequest const& request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "UndeleteCertificateAuthority"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UndeleteCertificateAuthority( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UndeleteCertificateAuthority(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> CertificateAuthorityServiceTracingConnection::UndeleteCertificateAuthority( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "UndeleteCertificateAuthority"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UndeleteCertificateAuthority( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->UndeleteCertificateAuthority(ExperimentalTag{}, operation)); } future> @@ -334,29 +326,27 @@ CertificateAuthorityServiceTracingConnection::DeleteCertificateAuthority( StatusOr CertificateAuthorityServiceTracingConnection::DeleteCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DeleteCertificateAuthorityRequest const& request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "DeleteCertificateAuthority"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteCertificateAuthority( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteCertificateAuthority(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> CertificateAuthorityServiceTracingConnection::DeleteCertificateAuthority( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "DeleteCertificateAuthority"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteCertificateAuthority( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteCertificateAuthority( + ExperimentalTag{}, operation)); } future> @@ -373,29 +363,27 @@ CertificateAuthorityServiceTracingConnection::UpdateCertificateAuthority( StatusOr CertificateAuthorityServiceTracingConnection::UpdateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateAuthorityRequest const& request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "UpdateCertificateAuthority"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateCertificateAuthority( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateCertificateAuthority(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> CertificateAuthorityServiceTracingConnection::UpdateCertificateAuthority( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "UpdateCertificateAuthority"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateCertificateAuthority( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateCertificateAuthority( + ExperimentalTag{}, operation)); } future> @@ -410,27 +398,24 @@ CertificateAuthorityServiceTracingConnection::CreateCaPool( StatusOr CertificateAuthorityServiceTracingConnection::CreateCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::CreateCaPoolRequest const& request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::CreateCaPool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateCaPool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateCaPool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CertificateAuthorityServiceTracingConnection::CreateCaPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::CreateCaPool"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateCaPool(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateCaPool(ExperimentalTag{}, operation)); } future> @@ -445,27 +430,24 @@ CertificateAuthorityServiceTracingConnection::UpdateCaPool( StatusOr CertificateAuthorityServiceTracingConnection::UpdateCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::UpdateCaPoolRequest const& request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::UpdateCaPool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateCaPool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateCaPool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CertificateAuthorityServiceTracingConnection::UpdateCaPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::UpdateCaPool"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateCaPool(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateCaPool(ExperimentalTag{}, operation)); } StatusOr @@ -501,27 +483,24 @@ CertificateAuthorityServiceTracingConnection::DeleteCaPool( StatusOr CertificateAuthorityServiceTracingConnection::DeleteCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::DeleteCaPoolRequest const& request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::DeleteCaPool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteCaPool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteCaPool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CertificateAuthorityServiceTracingConnection::DeleteCaPool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::DeleteCaPool"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteCaPool(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteCaPool(ExperimentalTag{}, operation)); } StatusOr @@ -575,30 +554,29 @@ CertificateAuthorityServiceTracingConnection::UpdateCertificateRevocationList( StatusOr CertificateAuthorityServiceTracingConnection::UpdateCertificateRevocationList( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateRevocationListRequest const& request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "UpdateCertificateRevocationList"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateCertificateRevocationList( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateCertificateRevocationList(ExperimentalTag{}, + NoAwaitTag{}, request)); } future< StatusOr> CertificateAuthorityServiceTracingConnection::UpdateCertificateRevocationList( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "UpdateCertificateRevocationList"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateCertificateRevocationList( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->UpdateCertificateRevocationList(ExperimentalTag{}, operation)); } future> @@ -615,29 +593,27 @@ CertificateAuthorityServiceTracingConnection::CreateCertificateTemplate( StatusOr CertificateAuthorityServiceTracingConnection::CreateCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: CreateCertificateTemplateRequest const& request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "CreateCertificateTemplate"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateCertificateTemplate( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateCertificateTemplate(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> CertificateAuthorityServiceTracingConnection::CreateCertificateTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "CreateCertificateTemplate"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateCertificateTemplate( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateCertificateTemplate( + ExperimentalTag{}, operation)); } future> @@ -654,29 +630,27 @@ CertificateAuthorityServiceTracingConnection::DeleteCertificateTemplate( StatusOr CertificateAuthorityServiceTracingConnection::DeleteCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DeleteCertificateTemplateRequest const& request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "DeleteCertificateTemplate"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteCertificateTemplate( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteCertificateTemplate(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> CertificateAuthorityServiceTracingConnection::DeleteCertificateTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "DeleteCertificateTemplate"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteCertificateTemplate( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteCertificateTemplate( + ExperimentalTag{}, operation)); } StatusOr @@ -718,29 +692,27 @@ CertificateAuthorityServiceTracingConnection::UpdateCertificateTemplate( StatusOr CertificateAuthorityServiceTracingConnection::UpdateCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateTemplateRequest const& request) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "UpdateCertificateTemplate"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateCertificateTemplate( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateCertificateTemplate(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> CertificateAuthorityServiceTracingConnection::UpdateCertificateTemplate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "privateca_v1::CertificateAuthorityServiceConnection::" "UpdateCertificateTemplate"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateCertificateTemplate( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateCertificateTemplate( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.h b/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.h index 1e5fe7e3b2093..9dee54852e18c 100644 --- a/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.h +++ b/google/cloud/privateca/v1/internal/certificate_authority_tracing_connection.h @@ -71,13 +71,13 @@ class CertificateAuthorityServiceTracingConnection ActivateCertificateAuthorityRequest const& request) override; StatusOr ActivateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: ActivateCertificateAuthorityRequest const& request) override; future> ActivateCertificateAuthority( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -86,13 +86,13 @@ class CertificateAuthorityServiceTracingConnection CreateCertificateAuthorityRequest const& request) override; StatusOr CreateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: CreateCertificateAuthorityRequest const& request) override; future> CreateCertificateAuthority( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -101,13 +101,13 @@ class CertificateAuthorityServiceTracingConnection DisableCertificateAuthorityRequest const& request) override; StatusOr DisableCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DisableCertificateAuthorityRequest const& request) override; future> DisableCertificateAuthority( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -116,13 +116,13 @@ class CertificateAuthorityServiceTracingConnection EnableCertificateAuthorityRequest const& request) override; StatusOr EnableCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: EnableCertificateAuthorityRequest const& request) override; future> EnableCertificateAuthority( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr UndeleteCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UndeleteCertificateAuthorityRequest const& request) override; future> UndeleteCertificateAuthority( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -162,13 +162,13 @@ class CertificateAuthorityServiceTracingConnection DeleteCertificateAuthorityRequest const& request) override; StatusOr DeleteCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DeleteCertificateAuthorityRequest const& request) override; future> DeleteCertificateAuthority( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -177,13 +177,13 @@ class CertificateAuthorityServiceTracingConnection UpdateCertificateAuthorityRequest const& request) override; StatusOr UpdateCertificateAuthority( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateAuthorityRequest const& request) override; future> UpdateCertificateAuthority( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateCaPool( @@ -191,12 +191,12 @@ class CertificateAuthorityServiceTracingConnection request) override; StatusOr CreateCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::CreateCaPoolRequest const& request) override; future> CreateCaPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateCaPool( @@ -204,12 +204,12 @@ class CertificateAuthorityServiceTracingConnection request) override; StatusOr UpdateCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::UpdateCaPoolRequest const& request) override; future> UpdateCaPool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetCaPool( @@ -226,12 +226,12 @@ class CertificateAuthorityServiceTracingConnection request) override; StatusOr DeleteCaPool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::DeleteCaPoolRequest const& request) override; future> - DeleteCaPool(google::cloud::ExperimentalTag, + DeleteCaPool(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -256,14 +256,14 @@ class CertificateAuthorityServiceTracingConnection UpdateCertificateRevocationListRequest const& request) override; StatusOr UpdateCertificateRevocationList( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateRevocationListRequest const& request) override; future> UpdateCertificateRevocationList( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -272,13 +272,13 @@ class CertificateAuthorityServiceTracingConnection CreateCertificateTemplateRequest const& request) override; StatusOr CreateCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: CreateCertificateTemplateRequest const& request) override; future> CreateCertificateTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -287,13 +287,13 @@ class CertificateAuthorityServiceTracingConnection DeleteCertificateTemplateRequest const& request) override; StatusOr DeleteCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DeleteCertificateTemplateRequest const& request) override; future> DeleteCertificateTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -312,13 +312,13 @@ class CertificateAuthorityServiceTracingConnection UpdateCertificateTemplateRequest const& request) override; StatusOr UpdateCertificateTemplate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateTemplateRequest const& request) override; future> UpdateCertificateTemplate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/privateca/v1/mocks/mock_certificate_authority_connection.h b/google/cloud/privateca/v1/mocks/mock_certificate_authority_connection.h index 3110a7330ef2d..48096ca202547 100644 --- a/google/cloud/privateca/v1/mocks/mock_certificate_authority_connection.h +++ b/google/cloud/privateca/v1/mocks/mock_certificate_authority_connection.h @@ -91,7 +91,7 @@ class MockCertificateAuthorityServiceConnection MOCK_METHOD(StatusOr, ActivateCertificateAuthority, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: ActivateCertificateAuthorityRequest const& request), (override)); @@ -100,8 +100,7 @@ class MockCertificateAuthorityServiceConnection future>, ActivateCertificateAuthority, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -114,7 +113,7 @@ class MockCertificateAuthorityServiceConnection MOCK_METHOD(StatusOr, CreateCertificateAuthority, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: CreateCertificateAuthorityRequest const& request), (override)); @@ -123,8 +122,7 @@ class MockCertificateAuthorityServiceConnection future>, CreateCertificateAuthority, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -137,7 +135,7 @@ class MockCertificateAuthorityServiceConnection MOCK_METHOD(StatusOr, DisableCertificateAuthority, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DisableCertificateAuthorityRequest const& request), (override)); @@ -146,8 +144,7 @@ class MockCertificateAuthorityServiceConnection future>, DisableCertificateAuthority, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -160,7 +157,7 @@ class MockCertificateAuthorityServiceConnection MOCK_METHOD(StatusOr, EnableCertificateAuthority, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: EnableCertificateAuthorityRequest const& request), (override)); @@ -169,8 +166,7 @@ class MockCertificateAuthorityServiceConnection future>, EnableCertificateAuthority, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, UndeleteCertificateAuthority, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UndeleteCertificateAuthorityRequest const& request), (override)); @@ -214,8 +210,7 @@ class MockCertificateAuthorityServiceConnection future>, UndeleteCertificateAuthority, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -228,7 +223,7 @@ class MockCertificateAuthorityServiceConnection MOCK_METHOD(StatusOr, DeleteCertificateAuthority, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DeleteCertificateAuthorityRequest const& request), (override)); @@ -237,8 +232,7 @@ class MockCertificateAuthorityServiceConnection future>, DeleteCertificateAuthority, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -251,7 +245,7 @@ class MockCertificateAuthorityServiceConnection MOCK_METHOD(StatusOr, UpdateCertificateAuthority, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateAuthorityRequest const& request), (override)); @@ -260,8 +254,7 @@ class MockCertificateAuthorityServiceConnection future>, UpdateCertificateAuthority, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -273,14 +266,14 @@ class MockCertificateAuthorityServiceConnection MOCK_METHOD( StatusOr, CreateCaPool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::CreateCaPoolRequest const& request), (override)); MOCK_METHOD(future>, CreateCaPool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -293,14 +286,14 @@ class MockCertificateAuthorityServiceConnection MOCK_METHOD( StatusOr, UpdateCaPool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::UpdateCaPoolRequest const& request), (override)); MOCK_METHOD(future>, UpdateCaPool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -325,7 +318,7 @@ class MockCertificateAuthorityServiceConnection MOCK_METHOD( StatusOr, DeleteCaPool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::DeleteCaPoolRequest const& request), (override)); @@ -334,8 +327,7 @@ class MockCertificateAuthorityServiceConnection future< StatusOr>, DeleteCaPool, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -371,7 +363,7 @@ class MockCertificateAuthorityServiceConnection MOCK_METHOD(StatusOr, UpdateCertificateRevocationList, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateRevocationListRequest const& request), (override)); @@ -380,8 +372,7 @@ class MockCertificateAuthorityServiceConnection future>, UpdateCertificateRevocationList, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future, CreateCertificateTemplate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: CreateCertificateTemplateRequest const& request), (override)); @@ -401,7 +392,7 @@ class MockCertificateAuthorityServiceConnection MOCK_METHOD(future>, CreateCertificateTemplate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -415,7 +406,7 @@ class MockCertificateAuthorityServiceConnection MOCK_METHOD(StatusOr, DeleteCertificateTemplate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DeleteCertificateTemplateRequest const& request), (override)); @@ -424,8 +415,7 @@ class MockCertificateAuthorityServiceConnection future< StatusOr>, DeleteCertificateTemplate, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -452,7 +442,7 @@ class MockCertificateAuthorityServiceConnection MOCK_METHOD(StatusOr, UpdateCertificateTemplate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateTemplateRequest const& request), (override)); @@ -460,7 +450,7 @@ class MockCertificateAuthorityServiceConnection MOCK_METHOD(future>, UpdateCertificateTemplate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/pubsublite/internal/admin_connection_impl.cc b/google/cloud/pubsublite/internal/admin_connection_impl.cc index b3f199d2e1262..bf34e48c6d361 100644 --- a/google/cloud/pubsublite/internal/admin_connection_impl.cc +++ b/google/cloud/pubsublite/internal/admin_connection_impl.cc @@ -338,7 +338,7 @@ AdminServiceConnectionImpl::SeekSubscription( StatusOr AdminServiceConnectionImpl::SeekSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -354,8 +354,7 @@ AdminServiceConnectionImpl::SeekSubscription( future> AdminServiceConnectionImpl::SeekSubscription( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/pubsublite/internal/admin_connection_impl.h b/google/cloud/pubsublite/internal/admin_connection_impl.h index 3fd6e01aa2f30..35c83b6aebd97 100644 --- a/google/cloud/pubsublite/internal/admin_connection_impl.h +++ b/google/cloud/pubsublite/internal/admin_connection_impl.h @@ -100,12 +100,12 @@ class AdminServiceConnectionImpl : public pubsublite::AdminServiceConnection { request) override; StatusOr SeekSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request) override; future> - SeekSubscription(google::cloud::ExperimentalTag, + SeekSubscription(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateReservation( diff --git a/google/cloud/pubsublite/internal/admin_tracing_connection.cc b/google/cloud/pubsublite/internal/admin_tracing_connection.cc index ff276746c2729..1fadd081f93a8 100644 --- a/google/cloud/pubsublite/internal/admin_tracing_connection.cc +++ b/google/cloud/pubsublite/internal/admin_tracing_connection.cc @@ -156,26 +156,24 @@ AdminServiceTracingConnection::SeekSubscription( StatusOr AdminServiceTracingConnection::SeekSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request) { auto span = internal::MakeSpan( "pubsublite::AdminServiceConnection::SeekSubscription"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SeekSubscription(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SeekSubscription(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AdminServiceTracingConnection::SeekSubscription( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "pubsublite::AdminServiceConnection::SeekSubscription"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->SeekSubscription(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->SeekSubscription(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/pubsublite/internal/admin_tracing_connection.h b/google/cloud/pubsublite/internal/admin_tracing_connection.h index e9d547522601b..b0238c660db48 100644 --- a/google/cloud/pubsublite/internal/admin_tracing_connection.h +++ b/google/cloud/pubsublite/internal/admin_tracing_connection.h @@ -89,12 +89,12 @@ class AdminServiceTracingConnection request) override; StatusOr SeekSubscription( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request) override; future> - SeekSubscription(google::cloud::ExperimentalTag, + SeekSubscription(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateReservation( diff --git a/google/cloud/pubsublite/mocks/mock_admin_connection.h b/google/cloud/pubsublite/mocks/mock_admin_connection.h index 500004e67f7e7..8726694941ce4 100644 --- a/google/cloud/pubsublite/mocks/mock_admin_connection.h +++ b/google/cloud/pubsublite/mocks/mock_admin_connection.h @@ -113,15 +113,14 @@ class MockAdminServiceConnection : public pubsublite::AdminServiceConnection { MOCK_METHOD( StatusOr, SeekSubscription, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request), (override)); MOCK_METHOD( future>, SeekSubscription, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.cc b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.cc index 92fcb22b5279b..63907d49899d8 100644 --- a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.cc +++ b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.cc @@ -121,7 +121,7 @@ RapidMigrationAssessmentConnectionImpl::CreateCollector( StatusOr RapidMigrationAssessmentConnectionImpl::CreateCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::rapidmigrationassessment::v1::CreateCollectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -138,8 +138,7 @@ RapidMigrationAssessmentConnectionImpl::CreateCollector( future> RapidMigrationAssessmentConnectionImpl::CreateCollector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is RapidMigrationAssessmentConnectionImpl::CreateAnnotation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::rapidmigrationassessment::v1::CreateAnnotationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -234,8 +233,7 @@ RapidMigrationAssessmentConnectionImpl::CreateAnnotation( future> RapidMigrationAssessmentConnectionImpl::CreateAnnotation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is RapidMigrationAssessmentConnectionImpl::UpdateCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::rapidmigrationassessment::v1::UpdateCollectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -399,8 +397,7 @@ RapidMigrationAssessmentConnectionImpl::UpdateCollector( future> RapidMigrationAssessmentConnectionImpl::UpdateCollector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is RapidMigrationAssessmentConnectionImpl::DeleteCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -495,8 +492,7 @@ RapidMigrationAssessmentConnectionImpl::DeleteCollector( future> RapidMigrationAssessmentConnectionImpl::DeleteCollector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is RapidMigrationAssessmentConnectionImpl::ResumeCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -591,8 +587,7 @@ RapidMigrationAssessmentConnectionImpl::ResumeCollector( future> RapidMigrationAssessmentConnectionImpl::ResumeCollector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is RapidMigrationAssessmentConnectionImpl::RegisterCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::rapidmigrationassessment::v1::RegisterCollectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -687,8 +682,7 @@ RapidMigrationAssessmentConnectionImpl::RegisterCollector( future> RapidMigrationAssessmentConnectionImpl::RegisterCollector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is RapidMigrationAssessmentConnectionImpl::PauseCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -783,8 +777,7 @@ RapidMigrationAssessmentConnectionImpl::PauseCollector( future> RapidMigrationAssessmentConnectionImpl::PauseCollector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::rapidmigrationassessment::v1::CreateCollectorRequest const& request) override; future> - CreateCollector(google::cloud::ExperimentalTag, + CreateCollector(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -74,12 +74,12 @@ class RapidMigrationAssessmentConnectionImpl CreateAnnotationRequest const& request) override; StatusOr CreateAnnotation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::rapidmigrationassessment::v1:: CreateAnnotationRequest const& request) override; future> - CreateAnnotation(google::cloud::ExperimentalTag, + CreateAnnotation(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -102,12 +102,12 @@ class RapidMigrationAssessmentConnectionImpl request) override; StatusOr UpdateCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::rapidmigrationassessment::v1::UpdateCollectorRequest const& request) override; future> - UpdateCollector(google::cloud::ExperimentalTag, + UpdateCollector(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -116,12 +116,12 @@ class RapidMigrationAssessmentConnectionImpl request) override; StatusOr DeleteCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& request) override; future> - DeleteCollector(google::cloud::ExperimentalTag, + DeleteCollector(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -130,12 +130,12 @@ class RapidMigrationAssessmentConnectionImpl request) override; StatusOr ResumeCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& request) override; future> - ResumeCollector(google::cloud::ExperimentalTag, + ResumeCollector(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -143,12 +143,12 @@ class RapidMigrationAssessmentConnectionImpl RegisterCollectorRequest const& request) override; StatusOr RegisterCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::rapidmigrationassessment::v1:: RegisterCollectorRequest const& request) override; future> - RegisterCollector(google::cloud::ExperimentalTag, + RegisterCollector(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -157,12 +157,12 @@ class RapidMigrationAssessmentConnectionImpl request) override; StatusOr PauseCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& request) override; future> - PauseCollector(google::cloud::ExperimentalTag, + PauseCollector(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.cc b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.cc index 0c495e8da4bf1..a3cee9e403e77 100644 --- a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.cc +++ b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.cc @@ -50,7 +50,7 @@ RapidMigrationAssessmentTracingConnection::CreateCollector( StatusOr RapidMigrationAssessmentTracingConnection::CreateCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::CreateCollectorRequest const& request) { auto span = internal::MakeSpan( @@ -58,21 +58,18 @@ RapidMigrationAssessmentTracingConnection::CreateCollector( "CreateCollector"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateCollector(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateCollector(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RapidMigrationAssessmentTracingConnection::CreateCollector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" "CreateCollector"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateCollector(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateCollector(ExperimentalTag{}, operation)); } future> @@ -88,7 +85,7 @@ RapidMigrationAssessmentTracingConnection::CreateAnnotation( StatusOr RapidMigrationAssessmentTracingConnection::CreateAnnotation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::CreateAnnotationRequest const& request) { auto span = internal::MakeSpan( @@ -96,21 +93,19 @@ RapidMigrationAssessmentTracingConnection::CreateAnnotation( "CreateAnnotation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateAnnotation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateAnnotation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RapidMigrationAssessmentTracingConnection::CreateAnnotation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" "CreateAnnotation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateAnnotation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateAnnotation(ExperimentalTag{}, operation)); } StatusOr @@ -162,7 +157,7 @@ RapidMigrationAssessmentTracingConnection::UpdateCollector( StatusOr RapidMigrationAssessmentTracingConnection::UpdateCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::UpdateCollectorRequest const& request) { auto span = internal::MakeSpan( @@ -170,21 +165,18 @@ RapidMigrationAssessmentTracingConnection::UpdateCollector( "UpdateCollector"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateCollector(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateCollector(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RapidMigrationAssessmentTracingConnection::UpdateCollector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" "UpdateCollector"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateCollector(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateCollector(ExperimentalTag{}, operation)); } future> @@ -200,7 +192,7 @@ RapidMigrationAssessmentTracingConnection::DeleteCollector( StatusOr RapidMigrationAssessmentTracingConnection::DeleteCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& request) { auto span = internal::MakeSpan( @@ -208,21 +200,18 @@ RapidMigrationAssessmentTracingConnection::DeleteCollector( "DeleteCollector"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteCollector(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteCollector(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RapidMigrationAssessmentTracingConnection::DeleteCollector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" "DeleteCollector"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteCollector(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteCollector(ExperimentalTag{}, operation)); } future> @@ -238,7 +227,7 @@ RapidMigrationAssessmentTracingConnection::ResumeCollector( StatusOr RapidMigrationAssessmentTracingConnection::ResumeCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& request) { auto span = internal::MakeSpan( @@ -246,21 +235,18 @@ RapidMigrationAssessmentTracingConnection::ResumeCollector( "ResumeCollector"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ResumeCollector(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ResumeCollector(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RapidMigrationAssessmentTracingConnection::ResumeCollector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" "ResumeCollector"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ResumeCollector(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ResumeCollector(ExperimentalTag{}, operation)); } future> @@ -276,7 +262,7 @@ RapidMigrationAssessmentTracingConnection::RegisterCollector( StatusOr RapidMigrationAssessmentTracingConnection::RegisterCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::RegisterCollectorRequest const& request) { auto span = internal::MakeSpan( @@ -284,21 +270,19 @@ RapidMigrationAssessmentTracingConnection::RegisterCollector( "RegisterCollector"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RegisterCollector(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->RegisterCollector(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RapidMigrationAssessmentTracingConnection::RegisterCollector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" "RegisterCollector"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RegisterCollector(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RegisterCollector(ExperimentalTag{}, operation)); } future> @@ -314,7 +298,7 @@ RapidMigrationAssessmentTracingConnection::PauseCollector( StatusOr RapidMigrationAssessmentTracingConnection::PauseCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& request) { auto span = internal::MakeSpan( @@ -322,21 +306,18 @@ RapidMigrationAssessmentTracingConnection::PauseCollector( "PauseCollector"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PauseCollector(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PauseCollector(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RapidMigrationAssessmentTracingConnection::PauseCollector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "rapidmigrationassessment_v1::RapidMigrationAssessmentConnection::" "PauseCollector"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->PauseCollector(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->PauseCollector(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.h b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.h index 23ffcceb81de3..1787fbaf62771 100644 --- a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.h +++ b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_tracing_connection.h @@ -49,12 +49,12 @@ class RapidMigrationAssessmentTracingConnection request) override; StatusOr CreateCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::CreateCollectorRequest const& request) override; future> - CreateCollector(google::cloud::ExperimentalTag, + CreateCollector(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -62,12 +62,12 @@ class RapidMigrationAssessmentTracingConnection CreateAnnotationRequest const& request) override; StatusOr CreateAnnotation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: CreateAnnotationRequest const& request) override; future> - CreateAnnotation(google::cloud::ExperimentalTag, + CreateAnnotation(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -90,12 +90,12 @@ class RapidMigrationAssessmentTracingConnection request) override; StatusOr UpdateCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::UpdateCollectorRequest const& request) override; future> - UpdateCollector(google::cloud::ExperimentalTag, + UpdateCollector(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -104,12 +104,12 @@ class RapidMigrationAssessmentTracingConnection request) override; StatusOr DeleteCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& request) override; future> - DeleteCollector(google::cloud::ExperimentalTag, + DeleteCollector(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -118,12 +118,12 @@ class RapidMigrationAssessmentTracingConnection request) override; StatusOr ResumeCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& request) override; future> - ResumeCollector(google::cloud::ExperimentalTag, + ResumeCollector(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -131,12 +131,12 @@ class RapidMigrationAssessmentTracingConnection RegisterCollectorRequest const& request) override; StatusOr RegisterCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: RegisterCollectorRequest const& request) override; future> - RegisterCollector(google::cloud::ExperimentalTag, + RegisterCollector(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -145,12 +145,12 @@ class RapidMigrationAssessmentTracingConnection request) override; StatusOr PauseCollector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& request) override; future> - PauseCollector(google::cloud::ExperimentalTag, + PauseCollector(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/rapidmigrationassessment/v1/mocks/mock_rapid_migration_assessment_connection.h b/google/cloud/rapidmigrationassessment/v1/mocks/mock_rapid_migration_assessment_connection.h index d80a5ca5bd3c0..b555a07d7292a 100644 --- a/google/cloud/rapidmigrationassessment/v1/mocks/mock_rapid_migration_assessment_connection.h +++ b/google/cloud/rapidmigrationassessment/v1/mocks/mock_rapid_migration_assessment_connection.h @@ -56,7 +56,7 @@ class MockRapidMigrationAssessmentConnection (override)); MOCK_METHOD(StatusOr, CreateCollector, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: CreateCollectorRequest const& request), (override)); @@ -64,8 +64,7 @@ class MockRapidMigrationAssessmentConnection MOCK_METHOD( future>, CreateCollector, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -76,7 +75,7 @@ class MockRapidMigrationAssessmentConnection (override)); MOCK_METHOD(StatusOr, CreateAnnotation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: CreateAnnotationRequest const& request), (override)); @@ -84,8 +83,7 @@ class MockRapidMigrationAssessmentConnection MOCK_METHOD( future>, CreateAnnotation, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -117,7 +115,7 @@ class MockRapidMigrationAssessmentConnection (override)); MOCK_METHOD(StatusOr, UpdateCollector, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: UpdateCollectorRequest const& request), (override)); @@ -125,8 +123,7 @@ class MockRapidMigrationAssessmentConnection MOCK_METHOD( future>, UpdateCollector, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -137,7 +134,7 @@ class MockRapidMigrationAssessmentConnection (override)); MOCK_METHOD(StatusOr, DeleteCollector, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: DeleteCollectorRequest const& request), (override)); @@ -145,8 +142,7 @@ class MockRapidMigrationAssessmentConnection MOCK_METHOD( future>, DeleteCollector, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -157,7 +153,7 @@ class MockRapidMigrationAssessmentConnection (override)); MOCK_METHOD(StatusOr, ResumeCollector, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: ResumeCollectorRequest const& request), (override)); @@ -165,8 +161,7 @@ class MockRapidMigrationAssessmentConnection MOCK_METHOD( future>, ResumeCollector, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -177,7 +172,7 @@ class MockRapidMigrationAssessmentConnection (override)); MOCK_METHOD(StatusOr, RegisterCollector, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: RegisterCollectorRequest const& request), (override)); @@ -185,8 +180,7 @@ class MockRapidMigrationAssessmentConnection MOCK_METHOD( future>, RegisterCollector, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -198,7 +192,7 @@ class MockRapidMigrationAssessmentConnection MOCK_METHOD( StatusOr, PauseCollector, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& request), (override)); @@ -206,8 +200,7 @@ class MockRapidMigrationAssessmentConnection MOCK_METHOD( future>, PauseCollector, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.cc b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.cc index 94712b63dc9b7..452f2d39145cb 100644 --- a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.cc +++ b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.cc @@ -159,7 +159,7 @@ CloudRedisClusterConnectionImpl::UpdateCluster( StatusOr CloudRedisClusterConnectionImpl::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::cluster::v1::UpdateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -175,8 +175,7 @@ CloudRedisClusterConnectionImpl::UpdateCluster( future> CloudRedisClusterConnectionImpl::UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future< @@ -252,7 +251,7 @@ CloudRedisClusterConnectionImpl::DeleteCluster( StatusOr CloudRedisClusterConnectionImpl::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::cluster::v1::DeleteClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -268,8 +267,7 @@ CloudRedisClusterConnectionImpl::DeleteCluster( future> CloudRedisClusterConnectionImpl::DeleteCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -344,7 +342,7 @@ CloudRedisClusterConnectionImpl::CreateCluster( StatusOr CloudRedisClusterConnectionImpl::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::cluster::v1::CreateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -360,8 +358,7 @@ CloudRedisClusterConnectionImpl::CreateCluster( future> CloudRedisClusterConnectionImpl::CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future< diff --git a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.h b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.h index 7326203c3eeb6..cfd4ba15ae2db 100644 --- a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.h +++ b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.h @@ -64,12 +64,12 @@ class CloudRedisClusterConnectionImpl override; StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::cluster::v1::UpdateClusterRequest const& request) override; future> UpdateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteCluster( @@ -77,12 +77,12 @@ class CloudRedisClusterConnectionImpl override; StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::cluster::v1::DeleteClusterRequest const& request) override; future> DeleteCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateCluster( @@ -90,12 +90,12 @@ class CloudRedisClusterConnectionImpl override; StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::cluster::v1::CreateClusterRequest const& request) override; future> CreateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.cc b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.cc index f87273aae1d12..8dd0ad8ecaf39 100644 --- a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.cc +++ b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.cc @@ -65,26 +65,23 @@ CloudRedisClusterTracingConnection::UpdateCluster( StatusOr CloudRedisClusterTracingConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::UpdateClusterRequest const& request) { auto span = internal::MakeSpan( "redis_cluster_v1::CloudRedisClusterConnection::UpdateCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudRedisClusterTracingConnection::UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "redis_cluster_v1::CloudRedisClusterConnection::UpdateCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateCluster(ExperimentalTag{}, operation)); } future> @@ -98,26 +95,23 @@ CloudRedisClusterTracingConnection::DeleteCluster( StatusOr CloudRedisClusterTracingConnection::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::DeleteClusterRequest const& request) { auto span = internal::MakeSpan( "redis_cluster_v1::CloudRedisClusterConnection::DeleteCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudRedisClusterTracingConnection::DeleteCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "redis_cluster_v1::CloudRedisClusterConnection::DeleteCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteCluster(ExperimentalTag{}, operation)); } future> @@ -131,26 +125,23 @@ CloudRedisClusterTracingConnection::CreateCluster( StatusOr CloudRedisClusterTracingConnection::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::CreateClusterRequest const& request) { auto span = internal::MakeSpan( "redis_cluster_v1::CloudRedisClusterConnection::CreateCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudRedisClusterTracingConnection::CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "redis_cluster_v1::CloudRedisClusterConnection::CreateCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateCluster(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.h b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.h index 90875e5c06067..76c2b62995b03 100644 --- a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.h +++ b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_tracing_connection.h @@ -52,12 +52,12 @@ class CloudRedisClusterTracingConnection override; StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::UpdateClusterRequest const& request) override; future> UpdateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteCluster( @@ -65,12 +65,12 @@ class CloudRedisClusterTracingConnection override; StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::DeleteClusterRequest const& request) override; future> DeleteCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateCluster( @@ -78,12 +78,12 @@ class CloudRedisClusterTracingConnection override; StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::CreateClusterRequest const& request) override; future> CreateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/redis/cluster/v1/mocks/mock_cloud_redis_cluster_connection.h b/google/cloud/redis/cluster/v1/mocks/mock_cloud_redis_cluster_connection.h index ddef397384e54..e6e6a911d557d 100644 --- a/google/cloud/redis/cluster/v1/mocks/mock_cloud_redis_cluster_connection.h +++ b/google/cloud/redis/cluster/v1/mocks/mock_cloud_redis_cluster_connection.h @@ -65,13 +65,13 @@ class MockCloudRedisClusterConnection MOCK_METHOD( StatusOr, UpdateCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::UpdateClusterRequest const& request), (override)); MOCK_METHOD(future>, UpdateCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -82,12 +82,12 @@ class MockCloudRedisClusterConnection MOCK_METHOD( StatusOr, DeleteCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::DeleteClusterRequest const& request), (override)); MOCK_METHOD(future>, DeleteCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -99,13 +99,13 @@ class MockCloudRedisClusterConnection MOCK_METHOD( StatusOr, CreateCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::CreateClusterRequest const& request), (override)); MOCK_METHOD(future>, CreateCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/redis/v1/internal/cloud_redis_connection_impl.cc b/google/cloud/redis/v1/internal/cloud_redis_connection_impl.cc index 6d67849dc5c04..fd32d4f644b72 100644 --- a/google/cloud/redis/v1/internal/cloud_redis_connection_impl.cc +++ b/google/cloud/redis/v1/internal/cloud_redis_connection_impl.cc @@ -166,7 +166,7 @@ CloudRedisConnectionImpl::CreateInstance( StatusOr CloudRedisConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -181,8 +181,7 @@ CloudRedisConnectionImpl::CreateInstance( future> CloudRedisConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -257,7 +256,7 @@ CloudRedisConnectionImpl::UpdateInstance( StatusOr CloudRedisConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::v1::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -272,8 +271,7 @@ CloudRedisConnectionImpl::UpdateInstance( future> CloudRedisConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -348,7 +346,7 @@ CloudRedisConnectionImpl::UpgradeInstance( StatusOr CloudRedisConnectionImpl::UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::v1::UpgradeInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -363,8 +361,7 @@ CloudRedisConnectionImpl::UpgradeInstance( future> CloudRedisConnectionImpl::UpgradeInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -439,7 +436,7 @@ CloudRedisConnectionImpl::ImportInstance( StatusOr CloudRedisConnectionImpl::ImportInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::v1::ImportInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -454,8 +451,7 @@ CloudRedisConnectionImpl::ImportInstance( future> CloudRedisConnectionImpl::ImportInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -530,7 +526,7 @@ CloudRedisConnectionImpl::ExportInstance( StatusOr CloudRedisConnectionImpl::ExportInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::v1::ExportInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -545,8 +541,7 @@ CloudRedisConnectionImpl::ExportInstance( future> CloudRedisConnectionImpl::ExportInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -621,7 +616,7 @@ CloudRedisConnectionImpl::FailoverInstance( StatusOr CloudRedisConnectionImpl::FailoverInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::v1::FailoverInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -636,8 +631,7 @@ CloudRedisConnectionImpl::FailoverInstance( future> CloudRedisConnectionImpl::FailoverInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -712,7 +706,7 @@ CloudRedisConnectionImpl::DeleteInstance( StatusOr CloudRedisConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -727,8 +721,7 @@ CloudRedisConnectionImpl::DeleteInstance( future> CloudRedisConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -805,7 +798,7 @@ CloudRedisConnectionImpl::RescheduleMaintenance( StatusOr CloudRedisConnectionImpl::RescheduleMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::v1::RescheduleMaintenanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -821,8 +814,7 @@ CloudRedisConnectionImpl::RescheduleMaintenance( future> CloudRedisConnectionImpl::RescheduleMaintenance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/redis/v1/internal/cloud_redis_connection_impl.h b/google/cloud/redis/v1/internal/cloud_redis_connection_impl.h index f24e61a6fb0ff..00272fe50fdab 100644 --- a/google/cloud/redis/v1/internal/cloud_redis_connection_impl.h +++ b/google/cloud/redis/v1/internal/cloud_redis_connection_impl.h @@ -64,55 +64,55 @@ class CloudRedisConnectionImpl : public redis_v1::CloudRedisConnection { google::cloud::redis::v1::CreateInstanceRequest const& request) override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::v1::CreateInstanceRequest const& request) override; future> CreateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateInstance( google::cloud::redis::v1::UpdateInstanceRequest const& request) override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::v1::UpdateInstanceRequest const& request) override; future> UpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpgradeInstance( google::cloud::redis::v1::UpgradeInstanceRequest const& request) override; StatusOr UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::v1::UpgradeInstanceRequest const& request) override; future> UpgradeInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ImportInstance( google::cloud::redis::v1::ImportInstanceRequest const& request) override; StatusOr ImportInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::v1::ImportInstanceRequest const& request) override; future> ImportInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ExportInstance( google::cloud::redis::v1::ExportInstanceRequest const& request) override; StatusOr ExportInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::v1::ExportInstanceRequest const& request) override; future> ExportInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> FailoverInstance( @@ -120,23 +120,23 @@ class CloudRedisConnectionImpl : public redis_v1::CloudRedisConnection { override; StatusOr FailoverInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::v1::FailoverInstanceRequest const& request) override; future> FailoverInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteInstance( google::cloud::redis::v1::DeleteInstanceRequest const& request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::v1::DeleteInstanceRequest const& request) override; future> DeleteInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RescheduleMaintenance( @@ -144,12 +144,12 @@ class CloudRedisConnectionImpl : public redis_v1::CloudRedisConnection { override; StatusOr RescheduleMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::redis::v1::RescheduleMaintenanceRequest const& request) override; future> RescheduleMaintenance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.cc b/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.cc index e400867767ca2..344f6238533c8 100644 --- a/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.cc +++ b/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.cc @@ -72,26 +72,23 @@ CloudRedisTracingConnection::CreateInstance( StatusOr CloudRedisTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::CreateInstanceRequest const& request) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::CreateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudRedisTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::CreateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateInstance(ExperimentalTag{}, operation)); } future> @@ -105,26 +102,23 @@ CloudRedisTracingConnection::UpdateInstance( StatusOr CloudRedisTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::UpdateInstanceRequest const& request) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::UpdateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudRedisTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::UpdateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateInstance(ExperimentalTag{}, operation)); } future> @@ -138,26 +132,23 @@ CloudRedisTracingConnection::UpgradeInstance( StatusOr CloudRedisTracingConnection::UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::UpgradeInstanceRequest const& request) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::UpgradeInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpgradeInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpgradeInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudRedisTracingConnection::UpgradeInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::UpgradeInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpgradeInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpgradeInstance(ExperimentalTag{}, operation)); } future> @@ -171,26 +162,23 @@ CloudRedisTracingConnection::ImportInstance( StatusOr CloudRedisTracingConnection::ImportInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::ImportInstanceRequest const& request) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::ImportInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ImportInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudRedisTracingConnection::ImportInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::ImportInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ImportInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ImportInstance(ExperimentalTag{}, operation)); } future> @@ -204,26 +192,23 @@ CloudRedisTracingConnection::ExportInstance( StatusOr CloudRedisTracingConnection::ExportInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::ExportInstanceRequest const& request) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::ExportInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ExportInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ExportInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudRedisTracingConnection::ExportInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::ExportInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ExportInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ExportInstance(ExperimentalTag{}, operation)); } future> @@ -237,26 +222,24 @@ CloudRedisTracingConnection::FailoverInstance( StatusOr CloudRedisTracingConnection::FailoverInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::FailoverInstanceRequest const& request) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::FailoverInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->FailoverInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->FailoverInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudRedisTracingConnection::FailoverInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::FailoverInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->FailoverInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->FailoverInstance(ExperimentalTag{}, operation)); } future> @@ -270,26 +253,23 @@ CloudRedisTracingConnection::DeleteInstance( StatusOr CloudRedisTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::DeleteInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudRedisTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("redis_v1::CloudRedisConnection::DeleteInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteInstance(ExperimentalTag{}, operation)); } future> @@ -304,26 +284,24 @@ CloudRedisTracingConnection::RescheduleMaintenance( StatusOr CloudRedisTracingConnection::RescheduleMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::RescheduleMaintenanceRequest const& request) { auto span = internal::MakeSpan( "redis_v1::CloudRedisConnection::RescheduleMaintenance"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RescheduleMaintenance( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->RescheduleMaintenance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudRedisTracingConnection::RescheduleMaintenance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "redis_v1::CloudRedisConnection::RescheduleMaintenance"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RescheduleMaintenance( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RescheduleMaintenance( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.h b/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.h index 4f05bb5aab7c0..a5a21ec26908f 100644 --- a/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.h +++ b/google/cloud/redis/v1/internal/cloud_redis_tracing_connection.h @@ -53,55 +53,55 @@ class CloudRedisTracingConnection : public redis_v1::CloudRedisConnection { google::cloud::redis::v1::CreateInstanceRequest const& request) override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::CreateInstanceRequest const& request) override; future> CreateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateInstance( google::cloud::redis::v1::UpdateInstanceRequest const& request) override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::UpdateInstanceRequest const& request) override; future> UpdateInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpgradeInstance( google::cloud::redis::v1::UpgradeInstanceRequest const& request) override; StatusOr UpgradeInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::UpgradeInstanceRequest const& request) override; future> UpgradeInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ImportInstance( google::cloud::redis::v1::ImportInstanceRequest const& request) override; StatusOr ImportInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::ImportInstanceRequest const& request) override; future> ImportInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ExportInstance( google::cloud::redis::v1::ExportInstanceRequest const& request) override; StatusOr ExportInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::ExportInstanceRequest const& request) override; future> ExportInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> FailoverInstance( @@ -109,23 +109,23 @@ class CloudRedisTracingConnection : public redis_v1::CloudRedisConnection { override; StatusOr FailoverInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::FailoverInstanceRequest const& request) override; future> FailoverInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteInstance( google::cloud::redis::v1::DeleteInstanceRequest const& request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::DeleteInstanceRequest const& request) override; future> DeleteInstance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RescheduleMaintenance( @@ -133,12 +133,12 @@ class CloudRedisTracingConnection : public redis_v1::CloudRedisConnection { override; StatusOr RescheduleMaintenance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::RescheduleMaintenanceRequest const& request) override; future> RescheduleMaintenance( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/redis/v1/mocks/mock_cloud_redis_connection.h b/google/cloud/redis/v1/mocks/mock_cloud_redis_connection.h index 46d5d4e0db7e9..6c96a6caae661 100644 --- a/google/cloud/redis/v1/mocks/mock_cloud_redis_connection.h +++ b/google/cloud/redis/v1/mocks/mock_cloud_redis_connection.h @@ -66,13 +66,13 @@ class MockCloudRedisConnection : public redis_v1::CloudRedisConnection { (override)); MOCK_METHOD(StatusOr, CreateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::CreateInstanceRequest const& request), (override)); MOCK_METHOD(future>, CreateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -82,13 +82,13 @@ class MockCloudRedisConnection : public redis_v1::CloudRedisConnection { (override)); MOCK_METHOD(StatusOr, UpdateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::UpdateInstanceRequest const& request), (override)); MOCK_METHOD(future>, UpdateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -98,13 +98,13 @@ class MockCloudRedisConnection : public redis_v1::CloudRedisConnection { (override)); MOCK_METHOD(StatusOr, UpgradeInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::UpgradeInstanceRequest const& request), (override)); MOCK_METHOD(future>, UpgradeInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -114,13 +114,13 @@ class MockCloudRedisConnection : public redis_v1::CloudRedisConnection { (override)); MOCK_METHOD(StatusOr, ImportInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::ImportInstanceRequest const& request), (override)); MOCK_METHOD(future>, ImportInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -130,13 +130,13 @@ class MockCloudRedisConnection : public redis_v1::CloudRedisConnection { (override)); MOCK_METHOD(StatusOr, ExportInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::ExportInstanceRequest const& request), (override)); MOCK_METHOD(future>, ExportInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -147,13 +147,13 @@ class MockCloudRedisConnection : public redis_v1::CloudRedisConnection { MOCK_METHOD( StatusOr, FailoverInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::FailoverInstanceRequest const& request), (override)); MOCK_METHOD(future>, FailoverInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -163,13 +163,13 @@ class MockCloudRedisConnection : public redis_v1::CloudRedisConnection { (override)); MOCK_METHOD(StatusOr, DeleteInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::DeleteInstanceRequest const& request), (override)); MOCK_METHOD(future>, DeleteInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -181,13 +181,13 @@ class MockCloudRedisConnection : public redis_v1::CloudRedisConnection { MOCK_METHOD( StatusOr, RescheduleMaintenance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::RescheduleMaintenanceRequest const& request), (override)); MOCK_METHOD(future>, RescheduleMaintenance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/resourcemanager/v3/internal/folders_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/folders_connection_impl.cc index 89678cc684b4b..d6e5ae9746c86 100644 --- a/google/cloud/resourcemanager/v3/internal/folders_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/folders_connection_impl.cc @@ -189,7 +189,7 @@ FoldersConnectionImpl::CreateFolder( } StatusOr FoldersConnectionImpl::CreateFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::CreateFolderRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -205,8 +205,7 @@ StatusOr FoldersConnectionImpl::CreateFolder( future> FoldersConnectionImpl::CreateFolder( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FoldersConnectionImpl::UpdateFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::UpdateFolderRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -299,8 +298,7 @@ StatusOr FoldersConnectionImpl::UpdateFolder( future> FoldersConnectionImpl::UpdateFolder( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FoldersConnectionImpl::MoveFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::MoveFolderRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -393,8 +391,7 @@ StatusOr FoldersConnectionImpl::MoveFolder( future> FoldersConnectionImpl::MoveFolder( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FoldersConnectionImpl::DeleteFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::DeleteFolderRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -487,8 +484,7 @@ StatusOr FoldersConnectionImpl::DeleteFolder( future> FoldersConnectionImpl::DeleteFolder( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is FoldersConnectionImpl::UndeleteFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -581,8 +577,7 @@ StatusOr FoldersConnectionImpl::UndeleteFolder( future> FoldersConnectionImpl::UndeleteFolder( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::CreateFolderRequest const& request) override; future> CreateFolder( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateFolder( @@ -80,12 +80,12 @@ class FoldersConnectionImpl : public resourcemanager_v3::FoldersConnection { override; StatusOr UpdateFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::UpdateFolderRequest const& request) override; future> UpdateFolder( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> MoveFolder( @@ -93,12 +93,12 @@ class FoldersConnectionImpl : public resourcemanager_v3::FoldersConnection { override; StatusOr MoveFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::MoveFolderRequest const& request) override; future> MoveFolder( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteFolder( @@ -106,12 +106,12 @@ class FoldersConnectionImpl : public resourcemanager_v3::FoldersConnection { override; StatusOr DeleteFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::DeleteFolderRequest const& request) override; future> DeleteFolder( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UndeleteFolder( @@ -119,12 +119,12 @@ class FoldersConnectionImpl : public resourcemanager_v3::FoldersConnection { override; StatusOr UndeleteFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request) override; future> UndeleteFolder( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicy( diff --git a/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.cc index 0ff2e167c6c26..36106bf1ea006 100644 --- a/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.cc @@ -76,26 +76,23 @@ FoldersTracingConnection::CreateFolder( } StatusOr FoldersTracingConnection::CreateFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateFolderRequest const& request) { auto span = internal::MakeSpan("resourcemanager_v3::FoldersConnection::CreateFolder"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateFolder(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateFolder(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FoldersTracingConnection::CreateFolder( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("resourcemanager_v3::FoldersConnection::CreateFolder"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateFolder(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateFolder(ExperimentalTag{}, operation)); } future> @@ -108,26 +105,23 @@ FoldersTracingConnection::UpdateFolder( } StatusOr FoldersTracingConnection::UpdateFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateFolderRequest const& request) { auto span = internal::MakeSpan("resourcemanager_v3::FoldersConnection::UpdateFolder"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateFolder(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateFolder(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FoldersTracingConnection::UpdateFolder( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("resourcemanager_v3::FoldersConnection::UpdateFolder"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateFolder(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateFolder(ExperimentalTag{}, operation)); } future> @@ -140,26 +134,23 @@ FoldersTracingConnection::MoveFolder( } StatusOr FoldersTracingConnection::MoveFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::MoveFolderRequest const& request) { auto span = internal::MakeSpan("resourcemanager_v3::FoldersConnection::MoveFolder"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->MoveFolder(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->MoveFolder(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FoldersTracingConnection::MoveFolder( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("resourcemanager_v3::FoldersConnection::MoveFolder"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->MoveFolder(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->MoveFolder(ExperimentalTag{}, operation)); } future> @@ -172,26 +163,23 @@ FoldersTracingConnection::DeleteFolder( } StatusOr FoldersTracingConnection::DeleteFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteFolderRequest const& request) { auto span = internal::MakeSpan("resourcemanager_v3::FoldersConnection::DeleteFolder"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteFolder(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteFolder(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FoldersTracingConnection::DeleteFolder( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("resourcemanager_v3::FoldersConnection::DeleteFolder"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteFolder(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteFolder(ExperimentalTag{}, operation)); } future> @@ -205,26 +193,23 @@ FoldersTracingConnection::UndeleteFolder( StatusOr FoldersTracingConnection::UndeleteFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::FoldersConnection::UndeleteFolder"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UndeleteFolder(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UndeleteFolder(ExperimentalTag{}, NoAwaitTag{}, request)); } future> FoldersTracingConnection::UndeleteFolder( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "resourcemanager_v3::FoldersConnection::UndeleteFolder"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UndeleteFolder(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UndeleteFolder(ExperimentalTag{}, operation)); } StatusOr FoldersTracingConnection::GetIamPolicy( diff --git a/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.h b/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.h index e10db63cac578..76c4f400e2f0c 100644 --- a/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.h +++ b/google/cloud/resourcemanager/v3/internal/folders_tracing_connection.h @@ -55,12 +55,12 @@ class FoldersTracingConnection : public resourcemanager_v3::FoldersConnection { override; StatusOr CreateFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateFolderRequest const& request) override; future> CreateFolder( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateFolder( @@ -68,12 +68,12 @@ class FoldersTracingConnection : public resourcemanager_v3::FoldersConnection { override; StatusOr UpdateFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateFolderRequest const& request) override; future> UpdateFolder( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> MoveFolder( @@ -81,12 +81,12 @@ class FoldersTracingConnection : public resourcemanager_v3::FoldersConnection { override; StatusOr MoveFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::MoveFolderRequest const& request) override; future> MoveFolder( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteFolder( @@ -94,12 +94,12 @@ class FoldersTracingConnection : public resourcemanager_v3::FoldersConnection { override; StatusOr DeleteFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteFolderRequest const& request) override; future> DeleteFolder( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UndeleteFolder( @@ -107,12 +107,12 @@ class FoldersTracingConnection : public resourcemanager_v3::FoldersConnection { override; StatusOr UndeleteFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request) override; future> UndeleteFolder( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicy( diff --git a/google/cloud/resourcemanager/v3/internal/projects_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/projects_connection_impl.cc index 2f947419b489b..73dd7701aafdb 100644 --- a/google/cloud/resourcemanager/v3/internal/projects_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/projects_connection_impl.cc @@ -192,7 +192,7 @@ ProjectsConnectionImpl::CreateProject( } StatusOr ProjectsConnectionImpl::CreateProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::CreateProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -208,8 +208,7 @@ StatusOr ProjectsConnectionImpl::CreateProject( future> ProjectsConnectionImpl::CreateProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ProjectsConnectionImpl::UpdateProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::UpdateProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -302,8 +301,7 @@ StatusOr ProjectsConnectionImpl::UpdateProject( future> ProjectsConnectionImpl::UpdateProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ProjectsConnectionImpl::MoveProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::MoveProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -396,8 +394,7 @@ StatusOr ProjectsConnectionImpl::MoveProject( future> ProjectsConnectionImpl::MoveProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ProjectsConnectionImpl::DeleteProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::DeleteProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -490,8 +487,7 @@ StatusOr ProjectsConnectionImpl::DeleteProject( future> ProjectsConnectionImpl::DeleteProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ProjectsConnectionImpl::UndeleteProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -585,8 +581,7 @@ ProjectsConnectionImpl::UndeleteProject( future> ProjectsConnectionImpl::UndeleteProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::CreateProjectRequest const& request) override; future> CreateProject( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateProject( @@ -80,12 +80,12 @@ class ProjectsConnectionImpl : public resourcemanager_v3::ProjectsConnection { override; StatusOr UpdateProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::UpdateProjectRequest const& request) override; future> UpdateProject( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> MoveProject( @@ -93,12 +93,12 @@ class ProjectsConnectionImpl : public resourcemanager_v3::ProjectsConnection { override; StatusOr MoveProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::MoveProjectRequest const& request) override; future> MoveProject( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteProject( @@ -106,12 +106,12 @@ class ProjectsConnectionImpl : public resourcemanager_v3::ProjectsConnection { override; StatusOr DeleteProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::DeleteProjectRequest const& request) override; future> DeleteProject( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UndeleteProject( @@ -119,12 +119,12 @@ class ProjectsConnectionImpl : public resourcemanager_v3::ProjectsConnection { override; StatusOr UndeleteProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request) override; future> UndeleteProject( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicy( diff --git a/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.cc index 5887bdcd4f98c..447bf93a1b71d 100644 --- a/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.cc @@ -77,26 +77,23 @@ ProjectsTracingConnection::CreateProject( StatusOr ProjectsTracingConnection::CreateProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateProjectRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::ProjectsConnection::CreateProject"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateProject(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateProject(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProjectsTracingConnection::CreateProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "resourcemanager_v3::ProjectsConnection::CreateProject"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateProject(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateProject(ExperimentalTag{}, operation)); } future> @@ -110,26 +107,23 @@ ProjectsTracingConnection::UpdateProject( StatusOr ProjectsTracingConnection::UpdateProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateProjectRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::ProjectsConnection::UpdateProject"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateProject(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateProject(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProjectsTracingConnection::UpdateProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "resourcemanager_v3::ProjectsConnection::UpdateProject"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateProject(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateProject(ExperimentalTag{}, operation)); } future> @@ -142,26 +136,23 @@ ProjectsTracingConnection::MoveProject( } StatusOr ProjectsTracingConnection::MoveProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::MoveProjectRequest const& request) { auto span = internal::MakeSpan("resourcemanager_v3::ProjectsConnection::MoveProject"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->MoveProject(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->MoveProject(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProjectsTracingConnection::MoveProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("resourcemanager_v3::ProjectsConnection::MoveProject"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->MoveProject(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->MoveProject(ExperimentalTag{}, operation)); } future> @@ -175,26 +166,23 @@ ProjectsTracingConnection::DeleteProject( StatusOr ProjectsTracingConnection::DeleteProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteProjectRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::ProjectsConnection::DeleteProject"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteProject(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteProject(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProjectsTracingConnection::DeleteProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "resourcemanager_v3::ProjectsConnection::DeleteProject"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteProject(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteProject(ExperimentalTag{}, operation)); } future> @@ -208,26 +196,23 @@ ProjectsTracingConnection::UndeleteProject( StatusOr ProjectsTracingConnection::UndeleteProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::ProjectsConnection::UndeleteProject"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UndeleteProject(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UndeleteProject(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProjectsTracingConnection::UndeleteProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "resourcemanager_v3::ProjectsConnection::UndeleteProject"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UndeleteProject(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UndeleteProject(ExperimentalTag{}, operation)); } StatusOr ProjectsTracingConnection::GetIamPolicy( diff --git a/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.h b/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.h index fe53a20d4fa32..60e72ebff625d 100644 --- a/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.h +++ b/google/cloud/resourcemanager/v3/internal/projects_tracing_connection.h @@ -56,12 +56,12 @@ class ProjectsTracingConnection override; StatusOr CreateProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateProjectRequest const& request) override; future> CreateProject( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateProject( @@ -69,12 +69,12 @@ class ProjectsTracingConnection override; StatusOr UpdateProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateProjectRequest const& request) override; future> UpdateProject( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> MoveProject( @@ -82,12 +82,12 @@ class ProjectsTracingConnection override; StatusOr MoveProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::MoveProjectRequest const& request) override; future> MoveProject( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteProject( @@ -95,12 +95,12 @@ class ProjectsTracingConnection override; StatusOr DeleteProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteProjectRequest const& request) override; future> DeleteProject( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UndeleteProject( @@ -108,12 +108,12 @@ class ProjectsTracingConnection override; StatusOr UndeleteProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request) override; future> UndeleteProject( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicy( diff --git a/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.cc index ed20b01bef62c..c35fa54519ed8 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.cc @@ -144,7 +144,7 @@ TagBindingsConnectionImpl::CreateTagBinding( StatusOr TagBindingsConnectionImpl::CreateTagBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::CreateTagBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -161,8 +161,7 @@ TagBindingsConnectionImpl::CreateTagBinding( future> TagBindingsConnectionImpl::CreateTagBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TagBindingsConnectionImpl::DeleteTagBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -258,8 +257,7 @@ TagBindingsConnectionImpl::DeleteTagBinding( future> TagBindingsConnectionImpl::DeleteTagBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateTagBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::CreateTagBindingRequest const& request) override; future> - CreateTagBinding(google::cloud::ExperimentalTag, + CreateTagBinding(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -76,12 +76,12 @@ class TagBindingsConnectionImpl request) override; StatusOr DeleteTagBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& request) override; future> - DeleteTagBinding(google::cloud::ExperimentalTag, + DeleteTagBinding(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.cc index cc64a2e651288..fb05e7aa5c6d2 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.cc @@ -57,27 +57,25 @@ TagBindingsTracingConnection::CreateTagBinding( StatusOr TagBindingsTracingConnection::CreateTagBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagBindingRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::TagBindingsConnection::CreateTagBinding"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateTagBinding(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateTagBinding(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TagBindingsTracingConnection::CreateTagBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "resourcemanager_v3::TagBindingsConnection::CreateTagBinding"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateTagBinding(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateTagBinding(ExperimentalTag{}, operation)); } future> @@ -92,27 +90,25 @@ TagBindingsTracingConnection::DeleteTagBinding( StatusOr TagBindingsTracingConnection::DeleteTagBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::TagBindingsConnection::DeleteTagBinding"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteTagBinding(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteTagBinding(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TagBindingsTracingConnection::DeleteTagBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "resourcemanager_v3::TagBindingsConnection::DeleteTagBinding"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteTagBinding(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteTagBinding(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.h b/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.h index 021796ed192b4..f77c5f83c76ec 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.h +++ b/google/cloud/resourcemanager/v3/internal/tag_bindings_tracing_connection.h @@ -50,12 +50,12 @@ class TagBindingsTracingConnection request) override; StatusOr CreateTagBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagBindingRequest const& request) override; future> - CreateTagBinding(google::cloud::ExperimentalTag, + CreateTagBinding(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -64,12 +64,12 @@ class TagBindingsTracingConnection request) override; StatusOr DeleteTagBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& request) override; future> - DeleteTagBinding(google::cloud::ExperimentalTag, + DeleteTagBinding(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.cc index f315b3486aa8f..f8428cc0bd513 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.cc @@ -107,7 +107,7 @@ TagHoldsConnectionImpl::CreateTagHold( } StatusOr TagHoldsConnectionImpl::CreateTagHold( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -123,8 +123,7 @@ StatusOr TagHoldsConnectionImpl::CreateTagHold( future> TagHoldsConnectionImpl::CreateTagHold( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TagHoldsConnectionImpl::DeleteTagHold( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -217,8 +216,7 @@ StatusOr TagHoldsConnectionImpl::DeleteTagHold( future> TagHoldsConnectionImpl::DeleteTagHold( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateTagHold( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request) override; future> CreateTagHold( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -69,12 +69,12 @@ class TagHoldsConnectionImpl : public resourcemanager_v3::TagHoldsConnection { request) override; StatusOr DeleteTagHold( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request) override; future> - DeleteTagHold(google::cloud::ExperimentalTag, + DeleteTagHold(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTagHolds( diff --git a/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.cc index addfec089cffc..18d47b98e63f3 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.cc @@ -44,26 +44,23 @@ TagHoldsTracingConnection::CreateTagHold( StatusOr TagHoldsTracingConnection::CreateTagHold( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::TagHoldsConnection::CreateTagHold"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateTagHold(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateTagHold(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TagHoldsTracingConnection::CreateTagHold( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "resourcemanager_v3::TagHoldsConnection::CreateTagHold"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateTagHold(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateTagHold(ExperimentalTag{}, operation)); } future> @@ -77,26 +74,23 @@ TagHoldsTracingConnection::DeleteTagHold( StatusOr TagHoldsTracingConnection::DeleteTagHold( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::TagHoldsConnection::DeleteTagHold"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteTagHold(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteTagHold(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TagHoldsTracingConnection::DeleteTagHold( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "resourcemanager_v3::TagHoldsConnection::DeleteTagHold"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteTagHold(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteTagHold(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.h b/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.h index 43fc0e4a0a95a..21bbb22e9fb8f 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.h +++ b/google/cloud/resourcemanager/v3/internal/tag_holds_tracing_connection.h @@ -45,12 +45,12 @@ class TagHoldsTracingConnection override; StatusOr CreateTagHold( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request) override; future> CreateTagHold( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -58,12 +58,12 @@ class TagHoldsTracingConnection request) override; StatusOr DeleteTagHold( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request) override; future> - DeleteTagHold(google::cloud::ExperimentalTag, + DeleteTagHold(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTagHolds( diff --git a/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.cc index 5771a2805efe5..32e4f2bdc0036 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.cc @@ -171,7 +171,7 @@ TagKeysConnectionImpl::CreateTagKey( } StatusOr TagKeysConnectionImpl::CreateTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -187,8 +187,7 @@ StatusOr TagKeysConnectionImpl::CreateTagKey( future> TagKeysConnectionImpl::CreateTagKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TagKeysConnectionImpl::UpdateTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -281,8 +280,7 @@ StatusOr TagKeysConnectionImpl::UpdateTagKey( future> TagKeysConnectionImpl::UpdateTagKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TagKeysConnectionImpl::DeleteTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -375,8 +373,7 @@ StatusOr TagKeysConnectionImpl::DeleteTagKey( future> TagKeysConnectionImpl::DeleteTagKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request) override; future> CreateTagKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateTagKey( @@ -80,12 +80,12 @@ class TagKeysConnectionImpl : public resourcemanager_v3::TagKeysConnection { override; StatusOr UpdateTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request) override; future> UpdateTagKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteTagKey( @@ -93,12 +93,12 @@ class TagKeysConnectionImpl : public resourcemanager_v3::TagKeysConnection { override; StatusOr DeleteTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request) override; future> DeleteTagKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicy( diff --git a/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.cc index d440d41d0f40d..41f43138f8e25 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.cc @@ -74,26 +74,23 @@ TagKeysTracingConnection::CreateTagKey( } StatusOr TagKeysTracingConnection::CreateTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request) { auto span = internal::MakeSpan("resourcemanager_v3::TagKeysConnection::CreateTagKey"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateTagKey(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateTagKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TagKeysTracingConnection::CreateTagKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("resourcemanager_v3::TagKeysConnection::CreateTagKey"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateTagKey(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateTagKey(ExperimentalTag{}, operation)); } future> @@ -106,26 +103,23 @@ TagKeysTracingConnection::UpdateTagKey( } StatusOr TagKeysTracingConnection::UpdateTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request) { auto span = internal::MakeSpan("resourcemanager_v3::TagKeysConnection::UpdateTagKey"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateTagKey(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateTagKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TagKeysTracingConnection::UpdateTagKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("resourcemanager_v3::TagKeysConnection::UpdateTagKey"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateTagKey(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateTagKey(ExperimentalTag{}, operation)); } future> @@ -138,26 +132,23 @@ TagKeysTracingConnection::DeleteTagKey( } StatusOr TagKeysTracingConnection::DeleteTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request) { auto span = internal::MakeSpan("resourcemanager_v3::TagKeysConnection::DeleteTagKey"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteTagKey(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteTagKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TagKeysTracingConnection::DeleteTagKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("resourcemanager_v3::TagKeysConnection::DeleteTagKey"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteTagKey(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteTagKey(ExperimentalTag{}, operation)); } StatusOr TagKeysTracingConnection::GetIamPolicy( diff --git a/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.h b/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.h index dad545c0d1798..7e4b1f69a5837 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.h +++ b/google/cloud/resourcemanager/v3/internal/tag_keys_tracing_connection.h @@ -55,12 +55,12 @@ class TagKeysTracingConnection : public resourcemanager_v3::TagKeysConnection { override; StatusOr CreateTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request) override; future> CreateTagKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateTagKey( @@ -68,12 +68,12 @@ class TagKeysTracingConnection : public resourcemanager_v3::TagKeysConnection { override; StatusOr UpdateTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request) override; future> UpdateTagKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteTagKey( @@ -81,12 +81,12 @@ class TagKeysTracingConnection : public resourcemanager_v3::TagKeysConnection { override; StatusOr DeleteTagKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request) override; future> DeleteTagKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicy( diff --git a/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.cc index db1171714bb68..92789394ed946 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.cc @@ -174,7 +174,7 @@ TagValuesConnectionImpl::CreateTagValue( StatusOr TagValuesConnectionImpl::CreateTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::CreateTagValueRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -190,8 +190,7 @@ TagValuesConnectionImpl::CreateTagValue( future> TagValuesConnectionImpl::CreateTagValue( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TagValuesConnectionImpl::UpdateTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -285,8 +284,7 @@ TagValuesConnectionImpl::UpdateTagValue( future> TagValuesConnectionImpl::UpdateTagValue( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TagValuesConnectionImpl::DeleteTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -380,8 +378,7 @@ TagValuesConnectionImpl::DeleteTagValue( future> TagValuesConnectionImpl::DeleteTagValue( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::CreateTagValueRequest const& request) override; future> CreateTagValue( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateTagValue( @@ -81,12 +81,12 @@ class TagValuesConnectionImpl : public resourcemanager_v3::TagValuesConnection { override; StatusOr UpdateTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request) override; future> UpdateTagValue( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteTagValue( @@ -94,12 +94,12 @@ class TagValuesConnectionImpl : public resourcemanager_v3::TagValuesConnection { override; StatusOr DeleteTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request) override; future> DeleteTagValue( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicy( diff --git a/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.cc b/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.cc index 112c46073d4b0..5f0415b7f3d0c 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.cc @@ -75,26 +75,23 @@ TagValuesTracingConnection::CreateTagValue( StatusOr TagValuesTracingConnection::CreateTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagValueRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::TagValuesConnection::CreateTagValue"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateTagValue(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateTagValue(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TagValuesTracingConnection::CreateTagValue( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "resourcemanager_v3::TagValuesConnection::CreateTagValue"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateTagValue(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateTagValue(ExperimentalTag{}, operation)); } future> @@ -108,26 +105,23 @@ TagValuesTracingConnection::UpdateTagValue( StatusOr TagValuesTracingConnection::UpdateTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::TagValuesConnection::UpdateTagValue"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateTagValue(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateTagValue(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TagValuesTracingConnection::UpdateTagValue( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "resourcemanager_v3::TagValuesConnection::UpdateTagValue"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateTagValue(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateTagValue(ExperimentalTag{}, operation)); } future> @@ -141,26 +135,23 @@ TagValuesTracingConnection::DeleteTagValue( StatusOr TagValuesTracingConnection::DeleteTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request) { auto span = internal::MakeSpan( "resourcemanager_v3::TagValuesConnection::DeleteTagValue"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteTagValue(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteTagValue(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TagValuesTracingConnection::DeleteTagValue( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "resourcemanager_v3::TagValuesConnection::DeleteTagValue"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteTagValue(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteTagValue(ExperimentalTag{}, operation)); } StatusOr TagValuesTracingConnection::GetIamPolicy( diff --git a/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.h b/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.h index 3d9970c382519..064e2c7290f56 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.h +++ b/google/cloud/resourcemanager/v3/internal/tag_values_tracing_connection.h @@ -57,12 +57,12 @@ class TagValuesTracingConnection override; StatusOr CreateTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagValueRequest const& request) override; future> CreateTagValue( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateTagValue( @@ -70,12 +70,12 @@ class TagValuesTracingConnection override; StatusOr UpdateTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request) override; future> UpdateTagValue( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteTagValue( @@ -83,12 +83,12 @@ class TagValuesTracingConnection override; StatusOr DeleteTagValue( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request) override; future> DeleteTagValue( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicy( diff --git a/google/cloud/resourcemanager/v3/mocks/mock_folders_connection.h b/google/cloud/resourcemanager/v3/mocks/mock_folders_connection.h index 124657f0261d2..b25381b532a8b 100644 --- a/google/cloud/resourcemanager/v3/mocks/mock_folders_connection.h +++ b/google/cloud/resourcemanager/v3/mocks/mock_folders_connection.h @@ -69,13 +69,13 @@ class MockFoldersConnection : public resourcemanager_v3::FoldersConnection { MOCK_METHOD( StatusOr, CreateFolder, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateFolderRequest const& request), (override)); MOCK_METHOD(future>, CreateFolder, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -87,13 +87,13 @@ class MockFoldersConnection : public resourcemanager_v3::FoldersConnection { MOCK_METHOD( StatusOr, UpdateFolder, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateFolderRequest const& request), (override)); MOCK_METHOD(future>, UpdateFolder, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -104,13 +104,13 @@ class MockFoldersConnection : public resourcemanager_v3::FoldersConnection { MOCK_METHOD( StatusOr, MoveFolder, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::MoveFolderRequest const& request), (override)); MOCK_METHOD(future>, MoveFolder, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -122,13 +122,13 @@ class MockFoldersConnection : public resourcemanager_v3::FoldersConnection { MOCK_METHOD( StatusOr, DeleteFolder, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteFolderRequest const& request), (override)); MOCK_METHOD(future>, DeleteFolder, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -139,14 +139,14 @@ class MockFoldersConnection : public resourcemanager_v3::FoldersConnection { (override)); MOCK_METHOD(StatusOr, UndeleteFolder, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request), (override)); MOCK_METHOD(future>, UndeleteFolder, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/resourcemanager/v3/mocks/mock_projects_connection.h b/google/cloud/resourcemanager/v3/mocks/mock_projects_connection.h index 669b27812c924..94cf03197c7b3 100644 --- a/google/cloud/resourcemanager/v3/mocks/mock_projects_connection.h +++ b/google/cloud/resourcemanager/v3/mocks/mock_projects_connection.h @@ -70,13 +70,13 @@ class MockProjectsConnection : public resourcemanager_v3::ProjectsConnection { MOCK_METHOD( StatusOr, CreateProject, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateProjectRequest const& request), (override)); MOCK_METHOD(future>, CreateProject, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -88,13 +88,13 @@ class MockProjectsConnection : public resourcemanager_v3::ProjectsConnection { MOCK_METHOD( StatusOr, UpdateProject, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateProjectRequest const& request), (override)); MOCK_METHOD(future>, UpdateProject, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -106,13 +106,13 @@ class MockProjectsConnection : public resourcemanager_v3::ProjectsConnection { MOCK_METHOD( StatusOr, MoveProject, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::MoveProjectRequest const& request), (override)); MOCK_METHOD(future>, MoveProject, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -124,13 +124,13 @@ class MockProjectsConnection : public resourcemanager_v3::ProjectsConnection { MOCK_METHOD( StatusOr, DeleteProject, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteProjectRequest const& request), (override)); MOCK_METHOD(future>, DeleteProject, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -141,14 +141,14 @@ class MockProjectsConnection : public resourcemanager_v3::ProjectsConnection { (override)); MOCK_METHOD(StatusOr, UndeleteProject, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request), (override)); MOCK_METHOD(future>, UndeleteProject, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/resourcemanager/v3/mocks/mock_tag_bindings_connection.h b/google/cloud/resourcemanager/v3/mocks/mock_tag_bindings_connection.h index cb38382569b49..7cb0b462752e0 100644 --- a/google/cloud/resourcemanager/v3/mocks/mock_tag_bindings_connection.h +++ b/google/cloud/resourcemanager/v3/mocks/mock_tag_bindings_connection.h @@ -62,14 +62,14 @@ class MockTagBindingsConnection MOCK_METHOD( StatusOr, CreateTagBinding, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagBindingRequest const& request), (override)); MOCK_METHOD(future>, CreateTagBinding, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -83,7 +83,7 @@ class MockTagBindingsConnection MOCK_METHOD( StatusOr, DeleteTagBinding, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& request), (override)); @@ -92,8 +92,7 @@ class MockTagBindingsConnection future>, DeleteTagBinding, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/resourcemanager/v3/mocks/mock_tag_holds_connection.h b/google/cloud/resourcemanager/v3/mocks/mock_tag_holds_connection.h index 4311b166a751c..fb45a3287fb34 100644 --- a/google/cloud/resourcemanager/v3/mocks/mock_tag_holds_connection.h +++ b/google/cloud/resourcemanager/v3/mocks/mock_tag_holds_connection.h @@ -54,13 +54,13 @@ class MockTagHoldsConnection : public resourcemanager_v3::TagHoldsConnection { MOCK_METHOD( StatusOr, CreateTagHold, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request), (override)); MOCK_METHOD(future>, CreateTagHold, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -73,7 +73,7 @@ class MockTagHoldsConnection : public resourcemanager_v3::TagHoldsConnection { MOCK_METHOD( StatusOr, DeleteTagHold, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request), (override)); @@ -81,8 +81,7 @@ class MockTagHoldsConnection : public resourcemanager_v3::TagHoldsConnection { future< StatusOr>, DeleteTagHold, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), diff --git a/google/cloud/resourcemanager/v3/mocks/mock_tag_keys_connection.h b/google/cloud/resourcemanager/v3/mocks/mock_tag_keys_connection.h index a3e2e011ac8e9..4095262c69702 100644 --- a/google/cloud/resourcemanager/v3/mocks/mock_tag_keys_connection.h +++ b/google/cloud/resourcemanager/v3/mocks/mock_tag_keys_connection.h @@ -70,13 +70,13 @@ class MockTagKeysConnection : public resourcemanager_v3::TagKeysConnection { MOCK_METHOD( StatusOr, CreateTagKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request), (override)); MOCK_METHOD(future>, CreateTagKey, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -88,13 +88,13 @@ class MockTagKeysConnection : public resourcemanager_v3::TagKeysConnection { MOCK_METHOD( StatusOr, UpdateTagKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request), (override)); MOCK_METHOD(future>, UpdateTagKey, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -106,13 +106,13 @@ class MockTagKeysConnection : public resourcemanager_v3::TagKeysConnection { MOCK_METHOD( StatusOr, DeleteTagKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request), (override)); MOCK_METHOD(future>, DeleteTagKey, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/resourcemanager/v3/mocks/mock_tag_values_connection.h b/google/cloud/resourcemanager/v3/mocks/mock_tag_values_connection.h index db81bfaf5debc..2eb0980250824 100644 --- a/google/cloud/resourcemanager/v3/mocks/mock_tag_values_connection.h +++ b/google/cloud/resourcemanager/v3/mocks/mock_tag_values_connection.h @@ -71,14 +71,14 @@ class MockTagValuesConnection : public resourcemanager_v3::TagValuesConnection { (override)); MOCK_METHOD(StatusOr, CreateTagValue, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagValueRequest const& request), (override)); MOCK_METHOD(future>, CreateTagValue, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -89,14 +89,14 @@ class MockTagValuesConnection : public resourcemanager_v3::TagValuesConnection { (override)); MOCK_METHOD(StatusOr, UpdateTagValue, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request), (override)); MOCK_METHOD(future>, UpdateTagValue, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -107,14 +107,14 @@ class MockTagValuesConnection : public resourcemanager_v3::TagValuesConnection { (override)); MOCK_METHOD(StatusOr, DeleteTagValue, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request), (override)); MOCK_METHOD(future>, DeleteTagValue, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/retail/v2/internal/analytics_connection_impl.cc b/google/cloud/retail/v2/internal/analytics_connection_impl.cc index 1b632f3b927f4..bde9629d58338 100644 --- a/google/cloud/retail/v2/internal/analytics_connection_impl.cc +++ b/google/cloud/retail/v2/internal/analytics_connection_impl.cc @@ -105,7 +105,7 @@ AnalyticsServiceConnectionImpl::ExportAnalyticsMetrics( StatusOr AnalyticsServiceConnectionImpl::ExportAnalyticsMetrics( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -121,8 +121,7 @@ AnalyticsServiceConnectionImpl::ExportAnalyticsMetrics( future> AnalyticsServiceConnectionImpl::ExportAnalyticsMetrics( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/retail/v2/internal/analytics_connection_impl.h b/google/cloud/retail/v2/internal/analytics_connection_impl.h index f75f47deff62d..3c87e06f38877 100644 --- a/google/cloud/retail/v2/internal/analytics_connection_impl.h +++ b/google/cloud/retail/v2/internal/analytics_connection_impl.h @@ -57,13 +57,13 @@ class AnalyticsServiceConnectionImpl override; StatusOr ExportAnalyticsMetrics( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request) override; future> ExportAnalyticsMetrics( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/retail/v2/internal/analytics_tracing_connection.cc b/google/cloud/retail/v2/internal/analytics_tracing_connection.cc index 639ee530bd621..98af8c2cb4ecf 100644 --- a/google/cloud/retail/v2/internal/analytics_tracing_connection.cc +++ b/google/cloud/retail/v2/internal/analytics_tracing_connection.cc @@ -44,26 +44,24 @@ AnalyticsServiceTracingConnection::ExportAnalyticsMetrics( StatusOr AnalyticsServiceTracingConnection::ExportAnalyticsMetrics( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request) { auto span = internal::MakeSpan( "retail_v2::AnalyticsServiceConnection::ExportAnalyticsMetrics"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ExportAnalyticsMetrics( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->ExportAnalyticsMetrics(ExperimentalTag{}, NoAwaitTag{}, request)); } future> AnalyticsServiceTracingConnection::ExportAnalyticsMetrics( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "retail_v2::AnalyticsServiceConnection::ExportAnalyticsMetrics"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ExportAnalyticsMetrics( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ExportAnalyticsMetrics( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/retail/v2/internal/analytics_tracing_connection.h b/google/cloud/retail/v2/internal/analytics_tracing_connection.h index 67724c5361aa0..d96f2b3f3955b 100644 --- a/google/cloud/retail/v2/internal/analytics_tracing_connection.h +++ b/google/cloud/retail/v2/internal/analytics_tracing_connection.h @@ -46,13 +46,13 @@ class AnalyticsServiceTracingConnection override; StatusOr ExportAnalyticsMetrics( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request) override; future> ExportAnalyticsMetrics( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/retail/v2/internal/completion_connection_impl.cc b/google/cloud/retail/v2/internal/completion_connection_impl.cc index aca1b99e91395..1e725440ff42d 100644 --- a/google/cloud/retail/v2/internal/completion_connection_impl.cc +++ b/google/cloud/retail/v2/internal/completion_connection_impl.cc @@ -121,7 +121,7 @@ CompletionServiceConnectionImpl::ImportCompletionData( StatusOr CompletionServiceConnectionImpl::ImportCompletionData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::ImportCompletionDataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -137,8 +137,7 @@ CompletionServiceConnectionImpl::ImportCompletionData( future> CompletionServiceConnectionImpl::ImportCompletionData( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/retail/v2/internal/completion_connection_impl.h b/google/cloud/retail/v2/internal/completion_connection_impl.h index b8fc794441d06..21bc8ba48dee7 100644 --- a/google/cloud/retail/v2/internal/completion_connection_impl.h +++ b/google/cloud/retail/v2/internal/completion_connection_impl.h @@ -60,13 +60,13 @@ class CompletionServiceConnectionImpl override; StatusOr ImportCompletionData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::ImportCompletionDataRequest const& request) override; future> ImportCompletionData( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/retail/v2/internal/completion_tracing_connection.cc b/google/cloud/retail/v2/internal/completion_tracing_connection.cc index 1a03d92c4a14b..70d39038d589a 100644 --- a/google/cloud/retail/v2/internal/completion_tracing_connection.cc +++ b/google/cloud/retail/v2/internal/completion_tracing_connection.cc @@ -53,26 +53,24 @@ CompletionServiceTracingConnection::ImportCompletionData( StatusOr CompletionServiceTracingConnection::ImportCompletionData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportCompletionDataRequest const& request) { auto span = internal::MakeSpan( "retail_v2::CompletionServiceConnection::ImportCompletionData"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ImportCompletionData( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->ImportCompletionData(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CompletionServiceTracingConnection::ImportCompletionData( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "retail_v2::CompletionServiceConnection::ImportCompletionData"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ImportCompletionData( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ImportCompletionData( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/retail/v2/internal/completion_tracing_connection.h b/google/cloud/retail/v2/internal/completion_tracing_connection.h index 5dda4840a80a0..d1e4024b98090 100644 --- a/google/cloud/retail/v2/internal/completion_tracing_connection.h +++ b/google/cloud/retail/v2/internal/completion_tracing_connection.h @@ -49,13 +49,13 @@ class CompletionServiceTracingConnection override; StatusOr ImportCompletionData( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportCompletionDataRequest const& request) override; future> ImportCompletionData( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/retail/v2/internal/model_connection_impl.cc b/google/cloud/retail/v2/internal/model_connection_impl.cc index 5dc49c6153120..bf0b2f4ad89a1 100644 --- a/google/cloud/retail/v2/internal/model_connection_impl.cc +++ b/google/cloud/retail/v2/internal/model_connection_impl.cc @@ -104,7 +104,7 @@ ModelServiceConnectionImpl::CreateModel( StatusOr ModelServiceConnectionImpl::CreateModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::CreateModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -119,8 +119,7 @@ ModelServiceConnectionImpl::CreateModel( future> ModelServiceConnectionImpl::CreateModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -294,7 +293,7 @@ ModelServiceConnectionImpl::TuneModel( } StatusOr ModelServiceConnectionImpl::TuneModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::TuneModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -309,8 +308,7 @@ StatusOr ModelServiceConnectionImpl::TuneModel( future> ModelServiceConnectionImpl::TuneModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/retail/v2/internal/model_connection_impl.h b/google/cloud/retail/v2/internal/model_connection_impl.h index bf0fabd49b9fd..ec0834f88ff95 100644 --- a/google/cloud/retail/v2/internal/model_connection_impl.h +++ b/google/cloud/retail/v2/internal/model_connection_impl.h @@ -55,11 +55,11 @@ class ModelServiceConnectionImpl : public retail_v2::ModelServiceConnection { google::cloud::retail::v2::CreateModelRequest const& request) override; StatusOr CreateModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::CreateModelRequest const& request) override; future> CreateModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetModel( @@ -84,11 +84,11 @@ class ModelServiceConnectionImpl : public retail_v2::ModelServiceConnection { google::cloud::retail::v2::TuneModelRequest const& request) override; StatusOr TuneModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::TuneModelRequest const& request) override; future> TuneModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/retail/v2/internal/model_tracing_connection.cc b/google/cloud/retail/v2/internal/model_tracing_connection.cc index 4fca1a861fffd..e64a9d5c86eda 100644 --- a/google/cloud/retail/v2/internal/model_tracing_connection.cc +++ b/google/cloud/retail/v2/internal/model_tracing_connection.cc @@ -44,26 +44,23 @@ ModelServiceTracingConnection::CreateModel( StatusOr ModelServiceTracingConnection::CreateModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::CreateModelRequest const& request) { auto span = internal::MakeSpan("retail_v2::ModelServiceConnection::CreateModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ModelServiceTracingConnection::CreateModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("retail_v2::ModelServiceConnection::CreateModel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateModel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateModel(ExperimentalTag{}, operation)); } StatusOr @@ -131,26 +128,23 @@ ModelServiceTracingConnection::TuneModel( StatusOr ModelServiceTracingConnection::TuneModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::TuneModelRequest const& request) { auto span = internal::MakeSpan("retail_v2::ModelServiceConnection::TuneModel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->TuneModel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->TuneModel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ModelServiceTracingConnection::TuneModel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("retail_v2::ModelServiceConnection::TuneModel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->TuneModel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->TuneModel(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/retail/v2/internal/model_tracing_connection.h b/google/cloud/retail/v2/internal/model_tracing_connection.h index 40b956b94da4a..d1bcb2643c47c 100644 --- a/google/cloud/retail/v2/internal/model_tracing_connection.h +++ b/google/cloud/retail/v2/internal/model_tracing_connection.h @@ -43,11 +43,11 @@ class ModelServiceTracingConnection : public retail_v2::ModelServiceConnection { google::cloud::retail::v2::CreateModelRequest const& request) override; StatusOr CreateModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::CreateModelRequest const& request) override; future> CreateModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetModel( @@ -72,11 +72,11 @@ class ModelServiceTracingConnection : public retail_v2::ModelServiceConnection { google::cloud::retail::v2::TuneModelRequest const& request) override; StatusOr TuneModel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::TuneModelRequest const& request) override; future> TuneModel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/retail/v2/internal/product_connection_impl.cc b/google/cloud/retail/v2/internal/product_connection_impl.cc index 70086d5089f96..1be3755e542bf 100644 --- a/google/cloud/retail/v2/internal/product_connection_impl.cc +++ b/google/cloud/retail/v2/internal/product_connection_impl.cc @@ -194,7 +194,7 @@ ProductServiceConnectionImpl::PurgeProducts( StatusOr ProductServiceConnectionImpl::PurgeProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::PurgeProductsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -209,8 +209,7 @@ ProductServiceConnectionImpl::PurgeProducts( future> ProductServiceConnectionImpl::PurgeProducts( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -286,7 +285,7 @@ ProductServiceConnectionImpl::ImportProducts( StatusOr ProductServiceConnectionImpl::ImportProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::ImportProductsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -301,8 +300,7 @@ ProductServiceConnectionImpl::ImportProducts( future> ProductServiceConnectionImpl::ImportProducts( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -378,7 +376,7 @@ ProductServiceConnectionImpl::SetInventory( StatusOr ProductServiceConnectionImpl::SetInventory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::SetInventoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -393,8 +391,7 @@ ProductServiceConnectionImpl::SetInventory( future> ProductServiceConnectionImpl::SetInventory( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -471,7 +468,7 @@ ProductServiceConnectionImpl::AddFulfillmentPlaces( StatusOr ProductServiceConnectionImpl::AddFulfillmentPlaces( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -487,8 +484,7 @@ ProductServiceConnectionImpl::AddFulfillmentPlaces( future> ProductServiceConnectionImpl::AddFulfillmentPlaces( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ProductServiceConnectionImpl::RemoveFulfillmentPlaces( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -582,8 +578,7 @@ ProductServiceConnectionImpl::RemoveFulfillmentPlaces( future> ProductServiceConnectionImpl::RemoveFulfillmentPlaces( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ProductServiceConnectionImpl::AddLocalInventories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::AddLocalInventoriesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -677,8 +672,7 @@ ProductServiceConnectionImpl::AddLocalInventories( future> ProductServiceConnectionImpl::AddLocalInventories( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ProductServiceConnectionImpl::RemoveLocalInventories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -772,8 +766,7 @@ ProductServiceConnectionImpl::RemoveLocalInventories( future> ProductServiceConnectionImpl::RemoveLocalInventories( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is PurgeProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::PurgeProductsRequest const& request) override; future> - PurgeProducts(google::cloud::ExperimentalTag, + PurgeProducts(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -84,11 +84,11 @@ class ProductServiceConnectionImpl google::cloud::retail::v2::ImportProductsRequest const& request) override; StatusOr ImportProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::ImportProductsRequest const& request) override; future> - ImportProducts(google::cloud::ExperimentalTag, + ImportProducts(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -96,11 +96,11 @@ class ProductServiceConnectionImpl google::cloud::retail::v2::SetInventoryRequest const& request) override; StatusOr SetInventory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::SetInventoryRequest const& request) override; future> - SetInventory(google::cloud::ExperimentalTag, + SetInventory(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -109,13 +109,13 @@ class ProductServiceConnectionImpl override; StatusOr AddFulfillmentPlaces( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request) override; future> AddFulfillmentPlaces( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -124,13 +124,13 @@ class ProductServiceConnectionImpl override; StatusOr RemoveFulfillmentPlaces( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request) override; future> RemoveFulfillmentPlaces( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -139,12 +139,12 @@ class ProductServiceConnectionImpl override; StatusOr AddLocalInventories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::AddLocalInventoriesRequest const& request) override; future> - AddLocalInventories(google::cloud::ExperimentalTag, + AddLocalInventories(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -153,13 +153,13 @@ class ProductServiceConnectionImpl override; StatusOr RemoveLocalInventories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request) override; future> RemoveLocalInventories( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/retail/v2/internal/product_tracing_connection.cc b/google/cloud/retail/v2/internal/product_tracing_connection.cc index 8abbded57df95..ade33a8ce5135 100644 --- a/google/cloud/retail/v2/internal/product_tracing_connection.cc +++ b/google/cloud/retail/v2/internal/product_tracing_connection.cc @@ -90,26 +90,23 @@ ProductServiceTracingConnection::PurgeProducts( StatusOr ProductServiceTracingConnection::PurgeProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::PurgeProductsRequest const& request) { auto span = internal::MakeSpan("retail_v2::ProductServiceConnection::PurgeProducts"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PurgeProducts(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PurgeProducts(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProductServiceTracingConnection::PurgeProducts( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("retail_v2::ProductServiceConnection::PurgeProducts"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PurgeProducts(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->PurgeProducts(ExperimentalTag{}, operation)); } future> @@ -123,26 +120,23 @@ ProductServiceTracingConnection::ImportProducts( StatusOr ProductServiceTracingConnection::ImportProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportProductsRequest const& request) { auto span = internal::MakeSpan("retail_v2::ProductServiceConnection::ImportProducts"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportProducts(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ImportProducts(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProductServiceTracingConnection::ImportProducts( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("retail_v2::ProductServiceConnection::ImportProducts"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ImportProducts(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ImportProducts(ExperimentalTag{}, operation)); } future> @@ -156,26 +150,23 @@ ProductServiceTracingConnection::SetInventory( StatusOr ProductServiceTracingConnection::SetInventory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::SetInventoryRequest const& request) { auto span = internal::MakeSpan("retail_v2::ProductServiceConnection::SetInventory"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SetInventory(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SetInventory(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProductServiceTracingConnection::SetInventory( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("retail_v2::ProductServiceConnection::SetInventory"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SetInventory(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SetInventory(ExperimentalTag{}, operation)); } future> @@ -190,26 +181,24 @@ ProductServiceTracingConnection::AddFulfillmentPlaces( StatusOr ProductServiceTracingConnection::AddFulfillmentPlaces( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request) { auto span = internal::MakeSpan( "retail_v2::ProductServiceConnection::AddFulfillmentPlaces"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->AddFulfillmentPlaces( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->AddFulfillmentPlaces(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProductServiceTracingConnection::AddFulfillmentPlaces( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "retail_v2::ProductServiceConnection::AddFulfillmentPlaces"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->AddFulfillmentPlaces( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->AddFulfillmentPlaces( + ExperimentalTag{}, operation)); } future> @@ -224,26 +213,24 @@ ProductServiceTracingConnection::RemoveFulfillmentPlaces( StatusOr ProductServiceTracingConnection::RemoveFulfillmentPlaces( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request) { auto span = internal::MakeSpan( "retail_v2::ProductServiceConnection::RemoveFulfillmentPlaces"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RemoveFulfillmentPlaces( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->RemoveFulfillmentPlaces(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ProductServiceTracingConnection::RemoveFulfillmentPlaces( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "retail_v2::ProductServiceConnection::RemoveFulfillmentPlaces"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RemoveFulfillmentPlaces( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RemoveFulfillmentPlaces( + ExperimentalTag{}, operation)); } future> @@ -258,26 +245,24 @@ ProductServiceTracingConnection::AddLocalInventories( StatusOr ProductServiceTracingConnection::AddLocalInventories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::AddLocalInventoriesRequest const& request) { auto span = internal::MakeSpan( "retail_v2::ProductServiceConnection::AddLocalInventories"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddLocalInventories(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->AddLocalInventories(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProductServiceTracingConnection::AddLocalInventories( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "retail_v2::ProductServiceConnection::AddLocalInventories"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AddLocalInventories(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->AddLocalInventories( + ExperimentalTag{}, operation)); } future> @@ -292,26 +277,24 @@ ProductServiceTracingConnection::RemoveLocalInventories( StatusOr ProductServiceTracingConnection::RemoveLocalInventories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request) { auto span = internal::MakeSpan( "retail_v2::ProductServiceConnection::RemoveLocalInventories"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RemoveLocalInventories( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->RemoveLocalInventories(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProductServiceTracingConnection::RemoveLocalInventories( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "retail_v2::ProductServiceConnection::RemoveLocalInventories"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RemoveLocalInventories( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RemoveLocalInventories( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/retail/v2/internal/product_tracing_connection.h b/google/cloud/retail/v2/internal/product_tracing_connection.h index 842e18a602ce1..13aa68b11de74 100644 --- a/google/cloud/retail/v2/internal/product_tracing_connection.h +++ b/google/cloud/retail/v2/internal/product_tracing_connection.h @@ -60,11 +60,11 @@ class ProductServiceTracingConnection google::cloud::retail::v2::PurgeProductsRequest const& request) override; StatusOr PurgeProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::PurgeProductsRequest const& request) override; future> - PurgeProducts(google::cloud::ExperimentalTag, + PurgeProducts(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -72,11 +72,11 @@ class ProductServiceTracingConnection google::cloud::retail::v2::ImportProductsRequest const& request) override; StatusOr ImportProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportProductsRequest const& request) override; future> - ImportProducts(google::cloud::ExperimentalTag, + ImportProducts(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -84,11 +84,11 @@ class ProductServiceTracingConnection google::cloud::retail::v2::SetInventoryRequest const& request) override; StatusOr SetInventory( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::SetInventoryRequest const& request) override; future> - SetInventory(google::cloud::ExperimentalTag, + SetInventory(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -97,13 +97,13 @@ class ProductServiceTracingConnection override; StatusOr AddFulfillmentPlaces( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request) override; future> AddFulfillmentPlaces( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -112,13 +112,13 @@ class ProductServiceTracingConnection override; StatusOr RemoveFulfillmentPlaces( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request) override; future> RemoveFulfillmentPlaces( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -127,12 +127,12 @@ class ProductServiceTracingConnection override; StatusOr AddLocalInventories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::AddLocalInventoriesRequest const& request) override; future> - AddLocalInventories(google::cloud::ExperimentalTag, + AddLocalInventories(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -141,13 +141,13 @@ class ProductServiceTracingConnection override; StatusOr RemoveLocalInventories( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request) override; future> RemoveLocalInventories( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/retail/v2/internal/user_event_connection_impl.cc b/google/cloud/retail/v2/internal/user_event_connection_impl.cc index 868193bd9598a..a0c16394903a8 100644 --- a/google/cloud/retail/v2/internal/user_event_connection_impl.cc +++ b/google/cloud/retail/v2/internal/user_event_connection_impl.cc @@ -133,7 +133,7 @@ UserEventServiceConnectionImpl::PurgeUserEvents( StatusOr UserEventServiceConnectionImpl::PurgeUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::PurgeUserEventsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -148,8 +148,7 @@ UserEventServiceConnectionImpl::PurgeUserEvents( future> UserEventServiceConnectionImpl::PurgeUserEvents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -225,7 +224,7 @@ UserEventServiceConnectionImpl::ImportUserEvents( StatusOr UserEventServiceConnectionImpl::ImportUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::ImportUserEventsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -241,8 +240,7 @@ UserEventServiceConnectionImpl::ImportUserEvents( future> UserEventServiceConnectionImpl::ImportUserEvents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -318,7 +316,7 @@ UserEventServiceConnectionImpl::RejoinUserEvents( StatusOr UserEventServiceConnectionImpl::RejoinUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::RejoinUserEventsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -334,8 +332,7 @@ UserEventServiceConnectionImpl::RejoinUserEvents( future> UserEventServiceConnectionImpl::RejoinUserEvents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is PurgeUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::PurgeUserEventsRequest const& request) override; future> - PurgeUserEvents(google::cloud::ExperimentalTag, + PurgeUserEvents(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -76,12 +76,12 @@ class UserEventServiceConnectionImpl request) override; StatusOr ImportUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::ImportUserEventsRequest const& request) override; future> - ImportUserEvents(google::cloud::ExperimentalTag, + ImportUserEvents(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -89,12 +89,12 @@ class UserEventServiceConnectionImpl request) override; StatusOr RejoinUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::retail::v2::RejoinUserEventsRequest const& request) override; future> - RejoinUserEvents(google::cloud::ExperimentalTag, + RejoinUserEvents(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/retail/v2/internal/user_event_tracing_connection.cc b/google/cloud/retail/v2/internal/user_event_tracing_connection.cc index 7e8c0b962c201..8b847519af652 100644 --- a/google/cloud/retail/v2/internal/user_event_tracing_connection.cc +++ b/google/cloud/retail/v2/internal/user_event_tracing_connection.cc @@ -61,26 +61,23 @@ UserEventServiceTracingConnection::PurgeUserEvents( StatusOr UserEventServiceTracingConnection::PurgeUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::PurgeUserEventsRequest const& request) { auto span = internal::MakeSpan( "retail_v2::UserEventServiceConnection::PurgeUserEvents"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PurgeUserEvents(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PurgeUserEvents(ExperimentalTag{}, NoAwaitTag{}, request)); } future> UserEventServiceTracingConnection::PurgeUserEvents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "retail_v2::UserEventServiceConnection::PurgeUserEvents"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->PurgeUserEvents(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->PurgeUserEvents(ExperimentalTag{}, operation)); } future> @@ -94,26 +91,24 @@ UserEventServiceTracingConnection::ImportUserEvents( StatusOr UserEventServiceTracingConnection::ImportUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportUserEventsRequest const& request) { auto span = internal::MakeSpan( "retail_v2::UserEventServiceConnection::ImportUserEvents"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportUserEvents(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ImportUserEvents(ExperimentalTag{}, NoAwaitTag{}, request)); } future> UserEventServiceTracingConnection::ImportUserEvents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "retail_v2::UserEventServiceConnection::ImportUserEvents"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ImportUserEvents(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ImportUserEvents(ExperimentalTag{}, operation)); } future> @@ -127,26 +122,24 @@ UserEventServiceTracingConnection::RejoinUserEvents( StatusOr UserEventServiceTracingConnection::RejoinUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RejoinUserEventsRequest const& request) { auto span = internal::MakeSpan( "retail_v2::UserEventServiceConnection::RejoinUserEvents"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RejoinUserEvents(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->RejoinUserEvents(ExperimentalTag{}, NoAwaitTag{}, request)); } future> UserEventServiceTracingConnection::RejoinUserEvents( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "retail_v2::UserEventServiceConnection::RejoinUserEvents"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RejoinUserEvents(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RejoinUserEvents(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/retail/v2/internal/user_event_tracing_connection.h b/google/cloud/retail/v2/internal/user_event_tracing_connection.h index f3c21370825b5..a6e31fdc914e4 100644 --- a/google/cloud/retail/v2/internal/user_event_tracing_connection.h +++ b/google/cloud/retail/v2/internal/user_event_tracing_connection.h @@ -52,12 +52,12 @@ class UserEventServiceTracingConnection request) override; StatusOr PurgeUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::PurgeUserEventsRequest const& request) override; future> - PurgeUserEvents(google::cloud::ExperimentalTag, + PurgeUserEvents(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -65,12 +65,12 @@ class UserEventServiceTracingConnection request) override; StatusOr ImportUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportUserEventsRequest const& request) override; future> - ImportUserEvents(google::cloud::ExperimentalTag, + ImportUserEvents(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -78,12 +78,12 @@ class UserEventServiceTracingConnection request) override; StatusOr RejoinUserEvents( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RejoinUserEventsRequest const& request) override; future> - RejoinUserEvents(google::cloud::ExperimentalTag, + RejoinUserEvents(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/retail/v2/mocks/mock_analytics_connection.h b/google/cloud/retail/v2/mocks/mock_analytics_connection.h index 293563f63276b..887768c00ac3f 100644 --- a/google/cloud/retail/v2/mocks/mock_analytics_connection.h +++ b/google/cloud/retail/v2/mocks/mock_analytics_connection.h @@ -56,7 +56,7 @@ class MockAnalyticsServiceConnection MOCK_METHOD( StatusOr, ExportAnalyticsMetrics, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request), (override)); @@ -64,8 +64,7 @@ class MockAnalyticsServiceConnection future< StatusOr>, ExportAnalyticsMetrics, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/retail/v2/mocks/mock_completion_connection.h b/google/cloud/retail/v2/mocks/mock_completion_connection.h index 835249ad51aff..6a0ac3c4de428 100644 --- a/google/cloud/retail/v2/mocks/mock_completion_connection.h +++ b/google/cloud/retail/v2/mocks/mock_completion_connection.h @@ -60,15 +60,14 @@ class MockCompletionServiceConnection MOCK_METHOD( StatusOr, ImportCompletionData, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportCompletionDataRequest const& request), (override)); MOCK_METHOD( future>, ImportCompletionData, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/retail/v2/mocks/mock_model_connection.h b/google/cloud/retail/v2/mocks/mock_model_connection.h index 3c5446a0457fa..f2c5ae1e5d3de 100644 --- a/google/cloud/retail/v2/mocks/mock_model_connection.h +++ b/google/cloud/retail/v2/mocks/mock_model_connection.h @@ -51,12 +51,12 @@ class MockModelServiceConnection : public retail_v2::ModelServiceConnection { (override)); MOCK_METHOD(StatusOr, CreateModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::CreateModelRequest const& request), (override)); MOCK_METHOD(future>, CreateModel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -90,13 +90,13 @@ class MockModelServiceConnection : public retail_v2::ModelServiceConnection { (override)); MOCK_METHOD(StatusOr, TuneModel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::TuneModelRequest const& request), (override)); MOCK_METHOD(future>, TuneModel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/retail/v2/mocks/mock_product_connection.h b/google/cloud/retail/v2/mocks/mock_product_connection.h index 53a8598101014..ae71b0b4d0ac0 100644 --- a/google/cloud/retail/v2/mocks/mock_product_connection.h +++ b/google/cloud/retail/v2/mocks/mock_product_connection.h @@ -74,15 +74,14 @@ class MockProductServiceConnection (override)); MOCK_METHOD(StatusOr, PurgeProducts, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::PurgeProductsRequest const& request), (override)); MOCK_METHOD( future>, PurgeProducts, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -92,15 +91,14 @@ class MockProductServiceConnection (override)); MOCK_METHOD(StatusOr, ImportProducts, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportProductsRequest const& request), (override)); MOCK_METHOD( future>, ImportProducts, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future>, @@ -109,13 +107,13 @@ class MockProductServiceConnection (override)); MOCK_METHOD(StatusOr, SetInventory, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::SetInventoryRequest const& request), (override)); MOCK_METHOD(future>, SetInventory, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -127,15 +125,14 @@ class MockProductServiceConnection MOCK_METHOD( StatusOr, AddFulfillmentPlaces, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request), (override)); MOCK_METHOD( future>, AddFulfillmentPlaces, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -147,7 +144,7 @@ class MockProductServiceConnection (override)); MOCK_METHOD(StatusOr, RemoveFulfillmentPlaces, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request), (override)); @@ -156,8 +153,7 @@ class MockProductServiceConnection future< StatusOr>, RemoveFulfillmentPlaces, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -168,15 +164,14 @@ class MockProductServiceConnection MOCK_METHOD( StatusOr, AddLocalInventories, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::AddLocalInventoriesRequest const& request), (override)); MOCK_METHOD( future>, AddLocalInventories, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -188,7 +183,7 @@ class MockProductServiceConnection MOCK_METHOD( StatusOr, RemoveLocalInventories, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request), (override)); @@ -196,8 +191,7 @@ class MockProductServiceConnection future< StatusOr>, RemoveLocalInventories, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/retail/v2/mocks/mock_user_event_connection.h b/google/cloud/retail/v2/mocks/mock_user_event_connection.h index 8dc81e2cdbf3d..fd2ce43c134a3 100644 --- a/google/cloud/retail/v2/mocks/mock_user_event_connection.h +++ b/google/cloud/retail/v2/mocks/mock_user_event_connection.h @@ -64,15 +64,14 @@ class MockUserEventServiceConnection MOCK_METHOD( StatusOr, PurgeUserEvents, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::PurgeUserEventsRequest const& request), (override)); MOCK_METHOD( future>, PurgeUserEvents, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -83,15 +82,14 @@ class MockUserEventServiceConnection MOCK_METHOD( StatusOr, ImportUserEvents, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportUserEventsRequest const& request), (override)); MOCK_METHOD( future>, ImportUserEvents, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -102,15 +100,14 @@ class MockUserEventServiceConnection MOCK_METHOD( StatusOr, RejoinUserEvents, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RejoinUserEventsRequest const& request), (override)); MOCK_METHOD( future>, RejoinUserEvents, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/run/v2/internal/executions_connection_impl.cc b/google/cloud/run/v2/internal/executions_connection_impl.cc index 8321bc6a30090..f36abf12fedbf 100644 --- a/google/cloud/run/v2/internal/executions_connection_impl.cc +++ b/google/cloud/run/v2/internal/executions_connection_impl.cc @@ -151,7 +151,7 @@ ExecutionsConnectionImpl::DeleteExecution( StatusOr ExecutionsConnectionImpl::DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::DeleteExecutionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -166,8 +166,7 @@ ExecutionsConnectionImpl::DeleteExecution( future> ExecutionsConnectionImpl::DeleteExecution( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -241,7 +240,7 @@ ExecutionsConnectionImpl::CancelExecution( StatusOr ExecutionsConnectionImpl::CancelExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::CancelExecutionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -256,8 +255,7 @@ ExecutionsConnectionImpl::CancelExecution( future> ExecutionsConnectionImpl::CancelExecution( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( diff --git a/google/cloud/run/v2/internal/executions_connection_impl.h b/google/cloud/run/v2/internal/executions_connection_impl.h index bb0a09faf1f3d..863e202552229 100644 --- a/google/cloud/run/v2/internal/executions_connection_impl.h +++ b/google/cloud/run/v2/internal/executions_connection_impl.h @@ -60,22 +60,22 @@ class ExecutionsConnectionImpl : public run_v2::ExecutionsConnection { google::cloud::run::v2::DeleteExecutionRequest const& request) override; StatusOr DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::DeleteExecutionRequest const& request) override; future> DeleteExecution( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CancelExecution( google::cloud::run::v2::CancelExecutionRequest const& request) override; StatusOr CancelExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::CancelExecutionRequest const& request) override; future> CancelExecution( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/run/v2/internal/executions_tracing_connection.cc b/google/cloud/run/v2/internal/executions_tracing_connection.cc index df3b4e9177e64..8765c9c9c5261 100644 --- a/google/cloud/run/v2/internal/executions_tracing_connection.cc +++ b/google/cloud/run/v2/internal/executions_tracing_connection.cc @@ -63,26 +63,23 @@ ExecutionsTracingConnection::DeleteExecution( StatusOr ExecutionsTracingConnection::DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteExecutionRequest const& request) { auto span = internal::MakeSpan("run_v2::ExecutionsConnection::DeleteExecution"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteExecution(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteExecution(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ExecutionsTracingConnection::DeleteExecution( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("run_v2::ExecutionsConnection::DeleteExecution"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteExecution(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteExecution(ExperimentalTag{}, operation)); } future> @@ -96,26 +93,23 @@ ExecutionsTracingConnection::CancelExecution( StatusOr ExecutionsTracingConnection::CancelExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CancelExecutionRequest const& request) { auto span = internal::MakeSpan("run_v2::ExecutionsConnection::CancelExecution"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CancelExecution(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CancelExecution(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ExecutionsTracingConnection::CancelExecution( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("run_v2::ExecutionsConnection::CancelExecution"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CancelExecution(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CancelExecution(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/run/v2/internal/executions_tracing_connection.h b/google/cloud/run/v2/internal/executions_tracing_connection.h index 79160503fdc9c..135f0d57f5691 100644 --- a/google/cloud/run/v2/internal/executions_tracing_connection.h +++ b/google/cloud/run/v2/internal/executions_tracing_connection.h @@ -49,22 +49,22 @@ class ExecutionsTracingConnection : public run_v2::ExecutionsConnection { google::cloud::run::v2::DeleteExecutionRequest const& request) override; StatusOr DeleteExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteExecutionRequest const& request) override; future> DeleteExecution( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CancelExecution( google::cloud::run::v2::CancelExecutionRequest const& request) override; StatusOr CancelExecution( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CancelExecutionRequest const& request) override; future> CancelExecution( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/run/v2/internal/jobs_connection_impl.cc b/google/cloud/run/v2/internal/jobs_connection_impl.cc index bcdc9af8a6095..e77903e965cff 100644 --- a/google/cloud/run/v2/internal/jobs_connection_impl.cc +++ b/google/cloud/run/v2/internal/jobs_connection_impl.cc @@ -97,7 +97,7 @@ future> JobsConnectionImpl::CreateJob( } StatusOr JobsConnectionImpl::CreateJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::CreateJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -111,8 +111,7 @@ StatusOr JobsConnectionImpl::CreateJob( } future> JobsConnectionImpl::CreateJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -225,7 +224,7 @@ future> JobsConnectionImpl::UpdateJob( } StatusOr JobsConnectionImpl::UpdateJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::UpdateJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -239,8 +238,7 @@ StatusOr JobsConnectionImpl::UpdateJob( } future> JobsConnectionImpl::UpdateJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -310,7 +308,7 @@ future> JobsConnectionImpl::DeleteJob( } StatusOr JobsConnectionImpl::DeleteJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::DeleteJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -324,8 +322,7 @@ StatusOr JobsConnectionImpl::DeleteJob( } future> JobsConnectionImpl::DeleteJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -395,7 +392,7 @@ future> JobsConnectionImpl::RunJob( } StatusOr JobsConnectionImpl::RunJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::RunJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -409,8 +406,7 @@ StatusOr JobsConnectionImpl::RunJob( } future> JobsConnectionImpl::RunJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( diff --git a/google/cloud/run/v2/internal/jobs_connection_impl.h b/google/cloud/run/v2/internal/jobs_connection_impl.h index f82268247ec41..9e3ffff3a47fb 100644 --- a/google/cloud/run/v2/internal/jobs_connection_impl.h +++ b/google/cloud/run/v2/internal/jobs_connection_impl.h @@ -54,11 +54,11 @@ class JobsConnectionImpl : public run_v2::JobsConnection { google::cloud::run::v2::CreateJobRequest const& request) override; StatusOr CreateJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::CreateJobRequest const& request) override; future> CreateJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetJob( @@ -71,33 +71,33 @@ class JobsConnectionImpl : public run_v2::JobsConnection { google::cloud::run::v2::UpdateJobRequest const& request) override; StatusOr UpdateJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::UpdateJobRequest const& request) override; future> UpdateJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteJob( google::cloud::run::v2::DeleteJobRequest const& request) override; StatusOr DeleteJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::DeleteJobRequest const& request) override; future> DeleteJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RunJob( google::cloud::run::v2::RunJobRequest const& request) override; StatusOr RunJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::RunJobRequest const& request) override; future> RunJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicy( diff --git a/google/cloud/run/v2/internal/jobs_tracing_connection.cc b/google/cloud/run/v2/internal/jobs_tracing_connection.cc index 891d5ebeaa34a..f0a5d9af10daf 100644 --- a/google/cloud/run/v2/internal/jobs_tracing_connection.cc +++ b/google/cloud/run/v2/internal/jobs_tracing_connection.cc @@ -41,23 +41,20 @@ future> JobsTracingConnection::CreateJob( } StatusOr JobsTracingConnection::CreateJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CreateJobRequest const& request) { auto span = internal::MakeSpan("run_v2::JobsConnection::CreateJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> JobsTracingConnection::CreateJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("run_v2::JobsConnection::CreateJob"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateJob(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateJob(ExperimentalTag{}, operation)); } StatusOr JobsTracingConnection::GetJob( @@ -84,23 +81,20 @@ future> JobsTracingConnection::UpdateJob( } StatusOr JobsTracingConnection::UpdateJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::UpdateJobRequest const& request) { auto span = internal::MakeSpan("run_v2::JobsConnection::UpdateJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> JobsTracingConnection::UpdateJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("run_v2::JobsConnection::UpdateJob"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateJob(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateJob(ExperimentalTag{}, operation)); } future> JobsTracingConnection::DeleteJob( @@ -111,23 +105,20 @@ future> JobsTracingConnection::DeleteJob( } StatusOr JobsTracingConnection::DeleteJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteJobRequest const& request) { auto span = internal::MakeSpan("run_v2::JobsConnection::DeleteJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> JobsTracingConnection::DeleteJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("run_v2::JobsConnection::DeleteJob"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteJob(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteJob(ExperimentalTag{}, operation)); } future> @@ -139,23 +130,21 @@ JobsTracingConnection::RunJob( } StatusOr JobsTracingConnection::RunJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::RunJobRequest const& request) { auto span = internal::MakeSpan("run_v2::JobsConnection::RunJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RunJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RunJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> -JobsTracingConnection::RunJob(google::cloud::ExperimentalTag, +JobsTracingConnection::RunJob(ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("run_v2::JobsConnection::RunJob"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RunJob(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RunJob(ExperimentalTag{}, operation)); } StatusOr JobsTracingConnection::GetIamPolicy( diff --git a/google/cloud/run/v2/internal/jobs_tracing_connection.h b/google/cloud/run/v2/internal/jobs_tracing_connection.h index 0f34162bebf3f..e07d915d30487 100644 --- a/google/cloud/run/v2/internal/jobs_tracing_connection.h +++ b/google/cloud/run/v2/internal/jobs_tracing_connection.h @@ -42,11 +42,11 @@ class JobsTracingConnection : public run_v2::JobsConnection { google::cloud::run::v2::CreateJobRequest const& request) override; StatusOr CreateJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CreateJobRequest const& request) override; future> CreateJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetJob( @@ -59,33 +59,33 @@ class JobsTracingConnection : public run_v2::JobsConnection { google::cloud::run::v2::UpdateJobRequest const& request) override; StatusOr UpdateJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::UpdateJobRequest const& request) override; future> UpdateJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteJob( google::cloud::run::v2::DeleteJobRequest const& request) override; StatusOr DeleteJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteJobRequest const& request) override; future> DeleteJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> RunJob( google::cloud::run::v2::RunJobRequest const& request) override; StatusOr RunJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::RunJobRequest const& request) override; future> RunJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicy( diff --git a/google/cloud/run/v2/internal/revisions_connection_impl.cc b/google/cloud/run/v2/internal/revisions_connection_impl.cc index 4e10eb0b1aa3e..e2c455124bfd1 100644 --- a/google/cloud/run/v2/internal/revisions_connection_impl.cc +++ b/google/cloud/run/v2/internal/revisions_connection_impl.cc @@ -150,7 +150,7 @@ RevisionsConnectionImpl::DeleteRevision( StatusOr RevisionsConnectionImpl::DeleteRevision( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::DeleteRevisionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -165,8 +165,7 @@ RevisionsConnectionImpl::DeleteRevision( future> RevisionsConnectionImpl::DeleteRevision( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( diff --git a/google/cloud/run/v2/internal/revisions_connection_impl.h b/google/cloud/run/v2/internal/revisions_connection_impl.h index 96150e1e85bdf..aa3152c6f9e1b 100644 --- a/google/cloud/run/v2/internal/revisions_connection_impl.h +++ b/google/cloud/run/v2/internal/revisions_connection_impl.h @@ -60,11 +60,11 @@ class RevisionsConnectionImpl : public run_v2::RevisionsConnection { google::cloud::run::v2::DeleteRevisionRequest const& request) override; StatusOr DeleteRevision( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::DeleteRevisionRequest const& request) override; future> DeleteRevision( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/run/v2/internal/revisions_tracing_connection.cc b/google/cloud/run/v2/internal/revisions_tracing_connection.cc index 11e401445bd99..db0b765364a81 100644 --- a/google/cloud/run/v2/internal/revisions_tracing_connection.cc +++ b/google/cloud/run/v2/internal/revisions_tracing_connection.cc @@ -61,24 +61,21 @@ RevisionsTracingConnection::DeleteRevision( StatusOr RevisionsTracingConnection::DeleteRevision( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteRevisionRequest const& request) { auto span = internal::MakeSpan("run_v2::RevisionsConnection::DeleteRevision"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteRevision(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteRevision(ExperimentalTag{}, NoAwaitTag{}, request)); } future> RevisionsTracingConnection::DeleteRevision( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("run_v2::RevisionsConnection::DeleteRevision"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteRevision(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteRevision(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/run/v2/internal/revisions_tracing_connection.h b/google/cloud/run/v2/internal/revisions_tracing_connection.h index 5069f5485900d..cc90b987791fa 100644 --- a/google/cloud/run/v2/internal/revisions_tracing_connection.h +++ b/google/cloud/run/v2/internal/revisions_tracing_connection.h @@ -49,11 +49,11 @@ class RevisionsTracingConnection : public run_v2::RevisionsConnection { google::cloud::run::v2::DeleteRevisionRequest const& request) override; StatusOr DeleteRevision( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteRevisionRequest const& request) override; future> DeleteRevision( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/run/v2/internal/services_connection_impl.cc b/google/cloud/run/v2/internal/services_connection_impl.cc index 9baacf6b1e7b8..811b3298e6098 100644 --- a/google/cloud/run/v2/internal/services_connection_impl.cc +++ b/google/cloud/run/v2/internal/services_connection_impl.cc @@ -102,7 +102,7 @@ ServicesConnectionImpl::CreateService( } StatusOr ServicesConnectionImpl::CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::CreateServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -117,8 +117,7 @@ StatusOr ServicesConnectionImpl::CreateService( future> ServicesConnectionImpl::CreateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -237,7 +236,7 @@ ServicesConnectionImpl::UpdateService( } StatusOr ServicesConnectionImpl::UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::UpdateServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -252,8 +251,7 @@ StatusOr ServicesConnectionImpl::UpdateService( future> ServicesConnectionImpl::UpdateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( @@ -326,7 +324,7 @@ ServicesConnectionImpl::DeleteService( } StatusOr ServicesConnectionImpl::DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::DeleteServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -341,8 +339,7 @@ StatusOr ServicesConnectionImpl::DeleteService( future> ServicesConnectionImpl::DeleteService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future>( diff --git a/google/cloud/run/v2/internal/services_connection_impl.h b/google/cloud/run/v2/internal/services_connection_impl.h index 5b5278d540903..a53d94453d936 100644 --- a/google/cloud/run/v2/internal/services_connection_impl.h +++ b/google/cloud/run/v2/internal/services_connection_impl.h @@ -54,11 +54,11 @@ class ServicesConnectionImpl : public run_v2::ServicesConnection { google::cloud::run::v2::CreateServiceRequest const& request) override; StatusOr CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::CreateServiceRequest const& request) override; future> CreateService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetService( @@ -71,22 +71,22 @@ class ServicesConnectionImpl : public run_v2::ServicesConnection { google::cloud::run::v2::UpdateServiceRequest const& request) override; StatusOr UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::UpdateServiceRequest const& request) override; future> UpdateService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteService( google::cloud::run::v2::DeleteServiceRequest const& request) override; StatusOr DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::run::v2::DeleteServiceRequest const& request) override; future> DeleteService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicy( diff --git a/google/cloud/run/v2/internal/services_tracing_connection.cc b/google/cloud/run/v2/internal/services_tracing_connection.cc index 180e27b424ad1..5aae6937e0ecb 100644 --- a/google/cloud/run/v2/internal/services_tracing_connection.cc +++ b/google/cloud/run/v2/internal/services_tracing_connection.cc @@ -43,24 +43,21 @@ ServicesTracingConnection::CreateService( StatusOr ServicesTracingConnection::CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CreateServiceRequest const& request) { auto span = internal::MakeSpan("run_v2::ServicesConnection::CreateService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ServicesTracingConnection::CreateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("run_v2::ServicesConnection::CreateService"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateService(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateService(ExperimentalTag{}, operation)); } StatusOr ServicesTracingConnection::GetService( @@ -90,24 +87,21 @@ ServicesTracingConnection::UpdateService( StatusOr ServicesTracingConnection::UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::UpdateServiceRequest const& request) { auto span = internal::MakeSpan("run_v2::ServicesConnection::UpdateService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ServicesTracingConnection::UpdateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("run_v2::ServicesConnection::UpdateService"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateService(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateService(ExperimentalTag{}, operation)); } future> @@ -120,24 +114,21 @@ ServicesTracingConnection::DeleteService( StatusOr ServicesTracingConnection::DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteServiceRequest const& request) { auto span = internal::MakeSpan("run_v2::ServicesConnection::DeleteService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ServicesTracingConnection::DeleteService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("run_v2::ServicesConnection::DeleteService"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteService(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteService(ExperimentalTag{}, operation)); } StatusOr ServicesTracingConnection::GetIamPolicy( diff --git a/google/cloud/run/v2/internal/services_tracing_connection.h b/google/cloud/run/v2/internal/services_tracing_connection.h index b588d32a149c5..9d9537c1866f0 100644 --- a/google/cloud/run/v2/internal/services_tracing_connection.h +++ b/google/cloud/run/v2/internal/services_tracing_connection.h @@ -43,11 +43,11 @@ class ServicesTracingConnection : public run_v2::ServicesConnection { google::cloud::run::v2::CreateServiceRequest const& request) override; StatusOr CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CreateServiceRequest const& request) override; future> CreateService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetService( @@ -60,22 +60,22 @@ class ServicesTracingConnection : public run_v2::ServicesConnection { google::cloud::run::v2::UpdateServiceRequest const& request) override; StatusOr UpdateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::UpdateServiceRequest const& request) override; future> UpdateService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteService( google::cloud::run::v2::DeleteServiceRequest const& request) override; StatusOr DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteServiceRequest const& request) override; future> DeleteService( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicy( diff --git a/google/cloud/run/v2/mocks/mock_executions_connection.h b/google/cloud/run/v2/mocks/mock_executions_connection.h index 7f090c26d6e7f..d0e06126918d6 100644 --- a/google/cloud/run/v2/mocks/mock_executions_connection.h +++ b/google/cloud/run/v2/mocks/mock_executions_connection.h @@ -60,13 +60,13 @@ class MockExecutionsConnection : public run_v2::ExecutionsConnection { (override)); MOCK_METHOD(StatusOr, DeleteExecution, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteExecutionRequest const& request), (override)); MOCK_METHOD(future>, DeleteExecution, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -76,13 +76,13 @@ class MockExecutionsConnection : public run_v2::ExecutionsConnection { (override)); MOCK_METHOD(StatusOr, CancelExecution, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CancelExecutionRequest const& request), (override)); MOCK_METHOD(future>, CancelExecution, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/run/v2/mocks/mock_jobs_connection.h b/google/cloud/run/v2/mocks/mock_jobs_connection.h index 902c043fb2856..0079aaeb57613 100644 --- a/google/cloud/run/v2/mocks/mock_jobs_connection.h +++ b/google/cloud/run/v2/mocks/mock_jobs_connection.h @@ -51,12 +51,12 @@ class MockJobsConnection : public run_v2::JobsConnection { (override)); MOCK_METHOD(StatusOr, CreateJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CreateJobRequest const& request), (override)); MOCK_METHOD(future>, CreateJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -72,12 +72,12 @@ class MockJobsConnection : public run_v2::JobsConnection { (override)); MOCK_METHOD(StatusOr, UpdateJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::run::v2::UpdateJobRequest const& request), (override)); MOCK_METHOD(future>, UpdateJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -86,12 +86,12 @@ class MockJobsConnection : public run_v2::JobsConnection { (override)); MOCK_METHOD(StatusOr, DeleteJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteJobRequest const& request), (override)); MOCK_METHOD(future>, DeleteJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -100,12 +100,12 @@ class MockJobsConnection : public run_v2::JobsConnection { (override)); MOCK_METHOD(StatusOr, RunJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::run::v2::RunJobRequest const& request), (override)); MOCK_METHOD(future>, RunJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/run/v2/mocks/mock_revisions_connection.h b/google/cloud/run/v2/mocks/mock_revisions_connection.h index c65acd6be9cff..291844bda8c1f 100644 --- a/google/cloud/run/v2/mocks/mock_revisions_connection.h +++ b/google/cloud/run/v2/mocks/mock_revisions_connection.h @@ -60,13 +60,13 @@ class MockRevisionsConnection : public run_v2::RevisionsConnection { (override)); MOCK_METHOD(StatusOr, DeleteRevision, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteRevisionRequest const& request), (override)); MOCK_METHOD(future>, DeleteRevision, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/run/v2/mocks/mock_services_connection.h b/google/cloud/run/v2/mocks/mock_services_connection.h index 9f6913042238b..2e8815a302202 100644 --- a/google/cloud/run/v2/mocks/mock_services_connection.h +++ b/google/cloud/run/v2/mocks/mock_services_connection.h @@ -51,12 +51,12 @@ class MockServicesConnection : public run_v2::ServicesConnection { (override)); MOCK_METHOD(StatusOr, CreateService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CreateServiceRequest const& request), (override)); MOCK_METHOD(future>, CreateService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -73,12 +73,12 @@ class MockServicesConnection : public run_v2::ServicesConnection { (override)); MOCK_METHOD(StatusOr, UpdateService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::run::v2::UpdateServiceRequest const& request), (override)); MOCK_METHOD(future>, UpdateService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -87,12 +87,12 @@ class MockServicesConnection : public run_v2::ServicesConnection { (override)); MOCK_METHOD(StatusOr, DeleteService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteServiceRequest const& request), (override)); MOCK_METHOD(future>, DeleteService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.cc b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.cc index 3d66120e0ce91..1a8bc9067c040 100644 --- a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.cc +++ b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.cc @@ -167,7 +167,7 @@ SecureSourceManagerConnectionImpl::CreateInstance( StatusOr SecureSourceManagerConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::securesourcemanager::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -185,8 +185,7 @@ SecureSourceManagerConnectionImpl::CreateInstance( future> SecureSourceManagerConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SecureSourceManagerConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -283,8 +282,7 @@ SecureSourceManagerConnectionImpl::DeleteInstance( future> SecureSourceManagerConnectionImpl::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SecureSourceManagerConnectionImpl::CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -433,8 +431,7 @@ SecureSourceManagerConnectionImpl::CreateRepository( future> SecureSourceManagerConnectionImpl::CreateRepository( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is SecureSourceManagerConnectionImpl::DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -531,8 +528,7 @@ SecureSourceManagerConnectionImpl::DeleteRepository( future> SecureSourceManagerConnectionImpl::DeleteRepository( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::securesourcemanager::v1::CreateInstanceRequest const& request) override; future> - CreateInstance(google::cloud::ExperimentalTag, + CreateInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -81,12 +81,12 @@ class SecureSourceManagerConnectionImpl request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& request) override; future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -104,12 +104,12 @@ class SecureSourceManagerConnectionImpl request) override; StatusOr CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& request) override; future> - CreateRepository(google::cloud::ExperimentalTag, + CreateRepository(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -118,12 +118,12 @@ class SecureSourceManagerConnectionImpl request) override; StatusOr DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& request) override; future> - DeleteRepository(google::cloud::ExperimentalTag, + DeleteRepository(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicyRepo( diff --git a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.cc b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.cc index 57c470741ab31..7f4d8d9284763 100644 --- a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.cc +++ b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.cc @@ -67,27 +67,24 @@ SecureSourceManagerTracingConnection::CreateInstance( StatusOr SecureSourceManagerTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::CreateInstanceRequest const& request) { auto span = internal::MakeSpan( "securesourcemanager_v1::SecureSourceManagerConnection::CreateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SecureSourceManagerTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "securesourcemanager_v1::SecureSourceManagerConnection::CreateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateInstance(ExperimentalTag{}, operation)); } future> @@ -102,27 +99,24 @@ SecureSourceManagerTracingConnection::DeleteInstance( StatusOr SecureSourceManagerTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& request) { auto span = internal::MakeSpan( "securesourcemanager_v1::SecureSourceManagerConnection::DeleteInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SecureSourceManagerTracingConnection::DeleteInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "securesourcemanager_v1::SecureSourceManagerConnection::DeleteInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteInstance(ExperimentalTag{}, operation)); } StreamRange @@ -161,7 +155,7 @@ SecureSourceManagerTracingConnection::CreateRepository( StatusOr SecureSourceManagerTracingConnection::CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& request) { auto span = internal::MakeSpan( @@ -169,21 +163,19 @@ SecureSourceManagerTracingConnection::CreateRepository( "CreateRepository"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateRepository(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateRepository(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SecureSourceManagerTracingConnection::CreateRepository( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "securesourcemanager_v1::SecureSourceManagerConnection::" "CreateRepository"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateRepository(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateRepository(ExperimentalTag{}, operation)); } future> @@ -199,7 +191,7 @@ SecureSourceManagerTracingConnection::DeleteRepository( StatusOr SecureSourceManagerTracingConnection::DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& request) { auto span = internal::MakeSpan( @@ -207,21 +199,19 @@ SecureSourceManagerTracingConnection::DeleteRepository( "DeleteRepository"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteRepository(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteRepository(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SecureSourceManagerTracingConnection::DeleteRepository( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "securesourcemanager_v1::SecureSourceManagerConnection::" "DeleteRepository"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteRepository(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteRepository(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.h b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.h index 1900f3f3cb1c7..acd8394e881b2 100644 --- a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.h +++ b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_tracing_connection.h @@ -55,12 +55,12 @@ class SecureSourceManagerTracingConnection request) override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::CreateInstanceRequest const& request) override; future> - CreateInstance(google::cloud::ExperimentalTag, + CreateInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -69,12 +69,12 @@ class SecureSourceManagerTracingConnection request) override; StatusOr DeleteInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& request) override; future> - DeleteInstance(google::cloud::ExperimentalTag, + DeleteInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -92,12 +92,12 @@ class SecureSourceManagerTracingConnection request) override; StatusOr CreateRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& request) override; future> - CreateRepository(google::cloud::ExperimentalTag, + CreateRepository(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -106,12 +106,12 @@ class SecureSourceManagerTracingConnection request) override; StatusOr DeleteRepository( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& request) override; future> - DeleteRepository(google::cloud::ExperimentalTag, + DeleteRepository(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetIamPolicyRepo( diff --git a/google/cloud/securesourcemanager/v1/mocks/mock_secure_source_manager_connection.h b/google/cloud/securesourcemanager/v1/mocks/mock_secure_source_manager_connection.h index 66fbad2939082..a4ee301720ae8 100644 --- a/google/cloud/securesourcemanager/v1/mocks/mock_secure_source_manager_connection.h +++ b/google/cloud/securesourcemanager/v1/mocks/mock_secure_source_manager_connection.h @@ -68,7 +68,7 @@ class MockSecureSourceManagerConnection MOCK_METHOD( StatusOr, CreateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::CreateInstanceRequest const& request), (override)); @@ -76,8 +76,7 @@ class MockSecureSourceManagerConnection MOCK_METHOD( future>, CreateInstance, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -90,7 +89,7 @@ class MockSecureSourceManagerConnection MOCK_METHOD( StatusOr, DeleteInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& request), (override)); @@ -99,8 +98,7 @@ class MockSecureSourceManagerConnection future< StatusOr>, DeleteInstance, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -125,7 +123,7 @@ class MockSecureSourceManagerConnection MOCK_METHOD( StatusOr, CreateRepository, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& request), (override)); @@ -133,8 +131,7 @@ class MockSecureSourceManagerConnection MOCK_METHOD( future>, CreateRepository, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -147,7 +144,7 @@ class MockSecureSourceManagerConnection MOCK_METHOD( StatusOr, DeleteRepository, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& request), (override)); @@ -156,8 +153,7 @@ class MockSecureSourceManagerConnection future< StatusOr>, DeleteRepository, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, GetIamPolicyRepo, diff --git a/google/cloud/securitycenter/v1/internal/security_center_connection_impl.cc b/google/cloud/securitycenter/v1/internal/security_center_connection_impl.cc index d5f5dfbf0caf7..d92198d12aa21 100644 --- a/google/cloud/securitycenter/v1/internal/security_center_connection_impl.cc +++ b/google/cloud/securitycenter/v1/internal/security_center_connection_impl.cc @@ -109,7 +109,7 @@ SecurityCenterConnectionImpl::BulkMuteFindings( StatusOr SecurityCenterConnectionImpl::BulkMuteFindings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -125,8 +125,7 @@ SecurityCenterConnectionImpl::BulkMuteFindings( future> SecurityCenterConnectionImpl::BulkMuteFindings( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future< @@ -843,7 +842,7 @@ SecurityCenterConnectionImpl::RunAssetDiscovery( StatusOr SecurityCenterConnectionImpl::RunAssetDiscovery( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -860,8 +859,7 @@ SecurityCenterConnectionImpl::RunAssetDiscovery( future> SecurityCenterConnectionImpl::RunAssetDiscovery( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future< diff --git a/google/cloud/securitycenter/v1/internal/security_center_connection_impl.h b/google/cloud/securitycenter/v1/internal/security_center_connection_impl.h index 6603da7ad048c..614b52d725996 100644 --- a/google/cloud/securitycenter/v1/internal/security_center_connection_impl.h +++ b/google/cloud/securitycenter/v1/internal/security_center_connection_impl.h @@ -58,12 +58,12 @@ class SecurityCenterConnectionImpl override; StatusOr BulkMuteFindings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& request) override; future> - BulkMuteFindings(google::cloud::ExperimentalTag, + BulkMuteFindings(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr< @@ -196,12 +196,12 @@ class SecurityCenterConnectionImpl request) override; StatusOr RunAssetDiscovery( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& request) override; future> - RunAssetDiscovery(google::cloud::ExperimentalTag, + RunAssetDiscovery(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr SetFindingState( diff --git a/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.cc b/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.cc index cfddd701b8db3..efc5fe9dd2135 100644 --- a/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.cc +++ b/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.cc @@ -44,26 +44,24 @@ SecurityCenterTracingConnection::BulkMuteFindings( StatusOr SecurityCenterTracingConnection::BulkMuteFindings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& request) { auto span = internal::MakeSpan( "securitycenter_v1::SecurityCenterConnection::BulkMuteFindings"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BulkMuteFindings(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->BulkMuteFindings(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SecurityCenterTracingConnection::BulkMuteFindings( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "securitycenter_v1::SecurityCenterConnection::BulkMuteFindings"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->BulkMuteFindings(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->BulkMuteFindings(ExperimentalTag{}, operation)); } StatusOr @@ -376,27 +374,25 @@ SecurityCenterTracingConnection::RunAssetDiscovery( StatusOr SecurityCenterTracingConnection::RunAssetDiscovery( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& request) { auto span = internal::MakeSpan( "securitycenter_v1::SecurityCenterConnection::RunAssetDiscovery"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RunAssetDiscovery(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->RunAssetDiscovery(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SecurityCenterTracingConnection::RunAssetDiscovery( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "securitycenter_v1::SecurityCenterConnection::RunAssetDiscovery"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RunAssetDiscovery(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RunAssetDiscovery(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.h b/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.h index cb7402f14590c..faef3e5cc4414 100644 --- a/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.h +++ b/google/cloud/securitycenter/v1/internal/security_center_tracing_connection.h @@ -46,12 +46,12 @@ class SecurityCenterTracingConnection override; StatusOr BulkMuteFindings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& request) override; future> - BulkMuteFindings(google::cloud::ExperimentalTag, + BulkMuteFindings(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr< @@ -184,12 +184,12 @@ class SecurityCenterTracingConnection request) override; StatusOr RunAssetDiscovery( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& request) override; future> - RunAssetDiscovery(google::cloud::ExperimentalTag, + RunAssetDiscovery(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr SetFindingState( diff --git a/google/cloud/securitycenter/v1/mocks/mock_security_center_connection.h b/google/cloud/securitycenter/v1/mocks/mock_security_center_connection.h index ce7475a5e1ebd..84841a1cb0259 100644 --- a/google/cloud/securitycenter/v1/mocks/mock_security_center_connection.h +++ b/google/cloud/securitycenter/v1/mocks/mock_security_center_connection.h @@ -55,7 +55,7 @@ class MockSecurityCenterConnection (override)); MOCK_METHOD(StatusOr, BulkMuteFindings, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& request), (override)); @@ -63,7 +63,7 @@ class MockSecurityCenterConnection MOCK_METHOD(future>, BulkMuteFindings, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -239,7 +239,7 @@ class MockSecurityCenterConnection MOCK_METHOD( StatusOr, RunAssetDiscovery, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& request), (override)); @@ -248,8 +248,7 @@ class MockSecurityCenterConnection future>, RunAssetDiscovery, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, diff --git a/google/cloud/securitycenter/v2/internal/security_center_connection_impl.cc b/google/cloud/securitycenter/v2/internal/security_center_connection_impl.cc index eb05a1fcc0ad7..a694c42fd73ee 100644 --- a/google/cloud/securitycenter/v2/internal/security_center_connection_impl.cc +++ b/google/cloud/securitycenter/v2/internal/security_center_connection_impl.cc @@ -127,7 +127,7 @@ SecurityCenterConnectionImpl::BulkMuteFindings( StatusOr SecurityCenterConnectionImpl::BulkMuteFindings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -143,8 +143,7 @@ SecurityCenterConnectionImpl::BulkMuteFindings( future> SecurityCenterConnectionImpl::BulkMuteFindings( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata().Is()) { return make_ready_future< diff --git a/google/cloud/securitycenter/v2/internal/security_center_connection_impl.h b/google/cloud/securitycenter/v2/internal/security_center_connection_impl.h index 279231af92935..43567610f9df3 100644 --- a/google/cloud/securitycenter/v2/internal/security_center_connection_impl.h +++ b/google/cloud/securitycenter/v2/internal/security_center_connection_impl.h @@ -64,12 +64,12 @@ class SecurityCenterConnectionImpl override; StatusOr BulkMuteFindings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& request) override; future> - BulkMuteFindings(google::cloud::ExperimentalTag, + BulkMuteFindings(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.cc b/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.cc index 138fb6235a6a2..dda98bb72f3f8 100644 --- a/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.cc +++ b/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.cc @@ -57,26 +57,24 @@ SecurityCenterTracingConnection::BulkMuteFindings( StatusOr SecurityCenterTracingConnection::BulkMuteFindings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& request) { auto span = internal::MakeSpan( "securitycenter_v2::SecurityCenterConnection::BulkMuteFindings"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BulkMuteFindings(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->BulkMuteFindings(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SecurityCenterTracingConnection::BulkMuteFindings( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "securitycenter_v2::SecurityCenterConnection::BulkMuteFindings"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->BulkMuteFindings(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->BulkMuteFindings(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.h b/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.h index 666dc46490ab4..ca138fda97dc7 100644 --- a/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.h +++ b/google/cloud/securitycenter/v2/internal/security_center_tracing_connection.h @@ -52,12 +52,12 @@ class SecurityCenterTracingConnection override; StatusOr BulkMuteFindings( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& request) override; future> - BulkMuteFindings(google::cloud::ExperimentalTag, + BulkMuteFindings(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/securitycenter/v2/mocks/mock_security_center_connection.h b/google/cloud/securitycenter/v2/mocks/mock_security_center_connection.h index 41a3d0ddd6bb5..cac3d9c9dcb38 100644 --- a/google/cloud/securitycenter/v2/mocks/mock_security_center_connection.h +++ b/google/cloud/securitycenter/v2/mocks/mock_security_center_connection.h @@ -62,7 +62,7 @@ class MockSecurityCenterConnection (override)); MOCK_METHOD(StatusOr, BulkMuteFindings, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& request), (override)); @@ -70,7 +70,7 @@ class MockSecurityCenterConnection MOCK_METHOD(future>, BulkMuteFindings, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.cc b/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.cc index 1de32667ace3d..5fdfdfac090d0 100644 --- a/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.cc +++ b/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.cc @@ -160,7 +160,7 @@ ServiceManagerConnectionImpl::CreateService( StatusOr ServiceManagerConnectionImpl::CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::servicemanagement::v1::CreateServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -176,8 +176,7 @@ ServiceManagerConnectionImpl::CreateService( future> ServiceManagerConnectionImpl::CreateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ServiceManagerConnectionImpl::DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::servicemanagement::v1::DeleteServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -271,8 +270,7 @@ ServiceManagerConnectionImpl::DeleteService( future> ServiceManagerConnectionImpl::DeleteService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ServiceManagerConnectionImpl::UndeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::servicemanagement::v1::UndeleteServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -366,8 +364,7 @@ ServiceManagerConnectionImpl::UndeleteService( future> ServiceManagerConnectionImpl::UndeleteService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ServiceManagerConnectionImpl::SubmitConfigSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::servicemanagement::v1::SubmitConfigSourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -530,8 +527,7 @@ ServiceManagerConnectionImpl::SubmitConfigSource( future> ServiceManagerConnectionImpl::SubmitConfigSource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is ServiceManagerConnectionImpl::CreateServiceRollout( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::servicemanagement::v1::CreateServiceRolloutRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -679,8 +675,7 @@ ServiceManagerConnectionImpl::CreateServiceRollout( future> ServiceManagerConnectionImpl::CreateServiceRollout( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::servicemanagement::v1::CreateServiceRequest const& request) override; future> - CreateService(google::cloud::ExperimentalTag, + CreateService(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -77,12 +77,12 @@ class ServiceManagerConnectionImpl request) override; StatusOr DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::servicemanagement::v1::DeleteServiceRequest const& request) override; future> - DeleteService(google::cloud::ExperimentalTag, + DeleteService(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -91,12 +91,12 @@ class ServiceManagerConnectionImpl override; StatusOr UndeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::servicemanagement::v1::UndeleteServiceRequest const& request) override; future> - UndeleteService(google::cloud::ExperimentalTag, + UndeleteService(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListServiceConfigs( @@ -118,13 +118,13 @@ class ServiceManagerConnectionImpl request) override; StatusOr SubmitConfigSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::servicemanagement::v1::SubmitConfigSourceRequest const& request) override; future< StatusOr> - SubmitConfigSource(google::cloud::ExperimentalTag, + SubmitConfigSource(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListServiceRollouts( @@ -141,13 +141,13 @@ class ServiceManagerConnectionImpl request) override; StatusOr CreateServiceRollout( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::servicemanagement::v1::CreateServiceRolloutRequest const& request) override; future> CreateServiceRollout( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.cc b/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.cc index 61fa9ac9eb07c..f49777f301e47 100644 --- a/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.cc +++ b/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.cc @@ -65,26 +65,23 @@ ServiceManagerTracingConnection::CreateService( StatusOr ServiceManagerTracingConnection::CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::CreateServiceRequest const& request) { auto span = internal::MakeSpan( "servicemanagement_v1::ServiceManagerConnection::CreateService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ServiceManagerTracingConnection::CreateService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "servicemanagement_v1::ServiceManagerConnection::CreateService"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateService(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateService(ExperimentalTag{}, operation)); } future> @@ -98,26 +95,23 @@ ServiceManagerTracingConnection::DeleteService( StatusOr ServiceManagerTracingConnection::DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::DeleteServiceRequest const& request) { auto span = internal::MakeSpan( "servicemanagement_v1::ServiceManagerConnection::DeleteService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ServiceManagerTracingConnection::DeleteService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "servicemanagement_v1::ServiceManagerConnection::DeleteService"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteService(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteService(ExperimentalTag{}, operation)); } future> @@ -131,26 +125,23 @@ ServiceManagerTracingConnection::UndeleteService( StatusOr ServiceManagerTracingConnection::UndeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::UndeleteServiceRequest const& request) { auto span = internal::MakeSpan( "servicemanagement_v1::ServiceManagerConnection::UndeleteService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UndeleteService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UndeleteService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ServiceManagerTracingConnection::UndeleteService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "servicemanagement_v1::ServiceManagerConnection::UndeleteService"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UndeleteService(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UndeleteService(ExperimentalTag{}, operation)); } StreamRange @@ -197,27 +188,25 @@ ServiceManagerTracingConnection::SubmitConfigSource( StatusOr ServiceManagerTracingConnection::SubmitConfigSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::SubmitConfigSourceRequest const& request) { auto span = internal::MakeSpan( "servicemanagement_v1::ServiceManagerConnection::SubmitConfigSource"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SubmitConfigSource(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->SubmitConfigSource(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ServiceManagerTracingConnection::SubmitConfigSource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "servicemanagement_v1::ServiceManagerConnection::SubmitConfigSource"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SubmitConfigSource(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->SubmitConfigSource( + ExperimentalTag{}, operation)); } StreamRange @@ -255,27 +244,25 @@ ServiceManagerTracingConnection::CreateServiceRollout( StatusOr ServiceManagerTracingConnection::CreateServiceRollout( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::CreateServiceRolloutRequest const& request) { auto span = internal::MakeSpan( "servicemanagement_v1::ServiceManagerConnection::CreateServiceRollout"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateServiceRollout( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateServiceRollout(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ServiceManagerTracingConnection::CreateServiceRollout( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "servicemanagement_v1::ServiceManagerConnection::CreateServiceRollout"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateServiceRollout( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateServiceRollout( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.h b/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.h index daec7a72440ee..469934dbe1471 100644 --- a/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.h +++ b/google/cloud/servicemanagement/v1/internal/service_manager_tracing_connection.h @@ -52,12 +52,12 @@ class ServiceManagerTracingConnection request) override; StatusOr CreateService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::CreateServiceRequest const& request) override; future> - CreateService(google::cloud::ExperimentalTag, + CreateService(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -65,12 +65,12 @@ class ServiceManagerTracingConnection request) override; StatusOr DeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::DeleteServiceRequest const& request) override; future> - DeleteService(google::cloud::ExperimentalTag, + DeleteService(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -79,12 +79,12 @@ class ServiceManagerTracingConnection override; StatusOr UndeleteService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::UndeleteServiceRequest const& request) override; future> - UndeleteService(google::cloud::ExperimentalTag, + UndeleteService(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListServiceConfigs( @@ -106,13 +106,13 @@ class ServiceManagerTracingConnection request) override; StatusOr SubmitConfigSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::SubmitConfigSourceRequest const& request) override; future< StatusOr> - SubmitConfigSource(google::cloud::ExperimentalTag, + SubmitConfigSource(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListServiceRollouts( @@ -129,13 +129,13 @@ class ServiceManagerTracingConnection request) override; StatusOr CreateServiceRollout( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::CreateServiceRolloutRequest const& request) override; future> CreateServiceRollout( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/servicemanagement/v1/mocks/mock_service_manager_connection.h b/google/cloud/servicemanagement/v1/mocks/mock_service_manager_connection.h index 26e8fc9648823..214479a9b984b 100644 --- a/google/cloud/servicemanagement/v1/mocks/mock_service_manager_connection.h +++ b/google/cloud/servicemanagement/v1/mocks/mock_service_manager_connection.h @@ -65,15 +65,14 @@ class MockServiceManagerConnection MOCK_METHOD( StatusOr, CreateService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::CreateServiceRequest const& request), (override)); MOCK_METHOD( future>, CreateService, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -84,15 +83,14 @@ class MockServiceManagerConnection MOCK_METHOD( StatusOr, DeleteService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::DeleteServiceRequest const& request), (override)); MOCK_METHOD( future>, DeleteService, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future, UndeleteService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::UndeleteServiceRequest const& request), (override)); @@ -111,7 +109,7 @@ class MockServiceManagerConnection MOCK_METHOD(future>, UndeleteService, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -142,7 +140,7 @@ class MockServiceManagerConnection MOCK_METHOD( StatusOr, SubmitConfigSource, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::SubmitConfigSourceRequest const& request), (override)); @@ -151,8 +149,7 @@ class MockServiceManagerConnection future>, SubmitConfigSource, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -176,14 +173,14 @@ class MockServiceManagerConnection MOCK_METHOD( StatusOr, CreateServiceRollout, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::CreateServiceRolloutRequest const& request), (override)); MOCK_METHOD(future>, CreateServiceRollout, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.cc b/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.cc index 82025c0821bbb..766b497ac4328 100644 --- a/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.cc +++ b/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.cc @@ -107,7 +107,7 @@ ServiceUsageConnectionImpl::EnableService( StatusOr ServiceUsageConnectionImpl::EnableService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::serviceusage::v1::EnableServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -123,8 +123,7 @@ ServiceUsageConnectionImpl::EnableService( future> ServiceUsageConnectionImpl::EnableService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -200,7 +199,7 @@ ServiceUsageConnectionImpl::DisableService( StatusOr ServiceUsageConnectionImpl::DisableService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::serviceusage::v1::DisableServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -216,8 +215,7 @@ ServiceUsageConnectionImpl::DisableService( future> ServiceUsageConnectionImpl::DisableService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -342,7 +340,7 @@ ServiceUsageConnectionImpl::BatchEnableServices( StatusOr ServiceUsageConnectionImpl::BatchEnableServices( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::serviceusage::v1::BatchEnableServicesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -358,8 +356,7 @@ ServiceUsageConnectionImpl::BatchEnableServices( future> ServiceUsageConnectionImpl::BatchEnableServices( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.h b/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.h index aae94c4083f1a..d22b4ec901e44 100644 --- a/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.h +++ b/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.h @@ -57,12 +57,12 @@ class ServiceUsageConnectionImpl request) override; StatusOr EnableService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::serviceusage::v1::EnableServiceRequest const& request) override; future> - EnableService(google::cloud::ExperimentalTag, + EnableService(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -70,12 +70,12 @@ class ServiceUsageConnectionImpl request) override; StatusOr DisableService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::serviceusage::v1::DisableServiceRequest const& request) override; future> - DisableService(google::cloud::ExperimentalTag, + DisableService(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetService( @@ -90,12 +90,12 @@ class ServiceUsageConnectionImpl override; StatusOr BatchEnableServices( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::api::serviceusage::v1::BatchEnableServicesRequest const& request) override; future> - BatchEnableServices(google::cloud::ExperimentalTag, + BatchEnableServices(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.cc b/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.cc index 9e5653bc86228..2326715e0bd64 100644 --- a/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.cc +++ b/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.cc @@ -44,26 +44,23 @@ ServiceUsageTracingConnection::EnableService( StatusOr ServiceUsageTracingConnection::EnableService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::EnableServiceRequest const& request) { auto span = internal::MakeSpan( "serviceusage_v1::ServiceUsageConnection::EnableService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->EnableService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->EnableService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ServiceUsageTracingConnection::EnableService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "serviceusage_v1::ServiceUsageConnection::EnableService"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->EnableService(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->EnableService(ExperimentalTag{}, operation)); } future> @@ -77,26 +74,23 @@ ServiceUsageTracingConnection::DisableService( StatusOr ServiceUsageTracingConnection::DisableService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::DisableServiceRequest const& request) { auto span = internal::MakeSpan( "serviceusage_v1::ServiceUsageConnection::DisableService"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DisableService(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DisableService(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ServiceUsageTracingConnection::DisableService( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "serviceusage_v1::ServiceUsageConnection::DisableService"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DisableService(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DisableService(ExperimentalTag{}, operation)); } StatusOr @@ -131,26 +125,24 @@ ServiceUsageTracingConnection::BatchEnableServices( StatusOr ServiceUsageTracingConnection::BatchEnableServices( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::BatchEnableServicesRequest const& request) { auto span = internal::MakeSpan( "serviceusage_v1::ServiceUsageConnection::BatchEnableServices"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BatchEnableServices(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->BatchEnableServices(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ServiceUsageTracingConnection::BatchEnableServices( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "serviceusage_v1::ServiceUsageConnection::BatchEnableServices"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->BatchEnableServices(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchEnableServices( + ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.h b/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.h index 093b5ca616bc6..50743dc814f43 100644 --- a/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.h +++ b/google/cloud/serviceusage/v1/internal/service_usage_tracing_connection.h @@ -45,12 +45,12 @@ class ServiceUsageTracingConnection request) override; StatusOr EnableService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::EnableServiceRequest const& request) override; future> - EnableService(google::cloud::ExperimentalTag, + EnableService(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -58,12 +58,12 @@ class ServiceUsageTracingConnection request) override; StatusOr DisableService( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::DisableServiceRequest const& request) override; future> - DisableService(google::cloud::ExperimentalTag, + DisableService(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetService( @@ -78,12 +78,12 @@ class ServiceUsageTracingConnection override; StatusOr BatchEnableServices( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::BatchEnableServicesRequest const& request) override; future> - BatchEnableServices(google::cloud::ExperimentalTag, + BatchEnableServices(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/serviceusage/v1/mocks/mock_service_usage_connection.h b/google/cloud/serviceusage/v1/mocks/mock_service_usage_connection.h index 9818c12e337f7..68b044a9b429d 100644 --- a/google/cloud/serviceusage/v1/mocks/mock_service_usage_connection.h +++ b/google/cloud/serviceusage/v1/mocks/mock_service_usage_connection.h @@ -55,15 +55,14 @@ class MockServiceUsageConnection MOCK_METHOD( StatusOr, EnableService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::EnableServiceRequest const& request), (override)); MOCK_METHOD( future>, EnableService, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -74,15 +73,14 @@ class MockServiceUsageConnection MOCK_METHOD( StatusOr, DisableService, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::DisableServiceRequest const& request), (override)); MOCK_METHOD( future>, DisableService, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, GetService, @@ -103,7 +101,7 @@ class MockServiceUsageConnection (override)); MOCK_METHOD(StatusOr, BatchEnableServices, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::BatchEnableServicesRequest const& request), (override)); @@ -112,8 +110,7 @@ class MockServiceUsageConnection future< StatusOr>, BatchEnableServices, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/shell/v1/internal/cloud_shell_connection_impl.cc b/google/cloud/shell/v1/internal/cloud_shell_connection_impl.cc index 7de4cc0150502..ac8291f84630a 100644 --- a/google/cloud/shell/v1/internal/cloud_shell_connection_impl.cc +++ b/google/cloud/shell/v1/internal/cloud_shell_connection_impl.cc @@ -118,7 +118,7 @@ CloudShellServiceConnectionImpl::StartEnvironment( StatusOr CloudShellServiceConnectionImpl::StartEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::shell::v1::StartEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -133,8 +133,7 @@ CloudShellServiceConnectionImpl::StartEnvironment( future> CloudShellServiceConnectionImpl::StartEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -211,7 +210,7 @@ CloudShellServiceConnectionImpl::AuthorizeEnvironment( StatusOr CloudShellServiceConnectionImpl::AuthorizeEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -227,8 +226,7 @@ CloudShellServiceConnectionImpl::AuthorizeEnvironment( future> CloudShellServiceConnectionImpl::AuthorizeEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CloudShellServiceConnectionImpl::AddPublicKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::shell::v1::AddPublicKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -320,8 +318,7 @@ CloudShellServiceConnectionImpl::AddPublicKey( future> CloudShellServiceConnectionImpl::AddPublicKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -397,7 +394,7 @@ CloudShellServiceConnectionImpl::RemovePublicKey( StatusOr CloudShellServiceConnectionImpl::RemovePublicKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::shell::v1::RemovePublicKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -412,8 +409,7 @@ CloudShellServiceConnectionImpl::RemovePublicKey( future> CloudShellServiceConnectionImpl::RemovePublicKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/shell/v1/internal/cloud_shell_connection_impl.h b/google/cloud/shell/v1/internal/cloud_shell_connection_impl.h index 30da6627a687d..2db2607c3112d 100644 --- a/google/cloud/shell/v1/internal/cloud_shell_connection_impl.h +++ b/google/cloud/shell/v1/internal/cloud_shell_connection_impl.h @@ -59,12 +59,12 @@ class CloudShellServiceConnectionImpl request) override; StatusOr StartEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::shell::v1::StartEnvironmentRequest const& request) override; future> - StartEnvironment(google::cloud::ExperimentalTag, + StartEnvironment(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -73,24 +73,24 @@ class CloudShellServiceConnectionImpl override; StatusOr AuthorizeEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request) override; future> AuthorizeEnvironment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> AddPublicKey( google::cloud::shell::v1::AddPublicKeyRequest const& request) override; StatusOr AddPublicKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::shell::v1::AddPublicKeyRequest const& request) override; future> AddPublicKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -98,11 +98,11 @@ class CloudShellServiceConnectionImpl google::cloud::shell::v1::RemovePublicKeyRequest const& request) override; StatusOr RemovePublicKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::shell::v1::RemovePublicKeyRequest const& request) override; future> - RemovePublicKey(google::cloud::ExperimentalTag, + RemovePublicKey(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.cc b/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.cc index debb3d972be15..327598369ea1e 100644 --- a/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.cc +++ b/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.cc @@ -52,26 +52,24 @@ CloudShellServiceTracingConnection::StartEnvironment( StatusOr CloudShellServiceTracingConnection::StartEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::StartEnvironmentRequest const& request) { auto span = internal::MakeSpan( "shell_v1::CloudShellServiceConnection::StartEnvironment"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StartEnvironment(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->StartEnvironment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudShellServiceTracingConnection::StartEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "shell_v1::CloudShellServiceConnection::StartEnvironment"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->StartEnvironment(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->StartEnvironment(ExperimentalTag{}, operation)); } future> @@ -86,26 +84,24 @@ CloudShellServiceTracingConnection::AuthorizeEnvironment( StatusOr CloudShellServiceTracingConnection::AuthorizeEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request) { auto span = internal::MakeSpan( "shell_v1::CloudShellServiceConnection::AuthorizeEnvironment"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->AuthorizeEnvironment( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->AuthorizeEnvironment(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudShellServiceTracingConnection::AuthorizeEnvironment( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "shell_v1::CloudShellServiceConnection::AuthorizeEnvironment"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->AuthorizeEnvironment( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->AuthorizeEnvironment( + ExperimentalTag{}, operation)); } future> @@ -119,26 +115,23 @@ CloudShellServiceTracingConnection::AddPublicKey( StatusOr CloudShellServiceTracingConnection::AddPublicKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::AddPublicKeyRequest const& request) { auto span = internal::MakeSpan("shell_v1::CloudShellServiceConnection::AddPublicKey"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddPublicKey(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AddPublicKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudShellServiceTracingConnection::AddPublicKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("shell_v1::CloudShellServiceConnection::AddPublicKey"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AddPublicKey(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->AddPublicKey(ExperimentalTag{}, operation)); } future> @@ -152,26 +145,23 @@ CloudShellServiceTracingConnection::RemovePublicKey( StatusOr CloudShellServiceTracingConnection::RemovePublicKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::RemovePublicKeyRequest const& request) { auto span = internal::MakeSpan( "shell_v1::CloudShellServiceConnection::RemovePublicKey"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RemovePublicKey(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RemovePublicKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> CloudShellServiceTracingConnection::RemovePublicKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "shell_v1::CloudShellServiceConnection::RemovePublicKey"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RemovePublicKey(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RemovePublicKey(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.h b/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.h index f23f338a3e6a9..e608023a27637 100644 --- a/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.h +++ b/google/cloud/shell/v1/internal/cloud_shell_tracing_connection.h @@ -48,12 +48,12 @@ class CloudShellServiceTracingConnection request) override; StatusOr StartEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::StartEnvironmentRequest const& request) override; future> - StartEnvironment(google::cloud::ExperimentalTag, + StartEnvironment(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -62,24 +62,24 @@ class CloudShellServiceTracingConnection override; StatusOr AuthorizeEnvironment( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request) override; future> AuthorizeEnvironment( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> AddPublicKey( google::cloud::shell::v1::AddPublicKeyRequest const& request) override; StatusOr AddPublicKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::AddPublicKeyRequest const& request) override; future> AddPublicKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -87,11 +87,11 @@ class CloudShellServiceTracingConnection google::cloud::shell::v1::RemovePublicKeyRequest const& request) override; StatusOr RemovePublicKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::RemovePublicKeyRequest const& request) override; future> - RemovePublicKey(google::cloud::ExperimentalTag, + RemovePublicKey(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/shell/v1/mocks/mock_cloud_shell_connection.h b/google/cloud/shell/v1/mocks/mock_cloud_shell_connection.h index 73e5d302034be..7cf8e609574ce 100644 --- a/google/cloud/shell/v1/mocks/mock_cloud_shell_connection.h +++ b/google/cloud/shell/v1/mocks/mock_cloud_shell_connection.h @@ -59,15 +59,14 @@ class MockCloudShellServiceConnection MOCK_METHOD( StatusOr, StartEnvironment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::StartEnvironmentRequest const& request), (override)); MOCK_METHOD( future>, StartEnvironment, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -78,15 +77,14 @@ class MockCloudShellServiceConnection MOCK_METHOD( StatusOr, AuthorizeEnvironment, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request), (override)); MOCK_METHOD( future>, AuthorizeEnvironment, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future>, @@ -95,13 +93,13 @@ class MockCloudShellServiceConnection (override)); MOCK_METHOD(StatusOr, AddPublicKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::AddPublicKeyRequest const& request), (override)); MOCK_METHOD(future>, AddPublicKey, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -112,15 +110,14 @@ class MockCloudShellServiceConnection (override)); MOCK_METHOD(StatusOr, RemovePublicKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::RemovePublicKeyRequest const& request), (override)); MOCK_METHOD( future>, RemovePublicKey, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/spanner/admin/internal/database_admin_connection_impl.cc b/google/cloud/spanner/admin/internal/database_admin_connection_impl.cc index b9d9764a96e71..59200342a4f52 100644 --- a/google/cloud/spanner/admin/internal/database_admin_connection_impl.cc +++ b/google/cloud/spanner/admin/internal/database_admin_connection_impl.cc @@ -143,7 +143,7 @@ DatabaseAdminConnectionImpl::CreateDatabase( StatusOr DatabaseAdminConnectionImpl::CreateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::database::v1::CreateDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -160,8 +160,7 @@ DatabaseAdminConnectionImpl::CreateDatabase( future> DatabaseAdminConnectionImpl::CreateDatabase( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatabaseAdminConnectionImpl::UpdateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::database::v1::UpdateDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -272,8 +271,7 @@ DatabaseAdminConnectionImpl::UpdateDatabase( future> DatabaseAdminConnectionImpl::UpdateDatabase( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatabaseAdminConnectionImpl::UpdateDatabaseDdl( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -372,8 +370,7 @@ DatabaseAdminConnectionImpl::UpdateDatabaseDdl( future< StatusOr> DatabaseAdminConnectionImpl::UpdateDatabaseDdl( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatabaseAdminConnectionImpl::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::database::v1::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -537,8 +534,7 @@ DatabaseAdminConnectionImpl::CreateBackup( future> DatabaseAdminConnectionImpl::CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatabaseAdminConnectionImpl::CopyBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::database::v1::CopyBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -632,8 +628,7 @@ DatabaseAdminConnectionImpl::CopyBackup( future> DatabaseAdminConnectionImpl::CopyBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is DatabaseAdminConnectionImpl::RestoreDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::database::v1::RestoreDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -808,8 +803,7 @@ DatabaseAdminConnectionImpl::RestoreDatabase( future> DatabaseAdminConnectionImpl::RestoreDatabase( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::database::v1::CreateDatabaseRequest const& request) override; future> - CreateDatabase(google::cloud::ExperimentalTag, + CreateDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetDatabase( @@ -80,12 +80,12 @@ class DatabaseAdminConnectionImpl request) override; StatusOr UpdateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::database::v1::UpdateDatabaseRequest const& request) override; future> - UpdateDatabase(google::cloud::ExperimentalTag, + UpdateDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -95,13 +95,13 @@ class DatabaseAdminConnectionImpl request) override; StatusOr UpdateDatabaseDdl( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; future< StatusOr> - UpdateDatabaseDdl(google::cloud::ExperimentalTag, + UpdateDatabaseDdl(ExperimentalTag, google::longrunning::Operation const& operation) override; Status DropDatabase( @@ -127,12 +127,12 @@ class DatabaseAdminConnectionImpl override; StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::database::v1::CreateBackupRequest const& request) override; future> CreateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CopyBackup( @@ -140,12 +140,12 @@ class DatabaseAdminConnectionImpl override; StatusOr CopyBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::database::v1::CopyBackupRequest const& request) override; future> CopyBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetBackup( @@ -170,12 +170,12 @@ class DatabaseAdminConnectionImpl request) override; StatusOr RestoreDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::database::v1::RestoreDatabaseRequest const& request) override; future> - RestoreDatabase(google::cloud::ExperimentalTag, + RestoreDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListDatabaseOperations( diff --git a/google/cloud/spanner/admin/internal/database_admin_tracing_connection.cc b/google/cloud/spanner/admin/internal/database_admin_tracing_connection.cc index 26dd98254478f..036847bd1726c 100644 --- a/google/cloud/spanner/admin/internal/database_admin_tracing_connection.cc +++ b/google/cloud/spanner/admin/internal/database_admin_tracing_connection.cc @@ -57,27 +57,24 @@ DatabaseAdminTracingConnection::CreateDatabase( StatusOr DatabaseAdminTracingConnection::CreateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateDatabaseRequest const& request) { auto span = internal::MakeSpan( "spanner_admin::DatabaseAdminConnection::CreateDatabase"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateDatabase(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateDatabase(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatabaseAdminTracingConnection::CreateDatabase( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "spanner_admin::DatabaseAdminConnection::CreateDatabase"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateDatabase(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateDatabase(ExperimentalTag{}, operation)); } StatusOr @@ -101,27 +98,24 @@ DatabaseAdminTracingConnection::UpdateDatabase( StatusOr DatabaseAdminTracingConnection::UpdateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseRequest const& request) { auto span = internal::MakeSpan( "spanner_admin::DatabaseAdminConnection::UpdateDatabase"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateDatabase(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateDatabase(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatabaseAdminTracingConnection::UpdateDatabase( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "spanner_admin::DatabaseAdminConnection::UpdateDatabase"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateDatabase(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateDatabase(ExperimentalTag{}, operation)); } future< @@ -137,28 +131,26 @@ DatabaseAdminTracingConnection::UpdateDatabaseDdl( StatusOr DatabaseAdminTracingConnection::UpdateDatabaseDdl( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& request) { auto span = internal::MakeSpan( "spanner_admin::DatabaseAdminConnection::UpdateDatabaseDdl"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateDatabaseDdl(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateDatabaseDdl(ExperimentalTag{}, NoAwaitTag{}, request)); } future< StatusOr> DatabaseAdminTracingConnection::UpdateDatabaseDdl( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "spanner_admin::DatabaseAdminConnection::UpdateDatabaseDdl"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateDatabaseDdl(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateDatabaseDdl(ExperimentalTag{}, operation)); } Status DatabaseAdminTracingConnection::DropDatabase( @@ -215,26 +207,23 @@ DatabaseAdminTracingConnection::CreateBackup( StatusOr DatabaseAdminTracingConnection::CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateBackupRequest const& request) { auto span = internal::MakeSpan( "spanner_admin::DatabaseAdminConnection::CreateBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatabaseAdminTracingConnection::CreateBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "spanner_admin::DatabaseAdminConnection::CreateBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateBackup(ExperimentalTag{}, operation)); } future> @@ -248,26 +237,23 @@ DatabaseAdminTracingConnection::CopyBackup( StatusOr DatabaseAdminTracingConnection::CopyBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CopyBackupRequest const& request) { auto span = internal::MakeSpan("spanner_admin::DatabaseAdminConnection::CopyBackup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CopyBackup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CopyBackup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatabaseAdminTracingConnection::CopyBackup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("spanner_admin::DatabaseAdminConnection::CopyBackup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CopyBackup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CopyBackup(ExperimentalTag{}, operation)); } StatusOr @@ -320,27 +306,24 @@ DatabaseAdminTracingConnection::RestoreDatabase( StatusOr DatabaseAdminTracingConnection::RestoreDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::RestoreDatabaseRequest const& request) { auto span = internal::MakeSpan( "spanner_admin::DatabaseAdminConnection::RestoreDatabase"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RestoreDatabase(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RestoreDatabase(ExperimentalTag{}, NoAwaitTag{}, request)); } future> DatabaseAdminTracingConnection::RestoreDatabase( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "spanner_admin::DatabaseAdminConnection::RestoreDatabase"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RestoreDatabase(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RestoreDatabase(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/spanner/admin/internal/database_admin_tracing_connection.h b/google/cloud/spanner/admin/internal/database_admin_tracing_connection.h index 5305723056456..817fdf4810d3c 100644 --- a/google/cloud/spanner/admin/internal/database_admin_tracing_connection.h +++ b/google/cloud/spanner/admin/internal/database_admin_tracing_connection.h @@ -50,12 +50,12 @@ class DatabaseAdminTracingConnection request) override; StatusOr CreateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateDatabaseRequest const& request) override; future> - CreateDatabase(google::cloud::ExperimentalTag, + CreateDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetDatabase( @@ -68,12 +68,12 @@ class DatabaseAdminTracingConnection request) override; StatusOr UpdateDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseRequest const& request) override; future> - UpdateDatabase(google::cloud::ExperimentalTag, + UpdateDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -83,13 +83,13 @@ class DatabaseAdminTracingConnection request) override; StatusOr UpdateDatabaseDdl( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; future< StatusOr> - UpdateDatabaseDdl(google::cloud::ExperimentalTag, + UpdateDatabaseDdl(ExperimentalTag, google::longrunning::Operation const& operation) override; Status DropDatabase( @@ -115,12 +115,12 @@ class DatabaseAdminTracingConnection override; StatusOr CreateBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateBackupRequest const& request) override; future> CreateBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CopyBackup( @@ -128,12 +128,12 @@ class DatabaseAdminTracingConnection override; StatusOr CopyBackup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CopyBackupRequest const& request) override; future> CopyBackup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetBackup( @@ -158,12 +158,12 @@ class DatabaseAdminTracingConnection request) override; StatusOr RestoreDatabase( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::RestoreDatabaseRequest const& request) override; future> - RestoreDatabase(google::cloud::ExperimentalTag, + RestoreDatabase(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListDatabaseOperations( diff --git a/google/cloud/spanner/admin/internal/instance_admin_connection_impl.cc b/google/cloud/spanner/admin/internal/instance_admin_connection_impl.cc index a04770ab4e45f..03ad6149494ae 100644 --- a/google/cloud/spanner/admin/internal/instance_admin_connection_impl.cc +++ b/google/cloud/spanner/admin/internal/instance_admin_connection_impl.cc @@ -159,7 +159,7 @@ InstanceAdminConnectionImpl::CreateInstanceConfig( StatusOr InstanceAdminConnectionImpl::CreateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -176,8 +176,7 @@ InstanceAdminConnectionImpl::CreateInstanceConfig( future> InstanceAdminConnectionImpl::CreateInstanceConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is InstanceAdminConnectionImpl::UpdateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -272,8 +271,7 @@ InstanceAdminConnectionImpl::UpdateInstanceConfig( future> InstanceAdminConnectionImpl::UpdateInstanceConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is InstanceAdminConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::instance::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -509,8 +507,7 @@ InstanceAdminConnectionImpl::CreateInstance( future> InstanceAdminConnectionImpl::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is InstanceAdminConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::instance::v1::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -606,8 +603,7 @@ InstanceAdminConnectionImpl::UpdateInstance( future> InstanceAdminConnectionImpl::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is InstanceAdminConnectionImpl::CreateInstancePartition( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::instance::v1::CreateInstancePartitionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -773,8 +769,7 @@ InstanceAdminConnectionImpl::CreateInstancePartition( future> InstanceAdminConnectionImpl::CreateInstancePartition( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is InstanceAdminConnectionImpl::UpdateInstancePartition( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::instance::v1::UpdateInstancePartitionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -884,8 +879,7 @@ InstanceAdminConnectionImpl::UpdateInstancePartition( future> InstanceAdminConnectionImpl::UpdateInstancePartition( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& request) override; future> CreateInstanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -83,13 +83,13 @@ class InstanceAdminConnectionImpl request) override; StatusOr UpdateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& request) override; future> UpdateInstanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteInstanceConfig( @@ -119,12 +119,12 @@ class InstanceAdminConnectionImpl request) override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::instance::v1::CreateInstanceRequest const& request) override; future> - CreateInstance(google::cloud::ExperimentalTag, + CreateInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -133,12 +133,12 @@ class InstanceAdminConnectionImpl request) override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::instance::v1::UpdateInstanceRequest const& request) override; future> - UpdateInstance(google::cloud::ExperimentalTag, + UpdateInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteInstance( @@ -165,13 +165,13 @@ class InstanceAdminConnectionImpl CreateInstancePartitionRequest const& request) override; StatusOr CreateInstancePartition( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::instance::v1:: CreateInstancePartitionRequest const& request) override; future> CreateInstancePartition( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteInstancePartition( @@ -184,13 +184,13 @@ class InstanceAdminConnectionImpl UpdateInstancePartitionRequest const& request) override; StatusOr UpdateInstancePartition( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::spanner::admin::instance::v1:: UpdateInstancePartitionRequest const& request) override; future> UpdateInstancePartition( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListInstancePartitionOperations( diff --git a/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.cc b/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.cc index b77281d3627de..0cf30a48d9544 100644 --- a/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.cc +++ b/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.cc @@ -68,27 +68,25 @@ InstanceAdminTracingConnection::CreateInstanceConfig( StatusOr InstanceAdminTracingConnection::CreateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& request) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::CreateInstanceConfig"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateInstanceConfig( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateInstanceConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceAdminTracingConnection::CreateInstanceConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::CreateInstanceConfig"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateInstanceConfig( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateInstanceConfig( + ExperimentalTag{}, operation)); } future> @@ -104,27 +102,25 @@ InstanceAdminTracingConnection::UpdateInstanceConfig( StatusOr InstanceAdminTracingConnection::UpdateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& request) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::UpdateInstanceConfig"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateInstanceConfig( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateInstanceConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceAdminTracingConnection::UpdateInstanceConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::UpdateInstanceConfig"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateInstanceConfig( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateInstanceConfig( + ExperimentalTag{}, operation)); } Status InstanceAdminTracingConnection::DeleteInstanceConfig( @@ -194,27 +190,24 @@ InstanceAdminTracingConnection::CreateInstance( StatusOr InstanceAdminTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceRequest const& request) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::CreateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceAdminTracingConnection::CreateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::CreateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateInstance(ExperimentalTag{}, operation)); } future> @@ -229,27 +222,24 @@ InstanceAdminTracingConnection::UpdateInstance( StatusOr InstanceAdminTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceRequest const& request) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::UpdateInstance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateInstance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateInstance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> InstanceAdminTracingConnection::UpdateInstance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::UpdateInstance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateInstance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateInstance(ExperimentalTag{}, operation)); } Status InstanceAdminTracingConnection::DeleteInstance( @@ -309,27 +299,25 @@ InstanceAdminTracingConnection::CreateInstancePartition( StatusOr InstanceAdminTracingConnection::CreateInstancePartition( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstancePartitionRequest const& request) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::CreateInstancePartition"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateInstancePartition( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateInstancePartition(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> InstanceAdminTracingConnection::CreateInstancePartition( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::CreateInstancePartition"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateInstancePartition( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateInstancePartition( + ExperimentalTag{}, operation)); } Status InstanceAdminTracingConnection::DeleteInstancePartition( @@ -354,27 +342,25 @@ InstanceAdminTracingConnection::UpdateInstancePartition( StatusOr InstanceAdminTracingConnection::UpdateInstancePartition( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstancePartitionRequest const& request) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::UpdateInstancePartition"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateInstancePartition( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateInstancePartition(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> InstanceAdminTracingConnection::UpdateInstancePartition( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "spanner_admin::InstanceAdminConnection::UpdateInstancePartition"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateInstancePartition( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateInstancePartition( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.h b/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.h index ab1355905cdce..5f4252c6f108a 100644 --- a/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.h +++ b/google/cloud/spanner/admin/internal/instance_admin_tracing_connection.h @@ -56,13 +56,13 @@ class InstanceAdminTracingConnection request) override; StatusOr CreateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& request) override; future> CreateInstanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -71,13 +71,13 @@ class InstanceAdminTracingConnection request) override; StatusOr UpdateInstanceConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& request) override; future> UpdateInstanceConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteInstanceConfig( @@ -107,12 +107,12 @@ class InstanceAdminTracingConnection request) override; StatusOr CreateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceRequest const& request) override; future> - CreateInstance(google::cloud::ExperimentalTag, + CreateInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -121,12 +121,12 @@ class InstanceAdminTracingConnection request) override; StatusOr UpdateInstance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceRequest const& request) override; future> - UpdateInstance(google::cloud::ExperimentalTag, + UpdateInstance(ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteInstance( @@ -153,13 +153,13 @@ class InstanceAdminTracingConnection CreateInstancePartitionRequest const& request) override; StatusOr CreateInstancePartition( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1:: CreateInstancePartitionRequest const& request) override; future> CreateInstancePartition( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteInstancePartition( @@ -172,13 +172,13 @@ class InstanceAdminTracingConnection UpdateInstancePartitionRequest const& request) override; StatusOr UpdateInstancePartition( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1:: UpdateInstancePartitionRequest const& request) override; future> UpdateInstancePartition( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListInstancePartitionOperations( diff --git a/google/cloud/spanner/admin/mocks/mock_database_admin_connection.h b/google/cloud/spanner/admin/mocks/mock_database_admin_connection.h index 8024d3134454d..62d90af0d25ca 100644 --- a/google/cloud/spanner/admin/mocks/mock_database_admin_connection.h +++ b/google/cloud/spanner/admin/mocks/mock_database_admin_connection.h @@ -62,14 +62,14 @@ class MockDatabaseAdminConnection MOCK_METHOD( StatusOr, CreateDatabase, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateDatabaseRequest const& request), (override)); MOCK_METHOD(future>, CreateDatabase, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -87,14 +87,14 @@ class MockDatabaseAdminConnection MOCK_METHOD( StatusOr, UpdateDatabase, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseRequest const& request), (override)); MOCK_METHOD(future>, UpdateDatabase, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -108,7 +108,7 @@ class MockDatabaseAdminConnection MOCK_METHOD( StatusOr, UpdateDatabaseDdl, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& request), (override)); @@ -117,8 +117,7 @@ class MockDatabaseAdminConnection future>, UpdateDatabaseDdl, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(Status, DropDatabase, @@ -153,14 +152,14 @@ class MockDatabaseAdminConnection (override)); MOCK_METHOD(StatusOr, CreateBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateBackupRequest const& request), (override)); MOCK_METHOD(future>, CreateBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -172,13 +171,13 @@ class MockDatabaseAdminConnection MOCK_METHOD( StatusOr, CopyBackup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CopyBackupRequest const& request), (override)); MOCK_METHOD(future>, CopyBackup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -212,14 +211,14 @@ class MockDatabaseAdminConnection MOCK_METHOD( StatusOr, RestoreDatabase, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::RestoreDatabaseRequest const& request), (override)); MOCK_METHOD(future>, RestoreDatabase, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/spanner/admin/mocks/mock_instance_admin_connection.h b/google/cloud/spanner/admin/mocks/mock_instance_admin_connection.h index 33f60d87ffdd2..a40464aa8dbd6 100644 --- a/google/cloud/spanner/admin/mocks/mock_instance_admin_connection.h +++ b/google/cloud/spanner/admin/mocks/mock_instance_admin_connection.h @@ -70,7 +70,7 @@ class MockInstanceAdminConnection MOCK_METHOD( StatusOr, CreateInstanceConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& request), (override)); @@ -78,8 +78,7 @@ class MockInstanceAdminConnection MOCK_METHOD( future>, CreateInstanceConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -91,7 +90,7 @@ class MockInstanceAdminConnection MOCK_METHOD( StatusOr, UpdateInstanceConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& request), (override)); @@ -99,8 +98,7 @@ class MockInstanceAdminConnection MOCK_METHOD( future>, UpdateInstanceConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -143,14 +141,14 @@ class MockInstanceAdminConnection MOCK_METHOD( StatusOr, CreateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceRequest const& request), (override)); MOCK_METHOD(future>, CreateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -163,14 +161,14 @@ class MockInstanceAdminConnection MOCK_METHOD( StatusOr, UpdateInstance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceRequest const& request), (override)); MOCK_METHOD(future>, UpdateInstance, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -208,7 +206,7 @@ class MockInstanceAdminConnection (override)); MOCK_METHOD(StatusOr, CreateInstancePartition, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1:: CreateInstancePartitionRequest const& request), (override)); @@ -216,8 +214,7 @@ class MockInstanceAdminConnection MOCK_METHOD( future>, CreateInstancePartition, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(Status, DeleteInstancePartition, @@ -233,7 +230,7 @@ class MockInstanceAdminConnection (override)); MOCK_METHOD(StatusOr, UpdateInstancePartition, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1:: UpdateInstancePartitionRequest const& request), (override)); @@ -241,8 +238,7 @@ class MockInstanceAdminConnection MOCK_METHOD( future>, UpdateInstancePartition, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), diff --git a/google/cloud/speech/v1/internal/speech_connection_impl.cc b/google/cloud/speech/v1/internal/speech_connection_impl.cc index c503490a32490..fdb9edc0f3389 100644 --- a/google/cloud/speech/v1/internal/speech_connection_impl.cc +++ b/google/cloud/speech/v1/internal/speech_connection_impl.cc @@ -117,7 +117,7 @@ SpeechConnectionImpl::LongRunningRecognize( StatusOr SpeechConnectionImpl::LongRunningRecognize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v1::LongRunningRecognizeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -133,8 +133,7 @@ SpeechConnectionImpl::LongRunningRecognize( future> SpeechConnectionImpl::LongRunningRecognize( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is LongRunningRecognize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v1::LongRunningRecognizeRequest const& request) override; future> LongRunningRecognize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< diff --git a/google/cloud/speech/v1/internal/speech_tracing_connection.cc b/google/cloud/speech/v1/internal/speech_tracing_connection.cc index afa2328eb0e48..bbc3ece8ccf07 100644 --- a/google/cloud/speech/v1/internal/speech_tracing_connection.cc +++ b/google/cloud/speech/v1/internal/speech_tracing_connection.cc @@ -52,26 +52,24 @@ SpeechTracingConnection::LongRunningRecognize( StatusOr SpeechTracingConnection::LongRunningRecognize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v1::LongRunningRecognizeRequest const& request) { auto span = internal::MakeSpan("speech_v1::SpeechConnection::LongRunningRecognize"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->LongRunningRecognize( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->LongRunningRecognize(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpeechTracingConnection::LongRunningRecognize( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("speech_v1::SpeechConnection::LongRunningRecognize"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->LongRunningRecognize( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->LongRunningRecognize( + ExperimentalTag{}, operation)); } std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< diff --git a/google/cloud/speech/v1/internal/speech_tracing_connection.h b/google/cloud/speech/v1/internal/speech_tracing_connection.h index c6fa37c81d993..d61eb86d82240 100644 --- a/google/cloud/speech/v1/internal/speech_tracing_connection.h +++ b/google/cloud/speech/v1/internal/speech_tracing_connection.h @@ -48,13 +48,13 @@ class SpeechTracingConnection : public speech_v1::SpeechConnection { override; StatusOr LongRunningRecognize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v1::LongRunningRecognizeRequest const& request) override; future> LongRunningRecognize( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< diff --git a/google/cloud/speech/v1/mocks/mock_speech_connection.h b/google/cloud/speech/v1/mocks/mock_speech_connection.h index b14c5ce7f6e0b..095323d15fedd 100644 --- a/google/cloud/speech/v1/mocks/mock_speech_connection.h +++ b/google/cloud/speech/v1/mocks/mock_speech_connection.h @@ -58,15 +58,14 @@ class MockSpeechConnection : public speech_v1::SpeechConnection { MOCK_METHOD( StatusOr, LongRunningRecognize, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::speech::v1::LongRunningRecognizeRequest const& request), (override)); MOCK_METHOD( future>, LongRunningRecognize, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< diff --git a/google/cloud/speech/v2/internal/speech_connection_impl.cc b/google/cloud/speech/v2/internal/speech_connection_impl.cc index d49f9c5519eb9..c15bbd5d86d05 100644 --- a/google/cloud/speech/v2/internal/speech_connection_impl.cc +++ b/google/cloud/speech/v2/internal/speech_connection_impl.cc @@ -102,7 +102,7 @@ SpeechConnectionImpl::CreateRecognizer( } StatusOr SpeechConnectionImpl::CreateRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::CreateRecognizerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -118,8 +118,7 @@ StatusOr SpeechConnectionImpl::CreateRecognizer( future> SpeechConnectionImpl::CreateRecognizer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -241,7 +240,7 @@ SpeechConnectionImpl::UpdateRecognizer( } StatusOr SpeechConnectionImpl::UpdateRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::UpdateRecognizerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -257,8 +256,7 @@ StatusOr SpeechConnectionImpl::UpdateRecognizer( future> SpeechConnectionImpl::UpdateRecognizer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -332,7 +330,7 @@ SpeechConnectionImpl::DeleteRecognizer( } StatusOr SpeechConnectionImpl::DeleteRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::DeleteRecognizerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -348,8 +346,7 @@ StatusOr SpeechConnectionImpl::DeleteRecognizer( future> SpeechConnectionImpl::DeleteRecognizer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -424,7 +421,7 @@ SpeechConnectionImpl::UndeleteRecognizer( StatusOr SpeechConnectionImpl::UndeleteRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::UndeleteRecognizerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -440,8 +437,7 @@ SpeechConnectionImpl::UndeleteRecognizer( future> SpeechConnectionImpl::UndeleteRecognizer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -538,7 +534,7 @@ SpeechConnectionImpl::BatchRecognize( } StatusOr SpeechConnectionImpl::BatchRecognize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::BatchRecognizeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -553,8 +549,7 @@ StatusOr SpeechConnectionImpl::BatchRecognize( future> SpeechConnectionImpl::BatchRecognize( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -656,7 +651,7 @@ SpeechConnectionImpl::CreateCustomClass( StatusOr SpeechConnectionImpl::CreateCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::CreateCustomClassRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -672,8 +667,7 @@ SpeechConnectionImpl::CreateCustomClass( future> SpeechConnectionImpl::CreateCustomClass( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -796,7 +790,7 @@ SpeechConnectionImpl::UpdateCustomClass( StatusOr SpeechConnectionImpl::UpdateCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::UpdateCustomClassRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -812,8 +806,7 @@ SpeechConnectionImpl::UpdateCustomClass( future> SpeechConnectionImpl::UpdateCustomClass( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -888,7 +881,7 @@ SpeechConnectionImpl::DeleteCustomClass( StatusOr SpeechConnectionImpl::DeleteCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::DeleteCustomClassRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -904,8 +897,7 @@ SpeechConnectionImpl::DeleteCustomClass( future> SpeechConnectionImpl::DeleteCustomClass( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -981,7 +973,7 @@ SpeechConnectionImpl::UndeleteCustomClass( StatusOr SpeechConnectionImpl::UndeleteCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::UndeleteCustomClassRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -997,8 +989,7 @@ SpeechConnectionImpl::UndeleteCustomClass( future> SpeechConnectionImpl::UndeleteCustomClass( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1072,7 +1063,7 @@ SpeechConnectionImpl::CreatePhraseSet( } StatusOr SpeechConnectionImpl::CreatePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::CreatePhraseSetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1087,8 +1078,7 @@ StatusOr SpeechConnectionImpl::CreatePhraseSet( future> SpeechConnectionImpl::CreatePhraseSet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1210,7 +1200,7 @@ SpeechConnectionImpl::UpdatePhraseSet( } StatusOr SpeechConnectionImpl::UpdatePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::UpdatePhraseSetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1225,8 +1215,7 @@ StatusOr SpeechConnectionImpl::UpdatePhraseSet( future> SpeechConnectionImpl::UpdatePhraseSet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1300,7 +1289,7 @@ SpeechConnectionImpl::DeletePhraseSet( } StatusOr SpeechConnectionImpl::DeletePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::DeletePhraseSetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1315,8 +1304,7 @@ StatusOr SpeechConnectionImpl::DeletePhraseSet( future> SpeechConnectionImpl::DeletePhraseSet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1391,7 +1379,7 @@ SpeechConnectionImpl::UndeletePhraseSet( StatusOr SpeechConnectionImpl::UndeletePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::UndeletePhraseSetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1407,8 +1395,7 @@ SpeechConnectionImpl::UndeletePhraseSet( future> SpeechConnectionImpl::UndeletePhraseSet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/speech/v2/internal/speech_connection_impl.h b/google/cloud/speech/v2/internal/speech_connection_impl.h index afc1e82525472..3bc17f2fc35b3 100644 --- a/google/cloud/speech/v2/internal/speech_connection_impl.h +++ b/google/cloud/speech/v2/internal/speech_connection_impl.h @@ -56,12 +56,12 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr CreateRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::CreateRecognizerRequest const& request) override; future> CreateRecognizer( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListRecognizers( @@ -75,12 +75,12 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr UpdateRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::UpdateRecognizerRequest const& request) override; future> UpdateRecognizer( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteRecognizer( @@ -88,12 +88,12 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr DeleteRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::DeleteRecognizerRequest const& request) override; future> DeleteRecognizer( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UndeleteRecognizer( @@ -101,12 +101,12 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr UndeleteRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::UndeleteRecognizerRequest const& request) override; future> UndeleteRecognizer( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr Recognize( @@ -122,11 +122,11 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { google::cloud::speech::v2::BatchRecognizeRequest const& request) override; StatusOr BatchRecognize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::BatchRecognizeRequest const& request) override; future> - BatchRecognize(google::cloud::ExperimentalTag, + BatchRecognize(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetConfig( @@ -140,12 +140,12 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr CreateCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::CreateCustomClassRequest const& request) override; future> CreateCustomClass( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListCustomClasses( @@ -159,12 +159,12 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr UpdateCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::UpdateCustomClassRequest const& request) override; future> UpdateCustomClass( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteCustomClass( @@ -172,12 +172,12 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr DeleteCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::DeleteCustomClassRequest const& request) override; future> DeleteCustomClass( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UndeleteCustomClass( @@ -185,12 +185,12 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr UndeleteCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::UndeleteCustomClassRequest const& request) override; future> UndeleteCustomClass( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreatePhraseSet( @@ -198,12 +198,12 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr CreatePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::CreatePhraseSetRequest const& request) override; future> CreatePhraseSet( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListPhraseSets( @@ -217,12 +217,12 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr UpdatePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::UpdatePhraseSetRequest const& request) override; future> UpdatePhraseSet( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeletePhraseSet( @@ -230,12 +230,12 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr DeletePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::DeletePhraseSetRequest const& request) override; future> DeletePhraseSet( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UndeletePhraseSet( @@ -243,12 +243,12 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr UndeletePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::speech::v2::UndeletePhraseSetRequest const& request) override; future> UndeletePhraseSet( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/speech/v2/internal/speech_tracing_connection.cc b/google/cloud/speech/v2/internal/speech_tracing_connection.cc index 64e9ea3b191b7..6ca42cf5de390 100644 --- a/google/cloud/speech/v2/internal/speech_tracing_connection.cc +++ b/google/cloud/speech/v2/internal/speech_tracing_connection.cc @@ -44,26 +44,24 @@ SpeechTracingConnection::CreateRecognizer( StatusOr SpeechTracingConnection::CreateRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreateRecognizerRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::CreateRecognizer"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateRecognizer(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateRecognizer(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpeechTracingConnection::CreateRecognizer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::CreateRecognizer"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateRecognizer(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateRecognizer(ExperimentalTag{}, operation)); } StreamRange @@ -96,26 +94,24 @@ SpeechTracingConnection::UpdateRecognizer( StatusOr SpeechTracingConnection::UpdateRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdateRecognizerRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UpdateRecognizer"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateRecognizer(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateRecognizer(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpeechTracingConnection::UpdateRecognizer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UpdateRecognizer"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateRecognizer(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateRecognizer(ExperimentalTag{}, operation)); } future> @@ -129,26 +125,24 @@ SpeechTracingConnection::DeleteRecognizer( StatusOr SpeechTracingConnection::DeleteRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeleteRecognizerRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::DeleteRecognizer"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteRecognizer(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteRecognizer(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpeechTracingConnection::DeleteRecognizer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::DeleteRecognizer"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteRecognizer(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteRecognizer(ExperimentalTag{}, operation)); } future> @@ -163,26 +157,24 @@ SpeechTracingConnection::UndeleteRecognizer( StatusOr SpeechTracingConnection::UndeleteRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeleteRecognizerRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UndeleteRecognizer"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UndeleteRecognizer(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UndeleteRecognizer(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpeechTracingConnection::UndeleteRecognizer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UndeleteRecognizer"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UndeleteRecognizer(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UndeleteRecognizer( + ExperimentalTag{}, operation)); } StatusOr @@ -210,24 +202,21 @@ SpeechTracingConnection::BatchRecognize( StatusOr SpeechTracingConnection::BatchRecognize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::BatchRecognizeRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::BatchRecognize"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BatchRecognize(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->BatchRecognize(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpeechTracingConnection::BatchRecognize( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::BatchRecognize"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->BatchRecognize(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->BatchRecognize(ExperimentalTag{}, operation)); } StatusOr SpeechTracingConnection::GetConfig( @@ -256,26 +245,24 @@ SpeechTracingConnection::CreateCustomClass( StatusOr SpeechTracingConnection::CreateCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreateCustomClassRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::CreateCustomClass"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateCustomClass(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateCustomClass(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpeechTracingConnection::CreateCustomClass( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::CreateCustomClass"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateCustomClass(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateCustomClass(ExperimentalTag{}, operation)); } StreamRange @@ -308,26 +295,24 @@ SpeechTracingConnection::UpdateCustomClass( StatusOr SpeechTracingConnection::UpdateCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdateCustomClassRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UpdateCustomClass"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateCustomClass(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateCustomClass(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpeechTracingConnection::UpdateCustomClass( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UpdateCustomClass"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateCustomClass(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateCustomClass(ExperimentalTag{}, operation)); } future> @@ -341,26 +326,24 @@ SpeechTracingConnection::DeleteCustomClass( StatusOr SpeechTracingConnection::DeleteCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeleteCustomClassRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::DeleteCustomClass"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteCustomClass(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteCustomClass(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpeechTracingConnection::DeleteCustomClass( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::DeleteCustomClass"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteCustomClass(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteCustomClass(ExperimentalTag{}, operation)); } future> @@ -375,26 +358,24 @@ SpeechTracingConnection::UndeleteCustomClass( StatusOr SpeechTracingConnection::UndeleteCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeleteCustomClassRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UndeleteCustomClass"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UndeleteCustomClass(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UndeleteCustomClass(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpeechTracingConnection::UndeleteCustomClass( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UndeleteCustomClass"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UndeleteCustomClass(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UndeleteCustomClass( + ExperimentalTag{}, operation)); } future> @@ -408,26 +389,23 @@ SpeechTracingConnection::CreatePhraseSet( StatusOr SpeechTracingConnection::CreatePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreatePhraseSetRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::CreatePhraseSet"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreatePhraseSet(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreatePhraseSet(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpeechTracingConnection::CreatePhraseSet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::CreatePhraseSet"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreatePhraseSet(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreatePhraseSet(ExperimentalTag{}, operation)); } StreamRange @@ -459,26 +437,23 @@ SpeechTracingConnection::UpdatePhraseSet( StatusOr SpeechTracingConnection::UpdatePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdatePhraseSetRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UpdatePhraseSet"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdatePhraseSet(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdatePhraseSet(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpeechTracingConnection::UpdatePhraseSet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UpdatePhraseSet"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdatePhraseSet(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdatePhraseSet(ExperimentalTag{}, operation)); } future> @@ -492,26 +467,23 @@ SpeechTracingConnection::DeletePhraseSet( StatusOr SpeechTracingConnection::DeletePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeletePhraseSetRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::DeletePhraseSet"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeletePhraseSet(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeletePhraseSet(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpeechTracingConnection::DeletePhraseSet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::DeletePhraseSet"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeletePhraseSet(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeletePhraseSet(ExperimentalTag{}, operation)); } future> @@ -525,26 +497,24 @@ SpeechTracingConnection::UndeletePhraseSet( StatusOr SpeechTracingConnection::UndeletePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeletePhraseSetRequest const& request) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UndeletePhraseSet"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UndeletePhraseSet(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UndeletePhraseSet(ExperimentalTag{}, NoAwaitTag{}, request)); } future> SpeechTracingConnection::UndeletePhraseSet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("speech_v2::SpeechConnection::UndeletePhraseSet"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UndeletePhraseSet(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UndeletePhraseSet(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/speech/v2/internal/speech_tracing_connection.h b/google/cloud/speech/v2/internal/speech_tracing_connection.h index 8cf6f41e6db34..d3e193c921416 100644 --- a/google/cloud/speech/v2/internal/speech_tracing_connection.h +++ b/google/cloud/speech/v2/internal/speech_tracing_connection.h @@ -44,12 +44,12 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { override; StatusOr CreateRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreateRecognizerRequest const& request) override; future> CreateRecognizer( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListRecognizers( @@ -63,12 +63,12 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { override; StatusOr UpdateRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdateRecognizerRequest const& request) override; future> UpdateRecognizer( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteRecognizer( @@ -76,12 +76,12 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { override; StatusOr DeleteRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeleteRecognizerRequest const& request) override; future> DeleteRecognizer( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UndeleteRecognizer( @@ -89,12 +89,12 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { override; StatusOr UndeleteRecognizer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeleteRecognizerRequest const& request) override; future> UndeleteRecognizer( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr Recognize( @@ -110,11 +110,11 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { google::cloud::speech::v2::BatchRecognizeRequest const& request) override; StatusOr BatchRecognize( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::BatchRecognizeRequest const& request) override; future> - BatchRecognize(google::cloud::ExperimentalTag, + BatchRecognize(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetConfig( @@ -128,12 +128,12 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { override; StatusOr CreateCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreateCustomClassRequest const& request) override; future> CreateCustomClass( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListCustomClasses( @@ -147,12 +147,12 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { override; StatusOr UpdateCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdateCustomClassRequest const& request) override; future> UpdateCustomClass( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteCustomClass( @@ -160,12 +160,12 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { override; StatusOr DeleteCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeleteCustomClassRequest const& request) override; future> DeleteCustomClass( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UndeleteCustomClass( @@ -173,12 +173,12 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { override; StatusOr UndeleteCustomClass( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeleteCustomClassRequest const& request) override; future> UndeleteCustomClass( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreatePhraseSet( @@ -186,12 +186,12 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { override; StatusOr CreatePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreatePhraseSetRequest const& request) override; future> CreatePhraseSet( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListPhraseSets( @@ -205,12 +205,12 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { override; StatusOr UpdatePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdatePhraseSetRequest const& request) override; future> UpdatePhraseSet( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeletePhraseSet( @@ -218,12 +218,12 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { override; StatusOr DeletePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeletePhraseSetRequest const& request) override; future> DeletePhraseSet( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UndeletePhraseSet( @@ -231,12 +231,12 @@ class SpeechTracingConnection : public speech_v2::SpeechConnection { override; StatusOr UndeletePhraseSet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeletePhraseSetRequest const& request) override; future> UndeletePhraseSet( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/speech/v2/mocks/mock_speech_connection.h b/google/cloud/speech/v2/mocks/mock_speech_connection.h index bfec7aa255d32..3a3279a9634cb 100644 --- a/google/cloud/speech/v2/mocks/mock_speech_connection.h +++ b/google/cloud/speech/v2/mocks/mock_speech_connection.h @@ -53,13 +53,13 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { MOCK_METHOD( StatusOr, CreateRecognizer, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreateRecognizerRequest const& request), (override)); MOCK_METHOD(future>, CreateRecognizer, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -79,13 +79,13 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { MOCK_METHOD( StatusOr, UpdateRecognizer, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdateRecognizerRequest const& request), (override)); MOCK_METHOD(future>, UpdateRecognizer, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -96,13 +96,13 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { MOCK_METHOD( StatusOr, DeleteRecognizer, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeleteRecognizerRequest const& request), (override)); MOCK_METHOD(future>, DeleteRecognizer, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -114,13 +114,13 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { MOCK_METHOD( StatusOr, UndeleteRecognizer, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeleteRecognizerRequest const& request), (override)); MOCK_METHOD(future>, UndeleteRecognizer, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -140,15 +140,14 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { (override)); MOCK_METHOD(StatusOr, BatchRecognize, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::BatchRecognizeRequest const& request), (override)); MOCK_METHOD( future>, BatchRecognize, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, GetConfig, @@ -167,13 +166,13 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { MOCK_METHOD( StatusOr, CreateCustomClass, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreateCustomClassRequest const& request), (override)); MOCK_METHOD(future>, CreateCustomClass, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -194,13 +193,13 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { MOCK_METHOD( StatusOr, UpdateCustomClass, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdateCustomClassRequest const& request), (override)); MOCK_METHOD(future>, UpdateCustomClass, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -212,13 +211,13 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { MOCK_METHOD( StatusOr, DeleteCustomClass, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeleteCustomClassRequest const& request), (override)); MOCK_METHOD(future>, DeleteCustomClass, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -230,13 +229,13 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { MOCK_METHOD( StatusOr, UndeleteCustomClass, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeleteCustomClassRequest const& request), (override)); MOCK_METHOD(future>, UndeleteCustomClass, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -247,13 +246,13 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { MOCK_METHOD( StatusOr, CreatePhraseSet, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreatePhraseSetRequest const& request), (override)); MOCK_METHOD(future>, CreatePhraseSet, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -273,13 +272,13 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { MOCK_METHOD( StatusOr, UpdatePhraseSet, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdatePhraseSetRequest const& request), (override)); MOCK_METHOD(future>, UpdatePhraseSet, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -290,13 +289,13 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { MOCK_METHOD( StatusOr, DeletePhraseSet, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeletePhraseSetRequest const& request), (override)); MOCK_METHOD(future>, DeletePhraseSet, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -307,13 +306,13 @@ class MockSpeechConnection : public speech_v2::SpeechConnection { MOCK_METHOD( StatusOr, UndeletePhraseSet, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeletePhraseSetRequest const& request), (override)); MOCK_METHOD(future>, UndeletePhraseSet, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.cc b/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.cc index 83d68658228db..3cfda8435c0af 100644 --- a/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.cc +++ b/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.cc @@ -198,7 +198,7 @@ StorageControlConnectionImpl::RenameFolder( StatusOr StorageControlConnectionImpl::RenameFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::storage::control::v2::RenameFolderRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -213,8 +213,7 @@ StorageControlConnectionImpl::RenameFolder( future> StorageControlConnectionImpl::RenameFolder( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.h b/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.h index 61f63ab933d5b..3f85d97b41336 100644 --- a/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.h +++ b/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.h @@ -71,12 +71,12 @@ class StorageControlConnectionImpl override; StatusOr RenameFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::storage::control::v2::RenameFolderRequest const& request) override; future> RenameFolder( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetStorageLayout( diff --git a/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.cc b/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.cc index 0cd00be0a800c..17830aba8c527 100644 --- a/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.cc +++ b/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.cc @@ -81,26 +81,23 @@ StorageControlTracingConnection::RenameFolder( StatusOr StorageControlTracingConnection::RenameFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::storage::control::v2::RenameFolderRequest const& request) { auto span = internal::MakeSpan( "storagecontrol_v2::StorageControlConnection::RenameFolder"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RenameFolder(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RenameFolder(ExperimentalTag{}, NoAwaitTag{}, request)); } future> StorageControlTracingConnection::RenameFolder( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "storagecontrol_v2::StorageControlConnection::RenameFolder"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->RenameFolder(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->RenameFolder(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.h b/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.h index 3a5accd7c412c..18c655f81dbfc 100644 --- a/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.h +++ b/google/cloud/storagecontrol/v2/internal/storage_control_tracing_connection.h @@ -58,12 +58,12 @@ class StorageControlTracingConnection override; StatusOr RenameFolder( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::storage::control::v2::RenameFolderRequest const& request) override; future> RenameFolder( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetStorageLayout( diff --git a/google/cloud/storagecontrol/v2/mocks/mock_storage_control_connection.h b/google/cloud/storagecontrol/v2/mocks/mock_storage_control_connection.h index 505281fbd164d..92cc389680fab 100644 --- a/google/cloud/storagecontrol/v2/mocks/mock_storage_control_connection.h +++ b/google/cloud/storagecontrol/v2/mocks/mock_storage_control_connection.h @@ -72,13 +72,13 @@ class MockStorageControlConnection MOCK_METHOD( StatusOr, RenameFolder, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::storage::control::v2::RenameFolderRequest const& request), (override)); MOCK_METHOD(future>, RenameFolder, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.cc b/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.cc index 7cdeb650a70af..6733f03267d41 100644 --- a/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.cc +++ b/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.cc @@ -239,7 +239,7 @@ StorageTransferServiceConnectionImpl::RunTransferJob( StatusOr StorageTransferServiceConnectionImpl::RunTransferJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::storagetransfer::v1::RunTransferJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -255,8 +255,7 @@ StorageTransferServiceConnectionImpl::RunTransferJob( future> StorageTransferServiceConnectionImpl::RunTransferJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.h b/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.h index 334b50ca33211..ac43e41be23e2 100644 --- a/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.h +++ b/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.h @@ -86,12 +86,12 @@ class StorageTransferServiceConnectionImpl request) override; StatusOr RunTransferJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::storagetransfer::v1::RunTransferJobRequest const& request) override; future> - RunTransferJob(google::cloud::ExperimentalTag, + RunTransferJob(ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteTransferJob( diff --git a/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.cc b/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.cc index 0781efc926e03..60a879a109a42 100644 --- a/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.cc +++ b/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.cc @@ -116,26 +116,23 @@ StorageTransferServiceTracingConnection::RunTransferJob( StatusOr StorageTransferServiceTracingConnection::RunTransferJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::storagetransfer::v1::RunTransferJobRequest const& request) { auto span = internal::MakeSpan( "storagetransfer_v1::StorageTransferServiceConnection::RunTransferJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->RunTransferJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->RunTransferJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> StorageTransferServiceTracingConnection::RunTransferJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "storagetransfer_v1::StorageTransferServiceConnection::RunTransferJob"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->RunTransferJob(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->RunTransferJob(ExperimentalTag{}, operation)); } Status StorageTransferServiceTracingConnection::DeleteTransferJob( diff --git a/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.h b/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.h index dbfd1b8da0fe3..0d9c1af7db5c9 100644 --- a/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.h +++ b/google/cloud/storagetransfer/v1/internal/storage_transfer_tracing_connection.h @@ -74,12 +74,12 @@ class StorageTransferServiceTracingConnection request) override; StatusOr RunTransferJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::storagetransfer::v1::RunTransferJobRequest const& request) override; future> - RunTransferJob(google::cloud::ExperimentalTag, + RunTransferJob(ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteTransferJob( diff --git a/google/cloud/storagetransfer/v1/mocks/mock_storage_transfer_connection.h b/google/cloud/storagetransfer/v1/mocks/mock_storage_transfer_connection.h index 122bc8ee14817..e7e977fc5f4da 100644 --- a/google/cloud/storagetransfer/v1/mocks/mock_storage_transfer_connection.h +++ b/google/cloud/storagetransfer/v1/mocks/mock_storage_transfer_connection.h @@ -93,13 +93,13 @@ class MockStorageTransferServiceConnection MOCK_METHOD( StatusOr, RunTransferJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::storagetransfer::v1::RunTransferJobRequest const& request), (override)); MOCK_METHOD(future>, RunTransferJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/talent/v4/internal/job_connection_impl.cc b/google/cloud/talent/v4/internal/job_connection_impl.cc index b73fda7543a51..ab07b2e3fed65 100644 --- a/google/cloud/talent/v4/internal/job_connection_impl.cc +++ b/google/cloud/talent/v4/internal/job_connection_impl.cc @@ -116,7 +116,7 @@ JobServiceConnectionImpl::BatchCreateJobs( StatusOr JobServiceConnectionImpl::BatchCreateJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::talent::v4::BatchCreateJobsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -131,8 +131,7 @@ JobServiceConnectionImpl::BatchCreateJobs( future> JobServiceConnectionImpl::BatchCreateJobs( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -234,7 +233,7 @@ JobServiceConnectionImpl::BatchUpdateJobs( StatusOr JobServiceConnectionImpl::BatchUpdateJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::talent::v4::BatchUpdateJobsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -249,8 +248,7 @@ JobServiceConnectionImpl::BatchUpdateJobs( future> JobServiceConnectionImpl::BatchUpdateJobs( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -339,7 +337,7 @@ JobServiceConnectionImpl::BatchDeleteJobs( StatusOr JobServiceConnectionImpl::BatchDeleteJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::talent::v4::BatchDeleteJobsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -354,8 +352,7 @@ JobServiceConnectionImpl::BatchDeleteJobs( future> JobServiceConnectionImpl::BatchDeleteJobs( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/talent/v4/internal/job_connection_impl.h b/google/cloud/talent/v4/internal/job_connection_impl.h index 76dade93cd41f..daea4df5ede65 100644 --- a/google/cloud/talent/v4/internal/job_connection_impl.h +++ b/google/cloud/talent/v4/internal/job_connection_impl.h @@ -59,12 +59,12 @@ class JobServiceConnectionImpl : public talent_v4::JobServiceConnection { request) override; StatusOr BatchCreateJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::talent::v4::BatchCreateJobsRequest const& request) override; future> - BatchCreateJobs(google::cloud::ExperimentalTag, + BatchCreateJobs(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetJob( @@ -78,12 +78,12 @@ class JobServiceConnectionImpl : public talent_v4::JobServiceConnection { request) override; StatusOr BatchUpdateJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::talent::v4::BatchUpdateJobsRequest const& request) override; future> - BatchUpdateJobs(google::cloud::ExperimentalTag, + BatchUpdateJobs(ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteJob( @@ -94,12 +94,12 @@ class JobServiceConnectionImpl : public talent_v4::JobServiceConnection { request) override; StatusOr BatchDeleteJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::talent::v4::BatchDeleteJobsRequest const& request) override; future> - BatchDeleteJobs(google::cloud::ExperimentalTag, + BatchDeleteJobs(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListJobs( diff --git a/google/cloud/talent/v4/internal/job_tracing_connection.cc b/google/cloud/talent/v4/internal/job_tracing_connection.cc index 53bcb3e8b4f56..677220d7c6778 100644 --- a/google/cloud/talent/v4/internal/job_tracing_connection.cc +++ b/google/cloud/talent/v4/internal/job_tracing_connection.cc @@ -51,26 +51,23 @@ JobServiceTracingConnection::BatchCreateJobs( StatusOr JobServiceTracingConnection::BatchCreateJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchCreateJobsRequest const& request) { auto span = internal::MakeSpan("talent_v4::JobServiceConnection::BatchCreateJobs"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BatchCreateJobs(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->BatchCreateJobs(ExperimentalTag{}, NoAwaitTag{}, request)); } future> JobServiceTracingConnection::BatchCreateJobs( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("talent_v4::JobServiceConnection::BatchCreateJobs"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->BatchCreateJobs(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->BatchCreateJobs(ExperimentalTag{}, operation)); } StatusOr JobServiceTracingConnection::GetJob( @@ -98,26 +95,23 @@ JobServiceTracingConnection::BatchUpdateJobs( StatusOr JobServiceTracingConnection::BatchUpdateJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchUpdateJobsRequest const& request) { auto span = internal::MakeSpan("talent_v4::JobServiceConnection::BatchUpdateJobs"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BatchUpdateJobs(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->BatchUpdateJobs(ExperimentalTag{}, NoAwaitTag{}, request)); } future> JobServiceTracingConnection::BatchUpdateJobs( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("talent_v4::JobServiceConnection::BatchUpdateJobs"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->BatchUpdateJobs(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->BatchUpdateJobs(ExperimentalTag{}, operation)); } Status JobServiceTracingConnection::DeleteJob( @@ -138,26 +132,23 @@ JobServiceTracingConnection::BatchDeleteJobs( StatusOr JobServiceTracingConnection::BatchDeleteJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchDeleteJobsRequest const& request) { auto span = internal::MakeSpan("talent_v4::JobServiceConnection::BatchDeleteJobs"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BatchDeleteJobs(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->BatchDeleteJobs(ExperimentalTag{}, NoAwaitTag{}, request)); } future> JobServiceTracingConnection::BatchDeleteJobs( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("talent_v4::JobServiceConnection::BatchDeleteJobs"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->BatchDeleteJobs(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->BatchDeleteJobs(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/talent/v4/internal/job_tracing_connection.h b/google/cloud/talent/v4/internal/job_tracing_connection.h index 6ec9db01f5b6a..0b4f3a2fafb8b 100644 --- a/google/cloud/talent/v4/internal/job_tracing_connection.h +++ b/google/cloud/talent/v4/internal/job_tracing_connection.h @@ -47,12 +47,12 @@ class JobServiceTracingConnection : public talent_v4::JobServiceConnection { request) override; StatusOr BatchCreateJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchCreateJobsRequest const& request) override; future> - BatchCreateJobs(google::cloud::ExperimentalTag, + BatchCreateJobs(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetJob( @@ -66,12 +66,12 @@ class JobServiceTracingConnection : public talent_v4::JobServiceConnection { request) override; StatusOr BatchUpdateJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchUpdateJobsRequest const& request) override; future> - BatchUpdateJobs(google::cloud::ExperimentalTag, + BatchUpdateJobs(ExperimentalTag, google::longrunning::Operation const& operation) override; Status DeleteJob( @@ -82,12 +82,12 @@ class JobServiceTracingConnection : public talent_v4::JobServiceConnection { request) override; StatusOr BatchDeleteJobs( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchDeleteJobsRequest const& request) override; future> - BatchDeleteJobs(google::cloud::ExperimentalTag, + BatchDeleteJobs(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListJobs( diff --git a/google/cloud/talent/v4/mocks/mock_job_connection.h b/google/cloud/talent/v4/mocks/mock_job_connection.h index 227734a43cc12..a2ae5ba395855 100644 --- a/google/cloud/talent/v4/mocks/mock_job_connection.h +++ b/google/cloud/talent/v4/mocks/mock_job_connection.h @@ -58,15 +58,14 @@ class MockJobServiceConnection : public talent_v4::JobServiceConnection { MOCK_METHOD( StatusOr, BatchCreateJobs, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchCreateJobsRequest const& request), (override)); MOCK_METHOD( future>, BatchCreateJobs, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, GetJob, @@ -85,15 +84,14 @@ class MockJobServiceConnection : public talent_v4::JobServiceConnection { MOCK_METHOD( StatusOr, BatchUpdateJobs, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchUpdateJobsRequest const& request), (override)); MOCK_METHOD( future>, BatchUpdateJobs, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(Status, DeleteJob, @@ -108,15 +106,14 @@ class MockJobServiceConnection : public talent_v4::JobServiceConnection { MOCK_METHOD( StatusOr, BatchDeleteJobs, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchDeleteJobsRequest const& request), (override)); MOCK_METHOD( future>, BatchDeleteJobs, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), ListJobs, diff --git a/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.cc b/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.cc index 80ff38d7ca527..3707ee0ed839e 100644 --- a/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.cc +++ b/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.cc @@ -164,7 +164,7 @@ TelcoAutomationConnectionImpl::CreateOrchestrationCluster( StatusOr TelcoAutomationConnectionImpl::CreateOrchestrationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::telcoautomation::v1::CreateOrchestrationClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -181,8 +181,7 @@ TelcoAutomationConnectionImpl::CreateOrchestrationCluster( future> TelcoAutomationConnectionImpl::CreateOrchestrationCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TelcoAutomationConnectionImpl::DeleteOrchestrationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::telcoautomation::v1::DeleteOrchestrationClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -277,8 +276,7 @@ TelcoAutomationConnectionImpl::DeleteOrchestrationCluster( future> TelcoAutomationConnectionImpl::DeleteOrchestrationCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TelcoAutomationConnectionImpl::CreateEdgeSlm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -422,8 +420,7 @@ TelcoAutomationConnectionImpl::CreateEdgeSlm( future> TelcoAutomationConnectionImpl::CreateEdgeSlm( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TelcoAutomationConnectionImpl::DeleteEdgeSlm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -517,8 +514,7 @@ TelcoAutomationConnectionImpl::DeleteEdgeSlm( future> TelcoAutomationConnectionImpl::DeleteEdgeSlm( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateOrchestrationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::telcoautomation::v1:: CreateOrchestrationClusterRequest const& request) override; future> CreateOrchestrationCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -83,13 +83,13 @@ class TelcoAutomationConnectionImpl DeleteOrchestrationClusterRequest const& request) override; StatusOr DeleteOrchestrationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::telcoautomation::v1:: DeleteOrchestrationClusterRequest const& request) override; future> DeleteOrchestrationCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListEdgeSlms( @@ -104,12 +104,12 @@ class TelcoAutomationConnectionImpl override; StatusOr CreateEdgeSlm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request) override; future> CreateEdgeSlm( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -117,12 +117,12 @@ class TelcoAutomationConnectionImpl request) override; StatusOr DeleteEdgeSlm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request) override; future> - DeleteEdgeSlm(google::cloud::ExperimentalTag, + DeleteEdgeSlm(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateBlueprint( diff --git a/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.cc b/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.cc index 4275dbbcb06ae..6ed945a7aaf0c 100644 --- a/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.cc +++ b/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.cc @@ -71,29 +71,27 @@ TelcoAutomationTracingConnection::CreateOrchestrationCluster( StatusOr TelcoAutomationTracingConnection::CreateOrchestrationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::CreateOrchestrationClusterRequest const& request) { auto span = internal::MakeSpan( "telcoautomation_v1::TelcoAutomationConnection::" "CreateOrchestrationCluster"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateOrchestrationCluster( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateOrchestrationCluster(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> TelcoAutomationTracingConnection::CreateOrchestrationCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "telcoautomation_v1::TelcoAutomationConnection::" "CreateOrchestrationCluster"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateOrchestrationCluster( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateOrchestrationCluster( + ExperimentalTag{}, operation)); } future> @@ -110,29 +108,27 @@ TelcoAutomationTracingConnection::DeleteOrchestrationCluster( StatusOr TelcoAutomationTracingConnection::DeleteOrchestrationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::DeleteOrchestrationClusterRequest const& request) { auto span = internal::MakeSpan( "telcoautomation_v1::TelcoAutomationConnection::" "DeleteOrchestrationCluster"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteOrchestrationCluster( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteOrchestrationCluster(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> TelcoAutomationTracingConnection::DeleteOrchestrationCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "telcoautomation_v1::TelcoAutomationConnection::" "DeleteOrchestrationCluster"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteOrchestrationCluster( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteOrchestrationCluster( + ExperimentalTag{}, operation)); } StreamRange @@ -167,26 +163,23 @@ TelcoAutomationTracingConnection::CreateEdgeSlm( StatusOr TelcoAutomationTracingConnection::CreateEdgeSlm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request) { auto span = internal::MakeSpan( "telcoautomation_v1::TelcoAutomationConnection::CreateEdgeSlm"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateEdgeSlm(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateEdgeSlm(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TelcoAutomationTracingConnection::CreateEdgeSlm( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "telcoautomation_v1::TelcoAutomationConnection::CreateEdgeSlm"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateEdgeSlm(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateEdgeSlm(ExperimentalTag{}, operation)); } future> @@ -200,26 +193,23 @@ TelcoAutomationTracingConnection::DeleteEdgeSlm( StatusOr TelcoAutomationTracingConnection::DeleteEdgeSlm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request) { auto span = internal::MakeSpan( "telcoautomation_v1::TelcoAutomationConnection::DeleteEdgeSlm"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteEdgeSlm(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteEdgeSlm(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TelcoAutomationTracingConnection::DeleteEdgeSlm( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "telcoautomation_v1::TelcoAutomationConnection::DeleteEdgeSlm"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteEdgeSlm(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteEdgeSlm(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.h b/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.h index 35930b2b7c18a..4d4aae9094b3e 100644 --- a/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.h +++ b/google/cloud/telcoautomation/v1/internal/telco_automation_tracing_connection.h @@ -56,13 +56,13 @@ class TelcoAutomationTracingConnection CreateOrchestrationClusterRequest const& request) override; StatusOr CreateOrchestrationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1:: CreateOrchestrationClusterRequest const& request) override; future> CreateOrchestrationCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -71,13 +71,13 @@ class TelcoAutomationTracingConnection DeleteOrchestrationClusterRequest const& request) override; StatusOr DeleteOrchestrationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1:: DeleteOrchestrationClusterRequest const& request) override; future> DeleteOrchestrationCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListEdgeSlms( @@ -92,12 +92,12 @@ class TelcoAutomationTracingConnection override; StatusOr CreateEdgeSlm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request) override; future> CreateEdgeSlm( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -105,12 +105,12 @@ class TelcoAutomationTracingConnection request) override; StatusOr DeleteEdgeSlm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request) override; future> - DeleteEdgeSlm(google::cloud::ExperimentalTag, + DeleteEdgeSlm(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateBlueprint( diff --git a/google/cloud/telcoautomation/v1/mocks/mock_telco_automation_connection.h b/google/cloud/telcoautomation/v1/mocks/mock_telco_automation_connection.h index 87ec46bbcfda3..d1424d4f97431 100644 --- a/google/cloud/telcoautomation/v1/mocks/mock_telco_automation_connection.h +++ b/google/cloud/telcoautomation/v1/mocks/mock_telco_automation_connection.h @@ -71,7 +71,7 @@ class MockTelcoAutomationConnection MOCK_METHOD(StatusOr, CreateOrchestrationCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1:: CreateOrchestrationClusterRequest const& request), (override)); @@ -80,8 +80,7 @@ class MockTelcoAutomationConnection future< StatusOr>, CreateOrchestrationCluster, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -93,7 +92,7 @@ class MockTelcoAutomationConnection MOCK_METHOD(StatusOr, DeleteOrchestrationCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1:: DeleteOrchestrationClusterRequest const& request), (override)); @@ -101,8 +100,7 @@ class MockTelcoAutomationConnection MOCK_METHOD( future>, DeleteOrchestrationCluster, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), @@ -123,13 +121,13 @@ class MockTelcoAutomationConnection MOCK_METHOD( StatusOr, CreateEdgeSlm, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request), (override)); MOCK_METHOD(future>, CreateEdgeSlm, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -141,15 +139,14 @@ class MockTelcoAutomationConnection MOCK_METHOD( StatusOr, DeleteEdgeSlm, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request), (override)); MOCK_METHOD( future>, DeleteEdgeSlm, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(StatusOr, diff --git a/google/cloud/tpu/v1/internal/tpu_connection_impl.cc b/google/cloud/tpu/v1/internal/tpu_connection_impl.cc index 5ab6d092e88d3..69937b030afc5 100644 --- a/google/cloud/tpu/v1/internal/tpu_connection_impl.cc +++ b/google/cloud/tpu/v1/internal/tpu_connection_impl.cc @@ -141,7 +141,7 @@ future> TpuConnectionImpl::CreateNode( } StatusOr TpuConnectionImpl::CreateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v1::CreateNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -155,8 +155,7 @@ StatusOr TpuConnectionImpl::CreateNode( } future> TpuConnectionImpl::CreateNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -228,7 +227,7 @@ future> TpuConnectionImpl::DeleteNode( } StatusOr TpuConnectionImpl::DeleteNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v1::DeleteNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -242,8 +241,7 @@ StatusOr TpuConnectionImpl::DeleteNode( } future> TpuConnectionImpl::DeleteNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -316,7 +314,7 @@ future> TpuConnectionImpl::ReimageNode( } StatusOr TpuConnectionImpl::ReimageNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v1::ReimageNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -330,8 +328,7 @@ StatusOr TpuConnectionImpl::ReimageNode( } future> TpuConnectionImpl::ReimageNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -402,7 +399,7 @@ future> TpuConnectionImpl::StopNode( } StatusOr TpuConnectionImpl::StopNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v1::StopNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -416,8 +413,7 @@ StatusOr TpuConnectionImpl::StopNode( } future> TpuConnectionImpl::StopNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -488,7 +484,7 @@ future> TpuConnectionImpl::StartNode( } StatusOr TpuConnectionImpl::StartNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v1::StartNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -502,8 +498,7 @@ StatusOr TpuConnectionImpl::StartNode( } future> TpuConnectionImpl::StartNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/tpu/v1/internal/tpu_connection_impl.h b/google/cloud/tpu/v1/internal/tpu_connection_impl.h index 2f972f3e257a0..614219aa3d668 100644 --- a/google/cloud/tpu/v1/internal/tpu_connection_impl.h +++ b/google/cloud/tpu/v1/internal/tpu_connection_impl.h @@ -60,55 +60,55 @@ class TpuConnectionImpl : public tpu_v1::TpuConnection { google::cloud::tpu::v1::CreateNodeRequest const& request) override; StatusOr CreateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v1::CreateNodeRequest const& request) override; future> CreateNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteNode( google::cloud::tpu::v1::DeleteNodeRequest const& request) override; StatusOr DeleteNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v1::DeleteNodeRequest const& request) override; future> DeleteNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ReimageNode( google::cloud::tpu::v1::ReimageNodeRequest const& request) override; StatusOr ReimageNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v1::ReimageNodeRequest const& request) override; future> ReimageNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StopNode( google::cloud::tpu::v1::StopNodeRequest const& request) override; StatusOr StopNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v1::StopNodeRequest const& request) override; future> StopNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StartNode( google::cloud::tpu::v1::StartNodeRequest const& request) override; StatusOr StartNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v1::StartNodeRequest const& request) override; future> StartNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTensorFlowVersions( diff --git a/google/cloud/tpu/v1/internal/tpu_tracing_connection.cc b/google/cloud/tpu/v1/internal/tpu_tracing_connection.cc index 0529f7374a19d..28d7f72057570 100644 --- a/google/cloud/tpu/v1/internal/tpu_tracing_connection.cc +++ b/google/cloud/tpu/v1/internal/tpu_tracing_connection.cc @@ -57,23 +57,20 @@ future> TpuTracingConnection::CreateNode( } StatusOr TpuTracingConnection::CreateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::CreateNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::CreateNode"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateNode(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateNode(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TpuTracingConnection::CreateNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::CreateNode"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateNode(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateNode(ExperimentalTag{}, operation)); } future> TpuTracingConnection::DeleteNode( @@ -84,23 +81,20 @@ future> TpuTracingConnection::DeleteNode( } StatusOr TpuTracingConnection::DeleteNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::DeleteNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::DeleteNode"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteNode(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteNode(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TpuTracingConnection::DeleteNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::DeleteNode"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteNode(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteNode(ExperimentalTag{}, operation)); } future> @@ -112,24 +106,21 @@ TpuTracingConnection::ReimageNode( } StatusOr TpuTracingConnection::ReimageNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::ReimageNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::ReimageNode"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ReimageNode(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ReimageNode(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TpuTracingConnection::ReimageNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::ReimageNode"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ReimageNode(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->ReimageNode(ExperimentalTag{}, operation)); } future> TpuTracingConnection::StopNode( @@ -140,23 +131,20 @@ future> TpuTracingConnection::StopNode( } StatusOr TpuTracingConnection::StopNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::StopNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::StopNode"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StopNode(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StopNode(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TpuTracingConnection::StopNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::StopNode"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->StopNode(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->StopNode(ExperimentalTag{}, operation)); } future> TpuTracingConnection::StartNode( @@ -167,23 +155,20 @@ future> TpuTracingConnection::StartNode( } StatusOr TpuTracingConnection::StartNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::StartNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::StartNode"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StartNode(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StartNode(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TpuTracingConnection::StartNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("tpu_v1::TpuConnection::StartNode"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->StartNode(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->StartNode(ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/tpu/v1/internal/tpu_tracing_connection.h b/google/cloud/tpu/v1/internal/tpu_tracing_connection.h index dd211068a0359..1249d6c3486c5 100644 --- a/google/cloud/tpu/v1/internal/tpu_tracing_connection.h +++ b/google/cloud/tpu/v1/internal/tpu_tracing_connection.h @@ -48,55 +48,55 @@ class TpuTracingConnection : public tpu_v1::TpuConnection { google::cloud::tpu::v1::CreateNodeRequest const& request) override; StatusOr CreateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::CreateNodeRequest const& request) override; future> CreateNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteNode( google::cloud::tpu::v1::DeleteNodeRequest const& request) override; StatusOr DeleteNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::DeleteNodeRequest const& request) override; future> DeleteNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> ReimageNode( google::cloud::tpu::v1::ReimageNodeRequest const& request) override; StatusOr ReimageNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::ReimageNodeRequest const& request) override; future> ReimageNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StopNode( google::cloud::tpu::v1::StopNodeRequest const& request) override; StatusOr StopNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::StopNodeRequest const& request) override; future> StopNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StartNode( google::cloud::tpu::v1::StartNodeRequest const& request) override; StatusOr StartNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::StartNodeRequest const& request) override; future> StartNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTensorFlowVersions( diff --git a/google/cloud/tpu/v1/mocks/mock_tpu_connection.h b/google/cloud/tpu/v1/mocks/mock_tpu_connection.h index d62ea3cabfe2c..849e3e5acc208 100644 --- a/google/cloud/tpu/v1/mocks/mock_tpu_connection.h +++ b/google/cloud/tpu/v1/mocks/mock_tpu_connection.h @@ -58,12 +58,12 @@ class MockTpuConnection : public tpu_v1::TpuConnection { (override)); MOCK_METHOD(StatusOr, CreateNode, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::CreateNodeRequest const& request), (override)); MOCK_METHOD(future>, CreateNode, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -72,12 +72,12 @@ class MockTpuConnection : public tpu_v1::TpuConnection { (override)); MOCK_METHOD(StatusOr, DeleteNode, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::DeleteNodeRequest const& request), (override)); MOCK_METHOD(future>, DeleteNode, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -86,12 +86,12 @@ class MockTpuConnection : public tpu_v1::TpuConnection { (override)); MOCK_METHOD(StatusOr, ReimageNode, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::ReimageNodeRequest const& request), (override)); MOCK_METHOD(future>, ReimageNode, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -100,12 +100,12 @@ class MockTpuConnection : public tpu_v1::TpuConnection { (override)); MOCK_METHOD(StatusOr, StopNode, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::StopNodeRequest const& request), (override)); MOCK_METHOD(future>, StopNode, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -114,12 +114,12 @@ class MockTpuConnection : public tpu_v1::TpuConnection { (override)); MOCK_METHOD(StatusOr, StartNode, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::StartNodeRequest const& request), (override)); MOCK_METHOD(future>, StartNode, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/tpu/v2/internal/tpu_connection_impl.cc b/google/cloud/tpu/v2/internal/tpu_connection_impl.cc index ba382602b6b02..47063fae21721 100644 --- a/google/cloud/tpu/v2/internal/tpu_connection_impl.cc +++ b/google/cloud/tpu/v2/internal/tpu_connection_impl.cc @@ -141,7 +141,7 @@ future> TpuConnectionImpl::CreateNode( } StatusOr TpuConnectionImpl::CreateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v2::CreateNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -155,8 +155,7 @@ StatusOr TpuConnectionImpl::CreateNode( } future> TpuConnectionImpl::CreateNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -229,7 +228,7 @@ TpuConnectionImpl::DeleteNode( } StatusOr TpuConnectionImpl::DeleteNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v2::DeleteNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -243,7 +242,7 @@ StatusOr TpuConnectionImpl::DeleteNode( } future> -TpuConnectionImpl::DeleteNode(google::cloud::ExperimentalTag, +TpuConnectionImpl::DeleteNode(ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() @@ -316,7 +315,7 @@ future> TpuConnectionImpl::StopNode( } StatusOr TpuConnectionImpl::StopNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v2::StopNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -330,8 +329,7 @@ StatusOr TpuConnectionImpl::StopNode( } future> TpuConnectionImpl::StopNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -402,7 +400,7 @@ future> TpuConnectionImpl::StartNode( } StatusOr TpuConnectionImpl::StartNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v2::StartNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -416,8 +414,7 @@ StatusOr TpuConnectionImpl::StartNode( } future> TpuConnectionImpl::StartNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -489,7 +486,7 @@ future> TpuConnectionImpl::UpdateNode( } StatusOr TpuConnectionImpl::UpdateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v2::UpdateNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -503,8 +500,7 @@ StatusOr TpuConnectionImpl::UpdateNode( } future> TpuConnectionImpl::UpdateNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/tpu/v2/internal/tpu_connection_impl.h b/google/cloud/tpu/v2/internal/tpu_connection_impl.h index 54f3170b38eea..57568596545fb 100644 --- a/google/cloud/tpu/v2/internal/tpu_connection_impl.h +++ b/google/cloud/tpu/v2/internal/tpu_connection_impl.h @@ -60,55 +60,55 @@ class TpuConnectionImpl : public tpu_v2::TpuConnection { google::cloud::tpu::v2::CreateNodeRequest const& request) override; StatusOr CreateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v2::CreateNodeRequest const& request) override; future> CreateNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteNode( google::cloud::tpu::v2::DeleteNodeRequest const& request) override; StatusOr DeleteNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v2::DeleteNodeRequest const& request) override; future> DeleteNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StopNode( google::cloud::tpu::v2::StopNodeRequest const& request) override; StatusOr StopNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v2::StopNodeRequest const& request) override; future> StopNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StartNode( google::cloud::tpu::v2::StartNodeRequest const& request) override; StatusOr StartNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v2::StartNodeRequest const& request) override; future> StartNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateNode( google::cloud::tpu::v2::UpdateNodeRequest const& request) override; StatusOr UpdateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::tpu::v2::UpdateNodeRequest const& request) override; future> UpdateNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/tpu/v2/internal/tpu_tracing_connection.cc b/google/cloud/tpu/v2/internal/tpu_tracing_connection.cc index 2025ed23e9c62..3eed8a7790287 100644 --- a/google/cloud/tpu/v2/internal/tpu_tracing_connection.cc +++ b/google/cloud/tpu/v2/internal/tpu_tracing_connection.cc @@ -57,23 +57,20 @@ future> TpuTracingConnection::CreateNode( } StatusOr TpuTracingConnection::CreateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::CreateNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::CreateNode"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateNode(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateNode(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TpuTracingConnection::CreateNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::CreateNode"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateNode(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateNode(ExperimentalTag{}, operation)); } future> @@ -85,24 +82,21 @@ TpuTracingConnection::DeleteNode( } StatusOr TpuTracingConnection::DeleteNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::DeleteNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::DeleteNode"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteNode(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteNode(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TpuTracingConnection::DeleteNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::DeleteNode"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteNode(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteNode(ExperimentalTag{}, operation)); } future> TpuTracingConnection::StopNode( @@ -113,23 +107,20 @@ future> TpuTracingConnection::StopNode( } StatusOr TpuTracingConnection::StopNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::StopNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::StopNode"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StopNode(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StopNode(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TpuTracingConnection::StopNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::StopNode"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->StopNode(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->StopNode(ExperimentalTag{}, operation)); } future> TpuTracingConnection::StartNode( @@ -140,23 +131,20 @@ future> TpuTracingConnection::StartNode( } StatusOr TpuTracingConnection::StartNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::StartNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::StartNode"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StartNode(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StartNode(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TpuTracingConnection::StartNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::StartNode"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->StartNode(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->StartNode(ExperimentalTag{}, operation)); } future> TpuTracingConnection::UpdateNode( @@ -167,23 +155,20 @@ future> TpuTracingConnection::UpdateNode( } StatusOr TpuTracingConnection::UpdateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::UpdateNodeRequest const& request) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::UpdateNode"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateNode(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateNode(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TpuTracingConnection::UpdateNode( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("tpu_v2::TpuConnection::UpdateNode"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateNode(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateNode(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/tpu/v2/internal/tpu_tracing_connection.h b/google/cloud/tpu/v2/internal/tpu_tracing_connection.h index a0dce8bbd6fde..35cc324a082c5 100644 --- a/google/cloud/tpu/v2/internal/tpu_tracing_connection.h +++ b/google/cloud/tpu/v2/internal/tpu_tracing_connection.h @@ -48,55 +48,55 @@ class TpuTracingConnection : public tpu_v2::TpuConnection { google::cloud::tpu::v2::CreateNodeRequest const& request) override; StatusOr CreateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::CreateNodeRequest const& request) override; future> CreateNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> DeleteNode( google::cloud::tpu::v2::DeleteNodeRequest const& request) override; StatusOr DeleteNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::DeleteNodeRequest const& request) override; future> DeleteNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StopNode( google::cloud::tpu::v2::StopNodeRequest const& request) override; StatusOr StopNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::StopNodeRequest const& request) override; future> StopNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> StartNode( google::cloud::tpu::v2::StartNodeRequest const& request) override; StatusOr StartNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::StartNodeRequest const& request) override; future> StartNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateNode( google::cloud::tpu::v2::UpdateNodeRequest const& request) override; StatusOr UpdateNode( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::UpdateNodeRequest const& request) override; future> UpdateNode( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/tpu/v2/mocks/mock_tpu_connection.h b/google/cloud/tpu/v2/mocks/mock_tpu_connection.h index 097ce5ef81d00..8cb9f75d8968e 100644 --- a/google/cloud/tpu/v2/mocks/mock_tpu_connection.h +++ b/google/cloud/tpu/v2/mocks/mock_tpu_connection.h @@ -58,12 +58,12 @@ class MockTpuConnection : public tpu_v2::TpuConnection { (override)); MOCK_METHOD(StatusOr, CreateNode, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::CreateNodeRequest const& request), (override)); MOCK_METHOD(future>, CreateNode, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -73,13 +73,13 @@ class MockTpuConnection : public tpu_v2::TpuConnection { (override)); MOCK_METHOD(StatusOr, DeleteNode, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::DeleteNodeRequest const& request), (override)); MOCK_METHOD(future>, DeleteNode, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -88,12 +88,12 @@ class MockTpuConnection : public tpu_v2::TpuConnection { (override)); MOCK_METHOD(StatusOr, StopNode, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::StopNodeRequest const& request), (override)); MOCK_METHOD(future>, StopNode, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -102,12 +102,12 @@ class MockTpuConnection : public tpu_v2::TpuConnection { (override)); MOCK_METHOD(StatusOr, StartNode, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::StartNodeRequest const& request), (override)); MOCK_METHOD(future>, StartNode, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -116,12 +116,12 @@ class MockTpuConnection : public tpu_v2::TpuConnection { (override)); MOCK_METHOD(StatusOr, UpdateNode, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::UpdateNodeRequest const& request), (override)); MOCK_METHOD(future>, UpdateNode, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); diff --git a/google/cloud/translate/v3/internal/translation_connection_impl.cc b/google/cloud/translate/v3/internal/translation_connection_impl.cc index 49de7c580472f..a2270e6a84fec 100644 --- a/google/cloud/translate/v3/internal/translation_connection_impl.cc +++ b/google/cloud/translate/v3/internal/translation_connection_impl.cc @@ -170,7 +170,7 @@ TranslationServiceConnectionImpl::BatchTranslateText( StatusOr TranslationServiceConnectionImpl::BatchTranslateText( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::translation::v3::BatchTranslateTextRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -186,8 +186,7 @@ TranslationServiceConnectionImpl::BatchTranslateText( future> TranslationServiceConnectionImpl::BatchTranslateText( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TranslationServiceConnectionImpl::BatchTranslateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::translation::v3::BatchTranslateDocumentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -284,8 +283,7 @@ TranslationServiceConnectionImpl::BatchTranslateDocument( future> TranslationServiceConnectionImpl::BatchTranslateDocument( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TranslationServiceConnectionImpl::CreateGlossary( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::translation::v3::CreateGlossaryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -379,8 +377,7 @@ TranslationServiceConnectionImpl::CreateGlossary( future> TranslationServiceConnectionImpl::CreateGlossary( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is TranslationServiceConnectionImpl::DeleteGlossary( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::translation::v3::DeleteGlossaryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -523,8 +520,7 @@ TranslationServiceConnectionImpl::DeleteGlossary( future> TranslationServiceConnectionImpl::DeleteGlossary( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is BatchTranslateText( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::translation::v3::BatchTranslateTextRequest const& request) override; future> - BatchTranslateText(google::cloud::ExperimentalTag, + BatchTranslateText(ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -91,14 +91,14 @@ class TranslationServiceConnectionImpl request) override; StatusOr BatchTranslateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::translation::v3::BatchTranslateDocumentRequest const& request) override; future< StatusOr> BatchTranslateDocument( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateGlossary( @@ -106,12 +106,12 @@ class TranslationServiceConnectionImpl override; StatusOr CreateGlossary( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::translation::v3::CreateGlossaryRequest const& request) override; future> CreateGlossary( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListGlossaries( @@ -126,12 +126,12 @@ class TranslationServiceConnectionImpl request) override; StatusOr DeleteGlossary( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::translation::v3::DeleteGlossaryRequest const& request) override; future> - DeleteGlossary(google::cloud::ExperimentalTag, + DeleteGlossary(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/translate/v3/internal/translation_tracing_connection.cc b/google/cloud/translate/v3/internal/translation_tracing_connection.cc index 0389cacb68d5d..1809fea1861fd 100644 --- a/google/cloud/translate/v3/internal/translation_tracing_connection.cc +++ b/google/cloud/translate/v3/internal/translation_tracing_connection.cc @@ -82,26 +82,24 @@ TranslationServiceTracingConnection::BatchTranslateText( StatusOr TranslationServiceTracingConnection::BatchTranslateText( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::BatchTranslateTextRequest const& request) { auto span = internal::MakeSpan( "translate_v3::TranslationServiceConnection::BatchTranslateText"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->BatchTranslateText(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->BatchTranslateText(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TranslationServiceTracingConnection::BatchTranslateText( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "translate_v3::TranslationServiceConnection::BatchTranslateText"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->BatchTranslateText(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchTranslateText( + ExperimentalTag{}, operation)); } future> @@ -117,27 +115,25 @@ TranslationServiceTracingConnection::BatchTranslateDocument( StatusOr TranslationServiceTracingConnection::BatchTranslateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::BatchTranslateDocumentRequest const& request) { auto span = internal::MakeSpan( "translate_v3::TranslationServiceConnection::BatchTranslateDocument"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->BatchTranslateDocument( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->BatchTranslateDocument(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TranslationServiceTracingConnection::BatchTranslateDocument( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "translate_v3::TranslationServiceConnection::BatchTranslateDocument"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->BatchTranslateDocument( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->BatchTranslateDocument( + ExperimentalTag{}, operation)); } future> @@ -151,26 +147,23 @@ TranslationServiceTracingConnection::CreateGlossary( StatusOr TranslationServiceTracingConnection::CreateGlossary( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::CreateGlossaryRequest const& request) { auto span = internal::MakeSpan( "translate_v3::TranslationServiceConnection::CreateGlossary"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateGlossary(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateGlossary(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TranslationServiceTracingConnection::CreateGlossary( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "translate_v3::TranslationServiceConnection::CreateGlossary"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateGlossary(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateGlossary(ExperimentalTag{}, operation)); } StreamRange @@ -204,26 +197,23 @@ TranslationServiceTracingConnection::DeleteGlossary( StatusOr TranslationServiceTracingConnection::DeleteGlossary( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::DeleteGlossaryRequest const& request) { auto span = internal::MakeSpan( "translate_v3::TranslationServiceConnection::DeleteGlossary"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteGlossary(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteGlossary(ExperimentalTag{}, NoAwaitTag{}, request)); } future> TranslationServiceTracingConnection::DeleteGlossary( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "translate_v3::TranslationServiceConnection::DeleteGlossary"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteGlossary(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteGlossary(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/translate/v3/internal/translation_tracing_connection.h b/google/cloud/translate/v3/internal/translation_tracing_connection.h index ffaebdccc50bc..fd26e11762023 100644 --- a/google/cloud/translate/v3/internal/translation_tracing_connection.h +++ b/google/cloud/translate/v3/internal/translation_tracing_connection.h @@ -64,12 +64,12 @@ class TranslationServiceTracingConnection override; StatusOr BatchTranslateText( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::BatchTranslateTextRequest const& request) override; future> - BatchTranslateText(google::cloud::ExperimentalTag, + BatchTranslateText(ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -79,14 +79,14 @@ class TranslationServiceTracingConnection request) override; StatusOr BatchTranslateDocument( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::BatchTranslateDocumentRequest const& request) override; future< StatusOr> BatchTranslateDocument( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateGlossary( @@ -94,12 +94,12 @@ class TranslationServiceTracingConnection override; StatusOr CreateGlossary( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::CreateGlossaryRequest const& request) override; future> CreateGlossary( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListGlossaries( @@ -114,12 +114,12 @@ class TranslationServiceTracingConnection request) override; StatusOr DeleteGlossary( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::DeleteGlossaryRequest const& request) override; future> - DeleteGlossary(google::cloud::ExperimentalTag, + DeleteGlossary(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/translate/v3/mocks/mock_translation_connection.h b/google/cloud/translate/v3/mocks/mock_translation_connection.h index bfed6a37752e1..164ba614933bb 100644 --- a/google/cloud/translate/v3/mocks/mock_translation_connection.h +++ b/google/cloud/translate/v3/mocks/mock_translation_connection.h @@ -80,7 +80,7 @@ class MockTranslationServiceConnection (override)); MOCK_METHOD(StatusOr, BatchTranslateText, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::BatchTranslateTextRequest const& request), (override)); @@ -88,8 +88,7 @@ class MockTranslationServiceConnection MOCK_METHOD( future>, BatchTranslateText, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -102,7 +101,7 @@ class MockTranslationServiceConnection MOCK_METHOD( StatusOr, BatchTranslateDocument, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::BatchTranslateDocumentRequest const& request), (override)); @@ -111,8 +110,7 @@ class MockTranslationServiceConnection future>, BatchTranslateDocument, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -123,13 +121,13 @@ class MockTranslationServiceConnection MOCK_METHOD( StatusOr, CreateGlossary, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::CreateGlossaryRequest const& request), (override)); MOCK_METHOD(future>, CreateGlossary, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -151,15 +149,14 @@ class MockTranslationServiceConnection MOCK_METHOD( StatusOr, DeleteGlossary, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::DeleteGlossaryRequest const& request), (override)); MOCK_METHOD( future>, DeleteGlossary, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/video/livestream/v1/internal/livestream_connection_impl.cc b/google/cloud/video/livestream/v1/internal/livestream_connection_impl.cc index ace4d1a1bb384..60d5d29adcf02 100644 --- a/google/cloud/video/livestream/v1/internal/livestream_connection_impl.cc +++ b/google/cloud/video/livestream/v1/internal/livestream_connection_impl.cc @@ -113,7 +113,7 @@ LivestreamServiceConnectionImpl::CreateChannel( StatusOr LivestreamServiceConnectionImpl::CreateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::CreateChannelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -129,8 +129,7 @@ LivestreamServiceConnectionImpl::CreateChannel( future> LivestreamServiceConnectionImpl::CreateChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is LivestreamServiceConnectionImpl::DeleteChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::DeleteChannelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -275,8 +274,7 @@ LivestreamServiceConnectionImpl::DeleteChannel( future> LivestreamServiceConnectionImpl::DeleteChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is LivestreamServiceConnectionImpl::UpdateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::UpdateChannelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -370,8 +368,7 @@ LivestreamServiceConnectionImpl::UpdateChannel( future> LivestreamServiceConnectionImpl::UpdateChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is LivestreamServiceConnectionImpl::StartChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::StartChannelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -465,8 +462,7 @@ LivestreamServiceConnectionImpl::StartChannel( future> LivestreamServiceConnectionImpl::StartChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is LivestreamServiceConnectionImpl::StopChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::StopChannelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -560,8 +556,7 @@ LivestreamServiceConnectionImpl::StopChannel( future> LivestreamServiceConnectionImpl::StopChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is LivestreamServiceConnectionImpl::CreateInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::CreateInputRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -655,8 +650,7 @@ LivestreamServiceConnectionImpl::CreateInput( future> LivestreamServiceConnectionImpl::CreateInput( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is LivestreamServiceConnectionImpl::DeleteInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::DeleteInputRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -801,8 +795,7 @@ LivestreamServiceConnectionImpl::DeleteInput( future> LivestreamServiceConnectionImpl::DeleteInput( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is LivestreamServiceConnectionImpl::UpdateInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::UpdateInputRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -896,8 +889,7 @@ LivestreamServiceConnectionImpl::UpdateInput( future> LivestreamServiceConnectionImpl::UpdateInput( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is LivestreamServiceConnectionImpl::CreateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::CreateAssetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1071,8 +1063,7 @@ LivestreamServiceConnectionImpl::CreateAsset( future> LivestreamServiceConnectionImpl::CreateAsset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is LivestreamServiceConnectionImpl::DeleteAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::DeleteAssetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1166,8 +1157,7 @@ LivestreamServiceConnectionImpl::DeleteAsset( future> LivestreamServiceConnectionImpl::DeleteAsset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is LivestreamServiceConnectionImpl::UpdatePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::UpdatePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1327,8 +1317,7 @@ LivestreamServiceConnectionImpl::UpdatePool( future> LivestreamServiceConnectionImpl::UpdatePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::CreateChannelRequest const& request) override; future> CreateChannel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListChannels( @@ -79,12 +79,12 @@ class LivestreamServiceConnectionImpl override; StatusOr DeleteChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::DeleteChannelRequest const& request) override; future> - DeleteChannel(google::cloud::ExperimentalTag, + DeleteChannel(ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateChannel( @@ -92,12 +92,12 @@ class LivestreamServiceConnectionImpl override; StatusOr UpdateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::UpdateChannelRequest const& request) override; future> UpdateChannel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -106,13 +106,13 @@ class LivestreamServiceConnectionImpl request) override; StatusOr StartChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::StartChannelRequest const& request) override; future< StatusOr> - StartChannel(google::cloud::ExperimentalTag, + StartChannel(ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -121,13 +121,13 @@ class LivestreamServiceConnectionImpl request) override; StatusOr StopChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::StopChannelRequest const& request) override; future< StatusOr> - StopChannel(google::cloud::ExperimentalTag, + StopChannel(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateInput( @@ -135,12 +135,12 @@ class LivestreamServiceConnectionImpl override; StatusOr CreateInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::CreateInputRequest const& request) override; future> CreateInput( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListInputs( @@ -155,12 +155,12 @@ class LivestreamServiceConnectionImpl request) override; StatusOr DeleteInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::DeleteInputRequest const& request) override; future> - DeleteInput(google::cloud::ExperimentalTag, + DeleteInput(ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateInput( @@ -168,12 +168,12 @@ class LivestreamServiceConnectionImpl override; StatusOr UpdateInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::UpdateInputRequest const& request) override; future> UpdateInput( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateEvent( @@ -196,12 +196,12 @@ class LivestreamServiceConnectionImpl override; StatusOr CreateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::CreateAssetRequest const& request) override; future> CreateAsset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -209,12 +209,12 @@ class LivestreamServiceConnectionImpl request) override; StatusOr DeleteAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::DeleteAssetRequest const& request) override; future> - DeleteAsset(google::cloud::ExperimentalTag, + DeleteAsset(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAsset( @@ -233,12 +233,12 @@ class LivestreamServiceConnectionImpl override; StatusOr UpdatePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::livestream::v1::UpdatePoolRequest const& request) override; future> UpdatePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.cc b/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.cc index a1bc11924ad16..85bdd8b744b35 100644 --- a/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.cc +++ b/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.cc @@ -44,26 +44,23 @@ LivestreamServiceTracingConnection::CreateChannel( StatusOr LivestreamServiceTracingConnection::CreateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateChannelRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::CreateChannel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateChannel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateChannel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> LivestreamServiceTracingConnection::CreateChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::CreateChannel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateChannel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateChannel(ExperimentalTag{}, operation)); } StreamRange @@ -98,26 +95,23 @@ LivestreamServiceTracingConnection::DeleteChannel( StatusOr LivestreamServiceTracingConnection::DeleteChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteChannelRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::DeleteChannel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteChannel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteChannel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> LivestreamServiceTracingConnection::DeleteChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::DeleteChannel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteChannel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteChannel(ExperimentalTag{}, operation)); } future> @@ -131,26 +125,23 @@ LivestreamServiceTracingConnection::UpdateChannel( StatusOr LivestreamServiceTracingConnection::UpdateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdateChannelRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::UpdateChannel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateChannel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateChannel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> LivestreamServiceTracingConnection::UpdateChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::UpdateChannel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateChannel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateChannel(ExperimentalTag{}, operation)); } future> @@ -164,26 +155,23 @@ LivestreamServiceTracingConnection::StartChannel( StatusOr LivestreamServiceTracingConnection::StartChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::StartChannelRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::StartChannel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StartChannel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StartChannel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> LivestreamServiceTracingConnection::StartChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::StartChannel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->StartChannel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->StartChannel(ExperimentalTag{}, operation)); } future> @@ -197,26 +185,23 @@ LivestreamServiceTracingConnection::StopChannel( StatusOr LivestreamServiceTracingConnection::StopChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::StopChannelRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::StopChannel"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StopChannel(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StopChannel(ExperimentalTag{}, NoAwaitTag{}, request)); } future> LivestreamServiceTracingConnection::StopChannel( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::StopChannel"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->StopChannel(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->StopChannel(ExperimentalTag{}, operation)); } future> @@ -230,26 +215,23 @@ LivestreamServiceTracingConnection::CreateInput( StatusOr LivestreamServiceTracingConnection::CreateInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateInputRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::CreateInput"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateInput(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateInput(ExperimentalTag{}, NoAwaitTag{}, request)); } future> LivestreamServiceTracingConnection::CreateInput( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::CreateInput"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateInput(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateInput(ExperimentalTag{}, operation)); } StreamRange @@ -284,26 +266,23 @@ LivestreamServiceTracingConnection::DeleteInput( StatusOr LivestreamServiceTracingConnection::DeleteInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteInputRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::DeleteInput"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteInput(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteInput(ExperimentalTag{}, NoAwaitTag{}, request)); } future> LivestreamServiceTracingConnection::DeleteInput( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::DeleteInput"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteInput(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteInput(ExperimentalTag{}, operation)); } future> @@ -317,26 +296,23 @@ LivestreamServiceTracingConnection::UpdateInput( StatusOr LivestreamServiceTracingConnection::UpdateInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdateInputRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::UpdateInput"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateInput(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateInput(ExperimentalTag{}, NoAwaitTag{}, request)); } future> LivestreamServiceTracingConnection::UpdateInput( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::UpdateInput"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateInput(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateInput(ExperimentalTag{}, operation)); } StatusOr @@ -388,26 +364,23 @@ LivestreamServiceTracingConnection::CreateAsset( StatusOr LivestreamServiceTracingConnection::CreateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateAssetRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::CreateAsset"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateAsset(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateAsset(ExperimentalTag{}, NoAwaitTag{}, request)); } future> LivestreamServiceTracingConnection::CreateAsset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::CreateAsset"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateAsset(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateAsset(ExperimentalTag{}, operation)); } future> @@ -421,26 +394,23 @@ LivestreamServiceTracingConnection::DeleteAsset( StatusOr LivestreamServiceTracingConnection::DeleteAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteAssetRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::DeleteAsset"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteAsset(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteAsset(ExperimentalTag{}, NoAwaitTag{}, request)); } future> LivestreamServiceTracingConnection::DeleteAsset( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::DeleteAsset"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteAsset(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteAsset(ExperimentalTag{}, operation)); } StatusOr @@ -484,26 +454,23 @@ LivestreamServiceTracingConnection::UpdatePool( StatusOr LivestreamServiceTracingConnection::UpdatePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdatePoolRequest const& request) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::UpdatePool"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdatePool(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdatePool(ExperimentalTag{}, NoAwaitTag{}, request)); } future> LivestreamServiceTracingConnection::UpdatePool( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_livestream_v1::LivestreamServiceConnection::UpdatePool"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdatePool(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdatePool(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.h b/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.h index c389d084f4967..427664471fc0a 100644 --- a/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.h +++ b/google/cloud/video/livestream/v1/internal/livestream_tracing_connection.h @@ -45,12 +45,12 @@ class LivestreamServiceTracingConnection override; StatusOr CreateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateChannelRequest const& request) override; future> CreateChannel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListChannels( @@ -67,12 +67,12 @@ class LivestreamServiceTracingConnection override; StatusOr DeleteChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteChannelRequest const& request) override; future> - DeleteChannel(google::cloud::ExperimentalTag, + DeleteChannel(ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateChannel( @@ -80,12 +80,12 @@ class LivestreamServiceTracingConnection override; StatusOr UpdateChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdateChannelRequest const& request) override; future> UpdateChannel( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -94,13 +94,13 @@ class LivestreamServiceTracingConnection request) override; StatusOr StartChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::StartChannelRequest const& request) override; future< StatusOr> - StartChannel(google::cloud::ExperimentalTag, + StartChannel(ExperimentalTag, google::longrunning::Operation const& operation) override; future< @@ -109,13 +109,13 @@ class LivestreamServiceTracingConnection request) override; StatusOr StopChannel( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::StopChannelRequest const& request) override; future< StatusOr> - StopChannel(google::cloud::ExperimentalTag, + StopChannel(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateInput( @@ -123,12 +123,12 @@ class LivestreamServiceTracingConnection override; StatusOr CreateInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateInputRequest const& request) override; future> CreateInput( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListInputs( @@ -143,12 +143,12 @@ class LivestreamServiceTracingConnection request) override; StatusOr DeleteInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteInputRequest const& request) override; future> - DeleteInput(google::cloud::ExperimentalTag, + DeleteInput(ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateInput( @@ -156,12 +156,12 @@ class LivestreamServiceTracingConnection override; StatusOr UpdateInput( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdateInputRequest const& request) override; future> UpdateInput( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateEvent( @@ -184,12 +184,12 @@ class LivestreamServiceTracingConnection override; StatusOr CreateAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateAssetRequest const& request) override; future> CreateAsset( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -197,12 +197,12 @@ class LivestreamServiceTracingConnection request) override; StatusOr DeleteAsset( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteAssetRequest const& request) override; future> - DeleteAsset(google::cloud::ExperimentalTag, + DeleteAsset(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetAsset( @@ -221,12 +221,12 @@ class LivestreamServiceTracingConnection override; StatusOr UpdatePool( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdatePoolRequest const& request) override; future> UpdatePool( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/video/livestream/v1/mocks/mock_livestream_connection.h b/google/cloud/video/livestream/v1/mocks/mock_livestream_connection.h index f1b0b3df1ed10..812cf35d07e75 100644 --- a/google/cloud/video/livestream/v1/mocks/mock_livestream_connection.h +++ b/google/cloud/video/livestream/v1/mocks/mock_livestream_connection.h @@ -54,14 +54,14 @@ class MockLivestreamServiceConnection (override)); MOCK_METHOD(StatusOr, CreateChannel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateChannelRequest const& request), (override)); MOCK_METHOD(future>, CreateChannel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -84,7 +84,7 @@ class MockLivestreamServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteChannel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteChannelRequest const& request), (override)); @@ -92,8 +92,7 @@ class MockLivestreamServiceConnection MOCK_METHOD( future>, DeleteChannel, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future>, @@ -103,14 +102,14 @@ class MockLivestreamServiceConnection (override)); MOCK_METHOD(StatusOr, UpdateChannel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdateChannelRequest const& request), (override)); MOCK_METHOD(future>, UpdateChannel, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -123,7 +122,7 @@ class MockLivestreamServiceConnection (override)); MOCK_METHOD(StatusOr, StartChannel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::StartChannelRequest const& request), (override)); @@ -132,8 +131,7 @@ class MockLivestreamServiceConnection future>, StartChannel, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -145,7 +143,7 @@ class MockLivestreamServiceConnection MOCK_METHOD( StatusOr, StopChannel, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::StopChannelRequest const& request), (override)); @@ -153,8 +151,7 @@ class MockLivestreamServiceConnection future>, StopChannel, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -165,13 +162,13 @@ class MockLivestreamServiceConnection MOCK_METHOD( StatusOr, CreateInput, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateInputRequest const& request), (override)); MOCK_METHOD(future>, CreateInput, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -193,15 +190,14 @@ class MockLivestreamServiceConnection MOCK_METHOD( StatusOr, DeleteInput, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteInputRequest const& request), (override)); MOCK_METHOD( future>, DeleteInput, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -212,13 +208,13 @@ class MockLivestreamServiceConnection MOCK_METHOD( StatusOr, UpdateInput, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdateInputRequest const& request), (override)); MOCK_METHOD(future>, UpdateInput, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -250,13 +246,13 @@ class MockLivestreamServiceConnection MOCK_METHOD( StatusOr, CreateAsset, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateAssetRequest const& request), (override)); MOCK_METHOD(future>, CreateAsset, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -268,15 +264,14 @@ class MockLivestreamServiceConnection MOCK_METHOD( StatusOr, DeleteAsset, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteAssetRequest const& request), (override)); MOCK_METHOD( future>, DeleteAsset, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -301,13 +296,13 @@ class MockLivestreamServiceConnection MOCK_METHOD( StatusOr, UpdatePool, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdatePoolRequest const& request), (override)); MOCK_METHOD(future>, UpdatePool, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.cc b/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.cc index ed178de53444a..893449a9dfa00 100644 --- a/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.cc +++ b/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.cc @@ -114,7 +114,7 @@ VideoStitcherServiceConnectionImpl::CreateCdnKey( StatusOr VideoStitcherServiceConnectionImpl::CreateCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -130,8 +130,7 @@ VideoStitcherServiceConnectionImpl::CreateCdnKey( future> VideoStitcherServiceConnectionImpl::CreateCdnKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is VideoStitcherServiceConnectionImpl::DeleteCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -275,8 +274,7 @@ VideoStitcherServiceConnectionImpl::DeleteCdnKey( future> VideoStitcherServiceConnectionImpl::DeleteCdnKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is VideoStitcherServiceConnectionImpl::UpdateCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -370,8 +368,7 @@ VideoStitcherServiceConnectionImpl::UpdateCdnKey( future> VideoStitcherServiceConnectionImpl::UpdateCdnKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is VideoStitcherServiceConnectionImpl::CreateSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::CreateSlateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -656,8 +653,7 @@ VideoStitcherServiceConnectionImpl::CreateSlate( future> VideoStitcherServiceConnectionImpl::CreateSlate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is VideoStitcherServiceConnectionImpl::UpdateSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::UpdateSlateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -801,8 +797,7 @@ VideoStitcherServiceConnectionImpl::UpdateSlate( future> VideoStitcherServiceConnectionImpl::UpdateSlate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is VideoStitcherServiceConnectionImpl::DeleteSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::DeleteSlateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -896,8 +891,7 @@ VideoStitcherServiceConnectionImpl::DeleteSlate( future> VideoStitcherServiceConnectionImpl::DeleteSlate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is VideoStitcherServiceConnectionImpl::CreateLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1024,8 +1018,7 @@ VideoStitcherServiceConnectionImpl::CreateLiveConfig( future> VideoStitcherServiceConnectionImpl::CreateLiveConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is VideoStitcherServiceConnectionImpl::DeleteLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1171,8 +1164,7 @@ VideoStitcherServiceConnectionImpl::DeleteLiveConfig( future> VideoStitcherServiceConnectionImpl::DeleteLiveConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is VideoStitcherServiceConnectionImpl::UpdateLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1268,8 +1260,7 @@ VideoStitcherServiceConnectionImpl::UpdateLiveConfig( future> VideoStitcherServiceConnectionImpl::UpdateLiveConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is VideoStitcherServiceConnectionImpl::CreateVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1363,8 +1354,7 @@ VideoStitcherServiceConnectionImpl::CreateVodConfig( future> VideoStitcherServiceConnectionImpl::CreateVodConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is VideoStitcherServiceConnectionImpl::DeleteVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1509,8 +1499,7 @@ VideoStitcherServiceConnectionImpl::DeleteVodConfig( future> VideoStitcherServiceConnectionImpl::DeleteVodConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is VideoStitcherServiceConnectionImpl::UpdateVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1604,8 +1593,7 @@ VideoStitcherServiceConnectionImpl::UpdateVodConfig( future> VideoStitcherServiceConnectionImpl::UpdateVodConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is CreateCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request) override; future> CreateCdnKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListCdnKeys( @@ -78,12 +78,12 @@ class VideoStitcherServiceConnectionImpl request) override; StatusOr DeleteCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request) override; future> - DeleteCdnKey(google::cloud::ExperimentalTag, + DeleteCdnKey(ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateCdnKey( @@ -91,12 +91,12 @@ class VideoStitcherServiceConnectionImpl override; StatusOr UpdateCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request) override; future> UpdateCdnKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateVodSession( @@ -142,12 +142,12 @@ class VideoStitcherServiceConnectionImpl override; StatusOr CreateSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::CreateSlateRequest const& request) override; future> CreateSlate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListSlates( @@ -162,12 +162,12 @@ class VideoStitcherServiceConnectionImpl override; StatusOr UpdateSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::UpdateSlateRequest const& request) override; future> UpdateSlate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -175,12 +175,12 @@ class VideoStitcherServiceConnectionImpl request) override; StatusOr DeleteSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::DeleteSlateRequest const& request) override; future> - DeleteSlate(google::cloud::ExperimentalTag, + DeleteSlate(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateLiveSession( @@ -197,12 +197,12 @@ class VideoStitcherServiceConnectionImpl request) override; StatusOr CreateLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& request) override; future> - CreateLiveConfig(google::cloud::ExperimentalTag, + CreateLiveConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListLiveConfigs( @@ -219,12 +219,12 @@ class VideoStitcherServiceConnectionImpl request) override; StatusOr DeleteLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& request) override; future> - DeleteLiveConfig(google::cloud::ExperimentalTag, + DeleteLiveConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -233,12 +233,12 @@ class VideoStitcherServiceConnectionImpl request) override; StatusOr UpdateLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& request) override; future> - UpdateLiveConfig(google::cloud::ExperimentalTag, + UpdateLiveConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -247,12 +247,12 @@ class VideoStitcherServiceConnectionImpl override; StatusOr CreateVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request) override; future> - CreateVodConfig(google::cloud::ExperimentalTag, + CreateVodConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListVodConfigs( @@ -269,12 +269,12 @@ class VideoStitcherServiceConnectionImpl override; StatusOr DeleteVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& request) override; future> - DeleteVodConfig(google::cloud::ExperimentalTag, + DeleteVodConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -283,12 +283,12 @@ class VideoStitcherServiceConnectionImpl override; StatusOr UpdateVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request) override; future> - UpdateVodConfig(google::cloud::ExperimentalTag, + UpdateVodConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.cc b/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.cc index 980b8ee378291..ad09a8f2938c4 100644 --- a/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.cc +++ b/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.cc @@ -44,26 +44,23 @@ VideoStitcherServiceTracingConnection::CreateCdnKey( StatusOr VideoStitcherServiceTracingConnection::CreateCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::CreateCdnKey"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateCdnKey(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateCdnKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VideoStitcherServiceTracingConnection::CreateCdnKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::CreateCdnKey"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateCdnKey(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateCdnKey(ExperimentalTag{}, operation)); } StreamRange @@ -98,26 +95,23 @@ VideoStitcherServiceTracingConnection::DeleteCdnKey( StatusOr VideoStitcherServiceTracingConnection::DeleteCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::DeleteCdnKey"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteCdnKey(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteCdnKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VideoStitcherServiceTracingConnection::DeleteCdnKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::DeleteCdnKey"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteCdnKey(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteCdnKey(ExperimentalTag{}, operation)); } future> @@ -131,26 +125,23 @@ VideoStitcherServiceTracingConnection::UpdateCdnKey( StatusOr VideoStitcherServiceTracingConnection::UpdateCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::UpdateCdnKey"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateCdnKey(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateCdnKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VideoStitcherServiceTracingConnection::UpdateCdnKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::UpdateCdnKey"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateCdnKey(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateCdnKey(ExperimentalTag{}, operation)); } StatusOr @@ -251,26 +242,23 @@ VideoStitcherServiceTracingConnection::CreateSlate( StatusOr VideoStitcherServiceTracingConnection::CreateSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateSlateRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::CreateSlate"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateSlate(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateSlate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VideoStitcherServiceTracingConnection::CreateSlate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::CreateSlate"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateSlate(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateSlate(ExperimentalTag{}, operation)); } StreamRange @@ -305,26 +293,23 @@ VideoStitcherServiceTracingConnection::UpdateSlate( StatusOr VideoStitcherServiceTracingConnection::UpdateSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateSlateRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::UpdateSlate"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateSlate(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateSlate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VideoStitcherServiceTracingConnection::UpdateSlate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::UpdateSlate"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateSlate(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateSlate(ExperimentalTag{}, operation)); } future> @@ -338,26 +323,23 @@ VideoStitcherServiceTracingConnection::DeleteSlate( StatusOr VideoStitcherServiceTracingConnection::DeleteSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteSlateRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::DeleteSlate"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSlate(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteSlate(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VideoStitcherServiceTracingConnection::DeleteSlate( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::DeleteSlate"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteSlate(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteSlate(ExperimentalTag{}, operation)); } StatusOr @@ -391,27 +373,25 @@ VideoStitcherServiceTracingConnection::CreateLiveConfig( StatusOr VideoStitcherServiceTracingConnection::CreateLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::CreateLiveConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateLiveConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateLiveConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VideoStitcherServiceTracingConnection::CreateLiveConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::CreateLiveConfig"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateLiveConfig(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateLiveConfig(ExperimentalTag{}, operation)); } StreamRange @@ -447,27 +427,25 @@ VideoStitcherServiceTracingConnection::DeleteLiveConfig( StatusOr VideoStitcherServiceTracingConnection::DeleteLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::DeleteLiveConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteLiveConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteLiveConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VideoStitcherServiceTracingConnection::DeleteLiveConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::DeleteLiveConfig"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteLiveConfig(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteLiveConfig(ExperimentalTag{}, operation)); } future> @@ -482,27 +460,25 @@ VideoStitcherServiceTracingConnection::UpdateLiveConfig( StatusOr VideoStitcherServiceTracingConnection::UpdateLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::UpdateLiveConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateLiveConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateLiveConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VideoStitcherServiceTracingConnection::UpdateLiveConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::UpdateLiveConfig"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateLiveConfig(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateLiveConfig(ExperimentalTag{}, operation)); } future> @@ -516,26 +492,23 @@ VideoStitcherServiceTracingConnection::CreateVodConfig( StatusOr VideoStitcherServiceTracingConnection::CreateVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::CreateVodConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateVodConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateVodConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VideoStitcherServiceTracingConnection::CreateVodConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::CreateVodConfig"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateVodConfig(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateVodConfig(ExperimentalTag{}, operation)); } StreamRange @@ -570,26 +543,23 @@ VideoStitcherServiceTracingConnection::DeleteVodConfig( StatusOr VideoStitcherServiceTracingConnection::DeleteVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::DeleteVodConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteVodConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteVodConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VideoStitcherServiceTracingConnection::DeleteVodConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::DeleteVodConfig"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteVodConfig(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteVodConfig(ExperimentalTag{}, operation)); } future> @@ -603,26 +573,23 @@ VideoStitcherServiceTracingConnection::UpdateVodConfig( StatusOr VideoStitcherServiceTracingConnection::UpdateVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::UpdateVodConfig"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateVodConfig(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateVodConfig(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VideoStitcherServiceTracingConnection::UpdateVodConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "video_stitcher_v1::VideoStitcherServiceConnection::UpdateVodConfig"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateVodConfig(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateVodConfig(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.h b/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.h index fa9f4fb898422..cac585054085c 100644 --- a/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.h +++ b/google/cloud/video/stitcher/v1/internal/video_stitcher_tracing_connection.h @@ -45,12 +45,12 @@ class VideoStitcherServiceTracingConnection override; StatusOr CreateCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request) override; future> CreateCdnKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListCdnKeys( @@ -65,12 +65,12 @@ class VideoStitcherServiceTracingConnection request) override; StatusOr DeleteCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request) override; future> - DeleteCdnKey(google::cloud::ExperimentalTag, + DeleteCdnKey(ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateCdnKey( @@ -78,12 +78,12 @@ class VideoStitcherServiceTracingConnection override; StatusOr UpdateCdnKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request) override; future> UpdateCdnKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateVodSession( @@ -129,12 +129,12 @@ class VideoStitcherServiceTracingConnection override; StatusOr CreateSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateSlateRequest const& request) override; future> CreateSlate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListSlates( @@ -149,12 +149,12 @@ class VideoStitcherServiceTracingConnection override; StatusOr UpdateSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateSlateRequest const& request) override; future> UpdateSlate( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -162,12 +162,12 @@ class VideoStitcherServiceTracingConnection request) override; StatusOr DeleteSlate( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteSlateRequest const& request) override; future> - DeleteSlate(google::cloud::ExperimentalTag, + DeleteSlate(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr CreateLiveSession( @@ -184,12 +184,12 @@ class VideoStitcherServiceTracingConnection request) override; StatusOr CreateLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& request) override; future> - CreateLiveConfig(google::cloud::ExperimentalTag, + CreateLiveConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListLiveConfigs( @@ -206,12 +206,12 @@ class VideoStitcherServiceTracingConnection request) override; StatusOr DeleteLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& request) override; future> - DeleteLiveConfig(google::cloud::ExperimentalTag, + DeleteLiveConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -220,12 +220,12 @@ class VideoStitcherServiceTracingConnection request) override; StatusOr UpdateLiveConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& request) override; future> - UpdateLiveConfig(google::cloud::ExperimentalTag, + UpdateLiveConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -234,12 +234,12 @@ class VideoStitcherServiceTracingConnection override; StatusOr CreateVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request) override; future> - CreateVodConfig(google::cloud::ExperimentalTag, + CreateVodConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListVodConfigs( @@ -256,12 +256,12 @@ class VideoStitcherServiceTracingConnection override; StatusOr DeleteVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& request) override; future> - DeleteVodConfig(google::cloud::ExperimentalTag, + DeleteVodConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -270,12 +270,12 @@ class VideoStitcherServiceTracingConnection override; StatusOr UpdateVodConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request) override; future> - UpdateVodConfig(google::cloud::ExperimentalTag, + UpdateVodConfig(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/video/stitcher/v1/mocks/mock_video_stitcher_connection.h b/google/cloud/video/stitcher/v1/mocks/mock_video_stitcher_connection.h index 2a8dd10e02a63..feeecdb55aec0 100644 --- a/google/cloud/video/stitcher/v1/mocks/mock_video_stitcher_connection.h +++ b/google/cloud/video/stitcher/v1/mocks/mock_video_stitcher_connection.h @@ -55,13 +55,13 @@ class MockVideoStitcherServiceConnection MOCK_METHOD( StatusOr, CreateCdnKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request), (override)); MOCK_METHOD(future>, CreateCdnKey, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -83,15 +83,14 @@ class MockVideoStitcherServiceConnection MOCK_METHOD( StatusOr, DeleteCdnKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request), (override)); MOCK_METHOD( future>, DeleteCdnKey, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -102,13 +101,13 @@ class MockVideoStitcherServiceConnection MOCK_METHOD( StatusOr, UpdateCdnKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request), (override)); MOCK_METHOD(future>, UpdateCdnKey, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -170,13 +169,13 @@ class MockVideoStitcherServiceConnection MOCK_METHOD( StatusOr, CreateSlate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateSlateRequest const& request), (override)); MOCK_METHOD(future>, CreateSlate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -197,13 +196,13 @@ class MockVideoStitcherServiceConnection MOCK_METHOD( StatusOr, UpdateSlate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateSlateRequest const& request), (override)); MOCK_METHOD(future>, UpdateSlate, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -215,15 +214,14 @@ class MockVideoStitcherServiceConnection MOCK_METHOD( StatusOr, DeleteSlate, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteSlateRequest const& request), (override)); MOCK_METHOD( future>, DeleteSlate, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -248,14 +246,14 @@ class MockVideoStitcherServiceConnection MOCK_METHOD( StatusOr, CreateLiveConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& request), (override)); MOCK_METHOD(future>, CreateLiveConfig, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -279,7 +277,7 @@ class MockVideoStitcherServiceConnection MOCK_METHOD( StatusOr, DeleteLiveConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& request), (override)); @@ -287,8 +285,7 @@ class MockVideoStitcherServiceConnection MOCK_METHOD( future>, DeleteLiveConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -300,14 +297,14 @@ class MockVideoStitcherServiceConnection MOCK_METHOD( StatusOr, UpdateLiveConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& request), (override)); MOCK_METHOD(future>, UpdateLiveConfig, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -318,14 +315,14 @@ class MockVideoStitcherServiceConnection (override)); MOCK_METHOD(StatusOr, CreateVodConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request), (override)); MOCK_METHOD(future>, CreateVodConfig, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -348,7 +345,7 @@ class MockVideoStitcherServiceConnection (override)); MOCK_METHOD(StatusOr, DeleteVodConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& request), (override)); @@ -356,8 +353,7 @@ class MockVideoStitcherServiceConnection MOCK_METHOD( future>, DeleteVodConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD(future>, @@ -367,14 +363,14 @@ class MockVideoStitcherServiceConnection (override)); MOCK_METHOD(StatusOr, UpdateVodConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request), (override)); MOCK_METHOD(future>, UpdateVodConfig, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.cc b/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.cc index 4bd212c9668e4..d5dd09f890e1e 100644 --- a/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.cc +++ b/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.cc @@ -114,7 +114,7 @@ VideoIntelligenceServiceConnectionImpl::AnnotateVideo( StatusOr VideoIntelligenceServiceConnectionImpl::AnnotateVideo( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::videointelligence::v1::AnnotateVideoRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -130,8 +130,7 @@ VideoIntelligenceServiceConnectionImpl::AnnotateVideo( future> VideoIntelligenceServiceConnectionImpl::AnnotateVideo( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is AnnotateVideo( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::videointelligence::v1::AnnotateVideoRequest const& request) override; future> - AnnotateVideo(google::cloud::ExperimentalTag, + AnnotateVideo(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.cc b/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.cc index 63c4b9bc405de..8b0f71fbcb7c8 100644 --- a/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.cc +++ b/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.cc @@ -47,28 +47,25 @@ VideoIntelligenceServiceTracingConnection::AnnotateVideo( StatusOr VideoIntelligenceServiceTracingConnection::AnnotateVideo( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::videointelligence::v1::AnnotateVideoRequest const& request) { auto span = internal::MakeSpan( "videointelligence_v1::VideoIntelligenceServiceConnection::" "AnnotateVideo"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AnnotateVideo(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->AnnotateVideo(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VideoIntelligenceServiceTracingConnection::AnnotateVideo( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "videointelligence_v1::VideoIntelligenceServiceConnection::" "AnnotateVideo"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->AnnotateVideo(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->AnnotateVideo(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.h b/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.h index f17bb296388ea..c2a2bd1d7ef5f 100644 --- a/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.h +++ b/google/cloud/videointelligence/v1/internal/video_intelligence_tracing_connection.h @@ -47,12 +47,12 @@ class VideoIntelligenceServiceTracingConnection override; StatusOr AnnotateVideo( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::videointelligence::v1::AnnotateVideoRequest const& request) override; future> - AnnotateVideo(google::cloud::ExperimentalTag, + AnnotateVideo(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/videointelligence/v1/mocks/mock_video_intelligence_connection.h b/google/cloud/videointelligence/v1/mocks/mock_video_intelligence_connection.h index a5c40001a019e..c95807baa12ff 100644 --- a/google/cloud/videointelligence/v1/mocks/mock_video_intelligence_connection.h +++ b/google/cloud/videointelligence/v1/mocks/mock_video_intelligence_connection.h @@ -55,7 +55,7 @@ class MockVideoIntelligenceServiceConnection (override)); MOCK_METHOD(StatusOr, AnnotateVideo, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::videointelligence::v1::AnnotateVideoRequest const& request), (override)); @@ -63,7 +63,7 @@ class MockVideoIntelligenceServiceConnection MOCK_METHOD(future>, AnnotateVideo, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/vision/v1/internal/image_annotator_connection_impl.cc b/google/cloud/vision/v1/internal/image_annotator_connection_impl.cc index 6eacd3b9d851d..eedff3afec230 100644 --- a/google/cloud/vision/v1/internal/image_annotator_connection_impl.cc +++ b/google/cloud/vision/v1/internal/image_annotator_connection_impl.cc @@ -135,7 +135,7 @@ ImageAnnotatorConnectionImpl::AsyncBatchAnnotateImages( StatusOr ImageAnnotatorConnectionImpl::AsyncBatchAnnotateImages( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -151,8 +151,7 @@ ImageAnnotatorConnectionImpl::AsyncBatchAnnotateImages( future> ImageAnnotatorConnectionImpl::AsyncBatchAnnotateImages( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -229,7 +228,7 @@ ImageAnnotatorConnectionImpl::AsyncBatchAnnotateFiles( StatusOr ImageAnnotatorConnectionImpl::AsyncBatchAnnotateFiles( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -245,8 +244,7 @@ ImageAnnotatorConnectionImpl::AsyncBatchAnnotateFiles( future> ImageAnnotatorConnectionImpl::AsyncBatchAnnotateFiles( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/vision/v1/internal/image_annotator_connection_impl.h b/google/cloud/vision/v1/internal/image_annotator_connection_impl.h index 1ffa596e07879..c4722ae490d8f 100644 --- a/google/cloud/vision/v1/internal/image_annotator_connection_impl.h +++ b/google/cloud/vision/v1/internal/image_annotator_connection_impl.h @@ -66,13 +66,13 @@ class ImageAnnotatorConnectionImpl override; StatusOr AsyncBatchAnnotateImages( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& request) override; future> AsyncBatchAnnotateImages( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -81,13 +81,13 @@ class ImageAnnotatorConnectionImpl override; StatusOr AsyncBatchAnnotateFiles( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request) override; future> AsyncBatchAnnotateFiles( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/vision/v1/internal/image_annotator_tracing_connection.cc b/google/cloud/vision/v1/internal/image_annotator_tracing_connection.cc index 82dde5d60d5be..d062fa402f3e0 100644 --- a/google/cloud/vision/v1/internal/image_annotator_tracing_connection.cc +++ b/google/cloud/vision/v1/internal/image_annotator_tracing_connection.cc @@ -62,26 +62,24 @@ ImageAnnotatorTracingConnection::AsyncBatchAnnotateImages( StatusOr ImageAnnotatorTracingConnection::AsyncBatchAnnotateImages( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& request) { auto span = internal::MakeSpan( "vision_v1::ImageAnnotatorConnection::AsyncBatchAnnotateImages"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->AsyncBatchAnnotateImages( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->AsyncBatchAnnotateImages(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ImageAnnotatorTracingConnection::AsyncBatchAnnotateImages( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vision_v1::ImageAnnotatorConnection::AsyncBatchAnnotateImages"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->AsyncBatchAnnotateImages( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->AsyncBatchAnnotateImages( + ExperimentalTag{}, operation)); } future> @@ -96,26 +94,24 @@ ImageAnnotatorTracingConnection::AsyncBatchAnnotateFiles( StatusOr ImageAnnotatorTracingConnection::AsyncBatchAnnotateFiles( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request) { auto span = internal::MakeSpan( "vision_v1::ImageAnnotatorConnection::AsyncBatchAnnotateFiles"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->AsyncBatchAnnotateFiles( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->AsyncBatchAnnotateFiles(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> ImageAnnotatorTracingConnection::AsyncBatchAnnotateFiles( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vision_v1::ImageAnnotatorConnection::AsyncBatchAnnotateFiles"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->AsyncBatchAnnotateFiles( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->AsyncBatchAnnotateFiles( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/vision/v1/internal/image_annotator_tracing_connection.h b/google/cloud/vision/v1/internal/image_annotator_tracing_connection.h index 56705b5d44412..2f2727b08cb40 100644 --- a/google/cloud/vision/v1/internal/image_annotator_tracing_connection.h +++ b/google/cloud/vision/v1/internal/image_annotator_tracing_connection.h @@ -55,13 +55,13 @@ class ImageAnnotatorTracingConnection override; StatusOr AsyncBatchAnnotateImages( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& request) override; future> AsyncBatchAnnotateImages( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -70,13 +70,13 @@ class ImageAnnotatorTracingConnection override; StatusOr AsyncBatchAnnotateFiles( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request) override; future> AsyncBatchAnnotateFiles( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/vision/v1/internal/product_search_connection_impl.cc b/google/cloud/vision/v1/internal/product_search_connection_impl.cc index d65317c6f5ab3..98dcfc3f72431 100644 --- a/google/cloud/vision/v1/internal/product_search_connection_impl.cc +++ b/google/cloud/vision/v1/internal/product_search_connection_impl.cc @@ -429,7 +429,7 @@ ProductSearchConnectionImpl::ImportProductSets( StatusOr ProductSearchConnectionImpl::ImportProductSets( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vision::v1::ImportProductSetsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -445,8 +445,7 @@ ProductSearchConnectionImpl::ImportProductSets( future> ProductSearchConnectionImpl::ImportProductSets( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -522,7 +521,7 @@ ProductSearchConnectionImpl::PurgeProducts( StatusOr ProductSearchConnectionImpl::PurgeProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vision::v1::PurgeProductsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -537,8 +536,7 @@ ProductSearchConnectionImpl::PurgeProducts( future> ProductSearchConnectionImpl::PurgeProducts( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/vision/v1/internal/product_search_connection_impl.h b/google/cloud/vision/v1/internal/product_search_connection_impl.h index 03713c25c4040..804d07cfe39e0 100644 --- a/google/cloud/vision/v1/internal/product_search_connection_impl.h +++ b/google/cloud/vision/v1/internal/product_search_connection_impl.h @@ -116,12 +116,12 @@ class ProductSearchConnectionImpl : public vision_v1::ProductSearchConnection { request) override; StatusOr ImportProductSets( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vision::v1::ImportProductSetsRequest const& request) override; future> - ImportProductSets(google::cloud::ExperimentalTag, + ImportProductSets(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -129,11 +129,11 @@ class ProductSearchConnectionImpl : public vision_v1::ProductSearchConnection { google::cloud::vision::v1::PurgeProductsRequest const& request) override; StatusOr PurgeProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vision::v1::PurgeProductsRequest const& request) override; future> - PurgeProducts(google::cloud::ExperimentalTag, + PurgeProducts(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/vision/v1/internal/product_search_tracing_connection.cc b/google/cloud/vision/v1/internal/product_search_tracing_connection.cc index 53700d8e9f381..86ba0b1124c9a 100644 --- a/google/cloud/vision/v1/internal/product_search_tracing_connection.cc +++ b/google/cloud/vision/v1/internal/product_search_tracing_connection.cc @@ -202,26 +202,24 @@ ProductSearchTracingConnection::ImportProductSets( StatusOr ProductSearchTracingConnection::ImportProductSets( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::ImportProductSetsRequest const& request) { auto span = internal::MakeSpan( "vision_v1::ProductSearchConnection::ImportProductSets"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ImportProductSets(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ImportProductSets(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProductSearchTracingConnection::ImportProductSets( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vision_v1::ProductSearchConnection::ImportProductSets"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ImportProductSets(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ImportProductSets(ExperimentalTag{}, operation)); } future> @@ -235,26 +233,23 @@ ProductSearchTracingConnection::PurgeProducts( StatusOr ProductSearchTracingConnection::PurgeProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::PurgeProductsRequest const& request) { auto span = internal::MakeSpan("vision_v1::ProductSearchConnection::PurgeProducts"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PurgeProducts(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PurgeProducts(ExperimentalTag{}, NoAwaitTag{}, request)); } future> ProductSearchTracingConnection::PurgeProducts( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("vision_v1::ProductSearchConnection::PurgeProducts"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->PurgeProducts(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->PurgeProducts(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/vision/v1/internal/product_search_tracing_connection.h b/google/cloud/vision/v1/internal/product_search_tracing_connection.h index e136a640433ac..09ebb381ba2d3 100644 --- a/google/cloud/vision/v1/internal/product_search_tracing_connection.h +++ b/google/cloud/vision/v1/internal/product_search_tracing_connection.h @@ -105,12 +105,12 @@ class ProductSearchTracingConnection request) override; StatusOr ImportProductSets( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::ImportProductSetsRequest const& request) override; future> - ImportProductSets(google::cloud::ExperimentalTag, + ImportProductSets(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -118,11 +118,11 @@ class ProductSearchTracingConnection google::cloud::vision::v1::PurgeProductsRequest const& request) override; StatusOr PurgeProducts( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::PurgeProductsRequest const& request) override; future> - PurgeProducts(google::cloud::ExperimentalTag, + PurgeProducts(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/vision/v1/mocks/mock_image_annotator_connection.h b/google/cloud/vision/v1/mocks/mock_image_annotator_connection.h index b0f4b8ce20972..b0b1a6960b0db 100644 --- a/google/cloud/vision/v1/mocks/mock_image_annotator_connection.h +++ b/google/cloud/vision/v1/mocks/mock_image_annotator_connection.h @@ -68,7 +68,7 @@ class MockImageAnnotatorConnection MOCK_METHOD(StatusOr, AsyncBatchAnnotateImages, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& request), (override)); @@ -76,7 +76,7 @@ class MockImageAnnotatorConnection MOCK_METHOD(future>, AsyncBatchAnnotateImages, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -89,7 +89,7 @@ class MockImageAnnotatorConnection (override)); MOCK_METHOD(StatusOr, AsyncBatchAnnotateFiles, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request), (override)); @@ -98,8 +98,7 @@ class MockImageAnnotatorConnection future< StatusOr>, AsyncBatchAnnotateFiles, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/vision/v1/mocks/mock_product_search_connection.h b/google/cloud/vision/v1/mocks/mock_product_search_connection.h index 5e2129e02fc1c..6f3797aeba1b1 100644 --- a/google/cloud/vision/v1/mocks/mock_product_search_connection.h +++ b/google/cloud/vision/v1/mocks/mock_product_search_connection.h @@ -135,15 +135,14 @@ class MockProductSearchConnection : public vision_v1::ProductSearchConnection { MOCK_METHOD( StatusOr, ImportProductSets, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::ImportProductSetsRequest const& request), (override)); MOCK_METHOD( future>, ImportProductSets, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -153,15 +152,14 @@ class MockProductSearchConnection : public vision_v1::ProductSearchConnection { (override)); MOCK_METHOD(StatusOr, PurgeProducts, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::PurgeProductsRequest const& request), (override)); MOCK_METHOD( future>, PurgeProducts, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.cc b/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.cc index c46aec024b142..327a9d6e4256d 100644 --- a/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.cc +++ b/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.cc @@ -153,7 +153,7 @@ VmMigrationConnectionImpl::CreateSource( StatusOr VmMigrationConnectionImpl::CreateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CreateSourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -169,8 +169,7 @@ VmMigrationConnectionImpl::CreateSource( future> VmMigrationConnectionImpl::CreateSource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -245,7 +244,7 @@ VmMigrationConnectionImpl::UpdateSource( StatusOr VmMigrationConnectionImpl::UpdateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::UpdateSourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -261,8 +260,7 @@ VmMigrationConnectionImpl::UpdateSource( future> VmMigrationConnectionImpl::UpdateSource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -337,7 +335,7 @@ VmMigrationConnectionImpl::DeleteSource( StatusOr VmMigrationConnectionImpl::DeleteSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::DeleteSourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -353,8 +351,7 @@ VmMigrationConnectionImpl::DeleteSource( future> VmMigrationConnectionImpl::DeleteSource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -499,7 +496,7 @@ VmMigrationConnectionImpl::CreateUtilizationReport( StatusOr VmMigrationConnectionImpl::CreateUtilizationReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -517,8 +514,7 @@ VmMigrationConnectionImpl::CreateUtilizationReport( future> VmMigrationConnectionImpl::CreateUtilizationReport( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -596,7 +592,7 @@ VmMigrationConnectionImpl::DeleteUtilizationReport( StatusOr VmMigrationConnectionImpl::DeleteUtilizationReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -614,8 +610,7 @@ VmMigrationConnectionImpl::DeleteUtilizationReport( future> VmMigrationConnectionImpl::DeleteUtilizationReport( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -745,7 +740,7 @@ VmMigrationConnectionImpl::CreateDatacenterConnector( StatusOr VmMigrationConnectionImpl::CreateDatacenterConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -762,8 +757,7 @@ VmMigrationConnectionImpl::CreateDatacenterConnector( future> VmMigrationConnectionImpl::CreateDatacenterConnector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -840,7 +834,7 @@ VmMigrationConnectionImpl::DeleteDatacenterConnector( StatusOr VmMigrationConnectionImpl::DeleteDatacenterConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -857,8 +851,7 @@ VmMigrationConnectionImpl::DeleteDatacenterConnector( future> VmMigrationConnectionImpl::DeleteDatacenterConnector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -935,7 +928,7 @@ VmMigrationConnectionImpl::UpgradeAppliance( StatusOr VmMigrationConnectionImpl::UpgradeAppliance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -951,8 +944,7 @@ VmMigrationConnectionImpl::UpgradeAppliance( future> VmMigrationConnectionImpl::UpgradeAppliance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1029,7 +1021,7 @@ VmMigrationConnectionImpl::CreateMigratingVm( StatusOr VmMigrationConnectionImpl::CreateMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1045,8 +1037,7 @@ VmMigrationConnectionImpl::CreateMigratingVm( future> VmMigrationConnectionImpl::CreateMigratingVm( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1173,7 +1164,7 @@ VmMigrationConnectionImpl::UpdateMigratingVm( StatusOr VmMigrationConnectionImpl::UpdateMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1189,8 +1180,7 @@ VmMigrationConnectionImpl::UpdateMigratingVm( future> VmMigrationConnectionImpl::UpdateMigratingVm( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1267,7 +1257,7 @@ VmMigrationConnectionImpl::DeleteMigratingVm( StatusOr VmMigrationConnectionImpl::DeleteMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1283,8 +1273,7 @@ VmMigrationConnectionImpl::DeleteMigratingVm( future> VmMigrationConnectionImpl::DeleteMigratingVm( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1361,7 +1350,7 @@ VmMigrationConnectionImpl::StartMigration( StatusOr VmMigrationConnectionImpl::StartMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::StartMigrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1377,8 +1366,7 @@ VmMigrationConnectionImpl::StartMigration( future> VmMigrationConnectionImpl::StartMigration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1455,7 +1443,7 @@ VmMigrationConnectionImpl::ResumeMigration( StatusOr VmMigrationConnectionImpl::ResumeMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::ResumeMigrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1471,8 +1459,7 @@ VmMigrationConnectionImpl::ResumeMigration( future> VmMigrationConnectionImpl::ResumeMigration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1549,7 +1536,7 @@ VmMigrationConnectionImpl::PauseMigration( StatusOr VmMigrationConnectionImpl::PauseMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::PauseMigrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1565,8 +1552,7 @@ VmMigrationConnectionImpl::PauseMigration( future> VmMigrationConnectionImpl::PauseMigration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1643,7 +1629,7 @@ VmMigrationConnectionImpl::FinalizeMigration( StatusOr VmMigrationConnectionImpl::FinalizeMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1659,8 +1645,7 @@ VmMigrationConnectionImpl::FinalizeMigration( future> VmMigrationConnectionImpl::FinalizeMigration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1737,7 +1722,7 @@ VmMigrationConnectionImpl::CreateCloneJob( StatusOr VmMigrationConnectionImpl::CreateCloneJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CreateCloneJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1753,8 +1738,7 @@ VmMigrationConnectionImpl::CreateCloneJob( future> VmMigrationConnectionImpl::CreateCloneJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1831,7 +1815,7 @@ VmMigrationConnectionImpl::CancelCloneJob( StatusOr VmMigrationConnectionImpl::CancelCloneJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CancelCloneJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1847,8 +1831,7 @@ VmMigrationConnectionImpl::CancelCloneJob( future> VmMigrationConnectionImpl::CancelCloneJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1974,7 +1957,7 @@ VmMigrationConnectionImpl::CreateCutoverJob( StatusOr VmMigrationConnectionImpl::CreateCutoverJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1990,8 +1973,7 @@ VmMigrationConnectionImpl::CreateCutoverJob( future> VmMigrationConnectionImpl::CreateCutoverJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2068,7 +2050,7 @@ VmMigrationConnectionImpl::CancelCutoverJob( StatusOr VmMigrationConnectionImpl::CancelCutoverJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2084,8 +2066,7 @@ VmMigrationConnectionImpl::CancelCutoverJob( future> VmMigrationConnectionImpl::CancelCutoverJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2257,7 +2238,7 @@ VmMigrationConnectionImpl::CreateGroup( } StatusOr VmMigrationConnectionImpl::CreateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CreateGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2273,8 +2254,7 @@ StatusOr VmMigrationConnectionImpl::CreateGroup( future> VmMigrationConnectionImpl::CreateGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2348,7 +2328,7 @@ VmMigrationConnectionImpl::UpdateGroup( } StatusOr VmMigrationConnectionImpl::UpdateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::UpdateGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2364,8 +2344,7 @@ StatusOr VmMigrationConnectionImpl::UpdateGroup( future> VmMigrationConnectionImpl::UpdateGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2439,7 +2418,7 @@ VmMigrationConnectionImpl::DeleteGroup( } StatusOr VmMigrationConnectionImpl::DeleteGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::DeleteGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2455,8 +2434,7 @@ StatusOr VmMigrationConnectionImpl::DeleteGroup( future> VmMigrationConnectionImpl::DeleteGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2533,7 +2511,7 @@ VmMigrationConnectionImpl::AddGroupMigration( StatusOr VmMigrationConnectionImpl::AddGroupMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2549,8 +2527,7 @@ VmMigrationConnectionImpl::AddGroupMigration( future> VmMigrationConnectionImpl::AddGroupMigration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2628,7 +2605,7 @@ VmMigrationConnectionImpl::RemoveGroupMigration( StatusOr VmMigrationConnectionImpl::RemoveGroupMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2645,8 +2622,7 @@ VmMigrationConnectionImpl::RemoveGroupMigration( future> VmMigrationConnectionImpl::RemoveGroupMigration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2773,7 +2749,7 @@ VmMigrationConnectionImpl::CreateTargetProject( StatusOr VmMigrationConnectionImpl::CreateTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CreateTargetProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2789,8 +2765,7 @@ VmMigrationConnectionImpl::CreateTargetProject( future> VmMigrationConnectionImpl::CreateTargetProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2867,7 +2842,7 @@ VmMigrationConnectionImpl::UpdateTargetProject( StatusOr VmMigrationConnectionImpl::UpdateTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2883,8 +2858,7 @@ VmMigrationConnectionImpl::UpdateTargetProject( future> VmMigrationConnectionImpl::UpdateTargetProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2961,7 +2935,7 @@ VmMigrationConnectionImpl::DeleteTargetProject( StatusOr VmMigrationConnectionImpl::DeleteTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2977,8 +2951,7 @@ VmMigrationConnectionImpl::DeleteTargetProject( future> VmMigrationConnectionImpl::DeleteTargetProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.h b/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.h index 273824087b9a5..1658c5042c16e 100644 --- a/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.h +++ b/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.h @@ -62,12 +62,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr CreateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CreateSourceRequest const& request) override; future> CreateSource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateSource( @@ -75,12 +75,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr UpdateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::UpdateSourceRequest const& request) override; future> UpdateSource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -88,12 +88,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr DeleteSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::DeleteSourceRequest const& request) override; future> - DeleteSource(google::cloud::ExperimentalTag, + DeleteSource(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -116,13 +116,13 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr CreateUtilizationReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& request) override; future> CreateUtilizationReport( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -131,13 +131,13 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr DeleteUtilizationReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& request) override; future> DeleteUtilizationReport( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -156,13 +156,13 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr CreateDatacenterConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& request) override; future> CreateDatacenterConnector( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -171,13 +171,13 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr DeleteDatacenterConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& request) override; future> DeleteDatacenterConnector( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -186,12 +186,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr UpgradeAppliance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request) override; future> - UpgradeAppliance(google::cloud::ExperimentalTag, + UpgradeAppliance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -200,12 +200,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr CreateMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request) override; future> - CreateMigratingVm(google::cloud::ExperimentalTag, + CreateMigratingVm(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListMigratingVms( @@ -221,12 +221,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr UpdateMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request) override; future> - UpdateMigratingVm(google::cloud::ExperimentalTag, + UpdateMigratingVm(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -235,12 +235,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr DeleteMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request) override; future> - DeleteMigratingVm(google::cloud::ExperimentalTag, + DeleteMigratingVm(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -248,12 +248,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr StartMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::StartMigrationRequest const& request) override; future> - StartMigration(google::cloud::ExperimentalTag, + StartMigration(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -261,12 +261,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr ResumeMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::ResumeMigrationRequest const& request) override; future> - ResumeMigration(google::cloud::ExperimentalTag, + ResumeMigration(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -274,12 +274,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr PauseMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::PauseMigrationRequest const& request) override; future> - PauseMigration(google::cloud::ExperimentalTag, + PauseMigration(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -288,12 +288,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr FinalizeMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request) override; future> - FinalizeMigration(google::cloud::ExperimentalTag, + FinalizeMigration(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateCloneJob( @@ -301,12 +301,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr CreateCloneJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CreateCloneJobRequest const& request) override; future> CreateCloneJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -314,12 +314,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr CancelCloneJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CancelCloneJobRequest const& request) override; future> - CancelCloneJob(google::cloud::ExperimentalTag, + CancelCloneJob(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListCloneJobs( @@ -334,12 +334,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr CreateCutoverJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request) override; future> CreateCutoverJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -348,12 +348,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr CancelCutoverJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request) override; future> - CancelCutoverJob(google::cloud::ExperimentalTag, + CancelCutoverJob(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListCutoverJobs( @@ -374,12 +374,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr CreateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CreateGroupRequest const& request) override; future> CreateGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateGroup( @@ -387,12 +387,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr UpdateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::UpdateGroupRequest const& request) override; future> UpdateGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -400,12 +400,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr DeleteGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::DeleteGroupRequest const& request) override; future> - DeleteGroup(google::cloud::ExperimentalTag, + DeleteGroup(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -414,12 +414,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr AddGroupMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request) override; future> - AddGroupMigration(google::cloud::ExperimentalTag, + AddGroupMigration(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -428,13 +428,13 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr RemoveGroupMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& request) override; future> RemoveGroupMigration( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTargetProjects( @@ -451,12 +451,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr CreateTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::CreateTargetProjectRequest const& request) override; future> - CreateTargetProject(google::cloud::ExperimentalTag, + CreateTargetProject(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -465,12 +465,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr UpdateTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request) override; future> - UpdateTargetProject(google::cloud::ExperimentalTag, + UpdateTargetProject(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -479,12 +479,12 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr DeleteTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request) override; future> - DeleteTargetProject(google::cloud::ExperimentalTag, + DeleteTargetProject(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.cc b/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.cc index 25552090bffe0..a1777e088aa71 100644 --- a/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.cc +++ b/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.cc @@ -64,26 +64,23 @@ VmMigrationTracingConnection::CreateSource( StatusOr VmMigrationTracingConnection::CreateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateSourceRequest const& request) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::CreateSource"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateSource(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateSource(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::CreateSource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::CreateSource"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateSource(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateSource(ExperimentalTag{}, operation)); } future> @@ -97,26 +94,23 @@ VmMigrationTracingConnection::UpdateSource( StatusOr VmMigrationTracingConnection::UpdateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateSourceRequest const& request) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::UpdateSource"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateSource(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateSource(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::UpdateSource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::UpdateSource"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateSource(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateSource(ExperimentalTag{}, operation)); } future> @@ -130,26 +124,23 @@ VmMigrationTracingConnection::DeleteSource( StatusOr VmMigrationTracingConnection::DeleteSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteSourceRequest const& request) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::DeleteSource"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteSource(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteSource(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::DeleteSource( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::DeleteSource"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteSource(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteSource(ExperimentalTag{}, operation)); } StatusOr @@ -196,27 +187,25 @@ VmMigrationTracingConnection::CreateUtilizationReport( StatusOr VmMigrationTracingConnection::CreateUtilizationReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateUtilizationReport"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateUtilizationReport( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateUtilizationReport(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> VmMigrationTracingConnection::CreateUtilizationReport( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateUtilizationReport"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateUtilizationReport( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateUtilizationReport( + ExperimentalTag{}, operation)); } future> @@ -232,27 +221,25 @@ VmMigrationTracingConnection::DeleteUtilizationReport( StatusOr VmMigrationTracingConnection::DeleteUtilizationReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::DeleteUtilizationReport"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteUtilizationReport( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteUtilizationReport(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> VmMigrationTracingConnection::DeleteUtilizationReport( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::DeleteUtilizationReport"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteUtilizationReport( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteUtilizationReport( + ExperimentalTag{}, operation)); } StreamRange @@ -290,27 +277,25 @@ VmMigrationTracingConnection::CreateDatacenterConnector( StatusOr VmMigrationTracingConnection::CreateDatacenterConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateDatacenterConnector"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateDatacenterConnector( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateDatacenterConnector(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> VmMigrationTracingConnection::CreateDatacenterConnector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateDatacenterConnector"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateDatacenterConnector( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateDatacenterConnector( + ExperimentalTag{}, operation)); } future> @@ -326,27 +311,25 @@ VmMigrationTracingConnection::DeleteDatacenterConnector( StatusOr VmMigrationTracingConnection::DeleteDatacenterConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::DeleteDatacenterConnector"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteDatacenterConnector( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteDatacenterConnector(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> VmMigrationTracingConnection::DeleteDatacenterConnector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::DeleteDatacenterConnector"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteDatacenterConnector( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteDatacenterConnector( + ExperimentalTag{}, operation)); } future> @@ -360,26 +343,24 @@ VmMigrationTracingConnection::UpgradeAppliance( StatusOr VmMigrationTracingConnection::UpgradeAppliance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::UpgradeAppliance"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpgradeAppliance(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpgradeAppliance(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::UpgradeAppliance( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::UpgradeAppliance"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpgradeAppliance(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpgradeAppliance(ExperimentalTag{}, operation)); } future> @@ -393,26 +374,24 @@ VmMigrationTracingConnection::CreateMigratingVm( StatusOr VmMigrationTracingConnection::CreateMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateMigratingVm"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateMigratingVm(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateMigratingVm(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::CreateMigratingVm( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateMigratingVm"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateMigratingVm(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateMigratingVm(ExperimentalTag{}, operation)); } StreamRange @@ -447,26 +426,24 @@ VmMigrationTracingConnection::UpdateMigratingVm( StatusOr VmMigrationTracingConnection::UpdateMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::UpdateMigratingVm"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateMigratingVm(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateMigratingVm(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::UpdateMigratingVm( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::UpdateMigratingVm"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateMigratingVm(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateMigratingVm(ExperimentalTag{}, operation)); } future> @@ -480,26 +457,24 @@ VmMigrationTracingConnection::DeleteMigratingVm( StatusOr VmMigrationTracingConnection::DeleteMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::DeleteMigratingVm"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteMigratingVm(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteMigratingVm(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::DeleteMigratingVm( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::DeleteMigratingVm"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteMigratingVm(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteMigratingVm(ExperimentalTag{}, operation)); } future> @@ -513,26 +488,23 @@ VmMigrationTracingConnection::StartMigration( StatusOr VmMigrationTracingConnection::StartMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::StartMigrationRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::StartMigration"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StartMigration(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StartMigration(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::StartMigration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::StartMigration"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->StartMigration(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->StartMigration(ExperimentalTag{}, operation)); } future> @@ -546,26 +518,23 @@ VmMigrationTracingConnection::ResumeMigration( StatusOr VmMigrationTracingConnection::ResumeMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::ResumeMigrationRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::ResumeMigration"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ResumeMigration(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->ResumeMigration(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::ResumeMigration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::ResumeMigration"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->ResumeMigration(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->ResumeMigration(ExperimentalTag{}, operation)); } future> @@ -579,26 +548,23 @@ VmMigrationTracingConnection::PauseMigration( StatusOr VmMigrationTracingConnection::PauseMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::PauseMigrationRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::PauseMigration"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->PauseMigration(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->PauseMigration(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::PauseMigration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::PauseMigration"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->PauseMigration(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->PauseMigration(ExperimentalTag{}, operation)); } future> @@ -612,26 +578,24 @@ VmMigrationTracingConnection::FinalizeMigration( StatusOr VmMigrationTracingConnection::FinalizeMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::FinalizeMigration"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->FinalizeMigration(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->FinalizeMigration(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::FinalizeMigration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::FinalizeMigration"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->FinalizeMigration(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->FinalizeMigration(ExperimentalTag{}, operation)); } future> @@ -645,26 +609,23 @@ VmMigrationTracingConnection::CreateCloneJob( StatusOr VmMigrationTracingConnection::CreateCloneJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateCloneJobRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateCloneJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateCloneJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateCloneJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::CreateCloneJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateCloneJob"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateCloneJob(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateCloneJob(ExperimentalTag{}, operation)); } future> @@ -678,26 +639,23 @@ VmMigrationTracingConnection::CancelCloneJob( StatusOr VmMigrationTracingConnection::CancelCloneJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CancelCloneJobRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CancelCloneJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CancelCloneJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CancelCloneJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::CancelCloneJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CancelCloneJob"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CancelCloneJob(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CancelCloneJob(ExperimentalTag{}, operation)); } StreamRange @@ -731,26 +689,24 @@ VmMigrationTracingConnection::CreateCutoverJob( StatusOr VmMigrationTracingConnection::CreateCutoverJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateCutoverJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateCutoverJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateCutoverJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::CreateCutoverJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateCutoverJob"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateCutoverJob(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateCutoverJob(ExperimentalTag{}, operation)); } future> @@ -764,26 +720,24 @@ VmMigrationTracingConnection::CancelCutoverJob( StatusOr VmMigrationTracingConnection::CancelCutoverJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CancelCutoverJob"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CancelCutoverJob(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CancelCutoverJob(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::CancelCutoverJob( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CancelCutoverJob"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CancelCutoverJob(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CancelCutoverJob(ExperimentalTag{}, operation)); } StreamRange @@ -838,26 +792,23 @@ VmMigrationTracingConnection::CreateGroup( StatusOr VmMigrationTracingConnection::CreateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateGroupRequest const& request) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::CreateGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::CreateGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::CreateGroup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateGroup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateGroup(ExperimentalTag{}, operation)); } future> @@ -871,26 +822,23 @@ VmMigrationTracingConnection::UpdateGroup( StatusOr VmMigrationTracingConnection::UpdateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateGroupRequest const& request) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::UpdateGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::UpdateGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::UpdateGroup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateGroup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateGroup(ExperimentalTag{}, operation)); } future> @@ -904,26 +852,23 @@ VmMigrationTracingConnection::DeleteGroup( StatusOr VmMigrationTracingConnection::DeleteGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteGroupRequest const& request) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::DeleteGroup"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteGroup(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteGroup(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::DeleteGroup( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("vmmigration_v1::VmMigrationConnection::DeleteGroup"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteGroup(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteGroup(ExperimentalTag{}, operation)); } future> @@ -937,26 +882,24 @@ VmMigrationTracingConnection::AddGroupMigration( StatusOr VmMigrationTracingConnection::AddGroupMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::AddGroupMigration"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->AddGroupMigration(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->AddGroupMigration(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::AddGroupMigration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::AddGroupMigration"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->AddGroupMigration(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->AddGroupMigration(ExperimentalTag{}, operation)); } future> @@ -972,27 +915,25 @@ VmMigrationTracingConnection::RemoveGroupMigration( StatusOr VmMigrationTracingConnection::RemoveGroupMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::RemoveGroupMigration"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RemoveGroupMigration( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->RemoveGroupMigration(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::RemoveGroupMigration( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::RemoveGroupMigration"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RemoveGroupMigration( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RemoveGroupMigration( + ExperimentalTag{}, operation)); } StreamRange @@ -1028,26 +969,24 @@ VmMigrationTracingConnection::CreateTargetProject( StatusOr VmMigrationTracingConnection::CreateTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateTargetProjectRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateTargetProject"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateTargetProject(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateTargetProject(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::CreateTargetProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::CreateTargetProject"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateTargetProject(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateTargetProject( + ExperimentalTag{}, operation)); } future> @@ -1062,26 +1001,24 @@ VmMigrationTracingConnection::UpdateTargetProject( StatusOr VmMigrationTracingConnection::UpdateTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::UpdateTargetProject"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateTargetProject(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateTargetProject(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::UpdateTargetProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::UpdateTargetProject"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateTargetProject(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateTargetProject( + ExperimentalTag{}, operation)); } future> @@ -1096,26 +1033,24 @@ VmMigrationTracingConnection::DeleteTargetProject( StatusOr VmMigrationTracingConnection::DeleteTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::DeleteTargetProject"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteTargetProject(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteTargetProject(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmMigrationTracingConnection::DeleteTargetProject( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmmigration_v1::VmMigrationConnection::DeleteTargetProject"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteTargetProject(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteTargetProject( + ExperimentalTag{}, operation)); } StreamRange diff --git a/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.h b/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.h index 6fb1adbaf3d7c..42a1342303875 100644 --- a/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.h +++ b/google/cloud/vmmigration/v1/internal/vm_migration_tracing_connection.h @@ -51,12 +51,12 @@ class VmMigrationTracingConnection override; StatusOr CreateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateSourceRequest const& request) override; future> CreateSource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateSource( @@ -64,12 +64,12 @@ class VmMigrationTracingConnection override; StatusOr UpdateSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateSourceRequest const& request) override; future> UpdateSource( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -77,12 +77,12 @@ class VmMigrationTracingConnection request) override; StatusOr DeleteSource( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteSourceRequest const& request) override; future> - DeleteSource(google::cloud::ExperimentalTag, + DeleteSource(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -105,13 +105,13 @@ class VmMigrationTracingConnection request) override; StatusOr CreateUtilizationReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& request) override; future> CreateUtilizationReport( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -120,13 +120,13 @@ class VmMigrationTracingConnection request) override; StatusOr DeleteUtilizationReport( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& request) override; future> DeleteUtilizationReport( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -145,13 +145,13 @@ class VmMigrationTracingConnection request) override; StatusOr CreateDatacenterConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& request) override; future> CreateDatacenterConnector( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -160,13 +160,13 @@ class VmMigrationTracingConnection request) override; StatusOr DeleteDatacenterConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& request) override; future> DeleteDatacenterConnector( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -175,12 +175,12 @@ class VmMigrationTracingConnection override; StatusOr UpgradeAppliance( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request) override; future> - UpgradeAppliance(google::cloud::ExperimentalTag, + UpgradeAppliance(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -189,12 +189,12 @@ class VmMigrationTracingConnection override; StatusOr CreateMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request) override; future> - CreateMigratingVm(google::cloud::ExperimentalTag, + CreateMigratingVm(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListMigratingVms( @@ -210,12 +210,12 @@ class VmMigrationTracingConnection override; StatusOr UpdateMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request) override; future> - UpdateMigratingVm(google::cloud::ExperimentalTag, + UpdateMigratingVm(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -224,12 +224,12 @@ class VmMigrationTracingConnection override; StatusOr DeleteMigratingVm( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request) override; future> - DeleteMigratingVm(google::cloud::ExperimentalTag, + DeleteMigratingVm(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -237,12 +237,12 @@ class VmMigrationTracingConnection request) override; StatusOr StartMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::StartMigrationRequest const& request) override; future> - StartMigration(google::cloud::ExperimentalTag, + StartMigration(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -250,12 +250,12 @@ class VmMigrationTracingConnection request) override; StatusOr ResumeMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::ResumeMigrationRequest const& request) override; future> - ResumeMigration(google::cloud::ExperimentalTag, + ResumeMigration(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -263,12 +263,12 @@ class VmMigrationTracingConnection request) override; StatusOr PauseMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::PauseMigrationRequest const& request) override; future> - PauseMigration(google::cloud::ExperimentalTag, + PauseMigration(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -277,12 +277,12 @@ class VmMigrationTracingConnection override; StatusOr FinalizeMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request) override; future> - FinalizeMigration(google::cloud::ExperimentalTag, + FinalizeMigration(ExperimentalTag, google::longrunning::Operation const& operation) override; future> CreateCloneJob( @@ -290,12 +290,12 @@ class VmMigrationTracingConnection override; StatusOr CreateCloneJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateCloneJobRequest const& request) override; future> CreateCloneJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -303,12 +303,12 @@ class VmMigrationTracingConnection request) override; StatusOr CancelCloneJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CancelCloneJobRequest const& request) override; future> - CancelCloneJob(google::cloud::ExperimentalTag, + CancelCloneJob(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListCloneJobs( @@ -323,12 +323,12 @@ class VmMigrationTracingConnection override; StatusOr CreateCutoverJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request) override; future> CreateCutoverJob( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -337,12 +337,12 @@ class VmMigrationTracingConnection override; StatusOr CancelCutoverJob( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request) override; future> - CancelCutoverJob(google::cloud::ExperimentalTag, + CancelCutoverJob(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListCutoverJobs( @@ -363,12 +363,12 @@ class VmMigrationTracingConnection override; StatusOr CreateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateGroupRequest const& request) override; future> CreateGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateGroup( @@ -376,12 +376,12 @@ class VmMigrationTracingConnection override; StatusOr UpdateGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateGroupRequest const& request) override; future> UpdateGroup( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -389,12 +389,12 @@ class VmMigrationTracingConnection override; StatusOr DeleteGroup( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteGroupRequest const& request) override; future> - DeleteGroup(google::cloud::ExperimentalTag, + DeleteGroup(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -403,12 +403,12 @@ class VmMigrationTracingConnection override; StatusOr AddGroupMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request) override; future> - AddGroupMigration(google::cloud::ExperimentalTag, + AddGroupMigration(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -417,13 +417,13 @@ class VmMigrationTracingConnection request) override; StatusOr RemoveGroupMigration( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& request) override; future> RemoveGroupMigration( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListTargetProjects( @@ -440,12 +440,12 @@ class VmMigrationTracingConnection override; StatusOr CreateTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateTargetProjectRequest const& request) override; future> - CreateTargetProject(google::cloud::ExperimentalTag, + CreateTargetProject(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -454,12 +454,12 @@ class VmMigrationTracingConnection override; StatusOr UpdateTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request) override; future> - UpdateTargetProject(google::cloud::ExperimentalTag, + UpdateTargetProject(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -468,12 +468,12 @@ class VmMigrationTracingConnection override; StatusOr DeleteTargetProject( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request) override; future> - DeleteTargetProject(google::cloud::ExperimentalTag, + DeleteTargetProject(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange diff --git a/google/cloud/vmmigration/v1/mocks/mock_vm_migration_connection.h b/google/cloud/vmmigration/v1/mocks/mock_vm_migration_connection.h index e824ceaecefe8..32f29a2be4d98 100644 --- a/google/cloud/vmmigration/v1/mocks/mock_vm_migration_connection.h +++ b/google/cloud/vmmigration/v1/mocks/mock_vm_migration_connection.h @@ -62,13 +62,13 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, CreateSource, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateSourceRequest const& request), (override)); MOCK_METHOD(future>, CreateSource, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -79,13 +79,13 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, UpdateSource, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateSourceRequest const& request), (override)); MOCK_METHOD(future>, UpdateSource, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -97,15 +97,14 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, DeleteSource, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteSourceRequest const& request), (override)); MOCK_METHOD( future>, DeleteSource, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -136,7 +135,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, CreateUtilizationReport, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& request), (override)); @@ -144,8 +143,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( future>, CreateUtilizationReport, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -157,7 +155,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, DeleteUtilizationReport, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& request), (override)); @@ -165,8 +163,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( future>, DeleteUtilizationReport, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -191,7 +188,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, CreateDatacenterConnector, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& request), (override)); @@ -199,8 +196,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( future>, CreateDatacenterConnector, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -212,7 +208,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, DeleteDatacenterConnector, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& request), (override)); @@ -220,8 +216,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( future>, DeleteDatacenterConnector, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -233,7 +228,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, UpgradeAppliance, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request), (override)); @@ -241,8 +236,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { future< StatusOr>, UpgradeAppliance, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -253,13 +247,13 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, CreateMigratingVm, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request), (override)); MOCK_METHOD(future>, CreateMigratingVm, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -281,13 +275,13 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, UpdateMigratingVm, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request), (override)); MOCK_METHOD(future>, UpdateMigratingVm, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -299,15 +293,14 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, DeleteMigratingVm, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request), (override)); MOCK_METHOD( future>, DeleteMigratingVm, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -318,15 +311,14 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, StartMigration, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::StartMigrationRequest const& request), (override)); MOCK_METHOD( future>, StartMigration, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -337,15 +329,14 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, ResumeMigration, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::ResumeMigrationRequest const& request), (override)); MOCK_METHOD( future>, ResumeMigration, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -356,15 +347,14 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, PauseMigration, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::PauseMigrationRequest const& request), (override)); MOCK_METHOD( future>, PauseMigration, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -376,7 +366,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, FinalizeMigration, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request), (override)); @@ -384,8 +374,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { future< StatusOr>, FinalizeMigration, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -396,13 +385,13 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, CreateCloneJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateCloneJobRequest const& request), (override)); MOCK_METHOD(future>, CreateCloneJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -414,15 +403,14 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, CancelCloneJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CancelCloneJobRequest const& request), (override)); MOCK_METHOD( future>, CancelCloneJob, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), @@ -443,13 +431,13 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, CreateCutoverJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request), (override)); MOCK_METHOD(future>, CreateCutoverJob, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -462,7 +450,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, CancelCutoverJob, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request), (override)); @@ -470,8 +458,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { future< StatusOr>, CancelCutoverJob, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), @@ -499,13 +486,13 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, CreateGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateGroupRequest const& request), (override)); MOCK_METHOD(future>, CreateGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -516,13 +503,13 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, UpdateGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateGroupRequest const& request), (override)); MOCK_METHOD(future>, UpdateGroup, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -534,15 +521,14 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, DeleteGroup, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteGroupRequest const& request), (override)); MOCK_METHOD( future>, DeleteGroup, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -554,7 +540,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, AddGroupMigration, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request), (override)); @@ -562,8 +548,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { future< StatusOr>, AddGroupMigration, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -576,7 +561,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( StatusOr, RemoveGroupMigration, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& request), (override)); @@ -585,8 +570,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { future>, RemoveGroupMigration, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -607,14 +591,14 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { (override)); MOCK_METHOD(StatusOr, CreateTargetProject, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateTargetProjectRequest const& request), (override)); MOCK_METHOD(future>, CreateTargetProject, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -625,14 +609,14 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { (override)); MOCK_METHOD(StatusOr, UpdateTargetProject, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request), (override)); MOCK_METHOD(future>, UpdateTargetProject, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -644,7 +628,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { (override)); MOCK_METHOD(StatusOr, DeleteTargetProject, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request), (override)); @@ -652,8 +636,7 @@ class MockVmMigrationConnection : public vmmigration_v1::VmMigrationConnection { MOCK_METHOD( future>, DeleteTargetProject, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( diff --git a/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.cc b/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.cc index f94d43f324e4a..ba2d92224fcf5 100644 --- a/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.cc +++ b/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.cc @@ -158,7 +158,7 @@ VmwareEngineConnectionImpl::CreatePrivateCloud( StatusOr VmwareEngineConnectionImpl::CreatePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -174,8 +174,7 @@ VmwareEngineConnectionImpl::CreatePrivateCloud( future> VmwareEngineConnectionImpl::CreatePrivateCloud( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -252,7 +251,7 @@ VmwareEngineConnectionImpl::UpdatePrivateCloud( StatusOr VmwareEngineConnectionImpl::UpdatePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -268,8 +267,7 @@ VmwareEngineConnectionImpl::UpdatePrivateCloud( future> VmwareEngineConnectionImpl::UpdatePrivateCloud( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -346,7 +344,7 @@ VmwareEngineConnectionImpl::DeletePrivateCloud( StatusOr VmwareEngineConnectionImpl::DeletePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -362,8 +360,7 @@ VmwareEngineConnectionImpl::DeletePrivateCloud( future> VmwareEngineConnectionImpl::DeletePrivateCloud( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -441,7 +438,7 @@ VmwareEngineConnectionImpl::UndeletePrivateCloud( StatusOr VmwareEngineConnectionImpl::UndeletePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -458,8 +455,7 @@ VmwareEngineConnectionImpl::UndeletePrivateCloud( future> VmwareEngineConnectionImpl::UndeletePrivateCloud( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -585,7 +581,7 @@ VmwareEngineConnectionImpl::CreateCluster( StatusOr VmwareEngineConnectionImpl::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -601,8 +597,7 @@ VmwareEngineConnectionImpl::CreateCluster( future> VmwareEngineConnectionImpl::CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -679,7 +674,7 @@ VmwareEngineConnectionImpl::UpdateCluster( StatusOr VmwareEngineConnectionImpl::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -695,8 +690,7 @@ VmwareEngineConnectionImpl::UpdateCluster( future> VmwareEngineConnectionImpl::UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -773,7 +767,7 @@ VmwareEngineConnectionImpl::DeleteCluster( StatusOr VmwareEngineConnectionImpl::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeleteClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -789,8 +783,7 @@ VmwareEngineConnectionImpl::DeleteCluster( future> VmwareEngineConnectionImpl::DeleteCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1008,7 +1001,7 @@ VmwareEngineConnectionImpl::CreateExternalAddress( StatusOr VmwareEngineConnectionImpl::CreateExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1026,8 +1019,7 @@ VmwareEngineConnectionImpl::CreateExternalAddress( future> VmwareEngineConnectionImpl::CreateExternalAddress( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1105,7 +1097,7 @@ VmwareEngineConnectionImpl::UpdateExternalAddress( StatusOr VmwareEngineConnectionImpl::UpdateExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1123,8 +1115,7 @@ VmwareEngineConnectionImpl::UpdateExternalAddress( future> VmwareEngineConnectionImpl::UpdateExternalAddress( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1202,7 +1193,7 @@ VmwareEngineConnectionImpl::DeleteExternalAddress( StatusOr VmwareEngineConnectionImpl::DeleteExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1220,8 +1211,7 @@ VmwareEngineConnectionImpl::DeleteExternalAddress( future> VmwareEngineConnectionImpl::DeleteExternalAddress( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1345,7 +1335,7 @@ VmwareEngineConnectionImpl::UpdateSubnet( StatusOr VmwareEngineConnectionImpl::UpdateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1361,8 +1351,7 @@ VmwareEngineConnectionImpl::UpdateSubnet( future> VmwareEngineConnectionImpl::UpdateSubnet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1491,7 +1480,7 @@ VmwareEngineConnectionImpl::CreateExternalAccessRule( StatusOr VmwareEngineConnectionImpl::CreateExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1508,8 +1497,7 @@ VmwareEngineConnectionImpl::CreateExternalAccessRule( future> VmwareEngineConnectionImpl::CreateExternalAccessRule( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1586,7 +1574,7 @@ VmwareEngineConnectionImpl::UpdateExternalAccessRule( StatusOr VmwareEngineConnectionImpl::UpdateExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1603,8 +1591,7 @@ VmwareEngineConnectionImpl::UpdateExternalAccessRule( future> VmwareEngineConnectionImpl::UpdateExternalAccessRule( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1681,7 +1668,7 @@ VmwareEngineConnectionImpl::DeleteExternalAccessRule( StatusOr VmwareEngineConnectionImpl::DeleteExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1698,8 +1685,7 @@ VmwareEngineConnectionImpl::DeleteExternalAccessRule( future> VmwareEngineConnectionImpl::DeleteExternalAccessRule( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1826,7 +1812,7 @@ VmwareEngineConnectionImpl::CreateLoggingServer( StatusOr VmwareEngineConnectionImpl::CreateLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1843,8 +1829,7 @@ VmwareEngineConnectionImpl::CreateLoggingServer( future> VmwareEngineConnectionImpl::CreateLoggingServer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1922,7 +1907,7 @@ VmwareEngineConnectionImpl::UpdateLoggingServer( StatusOr VmwareEngineConnectionImpl::UpdateLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1939,8 +1924,7 @@ VmwareEngineConnectionImpl::UpdateLoggingServer( future> VmwareEngineConnectionImpl::UpdateLoggingServer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2018,7 +2002,7 @@ VmwareEngineConnectionImpl::DeleteLoggingServer( StatusOr VmwareEngineConnectionImpl::DeleteLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2035,8 +2019,7 @@ VmwareEngineConnectionImpl::DeleteLoggingServer( future> VmwareEngineConnectionImpl::DeleteLoggingServer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2195,7 +2178,7 @@ VmwareEngineConnectionImpl::ResetNsxCredentials( StatusOr VmwareEngineConnectionImpl::ResetNsxCredentials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2212,8 +2195,7 @@ VmwareEngineConnectionImpl::ResetNsxCredentials( future> VmwareEngineConnectionImpl::ResetNsxCredentials( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2291,7 +2273,7 @@ VmwareEngineConnectionImpl::ResetVcenterCredentials( StatusOr VmwareEngineConnectionImpl::ResetVcenterCredentials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2309,8 +2291,7 @@ VmwareEngineConnectionImpl::ResetVcenterCredentials( future> VmwareEngineConnectionImpl::ResetVcenterCredentials( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2403,7 +2384,7 @@ VmwareEngineConnectionImpl::UpdateDnsForwarding( StatusOr VmwareEngineConnectionImpl::UpdateDnsForwarding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2420,8 +2401,7 @@ VmwareEngineConnectionImpl::UpdateDnsForwarding( future> VmwareEngineConnectionImpl::UpdateDnsForwarding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2549,7 +2529,7 @@ VmwareEngineConnectionImpl::CreateNetworkPeering( StatusOr VmwareEngineConnectionImpl::CreateNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2566,8 +2546,7 @@ VmwareEngineConnectionImpl::CreateNetworkPeering( future> VmwareEngineConnectionImpl::CreateNetworkPeering( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2645,7 +2624,7 @@ VmwareEngineConnectionImpl::DeleteNetworkPeering( StatusOr VmwareEngineConnectionImpl::DeleteNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2662,8 +2641,7 @@ VmwareEngineConnectionImpl::DeleteNetworkPeering( future> VmwareEngineConnectionImpl::DeleteNetworkPeering( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2741,7 +2719,7 @@ VmwareEngineConnectionImpl::UpdateNetworkPeering( StatusOr VmwareEngineConnectionImpl::UpdateNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2758,8 +2736,7 @@ VmwareEngineConnectionImpl::UpdateNetworkPeering( future> VmwareEngineConnectionImpl::UpdateNetworkPeering( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -2872,7 +2849,7 @@ VmwareEngineConnectionImpl::CreateHcxActivationKey( StatusOr VmwareEngineConnectionImpl::CreateHcxActivationKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2890,8 +2867,7 @@ VmwareEngineConnectionImpl::CreateHcxActivationKey( future> VmwareEngineConnectionImpl::CreateHcxActivationKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -3071,7 +3047,7 @@ VmwareEngineConnectionImpl::CreateNetworkPolicy( StatusOr VmwareEngineConnectionImpl::CreateNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3088,8 +3064,7 @@ VmwareEngineConnectionImpl::CreateNetworkPolicy( future> VmwareEngineConnectionImpl::CreateNetworkPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -3167,7 +3142,7 @@ VmwareEngineConnectionImpl::UpdateNetworkPolicy( StatusOr VmwareEngineConnectionImpl::UpdateNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3184,8 +3159,7 @@ VmwareEngineConnectionImpl::UpdateNetworkPolicy( future> VmwareEngineConnectionImpl::UpdateNetworkPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -3263,7 +3237,7 @@ VmwareEngineConnectionImpl::DeleteNetworkPolicy( StatusOr VmwareEngineConnectionImpl::DeleteNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3280,8 +3254,7 @@ VmwareEngineConnectionImpl::DeleteNetworkPolicy( future> VmwareEngineConnectionImpl::DeleteNetworkPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -3414,7 +3387,7 @@ VmwareEngineConnectionImpl::CreateManagementDnsZoneBinding( StatusOr VmwareEngineConnectionImpl::CreateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1:: CreateManagementDnsZoneBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3431,8 +3404,7 @@ VmwareEngineConnectionImpl::CreateManagementDnsZoneBinding( future> VmwareEngineConnectionImpl::CreateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -3510,7 +3482,7 @@ VmwareEngineConnectionImpl::UpdateManagementDnsZoneBinding( StatusOr VmwareEngineConnectionImpl::UpdateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1:: UpdateManagementDnsZoneBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3527,8 +3499,7 @@ VmwareEngineConnectionImpl::UpdateManagementDnsZoneBinding( future> VmwareEngineConnectionImpl::UpdateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -3606,7 +3577,7 @@ VmwareEngineConnectionImpl::DeleteManagementDnsZoneBinding( StatusOr VmwareEngineConnectionImpl::DeleteManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1:: DeleteManagementDnsZoneBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3623,8 +3594,7 @@ VmwareEngineConnectionImpl::DeleteManagementDnsZoneBinding( future> VmwareEngineConnectionImpl::DeleteManagementDnsZoneBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -3702,7 +3672,7 @@ VmwareEngineConnectionImpl::RepairManagementDnsZoneBinding( StatusOr VmwareEngineConnectionImpl::RepairManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1:: RepairManagementDnsZoneBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3719,8 +3689,7 @@ VmwareEngineConnectionImpl::RepairManagementDnsZoneBinding( future> VmwareEngineConnectionImpl::RepairManagementDnsZoneBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -3797,7 +3766,7 @@ VmwareEngineConnectionImpl::CreateVmwareEngineNetwork( StatusOr VmwareEngineConnectionImpl::CreateVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3814,8 +3783,7 @@ VmwareEngineConnectionImpl::CreateVmwareEngineNetwork( future> VmwareEngineConnectionImpl::CreateVmwareEngineNetwork( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -3892,7 +3860,7 @@ VmwareEngineConnectionImpl::UpdateVmwareEngineNetwork( StatusOr VmwareEngineConnectionImpl::UpdateVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3909,8 +3877,7 @@ VmwareEngineConnectionImpl::UpdateVmwareEngineNetwork( future> VmwareEngineConnectionImpl::UpdateVmwareEngineNetwork( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -3987,7 +3954,7 @@ VmwareEngineConnectionImpl::DeleteVmwareEngineNetwork( StatusOr VmwareEngineConnectionImpl::DeleteVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -4004,8 +3971,7 @@ VmwareEngineConnectionImpl::DeleteVmwareEngineNetwork( future> VmwareEngineConnectionImpl::DeleteVmwareEngineNetwork( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -4136,7 +4102,7 @@ VmwareEngineConnectionImpl::CreatePrivateConnection( StatusOr VmwareEngineConnectionImpl::CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -4154,8 +4120,7 @@ VmwareEngineConnectionImpl::CreatePrivateConnection( future> VmwareEngineConnectionImpl::CreatePrivateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -4285,7 +4250,7 @@ VmwareEngineConnectionImpl::UpdatePrivateConnection( StatusOr VmwareEngineConnectionImpl::UpdatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -4303,8 +4268,7 @@ VmwareEngineConnectionImpl::UpdatePrivateConnection( future> VmwareEngineConnectionImpl::UpdatePrivateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -4382,7 +4346,7 @@ VmwareEngineConnectionImpl::DeletePrivateConnection( StatusOr VmwareEngineConnectionImpl::DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -4400,8 +4364,7 @@ VmwareEngineConnectionImpl::DeletePrivateConnection( future> VmwareEngineConnectionImpl::DeletePrivateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -4519,7 +4482,7 @@ VmwareEngineConnectionImpl::GrantDnsBindPermission( StatusOr VmwareEngineConnectionImpl::GrantDnsBindPermission( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -4537,8 +4500,7 @@ VmwareEngineConnectionImpl::GrantDnsBindPermission( future> VmwareEngineConnectionImpl::GrantDnsBindPermission( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -4632,7 +4594,7 @@ VmwareEngineConnectionImpl::RevokeDnsBindPermission( StatusOr VmwareEngineConnectionImpl::RevokeDnsBindPermission( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -4650,8 +4612,7 @@ VmwareEngineConnectionImpl::RevokeDnsBindPermission( future> VmwareEngineConnectionImpl::RevokeDnsBindPermission( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.h b/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.h index ed6cb3de102d3..2cad9487d1dd4 100644 --- a/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.h +++ b/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.h @@ -66,12 +66,12 @@ class VmwareEngineConnectionImpl override; StatusOr CreatePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& request) override; future> - CreatePrivateCloud(google::cloud::ExperimentalTag, + CreatePrivateCloud(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -80,12 +80,12 @@ class VmwareEngineConnectionImpl override; StatusOr UpdatePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request) override; future> - UpdatePrivateCloud(google::cloud::ExperimentalTag, + UpdatePrivateCloud(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -94,12 +94,12 @@ class VmwareEngineConnectionImpl override; StatusOr DeletePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request) override; future> - DeletePrivateCloud(google::cloud::ExperimentalTag, + DeletePrivateCloud(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -108,13 +108,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr UndeletePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& request) override; future> UndeletePrivateCloud( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListClusters( @@ -129,12 +129,12 @@ class VmwareEngineConnectionImpl override; StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreateClusterRequest const& request) override; future> CreateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateCluster( @@ -142,12 +142,12 @@ class VmwareEngineConnectionImpl override; StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateClusterRequest const& request) override; future> UpdateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -155,12 +155,12 @@ class VmwareEngineConnectionImpl request) override; StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeleteClusterRequest const& request) override; future> - DeleteCluster(google::cloud::ExperimentalTag, + DeleteCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListNodes( @@ -189,13 +189,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr CreateExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& request) override; future> CreateExternalAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -204,13 +204,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr UpdateExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& request) override; future> UpdateExternalAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -219,13 +219,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr DeleteExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& request) override; future> DeleteExternalAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListSubnets( @@ -240,12 +240,12 @@ class VmwareEngineConnectionImpl override; StatusOr UpdateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request) override; future> UpdateSubnet( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -264,13 +264,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr CreateExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& request) override; future> CreateExternalAccessRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -279,13 +279,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr UpdateExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& request) override; future> UpdateExternalAccessRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -294,13 +294,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr DeleteExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& request) override; future> DeleteExternalAccessRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -317,12 +317,12 @@ class VmwareEngineConnectionImpl request) override; StatusOr CreateLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& request) override; future> - CreateLoggingServer(google::cloud::ExperimentalTag, + CreateLoggingServer(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -331,12 +331,12 @@ class VmwareEngineConnectionImpl request) override; StatusOr UpdateLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& request) override; future> - UpdateLoggingServer(google::cloud::ExperimentalTag, + UpdateLoggingServer(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -345,12 +345,12 @@ class VmwareEngineConnectionImpl request) override; StatusOr DeleteLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& request) override; future> - DeleteLoggingServer(google::cloud::ExperimentalTag, + DeleteLoggingServer(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListNodeTypes( @@ -374,12 +374,12 @@ class VmwareEngineConnectionImpl request) override; StatusOr ResetNsxCredentials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& request) override; future> - ResetNsxCredentials(google::cloud::ExperimentalTag, + ResetNsxCredentials(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -388,13 +388,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr ResetVcenterCredentials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& request) override; future> ResetVcenterCredentials( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetDnsForwarding( @@ -407,12 +407,12 @@ class VmwareEngineConnectionImpl request) override; StatusOr UpdateDnsForwarding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& request) override; future> - UpdateDnsForwarding(google::cloud::ExperimentalTag, + UpdateDnsForwarding(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetNetworkPeering( @@ -430,13 +430,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr CreateNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& request) override; future> CreateNetworkPeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -445,13 +445,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr DeleteNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& request) override; future> DeleteNetworkPeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -460,13 +460,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr UpdateNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& request) override; future> UpdateNetworkPeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListPeeringRoutes( @@ -479,13 +479,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr CreateHcxActivationKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& request) override; future> CreateHcxActivationKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -513,12 +513,12 @@ class VmwareEngineConnectionImpl request) override; StatusOr CreateNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& request) override; future> - CreateNetworkPolicy(google::cloud::ExperimentalTag, + CreateNetworkPolicy(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -527,12 +527,12 @@ class VmwareEngineConnectionImpl request) override; StatusOr UpdateNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& request) override; future> - UpdateNetworkPolicy(google::cloud::ExperimentalTag, + UpdateNetworkPolicy(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -541,12 +541,12 @@ class VmwareEngineConnectionImpl request) override; StatusOr DeleteNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& request) override; future> - DeleteNetworkPolicy(google::cloud::ExperimentalTag, + DeleteNetworkPolicy(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -565,13 +565,13 @@ class VmwareEngineConnectionImpl CreateManagementDnsZoneBindingRequest const& request) override; StatusOr CreateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1:: CreateManagementDnsZoneBindingRequest const& request) override; future> CreateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -580,13 +580,13 @@ class VmwareEngineConnectionImpl UpdateManagementDnsZoneBindingRequest const& request) override; StatusOr UpdateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1:: UpdateManagementDnsZoneBindingRequest const& request) override; future> UpdateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -595,13 +595,13 @@ class VmwareEngineConnectionImpl DeleteManagementDnsZoneBindingRequest const& request) override; StatusOr DeleteManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1:: DeleteManagementDnsZoneBindingRequest const& request) override; future> DeleteManagementDnsZoneBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -610,13 +610,13 @@ class VmwareEngineConnectionImpl RepairManagementDnsZoneBindingRequest const& request) override; StatusOr RepairManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1:: RepairManagementDnsZoneBindingRequest const& request) override; future> RepairManagementDnsZoneBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -625,13 +625,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr CreateVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& request) override; future> CreateVmwareEngineNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -640,13 +640,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr UpdateVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& request) override; future> UpdateVmwareEngineNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -655,13 +655,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr DeleteVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& request) override; future> DeleteVmwareEngineNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -680,13 +680,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& request) override; future> CreatePrivateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -705,13 +705,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr UpdatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& request) override; future> UpdatePrivateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -720,13 +720,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& request) override; future> DeletePrivateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -740,13 +740,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr GrantDnsBindPermission( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& request) override; future> GrantDnsBindPermission( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -760,13 +760,13 @@ class VmwareEngineConnectionImpl request) override; StatusOr RevokeDnsBindPermission( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& request) override; future> RevokeDnsBindPermission( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.cc b/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.cc index 49a0d6673add9..a3bd0b282f750 100644 --- a/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.cc +++ b/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.cc @@ -66,26 +66,24 @@ VmwareEngineTracingConnection::CreatePrivateCloud( StatusOr VmwareEngineTracingConnection::CreatePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreatePrivateCloud"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreatePrivateCloud(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreatePrivateCloud(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::CreatePrivateCloud( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreatePrivateCloud"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreatePrivateCloud(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreatePrivateCloud( + ExperimentalTag{}, operation)); } future> @@ -100,26 +98,24 @@ VmwareEngineTracingConnection::UpdatePrivateCloud( StatusOr VmwareEngineTracingConnection::UpdatePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdatePrivateCloud"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdatePrivateCloud(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdatePrivateCloud(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::UpdatePrivateCloud( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdatePrivateCloud"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdatePrivateCloud(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdatePrivateCloud( + ExperimentalTag{}, operation)); } future> @@ -134,26 +130,24 @@ VmwareEngineTracingConnection::DeletePrivateCloud( StatusOr VmwareEngineTracingConnection::DeletePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeletePrivateCloud"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeletePrivateCloud(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeletePrivateCloud(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::DeletePrivateCloud( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeletePrivateCloud"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeletePrivateCloud(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeletePrivateCloud( + ExperimentalTag{}, operation)); } future> @@ -169,27 +163,25 @@ VmwareEngineTracingConnection::UndeletePrivateCloud( StatusOr VmwareEngineTracingConnection::UndeletePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UndeletePrivateCloud"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UndeletePrivateCloud( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UndeletePrivateCloud(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::UndeletePrivateCloud( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UndeletePrivateCloud"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UndeletePrivateCloud( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UndeletePrivateCloud( + ExperimentalTag{}, operation)); } StreamRange @@ -223,26 +215,23 @@ VmwareEngineTracingConnection::CreateCluster( StatusOr VmwareEngineTracingConnection::CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateClusterRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::CreateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->CreateCluster(ExperimentalTag{}, operation)); } future> @@ -256,26 +245,23 @@ VmwareEngineTracingConnection::UpdateCluster( StatusOr VmwareEngineTracingConnection::UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateClusterRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::UpdateCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateCluster(ExperimentalTag{}, operation)); } future> @@ -289,26 +275,23 @@ VmwareEngineTracingConnection::DeleteCluster( StatusOr VmwareEngineTracingConnection::DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteClusterRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteCluster"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteCluster(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteCluster(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::DeleteCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteCluster"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteCluster(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->DeleteCluster(ExperimentalTag{}, operation)); } StreamRange @@ -379,27 +362,25 @@ VmwareEngineTracingConnection::CreateExternalAddress( StatusOr VmwareEngineTracingConnection::CreateExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateExternalAddress"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateExternalAddress( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateExternalAddress(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::CreateExternalAddress( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateExternalAddress"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateExternalAddress( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateExternalAddress( + ExperimentalTag{}, operation)); } future> @@ -415,27 +396,25 @@ VmwareEngineTracingConnection::UpdateExternalAddress( StatusOr VmwareEngineTracingConnection::UpdateExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateExternalAddress"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateExternalAddress( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateExternalAddress(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::UpdateExternalAddress( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateExternalAddress"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateExternalAddress( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateExternalAddress( + ExperimentalTag{}, operation)); } future> @@ -451,27 +430,25 @@ VmwareEngineTracingConnection::DeleteExternalAddress( StatusOr VmwareEngineTracingConnection::DeleteExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteExternalAddress"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteExternalAddress( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteExternalAddress(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::DeleteExternalAddress( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteExternalAddress"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteExternalAddress( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteExternalAddress( + ExperimentalTag{}, operation)); } StreamRange @@ -505,26 +482,23 @@ VmwareEngineTracingConnection::UpdateSubnet( StatusOr VmwareEngineTracingConnection::UpdateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateSubnet"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateSubnet(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateSubnet(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::UpdateSubnet( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateSubnet"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateSubnet(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->UpdateSubnet(ExperimentalTag{}, operation)); } StreamRange @@ -562,27 +536,25 @@ VmwareEngineTracingConnection::CreateExternalAccessRule( StatusOr VmwareEngineTracingConnection::CreateExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateExternalAccessRule"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateExternalAccessRule( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateExternalAccessRule(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> VmwareEngineTracingConnection::CreateExternalAccessRule( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateExternalAccessRule"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateExternalAccessRule( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateExternalAccessRule( + ExperimentalTag{}, operation)); } future> @@ -598,27 +570,25 @@ VmwareEngineTracingConnection::UpdateExternalAccessRule( StatusOr VmwareEngineTracingConnection::UpdateExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateExternalAccessRule"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateExternalAccessRule( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateExternalAccessRule(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> VmwareEngineTracingConnection::UpdateExternalAccessRule( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateExternalAccessRule"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateExternalAccessRule( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateExternalAccessRule( + ExperimentalTag{}, operation)); } future> @@ -634,27 +604,25 @@ VmwareEngineTracingConnection::DeleteExternalAccessRule( StatusOr VmwareEngineTracingConnection::DeleteExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteExternalAccessRule"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteExternalAccessRule( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteExternalAccessRule(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> VmwareEngineTracingConnection::DeleteExternalAccessRule( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteExternalAccessRule"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteExternalAccessRule( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteExternalAccessRule( + ExperimentalTag{}, operation)); } StreamRange @@ -691,27 +659,25 @@ VmwareEngineTracingConnection::CreateLoggingServer( StatusOr VmwareEngineTracingConnection::CreateLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateLoggingServer"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateLoggingServer(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateLoggingServer(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::CreateLoggingServer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateLoggingServer"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateLoggingServer(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateLoggingServer( + ExperimentalTag{}, operation)); } future> @@ -727,27 +693,25 @@ VmwareEngineTracingConnection::UpdateLoggingServer( StatusOr VmwareEngineTracingConnection::UpdateLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateLoggingServer"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateLoggingServer(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateLoggingServer(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::UpdateLoggingServer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateLoggingServer"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateLoggingServer(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateLoggingServer( + ExperimentalTag{}, operation)); } future> @@ -763,27 +727,25 @@ VmwareEngineTracingConnection::DeleteLoggingServer( StatusOr VmwareEngineTracingConnection::DeleteLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteLoggingServer"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteLoggingServer(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteLoggingServer(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::DeleteLoggingServer( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteLoggingServer"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteLoggingServer(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteLoggingServer( + ExperimentalTag{}, operation)); } StreamRange @@ -839,27 +801,25 @@ VmwareEngineTracingConnection::ResetNsxCredentials( StatusOr VmwareEngineTracingConnection::ResetNsxCredentials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::ResetNsxCredentials"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->ResetNsxCredentials(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->ResetNsxCredentials(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::ResetNsxCredentials( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::ResetNsxCredentials"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->ResetNsxCredentials(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ResetNsxCredentials( + ExperimentalTag{}, operation)); } future> @@ -875,27 +835,25 @@ VmwareEngineTracingConnection::ResetVcenterCredentials( StatusOr VmwareEngineTracingConnection::ResetVcenterCredentials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::ResetVcenterCredentials"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->ResetVcenterCredentials( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->ResetVcenterCredentials(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> VmwareEngineTracingConnection::ResetVcenterCredentials( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::ResetVcenterCredentials"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->ResetVcenterCredentials( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->ResetVcenterCredentials( + ExperimentalTag{}, operation)); } StatusOr @@ -920,27 +878,25 @@ VmwareEngineTracingConnection::UpdateDnsForwarding( StatusOr VmwareEngineTracingConnection::UpdateDnsForwarding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateDnsForwarding"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateDnsForwarding(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateDnsForwarding(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::UpdateDnsForwarding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateDnsForwarding"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateDnsForwarding(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateDnsForwarding( + ExperimentalTag{}, operation)); } StatusOr @@ -977,27 +933,25 @@ VmwareEngineTracingConnection::CreateNetworkPeering( StatusOr VmwareEngineTracingConnection::CreateNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateNetworkPeering"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateNetworkPeering( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateNetworkPeering(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::CreateNetworkPeering( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateNetworkPeering"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateNetworkPeering( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateNetworkPeering( + ExperimentalTag{}, operation)); } future> @@ -1013,27 +967,25 @@ VmwareEngineTracingConnection::DeleteNetworkPeering( StatusOr VmwareEngineTracingConnection::DeleteNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteNetworkPeering"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteNetworkPeering( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->DeleteNetworkPeering(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::DeleteNetworkPeering( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteNetworkPeering"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteNetworkPeering( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteNetworkPeering( + ExperimentalTag{}, operation)); } future> @@ -1049,27 +1001,25 @@ VmwareEngineTracingConnection::UpdateNetworkPeering( StatusOr VmwareEngineTracingConnection::UpdateNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateNetworkPeering"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateNetworkPeering( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->UpdateNetworkPeering(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::UpdateNetworkPeering( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateNetworkPeering"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateNetworkPeering( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateNetworkPeering( + ExperimentalTag{}, operation)); } StreamRange @@ -1097,27 +1047,25 @@ VmwareEngineTracingConnection::CreateHcxActivationKey( StatusOr VmwareEngineTracingConnection::CreateHcxActivationKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateHcxActivationKey"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateHcxActivationKey( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->CreateHcxActivationKey(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::CreateHcxActivationKey( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateHcxActivationKey"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateHcxActivationKey( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateHcxActivationKey( + ExperimentalTag{}, operation)); } StreamRange @@ -1176,27 +1124,25 @@ VmwareEngineTracingConnection::CreateNetworkPolicy( StatusOr VmwareEngineTracingConnection::CreateNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateNetworkPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateNetworkPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateNetworkPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::CreateNetworkPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateNetworkPolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->CreateNetworkPolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateNetworkPolicy( + ExperimentalTag{}, operation)); } future> @@ -1212,27 +1158,25 @@ VmwareEngineTracingConnection::UpdateNetworkPolicy( StatusOr VmwareEngineTracingConnection::UpdateNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateNetworkPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateNetworkPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateNetworkPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::UpdateNetworkPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateNetworkPolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->UpdateNetworkPolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateNetworkPolicy( + ExperimentalTag{}, operation)); } future> @@ -1248,27 +1192,25 @@ VmwareEngineTracingConnection::DeleteNetworkPolicy( StatusOr VmwareEngineTracingConnection::DeleteNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteNetworkPolicy"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteNetworkPolicy(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteNetworkPolicy(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::DeleteNetworkPolicy( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteNetworkPolicy"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->DeleteNetworkPolicy(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteNetworkPolicy( + ExperimentalTag{}, operation)); } StreamRange @@ -1308,29 +1250,28 @@ VmwareEngineTracingConnection::CreateManagementDnsZoneBinding( StatusOr VmwareEngineTracingConnection::CreateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: CreateManagementDnsZoneBindingRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::" "CreateManagementDnsZoneBinding"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateManagementDnsZoneBinding( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateManagementDnsZoneBinding(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::CreateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::" "CreateManagementDnsZoneBinding"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateManagementDnsZoneBinding( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->CreateManagementDnsZoneBinding(ExperimentalTag{}, operation)); } future> @@ -1347,29 +1288,28 @@ VmwareEngineTracingConnection::UpdateManagementDnsZoneBinding( StatusOr VmwareEngineTracingConnection::UpdateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: UpdateManagementDnsZoneBindingRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::" "UpdateManagementDnsZoneBinding"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateManagementDnsZoneBinding( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateManagementDnsZoneBinding(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::UpdateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::" "UpdateManagementDnsZoneBinding"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateManagementDnsZoneBinding( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->UpdateManagementDnsZoneBinding(ExperimentalTag{}, operation)); } future> @@ -1386,29 +1326,28 @@ VmwareEngineTracingConnection::DeleteManagementDnsZoneBinding( StatusOr VmwareEngineTracingConnection::DeleteManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: DeleteManagementDnsZoneBindingRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::" "DeleteManagementDnsZoneBinding"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteManagementDnsZoneBinding( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteManagementDnsZoneBinding(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::DeleteManagementDnsZoneBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::" "DeleteManagementDnsZoneBinding"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteManagementDnsZoneBinding( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->DeleteManagementDnsZoneBinding(ExperimentalTag{}, operation)); } future> @@ -1425,29 +1364,28 @@ VmwareEngineTracingConnection::RepairManagementDnsZoneBinding( StatusOr VmwareEngineTracingConnection::RepairManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: RepairManagementDnsZoneBindingRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::" "RepairManagementDnsZoneBinding"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RepairManagementDnsZoneBinding( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->RepairManagementDnsZoneBinding(ExperimentalTag{}, + NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::RepairManagementDnsZoneBinding( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::" "RepairManagementDnsZoneBinding"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RepairManagementDnsZoneBinding( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan( + std::move(span), + child_->RepairManagementDnsZoneBinding(ExperimentalTag{}, operation)); } future> @@ -1463,27 +1401,25 @@ VmwareEngineTracingConnection::CreateVmwareEngineNetwork( StatusOr VmwareEngineTracingConnection::CreateVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateVmwareEngineNetwork"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateVmwareEngineNetwork( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateVmwareEngineNetwork(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> VmwareEngineTracingConnection::CreateVmwareEngineNetwork( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreateVmwareEngineNetwork"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateVmwareEngineNetwork( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateVmwareEngineNetwork( + ExperimentalTag{}, operation)); } future> @@ -1499,27 +1435,25 @@ VmwareEngineTracingConnection::UpdateVmwareEngineNetwork( StatusOr VmwareEngineTracingConnection::UpdateVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateVmwareEngineNetwork"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateVmwareEngineNetwork( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateVmwareEngineNetwork(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> VmwareEngineTracingConnection::UpdateVmwareEngineNetwork( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdateVmwareEngineNetwork"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateVmwareEngineNetwork( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateVmwareEngineNetwork( + ExperimentalTag{}, operation)); } future> @@ -1535,27 +1469,25 @@ VmwareEngineTracingConnection::DeleteVmwareEngineNetwork( StatusOr VmwareEngineTracingConnection::DeleteVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteVmwareEngineNetwork"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteVmwareEngineNetwork( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteVmwareEngineNetwork(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> VmwareEngineTracingConnection::DeleteVmwareEngineNetwork( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeleteVmwareEngineNetwork"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteVmwareEngineNetwork( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteVmwareEngineNetwork( + ExperimentalTag{}, operation)); } StatusOr @@ -1593,27 +1525,25 @@ VmwareEngineTracingConnection::CreatePrivateConnection( StatusOr VmwareEngineTracingConnection::CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreatePrivateConnection"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreatePrivateConnection( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreatePrivateConnection(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> VmwareEngineTracingConnection::CreatePrivateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::CreatePrivateConnection"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreatePrivateConnection( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreatePrivateConnection( + ExperimentalTag{}, operation)); } StatusOr @@ -1651,27 +1581,25 @@ VmwareEngineTracingConnection::UpdatePrivateConnection( StatusOr VmwareEngineTracingConnection::UpdatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdatePrivateConnection"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdatePrivateConnection( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdatePrivateConnection(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> VmwareEngineTracingConnection::UpdatePrivateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::UpdatePrivateConnection"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdatePrivateConnection( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdatePrivateConnection( + ExperimentalTag{}, operation)); } future> @@ -1687,27 +1615,25 @@ VmwareEngineTracingConnection::DeletePrivateConnection( StatusOr VmwareEngineTracingConnection::DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeletePrivateConnection"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeletePrivateConnection( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeletePrivateConnection(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> VmwareEngineTracingConnection::DeletePrivateConnection( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::DeletePrivateConnection"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeletePrivateConnection( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeletePrivateConnection( + ExperimentalTag{}, operation)); } StreamRange @@ -1737,27 +1663,25 @@ VmwareEngineTracingConnection::GrantDnsBindPermission( StatusOr VmwareEngineTracingConnection::GrantDnsBindPermission( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::GrantDnsBindPermission"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->GrantDnsBindPermission( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, + child_->GrantDnsBindPermission(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VmwareEngineTracingConnection::GrantDnsBindPermission( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::GrantDnsBindPermission"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->GrantDnsBindPermission( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->GrantDnsBindPermission( + ExperimentalTag{}, operation)); } StatusOr @@ -1783,27 +1707,25 @@ VmwareEngineTracingConnection::RevokeDnsBindPermission( StatusOr VmwareEngineTracingConnection::RevokeDnsBindPermission( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& request) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::RevokeDnsBindPermission"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->RevokeDnsBindPermission( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->RevokeDnsBindPermission(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> VmwareEngineTracingConnection::RevokeDnsBindPermission( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vmwareengine_v1::VmwareEngineConnection::RevokeDnsBindPermission"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->RevokeDnsBindPermission( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->RevokeDnsBindPermission( + ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.h b/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.h index d8ee8067df10e..af418f95fb200 100644 --- a/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.h +++ b/google/cloud/vmwareengine/v1/internal/vmware_engine_tracing_connection.h @@ -54,12 +54,12 @@ class VmwareEngineTracingConnection override; StatusOr CreatePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& request) override; future> - CreatePrivateCloud(google::cloud::ExperimentalTag, + CreatePrivateCloud(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -68,12 +68,12 @@ class VmwareEngineTracingConnection override; StatusOr UpdatePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request) override; future> - UpdatePrivateCloud(google::cloud::ExperimentalTag, + UpdatePrivateCloud(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -82,12 +82,12 @@ class VmwareEngineTracingConnection override; StatusOr DeletePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request) override; future> - DeletePrivateCloud(google::cloud::ExperimentalTag, + DeletePrivateCloud(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -96,13 +96,13 @@ class VmwareEngineTracingConnection request) override; StatusOr UndeletePrivateCloud( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& request) override; future> UndeletePrivateCloud( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListClusters( @@ -117,12 +117,12 @@ class VmwareEngineTracingConnection override; StatusOr CreateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateClusterRequest const& request) override; future> CreateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateCluster( @@ -130,12 +130,12 @@ class VmwareEngineTracingConnection override; StatusOr UpdateCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateClusterRequest const& request) override; future> UpdateCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -143,12 +143,12 @@ class VmwareEngineTracingConnection request) override; StatusOr DeleteCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteClusterRequest const& request) override; future> - DeleteCluster(google::cloud::ExperimentalTag, + DeleteCluster(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListNodes( @@ -177,13 +177,13 @@ class VmwareEngineTracingConnection request) override; StatusOr CreateExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& request) override; future> CreateExternalAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -192,13 +192,13 @@ class VmwareEngineTracingConnection request) override; StatusOr UpdateExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& request) override; future> UpdateExternalAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -207,13 +207,13 @@ class VmwareEngineTracingConnection request) override; StatusOr DeleteExternalAddress( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& request) override; future> DeleteExternalAddress( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListSubnets( @@ -228,12 +228,12 @@ class VmwareEngineTracingConnection override; StatusOr UpdateSubnet( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request) override; future> UpdateSubnet( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -252,13 +252,13 @@ class VmwareEngineTracingConnection request) override; StatusOr CreateExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& request) override; future> CreateExternalAccessRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -267,13 +267,13 @@ class VmwareEngineTracingConnection request) override; StatusOr UpdateExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& request) override; future> UpdateExternalAccessRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -282,13 +282,13 @@ class VmwareEngineTracingConnection request) override; StatusOr DeleteExternalAccessRule( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& request) override; future> DeleteExternalAccessRule( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -305,12 +305,12 @@ class VmwareEngineTracingConnection request) override; StatusOr CreateLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& request) override; future> - CreateLoggingServer(google::cloud::ExperimentalTag, + CreateLoggingServer(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -319,12 +319,12 @@ class VmwareEngineTracingConnection request) override; StatusOr UpdateLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& request) override; future> - UpdateLoggingServer(google::cloud::ExperimentalTag, + UpdateLoggingServer(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -333,12 +333,12 @@ class VmwareEngineTracingConnection request) override; StatusOr DeleteLoggingServer( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& request) override; future> - DeleteLoggingServer(google::cloud::ExperimentalTag, + DeleteLoggingServer(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListNodeTypes( @@ -362,12 +362,12 @@ class VmwareEngineTracingConnection request) override; StatusOr ResetNsxCredentials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& request) override; future> - ResetNsxCredentials(google::cloud::ExperimentalTag, + ResetNsxCredentials(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -376,13 +376,13 @@ class VmwareEngineTracingConnection request) override; StatusOr ResetVcenterCredentials( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& request) override; future> ResetVcenterCredentials( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetDnsForwarding( @@ -395,12 +395,12 @@ class VmwareEngineTracingConnection request) override; StatusOr UpdateDnsForwarding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& request) override; future> - UpdateDnsForwarding(google::cloud::ExperimentalTag, + UpdateDnsForwarding(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetNetworkPeering( @@ -418,13 +418,13 @@ class VmwareEngineTracingConnection request) override; StatusOr CreateNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& request) override; future> CreateNetworkPeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -433,13 +433,13 @@ class VmwareEngineTracingConnection request) override; StatusOr DeleteNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& request) override; future> DeleteNetworkPeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -448,13 +448,13 @@ class VmwareEngineTracingConnection request) override; StatusOr UpdateNetworkPeering( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& request) override; future> UpdateNetworkPeering( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange ListPeeringRoutes( @@ -467,13 +467,13 @@ class VmwareEngineTracingConnection request) override; StatusOr CreateHcxActivationKey( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& request) override; future> CreateHcxActivationKey( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -501,12 +501,12 @@ class VmwareEngineTracingConnection request) override; StatusOr CreateNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& request) override; future> - CreateNetworkPolicy(google::cloud::ExperimentalTag, + CreateNetworkPolicy(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -515,12 +515,12 @@ class VmwareEngineTracingConnection request) override; StatusOr UpdateNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& request) override; future> - UpdateNetworkPolicy(google::cloud::ExperimentalTag, + UpdateNetworkPolicy(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -529,12 +529,12 @@ class VmwareEngineTracingConnection request) override; StatusOr DeleteNetworkPolicy( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& request) override; future> - DeleteNetworkPolicy(google::cloud::ExperimentalTag, + DeleteNetworkPolicy(ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -553,13 +553,13 @@ class VmwareEngineTracingConnection CreateManagementDnsZoneBindingRequest const& request) override; StatusOr CreateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: CreateManagementDnsZoneBindingRequest const& request) override; future> CreateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -568,13 +568,13 @@ class VmwareEngineTracingConnection UpdateManagementDnsZoneBindingRequest const& request) override; StatusOr UpdateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: UpdateManagementDnsZoneBindingRequest const& request) override; future> UpdateManagementDnsZoneBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -583,13 +583,13 @@ class VmwareEngineTracingConnection DeleteManagementDnsZoneBindingRequest const& request) override; StatusOr DeleteManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: DeleteManagementDnsZoneBindingRequest const& request) override; future> DeleteManagementDnsZoneBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -598,13 +598,13 @@ class VmwareEngineTracingConnection RepairManagementDnsZoneBindingRequest const& request) override; StatusOr RepairManagementDnsZoneBinding( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: RepairManagementDnsZoneBindingRequest const& request) override; future> RepairManagementDnsZoneBinding( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -613,13 +613,13 @@ class VmwareEngineTracingConnection request) override; StatusOr CreateVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& request) override; future> CreateVmwareEngineNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -628,13 +628,13 @@ class VmwareEngineTracingConnection request) override; StatusOr UpdateVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& request) override; future> UpdateVmwareEngineNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -643,13 +643,13 @@ class VmwareEngineTracingConnection request) override; StatusOr DeleteVmwareEngineNetwork( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& request) override; future> DeleteVmwareEngineNetwork( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -668,13 +668,13 @@ class VmwareEngineTracingConnection request) override; StatusOr CreatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& request) override; future> CreatePrivateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -693,13 +693,13 @@ class VmwareEngineTracingConnection request) override; StatusOr UpdatePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& request) override; future> UpdatePrivateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -708,13 +708,13 @@ class VmwareEngineTracingConnection request) override; StatusOr DeletePrivateConnection( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& request) override; future> DeletePrivateConnection( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StreamRange @@ -728,13 +728,13 @@ class VmwareEngineTracingConnection request) override; StatusOr GrantDnsBindPermission( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& request) override; future> GrantDnsBindPermission( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -748,13 +748,13 @@ class VmwareEngineTracingConnection request) override; StatusOr RevokeDnsBindPermission( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& request) override; future> RevokeDnsBindPermission( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/vmwareengine/v1/mocks/mock_vmware_engine_connection.h b/google/cloud/vmwareengine/v1/mocks/mock_vmware_engine_connection.h index bed3879f307ed..2a657c790aa47 100644 --- a/google/cloud/vmwareengine/v1/mocks/mock_vmware_engine_connection.h +++ b/google/cloud/vmwareengine/v1/mocks/mock_vmware_engine_connection.h @@ -65,14 +65,14 @@ class MockVmwareEngineConnection (override)); MOCK_METHOD(StatusOr, CreatePrivateCloud, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& request), (override)); MOCK_METHOD(future>, CreatePrivateCloud, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -83,14 +83,14 @@ class MockVmwareEngineConnection (override)); MOCK_METHOD(StatusOr, UpdatePrivateCloud, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request), (override)); MOCK_METHOD(future>, UpdatePrivateCloud, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -101,14 +101,14 @@ class MockVmwareEngineConnection (override)); MOCK_METHOD(StatusOr, DeletePrivateCloud, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request), (override)); MOCK_METHOD(future>, DeletePrivateCloud, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -121,14 +121,14 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, UndeletePrivateCloud, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& request), (override)); MOCK_METHOD(future>, UndeletePrivateCloud, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -149,13 +149,13 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, CreateCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateClusterRequest const& request), (override)); MOCK_METHOD(future>, CreateCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -166,13 +166,13 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, UpdateCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateClusterRequest const& request), (override)); MOCK_METHOD(future>, UpdateCluster, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -184,15 +184,14 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, DeleteCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteClusterRequest const& request), (override)); MOCK_METHOD( future>, DeleteCluster, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), ListNodes, @@ -230,7 +229,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, CreateExternalAddress, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& request), (override)); @@ -238,8 +237,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, CreateExternalAddress, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -251,7 +249,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, UpdateExternalAddress, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& request), (override)); @@ -259,8 +257,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, UpdateExternalAddress, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -272,7 +269,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, DeleteExternalAddress, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& request), (override)); @@ -280,8 +277,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, DeleteExternalAddress, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), @@ -301,13 +297,13 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, UpdateSubnet, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request), (override)); MOCK_METHOD(future>, UpdateSubnet, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -333,7 +329,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, CreateExternalAccessRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& request), (override)); @@ -341,8 +337,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, CreateExternalAccessRule, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -354,7 +349,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, UpdateExternalAccessRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& request), (override)); @@ -362,8 +357,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, UpdateExternalAccessRule, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -375,7 +369,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, DeleteExternalAccessRule, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& request), (override)); @@ -383,8 +377,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, DeleteExternalAccessRule, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -408,14 +401,14 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, CreateLoggingServer, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& request), (override)); MOCK_METHOD(future>, CreateLoggingServer, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -428,14 +421,14 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, UpdateLoggingServer, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& request), (override)); MOCK_METHOD(future>, UpdateLoggingServer, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -448,7 +441,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, DeleteLoggingServer, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& request), (override)); @@ -456,8 +449,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, DeleteLoggingServer, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), @@ -492,14 +484,14 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, ResetNsxCredentials, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& request), (override)); MOCK_METHOD(future>, ResetNsxCredentials, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -512,14 +504,14 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, ResetVcenterCredentials, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& request), (override)); MOCK_METHOD(future>, ResetVcenterCredentials, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -538,14 +530,14 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, UpdateDnsForwarding, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& request), (override)); MOCK_METHOD(future>, UpdateDnsForwarding, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -570,14 +562,14 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, CreateNetworkPeering, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& request), (override)); MOCK_METHOD(future>, CreateNetworkPeering, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -590,7 +582,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, DeleteNetworkPeering, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& request), (override)); @@ -598,8 +590,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, DeleteNetworkPeering, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -611,14 +602,14 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, UpdateNetworkPeering, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& request), (override)); MOCK_METHOD(future>, UpdateNetworkPeering, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -637,7 +628,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, CreateHcxActivationKey, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& request), (override)); @@ -645,8 +636,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, CreateHcxActivationKey, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -683,14 +673,14 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, CreateNetworkPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& request), (override)); MOCK_METHOD(future>, CreateNetworkPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -703,14 +693,14 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, UpdateNetworkPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& request), (override)); MOCK_METHOD(future>, UpdateNetworkPolicy, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -723,7 +713,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, DeleteNetworkPolicy, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& request), (override)); @@ -731,8 +721,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, DeleteNetworkPolicy, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -759,7 +748,7 @@ class MockVmwareEngineConnection MOCK_METHOD(StatusOr, CreateManagementDnsZoneBinding, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: CreateManagementDnsZoneBindingRequest const& request), (override)); @@ -768,8 +757,7 @@ class MockVmwareEngineConnection future< StatusOr>, CreateManagementDnsZoneBinding, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -782,7 +770,7 @@ class MockVmwareEngineConnection MOCK_METHOD(StatusOr, UpdateManagementDnsZoneBinding, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: UpdateManagementDnsZoneBindingRequest const& request), (override)); @@ -791,8 +779,7 @@ class MockVmwareEngineConnection future< StatusOr>, UpdateManagementDnsZoneBinding, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -804,7 +791,7 @@ class MockVmwareEngineConnection MOCK_METHOD(StatusOr, DeleteManagementDnsZoneBinding, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: DeleteManagementDnsZoneBindingRequest const& request), (override)); @@ -812,8 +799,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, DeleteManagementDnsZoneBinding, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -826,7 +812,7 @@ class MockVmwareEngineConnection MOCK_METHOD(StatusOr, RepairManagementDnsZoneBinding, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: RepairManagementDnsZoneBindingRequest const& request), (override)); @@ -835,8 +821,7 @@ class MockVmwareEngineConnection future< StatusOr>, RepairManagementDnsZoneBinding, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -848,7 +833,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, CreateVmwareEngineNetwork, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& request), (override)); @@ -856,8 +841,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, CreateVmwareEngineNetwork, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -869,7 +853,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, UpdateVmwareEngineNetwork, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& request), (override)); @@ -877,8 +861,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, UpdateVmwareEngineNetwork, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -890,7 +873,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, DeleteVmwareEngineNetwork, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& request), (override)); @@ -898,8 +881,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, DeleteVmwareEngineNetwork, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -925,7 +907,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, CreatePrivateConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& request), (override)); @@ -933,8 +915,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, CreatePrivateConnection, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -959,7 +940,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, UpdatePrivateConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& request), (override)); @@ -967,8 +948,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, UpdatePrivateConnection, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -980,7 +960,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, DeletePrivateConnection, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& request), (override)); @@ -988,8 +968,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, DeletePrivateConnection, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD((StreamRange), @@ -1007,7 +986,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, GrantDnsBindPermission, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& request), (override)); @@ -1015,8 +994,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, GrantDnsBindPermission, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -1035,7 +1013,7 @@ class MockVmwareEngineConnection MOCK_METHOD( StatusOr, RevokeDnsBindPermission, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& request), (override)); @@ -1043,8 +1021,7 @@ class MockVmwareEngineConnection MOCK_METHOD( future>, RevokeDnsBindPermission, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.cc b/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.cc index 36ba5c77c4cf7..8057ca12fd80a 100644 --- a/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.cc +++ b/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.cc @@ -108,7 +108,7 @@ VpcAccessServiceConnectionImpl::CreateConnector( StatusOr VpcAccessServiceConnectionImpl::CreateConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vpcaccess::v1::CreateConnectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -124,8 +124,7 @@ VpcAccessServiceConnectionImpl::CreateConnector( future> VpcAccessServiceConnectionImpl::CreateConnector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -248,7 +247,7 @@ VpcAccessServiceConnectionImpl::DeleteConnector( StatusOr VpcAccessServiceConnectionImpl::DeleteConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -264,8 +263,7 @@ VpcAccessServiceConnectionImpl::DeleteConnector( future> VpcAccessServiceConnectionImpl::DeleteConnector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.h b/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.h index 3586b7668d8f0..112f411a244bc 100644 --- a/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.h +++ b/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.h @@ -57,12 +57,12 @@ class VpcAccessServiceConnectionImpl override; StatusOr CreateConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vpcaccess::v1::CreateConnectorRequest const& request) override; future> CreateConnector( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetConnector( @@ -77,12 +77,12 @@ class VpcAccessServiceConnectionImpl request) override; StatusOr DeleteConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request) override; future> - DeleteConnector(google::cloud::ExperimentalTag, + DeleteConnector(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.cc b/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.cc index 9dbd5593b8029..f17d0e51dd656 100644 --- a/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.cc +++ b/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.cc @@ -44,26 +44,23 @@ VpcAccessServiceTracingConnection::CreateConnector( StatusOr VpcAccessServiceTracingConnection::CreateConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vpcaccess::v1::CreateConnectorRequest const& request) { auto span = internal::MakeSpan( "vpcaccess_v1::VpcAccessServiceConnection::CreateConnector"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateConnector(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateConnector(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VpcAccessServiceTracingConnection::CreateConnector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vpcaccess_v1::VpcAccessServiceConnection::CreateConnector"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateConnector(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateConnector(ExperimentalTag{}, operation)); } StatusOr @@ -97,26 +94,23 @@ VpcAccessServiceTracingConnection::DeleteConnector( StatusOr VpcAccessServiceTracingConnection::DeleteConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request) { auto span = internal::MakeSpan( "vpcaccess_v1::VpcAccessServiceConnection::DeleteConnector"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteConnector(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteConnector(ExperimentalTag{}, NoAwaitTag{}, request)); } future> VpcAccessServiceTracingConnection::DeleteConnector( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "vpcaccess_v1::VpcAccessServiceConnection::DeleteConnector"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteConnector(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteConnector(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.h b/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.h index 5edc7f44422ac..e653e2c5ee963 100644 --- a/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.h +++ b/google/cloud/vpcaccess/v1/internal/vpc_access_tracing_connection.h @@ -45,12 +45,12 @@ class VpcAccessServiceTracingConnection override; StatusOr CreateConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vpcaccess::v1::CreateConnectorRequest const& request) override; future> CreateConnector( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetConnector( @@ -65,12 +65,12 @@ class VpcAccessServiceTracingConnection request) override; StatusOr DeleteConnector( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request) override; future> - DeleteConnector(google::cloud::ExperimentalTag, + DeleteConnector(ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/vpcaccess/v1/mocks/mock_vpc_access_connection.h b/google/cloud/vpcaccess/v1/mocks/mock_vpc_access_connection.h index 27a5ba39364fc..1a58ee5e4f512 100644 --- a/google/cloud/vpcaccess/v1/mocks/mock_vpc_access_connection.h +++ b/google/cloud/vpcaccess/v1/mocks/mock_vpc_access_connection.h @@ -55,13 +55,13 @@ class MockVpcAccessServiceConnection MOCK_METHOD( StatusOr, CreateConnector, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vpcaccess::v1::CreateConnectorRequest const& request), (override)); MOCK_METHOD(future>, CreateConnector, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -83,13 +83,13 @@ class MockVpcAccessServiceConnection MOCK_METHOD( StatusOr, DeleteConnector, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request), (override)); MOCK_METHOD(future>, DeleteConnector, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/webrisk/v1/internal/web_risk_connection_impl.cc b/google/cloud/webrisk/v1/internal/web_risk_connection_impl.cc index 5b00b44b62319..164e1b0cbe7f7 100644 --- a/google/cloud/webrisk/v1/internal/web_risk_connection_impl.cc +++ b/google/cloud/webrisk/v1/internal/web_risk_connection_impl.cc @@ -161,7 +161,7 @@ WebRiskServiceConnectionImpl::SubmitUri( StatusOr WebRiskServiceConnectionImpl::SubmitUri( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::webrisk::v1::SubmitUriRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -176,8 +176,7 @@ WebRiskServiceConnectionImpl::SubmitUri( future> WebRiskServiceConnectionImpl::SubmitUri( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/webrisk/v1/internal/web_risk_connection_impl.h b/google/cloud/webrisk/v1/internal/web_risk_connection_impl.h index 73800241d4a02..1c312512ac824 100644 --- a/google/cloud/webrisk/v1/internal/web_risk_connection_impl.h +++ b/google/cloud/webrisk/v1/internal/web_risk_connection_impl.h @@ -70,11 +70,11 @@ class WebRiskServiceConnectionImpl google::cloud::webrisk::v1::SubmitUriRequest const& request) override; StatusOr SubmitUri( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::webrisk::v1::SubmitUriRequest const& request) override; future> SubmitUri( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.cc b/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.cc index 0e41e04afa923..a9c6b7931c59a 100644 --- a/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.cc +++ b/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.cc @@ -79,26 +79,23 @@ WebRiskServiceTracingConnection::SubmitUri( StatusOr WebRiskServiceTracingConnection::SubmitUri( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::webrisk::v1::SubmitUriRequest const& request) { auto span = internal::MakeSpan("webrisk_v1::WebRiskServiceConnection::SubmitUri"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->SubmitUri(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->SubmitUri(ExperimentalTag{}, NoAwaitTag{}, request)); } future> WebRiskServiceTracingConnection::SubmitUri( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("webrisk_v1::WebRiskServiceConnection::SubmitUri"); internal::OTelScope scope(span); - return internal::EndSpan( - std::move(span), - child_->SubmitUri(google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), + child_->SubmitUri(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.h b/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.h index c1c4d36eddcd8..20f9a2226d72d 100644 --- a/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.h +++ b/google/cloud/webrisk/v1/internal/web_risk_tracing_connection.h @@ -59,11 +59,11 @@ class WebRiskServiceTracingConnection google::cloud::webrisk::v1::SubmitUriRequest const& request) override; StatusOr SubmitUri( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::webrisk::v1::SubmitUriRequest const& request) override; future> SubmitUri( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/webrisk/v1/mocks/mock_web_risk_connection.h b/google/cloud/webrisk/v1/mocks/mock_web_risk_connection.h index 8b34bb85a5b0e..7f93194351285 100644 --- a/google/cloud/webrisk/v1/mocks/mock_web_risk_connection.h +++ b/google/cloud/webrisk/v1/mocks/mock_web_risk_connection.h @@ -74,13 +74,13 @@ class MockWebRiskServiceConnection (override)); MOCK_METHOD(StatusOr, SubmitUri, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::webrisk::v1::SubmitUriRequest const& request), (override)); MOCK_METHOD(future>, SubmitUri, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/workflows/v1/internal/workflows_connection_impl.cc b/google/cloud/workflows/v1/internal/workflows_connection_impl.cc index 83966662d6ec0..dc1a92c9ddb25 100644 --- a/google/cloud/workflows/v1/internal/workflows_connection_impl.cc +++ b/google/cloud/workflows/v1/internal/workflows_connection_impl.cc @@ -152,7 +152,7 @@ WorkflowsConnectionImpl::CreateWorkflow( StatusOr WorkflowsConnectionImpl::CreateWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workflows::v1::CreateWorkflowRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -168,8 +168,7 @@ WorkflowsConnectionImpl::CreateWorkflow( future> WorkflowsConnectionImpl::CreateWorkflow( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -244,7 +243,7 @@ WorkflowsConnectionImpl::DeleteWorkflow( StatusOr WorkflowsConnectionImpl::DeleteWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workflows::v1::DeleteWorkflowRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -260,8 +259,7 @@ WorkflowsConnectionImpl::DeleteWorkflow( future> WorkflowsConnectionImpl::DeleteWorkflow( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -337,7 +335,7 @@ WorkflowsConnectionImpl::UpdateWorkflow( StatusOr WorkflowsConnectionImpl::UpdateWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workflows::v1::UpdateWorkflowRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -353,8 +351,7 @@ WorkflowsConnectionImpl::UpdateWorkflow( future> WorkflowsConnectionImpl::UpdateWorkflow( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/workflows/v1/internal/workflows_connection_impl.h b/google/cloud/workflows/v1/internal/workflows_connection_impl.h index b0fe8591f3497..8ab39de6b77ff 100644 --- a/google/cloud/workflows/v1/internal/workflows_connection_impl.h +++ b/google/cloud/workflows/v1/internal/workflows_connection_impl.h @@ -62,12 +62,12 @@ class WorkflowsConnectionImpl : public workflows_v1::WorkflowsConnection { override; StatusOr CreateWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workflows::v1::CreateWorkflowRequest const& request) override; future> CreateWorkflow( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -75,12 +75,12 @@ class WorkflowsConnectionImpl : public workflows_v1::WorkflowsConnection { request) override; StatusOr DeleteWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workflows::v1::DeleteWorkflowRequest const& request) override; future> - DeleteWorkflow(google::cloud::ExperimentalTag, + DeleteWorkflow(ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateWorkflow( @@ -88,12 +88,12 @@ class WorkflowsConnectionImpl : public workflows_v1::WorkflowsConnection { override; StatusOr UpdateWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workflows::v1::UpdateWorkflowRequest const& request) override; future> UpdateWorkflow( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/workflows/v1/internal/workflows_tracing_connection.cc b/google/cloud/workflows/v1/internal/workflows_tracing_connection.cc index 53dd23c713257..0aec30243012b 100644 --- a/google/cloud/workflows/v1/internal/workflows_tracing_connection.cc +++ b/google/cloud/workflows/v1/internal/workflows_tracing_connection.cc @@ -64,26 +64,23 @@ WorkflowsTracingConnection::CreateWorkflow( StatusOr WorkflowsTracingConnection::CreateWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::CreateWorkflowRequest const& request) { auto span = internal::MakeSpan("workflows_v1::WorkflowsConnection::CreateWorkflow"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateWorkflow(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->CreateWorkflow(ExperimentalTag{}, NoAwaitTag{}, request)); } future> WorkflowsTracingConnection::CreateWorkflow( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("workflows_v1::WorkflowsConnection::CreateWorkflow"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateWorkflow(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateWorkflow(ExperimentalTag{}, operation)); } future> @@ -97,26 +94,23 @@ WorkflowsTracingConnection::DeleteWorkflow( StatusOr WorkflowsTracingConnection::DeleteWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::DeleteWorkflowRequest const& request) { auto span = internal::MakeSpan("workflows_v1::WorkflowsConnection::DeleteWorkflow"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteWorkflow(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->DeleteWorkflow(ExperimentalTag{}, NoAwaitTag{}, request)); } future> WorkflowsTracingConnection::DeleteWorkflow( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("workflows_v1::WorkflowsConnection::DeleteWorkflow"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteWorkflow(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteWorkflow(ExperimentalTag{}, operation)); } future> @@ -130,26 +124,23 @@ WorkflowsTracingConnection::UpdateWorkflow( StatusOr WorkflowsTracingConnection::UpdateWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::UpdateWorkflowRequest const& request) { auto span = internal::MakeSpan("workflows_v1::WorkflowsConnection::UpdateWorkflow"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateWorkflow(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->UpdateWorkflow(ExperimentalTag{}, NoAwaitTag{}, request)); } future> WorkflowsTracingConnection::UpdateWorkflow( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan("workflows_v1::WorkflowsConnection::UpdateWorkflow"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateWorkflow(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateWorkflow(ExperimentalTag{}, operation)); } #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY diff --git a/google/cloud/workflows/v1/internal/workflows_tracing_connection.h b/google/cloud/workflows/v1/internal/workflows_tracing_connection.h index c1af7b9f3e87c..74ace4b953d8b 100644 --- a/google/cloud/workflows/v1/internal/workflows_tracing_connection.h +++ b/google/cloud/workflows/v1/internal/workflows_tracing_connection.h @@ -50,12 +50,12 @@ class WorkflowsTracingConnection : public workflows_v1::WorkflowsConnection { override; StatusOr CreateWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::CreateWorkflowRequest const& request) override; future> CreateWorkflow( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -63,12 +63,12 @@ class WorkflowsTracingConnection : public workflows_v1::WorkflowsConnection { request) override; StatusOr DeleteWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::DeleteWorkflowRequest const& request) override; future> - DeleteWorkflow(google::cloud::ExperimentalTag, + DeleteWorkflow(ExperimentalTag, google::longrunning::Operation const& operation) override; future> UpdateWorkflow( @@ -76,12 +76,12 @@ class WorkflowsTracingConnection : public workflows_v1::WorkflowsConnection { override; StatusOr UpdateWorkflow( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::UpdateWorkflowRequest const& request) override; future> UpdateWorkflow( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; private: diff --git a/google/cloud/workflows/v1/mocks/mock_workflows_connection.h b/google/cloud/workflows/v1/mocks/mock_workflows_connection.h index 4968d46611a28..641e656cab85a 100644 --- a/google/cloud/workflows/v1/mocks/mock_workflows_connection.h +++ b/google/cloud/workflows/v1/mocks/mock_workflows_connection.h @@ -62,13 +62,13 @@ class MockWorkflowsConnection : public workflows_v1::WorkflowsConnection { MOCK_METHOD( StatusOr, CreateWorkflow, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::CreateWorkflowRequest const& request), (override)); MOCK_METHOD(future>, CreateWorkflow, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -80,13 +80,13 @@ class MockWorkflowsConnection : public workflows_v1::WorkflowsConnection { MOCK_METHOD( StatusOr, DeleteWorkflow, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::DeleteWorkflowRequest const& request), (override)); MOCK_METHOD(future>, DeleteWorkflow, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -97,13 +97,13 @@ class MockWorkflowsConnection : public workflows_v1::WorkflowsConnection { MOCK_METHOD( StatusOr, UpdateWorkflow, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::UpdateWorkflowRequest const& request), (override)); MOCK_METHOD(future>, UpdateWorkflow, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); }; diff --git a/google/cloud/workstations/v1/internal/workstations_connection_impl.cc b/google/cloud/workstations/v1/internal/workstations_connection_impl.cc index 6a43f5594dbc3..26459acd3ebcb 100644 --- a/google/cloud/workstations/v1/internal/workstations_connection_impl.cc +++ b/google/cloud/workstations/v1/internal/workstations_connection_impl.cc @@ -161,7 +161,7 @@ WorkstationsConnectionImpl::CreateWorkstationCluster( StatusOr WorkstationsConnectionImpl::CreateWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::CreateWorkstationClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -178,8 +178,7 @@ WorkstationsConnectionImpl::CreateWorkstationCluster( future> WorkstationsConnectionImpl::CreateWorkstationCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -256,7 +255,7 @@ WorkstationsConnectionImpl::UpdateWorkstationCluster( StatusOr WorkstationsConnectionImpl::UpdateWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -273,8 +272,7 @@ WorkstationsConnectionImpl::UpdateWorkstationCluster( future> WorkstationsConnectionImpl::UpdateWorkstationCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -351,7 +349,7 @@ WorkstationsConnectionImpl::DeleteWorkstationCluster( StatusOr WorkstationsConnectionImpl::DeleteWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -368,8 +366,7 @@ WorkstationsConnectionImpl::DeleteWorkstationCluster( future> WorkstationsConnectionImpl::DeleteWorkstationCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -538,7 +535,7 @@ WorkstationsConnectionImpl::CreateWorkstationConfig( StatusOr WorkstationsConnectionImpl::CreateWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::CreateWorkstationConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -556,8 +553,7 @@ WorkstationsConnectionImpl::CreateWorkstationConfig( future> WorkstationsConnectionImpl::CreateWorkstationConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -635,7 +631,7 @@ WorkstationsConnectionImpl::UpdateWorkstationConfig( StatusOr WorkstationsConnectionImpl::UpdateWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -653,8 +649,7 @@ WorkstationsConnectionImpl::UpdateWorkstationConfig( future> WorkstationsConnectionImpl::UpdateWorkstationConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -732,7 +727,7 @@ WorkstationsConnectionImpl::DeleteWorkstationConfig( StatusOr WorkstationsConnectionImpl::DeleteWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -750,8 +745,7 @@ WorkstationsConnectionImpl::DeleteWorkstationConfig( future> WorkstationsConnectionImpl::DeleteWorkstationConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -914,7 +908,7 @@ WorkstationsConnectionImpl::CreateWorkstation( StatusOr WorkstationsConnectionImpl::CreateWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::CreateWorkstationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -930,8 +924,7 @@ WorkstationsConnectionImpl::CreateWorkstation( future> WorkstationsConnectionImpl::CreateWorkstation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1008,7 +1001,7 @@ WorkstationsConnectionImpl::UpdateWorkstation( StatusOr WorkstationsConnectionImpl::UpdateWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::UpdateWorkstationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1024,8 +1017,7 @@ WorkstationsConnectionImpl::UpdateWorkstation( future> WorkstationsConnectionImpl::UpdateWorkstation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1102,7 +1094,7 @@ WorkstationsConnectionImpl::DeleteWorkstation( StatusOr WorkstationsConnectionImpl::DeleteWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::DeleteWorkstationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1118,8 +1110,7 @@ WorkstationsConnectionImpl::DeleteWorkstation( future> WorkstationsConnectionImpl::DeleteWorkstation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1196,7 +1187,7 @@ WorkstationsConnectionImpl::StartWorkstation( StatusOr WorkstationsConnectionImpl::StartWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::StartWorkstationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1212,8 +1203,7 @@ WorkstationsConnectionImpl::StartWorkstation( future> WorkstationsConnectionImpl::StartWorkstation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { @@ -1290,7 +1280,7 @@ WorkstationsConnectionImpl::StopWorkstation( StatusOr WorkstationsConnectionImpl::StopWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::StopWorkstationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1306,8 +1296,7 @@ WorkstationsConnectionImpl::StopWorkstation( future> WorkstationsConnectionImpl::StopWorkstation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto current = google::cloud::internal::SaveCurrentOptions(); if (!operation.metadata() .Is()) { diff --git a/google/cloud/workstations/v1/internal/workstations_connection_impl.h b/google/cloud/workstations/v1/internal/workstations_connection_impl.h index b7aa918cd1c1b..d871fadc0dfbb 100644 --- a/google/cloud/workstations/v1/internal/workstations_connection_impl.h +++ b/google/cloud/workstations/v1/internal/workstations_connection_impl.h @@ -68,13 +68,13 @@ class WorkstationsConnectionImpl request) override; StatusOr CreateWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::CreateWorkstationClusterRequest const& request) override; future> CreateWorkstationCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -83,13 +83,13 @@ class WorkstationsConnectionImpl request) override; StatusOr UpdateWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& request) override; future> UpdateWorkstationCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -98,13 +98,13 @@ class WorkstationsConnectionImpl request) override; StatusOr DeleteWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& request) override; future> DeleteWorkstationCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -128,13 +128,13 @@ class WorkstationsConnectionImpl request) override; StatusOr CreateWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::CreateWorkstationConfigRequest const& request) override; future> CreateWorkstationConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -143,13 +143,13 @@ class WorkstationsConnectionImpl request) override; StatusOr UpdateWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& request) override; future> UpdateWorkstationConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -158,13 +158,13 @@ class WorkstationsConnectionImpl request) override; StatusOr DeleteWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& request) override; future> DeleteWorkstationConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetWorkstation( @@ -186,12 +186,12 @@ class WorkstationsConnectionImpl override; StatusOr CreateWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::CreateWorkstationRequest const& request) override; future> - CreateWorkstation(google::cloud::ExperimentalTag, + CreateWorkstation(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -200,12 +200,12 @@ class WorkstationsConnectionImpl override; StatusOr UpdateWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::UpdateWorkstationRequest const& request) override; future> - UpdateWorkstation(google::cloud::ExperimentalTag, + UpdateWorkstation(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -214,12 +214,12 @@ class WorkstationsConnectionImpl override; StatusOr DeleteWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::DeleteWorkstationRequest const& request) override; future> - DeleteWorkstation(google::cloud::ExperimentalTag, + DeleteWorkstation(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -228,12 +228,12 @@ class WorkstationsConnectionImpl override; StatusOr StartWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::StartWorkstationRequest const& request) override; future> - StartWorkstation(google::cloud::ExperimentalTag, + StartWorkstation(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -241,12 +241,12 @@ class WorkstationsConnectionImpl request) override; StatusOr StopWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitlTag, google::cloud::workstations::v1::StopWorkstationRequest const& request) override; future> - StopWorkstation(google::cloud::ExperimentalTag, + StopWorkstation(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/workstations/v1/internal/workstations_tracing_connection.cc b/google/cloud/workstations/v1/internal/workstations_tracing_connection.cc index 662a0cfe3fb44..ac52bfe78c592 100644 --- a/google/cloud/workstations/v1/internal/workstations_tracing_connection.cc +++ b/google/cloud/workstations/v1/internal/workstations_tracing_connection.cc @@ -68,27 +68,25 @@ WorkstationsTracingConnection::CreateWorkstationCluster( StatusOr WorkstationsTracingConnection::CreateWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationClusterRequest const& request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::CreateWorkstationCluster"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateWorkstationCluster( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateWorkstationCluster(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> WorkstationsTracingConnection::CreateWorkstationCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::CreateWorkstationCluster"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateWorkstationCluster( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateWorkstationCluster( + ExperimentalTag{}, operation)); } future> @@ -104,27 +102,25 @@ WorkstationsTracingConnection::UpdateWorkstationCluster( StatusOr WorkstationsTracingConnection::UpdateWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::UpdateWorkstationCluster"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateWorkstationCluster( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateWorkstationCluster(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> WorkstationsTracingConnection::UpdateWorkstationCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::UpdateWorkstationCluster"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateWorkstationCluster( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateWorkstationCluster( + ExperimentalTag{}, operation)); } future> @@ -140,27 +136,25 @@ WorkstationsTracingConnection::DeleteWorkstationCluster( StatusOr WorkstationsTracingConnection::DeleteWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::DeleteWorkstationCluster"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteWorkstationCluster( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteWorkstationCluster(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> WorkstationsTracingConnection::DeleteWorkstationCluster( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::DeleteWorkstationCluster"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteWorkstationCluster( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteWorkstationCluster( + ExperimentalTag{}, operation)); } StatusOr @@ -211,27 +205,25 @@ WorkstationsTracingConnection::CreateWorkstationConfig( StatusOr WorkstationsTracingConnection::CreateWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationConfigRequest const& request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::CreateWorkstationConfig"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->CreateWorkstationConfig( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->CreateWorkstationConfig(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> WorkstationsTracingConnection::CreateWorkstationConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::CreateWorkstationConfig"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->CreateWorkstationConfig( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->CreateWorkstationConfig( + ExperimentalTag{}, operation)); } future> @@ -247,27 +239,25 @@ WorkstationsTracingConnection::UpdateWorkstationConfig( StatusOr WorkstationsTracingConnection::UpdateWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::UpdateWorkstationConfig"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->UpdateWorkstationConfig( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->UpdateWorkstationConfig(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> WorkstationsTracingConnection::UpdateWorkstationConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::UpdateWorkstationConfig"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->UpdateWorkstationConfig( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->UpdateWorkstationConfig( + ExperimentalTag{}, operation)); } future> @@ -283,27 +273,25 @@ WorkstationsTracingConnection::DeleteWorkstationConfig( StatusOr WorkstationsTracingConnection::DeleteWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::DeleteWorkstationConfig"); opentelemetry::trace::Scope scope(span); - return internal::EndSpan(*span, child_->DeleteWorkstationConfig( - google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + return internal::EndSpan( + *span, child_->DeleteWorkstationConfig(ExperimentalTag{}, NoAwaitTag{}, + request)); } future> WorkstationsTracingConnection::DeleteWorkstationConfig( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::DeleteWorkstationConfig"); internal::OTelScope scope(span); - return internal::EndSpan(std::move(span), - child_->DeleteWorkstationConfig( - google::cloud::ExperimentalTag{}, operation)); + return internal::EndSpan(std::move(span), child_->DeleteWorkstationConfig( + ExperimentalTag{}, operation)); } StatusOr @@ -350,26 +338,24 @@ WorkstationsTracingConnection::CreateWorkstation( StatusOr WorkstationsTracingConnection::CreateWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationRequest const& request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::CreateWorkstation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->CreateWorkstation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->CreateWorkstation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> WorkstationsTracingConnection::CreateWorkstation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::CreateWorkstation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->CreateWorkstation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->CreateWorkstation(ExperimentalTag{}, operation)); } future> @@ -383,26 +369,24 @@ WorkstationsTracingConnection::UpdateWorkstation( StatusOr WorkstationsTracingConnection::UpdateWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationRequest const& request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::UpdateWorkstation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->UpdateWorkstation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->UpdateWorkstation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> WorkstationsTracingConnection::UpdateWorkstation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::UpdateWorkstation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->UpdateWorkstation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->UpdateWorkstation(ExperimentalTag{}, operation)); } future> @@ -416,26 +400,24 @@ WorkstationsTracingConnection::DeleteWorkstation( StatusOr WorkstationsTracingConnection::DeleteWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationRequest const& request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::DeleteWorkstation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->DeleteWorkstation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->DeleteWorkstation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> WorkstationsTracingConnection::DeleteWorkstation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::DeleteWorkstation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->DeleteWorkstation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->DeleteWorkstation(ExperimentalTag{}, operation)); } future> @@ -449,26 +431,24 @@ WorkstationsTracingConnection::StartWorkstation( StatusOr WorkstationsTracingConnection::StartWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::StartWorkstationRequest const& request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::StartWorkstation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StartWorkstation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, + child_->StartWorkstation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> WorkstationsTracingConnection::StartWorkstation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::StartWorkstation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->StartWorkstation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->StartWorkstation(ExperimentalTag{}, operation)); } future> @@ -482,26 +462,23 @@ WorkstationsTracingConnection::StopWorkstation( StatusOr WorkstationsTracingConnection::StopWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::StopWorkstationRequest const& request) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::StopWorkstation"); opentelemetry::trace::Scope scope(span); return internal::EndSpan( - *span, child_->StopWorkstation(google::cloud::ExperimentalTag{}, - google::cloud::NoAwaitTag{}, request)); + *span, child_->StopWorkstation(ExperimentalTag{}, NoAwaitTag{}, request)); } future> WorkstationsTracingConnection::StopWorkstation( - google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation) { + ExperimentalTag, google::longrunning::Operation const& operation) { auto span = internal::MakeSpan( "workstations_v1::WorkstationsConnection::StopWorkstation"); internal::OTelScope scope(span); return internal::EndSpan( - std::move(span), - child_->StopWorkstation(google::cloud::ExperimentalTag{}, operation)); + std::move(span), child_->StopWorkstation(ExperimentalTag{}, operation)); } StatusOr diff --git a/google/cloud/workstations/v1/internal/workstations_tracing_connection.h b/google/cloud/workstations/v1/internal/workstations_tracing_connection.h index aea2a9afddbae..b87d8025dea19 100644 --- a/google/cloud/workstations/v1/internal/workstations_tracing_connection.h +++ b/google/cloud/workstations/v1/internal/workstations_tracing_connection.h @@ -56,13 +56,13 @@ class WorkstationsTracingConnection request) override; StatusOr CreateWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationClusterRequest const& request) override; future> CreateWorkstationCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -71,13 +71,13 @@ class WorkstationsTracingConnection request) override; StatusOr UpdateWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& request) override; future> UpdateWorkstationCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -86,13 +86,13 @@ class WorkstationsTracingConnection request) override; StatusOr DeleteWorkstationCluster( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& request) override; future> DeleteWorkstationCluster( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr @@ -116,13 +116,13 @@ class WorkstationsTracingConnection request) override; StatusOr CreateWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationConfigRequest const& request) override; future> CreateWorkstationConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -131,13 +131,13 @@ class WorkstationsTracingConnection request) override; StatusOr UpdateWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& request) override; future> UpdateWorkstationConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -146,13 +146,13 @@ class WorkstationsTracingConnection request) override; StatusOr DeleteWorkstationConfig( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& request) override; future> DeleteWorkstationConfig( - google::cloud::ExperimentalTag, + ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr GetWorkstation( @@ -174,12 +174,12 @@ class WorkstationsTracingConnection override; StatusOr CreateWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationRequest const& request) override; future> - CreateWorkstation(google::cloud::ExperimentalTag, + CreateWorkstation(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -188,12 +188,12 @@ class WorkstationsTracingConnection override; StatusOr UpdateWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationRequest const& request) override; future> - UpdateWorkstation(google::cloud::ExperimentalTag, + UpdateWorkstation(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -202,12 +202,12 @@ class WorkstationsTracingConnection override; StatusOr DeleteWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationRequest const& request) override; future> - DeleteWorkstation(google::cloud::ExperimentalTag, + DeleteWorkstation(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -216,12 +216,12 @@ class WorkstationsTracingConnection override; StatusOr StartWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::StartWorkstationRequest const& request) override; future> - StartWorkstation(google::cloud::ExperimentalTag, + StartWorkstation(ExperimentalTag, google::longrunning::Operation const& operation) override; future> @@ -229,12 +229,12 @@ class WorkstationsTracingConnection request) override; StatusOr StopWorkstation( - google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::StopWorkstationRequest const& request) override; future> - StopWorkstation(google::cloud::ExperimentalTag, + StopWorkstation(ExperimentalTag, google::longrunning::Operation const& operation) override; StatusOr diff --git a/google/cloud/workstations/v1/mocks/mock_workstations_connection.h b/google/cloud/workstations/v1/mocks/mock_workstations_connection.h index 7271702e7bc49..ee2482893caf3 100644 --- a/google/cloud/workstations/v1/mocks/mock_workstations_connection.h +++ b/google/cloud/workstations/v1/mocks/mock_workstations_connection.h @@ -69,7 +69,7 @@ class MockWorkstationsConnection MOCK_METHOD( StatusOr, CreateWorkstationCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationClusterRequest const& request), (override)); @@ -77,8 +77,7 @@ class MockWorkstationsConnection MOCK_METHOD( future>, CreateWorkstationCluster, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -90,7 +89,7 @@ class MockWorkstationsConnection MOCK_METHOD( StatusOr, UpdateWorkstationCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& request), (override)); @@ -98,8 +97,7 @@ class MockWorkstationsConnection MOCK_METHOD( future>, UpdateWorkstationCluster, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -111,7 +109,7 @@ class MockWorkstationsConnection MOCK_METHOD( StatusOr, DeleteWorkstationCluster, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& request), (override)); @@ -119,8 +117,7 @@ class MockWorkstationsConnection MOCK_METHOD( future>, DeleteWorkstationCluster, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -152,7 +149,7 @@ class MockWorkstationsConnection MOCK_METHOD( StatusOr, CreateWorkstationConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationConfigRequest const& request), (override)); @@ -160,8 +157,7 @@ class MockWorkstationsConnection MOCK_METHOD( future>, CreateWorkstationConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -173,7 +169,7 @@ class MockWorkstationsConnection MOCK_METHOD( StatusOr, UpdateWorkstationConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& request), (override)); @@ -181,8 +177,7 @@ class MockWorkstationsConnection MOCK_METHOD( future>, UpdateWorkstationConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -194,7 +189,7 @@ class MockWorkstationsConnection MOCK_METHOD( StatusOr, DeleteWorkstationConfig, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& request), (override)); @@ -202,8 +197,7 @@ class MockWorkstationsConnection MOCK_METHOD( future>, DeleteWorkstationConfig, - (google::cloud::ExperimentalTag, - google::longrunning::Operation const& operation), + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); MOCK_METHOD( @@ -230,14 +224,14 @@ class MockWorkstationsConnection (override)); MOCK_METHOD(StatusOr, CreateWorkstation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationRequest const& request), (override)); MOCK_METHOD(future>, CreateWorkstation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -248,14 +242,14 @@ class MockWorkstationsConnection (override)); MOCK_METHOD(StatusOr, UpdateWorkstation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationRequest const& request), (override)); MOCK_METHOD(future>, UpdateWorkstation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -266,14 +260,14 @@ class MockWorkstationsConnection (override)); MOCK_METHOD(StatusOr, DeleteWorkstation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationRequest const& request), (override)); MOCK_METHOD(future>, DeleteWorkstation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -285,13 +279,13 @@ class MockWorkstationsConnection MOCK_METHOD( StatusOr, StartWorkstation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::StartWorkstationRequest const& request), (override)); MOCK_METHOD(future>, StartWorkstation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); @@ -303,13 +297,13 @@ class MockWorkstationsConnection MOCK_METHOD( StatusOr, StopWorkstation, - (google::cloud::ExperimentalTag, google::cloud::NoAwaitTag, + (ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::StopWorkstationRequest const& request), (override)); MOCK_METHOD(future>, StopWorkstation, - (google::cloud::ExperimentalTag, + (ExperimentalTag, google::longrunning::Operation const& operation), (override)); From 269f57be18772f96dd3309362bb80cd5b478a6d3 Mon Sep 17 00:00:00 2001 From: Scott Hart Date: Tue, 25 Jun 2024 12:49:39 -0400 Subject: [PATCH 11/11] fix typo --- .../golden_thing_admin_connection_impl.cc | 10 +-- .../golden_thing_admin_connection_impl.h | 10 +-- .../v1/internal/request_id_connection_impl.cc | 2 +- .../v1/internal/request_id_connection_impl.h | 2 +- .../internal/connection_impl_generator.cc | 6 +- .../access_context_manager_connection_impl.cc | 30 +++---- .../access_context_manager_connection_impl.h | 30 +++---- .../v1/internal/dataset_connection_impl.cc | 16 ++-- .../v1/internal/dataset_connection_impl.h | 16 ++-- ...eployment_resource_pool_connection_impl.cc | 4 +- ...deployment_resource_pool_connection_impl.h | 4 +- .../v1/internal/endpoint_connection_impl.cc | 10 +-- .../v1/internal/endpoint_connection_impl.h | 10 +-- ...ture_online_store_admin_connection_impl.cc | 12 +-- ...ature_online_store_admin_connection_impl.h | 12 +-- .../feature_registry_connection_impl.cc | 12 +-- .../feature_registry_connection_impl.h | 12 +-- .../internal/featurestore_connection_impl.cc | 24 +++--- .../internal/featurestore_connection_impl.h | 24 +++--- .../v1/internal/index_connection_impl.cc | 6 +- .../v1/internal/index_connection_impl.h | 6 +- .../index_endpoint_connection_impl.cc | 10 +-- .../internal/index_endpoint_connection_impl.h | 10 +-- .../v1/internal/job_connection_impl.cc | 14 ++-- .../v1/internal/job_connection_impl.h | 14 ++-- .../v1/internal/metadata_connection_impl.cc | 16 ++-- .../v1/internal/metadata_connection_impl.h | 16 ++-- .../v1/internal/migration_connection_impl.cc | 2 +- .../v1/internal/migration_connection_impl.h | 2 +- .../v1/internal/model_connection_impl.cc | 12 +-- .../v1/internal/model_connection_impl.h | 12 +-- .../v1/internal/notebook_connection_impl.cc | 12 +-- .../v1/internal/notebook_connection_impl.h | 12 +-- .../persistent_resource_connection_impl.cc | 8 +- .../persistent_resource_connection_impl.h | 8 +- .../v1/internal/pipeline_connection_impl.cc | 8 +- .../v1/internal/pipeline_connection_impl.h | 8 +- .../v1/internal/schedule_connection_impl.cc | 2 +- .../v1/internal/schedule_connection_impl.h | 2 +- .../specialist_pool_connection_impl.cc | 6 +- .../specialist_pool_connection_impl.h | 6 +- .../internal/tensorboard_connection_impl.cc | 12 +-- .../v1/internal/tensorboard_connection_impl.h | 12 +-- .../v1/internal/vizier_connection_impl.cc | 4 +- .../v1/internal/vizier_connection_impl.h | 4 +- .../alloy_db_admin_connection_impl.cc | 34 ++++---- .../internal/alloy_db_admin_connection_impl.h | 34 ++++---- .../internal/api_gateway_connection_impl.cc | 18 ++--- .../v1/internal/api_gateway_connection_impl.h | 18 ++--- .../v2/internal/api_keys_connection_impl.cc | 8 +- .../v2/internal/api_keys_connection_impl.h | 8 +- .../internal/applications_connection_impl.cc | 6 +- .../internal/applications_connection_impl.h | 6 +- .../domain_mappings_connection_impl.cc | 6 +- .../domain_mappings_connection_impl.h | 6 +- .../v1/internal/instances_connection_impl.cc | 4 +- .../v1/internal/instances_connection_impl.h | 4 +- .../v1/internal/services_connection_impl.cc | 4 +- .../v1/internal/services_connection_impl.h | 4 +- .../v1/internal/versions_connection_impl.cc | 6 +- .../v1/internal/versions_connection_impl.h | 6 +- .../v1/internal/app_hub_connection_impl.cc | 22 +++--- .../v1/internal/app_hub_connection_impl.h | 22 +++--- .../artifact_registry_connection_impl.cc | 14 ++-- .../artifact_registry_connection_impl.h | 14 ++-- .../v1/internal/asset_connection_impl.cc | 4 +- .../asset/v1/internal/asset_connection_impl.h | 4 +- .../assured_workloads_connection_impl.cc | 2 +- .../assured_workloads_connection_impl.h | 2 +- .../v1/internal/auto_ml_connection_impl.cc | 18 ++--- .../v1/internal/auto_ml_connection_impl.h | 18 ++--- .../v1/internal/prediction_connection_impl.cc | 2 +- .../v1/internal/prediction_connection_impl.h | 2 +- .../v1/internal/backup_dr_connection_impl.cc | 4 +- .../v1/internal/backup_dr_connection_impl.h | 4 +- .../bare_metal_solution_connection_impl.cc | 32 ++++---- .../bare_metal_solution_connection_impl.h | 32 ++++---- .../v1/internal/batch_connection_impl.cc | 2 +- .../batch/v1/internal/batch_connection_impl.h | 2 +- .../app_connections_connection_impl.cc | 6 +- .../app_connections_connection_impl.h | 6 +- .../app_connectors_connection_impl.cc | 8 +- .../internal/app_connectors_connection_impl.h | 8 +- .../internal/app_gateways_connection_impl.cc | 4 +- .../internal/app_gateways_connection_impl.h | 4 +- .../internal/analytics_hub_connection_impl.cc | 6 +- .../internal/analytics_hub_connection_impl.h | 6 +- ...bigtable_instance_admin_connection_impl.cc | 12 +-- .../bigtable_instance_admin_connection_impl.h | 12 +-- .../bigtable_table_admin_connection_impl.cc | 14 ++-- .../bigtable_table_admin_connection_impl.h | 14 ++-- .../certificate_manager_connection_impl.cc | 34 ++++---- .../certificate_manager_connection_impl.h | 34 ++++---- .../internal/cloud_channel_connection_impl.cc | 22 +++--- .../internal/cloud_channel_connection_impl.h | 22 +++--- .../cloud_channel_reports_connection_impl.cc | 2 +- .../cloud_channel_reports_connection_impl.h | 2 +- .../internal/cloud_build_connection_impl.cc | 14 ++-- .../v1/internal/cloud_build_connection_impl.h | 14 ++-- .../repository_manager_connection_impl.cc | 12 +-- .../repository_manager_connection_impl.h | 12 +-- .../consumer_procurement_connection_impl.cc | 2 +- .../consumer_procurement_connection_impl.h | 2 +- .../internal/environments_connection_impl.cc | 12 +-- .../internal/environments_connection_impl.h | 12 +-- .../v1/internal/config_connection_impl.cc | 14 ++-- .../v1/internal/config_connection_impl.h | 14 ++-- .../v1/internal/connectors_connection_impl.cc | 8 +- .../v1/internal/connectors_connection_impl.h | 8 +- ...contact_center_insights_connection_impl.cc | 20 ++--- .../contact_center_insights_connection_impl.h | 20 ++--- .../v1/internal/pipeline_connection_impl.cc | 2 +- .../v1/internal/pipeline_connection_impl.h | 2 +- .../v1/internal/lineage_connection_impl.cc | 4 +- .../v1/internal/lineage_connection_impl.h | 4 +- .../internal/data_catalog_connection_impl.cc | 4 +- .../internal/data_catalog_connection_impl.h | 4 +- .../internal/data_fusion_connection_impl.cc | 8 +- .../v1/internal/data_fusion_connection_impl.h | 8 +- .../data_migration_connection_impl.cc | 46 +++++------ .../internal/data_migration_connection_impl.h | 46 +++++------ .../v1/internal/catalog_connection_impl.cc | 18 ++--- .../v1/internal/catalog_connection_impl.h | 18 ++--- .../v1/internal/data_scan_connection_impl.cc | 6 +- .../v1/internal/data_scan_connection_impl.h | 6 +- .../internal/data_taxonomy_connection_impl.cc | 18 ++--- .../internal/data_taxonomy_connection_impl.h | 18 ++--- .../v1/internal/dataplex_connection_impl.cc | 30 +++---- .../v1/internal/dataplex_connection_impl.h | 30 +++---- .../batch_controller_connection_impl.cc | 2 +- .../batch_controller_connection_impl.h | 2 +- .../cluster_controller_connection_impl.cc | 12 +-- .../cluster_controller_connection_impl.h | 12 +-- .../job_controller_connection_impl.cc | 2 +- .../internal/job_controller_connection_impl.h | 2 +- .../node_group_controller_connection_impl.cc | 4 +- .../node_group_controller_connection_impl.h | 4 +- .../session_controller_connection_impl.cc | 6 +- .../session_controller_connection_impl.h | 6 +- .../workflow_template_connection_impl.cc | 4 +- .../workflow_template_connection_impl.h | 4 +- .../datastore_admin_connection_impl.cc | 8 +- .../datastore_admin_connection_impl.h | 8 +- .../v1/internal/datastream_connection_impl.cc | 20 ++--- .../v1/internal/datastream_connection_impl.h | 20 ++--- .../internal/cloud_deploy_connection_impl.cc | 28 +++---- .../internal/cloud_deploy_connection_impl.h | 28 +++---- .../internal/agents_connection_impl.cc | 4 +- .../internal/agents_connection_impl.h | 4 +- .../internal/entity_types_connection_impl.cc | 4 +- .../internal/entity_types_connection_impl.h | 4 +- .../internal/environments_connection_impl.cc | 8 +- .../internal/environments_connection_impl.h | 8 +- .../internal/flows_connection_impl.cc | 6 +- .../internal/flows_connection_impl.h | 6 +- .../internal/intents_connection_impl.cc | 4 +- .../internal/intents_connection_impl.h | 4 +- .../internal/test_cases_connection_impl.cc | 8 +- .../internal/test_cases_connection_impl.h | 8 +- .../internal/versions_connection_impl.cc | 4 +- .../internal/versions_connection_impl.h | 4 +- .../internal/agents_connection_impl.cc | 8 +- .../internal/agents_connection_impl.h | 8 +- .../conversation_datasets_connection_impl.cc | 6 +- .../conversation_datasets_connection_impl.h | 6 +- .../conversation_models_connection_impl.cc | 10 +-- .../conversation_models_connection_impl.h | 10 +-- .../conversation_profiles_connection_impl.cc | 4 +- .../conversation_profiles_connection_impl.h | 4 +- .../internal/documents_connection_impl.cc | 12 +-- .../internal/documents_connection_impl.h | 12 +-- .../internal/entity_types_connection_impl.cc | 10 +-- .../internal/entity_types_connection_impl.h | 10 +-- .../internal/intents_connection_impl.cc | 4 +- .../internal/intents_connection_impl.h | 4 +- .../v1/internal/completion_connection_impl.cc | 4 +- .../v1/internal/completion_connection_impl.h | 4 +- .../v1/internal/data_store_connection_impl.cc | 4 +- .../v1/internal/data_store_connection_impl.h | 4 +- .../v1/internal/document_connection_impl.cc | 4 +- .../v1/internal/document_connection_impl.h | 4 +- .../v1/internal/engine_connection_impl.cc | 4 +- .../v1/internal/engine_connection_impl.h | 4 +- .../v1/internal/project_connection_impl.cc | 2 +- .../v1/internal/project_connection_impl.h | 2 +- .../v1/internal/schema_connection_impl.cc | 6 +- .../v1/internal/schema_connection_impl.h | 6 +- .../site_search_engine_connection_impl.cc | 16 ++-- .../site_search_engine_connection_impl.h | 16 ++-- .../v1/internal/user_event_connection_impl.cc | 2 +- .../v1/internal/user_event_connection_impl.h | 2 +- .../document_processor_connection_impl.cc | 22 +++--- .../document_processor_connection_impl.h | 22 +++--- .../v1/internal/domains_connection_impl.cc | 16 ++-- .../v1/internal/domains_connection_impl.h | 16 ++-- .../edge_container_connection_impl.cc | 18 ++--- .../internal/edge_container_connection_impl.h | 18 ++--- .../internal/edge_network_connection_impl.cc | 20 ++--- .../internal/edge_network_connection_impl.h | 20 ++--- .../v1/internal/eventarc_connection_impl.cc | 16 ++-- .../v1/internal/eventarc_connection_impl.h | 16 ++-- ...cloud_filestore_manager_connection_impl.cc | 22 +++--- .../cloud_filestore_manager_connection_impl.h | 22 +++--- .../cloud_functions_connection_impl.cc | 6 +- .../cloud_functions_connection_impl.h | 6 +- .../v2/internal/function_connection_impl.cc | 6 +- .../v2/internal/function_connection_impl.h | 6 +- .../backup_for_gke_connection_impl.cc | 24 +++--- .../internal/backup_for_gke_connection_impl.h | 24 +++--- .../v1/internal/gke_hub_connection_impl.cc | 12 +-- .../v1/internal/gke_hub_connection_impl.h | 12 +-- .../attached_clusters_connection_impl.cc | 8 +- .../attached_clusters_connection_impl.h | 8 +- .../internal/aws_clusters_connection_impl.cc | 14 ++-- .../internal/aws_clusters_connection_impl.h | 14 ++-- .../azure_clusters_connection_impl.cc | 16 ++-- .../internal/azure_clusters_connection_impl.h | 16 ++-- .../v2/internal/policies_connection_impl.cc | 6 +- .../v2/internal/policies_connection_impl.h | 6 +- .../ids/v1/internal/ids_connection_impl.cc | 4 +- .../ids/v1/internal/ids_connection_impl.h | 4 +- .../v1/internal/autokey_connection_impl.cc | 2 +- .../kms/v1/internal/autokey_connection_impl.h | 2 +- .../config_service_v2_connection_impl.cc | 10 +-- .../config_service_v2_connection_impl.h | 10 +-- .../managed_identities_connection_impl.cc | 14 ++-- .../managed_identities_connection_impl.h | 14 ++-- .../internal/managed_kafka_connection_impl.cc | 6 +- .../internal/managed_kafka_connection_impl.h | 6 +- .../cloud_memcache_connection_impl.cc | 12 +-- .../internal/cloud_memcache_connection_impl.h | 12 +-- .../dataproc_metastore_connection_impl.cc | 24 +++--- .../dataproc_metastore_connection_impl.h | 24 +++--- ...oc_metastore_federation_connection_impl.cc | 6 +- ...roc_metastore_federation_connection_impl.h | 6 +- .../migration_center_connection_impl.cc | 46 +++++------ .../migration_center_connection_impl.h | 46 +++++------ .../metrics_scopes_connection_impl.cc | 4 +- .../internal/metrics_scopes_connection_impl.h | 4 +- .../v1/internal/net_app_connection_impl.cc | 64 +++++++-------- .../v1/internal/net_app_connection_impl.h | 64 +++++++-------- .../v1/internal/hub_connection_impl.cc | 16 ++-- .../v1/internal/hub_connection_impl.h | 16 ++-- .../policy_based_routing_connection_impl.cc | 4 +- .../policy_based_routing_connection_impl.h | 4 +- .../internal/reachability_connection_impl.cc | 8 +- .../internal/reachability_connection_impl.h | 8 +- .../network_security_connection_impl.cc | 18 ++--- .../network_security_connection_impl.h | 18 ++--- .../v1/internal/dep_connection_impl.cc | 12 +-- .../v1/internal/dep_connection_impl.h | 12 +-- .../network_services_connection_impl.cc | 46 +++++------ .../network_services_connection_impl.h | 46 +++++------ .../managed_notebook_connection_impl.cc | 20 ++--- .../managed_notebook_connection_impl.h | 20 ++--- .../v1/internal/notebook_connection_impl.cc | 46 +++++------ .../v1/internal/notebook_connection_impl.h | 46 +++++------ .../v2/internal/notebook_connection_impl.cc | 18 ++--- .../v2/internal/notebook_connection_impl.h | 18 ++--- .../internal/fleet_routing_connection_impl.cc | 2 +- .../internal/fleet_routing_connection_impl.h | 2 +- .../os_config_zonal_connection_impl.cc | 6 +- .../os_config_zonal_connection_impl.h | 6 +- .../v1/internal/simulator_connection_impl.cc | 2 +- .../v1/internal/simulator_connection_impl.h | 2 +- .../certificate_authority_connection_impl.cc | 28 +++---- .../certificate_authority_connection_impl.h | 28 +++---- .../internal/admin_connection_impl.cc | 2 +- .../internal/admin_connection_impl.h | 2 +- ...id_migration_assessment_connection_impl.cc | 14 ++-- ...pid_migration_assessment_connection_impl.h | 14 ++-- .../cloud_redis_cluster_connection_impl.cc | 6 +- .../cloud_redis_cluster_connection_impl.h | 6 +- .../internal/cloud_redis_connection_impl.cc | 16 ++-- .../v1/internal/cloud_redis_connection_impl.h | 16 ++-- .../v3/internal/folders_connection_impl.cc | 10 +-- .../v3/internal/folders_connection_impl.h | 10 +-- .../v3/internal/projects_connection_impl.cc | 10 +-- .../v3/internal/projects_connection_impl.h | 10 +-- .../internal/tag_bindings_connection_impl.cc | 4 +- .../internal/tag_bindings_connection_impl.h | 4 +- .../v3/internal/tag_holds_connection_impl.cc | 4 +- .../v3/internal/tag_holds_connection_impl.h | 4 +- .../v3/internal/tag_keys_connection_impl.cc | 6 +- .../v3/internal/tag_keys_connection_impl.h | 6 +- .../v3/internal/tag_values_connection_impl.cc | 6 +- .../v3/internal/tag_values_connection_impl.h | 6 +- .../v2/internal/analytics_connection_impl.cc | 2 +- .../v2/internal/analytics_connection_impl.h | 2 +- .../v2/internal/completion_connection_impl.cc | 2 +- .../v2/internal/completion_connection_impl.h | 2 +- .../v2/internal/model_connection_impl.cc | 4 +- .../v2/internal/model_connection_impl.h | 4 +- .../v2/internal/product_connection_impl.cc | 14 ++-- .../v2/internal/product_connection_impl.h | 14 ++-- .../v2/internal/user_event_connection_impl.cc | 6 +- .../v2/internal/user_event_connection_impl.h | 6 +- .../v2/internal/executions_connection_impl.cc | 4 +- .../v2/internal/executions_connection_impl.h | 4 +- .../run/v2/internal/jobs_connection_impl.cc | 8 +- .../run/v2/internal/jobs_connection_impl.h | 8 +- .../v2/internal/revisions_connection_impl.cc | 2 +- .../v2/internal/revisions_connection_impl.h | 2 +- .../v2/internal/services_connection_impl.cc | 6 +- .../v2/internal/services_connection_impl.h | 6 +- .../secure_source_manager_connection_impl.cc | 8 +- .../secure_source_manager_connection_impl.h | 8 +- .../security_center_connection_impl.cc | 4 +- .../security_center_connection_impl.h | 4 +- .../security_center_connection_impl.cc | 2 +- .../security_center_connection_impl.h | 2 +- .../service_manager_connection_impl.cc | 10 +-- .../service_manager_connection_impl.h | 10 +-- .../internal/service_usage_connection_impl.cc | 6 +- .../internal/service_usage_connection_impl.h | 6 +- .../internal/cloud_shell_connection_impl.cc | 8 +- .../v1/internal/cloud_shell_connection_impl.h | 8 +- .../database_admin_connection_impl.cc | 12 +-- .../internal/database_admin_connection_impl.h | 12 +-- .../instance_admin_connection_impl.cc | 12 +-- .../internal/instance_admin_connection_impl.h | 12 +-- .../v1/internal/speech_connection_impl.cc | 2 +- .../v1/internal/speech_connection_impl.h | 2 +- .../v2/internal/speech_connection_impl.cc | 26 +++---- .../v2/internal/speech_connection_impl.h | 26 +++---- .../storage_control_connection_impl.cc | 2 +- .../storage_control_connection_impl.h | 2 +- .../storage_transfer_connection_impl.cc | 2 +- .../storage_transfer_connection_impl.h | 2 +- .../talent/v4/internal/job_connection_impl.cc | 6 +- .../talent/v4/internal/job_connection_impl.h | 6 +- .../telco_automation_connection_impl.cc | 8 +- .../telco_automation_connection_impl.h | 8 +- .../tpu/v1/internal/tpu_connection_impl.cc | 10 +-- .../tpu/v1/internal/tpu_connection_impl.h | 10 +-- .../tpu/v2/internal/tpu_connection_impl.cc | 10 +-- .../tpu/v2/internal/tpu_connection_impl.h | 10 +-- .../internal/translation_connection_impl.cc | 8 +- .../v3/internal/translation_connection_impl.h | 8 +- .../v1/internal/livestream_connection_impl.cc | 22 +++--- .../v1/internal/livestream_connection_impl.h | 22 +++--- .../video_stitcher_connection_impl.cc | 24 +++--- .../internal/video_stitcher_connection_impl.h | 24 +++--- .../video_intelligence_connection_impl.cc | 2 +- .../video_intelligence_connection_impl.h | 2 +- .../image_annotator_connection_impl.cc | 4 +- .../image_annotator_connection_impl.h | 4 +- .../product_search_connection_impl.cc | 4 +- .../internal/product_search_connection_impl.h | 4 +- .../internal/vm_migration_connection_impl.cc | 54 ++++++------- .../internal/vm_migration_connection_impl.h | 54 ++++++------- .../internal/vmware_engine_connection_impl.cc | 78 +++++++++---------- .../internal/vmware_engine_connection_impl.h | 78 +++++++++---------- .../v1/internal/vpc_access_connection_impl.cc | 4 +- .../v1/internal/vpc_access_connection_impl.h | 4 +- .../v1/internal/web_risk_connection_impl.cc | 2 +- .../v1/internal/web_risk_connection_impl.h | 2 +- .../v1/internal/workflows_connection_impl.cc | 6 +- .../v1/internal/workflows_connection_impl.h | 6 +- .../internal/workstations_connection_impl.cc | 22 +++--- .../internal/workstations_connection_impl.h | 22 +++--- 361 files changed, 2075 insertions(+), 2075 deletions(-) diff --git a/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.cc b/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.cc index 2e27b98ddb286..7f964360c3b98 100644 --- a/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.cc +++ b/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.cc @@ -128,7 +128,7 @@ GoldenThingAdminConnectionImpl::CreateDatabase(google::test::admin::database::v1 StatusOr GoldenThingAdminConnectionImpl::CreateDatabase(ExperimentalTag, - NoAwaitlTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) { + NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( retry_policy(*current), backoff_policy(*current), @@ -220,7 +220,7 @@ GoldenThingAdminConnectionImpl::UpdateDatabaseDdl(google::test::admin::database: StatusOr GoldenThingAdminConnectionImpl::UpdateDatabaseDdl(ExperimentalTag, - NoAwaitlTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) { + NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( retry_policy(*current), backoff_policy(*current), @@ -364,7 +364,7 @@ GoldenThingAdminConnectionImpl::CreateBackup(google::test::admin::database::v1:: StatusOr GoldenThingAdminConnectionImpl::CreateBackup(ExperimentalTag, - NoAwaitlTag, google::test::admin::database::v1::CreateBackupRequest const& request) { + NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( retry_policy(*current), backoff_policy(*current), @@ -510,7 +510,7 @@ GoldenThingAdminConnectionImpl::RestoreDatabase(google::test::admin::database::v StatusOr GoldenThingAdminConnectionImpl::RestoreDatabase(ExperimentalTag, - NoAwaitlTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { + NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( retry_policy(*current), backoff_policy(*current), @@ -645,7 +645,7 @@ GoldenThingAdminConnectionImpl::LongRunningWithoutRouting(google::test::admin::d StatusOr GoldenThingAdminConnectionImpl::LongRunningWithoutRouting(ExperimentalTag, - NoAwaitlTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { + NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( retry_policy(*current), backoff_policy(*current), diff --git a/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.h b/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.h index 9d5d13eebdf00..9ce1c1f9b1c86 100644 --- a/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.h +++ b/generator/integration_tests/golden/v1/internal/golden_thing_admin_connection_impl.h @@ -59,7 +59,7 @@ class GoldenThingAdminConnectionImpl CreateDatabase(google::test::admin::database::v1::CreateDatabaseRequest const& request) override; StatusOr - CreateDatabase(ExperimentalTag, NoAwaitlTag, + CreateDatabase(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::CreateDatabaseRequest const& request) override; future> @@ -73,7 +73,7 @@ class GoldenThingAdminConnectionImpl UpdateDatabaseDdl(google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; StatusOr - UpdateDatabaseDdl(ExperimentalTag, NoAwaitlTag, + UpdateDatabaseDdl(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; future> @@ -99,7 +99,7 @@ class GoldenThingAdminConnectionImpl CreateBackup(google::test::admin::database::v1::CreateBackupRequest const& request) override; StatusOr - CreateBackup(ExperimentalTag, NoAwaitlTag, + CreateBackup(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::CreateBackupRequest const& request) override; future> @@ -122,7 +122,7 @@ class GoldenThingAdminConnectionImpl RestoreDatabase(google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; StatusOr - RestoreDatabase(ExperimentalTag, NoAwaitlTag, + RestoreDatabase(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; future> @@ -139,7 +139,7 @@ class GoldenThingAdminConnectionImpl LongRunningWithoutRouting(google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; StatusOr - LongRunningWithoutRouting(ExperimentalTag, NoAwaitlTag, + LongRunningWithoutRouting(ExperimentalTag, NoAwaitTag, google::test::admin::database::v1::RestoreDatabaseRequest const& request) override; future> diff --git a/generator/integration_tests/golden/v1/internal/request_id_connection_impl.cc b/generator/integration_tests/golden/v1/internal/request_id_connection_impl.cc index 5c1938d4ea3bb..89a6341ef2477 100644 --- a/generator/integration_tests/golden/v1/internal/request_id_connection_impl.cc +++ b/generator/integration_tests/golden/v1/internal/request_id_connection_impl.cc @@ -120,7 +120,7 @@ RequestIdServiceConnectionImpl::RenameFoo(google::test::requestid::v1::RenameFoo StatusOr RequestIdServiceConnectionImpl::RenameFoo(ExperimentalTag, - NoAwaitlTag, google::test::requestid::v1::RenameFooRequest const& request) { + NoAwaitTag, google::test::requestid::v1::RenameFooRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( retry_policy(*current), backoff_policy(*current), diff --git a/generator/integration_tests/golden/v1/internal/request_id_connection_impl.h b/generator/integration_tests/golden/v1/internal/request_id_connection_impl.h index 281b99fa6c078..f8e8df54efd51 100644 --- a/generator/integration_tests/golden/v1/internal/request_id_connection_impl.h +++ b/generator/integration_tests/golden/v1/internal/request_id_connection_impl.h @@ -60,7 +60,7 @@ class RequestIdServiceConnectionImpl RenameFoo(google::test::requestid::v1::RenameFooRequest const& request) override; StatusOr - RenameFoo(ExperimentalTag, NoAwaitlTag, + RenameFoo(ExperimentalTag, NoAwaitTag, google::test::requestid::v1::RenameFooRequest const& request) override; future> diff --git a/generator/internal/connection_impl_generator.cc b/generator/internal/connection_impl_generator.cc index af0512d299268..1daa3ecf2ca84 100644 --- a/generator/internal/connection_impl_generator.cc +++ b/generator/internal/connection_impl_generator.cc @@ -284,7 +284,7 @@ std::string ConnectionImplGenerator::MethodDeclaration( $method_name$($request_type$ const& request) override; StatusOr<$longrunning_operation_type$> - $method_name$(ExperimentalTag, NoAwaitlTag, + $method_name$(ExperimentalTag, NoAwaitTag, $request_type$ const& request) override; future @@ -298,7 +298,7 @@ std::string ConnectionImplGenerator::MethodDeclaration( $method_name$($request_type$ const& request) override; StatusOr<$longrunning_operation_type$> - $method_name$(ExperimentalTag, NoAwaitlTag, + $method_name$(ExperimentalTag, NoAwaitTag, $request_type$ const& request) override; future> @@ -491,7 +491,7 @@ StreamRange<$range_output_type$> std::string start_function = absl::StrCat("StatusOr<$longrunning_operation_type$>", R"""( $connection_class_name$Impl::$method_name$(ExperimentalTag, - NoAwaitlTag, $request_type$ const& request) { + NoAwaitTag, $request_type$ const& request) { auto current = google::cloud::internal::SaveCurrentOptions();)""", R"""( return google::cloud::internal::RetryLoop( diff --git a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.cc b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.cc index d8c07ec478ec4..8e68f6bbd10cd 100644 --- a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.cc +++ b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.cc @@ -168,7 +168,7 @@ AccessContextManagerConnectionImpl::CreateAccessPolicy( StatusOr AccessContextManagerConnectionImpl::CreateAccessPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::AccessPolicy const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -262,7 +262,7 @@ AccessContextManagerConnectionImpl::UpdateAccessPolicy( StatusOr AccessContextManagerConnectionImpl::UpdateAccessPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::UpdateAccessPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -360,7 +360,7 @@ AccessContextManagerConnectionImpl::DeleteAccessPolicy( StatusOr AccessContextManagerConnectionImpl::DeleteAccessPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::DeleteAccessPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -512,7 +512,7 @@ AccessContextManagerConnectionImpl::CreateAccessLevel( StatusOr AccessContextManagerConnectionImpl::CreateAccessLevel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::CreateAccessLevelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -607,7 +607,7 @@ AccessContextManagerConnectionImpl::UpdateAccessLevel( StatusOr AccessContextManagerConnectionImpl::UpdateAccessLevel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::UpdateAccessLevelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -705,7 +705,7 @@ AccessContextManagerConnectionImpl::DeleteAccessLevel( StatusOr AccessContextManagerConnectionImpl::DeleteAccessLevel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::DeleteAccessLevelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -806,7 +806,7 @@ AccessContextManagerConnectionImpl::ReplaceAccessLevels( StatusOr AccessContextManagerConnectionImpl::ReplaceAccessLevels( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: ReplaceAccessLevelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -958,7 +958,7 @@ AccessContextManagerConnectionImpl::CreateServicePerimeter( StatusOr AccessContextManagerConnectionImpl::CreateServicePerimeter( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateServicePerimeterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1053,7 +1053,7 @@ AccessContextManagerConnectionImpl::UpdateServicePerimeter( StatusOr AccessContextManagerConnectionImpl::UpdateServicePerimeter( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateServicePerimeterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1151,7 +1151,7 @@ AccessContextManagerConnectionImpl::DeleteServicePerimeter( StatusOr AccessContextManagerConnectionImpl::DeleteServicePerimeter( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteServicePerimeterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1253,7 +1253,7 @@ AccessContextManagerConnectionImpl::ReplaceServicePerimeters( StatusOr AccessContextManagerConnectionImpl::ReplaceServicePerimeters( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: ReplaceServicePerimetersRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1355,7 +1355,7 @@ AccessContextManagerConnectionImpl::CommitServicePerimeters( StatusOr AccessContextManagerConnectionImpl::CommitServicePerimeters( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CommitServicePerimetersRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1510,7 +1510,7 @@ AccessContextManagerConnectionImpl::CreateGcpUserAccessBinding( StatusOr AccessContextManagerConnectionImpl::CreateGcpUserAccessBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateGcpUserAccessBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1607,7 +1607,7 @@ AccessContextManagerConnectionImpl::UpdateGcpUserAccessBinding( StatusOr AccessContextManagerConnectionImpl::UpdateGcpUserAccessBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateGcpUserAccessBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1706,7 +1706,7 @@ AccessContextManagerConnectionImpl::DeleteGcpUserAccessBinding( StatusOr AccessContextManagerConnectionImpl::DeleteGcpUserAccessBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteGcpUserAccessBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.h b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.h index 9732eeba06e5a..61c217c528942 100644 --- a/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.h +++ b/google/cloud/accesscontextmanager/v1/internal/access_context_manager_connection_impl.h @@ -70,7 +70,7 @@ class AccessContextManagerConnectionImpl override; StatusOr CreateAccessPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1::AccessPolicy const& request) override; @@ -83,7 +83,7 @@ class AccessContextManagerConnectionImpl UpdateAccessPolicyRequest const& request) override; StatusOr UpdateAccessPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateAccessPolicyRequest const& request) override; @@ -97,7 +97,7 @@ class AccessContextManagerConnectionImpl DeleteAccessPolicyRequest const& request) override; StatusOr DeleteAccessPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteAccessPolicyRequest const& request) override; @@ -121,7 +121,7 @@ class AccessContextManagerConnectionImpl CreateAccessLevelRequest const& request) override; StatusOr CreateAccessLevel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateAccessLevelRequest const& request) override; @@ -134,7 +134,7 @@ class AccessContextManagerConnectionImpl UpdateAccessLevelRequest const& request) override; StatusOr UpdateAccessLevel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateAccessLevelRequest const& request) override; @@ -148,7 +148,7 @@ class AccessContextManagerConnectionImpl DeleteAccessLevelRequest const& request) override; StatusOr DeleteAccessLevel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteAccessLevelRequest const& request) override; @@ -163,7 +163,7 @@ class AccessContextManagerConnectionImpl ReplaceAccessLevelsRequest const& request) override; StatusOr ReplaceAccessLevels( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: ReplaceAccessLevelsRequest const& request) override; @@ -187,7 +187,7 @@ class AccessContextManagerConnectionImpl CreateServicePerimeterRequest const& request) override; StatusOr CreateServicePerimeter( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateServicePerimeterRequest const& request) override; @@ -202,7 +202,7 @@ class AccessContextManagerConnectionImpl UpdateServicePerimeterRequest const& request) override; StatusOr UpdateServicePerimeter( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateServicePerimeterRequest const& request) override; @@ -218,7 +218,7 @@ class AccessContextManagerConnectionImpl DeleteServicePerimeterRequest const& request) override; StatusOr DeleteServicePerimeter( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteServicePerimeterRequest const& request) override; @@ -235,7 +235,7 @@ class AccessContextManagerConnectionImpl ReplaceServicePerimetersRequest const& request) override; StatusOr ReplaceServicePerimeters( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: ReplaceServicePerimetersRequest const& request) override; @@ -252,7 +252,7 @@ class AccessContextManagerConnectionImpl CommitServicePerimetersRequest const& request) override; StatusOr CommitServicePerimeters( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CommitServicePerimetersRequest const& request) override; @@ -279,7 +279,7 @@ class AccessContextManagerConnectionImpl CreateGcpUserAccessBindingRequest const& request) override; StatusOr CreateGcpUserAccessBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: CreateGcpUserAccessBindingRequest const& request) override; @@ -296,7 +296,7 @@ class AccessContextManagerConnectionImpl UpdateGcpUserAccessBindingRequest const& request) override; StatusOr UpdateGcpUserAccessBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: UpdateGcpUserAccessBindingRequest const& request) override; @@ -313,7 +313,7 @@ class AccessContextManagerConnectionImpl DeleteGcpUserAccessBindingRequest const& request) override; StatusOr DeleteGcpUserAccessBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::identity::accesscontextmanager::v1:: DeleteGcpUserAccessBindingRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/dataset_connection_impl.cc b/google/cloud/aiplatform/v1/internal/dataset_connection_impl.cc index ebd4d8b512ef8..690d6a6aeb8c5 100644 --- a/google/cloud/aiplatform/v1/internal/dataset_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/dataset_connection_impl.cc @@ -107,7 +107,7 @@ DatasetServiceConnectionImpl::CreateDataset( StatusOr DatasetServiceConnectionImpl::CreateDataset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDatasetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -262,7 +262,7 @@ DatasetServiceConnectionImpl::DeleteDataset( StatusOr DatasetServiceConnectionImpl::DeleteDataset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDatasetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -355,7 +355,7 @@ DatasetServiceConnectionImpl::ImportData( StatusOr DatasetServiceConnectionImpl::ImportData( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ImportDataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -447,7 +447,7 @@ DatasetServiceConnectionImpl::ExportData( StatusOr DatasetServiceConnectionImpl::ExportData( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportDataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -540,7 +540,7 @@ DatasetServiceConnectionImpl::CreateDatasetVersion( StatusOr DatasetServiceConnectionImpl::CreateDatasetVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -649,7 +649,7 @@ DatasetServiceConnectionImpl::DeleteDatasetVersion( StatusOr DatasetServiceConnectionImpl::DeleteDatasetVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -794,7 +794,7 @@ DatasetServiceConnectionImpl::RestoreDatasetVersion( StatusOr DatasetServiceConnectionImpl::RestoreDatasetVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -991,7 +991,7 @@ DatasetServiceConnectionImpl::DeleteSavedQuery( StatusOr DatasetServiceConnectionImpl::DeleteSavedQuery( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/aiplatform/v1/internal/dataset_connection_impl.h b/google/cloud/aiplatform/v1/internal/dataset_connection_impl.h index 5d19f440dedd3..20c264bf3a74b 100644 --- a/google/cloud/aiplatform/v1/internal/dataset_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/dataset_connection_impl.h @@ -57,7 +57,7 @@ class DatasetServiceConnectionImpl override; StatusOr CreateDataset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDatasetRequest const& request) override; @@ -80,7 +80,7 @@ class DatasetServiceConnectionImpl request) override; StatusOr DeleteDataset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDatasetRequest const& request) override; @@ -93,7 +93,7 @@ class DatasetServiceConnectionImpl google::cloud::aiplatform::v1::ImportDataRequest const& request) override; StatusOr ImportData( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ImportDataRequest const& request) override; future> @@ -105,7 +105,7 @@ class DatasetServiceConnectionImpl google::cloud::aiplatform::v1::ExportDataRequest const& request) override; StatusOr ExportData( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportDataRequest const& request) override; future> @@ -118,7 +118,7 @@ class DatasetServiceConnectionImpl override; StatusOr CreateDatasetVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDatasetVersionRequest const& request) override; @@ -137,7 +137,7 @@ class DatasetServiceConnectionImpl override; StatusOr DeleteDatasetVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDatasetVersionRequest const& request) override; @@ -160,7 +160,7 @@ class DatasetServiceConnectionImpl request) override; StatusOr RestoreDatasetVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::RestoreDatasetVersionRequest const& request) override; @@ -183,7 +183,7 @@ class DatasetServiceConnectionImpl request) override; StatusOr DeleteSavedQuery( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteSavedQueryRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.cc b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.cc index 3a66f74ce3a90..746acdf990612 100644 --- a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.cc @@ -118,7 +118,7 @@ DeploymentResourcePoolServiceConnectionImpl::CreateDeploymentResourcePool( StatusOr DeploymentResourcePoolServiceConnectionImpl::CreateDeploymentResourcePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -268,7 +268,7 @@ DeploymentResourcePoolServiceConnectionImpl::DeleteDeploymentResourcePool( StatusOr DeploymentResourcePoolServiceConnectionImpl::DeleteDeploymentResourcePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.h b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.h index 8d2ce1979688d..fee0b8ee7f190 100644 --- a/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/deployment_resource_pool_connection_impl.h @@ -59,7 +59,7 @@ class DeploymentResourcePoolServiceConnectionImpl request) override; StatusOr CreateDeploymentResourcePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& request) override; @@ -84,7 +84,7 @@ class DeploymentResourcePoolServiceConnectionImpl request) override; StatusOr DeleteDeploymentResourcePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.cc b/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.cc index 32b9ea2ce42a5..3b657dffedbc6 100644 --- a/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.cc @@ -108,7 +108,7 @@ EndpointServiceConnectionImpl::CreateEndpoint( StatusOr EndpointServiceConnectionImpl::CreateEndpoint( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateEndpointRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -263,7 +263,7 @@ EndpointServiceConnectionImpl::DeleteEndpoint( StatusOr EndpointServiceConnectionImpl::DeleteEndpoint( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteEndpointRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -356,7 +356,7 @@ EndpointServiceConnectionImpl::DeployModel( StatusOr EndpointServiceConnectionImpl::DeployModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeployModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -448,7 +448,7 @@ EndpointServiceConnectionImpl::UndeployModel( StatusOr EndpointServiceConnectionImpl::UndeployModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UndeployModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -542,7 +542,7 @@ EndpointServiceConnectionImpl::MutateDeployedModel( StatusOr EndpointServiceConnectionImpl::MutateDeployedModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.h b/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.h index 6af1909ca1902..80e90d8e129a7 100644 --- a/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/endpoint_connection_impl.h @@ -57,7 +57,7 @@ class EndpointServiceConnectionImpl override; StatusOr CreateEndpoint( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateEndpointRequest const& request) override; @@ -81,7 +81,7 @@ class EndpointServiceConnectionImpl request) override; StatusOr DeleteEndpoint( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteEndpointRequest const& request) override; @@ -94,7 +94,7 @@ class EndpointServiceConnectionImpl override; StatusOr DeployModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeployModelRequest const& request) override; @@ -107,7 +107,7 @@ class EndpointServiceConnectionImpl request) override; StatusOr UndeployModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UndeployModelRequest const& request) override; @@ -121,7 +121,7 @@ class EndpointServiceConnectionImpl override; StatusOr MutateDeployedModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::MutateDeployedModelRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.cc b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.cc index fd5f04e48fafc..4d77c777896f3 100644 --- a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.cc @@ -120,7 +120,7 @@ FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureOnlineStore( StatusOr FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureOnlineStore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -270,7 +270,7 @@ FeatureOnlineStoreAdminServiceConnectionImpl::UpdateFeatureOnlineStore( StatusOr FeatureOnlineStoreAdminServiceConnectionImpl::UpdateFeatureOnlineStore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -367,7 +367,7 @@ FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureOnlineStore( StatusOr FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureOnlineStore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -463,7 +463,7 @@ FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureView( StatusOr FeatureOnlineStoreAdminServiceConnectionImpl::CreateFeatureView( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -607,7 +607,7 @@ FeatureOnlineStoreAdminServiceConnectionImpl::UpdateFeatureView( StatusOr FeatureOnlineStoreAdminServiceConnectionImpl::UpdateFeatureView( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -701,7 +701,7 @@ FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureView( StatusOr FeatureOnlineStoreAdminServiceConnectionImpl::DeleteFeatureView( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.h b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.h index a67cd758ae9e5..3c7d5e2d8b1e1 100644 --- a/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/feature_online_store_admin_connection_impl.h @@ -60,7 +60,7 @@ class FeatureOnlineStoreAdminServiceConnectionImpl request) override; StatusOr CreateFeatureOnlineStore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureOnlineStoreRequest const& request) override; @@ -85,7 +85,7 @@ class FeatureOnlineStoreAdminServiceConnectionImpl request) override; StatusOr UpdateFeatureOnlineStore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureOnlineStoreRequest const& request) override; @@ -100,7 +100,7 @@ class FeatureOnlineStoreAdminServiceConnectionImpl request) override; StatusOr DeleteFeatureOnlineStore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureOnlineStoreRequest const& request) override; @@ -115,7 +115,7 @@ class FeatureOnlineStoreAdminServiceConnectionImpl override; StatusOr CreateFeatureView( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureViewRequest const& request) override; @@ -136,7 +136,7 @@ class FeatureOnlineStoreAdminServiceConnectionImpl override; StatusOr UpdateFeatureView( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureViewRequest const& request) override; @@ -150,7 +150,7 @@ class FeatureOnlineStoreAdminServiceConnectionImpl override; StatusOr DeleteFeatureView( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureViewRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.cc b/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.cc index 22edf6bf7dc73..8aa77194098f1 100644 --- a/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.cc @@ -113,7 +113,7 @@ FeatureRegistryServiceConnectionImpl::CreateFeatureGroup( StatusOr FeatureRegistryServiceConnectionImpl::CreateFeatureGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -258,7 +258,7 @@ FeatureRegistryServiceConnectionImpl::UpdateFeatureGroup( StatusOr FeatureRegistryServiceConnectionImpl::UpdateFeatureGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -352,7 +352,7 @@ FeatureRegistryServiceConnectionImpl::DeleteFeatureGroup( StatusOr FeatureRegistryServiceConnectionImpl::DeleteFeatureGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -445,7 +445,7 @@ FeatureRegistryServiceConnectionImpl::CreateFeature( StatusOr FeatureRegistryServiceConnectionImpl::CreateFeature( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -586,7 +586,7 @@ FeatureRegistryServiceConnectionImpl::UpdateFeature( StatusOr FeatureRegistryServiceConnectionImpl::UpdateFeature( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -678,7 +678,7 @@ FeatureRegistryServiceConnectionImpl::DeleteFeature( StatusOr FeatureRegistryServiceConnectionImpl::DeleteFeature( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.h b/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.h index ec53976a03cd1..85ad239217d73 100644 --- a/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/feature_registry_connection_impl.h @@ -58,7 +58,7 @@ class FeatureRegistryServiceConnectionImpl override; StatusOr CreateFeatureGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureGroupRequest const& request) override; @@ -79,7 +79,7 @@ class FeatureRegistryServiceConnectionImpl override; StatusOr UpdateFeatureGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureGroupRequest const& request) override; @@ -93,7 +93,7 @@ class FeatureRegistryServiceConnectionImpl override; StatusOr DeleteFeatureGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureGroupRequest const& request) override; @@ -106,7 +106,7 @@ class FeatureRegistryServiceConnectionImpl override; StatusOr CreateFeature( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureRequest const& request) override; @@ -125,7 +125,7 @@ class FeatureRegistryServiceConnectionImpl override; StatusOr UpdateFeature( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeatureRequest const& request) override; @@ -138,7 +138,7 @@ class FeatureRegistryServiceConnectionImpl request) override; StatusOr DeleteFeature( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.cc b/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.cc index b3f8e8434e9d0..27d214a3f758a 100644 --- a/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.cc @@ -110,7 +110,7 @@ FeaturestoreServiceConnectionImpl::CreateFeaturestore( StatusOr FeaturestoreServiceConnectionImpl::CreateFeaturestore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -254,7 +254,7 @@ FeaturestoreServiceConnectionImpl::UpdateFeaturestore( StatusOr FeaturestoreServiceConnectionImpl::UpdateFeaturestore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -348,7 +348,7 @@ FeaturestoreServiceConnectionImpl::DeleteFeaturestore( StatusOr FeaturestoreServiceConnectionImpl::DeleteFeaturestore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -442,7 +442,7 @@ FeaturestoreServiceConnectionImpl::CreateEntityType( StatusOr FeaturestoreServiceConnectionImpl::CreateEntityType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -600,7 +600,7 @@ FeaturestoreServiceConnectionImpl::DeleteEntityType( StatusOr FeaturestoreServiceConnectionImpl::DeleteEntityType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -693,7 +693,7 @@ FeaturestoreServiceConnectionImpl::CreateFeature( StatusOr FeaturestoreServiceConnectionImpl::CreateFeature( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -786,7 +786,7 @@ FeaturestoreServiceConnectionImpl::BatchCreateFeatures( StatusOr FeaturestoreServiceConnectionImpl::BatchCreateFeatures( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -942,7 +942,7 @@ FeaturestoreServiceConnectionImpl::DeleteFeature( StatusOr FeaturestoreServiceConnectionImpl::DeleteFeature( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1036,7 +1036,7 @@ FeaturestoreServiceConnectionImpl::ImportFeatureValues( StatusOr FeaturestoreServiceConnectionImpl::ImportFeatureValues( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1131,7 +1131,7 @@ FeaturestoreServiceConnectionImpl::BatchReadFeatureValues( StatusOr FeaturestoreServiceConnectionImpl::BatchReadFeatureValues( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1226,7 +1226,7 @@ FeaturestoreServiceConnectionImpl::ExportFeatureValues( StatusOr FeaturestoreServiceConnectionImpl::ExportFeatureValues( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1320,7 +1320,7 @@ FeaturestoreServiceConnectionImpl::DeleteFeatureValues( StatusOr FeaturestoreServiceConnectionImpl::DeleteFeatureValues( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.h b/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.h index a885f2166fd2e..ce24f60db46d0 100644 --- a/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/featurestore_connection_impl.h @@ -58,7 +58,7 @@ class FeaturestoreServiceConnectionImpl override; StatusOr CreateFeaturestore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeaturestoreRequest const& request) override; @@ -79,7 +79,7 @@ class FeaturestoreServiceConnectionImpl override; StatusOr UpdateFeaturestore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateFeaturestoreRequest const& request) override; @@ -93,7 +93,7 @@ class FeaturestoreServiceConnectionImpl override; StatusOr DeleteFeaturestore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeaturestoreRequest const& request) override; @@ -106,7 +106,7 @@ class FeaturestoreServiceConnectionImpl override; StatusOr CreateEntityType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateEntityTypeRequest const& request) override; @@ -130,7 +130,7 @@ class FeaturestoreServiceConnectionImpl request) override; StatusOr DeleteEntityType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteEntityTypeRequest const& request) override; @@ -143,7 +143,7 @@ class FeaturestoreServiceConnectionImpl override; StatusOr CreateFeature( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateFeatureRequest const& request) override; @@ -157,7 +157,7 @@ class FeaturestoreServiceConnectionImpl override; StatusOr BatchCreateFeatures( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchCreateFeaturesRequest const& request) override; @@ -180,7 +180,7 @@ class FeaturestoreServiceConnectionImpl request) override; StatusOr DeleteFeature( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureRequest const& request) override; @@ -194,7 +194,7 @@ class FeaturestoreServiceConnectionImpl override; StatusOr ImportFeatureValues( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ImportFeatureValuesRequest const& request) override; @@ -209,7 +209,7 @@ class FeaturestoreServiceConnectionImpl request) override; StatusOr BatchReadFeatureValues( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchReadFeatureValuesRequest const& request) override; @@ -225,7 +225,7 @@ class FeaturestoreServiceConnectionImpl override; StatusOr ExportFeatureValues( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportFeatureValuesRequest const& request) override; @@ -239,7 +239,7 @@ class FeaturestoreServiceConnectionImpl override; StatusOr DeleteFeatureValues( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteFeatureValuesRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/index_connection_impl.cc b/google/cloud/aiplatform/v1/internal/index_connection_impl.cc index 3659d25b9d454..5609509d7e883 100644 --- a/google/cloud/aiplatform/v1/internal/index_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/index_connection_impl.cc @@ -105,7 +105,7 @@ IndexServiceConnectionImpl::CreateIndex( StatusOr IndexServiceConnectionImpl::CreateIndex( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateIndexRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -244,7 +244,7 @@ IndexServiceConnectionImpl::UpdateIndex( StatusOr IndexServiceConnectionImpl::UpdateIndex( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateIndexRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -335,7 +335,7 @@ IndexServiceConnectionImpl::DeleteIndex( StatusOr IndexServiceConnectionImpl::DeleteIndex( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteIndexRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/aiplatform/v1/internal/index_connection_impl.h b/google/cloud/aiplatform/v1/internal/index_connection_impl.h index 2c6b81ea1de76..81629a8e09ec3 100644 --- a/google/cloud/aiplatform/v1/internal/index_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/index_connection_impl.h @@ -57,7 +57,7 @@ class IndexServiceConnectionImpl override; StatusOr CreateIndex( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateIndexRequest const& request) override; @@ -76,7 +76,7 @@ class IndexServiceConnectionImpl override; StatusOr UpdateIndex( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateIndexRequest const& request) override; @@ -89,7 +89,7 @@ class IndexServiceConnectionImpl override; StatusOr DeleteIndex( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteIndexRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.cc b/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.cc index 400152c5f8ca1..e9c261b5bf397 100644 --- a/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.cc @@ -110,7 +110,7 @@ IndexEndpointServiceConnectionImpl::CreateIndexEndpoint( StatusOr IndexEndpointServiceConnectionImpl::CreateIndexEndpoint( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -269,7 +269,7 @@ IndexEndpointServiceConnectionImpl::DeleteIndexEndpoint( StatusOr IndexEndpointServiceConnectionImpl::DeleteIndexEndpoint( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -362,7 +362,7 @@ IndexEndpointServiceConnectionImpl::DeployIndex( StatusOr IndexEndpointServiceConnectionImpl::DeployIndex( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeployIndexRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -454,7 +454,7 @@ IndexEndpointServiceConnectionImpl::UndeployIndex( StatusOr IndexEndpointServiceConnectionImpl::UndeployIndex( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UndeployIndexRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -548,7 +548,7 @@ IndexEndpointServiceConnectionImpl::MutateDeployedIndex( StatusOr IndexEndpointServiceConnectionImpl::MutateDeployedIndex( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.h b/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.h index fb9b955a953f1..b5cb7aec33804 100644 --- a/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/index_endpoint_connection_impl.h @@ -58,7 +58,7 @@ class IndexEndpointServiceConnectionImpl override; StatusOr CreateIndexEndpoint( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateIndexEndpointRequest const& request) override; @@ -84,7 +84,7 @@ class IndexEndpointServiceConnectionImpl override; StatusOr DeleteIndexEndpoint( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteIndexEndpointRequest const& request) override; @@ -97,7 +97,7 @@ class IndexEndpointServiceConnectionImpl override; StatusOr DeployIndex( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeployIndexRequest const& request) override; @@ -110,7 +110,7 @@ class IndexEndpointServiceConnectionImpl request) override; StatusOr UndeployIndex( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UndeployIndexRequest const& request) override; @@ -124,7 +124,7 @@ class IndexEndpointServiceConnectionImpl override; StatusOr MutateDeployedIndex( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::MutateDeployedIndexRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/job_connection_impl.cc b/google/cloud/aiplatform/v1/internal/job_connection_impl.cc index 69c535f203418..b3d9e5724a48b 100644 --- a/google/cloud/aiplatform/v1/internal/job_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/job_connection_impl.cc @@ -170,7 +170,7 @@ JobServiceConnectionImpl::DeleteCustomJob( StatusOr JobServiceConnectionImpl::DeleteCustomJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -345,7 +345,7 @@ JobServiceConnectionImpl::DeleteDataLabelingJob( StatusOr JobServiceConnectionImpl::DeleteDataLabelingJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -526,7 +526,7 @@ JobServiceConnectionImpl::DeleteHyperparameterTuningJob( StatusOr JobServiceConnectionImpl::DeleteHyperparameterTuningJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteHyperparameterTuningJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -697,7 +697,7 @@ JobServiceConnectionImpl::DeleteNasJob( } StatusOr JobServiceConnectionImpl::DeleteNasJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNasJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -925,7 +925,7 @@ JobServiceConnectionImpl::DeleteBatchPredictionJob( StatusOr JobServiceConnectionImpl::DeleteBatchPredictionJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1156,7 +1156,7 @@ JobServiceConnectionImpl::UpdateModelDeploymentMonitoringJob( StatusOr JobServiceConnectionImpl::UpdateModelDeploymentMonitoringJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: UpdateModelDeploymentMonitoringJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1255,7 +1255,7 @@ JobServiceConnectionImpl::DeleteModelDeploymentMonitoringJob( StatusOr JobServiceConnectionImpl::DeleteModelDeploymentMonitoringJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: DeleteModelDeploymentMonitoringJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/aiplatform/v1/internal/job_connection_impl.h b/google/cloud/aiplatform/v1/internal/job_connection_impl.h index 1bcae86b8fc62..dbe141f2df712 100644 --- a/google/cloud/aiplatform/v1/internal/job_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/job_connection_impl.h @@ -67,7 +67,7 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { request) override; StatusOr DeleteCustomJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteCustomJobRequest const& request) override; @@ -99,7 +99,7 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { request) override; StatusOr DeleteDataLabelingJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteDataLabelingJobRequest const& request) override; @@ -133,7 +133,7 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { request) override; StatusOr DeleteHyperparameterTuningJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteHyperparameterTuningJobRequest const& request) override; @@ -161,7 +161,7 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { request) override; StatusOr DeleteNasJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNasJobRequest const& request) override; @@ -201,7 +201,7 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { request) override; StatusOr DeleteBatchPredictionJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteBatchPredictionJobRequest const& request) override; @@ -241,7 +241,7 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { UpdateModelDeploymentMonitoringJobRequest const& request) override; StatusOr UpdateModelDeploymentMonitoringJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: UpdateModelDeploymentMonitoringJobRequest const& request) override; @@ -256,7 +256,7 @@ class JobServiceConnectionImpl : public aiplatform_v1::JobServiceConnection { DeleteModelDeploymentMonitoringJobRequest const& request) override; StatusOr DeleteModelDeploymentMonitoringJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1:: DeleteModelDeploymentMonitoringJobRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/metadata_connection_impl.cc b/google/cloud/aiplatform/v1/internal/metadata_connection_impl.cc index 24ac0d4723bce..ef5ed7c6926df 100644 --- a/google/cloud/aiplatform/v1/internal/metadata_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/metadata_connection_impl.cc @@ -109,7 +109,7 @@ MetadataServiceConnectionImpl::CreateMetadataStore( StatusOr MetadataServiceConnectionImpl::CreateMetadataStore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -254,7 +254,7 @@ MetadataServiceConnectionImpl::DeleteMetadataStore( StatusOr MetadataServiceConnectionImpl::DeleteMetadataStore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -426,7 +426,7 @@ MetadataServiceConnectionImpl::DeleteArtifact( StatusOr MetadataServiceConnectionImpl::DeleteArtifact( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteArtifactRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -519,7 +519,7 @@ MetadataServiceConnectionImpl::PurgeArtifacts( StatusOr MetadataServiceConnectionImpl::PurgeArtifacts( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -690,7 +690,7 @@ MetadataServiceConnectionImpl::DeleteContext( StatusOr MetadataServiceConnectionImpl::DeleteContext( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteContextRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -783,7 +783,7 @@ MetadataServiceConnectionImpl::PurgeContexts( StatusOr MetadataServiceConnectionImpl::PurgeContexts( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeContextsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1021,7 +1021,7 @@ MetadataServiceConnectionImpl::DeleteExecution( StatusOr MetadataServiceConnectionImpl::DeleteExecution( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteExecutionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1115,7 +1115,7 @@ MetadataServiceConnectionImpl::PurgeExecutions( StatusOr MetadataServiceConnectionImpl::PurgeExecutions( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/aiplatform/v1/internal/metadata_connection_impl.h b/google/cloud/aiplatform/v1/internal/metadata_connection_impl.h index a28e2755ef66a..6975eb407bf87 100644 --- a/google/cloud/aiplatform/v1/internal/metadata_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/metadata_connection_impl.h @@ -58,7 +58,7 @@ class MetadataServiceConnectionImpl override; StatusOr CreateMetadataStore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateMetadataStoreRequest const& request) override; @@ -81,7 +81,7 @@ class MetadataServiceConnectionImpl override; StatusOr DeleteMetadataStore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteMetadataStoreRequest const& request) override; @@ -110,7 +110,7 @@ class MetadataServiceConnectionImpl request) override; StatusOr DeleteArtifact( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteArtifactRequest const& request) override; @@ -123,7 +123,7 @@ class MetadataServiceConnectionImpl request) override; StatusOr PurgeArtifacts( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeArtifactsRequest const& request) override; @@ -150,7 +150,7 @@ class MetadataServiceConnectionImpl request) override; StatusOr DeleteContext( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteContextRequest const& request) override; @@ -163,7 +163,7 @@ class MetadataServiceConnectionImpl request) override; StatusOr PurgeContexts( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeContextsRequest const& request) override; @@ -212,7 +212,7 @@ class MetadataServiceConnectionImpl request) override; StatusOr DeleteExecution( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteExecutionRequest const& request) override; @@ -225,7 +225,7 @@ class MetadataServiceConnectionImpl request) override; StatusOr PurgeExecutions( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::PurgeExecutionsRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/migration_connection_impl.cc b/google/cloud/aiplatform/v1/internal/migration_connection_impl.cc index f27c9edf1fd55..a7bc4f5c4d5f9 100644 --- a/google/cloud/aiplatform/v1/internal/migration_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/migration_connection_impl.cc @@ -146,7 +146,7 @@ MigrationServiceConnectionImpl::BatchMigrateResources( StatusOr MigrationServiceConnectionImpl::BatchMigrateResources( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/aiplatform/v1/internal/migration_connection_impl.h b/google/cloud/aiplatform/v1/internal/migration_connection_impl.h index 35a95c359c83f..e38b9111da69c 100644 --- a/google/cloud/aiplatform/v1/internal/migration_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/migration_connection_impl.h @@ -63,7 +63,7 @@ class MigrationServiceConnectionImpl request) override; StatusOr BatchMigrateResources( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchMigrateResourcesRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/model_connection_impl.cc b/google/cloud/aiplatform/v1/internal/model_connection_impl.cc index 42541a3e3d06f..a36412c6ef6e1 100644 --- a/google/cloud/aiplatform/v1/internal/model_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/model_connection_impl.cc @@ -105,7 +105,7 @@ ModelServiceConnectionImpl::UploadModel( StatusOr ModelServiceConnectionImpl::UploadModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UploadModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -297,7 +297,7 @@ ModelServiceConnectionImpl::UpdateExplanationDataset( StatusOr ModelServiceConnectionImpl::UpdateExplanationDataset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -393,7 +393,7 @@ ModelServiceConnectionImpl::DeleteModel( StatusOr ModelServiceConnectionImpl::DeleteModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -486,7 +486,7 @@ ModelServiceConnectionImpl::DeleteModelVersion( StatusOr ModelServiceConnectionImpl::DeleteModelVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -594,7 +594,7 @@ ModelServiceConnectionImpl::ExportModel( StatusOr ModelServiceConnectionImpl::ExportModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -684,7 +684,7 @@ ModelServiceConnectionImpl::CopyModel( } StatusOr ModelServiceConnectionImpl::CopyModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CopyModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/aiplatform/v1/internal/model_connection_impl.h b/google/cloud/aiplatform/v1/internal/model_connection_impl.h index 50984c9b8ac33..edba3d0d5a37c 100644 --- a/google/cloud/aiplatform/v1/internal/model_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/model_connection_impl.h @@ -57,7 +57,7 @@ class ModelServiceConnectionImpl override; StatusOr UploadModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UploadModelRequest const& request) override; @@ -85,7 +85,7 @@ class ModelServiceConnectionImpl request) override; StatusOr UpdateExplanationDataset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateExplanationDatasetRequest const& request) override; @@ -100,7 +100,7 @@ class ModelServiceConnectionImpl override; StatusOr DeleteModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteModelRequest const& request) override; @@ -114,7 +114,7 @@ class ModelServiceConnectionImpl override; StatusOr DeleteModelVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteModelVersionRequest const& request) override; @@ -131,7 +131,7 @@ class ModelServiceConnectionImpl override; StatusOr ExportModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::ExportModelRequest const& request) override; @@ -143,7 +143,7 @@ class ModelServiceConnectionImpl google::cloud::aiplatform::v1::CopyModelRequest const& request) override; StatusOr CopyModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CopyModelRequest const& request) override; future> CopyModel( diff --git a/google/cloud/aiplatform/v1/internal/notebook_connection_impl.cc b/google/cloud/aiplatform/v1/internal/notebook_connection_impl.cc index 9ef5a1a685fd0..cabd21f8e77ac 100644 --- a/google/cloud/aiplatform/v1/internal/notebook_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/notebook_connection_impl.cc @@ -109,7 +109,7 @@ NotebookServiceConnectionImpl::CreateNotebookRuntimeTemplate( StatusOr NotebookServiceConnectionImpl::CreateNotebookRuntimeTemplate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateNotebookRuntimeTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -259,7 +259,7 @@ NotebookServiceConnectionImpl::DeleteNotebookRuntimeTemplate( StatusOr NotebookServiceConnectionImpl::DeleteNotebookRuntimeTemplate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNotebookRuntimeTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -371,7 +371,7 @@ NotebookServiceConnectionImpl::AssignNotebookRuntime( StatusOr NotebookServiceConnectionImpl::AssignNotebookRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -517,7 +517,7 @@ NotebookServiceConnectionImpl::DeleteNotebookRuntime( StatusOr NotebookServiceConnectionImpl::DeleteNotebookRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -613,7 +613,7 @@ NotebookServiceConnectionImpl::UpgradeNotebookRuntime( StatusOr NotebookServiceConnectionImpl::UpgradeNotebookRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -708,7 +708,7 @@ NotebookServiceConnectionImpl::StartNotebookRuntime( StatusOr NotebookServiceConnectionImpl::StartNotebookRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/aiplatform/v1/internal/notebook_connection_impl.h b/google/cloud/aiplatform/v1/internal/notebook_connection_impl.h index efa5e3e1437cc..04d4eb7d3d730 100644 --- a/google/cloud/aiplatform/v1/internal/notebook_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/notebook_connection_impl.h @@ -58,7 +58,7 @@ class NotebookServiceConnectionImpl request) override; StatusOr CreateNotebookRuntimeTemplate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateNotebookRuntimeTemplateRequest const& request) override; @@ -83,7 +83,7 @@ class NotebookServiceConnectionImpl request) override; StatusOr DeleteNotebookRuntimeTemplate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNotebookRuntimeTemplateRequest const& request) override; @@ -103,7 +103,7 @@ class NotebookServiceConnectionImpl request) override; StatusOr AssignNotebookRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::AssignNotebookRuntimeRequest const& request) override; @@ -127,7 +127,7 @@ class NotebookServiceConnectionImpl request) override; StatusOr DeleteNotebookRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteNotebookRuntimeRequest const& request) override; @@ -143,7 +143,7 @@ class NotebookServiceConnectionImpl request) override; StatusOr UpgradeNotebookRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpgradeNotebookRuntimeRequest const& request) override; @@ -159,7 +159,7 @@ class NotebookServiceConnectionImpl override; StatusOr StartNotebookRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.cc b/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.cc index 036d1dccaf8f3..8046159876111 100644 --- a/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.cc @@ -118,7 +118,7 @@ PersistentResourceServiceConnectionImpl::CreatePersistentResource( StatusOr PersistentResourceServiceConnectionImpl::CreatePersistentResource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -268,7 +268,7 @@ PersistentResourceServiceConnectionImpl::DeletePersistentResource( StatusOr PersistentResourceServiceConnectionImpl::DeletePersistentResource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -365,7 +365,7 @@ PersistentResourceServiceConnectionImpl::UpdatePersistentResource( StatusOr PersistentResourceServiceConnectionImpl::UpdatePersistentResource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -462,7 +462,7 @@ PersistentResourceServiceConnectionImpl::RebootPersistentResource( StatusOr PersistentResourceServiceConnectionImpl::RebootPersistentResource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.h b/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.h index 2df941a88d9ab..ec170580d4d91 100644 --- a/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/persistent_resource_connection_impl.h @@ -59,7 +59,7 @@ class PersistentResourceServiceConnectionImpl request) override; StatusOr CreatePersistentResource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreatePersistentResourceRequest const& request) override; @@ -84,7 +84,7 @@ class PersistentResourceServiceConnectionImpl request) override; StatusOr DeletePersistentResource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeletePersistentResourceRequest const& request) override; @@ -99,7 +99,7 @@ class PersistentResourceServiceConnectionImpl request) override; StatusOr UpdatePersistentResource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdatePersistentResourceRequest const& request) override; @@ -114,7 +114,7 @@ class PersistentResourceServiceConnectionImpl request) override; StatusOr RebootPersistentResource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::RebootPersistentResourceRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.cc b/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.cc index 970fe8cd2c606..0aaa7d0433bc3 100644 --- a/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.cc @@ -177,7 +177,7 @@ PipelineServiceConnectionImpl::DeleteTrainingPipeline( StatusOr PipelineServiceConnectionImpl::DeleteTrainingPipeline( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -351,7 +351,7 @@ PipelineServiceConnectionImpl::DeletePipelineJob( StatusOr PipelineServiceConnectionImpl::DeletePipelineJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -446,7 +446,7 @@ PipelineServiceConnectionImpl::BatchDeletePipelineJobs( StatusOr PipelineServiceConnectionImpl::BatchDeletePipelineJobs( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -557,7 +557,7 @@ PipelineServiceConnectionImpl::BatchCancelPipelineJobs( StatusOr PipelineServiceConnectionImpl::BatchCancelPipelineJobs( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.h b/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.h index 14eb03d2ef2c6..c07663716bd76 100644 --- a/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/pipeline_connection_impl.h @@ -72,7 +72,7 @@ class PipelineServiceConnectionImpl request) override; StatusOr DeleteTrainingPipeline( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTrainingPipelineRequest const& request) override; @@ -102,7 +102,7 @@ class PipelineServiceConnectionImpl override; StatusOr DeletePipelineJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeletePipelineJobRequest const& request) override; @@ -117,7 +117,7 @@ class PipelineServiceConnectionImpl request) override; StatusOr BatchDeletePipelineJobs( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchDeletePipelineJobsRequest const& request) override; @@ -138,7 +138,7 @@ class PipelineServiceConnectionImpl request) override; StatusOr BatchCancelPipelineJobs( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::BatchCancelPipelineJobsRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/schedule_connection_impl.cc b/google/cloud/aiplatform/v1/internal/schedule_connection_impl.cc index 46d560d921493..646c755dbd123 100644 --- a/google/cloud/aiplatform/v1/internal/schedule_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/schedule_connection_impl.cc @@ -123,7 +123,7 @@ ScheduleServiceConnectionImpl::DeleteSchedule( StatusOr ScheduleServiceConnectionImpl::DeleteSchedule( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteScheduleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/aiplatform/v1/internal/schedule_connection_impl.h b/google/cloud/aiplatform/v1/internal/schedule_connection_impl.h index 694603066f359..865a62653ad38 100644 --- a/google/cloud/aiplatform/v1/internal/schedule_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/schedule_connection_impl.h @@ -61,7 +61,7 @@ class ScheduleServiceConnectionImpl request) override; StatusOr DeleteSchedule( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteScheduleRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.cc b/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.cc index 8d792bad63d86..8d30a45ad6534 100644 --- a/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.cc @@ -110,7 +110,7 @@ SpecialistPoolServiceConnectionImpl::CreateSpecialistPool( StatusOr SpecialistPoolServiceConnectionImpl::CreateSpecialistPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -254,7 +254,7 @@ SpecialistPoolServiceConnectionImpl::DeleteSpecialistPool( StatusOr SpecialistPoolServiceConnectionImpl::DeleteSpecialistPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -348,7 +348,7 @@ SpecialistPoolServiceConnectionImpl::UpdateSpecialistPool( StatusOr SpecialistPoolServiceConnectionImpl::UpdateSpecialistPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.h b/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.h index d4e578030282f..856745db9c6fc 100644 --- a/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/specialist_pool_connection_impl.h @@ -58,7 +58,7 @@ class SpecialistPoolServiceConnectionImpl override; StatusOr CreateSpecialistPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateSpecialistPoolRequest const& request) override; @@ -81,7 +81,7 @@ class SpecialistPoolServiceConnectionImpl override; StatusOr DeleteSpecialistPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteSpecialistPoolRequest const& request) override; @@ -96,7 +96,7 @@ class SpecialistPoolServiceConnectionImpl override; StatusOr UpdateSpecialistPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateSpecialistPoolRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.cc b/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.cc index 57652c3da3ad7..23eb4652d00bb 100644 --- a/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.cc @@ -115,7 +115,7 @@ TensorboardServiceConnectionImpl::CreateTensorboard( StatusOr TensorboardServiceConnectionImpl::CreateTensorboard( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateTensorboardRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -224,7 +224,7 @@ TensorboardServiceConnectionImpl::UpdateTensorboard( StatusOr TensorboardServiceConnectionImpl::UpdateTensorboard( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -352,7 +352,7 @@ TensorboardServiceConnectionImpl::DeleteTensorboard( StatusOr TensorboardServiceConnectionImpl::DeleteTensorboard( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -562,7 +562,7 @@ TensorboardServiceConnectionImpl::DeleteTensorboardExperiment( StatusOr TensorboardServiceConnectionImpl::DeleteTensorboardExperiment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -753,7 +753,7 @@ TensorboardServiceConnectionImpl::DeleteTensorboardRun( StatusOr TensorboardServiceConnectionImpl::DeleteTensorboardRun( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -950,7 +950,7 @@ TensorboardServiceConnectionImpl::DeleteTensorboardTimeSeries( StatusOr TensorboardServiceConnectionImpl::DeleteTensorboardTimeSeries( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.h b/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.h index 17db89c0179f2..23528d11189e0 100644 --- a/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/tensorboard_connection_impl.h @@ -63,7 +63,7 @@ class TensorboardServiceConnectionImpl override; StatusOr CreateTensorboard( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CreateTensorboardRequest const& request) override; @@ -81,7 +81,7 @@ class TensorboardServiceConnectionImpl override; StatusOr UpdateTensorboard( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::UpdateTensorboardRequest const& request) override; @@ -98,7 +98,7 @@ class TensorboardServiceConnectionImpl override; StatusOr DeleteTensorboard( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardRequest const& request) override; @@ -142,7 +142,7 @@ class TensorboardServiceConnectionImpl request) override; StatusOr DeleteTensorboardExperiment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardExperimentRequest const& request) override; @@ -178,7 +178,7 @@ class TensorboardServiceConnectionImpl override; StatusOr DeleteTensorboardRun( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardRunRequest const& request) override; @@ -219,7 +219,7 @@ class TensorboardServiceConnectionImpl request) override; StatusOr DeleteTensorboardTimeSeries( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::DeleteTensorboardTimeSeriesRequest const& request) override; diff --git a/google/cloud/aiplatform/v1/internal/vizier_connection_impl.cc b/google/cloud/aiplatform/v1/internal/vizier_connection_impl.cc index 79e613996a310..cce89772e433c 100644 --- a/google/cloud/aiplatform/v1/internal/vizier_connection_impl.cc +++ b/google/cloud/aiplatform/v1/internal/vizier_connection_impl.cc @@ -196,7 +196,7 @@ VizierServiceConnectionImpl::SuggestTrials( StatusOr VizierServiceConnectionImpl::SuggestTrials( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::SuggestTrialsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -396,7 +396,7 @@ VizierServiceConnectionImpl::CheckTrialEarlyStoppingState( StatusOr VizierServiceConnectionImpl::CheckTrialEarlyStoppingState( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/aiplatform/v1/internal/vizier_connection_impl.h b/google/cloud/aiplatform/v1/internal/vizier_connection_impl.h index 9deab19968ae8..17281aa3105fe 100644 --- a/google/cloud/aiplatform/v1/internal/vizier_connection_impl.h +++ b/google/cloud/aiplatform/v1/internal/vizier_connection_impl.h @@ -74,7 +74,7 @@ class VizierServiceConnectionImpl request) override; StatusOr SuggestTrials( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::SuggestTrialsRequest const& request) override; @@ -110,7 +110,7 @@ class VizierServiceConnectionImpl request) override; StatusOr CheckTrialEarlyStoppingState( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::aiplatform::v1::CheckTrialEarlyStoppingStateRequest const& request) override; diff --git a/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.cc b/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.cc index a983d36d70989..a51fa7d78ae47 100644 --- a/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.cc +++ b/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.cc @@ -153,7 +153,7 @@ AlloyDBAdminConnectionImpl::CreateCluster( StatusOr AlloyDBAdminConnectionImpl::CreateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -243,7 +243,7 @@ AlloyDBAdminConnectionImpl::UpdateCluster( StatusOr AlloyDBAdminConnectionImpl::UpdateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -333,7 +333,7 @@ AlloyDBAdminConnectionImpl::DeleteCluster( StatusOr AlloyDBAdminConnectionImpl::DeleteCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -424,7 +424,7 @@ AlloyDBAdminConnectionImpl::PromoteCluster( StatusOr AlloyDBAdminConnectionImpl::PromoteCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::PromoteClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -514,7 +514,7 @@ AlloyDBAdminConnectionImpl::RestoreCluster( StatusOr AlloyDBAdminConnectionImpl::RestoreCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::RestoreClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -605,7 +605,7 @@ AlloyDBAdminConnectionImpl::CreateSecondaryCluster( StatusOr AlloyDBAdminConnectionImpl::CreateSecondaryCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -744,7 +744,7 @@ AlloyDBAdminConnectionImpl::CreateInstance( StatusOr AlloyDBAdminConnectionImpl::CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -835,7 +835,7 @@ AlloyDBAdminConnectionImpl::CreateSecondaryInstance( StatusOr AlloyDBAdminConnectionImpl::CreateSecondaryInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -927,7 +927,7 @@ AlloyDBAdminConnectionImpl::BatchCreateInstances( StatusOr AlloyDBAdminConnectionImpl::BatchCreateInstances( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1019,7 +1019,7 @@ AlloyDBAdminConnectionImpl::UpdateInstance( StatusOr AlloyDBAdminConnectionImpl::UpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1109,7 +1109,7 @@ AlloyDBAdminConnectionImpl::DeleteInstance( StatusOr AlloyDBAdminConnectionImpl::DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1200,7 +1200,7 @@ AlloyDBAdminConnectionImpl::FailoverInstance( StatusOr AlloyDBAdminConnectionImpl::FailoverInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::FailoverInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1291,7 +1291,7 @@ AlloyDBAdminConnectionImpl::InjectFault( StatusOr AlloyDBAdminConnectionImpl::InjectFault( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::InjectFaultRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1381,7 +1381,7 @@ AlloyDBAdminConnectionImpl::RestartInstance( StatusOr AlloyDBAdminConnectionImpl::RestartInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::RestartInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1520,7 +1520,7 @@ AlloyDBAdminConnectionImpl::CreateBackup( StatusOr AlloyDBAdminConnectionImpl::CreateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1610,7 +1610,7 @@ AlloyDBAdminConnectionImpl::UpdateBackup( StatusOr AlloyDBAdminConnectionImpl::UpdateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1700,7 +1700,7 @@ AlloyDBAdminConnectionImpl::DeleteBackup( StatusOr AlloyDBAdminConnectionImpl::DeleteBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.h b/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.h index b928f0486a6b6..85ced20903fbf 100644 --- a/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.h +++ b/google/cloud/alloydb/v1/internal/alloy_db_admin_connection_impl.h @@ -61,7 +61,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { google::cloud::alloydb::v1::CreateClusterRequest const& request) override; StatusOr CreateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateClusterRequest const& request) override; future> CreateCluster( @@ -72,7 +72,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { google::cloud::alloydb::v1::UpdateClusterRequest const& request) override; StatusOr UpdateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateClusterRequest const& request) override; future> UpdateCluster( @@ -83,7 +83,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { google::cloud::alloydb::v1::DeleteClusterRequest const& request) override; StatusOr DeleteCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteClusterRequest const& request) override; future> DeleteCluster( @@ -95,7 +95,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr PromoteCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::PromoteClusterRequest const& request) override; @@ -108,7 +108,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr RestoreCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::RestoreClusterRequest const& request) override; @@ -121,7 +121,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr CreateSecondaryCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request) override; @@ -140,7 +140,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateInstanceRequest const& request) override; @@ -154,7 +154,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr CreateSecondaryInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request) override; @@ -169,7 +169,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr BatchCreateInstances( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request) override; @@ -183,7 +183,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr UpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateInstanceRequest const& request) override; @@ -196,7 +196,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { request) override; StatusOr DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteInstanceRequest const& request) override; @@ -209,7 +209,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr FailoverInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::FailoverInstanceRequest const& request) override; @@ -221,7 +221,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { google::cloud::alloydb::v1::InjectFaultRequest const& request) override; StatusOr InjectFault( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::InjectFaultRequest const& request) override; future> InjectFault( @@ -233,7 +233,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { override; StatusOr RestartInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::RestartInstanceRequest const& request) override; @@ -251,7 +251,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { google::cloud::alloydb::v1::CreateBackupRequest const& request) override; StatusOr CreateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::CreateBackupRequest const& request) override; future> CreateBackup( @@ -262,7 +262,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { google::cloud::alloydb::v1::UpdateBackupRequest const& request) override; StatusOr UpdateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::UpdateBackupRequest const& request) override; future> UpdateBackup( @@ -273,7 +273,7 @@ class AlloyDBAdminConnectionImpl : public alloydb_v1::AlloyDBAdminConnection { google::cloud::alloydb::v1::DeleteBackupRequest const& request) override; StatusOr DeleteBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::alloydb::v1::DeleteBackupRequest const& request) override; future> DeleteBackup( diff --git a/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.cc b/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.cc index ebd9b98b0009d..7b4ac07f5a70a 100644 --- a/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.cc +++ b/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.cc @@ -156,7 +156,7 @@ ApiGatewayServiceConnectionImpl::CreateGateway( StatusOr ApiGatewayServiceConnectionImpl::CreateGateway( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -247,7 +247,7 @@ ApiGatewayServiceConnectionImpl::UpdateGateway( StatusOr ApiGatewayServiceConnectionImpl::UpdateGateway( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -338,7 +338,7 @@ ApiGatewayServiceConnectionImpl::DeleteGateway( StatusOr ApiGatewayServiceConnectionImpl::DeleteGateway( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -476,7 +476,7 @@ ApiGatewayServiceConnectionImpl::CreateApi( StatusOr ApiGatewayServiceConnectionImpl::CreateApi( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateApiRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -565,7 +565,7 @@ ApiGatewayServiceConnectionImpl::UpdateApi( StatusOr ApiGatewayServiceConnectionImpl::UpdateApi( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateApiRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -654,7 +654,7 @@ ApiGatewayServiceConnectionImpl::DeleteApi( StatusOr ApiGatewayServiceConnectionImpl::DeleteApi( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteApiRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -795,7 +795,7 @@ ApiGatewayServiceConnectionImpl::CreateApiConfig( StatusOr ApiGatewayServiceConnectionImpl::CreateApiConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateApiConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -888,7 +888,7 @@ ApiGatewayServiceConnectionImpl::UpdateApiConfig( StatusOr ApiGatewayServiceConnectionImpl::UpdateApiConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateApiConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -981,7 +981,7 @@ ApiGatewayServiceConnectionImpl::DeleteApiConfig( StatusOr ApiGatewayServiceConnectionImpl::DeleteApiConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteApiConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.h b/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.h index 88c9c4342e8c9..ab2cbc05d40d4 100644 --- a/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.h +++ b/google/cloud/apigateway/v1/internal/api_gateway_connection_impl.h @@ -63,7 +63,7 @@ class ApiGatewayServiceConnectionImpl override; StatusOr CreateGateway( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateGatewayRequest const& request) override; @@ -76,7 +76,7 @@ class ApiGatewayServiceConnectionImpl override; StatusOr UpdateGateway( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateGatewayRequest const& request) override; @@ -89,7 +89,7 @@ class ApiGatewayServiceConnectionImpl request) override; StatusOr DeleteGateway( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteGatewayRequest const& request) override; @@ -107,7 +107,7 @@ class ApiGatewayServiceConnectionImpl google::cloud::apigateway::v1::CreateApiRequest const& request) override; StatusOr CreateApi( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateApiRequest const& request) override; future> CreateApi( @@ -118,7 +118,7 @@ class ApiGatewayServiceConnectionImpl google::cloud::apigateway::v1::UpdateApiRequest const& request) override; StatusOr UpdateApi( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateApiRequest const& request) override; future> UpdateApi( @@ -129,7 +129,7 @@ class ApiGatewayServiceConnectionImpl google::cloud::apigateway::v1::DeleteApiRequest const& request) override; StatusOr DeleteApi( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteApiRequest const& request) override; future> DeleteApi( @@ -148,7 +148,7 @@ class ApiGatewayServiceConnectionImpl override; StatusOr CreateApiConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::CreateApiConfigRequest const& request) override; @@ -161,7 +161,7 @@ class ApiGatewayServiceConnectionImpl override; StatusOr UpdateApiConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::UpdateApiConfigRequest const& request) override; @@ -174,7 +174,7 @@ class ApiGatewayServiceConnectionImpl request) override; StatusOr DeleteApiConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apigateway::v1::DeleteApiConfigRequest const& request) override; diff --git a/google/cloud/apikeys/v2/internal/api_keys_connection_impl.cc b/google/cloud/apikeys/v2/internal/api_keys_connection_impl.cc index 9bd8c7f595d66..1e0ba875d46c1 100644 --- a/google/cloud/apikeys/v2/internal/api_keys_connection_impl.cc +++ b/google/cloud/apikeys/v2/internal/api_keys_connection_impl.cc @@ -101,7 +101,7 @@ ApiKeysConnectionImpl::CreateKey( } StatusOr ApiKeysConnectionImpl::CreateKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::CreateKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -246,7 +246,7 @@ ApiKeysConnectionImpl::UpdateKey( } StatusOr ApiKeysConnectionImpl::UpdateKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::UpdateKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -333,7 +333,7 @@ ApiKeysConnectionImpl::DeleteKey( } StatusOr ApiKeysConnectionImpl::DeleteKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::DeleteKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -421,7 +421,7 @@ ApiKeysConnectionImpl::UndeleteKey( } StatusOr ApiKeysConnectionImpl::UndeleteKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::UndeleteKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/apikeys/v2/internal/api_keys_connection_impl.h b/google/cloud/apikeys/v2/internal/api_keys_connection_impl.h index eef2f33310da3..97ff7318c7f04 100644 --- a/google/cloud/apikeys/v2/internal/api_keys_connection_impl.h +++ b/google/cloud/apikeys/v2/internal/api_keys_connection_impl.h @@ -54,7 +54,7 @@ class ApiKeysConnectionImpl : public apikeys_v2::ApiKeysConnection { google::api::apikeys::v2::CreateKeyRequest const& request) override; StatusOr CreateKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::CreateKeyRequest const& request) override; future> CreateKey( @@ -74,7 +74,7 @@ class ApiKeysConnectionImpl : public apikeys_v2::ApiKeysConnection { google::api::apikeys::v2::UpdateKeyRequest const& request) override; StatusOr UpdateKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::UpdateKeyRequest const& request) override; future> UpdateKey( @@ -85,7 +85,7 @@ class ApiKeysConnectionImpl : public apikeys_v2::ApiKeysConnection { google::api::apikeys::v2::DeleteKeyRequest const& request) override; StatusOr DeleteKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::DeleteKeyRequest const& request) override; future> DeleteKey( @@ -96,7 +96,7 @@ class ApiKeysConnectionImpl : public apikeys_v2::ApiKeysConnection { google::api::apikeys::v2::UndeleteKeyRequest const& request) override; StatusOr UndeleteKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::apikeys::v2::UndeleteKeyRequest const& request) override; future> UndeleteKey( diff --git a/google/cloud/appengine/v1/internal/applications_connection_impl.cc b/google/cloud/appengine/v1/internal/applications_connection_impl.cc index 9802b82c5dd9a..fcdf1a53ffaf3 100644 --- a/google/cloud/appengine/v1/internal/applications_connection_impl.cc +++ b/google/cloud/appengine/v1/internal/applications_connection_impl.cc @@ -118,7 +118,7 @@ ApplicationsConnectionImpl::CreateApplication( StatusOr ApplicationsConnectionImpl::CreateApplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateApplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -208,7 +208,7 @@ ApplicationsConnectionImpl::UpdateApplication( StatusOr ApplicationsConnectionImpl::UpdateApplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateApplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -298,7 +298,7 @@ ApplicationsConnectionImpl::RepairApplication( StatusOr ApplicationsConnectionImpl::RepairApplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::RepairApplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/appengine/v1/internal/applications_connection_impl.h b/google/cloud/appengine/v1/internal/applications_connection_impl.h index 91ee5c435afe9..4cdb7e530de1c 100644 --- a/google/cloud/appengine/v1/internal/applications_connection_impl.h +++ b/google/cloud/appengine/v1/internal/applications_connection_impl.h @@ -57,7 +57,7 @@ class ApplicationsConnectionImpl : public appengine_v1::ApplicationsConnection { google::appengine::v1::CreateApplicationRequest const& request) override; StatusOr CreateApplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateApplicationRequest const& request) override; future> CreateApplication( @@ -68,7 +68,7 @@ class ApplicationsConnectionImpl : public appengine_v1::ApplicationsConnection { google::appengine::v1::UpdateApplicationRequest const& request) override; StatusOr UpdateApplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateApplicationRequest const& request) override; future> UpdateApplication( @@ -79,7 +79,7 @@ class ApplicationsConnectionImpl : public appengine_v1::ApplicationsConnection { google::appengine::v1::RepairApplicationRequest const& request) override; StatusOr RepairApplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::RepairApplicationRequest const& request) override; future> RepairApplication( diff --git a/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.cc b/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.cc index bb86912bc3179..3f13ff7771446 100644 --- a/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.cc +++ b/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.cc @@ -155,7 +155,7 @@ DomainMappingsConnectionImpl::CreateDomainMapping( StatusOr DomainMappingsConnectionImpl::CreateDomainMapping( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateDomainMappingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -245,7 +245,7 @@ DomainMappingsConnectionImpl::UpdateDomainMapping( StatusOr DomainMappingsConnectionImpl::UpdateDomainMapping( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateDomainMappingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -335,7 +335,7 @@ DomainMappingsConnectionImpl::DeleteDomainMapping( StatusOr DomainMappingsConnectionImpl::DeleteDomainMapping( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteDomainMappingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.h b/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.h index 5b7bcdc3b1a29..3b631f590b2e4 100644 --- a/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.h +++ b/google/cloud/appengine/v1/internal/domain_mappings_connection_impl.h @@ -63,7 +63,7 @@ class DomainMappingsConnectionImpl override; StatusOr CreateDomainMapping( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateDomainMappingRequest const& request) override; @@ -76,7 +76,7 @@ class DomainMappingsConnectionImpl override; StatusOr UpdateDomainMapping( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateDomainMappingRequest const& request) override; @@ -89,7 +89,7 @@ class DomainMappingsConnectionImpl request) override; StatusOr DeleteDomainMapping( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteDomainMappingRequest const& request) override; diff --git a/google/cloud/appengine/v1/internal/instances_connection_impl.cc b/google/cloud/appengine/v1/internal/instances_connection_impl.cc index fddaaa4180cee..a44538ba2a00e 100644 --- a/google/cloud/appengine/v1/internal/instances_connection_impl.cc +++ b/google/cloud/appengine/v1/internal/instances_connection_impl.cc @@ -150,7 +150,7 @@ InstancesConnectionImpl::DeleteInstance( StatusOr InstancesConnectionImpl::DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -240,7 +240,7 @@ InstancesConnectionImpl::DebugInstance( } StatusOr InstancesConnectionImpl::DebugInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DebugInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/appengine/v1/internal/instances_connection_impl.h b/google/cloud/appengine/v1/internal/instances_connection_impl.h index b65eb858d1837..90b2409c9d2bd 100644 --- a/google/cloud/appengine/v1/internal/instances_connection_impl.h +++ b/google/cloud/appengine/v1/internal/instances_connection_impl.h @@ -61,7 +61,7 @@ class InstancesConnectionImpl : public appengine_v1::InstancesConnection { google::appengine::v1::DeleteInstanceRequest const& request) override; StatusOr DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteInstanceRequest const& request) override; future> DeleteInstance( @@ -72,7 +72,7 @@ class InstancesConnectionImpl : public appengine_v1::InstancesConnection { google::appengine::v1::DebugInstanceRequest const& request) override; StatusOr DebugInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DebugInstanceRequest const& request) override; future> DebugInstance( diff --git a/google/cloud/appengine/v1/internal/services_connection_impl.cc b/google/cloud/appengine/v1/internal/services_connection_impl.cc index 2b91471a16231..083bcd389b791 100644 --- a/google/cloud/appengine/v1/internal/services_connection_impl.cc +++ b/google/cloud/appengine/v1/internal/services_connection_impl.cc @@ -147,7 +147,7 @@ ServicesConnectionImpl::UpdateService( } StatusOr ServicesConnectionImpl::UpdateService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -236,7 +236,7 @@ ServicesConnectionImpl::DeleteService( } StatusOr ServicesConnectionImpl::DeleteService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/appengine/v1/internal/services_connection_impl.h b/google/cloud/appengine/v1/internal/services_connection_impl.h index 0fd8742116078..a86bf7cdfeec0 100644 --- a/google/cloud/appengine/v1/internal/services_connection_impl.h +++ b/google/cloud/appengine/v1/internal/services_connection_impl.h @@ -61,7 +61,7 @@ class ServicesConnectionImpl : public appengine_v1::ServicesConnection { google::appengine::v1::UpdateServiceRequest const& request) override; StatusOr UpdateService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateServiceRequest const& request) override; future> UpdateService( @@ -72,7 +72,7 @@ class ServicesConnectionImpl : public appengine_v1::ServicesConnection { google::appengine::v1::DeleteServiceRequest const& request) override; StatusOr DeleteService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteServiceRequest const& request) override; future> DeleteService( diff --git a/google/cloud/appengine/v1/internal/versions_connection_impl.cc b/google/cloud/appengine/v1/internal/versions_connection_impl.cc index ada520234adf7..5dedd01b60ae0 100644 --- a/google/cloud/appengine/v1/internal/versions_connection_impl.cc +++ b/google/cloud/appengine/v1/internal/versions_connection_impl.cc @@ -147,7 +147,7 @@ VersionsConnectionImpl::CreateVersion( } StatusOr VersionsConnectionImpl::CreateVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -236,7 +236,7 @@ VersionsConnectionImpl::UpdateVersion( } StatusOr VersionsConnectionImpl::UpdateVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -325,7 +325,7 @@ VersionsConnectionImpl::DeleteVersion( } StatusOr VersionsConnectionImpl::DeleteVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/appengine/v1/internal/versions_connection_impl.h b/google/cloud/appengine/v1/internal/versions_connection_impl.h index e593ba62c5280..bb40f728440e0 100644 --- a/google/cloud/appengine/v1/internal/versions_connection_impl.h +++ b/google/cloud/appengine/v1/internal/versions_connection_impl.h @@ -61,7 +61,7 @@ class VersionsConnectionImpl : public appengine_v1::VersionsConnection { google::appengine::v1::CreateVersionRequest const& request) override; StatusOr CreateVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::CreateVersionRequest const& request) override; future> CreateVersion( @@ -72,7 +72,7 @@ class VersionsConnectionImpl : public appengine_v1::VersionsConnection { google::appengine::v1::UpdateVersionRequest const& request) override; StatusOr UpdateVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::UpdateVersionRequest const& request) override; future> UpdateVersion( @@ -83,7 +83,7 @@ class VersionsConnectionImpl : public appengine_v1::VersionsConnection { google::appengine::v1::DeleteVersionRequest const& request) override; StatusOr DeleteVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::appengine::v1::DeleteVersionRequest const& request) override; future> DeleteVersion( diff --git a/google/cloud/apphub/v1/internal/app_hub_connection_impl.cc b/google/cloud/apphub/v1/internal/app_hub_connection_impl.cc index 26fba0b67a671..19aa1f5be2f3d 100644 --- a/google/cloud/apphub/v1/internal/app_hub_connection_impl.cc +++ b/google/cloud/apphub/v1/internal/app_hub_connection_impl.cc @@ -158,7 +158,7 @@ AppHubConnectionImpl::CreateServiceProjectAttachment( StatusOr AppHubConnectionImpl::CreateServiceProjectAttachment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -270,7 +270,7 @@ AppHubConnectionImpl::DeleteServiceProjectAttachment( StatusOr AppHubConnectionImpl::DeleteServiceProjectAttachment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -478,7 +478,7 @@ AppHubConnectionImpl::CreateService( } StatusOr AppHubConnectionImpl::CreateService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -580,7 +580,7 @@ AppHubConnectionImpl::UpdateService( } StatusOr AppHubConnectionImpl::UpdateService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -669,7 +669,7 @@ AppHubConnectionImpl::DeleteService( } StatusOr AppHubConnectionImpl::DeleteService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -859,7 +859,7 @@ AppHubConnectionImpl::CreateWorkload( } StatusOr AppHubConnectionImpl::CreateWorkload( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateWorkloadRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -961,7 +961,7 @@ AppHubConnectionImpl::UpdateWorkload( } StatusOr AppHubConnectionImpl::UpdateWorkload( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateWorkloadRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1050,7 +1050,7 @@ AppHubConnectionImpl::DeleteWorkload( } StatusOr AppHubConnectionImpl::DeleteWorkload( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteWorkloadRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1175,7 +1175,7 @@ AppHubConnectionImpl::CreateApplication( StatusOr AppHubConnectionImpl::CreateApplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateApplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1280,7 +1280,7 @@ AppHubConnectionImpl::UpdateApplication( StatusOr AppHubConnectionImpl::UpdateApplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateApplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1371,7 +1371,7 @@ AppHubConnectionImpl::DeleteApplication( StatusOr AppHubConnectionImpl::DeleteApplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteApplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/apphub/v1/internal/app_hub_connection_impl.h b/google/cloud/apphub/v1/internal/app_hub_connection_impl.h index 36abf99fb2008..d56eda96d33d3 100644 --- a/google/cloud/apphub/v1/internal/app_hub_connection_impl.h +++ b/google/cloud/apphub/v1/internal/app_hub_connection_impl.h @@ -66,7 +66,7 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { request) override; StatusOr CreateServiceProjectAttachment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const& request) override; @@ -86,7 +86,7 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { request) override; StatusOr DeleteServiceProjectAttachment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const& request) override; @@ -121,7 +121,7 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::CreateServiceRequest const& request) override; StatusOr CreateService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateServiceRequest const& request) override; future> CreateService( @@ -135,7 +135,7 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::UpdateServiceRequest const& request) override; StatusOr UpdateService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateServiceRequest const& request) override; future> UpdateService( @@ -146,7 +146,7 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::DeleteServiceRequest const& request) override; StatusOr DeleteService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteServiceRequest const& request) override; future> DeleteService( @@ -174,7 +174,7 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::CreateWorkloadRequest const& request) override; StatusOr CreateWorkload( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateWorkloadRequest const& request) override; future> CreateWorkload( @@ -188,7 +188,7 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::UpdateWorkloadRequest const& request) override; StatusOr UpdateWorkload( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateWorkloadRequest const& request) override; future> UpdateWorkload( @@ -199,7 +199,7 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { google::cloud::apphub::v1::DeleteWorkloadRequest const& request) override; StatusOr DeleteWorkload( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteWorkloadRequest const& request) override; future> DeleteWorkload( @@ -214,7 +214,7 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { override; StatusOr CreateApplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateApplicationRequest const& request) override; @@ -230,7 +230,7 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { override; StatusOr UpdateApplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateApplicationRequest const& request) override; @@ -243,7 +243,7 @@ class AppHubConnectionImpl : public apphub_v1::AppHubConnection { request) override; StatusOr DeleteApplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteApplicationRequest const& request) override; diff --git a/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.cc b/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.cc index c6a9502f2639b..f82e749c96b80 100644 --- a/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.cc +++ b/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.cc @@ -323,7 +323,7 @@ ArtifactRegistryConnectionImpl::ImportAptArtifacts( StatusOr ArtifactRegistryConnectionImpl::ImportAptArtifacts( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -420,7 +420,7 @@ ArtifactRegistryConnectionImpl::ImportYumArtifacts( StatusOr ArtifactRegistryConnectionImpl::ImportYumArtifacts( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -569,7 +569,7 @@ ArtifactRegistryConnectionImpl::CreateRepository( StatusOr ArtifactRegistryConnectionImpl::CreateRepository( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::CreateRepositoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -683,7 +683,7 @@ ArtifactRegistryConnectionImpl::DeleteRepository( StatusOr ArtifactRegistryConnectionImpl::DeleteRepository( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -831,7 +831,7 @@ ArtifactRegistryConnectionImpl::DeletePackage( StatusOr ArtifactRegistryConnectionImpl::DeletePackage( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeletePackageRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -978,7 +978,7 @@ ArtifactRegistryConnectionImpl::DeleteVersion( StatusOr ArtifactRegistryConnectionImpl::DeleteVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeleteVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1074,7 +1074,7 @@ ArtifactRegistryConnectionImpl::BatchDeleteVersions( StatusOr ArtifactRegistryConnectionImpl::BatchDeleteVersions( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.h b/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.h index 6a230084300d8..07794500bc2d1 100644 --- a/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.h +++ b/google/cloud/artifactregistry/v1/internal/artifact_registry_connection_impl.h @@ -96,7 +96,7 @@ class ArtifactRegistryConnectionImpl request) override; StatusOr ImportAptArtifacts( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const& request) override; @@ -112,7 +112,7 @@ class ArtifactRegistryConnectionImpl request) override; StatusOr ImportYumArtifacts( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const& request) override; @@ -136,7 +136,7 @@ class ArtifactRegistryConnectionImpl request) override; StatusOr CreateRepository( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::CreateRepositoryRequest const& request) override; @@ -154,7 +154,7 @@ class ArtifactRegistryConnectionImpl request) override; StatusOr DeleteRepository( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeleteRepositoryRequest const& request) override; @@ -176,7 +176,7 @@ class ArtifactRegistryConnectionImpl request) override; StatusOr DeletePackage( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeletePackageRequest const& request) override; @@ -198,7 +198,7 @@ class ArtifactRegistryConnectionImpl request) override; StatusOr DeleteVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::DeleteVersionRequest const& request) override; @@ -213,7 +213,7 @@ class ArtifactRegistryConnectionImpl request) override; StatusOr BatchDeleteVersions( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const& request) override; diff --git a/google/cloud/asset/v1/internal/asset_connection_impl.cc b/google/cloud/asset/v1/internal/asset_connection_impl.cc index 2d683ec9a028b..c1ff66d5143c6 100644 --- a/google/cloud/asset/v1/internal/asset_connection_impl.cc +++ b/google/cloud/asset/v1/internal/asset_connection_impl.cc @@ -103,7 +103,7 @@ AssetServiceConnectionImpl::ExportAssets( StatusOr AssetServiceConnectionImpl::ExportAssets( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::asset::v1::ExportAssetsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -392,7 +392,7 @@ AssetServiceConnectionImpl::AnalyzeIamPolicyLongrunning( StatusOr AssetServiceConnectionImpl::AnalyzeIamPolicyLongrunning( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/asset/v1/internal/asset_connection_impl.h b/google/cloud/asset/v1/internal/asset_connection_impl.h index 325ed704c12d0..6ed5e185fe661 100644 --- a/google/cloud/asset/v1/internal/asset_connection_impl.h +++ b/google/cloud/asset/v1/internal/asset_connection_impl.h @@ -55,7 +55,7 @@ class AssetServiceConnectionImpl : public asset_v1::AssetServiceConnection { google::cloud::asset::v1::ExportAssetsRequest const& request) override; StatusOr ExportAssets( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::asset::v1::ExportAssetsRequest const& request) override; future> ExportAssets( @@ -104,7 +104,7 @@ class AssetServiceConnectionImpl : public asset_v1::AssetServiceConnection { request) override; StatusOr AnalyzeIamPolicyLongrunning( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::asset::v1::AnalyzeIamPolicyLongrunningRequest const& request) override; diff --git a/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.cc b/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.cc index 584c2a6c3ad51..080bcff2872dc 100644 --- a/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.cc +++ b/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.cc @@ -115,7 +115,7 @@ AssuredWorkloadsServiceConnectionImpl::CreateWorkload( StatusOr AssuredWorkloadsServiceConnectionImpl::CreateWorkload( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.h b/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.h index 1160a0eecc0e5..880a49d8919ba 100644 --- a/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.h +++ b/google/cloud/assuredworkloads/v1/internal/assured_workloads_connection_impl.h @@ -59,7 +59,7 @@ class AssuredWorkloadsServiceConnectionImpl override; StatusOr CreateWorkload( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::assuredworkloads::v1::CreateWorkloadRequest const& request) override; diff --git a/google/cloud/automl/v1/internal/auto_ml_connection_impl.cc b/google/cloud/automl/v1/internal/auto_ml_connection_impl.cc index f406613a4bf8a..f6bbbaa5e861b 100644 --- a/google/cloud/automl/v1/internal/auto_ml_connection_impl.cc +++ b/google/cloud/automl/v1/internal/auto_ml_connection_impl.cc @@ -102,7 +102,7 @@ AutoMlConnectionImpl::CreateDataset( } StatusOr AutoMlConnectionImpl::CreateDataset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::CreateDatasetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -252,7 +252,7 @@ AutoMlConnectionImpl::DeleteDataset( } StatusOr AutoMlConnectionImpl::DeleteDataset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeleteDatasetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -342,7 +342,7 @@ AutoMlConnectionImpl::ImportData( } StatusOr AutoMlConnectionImpl::ImportData( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ImportDataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -432,7 +432,7 @@ AutoMlConnectionImpl::ExportData( } StatusOr AutoMlConnectionImpl::ExportData( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ExportDataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -537,7 +537,7 @@ AutoMlConnectionImpl::CreateModel( } StatusOr AutoMlConnectionImpl::CreateModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::CreateModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -671,7 +671,7 @@ AutoMlConnectionImpl::DeleteModel( } StatusOr AutoMlConnectionImpl::DeleteModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeleteModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -774,7 +774,7 @@ AutoMlConnectionImpl::DeployModel( } StatusOr AutoMlConnectionImpl::DeployModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeployModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -864,7 +864,7 @@ AutoMlConnectionImpl::UndeployModel( } StatusOr AutoMlConnectionImpl::UndeployModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::UndeployModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -954,7 +954,7 @@ AutoMlConnectionImpl::ExportModel( } StatusOr AutoMlConnectionImpl::ExportModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ExportModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/automl/v1/internal/auto_ml_connection_impl.h b/google/cloud/automl/v1/internal/auto_ml_connection_impl.h index 478a935a2a96c..5d94c5ac1aea2 100644 --- a/google/cloud/automl/v1/internal/auto_ml_connection_impl.h +++ b/google/cloud/automl/v1/internal/auto_ml_connection_impl.h @@ -54,7 +54,7 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { google::cloud::automl::v1::CreateDatasetRequest const& request) override; StatusOr CreateDataset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::CreateDatasetRequest const& request) override; future> CreateDataset( @@ -74,7 +74,7 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { google::cloud::automl::v1::DeleteDatasetRequest const& request) override; StatusOr DeleteDataset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeleteDatasetRequest const& request) override; future> DeleteDataset( @@ -85,7 +85,7 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { google::cloud::automl::v1::ImportDataRequest const& request) override; StatusOr ImportData( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ImportDataRequest const& request) override; future> ImportData( @@ -96,7 +96,7 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { google::cloud::automl::v1::ExportDataRequest const& request) override; StatusOr ExportData( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ExportDataRequest const& request) override; future> ExportData( @@ -111,7 +111,7 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { google::cloud::automl::v1::CreateModelRequest const& request) override; StatusOr CreateModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::CreateModelRequest const& request) override; future> CreateModel( @@ -128,7 +128,7 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { google::cloud::automl::v1::DeleteModelRequest const& request) override; StatusOr DeleteModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeleteModelRequest const& request) override; future> DeleteModel( @@ -142,7 +142,7 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { google::cloud::automl::v1::DeployModelRequest const& request) override; StatusOr DeployModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::DeployModelRequest const& request) override; future> DeployModel( @@ -153,7 +153,7 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { google::cloud::automl::v1::UndeployModelRequest const& request) override; StatusOr UndeployModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::UndeployModelRequest const& request) override; future> UndeployModel( @@ -164,7 +164,7 @@ class AutoMlConnectionImpl : public automl_v1::AutoMlConnection { google::cloud::automl::v1::ExportModelRequest const& request) override; StatusOr ExportModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::ExportModelRequest const& request) override; future> ExportModel( diff --git a/google/cloud/automl/v1/internal/prediction_connection_impl.cc b/google/cloud/automl/v1/internal/prediction_connection_impl.cc index 2804a1add7abe..59156d89a554e 100644 --- a/google/cloud/automl/v1/internal/prediction_connection_impl.cc +++ b/google/cloud/automl/v1/internal/prediction_connection_impl.cc @@ -120,7 +120,7 @@ PredictionServiceConnectionImpl::BatchPredict( StatusOr PredictionServiceConnectionImpl::BatchPredict( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::BatchPredictRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/automl/v1/internal/prediction_connection_impl.h b/google/cloud/automl/v1/internal/prediction_connection_impl.h index 527008a639d75..7d144852fe803 100644 --- a/google/cloud/automl/v1/internal/prediction_connection_impl.h +++ b/google/cloud/automl/v1/internal/prediction_connection_impl.h @@ -58,7 +58,7 @@ class PredictionServiceConnectionImpl google::cloud::automl::v1::BatchPredictRequest const& request) override; StatusOr BatchPredict( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::automl::v1::BatchPredictRequest const& request) override; future> BatchPredict( diff --git a/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.cc b/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.cc index aef18310cfd6b..41658b0296576 100644 --- a/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.cc +++ b/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.cc @@ -155,7 +155,7 @@ BackupDRConnectionImpl::CreateManagementServer( StatusOr BackupDRConnectionImpl::CreateManagementServer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::backupdr::v1::CreateManagementServerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -248,7 +248,7 @@ BackupDRConnectionImpl::DeleteManagementServer( StatusOr BackupDRConnectionImpl::DeleteManagementServer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::backupdr::v1::DeleteManagementServerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.h b/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.h index 0070ad778272c..391200732a8fc 100644 --- a/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.h +++ b/google/cloud/backupdr/v1/internal/backup_dr_connection_impl.h @@ -66,7 +66,7 @@ class BackupDRConnectionImpl : public backupdr_v1::BackupDRConnection { override; StatusOr CreateManagementServer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::backupdr::v1::CreateManagementServerRequest const& request) override; @@ -81,7 +81,7 @@ class BackupDRConnectionImpl : public backupdr_v1::BackupDRConnection { override; StatusOr DeleteManagementServer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::backupdr::v1::DeleteManagementServerRequest const& request) override; diff --git a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.cc b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.cc index ccae421f29a26..e9dc046e99ed7 100644 --- a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.cc +++ b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.cc @@ -165,7 +165,7 @@ BareMetalSolutionConnectionImpl::UpdateInstance( StatusOr BareMetalSolutionConnectionImpl::UpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -276,7 +276,7 @@ BareMetalSolutionConnectionImpl::ResetInstance( StatusOr BareMetalSolutionConnectionImpl::ResetInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::ResetInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -370,7 +370,7 @@ BareMetalSolutionConnectionImpl::StartInstance( StatusOr BareMetalSolutionConnectionImpl::StartInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::StartInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -464,7 +464,7 @@ BareMetalSolutionConnectionImpl::StopInstance( StatusOr BareMetalSolutionConnectionImpl::StopInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::StopInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -562,7 +562,7 @@ BareMetalSolutionConnectionImpl::EnableInteractiveSerialConsole( StatusOr BareMetalSolutionConnectionImpl::EnableInteractiveSerialConsole( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2:: EnableInteractiveSerialConsoleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -666,7 +666,7 @@ BareMetalSolutionConnectionImpl::DisableInteractiveSerialConsole( StatusOr BareMetalSolutionConnectionImpl::DisableInteractiveSerialConsole( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2:: DisableInteractiveSerialConsoleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -765,7 +765,7 @@ BareMetalSolutionConnectionImpl::DetachLun( StatusOr BareMetalSolutionConnectionImpl::DetachLun( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::DetachLunRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -975,7 +975,7 @@ BareMetalSolutionConnectionImpl::UpdateVolume( StatusOr BareMetalSolutionConnectionImpl::UpdateVolume( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1084,7 +1084,7 @@ BareMetalSolutionConnectionImpl::EvictVolume( StatusOr BareMetalSolutionConnectionImpl::EvictVolume( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1178,7 +1178,7 @@ BareMetalSolutionConnectionImpl::ResizeVolume( StatusOr BareMetalSolutionConnectionImpl::ResizeVolume( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1340,7 +1340,7 @@ BareMetalSolutionConnectionImpl::UpdateNetwork( StatusOr BareMetalSolutionConnectionImpl::UpdateNetwork( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1450,7 +1450,7 @@ BareMetalSolutionConnectionImpl::RestoreVolumeSnapshot( StatusOr BareMetalSolutionConnectionImpl::RestoreVolumeSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1661,7 +1661,7 @@ BareMetalSolutionConnectionImpl::EvictLun( StatusOr BareMetalSolutionConnectionImpl::EvictLun( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::EvictLunRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1806,7 +1806,7 @@ BareMetalSolutionConnectionImpl::UpdateNfsShare( StatusOr BareMetalSolutionConnectionImpl::UpdateNfsShare( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1902,7 +1902,7 @@ BareMetalSolutionConnectionImpl::CreateNfsShare( StatusOr BareMetalSolutionConnectionImpl::CreateNfsShare( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2014,7 +2014,7 @@ BareMetalSolutionConnectionImpl::DeleteNfsShare( StatusOr BareMetalSolutionConnectionImpl::DeleteNfsShare( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.h b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.h index 06c549e933753..0b9938d288875 100644 --- a/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.h +++ b/google/cloud/baremetalsolution/v2/internal/bare_metal_solution_connection_impl.h @@ -67,7 +67,7 @@ class BareMetalSolutionConnectionImpl request) override; StatusOr UpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateInstanceRequest const& request) override; @@ -85,7 +85,7 @@ class BareMetalSolutionConnectionImpl override; StatusOr ResetInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::ResetInstanceRequest const& request) override; @@ -99,7 +99,7 @@ class BareMetalSolutionConnectionImpl override; StatusOr StartInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::StartInstanceRequest const& request) override; @@ -112,7 +112,7 @@ class BareMetalSolutionConnectionImpl request) override; StatusOr StopInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::StopInstanceRequest const& request) override; @@ -127,7 +127,7 @@ class BareMetalSolutionConnectionImpl EnableInteractiveSerialConsoleRequest const& request) override; StatusOr EnableInteractiveSerialConsole( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2:: EnableInteractiveSerialConsoleRequest const& request) override; @@ -144,7 +144,7 @@ class BareMetalSolutionConnectionImpl DisableInteractiveSerialConsoleRequest const& request) override; StatusOr DisableInteractiveSerialConsole( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2:: DisableInteractiveSerialConsoleRequest const& request) override; @@ -159,7 +159,7 @@ class BareMetalSolutionConnectionImpl override; StatusOr DetachLun( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::DetachLunRequest const& request) override; @@ -192,7 +192,7 @@ class BareMetalSolutionConnectionImpl override; StatusOr UpdateVolume( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateVolumeRequest const& request) override; @@ -209,7 +209,7 @@ class BareMetalSolutionConnectionImpl request) override; StatusOr EvictVolume( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::EvictVolumeRequest const& request) override; @@ -222,7 +222,7 @@ class BareMetalSolutionConnectionImpl override; StatusOr ResizeVolume( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::ResizeVolumeRequest const& request) override; @@ -248,7 +248,7 @@ class BareMetalSolutionConnectionImpl override; StatusOr UpdateNetwork( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateNetworkRequest const& request) override; @@ -267,7 +267,7 @@ class BareMetalSolutionConnectionImpl request) override; StatusOr RestoreVolumeSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const& request) override; @@ -302,7 +302,7 @@ class BareMetalSolutionConnectionImpl override; StatusOr EvictLun( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::EvictLunRequest const& request) override; @@ -324,7 +324,7 @@ class BareMetalSolutionConnectionImpl request) override; StatusOr UpdateNfsShare( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const& request) override; @@ -338,7 +338,7 @@ class BareMetalSolutionConnectionImpl request) override; StatusOr CreateNfsShare( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::CreateNfsShareRequest const& request) override; @@ -356,7 +356,7 @@ class BareMetalSolutionConnectionImpl request) override; StatusOr DeleteNfsShare( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const& request) override; diff --git a/google/cloud/batch/v1/internal/batch_connection_impl.cc b/google/cloud/batch/v1/internal/batch_connection_impl.cc index 2b2accd5e1f31..ce0358c1731ba 100644 --- a/google/cloud/batch/v1/internal/batch_connection_impl.cc +++ b/google/cloud/batch/v1/internal/batch_connection_impl.cc @@ -127,7 +127,7 @@ BatchServiceConnectionImpl::DeleteJob( } StatusOr BatchServiceConnectionImpl::DeleteJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::batch::v1::DeleteJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/batch/v1/internal/batch_connection_impl.h b/google/cloud/batch/v1/internal/batch_connection_impl.h index 3c6b8477e3d66..f44fb5c94ca4c 100644 --- a/google/cloud/batch/v1/internal/batch_connection_impl.h +++ b/google/cloud/batch/v1/internal/batch_connection_impl.h @@ -61,7 +61,7 @@ class BatchServiceConnectionImpl : public batch_v1::BatchServiceConnection { google::cloud::batch::v1::DeleteJobRequest const& request) override; StatusOr DeleteJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::batch::v1::DeleteJobRequest const& request) override; future> DeleteJob( diff --git a/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.cc b/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.cc index 4214f876d8b6e..7d3f0fd73171e 100644 --- a/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.cc +++ b/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.cc @@ -174,7 +174,7 @@ AppConnectionsServiceConnectionImpl::CreateAppConnection( StatusOr AppConnectionsServiceConnectionImpl::CreateAppConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: CreateAppConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -269,7 +269,7 @@ AppConnectionsServiceConnectionImpl::UpdateAppConnection( StatusOr AppConnectionsServiceConnectionImpl::UpdateAppConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: UpdateAppConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -367,7 +367,7 @@ AppConnectionsServiceConnectionImpl::DeleteAppConnection( StatusOr AppConnectionsServiceConnectionImpl::DeleteAppConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: DeleteAppConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.h b/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.h index d78f982ee162b..7ebb9aba7c752 100644 --- a/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.h +++ b/google/cloud/beyondcorp/appconnections/v1/internal/app_connections_connection_impl.h @@ -69,7 +69,7 @@ class AppConnectionsServiceConnectionImpl CreateAppConnectionRequest const& request) override; StatusOr CreateAppConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: CreateAppConnectionRequest const& request) override; @@ -82,7 +82,7 @@ class AppConnectionsServiceConnectionImpl UpdateAppConnectionRequest const& request) override; StatusOr UpdateAppConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: UpdateAppConnectionRequest const& request) override; @@ -96,7 +96,7 @@ class AppConnectionsServiceConnectionImpl DeleteAppConnectionRequest const& request) override; StatusOr DeleteAppConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnections::v1:: DeleteAppConnectionRequest const& request) override; diff --git a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.cc b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.cc index db035d8ac1ad4..91472ec0e5212 100644 --- a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.cc +++ b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.cc @@ -171,7 +171,7 @@ AppConnectorsServiceConnectionImpl::CreateAppConnector( StatusOr AppConnectorsServiceConnectionImpl::CreateAppConnector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: CreateAppConnectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -266,7 +266,7 @@ AppConnectorsServiceConnectionImpl::UpdateAppConnector( StatusOr AppConnectorsServiceConnectionImpl::UpdateAppConnector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: UpdateAppConnectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -364,7 +364,7 @@ AppConnectorsServiceConnectionImpl::DeleteAppConnector( StatusOr AppConnectorsServiceConnectionImpl::DeleteAppConnector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: DeleteAppConnectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -462,7 +462,7 @@ AppConnectorsServiceConnectionImpl::ReportStatus( StatusOr AppConnectorsServiceConnectionImpl::ReportStatus( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.h b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.h index 9d03857ad52da..155f958bbc5b6 100644 --- a/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.h +++ b/google/cloud/beyondcorp/appconnectors/v1/internal/app_connectors_connection_impl.h @@ -68,7 +68,7 @@ class AppConnectorsServiceConnectionImpl CreateAppConnectorRequest const& request) override; StatusOr CreateAppConnector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: CreateAppConnectorRequest const& request) override; @@ -81,7 +81,7 @@ class AppConnectorsServiceConnectionImpl UpdateAppConnectorRequest const& request) override; StatusOr UpdateAppConnector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: UpdateAppConnectorRequest const& request) override; @@ -95,7 +95,7 @@ class AppConnectorsServiceConnectionImpl DeleteAppConnectorRequest const& request) override; StatusOr DeleteAppConnector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1:: DeleteAppConnectorRequest const& request) override; @@ -110,7 +110,7 @@ class AppConnectorsServiceConnectionImpl request) override; StatusOr ReportStatus( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appconnectors::v1::ReportStatusRequest const& request) override; diff --git a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.cc b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.cc index 371c1ebfd3ac9..fa67ac6e1b81c 100644 --- a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.cc +++ b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.cc @@ -168,7 +168,7 @@ AppGatewaysServiceConnectionImpl::CreateAppGateway( StatusOr AppGatewaysServiceConnectionImpl::CreateAppGateway( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appgateways::v1::CreateAppGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -265,7 +265,7 @@ AppGatewaysServiceConnectionImpl::DeleteAppGateway( StatusOr AppGatewaysServiceConnectionImpl::DeleteAppGateway( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appgateways::v1::DeleteAppGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.h b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.h index dcfe267c6e9b8..dc9c667d125a2 100644 --- a/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.h +++ b/google/cloud/beyondcorp/appgateways/v1/internal/app_gateways_connection_impl.h @@ -70,7 +70,7 @@ class AppGatewaysServiceConnectionImpl request) override; StatusOr CreateAppGateway( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appgateways::v1::CreateAppGatewayRequest const& request) override; @@ -85,7 +85,7 @@ class AppGatewaysServiceConnectionImpl request) override; StatusOr DeleteAppGateway( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::beyondcorp::appgateways::v1::DeleteAppGatewayRequest const& request) override; diff --git a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.cc b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.cc index babf4aaca5504..3bb2de0bc88cb 100644 --- a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.cc +++ b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.cc @@ -373,7 +373,7 @@ AnalyticsHubServiceConnectionImpl::SubscribeDataExchange( StatusOr AnalyticsHubServiceConnectionImpl::SubscribeDataExchange( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: SubscribeDataExchangeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -472,7 +472,7 @@ AnalyticsHubServiceConnectionImpl::RefreshSubscription( StatusOr AnalyticsHubServiceConnectionImpl::RefreshSubscription( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1::RefreshSubscriptionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -678,7 +678,7 @@ AnalyticsHubServiceConnectionImpl::DeleteSubscription( StatusOr AnalyticsHubServiceConnectionImpl::DeleteSubscription( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1::DeleteSubscriptionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.h b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.h index 56293dfc61ba3..992a5cb551f29 100644 --- a/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.h +++ b/google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_connection_impl.h @@ -113,7 +113,7 @@ class AnalyticsHubServiceConnectionImpl SubscribeDataExchangeRequest const& request) override; StatusOr SubscribeDataExchange( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: SubscribeDataExchangeRequest const& request) override; @@ -129,7 +129,7 @@ class AnalyticsHubServiceConnectionImpl RefreshSubscriptionRequest const& request) override; StatusOr RefreshSubscription( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: RefreshSubscriptionRequest const& request) override; @@ -163,7 +163,7 @@ class AnalyticsHubServiceConnectionImpl DeleteSubscriptionRequest const& request) override; StatusOr DeleteSubscription( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1:: DeleteSubscriptionRequest const& request) override; diff --git a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.cc b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.cc index b9bd60134f3dd..871f8b4fcbbb9 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.cc +++ b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.cc @@ -112,7 +112,7 @@ BigtableInstanceAdminConnectionImpl::CreateInstance( StatusOr BigtableInstanceAdminConnectionImpl::CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -247,7 +247,7 @@ BigtableInstanceAdminConnectionImpl::PartialUpdateInstance( StatusOr BigtableInstanceAdminConnectionImpl::PartialUpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -353,7 +353,7 @@ BigtableInstanceAdminConnectionImpl::CreateCluster( StatusOr BigtableInstanceAdminConnectionImpl::CreateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -470,7 +470,7 @@ BigtableInstanceAdminConnectionImpl::UpdateCluster( StatusOr BigtableInstanceAdminConnectionImpl::UpdateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::Cluster const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -561,7 +561,7 @@ BigtableInstanceAdminConnectionImpl::PartialUpdateCluster( StatusOr BigtableInstanceAdminConnectionImpl::PartialUpdateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::PartialUpdateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -730,7 +730,7 @@ BigtableInstanceAdminConnectionImpl::UpdateAppProfile( StatusOr BigtableInstanceAdminConnectionImpl::UpdateAppProfile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateAppProfileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.h b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.h index c68a667902caf..12fb2202b4ac6 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.h +++ b/google/cloud/bigtable/admin/internal/bigtable_instance_admin_connection_impl.h @@ -57,7 +57,7 @@ class BigtableInstanceAdminConnectionImpl override; StatusOr CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateInstanceRequest const& request) override; @@ -80,7 +80,7 @@ class BigtableInstanceAdminConnectionImpl override; StatusOr PartialUpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::PartialUpdateInstanceRequest const& request) override; @@ -97,7 +97,7 @@ class BigtableInstanceAdminConnectionImpl override; StatusOr CreateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateClusterRequest const& request) override; @@ -115,7 +115,7 @@ class BigtableInstanceAdminConnectionImpl google::bigtable::admin::v2::Cluster const& request) override; StatusOr UpdateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::Cluster const& request) override; future> UpdateCluster( @@ -127,7 +127,7 @@ class BigtableInstanceAdminConnectionImpl override; StatusOr PartialUpdateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::PartialUpdateClusterRequest const& request) override; @@ -154,7 +154,7 @@ class BigtableInstanceAdminConnectionImpl override; StatusOr UpdateAppProfile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateAppProfileRequest const& request) override; diff --git a/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.cc b/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.cc index d9b593aa22343..017caedef2617 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.cc +++ b/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.cc @@ -172,7 +172,7 @@ BigtableTableAdminConnectionImpl::UpdateTable( StatusOr BigtableTableAdminConnectionImpl::UpdateTable( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateTableRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -275,7 +275,7 @@ BigtableTableAdminConnectionImpl::UndeleteTable( StatusOr BigtableTableAdminConnectionImpl::UndeleteTable( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UndeleteTableRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -366,7 +366,7 @@ BigtableTableAdminConnectionImpl::CreateAuthorizedView( StatusOr BigtableTableAdminConnectionImpl::CreateAuthorizedView( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -510,7 +510,7 @@ BigtableTableAdminConnectionImpl::UpdateAuthorizedView( StatusOr BigtableTableAdminConnectionImpl::UpdateAuthorizedView( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -676,7 +676,7 @@ BigtableTableAdminConnectionImpl::CreateBackup( StatusOr BigtableTableAdminConnectionImpl::CreateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -841,7 +841,7 @@ BigtableTableAdminConnectionImpl::RestoreTable( StatusOr BigtableTableAdminConnectionImpl::RestoreTable( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::RestoreTableRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -931,7 +931,7 @@ BigtableTableAdminConnectionImpl::CopyBackup( StatusOr BigtableTableAdminConnectionImpl::CopyBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CopyBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.h b/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.h index 0111dd532e855..76737dc1cdfff 100644 --- a/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.h +++ b/google/cloud/bigtable/admin/internal/bigtable_table_admin_connection_impl.h @@ -65,7 +65,7 @@ class BigtableTableAdminConnectionImpl google::bigtable::admin::v2::UpdateTableRequest const& request) override; StatusOr UpdateTable( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateTableRequest const& request) override; future> UpdateTable( @@ -80,7 +80,7 @@ class BigtableTableAdminConnectionImpl override; StatusOr UndeleteTable( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UndeleteTableRequest const& request) override; @@ -94,7 +94,7 @@ class BigtableTableAdminConnectionImpl override; StatusOr CreateAuthorizedView( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateAuthorizedViewRequest const& request) override; @@ -116,7 +116,7 @@ class BigtableTableAdminConnectionImpl override; StatusOr UpdateAuthorizedView( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::UpdateAuthorizedViewRequest const& request) override; @@ -149,7 +149,7 @@ class BigtableTableAdminConnectionImpl google::bigtable::admin::v2::CreateBackupRequest const& request) override; StatusOr CreateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CreateBackupRequest const& request) override; future> CreateBackup( @@ -172,7 +172,7 @@ class BigtableTableAdminConnectionImpl google::bigtable::admin::v2::RestoreTableRequest const& request) override; StatusOr RestoreTable( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::RestoreTableRequest const& request) override; future> RestoreTable( @@ -183,7 +183,7 @@ class BigtableTableAdminConnectionImpl google::bigtable::admin::v2::CopyBackupRequest const& request) override; StatusOr CopyBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::bigtable::admin::v2::CopyBackupRequest const& request) override; future> CopyBackup( diff --git a/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.cc b/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.cc index 2dd82aa6a82fb..25563cee3f4cc 100644 --- a/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.cc +++ b/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.cc @@ -168,7 +168,7 @@ CertificateManagerConnectionImpl::CreateCertificate( StatusOr CertificateManagerConnectionImpl::CreateCertificate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateCertificateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -265,7 +265,7 @@ CertificateManagerConnectionImpl::UpdateCertificate( StatusOr CertificateManagerConnectionImpl::UpdateCertificate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateCertificateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -362,7 +362,7 @@ CertificateManagerConnectionImpl::DeleteCertificate( StatusOr CertificateManagerConnectionImpl::DeleteCertificate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteCertificateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -510,7 +510,7 @@ CertificateManagerConnectionImpl::CreateCertificateMap( StatusOr CertificateManagerConnectionImpl::CreateCertificateMap( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -605,7 +605,7 @@ CertificateManagerConnectionImpl::UpdateCertificateMap( StatusOr CertificateManagerConnectionImpl::UpdateCertificateMap( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -700,7 +700,7 @@ CertificateManagerConnectionImpl::DeleteCertificateMap( StatusOr CertificateManagerConnectionImpl::DeleteCertificateMap( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -850,7 +850,7 @@ CertificateManagerConnectionImpl::CreateCertificateMapEntry( StatusOr CertificateManagerConnectionImpl::CreateCertificateMapEntry( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateCertificateMapEntryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -945,7 +945,7 @@ CertificateManagerConnectionImpl::UpdateCertificateMapEntry( StatusOr CertificateManagerConnectionImpl::UpdateCertificateMapEntry( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: UpdateCertificateMapEntryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1040,7 +1040,7 @@ CertificateManagerConnectionImpl::DeleteCertificateMapEntry( StatusOr CertificateManagerConnectionImpl::DeleteCertificateMapEntry( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteCertificateMapEntryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1189,7 +1189,7 @@ CertificateManagerConnectionImpl::CreateDnsAuthorization( StatusOr CertificateManagerConnectionImpl::CreateDnsAuthorization( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateDnsAuthorizationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1284,7 +1284,7 @@ CertificateManagerConnectionImpl::UpdateDnsAuthorization( StatusOr CertificateManagerConnectionImpl::UpdateDnsAuthorization( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateDnsAuthorizationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1379,7 +1379,7 @@ CertificateManagerConnectionImpl::DeleteDnsAuthorization( StatusOr CertificateManagerConnectionImpl::DeleteDnsAuthorization( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteDnsAuthorizationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1534,7 +1534,7 @@ CertificateManagerConnectionImpl::CreateCertificateIssuanceConfig( StatusOr CertificateManagerConnectionImpl::CreateCertificateIssuanceConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateCertificateIssuanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1633,7 +1633,7 @@ CertificateManagerConnectionImpl::DeleteCertificateIssuanceConfig( StatusOr CertificateManagerConnectionImpl::DeleteCertificateIssuanceConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteCertificateIssuanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1782,7 +1782,7 @@ CertificateManagerConnectionImpl::CreateTrustConfig( StatusOr CertificateManagerConnectionImpl::CreateTrustConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1879,7 +1879,7 @@ CertificateManagerConnectionImpl::UpdateTrustConfig( StatusOr CertificateManagerConnectionImpl::UpdateTrustConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1976,7 +1976,7 @@ CertificateManagerConnectionImpl::DeleteTrustConfig( StatusOr CertificateManagerConnectionImpl::DeleteTrustConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.h b/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.h index a563bcbc4be52..84ad60b67a64f 100644 --- a/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.h +++ b/google/cloud/certificatemanager/v1/internal/certificate_manager_connection_impl.h @@ -68,7 +68,7 @@ class CertificateManagerConnectionImpl request) override; StatusOr CreateCertificate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateCertificateRequest const& request) override; @@ -82,7 +82,7 @@ class CertificateManagerConnectionImpl request) override; StatusOr UpdateCertificate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateCertificateRequest const& request) override; @@ -96,7 +96,7 @@ class CertificateManagerConnectionImpl request) override; StatusOr DeleteCertificate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteCertificateRequest const& request) override; @@ -120,7 +120,7 @@ class CertificateManagerConnectionImpl request) override; StatusOr CreateCertificateMap( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateCertificateMapRequest const& request) override; @@ -135,7 +135,7 @@ class CertificateManagerConnectionImpl request) override; StatusOr UpdateCertificateMap( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateCertificateMapRequest const& request) override; @@ -150,7 +150,7 @@ class CertificateManagerConnectionImpl request) override; StatusOr DeleteCertificateMap( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteCertificateMapRequest const& request) override; @@ -175,7 +175,7 @@ class CertificateManagerConnectionImpl CreateCertificateMapEntryRequest const& request) override; StatusOr CreateCertificateMapEntry( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateCertificateMapEntryRequest const& request) override; @@ -190,7 +190,7 @@ class CertificateManagerConnectionImpl UpdateCertificateMapEntryRequest const& request) override; StatusOr UpdateCertificateMapEntry( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: UpdateCertificateMapEntryRequest const& request) override; @@ -205,7 +205,7 @@ class CertificateManagerConnectionImpl DeleteCertificateMapEntryRequest const& request) override; StatusOr DeleteCertificateMapEntry( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteCertificateMapEntryRequest const& request) override; @@ -230,7 +230,7 @@ class CertificateManagerConnectionImpl CreateDnsAuthorizationRequest const& request) override; StatusOr CreateDnsAuthorization( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateDnsAuthorizationRequest const& request) override; @@ -245,7 +245,7 @@ class CertificateManagerConnectionImpl UpdateDnsAuthorizationRequest const& request) override; StatusOr UpdateDnsAuthorization( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: UpdateDnsAuthorizationRequest const& request) override; @@ -260,7 +260,7 @@ class CertificateManagerConnectionImpl DeleteDnsAuthorizationRequest const& request) override; StatusOr DeleteDnsAuthorization( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteDnsAuthorizationRequest const& request) override; @@ -286,7 +286,7 @@ class CertificateManagerConnectionImpl CreateCertificateIssuanceConfigRequest const& request) override; StatusOr CreateCertificateIssuanceConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: CreateCertificateIssuanceConfigRequest const& request) override; @@ -302,7 +302,7 @@ class CertificateManagerConnectionImpl DeleteCertificateIssuanceConfigRequest const& request) override; StatusOr DeleteCertificateIssuanceConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1:: DeleteCertificateIssuanceConfigRequest const& request) override; @@ -326,7 +326,7 @@ class CertificateManagerConnectionImpl request) override; StatusOr CreateTrustConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::CreateTrustConfigRequest const& request) override; @@ -340,7 +340,7 @@ class CertificateManagerConnectionImpl request) override; StatusOr UpdateTrustConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::UpdateTrustConfigRequest const& request) override; @@ -354,7 +354,7 @@ class CertificateManagerConnectionImpl request) override; StatusOr DeleteTrustConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::certificatemanager::v1::DeleteTrustConfigRequest const& request) override; diff --git a/google/cloud/channel/v1/internal/cloud_channel_connection_impl.cc b/google/cloud/channel/v1/internal/cloud_channel_connection_impl.cc index 67df8ff779c77..9c4972c47abdc 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_connection_impl.cc +++ b/google/cloud/channel/v1/internal/cloud_channel_connection_impl.cc @@ -229,7 +229,7 @@ CloudChannelServiceConnectionImpl::ProvisionCloudIdentity( StatusOr CloudChannelServiceConnectionImpl::ProvisionCloudIdentity( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -440,7 +440,7 @@ CloudChannelServiceConnectionImpl::CreateEntitlement( StatusOr CloudChannelServiceConnectionImpl::CreateEntitlement( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::CreateEntitlementRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -531,7 +531,7 @@ CloudChannelServiceConnectionImpl::ChangeParameters( StatusOr CloudChannelServiceConnectionImpl::ChangeParameters( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeParametersRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -623,7 +623,7 @@ CloudChannelServiceConnectionImpl::ChangeRenewalSettings( StatusOr CloudChannelServiceConnectionImpl::ChangeRenewalSettings( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -714,7 +714,7 @@ CloudChannelServiceConnectionImpl::ChangeOffer( StatusOr CloudChannelServiceConnectionImpl::ChangeOffer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeOfferRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -804,7 +804,7 @@ CloudChannelServiceConnectionImpl::StartPaidService( StatusOr CloudChannelServiceConnectionImpl::StartPaidService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::StartPaidServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -896,7 +896,7 @@ CloudChannelServiceConnectionImpl::SuspendEntitlement( StatusOr CloudChannelServiceConnectionImpl::SuspendEntitlement( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::SuspendEntitlementRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -987,7 +987,7 @@ CloudChannelServiceConnectionImpl::CancelEntitlement( StatusOr CloudChannelServiceConnectionImpl::CancelEntitlement( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::CancelEntitlementRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1080,7 +1080,7 @@ CloudChannelServiceConnectionImpl::ActivateEntitlement( StatusOr CloudChannelServiceConnectionImpl::ActivateEntitlement( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ActivateEntitlementRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1172,7 +1172,7 @@ CloudChannelServiceConnectionImpl::TransferEntitlements( StatusOr CloudChannelServiceConnectionImpl::TransferEntitlements( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::TransferEntitlementsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1266,7 +1266,7 @@ CloudChannelServiceConnectionImpl::TransferEntitlementsToGoogle( StatusOr CloudChannelServiceConnectionImpl::TransferEntitlementsToGoogle( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/channel/v1/internal/cloud_channel_connection_impl.h b/google/cloud/channel/v1/internal/cloud_channel_connection_impl.h index 7989354696bc0..1cb1705c77e08 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_connection_impl.h +++ b/google/cloud/channel/v1/internal/cloud_channel_connection_impl.h @@ -83,7 +83,7 @@ class CloudChannelServiceConnectionImpl override; StatusOr ProvisionCloudIdentity( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ProvisionCloudIdentityRequest const& request) override; @@ -111,7 +111,7 @@ class CloudChannelServiceConnectionImpl override; StatusOr CreateEntitlement( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::CreateEntitlementRequest const& request) override; @@ -124,7 +124,7 @@ class CloudChannelServiceConnectionImpl override; StatusOr ChangeParameters( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeParametersRequest const& request) override; @@ -138,7 +138,7 @@ class CloudChannelServiceConnectionImpl override; StatusOr ChangeRenewalSettings( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeRenewalSettingsRequest const& request) override; @@ -151,7 +151,7 @@ class CloudChannelServiceConnectionImpl google::cloud::channel::v1::ChangeOfferRequest const& request) override; StatusOr ChangeOffer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ChangeOfferRequest const& request) override; future> ChangeOffer( @@ -163,7 +163,7 @@ class CloudChannelServiceConnectionImpl override; StatusOr StartPaidService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::StartPaidServiceRequest const& request) override; @@ -176,7 +176,7 @@ class CloudChannelServiceConnectionImpl override; StatusOr SuspendEntitlement( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::SuspendEntitlementRequest const& request) override; @@ -189,7 +189,7 @@ class CloudChannelServiceConnectionImpl request) override; StatusOr CancelEntitlement( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::CancelEntitlementRequest const& request) override; @@ -202,7 +202,7 @@ class CloudChannelServiceConnectionImpl override; StatusOr ActivateEntitlement( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::ActivateEntitlementRequest const& request) override; @@ -216,7 +216,7 @@ class CloudChannelServiceConnectionImpl override; StatusOr TransferEntitlements( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::TransferEntitlementsRequest const& request) override; @@ -231,7 +231,7 @@ class CloudChannelServiceConnectionImpl request) override; StatusOr TransferEntitlementsToGoogle( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const& request) override; diff --git a/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.cc b/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.cc index e574ea25ebdf8..3b4ed77e10815 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.cc +++ b/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.cc @@ -115,7 +115,7 @@ CloudChannelReportsServiceConnectionImpl::RunReportJob( StatusOr CloudChannelReportsServiceConnectionImpl::RunReportJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::RunReportJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.h b/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.h index f2d28e9b1e822..82f9f257279a1 100644 --- a/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.h +++ b/google/cloud/channel/v1/internal/cloud_channel_reports_connection_impl.h @@ -57,7 +57,7 @@ class CloudChannelReportsServiceConnectionImpl google::cloud::channel::v1::RunReportJobRequest const& request) override; StatusOr RunReportJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::channel::v1::RunReportJobRequest const& request) override; future> diff --git a/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.cc b/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.cc index 49347309781f0..28608541e44aa 100644 --- a/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.cc +++ b/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.cc @@ -104,7 +104,7 @@ CloudBuildConnectionImpl::CreateBuild( } StatusOr CloudBuildConnectionImpl::CreateBuild( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::CreateBuildRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -258,7 +258,7 @@ CloudBuildConnectionImpl::RetryBuild( } StatusOr CloudBuildConnectionImpl::RetryBuild( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::RetryBuildRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -350,7 +350,7 @@ CloudBuildConnectionImpl::ApproveBuild( } StatusOr CloudBuildConnectionImpl::ApproveBuild( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::ApproveBuildRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -539,7 +539,7 @@ CloudBuildConnectionImpl::RunBuildTrigger( StatusOr CloudBuildConnectionImpl::RunBuildTrigger( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -649,7 +649,7 @@ CloudBuildConnectionImpl::CreateWorkerPool( StatusOr CloudBuildConnectionImpl::CreateWorkerPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -759,7 +759,7 @@ CloudBuildConnectionImpl::DeleteWorkerPool( StatusOr CloudBuildConnectionImpl::DeleteWorkerPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -854,7 +854,7 @@ CloudBuildConnectionImpl::UpdateWorkerPool( StatusOr CloudBuildConnectionImpl::UpdateWorkerPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.h b/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.h index eabd7a835a7e6..eb5b2a42cc31e 100644 --- a/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.h +++ b/google/cloud/cloudbuild/v1/internal/cloud_build_connection_impl.h @@ -56,7 +56,7 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { override; StatusOr CreateBuild( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::CreateBuildRequest const& request) override; @@ -80,7 +80,7 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { override; StatusOr RetryBuild( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::RetryBuildRequest const& request) override; @@ -93,7 +93,7 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { override; StatusOr ApproveBuild( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::ApproveBuildRequest const& request) override; @@ -126,7 +126,7 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { override; StatusOr RunBuildTrigger( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::RunBuildTriggerRequest const& request) override; @@ -145,7 +145,7 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { override; StatusOr CreateWorkerPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::CreateWorkerPoolRequest const& request) override; @@ -164,7 +164,7 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { override; StatusOr DeleteWorkerPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::DeleteWorkerPoolRequest const& request) override; @@ -179,7 +179,7 @@ class CloudBuildConnectionImpl : public cloudbuild_v1::CloudBuildConnection { override; StatusOr UpdateWorkerPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v1::UpdateWorkerPoolRequest const& request) override; diff --git a/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.cc b/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.cc index 4837291d3d76e..73002d05f3e13 100644 --- a/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.cc +++ b/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.cc @@ -109,7 +109,7 @@ RepositoryManagerConnectionImpl::CreateConnection( StatusOr RepositoryManagerConnectionImpl::CreateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::CreateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -253,7 +253,7 @@ RepositoryManagerConnectionImpl::UpdateConnection( StatusOr RepositoryManagerConnectionImpl::UpdateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -347,7 +347,7 @@ RepositoryManagerConnectionImpl::DeleteConnection( StatusOr RepositoryManagerConnectionImpl::DeleteConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -441,7 +441,7 @@ RepositoryManagerConnectionImpl::CreateRepository( StatusOr RepositoryManagerConnectionImpl::CreateRepository( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -536,7 +536,7 @@ RepositoryManagerConnectionImpl::BatchCreateRepositories( StatusOr RepositoryManagerConnectionImpl::BatchCreateRepositories( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -682,7 +682,7 @@ RepositoryManagerConnectionImpl::DeleteRepository( StatusOr RepositoryManagerConnectionImpl::DeleteRepository( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.h b/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.h index 3c0f99f19189d..d89e4093fb189 100644 --- a/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.h +++ b/google/cloud/cloudbuild/v2/internal/repository_manager_connection_impl.h @@ -58,7 +58,7 @@ class RepositoryManagerConnectionImpl override; StatusOr CreateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::CreateConnectionRequest const& request) override; @@ -80,7 +80,7 @@ class RepositoryManagerConnectionImpl override; StatusOr UpdateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::UpdateConnectionRequest const& request) override; @@ -94,7 +94,7 @@ class RepositoryManagerConnectionImpl override; StatusOr DeleteConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::DeleteConnectionRequest const& request) override; @@ -108,7 +108,7 @@ class RepositoryManagerConnectionImpl override; StatusOr CreateRepository( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::CreateRepositoryRequest const& request) override; @@ -123,7 +123,7 @@ class RepositoryManagerConnectionImpl request) override; StatusOr BatchCreateRepositories( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const& request) override; @@ -147,7 +147,7 @@ class RepositoryManagerConnectionImpl override; StatusOr DeleteRepository( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::devtools::cloudbuild::v2::DeleteRepositoryRequest const& request) override; diff --git a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.cc b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.cc index 7fb568ece1b99..565527ff431a6 100644 --- a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.cc +++ b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.cc @@ -123,7 +123,7 @@ ConsumerProcurementServiceConnectionImpl::PlaceOrder( StatusOr ConsumerProcurementServiceConnectionImpl::PlaceOrder( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::commerce::consumer::procurement::v1::PlaceOrderRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.h b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.h index bac1396061ac4..410c2e4adabd5 100644 --- a/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.h +++ b/google/cloud/commerce/consumer/procurement/v1/internal/consumer_procurement_connection_impl.h @@ -61,7 +61,7 @@ class ConsumerProcurementServiceConnectionImpl PlaceOrderRequest const& request) override; StatusOr PlaceOrder( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::commerce::consumer::procurement::v1:: PlaceOrderRequest const& request) override; diff --git a/google/cloud/composer/v1/internal/environments_connection_impl.cc b/google/cloud/composer/v1/internal/environments_connection_impl.cc index bfae2ed3a21af..a3de0634c386b 100644 --- a/google/cloud/composer/v1/internal/environments_connection_impl.cc +++ b/google/cloud/composer/v1/internal/environments_connection_impl.cc @@ -107,7 +107,7 @@ EnvironmentsConnectionImpl::CreateEnvironment( StatusOr EnvironmentsConnectionImpl::CreateEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: CreateEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -258,7 +258,7 @@ EnvironmentsConnectionImpl::UpdateEnvironment( StatusOr EnvironmentsConnectionImpl::UpdateEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: UpdateEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -356,7 +356,7 @@ EnvironmentsConnectionImpl::DeleteEnvironment( StatusOr EnvironmentsConnectionImpl::DeleteEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: DeleteEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -760,7 +760,7 @@ EnvironmentsConnectionImpl::SaveSnapshot( StatusOr EnvironmentsConnectionImpl::SaveSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: SaveSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -859,7 +859,7 @@ EnvironmentsConnectionImpl::LoadSnapshot( StatusOr EnvironmentsConnectionImpl::LoadSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: LoadSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -959,7 +959,7 @@ EnvironmentsConnectionImpl::DatabaseFailover( StatusOr EnvironmentsConnectionImpl::DatabaseFailover( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: DatabaseFailoverRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/composer/v1/internal/environments_connection_impl.h b/google/cloud/composer/v1/internal/environments_connection_impl.h index f423e9b833ad4..8260234203014 100644 --- a/google/cloud/composer/v1/internal/environments_connection_impl.h +++ b/google/cloud/composer/v1/internal/environments_connection_impl.h @@ -57,7 +57,7 @@ class EnvironmentsConnectionImpl : public composer_v1::EnvironmentsConnection { CreateEnvironmentRequest const& request) override; StatusOr CreateEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: CreateEnvironmentRequest const& request) override; @@ -80,7 +80,7 @@ class EnvironmentsConnectionImpl : public composer_v1::EnvironmentsConnection { UpdateEnvironmentRequest const& request) override; StatusOr UpdateEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: UpdateEnvironmentRequest const& request) override; @@ -95,7 +95,7 @@ class EnvironmentsConnectionImpl : public composer_v1::EnvironmentsConnection { DeleteEnvironmentRequest const& request) override; StatusOr DeleteEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: DeleteEnvironmentRequest const& request) override; @@ -188,7 +188,7 @@ class EnvironmentsConnectionImpl : public composer_v1::EnvironmentsConnection { SaveSnapshotRequest const& request) override; StatusOr SaveSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: SaveSnapshotRequest const& request) override; @@ -203,7 +203,7 @@ class EnvironmentsConnectionImpl : public composer_v1::EnvironmentsConnection { LoadSnapshotRequest const& request) override; StatusOr LoadSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: LoadSnapshotRequest const& request) override; @@ -218,7 +218,7 @@ class EnvironmentsConnectionImpl : public composer_v1::EnvironmentsConnection { DatabaseFailoverRequest const& request) override; StatusOr DatabaseFailover( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::orchestration::airflow::service::v1:: DatabaseFailoverRequest const& request) override; diff --git a/google/cloud/config/v1/internal/config_connection_impl.cc b/google/cloud/config/v1/internal/config_connection_impl.cc index 471ed495cb837..e9a4ce8c98a9e 100644 --- a/google/cloud/config/v1/internal/config_connection_impl.cc +++ b/google/cloud/config/v1/internal/config_connection_impl.cc @@ -150,7 +150,7 @@ ConfigConnectionImpl::CreateDeployment( } StatusOr ConfigConnectionImpl::CreateDeployment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::CreateDeploymentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -240,7 +240,7 @@ ConfigConnectionImpl::UpdateDeployment( } StatusOr ConfigConnectionImpl::UpdateDeployment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::UpdateDeploymentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -330,7 +330,7 @@ ConfigConnectionImpl::DeleteDeployment( } StatusOr ConfigConnectionImpl::DeleteDeployment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::DeleteDeploymentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -572,7 +572,7 @@ ConfigConnectionImpl::LockDeployment( } StatusOr ConfigConnectionImpl::LockDeployment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::LockDeploymentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -661,7 +661,7 @@ ConfigConnectionImpl::UnlockDeployment( } StatusOr ConfigConnectionImpl::UnlockDeployment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::UnlockDeploymentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -765,7 +765,7 @@ ConfigConnectionImpl::CreatePreview( } StatusOr ConfigConnectionImpl::CreatePreview( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::CreatePreviewRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -901,7 +901,7 @@ ConfigConnectionImpl::DeletePreview( } StatusOr ConfigConnectionImpl::DeletePreview( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::DeletePreviewRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/config/v1/internal/config_connection_impl.h b/google/cloud/config/v1/internal/config_connection_impl.h index b6186ccdfcf2f..403a51cc7a5d9 100644 --- a/google/cloud/config/v1/internal/config_connection_impl.h +++ b/google/cloud/config/v1/internal/config_connection_impl.h @@ -61,7 +61,7 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { override; StatusOr CreateDeployment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::CreateDeploymentRequest const& request) override; @@ -74,7 +74,7 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { override; StatusOr UpdateDeployment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::UpdateDeploymentRequest const& request) override; @@ -87,7 +87,7 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { override; StatusOr DeleteDeployment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::DeleteDeploymentRequest const& request) override; @@ -127,7 +127,7 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { google::cloud::config::v1::LockDeploymentRequest const& request) override; StatusOr LockDeployment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::LockDeploymentRequest const& request) override; future> LockDeployment( @@ -139,7 +139,7 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { override; StatusOr UnlockDeployment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::UnlockDeploymentRequest const& request) override; @@ -154,7 +154,7 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { google::cloud::config::v1::CreatePreviewRequest const& request) override; StatusOr CreatePreview( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::CreatePreviewRequest const& request) override; future> CreatePreview( @@ -171,7 +171,7 @@ class ConfigConnectionImpl : public config_v1::ConfigConnection { google::cloud::config::v1::DeletePreviewRequest const& request) override; StatusOr DeletePreview( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::config::v1::DeletePreviewRequest const& request) override; future> DeletePreview( diff --git a/google/cloud/connectors/v1/internal/connectors_connection_impl.cc b/google/cloud/connectors/v1/internal/connectors_connection_impl.cc index e51047cc15c71..f1c5f4543d24a 100644 --- a/google/cloud/connectors/v1/internal/connectors_connection_impl.cc +++ b/google/cloud/connectors/v1/internal/connectors_connection_impl.cc @@ -155,7 +155,7 @@ ConnectorsConnectionImpl::CreateConnection( StatusOr ConnectorsConnectionImpl::CreateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::CreateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -248,7 +248,7 @@ ConnectorsConnectionImpl::UpdateConnection( StatusOr ConnectorsConnectionImpl::UpdateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::UpdateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -341,7 +341,7 @@ ConnectorsConnectionImpl::DeleteConnection( StatusOr ConnectorsConnectionImpl::DeleteConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::DeleteConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -600,7 +600,7 @@ ConnectorsConnectionImpl::RefreshConnectionSchemaMetadata( StatusOr ConnectorsConnectionImpl::RefreshConnectionSchemaMetadata( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::RefreshConnectionSchemaMetadataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/connectors/v1/internal/connectors_connection_impl.h b/google/cloud/connectors/v1/internal/connectors_connection_impl.h index 23032b1b603e9..89d904b3b03f5 100644 --- a/google/cloud/connectors/v1/internal/connectors_connection_impl.h +++ b/google/cloud/connectors/v1/internal/connectors_connection_impl.h @@ -63,7 +63,7 @@ class ConnectorsConnectionImpl : public connectors_v1::ConnectorsConnection { override; StatusOr CreateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::CreateConnectionRequest const& request) override; @@ -76,7 +76,7 @@ class ConnectorsConnectionImpl : public connectors_v1::ConnectorsConnection { override; StatusOr UpdateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::UpdateConnectionRequest const& request) override; @@ -89,7 +89,7 @@ class ConnectorsConnectionImpl : public connectors_v1::ConnectorsConnection { request) override; StatusOr DeleteConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1::DeleteConnectionRequest const& request) override; @@ -131,7 +131,7 @@ class ConnectorsConnectionImpl : public connectors_v1::ConnectorsConnection { RefreshConnectionSchemaMetadataRequest const& request) override; StatusOr RefreshConnectionSchemaMetadata( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::connectors::v1:: RefreshConnectionSchemaMetadataRequest const& request) override; diff --git a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.cc b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.cc index 8cd7154b02543..f8a8efcf3f033 100644 --- a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.cc +++ b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.cc @@ -132,7 +132,7 @@ ContactCenterInsightsConnectionImpl::UploadConversation( StatusOr ContactCenterInsightsConnectionImpl::UploadConversation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::UploadConversationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -312,7 +312,7 @@ ContactCenterInsightsConnectionImpl::CreateAnalysis( StatusOr ContactCenterInsightsConnectionImpl::CreateAnalysis( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -479,7 +479,7 @@ ContactCenterInsightsConnectionImpl::BulkAnalyzeConversations( StatusOr ContactCenterInsightsConnectionImpl::BulkAnalyzeConversations( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: BulkAnalyzeConversationsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -580,7 +580,7 @@ ContactCenterInsightsConnectionImpl::BulkDeleteConversations( StatusOr ContactCenterInsightsConnectionImpl::BulkDeleteConversations( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: BulkDeleteConversationsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -680,7 +680,7 @@ ContactCenterInsightsConnectionImpl::IngestConversations( StatusOr ContactCenterInsightsConnectionImpl::IngestConversations( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::IngestConversationsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -778,7 +778,7 @@ ContactCenterInsightsConnectionImpl::ExportInsightsData( StatusOr ContactCenterInsightsConnectionImpl::ExportInsightsData( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -874,7 +874,7 @@ ContactCenterInsightsConnectionImpl::CreateIssueModel( StatusOr ContactCenterInsightsConnectionImpl::CreateIssueModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1019,7 +1019,7 @@ ContactCenterInsightsConnectionImpl::DeleteIssueModel( StatusOr ContactCenterInsightsConnectionImpl::DeleteIssueModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1116,7 +1116,7 @@ ContactCenterInsightsConnectionImpl::DeployIssueModel( StatusOr ContactCenterInsightsConnectionImpl::DeployIssueModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1213,7 +1213,7 @@ ContactCenterInsightsConnectionImpl::UndeployIssueModel( StatusOr ContactCenterInsightsConnectionImpl::UndeployIssueModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.h b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.h index a96fcc6b2e7dc..d5098faa21359 100644 --- a/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.h +++ b/google/cloud/contactcenterinsights/v1/internal/contact_center_insights_connection_impl.h @@ -65,7 +65,7 @@ class ContactCenterInsightsConnectionImpl request) override; StatusOr UploadConversation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::UploadConversationRequest const& request) override; @@ -98,7 +98,7 @@ class ContactCenterInsightsConnectionImpl request) override; StatusOr CreateAnalysis( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::CreateAnalysisRequest const& request) override; @@ -125,7 +125,7 @@ class ContactCenterInsightsConnectionImpl BulkAnalyzeConversationsRequest const& request) override; StatusOr BulkAnalyzeConversations( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: BulkAnalyzeConversationsRequest const& request) override; @@ -142,7 +142,7 @@ class ContactCenterInsightsConnectionImpl BulkDeleteConversationsRequest const& request) override; StatusOr BulkDeleteConversations( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: BulkDeleteConversationsRequest const& request) override; @@ -158,7 +158,7 @@ class ContactCenterInsightsConnectionImpl IngestConversationsRequest const& request) override; StatusOr IngestConversations( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1:: IngestConversationsRequest const& request) override; @@ -174,7 +174,7 @@ class ContactCenterInsightsConnectionImpl request) override; StatusOr ExportInsightsData( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::ExportInsightsDataRequest const& request) override; @@ -189,7 +189,7 @@ class ContactCenterInsightsConnectionImpl request) override; StatusOr CreateIssueModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::CreateIssueModelRequest const& request) override; @@ -218,7 +218,7 @@ class ContactCenterInsightsConnectionImpl request) override; StatusOr DeleteIssueModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::DeleteIssueModelRequest const& request) override; @@ -234,7 +234,7 @@ class ContactCenterInsightsConnectionImpl request) override; StatusOr DeployIssueModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::DeployIssueModelRequest const& request) override; @@ -250,7 +250,7 @@ class ContactCenterInsightsConnectionImpl request) override; StatusOr UndeployIssueModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contactcenterinsights::v1::UndeployIssueModelRequest const& request) override; diff --git a/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.cc b/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.cc index 3f281272db693..384866ed62c85 100644 --- a/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.cc +++ b/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.cc @@ -109,7 +109,7 @@ PipelineServiceConnectionImpl::RunPipeline( StatusOr PipelineServiceConnectionImpl::RunPipeline( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contentwarehouse::v1::RunPipelineRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.h b/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.h index 0414d477a24ed..fd16b454e74ef 100644 --- a/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.h +++ b/google/cloud/contentwarehouse/v1/internal/pipeline_connection_impl.h @@ -56,7 +56,7 @@ class PipelineServiceConnectionImpl request) override; StatusOr RunPipeline( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::contentwarehouse::v1::RunPipelineRequest const& request) override; diff --git a/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.cc b/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.cc index 0ef5e88ed6823..034ba71db189c 100644 --- a/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.cc +++ b/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.cc @@ -210,7 +210,7 @@ LineageConnectionImpl::DeleteProcess( } StatusOr LineageConnectionImpl::DeleteProcess( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -382,7 +382,7 @@ LineageConnectionImpl::DeleteRun( } StatusOr LineageConnectionImpl::DeleteRun( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.h b/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.h index 47e1cb3861e1d..8257a74f87a36 100644 --- a/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.h +++ b/google/cloud/datacatalog/lineage/v1/internal/lineage_connection_impl.h @@ -79,7 +79,7 @@ class LineageConnectionImpl : public datacatalog_lineage_v1::LineageConnection { request) override; StatusOr DeleteProcess( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::lineage::v1::DeleteProcessRequest const& request) override; @@ -108,7 +108,7 @@ class LineageConnectionImpl : public datacatalog_lineage_v1::LineageConnection { request) override; StatusOr DeleteRun( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::lineage::v1::DeleteRunRequest const& request) override; diff --git a/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.cc b/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.cc index ddd4822945d96..a9859f98c34b7 100644 --- a/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.cc +++ b/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.cc @@ -587,7 +587,7 @@ DataCatalogConnectionImpl::ReconcileTags( StatusOr DataCatalogConnectionImpl::ReconcileTags( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::v1::ReconcileTagsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -749,7 +749,7 @@ DataCatalogConnectionImpl::ImportEntries( StatusOr DataCatalogConnectionImpl::ImportEntries( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::v1::ImportEntriesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.h b/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.h index 2582cba729548..65d4a4f5ff806 100644 --- a/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.h +++ b/google/cloud/datacatalog/v1/internal/data_catalog_connection_impl.h @@ -160,7 +160,7 @@ class DataCatalogConnectionImpl : public datacatalog_v1::DataCatalogConnection { request) override; StatusOr ReconcileTags( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::v1::ReconcileTagsRequest const& request) override; @@ -189,7 +189,7 @@ class DataCatalogConnectionImpl : public datacatalog_v1::DataCatalogConnection { request) override; StatusOr ImportEntries( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datacatalog::v1::ImportEntriesRequest const& request) override; diff --git a/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.cc b/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.cc index 8c25a582a24b6..66fe44036912c 100644 --- a/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.cc +++ b/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.cc @@ -189,7 +189,7 @@ DataFusionConnectionImpl::CreateInstance( StatusOr DataFusionConnectionImpl::CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -280,7 +280,7 @@ DataFusionConnectionImpl::DeleteInstance( StatusOr DataFusionConnectionImpl::DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -372,7 +372,7 @@ DataFusionConnectionImpl::UpdateInstance( StatusOr DataFusionConnectionImpl::UpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -464,7 +464,7 @@ DataFusionConnectionImpl::RestartInstance( StatusOr DataFusionConnectionImpl::RestartInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::RestartInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.h b/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.h index 0269e954bee20..2f5b1d6fcec0e 100644 --- a/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.h +++ b/google/cloud/datafusion/v1/internal/data_fusion_connection_impl.h @@ -67,7 +67,7 @@ class DataFusionConnectionImpl : public datafusion_v1::DataFusionConnection { override; StatusOr CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::CreateInstanceRequest const& request) override; @@ -80,7 +80,7 @@ class DataFusionConnectionImpl : public datafusion_v1::DataFusionConnection { request) override; StatusOr DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::DeleteInstanceRequest const& request) override; @@ -93,7 +93,7 @@ class DataFusionConnectionImpl : public datafusion_v1::DataFusionConnection { override; StatusOr UpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::UpdateInstanceRequest const& request) override; @@ -106,7 +106,7 @@ class DataFusionConnectionImpl : public datafusion_v1::DataFusionConnection { override; StatusOr RestartInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datafusion::v1::RestartInstanceRequest const& request) override; diff --git a/google/cloud/datamigration/v1/internal/data_migration_connection_impl.cc b/google/cloud/datamigration/v1/internal/data_migration_connection_impl.cc index d3cf8fe47e86d..bf993ca357d18 100644 --- a/google/cloud/datamigration/v1/internal/data_migration_connection_impl.cc +++ b/google/cloud/datamigration/v1/internal/data_migration_connection_impl.cc @@ -163,7 +163,7 @@ DataMigrationServiceConnectionImpl::CreateMigrationJob( StatusOr DataMigrationServiceConnectionImpl::CreateMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -256,7 +256,7 @@ DataMigrationServiceConnectionImpl::UpdateMigrationJob( StatusOr DataMigrationServiceConnectionImpl::UpdateMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -349,7 +349,7 @@ DataMigrationServiceConnectionImpl::DeleteMigrationJob( StatusOr DataMigrationServiceConnectionImpl::DeleteMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -442,7 +442,7 @@ DataMigrationServiceConnectionImpl::StartMigrationJob( StatusOr DataMigrationServiceConnectionImpl::StartMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::StartMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -534,7 +534,7 @@ DataMigrationServiceConnectionImpl::StopMigrationJob( StatusOr DataMigrationServiceConnectionImpl::StopMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::StopMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -627,7 +627,7 @@ DataMigrationServiceConnectionImpl::ResumeMigrationJob( StatusOr DataMigrationServiceConnectionImpl::ResumeMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -720,7 +720,7 @@ DataMigrationServiceConnectionImpl::PromoteMigrationJob( StatusOr DataMigrationServiceConnectionImpl::PromoteMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -813,7 +813,7 @@ DataMigrationServiceConnectionImpl::VerifyMigrationJob( StatusOr DataMigrationServiceConnectionImpl::VerifyMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -906,7 +906,7 @@ DataMigrationServiceConnectionImpl::RestartMigrationJob( StatusOr DataMigrationServiceConnectionImpl::RestartMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::RestartMigrationJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1081,7 +1081,7 @@ DataMigrationServiceConnectionImpl::CreateConnectionProfile( StatusOr DataMigrationServiceConnectionImpl::CreateConnectionProfile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateConnectionProfileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1176,7 +1176,7 @@ DataMigrationServiceConnectionImpl::UpdateConnectionProfile( StatusOr DataMigrationServiceConnectionImpl::UpdateConnectionProfile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1271,7 +1271,7 @@ DataMigrationServiceConnectionImpl::DeleteConnectionProfile( StatusOr DataMigrationServiceConnectionImpl::DeleteConnectionProfile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1366,7 +1366,7 @@ DataMigrationServiceConnectionImpl::CreatePrivateConnection( StatusOr DataMigrationServiceConnectionImpl::CreatePrivateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1512,7 +1512,7 @@ DataMigrationServiceConnectionImpl::DeletePrivateConnection( StatusOr DataMigrationServiceConnectionImpl::DeletePrivateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1659,7 +1659,7 @@ DataMigrationServiceConnectionImpl::CreateConversionWorkspace( StatusOr DataMigrationServiceConnectionImpl::CreateConversionWorkspace( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1755,7 +1755,7 @@ DataMigrationServiceConnectionImpl::UpdateConversionWorkspace( StatusOr DataMigrationServiceConnectionImpl::UpdateConversionWorkspace( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1851,7 +1851,7 @@ DataMigrationServiceConnectionImpl::DeleteConversionWorkspace( StatusOr DataMigrationServiceConnectionImpl::DeleteConversionWorkspace( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2026,7 +2026,7 @@ DataMigrationServiceConnectionImpl::SeedConversionWorkspace( StatusOr DataMigrationServiceConnectionImpl::SeedConversionWorkspace( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2120,7 +2120,7 @@ DataMigrationServiceConnectionImpl::ImportMappingRules( StatusOr DataMigrationServiceConnectionImpl::ImportMappingRules( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ImportMappingRulesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2214,7 +2214,7 @@ DataMigrationServiceConnectionImpl::ConvertConversionWorkspace( StatusOr DataMigrationServiceConnectionImpl::ConvertConversionWorkspace( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2310,7 +2310,7 @@ DataMigrationServiceConnectionImpl::CommitConversionWorkspace( StatusOr DataMigrationServiceConnectionImpl::CommitConversionWorkspace( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2406,7 +2406,7 @@ DataMigrationServiceConnectionImpl::RollbackConversionWorkspace( StatusOr DataMigrationServiceConnectionImpl::RollbackConversionWorkspace( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2502,7 +2502,7 @@ DataMigrationServiceConnectionImpl::ApplyConversionWorkspace( StatusOr DataMigrationServiceConnectionImpl::ApplyConversionWorkspace( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/datamigration/v1/internal/data_migration_connection_impl.h b/google/cloud/datamigration/v1/internal/data_migration_connection_impl.h index 52f91448188b8..f71b7942060b7 100644 --- a/google/cloud/datamigration/v1/internal/data_migration_connection_impl.h +++ b/google/cloud/datamigration/v1/internal/data_migration_connection_impl.h @@ -65,7 +65,7 @@ class DataMigrationServiceConnectionImpl override; StatusOr CreateMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateMigrationJobRequest const& request) override; @@ -79,7 +79,7 @@ class DataMigrationServiceConnectionImpl override; StatusOr UpdateMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateMigrationJobRequest const& request) override; @@ -93,7 +93,7 @@ class DataMigrationServiceConnectionImpl override; StatusOr DeleteMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteMigrationJobRequest const& request) override; @@ -106,7 +106,7 @@ class DataMigrationServiceConnectionImpl override; StatusOr StartMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::StartMigrationJobRequest const& request) override; @@ -119,7 +119,7 @@ class DataMigrationServiceConnectionImpl override; StatusOr StopMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::StopMigrationJobRequest const& request) override; @@ -133,7 +133,7 @@ class DataMigrationServiceConnectionImpl override; StatusOr ResumeMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ResumeMigrationJobRequest const& request) override; @@ -147,7 +147,7 @@ class DataMigrationServiceConnectionImpl override; StatusOr PromoteMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::PromoteMigrationJobRequest const& request) override; @@ -161,7 +161,7 @@ class DataMigrationServiceConnectionImpl override; StatusOr VerifyMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::VerifyMigrationJobRequest const& request) override; @@ -175,7 +175,7 @@ class DataMigrationServiceConnectionImpl override; StatusOr RestartMigrationJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::RestartMigrationJobRequest const& request) override; @@ -206,7 +206,7 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr CreateConnectionProfile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateConnectionProfileRequest const& request) override; @@ -221,7 +221,7 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr UpdateConnectionProfile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateConnectionProfileRequest const& request) override; @@ -236,7 +236,7 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr DeleteConnectionProfile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteConnectionProfileRequest const& request) override; @@ -251,7 +251,7 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr CreatePrivateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreatePrivateConnectionRequest const& request) override; @@ -275,7 +275,7 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr DeletePrivateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeletePrivateConnectionRequest const& request) override; @@ -300,7 +300,7 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr CreateConversionWorkspace( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CreateConversionWorkspaceRequest const& request) override; @@ -315,7 +315,7 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr UpdateConversionWorkspace( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::UpdateConversionWorkspaceRequest const& request) override; @@ -330,7 +330,7 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr DeleteConversionWorkspace( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::DeleteConversionWorkspaceRequest const& request) override; @@ -360,7 +360,7 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr SeedConversionWorkspace( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::SeedConversionWorkspaceRequest const& request) override; @@ -375,7 +375,7 @@ class DataMigrationServiceConnectionImpl override; StatusOr ImportMappingRules( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ImportMappingRulesRequest const& request) override; @@ -389,7 +389,7 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr ConvertConversionWorkspace( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ConvertConversionWorkspaceRequest const& request) override; @@ -404,7 +404,7 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr CommitConversionWorkspace( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::CommitConversionWorkspaceRequest const& request) override; @@ -419,7 +419,7 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr RollbackConversionWorkspace( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::RollbackConversionWorkspaceRequest const& request) override; @@ -434,7 +434,7 @@ class DataMigrationServiceConnectionImpl request) override; StatusOr ApplyConversionWorkspace( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::clouddms::v1::ApplyConversionWorkspaceRequest const& request) override; diff --git a/google/cloud/dataplex/v1/internal/catalog_connection_impl.cc b/google/cloud/dataplex/v1/internal/catalog_connection_impl.cc index a1f26a9a52a39..88ab9d06ea423 100644 --- a/google/cloud/dataplex/v1/internal/catalog_connection_impl.cc +++ b/google/cloud/dataplex/v1/internal/catalog_connection_impl.cc @@ -105,7 +105,7 @@ CatalogServiceConnectionImpl::CreateEntryType( StatusOr CatalogServiceConnectionImpl::CreateEntryType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEntryTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -196,7 +196,7 @@ CatalogServiceConnectionImpl::UpdateEntryType( StatusOr CatalogServiceConnectionImpl::UpdateEntryType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -287,7 +287,7 @@ CatalogServiceConnectionImpl::DeleteEntryType( StatusOr CatalogServiceConnectionImpl::DeleteEntryType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -427,7 +427,7 @@ CatalogServiceConnectionImpl::CreateAspectType( StatusOr CatalogServiceConnectionImpl::CreateAspectType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateAspectTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -518,7 +518,7 @@ CatalogServiceConnectionImpl::UpdateAspectType( StatusOr CatalogServiceConnectionImpl::UpdateAspectType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -609,7 +609,7 @@ CatalogServiceConnectionImpl::DeleteAspectType( StatusOr CatalogServiceConnectionImpl::DeleteAspectType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -749,7 +749,7 @@ CatalogServiceConnectionImpl::CreateEntryGroup( StatusOr CatalogServiceConnectionImpl::CreateEntryGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEntryGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -840,7 +840,7 @@ CatalogServiceConnectionImpl::UpdateEntryGroup( StatusOr CatalogServiceConnectionImpl::UpdateEntryGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -931,7 +931,7 @@ CatalogServiceConnectionImpl::DeleteEntryGroup( StatusOr CatalogServiceConnectionImpl::DeleteEntryGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dataplex/v1/internal/catalog_connection_impl.h b/google/cloud/dataplex/v1/internal/catalog_connection_impl.h index 6601011a832de..b9fc42282b025 100644 --- a/google/cloud/dataplex/v1/internal/catalog_connection_impl.h +++ b/google/cloud/dataplex/v1/internal/catalog_connection_impl.h @@ -57,7 +57,7 @@ class CatalogServiceConnectionImpl override; StatusOr CreateEntryType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEntryTypeRequest const& request) override; @@ -70,7 +70,7 @@ class CatalogServiceConnectionImpl override; StatusOr UpdateEntryType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEntryTypeRequest const& request) override; @@ -83,7 +83,7 @@ class CatalogServiceConnectionImpl request) override; StatusOr DeleteEntryType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEntryTypeRequest const& request) override; @@ -102,7 +102,7 @@ class CatalogServiceConnectionImpl override; StatusOr CreateAspectType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateAspectTypeRequest const& request) override; @@ -115,7 +115,7 @@ class CatalogServiceConnectionImpl override; StatusOr UpdateAspectType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateAspectTypeRequest const& request) override; @@ -128,7 +128,7 @@ class CatalogServiceConnectionImpl request) override; StatusOr DeleteAspectType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteAspectTypeRequest const& request) override; @@ -148,7 +148,7 @@ class CatalogServiceConnectionImpl override; StatusOr CreateEntryGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEntryGroupRequest const& request) override; @@ -161,7 +161,7 @@ class CatalogServiceConnectionImpl override; StatusOr UpdateEntryGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEntryGroupRequest const& request) override; @@ -174,7 +174,7 @@ class CatalogServiceConnectionImpl request) override; StatusOr DeleteEntryGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEntryGroupRequest const& request) override; diff --git a/google/cloud/dataplex/v1/internal/data_scan_connection_impl.cc b/google/cloud/dataplex/v1/internal/data_scan_connection_impl.cc index 6039313bd3f68..6c3c66aad77f4 100644 --- a/google/cloud/dataplex/v1/internal/data_scan_connection_impl.cc +++ b/google/cloud/dataplex/v1/internal/data_scan_connection_impl.cc @@ -107,7 +107,7 @@ DataScanServiceConnectionImpl::CreateDataScan( StatusOr DataScanServiceConnectionImpl::CreateDataScan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataScanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -198,7 +198,7 @@ DataScanServiceConnectionImpl::UpdateDataScan( StatusOr DataScanServiceConnectionImpl::UpdateDataScan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataScanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -289,7 +289,7 @@ DataScanServiceConnectionImpl::DeleteDataScan( StatusOr DataScanServiceConnectionImpl::DeleteDataScan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataScanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dataplex/v1/internal/data_scan_connection_impl.h b/google/cloud/dataplex/v1/internal/data_scan_connection_impl.h index 9158c262018a8..1ecf982094f5a 100644 --- a/google/cloud/dataplex/v1/internal/data_scan_connection_impl.h +++ b/google/cloud/dataplex/v1/internal/data_scan_connection_impl.h @@ -57,7 +57,7 @@ class DataScanServiceConnectionImpl override; StatusOr CreateDataScan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataScanRequest const& request) override; @@ -70,7 +70,7 @@ class DataScanServiceConnectionImpl override; StatusOr UpdateDataScan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataScanRequest const& request) override; @@ -83,7 +83,7 @@ class DataScanServiceConnectionImpl request) override; StatusOr DeleteDataScan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataScanRequest const& request) override; diff --git a/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.cc b/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.cc index dd6ce312502df..ce58df1fab25f 100644 --- a/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.cc +++ b/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.cc @@ -109,7 +109,7 @@ DataTaxonomyServiceConnectionImpl::CreateDataTaxonomy( StatusOr DataTaxonomyServiceConnectionImpl::CreateDataTaxonomy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -202,7 +202,7 @@ DataTaxonomyServiceConnectionImpl::UpdateDataTaxonomy( StatusOr DataTaxonomyServiceConnectionImpl::UpdateDataTaxonomy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -295,7 +295,7 @@ DataTaxonomyServiceConnectionImpl::DeleteDataTaxonomy( StatusOr DataTaxonomyServiceConnectionImpl::DeleteDataTaxonomy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -438,7 +438,7 @@ DataTaxonomyServiceConnectionImpl::CreateDataAttributeBinding( StatusOr DataTaxonomyServiceConnectionImpl::CreateDataAttributeBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -534,7 +534,7 @@ DataTaxonomyServiceConnectionImpl::UpdateDataAttributeBinding( StatusOr DataTaxonomyServiceConnectionImpl::UpdateDataAttributeBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -630,7 +630,7 @@ DataTaxonomyServiceConnectionImpl::DeleteDataAttributeBinding( StatusOr DataTaxonomyServiceConnectionImpl::DeleteDataAttributeBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -777,7 +777,7 @@ DataTaxonomyServiceConnectionImpl::CreateDataAttribute( StatusOr DataTaxonomyServiceConnectionImpl::CreateDataAttribute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataAttributeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -870,7 +870,7 @@ DataTaxonomyServiceConnectionImpl::UpdateDataAttribute( StatusOr DataTaxonomyServiceConnectionImpl::UpdateDataAttribute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -963,7 +963,7 @@ DataTaxonomyServiceConnectionImpl::DeleteDataAttribute( StatusOr DataTaxonomyServiceConnectionImpl::DeleteDataAttribute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.h b/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.h index 5c97c24b58067..19ab066217d7a 100644 --- a/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.h +++ b/google/cloud/dataplex/v1/internal/data_taxonomy_connection_impl.h @@ -58,7 +58,7 @@ class DataTaxonomyServiceConnectionImpl override; StatusOr CreateDataTaxonomy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataTaxonomyRequest const& request) override; @@ -72,7 +72,7 @@ class DataTaxonomyServiceConnectionImpl override; StatusOr UpdateDataTaxonomy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataTaxonomyRequest const& request) override; @@ -86,7 +86,7 @@ class DataTaxonomyServiceConnectionImpl override; StatusOr DeleteDataTaxonomy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataTaxonomyRequest const& request) override; @@ -107,7 +107,7 @@ class DataTaxonomyServiceConnectionImpl request) override; StatusOr CreateDataAttributeBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataAttributeBindingRequest const& request) override; @@ -122,7 +122,7 @@ class DataTaxonomyServiceConnectionImpl request) override; StatusOr UpdateDataAttributeBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataAttributeBindingRequest const& request) override; @@ -137,7 +137,7 @@ class DataTaxonomyServiceConnectionImpl request) override; StatusOr DeleteDataAttributeBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataAttributeBindingRequest const& request) override; @@ -162,7 +162,7 @@ class DataTaxonomyServiceConnectionImpl override; StatusOr CreateDataAttribute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateDataAttributeRequest const& request) override; @@ -176,7 +176,7 @@ class DataTaxonomyServiceConnectionImpl override; StatusOr UpdateDataAttribute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateDataAttributeRequest const& request) override; @@ -190,7 +190,7 @@ class DataTaxonomyServiceConnectionImpl override; StatusOr DeleteDataAttribute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteDataAttributeRequest const& request) override; diff --git a/google/cloud/dataplex/v1/internal/dataplex_connection_impl.cc b/google/cloud/dataplex/v1/internal/dataplex_connection_impl.cc index ff8892bb5ad03..ff54f8600055a 100644 --- a/google/cloud/dataplex/v1/internal/dataplex_connection_impl.cc +++ b/google/cloud/dataplex/v1/internal/dataplex_connection_impl.cc @@ -107,7 +107,7 @@ DataplexServiceConnectionImpl::CreateLake( StatusOr DataplexServiceConnectionImpl::CreateLake( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateLakeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -197,7 +197,7 @@ DataplexServiceConnectionImpl::UpdateLake( StatusOr DataplexServiceConnectionImpl::UpdateLake( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateLakeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -287,7 +287,7 @@ DataplexServiceConnectionImpl::DeleteLake( StatusOr DataplexServiceConnectionImpl::DeleteLake( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteLakeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -459,7 +459,7 @@ DataplexServiceConnectionImpl::CreateZone( StatusOr DataplexServiceConnectionImpl::CreateZone( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateZoneRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -549,7 +549,7 @@ DataplexServiceConnectionImpl::UpdateZone( StatusOr DataplexServiceConnectionImpl::UpdateZone( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateZoneRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -639,7 +639,7 @@ DataplexServiceConnectionImpl::DeleteZone( StatusOr DataplexServiceConnectionImpl::DeleteZone( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteZoneRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -811,7 +811,7 @@ DataplexServiceConnectionImpl::CreateAsset( StatusOr DataplexServiceConnectionImpl::CreateAsset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateAssetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -901,7 +901,7 @@ DataplexServiceConnectionImpl::UpdateAsset( StatusOr DataplexServiceConnectionImpl::UpdateAsset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateAssetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -991,7 +991,7 @@ DataplexServiceConnectionImpl::DeleteAsset( StatusOr DataplexServiceConnectionImpl::DeleteAsset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteAssetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1164,7 +1164,7 @@ DataplexServiceConnectionImpl::CreateTask( StatusOr DataplexServiceConnectionImpl::CreateTask( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateTaskRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1254,7 +1254,7 @@ DataplexServiceConnectionImpl::UpdateTask( StatusOr DataplexServiceConnectionImpl::UpdateTask( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateTaskRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1344,7 +1344,7 @@ DataplexServiceConnectionImpl::DeleteTask( StatusOr DataplexServiceConnectionImpl::DeleteTask( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteTaskRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1557,7 +1557,7 @@ DataplexServiceConnectionImpl::CreateEnvironment( StatusOr DataplexServiceConnectionImpl::CreateEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1650,7 +1650,7 @@ DataplexServiceConnectionImpl::UpdateEnvironment( StatusOr DataplexServiceConnectionImpl::UpdateEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1743,7 +1743,7 @@ DataplexServiceConnectionImpl::DeleteEnvironment( StatusOr DataplexServiceConnectionImpl::DeleteEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dataplex/v1/internal/dataplex_connection_impl.h b/google/cloud/dataplex/v1/internal/dataplex_connection_impl.h index 5d1acc38e0853..6bc45d7f31488 100644 --- a/google/cloud/dataplex/v1/internal/dataplex_connection_impl.h +++ b/google/cloud/dataplex/v1/internal/dataplex_connection_impl.h @@ -56,7 +56,7 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::CreateLakeRequest const& request) override; StatusOr CreateLake( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateLakeRequest const& request) override; future> CreateLake( @@ -67,7 +67,7 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::UpdateLakeRequest const& request) override; StatusOr UpdateLake( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateLakeRequest const& request) override; future> UpdateLake( @@ -78,7 +78,7 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::DeleteLakeRequest const& request) override; StatusOr DeleteLake( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteLakeRequest const& request) override; future> DeleteLake( @@ -98,7 +98,7 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::CreateZoneRequest const& request) override; StatusOr CreateZone( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateZoneRequest const& request) override; future> CreateZone( @@ -109,7 +109,7 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::UpdateZoneRequest const& request) override; StatusOr UpdateZone( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateZoneRequest const& request) override; future> UpdateZone( @@ -120,7 +120,7 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::DeleteZoneRequest const& request) override; StatusOr DeleteZone( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteZoneRequest const& request) override; future> DeleteZone( @@ -140,7 +140,7 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::CreateAssetRequest const& request) override; StatusOr CreateAsset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateAssetRequest const& request) override; future> CreateAsset( @@ -151,7 +151,7 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::UpdateAssetRequest const& request) override; StatusOr UpdateAsset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateAssetRequest const& request) override; future> UpdateAsset( @@ -162,7 +162,7 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::DeleteAssetRequest const& request) override; StatusOr DeleteAsset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteAssetRequest const& request) override; future> DeleteAsset( @@ -182,7 +182,7 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::CreateTaskRequest const& request) override; StatusOr CreateTask( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateTaskRequest const& request) override; future> CreateTask( @@ -193,7 +193,7 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::UpdateTaskRequest const& request) override; StatusOr UpdateTask( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateTaskRequest const& request) override; future> UpdateTask( @@ -204,7 +204,7 @@ class DataplexServiceConnectionImpl google::cloud::dataplex::v1::DeleteTaskRequest const& request) override; StatusOr DeleteTask( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteTaskRequest const& request) override; future> DeleteTask( @@ -234,7 +234,7 @@ class DataplexServiceConnectionImpl override; StatusOr CreateEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::CreateEnvironmentRequest const& request) override; @@ -247,7 +247,7 @@ class DataplexServiceConnectionImpl override; StatusOr UpdateEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::UpdateEnvironmentRequest const& request) override; @@ -260,7 +260,7 @@ class DataplexServiceConnectionImpl request) override; StatusOr DeleteEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataplex::v1::DeleteEnvironmentRequest const& request) override; diff --git a/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.cc b/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.cc index db14ad8c7a574..0fb3616f3574d 100644 --- a/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.cc @@ -107,7 +107,7 @@ BatchControllerConnectionImpl::CreateBatch( StatusOr BatchControllerConnectionImpl::CreateBatch( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateBatchRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.h b/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.h index aad9f63b5bf4f..ad524a0ce73ef 100644 --- a/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.h +++ b/google/cloud/dataproc/v1/internal/batch_controller_connection_impl.h @@ -56,7 +56,7 @@ class BatchControllerConnectionImpl google::cloud::dataproc::v1::CreateBatchRequest const& request) override; StatusOr CreateBatch( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateBatchRequest const& request) override; future> CreateBatch( diff --git a/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.cc b/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.cc index a9aa1c1b44ffd..9864d3f4237c6 100644 --- a/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.cc @@ -108,7 +108,7 @@ ClusterControllerConnectionImpl::CreateCluster( StatusOr ClusterControllerConnectionImpl::CreateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -199,7 +199,7 @@ ClusterControllerConnectionImpl::UpdateCluster( StatusOr ClusterControllerConnectionImpl::UpdateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::UpdateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -290,7 +290,7 @@ ClusterControllerConnectionImpl::StopCluster( StatusOr ClusterControllerConnectionImpl::StopCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::StopClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -381,7 +381,7 @@ ClusterControllerConnectionImpl::StartCluster( StatusOr ClusterControllerConnectionImpl::StartCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::StartClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -472,7 +472,7 @@ ClusterControllerConnectionImpl::DeleteCluster( StatusOr ClusterControllerConnectionImpl::DeleteCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DeleteClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -612,7 +612,7 @@ ClusterControllerConnectionImpl::DiagnoseCluster( StatusOr ClusterControllerConnectionImpl::DiagnoseCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DiagnoseClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.h b/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.h index 57f9860bc2523..e725ce98d9a55 100644 --- a/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.h +++ b/google/cloud/dataproc/v1/internal/cluster_controller_connection_impl.h @@ -57,7 +57,7 @@ class ClusterControllerConnectionImpl override; StatusOr CreateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateClusterRequest const& request) override; @@ -70,7 +70,7 @@ class ClusterControllerConnectionImpl override; StatusOr UpdateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::UpdateClusterRequest const& request) override; @@ -82,7 +82,7 @@ class ClusterControllerConnectionImpl google::cloud::dataproc::v1::StopClusterRequest const& request) override; StatusOr StopCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::StopClusterRequest const& request) override; future> StopCluster( @@ -93,7 +93,7 @@ class ClusterControllerConnectionImpl google::cloud::dataproc::v1::StartClusterRequest const& request) override; StatusOr StartCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::StartClusterRequest const& request) override; future> StartCluster( @@ -105,7 +105,7 @@ class ClusterControllerConnectionImpl request) override; StatusOr DeleteCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DeleteClusterRequest const& request) override; @@ -124,7 +124,7 @@ class ClusterControllerConnectionImpl request) override; StatusOr DiagnoseCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DiagnoseClusterRequest const& request) override; diff --git a/google/cloud/dataproc/v1/internal/job_controller_connection_impl.cc b/google/cloud/dataproc/v1/internal/job_controller_connection_impl.cc index 915ad6224304d..84885cb2f2cf1 100644 --- a/google/cloud/dataproc/v1/internal/job_controller_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/job_controller_connection_impl.cc @@ -119,7 +119,7 @@ JobControllerConnectionImpl::SubmitJobAsOperation( StatusOr JobControllerConnectionImpl::SubmitJobAsOperation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::SubmitJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dataproc/v1/internal/job_controller_connection_impl.h b/google/cloud/dataproc/v1/internal/job_controller_connection_impl.h index 2266281ece0f7..515152248c5e3 100644 --- a/google/cloud/dataproc/v1/internal/job_controller_connection_impl.h +++ b/google/cloud/dataproc/v1/internal/job_controller_connection_impl.h @@ -59,7 +59,7 @@ class JobControllerConnectionImpl google::cloud::dataproc::v1::SubmitJobRequest const& request) override; StatusOr SubmitJobAsOperation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::SubmitJobRequest const& request) override; future> SubmitJobAsOperation( diff --git a/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.cc b/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.cc index 13d81b1a070e0..4af8d2cc85444 100644 --- a/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.cc @@ -107,7 +107,7 @@ NodeGroupControllerConnectionImpl::CreateNodeGroup( StatusOr NodeGroupControllerConnectionImpl::CreateNodeGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateNodeGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -199,7 +199,7 @@ NodeGroupControllerConnectionImpl::ResizeNodeGroup( StatusOr NodeGroupControllerConnectionImpl::ResizeNodeGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.h b/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.h index 8bd355553564c..57689ce8a7bfc 100644 --- a/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.h +++ b/google/cloud/dataproc/v1/internal/node_group_controller_connection_impl.h @@ -56,7 +56,7 @@ class NodeGroupControllerConnectionImpl override; StatusOr CreateNodeGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateNodeGroupRequest const& request) override; @@ -69,7 +69,7 @@ class NodeGroupControllerConnectionImpl override; StatusOr ResizeNodeGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::ResizeNodeGroupRequest const& request) override; diff --git a/google/cloud/dataproc/v1/internal/session_controller_connection_impl.cc b/google/cloud/dataproc/v1/internal/session_controller_connection_impl.cc index e671f6bb94b49..fd97fd735788e 100644 --- a/google/cloud/dataproc/v1/internal/session_controller_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/session_controller_connection_impl.cc @@ -108,7 +108,7 @@ SessionControllerConnectionImpl::CreateSession( StatusOr SessionControllerConnectionImpl::CreateSession( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateSessionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -247,7 +247,7 @@ SessionControllerConnectionImpl::TerminateSession( StatusOr SessionControllerConnectionImpl::TerminateSession( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::TerminateSessionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -339,7 +339,7 @@ SessionControllerConnectionImpl::DeleteSession( StatusOr SessionControllerConnectionImpl::DeleteSession( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DeleteSessionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dataproc/v1/internal/session_controller_connection_impl.h b/google/cloud/dataproc/v1/internal/session_controller_connection_impl.h index 5ab5d7ee33c42..977217e472e78 100644 --- a/google/cloud/dataproc/v1/internal/session_controller_connection_impl.h +++ b/google/cloud/dataproc/v1/internal/session_controller_connection_impl.h @@ -57,7 +57,7 @@ class SessionControllerConnectionImpl override; StatusOr CreateSession( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateSessionRequest const& request) override; @@ -76,7 +76,7 @@ class SessionControllerConnectionImpl override; StatusOr TerminateSession( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::TerminateSessionRequest const& request) override; @@ -89,7 +89,7 @@ class SessionControllerConnectionImpl override; StatusOr DeleteSession( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DeleteSessionRequest const& request) override; diff --git a/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.cc b/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.cc index 4cea684040913..3838cc0e192cc 100644 --- a/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.cc +++ b/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.cc @@ -141,7 +141,7 @@ WorkflowTemplateServiceConnectionImpl::InstantiateWorkflowTemplate( StatusOr WorkflowTemplateServiceConnectionImpl::InstantiateWorkflowTemplate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -238,7 +238,7 @@ WorkflowTemplateServiceConnectionImpl::InstantiateInlineWorkflowTemplate( StatusOr WorkflowTemplateServiceConnectionImpl::InstantiateInlineWorkflowTemplate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::InstantiateInlineWorkflowTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.h b/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.h index 67befaa15f8b1..db0107080d64c 100644 --- a/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.h +++ b/google/cloud/dataproc/v1/internal/workflow_template_connection_impl.h @@ -67,7 +67,7 @@ class WorkflowTemplateServiceConnectionImpl request) override; StatusOr InstantiateWorkflowTemplate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const& request) override; @@ -82,7 +82,7 @@ class WorkflowTemplateServiceConnectionImpl InstantiateInlineWorkflowTemplateRequest const& request) override; StatusOr InstantiateInlineWorkflowTemplate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1:: InstantiateInlineWorkflowTemplateRequest const& request) override; diff --git a/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.cc b/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.cc index 7e719203f96a7..d98371a374230 100644 --- a/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.cc +++ b/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.cc @@ -109,7 +109,7 @@ DatastoreAdminConnectionImpl::ExportEntities( StatusOr DatastoreAdminConnectionImpl::ExportEntities( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::ExportEntitiesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -202,7 +202,7 @@ DatastoreAdminConnectionImpl::ImportEntities( StatusOr DatastoreAdminConnectionImpl::ImportEntities( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::ImportEntitiesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -295,7 +295,7 @@ DatastoreAdminConnectionImpl::CreateIndex( StatusOr DatastoreAdminConnectionImpl::CreateIndex( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::CreateIndexRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -386,7 +386,7 @@ DatastoreAdminConnectionImpl::DeleteIndex( StatusOr DatastoreAdminConnectionImpl::DeleteIndex( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::DeleteIndexRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.h b/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.h index 89fcdff3c6314..23bb5997005f3 100644 --- a/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.h +++ b/google/cloud/datastore/admin/v1/internal/datastore_admin_connection_impl.h @@ -57,7 +57,7 @@ class DatastoreAdminConnectionImpl request) override; StatusOr ExportEntities( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::ExportEntitiesRequest const& request) override; @@ -70,7 +70,7 @@ class DatastoreAdminConnectionImpl request) override; StatusOr ImportEntities( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::ImportEntitiesRequest const& request) override; @@ -82,7 +82,7 @@ class DatastoreAdminConnectionImpl google::datastore::admin::v1::CreateIndexRequest const& request) override; StatusOr CreateIndex( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::CreateIndexRequest const& request) override; future> CreateIndex( @@ -93,7 +93,7 @@ class DatastoreAdminConnectionImpl google::datastore::admin::v1::DeleteIndexRequest const& request) override; StatusOr DeleteIndex( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::datastore::admin::v1::DeleteIndexRequest const& request) override; future> DeleteIndex( diff --git a/google/cloud/datastream/v1/internal/datastream_connection_impl.cc b/google/cloud/datastream/v1/internal/datastream_connection_impl.cc index b13795067c663..f59b6b3728c1c 100644 --- a/google/cloud/datastream/v1/internal/datastream_connection_impl.cc +++ b/google/cloud/datastream/v1/internal/datastream_connection_impl.cc @@ -158,7 +158,7 @@ DatastreamConnectionImpl::CreateConnectionProfile( StatusOr DatastreamConnectionImpl::CreateConnectionProfile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateConnectionProfileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -254,7 +254,7 @@ DatastreamConnectionImpl::UpdateConnectionProfile( StatusOr DatastreamConnectionImpl::UpdateConnectionProfile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::UpdateConnectionProfileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -350,7 +350,7 @@ DatastreamConnectionImpl::DeleteConnectionProfile( StatusOr DatastreamConnectionImpl::DeleteConnectionProfile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteConnectionProfileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -508,7 +508,7 @@ DatastreamConnectionImpl::CreateStream( } StatusOr DatastreamConnectionImpl::CreateStream( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateStreamRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -598,7 +598,7 @@ DatastreamConnectionImpl::UpdateStream( } StatusOr DatastreamConnectionImpl::UpdateStream( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::UpdateStreamRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -688,7 +688,7 @@ DatastreamConnectionImpl::DeleteStream( } StatusOr DatastreamConnectionImpl::DeleteStream( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteStreamRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -908,7 +908,7 @@ DatastreamConnectionImpl::CreatePrivateConnection( StatusOr DatastreamConnectionImpl::CreatePrivateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreatePrivateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1055,7 +1055,7 @@ DatastreamConnectionImpl::DeletePrivateConnection( StatusOr DatastreamConnectionImpl::DeletePrivateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeletePrivateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1148,7 +1148,7 @@ DatastreamConnectionImpl::CreateRoute( } StatusOr DatastreamConnectionImpl::CreateRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1285,7 +1285,7 @@ DatastreamConnectionImpl::DeleteRoute( } StatusOr DatastreamConnectionImpl::DeleteRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/datastream/v1/internal/datastream_connection_impl.h b/google/cloud/datastream/v1/internal/datastream_connection_impl.h index 12320b9fde195..bf3875cce87fb 100644 --- a/google/cloud/datastream/v1/internal/datastream_connection_impl.h +++ b/google/cloud/datastream/v1/internal/datastream_connection_impl.h @@ -67,7 +67,7 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { request) override; StatusOr CreateConnectionProfile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateConnectionProfileRequest const& request) override; @@ -82,7 +82,7 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { request) override; StatusOr UpdateConnectionProfile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::UpdateConnectionProfileRequest const& request) override; @@ -97,7 +97,7 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { request) override; StatusOr DeleteConnectionProfile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteConnectionProfileRequest const& request) override; @@ -122,7 +122,7 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { override; StatusOr CreateStream( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateStreamRequest const& request) override; @@ -135,7 +135,7 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { override; StatusOr UpdateStream( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::UpdateStreamRequest const& request) override; @@ -148,7 +148,7 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { request) override; StatusOr DeleteStream( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteStreamRequest const& request) override; @@ -184,7 +184,7 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { request) override; StatusOr CreatePrivateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreatePrivateConnectionRequest const& request) override; @@ -209,7 +209,7 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { request) override; StatusOr DeletePrivateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeletePrivateConnectionRequest const& request) override; @@ -223,7 +223,7 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { override; StatusOr CreateRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::CreateRouteRequest const& request) override; @@ -242,7 +242,7 @@ class DatastreamConnectionImpl : public datastream_v1::DatastreamConnection { override; StatusOr DeleteRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::datastream::v1::DeleteRouteRequest const& request) override; diff --git a/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.cc b/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.cc index e89dae89cb927..79b869d2685bb 100644 --- a/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.cc +++ b/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.cc @@ -155,7 +155,7 @@ CloudDeployConnectionImpl::CreateDeliveryPipeline( StatusOr CloudDeployConnectionImpl::CreateDeliveryPipeline( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -248,7 +248,7 @@ CloudDeployConnectionImpl::UpdateDeliveryPipeline( StatusOr CloudDeployConnectionImpl::UpdateDeliveryPipeline( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -341,7 +341,7 @@ CloudDeployConnectionImpl::DeleteDeliveryPipeline( StatusOr CloudDeployConnectionImpl::DeleteDeliveryPipeline( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -495,7 +495,7 @@ CloudDeployConnectionImpl::CreateTarget( StatusOr CloudDeployConnectionImpl::CreateTarget( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateTargetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -585,7 +585,7 @@ CloudDeployConnectionImpl::UpdateTarget( StatusOr CloudDeployConnectionImpl::UpdateTarget( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateTargetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -675,7 +675,7 @@ CloudDeployConnectionImpl::DeleteTarget( StatusOr CloudDeployConnectionImpl::DeleteTarget( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteTargetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -818,7 +818,7 @@ CloudDeployConnectionImpl::CreateCustomTargetType( StatusOr CloudDeployConnectionImpl::CreateCustomTargetType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -911,7 +911,7 @@ CloudDeployConnectionImpl::UpdateCustomTargetType( StatusOr CloudDeployConnectionImpl::UpdateCustomTargetType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1004,7 +1004,7 @@ CloudDeployConnectionImpl::DeleteCustomTargetType( StatusOr CloudDeployConnectionImpl::DeleteCustomTargetType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1144,7 +1144,7 @@ CloudDeployConnectionImpl::CreateRelease( StatusOr CloudDeployConnectionImpl::CreateRelease( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateReleaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1338,7 +1338,7 @@ CloudDeployConnectionImpl::CreateRollout( StatusOr CloudDeployConnectionImpl::CreateRollout( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateRolloutRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1532,7 +1532,7 @@ CloudDeployConnectionImpl::CreateAutomation( StatusOr CloudDeployConnectionImpl::CreateAutomation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateAutomationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1623,7 +1623,7 @@ CloudDeployConnectionImpl::UpdateAutomation( StatusOr CloudDeployConnectionImpl::UpdateAutomation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateAutomationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1714,7 +1714,7 @@ CloudDeployConnectionImpl::DeleteAutomation( StatusOr CloudDeployConnectionImpl::DeleteAutomation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteAutomationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.h b/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.h index 215f463d16828..f686b81197ded 100644 --- a/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.h +++ b/google/cloud/deploy/v1/internal/cloud_deploy_connection_impl.h @@ -65,7 +65,7 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { override; StatusOr CreateDeliveryPipeline( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateDeliveryPipelineRequest const& request) override; @@ -80,7 +80,7 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { override; StatusOr UpdateDeliveryPipeline( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateDeliveryPipelineRequest const& request) override; @@ -95,7 +95,7 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { override; StatusOr DeleteDeliveryPipeline( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteDeliveryPipelineRequest const& request) override; @@ -117,7 +117,7 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::CreateTargetRequest const& request) override; StatusOr CreateTarget( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateTargetRequest const& request) override; future> CreateTarget( @@ -128,7 +128,7 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::UpdateTargetRequest const& request) override; StatusOr UpdateTarget( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateTargetRequest const& request) override; future> UpdateTarget( @@ -139,7 +139,7 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::DeleteTargetRequest const& request) override; StatusOr DeleteTarget( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteTargetRequest const& request) override; future> DeleteTarget( @@ -160,7 +160,7 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { override; StatusOr CreateCustomTargetType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateCustomTargetTypeRequest const& request) override; @@ -175,7 +175,7 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { override; StatusOr UpdateCustomTargetType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateCustomTargetTypeRequest const& request) override; @@ -190,7 +190,7 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { override; StatusOr DeleteCustomTargetType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteCustomTargetTypeRequest const& request) override; @@ -209,7 +209,7 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::CreateReleaseRequest const& request) override; StatusOr CreateRelease( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateReleaseRequest const& request) override; future> CreateRelease( @@ -238,7 +238,7 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { google::cloud::deploy::v1::CreateRolloutRequest const& request) override; StatusOr CreateRollout( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateRolloutRequest const& request) override; future> CreateRollout( @@ -269,7 +269,7 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { override; StatusOr CreateAutomation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::CreateAutomationRequest const& request) override; @@ -282,7 +282,7 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { override; StatusOr UpdateAutomation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::UpdateAutomationRequest const& request) override; @@ -295,7 +295,7 @@ class CloudDeployConnectionImpl : public deploy_v1::CloudDeployConnection { request) override; StatusOr DeleteAutomation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::deploy::v1::DeleteAutomationRequest const& request) override; diff --git a/google/cloud/dialogflow_cx/internal/agents_connection_impl.cc b/google/cloud/dialogflow_cx/internal/agents_connection_impl.cc index 1e7817171de74..40a23e7c102cf 100644 --- a/google/cloud/dialogflow_cx/internal/agents_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/agents_connection_impl.cc @@ -196,7 +196,7 @@ AgentsConnectionImpl::ExportAgent( } StatusOr AgentsConnectionImpl::ExportAgent( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -286,7 +286,7 @@ future> AgentsConnectionImpl::RestoreAgent( } StatusOr AgentsConnectionImpl::RestoreAgent( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dialogflow_cx/internal/agents_connection_impl.h b/google/cloud/dialogflow_cx/internal/agents_connection_impl.h index c8d1a0f8c3ab7..d6ba3e56df2b7 100644 --- a/google/cloud/dialogflow_cx/internal/agents_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/agents_connection_impl.h @@ -75,7 +75,7 @@ class AgentsConnectionImpl : public dialogflow_cx::AgentsConnection { request) override; StatusOr ExportAgent( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportAgentRequest const& request) override; @@ -88,7 +88,7 @@ class AgentsConnectionImpl : public dialogflow_cx::AgentsConnection { override; StatusOr RestoreAgent( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RestoreAgentRequest const& request) override; diff --git a/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.cc b/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.cc index 4175764ebaf28..771ad766f4213 100644 --- a/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.cc @@ -201,7 +201,7 @@ EntityTypesConnectionImpl::ExportEntityTypes( StatusOr EntityTypesConnectionImpl::ExportEntityTypes( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -297,7 +297,7 @@ EntityTypesConnectionImpl::ImportEntityTypes( StatusOr EntityTypesConnectionImpl::ImportEntityTypes( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.h b/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.h index cac67178d1861..176be8a5d05de 100644 --- a/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/entity_types_connection_impl.h @@ -77,7 +77,7 @@ class EntityTypesConnectionImpl : public dialogflow_cx::EntityTypesConnection { request) override; StatusOr ExportEntityTypes( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportEntityTypesRequest const& request) override; @@ -91,7 +91,7 @@ class EntityTypesConnectionImpl : public dialogflow_cx::EntityTypesConnection { request) override; StatusOr ImportEntityTypes( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportEntityTypesRequest const& request) override; diff --git a/google/cloud/dialogflow_cx/internal/environments_connection_impl.cc b/google/cloud/dialogflow_cx/internal/environments_connection_impl.cc index ce9ad3a39e6b5..baea3b9c23519 100644 --- a/google/cloud/dialogflow_cx/internal/environments_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/environments_connection_impl.cc @@ -156,7 +156,7 @@ EnvironmentsConnectionImpl::CreateEnvironment( StatusOr EnvironmentsConnectionImpl::CreateEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -250,7 +250,7 @@ EnvironmentsConnectionImpl::UpdateEnvironment( StatusOr EnvironmentsConnectionImpl::UpdateEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -397,7 +397,7 @@ EnvironmentsConnectionImpl::RunContinuousTest( StatusOr EnvironmentsConnectionImpl::RunContinuousTest( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -528,7 +528,7 @@ EnvironmentsConnectionImpl::DeployFlow( } StatusOr EnvironmentsConnectionImpl::DeployFlow( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dialogflow_cx/internal/environments_connection_impl.h b/google/cloud/dialogflow_cx/internal/environments_connection_impl.h index 7216848e4fda9..abd50ea409a25 100644 --- a/google/cloud/dialogflow_cx/internal/environments_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/environments_connection_impl.h @@ -66,7 +66,7 @@ class EnvironmentsConnectionImpl request) override; StatusOr CreateEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const& request) override; @@ -80,7 +80,7 @@ class EnvironmentsConnectionImpl request) override; StatusOr UpdateEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const& request) override; @@ -103,7 +103,7 @@ class EnvironmentsConnectionImpl request) override; StatusOr RunContinuousTest( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const& request) override; @@ -121,7 +121,7 @@ class EnvironmentsConnectionImpl request) override; StatusOr DeployFlow( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::DeployFlowRequest const& request) override; diff --git a/google/cloud/dialogflow_cx/internal/flows_connection_impl.cc b/google/cloud/dialogflow_cx/internal/flows_connection_impl.cc index dc0126d3b09b0..f21783202a55b 100644 --- a/google/cloud/dialogflow_cx/internal/flows_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/flows_connection_impl.cc @@ -191,7 +191,7 @@ future> FlowsConnectionImpl::TrainFlow( } StatusOr FlowsConnectionImpl::TrainFlow( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -310,7 +310,7 @@ FlowsConnectionImpl::ImportFlow( } StatusOr FlowsConnectionImpl::ImportFlow( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -400,7 +400,7 @@ FlowsConnectionImpl::ExportFlow( } StatusOr FlowsConnectionImpl::ExportFlow( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dialogflow_cx/internal/flows_connection_impl.h b/google/cloud/dialogflow_cx/internal/flows_connection_impl.h index 937d6b4dd5bb9..f73eb06250523 100644 --- a/google/cloud/dialogflow_cx/internal/flows_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/flows_connection_impl.h @@ -73,7 +73,7 @@ class FlowsConnectionImpl : public dialogflow_cx::FlowsConnection { override; StatusOr TrainFlow( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::TrainFlowRequest const& request) override; @@ -95,7 +95,7 @@ class FlowsConnectionImpl : public dialogflow_cx::FlowsConnection { request) override; StatusOr ImportFlow( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportFlowRequest const& request) override; @@ -108,7 +108,7 @@ class FlowsConnectionImpl : public dialogflow_cx::FlowsConnection { request) override; StatusOr ExportFlow( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportFlowRequest const& request) override; diff --git a/google/cloud/dialogflow_cx/internal/intents_connection_impl.cc b/google/cloud/dialogflow_cx/internal/intents_connection_impl.cc index efffea5247904..8d025452ac318 100644 --- a/google/cloud/dialogflow_cx/internal/intents_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/intents_connection_impl.cc @@ -196,7 +196,7 @@ IntentsConnectionImpl::ImportIntents( } StatusOr IntentsConnectionImpl::ImportIntents( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -289,7 +289,7 @@ IntentsConnectionImpl::ExportIntents( } StatusOr IntentsConnectionImpl::ExportIntents( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dialogflow_cx/internal/intents_connection_impl.h b/google/cloud/dialogflow_cx/internal/intents_connection_impl.h index f0ebded3231c7..c265a1136dbca 100644 --- a/google/cloud/dialogflow_cx/internal/intents_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/intents_connection_impl.h @@ -75,7 +75,7 @@ class IntentsConnectionImpl : public dialogflow_cx::IntentsConnection { request) override; StatusOr ImportIntents( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportIntentsRequest const& request) override; @@ -88,7 +88,7 @@ class IntentsConnectionImpl : public dialogflow_cx::IntentsConnection { request) override; StatusOr ExportIntents( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportIntentsRequest const& request) override; diff --git a/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.cc b/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.cc index f8f05bc78d58c..f23c3a1fb6055 100644 --- a/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.cc @@ -201,7 +201,7 @@ TestCasesConnectionImpl::RunTestCase( } StatusOr TestCasesConnectionImpl::RunTestCase( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -296,7 +296,7 @@ TestCasesConnectionImpl::BatchRunTestCases( StatusOr TestCasesConnectionImpl::BatchRunTestCases( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -407,7 +407,7 @@ TestCasesConnectionImpl::ImportTestCases( StatusOr TestCasesConnectionImpl::ImportTestCases( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -501,7 +501,7 @@ TestCasesConnectionImpl::ExportTestCases( StatusOr TestCasesConnectionImpl::ExportTestCases( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.h b/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.h index 8512ef1ac53e7..ae6f89724546c 100644 --- a/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/test_cases_connection_impl.h @@ -75,7 +75,7 @@ class TestCasesConnectionImpl : public dialogflow_cx::TestCasesConnection { request) override; StatusOr RunTestCase( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request) override; @@ -89,7 +89,7 @@ class TestCasesConnectionImpl : public dialogflow_cx::TestCasesConnection { request) override; StatusOr BatchRunTestCases( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const& request) override; @@ -108,7 +108,7 @@ class TestCasesConnectionImpl : public dialogflow_cx::TestCasesConnection { override; StatusOr ImportTestCases( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request) override; @@ -122,7 +122,7 @@ class TestCasesConnectionImpl : public dialogflow_cx::TestCasesConnection { override; StatusOr ExportTestCases( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request) override; diff --git a/google/cloud/dialogflow_cx/internal/versions_connection_impl.cc b/google/cloud/dialogflow_cx/internal/versions_connection_impl.cc index 4aa541a378a6d..0b2ef751ed92d 100644 --- a/google/cloud/dialogflow_cx/internal/versions_connection_impl.cc +++ b/google/cloud/dialogflow_cx/internal/versions_connection_impl.cc @@ -153,7 +153,7 @@ VersionsConnectionImpl::CreateVersion( } StatusOr VersionsConnectionImpl::CreateVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -274,7 +274,7 @@ future> VersionsConnectionImpl::LoadVersion( } StatusOr VersionsConnectionImpl::LoadVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dialogflow_cx/internal/versions_connection_impl.h b/google/cloud/dialogflow_cx/internal/versions_connection_impl.h index 11d6f0a77f575..0c4a66f8fe98c 100644 --- a/google/cloud/dialogflow_cx/internal/versions_connection_impl.h +++ b/google/cloud/dialogflow_cx/internal/versions_connection_impl.h @@ -63,7 +63,7 @@ class VersionsConnectionImpl : public dialogflow_cx::VersionsConnection { override; StatusOr CreateVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::CreateVersionRequest const& request) override; @@ -84,7 +84,7 @@ class VersionsConnectionImpl : public dialogflow_cx::VersionsConnection { override; StatusOr LoadVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::cx::v3::LoadVersionRequest const& request) override; diff --git a/google/cloud/dialogflow_es/internal/agents_connection_impl.cc b/google/cloud/dialogflow_es/internal/agents_connection_impl.cc index 412124a117686..c85267e5f2abb 100644 --- a/google/cloud/dialogflow_es/internal/agents_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/agents_connection_impl.cc @@ -174,7 +174,7 @@ future> AgentsConnectionImpl::TrainAgent( } StatusOr AgentsConnectionImpl::TrainAgent( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::TrainAgentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -261,7 +261,7 @@ AgentsConnectionImpl::ExportAgent( } StatusOr AgentsConnectionImpl::ExportAgent( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ExportAgentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -349,7 +349,7 @@ future> AgentsConnectionImpl::ImportAgent( } StatusOr AgentsConnectionImpl::ImportAgent( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportAgentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -435,7 +435,7 @@ future> AgentsConnectionImpl::RestoreAgent( } StatusOr AgentsConnectionImpl::RestoreAgent( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::RestoreAgentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dialogflow_es/internal/agents_connection_impl.h b/google/cloud/dialogflow_es/internal/agents_connection_impl.h index df7cb55f4eb3a..9896f08a8b660 100644 --- a/google/cloud/dialogflow_es/internal/agents_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/agents_connection_impl.h @@ -67,7 +67,7 @@ class AgentsConnectionImpl : public dialogflow_es::AgentsConnection { google::cloud::dialogflow::v2::TrainAgentRequest const& request) override; StatusOr TrainAgent( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::TrainAgentRequest const& request) override; future> TrainAgent( @@ -79,7 +79,7 @@ class AgentsConnectionImpl : public dialogflow_es::AgentsConnection { override; StatusOr ExportAgent( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ExportAgentRequest const& request) override; @@ -92,7 +92,7 @@ class AgentsConnectionImpl : public dialogflow_es::AgentsConnection { override; StatusOr ImportAgent( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportAgentRequest const& request) override; @@ -105,7 +105,7 @@ class AgentsConnectionImpl : public dialogflow_es::AgentsConnection { override; StatusOr RestoreAgent( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::RestoreAgentRequest const& request) override; diff --git a/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.cc b/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.cc index 736fa45e62d8b..c6f74b61bd3d5 100644 --- a/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.cc @@ -111,7 +111,7 @@ ConversationDatasetsConnectionImpl::CreateConversationDataset( StatusOr ConversationDatasetsConnectionImpl::CreateConversationDataset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -263,7 +263,7 @@ ConversationDatasetsConnectionImpl::DeleteConversationDataset( StatusOr ConversationDatasetsConnectionImpl::DeleteConversationDataset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -366,7 +366,7 @@ ConversationDatasetsConnectionImpl::ImportConversationData( StatusOr ConversationDatasetsConnectionImpl::ImportConversationData( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportConversationDataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.h b/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.h index c478874273c6d..68c5acf2726ed 100644 --- a/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/conversation_datasets_connection_impl.h @@ -58,7 +58,7 @@ class ConversationDatasetsConnectionImpl request) override; StatusOr CreateConversationDataset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateConversationDatasetRequest const& request) override; @@ -84,7 +84,7 @@ class ConversationDatasetsConnectionImpl request) override; StatusOr DeleteConversationDataset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const& request) override; @@ -101,7 +101,7 @@ class ConversationDatasetsConnectionImpl request) override; StatusOr ImportConversationData( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportConversationDataRequest const& request) override; diff --git a/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.cc b/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.cc index f6fc2ca3acf18..c97e054bc844d 100644 --- a/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.cc @@ -110,7 +110,7 @@ ConversationModelsConnectionImpl::CreateConversationModel( StatusOr ConversationModelsConnectionImpl::CreateConversationModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateConversationModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -260,7 +260,7 @@ ConversationModelsConnectionImpl::DeleteConversationModel( StatusOr ConversationModelsConnectionImpl::DeleteConversationModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteConversationModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -362,7 +362,7 @@ ConversationModelsConnectionImpl::DeployConversationModel( StatusOr ConversationModelsConnectionImpl::DeployConversationModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeployConversationModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -465,7 +465,7 @@ ConversationModelsConnectionImpl::UndeployConversationModel( StatusOr ConversationModelsConnectionImpl::UndeployConversationModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::UndeployConversationModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -622,7 +622,7 @@ ConversationModelsConnectionImpl::CreateConversationModelEvaluation( StatusOr ConversationModelsConnectionImpl::CreateConversationModelEvaluation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2:: CreateConversationModelEvaluationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.h b/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.h index 6549135ed0c07..eece83e6b13a1 100644 --- a/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/conversation_models_connection_impl.h @@ -58,7 +58,7 @@ class ConversationModelsConnectionImpl request) override; StatusOr CreateConversationModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateConversationModelRequest const& request) override; @@ -84,7 +84,7 @@ class ConversationModelsConnectionImpl request) override; StatusOr DeleteConversationModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteConversationModelRequest const& request) override; @@ -101,7 +101,7 @@ class ConversationModelsConnectionImpl request) override; StatusOr DeployConversationModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeployConversationModelRequest const& request) override; @@ -118,7 +118,7 @@ class ConversationModelsConnectionImpl request) override; StatusOr UndeployConversationModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::UndeployConversationModelRequest const& request) override; @@ -144,7 +144,7 @@ class ConversationModelsConnectionImpl CreateConversationModelEvaluationRequest const& request) override; StatusOr CreateConversationModelEvaluation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2:: CreateConversationModelEvaluationRequest const& request) override; diff --git a/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.cc b/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.cc index 1030ec23db083..e16809e90e570 100644 --- a/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.cc @@ -212,7 +212,7 @@ ConversationProfilesConnectionImpl::SetSuggestionFeatureConfig( StatusOr ConversationProfilesConnectionImpl::SetSuggestionFeatureConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -307,7 +307,7 @@ ConversationProfilesConnectionImpl::ClearSuggestionFeatureConfig( StatusOr ConversationProfilesConnectionImpl::ClearSuggestionFeatureConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.h b/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.h index b3daa215c7a9d..fd66be9268e98 100644 --- a/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/conversation_profiles_connection_impl.h @@ -82,7 +82,7 @@ class ConversationProfilesConnectionImpl request) override; StatusOr SetSuggestionFeatureConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const& request) override; @@ -97,7 +97,7 @@ class ConversationProfilesConnectionImpl request) override; StatusOr ClearSuggestionFeatureConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const& request) override; diff --git a/google/cloud/dialogflow_es/internal/documents_connection_impl.cc b/google/cloud/dialogflow_es/internal/documents_connection_impl.cc index 95a6419601f25..b6e2bc74f001c 100644 --- a/google/cloud/dialogflow_es/internal/documents_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/documents_connection_impl.cc @@ -153,7 +153,7 @@ DocumentsConnectionImpl::CreateDocument( StatusOr DocumentsConnectionImpl::CreateDocument( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateDocumentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -246,7 +246,7 @@ DocumentsConnectionImpl::ImportDocuments( StatusOr DocumentsConnectionImpl::ImportDocuments( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportDocumentsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -339,7 +339,7 @@ DocumentsConnectionImpl::DeleteDocument( StatusOr DocumentsConnectionImpl::DeleteDocument( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteDocumentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -432,7 +432,7 @@ DocumentsConnectionImpl::UpdateDocument( StatusOr DocumentsConnectionImpl::UpdateDocument( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::UpdateDocumentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -524,7 +524,7 @@ DocumentsConnectionImpl::ReloadDocument( StatusOr DocumentsConnectionImpl::ReloadDocument( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ReloadDocumentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -616,7 +616,7 @@ DocumentsConnectionImpl::ExportDocument( StatusOr DocumentsConnectionImpl::ExportDocument( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ExportDocumentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dialogflow_es/internal/documents_connection_impl.h b/google/cloud/dialogflow_es/internal/documents_connection_impl.h index 05530a84d77d0..91268309f5119 100644 --- a/google/cloud/dialogflow_es/internal/documents_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/documents_connection_impl.h @@ -63,7 +63,7 @@ class DocumentsConnectionImpl : public dialogflow_es::DocumentsConnection { override; StatusOr CreateDocument( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::CreateDocumentRequest const& request) override; @@ -76,7 +76,7 @@ class DocumentsConnectionImpl : public dialogflow_es::DocumentsConnection { request) override; StatusOr ImportDocuments( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ImportDocumentsRequest const& request) override; @@ -89,7 +89,7 @@ class DocumentsConnectionImpl : public dialogflow_es::DocumentsConnection { request) override; StatusOr DeleteDocument( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::DeleteDocumentRequest const& request) override; @@ -102,7 +102,7 @@ class DocumentsConnectionImpl : public dialogflow_es::DocumentsConnection { override; StatusOr UpdateDocument( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::UpdateDocumentRequest const& request) override; @@ -115,7 +115,7 @@ class DocumentsConnectionImpl : public dialogflow_es::DocumentsConnection { override; StatusOr ReloadDocument( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ReloadDocumentRequest const& request) override; @@ -128,7 +128,7 @@ class DocumentsConnectionImpl : public dialogflow_es::DocumentsConnection { override; StatusOr ExportDocument( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::ExportDocumentRequest const& request) override; diff --git a/google/cloud/dialogflow_es/internal/entity_types_connection_impl.cc b/google/cloud/dialogflow_es/internal/entity_types_connection_impl.cc index 1cf1ce68d94e2..538976f19fe5e 100644 --- a/google/cloud/dialogflow_es/internal/entity_types_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/entity_types_connection_impl.cc @@ -200,7 +200,7 @@ EntityTypesConnectionImpl::BatchUpdateEntityTypes( StatusOr EntityTypesConnectionImpl::BatchUpdateEntityTypes( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -294,7 +294,7 @@ EntityTypesConnectionImpl::BatchDeleteEntityTypes( StatusOr EntityTypesConnectionImpl::BatchDeleteEntityTypes( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -386,7 +386,7 @@ EntityTypesConnectionImpl::BatchCreateEntities( StatusOr EntityTypesConnectionImpl::BatchCreateEntities( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -477,7 +477,7 @@ EntityTypesConnectionImpl::BatchUpdateEntities( StatusOr EntityTypesConnectionImpl::BatchUpdateEntities( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -568,7 +568,7 @@ EntityTypesConnectionImpl::BatchDeleteEntities( StatusOr EntityTypesConnectionImpl::BatchDeleteEntities( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dialogflow_es/internal/entity_types_connection_impl.h b/google/cloud/dialogflow_es/internal/entity_types_connection_impl.h index e2fa1dd923ea3..449c8fade7e2e 100644 --- a/google/cloud/dialogflow_es/internal/entity_types_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/entity_types_connection_impl.h @@ -77,7 +77,7 @@ class EntityTypesConnectionImpl : public dialogflow_es::EntityTypesConnection { request) override; StatusOr BatchUpdateEntityTypes( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const& request) override; @@ -92,7 +92,7 @@ class EntityTypesConnectionImpl : public dialogflow_es::EntityTypesConnection { request) override; StatusOr BatchDeleteEntityTypes( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const& request) override; @@ -105,7 +105,7 @@ class EntityTypesConnectionImpl : public dialogflow_es::EntityTypesConnection { override; StatusOr BatchCreateEntities( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const& request) override; @@ -118,7 +118,7 @@ class EntityTypesConnectionImpl : public dialogflow_es::EntityTypesConnection { override; StatusOr BatchUpdateEntities( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const& request) override; @@ -131,7 +131,7 @@ class EntityTypesConnectionImpl : public dialogflow_es::EntityTypesConnection { override; StatusOr BatchDeleteEntities( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const& request) override; diff --git a/google/cloud/dialogflow_es/internal/intents_connection_impl.cc b/google/cloud/dialogflow_es/internal/intents_connection_impl.cc index 71b501ff2cb82..ceb150c5a92bd 100644 --- a/google/cloud/dialogflow_es/internal/intents_connection_impl.cc +++ b/google/cloud/dialogflow_es/internal/intents_connection_impl.cc @@ -196,7 +196,7 @@ IntentsConnectionImpl::BatchUpdateIntents( StatusOr IntentsConnectionImpl::BatchUpdateIntents( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -288,7 +288,7 @@ IntentsConnectionImpl::BatchDeleteIntents( StatusOr IntentsConnectionImpl::BatchDeleteIntents( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/dialogflow_es/internal/intents_connection_impl.h b/google/cloud/dialogflow_es/internal/intents_connection_impl.h index d4dd99f034116..9dd1f6740553b 100644 --- a/google/cloud/dialogflow_es/internal/intents_connection_impl.h +++ b/google/cloud/dialogflow_es/internal/intents_connection_impl.h @@ -74,7 +74,7 @@ class IntentsConnectionImpl : public dialogflow_es::IntentsConnection { override; StatusOr BatchUpdateIntents( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchUpdateIntentsRequest const& request) override; @@ -87,7 +87,7 @@ class IntentsConnectionImpl : public dialogflow_es::IntentsConnection { override; StatusOr BatchDeleteIntents( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::dialogflow::v2::BatchDeleteIntentsRequest const& request) override; diff --git a/google/cloud/discoveryengine/v1/internal/completion_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/completion_connection_impl.cc index c43e781ae98ab..952bba6bf7769 100644 --- a/google/cloud/discoveryengine/v1/internal/completion_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/completion_connection_impl.cc @@ -132,7 +132,7 @@ CompletionServiceConnectionImpl::ImportSuggestionDenyListEntries( StatusOr CompletionServiceConnectionImpl::ImportSuggestionDenyListEntries( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: ImportSuggestionDenyListEntriesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -236,7 +236,7 @@ CompletionServiceConnectionImpl::PurgeSuggestionDenyListEntries( StatusOr CompletionServiceConnectionImpl::PurgeSuggestionDenyListEntries( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: PurgeSuggestionDenyListEntriesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/discoveryengine/v1/internal/completion_connection_impl.h b/google/cloud/discoveryengine/v1/internal/completion_connection_impl.h index 6f62d6e1d9544..d0a66f9585364 100644 --- a/google/cloud/discoveryengine/v1/internal/completion_connection_impl.h +++ b/google/cloud/discoveryengine/v1/internal/completion_connection_impl.h @@ -62,7 +62,7 @@ class CompletionServiceConnectionImpl ImportSuggestionDenyListEntriesRequest const& request) override; StatusOr ImportSuggestionDenyListEntries( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: ImportSuggestionDenyListEntriesRequest const& request) override; @@ -79,7 +79,7 @@ class CompletionServiceConnectionImpl PurgeSuggestionDenyListEntriesRequest const& request) override; StatusOr PurgeSuggestionDenyListEntries( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: PurgeSuggestionDenyListEntriesRequest const& request) override; diff --git a/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.cc index 0d2a1f47e7972..860e44116ddd8 100644 --- a/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.cc @@ -110,7 +110,7 @@ DataStoreServiceConnectionImpl::CreateDataStore( StatusOr DataStoreServiceConnectionImpl::CreateDataStore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateDataStoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -254,7 +254,7 @@ DataStoreServiceConnectionImpl::DeleteDataStore( StatusOr DataStoreServiceConnectionImpl::DeleteDataStore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.h b/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.h index b7cb88803ba28..5a75f8df6cb06 100644 --- a/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.h +++ b/google/cloud/discoveryengine/v1/internal/data_store_connection_impl.h @@ -58,7 +58,7 @@ class DataStoreServiceConnectionImpl override; StatusOr CreateDataStore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateDataStoreRequest const& request) override; @@ -80,7 +80,7 @@ class DataStoreServiceConnectionImpl override; StatusOr DeleteDataStore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteDataStoreRequest const& request) override; diff --git a/google/cloud/discoveryengine/v1/internal/document_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/document_connection_impl.cc index 3dfd05d0e456a..552d33ed27fec 100644 --- a/google/cloud/discoveryengine/v1/internal/document_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/document_connection_impl.cc @@ -204,7 +204,7 @@ DocumentServiceConnectionImpl::ImportDocuments( StatusOr DocumentServiceConnectionImpl::ImportDocuments( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ImportDocumentsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -298,7 +298,7 @@ DocumentServiceConnectionImpl::PurgeDocuments( StatusOr DocumentServiceConnectionImpl::PurgeDocuments( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/discoveryengine/v1/internal/document_connection_impl.h b/google/cloud/discoveryengine/v1/internal/document_connection_impl.h index 84fac76dfaee3..9c0323948da05 100644 --- a/google/cloud/discoveryengine/v1/internal/document_connection_impl.h +++ b/google/cloud/discoveryengine/v1/internal/document_connection_impl.h @@ -78,7 +78,7 @@ class DocumentServiceConnectionImpl override; StatusOr ImportDocuments( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ImportDocumentsRequest const& request) override; @@ -92,7 +92,7 @@ class DocumentServiceConnectionImpl override; StatusOr PurgeDocuments( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::PurgeDocumentsRequest const& request) override; diff --git a/google/cloud/discoveryengine/v1/internal/engine_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/engine_connection_impl.cc index 6a0d47cd03ab3..9f621a4dadb2a 100644 --- a/google/cloud/discoveryengine/v1/internal/engine_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/engine_connection_impl.cc @@ -109,7 +109,7 @@ EngineServiceConnectionImpl::CreateEngine( StatusOr EngineServiceConnectionImpl::CreateEngine( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateEngineRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -203,7 +203,7 @@ EngineServiceConnectionImpl::DeleteEngine( StatusOr EngineServiceConnectionImpl::DeleteEngine( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteEngineRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/discoveryengine/v1/internal/engine_connection_impl.h b/google/cloud/discoveryengine/v1/internal/engine_connection_impl.h index 3f74aedab4272..e6a07725d5b97 100644 --- a/google/cloud/discoveryengine/v1/internal/engine_connection_impl.h +++ b/google/cloud/discoveryengine/v1/internal/engine_connection_impl.h @@ -57,7 +57,7 @@ class EngineServiceConnectionImpl override; StatusOr CreateEngine( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateEngineRequest const& request) override; @@ -70,7 +70,7 @@ class EngineServiceConnectionImpl request) override; StatusOr DeleteEngine( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteEngineRequest const& request) override; diff --git a/google/cloud/discoveryengine/v1/internal/project_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/project_connection_impl.cc index 148ebb116a960..276555ca2ad0b 100644 --- a/google/cloud/discoveryengine/v1/internal/project_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/project_connection_impl.cc @@ -110,7 +110,7 @@ ProjectServiceConnectionImpl::ProvisionProject( StatusOr ProjectServiceConnectionImpl::ProvisionProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ProvisionProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/discoveryengine/v1/internal/project_connection_impl.h b/google/cloud/discoveryengine/v1/internal/project_connection_impl.h index 32c5c95a15e98..cabc4c0a90cd3 100644 --- a/google/cloud/discoveryengine/v1/internal/project_connection_impl.h +++ b/google/cloud/discoveryengine/v1/internal/project_connection_impl.h @@ -57,7 +57,7 @@ class ProjectServiceConnectionImpl request) override; StatusOr ProvisionProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ProvisionProjectRequest const& request) override; diff --git a/google/cloud/discoveryengine/v1/internal/schema_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/schema_connection_impl.cc index f308121786d62..0982fdfd1fa28 100644 --- a/google/cloud/discoveryengine/v1/internal/schema_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/schema_connection_impl.cc @@ -158,7 +158,7 @@ SchemaServiceConnectionImpl::CreateSchema( StatusOr SchemaServiceConnectionImpl::CreateSchema( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateSchemaRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -252,7 +252,7 @@ SchemaServiceConnectionImpl::UpdateSchema( StatusOr SchemaServiceConnectionImpl::UpdateSchema( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -346,7 +346,7 @@ SchemaServiceConnectionImpl::DeleteSchema( StatusOr SchemaServiceConnectionImpl::DeleteSchema( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/discoveryengine/v1/internal/schema_connection_impl.h b/google/cloud/discoveryengine/v1/internal/schema_connection_impl.h index 7f2414f4caafa..fdbfd0f518ae7 100644 --- a/google/cloud/discoveryengine/v1/internal/schema_connection_impl.h +++ b/google/cloud/discoveryengine/v1/internal/schema_connection_impl.h @@ -64,7 +64,7 @@ class SchemaServiceConnectionImpl override; StatusOr CreateSchema( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateSchemaRequest const& request) override; @@ -77,7 +77,7 @@ class SchemaServiceConnectionImpl override; StatusOr UpdateSchema( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::UpdateSchemaRequest const& request) override; @@ -90,7 +90,7 @@ class SchemaServiceConnectionImpl request) override; StatusOr DeleteSchema( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteSchemaRequest const& request) override; diff --git a/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.cc index fa54c42bd102f..c4e6ce0931dfa 100644 --- a/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.cc @@ -133,7 +133,7 @@ SiteSearchEngineServiceConnectionImpl::CreateTargetSite( StatusOr SiteSearchEngineServiceConnectionImpl::CreateTargetSite( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -229,7 +229,7 @@ SiteSearchEngineServiceConnectionImpl::BatchCreateTargetSites( StatusOr SiteSearchEngineServiceConnectionImpl::BatchCreateTargetSites( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -341,7 +341,7 @@ SiteSearchEngineServiceConnectionImpl::UpdateTargetSite( StatusOr SiteSearchEngineServiceConnectionImpl::UpdateTargetSite( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -437,7 +437,7 @@ SiteSearchEngineServiceConnectionImpl::DeleteTargetSite( StatusOr SiteSearchEngineServiceConnectionImpl::DeleteTargetSite( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -568,7 +568,7 @@ SiteSearchEngineServiceConnectionImpl::EnableAdvancedSiteSearch( StatusOr SiteSearchEngineServiceConnectionImpl::EnableAdvancedSiteSearch( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -666,7 +666,7 @@ SiteSearchEngineServiceConnectionImpl::DisableAdvancedSiteSearch( StatusOr SiteSearchEngineServiceConnectionImpl::DisableAdvancedSiteSearch( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DisableAdvancedSiteSearchRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -763,7 +763,7 @@ SiteSearchEngineServiceConnectionImpl::RecrawlUris( StatusOr SiteSearchEngineServiceConnectionImpl::RecrawlUris( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -858,7 +858,7 @@ SiteSearchEngineServiceConnectionImpl::BatchVerifyTargetSites( StatusOr SiteSearchEngineServiceConnectionImpl::BatchVerifyTargetSites( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.h b/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.h index 9c940e5bfa22f..ed589b0ea9776 100644 --- a/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.h +++ b/google/cloud/discoveryengine/v1/internal/site_search_engine_connection_impl.h @@ -64,7 +64,7 @@ class SiteSearchEngineServiceConnectionImpl request) override; StatusOr CreateTargetSite( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateTargetSiteRequest const& request) override; @@ -79,7 +79,7 @@ class SiteSearchEngineServiceConnectionImpl request) override; StatusOr BatchCreateTargetSites( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const& request) override; @@ -99,7 +99,7 @@ class SiteSearchEngineServiceConnectionImpl request) override; StatusOr UpdateTargetSite( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const& request) override; @@ -113,7 +113,7 @@ class SiteSearchEngineServiceConnectionImpl request) override; StatusOr DeleteTargetSite( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const& request) override; @@ -132,7 +132,7 @@ class SiteSearchEngineServiceConnectionImpl request) override; StatusOr EnableAdvancedSiteSearch( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const& request) override; @@ -149,7 +149,7 @@ class SiteSearchEngineServiceConnectionImpl DisableAdvancedSiteSearchRequest const& request) override; StatusOr DisableAdvancedSiteSearch( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1:: DisableAdvancedSiteSearchRequest const& request) override; @@ -164,7 +164,7 @@ class SiteSearchEngineServiceConnectionImpl request) override; StatusOr RecrawlUris( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::RecrawlUrisRequest const& request) override; @@ -179,7 +179,7 @@ class SiteSearchEngineServiceConnectionImpl request) override; StatusOr BatchVerifyTargetSites( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const& request) override; diff --git a/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.cc b/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.cc index d56384f0c8734..aec888705288c 100644 --- a/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.cc +++ b/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.cc @@ -141,7 +141,7 @@ UserEventServiceConnectionImpl::ImportUserEvents( StatusOr UserEventServiceConnectionImpl::ImportUserEvents( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ImportUserEventsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.h b/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.h index 1672d539a7b10..ebd8dedbb8c61 100644 --- a/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.h +++ b/google/cloud/discoveryengine/v1/internal/user_event_connection_impl.h @@ -65,7 +65,7 @@ class UserEventServiceConnectionImpl request) override; StatusOr ImportUserEvents( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::ImportUserEventsRequest const& request) override; diff --git a/google/cloud/documentai/v1/internal/document_processor_connection_impl.cc b/google/cloud/documentai/v1/internal/document_processor_connection_impl.cc index 86a9bb1c30586..833baf2fab2e6 100644 --- a/google/cloud/documentai/v1/internal/document_processor_connection_impl.cc +++ b/google/cloud/documentai/v1/internal/document_processor_connection_impl.cc @@ -127,7 +127,7 @@ DocumentProcessorServiceConnectionImpl::BatchProcessDocuments( StatusOr DocumentProcessorServiceConnectionImpl::BatchProcessDocuments( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::BatchProcessRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -338,7 +338,7 @@ DocumentProcessorServiceConnectionImpl::TrainProcessorVersion( StatusOr DocumentProcessorServiceConnectionImpl::TrainProcessorVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::TrainProcessorVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -486,7 +486,7 @@ DocumentProcessorServiceConnectionImpl::DeleteProcessorVersion( StatusOr DocumentProcessorServiceConnectionImpl::DeleteProcessorVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeleteProcessorVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -582,7 +582,7 @@ DocumentProcessorServiceConnectionImpl::DeployProcessorVersion( StatusOr DocumentProcessorServiceConnectionImpl::DeployProcessorVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeployProcessorVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -679,7 +679,7 @@ DocumentProcessorServiceConnectionImpl::UndeployProcessorVersion( StatusOr DocumentProcessorServiceConnectionImpl::UndeployProcessorVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::UndeployProcessorVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -791,7 +791,7 @@ DocumentProcessorServiceConnectionImpl::DeleteProcessor( StatusOr DocumentProcessorServiceConnectionImpl::DeleteProcessor( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeleteProcessorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -885,7 +885,7 @@ DocumentProcessorServiceConnectionImpl::EnableProcessor( StatusOr DocumentProcessorServiceConnectionImpl::EnableProcessor( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::EnableProcessorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -979,7 +979,7 @@ DocumentProcessorServiceConnectionImpl::DisableProcessor( StatusOr DocumentProcessorServiceConnectionImpl::DisableProcessor( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DisableProcessorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1074,7 +1074,7 @@ DocumentProcessorServiceConnectionImpl::SetDefaultProcessorVersion( StatusOr DocumentProcessorServiceConnectionImpl::SetDefaultProcessorVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1169,7 +1169,7 @@ DocumentProcessorServiceConnectionImpl::ReviewDocument( StatusOr DocumentProcessorServiceConnectionImpl::ReviewDocument( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::ReviewDocumentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1265,7 +1265,7 @@ DocumentProcessorServiceConnectionImpl::EvaluateProcessorVersion( StatusOr DocumentProcessorServiceConnectionImpl::EvaluateProcessorVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/documentai/v1/internal/document_processor_connection_impl.h b/google/cloud/documentai/v1/internal/document_processor_connection_impl.h index b84ed71045acb..4344cb1e672fb 100644 --- a/google/cloud/documentai/v1/internal/document_processor_connection_impl.h +++ b/google/cloud/documentai/v1/internal/document_processor_connection_impl.h @@ -62,7 +62,7 @@ class DocumentProcessorServiceConnectionImpl override; StatusOr BatchProcessDocuments( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::BatchProcessRequest const& request) override; @@ -97,7 +97,7 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr TrainProcessorVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::TrainProcessorVersionRequest const& request) override; @@ -122,7 +122,7 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr DeleteProcessorVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeleteProcessorVersionRequest const& request) override; @@ -139,7 +139,7 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr DeployProcessorVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeployProcessorVersionRequest const& request) override; @@ -156,7 +156,7 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr UndeployProcessorVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::UndeployProcessorVersionRequest const& request) override; @@ -175,7 +175,7 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr DeleteProcessor( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DeleteProcessorRequest const& request) override; @@ -188,7 +188,7 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr EnableProcessor( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::EnableProcessorRequest const& request) override; @@ -201,7 +201,7 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr DisableProcessor( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::DisableProcessorRequest const& request) override; @@ -216,7 +216,7 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr SetDefaultProcessorVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const& request) override; @@ -231,7 +231,7 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr ReviewDocument( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::ReviewDocumentRequest const& request) override; @@ -246,7 +246,7 @@ class DocumentProcessorServiceConnectionImpl request) override; StatusOr EvaluateProcessorVersion( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::documentai::v1::EvaluateProcessorVersionRequest const& request) override; diff --git a/google/cloud/domains/v1/internal/domains_connection_impl.cc b/google/cloud/domains/v1/internal/domains_connection_impl.cc index 9ed4285f828aa..806a08c70b975 100644 --- a/google/cloud/domains/v1/internal/domains_connection_impl.cc +++ b/google/cloud/domains/v1/internal/domains_connection_impl.cc @@ -133,7 +133,7 @@ DomainsConnectionImpl::RegisterDomain( } StatusOr DomainsConnectionImpl::RegisterDomain( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::RegisterDomainRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -240,7 +240,7 @@ DomainsConnectionImpl::TransferDomain( } StatusOr DomainsConnectionImpl::TransferDomain( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::TransferDomainRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -381,7 +381,7 @@ DomainsConnectionImpl::UpdateRegistration( StatusOr DomainsConnectionImpl::UpdateRegistration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::UpdateRegistrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -475,7 +475,7 @@ DomainsConnectionImpl::ConfigureManagementSettings( StatusOr DomainsConnectionImpl::ConfigureManagementSettings( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureManagementSettingsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -570,7 +570,7 @@ DomainsConnectionImpl::ConfigureDnsSettings( StatusOr DomainsConnectionImpl::ConfigureDnsSettings( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -664,7 +664,7 @@ DomainsConnectionImpl::ConfigureContactSettings( StatusOr DomainsConnectionImpl::ConfigureContactSettings( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureContactSettingsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -758,7 +758,7 @@ DomainsConnectionImpl::ExportRegistration( StatusOr DomainsConnectionImpl::ExportRegistration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ExportRegistrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -851,7 +851,7 @@ DomainsConnectionImpl::DeleteRegistration( StatusOr DomainsConnectionImpl::DeleteRegistration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::DeleteRegistrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/domains/v1/internal/domains_connection_impl.h b/google/cloud/domains/v1/internal/domains_connection_impl.h index c7b1421647681..a6521ffbd89bc 100644 --- a/google/cloud/domains/v1/internal/domains_connection_impl.h +++ b/google/cloud/domains/v1/internal/domains_connection_impl.h @@ -63,7 +63,7 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { override; StatusOr RegisterDomain( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::RegisterDomainRequest const& request) override; @@ -81,7 +81,7 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { override; StatusOr TransferDomain( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::TransferDomainRequest const& request) override; @@ -101,7 +101,7 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { override; StatusOr UpdateRegistration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::UpdateRegistrationRequest const& request) override; @@ -115,7 +115,7 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { request) override; StatusOr ConfigureManagementSettings( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureManagementSettingsRequest const& request) override; @@ -130,7 +130,7 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { override; StatusOr ConfigureDnsSettings( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureDnsSettingsRequest const& request) override; @@ -145,7 +145,7 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { request) override; StatusOr ConfigureContactSettings( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ConfigureContactSettingsRequest const& request) override; @@ -159,7 +159,7 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { override; StatusOr ExportRegistration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::ExportRegistrationRequest const& request) override; @@ -173,7 +173,7 @@ class DomainsConnectionImpl : public domains_v1::DomainsConnection { override; StatusOr DeleteRegistration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::domains::v1::DeleteRegistrationRequest const& request) override; diff --git a/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.cc b/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.cc index 2fd1394a57c54..cc39757a5c6bf 100644 --- a/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.cc +++ b/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.cc @@ -158,7 +158,7 @@ EdgeContainerConnectionImpl::CreateCluster( StatusOr EdgeContainerConnectionImpl::CreateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -252,7 +252,7 @@ EdgeContainerConnectionImpl::UpdateCluster( StatusOr EdgeContainerConnectionImpl::UpdateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpdateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -346,7 +346,7 @@ EdgeContainerConnectionImpl::UpgradeCluster( StatusOr EdgeContainerConnectionImpl::UpgradeCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -440,7 +440,7 @@ EdgeContainerConnectionImpl::DeleteCluster( StatusOr EdgeContainerConnectionImpl::DeleteCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -615,7 +615,7 @@ EdgeContainerConnectionImpl::CreateNodePool( StatusOr EdgeContainerConnectionImpl::CreateNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -709,7 +709,7 @@ EdgeContainerConnectionImpl::UpdateNodePool( StatusOr EdgeContainerConnectionImpl::UpdateNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -803,7 +803,7 @@ EdgeContainerConnectionImpl::DeleteNodePool( StatusOr EdgeContainerConnectionImpl::DeleteNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -997,7 +997,7 @@ EdgeContainerConnectionImpl::CreateVpnConnection( StatusOr EdgeContainerConnectionImpl::CreateVpnConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1093,7 +1093,7 @@ EdgeContainerConnectionImpl::DeleteVpnConnection( StatusOr EdgeContainerConnectionImpl::DeleteVpnConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.h b/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.h index 23630714c9c6c..c5227605b1ef1 100644 --- a/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.h +++ b/google/cloud/edgecontainer/v1/internal/edge_container_connection_impl.h @@ -64,7 +64,7 @@ class EdgeContainerConnectionImpl override; StatusOr CreateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateClusterRequest const& request) override; @@ -77,7 +77,7 @@ class EdgeContainerConnectionImpl override; StatusOr UpdateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpdateClusterRequest const& request) override; @@ -90,7 +90,7 @@ class EdgeContainerConnectionImpl override; StatusOr UpgradeCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpgradeClusterRequest const& request) override; @@ -103,7 +103,7 @@ class EdgeContainerConnectionImpl request) override; StatusOr DeleteCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteClusterRequest const& request) override; @@ -133,7 +133,7 @@ class EdgeContainerConnectionImpl override; StatusOr CreateNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateNodePoolRequest const& request) override; @@ -146,7 +146,7 @@ class EdgeContainerConnectionImpl override; StatusOr UpdateNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::UpdateNodePoolRequest const& request) override; @@ -159,7 +159,7 @@ class EdgeContainerConnectionImpl request) override; StatusOr DeleteNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteNodePoolRequest const& request) override; @@ -188,7 +188,7 @@ class EdgeContainerConnectionImpl request) override; StatusOr CreateVpnConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::CreateVpnConnectionRequest const& request) override; @@ -202,7 +202,7 @@ class EdgeContainerConnectionImpl request) override; StatusOr DeleteVpnConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgecontainer::v1::DeleteVpnConnectionRequest const& request) override; diff --git a/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.cc b/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.cc index 7583d63e9c041..82c109d32510e 100644 --- a/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.cc +++ b/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.cc @@ -231,7 +231,7 @@ EdgeNetworkConnectionImpl::CreateNetwork( StatusOr EdgeNetworkConnectionImpl::CreateNetwork( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -322,7 +322,7 @@ EdgeNetworkConnectionImpl::DeleteNetwork( StatusOr EdgeNetworkConnectionImpl::DeleteNetwork( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -462,7 +462,7 @@ EdgeNetworkConnectionImpl::CreateSubnet( StatusOr EdgeNetworkConnectionImpl::CreateSubnet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateSubnetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -553,7 +553,7 @@ EdgeNetworkConnectionImpl::UpdateSubnet( StatusOr EdgeNetworkConnectionImpl::UpdateSubnet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -644,7 +644,7 @@ EdgeNetworkConnectionImpl::DeleteSubnet( StatusOr EdgeNetworkConnectionImpl::DeleteSubnet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -858,7 +858,7 @@ EdgeNetworkConnectionImpl::CreateInterconnectAttachment( StatusOr EdgeNetworkConnectionImpl::CreateInterconnectAttachment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -952,7 +952,7 @@ EdgeNetworkConnectionImpl::DeleteInterconnectAttachment( StatusOr EdgeNetworkConnectionImpl::DeleteInterconnectAttachment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1108,7 +1108,7 @@ EdgeNetworkConnectionImpl::CreateRouter( StatusOr EdgeNetworkConnectionImpl::CreateRouter( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateRouterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1199,7 +1199,7 @@ EdgeNetworkConnectionImpl::UpdateRouter( StatusOr EdgeNetworkConnectionImpl::UpdateRouter( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::UpdateRouterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1290,7 +1290,7 @@ EdgeNetworkConnectionImpl::DeleteRouter( StatusOr EdgeNetworkConnectionImpl::DeleteRouter( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteRouterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.h b/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.h index ee54be80ec140..25a65f0bd8820 100644 --- a/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.h +++ b/google/cloud/edgenetwork/v1/internal/edge_network_connection_impl.h @@ -77,7 +77,7 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { override; StatusOr CreateNetwork( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateNetworkRequest const& request) override; @@ -90,7 +90,7 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { request) override; StatusOr DeleteNetwork( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteNetworkRequest const& request) override; @@ -109,7 +109,7 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { override; StatusOr CreateSubnet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateSubnetRequest const& request) override; @@ -122,7 +122,7 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { override; StatusOr UpdateSubnet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::UpdateSubnetRequest const& request) override; @@ -135,7 +135,7 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { request) override; StatusOr DeleteSubnet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteSubnetRequest const& request) override; @@ -172,7 +172,7 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { request) override; StatusOr CreateInterconnectAttachment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateInterconnectAttachmentRequest const& request) override; @@ -187,7 +187,7 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { request) override; StatusOr DeleteInterconnectAttachment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteInterconnectAttachmentRequest const& request) override; @@ -211,7 +211,7 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { override; StatusOr CreateRouter( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::CreateRouterRequest const& request) override; @@ -224,7 +224,7 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { override; StatusOr UpdateRouter( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::UpdateRouterRequest const& request) override; @@ -237,7 +237,7 @@ class EdgeNetworkConnectionImpl : public edgenetwork_v1::EdgeNetworkConnection { request) override; StatusOr DeleteRouter( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::edgenetwork::v1::DeleteRouterRequest const& request) override; diff --git a/google/cloud/eventarc/v1/internal/eventarc_connection_impl.cc b/google/cloud/eventarc/v1/internal/eventarc_connection_impl.cc index a1ed2920947aa..b945cbafbc145 100644 --- a/google/cloud/eventarc/v1/internal/eventarc_connection_impl.cc +++ b/google/cloud/eventarc/v1/internal/eventarc_connection_impl.cc @@ -150,7 +150,7 @@ EventarcConnectionImpl::CreateTrigger( } StatusOr EventarcConnectionImpl::CreateTrigger( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateTriggerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -239,7 +239,7 @@ EventarcConnectionImpl::UpdateTrigger( } StatusOr EventarcConnectionImpl::UpdateTrigger( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::UpdateTriggerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -328,7 +328,7 @@ EventarcConnectionImpl::DeleteTrigger( } StatusOr EventarcConnectionImpl::DeleteTrigger( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteTriggerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -465,7 +465,7 @@ EventarcConnectionImpl::CreateChannel( } StatusOr EventarcConnectionImpl::CreateChannel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateChannelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -554,7 +554,7 @@ EventarcConnectionImpl::UpdateChannel( } StatusOr EventarcConnectionImpl::UpdateChannel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::UpdateChannelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -643,7 +643,7 @@ EventarcConnectionImpl::DeleteChannel( } StatusOr EventarcConnectionImpl::DeleteChannel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteChannelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -833,7 +833,7 @@ EventarcConnectionImpl::CreateChannelConnection( StatusOr EventarcConnectionImpl::CreateChannelConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateChannelConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -928,7 +928,7 @@ EventarcConnectionImpl::DeleteChannelConnection( StatusOr EventarcConnectionImpl::DeleteChannelConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/eventarc/v1/internal/eventarc_connection_impl.h b/google/cloud/eventarc/v1/internal/eventarc_connection_impl.h index 7a9c5afb9bc6a..fce278c18ca54 100644 --- a/google/cloud/eventarc/v1/internal/eventarc_connection_impl.h +++ b/google/cloud/eventarc/v1/internal/eventarc_connection_impl.h @@ -62,7 +62,7 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { override; StatusOr CreateTrigger( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateTriggerRequest const& request) override; @@ -75,7 +75,7 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { override; StatusOr UpdateTrigger( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::UpdateTriggerRequest const& request) override; @@ -88,7 +88,7 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { override; StatusOr DeleteTrigger( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteTriggerRequest const& request) override; @@ -107,7 +107,7 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { override; StatusOr CreateChannel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateChannelRequest const& request) override; @@ -120,7 +120,7 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { override; StatusOr UpdateChannel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::UpdateChannelRequest const& request) override; @@ -133,7 +133,7 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { override; StatusOr DeleteChannel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteChannelRequest const& request) override; @@ -162,7 +162,7 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { request) override; StatusOr CreateChannelConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::CreateChannelConnectionRequest const& request) override; @@ -177,7 +177,7 @@ class EventarcConnectionImpl : public eventarc_v1::EventarcConnection { request) override; StatusOr DeleteChannelConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::eventarc::v1::DeleteChannelConnectionRequest const& request) override; diff --git a/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.cc b/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.cc index eb050d3a56f20..1155cf7924a4e 100644 --- a/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.cc +++ b/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.cc @@ -157,7 +157,7 @@ CloudFilestoreManagerConnectionImpl::CreateInstance( StatusOr CloudFilestoreManagerConnectionImpl::CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -248,7 +248,7 @@ CloudFilestoreManagerConnectionImpl::UpdateInstance( StatusOr CloudFilestoreManagerConnectionImpl::UpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -339,7 +339,7 @@ CloudFilestoreManagerConnectionImpl::RestoreInstance( StatusOr CloudFilestoreManagerConnectionImpl::RestoreInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::RestoreInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -430,7 +430,7 @@ CloudFilestoreManagerConnectionImpl::RevertInstance( StatusOr CloudFilestoreManagerConnectionImpl::RevertInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::RevertInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -521,7 +521,7 @@ CloudFilestoreManagerConnectionImpl::DeleteInstance( StatusOr CloudFilestoreManagerConnectionImpl::DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -661,7 +661,7 @@ CloudFilestoreManagerConnectionImpl::CreateSnapshot( StatusOr CloudFilestoreManagerConnectionImpl::CreateSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -752,7 +752,7 @@ CloudFilestoreManagerConnectionImpl::DeleteSnapshot( StatusOr CloudFilestoreManagerConnectionImpl::DeleteSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -844,7 +844,7 @@ CloudFilestoreManagerConnectionImpl::UpdateSnapshot( StatusOr CloudFilestoreManagerConnectionImpl::UpdateSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -983,7 +983,7 @@ CloudFilestoreManagerConnectionImpl::CreateBackup( StatusOr CloudFilestoreManagerConnectionImpl::CreateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1073,7 +1073,7 @@ CloudFilestoreManagerConnectionImpl::DeleteBackup( StatusOr CloudFilestoreManagerConnectionImpl::DeleteBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1164,7 +1164,7 @@ CloudFilestoreManagerConnectionImpl::UpdateBackup( StatusOr CloudFilestoreManagerConnectionImpl::UpdateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.h b/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.h index c9d71b24f113f..f4dcc15d68c23 100644 --- a/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.h +++ b/google/cloud/filestore/v1/internal/cloud_filestore_manager_connection_impl.h @@ -63,7 +63,7 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateInstanceRequest const& request) override; @@ -76,7 +76,7 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr UpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateInstanceRequest const& request) override; @@ -89,7 +89,7 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr RestoreInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::RestoreInstanceRequest const& request) override; @@ -102,7 +102,7 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr RevertInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::RevertInstanceRequest const& request) override; @@ -115,7 +115,7 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteInstanceRequest const& request) override; @@ -134,7 +134,7 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr CreateSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateSnapshotRequest const& request) override; @@ -147,7 +147,7 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr DeleteSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteSnapshotRequest const& request) override; @@ -160,7 +160,7 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr UpdateSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateSnapshotRequest const& request) override; @@ -179,7 +179,7 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr CreateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::CreateBackupRequest const& request) override; @@ -192,7 +192,7 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr DeleteBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::DeleteBackupRequest const& request) override; @@ -205,7 +205,7 @@ class CloudFilestoreManagerConnectionImpl override; StatusOr UpdateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::filestore::v1::UpdateBackupRequest const& request) override; diff --git a/google/cloud/functions/v1/internal/cloud_functions_connection_impl.cc b/google/cloud/functions/v1/internal/cloud_functions_connection_impl.cc index dd87b38899a11..71b129f052d13 100644 --- a/google/cloud/functions/v1/internal/cloud_functions_connection_impl.cc +++ b/google/cloud/functions/v1/internal/cloud_functions_connection_impl.cc @@ -157,7 +157,7 @@ CloudFunctionsServiceConnectionImpl::CreateFunction( StatusOr CloudFunctionsServiceConnectionImpl::CreateFunction( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::CreateFunctionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -249,7 +249,7 @@ CloudFunctionsServiceConnectionImpl::UpdateFunction( StatusOr CloudFunctionsServiceConnectionImpl::UpdateFunction( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::UpdateFunctionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -341,7 +341,7 @@ CloudFunctionsServiceConnectionImpl::DeleteFunction( StatusOr CloudFunctionsServiceConnectionImpl::DeleteFunction( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::DeleteFunctionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/functions/v1/internal/cloud_functions_connection_impl.h b/google/cloud/functions/v1/internal/cloud_functions_connection_impl.h index 226e67e565f79..41b5795bc7a4e 100644 --- a/google/cloud/functions/v1/internal/cloud_functions_connection_impl.h +++ b/google/cloud/functions/v1/internal/cloud_functions_connection_impl.h @@ -63,7 +63,7 @@ class CloudFunctionsServiceConnectionImpl override; StatusOr CreateFunction( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::CreateFunctionRequest const& request) override; @@ -76,7 +76,7 @@ class CloudFunctionsServiceConnectionImpl override; StatusOr UpdateFunction( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::UpdateFunctionRequest const& request) override; @@ -89,7 +89,7 @@ class CloudFunctionsServiceConnectionImpl request) override; StatusOr DeleteFunction( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v1::DeleteFunctionRequest const& request) override; diff --git a/google/cloud/functions/v2/internal/function_connection_impl.cc b/google/cloud/functions/v2/internal/function_connection_impl.cc index bf4e6c9b7957a..4522c316b3cac 100644 --- a/google/cloud/functions/v2/internal/function_connection_impl.cc +++ b/google/cloud/functions/v2/internal/function_connection_impl.cc @@ -155,7 +155,7 @@ FunctionServiceConnectionImpl::CreateFunction( StatusOr FunctionServiceConnectionImpl::CreateFunction( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::CreateFunctionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -246,7 +246,7 @@ FunctionServiceConnectionImpl::UpdateFunction( StatusOr FunctionServiceConnectionImpl::UpdateFunction( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::UpdateFunctionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -337,7 +337,7 @@ FunctionServiceConnectionImpl::DeleteFunction( StatusOr FunctionServiceConnectionImpl::DeleteFunction( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::DeleteFunctionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/functions/v2/internal/function_connection_impl.h b/google/cloud/functions/v2/internal/function_connection_impl.h index f7a0367b3888d..dc3610449ed69 100644 --- a/google/cloud/functions/v2/internal/function_connection_impl.h +++ b/google/cloud/functions/v2/internal/function_connection_impl.h @@ -63,7 +63,7 @@ class FunctionServiceConnectionImpl override; StatusOr CreateFunction( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::CreateFunctionRequest const& request) override; @@ -76,7 +76,7 @@ class FunctionServiceConnectionImpl override; StatusOr UpdateFunction( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::UpdateFunctionRequest const& request) override; @@ -89,7 +89,7 @@ class FunctionServiceConnectionImpl request) override; StatusOr DeleteFunction( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::functions::v2::DeleteFunctionRequest const& request) override; diff --git a/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.cc b/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.cc index fe9beb2720010..db7495e8de08b 100644 --- a/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.cc +++ b/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.cc @@ -106,7 +106,7 @@ BackupForGKEConnectionImpl::CreateBackupPlan( StatusOr BackupForGKEConnectionImpl::CreateBackupPlan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -248,7 +248,7 @@ BackupForGKEConnectionImpl::UpdateBackupPlan( StatusOr BackupForGKEConnectionImpl::UpdateBackupPlan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -341,7 +341,7 @@ BackupForGKEConnectionImpl::DeleteBackupPlan( StatusOr BackupForGKEConnectionImpl::DeleteBackupPlan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -433,7 +433,7 @@ BackupForGKEConnectionImpl::CreateBackup( StatusOr BackupForGKEConnectionImpl::CreateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -571,7 +571,7 @@ BackupForGKEConnectionImpl::UpdateBackup( StatusOr BackupForGKEConnectionImpl::UpdateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -661,7 +661,7 @@ BackupForGKEConnectionImpl::DeleteBackup( StatusOr BackupForGKEConnectionImpl::DeleteBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -802,7 +802,7 @@ BackupForGKEConnectionImpl::CreateRestorePlan( StatusOr BackupForGKEConnectionImpl::CreateRestorePlan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -944,7 +944,7 @@ BackupForGKEConnectionImpl::UpdateRestorePlan( StatusOr BackupForGKEConnectionImpl::UpdateRestorePlan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1037,7 +1037,7 @@ BackupForGKEConnectionImpl::DeleteRestorePlan( StatusOr BackupForGKEConnectionImpl::DeleteRestorePlan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1129,7 +1129,7 @@ BackupForGKEConnectionImpl::CreateRestore( StatusOr BackupForGKEConnectionImpl::CreateRestore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateRestoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1268,7 +1268,7 @@ BackupForGKEConnectionImpl::UpdateRestore( StatusOr BackupForGKEConnectionImpl::UpdateRestore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1359,7 +1359,7 @@ BackupForGKEConnectionImpl::DeleteRestore( StatusOr BackupForGKEConnectionImpl::DeleteRestore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestoreRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.h b/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.h index 7f06b2710ca94..8f1f0bb09d952 100644 --- a/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.h +++ b/google/cloud/gkebackup/v1/internal/backup_for_gke_connection_impl.h @@ -56,7 +56,7 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr CreateBackupPlan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupPlanRequest const& request) override; @@ -76,7 +76,7 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr UpdateBackupPlan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupPlanRequest const& request) override; @@ -89,7 +89,7 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { request) override; StatusOr DeleteBackupPlan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupPlanRequest const& request) override; @@ -102,7 +102,7 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr CreateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupRequest const& request) override; @@ -121,7 +121,7 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr UpdateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupRequest const& request) override; @@ -134,7 +134,7 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr DeleteBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupRequest const& request) override; @@ -154,7 +154,7 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr CreateRestorePlan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateRestorePlanRequest const& request) override; @@ -174,7 +174,7 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr UpdateRestorePlan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestorePlanRequest const& request) override; @@ -188,7 +188,7 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr DeleteRestorePlan( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestorePlanRequest const& request) override; @@ -201,7 +201,7 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr CreateRestore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateRestoreRequest const& request) override; @@ -220,7 +220,7 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { override; StatusOr UpdateRestore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestoreRequest const& request) override; @@ -233,7 +233,7 @@ class BackupForGKEConnectionImpl : public gkebackup_v1::BackupForGKEConnection { request) override; StatusOr DeleteRestore( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestoreRequest const& request) override; diff --git a/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.cc b/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.cc index 07bc5ca1d9e85..5aa3c2d60cd0f 100644 --- a/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.cc +++ b/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.cc @@ -197,7 +197,7 @@ GkeHubConnectionImpl::CreateMembership( } StatusOr GkeHubConnectionImpl::CreateMembership( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::CreateMembershipRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -287,7 +287,7 @@ GkeHubConnectionImpl::CreateFeature( } StatusOr GkeHubConnectionImpl::CreateFeature( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::CreateFeatureRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -376,7 +376,7 @@ GkeHubConnectionImpl::DeleteMembership( } StatusOr GkeHubConnectionImpl::DeleteMembership( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::DeleteMembershipRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -467,7 +467,7 @@ GkeHubConnectionImpl::DeleteFeature( } StatusOr GkeHubConnectionImpl::DeleteFeature( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::DeleteFeatureRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -557,7 +557,7 @@ GkeHubConnectionImpl::UpdateMembership( } StatusOr GkeHubConnectionImpl::UpdateMembership( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::UpdateMembershipRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -647,7 +647,7 @@ GkeHubConnectionImpl::UpdateFeature( } StatusOr GkeHubConnectionImpl::UpdateFeature( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::UpdateFeatureRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.h b/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.h index 495f18511e00c..c75c016cde0a4 100644 --- a/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.h +++ b/google/cloud/gkehub/v1/internal/gke_hub_connection_impl.h @@ -67,7 +67,7 @@ class GkeHubConnectionImpl : public gkehub_v1::GkeHubConnection { override; StatusOr CreateMembership( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::CreateMembershipRequest const& request) override; @@ -79,7 +79,7 @@ class GkeHubConnectionImpl : public gkehub_v1::GkeHubConnection { google::cloud::gkehub::v1::CreateFeatureRequest const& request) override; StatusOr CreateFeature( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::CreateFeatureRequest const& request) override; future> CreateFeature( @@ -91,7 +91,7 @@ class GkeHubConnectionImpl : public gkehub_v1::GkeHubConnection { request) override; StatusOr DeleteMembership( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::DeleteMembershipRequest const& request) override; @@ -103,7 +103,7 @@ class GkeHubConnectionImpl : public gkehub_v1::GkeHubConnection { google::cloud::gkehub::v1::DeleteFeatureRequest const& request) override; StatusOr DeleteFeature( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::DeleteFeatureRequest const& request) override; future> DeleteFeature( @@ -115,7 +115,7 @@ class GkeHubConnectionImpl : public gkehub_v1::GkeHubConnection { override; StatusOr UpdateMembership( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::UpdateMembershipRequest const& request) override; @@ -127,7 +127,7 @@ class GkeHubConnectionImpl : public gkehub_v1::GkeHubConnection { google::cloud::gkehub::v1::UpdateFeatureRequest const& request) override; StatusOr UpdateFeature( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkehub::v1::UpdateFeatureRequest const& request) override; future> UpdateFeature( diff --git a/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.cc b/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.cc index eb17711377aff..7ac929471d1fe 100644 --- a/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.cc +++ b/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.cc @@ -111,7 +111,7 @@ AttachedClustersConnectionImpl::CreateAttachedCluster( StatusOr AttachedClustersConnectionImpl::CreateAttachedCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -208,7 +208,7 @@ AttachedClustersConnectionImpl::UpdateAttachedCluster( StatusOr AttachedClustersConnectionImpl::UpdateAttachedCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -305,7 +305,7 @@ AttachedClustersConnectionImpl::ImportAttachedCluster( StatusOr AttachedClustersConnectionImpl::ImportAttachedCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -454,7 +454,7 @@ AttachedClustersConnectionImpl::DeleteAttachedCluster( StatusOr AttachedClustersConnectionImpl::DeleteAttachedCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.h b/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.h index 5bda27eb62ad8..218a675da07aa 100644 --- a/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.h +++ b/google/cloud/gkemulticloud/v1/internal/attached_clusters_connection_impl.h @@ -58,7 +58,7 @@ class AttachedClustersConnectionImpl request) override; StatusOr CreateAttachedCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAttachedClusterRequest const& request) override; @@ -73,7 +73,7 @@ class AttachedClustersConnectionImpl request) override; StatusOr UpdateAttachedCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAttachedClusterRequest const& request) override; @@ -88,7 +88,7 @@ class AttachedClustersConnectionImpl request) override; StatusOr ImportAttachedCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::ImportAttachedClusterRequest const& request) override; @@ -113,7 +113,7 @@ class AttachedClustersConnectionImpl request) override; StatusOr DeleteAttachedCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAttachedClusterRequest const& request) override; diff --git a/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.cc b/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.cc index faea6f1d260e1..54b5947733c1d 100644 --- a/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.cc +++ b/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.cc @@ -108,7 +108,7 @@ AwsClustersConnectionImpl::CreateAwsCluster( StatusOr AwsClustersConnectionImpl::CreateAwsCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -202,7 +202,7 @@ AwsClustersConnectionImpl::UpdateAwsCluster( StatusOr AwsClustersConnectionImpl::UpdateAwsCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -346,7 +346,7 @@ AwsClustersConnectionImpl::DeleteAwsCluster( StatusOr AwsClustersConnectionImpl::DeleteAwsCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -473,7 +473,7 @@ AwsClustersConnectionImpl::CreateAwsNodePool( StatusOr AwsClustersConnectionImpl::CreateAwsNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -567,7 +567,7 @@ AwsClustersConnectionImpl::UpdateAwsNodePool( StatusOr AwsClustersConnectionImpl::UpdateAwsNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -661,7 +661,7 @@ AwsClustersConnectionImpl::RollbackAwsNodePoolUpdate( StatusOr AwsClustersConnectionImpl::RollbackAwsNodePoolUpdate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -806,7 +806,7 @@ AwsClustersConnectionImpl::DeleteAwsNodePool( StatusOr AwsClustersConnectionImpl::DeleteAwsNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.h b/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.h index 4e09ff0a5c440..acb791550e2b5 100644 --- a/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.h +++ b/google/cloud/gkemulticloud/v1/internal/aws_clusters_connection_impl.h @@ -58,7 +58,7 @@ class AwsClustersConnectionImpl override; StatusOr CreateAwsCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const& request) override; @@ -72,7 +72,7 @@ class AwsClustersConnectionImpl override; StatusOr UpdateAwsCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const& request) override; @@ -94,7 +94,7 @@ class AwsClustersConnectionImpl override; StatusOr DeleteAwsCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const& request) override; @@ -119,7 +119,7 @@ class AwsClustersConnectionImpl override; StatusOr CreateAwsNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const& request) override; @@ -133,7 +133,7 @@ class AwsClustersConnectionImpl override; StatusOr UpdateAwsNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const& request) override; @@ -147,7 +147,7 @@ class AwsClustersConnectionImpl request) override; StatusOr RollbackAwsNodePoolUpdate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const& request) override; @@ -170,7 +170,7 @@ class AwsClustersConnectionImpl override; StatusOr DeleteAwsNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const& request) override; diff --git a/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.cc b/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.cc index 0ec8c37b463f3..0560302e26ebf 100644 --- a/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.cc +++ b/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.cc @@ -109,7 +109,7 @@ AzureClustersConnectionImpl::CreateAzureClient( StatusOr AzureClustersConnectionImpl::CreateAzureClient( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -253,7 +253,7 @@ AzureClustersConnectionImpl::DeleteAzureClient( StatusOr AzureClustersConnectionImpl::DeleteAzureClient( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -348,7 +348,7 @@ AzureClustersConnectionImpl::CreateAzureCluster( StatusOr AzureClustersConnectionImpl::CreateAzureCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -444,7 +444,7 @@ AzureClustersConnectionImpl::UpdateAzureCluster( StatusOr AzureClustersConnectionImpl::UpdateAzureCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -589,7 +589,7 @@ AzureClustersConnectionImpl::DeleteAzureCluster( StatusOr AzureClustersConnectionImpl::DeleteAzureCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -718,7 +718,7 @@ AzureClustersConnectionImpl::CreateAzureNodePool( StatusOr AzureClustersConnectionImpl::CreateAzureNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -814,7 +814,7 @@ AzureClustersConnectionImpl::UpdateAzureNodePool( StatusOr AzureClustersConnectionImpl::UpdateAzureNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -960,7 +960,7 @@ AzureClustersConnectionImpl::DeleteAzureNodePool( StatusOr AzureClustersConnectionImpl::DeleteAzureNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.h b/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.h index c947b3540a61b..ee59691873267 100644 --- a/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.h +++ b/google/cloud/gkemulticloud/v1/internal/azure_clusters_connection_impl.h @@ -58,7 +58,7 @@ class AzureClustersConnectionImpl override; StatusOr CreateAzureClient( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureClientRequest const& request) override; @@ -80,7 +80,7 @@ class AzureClustersConnectionImpl override; StatusOr DeleteAzureClient( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureClientRequest const& request) override; @@ -94,7 +94,7 @@ class AzureClustersConnectionImpl request) override; StatusOr CreateAzureCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureClusterRequest const& request) override; @@ -108,7 +108,7 @@ class AzureClustersConnectionImpl request) override; StatusOr UpdateAzureCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAzureClusterRequest const& request) override; @@ -130,7 +130,7 @@ class AzureClustersConnectionImpl request) override; StatusOr DeleteAzureCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureClusterRequest const& request) override; @@ -155,7 +155,7 @@ class AzureClustersConnectionImpl request) override; StatusOr CreateAzureNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::CreateAzureNodePoolRequest const& request) override; @@ -169,7 +169,7 @@ class AzureClustersConnectionImpl request) override; StatusOr UpdateAzureNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::UpdateAzureNodePoolRequest const& request) override; @@ -191,7 +191,7 @@ class AzureClustersConnectionImpl request) override; StatusOr DeleteAzureNodePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::gkemulticloud::v1::DeleteAzureNodePoolRequest const& request) override; diff --git a/google/cloud/iam/v2/internal/policies_connection_impl.cc b/google/cloud/iam/v2/internal/policies_connection_impl.cc index 60554dfd538eb..07ae194d64fce 100644 --- a/google/cloud/iam/v2/internal/policies_connection_impl.cc +++ b/google/cloud/iam/v2/internal/policies_connection_impl.cc @@ -144,7 +144,7 @@ future> PoliciesConnectionImpl::CreatePolicy( } StatusOr PoliciesConnectionImpl::CreatePolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::iam::v2::CreatePolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -230,7 +230,7 @@ future> PoliciesConnectionImpl::UpdatePolicy( } StatusOr PoliciesConnectionImpl::UpdatePolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::iam::v2::UpdatePolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -316,7 +316,7 @@ future> PoliciesConnectionImpl::DeletePolicy( } StatusOr PoliciesConnectionImpl::DeletePolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::iam::v2::DeletePolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/iam/v2/internal/policies_connection_impl.h b/google/cloud/iam/v2/internal/policies_connection_impl.h index b90448644c149..6cfde6750c423 100644 --- a/google/cloud/iam/v2/internal/policies_connection_impl.h +++ b/google/cloud/iam/v2/internal/policies_connection_impl.h @@ -60,7 +60,7 @@ class PoliciesConnectionImpl : public iam_v2::PoliciesConnection { google::iam::v2::CreatePolicyRequest const& request) override; StatusOr CreatePolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::iam::v2::CreatePolicyRequest const& request) override; future> CreatePolicy( @@ -71,7 +71,7 @@ class PoliciesConnectionImpl : public iam_v2::PoliciesConnection { google::iam::v2::UpdatePolicyRequest const& request) override; StatusOr UpdatePolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::iam::v2::UpdatePolicyRequest const& request) override; future> UpdatePolicy( @@ -82,7 +82,7 @@ class PoliciesConnectionImpl : public iam_v2::PoliciesConnection { google::iam::v2::DeletePolicyRequest const& request) override; StatusOr DeletePolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::iam::v2::DeletePolicyRequest const& request) override; future> DeletePolicy( diff --git a/google/cloud/ids/v1/internal/ids_connection_impl.cc b/google/cloud/ids/v1/internal/ids_connection_impl.cc index b61cd6e652225..f5b793ae55a76 100644 --- a/google/cloud/ids/v1/internal/ids_connection_impl.cc +++ b/google/cloud/ids/v1/internal/ids_connection_impl.cc @@ -145,7 +145,7 @@ IDSConnectionImpl::CreateEndpoint( } StatusOr IDSConnectionImpl::CreateEndpoint( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::ids::v1::CreateEndpointRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -234,7 +234,7 @@ IDSConnectionImpl::DeleteEndpoint( } StatusOr IDSConnectionImpl::DeleteEndpoint( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::ids::v1::DeleteEndpointRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/ids/v1/internal/ids_connection_impl.h b/google/cloud/ids/v1/internal/ids_connection_impl.h index b7be54a3b897f..12995f4fb9d16 100644 --- a/google/cloud/ids/v1/internal/ids_connection_impl.h +++ b/google/cloud/ids/v1/internal/ids_connection_impl.h @@ -60,7 +60,7 @@ class IDSConnectionImpl : public ids_v1::IDSConnection { google::cloud::ids::v1::CreateEndpointRequest const& request) override; StatusOr CreateEndpoint( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::ids::v1::CreateEndpointRequest const& request) override; future> CreateEndpoint( @@ -71,7 +71,7 @@ class IDSConnectionImpl : public ids_v1::IDSConnection { google::cloud::ids::v1::DeleteEndpointRequest const& request) override; StatusOr DeleteEndpoint( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::ids::v1::DeleteEndpointRequest const& request) override; future> DeleteEndpoint( diff --git a/google/cloud/kms/v1/internal/autokey_connection_impl.cc b/google/cloud/kms/v1/internal/autokey_connection_impl.cc index d93063bc8ed31..b79f7dd25b298 100644 --- a/google/cloud/kms/v1/internal/autokey_connection_impl.cc +++ b/google/cloud/kms/v1/internal/autokey_connection_impl.cc @@ -101,7 +101,7 @@ AutokeyConnectionImpl::CreateKeyHandle( } StatusOr AutokeyConnectionImpl::CreateKeyHandle( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::kms::v1::CreateKeyHandleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/kms/v1/internal/autokey_connection_impl.h b/google/cloud/kms/v1/internal/autokey_connection_impl.h index e7872becb81a5..81a2c5d13137e 100644 --- a/google/cloud/kms/v1/internal/autokey_connection_impl.h +++ b/google/cloud/kms/v1/internal/autokey_connection_impl.h @@ -53,7 +53,7 @@ class AutokeyConnectionImpl : public kms_v1::AutokeyConnection { google::cloud::kms::v1::CreateKeyHandleRequest const& request) override; StatusOr CreateKeyHandle( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::kms::v1::CreateKeyHandleRequest const& request) override; future> CreateKeyHandle( diff --git a/google/cloud/logging/v2/internal/config_service_v2_connection_impl.cc b/google/cloud/logging/v2/internal/config_service_v2_connection_impl.cc index 4874506e88818..ec990ed4e760e 100644 --- a/google/cloud/logging/v2/internal/config_service_v2_connection_impl.cc +++ b/google/cloud/logging/v2/internal/config_service_v2_connection_impl.cc @@ -150,7 +150,7 @@ ConfigServiceV2ConnectionImpl::CreateBucketAsync( StatusOr ConfigServiceV2ConnectionImpl::CreateBucketAsync( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CreateBucketRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -239,7 +239,7 @@ ConfigServiceV2ConnectionImpl::UpdateBucketAsync( StatusOr ConfigServiceV2ConnectionImpl::UpdateBucketAsync( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::UpdateBucketRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -554,7 +554,7 @@ ConfigServiceV2ConnectionImpl::CreateLink( StatusOr ConfigServiceV2ConnectionImpl::CreateLink( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CreateLinkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -642,7 +642,7 @@ ConfigServiceV2ConnectionImpl::DeleteLink( StatusOr ConfigServiceV2ConnectionImpl::DeleteLink( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::DeleteLinkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -919,7 +919,7 @@ ConfigServiceV2ConnectionImpl::CopyLogEntries( StatusOr ConfigServiceV2ConnectionImpl::CopyLogEntries( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CopyLogEntriesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/logging/v2/internal/config_service_v2_connection_impl.h b/google/cloud/logging/v2/internal/config_service_v2_connection_impl.h index fe90620fd1649..2f89a61f866a2 100644 --- a/google/cloud/logging/v2/internal/config_service_v2_connection_impl.h +++ b/google/cloud/logging/v2/internal/config_service_v2_connection_impl.h @@ -62,7 +62,7 @@ class ConfigServiceV2ConnectionImpl google::logging::v2::CreateBucketRequest const& request) override; StatusOr CreateBucketAsync( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CreateBucketRequest const& request) override; future> CreateBucketAsync( @@ -73,7 +73,7 @@ class ConfigServiceV2ConnectionImpl google::logging::v2::UpdateBucketRequest const& request) override; StatusOr UpdateBucketAsync( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::UpdateBucketRequest const& request) override; future> UpdateBucketAsync( @@ -126,7 +126,7 @@ class ConfigServiceV2ConnectionImpl google::logging::v2::CreateLinkRequest const& request) override; StatusOr CreateLink( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CreateLinkRequest const& request) override; future> CreateLink( @@ -137,7 +137,7 @@ class ConfigServiceV2ConnectionImpl google::logging::v2::DeleteLinkRequest const& request) override; StatusOr DeleteLink( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::DeleteLinkRequest const& request) override; future> DeleteLink( @@ -181,7 +181,7 @@ class ConfigServiceV2ConnectionImpl google::logging::v2::CopyLogEntriesRequest const& request) override; StatusOr CopyLogEntries( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::logging::v2::CopyLogEntriesRequest const& request) override; future> CopyLogEntries( diff --git a/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.cc b/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.cc index ed47f6b851404..824f9f3dd89fd 100644 --- a/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.cc +++ b/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.cc @@ -115,7 +115,7 @@ ManagedIdentitiesServiceConnectionImpl::CreateMicrosoftAdDomain( StatusOr ManagedIdentitiesServiceConnectionImpl::CreateMicrosoftAdDomain( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::CreateMicrosoftAdDomainRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -277,7 +277,7 @@ ManagedIdentitiesServiceConnectionImpl::UpdateDomain( StatusOr ManagedIdentitiesServiceConnectionImpl::UpdateDomain( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::UpdateDomainRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -370,7 +370,7 @@ ManagedIdentitiesServiceConnectionImpl::DeleteDomain( StatusOr ManagedIdentitiesServiceConnectionImpl::DeleteDomain( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::DeleteDomainRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -463,7 +463,7 @@ ManagedIdentitiesServiceConnectionImpl::AttachTrust( StatusOr ManagedIdentitiesServiceConnectionImpl::AttachTrust( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::AttachTrustRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -557,7 +557,7 @@ ManagedIdentitiesServiceConnectionImpl::ReconfigureTrust( StatusOr ManagedIdentitiesServiceConnectionImpl::ReconfigureTrust( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::ReconfigureTrustRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -652,7 +652,7 @@ ManagedIdentitiesServiceConnectionImpl::DetachTrust( StatusOr ManagedIdentitiesServiceConnectionImpl::DetachTrust( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::DetachTrustRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -745,7 +745,7 @@ ManagedIdentitiesServiceConnectionImpl::ValidateTrust( StatusOr ManagedIdentitiesServiceConnectionImpl::ValidateTrust( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::ValidateTrustRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.h b/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.h index 656766a6877d9..9aa6f9a142e7c 100644 --- a/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.h +++ b/google/cloud/managedidentities/v1/internal/managed_identities_connection_impl.h @@ -60,7 +60,7 @@ class ManagedIdentitiesServiceConnectionImpl CreateMicrosoftAdDomainRequest const& request) override; StatusOr CreateMicrosoftAdDomain( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1:: CreateMicrosoftAdDomainRequest const& request) override; @@ -87,7 +87,7 @@ class ManagedIdentitiesServiceConnectionImpl override; StatusOr UpdateDomain( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::UpdateDomainRequest const& request) override; @@ -100,7 +100,7 @@ class ManagedIdentitiesServiceConnectionImpl request) override; StatusOr DeleteDomain( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::DeleteDomainRequest const& request) override; @@ -113,7 +113,7 @@ class ManagedIdentitiesServiceConnectionImpl override; StatusOr AttachTrust( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::AttachTrustRequest const& request) override; @@ -127,7 +127,7 @@ class ManagedIdentitiesServiceConnectionImpl request) override; StatusOr ReconfigureTrust( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::ReconfigureTrustRequest const& request) override; @@ -140,7 +140,7 @@ class ManagedIdentitiesServiceConnectionImpl override; StatusOr DetachTrust( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::DetachTrustRequest const& request) override; @@ -153,7 +153,7 @@ class ManagedIdentitiesServiceConnectionImpl override; StatusOr ValidateTrust( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedidentities::v1::ValidateTrustRequest const& request) override; diff --git a/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.cc b/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.cc index 69f9405659414..2e2d964acdb48 100644 --- a/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.cc +++ b/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.cc @@ -157,7 +157,7 @@ ManagedKafkaConnectionImpl::CreateCluster( StatusOr ManagedKafkaConnectionImpl::CreateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::CreateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -250,7 +250,7 @@ ManagedKafkaConnectionImpl::UpdateCluster( StatusOr ManagedKafkaConnectionImpl::UpdateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::UpdateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -343,7 +343,7 @@ ManagedKafkaConnectionImpl::DeleteCluster( StatusOr ManagedKafkaConnectionImpl::DeleteCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::DeleteClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.h b/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.h index 98cd42cb53336..89ef754a505b4 100644 --- a/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.h +++ b/google/cloud/managedkafka/v1/internal/managed_kafka_connection_impl.h @@ -64,7 +64,7 @@ class ManagedKafkaConnectionImpl override; StatusOr CreateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::CreateClusterRequest const& request) override; @@ -77,7 +77,7 @@ class ManagedKafkaConnectionImpl override; StatusOr UpdateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::UpdateClusterRequest const& request) override; @@ -90,7 +90,7 @@ class ManagedKafkaConnectionImpl request) override; StatusOr DeleteCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::managedkafka::v1::DeleteClusterRequest const& request) override; diff --git a/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.cc b/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.cc index 69d81d40f0255..286e13560c11e 100644 --- a/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.cc +++ b/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.cc @@ -153,7 +153,7 @@ CloudMemcacheConnectionImpl::CreateInstance( StatusOr CloudMemcacheConnectionImpl::CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -244,7 +244,7 @@ CloudMemcacheConnectionImpl::UpdateInstance( StatusOr CloudMemcacheConnectionImpl::UpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -335,7 +335,7 @@ CloudMemcacheConnectionImpl::UpdateParameters( StatusOr CloudMemcacheConnectionImpl::UpdateParameters( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::UpdateParametersRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -426,7 +426,7 @@ CloudMemcacheConnectionImpl::DeleteInstance( StatusOr CloudMemcacheConnectionImpl::DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -518,7 +518,7 @@ CloudMemcacheConnectionImpl::ApplyParameters( StatusOr CloudMemcacheConnectionImpl::ApplyParameters( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::ApplyParametersRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -610,7 +610,7 @@ CloudMemcacheConnectionImpl::RescheduleMaintenance( StatusOr CloudMemcacheConnectionImpl::RescheduleMaintenance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.h b/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.h index 199d2f4e3f7a7..3048abbce573a 100644 --- a/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.h +++ b/google/cloud/memcache/v1/internal/cloud_memcache_connection_impl.h @@ -63,7 +63,7 @@ class CloudMemcacheConnectionImpl override; StatusOr CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::CreateInstanceRequest const& request) override; @@ -76,7 +76,7 @@ class CloudMemcacheConnectionImpl override; StatusOr UpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::UpdateInstanceRequest const& request) override; @@ -89,7 +89,7 @@ class CloudMemcacheConnectionImpl override; StatusOr UpdateParameters( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::UpdateParametersRequest const& request) override; @@ -102,7 +102,7 @@ class CloudMemcacheConnectionImpl request) override; StatusOr DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::DeleteInstanceRequest const& request) override; @@ -115,7 +115,7 @@ class CloudMemcacheConnectionImpl override; StatusOr ApplyParameters( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::ApplyParametersRequest const& request) override; @@ -128,7 +128,7 @@ class CloudMemcacheConnectionImpl override; StatusOr RescheduleMaintenance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::memcache::v1::RescheduleMaintenanceRequest const& request) override; diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.cc b/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.cc index faacbd47f4673..80698f72a2a2c 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.cc +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.cc @@ -156,7 +156,7 @@ DataprocMetastoreConnectionImpl::CreateService( StatusOr DataprocMetastoreConnectionImpl::CreateService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -247,7 +247,7 @@ DataprocMetastoreConnectionImpl::UpdateService( StatusOr DataprocMetastoreConnectionImpl::UpdateService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -338,7 +338,7 @@ DataprocMetastoreConnectionImpl::DeleteService( StatusOr DataprocMetastoreConnectionImpl::DeleteService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -481,7 +481,7 @@ DataprocMetastoreConnectionImpl::CreateMetadataImport( StatusOr DataprocMetastoreConnectionImpl::CreateMetadataImport( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateMetadataImportRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -574,7 +574,7 @@ DataprocMetastoreConnectionImpl::UpdateMetadataImport( StatusOr DataprocMetastoreConnectionImpl::UpdateMetadataImport( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateMetadataImportRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -666,7 +666,7 @@ DataprocMetastoreConnectionImpl::ExportMetadata( StatusOr DataprocMetastoreConnectionImpl::ExportMetadata( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::ExportMetadataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -758,7 +758,7 @@ DataprocMetastoreConnectionImpl::RestoreService( StatusOr DataprocMetastoreConnectionImpl::RestoreService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::RestoreServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -897,7 +897,7 @@ DataprocMetastoreConnectionImpl::CreateBackup( StatusOr DataprocMetastoreConnectionImpl::CreateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -987,7 +987,7 @@ DataprocMetastoreConnectionImpl::DeleteBackup( StatusOr DataprocMetastoreConnectionImpl::DeleteBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1078,7 +1078,7 @@ DataprocMetastoreConnectionImpl::QueryMetadata( StatusOr DataprocMetastoreConnectionImpl::QueryMetadata( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::QueryMetadataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1171,7 +1171,7 @@ DataprocMetastoreConnectionImpl::MoveTableToDatabase( StatusOr DataprocMetastoreConnectionImpl::MoveTableToDatabase( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1265,7 +1265,7 @@ DataprocMetastoreConnectionImpl::AlterMetadataResourceLocation( StatusOr DataprocMetastoreConnectionImpl::AlterMetadataResourceLocation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.h b/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.h index 1a67a740968df..3e8ef26321c82 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.h +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_connection_impl.h @@ -63,7 +63,7 @@ class DataprocMetastoreConnectionImpl override; StatusOr CreateService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateServiceRequest const& request) override; @@ -76,7 +76,7 @@ class DataprocMetastoreConnectionImpl override; StatusOr UpdateService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateServiceRequest const& request) override; @@ -89,7 +89,7 @@ class DataprocMetastoreConnectionImpl request) override; StatusOr DeleteService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteServiceRequest const& request) override; @@ -111,7 +111,7 @@ class DataprocMetastoreConnectionImpl override; StatusOr CreateMetadataImport( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateMetadataImportRequest const& request) override; @@ -126,7 +126,7 @@ class DataprocMetastoreConnectionImpl override; StatusOr UpdateMetadataImport( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateMetadataImportRequest const& request) override; @@ -140,7 +140,7 @@ class DataprocMetastoreConnectionImpl override; StatusOr ExportMetadata( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::ExportMetadataRequest const& request) override; @@ -153,7 +153,7 @@ class DataprocMetastoreConnectionImpl override; StatusOr RestoreService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::RestoreServiceRequest const& request) override; @@ -172,7 +172,7 @@ class DataprocMetastoreConnectionImpl override; StatusOr CreateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateBackupRequest const& request) override; @@ -185,7 +185,7 @@ class DataprocMetastoreConnectionImpl override; StatusOr DeleteBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteBackupRequest const& request) override; @@ -198,7 +198,7 @@ class DataprocMetastoreConnectionImpl request) override; StatusOr QueryMetadata( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::QueryMetadataRequest const& request) override; @@ -212,7 +212,7 @@ class DataprocMetastoreConnectionImpl override; StatusOr MoveTableToDatabase( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::MoveTableToDatabaseRequest const& request) override; @@ -227,7 +227,7 @@ class DataprocMetastoreConnectionImpl request) override; StatusOr AlterMetadataResourceLocation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::AlterMetadataResourceLocationRequest const& request) override; diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.cc b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.cc index a4bd56e0d529b..3c26310166c05 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.cc +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.cc @@ -167,7 +167,7 @@ DataprocMetastoreFederationConnectionImpl::CreateFederation( StatusOr DataprocMetastoreFederationConnectionImpl::CreateFederation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateFederationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -260,7 +260,7 @@ DataprocMetastoreFederationConnectionImpl::UpdateFederation( StatusOr DataprocMetastoreFederationConnectionImpl::UpdateFederation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateFederationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -353,7 +353,7 @@ DataprocMetastoreFederationConnectionImpl::DeleteFederation( StatusOr DataprocMetastoreFederationConnectionImpl::DeleteFederation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteFederationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.h b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.h index 58db81a7ac0c7..375eec4c326e3 100644 --- a/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.h +++ b/google/cloud/metastore/v1/internal/dataproc_metastore_federation_connection_impl.h @@ -65,7 +65,7 @@ class DataprocMetastoreFederationConnectionImpl override; StatusOr CreateFederation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::CreateFederationRequest const& request) override; @@ -78,7 +78,7 @@ class DataprocMetastoreFederationConnectionImpl override; StatusOr UpdateFederation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::UpdateFederationRequest const& request) override; @@ -91,7 +91,7 @@ class DataprocMetastoreFederationConnectionImpl request) override; StatusOr DeleteFederation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::metastore::v1::DeleteFederationRequest const& request) override; diff --git a/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.cc b/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.cc index fa591bb5d94a1..aa6170b3961e2 100644 --- a/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.cc +++ b/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.cc @@ -251,7 +251,7 @@ MigrationCenterConnectionImpl::CreateImportJob( StatusOr MigrationCenterConnectionImpl::CreateImportJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateImportJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -395,7 +395,7 @@ MigrationCenterConnectionImpl::DeleteImportJob( StatusOr MigrationCenterConnectionImpl::DeleteImportJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteImportJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -489,7 +489,7 @@ MigrationCenterConnectionImpl::UpdateImportJob( StatusOr MigrationCenterConnectionImpl::UpdateImportJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -584,7 +584,7 @@ MigrationCenterConnectionImpl::ValidateImportJob( StatusOr MigrationCenterConnectionImpl::ValidateImportJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::ValidateImportJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -679,7 +679,7 @@ MigrationCenterConnectionImpl::RunImportJob( StatusOr MigrationCenterConnectionImpl::RunImportJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::RunImportJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -825,7 +825,7 @@ MigrationCenterConnectionImpl::CreateImportDataFile( StatusOr MigrationCenterConnectionImpl::CreateImportDataFile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -922,7 +922,7 @@ MigrationCenterConnectionImpl::DeleteImportDataFile( StatusOr MigrationCenterConnectionImpl::DeleteImportDataFile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1067,7 +1067,7 @@ MigrationCenterConnectionImpl::CreateGroup( StatusOr MigrationCenterConnectionImpl::CreateGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1161,7 +1161,7 @@ MigrationCenterConnectionImpl::UpdateGroup( StatusOr MigrationCenterConnectionImpl::UpdateGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1255,7 +1255,7 @@ MigrationCenterConnectionImpl::DeleteGroup( StatusOr MigrationCenterConnectionImpl::DeleteGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1350,7 +1350,7 @@ MigrationCenterConnectionImpl::AddAssetsToGroup( StatusOr MigrationCenterConnectionImpl::AddAssetsToGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1445,7 +1445,7 @@ MigrationCenterConnectionImpl::RemoveAssetsFromGroup( StatusOr MigrationCenterConnectionImpl::RemoveAssetsFromGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1638,7 +1638,7 @@ MigrationCenterConnectionImpl::CreateSource( StatusOr MigrationCenterConnectionImpl::CreateSource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateSourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1732,7 +1732,7 @@ MigrationCenterConnectionImpl::UpdateSource( StatusOr MigrationCenterConnectionImpl::UpdateSource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateSourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1826,7 +1826,7 @@ MigrationCenterConnectionImpl::DeleteSource( StatusOr MigrationCenterConnectionImpl::DeleteSource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteSourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1972,7 +1972,7 @@ MigrationCenterConnectionImpl::CreatePreferenceSet( StatusOr MigrationCenterConnectionImpl::CreatePreferenceSet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2069,7 +2069,7 @@ MigrationCenterConnectionImpl::UpdatePreferenceSet( StatusOr MigrationCenterConnectionImpl::UpdatePreferenceSet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2166,7 +2166,7 @@ MigrationCenterConnectionImpl::DeletePreferenceSet( StatusOr MigrationCenterConnectionImpl::DeletePreferenceSet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2277,7 +2277,7 @@ MigrationCenterConnectionImpl::UpdateSettings( StatusOr MigrationCenterConnectionImpl::UpdateSettings( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2372,7 +2372,7 @@ MigrationCenterConnectionImpl::CreateReportConfig( StatusOr MigrationCenterConnectionImpl::CreateReportConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateReportConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2519,7 +2519,7 @@ MigrationCenterConnectionImpl::DeleteReportConfig( StatusOr MigrationCenterConnectionImpl::DeleteReportConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2615,7 +2615,7 @@ MigrationCenterConnectionImpl::CreateReport( StatusOr MigrationCenterConnectionImpl::CreateReport( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateReportRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2758,7 +2758,7 @@ MigrationCenterConnectionImpl::DeleteReport( StatusOr MigrationCenterConnectionImpl::DeleteReport( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteReportRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.h b/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.h index a8c84b336f2de..74fc36331a2d5 100644 --- a/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.h +++ b/google/cloud/migrationcenter/v1/internal/migration_center_connection_impl.h @@ -92,7 +92,7 @@ class MigrationCenterConnectionImpl override; StatusOr CreateImportJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateImportJobRequest const& request) override; @@ -114,7 +114,7 @@ class MigrationCenterConnectionImpl override; StatusOr DeleteImportJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteImportJobRequest const& request) override; @@ -128,7 +128,7 @@ class MigrationCenterConnectionImpl override; StatusOr UpdateImportJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateImportJobRequest const& request) override; @@ -142,7 +142,7 @@ class MigrationCenterConnectionImpl request) override; StatusOr ValidateImportJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::ValidateImportJobRequest const& request) override; @@ -155,7 +155,7 @@ class MigrationCenterConnectionImpl request) override; StatusOr RunImportJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::RunImportJobRequest const& request) override; @@ -179,7 +179,7 @@ class MigrationCenterConnectionImpl request) override; StatusOr CreateImportDataFile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateImportDataFileRequest const& request) override; @@ -194,7 +194,7 @@ class MigrationCenterConnectionImpl request) override; StatusOr DeleteImportDataFile( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteImportDataFileRequest const& request) override; @@ -215,7 +215,7 @@ class MigrationCenterConnectionImpl override; StatusOr CreateGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateGroupRequest const& request) override; @@ -228,7 +228,7 @@ class MigrationCenterConnectionImpl override; StatusOr UpdateGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateGroupRequest const& request) override; @@ -241,7 +241,7 @@ class MigrationCenterConnectionImpl request) override; StatusOr DeleteGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteGroupRequest const& request) override; @@ -254,7 +254,7 @@ class MigrationCenterConnectionImpl request) override; StatusOr AddAssetsToGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::AddAssetsToGroupRequest const& request) override; @@ -268,7 +268,7 @@ class MigrationCenterConnectionImpl request) override; StatusOr RemoveAssetsFromGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::RemoveAssetsFromGroupRequest const& request) override; @@ -297,7 +297,7 @@ class MigrationCenterConnectionImpl override; StatusOr CreateSource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateSourceRequest const& request) override; @@ -310,7 +310,7 @@ class MigrationCenterConnectionImpl override; StatusOr UpdateSource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateSourceRequest const& request) override; @@ -323,7 +323,7 @@ class MigrationCenterConnectionImpl request) override; StatusOr DeleteSource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteSourceRequest const& request) override; @@ -346,7 +346,7 @@ class MigrationCenterConnectionImpl request) override; StatusOr CreatePreferenceSet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreatePreferenceSetRequest const& request) override; @@ -360,7 +360,7 @@ class MigrationCenterConnectionImpl request) override; StatusOr UpdatePreferenceSet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdatePreferenceSetRequest const& request) override; @@ -374,7 +374,7 @@ class MigrationCenterConnectionImpl request) override; StatusOr DeletePreferenceSet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeletePreferenceSetRequest const& request) override; @@ -391,7 +391,7 @@ class MigrationCenterConnectionImpl override; StatusOr UpdateSettings( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::UpdateSettingsRequest const& request) override; @@ -405,7 +405,7 @@ class MigrationCenterConnectionImpl request) override; StatusOr CreateReportConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateReportConfigRequest const& request) override; @@ -427,7 +427,7 @@ class MigrationCenterConnectionImpl request) override; StatusOr DeleteReportConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteReportConfigRequest const& request) override; @@ -440,7 +440,7 @@ class MigrationCenterConnectionImpl override; StatusOr CreateReport( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::CreateReportRequest const& request) override; @@ -460,7 +460,7 @@ class MigrationCenterConnectionImpl request) override; StatusOr DeleteReport( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::migrationcenter::v1::DeleteReportRequest const& request) override; diff --git a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.cc b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.cc index d37a12e473412..edc976762746e 100644 --- a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.cc +++ b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.cc @@ -149,7 +149,7 @@ MetricsScopesConnectionImpl::CreateMonitoredProject( StatusOr MetricsScopesConnectionImpl::CreateMonitoredProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -244,7 +244,7 @@ MetricsScopesConnectionImpl::DeleteMonitoredProject( StatusOr MetricsScopesConnectionImpl::DeleteMonitoredProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.h b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.h index 905195e973d74..5d6a9d335f2e6 100644 --- a/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.h +++ b/google/cloud/monitoring/metricsscope/v1/internal/metrics_scopes_connection_impl.h @@ -68,7 +68,7 @@ class MetricsScopesConnectionImpl request) override; StatusOr CreateMonitoredProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const& request) override; @@ -83,7 +83,7 @@ class MetricsScopesConnectionImpl request) override; StatusOr DeleteMonitoredProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const& request) override; diff --git a/google/cloud/netapp/v1/internal/net_app_connection_impl.cc b/google/cloud/netapp/v1/internal/net_app_connection_impl.cc index 843b2ac7807b1..a3ce238f5dcac 100644 --- a/google/cloud/netapp/v1/internal/net_app_connection_impl.cc +++ b/google/cloud/netapp/v1/internal/net_app_connection_impl.cc @@ -137,7 +137,7 @@ NetAppConnectionImpl::CreateStoragePool( StatusOr NetAppConnectionImpl::CreateStoragePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateStoragePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -242,7 +242,7 @@ NetAppConnectionImpl::UpdateStoragePool( StatusOr NetAppConnectionImpl::UpdateStoragePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateStoragePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -333,7 +333,7 @@ NetAppConnectionImpl::DeleteStoragePool( StatusOr NetAppConnectionImpl::DeleteStoragePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteStoragePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -471,7 +471,7 @@ NetAppConnectionImpl::CreateVolume( } StatusOr NetAppConnectionImpl::CreateVolume( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateVolumeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -560,7 +560,7 @@ NetAppConnectionImpl::UpdateVolume( } StatusOr NetAppConnectionImpl::UpdateVolume( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateVolumeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -649,7 +649,7 @@ NetAppConnectionImpl::DeleteVolume( } StatusOr NetAppConnectionImpl::DeleteVolume( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteVolumeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -739,7 +739,7 @@ NetAppConnectionImpl::RevertVolume( } StatusOr NetAppConnectionImpl::RevertVolume( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::RevertVolumeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -875,7 +875,7 @@ NetAppConnectionImpl::CreateSnapshot( } StatusOr NetAppConnectionImpl::CreateSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -964,7 +964,7 @@ NetAppConnectionImpl::DeleteSnapshot( } StatusOr NetAppConnectionImpl::DeleteSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1054,7 +1054,7 @@ NetAppConnectionImpl::UpdateSnapshot( } StatusOr NetAppConnectionImpl::UpdateSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateSnapshotRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1196,7 +1196,7 @@ NetAppConnectionImpl::CreateActiveDirectory( StatusOr NetAppConnectionImpl::CreateActiveDirectory( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1289,7 +1289,7 @@ NetAppConnectionImpl::UpdateActiveDirectory( StatusOr NetAppConnectionImpl::UpdateActiveDirectory( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1382,7 +1382,7 @@ NetAppConnectionImpl::DeleteActiveDirectory( StatusOr NetAppConnectionImpl::DeleteActiveDirectory( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1507,7 +1507,7 @@ NetAppConnectionImpl::CreateKmsConfig( } StatusOr NetAppConnectionImpl::CreateKmsConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateKmsConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1610,7 +1610,7 @@ NetAppConnectionImpl::UpdateKmsConfig( } StatusOr NetAppConnectionImpl::UpdateKmsConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateKmsConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1699,7 +1699,7 @@ NetAppConnectionImpl::EncryptVolumes( } StatusOr NetAppConnectionImpl::EncryptVolumes( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::EncryptVolumesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1802,7 +1802,7 @@ NetAppConnectionImpl::DeleteKmsConfig( } StatusOr NetAppConnectionImpl::DeleteKmsConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteKmsConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1941,7 +1941,7 @@ NetAppConnectionImpl::CreateReplication( StatusOr NetAppConnectionImpl::CreateReplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateReplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2032,7 +2032,7 @@ NetAppConnectionImpl::DeleteReplication( StatusOr NetAppConnectionImpl::DeleteReplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteReplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2124,7 +2124,7 @@ NetAppConnectionImpl::UpdateReplication( StatusOr NetAppConnectionImpl::UpdateReplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateReplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2214,7 +2214,7 @@ NetAppConnectionImpl::StopReplication( } StatusOr NetAppConnectionImpl::StopReplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::StopReplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2304,7 +2304,7 @@ NetAppConnectionImpl::ResumeReplication( StatusOr NetAppConnectionImpl::ResumeReplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::ResumeReplicationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2397,7 +2397,7 @@ NetAppConnectionImpl::ReverseReplicationDirection( StatusOr NetAppConnectionImpl::ReverseReplicationDirection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2490,7 +2490,7 @@ NetAppConnectionImpl::CreateBackupVault( StatusOr NetAppConnectionImpl::CreateBackupVault( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupVaultRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2629,7 +2629,7 @@ NetAppConnectionImpl::UpdateBackupVault( StatusOr NetAppConnectionImpl::UpdateBackupVault( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupVaultRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2720,7 +2720,7 @@ NetAppConnectionImpl::DeleteBackupVault( StatusOr NetAppConnectionImpl::DeleteBackupVault( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupVaultRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2811,7 +2811,7 @@ NetAppConnectionImpl::CreateBackup( } StatusOr NetAppConnectionImpl::CreateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2947,7 +2947,7 @@ NetAppConnectionImpl::DeleteBackup( } StatusOr NetAppConnectionImpl::DeleteBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -3037,7 +3037,7 @@ NetAppConnectionImpl::UpdateBackup( } StatusOr NetAppConnectionImpl::UpdateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -3127,7 +3127,7 @@ NetAppConnectionImpl::CreateBackupPolicy( StatusOr NetAppConnectionImpl::CreateBackupPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -3266,7 +3266,7 @@ NetAppConnectionImpl::UpdateBackupPolicy( StatusOr NetAppConnectionImpl::UpdateBackupPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -3357,7 +3357,7 @@ NetAppConnectionImpl::DeleteBackupPolicy( StatusOr NetAppConnectionImpl::DeleteBackupPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/netapp/v1/internal/net_app_connection_impl.h b/google/cloud/netapp/v1/internal/net_app_connection_impl.h index daccfc348e2cc..4d2f74e5d8b1d 100644 --- a/google/cloud/netapp/v1/internal/net_app_connection_impl.h +++ b/google/cloud/netapp/v1/internal/net_app_connection_impl.h @@ -58,7 +58,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr CreateStoragePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateStoragePoolRequest const& request) override; @@ -74,7 +74,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr UpdateStoragePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateStoragePoolRequest const& request) override; @@ -87,7 +87,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { request) override; StatusOr DeleteStoragePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteStoragePoolRequest const& request) override; @@ -105,7 +105,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::CreateVolumeRequest const& request) override; StatusOr CreateVolume( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateVolumeRequest const& request) override; future> CreateVolume( @@ -116,7 +116,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::UpdateVolumeRequest const& request) override; StatusOr UpdateVolume( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateVolumeRequest const& request) override; future> UpdateVolume( @@ -127,7 +127,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::DeleteVolumeRequest const& request) override; StatusOr DeleteVolume( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteVolumeRequest const& request) override; future> DeleteVolume( @@ -138,7 +138,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::RevertVolumeRequest const& request) override; StatusOr RevertVolume( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::RevertVolumeRequest const& request) override; future> RevertVolume( @@ -155,7 +155,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::CreateSnapshotRequest const& request) override; StatusOr CreateSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateSnapshotRequest const& request) override; future> CreateSnapshot( @@ -166,7 +166,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::DeleteSnapshotRequest const& request) override; StatusOr DeleteSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteSnapshotRequest const& request) override; future> DeleteSnapshot( @@ -177,7 +177,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::UpdateSnapshotRequest const& request) override; StatusOr UpdateSnapshot( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateSnapshotRequest const& request) override; future> UpdateSnapshot( @@ -197,7 +197,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr CreateActiveDirectory( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateActiveDirectoryRequest const& request) override; @@ -212,7 +212,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr UpdateActiveDirectory( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateActiveDirectoryRequest const& request) override; @@ -227,7 +227,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr DeleteActiveDirectory( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteActiveDirectoryRequest const& request) override; @@ -244,7 +244,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr CreateKmsConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateKmsConfigRequest const& request) override; @@ -260,7 +260,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr UpdateKmsConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateKmsConfigRequest const& request) override; @@ -272,7 +272,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::EncryptVolumesRequest const& request) override; StatusOr EncryptVolumes( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::EncryptVolumesRequest const& request) override; future> EncryptVolumes( @@ -288,7 +288,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { request) override; StatusOr DeleteKmsConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteKmsConfigRequest const& request) override; @@ -307,7 +307,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr CreateReplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateReplicationRequest const& request) override; @@ -320,7 +320,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { request) override; StatusOr DeleteReplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteReplicationRequest const& request) override; @@ -333,7 +333,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr UpdateReplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateReplicationRequest const& request) override; @@ -346,7 +346,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr StopReplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::StopReplicationRequest const& request) override; @@ -359,7 +359,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr ResumeReplication( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::ResumeReplicationRequest const& request) override; @@ -373,7 +373,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { request) override; StatusOr ReverseReplicationDirection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::ReverseReplicationDirectionRequest const& request) override; @@ -387,7 +387,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr CreateBackupVault( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupVaultRequest const& request) override; @@ -406,7 +406,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr UpdateBackupVault( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupVaultRequest const& request) override; @@ -419,7 +419,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { request) override; StatusOr DeleteBackupVault( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupVaultRequest const& request) override; @@ -431,7 +431,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::CreateBackupRequest const& request) override; StatusOr CreateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupRequest const& request) override; future> CreateBackup( @@ -448,7 +448,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::DeleteBackupRequest const& request) override; StatusOr DeleteBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupRequest const& request) override; future> DeleteBackup( @@ -459,7 +459,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { google::cloud::netapp::v1::UpdateBackupRequest const& request) override; StatusOr UpdateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupRequest const& request) override; future> UpdateBackup( @@ -471,7 +471,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr CreateBackupPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::CreateBackupPolicyRequest const& request) override; @@ -491,7 +491,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { override; StatusOr UpdateBackupPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::UpdateBackupPolicyRequest const& request) override; @@ -504,7 +504,7 @@ class NetAppConnectionImpl : public netapp_v1::NetAppConnection { request) override; StatusOr DeleteBackupPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::netapp::v1::DeleteBackupPolicyRequest const& request) override; diff --git a/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.cc b/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.cc index 1e7b9af5d17c7..4edd7191e9c12 100644 --- a/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.cc +++ b/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.cc @@ -156,7 +156,7 @@ HubServiceConnectionImpl::CreateHub( } StatusOr HubServiceConnectionImpl::CreateHub( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::CreateHubRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -248,7 +248,7 @@ HubServiceConnectionImpl::UpdateHub( } StatusOr HubServiceConnectionImpl::UpdateHub( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::UpdateHubRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -340,7 +340,7 @@ HubServiceConnectionImpl::DeleteHub( } StatusOr HubServiceConnectionImpl::DeleteHub( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::DeleteHubRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -518,7 +518,7 @@ HubServiceConnectionImpl::CreateSpoke( } StatusOr HubServiceConnectionImpl::CreateSpoke( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::CreateSpokeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -611,7 +611,7 @@ HubServiceConnectionImpl::UpdateSpoke( } StatusOr HubServiceConnectionImpl::UpdateSpoke( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -706,7 +706,7 @@ HubServiceConnectionImpl::RejectHubSpoke( StatusOr HubServiceConnectionImpl::RejectHubSpoke( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -803,7 +803,7 @@ HubServiceConnectionImpl::AcceptHubSpoke( StatusOr HubServiceConnectionImpl::AcceptHubSpoke( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -898,7 +898,7 @@ HubServiceConnectionImpl::DeleteSpoke( } StatusOr HubServiceConnectionImpl::DeleteSpoke( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.h b/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.h index 7ca4ef06aea4f..67f6f823fac7b 100644 --- a/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.h +++ b/google/cloud/networkconnectivity/v1/internal/hub_connection_impl.h @@ -64,7 +64,7 @@ class HubServiceConnectionImpl override; StatusOr CreateHub( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::CreateHubRequest const& request) override; @@ -77,7 +77,7 @@ class HubServiceConnectionImpl override; StatusOr UpdateHub( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::UpdateHubRequest const& request) override; @@ -90,7 +90,7 @@ class HubServiceConnectionImpl request) override; StatusOr DeleteHub( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::DeleteHubRequest const& request) override; @@ -115,7 +115,7 @@ class HubServiceConnectionImpl override; StatusOr CreateSpoke( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::CreateSpokeRequest const& request) override; @@ -128,7 +128,7 @@ class HubServiceConnectionImpl override; StatusOr UpdateSpoke( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::UpdateSpokeRequest const& request) override; @@ -143,7 +143,7 @@ class HubServiceConnectionImpl request) override; StatusOr RejectHubSpoke( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::RejectHubSpokeRequest const& request) override; @@ -159,7 +159,7 @@ class HubServiceConnectionImpl request) override; StatusOr AcceptHubSpoke( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::AcceptHubSpokeRequest const& request) override; @@ -173,7 +173,7 @@ class HubServiceConnectionImpl request) override; StatusOr DeleteSpoke( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::DeleteSpokeRequest const& request) override; diff --git a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.cc b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.cc index 84f106d2effa7..890084598cf59 100644 --- a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.cc +++ b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.cc @@ -174,7 +174,7 @@ PolicyBasedRoutingServiceConnectionImpl::CreatePolicyBasedRoute( StatusOr PolicyBasedRoutingServiceConnectionImpl::CreatePolicyBasedRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::CreatePolicyBasedRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -269,7 +269,7 @@ PolicyBasedRoutingServiceConnectionImpl::DeletePolicyBasedRoute( StatusOr PolicyBasedRoutingServiceConnectionImpl::DeletePolicyBasedRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1::DeletePolicyBasedRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.h b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.h index 29fcbe7e8c725..78862c9c1b026 100644 --- a/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.h +++ b/google/cloud/networkconnectivity/v1/internal/policy_based_routing_connection_impl.h @@ -70,7 +70,7 @@ class PolicyBasedRoutingServiceConnectionImpl CreatePolicyBasedRouteRequest const& request) override; StatusOr CreatePolicyBasedRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1:: CreatePolicyBasedRouteRequest const& request) override; @@ -85,7 +85,7 @@ class PolicyBasedRoutingServiceConnectionImpl DeletePolicyBasedRouteRequest const& request) override; StatusOr DeletePolicyBasedRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkconnectivity::v1:: DeletePolicyBasedRouteRequest const& request) override; diff --git a/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.cc b/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.cc index eb8543e4c0b00..dcda991beedac 100644 --- a/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.cc +++ b/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.cc @@ -169,7 +169,7 @@ ReachabilityServiceConnectionImpl::CreateConnectivityTest( StatusOr ReachabilityServiceConnectionImpl::CreateConnectivityTest( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::CreateConnectivityTestRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -264,7 +264,7 @@ ReachabilityServiceConnectionImpl::UpdateConnectivityTest( StatusOr ReachabilityServiceConnectionImpl::UpdateConnectivityTest( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -359,7 +359,7 @@ ReachabilityServiceConnectionImpl::RerunConnectivityTest( StatusOr ReachabilityServiceConnectionImpl::RerunConnectivityTest( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -454,7 +454,7 @@ ReachabilityServiceConnectionImpl::DeleteConnectivityTest( StatusOr ReachabilityServiceConnectionImpl::DeleteConnectivityTest( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.h b/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.h index ab39bcf433619..c8620bd40e812 100644 --- a/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.h +++ b/google/cloud/networkmanagement/v1/internal/reachability_connection_impl.h @@ -69,7 +69,7 @@ class ReachabilityServiceConnectionImpl request) override; StatusOr CreateConnectivityTest( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::CreateConnectivityTestRequest const& request) override; @@ -84,7 +84,7 @@ class ReachabilityServiceConnectionImpl request) override; StatusOr UpdateConnectivityTest( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::UpdateConnectivityTestRequest const& request) override; @@ -99,7 +99,7 @@ class ReachabilityServiceConnectionImpl request) override; StatusOr RerunConnectivityTest( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::RerunConnectivityTestRequest const& request) override; @@ -114,7 +114,7 @@ class ReachabilityServiceConnectionImpl request) override; StatusOr DeleteConnectivityTest( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkmanagement::v1::DeleteConnectivityTestRequest const& request) override; diff --git a/google/cloud/networksecurity/v1/internal/network_security_connection_impl.cc b/google/cloud/networksecurity/v1/internal/network_security_connection_impl.cc index ea4973796318d..442da72be2ae2 100644 --- a/google/cloud/networksecurity/v1/internal/network_security_connection_impl.cc +++ b/google/cloud/networksecurity/v1/internal/network_security_connection_impl.cc @@ -164,7 +164,7 @@ NetworkSecurityConnectionImpl::CreateAuthorizationPolicy( StatusOr NetworkSecurityConnectionImpl::CreateAuthorizationPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::CreateAuthorizationPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -259,7 +259,7 @@ NetworkSecurityConnectionImpl::UpdateAuthorizationPolicy( StatusOr NetworkSecurityConnectionImpl::UpdateAuthorizationPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::UpdateAuthorizationPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -354,7 +354,7 @@ NetworkSecurityConnectionImpl::DeleteAuthorizationPolicy( StatusOr NetworkSecurityConnectionImpl::DeleteAuthorizationPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::DeleteAuthorizationPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -501,7 +501,7 @@ NetworkSecurityConnectionImpl::CreateServerTlsPolicy( StatusOr NetworkSecurityConnectionImpl::CreateServerTlsPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -596,7 +596,7 @@ NetworkSecurityConnectionImpl::UpdateServerTlsPolicy( StatusOr NetworkSecurityConnectionImpl::UpdateServerTlsPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -691,7 +691,7 @@ NetworkSecurityConnectionImpl::DeleteServerTlsPolicy( StatusOr NetworkSecurityConnectionImpl::DeleteServerTlsPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -838,7 +838,7 @@ NetworkSecurityConnectionImpl::CreateClientTlsPolicy( StatusOr NetworkSecurityConnectionImpl::CreateClientTlsPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -933,7 +933,7 @@ NetworkSecurityConnectionImpl::UpdateClientTlsPolicy( StatusOr NetworkSecurityConnectionImpl::UpdateClientTlsPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1028,7 +1028,7 @@ NetworkSecurityConnectionImpl::DeleteClientTlsPolicy( StatusOr NetworkSecurityConnectionImpl::DeleteClientTlsPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/networksecurity/v1/internal/network_security_connection_impl.h b/google/cloud/networksecurity/v1/internal/network_security_connection_impl.h index a3db54fa3b4d2..c9411fc565c5f 100644 --- a/google/cloud/networksecurity/v1/internal/network_security_connection_impl.h +++ b/google/cloud/networksecurity/v1/internal/network_security_connection_impl.h @@ -68,7 +68,7 @@ class NetworkSecurityConnectionImpl CreateAuthorizationPolicyRequest const& request) override; StatusOr CreateAuthorizationPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1:: CreateAuthorizationPolicyRequest const& request) override; @@ -83,7 +83,7 @@ class NetworkSecurityConnectionImpl UpdateAuthorizationPolicyRequest const& request) override; StatusOr UpdateAuthorizationPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1:: UpdateAuthorizationPolicyRequest const& request) override; @@ -98,7 +98,7 @@ class NetworkSecurityConnectionImpl DeleteAuthorizationPolicyRequest const& request) override; StatusOr DeleteAuthorizationPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1:: DeleteAuthorizationPolicyRequest const& request) override; @@ -123,7 +123,7 @@ class NetworkSecurityConnectionImpl request) override; StatusOr CreateServerTlsPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::CreateServerTlsPolicyRequest const& request) override; @@ -138,7 +138,7 @@ class NetworkSecurityConnectionImpl request) override; StatusOr UpdateServerTlsPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::UpdateServerTlsPolicyRequest const& request) override; @@ -153,7 +153,7 @@ class NetworkSecurityConnectionImpl request) override; StatusOr DeleteServerTlsPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::DeleteServerTlsPolicyRequest const& request) override; @@ -178,7 +178,7 @@ class NetworkSecurityConnectionImpl request) override; StatusOr CreateClientTlsPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::CreateClientTlsPolicyRequest const& request) override; @@ -193,7 +193,7 @@ class NetworkSecurityConnectionImpl request) override; StatusOr UpdateClientTlsPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::UpdateClientTlsPolicyRequest const& request) override; @@ -208,7 +208,7 @@ class NetworkSecurityConnectionImpl request) override; StatusOr DeleteClientTlsPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networksecurity::v1::DeleteClientTlsPolicyRequest const& request) override; diff --git a/google/cloud/networkservices/v1/internal/dep_connection_impl.cc b/google/cloud/networkservices/v1/internal/dep_connection_impl.cc index a844afbfb987d..508c6d1f020d1 100644 --- a/google/cloud/networkservices/v1/internal/dep_connection_impl.cc +++ b/google/cloud/networkservices/v1/internal/dep_connection_impl.cc @@ -162,7 +162,7 @@ DepServiceConnectionImpl::CreateLbTrafficExtension( StatusOr DepServiceConnectionImpl::CreateLbTrafficExtension( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateLbTrafficExtensionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -257,7 +257,7 @@ DepServiceConnectionImpl::UpdateLbTrafficExtension( StatusOr DepServiceConnectionImpl::UpdateLbTrafficExtension( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -352,7 +352,7 @@ DepServiceConnectionImpl::DeleteLbTrafficExtension( StatusOr DepServiceConnectionImpl::DeleteLbTrafficExtension( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -499,7 +499,7 @@ DepServiceConnectionImpl::CreateLbRouteExtension( StatusOr DepServiceConnectionImpl::CreateLbRouteExtension( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -594,7 +594,7 @@ DepServiceConnectionImpl::UpdateLbRouteExtension( StatusOr DepServiceConnectionImpl::UpdateLbRouteExtension( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -689,7 +689,7 @@ DepServiceConnectionImpl::DeleteLbRouteExtension( StatusOr DepServiceConnectionImpl::DeleteLbRouteExtension( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/networkservices/v1/internal/dep_connection_impl.h b/google/cloud/networkservices/v1/internal/dep_connection_impl.h index ca53917fa0b63..a104331dab72c 100644 --- a/google/cloud/networkservices/v1/internal/dep_connection_impl.h +++ b/google/cloud/networkservices/v1/internal/dep_connection_impl.h @@ -68,7 +68,7 @@ class DepServiceConnectionImpl request) override; StatusOr CreateLbTrafficExtension( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateLbTrafficExtensionRequest const& request) override; @@ -83,7 +83,7 @@ class DepServiceConnectionImpl request) override; StatusOr UpdateLbTrafficExtension( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateLbTrafficExtensionRequest const& request) override; @@ -98,7 +98,7 @@ class DepServiceConnectionImpl request) override; StatusOr DeleteLbTrafficExtension( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteLbTrafficExtensionRequest const& request) override; @@ -123,7 +123,7 @@ class DepServiceConnectionImpl request) override; StatusOr CreateLbRouteExtension( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateLbRouteExtensionRequest const& request) override; @@ -138,7 +138,7 @@ class DepServiceConnectionImpl request) override; StatusOr UpdateLbRouteExtension( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateLbRouteExtensionRequest const& request) override; @@ -153,7 +153,7 @@ class DepServiceConnectionImpl request) override; StatusOr DeleteLbRouteExtension( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteLbRouteExtensionRequest const& request) override; diff --git a/google/cloud/networkservices/v1/internal/network_services_connection_impl.cc b/google/cloud/networkservices/v1/internal/network_services_connection_impl.cc index 760e18b06810e..5dc4240cbc0d0 100644 --- a/google/cloud/networkservices/v1/internal/network_services_connection_impl.cc +++ b/google/cloud/networkservices/v1/internal/network_services_connection_impl.cc @@ -163,7 +163,7 @@ NetworkServicesConnectionImpl::CreateEndpointPolicy( StatusOr NetworkServicesConnectionImpl::CreateEndpointPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -260,7 +260,7 @@ NetworkServicesConnectionImpl::UpdateEndpointPolicy( StatusOr NetworkServicesConnectionImpl::UpdateEndpointPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -357,7 +357,7 @@ NetworkServicesConnectionImpl::DeleteEndpointPolicy( StatusOr NetworkServicesConnectionImpl::DeleteEndpointPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -503,7 +503,7 @@ NetworkServicesConnectionImpl::CreateGateway( StatusOr NetworkServicesConnectionImpl::CreateGateway( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -597,7 +597,7 @@ NetworkServicesConnectionImpl::UpdateGateway( StatusOr NetworkServicesConnectionImpl::UpdateGateway( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -691,7 +691,7 @@ NetworkServicesConnectionImpl::DeleteGateway( StatusOr NetworkServicesConnectionImpl::DeleteGateway( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteGatewayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -835,7 +835,7 @@ NetworkServicesConnectionImpl::CreateGrpcRoute( StatusOr NetworkServicesConnectionImpl::CreateGrpcRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateGrpcRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -929,7 +929,7 @@ NetworkServicesConnectionImpl::UpdateGrpcRoute( StatusOr NetworkServicesConnectionImpl::UpdateGrpcRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1023,7 +1023,7 @@ NetworkServicesConnectionImpl::DeleteGrpcRoute( StatusOr NetworkServicesConnectionImpl::DeleteGrpcRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1167,7 +1167,7 @@ NetworkServicesConnectionImpl::CreateHttpRoute( StatusOr NetworkServicesConnectionImpl::CreateHttpRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateHttpRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1261,7 +1261,7 @@ NetworkServicesConnectionImpl::UpdateHttpRoute( StatusOr NetworkServicesConnectionImpl::UpdateHttpRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1355,7 +1355,7 @@ NetworkServicesConnectionImpl::DeleteHttpRoute( StatusOr NetworkServicesConnectionImpl::DeleteHttpRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1499,7 +1499,7 @@ NetworkServicesConnectionImpl::CreateTcpRoute( StatusOr NetworkServicesConnectionImpl::CreateTcpRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateTcpRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1593,7 +1593,7 @@ NetworkServicesConnectionImpl::UpdateTcpRoute( StatusOr NetworkServicesConnectionImpl::UpdateTcpRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1687,7 +1687,7 @@ NetworkServicesConnectionImpl::DeleteTcpRoute( StatusOr NetworkServicesConnectionImpl::DeleteTcpRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1831,7 +1831,7 @@ NetworkServicesConnectionImpl::CreateTlsRoute( StatusOr NetworkServicesConnectionImpl::CreateTlsRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateTlsRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1925,7 +1925,7 @@ NetworkServicesConnectionImpl::UpdateTlsRoute( StatusOr NetworkServicesConnectionImpl::UpdateTlsRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2019,7 +2019,7 @@ NetworkServicesConnectionImpl::DeleteTlsRoute( StatusOr NetworkServicesConnectionImpl::DeleteTlsRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2165,7 +2165,7 @@ NetworkServicesConnectionImpl::CreateServiceBinding( StatusOr NetworkServicesConnectionImpl::CreateServiceBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateServiceBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2262,7 +2262,7 @@ NetworkServicesConnectionImpl::DeleteServiceBinding( StatusOr NetworkServicesConnectionImpl::DeleteServiceBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteServiceBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2407,7 +2407,7 @@ NetworkServicesConnectionImpl::CreateMesh( StatusOr NetworkServicesConnectionImpl::CreateMesh( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateMeshRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2501,7 +2501,7 @@ NetworkServicesConnectionImpl::UpdateMesh( StatusOr NetworkServicesConnectionImpl::UpdateMesh( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateMeshRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2595,7 +2595,7 @@ NetworkServicesConnectionImpl::DeleteMesh( StatusOr NetworkServicesConnectionImpl::DeleteMesh( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteMeshRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/networkservices/v1/internal/network_services_connection_impl.h b/google/cloud/networkservices/v1/internal/network_services_connection_impl.h index c339b58130827..f411696004eb0 100644 --- a/google/cloud/networkservices/v1/internal/network_services_connection_impl.h +++ b/google/cloud/networkservices/v1/internal/network_services_connection_impl.h @@ -68,7 +68,7 @@ class NetworkServicesConnectionImpl request) override; StatusOr CreateEndpointPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateEndpointPolicyRequest const& request) override; @@ -83,7 +83,7 @@ class NetworkServicesConnectionImpl request) override; StatusOr UpdateEndpointPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateEndpointPolicyRequest const& request) override; @@ -98,7 +98,7 @@ class NetworkServicesConnectionImpl request) override; StatusOr DeleteEndpointPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteEndpointPolicyRequest const& request) override; @@ -119,7 +119,7 @@ class NetworkServicesConnectionImpl override; StatusOr CreateGateway( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateGatewayRequest const& request) override; @@ -132,7 +132,7 @@ class NetworkServicesConnectionImpl override; StatusOr UpdateGateway( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateGatewayRequest const& request) override; @@ -145,7 +145,7 @@ class NetworkServicesConnectionImpl request) override; StatusOr DeleteGateway( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteGatewayRequest const& request) override; @@ -167,7 +167,7 @@ class NetworkServicesConnectionImpl override; StatusOr CreateGrpcRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateGrpcRouteRequest const& request) override; @@ -181,7 +181,7 @@ class NetworkServicesConnectionImpl override; StatusOr UpdateGrpcRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateGrpcRouteRequest const& request) override; @@ -195,7 +195,7 @@ class NetworkServicesConnectionImpl override; StatusOr DeleteGrpcRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteGrpcRouteRequest const& request) override; @@ -217,7 +217,7 @@ class NetworkServicesConnectionImpl override; StatusOr CreateHttpRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateHttpRouteRequest const& request) override; @@ -231,7 +231,7 @@ class NetworkServicesConnectionImpl override; StatusOr UpdateHttpRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateHttpRouteRequest const& request) override; @@ -245,7 +245,7 @@ class NetworkServicesConnectionImpl override; StatusOr DeleteHttpRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteHttpRouteRequest const& request) override; @@ -266,7 +266,7 @@ class NetworkServicesConnectionImpl override; StatusOr CreateTcpRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateTcpRouteRequest const& request) override; @@ -279,7 +279,7 @@ class NetworkServicesConnectionImpl override; StatusOr UpdateTcpRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateTcpRouteRequest const& request) override; @@ -293,7 +293,7 @@ class NetworkServicesConnectionImpl override; StatusOr DeleteTcpRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteTcpRouteRequest const& request) override; @@ -314,7 +314,7 @@ class NetworkServicesConnectionImpl override; StatusOr CreateTlsRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateTlsRouteRequest const& request) override; @@ -327,7 +327,7 @@ class NetworkServicesConnectionImpl override; StatusOr UpdateTlsRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateTlsRouteRequest const& request) override; @@ -341,7 +341,7 @@ class NetworkServicesConnectionImpl override; StatusOr DeleteTlsRoute( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteTlsRouteRequest const& request) override; @@ -365,7 +365,7 @@ class NetworkServicesConnectionImpl request) override; StatusOr CreateServiceBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateServiceBindingRequest const& request) override; @@ -380,7 +380,7 @@ class NetworkServicesConnectionImpl request) override; StatusOr DeleteServiceBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteServiceBindingRequest const& request) override; @@ -401,7 +401,7 @@ class NetworkServicesConnectionImpl override; StatusOr CreateMesh( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::CreateMeshRequest const& request) override; @@ -414,7 +414,7 @@ class NetworkServicesConnectionImpl override; StatusOr UpdateMesh( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::UpdateMeshRequest const& request) override; @@ -427,7 +427,7 @@ class NetworkServicesConnectionImpl request) override; StatusOr DeleteMesh( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::networkservices::v1::DeleteMeshRequest const& request) override; diff --git a/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.cc b/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.cc index c283b55645058..533890d7db0f0 100644 --- a/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.cc +++ b/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.cc @@ -157,7 +157,7 @@ ManagedNotebookServiceConnectionImpl::CreateRuntime( StatusOr ManagedNotebookServiceConnectionImpl::CreateRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -248,7 +248,7 @@ ManagedNotebookServiceConnectionImpl::UpdateRuntime( StatusOr ManagedNotebookServiceConnectionImpl::UpdateRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -339,7 +339,7 @@ ManagedNotebookServiceConnectionImpl::DeleteRuntime( StatusOr ManagedNotebookServiceConnectionImpl::DeleteRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -431,7 +431,7 @@ ManagedNotebookServiceConnectionImpl::StartRuntime( StatusOr ManagedNotebookServiceConnectionImpl::StartRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StartRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -521,7 +521,7 @@ ManagedNotebookServiceConnectionImpl::StopRuntime( StatusOr ManagedNotebookServiceConnectionImpl::StopRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StopRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -611,7 +611,7 @@ ManagedNotebookServiceConnectionImpl::SwitchRuntime( StatusOr ManagedNotebookServiceConnectionImpl::SwitchRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SwitchRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -702,7 +702,7 @@ ManagedNotebookServiceConnectionImpl::ResetRuntime( StatusOr ManagedNotebookServiceConnectionImpl::ResetRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ResetRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -792,7 +792,7 @@ ManagedNotebookServiceConnectionImpl::UpgradeRuntime( StatusOr ManagedNotebookServiceConnectionImpl::UpgradeRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -884,7 +884,7 @@ ManagedNotebookServiceConnectionImpl::ReportRuntimeEvent( StatusOr ManagedNotebookServiceConnectionImpl::ReportRuntimeEvent( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -991,7 +991,7 @@ ManagedNotebookServiceConnectionImpl::DiagnoseRuntime( StatusOr ManagedNotebookServiceConnectionImpl::DiagnoseRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.h b/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.h index 8ee30c2ef4a7d..bb0ac17d09696 100644 --- a/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.h +++ b/google/cloud/notebooks/v1/internal/managed_notebook_connection_impl.h @@ -63,7 +63,7 @@ class ManagedNotebookServiceConnectionImpl override; StatusOr CreateRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateRuntimeRequest const& request) override; @@ -76,7 +76,7 @@ class ManagedNotebookServiceConnectionImpl override; StatusOr UpdateRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateRuntimeRequest const& request) override; @@ -89,7 +89,7 @@ class ManagedNotebookServiceConnectionImpl request) override; StatusOr DeleteRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteRuntimeRequest const& request) override; @@ -102,7 +102,7 @@ class ManagedNotebookServiceConnectionImpl override; StatusOr StartRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StartRuntimeRequest const& request) override; @@ -114,7 +114,7 @@ class ManagedNotebookServiceConnectionImpl google::cloud::notebooks::v1::StopRuntimeRequest const& request) override; StatusOr StopRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StopRuntimeRequest const& request) override; future> StopRuntime( @@ -126,7 +126,7 @@ class ManagedNotebookServiceConnectionImpl override; StatusOr SwitchRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SwitchRuntimeRequest const& request) override; @@ -139,7 +139,7 @@ class ManagedNotebookServiceConnectionImpl override; StatusOr ResetRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ResetRuntimeRequest const& request) override; @@ -152,7 +152,7 @@ class ManagedNotebookServiceConnectionImpl override; StatusOr UpgradeRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeRuntimeRequest const& request) override; @@ -165,7 +165,7 @@ class ManagedNotebookServiceConnectionImpl override; StatusOr ReportRuntimeEvent( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ReportRuntimeEventRequest const& request) override; @@ -183,7 +183,7 @@ class ManagedNotebookServiceConnectionImpl override; StatusOr DiagnoseRuntime( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DiagnoseRuntimeRequest const& request) override; diff --git a/google/cloud/notebooks/v1/internal/notebook_connection_impl.cc b/google/cloud/notebooks/v1/internal/notebook_connection_impl.cc index 8d607e0cf3154..7302206f73077 100644 --- a/google/cloud/notebooks/v1/internal/notebook_connection_impl.cc +++ b/google/cloud/notebooks/v1/internal/notebook_connection_impl.cc @@ -155,7 +155,7 @@ NotebookServiceConnectionImpl::CreateInstance( StatusOr NotebookServiceConnectionImpl::CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -247,7 +247,7 @@ NotebookServiceConnectionImpl::RegisterInstance( StatusOr NotebookServiceConnectionImpl::RegisterInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::RegisterInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -340,7 +340,7 @@ NotebookServiceConnectionImpl::SetInstanceAccelerator( StatusOr NotebookServiceConnectionImpl::SetInstanceAccelerator( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -434,7 +434,7 @@ NotebookServiceConnectionImpl::SetInstanceMachineType( StatusOr NotebookServiceConnectionImpl::SetInstanceMachineType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -527,7 +527,7 @@ NotebookServiceConnectionImpl::UpdateInstanceConfig( StatusOr NotebookServiceConnectionImpl::UpdateInstanceConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -619,7 +619,7 @@ NotebookServiceConnectionImpl::UpdateShieldedInstanceConfig( StatusOr NotebookServiceConnectionImpl::UpdateShieldedInstanceConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -712,7 +712,7 @@ NotebookServiceConnectionImpl::SetInstanceLabels( StatusOr NotebookServiceConnectionImpl::SetInstanceLabels( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -819,7 +819,7 @@ NotebookServiceConnectionImpl::DeleteInstance( StatusOr NotebookServiceConnectionImpl::DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -911,7 +911,7 @@ NotebookServiceConnectionImpl::StartInstance( StatusOr NotebookServiceConnectionImpl::StartInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StartInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1002,7 +1002,7 @@ NotebookServiceConnectionImpl::StopInstance( StatusOr NotebookServiceConnectionImpl::StopInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StopInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1092,7 +1092,7 @@ NotebookServiceConnectionImpl::ResetInstance( StatusOr NotebookServiceConnectionImpl::ResetInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ResetInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1184,7 +1184,7 @@ NotebookServiceConnectionImpl::ReportInstanceInfo( StatusOr NotebookServiceConnectionImpl::ReportInstanceInfo( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1305,7 +1305,7 @@ NotebookServiceConnectionImpl::UpgradeInstance( StatusOr NotebookServiceConnectionImpl::UpgradeInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1397,7 +1397,7 @@ NotebookServiceConnectionImpl::RollbackInstance( StatusOr NotebookServiceConnectionImpl::RollbackInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::RollbackInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1489,7 +1489,7 @@ NotebookServiceConnectionImpl::DiagnoseInstance( StatusOr NotebookServiceConnectionImpl::DiagnoseInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1582,7 +1582,7 @@ NotebookServiceConnectionImpl::UpgradeInstanceInternal( StatusOr NotebookServiceConnectionImpl::UpgradeInstanceInternal( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1724,7 +1724,7 @@ NotebookServiceConnectionImpl::CreateEnvironment( StatusOr NotebookServiceConnectionImpl::CreateEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1817,7 +1817,7 @@ NotebookServiceConnectionImpl::DeleteEnvironment( StatusOr NotebookServiceConnectionImpl::DeleteEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1957,7 +1957,7 @@ NotebookServiceConnectionImpl::DeleteSchedule( StatusOr NotebookServiceConnectionImpl::DeleteSchedule( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteScheduleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2049,7 +2049,7 @@ NotebookServiceConnectionImpl::CreateSchedule( StatusOr NotebookServiceConnectionImpl::CreateSchedule( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateScheduleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2140,7 +2140,7 @@ NotebookServiceConnectionImpl::TriggerSchedule( StatusOr NotebookServiceConnectionImpl::TriggerSchedule( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::TriggerScheduleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2279,7 +2279,7 @@ NotebookServiceConnectionImpl::DeleteExecution( StatusOr NotebookServiceConnectionImpl::DeleteExecution( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteExecutionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2371,7 +2371,7 @@ NotebookServiceConnectionImpl::CreateExecution( StatusOr NotebookServiceConnectionImpl::CreateExecution( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateExecutionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/notebooks/v1/internal/notebook_connection_impl.h b/google/cloud/notebooks/v1/internal/notebook_connection_impl.h index 65483ef64931b..9060d56d22043 100644 --- a/google/cloud/notebooks/v1/internal/notebook_connection_impl.h +++ b/google/cloud/notebooks/v1/internal/notebook_connection_impl.h @@ -63,7 +63,7 @@ class NotebookServiceConnectionImpl override; StatusOr CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateInstanceRequest const& request) override; @@ -76,7 +76,7 @@ class NotebookServiceConnectionImpl override; StatusOr RegisterInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::RegisterInstanceRequest const& request) override; @@ -90,7 +90,7 @@ class NotebookServiceConnectionImpl request) override; StatusOr SetInstanceAccelerator( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const& request) override; @@ -105,7 +105,7 @@ class NotebookServiceConnectionImpl request) override; StatusOr SetInstanceMachineType( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const& request) override; @@ -119,7 +119,7 @@ class NotebookServiceConnectionImpl override; StatusOr UpdateInstanceConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateInstanceConfigRequest const& request) override; @@ -133,7 +133,7 @@ class NotebookServiceConnectionImpl request) override; StatusOr UpdateShieldedInstanceConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const& request) override; @@ -147,7 +147,7 @@ class NotebookServiceConnectionImpl override; StatusOr SetInstanceLabels( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::SetInstanceLabelsRequest const& request) override; @@ -165,7 +165,7 @@ class NotebookServiceConnectionImpl request) override; StatusOr DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteInstanceRequest const& request) override; @@ -178,7 +178,7 @@ class NotebookServiceConnectionImpl override; StatusOr StartInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StartInstanceRequest const& request) override; @@ -191,7 +191,7 @@ class NotebookServiceConnectionImpl override; StatusOr StopInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::StopInstanceRequest const& request) override; @@ -204,7 +204,7 @@ class NotebookServiceConnectionImpl override; StatusOr ResetInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ResetInstanceRequest const& request) override; @@ -217,7 +217,7 @@ class NotebookServiceConnectionImpl override; StatusOr ReportInstanceInfo( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::ReportInstanceInfoRequest const& request) override; @@ -240,7 +240,7 @@ class NotebookServiceConnectionImpl override; StatusOr UpgradeInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceRequest const& request) override; @@ -253,7 +253,7 @@ class NotebookServiceConnectionImpl override; StatusOr RollbackInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::RollbackInstanceRequest const& request) override; @@ -266,7 +266,7 @@ class NotebookServiceConnectionImpl override; StatusOr DiagnoseInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DiagnoseInstanceRequest const& request) override; @@ -280,7 +280,7 @@ class NotebookServiceConnectionImpl request) override; StatusOr UpgradeInstanceInternal( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const& request) override; @@ -301,7 +301,7 @@ class NotebookServiceConnectionImpl override; StatusOr CreateEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateEnvironmentRequest const& request) override; @@ -315,7 +315,7 @@ class NotebookServiceConnectionImpl override; StatusOr DeleteEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteEnvironmentRequest const& request) override; @@ -334,7 +334,7 @@ class NotebookServiceConnectionImpl request) override; StatusOr DeleteSchedule( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteScheduleRequest const& request) override; @@ -347,7 +347,7 @@ class NotebookServiceConnectionImpl override; StatusOr CreateSchedule( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateScheduleRequest const& request) override; @@ -360,7 +360,7 @@ class NotebookServiceConnectionImpl override; StatusOr TriggerSchedule( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::TriggerScheduleRequest const& request) override; @@ -380,7 +380,7 @@ class NotebookServiceConnectionImpl request) override; StatusOr DeleteExecution( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::DeleteExecutionRequest const& request) override; @@ -393,7 +393,7 @@ class NotebookServiceConnectionImpl override; StatusOr CreateExecution( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v1::CreateExecutionRequest const& request) override; diff --git a/google/cloud/notebooks/v2/internal/notebook_connection_impl.cc b/google/cloud/notebooks/v2/internal/notebook_connection_impl.cc index 3b26920c2aeba..657f27a70708a 100644 --- a/google/cloud/notebooks/v2/internal/notebook_connection_impl.cc +++ b/google/cloud/notebooks/v2/internal/notebook_connection_impl.cc @@ -155,7 +155,7 @@ NotebookServiceConnectionImpl::CreateInstance( StatusOr NotebookServiceConnectionImpl::CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -246,7 +246,7 @@ NotebookServiceConnectionImpl::UpdateInstance( StatusOr NotebookServiceConnectionImpl::UpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -337,7 +337,7 @@ NotebookServiceConnectionImpl::DeleteInstance( StatusOr NotebookServiceConnectionImpl::DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -429,7 +429,7 @@ NotebookServiceConnectionImpl::StartInstance( StatusOr NotebookServiceConnectionImpl::StartInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::StartInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -520,7 +520,7 @@ NotebookServiceConnectionImpl::StopInstance( StatusOr NotebookServiceConnectionImpl::StopInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::StopInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -610,7 +610,7 @@ NotebookServiceConnectionImpl::ResetInstance( StatusOr NotebookServiceConnectionImpl::ResetInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::ResetInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -718,7 +718,7 @@ NotebookServiceConnectionImpl::UpgradeInstance( StatusOr NotebookServiceConnectionImpl::UpgradeInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::UpgradeInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -810,7 +810,7 @@ NotebookServiceConnectionImpl::RollbackInstance( StatusOr NotebookServiceConnectionImpl::RollbackInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::RollbackInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -902,7 +902,7 @@ NotebookServiceConnectionImpl::DiagnoseInstance( StatusOr NotebookServiceConnectionImpl::DiagnoseInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/notebooks/v2/internal/notebook_connection_impl.h b/google/cloud/notebooks/v2/internal/notebook_connection_impl.h index b2190e69d1431..2a4d80b211541 100644 --- a/google/cloud/notebooks/v2/internal/notebook_connection_impl.h +++ b/google/cloud/notebooks/v2/internal/notebook_connection_impl.h @@ -63,7 +63,7 @@ class NotebookServiceConnectionImpl override; StatusOr CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::CreateInstanceRequest const& request) override; @@ -76,7 +76,7 @@ class NotebookServiceConnectionImpl override; StatusOr UpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::UpdateInstanceRequest const& request) override; @@ -89,7 +89,7 @@ class NotebookServiceConnectionImpl request) override; StatusOr DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::DeleteInstanceRequest const& request) override; @@ -102,7 +102,7 @@ class NotebookServiceConnectionImpl override; StatusOr StartInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::StartInstanceRequest const& request) override; @@ -115,7 +115,7 @@ class NotebookServiceConnectionImpl override; StatusOr StopInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::StopInstanceRequest const& request) override; @@ -128,7 +128,7 @@ class NotebookServiceConnectionImpl override; StatusOr ResetInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::ResetInstanceRequest const& request) override; @@ -146,7 +146,7 @@ class NotebookServiceConnectionImpl override; StatusOr UpgradeInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::UpgradeInstanceRequest const& request) override; @@ -159,7 +159,7 @@ class NotebookServiceConnectionImpl override; StatusOr RollbackInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::RollbackInstanceRequest const& request) override; @@ -172,7 +172,7 @@ class NotebookServiceConnectionImpl override; StatusOr DiagnoseInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::notebooks::v2::DiagnoseInstanceRequest const& request) override; diff --git a/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.cc b/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.cc index 81713a7eb335e..1fdafd74d9c81 100644 --- a/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.cc +++ b/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.cc @@ -122,7 +122,7 @@ FleetRoutingConnectionImpl::BatchOptimizeTours( StatusOr FleetRoutingConnectionImpl::BatchOptimizeTours( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::optimization::v1::BatchOptimizeToursRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.h b/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.h index baca64fe551ab..bf516583d0ccc 100644 --- a/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.h +++ b/google/cloud/optimization/v1/internal/fleet_routing_connection_impl.h @@ -61,7 +61,7 @@ class FleetRoutingConnectionImpl override; StatusOr BatchOptimizeTours( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::optimization::v1::BatchOptimizeToursRequest const& request) override; diff --git a/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.cc b/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.cc index 67e6f2ce5886d..87ad6ed22f397 100644 --- a/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.cc +++ b/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.cc @@ -110,7 +110,7 @@ OsConfigZonalServiceConnectionImpl::CreateOSPolicyAssignment( StatusOr OsConfigZonalServiceConnectionImpl::CreateOSPolicyAssignment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -206,7 +206,7 @@ OsConfigZonalServiceConnectionImpl::UpdateOSPolicyAssignment( StatusOr OsConfigZonalServiceConnectionImpl::UpdateOSPolicyAssignment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -393,7 +393,7 @@ OsConfigZonalServiceConnectionImpl::DeleteOSPolicyAssignment( StatusOr OsConfigZonalServiceConnectionImpl::DeleteOSPolicyAssignment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.h b/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.h index 9d782286cb766..17f755519f497 100644 --- a/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.h +++ b/google/cloud/osconfig/v1/internal/os_config_zonal_connection_impl.h @@ -58,7 +58,7 @@ class OsConfigZonalServiceConnectionImpl request) override; StatusOr CreateOSPolicyAssignment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::CreateOSPolicyAssignmentRequest const& request) override; @@ -73,7 +73,7 @@ class OsConfigZonalServiceConnectionImpl request) override; StatusOr UpdateOSPolicyAssignment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::UpdateOSPolicyAssignmentRequest const& request) override; @@ -104,7 +104,7 @@ class OsConfigZonalServiceConnectionImpl request) override; StatusOr DeleteOSPolicyAssignment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::osconfig::v1::DeleteOSPolicyAssignmentRequest const& request) override; diff --git a/google/cloud/policysimulator/v1/internal/simulator_connection_impl.cc b/google/cloud/policysimulator/v1/internal/simulator_connection_impl.cc index b3857241101f9..1d423505a5b05 100644 --- a/google/cloud/policysimulator/v1/internal/simulator_connection_impl.cc +++ b/google/cloud/policysimulator/v1/internal/simulator_connection_impl.cc @@ -122,7 +122,7 @@ SimulatorConnectionImpl::CreateReplay( } StatusOr SimulatorConnectionImpl::CreateReplay( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::policysimulator::v1::CreateReplayRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/policysimulator/v1/internal/simulator_connection_impl.h b/google/cloud/policysimulator/v1/internal/simulator_connection_impl.h index 50f380c2e047c..cea3732a4235e 100644 --- a/google/cloud/policysimulator/v1/internal/simulator_connection_impl.h +++ b/google/cloud/policysimulator/v1/internal/simulator_connection_impl.h @@ -60,7 +60,7 @@ class SimulatorConnectionImpl : public policysimulator_v1::SimulatorConnection { override; StatusOr CreateReplay( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::policysimulator::v1::CreateReplayRequest const& request) override; diff --git a/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.cc b/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.cc index be74192f8a764..0732e78c2d502 100644 --- a/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.cc +++ b/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.cc @@ -218,7 +218,7 @@ CertificateAuthorityServiceConnectionImpl::ActivateCertificateAuthority( StatusOr CertificateAuthorityServiceConnectionImpl::ActivateCertificateAuthority( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: ActivateCertificateAuthorityRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -313,7 +313,7 @@ CertificateAuthorityServiceConnectionImpl::CreateCertificateAuthority( StatusOr CertificateAuthorityServiceConnectionImpl::CreateCertificateAuthority( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: CreateCertificateAuthorityRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -408,7 +408,7 @@ CertificateAuthorityServiceConnectionImpl::DisableCertificateAuthority( StatusOr CertificateAuthorityServiceConnectionImpl::DisableCertificateAuthority( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DisableCertificateAuthorityRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -503,7 +503,7 @@ CertificateAuthorityServiceConnectionImpl::EnableCertificateAuthority( StatusOr CertificateAuthorityServiceConnectionImpl::EnableCertificateAuthority( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: EnableCertificateAuthorityRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -672,7 +672,7 @@ CertificateAuthorityServiceConnectionImpl::UndeleteCertificateAuthority( StatusOr CertificateAuthorityServiceConnectionImpl::UndeleteCertificateAuthority( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UndeleteCertificateAuthorityRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -767,7 +767,7 @@ CertificateAuthorityServiceConnectionImpl::DeleteCertificateAuthority( StatusOr CertificateAuthorityServiceConnectionImpl::DeleteCertificateAuthority( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DeleteCertificateAuthorityRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -862,7 +862,7 @@ CertificateAuthorityServiceConnectionImpl::UpdateCertificateAuthority( StatusOr CertificateAuthorityServiceConnectionImpl::UpdateCertificateAuthority( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateAuthorityRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -958,7 +958,7 @@ CertificateAuthorityServiceConnectionImpl::CreateCaPool( StatusOr CertificateAuthorityServiceConnectionImpl::CreateCaPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::CreateCaPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1054,7 +1054,7 @@ CertificateAuthorityServiceConnectionImpl::UpdateCaPool( StatusOr CertificateAuthorityServiceConnectionImpl::UpdateCaPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::UpdateCaPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1200,7 +1200,7 @@ CertificateAuthorityServiceConnectionImpl::DeleteCaPool( StatusOr CertificateAuthorityServiceConnectionImpl::DeleteCaPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::DeleteCaPoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1371,7 +1371,7 @@ CertificateAuthorityServiceConnectionImpl::UpdateCertificateRevocationList( StatusOr CertificateAuthorityServiceConnectionImpl::UpdateCertificateRevocationList( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateRevocationListRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1468,7 +1468,7 @@ CertificateAuthorityServiceConnectionImpl::CreateCertificateTemplate( StatusOr CertificateAuthorityServiceConnectionImpl::CreateCertificateTemplate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: CreateCertificateTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1563,7 +1563,7 @@ CertificateAuthorityServiceConnectionImpl::DeleteCertificateTemplate( StatusOr CertificateAuthorityServiceConnectionImpl::DeleteCertificateTemplate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DeleteCertificateTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1713,7 +1713,7 @@ CertificateAuthorityServiceConnectionImpl::UpdateCertificateTemplate( StatusOr CertificateAuthorityServiceConnectionImpl::UpdateCertificateTemplate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateTemplateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.h b/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.h index 4848e79a7b26b..ce19d7c11112d 100644 --- a/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.h +++ b/google/cloud/privateca/v1/internal/certificate_authority_connection_impl.h @@ -83,7 +83,7 @@ class CertificateAuthorityServiceConnectionImpl ActivateCertificateAuthorityRequest const& request) override; StatusOr ActivateCertificateAuthority( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: ActivateCertificateAuthorityRequest const& request) override; @@ -98,7 +98,7 @@ class CertificateAuthorityServiceConnectionImpl CreateCertificateAuthorityRequest const& request) override; StatusOr CreateCertificateAuthority( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: CreateCertificateAuthorityRequest const& request) override; @@ -113,7 +113,7 @@ class CertificateAuthorityServiceConnectionImpl DisableCertificateAuthorityRequest const& request) override; StatusOr DisableCertificateAuthority( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DisableCertificateAuthorityRequest const& request) override; @@ -128,7 +128,7 @@ class CertificateAuthorityServiceConnectionImpl EnableCertificateAuthorityRequest const& request) override; StatusOr EnableCertificateAuthority( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: EnableCertificateAuthorityRequest const& request) override; @@ -159,7 +159,7 @@ class CertificateAuthorityServiceConnectionImpl UndeleteCertificateAuthorityRequest const& request) override; StatusOr UndeleteCertificateAuthority( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UndeleteCertificateAuthorityRequest const& request) override; @@ -174,7 +174,7 @@ class CertificateAuthorityServiceConnectionImpl DeleteCertificateAuthorityRequest const& request) override; StatusOr DeleteCertificateAuthority( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DeleteCertificateAuthorityRequest const& request) override; @@ -189,7 +189,7 @@ class CertificateAuthorityServiceConnectionImpl UpdateCertificateAuthorityRequest const& request) override; StatusOr UpdateCertificateAuthority( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateAuthorityRequest const& request) override; @@ -203,7 +203,7 @@ class CertificateAuthorityServiceConnectionImpl request) override; StatusOr CreateCaPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::CreateCaPoolRequest const& request) override; @@ -216,7 +216,7 @@ class CertificateAuthorityServiceConnectionImpl request) override; StatusOr UpdateCaPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::UpdateCaPoolRequest const& request) override; @@ -238,7 +238,7 @@ class CertificateAuthorityServiceConnectionImpl request) override; StatusOr DeleteCaPool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1::DeleteCaPoolRequest const& request) override; @@ -268,7 +268,7 @@ class CertificateAuthorityServiceConnectionImpl UpdateCertificateRevocationListRequest const& request) override; StatusOr UpdateCertificateRevocationList( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateRevocationListRequest const& request) override; @@ -284,7 +284,7 @@ class CertificateAuthorityServiceConnectionImpl CreateCertificateTemplateRequest const& request) override; StatusOr CreateCertificateTemplate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: CreateCertificateTemplateRequest const& request) override; @@ -299,7 +299,7 @@ class CertificateAuthorityServiceConnectionImpl DeleteCertificateTemplateRequest const& request) override; StatusOr DeleteCertificateTemplate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: DeleteCertificateTemplateRequest const& request) override; @@ -324,7 +324,7 @@ class CertificateAuthorityServiceConnectionImpl UpdateCertificateTemplateRequest const& request) override; StatusOr UpdateCertificateTemplate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::security::privateca::v1:: UpdateCertificateTemplateRequest const& request) override; diff --git a/google/cloud/pubsublite/internal/admin_connection_impl.cc b/google/cloud/pubsublite/internal/admin_connection_impl.cc index bf34e48c6d361..8e27d48c31bc9 100644 --- a/google/cloud/pubsublite/internal/admin_connection_impl.cc +++ b/google/cloud/pubsublite/internal/admin_connection_impl.cc @@ -338,7 +338,7 @@ AdminServiceConnectionImpl::SeekSubscription( StatusOr AdminServiceConnectionImpl::SeekSubscription( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/pubsublite/internal/admin_connection_impl.h b/google/cloud/pubsublite/internal/admin_connection_impl.h index 35c83b6aebd97..bbf11003475b6 100644 --- a/google/cloud/pubsublite/internal/admin_connection_impl.h +++ b/google/cloud/pubsublite/internal/admin_connection_impl.h @@ -100,7 +100,7 @@ class AdminServiceConnectionImpl : public pubsublite::AdminServiceConnection { request) override; StatusOr SeekSubscription( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::pubsublite::v1::SeekSubscriptionRequest const& request) override; diff --git a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.cc b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.cc index 63907d49899d8..aa530dac42e5e 100644 --- a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.cc +++ b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.cc @@ -121,7 +121,7 @@ RapidMigrationAssessmentConnectionImpl::CreateCollector( StatusOr RapidMigrationAssessmentConnectionImpl::CreateCollector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::CreateCollectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -216,7 +216,7 @@ RapidMigrationAssessmentConnectionImpl::CreateAnnotation( StatusOr RapidMigrationAssessmentConnectionImpl::CreateAnnotation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::CreateAnnotationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -380,7 +380,7 @@ RapidMigrationAssessmentConnectionImpl::UpdateCollector( StatusOr RapidMigrationAssessmentConnectionImpl::UpdateCollector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::UpdateCollectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -475,7 +475,7 @@ RapidMigrationAssessmentConnectionImpl::DeleteCollector( StatusOr RapidMigrationAssessmentConnectionImpl::DeleteCollector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -570,7 +570,7 @@ RapidMigrationAssessmentConnectionImpl::ResumeCollector( StatusOr RapidMigrationAssessmentConnectionImpl::ResumeCollector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -665,7 +665,7 @@ RapidMigrationAssessmentConnectionImpl::RegisterCollector( StatusOr RapidMigrationAssessmentConnectionImpl::RegisterCollector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::RegisterCollectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -760,7 +760,7 @@ RapidMigrationAssessmentConnectionImpl::PauseCollector( StatusOr RapidMigrationAssessmentConnectionImpl::PauseCollector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.h b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.h index 2d4d582011dae..74b15677de493 100644 --- a/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.h +++ b/google/cloud/rapidmigrationassessment/v1/internal/rapid_migration_assessment_connection_impl.h @@ -61,7 +61,7 @@ class RapidMigrationAssessmentConnectionImpl request) override; StatusOr CreateCollector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::CreateCollectorRequest const& request) override; @@ -74,7 +74,7 @@ class RapidMigrationAssessmentConnectionImpl CreateAnnotationRequest const& request) override; StatusOr CreateAnnotation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: CreateAnnotationRequest const& request) override; @@ -102,7 +102,7 @@ class RapidMigrationAssessmentConnectionImpl request) override; StatusOr UpdateCollector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::UpdateCollectorRequest const& request) override; @@ -116,7 +116,7 @@ class RapidMigrationAssessmentConnectionImpl request) override; StatusOr DeleteCollector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::DeleteCollectorRequest const& request) override; @@ -130,7 +130,7 @@ class RapidMigrationAssessmentConnectionImpl request) override; StatusOr ResumeCollector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::ResumeCollectorRequest const& request) override; @@ -143,7 +143,7 @@ class RapidMigrationAssessmentConnectionImpl RegisterCollectorRequest const& request) override; StatusOr RegisterCollector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1:: RegisterCollectorRequest const& request) override; @@ -157,7 +157,7 @@ class RapidMigrationAssessmentConnectionImpl request) override; StatusOr PauseCollector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::rapidmigrationassessment::v1::PauseCollectorRequest const& request) override; diff --git a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.cc b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.cc index 452f2d39145cb..17a41dca0cb03 100644 --- a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.cc +++ b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.cc @@ -159,7 +159,7 @@ CloudRedisClusterConnectionImpl::UpdateCluster( StatusOr CloudRedisClusterConnectionImpl::UpdateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::UpdateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -251,7 +251,7 @@ CloudRedisClusterConnectionImpl::DeleteCluster( StatusOr CloudRedisClusterConnectionImpl::DeleteCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::DeleteClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -342,7 +342,7 @@ CloudRedisClusterConnectionImpl::CreateCluster( StatusOr CloudRedisClusterConnectionImpl::CreateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::CreateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.h b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.h index cfd4ba15ae2db..5d3d29c25f254 100644 --- a/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.h +++ b/google/cloud/redis/cluster/v1/internal/cloud_redis_cluster_connection_impl.h @@ -64,7 +64,7 @@ class CloudRedisClusterConnectionImpl override; StatusOr UpdateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::UpdateClusterRequest const& request) override; @@ -77,7 +77,7 @@ class CloudRedisClusterConnectionImpl override; StatusOr DeleteCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::DeleteClusterRequest const& request) override; @@ -90,7 +90,7 @@ class CloudRedisClusterConnectionImpl override; StatusOr CreateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::cluster::v1::CreateClusterRequest const& request) override; diff --git a/google/cloud/redis/v1/internal/cloud_redis_connection_impl.cc b/google/cloud/redis/v1/internal/cloud_redis_connection_impl.cc index fd32d4f644b72..a271a417efe45 100644 --- a/google/cloud/redis/v1/internal/cloud_redis_connection_impl.cc +++ b/google/cloud/redis/v1/internal/cloud_redis_connection_impl.cc @@ -166,7 +166,7 @@ CloudRedisConnectionImpl::CreateInstance( StatusOr CloudRedisConnectionImpl::CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -256,7 +256,7 @@ CloudRedisConnectionImpl::UpdateInstance( StatusOr CloudRedisConnectionImpl::UpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -346,7 +346,7 @@ CloudRedisConnectionImpl::UpgradeInstance( StatusOr CloudRedisConnectionImpl::UpgradeInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::UpgradeInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -436,7 +436,7 @@ CloudRedisConnectionImpl::ImportInstance( StatusOr CloudRedisConnectionImpl::ImportInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::ImportInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -526,7 +526,7 @@ CloudRedisConnectionImpl::ExportInstance( StatusOr CloudRedisConnectionImpl::ExportInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::ExportInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -616,7 +616,7 @@ CloudRedisConnectionImpl::FailoverInstance( StatusOr CloudRedisConnectionImpl::FailoverInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::FailoverInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -706,7 +706,7 @@ CloudRedisConnectionImpl::DeleteInstance( StatusOr CloudRedisConnectionImpl::DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -798,7 +798,7 @@ CloudRedisConnectionImpl::RescheduleMaintenance( StatusOr CloudRedisConnectionImpl::RescheduleMaintenance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::RescheduleMaintenanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/redis/v1/internal/cloud_redis_connection_impl.h b/google/cloud/redis/v1/internal/cloud_redis_connection_impl.h index 00272fe50fdab..95d751124a35d 100644 --- a/google/cloud/redis/v1/internal/cloud_redis_connection_impl.h +++ b/google/cloud/redis/v1/internal/cloud_redis_connection_impl.h @@ -64,7 +64,7 @@ class CloudRedisConnectionImpl : public redis_v1::CloudRedisConnection { google::cloud::redis::v1::CreateInstanceRequest const& request) override; StatusOr CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::CreateInstanceRequest const& request) override; future> CreateInstance( @@ -75,7 +75,7 @@ class CloudRedisConnectionImpl : public redis_v1::CloudRedisConnection { google::cloud::redis::v1::UpdateInstanceRequest const& request) override; StatusOr UpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::UpdateInstanceRequest const& request) override; future> UpdateInstance( @@ -86,7 +86,7 @@ class CloudRedisConnectionImpl : public redis_v1::CloudRedisConnection { google::cloud::redis::v1::UpgradeInstanceRequest const& request) override; StatusOr UpgradeInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::UpgradeInstanceRequest const& request) override; future> UpgradeInstance( @@ -97,7 +97,7 @@ class CloudRedisConnectionImpl : public redis_v1::CloudRedisConnection { google::cloud::redis::v1::ImportInstanceRequest const& request) override; StatusOr ImportInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::ImportInstanceRequest const& request) override; future> ImportInstance( @@ -108,7 +108,7 @@ class CloudRedisConnectionImpl : public redis_v1::CloudRedisConnection { google::cloud::redis::v1::ExportInstanceRequest const& request) override; StatusOr ExportInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::ExportInstanceRequest const& request) override; future> ExportInstance( @@ -120,7 +120,7 @@ class CloudRedisConnectionImpl : public redis_v1::CloudRedisConnection { override; StatusOr FailoverInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::FailoverInstanceRequest const& request) override; @@ -132,7 +132,7 @@ class CloudRedisConnectionImpl : public redis_v1::CloudRedisConnection { google::cloud::redis::v1::DeleteInstanceRequest const& request) override; StatusOr DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::DeleteInstanceRequest const& request) override; future> DeleteInstance( @@ -144,7 +144,7 @@ class CloudRedisConnectionImpl : public redis_v1::CloudRedisConnection { override; StatusOr RescheduleMaintenance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::RescheduleMaintenanceRequest const& request) override; diff --git a/google/cloud/resourcemanager/v3/internal/folders_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/folders_connection_impl.cc index d6e5ae9746c86..a1d37a612e1ee 100644 --- a/google/cloud/resourcemanager/v3/internal/folders_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/folders_connection_impl.cc @@ -189,7 +189,7 @@ FoldersConnectionImpl::CreateFolder( } StatusOr FoldersConnectionImpl::CreateFolder( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateFolderRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -282,7 +282,7 @@ FoldersConnectionImpl::UpdateFolder( } StatusOr FoldersConnectionImpl::UpdateFolder( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateFolderRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -375,7 +375,7 @@ FoldersConnectionImpl::MoveFolder( } StatusOr FoldersConnectionImpl::MoveFolder( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::MoveFolderRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -468,7 +468,7 @@ FoldersConnectionImpl::DeleteFolder( } StatusOr FoldersConnectionImpl::DeleteFolder( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteFolderRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -561,7 +561,7 @@ FoldersConnectionImpl::UndeleteFolder( } StatusOr FoldersConnectionImpl::UndeleteFolder( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/resourcemanager/v3/internal/folders_connection_impl.h b/google/cloud/resourcemanager/v3/internal/folders_connection_impl.h index 0fa51322069fd..b6e1396601e33 100644 --- a/google/cloud/resourcemanager/v3/internal/folders_connection_impl.h +++ b/google/cloud/resourcemanager/v3/internal/folders_connection_impl.h @@ -67,7 +67,7 @@ class FoldersConnectionImpl : public resourcemanager_v3::FoldersConnection { override; StatusOr CreateFolder( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateFolderRequest const& request) override; @@ -80,7 +80,7 @@ class FoldersConnectionImpl : public resourcemanager_v3::FoldersConnection { override; StatusOr UpdateFolder( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateFolderRequest const& request) override; @@ -93,7 +93,7 @@ class FoldersConnectionImpl : public resourcemanager_v3::FoldersConnection { override; StatusOr MoveFolder( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::MoveFolderRequest const& request) override; @@ -106,7 +106,7 @@ class FoldersConnectionImpl : public resourcemanager_v3::FoldersConnection { override; StatusOr DeleteFolder( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteFolderRequest const& request) override; @@ -119,7 +119,7 @@ class FoldersConnectionImpl : public resourcemanager_v3::FoldersConnection { override; StatusOr UndeleteFolder( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UndeleteFolderRequest const& request) override; diff --git a/google/cloud/resourcemanager/v3/internal/projects_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/projects_connection_impl.cc index 73dd7701aafdb..6a0de4448434a 100644 --- a/google/cloud/resourcemanager/v3/internal/projects_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/projects_connection_impl.cc @@ -192,7 +192,7 @@ ProjectsConnectionImpl::CreateProject( } StatusOr ProjectsConnectionImpl::CreateProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -285,7 +285,7 @@ ProjectsConnectionImpl::UpdateProject( } StatusOr ProjectsConnectionImpl::UpdateProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -378,7 +378,7 @@ ProjectsConnectionImpl::MoveProject( } StatusOr ProjectsConnectionImpl::MoveProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::MoveProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -471,7 +471,7 @@ ProjectsConnectionImpl::DeleteProject( } StatusOr ProjectsConnectionImpl::DeleteProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -565,7 +565,7 @@ ProjectsConnectionImpl::UndeleteProject( StatusOr ProjectsConnectionImpl::UndeleteProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/resourcemanager/v3/internal/projects_connection_impl.h b/google/cloud/resourcemanager/v3/internal/projects_connection_impl.h index 831064825b27f..276b63eab0250 100644 --- a/google/cloud/resourcemanager/v3/internal/projects_connection_impl.h +++ b/google/cloud/resourcemanager/v3/internal/projects_connection_impl.h @@ -67,7 +67,7 @@ class ProjectsConnectionImpl : public resourcemanager_v3::ProjectsConnection { override; StatusOr CreateProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateProjectRequest const& request) override; @@ -80,7 +80,7 @@ class ProjectsConnectionImpl : public resourcemanager_v3::ProjectsConnection { override; StatusOr UpdateProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateProjectRequest const& request) override; @@ -93,7 +93,7 @@ class ProjectsConnectionImpl : public resourcemanager_v3::ProjectsConnection { override; StatusOr MoveProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::MoveProjectRequest const& request) override; @@ -106,7 +106,7 @@ class ProjectsConnectionImpl : public resourcemanager_v3::ProjectsConnection { override; StatusOr DeleteProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteProjectRequest const& request) override; @@ -119,7 +119,7 @@ class ProjectsConnectionImpl : public resourcemanager_v3::ProjectsConnection { override; StatusOr UndeleteProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UndeleteProjectRequest const& request) override; diff --git a/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.cc index c35fa54519ed8..f972528b5460c 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.cc @@ -144,7 +144,7 @@ TagBindingsConnectionImpl::CreateTagBinding( StatusOr TagBindingsConnectionImpl::CreateTagBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -240,7 +240,7 @@ TagBindingsConnectionImpl::DeleteTagBinding( StatusOr TagBindingsConnectionImpl::DeleteTagBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.h b/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.h index 62aae639a94ba..1297cfec08f48 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.h +++ b/google/cloud/resourcemanager/v3/internal/tag_bindings_connection_impl.h @@ -62,7 +62,7 @@ class TagBindingsConnectionImpl request) override; StatusOr CreateTagBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagBindingRequest const& request) override; @@ -76,7 +76,7 @@ class TagBindingsConnectionImpl request) override; StatusOr DeleteTagBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagBindingRequest const& request) override; diff --git a/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.cc index f8428cc0bd513..c6e9f839927d8 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.cc @@ -107,7 +107,7 @@ TagHoldsConnectionImpl::CreateTagHold( } StatusOr TagHoldsConnectionImpl::CreateTagHold( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -200,7 +200,7 @@ TagHoldsConnectionImpl::DeleteTagHold( } StatusOr TagHoldsConnectionImpl::DeleteTagHold( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.h b/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.h index 883c00472ac5d..2f173563e20f4 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.h +++ b/google/cloud/resourcemanager/v3/internal/tag_holds_connection_impl.h @@ -56,7 +56,7 @@ class TagHoldsConnectionImpl : public resourcemanager_v3::TagHoldsConnection { override; StatusOr CreateTagHold( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagHoldRequest const& request) override; @@ -69,7 +69,7 @@ class TagHoldsConnectionImpl : public resourcemanager_v3::TagHoldsConnection { request) override; StatusOr DeleteTagHold( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagHoldRequest const& request) override; diff --git a/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.cc index 32e4f2bdc0036..6fe2ede993dea 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.cc @@ -171,7 +171,7 @@ TagKeysConnectionImpl::CreateTagKey( } StatusOr TagKeysConnectionImpl::CreateTagKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -264,7 +264,7 @@ TagKeysConnectionImpl::UpdateTagKey( } StatusOr TagKeysConnectionImpl::UpdateTagKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -357,7 +357,7 @@ TagKeysConnectionImpl::DeleteTagKey( } StatusOr TagKeysConnectionImpl::DeleteTagKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.h b/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.h index 3f5db130d2b46..c7bf00585ab6e 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.h +++ b/google/cloud/resourcemanager/v3/internal/tag_keys_connection_impl.h @@ -67,7 +67,7 @@ class TagKeysConnectionImpl : public resourcemanager_v3::TagKeysConnection { override; StatusOr CreateTagKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagKeyRequest const& request) override; @@ -80,7 +80,7 @@ class TagKeysConnectionImpl : public resourcemanager_v3::TagKeysConnection { override; StatusOr UpdateTagKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateTagKeyRequest const& request) override; @@ -93,7 +93,7 @@ class TagKeysConnectionImpl : public resourcemanager_v3::TagKeysConnection { override; StatusOr DeleteTagKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagKeyRequest const& request) override; diff --git a/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.cc b/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.cc index 92789394ed946..90b5fffb13a33 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.cc +++ b/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.cc @@ -174,7 +174,7 @@ TagValuesConnectionImpl::CreateTagValue( StatusOr TagValuesConnectionImpl::CreateTagValue( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagValueRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -268,7 +268,7 @@ TagValuesConnectionImpl::UpdateTagValue( StatusOr TagValuesConnectionImpl::UpdateTagValue( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -362,7 +362,7 @@ TagValuesConnectionImpl::DeleteTagValue( StatusOr TagValuesConnectionImpl::DeleteTagValue( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.h b/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.h index df09d73cd2ec6..7f0383d3f9251 100644 --- a/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.h +++ b/google/cloud/resourcemanager/v3/internal/tag_values_connection_impl.h @@ -68,7 +68,7 @@ class TagValuesConnectionImpl : public resourcemanager_v3::TagValuesConnection { override; StatusOr CreateTagValue( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagValueRequest const& request) override; @@ -81,7 +81,7 @@ class TagValuesConnectionImpl : public resourcemanager_v3::TagValuesConnection { override; StatusOr UpdateTagValue( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::UpdateTagValueRequest const& request) override; @@ -94,7 +94,7 @@ class TagValuesConnectionImpl : public resourcemanager_v3::TagValuesConnection { override; StatusOr DeleteTagValue( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::resourcemanager::v3::DeleteTagValueRequest const& request) override; diff --git a/google/cloud/retail/v2/internal/analytics_connection_impl.cc b/google/cloud/retail/v2/internal/analytics_connection_impl.cc index bde9629d58338..c8ab1c8f1296c 100644 --- a/google/cloud/retail/v2/internal/analytics_connection_impl.cc +++ b/google/cloud/retail/v2/internal/analytics_connection_impl.cc @@ -105,7 +105,7 @@ AnalyticsServiceConnectionImpl::ExportAnalyticsMetrics( StatusOr AnalyticsServiceConnectionImpl::ExportAnalyticsMetrics( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/retail/v2/internal/analytics_connection_impl.h b/google/cloud/retail/v2/internal/analytics_connection_impl.h index 3c87e06f38877..126c710532d26 100644 --- a/google/cloud/retail/v2/internal/analytics_connection_impl.h +++ b/google/cloud/retail/v2/internal/analytics_connection_impl.h @@ -57,7 +57,7 @@ class AnalyticsServiceConnectionImpl override; StatusOr ExportAnalyticsMetrics( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ExportAnalyticsMetricsRequest const& request) override; diff --git a/google/cloud/retail/v2/internal/completion_connection_impl.cc b/google/cloud/retail/v2/internal/completion_connection_impl.cc index 1e725440ff42d..ff65ce1c7a0b2 100644 --- a/google/cloud/retail/v2/internal/completion_connection_impl.cc +++ b/google/cloud/retail/v2/internal/completion_connection_impl.cc @@ -121,7 +121,7 @@ CompletionServiceConnectionImpl::ImportCompletionData( StatusOr CompletionServiceConnectionImpl::ImportCompletionData( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportCompletionDataRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/retail/v2/internal/completion_connection_impl.h b/google/cloud/retail/v2/internal/completion_connection_impl.h index 21bc8ba48dee7..515e970157de0 100644 --- a/google/cloud/retail/v2/internal/completion_connection_impl.h +++ b/google/cloud/retail/v2/internal/completion_connection_impl.h @@ -60,7 +60,7 @@ class CompletionServiceConnectionImpl override; StatusOr ImportCompletionData( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportCompletionDataRequest const& request) override; diff --git a/google/cloud/retail/v2/internal/model_connection_impl.cc b/google/cloud/retail/v2/internal/model_connection_impl.cc index bf0b2f4ad89a1..0e5365299795d 100644 --- a/google/cloud/retail/v2/internal/model_connection_impl.cc +++ b/google/cloud/retail/v2/internal/model_connection_impl.cc @@ -104,7 +104,7 @@ ModelServiceConnectionImpl::CreateModel( StatusOr ModelServiceConnectionImpl::CreateModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::CreateModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -293,7 +293,7 @@ ModelServiceConnectionImpl::TuneModel( } StatusOr ModelServiceConnectionImpl::TuneModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::TuneModelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/retail/v2/internal/model_connection_impl.h b/google/cloud/retail/v2/internal/model_connection_impl.h index ec0834f88ff95..2d8ee43509d2a 100644 --- a/google/cloud/retail/v2/internal/model_connection_impl.h +++ b/google/cloud/retail/v2/internal/model_connection_impl.h @@ -55,7 +55,7 @@ class ModelServiceConnectionImpl : public retail_v2::ModelServiceConnection { google::cloud::retail::v2::CreateModelRequest const& request) override; StatusOr CreateModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::CreateModelRequest const& request) override; future> CreateModel( @@ -84,7 +84,7 @@ class ModelServiceConnectionImpl : public retail_v2::ModelServiceConnection { google::cloud::retail::v2::TuneModelRequest const& request) override; StatusOr TuneModel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::TuneModelRequest const& request) override; future> TuneModel( diff --git a/google/cloud/retail/v2/internal/product_connection_impl.cc b/google/cloud/retail/v2/internal/product_connection_impl.cc index 1be3755e542bf..aff177e54660c 100644 --- a/google/cloud/retail/v2/internal/product_connection_impl.cc +++ b/google/cloud/retail/v2/internal/product_connection_impl.cc @@ -194,7 +194,7 @@ ProductServiceConnectionImpl::PurgeProducts( StatusOr ProductServiceConnectionImpl::PurgeProducts( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::PurgeProductsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -285,7 +285,7 @@ ProductServiceConnectionImpl::ImportProducts( StatusOr ProductServiceConnectionImpl::ImportProducts( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportProductsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -376,7 +376,7 @@ ProductServiceConnectionImpl::SetInventory( StatusOr ProductServiceConnectionImpl::SetInventory( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::SetInventoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -468,7 +468,7 @@ ProductServiceConnectionImpl::AddFulfillmentPlaces( StatusOr ProductServiceConnectionImpl::AddFulfillmentPlaces( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -562,7 +562,7 @@ ProductServiceConnectionImpl::RemoveFulfillmentPlaces( StatusOr ProductServiceConnectionImpl::RemoveFulfillmentPlaces( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -656,7 +656,7 @@ ProductServiceConnectionImpl::AddLocalInventories( StatusOr ProductServiceConnectionImpl::AddLocalInventories( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::AddLocalInventoriesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -750,7 +750,7 @@ ProductServiceConnectionImpl::RemoveLocalInventories( StatusOr ProductServiceConnectionImpl::RemoveLocalInventories( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/retail/v2/internal/product_connection_impl.h b/google/cloud/retail/v2/internal/product_connection_impl.h index ae559add7840a..07e82300306de 100644 --- a/google/cloud/retail/v2/internal/product_connection_impl.h +++ b/google/cloud/retail/v2/internal/product_connection_impl.h @@ -72,7 +72,7 @@ class ProductServiceConnectionImpl google::cloud::retail::v2::PurgeProductsRequest const& request) override; StatusOr PurgeProducts( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::PurgeProductsRequest const& request) override; future> @@ -84,7 +84,7 @@ class ProductServiceConnectionImpl google::cloud::retail::v2::ImportProductsRequest const& request) override; StatusOr ImportProducts( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportProductsRequest const& request) override; future> @@ -96,7 +96,7 @@ class ProductServiceConnectionImpl google::cloud::retail::v2::SetInventoryRequest const& request) override; StatusOr SetInventory( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::SetInventoryRequest const& request) override; future> @@ -109,7 +109,7 @@ class ProductServiceConnectionImpl override; StatusOr AddFulfillmentPlaces( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::AddFulfillmentPlacesRequest const& request) override; @@ -124,7 +124,7 @@ class ProductServiceConnectionImpl override; StatusOr RemoveFulfillmentPlaces( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RemoveFulfillmentPlacesRequest const& request) override; @@ -139,7 +139,7 @@ class ProductServiceConnectionImpl override; StatusOr AddLocalInventories( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::AddLocalInventoriesRequest const& request) override; @@ -153,7 +153,7 @@ class ProductServiceConnectionImpl override; StatusOr RemoveLocalInventories( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RemoveLocalInventoriesRequest const& request) override; diff --git a/google/cloud/retail/v2/internal/user_event_connection_impl.cc b/google/cloud/retail/v2/internal/user_event_connection_impl.cc index a0c16394903a8..de592e1d8bd10 100644 --- a/google/cloud/retail/v2/internal/user_event_connection_impl.cc +++ b/google/cloud/retail/v2/internal/user_event_connection_impl.cc @@ -133,7 +133,7 @@ UserEventServiceConnectionImpl::PurgeUserEvents( StatusOr UserEventServiceConnectionImpl::PurgeUserEvents( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::PurgeUserEventsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -224,7 +224,7 @@ UserEventServiceConnectionImpl::ImportUserEvents( StatusOr UserEventServiceConnectionImpl::ImportUserEvents( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportUserEventsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -316,7 +316,7 @@ UserEventServiceConnectionImpl::RejoinUserEvents( StatusOr UserEventServiceConnectionImpl::RejoinUserEvents( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RejoinUserEventsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/retail/v2/internal/user_event_connection_impl.h b/google/cloud/retail/v2/internal/user_event_connection_impl.h index f6fa53a5d33db..5a332ae33228a 100644 --- a/google/cloud/retail/v2/internal/user_event_connection_impl.h +++ b/google/cloud/retail/v2/internal/user_event_connection_impl.h @@ -63,7 +63,7 @@ class UserEventServiceConnectionImpl request) override; StatusOr PurgeUserEvents( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::PurgeUserEventsRequest const& request) override; @@ -76,7 +76,7 @@ class UserEventServiceConnectionImpl request) override; StatusOr ImportUserEvents( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ImportUserEventsRequest const& request) override; @@ -89,7 +89,7 @@ class UserEventServiceConnectionImpl request) override; StatusOr RejoinUserEvents( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::RejoinUserEventsRequest const& request) override; diff --git a/google/cloud/run/v2/internal/executions_connection_impl.cc b/google/cloud/run/v2/internal/executions_connection_impl.cc index f36abf12fedbf..8b496e5222d3a 100644 --- a/google/cloud/run/v2/internal/executions_connection_impl.cc +++ b/google/cloud/run/v2/internal/executions_connection_impl.cc @@ -151,7 +151,7 @@ ExecutionsConnectionImpl::DeleteExecution( StatusOr ExecutionsConnectionImpl::DeleteExecution( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteExecutionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -240,7 +240,7 @@ ExecutionsConnectionImpl::CancelExecution( StatusOr ExecutionsConnectionImpl::CancelExecution( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CancelExecutionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/run/v2/internal/executions_connection_impl.h b/google/cloud/run/v2/internal/executions_connection_impl.h index 863e202552229..0816e362bdba0 100644 --- a/google/cloud/run/v2/internal/executions_connection_impl.h +++ b/google/cloud/run/v2/internal/executions_connection_impl.h @@ -60,7 +60,7 @@ class ExecutionsConnectionImpl : public run_v2::ExecutionsConnection { google::cloud::run::v2::DeleteExecutionRequest const& request) override; StatusOr DeleteExecution( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteExecutionRequest const& request) override; future> DeleteExecution( @@ -71,7 +71,7 @@ class ExecutionsConnectionImpl : public run_v2::ExecutionsConnection { google::cloud::run::v2::CancelExecutionRequest const& request) override; StatusOr CancelExecution( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CancelExecutionRequest const& request) override; future> CancelExecution( diff --git a/google/cloud/run/v2/internal/jobs_connection_impl.cc b/google/cloud/run/v2/internal/jobs_connection_impl.cc index e77903e965cff..42acfc41b713b 100644 --- a/google/cloud/run/v2/internal/jobs_connection_impl.cc +++ b/google/cloud/run/v2/internal/jobs_connection_impl.cc @@ -97,7 +97,7 @@ future> JobsConnectionImpl::CreateJob( } StatusOr JobsConnectionImpl::CreateJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CreateJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -224,7 +224,7 @@ future> JobsConnectionImpl::UpdateJob( } StatusOr JobsConnectionImpl::UpdateJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::UpdateJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -308,7 +308,7 @@ future> JobsConnectionImpl::DeleteJob( } StatusOr JobsConnectionImpl::DeleteJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -392,7 +392,7 @@ future> JobsConnectionImpl::RunJob( } StatusOr JobsConnectionImpl::RunJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::RunJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/run/v2/internal/jobs_connection_impl.h b/google/cloud/run/v2/internal/jobs_connection_impl.h index 9e3ffff3a47fb..1dfb1390b61d4 100644 --- a/google/cloud/run/v2/internal/jobs_connection_impl.h +++ b/google/cloud/run/v2/internal/jobs_connection_impl.h @@ -54,7 +54,7 @@ class JobsConnectionImpl : public run_v2::JobsConnection { google::cloud::run::v2::CreateJobRequest const& request) override; StatusOr CreateJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CreateJobRequest const& request) override; future> CreateJob( @@ -71,7 +71,7 @@ class JobsConnectionImpl : public run_v2::JobsConnection { google::cloud::run::v2::UpdateJobRequest const& request) override; StatusOr UpdateJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::UpdateJobRequest const& request) override; future> UpdateJob( @@ -82,7 +82,7 @@ class JobsConnectionImpl : public run_v2::JobsConnection { google::cloud::run::v2::DeleteJobRequest const& request) override; StatusOr DeleteJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteJobRequest const& request) override; future> DeleteJob( @@ -93,7 +93,7 @@ class JobsConnectionImpl : public run_v2::JobsConnection { google::cloud::run::v2::RunJobRequest const& request) override; StatusOr RunJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::RunJobRequest const& request) override; future> RunJob( diff --git a/google/cloud/run/v2/internal/revisions_connection_impl.cc b/google/cloud/run/v2/internal/revisions_connection_impl.cc index e2c455124bfd1..4cd4922e65174 100644 --- a/google/cloud/run/v2/internal/revisions_connection_impl.cc +++ b/google/cloud/run/v2/internal/revisions_connection_impl.cc @@ -150,7 +150,7 @@ RevisionsConnectionImpl::DeleteRevision( StatusOr RevisionsConnectionImpl::DeleteRevision( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteRevisionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/run/v2/internal/revisions_connection_impl.h b/google/cloud/run/v2/internal/revisions_connection_impl.h index aa3152c6f9e1b..60c231a7ea8f3 100644 --- a/google/cloud/run/v2/internal/revisions_connection_impl.h +++ b/google/cloud/run/v2/internal/revisions_connection_impl.h @@ -60,7 +60,7 @@ class RevisionsConnectionImpl : public run_v2::RevisionsConnection { google::cloud::run::v2::DeleteRevisionRequest const& request) override; StatusOr DeleteRevision( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteRevisionRequest const& request) override; future> DeleteRevision( diff --git a/google/cloud/run/v2/internal/services_connection_impl.cc b/google/cloud/run/v2/internal/services_connection_impl.cc index 811b3298e6098..f8ae59a145d29 100644 --- a/google/cloud/run/v2/internal/services_connection_impl.cc +++ b/google/cloud/run/v2/internal/services_connection_impl.cc @@ -102,7 +102,7 @@ ServicesConnectionImpl::CreateService( } StatusOr ServicesConnectionImpl::CreateService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CreateServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -236,7 +236,7 @@ ServicesConnectionImpl::UpdateService( } StatusOr ServicesConnectionImpl::UpdateService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::UpdateServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -324,7 +324,7 @@ ServicesConnectionImpl::DeleteService( } StatusOr ServicesConnectionImpl::DeleteService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/run/v2/internal/services_connection_impl.h b/google/cloud/run/v2/internal/services_connection_impl.h index a53d94453d936..02cf8c21f3f5e 100644 --- a/google/cloud/run/v2/internal/services_connection_impl.h +++ b/google/cloud/run/v2/internal/services_connection_impl.h @@ -54,7 +54,7 @@ class ServicesConnectionImpl : public run_v2::ServicesConnection { google::cloud::run::v2::CreateServiceRequest const& request) override; StatusOr CreateService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::CreateServiceRequest const& request) override; future> CreateService( @@ -71,7 +71,7 @@ class ServicesConnectionImpl : public run_v2::ServicesConnection { google::cloud::run::v2::UpdateServiceRequest const& request) override; StatusOr UpdateService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::UpdateServiceRequest const& request) override; future> UpdateService( @@ -82,7 +82,7 @@ class ServicesConnectionImpl : public run_v2::ServicesConnection { google::cloud::run::v2::DeleteServiceRequest const& request) override; StatusOr DeleteService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::run::v2::DeleteServiceRequest const& request) override; future> DeleteService( diff --git a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.cc b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.cc index 1a8bc9067c040..7b21af8d2233b 100644 --- a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.cc +++ b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.cc @@ -167,7 +167,7 @@ SecureSourceManagerConnectionImpl::CreateInstance( StatusOr SecureSourceManagerConnectionImpl::CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -264,7 +264,7 @@ SecureSourceManagerConnectionImpl::DeleteInstance( StatusOr SecureSourceManagerConnectionImpl::DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -413,7 +413,7 @@ SecureSourceManagerConnectionImpl::CreateRepository( StatusOr SecureSourceManagerConnectionImpl::CreateRepository( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -510,7 +510,7 @@ SecureSourceManagerConnectionImpl::DeleteRepository( StatusOr SecureSourceManagerConnectionImpl::DeleteRepository( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.h b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.h index a84e0b46955e9..dd4d69ee2cc77 100644 --- a/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.h +++ b/google/cloud/securesourcemanager/v1/internal/secure_source_manager_connection_impl.h @@ -67,7 +67,7 @@ class SecureSourceManagerConnectionImpl request) override; StatusOr CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::CreateInstanceRequest const& request) override; @@ -81,7 +81,7 @@ class SecureSourceManagerConnectionImpl request) override; StatusOr DeleteInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::DeleteInstanceRequest const& request) override; @@ -104,7 +104,7 @@ class SecureSourceManagerConnectionImpl request) override; StatusOr CreateRepository( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::CreateRepositoryRequest const& request) override; @@ -118,7 +118,7 @@ class SecureSourceManagerConnectionImpl request) override; StatusOr DeleteRepository( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::securesourcemanager::v1::DeleteRepositoryRequest const& request) override; diff --git a/google/cloud/securitycenter/v1/internal/security_center_connection_impl.cc b/google/cloud/securitycenter/v1/internal/security_center_connection_impl.cc index d92198d12aa21..44a085db3b855 100644 --- a/google/cloud/securitycenter/v1/internal/security_center_connection_impl.cc +++ b/google/cloud/securitycenter/v1/internal/security_center_connection_impl.cc @@ -109,7 +109,7 @@ SecurityCenterConnectionImpl::BulkMuteFindings( StatusOr SecurityCenterConnectionImpl::BulkMuteFindings( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -842,7 +842,7 @@ SecurityCenterConnectionImpl::RunAssetDiscovery( StatusOr SecurityCenterConnectionImpl::RunAssetDiscovery( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/securitycenter/v1/internal/security_center_connection_impl.h b/google/cloud/securitycenter/v1/internal/security_center_connection_impl.h index 614b52d725996..44d8238a0152a 100644 --- a/google/cloud/securitycenter/v1/internal/security_center_connection_impl.h +++ b/google/cloud/securitycenter/v1/internal/security_center_connection_impl.h @@ -58,7 +58,7 @@ class SecurityCenterConnectionImpl override; StatusOr BulkMuteFindings( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v1::BulkMuteFindingsRequest const& request) override; @@ -196,7 +196,7 @@ class SecurityCenterConnectionImpl request) override; StatusOr RunAssetDiscovery( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v1::RunAssetDiscoveryRequest const& request) override; diff --git a/google/cloud/securitycenter/v2/internal/security_center_connection_impl.cc b/google/cloud/securitycenter/v2/internal/security_center_connection_impl.cc index a694c42fd73ee..551b4dd955895 100644 --- a/google/cloud/securitycenter/v2/internal/security_center_connection_impl.cc +++ b/google/cloud/securitycenter/v2/internal/security_center_connection_impl.cc @@ -127,7 +127,7 @@ SecurityCenterConnectionImpl::BulkMuteFindings( StatusOr SecurityCenterConnectionImpl::BulkMuteFindings( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/securitycenter/v2/internal/security_center_connection_impl.h b/google/cloud/securitycenter/v2/internal/security_center_connection_impl.h index 43567610f9df3..4ca0e18d1caed 100644 --- a/google/cloud/securitycenter/v2/internal/security_center_connection_impl.h +++ b/google/cloud/securitycenter/v2/internal/security_center_connection_impl.h @@ -64,7 +64,7 @@ class SecurityCenterConnectionImpl override; StatusOr BulkMuteFindings( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::securitycenter::v2::BulkMuteFindingsRequest const& request) override; diff --git a/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.cc b/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.cc index 5fdfdfac090d0..cd061dd34ce33 100644 --- a/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.cc +++ b/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.cc @@ -160,7 +160,7 @@ ServiceManagerConnectionImpl::CreateService( StatusOr ServiceManagerConnectionImpl::CreateService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::CreateServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -254,7 +254,7 @@ ServiceManagerConnectionImpl::DeleteService( StatusOr ServiceManagerConnectionImpl::DeleteService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::DeleteServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -348,7 +348,7 @@ ServiceManagerConnectionImpl::UndeleteService( StatusOr ServiceManagerConnectionImpl::UndeleteService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::UndeleteServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -509,7 +509,7 @@ ServiceManagerConnectionImpl::SubmitConfigSource( StatusOr ServiceManagerConnectionImpl::SubmitConfigSource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::SubmitConfigSourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -657,7 +657,7 @@ ServiceManagerConnectionImpl::CreateServiceRollout( StatusOr ServiceManagerConnectionImpl::CreateServiceRollout( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::CreateServiceRolloutRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.h b/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.h index 653e522af38ed..d46510d8d5fbe 100644 --- a/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.h +++ b/google/cloud/servicemanagement/v1/internal/service_manager_connection_impl.h @@ -64,7 +64,7 @@ class ServiceManagerConnectionImpl request) override; StatusOr CreateService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::CreateServiceRequest const& request) override; @@ -77,7 +77,7 @@ class ServiceManagerConnectionImpl request) override; StatusOr DeleteService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::DeleteServiceRequest const& request) override; @@ -91,7 +91,7 @@ class ServiceManagerConnectionImpl override; StatusOr UndeleteService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::UndeleteServiceRequest const& request) override; @@ -118,7 +118,7 @@ class ServiceManagerConnectionImpl request) override; StatusOr SubmitConfigSource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::SubmitConfigSourceRequest const& request) override; @@ -141,7 +141,7 @@ class ServiceManagerConnectionImpl request) override; StatusOr CreateServiceRollout( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::servicemanagement::v1::CreateServiceRolloutRequest const& request) override; diff --git a/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.cc b/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.cc index 766b497ac4328..ccc106ace65d8 100644 --- a/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.cc +++ b/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.cc @@ -107,7 +107,7 @@ ServiceUsageConnectionImpl::EnableService( StatusOr ServiceUsageConnectionImpl::EnableService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::EnableServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -199,7 +199,7 @@ ServiceUsageConnectionImpl::DisableService( StatusOr ServiceUsageConnectionImpl::DisableService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::DisableServiceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -340,7 +340,7 @@ ServiceUsageConnectionImpl::BatchEnableServices( StatusOr ServiceUsageConnectionImpl::BatchEnableServices( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::BatchEnableServicesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.h b/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.h index d22b4ec901e44..00bb8caf687c5 100644 --- a/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.h +++ b/google/cloud/serviceusage/v1/internal/service_usage_connection_impl.h @@ -57,7 +57,7 @@ class ServiceUsageConnectionImpl request) override; StatusOr EnableService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::EnableServiceRequest const& request) override; @@ -70,7 +70,7 @@ class ServiceUsageConnectionImpl request) override; StatusOr DisableService( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::DisableServiceRequest const& request) override; @@ -90,7 +90,7 @@ class ServiceUsageConnectionImpl override; StatusOr BatchEnableServices( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::api::serviceusage::v1::BatchEnableServicesRequest const& request) override; diff --git a/google/cloud/shell/v1/internal/cloud_shell_connection_impl.cc b/google/cloud/shell/v1/internal/cloud_shell_connection_impl.cc index ac8291f84630a..13d789266ca95 100644 --- a/google/cloud/shell/v1/internal/cloud_shell_connection_impl.cc +++ b/google/cloud/shell/v1/internal/cloud_shell_connection_impl.cc @@ -118,7 +118,7 @@ CloudShellServiceConnectionImpl::StartEnvironment( StatusOr CloudShellServiceConnectionImpl::StartEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::StartEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -210,7 +210,7 @@ CloudShellServiceConnectionImpl::AuthorizeEnvironment( StatusOr CloudShellServiceConnectionImpl::AuthorizeEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -303,7 +303,7 @@ CloudShellServiceConnectionImpl::AddPublicKey( StatusOr CloudShellServiceConnectionImpl::AddPublicKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::AddPublicKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -394,7 +394,7 @@ CloudShellServiceConnectionImpl::RemovePublicKey( StatusOr CloudShellServiceConnectionImpl::RemovePublicKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::RemovePublicKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/shell/v1/internal/cloud_shell_connection_impl.h b/google/cloud/shell/v1/internal/cloud_shell_connection_impl.h index 2db2607c3112d..9e9f5f9b9e710 100644 --- a/google/cloud/shell/v1/internal/cloud_shell_connection_impl.h +++ b/google/cloud/shell/v1/internal/cloud_shell_connection_impl.h @@ -59,7 +59,7 @@ class CloudShellServiceConnectionImpl request) override; StatusOr StartEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::StartEnvironmentRequest const& request) override; @@ -73,7 +73,7 @@ class CloudShellServiceConnectionImpl override; StatusOr AuthorizeEnvironment( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::AuthorizeEnvironmentRequest const& request) override; @@ -86,7 +86,7 @@ class CloudShellServiceConnectionImpl google::cloud::shell::v1::AddPublicKeyRequest const& request) override; StatusOr AddPublicKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::AddPublicKeyRequest const& request) override; future> AddPublicKey( @@ -98,7 +98,7 @@ class CloudShellServiceConnectionImpl google::cloud::shell::v1::RemovePublicKeyRequest const& request) override; StatusOr RemovePublicKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::shell::v1::RemovePublicKeyRequest const& request) override; future> diff --git a/google/cloud/spanner/admin/internal/database_admin_connection_impl.cc b/google/cloud/spanner/admin/internal/database_admin_connection_impl.cc index 59200342a4f52..167cf39fd90df 100644 --- a/google/cloud/spanner/admin/internal/database_admin_connection_impl.cc +++ b/google/cloud/spanner/admin/internal/database_admin_connection_impl.cc @@ -143,7 +143,7 @@ DatabaseAdminConnectionImpl::CreateDatabase( StatusOr DatabaseAdminConnectionImpl::CreateDatabase( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -254,7 +254,7 @@ DatabaseAdminConnectionImpl::UpdateDatabase( StatusOr DatabaseAdminConnectionImpl::UpdateDatabase( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -351,7 +351,7 @@ DatabaseAdminConnectionImpl::UpdateDatabaseDdl( StatusOr DatabaseAdminConnectionImpl::UpdateDatabaseDdl( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -518,7 +518,7 @@ DatabaseAdminConnectionImpl::CreateBackup( StatusOr DatabaseAdminConnectionImpl::CreateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -612,7 +612,7 @@ DatabaseAdminConnectionImpl::CopyBackup( StatusOr DatabaseAdminConnectionImpl::CopyBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CopyBackupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -786,7 +786,7 @@ DatabaseAdminConnectionImpl::RestoreDatabase( StatusOr DatabaseAdminConnectionImpl::RestoreDatabase( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::RestoreDatabaseRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/spanner/admin/internal/database_admin_connection_impl.h b/google/cloud/spanner/admin/internal/database_admin_connection_impl.h index b3a94f9f26e43..5d5b429cbc2e0 100644 --- a/google/cloud/spanner/admin/internal/database_admin_connection_impl.h +++ b/google/cloud/spanner/admin/internal/database_admin_connection_impl.h @@ -62,7 +62,7 @@ class DatabaseAdminConnectionImpl request) override; StatusOr CreateDatabase( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateDatabaseRequest const& request) override; @@ -80,7 +80,7 @@ class DatabaseAdminConnectionImpl request) override; StatusOr UpdateDatabase( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseRequest const& request) override; @@ -95,7 +95,7 @@ class DatabaseAdminConnectionImpl request) override; StatusOr UpdateDatabaseDdl( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const& request) override; @@ -127,7 +127,7 @@ class DatabaseAdminConnectionImpl override; StatusOr CreateBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CreateBackupRequest const& request) override; @@ -140,7 +140,7 @@ class DatabaseAdminConnectionImpl override; StatusOr CopyBackup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::CopyBackupRequest const& request) override; @@ -170,7 +170,7 @@ class DatabaseAdminConnectionImpl request) override; StatusOr RestoreDatabase( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::database::v1::RestoreDatabaseRequest const& request) override; diff --git a/google/cloud/spanner/admin/internal/instance_admin_connection_impl.cc b/google/cloud/spanner/admin/internal/instance_admin_connection_impl.cc index 03ad6149494ae..97e5c10cec36d 100644 --- a/google/cloud/spanner/admin/internal/instance_admin_connection_impl.cc +++ b/google/cloud/spanner/admin/internal/instance_admin_connection_impl.cc @@ -159,7 +159,7 @@ InstanceAdminConnectionImpl::CreateInstanceConfig( StatusOr InstanceAdminConnectionImpl::CreateInstanceConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -254,7 +254,7 @@ InstanceAdminConnectionImpl::UpdateInstanceConfig( StatusOr InstanceAdminConnectionImpl::UpdateInstanceConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -490,7 +490,7 @@ InstanceAdminConnectionImpl::CreateInstance( StatusOr InstanceAdminConnectionImpl::CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -586,7 +586,7 @@ InstanceAdminConnectionImpl::UpdateInstance( StatusOr InstanceAdminConnectionImpl::UpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -752,7 +752,7 @@ InstanceAdminConnectionImpl::CreateInstancePartition( StatusOr InstanceAdminConnectionImpl::CreateInstancePartition( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstancePartitionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -862,7 +862,7 @@ InstanceAdminConnectionImpl::UpdateInstancePartition( StatusOr InstanceAdminConnectionImpl::UpdateInstancePartition( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstancePartitionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/spanner/admin/internal/instance_admin_connection_impl.h b/google/cloud/spanner/admin/internal/instance_admin_connection_impl.h index e5ed2c298ea3e..13508d476dcc2 100644 --- a/google/cloud/spanner/admin/internal/instance_admin_connection_impl.h +++ b/google/cloud/spanner/admin/internal/instance_admin_connection_impl.h @@ -68,7 +68,7 @@ class InstanceAdminConnectionImpl request) override; StatusOr CreateInstanceConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceConfigRequest const& request) override; @@ -83,7 +83,7 @@ class InstanceAdminConnectionImpl request) override; StatusOr UpdateInstanceConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const& request) override; @@ -119,7 +119,7 @@ class InstanceAdminConnectionImpl request) override; StatusOr CreateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::CreateInstanceRequest const& request) override; @@ -133,7 +133,7 @@ class InstanceAdminConnectionImpl request) override; StatusOr UpdateInstance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1::UpdateInstanceRequest const& request) override; @@ -165,7 +165,7 @@ class InstanceAdminConnectionImpl CreateInstancePartitionRequest const& request) override; StatusOr CreateInstancePartition( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1:: CreateInstancePartitionRequest const& request) override; @@ -184,7 +184,7 @@ class InstanceAdminConnectionImpl UpdateInstancePartitionRequest const& request) override; StatusOr UpdateInstancePartition( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::spanner::admin::instance::v1:: UpdateInstancePartitionRequest const& request) override; diff --git a/google/cloud/speech/v1/internal/speech_connection_impl.cc b/google/cloud/speech/v1/internal/speech_connection_impl.cc index fdb9edc0f3389..297fbaa5b1872 100644 --- a/google/cloud/speech/v1/internal/speech_connection_impl.cc +++ b/google/cloud/speech/v1/internal/speech_connection_impl.cc @@ -117,7 +117,7 @@ SpeechConnectionImpl::LongRunningRecognize( StatusOr SpeechConnectionImpl::LongRunningRecognize( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v1::LongRunningRecognizeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/speech/v1/internal/speech_connection_impl.h b/google/cloud/speech/v1/internal/speech_connection_impl.h index ec45832380ed5..0b22625518286 100644 --- a/google/cloud/speech/v1/internal/speech_connection_impl.h +++ b/google/cloud/speech/v1/internal/speech_connection_impl.h @@ -59,7 +59,7 @@ class SpeechConnectionImpl : public speech_v1::SpeechConnection { override; StatusOr LongRunningRecognize( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v1::LongRunningRecognizeRequest const& request) override; diff --git a/google/cloud/speech/v2/internal/speech_connection_impl.cc b/google/cloud/speech/v2/internal/speech_connection_impl.cc index c15bbd5d86d05..54366f9fe63d8 100644 --- a/google/cloud/speech/v2/internal/speech_connection_impl.cc +++ b/google/cloud/speech/v2/internal/speech_connection_impl.cc @@ -102,7 +102,7 @@ SpeechConnectionImpl::CreateRecognizer( } StatusOr SpeechConnectionImpl::CreateRecognizer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreateRecognizerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -240,7 +240,7 @@ SpeechConnectionImpl::UpdateRecognizer( } StatusOr SpeechConnectionImpl::UpdateRecognizer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdateRecognizerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -330,7 +330,7 @@ SpeechConnectionImpl::DeleteRecognizer( } StatusOr SpeechConnectionImpl::DeleteRecognizer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeleteRecognizerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -421,7 +421,7 @@ SpeechConnectionImpl::UndeleteRecognizer( StatusOr SpeechConnectionImpl::UndeleteRecognizer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeleteRecognizerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -534,7 +534,7 @@ SpeechConnectionImpl::BatchRecognize( } StatusOr SpeechConnectionImpl::BatchRecognize( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::BatchRecognizeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -651,7 +651,7 @@ SpeechConnectionImpl::CreateCustomClass( StatusOr SpeechConnectionImpl::CreateCustomClass( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreateCustomClassRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -790,7 +790,7 @@ SpeechConnectionImpl::UpdateCustomClass( StatusOr SpeechConnectionImpl::UpdateCustomClass( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdateCustomClassRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -881,7 +881,7 @@ SpeechConnectionImpl::DeleteCustomClass( StatusOr SpeechConnectionImpl::DeleteCustomClass( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeleteCustomClassRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -973,7 +973,7 @@ SpeechConnectionImpl::UndeleteCustomClass( StatusOr SpeechConnectionImpl::UndeleteCustomClass( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeleteCustomClassRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1063,7 +1063,7 @@ SpeechConnectionImpl::CreatePhraseSet( } StatusOr SpeechConnectionImpl::CreatePhraseSet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreatePhraseSetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1200,7 +1200,7 @@ SpeechConnectionImpl::UpdatePhraseSet( } StatusOr SpeechConnectionImpl::UpdatePhraseSet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdatePhraseSetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1289,7 +1289,7 @@ SpeechConnectionImpl::DeletePhraseSet( } StatusOr SpeechConnectionImpl::DeletePhraseSet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeletePhraseSetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1379,7 +1379,7 @@ SpeechConnectionImpl::UndeletePhraseSet( StatusOr SpeechConnectionImpl::UndeletePhraseSet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeletePhraseSetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/speech/v2/internal/speech_connection_impl.h b/google/cloud/speech/v2/internal/speech_connection_impl.h index 3bc17f2fc35b3..baca5915b2fa1 100644 --- a/google/cloud/speech/v2/internal/speech_connection_impl.h +++ b/google/cloud/speech/v2/internal/speech_connection_impl.h @@ -56,7 +56,7 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr CreateRecognizer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreateRecognizerRequest const& request) override; @@ -75,7 +75,7 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr UpdateRecognizer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdateRecognizerRequest const& request) override; @@ -88,7 +88,7 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr DeleteRecognizer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeleteRecognizerRequest const& request) override; @@ -101,7 +101,7 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr UndeleteRecognizer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeleteRecognizerRequest const& request) override; @@ -122,7 +122,7 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { google::cloud::speech::v2::BatchRecognizeRequest const& request) override; StatusOr BatchRecognize( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::BatchRecognizeRequest const& request) override; future> @@ -140,7 +140,7 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr CreateCustomClass( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreateCustomClassRequest const& request) override; @@ -159,7 +159,7 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr UpdateCustomClass( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdateCustomClassRequest const& request) override; @@ -172,7 +172,7 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr DeleteCustomClass( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeleteCustomClassRequest const& request) override; @@ -185,7 +185,7 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr UndeleteCustomClass( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeleteCustomClassRequest const& request) override; @@ -198,7 +198,7 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr CreatePhraseSet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::CreatePhraseSetRequest const& request) override; @@ -217,7 +217,7 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr UpdatePhraseSet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UpdatePhraseSetRequest const& request) override; @@ -230,7 +230,7 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr DeletePhraseSet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::DeletePhraseSetRequest const& request) override; @@ -243,7 +243,7 @@ class SpeechConnectionImpl : public speech_v2::SpeechConnection { override; StatusOr UndeletePhraseSet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::speech::v2::UndeletePhraseSetRequest const& request) override; diff --git a/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.cc b/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.cc index 3cfda8435c0af..5b3947e9400dc 100644 --- a/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.cc +++ b/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.cc @@ -198,7 +198,7 @@ StorageControlConnectionImpl::RenameFolder( StatusOr StorageControlConnectionImpl::RenameFolder( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::storage::control::v2::RenameFolderRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.h b/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.h index 3f85d97b41336..535f5e31ab4da 100644 --- a/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.h +++ b/google/cloud/storagecontrol/v2/internal/storage_control_connection_impl.h @@ -71,7 +71,7 @@ class StorageControlConnectionImpl override; StatusOr RenameFolder( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::storage::control::v2::RenameFolderRequest const& request) override; diff --git a/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.cc b/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.cc index 6733f03267d41..ba9c68e19f1ac 100644 --- a/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.cc +++ b/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.cc @@ -239,7 +239,7 @@ StorageTransferServiceConnectionImpl::RunTransferJob( StatusOr StorageTransferServiceConnectionImpl::RunTransferJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::storagetransfer::v1::RunTransferJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.h b/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.h index ac43e41be23e2..1e01e69125f48 100644 --- a/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.h +++ b/google/cloud/storagetransfer/v1/internal/storage_transfer_connection_impl.h @@ -86,7 +86,7 @@ class StorageTransferServiceConnectionImpl request) override; StatusOr RunTransferJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::storagetransfer::v1::RunTransferJobRequest const& request) override; diff --git a/google/cloud/talent/v4/internal/job_connection_impl.cc b/google/cloud/talent/v4/internal/job_connection_impl.cc index ab07b2e3fed65..ebc653ef77ade 100644 --- a/google/cloud/talent/v4/internal/job_connection_impl.cc +++ b/google/cloud/talent/v4/internal/job_connection_impl.cc @@ -116,7 +116,7 @@ JobServiceConnectionImpl::BatchCreateJobs( StatusOr JobServiceConnectionImpl::BatchCreateJobs( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchCreateJobsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -233,7 +233,7 @@ JobServiceConnectionImpl::BatchUpdateJobs( StatusOr JobServiceConnectionImpl::BatchUpdateJobs( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchUpdateJobsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -337,7 +337,7 @@ JobServiceConnectionImpl::BatchDeleteJobs( StatusOr JobServiceConnectionImpl::BatchDeleteJobs( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchDeleteJobsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/talent/v4/internal/job_connection_impl.h b/google/cloud/talent/v4/internal/job_connection_impl.h index daea4df5ede65..1ddb79627ad73 100644 --- a/google/cloud/talent/v4/internal/job_connection_impl.h +++ b/google/cloud/talent/v4/internal/job_connection_impl.h @@ -59,7 +59,7 @@ class JobServiceConnectionImpl : public talent_v4::JobServiceConnection { request) override; StatusOr BatchCreateJobs( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchCreateJobsRequest const& request) override; @@ -78,7 +78,7 @@ class JobServiceConnectionImpl : public talent_v4::JobServiceConnection { request) override; StatusOr BatchUpdateJobs( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchUpdateJobsRequest const& request) override; @@ -94,7 +94,7 @@ class JobServiceConnectionImpl : public talent_v4::JobServiceConnection { request) override; StatusOr BatchDeleteJobs( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::talent::v4::BatchDeleteJobsRequest const& request) override; diff --git a/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.cc b/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.cc index 3707ee0ed839e..209b8b00834a7 100644 --- a/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.cc +++ b/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.cc @@ -164,7 +164,7 @@ TelcoAutomationConnectionImpl::CreateOrchestrationCluster( StatusOr TelcoAutomationConnectionImpl::CreateOrchestrationCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::CreateOrchestrationClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -259,7 +259,7 @@ TelcoAutomationConnectionImpl::DeleteOrchestrationCluster( StatusOr TelcoAutomationConnectionImpl::DeleteOrchestrationCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::DeleteOrchestrationClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -404,7 +404,7 @@ TelcoAutomationConnectionImpl::CreateEdgeSlm( StatusOr TelcoAutomationConnectionImpl::CreateEdgeSlm( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -498,7 +498,7 @@ TelcoAutomationConnectionImpl::DeleteEdgeSlm( StatusOr TelcoAutomationConnectionImpl::DeleteEdgeSlm( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.h b/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.h index 7866357d3eb1b..efaa9f651cb45 100644 --- a/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.h +++ b/google/cloud/telcoautomation/v1/internal/telco_automation_connection_impl.h @@ -68,7 +68,7 @@ class TelcoAutomationConnectionImpl CreateOrchestrationClusterRequest const& request) override; StatusOr CreateOrchestrationCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1:: CreateOrchestrationClusterRequest const& request) override; @@ -83,7 +83,7 @@ class TelcoAutomationConnectionImpl DeleteOrchestrationClusterRequest const& request) override; StatusOr DeleteOrchestrationCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1:: DeleteOrchestrationClusterRequest const& request) override; @@ -104,7 +104,7 @@ class TelcoAutomationConnectionImpl override; StatusOr CreateEdgeSlm( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::CreateEdgeSlmRequest const& request) override; @@ -117,7 +117,7 @@ class TelcoAutomationConnectionImpl request) override; StatusOr DeleteEdgeSlm( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::telcoautomation::v1::DeleteEdgeSlmRequest const& request) override; diff --git a/google/cloud/tpu/v1/internal/tpu_connection_impl.cc b/google/cloud/tpu/v1/internal/tpu_connection_impl.cc index 69937b030afc5..be0c0122dda3e 100644 --- a/google/cloud/tpu/v1/internal/tpu_connection_impl.cc +++ b/google/cloud/tpu/v1/internal/tpu_connection_impl.cc @@ -141,7 +141,7 @@ future> TpuConnectionImpl::CreateNode( } StatusOr TpuConnectionImpl::CreateNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::CreateNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -227,7 +227,7 @@ future> TpuConnectionImpl::DeleteNode( } StatusOr TpuConnectionImpl::DeleteNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::DeleteNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -314,7 +314,7 @@ future> TpuConnectionImpl::ReimageNode( } StatusOr TpuConnectionImpl::ReimageNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::ReimageNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -399,7 +399,7 @@ future> TpuConnectionImpl::StopNode( } StatusOr TpuConnectionImpl::StopNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::StopNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -484,7 +484,7 @@ future> TpuConnectionImpl::StartNode( } StatusOr TpuConnectionImpl::StartNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::StartNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/tpu/v1/internal/tpu_connection_impl.h b/google/cloud/tpu/v1/internal/tpu_connection_impl.h index 614219aa3d668..c4e81e571ef5f 100644 --- a/google/cloud/tpu/v1/internal/tpu_connection_impl.h +++ b/google/cloud/tpu/v1/internal/tpu_connection_impl.h @@ -60,7 +60,7 @@ class TpuConnectionImpl : public tpu_v1::TpuConnection { google::cloud::tpu::v1::CreateNodeRequest const& request) override; StatusOr CreateNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::CreateNodeRequest const& request) override; future> CreateNode( @@ -71,7 +71,7 @@ class TpuConnectionImpl : public tpu_v1::TpuConnection { google::cloud::tpu::v1::DeleteNodeRequest const& request) override; StatusOr DeleteNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::DeleteNodeRequest const& request) override; future> DeleteNode( @@ -82,7 +82,7 @@ class TpuConnectionImpl : public tpu_v1::TpuConnection { google::cloud::tpu::v1::ReimageNodeRequest const& request) override; StatusOr ReimageNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::ReimageNodeRequest const& request) override; future> ReimageNode( @@ -93,7 +93,7 @@ class TpuConnectionImpl : public tpu_v1::TpuConnection { google::cloud::tpu::v1::StopNodeRequest const& request) override; StatusOr StopNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::StopNodeRequest const& request) override; future> StopNode( @@ -104,7 +104,7 @@ class TpuConnectionImpl : public tpu_v1::TpuConnection { google::cloud::tpu::v1::StartNodeRequest const& request) override; StatusOr StartNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v1::StartNodeRequest const& request) override; future> StartNode( diff --git a/google/cloud/tpu/v2/internal/tpu_connection_impl.cc b/google/cloud/tpu/v2/internal/tpu_connection_impl.cc index 47063fae21721..ee694ff463236 100644 --- a/google/cloud/tpu/v2/internal/tpu_connection_impl.cc +++ b/google/cloud/tpu/v2/internal/tpu_connection_impl.cc @@ -141,7 +141,7 @@ future> TpuConnectionImpl::CreateNode( } StatusOr TpuConnectionImpl::CreateNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::CreateNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -228,7 +228,7 @@ TpuConnectionImpl::DeleteNode( } StatusOr TpuConnectionImpl::DeleteNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::DeleteNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -315,7 +315,7 @@ future> TpuConnectionImpl::StopNode( } StatusOr TpuConnectionImpl::StopNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::StopNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -400,7 +400,7 @@ future> TpuConnectionImpl::StartNode( } StatusOr TpuConnectionImpl::StartNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::StartNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -486,7 +486,7 @@ future> TpuConnectionImpl::UpdateNode( } StatusOr TpuConnectionImpl::UpdateNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::UpdateNodeRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/tpu/v2/internal/tpu_connection_impl.h b/google/cloud/tpu/v2/internal/tpu_connection_impl.h index 57568596545fb..df4af663fc7a3 100644 --- a/google/cloud/tpu/v2/internal/tpu_connection_impl.h +++ b/google/cloud/tpu/v2/internal/tpu_connection_impl.h @@ -60,7 +60,7 @@ class TpuConnectionImpl : public tpu_v2::TpuConnection { google::cloud::tpu::v2::CreateNodeRequest const& request) override; StatusOr CreateNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::CreateNodeRequest const& request) override; future> CreateNode( @@ -71,7 +71,7 @@ class TpuConnectionImpl : public tpu_v2::TpuConnection { google::cloud::tpu::v2::DeleteNodeRequest const& request) override; StatusOr DeleteNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::DeleteNodeRequest const& request) override; future> DeleteNode( @@ -82,7 +82,7 @@ class TpuConnectionImpl : public tpu_v2::TpuConnection { google::cloud::tpu::v2::StopNodeRequest const& request) override; StatusOr StopNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::StopNodeRequest const& request) override; future> StopNode( @@ -93,7 +93,7 @@ class TpuConnectionImpl : public tpu_v2::TpuConnection { google::cloud::tpu::v2::StartNodeRequest const& request) override; StatusOr StartNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::StartNodeRequest const& request) override; future> StartNode( @@ -104,7 +104,7 @@ class TpuConnectionImpl : public tpu_v2::TpuConnection { google::cloud::tpu::v2::UpdateNodeRequest const& request) override; StatusOr UpdateNode( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::tpu::v2::UpdateNodeRequest const& request) override; future> UpdateNode( diff --git a/google/cloud/translate/v3/internal/translation_connection_impl.cc b/google/cloud/translate/v3/internal/translation_connection_impl.cc index a2270e6a84fec..cf585368d99c1 100644 --- a/google/cloud/translate/v3/internal/translation_connection_impl.cc +++ b/google/cloud/translate/v3/internal/translation_connection_impl.cc @@ -170,7 +170,7 @@ TranslationServiceConnectionImpl::BatchTranslateText( StatusOr TranslationServiceConnectionImpl::BatchTranslateText( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::BatchTranslateTextRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -265,7 +265,7 @@ TranslationServiceConnectionImpl::BatchTranslateDocument( StatusOr TranslationServiceConnectionImpl::BatchTranslateDocument( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::BatchTranslateDocumentRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -361,7 +361,7 @@ TranslationServiceConnectionImpl::CreateGlossary( StatusOr TranslationServiceConnectionImpl::CreateGlossary( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::CreateGlossaryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -504,7 +504,7 @@ TranslationServiceConnectionImpl::DeleteGlossary( StatusOr TranslationServiceConnectionImpl::DeleteGlossary( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::DeleteGlossaryRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/translate/v3/internal/translation_connection_impl.h b/google/cloud/translate/v3/internal/translation_connection_impl.h index 6ac8c0f8295b2..ffda3d040ecc3 100644 --- a/google/cloud/translate/v3/internal/translation_connection_impl.h +++ b/google/cloud/translate/v3/internal/translation_connection_impl.h @@ -76,7 +76,7 @@ class TranslationServiceConnectionImpl override; StatusOr BatchTranslateText( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::BatchTranslateTextRequest const& request) override; @@ -91,7 +91,7 @@ class TranslationServiceConnectionImpl request) override; StatusOr BatchTranslateDocument( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::BatchTranslateDocumentRequest const& request) override; @@ -106,7 +106,7 @@ class TranslationServiceConnectionImpl override; StatusOr CreateGlossary( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::CreateGlossaryRequest const& request) override; @@ -126,7 +126,7 @@ class TranslationServiceConnectionImpl request) override; StatusOr DeleteGlossary( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::translation::v3::DeleteGlossaryRequest const& request) override; diff --git a/google/cloud/video/livestream/v1/internal/livestream_connection_impl.cc b/google/cloud/video/livestream/v1/internal/livestream_connection_impl.cc index 60d5d29adcf02..bc157b3b712c1 100644 --- a/google/cloud/video/livestream/v1/internal/livestream_connection_impl.cc +++ b/google/cloud/video/livestream/v1/internal/livestream_connection_impl.cc @@ -113,7 +113,7 @@ LivestreamServiceConnectionImpl::CreateChannel( StatusOr LivestreamServiceConnectionImpl::CreateChannel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateChannelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -258,7 +258,7 @@ LivestreamServiceConnectionImpl::DeleteChannel( StatusOr LivestreamServiceConnectionImpl::DeleteChannel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteChannelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -352,7 +352,7 @@ LivestreamServiceConnectionImpl::UpdateChannel( StatusOr LivestreamServiceConnectionImpl::UpdateChannel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdateChannelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -446,7 +446,7 @@ LivestreamServiceConnectionImpl::StartChannel( StatusOr LivestreamServiceConnectionImpl::StartChannel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::StartChannelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -540,7 +540,7 @@ LivestreamServiceConnectionImpl::StopChannel( StatusOr LivestreamServiceConnectionImpl::StopChannel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::StopChannelRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -634,7 +634,7 @@ LivestreamServiceConnectionImpl::CreateInput( StatusOr LivestreamServiceConnectionImpl::CreateInput( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateInputRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -779,7 +779,7 @@ LivestreamServiceConnectionImpl::DeleteInput( StatusOr LivestreamServiceConnectionImpl::DeleteInput( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteInputRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -873,7 +873,7 @@ LivestreamServiceConnectionImpl::UpdateInput( StatusOr LivestreamServiceConnectionImpl::UpdateInput( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdateInputRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1047,7 +1047,7 @@ LivestreamServiceConnectionImpl::CreateAsset( StatusOr LivestreamServiceConnectionImpl::CreateAsset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateAssetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1141,7 +1141,7 @@ LivestreamServiceConnectionImpl::DeleteAsset( StatusOr LivestreamServiceConnectionImpl::DeleteAsset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteAssetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1301,7 +1301,7 @@ LivestreamServiceConnectionImpl::UpdatePool( StatusOr LivestreamServiceConnectionImpl::UpdatePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdatePoolRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/video/livestream/v1/internal/livestream_connection_impl.h b/google/cloud/video/livestream/v1/internal/livestream_connection_impl.h index b79d803ed1d7f..f283dc8bd9e18 100644 --- a/google/cloud/video/livestream/v1/internal/livestream_connection_impl.h +++ b/google/cloud/video/livestream/v1/internal/livestream_connection_impl.h @@ -57,7 +57,7 @@ class LivestreamServiceConnectionImpl override; StatusOr CreateChannel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateChannelRequest const& request) override; @@ -79,7 +79,7 @@ class LivestreamServiceConnectionImpl override; StatusOr DeleteChannel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteChannelRequest const& request) override; @@ -92,7 +92,7 @@ class LivestreamServiceConnectionImpl override; StatusOr UpdateChannel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdateChannelRequest const& request) override; @@ -106,7 +106,7 @@ class LivestreamServiceConnectionImpl request) override; StatusOr StartChannel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::StartChannelRequest const& request) override; @@ -121,7 +121,7 @@ class LivestreamServiceConnectionImpl request) override; StatusOr StopChannel( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::StopChannelRequest const& request) override; @@ -135,7 +135,7 @@ class LivestreamServiceConnectionImpl override; StatusOr CreateInput( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateInputRequest const& request) override; @@ -155,7 +155,7 @@ class LivestreamServiceConnectionImpl request) override; StatusOr DeleteInput( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteInputRequest const& request) override; @@ -168,7 +168,7 @@ class LivestreamServiceConnectionImpl override; StatusOr UpdateInput( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdateInputRequest const& request) override; @@ -196,7 +196,7 @@ class LivestreamServiceConnectionImpl override; StatusOr CreateAsset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::CreateAssetRequest const& request) override; @@ -209,7 +209,7 @@ class LivestreamServiceConnectionImpl request) override; StatusOr DeleteAsset( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::DeleteAssetRequest const& request) override; @@ -233,7 +233,7 @@ class LivestreamServiceConnectionImpl override; StatusOr UpdatePool( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::livestream::v1::UpdatePoolRequest const& request) override; diff --git a/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.cc b/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.cc index 893449a9dfa00..7acd387d4baa1 100644 --- a/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.cc +++ b/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.cc @@ -114,7 +114,7 @@ VideoStitcherServiceConnectionImpl::CreateCdnKey( StatusOr VideoStitcherServiceConnectionImpl::CreateCdnKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -258,7 +258,7 @@ VideoStitcherServiceConnectionImpl::DeleteCdnKey( StatusOr VideoStitcherServiceConnectionImpl::DeleteCdnKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -352,7 +352,7 @@ VideoStitcherServiceConnectionImpl::UpdateCdnKey( StatusOr VideoStitcherServiceConnectionImpl::UpdateCdnKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -637,7 +637,7 @@ VideoStitcherServiceConnectionImpl::CreateSlate( StatusOr VideoStitcherServiceConnectionImpl::CreateSlate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateSlateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -781,7 +781,7 @@ VideoStitcherServiceConnectionImpl::UpdateSlate( StatusOr VideoStitcherServiceConnectionImpl::UpdateSlate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateSlateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -875,7 +875,7 @@ VideoStitcherServiceConnectionImpl::DeleteSlate( StatusOr VideoStitcherServiceConnectionImpl::DeleteSlate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteSlateRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1001,7 +1001,7 @@ VideoStitcherServiceConnectionImpl::CreateLiveConfig( StatusOr VideoStitcherServiceConnectionImpl::CreateLiveConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1147,7 +1147,7 @@ VideoStitcherServiceConnectionImpl::DeleteLiveConfig( StatusOr VideoStitcherServiceConnectionImpl::DeleteLiveConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1243,7 +1243,7 @@ VideoStitcherServiceConnectionImpl::UpdateLiveConfig( StatusOr VideoStitcherServiceConnectionImpl::UpdateLiveConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1338,7 +1338,7 @@ VideoStitcherServiceConnectionImpl::CreateVodConfig( StatusOr VideoStitcherServiceConnectionImpl::CreateVodConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1483,7 +1483,7 @@ VideoStitcherServiceConnectionImpl::DeleteVodConfig( StatusOr VideoStitcherServiceConnectionImpl::DeleteVodConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1577,7 +1577,7 @@ VideoStitcherServiceConnectionImpl::UpdateVodConfig( StatusOr VideoStitcherServiceConnectionImpl::UpdateVodConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.h b/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.h index 824f768f6c76f..c5acf6d699dc9 100644 --- a/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.h +++ b/google/cloud/video/stitcher/v1/internal/video_stitcher_connection_impl.h @@ -58,7 +58,7 @@ class VideoStitcherServiceConnectionImpl override; StatusOr CreateCdnKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateCdnKeyRequest const& request) override; @@ -78,7 +78,7 @@ class VideoStitcherServiceConnectionImpl request) override; StatusOr DeleteCdnKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteCdnKeyRequest const& request) override; @@ -91,7 +91,7 @@ class VideoStitcherServiceConnectionImpl override; StatusOr UpdateCdnKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateCdnKeyRequest const& request) override; @@ -142,7 +142,7 @@ class VideoStitcherServiceConnectionImpl override; StatusOr CreateSlate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateSlateRequest const& request) override; @@ -162,7 +162,7 @@ class VideoStitcherServiceConnectionImpl override; StatusOr UpdateSlate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateSlateRequest const& request) override; @@ -175,7 +175,7 @@ class VideoStitcherServiceConnectionImpl request) override; StatusOr DeleteSlate( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteSlateRequest const& request) override; @@ -197,7 +197,7 @@ class VideoStitcherServiceConnectionImpl request) override; StatusOr CreateLiveConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateLiveConfigRequest const& request) override; @@ -219,7 +219,7 @@ class VideoStitcherServiceConnectionImpl request) override; StatusOr DeleteLiveConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteLiveConfigRequest const& request) override; @@ -233,7 +233,7 @@ class VideoStitcherServiceConnectionImpl request) override; StatusOr UpdateLiveConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateLiveConfigRequest const& request) override; @@ -247,7 +247,7 @@ class VideoStitcherServiceConnectionImpl override; StatusOr CreateVodConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::CreateVodConfigRequest const& request) override; @@ -269,7 +269,7 @@ class VideoStitcherServiceConnectionImpl override; StatusOr DeleteVodConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::DeleteVodConfigRequest const& request) override; @@ -283,7 +283,7 @@ class VideoStitcherServiceConnectionImpl override; StatusOr UpdateVodConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::video::stitcher::v1::UpdateVodConfigRequest const& request) override; diff --git a/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.cc b/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.cc index d5dd09f890e1e..e146c812d5886 100644 --- a/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.cc +++ b/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.cc @@ -114,7 +114,7 @@ VideoIntelligenceServiceConnectionImpl::AnnotateVideo( StatusOr VideoIntelligenceServiceConnectionImpl::AnnotateVideo( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::videointelligence::v1::AnnotateVideoRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.h b/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.h index 9c826f3db5550..191a6281f6476 100644 --- a/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.h +++ b/google/cloud/videointelligence/v1/internal/video_intelligence_connection_impl.h @@ -59,7 +59,7 @@ class VideoIntelligenceServiceConnectionImpl override; StatusOr AnnotateVideo( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::videointelligence::v1::AnnotateVideoRequest const& request) override; diff --git a/google/cloud/vision/v1/internal/image_annotator_connection_impl.cc b/google/cloud/vision/v1/internal/image_annotator_connection_impl.cc index eedff3afec230..54e52cf5953cc 100644 --- a/google/cloud/vision/v1/internal/image_annotator_connection_impl.cc +++ b/google/cloud/vision/v1/internal/image_annotator_connection_impl.cc @@ -135,7 +135,7 @@ ImageAnnotatorConnectionImpl::AsyncBatchAnnotateImages( StatusOr ImageAnnotatorConnectionImpl::AsyncBatchAnnotateImages( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -228,7 +228,7 @@ ImageAnnotatorConnectionImpl::AsyncBatchAnnotateFiles( StatusOr ImageAnnotatorConnectionImpl::AsyncBatchAnnotateFiles( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/vision/v1/internal/image_annotator_connection_impl.h b/google/cloud/vision/v1/internal/image_annotator_connection_impl.h index c4722ae490d8f..30674afb363ce 100644 --- a/google/cloud/vision/v1/internal/image_annotator_connection_impl.h +++ b/google/cloud/vision/v1/internal/image_annotator_connection_impl.h @@ -66,7 +66,7 @@ class ImageAnnotatorConnectionImpl override; StatusOr AsyncBatchAnnotateImages( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const& request) override; @@ -81,7 +81,7 @@ class ImageAnnotatorConnectionImpl override; StatusOr AsyncBatchAnnotateFiles( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const& request) override; diff --git a/google/cloud/vision/v1/internal/product_search_connection_impl.cc b/google/cloud/vision/v1/internal/product_search_connection_impl.cc index 98dcfc3f72431..a3ee42118e5a0 100644 --- a/google/cloud/vision/v1/internal/product_search_connection_impl.cc +++ b/google/cloud/vision/v1/internal/product_search_connection_impl.cc @@ -429,7 +429,7 @@ ProductSearchConnectionImpl::ImportProductSets( StatusOr ProductSearchConnectionImpl::ImportProductSets( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::ImportProductSetsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -521,7 +521,7 @@ ProductSearchConnectionImpl::PurgeProducts( StatusOr ProductSearchConnectionImpl::PurgeProducts( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::PurgeProductsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/vision/v1/internal/product_search_connection_impl.h b/google/cloud/vision/v1/internal/product_search_connection_impl.h index 804d07cfe39e0..5df36a70e2654 100644 --- a/google/cloud/vision/v1/internal/product_search_connection_impl.h +++ b/google/cloud/vision/v1/internal/product_search_connection_impl.h @@ -116,7 +116,7 @@ class ProductSearchConnectionImpl : public vision_v1::ProductSearchConnection { request) override; StatusOr ImportProductSets( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::ImportProductSetsRequest const& request) override; @@ -129,7 +129,7 @@ class ProductSearchConnectionImpl : public vision_v1::ProductSearchConnection { google::cloud::vision::v1::PurgeProductsRequest const& request) override; StatusOr PurgeProducts( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vision::v1::PurgeProductsRequest const& request) override; future> diff --git a/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.cc b/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.cc index 327a9d6e4256d..b45cc77bb09ca 100644 --- a/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.cc +++ b/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.cc @@ -153,7 +153,7 @@ VmMigrationConnectionImpl::CreateSource( StatusOr VmMigrationConnectionImpl::CreateSource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateSourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -244,7 +244,7 @@ VmMigrationConnectionImpl::UpdateSource( StatusOr VmMigrationConnectionImpl::UpdateSource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateSourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -335,7 +335,7 @@ VmMigrationConnectionImpl::DeleteSource( StatusOr VmMigrationConnectionImpl::DeleteSource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteSourceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -496,7 +496,7 @@ VmMigrationConnectionImpl::CreateUtilizationReport( StatusOr VmMigrationConnectionImpl::CreateUtilizationReport( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -592,7 +592,7 @@ VmMigrationConnectionImpl::DeleteUtilizationReport( StatusOr VmMigrationConnectionImpl::DeleteUtilizationReport( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -740,7 +740,7 @@ VmMigrationConnectionImpl::CreateDatacenterConnector( StatusOr VmMigrationConnectionImpl::CreateDatacenterConnector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -834,7 +834,7 @@ VmMigrationConnectionImpl::DeleteDatacenterConnector( StatusOr VmMigrationConnectionImpl::DeleteDatacenterConnector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -928,7 +928,7 @@ VmMigrationConnectionImpl::UpgradeAppliance( StatusOr VmMigrationConnectionImpl::UpgradeAppliance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1021,7 +1021,7 @@ VmMigrationConnectionImpl::CreateMigratingVm( StatusOr VmMigrationConnectionImpl::CreateMigratingVm( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1164,7 +1164,7 @@ VmMigrationConnectionImpl::UpdateMigratingVm( StatusOr VmMigrationConnectionImpl::UpdateMigratingVm( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1257,7 +1257,7 @@ VmMigrationConnectionImpl::DeleteMigratingVm( StatusOr VmMigrationConnectionImpl::DeleteMigratingVm( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1350,7 +1350,7 @@ VmMigrationConnectionImpl::StartMigration( StatusOr VmMigrationConnectionImpl::StartMigration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::StartMigrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1443,7 +1443,7 @@ VmMigrationConnectionImpl::ResumeMigration( StatusOr VmMigrationConnectionImpl::ResumeMigration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::ResumeMigrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1536,7 +1536,7 @@ VmMigrationConnectionImpl::PauseMigration( StatusOr VmMigrationConnectionImpl::PauseMigration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::PauseMigrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1629,7 +1629,7 @@ VmMigrationConnectionImpl::FinalizeMigration( StatusOr VmMigrationConnectionImpl::FinalizeMigration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1722,7 +1722,7 @@ VmMigrationConnectionImpl::CreateCloneJob( StatusOr VmMigrationConnectionImpl::CreateCloneJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateCloneJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1815,7 +1815,7 @@ VmMigrationConnectionImpl::CancelCloneJob( StatusOr VmMigrationConnectionImpl::CancelCloneJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CancelCloneJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1957,7 +1957,7 @@ VmMigrationConnectionImpl::CreateCutoverJob( StatusOr VmMigrationConnectionImpl::CreateCutoverJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2050,7 +2050,7 @@ VmMigrationConnectionImpl::CancelCutoverJob( StatusOr VmMigrationConnectionImpl::CancelCutoverJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2238,7 +2238,7 @@ VmMigrationConnectionImpl::CreateGroup( } StatusOr VmMigrationConnectionImpl::CreateGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2328,7 +2328,7 @@ VmMigrationConnectionImpl::UpdateGroup( } StatusOr VmMigrationConnectionImpl::UpdateGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2418,7 +2418,7 @@ VmMigrationConnectionImpl::DeleteGroup( } StatusOr VmMigrationConnectionImpl::DeleteGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteGroupRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2511,7 +2511,7 @@ VmMigrationConnectionImpl::AddGroupMigration( StatusOr VmMigrationConnectionImpl::AddGroupMigration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2605,7 +2605,7 @@ VmMigrationConnectionImpl::RemoveGroupMigration( StatusOr VmMigrationConnectionImpl::RemoveGroupMigration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2749,7 +2749,7 @@ VmMigrationConnectionImpl::CreateTargetProject( StatusOr VmMigrationConnectionImpl::CreateTargetProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateTargetProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2842,7 +2842,7 @@ VmMigrationConnectionImpl::UpdateTargetProject( StatusOr VmMigrationConnectionImpl::UpdateTargetProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -2935,7 +2935,7 @@ VmMigrationConnectionImpl::DeleteTargetProject( StatusOr VmMigrationConnectionImpl::DeleteTargetProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.h b/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.h index 1658c5042c16e..a73d9ed1bb41a 100644 --- a/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.h +++ b/google/cloud/vmmigration/v1/internal/vm_migration_connection_impl.h @@ -62,7 +62,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr CreateSource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateSourceRequest const& request) override; @@ -75,7 +75,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr UpdateSource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateSourceRequest const& request) override; @@ -88,7 +88,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr DeleteSource( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteSourceRequest const& request) override; @@ -116,7 +116,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr CreateUtilizationReport( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateUtilizationReportRequest const& request) override; @@ -131,7 +131,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr DeleteUtilizationReport( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteUtilizationReportRequest const& request) override; @@ -156,7 +156,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr CreateDatacenterConnector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateDatacenterConnectorRequest const& request) override; @@ -171,7 +171,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr DeleteDatacenterConnector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteDatacenterConnectorRequest const& request) override; @@ -186,7 +186,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr UpgradeAppliance( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpgradeApplianceRequest const& request) override; @@ -200,7 +200,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr CreateMigratingVm( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateMigratingVmRequest const& request) override; @@ -221,7 +221,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr UpdateMigratingVm( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateMigratingVmRequest const& request) override; @@ -235,7 +235,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr DeleteMigratingVm( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteMigratingVmRequest const& request) override; @@ -248,7 +248,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr StartMigration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::StartMigrationRequest const& request) override; @@ -261,7 +261,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr ResumeMigration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::ResumeMigrationRequest const& request) override; @@ -274,7 +274,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr PauseMigration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::PauseMigrationRequest const& request) override; @@ -288,7 +288,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr FinalizeMigration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::FinalizeMigrationRequest const& request) override; @@ -301,7 +301,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr CreateCloneJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateCloneJobRequest const& request) override; @@ -314,7 +314,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr CancelCloneJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CancelCloneJobRequest const& request) override; @@ -334,7 +334,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr CreateCutoverJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateCutoverJobRequest const& request) override; @@ -348,7 +348,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr CancelCutoverJob( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CancelCutoverJobRequest const& request) override; @@ -374,7 +374,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr CreateGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateGroupRequest const& request) override; @@ -387,7 +387,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr UpdateGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateGroupRequest const& request) override; @@ -400,7 +400,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr DeleteGroup( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteGroupRequest const& request) override; @@ -414,7 +414,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr AddGroupMigration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::AddGroupMigrationRequest const& request) override; @@ -428,7 +428,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { request) override; StatusOr RemoveGroupMigration( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::RemoveGroupMigrationRequest const& request) override; @@ -451,7 +451,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr CreateTargetProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::CreateTargetProjectRequest const& request) override; @@ -465,7 +465,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr UpdateTargetProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::UpdateTargetProjectRequest const& request) override; @@ -479,7 +479,7 @@ class VmMigrationConnectionImpl : public vmmigration_v1::VmMigrationConnection { override; StatusOr DeleteTargetProject( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmmigration::v1::DeleteTargetProjectRequest const& request) override; diff --git a/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.cc b/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.cc index ba2d92224fcf5..ca32f398c4c74 100644 --- a/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.cc +++ b/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.cc @@ -158,7 +158,7 @@ VmwareEngineConnectionImpl::CreatePrivateCloud( StatusOr VmwareEngineConnectionImpl::CreatePrivateCloud( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -251,7 +251,7 @@ VmwareEngineConnectionImpl::UpdatePrivateCloud( StatusOr VmwareEngineConnectionImpl::UpdatePrivateCloud( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -344,7 +344,7 @@ VmwareEngineConnectionImpl::DeletePrivateCloud( StatusOr VmwareEngineConnectionImpl::DeletePrivateCloud( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -438,7 +438,7 @@ VmwareEngineConnectionImpl::UndeletePrivateCloud( StatusOr VmwareEngineConnectionImpl::UndeletePrivateCloud( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -581,7 +581,7 @@ VmwareEngineConnectionImpl::CreateCluster( StatusOr VmwareEngineConnectionImpl::CreateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -674,7 +674,7 @@ VmwareEngineConnectionImpl::UpdateCluster( StatusOr VmwareEngineConnectionImpl::UpdateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -767,7 +767,7 @@ VmwareEngineConnectionImpl::DeleteCluster( StatusOr VmwareEngineConnectionImpl::DeleteCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1001,7 +1001,7 @@ VmwareEngineConnectionImpl::CreateExternalAddress( StatusOr VmwareEngineConnectionImpl::CreateExternalAddress( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1097,7 +1097,7 @@ VmwareEngineConnectionImpl::UpdateExternalAddress( StatusOr VmwareEngineConnectionImpl::UpdateExternalAddress( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1193,7 +1193,7 @@ VmwareEngineConnectionImpl::DeleteExternalAddress( StatusOr VmwareEngineConnectionImpl::DeleteExternalAddress( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1335,7 +1335,7 @@ VmwareEngineConnectionImpl::UpdateSubnet( StatusOr VmwareEngineConnectionImpl::UpdateSubnet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1480,7 +1480,7 @@ VmwareEngineConnectionImpl::CreateExternalAccessRule( StatusOr VmwareEngineConnectionImpl::CreateExternalAccessRule( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1574,7 +1574,7 @@ VmwareEngineConnectionImpl::UpdateExternalAccessRule( StatusOr VmwareEngineConnectionImpl::UpdateExternalAccessRule( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1668,7 +1668,7 @@ VmwareEngineConnectionImpl::DeleteExternalAccessRule( StatusOr VmwareEngineConnectionImpl::DeleteExternalAccessRule( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1812,7 +1812,7 @@ VmwareEngineConnectionImpl::CreateLoggingServer( StatusOr VmwareEngineConnectionImpl::CreateLoggingServer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -1907,7 +1907,7 @@ VmwareEngineConnectionImpl::UpdateLoggingServer( StatusOr VmwareEngineConnectionImpl::UpdateLoggingServer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2002,7 +2002,7 @@ VmwareEngineConnectionImpl::DeleteLoggingServer( StatusOr VmwareEngineConnectionImpl::DeleteLoggingServer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2178,7 +2178,7 @@ VmwareEngineConnectionImpl::ResetNsxCredentials( StatusOr VmwareEngineConnectionImpl::ResetNsxCredentials( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2273,7 +2273,7 @@ VmwareEngineConnectionImpl::ResetVcenterCredentials( StatusOr VmwareEngineConnectionImpl::ResetVcenterCredentials( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2384,7 +2384,7 @@ VmwareEngineConnectionImpl::UpdateDnsForwarding( StatusOr VmwareEngineConnectionImpl::UpdateDnsForwarding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2529,7 +2529,7 @@ VmwareEngineConnectionImpl::CreateNetworkPeering( StatusOr VmwareEngineConnectionImpl::CreateNetworkPeering( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2624,7 +2624,7 @@ VmwareEngineConnectionImpl::DeleteNetworkPeering( StatusOr VmwareEngineConnectionImpl::DeleteNetworkPeering( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2719,7 +2719,7 @@ VmwareEngineConnectionImpl::UpdateNetworkPeering( StatusOr VmwareEngineConnectionImpl::UpdateNetworkPeering( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -2849,7 +2849,7 @@ VmwareEngineConnectionImpl::CreateHcxActivationKey( StatusOr VmwareEngineConnectionImpl::CreateHcxActivationKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3047,7 +3047,7 @@ VmwareEngineConnectionImpl::CreateNetworkPolicy( StatusOr VmwareEngineConnectionImpl::CreateNetworkPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3142,7 +3142,7 @@ VmwareEngineConnectionImpl::UpdateNetworkPolicy( StatusOr VmwareEngineConnectionImpl::UpdateNetworkPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3237,7 +3237,7 @@ VmwareEngineConnectionImpl::DeleteNetworkPolicy( StatusOr VmwareEngineConnectionImpl::DeleteNetworkPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3387,7 +3387,7 @@ VmwareEngineConnectionImpl::CreateManagementDnsZoneBinding( StatusOr VmwareEngineConnectionImpl::CreateManagementDnsZoneBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: CreateManagementDnsZoneBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3482,7 +3482,7 @@ VmwareEngineConnectionImpl::UpdateManagementDnsZoneBinding( StatusOr VmwareEngineConnectionImpl::UpdateManagementDnsZoneBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: UpdateManagementDnsZoneBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3577,7 +3577,7 @@ VmwareEngineConnectionImpl::DeleteManagementDnsZoneBinding( StatusOr VmwareEngineConnectionImpl::DeleteManagementDnsZoneBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: DeleteManagementDnsZoneBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3672,7 +3672,7 @@ VmwareEngineConnectionImpl::RepairManagementDnsZoneBinding( StatusOr VmwareEngineConnectionImpl::RepairManagementDnsZoneBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: RepairManagementDnsZoneBindingRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3766,7 +3766,7 @@ VmwareEngineConnectionImpl::CreateVmwareEngineNetwork( StatusOr VmwareEngineConnectionImpl::CreateVmwareEngineNetwork( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3860,7 +3860,7 @@ VmwareEngineConnectionImpl::UpdateVmwareEngineNetwork( StatusOr VmwareEngineConnectionImpl::UpdateVmwareEngineNetwork( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -3954,7 +3954,7 @@ VmwareEngineConnectionImpl::DeleteVmwareEngineNetwork( StatusOr VmwareEngineConnectionImpl::DeleteVmwareEngineNetwork( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -4102,7 +4102,7 @@ VmwareEngineConnectionImpl::CreatePrivateConnection( StatusOr VmwareEngineConnectionImpl::CreatePrivateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -4250,7 +4250,7 @@ VmwareEngineConnectionImpl::UpdatePrivateConnection( StatusOr VmwareEngineConnectionImpl::UpdatePrivateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -4346,7 +4346,7 @@ VmwareEngineConnectionImpl::DeletePrivateConnection( StatusOr VmwareEngineConnectionImpl::DeletePrivateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -4482,7 +4482,7 @@ VmwareEngineConnectionImpl::GrantDnsBindPermission( StatusOr VmwareEngineConnectionImpl::GrantDnsBindPermission( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -4594,7 +4594,7 @@ VmwareEngineConnectionImpl::RevokeDnsBindPermission( StatusOr VmwareEngineConnectionImpl::RevokeDnsBindPermission( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); diff --git a/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.h b/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.h index 2cad9487d1dd4..605830cba5cba 100644 --- a/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.h +++ b/google/cloud/vmwareengine/v1/internal/vmware_engine_connection_impl.h @@ -66,7 +66,7 @@ class VmwareEngineConnectionImpl override; StatusOr CreatePrivateCloud( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreatePrivateCloudRequest const& request) override; @@ -80,7 +80,7 @@ class VmwareEngineConnectionImpl override; StatusOr UpdatePrivateCloud( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdatePrivateCloudRequest const& request) override; @@ -94,7 +94,7 @@ class VmwareEngineConnectionImpl override; StatusOr DeletePrivateCloud( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeletePrivateCloudRequest const& request) override; @@ -108,7 +108,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr UndeletePrivateCloud( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UndeletePrivateCloudRequest const& request) override; @@ -129,7 +129,7 @@ class VmwareEngineConnectionImpl override; StatusOr CreateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateClusterRequest const& request) override; @@ -142,7 +142,7 @@ class VmwareEngineConnectionImpl override; StatusOr UpdateCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateClusterRequest const& request) override; @@ -155,7 +155,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr DeleteCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteClusterRequest const& request) override; @@ -189,7 +189,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr CreateExternalAddress( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateExternalAddressRequest const& request) override; @@ -204,7 +204,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr UpdateExternalAddress( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateExternalAddressRequest const& request) override; @@ -219,7 +219,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr DeleteExternalAddress( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteExternalAddressRequest const& request) override; @@ -240,7 +240,7 @@ class VmwareEngineConnectionImpl override; StatusOr UpdateSubnet( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateSubnetRequest const& request) override; @@ -264,7 +264,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr CreateExternalAccessRule( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateExternalAccessRuleRequest const& request) override; @@ -279,7 +279,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr UpdateExternalAccessRule( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateExternalAccessRuleRequest const& request) override; @@ -294,7 +294,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr DeleteExternalAccessRule( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteExternalAccessRuleRequest const& request) override; @@ -317,7 +317,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr CreateLoggingServer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateLoggingServerRequest const& request) override; @@ -331,7 +331,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr UpdateLoggingServer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateLoggingServerRequest const& request) override; @@ -345,7 +345,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr DeleteLoggingServer( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteLoggingServerRequest const& request) override; @@ -374,7 +374,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr ResetNsxCredentials( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::ResetNsxCredentialsRequest const& request) override; @@ -388,7 +388,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr ResetVcenterCredentials( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::ResetVcenterCredentialsRequest const& request) override; @@ -407,7 +407,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr UpdateDnsForwarding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateDnsForwardingRequest const& request) override; @@ -430,7 +430,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr CreateNetworkPeering( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateNetworkPeeringRequest const& request) override; @@ -445,7 +445,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr DeleteNetworkPeering( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteNetworkPeeringRequest const& request) override; @@ -460,7 +460,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr UpdateNetworkPeering( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateNetworkPeeringRequest const& request) override; @@ -479,7 +479,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr CreateHcxActivationKey( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateHcxActivationKeyRequest const& request) override; @@ -513,7 +513,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr CreateNetworkPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateNetworkPolicyRequest const& request) override; @@ -527,7 +527,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr UpdateNetworkPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateNetworkPolicyRequest const& request) override; @@ -541,7 +541,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr DeleteNetworkPolicy( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteNetworkPolicyRequest const& request) override; @@ -565,7 +565,7 @@ class VmwareEngineConnectionImpl CreateManagementDnsZoneBindingRequest const& request) override; StatusOr CreateManagementDnsZoneBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: CreateManagementDnsZoneBindingRequest const& request) override; @@ -580,7 +580,7 @@ class VmwareEngineConnectionImpl UpdateManagementDnsZoneBindingRequest const& request) override; StatusOr UpdateManagementDnsZoneBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: UpdateManagementDnsZoneBindingRequest const& request) override; @@ -595,7 +595,7 @@ class VmwareEngineConnectionImpl DeleteManagementDnsZoneBindingRequest const& request) override; StatusOr DeleteManagementDnsZoneBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: DeleteManagementDnsZoneBindingRequest const& request) override; @@ -610,7 +610,7 @@ class VmwareEngineConnectionImpl RepairManagementDnsZoneBindingRequest const& request) override; StatusOr RepairManagementDnsZoneBinding( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1:: RepairManagementDnsZoneBindingRequest const& request) override; @@ -625,7 +625,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr CreateVmwareEngineNetwork( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreateVmwareEngineNetworkRequest const& request) override; @@ -640,7 +640,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr UpdateVmwareEngineNetwork( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdateVmwareEngineNetworkRequest const& request) override; @@ -655,7 +655,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr DeleteVmwareEngineNetwork( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeleteVmwareEngineNetworkRequest const& request) override; @@ -680,7 +680,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr CreatePrivateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::CreatePrivateConnectionRequest const& request) override; @@ -705,7 +705,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr UpdatePrivateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::UpdatePrivateConnectionRequest const& request) override; @@ -720,7 +720,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr DeletePrivateConnection( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::DeletePrivateConnectionRequest const& request) override; @@ -740,7 +740,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr GrantDnsBindPermission( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::GrantDnsBindPermissionRequest const& request) override; @@ -760,7 +760,7 @@ class VmwareEngineConnectionImpl request) override; StatusOr RevokeDnsBindPermission( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vmwareengine::v1::RevokeDnsBindPermissionRequest const& request) override; diff --git a/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.cc b/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.cc index 8057ca12fd80a..349933d098362 100644 --- a/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.cc +++ b/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.cc @@ -108,7 +108,7 @@ VpcAccessServiceConnectionImpl::CreateConnector( StatusOr VpcAccessServiceConnectionImpl::CreateConnector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vpcaccess::v1::CreateConnectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -247,7 +247,7 @@ VpcAccessServiceConnectionImpl::DeleteConnector( StatusOr VpcAccessServiceConnectionImpl::DeleteConnector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.h b/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.h index 112f411a244bc..ccafc9613729c 100644 --- a/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.h +++ b/google/cloud/vpcaccess/v1/internal/vpc_access_connection_impl.h @@ -57,7 +57,7 @@ class VpcAccessServiceConnectionImpl override; StatusOr CreateConnector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vpcaccess::v1::CreateConnectorRequest const& request) override; @@ -77,7 +77,7 @@ class VpcAccessServiceConnectionImpl request) override; StatusOr DeleteConnector( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::vpcaccess::v1::DeleteConnectorRequest const& request) override; diff --git a/google/cloud/webrisk/v1/internal/web_risk_connection_impl.cc b/google/cloud/webrisk/v1/internal/web_risk_connection_impl.cc index 164e1b0cbe7f7..c818f47a2322a 100644 --- a/google/cloud/webrisk/v1/internal/web_risk_connection_impl.cc +++ b/google/cloud/webrisk/v1/internal/web_risk_connection_impl.cc @@ -161,7 +161,7 @@ WebRiskServiceConnectionImpl::SubmitUri( StatusOr WebRiskServiceConnectionImpl::SubmitUri( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::webrisk::v1::SubmitUriRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/webrisk/v1/internal/web_risk_connection_impl.h b/google/cloud/webrisk/v1/internal/web_risk_connection_impl.h index 1c312512ac824..75be85cd8da43 100644 --- a/google/cloud/webrisk/v1/internal/web_risk_connection_impl.h +++ b/google/cloud/webrisk/v1/internal/web_risk_connection_impl.h @@ -70,7 +70,7 @@ class WebRiskServiceConnectionImpl google::cloud::webrisk::v1::SubmitUriRequest const& request) override; StatusOr SubmitUri( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::webrisk::v1::SubmitUriRequest const& request) override; future> SubmitUri( diff --git a/google/cloud/workflows/v1/internal/workflows_connection_impl.cc b/google/cloud/workflows/v1/internal/workflows_connection_impl.cc index dc1a92c9ddb25..99c8d8083f11c 100644 --- a/google/cloud/workflows/v1/internal/workflows_connection_impl.cc +++ b/google/cloud/workflows/v1/internal/workflows_connection_impl.cc @@ -152,7 +152,7 @@ WorkflowsConnectionImpl::CreateWorkflow( StatusOr WorkflowsConnectionImpl::CreateWorkflow( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::CreateWorkflowRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -243,7 +243,7 @@ WorkflowsConnectionImpl::DeleteWorkflow( StatusOr WorkflowsConnectionImpl::DeleteWorkflow( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::DeleteWorkflowRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -335,7 +335,7 @@ WorkflowsConnectionImpl::UpdateWorkflow( StatusOr WorkflowsConnectionImpl::UpdateWorkflow( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::UpdateWorkflowRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/workflows/v1/internal/workflows_connection_impl.h b/google/cloud/workflows/v1/internal/workflows_connection_impl.h index 8ab39de6b77ff..8a4195a67ecdd 100644 --- a/google/cloud/workflows/v1/internal/workflows_connection_impl.h +++ b/google/cloud/workflows/v1/internal/workflows_connection_impl.h @@ -62,7 +62,7 @@ class WorkflowsConnectionImpl : public workflows_v1::WorkflowsConnection { override; StatusOr CreateWorkflow( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::CreateWorkflowRequest const& request) override; @@ -75,7 +75,7 @@ class WorkflowsConnectionImpl : public workflows_v1::WorkflowsConnection { request) override; StatusOr DeleteWorkflow( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::DeleteWorkflowRequest const& request) override; @@ -88,7 +88,7 @@ class WorkflowsConnectionImpl : public workflows_v1::WorkflowsConnection { override; StatusOr UpdateWorkflow( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workflows::v1::UpdateWorkflowRequest const& request) override; diff --git a/google/cloud/workstations/v1/internal/workstations_connection_impl.cc b/google/cloud/workstations/v1/internal/workstations_connection_impl.cc index 26459acd3ebcb..2a709e607f6a4 100644 --- a/google/cloud/workstations/v1/internal/workstations_connection_impl.cc +++ b/google/cloud/workstations/v1/internal/workstations_connection_impl.cc @@ -161,7 +161,7 @@ WorkstationsConnectionImpl::CreateWorkstationCluster( StatusOr WorkstationsConnectionImpl::CreateWorkstationCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -255,7 +255,7 @@ WorkstationsConnectionImpl::UpdateWorkstationCluster( StatusOr WorkstationsConnectionImpl::UpdateWorkstationCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -349,7 +349,7 @@ WorkstationsConnectionImpl::DeleteWorkstationCluster( StatusOr WorkstationsConnectionImpl::DeleteWorkstationCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -535,7 +535,7 @@ WorkstationsConnectionImpl::CreateWorkstationConfig( StatusOr WorkstationsConnectionImpl::CreateWorkstationConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -631,7 +631,7 @@ WorkstationsConnectionImpl::UpdateWorkstationConfig( StatusOr WorkstationsConnectionImpl::UpdateWorkstationConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -727,7 +727,7 @@ WorkstationsConnectionImpl::DeleteWorkstationConfig( StatusOr WorkstationsConnectionImpl::DeleteWorkstationConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); @@ -908,7 +908,7 @@ WorkstationsConnectionImpl::CreateWorkstation( StatusOr WorkstationsConnectionImpl::CreateWorkstation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1001,7 +1001,7 @@ WorkstationsConnectionImpl::UpdateWorkstation( StatusOr WorkstationsConnectionImpl::UpdateWorkstation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1094,7 +1094,7 @@ WorkstationsConnectionImpl::DeleteWorkstation( StatusOr WorkstationsConnectionImpl::DeleteWorkstation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1187,7 +1187,7 @@ WorkstationsConnectionImpl::StartWorkstation( StatusOr WorkstationsConnectionImpl::StartWorkstation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::StartWorkstationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( @@ -1280,7 +1280,7 @@ WorkstationsConnectionImpl::StopWorkstation( StatusOr WorkstationsConnectionImpl::StopWorkstation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::StopWorkstationRequest const& request) { auto current = google::cloud::internal::SaveCurrentOptions(); return google::cloud::internal::RetryLoop( diff --git a/google/cloud/workstations/v1/internal/workstations_connection_impl.h b/google/cloud/workstations/v1/internal/workstations_connection_impl.h index d871fadc0dfbb..3133c752227a6 100644 --- a/google/cloud/workstations/v1/internal/workstations_connection_impl.h +++ b/google/cloud/workstations/v1/internal/workstations_connection_impl.h @@ -68,7 +68,7 @@ class WorkstationsConnectionImpl request) override; StatusOr CreateWorkstationCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationClusterRequest const& request) override; @@ -83,7 +83,7 @@ class WorkstationsConnectionImpl request) override; StatusOr UpdateWorkstationCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationClusterRequest const& request) override; @@ -98,7 +98,7 @@ class WorkstationsConnectionImpl request) override; StatusOr DeleteWorkstationCluster( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationClusterRequest const& request) override; @@ -128,7 +128,7 @@ class WorkstationsConnectionImpl request) override; StatusOr CreateWorkstationConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationConfigRequest const& request) override; @@ -143,7 +143,7 @@ class WorkstationsConnectionImpl request) override; StatusOr UpdateWorkstationConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationConfigRequest const& request) override; @@ -158,7 +158,7 @@ class WorkstationsConnectionImpl request) override; StatusOr DeleteWorkstationConfig( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationConfigRequest const& request) override; @@ -186,7 +186,7 @@ class WorkstationsConnectionImpl override; StatusOr CreateWorkstation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::CreateWorkstationRequest const& request) override; @@ -200,7 +200,7 @@ class WorkstationsConnectionImpl override; StatusOr UpdateWorkstation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::UpdateWorkstationRequest const& request) override; @@ -214,7 +214,7 @@ class WorkstationsConnectionImpl override; StatusOr DeleteWorkstation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::DeleteWorkstationRequest const& request) override; @@ -228,7 +228,7 @@ class WorkstationsConnectionImpl override; StatusOr StartWorkstation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::StartWorkstationRequest const& request) override; @@ -241,7 +241,7 @@ class WorkstationsConnectionImpl request) override; StatusOr StopWorkstation( - ExperimentalTag, NoAwaitlTag, + ExperimentalTag, NoAwaitTag, google::cloud::workstations::v1::StopWorkstationRequest const& request) override;